diff --git a/server/public/1017.4583c440f01471f4.js b/server/public/1017.4583c440f01471f4.js new file mode 100644 index 000000000..37d887060 --- /dev/null +++ b/server/public/1017.4583c440f01471f4.js @@ -0,0 +1,19 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1017],{7670:(x,y,t)=>{t.d(y,{z:()=>$});var e=t(3953),m=t(513),n=t(6389),C=t(5930),g=t(2096),d=t(177);let O=(()=>{class v{constructor(h,z){this.document=h,this.platformId=z,this.documentIsAccessible=(0,d.UE)(this.platformId)}static getCookieRegExp(h){const z=h.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+z+"|;\\s*"+z+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(h){try{return decodeURIComponent(h)}catch{return h}}check(h){return!!this.documentIsAccessible&&(h=encodeURIComponent(h),v.getCookieRegExp(h).test(this.document.cookie))}get(h){if(this.documentIsAccessible&&this.check(h)){h=encodeURIComponent(h);const f=v.getCookieRegExp(h).exec(this.document.cookie);return f[1]?v.safeDecodeURIComponent(f[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const h={},z=this.document;return z.cookie&&""!==z.cookie&&z.cookie.split(";").forEach(f=>{const[c,R]=f.split("=");h[v.safeDecodeURIComponent(c.replace(/^ /,""))]=v.safeDecodeURIComponent(R)}),h}set(h,z,f,c,R,l,F,V){if(!this.documentIsAccessible)return;if("number"==typeof f||f instanceof Date||c||R||l||F)return void this.set(h,z,{expires:f,path:c,domain:R,secure:l,sameSite:F||"Lax",partitioned:V});let D=encodeURIComponent(h)+"="+encodeURIComponent(z)+";";const u=f||{};u.expires&&(D+="number"==typeof u.expires?"expires="+new Date((new Date).getTime()+1e3*u.expires*60*60*24).toUTCString()+";":"expires="+u.expires.toUTCString()+";"),u.path&&(D+="path="+u.path+";"),u.domain&&(D+="domain="+u.domain+";"),!1===u.secure&&"None"===u.sameSite&&(u.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${h} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),u.secure&&(D+="secure;"),u.sameSite||(u.sameSite="Lax"),D+="sameSite="+u.sameSite+";",u.partitioned&&(D+="Partitioned;"),this.document.cookie=D}delete(h,z,f,c,R="Lax"){this.documentIsAccessible&&this.set(h,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:z,domain:f,secure:c,sameSite:R})}deleteAll(h,z,f,c="Lax"){if(!this.documentIsAccessible)return;const R=this.getAll();for(const l in R)R.hasOwnProperty(l)&&this.delete(l,h,z,f,c)}static#n=this.\u0275fac=function(z){return new(z||v)(e.KVO(d.qQ),e.KVO(e.Agw))};static#t=this.\u0275prov=e.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();var r=t(5103),M=t(2617);let T=(()=>{class v{constructor(h){this.cookies=h,this.location=function I(v){return encodeURIComponent(v).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}static#n=this.\u0275fac=function(z){return new(z||v)(e.rXU(O))};static#t=this.\u0275cmp=e.VBU({type:v,selectors:[["cvc-auth-options-list"]],decls:19,vars:9,consts:[["nzBordered","false","nzSplit","false"],["method","post",3,"action"],["type","hidden","name","authenticity_token",3,"value"],["type","submit","nz-button","","nzBlock","","nzType","default","nzSize","large","nzShape","round"],["nz-icon","","nzType","google"],["src","assets/images/orcid-logo.svg","alt","ORCID Logo",1,"orcid-logo"],["nz-icon","","nzType","github"]],template:function(z,f){1&z&&(e.j41(0,"nz-list",0)(1,"nz-list-item")(2,"form",1),e.nrm(3,"input",2),e.j41(4,"button",3),e.nrm(5,"i",4),e.EFF(6," Sign In with a Google Account "),e.k0s()()(),e.j41(7,"nz-list-item")(8,"form",1),e.nrm(9,"input",2),e.j41(10,"button",3),e.nrm(11,"img",5),e.EFF(12," Sign In with an ORCID Account "),e.k0s()()(),e.j41(13,"nz-list-item")(14,"form",1),e.nrm(15,"input",2),e.j41(16,"button",3),e.nrm(17,"i",6),e.EFF(18," Sign In with a Github Account "),e.k0s()()()()),2&z&&(e.R7$(2),e.Mz_("action","/api/auth/google_oauth2?origin=",f.location,"",e.B4B),e.R7$(),e.FS9("value",f.xsrfToken),e.R7$(5),e.Mz_("action","/api/auth/orcid?origin=",f.location,"",e.B4B),e.R7$(),e.FS9("value",f.xsrfToken),e.R7$(5),e.Mz_("action","/api/auth/github?origin=",f.location,"",e.B4B),e.R7$(),e.FS9("value",f.xsrfToken))},dependencies:[r.Dn,M.eE,M.lQ,m.aO,n.c,C.p],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}.orcid-logo[_ngcontent-%COMP%]{width:16px;margin-right:4px;line-height:1}i[_ngcontent-%COMP%]{font-size:16px}"]})}return v})();function S(v,L){1&v&&(e.qex(0),e.j41(1,"p",5),e.EFF(2," Click on one of the OAuth providers below to sign into CIViC. If you do not not have a CIViC account, one will be created for you based upon the account information your OAuth provider provides. "),e.k0s(),e.nrm(3,"cvc-auth-options-list"),e.bVm())}function G(v,L){1&v&&e.EFF(0," Sign In / Sign Up ")}function j(v,L){if(1&v){const h=e.RV6();e.j41(0,"button",2),e.bIt("click",function(){e.eBV(h);const f=e.XpG();return e.Njj(f.handleCancel())}),e.EFF(1," Cancel "),e.k0s()}}let $=(()=>{class v{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}static#n=this.\u0275fac=function(z){return new(z||v)};static#t=this.\u0275cmp=e.VBU({type:v,selectors:[["cvc-login-button"]],decls:9,vars:3,consts:[["loginModalTitle",""],["loginModalFooter",""],["nz-button","","nzType","primary","nzValue","small",3,"click"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzTitle","nzFooter"],[4,"nzModalContent"],["nzType","secondary"]],template:function(z,f){if(1&z){const c=e.RV6();e.j41(0,"button",2),e.bIt("click",function(){return e.eBV(c),e.Njj(f.showAuth())}),e.j41(1,"span"),e.EFF(2,"Sign In / Sign Up"),e.k0s()(),e.j41(3,"nz-modal",3),e.mxI("nzVisibleChange",function(l){return e.eBV(c),e.DH7(f.authVisible,l)||(f.authVisible=l),e.Njj(l)}),e.bIt("nzOnCancel",function(){return e.eBV(c),e.Njj(f.handleCancel())}),e.DNE(4,S,4,0,"ng-container",4),e.k0s(),e.DNE(5,G,1,0,"ng-template",null,0,e.C5r)(7,j,2,0,"ng-template",null,1,e.C5r)}if(2&z){const c=e.sdS(6),R=e.sdS(8);e.R7$(3),e.R50("nzVisible",f.authVisible),e.Y8G("nzTitle",c)("nzFooter",R)}},dependencies:[m.aO,n.c,C.p,g.F2,g.A9,T],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return v})()},400:(x,y,t)=>{t.d(y,{a:()=>O});var e=t(177),m=t(513),n=t(2096),C=t(2617),g=t(5103),I=t(3953);let d=(()=>{class r{static#n=this.\u0275fac=function(S){return new(S||r)};static#t=this.\u0275mod=I.$C({type:r});static#e=this.\u0275inj=I.G2t({imports:[e.MD,g.Y3,C.rD,m.Zw]})}return r})(),O=(()=>{class r{static#n=this.\u0275fac=function(S){return new(S||r)};static#t=this.\u0275mod=I.$C({type:r});static#e=this.\u0275inj=I.G2t({imports:[e.MD,m.Zw,n.U6,d]})}return r})()},7074:(x,y,t)=>{t.d(y,{w:()=>I});var e=t(3953),m=t(177),n=t(9438);function C(d,O){if(1&d&&e.nrm(0,"nz-avatar",2),2&d){const r=e.XpG();e.Y8G("nzSrc",r.organization.profileImagePath)("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)}}function g(d,O){if(1&d&&e.nrm(0,"nz-avatar",3),2&d){const r=e.XpG();e.Y8G("nzShape",r.shape?r.shape:"circle")("nzText",r.organization.name)("nzSize",r.size)}}let I=(()=>{class d{ngOnInit(){if(void 0===this.organization)throw new Error("Must supply an organization to use this component");void 0===this.size&&(this.size="default")}static#n=this.\u0275fac=function(M){return new(M||d)};static#t=this.\u0275cmp=e.VBU({type:d,selectors:[["cvc-organization-avatar"]],inputs:{organization:"organization",size:"size",shape:"shape"},decls:3,vars:2,consts:[["noAvatar",""],[3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],[3,"nzSrc","nzShape","nzSize"],[3,"nzShape","nzText","nzSize"]],template:function(M,T){if(1&M&&e.DNE(0,C,1,3,"nz-avatar",1)(1,g,1,3,"ng-template",null,0,e.C5r),2&M){const S=e.sdS(2);e.Y8G("ngIf",T.organization.profileImagePath)("ngIfElse",S)}},dependencies:[m.bT,n.PM],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return d})()},5285:(x,y,t)=>{t.d(y,{T:()=>C});var e=t(177),m=t(9438),n=t(3953);let C=(()=>{class g{static#n=this.\u0275fac=function(O){return new(O||g)};static#t=this.\u0275mod=n.$C({type:g});static#e=this.\u0275inj=n.G2t({imports:[e.MD,m.Yb]})}return g})()},9162:(x,y,t)=>{t.d(y,{G:()=>I});var e=t(3953),m=t(177),n=t(9438);function C(d,O){if(1&d&&e.nrm(0,"nz-avatar",2),2&d){const r=e.XpG();e.Y8G("nzSrc",r.user.profileImagePath)("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)}}function g(d,O){if(1&d&&(e.nrm(0,"nz-avatar",3),e.nI1(1,"uppercase")),2&d){const r=e.XpG();e.Y8G("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)("nzText",e.bMT(1,3,r.user.displayName.charAt(0)))}}let I=(()=>{class d{ngOnInit(){if(void 0===this.user)throw new Error("Must supply a user to use this component");void 0===this.size&&(this.size="default")}static#n=this.\u0275fac=function(M){return new(M||d)};static#t=this.\u0275cmp=e.VBU({type:d,selectors:[["cvc-user-avatar"]],inputs:{user:"user",size:"size",shape:"shape"},decls:3,vars:2,consts:[["noAvatar",""],[3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],[3,"nzSrc","nzShape","nzSize"],[3,"nzShape","nzSize","nzText"]],template:function(M,T){if(1&M&&e.DNE(0,C,1,3,"nz-avatar",1)(1,g,2,5,"ng-template",null,0,e.C5r),2&M){const S=e.sdS(2);e.Y8G("ngIf",T.user.profileImagePath)("ngIfElse",S)}},dependencies:[m.bT,n.PM,m.Pc],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return d})()},3357:(x,y,t)=>{t.d(y,{P:()=>C});var e=t(177),m=t(9438),n=t(3953);let C=(()=>{class g{static#n=this.\u0275fac=function(O){return new(O||g)};static#t=this.\u0275mod=n.$C({type:g});static#e=this.\u0275inj=n.G2t({imports:[e.MD,m.Yb]})}return g})()},4493:(x,y,t)=>{t.d(y,{g:()=>n});var e=t(9145),m=t(3953);let n=(()=>{class C{transform(I){switch(I){case"ASSERTION":case"Assertion":case e.V9U.Assertion:return"civic-assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case e.V9U.EvidenceItem:return"civic-evidence";case"FEATURE":case"Feature":case e.V9U.Feature:return"civic-feature";case e.V9U.Revision:case"REVISION":case"Revision":return"civic-revision";case e.V9U.Variant:case"VARIANT":case"Variant":return"civic-variant";case e.V9U.VariantGroup:case"VARIANT_GROUP":case"VariantGroup":return"civic-variantgroup";case e.V9U.MolecularProfile:case"MOLECULAR_PROFILE":case"MolecularProfile":return"civic-molecularprofile";case"THERAPY":case"Therapy":return"civic-therapy";case"DISEASE":case"Disease":return"civic-disease";case"SOURCE":case"Source":return"civic-source";default:return console.log("String No icon name found for "+I),"border-outer"}}static#n=this.\u0275fac=function(d){return new(d||C)};static#t=this.\u0275pipe=m.EJ8({name:"iconNameForSubscribableEntity",type:C,pure:!0})}return C})()},9502:(x,y,t)=>{function e(m){return m.toLowerCase().split("_").map(n=>n[0].toUpperCase()+n.substring(1)).join("")}t.d(y,{q:()=>e})},9449:(x,y,t)=>{t.d(y,{j:()=>O});var e=t(3953),m=t(177),n=t(3617);function C(r,M){if(1&r&&e.nrm(0,"nz-alert",4),2&r){const T=e.XpG();e.Y8G("nzDescription",T.errors[0])}}function g(r,M){if(1&r&&e.nrm(0,"nz-alert",5),2&r){e.XpG();const T=e.sdS(3);e.Y8G("nzDescription",T)}}function I(r,M){if(1&r&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&r){const T=M.$implicit;e.R7$(),e.JRh(T)}}function d(r,M){if(1&r&&(e.j41(0,"ul",6),e.DNE(1,I,2,1,"li",7),e.k0s()),2&r){const T=e.XpG();e.R7$(),e.Y8G("ngForOf",T.errors)}}let O=(()=>{class r{constructor(){}ngOnInit(){1==this.errors.length&&(this.errors=this.errors[0].split("|"))}static#n=this.\u0275fac=function(S){return new(S||r)};static#t=this.\u0275cmp=e.VBU({type:r,selectors:[["cvc-form-errors-alert"]],inputs:{errors:"errors"},decls:4,vars:2,consts:[["errorList",""],["nzType","error","nzShowIcon","",3,"nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occurred",3,"nzDescription",4,"ngIf"],["nzSize","small"],["nzType","error","nzShowIcon","",3,"nzDescription"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occurred",3,"nzDescription"],[1,"error-list"],[4,"ngFor","ngForOf"]],template:function(S,G){1&S&&e.DNE(0,C,1,1,"nz-alert",1)(1,g,1,1,"nz-alert",2)(2,d,2,1,"ng-template",3,0,e.C5r),2&S&&(e.Y8G("ngIf",1===G.errors.length),e.R7$(),e.Y8G("ngIf",G.errors.length>1))},dependencies:[m.Sq,m.bT,n.Y],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]})}return r})()},8492:(x,y,t)=>{t.d(y,{M:()=>C});var e=t(177),m=t(3617),n=t(3953);let C=(()=>{class g{static#n=this.\u0275fac=function(O){return new(O||g)};static#t=this.\u0275mod=n.$C({type:g});static#e=this.\u0275inj=n.G2t({imports:[e.MD,m.$]})}return g})()},1202:(x,y,t)=>{t.d(y,{j:()=>R});var e=t(3953),m=t(1226),n=t(1413),C=t(6977),g=t(9145),I=t(4222),d=t(177),O=t(9417),r=t(7529),M=t(8927),T=t(5703),S=t(3617),G=t(3190),j=t(513),$=t(6389),v=t(5930),L=t(2983),h=t(9449);function z(l,F){1&l&&e.nrm(0,"nz-alert",7)}function f(l,F){if(1&l&&(e.j41(0,"nz-form-item"),e.nrm(1,"cvc-form-errors-alert",8),e.k0s()),2&l){const V=e.XpG();e.R7$(),e.Y8G("errors",V.errorMessages)}}function c(l,F){if(1&l){const V=e.RV6();e.j41(0,"nz-form-item")(1,"textarea",9),e.mxI("ngModelChange",function(u){e.eBV(V);const U=e.XpG();return e.DH7(U.coiText,u)||(U.coiText=u),e.Njj(u)}),e.k0s()()}if(2&l){const V=e.XpG();e.R7$(),e.R50("ngModel",V.coiText)}}let R=(()=>{class l{constructor(V,D){this.updateCoiGql=V,this.coiUpdatedEvent=new e.bkB,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new n.B,this.updateCoiMutator=new m.E(D)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let D=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});D.submitSuccess$.pipe((0,C.Q)(this.destroy$)).subscribe(u=>{u&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),D.submitError$.pipe((0,C.Q)(this.destroy$)).subscribe(u=>{u&&(this.errorMessages=u,this.success=!1)}),D.isSubmitting$.pipe((0,C.Q)(this.destroy$)).subscribe(u=>{this.loading=u})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(D){return new(D||l)(e.rXU(g.tDA),e.rXU(I.N))};static#t=this.\u0275cmp=e.VBU({type:l,selectors:[["cvc-user-coi-form"]],outputs:{coiUpdatedEvent:"coiUpdatedEvent"},decls:14,vars:6,consts:[["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],[3,"ngModelChange","ngModel"],["nz-radio","","nzValue","noCoi"],["nz-radio","","nzValue","coiPresent"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"click","disabled"],["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable",""],[3,"errors"],["nz-input","","rows","5","placeholder","Provide a concise description of any potential or actual conflicts of interest that you may have in curating CIViC",2,"width","100%",3,"ngModelChange","ngModel"]],template:function(D,u){1&D&&(e.j41(0,"nz-card"),e.DNE(1,z,1,0,"nz-alert",0)(2,f,2,1,"nz-form-item",1),e.j41(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-radio-group",3),e.mxI("ngModelChange",function(_){return e.DH7(u.coiStatus,_)||(u.coiStatus=_),_}),e.j41(6,"label",4),e.EFF(7,"I do not have any potential conflicts of interest."),e.k0s(),e.j41(8,"label",5),e.EFF(9,"I do have a potential conflict of interest."),e.k0s()()(),e.DNE(10,c,2,1,"nz-form-item",1),e.j41(11,"nz-form-item")(12,"button",6),e.bIt("click",function(){return u.updateCoi()}),e.EFF(13," Save Conflict of Interest Statement "),e.k0s()()()()),2&D&&(e.R7$(),e.Y8G("ngIf",u.success),e.R7$(),e.Y8G("ngIf",u.errorMessages.length>0),e.R7$(),e.Y8G("nzSpinning",u.loading),e.R7$(2),e.R50("ngModel",u.coiStatus),e.R7$(5),e.Y8G("ngIf","coiPresent"===u.coiStatus),e.R7$(2),e.Y8G("disabled",u.loading||"coiPresent"===u.coiStatus&&(void 0===u.coiText||u.coiText.length<10)))},dependencies:[d.bT,O.me,O.BC,O.vS,r.e,M.Ls,T.cK,S.Y,G.lx,G.i3,j.aO,$.c,v.p,L.a,h.j],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]})}return l})()},1232:(x,y,t)=>{t.d(y,{N:()=>T});var e=t(177),m=t(9417),n=t(5703),C=t(3617),g=t(8927),I=t(8492),d=t(3190),O=t(2983),r=t(513),M=t(3953);let T=(()=>{class S{static#n=this.\u0275fac=function($){return new($||S)};static#t=this.\u0275mod=M.$C({type:S});static#e=this.\u0275inj=M.G2t({imports:[e.MD,m.YN,g.PQ,m.X1,n.Ti,C.$,d.Sw,r.Zw,O.V,I.M]})}return S})()},574:(x,y,t)=>{t.d(y,{m:()=>f});var e=t(3953),m=t(9417),n=t(4412),C=t(1661),g=t(177),I=t(8927),d=t(3617),O=t(1188),r=t(8524),M=t(1774);const T=c=>["/variants",c,"summary"];function S(c,R){if(1&c){const l=e.RV6();e.qex(0),e.j41(1,"form",5)(2,"formly-form",6),e.bIt("modelChange",function(V){e.eBV(l);const D=e.XpG();return e.Njj(D.modelChange(V))}),e.k0s()(),e.bVm()}if(2&c){const l=e.XpG();e.R7$(),e.Y8G("nzLayout",l.layout)("formGroup",l.form),e.R7$(),e.Y8G("form",l.form)("fields",l.config)("model",l.model)("options",l.options)}}function G(c,R){if(1&c&&e.nrm(0,"nz-alert",10),2&c){e.XpG();const l=e.sdS(3),F=e.sdS(5);e.Y8G("nzMessage",l)("nzDescription",F)}}function j(c,R){if(1&c&&e.EFF(0),2&c){const l=e.XpG().ngIf;e.SpI(" New Variant ",l.name," added. ")}}function $(c,R){if(1&c&&(e.EFF(0," View its "),e.j41(1,"a",11),e.EFF(2,"details here"),e.k0s(),e.EFF(3,". ")),2&c){const l=e.XpG().ngIf;e.R7$(),e.Y8G("routerLink",e.eq3(1,T,l.id))}}function v(c,R){if(1&c&&e.nrm(0,"nz-alert",12),2&c){e.XpG();const l=e.sdS(5),F=e.sdS(8);e.Y8G("nzMessage",F)("nzDescription",l)}}function L(c,R){if(1&c&&e.EFF(0),2&c){const l=e.XpG().ngIf;e.SpI(" Variant ",l.name," already exists. ")}}function h(c,R){if(1&c&&(e.qex(0),e.DNE(1,G,1,2,"nz-alert",8)(2,j,1,1,"ng-template",null,1,e.C5r)(4,$,4,3,"ng-template",null,2,e.C5r)(6,v,1,2,"nz-alert",9)(7,L,1,1,"ng-template",null,3,e.C5r),e.bVm()),2&c){const l=e.XpG(2);e.R7$(),e.Y8G("ngIf",l.newlyCreated),e.R7$(5),e.Y8G("ngIf",!l.newlyCreated)}}function z(c,R){if(1&c&&(e.DNE(0,h,9,2,"ng-container",7),e.nI1(1,"ngrxPush")),2&c){const l=e.XpG();e.Y8G("ngIf",e.bMT(1,1,l.newVariant$))}}let f=(()=>{class c{constructor(l){this.apollo=l,this.onVariantSelected=new e.bkB,this.newVariant$=new n.t(void 0),this.modelChange$=new n.t(void 0),this.layout="horizontal",this.finderState={formLayout:this.layout,fields:{featureId$:new n.t(void 0),variantId$:new n.t(void 0)}},this.form=new m.J3({}),this.model={featureId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"featureId",type:"feature-select",props:{placeholder:"Select New Variant's Feature",layout:{showExtra:!1},hideLabel:!0}},{key:"variantId",type:"variant-select",props:{placeholder:"Enter New Variant Name",requireFeature:!0,layout:{showExtra:!1},hideLabel:!0,isNewlyCreatedCallback:F=>{this.newlyCreated=F}}}]}]}modelChange(l){if(!l?.variantId)return;const F=this.getSelectedVariant(l.variantId);F&&(this.model={featureId:void 0,variantId:void 0},this.onVariantSelected.next(F),this.newVariant$.next(F))}getSelectedVariant(l){if(!l)return;const F={id:`Variant:${l}`,fragment:C.J1` + fragment VariantSelectQuery on Variant { + id + name + link + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } + } + `};let V;try{V=this.apollo.client.readFragment(F)}catch(D){console.error(D)}if(V)return V;console.error("Variant submit form could not resolve its Variant from the cache")}static#n=this.\u0275fac=function(F){return new(F||c)(e.rXU(C.Ic))};static#t=this.\u0275cmp=e.VBU({type:c,selectors:[["cvc-variant-submit-form"]],outputs:{onVariantSelected:"onVariantSelected"},decls:4,vars:4,consts:[["variantCreated",""],["successMessage",""],["variantLink",""],["existsMessage",""],[4,"ngIf","ngIfElse"],["nz-form","",3,"nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"],[4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"],[3,"routerLink"],["nzType","info","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(F,V){if(1&F&&(e.DNE(0,S,3,6,"ng-container",4),e.nI1(1,"ngrxPush"),e.DNE(2,z,2,3,"ng-template",null,0,e.C5r)),2&F){const D=e.sdS(3);e.Y8G("ngIf",!e.bMT(1,2,V.newVariant$))("ngIfElse",D)}},dependencies:[g.bT,I.CA,d.Y,O.Wk,m.qT,m.cb,m.j4,r.aF,M.L9],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return c})()},7380:(x,y,t)=>{t.d(y,{s:()=>r});var e=t(177),m=t(8927),n=t(513),C=t(8168),g=t(5316),I=t(1188),d=t(3617),O=t(3953);let r=(()=>{class M{static#n=this.\u0275fac=function(G){return new(G||M)};static#t=this.\u0275mod=O.$C({type:M});static#e=this.\u0275inj=O.G2t({imports:[e.MD,m.PQ,n.Zw,d.$,I.iI,C.m,g.P]})}return M})()},1017:(x,y,t)=>{t.r(y),t.d(y,{LayoutModule:()=>St});var e=t(177),m=t(1188),n=t(3953),C=t(1305),g=t(5103),I=t(7529),d=t(1413),O=t(6977),r=t(1025),M=t(317),T=t(1868),S=t(6860),G=t(8203);const j=["*"],$=["nz-sider-trigger",""];function v(o,p){}function L(o,p){if(1&o&&n.DNE(0,v,0,0,"ng-template",2),2&o){const i=n.XpG(),s=n.sdS(5);n.Y8G("ngTemplateOutlet",i.nzZeroTrigger||s)}}function h(o,p){}function z(o,p){if(1&o&&n.DNE(0,h,0,0,"ng-template",2),2&o){const i=n.XpG(),s=n.sdS(3);n.Y8G("ngTemplateOutlet",i.nzTrigger||s)}}function f(o,p){if(1&o&&n.nrm(0,"span",3),2&o){const i=n.XpG(2);n.Y8G("nzType",i.nzCollapsed?"left":"right")}}function c(o,p){if(1&o&&n.nrm(0,"span",3),2&o){const i=n.XpG(2);n.Y8G("nzType",i.nzCollapsed?"right":"left")}}function R(o,p){if(1&o&&n.DNE(0,f,1,1,"span",3)(1,c,1,1,"span",3),2&o){const i=n.XpG();n.vxM(i.nzReverseArrow?0:1)}}function l(o,p){1&o&&n.nrm(0,"span",4)}function F(o,p){if(1&o){const i=n.RV6();n.j41(0,"div",2),n.bIt("click",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.setCollapsed(!a.nzCollapsed))}),n.k0s()}if(2&o){const i=n.XpG();n.Y8G("matchBreakPoint",i.matchBreakPoint)("nzCollapsedWidth",i.nzCollapsedWidth)("nzCollapsed",i.nzCollapsed)("nzBreakpoint",i.nzBreakpoint)("nzReverseArrow",i.nzReverseArrow)("nzTrigger",i.nzTrigger)("nzZeroTrigger",i.nzZeroTrigger)("siderWidth",i.widthSetting)}}let V=(()=>{class o{constructor(i,s){this.elementRef=i,this.renderer=s,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-content"]],exportAs:["nzContent"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),u=(()=>{class o{constructor(i,s){this.elementRef=i,this.renderer=s,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-header"]],exportAs:["nzHeader"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),U=(()=>{class o{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(s,a){2&s&&(n.xc7("width",a.isNormalTrigger?a.siderWidth:null),n.AVh("ant-layout-sider-trigger",a.isNormalTrigger)("ant-layout-sider-zero-width-trigger",a.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",a.isZeroTrigger&&a.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",a.isZeroTrigger&&!a.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],standalone:!0,features:[n.OA$,n.aNF],attrs:$,decls:6,vars:2,consts:[["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(s,a){1&s&&n.DNE(0,L,1,1,null,2)(1,z,1,1,null,2)(2,R,2,1,"ng-template",null,0,n.C5r)(4,l,1,0,"ng-template",null,1,n.C5r),2&s&&(n.vxM(a.isZeroTrigger?0:-1),n.R7$(),n.vxM(a.isNormalTrigger?1:-1))},dependencies:[e.T3,g.Y3,g.Dn],encapsulation:2,changeDetection:0})}return o})(),_=(()=>{class o{updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,M.j3)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(i){i!==this.nzCollapsed&&(this.nzCollapsed=i,this.nzCollapsedChange.emit(i),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}constructor(i,s,a){this.platform=i,this.cdr=s,this.breakpointService=a,this.destroy$=new d.B,this.nzMenuDirective=null,this.nzCollapsedChange=new n.bkB,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(r.yY,!0).pipe((0,O.Q)(this.destroy$)).subscribe(i=>{const s=this.nzBreakpoint;s&&(0,M.ij)().subscribe(()=>{this.matchBreakPoint=!i[s],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(i){const{nzCollapsed:s,nzCollapsedWidth:a,nzWidth:P}=i;(s||a||P)&&this.updateStyleMap(),s&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(S.OD),n.rXU(n.gRc),n.rXU(r.jp))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-sider"]],contentQueries:function(s,a,P){if(1&s&&n.wni(P,T.jS,5),2&s){let E;n.mGM(E=n.lsd())&&(a.nzMenuDirective=E.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(s,a){2&s&&(n.xc7("flex",a.flexSetting)("max-width",a.widthSetting)("min-width",a.widthSetting)("width",a.widthSetting),n.AVh("ant-layout-sider-zero-width",a.nzCollapsed&&0===a.nzCollapsedWidth)("ant-layout-sider-light","light"===a.nzTheme)("ant-layout-sider-dark","dark"===a.nzTheme)("ant-layout-sider-collapsed",a.nzCollapsed)("ant-layout-sider-has-trigger",a.nzCollapsible&&null!==a.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:[2,"nzReverseArrow","nzReverseArrow",n.L39],nzCollapsible:[2,"nzCollapsible","nzCollapsible",n.L39],nzCollapsed:[2,"nzCollapsed","nzCollapsed",n.L39]},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],standalone:!0,features:[n.GFd,n.OA$,n.aNF],ngContentSelectors:j,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"],["nz-sider-trigger","",3,"click","matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"]],template:function(s,a){1&s&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s(),n.DNE(2,F,1,8,"div",1)),2&s&&(n.R7$(2),n.vxM(a.nzCollapsible&&null!==a.nzTrigger?2:-1))},dependencies:[U],encapsulation:2,changeDetection:0})}return o})(),cn=(()=>{class o{constructor(i){this.directionality=i,this.dir="ltr",this.destroy$=new d.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(G.dS,8))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-layout"]],contentQueries:function(s,a,P){if(1&s&&n.wni(P,_,4),2&s){let E;n.mGM(E=n.lsd())&&(a.listOfNzSiderComponent=E)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(s,a){2&s&&n.AVh("ant-layout-rtl","rtl"===a.dir)("ant-layout-has-sider",a.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),dn=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[_,U]})}return o})();var W=t(5154),pn=t(7670),nn=t(1661),mn=t(5312),K=t(5964),gn=t(4412),tn=t(9172),un=t(3993),en=t(4608),X=t(9199),A=t(9145),Z=t(1774),Q=t(2602),on=t(513),hn=t(6389),zn=t(5930),w=t(7685),an=t(3146),sn=t(2096),Y=t(7391),rn=t(9438),Cn=t(9162),fn=t(1202),vn=t(7074),Tn=t(574);const Mn=o=>["/users",o],En=()=>({backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}),yn=o=>({"update-coi":o});function On(o,p){if(1&o&&(n.j41(0,"button",28),n.EFF(1," Add "),n.nrm(2,"i",29),n.k0s()),2&o){n.XpG(2);const i=n.sdS(16);n.Y8G("nzDropdownMenu",i)}}function In(o,p){if(1&o&&(n.j41(0,"nz-badge",30)(1,"button",31),n.nrm(2,"i",32),n.k0s()()),2&o){const i=n.XpG().ngrxLet,s=n.XpG().ngIf;n.Y8G("nzCount",i)("nzOverflowCount",999)("nzStyle",n.lJ4(5,En)),n.R7$(),n.Mz_("routerLink","/users/",s.id,"/notifications")}}function Pn(o,p){if(1&o&&n.nrm(0,"cvc-user-avatar",37),2&o){const i=n.XpG(3).ngIf;n.Y8G("user",i)("size",22)("ngClass",n.eq3(3,yn,i.invalidCoi))}}function Dn(o,p){if(1&o&&(n.j41(0,"div",39),n.EFF(1),n.k0s()),2&o){const i=n.XpG(4).ngIf;n.R7$(),n.SpI(" ",i.username," ")}}function Sn(o,p){1&o&&(n.qex(0),n.DNE(1,Dn,2,1,"div",38),n.bVm())}function Rn(o,p){1&o&&(n.j41(0,"span",42),n.EFF(1," for "),n.k0s())}function Fn(o,p){if(1&o&&(n.j41(0,"span"),n.nrm(1,"cvc-organization-avatar",43),n.k0s()),2&o){const i=n.XpG(4).ngIf;n.R7$(),n.Y8G("size",18)("organization",i.mostRecentOrg)}}function Vn(o,p){1&o&&(n.qex(0),n.DNE(1,Rn,2,0,"span",40)(2,Fn,2,2,"span",41),n.bVm())}function Bn(o,p){1&o&&n.nrm(0,"i",29)}function xn(o,p){if(1&o&&(n.j41(0,"button",33)(1,"nz-space",34),n.DNE(2,Pn,1,5,"cvc-user-avatar",35)(3,Sn,2,0,"ng-container",7)(4,Vn,3,0,"ng-container",7)(5,Bn,1,0,"i",36),n.k0s()()),2&o){const i=n.XpG(2).ngIf,s=n.sdS(3),a=n.XpG();n.Y8G("nzDropdownMenu",s),n.R7$(3),n.Y8G("ngIf",!a.cvcCollapsed),n.R7$(),n.Y8G("ngIf",i.mostRecentOrg)}}function Gn(o,p){1&o&&(n.j41(0,"nz-space",24),n.DNE(1,On,3,1,"button",25)(2,In,3,6,"nz-badge",26)(3,xn,6,3,"button",27),n.k0s())}function jn(o,p){1&o&&(n.j41(0,"span",47),n.nrm(1,"i",48),n.EFF(2," Conflict of Interest Invalid "),n.k0s())}function Un(o,p){if(1&o){const i=n.RV6();n.j41(0,"button",49),n.bIt("click",function(){n.eBV(i);const a=n.XpG(3);return n.Njj(a.coiUpdateModalVisible=!0)}),n.EFF(1," Please Update COI statement "),n.k0s()}}function An(o,p){if(1&o&&(n.j41(0,"li",44),n.DNE(1,jn,3,0,"ng-template",null,6,n.C5r),n.j41(3,"ul")(4,"li",45),n.DNE(5,Un,2,0,"button",46),n.k0s()()()),2&o){const i=n.sdS(2),s=n.XpG().ngIf;n.Y8G("nzTitle",i),n.R7$(5),n.Y8G("ngIf",s.invalidCoi)}}function $n(o,p){if(1&o){const i=n.RV6();n.j41(0,"li",52),n.bIt("click",function(){const a=n.eBV(i).$implicit,P=n.XpG(3);return n.Njj(P.menuSelection$.next(a.id))}),n.nrm(1,"nz-avatar",53),n.j41(2,"span",54),n.EFF(3),n.k0s()()}if(2&o){const i=p.$implicit,s=n.XpG(2).ngIf;n.Y8G("nzSelected",(null==s.mostRecentOrg?null:s.mostRecentOrg.id)===i.id),n.R7$(),n.Y8G("nzSrc",null==i?null:i.profileImagePath)("nzSize",14)("nzShape","square"),n.R7$(2),n.JRh(i.name)}}function Ln(o,p){if(1&o&&(n.j41(0,"li",50)(1,"ul"),n.DNE(2,$n,4,5,"li",51),n.k0s()()),2&o){const i=n.XpG().ngIf;n.R7$(2),n.Y8G("ngForOf",i.organizations)}}function _n(o,p){1&o&&(n.j41(0,"li",55)(1,"ul")(2,"li",56)(3,"a",57),n.EFF(4," Admin Console "),n.k0s()(),n.j41(5,"li",58)(6,"a",59),n.EFF(7," Error Monitoring "),n.k0s()(),n.j41(8,"li",60)(9,"a",61),n.EFF(10," Background Workers "),n.k0s()()()())}function Nn(o,p){if(1&o){const i=n.RV6();n.j41(0,"li",18),n.bIt("click",function(){n.eBV(i);const a=n.XpG(2);return n.Njj(a.addVariantModalVisible$.next(!0))}),n.EFF(1," Variant "),n.k0s()}}function Wn(o,p){if(1&o){const i=n.RV6();n.qex(0),n.DNE(1,Gn,4,0,"nz-space",10),n.j41(2,"nz-dropdown-menu",null,4)(4,"ul",11),n.DNE(5,An,6,2,"li",12),n.j41(6,"li",13)(7,"ul")(8,"li",14),n.EFF(9," View Profile "),n.k0s(),n.DNE(10,Ln,3,1,"li",15),n.k0s()(),n.DNE(11,_n,11,0,"li",16),n.nrm(12,"li",17),n.j41(13,"li",18),n.bIt("click",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.signOut())}),n.EFF(14," Sign Out "),n.k0s()()(),n.j41(15,"nz-dropdown-menu",null,5)(17,"ul",11)(18,"li",19),n.EFF(19," Evidence Item "),n.k0s(),n.j41(20,"li",20),n.EFF(21," Assertion "),n.k0s(),n.j41(22,"li",21),n.EFF(23," Source Suggestion "),n.k0s(),n.DNE(24,Nn,2,0,"li",22),n.j41(25,"li",23),n.EFF(26," Variant Group "),n.k0s()()(),n.bVm()}if(2&o){const i=p.ngIf,s=n.XpG();n.R7$(),n.Y8G("ngrxLet",s.unreadCount$),n.R7$(4),n.Y8G("ngIf",i.invalidCoi),n.R7$(3),n.Y8G("routerLink",n.eq3(6,Mn,i.id)),n.R7$(2),n.Y8G("ngIf",i.organizations.length>1),n.R7$(),n.Y8G("ngIf",i.isAdmin),n.R7$(13),n.Y8G("ngIf",i.isEditor)}}function Yn(o,p){1&o&&(n.j41(0,"span"),n.EFF(1,"Update your Conflict of Interest Statement"),n.k0s())}function bn(o,p){if(1&o){const i=n.RV6();n.j41(0,"cvc-user-coi-form",62),n.bIt("coiUpdatedEvent",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.coiUpdated())}),n.k0s()}}function Kn(o,p){1&o&&(n.j41(0,"span"),n.EFF(1,"Add New Variant"),n.k0s())}function Xn(o,p){1&o&&n.nrm(0,"cvc-variant-submit-form")}let Qn=(()=>{class o{constructor(i,s,a){this.queryService=i,this.unreadCountGql=s,this.apollo=a,this.cvcCollapsed=!1,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.menuSelection$=new d.B,this.unreadCount$=mn.c.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,en.E)("data","notifications","unreadCount"),(0,K.p)(X.kP),(0,tn.Z)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,en.E)("data","notifications","unreadCount"),(0,K.p)(X.kP),(0,tn.Z)(0)),this.addVariantModalVisible$=new gn.t(!1)}ngOnInit(){this.menuSelection$.pipe((0,un.E)(this.viewer$)).subscribe(([i,s])=>{const a={id:`User:${s.id}`,fragment:nn.J1` + fragment UserMostRecentOrgId on User { + mostRecentOrganizationId + } + `,data:{mostRecentOrganizationId:i}};this.apollo.client.writeFragment(a)})}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(C.q),n.rXU(A.pi3),n.rXU(nn.Ic))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-viewer-button"]],inputs:{cvcCollapsed:"cvcCollapsed"},decls:13,vars:13,consts:[["coiModalTitle",""],["coiModalContent",""],["variantModalTitle",""],["variantModalContent",""],["userMenu","nzDropdownMenu"],["addMenu","nzDropdownMenu"],["coiGroupTitle",""],[4,"ngIf"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],[3,"nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["nz-menu",""],["nz-menu-group","",3,"nzTitle",4,"ngIf"],["nz-menu-group","","nzTitle","Curation"],["nz-menu-item","","nzMatchRouter","",3,"routerLink"],["nz-menu-group","","nzTitle","Change Organization",4,"ngIf"],["nz-menu-group","","nzTitle","Administration",4,"ngIf"],["nz-menu-divider",""],["nz-menu-item","",3,"click"],["nz-menu-item","","routerLink","/evidence/add/submit"],["nz-menu-item","","routerLink","/assertions/add/submit"],["nz-menu-item","","routerLink","/sources/add"],["nz-menu-item","",3,"click",4,"ngIf"],["nz-menu-item","","routerLink","/variant-groups/add/submit"],["nzDirection","horizontal","nzSize","middle"],["class","add-btn","nz-button","","nzSize","small","nzType","link","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],[3,"nzCount","nzOverflowCount","nzStyle",4,"nzSpaceItem"],["class","viewer-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","link","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"add-btn",3,"nzDropdownMenu"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"nzCount","nzOverflowCount","nzStyle"],["nz-button","","nzSize","large","nzShape","circle","nzType","link",1,"notification-btn",3,"routerLink"],["nz-icon","","nzType","bell","nzTheme","outline"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"viewer-btn",3,"nzDropdownMenu"],["nzDirection","horizontal","nzSize","small"],["shape","circle",3,"user","size","ngClass",4,"nzSpaceItem"],["nz-icon","","nzType","caret-down","nzTheme","outline",4,"nzSpaceItem"],["shape","circle",3,"user","size","ngClass"],["class","viewer-name",4,"nzSpaceItem"],[1,"viewer-name"],["class","org-label",4,"nzSpaceItem"],[4,"nzSpaceItem"],[1,"org-label"],["shape","square",3,"size","organization"],["nz-menu-group","",3,"nzTitle"],["nz-menu-item",""],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click",4,"ngIf"],["nz-typography","","nzType","danger"],["nz-icon","","nzType","exclamation-circle"],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click"],["nz-menu-group","","nzTitle","Change Organization"],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],["nz-menu-item","",3,"click","nzSelected"],[3,"nzSrc","nzSize","nzShape"],[1,"org-name"],["nz-menu-group","","nzTitle","Administration"],["nz-menu-item","","href","/admin"],["href","/admin"],["nz-menu-item","","href","/errors"],["href","/errors"],["nz-menu-item","","href","/jobs"],["href","/jobs"],[3,"coiUpdatedEvent"]],template:function(s,a){if(1&s){const P=n.RV6();n.DNE(0,Wn,27,8,"ng-container",7),n.nI1(1,"ngrxPush"),n.j41(2,"nz-modal",8),n.mxI("nzVisibleChange",function(B){return n.eBV(P),n.DH7(a.coiUpdateModalVisible,B)||(a.coiUpdateModalVisible=B),n.Njj(B)}),n.bIt("nzOnCancel",function(){return n.eBV(P),n.Njj(a.handleCoiModalCancel())}),n.DNE(3,Yn,2,0,"ng-template",null,0,n.C5r)(5,bn,1,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(7,"nz-modal",9),n.nI1(8,"ngrxPush"),n.bIt("nzOnCancel",function(){return n.eBV(P),n.Njj(a.addVariantModalVisible$.next(!1))}),n.DNE(9,Kn,2,0,"ng-template",null,2,n.C5r)(11,Xn,1,0,"ng-template",null,3,n.C5r),n.k0s()}if(2&s){const P=n.sdS(4),E=n.sdS(6),B=n.sdS(10),N=n.sdS(12);n.Y8G("ngIf",n.bMT(1,9,a.viewer$)),n.R7$(2),n.R50("nzVisible",a.coiUpdateModalVisible),n.Y8G("nzContent",E)("nzTitle",P)("nzFooter",null),n.R7$(5),n.Y8G("nzVisible",n.bMT(8,11,a.addVariantModalVisible$))("nzContent",N)("nzTitle",B)("nzFooter",null)}},dependencies:[e.YU,e.Sq,e.bT,Z.Nj,T.jS,T.CU,T.sD,T.WQ,Q.j3,Q.wQ,Q.h4,m.Wk,on.aO,hn.c,zn.p,w.U5,w.Dq,g.Dn,an.dz,sn.F2,Y.Di,rn.PM,Cn.G,fn.j,vn.w,Tn.m,Z.L9],styles:["[_nghost-%COMP%]{display:inline-block}.topMenuIcon[_ngcontent-%COMP%]:hover{cursor:pointer}.topMenuIcon[_ngcontent-%COMP%]{font-size:16px}.topMenuIcon[_ngcontent-%COMP%] .topBarBadge[_ngcontent-%COMP%]{margin-right:-10px;margin-top:-16px}.topMenuIcon[_ngcontent-%COMP%] .topMenuSecondary[_ngcontent-%COMP%]{font-size:10px;margin-left:2px}.add-btn[_ngcontent-%COMP%]{margin-right:0;background-color:#001529;border:none;color:#ffffffa6}.notification-btn[_ngcontent-%COMP%]{background-color:#001529;border:1px solid #096dd9}li[_ngcontent-%COMP%] .org-name[_ngcontent-%COMP%]{margin-left:4px}.viewer-btn[_ngcontent-%COMP%]{background-color:#0050b3;border:none;color:#ccc;padding-left:5px;padding-right:10px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%], .viewer-btn[_ngcontent-%COMP%] cvc-organization-avatar[_ngcontent-%COMP%]{position:relative;top:-1px;left:1px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%] nz-avatar, .viewer-btn[_ngcontent-%COMP%] cvc-organization-avatar[_ngcontent-%COMP%] nz-avatar{border-width:1.5px;border-style:solid;border-color:#096dd9}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar.update-coi[_ngcontent-%COMP%] nz-avatar{border-color:#f5222d}.viewer-btn[_ngcontent-%COMP%] .org-label[_ngcontent-%COMP%]{margin:0 -4px 0 0;color:#aab}"],changeDetection:0})}return o})();var Hn=t(9502),H=t(1997),Zn=t(3236),wn=t(3226),ln=t(9030),Jn=t(2806),kn=t(5245),qn=t(3386),nt=t(5558),J=t(6354),tt=t(3294),k=t(9417),q=t(2986),et=t(4493),ot=t(3075);function it(o,p){if(1&o&&(n.j41(0,"span",8),n.EFF(1," \u2014 "),n.nrm(2,"span",6),n.k0s()),2&o){const i=n.XpG().$implicit;n.R7$(2),n.FS9("innerHTML",i.result.matchingText,n.npT)}}function at(o,p){if(1&o&&(n.j41(0,"nz-option",4),n.nrm(1,"i",5),n.nI1(2,"entityColor"),n.nI1(3,"iconNameForSubscribableEntity"),n.nrm(4,"span",6),n.DNE(5,it,3,1,"span",7),n.k0s()),2&o){const i=p.$implicit,s=n.XpG();n.Y8G("nzValue",i.result),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,5,s.converter(i.result.resultType)))("nzType",n.bMT(3,7,i.result.resultType)),n.R7$(3),n.FS9("innerHTML",i.result.name,n.npT),n.R7$(),n.Y8G("ngIf",i.result.matchingText)}}function st(o,p){1&o&&(n.j41(0,"nz-option",9),n.nrm(1,"i",10),n.EFF(2," Loading Data... "),n.k0s())}function rt(o,p){if(1&o&&(n.j41(0,"label",13),n.nrm(1,"i",14),n.nI1(2,"entityColor"),n.nI1(3,"iconNameForSubscribableEntity"),n.k0s()),2&o){const i=p.$implicit,s=n.XpG(2);n.Y8G("nzValue",i)("nzTooltipTitle",i)("ngModel",s.isSelected(i)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,5,i))("nzType",n.bMT(3,7,i))}}function lt(o,p){if(1&o){const i=n.RV6();n.nrm(0,"hr"),n.j41(1,"nz-checkbox-wrapper",11),n.bIt("nzOnChange",function(a){n.eBV(i);const P=n.XpG();return n.Njj(P.selectedEntitiesChanged(a))}),n.j41(2,"div",12),n.Z7z(3,rt,4,9,"label",13,n.fX1),n.k0s()()}if(2&o){const i=n.XpG();n.R7$(3),n.Dyx(i.searchableEntities)}}let ct=(()=>{class o{set selectedOpt(i){this._selectedOpt=i}get selectedOpt(){return this._selectedOpt}constructor(i,s){this.gql=i,this.router=s,this.selectedEntities=Object.values(A.cO8),this.searchableEntities=Object.keys(A.cO8),this.converter=Hn.q,this.onSearch$=new d.B,this.onSelect$=new d.B,this.response$=this.onSearch$.pipe((0,kn.i)(1),(0,qn.c)(300,Zn.E,{leading:!1,trailing:!0}),(0,nt.n)(E=>{this.currentSearchTerm=E;let B=this.selectedEntities;return(0,wn.T)(()=>void 0===this.queryRef,(0,ln.v)(()=>a(E,B)),(0,ln.v)(()=>P(E,B)))})),this.isLoading$=this.response$.pipe((0,J.T)(E=>E.loading),(0,K.p)(X.kP),(0,tt.F)()),this.result$=this.response$.pipe((0,J.T)(E=>E.data?.search),(0,K.p)(X.kP)),this.option$=this.result$.pipe((0,J.T)(E=>{const B=[];return E.forEach(N=>{N&&B.push({text:N.name,value:N.id.toString(),result:N})}),B})),this.onSelect$.subscribe(()=>{this.selectedOpt&&this.router.navigateByUrl(this.urlForResult(this.selectedOpt)),this.selectNode.writeValue(void 0)});const a=(E,B)=>(this.queryRef=this.gql.watch({query:E,highlightMatches:!0,types:B}),this.queryRef.valueChanges),P=(E,B)=>(0,Jn.H)(this.queryRef.refetch({query:E,types:B}))}urlForResult(i){let s;switch(i.resultType){case A.cO8.VariantGroup:s="variant-groups";break;case A.cO8.EvidenceItem:s="evidence";break;case A.cO8.MolecularProfile:s="molecular-profiles";break;case A.cO8.Therapy:s="therapies";break;default:s=`${i.resultType.toLowerCase()}s`}return`/${s}/${i.id}/summary`}selectedEntitiesChanged(i){this.selectedEntities=i.map(s=>A.cO8[s]),this.currentSearchTerm&&this.onSearch$.next(this.currentSearchTerm)}isSelected(i){return this.selectedEntities.includes(A.cO8[i])}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(A.kHr),n.rXU(m.Ix))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-quicksearch"]],viewQuery:function(s,a){if(1&s&&n.GBs(H.WI,7),2&s){let P;n.mGM(P=n.lsd())&&(a.selectNode=P.first)}},decls:7,vars:11,consts:[["searchEntities",""],["nzShowSearch","","nzServerSearch","","nzAllowClear","","nzPlaceHolder","Search CIViC",3,"ngModelChange","nzOnSearch","ngModel","nzOptionHeightPx","nzShowArrow","nzDropdownRender","nzDropdownMatchSelectWidth"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["nzDisabled","","nzCustomContent","",4,"ngIf"],["nzCustomContent","",3,"nzValue"],["nz-icon","","nzTheme","twotone",2,"margin-right","0.5em",3,"nzTwotoneColor","nzType"],[3,"innerHTML"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary"],["nzDisabled","","nzCustomContent",""],["nz-icon","","nzType","loading",1,"loading-icon"],[3,"nzOnChange"],[1,"entity-select"],["nz-checkbox","","nz-tooltip","",3,"nzValue","nzTooltipTitle","ngModel"],["nz-icon","","nzTheme","twotone","nzTool","",3,"nzTwotoneColor","nzType"]],template:function(s,a){if(1&s){const P=n.RV6();n.j41(0,"nz-select",1),n.mxI("ngModelChange",function(B){return n.eBV(P),n.DH7(a.selectedOpt,B)||(a.selectedOpt=B),n.Njj(B)}),n.bIt("ngModelChange",function(B){return n.eBV(P),n.Njj(a.onSelect$.next(B))})("nzOnSearch",function(B){return n.eBV(P),n.Njj(a.onSearch$.next(B))}),n.DNE(1,at,6,9,"nz-option",2),n.nI1(2,"ngrxPush"),n.DNE(3,st,3,0,"nz-option",3),n.nI1(4,"ngrxPush"),n.k0s(),n.DNE(5,lt,5,0,"ng-template",null,0,n.C5r)}if(2&s){const P=n.sdS(6);n.R50("ngModel",a.selectedOpt),n.Y8G("nzOptionHeightPx",28)("nzShowArrow",!1)("nzDropdownRender",P)("nzDropdownMatchSelectWidth",!1),n.R7$(),n.Y8G("ngForOf",n.bMT(2,7,a.option$)),n.R7$(2),n.Y8G("ngIf",n.bMT(4,9,a.isLoading$))}},dependencies:[e.Sq,e.bT,k.BC,k.vS,Y.Di,H.ld,H.WI,g.Dn,q.$g,q.wG,W.LH,Z.L9,et.g,ot.R],styles:[":[_nghost-%COMP%]{display:block}nz-select[_ngcontent-%COMP%]{width:100%}hr[_ngcontent-%COMP%]{border-color:#6666}.entity-select[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]})}return o})();const b=o=>({"is-collapsed":o});function dt(o,p){1&o&&n.nrm(0,"img",65)}function pt(o,p){1&o&&n.nrm(0,"img",66)}function mt(o,p){1&o&&n.nrm(0,"cvc-login-button")}function gt(o,p){if(1&o&&n.nrm(0,"cvc-viewer-button",67),2&o){const i=n.XpG();n.Y8G("cvcCollapsed",i.isCollapsed)}}const ut=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class o{constructor(i){this.viewerService=i,this.isCollapsed=!1}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.signedIn$=this.viewerService.signedIn$,this.signedOut$=this.viewerService.signedOut$,this.canCurate$=this.viewerService.canCurate$,this.canModerate$=this.viewerService.canModerate$}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(C.q))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-layout"]],decls:133,vars:53,consts:[[1,"app-layout"],["nzCollapsible","","nzBreakpoint","md",1,"app-sider",3,"nzCollapsedChange","nzWidth","nzCollapsedWidth","nzCollapsed","nzTrigger"],["routerLink","/"],[1,"sidebar-logo",3,"ngClass"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["nz-menu","","nzTheme","dark","nzMode","inline",1,"sidebar-menu",3,"ngClass","nzInlineCollapsed"],["nz-menu-group","",3,"nzTitle"],["nz-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-assertion"],["routerLink","/assertions"],["nz-icon","","nzType","civic-evidence"],["routerLink","/evidence"],["nz-icon","","nzType","civic-molecularprofile"],["routerLink","/molecular-profiles"],["nz-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzSelected","","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-feature"],["routerLink","/features"],["nz-icon","","nzType","civic-variant"],["routerLink","/variants"],["nz-icon","","nzType","civic-variantgroup"],["routerLink","/variant-groups"],["nz-icon","","nzType","civic-clinicaltrial"],["routerLink","/clinical-trials"],["nz-icon","","nzType","civic-disease"],["routerLink","/diseases"],["nz-icon","","nzType","civic-therapy"],["routerLink","/therapies"],["nz-icon","","nzType","civic-phenotype"],["routerLink","/phenotypes"],["nz-icon","","nzType","civic-source"],["routerLink","/sources"],["nz-icon","","nzType","civic-varianttype"],["routerLink","/variant-types"],["nz-icon","","nzType","civic-event"],["routerLink","/curation/activity"],["nz-icon","","nzType","civic-queue"],["routerLink","/curation/queues"],["nz-icon","","nzType","civic-curator"],["routerLink","/users","id","main-users"],["nz-icon","","nzType","civic-organization"],["routerLink","/organizations","id","main-organization"],["nz-icon","","nzType","download"],["routerLink","/releases","id","releases"],["nz-tooltip","","nzTooltipPlacement","rightTop","nzTooltipTitle","By marking the work with a CC0 public domain dedication, the creator is giving up their copyright and allowing reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",1,"cc-notice",3,"ngClass"],["src","assets/images/CC0-notice-glyph.svg","alt","CC0 1.0 Universal",1,"cc-glyph"],["src","assets/images/CC0-notice-txt.svg","alt","This work has been marked as dedicated to the public domain.",1,"cc-txt"],[1,"right-layout",3,"ngClass"],[3,"ngClass"],["nz-row","","id","header-row"],["nz-col","","nzFlex","40px"],[1,"header-trigger",3,"click"],["nz-icon","",1,"trigger",3,"nzType"],["nz-col","","id","header-search",3,"nzFlex"],["nz-col","","nzFlex","1 0 auto","id","header-menu"],["nz-menu","","nzMode","horizontal","nzTheme","dark"],["nz-menu-item","","nzSelected","","nzMatchRouter",""],["routerLink","/welcome"],["routerLink","/pages/about"],["routerLink","/pages/help"],["target","_blank","href","https://docs.civicdb.org/"],["nz-icon","","nzType","link"],["nz-col","","nzFlex","1 0 auto","id","header-viewer"],[4,"ngIf"],[3,"cvcCollapsed",4,"ngIf"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"],[3,"cvcCollapsed"]],template:function(s,a){1&s&&(n.j41(0,"nz-layout",0)(1,"nz-sider",1),n.mxI("nzCollapsedChange",function(E){return n.DH7(a.isCollapsed,E)||(a.isCollapsed=E),E}),n.j41(2,"a",2)(3,"div",3),n.DNE(4,dt,1,0,"img",4)(5,pt,1,0,"img",5),n.k0s()(),n.j41(6,"ul",6)(7,"li",7)(8,"ul")(9,"li",8),n.nrm(10,"i",9),n.j41(11,"a",10)(12,"span"),n.EFF(13,"Assertions"),n.k0s()()(),n.j41(14,"li",8),n.nrm(15,"i",11),n.j41(16,"a",12)(17,"span"),n.EFF(18,"Evidence"),n.k0s()()(),n.j41(19,"li",8),n.nrm(20,"i",13),n.j41(21,"a",14)(22,"span"),n.EFF(23,"Molecular Profiles"),n.k0s()()(),n.j41(24,"li",15),n.nrm(25,"i",16),n.j41(26,"a",17)(27,"span"),n.EFF(28,"Features"),n.k0s()()(),n.j41(29,"li",15),n.nrm(30,"i",18),n.j41(31,"a",19)(32,"span"),n.EFF(33,"Variants"),n.k0s()()(),n.j41(34,"li",15),n.nrm(35,"i",20),n.j41(36,"a",21)(37,"span"),n.EFF(38,"Variant Groups"),n.k0s()()()()(),n.j41(39,"li",8),n.nrm(40,"i",22),n.j41(41,"a",23)(42,"span"),n.EFF(43,"Clinical Trials"),n.k0s()()(),n.j41(44,"li",8),n.nrm(45,"i",24),n.j41(46,"a",25)(47,"span"),n.EFF(48,"Diseases"),n.k0s()()(),n.j41(49,"li",8),n.nrm(50,"i",26),n.j41(51,"a",27)(52,"span"),n.EFF(53,"Therapies"),n.k0s()()(),n.j41(54,"li",8),n.nrm(55,"i",28),n.j41(56,"a",29)(57,"span"),n.EFF(58,"Phenotypes"),n.k0s()()(),n.j41(59,"li",15),n.nrm(60,"i",30),n.j41(61,"a",31)(62,"span"),n.EFF(63,"Sources"),n.k0s()()(),n.j41(64,"li",8),n.nrm(65,"i",32),n.j41(66,"a",33)(67,"span"),n.EFF(68,"Variant Types"),n.k0s()()(),n.j41(69,"li",7)(70,"ul")(71,"li",8),n.nrm(72,"i",34),n.j41(73,"a",35)(74,"span"),n.EFF(75,"Activity"),n.k0s()()(),n.j41(76,"li",8),n.nrm(77,"i",36),n.j41(78,"a",37)(79,"span"),n.EFF(80,"Queues"),n.k0s()()()()(),n.j41(81,"li",7)(82,"ul")(83,"li",8),n.nrm(84,"i",38),n.j41(85,"a",39)(86,"span"),n.EFF(87,"Contributors"),n.k0s()()(),n.j41(88,"li",8),n.nrm(89,"i",40),n.j41(90,"a",41)(91,"span"),n.EFF(92,"Organizations"),n.k0s()()()()(),n.j41(93,"li",7)(94,"ul")(95,"li",8),n.nrm(96,"i",42),n.j41(97,"a",43)(98,"span"),n.EFF(99,"Data Releases"),n.k0s()()()()()(),n.j41(100,"div",44),n.nrm(101,"img",45)(102,"img",46),n.k0s()(),n.j41(103,"nz-layout",47)(104,"nz-header",48)(105,"div",49)(106,"div",50)(107,"span",51),n.bIt("click",function(){return a.isCollapsed=!a.isCollapsed}),n.nrm(108,"i",52),n.k0s()(),n.j41(109,"div",53),n.nrm(110,"cvc-quicksearch"),n.k0s(),n.j41(111,"div",54)(112,"ul",55)(113,"li",56)(114,"a",57),n.EFF(115,"Home"),n.k0s()(),n.j41(116,"li",56)(117,"a",58),n.EFF(118),n.k0s()(),n.j41(119,"li",56)(120,"a",59),n.EFF(121,"Help"),n.k0s()(),n.j41(122,"li",56)(123,"a",60),n.EFF(124),n.nrm(125,"i",61),n.k0s()()()(),n.j41(126,"div",62),n.DNE(127,mt,1,0,"cvc-login-button",63),n.nI1(128,"async"),n.DNE(129,gt,1,1,"cvc-viewer-button",64),n.nI1(130,"async"),n.k0s()()(),n.j41(131,"nz-content"),n.nrm(132,"router-outlet"),n.k0s()()()),2&s&&(n.R7$(),n.Y8G("nzWidth",170)("nzCollapsedWidth",80),n.R50("nzCollapsed",a.isCollapsed),n.Y8G("nzTrigger",null),n.R7$(2),n.Y8G("ngClass",n.eq3(43,b,a.isCollapsed)),n.R7$(),n.Y8G("ngIf",!a.isCollapsed),n.R7$(),n.Y8G("ngIf",a.isCollapsed),n.R7$(),n.Y8G("ngClass",n.eq3(45,b,a.isCollapsed))("nzInlineCollapsed",a.isCollapsed),n.R7$(),n.Y8G("nzTitle",a.isCollapsed?"KNOW":"KNOWLEDGEBASE"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Assertions":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Evidence":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Molecular Profiles":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Features":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variants":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variant Groups":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Clinical Trials":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Diseases":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Therapies":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Phenotypes":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Sources":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variant Types":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"CURATE":"CURATION"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Activity":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Pending Queues":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"COMM":"COMMUNITY"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Users":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Organizations":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"RES":"RESOURCES"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Data Releases":""),n.R7$(5),n.Y8G("ngClass",n.eq3(47,b,a.isCollapsed)),n.R7$(3),n.Y8G("ngClass",n.eq3(49,b,a.isCollapsed)),n.R7$(),n.Y8G("ngClass",n.eq3(51,b,a.isCollapsed)),n.R7$(4),n.Y8G("nzType",a.isCollapsed?"menu-unfold":"menu-fold"),n.R7$(),n.Y8G("nzFlex",a.isCollapsed?"90px":"150px"),n.R7$(9),n.JRh(a.isCollapsed?"About":"About CIViC"),n.R7$(6),n.SpI(" ",a.isCollapsed?"Docs":"Documentation"," "),n.R7$(3),n.Y8G("ngIf",n.bMT(128,39,a.signedOut$)),n.R7$(2),n.Y8G("ngIf",n.bMT(130,41,a.signedIn$)))},dependencies:[e.YU,e.bT,m.n3,m.Wk,g.Dn,I.Uq,I.e,cn,u,V,_,T.jS,T.CU,T.WQ,W.LH,pn.z,Qn,ct,e.Jj],styles:["[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-layout[_ngcontent-%COMP%]{min-height:100vh}nz-sider[_ngcontent-%COMP%]{width:170px;overflow:auto;height:100%;position:fixed;left:0}.right-layout[_ngcontent-%COMP%]{margin-left:170px;width:100%;position:relative;transition:all .2s,padding 0s;background-color:#001529}.right-layout.is-collapsed[_ngcontent-%COMP%]{margin-left:80px}.sidebar-menu[_ngcontent-%COMP%]{margin-top:-20px}.sidebar-menu[_ngcontent-%COMP%] .ant-menu-title-content .anticon{margin-right:4px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%]{margin-top:-8px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-item-group-title{text-align:center}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-title-content a span{display:none}.cc-notice[_ngcontent-%COMP%]{margin-top:5em;text-align:center;width:170px}.cc-notice[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:56px}.cc-notice[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{width:76px}.cc-notice.is-collapsed[_ngcontent-%COMP%]{width:80px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:35px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{display:none}.sidebar-logo[_ngcontent-%COMP%]{height:90px}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:133px;height:auto;margin:12px 16px;transition:all .2s}.sidebar-logo.is-collapsed[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:auto;margin:12px 20px;transition:all .2s}.ant-layout-header[_ngcontent-%COMP%]{height:64px;line-height:64px;padding:0;position:fixed;width:calc(100vw - 170px);z-index:10;color:#d6e4ff;transition:all .2s}.ant-layout-header.is-collapsed[_ngcontent-%COMP%]{transition:all .2s;width:calc(100vw - 80px)}.header-trigger[_ngcontent-%COMP%]{height:64px;cursor:pointer;color:#d6e4ff;padding:1em 1em 1em 0}#header-row[_ngcontent-%COMP%]{flex-wrap:nowrap}#header-menu[_ngcontent-%COMP%]{text-align:right;height:64px}#header-search[_ngcontent-%COMP%]{height:64px;padding-right:16px}#header-viewer[_ngcontent-%COMP%]{text-align:right;padding-right:1em}.header-quicksearch[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-user[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#d6e4ff}nz-content[_ngcontent-%COMP%]{margin-top:64px;overflow:initial;position:relative;z-index:1;background-color:#273340;border-top:1px solid #3e5166;border-left:1px solid #3e5166;padding:12px;border-top-left-radius:16px}"],changeDetection:0})}return o})(),children:[{path:"assertions",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(3236),t.e(4009),t.e(2076),t.e(6618)]).then(t.bind(t,5629)).then(o=>o.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"molecular-profiles",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(5076),t.e(8584)]).then(t.bind(t,7502)).then(o=>o.MolecularProfilesModule),data:{breadcrumb:"Molecular Profiles"}},{path:"clinical-trials",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(4439),t.e(1059)]).then(t.bind(t,8799)).then(o=>o.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(4514),t.e(3236),t.e(8696)]).then(t.bind(t,9754)).then(o=>o.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"therapies",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(3236),t.e(8191)]).then(t.bind(t,3178)).then(o=>o.TherapiesModule),data:{breadcrumb:"Therapies"}},{path:"evidence",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5627)]).then(t.bind(t,4414)).then(o=>o.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",redirectTo:"features",data:{breadcrumb:"Features"}},{path:"features",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(5528)]).then(t.bind(t,5528)).then(o=>o.FeaturesModule),data:{breadcrumb:"Features"}},{path:"organizations",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(4514),t.e(8313),t.e(3236),t.e(8606),t.e(5957),t.e(6903),t.e(2385),t.e(4362),t.e(2076),t.e(1781)]).then(t.bind(t,1781)).then(o=>o.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(3236),t.e(863)]).then(t.bind(t,8366)).then(o=>o.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(262),t.e(5957),t.e(4439),t.e(2664)]).then(t.bind(t,4967)).then(o=>o.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(3236),t.e(5957),t.e(8580)]).then(t.bind(t,2670)).then(o=>o.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(4514),t.e(8313),t.e(3236),t.e(8606),t.e(5957),t.e(6903),t.e(4362),t.e(4391)]).then(t.bind(t,4391)).then(o=>o.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(9034)]).then(t.bind(t,9034)).then(o=>o.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(1234),t.e(2971)]).then(t.bind(t,3889)).then(o=>o.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(1234),t.e(9452)]).then(t.bind(t,430)).then(o=>o.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([t.e(3967),t.e(1110),t.e(8313),t.e(8606),t.e(2846)]).then(t.bind(t,2057)).then(o=>o.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([t.e(5231),t.e(7732)]).then(t.bind(t,7732)).then(o=>o.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>t.e(5514).then(t.bind(t,5514)).then(o=>o.PagesModule),data:{breadcrumb:"Pages"}},{path:"forms",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5615),t.e(4009),t.e(2076),t.e(5179)]).then(t.bind(t,6126)).then(o=>o.TestPagesModule),data:{breadcrumb:"Forms Dev"}}]}];let ht=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[m.iI.forChild(ut),m.iI]})}return o})();var zt=t(776),Ct=t(1011),ft=t(8927),vt=t(8928),Tt=t(4917);let Mt=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,k.YN,m.iI,Tt.i,Y.kT,H.DH,Ct.j,ft.PQ,g.Y3,vt.jl,q.IJ,W.Qt]})}return o})();var Et=t(400),yt=t(3357),Ot=t(1232),It=t(7380),Pt=t(5285);let Dt=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,Q.Cu,m.iI,on.Zw,w.pc,g.Y3,an.W2,W.Qt,sn.U6,Y.kT,rn.Yb,yt.P,Ot.N,Pt.T,It.s]})}return o})(),St=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,ht,g.Y3,I.f3,dn,T.GP,W.Qt,Y.kT,zt.s,Et.a,Dt,Mt]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/1059.7b58b6858d8382fc.js b/server/public/1059.7b58b6858d8382fc.js new file mode 100644 index 000000000..c5addbdb0 --- /dev/null +++ b/server/public/1059.7b58b6858d8382fc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1059],{8920:(I,T,n)=>{n.d(T,{U:()=>m});var c=n(177),g=n(1188),_=n(5699),r=n(5103),t=n(7529),h=n(7054),s=n(2e3),C=n(5703),z=n(3357),u=n(3953);let M=(()=>{class d{static#t=this.\u0275fac=function(x){return new(x||d)};static#n=this.\u0275mod=u.$C({type:d});static#e=this.\u0275inj=u.G2t({imports:[c.MD,C.Ti,t.f3,s.WF,h.L,z.P]})}return d})();var y=n(1236);let m=(()=>{class d{static#t=this.\u0275fac=function(x){return new(x||d)};static#n=this.\u0275mod=u.$C({type:d});static#e=this.\u0275inj=u.G2t({imports:[c.MD,g.iI,_.T,r.Y3,y.MC,M]})}return d})()},9374:(I,T,n)=>{n.d(T,{r:()=>m});var c=n(177),g=n(2142),_=n(5699),r=n(1236),t=n(9192),h=n(8920),s=n(7051),C=n(9802),z=n(5493),u=n(6912),M=n(7086),y=n(3953);let m=(()=>{class d{static#t=this.\u0275fac=function(x){return new(x||d)};static#n=this.\u0275mod=y.$C({type:d});static#e=this.\u0275inj=y.G2t({imports:[c.MD,_.T,r.MC,g.x,C._,t.J,h.U,u.l,s.U,z.G,M.C]})}return d})()},5493:(I,T,n)=>{n.d(T,{G:()=>y});var c=n(177),g=n(1188),_=n(5699),r=n(5703),t=n(7054),h=n(2e3),s=n(5103),C=n(4917),z=n(3953);let u=(()=>{class m{static#t=this.\u0275fac=function(f){return new(f||m)};static#n=this.\u0275mod=z.$C({type:m});static#e=this.\u0275inj=z.G2t({imports:[c.MD,s.Y3,r.Ti,h.WF,C.i,t.L]})}return m})();var M=n(1236);let y=(()=>{class m{static#t=this.\u0275fac=function(f){return new(f||m)};static#n=this.\u0275mod=z.$C({type:m});static#e=this.\u0275inj=z.G2t({imports:[c.MD,g.iI,s.Y3,_.T,M.MC,u]})}return m})()},7292:(I,T,n)=>{n.d(T,{H:()=>_});var g=n(3953);let _=(()=>{class r{transform(h,s="display-string"){return void 0===h?"":"display-string"===s?function c(r){switch(r){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return r}}(h):`civic-${h.replace(/_/g,"").toLowerCase()}`}static#t=this.\u0275fac=function(s){return new(s||r)};static#n=this.\u0275pipe=g.EJ8({name:"therapyInteractionEnumDisplay",type:r,pure:!0})}return r})()},8799:(I,T,n)=>{n.r(T),n.d(T,{ClinicalTrialsModule:()=>At});var c=n(177),g=n(1188),_=n(9172),r=n(4608),t=n(3953),h=n(9145),s=n(3062),C=n(5103),z=n(7679),u=n(9765),M=n(1774),y=n(3075);function m(e,o){if(1&e&&(t.j41(0,"cvc-link-tag",5),t.EFF(1),t.k0s()),2&e){const a=t.XpG().ngIf;t.Y8G("href",a.url),t.R7$(),t.SpI(" ",a.nctId," ")}}function d(e,o){if(1&e&&(t.qex(0),t.nrm(1,"cvc-section-navigation",1),t.j41(2,"nz-page-header",2)(3,"nz-page-header-title"),t.nrm(4,"i",3),t.nI1(5,"entityColor"),t.EFF(6),t.k0s(),t.j41(7,"nz-page-header-extra"),t.DNE(8,m,2,2,"cvc-link-tag",4),t.k0s(),t.j41(9,"nz-page-header-content"),t.nrm(10,"router-outlet"),t.k0s()(),t.bVm()),2&e){const a=o.ngIf;t.R7$(),t.Y8G("displayName",a.nctId),t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(5,4,"ClinicalTrial")),t.R7$(2),t.SpI(" ",a.nctId," "),t.R7$(2),t.Y8G("ngIf",a.url)}}let E=(()=>{class e{constructor(a,i){this.route=a,this.gql=i,this.routeSub=this.route.params.subscribe(l=>{this.clinicalTrialId=+l.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let p=this.queryRef.valueChanges;this.loading$=p.pipe((0,r.E)("loading"),(0,_.Z)(!0)),this.clinicalTrial$=p.pipe((0,r.E)("data","clinicalTrial"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(g.nX),t.rXU(h.HKj))};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-clinical-trials-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],["tooltip","View on clinicaltrials.gov",3,"href",4,"ngIf"],["tooltip","View on clinicaltrials.gov",3,"href"]],template:function(i,l){1&i&&(t.DNE(0,d,11,6,"ng-container",0),t.nI1(1,"ngrxPush")),2&i&&t.Y8G("ngIf",t.bMT(1,1,l.clinicalTrial$))},dependencies:[c.bT,g.n3,s.WB,s.k9,s.zR,s.ov,C.Dn,z.a,u.n,M.L9,y.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return e})();var f=n(7529),x=n(513),U=n(6389),S=n(7391),$=n(7685),K=n(1635),W=n(9995),O=n(9894),L=n(4412),F=n(1413),b=n(9199),R=n(3294),w=n(7048),J=n(5245),P=n(5964),D=n(6354),Z=n(152),Q=n(3993),N=n(5703),v=n(9247),A=n(5699),V=n(5154),k=n(1852),q=n(1405),tt=n(435),nt=n(6726),et=n(3296),at=n(3431),it=n(2923);const ot=e=>({height:e}),lt=()=>[],rt=()=>({x:"680px",y:"800px"}),X=()=>["descend","ascend",null];function ct(e,o){}function st(e,o){if(1&e&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,ct,0,0,"ng-template",7),t.k0s(),t.bVm()),2&e){t.XpG();const a=t.sdS(4),i=t.sdS(6),l=t.sdS(8);t.R7$(),t.Y8G("nzTitle",i)("nzExtra",l),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function pt(e,o){}function dt(e,o){if(1&e&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,pt,0,0,"ng-template",7),t.k0s()()),2&e){const a=t.XpG(),i=t.sdS(4),l=t.sdS(6),p=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,ot,a.cvcHeight)),t.R7$(),t.Y8G("nzTitle",l)("nzExtra",p),t.R7$(),t.Y8G("ngTemplateOutlet",i)}}function gt(e,o){if(1&e&&(t.j41(0,"tr",24)(1,"td",20),t.nrm(2,"cvc-clinical-trial-tag",25),t.k0s(),t.j41(3,"td",26),t.EFF(4),t.k0s(),t.j41(5,"td",27),t.EFF(6),t.k0s(),t.j41(7,"td",27),t.EFF(8),t.k0s()()),2&e){const a=o.$implicit,i=t.XpG(2);t.R7$(2),t.Y8G("clinicalTrial",a),t.R7$(),t.Y8G("nzTooltipTitle",i.isScrolling?"":a.name),t.R7$(),t.SpI(" ",a.name," "),t.R7$(2),t.SpI(" ",a.sourceCount," "),t.R7$(2),t.SpI(" ",a.evidenceCount," ")}}function ht(e,o){if(1&e){const a=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(l){t.eBV(a);const p=t.XpG();return t.Njj(p.scrollEvent$.next(l))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(l){t.eBV(a);const p=t.XpG();return t.Njj(p.sortChange$.next(l))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," NCT ID "),t.k0s(),t.j41(10,"th",14),t.EFF(11," Name "),t.k0s(),t.j41(12,"th",15),t.nrm(13,"i",16),t.EFF(14," Count "),t.k0s(),t.j41(15,"th",17),t.nrm(16,"i",18),t.EFF(17," Count "),t.k0s()(),t.j41(18,"tr",19)(19,"th",20)(20,"cvc-clearable-input-filter",21),t.mxI("inputModelChange",function(l){t.eBV(a);const p=t.XpG();return t.DH7(p.nctIdFilter,l)||(p.nctIdFilter=l),t.Njj(l)}),t.bIt("inputModelChange",function(){t.eBV(a);const l=t.XpG();return t.Njj(l.filterChange$.next())}),t.k0s()(),t.j41(21,"th")(22,"cvc-clearable-input-filter",21),t.mxI("inputModelChange",function(l){t.eBV(a);const p=t.XpG();return t.DH7(p.nameFilter,l)||(p.nameFilter=l),t.Njj(l)}),t.bIt("inputModelChange",function(){t.eBV(a);const l=t.XpG();return t.Njj(l.filterChange$.next())}),t.k0s()(),t.nrm(23,"th",22)(24,"th",22),t.k0s()(),t.j41(25,"tbody"),t.DNE(26,gt,9,5,"ng-template",23),t.k0s()()}if(2&e){const a=t.XpG();t.Y8G("nzData",t.bMT(2,23,a.row$)||t.lJ4(31,lt))("nzLoading",!t.bMT(3,25,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.bMT(4,27,a.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,29,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.lJ4(32,rt))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",a.sortColumns.NctId)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",a.sortColumns.SourceCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(33,X)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(34,X)),t.R7$(5),t.R50("inputModel",a.nctIdFilter),t.R7$(2),t.R50("inputModel",a.nameFilter)}}function mt(e,o){}function ft(e,o){if(1&e&&(t.qex(0),t.DNE(1,mt,0,0,"ng-template",7),t.bVm()),2&e){const a=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",a.cvcTitleTemplate)}}function Ct(e,o){if(1&e&&(t.qex(0),t.EFF(1),t.bVm()),2&e){const a=t.XpG(2);t.R7$(),t.SpI(" ",a.cvcTitle," ")}}function ut(e,o){if(1&e&&(t.DNE(0,ft,2,1,"ng-container",28)(1,Ct,2,1,"ng-container",28),t.j41(2,"span",29),t.nrm(3,"cvc-table-counts",30),t.k0s()),2&e){const a=t.XpG();t.Y8G("ngIf",a.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",a.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",a.connection$)}}function vt(e,o){1&e&&(t.j41(0,"nz-tag",33),t.nrm(1,"i",34),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function Tt(e,o){if(1&e&&(t.DNE(0,vt,4,0,"nz-tag",31),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",32),t.nI1(3,"ngrxPush")),2&e){const a=t.XpG();t.Y8G("ngIf",t.bMT(1,2,a.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,a.noMoreRows$))}}let G=class Y{set initialUserFilters(o){o&&Object.assign(this,o)}constructor(o,a){this.gql=o,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=h.d52,this.noMoreRows$=new L.t(!1),this.scrollEvent$=new L.t("stop"),this.sortChange$=new F.B,this.filterChange$=new F.B,this.scrollIndex$=new F.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,r.E)("loading"),(0,R.F)(),(0,w.v)(o=>!1!==o,!0)),this.moreLoading$=this.result$.pipe((0,r.E)("loading"),(0,R.F)(),(0,J.i)(2)),this.connection$=this.result$.pipe((0,r.E)("data","clinicalTrials"),(0,P.p)(b.kP)),this.row$=this.connection$.pipe((0,r.E)("edges"),(0,P.p)(b.kP),(0,D.T)(o=>o.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,r.E)("pageInfo"),(0,P.p)(b.kP)),this.sortChange$.pipe((0,O.s)(this)).subscribe(o=>{this.queryRef.refetch({sortBy:(0,W.X)(o)})}),this.filterChange$.pipe((0,Z.B)(500),(0,O.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,D.T)(o=>"stop"!==o),(0,R.F)(),(0,O.s)(this)).subscribe(o=>{this.isScrolling=o,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,P.p)(o=>"bottom"===o),(0,Q.E)(this.pageInfo$),(0,D.T)(([o,a])=>a),(0,O.s)(this)).subscribe(o=>{o.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameFilter,nctId:this.nctIdFilter}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(o,a){return a?.id}static#t=this.\u0275fac=function(a){return new(a||Y)(t.rXU(h.Fq8),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:Y,selectors:[["cvc-clinical-trials-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","600px",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Source Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-source"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"clinicalTrial"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,i){if(1&a&&t.DNE(0,st,3,3,"ng-container",5)(1,dt,3,6,"ng-template",null,0,t.C5r)(3,ht,27,35,"ng-template",null,1,t.C5r)(5,ut,4,3,"ng-template",null,2,t.C5r)(7,Tt,4,6,"ng-template",null,3,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",!i.cvcHeight)("ngIfElse",l)}},dependencies:[c.bT,c.T3,c.B3,U.c,N.cK,C.Dn,v.CP,v.Cc,v.SO,v._4,v.IL,v.aj,v.kt,v.CC,v.OL,v.jc,A.s,V.LH,k.M,q.s,tt.n,nt.X,et.M,at.y,it.f,M.L9],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]})};function zt(e,o){1&e&&(t.j41(0,"a",13),t.nrm(1,"i",14),t.EFF(2," View Clinical Trial Docs "),t.k0s())}G=(0,K.Cg)([(0,O.d)()],G);let _t=(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["clinical-trials-home"]],decls:19,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/clinical_trial.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Clinical Trials"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/clinical_trial.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(i,l){1&i&&(t.nrm(0,"cvc-section-navigation"),t.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t.nrm(5,"i",3),t.nI1(6,"entityColor"),t.k0s(),t.j41(7,"nz-col",4)(8,"h2"),t.EFF(9,"Clinical Trials"),t.k0s(),t.j41(10,"p",5),t.EFF(11," CIViC automatically associates a Clinical Trial to an Evidence Item if its associated Source's PubMed record provides a clinical trial ID. This ID is not directly curatable. "),t.k0s()(),t.j41(12,"nz-col",6)(13,"nz-space",7),t.DNE(14,zt,3,0,"a",8),t.k0s()()(),t.j41(15,"div",9)(16,"div",10)(17,"div",11),t.nrm(18,"cvc-clinical-trials-table",12),t.k0s()()()()()),2&i&&(t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(6,3,"ClinicalTrial")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(6),t.Y8G("nzSpan",24))},dependencies:[f.Uq,f.e,s.WB,s.zR,C.Dn,x.aO,U.c,S.Di,$.U5,$.Dq,G,u.n,y.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return e})();var j=n(2e3),Mt=n(8199),yt=n(4644);const xt=()=>[8,16];function Pt(e,o){if(1&e&&(t.qex(0),t.j41(1,"nz-row",1)(2,"nz-col",2)(3,"nz-descriptions",3)(4,"nz-descriptions-item",4),t.EFF(5),t.k0s()()(),t.j41(6,"nz-col",2),t.nrm(7,"cvc-sources-table",5),t.k0s(),t.j41(8,"nz-col",2),t.nrm(9,"cvc-evidence-table",6),t.k0s()(),t.bVm()),2&e){const a=o.ngIf,i=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(13,xt)),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("nzBordered",!0),t.R7$(2),t.SpI(" ",a.description," "),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Mz_("cvcTitle","",a.nctId," Sources"),t.Y8G("clinicalTrialId",i.clinicalTrialId)("cvcHeight",400),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Mz_("cvcTitle","",a.nctId," Evidence"),t.Y8G("clinicalTrialId",i.clinicalTrialId)}}const Ot=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-clinical-trials"]],decls:1,vars:0,template:function(i,l){1&i&&t.nrm(0,"router-outlet")},dependencies:[g.n3],encapsulation:2})}return e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:_t,data:{breadcrumb:"Home"}},{path:":clinicalTrialId",component:E,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(a,i){this.route=a,this.gql=i,this.routeSub=this.route.params.subscribe(l=>{this.clinicalTrialId=+l.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let p=this.queryRef.valueChanges;this.loading$=p.pipe((0,r.E)("loading"),(0,P.p)(b.kP)),this.clinicalTrial$=p.pipe((0,r.E)("data","clinicalTrial"),(0,P.p)(b.kP))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(g.nX),t.rXU(h.KiN))};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-clinical-trials-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small",3,"nzBordered"],["nzTitle","Description"],[3,"clinicalTrialId","cvcTitle","cvcHeight"],[3,"clinicalTrialId","cvcTitle"]],template:function(i,l){1&i&&(t.DNE(0,Pt,10,14,"ng-container",0),t.nI1(1,"ngrxPush")),2&i&&t.Y8G("ngIf",t.bMT(1,1,l.clinicalTrial$))},dependencies:[c.bT,j.xA,j.gr,f.Uq,f.e,Mt.N,yt.y,M.L9],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}"],changeDetection:0})}return e})(),data:{breadcrumb:"Summary"}}]}]}];let bt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[g.iI.forChild(Ot),g.iI]})}return e})();var It=n(7874),Et=n(9214),St=n(4998),B=n(4917),$t=n(4256),Ft=n(4450),Rt=n(8252),Dt=n(9619);let Gt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,x.Zw,N.Ti,C.Y3,v.$G,A.T,V.Qt,S.kT,B.i,$t.t,Ft.B,It.E,Dt.u,Et.y,St.B,Rt.A]})}return e})();var H=n(4124);let jt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,f.f3,s.ZJ,C.Y3,x.Zw,S.kT,$.pc,Gt,H.C,B.i]})}return e})();var Bt=n(7054);let Yt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,g.iI,s.ZJ,C.Y3,Bt.L,H.C,B.i]})}return e})();var Ut=n(4531),Lt=n(5443);let Nt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,j.WF,f.f3,Ut.C,Lt.n]})}return e})(),At=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,bt,jt,Yt,Nt]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/1136.bfedce7cea07aeba.js b/server/public/1136.bfedce7cea07aeba.js deleted file mode 100644 index 7987dbb0f..000000000 --- a/server/public/1136.bfedce7cea07aeba.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1136],{6936:(D,I,n)=>{n.d(I,{G:()=>x});var d=n(177),o=n(1188),p=n(5699),m=n(1236),T=n(5103),C=n(4666),z=n(4917),S=n(3146),f=n(4994),g=n(3953);let x=(()=>{class _{static#t=this.\u0275fac=function(E){return new(E||_)};static#n=this.\u0275mod=g.$C({type:_});static#e=this.\u0275inj=g.G2t({imports:[d.MD,o.iI,S.W2,p.T,m.MC,T.Y3,C.v,z.i,f.a]})}return _})()},8920:(D,I,n)=>{n.d(I,{U:()=>v});var d=n(177),o=n(1188),p=n(5699),m=n(5103),T=n(7529),C=n(7054),z=n(2e3),S=n(5703),f=n(3357),g=n(3953);let x=(()=>{class h{static#t=this.\u0275fac=function(b){return new(b||h)};static#n=this.\u0275mod=g.$C({type:h});static#e=this.\u0275inj=g.G2t({imports:[d.MD,S.Ti,T.f3,z.WF,C.L,f.P]})}return h})();var _=n(1236);let v=(()=>{class h{static#t=this.\u0275fac=function(b){return new(b||h)};static#n=this.\u0275mod=g.$C({type:h});static#e=this.\u0275inj=g.G2t({imports:[d.MD,o.iI,p.T,m.Y3,_.MC,x]})}return h})()},959:(D,I,n)=>{n.d(I,{j:()=>T});var d=n(3953),o=n(3100),p=n(3245),m=n(4247);let T=(()=>{class C{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(f){return new(f||C)};static#n=this.\u0275cmp=d.VBU({type:C,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(f,g){1&f&&(d.j41(0,"cvc-tag-group"),d.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),d.k0s()),2&f&&(d.R7$(),d.Y8G("feature",g.feature)("enablePopover",g.enablePopover)("truncateLongName",g.truncateLongName),d.R7$(),d.Y8G("variant",g.variant)("enablePopover",g.enablePopover)("truncateLongName",g.truncateLongName))},dependencies:[o.V,p._,m.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return C})()},9374:(D,I,n)=>{n.d(I,{r:()=>v});var d=n(177),o=n(2142),p=n(5699),m=n(1236),T=n(9192),C=n(8920),z=n(7051),S=n(9802),f=n(5493),g=n(6912),x=n(7086),_=n(3953);let v=(()=>{class h{static#t=this.\u0275fac=function(b){return new(b||h)};static#n=this.\u0275mod=_.$C({type:h});static#e=this.\u0275inj=_.G2t({imports:[d.MD,p.T,m.MC,o.x,S._,T.J,C.U,g.l,z.U,f.G,x.C]})}return h})()},3340:(D,I,n)=>{n.d(I,{E:()=>w});var d=n(1635),o=n(9995),p=n(9145),m=n(9894),T=n(4412),C=n(1413),z=n(9199),S=n(6354),f=n(3294),g=n(7048),x=n(5245),_=n(5964),v=n(152),h=n(3993),E=n(4608),t=n(3953),b=n(1305),y=n(177),O=n(9417),F=n(1188),$=n(513),N=n(6389),V=n(5930),Y=n(5703),B=n(5103),L=n(1236),R=n(1997),G=n(9247),U=n(5699),X=n(5154),A=n(2923),W=n(3431),K=n(3296),H=n(1852),J=n(1405),Q=n(435),s=n(9861),P=n(9062),l=n(6977),M=n(1226),j=n(4222),Z=n(2983),nt=n(3617),et=n(1011),q=n(7685),ot=n(9449),at=n(1939);function rt(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-alert",6),t.bIt("nzOnClose",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.onSuccessBannerClose())}),t.k0s()}}function it(a,i){if(1&a&&t.nrm(0,"cvc-form-errors-alert",7),2&a){const e=t.XpG();t.Y8G("errors",e.errorMessages)}}function st(a,i){if(1&a){const e=t.RV6();t.j41(0,"textarea",8),t.mxI("ngModelChange",function(r){t.eBV(e);const u=t.XpG();return t.DH7(u.reason,r)||(u.reason=r),t.Njj(r)}),t.k0s()}if(2&a){const e=t.XpG();t.R50("ngModel",e.reason)}}function ct(a,i){1&a&&t.nrm(0,"nz-option",13)}function lt(a,i){1&a&&t.nrm(0,"nz-option",14)}function gt(a,i){1&a&&t.nrm(0,"nz-option",15)}function ut(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-select",9),t.mxI("ngModelChange",function(r){t.eBV(e);const u=t.XpG();return t.DH7(u.newStatus,r)||(u.newStatus=r),t.Njj(r)}),t.DNE(1,ct,1,0,"nz-option",10)(2,lt,1,0,"nz-option",11)(3,gt,1,0,"nz-option",12),t.k0s()}if(2&a){const e=t.XpG();t.R50("ngModel",e.newStatus),t.R7$(),t.Y8G("ngIf","NEW"==e.currentStatus),t.R7$(),t.Y8G("ngIf","NEW"!=e.currentStatus),t.R7$(),t.Y8G("ngIf","NEW"==e.currentStatus)}}function pt(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-spin",16)(1,"cvc-form-buttons")(2,"button",17),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.updateSourceSuggestionStatus())}),t.EFF(3," Update Source Suggestion status "),t.k0s()()()}if(2&a){const e=t.XpG();t.Y8G("nzSpinning",e.loading),t.R7$(2),t.Y8G("disabled",e.loading)}}let mt=(()=>{class a{constructor(e,c,r){this.viewerService=e,this.networkErrorService=c,this.updateSuggestionStatusGql=r,this.commentAddedEvent=new t.bkB,this.destroy$=new C.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,l.Q)(this.destroy$)).subscribe(u=>{this.organizations=u.organizations,this.mostRecentOrg=u.mostRecentOrg}),this.sourceSuggestionStatusMutator=new M.E(c)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){if(this.newStatus){let e=this.sourceSuggestionStatusMutator.mutate(this.updateSuggestionStatusGql,{input:{id:this.sourceSuggestionId,newStatus:this.newStatus,reason:this.reason,organizationId:this.mostRecentOrg?.id}});e.submitSuccess$.pipe((0,l.Q)(this.destroy$)).subscribe(c=>{this.resetForm(),this.success=!0}),e.submitError$.pipe((0,l.Q)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c)}),e.isSubmitting$.pipe((0,l.Q)(this.destroy$)).subscribe(c=>{this.loading=c})}}resetForm(){this.commentText=""}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(c){return new(c||a)(t.rXU(b.q),t.rXU(j.N),t.rXU(p.v8x))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["cvc-update-source-suggestion-form"]],inputs:{sourceSuggestionId:"sourceSuggestionId",currentStatus:"currentStatus"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:7,vars:2,consts:[["nzDirection","vertical"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[3,"errors",4,"ngIf"],["rows","4","nz-input","",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"],["rows","4","nz-input","",3,"ngModelChange","ngModel"],["nzPlaceHolder","New Status","required","true",3,"ngModelChange","ngModel"],["nzValue","CURATED","nzLabel","Curated",4,"ngIf"],["nzValue","NEW","nzLabel","New",4,"ngIf"],["nzValue","REJECTED","nzLabel","Rejected",4,"ngIf"],["nzValue","CURATED","nzLabel","Curated"],["nzValue","NEW","nzLabel","New"],["nzValue","REJECTED","nzLabel","Rejected"],["nzTip","Submitting",3,"nzSpinning"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"click","disabled"]],template:function(c,r){1&c&&(t.j41(0,"nz-card")(1,"nz-space",0),t.DNE(2,rt,1,0,"nz-alert",1)(3,it,1,1,"cvc-form-errors-alert",2)(4,st,1,1,"textarea",3)(5,ut,4,4,"nz-select",4)(6,pt,4,2,"nz-spin",5),t.k0s()()),2&c&&(t.R7$(2),t.Y8G("ngIf",r.success),t.R7$(),t.Y8G("ngIf",r.errorMessages.length))},dependencies:[y.bT,O.me,O.BC,O.YS,$.aO,N.c,V.p,Y.cK,Z.a,nt.Y,et.Sy,R.ld,R.WI,q.U5,q.Dq,O.vS,ot.j,at.l],encapsulation:2})}return a})();var dt=n(6408),_t=n(5473),vt=n(4126),Ct=n(1774),ft=n(3075);const ht=a=>({height:a}),zt=()=>[],Tt=()=>({x:"680px",y:"800px"}),St=()=>["descend","ascend",null],tt=()=>({width:"300px"}),It=(a,i,e)=>({molecularProfileId:a,sourceId:i,diseaseId:e});function Mt(a,i){}function Pt(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-card",10),t.DNE(2,Mt,0,0,"ng-template",11),t.k0s(),t.bVm()),2&a){t.XpG();const e=t.sdS(4),c=t.sdS(8),r=t.sdS(10);t.R7$(),t.Y8G("nzTitle",c)("nzExtra",r),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Gt(a,i){}function xt(a,i){if(1&a&&(t.j41(0,"div",12)(1,"nz-card",13),t.DNE(2,Gt,0,0,"ng-template",11),t.k0s()()),2&a){const e=t.XpG(),c=t.sdS(4),r=t.sdS(8),u=t.sdS(10);t.Y8G("ngStyle",t.eq3(4,ht,e.cvcHeight)),t.R7$(),t.Y8G("nzTitle",r)("nzExtra",u),t.R7$(),t.Y8G("ngTemplateOutlet",c)}}function Et(a,i){if(1&a){const e=t.RV6();t.j41(0,"cvc-clearable-input-filter",32),t.mxI("inputModelChange",function(r){t.eBV(e);const u=t.XpG(2);return t.DH7(u.submitterInput,r)||(u.submitterInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.filterChange$.next())}),t.k0s()}if(2&a){const e=t.XpG(2);t.R50("inputModel",e.submitterInput)}}function yt(a,i){1&a&&t.eu8(0)}function Ot(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-tag",54),t.DNE(2,yt,1,0,"ng-container",55),t.EFF(3),t.nI1(4,"lowercase"),t.k0s(),t.bVm()),2&a){const e=t.XpG().$implicit,c=t.sdS(8);t.R7$(2),t.Y8G("ngTemplateOutlet",c),t.R7$(),t.SpI(" ",t.bMT(4,2,e.status)," ")}}function bt(a,i){1&a&&t.eu8(0)}function Dt(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-tag",56),t.DNE(2,bt,1,0,"ng-container",55),t.EFF(3),t.nI1(4,"lowercase"),t.k0s(),t.bVm()),2&a){const e=t.XpG().$implicit,c=t.sdS(8);t.R7$(2),t.Y8G("ngTemplateOutlet",c),t.R7$(),t.SpI(" ",t.bMT(4,2,e.status)," ")}}function Rt(a,i){1&a&&t.eu8(0)}function $t(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-tag",57),t.DNE(2,Rt,1,0,"ng-container",55),t.EFF(3),t.nI1(4,"lowercase"),t.k0s(),t.bVm()),2&a){const e=t.XpG().$implicit,c=t.sdS(8);t.R7$(2),t.Y8G("ngTemplateOutlet",c),t.R7$(),t.SpI(" ",t.bMT(4,2,e.status)," ")}}function jt(a,i){if(1&a&&t.nrm(0,"i",59),2&a){t.XpG(2);const e=t.sdS(10),c=t.XpG(2);t.Y8G("nzPopoverContent",c.isScrolling?"":e)("nzPopoverOverlayStyle",t.lJ4(2,tt))}}function Ft(a,i){if(1&a&&t.DNE(0,jt,1,3,"i",58),2&a){const e=t.XpG().$implicit;t.Y8G("ngIf",e.lastStatusUpdateActivity&&e.lastStatusUpdateActivity.parsedNote.length>0)}}function Nt(a,i){if(1&a&&t.nrm(0,"cvc-comment-body",60),2&a){const e=t.XpG().$implicit;t.Y8G("commentBodySegments",e.lastStatusUpdateActivity.parsedNote)}}function Vt(a,i){if(1&a&&t.nrm(0,"cvc-source-tag",61),2&a){const e=t.XpG().$implicit;t.Y8G("source",e.source)}}function Yt(a,i){if(1&a&&t.nrm(0,"cvc-comment-body",60),2&a){const e=t.XpG().$implicit;t.Y8G("commentBodySegments",e.creationActivity.parsedNote)}}function Bt(a,i){if(1&a&&t.nrm(0,"cvc-user-tag",62),2&a){const e=t.XpG().$implicit;t.Y8G("user",e.user)}}function Lt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.source.displayType," ")}}function Ut(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.source.citationId," ")}}function Xt(a,i){if(1&a&&t.nrm(0,"cvc-molecular-profile-tag",63),2&a){const e=t.XpG().$implicit;t.Y8G("molecularProfile",e.molecularProfile)}}function At(a,i){if(1&a&&t.nrm(0,"cvc-disease-tag",64),2&a){const e=t.XpG().$implicit;t.Y8G("disease",e.disease)("truncateLongName",!0)}}function Wt(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-button-group")(1,"button",65),t.nrm(2,"i",66),t.k0s(),t.j41(3,"button",67),t.bIt("click",function(){t.eBV(e);const r=t.XpG().$implicit,u=t.XpG(2);return t.Njj(u.setFormInputs(r.id,r.status))}),t.nrm(4,"i",68),t.k0s()()}if(2&a){const e=t.XpG().$implicit,c=t.XpG(2),r=t.sdS(6);t.R7$(),t.Y8G("queryParams",t.sMw(7,It,null==e.molecularProfile?null:e.molecularProfile.id,null==e.source?null:e.source.id,null==e.disease?null:e.disease.id))("disabled",e.status!=c.status.New)("nzTooltipTitle",c.isScrolling?"":"Create Evidence with this Source")("nzTooltipMouseEnterDelay",1),t.R7$(2),t.Y8G("nzTooltipTitle",c.isScrolling?"":"Manage Source Suggestion")("nzTooltipMouseEnterDelay",1)("nzPopoverContent",r)}}function Kt(a,i){1&a&&(t.qex(0),t.EFF(1," -- "),t.bVm())}function Ht(a,i){if(1&a&&(t.j41(0,"tr",42)(1,"td",43),t.qex(2,44),t.nI1(3,"lowercase"),t.DNE(4,Ot,5,4,"ng-container",45)(5,Dt,5,4,"ng-container",45)(6,$t,5,4,"ng-container",45)(7,Ft,1,1,"ng-template",null,6,t.C5r)(9,Nt,1,1,"ng-template",null,7,t.C5r),t.bVm(),t.k0s(),t.j41(11,"td",27),t.DNE(12,Vt,1,1,"cvc-source-tag",46),t.k0s(),t.j41(13,"td",47),t.nrm(14,"i",20),t.nI1(15,"entityColor"),t.DNE(16,Yt,1,1,"ng-template",null,8,t.C5r),t.k0s(),t.j41(18,"td"),t.DNE(19,Bt,1,1,"cvc-user-tag",48),t.k0s(),t.j41(20,"td"),t.DNE(21,Lt,2,1,"ng-container",49),t.k0s(),t.j41(22,"td"),t.DNE(23,Ut,2,1,"ng-container",49),t.k0s(),t.j41(24,"td"),t.DNE(25,Xt,1,1,"cvc-molecular-profile-tag",50),t.k0s(),t.j41(26,"td"),t.DNE(27,At,1,2,"cvc-disease-tag",51),t.k0s(),t.j41(28,"td",52),t.EFF(29),t.nI1(30,"date"),t.k0s(),t.j41(31,"td",53),t.DNE(32,Wt,5,11,"nz-button-group",49)(33,Kt,2,0,"ng-container",49),t.k0s()()),2&a){const e=i.$implicit,c=t.sdS(17),r=t.XpG(2);t.R7$(2),t.Y8G("ngSwitch",t.bMT(3,16,e.status)),t.R7$(2),t.Y8G("ngSwitchCase","curated"),t.R7$(),t.Y8G("ngSwitchCase","new"),t.R7$(),t.Y8G("ngSwitchCase","rejected"),t.R7$(6),t.Y8G("ngIf",e.source),t.R7$(),t.Y8G("nzPopoverContent",r.isScrolling?"":c)("nzPopoverOverlayStyle",t.lJ4(22,tt)),t.R7$(),t.Y8G("nzTwotoneColor",t.bMT(15,18,"Comment")),t.R7$(5),t.Y8G("ngIf",e.user),t.R7$(2),t.Y8G("ngIf",e.source),t.R7$(2),t.Y8G("ngIf",e.source),t.R7$(2),t.Y8G("ngIf",e.molecularProfile),t.R7$(2),t.Y8G("ngIf",e.disease),t.R7$(2),t.SpI(" ",t.bMT(30,20,e.createdAt)," "),t.R7$(3),t.Y8G("ngIf",r.isSignedIn),t.R7$(),t.Y8G("ngIf",!r.isSignedIn)}}function Jt(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-table",14,5),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(r){t.eBV(e);const u=t.XpG();return t.Njj(u.scrollEvent$.next(r))}),t.j41(6,"thead",15),t.bIt("nzSortOrderChange",function(r){t.eBV(e);const u=t.XpG();return t.Njj(u.sortChange$.next(r))}),t.j41(7,"tr",16)(8,"th",17),t.EFF(9," Status "),t.k0s(),t.j41(10,"th",18),t.EFF(11," Citation "),t.k0s(),t.j41(12,"th",19),t.nrm(13,"i",20),t.nI1(14,"entityColor"),t.k0s(),t.j41(15,"th",21),t.EFF(16," Submitter "),t.k0s(),t.j41(17,"th",22),t.EFF(18," Type "),t.k0s(),t.j41(19,"th",22),t.EFF(20," ID "),t.k0s(),t.j41(21,"th",23),t.EFF(22,"Molecular Profile"),t.k0s(),t.j41(23,"th",21),t.EFF(24," Disease "),t.k0s(),t.j41(25,"th",24),t.EFF(26," Submitted "),t.k0s(),t.j41(27,"th",25),t.EFF(28," Actions "),t.k0s()(),t.j41(29,"tr",26)(30,"th",27)(31,"nz-select",28),t.bIt("ngModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.mxI("ngModelChange",function(r){t.eBV(e);const u=t.XpG();return t.DH7(u.statusInput,r)||(u.statusInput=r),t.Njj(r)}),t.nrm(32,"nz-option",29)(33,"nz-option",30)(34,"nz-option",31),t.k0s()(),t.j41(35,"th",27)(36,"cvc-clearable-input-filter",32),t.mxI("inputModelChange",function(r){t.eBV(e);const u=t.XpG();return t.DH7(u.citationInput,r)||(u.citationInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.nrm(37,"th"),t.j41(38,"th"),t.DNE(39,Et,1,1,"cvc-clearable-input-filter",33),t.k0s(),t.j41(40,"th")(41,"nz-select",34),t.bIt("ngModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.mxI("ngModelChange",function(r){t.eBV(e);const u=t.XpG();return t.DH7(u.sourceTypeInput,r)||(u.sourceTypeInput=r),t.Njj(r)}),t.nrm(42,"nz-option",35)(43,"nz-option",36),t.k0s()(),t.j41(44,"th")(45,"cvc-clearable-input-filter",37),t.mxI("inputModelChange",function(r){t.eBV(e);const u=t.XpG();return t.DH7(u.citationIdInput,r)||(u.citationIdInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(46,"th")(47,"cvc-clearable-input-filter",38),t.mxI("inputModelChange",function(r){t.eBV(e);const u=t.XpG();return t.DH7(u.molecularProfileNameInput,r)||(u.molecularProfileNameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(48,"th")(49,"cvc-clearable-input-filter",39),t.mxI("inputModelChange",function(r){t.eBV(e);const u=t.XpG();return t.DH7(u.diseaseNameInput,r)||(u.diseaseNameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.nrm(50,"th")(51,"th",40),t.k0s()(),t.j41(52,"tbody"),t.DNE(53,Ht,34,23,"ng-template",41),t.k0s()()}if(2&a){const e=t.XpG();t.Y8G("nzData",t.bMT(2,33,e.row$)||t.lJ4(43,zt))("nzLoading",!t.bMT(3,35,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.bMT(4,37,e.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,39,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.lJ4(44,Tt))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(10),t.Y8G("nzColumnKey",e.sortColumns.Citation)("nzSortFn",!0),t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(14,41,"Comment")),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.Submitter)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.SourceType)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.CitationId)("nzSortFn",!0),t.R7$(4),t.Y8G("nzColumnKey",e.sortColumns.DiseaseName)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.CreatedAt)("nzSortDirections",t.lJ4(45,St))("nzSortFn",!0),t.R7$(6),t.Y8G("nzDropdownMatchSelectWidth",!1),t.R50("ngModel",e.statusInput),t.R7$(5),t.R50("inputModel",e.citationInput),t.R7$(3),t.Y8G("ngIf",!e.submitterId),t.R7$(2),t.R50("ngModel",e.sourceTypeInput),t.R7$(4),t.R50("inputModel",e.citationIdInput),t.R7$(2),t.R50("inputModel",e.molecularProfileNameInput),t.R7$(2),t.R50("inputModel",e.diseaseNameInput)}}function Qt(a,i){if(1&a&&t.nrm(0,"cvc-update-source-suggestion-form",70),2&a){const e=t.XpG(2);t.Y8G("currentStatus",e.selectedStatus)("sourceSuggestionId",e.selectedSourceId)}}function Zt(a,i){if(1&a&&t.DNE(0,Qt,1,2,"cvc-update-source-suggestion-form",69),2&a){const e=t.XpG();t.Y8G("ngIf",e.selectedSourceId&&e.selectedStatus)}}function wt(a,i){}function kt(a,i){if(1&a&&(t.qex(0),t.DNE(1,wt,0,0,"ng-template",11),t.bVm()),2&a){const e=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",e.cvcTitleTemplate)}}function qt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.cvcTitle," ")}}function tn(a,i){if(1&a&&(t.nrm(0,"i",71),t.nI1(1,"entityColor"),t.DNE(2,kt,2,1,"ng-container",49)(3,qt,2,1,"ng-container",49),t.j41(4,"span",72),t.nrm(5,"cvc-table-counts",73),t.k0s()),2&a){const e=t.XpG();t.Y8G("nzTwotoneColor",t.bMT(1,4,"Source")),t.R7$(2),t.Y8G("ngIf",e.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",e.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",e.connection$)}}function nn(a,i){1&a&&(t.j41(0,"nz-tag",76),t.nrm(1,"i",77),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function en(a,i){if(1&a&&(t.DNE(0,nn,4,0,"nz-tag",74),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",75),t.nI1(3,"ngrxPush")),2&a){const e=t.XpG();t.Y8G("ngIf",t.bMT(1,2,e.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,e.noMoreRows$))}}let w=class k{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,e,c){this.gql=i,this.viewerService=e,this.cdr=c,this.initialPageSize=35,this.isScrolling=!1,this.statusInput=p._f.New,this.sortColumns=p.wVR,this.status=p._f,this.showManageForm=!1,this.noMoreRows$=new T.t(!1),this.scrollEvent$=new T.t("stop"),this.sortChange$=new C.B,this.filterChange$=new C.B,this.scrollIndex$=new C.B,this.viewerService.viewer$.pipe((0,S.T)(r=>r.signedIn),(0,m.s)(this)).subscribe(r=>this.isSignedIn=r)}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sourceId:this.sourceId,submitterId:this.submitterId,status:this.status.New,sortBy:{column:this.sortColumns.CreatedAt,direction:p.UEL.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,E.E)("loading"),(0,f.F)(),(0,g.v)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,E.E)("loading"),(0,f.F)(),(0,x.i)(2)),this.connection$=this.result$.pipe((0,E.E)("data","sourceSuggestions"),(0,_.p)(z.kP)),this.row$=this.connection$.pipe((0,E.E)("edges"),(0,_.p)(z.kP),(0,S.T)(i=>i.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,E.E)("pageInfo"),(0,_.p)(z.kP)),this.sortChange$.pipe((0,m.s)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,o.X)(i)})}),this.filterChange$.pipe((0,v.B)(500),(0,m.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,S.T)(i=>"stop"!==i),(0,f.F)(),(0,m.s)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,_.p)(i=>"bottom"===i),(0,h.E)(this.pageInfo$),(0,S.T)(([i,e])=>e),(0,m.s)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,sourceType:this.sourceTypeInput?this.sourceTypeInput:void 0,sourceId:this.sourceIdInput?+this.sourceIdInput:void 0,molecularProfileName:this.molecularProfileNameInput,diseaseName:this.diseaseNameInput,comment:this.commentInput,submitter:this.submitterInput,citation:this.citationInput,status:this.statusInput?this.statusInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}setFormInputs(i,e){this.selectedSourceId=i,this.selectedStatus=e,this.showManageForm=!0}closePopover(){this.showManageForm=!1}trackByIndex(i,e){return e?.id}static#t=this.\u0275fac=function(e){return new(e||k)(t.rXU(p.bz7),t.rXU(b.q),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:k,selectors:[["cvc-source-suggestions-table"]],inputs:{cvcHeight:"cvcHeight",sourceId:"sourceId",submitterId:"submitterId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:11,vars:2,consts:[["setHeightCard",""],["table",""],["manageSuggestionTemplate",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],["statusNote",""],["statusNoteContentTemplate",""],["creationCommentTemplate",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","100px","nzLeft",""],["nzWidth","425px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","24px","nzAlign","center","nz-tooltip","","nzTooltipTitle","Submitter Comment"],["nz-icon","","nzTheme","twotone","nzType","civic-comment",3,"nzTwotoneColor"],["nzWidth","200px",3,"nzColumnKey","nzSortFn"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","290px"],["nzWidth","90px","nzSortOrder","descend",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nzWidth","70px","nzRight","","nzAlign","center"],[1,"filter-row"],["nzLeft",""],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzValue","NEW","nzLabel","new"],["nzValue","CURATED","nzLabel","curated"],["nzValue","REJECTED","nzLabel","rejected"],[3,"inputModelChange","inputModel"],[3,"inputModel","inputModelChange",4,"ngIf"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"ngModelChange","ngModel"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["placeholderText","ID",3,"inputModelChange","inputModel"],["placeholderText","Molecular Profile",3,"inputModelChange","inputModel"],["placeholderText","Disease",3,"inputModelChange","inputModel"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],["nzLeft","","nzAlign","center"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"source",4,"ngIf"],["nzAlign","center","nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],[3,"user",4,"ngIf"],[4,"ngIf"],[3,"molecularProfile",4,"ngIf"],[3,"disease","truncateLongName",4,"ngIf"],["nzAlign","right"],["nzRight","","nzAlign","center",1,"button-cell"],["nzColor","green",1,"status-tag"],[4,"ngTemplateOutlet"],["nzColor","orange",1,"status-tag"],["nzColor","volcano",1,"status-tag"],["nz-icon","","nz-popover","","nzType","civic-comment",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["nz-icon","","nz-popover","","nzType","civic-comment",3,"nzPopoverContent","nzPopoverOverlayStyle"],[3,"commentBodySegments"],[3,"source"],[3,"user"],[3,"molecularProfile"],[3,"disease","truncateLongName"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small","nz-tooltip","",3,"queryParams","disabled","nzTooltipTitle","nzTooltipMouseEnterDelay"],["nz-icon","","nzType","civic-evidence"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Manage Source Suggestion","nzPopoverPlacement","left","nzPopoverTrigger","click","nz-tooltip","","nzTooltipPlacement","top",3,"click","nzTooltipTitle","nzTooltipMouseEnterDelay","nzPopoverContent"],["nz-icon","","nzType","civic-source"],[3,"currentStatus","sourceSuggestionId",4,"ngIf"],[3,"currentStatus","sourceSuggestionId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(e,c){if(1&e&&t.DNE(0,Pt,3,3,"ng-container",9)(1,xt,3,6,"ng-template",null,0,t.C5r)(3,Jt,54,46,"ng-template",null,1,t.C5r)(5,Zt,1,1,"ng-template",null,2,t.C5r)(7,tn,6,6,"ng-template",null,3,t.C5r)(9,en,4,6,"ng-template",null,4,t.C5r),2&e){const r=t.sdS(2);t.Y8G("ngIf",!c.cvcHeight)("ngIfElse",r)}},dependencies:[y.bT,y.T3,y.B3,y.ux,y.e1,O.BC,O.vS,F.Wk,$.aO,$.dn,N.c,V.p,Y.cK,B.Dn,L.L_,R.ld,R.WI,G.CP,G.Cc,G.SO,G._4,G.IL,G.aj,G.kt,G.CC,G.OL,G.jc,U.s,X.LH,A.f,W.y,K.M,H.M,J.s,Q.n,s.Y,P.D,mt,dt.r,_t.z,vt.p,y.GH,y.vh,Ct.L9,ft.R],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}.status-tag[_ngcontent-%COMP%]{display:block}"],changeDetection:0})};w=(0,d.Cg)([(0,m.d)()],w)},5594:(D,I,n)=>{n.d(I,{b:()=>Q});var d=n(177),o=n(9417),p=n(1188),m=n(7169),T=n(9192),C=n(996),z=n(7874),S=n(9214),f=n(4998),g=n(1209),x=n(2839),_=n(4917),v=n(4256),h=n(4450),E=n(8252),t=n(8492),b=n(5703),y=n(8927),O=n(3842),F=n(513),$=n(9541),N=n(2983),V=n(3617),Y=n(1011),B=n(1997),L=n(4308),R=n(7685),G=n(3953);let U=(()=>{class s{static#t=this.\u0275fac=function(M){return new(M||s)};static#n=this.\u0275mod=G.$C({type:s});static#e=this.\u0275inj=G.G2t({imports:[d.MD,o.X1,F.Zw,b.Ti,$.hM,y.PQ,N.V,V.$,Y.j,B.DH,R.pc,o.YN,t.M,O.k,L.I]})}return s})();var X=n(5103),A=n(1236),W=n(9247),K=n(5699),H=n(5154),J=n(7391);let Q=(()=>{class s{static#t=this.\u0275fac=function(M){return new(M||s)};static#n=this.\u0275mod=G.$C({type:s});static#e=this.\u0275inj=G.G2t({imports:[d.MD,o.YN,p.iI,F.Zw,b.Ti,X.Y3,A.MC,B.DH,W.$G,K.T,H.Qt,J.kT,E.A,f.B,S.y,v.t,h.B,z.E,T.J,t.M,_.i,g.k,U,x.m,C.o,m.W]})}return s})()},8238:(D,I,n)=>{n.d(I,{S:()=>Q});var d=n(505),o=n(3953),p=n(177),m=n(1188),T=n(1236),C=n(5699),z=n(5103),S=n(9199),f=n(6354),g=n(5964),x=n(9145),_=n(5703),v=n(2e3),h=n(9062),E=n(959),t=n(7855),b=n(1774),y=n(3075);function O(s,P){if(1&s&&(o.nrm(0,"i",7),o.nI1(1,"entityColor"),o.EFF(2)),2&s){const l=o.XpG().ngIf;o.Y8G("nzTwotoneColor",o.bMT(1,2,"VariantGroup")),o.R7$(2),o.SpI(" ",l.name," ")}}function F(s,P){if(1&s&&o.nrm(0,"cvc-feature-variant-tag",10),2&s){const l=P.$implicit;o.Y8G("enablePopover",!1)("variant",l.node)}}function $(s,P){if(1&s&&(o.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),o.DNE(2,F,1,2,"cvc-feature-variant-tag",9),o.k0s()()),2&s){const l=o.XpG().ngIf;o.R7$(2),o.Y8G("ngForOf",l.variants.edges)}}function N(s,P){if(1&s&&o.nrm(0,"cvc-source-tag",13),2&s){const l=P.$implicit;o.Y8G("enablePopover",!1)("source",l)}}function V(s,P){if(1&s&&(o.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),o.DNE(2,N,1,2,"cvc-source-tag",12),o.k0s()()),2&s){const l=o.XpG().ngIf;o.R7$(2),o.Y8G("ngForOf",l.sources)}}function Y(s,P){if(1&s&&(o.qex(0),o.j41(1,"nz-card",3),o.DNE(2,O,3,4,"ng-template",null,0,o.C5r),o.EFF(4),o.j41(5,"nz-descriptions",4),o.DNE(6,$,3,1,"nz-descriptions-item",5)(7,V,3,1,"nz-descriptions-item",6),o.k0s()(),o.bVm()),2&s){const l=P.ngIf,M=o.sdS(3);o.R7$(),o.Y8G("nzTitle",M),o.R7$(3),o.SpI(" ",l.description," "),o.R7$(),o.Y8G("nzColumn",2),o.R7$(),o.Y8G("ngIf",l.variants.edges.length>0),o.R7$(),o.Y8G("ngIf",l.sources.length>0)}}let B=(()=>{class s{constructor(l){this.gql=l}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,f.T)(({data:l})=>l?.variantGroup),(0,g.p)(S.kP))}static#t=this.\u0275fac=function(M){return new(M||s)(o.rXU(x.gwr))};static#n=this.\u0275cmp=o.VBU({type:s,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(M,j){1&M&&(o.j41(0,"div",1),o.DNE(1,Y,8,5,"ng-container",2),o.nI1(2,"ngrxPush"),o.k0s()),2&M&&(o.R7$(),o.Y8G("ngIf",o.bMT(2,1,j.variantGroup$)))},dependencies:[p.Sq,p.bT,_.cK,v.xA,v.gr,z.Dn,h.D,E.j,t.M,b.L9,y.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return s})();var L=n(2387);function R(s,P){}function G(s,P){if(1&s&&(o.qex(0),o.j41(1,"a",5),o.DNE(2,R,0,0,"ng-template",6),o.k0s(),o.bVm()),2&s){const l=o.XpG(),M=o.sdS(2);o.R7$(),o.Y8G("routerLink",l.variantgroup.link),o.R7$(),o.Y8G("ngTemplateOutlet",M)}}function U(s,P){}function X(s,P){if(1&s&&o.nrm(0,"cvc-variant-group-popover",9),2&s){const l=o.XpG(3);o.Y8G("variantGroupId",l.variantgroup.id)}}function A(s,P){if(1&s&&o.DNE(0,X,1,1,"cvc-variant-group-popover",8),2&s){const l=o.XpG(2);o.Y8G("ngIf",l.enablePopover)}}function W(s,P){if(1&s&&(o.j41(0,"nz-tag",7),o.DNE(1,U,0,0,"ng-template",6),o.k0s(),o.DNE(2,A,1,1,"ng-template",null,3,o.C5r)),2&s){const l=o.sdS(3),M=o.XpG(),j=o.sdS(6);o.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",M.enablePopover?"hover":null),o.R7$(),o.Y8G("ngTemplateOutlet",j)}}function K(s,P){}function H(s,P){if(1&s&&o.DNE(0,K,0,0,"ng-template",6),2&s){o.XpG();const l=o.sdS(2);o.Y8G("ngTemplateOutlet",l)}}function J(s,P){if(1&s&&(o.j41(0,"cvc-icon-badges",10),o.nrm(1,"i",11),o.nI1(2,"entityColor"),o.k0s(),o.EFF(3)),2&s){const l=o.XpG();o.Y8G("flagged",l.variantgroup.flagged)("entityColor",l.iconColor),o.R7$(),o.Y8G("nzTwotoneColor",o.bMT(2,4,"VariantGroup")),o.R7$(2),o.SpI(" ",l.variantgroup.name,"\n")}}let Q=(()=>{class s{set variantgroup(l){if(!l)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=l}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,d.P)("VariantGroup")}static#t=this.\u0275fac=function(M){return new(M||s)};static#n=this.\u0275cmp=o.VBU({type:s,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(M,j){if(1&M&&o.DNE(0,G,3,2,"ng-container",4)(1,W,4,4,"ng-template",null,0,o.C5r)(3,H,1,1,"ng-template",null,1,o.C5r)(5,J,4,6,"ng-template",null,2,o.C5r),2&M){const Z=o.sdS(4);o.Y8G("ngIf",j.linked)("ngIfElse",Z)}},dependencies:[p.bT,p.T3,m.Wk,T.L_,C.s,z.Dn,B,L.N,y.R],encapsulation:2,changeDetection:0})}return s})()},8134:(D,I,n)=>{n.d(I,{l:()=>E});var d=n(177),o=n(1188),p=n(1236),m=n(5699),T=n(5103),C=n(7086),z=n(2142),S=n(1209),f=n(4917),g=n(5703),x=n(2e3),_=n(3953);let v=(()=>{class t{static#t=this.\u0275fac=function(O){return new(O||t)};static#n=this.\u0275mod=_.$C({type:t});static#e=this.\u0275inj=_.G2t({imports:[d.MD,g.Ti,x.WF,T.Y3,S.k,C.C,z.x,f.i]})}return t})();var h=n(4994);let E=(()=>{class t{static#t=this.\u0275fac=function(O){return new(O||t)};static#n=this.\u0275mod=_.$C({type:t});static#e=this.\u0275inj=_.G2t({imports:[d.MD,o.iI,p.MC,m.T,T.Y3,v,f.i,h.a]})}return t})()},5493:(D,I,n)=>{n.d(I,{G:()=>_});var d=n(177),o=n(1188),p=n(5699),m=n(5703),T=n(7054),C=n(2e3),z=n(5103),S=n(4917),f=n(3953);let g=(()=>{class v{static#t=this.\u0275fac=function(t){return new(t||v)};static#n=this.\u0275mod=f.$C({type:v});static#e=this.\u0275inj=f.G2t({imports:[d.MD,z.Y3,m.Ti,C.WF,S.i,T.L]})}return v})();var x=n(1236);let _=(()=>{class v{static#t=this.\u0275fac=function(t){return new(t||v)};static#n=this.\u0275mod=f.$C({type:v});static#e=this.\u0275inj=f.G2t({imports:[d.MD,o.iI,z.Y3,p.T,x.MC,g]})}return v})()},7292:(D,I,n)=>{n.d(I,{H:()=>p});var o=n(3953);let p=(()=>{class m{transform(C,z="display-string"){return void 0===C?"":"display-string"===z?function d(m){switch(m){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return m}}(C):`civic-${C.replace(/_/g,"").toLowerCase()}`}static#t=this.\u0275fac=function(z){return new(z||m)};static#n=this.\u0275pipe=o.EJ8({name:"therapyInteractionEnumDisplay",type:m,pure:!0})}return m})()},5128:(D,I,n)=>{n.d(I,{K:()=>f});var d=n(177),o=n(8524),p=n(3953),m=n(9417),T=n(1011);const z={name:"comment-textarea",component:(()=>{class g extends o.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(_,v)=>`Comments must be at least ${v.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let _;return function(h){return(_||(_=p.xGo(g)))(h||g)}})();static#n=this.\u0275cmp=p.VBU({type:g,selectors:[["comment-textarea-type"]],features:[p.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(v,h){1&v&&p.nrm(0,"textarea",0),2&v&&p.Y8G("formControl",h.formControl)("formlyAttributes",h.field)},dependencies:[m.me,m.BC,m.l_,o.ch,T.Sy],encapsulation:2,changeDetection:0})}return g})(),wrappers:["form-field"]};var S=n(8927);let f=(()=>{class g{static#t=this.\u0275fac=function(v){return new(v||g)};static#n=this.\u0275mod=p.$C({type:g});static#e=this.\u0275inj=p.G2t({imports:[d.MD,m.X1,o.qy.forChild({types:[z]}),S.PQ,T.j]})}return g})()}}]); \ No newline at end of file diff --git a/server/public/1778.26829d77868bc4e7.js b/server/public/1778.26829d77868bc4e7.js deleted file mode 100644 index 7c497c69d..000000000 --- a/server/public/1778.26829d77868bc4e7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1778],{6936:(O,T,n)=>{n.d(T,{G:()=>M});var c=n(177),d=n(1188),_=n(5699),r=n(1236),t=n(5103),p=n(4666),s=n(4917),C=n(3146),z=n(4994),f=n(3953);let M=(()=>{class u{static#t=this.\u0275fac=function(E){return new(E||u)};static#n=this.\u0275mod=f.$C({type:u});static#e=this.\u0275inj=f.G2t({imports:[c.MD,d.iI,C.W2,_.T,r.MC,t.Y3,p.v,s.i,z.a]})}return u})()},8920:(O,T,n)=>{n.d(T,{U:()=>m});var c=n(177),d=n(1188),_=n(5699),r=n(5103),t=n(7529),p=n(7054),s=n(2e3),C=n(5703),z=n(3357),f=n(3953);let M=(()=>{class g{static#t=this.\u0275fac=function(P){return new(P||g)};static#n=this.\u0275mod=f.$C({type:g});static#e=this.\u0275inj=f.G2t({imports:[c.MD,C.Ti,t.f3,s.WF,p.L,z.P]})}return g})();var u=n(1236);let m=(()=>{class g{static#t=this.\u0275fac=function(P){return new(P||g)};static#n=this.\u0275mod=f.$C({type:g});static#e=this.\u0275inj=f.G2t({imports:[c.MD,d.iI,_.T,r.Y3,u.MC,M]})}return g})()},9374:(O,T,n)=>{n.d(T,{r:()=>m});var c=n(177),d=n(2142),_=n(5699),r=n(1236),t=n(9192),p=n(8920),s=n(7051),C=n(9802),z=n(5493),f=n(6912),M=n(7086),u=n(3953);let m=(()=>{class g{static#t=this.\u0275fac=function(P){return new(P||g)};static#n=this.\u0275mod=u.$C({type:g});static#e=this.\u0275inj=u.G2t({imports:[c.MD,_.T,r.MC,d.x,C._,t.J,p.U,f.l,s.U,z.G,M.C]})}return g})()},5493:(O,T,n)=>{n.d(T,{G:()=>u});var c=n(177),d=n(1188),_=n(5699),r=n(5703),t=n(7054),p=n(2e3),s=n(5103),C=n(4917),z=n(3953);let f=(()=>{class m{static#t=this.\u0275fac=function(v){return new(v||m)};static#n=this.\u0275mod=z.$C({type:m});static#e=this.\u0275inj=z.G2t({imports:[c.MD,s.Y3,r.Ti,p.WF,C.i,t.L]})}return m})();var M=n(1236);let u=(()=>{class m{static#t=this.\u0275fac=function(v){return new(v||m)};static#n=this.\u0275mod=z.$C({type:m});static#e=this.\u0275inj=z.G2t({imports:[c.MD,d.iI,s.Y3,_.T,M.MC,f]})}return m})()},7292:(O,T,n)=>{n.d(T,{H:()=>_});var d=n(3953);let _=(()=>{class r{transform(p,s="display-string"){return void 0===p?"":"display-string"===s?function c(r){switch(r){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return r}}(p):`civic-${p.replace(/_/g,"").toLowerCase()}`}static#t=this.\u0275fac=function(s){return new(s||r)};static#n=this.\u0275pipe=d.EJ8({name:"therapyInteractionEnumDisplay",type:r,pure:!0})}return r})()},8799:(O,T,n)=>{n.r(T),n.d(T,{ClinicalTrialsModule:()=>Wt});var c=n(177),d=n(1188),_=n(9172),r=n(4608),t=n(3953),p=n(9145),s=n(3062),C=n(5103),z=n(7679),f=n(9765),M=n(1774),u=n(3075);function m(e,o){if(1&e&&(t.j41(0,"cvc-link-tag",5),t.EFF(1),t.k0s()),2&e){const a=t.XpG().ngIf;t.Y8G("href",a.url),t.R7$(),t.SpI(" ",a.nctId," ")}}function g(e,o){if(1&e&&(t.qex(0),t.nrm(1,"cvc-section-navigation",1),t.j41(2,"nz-page-header",2)(3,"nz-page-header-title"),t.nrm(4,"i",3),t.nI1(5,"entityColor"),t.EFF(6),t.k0s(),t.j41(7,"nz-page-header-extra"),t.DNE(8,m,2,2,"cvc-link-tag",4),t.k0s(),t.j41(9,"nz-page-header-content"),t.nrm(10,"router-outlet"),t.k0s()(),t.bVm()),2&e){const a=o.ngIf;t.R7$(),t.Y8G("displayName",a.nctId),t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(5,4,"ClinicalTrial")),t.R7$(2),t.SpI(" ",a.nctId," "),t.R7$(2),t.Y8G("ngIf",a.url)}}let E=(()=>{class e{constructor(a,i){this.route=a,this.gql=i,this.routeSub=this.route.params.subscribe(l=>{this.clinicalTrialId=+l.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let h=this.queryRef.valueChanges;this.loading$=h.pipe((0,r.E)("loading"),(0,_.Z)(!0)),this.clinicalTrial$=h.pipe((0,r.E)("data","clinicalTrial"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(d.nX),t.rXU(p.HKj))};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-clinical-trials-detail"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],["tooltip","View on clinicaltrials.gov",3,"href",4,"ngIf"],["tooltip","View on clinicaltrials.gov",3,"href"]],template:function(i,l){1&i&&(t.DNE(0,g,11,6,"ng-container",0),t.nI1(1,"ngrxPush")),2&i&&t.Y8G("ngIf",t.bMT(1,1,l.clinicalTrial$))},dependencies:[c.bT,d.n3,s.WB,s.k9,s.zR,s.ov,C.Dn,z.a,f.n,M.L9,u.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return e})();var v=n(7529),P=n(513),L=n(6389),S=n(7391),D=n(7685),X=n(1635),H=n(9995),I=n(9894),Y=n(4412),R=n(1413),b=n(9199),$=n(3294),w=n(7048),J=n(5245),x=n(5964),F=n(6354),Z=n(152),Q=n(3993),A=n(5703),y=n(9247),W=n(5699),K=n(5154),k=n(1852),q=n(1405),tt=n(435),nt=n(6726),et=n(3296),at=n(3431),it=n(2923);const ot=e=>({height:e}),lt=()=>[],rt=()=>({x:"680px",y:"800px"}),N=()=>["descend","ascend",null];function ct(e,o){}function st(e,o){if(1&e&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,ct,0,0,"ng-template",7),t.k0s(),t.bVm()),2&e){t.XpG();const a=t.sdS(4),i=t.sdS(6),l=t.sdS(8);t.R7$(),t.Y8G("nzTitle",i)("nzExtra",l),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function dt(e,o){}function pt(e,o){if(1&e&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,dt,0,0,"ng-template",7),t.k0s()()),2&e){const a=t.XpG(),i=t.sdS(4),l=t.sdS(6),h=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,ot,a.cvcHeight)),t.R7$(),t.Y8G("nzTitle",l)("nzExtra",h),t.R7$(),t.Y8G("ngTemplateOutlet",i)}}function gt(e,o){if(1&e&&(t.j41(0,"tr",24)(1,"td",20),t.nrm(2,"cvc-clinical-trial-tag",25),t.k0s(),t.j41(3,"td",26),t.EFF(4),t.k0s(),t.j41(5,"td",27),t.EFF(6),t.k0s(),t.j41(7,"td",27),t.EFF(8),t.k0s()()),2&e){const a=o.$implicit,i=t.XpG(2);t.R7$(2),t.Y8G("clinicalTrial",a),t.R7$(),t.Y8G("nzTooltipTitle",i.isScrolling?"":a.name),t.R7$(),t.SpI(" ",a.name," "),t.R7$(2),t.SpI(" ",a.sourceCount," "),t.R7$(2),t.SpI(" ",a.evidenceCount," ")}}function ht(e,o){if(1&e){const a=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(l){t.eBV(a);const h=t.XpG();return t.Njj(h.scrollEvent$.next(l))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(l){t.eBV(a);const h=t.XpG();return t.Njj(h.sortChange$.next(l))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," NCT ID "),t.k0s(),t.j41(10,"th",14),t.EFF(11," Name "),t.k0s(),t.j41(12,"th",15),t.nrm(13,"i",16),t.EFF(14," Count "),t.k0s(),t.j41(15,"th",17),t.nrm(16,"i",18),t.EFF(17," Count "),t.k0s()(),t.j41(18,"tr",19)(19,"th",20)(20,"cvc-clearable-input-filter",21),t.mxI("inputModelChange",function(l){t.eBV(a);const h=t.XpG();return t.DH7(h.nctIdFilter,l)||(h.nctIdFilter=l),t.Njj(l)}),t.bIt("inputModelChange",function(){t.eBV(a);const l=t.XpG();return t.Njj(l.filterChange$.next())}),t.k0s()(),t.j41(21,"th")(22,"cvc-clearable-input-filter",21),t.mxI("inputModelChange",function(l){t.eBV(a);const h=t.XpG();return t.DH7(h.nameFilter,l)||(h.nameFilter=l),t.Njj(l)}),t.bIt("inputModelChange",function(){t.eBV(a);const l=t.XpG();return t.Njj(l.filterChange$.next())}),t.k0s()(),t.nrm(23,"th",22)(24,"th",22),t.k0s()(),t.j41(25,"tbody"),t.DNE(26,gt,9,5,"ng-template",23),t.k0s()()}if(2&e){const a=t.XpG();t.Y8G("nzData",t.bMT(2,23,a.row$)||t.lJ4(31,lt))("nzLoading",!t.bMT(3,25,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.bMT(4,27,a.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,29,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.lJ4(32,rt))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",a.sortColumns.NctId)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",a.sortColumns.Name)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",a.sortColumns.SourceCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(33,N)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(34,N)),t.R7$(5),t.R50("inputModel",a.nctIdFilter),t.R7$(2),t.R50("inputModel",a.nameFilter)}}function mt(e,o){}function Ct(e,o){if(1&e&&(t.qex(0),t.DNE(1,mt,0,0,"ng-template",7),t.bVm()),2&e){const a=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",a.cvcTitleTemplate)}}function ft(e,o){if(1&e&&(t.qex(0),t.EFF(1),t.bVm()),2&e){const a=t.XpG(2);t.R7$(),t.SpI(" ",a.cvcTitle," ")}}function ut(e,o){if(1&e&&(t.DNE(0,Ct,2,1,"ng-container",28)(1,ft,2,1,"ng-container",28),t.j41(2,"span",29),t.nrm(3,"cvc-table-counts",30),t.k0s()),2&e){const a=t.XpG();t.Y8G("ngIf",a.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",a.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",a.connection$)}}function vt(e,o){1&e&&(t.j41(0,"nz-tag",33),t.nrm(1,"i",34),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function Tt(e,o){if(1&e&&(t.DNE(0,vt,4,0,"nz-tag",31),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",32),t.nI1(3,"ngrxPush")),2&e){const a=t.XpG();t.Y8G("ngIf",t.bMT(1,2,a.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,a.noMoreRows$))}}let G=class U{set initialUserFilters(o){o&&Object.assign(this,o)}constructor(o,a){this.gql=o,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=p.d52,this.noMoreRows$=new Y.t(!1),this.scrollEvent$=new Y.t("stop"),this.sortChange$=new R.B,this.filterChange$=new R.B,this.scrollIndex$=new R.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,r.E)("loading"),(0,$.F)(),(0,w.v)(o=>!1!==o,!0)),this.moreLoading$=this.result$.pipe((0,r.E)("loading"),(0,$.F)(),(0,J.i)(2)),this.connection$=this.result$.pipe((0,r.E)("data","clinicalTrials"),(0,x.p)(b.kP)),this.row$=this.connection$.pipe((0,r.E)("edges"),(0,x.p)(b.kP),(0,F.T)(o=>o.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,r.E)("pageInfo"),(0,x.p)(b.kP)),this.sortChange$.pipe((0,I.s)(this)).subscribe(o=>{this.queryRef.refetch({sortBy:(0,H.X)(o)})}),this.filterChange$.pipe((0,Z.B)(500),(0,I.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,F.T)(o=>"stop"!==o),(0,$.F)(),(0,I.s)(this)).subscribe(o=>{this.isScrolling=o,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,x.p)(o=>"bottom"===o),(0,Q.E)(this.pageInfo$),(0,F.T)(([o,a])=>a),(0,I.s)(this)).subscribe(o=>{o.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameFilter,nctId:this.nctIdFilter}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(o,a){return a?.id}static#t=this.\u0275fac=function(a){return new(a||U)(t.rXU(p.Fq8),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:U,selectors:[["cvc-clinical-trials-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","600px",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Source Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-source"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"clinicalTrial"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,i){if(1&a&&t.DNE(0,st,3,3,"ng-container",5)(1,pt,3,6,"ng-template",null,0,t.C5r)(3,ht,27,35,"ng-template",null,1,t.C5r)(5,ut,4,3,"ng-template",null,2,t.C5r)(7,Tt,4,6,"ng-template",null,3,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",!i.cvcHeight)("ngIfElse",l)}},dependencies:[c.bT,c.T3,c.B3,L.c,A.cK,C.Dn,y.CP,y.Cc,y.SO,y._4,y.IL,y.aj,y.kt,y.CC,y.OL,y.jc,W.s,K.LH,k.M,q.s,tt.n,nt.X,et.M,at.y,it.f,M.L9],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]})};function zt(e,o){1&e&&(t.j41(0,"a",13),t.nrm(1,"i",14),t.EFF(2," View Clinical Trial Docs "),t.k0s())}G=(0,X.Cg)([(0,I.d)()],G);let _t=(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["clinical-trials-home"]],decls:19,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/clinical_trial.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Clinical Trials"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/clinical_trial.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(i,l){1&i&&(t.nrm(0,"cvc-section-navigation"),t.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t.nrm(5,"i",3),t.nI1(6,"entityColor"),t.k0s(),t.j41(7,"nz-col",4)(8,"h2"),t.EFF(9,"Clinical Trials"),t.k0s(),t.j41(10,"p",5),t.EFF(11," CIViC automatically associates a Clinical Trial to an Evidence Item if its associated Source's PubMed record provides a clinical trial ID. This ID is not directly curatable. "),t.k0s()(),t.j41(12,"nz-col",6)(13,"nz-space",7),t.DNE(14,zt,3,0,"a",8),t.k0s()()(),t.j41(15,"div",9)(16,"div",10)(17,"div",11),t.nrm(18,"cvc-clinical-trials-table",12),t.k0s()()()()()),2&i&&(t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(6,3,"ClinicalTrial")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(6),t.Y8G("nzSpan",24))},dependencies:[v.Uq,v.e,s.WB,s.zR,C.Dn,P.aO,L.c,S.Di,D.U5,D.Dq,G,f.n,u.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return e})();var j=n(2e3),Mt=n(8199),yt=n(4644);const Pt=()=>[8,16];function xt(e,o){if(1&e&&(t.qex(0),t.j41(1,"nz-row",1)(2,"nz-col",2)(3,"nz-descriptions",3)(4,"nz-descriptions-item",4),t.EFF(5),t.k0s()()(),t.j41(6,"nz-col",2),t.nrm(7,"cvc-sources-table",5),t.k0s(),t.j41(8,"nz-col",2),t.nrm(9,"cvc-evidence-table",6),t.k0s()(),t.bVm()),2&e){const a=o.ngIf,i=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(13,Pt)),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("nzBordered",!0),t.R7$(2),t.SpI(" ",a.description," "),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Mz_("cvcTitle","",a.nctId," Sources"),t.Y8G("clinicalTrialId",i.clinicalTrialId)("cvcHeight",400),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Mz_("cvcTitle","",a.nctId," Evidence"),t.Y8G("clinicalTrialId",i.clinicalTrialId)}}const Ot=[{path:"",component:(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-clinical-trials"]],decls:1,vars:0,template:function(i,l){1&i&&t.nrm(0,"router-outlet")},dependencies:[d.n3],encapsulation:2})}return e})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:_t,data:{breadcrumb:"Home"}},{path:":clinicalTrialId",component:E,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(a,i){this.route=a,this.gql=i,this.routeSub=this.route.params.subscribe(l=>{this.clinicalTrialId=+l.clinicalTrialId,this.queryRef=this.gql.watch({clinicalTrialId:this.clinicalTrialId});let h=this.queryRef.valueChanges;this.loading$=h.pipe((0,r.E)("loading"),(0,x.p)(b.kP)),this.clinicalTrial$=h.pipe((0,r.E)("data","clinicalTrial"),(0,x.p)(b.kP))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(d.nX),t.rXU(p.KiN))};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-clinical-trials-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small",3,"nzBordered"],["nzTitle","Description"],[3,"clinicalTrialId","cvcTitle","cvcHeight"],[3,"clinicalTrialId","cvcTitle"]],template:function(i,l){1&i&&(t.DNE(0,xt,10,14,"ng-container",0),t.nI1(1,"ngrxPush")),2&i&&t.Y8G("ngIf",t.bMT(1,1,l.clinicalTrial$))},dependencies:[c.bT,j.xA,j.gr,v.Uq,v.e,Mt.N,yt.y,M.L9],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}"],changeDetection:0})}return e})(),data:{breadcrumb:"Summary"}}]}]}];let Et=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[d.iI.forChild(Ot),d.iI]})}return e})();var It=n(7874),bt=n(9214),St=n(4998),B=n(4917),Dt=n(4256),Rt=n(4450),$t=n(8252),Ft=n(9619);let Gt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,P.Zw,A.Ti,C.Y3,y.$G,W.T,K.Qt,S.kT,B.i,Dt.t,Rt.B,It.E,Ft.u,bt.y,St.B,$t.A]})}return e})();var V=n(4124);let jt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,v.f3,s.ZJ,C.Y3,P.Zw,S.kT,D.pc,Gt,V.C,B.i]})}return e})();var Bt=n(7054);let Ut=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,d.iI,s.ZJ,C.Y3,Bt.L,V.C,B.i]})}return e})();var Lt=n(4531),Yt=n(5443);let At=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,j.WF,v.f3,Lt.C,Yt.n]})}return e})(),Wt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.MD,Et,jt,Ut,At]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/1781.59c44933bf424ffb.js b/server/public/1781.59c44933bf424ffb.js deleted file mode 100644 index a01682a44..000000000 --- a/server/public/1781.59c44933bf424ffb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1781],{1781:(Fi,rt,s)=>{s.r(rt),s.d(rt,{OrganizationsModule:()=>Di});var l=s(177),Et=s(7660),d=s(5103),t=s(3953);let Gt=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,Et.u,d.Y3]})}return n})();var ct=s(4124),lt=s(3726),D=s(1413),F=s(6977),w=s(5964),Rt=s(6697),$t=s(5558),gt=s(6042),pt=s(1391),Dt=s(713),dt=s(1025),N=s(317),kt=s(345),B=s(7987),Ft=s(6939),O=s(7336),Nt=s(8203);const Lt=["imgRef"],jt=["imagePreviewWrapper"];function Yt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",13),t.bIt("click",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.onSwitchLeft(o))}),t.nrm(1,"span",14),t.k0s(),t.j41(2,"div",15),t.bIt("click",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.onSwitchRight(o))}),t.nrm(3,"span",16),t.k0s()}if(2&n){const e=t.XpG();t.AVh("ant-image-preview-switch-left-disabled",e.index<=0),t.R7$(2),t.AVh("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}function Xt(n,a){if(1&n&&(t.j41(0,"li",5),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Lme("",e.index+1," / ",e.images.length,"")}}function Vt(n,a){if(1&n){const e=t.RV6();t.j41(0,"li",17),t.bIt("click",function(){const o=t.eBV(e).$implicit;return t.Njj(o.onClick())}),t.nrm(1,"span",18),t.k0s()}if(2&n){let e;const i=a.$implicit,o=t.XpG();t.AVh("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===i.type),t.R7$(),t.Y8G("nzType",i.icon)("nzRotate",null!==(e=i.rotate)&&void 0!==e?e:0)}}function Ut(n,a){if(1&n&&t.nrm(0,"img",20,1),2&n){const e=t.XpG().$implicit,i=t.XpG();t.xc7("width",e.width)("height",e.height)("transform",i.previewImageTransform),t.BMQ("src",i.sanitizerResourceUrl(e.src),t.B4B)("srcset",e.srcset)("alt",e.alt)}}function At(n,a){if(1&n&&t.DNE(0,Ut,2,9,"img",19),2&n){const e=a.$index,i=t.XpG();t.vxM(e===i.index?0:-1)}}function ht(n,a,e){const i=n+a,o=(a-e)/2;let r=null;return a>e?(n>0&&(r=o),n<0&&ie)&&(r=n<0?o:-o),r}class W{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}const zt={x:0,y:0};let ft=(()=>{class n{get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){const e=this.nzConfigService.getConfigForComponent("image")||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(e,i,o,r,c,g){this.ngZone=e,this.cdr=i,this.nzConfigService=o,this.config=r,this.destroy$=c,this.sanitizer=g,this._defaultNzZoom=1,this._defaultNzScaleStep=.5,this._defaultNzRotate=0,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationStateChanged=new t.bkB,this.scaleStepMap=new Map,this.previewImageTransform="",this.previewImageWrapperTransform="",this.operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"},{icon:"swap",onClick:()=>{this.onHorizontalFlip()},type:"flipHorizontally"},{icon:"swap",onClick:()=>{this.onVerticalFlip()},type:"flipVertically",rotate:90}],this.zoomOutDisabled=!1,this.position={...zt},this.closeClick=new t.bkB,this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.flipHorizontally=this.config.nzFlipHorizontally??!1,this.flipVertically=this.config.nzFlipVertically??!1,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,lt.R)(this.imagePreviewWrapper.nativeElement,"mousedown").pipe((0,F.Q)(this.destroy$)).subscribe(()=>{this.isDragging=!0}),(0,lt.R)(this.imagePreviewWrapper.nativeElement,"wheel").pipe((0,F.Q)(this.destroy$)).subscribe(e=>{this.ngZone.run(()=>this.wheelZoomEventHandler(e))})})}setImages(e,i){i&&(this.scaleStepMap=i),this.images=e,this.markForCheck()}switchTo(e){this.index=e,this.markForCheck()}next(){this.index0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.visible=!1,this.closeClick.emit()}onZoomIn(){const e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom+=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled()}onZoomOut(){if(this.zoom>1){const e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom-=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.zoom<=1&&this.reCenterImage()}}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onHorizontalFlip(){this.flipHorizontally=!this.flipHorizontally,this.updatePreviewImageTransform()}onVerticalFlip(){this.flipVertically=!this.flipVertically,this.updatePreviewImageTransform()}wheelZoomEventHandler(e){e.preventDefault(),e.stopPropagation(),this.handlerImageTransformationWhileZoomingWithMouse(e,e.deltaY),this.handleImageScaleWhileZoomingWithMouse(e.deltaY),this.updatePreviewImageWrapperTransform(),this.updatePreviewImageTransform(),this.markForCheck()}onAnimationStart(e){this.animationStateChanged.emit(e)}onAnimationDone(e){this.animationStateChanged.emit(e)}onDragEnd(e){this.isDragging=!1;const i=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:r,top:c}=function Wt(n){const a=n.getBoundingClientRect(),e=document.documentElement;return{left:a.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:g,height:_}=function Ht(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),$=this.rotate%180!=0,P=function Bt(n){let a={};return n.width<=n.clientWidth&&n.height<=n.clientHeight&&(a={x:0,y:0}),(n.width>n.clientWidth||n.height>n.clientHeight)&&(a={x:ht(n.left,n.width,n.clientWidth),y:ht(n.top,n.height,n.clientHeight)}),a}({width:$?o:i,height:$?i:o,left:r,top:c,clientWidth:g,clientHeight:_});(0,N.n9)(P.x)||(0,N.n9)(P.y)?this.position={...this.position,...P}:!(0,N.n9)(P.x)&&!(0,N.n9)(P.y)&&(this.position={x:e.source.getFreeDragPosition().x,y:e.source.getFreeDragPosition().y})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom*(this.flipHorizontally?-1:1)}, ${this.zoom*(this.flipVertically?-1:1)}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}handlerImageTransformationWhileZoomingWithMouse(e,i){let o;const r=this.imageRef.nativeElement,g=getComputedStyle(r).transform.match(/matrix.*\((.+)\)/);o=g?+g[1].split(", ")[0]:this.zoom;const _=(e.clientX-r.getBoundingClientRect().x)/o,$=(e.clientY-r.getBoundingClientRect().y)/o,M=i<0?this.scaleStep/2:-this.scaleStep/2;this.position.x+=-_*M*2+r.offsetWidth*M,this.position.y+=-$*M*2+r.offsetHeight*M}handleImageScaleWhileZoomingWithMouse(e){this.isZoomedInWithMouseWheel(e)?this.onZoomIn():this.onZoomOut(),this.zoom<=1&&this.reCenterImage()}isZoomedInWithMouseWheel(e){return e<0}reset(){this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.flipHorizontally=!1,this.flipVertically=!1,this.reCenterImage()}reCenterImage(){this.position={...zt}}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(gt.yx),t.rXU(W),t.rXU(dt.y4),t.rXU(kt.up))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["nz-image-preview"]],viewQuery:function(i,o){if(1&i&&(t.GBs(Lt,5),t.GBs(jt,7)),2&i){let r;t.mGM(r=t.lsd())&&(o.imageRef=r.first),t.mGM(r=t.lsd())&&(o.imagePreviewWrapper=r.first)}},hostAttrs:[1,"ant-image-preview-root"],hostVars:6,hostBindings:function(i,o){1&i&&t.Kam("@fadeMotion.start",function(c){return o.onAnimationStart(c)})("@fadeMotion.done",function(c){return o.onAnimationDone(c)}),2&i&&(t.zvX("@.disabled",o.config.nzNoAnimation)("@fadeMotion",o.visible?"enter":"leave"),t.xc7("z-index",o.config.nzZIndex),t.AVh("ant-image-preview-moving",o.isDragging))},exportAs:["nzImagePreview"],standalone:!0,features:[t.Jv_([dt.y4]),t.aNF],decls:17,vars:5,consts:[["imagePreviewWrapper",""],["imgRef",""],[1,"ant-image-preview-mask"],[1,"ant-image-preview-operations-wrapper"],[1,"ant-image-preview-operations"],[1,"ant-image-preview-operations-progress"],[1,"ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled"],["tabindex","-1",1,"ant-image-preview-wrap",3,"click"],["role","dialog","aria-modal","true",1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragEnded","cdkDragFreeDragPosition"],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType","nzRotate"],["cdkDragHandle","",1,"ant-image-preview-img",3,"width","height","transform"],["cdkDragHandle","",1,"ant-image-preview-img"]],template:function(i,o){if(1&i){const r=t.RV6();t.nrm(0,"div",2),t.j41(1,"div",3),t.DNE(2,Yt,4,4),t.j41(3,"ul",4),t.DNE(4,Xt,2,2,"li",5),t.Z7z(5,Vt,2,4,"li",6,t.fX1),t.k0s()(),t.j41(7,"div",7),t.bIt("click",function(g){return t.eBV(r),t.Njj(o.maskClosable&&g.target===g.currentTarget&&o.onClose())}),t.j41(8,"div",8),t.nrm(9,"div",9),t.j41(10,"div",10)(11,"div",11)(12,"div",12,0),t.bIt("cdkDragEnded",function(g){return t.eBV(r),t.Njj(o.onDragEnd(g))}),t.Z7z(14,At,1,1,null,null,t.fX1),t.k0s()()(),t.nrm(16,"div",9),t.k0s()()}2&i&&(t.R7$(2),t.vxM(o.images.length>1?2:-1),t.R7$(2),t.vxM(o.images.length>1?4:-1),t.R7$(),t.Dyx(o.operations),t.R7$(7),t.xc7("transform",o.previewImageWrapperTransform),t.Y8G("cdkDragFreeDragPosition",o.position),t.R7$(2),t.Dyx(o.images))},dependencies:[d.Y3,d.Dn,pt.Fb,pt.T1],encapsulation:2,data:{animation:[Dt.LD]},changeDetection:0})}return n})();class Jt{constructor(a,e,i){this.previewInstance=a,this.config=e,this.overlayRef=i,this.destroy$=new D.B,i.keydownEvents().pipe((0,w.p)(o=>this.config.nzKeyboard&&(o.keyCode===O._f||o.keyCode===O.UQ||o.keyCode===O.LE)&&!(0,O.rp)(o))).subscribe(o=>{o.preventDefault(),o.keyCode===O._f&&a.onClose(),o.keyCode===O.UQ&&this.prev(),o.keyCode===O.LE&&this.next()}),i.detachments().subscribe(()=>{this.overlayRef.dispose()}),a.closeClick.pipe((0,Rt.s)(1),(0,$t.n)(()=>a.animationStateChanged),(0,w.p)(o=>"done"===o.phaseName),(0,F.Q)(this.destroy$)).subscribe(()=>{this.close()})}switchTo(a){this.previewInstance.switchTo(a)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.destroy$.next(),this.overlayRef.dispose()}}let qt=(()=>{class n{constructor(e,i,o,r){this.overlay=e,this.injector=i,this.nzConfigService=o,this.directionality=r}preview(e,i,o){return this.display(e,i,o)}display(e,i,o){const r={...new W,...i??{}},c=this.createOverlay(r),g=this.attachPreviewComponent(c,r);g.setImages(e,o);const _=new Jt(g,r,c);return g.previewRef=_,_}attachPreviewComponent(e,i){const o=t.zZn.create({parent:this.injector,providers:[{provide:B.yY,useValue:e},{provide:W,useValue:i}]}),r=new Ft.A8(ft,null,o);return e.attach(r).instance}createOverlay(e){const i=this.nzConfigService.getConfigForComponent("image")||{},o=new B.rR({scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:e.nzCloseOnNavigation??i.nzCloseOnNavigation??!0,direction:e.nzDirection||i.nzDirection||this.directionality.value});return this.overlay.create(o)}static#t=this.\u0275fac=function(i){return new(i||n)(t.KVO(B.hJ),t.KVO(t.zZn),t.KVO(gt.yx),t.KVO(Nt.dS,8))};static#n=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}return n})(),tn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({providers:[qt],imports:[ft]})}return n})();var E=s(3062),nn=s(1532),p=s(7529),z=s(7685),h=s(1188),H=s(7054),ut=s(2269),f=s(5703),S=s(2617),k=s(8920),vt=s(6208),Z=s(9438),b=s(2e3),L=s(9448),Ct=s(5285),G=s(4917),en=s(1542),on=s(9213),an=s(9192),sn=s(9619),u=s(7391),_t=s(2142),rn=s(2986),j=s(9417),cn=s(9802),Q=s(9374);let bt=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,j.YN,f.Ti,p.f3,z.pc,u.kT,ut.Fw,b.WF,L.g,rn.IJ,Q.r,H.L,sn.u,an.J,cn._,on.l,en.X,Ct.T,G.i,k.U,vt.K,_t.x]})}return n})();var Tt=s(1236),Y=s(5699),I=s(513);let ln=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,h.iI,E.ZJ,I.Zw,p.f3,d.Y3,z.pc,tn,f.Ti,ut.Fw,S.rD,Z.Yb,b.WF,L.g,u.kT,Tt.MC,Y.T,vt.K,k.U,_t.x,G.i,Ct.T,H.L,nn.W,ct.C,bt]})}return n})();var gn=s(326);let pn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,gn.p]})}return n})();var dn=s(4531);let mn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,dn.C]})}return n})();var K=s(2983);let hn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,z.pc,p.f3,K.V,bt]})}return n})();var zn=s(7874),fn=s(9214),un=s(4998),vn=s(4256),Cn=s(4450),_n=s(8252),v=s(9247);let bn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,d.Y3,v.$G,I.Zw,f.Ti,d.Y3,u.kT,Y.T,fn.y,un.B,_n.A,vn.t,Cn.B,zn.E,k.U,Q.r,G.i]})}return n})();var J=s(1997),Tn=s(9541),yt=s(1672),xt=s(3146),wt=s(5154);let yn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,j.YN,xt.W2,L.g,z.pc,Z.Yb,p.f3,f.Ti,S.rD,Tn.hM,J.DH,u.kT,yt._v,d.Y3,Y.T,wt.Qt,G.i,k.U]})}return n})(),xn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,E.ZJ,d.Y3,p.f3,I.Zw,z.pc,u.kT,G.i,ct.C,yn,bn]})}return n})();var wn=s(3357),On=s(2839);let Sn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,f.Ti,b.WF,u.kT,d.Y3,z.pc,p.f3,L.g,Q.r,wn.P,H.L,G.i,k.U,On.m]})}return n})(),In=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,p.f3,z.pc,I.Zw,K.V,Sn]})}return n})();var Mn=s(4441);let Pn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(i,o){1&i&&t.nrm(0,"cvc-assertions-table",0),2&i&&t.Y8G("organizationId",o.organizationId)},dependencies:[Mn.z],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var q=s(9172),T=s(4608),y=s(4412),m=s(9145),tt=s(1305),X=s(6389),En=s(8542),V=s(6440),Gn=s(7855),Ot=s(7074),Rn=s(9945),St=s(9765),R=s(1774),It=s(3075);const $n=()=>[8,8];function Dn(n,a){if(1&n&&t.nrm(0,"cvc-organization-avatar",22),2&n){const e=t.XpG().ngIf;t.Y8G("organization",e)("size",128)}}function kn(n,a){if(1&n&&(t.j41(0,"div",23),t.nrm(1,"i",24),t.nI1(2,"entityColor"),t.j41(3,"span",25)(4,"strong"),t.EFF(5),t.k0s()()()),2&n){const e=t.XpG().ngIf;t.R7$(),t.Y8G("nzTwotoneColor",t.bMT(2,2,"Organization")),t.R7$(4),t.SpI(" ",e.name,"")}}function Fn(n,a){if(1&n&&(t.j41(0,"a",27),t.nrm(1,"span",28),t.EFF(2," Visit Website "),t.k0s()),2&n){const e=t.XpG(2).ngIf;t.Y8G("href",e.url,t.B4B)}}function Nn(n,a){1&n&&(t.qex(0),t.DNE(1,Fn,3,1,"a",26),t.bVm())}function Ln(n,a){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",e.description," ")}}function jn(n,a){1&n&&(t.j41(0,"span",33)(1,"i"),t.EFF(2,"No description provided."),t.k0s()())}function Yn(n,a){if(1&n&&(t.qex(0),t.nrm(1,"cvc-organization-tag",35),t.bVm()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("org",e)}}function Xn(n,a){if(1&n&&(t.j41(0,"cvc-tag-list"),t.DNE(1,Yn,2,1,"ng-container",34),t.k0s()),2&n){const e=t.XpG(2).ngIf;t.R7$(),t.Y8G("ngForOf",e.subGroups)}}function Vn(n,a){1&n&&(t.j41(0,"span",33)(1,"i"),t.EFF(2," This organization does not include any child organizations. "),t.k0s()())}function Un(n,a){if(1&n&&(t.j41(0,"nz-descriptions",29)(1,"nz-descriptions-item",30),t.DNE(2,Ln,2,1,"ng-container",31)(3,jn,3,0,"ng-template",null,1,t.C5r),t.k0s(),t.j41(5,"nz-descriptions-item",32),t.DNE(6,Xn,2,1,"cvc-tag-list",31)(7,Vn,3,0,"ng-template",null,2,t.C5r),t.k0s()()),2&n){const e=t.sdS(4),i=t.sdS(8),o=t.XpG().ngIf;t.Y8G("nzColumn",4),t.R7$(),t.Y8G("nzTitle","About "+o.name),t.R7$(),t.Y8G("ngIf",o.description)("ngIfElse",e),t.R7$(3),t.Y8G("nzSpan",4)("nzTitle","Child Organization"+(1!==o.subGroups.length?"s":"")),t.R7$(),t.Y8G("ngIf",o.subGroups.length>0)("ngIfElse",i)}}function An(n,a){1&n&&(t.j41(0,"div",38)(1,"p")(2,"strong"),t.EFF(3,"Comments:"),t.k0s(),t.EFF(4," Total number of Comments posted by the Curator. "),t.k0s(),t.j41(5,"p")(6,"strong"),t.EFF(7,"Revisions:"),t.k0s(),t.EFF(8," Total number of Revisions suggested by the Curator. "),t.k0s(),t.j41(9,"p")(10,"strong"),t.EFF(11,"Submissions:"),t.k0s(),t.EFF(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.k0s(),t.j41(13,"p")(14,"strong"),t.EFF(15,"Moderations:"),t.k0s(),t.EFF(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.k0s()())}function Bn(n,a){if(1&n&&(t.j41(0,"div",36),t.EFF(1," Ranked Activities "),t.j41(2,"span",33),t.nrm(3,"i",37),t.k0s()(),t.DNE(4,An,17,0,"ng-template",null,3,t.C5r)),2&n){const e=t.sdS(5);t.Y8G("nzPopoverContent",e)}}function Wn(n,a){if(1&n&&(t.qex(0),t.nrm(1,"cvc-section-navigation",5),t.j41(2,"nz-page-header",6)(3,"nz-page-header-content")(4,"nz-row",7)(5,"nz-col",8)(6,"nz-space",9),t.DNE(7,Dn,1,2,"cvc-organization-avatar",10)(8,kn,6,4,"div",11)(9,Nn,2,0,"ng-container",4),t.k0s()(),t.j41(10,"nz-col",12)(11,"nz-space",9),t.DNE(12,Un,9,8,"nz-descriptions",13),t.k0s()(),t.j41(13,"nz-col",14)(14,"nz-descriptions",15)(15,"nz-descriptions-item",16),t.nrm(16,"cvc-stats-card",17),t.k0s(),t.DNE(17,Bn,6,1,"ng-template",null,0,t.C5r),t.k0s()()(),t.j41(19,"nz-row",18)(20,"nz-col",19),t.nrm(21,"cvc-tab-navigation",20),t.nI1(22,"ngrxPush"),t.j41(23,"div",21),t.nrm(24,"router-outlet"),t.k0s()()()()(),t.bVm()),2&n){const e=a.ngIf,i=t.sdS(18),o=t.XpG();t.R7$(),t.Y8G("displayName",e.name),t.R7$(3),t.Y8G("nzGutter",t.lJ4(10,$n)),t.R7$(5),t.Y8G("ngIf",e.url),t.R7$(6),t.Y8G("nzTitle",i),t.R7$(),t.Y8G("cvcStats",e.orgStatsHash)("cvcSubGroupStats",e.orgAndSuborgsStatsHash)("cvcRanks",e.ranks),t.R7$(5),t.Y8G("tabs",t.bMT(22,8,o.tabs$))}}let Hn=(()=>{class n{constructor(e,i,o){this.gql=e,this.viewerService=i,this.route=o,this.destroy$=new D.B,this.defaultTabs=[{routeName:"members",tabLabel:"Members",iconName:"pic-right"},{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"}],this.tabs$=new y.t(this.defaultTabs),this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,T.E)("loading"),(0,q.Z)(!0)),this.organization$=c.pipe((0,T.E)("data","organization")),this.viewer$=this.viewerService.viewer$,this.organization$.pipe((0,F.Q)(this.destroy$)).subscribe({next:g=>{this.tabs$.next(g&&g.subGroups.length>0?[...this.defaultTabs,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}]:this.defaultTabs)}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(m.ZC5),t.rXU(tt.q),t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["organizations-detail"]],decls:2,vars:3,consts:[["activitiesTitle",""],["noDescription",""],["noSubGroups",""],["rankingCalculations",""],[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical",2,"width","100%"],["shape","square",3,"organization","size",4,"nzSpaceItem"],["class","org-pseudo-tag",4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcSubGroupStats","cvcRanks"],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["shape","square",3,"organization","size"],[1,"org-pseudo-tag"],["nz-icon","","nzType","civic-organization","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography",""],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href",4,"nzSpaceItem"],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href"],["nz-icon","","nzType","link"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","4",3,"nzTitle"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"org"],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],[1,"calculation-info"]],template:function(i,o){1&i&&(t.DNE(0,Wn,25,11,"ng-container",4),t.nI1(1,"ngrxPush")),2&i&&t.Y8G("ngIf",t.bMT(1,1,o.organization$))},dependencies:[l.Sq,l.bT,h.n3,E.WB,E.zR,I.aO,X.c,p.Uq,p.e,d.Dn,z.U5,z.Dq,b.xA,b.gr,u.Di,Tt.L_,En.d,V.r,Gn.M,Ot.w,Rn.N,St.n,R.L9,It.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.org-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px;line-height:14px;padding:3px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]})}return n})();var Zn=s(9543);let Qn=(()=>{class n{constructor(e){this.route=e,this.mode=m.Qt1.Organization,this.organizationId=+this.route.snapshot.params.organizationId}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[["tagDisplay","hideOrg",3,"organizationId","mode"]],template:function(i,o){1&i&&t.nrm(0,"cvc-event-feed",0),2&i&&t.Y8G("organizationId",o.organizationId)("mode",o.mode)},dependencies:[Zn.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Kn=s(8199);let Jn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(i,o){1&i&&t.nrm(0,"cvc-evidence-table",0),2&i&&t.Y8G("organizationId",o.organizationId)},dependencies:[Kn.N],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();function qn(n,a){if(1&n&&t.nrm(0,"cvc-organization-avatar",8),2&n){const e=t.XpG();t.Y8G("organization",e.organization)("size",48)}}function te(n,a){if(1&n&&t.nrm(0,"cvc-organization-tag",9),2&n){const e=t.XpG();t.Y8G("org",e.organization)("enablePopover",!0)}}let ne=(()=>{class n{ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organization-card"]],inputs:{organization:"organization"},decls:11,vars:8,consts:[["organizationAvatar",""],["organizationTag",""],["nz-size","small"],[3,"nzTitle","nzDescription","nzAvatar"],[1,"organization-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Description",3,"nzSpan"],["nz-typography","","nzEllipsis","",3,"nzEllipsisRows","nzExpandable"],["shape","square",3,"organization","size"],[3,"org","enablePopover"]],template:function(i,o){if(1&i&&(t.j41(0,"nz-card",2),t.nrm(1,"nz-card-meta",3),t.DNE(2,qn,1,2,"ng-template",null,0,t.C5r)(4,te,1,2,"ng-template",null,1,t.C5r),t.j41(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6)(9,"p",7),t.EFF(10),t.k0s()()()()()),2&i){const r=t.sdS(3),c=t.sdS(5);t.R7$(),t.Y8G("nzTitle",o.organization.name)("nzDescription",c)("nzAvatar",r),t.R7$(6),t.Y8G("nzColumn",2),t.R7$(),t.Y8G("nzSpan",1),t.R7$(),t.Y8G("nzEllipsisRows",4)("nzExpandable",!0),t.R7$(),t.SpI(" ",o.organization.description," ")}},dependencies:[f.cK,f.ls,u.Di,b.xA,b.gr,Ot.w,V.r],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.organization-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0})}return n})();const ee=()=>[8,8];function ie(n,a){if(1&n&&(t.j41(0,"nz-col",4),t.nrm(1,"cvc-organization-card",5),t.k0s()),2&n){const e=t.XpG().$implicit;t.Y8G("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.R7$(),t.Y8G("organization",e)}}function oe(n,a){if(1&n&&(t.qex(0),t.DNE(1,ie,2,7,"nz-col",3),t.bVm()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("ngIf",e)}}let ae=(()=>{class n{constructor(e,i,o){this.gql=e,this.viewerService=i,this.route=o,this.routeSub=o.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,T.E)("loading"),(0,q.Z)(!0)),this.organizations$=c.pipe((0,T.E)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(m.mRx),t.rXU(tt.q),t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-groups"]],decls:5,vars:8,consts:[[2,"min-height","20em",3,"nzSpinning"],[3,"nzGutter"],[4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"organization"]],template:function(i,o){1&i&&(t.j41(0,"nz-spin",0),t.nI1(1,"ngrxPush"),t.j41(2,"nz-row",1),t.DNE(3,oe,2,1,"ng-container",2),t.nI1(4,"ngrxPush"),t.k0s()()),2&i&&(t.Y8G("nzSpinning",t.bMT(1,3,o.loading$)),t.R7$(2),t.Y8G("nzGutter",t.lJ4(7,ee)),t.R7$(),t.Y8G("ngForOf",t.bMT(4,5,o.organizations$)))},dependencies:[l.Sq,l.bT,p.Uq,p.e,K.a,ne,R.L9],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]})}return n})();var Mt=s(1635),C=s(9894),x=s(6354);const se=()=>[8,8],U=n=>({$implicit:n}),re=n=>({"list-height-block":n}),ce=()=>[0,5];function le(n,a){1&n&&t.eu8(0)}function ge(n,a){1&n&&t.eu8(0)}function pe(n,a){1&n&&t.eu8(0)}function de(n,a){1&n&&t.eu8(0)}function me(n,a){if(1&n&&(t.j41(0,"span",14),t.EFF(1),t.k0s(),t.j41(2,"span",15),t.nrm(3,"i",16),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.title," "),t.R7$(2),t.Y8G("nzTooltipTitle",e.info)}}function he(n,a){if(1&n&&(t.j41(0,"nz-badge",19),t.nrm(1,"nz-avatar",20),t.k0s()),2&n){const e=t.XpG().$implicit;t.Y8G("nzCount",e.rank)("nzOffset",t.lJ4(3,ce)),t.R7$(),t.Y8G("nzSrc",e.profileImagePath)}}function ze(n,a){if(1&n&&(t.j41(0,"nz-list-item"),t.DNE(1,he,2,4,"ng-template",null,5,t.C5r),t.j41(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),t.nrm(5,"cvc-organization-tag",18),t.k0s()()()),2&n){const e=a.$implicit,i=t.sdS(2);t.R7$(3),t.Y8G("nzAvatar",i),t.R7$(2),t.Y8G("org",e.organization)}}function fe(n,a){if(1&n&&t.nrm(0,"nz-list-empty",21),2&n){t.XpG();const e=t.sdS(7);t.Y8G("nzNoResult",e)}}function ue(n,a){1&n&&t.nrm(0,"nz-empty",22)}function ve(n,a){if(1&n&&(t.DNE(0,me,4,2,"ng-template",null,3,t.C5r),t.j41(2,"nz-list",10)(3,"div",11),t.DNE(4,ze,6,2,"nz-list-item",12),t.k0s(),t.DNE(5,fe,1,1,"nz-list-empty",13)(6,ue,1,0,"ng-template",null,4,t.C5r),t.k0s()),2&n){const e=a.$implicit,i=t.sdS(1);t.R7$(2),t.Y8G("nzHeader",i)("nzLoading",e.loading),t.R7$(),t.Y8G("ngClass",t.eq3(5,re,e.rows.length>0)),t.R7$(),t.Y8G("ngForOf",e.rows),t.R7$(),t.Y8G("ngIf",0===e.rows.length)}}function Ce(n,a){1&n&&(t.j41(0,"span",14)(1,"strong"),t.EFF(2,"Organization Curation Activity Leaderboards"),t.k0s()())}function _e(n,a){if(1&n){const e=t.RV6();t.j41(0,"span"),t.EFF(1,"Time: "),t.k0s(),t.j41(2,"nz-select",23),t.nI1(3,"ngrxPush"),t.bIt("ngModelChange",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.timeWindow$.next(o))}),t.nrm(4,"nz-option",24)(5,"nz-option",25)(6,"nz-option",26)(7,"nz-option",27),t.k0s()}if(2&n){const e=t.XpG();t.R7$(2),t.Y8G("nzDropdownMatchSelectWidth",!1)("ngModel",t.bMT(3,2,e.timeWindow$))}}let nt=class at{constructor(a,e,i,o){this.commentsGQL=a,this.revisionsGQL=e,this.moderationGQL=i,this.submissionsGQL=o,this.initialCommentsView={title:"Comments Leaderboard",info:"Organizations ranked by the total number of Comments posted by their members while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Organizations ranked by the total number of Revisions their members have suggested while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Organizations ranked by the total number of editorial actions their members have taken while acting on behalf of that Organization. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Organizations ranked by the total number of Evidence Items and Assertions their members have submitted while acting on behalf of that Organization",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=m.wJP.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new y.t(this.initialWindow),this.timeWindow$.pipe((0,C.s)(this)).subscribe(r=>{this.commentsQueryRef.refetch({window:r}),this.revisionsQueryRef.refetch({window:r}),this.moderationQueryRef.refetch({window:r}),this.submissionsQueryRef.refetch({window:r})}),this.commentsView$=new y.t(this.initialCommentsView),this.revisionsView$=new y.t(this.initialRevisionsView),this.moderationView$=new y.t(this.initialModerationView),this.submissionsView$=new y.t(this.initialSubmissionsView)}ngOnInit(){const a=e=>({rank:e.rank,actionCount:e.actionCount,profileImagePath:e.profileImagePath,name:e.name,organization:{id:e.id,name:e.name}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,x.T)(e=>{let i=[];return e.data&&e.data.organizationLeaderboards.commentsLeaderboard.edges.map(o=>{if(o.node){const r=a(o.node);i.push(r)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:e.loading,rows:[...i]}}),(0,C.s)(this)).subscribe(e=>this.commentsView$.next(e)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,x.T)(e=>{let i=[];return e.data&&e.data.organizationLeaderboards.moderationLeaderboard.edges.map(o=>{if(o.node){const r=a(o.node);i.push(r)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...i]}}),(0,C.s)(this)).subscribe(e=>this.moderationView$.next(e)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,x.T)(e=>{let i=[];return e.data&&e.data.organizationLeaderboards.revisionsLeaderboard.edges.map(o=>{if(o.node){const r=a(o.node);i.push(r)}}),{title:this.initialRevisionsView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...i]}}),(0,C.s)(this)).subscribe(e=>this.revisionsView$.next(e)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,x.T)(e=>{let i=[];return e.data&&e.data.organizationLeaderboards.submissionsLeaderboard.edges.map(o=>{if(o.node){const r=a(o.node);i.push(r)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:e.loading,rows:[...i]}}),(0,C.s)(this)).subscribe(e=>this.submissionsView$.next(e))}static#t=this.\u0275fac=function(e){return new(e||at)(t.rXU(m.rR2),t.rXU(m.$pU),t.rXU(m.xNz),t.rXU(m.cQZ))};static#n=this.\u0275cmp=t.VBU({type:at,selectors:[["cvc-organization-leaderboards"]],decls:20,vars:28,consts:[["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["listEmpty",""],["rowAvatar",""],["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],[3,"nzAvatar"],[3,"org"],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","civic-organization","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(e,i){if(1&e&&(t.j41(0,"nz-card",6)(1,"nz-row",7)(2,"nz-col",8),t.DNE(3,le,1,0,"ng-container",9),t.nI1(4,"ngrxPush"),t.k0s(),t.j41(5,"nz-col",8),t.DNE(6,ge,1,0,"ng-container",9),t.nI1(7,"ngrxPush"),t.k0s(),t.j41(8,"nz-col",8),t.DNE(9,pe,1,0,"ng-container",9),t.nI1(10,"ngrxPush"),t.k0s(),t.j41(11,"nz-col",8),t.DNE(12,de,1,0,"ng-container",9),t.nI1(13,"ngrxPush"),t.k0s()()(),t.DNE(14,ve,8,7,"ng-template",null,0,t.C5r)(16,Ce,3,0,"ng-template",null,1,t.C5r)(18,_e,8,4,"ng-template",null,2,t.C5r)),2&e){const o=t.sdS(15),r=t.sdS(17),c=t.sdS(19);t.Y8G("nzTitle",r)("nzExtra",c),t.R7$(),t.Y8G("nzGutter",t.lJ4(19,se)),t.R7$(2),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(20,U,t.bMT(4,11,i.commentsView$))),t.R7$(3),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(22,U,t.bMT(7,13,i.revisionsView$))),t.R7$(3),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(24,U,t.bMT(10,15,i.moderationView$))),t.R7$(3),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(26,U,t.bMT(13,17,i.submissionsView$)))}},dependencies:[l.YU,l.Sq,l.bT,l.T3,j.BC,j.vS,xt.dz,Z.PM,p.Uq,p.e,f.cK,S.eE,S.nt,S.lQ,S.qx,S.mf,J.ld,J.WI,u.Di,yt.RW,d.Dn,wt.LH,V.r,R.L9],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}"],changeDetection:0})};nt=(0,Mt.Cg)([(0,C.d)()],nt);var be=s(9995),A=s(9199),et=s(3294),Te=s(7048),ye=s(5245),xe=s(152),we=s(3993),Oe=s(3296),Se=s(3431),Ie=s(2923),Me=s(1852),Pe=s(1405),Ee=s(435),Pt=s(6911),Ge=s(8139);const Re=n=>({height:n}),$e=()=>[],De=()=>({x:"680px",y:"800px"});function ke(n,a){}function Fe(n,a){if(1&n&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,ke,0,0,"ng-template",7),t.k0s(),t.bVm()),2&n){t.XpG();const e=t.sdS(4),i=t.sdS(6),o=t.sdS(8);t.R7$(),t.Y8G("nzTitle",i)("nzExtra",o),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Ne(n,a){}function Le(n,a){if(1&n&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,Ne,0,0,"ng-template",7),t.k0s()()),2&n){const e=t.XpG(),i=t.sdS(4),o=t.sdS(6),r=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,Re,e.cvcHeight)),t.R7$(),t.Y8G("nzTitle",o)("nzExtra",r),t.R7$(),t.Y8G("ngTemplateOutlet",i)}}function je(n,a){if(1&n&&(t.nrm(0,"tr",23),t.j41(1,"tr")(2,"td",19),t.nrm(3,"cvc-organization-tag",24),t.k0s(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"number"),t.k0s(),t.j41(7,"td"),t.nrm(8,"cvc-tag-overflow",25),t.k0s(),t.j41(9,"td",26),t.EFF(10),t.nI1(11,"number"),t.k0s(),t.j41(12,"td",26),t.EFF(13),t.nI1(14,"timeAgo"),t.k0s()()),2&n){const e=a.$implicit;t.R7$(3),t.Y8G("org",e),t.R7$(2),t.SpI(" ",t.bMT(6,6,e.memberCount)," "),t.R7$(3),t.Y8G("maxDisplayCount",1)("tags",e.childOrganizations),t.R7$(2),t.SpI(" ",t.bMT(11,8,e.activityCount)," "),t.R7$(3),t.SpI(" ",t.bMT(14,10,e.mostRecentActivityTimestamp)," ")}}function Ye(n,a){if(1&n){const e=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.scrollEvent$.next(o))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.sortChange$.next(o))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Organization "),t.k0s(),t.j41(10,"th",14),t.EFF(11," Members "),t.k0s(),t.j41(12,"th",15),t.EFF(13,"Sub Organizations"),t.k0s(),t.j41(14,"th",16),t.EFF(15," Actions "),t.k0s(),t.j41(16,"th",17),t.EFF(17," Last Action "),t.k0s()(),t.j41(18,"tr",18)(19,"th",19)(20,"cvc-clearable-input-filter",20),t.mxI("inputModelChange",function(o){t.eBV(e);const r=t.XpG();return t.DH7(r.orgNameInput,o)||(r.orgNameInput=o),t.Njj(o)}),t.bIt("inputModelChange",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.filterChange$.next())}),t.k0s()(),t.nrm(21,"th")(22,"th")(23,"th",21)(24,"th",21),t.k0s()(),t.j41(25,"tbody"),t.DNE(26,je,15,12,"ng-template",22),t.k0s()()}if(2&n){const e=t.XpG();t.Y8G("nzData",t.bMT(2,20,e.row$)||t.lJ4(28,$e))("nzLoading",!t.bMT(3,22,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.bMT(4,24,e.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,26,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.lJ4(29,De))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.MemberCount)("nzSortFn",!0),t.R7$(4),t.Y8G("nzColumnKey",e.sortColumns.ActivityCount)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.MostRecentActivityTimestamp)("nzSortFn",!0),t.R7$(4),t.R50("inputModel",e.orgNameInput)}}function Xe(n,a){}function Ve(n,a){if(1&n&&(t.qex(0),t.DNE(1,Xe,0,0,"ng-template",7),t.bVm()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",e.cvcTitleTemplate)}}function Ue(n,a){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.cvcTitle," ")}}function Ae(n,a){if(1&n&&(t.DNE(0,Ve,2,1,"ng-container",27)(1,Ue,2,1,"ng-container",27),t.j41(2,"span",28),t.nrm(3,"cvc-table-counts",29),t.k0s()),2&n){const e=t.XpG();t.Y8G("ngIf",e.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",e.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",e.connection$)}}function Be(n,a){1&n&&(t.j41(0,"nz-tag",32),t.nrm(1,"i",33),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function We(n,a){if(1&n&&(t.DNE(0,Be,4,0,"nz-tag",30),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",31),t.nI1(3,"ngrxPush")),2&n){const e=t.XpG();t.Y8G("ngIf",t.bMT(1,2,e.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,e.noMoreRows$))}}let it=class st{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,e){this.gql=a,this.cdr=e,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=m.RKe,this.noMoreRows$=new y.t(!1),this.scrollEvent$=new y.t("stop"),this.sortChange$=new D.B,this.filterChange$=new D.B,this.scrollIndex$=new D.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,T.E)("loading"),(0,et.F)(),(0,Te.v)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,T.E)("loading"),(0,et.F)(),(0,ye.i)(2)),this.connection$=this.result$.pipe((0,T.E)("data","organizations"),(0,w.p)(A.kP)),this.row$=this.connection$.pipe((0,T.E)("edges"),(0,w.p)(A.kP),(0,x.T)(a=>a.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,T.E)("pageInfo"),(0,w.p)(A.kP)),this.sortChange$.pipe((0,C.s)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,be.X)(a)})}),this.filterChange$.pipe((0,xe.B)(500),(0,C.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,x.T)(a=>"stop"!==a),(0,et.F)(),(0,C.s)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,w.p)(a=>"bottom"===a),(0,we.E)(this.pageInfo$),(0,x.T)(([a,e])=>e),(0,C.s)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({orgName:this.orgNameInput,id:this.idInput?+this.idInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,e){return e?.id}static#t=this.\u0275fac=function(e){return new(e||st)(t.rXU(m.rUT),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:st,selectors:[["cvc-organizations-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","300px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100px",3,"nzColumnKey","nzSortFn"],["nzWidth","320px"],["nzWidth","80px","nzRight","","nzAlign","right",3,"nzColumnKey","nzSortFn"],["nzWidth","125px","nzRight","","nzAlign","right",3,"nzColumnKey","nzSortFn"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"org"],["tagType","organization",3,"maxDisplayCount","tags"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(e,i){if(1&e&&t.DNE(0,Fe,3,3,"ng-container",5)(1,Le,3,6,"ng-template",null,0,t.C5r)(3,Ye,27,30,"ng-template",null,1,t.C5r)(5,Ae,4,3,"ng-template",null,2,t.C5r)(7,We,4,6,"ng-template",null,3,t.C5r),2&e){const o=t.sdS(2);t.Y8G("ngIf",!i.cvcHeight)("ngIfElse",o)}},dependencies:[l.bT,l.T3,l.B3,d.Dn,v.CP,v.Cc,v.SO,v._4,v.IL,v.aj,v.kt,v.CC,v.OL,v.jc,X.c,f.cK,Y.s,Oe.M,Se.y,Ie.f,Me.M,Pe.s,Ee.n,V.r,Pt.U,l.QX,R.L9,Ge.N],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]})};it=(0,Mt.Cg)([(0,C.d)()],it);const He=()=>[8,16];function Ze(n,a){1&n&&(t.j41(0,"a",14),t.nrm(1,"i",15),t.EFF(2," View Organization Docs "),t.k0s())}let Qe=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["organizations-home"]],decls:21,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-organization",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse Organizations"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(i,o){1&i&&(t.nrm(0,"cvc-section-navigation"),t.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t.nrm(5,"i",3),t.nI1(6,"entityColor"),t.k0s(),t.j41(7,"nz-col",4)(8,"h2"),t.EFF(9,"Organizations"),t.k0s(),t.j41(10,"p",5),t.EFF(11," Users may be included in Organizations, primarily in order to keep track of an organization\u2019s contributions to CIViC curation. A User\u2019s organization affiliation is displayed in their profile and user card. "),t.k0s()(),t.j41(12,"nz-col",6)(13,"nz-space",7),t.DNE(14,Ze,3,0,"a",8),t.k0s()()(),t.j41(15,"nz-row",9)(16,"nz-col",10),t.nrm(17,"cvc-organization-leaderboards"),t.k0s(),t.j41(18,"nz-col",11)(19,"div",12),t.nrm(20,"cvc-organizations-table",13),t.k0s()()()()()),2&i&&(t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(6,4,"Organization")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(5),t.Y8G("nzGutter",t.lJ4(6,He)),t.R7$(3),t.Y8G("nzSpan",24))},dependencies:[E.WB,E.zR,d.Dn,p.Uq,p.e,I.aO,X.c,z.U5,z.Dq,u.Di,St.n,nt,it,It.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var ot=s(9085),Ke=s(5930),Je=s(9162),qe=s(6408),ti=s(1845);const ni=(n,a,e,i,o)=>[n,a,e,i,o];function ei(n,a){if(1&n&&t.nrm(0,"cvc-user-avatar",22),2&n){const e=t.XpG();t.Y8G("user",e.user)("size",48)}}function ii(n,a){if(1&n&&t.nrm(0,"cvc-user-tag",23),2&n){const e=t.XpG();t.Y8G("user",e.user)("enablePopover",!1)}}function oi(n,a){if(1&n&&(t.qex(0),t.EFF(1),t.nI1(2,"enumToTitle"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,1,e.user.areaOfExpertise)," ")}}function ai(n,a){if(1&n&&(t.qex(0),t.nrm(1,"cvc-tag-overflow",24),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("maxDisplayCount",2)("tags",e.organizations)}}function si(n,a){1&n&&(t.qex(0),t.j41(1,"span",25)(2,"i"),t.EFF(3,"User is not a member of any Organizations."),t.k0s()(),t.bVm())}function ri(n,a){1&n&&(t.j41(0,"i",25),t.EFF(1," None provided "),t.k0s())}function ci(n,a){if(1&n&&(t.j41(0,"a",27),t.nrm(1,"i",28),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","https://",e.user.url,"",t.B4B)}}function li(n,a){1&n&&t.nrm(0,"i",29)}function gi(n,a){if(1&n&&t.DNE(0,ci,2,2,"a",26)(1,li,1,0,"ng-template",null,8,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.url)("ngIfElse",e)}}function pi(n,a){if(1&n&&(t.j41(0,"a",31),t.nrm(1,"i",32),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","http://twitter.com/",e.user.twitterHandle,"",t.B4B)}}function di(n,a){1&n&&t.nrm(0,"i",33)}function mi(n,a){if(1&n&&t.DNE(0,pi,2,2,"a",30)(1,di,1,0,"ng-template",null,9,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.twitterHandle)("ngIfElse",e)}}function hi(n,a){if(1&n&&(t.j41(0,"a",35),t.nrm(1,"i",36),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","http://facebook.com/",e.user.facebookProfile,"",t.B4B)}}function zi(n,a){1&n&&t.nrm(0,"i",37)}function fi(n,a){if(1&n&&t.DNE(0,hi,2,2,"a",34)(1,zi,1,0,"ng-template",null,10,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.facebookProfile)("ngIfElse",e)}}function ui(n,a){if(1&n&&(t.j41(0,"a",39),t.nrm(1,"i",40),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.B4B)}}function vi(n,a){1&n&&t.nrm(0,"i",41)}function Ci(n,a){if(1&n&&t.DNE(0,ui,2,2,"a",38)(1,vi,1,0,"ng-template",null,11,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.linkedinProfile)("ngIfElse",e)}}function _i(n,a){if(1&n&&(t.j41(0,"a",43),t.nrm(1,"i",44),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","https://orcid.org/",e.user.orcid,"",t.B4B)}}function bi(n,a){1&n&&t.nrm(0,"i",45)}function Ti(n,a){if(1&n&&t.DNE(0,_i,2,2,"a",42)(1,bi,1,0,"ng-template",null,12,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.orcid)("ngIfElse",e)}}let yi=(()=>{class n{constructor(){this.organizations=[]}ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case m.gG1.Admin:this.icon="civic-admin";break;case m.gG1.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}this.user.organizations.forEach(e=>{this.organizations.push({id:e.id,name:e.name,link:e.url})})}static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-user-card"]],inputs:{user:"user"},decls:28,vars:22,consts:[["userAvatar",""],["userTag",""],["noneProvided",""],["personalLink",""],["twitterLink",""],["facebookLink",""],["linkedinLink",""],["orcidLink",""],["noPersonalLink",""],["noTwitterLink",""],["noFacebookLink",""],["noLinkedinLink",""],["noOrcidLink",""],["nzSize","small",3,"nzActions"],[3,"nzTitle","nzDescription","nzAvatar"],[1,"user-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Expertise",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],[4,"ngIf"],["shape","square",3,"user","size"],[3,"user","enablePopover"],["tagType","organization",3,"maxDisplayCount","tags"],["nz-typography","","nzType","secondary"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["nz-icon","","nzType","link","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","twitter","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-icon","","nzType","civic-orcid","nzTheme","outline",2,"color","#aaaaaa"]],template:function(i,o){if(1&i&&(t.j41(0,"nz-card",13),t.nrm(1,"nz-card-meta",14),t.DNE(2,ei,1,2,"ng-template",null,0,t.C5r)(4,ii,1,2,"ng-template",null,1,t.C5r),t.j41(6,"div",15)(7,"nz-descriptions",16)(8,"nz-descriptions-item",17),t.EFF(9),t.nI1(10,"titlecase"),t.k0s(),t.j41(11,"nz-descriptions-item",18),t.DNE(12,oi,3,3,"ng-container",19),t.k0s(),t.j41(13,"nz-descriptions-item",20),t.DNE(14,ai,2,2,"ng-container",21)(15,si,4,0,"ng-container",21),t.k0s(),t.DNE(16,ri,2,0,"ng-template",null,2,t.C5r),t.k0s()()(),t.DNE(18,gi,3,2,"ng-template",null,3,t.C5r)(20,mi,3,2,"ng-template",null,4,t.C5r)(22,fi,3,2,"ng-template",null,5,t.C5r)(24,Ci,3,2,"ng-template",null,6,t.C5r)(26,Ti,3,2,"ng-template",null,7,t.C5r)),2&i){const r=t.sdS(3),c=t.sdS(5),g=t.sdS(17),_=t.sdS(19),$=t.sdS(21),M=t.sdS(23),P=t.sdS(25),ki=t.sdS(27);t.Y8G("nzActions",t.s1E(16,ni,_,ki,P,M,$)),t.R7$(),t.Y8G("nzTitle",o.user.name?o.user.name:o.user.displayName)("nzDescription",c)("nzAvatar",r),t.R7$(6),t.Y8G("nzColumn",2),t.R7$(),t.Y8G("nzSpan",1),t.R7$(),t.SpI(" ",t.bMT(10,14,o.user.role)," "),t.R7$(2),t.Y8G("nzSpan",1),t.R7$(),t.Y8G("ngIf",o.user.areaOfExpertise)("ngIfElse",g),t.R7$(),t.Y8G("nzSpan",2)("nzTitle","Organization"+(o.organizations.length>1?"s":"")),t.R7$(),t.Y8G("ngIf",o.user.organizations.length>0),t.R7$(),t.Y8G("ngIf",0===o.user.organizations.length)}},dependencies:[l.bT,f.cK,f.ls,b.xA,b.gr,u.Di,d.Dn,Pt.U,Je.G,qe.r,l.PV,ti.f],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.user-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0})}return n})();const xi=()=>[8,8];function wi(n,a){if(1&n&&(t.j41(0,"nz-col",4),t.nrm(1,"cvc-user-card",5),t.k0s()),2&n){const e=t.XpG().$implicit;t.Y8G("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.R7$(),t.Y8G("user",e)}}function Oi(n,a){if(1&n&&(t.qex(0),t.DNE(1,wi,2,7,"nz-col",3),t.bVm()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("ngIf",e)}}function Si(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(e);const o=t.XpG().ngrxLet,r=t.XpG();return t.Njj(r.loadMore(o.endCursor))}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG(2);t.R7$(),t.SpI(" Load ",e.initialPageSize," More ")}}function Ii(n,a){if(1&n&&(t.j41(0,"nz-col",6),t.DNE(1,Si,2,1,"button",7),t.k0s()),2&n){const e=a.ngrxLet;t.R7$(),t.Y8G("ngIf",e&&e.hasNextPage&&e.endCursor)}}let Mi=(()=>{class n{constructor(e,i,o){this.gql=e,this.viewerService=i,this.route=o,this.initialPageSize=20,this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId,first:this.initialPageSize});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,ot.E)("loading"),(0,q.Z)(!0)),this.members$=c.pipe((0,ot.E)("data","users","edges"),(0,w.p)(A.Vq),(0,x.T)(g=>g.map(_=>_.node))),this.pageInfo$=c.pipe((0,ot.E)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$})}loadMore(e){this.queryRef?.fetchMore({variables:{after:e}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(m.Vl8),t.rXU(tt.q),t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-members"]],decls:4,vars:6,consts:[[3,"nzGutter"],[4,"ngFor","ngForOf"],["nzSpan","24",4,"ngrxLet"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"user"],["nzSpan","24"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"]],template:function(i,o){1&i&&(t.j41(0,"nz-row",0),t.DNE(1,Oi,2,1,"ng-container",1),t.nI1(2,"ngrxPush"),t.DNE(3,Ii,2,1,"nz-col",2),t.k0s()),2&i&&(t.Y8G("nzGutter",t.lJ4(5,xi)),t.R7$(),t.Y8G("ngForOf",t.bMT(2,3,o.members$)),t.R7$(2),t.Y8G("ngrxLet",o.pageInfo$))},dependencies:[l.Sq,l.bT,R.Nj,p.Uq,p.e,I.aO,X.c,Ke.p,yi,R.L9],encapsulation:2})}return n})();var Pi=s(3340);const Ei=[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["app-organizations"]],decls:1,vars:0,template:function(i,o){1&i&&t.nrm(0,"router-outlet")},dependencies:[h.n3],encapsulation:2})}return n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Qe},{path:":organizationId",component:Hn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Mi,data:{breadcrumb:"Members"}},{path:"groups",component:ae,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:Jn,data:{breadcrumb:"Evidence"}},{path:"assertions",component:Pn,data:{breadcrumb:"Assertions"}},{path:"activity",component:Qn,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class n{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(i,o){1&i&&t.nrm(0,"cvc-source-suggestions-table",0)},dependencies:[Pi.E],styles:["[_nghost-%COMP%]{display:block}"]})}return n})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let Gi=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[h.iI.forChild(Ei),h.iI]})}return n})();var Ri=s(5594);let $i=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,Ri.b]})}return n})(),Di=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,Gi,xn,mn,Gt,ln,pn,hn,In,$i]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/1781.e7beca05e7242acb.js b/server/public/1781.e7beca05e7242acb.js new file mode 100644 index 000000000..a4a390b02 --- /dev/null +++ b/server/public/1781.e7beca05e7242acb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[1781],{1781:(Fi,rt,s)=>{s.r(rt),s.d(rt,{OrganizationsModule:()=>Di});var l=s(177),Gt=s(7660),d=s(5103),t=s(3953);let Rt=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,Gt.u,d.Y3]})}return n})();var ct=s(4124),lt=s(3726),D=s(1413),F=s(6977),w=s(5964),$t=s(6697),Dt=s(5558),gt=s(6042),pt=s(1391),kt=s(713),dt=s(1025),N=s(317),Ft=s(345),B=s(7987),Nt=s(6939),S=s(7336),Lt=s(8203);const jt=["imgRef"],Yt=["imagePreviewWrapper"];function Xt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",13),t.bIt("click",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.onSwitchLeft(o))}),t.nrm(1,"span",14),t.k0s(),t.j41(2,"div",15),t.bIt("click",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.onSwitchRight(o))}),t.nrm(3,"span",16),t.k0s()}if(2&n){const e=t.XpG();t.AVh("ant-image-preview-switch-left-disabled",e.index<=0),t.R7$(2),t.AVh("ant-image-preview-switch-right-disabled",e.index>=e.images.length-1)}}function Vt(n,a){if(1&n&&(t.j41(0,"li",5),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Lme("",e.index+1," / ",e.images.length,"")}}function Ut(n,a){if(1&n){const e=t.RV6();t.j41(0,"li",17),t.bIt("click",function(){const o=t.eBV(e).$implicit;return t.Njj(o.onClick())}),t.nrm(1,"span",18),t.k0s()}if(2&n){let e;const i=a.$implicit,o=t.XpG();t.AVh("ant-image-preview-operations-operation-disabled",o.zoomOutDisabled&&"zoomOut"===i.type),t.R7$(),t.Y8G("nzType",i.icon)("nzRotate",null!==(e=i.rotate)&&void 0!==e?e:0)}}function At(n,a){if(1&n&&t.nrm(0,"img",20,1),2&n){const e=t.XpG().$implicit,i=t.XpG();t.xc7("width",e.width)("height",e.height)("transform",i.previewImageTransform),t.BMQ("src",i.sanitizerResourceUrl(e.src),t.B4B)("srcset",e.srcset)("alt",e.alt)}}function Bt(n,a){if(1&n&&t.DNE(0,At,2,9,"img",19),2&n){const e=a.$index,i=t.XpG();t.vxM(e===i.index?0:-1)}}function ht(n,a,e){const i=n+a,o=(a-e)/2;let r=null;return a>e?(n>0&&(r=o),n<0&&ie)&&(r=n<0?o:-o),r}class W{constructor(){this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzMaskClosable=!0,this.nzCloseOnNavigation=!0}}const zt={x:0,y:0};let ft=(()=>{class n{get animationDisabled(){return this.config.nzNoAnimation??!1}get maskClosable(){const e=this.nzConfigService.getConfigForComponent("image")||{};return this.config.nzMaskClosable??e.nzMaskClosable??!0}constructor(e,i,o,r,c,g){this.ngZone=e,this.cdr=i,this.nzConfigService=o,this.config=r,this.destroy$=c,this.sanitizer=g,this._defaultNzZoom=1,this._defaultNzScaleStep=.5,this._defaultNzRotate=0,this.images=[],this.index=0,this.isDragging=!1,this.visible=!0,this.animationStateChanged=new t.bkB,this.scaleStepMap=new Map,this.previewImageTransform="",this.previewImageWrapperTransform="",this.operations=[{icon:"close",onClick:()=>{this.onClose()},type:"close"},{icon:"zoom-in",onClick:()=>{this.onZoomIn()},type:"zoomIn"},{icon:"zoom-out",onClick:()=>{this.onZoomOut()},type:"zoomOut"},{icon:"rotate-right",onClick:()=>{this.onRotateRight()},type:"rotateRight"},{icon:"rotate-left",onClick:()=>{this.onRotateLeft()},type:"rotateLeft"},{icon:"swap",onClick:()=>{this.onHorizontalFlip()},type:"flipHorizontally"},{icon:"swap",onClick:()=>{this.onVerticalFlip()},type:"flipVertically",rotate:90}],this.zoomOutDisabled=!1,this.position={...zt},this.closeClick=new t.bkB,this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.flipHorizontally=this.config.nzFlipHorizontally??!1,this.flipVertically=this.config.nzFlipVertically??!1,this.updateZoomOutDisabled(),this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform()}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,lt.R)(this.imagePreviewWrapper.nativeElement,"mousedown").pipe((0,F.Q)(this.destroy$)).subscribe(()=>{this.isDragging=!0}),(0,lt.R)(this.imagePreviewWrapper.nativeElement,"wheel").pipe((0,F.Q)(this.destroy$)).subscribe(e=>{this.ngZone.run(()=>this.wheelZoomEventHandler(e))})})}setImages(e,i){i&&(this.scaleStepMap=i),this.images=e,this.markForCheck()}switchTo(e){this.index=e,this.markForCheck()}next(){this.index0&&(this.reset(),this.index--,this.updatePreviewImageTransform(),this.updatePreviewImageWrapperTransform(),this.updateZoomOutDisabled(),this.markForCheck())}markForCheck(){this.cdr.markForCheck()}onClose(){this.visible=!1,this.closeClick.emit()}onZoomIn(){const e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom+=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled()}onZoomOut(){if(this.zoom>1){const e=this.scaleStepMap.get(this.images[this.index].src??this.images[this.index].srcset)??this.scaleStep;this.zoom-=e,this.updatePreviewImageTransform(),this.updateZoomOutDisabled(),this.zoom<=1&&this.reCenterImage()}}onRotateRight(){this.rotate+=90,this.updatePreviewImageTransform()}onRotateLeft(){this.rotate-=90,this.updatePreviewImageTransform()}onSwitchLeft(e){e.preventDefault(),e.stopPropagation(),this.prev()}onSwitchRight(e){e.preventDefault(),e.stopPropagation(),this.next()}onHorizontalFlip(){this.flipHorizontally=!this.flipHorizontally,this.updatePreviewImageTransform()}onVerticalFlip(){this.flipVertically=!this.flipVertically,this.updatePreviewImageTransform()}wheelZoomEventHandler(e){e.preventDefault(),e.stopPropagation(),this.handlerImageTransformationWhileZoomingWithMouse(e,e.deltaY),this.handleImageScaleWhileZoomingWithMouse(e.deltaY),this.updatePreviewImageWrapperTransform(),this.updatePreviewImageTransform(),this.markForCheck()}onAnimationStart(e){this.animationStateChanged.emit(e)}onAnimationDone(e){this.animationStateChanged.emit(e)}onDragEnd(e){this.isDragging=!1;const i=this.imageRef.nativeElement.offsetWidth*this.zoom,o=this.imageRef.nativeElement.offsetHeight*this.zoom,{left:r,top:c}=function Ht(n){const a=n.getBoundingClientRect(),e=document.documentElement;return{left:a.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||document.body.clientTop||0)}}(this.imageRef.nativeElement),{width:g,height:_}=function Zt(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}(),$=this.rotate%180!=0,P=function Wt(n){let a={};return n.width<=n.clientWidth&&n.height<=n.clientHeight&&(a={x:0,y:0}),(n.width>n.clientWidth||n.height>n.clientHeight)&&(a={x:ht(n.left,n.width,n.clientWidth),y:ht(n.top,n.height,n.clientHeight)}),a}({width:$?o:i,height:$?i:o,left:r,top:c,clientWidth:g,clientHeight:_});(0,N.n9)(P.x)||(0,N.n9)(P.y)?this.position={...this.position,...P}:!(0,N.n9)(P.x)&&!(0,N.n9)(P.y)&&(this.position={x:e.source.getFreeDragPosition().x,y:e.source.getFreeDragPosition().y})}sanitizerResourceUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}updatePreviewImageTransform(){this.previewImageTransform=`scale3d(${this.zoom*(this.flipHorizontally?-1:1)}, ${this.zoom*(this.flipVertically?-1:1)}, 1) rotate(${this.rotate}deg)`}updatePreviewImageWrapperTransform(){this.previewImageWrapperTransform=`translate3d(${this.position.x}px, ${this.position.y}px, 0)`}updateZoomOutDisabled(){this.zoomOutDisabled=this.zoom<=1}handlerImageTransformationWhileZoomingWithMouse(e,i){let o;const r=this.imageRef.nativeElement,g=getComputedStyle(r).transform.match(/matrix.*\((.+)\)/);o=g?+g[1].split(", ")[0]:this.zoom;const _=(e.clientX-r.getBoundingClientRect().x)/o,$=(e.clientY-r.getBoundingClientRect().y)/o,M=i<0?this.scaleStep/2:-this.scaleStep/2;this.position.x+=-_*M*2+r.offsetWidth*M,this.position.y+=-$*M*2+r.offsetHeight*M}handleImageScaleWhileZoomingWithMouse(e){this.isZoomedInWithMouseWheel(e)?this.onZoomIn():this.onZoomOut(),this.zoom<=1&&this.reCenterImage()}isZoomedInWithMouseWheel(e){return e<0}reset(){this.zoom=this.config.nzZoom??this._defaultNzZoom,this.scaleStep=this.config.nzScaleStep??this._defaultNzScaleStep,this.rotate=this.config.nzRotate??this._defaultNzRotate,this.flipHorizontally=!1,this.flipVertically=!1,this.reCenterImage()}reCenterImage(){this.position={...zt}}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(gt.yx),t.rXU(W),t.rXU(dt.y4),t.rXU(Ft.up))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["nz-image-preview"]],viewQuery:function(i,o){if(1&i&&(t.GBs(jt,5),t.GBs(Yt,7)),2&i){let r;t.mGM(r=t.lsd())&&(o.imageRef=r.first),t.mGM(r=t.lsd())&&(o.imagePreviewWrapper=r.first)}},hostAttrs:[1,"ant-image-preview-root"],hostVars:6,hostBindings:function(i,o){1&i&&t.Kam("@fadeMotion.start",function(c){return o.onAnimationStart(c)})("@fadeMotion.done",function(c){return o.onAnimationDone(c)}),2&i&&(t.zvX("@.disabled",o.config.nzNoAnimation)("@fadeMotion",o.visible?"enter":"leave"),t.xc7("z-index",o.config.nzZIndex),t.AVh("ant-image-preview-moving",o.isDragging))},exportAs:["nzImagePreview"],standalone:!0,features:[t.Jv_([dt.y4]),t.aNF],decls:17,vars:5,consts:[["imagePreviewWrapper",""],["imgRef",""],[1,"ant-image-preview-mask"],[1,"ant-image-preview-operations-wrapper"],[1,"ant-image-preview-operations"],[1,"ant-image-preview-operations-progress"],[1,"ant-image-preview-operations-operation",3,"ant-image-preview-operations-operation-disabled"],["tabindex","-1",1,"ant-image-preview-wrap",3,"click"],["role","dialog","aria-modal","true",1,"ant-image-preview"],["tabindex","0","aria-hidden","true",2,"width","0","height","0","overflow","hidden","outline","none"],[1,"ant-image-preview-content"],[1,"ant-image-preview-body"],["cdkDrag","",1,"ant-image-preview-img-wrapper",3,"cdkDragEnded","cdkDragFreeDragPosition"],[1,"ant-image-preview-switch-left",3,"click"],["nz-icon","","nzType","left","nzTheme","outline"],[1,"ant-image-preview-switch-right",3,"click"],["nz-icon","","nzType","right","nzTheme","outline"],[1,"ant-image-preview-operations-operation",3,"click"],["nz-icon","","nzTheme","outline",1,"ant-image-preview-operations-icon",3,"nzType","nzRotate"],["cdkDragHandle","",1,"ant-image-preview-img",3,"width","height","transform"],["cdkDragHandle","",1,"ant-image-preview-img"]],template:function(i,o){if(1&i){const r=t.RV6();t.nrm(0,"div",2),t.j41(1,"div",3),t.DNE(2,Xt,4,4),t.j41(3,"ul",4),t.DNE(4,Vt,2,2,"li",5),t.Z7z(5,Ut,2,4,"li",6,t.fX1),t.k0s()(),t.j41(7,"div",7),t.bIt("click",function(g){return t.eBV(r),t.Njj(o.maskClosable&&g.target===g.currentTarget&&o.onClose())}),t.j41(8,"div",8),t.nrm(9,"div",9),t.j41(10,"div",10)(11,"div",11)(12,"div",12,0),t.bIt("cdkDragEnded",function(g){return t.eBV(r),t.Njj(o.onDragEnd(g))}),t.Z7z(14,Bt,1,1,null,null,t.fX1),t.k0s()()(),t.nrm(16,"div",9),t.k0s()()}2&i&&(t.R7$(2),t.vxM(o.images.length>1?2:-1),t.R7$(2),t.vxM(o.images.length>1?4:-1),t.R7$(),t.Dyx(o.operations),t.R7$(7),t.xc7("transform",o.previewImageWrapperTransform),t.Y8G("cdkDragFreeDragPosition",o.position),t.R7$(2),t.Dyx(o.images))},dependencies:[d.Y3,d.Dn,pt.Fb,pt.T1],encapsulation:2,data:{animation:[kt.LD]},changeDetection:0})}return n})();class qt{constructor(a,e,i){this.previewInstance=a,this.config=e,this.overlayRef=i,this.destroy$=new D.B,i.keydownEvents().pipe((0,w.p)(o=>this.config.nzKeyboard&&(o.keyCode===S._f||o.keyCode===S.UQ||o.keyCode===S.LE)&&!(0,S.rp)(o))).subscribe(o=>{o.preventDefault(),o.keyCode===S._f&&a.onClose(),o.keyCode===S.UQ&&this.prev(),o.keyCode===S.LE&&this.next()}),i.detachments().subscribe(()=>{this.overlayRef.dispose()}),a.closeClick.pipe((0,$t.s)(1),(0,Dt.n)(()=>a.animationStateChanged),(0,w.p)(o=>"done"===o.phaseName),(0,F.Q)(this.destroy$)).subscribe(()=>{this.close()})}switchTo(a){this.previewInstance.switchTo(a)}next(){this.previewInstance.next()}prev(){this.previewInstance.prev()}close(){this.destroy$.next(),this.overlayRef.dispose()}}let tn=(()=>{class n{constructor(e,i,o,r){this.overlay=e,this.injector=i,this.nzConfigService=o,this.directionality=r}preview(e,i,o){return this.display(e,i,o)}display(e,i,o){const r={...new W,...i??{}},c=this.createOverlay(r),g=this.attachPreviewComponent(c,r);g.setImages(e,o);const _=new qt(g,r,c);return g.previewRef=_,_}attachPreviewComponent(e,i){const o=t.zZn.create({parent:this.injector,providers:[{provide:B.yY,useValue:e},{provide:W,useValue:i}]}),r=new Nt.A8(ft,null,o);return e.attach(r).instance}createOverlay(e){const i=this.nzConfigService.getConfigForComponent("image")||{},o=new B.rR({scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:e.nzCloseOnNavigation??i.nzCloseOnNavigation??!0,direction:e.nzDirection||i.nzDirection||this.directionality.value});return this.overlay.create(o)}static#t=this.\u0275fac=function(i){return new(i||n)(t.KVO(B.hJ),t.KVO(t.zZn),t.KVO(gt.yx),t.KVO(Lt.dS,8))};static#n=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}return n})(),nn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({providers:[tn],imports:[ft]})}return n})();var E=s(3062),en=s(1532),p=s(7529),z=s(7685),h=s(1188),H=s(7054),ut=s(6677),f=s(5703),O=s(2617),k=s(8920),vt=s(6208),Z=s(9438),b=s(2e3),L=s(9448),Ct=s(5285),G=s(4917),on=s(1542),an=s(9213),sn=s(9192),rn=s(9619),u=s(7391),_t=s(2142),cn=s(2986),j=s(9417),ln=s(9802),Q=s(9374);let bt=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,j.YN,f.Ti,p.f3,z.pc,u.kT,ut.Fw,b.WF,L.g,cn.IJ,Q.r,H.L,rn.u,sn.J,ln._,an.l,on.X,Ct.T,G.i,k.U,vt.K,_t.x]})}return n})();var Tt=s(1236),Y=s(5699),I=s(513);let gn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,h.iI,E.ZJ,I.Zw,p.f3,d.Y3,z.pc,nn,f.Ti,ut.Fw,O.rD,Z.Yb,b.WF,L.g,u.kT,Tt.MC,Y.T,vt.K,k.U,_t.x,G.i,Ct.T,H.L,en.W,ct.C,bt]})}return n})();var pn=s(2385),yt=s(8313);let dn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,pn.p,yt.Y]})}return n})();var mn=s(4531);let hn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,mn.C]})}return n})();var K=s(2983);let zn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,z.pc,p.f3,K.V,bt]})}return n})();var fn=s(7874),un=s(9214),vn=s(4998),Cn=s(4256),_n=s(4450),bn=s(8252),v=s(9247);let Tn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,d.Y3,v.$G,I.Zw,f.Ti,d.Y3,u.kT,Y.T,un.y,vn.B,bn.A,Cn.t,_n.B,fn.E,k.U,Q.r,G.i]})}return n})();var J=s(1997),yn=s(9541),xt=s(1672),wt=s(3146),St=s(5154);let xn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,j.YN,wt.W2,L.g,z.pc,Z.Yb,p.f3,f.Ti,O.rD,yn.hM,J.DH,u.kT,xt._v,d.Y3,Y.T,St.Qt,G.i,k.U]})}return n})(),wn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,E.ZJ,d.Y3,p.f3,I.Zw,z.pc,u.kT,G.i,ct.C,xn,Tn]})}return n})();var Sn=s(3357),On=s(2839);let In=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,f.Ti,b.WF,u.kT,d.Y3,z.pc,p.f3,L.g,Q.r,Sn.P,H.L,G.i,k.U,On.m]})}return n})(),Mn=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,p.f3,z.pc,I.Zw,K.V,In]})}return n})();var Pn=s(4441);let En=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-assertions"]],decls:1,vars:1,consts:[["cvcTitle","Organization Assertions",3,"organizationId"]],template:function(i,o){1&i&&t.nrm(0,"cvc-assertions-table",0),2&i&&t.Y8G("organizationId",o.organizationId)},dependencies:[Pn.z],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var q=s(9172),T=s(4608),y=s(4412),m=s(9145),tt=s(1305),X=s(6389),Gn=s(8542),V=s(6440),Rn=s(7855),Ot=s(7074),$n=s(9945),It=s(9765),R=s(1774),Mt=s(3075);const Dn=()=>[8,8];function kn(n,a){if(1&n&&t.nrm(0,"cvc-organization-avatar",22),2&n){const e=t.XpG().ngIf;t.Y8G("organization",e)("size",128)}}function Fn(n,a){if(1&n&&(t.j41(0,"div",23),t.nrm(1,"i",24),t.nI1(2,"entityColor"),t.j41(3,"span",25)(4,"strong"),t.EFF(5),t.k0s()()()),2&n){const e=t.XpG().ngIf;t.R7$(),t.Y8G("nzTwotoneColor",t.bMT(2,2,"Organization")),t.R7$(4),t.SpI(" ",e.name,"")}}function Nn(n,a){if(1&n&&(t.j41(0,"a",27),t.nrm(1,"span",28),t.EFF(2," Visit Website "),t.k0s()),2&n){const e=t.XpG(2).ngIf;t.Y8G("href",e.url,t.B4B)}}function Ln(n,a){1&n&&(t.qex(0),t.DNE(1,Nn,3,1,"a",26),t.bVm())}function jn(n,a){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",e.description," ")}}function Yn(n,a){1&n&&(t.j41(0,"span",33)(1,"i"),t.EFF(2,"No description provided."),t.k0s()())}function Xn(n,a){if(1&n&&(t.qex(0),t.nrm(1,"cvc-organization-tag",35),t.bVm()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("org",e)}}function Vn(n,a){if(1&n&&(t.j41(0,"cvc-tag-list"),t.DNE(1,Xn,2,1,"ng-container",34),t.k0s()),2&n){const e=t.XpG(2).ngIf;t.R7$(),t.Y8G("ngForOf",e.subGroups)}}function Un(n,a){1&n&&(t.j41(0,"span",33)(1,"i"),t.EFF(2," This organization does not include any child organizations. "),t.k0s()())}function An(n,a){if(1&n&&(t.j41(0,"nz-descriptions",29)(1,"nz-descriptions-item",30),t.DNE(2,jn,2,1,"ng-container",31)(3,Yn,3,0,"ng-template",null,1,t.C5r),t.k0s(),t.j41(5,"nz-descriptions-item",32),t.DNE(6,Vn,2,1,"cvc-tag-list",31)(7,Un,3,0,"ng-template",null,2,t.C5r),t.k0s()()),2&n){const e=t.sdS(4),i=t.sdS(8),o=t.XpG().ngIf;t.Y8G("nzColumn",4),t.R7$(),t.Y8G("nzTitle","About "+o.name),t.R7$(),t.Y8G("ngIf",o.description)("ngIfElse",e),t.R7$(3),t.Y8G("nzSpan",4)("nzTitle","Child Organization"+(1!==o.subGroups.length?"s":"")),t.R7$(),t.Y8G("ngIf",o.subGroups.length>0)("ngIfElse",i)}}function Bn(n,a){1&n&&(t.j41(0,"div",38)(1,"p")(2,"strong"),t.EFF(3,"Comments:"),t.k0s(),t.EFF(4," Total number of Comments posted by the Curator. "),t.k0s(),t.j41(5,"p")(6,"strong"),t.EFF(7,"Revisions:"),t.k0s(),t.EFF(8," Total number of Revisions suggested by the Curator. "),t.k0s(),t.j41(9,"p")(10,"strong"),t.EFF(11,"Submissions:"),t.k0s(),t.EFF(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.k0s(),t.j41(13,"p")(14,"strong"),t.EFF(15,"Moderations:"),t.k0s(),t.EFF(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.k0s()())}function Wn(n,a){if(1&n&&(t.j41(0,"div",36),t.EFF(1," Ranked Activities "),t.j41(2,"span",33),t.nrm(3,"i",37),t.k0s()(),t.DNE(4,Bn,17,0,"ng-template",null,3,t.C5r)),2&n){const e=t.sdS(5);t.Y8G("nzPopoverContent",e)}}function Hn(n,a){if(1&n&&(t.qex(0),t.nrm(1,"cvc-section-navigation",5),t.j41(2,"nz-page-header",6)(3,"nz-page-header-content")(4,"nz-row",7)(5,"nz-col",8)(6,"nz-space",9),t.DNE(7,kn,1,2,"cvc-organization-avatar",10)(8,Fn,6,4,"div",11)(9,Ln,2,0,"ng-container",4),t.k0s()(),t.j41(10,"nz-col",12)(11,"nz-space",9),t.DNE(12,An,9,8,"nz-descriptions",13),t.k0s()(),t.j41(13,"nz-col",14)(14,"nz-descriptions",15)(15,"nz-descriptions-item",16),t.nrm(16,"cvc-stats-card",17),t.k0s(),t.DNE(17,Wn,6,1,"ng-template",null,0,t.C5r),t.k0s()()(),t.j41(19,"nz-row",18)(20,"nz-col",19),t.nrm(21,"cvc-tab-navigation",20),t.nI1(22,"ngrxPush"),t.j41(23,"div",21),t.nrm(24,"router-outlet"),t.k0s()()()()(),t.bVm()),2&n){const e=a.ngIf,i=t.sdS(18),o=t.XpG();t.R7$(),t.Y8G("displayName",e.name),t.R7$(3),t.Y8G("nzGutter",t.lJ4(10,Dn)),t.R7$(5),t.Y8G("ngIf",e.url),t.R7$(6),t.Y8G("nzTitle",i),t.R7$(),t.Y8G("cvcStats",e.orgStatsHash)("cvcSubGroupStats",e.orgAndSuborgsStatsHash)("cvcRanks",e.ranks),t.R7$(5),t.Y8G("tabs",t.bMT(22,8,o.tabs$))}}let Zn=(()=>{class n{constructor(e,i,o){this.gql=e,this.viewerService=i,this.route=o,this.destroy$=new D.B,this.defaultTabs=[{routeName:"members",tabLabel:"Members",iconName:"pic-right"},{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"}],this.tabs$=new y.t(this.defaultTabs),this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,T.E)("loading"),(0,q.Z)(!0)),this.organization$=c.pipe((0,T.E)("data","organization")),this.viewer$=this.viewerService.viewer$,this.organization$.pipe((0,F.Q)(this.destroy$)).subscribe({next:g=>{this.tabs$.next(g&&g.subGroups.length>0?[...this.defaultTabs,{routeName:"groups",tabLabel:"Child Organizations",iconName:"civic-organization"}]:this.defaultTabs)}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(m.ZC5),t.rXU(tt.q),t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["organizations-detail"]],decls:2,vars:3,consts:[["activitiesTitle",""],["noDescription",""],["noSubGroups",""],["rankingCalculations",""],[4,"ngIf"],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical",2,"width","100%"],["shape","square",3,"organization","size",4,"nzSpaceItem"],["class","org-pseudo-tag",4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcSubGroupStats","cvcRanks"],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["shape","square",3,"organization","size"],[1,"org-pseudo-tag"],["nz-icon","","nzType","civic-organization","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography",""],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href",4,"nzSpaceItem"],["target","_blank","nz-button","","nzBlock","","nzType","link",3,"href"],["nz-icon","","nzType","link"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","4",3,"nzTitle"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"org"],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],[1,"calculation-info"]],template:function(i,o){1&i&&(t.DNE(0,Hn,25,11,"ng-container",4),t.nI1(1,"ngrxPush")),2&i&&t.Y8G("ngIf",t.bMT(1,1,o.organization$))},dependencies:[l.Sq,l.bT,h.n3,E.WB,E.zR,I.aO,X.c,p.Uq,p.e,d.Dn,z.U5,z.Dq,b.xA,b.gr,u.Di,Tt.L_,Gn.d,V.r,Rn.M,Ot.w,$n.N,It.n,R.L9,Mt.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.org-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px;line-height:14px;padding:3px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]})}return n})(),Qn=(()=>{class n{constructor(e){this.route=e,this.feedScope={mode:m.Qt1.Organization,organizationId:+this.route.snapshot.params.organizationId}}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-events"]],decls:1,vars:2,consts:[[3,"cvcScope","cvcShowFilters"]],template:function(i,o){1&i&&t.nrm(0,"cvc-activity-feed",0),2&i&&t.Y8G("cvcScope",o.feedScope)("cvcShowFilters",!0)},dependencies:[yt.Y],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Kn=s(8199);let Jn=(()=>{class n{constructor(e){this.route=e,this.organizationId=+this.route.snapshot.params.organizationId}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-evidence"]],decls:1,vars:1,consts:[["cvcTitle","Organization Evidence",3,"organizationId"]],template:function(i,o){1&i&&t.nrm(0,"cvc-evidence-table",0),2&i&&t.Y8G("organizationId",o.organizationId)},dependencies:[Kn.N],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();function qn(n,a){if(1&n&&t.nrm(0,"cvc-organization-avatar",8),2&n){const e=t.XpG();t.Y8G("organization",e.organization)("size",48)}}function te(n,a){if(1&n&&t.nrm(0,"cvc-organization-tag",9),2&n){const e=t.XpG();t.Y8G("org",e.organization)("enablePopover",!0)}}let ne=(()=>{class n{ngOnInit(){if(null==this.organization)throw new Error("Must pass a organization into organization card")}static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organization-card"]],inputs:{organization:"organization"},decls:11,vars:8,consts:[["organizationAvatar",""],["organizationTag",""],["nz-size","small"],[3,"nzTitle","nzDescription","nzAvatar"],[1,"organization-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Description",3,"nzSpan"],["nz-typography","","nzEllipsis","",3,"nzEllipsisRows","nzExpandable"],["shape","square",3,"organization","size"],[3,"org","enablePopover"]],template:function(i,o){if(1&i&&(t.j41(0,"nz-card",2),t.nrm(1,"nz-card-meta",3),t.DNE(2,qn,1,2,"ng-template",null,0,t.C5r)(4,te,1,2,"ng-template",null,1,t.C5r),t.j41(6,"div",4)(7,"nz-descriptions",5)(8,"nz-descriptions-item",6)(9,"p",7),t.EFF(10),t.k0s()()()()()),2&i){const r=t.sdS(3),c=t.sdS(5);t.R7$(),t.Y8G("nzTitle",o.organization.name)("nzDescription",c)("nzAvatar",r),t.R7$(6),t.Y8G("nzColumn",2),t.R7$(),t.Y8G("nzSpan",1),t.R7$(),t.Y8G("nzEllipsisRows",4)("nzExpandable",!0),t.R7$(),t.SpI(" ",o.organization.description," ")}},dependencies:[f.cK,f.ls,u.Di,b.xA,b.gr,Ot.w,V.r],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.organization-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0})}return n})();const ee=()=>[8,8];function ie(n,a){if(1&n&&(t.j41(0,"nz-col",4),t.nrm(1,"cvc-organization-card",5),t.k0s()),2&n){const e=t.XpG().$implicit;t.Y8G("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.R7$(),t.Y8G("organization",e)}}function oe(n,a){if(1&n&&(t.qex(0),t.DNE(1,ie,2,7,"nz-col",3),t.bVm()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("ngIf",e)}}let ae=(()=>{class n{constructor(e,i,o){this.gql=e,this.viewerService=i,this.route=o,this.routeSub=o.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,T.E)("loading"),(0,q.Z)(!0)),this.organizations$=c.pipe((0,T.E)("data","organization","subGroups")),this.viewer$=this.viewerService.viewer$})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(m.mRx),t.rXU(tt.q),t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-groups"]],decls:5,vars:8,consts:[[2,"min-height","20em",3,"nzSpinning"],[3,"nzGutter"],[4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"organization"]],template:function(i,o){1&i&&(t.j41(0,"nz-spin",0),t.nI1(1,"ngrxPush"),t.j41(2,"nz-row",1),t.DNE(3,oe,2,1,"ng-container",2),t.nI1(4,"ngrxPush"),t.k0s()()),2&i&&(t.Y8G("nzSpinning",t.bMT(1,3,o.loading$)),t.R7$(2),t.Y8G("nzGutter",t.lJ4(7,ee)),t.R7$(),t.Y8G("ngForOf",t.bMT(4,5,o.organizations$)))},dependencies:[l.Sq,l.bT,p.Uq,p.e,K.a,ne,R.L9],styles:[".space-align-block[_ngcontent-%COMP%]{display:block}"]})}return n})();var Pt=s(1635),C=s(9894),x=s(6354);const se=()=>[8,8],U=n=>({$implicit:n}),re=n=>({"list-height-block":n}),ce=()=>[0,5];function le(n,a){1&n&&t.eu8(0)}function ge(n,a){1&n&&t.eu8(0)}function pe(n,a){1&n&&t.eu8(0)}function de(n,a){1&n&&t.eu8(0)}function me(n,a){if(1&n&&(t.j41(0,"span",14),t.EFF(1),t.k0s(),t.j41(2,"span",15),t.nrm(3,"i",16),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.title," "),t.R7$(2),t.Y8G("nzTooltipTitle",e.info)}}function he(n,a){if(1&n&&(t.j41(0,"nz-badge",19),t.nrm(1,"nz-avatar",20),t.k0s()),2&n){const e=t.XpG().$implicit;t.Y8G("nzCount",e.rank)("nzOffset",t.lJ4(3,ce)),t.R7$(),t.Y8G("nzSrc",e.profileImagePath)}}function ze(n,a){if(1&n&&(t.j41(0,"nz-list-item"),t.DNE(1,he,2,4,"ng-template",null,5,t.C5r),t.j41(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),t.nrm(5,"cvc-organization-tag",18),t.k0s()()()),2&n){const e=a.$implicit,i=t.sdS(2);t.R7$(3),t.Y8G("nzAvatar",i),t.R7$(2),t.Y8G("org",e.organization)}}function fe(n,a){if(1&n&&t.nrm(0,"nz-list-empty",21),2&n){t.XpG();const e=t.sdS(7);t.Y8G("nzNoResult",e)}}function ue(n,a){1&n&&t.nrm(0,"nz-empty",22)}function ve(n,a){if(1&n&&(t.DNE(0,me,4,2,"ng-template",null,3,t.C5r),t.j41(2,"nz-list",10)(3,"div",11),t.DNE(4,ze,6,2,"nz-list-item",12),t.k0s(),t.DNE(5,fe,1,1,"nz-list-empty",13)(6,ue,1,0,"ng-template",null,4,t.C5r),t.k0s()),2&n){const e=a.$implicit,i=t.sdS(1);t.R7$(2),t.Y8G("nzHeader",i)("nzLoading",e.loading),t.R7$(),t.Y8G("ngClass",t.eq3(5,re,e.rows.length>0)),t.R7$(),t.Y8G("ngForOf",e.rows),t.R7$(),t.Y8G("ngIf",0===e.rows.length)}}function Ce(n,a){1&n&&(t.j41(0,"span",14)(1,"strong"),t.EFF(2,"Organization Curation Activity Leaderboards"),t.k0s()())}function _e(n,a){if(1&n){const e=t.RV6();t.j41(0,"span"),t.EFF(1,"Time: "),t.k0s(),t.j41(2,"nz-select",23),t.nI1(3,"ngrxPush"),t.bIt("ngModelChange",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.timeWindow$.next(o))}),t.nrm(4,"nz-option",24)(5,"nz-option",25)(6,"nz-option",26)(7,"nz-option",27),t.k0s()}if(2&n){const e=t.XpG();t.R7$(2),t.Y8G("nzDropdownMatchSelectWidth",!1)("ngModel",t.bMT(3,2,e.timeWindow$))}}let nt=class at{constructor(a,e,i,o){this.commentsGQL=a,this.revisionsGQL=e,this.moderationGQL=i,this.submissionsGQL=o,this.initialCommentsView={title:"Comments Leaderboard",info:"Organizations ranked by the total number of Comments posted by their members while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Organizations ranked by the total number of Revisions their members have suggested while acting on behalf of that Organization.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Organizations ranked by the total number of editorial actions their members have taken while acting on behalf of that Organization. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Organizations ranked by the total number of Evidence Items and Assertions their members have submitted while acting on behalf of that Organization",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=m.wJP.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new y.t(this.initialWindow),this.timeWindow$.pipe((0,C.s)(this)).subscribe(r=>{this.commentsQueryRef.refetch({window:r}),this.revisionsQueryRef.refetch({window:r}),this.moderationQueryRef.refetch({window:r}),this.submissionsQueryRef.refetch({window:r})}),this.commentsView$=new y.t(this.initialCommentsView),this.revisionsView$=new y.t(this.initialRevisionsView),this.moderationView$=new y.t(this.initialModerationView),this.submissionsView$=new y.t(this.initialSubmissionsView)}ngOnInit(){const a=e=>({rank:e.rank,actionCount:e.actionCount,profileImagePath:e.profileImagePath,name:e.name,organization:{id:e.id,name:e.name}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,x.T)(e=>{let i=[];return e.data&&e.data.organizationLeaderboards.commentsLeaderboard.edges.map(o=>{if(o.node){const r=a(o.node);i.push(r)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:e.loading,rows:[...i]}}),(0,C.s)(this)).subscribe(e=>this.commentsView$.next(e)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,x.T)(e=>{let i=[];return e.data&&e.data.organizationLeaderboards.moderationLeaderboard.edges.map(o=>{if(o.node){const r=a(o.node);i.push(r)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...i]}}),(0,C.s)(this)).subscribe(e=>this.moderationView$.next(e)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,x.T)(e=>{let i=[];return e.data&&e.data.organizationLeaderboards.revisionsLeaderboard.edges.map(o=>{if(o.node){const r=a(o.node);i.push(r)}}),{title:this.initialRevisionsView.title,info:this.initialModerationView.info,loading:e.loading,rows:[...i]}}),(0,C.s)(this)).subscribe(e=>this.revisionsView$.next(e)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,x.T)(e=>{let i=[];return e.data&&e.data.organizationLeaderboards.submissionsLeaderboard.edges.map(o=>{if(o.node){const r=a(o.node);i.push(r)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:e.loading,rows:[...i]}}),(0,C.s)(this)).subscribe(e=>this.submissionsView$.next(e))}static#t=this.\u0275fac=function(e){return new(e||at)(t.rXU(m.rR2),t.rXU(m.$pU),t.rXU(m.xNz),t.rXU(m.cQZ))};static#n=this.\u0275cmp=t.VBU({type:at,selectors:[["cvc-organization-leaderboards"]],decls:20,vars:28,consts:[["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["listEmpty",""],["rowAvatar",""],["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],[3,"nzAvatar"],[3,"org"],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","civic-organization","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(e,i){if(1&e&&(t.j41(0,"nz-card",6)(1,"nz-row",7)(2,"nz-col",8),t.DNE(3,le,1,0,"ng-container",9),t.nI1(4,"ngrxPush"),t.k0s(),t.j41(5,"nz-col",8),t.DNE(6,ge,1,0,"ng-container",9),t.nI1(7,"ngrxPush"),t.k0s(),t.j41(8,"nz-col",8),t.DNE(9,pe,1,0,"ng-container",9),t.nI1(10,"ngrxPush"),t.k0s(),t.j41(11,"nz-col",8),t.DNE(12,de,1,0,"ng-container",9),t.nI1(13,"ngrxPush"),t.k0s()()(),t.DNE(14,ve,8,7,"ng-template",null,0,t.C5r)(16,Ce,3,0,"ng-template",null,1,t.C5r)(18,_e,8,4,"ng-template",null,2,t.C5r)),2&e){const o=t.sdS(15),r=t.sdS(17),c=t.sdS(19);t.Y8G("nzTitle",r)("nzExtra",c),t.R7$(),t.Y8G("nzGutter",t.lJ4(19,se)),t.R7$(2),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(20,U,t.bMT(4,11,i.commentsView$))),t.R7$(3),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(22,U,t.bMT(7,13,i.revisionsView$))),t.R7$(3),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(24,U,t.bMT(10,15,i.moderationView$))),t.R7$(3),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(26,U,t.bMT(13,17,i.submissionsView$)))}},dependencies:[l.YU,l.Sq,l.bT,l.T3,j.BC,j.vS,wt.dz,Z.PM,p.Uq,p.e,f.cK,O.eE,O.nt,O.lQ,O.qx,O.mf,J.ld,J.WI,u.Di,xt.RW,d.Dn,St.LH,V.r,R.L9],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}"],changeDetection:0})};nt=(0,Pt.Cg)([(0,C.d)()],nt);var be=s(9995),A=s(9199),et=s(3294),Te=s(7048),ye=s(5245),xe=s(152),we=s(3993),Se=s(3296),Oe=s(3431),Ie=s(2923),Me=s(1852),Pe=s(1405),Ee=s(435),Et=s(6911),Ge=s(8139);const Re=n=>({height:n}),$e=()=>[],De=()=>({x:"680px",y:"800px"});function ke(n,a){}function Fe(n,a){if(1&n&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,ke,0,0,"ng-template",7),t.k0s(),t.bVm()),2&n){t.XpG();const e=t.sdS(4),i=t.sdS(6),o=t.sdS(8);t.R7$(),t.Y8G("nzTitle",i)("nzExtra",o),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Ne(n,a){}function Le(n,a){if(1&n&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,Ne,0,0,"ng-template",7),t.k0s()()),2&n){const e=t.XpG(),i=t.sdS(4),o=t.sdS(6),r=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,Re,e.cvcHeight)),t.R7$(),t.Y8G("nzTitle",o)("nzExtra",r),t.R7$(),t.Y8G("ngTemplateOutlet",i)}}function je(n,a){if(1&n&&(t.nrm(0,"tr",23),t.j41(1,"tr")(2,"td",19),t.nrm(3,"cvc-organization-tag",24),t.k0s(),t.j41(4,"td"),t.EFF(5),t.nI1(6,"number"),t.k0s(),t.j41(7,"td"),t.nrm(8,"cvc-tag-overflow",25),t.k0s(),t.j41(9,"td",26),t.EFF(10),t.nI1(11,"number"),t.k0s(),t.j41(12,"td",26),t.EFF(13),t.nI1(14,"timeAgo"),t.k0s()()),2&n){const e=a.$implicit;t.R7$(3),t.Y8G("org",e),t.R7$(2),t.SpI(" ",t.bMT(6,6,e.memberCount)," "),t.R7$(3),t.Y8G("maxDisplayCount",1)("tags",e.childOrganizations),t.R7$(2),t.SpI(" ",t.bMT(11,8,e.activityCount)," "),t.R7$(3),t.SpI(" ",t.bMT(14,10,e.mostRecentActivityTimestamp)," ")}}function Ye(n,a){if(1&n){const e=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.scrollEvent$.next(o))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(o){t.eBV(e);const r=t.XpG();return t.Njj(r.sortChange$.next(o))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Organization "),t.k0s(),t.j41(10,"th",14),t.EFF(11," Members "),t.k0s(),t.j41(12,"th",15),t.EFF(13,"Sub Organizations"),t.k0s(),t.j41(14,"th",16),t.EFF(15," Actions "),t.k0s(),t.j41(16,"th",17),t.EFF(17," Last Action "),t.k0s()(),t.j41(18,"tr",18)(19,"th",19)(20,"cvc-clearable-input-filter",20),t.mxI("inputModelChange",function(o){t.eBV(e);const r=t.XpG();return t.DH7(r.orgNameInput,o)||(r.orgNameInput=o),t.Njj(o)}),t.bIt("inputModelChange",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.filterChange$.next())}),t.k0s()(),t.nrm(21,"th")(22,"th")(23,"th",21)(24,"th",21),t.k0s()(),t.j41(25,"tbody"),t.DNE(26,je,15,12,"ng-template",22),t.k0s()()}if(2&n){const e=t.XpG();t.Y8G("nzData",t.bMT(2,20,e.row$)||t.lJ4(28,$e))("nzLoading",!t.bMT(3,22,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.bMT(4,24,e.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,26,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.lJ4(29,De))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.MemberCount)("nzSortFn",!0),t.R7$(4),t.Y8G("nzColumnKey",e.sortColumns.ActivityCount)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.MostRecentActivityTimestamp)("nzSortFn",!0),t.R7$(4),t.R50("inputModel",e.orgNameInput)}}function Xe(n,a){}function Ve(n,a){if(1&n&&(t.qex(0),t.DNE(1,Xe,0,0,"ng-template",7),t.bVm()),2&n){const e=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",e.cvcTitleTemplate)}}function Ue(n,a){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.cvcTitle," ")}}function Ae(n,a){if(1&n&&(t.DNE(0,Ve,2,1,"ng-container",27)(1,Ue,2,1,"ng-container",27),t.j41(2,"span",28),t.nrm(3,"cvc-table-counts",29),t.k0s()),2&n){const e=t.XpG();t.Y8G("ngIf",e.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",e.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",e.connection$)}}function Be(n,a){1&n&&(t.j41(0,"nz-tag",32),t.nrm(1,"i",33),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function We(n,a){if(1&n&&(t.DNE(0,Be,4,0,"nz-tag",30),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",31),t.nI1(3,"ngrxPush")),2&n){const e=t.XpG();t.Y8G("ngIf",t.bMT(1,2,e.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,e.noMoreRows$))}}let it=class st{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,e){this.gql=a,this.cdr=e,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=m.RKe,this.noMoreRows$=new y.t(!1),this.scrollEvent$=new y.t("stop"),this.sortChange$=new D.B,this.filterChange$=new D.B,this.scrollIndex$=new D.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,T.E)("loading"),(0,et.F)(),(0,Te.v)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,T.E)("loading"),(0,et.F)(),(0,ye.i)(2)),this.connection$=this.result$.pipe((0,T.E)("data","organizations"),(0,w.p)(A.kP)),this.row$=this.connection$.pipe((0,T.E)("edges"),(0,w.p)(A.kP),(0,x.T)(a=>a.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,T.E)("pageInfo"),(0,w.p)(A.kP)),this.sortChange$.pipe((0,C.s)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,be.X)(a)})}),this.filterChange$.pipe((0,xe.B)(500),(0,C.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,x.T)(a=>"stop"!==a),(0,et.F)(),(0,C.s)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,w.p)(a=>"bottom"===a),(0,we.E)(this.pageInfo$),(0,x.T)(([a,e])=>e),(0,C.s)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({orgName:this.orgNameInput,id:this.idInput?+this.idInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,e){return e?.id}static#t=this.\u0275fac=function(e){return new(e||st)(t.rXU(m.rUT),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:st,selectors:[["cvc-organizations-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","300px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","100px",3,"nzColumnKey","nzSortFn"],["nzWidth","320px"],["nzWidth","80px","nzRight","","nzAlign","right",3,"nzColumnKey","nzSortFn"],["nzWidth","125px","nzRight","","nzAlign","right",3,"nzColumnKey","nzSortFn"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"org"],["tagType","organization",3,"maxDisplayCount","tags"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(e,i){if(1&e&&t.DNE(0,Fe,3,3,"ng-container",5)(1,Le,3,6,"ng-template",null,0,t.C5r)(3,Ye,27,30,"ng-template",null,1,t.C5r)(5,Ae,4,3,"ng-template",null,2,t.C5r)(7,We,4,6,"ng-template",null,3,t.C5r),2&e){const o=t.sdS(2);t.Y8G("ngIf",!i.cvcHeight)("ngIfElse",o)}},dependencies:[l.bT,l.T3,l.B3,d.Dn,v.CP,v.Cc,v.SO,v._4,v.IL,v.aj,v.kt,v.CC,v.OL,v.jc,X.c,f.cK,Y.s,Se.M,Oe.y,Ie.f,Me.M,Pe.s,Ee.n,V.r,Et.U,l.QX,R.L9,Ge.N],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]})};it=(0,Pt.Cg)([(0,C.d)()],it);const He=()=>[8,16];function Ze(n,a){1&n&&(t.j41(0,"a",14),t.nrm(1,"i",15),t.EFF(2," View Organization Docs "),t.k0s())}let Qe=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["organizations-home"]],decls:21,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-organization",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse Organizations"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/organizations.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(i,o){1&i&&(t.nrm(0,"cvc-section-navigation"),t.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t.nrm(5,"i",3),t.nI1(6,"entityColor"),t.k0s(),t.j41(7,"nz-col",4)(8,"h2"),t.EFF(9,"Organizations"),t.k0s(),t.j41(10,"p",5),t.EFF(11," Users may be included in Organizations, primarily in order to keep track of an organization\u2019s contributions to CIViC curation. A User\u2019s organization affiliation is displayed in their profile and user card. "),t.k0s()(),t.j41(12,"nz-col",6)(13,"nz-space",7),t.DNE(14,Ze,3,0,"a",8),t.k0s()()(),t.j41(15,"nz-row",9)(16,"nz-col",10),t.nrm(17,"cvc-organization-leaderboards"),t.k0s(),t.j41(18,"nz-col",11)(19,"div",12),t.nrm(20,"cvc-organizations-table",13),t.k0s()()()()()),2&i&&(t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(6,4,"Organization")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(5),t.Y8G("nzGutter",t.lJ4(6,He)),t.R7$(3),t.Y8G("nzSpan",24))},dependencies:[E.WB,E.zR,d.Dn,p.Uq,p.e,I.aO,X.c,z.U5,z.Dq,u.Di,It.n,nt,it,Mt.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var ot=s(9085),Ke=s(5930),Je=s(9162),qe=s(6408),ti=s(1845);const ni=(n,a,e,i,o)=>[n,a,e,i,o];function ei(n,a){if(1&n&&t.nrm(0,"cvc-user-avatar",22),2&n){const e=t.XpG();t.Y8G("user",e.user)("size",48)}}function ii(n,a){if(1&n&&t.nrm(0,"cvc-user-tag",23),2&n){const e=t.XpG();t.Y8G("user",e.user)("enablePopover",!1)}}function oi(n,a){if(1&n&&(t.qex(0),t.EFF(1),t.nI1(2,"enumToTitle"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,1,e.user.areaOfExpertise)," ")}}function ai(n,a){if(1&n&&(t.qex(0),t.nrm(1,"cvc-tag-overflow",24),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("maxDisplayCount",2)("tags",e.organizations)}}function si(n,a){1&n&&(t.qex(0),t.j41(1,"span",25)(2,"i"),t.EFF(3,"User is not a member of any Organizations."),t.k0s()(),t.bVm())}function ri(n,a){1&n&&(t.j41(0,"i",25),t.EFF(1," None provided "),t.k0s())}function ci(n,a){if(1&n&&(t.j41(0,"a",27),t.nrm(1,"i",28),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","https://",e.user.url,"",t.B4B)}}function li(n,a){1&n&&t.nrm(0,"i",29)}function gi(n,a){if(1&n&&t.DNE(0,ci,2,2,"a",26)(1,li,1,0,"ng-template",null,8,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.url)("ngIfElse",e)}}function pi(n,a){if(1&n&&(t.j41(0,"a",31),t.nrm(1,"i",32),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","http://twitter.com/",e.user.twitterHandle,"",t.B4B)}}function di(n,a){1&n&&t.nrm(0,"i",33)}function mi(n,a){if(1&n&&t.DNE(0,pi,2,2,"a",30)(1,di,1,0,"ng-template",null,9,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.twitterHandle)("ngIfElse",e)}}function hi(n,a){if(1&n&&(t.j41(0,"a",35),t.nrm(1,"i",36),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","http://facebook.com/",e.user.facebookProfile,"",t.B4B)}}function zi(n,a){1&n&&t.nrm(0,"i",37)}function fi(n,a){if(1&n&&t.DNE(0,hi,2,2,"a",34)(1,zi,1,0,"ng-template",null,10,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.facebookProfile)("ngIfElse",e)}}function ui(n,a){if(1&n&&(t.j41(0,"a",39),t.nrm(1,"i",40),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","http://linkedin.com/in/",e.user.linkedinProfile,"",t.B4B)}}function vi(n,a){1&n&&t.nrm(0,"i",41)}function Ci(n,a){if(1&n&&t.DNE(0,ui,2,2,"a",38)(1,vi,1,0,"ng-template",null,11,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.linkedinProfile)("ngIfElse",e)}}function _i(n,a){if(1&n&&(t.j41(0,"a",43),t.nrm(1,"i",44),t.k0s()),2&n){const e=t.XpG(2);t.Mz_("href","https://orcid.org/",e.user.orcid,"",t.B4B)}}function bi(n,a){1&n&&t.nrm(0,"i",45)}function Ti(n,a){if(1&n&&t.DNE(0,_i,2,2,"a",42)(1,bi,1,0,"ng-template",null,12,t.C5r),2&n){const e=t.sdS(2),i=t.XpG();t.Y8G("ngIf",i.user.orcid)("ngIfElse",e)}}let yi=(()=>{class n{constructor(){this.organizations=[]}ngOnInit(){if(null==this.user)throw new Error("Must pass a user into user card");switch(this.user.role){case m.gG1.Admin:this.icon="civic-admin";break;case m.gG1.Editor:this.icon="civic-editor";break;default:this.icon="civic-curator"}this.user.organizations.forEach(e=>{this.organizations.push({id:e.id,name:e.name,link:e.url})})}static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-user-card"]],inputs:{user:"user"},decls:28,vars:22,consts:[["userAvatar",""],["userTag",""],["noneProvided",""],["personalLink",""],["twitterLink",""],["facebookLink",""],["linkedinLink",""],["orcidLink",""],["noPersonalLink",""],["noTwitterLink",""],["noFacebookLink",""],["noLinkedinLink",""],["noOrcidLink",""],["nzSize","small",3,"nzActions"],[3,"nzTitle","nzDescription","nzAvatar"],[1,"user-card-content"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Role",3,"nzSpan"],["nzTitle","Expertise",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],[4,"ngIf"],["shape","square",3,"user","size"],[3,"user","enablePopover"],["tagType","organization",3,"maxDisplayCount","tags"],["nz-typography","","nzType","secondary"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["nz-icon","","nzType","link","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["nz-icon","","nzType","twitter","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["nz-icon","","nzType","facebook","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["nz-icon","","nzType","linkedin","nzTheme","outline",2,"color","#aaaaaa"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href",4,"ngIf","ngIfElse"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-icon","","nzType","civic-orcid","nzTheme","outline",2,"color","#aaaaaa"]],template:function(i,o){if(1&i&&(t.j41(0,"nz-card",13),t.nrm(1,"nz-card-meta",14),t.DNE(2,ei,1,2,"ng-template",null,0,t.C5r)(4,ii,1,2,"ng-template",null,1,t.C5r),t.j41(6,"div",15)(7,"nz-descriptions",16)(8,"nz-descriptions-item",17),t.EFF(9),t.nI1(10,"titlecase"),t.k0s(),t.j41(11,"nz-descriptions-item",18),t.DNE(12,oi,3,3,"ng-container",19),t.k0s(),t.j41(13,"nz-descriptions-item",20),t.DNE(14,ai,2,2,"ng-container",21)(15,si,4,0,"ng-container",21),t.k0s(),t.DNE(16,ri,2,0,"ng-template",null,2,t.C5r),t.k0s()()(),t.DNE(18,gi,3,2,"ng-template",null,3,t.C5r)(20,mi,3,2,"ng-template",null,4,t.C5r)(22,fi,3,2,"ng-template",null,5,t.C5r)(24,Ci,3,2,"ng-template",null,6,t.C5r)(26,Ti,3,2,"ng-template",null,7,t.C5r)),2&i){const r=t.sdS(3),c=t.sdS(5),g=t.sdS(17),_=t.sdS(19),$=t.sdS(21),M=t.sdS(23),P=t.sdS(25),ki=t.sdS(27);t.Y8G("nzActions",t.s1E(16,ni,_,ki,P,M,$)),t.R7$(),t.Y8G("nzTitle",o.user.name?o.user.name:o.user.displayName)("nzDescription",c)("nzAvatar",r),t.R7$(6),t.Y8G("nzColumn",2),t.R7$(),t.Y8G("nzSpan",1),t.R7$(),t.SpI(" ",t.bMT(10,14,o.user.role)," "),t.R7$(2),t.Y8G("nzSpan",1),t.R7$(),t.Y8G("ngIf",o.user.areaOfExpertise)("ngIfElse",g),t.R7$(),t.Y8G("nzSpan",2)("nzTitle","Organization"+(o.organizations.length>1?"s":"")),t.R7$(),t.Y8G("ngIf",o.user.organizations.length>0),t.R7$(),t.Y8G("ngIf",0===o.user.organizations.length)}},dependencies:[l.bT,f.cK,f.ls,b.xA,b.gr,u.Di,d.Dn,Et.U,Je.G,qe.r,l.PV,ti.f],styles:[":[_nghost-%COMP%]{display:block}:[_nghost-%COMP%] .ant-card-meta[_ngcontent-%COMP%] .ant-card-meta-title{line-height:14px;margin-bottom:8px}.user-card-content[_ngcontent-%COMP%]{margin:12px -13px -13px}"],changeDetection:0})}return n})();const xi=()=>[8,8];function wi(n,a){if(1&n&&(t.j41(0,"nz-col",4),t.nrm(1,"cvc-user-card",5),t.k0s()),2&n){const e=t.XpG().$implicit;t.Y8G("nzXs",24)("nzSm",24)("nzMd",12)("nzLg",8)("nzXl",6)("nzXXl",4),t.R7$(),t.Y8G("user",e)}}function Si(n,a){if(1&n&&(t.qex(0),t.DNE(1,wi,2,7,"nz-col",3),t.bVm()),2&n){const e=a.$implicit;t.R7$(),t.Y8G("ngIf",e)}}function Oi(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(e);const o=t.XpG().ngrxLet,r=t.XpG();return t.Njj(r.loadMore(o.endCursor))}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG(2);t.R7$(),t.SpI(" Load ",e.initialPageSize," More ")}}function Ii(n,a){if(1&n&&(t.j41(0,"nz-col",6),t.DNE(1,Oi,2,1,"button",7),t.k0s()),2&n){const e=a.ngrxLet;t.R7$(),t.Y8G("ngIf",e&&e.hasNextPage&&e.endCursor)}}let Mi=(()=>{class n{constructor(e,i,o){this.gql=e,this.viewerService=i,this.route=o,this.initialPageSize=20,this.routeSub=this.route.params.subscribe(r=>{this.queryRef=this.gql.watch({organizationId:+r.organizationId,first:this.initialPageSize});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,ot.E)("loading"),(0,q.Z)(!0)),this.members$=c.pipe((0,ot.E)("data","users","edges"),(0,w.p)(A.Vq),(0,x.T)(g=>g.map(_=>_.node))),this.pageInfo$=c.pipe((0,ot.E)("data","users","pageInfo")),this.viewer$=this.viewerService.viewer$})}loadMore(e){this.queryRef?.fetchMore({variables:{after:e}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(m.Vl8),t.rXU(tt.q),t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-members"]],decls:4,vars:6,consts:[[3,"nzGutter"],[4,"ngFor","ngForOf"],["nzSpan","24",4,"ngrxLet"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngIf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"user"],["nzSpan","24"],["nz-button","","nzBlock","",3,"click",4,"ngIf"],["nz-button","","nzBlock","",3,"click"]],template:function(i,o){1&i&&(t.j41(0,"nz-row",0),t.DNE(1,Si,2,1,"ng-container",1),t.nI1(2,"ngrxPush"),t.DNE(3,Ii,2,1,"nz-col",2),t.k0s()),2&i&&(t.Y8G("nzGutter",t.lJ4(5,xi)),t.R7$(),t.Y8G("ngForOf",t.bMT(2,3,o.members$)),t.R7$(2),t.Y8G("ngrxLet",o.pageInfo$))},dependencies:[l.Sq,l.bT,R.Nj,p.Uq,p.e,I.aO,X.c,Ke.p,yi,R.L9],encapsulation:2})}return n})();var Pi=s(3340);const Ei=[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["app-organizations"]],decls:1,vars:0,template:function(i,o){1&i&&t.nrm(0,"router-outlet")},dependencies:[h.n3],encapsulation:2})}return n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Qe},{path:":organizationId",component:Zn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"members",pathMatch:"full"},{path:"members",component:Mi,data:{breadcrumb:"Members"}},{path:"groups",component:ae,data:{breadcrumb:"Child Organizations"}},{path:"evidence",component:Jn,data:{breadcrumb:"Evidence"}},{path:"assertions",component:En,data:{breadcrumb:"Assertions"}},{path:"activity",component:Qn,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:(()=>{class n{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(i){return new(i||n)(t.rXU(h.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-organizations-source-suggestions"]],decls:1,vars:0,consts:[["cvcTitle","Organization Source Suggestions"]],template:function(i,o){1&i&&t.nrm(0,"cvc-source-suggestions-table",0)},dependencies:[Pi.E],styles:["[_nghost-%COMP%]{display:block}"]})}return n})(),data:{breadcrumb:"Source Suggestions"}}]}]}];let Gi=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[h.iI.forChild(Ei),h.iI]})}return n})();var Ri=s(5594);let $i=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,Ri.b]})}return n})(),Di=(()=>{class n{static#t=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[l.MD,Gi,wn,hn,Rt,gn,dn,zn,Mn,$i]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/2385.aa07b4d54c16b6a1.js b/server/public/2385.aa07b4d54c16b6a1.js new file mode 100644 index 000000000..fce9655da --- /dev/null +++ b/server/public/2385.aa07b4d54c16b6a1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2385],{9543:(V,F,i)=>{i.d(F,{e:()=>_});var d=i(1635),E=i(9145),T=i(1413),p=i(5964),l=i(6354),x=i(6977),C=i(9085),D=i(3294),f=i(6697),R=i(5312),g=i(9199),z=i(9894),n=i(3953);const m=()=>[];function y(o,t){if(1&o&&(n.qex(0),n.nrm(1,"cvc-event-timeline",15),n.bVm()),2&o){const e=n.XpG().ngIf,s=n.XpG(3);n.R7$(),n.Y8G("events",e)("tagDisplay",s.tagDisplay)}}function M(o,t){if(1&o){const e=n.RV6();n.j41(0,"div",17)(1,"button",18),n.bIt("click",function(){n.eBV(e);const r=n.XpG().ngIf,v=n.XpG(4);return n.Njj(v.fetchMore(r.endCursor))}),n.EFF(2," Load More "),n.k0s()()}}function P(o,t){if(1&o&&(n.qex(0),n.DNE(1,M,3,0,"div",16),n.bVm()),2&o){const e=t.ngIf;n.R7$(),n.Y8G("ngIf",e.hasNextPage&&e.endCursor)}}function I(o,t){if(1&o&&(n.qex(0),n.j41(1,"nz-row",6)(2,"nz-col",14),n.DNE(3,y,2,2,"ng-container",5)(4,P,2,1,"ng-container",13),n.nI1(5,"ngrxPush"),n.k0s()(),n.bVm()),2&o){const e=t.ngIf,s=n.XpG(3),r=n.sdS(5);n.R7$(),n.Y8G("nzGutter",16),n.R7$(2),n.Y8G("ngIf",e.length)("ngIfElse",r),n.R7$(),n.Y8G("ngIf",n.bMT(5,4,s.pageInfo$))}}function O(o,t){if(1&o){const e=n.RV6();n.j41(0,"nz-badge",21)(1,"button",22),n.bIt("click",function(){n.eBV(e);const r=n.XpG(6);return n.Njj(r.refresh())}),n.EFF(2," New Event(s) "),n.k0s()()}if(2&o){const e=n.XpG().ngrxLet,s=n.XpG(5);n.Y8G("nzCount",e-s.originalEventCount)}}function h(o,t){if(1&o&&(n.qex(0),n.DNE(1,O,3,1,"nz-badge",20),n.bVm()),2&o){const e=t.ngrxLet,s=n.XpG(5);n.R7$(),n.Y8G("ngIf",e&&e>s.originalEventCount)}}function a(o,t){if(1&o&&(n.qex(0),n.DNE(1,h,2,1,"ng-container",19),n.bVm()),2&o){const e=n.XpG(4);n.R7$(),n.Y8G("ngrxLet",e.newEventCount$)}}function u(o,t){if(1&o&&n.DNE(0,a,2,1,"ng-container",13),2&o){const e=n.XpG(3);n.Y8G("ngIf",e.pollForNewEvents&&e.originalEventCount)}}function $(o,t){if(1&o&&(n.j41(0,"nz-card",12),n.DNE(1,I,6,6,"ng-container",13),n.nI1(2,"ngrxPush"),n.DNE(3,u,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&o){const e=n.sdS(4),s=n.XpG(2);n.Y8G("nzTitle",s.showFilters?"Events":void 0)("nzExtra",e),n.R7$(),n.Y8G("ngIf",n.bMT(2,3,s.events$))}}function G(o,t){if(1&o){const e=n.RV6();n.j41(0,"span"),n.EFF(1," Show Child Events "),n.j41(2,"nz-switch",24),n.mxI("ngModelChange",function(r){n.eBV(e);const v=n.XpG(3);return n.DH7(v.showChildren,r)||(v.showChildren=r),n.Njj(r)}),n.bIt("ngModelChange",function(){n.eBV(e);const r=n.XpG(3);return n.Njj(r.onShowChildrenToggle())}),n.k0s()()}if(2&o){const e=n.XpG(3);n.R7$(2),n.R50("ngModel",e.showChildren)}}function S(o,t){1&o&&(n.EFF(0),n.nI1(1,"eventVerbiage")),2&o&&n.SpI(" ",n.i5U(1,1,t.$implicit.id,"action-filter")," ")}function c(o,t){if(1&o&&n.nrm(0,"nz-avatar",30),2&o){const e=n.XpG().$implicit;n.Y8G("nzSrc",e.profileImagePath)}}function A(o,t){if(1&o&&(n.nrm(0,"nz-avatar",31),n.nI1(1,"uppercase")),2&o){const e=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,e.displayName.charAt(0)))}}function j(o,t){if(1&o&&(n.DNE(0,c,1,1,"nz-avatar",29)(1,A,2,3,"ng-template",null,3,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&o){const e=t.$implicit,s=n.sdS(2);n.Y8G("ngIf",e.profileImagePath)("ngIfElse",s),n.R7$(4),n.JRh(e.displayName)}}function L(o,t){if(1&o){const e=n.RV6();n.j41(0,"cvc-participant-list",28),n.nI1(1,"ngrxPush"),n.bIt("participantSelectedEvent",function(r){n.eBV(e);const v=n.XpG(4);return n.Njj(v.onOriginatingUserSelected(r))}),n.DNE(2,j,5,3,"ng-template",null,2,n.C5r),n.k0s()}if(2&o){const e=n.XpG(4);n.Y8G("participantList",n.bMT(1,1,e.participants$)||n.lJ4(3,m))}}function N(o,t){if(1&o&&(n.j41(0,"nz-col"),n.EFF(1),n.k0s()),2&o){const e=t.$implicit;n.R7$(),n.SpI(" ",e.name," ")}}function B(o,t){if(1&o){const e=n.RV6();n.j41(0,"cvc-participant-list",32),n.nI1(1,"ngrxPush"),n.bIt("participantSelectedEvent",function(r){n.eBV(e);const v=n.XpG(4);return n.Njj(v.onOrganizationSelected(r))}),n.DNE(2,N,2,1,"ng-template",null,2,n.C5r),n.k0s()}if(2&o){const e=n.XpG(4);n.Y8G("participantList",n.bMT(1,1,e.organizations$)||n.lJ4(3,m))}}function U(o,t){if(1&o){const e=n.RV6();n.qex(0),n.j41(1,"cvc-participant-list",25),n.nI1(2,"ngrxPush"),n.bIt("participantSelectedEvent",function(r){n.eBV(e);const v=n.XpG(3);return n.Njj(v.onActionSelected(r))}),n.DNE(3,S,2,4,"ng-template",null,2,n.C5r),n.k0s(),n.DNE(5,L,4,4,"cvc-participant-list",26)(6,B,4,4,"cvc-participant-list",27),n.bVm()}if(2&o){const e=n.XpG(3);n.R7$(),n.Y8G("participantList",n.bMT(2,3,e.actions$)||n.lJ4(5,m)),n.R7$(4),n.Y8G("ngIf",!e.userId),n.R7$(),n.Y8G("ngIf",!e.organizationId)}}function K(o,t){1&o&&(n.j41(0,"nz-space",8),n.DNE(1,G,3,1,"span",23)(2,U,7,6,"ng-container",23),n.k0s())}function W(o,t){if(1&o&&(n.qex(0),n.j41(1,"nz-row",6)(2,"nz-col",7)(3,"nz-space",8),n.DNE(4,$,5,5,"nz-card",9),n.k0s()(),n.j41(5,"nz-col",10),n.DNE(6,K,3,0,"nz-space",11),n.k0s()(),n.bVm()),2&o){const e=n.XpG();n.R7$(),n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",e.showFilters?"18":"24"),n.R7$(4),n.Y8G("ngIf",e.showFilters)}}function Y(o,t){1&o&&n.nrm(0,"nz-empty",33)}let _=class X{constructor(t,e){this.gql=t,this.eventCountGql=e,this.tagDisplay="displayAll",this.mode=E.Qt1.Subject,this.showFilters=!0,this.pageSize=15,this.pollForNewEvents=!0,this.includeAutomatedEvents=!0,this.destroy$=new T.B,this.showChildren=!1}ngOnInit(){this.initialQueryVars={subject:this.subscribable,organizationId:this.organizationId,originatingUserId:this.userId,first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:this.includeAutomatedEvents},this.queryRef=this.gql.watch(this.initialQueryVars),this.pollForNewEvents&&R.c.production&&(this.newEventCount$=this.eventCountGql.watch(this.initialQueryVars,{fetchPolicy:"no-cache",pollInterval:3e4}).valueChanges.pipe((0,p.p)(g.kP),(0,l.T)(({data:t})=>t?.events?.unfilteredCount),(0,x.Q)(this.destroy$))),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,l.T)(({data:t})=>t.events.pageInfo)),this.events$=this.results$.pipe((0,C.E)("data","events","edges"),(0,p.p)(g.kP),(0,l.T)(t=>t.map(e=>e.node))),this.loading$=this.results$.pipe((0,l.T)(({loading:t})=>t),(0,D.F)()),this.unfilteredCount$=this.results$.pipe((0,l.T)(t=>t.data),(0,p.p)(g.kP),(0,l.T)(({events:t})=>t.unfilteredCount)),this.unfilteredCount$.pipe((0,f.s)(1),(0,z.s)(this)).subscribe(t=>this.originalEventCount=t),this.showFilters&&(this.participants$=this.results$.pipe((0,p.p)(g.kP),(0,l.T)(({data:t})=>t.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,p.p)(g.kP),(0,l.T)(({data:t})=>t.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,p.p)(g.kP),(0,l.T)(({data:t})=>t.events?.eventTypes?.map(e=>({id:e}))||[])))}fetchMore(t){this.queryRef.fetchMore({variables:{first:this.pageSize,after:t}})}onOrganizationSelected(t){this.queryRef.refetch({organizationId:t?.id,showFilters:this.showFilters})}onActionSelected(t){this.queryRef.refetch({eventType:t?t.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(t){this.queryRef.refetch({originatingUserId:t?.id,showFilters:this.showFilters})}refresh(){this.queryRef.refetch().then(({data:t})=>{this.originalEventCount=t.events.unfilteredCount})}onShowChildrenToggle(){let t;this.subscribable?(t={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):t=void 0,this.queryRef.refetch({...this.initialQueryVars,subject:t,showFilters:this.showFilters})}ngOnDestroy(){this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(e){return new(e||X)(n.rXU(E.XxZ),n.rXU(E.Ei5))};static#t=this.\u0275cmp=n.VBU({type:X,selectors:[["cvc-event-feed"]],inputs:{subscribable:"subscribable",subscribableName:"subscribableName",organizationId:"organizationId",userId:"userId",tagDisplay:"tagDisplay",mode:"mode",showFilters:"showFilters",pageSize:"pageSize",pollForNewEvents:"pollForNewEvents",includeAutomatedEvents:"includeAutomatedEvents"},decls:6,vars:7,consts:[["noEvents",""],["refreshFeed",""],["itemTemplate",""],["noAvatar",""],["nzTip","Loading",3,"nzSpinning"],[4,"ngIf","ngIfElse"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle","nzExtra"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"],[4,"ngrxLet"],[3,"nzCount",4,"ngIf"],[3,"nzCount"],["nz-button","","nz-tooltip","Click to Refresh",3,"click"],[4,"nzSpaceItem"],["nzSize","small",3,"ngModelChange","ngModel"],["listTitle","Action",3,"participantSelectedEvent","participantList"],["listTitle","Curator",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Organization",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Curator",3,"participantSelectedEvent","participantList"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Organization",3,"participantSelectedEvent","participantList"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(e,s){if(1&e&&(n.j41(0,"nz-spin",4),n.nI1(1,"ngrxPush"),n.DNE(2,W,7,3,"ng-container",5),n.nI1(3,"ngrxPush"),n.DNE(4,Y,1,0,"ng-template",null,0,n.C5r),n.k0s()),2&e){const r=n.sdS(5);n.Y8G("nzSpinning",n.bMT(1,3,s.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,5,s.unfilteredCount$))("ngIfElse",r)}},styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}#event-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#event-filters[_ngcontent-%COMP%] #participant-filter[_ngcontent-%COMP%]{width:200px}#event-filters[_ngcontent-%COMP%] #organization-filter[_ngcontent-%COMP%]{width:250px}"]})};_=(0,d.Cg)([(0,z.d)()],_)},2385:(V,F,i)=>{i.d(F,{p:()=>Y});var d=i(177),E=i(9543),T=i(1774),p=i(5703),l=i(5103),x=i(8927),C=i(9417),D=i(7481),f=i(7529),R=i(1997),g=i(2172),z=i(513),n=i(4917),m=i(7685),y=i(2968),M=i(9438),P=i(1672),I=i(2983),O=i(3146),h=i(5154),a=i(3953),u=i(6389),$=i(5930),G=i(7120),S=i(6903),c=i(9145);let A=(()=>{class _{transform(t){switch(t){case c.H1z.Commented:case c.H1z.CommentDeleted:return"civic-comment";case c.H1z.RevisionSuggested:case c.H1z.RevisionAccepted:case c.H1z.RevisionRejected:case c.H1z.RevisionSuperseded:return"civic-revision";case c.H1z.Flagged:case c.H1z.FlagResolved:return"civic-flag";case c.H1z.AssertionSubmitted:case c.H1z.AssertionAccepted:case c.H1z.AssertionRejected:return"civic-assertion";case c.H1z.Submitted:case c.H1z.Accepted:case c.H1z.Rejected:return"civic-evidence";case c.H1z.PublicationSuggested:case c.H1z.CuratedSourceSuggestion:case c.H1z.RejectedSourceSuggestion:case c.H1z.RequeuedSourceSuggestion:return"file-add";case c.H1z.Reverted:return"civic-evidence";case c.H1z.AssertionReverted:return"civic-assertion";case c.H1z.DeprecatedVariant:return"civic-variant";case c.H1z.DeprecatedFeature:case c.H1z.FeatureCreated:return"civic-feature";case c.H1z.DeprecatedMolecularProfile:case c.H1z.ComplexMolecularProfileCreated:return"civic-molecularprofile";case c.H1z.VariantCreated:return"civic-variant";default:return t}}static#n=this.\u0275fac=function(e){return new(e||_)};static#t=this.\u0275pipe=a.EJ8({name:"iconNameForEventAction",type:_,pure:!0})}return _})();function j(_,o){if(1&_&&(a.nrm(0,"i",6),a.nI1(1,"iconNameForEventAction")),2&_){const t=a.XpG(2).$implicit;a.Y8G("nzType",a.bMT(1,1,t.action))}}function L(_,o){if(1&_&&(a.j41(0,"nz-timeline-item",4),a.DNE(1,j,2,3,"ng-template",null,0,a.C5r),a.nrm(3,"cvc-event-timeline-item",5),a.k0s()),2&_){const t=a.sdS(2),e=a.XpG().$implicit,s=a.XpG(2);a.Y8G("nzDot",t),a.R7$(3),a.Y8G("event",e)("tagDisplay",s.tagDisplay)}}function N(_,o){if(1&_&&(a.qex(0),a.DNE(1,L,4,3,"nz-timeline-item",3),a.bVm()),2&_){const t=o.$implicit;a.R7$(),a.Y8G("ngIf",t)}}function B(_,o){if(1&_&&(a.j41(0,"nz-timeline"),a.DNE(1,N,2,1,"ng-container",2),a.k0s()),2&_){const t=a.XpG();a.R7$(),a.Y8G("ngForOf",t.events)}}let U=(()=>{class _{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}static#n=this.\u0275fac=function(e){return new(e||_)};static#t=this.\u0275cmp=a.VBU({type:_,selectors:[["cvc-event-timeline"]],inputs:{events:"events",tagDisplay:"tagDisplay"},decls:1,vars:1,consts:[["timelineDotTemplate",""],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzDot",4,"ngIf"],[3,"nzDot"],[3,"event","tagDisplay"],["nz-icon","","nzTheme","twotone",1,"item-icon",3,"nzType"]],template:function(e,s){1&e&&a.DNE(0,B,2,1,"nz-timeline",1),2&e&&a.Y8G("ngIf",null==s.events?null:s.events.length)},dependencies:[d.Sq,d.bT,u.c,l.Dn,G.SO,G.XJ,S.O,A],styles:["[_nghost-%COMP%]{display:block}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]})}return _})();var K=i(9365),W=i(7793);let Y=(()=>{class _{static#n=this.\u0275fac=function(e){return new(e||_)};static#t=this.\u0275mod=a.$C({type:_});static#e=this.\u0275inj=a.G2t({imports:[d.MD,C.YN,z.Zw,p.Ti,l.Y3,x.PQ,R.DH,D.$,f.f3,m.pc,P._v,M.Yb,I.V,O.W2,h.Qt,g.a,n.i,y.K,n.i]})}return _})();a.wjB(E.e,[d.bT,C.BC,C.vS,T.Nj,z.aO,u.c,$.p,p.cK,f.Uq,f.e,D.u,m.U5,m.Dq,P.RW,M.PM,I.a,O.dz,h.LH,U,K.T],[d.Pc,T.L9,W.s])},2172:(V,F,i)=>{i.d(F,{a:()=>a});var d=i(177),E=i(5103),T=i(2839),p=i(7391),l=i(4917),x=i(9238),C=i(9269),D=i(1862),f=i(6936),R=i(7051),g=i(8920),z=i(5154),n=i(7120),m=i(7529),y=i(4415),M=i(513),P=i(1209),I=i(5023),O=i(6912),h=i(3953);let a=(()=>{class u{static#n=this.\u0275fac=function(S){return new(S||u)};static#t=this.\u0275mod=h.$C({type:u});static#e=this.\u0275inj=h.G2t({imports:[d.MD,M.Zw,E.Y3,z.Qt,p.kT,n.ki,m.f3,y.O,T.m,l.i,x.e,C.P,O.l,D.e,f.G,R.U,g.U,P.k,I.J]})}return u})()}}]); \ No newline at end of file diff --git a/server/public/2553.5b65a8e1a951c61a.js b/server/public/2553.5b65a8e1a951c61a.js deleted file mode 100644 index 65e37e91c..000000000 --- a/server/public/2553.5b65a8e1a951c61a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2553],{8542:(X,f,a)=>{a.d(f,{d:()=>at});var n=a(4412),t=a(3953),d=a(177),T=a(9417),h=a(513),S=a(6389),x=a(5930),R=a(5703),E=a(2269),G=a(5103),z=a(7529),O=a(1236),v=a(7481),u=a(1774);let P=(()=>{class e{transform(c){const _=+c%10;return c+["th","st","nd","rd"][10==+c%100-_||_>3?0:_]}static#t=this.\u0275fac=function(_){return new(_||e)};static#n=this.\u0275pipe=t.EJ8({name:"ordinal",type:e,pure:!0})}return e})();var C=a(3075);const I=["*","*","*","*"],y=(e,s)=>({$implicit:e,title:"Comments",iconTpl:s}),M=(e,s)=>({$implicit:e,title:"Revisions",iconTpl:s}),D=(e,s)=>({$implicit:e,title:"Submissions",iconTpl:s}),$=(e,s)=>({$implicit:e,title:"Moderations",iconTpl:s}),Y=()=>[8,8];function b(e,s){if(1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"ordinal"),t.bVm()),2&e){const c=t.XpG(2).$implicit;t.R7$(),t.SpI(" (",t.bMT(2,1,c.rank),") ")}}function A(e,s){if(1&e&&(t.EFF(0),t.DNE(1,b,3,3,"ng-container",18)),2&e){const c=t.XpG(),_=c.$implicit;t.SpI(" ",c.title," "),t.R7$(),t.Y8G("ngIf",_)}}function w(e,s){if(1&e&&(t.nrm(0,"nz-statistic",17),t.nI1(1,"number"),t.DNE(2,A,2,2,"ng-template",null,6,t.C5r)),2&e){const c=s.$implicit,_=s.iconTpl,m=t.sdS(3);t.Y8G("nzTitle",m)("nzValue",c&&t.bMT(1,3,c.actionCount)||0)("nzPrefix",_)}}function L(e,s){1&e&&t.SdG(0,0,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.commentsRank,\n title: 'Comments',\n iconTpl: commentIcon\n }\n "])}function V(e,s){1&e&&(t.nrm(0,"i",19),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Comment"))}function B(e,s){1&e&&t.SdG(0,1,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.revisionsRank,\n title: 'Revisions',\n iconTpl: revisionIcon\n }\n "])}function U(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Revision"))}function o(e,s){1&e&&t.SdG(0,2,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.submissionsRank,\n title: 'Submissions',\n iconTpl: submissionsIcon\n }\n "])}function r(e,s){1&e&&(t.nrm(0,"i",21),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Curator"))}function i(e,s){1&e&&t.SdG(0,3,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.moderationRank,\n title: 'Moderations',\n iconTpl: moderationIcon\n }\n "])}function l(e,s){1&e&&(t.nrm(0,"i",22),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Editor"))}function p(e,s){if(1&e){const c=t.RV6();t.EFF(0," Include Child Org Counts "),t.j41(1,"nz-switch",24),t.mxI("ngModelChange",function(m){t.eBV(c);const g=t.XpG(2);return t.DH7(g.showSubGroupStats,m)||(g.showSubGroupStats=m),t.Njj(m)}),t.k0s()}if(2&e){const c=t.XpG(2);t.R7$(),t.R50("ngModel",c.showSubGroupStats)}}function k(e,s){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"EvidenceItem")),t.R7$(2),t.xc7("color",t.bMT(3,5,"EvidenceItem")))}function H(e,s){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"EvidenceItem")),t.R7$(2),t.xc7("color",t.bMT(3,5,"EvidenceItem")))}function J(e,s){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Assertion")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Assertion")))}function Q(e,s){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Assertion")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Assertion")))}function Z(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor"),t.nrm(2,"i",36),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Revision")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Revision")))}function q(e,s){1&e&&(t.nrm(0,"i",20),t.nI1(1,"entityColor"),t.nrm(2,"i",37),t.nI1(3,"entityColor")),2&e&&(t.Y8G("nzTwotoneColor",t.bMT(1,3,"Revision")),t.R7$(2),t.xc7("color",t.bMT(3,5,"Revision")))}function tt(e,s){1&e&&(t.nrm(0,"i",19),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Comment"))}function nt(e,s){1&e&&(t.nrm(0,"i",39),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Source"))}function et(e,s){if(1&e&&(t.qex(0),t.j41(1,"nz-row",25)(2,"nz-col",26),t.nrm(3,"nz-statistic",27),t.nI1(4,"number"),t.k0s(),t.j41(5,"nz-col",26),t.nrm(6,"nz-statistic",28),t.nI1(7,"number"),t.k0s(),t.DNE(8,k,4,7,"ng-template",null,8,t.C5r)(10,H,4,7,"ng-template",null,9,t.C5r),t.j41(12,"nz-col",26),t.nrm(13,"nz-statistic",29),t.nI1(14,"number"),t.k0s(),t.j41(15,"nz-col",26),t.nrm(16,"nz-statistic",30),t.nI1(17,"number"),t.k0s(),t.DNE(18,J,4,7,"ng-template",null,10,t.C5r)(20,Q,4,7,"ng-template",null,11,t.C5r),t.j41(22,"nz-col",26),t.nrm(23,"nz-statistic",31),t.nI1(24,"number"),t.k0s(),t.j41(25,"nz-col",26),t.nrm(26,"nz-statistic",32),t.nI1(27,"number"),t.k0s(),t.DNE(28,Z,4,7,"ng-template",null,12,t.C5r)(30,q,4,7,"ng-template",null,13,t.C5r),t.j41(32,"nz-col",26),t.nrm(33,"nz-statistic",33),t.nI1(34,"number"),t.DNE(35,tt,2,3,"ng-template",null,1,t.C5r),t.k0s(),t.j41(37,"nz-col",26),t.nrm(38,"nz-statistic",34),t.nI1(39,"number"),t.k0s(),t.DNE(40,nt,2,3,"ng-template",null,14,t.C5r),t.k0s(),t.bVm()),2&e){const c=s.ngIf,_=t.sdS(9),m=t.sdS(11),g=t.sdS(19),K=t.sdS(21),N=t.sdS(29),W=t.sdS(31),F=t.sdS(36),j=t.sdS(41);t.R7$(),t.Y8G("nzGutter",t.lJ4(41,Y)),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(4,25,c.submittedEvidenceItems))("nzPrefix",_),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(7,27,c.acceptedEvidenceItems))("nzPrefix",m),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(14,29,c.submittedAssertions))("nzPrefix",g),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(17,31,c.acceptedAssertions))("nzPrefix",K),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(24,33,c.revisions))("nzPrefix",N),t.R7$(2),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(27,35,c.appliedRevisions))("nzPrefix",W),t.R7$(6),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(34,37,c.comments))("nzPrefix",F),t.R7$(4),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzValue",t.bMT(39,39,c.suggestedSources))("nzPrefix",j)}}function ot(e,s){if(1&e&&(t.j41(0,"nz-card",23),t.DNE(1,p,2,1,"ng-template",null,7,t.C5r)(3,et,42,42,"ng-container",18),t.nI1(4,"ngrxPush"),t.k0s()),2&e){const c=t.sdS(2),_=t.XpG();t.Y8G("nzBorderless",!0)("nzExtra",_.cvcSubGroupStats?c:void 0),t.R7$(3),t.Y8G("ngIf",t.bMT(4,3,_.stat$))}}let at=(()=>{class e{get showSubGroupStats(){return this.showSubGroupStat$.value}set showSubGroupStats(c){this.updateModel(c)}constructor(){this.stat$=new n.t(void 0),this.showSubGroupStat$=new n.t(!0)}updateModel(c){!0===c&&void 0!==this.cvcSubGroupStats?(this.showSubGroupStat$.next(!0),this.stat$.next(this.cvcSubGroupStats)):(this.showSubGroupStat$.next(!1),this.stat$.next(this.cvcStats))}ngOnInit(){this.updateModel(void 0!==this.cvcSubGroupStats)}static#t=this.\u0275fac=function(_){return new(_||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-stats-card"]],inputs:{cvcStats:"cvcStats",cvcRanks:"cvcRanks",cvcSubGroupStats:"cvcSubGroupStats"},ngContentSelectors:I,decls:18,vars:21,consts:[["rankedActivity",""],["commentIcon",""],["revisionIcon",""],["submissionsIcon",""],["moderationIcon",""],["activityDetails",""],["activityTitle",""],["subGroupsSwitch",""],["evidenceSubmitPrefix",""],["evidenceAcceptPrefix",""],["assertionSubmitPrefix",""],["assertionAcceptPrefix",""],["revisionSubmitPrefix",""],["revisionAcceptPrefix",""],["sourceIcon",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzBlock","","nzSize","small","nz-popover","","nzPopoverTrigger","hover",2,"margin-top","8px",3,"nzPopoverContent"],[3,"nzTitle","nzValue","nzPrefix"],[4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-comment",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-editor",3,"nzTwotoneColor"],["nzSize","small","nzTitle","Activity Details",3,"nzBorderless","nzExtra"],["nzSize","small",3,"ngModelChange","ngModel"],[2,"max-width","25em",3,"nzGutter"],[3,"nzSpan"],["nzTitle","Evidence Submitted",3,"nzValue","nzPrefix"],["nzTitle","Evidence Accepted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Submitted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Accepted",3,"nzValue","nzPrefix"],["nzTitle","Revisions Suggested",3,"nzValue","nzPrefix"],["nzTitle","Revisions Applied",3,"nzValue","nzPrefix"],["nzTitle","Comments",3,"nzValue","nzPrefix"],["nzTitle","Sources Suggested",3,"nzValue","nzPrefix"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","outline","nzType","plus"],["nz-icon","","nzTheme","outline","nzType","check"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"]],template:function(_,m){if(1&_&&(t.NAR(I),t.DNE(0,w,4,5,"ng-template",null,0,t.C5r)(2,L,1,0,"ng-content",15)(3,V,2,3,"ng-template",null,1,t.C5r)(5,B,1,0,"ng-content",15)(6,U,2,3,"ng-template",null,2,t.C5r)(8,o,1,0,"ng-content",15)(9,r,2,3,"ng-template",null,3,t.C5r)(11,i,1,0,"ng-content",15)(12,l,2,3,"ng-template",null,4,t.C5r),t.j41(14,"button",16),t.EFF(15," Activity Details\n"),t.k0s(),t.DNE(16,ot,5,5,"ng-template",null,5,t.C5r)),2&_){const g=t.sdS(1),K=t.sdS(4),N=t.sdS(7),W=t.sdS(10),F=t.sdS(13),j=t.sdS(17);t.R7$(2),t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(9,y,m.cvcRanks.commentsRank,K)),t.R7$(3),t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(12,M,m.cvcRanks.revisionsRank,N)),t.R7$(3),t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(15,D,m.cvcRanks.submissionsRank,W)),t.R7$(3),t.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",t.l_i(18,$,m.cvcRanks.moderationRank,F)),t.R7$(3),t.Y8G("nzPopoverContent",j)}},dependencies:[d.bT,d.T3,T.BC,T.vS,h.aO,S.c,x.p,R.cK,E.IV,G.Dn,z.Uq,z.e,O.L_,v.u,d.QX,u.L9,P,C.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-statistic .ant-statistic-title{padding-top:.25em}[_nghost-%COMP%] nz-statistic .ant-statistic-content{border-bottom:1px solid #f0f0f0;padding-bottom:.15em} .ant-popover .ant-popover-inner-content{padding:0}h5[_ngcontent-%COMP%]{font-weight:400}"],changeDetection:0})}return e})()},6208:(X,f,a)=>{a.d(f,{K:()=>P});var n=a(177),t=a(9417),d=a(4917),T=a(3146),h=a(513),S=a(5703),x=a(7529),R=a(5103),E=a(1236),G=a(2269),z=a(7481),O=a(5154),v=a(7391),u=a(3953);let P=(()=>{class C{static#t=this.\u0275fac=function(M){return new(M||C)};static#n=this.\u0275mod=u.$C({type:C});static#e=this.\u0275inj=u.G2t({imports:[n.MD,t.YN,h.Zw,S.Ti,G.Fw,v.kT,R.Y3,x.f3,T.W2,O.Qt,E.MC,z.$,d.i]})}return C})()},6911:(X,f,a)=>{a.d(f,{U:()=>U});var n=a(3953),t=a(177),d=a(5699),T=a(1236),h=a(7855),S=a(9563),x=a(9861),R=a(6440),E=a(3245),G=a(3100),z=a(6073),O=a(959);const v=o=>({"matched-tag":o}),u=(o,r)=>({tagType:o,tag:r});function P(o,r){if(1&o&&(n.j41(0,"div",4),n.eu8(1,6),n.k0s()),2&o){const i=r.$implicit,l=n.XpG(),p=n.sdS(7);n.Y8G("ngClass",n.eq3(3,v,l.matchingText&&i.matchText.toLowerCase().includes(l.matchingText))),n.R7$(),n.Y8G("ngTemplateOutlet",p)("ngTemplateOutletContext",n.l_i(5,u,l.tagType,i))}}function C(o,r){if(1&o&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&o){const i=n.XpG(2);n.R7$(),n.SpI(" ",i.matchedHiddenCount," of ")}}function I(o,r){if(1&o&&(n.j41(0,"nz-tag",7),n.EFF(1," +"),n.DNE(2,C,2,1,"span",8),n.EFF(3),n.k0s()),2&o){const i=n.XpG(),l=n.sdS(5);n.Y8G("nzPopoverContent",l),n.R7$(2),n.Y8G("ngIf",i.matchedHiddenCount>0),n.R7$(),n.SpI("",i.hiddenCount," ")}}function y(o,r){if(1&o&&(n.j41(0,"div",4),n.qex(1,10),n.eu8(2,6),n.bVm(),n.k0s()),2&o){const i=r.$implicit,l=n.XpG(2),p=n.sdS(7);n.Y8G("ngClass",n.eq3(4,v,l.matchingText&&i.matchText.toLowerCase().includes(l.matchingText))),n.R7$(),n.Y8G("ngSwitch",l.tagType),n.R7$(),n.Y8G("ngTemplateOutlet",p)("ngTemplateOutletContext",n.l_i(6,u,l.tagType,i))}}function M(o,r){if(1&o&&(n.j41(0,"div",9)(1,"cvc-tag-list",2),n.DNE(2,y,3,9,"div",3),n.k0s()()),2&o){const i=n.XpG();n.R7$(2),n.Y8G("ngForOf",i.hiddenTags)}}function D(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",12),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("therapy",i)("truncateLongName",!0)}}function $(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-disease-tag",13),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("disease",i)("truncateLongName",!0)}}function Y(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-feature-tag",14),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("feature",i)("truncateLongName",!0)}}function b(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-organization-tag",15),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("org",i)}}function A(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-variant-tag",16),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("variant",i)}}function w(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-variant-type-tag",17),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("variantType",i)}}function L(o,r){if(1&o&&(n.qex(0),n.nrm(1,"cvc-feature-variant-tag",18),n.bVm()),2&o){const i=n.XpG().tag;n.R7$(),n.Y8G("truncateLongName",!0)("variant",i)}}function V(o,r){1&o&&(n.qex(0,10),n.DNE(1,D,2,2,"ng-container",11)(2,$,2,2,"ng-container",11)(3,Y,2,2,"ng-container",11)(4,b,2,1,"ng-container",11)(5,A,2,1,"ng-container",11)(6,w,2,1,"ng-container",11)(7,L,2,2,"ng-container",11),n.bVm()),2&o&&(n.Y8G("ngSwitch",r.tagType),n.R7$(),n.Y8G("ngSwitchCase","therapy"),n.R7$(),n.Y8G("ngSwitchCase","disease"),n.R7$(),n.Y8G("ngSwitchCase","feature"),n.R7$(),n.Y8G("ngSwitchCase","organization"),n.R7$(),n.Y8G("ngSwitchCase","variant"),n.R7$(),n.Y8G("ngSwitchCase","variant-type"),n.R7$(),n.Y8G("ngSwitchCase","variant-feature"))}function B(o){return o?.map(r=>r.matchText?r:{...r,matchText:r.name})}let U=(()=>{class o{constructor(i){this.cdr=i,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(i){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.matchedHiddenCount=0,this.hiddenTags){let i=this.matchingText.toLowerCase();this.hiddenTags.forEach(l=>{l.matchText.toLowerCase().includes(i)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}static#t=this.\u0275fac=function(l){return new(l||o)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-tag-overflow"]],inputs:{tags:[2,"tags","tags",B],maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.GFd,n.OA$],decls:8,vars:5,consts:[["additionalTagPopover",""],["tagTemplate",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"therapy","truncateLongName"],[3,"disease","truncateLongName"],[3,"feature","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"],[3,"truncateLongName","variant"]],template:function(l,p){1&l&&(n.j41(0,"cvc-tag-list",2),n.DNE(1,P,2,8,"div",3),n.j41(2,"div",4),n.DNE(3,I,4,3,"nz-tag",5),n.k0s(),n.DNE(4,M,3,1,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(6,V,8,8,"ng-template",null,1,n.C5r)),2&l&&(n.R7$(),n.Y8G("ngForOf",p.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,v,p.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",p.hiddenCount&&p.hiddenCount>0))},dependencies:[t.YU,t.Sq,t.bT,t.T3,t.ux,t.e1,d.s,T.L_,h.M,S.R,x.Y,R.r,E._,G.V,z.h,O.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return o})()}}]); \ No newline at end of file diff --git a/server/public/262.627eb2792fc46b22.js b/server/public/262.627eb2792fc46b22.js new file mode 100644 index 000000000..00dbb2c79 --- /dev/null +++ b/server/public/262.627eb2792fc46b22.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[262],{664:(Y,U,e)=>{e.d(U,{D:()=>Pt});var n=e(9145),O=e(6354),h=e(4608),t=e(3953),o=e(177),L=e(513),A=e(6389),P=e(7529),N=e(5703),B=e(2617),S=e(5103),G=e(9438),$=e(7685),j=e(1635),b=e(1226),D=e(9894),z=e(1305),I=e(4222),u=e(9417),v=e(5930),y=e(8927),F=e(2983),W=e(3617),k=e(5154),r=e(9449),g=e(1939),p=e(5566);function s(a,d){if(1&a){const i=t.RV6();t.j41(0,"nz-alert",6),t.bIt("nzOnClose",function(){t.eBV(i);const _=t.XpG();return t.Njj(_.onSuccessBannerClose())}),t.k0s()}}function m(a,d){if(1&a&&(t.j41(0,"nz-form-item"),t.nrm(1,"cvc-form-errors-alert",7),t.k0s()),2&a){const i=t.XpG();t.R7$(),t.Y8G("errors",i.errorMessages)}}let f=class tt{constructor(d,i,c){this.viewerService=d,this.addCommentGql=i,this.networkErrorService=c,this.commentAddedEvent=new t.bkB,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,D.s)(this)).subscribe(_=>{this.mostRecentOrg=_.mostRecentOrg}),this.addCommentMutator=new b.E(this.networkErrorService)}submitComment(){if(this.commentText){this.errorMessages=[];let i=this.addCommentMutator.mutate(this.addCommentGql,{input:{body:this.commentText,subject:this.subject,organizationId:void 0===this.mostRecentOrg?void 0:this.mostRecentOrg.id}});i.submitSuccess$.pipe((0,D.s)(this)).subscribe(c=>{c&&(this.resetForm(),this.success=!0)}),i.submitError$.pipe((0,D.s)(this)).subscribe(c=>{c&&(this.errorMessages=c,this.success=!1)}),i.isSubmitting$.pipe((0,D.s)(this)).subscribe(c=>{this.loading=c})}}resetForm(){this.commentText="",this.commentAddedEvent.emit()}onSuccessBannerClose(){this.resetForm()}static#t=this.\u0275fac=function(i){return new(i||tt)(t.rXU(z.q),t.rXU(n.hj),t.rXU(I.N))};static#n=this.\u0275cmp=t.VBU({type:tt,selectors:[["cvc-comment-add-form"]],inputs:{subject:"subject"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:11,vars:7,consts:[["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[4,"ngIf"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"],["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"]],template:function(i,c){1&i&&(t.j41(0,"nz-card"),t.DNE(1,s,1,0,"nz-alert",0),t.j41(2,"form",1),t.bIt("ngSubmit",function(){return c.submitComment()}),t.DNE(3,m,2,1,"nz-form-item",2),t.j41(4,"cvc-comment-input-form",3),t.mxI("commentChange",function(x){return t.DH7(c.commentText,x)||(c.commentText=x),x}),t.k0s(),t.j41(5,"nz-spin",4)(6,"nz-form-item")(7,"nz-form-control")(8,"cvc-form-buttons")(9,"button",5),t.EFF(10," Add Comment "),t.k0s()()()()()()()),2&i&&(t.R7$(),t.Y8G("ngIf",c.success),t.R7$(2),t.Y8G("ngIf",c.errorMessages.length>0),t.R7$(),t.R50("comment",c.commentText),t.R7$(),t.Y8G("nzSpinning",c.loading),t.R7$(4),t.Y8G("disabled",c.loading||!(void 0!==c.commentText&&c.commentText.length>=10))("nzTooltipTrigger",c.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==c.mostRecentOrg?null:c.mostRecentOrg.name)))},dependencies:[o.bT,u.qT,u.cb,L.aO,A.c,v.p,N.cK,P.Uq,P.e,y.CA,y.Ls,y.zS,F.a,W.Y,k.LH,u.cV,r.j,g.l,p.K],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2})};f=(0,j.Cg)([(0,D.d)()],f);var R=e(9365),M=e(6864),Z=e(7391),Q=e(2874),V=e(1774),q=e(4126),C=e(8139);function K(a,d){if(1&a&&t.nrm(0,"nz-avatar",5),2&a){const i=t.XpG().ngrxLet;t.Y8G("nzSrc",i.commenter.profileImagePath)}}function l(a,d){1&a&&t.nrm(0,"nz-avatar",6)}function T(a,d){if(1&a){const i=t.RV6();t.j41(0,"nz-comment-action")(1,"span",7),t.bIt("nzOnConfirm",function(){t.eBV(i);const _=t.XpG().ngrxLet,x=t.XpG(),nt=t.r8f(0);return t.Njj(x.deleteComment(_.id,null==nt.mostRecentOrg?null:nt.mostRecentOrg.id))}),t.k0s()()}}function E(a,d){1&a&&(t.j41(0,"span",4)(1,"i"),t.EFF(2," This comment has been deleted. "),t.k0s()())}function X(a,d){1&a&&(t.j41(0,"span",4)(1,"i"),t.EFF(2,"No Comment Provided"),t.k0s()())}function H(a,d){if(1&a&&t.nrm(0,"cvc-comment-body",8),2&a){const i=t.XpG(2).ngrxLet;t.Y8G("commentBodySegments",i.parsedComment)}}function J(a,d){if(1&a&&t.DNE(0,X,3,0,"span",4)(1,H,1,1,"cvc-comment-body",8),2&a){const i=t.XpG().ngrxLet;t.vxM(0==i.parsedComment.length?0:1)}}function et(a,d){if(1&a&&(t.j41(0,"nz-comment",2),t.nI1(1,"timeAgo"),t.DNE(2,K,1,1,"nz-avatar",3)(3,l,1,0,"ng-template",null,0,t.C5r)(5,T,2,0,"nz-comment-action"),t.j41(6,"nz-comment-content"),t.DNE(7,E,3,0,"span",4)(8,J,2,1),t.k0s()()),2&a){const i=d.ngrxLet,c=t.sdS(4);t.XpG();const _=t.r8f(0);t.Y8G("nzAuthor",i.commenter.displayName)("nzDatetime",t.bMT(1,6,i.createdAt)),t.R7$(2),t.Y8G("ngIf",i.commenter.profileImagePath)("ngIfElse",c),t.R7$(3),t.vxM(_&&_.signedIn&&_.id==i.commenter.id&&i.id&&!i.deleted?5:-1),t.R7$(2),t.vxM(i.deleted?7:8)}}let ot=(()=>{class a{constructor(i,c,_){this.viewerService=i,this.networkErrorService=c,this.deleteCommentGql=_,this.comment=t.hFB.required(),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(void 0===this.comment)throw new Error("Must pass a comment into comment display component.")}deleteComment(i,c){new b.E(this.networkErrorService).mutate(this.deleteCommentGql,{input:{commentId:i,organizationId:c}})}static#t=this.\u0275fac=function(c){return new(c||a)(t.rXU(z.q),t.rXU(I.N),t.rXU(n.hGs))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["cvc-comment-display"]],inputs:{comment:[1,"comment"]},decls:3,vars:4,consts:[["noAvatar",""],[3,"nzAuthor","nzDatetime",4,"ngrxLet"],[3,"nzAuthor","nzDatetime"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","","nzIcon","civic:curator"],["nz-tooltip","","nz-popconfirm","","nzPopconfirmPlacement","right","nzPopconfirmTitle","Delete This Comment?","nzTooltipTitle","Delete","nz-icon","","nzType","delete",3,"nzOnConfirm"],[3,"commentBodySegments"]],template:function(c,_){1&c&&(t.SS7(0),t.nI1(1,"ngrxPush"),t.DNE(2,et,9,8,"nz-comment",1)),2&c&&(t.bH3(t.bMT(1,1,_.viewer$)),t.R7$(2),t.Y8G("ngrxLet",_.comment()))},dependencies:[o.bT,M.fL,M.sf,M.OW,M.fS,G.PM,Z.Di,S.Dn,k.LH,Q.PV,V.Nj,q.p,V.L9,C.N],encapsulation:2})}return a})();var it=e(4493);const w=()=>[];function at(a,d){if(1&a&&(t.j41(0,"nz-card",10),t.nrm(1,"cvc-comment-display",11),t.k0s()),2&a){const i=t.XpG(2);t.R7$(),t.Y8G("comment",i.creationComment)}}function ct(a,d){1&a&&(t.qex(0),t.j41(1,"nz-row",6)(2,"nz-col",7)(3,"nz-space",8),t.DNE(4,at,2,1,"nz-card",9),t.k0s()()(),t.bVm()),2&a&&(t.R7$(),t.Y8G("nzGutter",16))}function st(a,d){if(1&a){const i=t.RV6();t.j41(0,"div",24)(1,"button",25),t.bIt("click",function(){t.eBV(i);const _=t.XpG().ngIf,x=t.XpG(3);return t.Njj(x.onLoadMore(_.startCursor))}),t.EFF(2," Load older comments "),t.k0s()()}}function rt(a,d){if(1&a&&(t.j41(0,"nz-list-header"),t.DNE(1,st,3,0,"div",23),t.k0s()),2&a){const i=d.ngIf;t.R7$(),t.Y8G("ngIf",i.hasPreviousPage)}}function mt(a,d){if(1&a&&(t.j41(0,"nz-list-item"),t.nrm(1,"cvc-comment-display",11),t.k0s()),2&a){const i=d.$implicit;t.R7$(),t.Y8G("comment",i)}}function lt(a,d){if(1&a&&(t.j41(0,"nz-card",21)(1,"nz-list",22),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.DNE(4,rt,2,1,"nz-list-header",4),t.nI1(5,"ngrxPush"),t.DNE(6,mt,2,1,"ng-template",null,1,t.C5r),t.k0s()()),2&a){const i=t.sdS(7),c=t.XpG(2);t.R7$(),t.Y8G("nzDataSource",t.bMT(2,4,c.comments$))("nzLoading",t.bMT(3,6,c.loading$))("nzRenderItem",i),t.R7$(3),t.Y8G("ngIf",t.bMT(5,8,c.pageInfo$))}}function _t(a,d){if(1&a){const i=t.RV6();t.j41(0,"cvc-comment-add-form",26),t.bIt("commentAddedEvent",function(){t.eBV(i);const _=t.XpG(2);return t.Njj(_.refreshList())}),t.k0s()}if(2&a){const i=t.XpG(2);t.Y8G("subject",i.commentable)}}function pt(a,d){if(1&a&&t.nrm(0,"nz-avatar",29),2&a){const i=t.XpG().$implicit;t.Y8G("nzSrc",i.profileImagePath)}}function dt(a,d){if(1&a&&(t.nrm(0,"nz-avatar",30),t.nI1(1,"uppercase")),2&a){const i=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,i.displayName.charAt(0)))}}function Ct(a,d){if(1&a&&(t.DNE(0,pt,1,1,"nz-avatar",28)(1,dt,2,3,"ng-template",null,3,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&a){const i=d.$implicit,c=t.sdS(2);t.Y8G("ngIf",i.profileImagePath)("ngIfElse",c),t.R7$(4),t.JRh(i.displayName)}}function ut(a,d){if(1&a){const i=t.RV6();t.j41(0,"cvc-participant-list",27),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(_){t.eBV(i);const x=t.XpG(2);return t.Njj(x.onCommenterSelected(_))}),t.DNE(2,Ct,5,3,"ng-template",null,2,t.C5r),t.k0s()}if(2&a){const i=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,i.commenters$)||t.lJ4(3,w))}}function zt(a,d){if(1&a&&t.nrm(0,"nz-avatar",29),2&a){const i=t.XpG().$implicit;t.Y8G("nzSrc",i.profileImagePath)}}function gt(a,d){if(1&a&&(t.nrm(0,"nz-avatar",30),t.nI1(1,"uppercase")),2&a){const i=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,i.displayName.charAt(0)))}}function ft(a,d){if(1&a&&(t.DNE(0,zt,1,1,"nz-avatar",28)(1,gt,2,3,"ng-template",null,3,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&a){const i=d.$implicit,c=t.sdS(2);t.Y8G("ngIf",i.profileImagePath)("ngIfElse",c),t.R7$(4),t.JRh(i.displayName)}}function vt(a,d){if(1&a){const i=t.RV6();t.j41(0,"cvc-participant-list",31),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(_){t.eBV(i);const x=t.XpG(2);return t.Njj(x.onMentionedUserSelected(_))}),t.DNE(2,ft,5,3,"ng-template",null,2,t.C5r),t.k0s()}if(2&a){const i=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,i.mentionedUsers$)||t.lJ4(3,w))}}function ht(a,d){if(1&a&&(t.nrm(0,"nz-avatar",33),t.j41(1,"span"),t.EFF(2),t.k0s()),2&a){const i=d.$implicit;t.Mz_("nzIcon","civic-",i.tag.displayName,""),t.R7$(2),t.SpI("",i.tag.displayName,"s")}}function Tt(a,d){if(1&a){const i=t.RV6();t.j41(0,"cvc-participant-list",32),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(_){t.eBV(i);const x=t.XpG(2);return t.Njj(x.onMentionedRoleSelected(_))}),t.DNE(2,ht,3,3,"ng-template",null,2,t.C5r),t.k0s()}if(2&a){const i=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,i.mentionedRoles$)||t.lJ4(3,w))}}function Et(a,d){if(1&a&&(t.nrm(0,"i",35),t.nI1(1,"iconNameForSubscribableEntity"),t.j41(2,"span"),t.EFF(3),t.k0s()),2&a){const i=d.$implicit;t.Y8G("nzType",t.bMT(1,2,i.tag.tagType)),t.R7$(3),t.JRh(i.tag.displayName)}}function yt(a,d){if(1&a){const i=t.RV6();t.j41(0,"cvc-participant-list",34),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(_){t.eBV(i);const x=t.XpG(2);return t.Njj(x.onMentionedEntitySelected(_))}),t.DNE(2,Et,4,4,"ng-template",null,2,t.C5r),t.k0s()}if(2&a){const i=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,i.mentionedEntities$)||t.lJ4(3,w))}}function Ot(a,d){1&a&&(t.qex(0),t.j41(1,"nz-row",6)(2,"nz-col",12)(3,"nz-space",8),t.DNE(4,lt,8,10,"nz-card",13)(5,_t,1,1,"cvc-comment-add-form",14),t.k0s()(),t.j41(6,"nz-col",15)(7,"nz-space",16),t.DNE(8,ut,4,4,"cvc-participant-list",17)(9,vt,4,4,"cvc-participant-list",18)(10,Tt,4,4,"cvc-participant-list",19)(11,yt,4,4,"cvc-participant-list",20),t.k0s()()(),t.bVm()),2&a&&(t.R7$(),t.Y8G("nzGutter",16))}function Dt(a,d){if(1&a){const i=t.RV6();t.j41(0,"cvc-comment-add-form",26),t.bIt("commentAddedEvent",function(){t.eBV(i);const _=t.XpG();return t.Njj(_.refreshList())}),t.k0s()}if(2&a){const i=t.XpG();t.Y8G("subject",i.commentable)}}let Pt=(()=>{class a{constructor(i){this.gql=i,this.pageSize=5}ngOnInit(){this.queryRef$=this.gql.watch({subject:this.commentable,last:this.pageSize,sortBy:{column:n.G_G.Created,direction:n.UEL.Asc}});let i=this.queryRef$.valueChanges;this.pageInfo$=i.pipe((0,O.T)(({data:c})=>c.comments.pageInfo)),this.loading$=i.pipe((0,O.T)(({loading:c})=>c)),this.comments$=i.pipe((0,O.T)(({data:c})=>c.comments.edges.map(_=>_.node))),this.commenters$=i.pipe((0,O.T)(({data:c})=>c.comments.uniqueCommenters)),this.mentionedUsers$=i.pipe((0,O.T)(({data:c})=>c.comments.mentionedUsers)),this.mentionedRoles$=i.pipe((0,O.T)(({data:c})=>c.comments.mentionedRoles.map(_=>({id:`${_.entityId}-${_.tagType}`,tag:_})))),this.mentionedEntities$=i.pipe((0,O.T)(({data:c})=>c.comments.mentionedEntities.map(_=>({id:`${_.entityId}-${_.tagType}`,tag:_})))),this.unfilteredCount$=i.pipe((0,h.E)("data","comments","unfilteredCountForSubject"))}onLoadMore(i){this.queryRef$.fetchMore({variables:{last:this.pageSize,before:i}})}onCommenterSelected(i){this.queryRef$.refetch({originatingUserId:i?.id})}onMentionedUserSelected(i){this.queryRef$.refetch({mentionedUserId:i?.id})}onMentionedRoleSelected(i){if(i){let c=n.gG1[i.tag.displayName[0].toUpperCase()+i.tag.displayName.slice(1)];this.queryRef$.refetch({mentionedRole:c})}else this.queryRef$.refetch({mentionedRole:void 0})}onMentionedEntitySelected(i){this.queryRef$.refetch(i?{mentionedEntity:{entityType:i.tag.tagType,id:i.tag.entityId}}:{mentionedEntity:void 0})}refreshList(){this.queryRef$.refetch()}static#t=this.\u0275fac=function(c){return new(c||a)(t.rXU(n.y5X))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["cvc-comment-list"]],inputs:{commentable:"commentable",creationComment:"creationComment"},decls:5,vars:5,consts:[["noComments",""],["comment",""],["itemTemplate",""],["noAvatar",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","24"],["nzDirection","vertical",2,"width","100%"],["nzTitle","Submission Comment",4,"nzSpaceItem"],["nzTitle","Submission Comment"],[3,"comment"],["nzSpan","18"],["nzTitle","Comments",4,"nzSpaceItem"],["id","addComment",3,"subject","commentAddedEvent",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical"],["listTitle","Commenters",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Mentioned Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Mentioned Roles",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Mentioned Entities",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["nzTitle","Comments"],["nzSize","small","nzItemLayout","horizontal",3,"nzDataSource","nzLoading","nzRenderItem"],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","link","nzSize","small","nzBlock","",3,"click"],["id","addComment",3,"commentAddedEvent","subject"],["listTitle","Commenters",3,"participantSelectedEvent","participantList"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Mentioned Users",3,"participantSelectedEvent","participantList"],["listTitle","Mentioned Roles",3,"participantSelectedEvent","participantList"],[3,"nzIcon"],["listTitle","Mentioned Entities",3,"participantSelectedEvent","participantList"],["nz-icon","",3,"nzType"]],template:function(c,_){if(1&c&&(t.DNE(0,ct,5,1,"ng-container",4)(1,Ot,12,1,"ng-container",5),t.nI1(2,"ngrxPush"),t.DNE(3,Dt,1,1,"ng-template",null,0,t.C5r)),2&c){const x=t.sdS(4);t.Y8G("ngIf",_.creationComment),t.R7$(),t.Y8G("ngIf",t.bMT(2,3,_.unfilteredCount$))("ngIfElse",x)}},dependencies:[o.bT,L.aO,A.c,P.Uq,P.e,N.cK,B.eE,B.Xo,B.lQ,S.Dn,G.PM,$.U5,$.Dq,f,R.T,ot,o.Pc,V.L9,it.g],styles:["[_nghost-%COMP%]{display:block}nz-list-header[_ngcontent-%COMP%]{padding:0;margin:0}nz-list-header[_ngcontent-%COMP%] [nz-list-load-more][_ngcontent-%COMP%]{margin-top:-.5em;padding-bottom:.5em}"]})}return a})()},4873:(Y,U,e)=>{e.d(U,{A:()=>R});var n=e(177),O=e(7529),h=e(5703),t=e(2617),o=e(9438),L=e(7685),A=e(1912),P=e(2968),N=e(6864),B=e(7169),S=e(4917),G=e(7391),$=e(5103),j=e(5154),b=e(2874),D=e(3953);let z=(()=>{class M{static#t=this.\u0275fac=function(V){return new(V||M)};static#n=this.\u0275mod=D.$C({type:M});static#e=this.\u0275inj=D.G2t({imports:[n.MD,N.sC,o.Yb,G.kT,$.Y3,j.Qt,b.g9,B.W,S.i]})}return M})();var I=e(9417),u=e(8524),v=e(8927),y=e(4308),F=e(3842),W=e(8492),k=e(5128),r=e(3617),g=e(513),p=e(3069),s=e(2983),m=e(9541);let f=(()=>{class M{static#t=this.\u0275fac=function(V){return new(V||M)};static#n=this.\u0275mod=D.$C({type:M});static#e=this.\u0275inj=D.G2t({imports:[n.MD,I.X1,g.Zw,h.Ti,m.hM,v.PQ,s.V,p.$f,r.$,j.Qt,I.YN,u.qy,W.M,F.k,B.W,k.K,y.I]})}return M})(),R=(()=>{class M{static#t=this.\u0275fac=function(V){return new(V||M)};static#n=this.\u0275mod=D.$C({type:M});static#e=this.\u0275inj=D.G2t({imports:[n.MD,g.Zw,O.f3,h.Ti,t.rD,$.Y3,S.i,o.Yb,L.pc,A.i3,f,P.K,z]})}return M})()},9365:(Y,U,e)=>{e.d(U,{T:()=>D});var n=e(3953),O=e(177),h=e(5703),t=e(2617),o=e(5103),L=e(513),A=e(6389),P=e(5930);const N=["itemTemplate"],B=z=>({$implicit:z});function S(z,I){if(1&z){const u=n.RV6();n.j41(0,"nz-list-item",5),n.bIt("click",function(){n.eBV(u);const y=n.XpG().$implicit,F=n.XpG(2);return n.Njj(F.onParticipantSelected(y))}),n.eu8(1,6),n.k0s()}if(2&z){const u=n.XpG().$implicit,v=n.XpG(2);n.AVh("selected-participant",u.id==(null==v.selectedItem?null:v.selectedItem.id)),n.R7$(),n.Y8G("ngTemplateOutlet",v.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(4,B,u))}}function G(z,I){if(1&z&&(n.qex(0),n.DNE(1,S,2,6,"nz-list-item",4),n.bVm()),2&z){const u=I.index,v=n.XpG(2);n.R7$(),n.Y8G("ngIf",u+1<=v.defaultListSize)}}function $(z,I){if(1&z){const u=n.RV6();n.j41(0,"button",7),n.bIt("click",function(){n.eBV(u);const y=n.XpG(2);return n.Njj(y.onExpandClicked())}),n.nrm(1,"i",8),n.EFF(2," Expand "),n.k0s()}}function j(z,I){if(1&z){const u=n.RV6();n.j41(0,"button",7),n.bIt("click",function(){n.eBV(u);const y=n.XpG(2);return n.Njj(y.onCollapseClicked())}),n.nrm(1,"i",9),n.EFF(2," Collapse "),n.k0s()}}function b(z,I){if(1&z&&(n.qex(0),n.j41(1,"nz-card",1)(2,"nz-list"),n.DNE(3,G,2,1,"ng-container",2),n.k0s(),n.DNE(4,$,3,0,"button",3)(5,j,3,0,"button",3),n.k0s(),n.bVm()),2&z){const u=n.XpG();n.R7$(),n.Y8G("nzTitle",u.listTitle),n.R7$(2),n.Y8G("ngForOf",u.participantList),n.R7$(),n.Y8G("ngIf",u.participantList.length>u.defaultListSize),n.R7$(),n.Y8G("ngIf",u.isExpanded)}}let D=(()=>{class z{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new n.bkB,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(u){this.selectedItem=u.id==this.selectedItem?.id?void 0:u,this.participantSelectedEvent.emit(this.selectedItem)}onExpandClicked(){this.originalDefaultListSize=this.defaultListSize,this.defaultListSize=this.participantList.length,this.isExpanded=!0}onCollapseClicked(){this.originalDefaultListSize&&(this.defaultListSize=this.originalDefaultListSize,this.isExpanded=!1)}static#t=this.\u0275fac=function(v){return new(v||z)};static#n=this.\u0275cmp=n.VBU({type:z,selectors:[["cvc-participant-list"]],contentQueries:function(v,y,F){if(1&v&&n.wni(F,N,5),2&v){let W;n.mGM(W=n.lsd())&&(y.itemTemplateRef=W.first)}},inputs:{participantList:"participantList",listTitle:"listTitle",defaultListSize:"defaultListSize",preselectedOption:"preselectedOption"},outputs:{participantSelectedEvent:"participantSelectedEvent"},decls:1,vars:1,consts:[[4,"ngIf"],["nz-type","inner",2,"margin-bottom","1em",3,"nzTitle"],[4,"ngFor","ngForOf"],["nz-button","","nzType","default","nzSize","small",3,"click",4,"ngIf"],["nzSize","small","class","participant-list-item",3,"selected-participant","click",4,"ngIf"],["nzSize","small",1,"participant-list-item",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","vertical-align-bottom"],["nz-icon","","nzType","vertical-align-top"]],template:function(v,y){1&v&&n.DNE(0,b,6,4,"ng-container",0),2&v&&n.Y8G("ngIf",y.participantList&&y.participantList.length>0)},dependencies:[O.Sq,O.bT,O.T3,h.cK,t.eE,t.lQ,o.Dn,L.aO,A.c,P.p],styles:[".participant-list-item[_ngcontent-%COMP%]:hover{border:1px solid #40a9ff;cursor:pointer}.participant-list-item[_ngcontent-%COMP%]{padding:2px;margin:2px}.selected-participant[_ngcontent-%COMP%]{background:#40a9ff;color:#fff}"]})}return z})()},2968:(Y,U,e)=>{e.d(U,{K:()=>A});var n=e(177),O=e(5703),h=e(2617),t=e(5103),o=e(513),L=e(3953);let A=(()=>{class P{static#t=this.\u0275fac=function(S){return new(S||P)};static#n=this.\u0275mod=L.$C({type:P});static#e=this.\u0275inj=L.G2t({imports:[n.MD,O.Ti,h.rD,t.Y3,o.Zw]})}return P})()},5566:(Y,U,e)=>{e.d(U,{K:()=>r});var n=e(3953),O=e(1413),h=e(9145),t=e(5964),o=e(6977),L=e(6354),A=e(9172),P=e(4608),N=e(9199),B=e(1305),S=e(177),G=e(9417),$=e(1774),j=e(9541),b=e(2983),D=e(3069),z=e(1011),I=e(4126);const u=()=>["#","@","$"],v=()=>({minRows:4,maxRows:100});function y(g,p){if(1&g&&(n.qex(0),n.j41(1,"span"),n.EFF(2),n.k0s(),n.bVm()),2&g){const s=p.$implicit;n.R7$(2),n.JRh(s.displayName)}}function F(g,p){1&g&&(n.qex(0),n.nrm(1,"nz-spin",8),n.bVm())}function W(g,p){if(1&g&&(n.qex(0),n.nrm(1,"cvc-comment-body",9),n.bVm()),2&g){const s=p.ngIf;n.R7$(),n.Y8G("commentBodySegments",s)}}function k(g,p){if(1&g){const s=n.RV6();n.qex(0),n.j41(1,"nz-tabset",1)(2,"nz-tab",2)(3,"nz-mention",3),n.bIt("nzOnSearchChange",function(f){n.eBV(s);const R=n.XpG();return n.Njj(R.onSearchChange(f))})("nzOnSelect",function(){n.eBV(s);const f=n.XpG();return n.Njj(f.suggestions=[])}),n.j41(4,"textarea",4),n.mxI("ngModelChange",function(f){n.eBV(s);const R=n.XpG();return n.DH7(R.commentText,f)||(R.commentText=f),n.Njj(f)}),n.bIt("ngModelChange",function(f){n.eBV(s);const R=n.XpG();return n.Njj(R.onCommentChanged(f))}),n.k0s(),n.DNE(5,y,3,1,"ng-container",5),n.k0s()(),n.j41(6,"nz-tab",6),n.bIt("nzClick",function(){n.eBV(s);const f=n.XpG();return n.Njj(f.onPreviewButtonClicked())}),n.DNE(7,F,2,0,"ng-container",7),n.nI1(8,"ngrxPush"),n.DNE(9,W,2,1,"ng-container",7),n.nI1(10,"ngrxPush"),n.k0s()(),n.bVm()}if(2&g){const s=p.ngrxLet,m=n.XpG();n.R7$(),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("nzSuggestions",m.suggestions)("nzPrefix",n.lJ4(14,u))("nzValueWith",m.autoCompleteValueFor),n.R7$(),n.Y8G("placeholder",s&&s.canCurate?"Enter comment (minimum length 10. Use @ to mention users; # to link entities)":"Please sign in")("nzAutosize",n.lJ4(15,v)),n.R50("ngModel",m.commentText),n.BMQ("disabled",!s||!s.canCurate||null),n.R7$(3),n.Y8G("ngIf",n.bMT(8,10,m.previewLoading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(10,12,m.previewComment$))}}let r=(()=>{class g{constructor(s,m,f,R){this.previewCommentGql=s,this.userTypeaheadGql=m,this.entityTypeaheadGql=f,this.viewerService=R,this.commentChange=new n.bkB,this.destroy$=new O.B,this.suggestions=[],this.roleSuggestions=[{displayName:"admins",value:"admins"},{displayName:"editors",value:"editors"}]}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.commentText=this.comment,this.userTypeaheadQueryRef$=this.userTypeaheadGql.watch({queryTerm:""}),this.userTypeaheadQueryRef$.valueChanges.pipe((0,P.E)("data","userTypeahead"),(0,t.p)(N.kP),(0,o.Q)(this.destroy$)).subscribe(s=>this.suggestions=s.map(m=>({displayName:m.username,value:m.username}))),this.entityTypeaheadQueryRef$=this.entityTypeaheadGql.watch({queryTerm:""}),this.entityTypeaheadQueryRef$.valueChanges.pipe((0,P.E)("data","entityTypeahead"),(0,t.p)(N.kP),(0,o.Q)(this.destroy$)).subscribe(s=>this.suggestions=s.map(m=>({displayName:m.displayName,value:this.tagForEntityTypeAndId(m.tagType,m.entityId)})))}ngOnChanges(){this.commentText=this.comment}autoCompleteValueFor(s){return s.value}tagForEntityTypeAndId(s,m){switch(s){case h.lBA.Feature:return`FID${m}`;case h.lBA.Variant:return`VID${m}`;case h.lBA.VariantGroup:return`VGID${m}`;case h.lBA.EvidenceItem:return`EID${m}`;case h.lBA.Assertion:return`AID${m}`;case h.lBA.Revision:return`RID${m}`;case h.lBA.MolecularProfile:return`MPID${m}`;case h.lBA.Role:return Object.keys(h.gG1)[m]}}resetForm(){this.commentText=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onPreviewButtonClicked(){this.commentText&&(this.previewComment$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,P.E)("data","previewCommentText"),(0,t.p)(N.kP)),this.previewLoading$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,L.T)(({loading:s})=>s),(0,A.Z)(!0)))}onSearchChange({value:s,prefix:m}){"@"===m?this.userTypeaheadQueryRef$.refetch({queryTerm:s}):"$"==m?this.suggestions=this.roleSuggestions.filter(f=>f.value.startsWith(s)):this.entityTypeaheadQueryRef$.refetch({queryTerm:s})}onCommentChanged(s){this.commentChange.emit(s)}static#t=this.\u0275fac=function(m){return new(m||g)(n.rXU(h.WGp),n.rXU(h.bPL),n.rXU(h.paL),n.rXU(B.q))};static#n=this.\u0275cmp=n.VBU({type:g,selectors:[["cvc-comment-input-form"]],inputs:{comment:"comment"},outputs:{commentChange:"commentChange"},features:[n.OA$],decls:1,vars:1,consts:[[4,"ngrxLet"],[3,"nzAnimated"],["nzTitle","Write"],["nzNotFoundContent","No matches...",3,"nzOnSearchChange","nzOnSelect","nzSuggestions","nzPrefix","nzValueWith"],["nzMentionTrigger","","nz-input","",2,"width","100%",3,"ngModelChange","placeholder","nzAutosize","ngModel"],[4,"nzMentionSuggestion"],["nzTitle","Preview",3,"nzClick"],[4,"ngIf"],["nzTip","Loading..."],[3,"commentBodySegments"]],template:function(m,f){1&m&&n.DNE(0,k,11,16,"ng-container",0),2&m&&n.Y8G("ngrxLet",f.viewer$)},dependencies:[S.bT,G.me,G.BC,$.Nj,j.JZ,j.rE,b.a,D.O2,D.sJ,D.yZ,z.Sy,z.c9,G.vS,I.p,$.L9],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2})}return g})()},6864:(Y,U,e)=>{e.d(U,{OW:()=>u,fL:()=>F,fS:()=>y,sC:()=>k,sf:()=>I});var n=e(3953),O=e(6939),h=e(1413),t=e(6977),o=e(7806),L=e(8203);const A=["*"];function P(r,g){1&r&&n.SdG(0)}const N=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],B=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"];function S(r,g){if(1&r&&(n.qex(0),n.EFF(1),n.bVm()),2&r){const p=n.XpG(2);n.R7$(),n.JRh(p.nzAuthor)}}function G(r,g){if(1&r&&(n.j41(0,"span",4),n.DNE(1,S,2,1,"ng-container",8),n.k0s()),2&r){const p=n.XpG();n.R7$(),n.Y8G("nzStringTemplateOutlet",p.nzAuthor)}}function $(r,g){if(1&r&&(n.qex(0),n.EFF(1),n.bVm()),2&r){const p=n.XpG(2);n.R7$(),n.JRh(p.nzDatetime)}}function j(r,g){if(1&r&&(n.j41(0,"span",5),n.DNE(1,$,2,1,"ng-container",8),n.k0s()),2&r){const p=n.XpG();n.R7$(),n.Y8G("nzStringTemplateOutlet",p.nzDatetime)}}function b(r,g){}function D(r,g){if(1&r&&(n.j41(0,"li")(1,"span"),n.DNE(2,b,0,0,"ng-template",9),n.k0s()()),2&r){const p=g.$implicit;n.R7$(2),n.Y8G("nzCommentActionHost",p.content)}}function z(r,g){if(1&r&&(n.j41(0,"ul",6),n.Z7z(1,D,3,1,"li",null,n.fX1),n.k0s()),2&r){const p=n.XpG();n.R7$(),n.Dyx(p.actions)}}let I=(()=>{class r{static#t=this.\u0275fac=function(s){return new(s||r)};static#n=this.\u0275dir=n.FsC({type:r,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"],standalone:!0})}return r})(),u=(()=>{class r{static#t=this.\u0275fac=function(s){return new(s||r)};static#n=this.\u0275dir=n.FsC({type:r,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"],standalone:!0})}return r})(),v=(()=>{class r extends O.I3{constructor(p,s){super(p,s)}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}ngAfterViewInit(){this.attach(this.nzCommentActionHost)}static#t=this.\u0275fac=function(s){return new(s||r)(n.rXU(n.OM3),n.rXU(n.c1b))};static#n=this.\u0275dir=n.FsC({type:r,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],standalone:!0,features:[n.Vt3]})}return r})(),y=(()=>{class r{get content(){return this.contentPortal}constructor(p){this.viewContainerRef=p,this.contentPortal=null}ngOnInit(){this.contentPortal=new O.VA(this.implicitContent,this.viewContainerRef)}static#t=this.\u0275fac=function(s){return new(s||r)(n.rXU(n.c1b))};static#n=this.\u0275cmp=n.VBU({type:r,selectors:[["nz-comment-action"]],viewQuery:function(s,m){if(1&s&&n.GBs(n.C4Q,7),2&s){let f;n.mGM(f=n.lsd())&&(m.implicitContent=f.first)}},exportAs:["nzCommentAction"],standalone:!0,features:[n.aNF],ngContentSelectors:A,decls:1,vars:0,template:function(s,m){1&s&&(n.NAR(),n.DNE(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return r})(),F=(()=>{class r{constructor(p,s){this.cdr=p,this.directionality=s,this.dir="ltr",this.destroy$=new h.B}ngOnInit(){this.directionality.change?.pipe((0,t.Q)(this.destroy$)).subscribe(p=>{this.dir=p,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(s){return new(s||r)(n.rXU(n.gRc),n.rXU(L.dS,8))};static#n=this.\u0275cmp=n.VBU({type:r,selectors:[["nz-comment"]],contentQueries:function(s,m,f){if(1&s&&n.wni(f,y,4),2&s){let R;n.mGM(R=n.lsd())&&(m.actions=R)}},hostVars:4,hostBindings:function(s,m){2&s&&n.AVh("ant-comment",!0)("ant-comment-rtl","rtl"===m.dir)},inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],standalone:!0,features:[n.aNF],ngContentSelectors:B,decls:11,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],[1,"ant-comment-content-author-name"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[1,"ant-comment-nested"],[4,"nzStringTemplateOutlet"],[3,"nzCommentActionHost"]],template:function(s,m){1&s&&(n.NAR(N),n.j41(0,"div",0)(1,"div",1),n.SdG(2),n.k0s(),n.j41(3,"div",2)(4,"div",3),n.DNE(5,G,2,1,"span",4)(6,j,2,1,"span",5),n.k0s(),n.SdG(7,1),n.DNE(8,z,3,0,"ul",6),n.k0s()(),n.j41(9,"div",7),n.SdG(10,2),n.k0s()),2&s&&(n.R7$(5),n.vxM(m.nzAuthor?5:-1),n.R7$(),n.vxM(m.nzDatetime?6:-1),n.R7$(2),n.vxM(null!=m.actions&&m.actions.length?8:-1))},dependencies:[o.C,o.m,v],encapsulation:2,changeDetection:0})}return r})(),k=(()=>{class r{static#t=this.\u0275fac=function(s){return new(s||r)};static#n=this.\u0275mod=n.$C({type:r});static#e=this.\u0275inj=n.G2t({imports:[F]})}return r})()},2874:(Y,U,e)=>{e.d(U,{PV:()=>Q,g9:()=>q});var n=e(4707),O=e(851),h=e(7987),t=e(177),o=e(3953),L=e(1413),A=e(6977),P=e(1594),N=e(980),B=e(513),S=e(713),G=e(6042),$=e(6841),j=e(7806),b=e(5463),D=e(317),z=e(6914),I=e(5103),u=e(5154),v=e(8203),y=e(6389),F=e(5930);const W=["okBtn"],k=["cancelBtn"];function r(C,K){1&C&&(o.j41(0,"div",6),o.nrm(1,"span",14),o.k0s())}function g(C,K){if(1&C&&(o.qex(0),o.j41(1,"span",16),o.nrm(2,"span",17),o.k0s(),o.bVm()),2&C){const l=K.$implicit;o.R7$(2),o.Y8G("nzType",l||"exclamation-circle")}}function p(C,K){if(1&C&&(o.qex(0),o.DNE(1,g,3,1,"ng-container",10),o.j41(2,"div",15),o.EFF(3),o.k0s(),o.bVm()),2&C){const l=o.XpG(2);o.R7$(),o.Y8G("nzStringTemplateOutlet",l.nzIcon),o.R7$(2),o.JRh(l.nzTitle)}}function s(C,K){if(1&C&&o.EFF(0),2&C){const l=o.XpG(2);o.SpI(" ",l.nzCancelText," ")}}function m(C,K){1&C&&(o.EFF(0),o.nI1(1,"nzI18n")),2&C&&o.SpI(" ",o.bMT(1,1,"Modal.cancelText")," ")}function f(C,K){if(1&C&&o.EFF(0),2&C){const l=o.XpG(2);o.SpI(" ",l.nzOkText," ")}}function R(C,K){1&C&&(o.EFF(0),o.nI1(1,"nzI18n")),2&C&&o.SpI(" ",o.bMT(1,1,"Modal.okText")," ")}function M(C,K){if(1&C){const l=o.RV6();o.j41(0,"div",4)(1,"div",5),o.DNE(2,r,2,0,"div",6),o.j41(3,"div",7)(4,"div")(5,"div",8)(6,"div",9),o.DNE(7,p,4,2,"ng-container",10),o.k0s(),o.j41(8,"div",11)(9,"button",12,1),o.bIt("click",function(){o.eBV(l);const E=o.XpG();return o.Njj(E.onCancel())}),o.DNE(11,s,1,1)(12,m,2,3),o.k0s(),o.j41(13,"button",13,2),o.bIt("click",function(){o.eBV(l);const E=o.XpG();return o.Njj(E.onConfirm())}),o.DNE(15,f,1,1)(16,R,2,3),o.k0s()()()()()()()}if(2&C){const l=o.XpG();o.AVh("ant-popover-rtl","rtl"===l.dir),o.Y8G("cdkTrapFocusAutoCapture",null!==l.nzAutoFocus)("ngClass",l._classMap)("ngStyle",l.nzOverlayStyle)("@.disabled",!(null==l.noAnimation||!l.noAnimation.nzNoAnimation))("nzNoAnimation",null==l.noAnimation?null:l.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),o.R7$(2),o.vxM(l.nzPopconfirmShowArrow?2:-1),o.R7$(5),o.Y8G("nzStringTemplateOutlet",l.nzTitle),o.R7$(2),o.Y8G("nzSize","small"),o.BMQ("cdkFocusInitial","cancel"===l.nzAutoFocus||null),o.R7$(2),o.vxM(l.nzCancelText?11:12),o.R7$(2),o.Y8G("nzSize","small")("nzType","danger"!==l.nzOkType?l.nzOkType:"primary")("nzDanger",l.nzOkDanger||"danger"===l.nzOkType)("nzLoading",l.confirmLoading)("disabled",l.nzOkDisabled),o.BMQ("cdkFocusInitial","ok"===l.nzAutoFocus||null),o.R7$(2),o.vxM(l.nzOkText?15:16)}}let Q=(()=>{class C extends u.ME{getProxyPropertyMap(){return{nzOkText:["nzOkText",()=>this.nzOkText],nzOkType:["nzOkType",()=>this.nzOkType],nzOkDanger:["nzOkDanger",()=>this.nzOkDanger],nzOkDisabled:["nzOkDisabled",()=>this.nzOkDisabled],nzCancelText:["nzCancelText",()=>this.nzCancelText],nzBeforeConfirm:["nzBeforeConfirm",()=>this.nzBeforeConfirm],nzCondition:["nzCondition",()=>this.nzCondition],nzIcon:["nzIcon",()=>this.nzIcon],nzPopconfirmShowArrow:["nzPopconfirmShowArrow",()=>this.nzPopconfirmShowArrow],nzPopconfirmBackdrop:["nzBackdrop",()=>this.nzPopconfirmBackdrop],nzAutoFocus:["nzAutoFocus",()=>this.nzAutofocus],...super.getProxyPropertyMap()}}constructor(){super(V),this._nzModuleName="popconfirm",this.trigger="click",this.placement="top",this.nzCondition=!1,this.nzPopconfirmShowArrow=!0,this.nzPopconfirmBackdrop=!1,this.nzAutofocus=null,this.visibleChange=new o.bkB,this.nzOnCancel=new o.bkB,this.nzOnConfirm=new o.bkB}createComponent(){super.createComponent(),this.component.nzOnCancel.pipe((0,A.Q)(this.destroy$)).subscribe(()=>{this.nzOnCancel.emit()}),this.component.nzOnConfirm.pipe((0,A.Q)(this.destroy$)).subscribe(()=>{this.nzOnConfirm.emit()})}static#t=this.\u0275fac=function(T){return new(T||C)};static#n=this.\u0275dir=o.FsC({type:C,selectors:[["","nz-popconfirm",""]],hostVars:2,hostBindings:function(T,E){2&T&&o.AVh("ant-popover-open",E.visible)},inputs:{arrowPointAtCenter:[2,"nzPopconfirmArrowPointAtCenter","arrowPointAtCenter",o.L39],title:[0,"nzPopconfirmTitle","title"],directiveTitle:[0,"nz-popconfirm","directiveTitle"],trigger:[0,"nzPopconfirmTrigger","trigger"],placement:[0,"nzPopconfirmPlacement","placement"],origin:[0,"nzPopconfirmOrigin","origin"],mouseEnterDelay:[0,"nzPopconfirmMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopconfirmMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopconfirmOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopconfirmOverlayStyle","overlayStyle"],visible:[0,"nzPopconfirmVisible","visible"],nzOkText:"nzOkText",nzOkType:"nzOkType",nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",o.L39],nzOkDanger:[2,"nzOkDanger","nzOkDanger",o.L39],nzCancelText:"nzCancelText",nzBeforeConfirm:"nzBeforeConfirm",nzIcon:"nzIcon",nzCondition:[2,"nzCondition","nzCondition",o.L39],nzPopconfirmShowArrow:[2,"nzPopconfirmShowArrow","nzPopconfirmShowArrow",o.L39],nzPopconfirmBackdrop:"nzPopconfirmBackdrop",nzAutofocus:"nzAutofocus"},outputs:{visibleChange:"nzPopconfirmVisibleChange",nzOnCancel:"nzOnCancel",nzOnConfirm:"nzOnConfirm"},exportAs:["nzPopconfirm"],standalone:!0,features:[o.GFd,o.Vt3]})}return(0,n.Cg)([(0,G.H4)()],C.prototype,"nzPopconfirmBackdrop",void 0),(0,n.Cg)([(0,G.H4)()],C.prototype,"nzAutofocus",void 0),C})(),V=(()=>{class C extends u.VJ{constructor(l,T,E,X,H){super(l,E,H),this.elementRef=T,this.nzCondition=!1,this.nzPopconfirmShowArrow=!0,this.nzOkType="primary",this.nzOkDanger=!1,this.nzOkDisabled=!1,this.nzAutoFocus=null,this.nzBeforeConfirm=null,this.nzOnCancel=new L.B,this.nzOnConfirm=new L.B,this._trigger="click",this.elementFocusedBeforeModalWasOpened=null,this._prefix="ant-popover",this.confirmLoading=!1,this.document=X}ngOnDestroy(){super.ngOnDestroy(),this.nzOnCancel.complete(),this.nzOnConfirm.complete()}show(){this.nzCondition?this.onConfirm():(this.capturePreviouslyFocusedElement(),super.show())}hide(){super.hide(),this.restoreFocus()}handleConfirm(){this.nzOnConfirm.next(),super.hide()}onCancel(){this.nzOnCancel.next(),super.hide()}onConfirm(){if(this.nzBeforeConfirm){const l=(0,D.cG)(this.nzBeforeConfirm()).pipe((0,P.$)());this.confirmLoading=!0,l.pipe((0,N.j)(()=>{this.confirmLoading=!1,this.cdr.markForCheck()}),(0,A.Q)(this.nzVisibleChange),(0,A.Q)(this.destroy$)).subscribe(T=>{T&&this.handleConfirm()})}else this.handleConfirm()}capturePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement)}restoreFocus(){const l=this.elementFocusedBeforeModalWasOpened;if(l&&"function"==typeof l.focus){const T=this.document.activeElement,E=this.elementRef.nativeElement;(!T||T===this.document.body||T===E||E.contains(T))&&l.focus()}}static#t=this.\u0275fac=function(T){return new(T||C)(o.rXU(o.gRc),o.rXU(o.aKT),o.rXU(v.dS,8),o.rXU(t.qQ,8),o.rXU($.z,9))};static#n=this.\u0275cmp=o.VBU({type:C,selectors:[["nz-popconfirm"]],viewQuery:function(T,E){if(1&T&&(o.GBs(W,5,o.aKT),o.GBs(k,5,o.aKT)),2&T){let X;o.mGM(X=o.lsd())&&(E.okBtn=X),o.mGM(X=o.lsd())&&(E.cancelBtn=X)}},exportAs:["nzPopconfirmComponent"],standalone:!0,features:[o.Vt3,o.aNF],decls:2,vars:6,consts:[["overlay","cdkConnectedOverlay"],["cancelBtn",""],["okBtn",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter"],["cdkTrapFocus","",1,"ant-popover",3,"cdkTrapFocusAutoCapture","ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-inner"],[1,"ant-popover-inner-content"],[1,"ant-popover-message"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-buttons"],["nz-button","",3,"click","nzSize"],["nz-button","",3,"click","nzSize","nzType","nzDanger","nzLoading","disabled"],[1,"ant-popover-arrow-content"],[1,"ant-popover-message-title"],[1,"ant-popover-message-icon"],["nz-icon","","nzTheme","fill",3,"nzType"]],template:function(T,E){if(1&T){const X=o.RV6();o.DNE(0,M,17,20,"ng-template",3,0,o.C5r),o.bIt("overlayOutsideClick",function(J){return o.eBV(X),o.Njj(E.onClickOutside(J))})("detach",function(){return o.eBV(X),o.Njj(E.hide())})("positionChange",function(J){return o.eBV(X),o.Njj(E.onPositionChange(J))})}2&T&&o.Y8G("cdkConnectedOverlayHasBackdrop",E.nzBackdrop)("cdkConnectedOverlayOrigin",E.origin)("cdkConnectedOverlayPositions",E._positions)("cdkConnectedOverlayOpen",E._visible)("cdkConnectedOverlayPush",E.cdkConnectedOverlayPush)("nzArrowPointAtCenter",E.nzArrowPointAtCenter)},dependencies:[h.z_,h.WB,b.$_,b.vT,O.Pd,O.kB,t.YU,t.B3,$.z,j.C,j.m,I.Y3,I.Dn,B.Zw,B.aO,y.c,F.p,z.bP,z.Vc],encapsulation:2,data:{animation:[S.uX]},changeDetection:0})}return C})(),q=(()=>{class C{static#t=this.\u0275fac=function(T){return new(T||C)};static#n=this.\u0275mod=o.$C({type:C});static#e=this.\u0275inj=o.G2t({imports:[V]})}return C})()}}]); \ No newline at end of file diff --git a/server/public/262.84b17d4caba014bf.js b/server/public/262.84b17d4caba014bf.js deleted file mode 100644 index dd9348b09..000000000 --- a/server/public/262.84b17d4caba014bf.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[262],{664:(H,W,o)=>{o.d(W,{D:()=>Mn});var t=o(9145),E=o(6354),f=o(4608),n=o(3953),e=o(177),G=o(513),M=o(6389),O=o(7529),S=o(5703),P=o(2617),j=o(5103),I=o(9438),A=o(7685),$=o(1635),F=o(1226),y=o(9894),N=o(1305),R=o(4222),x=o(9417),U=o(5930),B=o(8927),b=o(2983),Y=o(3617),V=o(5154),c=o(9449),u=o(1939),_=o(5566);function r(a,C){if(1&a){const i=n.RV6();n.j41(0,"nz-alert",6),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG();return n.Njj(p.onSuccessBannerClose())}),n.k0s()}}function m(a,C){if(1&a&&(n.j41(0,"nz-form-item"),n.nrm(1,"cvc-form-errors-alert",7),n.k0s()),2&a){const i=n.XpG();n.R7$(),n.Y8G("errors",i.errorMessages)}}let z=class tn{constructor(C,i,s){this.viewerService=C,this.addCommentGql=i,this.networkErrorService=s,this.commentAddedEvent=new n.bkB,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,y.s)(this)).subscribe(p=>{this.mostRecentOrg=p.mostRecentOrg}),this.addCommentMutator=new F.E(this.networkErrorService)}submitComment(){if(this.commentText){this.errorMessages=[];let i=this.addCommentMutator.mutate(this.addCommentGql,{input:{body:this.commentText,subject:this.subject,organizationId:void 0===this.mostRecentOrg?void 0:this.mostRecentOrg.id}});i.submitSuccess$.pipe((0,y.s)(this)).subscribe(s=>{s&&(this.resetForm(),this.success=!0)}),i.submitError$.pipe((0,y.s)(this)).subscribe(s=>{s&&(this.errorMessages=s,this.success=!1)}),i.isSubmitting$.pipe((0,y.s)(this)).subscribe(s=>{this.loading=s})}}resetForm(){this.commentText="",this.commentAddedEvent.emit()}onSuccessBannerClose(){this.resetForm()}static#n=this.\u0275fac=function(i){return new(i||tn)(n.rXU(N.q),n.rXU(t.hj),n.rXU(R.N))};static#t=this.\u0275cmp=n.VBU({type:tn,selectors:[["cvc-comment-add-form"]],inputs:{subject:"subject"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:11,vars:7,consts:[["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[4,"ngIf"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"],["nzBanner","","nzMessage","Comment submitted","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"]],template:function(i,s){1&i&&(n.j41(0,"nz-card"),n.DNE(1,r,1,0,"nz-alert",0),n.j41(2,"form",1),n.bIt("ngSubmit",function(){return s.submitComment()}),n.DNE(3,m,2,1,"nz-form-item",2),n.j41(4,"cvc-comment-input-form",3),n.mxI("commentChange",function(h){return n.DH7(s.commentText,h)||(s.commentText=h),h}),n.k0s(),n.j41(5,"nz-spin",4)(6,"nz-form-item")(7,"nz-form-control")(8,"cvc-form-buttons")(9,"button",5),n.EFF(10," Add Comment "),n.k0s()()()()()()()),2&i&&(n.R7$(),n.Y8G("ngIf",s.success),n.R7$(2),n.Y8G("ngIf",s.errorMessages.length>0),n.R7$(),n.R50("comment",s.commentText),n.R7$(),n.Y8G("nzSpinning",s.loading),n.R7$(4),n.Y8G("disabled",s.loading||!(void 0!==s.commentText&&s.commentText.length>=10))("nzTooltipTrigger",s.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==s.mostRecentOrg?null:s.mostRecentOrg.name)))},dependencies:[e.bT,x.qT,x.cb,G.aO,M.c,U.p,S.cK,O.Uq,O.e,B.CA,B.Ls,B.zS,b.a,Y.Y,V.LH,x.cV,c.j,u.l,_.K],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2})};z=(0,$.Cg)([(0,y.d)()],z);var D=o(9365),T=o(6864),q=o(7391),K=o(2874),X=o(4126),J=o(1774),d=o(8139);function k(a,C){if(1&a&&n.nrm(0,"nz-avatar",4),2&a){const i=n.XpG();n.Y8G("nzSrc",i.comment.commenter.profileImagePath)}}function l(a,C){1&a&&n.nrm(0,"nz-avatar",5)}function v(a,C){if(1&a){const i=n.RV6();n.j41(0,"nz-comment-action")(1,"span",6),n.bIt("nzOnConfirm",function(){n.eBV(i);const p=n.XpG(),h=n.r8f(0);return n.Njj(p.deleteComment(p.comment.id,null==h.mostRecentOrg?null:h.mostRecentOrg.id))}),n.k0s()()}}function g(a,C){1&a&&(n.j41(0,"span",3)(1,"i"),n.EFF(2," This comment has been deleted. "),n.k0s()())}function L(a,C){1&a&&(n.j41(0,"span",3)(1,"i"),n.EFF(2,"No Comment Provided"),n.k0s()())}function Q(a,C){if(1&a&&n.nrm(0,"cvc-comment-body",7),2&a){const i=n.XpG(2);n.Y8G("commentBodySegments",i.comment.parsedComment)}}function w(a,C){if(1&a&&n.DNE(0,L,3,0,"span",3)(1,Q,1,1,"cvc-comment-body",7),2&a){const i=n.XpG();n.vxM(0==i.comment.parsedComment.length?0:1)}}let en=(()=>{class a{constructor(i,s,p){this.viewerService=i,this.networkErrorService=s,this.deleteCommentGql=p,this.viewer$=this.viewerService.viewer$}ngOnInit(){if(void 0===this.comment)throw new Error("Must pass a comment into comment display component.")}deleteComment(i,s){new F.E(this.networkErrorService).mutate(this.deleteCommentGql,{input:{commentId:i,organizationId:s}})}static#n=this.\u0275fac=function(s){return new(s||a)(n.rXU(N.q),n.rXU(R.N),n.rXU(t.hGs))};static#t=this.\u0275cmp=n.VBU({type:a,selectors:[["cvc-comment-display"]],inputs:{comment:"comment"},decls:11,vars:11,consts:[["noAvatar",""],[3,"nzAuthor","nzDatetime"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","","nzIcon","civic:curator"],["nz-tooltip","","nz-popconfirm","","nzPopconfirmPlacement","right","nzPopconfirmTitle","Delete This Comment?","nzTooltipTitle","Delete","nz-icon","","nzType","delete",3,"nzOnConfirm"],[3,"commentBodySegments"]],template:function(s,p){if(1&s&&(n.SS7(0),n.nI1(1,"ngrxPush"),n.j41(2,"nz-comment",1),n.nI1(3,"timeAgo"),n.DNE(4,k,1,1,"nz-avatar",2)(5,l,1,0,"ng-template",null,0,n.C5r)(7,v,2,0,"nz-comment-action"),n.j41(8,"nz-comment-content"),n.DNE(9,g,3,0,"span",3)(10,w,2,1),n.k0s()()),2&s){const h=n.sdS(6),nn=n.bH3(n.bMT(1,6,p.viewer$));n.R7$(2),n.Y8G("nzAuthor",p.comment.commenter.displayName)("nzDatetime",n.bMT(3,9,p.comment.createdAt)),n.R7$(2),n.Y8G("ngIf",p.comment.commenter.profileImagePath)("ngIfElse",h),n.R7$(3),n.vxM(nn&&nn.signedIn&&nn.id==p.comment.commenter.id&&p.comment.id&&!p.comment.deleted?7:-1),n.R7$(2),n.vxM(p.comment.deleted?9:10)}},dependencies:[e.bT,T.fL,T.sf,T.OW,T.fS,I.PM,q.Di,j.Dn,V.LH,K.PV,X.p,J.L9,d.N],encapsulation:2})}return a})();var on=o(4493);const Z=()=>[];function an(a,C){if(1&a&&(n.j41(0,"nz-card",10),n.nrm(1,"cvc-comment-display",11),n.k0s()),2&a){const i=n.XpG(2);n.R7$(),n.Y8G("comment",i.creationComment)}}function rn(a,C){1&a&&(n.qex(0),n.j41(1,"nz-row",6)(2,"nz-col",7)(3,"nz-space",8),n.DNE(4,an,2,1,"nz-card",9),n.k0s()()(),n.bVm()),2&a&&(n.R7$(),n.Y8G("nzGutter",16))}function sn(a,C){if(1&a){const i=n.RV6();n.j41(0,"div",24)(1,"button",25),n.bIt("click",function(){n.eBV(i);const p=n.XpG().ngIf,h=n.XpG(3);return n.Njj(h.onLoadMore(p.startCursor))}),n.EFF(2," Load older comments "),n.k0s()()}}function cn(a,C){if(1&a&&(n.j41(0,"nz-list-header"),n.DNE(1,sn,3,0,"div",23),n.k0s()),2&a){const i=C.ngIf;n.R7$(),n.Y8G("ngIf",i.hasPreviousPage)}}function mn(a,C){if(1&a&&(n.j41(0,"nz-list-item"),n.nrm(1,"cvc-comment-display",11),n.k0s()),2&a){const i=C.$implicit;n.R7$(),n.Y8G("comment",i)}}function ln(a,C){if(1&a&&(n.j41(0,"nz-card",21)(1,"nz-list",22),n.nI1(2,"ngrxPush"),n.nI1(3,"ngrxPush"),n.DNE(4,cn,2,1,"nz-list-header",4),n.nI1(5,"ngrxPush"),n.DNE(6,mn,2,1,"ng-template",null,1,n.C5r),n.k0s()()),2&a){const i=n.sdS(7),s=n.XpG(2);n.R7$(),n.Y8G("nzDataSource",n.bMT(2,4,s.comments$))("nzLoading",n.bMT(3,6,s.loading$))("nzRenderItem",i),n.R7$(3),n.Y8G("ngIf",n.bMT(5,8,s.pageInfo$))}}function pn(a,C){if(1&a){const i=n.RV6();n.j41(0,"cvc-comment-add-form",26),n.bIt("commentAddedEvent",function(){n.eBV(i);const p=n.XpG(2);return n.Njj(p.refreshList())}),n.k0s()}if(2&a){const i=n.XpG(2);n.Y8G("subject",i.commentable)}}function _n(a,C){if(1&a&&n.nrm(0,"nz-avatar",29),2&a){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function dn(a,C){if(1&a&&(n.nrm(0,"nz-avatar",30),n.nI1(1,"uppercase")),2&a){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.displayName.charAt(0)))}}function Cn(a,C){if(1&a&&(n.DNE(0,_n,1,1,"nz-avatar",28)(1,dn,2,3,"ng-template",null,3,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&a){const i=C.$implicit,s=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",s),n.R7$(4),n.JRh(i.displayName)}}function un(a,C){if(1&a){const i=n.RV6();n.j41(0,"cvc-participant-list",27),n.nI1(1,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const h=n.XpG(2);return n.Njj(h.onCommenterSelected(p))}),n.DNE(2,Cn,5,3,"ng-template",null,2,n.C5r),n.k0s()}if(2&a){const i=n.XpG(2);n.Y8G("participantList",n.bMT(1,1,i.commenters$)||n.lJ4(3,Z))}}function zn(a,C){if(1&a&&n.nrm(0,"nz-avatar",29),2&a){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function vn(a,C){if(1&a&&(n.nrm(0,"nz-avatar",30),n.nI1(1,"uppercase")),2&a){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.displayName.charAt(0)))}}function gn(a,C){if(1&a&&(n.DNE(0,zn,1,1,"nz-avatar",28)(1,vn,2,3,"ng-template",null,3,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&a){const i=C.$implicit,s=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",s),n.R7$(4),n.JRh(i.displayName)}}function fn(a,C){if(1&a){const i=n.RV6();n.j41(0,"cvc-participant-list",31),n.nI1(1,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const h=n.XpG(2);return n.Njj(h.onMentionedUserSelected(p))}),n.DNE(2,gn,5,3,"ng-template",null,2,n.C5r),n.k0s()}if(2&a){const i=n.XpG(2);n.Y8G("participantList",n.bMT(1,1,i.mentionedUsers$)||n.lJ4(3,Z))}}function hn(a,C){if(1&a&&(n.nrm(0,"nz-avatar",33),n.j41(1,"span"),n.EFF(2),n.k0s()),2&a){const i=C.$implicit;n.Mz_("nzIcon","civic-",i.tag.displayName,""),n.R7$(2),n.SpI("",i.tag.displayName,"s")}}function Tn(a,C){if(1&a){const i=n.RV6();n.j41(0,"cvc-participant-list",32),n.nI1(1,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const h=n.XpG(2);return n.Njj(h.onMentionedRoleSelected(p))}),n.DNE(2,hn,3,3,"ng-template",null,2,n.C5r),n.k0s()}if(2&a){const i=n.XpG(2);n.Y8G("participantList",n.bMT(1,1,i.mentionedRoles$)||n.lJ4(3,Z))}}function yn(a,C){if(1&a&&(n.nrm(0,"i",35),n.nI1(1,"iconNameForSubscribableEntity"),n.j41(2,"span"),n.EFF(3),n.k0s()),2&a){const i=C.$implicit;n.Y8G("nzType",n.bMT(1,2,i.tag.tagType)),n.R7$(3),n.JRh(i.tag.displayName)}}function En(a,C){if(1&a){const i=n.RV6();n.j41(0,"cvc-participant-list",34),n.nI1(1,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const h=n.XpG(2);return n.Njj(h.onMentionedEntitySelected(p))}),n.DNE(2,yn,4,4,"ng-template",null,2,n.C5r),n.k0s()}if(2&a){const i=n.XpG(2);n.Y8G("participantList",n.bMT(1,1,i.mentionedEntities$)||n.lJ4(3,Z))}}function Dn(a,C){1&a&&(n.qex(0),n.j41(1,"nz-row",6)(2,"nz-col",12)(3,"nz-space",8),n.DNE(4,ln,8,10,"nz-card",13)(5,pn,1,1,"cvc-comment-add-form",14),n.k0s()(),n.j41(6,"nz-col",15)(7,"nz-space",16),n.DNE(8,un,4,4,"cvc-participant-list",17)(9,fn,4,4,"cvc-participant-list",18)(10,Tn,4,4,"cvc-participant-list",19)(11,En,4,4,"cvc-participant-list",20),n.k0s()()(),n.bVm()),2&a&&(n.R7$(),n.Y8G("nzGutter",16))}function On(a,C){if(1&a){const i=n.RV6();n.j41(0,"cvc-comment-add-form",26),n.bIt("commentAddedEvent",function(){n.eBV(i);const p=n.XpG();return n.Njj(p.refreshList())}),n.k0s()}if(2&a){const i=n.XpG();n.Y8G("subject",i.commentable)}}let Mn=(()=>{class a{constructor(i){this.gql=i,this.pageSize=5}ngOnInit(){this.queryRef$=this.gql.watch({subject:this.commentable,last:this.pageSize,sortBy:{column:t.G_G.Created,direction:t.UEL.Asc}});let i=this.queryRef$.valueChanges;this.pageInfo$=i.pipe((0,E.T)(({data:s})=>s.comments.pageInfo)),this.loading$=i.pipe((0,E.T)(({loading:s})=>s)),this.comments$=i.pipe((0,E.T)(({data:s})=>s.comments.edges.map(p=>p.node))),this.commenters$=i.pipe((0,E.T)(({data:s})=>s.comments.uniqueCommenters)),this.mentionedUsers$=i.pipe((0,E.T)(({data:s})=>s.comments.mentionedUsers)),this.mentionedRoles$=i.pipe((0,E.T)(({data:s})=>s.comments.mentionedRoles.map(p=>({id:`${p.entityId}-${p.tagType}`,tag:p})))),this.mentionedEntities$=i.pipe((0,E.T)(({data:s})=>s.comments.mentionedEntities.map(p=>({id:`${p.entityId}-${p.tagType}`,tag:p})))),this.unfilteredCount$=i.pipe((0,f.E)("data","comments","unfilteredCountForSubject"))}onLoadMore(i){this.queryRef$.fetchMore({variables:{last:this.pageSize,before:i}})}onCommenterSelected(i){this.queryRef$.refetch({originatingUserId:i?.id})}onMentionedUserSelected(i){this.queryRef$.refetch({mentionedUserId:i?.id})}onMentionedRoleSelected(i){if(i){let s=t.gG1[i.tag.displayName[0].toUpperCase()+i.tag.displayName.slice(1)];this.queryRef$.refetch({mentionedRole:s})}else this.queryRef$.refetch({mentionedRole:void 0})}onMentionedEntitySelected(i){this.queryRef$.refetch(i?{mentionedEntity:{entityType:i.tag.tagType,id:i.tag.entityId}}:{mentionedEntity:void 0})}refreshList(){this.queryRef$.refetch()}static#n=this.\u0275fac=function(s){return new(s||a)(n.rXU(t.y5X))};static#t=this.\u0275cmp=n.VBU({type:a,selectors:[["cvc-comment-list"]],inputs:{commentable:"commentable",creationComment:"creationComment"},decls:5,vars:5,consts:[["noComments",""],["comment",""],["itemTemplate",""],["noAvatar",""],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","24"],["nzDirection","vertical",2,"width","100%"],["nzTitle","Submission Comment",4,"nzSpaceItem"],["nzTitle","Submission Comment"],[3,"comment"],["nzSpan","18"],["nzTitle","Comments",4,"nzSpaceItem"],["id","addComment",3,"subject","commentAddedEvent",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical"],["listTitle","Commenters",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Mentioned Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Mentioned Roles",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Mentioned Entities",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["nzTitle","Comments"],["nzSize","small","nzItemLayout","horizontal",3,"nzDataSource","nzLoading","nzRenderItem"],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","link","nzSize","small","nzBlock","",3,"click"],["id","addComment",3,"commentAddedEvent","subject"],["listTitle","Commenters",3,"participantSelectedEvent","participantList"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Mentioned Users",3,"participantSelectedEvent","participantList"],["listTitle","Mentioned Roles",3,"participantSelectedEvent","participantList"],[3,"nzIcon"],["listTitle","Mentioned Entities",3,"participantSelectedEvent","participantList"],["nz-icon","",3,"nzType"]],template:function(s,p){if(1&s&&(n.DNE(0,rn,5,1,"ng-container",4)(1,Dn,12,1,"ng-container",5),n.nI1(2,"ngrxPush"),n.DNE(3,On,1,1,"ng-template",null,0,n.C5r)),2&s){const h=n.sdS(4);n.Y8G("ngIf",p.creationComment),n.R7$(),n.Y8G("ngIf",n.bMT(2,3,p.unfilteredCount$))("ngIfElse",h)}},dependencies:[e.bT,G.aO,M.c,O.Uq,O.e,S.cK,P.eE,P.Xo,P.lQ,j.Dn,I.PM,A.U5,A.Dq,z,D.T,en,e.Pc,J.L9,on.g],styles:["[_nghost-%COMP%]{display:block}nz-list-header[_ngcontent-%COMP%]{padding:0;margin:0}nz-list-header[_ngcontent-%COMP%] [nz-list-load-more][_ngcontent-%COMP%]{margin-top:-.5em;padding-bottom:.5em}"]})}return a})()},4873:(H,W,o)=>{o.d(W,{A:()=>D});var t=o(177),E=o(7529),f=o(5703),n=o(2617),e=o(9438),G=o(7685),M=o(1912),O=o(2968),S=o(6864),P=o(7169),j=o(4917),I=o(7391),A=o(5103),$=o(5154),F=o(2874),y=o(3953);let N=(()=>{class T{static#n=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275mod=y.$C({type:T});static#e=this.\u0275inj=y.G2t({imports:[t.MD,S.sC,e.Yb,I.kT,A.Y3,$.Qt,F.g9,P.W,j.i]})}return T})();var R=o(9417),x=o(8524),U=o(8927),B=o(4308),b=o(3842),Y=o(8492),V=o(5128),c=o(3617),u=o(513),_=o(3069),r=o(2983),m=o(9541);let z=(()=>{class T{static#n=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275mod=y.$C({type:T});static#e=this.\u0275inj=y.G2t({imports:[t.MD,R.X1,u.Zw,f.Ti,m.hM,U.PQ,r.V,_.$f,c.$,$.Qt,R.YN,x.qy,Y.M,b.k,P.W,V.K,B.I]})}return T})(),D=(()=>{class T{static#n=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275mod=y.$C({type:T});static#e=this.\u0275inj=y.G2t({imports:[t.MD,u.Zw,E.f3,f.Ti,n.rD,A.Y3,j.i,e.Yb,G.pc,M.i3,z,O.K,N]})}return T})()},5566:(H,W,o)=>{o.d(W,{K:()=>c});var t=o(3953),E=o(1413),f=o(9145),n=o(5964),e=o(6977),G=o(6354),M=o(9172),O=o(4608),S=o(9199),P=o(1305),j=o(177),I=o(9417),A=o(1774),$=o(9541),F=o(2983),y=o(3069),N=o(1011),R=o(4126);const x=()=>["#","@","$"],U=()=>({minRows:4,maxRows:100});function B(u,_){if(1&u&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.bVm()),2&u){const r=_.$implicit;t.R7$(2),t.JRh(r.displayName)}}function b(u,_){1&u&&(t.qex(0),t.nrm(1,"nz-spin",8),t.bVm())}function Y(u,_){if(1&u&&(t.qex(0),t.nrm(1,"cvc-comment-body",9),t.bVm()),2&u){const r=_.ngIf;t.R7$(),t.Y8G("commentBodySegments",r)}}function V(u,_){if(1&u){const r=t.RV6();t.qex(0),t.j41(1,"nz-tabset",1)(2,"nz-tab",2)(3,"nz-mention",3),t.bIt("nzOnSearchChange",function(z){t.eBV(r);const D=t.XpG();return t.Njj(D.onSearchChange(z))})("nzOnSelect",function(){t.eBV(r);const z=t.XpG();return t.Njj(z.suggestions=[])}),t.j41(4,"textarea",4),t.mxI("ngModelChange",function(z){t.eBV(r);const D=t.XpG();return t.DH7(D.commentText,z)||(D.commentText=z),t.Njj(z)}),t.bIt("ngModelChange",function(z){t.eBV(r);const D=t.XpG();return t.Njj(D.onCommentChanged(z))}),t.k0s(),t.DNE(5,B,3,1,"ng-container",5),t.k0s()(),t.j41(6,"nz-tab",6),t.bIt("nzClick",function(){t.eBV(r);const z=t.XpG();return t.Njj(z.onPreviewButtonClicked())}),t.DNE(7,b,2,0,"ng-container",7),t.nI1(8,"ngrxPush"),t.DNE(9,Y,2,1,"ng-container",7),t.nI1(10,"ngrxPush"),t.k0s()(),t.bVm()}if(2&u){const r=_.ngrxLet,m=t.XpG();t.R7$(),t.Y8G("nzAnimated",!1),t.R7$(2),t.Y8G("nzSuggestions",m.suggestions)("nzPrefix",t.lJ4(14,x))("nzValueWith",m.autoCompleteValueFor),t.R7$(),t.Y8G("placeholder",r&&r.canCurate?"Enter comment (minimum length 10. Use @ to mention users; # to link entities)":"Please sign in")("nzAutosize",t.lJ4(15,U)),t.R50("ngModel",m.commentText),t.BMQ("disabled",!r||!r.canCurate||null),t.R7$(3),t.Y8G("ngIf",t.bMT(8,10,m.previewLoading$)),t.R7$(2),t.Y8G("ngIf",t.bMT(10,12,m.previewComment$))}}let c=(()=>{class u{constructor(r,m,z,D){this.previewCommentGql=r,this.userTypeaheadGql=m,this.entityTypeaheadGql=z,this.viewerService=D,this.commentChange=new t.bkB,this.destroy$=new E.B,this.suggestions=[],this.roleSuggestions=[{displayName:"admins",value:"admins"},{displayName:"editors",value:"editors"}]}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.commentText=this.comment,this.userTypeaheadQueryRef$=this.userTypeaheadGql.watch({queryTerm:""}),this.userTypeaheadQueryRef$.valueChanges.pipe((0,O.E)("data","userTypeahead"),(0,n.p)(S.kP),(0,e.Q)(this.destroy$)).subscribe(r=>this.suggestions=r.map(m=>({displayName:m.username,value:m.username}))),this.entityTypeaheadQueryRef$=this.entityTypeaheadGql.watch({queryTerm:""}),this.entityTypeaheadQueryRef$.valueChanges.pipe((0,O.E)("data","entityTypeahead"),(0,n.p)(S.kP),(0,e.Q)(this.destroy$)).subscribe(r=>this.suggestions=r.map(m=>({displayName:m.displayName,value:this.tagForEntityTypeAndId(m.tagType,m.entityId)})))}ngOnChanges(){this.commentText=this.comment}autoCompleteValueFor(r){return r.value}tagForEntityTypeAndId(r,m){switch(r){case f.lBA.Feature:return`FID${m}`;case f.lBA.Variant:return`VID${m}`;case f.lBA.VariantGroup:return`VGID${m}`;case f.lBA.EvidenceItem:return`EID${m}`;case f.lBA.Assertion:return`AID${m}`;case f.lBA.Revision:return`RID${m}`;case f.lBA.MolecularProfile:return`MPID${m}`;case f.lBA.Role:return Object.keys(f.gG1)[m]}}resetForm(){this.commentText=""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onPreviewButtonClicked(){this.commentText&&(this.previewComment$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,O.E)("data","previewCommentText"),(0,n.p)(S.kP)),this.previewLoading$=this.previewCommentGql.watch({commentText:this.commentText}).valueChanges.pipe((0,G.T)(({loading:r})=>r),(0,M.Z)(!0)))}onSearchChange({value:r,prefix:m}){"@"===m?this.userTypeaheadQueryRef$.refetch({queryTerm:r}):"$"==m?this.suggestions=this.roleSuggestions.filter(z=>z.value.startsWith(r)):this.entityTypeaheadQueryRef$.refetch({queryTerm:r})}onCommentChanged(r){this.commentChange.emit(r)}static#n=this.\u0275fac=function(m){return new(m||u)(t.rXU(f.WGp),t.rXU(f.bPL),t.rXU(f.paL),t.rXU(P.q))};static#t=this.\u0275cmp=t.VBU({type:u,selectors:[["cvc-comment-input-form"]],inputs:{comment:"comment"},outputs:{commentChange:"commentChange"},features:[t.OA$],decls:1,vars:1,consts:[[4,"ngrxLet"],[3,"nzAnimated"],["nzTitle","Write"],["nzNotFoundContent","No matches...",3,"nzOnSearchChange","nzOnSelect","nzSuggestions","nzPrefix","nzValueWith"],["nzMentionTrigger","","nz-input","",2,"width","100%",3,"ngModelChange","placeholder","nzAutosize","ngModel"],[4,"nzMentionSuggestion"],["nzTitle","Preview",3,"nzClick"],[4,"ngIf"],["nzTip","Loading..."],[3,"commentBodySegments"]],template:function(m,z){1&m&&t.DNE(0,V,11,16,"ng-container",0),2&m&&t.Y8G("ngrxLet",z.viewer$)},dependencies:[j.bT,I.me,I.BC,A.Nj,$.JZ,$.rE,F.a,y.O2,y.sJ,y.yZ,N.Sy,N.c9,I.vS,R.p,A.L9],styles:[":host{display:block}nz-space{width:100%}nz-form-item:last-of-type{margin-bottom:0}\n"],encapsulation:2})}return u})()},6864:(H,W,o)=>{o.d(W,{OW:()=>x,fL:()=>b,fS:()=>B,sC:()=>V,sf:()=>R});var t=o(3953),E=o(6939),f=o(1413),n=o(6977),e=o(7806),G=o(8203);const M=["*"];function O(c,u){1&c&&t.SdG(0)}const S=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],P=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"];function j(c,u){if(1&c&&(t.qex(0),t.EFF(1),t.bVm()),2&c){const _=t.XpG(2);t.R7$(),t.JRh(_.nzAuthor)}}function I(c,u){if(1&c&&(t.j41(0,"span",4),t.DNE(1,j,2,1,"ng-container",8),t.k0s()),2&c){const _=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",_.nzAuthor)}}function A(c,u){if(1&c&&(t.qex(0),t.EFF(1),t.bVm()),2&c){const _=t.XpG(2);t.R7$(),t.JRh(_.nzDatetime)}}function $(c,u){if(1&c&&(t.j41(0,"span",5),t.DNE(1,A,2,1,"ng-container",8),t.k0s()),2&c){const _=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",_.nzDatetime)}}function F(c,u){}function y(c,u){if(1&c&&(t.j41(0,"li")(1,"span"),t.DNE(2,F,0,0,"ng-template",9),t.k0s()()),2&c){const _=u.$implicit;t.R7$(2),t.Y8G("nzCommentActionHost",_.content)}}function N(c,u){if(1&c&&(t.j41(0,"ul",6),t.Z7z(1,y,3,1,"li",null,t.fX1),t.k0s()),2&c){const _=t.XpG();t.R7$(),t.Dyx(_.actions)}}let R=(()=>{class c{static#n=this.\u0275fac=function(r){return new(r||c)};static#t=this.\u0275dir=t.FsC({type:c,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"],standalone:!0})}return c})(),x=(()=>{class c{static#n=this.\u0275fac=function(r){return new(r||c)};static#t=this.\u0275dir=t.FsC({type:c,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"],standalone:!0})}return c})(),U=(()=>{class c extends E.I3{constructor(_,r){super(_,r)}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}ngAfterViewInit(){this.attach(this.nzCommentActionHost)}static#n=this.\u0275fac=function(r){return new(r||c)(t.rXU(t.OM3),t.rXU(t.c1b))};static#t=this.\u0275dir=t.FsC({type:c,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],standalone:!0,features:[t.Vt3]})}return c})(),B=(()=>{class c{get content(){return this.contentPortal}constructor(_){this.viewContainerRef=_,this.contentPortal=null}ngOnInit(){this.contentPortal=new E.VA(this.implicitContent,this.viewContainerRef)}static#n=this.\u0275fac=function(r){return new(r||c)(t.rXU(t.c1b))};static#t=this.\u0275cmp=t.VBU({type:c,selectors:[["nz-comment-action"]],viewQuery:function(r,m){if(1&r&&t.GBs(t.C4Q,7),2&r){let z;t.mGM(z=t.lsd())&&(m.implicitContent=z.first)}},exportAs:["nzCommentAction"],standalone:!0,features:[t.aNF],ngContentSelectors:M,decls:1,vars:0,template:function(r,m){1&r&&(t.NAR(),t.DNE(0,O,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return c})(),b=(()=>{class c{constructor(_,r){this.cdr=_,this.directionality=r,this.dir="ltr",this.destroy$=new f.B}ngOnInit(){this.directionality.change?.pipe((0,n.Q)(this.destroy$)).subscribe(_=>{this.dir=_,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(r){return new(r||c)(t.rXU(t.gRc),t.rXU(G.dS,8))};static#t=this.\u0275cmp=t.VBU({type:c,selectors:[["nz-comment"]],contentQueries:function(r,m,z){if(1&r&&t.wni(z,B,4),2&r){let D;t.mGM(D=t.lsd())&&(m.actions=D)}},hostVars:4,hostBindings:function(r,m){2&r&&t.AVh("ant-comment",!0)("ant-comment-rtl","rtl"===m.dir)},inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],standalone:!0,features:[t.aNF],ngContentSelectors:P,decls:11,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],[1,"ant-comment-content-author-name"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[1,"ant-comment-nested"],[4,"nzStringTemplateOutlet"],[3,"nzCommentActionHost"]],template:function(r,m){1&r&&(t.NAR(S),t.j41(0,"div",0)(1,"div",1),t.SdG(2),t.k0s(),t.j41(3,"div",2)(4,"div",3),t.DNE(5,I,2,1,"span",4)(6,$,2,1,"span",5),t.k0s(),t.SdG(7,1),t.DNE(8,N,3,0,"ul",6),t.k0s()(),t.j41(9,"div",7),t.SdG(10,2),t.k0s()),2&r&&(t.R7$(5),t.vxM(m.nzAuthor?5:-1),t.R7$(),t.vxM(m.nzDatetime?6:-1),t.R7$(2),t.vxM(null!=m.actions&&m.actions.length?8:-1))},dependencies:[e.C,e.m,U],encapsulation:2,changeDetection:0})}return c})(),V=(()=>{class c{static#n=this.\u0275fac=function(r){return new(r||c)};static#t=this.\u0275mod=t.$C({type:c});static#e=this.\u0275inj=t.G2t({imports:[b]})}return c})()},2874:(H,W,o)=>{o.d(W,{PV:()=>K,g9:()=>J});var t=o(4707),E=o(851),f=o(7987),n=o(177),e=o(3953),G=o(1413),M=o(6977),O=o(1594),S=o(980),P=o(513),j=o(713),I=o(6042),A=o(6841),$=o(7806),F=o(5463),y=o(317),N=o(1377),R=o(5103),x=o(5154),U=o(8203),B=o(6389),b=o(5930);const Y=["okBtn"],V=["cancelBtn"];function c(d,k){1&d&&(e.j41(0,"div",6),e.nrm(1,"span",14),e.k0s())}function u(d,k){if(1&d&&(e.qex(0),e.j41(1,"span",16),e.nrm(2,"span",17),e.k0s(),e.bVm()),2&d){const l=k.$implicit;e.R7$(2),e.Y8G("nzType",l||"exclamation-circle")}}function _(d,k){if(1&d&&(e.qex(0),e.DNE(1,u,3,1,"ng-container",10),e.j41(2,"div",15),e.EFF(3),e.k0s(),e.bVm()),2&d){const l=e.XpG(2);e.R7$(),e.Y8G("nzStringTemplateOutlet",l.nzIcon),e.R7$(2),e.JRh(l.nzTitle)}}function r(d,k){if(1&d&&e.EFF(0),2&d){const l=e.XpG(2);e.SpI(" ",l.nzCancelText," ")}}function m(d,k){1&d&&(e.EFF(0),e.nI1(1,"nzI18n")),2&d&&e.SpI(" ",e.bMT(1,1,"Modal.cancelText")," ")}function z(d,k){if(1&d&&e.EFF(0),2&d){const l=e.XpG(2);e.SpI(" ",l.nzOkText," ")}}function D(d,k){1&d&&(e.EFF(0),e.nI1(1,"nzI18n")),2&d&&e.SpI(" ",e.bMT(1,1,"Modal.okText")," ")}function T(d,k){if(1&d){const l=e.RV6();e.j41(0,"div",4)(1,"div",5),e.DNE(2,c,2,0,"div",6),e.j41(3,"div",7)(4,"div")(5,"div",8)(6,"div",9),e.DNE(7,_,4,2,"ng-container",10),e.k0s(),e.j41(8,"div",11)(9,"button",12,1),e.bIt("click",function(){e.eBV(l);const g=e.XpG();return e.Njj(g.onCancel())}),e.DNE(11,r,1,1)(12,m,2,3),e.k0s(),e.j41(13,"button",13,2),e.bIt("click",function(){e.eBV(l);const g=e.XpG();return e.Njj(g.onConfirm())}),e.DNE(15,z,1,1)(16,D,2,3),e.k0s()()()()()()()}if(2&d){const l=e.XpG();e.AVh("ant-popover-rtl","rtl"===l.dir),e.Y8G("cdkTrapFocusAutoCapture",null!==l.nzAutoFocus)("ngClass",l._classMap)("ngStyle",l.nzOverlayStyle)("@.disabled",!(null==l.noAnimation||!l.noAnimation.nzNoAnimation))("nzNoAnimation",null==l.noAnimation?null:l.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),e.R7$(2),e.vxM(l.nzPopconfirmShowArrow?2:-1),e.R7$(5),e.Y8G("nzStringTemplateOutlet",l.nzTitle),e.R7$(2),e.Y8G("nzSize","small"),e.BMQ("cdkFocusInitial","cancel"===l.nzAutoFocus||null),e.R7$(2),e.vxM(l.nzCancelText?11:12),e.R7$(2),e.Y8G("nzSize","small")("nzType","danger"!==l.nzOkType?l.nzOkType:"primary")("nzDanger",l.nzOkDanger||"danger"===l.nzOkType)("nzLoading",l.confirmLoading)("disabled",l.nzOkDisabled),e.BMQ("cdkFocusInitial","ok"===l.nzAutoFocus||null),e.R7$(2),e.vxM(l.nzOkText?15:16)}}let K=(()=>{class d extends x.ME{getProxyPropertyMap(){return{nzOkText:["nzOkText",()=>this.nzOkText],nzOkType:["nzOkType",()=>this.nzOkType],nzOkDanger:["nzOkDanger",()=>this.nzOkDanger],nzOkDisabled:["nzOkDisabled",()=>this.nzOkDisabled],nzCancelText:["nzCancelText",()=>this.nzCancelText],nzBeforeConfirm:["nzBeforeConfirm",()=>this.nzBeforeConfirm],nzCondition:["nzCondition",()=>this.nzCondition],nzIcon:["nzIcon",()=>this.nzIcon],nzPopconfirmShowArrow:["nzPopconfirmShowArrow",()=>this.nzPopconfirmShowArrow],nzPopconfirmBackdrop:["nzBackdrop",()=>this.nzPopconfirmBackdrop],nzAutoFocus:["nzAutoFocus",()=>this.nzAutofocus],...super.getProxyPropertyMap()}}constructor(){super(X),this._nzModuleName="popconfirm",this.trigger="click",this.placement="top",this.nzCondition=!1,this.nzPopconfirmShowArrow=!0,this.nzPopconfirmBackdrop=!1,this.nzAutofocus=null,this.visibleChange=new e.bkB,this.nzOnCancel=new e.bkB,this.nzOnConfirm=new e.bkB}createComponent(){super.createComponent(),this.component.nzOnCancel.pipe((0,M.Q)(this.destroy$)).subscribe(()=>{this.nzOnCancel.emit()}),this.component.nzOnConfirm.pipe((0,M.Q)(this.destroy$)).subscribe(()=>{this.nzOnConfirm.emit()})}static#n=this.\u0275fac=function(v){return new(v||d)};static#t=this.\u0275dir=e.FsC({type:d,selectors:[["","nz-popconfirm",""]],hostVars:2,hostBindings:function(v,g){2&v&&e.AVh("ant-popover-open",g.visible)},inputs:{arrowPointAtCenter:[2,"nzPopconfirmArrowPointAtCenter","arrowPointAtCenter",e.L39],title:[0,"nzPopconfirmTitle","title"],directiveTitle:[0,"nz-popconfirm","directiveTitle"],trigger:[0,"nzPopconfirmTrigger","trigger"],placement:[0,"nzPopconfirmPlacement","placement"],origin:[0,"nzPopconfirmOrigin","origin"],mouseEnterDelay:[0,"nzPopconfirmMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopconfirmMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopconfirmOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopconfirmOverlayStyle","overlayStyle"],visible:[0,"nzPopconfirmVisible","visible"],nzOkText:"nzOkText",nzOkType:"nzOkType",nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",e.L39],nzOkDanger:[2,"nzOkDanger","nzOkDanger",e.L39],nzCancelText:"nzCancelText",nzBeforeConfirm:"nzBeforeConfirm",nzIcon:"nzIcon",nzCondition:[2,"nzCondition","nzCondition",e.L39],nzPopconfirmShowArrow:[2,"nzPopconfirmShowArrow","nzPopconfirmShowArrow",e.L39],nzPopconfirmBackdrop:"nzPopconfirmBackdrop",nzAutofocus:"nzAutofocus"},outputs:{visibleChange:"nzPopconfirmVisibleChange",nzOnCancel:"nzOnCancel",nzOnConfirm:"nzOnConfirm"},exportAs:["nzPopconfirm"],standalone:!0,features:[e.GFd,e.Vt3]})}return(0,t.Cg)([(0,I.H4)()],d.prototype,"nzPopconfirmBackdrop",void 0),(0,t.Cg)([(0,I.H4)()],d.prototype,"nzAutofocus",void 0),d})(),X=(()=>{class d extends x.VJ{constructor(l,v,g,L,Q){super(l,g,Q),this.elementRef=v,this.nzCondition=!1,this.nzPopconfirmShowArrow=!0,this.nzOkType="primary",this.nzOkDanger=!1,this.nzOkDisabled=!1,this.nzAutoFocus=null,this.nzBeforeConfirm=null,this.nzOnCancel=new G.B,this.nzOnConfirm=new G.B,this._trigger="click",this.elementFocusedBeforeModalWasOpened=null,this._prefix="ant-popover",this.confirmLoading=!1,this.document=L}ngOnDestroy(){super.ngOnDestroy(),this.nzOnCancel.complete(),this.nzOnConfirm.complete()}show(){this.nzCondition?this.onConfirm():(this.capturePreviouslyFocusedElement(),super.show())}hide(){super.hide(),this.restoreFocus()}handleConfirm(){this.nzOnConfirm.next(),super.hide()}onCancel(){this.nzOnCancel.next(),super.hide()}onConfirm(){if(this.nzBeforeConfirm){const l=(0,y.cG)(this.nzBeforeConfirm()).pipe((0,O.$)());this.confirmLoading=!0,l.pipe((0,S.j)(()=>{this.confirmLoading=!1,this.cdr.markForCheck()}),(0,M.Q)(this.nzVisibleChange),(0,M.Q)(this.destroy$)).subscribe(v=>{v&&this.handleConfirm()})}else this.handleConfirm()}capturePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement)}restoreFocus(){const l=this.elementFocusedBeforeModalWasOpened;if(l&&"function"==typeof l.focus){const v=this.document.activeElement,g=this.elementRef.nativeElement;(!v||v===this.document.body||v===g||g.contains(v))&&l.focus()}}static#n=this.\u0275fac=function(v){return new(v||d)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(U.dS,8),e.rXU(n.qQ,8),e.rXU(A.z,9))};static#t=this.\u0275cmp=e.VBU({type:d,selectors:[["nz-popconfirm"]],viewQuery:function(v,g){if(1&v&&(e.GBs(Y,5,e.aKT),e.GBs(V,5,e.aKT)),2&v){let L;e.mGM(L=e.lsd())&&(g.okBtn=L),e.mGM(L=e.lsd())&&(g.cancelBtn=L)}},exportAs:["nzPopconfirmComponent"],standalone:!0,features:[e.Vt3,e.aNF],decls:2,vars:6,consts:[["overlay","cdkConnectedOverlay"],["cancelBtn",""],["okBtn",""],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter"],["cdkTrapFocus","",1,"ant-popover",3,"cdkTrapFocusAutoCapture","ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-inner"],[1,"ant-popover-inner-content"],[1,"ant-popover-message"],[4,"nzStringTemplateOutlet"],[1,"ant-popover-buttons"],["nz-button","",3,"click","nzSize"],["nz-button","",3,"click","nzSize","nzType","nzDanger","nzLoading","disabled"],[1,"ant-popover-arrow-content"],[1,"ant-popover-message-title"],[1,"ant-popover-message-icon"],["nz-icon","","nzTheme","fill",3,"nzType"]],template:function(v,g){if(1&v){const L=e.RV6();e.DNE(0,T,17,20,"ng-template",3,0,e.C5r),e.bIt("overlayOutsideClick",function(w){return e.eBV(L),e.Njj(g.onClickOutside(w))})("detach",function(){return e.eBV(L),e.Njj(g.hide())})("positionChange",function(w){return e.eBV(L),e.Njj(g.onPositionChange(w))})}2&v&&e.Y8G("cdkConnectedOverlayHasBackdrop",g.nzBackdrop)("cdkConnectedOverlayOrigin",g.origin)("cdkConnectedOverlayPositions",g._positions)("cdkConnectedOverlayOpen",g._visible)("cdkConnectedOverlayPush",g.cdkConnectedOverlayPush)("nzArrowPointAtCenter",g.nzArrowPointAtCenter)},dependencies:[f.z_,f.WB,F.$_,F.vT,E.Pd,E.kB,n.YU,n.B3,A.z,$.C,$.m,R.Y3,R.Dn,P.Zw,P.aO,B.c,b.p,N.bP,N.Vc],encapsulation:2,data:{animation:[j.uX]},changeDetection:0})}return d})(),J=(()=>{class d{static#n=this.\u0275fac=function(v){return new(v||d)};static#t=this.\u0275mod=e.$C({type:d});static#e=this.\u0275inj=e.G2t({imports:[X]})}return d})()}}]); \ No newline at end of file diff --git a/server/public/2664.7b8be85bc1082b05.js b/server/public/2664.7b8be85bc1082b05.js new file mode 100644 index 000000000..dc88ac98a --- /dev/null +++ b/server/public/2664.7b8be85bc1082b05.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2664],{6440:(nt,x,i)=>{i.d(x,{r:()=>D});var n=i(3953),u=i(177),t=i(1188),m=i(5699),f=i(5103),O=i(1236),l=i(9199),h=i(6354),C=i(5964),y=i(9145),ot=i(5703),R=i(7529),M=i(2e3),Y=i(7679),S=i(9162),j=i(1774);const E=(s,g)=>({displayName:s,profileImagePath:g});function $(s,g){if(1&s&&(n.nrm(0,"cvc-user-avatar",12),n.j41(1,"span",13),n.EFF(2),n.k0s()),2&s){const c=n.XpG().ngIf;n.Y8G("user",n.l_i(2,E,c.name,c.profileImagePath)),n.R7$(2),n.JRh(c.name)}}function N(s,g){if(1&s&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&s){const c=g.ngIf;n.R7$(),n.JRh(c)}}function k(s,g){if(1&s&&(n.qex(0),n.j41(1,"cvc-link-tag",14),n.EFF(2),n.k0s(),n.bVm()),2&s){const c=n.XpG().ngIf;n.R7$(),n.Y8G("href",c.url),n.R7$(),n.SpI(" ",c.name," ")}}function b(s,g){if(1&s&&(n.qex(0),n.j41(1,"nz-card",5),n.DNE(2,$,3,5,"ng-template",null,2,n.C5r),n.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),n.DNE(8,N,2,1,"span",9),n.k0s()()()(),n.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),n.DNE(11,k,3,2,"ng-container",9),n.k0s()()(),n.bVm()),2&s){const c=g.ngIf,p=n.sdS(3);n.XpG();const v=n.sdS(4),I=n.sdS(6);n.R7$(),n.Y8G("nzTitle",p),n.R7$(7),n.Y8G("ngIf",c.description)("ngIfElse",v),n.R7$(),n.Y8G("nzColumn",2),n.R7$(2),n.Y8G("ngIf",c.url)("ngIfElse",I)}}function A(s,g){1&s&&n.EFF(0," Organization has not provided a description.\n")}function X(s,g){1&s&&n.EFF(0," -- ")}let V=(()=>{class s{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,h.T)(({data:c})=>c?.organization),(0,C.p)(l.kP))}static#t=this.\u0275fac=function(p){return new(p||s)(n.rXU(y.I8L))};static#e=this.\u0275cmp=n.VBU({type:s,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(p,v){1&p&&(n.j41(0,"div",3),n.DNE(1,b,12,6,"ng-container",4),n.nI1(2,"ngrxPush"),n.k0s(),n.DNE(3,A,1,0,"ng-template",null,0,n.C5r)(5,X,1,0,"ng-template",null,1,n.C5r)),2&p&&(n.R7$(),n.Y8G("ngIf",n.bMT(2,1,v.org$)))},dependencies:[u.bT,ot.cK,R.Uq,R.e,M.xA,M.gr,Y.a,S.G,j.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return s})();function L(s,g){}function B(s,g){if(1&s&&(n.qex(0),n.j41(1,"a",5),n.DNE(2,L,0,0,"ng-template",6),n.k0s(),n.bVm()),2&s){const c=n.XpG(),p=n.sdS(2);n.R7$(),n.Mz_("routerLink","/organizations/",c.org.id,""),n.R7$(),n.Y8G("ngTemplateOutlet",p)}}function U(s,g){}function H(s,g){if(1&s&&n.nrm(0,"cvc-organization-popover",9),2&s){const c=n.XpG(3);n.Y8G("orgId",c.org.id)}}function F(s,g){if(1&s&&n.DNE(0,H,1,1,"cvc-organization-popover",8),2&s){const c=n.XpG(2);n.Y8G("ngIf",c.enablePopover)}}function G(s,g){if(1&s&&(n.j41(0,"nz-tag",7),n.DNE(1,U,0,0,"ng-template",6),n.k0s(),n.DNE(2,F,1,1,"ng-template",null,3,n.C5r)),2&s){const c=n.sdS(3);n.XpG();const p=n.sdS(6);n.Y8G("nzPopoverContent",c),n.R7$(),n.Y8G("ngTemplateOutlet",p)}}function W(s,g){}function J(s,g){if(1&s&&n.DNE(0,W,0,0,"ng-template",6),2&s){n.XpG();const c=n.sdS(2);n.Y8G("ngTemplateOutlet",c)}}function Q(s,g){if(1&s&&(n.nrm(0,"i",10),n.EFF(1)),2&s){const c=n.XpG();n.R7$(),n.SpI(" ",c.org.name,"\n")}}let D=(()=>{class s{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}static#t=this.\u0275fac=function(p){return new(p||s)};static#e=this.\u0275cmp=n.VBU({type:s,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(p,v){if(1&p&&n.DNE(0,B,3,3,"ng-container",4)(1,G,4,2,"ng-template",null,0,n.C5r)(3,J,1,1,"ng-template",null,1,n.C5r)(5,Q,2,1,"ng-template",null,2,n.C5r),2&p){const I=n.sdS(4);n.Y8G("ngIf",v.linked)("ngIfElse",I)}},dependencies:[u.bT,u.T3,t.Wk,m.s,f.Dn,O.L_,V],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return s})()},3821:(nt,x,i)=>{i.d(x,{L:()=>m});var n=i(1413),u=i(3386),t=i(3953);let m=(()=>{class f{set cvcAutoHeightDiv(l){const h=parseInt(l,0);!isNaN(h)&&h>=0&&(this._offset=h)}set cvcAutoHeightTarget(l){this._target=l}get cvcAutoHeightTarget(){return this._target}constructor(l,h,C){this.el=l,this.zone=h,this.cdr=C,this._offset=0,this._target="parent",this.divTop=0,this.onResized$=new n.B,this.resizeObserver=new ResizeObserver(y=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,u.c)(10)).subscribe(y=>{this.resizeToFitContent()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}ngAfterViewInit(){Promise.resolve().then(()=>{this.resizeToFitContent()})}resizeToFitContent(){const l=this.el.nativeElement,h=l.parentElement.getBoundingClientRect().height;l&&l.getBoundingClientRect&&l.getBoundingClientRect().top&&(this.divTop=l.getBoundingClientRect().top),l&&("parent"===this._target?l.style.height=h:"viewport"===this._target&&(l.getBoundingClientRect&&l.getBoundingClientRect().top&&(this.divTop=l.getBoundingClientRect().top),l.style.height=`calc(100vh - ${this.divTop+this._offset}px)`),l.style["overflow-y"]="auto",this.cdr.detectChanges())}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}static#t=this.\u0275fac=function(h){return new(h||f)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc))};static#e=this.\u0275dir=t.FsC({type:f,selectors:[["","cvcAutoHeightDiv",""]],inputs:{cvcAutoHeightDiv:"cvcAutoHeightDiv",cvcAutoHeightTarget:"cvcAutoHeightTarget"}})}return f})()},4967:(nt,x,i)=>{i.r(x),i.d(x,{SourcesModule:()=>pe});var n=i(177),u=i(1188),t=i(3953),m=i(3062),f=i(5103),O=i(9765),l=i(1635),h=i(9417),C=i(1226),y=i(9894);const R=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Submit Source Suggestion"}},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!1,description:"Select a Molecular Profile for this Source Suggestion, if applicable.",watchVariantMolecularProfileId:!0}},{key:"diseaseId",type:"disease-select",props:{}},{key:"sourceId",type:"source-select",wrappers:["form-field"],props:{required:!0}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Source Suggestion"}}]}]}];var M=i(6354),S=i(9145),j=i(4222),E=i(8927),$=i(3617),N=i(8524),k=i(8721),b=i(1774);function A(e,r){if(1&e&&t.nrm(0,"nz-alert",7),2&e){t.XpG();const o=t.sdS(3);t.Y8G("nzMessage",o)}}function X(e,r){1&e&&(t.j41(0,"p")(1,"strong"),t.EFF(2," This Source has been marked as fully curated by an Editor. Please double check that you still wish to submit a new Suggestion for it. "),t.k0s()())}function V(e,r){if(1&e&&(t.qex(0),t.DNE(1,A,1,1,"nz-alert",6)(2,X,3,0,"ng-template",null,1,t.C5r),t.nrm(4,"br"),t.bVm()),2&e){const o=r.ngIf;t.R7$(),t.Y8G("ngIf",o)}}function L(e,r){if(1&e&&t.nrm(0,"nz-alert",7),2&e){t.XpG();const o=t.sdS(3);t.Y8G("nzMessage",o)}}function B(e,r){1&e&&(t.j41(0,"p")(1,"strong"),t.EFF(2," This Source has already been Suggested. Please double check that you still wish to submit a new Suggestion for it. "),t.k0s()())}function U(e,r){if(1&e&&(t.qex(0),t.DNE(1,L,1,1,"nz-alert",6)(2,B,3,0,"ng-template",null,1,t.C5r),t.nrm(4,"br"),t.bVm()),2&e){const o=r.ngIf;t.R7$(),t.Y8G("ngIf",o)}}function H(e,r){if(1&e&&(t.EFF(0," You will be redirected shortly or you may view your Source Suggestion "),t.j41(1,"a",8),t.EFF(2,"here"),t.k0s(),t.EFF(3,". ")),2&e){const o=t.XpG();t.R7$(),t.Y8G("href",o.url,t.B4B)}}let F=class et{constructor(r,o,a){this.submitSourceGQL=r,this.sourceChecksGQL=o,this.form=new h.J3({}),this.model={fields:{}},this.fields=R,this.submitSourceMutator=new C.E(a)}ngOnInit(){this.url="/curation/queues/pending-sources",this.suggestionChecksQueryRef=this.sourceChecksGQL.watch({sourceId:0}),this.fullyCuratedSource$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,M.T)(r=>r.data?.source?.fullyCurated),(0,y.s)(this)),this.existingSourceSuggestion$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,M.T)(r=>{const o=r.data?.sourceSuggestions?.filteredCount;return!!o&&o>0}),(0,y.s)(this))}onModelChange(r){r.fields.sourceId!=this.selectedSourceId&&(this.selectedSourceId=r.fields.sourceId,this.suggestionChecksQueryRef?.refetch(this.selectedSourceId?{sourceId:this.selectedSourceId}:{sourceId:0}))}onSubmit(r){const o=function Y(e){const r=e.fields;if(![e.comment,r.sourceId].find(a=>void 0===a))return{sourceId:r.sourceId,molecularProfileId:r.molecularProfileId,diseaseId:r.diseaseId,organizationId:e.organizationId,comment:e.comment}}(r);o&&(this.mutationState=this.submitSourceMutator.mutate(this.submitSourceGQL,{input:o},void 0,a=>{this.newSourceId=a.suggestSource?.sourceSuggestion.id}))}static#t=this.\u0275fac=function(o){return new(o||et)(t.rXU(S.gtA),t.rXU(S.bOY),t.rXU(j.N))};static#e=this.\u0275cmp=t.VBU({type:et,selectors:[["cvc-source-submit-form"]],decls:9,vars:13,consts:[["success",""],["fullyCuratedAlert",""],[4,"ngIf"],["entityType","Source",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model"],["nzType","warning",3,"nzMessage",4,"ngIf"],["nzType","warning",3,"nzMessage"],[3,"href"]],template:function(o,a){if(1&o){const d=t.RV6();t.DNE(0,V,5,1,"ng-container",2),t.nI1(1,"ngrxPush"),t.DNE(2,U,5,1,"ng-container",2),t.nI1(3,"ngrxPush"),t.j41(4,"cvc-form-submission-status-display",3),t.DNE(5,H,4,1,"ng-template",null,0,t.C5r),t.j41(7,"form",4),t.bIt("ngSubmit",function(){return t.eBV(d),t.Njj(a.onSubmit(a.model))}),t.j41(8,"formly-form",5),t.bIt("modelChange",function(_){return t.eBV(d),a.model=_,t.Njj(a.onModelChange(_))}),t.k0s()()()}if(2&o){const d=t.sdS(6);t.Y8G("ngIf",t.bMT(1,9,a.fullyCuratedSource$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,11,a.existingSourceSuggestion$)),t.R7$(2),t.Y8G("mutationState",a.mutationState)("redirectUrl",a.url)("successMessage",d),t.R7$(3),t.Y8G("formGroup",a.form),t.R7$(),t.Y8G("form",a.form)("fields",a.fields)("model",a.model)}},dependencies:[n.bT,E.CA,$.Y,h.qT,h.cb,h.j4,N.aF,k.G,b.L9]})};F=(0,l.Cg)([(0,y.d)()],F);var G=i(3075);let W=(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-source-add-page"]],decls:11,vars:3,consts:[["displayName","New"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[1,"content"]],template:function(a,d){1&a&&(t.nrm(0,"cvc-section-navigation",0),t.j41(1,"nz-page-header",1)(2,"nz-page-header-title"),t.nrm(3,"i",2),t.nI1(4,"entityColor"),t.EFF(5," Add a Source Suggestion "),t.k0s(),t.j41(6,"nz-page-header-subtitle"),t.EFF(7," Submit a promising source for curation "),t.k0s(),t.j41(8,"nz-page-header-content")(9,"div",3),t.nrm(10,"cvc-source-submit-form"),t.k0s()()()),2&a&&(t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(4,1,"Assertion")))},dependencies:[m.WB,m.k9,m.CO,m.zR,f.Dn,O.n,F,G.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return e})();var J=i(1413),Q=i(4412),D=i(9172),s=i(6977),g=i(4608),c=i(1305),p=i(513),v=i(6389),I=i(5930),it=i(5699),at=i(7679),ct=i(9945);function lt(e,r){1&e&&(t.j41(0,"button",11),t.nrm(1,"i",12),t.EFF(2," Suggest a New Source "),t.k0s())}function gt(e,r){if(1&e&&(t.qex(0),t.DNE(1,lt,3,0,"button",10),t.bVm()),2&e){const o=r.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function pt(e,r){if(1&e&&t.DNE(0,gt,2,1,"ng-container",9),2&e){const o=t.XpG(2);t.Y8G("ngrxLet",o.viewer$)}}function dt(e,r){1&e&&(t.j41(0,"nz-tag",13),t.EFF(1," Fully Curated "),t.k0s())}function ut(e,r){if(1&e&&(t.j41(0,"cvc-link-tag",14),t.EFF(1),t.k0s()),2&e){const o=t.XpG().ngIf;t.Y8G("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.R7$(),t.SpI(" ",o.displayType+":"+o.citationId," ")}}function mt(e,r){if(1&e&&(t.qex(0),t.nrm(1,"cvc-section-navigation",2),t.DNE(2,pt,1,1,"ng-template",null,0,t.C5r),t.j41(4,"nz-page-header",3)(5,"nz-page-header-title"),t.nrm(6,"i",4),t.nI1(7,"entityColor"),t.EFF(8),t.k0s(),t.j41(9,"nz-page-header-extra"),t.DNE(10,dt,2,0,"nz-tag",5)(11,ut,2,3,"cvc-link-tag",6),t.k0s(),t.j41(12,"nz-page-header-content"),t.nrm(13,"cvc-tab-navigation",7),t.nI1(14,"ngrxPush"),t.j41(15,"div",8),t.nrm(16,"router-outlet"),t.k0s()()(),t.bVm()),2&e){const o=r.ngIf,a=t.sdS(3),d=t.XpG();t.R7$(),t.Y8G("displayName",o.citation)("actionsTpl",a),t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(7,7,"Source")),t.R7$(2),t.SpI(" ",o.citation," "),t.R7$(2),t.Y8G("ngIf",o.fullyCurated),t.R7$(),t.Y8G("ngIf",o.sourceUrl),t.R7$(2),t.Y8G("tabs",t.bMT(14,9,d.tabs$))}}let ht=(()=>{class e{constructor(o,a,d){this.viewerService=o,this.route=a,this.gql=d,this.destroy$=new J.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"}],this.tabs$=new Q.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(z=>{this.sourceId=+z.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let _=this.queryRef.valueChanges;this.loading$=_.pipe((0,g.E)("loading"),(0,D.Z)(!0)),this.source$=_.pipe((0,g.E)("data","source")),this.source$.pipe((0,s.Q)(this.destroy$)).subscribe({next:de=>{this.tabs$.next(this.defaultTabs.map(tt=>"Comments"===tt.tabLabel?{badgeCount:de?.comments.totalCount,badgeColor:"#cccccc",...tt}:tt))}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||e)(t.rXU(c.q),t.rXU(u.nX),t.rXU(S.Psd))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-sources-detail"]],decls:2,vars:3,consts:[["sourcesActions",""],[4,"ngIf"],[3,"displayName","actionsTpl"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nzColor","success",4,"ngIf"],[3,"href","tooltip",4,"ngIf"],[3,"tabs"],[1,"content"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nzColor","success"],[3,"href","tooltip"]],template:function(a,d){1&a&&(t.DNE(0,mt,17,11,"ng-container",1),t.nI1(1,"ngrxPush")),2&a&&t.Y8G("ngIf",t.bMT(1,1,d.source$))},dependencies:[n.bT,u.n3,u.Wk,b.Nj,m.WB,m.k9,m.zR,m.ov,p.aO,v.c,I.p,f.Dn,it.s,O.n,at.a,ct.N,b.L9,G.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return e})();var T=i(7529),w=i(7391),P=i(7685),ft=i(4644);function zt(e,r){1&e&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Suggest a New Source "),t.k0s())}function vt(e,r){if(1&e&&(t.qex(0),t.DNE(1,zt,3,0,"button",17),t.bVm()),2&e){const o=r.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function _t(e,r){if(1&e&&t.DNE(0,vt,2,1,"ng-container",16),2&e){const o=t.XpG();t.Y8G("ngrxLet",o.viewer$)}}function Ct(e,r){1&e&&(t.j41(0,"a",20),t.nrm(1,"i",21),t.EFF(2," View Source Docs "),t.k0s())}function yt(e,r){1&e&&(t.j41(0,"a",22),t.nrm(1,"i",21),t.EFF(2," View Source Curation Docs "),t.k0s())}let St=(()=>{class e{constructor(o){this.viewerService=o,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||e)(t.rXU(c.q))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["sources-home"]],decls:22,vars:6,consts:[["sourcesActions",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Sources"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock",""]],template:function(a,d){if(1&a&&(t.nrm(0,"cvc-section-navigation",1),t.DNE(1,_t,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t.nrm(7,"i",5),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",6)(10,"h2"),t.EFF(11,"Sources"),t.k0s(),t.j41(12,"p",7),t.EFF(13," Each Evidence Item is associated with a Source which supports the Item's clinical claims. CIViC accepts publications known to PubMed or abstracts published through the American Society of Clinical Oncology. "),t.k0s()(),t.j41(14,"nz-col",8)(15,"nz-space",9),t.DNE(16,Ct,3,0,"a",10)(17,yt,3,0,"a",11),t.k0s()()(),t.j41(18,"div",12)(19,"div",13)(20,"div",14),t.nrm(21,"cvc-sources-table",15),t.k0s()()()()()),2&a){const z=t.sdS(2);t.Y8G("actionsTpl",z),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"Source")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[n.bT,u.Wk,b.Nj,m.WB,m.zR,f.Dn,T.Uq,T.e,p.aO,v.c,I.p,w.Di,P.U5,P.Dq,O.n,ft.y,G.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return e})();var rt=i(5154),Z=i(2e3),bt=i(3821),Tt=i(8199),xt=i(3340),It=i(6726),Pt=i(2143);const Ot=()=>[8,16];function Mt(e,r){if(1&e&&(t.j41(0,"cvc-link-tag",25),t.EFF(1),t.k0s()),2&e){const o=t.XpG().ngIf;t.Y8G("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.R7$(),t.SpI(" ",o.displayType+":"+o.citationId," ")}}function Ft(e,r){if(1&e&&t.nrm(0,"cvc-retraction-status-tag",26),2&e){const o=t.XpG().ngIf;t.Y8G("retractionNature",o.retractionNature)("retractionDate",o.retractionDate)("retractionReasons",o.retractionReasons)}}function Gt(e,r){if(1&e&&(t.j41(0,"nz-descriptions-item",27),t.EFF(1),t.k0s()),2&e){const o=t.XpG().ngIf;t.R7$(),t.SpI(" ",o.ascoAbstractId," ")}}function Rt(e,r){if(1&e&&(t.qex(0),t.j41(1,"cvc-link-tag",28),t.EFF(2),t.k0s(),t.bVm()),2&e){const o=t.XpG().ngIf;t.R7$(),t.Mz_("href","https://www.ncbi.nlm.nih.gov/pmc/articles/",o.pmcId,""),t.R7$(),t.SpI(" ",o.pmcId," ")}}function Et(e,r){}function $t(e,r){if(1&e&&(t.j41(0,"nz-descriptions-item",33),t.DNE(1,Et,0,0,"ng-template",34),t.k0s()),2&e){t.XpG(2);const o=t.sdS(31);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function Dt(e,r){if(1&e&&(t.j41(0,"nz-descriptions-item",33),t.nrm(1,"cvc-clinical-trial-tag",35),t.k0s()),2&e){const o=t.XpG(2).ngIf;t.R7$(),t.Y8G("clinicalTrial",o.clinicalTrials[0])}}function wt(e,r){if(1&e&&(t.qex(0),t.j41(1,"nz-space"),t.nrm(2,"cvc-clinical-trial-tag",35),t.k0s(),t.bVm()),2&e){const o=r.$implicit;t.R7$(2),t.Y8G("clinicalTrial",o)}}function Yt(e,r){if(1&e&&(t.j41(0,"nz-descriptions-item",36),t.DNE(1,wt,3,1,"ng-container",37),t.k0s()),2&e){const o=t.XpG(2).ngIf;t.R7$(),t.Y8G("ngForOf",o.clinicalTrials)}}function jt(e,r){if(1&e&&(t.qex(0,29),t.DNE(1,$t,2,1,"ng-template",30)(2,Dt,2,1,"ng-template",31)(3,Yt,2,1,"ng-template",32),t.bVm()),2&e){const o=t.XpG().ngIf;t.Y8G("ngPlural",o.clinicalTrials.length)}}function Nt(e,r){1&e&&(t.j41(0,"span",38),t.EFF(1," Not available "),t.k0s())}function kt(e,r){if(1&e&&t.EFF(0),2&e){const o=t.XpG().ngIf;t.SpI(" Evidence for ",o.citation," ")}}function At(e,r){if(1&e&&t.EFF(0),2&e){const o=t.XpG().ngIf;t.SpI(" Source Suggestions for ",o.citation," ")}}function Xt(e,r){if(1&e&&(t.qex(0),t.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-descriptions",6)(4,"nz-descriptions-item",7)(5,"i"),t.EFF(6),t.k0s()(),t.j41(7,"nz-descriptions-item",8),t.EFF(8),t.k0s()()(),t.j41(9,"nz-col",5)(10,"nz-descriptions",6)(11,"nz-descriptions-item",9)(12,"p",10),t.EFF(13),t.k0s()()()(),t.j41(14,"nz-col",5)(15,"nz-descriptions",11)(16,"nz-descriptions-item",12),t.EFF(17),t.k0s(),t.j41(18,"nz-descriptions-item",13),t.DNE(19,Mt,2,3,"cvc-link-tag",14)(20,Ft,1,3,"cvc-retraction-status-tag",15),t.k0s(),t.DNE(21,Gt,2,1,"nz-descriptions-item",16),t.j41(22,"nz-descriptions-item",17),t.EFF(23),t.k0s(),t.j41(24,"nz-descriptions-item",18),t.DNE(25,Rt,3,3,"ng-container",19),t.k0s(),t.j41(26,"nz-descriptions-item",20)(27,"span",21),t.nrm(28,"span",22),t.k0s()(),t.DNE(29,jt,4,1,"ng-container",23),t.k0s(),t.DNE(30,Nt,2,0,"ng-template",null,0,t.C5r),t.k0s(),t.j41(32,"nz-col",5),t.nrm(33,"cvc-evidence-table",24),t.DNE(34,kt,1,1,"ng-template",null,1,t.C5r),t.k0s(),t.j41(36,"nz-col",5),t.nrm(37,"cvc-source-suggestions-table",24),t.DNE(38,At,1,1,"ng-template",null,2,t.C5r),t.k0s()(),t.bVm()),2&e){const o=r.ngIf,a=t.sdS(31),d=t.sdS(35),z=t.sdS(39),_=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(29,Ot)),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("nzColumn",1),t.R7$(3),t.JRh(o.title),t.R7$(2),t.SpI(" ",o.authorString," "),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("nzEllipsisRows",6),t.R7$(),t.SpI(" ",o.abstract," "),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzColumn",1),t.R7$(2),t.JRh(o.publicationDate),t.R7$(),t.Mz_("nzTitle","",o.displayType," ID"),t.R7$(),t.Y8G("ngIf",o.sourceUrl),t.R7$(),t.Y8G("ngIf",o.retractionNature&&o.retractionDate&&o.retractionReasons),t.R7$(),t.Y8G("ngIf","ASCO"==o.displayType),t.R7$(2),t.SpI("",o.fullJournalTitle," "),t.R7$(2),t.Y8G("ngIf",o.pmcId)("ngIfElse",a),t.R7$(2),t.Y8G("nzTooltipTitle",o.pmcId?"Open":"Closed"),t.R7$(),t.Y8G("nzType",o.pmcId?"unlock":"lock"),t.R7$(),t.Y8G("ngIf",o.clinicalTrials),t.R7$(3),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("sourceId",_.sourceId)("cvcTitleTemplate",d),t.R7$(3),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("sourceId",_.sourceId)("cvcTitleTemplate",z)}}let Vt=(()=>{class e{constructor(o,a){this.route=o,this.gql=a,this.routeSub=this.route.params.subscribe(d=>{this.sourceId=+d.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let z=this.queryRef.valueChanges;this.loading$=z.pipe((0,g.E)("loading"),(0,D.Z)(!0)),this.source$=z.pipe((0,g.E)("data","source"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||e)(t.rXU(u.nX),t.rXU(S.s91))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-sources-summary"]],decls:2,vars:3,consts:[["notAvailable",""],["evidenceCardTitle",""],["sourceSuggestionCardTitle",""],[4,"ngIf"],["cvcAutoHeightDiv","",3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Title"],["nzTitle","Authors"],["nzTitle","Abstract"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Published"],[3,"nzTitle"],[3,"href","tooltip",4,"ngIf"],[3,"retractionNature","retractionDate","retractionReasons",4,"ngIf"],["nzTitle","ASCO Abstract ID",4,"ngIf"],["nzTitle","Journal"],["nzTitle","PMC ID"],[4,"ngIf","ngIfElse"],["nzTitle","Access"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-icon","","nzTheme","outline",3,"nzType"],[3,"ngPlural",4,"ngIf"],["cvcHeight","400",3,"sourceId","cvcTitleTemplate"],[3,"href","tooltip"],[3,"retractionNature","retractionDate","retractionReasons"],["nzTitle","ASCO Abstract ID"],["tooltip","View on PubMed Central",3,"href"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],["nzTitle","Clinicial Trial"],[3,"ngTemplateOutlet"],[3,"clinicalTrial"],["nzTitle","Clinicial Trials"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"]],template:function(a,d){1&a&&(t.DNE(0,Xt,40,30,"ng-container",3),t.nI1(1,"ngrxPush")),2&a&&t.Y8G("ngIf",t.bMT(1,1,d.source$))},dependencies:[n.Sq,n.bT,n.T3,n.IJ,n.WO,T.Uq,T.e,P.U5,w.Di,f.Dn,rt.LH,Z.xA,Z.gr,at.a,bt.L,Tt.N,xt.E,It.X,Pt.n,b.L9],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}"]})}return e})(),Lt=(()=>{class e{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-sources"]],decls:1,vars:0,template:function(a,d){1&a&&t.nrm(0,"router-outlet")},dependencies:[u.n3],encapsulation:2})}return e})();var Bt=i(664);const Ut=[{path:"",component:Lt,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:St,data:{breadcrumb:"Home"}},{path:"add",data:{breadcrumb:"Submit a Source Suggestion"},runGuardsAndResolvers:"always",component:W},{path:":sourceId",component:ht,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Vt,data:{breadcrumb:"Summary"}},{path:"comments",component:(()=>{class e{constructor(o){this.route=o,this.commentable={id:+this.route.snapshot.params.sourceId,entityType:S.T31.Source}}static#t=this.\u0275fac=function(a){return new(a||e)(t.rXU(u.nX))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-sources-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,d){1&a&&t.nrm(0,"cvc-comment-list",0),2&a&&t.Y8G("commentable",d.commentable)},dependencies:[Bt.D],styles:["[_nghost-%COMP%]{display:block}"]})}return e})(),data:{breadcrumb:"Comments"}}]}]}];let Ht=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.iI.forChild(Ut),u.iI]})}return e})();var Wt=i(5443),K=i(4124),q=i(4917);let Jt=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[n.MD,u.iI,m.ZJ,f.Y3,T.f3,p.Zw,w.kT,P.pc,K.C,Wt.n,q.i]})}return e})();var st=i(7054),Qt=i(1532);let Zt=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[n.MD,u.iI,m.ZJ,p.Zw,f.Y3,it.T,K.C,st.L,Qt.W,q.i]})}return e})();var Kt=i(9619),qt=i(4531),te=i(5594),ee=i(2242),ne=i(174);let oe=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[n.MD,T.f3,P.pc,T.f3,P.pc,w.kT,f.Y3,rt.Qt,Z.WF,st.L,ee.i,qt.C,te.b,Kt.u,ne.u]})}return e})();var ie=i(8168),ae=i(776),re=i(5316);let se=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[n.MD,E.PQ,p.Zw,$.$,ie.m,re.P,ae.s]})}return e})(),ce=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[n.MD,m.ZJ,f.Y3,q.i,K.C,se]})}return e})();var le=i(4873);let ge=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[n.MD,le.A]})}return e})(),pe=(()=>{class e{static#t=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[n.MD,u.iI,Ht,Jt,Zt,oe,ce,ge]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/2846.9eaf774601de294c.js b/server/public/2846.9eaf774601de294c.js new file mode 100644 index 000000000..3228a3bed --- /dev/null +++ b/server/public/2846.9eaf774601de294c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2846],{2172:(W,O,n)=>{n.d(O,{a:()=>X});var e=n(177),s=n(5103),t=n(2839),I=n(7391),v=n(4917),C=n(9238),x=n(9269),E=n(1862),P=n(6936),y=n(7051),R=n(8920),S=n(5154),V=n(7120),z=n(7529),N=n(4415),G=n(513),L=n(1209),A=n(5023),w=n(6912),j=n(3953);let X=(()=>{class Y{static#t=this.\u0275fac=function(T){return new(T||Y)};static#e=this.\u0275mod=j.$C({type:Y});static#n=this.\u0275inj=j.G2t({imports:[e.MD,G.Zw,s.Y3,S.Qt,I.kT,V.ki,z.f3,N.O,t.m,v.i,C.e,x.P,w.l,E.e,P.G,y.U,R.U,L.k,A.J]})}return Y})()},9045:(W,O,n)=>{n.d(O,{J:()=>Y});var e=n(6514),s=n(505),t=n(3953),I=n(177),v=n(1188),C=n(5699),x=n(1236),E=n(5103),P=n(8011),y=n(2387),R=n(3075);const S=(f,$,T)=>({rejected:f,submitted:$,accepted:T});function V(f,$){}function z(f,$){if(1&f&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,V,0,0,"ng-template",6),t.k0s(),t.bVm()),2&f){const T=t.XpG(),b=t.sdS(2);t.R7$(),t.Y8G("routerLink",T.evidence.link),t.R7$(),t.Y8G("ngTemplateOutlet",b)}}function N(f,$){}function G(f,$){if(1&f&&t.nrm(0,"cvc-evidence-popover",9),2&f){const T=t.XpG(3);t.Y8G("evidenceId",T.evidence.id)}}function L(f,$){if(1&f&&t.DNE(0,G,1,1,"cvc-evidence-popover",8),2&f){const T=t.XpG(2);t.Y8G("ngIf",T.enablePopover)}}function A(f,$){if(1&f&&(t.j41(0,"nz-tag",7),t.DNE(1,N,0,0,"ng-template",6),t.k0s(),t.DNE(2,L,1,1,"ng-template",null,3,t.C5r)),2&f){const T=t.sdS(3),b=t.XpG(),U=t.sdS(6);t.Y8G("ngClass",t.sMw(5,S,"REJECTED"===b.evidence.status,"SUBMITTED"===b.evidence.status,"ACCEPTED"===b.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",T)("nzPopoverTrigger",b.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",U)}}function w(f,$){}function j(f,$){if(1&f&&t.DNE(0,w,0,0,"ng-template",6),2&f){t.XpG();const T=t.sdS(2);t.Y8G("ngTemplateOutlet",T)}}function X(f,$){if(1&f&&(t.j41(0,"cvc-icon-badges",10),t.nrm(1,"i",11),t.nI1(2,"entityColor"),t.nI1(3,"entityColor"),t.k0s(),t.EFF(4)),2&f){const T=t.XpG();t.Y8G("flagged",T.evidence.flagged)("entityColor",T.iconColor),t.R7$(),t.Y8G("nzTwotoneColor","REJECTED"===T.evidence.status?t.bMT(2,4,"Rejected"):t.bMT(3,6,"EvidenceItem")),t.R7$(3),t.SpI(" ",T.evidence.name,"\n")}}let Y=(()=>{class f extends e.s{set evidence(T){if(!T)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=T}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,s.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#t=this.\u0275fac=function(b){return new(b||f)};static#e=this.\u0275cmp=t.VBU({type:f,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[t.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(b,U){if(1&b&&t.DNE(0,z,3,2,"ng-container",4)(1,A,4,9,"ng-template",null,0,t.C5r)(3,j,1,1,"ng-template",null,1,t.C5r)(5,X,5,8,"ng-template",null,2,t.C5r),2&b){const B=t.sdS(4);t.Y8G("ngIf",U.linked)("ngIfElse",B)}},dependencies:[I.YU,I.bT,I.T3,v.Wk,C.s,x.L_,E.Dn,P.S,y.N,R.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]})}return f})()},6440:(W,O,n)=>{n.d(O,{r:()=>g});var e=n(3953),s=n(177),t=n(1188),I=n(5699),v=n(5103),C=n(1236),x=n(9199),E=n(6354),P=n(5964),y=n(9145),R=n(5703),S=n(7529),V=n(2e3),z=n(7679),N=n(9162),G=n(1774);const L=(c,m)=>({displayName:c,profileImagePath:m});function A(c,m){if(1&c&&(e.nrm(0,"cvc-user-avatar",12),e.j41(1,"span",13),e.EFF(2),e.k0s()),2&c){const r=e.XpG().ngIf;e.Y8G("user",e.l_i(2,L,r.name,r.profileImagePath)),e.R7$(2),e.JRh(r.name)}}function w(c,m){if(1&c&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&c){const r=m.ngIf;e.R7$(),e.JRh(r)}}function j(c,m){if(1&c&&(e.qex(0),e.j41(1,"cvc-link-tag",14),e.EFF(2),e.k0s(),e.bVm()),2&c){const r=e.XpG().ngIf;e.R7$(),e.Y8G("href",r.url),e.R7$(),e.SpI(" ",r.name," ")}}function X(c,m){if(1&c&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,A,3,5,"ng-template",null,2,e.C5r),e.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),e.DNE(8,w,2,1,"span",9),e.k0s()()()(),e.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),e.DNE(11,j,3,2,"ng-container",9),e.k0s()()(),e.bVm()),2&c){const r=m.ngIf,_=e.sdS(3);e.XpG();const u=e.sdS(4),D=e.sdS(6);e.R7$(),e.Y8G("nzTitle",_),e.R7$(7),e.Y8G("ngIf",r.description)("ngIfElse",u),e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("ngIf",r.url)("ngIfElse",D)}}function Y(c,m){1&c&&e.EFF(0," Organization has not provided a description.\n")}function f(c,m){1&c&&e.EFF(0," -- ")}let $=(()=>{class c{constructor(r){this.gql=r}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,E.T)(({data:r})=>r?.organization),(0,P.p)(x.kP))}static#t=this.\u0275fac=function(_){return new(_||c)(e.rXU(y.I8L))};static#e=this.\u0275cmp=e.VBU({type:c,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(_,u){1&_&&(e.j41(0,"div",3),e.DNE(1,X,12,6,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s(),e.DNE(3,Y,1,0,"ng-template",null,0,e.C5r)(5,f,1,0,"ng-template",null,1,e.C5r)),2&_&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,u.org$)))},dependencies:[s.bT,R.cK,S.Uq,S.e,V.xA,V.gr,z.a,N.G,G.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return c})();function T(c,m){}function b(c,m){if(1&c&&(e.qex(0),e.j41(1,"a",5),e.DNE(2,T,0,0,"ng-template",6),e.k0s(),e.bVm()),2&c){const r=e.XpG(),_=e.sdS(2);e.R7$(),e.Mz_("routerLink","/organizations/",r.org.id,""),e.R7$(),e.Y8G("ngTemplateOutlet",_)}}function U(c,m){}function B(c,m){if(1&c&&e.nrm(0,"cvc-organization-popover",9),2&c){const r=e.XpG(3);e.Y8G("orgId",r.org.id)}}function J(c,m){if(1&c&&e.DNE(0,B,1,1,"cvc-organization-popover",8),2&c){const r=e.XpG(2);e.Y8G("ngIf",r.enablePopover)}}function Q(c,m){if(1&c&&(e.j41(0,"nz-tag",7),e.DNE(1,U,0,0,"ng-template",6),e.k0s(),e.DNE(2,J,1,1,"ng-template",null,3,e.C5r)),2&c){const r=e.sdS(3);e.XpG();const _=e.sdS(6);e.Y8G("nzPopoverContent",r),e.R7$(),e.Y8G("ngTemplateOutlet",_)}}function Z(c,m){}function d(c,m){if(1&c&&e.DNE(0,Z,0,0,"ng-template",6),2&c){e.XpG();const r=e.sdS(2);e.Y8G("ngTemplateOutlet",r)}}function F(c,m){if(1&c&&(e.nrm(0,"i",10),e.EFF(1)),2&c){const r=e.XpG();e.R7$(),e.SpI(" ",r.org.name,"\n")}}let g=(()=>{class c{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}static#t=this.\u0275fac=function(_){return new(_||c)};static#e=this.\u0275cmp=e.VBU({type:c,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(_,u){if(1&_&&e.DNE(0,b,3,3,"ng-container",4)(1,Q,4,2,"ng-template",null,0,e.C5r)(3,d,1,1,"ng-template",null,1,e.C5r)(5,F,2,1,"ng-template",null,2,e.C5r),2&_){const D=e.sdS(4);e.Y8G("ngIf",u.linked)("ngIfElse",D)}},dependencies:[s.bT,s.T3,t.Wk,I.s,v.Dn,C.L_,$],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return c})()},8920:(W,O,n)=>{n.d(O,{U:()=>V});var e=n(177),s=n(1188),t=n(5699),I=n(5103),v=n(7529),C=n(7054),x=n(2e3),E=n(5703),P=n(3357),y=n(3953);let R=(()=>{class z{static#t=this.\u0275fac=function(L){return new(L||z)};static#e=this.\u0275mod=y.$C({type:z});static#n=this.\u0275inj=y.G2t({imports:[e.MD,E.Ti,v.f3,x.WF,C.L,P.P]})}return z})();var S=n(1236);let V=(()=>{class z{static#t=this.\u0275fac=function(L){return new(L||z)};static#e=this.\u0275mod=y.$C({type:z});static#n=this.\u0275inj=y.G2t({imports:[e.MD,s.iI,t.T,I.Y3,S.MC,R]})}return z})()},959:(W,O,n)=>{n.d(O,{j:()=>v});var e=n(3953),s=n(3100),t=n(3245),I=n(4247);let v=(()=>{class C{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(P){return new(P||C)};static#e=this.\u0275cmp=e.VBU({type:C,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(P,y){1&P&&(e.j41(0,"cvc-tag-group"),e.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),e.k0s()),2&P&&(e.R7$(),e.Y8G("feature",y.feature)("enablePopover",y.enablePopover)("truncateLongName",y.truncateLongName),e.R7$(),e.Y8G("variant",y.variant)("enablePopover",y.enablePopover)("truncateLongName",y.truncateLongName))},dependencies:[s.V,t._,I.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return C})()},7086:(W,O,n)=>{n.d(O,{C:()=>R});var e=n(177),s=n(1188),t=n(5699),I=n(5103),v=n(1236),C=n(4917),x=n(7051),E=n(6912),P=n(2502),y=n(3953);let R=(()=>{class S{static#t=this.\u0275fac=function(N){return new(N||S)};static#e=this.\u0275mod=y.$C({type:S});static#n=this.\u0275inj=y.G2t({imports:[e.MD,s.iI,t.T,v.MC,I.Y3,C.i,x.U,E.l,P.u]})}return S})()},2968:(W,O,n)=>{n.d(O,{K:()=>x});var e=n(177),s=n(5703),t=n(2617),I=n(5103),v=n(513),C=n(3953);let x=(()=>{class E{static#t=this.\u0275fac=function(R){return new(R||E)};static#e=this.\u0275mod=C.$C({type:E});static#n=this.\u0275inj=C.G2t({imports:[e.MD,s.Ti,t.rD,I.Y3,v.Zw]})}return E})()},8238:(W,O,n)=>{n.d(O,{S:()=>m});var e=n(505),s=n(3953),t=n(177),I=n(1188),v=n(1236),C=n(5699),x=n(5103),E=n(9199),P=n(6354),y=n(5964),R=n(9145),S=n(5703),V=n(2e3),z=n(9062),N=n(959),G=n(7855),L=n(1774),A=n(3075);function w(r,_){if(1&r&&(s.nrm(0,"i",7),s.nI1(1,"entityColor"),s.EFF(2)),2&r){const u=s.XpG().ngIf;s.Y8G("nzTwotoneColor",s.bMT(1,2,"VariantGroup")),s.R7$(2),s.SpI(" ",u.name," ")}}function j(r,_){if(1&r&&s.nrm(0,"cvc-feature-variant-tag",10),2&r){const u=_.$implicit;s.Y8G("enablePopover",!1)("variant",u.node)}}function X(r,_){if(1&r&&(s.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),s.DNE(2,j,1,2,"cvc-feature-variant-tag",9),s.k0s()()),2&r){const u=s.XpG().ngIf;s.R7$(2),s.Y8G("ngForOf",u.variants.edges)}}function Y(r,_){if(1&r&&s.nrm(0,"cvc-source-tag",13),2&r){const u=_.$implicit;s.Y8G("enablePopover",!1)("source",u)}}function f(r,_){if(1&r&&(s.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),s.DNE(2,Y,1,2,"cvc-source-tag",12),s.k0s()()),2&r){const u=s.XpG().ngIf;s.R7$(2),s.Y8G("ngForOf",u.sources)}}function $(r,_){if(1&r&&(s.qex(0),s.j41(1,"nz-card",3),s.DNE(2,w,3,4,"ng-template",null,0,s.C5r),s.EFF(4),s.j41(5,"nz-descriptions",4),s.DNE(6,X,3,1,"nz-descriptions-item",5)(7,f,3,1,"nz-descriptions-item",6),s.k0s()(),s.bVm()),2&r){const u=_.ngIf,D=s.sdS(3);s.R7$(),s.Y8G("nzTitle",D),s.R7$(3),s.SpI(" ",u.description," "),s.R7$(),s.Y8G("nzColumn",2),s.R7$(),s.Y8G("ngIf",u.variants.edges.length>0),s.R7$(),s.Y8G("ngIf",u.sources.length>0)}}let T=(()=>{class r{constructor(u){this.gql=u}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,P.T)(({data:u})=>u?.variantGroup),(0,y.p)(E.kP))}static#t=this.\u0275fac=function(D){return new(D||r)(s.rXU(R.gwr))};static#e=this.\u0275cmp=s.VBU({type:r,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(D,K){1&D&&(s.j41(0,"div",1),s.DNE(1,$,8,5,"ng-container",2),s.nI1(2,"ngrxPush"),s.k0s()),2&D&&(s.R7$(),s.Y8G("ngIf",s.bMT(2,1,K.variantGroup$)))},dependencies:[t.Sq,t.bT,S.cK,V.xA,V.gr,x.Dn,z.D,N.j,G.M,L.L9,A.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return r})();var b=n(2387);function U(r,_){}function B(r,_){if(1&r&&(s.qex(0),s.j41(1,"a",5),s.DNE(2,U,0,0,"ng-template",6),s.k0s(),s.bVm()),2&r){const u=s.XpG(),D=s.sdS(2);s.R7$(),s.Y8G("routerLink",u.variantgroup.link),s.R7$(),s.Y8G("ngTemplateOutlet",D)}}function J(r,_){}function Q(r,_){if(1&r&&s.nrm(0,"cvc-variant-group-popover",9),2&r){const u=s.XpG(3);s.Y8G("variantGroupId",u.variantgroup.id)}}function Z(r,_){if(1&r&&s.DNE(0,Q,1,1,"cvc-variant-group-popover",8),2&r){const u=s.XpG(2);s.Y8G("ngIf",u.enablePopover)}}function d(r,_){if(1&r&&(s.j41(0,"nz-tag",7),s.DNE(1,J,0,0,"ng-template",6),s.k0s(),s.DNE(2,Z,1,1,"ng-template",null,3,s.C5r)),2&r){const u=s.sdS(3),D=s.XpG(),K=s.sdS(6);s.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",u)("nzPopoverTrigger",D.enablePopover?"hover":null),s.R7$(),s.Y8G("ngTemplateOutlet",K)}}function F(r,_){}function g(r,_){if(1&r&&s.DNE(0,F,0,0,"ng-template",6),2&r){s.XpG();const u=s.sdS(2);s.Y8G("ngTemplateOutlet",u)}}function c(r,_){if(1&r&&(s.j41(0,"cvc-icon-badges",10),s.nrm(1,"i",11),s.nI1(2,"entityColor"),s.k0s(),s.EFF(3)),2&r){const u=s.XpG();s.Y8G("flagged",u.variantgroup.flagged)("entityColor",u.iconColor),s.R7$(),s.Y8G("nzTwotoneColor",s.bMT(2,4,"VariantGroup")),s.R7$(2),s.SpI(" ",u.variantgroup.name,"\n")}}let m=(()=>{class r{set variantgroup(u){if(!u)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=u}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,e.P)("VariantGroup")}static#t=this.\u0275fac=function(D){return new(D||r)};static#e=this.\u0275cmp=s.VBU({type:r,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(D,K){if(1&D&&s.DNE(0,B,3,2,"ng-container",4)(1,d,4,4,"ng-template",null,0,s.C5r)(3,g,1,1,"ng-template",null,1,s.C5r)(5,c,4,6,"ng-template",null,2,s.C5r),2&D){const it=s.sdS(4);s.Y8G("ngIf",K.linked)("ngIfElse",it)}},dependencies:[t.bT,t.T3,I.Wk,v.L_,C.s,x.Dn,T,b.N,A.R],encapsulation:2,changeDetection:0})}return r})()},8134:(W,O,n)=>{n.d(O,{l:()=>N});var e=n(177),s=n(1188),t=n(1236),I=n(5699),v=n(5103),C=n(7086),x=n(2142),E=n(1209),P=n(4917),y=n(5703),R=n(2e3),S=n(3953);let V=(()=>{class G{static#t=this.\u0275fac=function(w){return new(w||G)};static#e=this.\u0275mod=S.$C({type:G});static#n=this.\u0275inj=S.G2t({imports:[e.MD,y.Ti,R.WF,v.Y3,E.k,C.C,x.x,P.i]})}return G})();var z=n(4994);let N=(()=>{class G{static#t=this.\u0275fac=function(w){return new(w||G)};static#e=this.\u0275mod=S.$C({type:G});static#n=this.\u0275inj=S.G2t({imports:[e.MD,s.iI,t.MC,I.T,v.Y3,V,P.i,z.a]})}return G})()},4256:(W,O,n)=>{n.d(O,{t:()=>t});var e=n(177),s=n(3953);let t=(()=>{class I{static#t=this.\u0275fac=function(x){return new(x||I)};static#e=this.\u0275mod=s.$C({type:I});static#n=this.\u0275inj=s.G2t({imports:[e.MD]})}return I})()},2057:(W,O,n)=>{n.r(O),n.d(O,{WelcomeModule:()=>fe});var e=n(1188),s=n(6354),t=n(3953),I=n(1626),v=n(177),C=n(7529),x=n(4707),E=n(7336),P=n(1413),y=n(3726),R=n(6977),S=n(152),V=n(3294),z=n(6042),N=n(6860),G=n(1025),L=n(5979),A=n(8203);const w=["slickList"],j=["slickTrack"],X=["*"],Y=o=>({$implicit:o});function f(o,l){}function $(o,l){if(1&o){const i=t.RV6();t.j41(0,"li",9),t.bIt("click",function(){const p=t.eBV(i).$index,h=t.XpG(2);return t.Njj(h.onLiClick(p))}),t.DNE(1,f,0,0,"ng-template",10),t.k0s()}if(2&o){const i=l.$index,a=t.XpG(2),p=t.sdS(8);t.AVh("slick-active",i===a.activeIndex),t.R7$(),t.Y8G("ngTemplateOutlet",a.nzDotRender||p)("ngTemplateOutletContext",t.eq3(4,Y,i))}}function T(o,l){if(1&o&&(t.j41(0,"ul",7),t.Z7z(1,$,2,6,"li",8,t.fX1),t.k0s()),2&o){const i=t.XpG();t.AVh("slick-dots-top","top"===i.nzDotPosition)("slick-dots-bottom","bottom"===i.nzDotPosition)("slick-dots-left","left"===i.nzDotPosition)("slick-dots-right","right"===i.nzDotPosition),t.R7$(),t.Dyx(i.carouselContents)}}function b(o,l){if(1&o&&(t.j41(0,"button"),t.EFF(1),t.k0s()),2&o){const i=l.$implicit;t.R7$(),t.JRh(i+1)}}let U=(()=>{class o{set isActive(i){this._active=i,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(i,a){this.renderer=a,this._active=!1,this.el=i.nativeElement}static#t=this.\u0275fac=function(a){return new(a||o)(t.rXU(t.aKT),t.rXU(t.sFG))};static#e=this.\u0275dir=t.FsC({type:o,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"],standalone:!0})}return o})();class B{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(l,i,a,p,h){this.cdr=i,this.renderer=a,this.platform=p,this.options=h,this.carouselComponent=l}withCarouselContents(l){const i=this.carouselComponent;if(this.slickListEl=i.slickListEl,this.slickTrackEl=i.slickTrackEl,this.contents=l?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){const a=i.el.getBoundingClientRect();this.unitWidth=a.width,this.unitHeight=a.height}else l?.forEach((a,p)=>{0===p?this.renderer.setStyle(a.el,"width","100%"):this.renderer.setStyle(a.el,"display","none")})}dragging(l){}dispose(){}getFromToInBoundary(l,i){const a=this.maxIndex+1;return{from:(l+a)%a,to:(i+a)%a}}}class J extends B{withCarouselContents(l){super.withCarouselContents(l),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((i,a)=>{this.renderer.setStyle(i.el,"opacity",this.carouselComponent.activeIndex===a?"1":"0"),this.renderer.setStyle(i.el,"position","relative"),this.renderer.setStyle(i.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(i.el,"left",-this.unitWidth*a+"px"),this.renderer.setStyle(i.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(l,i){const{to:a}=this.getFromToInBoundary(l,i),p=new P.B;return this.contents.forEach((h,k)=>{this.renderer.setStyle(h.el,"opacity",a===k?"1":"0")}),setTimeout(()=>{p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p}dispose(){this.contents.forEach(l=>{this.renderer.setStyle(l.el,"transition",null),this.renderer.setStyle(l.el,"opacity",null),this.renderer.setStyle(l.el,"width",null),this.renderer.setStyle(l.el,"left",null)}),super.dispose()}}class Q extends B{get vertical(){return this.carouselComponent.vertical}constructor(l,i,a,p,h){super(l,i,a,p,h),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(l){super.withCarouselContents(l);const a=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"height",this.length*this.unitHeight+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-a*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,"height",`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"width",this.length*this.unitWidth+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-a*this.unitWidth}px, 0, 0)`)),this.contents.forEach(p=>{this.renderer.setStyle(p.el,"position","relative"),this.renderer.setStyle(p.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(p.el,"height",`${this.unitHeight}px`)}))}switch(l,i){const{to:a}=this.getFromToInBoundary(l,i),p=new P.B;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(l,i):this.horizontalTransform(l,i),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(h=>{this.renderer.setStyle(h.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-a*this.unitHeight}px, 0)`:`translate3d(${-a*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,p.next(),p.complete()},this.carouselComponent.nzTransitionSpeed),p.asObservable()}dragging(l){if(this.isTransitioning)return;const i=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(i===this.maxIndex?this.prepareVerticalContext(!0):0===i&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-i*this.unitHeight+l.x}px, 0)`)):(!this.isDragging&&this.length>2&&(i===this.maxIndex?this.prepareHorizontalContext(!0):0===i&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-i*this.unitWidth+l.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(l,i){const{from:a,to:p}=this.getFromToInBoundary(l,i);this.length>2&&i!==p?(this.prepareVerticalContext(p2&&i!==p?(this.prepareHorizontalContext(p{class o{set nzDotPosition(i){this._dotPosition=i,this.vertical="left"===i||"right"===i}get nzDotPosition(){return this._dotPosition}constructor(i,a,p,h,k,H,q,ct,pt,dt,gt){this.nzConfigService=a,this.ngZone=p,this.renderer=h,this.cdr=k,this.platform=H,this.resizeService=q,this.nzDragService=ct,this.nzResizeObserver=pt,this.directionality=dt,this.customStrategies=gt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,this.nzLoop=!0,this.nzStrategyOptions=void 0,this._dotPosition="bottom",this.nzBeforeChange=new t.bkB,this.nzAfterChange=new t.bkB,this.activeIndex=0,this.vertical=!1,this.dir="ltr",this.destroy$=new P.B,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=M=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-M:M)},this.pointerDown=M=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(M).subscribe(tt=>{this.pointerDelta=tt,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const tt=this.pointerDelta?this.pointerDelta.x:0;Math.abs(tt)>this.gestureRect.width/3&&(this.nzLoop||tt<=0&&this.activeIndex+10&&this.activeIndex>0)?this.goTo(tt>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.el=i.nativeElement}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,R.Q)(this.destroy$)).subscribe(i=>{this.dir=i,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,y.R)(this.slickListEl,"keydown").pipe((0,R.Q)(this.destroy$)).subscribe(i=>{const{keyCode:a}=i;a!==E.UQ&&a!==E.LE||(i.preventDefault(),this.ngZone.run(()=>{a===E.UQ?this.pre():this.next(),this.cdr.markForCheck()}))})}),this.nzResizeObserver.observe(this.el).pipe((0,S.B)(100),(0,V.F)(),(0,R.Q)(this.destroy$)).subscribe(()=>{this.layout()})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe((0,R.Q)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(i){const{nzEffect:a,nzDotPosition:p}=i;a&&!a.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),p&&!p.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),this.nzAutoPlay&&this.nzAutoPlaySpeed?this.scheduleNextTransition():this.clearScheduledTransition()}ngOnDestroy(){this.clearScheduledTransition(),this.strategy&&this.strategy.dispose(),this.destroy$.next(),this.destroy$.complete()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(i){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||i>=0&&i{this.scheduleNextTransition(),this.nzAfterChange.emit(h),this.isTransiting=!1}),this.markContentActive(h),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const i=this.customStrategies?this.customStrategies.find(a=>a.name===this.nzEffect):null;this.strategy=i?new i.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new Q(this,this.cdr,this.renderer,this.platform):new J(this,this.cdr,this.renderer,this.platform)}scheduleNextTransition(){this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout(()=>{this.goTo(this.activeIndex+1)},this.nzAutoPlaySpeed))}clearScheduledTransition(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=void 0)}markContentActive(i){this.activeIndex=i,this.carouselContents&&this.carouselContents.forEach((a,p)=>{a.isActive="rtl"===this.dir?i===this.carouselContents.length-1-p:i===p}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}static#t=this.\u0275fac=function(a){return new(a||o)(t.rXU(t.aKT),t.rXU(z.yx),t.rXU(t.SKi),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(N.OD),t.rXU(G.cB),t.rXU(G.qH),t.rXU(L.xH),t.rXU(A.dS,8),t.rXU(Z,8))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["nz-carousel"]],contentQueries:function(a,p,h){if(1&a&&t.wni(h,U,4),2&a){let k;t.mGM(k=t.lsd())&&(p.carouselContents=k)}},viewQuery:function(a,p){if(1&a&&(t.GBs(w,7),t.GBs(j,7)),2&a){let h;t.mGM(h=t.lsd())&&(p.slickList=h.first),t.mGM(h=t.lsd())&&(p.slickTrack=h.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(a,p){2&a&&t.AVh("ant-carousel-vertical",p.vertical)("ant-carousel-rtl","rtl"===p.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:[2,"nzEnableSwipe","nzEnableSwipe",t.L39],nzDots:[2,"nzDots","nzDots",t.L39],nzAutoPlay:[2,"nzAutoPlay","nzAutoPlay",t.L39],nzAutoPlaySpeed:[2,"nzAutoPlaySpeed","nzAutoPlaySpeed",t.Udg],nzTransitionSpeed:[2,"nzTransitionSpeed","nzTransitionSpeed",t.Udg],nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:X,decls:9,vars:3,consts:[["slickList",""],["slickTrack",""],["renderDotTemplate",""],[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],[1,"slick-track"],[1,"slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right"],[1,"slick-dots"],[3,"slick-active"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(a,p){if(1&a){const h=t.RV6();t.NAR(),t.j41(0,"div",3)(1,"div",4,0),t.bIt("mousedown",function(H){return t.eBV(h),t.Njj(p.pointerDown(H))})("touchstart",function(H){return t.eBV(h),t.Njj(p.pointerDown(H))}),t.j41(3,"div",5,1),t.SdG(5),t.k0s()(),t.DNE(6,T,3,8,"ul",6),t.k0s(),t.DNE(7,b,2,1,"ng-template",null,2,t.C5r)}2&a&&(t.AVh("slick-vertical","left"===p.nzDotPosition||"right"===p.nzDotPosition),t.R7$(6),t.vxM(p.nzDots?6:-1))},dependencies:[v.T3],encapsulation:2,changeDetection:0})}return(0,x.Cg)([(0,z.H4)()],o.prototype,"nzEffect",void 0),(0,x.Cg)([(0,z.H4)()],o.prototype,"nzEnableSwipe",void 0),(0,x.Cg)([(0,z.H4)()],o.prototype,"nzDots",void 0),(0,x.Cg)([(0,z.H4)()],o.prototype,"nzAutoPlay",void 0),(0,x.Cg)([(0,z.H4)()],o.prototype,"nzAutoPlaySpeed",void 0),(0,x.Cg)([(0,z.H4)()],o.prototype,"nzLoop",void 0),(0,x.Cg)([(0,z.H4)()],o.prototype,"nzDotPosition",null),o})(),g=(()=>{class o{static#t=this.\u0275fac=function(a){return new(a||o)};static#e=this.\u0275mod=t.$C({type:o});static#n=this.\u0275inj=t.G2t({})}return o})();var r=n(5703),_=n(7391),u=n(3821),D=n(9199),K=n(5964),it=n(4608),vt=n(9145),et=n(9417),at=n(6677),ot=n(3190),ht=n(6389),nt=n(5103),Ct=n(1774),zt=n(3075);function Tt(o,l){if(1&o){const i=t.RV6();t.j41(0,"nz-radio-group",14),t.mxI("ngModelChange",function(p){t.eBV(i);const h=t.XpG();return t.DH7(h.statsType,p)||(h.statsType=p),t.Njj(p)}),t.j41(1,"label",15),t.EFF(2,"Total"),t.k0s(),t.j41(3,"label",16),t.EFF(4,"Weekly"),t.k0s(),t.j41(5,"label",17),t.EFF(6,"Monthly"),t.k0s(),t.j41(7,"label",18),t.EFF(8,"Yearly"),t.k0s()()}if(2&o){const i=t.XpG();t.R50("ngModel",i.statsType)}}function Et(o,l){1&o&&(t.nrm(0,"i",31),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Assertion"))}function yt(o,l){1&o&&(t.nrm(0,"i",32),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"EvidenceItem"))}function It(o,l){1&o&&(t.nrm(0,"i",33),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Feature"))}function xt(o,l){1&o&&(t.nrm(0,"i",34),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Variant"))}function Pt(o,l){1&o&&(t.nrm(0,"i",35),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"MolecularProfile"))}function St(o,l){1&o&&(t.nrm(0,"i",36),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Disease"))}function Dt(o,l){1&o&&(t.nrm(0,"i",37),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Therapy"))}function Mt(o,l){1&o&&(t.nrm(0,"i",38),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Source"))}function Ot(o,l){1&o&&(t.nrm(0,"i",39),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Revision"))}function Gt(o,l){1&o&&(t.nrm(0,"i",40),t.nI1(1,"entityColor")),2&o&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Curator"))}function Rt(o,l){if(1&o&&(t.qex(0),t.j41(1,"nz-row",19)(2,"nz-col",20)(3,"a",21),t.nrm(4,"nz-statistic",22),t.nI1(5,"number"),t.DNE(6,Et,2,3,"ng-template",null,2,t.C5r),t.k0s()(),t.j41(8,"nz-col",20)(9,"a",23),t.nrm(10,"nz-statistic",22),t.nI1(11,"number"),t.DNE(12,yt,2,3,"ng-template",null,3,t.C5r),t.k0s()(),t.j41(14,"nz-col",20)(15,"a",24),t.nrm(16,"nz-statistic",22),t.nI1(17,"number"),t.DNE(18,It,2,3,"ng-template",null,4,t.C5r),t.k0s()(),t.j41(20,"nz-col",20)(21,"a",25),t.nrm(22,"nz-statistic",22),t.nI1(23,"number"),t.DNE(24,xt,2,3,"ng-template",null,5,t.C5r),t.k0s()(),t.j41(26,"nz-col",20)(27,"a",26),t.nrm(28,"nz-statistic",22),t.nI1(29,"number"),t.DNE(30,Pt,2,3,"ng-template",null,6,t.C5r),t.k0s()()(),t.j41(32,"nz-row",19)(33,"nz-col",20)(34,"a",27),t.nrm(35,"nz-statistic",22),t.nI1(36,"number"),t.DNE(37,St,2,3,"ng-template",null,7,t.C5r),t.k0s()(),t.j41(39,"nz-col",20)(40,"a",28),t.nrm(41,"nz-statistic",22),t.nI1(42,"number"),t.DNE(43,Dt,2,3,"ng-template",null,8,t.C5r),t.k0s()(),t.j41(45,"nz-col",20)(46,"a",29),t.nrm(47,"nz-statistic",22),t.nI1(48,"number"),t.DNE(49,Mt,2,3,"ng-template",null,9,t.C5r),t.k0s()(),t.j41(51,"nz-col",20),t.nrm(52,"nz-statistic",22),t.nI1(53,"number"),t.DNE(54,Ot,2,3,"ng-template",null,10,t.C5r),t.k0s(),t.j41(56,"nz-col",20)(57,"a",30),t.nrm(58,"nz-statistic",22),t.nI1(59,"number"),t.DNE(60,Gt,2,3,"ng-template",null,11,t.C5r),t.k0s()()(),t.bVm()),2&o){const i=l.ngIf,a=t.sdS(7),p=t.sdS(13),h=t.sdS(19),k=t.sdS(25),H=t.sdS(31),q=t.sdS(38),ct=t.sdS(44),pt=t.sdS(50),dt=t.sdS(55),gt=t.sdS(61),M=t.XpG();t.R7$(4),t.Y8G("nzTitle",M.label()+" Assertions")("nzValue",t.bMT(5,30,i.assertions[M.statsType]))("nzPrefix",a),t.R7$(6),t.Y8G("nzTitle",M.label()+" Evidence")("nzValue",t.bMT(11,32,i.evidenceItems[M.statsType]))("nzPrefix",p),t.R7$(6),t.Y8G("nzTitle",M.label()+" Features")("nzValue",t.bMT(17,34,i.features[M.statsType]))("nzPrefix",h),t.R7$(6),t.Y8G("nzTitle",M.label()+" Variants")("nzValue",t.bMT(23,36,i.variants[M.statsType]))("nzPrefix",k),t.R7$(6),t.Y8G("nzTitle",M.label()+" Molecular Profiles")("nzValue",t.bMT(29,38,i.molecularProfiles[M.statsType]))("nzPrefix",H),t.R7$(7),t.Y8G("nzTitle",M.label()+" Diseases")("nzValue",t.bMT(36,40,i.diseases[M.statsType]))("nzPrefix",q),t.R7$(6),t.Y8G("nzTitle",M.label()+" Therapies")("nzValue",t.bMT(42,42,i.therapies[M.statsType]))("nzPrefix",ct),t.R7$(6),t.Y8G("nzTitle",M.label()+" Sources")("nzValue",t.bMT(48,44,i.sources[M.statsType]))("nzPrefix",pt),t.R7$(5),t.Y8G("nzTitle",M.label()+" Revisions")("nzValue",t.bMT(53,46,i.revisions[M.statsType]))("nzPrefix",dt),t.R7$(6),t.Y8G("nzTitle",M.label()+" Contributors")("nzValue",t.bMT(59,48,i.users[M.statsType]))("nzPrefix",gt)}}function $t(o,l){if(1&o&&(t.j41(0,"nz-row",19)(1,"nz-col",20),t.nrm(2,"nz-statistic",41),t.k0s(),t.j41(3,"nz-col",20),t.nrm(4,"nz-statistic",41),t.k0s(),t.j41(5,"nz-col",20),t.nrm(6,"nz-statistic",41),t.k0s(),t.j41(7,"nz-col",20),t.nrm(8,"nz-statistic",41),t.k0s(),t.j41(9,"nz-col",20),t.nrm(10,"nz-statistic",41),t.k0s()(),t.j41(11,"nz-row",19)(12,"nz-col",20),t.nrm(13,"nz-statistic",41),t.k0s(),t.j41(14,"nz-col",20),t.nrm(15,"nz-statistic",41),t.k0s(),t.j41(16,"nz-col",20),t.nrm(17,"nz-statistic",41),t.k0s(),t.j41(18,"nz-col",20),t.nrm(19,"nz-statistic",41),t.k0s(),t.j41(20,"nz-col",20),t.nrm(21,"nz-statistic",41),t.k0s()()),2&o){const i=t.XpG();t.R7$(2),t.Y8G("nzTitle",i.label()+" Assertions")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",i.label()+" Evidence")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",i.label()+" Features")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",i.label()+" Variants")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",i.label()+" Molecular Profiles")("nzValue","--"),t.R7$(3),t.Y8G("nzTitle",i.label()+" Diseases")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",i.label()+" Therapies")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",i.label()+" Sources")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",i.label()+" Revisions")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",i.label()+" Contributors")("nzValue","--")}}let bt=(()=>{class o{constructor(i){this.statsGql=i,this.statsLabel={allTime:"Total",newThisYear:"Yearly",newThisMonth:"Monthly",newThisWeek:"Weekly"},this.statsType="allTime"}label(){return this.statsLabel[this.statsType]}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,it.E)("loading"),(0,K.p)(D.kP)),this.stats$=this.response$.pipe((0,it.E)("data","timepointStats"),(0,K.p)(D.kP))}static#t=this.\u0275fac=function(a){return new(a||o)(t.rXU(vt.yoY))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-site-stats-card"]],decls:7,vars:5,consts:[["statsRadioGroup",""],["isLoading",""],["assertionIcon",""],["evidenceIcon",""],["featureIcon",""],["variantIcon",""],["mpIcon",""],["diseaseIcon",""],["therapyIcon",""],["sourceIcon",""],["revisionsIcon",""],["userIcon",""],["nzTitle","Knowledgebase Statistics","nzSize","small",1,"home-card",3,"nzExtra"],[4,"ngIf","ngIfElse"],["nzSize","small",3,"ngModelChange","ngModel"],["nz-radio-button","","nzValue","allTime"],["nz-radio-button","","nzValue","newThisWeek"],["nz-radio-button","","nzValue","newThisMonth"],["nz-radio-button","","nzValue","newThisYear"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["routerLink","/evidence"],["routerLink","/features"],["routerLink","/variants"],["routerLink","/molecular-profiles"],["routerLink","/diseases"],["routerLink","/therapies"],["routerLink","/sources"],["routerLink","/users"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-user",3,"nzTwotoneColor"],[3,"nzTitle","nzValue"]],template:function(a,p){if(1&a&&(t.j41(0,"nz-card",12),t.DNE(1,Tt,9,1,"ng-template",null,0,t.C5r)(3,Rt,62,50,"ng-container",13),t.nI1(4,"ngrxPush"),t.DNE(5,$t,22,20,"ng-template",null,1,t.C5r),t.k0s()),2&a){const h=t.sdS(2),k=t.sdS(6);t.Y8G("nzExtra",h),t.R7$(3),t.Y8G("ngIf",t.bMT(4,3,p.stats$))("ngIfElse",k)}},dependencies:[v.bT,et.BC,et.vS,e.Wk,at.IV,C.Uq,C.e,r.cK,ot.lx,ot.i3,ht.c,nt.Dn,v.QX,Ct.L9,zt.R],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]})}return o})();var ut=n(8313),st=n(513),rt=n(1672),mt=n(9448),_t=n(3384);const Vt=()=>[8,16];function Ft(o,l){1&o&&t.eu8(0)}function kt(o,l){1&o&&t.eu8(0)}function Nt(o,l){1&o&&t.eu8(0)}function Lt(o,l){if(1&o&&t.EFF(0),2&o){const i=t.XpG().$implicit;t.SpI(" ",i.title," ")}}function wt(o,l){if(1&o&&(t.j41(0,"span",13),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&o){const i=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,i.date)," ")}}function At(o,l){if(1&o&&t.nrm(0,"div",15),2&o){const i=t.XpG(2).$implicit;t.muq("background-image: url('",i.imageUrl,"')")}}function Yt(o,l){if(1&o&&t.DNE(0,At,1,3,"div",14),2&o){const i=t.XpG().$implicit;t.Y8G("ngIf",i.imageUrl)}}function Bt(o,l){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const i=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",i.text," ")}}function jt(o,l){if(1&o&&(t.nrm(0,"span",16),t.nI1(1,"nzSanitizer")),2&o){const i=t.XpG(2).$implicit;t.Y8G("innerHtml",t.i5U(1,1,i.htmlText,"html"),t.npT)}}function Ut(o,l){if(1&o&&t.DNE(0,Bt,2,1,"ng-container",7)(1,jt,2,4,"ng-template",null,6,t.C5r),2&o){const i=t.sdS(2),a=t.XpG().$implicit;t.Y8G("ngIf",a.text)("ngIfElse",i)}}function Wt(o,l){if(1&o&&(t.qex(0),t.nrm(1,"nz-divider"),t.j41(2,"a",18),t.nrm(3,"i",19),t.EFF(4),t.k0s(),t.bVm()),2&o){const i=t.XpG(2).$implicit;t.R7$(2),t.Y8G("href",i.link.url,t.B4B),t.R7$(2),t.SpI(" ",i.link.label?i.link.label:"More Information"," ")}}function Xt(o,l){if(1&o&&t.DNE(0,Wt,5,2,"ng-container",17),2&o){const i=t.XpG().$implicit;t.Y8G("ngIf",i.link&&i.link.url)}}function Kt(o,l){if(1&o&&(t.j41(0,"nz-col",10)(1,"nz-card",11),t.DNE(2,Ft,1,0,"ng-container",12)(3,kt,1,0,"ng-container",12)(4,Nt,1,0,"ng-container",12),t.k0s(),t.DNE(5,Lt,1,1,"ng-template",null,1,t.C5r)(7,wt,3,3,"ng-template",null,2,t.C5r)(9,Yt,1,1,"ng-template",null,3,t.C5r)(11,Ut,3,2,"ng-template",null,4,t.C5r)(13,Xt,1,1,"ng-template",null,5,t.C5r),t.k0s()),2&o){const i=t.sdS(6),a=t.sdS(8),p=t.sdS(10),h=t.sdS(12),k=t.sdS(14);t.R7$(),t.Y8G("nzTitle",i)("nzExtra",a),t.R7$(),t.Y8G("ngTemplateOutlet",p),t.R7$(),t.Y8G("ngTemplateOutlet",h),t.R7$(),t.Y8G("ngTemplateOutlet",k)}}function Ht(o,l){if(1&o&&(t.qex(0),t.j41(1,"nz-row",8),t.DNE(2,Kt,15,5,"nz-col",9),t.k0s(),t.bVm()),2&o){const i=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(2,Vt)),t.R7$(),t.Y8G("ngForOf",i.cvcNewsItems)}}function Jt(o,l){1&o&&t.nrm(0,"nz-empty")}let Qt=(()=>{class o{static#t=this.\u0275fac=function(a){return new(a||o)};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-news-item-list"]],inputs:{cvcNewsItems:"cvcNewsItems"},decls:3,vars:2,consts:[["newsEmpty",""],["newsTitle",""],["newsDate",""],["cardImage",""],["cardContent",""],["cardLinkButton",""],["htmlText",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","24",4,"ngFor","ngForOf"],["nzSpan","24"],["nzSize","small",3,"nzTitle","nzExtra"],[4,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"],["class","news-cover-image",3,"style",4,"ngIf"],[1,"news-cover-image"],[3,"innerHtml"],[4,"ngIf"],["target","_blank","nz-button","","nzSize","small",2,"float","right",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(a,p){if(1&a&&t.DNE(0,Ht,3,3,"ng-container",7)(1,Jt,1,0,"ng-template",null,0,t.C5r),2&a){const h=t.sdS(2);t.Y8G("ngIf",p.cvcNewsItems)("ngIfElse",h)}},dependencies:[v.Sq,v.bT,v.T3,st.aO,ht.c,C.Uq,C.e,r.cK,_.Di,rt.RW,mt.j,nt.Dn,v.vh,_t.ec],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .news-cover-card .ant-card-meta-description{color:#000000d9}[_nghost-%COMP%] .news-cover-card .ant-card-meta-title{font-size:12px;line-height:20px}nz-divider[_ngcontent-%COMP%]{margin:12px 0 8px}.cover-card-date[_ngcontent-%COMP%]{text-align:right;font-weight:400}.news-cover-image[_ngcontent-%COMP%]{max-height:200px;min-height:200px;background-position:center center;background-size:cover;background-repeat:no-repeat;overflow:hidden;border-bottom:1px solid #f0f0f0;margin:-12px -12px 8px}"]})}return o})();const Zt=()=>[12,12];function qt(o,l){if(1&o&&(t.qex(0),t.j41(1,"nz-col",1)(2,"div",12),t.EFF(3),t.nI1(4,"date"),t.j41(5,"a",13),t.EFF(6," Release Notes "),t.k0s(),t.EFF(7," \u2022 "),t.j41(8,"a",14),t.EFF(9," History "),t.k0s()()(),t.bVm()),2&o){const i=l.ngIf;t.R7$(),t.Y8G("nzSpan",24),t.R7$(2),t.Lme(" CIViC ",i.name," (",t.bMT(4,4,i.published_at),") \u2022 "),t.R7$(2),t.Y8G("href",i.html_url,t.B4B)}}const te=[{path:"",component:(()=>{class o{constructor(i){this.http=i,this.newsItems=[{title:"PUBLIC NOTICE: CIViC v1 API TO BE DEPRECATED",date:"2023-10-01",htmlText:'The CIViC V1 REST API will officially be retired on November 1st, 2023. All CIViC integrations should transition to our new V2 GraphQL API. The new API is more powerful and provides access to the newest CIViC data model, features, and data. The easiest way to get started is to try out queries and browse the documentation in the GraphiQL sandbox.',link:{url:"https://civicdb.org/api/graphiql",label:"Try the CIViC GraphiQL Sandbox"}},{title:"CIViC Online Training Now Open!",date:"2023-10-01",htmlText:'A new course was developed by the CIViC team covering an introduction to somatic variants, including the rapid development of this field over the last decade with the introduction of next generation sequencing into clinical practice. The course was created using the ITCR training network\u2019s Open-source Tools for Training Resources (OTTR), which allows co-publication on multiple platforms, including bookdown and leanpub.',link:{url:"https://course.civicdb.org",label:"Take the CIViC Intro Course"}},{title:"2023 CGC Hackathon Report",date:"2023-08-14",htmlText:'CIViC together with VICC and ClinGen Somatic hosted the 4th Cancer Variant Interpretation Hackathon and Jamboree as a pre-meeting of the Annual Cancer Genomics Consortium Conference. Over 50 variant scientists and developers gathered in St Louis to discuss and code resources for the clinical interpretation of cancer variants including ClinGen/CGC/VICC Oncogenicity classification, new CIViC Variant Classes, and more.',imageUrl:"assets/images/2023-CGC-hackathon-attendees.jpg"},{title:"Introducing Molecular Profiles",date:"2023-01-09",htmlText:'Today we have rolled out support for a new core concept in CIViC: Molecular Profiles. Molecular Profiles are logical combinations of one or more CIViC Variants. While most Molecular Profiles will consist of a single Variant (\u201cSimple\u201d) they will also allow users to build \u201cComplex\u201d (multi-variant) Molecular Profiles to associate Evidence with. These complex profiles expand the CIViC data model to allow for clinical significance to be evaluated within contexts such as variant co-occurrence or mutual exclusivity. Going forward, Evidence will be associated with a Molecular Profile rather than directly with a Variant. If you have any questions about this change, please feel free to contact us. We have also prepared a video explaining this new feature.',link:{url:"https://www.youtube.com/watch?v=--i54jY746w",label:"View Molecular Profiles Intro Video"}},{title:"Announcing Support for ASH Abstracts",date:"2023-01-09",htmlText:"ASH Annual Meeting Abstracts can now be used as Sources when submitting Evidence Items to CIViC. They can be specified by DOI in the 'Add Source' section of the Evidence form."},{title:"CIViC named as a Global Core Biodata Resource",date:"2022-12-15",htmlText:'CIViC has been named in a list of 37 Global Core Biodata Resources alongside other important resources such as Ensembl, ClinGen and Gnomad. The GCBR includes select resources that ensure the long term preservation of biological data, and are of fundamental importance to the biological and life sciences community.',link:{url:"https://globalbiodata.org/scientific-activities/global-core-biodata-resources/",label:"View the GCBR List"}}]}ngOnInit(){this.release$=this.http.get("https://api.github.com/repos/griffithlab/civic-v2/releases?per_page=1").pipe((0,s.T)(i=>i[0]))}static#t=this.\u0275fac=function(a){return new(a||o)(t.rXU(I.Qq))};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["app-welcome"]],decls:47,vars:12,consts:[[3,"nzGutter"],[3,"nzSpan"],["nzAutoPlay","","nzAutoPlaySpeed","10000"],["nz-carousel-content",""],["href","https://civic.readthedocs.io/en/latest/curating/editor.html","target","_blank",1,"header-link"],["nzTitle","News & Events","nzSize","small",1,"home-card"],["cvcAutoHeightDiv","52","cvcAutoHeightTarget","viewport"],[3,"cvcNewsItems"],[2,"border-radius","8px","overflow","hidden"],["cvcTitle","Live Activity Feed",3,"cvcShowFilters"],["nzTitle","Medical Disclaimer: This resource is intended for purely research purposes. It should not be used for emergencies or medical or professional advice.","nzSize","small",1,"home-card"],[4,"ngIf"],["id","release-info","nz-typography","","nzType","secondary",2,"text-align","right","padding-right","12px"],["target","_blank",3,"href"],["href","https://github.com/griffithlab/civic-v2/releases/","target","_blank"]],template:function(a,p){if(1&a&&(t.SS7(0),t.j41(1,"nz-row",0)(2,"nz-col",1)(3,"nz-carousel",2)(4,"div",3)(5,"h1"),t.EFF(6,"Welcome to CIViC"),t.k0s(),t.j41(7,"h2"),t.EFF(8," an open-source platform supporting crowdsourced and expert-moderated cancer variant curation. "),t.k0s()(),t.j41(9,"div",3)(10,"h1"),t.EFF(11," Discover supported clinical interpretations "),t.nrm(12,"br"),t.EFF(13," of mutations related to cancer. "),t.k0s()(),t.j41(14,"div",3)(15,"h1"),t.EFF(16," Participate with colleagues "),t.nrm(17,"br"),t.EFF(18,"to add variants and support "),t.nrm(19,"br"),t.EFF(20,"for cancer-related mutations. "),t.k0s()(),t.j41(21,"div",3)(22,"h1")(23,"a",4),t.EFF(24,"Become an Editor! "),t.nrm(25,"br"),t.EFF(26,"Help moderate updates to CIViC"),t.k0s()()()()(),t.j41(27,"nz-col",1),t.nrm(28,"cvc-site-stats-card"),t.k0s(),t.j41(29,"nz-col",1)(30,"nz-card",5)(31,"div",6),t.nrm(32,"cvc-news-item-list",7),t.k0s()()(),t.j41(33,"nz-col",1)(34,"div",8),t.nrm(35,"cvc-activity-feed",9),t.k0s()(),t.j41(36,"nz-col",1)(37,"nz-card",10)(38,"p"),t.EFF(39," CIViC is a community-edited forum for discussion and interpretation of peer-reviewed publications pertaining to the clinical relevance of variants (or biomarker alterations) in cancer. These interpretations may include associations between molecular alterations (or lack of alteration) and one or more therapies, diagnoses, prognoses or other treatment decisions. These interpretations of clinical significance (or lack of clinical significance) are purely for research purposes. A finding of no interpretation does not necessarily indicate lack of relevance for any specific variant or biomarker alteration. Interpretations are not presented in ranked order of potential or predicted importance. These interpretations make no promise or guarantee of any clinical benefit (or lack of clinical benefit). "),t.k0s(),t.j41(40,"p"),t.EFF(41," The civicdb.org website does not provide any medical or healthcare products, services or advice, and is not for medical emergencies or urgent situations. "),t.j41(42,"strong"),t.EFF(43," IF YOU THINK YOU MAY HAVE A MEDICAL EMERGENCY, CALL YOUR DOCTOR OR 911 IMMEDIATELY"),t.k0s(),t.EFF(44,". Information contained on this website is not a substitute for a doctor's medical judgment or advice. We recommend that you discuss your specific, individual health concerns with your doctor or health care professional. "),t.k0s()()(),t.DNE(45,qt,10,6,"ng-container",11),t.nI1(46,"async"),t.k0s()),2&a){const h=t.lJ4(11,Zt);t.R7$(),t.Y8G("nzGutter",h),t.R7$(),t.Y8G("nzSpan",24),t.R7$(25),t.Y8G("nzSpan",24),t.R7$(2),t.Y8G("nzSpan",10),t.R7$(3),t.Y8G("cvcNewsItems",p.newsItems),t.R7$(),t.Y8G("nzSpan",14),t.R7$(2),t.Y8G("cvcShowFilters",!1),t.R7$(),t.Y8G("nzSpan",24),t.R7$(9),t.Y8G("ngIf",t.bMT(46,9,p.release$))}},dependencies:[v.bT,C.Uq,C.e,F,U,r.cK,_.Di,u.L,bt,ut.Y,Qt,v.Jj,v.vh],styles:["[_nghost-%COMP%]{display:block}.space-container[_ngcontent-%COMP%]{display:block}.ant-carousel[_ngcontent-%COMP%]{border:1px solid #3e5166;border-radius:8px;height:200px;background-color:#001529}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%]{padding-top:3em;padding-left:3em;height:200px;background-color:#2e143e;overflow:hidden;color:#fff}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff}.home-card[_ngcontent-%COMP%]{border-radius:8px}.header-link[_ngcontent-%COMP%], #release-info[_ngcontent-%COMP%]{color:#fff}#release-info[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}"]})}return o})()}];let ee=(()=>{class o{static#t=this.\u0275fac=function(a){return new(a||o)};static#e=this.\u0275mod=t.$C({type:o});static#n=this.\u0275inj=t.G2t({imports:[e.iI.forChild(te),e.iI]})}return o})();var ne=n(2617),ie=n(776),oe=n(1912),lt=n(4917);let se=(()=>{class o{static#t=this.\u0275fac=function(a){return new(a||o)};static#e=this.\u0275mod=t.$C({type:o});static#n=this.\u0275inj=t.G2t({imports:[v.MD,et.YN,e.iI,at.Fw,C.f3,r.Ti,ot.Sw,st.Zw,oe.i3,_.kT,nt.Y3,ie.s,lt.i]})}return o})();var ae=n(8927),re=n(7481),ft=n(1997),le=n(2172),ce=n(7685),pe=n(2968),de=n(9438);let ge=(()=>{class o{static#t=this.\u0275fac=function(a){return new(a||o)};static#e=this.\u0275mod=t.$C({type:o});static#n=this.\u0275inj=t.G2t({imports:[v.MD,et.YN,e.iI,st.Zw,r.Ti,nt.Y3,ae.PQ,ft.DH,re.$,C.f3,ce.pc,rt._v,de.Yb,le.a,lt.i,pe.K,lt.i]})}return o})();var he=n(1236),ue=n(2986),me=n(2242),_e=n(4256);let fe=(()=>{class o{static#t=this.\u0275fac=function(a){return new(a||o)};static#e=this.\u0275mod=t.$C({type:o});static#n=this.\u0275inj=t.G2t({imports:[v.MD,et.YN,st.Zw,C.f3,g,r.Ti,ue.IJ,ne.rD,ot.Sw,at.Fw,_.kT,rt._v,_t.Qe,he.MC,mt.g,nt.Y3,ft.DH,ee,me.i,_e.t,se,ge,ut.Y]})}return o})()},6677:(W,O,n)=>{n.d(O,{IV:()=>B,Fw:()=>Z});var e=n(3953),s=n(1413),t=n(605),I=n(5203),v=n(317);let C=(()=>{class d{transform(g,c="HH:mm:ss"){let m=Number(g||0);return I.F7.reduce((r,[_,u])=>{if(-1!==r.indexOf(_)){const D=Math.floor(m/u);return m-=D*u,r.replace(new RegExp(`${_}+`,"g"),K=>(0,v.CF)(D.toString(),K.length,"0"))}return r},c)}static#t=this.\u0275fac=function(c){return new(c||d)};static#e=this.\u0275pipe=e.EJ8({name:"nzTimeRange",type:d,pure:!0,standalone:!0})}return d})(),x=(()=>{class d{static#t=this.\u0275fac=function(c){return new(c||d)};static#e=this.\u0275mod=e.$C({type:d});static#n=this.\u0275inj=e.G2t({})}return d})();var E=n(177),P=n(6977),y=n(7806),R=n(1912),S=n(8203),V=n(6860);const z=d=>({$implicit:d});function N(d,F){if(1&d&&e.eu8(0,3),2&d){const g=e.XpG();e.Y8G("ngTemplateOutlet",g.nzValueTemplate)("ngTemplateOutletContext",e.eq3(2,z,g.nzValue))}}function G(d,F){if(1&d&&(e.j41(0,"span",6),e.EFF(1),e.k0s()),2&d){const g=e.XpG(2);e.R7$(),e.JRh(g.displayInt)}}function L(d,F){if(1&d&&(e.j41(0,"span",7),e.EFF(1),e.k0s()),2&d){const g=e.XpG(2);e.R7$(),e.JRh(g.displayDecimal)}}function A(d,F){if(1&d&&(e.qex(0),e.DNE(1,G,2,1,"span",4)(2,L,2,1,"span",5),e.bVm()),2&d){const g=e.XpG();e.R7$(),e.Y8G("ngIf",g.displayInt),e.R7$(),e.Y8G("ngIf",g.displayDecimal)}}function w(d,F){if(1&d&&(e.qex(0),e.EFF(1),e.bVm()),2&d){const g=e.XpG();e.R7$(),e.JRh(g.nzTitle)}}function j(d,F){1&d&&e.nrm(0,"nz-skeleton",2),2&d&&e.Y8G("nzParagraph",!1)}function X(d,F){if(1&d&&(e.qex(0),e.EFF(1),e.bVm()),2&d){const g=e.XpG(3);e.R7$(),e.JRh(g.nzPrefix)}}function Y(d,F){if(1&d&&(e.j41(0,"span",4),e.DNE(1,X,2,1,"ng-container",1),e.k0s()),2&d){const g=e.XpG(2);e.R7$(),e.Y8G("nzStringTemplateOutlet",g.nzPrefix)}}function f(d,F){if(1&d&&(e.qex(0),e.EFF(1),e.bVm()),2&d){const g=e.XpG(3);e.R7$(),e.JRh(g.nzSuffix)}}function $(d,F){if(1&d&&(e.j41(0,"span",6),e.DNE(1,f,2,1,"ng-container",1),e.k0s()),2&d){const g=e.XpG(2);e.R7$(),e.Y8G("nzStringTemplateOutlet",g.nzSuffix)}}function T(d,F){if(1&d&&(e.j41(0,"div",3),e.DNE(1,Y,2,1,"span",4),e.nrm(2,"nz-statistic-number",5),e.DNE(3,$,2,1,"span",6),e.k0s()),2&d){const g=e.XpG();e.Y8G("ngStyle",g.nzValueStyle),e.R7$(),e.vxM(g.nzPrefix?1:-1),e.R7$(),e.Y8G("nzValue",g.nzValue)("nzValueTemplate",g.nzValueTemplate),e.R7$(),e.vxM(g.nzSuffix?3:-1)}}function b(d,F){if(1&d&&(e.EFF(0),e.nI1(1,"nzTimeRange")),2&d){const g=e.XpG();e.JRh(e.i5U(1,1,g.diff,g.nzFormat))}}let U=(()=>{class d{constructor(g){this.locale_id=g,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const g="number"==typeof this.nzValue?".":(0,E.a)(this.locale_id,E.gz.Decimal),c=String(this.nzValue),[m,r]=c.split(g);this.displayInt=m,this.displayDecimal=r?`${g}${r}`:""}static#t=this.\u0275fac=function(c){return new(c||d)(e.rXU(e.xe9))};static#e=this.\u0275cmp=e.VBU({type:d,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],standalone:!0,features:[e.OA$,e.aNF],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(c,m){1&c&&(e.j41(0,"span",0),e.DNE(1,N,1,4,"ng-container",1)(2,A,3,2,"ng-container",2),e.k0s()),2&c&&(e.R7$(),e.Y8G("ngIf",m.nzValueTemplate),e.R7$(),e.Y8G("ngIf",!m.nzValueTemplate))},dependencies:[E.bT,E.T3],encapsulation:2,changeDetection:0})}return d})(),B=(()=>{class d{constructor(g,c){this.cdr=g,this.directionality=c,this.nzValueStyle={},this.nzLoading=!1,this.dir="ltr",this.destroy$=new s.B}ngOnInit(){this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(c){return new(c||d)(e.rXU(e.gRc),e.rXU(S.dS,8))};static#e=this.\u0275cmp=e.VBU({type:d,selectors:[["nz-statistic"]],hostAttrs:[1,"ant-statistic"],hostVars:2,hostBindings:function(c,m){2&c&&e.AVh("ant-statistic-rtl","rtl"===m.dir)},inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate",nzLoading:[2,"nzLoading","nzLoading",e.L39]},exportAs:["nzStatistic"],standalone:!0,features:[e.GFd,e.aNF],decls:4,vars:2,consts:[[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-skeleton",3,"nzParagraph"],[1,"ant-statistic-content",3,"ngStyle"],[1,"ant-statistic-content-prefix"],[3,"nzValue","nzValueTemplate"],[1,"ant-statistic-content-suffix"]],template:function(c,m){1&c&&(e.j41(0,"div",0),e.DNE(1,w,2,1,"ng-container",1),e.k0s(),e.DNE(2,j,1,1,"nz-skeleton",2)(3,T,4,5,"div",3)),2&c&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",m.nzTitle),e.R7$(),e.vxM(m.nzLoading?2:3))},dependencies:[R.i3,R.Bi,U,y.C,y.m,E.B3],encapsulation:2,changeDetection:0})}return d})();const J=1e3/30;let Q=(()=>{class d extends B{constructor(g,c,m,r){super(g,r),this.ngZone=c,this.platform=m,this.nzFormat="HH:mm:ss",this.nzCountdownFinish=new e.bkB,this.target=0}ngOnChanges(g){g.nzValue&&(this.target=Number(g.nzValue.currentValue),g.nzValue.isFirstChange()||this.syncTimer())}ngOnInit(){super.ngOnInit(),this.syncTimer()}ngOnDestroy(){this.stopTimer()}syncTimer(){this.target>=Date.now()?this.startTimer():this.stopTimer()}startTimer(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.stopTimer(),this.updater_=(0,t.Y)(J).subscribe(()=>{this.updateValue(),this.cdr.detectChanges()})})}stopTimer(){this.updater_&&(this.updater_.unsubscribe(),this.updater_=null)}updateValue(){this.diff=Math.max(this.target-Date.now(),0),0===this.diff&&(this.stopTimer(),this.nzCountdownFinish.observers.length&&this.ngZone.run(()=>this.nzCountdownFinish.emit()))}static#t=this.\u0275fac=function(c){return new(c||d)(e.rXU(e.gRc),e.rXU(e.SKi),e.rXU(V.OD),e.rXU(S.dS,8))};static#e=this.\u0275cmp=e.VBU({type:d,selectors:[["nz-countdown"]],inputs:{nzFormat:"nzFormat"},outputs:{nzCountdownFinish:"nzCountdownFinish"},exportAs:["nzCountdown"],standalone:!0,features:[e.Vt3,e.OA$,e.aNF],decls:3,vars:6,consts:[["countDownTpl",""],[3,"nzValue","nzValueStyle","nzValueTemplate","nzTitle","nzPrefix","nzSuffix"]],template:function(c,m){if(1&c&&(e.nrm(0,"nz-statistic",1),e.DNE(1,b,2,4,"ng-template",null,0,e.C5r)),2&c){const r=e.sdS(2);e.Y8G("nzValue",m.diff)("nzValueStyle",m.nzValueStyle)("nzValueTemplate",m.nzValueTemplate||r)("nzTitle",m.nzTitle)("nzPrefix",m.nzPrefix)("nzSuffix",m.nzSuffix)}},dependencies:[B,x,C],encapsulation:2,changeDetection:0})}return d})(),Z=(()=>{class d{static#t=this.\u0275fac=function(c){return new(c||d)};static#e=this.\u0275mod=e.$C({type:d});static#n=this.\u0275inj=e.G2t({imports:[B,Q]})}return d})()}}]); \ No newline at end of file diff --git a/server/public/2971.c61f992b790e48cb.js b/server/public/2971.3394aab5de992892.js similarity index 77% rename from server/public/2971.c61f992b790e48cb.js rename to server/public/2971.3394aab5de992892.js index 70261cc49..c56b63b3b 100644 --- a/server/public/2971.c61f992b790e48cb.js +++ b/server/public/2971.3394aab5de992892.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2971],{959:(P,g,n)=>{n.d(g,{j:()=>p});var r=n(3953),c=n(3100),t=n(3245),m=n(4247);let p=(()=>{class s{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275cmp=r.VBU({type:s,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(d,i){1&d&&(r.j41(0,"cvc-tag-group"),r.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),r.k0s()),2&d&&(r.R7$(),r.Y8G("feature",i.feature)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName),r.R7$(),r.Y8G("variant",i.variant)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName))},dependencies:[c.V,t._,m.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return s})()},3889:(P,g,n)=>{n.r(g),n.d(g,{VariantsModule:()=>A});var r=n(177),c=n(1188),t=n(3953);let m=(()=>{class a{constructor(){}static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["app-variants"]],decls:1,vars:0,template:function(o,H){1&o&&t.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return a})();var p=n(4124),s=n(3062),v=n(7529),h=n(5103),d=n(9271),i=n(7391),z=n(513),f=n(7685),C=n(2242),u=n(1236),M=n(7380),y=n(4917);let b=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[r.MD,c.iI,s.ZJ,v.f3,h.Y3,i.kT,z.Zw,f.pc,u.MC,y.i,p.C,d.l,C.i,p.C,M.s]})}return a})();var V=n(1305),x=n(1774),O=n(6389),T=n(5930),E=n(9765),D=n(3640),F=n(574),L=n(3075);function N(a,l){1&a&&(t.j41(0,"div",20),t.nrm(1,"cvc-variant-submit-form"),t.k0s())}function R(a,l){if(1&a&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Submit New Variant "),t.DNE(3,N,2,0,"ng-template",null,1,t.C5r),t.k0s()),2&a){const e=t.sdS(4);t.Y8G("nzPopoverContent",e)}}function j(a,l){if(1&a&&(t.qex(0),t.DNE(1,R,5,1,"button",17),t.bVm()),2&a){const e=l.ngrxLet;t.R7$(),t.Y8G("ngIf",e.isEditor)}}function I(a,l){if(1&a&&t.DNE(0,j,2,1,"ng-container",16),2&a){const e=t.XpG();t.Y8G("ngrxLet",e.viewer$)}}function S(a,l){1&a&&(t.j41(0,"a",21),t.nrm(1,"i",22),t.EFF(2," View Variant Model Docs "),t.k0s())}function B(a,l){1&a&&(t.j41(0,"a",23),t.nrm(1,"i",22),t.EFF(2," View Variant Curation Docs "),t.k0s())}const G=[{path:"",component:m,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class a{constructor(e){this.viewerService=e,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(o){return new(o||a)(t.rXU(V.q))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["variants-home"]],decls:22,vars:6,consts:[["variantActions",""],["addVariantForm",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variants"],[4,"ngrxLet"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent",4,"ngIf"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent"],["nz-icon","","nzType","plus-circle"],[1,"addVariant"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock",""]],template:function(o,H){if(1&o&&(t.nrm(0,"cvc-section-navigation",2),t.DNE(1,I,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",3)(4,"nz-page-header-content")(5,"nz-row",4)(6,"nz-col",5),t.nrm(7,"i",6),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",7)(10,"h2"),t.EFF(11,"Variants"),t.k0s(),t.j41(12,"p",8),t.EFF(13,' CIViC variants are usually genomic alterations, including single nucleotide variants, insertion/deletion events, copy number alterations, structural variants, and other events that differ from the "normal" genome. '),t.k0s()(),t.j41(14,"nz-col",9)(15,"nz-space",10),t.DNE(16,S,3,0,"a",11)(17,B,3,0,"a",12),t.k0s()()(),t.j41(18,"nz-row")(19,"nz-col",13)(20,"div",14),t.nrm(21,"cvc-variants-table",15),t.k0s()()()()()),2&o){const Y=t.sdS(2);t.Y8G("actionsTpl",Y),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"Variant")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[r.bT,c.Wk,x.Nj,s.WB,s.zR,v.Uq,v.e,h.Dn,i.Di,z.aO,O.c,T.p,f.U5,f.Dq,u.L_,E.n,D.k,F.m,L.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}:[_nghost-%COMP%]{position:relative}.addVariant[_ngcontent-%COMP%]{width:500px}"]})}return a})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([n.e(3967),n.e(1110),n.e(6508),n.e(6161),n.e(326),n.e(262),n.e(5384),n.e(5958),n.e(7038),n.e(5076),n.e(4334)]).then(n.bind(n,5202)).then(a=>a.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([n.e(2076),n.e(5716)]).then(n.bind(n,5716)).then(a=>a.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let $=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[c.iI.forChild(G),b,c.iI]})}return a})(),A=(()=>{class a{static#t=this.\u0275fac=function(o){return new(o||a)};static#n=this.\u0275mod=t.$C({type:a});static#a=this.\u0275inj=t.G2t({imports:[r.MD,$]})}return a})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[2971],{959:(P,g,n)=>{n.d(g,{j:()=>p});var r=n(3953),c=n(3100),t=n(3245),m=n(4247);let p=(()=>{class s{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275cmp=r.VBU({type:s,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(d,i){1&d&&(r.j41(0,"cvc-tag-group"),r.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),r.k0s()),2&d&&(r.R7$(),r.Y8G("feature",i.feature)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName),r.R7$(),r.Y8G("variant",i.variant)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName))},dependencies:[c.V,t._,m.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return s})()},3889:(P,g,n)=>{n.r(g),n.d(g,{VariantsModule:()=>A});var r=n(177),c=n(1188),t=n(3953);let m=(()=>{class e{constructor(){}static#t=this.\u0275fac=function(o){return new(o||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["app-variants"]],decls:1,vars:0,template:function(o,H){1&o&&t.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return e})();var p=n(4124),s=n(3062),v=n(7529),h=n(5103),d=n(9271),i=n(7391),z=n(513),f=n(7685),C=n(2242),u=n(1236),M=n(7380),y=n(4917);let b=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[r.MD,c.iI,s.ZJ,v.f3,h.Y3,i.kT,z.Zw,f.pc,u.MC,y.i,p.C,d.l,C.i,p.C,M.s]})}return e})();var V=n(1305),x=n(1774),O=n(6389),T=n(5930),E=n(9765),D=n(3640),F=n(574),L=n(3075);function N(e,l){1&e&&(t.j41(0,"div",20),t.nrm(1,"cvc-variant-submit-form"),t.k0s())}function R(e,l){if(1&e&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Submit New Variant "),t.DNE(3,N,2,0,"ng-template",null,1,t.C5r),t.k0s()),2&e){const a=t.sdS(4);t.Y8G("nzPopoverContent",a)}}function j(e,l){if(1&e&&(t.qex(0),t.DNE(1,R,5,1,"button",17),t.bVm()),2&e){const a=l.ngrxLet;t.R7$(),t.Y8G("ngIf",a.isEditor)}}function I(e,l){if(1&e&&t.DNE(0,j,2,1,"ng-container",16),2&e){const a=t.XpG();t.Y8G("ngrxLet",a.viewer$)}}function S(e,l){1&e&&(t.j41(0,"a",21),t.nrm(1,"i",22),t.EFF(2," View Variant Model Docs "),t.k0s())}function B(e,l){1&e&&(t.j41(0,"a",23),t.nrm(1,"i",22),t.EFF(2," View Variant Curation Docs "),t.k0s())}const G=[{path:"",component:m,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class e{constructor(a){this.viewerService=a,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(o){return new(o||e)(t.rXU(V.q))};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["variants-home"]],decls:22,vars:6,consts:[["variantActions",""],["addVariantForm",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variants"],[4,"ngrxLet"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent",4,"ngIf"],["routerLink","/variants/add/submit","nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Add New Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"nzPopoverContent"],["nz-icon","","nzType","plus-circle"],[1,"addVariant"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variants.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/variants.html","target","_blank","nzSize","small","nzBlock",""]],template:function(o,H){if(1&o&&(t.nrm(0,"cvc-section-navigation",2),t.DNE(1,I,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",3)(4,"nz-page-header-content")(5,"nz-row",4)(6,"nz-col",5),t.nrm(7,"i",6),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",7)(10,"h2"),t.EFF(11,"Variants"),t.k0s(),t.j41(12,"p",8),t.EFF(13,' CIViC variants are usually genomic alterations, including single nucleotide variants, insertion/deletion events, copy number alterations, structural variants, and other events that differ from the "normal" genome. '),t.k0s()(),t.j41(14,"nz-col",9)(15,"nz-space",10),t.DNE(16,S,3,0,"a",11)(17,B,3,0,"a",12),t.k0s()()(),t.j41(18,"nz-row")(19,"nz-col",13)(20,"div",14),t.nrm(21,"cvc-variants-table",15),t.k0s()()()()()),2&o){const Y=t.sdS(2);t.Y8G("actionsTpl",Y),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"Variant")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[r.bT,c.Wk,x.Nj,s.WB,s.zR,v.Uq,v.e,h.Dn,i.Di,z.aO,O.c,T.p,f.U5,f.Dq,u.L_,E.n,D.k,F.m,L.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}:[_nghost-%COMP%]{position:relative}.addVariant[_ngcontent-%COMP%]{width:500px}"]})}return e})(),data:{breadcrumb:"Home"}},{path:":variantId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([n.e(3967),n.e(1110),n.e(6161),n.e(8313),n.e(262),n.e(5384),n.e(5353),n.e(553),n.e(5076),n.e(4334)]).then(n.bind(n,5202)).then(e=>e.VariantsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([n.e(2076),n.e(5716)]).then(n.bind(n,5716)).then(e=>e.VariantsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let $=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[c.iI.forChild(G),b,c.iI]})}return e})(),A=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#n=this.\u0275mod=t.$C({type:e});static#e=this.\u0275inj=t.G2t({imports:[r.MD,$]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/3205.7704ed840c79bad4.js b/server/public/3205.7704ed840c79bad4.js new file mode 100644 index 000000000..89fdc9423 --- /dev/null +++ b/server/public/3205.7704ed840c79bad4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3205],{9045:(F,P,e)=>{e.d(P,{J:()=>Y});var n=e(6514),m=e(505),a=e(3953),h=e(177),f=e(1188),T=e(5699),I=e(1236),z=e(5103),t=e(8011),g=e(2387),M=e(3075);const l=(p,D,d)=>({rejected:p,submitted:D,accepted:d});function v(p,D){}function u(p,D){if(1&p&&(a.qex(0),a.j41(1,"a",5),a.DNE(2,v,0,0,"ng-template",6),a.k0s(),a.bVm()),2&p){const d=a.XpG(),y=a.sdS(2);a.R7$(),a.Y8G("routerLink",d.evidence.link),a.R7$(),a.Y8G("ngTemplateOutlet",y)}}function E(p,D){}function S(p,D){if(1&p&&a.nrm(0,"cvc-evidence-popover",9),2&p){const d=a.XpG(3);a.Y8G("evidenceId",d.evidence.id)}}function V(p,D){if(1&p&&a.DNE(0,S,1,1,"cvc-evidence-popover",8),2&p){const d=a.XpG(2);a.Y8G("ngIf",d.enablePopover)}}function x(p,D){if(1&p&&(a.j41(0,"nz-tag",7),a.DNE(1,E,0,0,"ng-template",6),a.k0s(),a.DNE(2,V,1,1,"ng-template",null,3,a.C5r)),2&p){const d=a.sdS(3),y=a.XpG(),L=a.sdS(6);a.Y8G("ngClass",a.sMw(5,l,"REJECTED"===y.evidence.status,"SUBMITTED"===y.evidence.status,"ACCEPTED"===y.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",d)("nzPopoverTrigger",y.enablePopover?"hover":null),a.R7$(),a.Y8G("ngTemplateOutlet",L)}}function O(p,D){}function $(p,D){if(1&p&&a.DNE(0,O,0,0,"ng-template",6),2&p){a.XpG();const d=a.sdS(2);a.Y8G("ngTemplateOutlet",d)}}function j(p,D){if(1&p&&(a.j41(0,"cvc-icon-badges",10),a.nrm(1,"i",11),a.nI1(2,"entityColor"),a.nI1(3,"entityColor"),a.k0s(),a.EFF(4)),2&p){const d=a.XpG();a.Y8G("flagged",d.evidence.flagged)("entityColor",d.iconColor),a.R7$(),a.Y8G("nzTwotoneColor","REJECTED"===d.evidence.status?a.bMT(2,4,"Rejected"):a.bMT(3,6,"EvidenceItem")),a.R7$(3),a.SpI(" ",d.evidence.name,"\n")}}let Y=(()=>{class p extends n.s{set evidence(d){if(!d)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=d}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,m.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#t=this.\u0275fac=function(y){return new(y||p)};static#n=this.\u0275cmp=a.VBU({type:p,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[a.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(y,L){if(1&y&&a.DNE(0,u,3,2,"ng-container",4)(1,x,4,9,"ng-template",null,0,a.C5r)(3,$,1,1,"ng-template",null,1,a.C5r)(5,j,5,8,"ng-template",null,2,a.C5r),2&y){const U=a.sdS(4);a.Y8G("ngIf",L.linked)("ngIfElse",U)}},dependencies:[h.YU,h.bT,h.T3,f.Wk,T.s,I.L_,z.Dn,t.S,g.N,M.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]})}return p})()},5757:(F,P,e)=>{e.d(P,{v:()=>t});var n=e(177),m=e(5703),a=e(2617),h=e(7529),f=e(7685),T=e(5699),I=e(4917),z=e(3953);let t=(()=>{class g{static#t=this.\u0275fac=function(v){return new(v||g)};static#n=this.\u0275mod=z.$C({type:g});static#e=this.\u0275inj=z.G2t({imports:[n.MD,m.Ti,a.rD,h.f3,T.T,f.pc,I.i]})}return g})()},3710:(F,P,e)=>{e.d(P,{T:()=>rt});var n=e(3953),m=e(177),a=e(1188),h=e(6354),f=e(5964),T=e(9199),I=e(9145),z=e(5703),t=e(5103),g=e(7685),M=e(2e3),l=e(3245),v=e(6408),u=e(1417),E=e(9045),S=e(959),V=e(8238),x=e(311),O=e(4126),$=e(1774),j=e(3075),Y=e(8139);function p(s,C){if(1&s&&(n.j41(0,"span"),n.nrm(1,"i",14),n.nI1(2,"entityColor"),n.EFF(3),n.k0s()),2&s){const c=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,2,"Revision")),n.R7$(2),n.SpI(" RID",c.id," ")}}function D(s,C){if(1&s&&n.nrm(0,"cvc-status-tag",15),2&s){const c=n.XpG(2).ngIf;n.Y8G("status",c.status)}}function d(s,C){1&s&&(n.j41(0,"nz-space",11),n.DNE(1,p,4,4,"span",12)(2,D,1,1,"cvc-status-tag",13),n.k0s())}function y(s,C){if(1&s&&n.nrm(0,"cvc-feature-tag",16),2&s){const c=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("feature",c.subject)}}function L(s,C){if(1&s&&n.nrm(0,"cvc-assertion-tag",17),2&s){const c=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("assertion",c.subject)}}function U(s,C){if(1&s&&n.nrm(0,"cvc-evidence-tag",18),2&s){const c=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("evidence",c.subject)}}function A(s,C){if(1&s&&n.nrm(0,"cvc-feature-variant-tag",19),2&s){const c=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("variant",c.subject)}}function W(s,C){if(1&s&&n.nrm(0,"cvc-variant-group-tag",20),2&s){const c=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("variantgroup",c.subject)}}function K(s,C){if(1&s&&n.EFF(0),2&s){const c=n.XpG(2).ngIf;n.SpI(" ",c.subject.name," ")}}function J(s,C){if(1&s&&n.DNE(0,y,1,2,"cvc-feature-tag",16)(1,L,1,2,"cvc-assertion-tag",17)(2,U,1,2,"cvc-evidence-tag",18)(3,A,1,2,"cvc-feature-variant-tag",19)(4,W,1,2,"cvc-variant-group-tag",20)(5,K,1,1),2&s){let c;const G=n.XpG().ngIf;n.vxM("Feature"===(c=G.subject.__typename)?0:"Assertion"===c?1:"EvidenceItem"===c?2:"Variant"===c?3:"VariantGroup"===c?4:5)}}function Q(s,C){if(1&s&&n.nrm(0,"cvc-user-tag",21),2&s){const c=n.XpG().ngIf;n.Y8G("enablePopover",!1)("user",c.creationActivity.user)}}function Z(s,C){if(1&s&&(n.j41(0,"nz-descriptions-item",22),n.nrm(1,"cvc-comment-body",23),n.k0s()),2&s){const c=n.XpG().ngIf;n.R7$(),n.Y8G("commentBodySegments",c.creationActivity.parsedNote)}}function H(s,C){if(1&s&&(n.qex(0),n.j41(1,"nz-card",4),n.DNE(2,d,3,0,"ng-template",null,0,n.C5r)(4,J,6,1,"ng-template",null,1,n.C5r),n.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),n.DNE(8,Q,1,2,"cvc-user-tag",7),n.k0s(),n.j41(9,"nz-descriptions-item",8),n.EFF(10),n.k0s(),n.j41(11,"nz-descriptions-item",9),n.EFF(12),n.nI1(13,"timeAgo"),n.k0s(),n.DNE(14,Z,2,1,"nz-descriptions-item",10),n.k0s()(),n.bVm()),2&s){const c=C.ngIf,G=n.sdS(3),R=n.sdS(5);n.R7$(),n.Y8G("nzTitle",G)("nzExtra",R),n.R7$(5),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",null==c.creationActivity?null:c.creationActivity.user),n.R7$(2),n.SpI(" ",c.linkoutData.name," "),n.R7$(2),n.SpI(" ",n.bMT(13,7,c.createdAt)," "),n.R7$(2),n.Y8G("ngIf",null==c.creationActivity?null:c.creationActivity.parsedNote)}}let w=(()=>{class s{constructor(c){this.gql=c}ngOnInit(){if(null==this.revisionId)throw new Error("cvc-revision-popover requires valid revisionId input.");this.revision$=this.gql.watch({revisionId:this.revisionId}).valueChanges.pipe((0,h.T)(({data:c})=>c?.revision),(0,f.p)(T.kP))}static#t=this.\u0275fac=function(G){return new(G||s)(n.rXU(I.XWi))};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Revisor"],[3,"enablePopover","user",4,"ngIf"],["nzTitle","Field"],["nzTitle","Revision Date"],["nzTitle","Creation Comment",4,"ngIf"],[1,"revision-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],[3,"status"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[3,"enablePopover","user"],["nzTitle","Creation Comment"],[3,"commentBodySegments"]],template:function(G,R){1&G&&(n.j41(0,"div",2),n.DNE(1,H,15,9,"ng-container",3),n.nI1(2,"ngrxPush"),n.k0s()),2&G&&(n.R7$(),n.Y8G("ngIf",n.bMT(2,1,R.revision$)))},dependencies:[m.bT,z.cK,t.Dn,g.U5,g.Dq,M.xA,M.gr,l._,v.r,u.a,E.J,S.j,V.S,x.g,O.p,$.L9,j.R,Y.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.revision-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return s})();var k=e(5699),q=e(1236);const tt=s=>({revisionSetId:s});function nt(s,C){}function et(s,C){}function ot(s,C){if(1&s&&n.nrm(0,"cvc-revision-popover",6),2&s){const c=n.XpG(2);n.Y8G("revisionId",c.revision.id)}}function at(s,C){if(1&s&&(n.j41(0,"nz-tag",5),n.DNE(1,et,0,0,"ng-template",4),n.k0s(),n.DNE(2,ot,1,1,"ng-template",null,2,n.C5r)),2&s){const c=n.sdS(3),G=n.XpG(),R=n.sdS(5);n.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",c)("nzPopoverTrigger",G.enablePopover?"hover":null),n.R7$(),n.Y8G("ngTemplateOutlet",R)}}function it(s,C){if(1&s&&(n.nrm(0,"i",7),n.EFF(1)),2&s){const c=n.XpG();n.R7$(),n.SpI(" ",c.revision.name,"\n")}}let rt=(()=>{class s{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}static#t=this.\u0275fac=function(G){return new(G||s)};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:5,consts:[["tag",""],["tagContent",""],["revisionPopover",""],[3,"routerLink","queryParams"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(G,R){if(1&G&&(n.j41(0,"a",3),n.DNE(1,nt,0,0,"ng-template",4),n.k0s(),n.DNE(2,at,4,4,"ng-template",null,0,n.C5r)(4,it,2,1,"ng-template",null,1,n.C5r)),2&G){const st=n.sdS(3);n.Y8G("routerLink",R.revision.link)("queryParams",n.eq3(3,tt,R.revision.revisionSetId)),n.R7$(),n.Y8G("ngTemplateOutlet",st)}},dependencies:[m.T3,a.Wk,w,k.s,t.Dn,q.L_],encapsulation:2})}return s})()},4415:(F,P,e)=>{e.d(P,{O:()=>Y});var n=e(177),m=e(5699),a=e(5103),h=e(1188),f=e(4917),T=e(2839),I=e(1862),z=e(6936),t=e(5703),g=e(7529),M=e(8134),l=e(9590),v=e(7685),u=e(2e3),E=e(5757),S=e(7169),V=e(6912),x=e(7086),O=e(3953);let $=(()=>{class p{static#t=this.\u0275fac=function(y){return new(y||p)};static#n=this.\u0275mod=O.$C({type:p});static#e=this.\u0275inj=O.G2t({imports:[n.MD,t.Ti,g.f3,a.Y3,v.pc,u.WF,f.i,V.l,T.m,I.e,z.G,x.C,M.l,l.R,S.W,E.v]})}return p})();var j=e(1236);let Y=(()=>{class p{static#t=this.\u0275fac=function(y){return new(y||p)};static#n=this.\u0275mod=O.$C({type:p});static#e=this.\u0275inj=O.G2t({imports:[n.MD,h.iI,f.i,$,m.T,a.Y3,j.MC]})}return p})()},6719:(F,P,e)=>{e.d(P,{Q:()=>M});var n=e(3953),m=e(177),a=e(1672),h=e(5103);function f(l,v){if(1&l&&(n.j41(0,"span",5),n.EFF(1),n.k0s()),2&l){const u=n.XpG(2);n.R7$(),n.JRh(u.notification)}}function T(l,v){1&l&&n.EFF(0," Not specified ")}function I(l,v){if(1&l&&n.DNE(0,f,2,1,"span",4)(1,T,1,0,"ng-template",null,2,n.C5r),2&l){const u=n.sdS(2),E=n.XpG();n.Y8G("ngIf",E.notification)("ngIfElse",u)}}function z(l,v){if(1&l&&(n.j41(0,"a",6),n.nrm(1,"i",7),n.k0s()),2&l){const u=n.XpG(2);n.Y8G("href",u.reviseFormPath,n.B4B)}}function t(l,v){1&l&&n.nrm(0,"i",7)}function g(l,v){if(1&l&&n.DNE(0,z,2,1,"a",6)(1,t,1,0,"i",7),2&l){const u=n.XpG();n.vxM(u.reviseFormPath?0:1)}}let M=(()=>{class l{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(E){return new(E||l)};static#n=this.\u0275cmp=n.VBU({type:l,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification",reviseFormPath:"reviseFormPath"},decls:5,vars:2,consts:[["notFound",""],["notFoundImg",""],["defaultNotification",""],[3,"nzNotFoundContent","nzNotFoundImage"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["target","_blank",3,"href"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(E,S){if(1&E&&(n.nrm(0,"nz-empty",3),n.DNE(1,I,3,2,"ng-template",null,0,n.C5r)(3,g,2,1,"ng-template",null,1,n.C5r)),2&E){const V=n.sdS(2),x=n.sdS(4);n.Y8G("nzNotFoundContent",V)("nzNotFoundImage",x)}},dependencies:[m.bT,a.RW,h.Dn],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]})}return l})()},8254:(F,P,e)=>{e.d(P,{V:()=>f});var n=e(177),m=e(1672),a=e(5103),h=e(3953);let f=(()=>{class T{static#t=this.\u0275fac=function(t){return new(t||T)};static#n=this.\u0275mod=h.$C({type:T});static#e=this.\u0275inj=h.G2t({imports:[n.MD,m._v,a.Y3]})}return T})()},5128:(F,P,e)=>{e.d(P,{K:()=>t});var n=e(177),m=e(8524),a=e(3953),h=e(9417),f=e(1011);const I={name:"comment-textarea",component:(()=>{class g extends m.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(l,v)=>`Comments must be at least ${v.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let l;return function(u){return(l||(l=a.xGo(g)))(u||g)}})();static#n=this.\u0275cmp=a.VBU({type:g,selectors:[["comment-textarea-type"]],features:[a.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(v,u){1&v&&a.nrm(0,"textarea",0),2&v&&a.Y8G("formControl",u.formControl)("formlyAttributes",u.field)},dependencies:[h.me,h.BC,h.l_,m.ch,f.Sy],encapsulation:2,changeDetection:0})}return g})(),wrappers:["form-field"]};var z=e(8927);let t=(()=>{class g{static#t=this.\u0275fac=function(v){return new(v||g)};static#n=this.\u0275mod=a.$C({type:g});static#e=this.\u0275inj=a.G2t({imports:[n.MD,h.X1,m.qy.forChild({types:[I]}),z.PQ,f.j]})}return g})()},5791:(F,P,e)=>{e.r(P),e.d(P,{VariantGroupsDetailModule:()=>At});var n=e(177),m=e(1188),a=e(1413),h=e(4412),f=e(9145),T=e(9172),I=e(6977),z=e(4608),t=e(3953),g=e(1305),M=e(1774),l=e(5103),v=e(7529),u=e(3062),E=e(513),S=e(6389),V=e(5930),x=e(7685),O=e(8821),$=e(7428),j=e(9765),Y=e(5269),p=e(9945),D=e(6269),d=e(3075);const y=o=>["/variant-groups",o,"revise"];function L(o,_){if(1&o&&(t.j41(0,"button",15,1),t.EFF(2," Revise "),t.k0s()),2&o){const i=t.sdS(1),r=t.XpG(4).ngIf;t.Y8G("routerLink",t.eq3(2,y,r.id))("nzType",i.isActive?"primary":"default")}}function U(o,_){if(1&o&&(t.j41(0,"span"),t.DNE(1,L,3,4,"button",14),t.k0s()),2&o){const i=t.XpG().ngrxLet;t.R7$(),t.Y8G("ngIf",i.signedIn)}}function A(o,_){if(1&o&&(t.j41(0,"button",17,1),t.EFF(2," Flag "),t.k0s()),2&o){const i=t.sdS(1);t.Y8G("nzType",i.isActive?"primary":"default")}}function W(o,_){if(1&o&&(t.j41(0,"span"),t.DNE(1,A,3,1,"button",16),t.k0s()),2&o){const i=t.XpG().ngrxLet;t.R7$(),t.Y8G("ngIf",i.signedIn)}}function K(o,_){if(1&o&&t.nrm(0,"cvc-entity-subscription-button",19),2&o){const i=t.XpG(2).ngrxLet,r=t.XpG(3);t.Y8G("viewer",i)("subscribableId",r.subscribable.id)}}function J(o,_){if(1&o&&(t.j41(0,"span"),t.DNE(1,K,1,2,"cvc-entity-subscription-button",18),t.k0s()),2&o){const i=t.XpG().ngrxLet,r=t.XpG(3);t.R7$(),t.Y8G("ngIf",i.signedIn&&r.subscribable)}}function Q(o,_){1&o&&(t.j41(0,"nz-space",12),t.DNE(1,U,2,1,"span",13)(2,W,2,1,"span",13)(3,J,2,1,"span",13),t.k0s())}function Z(o,_){if(1&o&&(t.j41(0,"nz-page-header-extra"),t.DNE(1,Q,4,0,"nz-space",11),t.k0s()),2&o){const i=t.XpG(2);t.R7$(),t.Y8G("ngrxLet",i.viewer$)}}function H(o,_){if(1&o&&(t.j41(0,"nz-col",20),t.nrm(1,"cvc-contributor-avatars",21),t.k0s()),2&o){const i=t.XpG(2);t.R7$(),t.Y8G("subscribable",i.subscribable)}}function w(o,_){if(1&o&&(t.qex(0),t.nrm(1,"cvc-section-navigation",3),t.j41(2,"div",4),t.nI1(3,"ngrxPush"),t.j41(4,"nz-page-header",5)(5,"nz-page-header-title",6),t.nrm(6,"i",7),t.nI1(7,"entityColor"),t.EFF(8),t.k0s(),t.DNE(9,Z,2,1,"nz-page-header-extra",8),t.j41(10,"nz-page-header-content")(11,"cvc-tab-navigation",9),t.nI1(12,"ngrxPush"),t.DNE(13,H,2,1,"ng-template",null,0,t.C5r),t.k0s(),t.j41(15,"div",10),t.nrm(16,"router-outlet"),t.k0s()()()(),t.bVm()),2&o){const i=_.ngIf,r=t.XpG();t.R7$(),t.Y8G("displayName",i.name),t.R7$(),t.Y8G("flags",t.bMT(3,6,r.flagsTotal$)),t.R7$(4),t.Y8G("nzTwotoneColor",t.bMT(7,8,"VariantGroup")),t.R7$(2),t.SpI(" ",i.name," "),t.R7$(),t.Y8G("ngrxLet",r.viewer$),t.R7$(2),t.Y8G("tabs",t.bMT(12,10,r.tabs$))}}let k=(()=>{class o{constructor(i,r,b){this.gql=i,this.viewerService=r,this.route=b,this.destroy$=new a.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"}],this.viewer$=this.viewerService.viewer$,this.tabs$=new h.t(this.defaultTabs),this.routeSub=this.route.params.subscribe(X=>{let pt=this.gql.watch({variantGroupId:+X.variantGroupId}).valueChanges;this.loading$=pt.pipe((0,z.E)("loading"),(0,T.Z)(!0)),this.variantGroup$=pt.pipe((0,z.E)("data","variantGroup")),this.flagsTotal$=this.variantGroup$.pipe((0,z.E)("flags","totalCount")),this.variantGroup$.pipe((0,I.Q)(this.destroy$)).subscribe({next:B=>{this.tabs$.next(this.defaultTabs.map(N=>"Revisions"===N.tabLabel?{badgeCount:B?.revisions.totalCount,...N}:"Comments"===N.tabLabel?{badgeCount:B?.comments.totalCount,badgeColor:"#cccccc",...N}:N))}}),this.subscribable={id:+X.variantGroupId,entityType:f.V9U.VariantGroup}})}ngOnInit(){}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(r){return new(r||o)(t.rXU(f.IbX),t.rXU(g.q),t.rXU(m.nX))};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-variant-groups-detail"]],decls:2,vars:3,consts:[["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[4,"ngrxLet"],[3,"tabs"],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(r,b){1&r&&(t.DNE(0,w,17,12,"ng-container",2),t.nI1(1,"async")),2&r&&t.Y8G("ngIf",t.bMT(1,1,b.variantGroup$))},dependencies:[n.bT,M.Nj,m.n3,m.Wk,m.wQ,l.Dn,v.Uq,u.WB,u.k9,u.zR,u.ov,E.aO,S.c,V.p,x.U5,x.Dq,O.H,$.v,j.n,Y.o,p.N,D.f,n.Jj,M.L9,d.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})();var q=e(4873);let tt=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,q.A]})}return o})();var nt=e(664);function et(o,_){if(1&o&&t.nrm(0,"cvc-comment-list",1),2&o){const i=t.XpG();t.Y8G("commentable",i.commentable)}}let ot=(()=>{class o{constructor(i){this.route=i,this.routeSub=this.route.params.subscribe(r=>{this.commentable={entityType:f.T31.VariantGroup,id:+r.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(r){return new(r||o)(t.rXU(m.nX))};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-variant-groups-comments"]],decls:1,vars:1,consts:[[3,"commentable",4,"ngIf"],[3,"commentable"]],template:function(r,b){1&r&&t.DNE(0,et,1,1,"cvc-comment-list",0),2&r&&t.Y8G("ngIf",b.commentable)},dependencies:[n.bT,nt.D],styles:["[_nghost-%COMP%]{display:block}"]})}return o})();var at=e(7268);let it=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,at.G]})}return o})();var rt=e(4097);function s(o,_){if(1&o&&t.nrm(0,"cvc-flag-list-and-filter",1),2&o){const i=t.XpG();t.Y8G("flaggable",i.flaggable)}}let C=(()=>{class o{constructor(i){this.route=i,this.routeSub=this.route.params.subscribe(r=>{this.flaggable={entityType:f.lD4.VariantGroup,id:+r.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(r){return new(r||o)(t.rXU(m.nX))};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-variant-groups-flags"]],decls:1,vars:1,consts:[[3,"flaggable",4,"ngIf"],[3,"flaggable"]],template:function(r,b){1&r&&t.DNE(0,s,1,1,"cvc-flag-list-and-filter",0),2&r&&t.Y8G("ngIf",b.flaggable)},dependencies:[n.bT,rt.b],styles:["[_nghost-%COMP%]{display:block}"]})}return o})();var c=e(6371);let G=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,c.O]})}return o})();var R=e(4055);let st=(()=>{class o{constructor(i){this.route=i,this.routeSub=this.route.params.subscribe(r=>{this.subject={id:+r.variantGroupId,entityType:f.BlQ.VariantGroup}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(r){return new(r||o)(t.rXU(m.nX))};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-variant-groups-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(r,b){1&r&&t.nrm(0,"cvc-revisions-list-and-filter",0),2&r&&t.Y8G("moderated",b.subject)},dependencies:[R.B],styles:["[_nghost-%COMP%]{display:block}"]})}return o})();var ct=e(2e3),mt=e(8254),gt=e(9271),lt=e(7391),vt=e(2142),dt=e(1209);let ut=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,x.pc,v.f3,ct.WF,lt.kT,mt.V,gt.l,vt.x,dt.k]})}return o})();var _t=e(6354),ft=e(6719),ht=e(3640),zt=e(7855),Ct=e(9062);function yt(o,_){if(1&o&&(t.j41(0,"p",12),t.EFF(1),t.k0s()),2&o){const i=t.XpG(3).ngIf;t.Y8G("nzEllipsisRows",14),t.R7$(),t.SpI(" ",i.description," ")}}function Tt(o,_){1&o&&t.nrm(0,"cvc-empty-revisable",13)}function Gt(o,_){if(1&o&&(t.j41(0,"nz-descriptions",9)(1,"nz-descriptions-item",10),t.DNE(2,yt,2,2,"p",11)(3,Tt,1,0,"ng-template",null,0,t.C5r),t.k0s()()),2&o){const i=t.sdS(4),r=t.XpG(2).ngIf;t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("ngIf",r.description)("ngIfElse",i)}}function Pt(o,_){1&o&&t.nrm(0,"cvc-source-tag",17),2&o&&t.Y8G("source",_.$implicit)}function Et(o,_){if(1&o&&(t.qex(0),t.j41(1,"cvc-tag-list"),t.DNE(2,Pt,1,1,"cvc-source-tag",16),t.k0s(),t.bVm()),2&o){const i=t.XpG(3).ngIf;t.R7$(2),t.Y8G("ngForOf",i.sources)}}function bt(o,_){1&o&&(t.j41(0,"span",18),t.EFF(1,"None specified"),t.k0s())}function xt(o,_){if(1&o&&(t.j41(0,"nz-descriptions",9)(1,"nz-descriptions-item",14),t.DNE(2,Et,3,1,"ng-container",15)(3,bt,2,0,"ng-template",null,1,t.C5r),t.k0s()()),2&o){const i=t.sdS(4),r=t.XpG(2).ngIf;t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("ngIf",r.sources.length>0)("ngIfElse",i)}}function Dt(o,_){1&o&&(t.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-space",7),t.DNE(3,Gt,5,3,"nz-descriptions",8),t.k0s()(),t.j41(4,"nz-col",6)(5,"nz-space",7),t.DNE(6,xt,5,3,"nz-descriptions",8),t.k0s()()()),2&o&&t.Y8G("nzGutter",16)}function It(o,_){if(1&o&&(t.qex(0),t.nrm(1,"cvc-variants-table",21),t.bVm()),2&o){const i=_.ngrxLet;t.R7$(),t.Mz_("cvcTitle","Variants in Variant Group ",null==i?null:i.name,""),t.Y8G("variantGroupId",null==i?null:i.id)}}function Mt(o,_){if(1&o&&(t.j41(0,"nz-row",5)(1,"nz-col",19),t.DNE(2,It,2,3,"ng-container",20),t.k0s()()),2&o){const i=t.XpG(2);t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("ngrxLet",i.variantGroup$)}}function Ot(o,_){1&o&&(t.j41(0,"nz-space",3),t.DNE(1,Dt,7,1,"nz-row",4)(2,Mt,3,3,"nz-row",4),t.k0s())}let Rt=(()=>{class o{constructor(i,r,b){this.gql=i,this.viewerService=r,this.route=b,this.routeSub=this.route.params.subscribe(X=>{this.viewer$=this.viewerService.viewer$;let B=this.gql.watch({variantGroupId:+X.variantGroupId}).valueChanges;this.subscribableEntity={id:+X.variantGroupId,entityType:f.V9U.VariantGroup},this.variantGroup$=B.pipe((0,z.E)("data","variantGroup")),this.loading$=B.pipe((0,z.E)("loading")),this.myVariantGroupInfo$=this.variantGroup$.pipe((0,z.E)("myVariantGroupInfoDetails"),(0,_t.T)(N=>JSON.parse(String(N))))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(r){return new(r||o)(t.rXU(f.sAe),t.rXU(g.q),t.rXU(m.nX))};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-variant-groups-summary"]],decls:2,vars:3,consts:[["noDescription",""],["noSources",""],["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","12"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[3,"nzSpan"],[4,"ngrxLet"],[3,"variantGroupId","cvcTitle"]],template:function(r,b){1&r&&(t.DNE(0,Ot,3,0,"nz-space",2),t.nI1(1,"ngrxPush")),2&r&&t.Y8G("ngIf",t.bMT(1,1,b.variantGroup$))},dependencies:[n.Sq,n.bT,M.Nj,x.U5,x.Dq,v.Uq,v.e,ct.xA,ct.gr,lt.Di,ft.Q,ht.k,zt.M,Ct.D,M.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return o})();var Vt=e(2385);let St=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,Vt.p]})}return o})();var Ft=e(9543);const $t=[{path:"",component:k,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Rt,data:{breadcrumb:"Summary"}},{path:"comments",component:ot,data:{breadcrumb:"Comments"}},{path:"revisions",component:st,data:{breadcrumb:"Revisions"}},{path:"flags",component:C,data:{breadcrumb:"Flags"}},{path:"events",component:(()=>{class o{constructor(i){this.route=i,this.subscribable={id:+this.route.snapshot.params.variantGroupId,entityType:f.V9U.VariantGroup}}static#t=this.\u0275fac=function(r){return new(r||o)(t.rXU(m.nX))};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-variant-groups-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(r,b){1&r&&t.nrm(0,"cvc-event-feed",0),2&r&&t.Y8G("subscribable",b.subscribable)},dependencies:[Ft.e],styles:["[_nghost-%COMP%]{display:block}"]})}return o})(),data:{breadcrumb:"Events"}}]}];let jt=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[m.iI.forChild($t),ut,tt,G,it,St,m.iI]})}return o})();var Yt=e(4124),Lt=e(5736),Nt=e(1896),Ut=e(1532),Xt=e(8103),Bt=e(4917);let At=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,jt,l.Y3,v.f3,u.ZJ,E.Zw,x.pc,Nt.Y,Bt.i,Yt.C,Lt.V,Ut.W,Xt.m]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/326.0f2f111f3db5a3fd.js b/server/public/326.0f2f111f3db5a3fd.js deleted file mode 100644 index b6938bcba..000000000 --- a/server/public/326.0f2f111f3db5a3fd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[326],{9543:(y,x,a)=>{a.d(x,{e:()=>U});var n=a(1635),C=a(9145),P=a(1413),d=a(5964),g=a(6354),R=a(6977),f=a(9085),I=a(3294),h=a(6697),L=a(5312),E=a(9199),z=a(9894),t=a(3953);const u=()=>[];function F(_,i){if(1&_&&(t.qex(0),t.nrm(1,"cvc-event-timeline",15),t.bVm()),2&_){const e=t.XpG().ngIf,s=t.XpG(3);t.R7$(),t.Y8G("events",e)("tagDisplay",s.tagDisplay)}}function D(_,i){if(1&_){const e=t.RV6();t.j41(0,"div",17)(1,"button",18),t.bIt("click",function(){t.eBV(e);const l=t.XpG().ngIf,m=t.XpG(4);return t.Njj(m.fetchMore(l.endCursor))}),t.EFF(2," Load More "),t.k0s()()}}function c(_,i){if(1&_&&(t.qex(0),t.DNE(1,D,3,0,"div",16),t.bVm()),2&_){const e=i.ngIf;t.R7$(),t.Y8G("ngIf",e.hasNextPage&&e.endCursor)}}function v(_,i){if(1&_&&(t.qex(0),t.j41(1,"nz-row",6)(2,"nz-col",14),t.DNE(3,F,2,2,"ng-container",5)(4,c,2,1,"ng-container",13),t.nI1(5,"ngrxPush"),t.k0s()(),t.bVm()),2&_){const e=i.ngIf,s=t.XpG(3),l=t.sdS(5);t.R7$(),t.Y8G("nzGutter",16),t.R7$(2),t.Y8G("ngIf",e.length)("ngIfElse",l),t.R7$(),t.Y8G("ngIf",t.bMT(5,4,s.pageInfo$))}}function o(_,i){if(1&_){const e=t.RV6();t.j41(0,"nz-badge",21)(1,"button",22),t.bIt("click",function(){t.eBV(e);const l=t.XpG(6);return t.Njj(l.refresh())}),t.EFF(2," New Event(s) "),t.k0s()()}if(2&_){const e=t.XpG().ngrxLet,s=t.XpG(5);t.Y8G("nzCount",e-s.originalEventCount)}}function r(_,i){if(1&_&&(t.qex(0),t.DNE(1,o,3,1,"nz-badge",20),t.bVm()),2&_){const e=i.ngrxLet,s=t.XpG(5);t.R7$(),t.Y8G("ngIf",e&&e>s.originalEventCount)}}function p(_,i){if(1&_&&(t.qex(0),t.DNE(1,r,2,1,"ng-container",19),t.bVm()),2&_){const e=t.XpG(4);t.R7$(),t.Y8G("ngrxLet",e.newEventCount$)}}function T(_,i){if(1&_&&t.DNE(0,p,2,1,"ng-container",13),2&_){const e=t.XpG(3);t.Y8G("ngIf",e.pollForNewEvents&&e.originalEventCount)}}function M(_,i){if(1&_&&(t.j41(0,"nz-card",12),t.DNE(1,v,6,6,"ng-container",13),t.nI1(2,"ngrxPush"),t.DNE(3,T,1,1,"ng-template",null,1,t.C5r),t.k0s()),2&_){const e=t.sdS(4),s=t.XpG(2);t.Y8G("nzTitle",s.showFilters?"Events":void 0)("nzExtra",e),t.R7$(),t.Y8G("ngIf",t.bMT(2,3,s.events$))}}function G(_,i){if(1&_){const e=t.RV6();t.j41(0,"span"),t.EFF(1," Show Child Events "),t.j41(2,"nz-switch",24),t.mxI("ngModelChange",function(l){t.eBV(e);const m=t.XpG(3);return t.DH7(m.showChildren,l)||(m.showChildren=l),t.Njj(l)}),t.bIt("ngModelChange",function(){t.eBV(e);const l=t.XpG(3);return t.Njj(l.onShowChildrenToggle())}),t.k0s()()}if(2&_){const e=t.XpG(3);t.R7$(2),t.R50("ngModel",e.showChildren)}}function S(_,i){1&_&&(t.EFF(0),t.nI1(1,"eventVerbiage")),2&_&&t.SpI(" ",t.i5U(1,1,i.$implicit.id,"action-filter")," ")}function B(_,i){if(1&_&&t.nrm(0,"nz-avatar",30),2&_){const e=t.XpG().$implicit;t.Y8G("nzSrc",e.profileImagePath)}}function A(_,i){if(1&_&&(t.nrm(0,"nz-avatar",31),t.nI1(1,"uppercase")),2&_){const e=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,e.displayName.charAt(0)))}}function O(_,i){if(1&_&&(t.DNE(0,B,1,1,"nz-avatar",29)(1,A,2,3,"ng-template",null,3,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&_){const e=i.$implicit,s=t.sdS(2);t.Y8G("ngIf",e.profileImagePath)("ngIfElse",s),t.R7$(4),t.JRh(e.displayName)}}function K(_,i){if(1&_){const e=t.RV6();t.j41(0,"cvc-participant-list",28),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(l){t.eBV(e);const m=t.XpG(4);return t.Njj(m.onOriginatingUserSelected(l))}),t.DNE(2,O,5,3,"ng-template",null,2,t.C5r),t.k0s()}if(2&_){const e=t.XpG(4);t.Y8G("participantList",t.bMT(1,1,e.participants$)||t.lJ4(3,u))}}function j(_,i){if(1&_&&(t.j41(0,"nz-col"),t.EFF(1),t.k0s()),2&_){const e=i.$implicit;t.R7$(),t.SpI(" ",e.name," ")}}function $(_,i){if(1&_){const e=t.RV6();t.j41(0,"cvc-participant-list",32),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(l){t.eBV(e);const m=t.XpG(4);return t.Njj(m.onOrganizationSelected(l))}),t.DNE(2,j,2,1,"ng-template",null,2,t.C5r),t.k0s()}if(2&_){const e=t.XpG(4);t.Y8G("participantList",t.bMT(1,1,e.organizations$)||t.lJ4(3,u))}}function W(_,i){if(1&_){const e=t.RV6();t.qex(0),t.j41(1,"cvc-participant-list",25),t.nI1(2,"ngrxPush"),t.bIt("participantSelectedEvent",function(l){t.eBV(e);const m=t.XpG(3);return t.Njj(m.onActionSelected(l))}),t.DNE(3,S,2,4,"ng-template",null,2,t.C5r),t.k0s(),t.DNE(5,K,4,4,"cvc-participant-list",26)(6,$,4,4,"cvc-participant-list",27),t.bVm()}if(2&_){const e=t.XpG(3);t.R7$(),t.Y8G("participantList",t.bMT(2,3,e.actions$)||t.lJ4(5,u)),t.R7$(4),t.Y8G("ngIf",!e.userId),t.R7$(),t.Y8G("ngIf",!e.organizationId)}}function N(_,i){1&_&&(t.j41(0,"nz-space",8),t.DNE(1,G,3,1,"span",23)(2,W,7,6,"ng-container",23),t.k0s())}function V(_,i){if(1&_&&(t.qex(0),t.j41(1,"nz-row",6)(2,"nz-col",7)(3,"nz-space",8),t.DNE(4,M,5,5,"nz-card",9),t.k0s()(),t.j41(5,"nz-col",10),t.DNE(6,N,3,0,"nz-space",11),t.k0s()(),t.bVm()),2&_){const e=t.XpG();t.R7$(),t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",e.showFilters?"18":"24"),t.R7$(4),t.Y8G("ngIf",e.showFilters)}}function X(_,i){1&_&&t.nrm(0,"nz-empty",33)}let U=class b{constructor(i,e){this.gql=i,this.eventCountGql=e,this.tagDisplay="displayAll",this.mode=C.Qt1.Subject,this.showFilters=!0,this.pageSize=15,this.pollForNewEvents=!0,this.includeAutomatedEvents=!0,this.destroy$=new P.B,this.showChildren=!1}ngOnInit(){this.initialQueryVars={subject:this.subscribable,organizationId:this.organizationId,originatingUserId:this.userId,first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:this.includeAutomatedEvents},this.queryRef=this.gql.watch(this.initialQueryVars),this.pollForNewEvents&&L.c.production&&(this.newEventCount$=this.eventCountGql.watch(this.initialQueryVars,{fetchPolicy:"no-cache",pollInterval:3e4}).valueChanges.pipe((0,d.p)(E.kP),(0,g.T)(({data:i})=>i?.events?.unfilteredCount),(0,R.Q)(this.destroy$))),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,g.T)(({data:i})=>i.events.pageInfo)),this.events$=this.results$.pipe((0,f.E)("data","events","edges"),(0,d.p)(E.kP),(0,g.T)(i=>i.map(e=>e.node))),this.loading$=this.results$.pipe((0,g.T)(({loading:i})=>i),(0,I.F)()),this.unfilteredCount$=this.results$.pipe((0,g.T)(i=>i.data),(0,d.p)(E.kP),(0,g.T)(({events:i})=>i.unfilteredCount)),this.unfilteredCount$.pipe((0,h.s)(1),(0,z.s)(this)).subscribe(i=>this.originalEventCount=i),this.showFilters&&(this.participants$=this.results$.pipe((0,d.p)(E.kP),(0,g.T)(({data:i})=>i.events.uniqueParticipants)),this.organizations$=this.results$.pipe((0,d.p)(E.kP),(0,g.T)(({data:i})=>i.events.participatingOrganizations)),this.actions$=this.results$.pipe((0,d.p)(E.kP),(0,g.T)(({data:i})=>i.events?.eventTypes?.map(e=>({id:e}))||[])))}fetchMore(i){this.queryRef.fetchMore({variables:{first:this.pageSize,after:i}})}onOrganizationSelected(i){this.queryRef.refetch({organizationId:i?.id,showFilters:this.showFilters})}onActionSelected(i){this.queryRef.refetch({eventType:i?i.id:void 0,showFilters:this.showFilters})}onOriginatingUserSelected(i){this.queryRef.refetch({originatingUserId:i?.id,showFilters:this.showFilters})}refresh(){this.queryRef.refetch().then(({data:i})=>{this.originalEventCount=i.events.unfilteredCount})}onShowChildrenToggle(){let i;this.subscribable?(i={id:this.subscribable.id,entityType:this.subscribable.entityType,includeChildren:this.showChildren},this.tagDisplay=this.showChildren?"displayAll":"hideSubject"):i=void 0,this.queryRef.refetch({...this.initialQueryVars,subject:i,showFilters:this.showFilters})}ngOnDestroy(){this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(e){return new(e||b)(t.rXU(C.XxZ),t.rXU(C.Ei5))};static#n=this.\u0275cmp=t.VBU({type:b,selectors:[["cvc-event-feed"]],inputs:{subscribable:"subscribable",subscribableName:"subscribableName",organizationId:"organizationId",userId:"userId",tagDisplay:"tagDisplay",mode:"mode",showFilters:"showFilters",pageSize:"pageSize",pollForNewEvents:"pollForNewEvents",includeAutomatedEvents:"includeAutomatedEvents"},decls:6,vars:7,consts:[["noEvents",""],["refreshFeed",""],["itemTemplate",""],["noAvatar",""],["nzTip","Loading",3,"nzSpinning"],[4,"ngIf","ngIfElse"],[3,"nzGutter"],[3,"nzSpan"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSpan","6"],["nzDirection","vertical","style","width: 100%",4,"ngIf"],[3,"nzTitle","nzExtra"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"],[4,"ngrxLet"],[3,"nzCount",4,"ngIf"],[3,"nzCount"],["nz-button","","nz-tooltip","Click to Refresh",3,"click"],[4,"nzSpaceItem"],["nzSize","small",3,"ngModelChange","ngModel"],["listTitle","Action",3,"participantSelectedEvent","participantList"],["listTitle","Curator",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Organization",3,"participantList","participantSelectedEvent",4,"ngIf"],["listTitle","Curator",3,"participantSelectedEvent","participantList"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Organization",3,"participantSelectedEvent","participantList"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(e,s){if(1&e&&(t.j41(0,"nz-spin",4),t.nI1(1,"ngrxPush"),t.DNE(2,V,7,3,"ng-container",5),t.nI1(3,"ngrxPush"),t.DNE(4,X,1,0,"ng-template",null,0,t.C5r),t.k0s()),2&e){const l=t.sdS(5);t.Y8G("nzSpinning",t.bMT(1,3,s.loading$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,5,s.unfilteredCount$))("ngIfElse",l)}},styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}#event-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#event-filters[_ngcontent-%COMP%] #participant-filter[_ngcontent-%COMP%]{width:200px}#event-filters[_ngcontent-%COMP%] #organization-filter[_ngcontent-%COMP%]{width:250px}"]})};U=(0,n.Cg)([(0,z.d)()],U)},326:(y,x,a)=>{a.d(x,{p:()=>A});var n=a(177),C=a(9543),P=a(1774),d=a(5703),g=a(5103),R=a(8927),f=a(9417),I=a(7481),h=a(7529),L=a(1997),E=a(2172),z=a(513),t=a(4917),u=a(7685),F=a(2968),D=a(9438),c=a(1672),v=a(2983),o=a(3146),r=a(5154),p=a(3953),T=a(6389),M=a(5930),G=a(9588),S=a(9365),B=a(7793);let A=(()=>{class O{static#t=this.\u0275fac=function($){return new($||O)};static#n=this.\u0275mod=p.$C({type:O});static#e=this.\u0275inj=p.G2t({imports:[n.MD,f.YN,z.Zw,d.Ti,g.Y3,R.PQ,L.DH,I.$,h.f3,u.pc,c._v,D.Yb,v.V,o.W2,r.Qt,E.a,t.i,F.K,t.i]})}return O})();p.wjB(C.e,[n.bT,f.BC,f.vS,P.Nj,z.aO,T.c,M.p,d.cK,h.Uq,h.e,I.u,u.U5,u.Dq,c.RW,D.PM,v.a,o.dz,r.LH,G.p,S.T],[n.Pc,P.L9,B.s])},9365:(y,x,a)=>{a.d(x,{T:()=>D});var n=a(3953),C=a(177),P=a(5703),d=a(2617),g=a(5103),R=a(513),f=a(6389),I=a(5930);const h=["itemTemplate"],L=c=>({$implicit:c});function E(c,v){if(1&c){const o=n.RV6();n.j41(0,"nz-list-item",5),n.bIt("click",function(){n.eBV(o);const p=n.XpG().$implicit,T=n.XpG(2);return n.Njj(T.onParticipantSelected(p))}),n.eu8(1,6),n.k0s()}if(2&c){const o=n.XpG().$implicit,r=n.XpG(2);n.AVh("selected-participant",o.id==(null==r.selectedItem?null:r.selectedItem.id)),n.R7$(),n.Y8G("ngTemplateOutlet",r.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(4,L,o))}}function z(c,v){if(1&c&&(n.qex(0),n.DNE(1,E,2,6,"nz-list-item",4),n.bVm()),2&c){const o=v.index,r=n.XpG(2);n.R7$(),n.Y8G("ngIf",o+1<=r.defaultListSize)}}function t(c,v){if(1&c){const o=n.RV6();n.j41(0,"button",7),n.bIt("click",function(){n.eBV(o);const p=n.XpG(2);return n.Njj(p.onExpandClicked())}),n.nrm(1,"i",8),n.EFF(2," Expand "),n.k0s()}}function u(c,v){if(1&c){const o=n.RV6();n.j41(0,"button",7),n.bIt("click",function(){n.eBV(o);const p=n.XpG(2);return n.Njj(p.onCollapseClicked())}),n.nrm(1,"i",9),n.EFF(2," Collapse "),n.k0s()}}function F(c,v){if(1&c&&(n.qex(0),n.j41(1,"nz-card",1)(2,"nz-list"),n.DNE(3,z,2,1,"ng-container",2),n.k0s(),n.DNE(4,t,3,0,"button",3)(5,u,3,0,"button",3),n.k0s(),n.bVm()),2&c){const o=n.XpG();n.R7$(),n.Y8G("nzTitle",o.listTitle),n.R7$(2),n.Y8G("ngForOf",o.participantList),n.R7$(),n.Y8G("ngIf",o.participantList.length>o.defaultListSize),n.R7$(),n.Y8G("ngIf",o.isExpanded)}}let D=(()=>{class c{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new n.bkB,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(o){this.selectedItem=o.id==this.selectedItem?.id?void 0:o,this.participantSelectedEvent.emit(this.selectedItem)}onExpandClicked(){this.originalDefaultListSize=this.defaultListSize,this.defaultListSize=this.participantList.length,this.isExpanded=!0}onCollapseClicked(){this.originalDefaultListSize&&(this.defaultListSize=this.originalDefaultListSize,this.isExpanded=!1)}static#t=this.\u0275fac=function(r){return new(r||c)};static#n=this.\u0275cmp=n.VBU({type:c,selectors:[["cvc-participant-list"]],contentQueries:function(r,p,T){if(1&r&&n.wni(T,h,5),2&r){let M;n.mGM(M=n.lsd())&&(p.itemTemplateRef=M.first)}},inputs:{participantList:"participantList",listTitle:"listTitle",defaultListSize:"defaultListSize",preselectedOption:"preselectedOption"},outputs:{participantSelectedEvent:"participantSelectedEvent"},decls:1,vars:1,consts:[[4,"ngIf"],["nz-type","inner",2,"margin-bottom","1em",3,"nzTitle"],[4,"ngFor","ngForOf"],["nz-button","","nzType","default","nzSize","small",3,"click",4,"ngIf"],["nzSize","small","class","participant-list-item",3,"selected-participant","click",4,"ngIf"],["nzSize","small",1,"participant-list-item",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","vertical-align-bottom"],["nz-icon","","nzType","vertical-align-top"]],template:function(r,p){1&r&&n.DNE(0,F,6,4,"ng-container",0),2&r&&n.Y8G("ngIf",p.participantList&&p.participantList.length>0)},dependencies:[C.Sq,C.bT,C.T3,P.cK,d.eE,d.lQ,g.Dn,R.aO,f.c,I.p],styles:[".participant-list-item[_ngcontent-%COMP%]:hover{border:1px solid #40a9ff;cursor:pointer}.participant-list-item[_ngcontent-%COMP%]{padding:2px;margin:2px}.selected-participant[_ngcontent-%COMP%]{background:#40a9ff;color:#fff}"]})}return c})()}}]); \ No newline at end of file diff --git a/server/public/3428.eeb00a3f80b3d9a5.js b/server/public/3428.eeb00a3f80b3d9a5.js deleted file mode 100644 index 2030a945c..000000000 --- a/server/public/3428.eeb00a3f80b3d9a5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3428],{6440:(V,b,i)=>{i.d(b,{r:()=>B});var e=i(3953),u=i(177),t=i(1188),h=i(5699),z=i(5103),y=i(1236),O=i(9199),v=i(6354),j=i(5964),x=i(9145),G=i(5703),F=i(7529),E=i(2e3),L=i(7679),T=i(9162),w=i(1774);const g=(s,d)=>({displayName:s,profileImagePath:d});function S(s,d){if(1&s&&(e.nrm(0,"cvc-user-avatar",12),e.j41(1,"span",13),e.EFF(2),e.k0s()),2&s){const c=e.XpG().ngIf;e.Y8G("user",e.l_i(2,g,c.name,c.profileImagePath)),e.R7$(2),e.JRh(c.name)}}function l(s,d){if(1&s&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&s){const c=d.ngIf;e.R7$(),e.JRh(c)}}function f(s,d){if(1&s&&(e.qex(0),e.j41(1,"cvc-link-tag",14),e.EFF(2),e.k0s(),e.bVm()),2&s){const c=e.XpG().ngIf;e.R7$(),e.Y8G("href",c.url),e.R7$(),e.SpI(" ",c.name," ")}}function _(s,d){if(1&s&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,S,3,5,"ng-template",null,2,e.C5r),e.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),e.DNE(8,l,2,1,"span",9),e.k0s()()()(),e.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),e.DNE(11,f,3,2,"ng-container",9),e.k0s()()(),e.bVm()),2&s){const c=d.ngIf,m=e.sdS(3);e.XpG();const I=e.sdS(4),$=e.sdS(6);e.R7$(),e.Y8G("nzTitle",m),e.R7$(7),e.Y8G("ngIf",c.description)("ngIfElse",I),e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("ngIf",c.url)("ngIfElse",$)}}function M(s,d){1&s&&e.EFF(0," Organization has not provided a description.\n")}function D(s,d){1&s&&e.EFF(0," -- ")}let U=(()=>{class s{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,v.T)(({data:c})=>c?.organization),(0,j.p)(O.kP))}static#t=this.\u0275fac=function(m){return new(m||s)(e.rXU(x.I8L))};static#e=this.\u0275cmp=e.VBU({type:s,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(m,I){1&m&&(e.j41(0,"div",3),e.DNE(1,_,12,6,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s(),e.DNE(3,M,1,0,"ng-template",null,0,e.C5r)(5,D,1,0,"ng-template",null,1,e.C5r)),2&m&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,I.org$)))},dependencies:[u.bT,G.cK,F.Uq,F.e,E.xA,E.gr,L.a,T.G,w.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return s})();function H(s,d){}function W(s,d){if(1&s&&(e.qex(0),e.j41(1,"a",5),e.DNE(2,H,0,0,"ng-template",6),e.k0s(),e.bVm()),2&s){const c=e.XpG(),m=e.sdS(2);e.R7$(),e.Mz_("routerLink","/organizations/",c.org.id,""),e.R7$(),e.Y8G("ngTemplateOutlet",m)}}function K(s,d){}function Q(s,d){if(1&s&&e.nrm(0,"cvc-organization-popover",9),2&s){const c=e.XpG(3);e.Y8G("orgId",c.org.id)}}function N(s,d){if(1&s&&e.DNE(0,Q,1,1,"cvc-organization-popover",8),2&s){const c=e.XpG(2);e.Y8G("ngIf",c.enablePopover)}}function k(s,d){if(1&s&&(e.j41(0,"nz-tag",7),e.DNE(1,K,0,0,"ng-template",6),e.k0s(),e.DNE(2,N,1,1,"ng-template",null,3,e.C5r)),2&s){const c=e.sdS(3);e.XpG();const m=e.sdS(6);e.Y8G("nzPopoverContent",c),e.R7$(),e.Y8G("ngTemplateOutlet",m)}}function J(s,d){}function A(s,d){if(1&s&&e.DNE(0,J,0,0,"ng-template",6),2&s){e.XpG();const c=e.sdS(2);e.Y8G("ngTemplateOutlet",c)}}function Z(s,d){if(1&s&&(e.nrm(0,"i",10),e.EFF(1)),2&s){const c=e.XpG();e.R7$(),e.SpI(" ",c.org.name,"\n")}}let B=(()=>{class s{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}static#t=this.\u0275fac=function(m){return new(m||s)};static#e=this.\u0275cmp=e.VBU({type:s,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(m,I){if(1&m&&e.DNE(0,W,3,3,"ng-container",4)(1,k,4,2,"ng-template",null,0,e.C5r)(3,A,1,1,"ng-template",null,1,e.C5r)(5,Z,2,1,"ng-template",null,2,e.C5r),2&m){const $=e.sdS(4);e.Y8G("ngIf",I.linked)("ngIfElse",$)}},dependencies:[u.bT,u.T3,t.Wk,h.s,z.Dn,y.L_,U],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return s})()},9365:(V,b,i)=>{i.d(b,{T:()=>w});var e=i(3953),u=i(177),t=i(5703),h=i(2617),z=i(5103),y=i(513),O=i(6389),v=i(5930);const j=["itemTemplate"],x=g=>({$implicit:g});function G(g,S){if(1&g){const l=e.RV6();e.j41(0,"nz-list-item",5),e.bIt("click",function(){e.eBV(l);const _=e.XpG().$implicit,M=e.XpG(2);return e.Njj(M.onParticipantSelected(_))}),e.eu8(1,6),e.k0s()}if(2&g){const l=e.XpG().$implicit,f=e.XpG(2);e.AVh("selected-participant",l.id==(null==f.selectedItem?null:f.selectedItem.id)),e.R7$(),e.Y8G("ngTemplateOutlet",f.itemTemplateRef||null)("ngTemplateOutletContext",e.eq3(4,x,l))}}function F(g,S){if(1&g&&(e.qex(0),e.DNE(1,G,2,6,"nz-list-item",4),e.bVm()),2&g){const l=S.index,f=e.XpG(2);e.R7$(),e.Y8G("ngIf",l+1<=f.defaultListSize)}}function E(g,S){if(1&g){const l=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(l);const _=e.XpG(2);return e.Njj(_.onExpandClicked())}),e.nrm(1,"i",8),e.EFF(2," Expand "),e.k0s()}}function L(g,S){if(1&g){const l=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(l);const _=e.XpG(2);return e.Njj(_.onCollapseClicked())}),e.nrm(1,"i",9),e.EFF(2," Collapse "),e.k0s()}}function T(g,S){if(1&g&&(e.qex(0),e.j41(1,"nz-card",1)(2,"nz-list"),e.DNE(3,F,2,1,"ng-container",2),e.k0s(),e.DNE(4,E,3,0,"button",3)(5,L,3,0,"button",3),e.k0s(),e.bVm()),2&g){const l=e.XpG();e.R7$(),e.Y8G("nzTitle",l.listTitle),e.R7$(2),e.Y8G("ngForOf",l.participantList),e.R7$(),e.Y8G("ngIf",l.participantList.length>l.defaultListSize),e.R7$(),e.Y8G("ngIf",l.isExpanded)}}let w=(()=>{class g{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new e.bkB,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(l){this.selectedItem=l.id==this.selectedItem?.id?void 0:l,this.participantSelectedEvent.emit(this.selectedItem)}onExpandClicked(){this.originalDefaultListSize=this.defaultListSize,this.defaultListSize=this.participantList.length,this.isExpanded=!0}onCollapseClicked(){this.originalDefaultListSize&&(this.defaultListSize=this.originalDefaultListSize,this.isExpanded=!1)}static#t=this.\u0275fac=function(f){return new(f||g)};static#e=this.\u0275cmp=e.VBU({type:g,selectors:[["cvc-participant-list"]],contentQueries:function(f,_,M){if(1&f&&e.wni(M,j,5),2&f){let D;e.mGM(D=e.lsd())&&(_.itemTemplateRef=D.first)}},inputs:{participantList:"participantList",listTitle:"listTitle",defaultListSize:"defaultListSize",preselectedOption:"preselectedOption"},outputs:{participantSelectedEvent:"participantSelectedEvent"},decls:1,vars:1,consts:[[4,"ngIf"],["nz-type","inner",2,"margin-bottom","1em",3,"nzTitle"],[4,"ngFor","ngForOf"],["nz-button","","nzType","default","nzSize","small",3,"click",4,"ngIf"],["nzSize","small","class","participant-list-item",3,"selected-participant","click",4,"ngIf"],["nzSize","small",1,"participant-list-item",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","vertical-align-bottom"],["nz-icon","","nzType","vertical-align-top"]],template:function(f,_){1&f&&e.DNE(0,T,6,4,"ng-container",0),2&f&&e.Y8G("ngIf",_.participantList&&_.participantList.length>0)},dependencies:[u.Sq,u.bT,u.T3,t.cK,h.eE,h.lQ,z.Dn,y.aO,O.c,v.p],styles:[".participant-list-item[_ngcontent-%COMP%]:hover{border:1px solid #40a9ff;cursor:pointer}.participant-list-item[_ngcontent-%COMP%]{padding:2px;margin:2px}.selected-participant[_ngcontent-%COMP%]{background:#40a9ff;color:#fff}"]})}return g})()},2968:(V,b,i)=>{i.d(b,{K:()=>O});var e=i(177),u=i(5703),t=i(2617),h=i(5103),z=i(513),y=i(3953);let O=(()=>{class v{static#t=this.\u0275fac=function(G){return new(G||v)};static#e=this.\u0275mod=y.$C({type:v});static#n=this.\u0275inj=y.G2t({imports:[e.MD,u.Ti,t.rD,h.Y3,z.Zw]})}return v})()},1162:(V,b,i)=>{i.r(b),i.d(b,{SourcesModule:()=>de});var e=i(177),u=i(1188),t=i(3953),h=i(3062),z=i(5103),y=i(9765),O=i(1635),v=i(9417),j=i(1226),x=i(9894);const F=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{key:"clientMutationId",props:{hidden:!0}},{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Submit Source Suggestion"}},fieldGroup:[{key:"molecularProfileId",type:"molecular-profile-select",props:{required:!1,description:"Select a Molecular Profile for this Source Suggestion, if applicable.",watchVariantMolecularProfileId:!0}},{key:"diseaseId",type:"disease-select",props:{}},{key:"sourceId",type:"source-select",wrappers:["form-field"],props:{required:!0}}]},{wrappers:["form-footer"],fieldGroup:[{key:"comment",type:"textarea",props:{label:"Comment",required:!0,minLength:10}},{type:"cvc-cancel-button"},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Submit Source Suggestion"}}]}]}];var E=i(6354),T=i(9145),w=i(4222),g=i(8927),S=i(3617),l=i(8524),f=i(8721),_=i(1774);function M(n,r){if(1&n&&t.nrm(0,"nz-alert",7),2&n){t.XpG();const o=t.sdS(3);t.Y8G("nzMessage",o)}}function D(n,r){1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(2," This Source has been marked as fully curated by an Editor. Please double check that you still wish to submit a new Suggestion for it. "),t.k0s()())}function U(n,r){if(1&n&&(t.qex(0),t.DNE(1,M,1,1,"nz-alert",6)(2,D,3,0,"ng-template",null,1,t.C5r),t.nrm(4,"br"),t.bVm()),2&n){const o=r.ngIf;t.R7$(),t.Y8G("ngIf",o)}}function H(n,r){if(1&n&&t.nrm(0,"nz-alert",7),2&n){t.XpG();const o=t.sdS(3);t.Y8G("nzMessage",o)}}function W(n,r){1&n&&(t.j41(0,"p")(1,"strong"),t.EFF(2," This Source has already been Suggested. Please double check that you still wish to submit a new Suggestion for it. "),t.k0s()())}function K(n,r){if(1&n&&(t.qex(0),t.DNE(1,H,1,1,"nz-alert",6)(2,W,3,0,"ng-template",null,1,t.C5r),t.nrm(4,"br"),t.bVm()),2&n){const o=r.ngIf;t.R7$(),t.Y8G("ngIf",o)}}function Q(n,r){if(1&n&&(t.EFF(0," You will be redirected shortly or you may view your Source Suggestion "),t.j41(1,"a",8),t.EFF(2,"here"),t.k0s(),t.EFF(3,". ")),2&n){const o=t.XpG();t.R7$(),t.Y8G("href",o.url,t.B4B)}}let N=class ot{constructor(r,o,a){this.submitSourceGQL=r,this.sourceChecksGQL=o,this.form=new v.J3({}),this.model={fields:{}},this.fields=F,this.submitSourceMutator=new j.E(a)}ngOnInit(){this.url="/curation/queues/pending-sources",this.suggestionChecksQueryRef=this.sourceChecksGQL.watch({sourceId:0}),this.fullyCuratedSource$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,E.T)(r=>r.data?.source?.fullyCurated),(0,x.s)(this)),this.existingSourceSuggestion$=this.suggestionChecksQueryRef?.valueChanges.pipe((0,E.T)(r=>{const o=r.data?.sourceSuggestions?.filteredCount;return!!o&&o>0}),(0,x.s)(this))}onModelChange(r){r.fields.sourceId!=this.selectedSourceId&&(this.selectedSourceId=r.fields.sourceId,this.suggestionChecksQueryRef?.refetch(this.selectedSourceId?{sourceId:this.selectedSourceId}:{sourceId:0}))}onSubmit(r){const o=function L(n){const r=n.fields;if(![n.comment,r.sourceId].find(a=>void 0===a))return{sourceId:r.sourceId,molecularProfileId:r.molecularProfileId,diseaseId:r.diseaseId,organizationId:n.organizationId,comment:n.comment}}(r);o&&(this.mutationState=this.submitSourceMutator.mutate(this.submitSourceGQL,{input:o},void 0,a=>{this.newSourceId=a.suggestSource?.sourceSuggestion.id}))}static#t=this.\u0275fac=function(o){return new(o||ot)(t.rXU(T.gtA),t.rXU(T.bOY),t.rXU(w.N))};static#e=this.\u0275cmp=t.VBU({type:ot,selectors:[["cvc-source-submit-form"]],decls:9,vars:13,consts:[["success",""],["fullyCuratedAlert",""],[4,"ngIf"],["entityType","Source",3,"mutationState","redirectUrl","successMessage"],["nz-form","","nzLayout","vertical",3,"ngSubmit","formGroup"],[3,"modelChange","form","fields","model"],["nzType","warning",3,"nzMessage",4,"ngIf"],["nzType","warning",3,"nzMessage"],[3,"href"]],template:function(o,a){if(1&o){const p=t.RV6();t.DNE(0,U,5,1,"ng-container",2),t.nI1(1,"ngrxPush"),t.DNE(2,K,5,1,"ng-container",2),t.nI1(3,"ngrxPush"),t.j41(4,"cvc-form-submission-status-display",3),t.DNE(5,Q,4,1,"ng-template",null,0,t.C5r),t.j41(7,"form",4),t.bIt("ngSubmit",function(){return t.eBV(p),t.Njj(a.onSubmit(a.model))}),t.j41(8,"formly-form",5),t.bIt("modelChange",function(P){return t.eBV(p),a.model=P,t.Njj(a.onModelChange(P))}),t.k0s()()()}if(2&o){const p=t.sdS(6);t.Y8G("ngIf",t.bMT(1,9,a.fullyCuratedSource$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,11,a.existingSourceSuggestion$)),t.R7$(2),t.Y8G("mutationState",a.mutationState)("redirectUrl",a.url)("successMessage",p),t.R7$(3),t.Y8G("formGroup",a.form),t.R7$(),t.Y8G("form",a.form)("fields",a.fields)("model",a.model)}},dependencies:[e.bT,g.CA,S.Y,v.qT,v.cb,v.j4,l.aF,f.G,_.L9]})};N=(0,O.Cg)([(0,x.d)()],N);var k=i(3075);let J=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-source-add-page"]],decls:11,vars:3,consts:[["displayName","New"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[1,"content"]],template:function(a,p){1&a&&(t.nrm(0,"cvc-section-navigation",0),t.j41(1,"nz-page-header",1)(2,"nz-page-header-title"),t.nrm(3,"i",2),t.nI1(4,"entityColor"),t.EFF(5," Add a Source Suggestion "),t.k0s(),t.j41(6,"nz-page-header-subtitle"),t.EFF(7," Submit a promising source for curation "),t.k0s(),t.j41(8,"nz-page-header-content")(9,"div",3),t.nrm(10,"cvc-source-submit-form"),t.k0s()()()),2&a&&(t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(4,1,"Assertion")))},dependencies:[h.WB,h.k9,h.CO,h.zR,z.Dn,y.n,N,k.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var A=i(1413),Z=i(4412),B=i(9172),s=i(6977),d=i(4608),c=i(1305),m=i(513),I=i(6389),$=i(5930),it=i(5699),at=i(7679),ct=i(9945);function lt(n,r){1&n&&(t.j41(0,"button",11),t.nrm(1,"i",12),t.EFF(2," Suggest a New Source "),t.k0s())}function pt(n,r){if(1&n&&(t.qex(0),t.DNE(1,lt,3,0,"button",10),t.bVm()),2&n){const o=r.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function gt(n,r){if(1&n&&t.DNE(0,pt,2,1,"ng-container",9),2&n){const o=t.XpG(2);t.Y8G("ngrxLet",o.viewer$)}}function dt(n,r){1&n&&(t.j41(0,"nz-tag",13),t.EFF(1," Fully Curated "),t.k0s())}function ut(n,r){if(1&n&&(t.j41(0,"cvc-link-tag",14),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.Y8G("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.R7$(),t.SpI(" ",o.displayType+":"+o.citationId," ")}}function mt(n,r){if(1&n&&(t.qex(0),t.nrm(1,"cvc-section-navigation",2),t.DNE(2,gt,1,1,"ng-template",null,0,t.C5r),t.j41(4,"nz-page-header",3)(5,"nz-page-header-title"),t.nrm(6,"i",4),t.nI1(7,"entityColor"),t.EFF(8),t.k0s(),t.j41(9,"nz-page-header-extra"),t.DNE(10,dt,2,0,"nz-tag",5)(11,ut,2,3,"cvc-link-tag",6),t.k0s(),t.j41(12,"nz-page-header-content"),t.nrm(13,"cvc-tab-navigation",7),t.nI1(14,"ngrxPush"),t.j41(15,"div",8),t.nrm(16,"router-outlet"),t.k0s()()(),t.bVm()),2&n){const o=r.ngIf,a=t.sdS(3),p=t.XpG();t.R7$(),t.Y8G("displayName",o.citation)("actionsTpl",a),t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(7,7,"Source")),t.R7$(2),t.SpI(" ",o.citation," "),t.R7$(2),t.Y8G("ngIf",o.fullyCurated),t.R7$(),t.Y8G("ngIf",o.sourceUrl),t.R7$(2),t.Y8G("tabs",t.bMT(14,9,p.tabs$))}}let ht=(()=>{class n{constructor(o,a,p){this.viewerService=o,this.route=a,this.gql=p,this.destroy$=new A.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"}],this.tabs$=new Z.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(C=>{this.sourceId=+C.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let P=this.queryRef.valueChanges;this.loading$=P.pipe((0,d.E)("loading"),(0,B.Z)(!0)),this.source$=P.pipe((0,d.E)("data","source")),this.source$.pipe((0,s.Q)(this.destroy$)).subscribe({next:ue=>{this.tabs$.next(this.defaultTabs.map(nt=>"Comments"===nt.tabLabel?{badgeCount:ue?.comments.totalCount,badgeColor:"#cccccc",...nt}:nt))}})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(c.q),t.rXU(u.nX),t.rXU(T.Psd))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-detail"]],decls:2,vars:3,consts:[["sourcesActions",""],[4,"ngIf"],[3,"displayName","actionsTpl"],[1,"site-page-header"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nzColor","success",4,"ngIf"],[3,"href","tooltip",4,"ngIf"],[3,"tabs"],[1,"content"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nzColor","success"],[3,"href","tooltip"]],template:function(a,p){1&a&&(t.DNE(0,mt,17,11,"ng-container",1),t.nI1(1,"ngrxPush")),2&a&&t.Y8G("ngIf",t.bMT(1,1,p.source$))},dependencies:[e.bT,u.n3,u.Wk,_.Nj,h.WB,h.k9,h.zR,h.ov,m.aO,I.c,$.p,z.Dn,it.s,y.n,at.a,ct.N,_.L9,k.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var R=i(7529),X=i(7391),Y=i(7685),ft=i(4644);function _t(n,r){1&n&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Suggest a New Source "),t.k0s())}function zt(n,r){if(1&n&&(t.qex(0),t.DNE(1,_t,3,0,"button",17),t.bVm()),2&n){const o=r.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function vt(n,r){if(1&n&&t.DNE(0,zt,2,1,"ng-container",16),2&n){const o=t.XpG();t.Y8G("ngrxLet",o.viewer$)}}function Ct(n,r){1&n&&(t.j41(0,"a",20),t.nrm(1,"i",21),t.EFF(2," View Source Docs "),t.k0s())}function yt(n,r){1&n&&(t.j41(0,"a",22),t.nrm(1,"i",21),t.EFF(2," View Source Curation Docs "),t.k0s())}let St=(()=>{class n{constructor(o){this.viewerService=o,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(c.q))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["sources-home"]],decls:22,vars:6,consts:[["sourcesActions",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Sources"],[4,"ngrxLet"],["routerLink","/sources/add","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/sources/add","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence/source.html#curating-source","target","_blank","nzSize","small","nzBlock",""]],template:function(a,p){if(1&a&&(t.nrm(0,"cvc-section-navigation",1),t.DNE(1,vt,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t.nrm(7,"i",5),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",6)(10,"h2"),t.EFF(11,"Sources"),t.k0s(),t.j41(12,"p",7),t.EFF(13," Each Evidence Item is associated with a Source which supports the Item's clinical claims. CIViC accepts publications known to PubMed or abstracts published through the American Society of Clinical Oncology. "),t.k0s()(),t.j41(14,"nz-col",8)(15,"nz-space",9),t.DNE(16,Ct,3,0,"a",10)(17,yt,3,0,"a",11),t.k0s()()(),t.j41(18,"div",12)(19,"div",13)(20,"div",14),t.nrm(21,"cvc-sources-table",15),t.k0s()()()()()),2&a){const C=t.sdS(2);t.Y8G("actionsTpl",C),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"Source")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[e.bT,u.Wk,_.Nj,h.WB,h.zR,z.Dn,R.Uq,R.e,m.aO,I.c,$.p,X.Di,Y.U5,Y.Dq,y.n,ft.y,k.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var rt=i(5154),q=i(2e3),Tt=i(3386);let bt=(()=>{class n{set cvcAutoHeightDiv(o){const a=parseInt(o,0);!isNaN(a)&&a>=0&&(this._offset=a)}set cvcAutoHeightTarget(o){this._target=o}get cvcAutoHeightTarget(){return this._target}constructor(o,a,p){this.el=o,this.zone=a,this.cdr=p,this._offset=0,this._target="parent",this.divTop=0,this.onResized$=new A.B,this.resizeObserver=new ResizeObserver(C=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,Tt.c)(10)).subscribe(C=>{this.resizeToFitContent()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}ngAfterViewInit(){Promise.resolve().then(()=>{this.resizeToFitContent()})}resizeToFitContent(){const o=this.el.nativeElement,a=o.parentElement.getBoundingClientRect().height;o&&o.getBoundingClientRect&&o.getBoundingClientRect().top&&(this.divTop=o.getBoundingClientRect().top),o&&("parent"===this._target?o.style.height=a:"viewport"===this._target&&(o.getBoundingClientRect&&o.getBoundingClientRect().top&&(this.divTop=o.getBoundingClientRect().top),o.style.height=`calc(100vh - ${this.divTop+this._offset}px)`),o.style["overflow-y"]="auto",this.cdr.detectChanges())}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc))};static#e=this.\u0275dir=t.FsC({type:n,selectors:[["","cvcAutoHeightDiv",""]],inputs:{cvcAutoHeightDiv:"cvcAutoHeightDiv",cvcAutoHeightTarget:"cvcAutoHeightTarget"}})}return n})();var xt=i(8199),It=i(3340),Pt=i(6726),Ot=i(2143);const Et=()=>[8,16];function Mt(n,r){if(1&n&&(t.j41(0,"cvc-link-tag",25),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.Y8G("href",o.sourceUrl)("tooltip","View on "+o.displayType),t.R7$(),t.SpI(" ",o.displayType+":"+o.citationId," ")}}function Rt(n,r){if(1&n&&t.nrm(0,"cvc-retraction-status-tag",26),2&n){const o=t.XpG().ngIf;t.Y8G("retractionNature",o.retractionNature)("retractionDate",o.retractionDate)("retractionReasons",o.retractionReasons)}}function Gt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",27),t.EFF(1),t.k0s()),2&n){const o=t.XpG().ngIf;t.R7$(),t.SpI(" ",o.ascoAbstractId," ")}}function Ft(n,r){if(1&n&&(t.qex(0),t.j41(1,"cvc-link-tag",28),t.EFF(2),t.k0s(),t.bVm()),2&n){const o=t.XpG().ngIf;t.R7$(),t.Mz_("href","https://www.ncbi.nlm.nih.gov/pmc/articles/",o.pmcId,""),t.R7$(),t.SpI(" ",o.pmcId," ")}}function Dt(n,r){}function $t(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",33),t.DNE(1,Dt,0,0,"ng-template",34),t.k0s()),2&n){t.XpG(2);const o=t.sdS(31);t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function Yt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",33),t.nrm(1,"cvc-clinical-trial-tag",35),t.k0s()),2&n){const o=t.XpG(2).ngIf;t.R7$(),t.Y8G("clinicalTrial",o.clinicalTrials[0])}}function jt(n,r){if(1&n&&(t.qex(0),t.j41(1,"nz-space"),t.nrm(2,"cvc-clinical-trial-tag",35),t.k0s(),t.bVm()),2&n){const o=r.$implicit;t.R7$(2),t.Y8G("clinicalTrial",o)}}function Lt(n,r){if(1&n&&(t.j41(0,"nz-descriptions-item",36),t.DNE(1,jt,3,1,"ng-container",37),t.k0s()),2&n){const o=t.XpG(2).ngIf;t.R7$(),t.Y8G("ngForOf",o.clinicalTrials)}}function wt(n,r){if(1&n&&(t.qex(0,29),t.DNE(1,$t,2,1,"ng-template",30)(2,Yt,2,1,"ng-template",31)(3,Lt,2,1,"ng-template",32),t.bVm()),2&n){const o=t.XpG().ngIf;t.Y8G("ngPlural",o.clinicalTrials.length)}}function Nt(n,r){1&n&&(t.j41(0,"span",38),t.EFF(1," Not available "),t.k0s())}function kt(n,r){if(1&n&&t.EFF(0),2&n){const o=t.XpG().ngIf;t.SpI(" Evidence for ",o.citation," ")}}function At(n,r){if(1&n&&t.EFF(0),2&n){const o=t.XpG().ngIf;t.SpI(" Source Suggestions for ",o.citation," ")}}function Bt(n,r){if(1&n&&(t.qex(0),t.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-descriptions",6)(4,"nz-descriptions-item",7)(5,"i"),t.EFF(6),t.k0s()(),t.j41(7,"nz-descriptions-item",8),t.EFF(8),t.k0s()()(),t.j41(9,"nz-col",5)(10,"nz-descriptions",6)(11,"nz-descriptions-item",9)(12,"p",10),t.EFF(13),t.k0s()()()(),t.j41(14,"nz-col",5)(15,"nz-descriptions",11)(16,"nz-descriptions-item",12),t.EFF(17),t.k0s(),t.j41(18,"nz-descriptions-item",13),t.DNE(19,Mt,2,3,"cvc-link-tag",14)(20,Rt,1,3,"cvc-retraction-status-tag",15),t.k0s(),t.DNE(21,Gt,2,1,"nz-descriptions-item",16),t.j41(22,"nz-descriptions-item",17),t.EFF(23),t.k0s(),t.j41(24,"nz-descriptions-item",18),t.DNE(25,Ft,3,3,"ng-container",19),t.k0s(),t.j41(26,"nz-descriptions-item",20)(27,"span",21),t.nrm(28,"span",22),t.k0s()(),t.DNE(29,wt,4,1,"ng-container",23),t.k0s(),t.DNE(30,Nt,2,0,"ng-template",null,0,t.C5r),t.k0s(),t.j41(32,"nz-col",5),t.nrm(33,"cvc-evidence-table",24),t.DNE(34,kt,1,1,"ng-template",null,1,t.C5r),t.k0s(),t.j41(36,"nz-col",5),t.nrm(37,"cvc-source-suggestions-table",24),t.DNE(38,At,1,1,"ng-template",null,2,t.C5r),t.k0s()(),t.bVm()),2&n){const o=r.ngIf,a=t.sdS(31),p=t.sdS(35),C=t.sdS(39),P=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(29,Et)),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("nzColumn",1),t.R7$(3),t.JRh(o.title),t.R7$(2),t.SpI(" ",o.authorString," "),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("nzEllipsisRows",6),t.R7$(),t.SpI(" ",o.abstract," "),t.R7$(),t.Y8G("nzSpan",12),t.R7$(),t.Y8G("nzColumn",1),t.R7$(2),t.JRh(o.publicationDate),t.R7$(),t.Mz_("nzTitle","",o.displayType," ID"),t.R7$(),t.Y8G("ngIf",o.sourceUrl),t.R7$(),t.Y8G("ngIf",o.retractionNature&&o.retractionDate&&o.retractionReasons),t.R7$(),t.Y8G("ngIf","ASCO"==o.displayType),t.R7$(2),t.SpI("",o.fullJournalTitle," "),t.R7$(2),t.Y8G("ngIf",o.pmcId)("ngIfElse",a),t.R7$(2),t.Y8G("nzTooltipTitle",o.pmcId?"Open":"Closed"),t.R7$(),t.Y8G("nzType",o.pmcId?"unlock":"lock"),t.R7$(),t.Y8G("ngIf",o.clinicalTrials),t.R7$(3),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("sourceId",P.sourceId)("cvcTitleTemplate",p),t.R7$(3),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("sourceId",P.sourceId)("cvcTitleTemplate",C)}}let Xt=(()=>{class n{constructor(o,a){this.route=o,this.gql=a,this.routeSub=this.route.params.subscribe(p=>{this.sourceId=+p.sourceId,this.queryRef=this.gql.watch({sourceId:this.sourceId});let C=this.queryRef.valueChanges;this.loading$=C.pipe((0,d.E)("loading"),(0,B.Z)(!0)),this.source$=C.pipe((0,d.E)("data","source"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(u.nX),t.rXU(T.s91))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-summary"]],decls:2,vars:3,consts:[["notAvailable",""],["evidenceCardTitle",""],["sourceSuggestionCardTitle",""],[4,"ngIf"],["cvcAutoHeightDiv","",3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Title"],["nzTitle","Authors"],["nzTitle","Abstract"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Published"],[3,"nzTitle"],[3,"href","tooltip",4,"ngIf"],[3,"retractionNature","retractionDate","retractionReasons",4,"ngIf"],["nzTitle","ASCO Abstract ID",4,"ngIf"],["nzTitle","Journal"],["nzTitle","PMC ID"],[4,"ngIf","ngIfElse"],["nzTitle","Access"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-icon","","nzTheme","outline",3,"nzType"],[3,"ngPlural",4,"ngIf"],["cvcHeight","400",3,"sourceId","cvcTitleTemplate"],[3,"href","tooltip"],[3,"retractionNature","retractionDate","retractionReasons"],["nzTitle","ASCO Abstract ID"],["tooltip","View on PubMed Central",3,"href"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],["nzTitle","Clinicial Trial"],[3,"ngTemplateOutlet"],[3,"clinicalTrial"],["nzTitle","Clinicial Trials"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"]],template:function(a,p){1&a&&(t.DNE(0,Bt,40,30,"ng-container",3),t.nI1(1,"ngrxPush")),2&a&&t.Y8G("ngIf",t.bMT(1,1,p.source$))},dependencies:[e.Sq,e.bT,e.T3,e.IJ,e.WO,R.Uq,R.e,Y.U5,X.Di,z.Dn,rt.LH,q.xA,q.gr,at.a,bt,xt.N,It.E,Pt.X,Ot.n,_.L9],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}"]})}return n})(),Vt=(()=>{class n{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["app-sources"]],decls:1,vars:0,template:function(a,p){1&a&&t.nrm(0,"router-outlet")},dependencies:[u.n3],encapsulation:2})}return n})();var Ut=i(664);const Ht=[{path:"",component:Vt,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:St,data:{breadcrumb:"Home"}},{path:"add",data:{breadcrumb:"Submit a Source Suggestion"},runGuardsAndResolvers:"always",component:J},{path:":sourceId",component:ht,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Xt,data:{breadcrumb:"Summary"}},{path:"comments",component:(()=>{class n{constructor(o){this.route=o,this.commentable={id:+this.route.snapshot.params.sourceId,entityType:T.T31.Source}}static#t=this.\u0275fac=function(a){return new(a||n)(t.rXU(u.nX))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-sources-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,p){1&a&&t.nrm(0,"cvc-comment-list",0),2&a&&t.Y8G("commentable",p.commentable)},dependencies:[Ut.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})(),data:{breadcrumb:"Comments"}}]}]}];let Wt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[u.iI.forChild(Ht),u.iI]})}return n})();var Kt=i(5443),tt=i(4124),et=i(4917);let Qt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,h.ZJ,z.Y3,R.f3,m.Zw,X.kT,Y.pc,tt.C,Kt.n,et.i]})}return n})();var st=i(7054),Jt=i(1532);let Zt=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,h.ZJ,m.Zw,z.Y3,it.T,tt.C,st.L,Jt.W,et.i]})}return n})();var qt=i(9619),te=i(4531),ee=i(5594),ne=i(2242),oe=i(174);let ie=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,R.f3,Y.pc,R.f3,Y.pc,X.kT,z.Y3,rt.Qt,q.WF,st.L,ne.i,te.C,ee.b,qt.u,oe.u]})}return n})();var ae=i(8168),re=i(776),se=i(5316);let ce=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,g.PQ,m.Zw,S.$,ae.m,se.P,re.s]})}return n})(),le=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,h.ZJ,z.Y3,et.i,tt.C,ce]})}return n})();var pe=i(4873);let ge=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,pe.A]})}return n})(),de=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[e.MD,u.iI,Wt,Qt,Zt,ie,le,ge]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/3643.4eed00d0788c015a.js b/server/public/3643.4eed00d0788c015a.js new file mode 100644 index 000000000..bd315931a --- /dev/null +++ b/server/public/3643.4eed00d0788c015a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[3643],{5730:(R,u,i)=>{i.r(u),i.d(u,{CurationActivityModule:()=>U});var m=i(177),c=i(1188),_=i(9145),t=i(3953),g=i(8313);const C=[{path:"",redirectTo:"curation-timeline",pathMatch:"full"},{path:"curation-timeline",component:(()=>{class s{constructor(){this.feedMode=_.Qt1.Unscoped}ngOnInit(){}static#t=this.\u0275fac=function(n){return new(n||s)};static#n=this.\u0275cmp=t.VBU({type:s,selectors:[["cvc-curation-activity-timeline"]],decls:1,vars:0,template:function(n,l){1&n&&t.nrm(0,"cvc-activity-feed")},dependencies:[g.Y],encapsulation:2})}return s})(),data:{breadcrumb:"Timeline"}}];let r=(()=>{class s{static#t=this.\u0275fac=function(n){return new(n||s)};static#n=this.\u0275mod=t.$C({type:s});static#i=this.\u0275inj=t.G2t({imports:[c.iI.forChild(C),c.iI]})}return s})();var z=i(4124),f=i(3062),E=i(1532),v=i(5103),p=i(7529),D=i(5703),M=i(2242);let y=(()=>{class s{static#t=this.\u0275fac=function(n){return new(n||s)};static#n=this.\u0275mod=t.$C({type:s});static#i=this.\u0275inj=t.G2t({imports:[m.MD,p.f3,D.Ti,M.i,g.Y]})}return s})();var T=i(7685),O=i(7391),P=i(4917);let U=(()=>{class s{static#t=this.\u0275fac=function(n){return new(n||s)};static#n=this.\u0275mod=t.$C({type:s});static#i=this.\u0275inj=t.G2t({imports:[m.MD,r,y,f.ZJ,v.Y3,T.pc,O.kT,p.f3,P.i,z.C,E.W]})}return s})()},7481:(R,u,i)=>{i.d(u,{$:()=>h,u:()=>L});var m=i(4707),c=i(7336),_=i(177),t=i(3953),g=i(9417),I=i(1413),C=i(3726),r=i(6977),z=i(6042),f=i(7806),E=i(5930),v=i(5103),p=i(851),D=i(8203);const M=["switchElement"];function y(n,l){1&n&&t.nrm(0,"span",8)}function T(n,l){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const e=t.XpG(2);t.R7$(),t.JRh(e.nzCheckedChildren)}}function O(n,l){if(1&n&&(t.qex(0),t.DNE(1,T,2,1,"ng-container",9),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",e.nzCheckedChildren)}}function P(n,l){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const e=t.XpG(2);t.R7$(),t.JRh(e.nzUnCheckedChildren)}}function U(n,l){if(1&n&&t.DNE(0,P,2,1,"ng-container",9),2&n){const e=t.XpG();t.Y8G("nzStringTemplateOutlet",e.nzUnCheckedChildren)}}let L=(()=>{class n{updateValue(e){this.isChecked!==e&&(this.isChecked=e,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(e,o,a,d,F,N){this.nzConfigService=e,this.host=o,this.ngZone=a,this.cdr=d,this.focusMonitor=F,this.directionality=N,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new I.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,r.Q)(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,C.R)(this.host.nativeElement,"click").pipe((0,r.Q)(this.destroy$)).subscribe(e=>{e.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,C.R)(this.switchElement.nativeElement,"keydown").pipe((0,r.Q)(this.destroy$)).subscribe(e=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:o}=e;o!==c.UQ&&o!==c.LE&&o!==c.t6&&o!==c.Fm||(e.preventDefault(),this.ngZone.run(()=>{o===c.UQ?this.updateValue(!1):o===c.LE?this.updateValue(!0):(o===c.t6||o===c.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,r.Q)(this.destroy$)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(o){return new(o||n)(t.rXU(z.yx),t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(p.FN),t.rXU(D.dS,8))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["nz-switch"]],viewQuery:function(o,a){if(1&o&&t.GBs(M,7),2&o){let d;t.mGM(d=t.lsd())&&(a.switchElement=d.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzControl:[2,"nzControl","nzControl",t.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[t.Jv_([{provide:g.kq,useExisting:(0,t.Rfq)(()=>n),multi:!0}]),t.GFd,t.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(o,a){if(1&o&&(t.j41(0,"button",2,0)(2,"span",3),t.DNE(3,y,1,0,"span",4),t.k0s(),t.j41(4,"span",5),t.DNE(5,O,2,1,"ng-container",6)(6,U,1,1,"ng-template",null,1,t.C5r),t.k0s(),t.nrm(8,"div",7),t.k0s()),2&o){const d=t.sdS(7);t.AVh("ant-switch-checked",a.isChecked)("ant-switch-loading",a.nzLoading)("ant-switch-disabled",a.nzDisabled)("ant-switch-small","small"===a.nzSize)("ant-switch-rtl","rtl"===a.dir),t.Y8G("disabled",a.nzDisabled)("nzWaveExtraNode",!0),t.BMQ("id",a.nzId),t.R7$(3),t.Y8G("ngIf",a.nzLoading),t.R7$(2),t.Y8G("ngIf",a.isChecked)("ngIfElse",d)}},dependencies:[E.o7,E.p,v.Y3,v.Dn,_.bT,f.C,f.m],encapsulation:2,changeDetection:0})}return(0,m.Cg)([(0,z.H4)()],n.prototype,"nzSize",void 0),n})(),h=(()=>{class n{static#t=this.\u0275fac=function(o){return new(o||n)};static#n=this.\u0275mod=t.$C({type:n});static#i=this.\u0275inj=t.G2t({imports:[L]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/3rdpartylicenses.txt b/server/public/3rdpartylicenses.txt index 879f829db..ee9298284 100644 --- a/server/public/3rdpartylicenses.txt +++ b/server/public/3rdpartylicenses.txt @@ -106,6 +106,8 @@ SOFTWARE. @apollo/client/link/core +@apollo/client/link/error + @apollo/client/link/http @apollo/client/link/utils @@ -292,6 +294,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +date-fns +MIT +MIT License + +Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + graphql MIT MIT License @@ -373,6 +400,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +ngx-ui-scroll +MIT +MIT License + +Copyright (c) 2024 Denis Hilt (https://github.com/dhilt) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + optimism MIT MIT License @@ -743,6 +795,31 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +vscroll +MIT +MIT License + +Copyright (c) 2023 Denis Hilt (https://github.com/dhilt) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + zen-observable-ts MIT The MIT License (MIT) diff --git a/server/public/4021.1bd5b451e923b91d.js b/server/public/4021.1bd5b451e923b91d.js deleted file mode 100644 index f516f6780..000000000 --- a/server/public/4021.1bd5b451e923b91d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4021],{6440:(j,f,e)=>{e.d(f,{r:()=>Q});var t=e(3953),h=e(177),n=e(1188),u=e(5699),z=e(5103),C=e(1236),m=e(9199),y=e(6354),x=e(5964),v=e(9145),O=e(5703),g=e(7529),M=e(2e3),b=e(7679),T=e(9162),E=e(1774);const I=(a,p)=>({displayName:a,profileImagePath:p});function $(a,p){if(1&a&&(t.nrm(0,"cvc-user-avatar",12),t.j41(1,"span",13),t.EFF(2),t.k0s()),2&a){const i=t.XpG().ngIf;t.Y8G("user",t.l_i(2,I,i.name,i.profileImagePath)),t.R7$(2),t.JRh(i.name)}}function G(a,p){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const i=p.ngIf;t.R7$(),t.JRh(i)}}function F(a,p){if(1&a&&(t.qex(0),t.j41(1,"cvc-link-tag",14),t.EFF(2),t.k0s(),t.bVm()),2&a){const i=t.XpG().ngIf;t.R7$(),t.Y8G("href",i.url),t.R7$(),t.SpI(" ",i.name," ")}}function R(a,p){if(1&a&&(t.qex(0),t.j41(1,"nz-card",5),t.DNE(2,$,3,5,"ng-template",null,2,t.C5r),t.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),t.DNE(8,G,2,1,"span",9),t.k0s()()()(),t.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),t.DNE(11,F,3,2,"ng-container",9),t.k0s()()(),t.bVm()),2&a){const i=p.ngIf,l=t.sdS(3);t.XpG();const S=t.sdS(4),Y=t.sdS(6);t.R7$(),t.Y8G("nzTitle",l),t.R7$(7),t.Y8G("ngIf",i.description)("ngIfElse",S),t.R7$(),t.Y8G("nzColumn",2),t.R7$(2),t.Y8G("ngIf",i.url)("ngIfElse",Y)}}function r(a,p){1&a&&t.EFF(0," Organization has not provided a description.\n")}function w(a,p){1&a&&t.EFF(0," -- ")}let o=(()=>{class a{constructor(i){this.gql=i}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,y.T)(({data:i})=>i?.organization),(0,x.p)(m.kP))}static#t=this.\u0275fac=function(l){return new(l||a)(t.rXU(v.I8L))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(l,S){1&l&&(t.j41(0,"div",3),t.DNE(1,R,12,6,"ng-container",4),t.nI1(2,"ngrxPush"),t.k0s(),t.DNE(3,r,1,0,"ng-template",null,0,t.C5r)(5,w,1,0,"ng-template",null,1,t.C5r)),2&l&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,S.org$)))},dependencies:[h.bT,O.cK,g.Uq,g.e,M.xA,M.gr,b.a,T.G,E.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return a})();function c(a,p){}function d(a,p){if(1&a&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,c,0,0,"ng-template",6),t.k0s(),t.bVm()),2&a){const i=t.XpG(),l=t.sdS(2);t.R7$(),t.Mz_("routerLink","/organizations/",i.org.id,""),t.R7$(),t.Y8G("ngTemplateOutlet",l)}}function s(a,p){}function P(a,p){if(1&a&&t.nrm(0,"cvc-organization-popover",9),2&a){const i=t.XpG(3);t.Y8G("orgId",i.org.id)}}function N(a,p){if(1&a&&t.DNE(0,P,1,1,"cvc-organization-popover",8),2&a){const i=t.XpG(2);t.Y8G("ngIf",i.enablePopover)}}function D(a,p){if(1&a&&(t.j41(0,"nz-tag",7),t.DNE(1,s,0,0,"ng-template",6),t.k0s(),t.DNE(2,N,1,1,"ng-template",null,3,t.C5r)),2&a){const i=t.sdS(3);t.XpG();const l=t.sdS(6);t.Y8G("nzPopoverContent",i),t.R7$(),t.Y8G("ngTemplateOutlet",l)}}function V(a,p){}function A(a,p){if(1&a&&t.DNE(0,V,0,0,"ng-template",6),2&a){t.XpG();const i=t.sdS(2);t.Y8G("ngTemplateOutlet",i)}}function B(a,p){if(1&a&&(t.nrm(0,"i",10),t.EFF(1)),2&a){const i=t.XpG();t.R7$(),t.SpI(" ",i.org.name,"\n")}}let Q=(()=>{class a{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}static#t=this.\u0275fac=function(l){return new(l||a)};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(l,S){if(1&l&&t.DNE(0,d,3,3,"ng-container",4)(1,D,4,2,"ng-template",null,0,t.C5r)(3,A,1,1,"ng-template",null,1,t.C5r)(5,B,2,1,"ng-template",null,2,t.C5r),2&l){const Y=t.sdS(4);t.Y8G("ngIf",S.linked)("ngIfElse",Y)}},dependencies:[h.bT,h.T3,n.Wk,u.s,z.Dn,C.L_,o],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return a})()},2478:(j,f,e)=>{e.r(f),e.d(f,{CurationQueuesModule:()=>R});var t=e(177),h=e(4124),n=e(1532),u=e(4917),z=e(7529),C=e(5103),m=e(3062),y=e(7685),x=e(7391),v=e(1188),O=e(9145),g=e(3953),M=e(4441);let b=(()=>{class r{constructor(){this.status=O.OWv.Submitted}ngOnInit(){}static#t=this.\u0275fac=function(c){return new(c||r)};static#n=this.\u0275cmp=g.VBU({type:r,selectors:[["cvc-pending-assertions-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Assertions",3,"status"]],template:function(c,d){1&c&&g.nrm(0,"cvc-assertions-table",0),2&c&&g.Y8G("status",d.status)},dependencies:[M.z],encapsulation:2})}return r})();var T=e(8199);let E=(()=>{class r{constructor(){this.status=O.OWv.Submitted}ngOnInit(){}static#t=this.\u0275fac=function(c){return new(c||r)};static#n=this.\u0275cmp=g.VBU({type:r,selectors:[["cvc-pending-evidence-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Evidence",3,"status"]],template:function(c,d){1&c&&g.nrm(0,"cvc-evidence-table",0),2&c&&g.Y8G("status",d.status)},dependencies:[T.N],encapsulation:2})}return r})();var I=e(3340);const G=[{path:"",redirectTo:"pending-sources",pathMatch:"full"},{path:"pending-sources",component:(()=>{class r{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(c){return new(c||r)};static#n=this.\u0275cmp=g.VBU({type:r,selectors:[["cvc-pending-sources-page"]],decls:1,vars:0,consts:[["cvcTitle","Browse Suggested Sources"]],template:function(c,d){1&c&&g.nrm(0,"cvc-source-suggestions-table",0)},dependencies:[I.E],encapsulation:2})}return r})(),data:{breadcrumb:"Pending Source Suggestions"}},{path:"pending-evidence",component:E,data:{breadcrumb:"Pending Evidence Items"}},{path:"pending-assertions",component:b,data:{breadcrumb:"Pending Assertions"}}];let F=(()=>{class r{static#t=this.\u0275fac=function(c){return new(c||r)};static#n=this.\u0275mod=g.$C({type:r});static#e=this.\u0275inj=g.G2t({imports:[v.iI.forChild(G),v.iI]})}return r})(),R=(()=>{class r{static#t=this.\u0275fac=function(c){return new(c||r)};static#n=this.\u0275mod=g.$C({type:r});static#e=this.\u0275inj=g.G2t({imports:[t.MD,F,m.ZJ,C.Y3,y.pc,x.kT,z.f3,h.C,n.W,u.i]})}return r})()},2670:(j,f,e)=>{e.r(f),e.d(f,{CurationModule:()=>w});var t=e(177),h=e(1188),n=e(3953),u=e(3062),z=e(5103),C=e(7391),m=e(7529),y=e(9765),x=e(9945),v=e(3075);const b=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-curation-view"]],decls:1,vars:0,template:function(s,P){1&s&&n.nrm(0,"router-outlet")},dependencies:[h.n3],encapsulation:2})}return o})(),children:[{path:"",redirectTo:"activity",pathMatch:"full"},{path:"activity",component:(()=>{class o{constructor(){this.tabs=[{routeName:"curation-timeline",iconName:"civic-event",tabLabel:"Timeline"}]}static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-curation-activity-view"]],decls:20,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-event",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(s,P){1&s&&(n.nrm(0,"cvc-section-navigation"),n.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n.nrm(5,"i",3),n.nI1(6,"entityColor"),n.k0s(),n.j41(7,"nz-col",4)(8,"h2"),n.EFF(9,"Curation Event Timeline"),n.k0s(),n.j41(10,"p",5),n.EFF(11," All CIViC curation activity is logged and publicly available, thus esablishing the provenance of its assertions, summaries, associations, and acknowledging the work of collaborators. "),n.k0s()(),n.nrm(12,"nz-col",6),n.k0s(),n.j41(13,"nz-row")(14,"nz-col",7),n.nrm(15,"cvc-tab-navigation",8),n.k0s()(),n.j41(16,"nz-row")(17,"nz-col",7)(18,"div",9),n.nrm(19,"router-outlet"),n.k0s()()()()()),2&s&&(n.R7$(5),n.Y8G("nzTwotoneColor",n.bMT(6,5,"Event")),n.R7$(5),n.Y8G("nzEllipsisRows",2),n.R7$(4),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("tabs",P.tabs),n.R7$(2),n.Y8G("nzSpan",24))},dependencies:[h.n3,u.WB,u.zR,z.Dn,C.Di,m.Uq,m.e,y.n,x.N,v.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})(),loadChildren:()=>Promise.all([e.e(6508),e.e(326),e.e(4712)]).then(e.bind(e,4712)).then(o=>o.CurationActivityModule),data:{breadcrumb:"Activity"}},{path:"queues",component:(()=>{class o{constructor(){this.tabs=[{routeName:"pending-sources",iconName:"civic-source",tabLabel:"Sources Queue"},{routeName:"pending-evidence",iconName:"civic-evidence",tabLabel:"Evidence Queue"},{routeName:"pending-assertions",iconName:"civic-assertion",tabLabel:"Assertions Queue"}]}static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-curation-queues-view"]],decls:20,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-queue",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(s,P){1&s&&(n.nrm(0,"cvc-section-navigation"),n.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n.nrm(5,"i",3),n.nI1(6,"entityColor"),n.k0s(),n.j41(7,"nz-col",4)(8,"h2"),n.EFF(9,"Curation Queues"),n.k0s(),n.j41(10,"p",5),n.EFF(11," New submitted Evidence, Assertions, and Source Suggestions must be accepted by a CIViC Editor. These Curation Queues list items in need of Editor moderation. "),n.k0s()(),n.nrm(12,"nz-col",6),n.k0s(),n.j41(13,"nz-row")(14,"nz-col",7),n.nrm(15,"cvc-tab-navigation",8),n.k0s()(),n.j41(16,"nz-row")(17,"nz-col",7)(18,"div",9),n.nrm(19,"router-outlet"),n.k0s()()()()()),2&s&&(n.R7$(5),n.Y8G("nzTwotoneColor",n.bMT(6,5,"Queue")),n.R7$(5),n.Y8G("nzEllipsisRows",2),n.R7$(4),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("tabs",P.tabs),n.R7$(2),n.Y8G("nzSpan",24))},dependencies:[h.n3,u.WB,u.zR,z.Dn,C.Di,m.Uq,m.e,y.n,x.N,v.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})(),loadChildren:()=>Promise.resolve().then(e.bind(e,2478)).then(o=>o.CurationQueuesModule),data:{breadcrumb:"Queues"}}]}];let T=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[h.iI.forChild(b),h.iI]})}return o})();var E=e(2478),I=e(5594);let $=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[t.MD,I.b]})}return o})();var G=e(4531);let F=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[t.MD,G.C]})}return o})();var R=e(7660);let r=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[t.MD,R.u]})}return o})(),w=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[t.MD,T,E.CurationQueuesModule,$,F,r]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/4178.66d6bc4365e46b51.js b/server/public/4178.66d6bc4365e46b51.js deleted file mode 100644 index ef2114a43..000000000 --- a/server/public/4178.66d6bc4365e46b51.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4178],{7670:(x,O,t)=>{t.d(O,{z:()=>$});var e=t(3953),m=t(513),n=t(6389),C=t(5930),g=t(2096),p=t(177);let y=(()=>{class v{constructor(h,z){this.document=h,this.platformId=z,this.documentIsAccessible=(0,p.UE)(this.platformId)}static getCookieRegExp(h){const z=h.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+z+"|;\\s*"+z+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(h){try{return decodeURIComponent(h)}catch{return h}}check(h){return!!this.documentIsAccessible&&(h=encodeURIComponent(h),v.getCookieRegExp(h).test(this.document.cookie))}get(h){if(this.documentIsAccessible&&this.check(h)){h=encodeURIComponent(h);const f=v.getCookieRegExp(h).exec(this.document.cookie);return f[1]?v.safeDecodeURIComponent(f[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const h={},z=this.document;return z.cookie&&""!==z.cookie&&z.cookie.split(";").forEach(f=>{const[c,R]=f.split("=");h[v.safeDecodeURIComponent(c.replace(/^ /,""))]=v.safeDecodeURIComponent(R)}),h}set(h,z,f,c,R,l,F,V){if(!this.documentIsAccessible)return;if("number"==typeof f||f instanceof Date||c||R||l||F)return void this.set(h,z,{expires:f,path:c,domain:R,secure:l,sameSite:F||"Lax",partitioned:V});let D=encodeURIComponent(h)+"="+encodeURIComponent(z)+";";const u=f||{};u.expires&&(D+="number"==typeof u.expires?"expires="+new Date((new Date).getTime()+1e3*u.expires*60*60*24).toUTCString()+";":"expires="+u.expires.toUTCString()+";"),u.path&&(D+="path="+u.path+";"),u.domain&&(D+="domain="+u.domain+";"),!1===u.secure&&"None"===u.sameSite&&(u.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${h} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),u.secure&&(D+="secure;"),u.sameSite||(u.sameSite="Lax"),D+="sameSite="+u.sameSite+";",u.partitioned&&(D+="Partitioned;"),this.document.cookie=D}delete(h,z,f,c,R="Lax"){this.documentIsAccessible&&this.set(h,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:z,domain:f,secure:c,sameSite:R})}deleteAll(h,z,f,c="Lax"){if(!this.documentIsAccessible)return;const R=this.getAll();for(const l in R)R.hasOwnProperty(l)&&this.delete(l,h,z,f,c)}static#n=this.\u0275fac=function(z){return new(z||v)(e.KVO(p.qQ),e.KVO(e.Agw))};static#t=this.\u0275prov=e.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();var r=t(5103),M=t(2617);let T=(()=>{class v{constructor(h){this.cookies=h,this.location=function I(v){return encodeURIComponent(v).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}(window.location.href),this.xsrfToken=this.cookies.get("XSRF-TOKEN")}ngOnInit(){}static#n=this.\u0275fac=function(z){return new(z||v)(e.rXU(y))};static#t=this.\u0275cmp=e.VBU({type:v,selectors:[["cvc-auth-options-list"]],decls:19,vars:9,consts:[["nzBordered","false","nzSplit","false"],["method","post",3,"action"],["type","hidden","name","authenticity_token",3,"value"],["type","submit","nz-button","","nzBlock","","nzType","default","nzSize","large","nzShape","round"],["nz-icon","","nzType","google"],["src","assets/images/orcid-logo.svg","alt","ORCID Logo",1,"orcid-logo"],["nz-icon","","nzType","github"]],template:function(z,f){1&z&&(e.j41(0,"nz-list",0)(1,"nz-list-item")(2,"form",1),e.nrm(3,"input",2),e.j41(4,"button",3),e.nrm(5,"i",4),e.EFF(6," Sign In with a Google Account "),e.k0s()()(),e.j41(7,"nz-list-item")(8,"form",1),e.nrm(9,"input",2),e.j41(10,"button",3),e.nrm(11,"img",5),e.EFF(12," Sign In with an ORCID Account "),e.k0s()()(),e.j41(13,"nz-list-item")(14,"form",1),e.nrm(15,"input",2),e.j41(16,"button",3),e.nrm(17,"i",6),e.EFF(18," Sign In with a Github Account "),e.k0s()()()()),2&z&&(e.R7$(2),e.Mz_("action","/api/auth/google_oauth2?origin=",f.location,"",e.B4B),e.R7$(),e.FS9("value",f.xsrfToken),e.R7$(5),e.Mz_("action","/api/auth/orcid?origin=",f.location,"",e.B4B),e.R7$(),e.FS9("value",f.xsrfToken),e.R7$(5),e.Mz_("action","/api/auth/github?origin=",f.location,"",e.B4B),e.R7$(),e.FS9("value",f.xsrfToken))},dependencies:[r.Dn,M.eE,M.lQ,m.aO,n.c,C.p],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}.orcid-logo[_ngcontent-%COMP%]{width:16px;margin-right:4px;line-height:1}i[_ngcontent-%COMP%]{font-size:16px}"]})}return v})();function S(v,L){1&v&&(e.qex(0),e.j41(1,"p",5),e.EFF(2," Click on one of the OAuth providers below to sign into CIViC. If you do not not have a CIViC account, one will be created for you based upon the account information your OAuth provider provides. "),e.k0s(),e.nrm(3,"cvc-auth-options-list"),e.bVm())}function G(v,L){1&v&&e.EFF(0," Sign In / Sign Up ")}function j(v,L){if(1&v){const h=e.RV6();e.j41(0,"button",2),e.bIt("click",function(){e.eBV(h);const f=e.XpG();return e.Njj(f.handleCancel())}),e.EFF(1," Cancel "),e.k0s()}}let $=(()=>{class v{constructor(){this.authVisible=!1}ngOnInit(){}showAuth(){this.authVisible=!0}handleCancel(){this.authVisible=!1}static#n=this.\u0275fac=function(z){return new(z||v)};static#t=this.\u0275cmp=e.VBU({type:v,selectors:[["cvc-login-button"]],decls:9,vars:3,consts:[["loginModalTitle",""],["loginModalFooter",""],["nz-button","","nzType","primary","nzValue","small",3,"click"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzTitle","nzFooter"],[4,"nzModalContent"],["nzType","secondary"]],template:function(z,f){if(1&z){const c=e.RV6();e.j41(0,"button",2),e.bIt("click",function(){return e.eBV(c),e.Njj(f.showAuth())}),e.j41(1,"span"),e.EFF(2,"Sign In / Sign Up"),e.k0s()(),e.j41(3,"nz-modal",3),e.mxI("nzVisibleChange",function(l){return e.eBV(c),e.DH7(f.authVisible,l)||(f.authVisible=l),e.Njj(l)}),e.bIt("nzOnCancel",function(){return e.eBV(c),e.Njj(f.handleCancel())}),e.DNE(4,S,4,0,"ng-container",4),e.k0s(),e.DNE(5,G,1,0,"ng-template",null,0,e.C5r)(7,j,2,0,"ng-template",null,1,e.C5r)}if(2&z){const c=e.sdS(6),R=e.sdS(8);e.R7$(3),e.R50("nzVisible",f.authVisible),e.Y8G("nzTitle",c)("nzFooter",R)}},dependencies:[m.aO,n.c,C.p,g.F2,g.A9,T],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return v})()},400:(x,O,t)=>{t.d(O,{a:()=>y});var e=t(177),m=t(513),n=t(2096),C=t(2617),g=t(5103),I=t(3953);let p=(()=>{class r{static#n=this.\u0275fac=function(S){return new(S||r)};static#t=this.\u0275mod=I.$C({type:r});static#e=this.\u0275inj=I.G2t({imports:[e.MD,g.Y3,C.rD,m.Zw]})}return r})(),y=(()=>{class r{static#n=this.\u0275fac=function(S){return new(S||r)};static#t=this.\u0275mod=I.$C({type:r});static#e=this.\u0275inj=I.G2t({imports:[e.MD,m.Zw,n.U6,p]})}return r})()},7074:(x,O,t)=>{t.d(O,{w:()=>I});var e=t(3953),m=t(177),n=t(9438);function C(p,y){if(1&p&&e.nrm(0,"nz-avatar",2),2&p){const r=e.XpG();e.Y8G("nzSrc",r.organization.profileImagePath)("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)}}function g(p,y){if(1&p&&e.nrm(0,"nz-avatar",3),2&p){const r=e.XpG();e.Y8G("nzShape",r.shape?r.shape:"circle")("nzText",r.organization.name)("nzSize",r.size)}}let I=(()=>{class p{ngOnInit(){if(void 0===this.organization)throw new Error("Must supply an organization to use this component");void 0===this.size&&(this.size="default")}static#n=this.\u0275fac=function(M){return new(M||p)};static#t=this.\u0275cmp=e.VBU({type:p,selectors:[["cvc-organization-avatar"]],inputs:{organization:"organization",size:"size",shape:"shape"},decls:3,vars:2,consts:[["noAvatar",""],[3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],[3,"nzSrc","nzShape","nzSize"],[3,"nzShape","nzText","nzSize"]],template:function(M,T){if(1&M&&e.DNE(0,C,1,3,"nz-avatar",1)(1,g,1,3,"ng-template",null,0,e.C5r),2&M){const S=e.sdS(2);e.Y8G("ngIf",T.organization.profileImagePath)("ngIfElse",S)}},dependencies:[m.bT,n.PM],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return p})()},5285:(x,O,t)=>{t.d(O,{T:()=>C});var e=t(177),m=t(9438),n=t(3953);let C=(()=>{class g{static#n=this.\u0275fac=function(y){return new(y||g)};static#t=this.\u0275mod=n.$C({type:g});static#e=this.\u0275inj=n.G2t({imports:[e.MD,m.Yb]})}return g})()},9162:(x,O,t)=>{t.d(O,{G:()=>I});var e=t(3953),m=t(177),n=t(9438);function C(p,y){if(1&p&&e.nrm(0,"nz-avatar",2),2&p){const r=e.XpG();e.Y8G("nzSrc",r.user.profileImagePath)("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)}}function g(p,y){if(1&p&&(e.nrm(0,"nz-avatar",3),e.nI1(1,"uppercase")),2&p){const r=e.XpG();e.Y8G("nzShape",r.shape?r.shape:"circle")("nzSize",r.size)("nzText",e.bMT(1,3,r.user.displayName.charAt(0)))}}let I=(()=>{class p{ngOnInit(){if(void 0===this.user)throw new Error("Must supply a user to use this component");void 0===this.size&&(this.size="default")}static#n=this.\u0275fac=function(M){return new(M||p)};static#t=this.\u0275cmp=e.VBU({type:p,selectors:[["cvc-user-avatar"]],inputs:{user:"user",size:"size",shape:"shape"},decls:3,vars:2,consts:[["noAvatar",""],[3,"nzSrc","nzShape","nzSize",4,"ngIf","ngIfElse"],[3,"nzSrc","nzShape","nzSize"],[3,"nzShape","nzSize","nzText"]],template:function(M,T){if(1&M&&e.DNE(0,C,1,3,"nz-avatar",1)(1,g,2,5,"ng-template",null,0,e.C5r),2&M){const S=e.sdS(2);e.Y8G("ngIf",T.user.profileImagePath)("ngIfElse",S)}},dependencies:[m.bT,n.PM,m.Pc],styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return p})()},3357:(x,O,t)=>{t.d(O,{P:()=>C});var e=t(177),m=t(9438),n=t(3953);let C=(()=>{class g{static#n=this.\u0275fac=function(y){return new(y||g)};static#t=this.\u0275mod=n.$C({type:g});static#e=this.\u0275inj=n.G2t({imports:[e.MD,m.Yb]})}return g})()},4493:(x,O,t)=>{t.d(O,{g:()=>n});var e=t(9145),m=t(3953);let n=(()=>{class C{transform(I){switch(I){case"ASSERTION":case"Assertion":case e.V9U.Assertion:return"civic-assertion";case"EVIDENCE_ITEM":case"EvidenceItem":case e.V9U.EvidenceItem:return"civic-evidence";case"FEATURE":case"Feature":case e.V9U.Feature:return"civic-feature";case e.V9U.Revision:case"REVISION":case"Revision":return"civic-revision";case e.V9U.Variant:case"VARIANT":case"Variant":return"civic-variant";case e.V9U.VariantGroup:case"VARIANT_GROUP":case"VariantGroup":return"civic-variantgroup";case e.V9U.MolecularProfile:case"MOLECULAR_PROFILE":case"MolecularProfile":return"civic-molecularprofile";case"THERAPY":case"Therapy":return"civic-therapy";case"DISEASE":case"Disease":return"civic-disease";default:return console.log("String No icon name found for "+I),"border-outer"}}static#n=this.\u0275fac=function(p){return new(p||C)};static#t=this.\u0275pipe=m.EJ8({name:"iconNameForSubscribableEntity",type:C,pure:!0})}return C})()},9449:(x,O,t)=>{t.d(O,{j:()=>y});var e=t(3953),m=t(177),n=t(3617);function C(r,M){if(1&r&&e.nrm(0,"nz-alert",4),2&r){const T=e.XpG();e.Y8G("nzDescription",T.errors[0])}}function g(r,M){if(1&r&&e.nrm(0,"nz-alert",5),2&r){e.XpG();const T=e.sdS(3);e.Y8G("nzDescription",T)}}function I(r,M){if(1&r&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&r){const T=M.$implicit;e.R7$(),e.JRh(T)}}function p(r,M){if(1&r&&(e.j41(0,"ul",6),e.DNE(1,I,2,1,"li",7),e.k0s()),2&r){const T=e.XpG();e.R7$(),e.Y8G("ngForOf",T.errors)}}let y=(()=>{class r{constructor(){}ngOnInit(){1==this.errors.length&&(this.errors=this.errors[0].split("|"))}static#n=this.\u0275fac=function(S){return new(S||r)};static#t=this.\u0275cmp=e.VBU({type:r,selectors:[["cvc-form-errors-alert"]],inputs:{errors:"errors"},decls:4,vars:2,consts:[["errorList",""],["nzType","error","nzShowIcon","",3,"nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occurred",3,"nzDescription",4,"ngIf"],["nzSize","small"],["nzType","error","nzShowIcon","",3,"nzDescription"],["nzType","error","nzShowIcon","","nzMessage","Submit Errors Occurred",3,"nzDescription"],[1,"error-list"],[4,"ngFor","ngForOf"]],template:function(S,G){1&S&&e.DNE(0,C,1,1,"nz-alert",1)(1,g,1,1,"nz-alert",2)(2,p,2,1,"ng-template",3,0,e.C5r),2&S&&(e.Y8G("ngIf",1===G.errors.length),e.R7$(),e.Y8G("ngIf",G.errors.length>1))},dependencies:[m.Sq,m.bT,n.Y],styles:["[_nghost-%COMP%]{display:block}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"]})}return r})()},8492:(x,O,t)=>{t.d(O,{M:()=>C});var e=t(177),m=t(3617),n=t(3953);let C=(()=>{class g{static#n=this.\u0275fac=function(y){return new(y||g)};static#t=this.\u0275mod=n.$C({type:g});static#e=this.\u0275inj=n.G2t({imports:[e.MD,m.$]})}return g})()},1202:(x,O,t)=>{t.d(O,{j:()=>R});var e=t(3953),m=t(1226),n=t(1413),C=t(6977),g=t(9145),I=t(4222),p=t(177),y=t(9417),r=t(7529),M=t(8927),T=t(5703),S=t(3617),G=t(3190),j=t(513),$=t(6389),v=t(5930),L=t(2983),h=t(9449);function z(l,F){1&l&&e.nrm(0,"nz-alert",7)}function f(l,F){if(1&l&&(e.j41(0,"nz-form-item"),e.nrm(1,"cvc-form-errors-alert",8),e.k0s()),2&l){const V=e.XpG();e.R7$(),e.Y8G("errors",V.errorMessages)}}function c(l,F){if(1&l){const V=e.RV6();e.j41(0,"nz-form-item")(1,"textarea",9),e.mxI("ngModelChange",function(u){e.eBV(V);const A=e.XpG();return e.DH7(A.coiText,u)||(A.coiText=u),e.Njj(u)}),e.k0s()()}if(2&l){const V=e.XpG();e.R7$(),e.R50("ngModel",V.coiText)}}let R=(()=>{class l{constructor(V,D){this.updateCoiGql=V,this.coiUpdatedEvent=new e.bkB,this.coiText=void 0,this.coiStatus="noCoi",this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new n.B,this.updateCoiMutator=new m.E(D)}updateCoi(){if("coiPresent"===this.coiStatus&&this.coiText||"noCoi"===this.coiStatus){this.errorMessages=[];let D=this.updateCoiMutator.mutate(this.updateCoiGql,{input:{coiPresent:"coiPresent"===this.coiStatus,statement:this.coiText}});D.submitSuccess$.pipe((0,C.Q)(this.destroy$)).subscribe(u=>{u&&(this.resetForm(),this.success=!0,this.coiUpdatedEvent.emit())}),D.submitError$.pipe((0,C.Q)(this.destroy$)).subscribe(u=>{u&&(this.errorMessages=u,this.success=!1)}),D.isSubmitting$.pipe((0,C.Q)(this.destroy$)).subscribe(u=>{this.loading=u})}}resetForm(){this.coiStatus="noCoi",this.coiText=void 0}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(D){return new(D||l)(e.rXU(g.tDA),e.rXU(I.N))};static#t=this.\u0275cmp=e.VBU({type:l,selectors:[["cvc-user-coi-form"]],outputs:{coiUpdatedEvent:"coiUpdatedEvent"},decls:14,vars:6,consts:[["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],[3,"ngModelChange","ngModel"],["nz-radio","","nzValue","noCoi"],["nz-radio","","nzValue","coiPresent"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"click","disabled"],["nzBanner","","nzMessage","COI Statement Updated.","nzType","success","nzCloseable",""],[3,"errors"],["nz-input","","rows","5","placeholder","Provide a concise description of any potential or actual conflicts of interest that you may have in curating CIViC",2,"width","100%",3,"ngModelChange","ngModel"]],template:function(D,u){1&D&&(e.j41(0,"nz-card"),e.DNE(1,z,1,0,"nz-alert",0)(2,f,2,1,"nz-form-item",1),e.j41(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-radio-group",3),e.mxI("ngModelChange",function(_){return e.DH7(u.coiStatus,_)||(u.coiStatus=_),_}),e.j41(6,"label",4),e.EFF(7,"I do not have any potential conflicts of interest."),e.k0s(),e.j41(8,"label",5),e.EFF(9,"I do have a potential conflict of interest."),e.k0s()()(),e.DNE(10,c,2,1,"nz-form-item",1),e.j41(11,"nz-form-item")(12,"button",6),e.bIt("click",function(){return u.updateCoi()}),e.EFF(13," Save Conflict of Interest Statement "),e.k0s()()()()),2&D&&(e.R7$(),e.Y8G("ngIf",u.success),e.R7$(),e.Y8G("ngIf",u.errorMessages.length>0),e.R7$(),e.Y8G("nzSpinning",u.loading),e.R7$(2),e.R50("ngModel",u.coiStatus),e.R7$(5),e.Y8G("ngIf","coiPresent"===u.coiStatus),e.R7$(2),e.Y8G("disabled",u.loading||"coiPresent"===u.coiStatus&&(void 0===u.coiText||u.coiText.length<10)))},dependencies:[p.bT,y.me,y.BC,y.vS,r.e,M.Ls,T.cK,S.Y,G.lx,G.i3,j.aO,$.c,v.p,L.a,h.j],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]})}return l})()},1232:(x,O,t)=>{t.d(O,{N:()=>T});var e=t(177),m=t(9417),n=t(5703),C=t(3617),g=t(8927),I=t(8492),p=t(3190),y=t(2983),r=t(513),M=t(3953);let T=(()=>{class S{static#n=this.\u0275fac=function($){return new($||S)};static#t=this.\u0275mod=M.$C({type:S});static#e=this.\u0275inj=M.G2t({imports:[e.MD,m.YN,g.PQ,m.X1,n.Ti,C.$,p.Sw,r.Zw,y.V,I.M]})}return S})()},574:(x,O,t)=>{t.d(O,{m:()=>f});var e=t(3953),m=t(9417),n=t(4412),C=t(1661),g=t(177),I=t(8927),p=t(3617),y=t(1188),r=t(8524),M=t(1774);const T=c=>["/variants",c,"summary"];function S(c,R){if(1&c){const l=e.RV6();e.qex(0),e.j41(1,"form",5)(2,"formly-form",6),e.bIt("modelChange",function(V){e.eBV(l);const D=e.XpG();return e.Njj(D.modelChange(V))}),e.k0s()(),e.bVm()}if(2&c){const l=e.XpG();e.R7$(),e.Y8G("nzLayout",l.layout)("formGroup",l.form),e.R7$(),e.Y8G("form",l.form)("fields",l.config)("model",l.model)("options",l.options)}}function G(c,R){if(1&c&&e.nrm(0,"nz-alert",10),2&c){e.XpG();const l=e.sdS(3),F=e.sdS(5);e.Y8G("nzMessage",l)("nzDescription",F)}}function j(c,R){if(1&c&&e.EFF(0),2&c){const l=e.XpG().ngIf;e.SpI(" New Variant ",l.name," added. ")}}function $(c,R){if(1&c&&(e.EFF(0," View its "),e.j41(1,"a",11),e.EFF(2,"details here"),e.k0s(),e.EFF(3,". ")),2&c){const l=e.XpG().ngIf;e.R7$(),e.Y8G("routerLink",e.eq3(1,T,l.id))}}function v(c,R){if(1&c&&e.nrm(0,"nz-alert",12),2&c){e.XpG();const l=e.sdS(5),F=e.sdS(8);e.Y8G("nzMessage",F)("nzDescription",l)}}function L(c,R){if(1&c&&e.EFF(0),2&c){const l=e.XpG().ngIf;e.SpI(" Variant ",l.name," already exists. ")}}function h(c,R){if(1&c&&(e.qex(0),e.DNE(1,G,1,2,"nz-alert",8)(2,j,1,1,"ng-template",null,1,e.C5r)(4,$,4,3,"ng-template",null,2,e.C5r)(6,v,1,2,"nz-alert",9)(7,L,1,1,"ng-template",null,3,e.C5r),e.bVm()),2&c){const l=e.XpG(2);e.R7$(),e.Y8G("ngIf",l.newlyCreated),e.R7$(5),e.Y8G("ngIf",!l.newlyCreated)}}function z(c,R){if(1&c&&(e.DNE(0,h,9,2,"ng-container",7),e.nI1(1,"ngrxPush")),2&c){const l=e.XpG();e.Y8G("ngIf",e.bMT(1,1,l.newVariant$))}}let f=(()=>{class c{constructor(l){this.apollo=l,this.onVariantSelected=new e.bkB,this.newVariant$=new n.t(void 0),this.modelChange$=new n.t(void 0),this.layout="horizontal",this.finderState={formLayout:this.layout,fields:{featureId$:new n.t(void 0),variantId$:new n.t(void 0)}},this.form=new m.J3({}),this.model={featureId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"featureId",type:"feature-select",props:{placeholder:"Select New Variant's Feature",layout:{showExtra:!1},hideLabel:!0}},{key:"variantId",type:"variant-select",props:{placeholder:"Enter New Variant Name",requireFeature:!0,layout:{showExtra:!1},hideLabel:!0,isNewlyCreatedCallback:F=>{this.newlyCreated=F}}}]}]}modelChange(l){if(!l?.variantId)return;const F=this.getSelectedVariant(l.variantId);F&&(this.model={featureId:void 0,variantId:void 0},this.onVariantSelected.next(F),this.newVariant$.next(F))}getSelectedVariant(l){if(!l)return;const F={id:`Variant:${l}`,fragment:C.J1` - fragment VariantSelectQuery on Variant { - id - name - link - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } - } - `};let V;try{V=this.apollo.client.readFragment(F)}catch(D){console.error(D)}if(V)return V;console.error("Variant submit form could not resolve its Variant from the cache")}static#n=this.\u0275fac=function(F){return new(F||c)(e.rXU(C.Ic))};static#t=this.\u0275cmp=e.VBU({type:c,selectors:[["cvc-variant-submit-form"]],outputs:{onVariantSelected:"onVariantSelected"},decls:4,vars:4,consts:[["variantCreated",""],["successMessage",""],["variantLink",""],["existsMessage",""],[4,"ngIf","ngIfElse"],["nz-form","",3,"nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"],[4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","info","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"],[3,"routerLink"],["nzType","info","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(F,V){if(1&F&&(e.DNE(0,S,3,6,"ng-container",4),e.nI1(1,"ngrxPush"),e.DNE(2,z,2,3,"ng-template",null,0,e.C5r)),2&F){const D=e.sdS(3);e.Y8G("ngIf",!e.bMT(1,2,V.newVariant$))("ngIfElse",D)}},dependencies:[g.bT,I.CA,p.Y,y.Wk,m.qT,m.cb,m.j4,r.aF,M.L9],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return c})()},7380:(x,O,t)=>{t.d(O,{s:()=>r});var e=t(177),m=t(8927),n=t(513),C=t(8168),g=t(5316),I=t(1188),p=t(3617),y=t(3953);let r=(()=>{class M{static#n=this.\u0275fac=function(G){return new(G||M)};static#t=this.\u0275mod=y.$C({type:M});static#e=this.\u0275inj=y.G2t({imports:[e.MD,m.PQ,n.Zw,p.$,I.iI,C.m,g.P]})}return M})()},4178:(x,O,t)=>{t.r(O),t.d(O,{LayoutModule:()=>St});var e=t(177),m=t(1188),n=t(3953),C=t(1305),g=t(5103),I=t(7529),p=t(1413),y=t(6977),r=t(1025),M=t(317),T=t(1868),S=t(6860),G=t(8203);const j=["*"],$=["nz-sider-trigger",""];function v(o,d){}function L(o,d){if(1&o&&n.DNE(0,v,0,0,"ng-template",2),2&o){const i=n.XpG(),s=n.sdS(5);n.Y8G("ngTemplateOutlet",i.nzZeroTrigger||s)}}function h(o,d){}function z(o,d){if(1&o&&n.DNE(0,h,0,0,"ng-template",2),2&o){const i=n.XpG(),s=n.sdS(3);n.Y8G("ngTemplateOutlet",i.nzTrigger||s)}}function f(o,d){if(1&o&&n.nrm(0,"span",3),2&o){const i=n.XpG(2);n.Y8G("nzType",i.nzCollapsed?"left":"right")}}function c(o,d){if(1&o&&n.nrm(0,"span",3),2&o){const i=n.XpG(2);n.Y8G("nzType",i.nzCollapsed?"right":"left")}}function R(o,d){if(1&o&&n.DNE(0,f,1,1,"span",3)(1,c,1,1,"span",3),2&o){const i=n.XpG();n.vxM(i.nzReverseArrow?0:1)}}function l(o,d){1&o&&n.nrm(0,"span",4)}function F(o,d){if(1&o){const i=n.RV6();n.j41(0,"div",2),n.bIt("click",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.setCollapsed(!a.nzCollapsed))}),n.k0s()}if(2&o){const i=n.XpG();n.Y8G("matchBreakPoint",i.matchBreakPoint)("nzCollapsedWidth",i.nzCollapsedWidth)("nzCollapsed",i.nzCollapsed)("nzBreakpoint",i.nzBreakpoint)("nzReverseArrow",i.nzReverseArrow)("nzTrigger",i.nzTrigger)("nzZeroTrigger",i.nzZeroTrigger)("siderWidth",i.widthSetting)}}let V=(()=>{class o{constructor(i,s){this.elementRef=i,this.renderer=s,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-content")}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-content"]],exportAs:["nzContent"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),u=(()=>{class o{constructor(i,s){this.elementRef=i,this.renderer=s,this.renderer.addClass(this.elementRef.nativeElement,"ant-layout-header")}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(n.aKT),n.rXU(n.sFG))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-header"]],exportAs:["nzHeader"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),A=(()=>{class o{constructor(){this.nzCollapsed=!1,this.nzReverseArrow=!1,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.matchBreakPoint=!1,this.nzCollapsedWidth=null,this.siderWidth=null,this.nzBreakpoint=null,this.isZeroTrigger=!1,this.isNormalTrigger=!1}updateTriggerType(){this.isZeroTrigger=0===this.nzCollapsedWidth&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=0!==this.nzCollapsedWidth}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(s,a){2&s&&(n.xc7("width",a.isNormalTrigger?a.siderWidth:null),n.AVh("ant-layout-sider-trigger",a.isNormalTrigger)("ant-layout-sider-zero-width-trigger",a.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",a.isZeroTrigger&&a.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",a.isZeroTrigger&&!a.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],standalone:!0,features:[n.OA$,n.aNF],attrs:$,decls:6,vars:2,consts:[["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],["nz-icon","",3,"nzType"],["nz-icon","","nzType","bars"]],template:function(s,a){1&s&&n.DNE(0,L,1,1,null,2)(1,z,1,1,null,2)(2,R,2,1,"ng-template",null,0,n.C5r)(4,l,1,0,"ng-template",null,1,n.C5r),2&s&&(n.vxM(a.isZeroTrigger?0:-1),n.R7$(),n.vxM(a.isNormalTrigger?1:-1))},dependencies:[e.T3,g.Y3,g.Dn],encapsulation:2,changeDetection:0})}return o})(),_=(()=>{class o{updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:(0,M.j3)(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&"inline"===this.nzMenuDirective.nzMode&&0!==this.nzCollapsedWidth&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(i){i!==this.nzCollapsed&&(this.nzCollapsed=i,this.nzCollapsedChange.emit(i),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}constructor(i,s,a){this.platform=i,this.cdr=s,this.breakpointService=a,this.destroy$=new p.B,this.nzMenuDirective=null,this.nzCollapsedChange=new n.bkB,this.nzWidth=200,this.nzTheme="dark",this.nzCollapsedWidth=80,this.nzBreakpoint=null,this.nzZeroTrigger=null,this.nzTrigger=void 0,this.nzReverseArrow=!1,this.nzCollapsible=!1,this.nzCollapsed=!1,this.matchBreakPoint=!1,this.flexSetting=null,this.widthSetting=null}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe(r.yY,!0).pipe((0,y.Q)(this.destroy$)).subscribe(i=>{const s=this.nzBreakpoint;s&&(0,M.ij)().subscribe(()=>{this.matchBreakPoint=!i[s],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(i){const{nzCollapsed:s,nzCollapsedWidth:a,nzWidth:P}=i;(s||a||P)&&this.updateStyleMap(),s&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(S.OD),n.rXU(n.gRc),n.rXU(r.jp))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-sider"]],contentQueries:function(s,a,P){if(1&s&&n.wni(P,T.jS,5),2&s){let E;n.mGM(E=n.lsd())&&(a.nzMenuDirective=E.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(s,a){2&s&&(n.xc7("flex",a.flexSetting)("max-width",a.widthSetting)("min-width",a.widthSetting)("width",a.widthSetting),n.AVh("ant-layout-sider-zero-width",a.nzCollapsed&&0===a.nzCollapsedWidth)("ant-layout-sider-light","light"===a.nzTheme)("ant-layout-sider-dark","dark"===a.nzTheme)("ant-layout-sider-collapsed",a.nzCollapsed)("ant-layout-sider-has-trigger",a.nzCollapsible&&null!==a.nzTrigger))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:[2,"nzReverseArrow","nzReverseArrow",n.L39],nzCollapsible:[2,"nzCollapsible","nzCollapsible",n.L39],nzCollapsed:[2,"nzCollapsed","nzCollapsed",n.L39]},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],standalone:!0,features:[n.GFd,n.OA$,n.aNF],ngContentSelectors:j,decls:3,vars:1,consts:[[1,"ant-layout-sider-children"],["nz-sider-trigger","",3,"matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"],["nz-sider-trigger","",3,"click","matchBreakPoint","nzCollapsedWidth","nzCollapsed","nzBreakpoint","nzReverseArrow","nzTrigger","nzZeroTrigger","siderWidth"]],template:function(s,a){1&s&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s(),n.DNE(2,F,1,8,"div",1)),2&s&&(n.R7$(2),n.vxM(a.nzCollapsible&&null!==a.nzTrigger?2:-1))},dependencies:[A],encapsulation:2,changeDetection:0})}return o})(),cn=(()=>{class o{constructor(i){this.directionality=i,this.dir="ltr",this.destroy$=new p.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,y.Q)(this.destroy$)).subscribe(i=>{this.dir=i})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(G.dS,8))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-layout"]],contentQueries:function(s,a,P){if(1&s&&n.wni(P,_,4),2&s){let E;n.mGM(E=n.lsd())&&(a.listOfNzSiderComponent=E)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(s,a){2&s&&n.AVh("ant-layout-rtl","rtl"===a.dir)("ant-layout-has-sider",a.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],standalone:!0,features:[n.aNF],ngContentSelectors:j,decls:1,vars:0,template:function(s,a){1&s&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return o})(),dn=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[_,A]})}return o})();var W=t(5154),pn=t(7670),nn=t(1661),mn=t(5312),K=t(5964),gn=t(4412),tn=t(9172),un=t(3993),en=t(4608),X=t(9199),U=t(9145),Z=t(1774),Q=t(2602),on=t(513),hn=t(6389),zn=t(5930),w=t(7685),an=t(3146),sn=t(2096),Y=t(7391),rn=t(9438),Cn=t(9162),fn=t(1202),vn=t(7074),Tn=t(574);const Mn=o=>["/users",o],En=()=>({backgroundColor:"#096dd9",color:"#fff1f0",boxShadow:"0 0 0 1px #1890ff inset"}),yn=o=>({"update-coi":o});function On(o,d){if(1&o&&(n.j41(0,"button",28),n.EFF(1," Add "),n.nrm(2,"i",29),n.k0s()),2&o){n.XpG(2);const i=n.sdS(16);n.Y8G("nzDropdownMenu",i)}}function In(o,d){if(1&o&&(n.j41(0,"nz-badge",30)(1,"button",31),n.nrm(2,"i",32),n.k0s()()),2&o){const i=n.XpG().ngrxLet,s=n.XpG().ngIf;n.Y8G("nzCount",i)("nzOverflowCount",999)("nzStyle",n.lJ4(5,En)),n.R7$(),n.Mz_("routerLink","/users/",s.id,"/notifications")}}function Pn(o,d){if(1&o&&n.nrm(0,"cvc-user-avatar",37),2&o){const i=n.XpG(3).ngIf;n.Y8G("user",i)("size",22)("ngClass",n.eq3(3,yn,i.invalidCoi))}}function Dn(o,d){if(1&o&&(n.j41(0,"div",39),n.EFF(1),n.k0s()),2&o){const i=n.XpG(4).ngIf;n.R7$(),n.SpI(" ",i.username," ")}}function Sn(o,d){1&o&&(n.qex(0),n.DNE(1,Dn,2,1,"div",38),n.bVm())}function Rn(o,d){1&o&&(n.j41(0,"span",42),n.EFF(1," for "),n.k0s())}function Fn(o,d){if(1&o&&(n.j41(0,"span"),n.nrm(1,"cvc-organization-avatar",43),n.k0s()),2&o){const i=n.XpG(4).ngIf;n.R7$(),n.Y8G("size",18)("organization",i.mostRecentOrg)}}function Vn(o,d){1&o&&(n.qex(0),n.DNE(1,Rn,2,0,"span",40)(2,Fn,2,2,"span",41),n.bVm())}function Bn(o,d){1&o&&n.nrm(0,"i",29)}function xn(o,d){if(1&o&&(n.j41(0,"button",33)(1,"nz-space",34),n.DNE(2,Pn,1,5,"cvc-user-avatar",35)(3,Sn,2,0,"ng-container",7)(4,Vn,3,0,"ng-container",7)(5,Bn,1,0,"i",36),n.k0s()()),2&o){const i=n.XpG(2).ngIf,s=n.sdS(3),a=n.XpG();n.Y8G("nzDropdownMenu",s),n.R7$(3),n.Y8G("ngIf",!a.cvcCollapsed),n.R7$(),n.Y8G("ngIf",i.mostRecentOrg)}}function Gn(o,d){1&o&&(n.j41(0,"nz-space",24),n.DNE(1,On,3,1,"button",25)(2,In,3,6,"nz-badge",26)(3,xn,6,3,"button",27),n.k0s())}function jn(o,d){1&o&&(n.j41(0,"span",47),n.nrm(1,"i",48),n.EFF(2," Conflict of Interest Invalid "),n.k0s())}function An(o,d){if(1&o){const i=n.RV6();n.j41(0,"button",49),n.bIt("click",function(){n.eBV(i);const a=n.XpG(3);return n.Njj(a.coiUpdateModalVisible=!0)}),n.EFF(1," Please Update COI statement "),n.k0s()}}function Un(o,d){if(1&o&&(n.j41(0,"li",44),n.DNE(1,jn,3,0,"ng-template",null,6,n.C5r),n.j41(3,"ul")(4,"li",45),n.DNE(5,An,2,0,"button",46),n.k0s()()()),2&o){const i=n.sdS(2),s=n.XpG().ngIf;n.Y8G("nzTitle",i),n.R7$(5),n.Y8G("ngIf",s.invalidCoi)}}function $n(o,d){if(1&o){const i=n.RV6();n.j41(0,"li",52),n.bIt("click",function(){const a=n.eBV(i).$implicit,P=n.XpG(3);return n.Njj(P.menuSelection$.next(a.id))}),n.nrm(1,"nz-avatar",53),n.j41(2,"span",54),n.EFF(3),n.k0s()()}if(2&o){const i=d.$implicit,s=n.XpG(2).ngIf;n.Y8G("nzSelected",(null==s.mostRecentOrg?null:s.mostRecentOrg.id)===i.id),n.R7$(),n.Y8G("nzSrc",null==i?null:i.profileImagePath)("nzSize",14)("nzShape","square"),n.R7$(2),n.JRh(i.name)}}function Ln(o,d){if(1&o&&(n.j41(0,"li",50)(1,"ul"),n.DNE(2,$n,4,5,"li",51),n.k0s()()),2&o){const i=n.XpG().ngIf;n.R7$(2),n.Y8G("ngForOf",i.organizations)}}function _n(o,d){1&o&&(n.j41(0,"li",55)(1,"ul")(2,"li",56)(3,"a",57),n.EFF(4," Admin Console "),n.k0s()(),n.j41(5,"li",58)(6,"a",59),n.EFF(7," Error Monitoring "),n.k0s()(),n.j41(8,"li",60)(9,"a",61),n.EFF(10," Background Workers "),n.k0s()()()())}function Nn(o,d){if(1&o){const i=n.RV6();n.j41(0,"li",18),n.bIt("click",function(){n.eBV(i);const a=n.XpG(2);return n.Njj(a.addVariantModalVisible$.next(!0))}),n.EFF(1," Variant "),n.k0s()}}function Wn(o,d){if(1&o){const i=n.RV6();n.qex(0),n.DNE(1,Gn,4,0,"nz-space",10),n.j41(2,"nz-dropdown-menu",null,4)(4,"ul",11),n.DNE(5,Un,6,2,"li",12),n.j41(6,"li",13)(7,"ul")(8,"li",14),n.EFF(9," View Profile "),n.k0s(),n.DNE(10,Ln,3,1,"li",15),n.k0s()(),n.DNE(11,_n,11,0,"li",16),n.nrm(12,"li",17),n.j41(13,"li",18),n.bIt("click",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.signOut())}),n.EFF(14," Sign Out "),n.k0s()()(),n.j41(15,"nz-dropdown-menu",null,5)(17,"ul",11)(18,"li",19),n.EFF(19," Evidence Item "),n.k0s(),n.j41(20,"li",20),n.EFF(21," Assertion "),n.k0s(),n.j41(22,"li",21),n.EFF(23," Source Suggestion "),n.k0s(),n.DNE(24,Nn,2,0,"li",22),n.j41(25,"li",23),n.EFF(26," Variant Group "),n.k0s()()(),n.bVm()}if(2&o){const i=d.ngIf,s=n.XpG();n.R7$(),n.Y8G("ngrxLet",s.unreadCount$),n.R7$(4),n.Y8G("ngIf",i.invalidCoi),n.R7$(3),n.Y8G("routerLink",n.eq3(6,Mn,i.id)),n.R7$(2),n.Y8G("ngIf",i.organizations.length>1),n.R7$(),n.Y8G("ngIf",i.isAdmin),n.R7$(13),n.Y8G("ngIf",i.isEditor)}}function Yn(o,d){1&o&&(n.j41(0,"span"),n.EFF(1,"Update your Conflict of Interest Statement"),n.k0s())}function bn(o,d){if(1&o){const i=n.RV6();n.j41(0,"cvc-user-coi-form",62),n.bIt("coiUpdatedEvent",function(){n.eBV(i);const a=n.XpG();return n.Njj(a.coiUpdated())}),n.k0s()}}function Kn(o,d){1&o&&(n.j41(0,"span"),n.EFF(1,"Add New Variant"),n.k0s())}function Xn(o,d){1&o&&n.nrm(0,"cvc-variant-submit-form")}let Qn=(()=>{class o{constructor(i,s,a){this.queryService=i,this.unreadCountGql=s,this.apollo=a,this.cvcCollapsed=!1,this.coiUpdateModalVisible=!1,this.viewer$=this.queryService.viewer$,this.menuSelection$=new p.B,this.unreadCount$=mn.c.production?this.unreadCountGql.watch(void 0,{pollInterval:5e3}).valueChanges.pipe((0,en.E)("data","notifications","unreadCount"),(0,K.p)(X.kP),(0,tn.Z)(0)):this.unreadCountGql.watch(void 0).valueChanges.pipe((0,en.E)("data","notifications","unreadCount"),(0,K.p)(X.kP),(0,tn.Z)(0)),this.addVariantModalVisible$=new gn.t(!1)}ngOnInit(){this.menuSelection$.pipe((0,un.E)(this.viewer$)).subscribe(([i,s])=>{const a={id:`User:${s.id}`,fragment:nn.J1` - fragment UserMostRecentOrgId on User { - mostRecentOrganizationId - } - `,data:{mostRecentOrganizationId:i}};this.apollo.client.writeFragment(a)})}signOut(){this.queryService.signOut()}coiUpdated(){this.coiUpdateModalVisible=!1,this.queryService.refetch()}handleCoiModalCancel(){this.coiUpdateModalVisible=!1}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(C.q),n.rXU(U.pi3),n.rXU(nn.Ic))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-viewer-button"]],inputs:{cvcCollapsed:"cvcCollapsed"},decls:13,vars:13,consts:[["coiModalTitle",""],["coiModalContent",""],["variantModalTitle",""],["variantModalContent",""],["userMenu","nzDropdownMenu"],["addMenu","nzDropdownMenu"],["coiGroupTitle",""],[4,"ngIf"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],[3,"nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],["nzDirection","horizontal","nzSize","middle",4,"ngrxLet"],["nz-menu",""],["nz-menu-group","",3,"nzTitle",4,"ngIf"],["nz-menu-group","","nzTitle","Curation"],["nz-menu-item","","nzMatchRouter","",3,"routerLink"],["nz-menu-group","","nzTitle","Change Organization",4,"ngIf"],["nz-menu-group","","nzTitle","Administration",4,"ngIf"],["nz-menu-divider",""],["nz-menu-item","",3,"click"],["nz-menu-item","","routerLink","/evidence/add/submit"],["nz-menu-item","","routerLink","/assertions/add/submit"],["nz-menu-item","","routerLink","/sources/add"],["nz-menu-item","",3,"click",4,"ngIf"],["nz-menu-item","","routerLink","/variant-groups/add/submit"],["nzDirection","horizontal","nzSize","middle"],["class","add-btn","nz-button","","nzSize","small","nzType","link","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],[3,"nzCount","nzOverflowCount","nzStyle",4,"nzSpaceItem"],["class","viewer-btn","nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","link","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"add-btn",3,"nzDropdownMenu"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"nzCount","nzOverflowCount","nzStyle"],["nz-button","","nzSize","large","nzShape","circle","nzType","link",1,"notification-btn",3,"routerLink"],["nz-icon","","nzType","bell","nzTheme","outline"],["nz-button","","nzSize","large","nzShape","round","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"viewer-btn",3,"nzDropdownMenu"],["nzDirection","horizontal","nzSize","small"],["shape","circle",3,"user","size","ngClass",4,"nzSpaceItem"],["nz-icon","","nzType","caret-down","nzTheme","outline",4,"nzSpaceItem"],["shape","circle",3,"user","size","ngClass"],["class","viewer-name",4,"nzSpaceItem"],[1,"viewer-name"],["class","org-label",4,"nzSpaceItem"],[4,"nzSpaceItem"],[1,"org-label"],["shape","square",3,"size","organization"],["nz-menu-group","",3,"nzTitle"],["nz-menu-item",""],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click",4,"ngIf"],["nz-typography","","nzType","danger"],["nz-icon","","nzType","exclamation-circle"],["nz-button","","nzType","primary","nzShape","round","nzSize","small","nzDanger","","nzBlock","",3,"click"],["nz-menu-group","","nzTitle","Change Organization"],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],["nz-menu-item","",3,"click","nzSelected"],[3,"nzSrc","nzSize","nzShape"],[1,"org-name"],["nz-menu-group","","nzTitle","Administration"],["nz-menu-item","","href","/admin"],["href","/admin"],["nz-menu-item","","href","/errors"],["href","/errors"],["nz-menu-item","","href","/jobs"],["href","/jobs"],[3,"coiUpdatedEvent"]],template:function(s,a){if(1&s){const P=n.RV6();n.DNE(0,Wn,27,8,"ng-container",7),n.nI1(1,"ngrxPush"),n.j41(2,"nz-modal",8),n.mxI("nzVisibleChange",function(B){return n.eBV(P),n.DH7(a.coiUpdateModalVisible,B)||(a.coiUpdateModalVisible=B),n.Njj(B)}),n.bIt("nzOnCancel",function(){return n.eBV(P),n.Njj(a.handleCoiModalCancel())}),n.DNE(3,Yn,2,0,"ng-template",null,0,n.C5r)(5,bn,1,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(7,"nz-modal",9),n.nI1(8,"ngrxPush"),n.bIt("nzOnCancel",function(){return n.eBV(P),n.Njj(a.addVariantModalVisible$.next(!1))}),n.DNE(9,Kn,2,0,"ng-template",null,2,n.C5r)(11,Xn,1,0,"ng-template",null,3,n.C5r),n.k0s()}if(2&s){const P=n.sdS(4),E=n.sdS(6),B=n.sdS(10),N=n.sdS(12);n.Y8G("ngIf",n.bMT(1,9,a.viewer$)),n.R7$(2),n.R50("nzVisible",a.coiUpdateModalVisible),n.Y8G("nzContent",E)("nzTitle",P)("nzFooter",null),n.R7$(5),n.Y8G("nzVisible",n.bMT(8,11,a.addVariantModalVisible$))("nzContent",N)("nzTitle",B)("nzFooter",null)}},dependencies:[e.YU,e.Sq,e.bT,Z.Nj,T.jS,T.CU,T.sD,T.WQ,Q.j3,Q.wQ,Q.h4,m.Wk,on.aO,hn.c,zn.p,w.U5,w.Dq,g.Dn,an.dz,sn.F2,Y.Di,rn.PM,Cn.G,fn.j,vn.w,Tn.m,Z.L9],styles:["[_nghost-%COMP%]{display:inline-block}.topMenuIcon[_ngcontent-%COMP%]:hover{cursor:pointer}.topMenuIcon[_ngcontent-%COMP%]{font-size:16px}.topMenuIcon[_ngcontent-%COMP%] .topBarBadge[_ngcontent-%COMP%]{margin-right:-10px;margin-top:-16px}.topMenuIcon[_ngcontent-%COMP%] .topMenuSecondary[_ngcontent-%COMP%]{font-size:10px;margin-left:2px}.add-btn[_ngcontent-%COMP%]{margin-right:0;background-color:#001529;border:none;color:#ffffffa6}.notification-btn[_ngcontent-%COMP%]{background-color:#001529;border:1px solid #096dd9}li[_ngcontent-%COMP%] .org-name[_ngcontent-%COMP%]{margin-left:4px}.viewer-btn[_ngcontent-%COMP%]{background-color:#0050b3;border:none;color:#ccc;padding-left:5px;padding-right:10px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%], .viewer-btn[_ngcontent-%COMP%] cvc-organization-avatar[_ngcontent-%COMP%]{position:relative;top:-1px;left:1px}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar[_ngcontent-%COMP%] nz-avatar, .viewer-btn[_ngcontent-%COMP%] cvc-organization-avatar[_ngcontent-%COMP%] nz-avatar{border-width:1.5px;border-style:solid;border-color:#096dd9}.viewer-btn[_ngcontent-%COMP%] cvc-user-avatar.update-coi[_ngcontent-%COMP%] nz-avatar{border-color:#f5222d}.viewer-btn[_ngcontent-%COMP%] .org-label[_ngcontent-%COMP%]{margin:0 -4px 0 0;color:#aab}"],changeDetection:0})}return o})();function Hn(o){return o.toLowerCase().split("_").map(d=>d[0].toUpperCase()+d.substring(1)).join("")}var H=t(1997),Zn=t(3236),wn=t(3226),ln=t(9030),Jn=t(2806),kn=t(5245),qn=t(3386),nt=t(5558),J=t(6354),tt=t(3294),k=t(9417),q=t(2986),et=t(4493),ot=t(3075);function it(o,d){if(1&o&&(n.j41(0,"span",8),n.EFF(1," \u2014 "),n.nrm(2,"span",6),n.k0s()),2&o){const i=n.XpG().$implicit;n.R7$(2),n.FS9("innerHTML",i.result.matchingText,n.npT)}}function at(o,d){if(1&o&&(n.j41(0,"nz-option",4),n.nrm(1,"i",5),n.nI1(2,"entityColor"),n.nI1(3,"iconNameForSubscribableEntity"),n.nrm(4,"span",6),n.DNE(5,it,3,1,"span",7),n.k0s()),2&o){const i=d.$implicit,s=n.XpG();n.Y8G("nzValue",i.result),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,5,s.converter(i.result.resultType)))("nzType",n.bMT(3,7,i.result.resultType)),n.R7$(3),n.FS9("innerHTML",i.result.name,n.npT),n.R7$(),n.Y8G("ngIf",i.result.matchingText)}}function st(o,d){1&o&&(n.j41(0,"nz-option",9),n.nrm(1,"i",10),n.EFF(2," Loading Data... "),n.k0s())}function rt(o,d){if(1&o&&(n.j41(0,"label",13),n.nrm(1,"i",14),n.nI1(2,"entityColor"),n.nI1(3,"iconNameForSubscribableEntity"),n.k0s()),2&o){const i=d.$implicit,s=n.XpG(2);n.Y8G("nzValue",i)("nzTooltipTitle",i)("ngModel",s.isSelected(i)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,5,i))("nzType",n.bMT(3,7,i))}}function lt(o,d){if(1&o){const i=n.RV6();n.nrm(0,"hr"),n.j41(1,"nz-checkbox-wrapper",11),n.bIt("nzOnChange",function(a){n.eBV(i);const P=n.XpG();return n.Njj(P.selectedEntitiesChanged(a))}),n.j41(2,"div",12),n.Z7z(3,rt,4,9,"label",13,n.fX1),n.k0s()()}if(2&o){const i=n.XpG();n.R7$(3),n.Dyx(i.searchableEntities)}}let ct=(()=>{class o{set selectedOpt(i){this._selectedOpt=i}get selectedOpt(){return this._selectedOpt}constructor(i,s){this.gql=i,this.router=s,this.selectedEntities=Object.values(U.cO8),this.searchableEntities=Object.keys(U.cO8),this.converter=Hn,this.onSearch$=new p.B,this.onSelect$=new p.B,this.response$=this.onSearch$.pipe((0,kn.i)(1),(0,qn.c)(300,Zn.E,{leading:!1,trailing:!0}),(0,nt.n)(E=>{this.currentSearchTerm=E;let B=this.selectedEntities;return(0,wn.T)(()=>void 0===this.queryRef,(0,ln.v)(()=>a(E,B)),(0,ln.v)(()=>P(E,B)))})),this.isLoading$=this.response$.pipe((0,J.T)(E=>E.loading),(0,K.p)(X.kP),(0,tt.F)()),this.result$=this.response$.pipe((0,J.T)(E=>E.data?.search),(0,K.p)(X.kP)),this.option$=this.result$.pipe((0,J.T)(E=>{const B=[];return E.forEach(N=>{N&&B.push({text:N.name,value:N.id.toString(),result:N})}),B})),this.onSelect$.subscribe(()=>{this.selectedOpt&&this.router.navigateByUrl(this.urlForResult(this.selectedOpt)),this.selectNode.writeValue(void 0)});const a=(E,B)=>(this.queryRef=this.gql.watch({query:E,highlightMatches:!0,types:B}),this.queryRef.valueChanges),P=(E,B)=>(0,Jn.H)(this.queryRef.refetch({query:E,types:B}))}urlForResult(i){let s;switch(i.resultType){case U.cO8.VariantGroup:s="variant-groups";break;case U.cO8.EvidenceItem:s="evidence";break;case U.cO8.MolecularProfile:s="molecular-profiles";break;case U.cO8.Therapy:s="therapies";break;default:s=`${i.resultType.toLowerCase()}s`}return`/${s}/${i.id}/summary`}selectedEntitiesChanged(i){this.selectedEntities=i.map(s=>U.cO8[s]),this.currentSearchTerm&&this.onSearch$.next(this.currentSearchTerm)}isSelected(i){return this.selectedEntities.includes(U.cO8[i])}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(U.kHr),n.rXU(m.Ix))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-quicksearch"]],viewQuery:function(s,a){if(1&s&&n.GBs(H.WI,7),2&s){let P;n.mGM(P=n.lsd())&&(a.selectNode=P.first)}},decls:7,vars:11,consts:[["searchEntities",""],["nzShowSearch","","nzServerSearch","","nzAllowClear","","nzPlaceHolder","Search CIViC",3,"ngModelChange","nzOnSearch","ngModel","nzOptionHeightPx","nzShowArrow","nzDropdownRender","nzDropdownMatchSelectWidth"],["nzCustomContent","",3,"nzValue",4,"ngFor","ngForOf"],["nzDisabled","","nzCustomContent","",4,"ngIf"],["nzCustomContent","",3,"nzValue"],["nz-icon","","nzTheme","twotone",2,"margin-right","0.5em",3,"nzTwotoneColor","nzType"],[3,"innerHTML"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary"],["nzDisabled","","nzCustomContent",""],["nz-icon","","nzType","loading",1,"loading-icon"],[3,"nzOnChange"],[1,"entity-select"],["nz-checkbox","","nz-tooltip","",3,"nzValue","nzTooltipTitle","ngModel"],["nz-icon","","nzTheme","twotone","nzTool","",3,"nzTwotoneColor","nzType"]],template:function(s,a){if(1&s){const P=n.RV6();n.j41(0,"nz-select",1),n.mxI("ngModelChange",function(B){return n.eBV(P),n.DH7(a.selectedOpt,B)||(a.selectedOpt=B),n.Njj(B)}),n.bIt("ngModelChange",function(B){return n.eBV(P),n.Njj(a.onSelect$.next(B))})("nzOnSearch",function(B){return n.eBV(P),n.Njj(a.onSearch$.next(B))}),n.DNE(1,at,6,9,"nz-option",2),n.nI1(2,"ngrxPush"),n.DNE(3,st,3,0,"nz-option",3),n.nI1(4,"ngrxPush"),n.k0s(),n.DNE(5,lt,5,0,"ng-template",null,0,n.C5r)}if(2&s){const P=n.sdS(6);n.R50("ngModel",a.selectedOpt),n.Y8G("nzOptionHeightPx",28)("nzShowArrow",!1)("nzDropdownRender",P)("nzDropdownMatchSelectWidth",!1),n.R7$(),n.Y8G("ngForOf",n.bMT(2,7,a.option$)),n.R7$(2),n.Y8G("ngIf",n.bMT(4,9,a.isLoading$))}},dependencies:[e.Sq,e.bT,k.BC,k.vS,Y.Di,H.ld,H.WI,g.Dn,q.$g,q.wG,W.LH,Z.L9,et.g,ot.R],styles:[":[_nghost-%COMP%]{display:block}nz-select[_ngcontent-%COMP%]{width:100%}hr[_ngcontent-%COMP%]{border-color:#6666}.entity-select[_ngcontent-%COMP%]{margin-right:10px;margin-left:10px}"]})}return o})();const b=o=>({"is-collapsed":o});function dt(o,d){1&o&&n.nrm(0,"img",65)}function pt(o,d){1&o&&n.nrm(0,"img",66)}function mt(o,d){1&o&&n.nrm(0,"cvc-login-button")}function gt(o,d){if(1&o&&n.nrm(0,"cvc-viewer-button",67),2&o){const i=n.XpG();n.Y8G("cvcCollapsed",i.isCollapsed)}}const ut=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"",component:(()=>{class o{constructor(i){this.viewerService=i,this.isCollapsed=!1}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.signedIn$=this.viewerService.signedIn$,this.signedOut$=this.viewerService.signedOut$,this.canCurate$=this.viewerService.canCurate$,this.canModerate$=this.viewerService.canModerate$}static#n=this.\u0275fac=function(s){return new(s||o)(n.rXU(C.q))};static#t=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-layout"]],decls:133,vars:53,consts:[[1,"app-layout"],["nzCollapsible","","nzBreakpoint","md",1,"app-sider",3,"nzCollapsedChange","nzWidth","nzCollapsedWidth","nzCollapsed","nzTrigger"],["routerLink","/"],[1,"sidebar-logo",3,"ngClass"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer",4,"ngIf"],["nz-menu","","nzTheme","dark","nzMode","inline",1,"sidebar-menu",3,"ngClass","nzInlineCollapsed"],["nz-menu-group","",3,"nzTitle"],["nz-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-assertion"],["routerLink","/assertions"],["nz-icon","","nzType","civic-evidence"],["routerLink","/evidence"],["nz-icon","","nzType","civic-molecularprofile"],["routerLink","/molecular-profiles"],["nz-menu-item","","nz-tooltip","","nzTooltipPlacement","right","nzSelected","","nzMatchRouter","",3,"nzTooltipTitle"],["nz-icon","","nzType","civic-feature"],["routerLink","/features"],["nz-icon","","nzType","civic-variant"],["routerLink","/variants"],["nz-icon","","nzType","civic-variantgroup"],["routerLink","/variant-groups"],["nz-icon","","nzType","civic-clinicaltrial"],["routerLink","/clinical-trials"],["nz-icon","","nzType","civic-disease"],["routerLink","/diseases"],["nz-icon","","nzType","civic-therapy"],["routerLink","/therapies"],["nz-icon","","nzType","civic-phenotype"],["routerLink","/phenotypes"],["nz-icon","","nzType","civic-source"],["routerLink","/sources"],["nz-icon","","nzType","civic-varianttype"],["routerLink","/variant-types"],["nz-icon","","nzType","civic-event"],["routerLink","/curation/activity"],["nz-icon","","nzType","civic-queue"],["routerLink","/curation/queues"],["nz-icon","","nzType","civic-curator"],["routerLink","/users","id","main-users"],["nz-icon","","nzType","civic-organization"],["routerLink","/organizations","id","main-organization"],["nz-icon","","nzType","download"],["routerLink","/releases","id","releases"],["nz-tooltip","","nzTooltipPlacement","rightTop","nzTooltipTitle","By marking the work with a CC0 public domain dedication, the creator is giving up their copyright and allowing reusers to distribute, remix, adapt, and build upon the material in any medium or format, even for commercial purposes.",1,"cc-notice",3,"ngClass"],["src","assets/images/CC0-notice-glyph.svg","alt","CC0 1.0 Universal",1,"cc-glyph"],["src","assets/images/CC0-notice-txt.svg","alt","This work has been marked as dedicated to the public domain.",1,"cc-txt"],[1,"right-layout",3,"ngClass"],[3,"ngClass"],["nz-row","","id","header-row"],["nz-col","","nzFlex","40px"],[1,"header-trigger",3,"click"],["nz-icon","",1,"trigger",3,"nzType"],["nz-col","","id","header-search",3,"nzFlex"],["nz-col","","nzFlex","1 0 auto","id","header-menu"],["nz-menu","","nzMode","horizontal","nzTheme","dark"],["nz-menu-item","","nzSelected","","nzMatchRouter",""],["routerLink","/welcome"],["routerLink","/pages/about"],["routerLink","/pages/help"],["target","_blank","href","https://docs.civicdb.org/"],["nz-icon","","nzType","link"],["nz-col","","nzFlex","1 0 auto","id","header-viewer"],[4,"ngIf"],[3,"cvcCollapsed",4,"ngIf"],["src","assets/images/civic-logo_sidebar-expanded.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"],["src","assets/images/civic-logo_sidebar-collapsed.png","alt","CIViC - Clinical Interpretations of Variants in Cancer"],[3,"cvcCollapsed"]],template:function(s,a){1&s&&(n.j41(0,"nz-layout",0)(1,"nz-sider",1),n.mxI("nzCollapsedChange",function(E){return n.DH7(a.isCollapsed,E)||(a.isCollapsed=E),E}),n.j41(2,"a",2)(3,"div",3),n.DNE(4,dt,1,0,"img",4)(5,pt,1,0,"img",5),n.k0s()(),n.j41(6,"ul",6)(7,"li",7)(8,"ul")(9,"li",8),n.nrm(10,"i",9),n.j41(11,"a",10)(12,"span"),n.EFF(13,"Assertions"),n.k0s()()(),n.j41(14,"li",8),n.nrm(15,"i",11),n.j41(16,"a",12)(17,"span"),n.EFF(18,"Evidence"),n.k0s()()(),n.j41(19,"li",8),n.nrm(20,"i",13),n.j41(21,"a",14)(22,"span"),n.EFF(23,"Molecular Profiles"),n.k0s()()(),n.j41(24,"li",15),n.nrm(25,"i",16),n.j41(26,"a",17)(27,"span"),n.EFF(28,"Features"),n.k0s()()(),n.j41(29,"li",15),n.nrm(30,"i",18),n.j41(31,"a",19)(32,"span"),n.EFF(33,"Variants"),n.k0s()()(),n.j41(34,"li",15),n.nrm(35,"i",20),n.j41(36,"a",21)(37,"span"),n.EFF(38,"Variant Groups"),n.k0s()()()()(),n.j41(39,"li",8),n.nrm(40,"i",22),n.j41(41,"a",23)(42,"span"),n.EFF(43,"Clinical Trials"),n.k0s()()(),n.j41(44,"li",8),n.nrm(45,"i",24),n.j41(46,"a",25)(47,"span"),n.EFF(48,"Diseases"),n.k0s()()(),n.j41(49,"li",8),n.nrm(50,"i",26),n.j41(51,"a",27)(52,"span"),n.EFF(53,"Therapies"),n.k0s()()(),n.j41(54,"li",8),n.nrm(55,"i",28),n.j41(56,"a",29)(57,"span"),n.EFF(58,"Phenotypes"),n.k0s()()(),n.j41(59,"li",15),n.nrm(60,"i",30),n.j41(61,"a",31)(62,"span"),n.EFF(63,"Sources"),n.k0s()()(),n.j41(64,"li",8),n.nrm(65,"i",32),n.j41(66,"a",33)(67,"span"),n.EFF(68,"Variant Types"),n.k0s()()(),n.j41(69,"li",7)(70,"ul")(71,"li",8),n.nrm(72,"i",34),n.j41(73,"a",35)(74,"span"),n.EFF(75,"Activity"),n.k0s()()(),n.j41(76,"li",8),n.nrm(77,"i",36),n.j41(78,"a",37)(79,"span"),n.EFF(80,"Queues"),n.k0s()()()()(),n.j41(81,"li",7)(82,"ul")(83,"li",8),n.nrm(84,"i",38),n.j41(85,"a",39)(86,"span"),n.EFF(87,"Contributors"),n.k0s()()(),n.j41(88,"li",8),n.nrm(89,"i",40),n.j41(90,"a",41)(91,"span"),n.EFF(92,"Organizations"),n.k0s()()()()(),n.j41(93,"li",7)(94,"ul")(95,"li",8),n.nrm(96,"i",42),n.j41(97,"a",43)(98,"span"),n.EFF(99,"Data Releases"),n.k0s()()()()()(),n.j41(100,"div",44),n.nrm(101,"img",45)(102,"img",46),n.k0s()(),n.j41(103,"nz-layout",47)(104,"nz-header",48)(105,"div",49)(106,"div",50)(107,"span",51),n.bIt("click",function(){return a.isCollapsed=!a.isCollapsed}),n.nrm(108,"i",52),n.k0s()(),n.j41(109,"div",53),n.nrm(110,"cvc-quicksearch"),n.k0s(),n.j41(111,"div",54)(112,"ul",55)(113,"li",56)(114,"a",57),n.EFF(115,"Home"),n.k0s()(),n.j41(116,"li",56)(117,"a",58),n.EFF(118),n.k0s()(),n.j41(119,"li",56)(120,"a",59),n.EFF(121,"Help"),n.k0s()(),n.j41(122,"li",56)(123,"a",60),n.EFF(124),n.nrm(125,"i",61),n.k0s()()()(),n.j41(126,"div",62),n.DNE(127,mt,1,0,"cvc-login-button",63),n.nI1(128,"async"),n.DNE(129,gt,1,1,"cvc-viewer-button",64),n.nI1(130,"async"),n.k0s()()(),n.j41(131,"nz-content"),n.nrm(132,"router-outlet"),n.k0s()()()),2&s&&(n.R7$(),n.Y8G("nzWidth",170)("nzCollapsedWidth",80),n.R50("nzCollapsed",a.isCollapsed),n.Y8G("nzTrigger",null),n.R7$(2),n.Y8G("ngClass",n.eq3(43,b,a.isCollapsed)),n.R7$(),n.Y8G("ngIf",!a.isCollapsed),n.R7$(),n.Y8G("ngIf",a.isCollapsed),n.R7$(),n.Y8G("ngClass",n.eq3(45,b,a.isCollapsed))("nzInlineCollapsed",a.isCollapsed),n.R7$(),n.Y8G("nzTitle",a.isCollapsed?"KNOW":"KNOWLEDGEBASE"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Assertions":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Evidence":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Molecular Profiles":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Features":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variants":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variant Groups":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Clinical Trials":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Diseases":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Therapies":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Phenotypes":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Sources":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Variant Types":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"CURATE":"CURATION"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Activity":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Pending Queues":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"COMM":"COMMUNITY"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Users":""),n.R7$(5),n.Y8G("nzTooltipTitle",a.isCollapsed?"Organizations":""),n.R7$(5),n.Y8G("nzTitle",a.isCollapsed?"RES":"RESOURCES"),n.R7$(2),n.Y8G("nzTooltipTitle",a.isCollapsed?"Data Releases":""),n.R7$(5),n.Y8G("ngClass",n.eq3(47,b,a.isCollapsed)),n.R7$(3),n.Y8G("ngClass",n.eq3(49,b,a.isCollapsed)),n.R7$(),n.Y8G("ngClass",n.eq3(51,b,a.isCollapsed)),n.R7$(4),n.Y8G("nzType",a.isCollapsed?"menu-unfold":"menu-fold"),n.R7$(),n.Y8G("nzFlex",a.isCollapsed?"90px":"150px"),n.R7$(9),n.JRh(a.isCollapsed?"About":"About CIViC"),n.R7$(6),n.SpI(" ",a.isCollapsed?"Docs":"Documentation"," "),n.R7$(3),n.Y8G("ngIf",n.bMT(128,39,a.signedOut$)),n.R7$(2),n.Y8G("ngIf",n.bMT(130,41,a.signedIn$)))},dependencies:[e.YU,e.bT,m.n3,m.Wk,g.Dn,I.Uq,I.e,cn,u,V,_,T.jS,T.CU,T.WQ,W.LH,pn.z,Qn,ct,e.Jj],styles:["[_nghost-%COMP%]{display:flex;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.app-layout[_ngcontent-%COMP%]{min-height:100vh}nz-sider[_ngcontent-%COMP%]{width:170px;overflow:auto;height:100%;position:fixed;left:0}.right-layout[_ngcontent-%COMP%]{margin-left:170px;width:100%;position:relative;transition:all .2s,padding 0s;background-color:#001529}.right-layout.is-collapsed[_ngcontent-%COMP%]{margin-left:80px}.sidebar-menu[_ngcontent-%COMP%]{margin-top:-20px}.sidebar-menu[_ngcontent-%COMP%] .ant-menu-title-content .anticon{margin-right:4px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%]{margin-top:-8px}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-item-group-title{text-align:center}.sidebar-menu.is-collapsed[_ngcontent-%COMP%] .ant-menu-title-content a span{display:none}.cc-notice[_ngcontent-%COMP%]{margin-top:5em;text-align:center;width:170px}.cc-notice[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:56px}.cc-notice[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{width:76px}.cc-notice.is-collapsed[_ngcontent-%COMP%]{width:80px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-glyph[_ngcontent-%COMP%]{width:35px}.cc-notice.is-collapsed[_ngcontent-%COMP%] .cc-txt[_ngcontent-%COMP%]{display:none}.sidebar-logo[_ngcontent-%COMP%]{height:90px}.sidebar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:133px;height:auto;margin:12px 16px;transition:all .2s}.sidebar-logo.is-collapsed[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:auto;margin:12px 20px;transition:all .2s}.ant-layout-header[_ngcontent-%COMP%]{height:64px;line-height:64px;padding:0;position:fixed;width:calc(100vw - 170px);z-index:10;color:#d6e4ff;transition:all .2s}.ant-layout-header.is-collapsed[_ngcontent-%COMP%]{transition:all .2s;width:calc(100vw - 80px)}.header-trigger[_ngcontent-%COMP%]{height:64px;cursor:pointer;color:#d6e4ff;padding:1em 1em 1em 0}#header-row[_ngcontent-%COMP%]{flex-wrap:nowrap}#header-menu[_ngcontent-%COMP%]{text-align:right;height:64px}#header-search[_ngcontent-%COMP%]{height:64px;padding-right:16px}#header-viewer[_ngcontent-%COMP%]{text-align:right;padding-right:1em}.header-quicksearch[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-menu[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .header-user[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#d6e4ff}nz-content[_ngcontent-%COMP%]{margin-top:64px;overflow:initial;position:relative;z-index:1;background-color:#273340;border-top:1px solid #3e5166;border-left:1px solid #3e5166;padding:12px;border-top-left-radius:16px}"],changeDetection:0})}return o})(),children:[{path:"assertions",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(3236),t.e(4009),t.e(2076),t.e(6618)]).then(t.bind(t,5629)).then(o=>o.AssertionsModule),data:{breadcrumb:"Assertions"}},{path:"molecular-profiles",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(5076),t.e(8584)]).then(t.bind(t,7502)).then(o=>o.MolecularProfilesModule),data:{breadcrumb:"Molecular Profiles"}},{path:"clinical-trials",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5892),t.e(1778)]).then(t.bind(t,8799)).then(o=>o.ClinicalTrialsModule),data:{breadcrumb:"Clinical Trials"}},{path:"diseases",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(4514),t.e(3236),t.e(8696)]).then(t.bind(t,9754)).then(o=>o.DiseasesModule),data:{breadcrumb:"Diseases"}},{path:"therapies",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(3236),t.e(8191)]).then(t.bind(t,3178)).then(o=>o.TherapiesModule),data:{breadcrumb:"Therapies"}},{path:"evidence",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5627)]).then(t.bind(t,4414)).then(o=>o.EvidenceModule),data:{breadcrumb:"Evidence"}},{path:"genes",redirectTo:"features",data:{breadcrumb:"Features"}},{path:"features",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(5528)]).then(t.bind(t,5528)).then(o=>o.FeaturesModule),data:{breadcrumb:"Features"}},{path:"organizations",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(4514),t.e(3236),t.e(326),t.e(1136),t.e(8733),t.e(2553),t.e(2076),t.e(1781)]).then(t.bind(t,1781)).then(o=>o.OrganizationsModule),data:{breadcrumb:"Organizations"}},{path:"phenotypes",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(3236),t.e(863)]).then(t.bind(t,8366)).then(o=>o.PhenotypesModule),data:{breadcrumb:"Phenotypes"}},{path:"sources",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(262),t.e(1136),t.e(5892),t.e(3428)]).then(t.bind(t,1162)).then(o=>o.SourcesModule),data:{breadcrumb:"Sources"}},{path:"curation",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(3236),t.e(1136),t.e(4021)]).then(t.bind(t,2670)).then(o=>o.CurationModule),data:{breadcrumb:"Curation"}},{path:"users",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(4514),t.e(3236),t.e(326),t.e(1136),t.e(8733),t.e(2553),t.e(4391)]).then(t.bind(t,4391)).then(o=>o.UsersModule),data:{breadcrumb:"Contributors"}},{path:"variant-groups",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(9034)]).then(t.bind(t,9034)).then(o=>o.VariantGroupsModule),data:{breadcrumb:"Variant Groups"}},{path:"variants",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(1234),t.e(2971)]).then(t.bind(t,3889)).then(o=>o.VariantsModule),data:{breadcrumb:"Variants"}},{path:"variant-types",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(4514),t.e(1250),t.e(1234),t.e(9452)]).then(t.bind(t,430)).then(o=>o.VariantTypesModule),data:{breadcrumb:"Variant Types"}},{path:"welcome",loadChildren:()=>Promise.all([t.e(3967),t.e(1110),t.e(6508),t.e(8733),t.e(5439)]).then(t.bind(t,3824)).then(o=>o.WelcomeModule),data:{breadcrumb:"Welcome to CIViC"}},{path:"releases",loadChildren:()=>Promise.all([t.e(5231),t.e(7732)]).then(t.bind(t,7732)).then(o=>o.ReleasesModule),data:{breadcrumb:"Releases"}},{path:"pages",loadChildren:()=>t.e(5514).then(t.bind(t,5514)).then(o=>o.PagesModule),data:{breadcrumb:"Pages"}},{path:"forms",loadChildren:()=>Promise.all([t.e(5231),t.e(3023),t.e(8414),t.e(5615),t.e(4009),t.e(2076),t.e(6148)]).then(t.bind(t,2317)).then(o=>o.TestPagesModule),data:{breadcrumb:"Forms Dev"}}]}];let ht=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[m.iI.forChild(ut),m.iI]})}return o})();var zt=t(776),Ct=t(1011),ft=t(8927),vt=t(8928),Tt=t(4917);let Mt=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,k.YN,m.iI,Tt.i,Y.kT,H.DH,Ct.j,ft.PQ,g.Y3,vt.jl,q.IJ,W.Qt]})}return o})();var Et=t(400),yt=t(3357),Ot=t(1232),It=t(7380),Pt=t(5285);let Dt=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,Q.Cu,m.iI,on.Zw,w.pc,g.Y3,an.W2,W.Qt,sn.U6,Y.kT,rn.Yb,yt.P,Ot.N,Pt.T,It.s]})}return o})(),St=(()=>{class o{static#n=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[e.MD,ht,g.Y3,I.f3,dn,T.GP,W.Qt,Y.kT,zt.s,Et.a,Dt,Mt]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/4334.52627fc5ad707ed5.js b/server/public/4334.af438669d5b4934a.js similarity index 67% rename from server/public/4334.52627fc5ad707ed5.js rename to server/public/4334.af438669d5b4934a.js index 546052259..544670b2a 100644 --- a/server/public/4334.52627fc5ad707ed5.js +++ b/server/public/4334.af438669d5b4934a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4334],{9045:(kn,P,o)=>{o.d(P,{J:()=>j});var _=o(6514),L=o(505),r=o(3953),M=o(177),w=o(1188),U=o(5699),B=o(1236),q=o(5103),F=o(8011),z=o(2387),v=o(3075);const J=(s,I,p)=>({rejected:s,submitted:I,accepted:p});function H(s,I){}function W(s,I){if(1&s&&(r.qex(0),r.j41(1,"a",5),r.DNE(2,H,0,0,"ng-template",6),r.k0s(),r.bVm()),2&s){const p=r.XpG(),f=r.sdS(2);r.R7$(),r.Y8G("routerLink",p.evidence.link),r.R7$(),r.Y8G("ngTemplateOutlet",f)}}function Q(s,I){}function K(s,I){if(1&s&&r.nrm(0,"cvc-evidence-popover",9),2&s){const p=r.XpG(3);r.Y8G("evidenceId",p.evidence.id)}}function V(s,I){if(1&s&&r.DNE(0,K,1,1,"cvc-evidence-popover",8),2&s){const p=r.XpG(2);r.Y8G("ngIf",p.enablePopover)}}function T(s,I){if(1&s&&(r.j41(0,"nz-tag",7),r.DNE(1,Q,0,0,"ng-template",6),r.k0s(),r.DNE(2,V,1,1,"ng-template",null,3,r.C5r)),2&s){const p=r.sdS(3),f=r.XpG(),n=r.sdS(6);r.Y8G("ngClass",r.sMw(5,J,"REJECTED"===f.evidence.status,"SUBMITTED"===f.evidence.status,"ACCEPTED"===f.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p)("nzPopoverTrigger",f.enablePopover?"hover":null),r.R7$(),r.Y8G("ngTemplateOutlet",n)}}function C(s,I){}function x(s,I){if(1&s&&r.DNE(0,C,0,0,"ng-template",6),2&s){r.XpG();const p=r.sdS(2);r.Y8G("ngTemplateOutlet",p)}}function m(s,I){if(1&s&&(r.j41(0,"cvc-icon-badges",10),r.nrm(1,"i",11),r.nI1(2,"entityColor"),r.nI1(3,"entityColor"),r.k0s(),r.EFF(4)),2&s){const p=r.XpG();r.Y8G("flagged",p.evidence.flagged)("entityColor",p.iconColor),r.R7$(),r.Y8G("nzTwotoneColor","REJECTED"===p.evidence.status?r.bMT(2,4,"Rejected"):r.bMT(3,6,"EvidenceItem")),r.R7$(3),r.SpI(" ",p.evidence.name,"\n")}}let j=(()=>{class s extends _.s{set evidence(p){if(!p)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=p}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,L.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#n=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275cmp=r.VBU({type:s,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(f,n){if(1&f&&r.DNE(0,W,3,2,"ng-container",4)(1,T,4,9,"ng-template",null,0,r.C5r)(3,x,1,1,"ng-template",null,1,r.C5r)(5,m,5,8,"ng-template",null,2,r.C5r),2&f){const Z=r.sdS(4);r.Y8G("ngIf",n.linked)("ngIfElse",Z)}},dependencies:[M.YU,M.bT,M.T3,w.Wk,U.s,B.L_,q.Dn,F.S,z.N,v.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]})}return s})()},5202:(kn,P,o)=>{o.r(P),o.d(P,{VariantsDetailModule:()=>co});var _=o(177),L=o(7169),r=o(6912),M=o(1896),w=o(8103),U=o(5736),B=o(4124),q=o(1532),F=o(4917),z=o(9417),v=o(1188),J=o(996),H=o(4308),W=o(3842),Q=o(8492),K=o(8692),V=o(3617),T=o(513),C=o(5703),x=o(8927),m=o(7529),j=o(1997),s=o(7685),I=o(2983),p=o(5154),f=o(7391),n=o(3953);let Z=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,v.iI,z.YN,z.X1,x.PQ,V.$,m.f3,T.Zw,I.V,C.Ti,s.pc,f.kT,p.Qt,j.DH,Q.M,W.k,K.j,H.I,J.o]})}return t})();var nn=o(5103),R=o(3062),un=o(1236),u=o(9145),Cn=o(9172),O=o(6977),$=o(4608),In=o(1413),zn=o(4412),hn=o(1305),N=o(1774),yn=o(6389),Fn=o(5930),Pn=o(6269),On=o(9945),Xn=o(8821),An=o(7428),X=o(3245),Ln=o(9765),wn=o(5269),Un=o(4126),Bn=o(1635),qn=o(1226),b=o(6354),S=o(5964),D=o(9199),En=o(9894),Jn=o(4222),Hn=o(1939),Wn=o(5566),Qn=o(5473);function Kn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-molecular-profile-tag",22),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("molecularProfile",e)}}function Zn(t,a){if(1&t&&n.DNE(0,Kn,2,1,"ng-container",21),2&t){const e=n.XpG(3).ngrxLet;n.Y8G("ngForOf",e)}}function nt(t,a){if(1&t&&(n.j41(0,"nz-alert",20),n.DNE(1,Zn,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&t){const e=n.sdS(2);n.Y8G("nzDescription",e)}}function tt(t,a){1&t&&(n.qex(0),n.DNE(1,nt,3,1,"nz-alert",19),n.bVm())}function et(t,a){if(1&t&&(n.qex(0),n.DNE(1,tt,2,0,"ng-container",18),n.bVm()),2&t){const e=a.ngrxLet;n.R7$(),n.Y8G("ngIf",e&&e.length>0)}}function at(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-molecular-profile-tag",22),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("molecularProfile",e)}}function it(t,a){if(1&t&&n.DNE(0,at,2,1,"ng-container",21),2&t){const e=n.XpG(3).ngrxLet;n.Y8G("ngForOf",e)}}function ot(t,a){if(1&t&&(n.j41(0,"nz-alert",24),n.DNE(1,it,1,1,"ng-template",null,2,n.C5r),n.k0s()),2&t){const e=n.sdS(2);n.Y8G("nzDescription",e)}}function rt(t,a){1&t&&(n.qex(0),n.DNE(1,ot,3,1,"nz-alert",23),n.bVm())}function ct(t,a){if(1&t&&(n.qex(0),n.DNE(1,rt,2,0,"ng-container",18),n.bVm()),2&t){const e=a.ngrxLet;n.R7$(),n.Y8G("ngIf",e&&e.length>0)}}function st(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",25),n.bIt("nzOnClose",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.onSuccessBannerClose())}),n.k0s()}}function _t(t,a){if(1&t&&n.nrm(0,"nz-alert",26),2&t){n.XpG();const e=n.sdS(9);n.Y8G("nzDescription",e)}}function lt(t,a){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function pt(t,a){if(1&t&&(n.j41(0,"ul"),n.DNE(1,lt,2,1,"li",21),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.errorMessages)}}function gt(t,a){}function mt(t,a){1&t&&n.DNE(0,gt,0,0,"ng-template")}function ft(t,a){if(1&t&&(n.qex(0),n.DNE(1,mt,1,0,null,28),n.bVm()),2&t){n.XpG();const e=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function dt(t,a){}function vt(t,a){1&t&&n.DNE(0,dt,0,0,"ng-template")}function ut(t,a){if(1&t&&(n.j41(0,"span",29),n.DNE(1,vt,1,0,null,28),n.k0s()),2&t){n.XpG();const e=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function Ct(t,a){if(1&t&&(n.j41(0,"button",30),n.EFF(1," Deprecate Variant "),n.k0s()),2&t){const e=n.XpG().ngrxLet,i=n.XpG();n.Y8G("disabled",!(void 0!==i.comment&&i.comment.length>=10&&e.signedIn&&e.isEditor&&i.reason))("nzTooltipTrigger",i.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==i.selectedOrg?null:i.selectedOrg.name))}}function It(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-form-buttons"),n.DNE(2,ft,2,1,"ng-container",27)(3,ut,2,1,"ng-template",null,3,n.C5r)(5,Ct,2,3,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&t){const e=a.ngrxLet,i=n.sdS(4);n.R7$(2),n.Y8G("ngIf",e.signedIn&&e.isEditor)("ngIfElse",i)}}let tn=class vn{constructor(a,e,i,c,g,l){this.deprecateVariantGQL=a,this.variantDetailGQL=e,this.mpsForVariantGQL=i,this.networkErrorService=c,this.route=g,this.viewerService=l,this.destroy$=new In.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateVariantMutator=new qn.E(c),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,En.s)(this)).subscribe(e=>{this.selectedOrg=e.mostRecentOrg}),void 0===this.variantId)throw new Error("Must pass a variant id into deprecate variant component");let a=this.mpsForVariantGQL.fetch({variantId:this.variantId});this.mpsToDeprecate$=a.pipe((0,b.T)(({data:e})=>e.molecularProfiles.nodes),(0,S.p)(D.kP),(0,b.T)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount==0))),this.mpsWithEvidence$=a.pipe((0,b.T)(({data:e})=>e.molecularProfiles.nodes),(0,S.p)(D.kP),(0,b.T)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount>0))),this.mpListLoading$=a.pipe((0,b.T)(({loading:e})=>e))}deprecateVariant(){if(this.errorMessages=[],this.reason&&this.comment&&this.variantId){let e=this.deprecateVariantMutator.mutate(this.deprecateVariantGQL,{deprecationReason:this.reason,comment:this.comment,variantId:this.variantId,organizationId:this.selectedOrg?.id},{refetchQueries:[{query:this.variantDetailGQL.document,variables:{variantId:this.variantId}}]});e.submitSuccess$.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{i&&(this.success=!0,this.comment="")}),e.submitError$.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{i.length>0&&(this.errorMessages=i)}),e.isSubmitting$.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{this.loading=i})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(e){return new(e||vn)(n.rXU(u.FP9),n.rXU(u.N47),n.rXU(u.pCs),n.rXU(Jn.N),n.rXU(v.nX),n.rXU(hn.q))};static#t=this.\u0275cmp=n.VBU({type:vn,selectors:[["cvc-variant-deprecate-form"]],inputs:{variantId:"variantId"},decls:21,vars:11,consts:[["errorContents",""],["mpsToDeprecateTpl",""],["mpsWithEvidenceTpl",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","warning","nzMessage","This action will also deprecate the following Molecular Profiles:",3,"nzDescription",4,"nzSpaceItem"],["nzType","warning","nzMessage","This action will also deprecate the following Molecular Profiles:",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"molecularProfile"],["nzType","error","nzMessage","Cannot deprecate this Variant because the following Molecular Profiles have attached Evidence Items:",3,"nzDescription",4,"nzSpaceItem"],["nzType","error","nzMessage","Cannot deprecate this Variant because the following Molecular Profiles have attached Evidence Items:",3,"nzDescription"],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate variant."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(e,i){if(1&e){const c=n.RV6();n.j41(0,"nz-spin",5),n.nI1(1,"ngrxPush"),n.j41(2,"nz-space",6),n.DNE(3,et,2,1,"ng-container",7)(4,ct,2,1,"ng-container",7),n.k0s()(),n.j41(5,"nz-card",8),n.DNE(6,st,1,0,"nz-alert",9)(7,_t,1,1,"nz-alert",10)(8,pt,2,1,"ng-template",null,0,n.C5r),n.j41(10,"nz-form-item")(11,"nz-select",11),n.mxI("ngModelChange",function(l){return n.eBV(c),n.DH7(i.reason,l)||(i.reason=l),n.Njj(l)}),n.nrm(12,"nz-option",12)(13,"nz-option",13)(14,"nz-option",14),n.k0s()(),n.j41(15,"form",15),n.bIt("ngSubmit",function(){return n.eBV(c),n.Njj(i.deprecateVariant())}),n.j41(16,"cvc-comment-input-form",16),n.mxI("commentChange",function(l){return n.eBV(c),n.DH7(i.comment,l)||(i.comment=l),n.Njj(l)}),n.k0s(),n.j41(17,"nz-spin",17)(18,"nz-form-item")(19,"nz-form-control"),n.DNE(20,It,7,2,"ng-container",7),n.k0s()()()()()}2&e&&(n.Y8G("nzSpinning",n.bMT(1,9,i.mpListLoading$)),n.R7$(3),n.Y8G("ngrxLet",i.mpsToDeprecate$),n.R7$(),n.Y8G("ngrxLet",i.mpsWithEvidence$),n.R7$(2),n.Y8G("ngIf",i.success),n.R7$(),n.Y8G("ngIf",i.errorMessages.length>0),n.R7$(4),n.R50("ngModel",i.reason),n.R7$(5),n.R50("comment",i.comment),n.R7$(),n.Y8G("nzSpinning",i.loading),n.R7$(3),n.Y8G("ngrxLet",i.viewer$))},dependencies:[_.Sq,_.bT,_.T3,z.qT,z.BC,z.cb,z.vS,z.cV,N.Nj,m.Uq,m.e,x.CA,x.Ls,x.zS,V.Y,T.aO,yn.c,Fn.p,I.a,C.cK,s.U5,s.Dq,p.LH,j.ld,j.WI,Hn.l,Wn.K,Qn.z,N.L9],encapsulation:2,changeDetection:0})};tn=(0,Bn.Cg)([(0,En.d)()],tn);var Gn=o(1845),zt=o(3075);const ht=t=>({flagged:t}),yt=t=>["/variants",t,"revise"],Ft=t=>({variantType:t}),Et=()=>[];function Gt(t,a){if(1&t&&(n.j41(0,"span",19)(1,"strong"),n.EFF(2),n.k0s(),n.EFF(3," Parent:"),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.JRh(e.name)}}function Vt(t,a){if(1&t&&(n.j41(0,"span",20)(1,"a",21),n.nrm(2,"cvc-feature-tag",22),n.k0s()()),2&t){const e=n.XpG(2).ngIf;n.R7$(),n.Mz_("routerLink","/features/",e.feature.id,""),n.R7$(),n.Y8G("feature",e.feature)}}function Tt(t,a){1&t&&(n.j41(0,"nz-space",16),n.DNE(1,Gt,4,1,"span",17)(2,Vt,3,3,"span",18),n.k0s())}function xt(t,a){1&t&&(n.j41(0,"span"),n.EFF(1,",\xa0"),n.k0s())}function Rt(t,a){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.DNE(2,xt,2,0,"span",5),n.k0s()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function $t(t,a){if(1&t&&(n.j41(0,"nz-page-header-subtitle"),n.DNE(1,Rt,3,2,"span",23),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngForOf",e.variantAliases)}}function bt(t,a){if(1&t&&(n.j41(0,"button",28,3),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),i=n.XpG(4).ngIf;n.Y8G("routerLink",n.eq3(3,yt,i.id))("queryParams",n.eq3(5,Ft,i.__typename))("nzType",e.isActive?"primary":"default")}}function St(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,bt,3,7,"button",27),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",null==e?null:e.signedIn)}}function Dt(t,a){if(1&t&&(n.j41(0,"button",30,3),n.EFF(2," Flag "),n.k0s()),2&t){const e=n.sdS(1);n.Y8G("nzType",e.isActive?"primary":"default")}}function Yt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,Dt,3,1,"button",29),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function Mt(t,a){if(1&t&&(n.j41(0,"div",33),n.nrm(1,"cvc-variant-deprecate-form",34),n.k0s()),2&t){const e=n.XpG(5).ngIf;n.R7$(),n.Y8G("variantId",e.id)}}function jt(t,a){if(1&t&&(n.j41(0,"button",32),n.EFF(1," Deprecate "),n.DNE(2,Mt,2,1,"ng-template",null,4,n.C5r),n.k0s()),2&t){const e=n.sdS(3),i=n.XpG(4).ngIf;n.Y8G("disabled",i.deprecated)("nzPopoverContent",e)}}function Nt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,jt,4,2,"button",31),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.isEditor)}}function kt(t,a){if(1&t&&n.nrm(0,"cvc-entity-subscription-button",36),2&t){const e=n.XpG(2).ngrxLet,i=n.XpG(3);n.Y8G("viewer",e)("subscribableId",i.subscribable.id)}}function Pt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,kt,1,2,"cvc-entity-subscription-button",35),n.k0s()),2&t){const e=n.XpG().ngrxLet,i=n.XpG(3);n.R7$(),n.Y8G("ngIf",e.signedIn&&i.subscribable)}}function Ot(t,a){1&t&&(n.j41(0,"nz-space",25),n.DNE(1,St,2,1,"span",26)(2,Yt,2,1,"span",26)(3,Nt,2,1,"span",26)(4,Pt,2,1,"span",26),n.k0s())}function Xt(t,a){if(1&t&&(n.j41(0,"nz-page-header-extra"),n.DNE(1,Ot,5,0,"nz-space",24),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",e.viewer$)}}function At(t,a){if(1&t&&n.nrm(0,"nz-alert",37),2&t){n.XpG();const e=n.sdS(18);n.Y8G("nzMessage",e)}}function Lt(t,a){if(1&t&&(n.EFF(0),n.nI1(1,"enumToTitle"),n.nrm(2,"cvc-comment-body",38)),2&t){const e=n.XpG().ngIf;n.SpI(" This Variant has been deprecated for reason: ",n.bMT(1,2,e.deprecationReason),". "),n.R7$(2),n.Y8G("commentBodySegments",(null==e.deprecationActivity?null:e.deprecationActivity.parsedNote)||n.lJ4(4,Et))}}function wt(t,a){if(1&t&&(n.j41(0,"nz-col",39),n.nrm(1,"cvc-contributor-avatars",40),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function Ut(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",6),n.DNE(2,Tt,3,0,"ng-template",null,0,n.C5r),n.j41(4,"div",7),n.nI1(5,"ngrxPush"),n.j41(6,"nz-page-header",8)(7,"nz-page-header-title",9),n.nrm(8,"i",10),n.nI1(9,"entityColor"),n.j41(10,"span",11),n.EFF(11),n.k0s(),n.EFF(12),n.k0s(),n.DNE(13,$t,2,1,"nz-page-header-subtitle",5)(14,Xt,2,1,"nz-page-header-extra",12),n.j41(15,"nz-page-header-content"),n.DNE(16,At,1,1,"nz-alert",13)(17,Lt,3,5,"ng-template",null,1,n.C5r),n.j41(19,"cvc-tab-navigation",14),n.nI1(20,"ngrxPush"),n.DNE(21,wt,2,1,"ng-template",null,2,n.C5r),n.k0s(),n.j41(23,"div",15),n.nrm(24,"router-outlet"),n.k0s()()()(),n.bVm()),2&t){const e=a.ngIf,i=n.sdS(3),c=n.XpG();n.R7$(),n.Y8G("displayName",e.feature.name+" "+e.name)("relationsTpl",i),n.R7$(3),n.Y8G("flags",n.bMT(5,11,c.flagsTotal$)),n.R7$(3),n.Y8G("ngClass",n.eq3(17,ht,e.flags.totalCount>0)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(9,13,"Variant")),n.R7$(3),n.SpI(" ",e.feature.name," "),n.R7$(),n.SpI(" ",e.name," "),n.R7$(),n.Y8G("ngIf",e.variantAliases.length>0),n.R7$(),n.Y8G("ngrxLet",c.viewer$),n.R7$(2),n.Y8G("ngIf",e.deprecated),n.R7$(3),n.Y8G("tabs",n.bMT(20,15,c.tabs$))}}let Bt=(()=>{class t{constructor(e,i,c){this.gql=e,this.viewerService=i,this.route=c,this.destroy$=new In.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new zn.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(g=>{this.queryRef=this.gql.watch({variantId:+g.variantId});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,$.E)("loading"),(0,Cn.Z)(!0)),this.variant$=l.pipe((0,$.E)("data","variant")),this.flagsTotal$=this.variant$.pipe((0,$.E)("flags","totalCount")),this.variant$.pipe((0,O.Q)(this.destroy$)).subscribe({next:k=>{this.tabs$.next(this.defaultTabs.map(y=>"Revisions"===y.tabLabel?{badgeCount:k?.openRevisionCount,...y}:"Flags"===y.tabLabel?{badgeCount:k?.flags.totalCount,...y}:"Comments"===y.tabLabel?{badgeCount:k?.comments.totalCount,badgeColor:"#cccccc",...y}:y))}}),this.subscribable={id:+g.variantId,entityType:u.V9U.Variant}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.N47),n.rXU(hn.q),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["variants-detail"]],decls:2,vars:3,consts:[["variantRelations",""],["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateVariantForm",""],[4,"ngIf"],[3,"displayName","relationsTpl"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-typography","",2,"color","#bbb"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"feature"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateVariant"],[3,"variantId"],["typename","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(i,c){1&i&&(n.DNE(0,Ut,25,19,"ng-container",5),n.nI1(1,"ngrxPush")),2&i&&n.Y8G("ngIf",n.bMT(1,1,c.variant$))},dependencies:[_.YU,_.Sq,_.bT,v.n3,v.Wk,v.wQ,N.Nj,T.aO,yn.c,Fn.p,nn.Dn,R.WB,R.k9,R.CO,R.zR,R.ov,s.U5,s.Dq,m.Uq,V.Y,un.L_,f.Di,Pn.f,On.N,Xn.H,An.v,X._,Ln.n,wn.o,Un.p,tn,N.L9,Gn.f,zt.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}.deprecateVariant[_ngcontent-%COMP%]{width:700px}"]})}return t})();var qt=o(4873);let Jt=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,qt.A]})}return t})();var Ht=o(664);let Wt=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.variantId,entityType:u.T31.Variant}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(i,c){1&i&&n.nrm(0,"cvc-comment-list",0),2&i&&n.Y8G("commentable",c.commentable)},dependencies:[Ht.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Qt=o(7268),Kt=o(1912);let Zt=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,m.f3,C.Ti,s.pc,Kt.i3,nn.Y3,Qt.G]})}return t})();var ne=o(4097);let te=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:u.lD4.Variant,id:+this.route.snapshot.params.variantId}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(i,c){1&i&&n.nrm(0,"cvc-flag-list-and-filter",0),2&i&&n.Y8G("flaggable",c.flaggable)},dependencies:[ne.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var ee=o(6371),E=o(9541);let ae=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,E.hM,ee.O]})}return t})();var ie=o(4055);const oe=(t,a)=>a.name;function re(t,a){if(1&t&&(n.j41(0,"nz-tab",1)(1,"nz-template",2),n.nrm(2,"cvc-revisions-list-and-filter",3),n.k0s()()),2&t){const e=a.$implicit;n.Y8G("nzTitle",e.name),n.R7$(2),n.Y8G("moderated",e.moderated)}}let ce=(()=>{class t{constructor(e,i){this.gql=e,this.route=i,this.tabs=(0,n.vPA)([])}ngOnInit(){this.routeSub=this.route.params.pipe((0,S.p)(D.kP),(0,b.T)(e=>+e.variantId),(0,S.p)(D.kP)).subscribe(e=>{this.tabs.set([{name:"Variant Fields",moderated:{id:e,entityType:u.BlQ.Variant}}]),this.coordsSub=this.gql.fetch({variantId:e},{fetchPolicy:"no-cache"}).pipe((0,S.p)(D.kP),(0,$.E)("data","variant"),(0,S.p)(D.kP)).subscribe(i=>{this.updateTabs(i)})})}updateTabs(e){if("GeneVariant"==e.__typename&&e.coordinates)this.tabs.set([...this.tabs(),{name:"Variant Coordinates",moderated:{id:e.coordinates.id,entityType:u.BlQ.VariantCoordinates}}]);else if("FusionVariant"==e.__typename){let i=this.tabs();e.fivePrimeEndExonCoordinates&&i.push({name:"5' Exon End Coordinates",moderated:{id:e.fivePrimeEndExonCoordinates.id,entityType:u.BlQ.ExonCoordinates}}),e.threePrimeStartExonCoordinates&&i.push({name:"3' Exon Start Coordinates",moderated:{id:e.threePrimeStartExonCoordinates.id,entityType:u.BlQ.ExonCoordinates}}),this.tabs.set(i)}}ngOnDestroy(){this.routeSub?.unsubscribe(),this.coordsSub?.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.Jmn),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-revisions"]],decls:3,vars:1,consts:[[3,"nzAnimated"],[3,"nzTitle"],["nz-tab",""],[3,"moderated"]],template:function(i,c){1&i&&(n.j41(0,"nz-tabset",0),n.Z7z(1,re,3,2,"nz-tab",1,oe),n.k0s()),2&i&&(n.Y8G("nzAnimated",!1),n.R7$(),n.Dyx(c.tabs()))},dependencies:[E.JZ,E.rE,E.Tl,ie.B],encapsulation:2,changeDetection:0})}return t})();var en=o(2142),h=o(2e3),Y=o(5699),an=o(5493),on=o(7513),A=o(7054),rn=o(8254),cn=o(9972),G=o(9247);let sn=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,E.hM,G.$G,C.Ti,A.L,m.f3,F.i]})}return t})();var _n=o(2839),Vn=o(6719),ln=o(7855),pn=o(6073),Tn=o(9481),gn=o(7679),mn=o(6408),fn=o(8097),se=o(1596);const xn=()=>["."];function _e(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",20),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.R7$(),n.SpI(" ",e.variantInfo.clinvarId," ")}}function le(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",21),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?searchType=adhoc_search&type=rs&rs=",e.variantInfo.dbsnpRsid,""),n.R7$(),n.SpI(" ",e.variantInfo.dbsnpRsid," ")}}function pe(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",22),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=",e.variantInfo.cosmicId.replace("COSM",""),""),n.R7$(),n.SpI(" ",e.variantInfo.cosmicId," ")}}function ge(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function me(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ge,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function fe(t,a){if(1&t&&(n.qex(0),n.DNE(1,me,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.snpeffSnpEffect)}}function de(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ve(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,de,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ue(t,a){if(1&t&&(n.qex(0),n.DNE(1,ve,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.snpeffSnpImpact)}}function Ce(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," MyVariant.info ID: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.j41(7,"strong",18),n.EFF(8,"ClinVar ID:"),n.k0s(),n.EFF(9,"\xa0 "),n.DNE(10,_e,3,3,"ng-container",19),n.k0s()(),n.j41(11,"div",15)(12,"div",16),n.EFF(13," dbSNP RSID: "),n.k0s(),n.j41(14,"div",17),n.DNE(15,le,3,3,"ng-container",19),n.j41(16,"strong",18),n.EFF(17,"COSMIC ID (v68):"),n.k0s(),n.EFF(18,"\xa0 "),n.DNE(19,pe,3,3,"ng-container",19),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," SNPEff Effect: "),n.k0s(),n.j41(23,"div",17),n.DNE(24,fe,2,1,"ng-container",19),n.k0s()(),n.j41(25,"div",15)(26,"div",16),n.EFF(27," SNPEff Impact: "),n.k0s(),n.j41(28,"div",17),n.DNE(29,ue,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",e.variantInfo.myVariantInfoId," "),n.R7$(4),n.Y8G("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.dbsnpRsid)("ngIfElse",i),n.R7$(4),n.Y8G("ngIf",e.variantInfo.cosmicId)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.snpeffSnpEffect.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.snpeffSnpImpact.length>0)("ngIfElse",i)}}function Ie(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",20),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.R7$(),n.SpI(" ",e.variantInfo.clinvarId," ")}}function ze(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",24),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://omim.org/entry/",e.variantInfo.clinvarOmim.split(".")[0],""),n.R7$(),n.SpI(" ",e.variantInfo.clinvarOmim," ")}}function he(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ye(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,he,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Fe(t,a){if(1&t&&(n.qex(0),n.DNE(1,ye,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarClinicalSignificance)}}function Ee(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Ge(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ee,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ve(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ge,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsCoding)}}function Te(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function xe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Te,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Re(t,a){if(1&t&&(n.qex(0),n.DNE(1,xe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsGenomic)}}function $e(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function be(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,$e,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Se(t,a){if(1&t&&(n.qex(0),n.DNE(1,be,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsNonCoding)}}function De(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Ye(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,De,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Me(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ye,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsProtein)}}function je(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," ClinVar ID: "),n.k0s(),n.j41(5,"div",17),n.DNE(6,Ie,3,3,"ng-container",19),n.j41(7,"strong",18),n.EFF(8,"OMIM:"),n.k0s(),n.EFF(9,"\xa0 "),n.DNE(10,ze,3,3,"ng-container",19),n.k0s()(),n.j41(11,"div",15)(12,"div",16),n.EFF(13," ClinVar Clinical Significance: "),n.k0s(),n.j41(14,"div",17),n.DNE(15,Fe,2,1,"ng-container",19),n.k0s()(),n.j41(16,"div",15)(17,"div",16),n.EFF(18," HGVS Coding: "),n.k0s(),n.j41(19,"div",17),n.DNE(20,Ve,2,1,"ng-container",19),n.k0s()(),n.j41(21,"div",15)(22,"div",16),n.EFF(23," HGVS Genomic: "),n.k0s(),n.j41(24,"div",17),n.DNE(25,Re,2,1,"ng-container",19),n.k0s()(),n.j41(26,"div",15)(27,"div",16),n.EFF(28," HGVS Non-Coding: "),n.k0s(),n.j41(29,"div",17),n.DNE(30,Se,2,1,"ng-container",19),n.k0s()(),n.j41(31,"div",15)(32,"div",16),n.EFF(33," HGVS Protein: "),n.k0s(),n.j41(34,"div",17),n.DNE(35,Me,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.R7$(4),n.Y8G("ngIf",e.variantInfo.clinvarOmim)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarClinicalSignificance.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsCoding.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsGenomic.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsNonCoding.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsProtein.length>0)("ngIfElse",i)}}function Ne(t,a){if(1&t&&(n.j41(0,"cvc-link-tag",27),n.EFF(1," View this variant in the gnomAD browser "),n.k0s()),2&t){const e=n.XpG(3);n.Mz_("href","https://gnomad.broadinstitute.org/variant/",e.variantInfo.dbsnpRsid,"?dataset=gnomad_r2_1")}}function ke(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ne,2,2,"cvc-link-tag",25),n.j41(2,"nz-table",26,1)(4,"thead")(5,"tr")(6,"th"),n.EFF(7,"Type"),n.k0s(),n.j41(8,"th"),n.EFF(9,"Allele Frequency"),n.k0s(),n.j41(10,"th"),n.EFF(11,"Allele Count"),n.k0s(),n.j41(12,"th"),n.EFF(13,"Allele Number"),n.k0s(),n.j41(14,"th"),n.EFF(15,"Filter"),n.k0s()()(),n.j41(16,"tbody")(17,"tr")(18,"td"),n.EFF(19,"Total Exome"),n.k0s(),n.j41(20,"td"),n.EFF(21),n.nI1(22,"ifEmpty"),n.k0s(),n.j41(23,"td"),n.EFF(24),n.nI1(25,"ifEmpty"),n.k0s(),n.j41(26,"td"),n.EFF(27),n.nI1(28,"ifEmpty"),n.k0s(),n.j41(29,"td"),n.EFF(30),n.nI1(31,"ifEmpty"),n.k0s()(),n.j41(32,"tr")(33,"td"),n.EFF(34,"Total Genome"),n.k0s(),n.j41(35,"td"),n.EFF(36),n.nI1(37,"ifEmpty"),n.k0s(),n.j41(38,"td"),n.EFF(39),n.nI1(40,"ifEmpty"),n.k0s(),n.j41(41,"td"),n.EFF(42),n.nI1(43,"ifEmpty"),n.k0s(),n.j41(44,"td"),n.EFF(45),n.nI1(46,"ifEmpty"),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.variantInfo.dbsnpRsid),n.R7$(),n.Y8G("nzData",n.lJ4(36,xn))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(19),n.SpI(" ",n.i5U(22,12,e.variantInfo.gnomadExomeAlleleFrequency,"--")," "),n.R7$(3),n.JRh(n.i5U(25,15,e.variantInfo.gnomadExomeAlleleCount,"--")),n.R7$(3),n.SpI(" ",n.i5U(28,18,e.variantInfo.gnomadExomeAlleleNumber,"--")," "),n.R7$(3),n.JRh(n.i5U(31,21,e.variantInfo.gnomadExomeFilter,"--")),n.R7$(6),n.SpI(" ",n.i5U(37,24,e.variantInfo.gnomadGenomeAlleleFrequency,"--")," "),n.R7$(3),n.SpI(" ",n.i5U(40,27,e.variantInfo.gnomadGenomeAlleleCount,"--")," "),n.R7$(3),n.SpI(" ",n.i5U(43,30,e.variantInfo.gnomadGenomeAlleleNumber,"--")," "),n.R7$(3),n.JRh(n.i5U(46,33,e.variantInfo.gnomadGenomeFilter,"--"))}}function Pe(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," Allele Count: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," Allele Number: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," Adjusted Allele Frequency: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,12,e.variantInfo.exacAlleleCount,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,15,e.variantInfo.exacAlleleNumber,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,18,e.variantInfo.exacAlleleFrequency,"--")," ")}}function Oe(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," phyloP100way: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," phyloP30way: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," phastCons100way: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," phastCons30way: "),n.k0s(),n.j41(23,"div",17),n.EFF(24),n.nI1(25,"ifEmpty"),n.k0s()(),n.j41(26,"div",15)(27,"div",16),n.EFF(28," GERP++: "),n.k0s(),n.j41(29,"div",17),n.EFF(30),n.nI1(31,"ifEmpty"),n.k0s()(),n.j41(32,"div",15)(33,"div",16),n.EFF(34," SiPhy: "),n.k0s(),n.j41(35,"div",17),n.EFF(36),n.nI1(37,"ifEmpty"),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,24,e.variantInfo.phyloP100way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,27,e.variantInfo.phyloP30way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,30,e.variantInfo.phastcons100way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(25,33,e.variantInfo.phastcons30way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(31,36,e.variantInfo.gerp,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(37,39,e.variantInfo.siphy,"--")," ")}}function Xe(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Ae(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Xe,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Le(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ae,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.eglHgvs)}}function we(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," EGL Class: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," Protein Variant Name: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," Transcript Variant Name: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," HGVS: "),n.k0s(),n.j41(23,"div",17),n.DNE(24,Le,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,17,e.variantInfo.eglClass,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,20,e.variantInfo.eglProtein,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,23,e.variantInfo.eglTranscript,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.eglHgvs.length>0)("ngIfElse",i)}}function Ue(t,a){if(1&t&&(n.j41(0,"td"),n.EFF(1),n.nI1(2,"ifEmpty"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(n.i5U(2,1,e.variantInfo.revelScore.join(", "),"--"))}}function Be(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function qe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Be,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Je(t,a){if(1&t&&(n.qex(0),n.DNE(1,qe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.siftPrediction)}}function He(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function We(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,He,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Qe(t,a){if(1&t&&(n.qex(0),n.DNE(1,We,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.siftScore)}}function Ke(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ze(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ke,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function na(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ze,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HdivPrediction)}}function ta(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ea(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ta,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function aa(t,a){if(1&t&&(n.qex(0),n.DNE(1,ea,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HdivScore)}}function ia(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function oa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ia,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ra(t,a){if(1&t&&(n.qex(0),n.DNE(1,oa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HvarPrediction)}}function ca(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function sa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ca,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function _a(t,a){if(1&t&&(n.qex(0),n.DNE(1,sa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HvarScore)}}function la(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function pa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,la,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ga(t,a){if(1&t&&(n.qex(0),n.DNE(1,pa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationtasterPrediction)}}function ma(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function fa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ma,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function da(t,a){if(1&t&&(n.qex(0),n.DNE(1,fa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationtasterScore)}}function va(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ua(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,va,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ca(t,a){if(1&t&&(n.qex(0),n.DNE(1,ua,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationassessorPrediction)}}function Ia(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function za(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ia,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ha(t,a){if(1&t&&(n.qex(0),n.DNE(1,za,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationassessorScore)}}function ya(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Fa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ya,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ea(t,a){if(1&t&&(n.qex(0),n.DNE(1,Fa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.fathmmPrediction)}}function Ga(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Va(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ga,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ta(t,a){if(1&t&&(n.qex(0),n.DNE(1,Va,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.fathmmScore)}}function xa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ra(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,xa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function $a(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ra,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.proveanPrediction)}}function ba(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Sa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ba,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Da(t,a){if(1&t&&(n.qex(0),n.DNE(1,Sa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.proveanScore)}}function Ya(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ma(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ya,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ja(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ma,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.caddConsequence)}}function Na(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ka(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Na,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Pa(t,a){if(1&t&&(n.qex(0),n.DNE(1,ka,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.caddDetail)}}function Oa(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-table",26,1)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Predictor"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Prediction"),n.k0s(),n.j41(9,"th"),n.EFF(10,"Score"),n.k0s()()(),n.j41(11,"tbody")(12,"tr")(13,"td"),n.EFF(14,"REVEL"),n.k0s(),n.j41(15,"td"),n.EFF(16,"N/A"),n.k0s(),n.DNE(17,Ue,3,4,"td",2),n.k0s(),n.j41(18,"tr")(19,"td"),n.EFF(20,"SIFT"),n.k0s(),n.j41(21,"td"),n.DNE(22,Je,2,1,"ng-container",19),n.k0s(),n.j41(23,"td"),n.DNE(24,Qe,2,1,"ng-container",19),n.k0s()(),n.j41(25,"tr")(26,"td"),n.EFF(27,"Polyphen2 HDIV"),n.k0s(),n.j41(28,"td"),n.DNE(29,na,2,1,"ng-container",19),n.k0s(),n.j41(30,"td"),n.DNE(31,aa,2,1,"ng-container",19),n.k0s()(),n.j41(32,"tr")(33,"td"),n.EFF(34,"Polyphen2 HVAR"),n.k0s(),n.j41(35,"td"),n.DNE(36,ra,2,1,"ng-container",19),n.k0s(),n.j41(37,"td"),n.DNE(38,_a,2,1,"ng-container",19),n.k0s()(),n.j41(39,"tr")(40,"td"),n.EFF(41,"LRT"),n.k0s(),n.j41(42,"td"),n.EFF(43),n.nI1(44,"ifEmpty"),n.k0s(),n.j41(45,"td"),n.EFF(46),n.nI1(47,"ifEmpty"),n.k0s()(),n.j41(48,"tr")(49,"td"),n.EFF(50,"MutationTaster"),n.k0s(),n.j41(51,"td"),n.DNE(52,ga,2,1,"ng-container",19),n.k0s(),n.j41(53,"td"),n.DNE(54,da,2,1,"ng-container",19),n.k0s()(),n.j41(55,"tr")(56,"td"),n.EFF(57,"MutationAssessor"),n.k0s(),n.j41(58,"td"),n.DNE(59,Ca,2,1,"ng-container",19),n.k0s(),n.j41(60,"td"),n.DNE(61,ha,2,1,"ng-container",19),n.k0s()(),n.j41(62,"tr")(63,"td"),n.EFF(64,"FATHMM"),n.k0s(),n.j41(65,"td"),n.DNE(66,Ea,2,1,"ng-container",19),n.k0s(),n.j41(67,"td"),n.DNE(68,Ta,2,1,"ng-container",19),n.k0s()(),n.j41(69,"tr")(70,"td"),n.EFF(71,"PROVEAN"),n.k0s(),n.j41(72,"td"),n.DNE(73,$a,2,1,"ng-container",19),n.k0s(),n.j41(74,"td"),n.DNE(75,Da,2,1,"ng-container",19),n.k0s()(),n.j41(76,"tr")(77,"td"),n.EFF(78,"MetaSVM"),n.k0s(),n.j41(79,"td"),n.EFF(80),n.nI1(81,"ifEmpty"),n.k0s(),n.j41(82,"td"),n.EFF(83),n.nI1(84,"ifEmpty"),n.k0s()(),n.j41(85,"tr")(86,"td"),n.EFF(87,"MetaLR"),n.k0s(),n.j41(88,"td"),n.EFF(89),n.nI1(90,"ifEmpty"),n.k0s(),n.j41(91,"td"),n.EFF(92),n.nI1(93,"ifEmpty"),n.k0s()(),n.j41(94,"tr")(95,"td"),n.EFF(96,"CADD"),n.k0s(),n.j41(97,"td"),n.EFF(98," Consequence: "),n.DNE(99,ja,2,1,"ng-container",19),n.nrm(100,"br"),n.EFF(101," Consequence Detail: "),n.DNE(102,Pa,2,1,"ng-container",19),n.k0s(),n.j41(103,"td"),n.EFF(104),n.nI1(105,"ifEmpty"),n.nrm(106,"br"),n.EFF(107),n.nI1(108,"ifEmpty"),n.k0s()(),n.j41(109,"tr")(110,"td"),n.EFF(111,"FATHMM-MKL"),n.k0s(),n.j41(112,"td"),n.EFF(113),n.nI1(114,"ifEmpty"),n.k0s(),n.j41(115,"td"),n.EFF(116),n.nI1(117,"ifEmpty"),n.k0s()(),n.j41(118,"tr")(119,"td"),n.EFF(120,"fitCons"),n.k0s(),n.j41(121,"td"),n.EFF(122,"N/A"),n.k0s(),n.j41(123,"td"),n.EFF(124),n.nI1(125,"ifEmpty"),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(),n.Y8G("nzData",n.lJ4(80,xn))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(16),n.Y8G("ngIf",e.variantInfo.revelScore),n.R7$(5),n.Y8G("ngIf",e.variantInfo.siftPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.siftScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.polyphen2HdivPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.polyphen2HdivScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.polyphen2HvarPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.polyphen2HvarScore.length>0)("ngIfElse",i),n.R7$(5),n.JRh(n.i5U(44,47,e.variantInfo.lrtPrediction,"--")),n.R7$(3),n.JRh(n.i5U(47,50,e.variantInfo.lrtScore,"--")),n.R7$(6),n.Y8G("ngIf",e.variantInfo.mutationtasterPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.mutationtasterScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.mutationassessorPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.mutationassessorScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.fathmmPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.fathmmScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.proveanPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.proveanScore.length>0)("ngIfElse",i),n.R7$(5),n.JRh(n.i5U(81,53,e.variantInfo.metasvmPrediction,"--")),n.R7$(3),n.JRh(n.i5U(84,56,e.variantInfo.metasvmScore,"--")),n.R7$(6),n.JRh(n.i5U(90,59,e.variantInfo.metalrPrediction,"--")),n.R7$(3),n.JRh(n.i5U(93,62,e.variantInfo.metalrScore,"--")),n.R7$(7),n.Y8G("ngIf",e.variantInfo.caddConsequence.length>0)("ngIfElse",i),n.R7$(3),n.Y8G("ngIf",e.variantInfo.caddDetail.length>0)("ngIfElse",i),n.R7$(2),n.SpI(" ",n.i5U(105,65,e.variantInfo.caddScore,"--")," (raw) "),n.R7$(3),n.SpI(" ",n.i5U(108,68,e.variantInfo.caddPhred,"--")," (PHRED) "),n.R7$(6),n.JRh(n.i5U(114,71,e.variantInfo.fathmmMklPrediction,"--")),n.R7$(3),n.JRh(n.i5U(117,74,e.variantInfo.fathmmMklScore,"--")),n.R7$(8),n.JRh(n.i5U(125,77,e.variantInfo.fitconsScore,"--"))}}function Xa(t,a){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"nz-card",3)(2,"nz-card-tab")(3,"nz-tabset",4)(4,"nz-tab",5),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(0))}),n.k0s(),n.j41(5,"nz-tab",6),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(1))}),n.k0s(),n.j41(6,"nz-tab",7),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(2))}),n.k0s(),n.j41(7,"nz-tab",8),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(3))}),n.k0s(),n.j41(8,"nz-tab",9),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(4))}),n.k0s(),n.j41(9,"nz-tab",10),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(5))}),n.k0s(),n.j41(10,"nz-tab",11),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(6))}),n.k0s()()(),n.qex(11,12),n.nI1(12,"async"),n.DNE(13,Ce,30,23,"ng-container",13)(14,je,36,32,"ng-container",13)(15,ke,47,37,"ng-container",13)(16,Pe,20,21,"ng-container",13)(17,Oe,38,42,"ng-container",13)(18,we,25,26,"ng-container",13)(19,Oa,126,81,"ng-container",13),n.bVm(),n.k0s(),n.bVm()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("nzAnimated",!0),n.R7$(8),n.Y8G("ngSwitch",n.bMT(12,9,e.tabIndex)),n.R7$(2),n.Y8G("ngSwitchCase",0),n.R7$(),n.Y8G("ngSwitchCase",1),n.R7$(),n.Y8G("ngSwitchCase",2),n.R7$(),n.Y8G("ngSwitchCase",3),n.R7$(),n.Y8G("ngSwitchCase",4),n.R7$(),n.Y8G("ngSwitchCase",5),n.R7$(),n.Y8G("ngSwitchCase",6)}}function Aa(t,a){1&t&&n.EFF(0,"--")}let La=(()=>{class t{constructor(){this.tabIndex=new zn.t(0)}tabChange(e){this.tabIndex.next(e)}ngOnDestroy(){this.tabIndex.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-my-variant-info"]],inputs:{variantInfo:"variantInfo"},decls:3,vars:1,consts:[["noValue",""],["gnomadTable",""],[4,"ngIf"],["nzTitle","MyVariantInfo"],["nzSize","small",3,"nzAnimated"],["nzTitle","Overview",3,"nzClick"],["nzTitle","ClinVar",3,"nzClick"],["nzTitle","gnomAD (2.1.1)",3,"nzClick"],["nzTitle","EXAC (0.3.1)",3,"nzClick"],["nzTitle","Conservation Analysis Tools",3,"nzClick"],["nzTitle","EGL",3,"nzClick"],["nzTitle","Effect Scores",3,"nzClick"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nz-row","",3,"nzGutter"],["nz-col","",1,"key-col",3,"nzSpan"],["nz-col","",3,"nzSpan"],[2,"margin-left","8px"],[4,"ngIf","ngIfElse"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on dbSNP",3,"href"],["tooltip","View on COSMIC",3,"href"],[4,"ngFor","ngForOf"],["tooltip","View on OMIM",3,"href"],[3,"href",4,"ngIf"],["nzSize","small",3,"nzData","nzFrontPagination","nzShowPagination"],[3,"href"]],template:function(i,c){1&i&&n.DNE(0,Xa,20,11,"ng-container",2)(1,Aa,1,0,"ng-template",null,0,n.C5r),2&i&&n.Y8G("ngIf",c.variantInfo)},dependencies:[_.Sq,_.bT,_.ux,_.e1,E.JZ,E.rE,G.CP,G.SO,G._4,G.IL,G.aj,G.kt,C.cK,C.RO,gn.a,m.Uq,m.e,_.Jj,se.r],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]})}return t})();var dn=o(8139);const wa=()=>[8,16],Rn=()=>[8,8],$n=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Ua(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function Ba(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ua,2,1,"nz-tag",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function qa(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function Ja(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",31),2&t&&n.Y8G("variantType",a.$implicit)}function Ha(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ja,1,1,"cvc-variant-type-tag",30),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Wa(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function Qa(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function Ka(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Qa,2,1,"nz-tag",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.hgvsDescriptions)}}function Za(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function ni(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list")(2,"nz-tag"),n.EFF(3),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(3),n.JRh(e.variant.maneSelectTranscript)}}function ti(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None found"),n.k0s())}function ei(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",29),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function ai(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",16),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",32),n.k0s(),n.DNE(4,ei,4,3,"ng-template",null,8,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function ii(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",29),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function oi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",16),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",32),n.k0s(),n.DNE(4,ii,4,3,"ng-template",null,9,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function ri(t,a){if(1&t&&(n.j41(0,"cvc-link-tag",33),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("href","https://reg.genome.network/allele/"+e.variant.alleleRegistryId+".html"),n.R7$(),n.SpI(" ",e.variant.alleleRegistryId," ")}}function ci(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"Unregistered"),n.k0s())}function si(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",34),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+e),n.R7$(),n.SpI(" ",e," ")}}function _i(t,a){if(1&t&&(n.j41(0,"cvc-tag-list"),n.DNE(1,si,3,2,"ng-container",28),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variant.clinvarIds)}}function li(t,a){if(1&t&&(n.qex(0),n.DNE(1,_i,2,1,"cvc-tag-list",15),n.bVm()),2&t){n.XpG();const e=n.sdS(40),i=n.XpG();n.R7$(),n.Y8G("ngIf","N/A"!==i.variant.clinvarIds[0]&&"NONE FOUND"!==i.variant.clinvarIds[0])("ngIfElse",e)}}function pi(t,a){if(1&t&&(n.j41(0,"span",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.variant.clinvarIds[0])}}function gi(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None provided"),n.k0s())}function mi(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",35)(1,"cvc-link-tag",36),n.EFF(2," Variant Report "),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("href",e.variant.openCravatUrl)}}function fi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-col",11),n.nrm(2,"cvc-my-variant-info",37),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("variantInfo",e.variant.myVariantInfo)}}function di(t,a){1&t&&(n.j41(0,"nz-col",11)(1,"nz-card",38),n.nrm(2,"cvc-empty-revisable",39),n.k0s()()),2&t&&n.Y8G("nzSpan",24)}function vi(t,a){if(1&t&&(n.j41(0,"nz-row",10)(1,"nz-col",11)(2,"nz-row",10)(3,"nz-col",12)(4,"nz-descriptions",13)(5,"nz-descriptions-item",14),n.DNE(6,Ba,3,1,"ng-container",15)(7,qa,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",16),n.DNE(10,Ha,3,1,"ng-container",15)(11,Wa,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(13,"nz-descriptions-item",16),n.DNE(14,Ka,3,1,"ng-container",15)(15,Za,2,0,"ng-template",null,2,n.C5r),n.k0s(),n.j41(17,"nz-descriptions-item",17),n.DNE(18,ni,4,1,"ng-container",15)(19,ti,2,0,"ng-template",null,3,n.C5r),n.k0s()()(),n.j41(21,"nz-col",11),n.nrm(22,"cvc-coordinates-card",18),n.k0s()()(),n.j41(23,"nz-col",19)(24,"nz-row",10)(25,"nz-col",11)(26,"nz-descriptions",20),n.DNE(27,ai,6,2,"ng-container",21)(28,oi,6,2,"ng-container",21),n.k0s()(),n.j41(29,"nz-col",11)(30,"nz-descriptions",13)(31,"nz-descriptions-item",22),n.nrm(32,"cvc-feature-tag",23),n.k0s(),n.j41(33,"nz-descriptions-item",24),n.DNE(34,ri,2,2,"cvc-link-tag",25)(35,ci,2,0,"ng-template",null,4,n.C5r),n.k0s(),n.j41(37,"nz-descriptions-item",16),n.DNE(38,li,2,2,"ng-container",15)(39,pi,2,1,"ng-template",null,5,n.C5r)(41,gi,2,0,"ng-template",null,6,n.C5r),n.k0s(),n.DNE(43,mi,3,1,"nz-descriptions-item",26),n.k0s()(),n.DNE(44,fi,3,2,"ng-container",15)(45,di,3,1,"ng-template",null,7,n.C5r),n.k0s()(),n.j41(47,"nz-col",12),n.nrm(48,"cvc-molecular-profiles-table",27),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),c=n.sdS(16),g=n.sdS(20),l=n.sdS(36),k=n.sdS(42),y=n.sdS(46),d=n.XpG();n.Y8G("nzGutter",n.lJ4(35,wa)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(36,Rn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",d.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",d.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",d.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(3),n.Y8G("nzTitle",d.variant.hgvsDescriptions.length>1?"HGVS Descriptions":"HGVS Description"),n.R7$(),n.Y8G("ngIf",d.variant.hgvsDescriptions.length>0)("ngIfElse",c),n.R7$(4),n.Y8G("ngIf",d.variant.maneSelectTranscript)("ngIfElse",g),n.R7$(3),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("cvcCoordinates",d.variant),n.R7$(2),n.Y8G("nzGutter",n.lJ4(37,Rn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(38,$n)),n.R7$(),n.Y8G("ngIf",d.variant.creationActivity),n.R7$(),n.Y8G("ngIf",d.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(39,$n)),n.R7$(2),n.Y8G("feature",d.variant.feature),n.R7$(2),n.Y8G("ngIf",d.variant.alleleRegistryId&&"unregistered"!=d.variant.alleleRegistryId)("ngIfElse",l),n.R7$(3),n.Y8G("nzTitle",d.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),n.R7$(),n.Y8G("ngIf",d.variant.clinvarIds.length>0)("ngIfElse",k),n.R7$(5),n.Y8G("ngIf",d.variant.openCravatUrl),n.R7$(),n.Y8G("ngIf",d.variant.myVariantInfo)("ngIfElse",y),n.R7$(4),n.Mz_("cvcTitle","",d.variant.name," Molecular Profiles"),n.Y8G("variantId",d.variant.id)}}let bn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass GeneVariant into GeneVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-gene-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["noDescriptions",""],["noMane",""],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["noVariantInfo",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzTitle","MANE Select Transcript"],[3,"cvcCoordinates"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","Gene"],[3,"feature"],["nzTitle","Allele Registry ID"],["tooltip","View on ClinGen Allele Registry",3,"href",4,"ngIf","ngIfElse"],["nzTitle","OpenCRAVAT",4,"ngIf"],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["nzTitle","OpenCRAVAT"],["tooltip","View on OpenCRAVAT",3,"href"],[3,"variantInfo"],["nzTitle","MyVariantInfo"],["notification","Not available, provide Representative Variant Coordinates"]],template:function(i,c){1&i&&n.DNE(0,vi,49,40,"nz-row",10),2&i&&n.vxM("GeneVariant"==c.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,C.cK,rn.V,Vn.Q,en.x,ln.M,an.G,pn.h,on.m,Tn.W,A.L,gn.a,_n.m,mn.r,r.l,X._,cn.V,fn.I,sn,La,F.i,dn.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return t})();var ui=o(9354);const Ci=()=>[8,16],Sn=()=>[8,8],Dn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Ii(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function zi(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ii,2,1,"nz-tag",19),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function hi(t,a){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function yi(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",22),2&t&&n.Y8G("variantType",a.$implicit)}function Fi(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,yi,1,1,"cvc-variant-type-tag",21),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Ei(t,a){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function Gi(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",20),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function Vi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",11),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",23),n.k0s(),n.DNE(4,Gi,4,3,"ng-template",null,3,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function Ti(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",20),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function xi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",11),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",23),n.k0s(),n.DNE(4,Ti,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function Ri(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",24)(1,"cvc-tag-list")(2,"cvc-link-tag",25),n.EFF(3),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+e.variant.ncitId)("tooltip","View "+e.variant.name+" in the NCI Thesaurus"),n.R7$(),n.SpI(" NCIt: ",e.variant.ncitId," ")}}function $i(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-col",6),n.nrm(2,"cvc-ncit-details",26),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("ncitDetails",e.variant.ncitDetails)}}function bi(t,a){1&t&&(n.j41(0,"nz-col",6)(1,"nz-card",27),n.nrm(2,"cvc-empty-revisable",28),n.k0s()()),2&t&&n.Y8G("nzSpan",24)}function Si(t,a){if(1&t&&(n.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-row",5)(3,"nz-col",7)(4,"nz-descriptions",8)(5,"nz-descriptions-item",9),n.DNE(6,zi,3,1,"ng-container",10)(7,hi,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",11),n.DNE(10,Fi,3,1,"ng-container",10)(11,Ei,2,0,"ng-template",null,1,n.C5r),n.k0s()()()()(),n.j41(13,"nz-col",12)(14,"nz-row",5)(15,"nz-col",6)(16,"nz-descriptions",13),n.DNE(17,Vi,6,2,"ng-container",14)(18,xi,6,2,"ng-container",14),n.k0s()(),n.j41(19,"nz-col",6)(20,"nz-descriptions",8)(21,"nz-descriptions-item",15),n.nrm(22,"cvc-feature-tag",16),n.k0s(),n.DNE(23,Ri,4,3,"nz-descriptions-item",17),n.k0s()(),n.DNE(24,$i,3,2,"ng-container",10)(25,bi,3,1,"ng-template",null,2,n.C5r),n.k0s()(),n.j41(27,"nz-col",7),n.nrm(28,"cvc-molecular-profiles-table",18),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),c=n.sdS(26),g=n.XpG();n.Y8G("nzGutter",n.lJ4(21,Ci)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(22,Sn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",g.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",g.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",g.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(4),n.Y8G("nzGutter",n.lJ4(23,Sn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(24,Dn)),n.R7$(),n.Y8G("ngIf",g.variant.creationActivity),n.R7$(),n.Y8G("ngIf",g.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(25,Dn)),n.R7$(2),n.Y8G("feature",g.variant.feature),n.R7$(),n.Y8G("ngIf",g.variant.ncitId),n.R7$(),n.Y8G("ngIf",g.variant.ncitId)("ngIfElse",c),n.R7$(4),n.Y8G("variantId",g.variant.id)}}let Yn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass FactorVariant into FactorVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-factor-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["noNcit",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","Factor"],[3,"feature"],["nzTitle","Resources",4,"ngIf"],["cvcHeight","300px","cvcTitle","Molecular Profiles",3,"variantId"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"ncitDetails"],["nzTitle",""],["notification","Not available, please provide an NCIt Code"]],template:function(i,c){1&i&&n.DNE(0,Si,29,26,"nz-row",5),2&i&&n.vxM("FactorVariant"==c.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,C.cK,f.kT,f.Di,rn.V,Vn.Q,en.x,ln.M,an.G,pn.h,on.m,A.L,gn.a,_n.m,mn.r,r.l,X._,cn.V,fn.I,sn,F.i,dn.N,ui.e],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return t})();const Di=()=>[8,16],Mn=()=>[8,8],jn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Yi(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function Mi(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Yi,2,1,"nz-tag",24),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function ji(t,a){1&t&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Ni(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",27),2&t&&n.Y8G("variantType",a.$implicit)}function ki(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ni,1,1,"cvc-variant-type-tag",26),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Pi(t,a){1&t&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Oi(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function Xi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",12),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Oi,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function Ai(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function Li(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",12),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Ai,4,3,"ng-template",null,5,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function wi(t,a){if(1&t&&n.nrm(0,"cvc-feature-tag",18),2&t){const e=n.XpG(2);n.Y8G("feature",e.variant.fusion.fivePrimeGene)}}function Ui(t,a){if(1&t&&n.nrm(0,"cvc-feature-tag",18),2&t){const e=n.XpG(2);n.Y8G("feature",e.variant.fusion.threePrimeGene)}}function Bi(t,a){if(1&t&&(n.j41(0,"span",25),n.EFF(1),n.nI1(2,"enumToTitle"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(n.bMT(2,1,e.variant.fusion.fivePrimePartnerStatus))}}function qi(t,a){if(1&t&&(n.j41(0,"span",25),n.EFF(1),n.nI1(2,"enumToTitle"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(n.bMT(2,1,e.variant.fusion.threePrimePartnerStatus))}}function Ji(t,a){if(1&t&&(n.j41(0,"nz-row",6)(1,"nz-col",7)(2,"nz-row",6)(3,"nz-col",8)(4,"nz-descriptions",9)(5,"nz-descriptions-item",10),n.DNE(6,Mi,3,1,"ng-container",11)(7,ji,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",12),n.DNE(10,ki,3,1,"ng-container",11)(11,Pi,2,0,"ng-template",null,1,n.C5r),n.k0s()()()()(),n.j41(13,"nz-col",13)(14,"nz-row",6)(15,"nz-col",7)(16,"nz-descriptions",14),n.DNE(17,Xi,6,2,"ng-container",15)(18,Li,6,2,"ng-container",15),n.k0s()(),n.j41(19,"nz-col",7)(20,"nz-descriptions",9)(21,"nz-descriptions-item",16),n.EFF(22),n.k0s(),n.j41(23,"nz-descriptions-item",17),n.nrm(24,"cvc-feature-tag",18),n.k0s(),n.j41(25,"nz-descriptions-item",19),n.DNE(26,wi,1,1,"cvc-feature-tag",20),n.k0s(),n.j41(27,"nz-descriptions-item",21),n.DNE(28,Ui,1,1,"cvc-feature-tag",20),n.k0s(),n.DNE(29,Bi,3,3,"ng-template",null,2,n.C5r)(31,qi,3,3,"ng-template",null,3,n.C5r),n.k0s()()()(),n.j41(33,"nz-col",8),n.nrm(34,"cvc-coordinates-card",22),n.k0s(),n.j41(35,"nz-col",8),n.nrm(36,"cvc-molecular-profiles-table",23),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),c=n.sdS(30),g=n.sdS(32),l=n.XpG();n.Y8G("nzGutter",n.lJ4(26,Di)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(27,Mn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",l.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",l.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",l.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(4),n.Y8G("nzGutter",n.lJ4(28,Mn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(29,jn)),n.R7$(),n.Y8G("ngIf",l.variant.creationActivity),n.R7$(),n.Y8G("ngIf",l.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(30,jn)),n.R7$(2),n.SpI(" ",l.variant.viccCompliantName," "),n.R7$(2),n.Y8G("feature",l.variant.feature),n.R7$(2),n.Y8G("ngIf",l.variant.fusion.fivePrimeGene)("ngIfElse",c),n.R7$(2),n.Y8G("ngIf",l.variant.fusion.threePrimeGene)("ngIfElse",g),n.R7$(6),n.Y8G("cvcCoordinates",l.variant),n.R7$(2),n.Mz_("cvcTitle","",l.variant.name," Molecular Profiles"),n.Y8G("variantId",l.variant.id)}}let Nn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass FusionVariant into FusionVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-fusion-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["no5Partner",""],["no3Partner",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","VICC Compliant Name","nzSpan","2"],["nzTitle","Fusion","nzSpan","2"],[3,"feature"],["nzTitle","5' Partner"],[3,"feature",4,"ngIf","ngIfElse"],["nzTitle","3' Partner"],[3,"cvcCoordinates"],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"]],template:function(i,c){1&i&&n.DNE(0,Ji,37,31,"nz-row",6),2&i&&n.vxM("FusionVariant"==c.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,f.kT,f.Di,rn.V,en.x,ln.M,an.G,pn.h,on.m,Tn.W,A.L,_n.m,mn.r,r.l,X._,cn.V,fn.I,sn,F.i,Gn.f,dn.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return t})(),Hi=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,bn,Yn,Nn]})}return t})();function Wi(t,a){if(1&t&&n.nrm(0,"cvc-gene-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function Qi(t,a){if(1&t&&n.nrm(0,"cvc-factor-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function Ki(t,a){if(1&t&&n.nrm(0,"cvc-fusion-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function Zi(t,a){if(1&t&&(n.qex(0),n.DNE(1,Wi,1,1,"cvc-gene-variant-summary",1)(2,Qi,1,1,"cvc-factor-variant-summary",1)(3,Ki,1,1,"cvc-fusion-variant-summary",1),n.bVm()),2&t){let e;const i=a.ngIf;n.R7$(),n.vxM("GeneVariant"===(e=i.__typename)?1:"FactorVariant"===e?2:"FusionVariant"===e?3:-1)}}let no=(()=>{class t{constructor(e,i){var c;if(this.gql=e,this.route=i,null==(c=this.variantId?this.variantId:+this.route.snapshot.params.variantId))throw new Error("Must pass in a variant ID as an input or via the route.");this.queryRef=this.gql.watch({variantId:c});let g=this.queryRef.valueChanges;this.loading$=g.pipe((0,$.E)("loading"),(0,Cn.Z)(!0)),this.variant$=g.pipe((0,$.E)("data","variant")),this.subscribable={entityType:u.V9U.Variant,id:c}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.yLZ),n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-summary"]],inputs:{variantId:"variantId"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"variant"]],template:function(i,c){1&i&&(n.DNE(0,Zi,4,1,"ng-container",0),n.nI1(1,"ngrxPush")),2&i&&n.Y8G("ngIf",n.bMT(1,1,c.variant$))},dependencies:[_.bT,bn,Yn,Nn,N.L9],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return t})();var to=o(9543);let eo=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.variantId,entityType:u.V9U.Variant}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(i,c){1&i&&n.nrm(0,"cvc-event-feed",0),2&i&&n.Y8G("subscribable",c.subscribable)},dependencies:[to.e],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var ao=o(326);let io=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,ao.p]})}return t})();const oo=[{path:"",component:Bt,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:no,data:{breadcrumb:"Summary"}},{path:"comments",component:Wt,data:{breadcrumb:"Comments"}},{path:"revisions",component:ce,data:{breadcrumb:"Revisions"}},{path:"flags",component:te,data:{breadcrumb:"Flags"}},{path:"events",component:eo,data:{breadcrumb:"Events"}}]}];let ro=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[v.iI.forChild(oo),Hi,Jt,ae,Zt,io,v.iI]})}return t})(),co=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,ro,T.Zw,nn.Y3,R.ZJ,s.pc,m.f3,V.$,un.MC,f.kT,w.m,q.W,M.Y,r.l,B.C,U.V,F.i,L.W,Z]})}return t})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4334],{9045:(Pn,P,o)=>{o.d(P,{J:()=>j});var _=o(6514),L=o(505),r=o(3953),M=o(177),w=o(1188),U=o(5699),B=o(1236),q=o(5103),F=o(8011),z=o(2387),u=o(3075);const J=(s,I,p)=>({rejected:s,submitted:I,accepted:p});function H(s,I){}function W(s,I){if(1&s&&(r.qex(0),r.j41(1,"a",5),r.DNE(2,H,0,0,"ng-template",6),r.k0s(),r.bVm()),2&s){const p=r.XpG(),f=r.sdS(2);r.R7$(),r.Y8G("routerLink",p.evidence.link),r.R7$(),r.Y8G("ngTemplateOutlet",f)}}function Q(s,I){}function K(s,I){if(1&s&&r.nrm(0,"cvc-evidence-popover",9),2&s){const p=r.XpG(3);r.Y8G("evidenceId",p.evidence.id)}}function V(s,I){if(1&s&&r.DNE(0,K,1,1,"cvc-evidence-popover",8),2&s){const p=r.XpG(2);r.Y8G("ngIf",p.enablePopover)}}function T(s,I){if(1&s&&(r.j41(0,"nz-tag",7),r.DNE(1,Q,0,0,"ng-template",6),r.k0s(),r.DNE(2,V,1,1,"ng-template",null,3,r.C5r)),2&s){const p=r.sdS(3),f=r.XpG(),n=r.sdS(6);r.Y8G("ngClass",r.sMw(5,J,"REJECTED"===f.evidence.status,"SUBMITTED"===f.evidence.status,"ACCEPTED"===f.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",p)("nzPopoverTrigger",f.enablePopover?"hover":null),r.R7$(),r.Y8G("ngTemplateOutlet",n)}}function C(s,I){}function x(s,I){if(1&s&&r.DNE(0,C,0,0,"ng-template",6),2&s){r.XpG();const p=r.sdS(2);r.Y8G("ngTemplateOutlet",p)}}function m(s,I){if(1&s&&(r.j41(0,"cvc-icon-badges",10),r.nrm(1,"i",11),r.nI1(2,"entityColor"),r.nI1(3,"entityColor"),r.k0s(),r.EFF(4)),2&s){const p=r.XpG();r.Y8G("flagged",p.evidence.flagged)("entityColor",p.iconColor),r.R7$(),r.Y8G("nzTwotoneColor","REJECTED"===p.evidence.status?r.bMT(2,4,"Rejected"):r.bMT(3,6,"EvidenceItem")),r.R7$(3),r.SpI(" ",p.evidence.name,"\n")}}let j=(()=>{class s extends _.s{set evidence(p){if(!p)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=p}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,L.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#n=this.\u0275fac=function(f){return new(f||s)};static#t=this.\u0275cmp=r.VBU({type:s,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(f,n){if(1&f&&r.DNE(0,W,3,2,"ng-container",4)(1,T,4,9,"ng-template",null,0,r.C5r)(3,x,1,1,"ng-template",null,1,r.C5r)(5,m,5,8,"ng-template",null,2,r.C5r),2&f){const Z=r.sdS(4);r.Y8G("ngIf",n.linked)("ngIfElse",Z)}},dependencies:[M.YU,M.bT,M.T3,w.Wk,U.s,B.L_,q.Dn,F.S,z.N,u.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]})}return s})()},5202:(Pn,P,o)=>{o.r(P),o.d(P,{VariantsDetailModule:()=>ro});var _=o(177),L=o(7169),r=o(6912),M=o(1896),w=o(8103),U=o(5736),B=o(4124),q=o(1532),F=o(4917),z=o(9417),u=o(1188),J=o(996),H=o(4308),W=o(3842),Q=o(8492),K=o(8692),V=o(3617),T=o(513),C=o(5703),x=o(8927),m=o(7529),j=o(1997),s=o(7685),I=o(2983),p=o(5154),f=o(7391),n=o(3953);let Z=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,u.iI,z.YN,z.X1,x.PQ,V.$,m.f3,T.Zw,I.V,C.Ti,s.pc,f.kT,p.Qt,j.DH,Q.M,W.k,K.j,H.I,J.o]})}return t})();var nn=o(5103),R=o(3062),un=o(1236),v=o(9145),Cn=o(9172),O=o(6977),$=o(4608),In=o(1413),zn=o(4412),hn=o(1305),k=o(1774),yn=o(6389),Fn=o(5930),On=o(6269),Xn=o(9945),An=o(8821),Ln=o(7428),X=o(3245),wn=o(9765),Un=o(5269),Bn=o(4126),qn=o(1635),Jn=o(1226),b=o(6354),S=o(5964),D=o(9199),En=o(9894),Hn=o(4222),Wn=o(1939),Qn=o(5566),Kn=o(5473);function Zn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-molecular-profile-tag",22),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("molecularProfile",e)}}function nt(t,a){if(1&t&&n.DNE(0,Zn,2,1,"ng-container",21),2&t){const e=n.XpG(3).ngrxLet;n.Y8G("ngForOf",e)}}function tt(t,a){if(1&t&&(n.j41(0,"nz-alert",20),n.DNE(1,nt,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&t){const e=n.sdS(2);n.Y8G("nzDescription",e)}}function et(t,a){1&t&&(n.qex(0),n.DNE(1,tt,3,1,"nz-alert",19),n.bVm())}function at(t,a){if(1&t&&(n.qex(0),n.DNE(1,et,2,0,"ng-container",18),n.bVm()),2&t){const e=a.ngrxLet;n.R7$(),n.Y8G("ngIf",e&&e.length>0)}}function it(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-molecular-profile-tag",22),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("molecularProfile",e)}}function ot(t,a){if(1&t&&n.DNE(0,it,2,1,"ng-container",21),2&t){const e=n.XpG(3).ngrxLet;n.Y8G("ngForOf",e)}}function rt(t,a){if(1&t&&(n.j41(0,"nz-alert",24),n.DNE(1,ot,1,1,"ng-template",null,2,n.C5r),n.k0s()),2&t){const e=n.sdS(2);n.Y8G("nzDescription",e)}}function ct(t,a){1&t&&(n.qex(0),n.DNE(1,rt,3,1,"nz-alert",23),n.bVm())}function st(t,a){if(1&t&&(n.qex(0),n.DNE(1,ct,2,0,"ng-container",18),n.bVm()),2&t){const e=a.ngrxLet;n.R7$(),n.Y8G("ngIf",e&&e.length>0)}}function _t(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",25),n.bIt("nzOnClose",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.onSuccessBannerClose())}),n.k0s()}}function lt(t,a){if(1&t&&n.nrm(0,"nz-alert",26),2&t){n.XpG();const e=n.sdS(9);n.Y8G("nzDescription",e)}}function pt(t,a){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function gt(t,a){if(1&t&&(n.j41(0,"ul"),n.DNE(1,pt,2,1,"li",21),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.errorMessages)}}function mt(t,a){}function ft(t,a){1&t&&n.DNE(0,mt,0,0,"ng-template")}function dt(t,a){if(1&t&&(n.qex(0),n.DNE(1,ft,1,0,null,28),n.bVm()),2&t){n.XpG();const e=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function vt(t,a){}function ut(t,a){1&t&&n.DNE(0,vt,0,0,"ng-template")}function Ct(t,a){if(1&t&&(n.j41(0,"span",29),n.DNE(1,ut,1,0,null,28),n.k0s()),2&t){n.XpG();const e=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function It(t,a){if(1&t&&(n.j41(0,"button",30),n.EFF(1," Deprecate Variant "),n.k0s()),2&t){const e=n.XpG().ngrxLet,i=n.XpG();n.Y8G("disabled",!(void 0!==i.comment&&i.comment.length>=10&&e.signedIn&&e.isEditor&&i.reason))("nzTooltipTrigger",i.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==i.selectedOrg?null:i.selectedOrg.name))}}function zt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-form-buttons"),n.DNE(2,dt,2,1,"ng-container",27)(3,Ct,2,1,"ng-template",null,3,n.C5r)(5,It,2,3,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&t){const e=a.ngrxLet,i=n.sdS(4);n.R7$(2),n.Y8G("ngIf",e.signedIn&&e.isEditor)("ngIfElse",i)}}let tn=class vn{constructor(a,e,i,c,g,l){this.deprecateVariantGQL=a,this.variantDetailGQL=e,this.mpsForVariantGQL=i,this.networkErrorService=c,this.route=g,this.viewerService=l,this.destroy$=new In.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateVariantMutator=new Jn.E(c),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,En.s)(this)).subscribe(e=>{this.selectedOrg=e.mostRecentOrg}),void 0===this.variantId)throw new Error("Must pass a variant id into deprecate variant component");let a=this.mpsForVariantGQL.fetch({variantId:this.variantId});this.mpsToDeprecate$=a.pipe((0,b.T)(({data:e})=>e.molecularProfiles.nodes),(0,S.p)(D.kP),(0,b.T)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount==0))),this.mpsWithEvidence$=a.pipe((0,b.T)(({data:e})=>e.molecularProfiles.nodes),(0,S.p)(D.kP),(0,b.T)(e=>e.filter(i=>i.evidenceCountsByStatus.submittedCount+i.evidenceCountsByStatus.acceptedCount>0))),this.mpListLoading$=a.pipe((0,b.T)(({loading:e})=>e))}deprecateVariant(){if(this.errorMessages=[],this.reason&&this.comment&&this.variantId){let e=this.deprecateVariantMutator.mutate(this.deprecateVariantGQL,{deprecationReason:this.reason,comment:this.comment,variantId:this.variantId,organizationId:this.selectedOrg?.id},{refetchQueries:[{query:this.variantDetailGQL.document,variables:{variantId:this.variantId}}]});e.submitSuccess$.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{i&&(this.success=!0,this.comment="")}),e.submitError$.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{i.length>0&&(this.errorMessages=i)}),e.isSubmitting$.pipe((0,O.Q)(this.destroy$)).subscribe(i=>{this.loading=i})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(e){return new(e||vn)(n.rXU(v.FP9),n.rXU(v.N47),n.rXU(v.pCs),n.rXU(Hn.N),n.rXU(u.nX),n.rXU(hn.q))};static#t=this.\u0275cmp=n.VBU({type:vn,selectors:[["cvc-variant-deprecate-form"]],inputs:{variantId:"variantId"},decls:21,vars:11,consts:[["errorContents",""],["mpsToDeprecateTpl",""],["mpsWithEvidenceTpl",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","warning","nzMessage","This action will also deprecate the following Molecular Profiles:",3,"nzDescription",4,"nzSpaceItem"],["nzType","warning","nzMessage","This action will also deprecate the following Molecular Profiles:",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"molecularProfile"],["nzType","error","nzMessage","Cannot deprecate this Variant because the following Molecular Profiles have attached Evidence Items:",3,"nzDescription",4,"nzSpaceItem"],["nzType","error","nzMessage","Cannot deprecate this Variant because the following Molecular Profiles have attached Evidence Items:",3,"nzDescription"],["nzBanner","","nzMessage","Variant deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Variant",3,"nzDescription"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate variant."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(e,i){if(1&e){const c=n.RV6();n.j41(0,"nz-spin",5),n.nI1(1,"ngrxPush"),n.j41(2,"nz-space",6),n.DNE(3,at,2,1,"ng-container",7)(4,st,2,1,"ng-container",7),n.k0s()(),n.j41(5,"nz-card",8),n.DNE(6,_t,1,0,"nz-alert",9)(7,lt,1,1,"nz-alert",10)(8,gt,2,1,"ng-template",null,0,n.C5r),n.j41(10,"nz-form-item")(11,"nz-select",11),n.mxI("ngModelChange",function(l){return n.eBV(c),n.DH7(i.reason,l)||(i.reason=l),n.Njj(l)}),n.nrm(12,"nz-option",12)(13,"nz-option",13)(14,"nz-option",14),n.k0s()(),n.j41(15,"form",15),n.bIt("ngSubmit",function(){return n.eBV(c),n.Njj(i.deprecateVariant())}),n.j41(16,"cvc-comment-input-form",16),n.mxI("commentChange",function(l){return n.eBV(c),n.DH7(i.comment,l)||(i.comment=l),n.Njj(l)}),n.k0s(),n.j41(17,"nz-spin",17)(18,"nz-form-item")(19,"nz-form-control"),n.DNE(20,zt,7,2,"ng-container",7),n.k0s()()()()()}2&e&&(n.Y8G("nzSpinning",n.bMT(1,9,i.mpListLoading$)),n.R7$(3),n.Y8G("ngrxLet",i.mpsToDeprecate$),n.R7$(),n.Y8G("ngrxLet",i.mpsWithEvidence$),n.R7$(2),n.Y8G("ngIf",i.success),n.R7$(),n.Y8G("ngIf",i.errorMessages.length>0),n.R7$(4),n.R50("ngModel",i.reason),n.R7$(5),n.R50("comment",i.comment),n.R7$(),n.Y8G("nzSpinning",i.loading),n.R7$(3),n.Y8G("ngrxLet",i.viewer$))},dependencies:[_.Sq,_.bT,_.T3,z.qT,z.BC,z.cb,z.vS,z.cV,k.Nj,m.Uq,m.e,x.CA,x.Ls,x.zS,V.Y,T.aO,yn.c,Fn.p,I.a,C.cK,s.U5,s.Dq,p.LH,j.ld,j.WI,Wn.l,Qn.K,Kn.z,k.L9],encapsulation:2,changeDetection:0})};tn=(0,qn.Cg)([(0,En.d)()],tn);var Gn=o(1845),ht=o(3075);const yt=t=>({flagged:t}),Ft=t=>["/variants",t,"revise"],Et=t=>({variantType:t}),Gt=()=>[];function Vt(t,a){if(1&t&&(n.j41(0,"span",19)(1,"strong"),n.EFF(2),n.k0s(),n.EFF(3," Parent:"),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.JRh(e.name)}}function Tt(t,a){if(1&t&&(n.j41(0,"span",20)(1,"a",21),n.nrm(2,"cvc-feature-tag",22),n.k0s()()),2&t){const e=n.XpG(2).ngIf;n.R7$(),n.Mz_("routerLink","/features/",e.feature.id,""),n.R7$(),n.Y8G("feature",e.feature)}}function xt(t,a){1&t&&(n.j41(0,"nz-space",16),n.DNE(1,Vt,4,1,"span",17)(2,Tt,3,3,"span",18),n.k0s())}function Rt(t,a){1&t&&(n.j41(0,"span"),n.EFF(1,",\xa0"),n.k0s())}function $t(t,a){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.DNE(2,Rt,2,0,"span",5),n.k0s()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function bt(t,a){if(1&t&&(n.j41(0,"nz-page-header-subtitle"),n.DNE(1,$t,3,2,"span",23),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngForOf",e.variantAliases)}}function St(t,a){if(1&t&&(n.j41(0,"button",28,3),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),i=n.XpG(4).ngIf;n.Y8G("routerLink",n.eq3(3,Ft,i.id))("queryParams",n.eq3(5,Et,i.__typename))("nzType",e.isActive?"primary":"default")}}function Dt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,St,3,7,"button",27),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",null==e?null:e.signedIn)}}function Yt(t,a){if(1&t&&(n.j41(0,"button",30,3),n.EFF(2," Flag "),n.k0s()),2&t){const e=n.sdS(1);n.Y8G("nzType",e.isActive?"primary":"default")}}function Mt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,Yt,3,1,"button",29),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function jt(t,a){if(1&t&&(n.j41(0,"div",33),n.nrm(1,"cvc-variant-deprecate-form",34),n.k0s()),2&t){const e=n.XpG(5).ngIf;n.R7$(),n.Y8G("variantId",e.id)}}function kt(t,a){if(1&t&&(n.j41(0,"button",32),n.EFF(1," Deprecate "),n.DNE(2,jt,2,1,"ng-template",null,4,n.C5r),n.k0s()),2&t){const e=n.sdS(3),i=n.XpG(4).ngIf;n.Y8G("disabled",i.deprecated)("nzPopoverContent",e)}}function Nt(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,kt,4,2,"button",31),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.isEditor)}}function Pt(t,a){if(1&t&&n.nrm(0,"cvc-entity-subscription-button",36),2&t){const e=n.XpG(2).ngrxLet,i=n.XpG(3);n.Y8G("viewer",e)("subscribableId",i.subscribable.id)}}function Ot(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,Pt,1,2,"cvc-entity-subscription-button",35),n.k0s()),2&t){const e=n.XpG().ngrxLet,i=n.XpG(3);n.R7$(),n.Y8G("ngIf",e.signedIn&&i.subscribable)}}function Xt(t,a){1&t&&(n.j41(0,"nz-space",25),n.DNE(1,Dt,2,1,"span",26)(2,Mt,2,1,"span",26)(3,Nt,2,1,"span",26)(4,Ot,2,1,"span",26),n.k0s())}function At(t,a){if(1&t&&(n.j41(0,"nz-page-header-extra"),n.DNE(1,Xt,5,0,"nz-space",24),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",e.viewer$)}}function Lt(t,a){if(1&t&&n.nrm(0,"nz-alert",37),2&t){n.XpG();const e=n.sdS(18);n.Y8G("nzMessage",e)}}function wt(t,a){if(1&t&&(n.EFF(0),n.nI1(1,"enumToTitle"),n.nrm(2,"cvc-comment-body",38)),2&t){const e=n.XpG().ngIf;n.SpI(" This Variant has been deprecated for reason: ",n.bMT(1,2,e.deprecationReason),". "),n.R7$(2),n.Y8G("commentBodySegments",(null==e.deprecationActivity?null:e.deprecationActivity.parsedNote)||n.lJ4(4,Gt))}}function Ut(t,a){if(1&t&&(n.j41(0,"nz-col",39),n.nrm(1,"cvc-contributor-avatars",40),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function Bt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",6),n.DNE(2,xt,3,0,"ng-template",null,0,n.C5r),n.j41(4,"div",7),n.nI1(5,"ngrxPush"),n.j41(6,"nz-page-header",8)(7,"nz-page-header-title",9),n.nrm(8,"i",10),n.nI1(9,"entityColor"),n.j41(10,"span",11),n.EFF(11),n.k0s(),n.EFF(12),n.k0s(),n.DNE(13,bt,2,1,"nz-page-header-subtitle",5)(14,At,2,1,"nz-page-header-extra",12),n.j41(15,"nz-page-header-content"),n.DNE(16,Lt,1,1,"nz-alert",13)(17,wt,3,5,"ng-template",null,1,n.C5r),n.j41(19,"cvc-tab-navigation",14),n.nI1(20,"ngrxPush"),n.DNE(21,Ut,2,1,"ng-template",null,2,n.C5r),n.k0s(),n.j41(23,"div",15),n.nrm(24,"router-outlet"),n.k0s()()()(),n.bVm()),2&t){const e=a.ngIf,i=n.sdS(3),c=n.XpG();n.R7$(),n.Y8G("displayName",e.feature.name+" "+e.name)("relationsTpl",i),n.R7$(3),n.Y8G("flags",n.bMT(5,11,c.flagsTotal$)),n.R7$(3),n.Y8G("ngClass",n.eq3(17,yt,e.flags.totalCount>0)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(9,13,"Variant")),n.R7$(3),n.SpI(" ",e.feature.name," "),n.R7$(),n.SpI(" ",e.name," "),n.R7$(),n.Y8G("ngIf",e.variantAliases.length>0),n.R7$(),n.Y8G("ngrxLet",c.viewer$),n.R7$(2),n.Y8G("ngIf",e.deprecated),n.R7$(3),n.Y8G("tabs",n.bMT(20,15,c.tabs$))}}let qt=(()=>{class t{constructor(e,i,c){this.gql=e,this.viewerService=i,this.route=c,this.destroy$=new In.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new zn.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(g=>{this.queryRef=this.gql.watch({variantId:+g.variantId});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,$.E)("loading"),(0,Cn.Z)(!0)),this.variant$=l.pipe((0,$.E)("data","variant")),this.flagsTotal$=this.variant$.pipe((0,$.E)("flags","totalCount")),this.variant$.pipe((0,O.Q)(this.destroy$)).subscribe({next:N=>{this.tabs$.next(this.defaultTabs.map(y=>"Revisions"===y.tabLabel?{badgeCount:N?.openRevisionCount,...y}:"Flags"===y.tabLabel?{badgeCount:N?.flags.totalCount,...y}:"Comments"===y.tabLabel?{badgeCount:N?.comments.totalCount,badgeColor:"#cccccc",...y}:y))}}),this.subscribable={id:+g.variantId,entityType:v.V9U.Variant}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.N47),n.rXU(hn.q),n.rXU(u.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["variants-detail"]],decls:2,vars:3,consts:[["variantRelations",""],["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateVariantForm",""],[4,"ngIf"],[3,"displayName","relationsTpl"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-typography","",2,"color","#bbb"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"routerLink"],[3,"feature"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Variant","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateVariant"],[3,"variantId"],["typename","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(i,c){1&i&&(n.DNE(0,Bt,25,19,"ng-container",5),n.nI1(1,"ngrxPush")),2&i&&n.Y8G("ngIf",n.bMT(1,1,c.variant$))},dependencies:[_.YU,_.Sq,_.bT,u.n3,u.Wk,u.wQ,k.Nj,T.aO,yn.c,Fn.p,nn.Dn,R.WB,R.k9,R.CO,R.zR,R.ov,s.U5,s.Dq,m.Uq,V.Y,un.L_,f.Di,On.f,Xn.N,An.H,Ln.v,X._,wn.n,Un.o,Bn.p,tn,k.L9,Gn.f,ht.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}.deprecateVariant[_ngcontent-%COMP%]{width:700px}"]})}return t})();var Jt=o(4873);let Ht=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,Jt.A]})}return t})();var Wt=o(664);let Qt=(()=>{class t{constructor(e){this.route=e,this.commentable={id:+this.route.snapshot.params.variantId,entityType:v.T31.Variant}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(i,c){1&i&&n.nrm(0,"cvc-comment-list",0),2&i&&n.Y8G("commentable",c.commentable)},dependencies:[Wt.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Kt=o(7268),Zt=o(1912);let ne=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,m.f3,C.Ti,s.pc,Zt.i3,nn.Y3,Kt.G]})}return t})();var te=o(4097);let ee=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:v.lD4.Variant,id:+this.route.snapshot.params.variantId}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(i,c){1&i&&n.nrm(0,"cvc-flag-list-and-filter",0),2&i&&n.Y8G("flaggable",c.flaggable)},dependencies:[te.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var ae=o(6371),E=o(9541);let ie=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,E.hM,ae.O]})}return t})();var oe=o(4055);const re=(t,a)=>a.name;function ce(t,a){if(1&t&&(n.j41(0,"nz-tab",1)(1,"nz-template",2),n.nrm(2,"cvc-revisions-list-and-filter",3),n.k0s()()),2&t){const e=a.$implicit;n.Y8G("nzTitle",e.name),n.R7$(2),n.Y8G("moderated",e.moderated)}}let se=(()=>{class t{constructor(e,i){this.gql=e,this.route=i,this.tabs=(0,n.vPA)([])}ngOnInit(){this.routeSub=this.route.params.pipe((0,S.p)(D.kP),(0,b.T)(e=>+e.variantId),(0,S.p)(D.kP)).subscribe(e=>{this.tabs.set([{name:"Variant Fields",moderated:{id:e,entityType:v.BlQ.Variant}}]),this.coordsSub=this.gql.fetch({variantId:e},{fetchPolicy:"no-cache"}).pipe((0,S.p)(D.kP),(0,$.E)("data","variant"),(0,S.p)(D.kP)).subscribe(i=>{this.updateTabs(i)})})}updateTabs(e){if("GeneVariant"==e.__typename&&e.coordinates)this.tabs.set([...this.tabs(),{name:"Variant Coordinates",moderated:{id:e.coordinates.id,entityType:v.BlQ.VariantCoordinates}}]);else if("FusionVariant"==e.__typename){let i=this.tabs();e.fivePrimeEndExonCoordinates&&i.push({name:"5' Exon End Coordinates",moderated:{id:e.fivePrimeEndExonCoordinates.id,entityType:v.BlQ.ExonCoordinates}}),e.threePrimeStartExonCoordinates&&i.push({name:"3' Exon Start Coordinates",moderated:{id:e.threePrimeStartExonCoordinates.id,entityType:v.BlQ.ExonCoordinates}}),this.tabs.set(i)}}ngOnDestroy(){this.routeSub?.unsubscribe(),this.coordsSub?.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.Jmn),n.rXU(u.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-revisions"]],decls:3,vars:1,consts:[[3,"nzAnimated"],[3,"nzTitle"],["nz-tab",""],[3,"moderated"]],template:function(i,c){1&i&&(n.j41(0,"nz-tabset",0),n.Z7z(1,ce,3,2,"nz-tab",1,re),n.k0s()),2&i&&(n.Y8G("nzAnimated",!1),n.R7$(),n.Dyx(c.tabs()))},dependencies:[E.JZ,E.rE,E.Tl,oe.B],encapsulation:2,changeDetection:0})}return t})();var en=o(2142),h=o(2e3),Y=o(5699),an=o(5493),on=o(7513),A=o(7054),rn=o(8254),cn=o(9972),G=o(9247);let sn=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,E.hM,G.$G,C.Ti,A.L,m.f3,F.i]})}return t})();var _n=o(2839),Vn=o(6719),ln=o(7855),pn=o(6073),Tn=o(9481),gn=o(7679),mn=o(6408),fn=o(8097),_e=o(1596);const xn=()=>["."];function le(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",20),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.R7$(),n.SpI(" ",e.variantInfo.clinvarId," ")}}function pe(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",21),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/projects/SNP/snp_ref.cgi?searchType=adhoc_search&type=rs&rs=",e.variantInfo.dbsnpRsid,""),n.R7$(),n.SpI(" ",e.variantInfo.dbsnpRsid," ")}}function ge(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",22),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=",e.variantInfo.cosmicId.replace("COSM",""),""),n.R7$(),n.SpI(" ",e.variantInfo.cosmicId," ")}}function me(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function fe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,me,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function de(t,a){if(1&t&&(n.qex(0),n.DNE(1,fe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.snpeffSnpEffect)}}function ve(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ue(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ve,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ce(t,a){if(1&t&&(n.qex(0),n.DNE(1,ue,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.snpeffSnpImpact)}}function Ie(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," MyVariant.info ID: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.j41(7,"strong",18),n.EFF(8,"ClinVar ID:"),n.k0s(),n.EFF(9,"\xa0 "),n.DNE(10,le,3,3,"ng-container",19),n.k0s()(),n.j41(11,"div",15)(12,"div",16),n.EFF(13," dbSNP RSID: "),n.k0s(),n.j41(14,"div",17),n.DNE(15,pe,3,3,"ng-container",19),n.j41(16,"strong",18),n.EFF(17,"COSMIC ID (v68):"),n.k0s(),n.EFF(18,"\xa0 "),n.DNE(19,ge,3,3,"ng-container",19),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," SNPEff Effect: "),n.k0s(),n.j41(23,"div",17),n.DNE(24,de,2,1,"ng-container",19),n.k0s()(),n.j41(25,"div",15)(26,"div",16),n.EFF(27," SNPEff Impact: "),n.k0s(),n.j41(28,"div",17),n.DNE(29,Ce,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",e.variantInfo.myVariantInfoId," "),n.R7$(4),n.Y8G("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.dbsnpRsid)("ngIfElse",i),n.R7$(4),n.Y8G("ngIf",e.variantInfo.cosmicId)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.snpeffSnpEffect.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.snpeffSnpImpact.length>0)("ngIfElse",i)}}function ze(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",20),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/",e.variantInfo.clinvarId,"/"),n.R7$(),n.SpI(" ",e.variantInfo.clinvarId," ")}}function he(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",24),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Mz_("href","https://omim.org/entry/",e.variantInfo.clinvarOmim.split(".")[0],""),n.R7$(),n.SpI(" ",e.variantInfo.clinvarOmim," ")}}function ye(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Fe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ye,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ee(t,a){if(1&t&&(n.qex(0),n.DNE(1,Fe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarClinicalSignificance)}}function Ge(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Ve(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ge,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Te(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ve,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsCoding)}}function xe(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Re(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,xe,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function $e(t,a){if(1&t&&(n.qex(0),n.DNE(1,Re,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsGenomic)}}function be(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Se(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,be,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function De(t,a){if(1&t&&(n.qex(0),n.DNE(1,Se,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsNonCoding)}}function Ye(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Me(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ye,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function je(t,a){if(1&t&&(n.qex(0),n.DNE(1,Me,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.clinvarHgvsProtein)}}function ke(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," ClinVar ID: "),n.k0s(),n.j41(5,"div",17),n.DNE(6,ze,3,3,"ng-container",19),n.j41(7,"strong",18),n.EFF(8,"OMIM:"),n.k0s(),n.EFF(9,"\xa0 "),n.DNE(10,he,3,3,"ng-container",19),n.k0s()(),n.j41(11,"div",15)(12,"div",16),n.EFF(13," ClinVar Clinical Significance: "),n.k0s(),n.j41(14,"div",17),n.DNE(15,Ee,2,1,"ng-container",19),n.k0s()(),n.j41(16,"div",15)(17,"div",16),n.EFF(18," HGVS Coding: "),n.k0s(),n.j41(19,"div",17),n.DNE(20,Te,2,1,"ng-container",19),n.k0s()(),n.j41(21,"div",15)(22,"div",16),n.EFF(23," HGVS Genomic: "),n.k0s(),n.j41(24,"div",17),n.DNE(25,$e,2,1,"ng-container",19),n.k0s()(),n.j41(26,"div",15)(27,"div",16),n.EFF(28," HGVS Non-Coding: "),n.k0s(),n.j41(29,"div",17),n.DNE(30,De,2,1,"ng-container",19),n.k0s()(),n.j41(31,"div",15)(32,"div",16),n.EFF(33," HGVS Protein: "),n.k0s(),n.j41(34,"div",17),n.DNE(35,je,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarId)("ngIfElse",i),n.R7$(4),n.Y8G("ngIf",e.variantInfo.clinvarOmim)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarClinicalSignificance.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsCoding.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsGenomic.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsNonCoding.length>0)("ngIfElse",i),n.R7$(),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.clinvarHgvsProtein.length>0)("ngIfElse",i)}}function Ne(t,a){if(1&t&&(n.j41(0,"cvc-link-tag",27),n.EFF(1," View this variant in the gnomAD browser "),n.k0s()),2&t){const e=n.XpG(3);n.Mz_("href","https://gnomad.broadinstitute.org/variant/",e.variantInfo.dbsnpRsid,"?dataset=gnomad_r2_1")}}function Pe(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ne,2,2,"cvc-link-tag",25),n.j41(2,"nz-table",26,1)(4,"thead")(5,"tr")(6,"th"),n.EFF(7,"Type"),n.k0s(),n.j41(8,"th"),n.EFF(9,"Allele Frequency"),n.k0s(),n.j41(10,"th"),n.EFF(11,"Allele Count"),n.k0s(),n.j41(12,"th"),n.EFF(13,"Allele Number"),n.k0s(),n.j41(14,"th"),n.EFF(15,"Filter"),n.k0s()()(),n.j41(16,"tbody")(17,"tr")(18,"td"),n.EFF(19,"Total Exome"),n.k0s(),n.j41(20,"td"),n.EFF(21),n.nI1(22,"ifEmpty"),n.k0s(),n.j41(23,"td"),n.EFF(24),n.nI1(25,"ifEmpty"),n.k0s(),n.j41(26,"td"),n.EFF(27),n.nI1(28,"ifEmpty"),n.k0s(),n.j41(29,"td"),n.EFF(30),n.nI1(31,"ifEmpty"),n.k0s()(),n.j41(32,"tr")(33,"td"),n.EFF(34,"Total Genome"),n.k0s(),n.j41(35,"td"),n.EFF(36),n.nI1(37,"ifEmpty"),n.k0s(),n.j41(38,"td"),n.EFF(39),n.nI1(40,"ifEmpty"),n.k0s(),n.j41(41,"td"),n.EFF(42),n.nI1(43,"ifEmpty"),n.k0s(),n.j41(44,"td"),n.EFF(45),n.nI1(46,"ifEmpty"),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.variantInfo.dbsnpRsid),n.R7$(),n.Y8G("nzData",n.lJ4(36,xn))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(19),n.SpI(" ",n.i5U(22,12,e.variantInfo.gnomadExomeAlleleFrequency,"--")," "),n.R7$(3),n.JRh(n.i5U(25,15,e.variantInfo.gnomadExomeAlleleCount,"--")),n.R7$(3),n.SpI(" ",n.i5U(28,18,e.variantInfo.gnomadExomeAlleleNumber,"--")," "),n.R7$(3),n.JRh(n.i5U(31,21,e.variantInfo.gnomadExomeFilter,"--")),n.R7$(6),n.SpI(" ",n.i5U(37,24,e.variantInfo.gnomadGenomeAlleleFrequency,"--")," "),n.R7$(3),n.SpI(" ",n.i5U(40,27,e.variantInfo.gnomadGenomeAlleleCount,"--")," "),n.R7$(3),n.SpI(" ",n.i5U(43,30,e.variantInfo.gnomadGenomeAlleleNumber,"--")," "),n.R7$(3),n.JRh(n.i5U(46,33,e.variantInfo.gnomadGenomeFilter,"--"))}}function Oe(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," Allele Count: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," Allele Number: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," Adjusted Allele Frequency: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,12,e.variantInfo.exacAlleleCount,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,15,e.variantInfo.exacAlleleNumber,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,18,e.variantInfo.exacAlleleFrequency,"--")," ")}}function Xe(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," phyloP100way: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," phyloP30way: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," phastCons100way: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," phastCons30way: "),n.k0s(),n.j41(23,"div",17),n.EFF(24),n.nI1(25,"ifEmpty"),n.k0s()(),n.j41(26,"div",15)(27,"div",16),n.EFF(28," GERP++: "),n.k0s(),n.j41(29,"div",17),n.EFF(30),n.nI1(31,"ifEmpty"),n.k0s()(),n.j41(32,"div",15)(33,"div",16),n.EFF(34," SiPhy: "),n.k0s(),n.j41(35,"div",17),n.EFF(36),n.nI1(37,"ifEmpty"),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,24,e.variantInfo.phyloP100way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,27,e.variantInfo.phyloP30way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,30,e.variantInfo.phastcons100way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(25,33,e.variantInfo.phastcons30way,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(31,36,e.variantInfo.gerp,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(37,39,e.variantInfo.siphy,"--")," ")}}function Ae(t,a){1&t&&(n.qex(0),n.nrm(1,"br"),n.bVm())}function Le(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ae,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function we(t,a){if(1&t&&(n.qex(0),n.DNE(1,Le,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.eglHgvs)}}function Ue(t,a){if(1&t&&(n.qex(0),n.j41(1,"div",14)(2,"div",15)(3,"div",16),n.EFF(4," EGL Class: "),n.k0s(),n.j41(5,"div",17),n.EFF(6),n.nI1(7,"ifEmpty"),n.k0s()(),n.j41(8,"div",15)(9,"div",16),n.EFF(10," Protein Variant Name: "),n.k0s(),n.j41(11,"div",17),n.EFF(12),n.nI1(13,"ifEmpty"),n.k0s()(),n.j41(14,"div",15)(15,"div",16),n.EFF(16," Transcript Variant Name: "),n.k0s(),n.j41(17,"div",17),n.EFF(18),n.nI1(19,"ifEmpty"),n.k0s()(),n.j41(20,"div",15)(21,"div",16),n.EFF(22," HGVS: "),n.k0s(),n.j41(23,"div",17),n.DNE(24,we,2,1,"ng-container",19),n.k0s()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(7,17,e.variantInfo.eglClass,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(13,20,e.variantInfo.eglProtein,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.SpI(" ",n.i5U(19,23,e.variantInfo.eglTranscript,"--")," "),n.R7$(2),n.Y8G("nzGutter",8),n.R7$(),n.Y8G("nzSpan",6),n.R7$(2),n.Y8G("nzSpan",18),n.R7$(),n.Y8G("ngIf",e.variantInfo.eglHgvs.length>0)("ngIfElse",i)}}function Be(t,a){if(1&t&&(n.j41(0,"td"),n.EFF(1),n.nI1(2,"ifEmpty"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(n.i5U(2,1,e.variantInfo.revelScore.join(", "),"--"))}}function qe(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Je(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,qe,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function He(t,a){if(1&t&&(n.qex(0),n.DNE(1,Je,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.siftPrediction)}}function We(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Qe(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,We,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ke(t,a){if(1&t&&(n.qex(0),n.DNE(1,Qe,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.siftScore)}}function Ze(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function na(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ze,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ta(t,a){if(1&t&&(n.qex(0),n.DNE(1,na,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HdivPrediction)}}function ea(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function aa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ea,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ia(t,a){if(1&t&&(n.qex(0),n.DNE(1,aa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HdivScore)}}function oa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ra(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,oa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ca(t,a){if(1&t&&(n.qex(0),n.DNE(1,ra,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HvarPrediction)}}function sa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function _a(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,sa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function la(t,a){if(1&t&&(n.qex(0),n.DNE(1,_a,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.polyphen2HvarScore)}}function pa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ga(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,pa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ma(t,a){if(1&t&&(n.qex(0),n.DNE(1,ga,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationtasterPrediction)}}function fa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function da(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,fa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function va(t,a){if(1&t&&(n.qex(0),n.DNE(1,da,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationtasterScore)}}function ua(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ca(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,ua,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ia(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ca,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationassessorPrediction)}}function za(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ha(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,za,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ya(t,a){if(1&t&&(n.qex(0),n.DNE(1,ha,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.mutationassessorScore)}}function Fa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ea(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Fa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ga(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ea,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.fathmmPrediction)}}function Va(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Ta(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Va,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function xa(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ta,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.fathmmScore)}}function Ra(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function $a(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ra,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ba(t,a){if(1&t&&(n.qex(0),n.DNE(1,$a,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.proveanPrediction)}}function Sa(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Da(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Sa,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Ya(t,a){if(1&t&&(n.qex(0),n.DNE(1,Da,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.proveanScore)}}function Ma(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function ja(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Ma,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function ka(t,a){if(1&t&&(n.qex(0),n.DNE(1,ja,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.caddConsequence)}}function Na(t,a){1&t&&(n.qex(0),n.EFF(1,", "),n.bVm())}function Pa(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.DNE(2,Na,2,0,"ng-container",2),n.bVm()),2&t){const e=a.$implicit,i=a.last;n.R7$(),n.SpI(" ",e,""),n.R7$(),n.Y8G("ngIf",!i)}}function Oa(t,a){if(1&t&&(n.qex(0),n.DNE(1,Pa,3,2,"ng-container",23),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variantInfo.caddDetail)}}function Xa(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-table",26,1)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Predictor"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Prediction"),n.k0s(),n.j41(9,"th"),n.EFF(10,"Score"),n.k0s()()(),n.j41(11,"tbody")(12,"tr")(13,"td"),n.EFF(14,"REVEL"),n.k0s(),n.j41(15,"td"),n.EFF(16,"N/A"),n.k0s(),n.DNE(17,Be,3,4,"td",2),n.k0s(),n.j41(18,"tr")(19,"td"),n.EFF(20,"SIFT"),n.k0s(),n.j41(21,"td"),n.DNE(22,He,2,1,"ng-container",19),n.k0s(),n.j41(23,"td"),n.DNE(24,Ke,2,1,"ng-container",19),n.k0s()(),n.j41(25,"tr")(26,"td"),n.EFF(27,"Polyphen2 HDIV"),n.k0s(),n.j41(28,"td"),n.DNE(29,ta,2,1,"ng-container",19),n.k0s(),n.j41(30,"td"),n.DNE(31,ia,2,1,"ng-container",19),n.k0s()(),n.j41(32,"tr")(33,"td"),n.EFF(34,"Polyphen2 HVAR"),n.k0s(),n.j41(35,"td"),n.DNE(36,ca,2,1,"ng-container",19),n.k0s(),n.j41(37,"td"),n.DNE(38,la,2,1,"ng-container",19),n.k0s()(),n.j41(39,"tr")(40,"td"),n.EFF(41,"LRT"),n.k0s(),n.j41(42,"td"),n.EFF(43),n.nI1(44,"ifEmpty"),n.k0s(),n.j41(45,"td"),n.EFF(46),n.nI1(47,"ifEmpty"),n.k0s()(),n.j41(48,"tr")(49,"td"),n.EFF(50,"MutationTaster"),n.k0s(),n.j41(51,"td"),n.DNE(52,ma,2,1,"ng-container",19),n.k0s(),n.j41(53,"td"),n.DNE(54,va,2,1,"ng-container",19),n.k0s()(),n.j41(55,"tr")(56,"td"),n.EFF(57,"MutationAssessor"),n.k0s(),n.j41(58,"td"),n.DNE(59,Ia,2,1,"ng-container",19),n.k0s(),n.j41(60,"td"),n.DNE(61,ya,2,1,"ng-container",19),n.k0s()(),n.j41(62,"tr")(63,"td"),n.EFF(64,"FATHMM"),n.k0s(),n.j41(65,"td"),n.DNE(66,Ga,2,1,"ng-container",19),n.k0s(),n.j41(67,"td"),n.DNE(68,xa,2,1,"ng-container",19),n.k0s()(),n.j41(69,"tr")(70,"td"),n.EFF(71,"PROVEAN"),n.k0s(),n.j41(72,"td"),n.DNE(73,ba,2,1,"ng-container",19),n.k0s(),n.j41(74,"td"),n.DNE(75,Ya,2,1,"ng-container",19),n.k0s()(),n.j41(76,"tr")(77,"td"),n.EFF(78,"MetaSVM"),n.k0s(),n.j41(79,"td"),n.EFF(80),n.nI1(81,"ifEmpty"),n.k0s(),n.j41(82,"td"),n.EFF(83),n.nI1(84,"ifEmpty"),n.k0s()(),n.j41(85,"tr")(86,"td"),n.EFF(87,"MetaLR"),n.k0s(),n.j41(88,"td"),n.EFF(89),n.nI1(90,"ifEmpty"),n.k0s(),n.j41(91,"td"),n.EFF(92),n.nI1(93,"ifEmpty"),n.k0s()(),n.j41(94,"tr")(95,"td"),n.EFF(96,"CADD"),n.k0s(),n.j41(97,"td"),n.EFF(98," Consequence: "),n.DNE(99,ka,2,1,"ng-container",19),n.nrm(100,"br"),n.EFF(101," Consequence Detail: "),n.DNE(102,Oa,2,1,"ng-container",19),n.k0s(),n.j41(103,"td"),n.EFF(104),n.nI1(105,"ifEmpty"),n.nrm(106,"br"),n.EFF(107),n.nI1(108,"ifEmpty"),n.k0s()(),n.j41(109,"tr")(110,"td"),n.EFF(111,"FATHMM-MKL"),n.k0s(),n.j41(112,"td"),n.EFF(113),n.nI1(114,"ifEmpty"),n.k0s(),n.j41(115,"td"),n.EFF(116),n.nI1(117,"ifEmpty"),n.k0s()(),n.j41(118,"tr")(119,"td"),n.EFF(120,"fitCons"),n.k0s(),n.j41(121,"td"),n.EFF(122,"N/A"),n.k0s(),n.j41(123,"td"),n.EFF(124),n.nI1(125,"ifEmpty"),n.k0s()()()(),n.bVm()),2&t){const e=n.XpG(2),i=n.sdS(2);n.R7$(),n.Y8G("nzData",n.lJ4(80,xn))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(16),n.Y8G("ngIf",e.variantInfo.revelScore),n.R7$(5),n.Y8G("ngIf",e.variantInfo.siftPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.siftScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.polyphen2HdivPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.polyphen2HdivScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.polyphen2HvarPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.polyphen2HvarScore.length>0)("ngIfElse",i),n.R7$(5),n.JRh(n.i5U(44,47,e.variantInfo.lrtPrediction,"--")),n.R7$(3),n.JRh(n.i5U(47,50,e.variantInfo.lrtScore,"--")),n.R7$(6),n.Y8G("ngIf",e.variantInfo.mutationtasterPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.mutationtasterScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.mutationassessorPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.mutationassessorScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.fathmmPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.fathmmScore.length>0)("ngIfElse",i),n.R7$(5),n.Y8G("ngIf",e.variantInfo.proveanPrediction.length>0)("ngIfElse",i),n.R7$(2),n.Y8G("ngIf",e.variantInfo.proveanScore.length>0)("ngIfElse",i),n.R7$(5),n.JRh(n.i5U(81,53,e.variantInfo.metasvmPrediction,"--")),n.R7$(3),n.JRh(n.i5U(84,56,e.variantInfo.metasvmScore,"--")),n.R7$(6),n.JRh(n.i5U(90,59,e.variantInfo.metalrPrediction,"--")),n.R7$(3),n.JRh(n.i5U(93,62,e.variantInfo.metalrScore,"--")),n.R7$(7),n.Y8G("ngIf",e.variantInfo.caddConsequence.length>0)("ngIfElse",i),n.R7$(3),n.Y8G("ngIf",e.variantInfo.caddDetail.length>0)("ngIfElse",i),n.R7$(2),n.SpI(" ",n.i5U(105,65,e.variantInfo.caddScore,"--")," (raw) "),n.R7$(3),n.SpI(" ",n.i5U(108,68,e.variantInfo.caddPhred,"--")," (PHRED) "),n.R7$(6),n.JRh(n.i5U(114,71,e.variantInfo.fathmmMklPrediction,"--")),n.R7$(3),n.JRh(n.i5U(117,74,e.variantInfo.fathmmMklScore,"--")),n.R7$(8),n.JRh(n.i5U(125,77,e.variantInfo.fitconsScore,"--"))}}function Aa(t,a){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"nz-card",3)(2,"nz-card-tab")(3,"nz-tabset",4)(4,"nz-tab",5),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(0))}),n.k0s(),n.j41(5,"nz-tab",6),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(1))}),n.k0s(),n.j41(6,"nz-tab",7),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(2))}),n.k0s(),n.j41(7,"nz-tab",8),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(3))}),n.k0s(),n.j41(8,"nz-tab",9),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(4))}),n.k0s(),n.j41(9,"nz-tab",10),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(5))}),n.k0s(),n.j41(10,"nz-tab",11),n.bIt("nzClick",function(){n.eBV(e);const c=n.XpG();return n.Njj(c.tabIndex.next(6))}),n.k0s()()(),n.qex(11,12),n.nI1(12,"async"),n.DNE(13,Ie,30,23,"ng-container",13)(14,ke,36,32,"ng-container",13)(15,Pe,47,37,"ng-container",13)(16,Oe,20,21,"ng-container",13)(17,Xe,38,42,"ng-container",13)(18,Ue,25,26,"ng-container",13)(19,Xa,126,81,"ng-container",13),n.bVm(),n.k0s(),n.bVm()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("nzAnimated",!0),n.R7$(8),n.Y8G("ngSwitch",n.bMT(12,9,e.tabIndex)),n.R7$(2),n.Y8G("ngSwitchCase",0),n.R7$(),n.Y8G("ngSwitchCase",1),n.R7$(),n.Y8G("ngSwitchCase",2),n.R7$(),n.Y8G("ngSwitchCase",3),n.R7$(),n.Y8G("ngSwitchCase",4),n.R7$(),n.Y8G("ngSwitchCase",5),n.R7$(),n.Y8G("ngSwitchCase",6)}}function La(t,a){1&t&&n.EFF(0,"--")}let wa=(()=>{class t{constructor(){this.tabIndex=new zn.t(0)}tabChange(e){this.tabIndex.next(e)}ngOnDestroy(){this.tabIndex.unsubscribe()}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-my-variant-info"]],inputs:{variantInfo:"variantInfo"},decls:3,vars:1,consts:[["noValue",""],["gnomadTable",""],[4,"ngIf"],["nzTitle","MyVariantInfo"],["nzSize","small",3,"nzAnimated"],["nzTitle","Overview",3,"nzClick"],["nzTitle","ClinVar",3,"nzClick"],["nzTitle","gnomAD (2.1.1)",3,"nzClick"],["nzTitle","EXAC (0.3.1)",3,"nzClick"],["nzTitle","Conservation Analysis Tools",3,"nzClick"],["nzTitle","EGL",3,"nzClick"],["nzTitle","Effect Scores",3,"nzClick"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nz-row","",3,"nzGutter"],["nz-col","",1,"key-col",3,"nzSpan"],["nz-col","",3,"nzSpan"],[2,"margin-left","8px"],[4,"ngIf","ngIfElse"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on dbSNP",3,"href"],["tooltip","View on COSMIC",3,"href"],[4,"ngFor","ngForOf"],["tooltip","View on OMIM",3,"href"],[3,"href",4,"ngIf"],["nzSize","small",3,"nzData","nzFrontPagination","nzShowPagination"],[3,"href"]],template:function(i,c){1&i&&n.DNE(0,Aa,20,11,"ng-container",2)(1,La,1,0,"ng-template",null,0,n.C5r),2&i&&n.Y8G("ngIf",c.variantInfo)},dependencies:[_.Sq,_.bT,_.ux,_.e1,E.JZ,E.rE,G.CP,G.SO,G._4,G.IL,G.aj,G.kt,C.cK,C.RO,gn.a,m.Uq,m.e,_.Jj,_e.r],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]})}return t})();var dn=o(8139);const Ua=()=>[8,16],Rn=()=>[8,8],$n=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Ba(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function qa(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ba,2,1,"nz-tag",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function Ja(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function Ha(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",31),2&t&&n.Y8G("variantType",a.$implicit)}function Wa(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ha,1,1,"cvc-variant-type-tag",30),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Qa(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function Ka(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function Za(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ka,2,1,"nz-tag",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.hgvsDescriptions)}}function ni(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None specified"),n.k0s())}function ti(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list")(2,"nz-tag"),n.EFF(3),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(3),n.JRh(e.variant.maneSelectTranscript)}}function ei(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None found"),n.k0s())}function ai(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",29),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function ii(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",16),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",32),n.k0s(),n.DNE(4,ai,4,3,"ng-template",null,8,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function oi(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",29),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function ri(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",16),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",32),n.k0s(),n.DNE(4,oi,4,3,"ng-template",null,9,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function ci(t,a){if(1&t&&(n.j41(0,"cvc-link-tag",33),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("href","https://reg.genome.network/allele/"+e.variant.alleleRegistryId+".html"),n.R7$(),n.SpI(" ",e.variant.alleleRegistryId," ")}}function si(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"Unregistered"),n.k0s())}function _i(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-link-tag",34),n.EFF(2),n.k0s(),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+e),n.R7$(),n.SpI(" ",e," ")}}function li(t,a){if(1&t&&(n.j41(0,"cvc-tag-list"),n.DNE(1,_i,3,2,"ng-container",28),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.variant.clinvarIds)}}function pi(t,a){if(1&t&&(n.qex(0),n.DNE(1,li,2,1,"cvc-tag-list",15),n.bVm()),2&t){n.XpG();const e=n.sdS(40),i=n.XpG();n.R7$(),n.Y8G("ngIf","N/A"!==i.variant.clinvarIds[0]&&"NONE FOUND"!==i.variant.clinvarIds[0])("ngIfElse",e)}}function gi(t,a){if(1&t&&(n.j41(0,"span",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.variant.clinvarIds[0])}}function mi(t,a){1&t&&(n.j41(0,"span",29),n.EFF(1,"None provided"),n.k0s())}function fi(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",35)(1,"cvc-link-tag",36),n.EFF(2," Variant Report "),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("href",e.variant.openCravatUrl)}}function di(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-col",11),n.nrm(2,"cvc-my-variant-info",37),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("variantInfo",e.variant.myVariantInfo)}}function vi(t,a){1&t&&(n.j41(0,"nz-col",11)(1,"nz-card",38),n.nrm(2,"cvc-empty-revisable",39),n.k0s()()),2&t&&n.Y8G("nzSpan",24)}function ui(t,a){if(1&t&&(n.j41(0,"nz-row",10)(1,"nz-col",11)(2,"nz-row",10)(3,"nz-col",12)(4,"nz-descriptions",13)(5,"nz-descriptions-item",14),n.DNE(6,qa,3,1,"ng-container",15)(7,Ja,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",16),n.DNE(10,Wa,3,1,"ng-container",15)(11,Qa,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(13,"nz-descriptions-item",16),n.DNE(14,Za,3,1,"ng-container",15)(15,ni,2,0,"ng-template",null,2,n.C5r),n.k0s(),n.j41(17,"nz-descriptions-item",17),n.DNE(18,ti,4,1,"ng-container",15)(19,ei,2,0,"ng-template",null,3,n.C5r),n.k0s()()(),n.j41(21,"nz-col",11),n.nrm(22,"cvc-coordinates-card",18),n.k0s()()(),n.j41(23,"nz-col",19)(24,"nz-row",10)(25,"nz-col",11)(26,"nz-descriptions",20),n.DNE(27,ii,6,2,"ng-container",21)(28,ri,6,2,"ng-container",21),n.k0s()(),n.j41(29,"nz-col",11)(30,"nz-descriptions",13)(31,"nz-descriptions-item",22),n.nrm(32,"cvc-feature-tag",23),n.k0s(),n.j41(33,"nz-descriptions-item",24),n.DNE(34,ci,2,2,"cvc-link-tag",25)(35,si,2,0,"ng-template",null,4,n.C5r),n.k0s(),n.j41(37,"nz-descriptions-item",16),n.DNE(38,pi,2,2,"ng-container",15)(39,gi,2,1,"ng-template",null,5,n.C5r)(41,mi,2,0,"ng-template",null,6,n.C5r),n.k0s(),n.DNE(43,fi,3,1,"nz-descriptions-item",26),n.k0s()(),n.DNE(44,di,3,2,"ng-container",15)(45,vi,3,1,"ng-template",null,7,n.C5r),n.k0s()(),n.j41(47,"nz-col",12),n.nrm(48,"cvc-molecular-profiles-table",27),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),c=n.sdS(16),g=n.sdS(20),l=n.sdS(36),N=n.sdS(42),y=n.sdS(46),d=n.XpG();n.Y8G("nzGutter",n.lJ4(35,Ua)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(36,Rn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",d.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",d.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",d.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(3),n.Y8G("nzTitle",d.variant.hgvsDescriptions.length>1?"HGVS Descriptions":"HGVS Description"),n.R7$(),n.Y8G("ngIf",d.variant.hgvsDescriptions.length>0)("ngIfElse",c),n.R7$(4),n.Y8G("ngIf",d.variant.maneSelectTranscript)("ngIfElse",g),n.R7$(3),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("cvcCoordinates",d.variant),n.R7$(2),n.Y8G("nzGutter",n.lJ4(37,Rn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(38,$n)),n.R7$(),n.Y8G("ngIf",d.variant.creationActivity),n.R7$(),n.Y8G("ngIf",d.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(39,$n)),n.R7$(2),n.Y8G("feature",d.variant.feature),n.R7$(2),n.Y8G("ngIf",d.variant.alleleRegistryId&&"unregistered"!=d.variant.alleleRegistryId)("ngIfElse",l),n.R7$(3),n.Y8G("nzTitle",d.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),n.R7$(),n.Y8G("ngIf",d.variant.clinvarIds.length>0)("ngIfElse",N),n.R7$(5),n.Y8G("ngIf",d.variant.openCravatUrl),n.R7$(),n.Y8G("ngIf",d.variant.myVariantInfo)("ngIfElse",y),n.R7$(4),n.Mz_("cvcTitle","",d.variant.name," Molecular Profiles"),n.Y8G("variantId",d.variant.id)}}let bn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass GeneVariant into GeneVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-gene-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["noDescriptions",""],["noMane",""],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["noVariantInfo",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzTitle","MANE Select Transcript"],[3,"cvcCoordinates"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","Gene"],[3,"feature"],["nzTitle","Allele Registry ID"],["tooltip","View on ClinGen Allele Registry",3,"href",4,"ngIf","ngIfElse"],["nzTitle","OpenCRAVAT",4,"ngIf"],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["nzTitle","OpenCRAVAT"],["tooltip","View on OpenCRAVAT",3,"href"],[3,"variantInfo"],["nzTitle","MyVariantInfo"],["notification","Not available, provide Representative Variant Coordinates"]],template:function(i,c){1&i&&n.DNE(0,ui,49,40,"nz-row",10),2&i&&n.vxM("GeneVariant"==c.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,C.cK,rn.V,Vn.Q,en.x,ln.M,an.G,pn.h,on.m,Tn.W,A.L,gn.a,_n.m,mn.r,r.l,X._,cn.V,fn.I,sn,wa,F.i,dn.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return t})();var Ci=o(9354);const Ii=()=>[8,16],Sn=()=>[8,8],Dn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function zi(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function hi(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,zi,2,1,"nz-tag",19),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function yi(t,a){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function Fi(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",22),2&t&&n.Y8G("variantType",a.$implicit)}function Ei(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Fi,1,1,"cvc-variant-type-tag",21),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Gi(t,a){1&t&&(n.j41(0,"span",20),n.EFF(1,"None specified"),n.k0s())}function Vi(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",20),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function Ti(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",11),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",23),n.k0s(),n.DNE(4,Vi,4,3,"ng-template",null,3,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function xi(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",20),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function Ri(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",11),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",23),n.k0s(),n.DNE(4,xi,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function $i(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",24)(1,"cvc-tag-list")(2,"cvc-link-tag",25),n.EFF(3),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+e.variant.ncitId)("tooltip","View "+e.variant.name+" in the NCI Thesaurus"),n.R7$(),n.SpI(" NCIt: ",e.variant.ncitId," ")}}function bi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-col",6),n.nrm(2,"cvc-ncit-details",26),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("ncitDetails",e.variant.ncitDetails)}}function Si(t,a){1&t&&(n.j41(0,"nz-col",6)(1,"nz-card",27),n.nrm(2,"cvc-empty-revisable",28),n.k0s()()),2&t&&n.Y8G("nzSpan",24)}function Di(t,a){if(1&t&&(n.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-row",5)(3,"nz-col",7)(4,"nz-descriptions",8)(5,"nz-descriptions-item",9),n.DNE(6,hi,3,1,"ng-container",10)(7,yi,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",11),n.DNE(10,Ei,3,1,"ng-container",10)(11,Gi,2,0,"ng-template",null,1,n.C5r),n.k0s()()()()(),n.j41(13,"nz-col",12)(14,"nz-row",5)(15,"nz-col",6)(16,"nz-descriptions",13),n.DNE(17,Ti,6,2,"ng-container",14)(18,Ri,6,2,"ng-container",14),n.k0s()(),n.j41(19,"nz-col",6)(20,"nz-descriptions",8)(21,"nz-descriptions-item",15),n.nrm(22,"cvc-feature-tag",16),n.k0s(),n.DNE(23,$i,4,3,"nz-descriptions-item",17),n.k0s()(),n.DNE(24,bi,3,2,"ng-container",10)(25,Si,3,1,"ng-template",null,2,n.C5r),n.k0s()(),n.j41(27,"nz-col",7),n.nrm(28,"cvc-molecular-profiles-table",18),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),c=n.sdS(26),g=n.XpG();n.Y8G("nzGutter",n.lJ4(21,Ii)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(22,Sn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",g.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",g.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",g.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(4),n.Y8G("nzGutter",n.lJ4(23,Sn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(24,Dn)),n.R7$(),n.Y8G("ngIf",g.variant.creationActivity),n.R7$(),n.Y8G("ngIf",g.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(25,Dn)),n.R7$(2),n.Y8G("feature",g.variant.feature),n.R7$(),n.Y8G("ngIf",g.variant.ncitId),n.R7$(),n.Y8G("ngIf",g.variant.ncitId)("ngIfElse",c),n.R7$(4),n.Y8G("variantId",g.variant.id)}}let Yn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass FactorVariant into FactorVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-factor-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["noNcit",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","Factor"],[3,"feature"],["nzTitle","Resources",4,"ngIf"],["cvcHeight","300px","cvcTitle","Molecular Profiles",3,"variantId"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"ncitDetails"],["nzTitle",""],["notification","Not available, please provide an NCIt Code"]],template:function(i,c){1&i&&n.DNE(0,Di,29,26,"nz-row",5),2&i&&n.vxM("FactorVariant"==c.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,C.cK,f.kT,f.Di,rn.V,Vn.Q,en.x,ln.M,an.G,pn.h,on.m,A.L,gn.a,_n.m,mn.r,r.l,X._,cn.V,fn.I,sn,F.i,dn.N,Ci.e],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return t})();const Yi=()=>[8,16],Mn=()=>[8,8],jn=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Mi(t,a){if(1&t&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.R7$(),n.JRh(e)}}function ji(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Mi,2,1,"nz-tag",24),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantAliases)}}function ki(t,a){1&t&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Ni(t,a){1&t&&n.nrm(0,"cvc-variant-type-tag",27),2&t&&n.Y8G("variantType",a.$implicit)}function Pi(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ni,1,1,"cvc-variant-type-tag",26),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.variant.variantTypes)}}function Oi(t,a){1&t&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Xi(t,a){if(1&t&&(n.EFF(0," Created "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.creationActivity.createdAt),") ")}}function Ai(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",12),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Xi,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.creationActivity.user)}}function Li(t,a){if(1&t&&(n.EFF(0," Deprecated "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3);n.R7$(2),n.SpI(" (",n.bMT(3,1,e.variant.deprecationActivity.createdAt),") ")}}function wi(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",12),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Li,4,3,"ng-template",null,5,n.C5r),n.bVm()),2&t){const e=n.sdS(5),i=n.XpG(2);n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",i.variant.deprecationActivity.user)}}function Ui(t,a){if(1&t&&n.nrm(0,"cvc-feature-tag",18),2&t){const e=n.XpG(2);n.Y8G("feature",e.variant.fusion.fivePrimeGene)}}function Bi(t,a){if(1&t&&n.nrm(0,"cvc-feature-tag",18),2&t){const e=n.XpG(2);n.Y8G("feature",e.variant.fusion.threePrimeGene)}}function qi(t,a){if(1&t&&(n.j41(0,"span",25),n.EFF(1),n.nI1(2,"enumToTitle"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(n.bMT(2,1,e.variant.fusion.fivePrimePartnerStatus))}}function Ji(t,a){if(1&t&&(n.j41(0,"span",25),n.EFF(1),n.nI1(2,"enumToTitle"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(n.bMT(2,1,e.variant.fusion.threePrimePartnerStatus))}}function Hi(t,a){if(1&t&&(n.j41(0,"nz-row",6)(1,"nz-col",7)(2,"nz-row",6)(3,"nz-col",8)(4,"nz-descriptions",9)(5,"nz-descriptions-item",10),n.DNE(6,ji,3,1,"ng-container",11)(7,ki,2,0,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"nz-descriptions-item",12),n.DNE(10,Pi,3,1,"ng-container",11)(11,Oi,2,0,"ng-template",null,1,n.C5r),n.k0s()()()()(),n.j41(13,"nz-col",13)(14,"nz-row",6)(15,"nz-col",7)(16,"nz-descriptions",14),n.DNE(17,Ai,6,2,"ng-container",15)(18,wi,6,2,"ng-container",15),n.k0s()(),n.j41(19,"nz-col",7)(20,"nz-descriptions",9)(21,"nz-descriptions-item",16),n.EFF(22),n.k0s(),n.j41(23,"nz-descriptions-item",17),n.nrm(24,"cvc-feature-tag",18),n.k0s(),n.j41(25,"nz-descriptions-item",19),n.DNE(26,Ui,1,1,"cvc-feature-tag",20),n.k0s(),n.j41(27,"nz-descriptions-item",21),n.DNE(28,Bi,1,1,"cvc-feature-tag",20),n.k0s(),n.DNE(29,qi,3,3,"ng-template",null,2,n.C5r)(31,Ji,3,3,"ng-template",null,3,n.C5r),n.k0s()()()(),n.j41(33,"nz-col",8),n.nrm(34,"cvc-coordinates-card",22),n.k0s(),n.j41(35,"nz-col",8),n.nrm(36,"cvc-molecular-profiles-table",23),n.k0s()()),2&t){const e=n.sdS(8),i=n.sdS(12),c=n.sdS(30),g=n.sdS(32),l=n.XpG();n.Y8G("nzGutter",n.lJ4(26,Yi)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(27,Mn)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",l.variant.variantAliases.length>0)("ngIfElse",e),n.R7$(3),n.Y8G("nzTitle",l.variant.variantTypes.length>1?"Variant Types":"Variant Type"),n.R7$(),n.Y8G("ngIf",l.variant.variantTypes.length>0)("ngIfElse",i),n.R7$(4),n.Y8G("nzGutter",n.lJ4(28,Mn)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(29,jn)),n.R7$(),n.Y8G("ngIf",l.variant.creationActivity),n.R7$(),n.Y8G("ngIf",l.variant.deprecationActivity),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(30,jn)),n.R7$(2),n.SpI(" ",l.variant.viccCompliantName," "),n.R7$(2),n.Y8G("feature",l.variant.feature),n.R7$(2),n.Y8G("ngIf",l.variant.fusion.fivePrimeGene)("ngIfElse",c),n.R7$(2),n.Y8G("ngIf",l.variant.fusion.threePrimeGene)("ngIfElse",g),n.R7$(6),n.Y8G("cvcCoordinates",l.variant),n.R7$(2),n.Mz_("cvcTitle","",l.variant.name," Molecular Profiles"),n.Y8G("variantId",l.variant.id)}}let kn=(()=>{class t{ngOnInit(){if(null==this.variant)throw new Error("Must pass FusionVariant into FusionVariant summary")}static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-fusion-variant-summary"]],inputs:{variant:"variant"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noAliases",""],["noTypes",""],["no5Partner",""],["no3Partner",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],[3,"nzTitle"],["nzSpan","12"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],[4,"ngIf"],["nzTitle","VICC Compliant Name","nzSpan","2"],["nzTitle","Fusion","nzSpan","2"],[3,"feature"],["nzTitle","5' Partner"],[3,"feature",4,"ngIf","ngIfElse"],["nzTitle","3' Partner"],[3,"cvcCoordinates"],["cvcHeight","300px",3,"variantId","cvcTitle"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],[3,"user"]],template:function(i,c){1&i&&n.DNE(0,Hi,37,31,"nz-row",6),2&i&&n.vxM("FusionVariant"==c.variant.__typename?0:-1)},dependencies:[_.MD,_.Sq,_.bT,m.f3,m.Uq,m.e,h.WF,h.xA,h.gr,Y.T,Y.s,C.Ti,f.kT,f.Di,rn.V,en.x,ln.M,an.G,pn.h,on.m,Tn.W,A.L,_n.m,mn.r,r.l,X._,cn.V,fn.I,sn,F.i,Gn.f,dn.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return t})(),Wi=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,bn,Yn,kn]})}return t})();function Qi(t,a){if(1&t&&n.nrm(0,"cvc-gene-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function Ki(t,a){if(1&t&&n.nrm(0,"cvc-factor-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function Zi(t,a){if(1&t&&n.nrm(0,"cvc-fusion-variant-summary",1),2&t){const e=n.XpG().ngIf;n.Y8G("variant",e)}}function no(t,a){if(1&t&&(n.qex(0),n.DNE(1,Qi,1,1,"cvc-gene-variant-summary",1)(2,Ki,1,1,"cvc-factor-variant-summary",1)(3,Zi,1,1,"cvc-fusion-variant-summary",1),n.bVm()),2&t){let e;const i=a.ngIf;n.R7$(),n.vxM("GeneVariant"===(e=i.__typename)?1:"FactorVariant"===e?2:"FusionVariant"===e?3:-1)}}let to=(()=>{class t{constructor(e,i){var c;if(this.gql=e,this.route=i,null==(c=this.variantId?this.variantId:+this.route.snapshot.params.variantId))throw new Error("Must pass in a variant ID as an input or via the route.");this.queryRef=this.gql.watch({variantId:c});let g=this.queryRef.valueChanges;this.loading$=g.pipe((0,$.E)("loading"),(0,Cn.Z)(!0)),this.variant$=g.pipe((0,$.E)("data","variant")),this.subscribable={entityType:v.V9U.Variant,id:c}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(v.yLZ),n.rXU(u.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-summary"]],inputs:{variantId:"variantId"},decls:2,vars:3,consts:[[4,"ngIf"],[3,"variant"]],template:function(i,c){1&i&&(n.DNE(0,no,4,1,"ng-container",0),n.nI1(1,"ngrxPush")),2&i&&n.Y8G("ngIf",n.bMT(1,1,c.variant$))},dependencies:[_.bT,bn,Yn,kn,k.L9],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return t})();var Nn=o(8313);let eo=(()=>{class t{constructor(e){this.route=e,this.feedScope={mode:v.Qt1.Subject,subject:{id:+this.route.snapshot.params.variantId,entityType:v.V9U.Variant}}}static#n=this.\u0275fac=function(i){return new(i||t)(n.rXU(u.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-variants-events"]],decls:1,vars:2,consts:[[3,"cvcScope","cvcShowFilters"]],template:function(i,c){1&i&&n.nrm(0,"cvc-activity-feed",0),2&i&&n.Y8G("cvcScope",c.feedScope)("cvcShowFilters",!0)},dependencies:[Nn.Y],styles:["[_nghost-%COMP%]{display:block}"]})}return t})(),ao=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,Nn.Y]})}return t})();const io=[{path:"",component:qt,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:to,data:{breadcrumb:"Summary"}},{path:"comments",component:Qt,data:{breadcrumb:"Comments"}},{path:"revisions",component:se,data:{breadcrumb:"Revisions"}},{path:"flags",component:ee,data:{breadcrumb:"Flags"}},{path:"events",component:eo,data:{breadcrumb:"Events"}}]}];let oo=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[u.iI.forChild(io),Wi,Ht,ie,ne,ao,u.iI]})}return t})(),ro=(()=>{class t{static#n=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[_.MD,oo,T.Zw,nn.Y3,R.ZJ,s.pc,m.f3,V.$,un.MC,f.kT,w.m,q.W,M.Y,r.l,B.C,U.V,F.i,L.W,Z]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/4362.740b04a85c379343.js b/server/public/4362.740b04a85c379343.js new file mode 100644 index 000000000..0b4c741b5 --- /dev/null +++ b/server/public/4362.740b04a85c379343.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4362],{9365:(F,x,i)=>{i.d(x,{T:()=>P});var t=i(3953),e=i(177),R=i(5703),T=i(2617),M=i(5103),d=i(513),_=i(6389),f=i(5930);const b=["itemTemplate"],y=m=>({$implicit:m});function E(m,O){if(1&m){const u=t.RV6();t.j41(0,"nz-list-item",5),t.bIt("click",function(){t.eBV(u);const h=t.XpG().$implicit,A=t.XpG(2);return t.Njj(A.onParticipantSelected(h))}),t.eu8(1,6),t.k0s()}if(2&m){const u=t.XpG().$implicit,v=t.XpG(2);t.AVh("selected-participant",u.id==(null==v.selectedItem?null:v.selectedItem.id)),t.R7$(),t.Y8G("ngTemplateOutlet",v.itemTemplateRef||null)("ngTemplateOutletContext",t.eq3(4,y,u))}}function $(m,O){if(1&m&&(t.qex(0),t.DNE(1,E,2,6,"nz-list-item",4),t.bVm()),2&m){const u=O.index,v=t.XpG(2);t.R7$(),t.Y8G("ngIf",u+1<=v.defaultListSize)}}function G(m,O){if(1&m){const u=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(u);const h=t.XpG(2);return t.Njj(h.onExpandClicked())}),t.nrm(1,"i",8),t.EFF(2," Expand "),t.k0s()}}function I(m,O){if(1&m){const u=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(u);const h=t.XpG(2);return t.Njj(h.onCollapseClicked())}),t.nrm(1,"i",9),t.EFF(2," Collapse "),t.k0s()}}function V(m,O){if(1&m&&(t.qex(0),t.j41(1,"nz-card",1)(2,"nz-list"),t.DNE(3,$,2,1,"ng-container",2),t.k0s(),t.DNE(4,G,3,0,"button",3)(5,I,3,0,"button",3),t.k0s(),t.bVm()),2&m){const u=t.XpG();t.R7$(),t.Y8G("nzTitle",u.listTitle),t.R7$(2),t.Y8G("ngForOf",u.participantList),t.R7$(),t.Y8G("ngIf",u.participantList.length>u.defaultListSize),t.R7$(),t.Y8G("ngIf",u.isExpanded)}}let P=(()=>{class m{constructor(){this.defaultListSize=5,this.participantSelectedEvent=new t.bkB,this.isExpanded=!1}ngOnInit(){this.preselectedOption&&(this.selectedItem=this.preselectedOption)}onParticipantSelected(u){this.selectedItem=u.id==this.selectedItem?.id?void 0:u,this.participantSelectedEvent.emit(this.selectedItem)}onExpandClicked(){this.originalDefaultListSize=this.defaultListSize,this.defaultListSize=this.participantList.length,this.isExpanded=!0}onCollapseClicked(){this.originalDefaultListSize&&(this.defaultListSize=this.originalDefaultListSize,this.isExpanded=!1)}static#t=this.\u0275fac=function(v){return new(v||m)};static#e=this.\u0275cmp=t.VBU({type:m,selectors:[["cvc-participant-list"]],contentQueries:function(v,h,A){if(1&v&&t.wni(A,b,5),2&v){let H;t.mGM(H=t.lsd())&&(h.itemTemplateRef=H.first)}},inputs:{participantList:"participantList",listTitle:"listTitle",defaultListSize:"defaultListSize",preselectedOption:"preselectedOption"},outputs:{participantSelectedEvent:"participantSelectedEvent"},decls:1,vars:1,consts:[[4,"ngIf"],["nz-type","inner",2,"margin-bottom","1em",3,"nzTitle"],[4,"ngFor","ngForOf"],["nz-button","","nzType","default","nzSize","small",3,"click",4,"ngIf"],["nzSize","small","class","participant-list-item",3,"selected-participant","click",4,"ngIf"],["nzSize","small",1,"participant-list-item",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","vertical-align-bottom"],["nz-icon","","nzType","vertical-align-top"]],template:function(v,h){1&v&&t.DNE(0,V,6,4,"ng-container",0),2&v&&t.Y8G("ngIf",h.participantList&&h.participantList.length>0)},dependencies:[e.Sq,e.bT,e.T3,R.cK,T.eE,T.lQ,M.Dn,d.aO,_.c,f.p],styles:[".participant-list-item[_ngcontent-%COMP%]:hover{border:1px solid #40a9ff;cursor:pointer}.participant-list-item[_ngcontent-%COMP%]{padding:2px;margin:2px}.selected-participant[_ngcontent-%COMP%]{background:#40a9ff;color:#fff}"]})}return m})()},2968:(F,x,i)=>{i.d(x,{K:()=>_});var t=i(177),e=i(5703),R=i(2617),T=i(5103),M=i(513),d=i(3953);let _=(()=>{class f{static#t=this.\u0275fac=function(E){return new(E||f)};static#e=this.\u0275mod=d.$C({type:f});static#n=this.\u0275inj=d.G2t({imports:[t.MD,e.Ti,R.rD,T.Y3,M.Zw]})}return f})()},8542:(F,x,i)=>{i.d(x,{d:()=>at});var t=i(4412),e=i(3953),R=i(177),T=i(9417),M=i(513),d=i(6389),_=i(5930),f=i(5703),b=i(6677),y=i(5103),E=i(7529),$=i(1236),G=i(7481),I=i(1774);let V=(()=>{class a{transform(r){const C=+r%10;return r+["th","st","nd","rd"][10==+r%100-C||C>3?0:C]}static#t=this.\u0275fac=function(C){return new(C||a)};static#e=this.\u0275pipe=e.EJ8({name:"ordinal",type:a,pure:!0})}return a})();var P=i(3075);const m=["*","*","*","*"],O=(a,l)=>({$implicit:a,title:"Comments",iconTpl:l}),u=(a,l)=>({$implicit:a,title:"Revisions",iconTpl:l}),v=(a,l)=>({$implicit:a,title:"Submissions",iconTpl:l}),h=(a,l)=>({$implicit:a,title:"Moderations",iconTpl:l}),A=()=>[8,8];function H(a,l){if(1&a&&(e.qex(0),e.EFF(1),e.nI1(2,"ordinal"),e.bVm()),2&a){const r=e.XpG(2).$implicit;e.R7$(),e.SpI(" (",e.bMT(2,1,r.rank),") ")}}function N(a,l){if(1&a&&(e.EFF(0),e.DNE(1,H,3,3,"ng-container",18)),2&a){const r=e.XpG(),C=r.$implicit;e.SpI(" ",r.title," "),e.R7$(),e.Y8G("ngIf",C)}}function j(a,l){if(1&a&&(e.nrm(0,"nz-statistic",17),e.nI1(1,"number"),e.DNE(2,N,2,2,"ng-template",null,6,e.C5r)),2&a){const r=l.$implicit,C=l.iconTpl,S=e.sdS(3);e.Y8G("nzTitle",S)("nzValue",r&&e.bMT(1,3,r.actionCount)||0)("nzPrefix",C)}}function w(a,l){1&a&&e.SdG(0,0,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.commentsRank,\n title: 'Comments',\n iconTpl: commentIcon\n }\n "])}function B(a,l){1&a&&(e.nrm(0,"i",19),e.nI1(1,"entityColor")),2&a&&e.Y8G("nzTwotoneColor",e.bMT(1,1,"Comment"))}function Y(a,l){1&a&&e.SdG(0,1,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.revisionsRank,\n title: 'Revisions',\n iconTpl: revisionIcon\n }\n "])}function U(a,l){1&a&&(e.nrm(0,"i",20),e.nI1(1,"entityColor")),2&a&&e.Y8G("nzTwotoneColor",e.bMT(1,1,"Revision"))}function s(a,l){1&a&&e.SdG(0,2,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.submissionsRank,\n title: 'Submissions',\n iconTpl: submissionsIcon\n }\n "])}function g(a,l){1&a&&(e.nrm(0,"i",21),e.nI1(1,"entityColor")),2&a&&e.Y8G("nzTwotoneColor",e.bMT(1,1,"Curator"))}function n(a,l){1&a&&e.SdG(0,3,["*ngTemplateOutlet","\n rankedActivity;\n context: {\n $implicit: cvcRanks.moderationRank,\n title: 'Moderations',\n iconTpl: moderationIcon\n }\n "])}function p(a,l){1&a&&(e.nrm(0,"i",22),e.nI1(1,"entityColor")),2&a&&e.Y8G("nzTwotoneColor",e.bMT(1,1,"Editor"))}function o(a,l){if(1&a){const r=e.RV6();e.EFF(0," Include Child Org Counts "),e.j41(1,"nz-switch",24),e.mxI("ngModelChange",function(S){e.eBV(r);const L=e.XpG(2);return e.DH7(L.showSubGroupStats,S)||(L.showSubGroupStats=S),e.Njj(S)}),e.k0s()}if(2&a){const r=e.XpG(2);e.R7$(),e.R50("ngModel",r.showSubGroupStats)}}function c(a,l){1&a&&(e.nrm(0,"i",35),e.nI1(1,"entityColor"),e.nrm(2,"i",36),e.nI1(3,"entityColor")),2&a&&(e.Y8G("nzTwotoneColor",e.bMT(1,3,"EvidenceItem")),e.R7$(2),e.xc7("color",e.bMT(3,5,"EvidenceItem")))}function z(a,l){1&a&&(e.nrm(0,"i",35),e.nI1(1,"entityColor"),e.nrm(2,"i",37),e.nI1(3,"entityColor")),2&a&&(e.Y8G("nzTwotoneColor",e.bMT(1,3,"EvidenceItem")),e.R7$(2),e.xc7("color",e.bMT(3,5,"EvidenceItem")))}function D(a,l){1&a&&(e.nrm(0,"i",38),e.nI1(1,"entityColor"),e.nrm(2,"i",36),e.nI1(3,"entityColor")),2&a&&(e.Y8G("nzTwotoneColor",e.bMT(1,3,"Assertion")),e.R7$(2),e.xc7("color",e.bMT(3,5,"Assertion")))}function K(a,l){1&a&&(e.nrm(0,"i",38),e.nI1(1,"entityColor"),e.nrm(2,"i",37),e.nI1(3,"entityColor")),2&a&&(e.Y8G("nzTwotoneColor",e.bMT(1,3,"Assertion")),e.R7$(2),e.xc7("color",e.bMT(3,5,"Assertion")))}function X(a,l){1&a&&(e.nrm(0,"i",20),e.nI1(1,"entityColor"),e.nrm(2,"i",36),e.nI1(3,"entityColor")),2&a&&(e.Y8G("nzTwotoneColor",e.bMT(1,3,"Revision")),e.R7$(2),e.xc7("color",e.bMT(3,5,"Revision")))}function W(a,l){1&a&&(e.nrm(0,"i",20),e.nI1(1,"entityColor"),e.nrm(2,"i",37),e.nI1(3,"entityColor")),2&a&&(e.Y8G("nzTwotoneColor",e.bMT(1,3,"Revision")),e.R7$(2),e.xc7("color",e.bMT(3,5,"Revision")))}function k(a,l){1&a&&(e.nrm(0,"i",19),e.nI1(1,"entityColor")),2&a&&e.Y8G("nzTwotoneColor",e.bMT(1,1,"Comment"))}function et(a,l){1&a&&(e.nrm(0,"i",39),e.nI1(1,"entityColor")),2&a&&e.Y8G("nzTwotoneColor",e.bMT(1,1,"Source"))}function nt(a,l){if(1&a&&(e.qex(0),e.j41(1,"nz-row",25)(2,"nz-col",26),e.nrm(3,"nz-statistic",27),e.nI1(4,"number"),e.k0s(),e.j41(5,"nz-col",26),e.nrm(6,"nz-statistic",28),e.nI1(7,"number"),e.k0s(),e.DNE(8,c,4,7,"ng-template",null,8,e.C5r)(10,z,4,7,"ng-template",null,9,e.C5r),e.j41(12,"nz-col",26),e.nrm(13,"nz-statistic",29),e.nI1(14,"number"),e.k0s(),e.j41(15,"nz-col",26),e.nrm(16,"nz-statistic",30),e.nI1(17,"number"),e.k0s(),e.DNE(18,D,4,7,"ng-template",null,10,e.C5r)(20,K,4,7,"ng-template",null,11,e.C5r),e.j41(22,"nz-col",26),e.nrm(23,"nz-statistic",31),e.nI1(24,"number"),e.k0s(),e.j41(25,"nz-col",26),e.nrm(26,"nz-statistic",32),e.nI1(27,"number"),e.k0s(),e.DNE(28,X,4,7,"ng-template",null,12,e.C5r)(30,W,4,7,"ng-template",null,13,e.C5r),e.j41(32,"nz-col",26),e.nrm(33,"nz-statistic",33),e.nI1(34,"number"),e.DNE(35,k,2,3,"ng-template",null,1,e.C5r),e.k0s(),e.j41(37,"nz-col",26),e.nrm(38,"nz-statistic",34),e.nI1(39,"number"),e.k0s(),e.DNE(40,et,2,3,"ng-template",null,14,e.C5r),e.k0s(),e.bVm()),2&a){const r=l.ngIf,C=e.sdS(9),S=e.sdS(11),L=e.sdS(19),J=e.sdS(21),Q=e.sdS(29),Z=e.sdS(31),q=e.sdS(36),tt=e.sdS(41);e.R7$(),e.Y8G("nzGutter",e.lJ4(41,A)),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzValue",e.bMT(4,25,r.submittedEvidenceItems))("nzPrefix",C),e.R7$(2),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzValue",e.bMT(7,27,r.acceptedEvidenceItems))("nzPrefix",S),e.R7$(6),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzValue",e.bMT(14,29,r.submittedAssertions))("nzPrefix",L),e.R7$(2),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzValue",e.bMT(17,31,r.acceptedAssertions))("nzPrefix",J),e.R7$(6),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzValue",e.bMT(24,33,r.revisions))("nzPrefix",Q),e.R7$(2),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzValue",e.bMT(27,35,r.appliedRevisions))("nzPrefix",Z),e.R7$(6),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzValue",e.bMT(34,37,r.comments))("nzPrefix",q),e.R7$(4),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzValue",e.bMT(39,39,r.suggestedSources))("nzPrefix",tt)}}function it(a,l){if(1&a&&(e.j41(0,"nz-card",23),e.DNE(1,o,2,1,"ng-template",null,7,e.C5r)(3,nt,42,42,"ng-container",18),e.nI1(4,"ngrxPush"),e.k0s()),2&a){const r=e.sdS(2),C=e.XpG();e.Y8G("nzBorderless",!0)("nzExtra",C.cvcSubGroupStats?r:void 0),e.R7$(3),e.Y8G("ngIf",e.bMT(4,3,C.stat$))}}let at=(()=>{class a{get showSubGroupStats(){return this.showSubGroupStat$.value}set showSubGroupStats(r){this.updateModel(r)}constructor(){this.stat$=new t.t(void 0),this.showSubGroupStat$=new t.t(!0)}updateModel(r){!0===r&&void 0!==this.cvcSubGroupStats?(this.showSubGroupStat$.next(!0),this.stat$.next(this.cvcSubGroupStats)):(this.showSubGroupStat$.next(!1),this.stat$.next(this.cvcStats))}ngOnInit(){this.updateModel(void 0!==this.cvcSubGroupStats)}static#t=this.\u0275fac=function(C){return new(C||a)};static#e=this.\u0275cmp=e.VBU({type:a,selectors:[["cvc-stats-card"]],inputs:{cvcStats:"cvcStats",cvcRanks:"cvcRanks",cvcSubGroupStats:"cvcSubGroupStats"},ngContentSelectors:m,decls:18,vars:21,consts:[["rankedActivity",""],["commentIcon",""],["revisionIcon",""],["submissionsIcon",""],["moderationIcon",""],["activityDetails",""],["activityTitle",""],["subGroupsSwitch",""],["evidenceSubmitPrefix",""],["evidenceAcceptPrefix",""],["assertionSubmitPrefix",""],["assertionAcceptPrefix",""],["revisionSubmitPrefix",""],["revisionAcceptPrefix",""],["sourceIcon",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzBlock","","nzSize","small","nz-popover","","nzPopoverTrigger","hover",2,"margin-top","8px",3,"nzPopoverContent"],[3,"nzTitle","nzValue","nzPrefix"],[4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-comment",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-editor",3,"nzTwotoneColor"],["nzSize","small","nzTitle","Activity Details",3,"nzBorderless","nzExtra"],["nzSize","small",3,"ngModelChange","ngModel"],[2,"max-width","25em",3,"nzGutter"],[3,"nzSpan"],["nzTitle","Evidence Submitted",3,"nzValue","nzPrefix"],["nzTitle","Evidence Accepted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Submitted",3,"nzValue","nzPrefix"],["nzTitle","Assertions Accepted",3,"nzValue","nzPrefix"],["nzTitle","Revisions Suggested",3,"nzValue","nzPrefix"],["nzTitle","Revisions Applied",3,"nzValue","nzPrefix"],["nzTitle","Comments",3,"nzValue","nzPrefix"],["nzTitle","Sources Suggested",3,"nzValue","nzPrefix"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","outline","nzType","plus"],["nz-icon","","nzTheme","outline","nzType","check"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"]],template:function(C,S){if(1&C&&(e.NAR(m),e.DNE(0,j,4,5,"ng-template",null,0,e.C5r)(2,w,1,0,"ng-content",15)(3,B,2,3,"ng-template",null,1,e.C5r)(5,Y,1,0,"ng-content",15)(6,U,2,3,"ng-template",null,2,e.C5r)(8,s,1,0,"ng-content",15)(9,g,2,3,"ng-template",null,3,e.C5r)(11,n,1,0,"ng-content",15)(12,p,2,3,"ng-template",null,4,e.C5r),e.j41(14,"button",16),e.EFF(15," Activity Details\n"),e.k0s(),e.DNE(16,it,5,5,"ng-template",null,5,e.C5r)),2&C){const L=e.sdS(1),J=e.sdS(4),Q=e.sdS(7),Z=e.sdS(10),q=e.sdS(13),tt=e.sdS(17);e.R7$(2),e.Y8G("ngTemplateOutlet",L)("ngTemplateOutletContext",e.l_i(9,O,S.cvcRanks.commentsRank,J)),e.R7$(3),e.Y8G("ngTemplateOutlet",L)("ngTemplateOutletContext",e.l_i(12,u,S.cvcRanks.revisionsRank,Q)),e.R7$(3),e.Y8G("ngTemplateOutlet",L)("ngTemplateOutletContext",e.l_i(15,v,S.cvcRanks.submissionsRank,Z)),e.R7$(3),e.Y8G("ngTemplateOutlet",L)("ngTemplateOutletContext",e.l_i(18,h,S.cvcRanks.moderationRank,q)),e.R7$(3),e.Y8G("nzPopoverContent",tt)}},dependencies:[R.bT,R.T3,T.BC,T.vS,M.aO,d.c,_.p,f.cK,b.IV,y.Dn,E.Uq,E.e,$.L_,G.u,R.QX,I.L9,V,P.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-statistic .ant-statistic-title{padding-top:.25em}[_nghost-%COMP%] nz-statistic .ant-statistic-content{border-bottom:1px solid #f0f0f0;padding-bottom:.15em} .ant-popover .ant-popover-inner-content{padding:0}h5[_ngcontent-%COMP%]{font-weight:400}"],changeDetection:0})}return a})()},6208:(F,x,i)=>{i.d(x,{K:()=>V});var t=i(177),e=i(9417),R=i(4917),T=i(3146),M=i(513),d=i(5703),_=i(7529),f=i(5103),b=i(1236),y=i(6677),E=i(7481),$=i(5154),G=i(7391),I=i(3953);let V=(()=>{class P{static#t=this.\u0275fac=function(u){return new(u||P)};static#e=this.\u0275mod=I.$C({type:P});static#n=this.\u0275inj=I.G2t({imports:[t.MD,e.YN,M.Zw,d.Ti,y.Fw,G.kT,f.Y3,_.f3,T.W2,$.Qt,b.MC,E.$,R.i]})}return P})()},6911:(F,x,i)=>{i.d(x,{U:()=>U});var t=i(3953),e=i(177),R=i(5699),T=i(1236),M=i(7855),d=i(9563),_=i(9861),f=i(6440),b=i(3245),y=i(3100),E=i(6073),$=i(959);const G=s=>({"matched-tag":s}),I=(s,g)=>({tagType:s,tag:g});function V(s,g){if(1&s&&(t.j41(0,"div",4),t.eu8(1,6),t.k0s()),2&s){const n=g.$implicit,p=t.XpG(),o=t.sdS(7);t.Y8G("ngClass",t.eq3(3,G,p.matchingText&&n.matchText.toLowerCase().includes(p.matchingText))),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.l_i(5,I,p.tagType,n))}}function P(s,g){if(1&s&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&s){const n=t.XpG(2);t.R7$(),t.SpI(" ",n.matchedHiddenCount," of ")}}function m(s,g){if(1&s&&(t.j41(0,"nz-tag",7),t.EFF(1," +"),t.DNE(2,P,2,1,"span",8),t.EFF(3),t.k0s()),2&s){const n=t.XpG(),p=t.sdS(5);t.Y8G("nzPopoverContent",p),t.R7$(2),t.Y8G("ngIf",n.matchedHiddenCount>0),t.R7$(),t.SpI("",n.hiddenCount," ")}}function O(s,g){if(1&s&&(t.j41(0,"div",4),t.qex(1,10),t.eu8(2,6),t.bVm(),t.k0s()),2&s){const n=g.$implicit,p=t.XpG(2),o=t.sdS(7);t.Y8G("ngClass",t.eq3(4,G,p.matchingText&&n.matchText.toLowerCase().includes(p.matchingText))),t.R7$(),t.Y8G("ngSwitch",p.tagType),t.R7$(),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.l_i(6,I,p.tagType,n))}}function u(s,g){if(1&s&&(t.j41(0,"div",9)(1,"cvc-tag-list",2),t.DNE(2,O,3,9,"div",3),t.k0s()()),2&s){const n=t.XpG();t.R7$(2),t.Y8G("ngForOf",n.hiddenTags)}}function v(s,g){if(1&s&&(t.qex(0),t.nrm(1,"cvc-therapy-tag",12),t.bVm()),2&s){const n=t.XpG().tag;t.R7$(),t.Y8G("therapy",n)("truncateLongName",!0)}}function h(s,g){if(1&s&&(t.qex(0),t.nrm(1,"cvc-disease-tag",13),t.bVm()),2&s){const n=t.XpG().tag;t.R7$(),t.Y8G("disease",n)("truncateLongName",!0)}}function A(s,g){if(1&s&&(t.qex(0),t.nrm(1,"cvc-feature-tag",14),t.bVm()),2&s){const n=t.XpG().tag;t.R7$(),t.Y8G("feature",n)("truncateLongName",!0)}}function H(s,g){if(1&s&&(t.qex(0),t.nrm(1,"cvc-organization-tag",15),t.bVm()),2&s){const n=t.XpG().tag;t.R7$(),t.Y8G("org",n)}}function N(s,g){if(1&s&&(t.qex(0),t.nrm(1,"cvc-variant-tag",16),t.bVm()),2&s){const n=t.XpG().tag;t.R7$(),t.Y8G("variant",n)}}function j(s,g){if(1&s&&(t.qex(0),t.nrm(1,"cvc-variant-type-tag",17),t.bVm()),2&s){const n=t.XpG().tag;t.R7$(),t.Y8G("variantType",n)}}function w(s,g){if(1&s&&(t.qex(0),t.nrm(1,"cvc-feature-variant-tag",18),t.bVm()),2&s){const n=t.XpG().tag;t.R7$(),t.Y8G("truncateLongName",!0)("variant",n)}}function B(s,g){1&s&&(t.qex(0,10),t.DNE(1,v,2,2,"ng-container",11)(2,h,2,2,"ng-container",11)(3,A,2,2,"ng-container",11)(4,H,2,1,"ng-container",11)(5,N,2,1,"ng-container",11)(6,j,2,1,"ng-container",11)(7,w,2,2,"ng-container",11),t.bVm()),2&s&&(t.Y8G("ngSwitch",g.tagType),t.R7$(),t.Y8G("ngSwitchCase","therapy"),t.R7$(),t.Y8G("ngSwitchCase","disease"),t.R7$(),t.Y8G("ngSwitchCase","feature"),t.R7$(),t.Y8G("ngSwitchCase","organization"),t.R7$(),t.Y8G("ngSwitchCase","variant"),t.R7$(),t.Y8G("ngSwitchCase","variant-type"),t.R7$(),t.Y8G("ngSwitchCase","variant-feature"))}function Y(s){return s?.map(g=>g.matchText?g:{...g,matchText:g.name})}let U=(()=>{class s{constructor(n){this.cdr=n,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(n){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.matchedHiddenCount=0,this.hiddenTags){let n=this.matchingText.toLowerCase();this.hiddenTags.forEach(p=>{p.matchText.toLowerCase().includes(n)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}static#t=this.\u0275fac=function(p){return new(p||s)(t.rXU(t.gRc))};static#e=this.\u0275cmp=t.VBU({type:s,selectors:[["cvc-tag-overflow"]],inputs:{tags:[2,"tags","tags",Y],maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[t.GFd,t.OA$],decls:8,vars:5,consts:[["additionalTagPopover",""],["tagTemplate",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"therapy","truncateLongName"],[3,"disease","truncateLongName"],[3,"feature","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"],[3,"truncateLongName","variant"]],template:function(p,o){1&p&&(t.j41(0,"cvc-tag-list",2),t.DNE(1,V,2,8,"div",3),t.j41(2,"div",4),t.DNE(3,m,4,3,"nz-tag",5),t.k0s(),t.DNE(4,u,3,1,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(6,B,8,8,"ng-template",null,1,t.C5r)),2&p&&(t.R7$(),t.Y8G("ngForOf",o.displayedTags),t.R7$(),t.Y8G("ngClass",t.eq3(3,G,o.matchedHiddenCount>0)),t.R7$(),t.Y8G("ngIf",o.hiddenCount&&o.hiddenCount>0))},dependencies:[e.YU,e.Sq,e.bT,e.T3,e.ux,e.e1,R.s,T.L_,M.M,d.R,_.Y,f.r,b._,y.V,E.h,$.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return s})()},7793:(F,x,i)=>{i.d(x,{s:()=>R});var t=i(9145),e=i(3953);let R=(()=>{class T{transform(d,_="contributor-card",f=0){return"contributor-card"===_?this.contributorVerbiage(d,f):"action-filter"===_?this.actionFilterVerbiage(d):this.eventFeedVerbiage(d)}eventFeedVerbiage(d){switch(d){case t.H1z.Commented:return"added comment";case t.H1z.RevisionSuggested:return"suggested revision";case t.H1z.RevisionAccepted:return"accepted revision";case t.H1z.RevisionRejected:return"rejected revision";case t.H1z.RevisionSuperseded:return"closed revision";case t.H1z.Flagged:return"opened new flag";case t.H1z.FlagResolved:return"resolved flag";case t.H1z.AssertionSubmitted:return"submitted assertion";case t.H1z.AssertionAccepted:return"accepted assertion";case t.H1z.AssertionRejected:return"rejected assertion";case t.H1z.Submitted:return"submitted evidence item";case t.H1z.Accepted:return"accepted evidence item";case t.H1z.Rejected:return"rejected evidence item";case t.H1z.PublicationSuggested:return"created source suggestion";case t.H1z.CuratedSourceSuggestion:return"finished curating source suggestion";case t.H1z.RejectedSourceSuggestion:return"rejected source suggestion";case t.H1z.RequeuedSourceSuggestion:return"requeued source suggestion";case t.H1z.Reverted:return"reverted evidence item";case t.H1z.AssertionReverted:return"reverted assertion";case t.H1z.DeprecatedVariant:return"deprecated variant";case t.H1z.DeprecatedFeature:return"deprecated feature";case t.H1z.DeprecatedMolecularProfile:return"deprecated molecular profile";case t.H1z.VariantCreated:return"created variant";case t.H1z.FeatureCreated:return"created feature";case t.H1z.ComplexMolecularProfileCreated:return"created complex molecular profile";case t.H1z.CommentDeleted:return"deleted comment";default:return d}}actionFilterVerbiage(d){switch(d){case t.H1z.Commented:return"commented";case t.H1z.RevisionSuggested:return"revision suggested";case t.H1z.RevisionAccepted:return"revision accepted";case t.H1z.RevisionRejected:return"revision rejected";case t.H1z.RevisionSuperseded:return"revision closed";case t.H1z.Flagged:return"flag opened";case t.H1z.FlagResolved:return"flag resolved";case t.H1z.AssertionSubmitted:return"assertion submitted";case t.H1z.AssertionAccepted:return"assertion accepted";case t.H1z.AssertionRejected:return"assertion rejected";case t.H1z.Submitted:return"evidence item submitted";case t.H1z.Accepted:return"evidence item accepted";case t.H1z.Rejected:return"evidence item rejected";case t.H1z.PublicationSuggested:return"source suggestion created";case t.H1z.CuratedSourceSuggestion:return"source suggestion curated";case t.H1z.RejectedSourceSuggestion:return"source suggestion rejected";case t.H1z.RequeuedSourceSuggestion:return"source suggestion requeued";case t.H1z.Reverted:return"evidence item reverted";case t.H1z.AssertionReverted:return"assertion reverted";case t.H1z.DeprecatedVariant:return"variant deprecated";case t.H1z.DeprecatedMolecularProfile:return"molecular profile deprecated";case t.H1z.VariantCreated:return"variant created";case t.H1z.ComplexMolecularProfileCreated:return"complex molecular profile created";case t.H1z.CommentDeleted:return"comment deleted";default:return d}}contributorVerbiage(d,_){switch(d){case t.H1z.Commented:return 1==_?"left a comment on this entity":`left ${_} comments on this entity`;case t.H1z.RevisionSuggested:return 1==_?"suggested a revision to this entity":`suggested ${_} revisions on this entity`;case t.H1z.RevisionAccepted:return 1==_?"accepted a revision to this entity":`accepted ${_} revisions on this entity`;case t.H1z.RevisionRejected:return 1==_?"rejected a revision to this entity":`rejected ${_} revisions on this entity`;case t.H1z.RevisionSuperseded:return 1==_?"closed a revision to this entity":`closed ${_} revisions on this entity`;case t.H1z.Flagged:return 1==_?"opened new flag on this entity":`opened ${_} new flags on this entity`;case t.H1z.FlagResolved:return 1==_?"resolved a flag on this entity":`resolved ${_} flags on this entity`;case t.H1z.AssertionSubmitted:return"submitted this assertion";case t.H1z.AssertionAccepted:return"accepted this assertion";case t.H1z.AssertionRejected:return"rejected this assertion";case t.H1z.Submitted:return"submitted this evidence item";case t.H1z.Accepted:return"accepted this evidence item";case t.H1z.Rejected:return"rejected this evidence item";case t.H1z.PublicationSuggested:return"";case t.H1z.CuratedSourceSuggestion:return"finished curating this source suggestion";case t.H1z.RejectedSourceSuggestion:return"rejected this source suggestion";case t.H1z.RequeuedSourceSuggestion:return"requeued this source suggestion";case t.H1z.AssertionReverted:return"reverted this assertion";case t.H1z.Reverted:return"reverted this evidence item";case t.H1z.DeprecatedVariant:return"deprecated this variant";case t.H1z.DeprecatedMolecularProfile:return"deprecated this molecular profile";case t.H1z.DeprecatedFeature:return"deprecated this feature";case t.H1z.FeatureCreated:return"created this feature";case t.H1z.VariantCreated:return"created this variant";case t.H1z.ComplexMolecularProfileCreated:return"created this complex molecular profile";default:return d}}static#t=this.\u0275fac=function(_){return new(_||T)};static#e=this.\u0275pipe=e.EJ8({name:"eventVerbiage",type:T,pure:!0})}return T})()},6677:(F,x,i)=>{i.d(x,{IV:()=>Y,Fw:()=>g});var t=i(3953),e=i(1413),R=i(605),T=i(5203),M=i(317);let d=(()=>{class n{transform(o,c="HH:mm:ss"){let z=Number(o||0);return T.F7.reduce((D,[K,X])=>{if(-1!==D.indexOf(K)){const W=Math.floor(z/X);return z-=W*X,D.replace(new RegExp(`${K}+`,"g"),k=>(0,M.CF)(W.toString(),k.length,"0"))}return D},c)}static#t=this.\u0275fac=function(c){return new(c||n)};static#e=this.\u0275pipe=t.EJ8({name:"nzTimeRange",type:n,pure:!0,standalone:!0})}return n})(),_=(()=>{class n{static#t=this.\u0275fac=function(c){return new(c||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({})}return n})();var f=i(177),b=i(6977),y=i(7806),E=i(1912),$=i(8203),G=i(6860);const I=n=>({$implicit:n});function V(n,p){if(1&n&&t.eu8(0,3),2&n){const o=t.XpG();t.Y8G("ngTemplateOutlet",o.nzValueTemplate)("ngTemplateOutletContext",t.eq3(2,I,o.nzValue))}}function P(n,p){if(1&n&&(t.j41(0,"span",6),t.EFF(1),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.JRh(o.displayInt)}}function m(n,p){if(1&n&&(t.j41(0,"span",7),t.EFF(1),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.JRh(o.displayDecimal)}}function O(n,p){if(1&n&&(t.qex(0),t.DNE(1,P,2,1,"span",4)(2,m,2,1,"span",5),t.bVm()),2&n){const o=t.XpG();t.R7$(),t.Y8G("ngIf",o.displayInt),t.R7$(),t.Y8G("ngIf",o.displayDecimal)}}function u(n,p){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const o=t.XpG();t.R7$(),t.JRh(o.nzTitle)}}function v(n,p){1&n&&t.nrm(0,"nz-skeleton",2),2&n&&t.Y8G("nzParagraph",!1)}function h(n,p){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const o=t.XpG(3);t.R7$(),t.JRh(o.nzPrefix)}}function A(n,p){if(1&n&&(t.j41(0,"span",4),t.DNE(1,h,2,1,"ng-container",1),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",o.nzPrefix)}}function H(n,p){if(1&n&&(t.qex(0),t.EFF(1),t.bVm()),2&n){const o=t.XpG(3);t.R7$(),t.JRh(o.nzSuffix)}}function N(n,p){if(1&n&&(t.j41(0,"span",6),t.DNE(1,H,2,1,"ng-container",1),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",o.nzSuffix)}}function j(n,p){if(1&n&&(t.j41(0,"div",3),t.DNE(1,A,2,1,"span",4),t.nrm(2,"nz-statistic-number",5),t.DNE(3,N,2,1,"span",6),t.k0s()),2&n){const o=t.XpG();t.Y8G("ngStyle",o.nzValueStyle),t.R7$(),t.vxM(o.nzPrefix?1:-1),t.R7$(),t.Y8G("nzValue",o.nzValue)("nzValueTemplate",o.nzValueTemplate),t.R7$(),t.vxM(o.nzSuffix?3:-1)}}function w(n,p){if(1&n&&(t.EFF(0),t.nI1(1,"nzTimeRange")),2&n){const o=t.XpG();t.JRh(t.i5U(1,1,o.diff,o.nzFormat))}}let B=(()=>{class n{constructor(o){this.locale_id=o,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const o="number"==typeof this.nzValue?".":(0,f.a)(this.locale_id,f.gz.Decimal),c=String(this.nzValue),[z,D]=c.split(o);this.displayInt=z,this.displayDecimal=D?`${o}${D}`:""}static#t=this.\u0275fac=function(c){return new(c||n)(t.rXU(t.xe9))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],standalone:!0,features:[t.OA$,t.aNF],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(c,z){1&c&&(t.j41(0,"span",0),t.DNE(1,V,1,4,"ng-container",1)(2,O,3,2,"ng-container",2),t.k0s()),2&c&&(t.R7$(),t.Y8G("ngIf",z.nzValueTemplate),t.R7$(),t.Y8G("ngIf",!z.nzValueTemplate))},dependencies:[f.bT,f.T3],encapsulation:2,changeDetection:0})}return n})(),Y=(()=>{class n{constructor(o,c){this.cdr=o,this.directionality=c,this.nzValueStyle={},this.nzLoading=!1,this.dir="ltr",this.destroy$=new e.B}ngOnInit(){this.directionality.change?.pipe((0,b.Q)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(c){return new(c||n)(t.rXU(t.gRc),t.rXU($.dS,8))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["nz-statistic"]],hostAttrs:[1,"ant-statistic"],hostVars:2,hostBindings:function(c,z){2&c&&t.AVh("ant-statistic-rtl","rtl"===z.dir)},inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate",nzLoading:[2,"nzLoading","nzLoading",t.L39]},exportAs:["nzStatistic"],standalone:!0,features:[t.GFd,t.aNF],decls:4,vars:2,consts:[[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-skeleton",3,"nzParagraph"],[1,"ant-statistic-content",3,"ngStyle"],[1,"ant-statistic-content-prefix"],[3,"nzValue","nzValueTemplate"],[1,"ant-statistic-content-suffix"]],template:function(c,z){1&c&&(t.j41(0,"div",0),t.DNE(1,u,2,1,"ng-container",1),t.k0s(),t.DNE(2,v,1,1,"nz-skeleton",2)(3,j,4,5,"div",3)),2&c&&(t.R7$(),t.Y8G("nzStringTemplateOutlet",z.nzTitle),t.R7$(),t.vxM(z.nzLoading?2:3))},dependencies:[E.i3,E.Bi,B,y.C,y.m,f.B3],encapsulation:2,changeDetection:0})}return n})();const U=1e3/30;let s=(()=>{class n extends Y{constructor(o,c,z,D){super(o,D),this.ngZone=c,this.platform=z,this.nzFormat="HH:mm:ss",this.nzCountdownFinish=new t.bkB,this.target=0}ngOnChanges(o){o.nzValue&&(this.target=Number(o.nzValue.currentValue),o.nzValue.isFirstChange()||this.syncTimer())}ngOnInit(){super.ngOnInit(),this.syncTimer()}ngOnDestroy(){this.stopTimer()}syncTimer(){this.target>=Date.now()?this.startTimer():this.stopTimer()}startTimer(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.stopTimer(),this.updater_=(0,R.Y)(U).subscribe(()=>{this.updateValue(),this.cdr.detectChanges()})})}stopTimer(){this.updater_&&(this.updater_.unsubscribe(),this.updater_=null)}updateValue(){this.diff=Math.max(this.target-Date.now(),0),0===this.diff&&(this.stopTimer(),this.nzCountdownFinish.observers.length&&this.ngZone.run(()=>this.nzCountdownFinish.emit()))}static#t=this.\u0275fac=function(c){return new(c||n)(t.rXU(t.gRc),t.rXU(t.SKi),t.rXU(G.OD),t.rXU($.dS,8))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["nz-countdown"]],inputs:{nzFormat:"nzFormat"},outputs:{nzCountdownFinish:"nzCountdownFinish"},exportAs:["nzCountdown"],standalone:!0,features:[t.Vt3,t.OA$,t.aNF],decls:3,vars:6,consts:[["countDownTpl",""],[3,"nzValue","nzValueStyle","nzValueTemplate","nzTitle","nzPrefix","nzSuffix"]],template:function(c,z){if(1&c&&(t.nrm(0,"nz-statistic",1),t.DNE(1,w,2,4,"ng-template",null,0,t.C5r)),2&c){const D=t.sdS(2);t.Y8G("nzValue",z.diff)("nzValueStyle",z.nzValueStyle)("nzValueTemplate",z.nzValueTemplate||D)("nzTitle",z.nzTitle)("nzPrefix",z.nzPrefix)("nzSuffix",z.nzSuffix)}},dependencies:[Y,_,d],encapsulation:2,changeDetection:0})}return n})(),g=(()=>{class n{static#t=this.\u0275fac=function(c){return new(c||n)};static#e=this.\u0275mod=t.$C({type:n});static#n=this.\u0275inj=t.G2t({imports:[Y,s]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/4391.8685baf9f4ad861a.js b/server/public/4391.8685baf9f4ad861a.js new file mode 100644 index 000000000..fadc6896e --- /dev/null +++ b/server/public/4391.8685baf9f4ad861a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4391],{7316:(wn,Q,a)=>{a.r(Q),a.d(Q,{UsersDetailModule:()=>Jn});var f=a(177),V=a(4124),n=a(3062),v=a(1188),U=a(1532),x=a(7685),w=a(3357),S=a(513),j=a(5103),t=a(3953);let ot=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[f.MD,S.Zw,j.Y3]})}return i})();var y=a(2e3),M=a(8920),b=a(7529),k=a(4917),I=a(5703),at=a(6677),st=a(9448),F=a(2096),z=a(9417),E=a(3617),Y=a(8927),O=a(8492),rt=a(3190),L=a(2983),J=a(1997),$=a(1011);let ft=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[f.MD,z.YN,Y.PQ,z.X1,I.Ti,E.$,rt.Sw,S.Zw,L.V,J.DH,$.j,O.M]})}return i})();var ht=a(1232),zt=a(6208),Ct=a(4441);let bt=(()=>{class i{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(l,o){1&l&&t.nrm(0,"cvc-assertions-table",0),2&l&&t.Y8G("userId",o.userId)},dependencies:[Ct.z],styles:["[_nghost-%COMP%]{display:block}"]})}return i})();var h=a(9145),vt=a(8313);let Tt=(()=>{class i{constructor(e){this.route=e,this.feedScope={mode:h.Qt1.User,userId:+this.route.snapshot.params.userId}}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[[3,"cvcScope","cvcShowFilters"]],template:function(l,o){1&l&&t.nrm(0,"cvc-activity-feed",0),2&l&&t.Y8G("cvcScope",o.feedScope)("cvcShowFilters",!0)},dependencies:[vt.Y],styles:["[_nghost-%COMP%]{display:block}"]})}return i})();var yt=a(8199);let Mt=(()=>{class i{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(l,o){1&l&&t.nrm(0,"cvc-evidence-table",0),2&l&&t.Y8G("userId",o.userId)},dependencies:[yt.N],styles:["[_nghost-%COMP%]{display:block}"]})}return i})();var K=a(1226),X=a(9199),T=a(6354),B=a(5964),A=a(9172),lt=a(4222),Z=a(5154),G=a(6389),N=a(5930),q=a(2986),ct=a(7120),It=a(6903),H=a(9365),tt=a(1774),xt=a(7793),D=a(4493);const C=()=>[];function pt(i,p){if(1&i&&(t.j41(0,"nz-col"),t.nrm(1,"i",20),t.EFF(2),t.k0s()),2&i){const e=p.$implicit;t.R7$(),t.Y8G("nzType",e.iconName),t.R7$(),t.SpI(" ",e.displayName," ")}}function St(i,p){1&i&&(t.EFF(0),t.nI1(1,"eventVerbiage")),2&i&&t.SpI(" ",t.i5U(1,1,p.$implicit.id,"action-filter")," ")}function Rt(i,p){if(1&i&&(t.j41(0,"nz-col"),t.nrm(1,"i",20),t.nI1(2,"iconNameForSubscribableEntity"),t.EFF(3),t.k0s()),2&i){const e=p.$implicit;t.R7$(),t.Y8G("nzType",t.bMT(2,3,e.subjectWithCount.subject.__typename)),t.R7$(2),t.Lme(" ",e.subjectWithCount.subject.name," (",e.subjectWithCount.occuranceCount,") ")}}function Ut(i,p){if(1&i&&(t.j41(0,"nz-col"),t.EFF(1),t.k0s()),2&i){const e=p.$implicit;t.R7$(),t.SpI(" ",e.displayName," ")}}function Et(i,p){if(1&i&&(t.j41(0,"nz-col"),t.EFF(1),t.k0s()),2&i){const e=p.$implicit;t.R7$(),t.SpI(" ",e.name," ")}}function jt(i,p){if(1&i){const e=t.RV6();t.j41(0,"button",21),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.bulkMarkRead())}),t.nrm(1,"i",22),t.EFF(2,"Mark as read "),t.k0s(),t.j41(3,"button",21),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.bulkMarkUnread())}),t.nrm(4,"i",22),t.EFF(5,"Mark as unread "),t.k0s(),t.j41(6,"button",21),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.bulkUnsubscribe())}),t.nrm(7,"i",23),t.EFF(8,"Unsubscribe "),t.k0s(),t.EFF(9," Check all "),t.j41(10,"label",24),t.mxI("ngModelChange",function(o){t.eBV(e);const c=t.XpG(2);return t.DH7(c.allChecked,o)||(c.allChecked=o),t.Njj(o)}),t.bIt("nzCheckedChange",function(o){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onCheckAllCheckBoxClicked(o))}),t.k0s()}if(2&i){const e=t.XpG(2);t.Y8G("disabled",!e.bulkMarkEnabled),t.R7$(3),t.Y8G("disabled",!e.bulkMarkEnabled),t.R7$(3),t.Y8G("disabled",!e.bulkMarkEnabled),t.R7$(4),t.R50("ngModel",e.allChecked),t.Y8G("nzIndeterminate",e.someChecked)}}function kt(i,p){if(1&i&&t.nrm(0,"i",32),2&i){const e=t.XpG().$implicit;t.Y8G("nzType","SUBSCRIPTION"===e.key.type?"book":"notification")("nzTheme",e.key.seen?"outline":"twotone")}}function Pt(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",33),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,c=t.XpG(3);return t.Njj(c.markAsUnread(o.key.id))}),t.nrm(2,"i",34),t.k0s(),t.bVm()}}function Ft(i,p){if(1&i){const e=t.RV6();t.j41(0,"button",35),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,c=t.XpG(3);return t.Njj(c.markAsRead(o.key.id))}),t.nrm(1,"i",22),t.k0s()}}function $t(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",36),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,c=t.XpG(3);return t.Njj(c.unsubscribe(o.key.subscription.subscribable.id,o.key.subscription.subscribable.__typename))}),t.nrm(2,"i",23),t.k0s(),t.bVm()}if(2&i){const e=t.XpG().$implicit;t.R7$(),t.Mz_("nzTooltipTitle","You received this notification because you are subscribed to ",e.key.subscription.subscribable.name,". Click to unsubscribe.")}}function Gt(i,p){1&i&&(t.j41(0,"button",37),t.nrm(1,"i",23),t.k0s())}function Nt(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"nz-timeline-item",26),t.DNE(2,kt,1,2,"ng-template",null,2,t.C5r),t.j41(4,"nz-row")(5,"nz-col",27),t.nrm(6,"cvc-event-timeline-item",28),t.k0s(),t.j41(7,"nz-col",29),t.DNE(8,Pt,3,0,"ng-container",30)(9,Ft,2,0,"ng-template",null,3,t.C5r),t.k0s(),t.j41(11,"nz-col",29),t.DNE(12,$t,3,2,"ng-container",30)(13,Gt,2,0,"ng-template",null,4,t.C5r),t.j41(15,"label",31),t.mxI("ngModelChange",function(o){const c=t.eBV(e).$implicit;return t.DH7(c.value.checked,o)||(c.value.checked=o),t.Njj(o)}),t.bIt("nzCheckedChange",function(o){const c=t.eBV(e).$implicit,g=t.XpG(3);return t.Njj(g.onNotificationCheckBoxClicked(c.key.id,o))}),t.k0s()()()(),t.bVm()}if(2&i){const e=p.$implicit,l=t.sdS(3),o=t.sdS(10),c=t.sdS(14);t.R7$(),t.Y8G("nzDot",l)("nzColor",e.key.seen?"gray":"blue"),t.R7$(5),t.Y8G("event",e.key.event),t.R7$(2),t.Y8G("ngIf",e.key.seen)("ngIfElse",o),t.R7$(4),t.Y8G("ngIf",e.key.subscription)("ngIfElse",c),t.R7$(3),t.R50("ngModel",e.value.checked)}}function Ot(i,p){if(1&i&&(t.j41(0,"nz-timeline"),t.DNE(1,Nt,16,8,"ng-container",25),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG().ngIf;t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e))}}function Dt(i,p){if(1&i){const e=t.RV6();t.j41(0,"div",39)(1,"button",40),t.bIt("click",function(){t.eBV(e);const o=t.XpG().ngIf,c=t.XpG(2);return t.Njj(c.fetchMore(o.endCursor))}),t.EFF(2," Load More "),t.k0s()()}}function Vt(i,p){if(1&i&&(t.qex(0),t.DNE(1,Dt,3,0,"div",38),t.bVm()),2&i){const e=p.ngIf;t.R7$(),t.Y8G("ngIf",e.hasNextPage&&e.endCursor)}}function wt(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"nz-row",7)(2,"nz-col",8)(3,"nz-row")(4,"nz-button-group",9)(5,"button",10),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.setIncludeRead(!1))}),t.EFF(6," Unread "),t.k0s(),t.j41(7,"button",10),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.setIncludeRead(!0))}),t.EFF(8," All "),t.k0s()()(),t.j41(9,"nz-row")(10,"nz-col",11)(11,"cvc-participant-list",12),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onNotificationReasonSelected(o))}),t.DNE(12,pt,3,2,"ng-template",null,0,t.C5r),t.k0s(),t.j41(14,"cvc-participant-list",13),t.nI1(15,"ngrxPush"),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onActionSelected(o))}),t.DNE(16,St,2,4,"ng-template",null,0,t.C5r),t.k0s(),t.j41(18,"cvc-participant-list",14),t.nI1(19,"ngrxPush"),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onNotificationSubjectSelected(o))}),t.DNE(20,Rt,4,5,"ng-template",null,0,t.C5r),t.k0s(),t.j41(22,"cvc-participant-list",15),t.nI1(23,"ngrxPush"),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onOriginatingUserSelected(o))}),t.DNE(24,Ut,2,1,"ng-template",null,0,t.C5r),t.k0s(),t.j41(26,"cvc-participant-list",16),t.nI1(27,"ngrxPush"),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onOrganizationSelected(o))}),t.DNE(28,Et,2,1,"ng-template",null,0,t.C5r),t.k0s()()()(),t.j41(30,"nz-col",17)(31,"nz-card",18),t.DNE(32,jt,11,5,"ng-template",null,1,t.C5r),t.j41(34,"nz-row",7)(35,"nz-col",19),t.DNE(36,Ot,3,3,"nz-timeline",6)(37,Vt,2,1,"ng-container",6),t.nI1(38,"ngrxPush"),t.k0s()()()()(),t.bVm()}if(2&i){const e=p.ngIf,l=t.sdS(33),o=t.XpG();t.R7$(),t.Y8G("nzGutter",25),t.R7$(4),t.Y8G("nzType",o.includeReadInput?"default":"primary"),t.R7$(2),t.Y8G("nzType",o.includeReadInput?"primary":"default"),t.R7$(4),t.Y8G("participantList",o.notificationTypes),t.R7$(3),t.Y8G("participantList",t.bMT(15,12,o.actions$)||t.lJ4(22,C)),t.R7$(4),t.Y8G("participantList",t.bMT(19,14,o.notificationSubjects$)||t.lJ4(23,C)),t.R7$(4),t.Y8G("participantList",t.bMT(23,16,o.originatingUsers$)||t.lJ4(24,C)),t.R7$(4),t.Y8G("participantList",t.bMT(27,18,o.organizations$)||t.lJ4(25,C)),t.R7$(5),t.Y8G("nzExtra",l),t.R7$(3),t.Y8G("nzGutter",16),t.R7$(2),t.Y8G("ngIf",e.size>0),t.R7$(),t.Y8G("ngIf",t.bMT(38,20,o.pageInfo$))}}let Yt=(()=>{class i{constructor(e,l,o,c,g){this.route=e,this.gql=l,this.networkErrorService=o,this.updateNotificationStatusMuation=c,this.unsubscribeMutation=g,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:h.GXf.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:h.GXf.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new K.E(o),this.unsubscribeMutator=new K.E(o)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.connection$=this.results$.pipe((0,T.T)(e=>e.data?.notifications),(0,B.p)(X.kP)),this.pageInfo$=this.connection$.pipe((0,T.T)(e=>e.pageInfo),(0,B.p)(X.kP)),this.notificationStateObservable$=this.results$.pipe((0,T.T)(e=>e.data),(0,B.p)(X.kP),(0,T.T)(({notifications:e})=>{let l=new Map;return e.edges.forEach(o=>{if(o.node){let c={checked:!1};l.set(o.node,c),this.notificationState.set(o.node,c)}}),l})),this.notificationSubjects$=this.results$.pipe((0,T.T)(e=>e.data),(0,B.p)(X.kP),(0,T.T)(({notifications:e})=>e.notificationSubjects.map(l=>({id:`${l.subject?.__typename}:${l.subject?.id}`,subjectWithCount:l})))),this.originatingUsers$=this.results$.pipe((0,T.T)(({data:e})=>e.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,T.T)(({data:e})=>e.notifications.eventTypes.map(l=>({id:l})))),this.organizations$=this.results$.pipe((0,T.T)(({data:e})=>e.notifications.organizations)),this.isLoading$=this.results$.pipe((0,T.T)(({loading:e})=>e),(0,A.Z)(!0))}fetchMore(e){this.queryRef.fetchMore({variables:{after:e}})}setIncludeRead(e){this.includeReadInput=e,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(e){this.queryRef.refetch({notificationReason:e?e.type:void 0})}onNotificationSubjectSelected(e){let l;if(void 0!==e){let o=e.subjectWithCount.subject?.__typename;l={id:e.subjectWithCount.subject.id,entityType:h.V9U[o]}}this.queryRef.refetch({originatingObject:l})}onOriginatingUserSelected(e){this.queryRef.refetch({originatingUserId:e?.id})}onActionSelected(e){this.queryRef.refetch({eventType:e?e.id:void 0})}onOrganizationSelected(e){this.queryRef.refetch({organizationId:e?.id})}markAsRead(e){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[e],newStatus:h.RJ$.Read}})}markAsUnread(e){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[e],newStatus:h.RJ$.Unread}})}unsubscribe(e,l){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:e,entityType:h.V9U[l]}]}})}onNotificationCheckBoxClicked(e,l){let o=Array.from(this.notificationState.keys()).find(c=>c.id===e);if(o){let c=this.notificationState.get(o);c&&(c.checked=l)}l?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(c=>c.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(c=>c.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(c=>!c.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(e){e?this.checkAll():this.uncheckAll()}getCheckedIds(){let e=[];return this.notificationState.forEach((l,o)=>{l.checked&&e.push(o.id)}),e}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((e,l)=>{e.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((e,l)=>{e.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.RJ$.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.RJ$.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let e=[];this.notificationState.forEach((l,o)=>{l.checked&&o.subscription&&e.push({id:o.subscription.subscribable.id,entityType:h.V9U[o.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:e}}).submitSuccess$.subscribe(l=>{l&&this.queryRef.refetch()}),this.uncheckAll()}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX),t.rXU(h.mDT),t.rXU(lt.N),t.rXU(h.dbG),t.rXU(h.ytN))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-notifications"]],decls:4,vars:6,consts:[["itemTemplate",""],["bulkOperations",""],["timelineDotTemplate",""],["unread",""],["noSubscriptionButton",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzGutter"],["nzSpan","4"],["nzSize","small"],["nz-button","","nzShape","round",3,"click","nzType"],["nzSpan","24"],["listTitle","Notification Reason",3,"participantSelectedEvent","participantList"],["listTitle","Action",3,"participantSelectedEvent","participantList"],["listTitle","Subject",3,"participantSelectedEvent","participantList"],["listTitle","User",3,"participantSelectedEvent","participantList"],["listTitle","Organization",3,"participantSelectedEvent","participantList"],["nzSpan","20"],["nzTitle","Notifications","id","card-content",3,"nzExtra"],["nzSpan","24",1,"timeline"],["nz-icon","",3,"nzType"],["nz-button","","nzSize","small",3,"click","disabled"],["nz-icon","","nzType","check"],["nz-icon","","nzType","bell"],["nz-checkbox","",3,"ngModelChange","nzCheckedChange","ngModel","nzIndeterminate"],[4,"ngFor","ngForOf"],[3,"nzDot","nzColor"],["nzFlex","auto"],[3,"event"],["nzFlex","50px"],[4,"ngIf","ngIfElse"],["nz-checkbox","",3,"ngModelChange","nzCheckedChange","ngModel"],["nz-icon","",1,"item-icon",3,"nzType","nzTheme"],["nz-tooltip","","nzTooltipTitle","Mark as unread.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-icon","","nzType","undo"],["nz-tooltip","","nzTooltipTitle","Mark as read.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-tooltip","","nz-button","","nzType","default","nzShape","circle",3,"click","nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","You are no longer subscribed to the entity that triggered this notification.","nz-button","","nzType","default","nzShape","circle","disabled",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"]],template:function(l,o){1&l&&(t.j41(0,"nz-spin",5),t.nI1(1,"ngrxPush"),t.DNE(2,wt,39,26,"ng-container",6),t.nI1(3,"async"),t.k0s()),2&l&&(t.Y8G("nzSpinning",t.bMT(1,2,o.isLoading$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,4,o.notificationStateObservable$)))},dependencies:[f.Sq,f.bT,z.BC,z.vS,Z.LH,L.a,b.Uq,b.e,S.aO,S.dn,G.c,N.p,I.cK,j.Dn,q.$g,ct.SO,ct.XJ,It.O,H.T,f.Jj,f.lG,tt.L9,xt.s,D.g],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}.read-notification[_ngcontent-%COMP%]{background-color:gray}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]})}return i})();var Lt=a(3340);let Xt=(()=>{class i{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(l,o){1&l&&t.nrm(0,"cvc-source-suggestions-table",0),2&l&&t.Y8G("submitterId",o.userId)},dependencies:[Lt.E],styles:["[_nghost-%COMP%]{display:block}"]})}return i})();var Bt=a(1635),dt=a(4608),nt=a(4412),mt=a(9894),At=a(1305),gt=a(7391),ut=a(1236),Ht=a(6911),Wt=a(1202),R=a(5741),Qt=a(1413),et=a(6977),it=a(9449);function Jt(i,p){1&i&&t.nrm(0,"nz-alert",19)}function Kt(i,p){if(1&i&&(t.j41(0,"nz-form-item"),t.nrm(1,"cvc-form-errors-alert",20),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("errors",e.errorMessages)}}function Zt(i,p){if(1&i&&t.nrm(0,"nz-option",21),2&i){const e=p.$implicit;t.Y8G("nzLabel",e.name)("nzValue",e.id)}}let Dn=(()=>{class i{constructor(e,l,o){this.updateProfileGql=e,this.profileUpdatedEvent=new t.bkB,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Qt.B,this.updateProfileMutator=new K.E(o),this.countries$=l.fetch().pipe((0,T.T)(({data:c})=>c.countries))}ngOnInit(){if(!this.user)throw new Error("Must pass a user into the Profile Update Form");this.setInitialFormFields()}updateProfile(){if(this.username&&this.email){this.errorMessages=[];let e={username:this.username,email:this.email,name:(0,R.q2)(this.name),areaOfExpertise:(0,R.pz)(this.areaOfExpertise),orcid:(0,R.q2)(this.orcid),url:(0,R.q2)(this.url),bio:(0,R.q2)(this.bio),countryId:(0,R.pz)(this.countryId),twitterHandle:(0,R.q2)(this.twitterHandle),facebookProfile:(0,R.q2)(this.facebookProfile),linkedinProfile:(0,R.q2)(this.linkedinProfile)},l=this.updateProfileMutator.mutate(this.updateProfileGql,{input:e});l.submitSuccess$.pipe((0,et.Q)(this.destroy$)).subscribe(o=>{o&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),l.submitError$.pipe((0,et.Q)(this.destroy$)).subscribe(o=>{o&&(this.errorMessages=o,this.success=!1)}),l.isSubmitting$.pipe((0,et.Q)(this.destroy$)).subscribe(o=>{this.loading=o})}}setInitialFormFields(){this.name=this.user.name,this.username=this.user.username,this.email=this.user.email,this.areaOfExpertise=this.user.areaOfExpertise,this.orcid=this.user.orcid,this.url=this.user.url,this.bio=this.user.bio,this.twitterHandle=this.user.twitterHandle,this.facebookProfile=this.user.facebookProfile,this.linkedinProfile=this.user.linkedinProfile,this.countryId=this.user.country?.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(h.iyz),t.rXU(h.jaV),t.rXU(lt.N))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:60,vars:18,consts:[["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],["nzRequired",""],["nz-input","",2,"width","100%",3,"ngModelChange","ngModel"],["nz-input","","rows","5",2,"width","100%",3,"ngModelChange","ngModel"],["nzAllowClear","","nzShowSearch","",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzAllowClear","",3,"ngModelChange","ngModel"],["nzLabel","Patient Advocate","nzValue","PATIENT_ADVOCATE"],["nzLabel","Clinical Scientist","nzValue","CLINICAL_SCIENTIST"],["nzLabel","Research Scientist","nzValue","RESEARCH_SCIENTIST"],["nzAddOnBefore","https://orcid.org/"],["nz-input","","placeholder","0000-0000-0000-0000",2,"width","100%",3,"ngModelChange","ngModel"],["nzAddOnBefore","https://twitter.com/"],["nz-input","","placeholder","username",2,"width","100%",3,"ngModelChange","ngModel"],["nzAddOnBefore","https://www.facebook.com/"],["nzAddOnBefore","https://www.linkedin.com/in/"],["type","submit","nz-button","","nzType","primary","nzSize","small",2,"width","100%",3,"click","disabled"],["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable",""],[3,"errors"],[3,"nzLabel","nzValue"]],template:function(l,o){1&l&&(t.j41(0,"nz-card"),t.DNE(1,Jt,1,0,"nz-alert",0)(2,Kt,2,1,"nz-form-item",1),t.j41(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-form-label",3),t.EFF(6,"Username"),t.k0s(),t.j41(7,"input",4),t.mxI("ngModelChange",function(g){return t.DH7(o.username,g)||(o.username=g),g}),t.k0s()(),t.j41(8,"nz-form-item")(9,"nz-form-label"),t.EFF(10,"Name"),t.k0s(),t.j41(11,"input",4),t.mxI("ngModelChange",function(g){return t.DH7(o.name,g)||(o.name=g),g}),t.k0s()(),t.j41(12,"nz-form-item")(13,"nz-form-label",3),t.EFF(14,"Email"),t.k0s(),t.j41(15,"input",4),t.mxI("ngModelChange",function(g){return t.DH7(o.email,g)||(o.email=g),g}),t.k0s()(),t.j41(16,"nz-form-item")(17,"nz-form-label"),t.EFF(18,"User Bio"),t.k0s(),t.j41(19,"textarea",5),t.mxI("ngModelChange",function(g){return t.DH7(o.bio,g)||(o.bio=g),g}),t.k0s()(),t.j41(20,"nz-form-item")(21,"nz-form-label"),t.EFF(22,"Country"),t.k0s(),t.j41(23,"nz-select",6),t.mxI("ngModelChange",function(g){return t.DH7(o.countryId,g)||(o.countryId=g),g}),t.DNE(24,Zt,1,2,"nz-option",7),t.nI1(25,"ngrxPush"),t.k0s()(),t.j41(26,"nz-form-item")(27,"nz-form-label"),t.EFF(28,"Area of Expertise"),t.k0s(),t.j41(29,"nz-select",8),t.mxI("ngModelChange",function(g){return t.DH7(o.areaOfExpertise,g)||(o.areaOfExpertise=g),g}),t.nrm(30,"nz-option",9)(31,"nz-option",10)(32,"nz-option",11),t.k0s()(),t.j41(33,"nz-form-item")(34,"nz-form-label"),t.EFF(35,"ORCID Identifier"),t.k0s(),t.j41(36,"nz-input-group",12)(37,"input",13),t.mxI("ngModelChange",function(g){return t.DH7(o.orcid,g)||(o.orcid=g),g}),t.k0s()()(),t.j41(38,"nz-form-item")(39,"nz-form-label"),t.EFF(40,"Personal Website"),t.k0s(),t.j41(41,"input",4),t.mxI("ngModelChange",function(g){return t.DH7(o.url,g)||(o.url=g),g}),t.k0s()(),t.j41(42,"nz-form-item")(43,"nz-form-label"),t.EFF(44,"X/Twitter Handle"),t.k0s(),t.j41(45,"nz-input-group",14)(46,"input",15),t.mxI("ngModelChange",function(g){return t.DH7(o.twitterHandle,g)||(o.twitterHandle=g),g}),t.k0s()()(),t.j41(47,"nz-form-item")(48,"nz-form-label"),t.EFF(49,"Facebook Profile"),t.k0s(),t.j41(50,"nz-input-group",16)(51,"input",15),t.mxI("ngModelChange",function(g){return t.DH7(o.facebookProfile,g)||(o.facebookProfile=g),g}),t.k0s()()(),t.j41(52,"nz-form-item")(53,"nz-form-label"),t.EFF(54,"LinkedIn Profile"),t.k0s(),t.j41(55,"nz-input-group",17)(56,"input",15),t.mxI("ngModelChange",function(g){return t.DH7(o.linkedinProfile,g)||(o.linkedinProfile=g),g}),t.k0s()()(),t.j41(57,"nz-form-item")(58,"button",18),t.bIt("click",function(){return o.updateProfile()}),t.EFF(59," Update Profile "),t.k0s()()()()),2&l&&(t.R7$(),t.Y8G("ngIf",o.success),t.R7$(),t.Y8G("ngIf",o.errorMessages.length>0),t.R7$(),t.Y8G("nzSpinning",o.loading),t.R7$(4),t.R50("ngModel",o.username),t.R7$(4),t.R50("ngModel",o.name),t.R7$(4),t.R50("ngModel",o.email),t.R7$(4),t.R50("ngModel",o.bio),t.R7$(4),t.R50("ngModel",o.countryId),t.R7$(),t.Y8G("ngForOf",t.bMT(25,16,o.countries$)),t.R7$(5),t.R50("ngModel",o.areaOfExpertise),t.R7$(8),t.R50("ngModel",o.orcid),t.R7$(4),t.R50("ngModel",o.url),t.R7$(5),t.R50("ngModel",o.twitterHandle),t.R7$(5),t.R50("ngModel",o.facebookProfile),t.R7$(5),t.R50("ngModel",o.linkedinProfile),t.R7$(2),t.Y8G("disabled",o.loading||!o.username||!o.email))},dependencies:[f.Sq,f.bT,z.me,z.BC,z.vS,b.Uq,b.e,Y.Ls,Y.Mo,I.cK,E.Y,S.aO,G.c,N.p,L.a,J.ld,J.WI,$.Sy,$.tg,it.j,tt.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]})}return i})();var Vn=a(9765),qt=a(9945),tn=a(9162),nn=a(1626);let en=(()=>{class i{constructor(e){this.http=e,this.uploadComplete=new t.bkB}processProfileImage(e){if(e&&e[0]){let l=new FormData;l.append("image",e[0],e[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",l).subscribe(o=>this.uploadComplete.emit(!0),o=>this.uploadComplete.emit(!1))}}ngOnDestroy(){this.uploadSubscription?.unsubscribe()}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(nn.Qq))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-avatar-uploader"]],outputs:{uploadComplete:"uploadComplete"},decls:4,vars:0,consts:[["profileImage",""],["type","file","accept","image/*",2,"display","none",3,"change"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"]],template:function(l,o){if(1&l){const c=t.RV6();t.j41(0,"input",1,0),t.bIt("change",function(){t.eBV(c);const P=t.sdS(1);return t.Njj(o.processProfileImage(P.files))}),t.k0s(),t.j41(2,"button",2),t.bIt("click",function(){t.eBV(c);const P=t.sdS(1);return t.Njj(P.click())}),t.EFF(3," Update Image\n"),t.k0s()}},dependencies:[S.aO,G.c,N.p],encapsulation:2})}return i})();var on=a(8542),an=a(1845),sn=a(3075);const rn=()=>[8,8];function ln(i,p){if(1&i&&t.nrm(0,"cvc-user-avatar",31),2&i){const e=t.XpG().ngIf;t.Y8G("user",e)("size",128)}}function W(i,p){if(1&i&&(t.j41(0,"div",32),t.nrm(1,"i",33),t.nI1(2,"lowercase"),t.nI1(3,"titlecase"),t.nI1(4,"entityColor"),t.j41(5,"span",34)(6,"strong"),t.EFF(7),t.k0s()()()),2&i){const e=t.XpG().ngIf;t.R7$(),t.Y8G("nzType","civic-"+t.bMT(2,3,e.role))("nzTwotoneColor",t.bMT(4,7,t.bMT(3,5,e.role))),t.R7$(6),t.SpI(" ",e.username,"")}}function cn(i,p){if(1&i&&(t.j41(0,"nz-descriptions-item",40),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",e.name," ")}}function pn(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",42),t.nrm(2,"i",43),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","https://",e.url,"",t.B4B)}}function dn(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",44),t.nrm(2,"i",45),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","http://twitter.com/",e.twitterHandle,"",t.B4B)}}function _t(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",46),t.nrm(2,"i",47),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","http://facebook.com/",e.facebookProfile,"",t.B4B)}}function mn(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",48),t.nrm(2,"i",49),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","http://linkedin.com/in/",e.linkedinProfile,"",t.B4B)}}function gn(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",50),t.nrm(2,"i",51),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","https://orcid.org/",e.orcid,"",t.B4B)}}function un(i,p){if(1&i&&(t.j41(0,"div",41),t.DNE(1,pn,3,2,"ng-container",10)(2,dn,3,2,"ng-container",10)(3,_t,3,2,"ng-container",10)(4,mn,3,2,"ng-container",10)(5,gn,3,2,"ng-container",10),t.k0s()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.Y8G("ngIf",e.url),t.R7$(),t.Y8G("ngIf",e.twitterHandle),t.R7$(),t.Y8G("ngIf",e.facebookProfile),t.R7$(),t.Y8G("ngIf",e.linkedinProfile),t.R7$(),t.Y8G("ngIf",e.orcid)}}function _n(i,p){1&i&&(t.j41(0,"i",52),t.EFF(1," None provided "),t.k0s())}function fn(i,p){if(1&i&&(t.j41(0,"div")(1,"nz-descriptions",35),t.DNE(2,cn,2,1,"nz-descriptions-item",36),t.j41(3,"nz-descriptions-item",37),t.EFF(4),t.nI1(5,"enumToTitle"),t.k0s(),t.j41(6,"nz-descriptions-item",38),t.DNE(7,un,6,5,"div",39)(8,_n,2,0,"ng-template",null,5,t.C5r),t.k0s()()()),2&i){const e=t.sdS(9),l=t.XpG().ngIf;t.R7$(),t.Y8G("nzBordered",!0)("nzColumn",1),t.R7$(),t.Y8G("ngIf",l.name),t.R7$(2),t.SpI(" ",t.bMT(5,6,l.role)," "),t.R7$(3),t.Y8G("ngIf",l.url||l.twitterHandle||l.facebookProfile||l.linkedinProfile||l.orcid)("ngIfElse",e)}}function hn(i,p){if(1&i){const e=t.RV6();t.j41(0,"button",55),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.updateProfileModalVisible=!0)}),t.EFF(1," Edit Profile "),t.k0s()}}function zn(i,p){if(1&i){const e=t.RV6();t.j41(0,"cvc-avatar-uploader",56),t.bIt("uploadComplete",function(o){t.eBV(e);const c=t.XpG(3);return t.Njj(c.profileUploadComplete(o))}),t.k0s()}}function Cn(i,p){1&i&&(t.qex(0),t.DNE(1,hn,2,0,"button",53)(2,zn,1,0,"cvc-avatar-uploader",54),t.bVm())}function bn(i,p){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",e.bio," ")}}function vn(i,p){1&i&&(t.qex(0),t.j41(1,"span",52)(2,"i"),t.EFF(3,"User has not provided a bio."),t.k0s()(),t.bVm())}function Tn(i,p){if(1&i&&(t.qex(0),t.EFF(1),t.nI1(2,"enumToTitle"),t.bVm()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",t.bMT(2,1,e.areaOfExpertise)," ")}}function yn(i,p){1&i&&(t.qex(0),t.j41(1,"span",52)(2,"i"),t.EFF(3,"Unspecified"),t.k0s()(),t.bVm())}function Mn(i,p){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",e.country.name," ")}}function In(i,p){1&i&&(t.qex(0),t.j41(1,"span",52)(2,"i"),t.EFF(3,"Unspecified"),t.k0s()(),t.bVm())}function xn(i,p){if(1&i&&(t.qex(0),t.nrm(1,"cvc-tag-overflow",62),t.nI1(2,"ngrxPush"),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("maxDisplayCount",2)("tags",t.bMT(2,2,e.organization$))}}function Sn(i,p){1&i&&(t.qex(0),t.j41(1,"span",52)(2,"i"),t.EFF(3,"User is not a member of any Organizations."),t.k0s()(),t.bVm())}function Rn(i,p){if(1&i&&(t.j41(0,"nz-descriptions",57)(1,"nz-descriptions-item",58),t.DNE(2,bn,2,1,"ng-container",10)(3,vn,4,0,"ng-container",10),t.k0s(),t.j41(4,"nz-descriptions-item",59),t.DNE(5,Tn,3,3,"ng-container",10)(6,yn,4,0,"ng-container",10),t.k0s(),t.j41(7,"nz-descriptions-item",60),t.DNE(8,Mn,2,1,"ng-container",10)(9,In,4,0,"ng-container",10),t.k0s(),t.j41(10,"nz-descriptions-item",61),t.DNE(11,xn,3,4,"ng-container",10)(12,Sn,4,0,"ng-container",10),t.k0s()()),2&i){const e=t.XpG().ngIf;t.Y8G("nzColumn",4),t.R7$(2),t.Y8G("ngIf",e.bio),t.R7$(),t.Y8G("ngIf",!e.bio),t.R7$(),t.Y8G("nzSpan",2),t.R7$(),t.Y8G("ngIf",e.areaOfExpertise),t.R7$(),t.Y8G("ngIf",!e.areaOfExpertise),t.R7$(),t.Y8G("nzSpan",2),t.R7$(),t.Y8G("ngIf",e.country),t.R7$(),t.Y8G("ngIf",!e.country),t.R7$(),t.Y8G("nzSpan",4)("nzTitle","Organization"+(e.organizations.length>1?"s":"")),t.R7$(),t.Y8G("ngIf",e.organizations.length>0),t.R7$(),t.Y8G("ngIf",0===e.organizations.length)}}function Un(i,p){if(1&i&&(t.nrm(0,"i",33),t.nI1(1,"lowercase"),t.nI1(2,"titlecase"),t.nI1(3,"entityColor"),t.EFF(4," Editor Conflict of Interest Statement ")),2&i){const e=t.XpG(3).ngIf;t.Y8G("nzType","civic-"+t.bMT(1,2,e.role))("nzTwotoneColor",t.bMT(3,6,t.bMT(2,4,e.role)))}}function En(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",66),t.bIt("click",function(){t.eBV(e);const o=t.XpG(5);return t.Njj(o.updateCoiModalVisible=!0)}),t.EFF(2," Update COI "),t.k0s(),t.bVm()}}function jn(i,p){if(1&i&&(t.DNE(0,En,3,0,"ng-container",10),t.nI1(1,"ngrxPush")),2&i){const e=t.XpG(4);t.Y8G("ngIf",t.bMT(1,1,e.ownProfile$))}}function kn(i,p){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const e=t.XpG(4).ngIf;t.R7$(),t.SpI(" ",e.mostRecentConflictOfInterestStatement.coiStatement," ")}}function Pn(i,p){1&i&&t.EFF(0," I do not have any potential conflicts of interest. ")}function s(i,p){if(1&i&&(t.qex(0),t.j41(1,"nz-descriptions-item",67),t.EFF(2),t.nI1(3,"enumToTitle"),t.k0s(),t.j41(4,"nz-descriptions-item",68),t.EFF(5),t.nI1(6,"date"),t.k0s(),t.j41(7,"nz-descriptions-item",69),t.EFF(8),t.nI1(9,"date"),t.k0s(),t.j41(10,"nz-descriptions-item",70),t.DNE(11,kn,2,1,"ng-container",71)(12,Pn,1,0,"ng-template",null,8,t.C5r),t.k0s(),t.bVm()),2&i){const e=t.sdS(13),l=t.XpG(3).ngIf;t.R7$(),t.Y8G("nzSpan",1),t.R7$(),t.SpI(" ",t.bMT(3,9,l.mostRecentConflictOfInterestStatement.coiStatus)," "),t.R7$(2),t.Y8G("nzSpan",1),t.R7$(),t.SpI(" ",t.i5U(6,11,l.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),t.R7$(2),t.Y8G("nzSpan",1),t.R7$(),t.SpI(" ",t.i5U(9,14,l.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),t.R7$(2),t.Y8G("nzSpan",3),t.R7$(),t.Y8G("ngIf",l.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",e)}}function m(i,p){1&i&&(t.qex(0),t.j41(1,"nz-descriptions-item",67),t.EFF(2," None on file. "),t.k0s(),t.bVm()),2&i&&(t.R7$(),t.Y8G("nzSpan",3))}function r(i,p){if(1&i&&(t.j41(0,"nz-card",64),t.DNE(1,Un,5,8,"ng-template",null,6,t.C5r)(3,jn,2,3,"ng-template",null,7,t.C5r),t.j41(5,"nz-descriptions",65),t.DNE(6,s,14,17,"ng-container",10)(7,m,3,1,"ng-container",10),t.k0s()()),2&i){const e=t.sdS(2),l=t.sdS(4),o=t.XpG(2).ngIf;t.Y8G("nzTitle",e)("nzExtra",l),t.R7$(5),t.Y8G("nzBordered",!0)("nzColumn",3),t.R7$(),t.Y8G("ngIf",o.mostRecentConflictOfInterestStatement),t.R7$(),t.Y8G("ngIf",!o.mostRecentConflictOfInterestStatement)}}function d(i,p){1&i&&(t.qex(0),t.DNE(1,r,8,6,"nz-card",63),t.bVm())}function u(i,p){1&i&&(t.j41(0,"div",74)(1,"p")(2,"strong"),t.EFF(3,"Comments:"),t.k0s(),t.EFF(4," Total number of Comments posted by the Curator. "),t.k0s(),t.j41(5,"p")(6,"strong"),t.EFF(7,"Revisions:"),t.k0s(),t.EFF(8," Total number of Revisions suggested by the Curator. "),t.k0s(),t.j41(9,"p")(10,"strong"),t.EFF(11,"Submissions:"),t.k0s(),t.EFF(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.k0s(),t.j41(13,"p")(14,"strong"),t.EFF(15,"Moderations:"),t.k0s(),t.EFF(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.k0s()())}function _(i,p){if(1&i&&(t.j41(0,"div",72),t.EFF(1," Ranked Activities "),t.j41(2,"span",52),t.nrm(3,"i",73),t.k0s()(),t.DNE(4,u,17,0,"ng-template",null,9,t.C5r)),2&i){const e=t.sdS(5);t.Y8G("nzPopoverContent",e)}}function Fn(i,p){1&i&&(t.j41(0,"span"),t.EFF(1,"Edit Profile"),t.k0s())}function Yn(i,p){if(1&i){const e=t.RV6();t.j41(0,"cvc-user-profile-form",75),t.bIt("profileUpdatedEvent",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.profileUpdated())}),t.k0s()}if(2&i){const e=t.XpG().ngIf;t.Y8G("user",e)}}function Ln(i,p){if(1&i){const e=t.RV6();t.qex(0),t.nrm(1,"cvc-section-navigation",12),t.j41(2,"nz-page-header",13)(3,"nz-page-header-content")(4,"nz-row",14)(5,"nz-col",15)(6,"nz-space",16),t.DNE(7,ln,1,2,"cvc-user-avatar",17)(8,W,8,9,"div",18)(9,fn,10,8,"div",19)(10,Cn,3,0,"ng-container",10),t.nI1(11,"ngrxPush"),t.k0s()(),t.j41(12,"nz-col",20)(13,"nz-space",21),t.DNE(14,Rn,13,13,"nz-descriptions",22)(15,d,2,0,"ng-container",10),t.k0s()(),t.j41(16,"nz-col",23)(17,"nz-descriptions",24)(18,"nz-descriptions-item",25),t.nrm(19,"cvc-stats-card",26),t.k0s(),t.DNE(20,_,6,1,"ng-template",null,2,t.C5r),t.k0s()()(),t.j41(22,"nz-row",27)(23,"nz-col",28),t.nrm(24,"cvc-tab-navigation",29),t.nI1(25,"ngrxPush"),t.j41(26,"div",30),t.nrm(27,"router-outlet"),t.k0s()()()()(),t.j41(28,"nz-modal",11),t.mxI("nzVisibleChange",function(o){t.eBV(e);const c=t.XpG();return t.DH7(c.updateProfileModalVisible,o)||(c.updateProfileModalVisible=o),t.Njj(o)}),t.bIt("nzOnCancel",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.handleProfileModalCancel())}),t.DNE(29,Fn,2,0,"ng-template",null,3,t.C5r)(31,Yn,1,1,"ng-template",null,4,t.C5r),t.k0s(),t.bVm()}if(2&i){const e=p.ngIf,l=t.sdS(21),o=t.sdS(30),c=t.sdS(32),g=t.XpG();t.R7$(),t.Y8G("displayName",e.displayName),t.R7$(3),t.Y8G("nzGutter",t.lJ4(16,rn)),t.R7$(6),t.Y8G("ngIf",t.bMT(11,12,g.ownProfile$)),t.R7$(5),t.Y8G("ngIf","EDITOR"===e.role||"ADMIN"===e.role),t.R7$(3),t.Y8G("nzTitle",l),t.R7$(),t.Y8G("cvcStats",e.statsHash)("cvcRanks",e.ranks),t.R7$(5),t.Y8G("tabs",t.bMT(25,14,g.tabs$)),t.R7$(4),t.R50("nzVisible",g.updateProfileModalVisible),t.Y8G("nzContent",c)("nzTitle",o)("nzFooter",null)}}function Xn(i,p){1&i&&(t.j41(0,"span"),t.EFF(1,"Update your Conflict of Interest Statement"),t.k0s())}function Bn(i,p){if(1&i){const e=t.RV6();t.j41(0,"cvc-user-coi-form",76),t.bIt("coiUpdatedEvent",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.coiUpdated())}),t.k0s()}}let $n=class Gn{constructor(p,e,l){this.gql=p,this.viewerService=e,this.route=l,this.organization$=new nt.t([]),this.ownProfile$=new nt.t(!1),this.uploadError=!1,this.updateSuccess=!1,this.updateCoiModalVisible=!1,this.updateProfileModalVisible=!1,this.defaultTabs=[{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"},{routeName:"source-suggestions",tabLabel:"Source Suggestions",iconName:"file-add"}],this.tabs$=new nt.t(this.defaultTabs),this.routeSub=this.route.params.subscribe(o=>{this.queryRef=this.gql.watch({userId:+o.userId});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,dt.E)("loading"),(0,A.Z)(!0)),this.user$=c.pipe((0,dt.E)("data","user")),this.user$.pipe((0,T.T)(g=>g?g.organizations.map(P=>({id:P.id,name:P.name,link:P.url})):[]),(0,mt.s)(this)).subscribe(g=>{this.organization$.next(g)}),this.viewerSub=this.viewerService.viewer$.subscribe(g=>{g.id===+o.userId?(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0)):this.ownProfile$.next(!1)})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.viewerSub?.unsubscribe()}profileUploadComplete(p){p?(this.queryRef?.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){this.updateCoiModalVisible=!1,this.queryRef?.refetch()}profileUpdated(){this.updateProfileModalVisible=!1,this.queryRef?.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}static#t=this.\u0275fac=function(e){return new(e||Gn)(t.rXU(h.RSu),t.rXU(At.q),t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:Gn,selectors:[["users-detail"]],decls:7,vars:7,consts:[["coiModalTitle",""],["coiModalContent",""],["activitiesTitle",""],["profileModalTitle",""],["profileModalContent",""],["noLinks",""],["statementTitle",""],["updateCoi",""],["noStatement",""],["rankingCalculations",""],[4,"ngIf"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical"],["shape","square",3,"user","size",4,"nzSpaceItem"],["class","user-pseudo-tag",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzDirection","vertical",2,"width","100%"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcRanks"],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["shape","square",3,"user","size"],[1,"user-pseudo-tag"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"],["nz-typography",""],["nzLayout","vertical","nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","Name",4,"ngIf"],["nzTitle","Role"],["nzTitle","Personal Links"],["class","user-socials",4,"ngIf","ngIfElse"],["nzTitle","Name"],[1,"user-socials"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-typography","","nzType","secondary"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click",4,"nzSpaceItem"],[3,"uploadComplete",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],[3,"uploadComplete"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Biography","nzSpan","4"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],[3,"nzSpan","nzTitle"],["tagType","organization",3,"maxDisplayCount","tags"],["class","editor-coi-card","nzSize","small",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSize","small",1,"editor-coi-card",3,"nzTitle","nzExtra"],["nzLayout","horizontal","nzSize","small",1,"user-coi",3,"nzBordered","nzColumn"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],[1,"calculation-info"],[3,"profileUpdatedEvent","user"],[3,"coiUpdatedEvent"]],template:function(e,l){if(1&e){const o=t.RV6();t.DNE(0,Ln,33,17,"ng-container",10),t.nI1(1,"ngrxPush"),t.j41(2,"nz-modal",11),t.mxI("nzVisibleChange",function(g){return t.eBV(o),t.DH7(l.updateCoiModalVisible,g)||(l.updateCoiModalVisible=g),t.Njj(g)}),t.bIt("nzOnCancel",function(){return t.eBV(o),t.Njj(l.handleCoiModalCancel())}),t.DNE(3,Xn,2,0,"ng-template",null,0,t.C5r)(5,Bn,1,0,"ng-template",null,1,t.C5r),t.k0s()}if(2&e){const o=t.sdS(4),c=t.sdS(6);t.Y8G("ngIf",t.bMT(1,5,l.user$)),t.R7$(2),t.R50("nzVisible",l.updateCoiModalVisible),t.Y8G("nzContent",c)("nzTitle",o)("nzFooter",null)}},dependencies:[f.bT,v.n3,b.Uq,b.e,n.WB,n.zR,x.U5,x.Dq,y.xA,y.gr,I.cK,F.F2,j.Dn,gt.Di,Z.LH,ut.L_,S.aO,G.c,N.p,Ht.U,Wt.j,Dn,Vn.n,qt.N,tn.G,en,on.d,f.GH,f.PV,f.vh,tt.L9,an.f,sn.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.user-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px}.user-links[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:120%}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-right:0}.user-socials[_ngcontent-%COMP%]{text-align:center}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-of-type{margin-right:0}.editor-coi-card[_ngcontent-%COMP%] .ant-card-body{padding:0;margin:0 -1px -1px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]})};$n=(0,Bt.Cg)([(0,mt.d)()],$n);const An=[{path:"",component:$n,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:Mt,data:{breadcrumb:"Evidence"}},{path:"assertions",component:bt,data:{breadcrumb:"Assertions"}},{path:"activity",component:Tt,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Xt,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Yt,data:{breadcrumb:"Notifications"}}]}];let Hn=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[v.iI.forChild(An),v.iI]})}return i})();var Wn=a(3384),Qn=a(9374);let Jn=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[f.MD,v.iI,Hn,E.$,b.f3,Wn.Qe,n.ZJ,x.pc,y.WF,I.Ti,st.g,F.U6,at.Fw,j.Y3,gt.kT,Z.Qt,ut.MC,S.Zw,Qn.r,ht.N,ft,k.i,V.C,U.W,w.P,ot,M.U,zt.K]})}return i})()},4391:(wn,Q,a)=>{a.r(Q),a.d(Q,{UsersModule:()=>Pn});var f=a(177),V=a(1188),n=a(3953),v=a(3062),U=a(5103),x=a(7529),w=a(513),S=a(6389),j=a(7685),t=a(7391),ot=a(1635),y=a(9145),M=a(9894),b=a(4412),k=a(6354),I=a(9417),at=a(3146),st=a(9438),F=a(5703),z=a(2617),E=a(1997),Y=a(1672),O=a(5154),rt=a(6408),L=a(1774);const J=()=>[8,8],$=s=>({$implicit:s}),ft=s=>({"list-height-block":s}),ht=()=>[0,5];function zt(s,m){1&s&&n.eu8(0)}function Ct(s,m){1&s&&n.eu8(0)}function bt(s,m){1&s&&n.eu8(0)}function h(s,m){1&s&&n.eu8(0)}function vt(s,m){if(1&s&&(n.j41(0,"span",14),n.EFF(1),n.k0s(),n.j41(2,"span",15),n.nrm(3,"i",16),n.k0s()),2&s){const r=n.XpG().$implicit;n.R7$(),n.SpI(" ",r.title," "),n.R7$(2),n.Y8G("nzTooltipTitle",r.info)}}function Tt(s,m){if(1&s&&(n.j41(0,"nz-badge",20),n.nrm(1,"nz-avatar",21),n.k0s()),2&s){const r=n.XpG().$implicit;n.Y8G("nzCount",r.rank)("nzOffset",n.lJ4(3,ht)),n.R7$(),n.Y8G("nzSrc",r.profileImagePath)}}function yt(s,m){if(1&s&&(n.j41(0,"nz-list-item"),n.DNE(1,Tt,2,4,"ng-template",null,5,n.C5r),n.j41(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),n.nrm(5,"cvc-user-tag",18),n.k0s()(),n.j41(6,"ul",19)(7,"nz-list-item-action")(8,"span",15),n.EFF(9),n.nI1(10,"number"),n.k0s()()()()),2&s){const r=m.$implicit,d=n.sdS(2);n.R7$(3),n.Y8G("nzAvatar",d),n.R7$(2),n.Y8G("user",r.user),n.R7$(4),n.SpI(" Count: ",n.bMT(10,3,r.actionCount)," ")}}function Mt(s,m){if(1&s&&n.nrm(0,"nz-list-empty",22),2&s){n.XpG();const r=n.sdS(7);n.Y8G("nzNoResult",r)}}function K(s,m){1&s&&n.nrm(0,"nz-empty",23)}function X(s,m){if(1&s&&(n.DNE(0,vt,4,2,"ng-template",null,3,n.C5r),n.j41(2,"nz-list",10)(3,"div",11),n.DNE(4,yt,11,5,"nz-list-item",12),n.k0s(),n.DNE(5,Mt,1,1,"nz-list-empty",13)(6,K,1,0,"ng-template",null,4,n.C5r),n.k0s()),2&s){const r=m.$implicit,d=n.sdS(1);n.R7$(2),n.Y8G("nzHeader",d)("nzLoading",r.loading),n.R7$(),n.Y8G("ngClass",n.eq3(5,ft,r.rows.length>0)),n.R7$(),n.Y8G("ngForOf",r.rows),n.R7$(),n.Y8G("ngIf",0===r.rows.length)}}function T(s,m){1&s&&(n.j41(0,"span",14)(1,"strong"),n.EFF(2,"Contributor Curation Activity Leaderboards"),n.k0s()())}function B(s,m){if(1&s){const r=n.RV6();n.j41(0,"span"),n.EFF(1,"Time: "),n.k0s(),n.j41(2,"nz-select",24),n.nI1(3,"ngrxPush"),n.bIt("ngModelChange",function(u){n.eBV(r);const _=n.XpG();return n.Njj(_.timeWindow$.next(u))}),n.nrm(4,"nz-option",25)(5,"nz-option",26)(6,"nz-option",27)(7,"nz-option",28),n.k0s()}if(2&s){const r=n.XpG();n.R7$(2),n.Y8G("nzDropdownMatchSelectWidth",!1)("ngModel",n.bMT(3,2,r.timeWindow$))}}let A=class Nn{constructor(m,r,d,u){this.commentsGQL=m,this.revisionsGQL=r,this.moderationGQL=d,this.submissionsGQL=u,this.initialCommentsView={title:"Comments Leaderboard",info:"Contributors ranked by the total number of posted Comments.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Contributors ranked by the total number of Revisions they have suggested.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Contributors ranked by the total number of editorial actions they have taken. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Contributors ranked by the total number of submitted Evidence Items and Assertions.",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=y.wJP.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new b.t(this.initialWindow),this.timeWindow$.pipe((0,M.s)(this)).subscribe(_=>{this.commentsQueryRef.refetch({window:_}),this.revisionsQueryRef.refetch({window:_}),this.moderationQueryRef.refetch({window:_}),this.submissionsQueryRef.refetch({window:_})}),this.commentsView$=new b.t(this.initialCommentsView),this.revisionsView$=new b.t(this.initialRevisionsView),this.moderationView$=new b.t(this.initialModerationView),this.submissionsView$=new b.t(this.initialSubmissionsView)}ngOnInit(){const m=r=>({rank:r.rank,actionCount:r.actionCount,profileImagePath:r.profileImagePath,name:r.name,user:{id:r.id,displayName:r.displayName,role:r.role}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,k.T)(r=>{let d=[];return r.data&&r.data.userLeaderboards&&r.data.userLeaderboards.commentsLeaderboard.edges.map(u=>{if(u.node){const _=m(u.node);d.push(_)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:r.loading,rows:[...d]}}),(0,M.s)(this)).subscribe(r=>this.commentsView$.next(r)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,k.T)(r=>{let d=[];return r.data&&r.data.userLeaderboards&&r.data.userLeaderboards.moderationLeaderboard.edges.map(u=>{if(u.node){const _=m(u.node);d.push(_)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:r.loading,rows:[...d]}}),(0,M.s)(this)).subscribe(r=>this.moderationView$.next(r)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,k.T)(r=>{let d=[];return r.data&&r.data.userLeaderboards&&r.data.userLeaderboards.revisionsLeaderboard.edges.map(u=>{if(u.node){const _=m(u.node);d.push(_)}}),{title:this.initialRevisionsView.title,info:this.initialRevisionsView.info,loading:r.loading,rows:[...d]}}),(0,M.s)(this)).subscribe(r=>this.revisionsView$.next(r)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,k.T)(r=>{let d=[];return r.data&&r.data.userLeaderboards&&r.data.userLeaderboards.submissionsLeaderboard.edges.map(u=>{if(u.node){const _=m(u.node);d.push(_)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:r.loading,rows:[...d]}}),(0,M.s)(this)).subscribe(r=>this.submissionsView$.next(r))}static#t=this.\u0275fac=function(r){return new(r||Nn)(n.rXU(y.NMX),n.rXU(y.npr),n.rXU(y.V3k),n.rXU(y.eJL))};static#n=this.\u0275cmp=n.VBU({type:Nn,selectors:[["cvc-user-leaderboards"]],decls:20,vars:28,consts:[["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["listEmpty",""],["rowAvatar",""],["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],[3,"nzAvatar"],[3,"user"],["nz-list-item-actions",""],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","user","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(r,d){if(1&r&&(n.j41(0,"nz-card",6)(1,"nz-row",7)(2,"nz-col",8),n.DNE(3,zt,1,0,"ng-container",9),n.nI1(4,"ngrxPush"),n.k0s(),n.j41(5,"nz-col",8),n.DNE(6,Ct,1,0,"ng-container",9),n.nI1(7,"ngrxPush"),n.k0s(),n.j41(8,"nz-col",8),n.DNE(9,bt,1,0,"ng-container",9),n.nI1(10,"ngrxPush"),n.k0s(),n.j41(11,"nz-col",8),n.DNE(12,h,1,0,"ng-container",9),n.nI1(13,"ngrxPush"),n.k0s()()(),n.DNE(14,X,8,7,"ng-template",null,0,n.C5r)(16,T,3,0,"ng-template",null,1,n.C5r)(18,B,8,4,"ng-template",null,2,n.C5r)),2&r){const u=n.sdS(15),_=n.sdS(17),Fn=n.sdS(19);n.Y8G("nzTitle",_)("nzExtra",Fn),n.R7$(),n.Y8G("nzGutter",n.lJ4(19,J)),n.R7$(2),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.eq3(20,$,n.bMT(4,11,d.commentsView$))),n.R7$(3),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.eq3(22,$,n.bMT(7,13,d.revisionsView$))),n.R7$(3),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.eq3(24,$,n.bMT(10,15,d.moderationView$))),n.R7$(3),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.eq3(26,$,n.bMT(13,17,d.submissionsView$)))}},dependencies:[f.YU,f.Sq,f.bT,f.T3,I.BC,I.vS,at.dz,st.PM,x.Uq,x.e,F.cK,z.eE,z.nt,z.lQ,z.qx,z.mf,z.MV,z.Tc,E.ld,E.WI,t.Di,Y.RW,U.Dn,O.LH,rt.r,f.QX,L.L9],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}.board-header[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0})};A=(0,ot.Cg)([(0,M.d)()],A);var lt=a(9765),Z=a(9995),G=a(1413),N=a(9199),q=a(3294),ct=a(7048),It=a(5245),H=a(5964),tt=a(152),xt=a(3993),D=a(4608),C=a(9247),pt=a(5699),St=a(1852),Rt=a(1405),Ut=a(435),Et=a(3296),jt=a(3431),kt=a(2923),Pt=a(6911),Ft=a(1845),$t=a(8139);const Gt=s=>({height:s}),Nt=()=>[],Ot=()=>({x:"680px",y:"800px"});function Dt(s,m){}function Vt(s,m){if(1&s&&(n.qex(0),n.j41(1,"nz-card",9),n.DNE(2,Dt,0,0,"ng-template",10),n.k0s(),n.bVm()),2&s){n.XpG();const r=n.sdS(4),d=n.sdS(6),u=n.sdS(8);n.R7$(),n.Y8G("nzTitle",d)("nzExtra",u),n.R7$(),n.Y8G("ngTemplateOutlet",r)}}function wt(s,m){}function Yt(s,m){if(1&s&&(n.j41(0,"div",11)(1,"nz-card",12),n.DNE(2,wt,0,0,"ng-template",10),n.k0s()()),2&s){const r=n.XpG(),d=n.sdS(4),u=n.sdS(6),_=n.sdS(8);n.Y8G("ngStyle",n.eq3(4,Gt,r.cvcHeight)),n.R7$(),n.Y8G("nzTitle",u)("nzExtra",_),n.R7$(),n.Y8G("ngTemplateOutlet",d)}}function Lt(s,m){if(1&s&&(n.qex(0),n.EFF(1),n.bVm()),2&s){const r=n.XpG().$implicit;n.R7$(),n.SpI(" ",r.name," ")}}function Xt(s,m){1&s&&(n.j41(0,"i",39),n.EFF(1,"Not specified"),n.k0s())}function Bt(s,m){if(1&s&&(n.j41(0,"div"),n.nrm(1,"cvc-tag-overflow",40),n.k0s()),2&s){const r=n.XpG().$implicit,d=n.XpG(2);n.R7$(),n.Y8G("maxDisplayCount",1)("tags",r.organizations)("matchingText",d.orgNameInput)}}function dt(s,m){1&s&&(n.j41(0,"i",39),n.EFF(1,"None specified"),n.k0s())}function nt(s,m){if(1&s&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&s){const r=n.XpG().$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,r.mostRecentActivityTimestamp)," ")}}function mt(s,m){1&s&&n.EFF(0," -- ")}function At(s,m){if(1&s&&(n.j41(0,"tr",34)(1,"td",26),n.nrm(2,"cvc-user-tag",35),n.k0s(),n.j41(3,"td",36),n.DNE(4,Lt,2,1,"ng-container",8)(5,Xt,2,0,"ng-template",null,5,n.C5r),n.k0s(),n.j41(7,"td"),n.DNE(8,Bt,2,3,"div",8)(9,dt,2,0,"ng-template",null,6,n.C5r),n.k0s(),n.j41(11,"td"),n.EFF(12),n.nI1(13,"enumToTitle"),n.k0s(),n.j41(14,"td",37),n.DNE(15,nt,3,3,"ng-container",8)(16,mt,1,0,"ng-template",null,7,n.C5r),n.k0s(),n.j41(18,"td",38),n.EFF(19),n.k0s(),n.j41(20,"td",38),n.EFF(21),n.k0s()()),2&s){const r=m.$implicit,d=n.sdS(6),u=n.sdS(10),_=n.sdS(17);n.R7$(2),n.Y8G("user",r),n.R7$(2),n.Y8G("ngIf",r.name)("ngIfElse",d),n.R7$(4),n.Y8G("ngIf",r.organizations.length>0)("ngIfElse",u),n.R7$(4),n.SpI(" ",n.bMT(13,10,r.role)," "),n.R7$(3),n.Y8G("ngIf",r.mostRecentActivityTimestamp)("ngIfElse",_),n.R7$(4),n.SpI(" ",r.evidenceCount," "),n.R7$(2),n.SpI(" ",r.revisionCount," ")}}function gt(s,m){if(1&s){const r=n.RV6();n.j41(0,"nz-table",13,4),n.nI1(2,"ngrxPush"),n.nI1(3,"ngrxPush"),n.nI1(4,"ngrxPush"),n.nI1(5,"ngrxPush"),n.bIt("cvcTableScrollOnScroll",function(u){n.eBV(r);const _=n.XpG();return n.Njj(_.scrollEvent$.next(u))}),n.j41(6,"thead",14),n.bIt("nzSortOrderChange",function(u){n.eBV(r);const _=n.XpG();return n.Njj(_.sortChange$.next(u))}),n.j41(7,"tr",15)(8,"th",16),n.EFF(9," User "),n.k0s(),n.j41(10,"th",17),n.EFF(11," Name "),n.k0s(),n.j41(12,"th",18),n.EFF(13,"Organizations"),n.k0s(),n.j41(14,"th",19),n.EFF(15," Role "),n.k0s(),n.j41(16,"th",20),n.EFF(17," Last Action "),n.k0s(),n.j41(18,"th",21),n.nrm(19,"i",22),n.EFF(20," Count "),n.k0s(),n.j41(21,"th",23),n.nrm(22,"i",24),n.EFF(23," Count "),n.k0s()(),n.j41(24,"tr",25),n.nrm(25,"th",26),n.j41(26,"th")(27,"cvc-clearable-input-filter",27),n.mxI("inputModelChange",function(u){n.eBV(r);const _=n.XpG();return n.DH7(_.nameInput,u)||(_.nameInput=u),n.Njj(u)}),n.bIt("inputModelChange",function(){n.eBV(r);const u=n.XpG();return n.Njj(u.filterChange$.next())}),n.k0s()(),n.j41(28,"th")(29,"cvc-clearable-input-filter",27),n.mxI("inputModelChange",function(u){n.eBV(r);const _=n.XpG();return n.DH7(_.orgNameInput,u)||(_.orgNameInput=u),n.Njj(u)}),n.bIt("inputModelChange",function(){n.eBV(r);const u=n.XpG();return n.Njj(u.filterChange$.next())}),n.k0s()(),n.j41(30,"th")(31,"nz-select",28),n.bIt("ngModelChange",function(){n.eBV(r);const u=n.XpG();return n.Njj(u.filterChange$.next())}),n.mxI("ngModelChange",function(u){n.eBV(r);const _=n.XpG();return n.DH7(_.roleInput,u)||(_.roleInput=u),n.Njj(u)}),n.nrm(32,"nz-option",29)(33,"nz-option",30)(34,"nz-option",31),n.k0s()(),n.nrm(35,"th")(36,"th",32)(37,"th",32),n.k0s()(),n.j41(38,"tbody"),n.DNE(39,At,22,12,"ng-template",33),n.k0s()()}if(2&s){const r=n.XpG();n.Y8G("nzData",n.bMT(2,25,r.row$)||n.lJ4(33,Nt))("nzLoading",!n.bMT(3,27,r.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",r.queryRef)("cvcTableScrollPageInfo",n.bMT(4,29,r.pageInfo$))("cvcTableScrollToIndex",n.bMT(5,31,r.scrollIndex$))("nzVirtualForTrackBy",r.trackByIndex)("nzScroll",n.lJ4(34,Ot))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(10),n.Y8G("nzColumnKey",r.sortColumns.Name)("nzSortFn",!0),n.R7$(4),n.Y8G("nzColumnKey",r.sortColumns.Role)("nzSortFn",!0),n.R7$(2),n.Y8G("nzColumnKey",r.sortColumns.LastAction)("nzSortFn",!0),n.R7$(2),n.Y8G("nzColumnKey",r.sortColumns.EvidenceCount)("nzSortFn",!0),n.R7$(3),n.Y8G("nzColumnKey",r.sortColumns.RevisionCount)("nzSortFn",!0),n.R7$(6),n.R50("inputModel",r.nameInput),n.R7$(2),n.R50("inputModel",r.orgNameInput),n.R7$(2),n.Y8G("nzDropdownMatchSelectWidth",!1),n.R50("ngModel",r.roleInput)}}function ut(s,m){}function Ht(s,m){if(1&s&&(n.qex(0),n.DNE(1,ut,0,0,"ng-template",10),n.bVm()),2&s){const r=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",r.cvcTitleTemplate)}}function Wt(s,m){if(1&s&&(n.qex(0),n.EFF(1),n.bVm()),2&s){const r=n.XpG(2);n.R7$(),n.SpI(" ",r.cvcTitle," ")}}function R(s,m){if(1&s&&(n.DNE(0,Ht,2,1,"ng-container",41)(1,Wt,2,1,"ng-container",41),n.j41(2,"span",42),n.nrm(3,"cvc-table-counts",43),n.k0s()),2&s){const r=n.XpG();n.Y8G("ngIf",r.cvcTitleTemplate),n.R7$(),n.Y8G("ngIf",r.cvcTitle),n.R7$(2),n.Y8G("cvcTableCountsConnection",r.connection$)}}function Qt(s,m){1&s&&(n.j41(0,"nz-tag",46),n.nrm(1,"i",47),n.j41(2,"span"),n.EFF(3,"Loading\u2026"),n.k0s()())}function et(s,m){if(1&s&&(n.DNE(0,Qt,4,0,"nz-tag",44),n.nI1(1,"ngrxPush"),n.nrm(2,"cvc-no-more-rows",45),n.nI1(3,"ngrxPush")),2&s){const r=n.XpG();n.Y8G("ngIf",n.bMT(1,2,r.moreLoading$)),n.R7$(2),n.Y8G("cvcShowTag",n.bMT(3,4,r.noMoreRows$))}}let it=class On{set initialUserFilters(m){m&&Object.assign(this,m)}constructor(m,r){this.gql=m,this.cdr=r,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=y.MAo,this.noMoreRows$=new b.t(!1),this.scrollEvent$=new b.t("stop"),this.sortChange$=new G.B,this.filterChange$=new G.B,this.scrollIndex$=new G.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:y.MAo.LastAction,direction:y.UEL.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,D.E)("loading"),(0,q.F)(),(0,ct.v)(m=>!1!==m,!0)),this.moreLoading$=this.result$.pipe((0,D.E)("loading"),(0,q.F)(),(0,It.i)(2)),this.connection$=this.result$.pipe((0,D.E)("data","users"),(0,H.p)(N.kP)),this.row$=this.connection$.pipe((0,D.E)("edges"),(0,H.p)(N.kP),(0,k.T)(m=>m.map(r=>r.node))),this.pageInfo$=this.connection$.pipe((0,D.E)("pageInfo"),(0,H.p)(N.kP)),this.sortChange$.pipe((0,M.s)(this)).subscribe(m=>{this.queryRef.refetch({sortBy:(0,Z.X)(m)})}),this.filterChange$.pipe((0,tt.B)(500),(0,M.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,k.T)(m=>"stop"!==m),(0,q.F)(),(0,M.s)(this)).subscribe(m=>{this.isScrolling=m,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,H.p)(m=>"bottom"===m),(0,xt.E)(this.pageInfo$),(0,k.T)(([m,r])=>r),(0,M.s)(this)).subscribe(m=>{m.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({userName:this.nameInput?this.nameInput:void 0,orgName:this.orgNameInput?{name:this.orgNameInput}:void 0,userRole:this.roleInput?this.roleInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(m,r){return r?.id}static#t=this.\u0275fac=function(r){return new(r||On)(n.rXU(y.HAY),n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:On,selectors:[["cvc-users-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],["nameElse",""],["orgElse",""],["eventElse",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","200px","nzLeft",""],["nzWidth","150px",3,"nzColumnKey","nzSortFn"],["nzWidth","300px"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","85px","nzAlign","right",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Revision Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic-revision"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzValue","ADMIN","nzLabel","Admin"],["nzValue","CURATOR","nzLabel","Curator"],["nzValue","EDITOR","nzLabel","Editor"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"user"],[1,"overflow-ellipsis"],["nzAlign","right"],["nzRight","","nzAlign","right"],["nz-typography","","nzType","secondary"],["tagType","organization",3,"maxDisplayCount","tags","matchingText"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(r,d){if(1&r&&n.DNE(0,Vt,3,3,"ng-container",8)(1,Yt,3,6,"ng-template",null,0,n.C5r)(3,gt,40,35,"ng-template",null,1,n.C5r)(5,R,4,3,"ng-template",null,2,n.C5r)(7,et,4,6,"ng-template",null,3,n.C5r),2&r){const u=n.sdS(2);n.Y8G("ngIf",!d.cvcHeight)("ngIfElse",u)}},dependencies:[f.bT,f.T3,f.B3,I.BC,I.vS,S.c,F.cK,U.Dn,E.ld,E.WI,C.CP,C.Cc,C.SO,C._4,C.IL,C.aj,C.kt,C.CC,C.OL,C.jc,pt.s,O.LH,t.Di,St.M,Rt.s,Ut.n,Et.M,jt.y,kt.f,Pt.U,rt.r,L.L9,Ft.f,$t.N],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]})};it=(0,ot.Cg)([(0,M.d)()],it);var Jt=a(3075);const Kt=()=>[8,16];function Zt(s,m){1&s&&(n.j41(0,"a",12),n.nrm(1,"i",13),n.EFF(2," View Contributor Docs "),n.k0s())}const qt=[{path:"",component:(()=>{class s{constructor(){}static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["app-users"]],decls:1,vars:0,template:function(d,u){1&d&&n.nrm(0,"router-outlet")},dependencies:[V.n3],encapsulation:2})}return s})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class s{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["users-home"]],decls:20,vars:6,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],["cvcTitle","Browse All Contributors"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(d,u){1&d&&(n.nrm(0,"cvc-section-navigation"),n.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n.nrm(5,"i",3),n.nI1(6,"entityColor"),n.k0s(),n.j41(7,"nz-col",4)(8,"h2"),n.EFF(9,"Contributors"),n.k0s(),n.j41(10,"p",5),n.EFF(11," CIViC depends on its users to add to its knowledgebase and curate its content. Anyone may join CIViC as a Curator and begin contributing. "),n.k0s()(),n.j41(12,"nz-col",6)(13,"nz-space",7),n.DNE(14,Zt,3,0,"a",8),n.k0s()()(),n.j41(15,"nz-row",9)(16,"nz-col",10),n.nrm(17,"cvc-user-leaderboards"),n.k0s(),n.j41(18,"nz-col",10),n.nrm(19,"cvc-users-table",11),n.k0s()()()()),2&d&&(n.R7$(5),n.Y8G("nzTwotoneColor",n.bMT(6,3,"Curator")),n.R7$(5),n.Y8G("nzEllipsisRows",2),n.R7$(5),n.Y8G("nzGutter",n.lJ4(5,Kt)))},dependencies:[v.WB,v.zR,U.Dn,x.Uq,x.e,w.aO,S.c,j.U5,j.Dq,t.Di,A,lt.n,it,Jt.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return s})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,7316)).then(s=>s.UsersDetailModule)}]}]}];let tn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[V.iI.forChild(qt),V.iI]})}return s})();var nn=a(8920),en=a(7874),on=a(7054),an=a(9214),sn=a(4998),rn=a(2142),ln=a(9374),W=a(4917),cn=a(4256),pn=a(4450),dn=a(8252),_t=a(2839);let mn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,I.YN,w.Zw,F.Ti,U.Y3,E.DH,C.$G,pt.T,O.Qt,t.kT,cn.t,pn.B,en.E,on.L,an.y,nn.U,W.i,sn.B,dn.A,rn.x,ln.r,_t.m]})}return s})();var gn=a(4124),un=a(9541),_n=a(9448);let fn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,I.YN,at.W2,_n.g,j.pc,st.Yb,x.f3,F.Ti,z.rD,un.hM,E.DH,t.kT,Y._v,U.Y3,O.Qt,W.i,_t.m]})}return s})(),hn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,v.ZJ,U.Y3,x.f3,w.Zw,j.pc,t.kT,fn,gn.C,mn,W.i]})}return s})();var zn=a(7660);let Cn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,U.Y3,zn.u]})}return s})();var bn=a(7316),vn=a(8313);let Tn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,vn.Y]})}return s})();var yn=a(4531);let Mn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,yn.C]})}return s})();var In=a(5594);let xn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,In.b]})}return s})();var Sn=a(2983),Rn=a(2968),Un=a(2986),En=a(7120),jn=a(5023);let kn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,I.YN,O.Qt,Sn.V,x.f3,w.Zw,F.Ti,U.Y3,Un.IJ,En.ki,jn.J,W.i,Rn.K]})}return s})(),Pn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,V.iI,tn,hn,Cn,bn.UsersDetailModule,Tn,Mn,xn,kn]})}return s})()}}]); \ No newline at end of file diff --git a/server/public/4391.9ca93707540c2116.js b/server/public/4391.9ca93707540c2116.js deleted file mode 100644 index 8fcbdbe1a..000000000 --- a/server/public/4391.9ca93707540c2116.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4391],{7316:(wn,Q,a)=>{a.r(Q),a.d(Q,{UsersDetailModule:()=>Jn});var f=a(177),V=a(4124),n=a(3062),v=a(1188),U=a(1532),x=a(7685),w=a(3357),R=a(513),j=a(5103),t=a(3953);let ot=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[f.MD,R.Zw,j.Y3]})}return i})();var y=a(2e3),M=a(8920),b=a(7529),k=a(4917),I=a(5703),at=a(2269),st=a(9448),F=a(2096),z=a(9417),E=a(3617),Y=a(8927),O=a(8492),rt=a(3190),L=a(2983),J=a(1997),$=a(1011);let ft=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[f.MD,z.YN,Y.PQ,z.X1,I.Ti,E.$,rt.Sw,R.Zw,L.V,J.DH,$.j,O.M]})}return i})();var ht=a(1232),zt=a(6208),Ct=a(4441);let bt=(()=>{class i{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-assertions"]],decls:1,vars:1,consts:[["cvcTitle","User Assertions",3,"userId"]],template:function(l,o){1&l&&t.nrm(0,"cvc-assertions-table",0),2&l&&t.Y8G("userId",o.userId)},dependencies:[Ct.z],styles:["[_nghost-%COMP%]{display:block}"]})}return i})();var h=a(9145),vt=a(9543);let Tt=(()=>{class i{constructor(e){this.route=e,this.mode=h.Qt1.User,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-events"]],decls:1,vars:2,consts:[["tagDisplay","hideUser",3,"userId","mode"]],template:function(l,o){1&l&&t.nrm(0,"cvc-event-feed",0),2&l&&t.Y8G("userId",o.userId)("mode",o.mode)},dependencies:[vt.e],styles:["[_nghost-%COMP%]{display:block}"]})}return i})();var yt=a(8199);let Mt=(()=>{class i{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-evidence"]],decls:1,vars:1,consts:[["cvcTitle","User Evidence",3,"userId"]],template:function(l,o){1&l&&t.nrm(0,"cvc-evidence-table",0),2&l&&t.Y8G("userId",o.userId)},dependencies:[yt.N],styles:["[_nghost-%COMP%]{display:block}"]})}return i})();var K=a(1226),X=a(9199),T=a(6354),B=a(5964),A=a(9172),lt=a(4222),Z=a(5154),G=a(6389),N=a(5930),q=a(2986),ct=a(7120),It=a(2597),H=a(9365),tt=a(1774),xt=a(7793),D=a(4493);const C=()=>[];function pt(i,p){if(1&i&&(t.j41(0,"nz-col"),t.nrm(1,"i",20),t.EFF(2),t.k0s()),2&i){const e=p.$implicit;t.R7$(),t.Y8G("nzType",e.iconName),t.R7$(),t.SpI(" ",e.displayName," ")}}function Rt(i,p){1&i&&(t.EFF(0),t.nI1(1,"eventVerbiage")),2&i&&t.SpI(" ",t.i5U(1,1,p.$implicit.id,"action-filter")," ")}function St(i,p){if(1&i&&(t.j41(0,"nz-col"),t.nrm(1,"i",20),t.nI1(2,"iconNameForSubscribableEntity"),t.EFF(3),t.k0s()),2&i){const e=p.$implicit;t.R7$(),t.Y8G("nzType",t.bMT(2,3,e.subjectWithCount.subject.__typename)),t.R7$(2),t.Lme(" ",e.subjectWithCount.subject.name," (",e.subjectWithCount.occuranceCount,") ")}}function Ut(i,p){if(1&i&&(t.j41(0,"nz-col"),t.EFF(1),t.k0s()),2&i){const e=p.$implicit;t.R7$(),t.SpI(" ",e.displayName," ")}}function Et(i,p){if(1&i&&(t.j41(0,"nz-col"),t.EFF(1),t.k0s()),2&i){const e=p.$implicit;t.R7$(),t.SpI(" ",e.name," ")}}function jt(i,p){if(1&i){const e=t.RV6();t.j41(0,"button",21),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.bulkMarkRead())}),t.nrm(1,"i",22),t.EFF(2,"Mark as read "),t.k0s(),t.j41(3,"button",21),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.bulkMarkUnread())}),t.nrm(4,"i",22),t.EFF(5,"Mark as unread "),t.k0s(),t.j41(6,"button",21),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.bulkUnsubscribe())}),t.nrm(7,"i",23),t.EFF(8,"Unsubscribe "),t.k0s(),t.EFF(9," Check all "),t.j41(10,"label",24),t.mxI("ngModelChange",function(o){t.eBV(e);const c=t.XpG(2);return t.DH7(c.allChecked,o)||(c.allChecked=o),t.Njj(o)}),t.bIt("nzCheckedChange",function(o){t.eBV(e);const c=t.XpG(2);return t.Njj(c.onCheckAllCheckBoxClicked(o))}),t.k0s()}if(2&i){const e=t.XpG(2);t.Y8G("disabled",!e.bulkMarkEnabled),t.R7$(3),t.Y8G("disabled",!e.bulkMarkEnabled),t.R7$(3),t.Y8G("disabled",!e.bulkMarkEnabled),t.R7$(4),t.R50("ngModel",e.allChecked),t.Y8G("nzIndeterminate",e.someChecked)}}function kt(i,p){if(1&i&&t.nrm(0,"i",32),2&i){const e=t.XpG().$implicit;t.Y8G("nzType","SUBSCRIPTION"===e.key.type?"book":"notification")("nzTheme",e.key.seen?"outline":"twotone")}}function Pt(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",33),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,c=t.XpG(3);return t.Njj(c.markAsUnread(o.key.id))}),t.nrm(2,"i",34),t.k0s(),t.bVm()}}function Ft(i,p){if(1&i){const e=t.RV6();t.j41(0,"button",35),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,c=t.XpG(3);return t.Njj(c.markAsRead(o.key.id))}),t.nrm(1,"i",22),t.k0s()}}function $t(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",36),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,c=t.XpG(3);return t.Njj(c.unsubscribe(o.key.subscription.subscribable.id,o.key.subscription.subscribable.__typename))}),t.nrm(2,"i",23),t.k0s(),t.bVm()}if(2&i){const e=t.XpG().$implicit;t.R7$(),t.Mz_("nzTooltipTitle","You received this notification because you are subscribed to ",e.key.subscription.subscribable.name,". Click to unsubscribe.")}}function Gt(i,p){1&i&&(t.j41(0,"button",37),t.nrm(1,"i",23),t.k0s())}function Nt(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"nz-timeline-item",26),t.DNE(2,kt,1,2,"ng-template",null,2,t.C5r),t.j41(4,"nz-row")(5,"nz-col",27),t.nrm(6,"cvc-event-timeline-item",28),t.k0s(),t.j41(7,"nz-col",29),t.DNE(8,Pt,3,0,"ng-container",30)(9,Ft,2,0,"ng-template",null,3,t.C5r),t.k0s(),t.j41(11,"nz-col",29),t.DNE(12,$t,3,2,"ng-container",30)(13,Gt,2,0,"ng-template",null,4,t.C5r),t.j41(15,"label",31),t.mxI("ngModelChange",function(o){const c=t.eBV(e).$implicit;return t.DH7(c.value.checked,o)||(c.value.checked=o),t.Njj(o)}),t.bIt("nzCheckedChange",function(o){const c=t.eBV(e).$implicit,g=t.XpG(3);return t.Njj(g.onNotificationCheckBoxClicked(c.key.id,o))}),t.k0s()()()(),t.bVm()}if(2&i){const e=p.$implicit,l=t.sdS(3),o=t.sdS(10),c=t.sdS(14);t.R7$(),t.Y8G("nzDot",l)("nzColor",e.key.seen?"gray":"blue"),t.R7$(5),t.Y8G("event",e.key.event),t.R7$(2),t.Y8G("ngIf",e.key.seen)("ngIfElse",o),t.R7$(4),t.Y8G("ngIf",e.key.subscription)("ngIfElse",c),t.R7$(3),t.R50("ngModel",e.value.checked)}}function Ot(i,p){if(1&i&&(t.j41(0,"nz-timeline"),t.DNE(1,Nt,16,8,"ng-container",25),t.nI1(2,"keyvalue"),t.k0s()),2&i){const e=t.XpG().ngIf;t.R7$(),t.Y8G("ngForOf",t.bMT(2,1,e))}}function Dt(i,p){if(1&i){const e=t.RV6();t.j41(0,"div",39)(1,"button",40),t.bIt("click",function(){t.eBV(e);const o=t.XpG().ngIf,c=t.XpG(2);return t.Njj(c.fetchMore(o.endCursor))}),t.EFF(2," Load More "),t.k0s()()}}function Vt(i,p){if(1&i&&(t.qex(0),t.DNE(1,Dt,3,0,"div",38),t.bVm()),2&i){const e=p.ngIf;t.R7$(),t.Y8G("ngIf",e.hasNextPage&&e.endCursor)}}function wt(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"nz-row",7)(2,"nz-col",8)(3,"nz-row")(4,"nz-button-group",9)(5,"button",10),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.setIncludeRead(!1))}),t.EFF(6," Unread "),t.k0s(),t.j41(7,"button",10),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.setIncludeRead(!0))}),t.EFF(8," All "),t.k0s()()(),t.j41(9,"nz-row")(10,"nz-col",11)(11,"cvc-participant-list",12),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onNotificationReasonSelected(o))}),t.DNE(12,pt,3,2,"ng-template",null,0,t.C5r),t.k0s(),t.j41(14,"cvc-participant-list",13),t.nI1(15,"ngrxPush"),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onActionSelected(o))}),t.DNE(16,Rt,2,4,"ng-template",null,0,t.C5r),t.k0s(),t.j41(18,"cvc-participant-list",14),t.nI1(19,"ngrxPush"),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onNotificationSubjectSelected(o))}),t.DNE(20,St,4,5,"ng-template",null,0,t.C5r),t.k0s(),t.j41(22,"cvc-participant-list",15),t.nI1(23,"ngrxPush"),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onOriginatingUserSelected(o))}),t.DNE(24,Ut,2,1,"ng-template",null,0,t.C5r),t.k0s(),t.j41(26,"cvc-participant-list",16),t.nI1(27,"ngrxPush"),t.bIt("participantSelectedEvent",function(o){t.eBV(e);const c=t.XpG();return t.Njj(c.onOrganizationSelected(o))}),t.DNE(28,Et,2,1,"ng-template",null,0,t.C5r),t.k0s()()()(),t.j41(30,"nz-col",17)(31,"nz-card",18),t.DNE(32,jt,11,5,"ng-template",null,1,t.C5r),t.j41(34,"nz-row",7)(35,"nz-col",19),t.DNE(36,Ot,3,3,"nz-timeline",6)(37,Vt,2,1,"ng-container",6),t.nI1(38,"ngrxPush"),t.k0s()()()()(),t.bVm()}if(2&i){const e=p.ngIf,l=t.sdS(33),o=t.XpG();t.R7$(),t.Y8G("nzGutter",25),t.R7$(4),t.Y8G("nzType",o.includeReadInput?"default":"primary"),t.R7$(2),t.Y8G("nzType",o.includeReadInput?"primary":"default"),t.R7$(4),t.Y8G("participantList",o.notificationTypes),t.R7$(3),t.Y8G("participantList",t.bMT(15,12,o.actions$)||t.lJ4(22,C)),t.R7$(4),t.Y8G("participantList",t.bMT(19,14,o.notificationSubjects$)||t.lJ4(23,C)),t.R7$(4),t.Y8G("participantList",t.bMT(23,16,o.originatingUsers$)||t.lJ4(24,C)),t.R7$(4),t.Y8G("participantList",t.bMT(27,18,o.organizations$)||t.lJ4(25,C)),t.R7$(5),t.Y8G("nzExtra",l),t.R7$(3),t.Y8G("nzGutter",16),t.R7$(2),t.Y8G("ngIf",e.size>0),t.R7$(),t.Y8G("ngIf",t.bMT(38,20,o.pageInfo$))}}let Yt=(()=>{class i{constructor(e,l,o,c,g){this.route=e,this.gql=l,this.networkErrorService=o,this.updateNotificationStatusMuation=c,this.unsubscribeMutation=g,this.notificationState=new Map,this.includeReadInput=!1,this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1,this.notificationTypes=[{id:1,type:h.GXf.Mention,iconName:"notification",displayName:"Mentioned"},{id:2,type:h.GXf.Subscription,iconName:"book",displayName:"Subscribed"}],this.userId=+this.route.snapshot.params.userId,this.updateNotificationStatusMutator=new K.E(o),this.unsubscribeMutator=new K.E(o)}ngOnInit(){this.initialQueryVars={includeRead:this.includeReadInput},this.queryRef=this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.connection$=this.results$.pipe((0,T.T)(e=>e.data?.notifications),(0,B.p)(X.kP)),this.pageInfo$=this.connection$.pipe((0,T.T)(e=>e.pageInfo),(0,B.p)(X.kP)),this.notificationStateObservable$=this.results$.pipe((0,T.T)(e=>e.data),(0,B.p)(X.kP),(0,T.T)(({notifications:e})=>{let l=new Map;return e.edges.forEach(o=>{if(o.node){let c={checked:!1};l.set(o.node,c),this.notificationState.set(o.node,c)}}),l})),this.notificationSubjects$=this.results$.pipe((0,T.T)(e=>e.data),(0,B.p)(X.kP),(0,T.T)(({notifications:e})=>e.notificationSubjects.map(l=>({id:`${l.subject?.__typename}:${l.subject?.id}`,subjectWithCount:l})))),this.originatingUsers$=this.results$.pipe((0,T.T)(({data:e})=>e.notifications.originatingUsers)),this.actions$=this.results$.pipe((0,T.T)(({data:e})=>e.notifications.eventTypes.map(l=>({id:l})))),this.organizations$=this.results$.pipe((0,T.T)(({data:e})=>e.notifications.organizations)),this.isLoading$=this.results$.pipe((0,T.T)(({loading:e})=>e),(0,A.Z)(!0))}fetchMore(e){this.queryRef.fetchMore({variables:{after:e}})}setIncludeRead(e){this.includeReadInput=e,this.queryRef.refetch({includeRead:this.includeReadInput})}onNotificationReasonSelected(e){this.queryRef.refetch({notificationReason:e?e.type:void 0})}onNotificationSubjectSelected(e){let l;if(void 0!==e){let o=e.subjectWithCount.subject?.__typename;l={id:e.subjectWithCount.subject.id,entityType:h.V9U[o]}}this.queryRef.refetch({originatingObject:l})}onOriginatingUserSelected(e){this.queryRef.refetch({originatingUserId:e?.id})}onActionSelected(e){this.queryRef.refetch({eventType:e?e.id:void 0})}onOrganizationSelected(e){this.queryRef.refetch({organizationId:e?.id})}markAsRead(e){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[e],newStatus:h.RJ$.Read}})}markAsUnread(e){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:[e],newStatus:h.RJ$.Unread}})}unsubscribe(e,l){this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[{id:e,entityType:h.V9U[l]}]}})}onNotificationCheckBoxClicked(e,l){let o=Array.from(this.notificationState.keys()).find(c=>c.id===e);if(o){let c=this.notificationState.get(o);c&&(c.checked=l)}l?(this.bulkMarkEnabled=!0,Array.from(this.notificationState.values()).every(c=>c.checked)?(this.allChecked=!0,this.someChecked=!1):this.someChecked=!0):Array.from(this.notificationState.values()).some(c=>c.checked)?(this.bulkMarkEnabled=!0,this.allChecked=!1,this.someChecked=!Array.from(this.notificationState.values()).every(c=>!c.checked)):(this.bulkMarkEnabled=!1,this.allChecked=!1,this.someChecked=!1)}onCheckAllCheckBoxClicked(e){e?this.checkAll():this.uncheckAll()}getCheckedIds(){let e=[];return this.notificationState.forEach((l,o)=>{l.checked&&e.push(o.id)}),e}checkAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((e,l)=>{e.checked=!0})}),this.allChecked=!0,this.someChecked=!1,this.bulkMarkEnabled=!0}uncheckAll(){this.queryRef.refetch().then(()=>{this.notificationState.forEach((e,l)=>{e.checked=!1})}),this.allChecked=!1,this.someChecked=!1,this.bulkMarkEnabled=!1}bulkMarkRead(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.RJ$.Read}}),this.uncheckAll()}bulkMarkUnread(){this.updateNotificationStatusMutator.mutate(this.updateNotificationStatusMuation,{input:{ids:this.getCheckedIds(),newStatus:h.RJ$.Unread}}),this.uncheckAll()}bulkUnsubscribe(){let e=[];this.notificationState.forEach((l,o)=>{l.checked&&o.subscription&&e.push({id:o.subscription.subscribable.id,entityType:h.V9U[o.subscription.subscribable.__typename]})}),this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:e}}).submitSuccess$.subscribe(l=>{l&&this.queryRef.refetch()}),this.uncheckAll()}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX),t.rXU(h.mDT),t.rXU(lt.N),t.rXU(h.dbG),t.rXU(h.ytN))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-notifications"]],decls:4,vars:6,consts:[["itemTemplate",""],["bulkOperations",""],["timelineDotTemplate",""],["unread",""],["noSubscriptionButton",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzGutter"],["nzSpan","4"],["nzSize","small"],["nz-button","","nzShape","round",3,"click","nzType"],["nzSpan","24"],["listTitle","Notification Reason",3,"participantSelectedEvent","participantList"],["listTitle","Action",3,"participantSelectedEvent","participantList"],["listTitle","Subject",3,"participantSelectedEvent","participantList"],["listTitle","User",3,"participantSelectedEvent","participantList"],["listTitle","Organization",3,"participantSelectedEvent","participantList"],["nzSpan","20"],["nzTitle","Notifications","id","card-content",3,"nzExtra"],["nzSpan","24",1,"timeline"],["nz-icon","",3,"nzType"],["nz-button","","nzSize","small",3,"click","disabled"],["nz-icon","","nzType","check"],["nz-icon","","nzType","bell"],["nz-checkbox","",3,"ngModelChange","nzCheckedChange","ngModel","nzIndeterminate"],[4,"ngFor","ngForOf"],[3,"nzDot","nzColor"],["nzFlex","auto"],[3,"event"],["nzFlex","50px"],[4,"ngIf","ngIfElse"],["nz-checkbox","",3,"ngModelChange","nzCheckedChange","ngModel"],["nz-icon","",1,"item-icon",3,"nzType","nzTheme"],["nz-tooltip","","nzTooltipTitle","Mark as unread.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-icon","","nzType","undo"],["nz-tooltip","","nzTooltipTitle","Mark as read.","nz-button","","nzType","default","nzShape","circle",3,"click"],["nz-tooltip","","nz-button","","nzType","default","nzShape","circle",3,"click","nzTooltipTitle"],["nz-tooltip","","nzTooltipTitle","You are no longer subscribed to the entity that triggered this notification.","nz-button","","nzType","default","nzShape","circle","disabled",""],["nz-list-load-more","",4,"ngIf"],["nz-list-load-more",""],["nz-button","","nzType","default","nzSize","small","nzBlock","",3,"click"]],template:function(l,o){1&l&&(t.j41(0,"nz-spin",5),t.nI1(1,"ngrxPush"),t.DNE(2,wt,39,26,"ng-container",6),t.nI1(3,"async"),t.k0s()),2&l&&(t.Y8G("nzSpinning",t.bMT(1,2,o.isLoading$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,4,o.notificationStateObservable$)))},dependencies:[f.Sq,f.bT,z.BC,z.vS,Z.LH,L.a,b.Uq,b.e,R.aO,R.dn,G.c,N.p,I.cK,j.Dn,q.$g,ct.SO,ct.XJ,It.O,H.T,f.Jj,f.lG,tt.L9,xt.s,D.g],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}.read-notification[_ngcontent-%COMP%]{background-color:gray}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]})}return i})();var Lt=a(3340);let Xt=(()=>{class i{constructor(e){this.route=e,this.userId=+this.route.snapshot.params.userId}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-users-source-suggestions"]],decls:1,vars:1,consts:[["cvcTitle","User Source Suggestions",3,"submitterId"]],template:function(l,o){1&l&&t.nrm(0,"cvc-source-suggestions-table",0),2&l&&t.Y8G("submitterId",o.userId)},dependencies:[Lt.E],styles:["[_nghost-%COMP%]{display:block}"]})}return i})();var Bt=a(1635),dt=a(4608),nt=a(4412),mt=a(9894),At=a(1305),gt=a(7391),ut=a(1236),Ht=a(6911),Wt=a(1202),S=a(5741),Qt=a(1413),et=a(6977),it=a(9449);function Jt(i,p){1&i&&t.nrm(0,"nz-alert",19)}function Kt(i,p){if(1&i&&(t.j41(0,"nz-form-item"),t.nrm(1,"cvc-form-errors-alert",20),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("errors",e.errorMessages)}}function Zt(i,p){if(1&i&&t.nrm(0,"nz-option",21),2&i){const e=p.$implicit;t.Y8G("nzLabel",e.name)("nzValue",e.id)}}let Dn=(()=>{class i{constructor(e,l,o){this.updateProfileGql=e,this.profileUpdatedEvent=new t.bkB,this.success=!1,this.errorMessages=[],this.loading=!1,this.destroy$=new Qt.B,this.updateProfileMutator=new K.E(o),this.countries$=l.fetch().pipe((0,T.T)(({data:c})=>c.countries))}ngOnInit(){if(!this.user)throw new Error("Must pass a user into the Profile Update Form");this.setInitialFormFields()}updateProfile(){if(this.username&&this.email){this.errorMessages=[];let e={username:this.username,email:this.email,name:(0,S.q2)(this.name),areaOfExpertise:(0,S.pz)(this.areaOfExpertise),orcid:(0,S.q2)(this.orcid),url:(0,S.q2)(this.url),bio:(0,S.q2)(this.bio),countryId:(0,S.pz)(this.countryId),twitterHandle:(0,S.q2)(this.twitterHandle),facebookProfile:(0,S.q2)(this.facebookProfile),linkedinProfile:(0,S.q2)(this.linkedinProfile)},l=this.updateProfileMutator.mutate(this.updateProfileGql,{input:e});l.submitSuccess$.pipe((0,et.Q)(this.destroy$)).subscribe(o=>{o&&(this.setInitialFormFields(),this.success=!0,this.profileUpdatedEvent.emit())}),l.submitError$.pipe((0,et.Q)(this.destroy$)).subscribe(o=>{o&&(this.errorMessages=o,this.success=!1)}),l.isSubmitting$.pipe((0,et.Q)(this.destroy$)).subscribe(o=>{this.loading=o})}}setInitialFormFields(){this.name=this.user.name,this.username=this.user.username,this.email=this.user.email,this.areaOfExpertise=this.user.areaOfExpertise,this.orcid=this.user.orcid,this.url=this.user.url,this.bio=this.user.bio,this.twitterHandle=this.user.twitterHandle,this.facebookProfile=this.user.facebookProfile,this.linkedinProfile=this.user.linkedinProfile,this.countryId=this.user.country?.id}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(h.iyz),t.rXU(h.jaV),t.rXU(lt.N))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-user-profile-form"]],inputs:{user:"user"},outputs:{profileUpdatedEvent:"profileUpdatedEvent"},decls:60,vars:18,consts:[["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable","",4,"ngIf"],[4,"ngIf"],["nzTip","Submitting",3,"nzSpinning"],["nzRequired",""],["nz-input","",2,"width","100%",3,"ngModelChange","ngModel"],["nz-input","","rows","5",2,"width","100%",3,"ngModelChange","ngModel"],["nzAllowClear","","nzShowSearch","",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzAllowClear","",3,"ngModelChange","ngModel"],["nzLabel","Patient Advocate","nzValue","PATIENT_ADVOCATE"],["nzLabel","Clinical Scientist","nzValue","CLINICAL_SCIENTIST"],["nzLabel","Research Scientist","nzValue","RESEARCH_SCIENTIST"],["nzAddOnBefore","https://orcid.org/"],["nz-input","","placeholder","0000-0000-0000-0000",2,"width","100%",3,"ngModelChange","ngModel"],["nzAddOnBefore","https://twitter.com/"],["nz-input","","placeholder","username",2,"width","100%",3,"ngModelChange","ngModel"],["nzAddOnBefore","https://www.facebook.com/"],["nzAddOnBefore","https://www.linkedin.com/in/"],["type","submit","nz-button","","nzType","primary","nzSize","small",2,"width","100%",3,"click","disabled"],["nzBanner","","nzMessage","Profile Updated","nzType","success","nzCloseable",""],[3,"errors"],[3,"nzLabel","nzValue"]],template:function(l,o){1&l&&(t.j41(0,"nz-card"),t.DNE(1,Jt,1,0,"nz-alert",0)(2,Kt,2,1,"nz-form-item",1),t.j41(3,"nz-spin",2)(4,"nz-form-item")(5,"nz-form-label",3),t.EFF(6,"Username"),t.k0s(),t.j41(7,"input",4),t.mxI("ngModelChange",function(g){return t.DH7(o.username,g)||(o.username=g),g}),t.k0s()(),t.j41(8,"nz-form-item")(9,"nz-form-label"),t.EFF(10,"Name"),t.k0s(),t.j41(11,"input",4),t.mxI("ngModelChange",function(g){return t.DH7(o.name,g)||(o.name=g),g}),t.k0s()(),t.j41(12,"nz-form-item")(13,"nz-form-label",3),t.EFF(14,"Email"),t.k0s(),t.j41(15,"input",4),t.mxI("ngModelChange",function(g){return t.DH7(o.email,g)||(o.email=g),g}),t.k0s()(),t.j41(16,"nz-form-item")(17,"nz-form-label"),t.EFF(18,"User Bio"),t.k0s(),t.j41(19,"textarea",5),t.mxI("ngModelChange",function(g){return t.DH7(o.bio,g)||(o.bio=g),g}),t.k0s()(),t.j41(20,"nz-form-item")(21,"nz-form-label"),t.EFF(22,"Country"),t.k0s(),t.j41(23,"nz-select",6),t.mxI("ngModelChange",function(g){return t.DH7(o.countryId,g)||(o.countryId=g),g}),t.DNE(24,Zt,1,2,"nz-option",7),t.nI1(25,"ngrxPush"),t.k0s()(),t.j41(26,"nz-form-item")(27,"nz-form-label"),t.EFF(28,"Area of Expertise"),t.k0s(),t.j41(29,"nz-select",8),t.mxI("ngModelChange",function(g){return t.DH7(o.areaOfExpertise,g)||(o.areaOfExpertise=g),g}),t.nrm(30,"nz-option",9)(31,"nz-option",10)(32,"nz-option",11),t.k0s()(),t.j41(33,"nz-form-item")(34,"nz-form-label"),t.EFF(35,"ORCID Identifier"),t.k0s(),t.j41(36,"nz-input-group",12)(37,"input",13),t.mxI("ngModelChange",function(g){return t.DH7(o.orcid,g)||(o.orcid=g),g}),t.k0s()()(),t.j41(38,"nz-form-item")(39,"nz-form-label"),t.EFF(40,"Personal Website"),t.k0s(),t.j41(41,"input",4),t.mxI("ngModelChange",function(g){return t.DH7(o.url,g)||(o.url=g),g}),t.k0s()(),t.j41(42,"nz-form-item")(43,"nz-form-label"),t.EFF(44,"X/Twitter Handle"),t.k0s(),t.j41(45,"nz-input-group",14)(46,"input",15),t.mxI("ngModelChange",function(g){return t.DH7(o.twitterHandle,g)||(o.twitterHandle=g),g}),t.k0s()()(),t.j41(47,"nz-form-item")(48,"nz-form-label"),t.EFF(49,"Facebook Profile"),t.k0s(),t.j41(50,"nz-input-group",16)(51,"input",15),t.mxI("ngModelChange",function(g){return t.DH7(o.facebookProfile,g)||(o.facebookProfile=g),g}),t.k0s()()(),t.j41(52,"nz-form-item")(53,"nz-form-label"),t.EFF(54,"LinkedIn Profile"),t.k0s(),t.j41(55,"nz-input-group",17)(56,"input",15),t.mxI("ngModelChange",function(g){return t.DH7(o.linkedinProfile,g)||(o.linkedinProfile=g),g}),t.k0s()()(),t.j41(57,"nz-form-item")(58,"button",18),t.bIt("click",function(){return o.updateProfile()}),t.EFF(59," Update Profile "),t.k0s()()()()),2&l&&(t.R7$(),t.Y8G("ngIf",o.success),t.R7$(),t.Y8G("ngIf",o.errorMessages.length>0),t.R7$(),t.Y8G("nzSpinning",o.loading),t.R7$(4),t.R50("ngModel",o.username),t.R7$(4),t.R50("ngModel",o.name),t.R7$(4),t.R50("ngModel",o.email),t.R7$(4),t.R50("ngModel",o.bio),t.R7$(4),t.R50("ngModel",o.countryId),t.R7$(),t.Y8G("ngForOf",t.bMT(25,16,o.countries$)),t.R7$(5),t.R50("ngModel",o.areaOfExpertise),t.R7$(8),t.R50("ngModel",o.orcid),t.R7$(4),t.R50("ngModel",o.url),t.R7$(5),t.R50("ngModel",o.twitterHandle),t.R7$(5),t.R50("ngModel",o.facebookProfile),t.R7$(5),t.R50("ngModel",o.linkedinProfile),t.R7$(2),t.Y8G("disabled",o.loading||!o.username||!o.email))},dependencies:[f.Sq,f.bT,z.me,z.BC,z.vS,b.Uq,b.e,Y.Ls,Y.Mo,I.cK,E.Y,R.aO,G.c,N.p,L.a,J.ld,J.WI,$.Sy,$.tg,it.j,tt.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}nz-form-item[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]})}return i})();var Vn=a(9765),qt=a(9945),tn=a(9162),nn=a(1626);let en=(()=>{class i{constructor(e){this.http=e,this.uploadComplete=new t.bkB}processProfileImage(e){if(e&&e[0]){let l=new FormData;l.append("image",e[0],e[0].name),this.uploadSubscription=this.http.post("/api/upload_profile_image",l).subscribe(o=>this.uploadComplete.emit(!0),o=>this.uploadComplete.emit(!1))}}ngOnDestroy(){this.uploadSubscription?.unsubscribe()}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(nn.Qq))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-avatar-uploader"]],outputs:{uploadComplete:"uploadComplete"},decls:4,vars:0,consts:[["profileImage",""],["type","file","accept","image/*",2,"display","none",3,"change"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"]],template:function(l,o){if(1&l){const c=t.RV6();t.j41(0,"input",1,0),t.bIt("change",function(){t.eBV(c);const P=t.sdS(1);return t.Njj(o.processProfileImage(P.files))}),t.k0s(),t.j41(2,"button",2),t.bIt("click",function(){t.eBV(c);const P=t.sdS(1);return t.Njj(P.click())}),t.EFF(3," Update Image\n"),t.k0s()}},dependencies:[R.aO,G.c,N.p],encapsulation:2})}return i})();var on=a(8542),an=a(1845),sn=a(3075);const rn=()=>[8,8];function ln(i,p){if(1&i&&t.nrm(0,"cvc-user-avatar",31),2&i){const e=t.XpG().ngIf;t.Y8G("user",e)("size",128)}}function W(i,p){if(1&i&&(t.j41(0,"div",32),t.nrm(1,"i",33),t.nI1(2,"lowercase"),t.nI1(3,"titlecase"),t.nI1(4,"entityColor"),t.j41(5,"span",34)(6,"strong"),t.EFF(7),t.k0s()()()),2&i){const e=t.XpG().ngIf;t.R7$(),t.Y8G("nzType","civic-"+t.bMT(2,3,e.role))("nzTwotoneColor",t.bMT(4,7,t.bMT(3,5,e.role))),t.R7$(6),t.SpI(" ",e.username,"")}}function cn(i,p){if(1&i&&(t.j41(0,"nz-descriptions-item",40),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",e.name," ")}}function pn(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",42),t.nrm(2,"i",43),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","https://",e.url,"",t.B4B)}}function dn(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",44),t.nrm(2,"i",45),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","http://twitter.com/",e.twitterHandle,"",t.B4B)}}function _t(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",46),t.nrm(2,"i",47),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","http://facebook.com/",e.facebookProfile,"",t.B4B)}}function mn(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",48),t.nrm(2,"i",49),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","http://linkedin.com/in/",e.linkedinProfile,"",t.B4B)}}function gn(i,p){if(1&i&&(t.qex(0),t.j41(1,"a",50),t.nrm(2,"i",51),t.k0s(),t.bVm()),2&i){const e=t.XpG(3).ngIf;t.R7$(),t.Mz_("href","https://orcid.org/",e.orcid,"",t.B4B)}}function un(i,p){if(1&i&&(t.j41(0,"div",41),t.DNE(1,pn,3,2,"ng-container",10)(2,dn,3,2,"ng-container",10)(3,_t,3,2,"ng-container",10)(4,mn,3,2,"ng-container",10)(5,gn,3,2,"ng-container",10),t.k0s()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.Y8G("ngIf",e.url),t.R7$(),t.Y8G("ngIf",e.twitterHandle),t.R7$(),t.Y8G("ngIf",e.facebookProfile),t.R7$(),t.Y8G("ngIf",e.linkedinProfile),t.R7$(),t.Y8G("ngIf",e.orcid)}}function _n(i,p){1&i&&(t.j41(0,"i",52),t.EFF(1," None provided "),t.k0s())}function fn(i,p){if(1&i&&(t.j41(0,"div")(1,"nz-descriptions",35),t.DNE(2,cn,2,1,"nz-descriptions-item",36),t.j41(3,"nz-descriptions-item",37),t.EFF(4),t.nI1(5,"enumToTitle"),t.k0s(),t.j41(6,"nz-descriptions-item",38),t.DNE(7,un,6,5,"div",39)(8,_n,2,0,"ng-template",null,5,t.C5r),t.k0s()()()),2&i){const e=t.sdS(9),l=t.XpG().ngIf;t.R7$(),t.Y8G("nzBordered",!0)("nzColumn",1),t.R7$(),t.Y8G("ngIf",l.name),t.R7$(2),t.SpI(" ",t.bMT(5,6,l.role)," "),t.R7$(3),t.Y8G("ngIf",l.url||l.twitterHandle||l.facebookProfile||l.linkedinProfile||l.orcid)("ngIfElse",e)}}function hn(i,p){if(1&i){const e=t.RV6();t.j41(0,"button",55),t.bIt("click",function(){t.eBV(e);const o=t.XpG(3);return t.Njj(o.updateProfileModalVisible=!0)}),t.EFF(1," Edit Profile "),t.k0s()}}function zn(i,p){if(1&i){const e=t.RV6();t.j41(0,"cvc-avatar-uploader",56),t.bIt("uploadComplete",function(o){t.eBV(e);const c=t.XpG(3);return t.Njj(c.profileUploadComplete(o))}),t.k0s()}}function Cn(i,p){1&i&&(t.qex(0),t.DNE(1,hn,2,0,"button",53)(2,zn,1,0,"cvc-avatar-uploader",54),t.bVm())}function bn(i,p){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",e.bio," ")}}function vn(i,p){1&i&&(t.qex(0),t.j41(1,"span",52)(2,"i"),t.EFF(3,"User has not provided a bio."),t.k0s()(),t.bVm())}function Tn(i,p){if(1&i&&(t.qex(0),t.EFF(1),t.nI1(2,"enumToTitle"),t.bVm()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",t.bMT(2,1,e.areaOfExpertise)," ")}}function yn(i,p){1&i&&(t.qex(0),t.j41(1,"span",52)(2,"i"),t.EFF(3,"Unspecified"),t.k0s()(),t.bVm())}function Mn(i,p){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const e=t.XpG(2).ngIf;t.R7$(),t.SpI(" ",e.country.name," ")}}function In(i,p){1&i&&(t.qex(0),t.j41(1,"span",52)(2,"i"),t.EFF(3,"Unspecified"),t.k0s()(),t.bVm())}function xn(i,p){if(1&i&&(t.qex(0),t.nrm(1,"cvc-tag-overflow",62),t.nI1(2,"ngrxPush"),t.bVm()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("maxDisplayCount",2)("tags",t.bMT(2,2,e.organization$))}}function Rn(i,p){1&i&&(t.qex(0),t.j41(1,"span",52)(2,"i"),t.EFF(3,"User is not a member of any Organizations."),t.k0s()(),t.bVm())}function Sn(i,p){if(1&i&&(t.j41(0,"nz-descriptions",57)(1,"nz-descriptions-item",58),t.DNE(2,bn,2,1,"ng-container",10)(3,vn,4,0,"ng-container",10),t.k0s(),t.j41(4,"nz-descriptions-item",59),t.DNE(5,Tn,3,3,"ng-container",10)(6,yn,4,0,"ng-container",10),t.k0s(),t.j41(7,"nz-descriptions-item",60),t.DNE(8,Mn,2,1,"ng-container",10)(9,In,4,0,"ng-container",10),t.k0s(),t.j41(10,"nz-descriptions-item",61),t.DNE(11,xn,3,4,"ng-container",10)(12,Rn,4,0,"ng-container",10),t.k0s()()),2&i){const e=t.XpG().ngIf;t.Y8G("nzColumn",4),t.R7$(2),t.Y8G("ngIf",e.bio),t.R7$(),t.Y8G("ngIf",!e.bio),t.R7$(),t.Y8G("nzSpan",2),t.R7$(),t.Y8G("ngIf",e.areaOfExpertise),t.R7$(),t.Y8G("ngIf",!e.areaOfExpertise),t.R7$(),t.Y8G("nzSpan",2),t.R7$(),t.Y8G("ngIf",e.country),t.R7$(),t.Y8G("ngIf",!e.country),t.R7$(),t.Y8G("nzSpan",4)("nzTitle","Organization"+(e.organizations.length>1?"s":"")),t.R7$(),t.Y8G("ngIf",e.organizations.length>0),t.R7$(),t.Y8G("ngIf",0===e.organizations.length)}}function Un(i,p){if(1&i&&(t.nrm(0,"i",33),t.nI1(1,"lowercase"),t.nI1(2,"titlecase"),t.nI1(3,"entityColor"),t.EFF(4," Editor Conflict of Interest Statement ")),2&i){const e=t.XpG(3).ngIf;t.Y8G("nzType","civic-"+t.bMT(1,2,e.role))("nzTwotoneColor",t.bMT(3,6,t.bMT(2,4,e.role)))}}function En(i,p){if(1&i){const e=t.RV6();t.qex(0),t.j41(1,"button",66),t.bIt("click",function(){t.eBV(e);const o=t.XpG(5);return t.Njj(o.updateCoiModalVisible=!0)}),t.EFF(2," Update COI "),t.k0s(),t.bVm()}}function jn(i,p){if(1&i&&(t.DNE(0,En,3,0,"ng-container",10),t.nI1(1,"ngrxPush")),2&i){const e=t.XpG(4);t.Y8G("ngIf",t.bMT(1,1,e.ownProfile$))}}function kn(i,p){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const e=t.XpG(4).ngIf;t.R7$(),t.SpI(" ",e.mostRecentConflictOfInterestStatement.coiStatement," ")}}function Pn(i,p){1&i&&t.EFF(0," I do not have any potential conflicts of interest. ")}function s(i,p){if(1&i&&(t.qex(0),t.j41(1,"nz-descriptions-item",67),t.EFF(2),t.nI1(3,"enumToTitle"),t.k0s(),t.j41(4,"nz-descriptions-item",68),t.EFF(5),t.nI1(6,"date"),t.k0s(),t.j41(7,"nz-descriptions-item",69),t.EFF(8),t.nI1(9,"date"),t.k0s(),t.j41(10,"nz-descriptions-item",70),t.DNE(11,kn,2,1,"ng-container",71)(12,Pn,1,0,"ng-template",null,8,t.C5r),t.k0s(),t.bVm()),2&i){const e=t.sdS(13),l=t.XpG(3).ngIf;t.R7$(),t.Y8G("nzSpan",1),t.R7$(),t.SpI(" ",t.bMT(3,9,l.mostRecentConflictOfInterestStatement.coiStatus)," "),t.R7$(2),t.Y8G("nzSpan",1),t.R7$(),t.SpI(" ",t.i5U(6,11,l.mostRecentConflictOfInterestStatement.createdAt,"shortDate")," "),t.R7$(2),t.Y8G("nzSpan",1),t.R7$(),t.SpI(" ",t.i5U(9,14,l.mostRecentConflictOfInterestStatement.expiresAt,"shortDate")," "),t.R7$(2),t.Y8G("nzSpan",3),t.R7$(),t.Y8G("ngIf",l.mostRecentConflictOfInterestStatement.coiPresent)("ngIfElse",e)}}function m(i,p){1&i&&(t.qex(0),t.j41(1,"nz-descriptions-item",67),t.EFF(2," None on file. "),t.k0s(),t.bVm()),2&i&&(t.R7$(),t.Y8G("nzSpan",3))}function r(i,p){if(1&i&&(t.j41(0,"nz-card",64),t.DNE(1,Un,5,8,"ng-template",null,6,t.C5r)(3,jn,2,3,"ng-template",null,7,t.C5r),t.j41(5,"nz-descriptions",65),t.DNE(6,s,14,17,"ng-container",10)(7,m,3,1,"ng-container",10),t.k0s()()),2&i){const e=t.sdS(2),l=t.sdS(4),o=t.XpG(2).ngIf;t.Y8G("nzTitle",e)("nzExtra",l),t.R7$(5),t.Y8G("nzBordered",!0)("nzColumn",3),t.R7$(),t.Y8G("ngIf",o.mostRecentConflictOfInterestStatement),t.R7$(),t.Y8G("ngIf",!o.mostRecentConflictOfInterestStatement)}}function d(i,p){1&i&&(t.qex(0),t.DNE(1,r,8,6,"nz-card",63),t.bVm())}function u(i,p){1&i&&(t.j41(0,"div",74)(1,"p")(2,"strong"),t.EFF(3,"Comments:"),t.k0s(),t.EFF(4," Total number of Comments posted by the Curator. "),t.k0s(),t.j41(5,"p")(6,"strong"),t.EFF(7,"Revisions:"),t.k0s(),t.EFF(8," Total number of Revisions suggested by the Curator. "),t.k0s(),t.j41(9,"p")(10,"strong"),t.EFF(11,"Submissions:"),t.k0s(),t.EFF(12," Total number of Evidence Items and Assertions submitted by the Curator. "),t.k0s(),t.j41(13,"p")(14,"strong"),t.EFF(15,"Moderations:"),t.k0s(),t.EFF(16," Total number of editorial actions made by the Curator. This includes accepting and rejecting Revisions, Evidence, and Assertions. "),t.k0s()())}function _(i,p){if(1&i&&(t.j41(0,"div",72),t.EFF(1," Ranked Activities "),t.j41(2,"span",52),t.nrm(3,"i",73),t.k0s()(),t.DNE(4,u,17,0,"ng-template",null,9,t.C5r)),2&i){const e=t.sdS(5);t.Y8G("nzPopoverContent",e)}}function Fn(i,p){1&i&&(t.j41(0,"span"),t.EFF(1,"Edit Profile"),t.k0s())}function Yn(i,p){if(1&i){const e=t.RV6();t.j41(0,"cvc-user-profile-form",75),t.bIt("profileUpdatedEvent",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.profileUpdated())}),t.k0s()}if(2&i){const e=t.XpG().ngIf;t.Y8G("user",e)}}function Ln(i,p){if(1&i){const e=t.RV6();t.qex(0),t.nrm(1,"cvc-section-navigation",12),t.j41(2,"nz-page-header",13)(3,"nz-page-header-content")(4,"nz-row",14)(5,"nz-col",15)(6,"nz-space",16),t.DNE(7,ln,1,2,"cvc-user-avatar",17)(8,W,8,9,"div",18)(9,fn,10,8,"div",19)(10,Cn,3,0,"ng-container",10),t.nI1(11,"ngrxPush"),t.k0s()(),t.j41(12,"nz-col",20)(13,"nz-space",21),t.DNE(14,Sn,13,13,"nz-descriptions",22)(15,d,2,0,"ng-container",10),t.k0s()(),t.j41(16,"nz-col",23)(17,"nz-descriptions",24)(18,"nz-descriptions-item",25),t.nrm(19,"cvc-stats-card",26),t.k0s(),t.DNE(20,_,6,1,"ng-template",null,2,t.C5r),t.k0s()()(),t.j41(22,"nz-row",27)(23,"nz-col",28),t.nrm(24,"cvc-tab-navigation",29),t.nI1(25,"ngrxPush"),t.j41(26,"div",30),t.nrm(27,"router-outlet"),t.k0s()()()()(),t.j41(28,"nz-modal",11),t.mxI("nzVisibleChange",function(o){t.eBV(e);const c=t.XpG();return t.DH7(c.updateProfileModalVisible,o)||(c.updateProfileModalVisible=o),t.Njj(o)}),t.bIt("nzOnCancel",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.handleProfileModalCancel())}),t.DNE(29,Fn,2,0,"ng-template",null,3,t.C5r)(31,Yn,1,1,"ng-template",null,4,t.C5r),t.k0s(),t.bVm()}if(2&i){const e=p.ngIf,l=t.sdS(21),o=t.sdS(30),c=t.sdS(32),g=t.XpG();t.R7$(),t.Y8G("displayName",e.displayName),t.R7$(3),t.Y8G("nzGutter",t.lJ4(16,rn)),t.R7$(6),t.Y8G("ngIf",t.bMT(11,12,g.ownProfile$)),t.R7$(5),t.Y8G("ngIf","EDITOR"===e.role||"ADMIN"===e.role),t.R7$(3),t.Y8G("nzTitle",l),t.R7$(),t.Y8G("cvcStats",e.statsHash)("cvcRanks",e.ranks),t.R7$(5),t.Y8G("tabs",t.bMT(25,14,g.tabs$)),t.R7$(4),t.R50("nzVisible",g.updateProfileModalVisible),t.Y8G("nzContent",c)("nzTitle",o)("nzFooter",null)}}function Xn(i,p){1&i&&(t.j41(0,"span"),t.EFF(1,"Update your Conflict of Interest Statement"),t.k0s())}function Bn(i,p){if(1&i){const e=t.RV6();t.j41(0,"cvc-user-coi-form",76),t.bIt("coiUpdatedEvent",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.coiUpdated())}),t.k0s()}}let $n=class Gn{constructor(p,e,l){this.gql=p,this.viewerService=e,this.route=l,this.organization$=new nt.t([]),this.ownProfile$=new nt.t(!1),this.uploadError=!1,this.updateSuccess=!1,this.updateCoiModalVisible=!1,this.updateProfileModalVisible=!1,this.defaultTabs=[{routeName:"activity",tabLabel:"Activity",iconName:"civic-event"},{routeName:"evidence",tabLabel:"Evidence Items",iconName:"civic-evidence"},{routeName:"assertions",tabLabel:"Assertions",iconName:"civic-assertion"},{routeName:"source-suggestions",tabLabel:"Source Suggestions",iconName:"file-add"}],this.tabs$=new nt.t(this.defaultTabs),this.routeSub=this.route.params.subscribe(o=>{this.queryRef=this.gql.watch({userId:+o.userId});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,dt.E)("loading"),(0,A.Z)(!0)),this.user$=c.pipe((0,dt.E)("data","user")),this.user$.pipe((0,T.T)(g=>g?g.organizations.map(P=>({id:P.id,name:P.name,link:P.url})):[]),(0,mt.s)(this)).subscribe(g=>{this.organization$.next(g)}),this.viewerSub=this.viewerService.viewer$.subscribe(g=>{g.id===+o.userId?(this.tabs$.next([...this.defaultTabs,{routeName:"notifications",tabLabel:"Notifications",iconName:"bell"}]),this.ownProfile$.next(!0)):this.ownProfile$.next(!1)})})}ngOnDestroy(){this.routeSub.unsubscribe(),this.viewerSub?.unsubscribe()}profileUploadComplete(p){p?(this.queryRef?.refetch(),this.updateSuccess=!0):this.uploadError=!0}coiUpdated(){this.updateCoiModalVisible=!1,this.queryRef?.refetch()}profileUpdated(){this.updateProfileModalVisible=!1,this.queryRef?.refetch()}handleCoiModalCancel(){this.updateCoiModalVisible=!1}handleProfileModalCancel(){this.updateProfileModalVisible=!1}static#t=this.\u0275fac=function(e){return new(e||Gn)(t.rXU(h.RSu),t.rXU(At.q),t.rXU(v.nX))};static#n=this.\u0275cmp=t.VBU({type:Gn,selectors:[["users-detail"]],decls:7,vars:7,consts:[["coiModalTitle",""],["coiModalContent",""],["activitiesTitle",""],["profileModalTitle",""],["profileModalContent",""],["noLinks",""],["statementTitle",""],["updateCoi",""],["noStatement",""],["rankingCalculations",""],[4,"ngIf"],[3,"nzVisibleChange","nzOnCancel","nzVisible","nzContent","nzTitle","nzFooter"],[3,"displayName"],[1,"site-page-header"],[1,"profile-content",3,"nzGutter"],["nzFlex","0 1 128px"],["nzDirection","vertical"],["shape","square",3,"user","size",4,"nzSpaceItem"],["class","user-pseudo-tag",4,"nzSpaceItem"],[4,"nzSpaceItem"],["nzFlex","1 1 400px"],["nzDirection","vertical",2,"width","100%"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzFlex","0 1 150px"],["nzSize","small","nzLayout","vertical","nzBordered","true"],[3,"nzTitle"],[3,"cvcStats","cvcRanks"],[2,"margin-top","16px"],["nzSpan","24"],[3,"tabs"],[1,"content"],["shape","square",3,"user","size"],[1,"user-pseudo-tag"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"],["nz-typography",""],["nzLayout","vertical","nzSize","small",3,"nzBordered","nzColumn"],["nzTitle","Name",4,"ngIf"],["nzTitle","Role"],["nzTitle","Personal Links"],["class","user-socials",4,"ngIf","ngIfElse"],["nzTitle","Name"],[1,"user-socials"],["target","_blank","nz-tooltip","","nzTooltipTitle","Personal Website",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Twitter Profile",3,"href"],["nz-icon","","nzType","twitter","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","Facebook Profile",3,"href"],["nz-icon","","nzType","facebook","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","LinkedIn Profile",3,"href"],["nz-icon","","nzType","linkedin","nzTheme","outline"],["target","_blank","nz-tooltip","","nzTooltipTitle","ORCiD Record",3,"href"],["nz-icon","","nzType","civic-orcid","nzTheme","outline"],["nz-typography","","nzType","secondary"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click",4,"nzSpaceItem"],[3,"uploadComplete",4,"nzSpaceItem"],["nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],[3,"uploadComplete"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Biography","nzSpan","4"],["nzTitle","Area of Expertise",3,"nzSpan"],["nzTitle","Country",3,"nzSpan"],[3,"nzSpan","nzTitle"],["tagType","organization",3,"maxDisplayCount","tags"],["class","editor-coi-card","nzSize","small",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzSize","small",1,"editor-coi-card",3,"nzTitle","nzExtra"],["nzLayout","horizontal","nzSize","small",1,"user-coi",3,"nzBordered","nzColumn"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nzTitle","Status",3,"nzSpan"],["nzTitle","Updated",3,"nzSpan"],["nzTitle","Expires",3,"nzSpan"],["nzTitle","Statement",3,"nzSpan"],[4,"ngIf","ngIfElse"],["nz-popover","","nzPopoverTitle","How Activity Rankings are Calculated","nzPopoverPlacement","leftTop",2,"white-space","nowrap",3,"nzPopoverContent"],["nz-icon","","nzType","info-circle","nzTheme","outline"],[1,"calculation-info"],[3,"profileUpdatedEvent","user"],[3,"coiUpdatedEvent"]],template:function(e,l){if(1&e){const o=t.RV6();t.DNE(0,Ln,33,17,"ng-container",10),t.nI1(1,"ngrxPush"),t.j41(2,"nz-modal",11),t.mxI("nzVisibleChange",function(g){return t.eBV(o),t.DH7(l.updateCoiModalVisible,g)||(l.updateCoiModalVisible=g),t.Njj(g)}),t.bIt("nzOnCancel",function(){return t.eBV(o),t.Njj(l.handleCoiModalCancel())}),t.DNE(3,Xn,2,0,"ng-template",null,0,t.C5r)(5,Bn,1,0,"ng-template",null,1,t.C5r),t.k0s()}if(2&e){const o=t.sdS(4),c=t.sdS(6);t.Y8G("ngIf",t.bMT(1,5,l.user$)),t.R7$(2),t.R50("nzVisible",l.updateCoiModalVisible),t.Y8G("nzContent",c)("nzTitle",o)("nzFooter",null)}},dependencies:[f.bT,v.n3,b.Uq,b.e,n.WB,n.zR,x.U5,x.Dq,y.xA,y.gr,I.cK,F.F2,j.Dn,gt.Di,Z.LH,ut.L_,R.aO,G.c,N.p,Ht.U,Wt.j,Dn,Vn.n,qt.N,tn.G,en,on.d,f.GH,f.PV,f.vh,tt.L9,an.f,sn.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.profile-content[_ngcontent-%COMP%]{flex-wrap:nowrap}.user-pseudo-tag[_ngcontent-%COMP%]{text-align:center;background-color:#f4f4f4;border:1px solid #d9d9d9;border-radius:4px}.user-links[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:120%}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-links[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child{margin-right:0}.user-socials[_ngcontent-%COMP%]{text-align:center}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:4px}.user-socials[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-of-type{margin-right:0}.editor-coi-card[_ngcontent-%COMP%] .ant-card-body{padding:0;margin:0 -1px -1px}.calculation-info[_ngcontent-%COMP%]{padding:12px;max-width:300px}.calculation-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}"]})};$n=(0,Bt.Cg)([(0,mt.d)()],$n);const An=[{path:"",component:$n,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",pathMatch:"full",redirectTo:"activity"},{path:"evidence",component:Mt,data:{breadcrumb:"Evidence"}},{path:"assertions",component:bt,data:{breadcrumb:"Assertions"}},{path:"activity",component:Tt,data:{breadcrumb:"Activity"}},{path:"source-suggestions",component:Xt,data:{breadcrumb:"Source Suggestions"}},{path:"notifications",component:Yt,data:{breadcrumb:"Notifications"}}]}];let Hn=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[v.iI.forChild(An),v.iI]})}return i})();var Wn=a(3384),Qn=a(9374);let Jn=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[f.MD,v.iI,Hn,E.$,b.f3,Wn.Qe,n.ZJ,x.pc,y.WF,I.Ti,st.g,F.U6,at.Fw,j.Y3,gt.kT,Z.Qt,ut.MC,R.Zw,Qn.r,ht.N,ft,k.i,V.C,U.W,w.P,ot,M.U,zt.K]})}return i})()},4391:(wn,Q,a)=>{a.r(Q),a.d(Q,{UsersModule:()=>Pn});var f=a(177),V=a(1188),n=a(3953),v=a(3062),U=a(5103),x=a(7529),w=a(513),R=a(6389),j=a(7685),t=a(7391),ot=a(1635),y=a(9145),M=a(9894),b=a(4412),k=a(6354),I=a(9417),at=a(3146),st=a(9438),F=a(5703),z=a(2617),E=a(1997),Y=a(1672),O=a(5154),rt=a(6408),L=a(1774);const J=()=>[8,8],$=s=>({$implicit:s}),ft=s=>({"list-height-block":s}),ht=()=>[0,5];function zt(s,m){1&s&&n.eu8(0)}function Ct(s,m){1&s&&n.eu8(0)}function bt(s,m){1&s&&n.eu8(0)}function h(s,m){1&s&&n.eu8(0)}function vt(s,m){if(1&s&&(n.j41(0,"span",14),n.EFF(1),n.k0s(),n.j41(2,"span",15),n.nrm(3,"i",16),n.k0s()),2&s){const r=n.XpG().$implicit;n.R7$(),n.SpI(" ",r.title," "),n.R7$(2),n.Y8G("nzTooltipTitle",r.info)}}function Tt(s,m){if(1&s&&(n.j41(0,"nz-badge",20),n.nrm(1,"nz-avatar",21),n.k0s()),2&s){const r=n.XpG().$implicit;n.Y8G("nzCount",r.rank)("nzOffset",n.lJ4(3,ht)),n.R7$(),n.Y8G("nzSrc",r.profileImagePath)}}function yt(s,m){if(1&s&&(n.j41(0,"nz-list-item"),n.DNE(1,Tt,2,4,"ng-template",null,5,n.C5r),n.j41(3,"nz-list-item-meta",17)(4,"nz-list-item-meta-title"),n.nrm(5,"cvc-user-tag",18),n.k0s()(),n.j41(6,"ul",19)(7,"nz-list-item-action")(8,"span",15),n.EFF(9),n.nI1(10,"number"),n.k0s()()()()),2&s){const r=m.$implicit,d=n.sdS(2);n.R7$(3),n.Y8G("nzAvatar",d),n.R7$(2),n.Y8G("user",r.user),n.R7$(4),n.SpI(" Count: ",n.bMT(10,3,r.actionCount)," ")}}function Mt(s,m){if(1&s&&n.nrm(0,"nz-list-empty",22),2&s){n.XpG();const r=n.sdS(7);n.Y8G("nzNoResult",r)}}function K(s,m){1&s&&n.nrm(0,"nz-empty",23)}function X(s,m){if(1&s&&(n.DNE(0,vt,4,2,"ng-template",null,3,n.C5r),n.j41(2,"nz-list",10)(3,"div",11),n.DNE(4,yt,11,5,"nz-list-item",12),n.k0s(),n.DNE(5,Mt,1,1,"nz-list-empty",13)(6,K,1,0,"ng-template",null,4,n.C5r),n.k0s()),2&s){const r=m.$implicit,d=n.sdS(1);n.R7$(2),n.Y8G("nzHeader",d)("nzLoading",r.loading),n.R7$(),n.Y8G("ngClass",n.eq3(5,ft,r.rows.length>0)),n.R7$(),n.Y8G("ngForOf",r.rows),n.R7$(),n.Y8G("ngIf",0===r.rows.length)}}function T(s,m){1&s&&(n.j41(0,"span",14)(1,"strong"),n.EFF(2,"Contributor Curation Activity Leaderboards"),n.k0s()())}function B(s,m){if(1&s){const r=n.RV6();n.j41(0,"span"),n.EFF(1,"Time: "),n.k0s(),n.j41(2,"nz-select",24),n.nI1(3,"ngrxPush"),n.bIt("ngModelChange",function(u){n.eBV(r);const _=n.XpG();return n.Njj(_.timeWindow$.next(u))}),n.nrm(4,"nz-option",25)(5,"nz-option",26)(6,"nz-option",27)(7,"nz-option",28),n.k0s()}if(2&s){const r=n.XpG();n.R7$(2),n.Y8G("nzDropdownMatchSelectWidth",!1)("ngModel",n.bMT(3,2,r.timeWindow$))}}let A=class Nn{constructor(m,r,d,u){this.commentsGQL=m,this.revisionsGQL=r,this.moderationGQL=d,this.submissionsGQL=u,this.initialCommentsView={title:"Comments Leaderboard",info:"Contributors ranked by the total number of posted Comments.",loading:!1,rows:[]},this.initialRevisionsView={title:"Revisions Leaderboard",info:"Contributors ranked by the total number of Revisions they have suggested.",loading:!1,rows:[]},this.initialModerationView={title:"Moderation Leaderboard",info:"Contributors ranked by the total number of editorial actions they have taken. This includes accepting and rejecting Revisions, Evidence, and Assertions.",loading:!1,rows:[]},this.initialSubmissionsView={title:"Submissions Leaderboard",info:"Contributors ranked by the total number of submitted Evidence Items and Assertions.",loading:!1,rows:[]},this.initialRows=25,this.initialWindow=y.wJP.AllTime,this.fetchPolicy={fetchPolicy:"no-cache",nextFetchPolicy:"no-cache"},this.timeWindow$=new b.t(this.initialWindow),this.timeWindow$.pipe((0,M.s)(this)).subscribe(_=>{this.commentsQueryRef.refetch({window:_}),this.revisionsQueryRef.refetch({window:_}),this.moderationQueryRef.refetch({window:_}),this.submissionsQueryRef.refetch({window:_})}),this.commentsView$=new b.t(this.initialCommentsView),this.revisionsView$=new b.t(this.initialRevisionsView),this.moderationView$=new b.t(this.initialModerationView),this.submissionsView$=new b.t(this.initialSubmissionsView)}ngOnInit(){const m=r=>({rank:r.rank,actionCount:r.actionCount,profileImagePath:r.profileImagePath,name:r.name,user:{id:r.id,displayName:r.displayName,role:r.role}});this.commentsQueryRef=this.commentsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.commentsQueryRef.valueChanges.pipe((0,k.T)(r=>{let d=[];return r.data&&r.data.userLeaderboards&&r.data.userLeaderboards.commentsLeaderboard.edges.map(u=>{if(u.node){const _=m(u.node);d.push(_)}}),{title:this.initialCommentsView.title,info:this.initialCommentsView.info,loading:r.loading,rows:[...d]}}),(0,M.s)(this)).subscribe(r=>this.commentsView$.next(r)),this.moderationQueryRef=this.moderationGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.moderationQueryRef.valueChanges.pipe((0,k.T)(r=>{let d=[];return r.data&&r.data.userLeaderboards&&r.data.userLeaderboards.moderationLeaderboard.edges.map(u=>{if(u.node){const _=m(u.node);d.push(_)}}),{title:this.initialModerationView.title,info:this.initialModerationView.info,loading:r.loading,rows:[...d]}}),(0,M.s)(this)).subscribe(r=>this.moderationView$.next(r)),this.revisionsQueryRef=this.revisionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.revisionsQueryRef.valueChanges.pipe((0,k.T)(r=>{let d=[];return r.data&&r.data.userLeaderboards&&r.data.userLeaderboards.revisionsLeaderboard.edges.map(u=>{if(u.node){const _=m(u.node);d.push(_)}}),{title:this.initialRevisionsView.title,info:this.initialRevisionsView.info,loading:r.loading,rows:[...d]}}),(0,M.s)(this)).subscribe(r=>this.revisionsView$.next(r)),this.submissionsQueryRef=this.submissionsGQL.watch({first:this.initialRows,window:this.initialWindow},this.fetchPolicy),this.submissionsQueryRef.valueChanges.pipe((0,k.T)(r=>{let d=[];return r.data&&r.data.userLeaderboards&&r.data.userLeaderboards.submissionsLeaderboard.edges.map(u=>{if(u.node){const _=m(u.node);d.push(_)}}),{title:this.initialSubmissionsView.title,info:this.initialSubmissionsView.info,loading:r.loading,rows:[...d]}}),(0,M.s)(this)).subscribe(r=>this.submissionsView$.next(r))}static#t=this.\u0275fac=function(r){return new(r||Nn)(n.rXU(y.NMX),n.rXU(y.npr),n.rXU(y.V3k),n.rXU(y.eJL))};static#n=this.\u0275cmp=n.VBU({type:Nn,selectors:[["cvc-user-leaderboards"]],decls:20,vars:28,consts:[["leaderboard",""],["cardTitle",""],["cardExtra",""],["leaderboardHeader",""],["listEmpty",""],["rowAvatar",""],["nzSize","small",3,"nzTitle","nzExtra"],[3,"nzGutter"],["nzSpan","6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzSize","small","nzBordered","","nzItemLayout","vertical","nzItemLayout","horizontal",3,"nzHeader","nzLoading"],[3,"ngClass"],[4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nz-typography",""],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nzTheme","outline","nz-tooltip","",3,"nzTooltipTitle"],[3,"nzAvatar"],[3,"user"],["nz-list-item-actions",""],["nzSize","small",3,"nzCount","nzOffset"],["nzIcon","user","nzSize","small","nzShape","square",3,"nzSrc"],[3,"nzNoResult"],["nzNotFoundImage","simple","nzNotFoundContent","No curation activity found for the selected time window."],["nzSize","small",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","All","nzValue","ALL_TIME"],["nzLabel","Past Week","nzValue","LAST_WEEK"],["nzLabel","Past Month","nzValue","LAST_MONTH"],["nzLabel","Past Year","nzValue","LAST_YEAR"]],template:function(r,d){if(1&r&&(n.j41(0,"nz-card",6)(1,"nz-row",7)(2,"nz-col",8),n.DNE(3,zt,1,0,"ng-container",9),n.nI1(4,"ngrxPush"),n.k0s(),n.j41(5,"nz-col",8),n.DNE(6,Ct,1,0,"ng-container",9),n.nI1(7,"ngrxPush"),n.k0s(),n.j41(8,"nz-col",8),n.DNE(9,bt,1,0,"ng-container",9),n.nI1(10,"ngrxPush"),n.k0s(),n.j41(11,"nz-col",8),n.DNE(12,h,1,0,"ng-container",9),n.nI1(13,"ngrxPush"),n.k0s()()(),n.DNE(14,X,8,7,"ng-template",null,0,n.C5r)(16,T,3,0,"ng-template",null,1,n.C5r)(18,B,8,4,"ng-template",null,2,n.C5r)),2&r){const u=n.sdS(15),_=n.sdS(17),Fn=n.sdS(19);n.Y8G("nzTitle",_)("nzExtra",Fn),n.R7$(),n.Y8G("nzGutter",n.lJ4(19,J)),n.R7$(2),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.eq3(20,$,n.bMT(4,11,d.commentsView$))),n.R7$(3),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.eq3(22,$,n.bMT(7,13,d.revisionsView$))),n.R7$(3),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.eq3(24,$,n.bMT(10,15,d.moderationView$))),n.R7$(3),n.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",n.eq3(26,$,n.bMT(13,17,d.submissionsView$)))}},dependencies:[f.YU,f.Sq,f.bT,f.T3,I.BC,I.vS,at.dz,st.PM,x.Uq,x.e,F.cK,z.eE,z.nt,z.lQ,z.qx,z.mf,z.MV,z.Tc,E.ld,E.WI,t.Di,Y.RW,U.Dn,O.LH,rt.r,f.QX,L.L9],styles:["[_nghost-%COMP%]{display:block}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action{margin-left:1em}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li{padding-right:0}nz-list-item[_ngcontent-%COMP%] .ant-list-item-action li nz-tag{margin-right:0}nz-badge[_ngcontent-%COMP%] .ant-badge-count{background-color:#662d91;padding:0 2px}nz-list-item-meta-title[_ngcontent-%COMP%] .ant-list-item-meta-title{padding-top:1px;margin-bottom:0;font-weight:400}.list-height-block[_ngcontent-%COMP%]{height:160px;overflow-y:scroll}.time-select[_ngcontent-%COMP%]{min-width:80px}.board-header[_ngcontent-%COMP%]{font-weight:700}"],changeDetection:0})};A=(0,ot.Cg)([(0,M.d)()],A);var lt=a(9765),Z=a(9995),G=a(1413),N=a(9199),q=a(3294),ct=a(7048),It=a(5245),H=a(5964),tt=a(152),xt=a(3993),D=a(4608),C=a(9247),pt=a(5699),Rt=a(1852),St=a(1405),Ut=a(435),Et=a(3296),jt=a(3431),kt=a(2923),Pt=a(6911),Ft=a(1845),$t=a(8139);const Gt=s=>({height:s}),Nt=()=>[],Ot=()=>({x:"680px",y:"800px"});function Dt(s,m){}function Vt(s,m){if(1&s&&(n.qex(0),n.j41(1,"nz-card",9),n.DNE(2,Dt,0,0,"ng-template",10),n.k0s(),n.bVm()),2&s){n.XpG();const r=n.sdS(4),d=n.sdS(6),u=n.sdS(8);n.R7$(),n.Y8G("nzTitle",d)("nzExtra",u),n.R7$(),n.Y8G("ngTemplateOutlet",r)}}function wt(s,m){}function Yt(s,m){if(1&s&&(n.j41(0,"div",11)(1,"nz-card",12),n.DNE(2,wt,0,0,"ng-template",10),n.k0s()()),2&s){const r=n.XpG(),d=n.sdS(4),u=n.sdS(6),_=n.sdS(8);n.Y8G("ngStyle",n.eq3(4,Gt,r.cvcHeight)),n.R7$(),n.Y8G("nzTitle",u)("nzExtra",_),n.R7$(),n.Y8G("ngTemplateOutlet",d)}}function Lt(s,m){if(1&s&&(n.qex(0),n.EFF(1),n.bVm()),2&s){const r=n.XpG().$implicit;n.R7$(),n.SpI(" ",r.name," ")}}function Xt(s,m){1&s&&(n.j41(0,"i",39),n.EFF(1,"Not specified"),n.k0s())}function Bt(s,m){if(1&s&&(n.j41(0,"div"),n.nrm(1,"cvc-tag-overflow",40),n.k0s()),2&s){const r=n.XpG().$implicit,d=n.XpG(2);n.R7$(),n.Y8G("maxDisplayCount",1)("tags",r.organizations)("matchingText",d.orgNameInput)}}function dt(s,m){1&s&&(n.j41(0,"i",39),n.EFF(1,"None specified"),n.k0s())}function nt(s,m){if(1&s&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&s){const r=n.XpG().$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,r.mostRecentActivityTimestamp)," ")}}function mt(s,m){1&s&&n.EFF(0," -- ")}function At(s,m){if(1&s&&(n.j41(0,"tr",34)(1,"td",26),n.nrm(2,"cvc-user-tag",35),n.k0s(),n.j41(3,"td",36),n.DNE(4,Lt,2,1,"ng-container",8)(5,Xt,2,0,"ng-template",null,5,n.C5r),n.k0s(),n.j41(7,"td"),n.DNE(8,Bt,2,3,"div",8)(9,dt,2,0,"ng-template",null,6,n.C5r),n.k0s(),n.j41(11,"td"),n.EFF(12),n.nI1(13,"enumToTitle"),n.k0s(),n.j41(14,"td",37),n.DNE(15,nt,3,3,"ng-container",8)(16,mt,1,0,"ng-template",null,7,n.C5r),n.k0s(),n.j41(18,"td",38),n.EFF(19),n.k0s(),n.j41(20,"td",38),n.EFF(21),n.k0s()()),2&s){const r=m.$implicit,d=n.sdS(6),u=n.sdS(10),_=n.sdS(17);n.R7$(2),n.Y8G("user",r),n.R7$(2),n.Y8G("ngIf",r.name)("ngIfElse",d),n.R7$(4),n.Y8G("ngIf",r.organizations.length>0)("ngIfElse",u),n.R7$(4),n.SpI(" ",n.bMT(13,10,r.role)," "),n.R7$(3),n.Y8G("ngIf",r.mostRecentActivityTimestamp)("ngIfElse",_),n.R7$(4),n.SpI(" ",r.evidenceCount," "),n.R7$(2),n.SpI(" ",r.revisionCount," ")}}function gt(s,m){if(1&s){const r=n.RV6();n.j41(0,"nz-table",13,4),n.nI1(2,"ngrxPush"),n.nI1(3,"ngrxPush"),n.nI1(4,"ngrxPush"),n.nI1(5,"ngrxPush"),n.bIt("cvcTableScrollOnScroll",function(u){n.eBV(r);const _=n.XpG();return n.Njj(_.scrollEvent$.next(u))}),n.j41(6,"thead",14),n.bIt("nzSortOrderChange",function(u){n.eBV(r);const _=n.XpG();return n.Njj(_.sortChange$.next(u))}),n.j41(7,"tr",15)(8,"th",16),n.EFF(9," User "),n.k0s(),n.j41(10,"th",17),n.EFF(11," Name "),n.k0s(),n.j41(12,"th",18),n.EFF(13,"Organizations"),n.k0s(),n.j41(14,"th",19),n.EFF(15," Role "),n.k0s(),n.j41(16,"th",20),n.EFF(17," Last Action "),n.k0s(),n.j41(18,"th",21),n.nrm(19,"i",22),n.EFF(20," Count "),n.k0s(),n.j41(21,"th",23),n.nrm(22,"i",24),n.EFF(23," Count "),n.k0s()(),n.j41(24,"tr",25),n.nrm(25,"th",26),n.j41(26,"th")(27,"cvc-clearable-input-filter",27),n.mxI("inputModelChange",function(u){n.eBV(r);const _=n.XpG();return n.DH7(_.nameInput,u)||(_.nameInput=u),n.Njj(u)}),n.bIt("inputModelChange",function(){n.eBV(r);const u=n.XpG();return n.Njj(u.filterChange$.next())}),n.k0s()(),n.j41(28,"th")(29,"cvc-clearable-input-filter",27),n.mxI("inputModelChange",function(u){n.eBV(r);const _=n.XpG();return n.DH7(_.orgNameInput,u)||(_.orgNameInput=u),n.Njj(u)}),n.bIt("inputModelChange",function(){n.eBV(r);const u=n.XpG();return n.Njj(u.filterChange$.next())}),n.k0s()(),n.j41(30,"th")(31,"nz-select",28),n.bIt("ngModelChange",function(){n.eBV(r);const u=n.XpG();return n.Njj(u.filterChange$.next())}),n.mxI("ngModelChange",function(u){n.eBV(r);const _=n.XpG();return n.DH7(_.roleInput,u)||(_.roleInput=u),n.Njj(u)}),n.nrm(32,"nz-option",29)(33,"nz-option",30)(34,"nz-option",31),n.k0s()(),n.nrm(35,"th")(36,"th",32)(37,"th",32),n.k0s()(),n.j41(38,"tbody"),n.DNE(39,At,22,12,"ng-template",33),n.k0s()()}if(2&s){const r=n.XpG();n.Y8G("nzData",n.bMT(2,25,r.row$)||n.lJ4(33,Nt))("nzLoading",!n.bMT(3,27,r.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",r.queryRef)("cvcTableScrollPageInfo",n.bMT(4,29,r.pageInfo$))("cvcTableScrollToIndex",n.bMT(5,31,r.scrollIndex$))("nzVirtualForTrackBy",r.trackByIndex)("nzScroll",n.lJ4(34,Ot))("nzFrontPagination",!1)("nzShowPagination",!1),n.R7$(10),n.Y8G("nzColumnKey",r.sortColumns.Name)("nzSortFn",!0),n.R7$(4),n.Y8G("nzColumnKey",r.sortColumns.Role)("nzSortFn",!0),n.R7$(2),n.Y8G("nzColumnKey",r.sortColumns.LastAction)("nzSortFn",!0),n.R7$(2),n.Y8G("nzColumnKey",r.sortColumns.EvidenceCount)("nzSortFn",!0),n.R7$(3),n.Y8G("nzColumnKey",r.sortColumns.RevisionCount)("nzSortFn",!0),n.R7$(6),n.R50("inputModel",r.nameInput),n.R7$(2),n.R50("inputModel",r.orgNameInput),n.R7$(2),n.Y8G("nzDropdownMatchSelectWidth",!1),n.R50("ngModel",r.roleInput)}}function ut(s,m){}function Ht(s,m){if(1&s&&(n.qex(0),n.DNE(1,ut,0,0,"ng-template",10),n.bVm()),2&s){const r=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",r.cvcTitleTemplate)}}function Wt(s,m){if(1&s&&(n.qex(0),n.EFF(1),n.bVm()),2&s){const r=n.XpG(2);n.R7$(),n.SpI(" ",r.cvcTitle," ")}}function S(s,m){if(1&s&&(n.DNE(0,Ht,2,1,"ng-container",41)(1,Wt,2,1,"ng-container",41),n.j41(2,"span",42),n.nrm(3,"cvc-table-counts",43),n.k0s()),2&s){const r=n.XpG();n.Y8G("ngIf",r.cvcTitleTemplate),n.R7$(),n.Y8G("ngIf",r.cvcTitle),n.R7$(2),n.Y8G("cvcTableCountsConnection",r.connection$)}}function Qt(s,m){1&s&&(n.j41(0,"nz-tag",46),n.nrm(1,"i",47),n.j41(2,"span"),n.EFF(3,"Loading\u2026"),n.k0s()())}function et(s,m){if(1&s&&(n.DNE(0,Qt,4,0,"nz-tag",44),n.nI1(1,"ngrxPush"),n.nrm(2,"cvc-no-more-rows",45),n.nI1(3,"ngrxPush")),2&s){const r=n.XpG();n.Y8G("ngIf",n.bMT(1,2,r.moreLoading$)),n.R7$(2),n.Y8G("cvcShowTag",n.bMT(3,4,r.noMoreRows$))}}let it=class On{set initialUserFilters(m){m&&Object.assign(this,m)}constructor(m,r){this.gql=m,this.cdr=r,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=y.MAo,this.noMoreRows$=new b.t(!1),this.scrollEvent$=new b.t("stop"),this.sortChange$=new G.B,this.filterChange$=new G.B,this.scrollIndex$=new G.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sortBy:{column:y.MAo.LastAction,direction:y.UEL.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,D.E)("loading"),(0,q.F)(),(0,ct.v)(m=>!1!==m,!0)),this.moreLoading$=this.result$.pipe((0,D.E)("loading"),(0,q.F)(),(0,It.i)(2)),this.connection$=this.result$.pipe((0,D.E)("data","users"),(0,H.p)(N.kP)),this.row$=this.connection$.pipe((0,D.E)("edges"),(0,H.p)(N.kP),(0,k.T)(m=>m.map(r=>r.node))),this.pageInfo$=this.connection$.pipe((0,D.E)("pageInfo"),(0,H.p)(N.kP)),this.sortChange$.pipe((0,M.s)(this)).subscribe(m=>{this.queryRef.refetch({sortBy:(0,Z.X)(m)})}),this.filterChange$.pipe((0,tt.B)(500),(0,M.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,k.T)(m=>"stop"!==m),(0,q.F)(),(0,M.s)(this)).subscribe(m=>{this.isScrolling=m,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,H.p)(m=>"bottom"===m),(0,xt.E)(this.pageInfo$),(0,k.T)(([m,r])=>r),(0,M.s)(this)).subscribe(m=>{m.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({userName:this.nameInput?this.nameInput:void 0,orgName:this.orgNameInput?{name:this.orgNameInput}:void 0,userRole:this.roleInput?this.roleInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(m,r){return r?.id}static#t=this.\u0275fac=function(r){return new(r||On)(n.rXU(y.HAY),n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:On,selectors:[["cvc-users-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],["nameElse",""],["orgElse",""],["eventElse",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","200px","nzLeft",""],["nzWidth","150px",3,"nzColumnKey","nzSortFn"],["nzWidth","300px"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","85px","nzAlign","right",3,"nzColumnKey","nzSortFn"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Revision Count",3,"nzColumnKey","nzSortFn"],["nz-icon","","nzType","civic-revision"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzValue","ADMIN","nzLabel","Admin"],["nzValue","CURATOR","nzLabel","Curator"],["nzValue","EDITOR","nzLabel","Editor"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"user"],[1,"overflow-ellipsis"],["nzAlign","right"],["nzRight","","nzAlign","right"],["nz-typography","","nzType","secondary"],["tagType","organization",3,"maxDisplayCount","tags","matchingText"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(r,d){if(1&r&&n.DNE(0,Vt,3,3,"ng-container",8)(1,Yt,3,6,"ng-template",null,0,n.C5r)(3,gt,40,35,"ng-template",null,1,n.C5r)(5,S,4,3,"ng-template",null,2,n.C5r)(7,et,4,6,"ng-template",null,3,n.C5r),2&r){const u=n.sdS(2);n.Y8G("ngIf",!d.cvcHeight)("ngIfElse",u)}},dependencies:[f.bT,f.T3,f.B3,I.BC,I.vS,R.c,F.cK,U.Dn,E.ld,E.WI,C.CP,C.Cc,C.SO,C._4,C.IL,C.aj,C.kt,C.CC,C.OL,C.jc,pt.s,O.LH,t.Di,Rt.M,St.s,Ut.n,Et.M,jt.y,kt.f,Pt.U,rt.r,L.L9,Ft.f,$t.N],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"]})};it=(0,ot.Cg)([(0,M.d)()],it);var Jt=a(3075);const Kt=()=>[8,16];function Zt(s,m){1&s&&(n.j41(0,"a",12),n.nrm(1,"i",13),n.EFF(2," View Contributor Docs "),n.k0s())}const qt=[{path:"",component:(()=>{class s{constructor(){}static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["app-users"]],decls:1,vars:0,template:function(d,u){1&d&&n.nrm(0,"router-outlet")},dependencies:[V.n3],encapsulation:2})}return s})(),data:{displayName:"Contributors"},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class s{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["users-home"]],decls:20,vars:6,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-curator",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","24"],["cvcTitle","Browse All Contributors"],["nz-button","","href","https://civic.readthedocs.io/en/latest/using/users.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(d,u){1&d&&(n.nrm(0,"cvc-section-navigation"),n.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n.nrm(5,"i",3),n.nI1(6,"entityColor"),n.k0s(),n.j41(7,"nz-col",4)(8,"h2"),n.EFF(9,"Contributors"),n.k0s(),n.j41(10,"p",5),n.EFF(11," CIViC depends on its users to add to its knowledgebase and curate its content. Anyone may join CIViC as a Curator and begin contributing. "),n.k0s()(),n.j41(12,"nz-col",6)(13,"nz-space",7),n.DNE(14,Zt,3,0,"a",8),n.k0s()()(),n.j41(15,"nz-row",9)(16,"nz-col",10),n.nrm(17,"cvc-user-leaderboards"),n.k0s(),n.j41(18,"nz-col",10),n.nrm(19,"cvc-users-table",11),n.k0s()()()()),2&d&&(n.R7$(5),n.Y8G("nzTwotoneColor",n.bMT(6,3,"Curator")),n.R7$(5),n.Y8G("nzEllipsisRows",2),n.R7$(5),n.Y8G("nzGutter",n.lJ4(5,Kt)))},dependencies:[v.WB,v.zR,U.Dn,x.Uq,x.e,w.aO,R.c,j.U5,j.Dq,t.Di,A,lt.n,it,Jt.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return s})(),data:{displayName:"Home"}},{path:":userId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.resolve().then(a.bind(a,7316)).then(s=>s.UsersDetailModule)}]}]}];let tn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[V.iI.forChild(qt),V.iI]})}return s})();var nn=a(8920),en=a(7874),on=a(7054),an=a(9214),sn=a(4998),rn=a(2142),ln=a(9374),W=a(4917),cn=a(4256),pn=a(4450),dn=a(8252),_t=a(2839);let mn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,I.YN,w.Zw,F.Ti,U.Y3,E.DH,C.$G,pt.T,O.Qt,t.kT,cn.t,pn.B,en.E,on.L,an.y,nn.U,W.i,sn.B,dn.A,rn.x,ln.r,_t.m]})}return s})();var gn=a(4124),un=a(9541),_n=a(9448);let fn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,I.YN,at.W2,_n.g,j.pc,st.Yb,x.f3,F.Ti,z.rD,un.hM,E.DH,t.kT,Y._v,U.Y3,O.Qt,W.i,_t.m]})}return s})(),hn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,v.ZJ,U.Y3,x.f3,w.Zw,j.pc,t.kT,fn,gn.C,mn,W.i]})}return s})();var zn=a(7660);let Cn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,U.Y3,zn.u]})}return s})();var bn=a(7316),vn=a(326);let Tn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,vn.p]})}return s})();var yn=a(4531);let Mn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,yn.C]})}return s})();var In=a(5594);let xn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,In.b]})}return s})();var Rn=a(2983),Sn=a(2968),Un=a(2986),En=a(7120),jn=a(5023);let kn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,I.YN,O.Qt,Rn.V,x.f3,w.Zw,F.Ti,U.Y3,Un.IJ,En.ki,jn.J,W.i,Sn.K]})}return s})(),Pn=(()=>{class s{static#t=this.\u0275fac=function(d){return new(d||s)};static#n=this.\u0275mod=n.$C({type:s});static#e=this.\u0275inj=n.G2t({imports:[f.MD,V.iI,tn,hn,Cn,bn.UsersDetailModule,Tn,Mn,xn,kn]})}return s})()}}]); \ No newline at end of file diff --git a/server/public/4439.0b7444603de5e5cf.js b/server/public/4439.0b7444603de5e5cf.js new file mode 100644 index 000000000..eb30bd10b --- /dev/null +++ b/server/public/4439.0b7444603de5e5cf.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4439],{6936:(I,O,n)=>{n.d(O,{G:()=>M});var o=n(177),d=n(1188),E=n(5699),g=n(1236),h=n(5103),u=n(4666),p=n(4917),z=n(3146),D=n(4994),T=n(3953);let M=(()=>{class C{static#t=this.\u0275fac=function(r){return new(r||C)};static#n=this.\u0275mod=T.$C({type:C});static#e=this.\u0275inj=T.G2t({imports:[o.MD,d.iI,z.W2,E.T,g.MC,h.Y3,u.v,p.i,D.a]})}return C})()},9129:(I,O,n)=>{n.d(O,{s:()=>C});var o=n(3953),d=n(177),E=n(5699),g=n(1236),h=n(7855);const u=c=>({"matched-tag":c});function p(c,m){if(1&c&&(o.j41(0,"span",3)(1,"nz-tag"),o.EFF(2),o.k0s()()),2&c){const r=m.$implicit,t=o.XpG();o.Y8G("ngClass",o.eq3(2,u,t.matchingText&&r.toLowerCase().includes(t.matchingText))),o.R7$(2),o.JRh(r)}}function z(c,m){if(1&c&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&c){const r=o.XpG(2);o.R7$(),o.SpI(" ",r.matchedHiddenCount," of ")}}function D(c,m){if(1&c&&(o.j41(0,"nz-tag",5),o.EFF(1," +"),o.DNE(2,z,2,1,"span",6),o.EFF(3),o.k0s()),2&c){const r=o.XpG(),t=o.sdS(5);o.Y8G("nzPopoverMouseEnterDelay",0)("nzPopoverContent",t),o.R7$(2),o.Y8G("ngIf",r.matchedHiddenCount>0),o.R7$(),o.SpI("",r.hiddenCount," ")}}function T(c,m){if(1&c&&(o.j41(0,"div",3)(1,"nz-tag"),o.EFF(2),o.k0s()()),2&c){const r=m.$implicit,t=o.XpG(2);o.Y8G("ngClass",o.eq3(2,u,t.matchingText&&r.toLowerCase().includes(t.matchingText))),o.R7$(2),o.JRh(r)}}function M(c,m){if(1&c&&(o.j41(0,"div",7)(1,"cvc-tag-list",1),o.DNE(2,T,3,4,"div",2),o.k0s()()),2&c){const r=o.XpG();o.R7$(2),o.Y8G("ngForOf",r.hiddenTags)}}let C=(()=>{class c{constructor(r){this.cdr=r,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(r){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.hiddenTags){let r=this.matchingText.toLowerCase();this.hiddenTags.forEach(t=>{t.toLowerCase().includes(r)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}static#t=this.\u0275fac=function(t){return new(t||c)(o.rXU(o.gRc))};static#n=this.\u0275cmp=o.VBU({type:c,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[o.OA$],decls:6,vars:5,consts:[["additionalTagPopover",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(t,v){1&t&&(o.j41(0,"cvc-tag-list",1),o.DNE(1,p,3,4,"span",2),o.j41(2,"span",3),o.DNE(3,D,4,4,"nz-tag",4),o.k0s(),o.DNE(4,M,3,1,"ng-template",null,0,o.C5r),o.k0s()),2&t&&(o.R7$(),o.Y8G("ngForOf",v.displayedTags),o.R7$(),o.Y8G("ngClass",o.eq3(3,u,v.matchedHiddenCount>0)),o.R7$(),o.Y8G("ngIf",v.hiddenCount&&v.hiddenCount>0))},dependencies:[d.YU,d.Sq,d.bT,E.s,g.L_,h.M],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return c})()},5724:(I,O,n)=>{n.d(O,{T:()=>u});var o=n(177),d=n(2142),E=n(5699),g=n(1236),h=n(3953);let u=(()=>{class p{static#t=this.\u0275fac=function(T){return new(T||p)};static#n=this.\u0275mod=h.$C({type:p});static#e=this.\u0275inj=h.G2t({imports:[o.MD,E.T,g.MC,d.x]})}return p})()},4644:(I,O,n)=>{n.d(O,{y:()=>j});var o=n(1635),d=n(9995),E=n(9145),g=n(9894),h=n(4412),u=n(1413),p=n(9199),z=n(3294),D=n(7048),T=n(5245),M=n(5964),C=n(6354),c=n(152),m=n(3993),r=n(4608),t=n(3953),v=n(177),R=n(9417),S=n(6389),x=n(5703),B=n(5103),f=n(1997),P=n(9247),K=n(5699),A=n(5154),W=n(1852),U=n(1405),b=n(435),F=n(3296),$=n(9129),G=n(9062),Y=n(3431),N=n(2923),V=n(1774);const X=l=>({height:l}),H=()=>[],w=()=>({x:"680px",y:"800px"}),y=()=>["descend","ascend",null];function J(l,a){}function Q(l,a){if(1&l&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,J,0,0,"ng-template",7),t.k0s(),t.bVm()),2&l){t.XpG();const e=t.sdS(4),s=t.sdS(6),_=t.sdS(8);t.R7$(),t.Y8G("nzTitle",s)("nzExtra",_),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Z(l,a){}function k(l,a){if(1&l&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,Z,0,0,"ng-template",7),t.k0s()()),2&l){const e=t.XpG(),s=t.sdS(4),_=t.sdS(6),i=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,X,e.cvcHeight)),t.R7$(),t.Y8G("nzTitle",_)("nzExtra",i),t.R7$(),t.Y8G("ngTemplateOutlet",s)}}function q(l,a){if(1&l&&(t.j41(0,"tr",38)(1,"td",26),t.nrm(2,"cvc-source-tag",39),t.k0s(),t.j41(3,"td",40),t.EFF(4),t.k0s(),t.j41(5,"td"),t.nrm(6,"cvc-plain-tag-overflow",41),t.k0s(),t.j41(7,"td"),t.EFF(8),t.k0s(),t.j41(9,"td"),t.EFF(10),t.k0s(),t.j41(11,"td"),t.EFF(12),t.k0s(),t.j41(13,"td"),t.EFF(14),t.k0s(),t.j41(15,"td",42),t.nrm(16,"span",43),t.k0s(),t.j41(17,"td",44),t.EFF(18),t.k0s(),t.j41(19,"td",44),t.EFF(20),t.k0s()()),2&l){const e=a.$implicit,s=t.XpG(2);t.R7$(2),t.Y8G("source",e)("truncateLongName",!0),t.R7$(),t.Y8G("nzTooltipTitle",s.isScrolling?"":e.name),t.R7$(),t.SpI(" ",e.name," "),t.R7$(2),t.Y8G("tags",e.authors)("maxDisplayCount",1)("matchingText",s.authorInput),t.R7$(2),t.SpI(" ",e.displayType," "),t.R7$(2),t.SpI(" ",e.citationId," "),t.R7$(2),t.SpI(" ",e.publicationYear," "),t.R7$(2),t.SpI(" ",e.journal," "),t.R7$(),t.Y8G("nzTooltipTitle",e.openAccess?"Open":"Closed"),t.R7$(),t.Y8G("nzType",e.openAccess?"unlock":"lock"),t.R7$(2),t.JRh(e.evidenceItemCount),t.R7$(2),t.JRh(e.sourceSuggestionCount)}}function tt(l,a){if(1&l){const e=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(_){t.eBV(e);const i=t.XpG();return t.Njj(i.scrollEvent$.next(_))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(_){t.eBV(e);const i=t.XpG();return t.Njj(i.sortChange$.next(_))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Citation "),t.k0s(),t.j41(10,"th",14),t.EFF(11," Name "),t.k0s(),t.j41(12,"th",15),t.EFF(13," Authors "),t.k0s(),t.j41(14,"th",16),t.EFF(15," Type "),t.k0s(),t.j41(16,"th",17),t.EFF(17," ID "),t.k0s(),t.j41(18,"th",16),t.EFF(19," Year "),t.k0s(),t.j41(20,"th",18),t.EFF(21," Journal "),t.k0s(),t.j41(22,"th",19),t.nrm(23,"i",20),t.k0s(),t.j41(24,"th",21),t.nrm(25,"i",22),t.EFF(26," Count "),t.k0s(),t.j41(27,"th",23),t.nrm(28,"i",24),t.EFF(29," Count "),t.k0s()(),t.j41(30,"tr",25),t.nrm(31,"th",26),t.j41(32,"th")(33,"cvc-clearable-input-filter",27),t.mxI("inputModelChange",function(_){t.eBV(e);const i=t.XpG();return t.DH7(i.nameInput,_)||(i.nameInput=_),t.Njj(_)}),t.bIt("inputModelChange",function(){t.eBV(e);const _=t.XpG();return t.Njj(_.filterChange$.next())}),t.k0s()(),t.j41(34,"th")(35,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(_){t.eBV(e);const i=t.XpG();return t.DH7(i.authorInput,_)||(i.authorInput=_),t.Njj(_)}),t.bIt("inputModelChange",function(){t.eBV(e);const _=t.XpG();return t.Njj(_.filterChange$.next())}),t.k0s()(),t.j41(36,"th")(37,"nz-select",29),t.bIt("ngModelChange",function(){t.eBV(e);const _=t.XpG();return t.Njj(_.filterChange$.next())}),t.mxI("ngModelChange",function(_){t.eBV(e);const i=t.XpG();return t.DH7(i.sourceTypeInput,_)||(i.sourceTypeInput=_),t.Njj(_)}),t.nrm(38,"nz-option",30)(39,"nz-option",31)(40,"nz-option",32),t.k0s()(),t.j41(41,"th")(42,"cvc-clearable-input-filter",33),t.mxI("inputModelChange",function(_){t.eBV(e);const i=t.XpG();return t.DH7(i.citationIdInput,_)||(i.citationIdInput=_),t.Njj(_)}),t.bIt("inputModelChange",function(){t.eBV(e);const _=t.XpG();return t.Njj(_.filterChange$.next())}),t.k0s()(),t.j41(43,"th")(44,"cvc-clearable-input-filter",33),t.mxI("inputModelChange",function(_){t.eBV(e);const i=t.XpG();return t.DH7(i.yearInput,_)||(i.yearInput=_),t.Njj(_)}),t.bIt("inputModelChange",function(){t.eBV(e);const _=t.XpG();return t.Njj(_.filterChange$.next())}),t.k0s()(),t.j41(45,"th")(46,"cvc-clearable-input-filter",33),t.mxI("inputModelChange",function(_){t.eBV(e);const i=t.XpG();return t.DH7(i.journalInput,_)||(i.journalInput=_),t.Njj(_)}),t.bIt("inputModelChange",function(){t.eBV(e);const _=t.XpG();return t.Njj(_.filterChange$.next())}),t.k0s()(),t.j41(47,"th",34)(48,"nz-select",29),t.bIt("ngModelChange",function(){t.eBV(e);const _=t.XpG();return t.Njj(_.filterChange$.next())}),t.mxI("ngModelChange",function(_){t.eBV(e);const i=t.XpG();return t.DH7(i.openAccessInput,_)||(i.openAccessInput=_),t.Njj(_)}),t.nrm(49,"nz-option",35)(50,"nz-option",36),t.k0s()(),t.nrm(51,"th",34)(52,"th",34),t.k0s()(),t.j41(53,"tbody"),t.DNE(54,q,21,15,"ng-template",37),t.k0s()()}if(2&l){const e=t.XpG();t.Y8G("nzData",t.bMT(2,38,e.row$)||t.lJ4(46,H))("nzLoading",!t.bMT(3,40,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.bMT(4,42,e.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,44,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.lJ4(47,w))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(10),t.Y8G("nzColumnKey",e.sortColumns.Name)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.Authors)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.SourceType)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.CitationId)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.Year)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.Journal)("nzSortFn",!0),t.R7$(4),t.Y8G("nzColumnKey",e.sortColumns.EvidenceCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(48,y)),t.R7$(3),t.Y8G("nzColumnKey",e.sortColumns.SuggestionCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(49,y)),t.R7$(6),t.R50("inputModel",e.nameInput),t.R7$(2),t.R50("inputModel",e.authorInput),t.R7$(2),t.R50("ngModel",e.sourceTypeInput),t.R7$(5),t.R50("inputModel",e.citationIdInput),t.R7$(2),t.R50("inputModel",e.yearInput),t.R7$(2),t.R50("inputModel",e.journalInput),t.R7$(2),t.R50("ngModel",e.openAccessInput),t.R7$(),t.Y8G("nzValue",!0),t.R7$(),t.Y8G("nzValue",!1)}}function nt(l,a){}function et(l,a){if(1&l&&(t.qex(0),t.DNE(1,nt,0,0,"ng-template",7),t.bVm()),2&l){const e=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",e.cvcTitleTemplate)}}function ot(l,a){if(1&l&&(t.qex(0),t.EFF(1),t.bVm()),2&l){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.cvcTitle," ")}}function _t(l,a){if(1&l&&(t.DNE(0,et,2,1,"ng-container",45)(1,ot,2,1,"ng-container",45),t.j41(2,"span",46),t.nrm(3,"cvc-table-counts",47),t.k0s()),2&l){const e=t.XpG();t.Y8G("ngIf",e.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",e.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",e.connection$)}}function at(l,a){1&l&&(t.j41(0,"nz-tag",50),t.nrm(1,"i",51),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function lt(l,a){if(1&l&&(t.DNE(0,at,4,0,"nz-tag",48),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",49),t.nI1(3,"ngrxPush")),2&l){const e=t.XpG();t.Y8G("ngIf",t.bMT(1,2,e.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,e.noMoreRows$))}}let j=class L{set initialUserFilters(a){a&&Object.assign(this,a)}constructor(a,e){this.gql=a,this.cdr=e,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=E.En6,this.noMoreRows$=new h.t(!1),this.scrollEvent$=new h.t("stop"),this.sortChange$=new u.B,this.filterChange$=new u.B,this.scrollIndex$=new u.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,clinicalTrialId:this.clinicalTrialId}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,r.E)("loading"),(0,z.F)(),(0,D.v)(a=>!1!==a,!0)),this.moreLoading$=this.result$.pipe((0,r.E)("loading"),(0,z.F)(),(0,T.i)(2)),this.connection$=this.result$.pipe((0,r.E)("data","browseSources"),(0,M.p)(p.kP)),this.row$=this.connection$.pipe((0,r.E)("edges"),(0,M.p)(p.kP),(0,C.T)(a=>a.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,r.E)("pageInfo"),(0,M.p)(p.kP)),this.sortChange$.pipe((0,g.s)(this)).subscribe(a=>{this.queryRef.refetch({sortBy:(0,d.X)(a)})}),this.filterChange$.pipe((0,c.B)(500),(0,g.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,C.T)(a=>"stop"!==a),(0,z.F)(),(0,g.s)(this)).subscribe(a=>{this.isScrolling=a,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,M.p)(a=>"bottom"===a),(0,m.E)(this.pageInfo$),(0,C.T)(([a,e])=>e),(0,g.s)(this)).subscribe(a=>{a.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,author:this.authorInput,year:this.yearInput?+this.yearInput:void 0,journal:this.journalInput,name:this.nameInput,sourceType:this.sourceTypeInput,openAccess:this.openAccessInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(a,e){return e?.id}static#t=this.\u0275fac=function(e){return new(e||L)(t.rXU(E.FMZ),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:L,selectors:[["cvc-sources-table"]],inputs:{cvcHeight:"cvcHeight",clinicalTrialId:"clinicalTrialId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","400px","nzLeft",""],["nzWidth","200px",3,"nzColumnKey","nzSortFn"],["nzWidth","275px",3,"nzColumnKey","nzSortFn"],["nzWidth","75px",3,"nzColumnKey","nzSortFn"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","150px",3,"nzColumnKey","nzSortFn"],["nzWidth","80px","nzRight","","nz-tooltip","","nzTooltipTitle","Open Access"],["nz-icon","","nzType","unlock"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Suggestion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-queue"],[1,"filter-row"],["nzLeft",""],["placeholderText","Name",3,"inputModelChange","inputModel"],["placeholderText","Authors",3,"inputModelChange","inputModel"],["nzSize","small","nzAllowClear","","nzPlaceHolder","Choose",3,"ngModelChange","ngModel"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["nzValue","ASH","nzLabel","ASH"],[3,"inputModelChange","inputModel"],["nzRight",""],["nzLabel","Open",3,"nzValue"],["nzLabel","Closed",3,"nzValue"],["nz-virtual-scroll",""],[1,"data-row"],[3,"source","truncateLongName"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],[3,"tags","maxDisplayCount","matchingText"],["nzRight","","nz-tooltip","",3,"nzTooltipTitle"],["nz-icon","","nzTheme","outline",3,"nzType"],["nzAlign","right","nzRight",""],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(e,s){if(1&e&&t.DNE(0,Q,3,3,"ng-container",5)(1,k,3,6,"ng-template",null,0,t.C5r)(3,tt,55,50,"ng-template",null,1,t.C5r)(5,_t,4,3,"ng-template",null,2,t.C5r)(7,lt,4,6,"ng-template",null,3,t.C5r),2&e){const _=t.sdS(2);t.Y8G("ngIf",!s.cvcHeight)("ngIfElse",_)}},dependencies:[v.bT,v.T3,v.B3,R.BC,R.vS,S.c,x.cK,B.Dn,f.ld,f.WI,P.CP,P.Cc,P.SO,P._4,P.IL,P.aj,P.kt,P.CC,P.OL,P.jc,K.s,A.LH,W.M,U.s,b.n,F.M,$.s,G.D,Y.y,N.f,V.L9],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0})};j=(0,o.Cg)([(0,g.d)()],j)},5443:(I,O,n)=>{n.d(O,{n:()=>B});var o=n(177),d=n(9417),E=n(7874),g=n(9214),h=n(5724),u=n(4998),p=n(4917),z=n(4256),D=n(4450),T=n(8252),M=n(513),C=n(5703),c=n(5103),m=n(1997),r=n(9247),t=n(5699),v=n(5154),R=n(7391),S=n(1209),x=n(3953);let B=(()=>{class f{static#t=this.\u0275fac=function(A){return new(A||f)};static#n=this.\u0275mod=x.$C({type:f});static#e=this.\u0275inj=x.G2t({imports:[o.MD,d.YN,M.Zw,C.Ti,c.Y3,m.DH,r.$G,t.T,v.Qt,R.kT,p.i,z.t,D.B,E.E,g.y,h.T,S.k,u.B,T.A]})}return f})()}}]); \ No newline at end of file diff --git a/server/public/445.0c27ca3df1eab994.js b/server/public/445.0c27ca3df1eab994.js deleted file mode 100644 index 29eddbca9..000000000 --- a/server/public/445.0c27ca3df1eab994.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[445],{9045:(Ln,K,r)=>{r.d(K,{J:()=>k});var l=r(6514),Z=r(505),c=r(3953),A=r(177),an=r(1188),on=r(5699),rn=r(1236),$=r(5103),G=r(8011),p=r(2387),P=r(3075);const V=(_,y,m)=>({rejected:_,submitted:y,accepted:m});function C(_,y){}function d(_,y){if(1&_&&(c.qex(0),c.j41(1,"a",5),c.DNE(2,C,0,0,"ng-template",6),c.k0s(),c.bVm()),2&_){const m=c.XpG(),v=c.sdS(2);c.R7$(),c.Y8G("routerLink",m.evidence.link),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function M(_,y){}function sn(_,y){if(1&_&&c.nrm(0,"cvc-evidence-popover",9),2&_){const m=c.XpG(3);c.Y8G("evidenceId",m.evidence.id)}}function n(_,y){if(1&_&&c.DNE(0,sn,1,1,"cvc-evidence-popover",8),2&_){const m=c.XpG(2);c.Y8G("ngIf",m.enablePopover)}}function cn(_,y){if(1&_&&(c.j41(0,"nz-tag",7),c.DNE(1,M,0,0,"ng-template",6),c.k0s(),c.DNE(2,n,1,1,"ng-template",null,3,c.C5r)),2&_){const m=c.sdS(3),v=c.XpG(),X=c.sdS(6);c.Y8G("ngClass",c.sMw(5,V,"REJECTED"===v.evidence.status,"SUBMITTED"===v.evidence.status,"ACCEPTED"===v.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",m)("nzPopoverTrigger",v.enablePopover?"hover":null),c.R7$(),c.Y8G("ngTemplateOutlet",X)}}function u(_,y){}function ln(_,y){if(1&_&&c.DNE(0,u,0,0,"ng-template",6),2&_){c.XpG();const m=c.sdS(2);c.Y8G("ngTemplateOutlet",m)}}function pn(_,y){if(1&_&&(c.j41(0,"cvc-icon-badges",10),c.nrm(1,"i",11),c.nI1(2,"entityColor"),c.nI1(3,"entityColor"),c.k0s(),c.EFF(4)),2&_){const m=c.XpG();c.Y8G("flagged",m.evidence.flagged)("entityColor",m.iconColor),c.R7$(),c.Y8G("nzTwotoneColor","REJECTED"===m.evidence.status?c.bMT(2,4,"Rejected"):c.bMT(3,6,"EvidenceItem")),c.R7$(3),c.SpI(" ",m.evidence.name,"\n")}}let k=(()=>{class _ extends l.s{set evidence(m){if(!m)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=m}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,Z.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#n=this.\u0275fac=function(v){return new(v||_)};static#e=this.\u0275cmp=c.VBU({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(v,X){if(1&v&&c.DNE(0,d,3,2,"ng-container",4)(1,cn,4,9,"ng-template",null,0,c.C5r)(3,ln,1,1,"ng-template",null,1,c.C5r)(5,pn,5,8,"ng-template",null,2,c.C5r),2&v){const S=c.sdS(4);c.Y8G("ngIf",X.linked)("ngIfElse",S)}},dependencies:[A.YU,A.bT,A.T3,an.Wk,on.s,rn.L_,$.Dn,G.S,p.N,P.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]})}return _})()},4817:(Ln,K,r)=>{r.r(K),r.d(K,{FeaturesDetailModule:()=>yi});var l=r(177),Z=r(326),c=r(1896),A=r(8103),an=r(5736),on=r(4124),rn=r(1532),$=r(4917),G=r(513),p=r(7529),P=r(5103),V=r(3062),C=r(7685),d=r(7391),M=r(1188),sn=r(4873),n=r(3953);let cn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,sn.A]})}return e})();var u=r(9145),ln=r(664);let pn=(()=>{class e{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.featureId,entityType:u.T31.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-comment-list",0),2&a&&n.Y8G("commentable",o.commentable)},dependencies:[ln.D],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var k=r(1413),_=r(4412),y=r(9172),m=r(6977),v=r(4608),X=r(1305),S=r(1774),U=r(6389),Q=r(5930),q=r(3617),Fn=r(1236),Bn=r(9945),An=r(8821),Un=r(7428),Qn=r(6269),Wn=r(9765),Jn=r(5269),Hn=r(4126),nn=r(1635),Kn=r(1226),z=r(6354),I=r(5964),b=r(9199),L=r(9894),g=r(9417),T=r(8927),Y=r(2983),F=r(5703),Mn=r(5154),E=r(1997),Zn=r(8492),qn=r(3842),ne=r(8692),ee=r(4308),In=r(7051),te=r(4222),ae=r(1939),ie=r(5566),bn=r(3100);function oe(e,i){if(1&e&&(n.qex(0),n.nrm(1,"cvc-variant-tag",21),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("variant",t)}}function re(e,i){if(1&e&&n.DNE(0,oe,2,1,"ng-container",20),2&e){const t=n.XpG(3).ngrxLet;n.Y8G("ngForOf",t)}}function se(e,i){if(1&e&&(n.j41(0,"nz-alert",19),n.DNE(1,re,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&e){const t=n.sdS(2);n.Y8G("nzDescription",t)}}function ce(e,i){1&e&&(n.qex(0),n.DNE(1,se,3,1,"nz-alert",18),n.bVm())}function le(e,i){if(1&e&&(n.qex(0),n.DNE(1,ce,2,0,"ng-container",17),n.bVm()),2&e){const t=i.ngrxLet;n.R7$(),n.Y8G("ngIf",t&&t.length>0)}}function pe(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-alert",22),n.bIt("nzOnClose",function(){n.eBV(t);const o=n.XpG();return n.Njj(o.onSuccessBannerClose())}),n.k0s()}}function _e(e,i){if(1&e&&n.nrm(0,"nz-alert",23),2&e){n.XpG();const t=n.sdS(8);n.Y8G("nzDescription",t)}}function me(e,i){if(1&e&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function ue(e,i){if(1&e&&(n.j41(0,"ul"),n.DNE(1,me,2,1,"li",20),n.k0s()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.errorMessages)}}function ge(e,i){}function fe(e,i){1&e&&n.DNE(0,ge,0,0,"ng-template")}function de(e,i){if(1&e&&(n.qex(0),n.DNE(1,fe,1,0,null,25),n.bVm()),2&e){n.XpG();const t=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",t)}}function ze(e,i){}function he(e,i){1&e&&n.DNE(0,ze,0,0,"ng-template")}function ve(e,i){if(1&e&&(n.j41(0,"span",26),n.DNE(1,he,1,0,null,25),n.k0s()),2&e){n.XpG();const t=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",t)}}function Ce(e,i){if(1&e&&(n.j41(0,"button",27),n.EFF(1," Deprecate Variant "),n.k0s()),2&e){const t=n.XpG().ngrxLet,a=n.XpG();n.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10&&t.signedIn&&t.isEditor&&a.reason))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}function ye(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-form-buttons"),n.DNE(2,de,2,1,"ng-container",24)(3,ve,2,1,"ng-template",null,2,n.C5r)(5,Ce,2,3,"ng-template",null,3,n.C5r),n.k0s(),n.bVm()),2&e){const t=i.ngrxLet,a=n.sdS(4);n.R7$(2),n.Y8G("ngIf",t.signedIn&&t.isEditor)("ngIfElse",a)}}let en=class vn{constructor(i,t,a,o,s){this.deprecateFeatureGQL=i,this.featureDetailGQL=t,this.variantsForFeatureGQL=a,this.networkErrorService=o,this.viewerService=s,this.destroy$=new k.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateFeatureMutator=new Kn.E(o),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,L.s)(this)).subscribe(t=>{this.selectedOrg=t.mostRecentOrg}),void 0===this.featureId)throw new Error("Must pass a feature id into deprecate feature component");let i=this.variantsForFeatureGQL.fetch({featureId:this.featureId});this.undeprecatedVariants$=i.pipe((0,z.T)(({data:t})=>t.variants.nodes),(0,I.p)(b.kP),(0,z.T)(t=>t.filter(a=>!a.deprecated))),this.variantListLoading$=i.pipe((0,z.T)(({loading:t})=>t))}deprecateFeature(){if(this.errorMessages=[],this.reason&&this.comment&&this.featureId){let t=this.deprecateFeatureMutator.mutate(this.deprecateFeatureGQL,{deprecationReason:this.reason,comment:this.comment,featureId:this.featureId,organizationId:this.selectedOrg?.id},{refetchQueries:[{query:this.featureDetailGQL.document,variables:{featureId:this.featureId}}]});t.submitSuccess$.pipe((0,m.Q)(this.destroy$)).subscribe(a=>{a&&(this.success=!0,this.comment="")}),t.submitError$.pipe((0,m.Q)(this.destroy$)).subscribe(a=>{a.length>0&&(this.errorMessages=a)}),t.isSubmitting$.pipe((0,m.Q)(this.destroy$)).subscribe(a=>{this.loading=a})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(t){return new(t||vn)(n.rXU(u.yR6),n.rXU(u.ULh),n.rXU(u.M5K),n.rXU(te.N),n.rXU(X.q))};static#e=this.\u0275cmp=n.VBU({type:vn,selectors:[["cvc-feature-deprecate-form"]],inputs:{featureId:"featureId"},standalone:!0,features:[n.aNF],decls:20,vars:10,consts:[["errorContents",""],["variantsToDeprecateTpl",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Feature deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Feature",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","warning","nzMessage","This action will also attempt to deprecate the following Variants and their Molecular Profiles:",3,"nzDescription",4,"nzSpaceItem"],["nzType","warning","nzMessage","This action will also attempt to deprecate the following Variants and their Molecular Profiles:",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"variant"],["nzBanner","","nzMessage","Feature deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Feature",3,"nzDescription"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate Features."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(t,a){if(1&t){const o=n.RV6();n.j41(0,"nz-spin",4),n.nI1(1,"ngrxPush"),n.j41(2,"nz-space",5),n.DNE(3,le,2,1,"ng-container",6),n.k0s()(),n.j41(4,"nz-card",7),n.DNE(5,pe,1,0,"nz-alert",8)(6,_e,1,1,"nz-alert",9)(7,ue,2,1,"ng-template",null,0,n.C5r),n.j41(9,"nz-form-item")(10,"nz-select",10),n.mxI("ngModelChange",function(h){return n.eBV(o),n.DH7(a.reason,h)||(a.reason=h),n.Njj(h)}),n.nrm(11,"nz-option",11)(12,"nz-option",12)(13,"nz-option",13),n.k0s()(),n.j41(14,"form",14),n.bIt("ngSubmit",function(){return n.eBV(o),n.Njj(a.deprecateFeature())}),n.j41(15,"cvc-comment-input-form",15),n.mxI("commentChange",function(h){return n.eBV(o),n.DH7(a.comment,h)||(a.comment=h),n.Njj(h)}),n.k0s(),n.j41(16,"nz-spin",16)(17,"nz-form-item")(18,"nz-form-control"),n.DNE(19,ye,7,2,"ng-container",6),n.k0s()()()()()}2&t&&(n.Y8G("nzSpinning",n.bMT(1,8,a.variantListLoading$)),n.R7$(3),n.Y8G("ngrxLet",a.undeprecatedVariants$),n.R7$(2),n.Y8G("ngIf",a.success),n.R7$(),n.Y8G("ngIf",a.errorMessages.length>0),n.R7$(4),n.R50("ngModel",a.reason),n.R7$(5),n.R50("comment",a.comment),n.R7$(),n.Y8G("nzSpinning",a.loading),n.R7$(3),n.Y8G("ngrxLet",a.viewer$))},dependencies:[l.MD,l.Sq,l.bT,l.T3,M.iI,g.YN,g.qT,g.BC,g.cb,g.vS,g.cV,g.X1,S.Nj,S.L9,T.PQ,p.Uq,p.e,T.CA,T.Ls,T.zS,q.$,q.Y,p.f3,G.Zw,G.aO,U.c,Q.p,Y.V,Y.a,F.Ti,F.cK,C.pc,C.U5,C.Dq,d.kT,Mn.Qt,Mn.LH,E.DH,E.ld,E.WI,Zn.M,qn.k,ae.l,ne.j,ee.I,ie.K,In.U,bn.V],encapsulation:2,changeDetection:0})};en=(0,nn.Cg)([(0,L.d)()],en);var xn=r(1845),Te=r(3075);const Fe=e=>({flagged:e}),Me=e=>["/features",e,"revise"],Ie=e=>({featureType:e}),be=()=>[];function xe(e,i){if(1&e&&(n.qex(0),n.EFF(1),n.bVm()),2&e){const t=n.XpG().ngIf;n.R7$(),n.SpI(" ",t.fullName," ")}}function Ge(e,i){if(1&e&&(n.j41(0,"button",19,2),n.EFF(2," Revise "),n.k0s()),2&e){const t=n.sdS(1),a=n.XpG(4).ngIf;n.Y8G("routerLink",n.eq3(3,Me,a.id))("queryParams",n.eq3(5,Ie,a.featureInstance.__typename))("nzType",t.isActive?"primary":"default")}}function Ee(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ge,3,7,"button",18),n.k0s()),2&e){const t=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",t.signedIn)}}function Se(e,i){if(1&e&&(n.j41(0,"button",21,2),n.EFF(2," Flag "),n.k0s()),2&e){const t=n.sdS(1);n.Y8G("nzType",t.isActive?"primary":"default")}}function $e(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Se,3,1,"button",20),n.k0s()),2&e){const t=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",t.signedIn)}}function Pe(e,i){if(1&e&&(n.j41(0,"div",24),n.nrm(1,"cvc-feature-deprecate-form",25),n.k0s()),2&e){const t=n.XpG(6).ngIf;n.R7$(),n.Y8G("featureId",t.id)}}function De(e,i){if(1&e&&(n.j41(0,"button",23),n.EFF(1," Deprecate "),n.DNE(2,Pe,2,1,"ng-template",null,3,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG(5).ngIf;n.Y8G("disabled",a.deprecated)("nzPopoverContent",t)}}function Re(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,De,4,2,"button",22),n.k0s()),2&e){const t=n.XpG(2).ngrxLet;n.R7$(),n.Y8G("ngIf",t.isEditor)}}function je(e,i){1&e&&(n.qex(0),n.DNE(1,Re,2,1,"span",17),n.bVm())}function Ve(e,i){if(1&e&&n.nrm(0,"cvc-entity-subscription-button",27),2&e){const t=n.XpG(2).ngrxLet,a=n.XpG(3);n.Y8G("viewer",t)("subscribableId",a.subscribable.id)}}function Ye(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ve,1,2,"cvc-entity-subscription-button",26),n.k0s()),2&e){const t=n.XpG().ngrxLet,a=n.XpG(3);n.R7$(),n.Y8G("ngIf",t.signedIn&&a.subscribable)}}function Ne(e,i){if(1&e&&(n.j41(0,"nz-space",16),n.DNE(1,Ee,2,1,"span",17)(2,$e,2,1,"span",17)(3,je,2,0,"ng-container",4)(4,Ye,2,1,"span",17),n.k0s()),2&e){const t=n.XpG(2).ngIf;n.R7$(3),n.Y8G("ngIf","Gene"!=t.featureInstance.__typename)}}function Oe(e,i){if(1&e&&(n.j41(0,"nz-page-header-extra"),n.DNE(1,Ne,5,1,"nz-space",15),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",t.viewer$)}}function we(e,i){if(1&e&&n.nrm(0,"nz-alert",28),2&e){n.XpG();const t=n.sdS(18);n.Y8G("nzMessage",t)}}function ke(e,i){if(1&e&&(n.EFF(0),n.nI1(1,"enumToTitle"),n.nrm(2,"cvc-comment-body",29)),2&e){const t=n.XpG().ngIf;n.SpI(" This Feature has been deprecated for reason: ",n.bMT(1,2,t.deprecationReason),". "),n.R7$(2),n.Y8G("commentBodySegments",(null==t.deprecationActivity?null:t.deprecationActivity.parsedNote)||n.lJ4(4,be))}}function Xe(e,i){if(1&e&&(n.j41(0,"nz-col",30),n.nrm(1,"cvc-contributor-avatars",31),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("subscribable",t.subscribable)}}function Le(e,i){if(1&e&&(n.qex(0),n.nrm(1,"cvc-section-navigation",5),n.j41(2,"div",6),n.nI1(3,"ngrxPush"),n.j41(4,"nz-page-header",7)(5,"nz-page-header-title",8)(6,"span",9),n.EFF(7),n.nI1(8,"uppercase"),n.k0s(),n.nrm(9,"i",10),n.nI1(10,"entityColor"),n.EFF(11),n.k0s(),n.j41(12,"nz-page-header-subtitle"),n.DNE(13,xe,2,1,"ng-container",4),n.k0s(),n.DNE(14,Oe,2,1,"nz-page-header-extra",11),n.j41(15,"nz-page-header-content"),n.DNE(16,we,1,1,"nz-alert",12)(17,ke,3,5,"ng-template",null,0,n.C5r),n.j41(19,"cvc-tab-navigation",13),n.nI1(20,"ngrxPush"),n.DNE(21,Xe,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(23,"div",14),n.nrm(24,"router-outlet"),n.k0s()()()(),n.bVm()),2&e){const t=i.ngIf,a=n.XpG();n.R7$(),n.Y8G("displayName",t.name),n.R7$(),n.Y8G("flags",n.bMT(3,10,a.flagsTotal$)),n.R7$(3),n.Y8G("ngClass",n.eq3(18,Fe,t.flags.totalCount>0)),n.R7$(2),n.JRh(n.bMT(8,12,t.featureInstance.__typename)),n.R7$(2),n.Y8G("nzTwotoneColor",n.bMT(10,14,"Feature")),n.R7$(2),n.SpI(" ",t.name," "),n.R7$(2),n.Y8G("ngIf",t.fullName),n.R7$(),n.Y8G("ngrxLet",a.viewer$),n.R7$(2),n.Y8G("ngIf",t.deprecated),n.R7$(3),n.Y8G("tabs",n.bMT(20,16,a.tabs$))}}let Be=(()=>{class e{constructor(t,a,o){this.gql=t,this.viewerService=a,this.route=o,this.destroy$=new k.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.filterCurators=s=>"curator"==s.role,this.filterEditors=s=>"editor"==s.role||"admin"==s.role,this.tabs$=new _.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(s=>{let h=this.gql.watch({featureId:+s.featureId}).valueChanges;this.loading$=h.pipe((0,v.E)("loading"),(0,y.Z)(!0)),this.feature$=h.pipe((0,v.E)("data","feature")),this.flagsTotal$=this.feature$.pipe((0,v.E)("flags","totalCount")),this.feature$.pipe((0,m.Q)(this.destroy$)).subscribe({next:f=>{this.tabs$.next(this.defaultTabs.map(w=>"Revisions"===w.tabLabel?{badgeCount:f?.revisions.totalCount,...w}:"Flags"===w.tabLabel?{badgeCount:f?.flags.totalCount,...w}:"Comments"===w.tabLabel?{badgeCount:f?.comments.totalCount,badgeColor:"#cccccc",...w}:w))}}),this.subscribable={id:+s.featureId,entityType:u.V9U.Feature}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(u.ULh),n.rXU(X.q),n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["features-detail"]],decls:2,vars:3,consts:[["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateFeatureForm",""],[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-typography","",2,"color","#bbb"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Feature","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Feature","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateFeature"],[3,"featureId"],["typename","Gene",3,"viewer","subscribableId",4,"ngIf"],["typename","Gene",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(a,o){1&a&&(n.DNE(0,Le,25,20,"ng-container",4),n.nI1(1,"async")),2&a&&n.Y8G("ngIf",n.bMT(1,1,o.feature$))},dependencies:[l.YU,l.bT,M.n3,M.Wk,M.wQ,S.Nj,G.aO,U.c,Q.p,P.Dn,V.WB,V.k9,V.CO,V.zR,V.ov,C.U5,C.Dq,d.Di,p.Uq,q.Y,Fn.L_,Bn.N,An.H,Un.v,Qn.f,Wn.n,Jn.o,Hn.p,en,l.Jj,l.Pc,S.L9,xn.f,Te.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}.deprecateFeature[_ngcontent-%COMP%]{width:700px}"]})}return e})(),Ae=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,Z.p]})}return e})();var Ue=r(9543);let Qe=(()=>{class e{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-event-feed",0),2&a&&n.Y8G("subscribable",o.subscribable)},dependencies:[Ue.e],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var We=r(1912),Je=r(7268);let He=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,F.Ti,C.pc,We.i3,Je.G]})}return e})();var Ke=r(4097);let Ze=(()=>{class e{constructor(t){this.route=t,this.flaggable={entityType:u.lD4.Feature,id:+this.route.snapshot.params.featureId}}ngOnInit(){}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-flag-list-and-filter",0),2&a&&n.Y8G("flaggable",o.flaggable)},dependencies:[Ke.b],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var qe=r(2617),D=r(5699),nt=r(2968),et=r(9438),tt=r(869),at=r(6371);let it=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,qe.rD,F.Ti,C.pc,D.T,d.kT,et.Yb,nt.K,tt.S,at.O]})}return e})();var ot=r(4055);let rt=(()=>{class e{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.subject={id:+a.featureId,entityType:u.BlQ.Feature}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(a,o){1&a&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&a&&n.Y8G("moderated",o.subject)},dependencies:[ot.B],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var x=r(2e3),W=r(8254),N=r(2142),J=r(7054),H=r(1209),R=r(1011),st=r(5493),Gn=r(2986),_n=r(6912);let En=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,G.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,d.kT,Gn.IJ,Y.V,$.i,In.U,N.x,st.G,_n.l]})}return e})();var O=r(9541),j=r(9247);let Sn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,F.Ti,O.hM,j.$G,p.f3,j.$G,d.kT,x.WF]})}return e})();var $n=r(9590),tn=r(2839),ct=r(996);let Pn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,G.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,Y.V,d.kT,$.i,ct.o,N.x]})}return e})();var mn=r(6719),B=r(7855),un=r(9062),Dn=r(7679);const lt=()=>[8,8];function pt(e,i){if(1&e&&(n.j41(0,"p",15),n.EFF(1),n.k0s()),2&e){const t=n.XpG(2);n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.gene.description," ")}}function _t(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",16)}function mt(e,i){1&e&&n.nrm(0,"cvc-source-tag",18),2&e&&n.Y8G("source",i.$implicit)}function ut(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,mt,1,1,"cvc-source-tag",17),n.k0s(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",t.gene.sources)}}function gt(e,i){1&e&&(n.j41(0,"span",19),n.EFF(1,"None specified"),n.k0s())}function ft(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function dt(e,i){if(1&e&&(n.j41(0,"nz-descriptions-item",20),n.DNE(1,ft,2,1,"nz-tag",21),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("ngForOf",t.gene.featureAliases)}}function zt(e,i){1&e&&(n.j41(0,"span",19),n.EFF(1,"None specified"),n.k0s())}function ht(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-descriptions",6)(4,"nz-descriptions-item",7),n.DNE(5,pt,2,2,"p",8)(6,_t,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(8,"nz-col",5)(9,"nz-descriptions",9)(10,"nz-descriptions-item",10),n.DNE(11,ut,3,1,"ng-container",11)(12,gt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(14,dt,2,1,"nz-descriptions-item",12)(15,zt,2,0,"ng-template",null,2,n.C5r),n.j41(17,"nz-descriptions-item",13)(18,"cvc-tag-list")(19,"cvc-link-tag",14),n.EFF(20," DGIdb "),n.k0s(),n.j41(21,"cvc-link-tag",14),n.EFF(22," ProteinPaint "),n.k0s()()()()()(),n.bVm()),2&e){const t=n.sdS(7),a=n.sdS(13),o=n.sdS(16),s=n.XpG();n.R7$(),n.Y8G("nzGutter",n.lJ4(13,lt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",s.gene.description)("ngIfElse",t),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",s.gene.sources.length>0)("ngIfElse",a),n.R7$(3),n.Y8G("ngIf",s.gene.featureAliases.length>0)("ngIfElse",o),n.R7$(5),n.Y8G("href","https://dgidb.org/results?searchType=gene&searchTerms="+s.gene.name)("tooltip","View "+s.gene.name+" on DGIdb"),n.R7$(2),n.Y8G("href","https://pecan.stjude.cloud/variants/protein-paint/?gene="+s.gene.name)("tooltip","View "+s.gene.name+" on ProteinPaint")}}let gn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-gene-base-summary"]],inputs:{gene:"gene"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noDescription",""],["noSources",""],["noAliases",""],[4,"ngIf"],[3,"nzGutter"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases",4,"ngIf","ngIfElse"],["nzTitle","Resources"],[3,"href","tooltip"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],["nzTitle","Aliases"],[4,"ngFor","ngForOf"]],template:function(a,o){1&a&&n.DNE(0,ht,23,14,"ng-container",3),2&a&&n.Y8G("ngIf",o.gene)},dependencies:[l.MD,l.Sq,l.bT,p.f3,p.Uq,p.e,x.WF,x.xA,x.gr,d.kT,d.Di,C.pc,D.T,D.s,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,Dn.a,$.i]})}return e})(),vt=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,x.WF,d.kT,C.pc,D.T,O.hM,W.V,N.x,J.L,H.k,$n.R,tn.m,En,Sn,Pn,gn]})}return e})();var Ct=r(9354),Rn=r(8139),jn=r(6408);const yt=()=>[8,16],Tt=()=>[8,8],Ft=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Mt(e,i){if(1&e&&(n.j41(0,"p",18),n.EFF(1),n.k0s()),2&e){const t=n.XpG();n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.factor.description," ")}}function It(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",19)}function bt(e,i){1&e&&n.nrm(0,"cvc-source-tag",21),2&e&&n.Y8G("source",i.$implicit)}function xt(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,bt,1,1,"cvc-source-tag",20),n.k0s(),n.bVm()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("ngForOf",t.factor.sources)}}function Gt(e,i){1&e&&(n.j41(0,"span",22),n.EFF(1,"None specified"),n.k0s())}function Et(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function St(e,i){if(1&e&&(n.qex(0),n.DNE(1,Et,2,1,"nz-tag",23),n.bVm()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.factor.featureAliases)}}function $t(e,i){1&e&&(n.j41(0,"span",22),n.EFF(1,"None specified"),n.k0s())}function Pt(e,i){if(1&e&&(n.j41(0,"nz-descriptions-item",24)(1,"cvc-tag-list")(2,"cvc-link-tag",25),n.EFF(3),n.k0s()()()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+t.factor.ncitId)("tooltip","View "+t.factor.name+" in the NCI Thesaurus"),n.R7$(),n.SpI(" NCIt: ",t.factor.ncitId," ")}}function Dt(e,i){if(1&e&&(n.EFF(0," Created "),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.factor.creationActivity.createdAt),") ")}}function Rt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",26),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",27),n.k0s(),n.DNE(4,Dt,4,3,"ng-template",null,3,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.factor.creationActivity.user)}}function jt(e,i){if(1&e&&(n.EFF(0," Deprecated "),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.factor.deprecationActivity.createdAt),") ")}}function Vt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",26),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",27),n.k0s(),n.DNE(4,jt,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.factor.deprecationActivity.user)}}let Vn=(()=>{class e{ngOnInit(){if(null==this.factor)throw new Error("Must pass a Factor into factor summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into factor summary");this.subscribableEntity={id:this.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-factor-summary"]],inputs:{factor:"factor",featureId:"featureId"},standalone:!0,features:[n.aNF],decls:26,vars:18,consts:[["noDescription",""],["noSources",""],["noAliases",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],["nzSpan","12"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases"],["nzTitle","Resources",4,"ngIf"],[4,"ngIf"],[3,"ncitDetails"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"nzTitle"],[3,"user"]],template:function(a,o){if(1&a&&(n.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-row",5)(3,"nz-col",7)(4,"nz-descriptions",8)(5,"nz-descriptions-item",9),n.DNE(6,Mt,2,2,"p",10)(7,It,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(9,"nz-col",7)(10,"nz-descriptions",11)(11,"nz-descriptions-item",12),n.DNE(12,xt,3,1,"ng-container",13)(13,Gt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"nz-descriptions-item",14),n.DNE(16,St,2,1,"ng-container",13),n.k0s(),n.DNE(17,$t,2,0,"ng-template",null,2,n.C5r)(19,Pt,4,3,"nz-descriptions-item",15),n.k0s()()()(),n.j41(20,"nz-col",6)(21,"nz-descriptions",8),n.DNE(22,Rt,6,2,"ng-container",16)(23,Vt,6,2,"ng-container",16),n.k0s(),n.nrm(24,"br")(25,"cvc-ncit-details",17),n.k0s()()),2&a){const s=n.sdS(8),h=n.sdS(14),f=n.sdS(18);n.Y8G("nzGutter",n.lJ4(15,yt)),n.R7$(2),n.Y8G("nzGutter",n.lJ4(16,Tt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.factor.description)("ngIfElse",s),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.factor.sources.length>0)("ngIfElse",h),n.R7$(4),n.Y8G("ngIf",o.factor.featureAliases.length>0)("ngIfElse",f),n.R7$(3),n.Y8G("ngIf",o.factor.ncitId),n.R7$(2),n.Y8G("nzColumn",n.lJ4(17,Ft)),n.R7$(),n.Y8G("ngIf",o.factor.creationActivity),n.R7$(),n.Y8G("ngIf",o.factor.deprecationActivity),n.R7$(2),n.Y8G("ncitDetails",o.factor.ncitDetails)}},dependencies:[l.MD,l.Sq,l.bT,p.f3,p.Uq,p.e,x.WF,x.xA,x.gr,d.kT,d.Di,C.pc,D.T,D.s,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,Dn.a,Ct.e,$.i,Rn.N,tn.m,jn.r],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return e})();var fn=r(3245);const Yn=()=>[8,16],Yt=()=>[8,8],Nt=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1}),Nn=e=>({$implicit:e});function Ot(e,i){if(1&e&&(n.j41(0,"p",21),n.EFF(1),n.k0s()),2&e){const t=n.XpG();n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.fusion.description," ")}}function wt(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",22)}function kt(e,i){1&e&&n.nrm(0,"cvc-source-tag",24),2&e&&n.Y8G("source",i.$implicit)}function Xt(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,kt,1,1,"cvc-source-tag",23),n.k0s(),n.bVm()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("ngForOf",t.fusion.sources)}}function Lt(e,i){1&e&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Bt(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function At(e,i){if(1&e&&(n.qex(0),n.DNE(1,Bt,2,1,"nz-tag",26),n.bVm()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.fusion.featureAliases)}}function Ut(e,i){1&e&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Qt(e,i){if(1&e&&(n.EFF(0," Created "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.fusion.creationActivity.createdAt),") ")}}function Wt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",27),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Qt,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.fusion.creationActivity.user)}}function Jt(e,i){if(1&e&&(n.EFF(0," Deprecated "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.fusion.deprecationActivity.createdAt),") ")}}function Ht(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",27),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Jt,4,3,"ng-template",null,5,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.fusion.deprecationActivity.user)}}function Kt(e,i){if(1&e&&n.nrm(0,"cvc-gene-base-summary",31),2&e){const t=n.XpG(2);n.Y8G("gene",t.fusion.fivePrimeGene)}}function Zt(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",32),2&e){const t=n.XpG(2);n.Y8G("feature",t.fusion.fivePrimeGene)}}function qt(e,i){if(1&e&&(n.j41(0,"nz-card",29),n.DNE(1,Kt,1,1,"cvc-gene-base-summary",30)(2,Zt,1,1,"ng-template",null,6,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG();n.Y8G("nzExtra",t),n.R7$(),n.Y8G("ngIf",a.fusion.fivePrimeGene)}}function na(e,i){1&e&&n.eu8(0)}function ea(e,i){if(1&e&&(n.j41(0,"nz-card",29),n.nI1(1,"enumToTitle"),n.DNE(2,na,1,0,"ng-container",33),n.k0s()),2&e){const t=n.XpG(),a=n.sdS(32);n.Y8G("nzExtra",n.bMT(1,3,t.fusion.fivePrimePartnerStatus)),n.R7$(2),n.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",n.eq3(5,Nn,t.fusion.fivePrimePartnerStatus))}}function ta(e,i){if(1&e&&n.nrm(0,"cvc-gene-base-summary",31),2&e){const t=n.XpG(2);n.Y8G("gene",t.fusion.threePrimeGene)}}function aa(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",32),2&e){const t=n.XpG(2);n.Y8G("feature",t.fusion.threePrimeGene)}}function ia(e,i){if(1&e&&(n.j41(0,"nz-card",34),n.DNE(1,ta,1,1,"cvc-gene-base-summary",30)(2,aa,1,1,"ng-template",null,7,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG();n.Y8G("nzExtra",t),n.R7$(),n.Y8G("ngIf",a.fusion.threePrimeGene)}}function oa(e,i){1&e&&n.eu8(0)}function ra(e,i){if(1&e&&(n.j41(0,"nz-card",34),n.nI1(1,"enumToTitle"),n.DNE(2,oa,1,0,"ng-container",33),n.k0s()),2&e){const t=n.XpG(),a=n.sdS(32);n.Y8G("nzExtra",n.bMT(1,3,t.fusion.threePrimePartnerStatus)),n.R7$(2),n.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",n.eq3(5,Nn,t.fusion.threePrimePartnerStatus))}}function sa(e,i){1&e&&n.EFF(0," There are Multiple possible fusion partners. ")}function ca(e,i){1&e&&n.EFF(0," The fusion partner is unknown. ")}function la(e,i){if(1&e&&n.DNE(0,sa,1,0)(1,ca,1,0),2&e){let t;n.vxM("MULTIPLE"===(t=i.$implicit)?0:"UNKNOWN"===t?1:-1)}}let On=(()=>{class e{ngOnInit(){if(null==this.fusion)throw new Error("Must pass a Fusion into fusion summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into fusion summary");this.subscribableEntity={id:this.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-fusion-summary"]],inputs:{fusion:"fusion",featureId:"featureId"},standalone:!0,features:[n.aNF],decls:33,vars:22,consts:[["noDescription",""],["noSources",""],["noAliases",""],["partnerStatusDescription",""],["createdTitle",""],["deprecatedTitle",""],["fivePrimeExtra",""],["threePrimeExtra",""],[3,"nzGutter"],["nzSpan","12"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases"],[4,"ngIf"],["nzTitle","5' Partner",3,"nzExtra",4,"ngIf"],["nzTitle","3' Partner",3,"nzExtra",4,"ngIf"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"nzTitle"],[3,"user"],["nzTitle","5' Partner",3,"nzExtra"],[3,"gene",4,"ngIf"],[3,"gene"],[3,"feature"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzTitle","3' Partner",3,"nzExtra"]],template:function(a,o){if(1&a&&(n.j41(0,"nz-row",8)(1,"nz-col",9)(2,"nz-row",8)(3,"nz-col",10)(4,"nz-descriptions",11)(5,"nz-descriptions-item",12),n.DNE(6,Ot,2,2,"p",13)(7,wt,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(9,"nz-col",10)(10,"nz-descriptions",14)(11,"nz-descriptions-item",15),n.DNE(12,Xt,3,1,"ng-container",16)(13,Lt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"nz-descriptions-item",17),n.DNE(16,At,2,1,"ng-container",16),n.k0s(),n.DNE(17,Ut,2,0,"ng-template",null,2,n.C5r),n.k0s()()()(),n.j41(19,"nz-col",9)(20,"nz-descriptions",11),n.DNE(21,Wt,6,2,"ng-container",18)(22,Ht,6,2,"ng-container",18),n.k0s(),n.nrm(23,"br"),n.k0s()(),n.j41(24,"nz-row",8)(25,"nz-col",9),n.DNE(26,qt,4,2,"nz-card",19)(27,ea,3,7,"nz-card",19),n.k0s(),n.j41(28,"nz-col",9),n.DNE(29,ia,4,2,"nz-card",20)(30,ra,3,7,"nz-card",20)(31,la,2,1,"ng-template",null,3,n.C5r),n.k0s()()),2&a){const s=n.sdS(8),h=n.sdS(14),f=n.sdS(18);n.Y8G("nzGutter",n.lJ4(18,Yn)),n.R7$(2),n.Y8G("nzGutter",n.lJ4(19,Yt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.fusion.description)("ngIfElse",s),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.fusion.sources.length>0)("ngIfElse",h),n.R7$(4),n.Y8G("ngIf",o.fusion.featureAliases.length>0)("ngIfElse",f),n.R7$(4),n.Y8G("nzColumn",n.lJ4(20,Nt)),n.R7$(),n.Y8G("ngIf",o.fusion.creationActivity),n.R7$(),n.Y8G("ngIf",o.fusion.deprecationActivity),n.R7$(2),n.Y8G("nzGutter",n.lJ4(21,Yn)),n.R7$(2),n.Y8G("ngIf",o.fusion.fivePrimeGene),n.R7$(),n.Y8G("ngIf",!o.fusion.fivePrimeGene),n.R7$(2),n.Y8G("ngIf",o.fusion.threePrimeGene),n.R7$(),n.Y8G("ngIf",!o.fusion.threePrimeGene)}},dependencies:[l.MD,l.Sq,l.bT,l.T3,p.f3,p.Uq,p.e,x.WF,x.xA,x.gr,d.kT,d.Di,C.pc,D.T,D.s,F.Ti,F.cK,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,$.i,xn.f,Rn.N,tn.m,jn.r,gn,_n.l,fn._],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return e})(),pa=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,G.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,Y.V,d.kT,$.i,_n.l,N.x]})}return e})(),_a=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,x.WF,d.kT,C.pc,D.T,O.hM,W.V,N.x,J.L,H.k,$n.R,tn.m,En,Sn,Pn,vt,Vn,On,pa]})}return e})();var wn=r(152),ma=r(505);function ua(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",13),2&e){const t=n.XpG(4);n.Y8G("feature",t.feature)}}function ga(e,i){if(1&e&&(n.j41(0,"span",10),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function fa(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",10),n.EFF(2),n.k0s(),n.j41(3,"span",10),n.EFF(4," \xa0 "),n.DNE(5,ua,1,1,"cvc-feature-tag",11),n.EFF(6," Variants "),n.k0s(),n.DNE(7,ga,2,1,"span",12),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf,o=n.XpG();n.R7$(2),n.SpI(" ",t," Total "),n.R7$(3),n.Y8G("ngIf",o.feature),n.R7$(2),n.Y8G("ngIf",t>a.length)}}function da(e,i){if(1&e&&(n.DNE(0,fa,8,3,"ng-container",5),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalVariants$))}}function za(e,i){if(1&e){const t=n.RV6();n.j41(0,"i",23),n.bIt("click",function(){n.eBV(t);const o=n.XpG(4);return o.variantNameFilter=void 0,n.Njj(o.onModelUpdated())}),n.k0s()}}function ha(e,i){if(1&e&&n.DNE(0,za,1,0,"i",22),2&e){const t=n.XpG(3);n.Y8G("ngIf",t.variantNameFilter)}}function va(e,i){if(1&e&&n.nrm(0,"nz-option",26),2&e){const t=i.$implicit;n.Y8G("nzLabel",t.name)("nzValue",t)}}function Ca(e,i){if(1&e&&(n.j41(0,"div",27),n.nrm(1,"i",28),n.EFF(2),n.k0s()),2&e){const t=i.$implicit,a=n.XpG(4);n.R7$(),n.Y8G("nzTwotoneColor",a.iconColor),n.R7$(),n.SpI(" ",t.nzLabel," ")}}function ya(e,i){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"nz-select",24),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.variantTypeFilter,o)||(s.variantTypeFilter=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(3);return n.Njj(o.onModelUpdated())}),n.DNE(2,va,1,2,"nz-option",25),n.k0s(),n.DNE(3,Ca,3,2,"ng-template",null,3,n.C5r),n.bVm()}if(2&e){const t=i.ngIf,a=n.sdS(4),o=n.XpG(3);n.R7$(),n.Y8G("nzDropdownMatchSelectWidth",!1),n.R50("ngModel",o.variantTypeFilter),n.Y8G("nzCustomTemplate",a),n.R7$(),n.Y8G("ngForOf",t)}}function Ta(e,i){if(1&e){const t=n.RV6();n.j41(0,"form",14)(1,"nz-form-item")(2,"nz-form-label"),n.EFF(3,"Name Filter"),n.k0s(),n.j41(4,"nz-form-control")(5,"nz-input-group",15)(6,"input",16),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.variantNameFilter,o)||(s.variantNameFilter=o),n.Njj(o)}),n.k0s(),n.DNE(7,ha,1,1,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(9,"nz-form-item")(10,"nz-form-label"),n.EFF(11,"Variant Type"),n.k0s(),n.j41(12,"nz-form-control"),n.DNE(13,ya,5,4,"ng-container",5),n.nI1(14,"ngrxPush"),n.k0s()(),n.j41(15,"nz-form-item")(16,"nz-form-label"),n.EFF(17," No Variant Type "),n.k0s(),n.j41(18,"nz-form-control")(19,"label",17),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.hasNoVariantType,o)||(s.hasNoVariantType=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.k0s()()(),n.j41(20,"nz-form-item")(21,"nz-form-label"),n.EFF(22,"Order By"),n.k0s(),n.j41(23,"nz-form-control")(24,"nz-select",18),n.bIt("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.Njj(s.onVariantSortOrderChanged(o))}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.sortBy,o)||(s.sortBy=o),n.Njj(o)}),n.nrm(25,"nz-option",19)(26,"nz-option",20)(27,"nz-option",21),n.k0s()()()()}if(2&e){const t=n.sdS(8),a=n.XpG(2);n.R7$(5),n.Y8G("nzSuffix",t)("nzCompact",!0),n.R7$(),n.R50("ngModel",a.variantNameFilter),n.R7$(7),n.Y8G("ngIf",n.bMT(14,6,a.menuVariantTypes$)),n.R7$(6),n.R50("ngModel",a.hasNoVariantType),n.R7$(5),n.R50("ngModel",a.sortBy)}}function Fa(e,i){if(1&e&&n.nrm(0,"cvc-variant-tag",30),2&e){const t=n.XpG().$implicit;n.Y8G("variant",t)}}function Ma(e,i){if(1&e&&(n.qex(0),n.DNE(1,Fa,1,1,"cvc-variant-tag",29),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function Ia(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",32)(1,"button",33),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2," Load More "),n.k0s(),n.j41(3,"nz-select",34),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",35)(5,"nz-option",36)(6,"nz-option",37),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function ba(e,i){if(1&e&&(n.qex(0),n.DNE(1,Ia,7,4,"nz-row",31),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function xa(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",6),n.DNE(2,da,2,3,"ng-template",null,0,n.C5r)(4,Ta,28,8,"ng-template",null,1,n.C5r),n.j41(6,"nz-row")(7,"nz-col",7)(8,"cvc-tag-list",8),n.DNE(9,Ma,2,1,"ng-container",9),n.k0s()()(),n.DNE(10,ba,2,1,"ng-container",5),n.nI1(11,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.sdS(5),s=n.XpG();n.R7$(),n.Y8G("nzTitle",a)("nzExtra",o),n.R7$(8),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(11,4,s.pageInfo$))}}let dn=class Cn{constructor(i,t){this.gql=i,this.variantTypeGql=t,this.sortBy=u.GUs.Name,this.variantTypeFilter=[],this.hasNoVariantType=!1,this.debouncedQuery=new k.B,this.pageSize=50,this.iconColor=(0,ma.P)("VariantType")}ngOnInit(){if(void 0===this.feature)throw new Error("Must pass a feature into variant menu component.");this.featureId=this.feature.id,this.initialQueryVars={featureId:this.featureId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:t,loading:a})=>a&&!t),(0,I.p)(b.kP),(0,y.Z)(!0));const i=this.result$.pipe((0,z.T)(t=>t.data?.variants),(0,I.p)(b.kP));this.pageInfo$=i.pipe((0,z.T)(t=>t.pageInfo),(0,I.p)(b.kP)),this.menuVariants$=i.pipe((0,z.T)(t=>t.edges.map(a=>a.node),(0,I.p)(b.kP))),this.totalVariants$=i.pipe((0,z.T)(t=>t.totalCount)),this.debouncedQuery.pipe((0,wn.B)(500),(0,L.s)(this)).subscribe(t=>this.refresh()),this.menuVariantTypes$=this.variantTypeGql.watch({featureId:this.featureId}).valueChanges.pipe((0,z.T)(t=>t.data?.variantTypes.edges?.map(a=>a.node)),(0,I.p)(b.kP))}onModelUpdated(){this.debouncedQuery.next()}onVariantSortOrderChanged(i){this.queryRef$.refetch({first:this.pageSize,sortBy:{column:i,direction:i==u.GUs.CoordinateEnd?u.UEL.Desc:u.UEL.Asc}})}refresh(){if(void 0===this.featureId)throw new Error("Must pass a feature id into variant menu component.");this.queryRef$.refetch({featureId:this.featureId,variantName:this.variantNameFilter,hasNoVariantType:this.hasNoVariantType,variantTypeIds:this.variantTypeFilter?.map(i=>i.id),first:this.pageSize,sortBy:{column:this.sortBy,direction:u.UEL.Asc}})}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||Cn)(n.rXU(u.krZ),n.rXU(u.kBo))};static#e=this.\u0275cmp=n.VBU({type:Cn,selectors:[["cvc-variant-menu"]],inputs:{feature:"feature"},decls:4,vars:6,consts:[["cardTitle",""],["cardExtra",""],["nameInputClearTpl",""],["variantTypeTemplate",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"feature",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"feature"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Variant Names","name","name-filter",3,"ngModelChange","ngModel"],["nz-checkbox","","name","noVt",3,"ngModelChange","ngModel"],["nzSize","small","id","variant-sort-order","name","sortBy",2,"width","115px",3,"ngModelChange","ngModel"],["nzValue","NAME","nzLabel","Variant Name","selected","",2,"width","100%"],["nzValue","COORDINATE_START","nzLabel","Start Position",2,"width","100%"],["nzValue","COORDINATE_END","nzLabel","End Position",2,"width","100%"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzAllowClear","","nzSize","small","nzMode","multiple","nzPlaceHolder","Variant Type","name","variantTypes","nzShowSearch","",2,"min-width","115px",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel","nzCustomTemplate"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue"],[1,"ant-select-selection-item-content"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone",3,"nzTwotoneColor"],[3,"variant",4,"ngIf"],[3,"variant"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",4),n.nI1(1,"ngrxPush"),n.DNE(2,xa,12,6,"ng-container",5),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuVariants$)))},dependencies:[l.Sq,l.bT,g.qT,g.me,g.BC,g.cb,g.vS,g.cV,G.aO,U.c,Q.p,p.Uq,p.e,F.cK,P.Dn,T.CA,T.Ls,T.Mo,T.zS,R.Sy,R.tg,R.vN,E.ld,E.WI,d.Di,Gn.$g,Y.a,bn.V,B.M,fn._,S.L9],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]})};dn=(0,nn.Cg)([(0,L.d)()],dn);var Ga=r(5473);function Ea(e,i){if(1&e&&(n.j41(0,"span",9),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function Sa(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",9),n.EFF(2),n.k0s(),n.DNE(3,Ea,2,1,"span",10),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf;n.R7$(2),n.SpI("",t," Total"),n.R7$(),n.Y8G("ngIf",t>a.length)}}function $a(e,i){if(1&e&&(n.DNE(0,Sa,4,2,"ng-container",4),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalMolecularProfiles$))}}function Pa(e,i){if(1&e){const t=n.RV6();n.j41(0,"i",20),n.bIt("click",function(){n.eBV(t);const o=n.XpG(4);return o.mpNameFilter=void 0,n.Njj(o.onModelUpdated())}),n.k0s()}}function Da(e,i){if(1&e&&n.DNE(0,Pa,1,0,"i",19),2&e){const t=n.XpG(3);n.Y8G("ngIf",t.mpNameFilter)}}function Ra(e,i){if(1&e){const t=n.RV6();n.j41(0,"form",11)(1,"nz-form-item")(2,"nz-form-label"),n.EFF(3,"Filter"),n.k0s(),n.j41(4,"nz-form-control")(5,"nz-input-group",12)(6,"input",13),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.mpNameFilter,o)||(s.mpNameFilter=o),n.Njj(o)}),n.k0s(),n.DNE(7,Da,1,1,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(9,"nz-form-item")(10,"nz-form-label"),n.EFF(11,"Show"),n.k0s(),n.j41(12,"nz-form-control")(13,"nz-select",14),n.bIt("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.Njj(s.onMolecularProfileStatusFilterChanged(o))}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.statusFilter,o)||(s.statusFilter=o),n.Njj(o)}),n.nrm(14,"nz-option",15)(15,"nz-option",16)(16,"nz-option",17)(17,"nz-option",18),n.k0s()()()()}if(2&e){const t=n.sdS(8),a=n.XpG(2);n.R7$(5),n.Y8G("nzSuffix",t)("nzCompact",!0),n.R7$(),n.R50("ngModel",a.mpNameFilter),n.R7$(7),n.R50("ngModel",a.statusFilter)}}function ja(e,i){if(1&e&&n.nrm(0,"cvc-molecular-profile-tag",22),2&e){const t=n.XpG().$implicit;n.Y8G("molecularProfile",t)}}function Va(e,i){if(1&e&&(n.qex(0),n.DNE(1,ja,1,1,"cvc-molecular-profile-tag",21),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function Ya(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",24)(1,"button",25),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2,"Load More "),n.k0s(),n.j41(3,"nz-select",26),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",27)(5,"nz-option",28)(6,"nz-option",29),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function Na(e,i){if(1&e&&(n.qex(0),n.DNE(1,Ya,7,4,"nz-row",23),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function Oa(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",5),n.DNE(2,$a,2,3,"ng-template",null,0,n.C5r)(4,Ra,18,4,"ng-template",null,1,n.C5r),n.j41(6,"nz-row")(7,"nz-col",6)(8,"cvc-tag-list",7),n.DNE(9,Va,2,1,"ng-container",8),n.k0s()()(),n.DNE(10,Na,2,1,"ng-container",4),n.nI1(11,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.sdS(5),s=n.XpG();n.R7$(),n.Y8G("nzTitle",a)("nzExtra",o),n.R7$(8),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(11,4,s.pageInfo$))}}let zn=class yn{constructor(i){this.gql=i,this.statusFilter=u.oGI.All,this.debouncedQuery=new k.B,this.pageSize=50}ngOnInit(){if(void 0===this.featureId)throw new Error("Must pass a feature id into molecular profile menu component.");this.initialQueryVars={featureId:this.featureId,evidenceStatusFilter:this.statusFilter,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:i,loading:t})=>t&&!i),(0,I.p)(b.kP),(0,y.Z)(!0)),this.connection$=this.result$.pipe((0,z.T)(i=>i.data?.molecularProfiles),(0,I.p)(b.kP)),this.pageInfo$=this.connection$.pipe((0,z.T)(i=>i.pageInfo),(0,I.p)(b.kP)),this.menuMolecularProfiles$=this.connection$.pipe((0,z.T)(i=>i.edges.map(t=>t.node),(0,I.p)(b.kP))),this.totalMolecularProfiles$=this.connection$.pipe((0,z.T)(i=>i.totalCount)),this.debouncedQuery.pipe((0,wn.B)(500),(0,L.s)(this)).subscribe(i=>this.refresh())}onModelUpdated(){this.debouncedQuery.next()}onMolecularProfileStatusFilterChanged(i){this.queryRef$.refetch({first:this.pageSize,evidenceStatusFilter:i})}refresh(){if(void 0===this.featureId)throw new Error("Must pass a feature id into molecular profile menu component.");this.queryRef$.refetch({featureId:this.featureId,mpName:this.mpNameFilter,first:this.pageSize})}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||yn)(n.rXU(u.J9f))};static#e=this.\u0275cmp=n.VBU({type:yn,selectors:[["cvc-molecular-profile-menu"]],inputs:{featureId:"featureId"},decls:4,vars:6,consts:[["cardTitle",""],["cardExtra",""],["nameInputClearTpl",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Molecular Profile Names","name","name-filter",3,"ngModelChange","ngModel"],["nzSize","small","id","status-filter","name","statusFilter",2,"width","320px",3,"ngModelChange","ngModel"],["nzValue","WITH_ACCEPTED","nzLabel","Molecular Profiles with accepted evidence",2,"width","100%"],["nzValue","WITH_ACCEPTED_OR_SUBMITTED","nzLabel","Molecular Profiles with accepted and/or submitted evidence","selected","",2,"width","100%"],["nzValue","WITH_SUBMITTED","nzLabel","Molecular Profiles with submitted evidence",2,"width","100%"],["nzValue","ALL","nzLabel","All Molecular Profiles",2,"width","100%"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],[3,"molecularProfile",4,"ngIf"],[3,"molecularProfile"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",3),n.nI1(1,"ngrxPush"),n.DNE(2,Oa,12,6,"ng-container",4),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuMolecularProfiles$)))},dependencies:[l.Sq,l.bT,g.qT,g.me,g.BC,g.cb,g.vS,g.cV,G.aO,U.c,Q.p,p.Uq,p.e,F.cK,P.Dn,T.CA,T.Ls,T.Mo,T.zS,R.Sy,R.tg,R.vN,E.ld,E.WI,Y.a,d.Di,Ga.z,B.M,S.L9],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]})};zn=(0,nn.Cg)([(0,L.d)()],zn);let wa=(()=>{class e{constructor(){}parse(t){const a={kegg:"http://www.genome.jp/kegg-bin/show_pathway?",reactome:"https://reactome.org/content/detail/",pharmgkb:"https://www.pharmgkb.org/pathway/",humancyc:"http://humancyc.org/HUMAN/NEW-IMAGE?type=PATHWAY&object=",smpdb:"http://www.smpdb.ca/view/",wikipathways:"http://wikipathways.org/index.php/Pathway:",pid:null,netpath:null,biocarta:null,inoh:null,signalink:null,ehmn:null},o=t.pathway||[],s=[];let h;return Object.keys(o).forEach(function(f){Array.isArray(o[f])||(o[f]=[o[f]]),o[f].forEach(function(w,Xn){h=a[f]+o[f][Xn].id,null===a[f]&&(h=null),s.push({name:o[f][Xn].name,link:h,src:f})})}),t.pathway=s,t.pathwayList=s.map(f=>f.name),!Array.isArray(t.alias)&&t.alias&&(t.alias=[t.alias]),!Array.isArray(t.interpro)&&t.interpro&&(t.interpro=[t.interpro]),t.interproList=t.interpro.map(f=>f.desc),t}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275prov=n.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ka=()=>({xxl:2,xl:2,lg:2,md:1,sm:1,xs:1}),Xa=()=>({xxl:4,xl:4,lg:2,md:2,sm:1,xs:1}),kn=()=>({x:"100%",y:"200px"});function La(e,i){if(1&e&&(n.qex(0),n.j41(1,"div",9)(2,"nz-descriptions",10)(3,"nz-descriptions-item",11),n.EFF(4),n.k0s(),n.j41(5,"nz-descriptions-item",12),n.EFF(6),n.k0s()(),n.j41(7,"nz-descriptions",10)(8,"nz-descriptions-item",13),n.EFF(9),n.k0s(),n.j41(10,"nz-descriptions-item",14),n.EFF(11),n.k0s(),n.j41(12,"nz-descriptions-item",15),n.EFF(13),n.k0s(),n.j41(14,"nz-descriptions-item",16),n.EFF(15),n.k0s()(),n.j41(16,"nz-descriptions",17)(17,"nz-descriptions-item",18),n.EFF(18),n.k0s(),n.j41(19,"nz-descriptions-item",19)(20,"p",20),n.EFF(21),n.k0s()(),n.j41(22,"nz-descriptions-item",21)(23,"p",20),n.EFF(24),n.k0s()()()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("nzColumn",n.lJ4(15,ka)),n.R7$(2),n.Lme(" ",t.info.symbol," (ID: ",t.info._id,") "),n.R7$(2),n.SpI(" ",t.info.uniprot["Swiss-Prot"]," "),n.R7$(),n.Y8G("nzColumn",n.lJ4(16,Xa)),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.chr," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.strand," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.start," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.end," "),n.R7$(),n.Y8G("nzColumn",1),n.R7$(2),n.SpI(" ",t.info.alias.join(", ")," "),n.R7$(2),n.Y8G("nzEllipsisRows",3),n.R7$(),n.SpI(" ",t.info.interproList.join(", ")," "),n.R7$(2),n.Y8G("nzEllipsisRows",3),n.R7$(),n.SpI(" ",t.info.pathwayList.join(", ")," ")}}function Ba(e,i){if(1&e&&(n.qex(0),n.j41(1,"div",9)(2,"p",20),n.EFF(3),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("nzEllipsisRows",12),n.R7$(),n.SpI(" ",t.info.summary," ")}}function Aa(e,i){if(1&e&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td"),n.EFF(4),n.k0s(),n.j41(5,"td"),n.EFF(6),n.k0s()()),2&e){const t=i.$implicit;n.R7$(2),n.SpI(" ",t.short_desc," "),n.R7$(2),n.SpI(" ",t.desc," "),n.R7$(2),n.SpI(" ",t.id," ")}}function Ua(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-table",22,0)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Name"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Description"),n.k0s(),n.j41(9,"th"),n.EFF(10,"ID"),n.k0s()()(),n.j41(11,"tbody"),n.DNE(12,Aa,7,3,"ng-template",23),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("nzData",t.info.interpro)("nzScroll",n.lJ4(4,kn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Qa(e,i){if(1&e&&(n.j41(0,"a",28),n.EFF(1),n.k0s()),2&e){const t=n.XpG().$implicit;n.FS9("href",null==t?null:t.link,n.B4B),n.R7$(),n.SpI(" ",t.src," ")}}function Wa(e,i){if(1&e&&n.EFF(0),2&e){const t=n.XpG().$implicit;n.SpI(" ",t.src," ")}}function Ja(e,i){if(1&e&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td",26),n.DNE(4,Qa,2,2,"a",27)(5,Wa,1,1,"ng-template",null,2,n.C5r),n.k0s()()),2&e){const t=i.$implicit,a=n.sdS(6);n.R7$(2),n.SpI(" ",t.name," "),n.R7$(2),n.Y8G("ngIf",null==t?null:t.link)("ngIfElse",a)}}function Ha(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-table",22,1)(3,"colgroup"),n.nrm(4,"col",24)(5,"col",25),n.k0s(),n.j41(6,"thead")(7,"tr")(8,"th"),n.EFF(9,"Name"),n.k0s(),n.j41(10,"th",26),n.EFF(11,"Source"),n.k0s()()(),n.j41(12,"tbody"),n.DNE(13,Ja,7,3,"ng-template",23),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("nzData",t.info.pathway)("nzScroll",n.lJ4(4,kn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Ka(e,i){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"nz-card",4)(2,"nz-card-tab")(3,"nz-tabset",5),n.bIt("nzSelectChange",function(o){n.eBV(t);const s=n.XpG();return n.Njj(s.tabChange(o))}),n.nrm(4,"nz-tab",6)(5,"nz-tab",6)(6,"nz-tab",6)(7,"nz-tab",6),n.k0s()(),n.qex(8,7),n.DNE(9,La,25,17,"ng-container",8)(10,Ba,4,2,"ng-container",8)(11,Ua,13,5,"ng-container",8)(12,Ha,14,5,"ng-container",8),n.bVm(),n.k0s(),n.bVm()}if(2&e){const t=n.XpG();n.R7$(3),n.Y8G("nzAnimated",!0),n.R7$(),n.Y8G("nzTitle","Overview"),n.R7$(),n.Y8G("nzTitle","Summary"),n.R7$(),n.Y8G("nzTitle","Protein Domains ("+t.info.interproList.length+")"),n.R7$(),n.Y8G("nzTitle","Pathways ("+t.info.pathway.length+")"),n.R7$(),n.Y8G("ngSwitch",t.tabIndex),n.R7$(),n.Y8G("ngSwitchCase",0),n.R7$(),n.Y8G("ngSwitchCase",1),n.R7$(),n.Y8G("ngSwitchCase",2),n.R7$(),n.Y8G("ngSwitchCase",3)}}let Za=(()=>{class e{constructor(t){this.infoService=t,this.tabIndex=0}ngOnInit(){this.tabChange({index:0,tab:null})}ngOnChanges(){this.geneInfo&&(this.info=this.infoService.parse(JSON.parse(String(this.geneInfo))))}tabChange(t){this.tabIndex=t.index}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(wa))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-my-gene-info"]],inputs:{geneInfo:"geneInfo"},features:[n.OA$],decls:1,vars:1,consts:[["proteinDomainsTable",""],["pathwaysTable",""],["noPathwayLink",""],[4,"ngIf"],["nzTitle","MyGeneInfo"],["nzSize","small",3,"nzSelectChange","nzAnimated"],[3,"nzTitle"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nzSize","small",3,"nzColumn"],["nzTitle","Entrez Symbol"],["nzTitle","UniProtKB ID"],["nzTitle","Chromosome"],["nzTitle","Strand"],["nzTitle","Start"],["nzTitle","Stop"],["nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Aliases"],["nzTitle","Protein Domains"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzTitle","Pathways"],["nzSize","small",3,"nzData","nzScroll","nzFrontPagination","nzShowPagination"],["nz-virtual-scroll",""],["width","90%"],["width","10%"],[1,"button-col"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href",4,"ngIf","ngIfElse"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href"]],template:function(a,o){1&a&&n.DNE(0,Ka,13,10,"ng-container",3),2&a&&n.Y8G("ngIf",o.info)},dependencies:[l.bT,l.ux,l.e1,F.cK,F.RO,O.JZ,O.rE,j.CP,j.SO,j._4,j.IL,j.aj,j.kt,j.CC,d.Di,x.xA,x.gr],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]})}return e})();const qa=()=>[8,16];let ni=(()=>{class e{ngOnInit(){if(null==this.gene)throw new Error("Must pass a Gene into gene summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into factor summary");this.subscribableEntity={id:this.featureId,entityType:u.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-genes-summary"]],inputs:{gene:"gene",featureId:"featureId"},decls:5,vars:4,consts:[[3,"nzGutter"],["nzSpan","12"],[3,"gene"],[3,"geneInfo"]],template:function(a,o){1&a&&(n.j41(0,"nz-row",0)(1,"nz-col",1),n.nrm(2,"cvc-gene-base-summary",2),n.k0s(),n.j41(3,"nz-col",1),n.nrm(4,"cvc-my-gene-info",3),n.k0s()()),2&a&&(n.Y8G("nzGutter",n.lJ4(3,qa)),n.R7$(2),n.Y8G("gene",o.gene),n.R7$(2),n.Y8G("geneInfo",o.gene.myGeneInfoDetails))},dependencies:[p.Uq,p.e,Za,gn],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return e})();function ei(e,i){if(1&e&&(n.j41(0,"span",7),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function ti(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",7),n.EFF(2),n.k0s(),n.DNE(3,ei,2,1,"span",8),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf;n.R7$(2),n.SpI("",t," Total"),n.R7$(),n.Y8G("ngIf",t>a.length)}}function ai(e,i){if(1&e&&(n.DNE(0,ti,4,2,"ng-container",2),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalFusions$))}}function ii(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",10),2&e){const t=n.XpG().$implicit;n.Y8G("feature",t)}}function oi(e,i){if(1&e&&(n.qex(0),n.DNE(1,ii,1,1,"cvc-feature-tag",9),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function ri(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",12)(1,"button",13),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2," Load More "),n.k0s(),n.j41(3,"nz-select",14),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",15)(5,"nz-option",16)(6,"nz-option",17),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function si(e,i){if(1&e&&(n.qex(0),n.DNE(1,ri,7,4,"nz-row",11),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function ci(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",3),n.DNE(2,ai,2,3,"ng-template",null,0,n.C5r),n.j41(4,"nz-row")(5,"nz-col",4)(6,"cvc-tag-list",5),n.DNE(7,oi,2,1,"ng-container",6),n.k0s()()(),n.DNE(8,si,2,1,"ng-container",2),n.nI1(9,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.XpG();n.R7$(),n.Y8G("nzTitle",a),n.R7$(6),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(9,3,o.pageInfo$))}}let hn=class Tn{constructor(i){this.gql=i,this.debouncedQuery=new k.B,this.pageSize=50}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into fusion menu component.");this.initialQueryVars={genePartnerId:this.geneId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:i,loading:t})=>t&&!i),(0,I.p)(b.kP),(0,y.Z)(!0)),this.connection$=this.result$.pipe((0,z.T)(i=>i.data?.fusions),(0,I.p)(b.kP)),this.pageInfo$=this.connection$.pipe((0,z.T)(i=>i.pageInfo),(0,I.p)(b.kP)),this.menuFusions$=this.connection$.pipe((0,z.T)(i=>i.edges.map(t=>t.node),(0,I.p)(b.kP))),this.totalFusions$=this.connection$.pipe((0,z.T)(i=>i.totalCount))}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||Tn)(n.rXU(u.QcR))};static#e=this.\u0275cmp=n.VBU({type:Tn,selectors:[["cvc-fusions-menu"]],inputs:{geneId:"geneId"},decls:4,vars:6,consts:[["cardTitle",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"feature",4,"ngIf"],[3,"feature"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",1),n.nI1(1,"ngrxPush"),n.DNE(2,ci,10,5,"ng-container",2),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuFusions$)))},dependencies:[l.Sq,l.bT,g.BC,g.vS,G.aO,U.c,Q.p,p.Uq,p.e,F.cK,E.ld,E.WI,Y.a,d.Di,fn._,B.M,S.L9],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]})};hn=(0,nn.Cg)([(0,L.d)()],hn);const li=()=>[8,16];function pi(e,i){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-genes-summary",9),n.k0s()),2&e){const t=n.XpG().ngIf;n.R7$(),n.Y8G("featureId",t.id)("gene",t.featureInstance)}}function _i(e,i){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-factor-summary",10),n.k0s()),2&e){const t=n.XpG().ngIf;n.R7$(),n.Y8G("featureId",t.id)("factor",t.featureInstance)}}function mi(e,i){if(1&e&&n.nrm(0,"cvc-fusion-summary",2),2&e){const t=n.XpG().ngIf;n.Y8G("featureId",t.id)("fusion",t.featureInstance)}}function ui(e,i){if(1&e&&n.nrm(0,"cvc-molecular-profile-menu",11),2&e){const t=n.XpG().ngIf;n.Y8G("featureId",t.id)}}function gi(e,i){if(1&e&&n.nrm(0,"cvc-variant-menu",12),2&e){const t=n.XpG().ngIf;n.Y8G("feature",t)}}function fi(e,i){if(1&e&&n.nrm(0,"cvc-fusions-menu",13),2&e){const t=n.XpG(2).ngIf;n.Y8G("geneId",t.id)}}function di(e,i){1&e&&(n.j41(0,"nz-tab",8),n.DNE(1,fi,1,1,"ng-template",6),n.k0s())}function zi(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-row",1),n.DNE(2,pi,2,2,"span")(3,_i,2,2,"span")(4,mi,1,2,"cvc-fusion-summary",2),n.j41(5,"nz-col",3)(6,"nz-tabset",4)(7,"nz-tab",5),n.DNE(8,ui,1,1,"ng-template",6),n.k0s(),n.j41(9,"nz-tab",7),n.DNE(10,gi,1,1,"ng-template",6),n.k0s(),n.DNE(11,di,2,0,"nz-tab",8),n.k0s()()(),n.bVm()),2&e){let t;const a=i.ngIf;n.R7$(),n.Y8G("nzGutter",n.lJ4(4,li)),n.R7$(),n.vxM("Gene"===(t=a.featureInstance.__typename)?2:"Factor"===t?3:"Fusion"===t?4:-1),n.R7$(3),n.Y8G("nzSpan",24),n.R7$(6),n.vxM("Gene"==a.featureInstance.__typename?11:-1)}}const hi=[{path:"",component:Be,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(t,a,o){this.gql=t,this.viewerService=a,this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.viewer$=this.viewerService.viewer$;let f=this.gql.watch({featureId:+s.featureId}).valueChanges;this.feature$=f.pipe((0,v.E)("data","feature")),this.loading$=f.pipe((0,v.E)("loading"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(u.gUZ),n.rXU(X.q),n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"featureId","fusion"],[3,"nzSpan"],["nzType","card"],["nzTitle","Molecular Profiles"],["nz-tab",""],["nzTitle","Variants"],["nzTitle","Fusions"],[3,"featureId","gene"],[3,"featureId","factor"],[3,"featureId"],[3,"feature"],[3,"geneId"]],template:function(a,o){1&a&&(n.DNE(0,zi,12,5,"ng-container",0),n.nI1(1,"ngrxPush")),2&a&&n.Y8G("ngIf",n.bMT(1,1,o.feature$))},dependencies:[l.bT,p.Uq,p.e,O.JZ,O.rE,O.Tl,dn,zn,ni,Vn,On,hn,S.L9],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return e})(),data:{breadcrumb:"Summary"}},{path:"comments",component:pn,data:{breadcrumb:"Comments"}},{path:"revisions",component:rt,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ze,data:{breadcrumb:"Summary"}},{path:"events",component:Qe,data:{breadcrumb:"Events"}}]}];let vi=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[M.iI.forChild(hi),_a,cn,it,He,Ae,M.iI]})}return e})();var Ci=r(7169);let yi=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,vi,G.Zw,P.Y3,V.ZJ,C.pc,d.kT,p.f3,q.$,Fn.MC,$.i,rn.W,c.Y,A.m,on.C,an.V,Z.p,Ci.W,en]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/445.cf7e1aa17e07900a.js b/server/public/445.cf7e1aa17e07900a.js new file mode 100644 index 000000000..3fb1a7e04 --- /dev/null +++ b/server/public/445.cf7e1aa17e07900a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[445],{9045:(Bn,K,r)=>{r.d(K,{J:()=>k});var l=r(6514),tn=r(505),c=r(3953),A=r(177),an=r(1188),on=r(5699),rn=r(1236),$=r(5103),b=r(8011),p=r(2387),P=r(3075);const V=(_,y,u)=>({rejected:_,submitted:y,accepted:u});function C(_,y){}function d(_,y){if(1&_&&(c.qex(0),c.j41(1,"a",5),c.DNE(2,C,0,0,"ng-template",6),c.k0s(),c.bVm()),2&_){const u=c.XpG(),v=c.sdS(2);c.R7$(),c.Y8G("routerLink",u.evidence.link),c.R7$(),c.Y8G("ngTemplateOutlet",v)}}function M(_,y){}function sn(_,y){if(1&_&&c.nrm(0,"cvc-evidence-popover",9),2&_){const u=c.XpG(3);c.Y8G("evidenceId",u.evidence.id)}}function n(_,y){if(1&_&&c.DNE(0,sn,1,1,"cvc-evidence-popover",8),2&_){const u=c.XpG(2);c.Y8G("ngIf",u.enablePopover)}}function cn(_,y){if(1&_&&(c.j41(0,"nz-tag",7),c.DNE(1,M,0,0,"ng-template",6),c.k0s(),c.DNE(2,n,1,1,"ng-template",null,3,c.C5r)),2&_){const u=c.sdS(3),v=c.XpG(),X=c.sdS(6);c.Y8G("ngClass",c.sMw(5,V,"REJECTED"===v.evidence.status,"SUBMITTED"===v.evidence.status,"ACCEPTED"===v.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",u)("nzPopoverTrigger",v.enablePopover?"hover":null),c.R7$(),c.Y8G("ngTemplateOutlet",X)}}function m(_,y){}function ln(_,y){if(1&_&&c.DNE(0,m,0,0,"ng-template",6),2&_){c.XpG();const u=c.sdS(2);c.Y8G("ngTemplateOutlet",u)}}function pn(_,y){if(1&_&&(c.j41(0,"cvc-icon-badges",10),c.nrm(1,"i",11),c.nI1(2,"entityColor"),c.nI1(3,"entityColor"),c.k0s(),c.EFF(4)),2&_){const u=c.XpG();c.Y8G("flagged",u.evidence.flagged)("entityColor",u.iconColor),c.R7$(),c.Y8G("nzTwotoneColor","REJECTED"===u.evidence.status?c.bMT(2,4,"Rejected"):c.bMT(3,6,"EvidenceItem")),c.R7$(3),c.SpI(" ",u.evidence.name,"\n")}}let k=(()=>{class _ extends l.s{set evidence(u){if(!u)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=u}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,tn.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#n=this.\u0275fac=function(v){return new(v||_)};static#e=this.\u0275cmp=c.VBU({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[c.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(v,X){if(1&v&&c.DNE(0,d,3,2,"ng-container",4)(1,cn,4,9,"ng-template",null,0,c.C5r)(3,ln,1,1,"ng-template",null,1,c.C5r)(5,pn,5,8,"ng-template",null,2,c.C5r),2&v){const S=c.sdS(4);c.Y8G("ngIf",X.linked)("ngIfElse",S)}},dependencies:[A.YU,A.bT,A.T3,an.Wk,on.s,rn.L_,$.Dn,b.S,p.N,P.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]})}return _})()},4817:(Bn,K,r)=>{r.r(K),r.d(K,{FeaturesDetailModule:()=>yi});var l=r(177),tn=r(2385),c=r(1896),A=r(8103),an=r(5736),on=r(4124),rn=r(1532),$=r(4917),b=r(513),p=r(7529),P=r(5103),V=r(3062),C=r(7685),d=r(7391),M=r(1188),sn=r(4873),n=r(3953);let cn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,sn.A]})}return e})();var m=r(9145),ln=r(664);let pn=(()=>{class e{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.featureId,entityType:m.T31.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-comment-list",0),2&a&&n.Y8G("commentable",o.commentable)},dependencies:[ln.D],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var k=r(1413),_=r(4412),y=r(9172),u=r(6977),v=r(4608),X=r(1305),S=r(1774),U=r(6389),Q=r(5930),Z=r(3617),Fn=r(1236),An=r(9945),Un=r(8821),Qn=r(7428),Wn=r(6269),Jn=r(9765),Hn=r(5269),Kn=r(4126),q=r(1635),Zn=r(1226),z=r(6354),I=r(5964),x=r(9199),L=r(9894),g=r(9417),T=r(8927),Y=r(2983),F=r(5703),Mn=r(5154),E=r(1997),qn=r(8492),ne=r(3842),ee=r(8692),te=r(4308),In=r(7051),ae=r(4222),ie=r(1939),oe=r(5566),xn=r(3100);function re(e,i){if(1&e&&(n.qex(0),n.nrm(1,"cvc-variant-tag",21),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("variant",t)}}function se(e,i){if(1&e&&n.DNE(0,re,2,1,"ng-container",20),2&e){const t=n.XpG(3).ngrxLet;n.Y8G("ngForOf",t)}}function ce(e,i){if(1&e&&(n.j41(0,"nz-alert",19),n.DNE(1,se,1,1,"ng-template",null,1,n.C5r),n.k0s()),2&e){const t=n.sdS(2);n.Y8G("nzDescription",t)}}function le(e,i){1&e&&(n.qex(0),n.DNE(1,ce,3,1,"nz-alert",18),n.bVm())}function pe(e,i){if(1&e&&(n.qex(0),n.DNE(1,le,2,0,"ng-container",17),n.bVm()),2&e){const t=i.ngrxLet;n.R7$(),n.Y8G("ngIf",t&&t.length>0)}}function _e(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-alert",22),n.bIt("nzOnClose",function(){n.eBV(t);const o=n.XpG();return n.Njj(o.onSuccessBannerClose())}),n.k0s()}}function me(e,i){if(1&e&&n.nrm(0,"nz-alert",23),2&e){n.XpG();const t=n.sdS(8);n.Y8G("nzDescription",t)}}function ue(e,i){if(1&e&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function ge(e,i){if(1&e&&(n.j41(0,"ul"),n.DNE(1,ue,2,1,"li",20),n.k0s()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.errorMessages)}}function fe(e,i){}function de(e,i){1&e&&n.DNE(0,fe,0,0,"ng-template")}function ze(e,i){if(1&e&&(n.qex(0),n.DNE(1,de,1,0,null,25),n.bVm()),2&e){n.XpG();const t=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",t)}}function he(e,i){}function ve(e,i){1&e&&n.DNE(0,he,0,0,"ng-template")}function Ce(e,i){if(1&e&&(n.j41(0,"span",26),n.DNE(1,ve,1,0,null,25),n.k0s()),2&e){n.XpG();const t=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",t)}}function ye(e,i){if(1&e&&(n.j41(0,"button",27),n.EFF(1," Deprecate Variant "),n.k0s()),2&e){const t=n.XpG().ngrxLet,a=n.XpG();n.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10&&t.signedIn&&t.isEditor&&a.reason))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}function Te(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-form-buttons"),n.DNE(2,ze,2,1,"ng-container",24)(3,Ce,2,1,"ng-template",null,2,n.C5r)(5,ye,2,3,"ng-template",null,3,n.C5r),n.k0s(),n.bVm()),2&e){const t=i.ngrxLet,a=n.sdS(4);n.R7$(2),n.Y8G("ngIf",t.signedIn&&t.isEditor)("ngIfElse",a)}}let nn=class vn{constructor(i,t,a,o,s){this.deprecateFeatureGQL=i,this.featureDetailGQL=t,this.variantsForFeatureGQL=a,this.networkErrorService=o,this.viewerService=s,this.destroy$=new k.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.comment="",this.deprecateFeatureMutator=new Zn.E(o),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,L.s)(this)).subscribe(t=>{this.selectedOrg=t.mostRecentOrg}),void 0===this.featureId)throw new Error("Must pass a feature id into deprecate feature component");let i=this.variantsForFeatureGQL.fetch({featureId:this.featureId});this.undeprecatedVariants$=i.pipe((0,z.T)(({data:t})=>t.variants.nodes),(0,I.p)(x.kP),(0,z.T)(t=>t.filter(a=>!a.deprecated))),this.variantListLoading$=i.pipe((0,z.T)(({loading:t})=>t))}deprecateFeature(){if(this.errorMessages=[],this.reason&&this.comment&&this.featureId){let t=this.deprecateFeatureMutator.mutate(this.deprecateFeatureGQL,{deprecationReason:this.reason,comment:this.comment,featureId:this.featureId,organizationId:this.selectedOrg?.id},{refetchQueries:[{query:this.featureDetailGQL.document,variables:{featureId:this.featureId}}]});t.submitSuccess$.pipe((0,u.Q)(this.destroy$)).subscribe(a=>{a&&(this.success=!0,this.comment="")}),t.submitError$.pipe((0,u.Q)(this.destroy$)).subscribe(a=>{a.length>0&&(this.errorMessages=a)}),t.isSubmitting$.pipe((0,u.Q)(this.destroy$)).subscribe(a=>{this.loading=a})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(t){return new(t||vn)(n.rXU(m.yR6),n.rXU(m.ULh),n.rXU(m.M5K),n.rXU(ae.N),n.rXU(X.q))};static#e=this.\u0275cmp=n.VBU({type:vn,selectors:[["cvc-feature-deprecate-form"]],inputs:{featureId:"featureId"},standalone:!0,features:[n.aNF],decls:20,vars:10,consts:[["errorContents",""],["variantsToDeprecateTpl",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Feature deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Feature",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","warning","nzMessage","This action will also attempt to deprecate the following Variants and their Molecular Profiles:",3,"nzDescription",4,"nzSpaceItem"],["nzType","warning","nzMessage","This action will also attempt to deprecate the following Variants and their Molecular Profiles:",3,"nzDescription"],[4,"ngFor","ngForOf"],[3,"variant"],["nzBanner","","nzMessage","Feature deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Feature",3,"nzDescription"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate Features."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(t,a){if(1&t){const o=n.RV6();n.j41(0,"nz-spin",4),n.nI1(1,"ngrxPush"),n.j41(2,"nz-space",5),n.DNE(3,pe,2,1,"ng-container",6),n.k0s()(),n.j41(4,"nz-card",7),n.DNE(5,_e,1,0,"nz-alert",8)(6,me,1,1,"nz-alert",9)(7,ge,2,1,"ng-template",null,0,n.C5r),n.j41(9,"nz-form-item")(10,"nz-select",10),n.mxI("ngModelChange",function(h){return n.eBV(o),n.DH7(a.reason,h)||(a.reason=h),n.Njj(h)}),n.nrm(11,"nz-option",11)(12,"nz-option",12)(13,"nz-option",13),n.k0s()(),n.j41(14,"form",14),n.bIt("ngSubmit",function(){return n.eBV(o),n.Njj(a.deprecateFeature())}),n.j41(15,"cvc-comment-input-form",15),n.mxI("commentChange",function(h){return n.eBV(o),n.DH7(a.comment,h)||(a.comment=h),n.Njj(h)}),n.k0s(),n.j41(16,"nz-spin",16)(17,"nz-form-item")(18,"nz-form-control"),n.DNE(19,Te,7,2,"ng-container",6),n.k0s()()()()()}2&t&&(n.Y8G("nzSpinning",n.bMT(1,8,a.variantListLoading$)),n.R7$(3),n.Y8G("ngrxLet",a.undeprecatedVariants$),n.R7$(2),n.Y8G("ngIf",a.success),n.R7$(),n.Y8G("ngIf",a.errorMessages.length>0),n.R7$(4),n.R50("ngModel",a.reason),n.R7$(5),n.R50("comment",a.comment),n.R7$(),n.Y8G("nzSpinning",a.loading),n.R7$(3),n.Y8G("ngrxLet",a.viewer$))},dependencies:[l.MD,l.Sq,l.bT,l.T3,M.iI,g.YN,g.qT,g.BC,g.cb,g.vS,g.cV,g.X1,S.Nj,S.L9,T.PQ,p.Uq,p.e,T.CA,T.Ls,T.zS,Z.$,Z.Y,p.f3,b.Zw,b.aO,U.c,Q.p,Y.V,Y.a,F.Ti,F.cK,C.pc,C.U5,C.Dq,d.kT,Mn.Qt,Mn.LH,E.DH,E.ld,E.WI,qn.M,ne.k,ie.l,ee.j,te.I,oe.K,In.U,xn.V],encapsulation:2,changeDetection:0})};nn=(0,q.Cg)([(0,L.d)()],nn);var Gn=r(1845),Fe=r(3075);const Me=e=>({flagged:e}),Ie=e=>["/features",e,"revise"],xe=e=>({featureType:e}),Ge=()=>[];function be(e,i){if(1&e&&(n.qex(0),n.EFF(1),n.bVm()),2&e){const t=n.XpG().ngIf;n.R7$(),n.SpI(" ",t.fullName," ")}}function Ee(e,i){if(1&e&&(n.j41(0,"button",19,2),n.EFF(2," Revise "),n.k0s()),2&e){const t=n.sdS(1),a=n.XpG(4).ngIf;n.Y8G("routerLink",n.eq3(3,Ie,a.id))("queryParams",n.eq3(5,xe,a.featureInstance.__typename))("nzType",t.isActive?"primary":"default")}}function Se(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ee,3,7,"button",18),n.k0s()),2&e){const t=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",t.signedIn)}}function $e(e,i){if(1&e&&(n.j41(0,"button",21,2),n.EFF(2," Flag "),n.k0s()),2&e){const t=n.sdS(1);n.Y8G("nzType",t.isActive?"primary":"default")}}function Pe(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,$e,3,1,"button",20),n.k0s()),2&e){const t=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",t.signedIn)}}function De(e,i){if(1&e&&(n.j41(0,"div",24),n.nrm(1,"cvc-feature-deprecate-form",25),n.k0s()),2&e){const t=n.XpG(6).ngIf;n.R7$(),n.Y8G("featureId",t.id)}}function Re(e,i){if(1&e&&(n.j41(0,"button",23),n.EFF(1," Deprecate "),n.DNE(2,De,2,1,"ng-template",null,3,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG(5).ngIf;n.Y8G("disabled",a.deprecated)("nzPopoverContent",t)}}function je(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Re,4,2,"button",22),n.k0s()),2&e){const t=n.XpG(2).ngrxLet;n.R7$(),n.Y8G("ngIf",t.isEditor)}}function Ve(e,i){1&e&&(n.qex(0),n.DNE(1,je,2,1,"span",17),n.bVm())}function Ye(e,i){if(1&e&&n.nrm(0,"cvc-entity-subscription-button",27),2&e){const t=n.XpG(2).ngrxLet,a=n.XpG(3);n.Y8G("viewer",t)("subscribableId",a.subscribable.id)}}function Ne(e,i){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ye,1,2,"cvc-entity-subscription-button",26),n.k0s()),2&e){const t=n.XpG().ngrxLet,a=n.XpG(3);n.R7$(),n.Y8G("ngIf",t.signedIn&&a.subscribable)}}function Oe(e,i){if(1&e&&(n.j41(0,"nz-space",16),n.DNE(1,Se,2,1,"span",17)(2,Pe,2,1,"span",17)(3,Ve,2,0,"ng-container",4)(4,Ne,2,1,"span",17),n.k0s()),2&e){const t=n.XpG(2).ngIf;n.R7$(3),n.Y8G("ngIf","Gene"!=t.featureInstance.__typename)}}function we(e,i){if(1&e&&(n.j41(0,"nz-page-header-extra"),n.DNE(1,Oe,5,1,"nz-space",15),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",t.viewer$)}}function ke(e,i){if(1&e&&n.nrm(0,"nz-alert",28),2&e){n.XpG();const t=n.sdS(18);n.Y8G("nzMessage",t)}}function Xe(e,i){if(1&e&&(n.EFF(0),n.nI1(1,"enumToTitle"),n.nrm(2,"cvc-comment-body",29)),2&e){const t=n.XpG().ngIf;n.SpI(" This Feature has been deprecated for reason: ",n.bMT(1,2,t.deprecationReason),". "),n.R7$(2),n.Y8G("commentBodySegments",(null==t.deprecationActivity?null:t.deprecationActivity.parsedNote)||n.lJ4(4,Ge))}}function Le(e,i){if(1&e&&(n.j41(0,"nz-col",30),n.nrm(1,"cvc-contributor-avatars",31),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("subscribable",t.subscribable)}}function Be(e,i){if(1&e&&(n.qex(0),n.nrm(1,"cvc-section-navigation",5),n.j41(2,"div",6),n.nI1(3,"ngrxPush"),n.j41(4,"nz-page-header",7)(5,"nz-page-header-title",8)(6,"span",9),n.EFF(7),n.nI1(8,"uppercase"),n.k0s(),n.nrm(9,"i",10),n.nI1(10,"entityColor"),n.EFF(11),n.k0s(),n.j41(12,"nz-page-header-subtitle"),n.DNE(13,be,2,1,"ng-container",4),n.k0s(),n.DNE(14,we,2,1,"nz-page-header-extra",11),n.j41(15,"nz-page-header-content"),n.DNE(16,ke,1,1,"nz-alert",12)(17,Xe,3,5,"ng-template",null,0,n.C5r),n.j41(19,"cvc-tab-navigation",13),n.nI1(20,"ngrxPush"),n.DNE(21,Le,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(23,"div",14),n.nrm(24,"router-outlet"),n.k0s()()()(),n.bVm()),2&e){const t=i.ngIf,a=n.XpG();n.R7$(),n.Y8G("displayName",t.name),n.R7$(),n.Y8G("flags",n.bMT(3,10,a.flagsTotal$)),n.R7$(3),n.Y8G("ngClass",n.eq3(18,Me,t.flags.totalCount>0)),n.R7$(2),n.JRh(n.bMT(8,12,t.featureInstance.__typename)),n.R7$(2),n.Y8G("nzTwotoneColor",n.bMT(10,14,"Feature")),n.R7$(2),n.SpI(" ",t.name," "),n.R7$(2),n.Y8G("ngIf",t.fullName),n.R7$(),n.Y8G("ngrxLet",a.viewer$),n.R7$(2),n.Y8G("ngIf",t.deprecated),n.R7$(3),n.Y8G("tabs",n.bMT(20,16,a.tabs$))}}let Ae=(()=>{class e{constructor(t,a,o){this.gql=t,this.viewerService=a,this.route=o,this.destroy$=new k.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.filterCurators=s=>"curator"==s.role,this.filterEditors=s=>"editor"==s.role||"admin"==s.role,this.tabs$=new _.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(s=>{let h=this.gql.watch({featureId:+s.featureId}).valueChanges;this.loading$=h.pipe((0,v.E)("loading"),(0,y.Z)(!0)),this.feature$=h.pipe((0,v.E)("data","feature")),this.flagsTotal$=this.feature$.pipe((0,v.E)("flags","totalCount")),this.feature$.pipe((0,u.Q)(this.destroy$)).subscribe({next:f=>{this.tabs$.next(this.defaultTabs.map(w=>"Revisions"===w.tabLabel?{badgeCount:f?.revisions.totalCount,...w}:"Flags"===w.tabLabel?{badgeCount:f?.flags.totalCount,...w}:"Comments"===w.tabLabel?{badgeCount:f?.comments.totalCount,badgeColor:"#cccccc",...w}:w))}}),this.subscribable={id:+s.featureId,entityType:m.V9U.Feature}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(m.ULh),n.rXU(X.q),n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["features-detail"]],decls:2,vars:3,consts:[["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateFeatureForm",""],[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-typography","",2,"color","#bbb"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","queryParams","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Feature","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Feature","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateFeature"],[3,"featureId"],["typename","Gene",3,"viewer","subscribableId",4,"ngIf"],["typename","Gene",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(a,o){1&a&&(n.DNE(0,Be,25,20,"ng-container",4),n.nI1(1,"async")),2&a&&n.Y8G("ngIf",n.bMT(1,1,o.feature$))},dependencies:[l.YU,l.bT,M.n3,M.Wk,M.wQ,S.Nj,b.aO,U.c,Q.p,P.Dn,V.WB,V.k9,V.CO,V.zR,V.ov,C.U5,C.Dq,d.Di,p.Uq,Z.Y,Fn.L_,An.N,Un.H,Qn.v,Wn.f,Jn.n,Hn.o,Kn.p,nn,l.Jj,l.Pc,S.L9,Gn.f,Fe.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}.deprecateFeature[_ngcontent-%COMP%]{width:700px}"]})}return e})();var bn=r(8313);let Ue=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,bn.Y]})}return e})(),Qe=(()=>{class e{constructor(t){this.route=t,this.feedScope={mode:m.Qt1.Subject,subject:{id:+this.route.snapshot.params.featureId,entityType:m.V9U.Feature}}}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-events"]],decls:1,vars:2,consts:[[3,"cvcScope","cvcShowFilters"]],template:function(a,o){1&a&&n.nrm(0,"cvc-activity-feed",0),2&a&&n.Y8G("cvcScope",o.feedScope)("cvcShowFilters",!0)},dependencies:[bn.Y],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var We=r(1912),Je=r(7268);let He=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,F.Ti,C.pc,We.i3,Je.G]})}return e})();var Ke=r(4097);let Ze=(()=>{class e{constructor(t){this.route=t,this.flaggable={entityType:m.lD4.Feature,id:+this.route.snapshot.params.featureId}}ngOnInit(){}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,o){1&a&&n.nrm(0,"cvc-flag-list-and-filter",0),2&a&&n.Y8G("flaggable",o.flaggable)},dependencies:[Ke.b],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var qe=r(2617),D=r(5699),nt=r(2968),et=r(9438),tt=r(869),at=r(6371);let it=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,qe.rD,F.Ti,C.pc,D.T,d.kT,et.Yb,nt.K,tt.S,at.O]})}return e})();var ot=r(4055);let rt=(()=>{class e{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.subject={id:+a.featureId,entityType:m.BlQ.Feature}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(a,o){1&a&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&a&&n.Y8G("moderated",o.subject)},dependencies:[ot.B],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var G=r(2e3),W=r(8254),N=r(2142),J=r(7054),H=r(1209),R=r(1011),st=r(5493),En=r(2986),_n=r(6912);let Sn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,b.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,d.kT,En.IJ,Y.V,$.i,In.U,N.x,st.G,_n.l]})}return e})();var O=r(9541),j=r(9247);let $n=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,F.Ti,O.hM,j.$G,p.f3,j.$G,d.kT,G.WF]})}return e})();var Pn=r(9590),en=r(2839),ct=r(996);let Dn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,b.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,Y.V,d.kT,$.i,ct.o,N.x]})}return e})();var mn=r(6719),B=r(7855),un=r(9062),Rn=r(7679);const lt=()=>[8,8];function pt(e,i){if(1&e&&(n.j41(0,"p",15),n.EFF(1),n.k0s()),2&e){const t=n.XpG(2);n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.gene.description," ")}}function _t(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",16)}function mt(e,i){1&e&&n.nrm(0,"cvc-source-tag",18),2&e&&n.Y8G("source",i.$implicit)}function ut(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,mt,1,1,"cvc-source-tag",17),n.k0s(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",t.gene.sources)}}function gt(e,i){1&e&&(n.j41(0,"span",19),n.EFF(1,"None specified"),n.k0s())}function ft(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function dt(e,i){if(1&e&&(n.j41(0,"nz-descriptions-item",20),n.DNE(1,ft,2,1,"nz-tag",21),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("ngForOf",t.gene.featureAliases)}}function zt(e,i){1&e&&(n.j41(0,"span",19),n.EFF(1,"None specified"),n.k0s())}function ht(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-descriptions",6)(4,"nz-descriptions-item",7),n.DNE(5,pt,2,2,"p",8)(6,_t,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(8,"nz-col",5)(9,"nz-descriptions",9)(10,"nz-descriptions-item",10),n.DNE(11,ut,3,1,"ng-container",11)(12,gt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(14,dt,2,1,"nz-descriptions-item",12)(15,zt,2,0,"ng-template",null,2,n.C5r),n.j41(17,"nz-descriptions-item",13)(18,"cvc-tag-list")(19,"cvc-link-tag",14),n.EFF(20," DGIdb "),n.k0s(),n.j41(21,"cvc-link-tag",14),n.EFF(22," ProteinPaint "),n.k0s()()()()()(),n.bVm()),2&e){const t=n.sdS(7),a=n.sdS(13),o=n.sdS(16),s=n.XpG();n.R7$(),n.Y8G("nzGutter",n.lJ4(13,lt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",s.gene.description)("ngIfElse",t),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",s.gene.sources.length>0)("ngIfElse",a),n.R7$(3),n.Y8G("ngIf",s.gene.featureAliases.length>0)("ngIfElse",o),n.R7$(5),n.Y8G("href","https://dgidb.org/results?searchType=gene&searchTerms="+s.gene.name)("tooltip","View "+s.gene.name+" on DGIdb"),n.R7$(2),n.Y8G("href","https://pecan.stjude.cloud/variants/protein-paint/?gene="+s.gene.name)("tooltip","View "+s.gene.name+" on ProteinPaint")}}let gn=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-gene-base-summary"]],inputs:{gene:"gene"},standalone:!0,features:[n.aNF],decls:1,vars:1,consts:[["noDescription",""],["noSources",""],["noAliases",""],[4,"ngIf"],[3,"nzGutter"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases",4,"ngIf","ngIfElse"],["nzTitle","Resources"],[3,"href","tooltip"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],["nzTitle","Aliases"],[4,"ngFor","ngForOf"]],template:function(a,o){1&a&&n.DNE(0,ht,23,14,"ng-container",3),2&a&&n.Y8G("ngIf",o.gene)},dependencies:[l.MD,l.Sq,l.bT,p.f3,p.Uq,p.e,G.WF,G.xA,G.gr,d.kT,d.Di,C.pc,D.T,D.s,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,Rn.a,$.i]})}return e})(),vt=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,G.WF,d.kT,C.pc,D.T,O.hM,W.V,N.x,J.L,H.k,Pn.R,en.m,Sn,$n,Dn,gn]})}return e})();var Ct=r(9354),jn=r(8139),Vn=r(6408);const yt=()=>[8,16],Tt=()=>[8,8],Ft=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1});function Mt(e,i){if(1&e&&(n.j41(0,"p",18),n.EFF(1),n.k0s()),2&e){const t=n.XpG();n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.factor.description," ")}}function It(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",19)}function xt(e,i){1&e&&n.nrm(0,"cvc-source-tag",21),2&e&&n.Y8G("source",i.$implicit)}function Gt(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,xt,1,1,"cvc-source-tag",20),n.k0s(),n.bVm()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("ngForOf",t.factor.sources)}}function bt(e,i){1&e&&(n.j41(0,"span",22),n.EFF(1,"None specified"),n.k0s())}function Et(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function St(e,i){if(1&e&&(n.qex(0),n.DNE(1,Et,2,1,"nz-tag",23),n.bVm()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.factor.featureAliases)}}function $t(e,i){1&e&&(n.j41(0,"span",22),n.EFF(1,"None specified"),n.k0s())}function Pt(e,i){if(1&e&&(n.j41(0,"nz-descriptions-item",24)(1,"cvc-tag-list")(2,"cvc-link-tag",25),n.EFF(3),n.k0s()()()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("href","https://ncithesaurus.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&ns=ncit&code="+t.factor.ncitId)("tooltip","View "+t.factor.name+" in the NCI Thesaurus"),n.R7$(),n.SpI(" NCIt: ",t.factor.ncitId," ")}}function Dt(e,i){if(1&e&&(n.EFF(0," Created "),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.factor.creationActivity.createdAt),") ")}}function Rt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",26),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",27),n.k0s(),n.DNE(4,Dt,4,3,"ng-template",null,3,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.factor.creationActivity.user)}}function jt(e,i){if(1&e&&(n.EFF(0," Deprecated "),n.j41(1,"span",22),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.factor.deprecationActivity.createdAt),") ")}}function Vt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",26),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",27),n.k0s(),n.DNE(4,jt,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.factor.deprecationActivity.user)}}let Yn=(()=>{class e{ngOnInit(){if(null==this.factor)throw new Error("Must pass a Factor into factor summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into factor summary");this.subscribableEntity={id:this.featureId,entityType:m.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-factor-summary"]],inputs:{factor:"factor",featureId:"featureId"},standalone:!0,features:[n.aNF],decls:26,vars:18,consts:[["noDescription",""],["noSources",""],["noAliases",""],["createdTitle",""],["deprecatedTitle",""],[3,"nzGutter"],["nzSpan","12"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases"],["nzTitle","Resources",4,"ngIf"],[4,"ngIf"],[3,"ncitDetails"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],["nzTitle","Resources"],[3,"href","tooltip"],[3,"nzTitle"],[3,"user"]],template:function(a,o){if(1&a&&(n.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-row",5)(3,"nz-col",7)(4,"nz-descriptions",8)(5,"nz-descriptions-item",9),n.DNE(6,Mt,2,2,"p",10)(7,It,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(9,"nz-col",7)(10,"nz-descriptions",11)(11,"nz-descriptions-item",12),n.DNE(12,Gt,3,1,"ng-container",13)(13,bt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"nz-descriptions-item",14),n.DNE(16,St,2,1,"ng-container",13),n.k0s(),n.DNE(17,$t,2,0,"ng-template",null,2,n.C5r)(19,Pt,4,3,"nz-descriptions-item",15),n.k0s()()()(),n.j41(20,"nz-col",6)(21,"nz-descriptions",8),n.DNE(22,Rt,6,2,"ng-container",16)(23,Vt,6,2,"ng-container",16),n.k0s(),n.nrm(24,"br")(25,"cvc-ncit-details",17),n.k0s()()),2&a){const s=n.sdS(8),h=n.sdS(14),f=n.sdS(18);n.Y8G("nzGutter",n.lJ4(15,yt)),n.R7$(2),n.Y8G("nzGutter",n.lJ4(16,Tt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.factor.description)("ngIfElse",s),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.factor.sources.length>0)("ngIfElse",h),n.R7$(4),n.Y8G("ngIf",o.factor.featureAliases.length>0)("ngIfElse",f),n.R7$(3),n.Y8G("ngIf",o.factor.ncitId),n.R7$(2),n.Y8G("nzColumn",n.lJ4(17,Ft)),n.R7$(),n.Y8G("ngIf",o.factor.creationActivity),n.R7$(),n.Y8G("ngIf",o.factor.deprecationActivity),n.R7$(2),n.Y8G("ncitDetails",o.factor.ncitDetails)}},dependencies:[l.MD,l.Sq,l.bT,p.f3,p.Uq,p.e,G.WF,G.xA,G.gr,d.kT,d.Di,C.pc,D.T,D.s,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,Rn.a,Ct.e,$.i,jn.N,en.m,Vn.r],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return e})();var fn=r(3245);const Nn=()=>[8,16],Yt=()=>[8,8],Nt=()=>({xxl:2,xl:2,lg:1,md:1,sm:1,xs:1}),On=e=>({$implicit:e});function Ot(e,i){if(1&e&&(n.j41(0,"p",21),n.EFF(1),n.k0s()),2&e){const t=n.XpG();n.Y8G("nzEllipsisRows",8),n.R7$(),n.SpI(" ",t.fusion.description," ")}}function wt(e,i){1&e&&n.nrm(0,"cvc-empty-revisable",22)}function kt(e,i){1&e&&n.nrm(0,"cvc-source-tag",24),2&e&&n.Y8G("source",i.$implicit)}function Xt(e,i){if(1&e&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,kt,1,1,"cvc-source-tag",23),n.k0s(),n.bVm()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("ngForOf",t.fusion.sources)}}function Lt(e,i){1&e&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Bt(e,i){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const t=i.$implicit;n.R7$(),n.JRh(t)}}function At(e,i){if(1&e&&(n.qex(0),n.DNE(1,Bt,2,1,"nz-tag",26),n.bVm()),2&e){const t=n.XpG();n.R7$(),n.Y8G("ngForOf",t.fusion.featureAliases)}}function Ut(e,i){1&e&&(n.j41(0,"span",25),n.EFF(1,"None specified"),n.k0s())}function Qt(e,i){if(1&e&&(n.EFF(0," Created "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.fusion.creationActivity.createdAt),") ")}}function Wt(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",27),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Qt,4,3,"ng-template",null,4,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.fusion.creationActivity.user)}}function Jt(e,i){if(1&e&&(n.EFF(0," Deprecated "),n.j41(1,"span",25),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&e){const t=n.XpG(2);n.R7$(2),n.SpI(" (",n.bMT(3,1,t.fusion.deprecationActivity.createdAt),") ")}}function Ht(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-descriptions-item",27),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",28),n.k0s(),n.DNE(4,Jt,4,3,"ng-template",null,5,n.C5r),n.bVm()),2&e){const t=n.sdS(5),a=n.XpG();n.R7$(),n.Y8G("nzTitle",t),n.R7$(2),n.Y8G("user",a.fusion.deprecationActivity.user)}}function Kt(e,i){if(1&e&&n.nrm(0,"cvc-gene-base-summary",31),2&e){const t=n.XpG(2);n.Y8G("gene",t.fusion.fivePrimeGene)}}function Zt(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",32),2&e){const t=n.XpG(2);n.Y8G("feature",t.fusion.fivePrimeGene)}}function qt(e,i){if(1&e&&(n.j41(0,"nz-card",29),n.DNE(1,Kt,1,1,"cvc-gene-base-summary",30)(2,Zt,1,1,"ng-template",null,6,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG();n.Y8G("nzExtra",t),n.R7$(),n.Y8G("ngIf",a.fusion.fivePrimeGene)}}function na(e,i){1&e&&n.eu8(0)}function ea(e,i){if(1&e&&(n.j41(0,"nz-card",29),n.nI1(1,"enumToTitle"),n.DNE(2,na,1,0,"ng-container",33),n.k0s()),2&e){const t=n.XpG(),a=n.sdS(32);n.Y8G("nzExtra",n.bMT(1,3,t.fusion.fivePrimePartnerStatus)),n.R7$(2),n.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",n.eq3(5,On,t.fusion.fivePrimePartnerStatus))}}function ta(e,i){if(1&e&&n.nrm(0,"cvc-gene-base-summary",31),2&e){const t=n.XpG(2);n.Y8G("gene",t.fusion.threePrimeGene)}}function aa(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",32),2&e){const t=n.XpG(2);n.Y8G("feature",t.fusion.threePrimeGene)}}function ia(e,i){if(1&e&&(n.j41(0,"nz-card",34),n.DNE(1,ta,1,1,"cvc-gene-base-summary",30)(2,aa,1,1,"ng-template",null,7,n.C5r),n.k0s()),2&e){const t=n.sdS(3),a=n.XpG();n.Y8G("nzExtra",t),n.R7$(),n.Y8G("ngIf",a.fusion.threePrimeGene)}}function oa(e,i){1&e&&n.eu8(0)}function ra(e,i){if(1&e&&(n.j41(0,"nz-card",34),n.nI1(1,"enumToTitle"),n.DNE(2,oa,1,0,"ng-container",33),n.k0s()),2&e){const t=n.XpG(),a=n.sdS(32);n.Y8G("nzExtra",n.bMT(1,3,t.fusion.threePrimePartnerStatus)),n.R7$(2),n.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",n.eq3(5,On,t.fusion.threePrimePartnerStatus))}}function sa(e,i){1&e&&n.EFF(0," There are Multiple possible fusion partners. ")}function ca(e,i){1&e&&n.EFF(0," The fusion partner is unknown. ")}function la(e,i){if(1&e&&n.DNE(0,sa,1,0)(1,ca,1,0),2&e){let t;n.vxM("MULTIPLE"===(t=i.$implicit)?0:"UNKNOWN"===t?1:-1)}}let wn=(()=>{class e{ngOnInit(){if(null==this.fusion)throw new Error("Must pass a Fusion into fusion summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into fusion summary");this.subscribableEntity={id:this.featureId,entityType:m.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-fusion-summary"]],inputs:{fusion:"fusion",featureId:"featureId"},standalone:!0,features:[n.aNF],decls:33,vars:22,consts:[["noDescription",""],["noSources",""],["noAliases",""],["partnerStatusDescription",""],["createdTitle",""],["deprecatedTitle",""],["fivePrimeExtra",""],["threePrimeExtra",""],[3,"nzGutter"],["nzSpan","12"],["nzSpan","24"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Aliases"],[4,"ngIf"],["nzTitle","5' Partner",3,"nzExtra",4,"ngIf"],["nzTitle","3' Partner",3,"nzExtra",4,"ngIf"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[4,"ngFor","ngForOf"],[3,"nzTitle"],[3,"user"],["nzTitle","5' Partner",3,"nzExtra"],[3,"gene",4,"ngIf"],[3,"gene"],[3,"feature"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzTitle","3' Partner",3,"nzExtra"]],template:function(a,o){if(1&a&&(n.j41(0,"nz-row",8)(1,"nz-col",9)(2,"nz-row",8)(3,"nz-col",10)(4,"nz-descriptions",11)(5,"nz-descriptions-item",12),n.DNE(6,Ot,2,2,"p",13)(7,wt,1,0,"ng-template",null,0,n.C5r),n.k0s()()(),n.j41(9,"nz-col",10)(10,"nz-descriptions",14)(11,"nz-descriptions-item",15),n.DNE(12,Xt,3,1,"ng-container",16)(13,Lt,2,0,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"nz-descriptions-item",17),n.DNE(16,At,2,1,"ng-container",16),n.k0s(),n.DNE(17,Ut,2,0,"ng-template",null,2,n.C5r),n.k0s()()()(),n.j41(19,"nz-col",9)(20,"nz-descriptions",11),n.DNE(21,Wt,6,2,"ng-container",18)(22,Ht,6,2,"ng-container",18),n.k0s(),n.nrm(23,"br"),n.k0s()(),n.j41(24,"nz-row",8)(25,"nz-col",9),n.DNE(26,qt,4,2,"nz-card",19)(27,ea,3,7,"nz-card",19),n.k0s(),n.j41(28,"nz-col",9),n.DNE(29,ia,4,2,"nz-card",20)(30,ra,3,7,"nz-card",20)(31,la,2,1,"ng-template",null,3,n.C5r),n.k0s()()),2&a){const s=n.sdS(8),h=n.sdS(14),f=n.sdS(18);n.Y8G("nzGutter",n.lJ4(18,Nn)),n.R7$(2),n.Y8G("nzGutter",n.lJ4(19,Yt)),n.R7$(2),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.fusion.description)("ngIfElse",s),n.R7$(4),n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("ngIf",o.fusion.sources.length>0)("ngIfElse",h),n.R7$(4),n.Y8G("ngIf",o.fusion.featureAliases.length>0)("ngIfElse",f),n.R7$(4),n.Y8G("nzColumn",n.lJ4(20,Nt)),n.R7$(),n.Y8G("ngIf",o.fusion.creationActivity),n.R7$(),n.Y8G("ngIf",o.fusion.deprecationActivity),n.R7$(2),n.Y8G("nzGutter",n.lJ4(21,Nn)),n.R7$(2),n.Y8G("ngIf",o.fusion.fivePrimeGene),n.R7$(),n.Y8G("ngIf",!o.fusion.fivePrimeGene),n.R7$(2),n.Y8G("ngIf",o.fusion.threePrimeGene),n.R7$(),n.Y8G("ngIf",!o.fusion.threePrimeGene)}},dependencies:[l.MD,l.Sq,l.bT,l.T3,p.f3,p.Uq,p.e,G.WF,G.xA,G.gr,d.kT,d.Di,C.pc,D.T,D.s,F.Ti,F.cK,W.V,mn.Q,N.x,B.M,H.k,un.D,J.L,$.i,Gn.f,jn.N,en.m,Vn.r,gn,_n.l,fn._],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return e})(),pa=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,g.YN,b.Zw,p.f3,F.Ti,P.Y3,T.PQ,R.j,E.DH,Y.V,d.kT,$.i,_n.l,N.x]})}return e})(),_a=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,p.f3,G.WF,d.kT,C.pc,D.T,O.hM,W.V,N.x,J.L,H.k,Pn.R,en.m,Sn,$n,Dn,vt,Yn,wn,pa]})}return e})();var kn=r(152),ma=r(505);function ua(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",13),2&e){const t=n.XpG(4);n.Y8G("feature",t.feature)}}function ga(e,i){if(1&e&&(n.j41(0,"span",10),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function fa(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",10),n.EFF(2),n.k0s(),n.j41(3,"span",10),n.EFF(4," \xa0 "),n.DNE(5,ua,1,1,"cvc-feature-tag",11),n.EFF(6," Variants "),n.k0s(),n.DNE(7,ga,2,1,"span",12),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf,o=n.XpG();n.R7$(2),n.SpI(" ",t," Total "),n.R7$(3),n.Y8G("ngIf",o.feature),n.R7$(2),n.Y8G("ngIf",t>a.length)}}function da(e,i){if(1&e&&(n.DNE(0,fa,8,3,"ng-container",5),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalVariants$))}}function za(e,i){if(1&e){const t=n.RV6();n.j41(0,"i",23),n.bIt("click",function(){n.eBV(t);const o=n.XpG(4);return o.variantNameFilter=void 0,n.Njj(o.onModelUpdated())}),n.k0s()}}function ha(e,i){if(1&e&&n.DNE(0,za,1,0,"i",22),2&e){const t=n.XpG(3);n.Y8G("ngIf",t.variantNameFilter)}}function va(e,i){if(1&e&&n.nrm(0,"nz-option",26),2&e){const t=i.$implicit;n.Y8G("nzLabel",t.name)("nzValue",t)}}function Ca(e,i){if(1&e&&(n.j41(0,"div",27),n.nrm(1,"i",28),n.EFF(2),n.k0s()),2&e){const t=i.$implicit,a=n.XpG(4);n.R7$(),n.Y8G("nzTwotoneColor",a.iconColor),n.R7$(),n.SpI(" ",t.nzLabel," ")}}function ya(e,i){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"nz-select",24),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.variantTypeFilter,o)||(s.variantTypeFilter=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(3);return n.Njj(o.onModelUpdated())}),n.DNE(2,va,1,2,"nz-option",25),n.k0s(),n.DNE(3,Ca,3,2,"ng-template",null,3,n.C5r),n.bVm()}if(2&e){const t=i.ngIf,a=n.sdS(4),o=n.XpG(3);n.R7$(),n.Y8G("nzDropdownMatchSelectWidth",!1),n.R50("ngModel",o.variantTypeFilter),n.Y8G("nzCustomTemplate",a),n.R7$(),n.Y8G("ngForOf",t)}}function Ta(e,i){if(1&e){const t=n.RV6();n.j41(0,"form",14)(1,"nz-form-item")(2,"nz-form-label"),n.EFF(3,"Name Filter"),n.k0s(),n.j41(4,"nz-form-control")(5,"nz-input-group",15)(6,"input",16),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.variantNameFilter,o)||(s.variantNameFilter=o),n.Njj(o)}),n.k0s(),n.DNE(7,ha,1,1,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(9,"nz-form-item")(10,"nz-form-label"),n.EFF(11,"Variant Type"),n.k0s(),n.j41(12,"nz-form-control"),n.DNE(13,ya,5,4,"ng-container",5),n.nI1(14,"ngrxPush"),n.k0s()(),n.j41(15,"nz-form-item")(16,"nz-form-label"),n.EFF(17," No Variant Type "),n.k0s(),n.j41(18,"nz-form-control")(19,"label",17),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.hasNoVariantType,o)||(s.hasNoVariantType=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.k0s()()(),n.j41(20,"nz-form-item")(21,"nz-form-label"),n.EFF(22,"Order By"),n.k0s(),n.j41(23,"nz-form-control")(24,"nz-select",18),n.bIt("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.Njj(s.onVariantSortOrderChanged(o))}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.sortBy,o)||(s.sortBy=o),n.Njj(o)}),n.nrm(25,"nz-option",19)(26,"nz-option",20)(27,"nz-option",21),n.k0s()()()()}if(2&e){const t=n.sdS(8),a=n.XpG(2);n.R7$(5),n.Y8G("nzSuffix",t)("nzCompact",!0),n.R7$(),n.R50("ngModel",a.variantNameFilter),n.R7$(7),n.Y8G("ngIf",n.bMT(14,6,a.menuVariantTypes$)),n.R7$(6),n.R50("ngModel",a.hasNoVariantType),n.R7$(5),n.R50("ngModel",a.sortBy)}}function Fa(e,i){if(1&e&&n.nrm(0,"cvc-variant-tag",30),2&e){const t=n.XpG().$implicit;n.Y8G("variant",t)}}function Ma(e,i){if(1&e&&(n.qex(0),n.DNE(1,Fa,1,1,"cvc-variant-tag",29),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function Ia(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",32)(1,"button",33),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2," Load More "),n.k0s(),n.j41(3,"nz-select",34),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",35)(5,"nz-option",36)(6,"nz-option",37),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function xa(e,i){if(1&e&&(n.qex(0),n.DNE(1,Ia,7,4,"nz-row",31),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function Ga(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",6),n.DNE(2,da,2,3,"ng-template",null,0,n.C5r)(4,Ta,28,8,"ng-template",null,1,n.C5r),n.j41(6,"nz-row")(7,"nz-col",7)(8,"cvc-tag-list",8),n.DNE(9,Ma,2,1,"ng-container",9),n.k0s()()(),n.DNE(10,xa,2,1,"ng-container",5),n.nI1(11,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.sdS(5),s=n.XpG();n.R7$(),n.Y8G("nzTitle",a)("nzExtra",o),n.R7$(8),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(11,4,s.pageInfo$))}}let dn=class Cn{constructor(i,t){this.gql=i,this.variantTypeGql=t,this.sortBy=m.GUs.Name,this.variantTypeFilter=[],this.hasNoVariantType=!1,this.debouncedQuery=new k.B,this.pageSize=50,this.iconColor=(0,ma.P)("VariantType")}ngOnInit(){if(void 0===this.feature)throw new Error("Must pass a feature into variant menu component.");this.featureId=this.feature.id,this.initialQueryVars={featureId:this.featureId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:t,loading:a})=>a&&!t),(0,I.p)(x.kP),(0,y.Z)(!0));const i=this.result$.pipe((0,z.T)(t=>t.data?.variants),(0,I.p)(x.kP));this.pageInfo$=i.pipe((0,z.T)(t=>t.pageInfo),(0,I.p)(x.kP)),this.menuVariants$=i.pipe((0,z.T)(t=>t.edges.map(a=>a.node),(0,I.p)(x.kP))),this.totalVariants$=i.pipe((0,z.T)(t=>t.totalCount)),this.debouncedQuery.pipe((0,kn.B)(500),(0,L.s)(this)).subscribe(t=>this.refresh()),this.menuVariantTypes$=this.variantTypeGql.watch({featureId:this.featureId}).valueChanges.pipe((0,z.T)(t=>t.data?.variantTypes.edges?.map(a=>a.node)),(0,I.p)(x.kP))}onModelUpdated(){this.debouncedQuery.next()}onVariantSortOrderChanged(i){this.queryRef$.refetch({first:this.pageSize,sortBy:{column:i,direction:i==m.GUs.CoordinateEnd?m.UEL.Desc:m.UEL.Asc}})}refresh(){if(void 0===this.featureId)throw new Error("Must pass a feature id into variant menu component.");this.queryRef$.refetch({featureId:this.featureId,variantName:this.variantNameFilter,hasNoVariantType:this.hasNoVariantType,variantTypeIds:this.variantTypeFilter?.map(i=>i.id),first:this.pageSize,sortBy:{column:this.sortBy,direction:m.UEL.Asc}})}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||Cn)(n.rXU(m.krZ),n.rXU(m.kBo))};static#e=this.\u0275cmp=n.VBU({type:Cn,selectors:[["cvc-variant-menu"]],inputs:{feature:"feature"},decls:4,vars:6,consts:[["cardTitle",""],["cardExtra",""],["nameInputClearTpl",""],["variantTypeTemplate",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"feature",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"feature"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Variant Names","name","name-filter",3,"ngModelChange","ngModel"],["nz-checkbox","","name","noVt",3,"ngModelChange","ngModel"],["nzSize","small","id","variant-sort-order","name","sortBy",2,"width","115px",3,"ngModelChange","ngModel"],["nzValue","NAME","nzLabel","Variant Name","selected","",2,"width","100%"],["nzValue","COORDINATE_START","nzLabel","Start Position",2,"width","100%"],["nzValue","COORDINATE_END","nzLabel","End Position",2,"width","100%"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzAllowClear","","nzSize","small","nzMode","multiple","nzPlaceHolder","Variant Type","name","variantTypes","nzShowSearch","",2,"min-width","115px",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel","nzCustomTemplate"],[3,"nzLabel","nzValue",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue"],[1,"ant-select-selection-item-content"],["nz-icon","","nzType","civic-varianttype","nzTheme","twotone",3,"nzTwotoneColor"],[3,"variant",4,"ngIf"],[3,"variant"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",4),n.nI1(1,"ngrxPush"),n.DNE(2,Ga,12,6,"ng-container",5),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuVariants$)))},dependencies:[l.Sq,l.bT,g.qT,g.me,g.BC,g.cb,g.vS,g.cV,b.aO,U.c,Q.p,p.Uq,p.e,F.cK,P.Dn,T.CA,T.Ls,T.Mo,T.zS,R.Sy,R.tg,R.vN,E.ld,E.WI,d.Di,En.$g,Y.a,xn.V,B.M,fn._,S.L9],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]})};dn=(0,q.Cg)([(0,L.d)()],dn);var ba=r(5473);function Ea(e,i){if(1&e&&(n.j41(0,"span",9),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function Sa(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",9),n.EFF(2),n.k0s(),n.DNE(3,Ea,2,1,"span",10),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf;n.R7$(2),n.SpI("",t," Total"),n.R7$(),n.Y8G("ngIf",t>a.length)}}function $a(e,i){if(1&e&&(n.DNE(0,Sa,4,2,"ng-container",4),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalMolecularProfiles$))}}function Pa(e,i){if(1&e){const t=n.RV6();n.j41(0,"i",20),n.bIt("click",function(){n.eBV(t);const o=n.XpG(4);return o.mpNameFilter=void 0,n.Njj(o.onModelUpdated())}),n.k0s()}}function Da(e,i){if(1&e&&n.DNE(0,Pa,1,0,"i",19),2&e){const t=n.XpG(3);n.Y8G("ngIf",t.mpNameFilter)}}function Ra(e,i){if(1&e){const t=n.RV6();n.j41(0,"form",11)(1,"nz-form-item")(2,"nz-form-label"),n.EFF(3,"Filter"),n.k0s(),n.j41(4,"nz-form-control")(5,"nz-input-group",12)(6,"input",13),n.bIt("ngModelChange",function(){n.eBV(t);const o=n.XpG(2);return n.Njj(o.onModelUpdated())}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.mpNameFilter,o)||(s.mpNameFilter=o),n.Njj(o)}),n.k0s(),n.DNE(7,Da,1,1,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(9,"nz-form-item")(10,"nz-form-label"),n.EFF(11,"Show"),n.k0s(),n.j41(12,"nz-form-control")(13,"nz-select",14),n.bIt("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.Njj(s.onMolecularProfileStatusFilterChanged(o))}),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(2);return n.DH7(s.statusFilter,o)||(s.statusFilter=o),n.Njj(o)}),n.nrm(14,"nz-option",15)(15,"nz-option",16)(16,"nz-option",17)(17,"nz-option",18),n.k0s()()()()}if(2&e){const t=n.sdS(8),a=n.XpG(2);n.R7$(5),n.Y8G("nzSuffix",t)("nzCompact",!0),n.R7$(),n.R50("ngModel",a.mpNameFilter),n.R7$(7),n.R50("ngModel",a.statusFilter)}}function ja(e,i){if(1&e&&n.nrm(0,"cvc-molecular-profile-tag",22),2&e){const t=n.XpG().$implicit;n.Y8G("molecularProfile",t)}}function Va(e,i){if(1&e&&(n.qex(0),n.DNE(1,ja,1,1,"cvc-molecular-profile-tag",21),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function Ya(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",24)(1,"button",25),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2,"Load More "),n.k0s(),n.j41(3,"nz-select",26),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",27)(5,"nz-option",28)(6,"nz-option",29),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function Na(e,i){if(1&e&&(n.qex(0),n.DNE(1,Ya,7,4,"nz-row",23),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function Oa(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",5),n.DNE(2,$a,2,3,"ng-template",null,0,n.C5r)(4,Ra,18,4,"ng-template",null,1,n.C5r),n.j41(6,"nz-row")(7,"nz-col",6)(8,"cvc-tag-list",7),n.DNE(9,Va,2,1,"ng-container",8),n.k0s()()(),n.DNE(10,Na,2,1,"ng-container",4),n.nI1(11,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.sdS(5),s=n.XpG();n.R7$(),n.Y8G("nzTitle",a)("nzExtra",o),n.R7$(8),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(11,4,s.pageInfo$))}}let zn=class yn{constructor(i){this.gql=i,this.statusFilter=m.oGI.All,this.debouncedQuery=new k.B,this.pageSize=50}ngOnInit(){if(void 0===this.featureId)throw new Error("Must pass a feature id into molecular profile menu component.");this.initialQueryVars={featureId:this.featureId,evidenceStatusFilter:this.statusFilter,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:i,loading:t})=>t&&!i),(0,I.p)(x.kP),(0,y.Z)(!0)),this.connection$=this.result$.pipe((0,z.T)(i=>i.data?.molecularProfiles),(0,I.p)(x.kP)),this.pageInfo$=this.connection$.pipe((0,z.T)(i=>i.pageInfo),(0,I.p)(x.kP)),this.menuMolecularProfiles$=this.connection$.pipe((0,z.T)(i=>i.edges.map(t=>t.node),(0,I.p)(x.kP))),this.totalMolecularProfiles$=this.connection$.pipe((0,z.T)(i=>i.totalCount)),this.debouncedQuery.pipe((0,kn.B)(500),(0,L.s)(this)).subscribe(i=>this.refresh())}onModelUpdated(){this.debouncedQuery.next()}onMolecularProfileStatusFilterChanged(i){this.queryRef$.refetch({first:this.pageSize,evidenceStatusFilter:i})}refresh(){if(void 0===this.featureId)throw new Error("Must pass a feature id into molecular profile menu component.");this.queryRef$.refetch({featureId:this.featureId,mpName:this.mpNameFilter,first:this.pageSize})}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||yn)(n.rXU(m.J9f))};static#e=this.\u0275cmp=n.VBU({type:yn,selectors:[["cvc-molecular-profile-menu"]],inputs:{featureId:"featureId"},decls:4,vars:6,consts:[["cardTitle",""],["cardExtra",""],["nameInputClearTpl",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle","nzExtra"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],["nz-form","","nzLayout","inline","id","variant-filters"],["id","name-filter-group","nzSize","small",3,"nzSuffix","nzCompact"],["type","text","nz-input","","placeholder","Molecular Profile Names","name","name-filter",3,"ngModelChange","ngModel"],["nzSize","small","id","status-filter","name","statusFilter",2,"width","320px",3,"ngModelChange","ngModel"],["nzValue","WITH_ACCEPTED","nzLabel","Molecular Profiles with accepted evidence",2,"width","100%"],["nzValue","WITH_ACCEPTED_OR_SUBMITTED","nzLabel","Molecular Profiles with accepted and/or submitted evidence","selected","",2,"width","100%"],["nzValue","WITH_SUBMITTED","nzLabel","Molecular Profiles with submitted evidence",2,"width","100%"],["nzValue","ALL","nzLabel","All Molecular Profiles",2,"width","100%"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],[3,"molecularProfile",4,"ngIf"],[3,"molecularProfile"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",3),n.nI1(1,"ngrxPush"),n.DNE(2,Oa,12,6,"ng-container",4),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuMolecularProfiles$)))},dependencies:[l.Sq,l.bT,g.qT,g.me,g.BC,g.cb,g.vS,g.cV,b.aO,U.c,Q.p,p.Uq,p.e,F.cK,P.Dn,T.CA,T.Ls,T.Mo,T.zS,R.Sy,R.tg,R.vN,E.ld,E.WI,Y.a,d.Di,ba.z,B.M,S.L9],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]})};zn=(0,q.Cg)([(0,L.d)()],zn);let wa=(()=>{class e{constructor(){}parse(t){const a={kegg:"http://www.genome.jp/kegg-bin/show_pathway?",reactome:"https://reactome.org/content/detail/",pharmgkb:"https://www.pharmgkb.org/pathway/",humancyc:"http://humancyc.org/HUMAN/NEW-IMAGE?type=PATHWAY&object=",smpdb:"http://www.smpdb.ca/view/",wikipathways:"http://wikipathways.org/index.php/Pathway:",pid:null,netpath:null,biocarta:null,inoh:null,signalink:null,ehmn:null},o=t.pathway||[],s=[];let h;return Object.keys(o).forEach(function(f){Array.isArray(o[f])||(o[f]=[o[f]]),o[f].forEach(function(w,Ln){h=a[f]+o[f][Ln].id,null===a[f]&&(h=null),s.push({name:o[f][Ln].name,link:h,src:f})})}),t.pathway=s,t.pathwayList=s.map(f=>f.name),!Array.isArray(t.alias)&&t.alias&&(t.alias=[t.alias]),!Array.isArray(t.interpro)&&t.interpro&&(t.interpro=[t.interpro]),t.interproList=t.interpro.map(f=>f.desc),t}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275prov=n.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ka=()=>({xxl:2,xl:2,lg:2,md:1,sm:1,xs:1}),Xa=()=>({xxl:4,xl:4,lg:2,md:2,sm:1,xs:1}),Xn=()=>({x:"100%",y:"200px"});function La(e,i){if(1&e&&(n.qex(0),n.j41(1,"div",9)(2,"nz-descriptions",10)(3,"nz-descriptions-item",11),n.EFF(4),n.k0s(),n.j41(5,"nz-descriptions-item",12),n.EFF(6),n.k0s()(),n.j41(7,"nz-descriptions",10)(8,"nz-descriptions-item",13),n.EFF(9),n.k0s(),n.j41(10,"nz-descriptions-item",14),n.EFF(11),n.k0s(),n.j41(12,"nz-descriptions-item",15),n.EFF(13),n.k0s(),n.j41(14,"nz-descriptions-item",16),n.EFF(15),n.k0s()(),n.j41(16,"nz-descriptions",17)(17,"nz-descriptions-item",18),n.EFF(18),n.k0s(),n.j41(19,"nz-descriptions-item",19)(20,"p",20),n.EFF(21),n.k0s()(),n.j41(22,"nz-descriptions-item",21)(23,"p",20),n.EFF(24),n.k0s()()()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("nzColumn",n.lJ4(15,ka)),n.R7$(2),n.Lme(" ",t.info.symbol," (ID: ",t.info._id,") "),n.R7$(2),n.SpI(" ",t.info.uniprot["Swiss-Prot"]," "),n.R7$(),n.Y8G("nzColumn",n.lJ4(16,Xa)),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.chr," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.strand," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.start," "),n.R7$(2),n.SpI(" ",t.info.genomic_pos_hg19.end," "),n.R7$(),n.Y8G("nzColumn",1),n.R7$(2),n.SpI(" ",t.info.alias.join(", ")," "),n.R7$(2),n.Y8G("nzEllipsisRows",3),n.R7$(),n.SpI(" ",t.info.interproList.join(", ")," "),n.R7$(2),n.Y8G("nzEllipsisRows",3),n.R7$(),n.SpI(" ",t.info.pathwayList.join(", ")," ")}}function Ba(e,i){if(1&e&&(n.qex(0),n.j41(1,"div",9)(2,"p",20),n.EFF(3),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(2),n.Y8G("nzEllipsisRows",12),n.R7$(),n.SpI(" ",t.info.summary," ")}}function Aa(e,i){if(1&e&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td"),n.EFF(4),n.k0s(),n.j41(5,"td"),n.EFF(6),n.k0s()()),2&e){const t=i.$implicit;n.R7$(2),n.SpI(" ",t.short_desc," "),n.R7$(2),n.SpI(" ",t.desc," "),n.R7$(2),n.SpI(" ",t.id," ")}}function Ua(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-table",22,0)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Name"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Description"),n.k0s(),n.j41(9,"th"),n.EFF(10,"ID"),n.k0s()()(),n.j41(11,"tbody"),n.DNE(12,Aa,7,3,"ng-template",23),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("nzData",t.info.interpro)("nzScroll",n.lJ4(4,Xn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Qa(e,i){if(1&e&&(n.j41(0,"a",28),n.EFF(1),n.k0s()),2&e){const t=n.XpG().$implicit;n.FS9("href",null==t?null:t.link,n.B4B),n.R7$(),n.SpI(" ",t.src," ")}}function Wa(e,i){if(1&e&&n.EFF(0),2&e){const t=n.XpG().$implicit;n.SpI(" ",t.src," ")}}function Ja(e,i){if(1&e&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td",26),n.DNE(4,Qa,2,2,"a",27)(5,Wa,1,1,"ng-template",null,2,n.C5r),n.k0s()()),2&e){const t=i.$implicit,a=n.sdS(6);n.R7$(2),n.SpI(" ",t.name," "),n.R7$(2),n.Y8G("ngIf",null==t?null:t.link)("ngIfElse",a)}}function Ha(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-table",22,1)(3,"colgroup"),n.nrm(4,"col",24)(5,"col",25),n.k0s(),n.j41(6,"thead")(7,"tr")(8,"th"),n.EFF(9,"Name"),n.k0s(),n.j41(10,"th",26),n.EFF(11,"Source"),n.k0s()()(),n.j41(12,"tbody"),n.DNE(13,Ja,7,3,"ng-template",23),n.k0s()(),n.bVm()),2&e){const t=n.XpG(2);n.R7$(),n.Y8G("nzData",t.info.pathway)("nzScroll",n.lJ4(4,Xn))("nzFrontPagination",!1)("nzShowPagination",!1)}}function Ka(e,i){if(1&e){const t=n.RV6();n.qex(0),n.j41(1,"nz-card",4)(2,"nz-card-tab")(3,"nz-tabset",5),n.bIt("nzSelectChange",function(o){n.eBV(t);const s=n.XpG();return n.Njj(s.tabChange(o))}),n.nrm(4,"nz-tab",6)(5,"nz-tab",6)(6,"nz-tab",6)(7,"nz-tab",6),n.k0s()(),n.qex(8,7),n.DNE(9,La,25,17,"ng-container",8)(10,Ba,4,2,"ng-container",8)(11,Ua,13,5,"ng-container",8)(12,Ha,14,5,"ng-container",8),n.bVm(),n.k0s(),n.bVm()}if(2&e){const t=n.XpG();n.R7$(3),n.Y8G("nzAnimated",!0),n.R7$(),n.Y8G("nzTitle","Overview"),n.R7$(),n.Y8G("nzTitle","Summary"),n.R7$(),n.Y8G("nzTitle","Protein Domains ("+t.info.interproList.length+")"),n.R7$(),n.Y8G("nzTitle","Pathways ("+t.info.pathway.length+")"),n.R7$(),n.Y8G("ngSwitch",t.tabIndex),n.R7$(),n.Y8G("ngSwitchCase",0),n.R7$(),n.Y8G("ngSwitchCase",1),n.R7$(),n.Y8G("ngSwitchCase",2),n.R7$(),n.Y8G("ngSwitchCase",3)}}let Za=(()=>{class e{constructor(t){this.infoService=t,this.tabIndex=0}ngOnInit(){this.tabChange({index:0,tab:null})}ngOnChanges(){this.geneInfo&&(this.info=this.infoService.parse(JSON.parse(String(this.geneInfo))))}tabChange(t){this.tabIndex=t.index}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(wa))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-my-gene-info"]],inputs:{geneInfo:"geneInfo"},features:[n.OA$],decls:1,vars:1,consts:[["proteinDomainsTable",""],["pathwaysTable",""],["noPathwayLink",""],[4,"ngIf"],["nzTitle","MyGeneInfo"],["nzSize","small",3,"nzSelectChange","nzAnimated"],[3,"nzTitle"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"tab-padding"],["nzSize","small",3,"nzColumn"],["nzTitle","Entrez Symbol"],["nzTitle","UniProtKB ID"],["nzTitle","Chromosome"],["nzTitle","Strand"],["nzTitle","Start"],["nzTitle","Stop"],["nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Aliases"],["nzTitle","Protein Domains"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzTitle","Pathways"],["nzSize","small",3,"nzData","nzScroll","nzFrontPagination","nzShowPagination"],["nz-virtual-scroll",""],["width","90%"],["width","10%"],[1,"button-col"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href",4,"ngIf","ngIfElse"],["nz-button","","target","_blank","nzType","default","nzSize","small",3,"href"]],template:function(a,o){1&a&&n.DNE(0,Ka,13,10,"ng-container",3),2&a&&n.Y8G("ngIf",o.info)},dependencies:[l.bT,l.ux,l.e1,F.cK,F.RO,O.JZ,O.rE,j.CP,j.SO,j._4,j.IL,j.aj,j.kt,j.CC,d.Di,G.xA,G.gr],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]})}return e})();const qa=()=>[8,16];let ni=(()=>{class e{ngOnInit(){if(null==this.gene)throw new Error("Must pass a Gene into gene summary");if(void 0===this.featureId)throw new Error("Must pass a feature id into factor summary");this.subscribableEntity={id:this.featureId,entityType:m.V9U.Feature}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-genes-summary"]],inputs:{gene:"gene",featureId:"featureId"},decls:5,vars:4,consts:[[3,"nzGutter"],["nzSpan","12"],[3,"gene"],[3,"geneInfo"]],template:function(a,o){1&a&&(n.j41(0,"nz-row",0)(1,"nz-col",1),n.nrm(2,"cvc-gene-base-summary",2),n.k0s(),n.j41(3,"nz-col",1),n.nrm(4,"cvc-my-gene-info",3),n.k0s()()),2&a&&(n.Y8G("nzGutter",n.lJ4(3,qa)),n.R7$(2),n.Y8G("gene",o.gene),n.R7$(2),n.Y8G("geneInfo",o.gene.myGeneInfoDetails))},dependencies:[p.Uq,p.e,Za,gn],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return e})();function ei(e,i){if(1&e&&(n.j41(0,"span",7),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.SpI("(",t.length," displayed)")}}function ti(e,i){if(1&e&&(n.qex(0),n.j41(1,"span",7),n.EFF(2),n.k0s(),n.DNE(3,ei,2,1,"span",8),n.bVm()),2&e){const t=i.ngIf,a=n.XpG(2).ngIf;n.R7$(2),n.SpI("",t," Total"),n.R7$(),n.Y8G("ngIf",t>a.length)}}function ai(e,i){if(1&e&&(n.DNE(0,ti,4,2,"ng-container",2),n.nI1(1,"ngrxPush")),2&e){const t=n.XpG(2);n.Y8G("ngIf",n.bMT(1,1,t.totalFusions$))}}function ii(e,i){if(1&e&&n.nrm(0,"cvc-feature-tag",10),2&e){const t=n.XpG().$implicit;n.Y8G("feature",t)}}function oi(e,i){if(1&e&&(n.qex(0),n.DNE(1,ii,1,1,"cvc-feature-tag",9),n.bVm()),2&e){const t=i.$implicit;n.R7$(),n.Y8G("ngIf",t)}}function ri(e,i){if(1&e){const t=n.RV6();n.j41(0,"nz-row",12)(1,"button",13),n.bIt("click",function(){n.eBV(t);const o=n.XpG().ngIf,s=n.XpG(2);return n.Njj(s.fetchMore(o.endCursor))}),n.EFF(2," Load More "),n.k0s(),n.j41(3,"nz-select",14),n.mxI("ngModelChange",function(o){n.eBV(t);const s=n.XpG(3);return n.DH7(s.pageSize,o)||(s.pageSize=o),n.Njj(o)}),n.nrm(4,"nz-option",15)(5,"nz-option",16)(6,"nz-option",17),n.k0s()()}if(2&e){const t=n.XpG(3);n.R7$(3),n.R50("ngModel",t.pageSize),n.R7$(),n.Y8G("nzValue",50),n.R7$(),n.Y8G("nzValue",100),n.R7$(),n.Y8G("nzValue",300)}}function si(e,i){if(1&e&&(n.qex(0),n.DNE(1,ri,7,4,"nz-row",11),n.bVm()),2&e){const t=i.ngIf;n.R7$(),n.Y8G("ngIf",t.hasNextPage&&t.endCursor)}}function ci(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-card",3),n.DNE(2,ai,2,3,"ng-template",null,0,n.C5r),n.j41(4,"nz-row")(5,"nz-col",4)(6,"cvc-tag-list",5),n.DNE(7,oi,2,1,"ng-container",6),n.k0s()()(),n.DNE(8,si,2,1,"ng-container",2),n.nI1(9,"ngrxPush"),n.k0s(),n.bVm()),2&e){const t=i.ngIf,a=n.sdS(3),o=n.XpG();n.R7$(),n.Y8G("nzTitle",a),n.R7$(6),n.Y8G("ngForOf",t),n.R7$(),n.Y8G("ngIf",n.bMT(9,3,o.pageInfo$))}}let hn=class Tn{constructor(i){this.gql=i,this.debouncedQuery=new k.B,this.pageSize=50}ngOnInit(){if(void 0===this.geneId)throw new Error("Must pass a gene id into fusion menu component.");this.initialQueryVars={genePartnerId:this.geneId,first:this.pageSize},this.queryRef$=this.gql.watch(this.initialQueryVars),this.result$=this.queryRef$.valueChanges,this.loading$=this.result$.pipe((0,z.T)(({data:i,loading:t})=>t&&!i),(0,I.p)(x.kP),(0,y.Z)(!0)),this.connection$=this.result$.pipe((0,z.T)(i=>i.data?.fusions),(0,I.p)(x.kP)),this.pageInfo$=this.connection$.pipe((0,z.T)(i=>i.pageInfo),(0,I.p)(x.kP)),this.menuFusions$=this.connection$.pipe((0,z.T)(i=>i.edges.map(t=>t.node),(0,I.p)(x.kP))),this.totalFusions$=this.connection$.pipe((0,z.T)(i=>i.totalCount))}fetchMore(i){this.queryRef$.fetchMore({variables:{first:this.pageSize,after:i}})}static#n=this.\u0275fac=function(t){return new(t||Tn)(n.rXU(m.QcR))};static#e=this.\u0275cmp=n.VBU({type:Tn,selectors:[["cvc-fusions-menu"]],inputs:{geneId:"geneId"},decls:4,vars:6,consts:[["cardTitle",""],[3,"nzSpinning"],[4,"ngIf"],[3,"nzTitle"],["nzSpan","24"],["size","sm"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"feature",4,"ngIf"],[3,"feature"],["id","load-more-btn",4,"ngIf"],["id","load-more-btn"],["nz-button","","nzType","default","nzSize","small",2,"width","95%",3,"click"],["nzSize","small",2,"width","5%",3,"ngModelChange","ngModel"],["nzLabel","50",3,"nzValue"],["nzLabel","100",3,"nzValue"],["nzLabel","300",3,"nzValue"]],template:function(t,a){1&t&&(n.j41(0,"nz-spin",1),n.nI1(1,"ngrxPush"),n.DNE(2,ci,10,5,"ng-container",2),n.nI1(3,"ngrxPush"),n.k0s()),2&t&&(n.Y8G("nzSpinning",n.bMT(1,2,a.loading$)),n.R7$(2),n.Y8G("ngIf",n.bMT(3,4,a.menuFusions$)))},dependencies:[l.Sq,l.bT,g.BC,g.vS,b.aO,U.c,Q.p,p.Uq,p.e,F.cK,E.ld,E.WI,Y.a,d.Di,fn._,B.M,S.L9],styles:["[_nghost-%COMP%]{display:block}#variant-filters[_ngcontent-%COMP%] #name-filter-group[_ngcontent-%COMP%]{width:175px}#variant-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#load-more-btn[_ngcontent-%COMP%]{margin-top:12px}"]})};hn=(0,q.Cg)([(0,L.d)()],hn);const li=()=>[8,16];function pi(e,i){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-genes-summary",9),n.k0s()),2&e){const t=n.XpG().ngIf;n.R7$(),n.Y8G("featureId",t.id)("gene",t.featureInstance)}}function _i(e,i){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-factor-summary",10),n.k0s()),2&e){const t=n.XpG().ngIf;n.R7$(),n.Y8G("featureId",t.id)("factor",t.featureInstance)}}function mi(e,i){if(1&e&&n.nrm(0,"cvc-fusion-summary",2),2&e){const t=n.XpG().ngIf;n.Y8G("featureId",t.id)("fusion",t.featureInstance)}}function ui(e,i){if(1&e&&n.nrm(0,"cvc-molecular-profile-menu",11),2&e){const t=n.XpG().ngIf;n.Y8G("featureId",t.id)}}function gi(e,i){if(1&e&&n.nrm(0,"cvc-variant-menu",12),2&e){const t=n.XpG().ngIf;n.Y8G("feature",t)}}function fi(e,i){if(1&e&&n.nrm(0,"cvc-fusions-menu",13),2&e){const t=n.XpG(2).ngIf;n.Y8G("geneId",t.id)}}function di(e,i){1&e&&(n.j41(0,"nz-tab",8),n.DNE(1,fi,1,1,"ng-template",6),n.k0s())}function zi(e,i){if(1&e&&(n.qex(0),n.j41(1,"nz-row",1),n.DNE(2,pi,2,2,"span")(3,_i,2,2,"span")(4,mi,1,2,"cvc-fusion-summary",2),n.j41(5,"nz-col",3)(6,"nz-tabset",4)(7,"nz-tab",5),n.DNE(8,ui,1,1,"ng-template",6),n.k0s(),n.j41(9,"nz-tab",7),n.DNE(10,gi,1,1,"ng-template",6),n.k0s(),n.DNE(11,di,2,0,"nz-tab",8),n.k0s()()(),n.bVm()),2&e){let t;const a=i.ngIf;n.R7$(),n.Y8G("nzGutter",n.lJ4(4,li)),n.R7$(),n.vxM("Gene"===(t=a.featureInstance.__typename)?2:"Factor"===t?3:"Fusion"===t?4:-1),n.R7$(3),n.Y8G("nzSpan",24),n.R7$(6),n.vxM("Gene"==a.featureInstance.__typename?11:-1)}}const hi=[{path:"",component:Ae,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class e{constructor(t,a,o){this.gql=t,this.viewerService=a,this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.viewer$=this.viewerService.viewer$;let f=this.gql.watch({featureId:+s.featureId}).valueChanges;this.feature$=f.pipe((0,v.E)("data","feature")),this.loading$=f.pipe((0,v.E)("loading"))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(m.gUZ),n.rXU(X.q),n.rXU(M.nX))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-features-summary"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"nzGutter"],[3,"featureId","fusion"],[3,"nzSpan"],["nzType","card"],["nzTitle","Molecular Profiles"],["nz-tab",""],["nzTitle","Variants"],["nzTitle","Fusions"],[3,"featureId","gene"],[3,"featureId","factor"],[3,"featureId"],[3,"feature"],[3,"geneId"]],template:function(a,o){1&a&&(n.DNE(0,zi,12,5,"ng-container",0),n.nI1(1,"ngrxPush")),2&a&&n.Y8G("ngIf",n.bMT(1,1,o.feature$))},dependencies:[l.bT,p.Uq,p.e,O.JZ,O.rE,O.Tl,dn,zn,ni,Yn,wn,hn,S.L9],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return e})(),data:{breadcrumb:"Summary"}},{path:"comments",component:pn,data:{breadcrumb:"Comments"}},{path:"revisions",component:rt,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ze,data:{breadcrumb:"Summary"}},{path:"events",component:Qe,data:{breadcrumb:"Events"}}]}];let vi=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[M.iI.forChild(hi),_a,cn,it,He,Ue,M.iI]})}return e})();var Ci=r(7169);let yi=(()=>{class e{static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275mod=n.$C({type:e});static#t=this.\u0275inj=n.G2t({imports:[l.MD,vi,b.Zw,P.Y3,V.ZJ,C.pc,d.kT,p.f3,Z.$,Fn.MC,$.i,rn.W,c.Y,A.m,on.C,an.V,tn.p,Ci.W,nn]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/4705.aca7ab06cd8de743.js b/server/public/4705.aca7ab06cd8de743.js new file mode 100644 index 000000000..3f0142272 --- /dev/null +++ b/server/public/4705.aca7ab06cd8de743.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4705],{4705:(ue,A,i)=>{i.r(A),i.d(A,{AssertionsDetailModule:()=>de});var r=i(177),l=i(1188),u=i(7685),h=i(7391),f=i(3062),y=i(513),T=i(5699),v=i(5103),I=i(3617),g=i(7529),j=i(4124),D=i(1896),M=i(5736),V=i(590),N=i(78),O=i(1532),X=i(8103),p=i(9145),x=i(9172),U=i(6977),z=i(4608),L=i(1413),B=i(4412),n=i(3953),w=i(1305),b=i(1774),C=i(6389),k=i(5930),J=i(9765),W=i(8821),Q=i(7428),Z=i(5269),H=i(1263),K=i(8719),q=i(9945),nn=i(6269),R=i(5473),tn=i(3075);const en=t=>({flagged:t}),sn=t=>["/assertions",t,"revise"];function an(t,a){if(1&t&&(n.j41(0,"span",10),n.EFF(1,"Related to "),n.j41(2,"strong"),n.EFF(3),n.k0s(),n.EFF(4,":"),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(3),n.JRh(e.name)}}function on(t,a){if(1&t&&(n.j41(0,"span",11),n.nrm(1,"cvc-molecular-profile-tag",12),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(),n.Y8G("molecularProfile",e.molecularProfile)("enablePopover",!1)}}function rn(t,a){1&t&&(n.j41(0,"nz-space",7),n.DNE(1,an,5,1,"span",8)(2,on,2,2,"span",9),n.k0s())}function cn(t,a){if(1&t&&(n.j41(0,"button",26,2),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),s=n.XpG(3).ngIf;n.Y8G("routerLink",n.eq3(2,sn,s.id))("nzType",e.isActive?"primary":"default")}}function ln(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,cn,3,4,"button",25),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function pn(t,a){if(1&t&&(n.j41(0,"span")(1,"button",27,2),n.EFF(3," Flag "),n.k0s()()),2&t){const e=n.sdS(2);n.R7$(),n.Y8G("nzType",e.isActive?"primary":"default")}}function gn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-entity-subscription-button",28),n.bVm()),2&t){const e=n.XpG(2).ngrxLet,s=n.XpG(2);n.R7$(),n.Y8G("viewer",e)("subscribableId",s.subscribable.id)}}function mn(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,gn,2,2,"ng-container",3),n.k0s()),2&t){const e=n.XpG().ngrxLet,s=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.signedIn&&s.subscribable)}}function _n(t,a){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"cvc-revert-entity-button",29),n.bIt("onReverted",function(o){n.eBV(e);const c=n.XpG(4);return n.Njj(c.onRevertCompleted(o))}),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(3).ngIf;n.R7$(),n.Y8G("entityId",e.id)}}function dn(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,_n,2,1,"ng-container",3),n.k0s()),2&t){const e=n.XpG().ngrxLet,s=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.canModerate&&"SUBMITTED"!=s.status)}}function un(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",30),n.bIt("nzOnClose",function(){const o=n.eBV(e).$implicit,c=n.XpG(3);return n.Njj(c.onErrorBannerClose(o))}),n.k0s()}2&t&&n.Y8G("nzMessage",a.$implicit)}function fn(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",31),n.bIt("nzOnClose",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onSuccessBannerClose())}),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("nzMessage",e.successMessage)}}function zn(t,a){1&t&&n.nrm(0,"nz-alert",32)}function hn(t,a){1&t&&n.nrm(0,"nz-alert",33)}function vn(t,a){if(1&t&&(n.j41(0,"nz-col",34),n.nrm(1,"cvc-contributor-avatars",35),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function yn(t,a){if(1&t){const e=n.RV6();n.j41(0,"span")(1,"cvc-moderate-entity-buttons",37),n.bIt("onModerated",function(o){n.eBV(e);const c=n.XpG(4);return n.Njj(c.onModerateCompleted(o))}),n.k0s()()}if(2&t){const e=n.XpG(3).ngIf;n.R7$(),n.Y8G("entityId",e.id)}}function Tn(t,a){1&t&&n.nrm(0,"span")}function bn(t,a){1&t&&(n.j41(0,"nz-space",36),n.DNE(1,yn,2,1,"span",17)(2,Tn,1,0,"span",17),n.k0s())}function Gn(t,a){if(1&t&&(n.j41(0,"nz-page-header",13)(1,"nz-page-header-title",14),n.nrm(2,"i",15),n.nI1(3,"entityColor"),n.EFF(4),n.k0s(),n.j41(5,"nz-page-header-extra")(6,"nz-space",16),n.DNE(7,ln,2,1,"span",17)(8,pn,4,1,"span",17)(9,mn,2,1,"span",17)(10,dn,2,1,"span",17),n.k0s()(),n.j41(11,"nz-page-header-content"),n.DNE(12,un,1,1,"nz-alert",18)(13,fn,1,1,"nz-alert",19)(14,zn,1,0,"nz-alert",20)(15,hn,1,0,"nz-alert",21),n.j41(16,"cvc-tab-navigation",22),n.nI1(17,"ngrxPush"),n.DNE(18,vn,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(20,bn,3,0,"nz-space",23),n.j41(21,"div",24),n.nrm(22,"router-outlet"),n.k0s()()()),2&t){const e=a.ngrxLet,s=n.XpG().ngIf,o=n.XpG();n.R7$(),n.Y8G("ngClass",n.eq3(13,en,s.flags.totalCount>0)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(3,9,"Assertion")),n.R7$(2),n.SpI(" ",s.name," "),n.R7$(8),n.Y8G("ngForOf",o.errors),n.R7$(),n.Y8G("ngIf",o.successMessage),n.R7$(),n.Y8G("ngIf","SUBMITTED"==s.status),n.R7$(),n.Y8G("ngIf","REJECTED"==s.status),n.R7$(),n.Y8G("tabs",n.bMT(17,11,o.tabs$)),n.R7$(4),n.Y8G("ngIf",(e.canModerate||e.signedIn&&e.id==(null==s.submissionEvent||null==s.submissionEvent.originatingUser?null:s.submissionEvent.originatingUser.id))&&"SUBMITTED"==s.status)}}function An(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",4),n.DNE(2,rn,3,0,"ng-template",null,0,n.C5r),n.j41(4,"div",5),n.nI1(5,"ngrxPush"),n.DNE(6,Gn,23,15,"nz-page-header",6),n.k0s(),n.bVm()),2&t){const e=a.ngIf,s=n.sdS(3),o=n.XpG();n.R7$(),n.Y8G("displayName",e.name)("relationsTpl",s),n.R7$(3),n.Y8G("flags",n.bMT(5,4,o.flagsTotal$)),n.R7$(2),n.Y8G("ngrxLet",o.viewer$)}}let In=(()=>{class t{constructor(e,s,o){this.gql=e,this.viewerService=s,this.route=o,this.destroy$=new L.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.errors=[],this.tabs$=new B.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.paramsSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({assertionId:+c.assertionId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,z.E)("loading"),(0,x.Z)(!0)),this.assertion$=d.pipe((0,z.E)("data","assertion")),this.flagsTotal$=this.assertion$.pipe((0,z.E)("flags","totalCount")),this.assertion$.pipe((0,U.Q)(this.destroy$)).subscribe({next:m=>{this.tabs$.next(this.defaultTabs.map(_=>"Revisions"===_.tabLabel?{badgeCount:m?.revisions.totalCount,..._}:"Flags"===_.tabLabel?{badgeCount:m?.flags.totalCount,..._}:"Comments"===_.tabLabel?{badgeCount:m?.comments.totalCount,badgeColor:"#cccccc",..._}:_))}}),this.subscribable={id:+c.assertionId,entityType:p.V9U.Assertion}})}ngOnDestroy(){this.paramsSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(e){!0===e?(this.errors=[],this.successMessage="Assertion reverted to submitted status.",this.queryRef?.refetch()):(this.errors=e,this.successMessage=void 0)}onErrorBannerClose(e){this.errors=this.errors?.filter(s=>s!=e)}onSuccessBannerClose(){this.successMessage=void 0}onModerateCompleted(e){Array.isArray(e)?(this.errors=e,this.successMessage=void 0):(this.errors=[],this.successMessage=`Assertion successfully ${e}.`,this.queryRef?.refetch())}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(p.kKs),n.rXU(w.q),n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["assertions-detail"]],decls:2,vars:3,consts:[["assertionRelations",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName","relationsTpl"],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"molecularProfile","enablePopover"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],["nzBanner","","nzMessage","This Assertion has been rejected.","nzType","error",4,"ngIf"],[3,"tabs"],["nzDirection","vertical",4,"ngIf"],[1,"content"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","Assertion",3,"viewer","subscribableId"],["entityType","Assertion",3,"onReverted","entityId"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzMessage","This Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["nzBanner","","nzMessage","This Assertion has been rejected.","nzType","error"],["id","contributors-col"],[3,"subscribable"],["nzDirection","vertical"],["entityType","Assertion",3,"onModerated","entityId"]],template:function(s,o){1&s&&(n.DNE(0,An,7,6,"ng-container",3),n.nI1(1,"ngrxPush")),2&s&&n.Y8G("ngIf",n.bMT(1,1,o.assertion$))},dependencies:[r.YU,r.Sq,r.bT,l.n3,l.Wk,l.wQ,b.Nj,u.U5,u.Dq,h.Di,f.WB,f.k9,f.zR,f.ov,y.aO,C.c,k.p,v.Dn,I.Y,g.Uq,J.n,W.H,Q.v,Z.o,H.L,K.r,q.N,nn.f,R.z,b.L9,tn.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return t})();var xn=i(4873);let Cn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,xn.A]})}return t})();var Rn=i(1661),$n=i(664);let Sn=(()=>{class t{constructor(e,s){this.route=e,this.apollo=s,this.commentable={id:+this.route.snapshot.params.assertionId,entityType:p.T31.Assertion}}ngOnInit(){const e={id:`Assertion:${this.commentable.id}`,fragment:p.yo9,fragmentName:"assertionSubmissionActivity"};try{const s=this.apollo.client.readFragment(e);this.submissionComment={id:99999,__typename:"Comment",comment:"",deleted:!1,createdAt:s.submissionActivity.createdAt,parsedComment:s.submissionActivity.parsedNote,commenter:s.submissionActivity.user}}catch(s){console.log(s)}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX),n.rXU(Rn.Ic))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-comments"]],decls:1,vars:2,consts:[[3,"creationComment","commentable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-comment-list",0),2&s&&n.Y8G("creationComment",o.submissionComment)("commentable",o.commentable)},dependencies:[$n.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Pn=i(5703),En=i(1912),Yn=i(7268);let Fn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,g.f3,Pn.Ti,u.pc,En.i3,Yn.G]})}return t})();var jn=i(4097);let Dn=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:p.lD4.Assertion,id:+this.route.snapshot.params.assertionId}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-flag-list-and-filter",0),2&s&&n.Y8G("flaggable",o.flaggable)},dependencies:[jn.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Mn=i(6371);let Vn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,Mn.O]})}return t})();var Nn=i(4055);let On=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(s=>{this.subject={id:+s.assertionId,entityType:p.BlQ.Assertion}})}ngOnInit(){}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(s,o){1&s&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&s&&n.Y8G("moderated",o.subject)},dependencies:[Nn.B],encapsulation:2})}return t})();var G=i(2e3),$=i(4917),Xn=i(9590),Un=i(2839),Ln=i(2142),Bn=i(4531),wn=i(9192),kn=i(1542),S=i(5154),Jn=i(797),P=i(996),Wn=i(1448),Qn=i(9802),Zn=i(7169),E=i(1236),Hn=i(7556);let Kn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,g.f3,u.pc,g.f3,h.kT,y.Zw,T.T,v.Y3,G.WF,S.Qt,E.MC,Hn.F,$.i,Xn.R,Un.m,Ln.x,Qn._,Bn.C,wn.J,kn.X,Jn.h,P.o,Wn.B,Zn.W]})}return t})();var qn=i(7593),nt=i(2033),tt=i(311),et=i(6408),st=i(7855),it=i(9563),at=i(8199),ot=i(9861),rt=i(7047),ct=i(5051),lt=i(9973),pt=i(4126),gt=i(463),mt=i(7292),_t=i(8763),dt=i(8139);const ut=()=>[8,16],Y=()=>[8,8],ft=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),zt=()=>({xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}),ht=()=>({xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}),vt=()=>({width:"300px"});function yt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-tag"),n.EFF(2),n.nI1(3,"formatAmp"),n.k0s(),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.JRh(n.i5U(3,1,e.ampLevel,"verbose"))}}function Tt(t,a){1&t&&(n.EFF(0," ACMG Codes "),n.j41(1,"span",48),n.nrm(2,"i",49),n.k0s())}function bt(t,a){if(1&t&&(n.j41(0,"nz-tag",51),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.Y8G("nzTooltipTitle",e.description),n.R7$(),n.JRh(e.code)}}function Gt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,bt,2,2,"nz-tag",50),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.Y8G("ngForOf",e.acmgCodes)}}function At(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None provided"),n.k0s(),n.bVm())}function It(t,a){if(1&t&&(n.qex(0),n.DNE(1,Gt,3,1,"ng-container",9)(2,At,3,0,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.acmgCodes.length>0),n.R7$(),n.Y8G("ngIf",0==e.acmgCodes.length)}}function xt(t,a){1&t&&(n.EFF(0," ClinGen/CGC/VICC Codes "),n.j41(1,"span",48),n.nrm(2,"i",49),n.k0s())}function Ct(t,a){if(1&t&&(n.j41(0,"nz-tag",51),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.Y8G("nzTooltipTitle",e.description),n.R7$(),n.JRh(e.code)}}function Rt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ct,2,2,"nz-tag",50),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.Y8G("ngForOf",e.clingenCodes)}}function $t(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None provided"),n.k0s(),n.bVm())}function St(t,a){if(1&t&&(n.qex(0),n.DNE(1,Rt,3,1,"ng-container",9)(2,$t,3,0,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.clingenCodes.length>0),n.R7$(),n.Y8G("ngIf",0==e.clingenCodes.length)}}function Pt(t,a){1&t&&(n.j41(0,"span",48),n.EFF(1,"Not applicable"),n.k0s())}function Et(t,a){if(1&t&&(n.j41(0,"nz-tag",52),n.nrm(1,"i",53),n.k0s()),2&t){n.XpG();const e=n.sdS(49);n.Y8G("nzPopoverContent",e)("nzPopoverOverlayStyle",n.lJ4(2,vt))}}function Yt(t,a){if(1&t&&n.nrm(0,"cvc-comment-body",54),2&t){const e=n.XpG().ngIf;n.Y8G("commentBodySegments",e.submissionActivity.parsedNote)}}function Ft(t,a){if(1&t&&(n.EFF(0," Submitted "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.submissionEvent.createdAt),") ")}}function jt(t,a){if(1&t&&(n.EFF(0," Accepted "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.acceptanceEvent.createdAt),") ")}}function Dt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",29),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",30),n.k0s(),n.DNE(4,jt,4,3,"ng-template",null,7,n.C5r),n.bVm()),2&t){const e=n.sdS(5),s=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",s.acceptanceEvent.originatingUser)}}function Mt(t,a){if(1&t&&(n.EFF(0," Rejected "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.rejectionEvent.createdAt),") ")}}function Vt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",29),n.EFF(2),n.nI1(3,"timeAgo"),n.nrm(4,"cvc-user-tag",30),n.k0s(),n.DNE(5,Mt,4,3,"ng-template",null,8,n.C5r),n.bVm()),2&t){const e=n.sdS(6),s=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTitle",e),n.R7$(),n.SpI(" by ",n.bMT(3,3,s.rejectionEvent.createdAt)," by "),n.R7$(2),n.Y8G("user",s.rejectionEvent.originatingUser)}}function Nt(t,a){if(1&t&&(n.qex(0),n.DNE(1,Dt,6,2,"ng-container",9)(2,Vt,7,5,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf,s=n.XpG();n.R7$(),n.Y8G("ngIf",e.status==s.statusValues.Accepted&&e.acceptanceEvent),n.R7$(),n.Y8G("ngIf",e.status==s.statusValues.Rejected&&e.rejectionEvent)}}function Ot(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-disease-tag",55),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("disease",e.disease)}}function Xt(t,a){1&t&&(n.j41(0,"span",48),n.EFF(1,"Not applicable"),n.k0s())}function Ut(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None Specified"),n.k0s(),n.bVm())}function Lt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-phenotype-tag",57),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("phenotype",e)}}function Bt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Lt,2,1,"ng-container",56),n.k0s(),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.Y8G("ngForOf",e.phenotypes)}}function wt(t,a){if(1&t&&n.eu8(0,58),2&t){n.XpG(2);const e=n.sdS(3);n.Y8G("ngTemplateOutlet",e)}}function kt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",59),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("therapy",e)}}function Jt(t,a){if(1&t&&(n.j41(0,"cvc-tag-list"),n.DNE(1,kt,2,1,"ng-container",56),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngForOf",e.therapies)}}function Wt(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",60)(1,"nz-tag"),n.nrm(2,"i",61),n.nI1(3,"therapyInteractionEnumDisplay"),n.EFF(4),n.nI1(5,"titlecase"),n.k0s()()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.Y8G("nzType",n.i5U(3,2,e.therapyInteractionType,"icon-name")),n.R7$(2),n.SpI(" ",n.bMT(5,5,e.therapyInteractionType)," ")}}function Qt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Zt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Ht(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" (last updated ",n.bMT(2,1,e.regulatoryApprovalLastUpdated),") ")}}function Kt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"N/A"),n.k0s(),n.bVm())}function qt(t,a){if(1&t&&n.eu8(0,58),2&t){n.XpG(2);const e=n.sdS(3);n.Y8G("ngTemplateOutlet",e)}}function ne(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function te(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function ee(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" (last updated ",n.bMT(2,1,e.fdaCompanionTestLastUpdated),") ")}}function se(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"N/A"),n.k0s(),n.bVm())}function ie(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Lme("",e.nccnGuideline.name," (",e.nccnGuidelineVersion,")")}}function ae(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None Provided"),n.k0s(),n.bVm())}function oe(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-row",10)(2,"nz-col",11)(3,"nz-row",10)(4,"nz-col",11)(5,"nz-descriptions",12)(6,"nz-descriptions-item",13)(7,"p",14),n.EFF(8),n.k0s()(),n.j41(9,"nz-descriptions-item",15)(10,"p",16),n.EFF(11),n.k0s()()()(),n.j41(12,"nz-col",11)(13,"nz-descriptions",17)(14,"nz-descriptions-item",18),n.nrm(15,"cvc-attribute-tag",19),n.nI1(16,"enumTooltip"),n.k0s(),n.j41(17,"nz-descriptions-item",20),n.nrm(18,"cvc-attribute-tag",21),n.nI1(19,"enumTooltip"),n.k0s(),n.j41(20,"nz-descriptions-item",22),n.nrm(21,"cvc-attribute-tag",21),n.nI1(22,"enumTooltip"),n.k0s(),n.j41(23,"nz-descriptions-item",23),n.nrm(24,"cvc-attribute-tag",21),n.nI1(25,"enumTooltip"),n.k0s(),n.j41(26,"nz-descriptions-item",24),n.DNE(27,yt,4,4,"ng-container",25),n.k0s(),n.j41(28,"nz-descriptions-item",26),n.DNE(29,Tt,3,0,"ng-template",null,2,n.C5r)(31,It,3,2,"ng-container",25),n.k0s(),n.j41(32,"nz-descriptions-item",26),n.DNE(33,xt,3,0,"ng-template",null,3,n.C5r)(35,St,3,2,"ng-container",25),n.k0s(),n.DNE(36,Pt,2,0,"ng-template",null,4,n.C5r),n.k0s()()()(),n.j41(38,"nz-col",11)(39,"nz-row",10)(40,"nz-col",11)(41,"nz-descriptions",12)(42,"nz-descriptions-item",27),n.nrm(43,"cvc-status-tag",28),n.k0s(),n.j41(44,"nz-descriptions-item",29),n.EFF(45," by "),n.nrm(46,"cvc-user-tag",30),n.DNE(47,Et,2,3,"nz-tag",31)(48,Yt,1,1,"ng-template",null,5,n.C5r),n.k0s(),n.DNE(50,Ft,4,3,"ng-template",null,6,n.C5r)(52,Nt,3,2,"ng-container",9),n.k0s()(),n.j41(53,"nz-col",11)(54,"nz-descriptions",17)(55,"nz-descriptions-item",32),n.nrm(56,"cvc-molecular-profile-tag",33),n.k0s(),n.j41(57,"nz-descriptions-item",34),n.nrm(58,"cvc-mp-tag-name",35),n.k0s(),n.j41(59,"nz-descriptions-item",36),n.DNE(60,Ot,2,1,"ng-container",9)(61,Xt,2,0,"span",37),n.k0s(),n.j41(62,"nz-descriptions-item",29),n.DNE(63,Ut,3,0,"ng-container",9)(64,Bt,3,1,"ng-container",9),n.k0s(),n.j41(65,"nz-descriptions-item",29),n.qex(66,38),n.DNE(67,wt,1,1,"ng-template",39)(68,Jt,2,1,"ng-template",40),n.bVm(),n.k0s(),n.DNE(69,Wt,6,7,"nz-descriptions-item",41),n.j41(70,"nz-descriptions-item",42),n.DNE(71,Qt,1,3,"i",43)(72,Zt,1,3,"i",43)(73,Ht,3,3,"ng-container",9)(74,Kt,3,0,"ng-container",9)(75,qt,1,1,"ng-container",44),n.k0s(),n.j41(76,"nz-descriptions-item",45),n.DNE(77,ne,1,3,"i",43)(78,te,1,3,"i",43)(79,ee,3,3,"ng-container",9)(80,se,3,0,"ng-container",9),n.k0s(),n.j41(81,"nz-descriptions-item",46),n.DNE(82,ie,2,2,"ng-container",9)(83,ae,3,0,"ng-container",9),n.k0s()()()()(),n.j41(84,"nz-col",11),n.nrm(85,"cvc-evidence-table",47),n.k0s()(),n.bVm()),2&t){const e=a.ngIf,s=n.sdS(30),o=n.sdS(34),c=n.sdS(51),d=n.XpG(),m=n.sdS(3);n.R7$(),n.Y8G("nzGutter",n.lJ4(81,ut)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(82,Y)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",1),n.R7$(3),n.JRh(e.summary),n.R7$(2),n.Y8G("nzEllipsisRows",6),n.R7$(),n.SpI(" ",e.description," "),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(83,ft)),n.R7$(2),n.Y8G("cvcAttrValue",e.assertionType)("nzTooltipTitle",n.i5U(16,65,e.assertionType,"assertionType")),n.R7$(3),n.Y8G("cvcAttrValue",e.assertionDirection)("nzTooltipTitle",n.ii3(19,68,e.assertionDirection,"assertionDirection",e.assertionType,"Assertion")),n.R7$(3),n.Y8G("cvcAttrValue",e.significance)("nzTooltipTitle",n.ii3(22,73,e.significance,"significance",e.assertionType,"Assertion")),n.R7$(3),n.Y8G("cvcAttrValue",e.variantOrigin)("nzTooltipTitle",n.i5U(25,78,e.variantOrigin,"variantOrigin")),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresAmpLevel(e.assertionType))("ngIfElse",m),n.R7$(),n.Y8G("nzSpan",2)("nzTitle",s),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresAcmgCodes(e.assertionType))("ngIfElse",m),n.R7$(),n.Y8G("nzSpan",2)("nzTitle",o),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresClingenCodes(e.assertionType))("ngIfElse",m),n.R7$(3),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(84,Y)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(85,zt)),n.R7$(2),n.Y8G("status",e.status),n.R7$(),n.Y8G("nzTitle",c),n.R7$(2),n.Y8G("user",e.submissionEvent.originatingUser),n.R7$(),n.Y8G("ngIf",e.submissionActivity.parsedNote.length>0),n.R7$(5),n.Y8G("ngIf",null!==e.rejectionEvent||null!==e.acceptanceEvent),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(86,ht)),n.R7$(2),n.Y8G("molecularProfile",e.molecularProfile)("enablePopover",!0),n.R7$(2),n.Y8G("nameSegments",e.molecularProfile.parsedName),n.R7$(2),n.Y8G("ngIf",e.disease&&e.disease.name),n.R7$(),n.Y8G("ngIf",!(null!=e.disease&&e.disease.name)),n.R7$(),n.Y8G("nzTitle",e.phenotypes.length>1?"Phenotypes":"Phenotype"),n.R7$(),n.Y8G("ngIf",0===e.phenotypes.length),n.R7$(),n.Y8G("ngIf",e.phenotypes.length>0),n.R7$(),n.Y8G("nzTitle",e.therapies.length>1?"Therapies":"Therapy"),n.R7$(),n.Y8G("ngPlural",e.therapies.length),n.R7$(3),n.Y8G("ngIf",e.therapyInteractionType),n.R7$(2),n.Y8G("ngIf",!0===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",!1===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",e.regulatoryApprovalLastUpdated),n.R7$(),n.Y8G("ngIf",void 0===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",void 0===e.regulatoryApproval),n.R7$(2),n.Y8G("ngIf",!0===e.fdaCompanionTest),n.R7$(),n.Y8G("ngIf",!1===e.fdaCompanionTest),n.R7$(),n.Y8G("ngIf",e.fdaCompanionTestLastUpdated),n.R7$(),n.Y8G("ngIf",void 0===e.fdaCompanionTest),n.R7$(2),n.Y8G("ngIf",e.nccnGuideline),n.R7$(),n.Y8G("ngIf",!e.nccnGuideline),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Mz_("cvcTitle","",e.name," Evidence"),n.Y8G("assertionId",e.id)}}function re(t,a){1&t&&n.nrm(0,"cvc-empty-value",63)}function ce(t,a){1&t&&n.nrm(0,"cvc-empty-value",64)}let le=(()=>{class t{constructor(e,s){var o;if(this.gql=e,this.route=s,this.assertionRules=new qn.o,this.statusValues=p.YSN,null==(o=this.assertionId?this.assertionId:+this.route.snapshot.params.assertionId))throw new Error("Must pass in an assertion ID as an input or via the route.");this.queryRef=this.gql.watch({assertionId:o});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,z.E)("loading"),(0,x.Z)(!0)),this.assertion$=c.pipe((0,z.E)("data","assertion")),this.subscribable={entityType:p.V9U.Assertion,id:o}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(p.fqJ),n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertion-summary"]],inputs:{assertionId:"assertionId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["acmgTitle",""],["clingenTitle",""],["notApplicable",""],["submissionCommentTemplate",""],["submittedTitle",""],["acceptedTitle",""],["rejectedTitle",""],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Summary"],["nz-typography",""],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",1,"summary-block",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["cvcAttrName","assertionType","nz-tooltip","","iconPropertyType","type",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Direction"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Significance"],["nzTitle","Variant Origin"],["nzTitle","AMP/ASCO/CAP Category"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Status"],[3,"status"],[3,"nzTitle"],[3,"user"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["nzTitle","Molecular Profile Name"],[3,"molecularProfile","enablePopover"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["nzTitle","Therapy Interaction Type",4,"ngIf"],["nzTitle","Regulatory Approval","nzSpan","1"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor",4,"ngIf"],[3,"ngTemplateOutlet",4,"ngIf"],["nzTitle","FDA Companion Test","nzSpan","1"],["nzTitle","NCCN Guideline"],[3,"assertionId","cvcTitle"],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nz-tooltip","","nzTooltipTitle","All codes are reviewed during acceptance. Absence of a code implies it is not met."],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],["nz-icon","","nzType","align-left"],[3,"commentBodySegments"],[3,"disease"],[4,"ngFor","ngForOf"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["nz-icon","",1,"attribute-icon",3,"nzType"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(s,o){1&s&&(n.DNE(0,oe,86,87,"ng-container",9),n.nI1(1,"ngrxPush"),n.DNE(2,re,1,0,"ng-template",null,0,n.C5r)(4,ce,1,0,"ng-template",null,1,n.C5r)),2&s&&n.Y8G("ngIf",n.bMT(1,1,o.assertion$))},dependencies:[r.Sq,r.bT,r.T3,r.IJ,r.WO,g.Uq,g.e,h.Di,C.c,T.s,v.Dn,G.xA,G.gr,S.LH,E.L_,nt.o,tt.g,et.r,st.M,it.R,at.N,ot.Y,rt.A,ct.y,R.z,lt.G,pt.p,r.PV,b.L9,gt.E,mt.H,_t.k,dt.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}.summary-block[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}"]})}return t})();var F=i(8313);let pe=(()=>{class t{constructor(e){this.route=e,this.feedScope={mode:p.Qt1.Subject,subject:{id:+this.route.snapshot.params.assertionId,entityType:p.V9U.Assertion}}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-events"]],decls:1,vars:2,consts:[[3,"cvcScope","cvcShowFilters"]],template:function(s,o){1&s&&n.nrm(0,"cvc-activity-feed",0),2&s&&n.Y8G("cvcScope",o.feedScope)("cvcShowFilters",!0)},dependencies:[F.Y],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return t})(),ge=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,F.Y]})}return t})();const me=[{path:"",component:In,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:le,data:{breadcrumb:"Summary"}},{path:"events",component:pe,data:{breadcrumb:"Events"}},{path:"comments",component:Sn,data:{breadcrumb:"Comments"}},{path:"revisions",component:On,data:{breadcrumb:"Revisions"}},{path:"flags",component:Dn,data:{breadcrumb:"Flags"}}]}];let _e=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.iI.forChild(me),Kn,Cn,Vn,Fn,ge,l.iI]})}return t})(),de=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,_e,l.iI,u.pc,h.kT,f.ZJ,y.Zw,T.T,v.Y3,I.$,g.f3,$.i,j.C,D.Y,M.V,V.W,N.U,O.W,X.m,P.o]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/4705.f3d30f81278ccfa3.js b/server/public/4705.f3d30f81278ccfa3.js deleted file mode 100644 index 5d34e78ce..000000000 --- a/server/public/4705.f3d30f81278ccfa3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4705],{4705:(fe,A,i)=>{i.r(A),i.d(A,{AssertionsDetailModule:()=>ue});var r=i(177),l=i(1188),u=i(7685),h=i(7391),f=i(3062),y=i(513),T=i(5699),v=i(5103),I=i(3617),g=i(7529),F=i(4124),D=i(1896),j=i(5736),M=i(590),V=i(78),N=i(1532),O=i(8103),p=i(9145),x=i(9172),X=i(6977),z=i(4608),U=i(1413),L=i(4412),n=i(3953),B=i(1305),b=i(1774),C=i(6389),w=i(5930),k=i(9765),J=i(8821),W=i(7428),Z=i(5269),Q=i(1263),H=i(8719),K=i(9945),q=i(6269),R=i(5473),nn=i(3075);const tn=t=>({flagged:t}),en=t=>["/assertions",t,"revise"];function sn(t,a){if(1&t&&(n.j41(0,"span",10),n.EFF(1,"Related to "),n.j41(2,"strong"),n.EFF(3),n.k0s(),n.EFF(4,":"),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(3),n.JRh(e.name)}}function an(t,a){if(1&t&&(n.j41(0,"span",11),n.nrm(1,"cvc-molecular-profile-tag",12),n.k0s()),2&t){const e=n.XpG(2).ngIf;n.R7$(),n.Y8G("molecularProfile",e.molecularProfile)("enablePopover",!1)}}function on(t,a){1&t&&(n.j41(0,"nz-space",7),n.DNE(1,sn,5,1,"span",8)(2,an,2,2,"span",9),n.k0s())}function rn(t,a){if(1&t&&(n.j41(0,"button",26,2),n.EFF(2," Revise "),n.k0s()),2&t){const e=n.sdS(1),s=n.XpG(3).ngIf;n.Y8G("routerLink",n.eq3(2,en,s.id))("nzType",e.isActive?"primary":"default")}}function cn(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,rn,3,4,"button",25),n.k0s()),2&t){const e=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",e.signedIn)}}function ln(t,a){if(1&t&&(n.j41(0,"span")(1,"button",27,2),n.EFF(3," Flag "),n.k0s()()),2&t){const e=n.sdS(2);n.R7$(),n.Y8G("nzType",e.isActive?"primary":"default")}}function pn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-entity-subscription-button",28),n.bVm()),2&t){const e=n.XpG(2).ngrxLet,s=n.XpG(2);n.R7$(),n.Y8G("viewer",e)("subscribableId",s.subscribable.id)}}function gn(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,pn,2,2,"ng-container",3),n.k0s()),2&t){const e=n.XpG().ngrxLet,s=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.signedIn&&s.subscribable)}}function mn(t,a){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"cvc-revert-entity-button",29),n.bIt("onReverted",function(o){n.eBV(e);const c=n.XpG(4);return n.Njj(c.onRevertCompleted(o))}),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(3).ngIf;n.R7$(),n.Y8G("entityId",e.id)}}function _n(t,a){if(1&t&&(n.j41(0,"span"),n.DNE(1,mn,2,1,"ng-container",3),n.k0s()),2&t){const e=n.XpG().ngrxLet,s=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.canModerate&&"SUBMITTED"!=s.status)}}function dn(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",30),n.bIt("nzOnClose",function(){const o=n.eBV(e).$implicit,c=n.XpG(3);return n.Njj(c.onErrorBannerClose(o))}),n.k0s()}2&t&&n.Y8G("nzMessage",a.$implicit)}function un(t,a){if(1&t){const e=n.RV6();n.j41(0,"nz-alert",31),n.bIt("nzOnClose",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onSuccessBannerClose())}),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("nzMessage",e.successMessage)}}function fn(t,a){1&t&&n.nrm(0,"nz-alert",32)}function zn(t,a){1&t&&n.nrm(0,"nz-alert",33)}function hn(t,a){if(1&t&&(n.j41(0,"nz-col",34),n.nrm(1,"cvc-contributor-avatars",35),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("subscribable",e.subscribable)}}function vn(t,a){if(1&t){const e=n.RV6();n.j41(0,"span")(1,"cvc-moderate-entity-buttons",37),n.bIt("onModerated",function(o){n.eBV(e);const c=n.XpG(4);return n.Njj(c.onModerateCompleted(o))}),n.k0s()()}if(2&t){const e=n.XpG(3).ngIf;n.R7$(),n.Y8G("entityId",e.id)}}function yn(t,a){1&t&&n.nrm(0,"span")}function Tn(t,a){1&t&&(n.j41(0,"nz-space",36),n.DNE(1,vn,2,1,"span",17)(2,yn,1,0,"span",17),n.k0s())}function bn(t,a){if(1&t&&(n.j41(0,"nz-page-header",13)(1,"nz-page-header-title",14),n.nrm(2,"i",15),n.nI1(3,"entityColor"),n.EFF(4),n.k0s(),n.j41(5,"nz-page-header-extra")(6,"nz-space",16),n.DNE(7,cn,2,1,"span",17)(8,ln,4,1,"span",17)(9,gn,2,1,"span",17)(10,_n,2,1,"span",17),n.k0s()(),n.j41(11,"nz-page-header-content"),n.DNE(12,dn,1,1,"nz-alert",18)(13,un,1,1,"nz-alert",19)(14,fn,1,0,"nz-alert",20)(15,zn,1,0,"nz-alert",21),n.j41(16,"cvc-tab-navigation",22),n.nI1(17,"ngrxPush"),n.DNE(18,hn,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.DNE(20,Tn,3,0,"nz-space",23),n.j41(21,"div",24),n.nrm(22,"router-outlet"),n.k0s()()()),2&t){const e=a.ngrxLet,s=n.XpG().ngIf,o=n.XpG();n.R7$(),n.Y8G("ngClass",n.eq3(13,tn,s.flags.totalCount>0)),n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(3,9,"Assertion")),n.R7$(2),n.SpI(" ",s.name," "),n.R7$(8),n.Y8G("ngForOf",o.errors),n.R7$(),n.Y8G("ngIf",o.successMessage),n.R7$(),n.Y8G("ngIf","SUBMITTED"==s.status),n.R7$(),n.Y8G("ngIf","REJECTED"==s.status),n.R7$(),n.Y8G("tabs",n.bMT(17,11,o.tabs$)),n.R7$(4),n.Y8G("ngIf",(e.canModerate||e.signedIn&&e.id==(null==s.submissionEvent||null==s.submissionEvent.originatingUser?null:s.submissionEvent.originatingUser.id))&&"SUBMITTED"==s.status)}}function Gn(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-section-navigation",4),n.DNE(2,on,3,0,"ng-template",null,0,n.C5r),n.j41(4,"div",5),n.nI1(5,"ngrxPush"),n.DNE(6,bn,23,15,"nz-page-header",6),n.k0s(),n.bVm()),2&t){const e=a.ngIf,s=n.sdS(3),o=n.XpG();n.R7$(),n.Y8G("displayName",e.name)("relationsTpl",s),n.R7$(3),n.Y8G("flags",n.bMT(5,4,o.flagsTotal$)),n.R7$(2),n.Y8G("ngrxLet",o.viewer$)}}let An=(()=>{class t{constructor(e,s,o){this.gql=e,this.viewerService=s,this.route=o,this.destroy$=new U.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.errors=[],this.tabs$=new L.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.paramsSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({assertionId:+c.assertionId});let d=this.queryRef.valueChanges;this.loading$=d.pipe((0,z.E)("loading"),(0,x.Z)(!0)),this.assertion$=d.pipe((0,z.E)("data","assertion")),this.flagsTotal$=this.assertion$.pipe((0,z.E)("flags","totalCount")),this.assertion$.pipe((0,X.Q)(this.destroy$)).subscribe({next:m=>{this.tabs$.next(this.defaultTabs.map(_=>"Revisions"===_.tabLabel?{badgeCount:m?.revisions.totalCount,..._}:"Flags"===_.tabLabel?{badgeCount:m?.flags.totalCount,..._}:"Comments"===_.tabLabel?{badgeCount:m?.comments.totalCount,badgeColor:"#cccccc",..._}:_))}}),this.subscribable={id:+c.assertionId,entityType:p.V9U.Assertion}})}ngOnDestroy(){this.paramsSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(e){!0===e?(this.errors=[],this.successMessage="Assertion reverted to submitted status.",this.queryRef?.refetch()):(this.errors=e,this.successMessage=void 0)}onErrorBannerClose(e){this.errors=this.errors?.filter(s=>s!=e)}onSuccessBannerClose(){this.successMessage=void 0}onModerateCompleted(e){Array.isArray(e)?(this.errors=e,this.successMessage=void 0):(this.errors=[],this.successMessage=`Assertion successfully ${e}.`,this.queryRef?.refetch())}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(p.kKs),n.rXU(B.q),n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["assertions-detail"]],decls:2,vars:3,consts:[["assertionRelations",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName","relationsTpl"],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"molecularProfile","enablePopover"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],["nzBanner","","nzMessage","This Assertion has been rejected.","nzType","error",4,"ngIf"],[3,"tabs"],["nzDirection","vertical",4,"ngIf"],[1,"content"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","Assertion",3,"viewer","subscribableId"],["entityType","Assertion",3,"onReverted","entityId"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzMessage","This Assertion is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["nzBanner","","nzMessage","This Assertion has been rejected.","nzType","error"],["id","contributors-col"],[3,"subscribable"],["nzDirection","vertical"],["entityType","Assertion",3,"onModerated","entityId"]],template:function(s,o){1&s&&(n.DNE(0,Gn,7,6,"ng-container",3),n.nI1(1,"ngrxPush")),2&s&&n.Y8G("ngIf",n.bMT(1,1,o.assertion$))},dependencies:[r.YU,r.Sq,r.bT,l.n3,l.Wk,l.wQ,b.Nj,u.U5,u.Dq,h.Di,f.WB,f.k9,f.zR,f.ov,y.aO,C.c,w.p,v.Dn,I.Y,g.Uq,k.n,J.H,W.v,Z.o,Q.L,H.r,K.N,q.f,R.z,b.L9,nn.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return t})();var In=i(4873);let xn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,In.A]})}return t})();var Cn=i(1661),Rn=i(664);let $n=(()=>{class t{constructor(e,s){this.route=e,this.apollo=s,this.commentable={id:+this.route.snapshot.params.assertionId,entityType:p.T31.Assertion}}ngOnInit(){const e={id:`Assertion:${this.commentable.id}`,fragment:p.yo9,fragmentName:"assertionSubmissionActivity"};try{const s=this.apollo.client.readFragment(e);this.submissionComment={createdAt:s.submissionActivity.createdAt,parsedComment:s.submissionActivity.parsedNote,commenter:s.submissionActivity.user}}catch(s){console.log(s)}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX),n.rXU(Cn.Ic))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-comments"]],decls:1,vars:2,consts:[[3,"creationComment","commentable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-comment-list",0),2&s&&n.Y8G("creationComment",o.submissionComment)("commentable",o.commentable)},dependencies:[Rn.D],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var Sn=i(5703),Pn=i(1912),En=i(7268);let Yn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,g.f3,Sn.Ti,u.pc,Pn.i3,En.G]})}return t})();var Fn=i(4097);let Dn=(()=>{class t{constructor(e){this.route=e,this.flaggable={entityType:p.lD4.Assertion,id:+this.route.snapshot.params.assertionId}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-flag-list-and-filter",0),2&s&&n.Y8G("flaggable",o.flaggable)},dependencies:[Fn.b],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var jn=i(6371);let Mn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,jn.O]})}return t})();var Vn=i(4055);let Nn=(()=>{class t{constructor(e){this.route=e,this.routeSub=this.route.params.subscribe(s=>{this.subject={id:+s.assertionId,entityType:p.BlQ.Assertion}})}ngOnInit(){}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(s,o){1&s&&n.nrm(0,"cvc-revisions-list-and-filter",0),2&s&&n.Y8G("moderated",o.subject)},dependencies:[Vn.B],encapsulation:2})}return t})();var G=i(2e3),$=i(4917),On=i(9590),Xn=i(2839),Un=i(2142),Ln=i(4531),Bn=i(9192),wn=i(1542),S=i(5154),kn=i(797),P=i(996),Jn=i(1448),Wn=i(9802),Zn=i(7169),E=i(1236),Qn=i(7556);let Hn=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,g.f3,u.pc,g.f3,h.kT,y.Zw,T.T,v.Y3,G.WF,S.Qt,E.MC,Qn.F,$.i,On.R,Xn.m,Un.x,Wn._,Ln.C,Bn.J,wn.X,kn.h,P.o,Jn.B,Zn.W]})}return t})();var Kn=i(7593),qn=i(2033),nt=i(311),tt=i(6408),et=i(7855),st=i(9563),it=i(8199),at=i(9861),ot=i(7047),rt=i(5051),ct=i(9973),lt=i(4126),pt=i(463),gt=i(7292),mt=i(8763),_t=i(8139);const dt=()=>[8,16],Y=()=>[8,8],ut=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),ft=()=>({xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}),zt=()=>({xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}),ht=()=>({width:"300px"});function vt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-tag"),n.EFF(2),n.nI1(3,"formatAmp"),n.k0s(),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.JRh(n.i5U(3,1,e.ampLevel,"verbose"))}}function yt(t,a){1&t&&(n.EFF(0," ACMG Codes "),n.j41(1,"span",48),n.nrm(2,"i",49),n.k0s())}function Tt(t,a){if(1&t&&(n.j41(0,"nz-tag",51),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.Y8G("nzTooltipTitle",e.description),n.R7$(),n.JRh(e.code)}}function bt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Tt,2,2,"nz-tag",50),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.Y8G("ngForOf",e.acmgCodes)}}function Gt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None provided"),n.k0s(),n.bVm())}function At(t,a){if(1&t&&(n.qex(0),n.DNE(1,bt,3,1,"ng-container",9)(2,Gt,3,0,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.acmgCodes.length>0),n.R7$(),n.Y8G("ngIf",0==e.acmgCodes.length)}}function It(t,a){1&t&&(n.EFF(0," ClinGen/CGC/VICC Codes "),n.j41(1,"span",48),n.nrm(2,"i",49),n.k0s())}function xt(t,a){if(1&t&&(n.j41(0,"nz-tag",51),n.EFF(1),n.k0s()),2&t){const e=a.$implicit;n.Y8G("nzTooltipTitle",e.description),n.R7$(),n.JRh(e.code)}}function Ct(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,xt,2,2,"nz-tag",50),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).ngIf;n.R7$(2),n.Y8G("ngForOf",e.clingenCodes)}}function Rt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None provided"),n.k0s(),n.bVm())}function $t(t,a){if(1&t&&(n.qex(0),n.DNE(1,Ct,3,1,"ng-container",9)(2,Rt,3,0,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngIf",e.clingenCodes.length>0),n.R7$(),n.Y8G("ngIf",0==e.clingenCodes.length)}}function St(t,a){1&t&&(n.j41(0,"span",48),n.EFF(1,"Not applicable"),n.k0s())}function Pt(t,a){if(1&t&&(n.j41(0,"nz-tag",52),n.nrm(1,"i",53),n.k0s()),2&t){n.XpG();const e=n.sdS(49);n.Y8G("nzPopoverContent",e)("nzPopoverOverlayStyle",n.lJ4(2,ht))}}function Et(t,a){if(1&t&&n.nrm(0,"cvc-comment-body",54),2&t){const e=n.XpG().ngIf;n.Y8G("commentBodySegments",e.submissionActivity.parsedNote)}}function Yt(t,a){if(1&t&&(n.EFF(0," Submitted "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.submissionEvent.createdAt),") ")}}function Ft(t,a){if(1&t&&(n.EFF(0," Accepted "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.acceptanceEvent.createdAt),") ")}}function Dt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",29),n.EFF(2," by "),n.nrm(3,"cvc-user-tag",30),n.k0s(),n.DNE(4,Ft,4,3,"ng-template",null,7,n.C5r),n.bVm()),2&t){const e=n.sdS(5),s=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTitle",e),n.R7$(2),n.Y8G("user",s.acceptanceEvent.originatingUser)}}function jt(t,a){if(1&t&&(n.EFF(0," Rejected "),n.j41(1,"span",48),n.EFF(2),n.nI1(3,"timeAgo"),n.k0s()),2&t){const e=n.XpG(3).ngIf;n.R7$(2),n.SpI(" (",n.bMT(3,1,e.rejectionEvent.createdAt),") ")}}function Mt(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions-item",29),n.EFF(2),n.nI1(3,"timeAgo"),n.nrm(4,"cvc-user-tag",30),n.k0s(),n.DNE(5,jt,4,3,"ng-template",null,8,n.C5r),n.bVm()),2&t){const e=n.sdS(6),s=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTitle",e),n.R7$(),n.SpI(" by ",n.bMT(3,3,s.rejectionEvent.createdAt)," by "),n.R7$(2),n.Y8G("user",s.rejectionEvent.originatingUser)}}function Vt(t,a){if(1&t&&(n.qex(0),n.DNE(1,Dt,6,2,"ng-container",9)(2,Mt,7,5,"ng-container",9),n.bVm()),2&t){const e=n.XpG().ngIf,s=n.XpG();n.R7$(),n.Y8G("ngIf",e.status==s.statusValues.Accepted&&e.acceptanceEvent),n.R7$(),n.Y8G("ngIf",e.status==s.statusValues.Rejected&&e.rejectionEvent)}}function Nt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-disease-tag",55),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("disease",e.disease)}}function Ot(t,a){1&t&&(n.j41(0,"span",48),n.EFF(1,"Not applicable"),n.k0s())}function Xt(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None Specified"),n.k0s(),n.bVm())}function Ut(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-phenotype-tag",57),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("phenotype",e)}}function Lt(t,a){if(1&t&&(n.qex(0),n.j41(1,"cvc-tag-list"),n.DNE(2,Ut,2,1,"ng-container",56),n.k0s(),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.Y8G("ngForOf",e.phenotypes)}}function Bt(t,a){if(1&t&&n.eu8(0,58),2&t){n.XpG(2);const e=n.sdS(3);n.Y8G("ngTemplateOutlet",e)}}function wt(t,a){if(1&t&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",59),n.bVm()),2&t){const e=a.$implicit;n.R7$(),n.Y8G("therapy",e)}}function kt(t,a){if(1&t&&(n.j41(0,"cvc-tag-list"),n.DNE(1,wt,2,1,"ng-container",56),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Y8G("ngForOf",e.therapies)}}function Jt(t,a){if(1&t&&(n.j41(0,"nz-descriptions-item",60)(1,"nz-tag"),n.nrm(2,"i",61),n.nI1(3,"therapyInteractionEnumDisplay"),n.EFF(4),n.nI1(5,"titlecase"),n.k0s()()),2&t){const e=n.XpG().ngIf;n.R7$(2),n.Y8G("nzType",n.i5U(3,2,e.therapyInteractionType,"icon-name")),n.R7$(2),n.SpI(" ",n.bMT(5,5,e.therapyInteractionType)," ")}}function Wt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function Zt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function Qt(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" (last updated ",n.bMT(2,1,e.regulatoryApprovalLastUpdated),") ")}}function Ht(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"N/A"),n.k0s(),n.bVm())}function Kt(t,a){if(1&t&&n.eu8(0,58),2&t){n.XpG(2);const e=n.sdS(3);n.Y8G("ngTemplateOutlet",e)}}function qt(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","check-circle")("nzTheme","twotone")("nzTwotoneColor","#52c41a")}function ne(t,a){1&t&&n.nrm(0,"i",62),2&t&&n.Y8G("nzType","close-square")("nzTheme","twotone")("nzTwotoneColor","#d93026")}function te(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"timeAgo"),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.SpI(" (last updated ",n.bMT(2,1,e.fdaCompanionTestLastUpdated),") ")}}function ee(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"N/A"),n.k0s(),n.bVm())}function se(t,a){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG().ngIf;n.R7$(),n.Lme("",e.nccnGuideline.name," (",e.nccnGuidelineVersion,")")}}function ie(t,a){1&t&&(n.qex(0),n.j41(1,"span",48),n.EFF(2,"None Provided"),n.k0s(),n.bVm())}function ae(t,a){if(1&t&&(n.qex(0),n.j41(1,"nz-row",10)(2,"nz-col",11)(3,"nz-row",10)(4,"nz-col",11)(5,"nz-descriptions",12)(6,"nz-descriptions-item",13)(7,"p",14),n.EFF(8),n.k0s()(),n.j41(9,"nz-descriptions-item",15)(10,"p",16),n.EFF(11),n.k0s()()()(),n.j41(12,"nz-col",11)(13,"nz-descriptions",17)(14,"nz-descriptions-item",18),n.nrm(15,"cvc-attribute-tag",19),n.nI1(16,"enumTooltip"),n.k0s(),n.j41(17,"nz-descriptions-item",20),n.nrm(18,"cvc-attribute-tag",21),n.nI1(19,"enumTooltip"),n.k0s(),n.j41(20,"nz-descriptions-item",22),n.nrm(21,"cvc-attribute-tag",21),n.nI1(22,"enumTooltip"),n.k0s(),n.j41(23,"nz-descriptions-item",23),n.nrm(24,"cvc-attribute-tag",21),n.nI1(25,"enumTooltip"),n.k0s(),n.j41(26,"nz-descriptions-item",24),n.DNE(27,vt,4,4,"ng-container",25),n.k0s(),n.j41(28,"nz-descriptions-item",26),n.DNE(29,yt,3,0,"ng-template",null,2,n.C5r)(31,At,3,2,"ng-container",25),n.k0s(),n.j41(32,"nz-descriptions-item",26),n.DNE(33,It,3,0,"ng-template",null,3,n.C5r)(35,$t,3,2,"ng-container",25),n.k0s(),n.DNE(36,St,2,0,"ng-template",null,4,n.C5r),n.k0s()()()(),n.j41(38,"nz-col",11)(39,"nz-row",10)(40,"nz-col",11)(41,"nz-descriptions",12)(42,"nz-descriptions-item",27),n.nrm(43,"cvc-status-tag",28),n.k0s(),n.j41(44,"nz-descriptions-item",29),n.EFF(45," by "),n.nrm(46,"cvc-user-tag",30),n.DNE(47,Pt,2,3,"nz-tag",31)(48,Et,1,1,"ng-template",null,5,n.C5r),n.k0s(),n.DNE(50,Yt,4,3,"ng-template",null,6,n.C5r)(52,Vt,3,2,"ng-container",9),n.k0s()(),n.j41(53,"nz-col",11)(54,"nz-descriptions",17)(55,"nz-descriptions-item",32),n.nrm(56,"cvc-molecular-profile-tag",33),n.k0s(),n.j41(57,"nz-descriptions-item",34),n.nrm(58,"cvc-mp-tag-name",35),n.k0s(),n.j41(59,"nz-descriptions-item",36),n.DNE(60,Nt,2,1,"ng-container",9)(61,Ot,2,0,"span",37),n.k0s(),n.j41(62,"nz-descriptions-item",29),n.DNE(63,Xt,3,0,"ng-container",9)(64,Lt,3,1,"ng-container",9),n.k0s(),n.j41(65,"nz-descriptions-item",29),n.qex(66,38),n.DNE(67,Bt,1,1,"ng-template",39)(68,kt,2,1,"ng-template",40),n.bVm(),n.k0s(),n.DNE(69,Jt,6,7,"nz-descriptions-item",41),n.j41(70,"nz-descriptions-item",42),n.DNE(71,Wt,1,3,"i",43)(72,Zt,1,3,"i",43)(73,Qt,3,3,"ng-container",9)(74,Ht,3,0,"ng-container",9)(75,Kt,1,1,"ng-container",44),n.k0s(),n.j41(76,"nz-descriptions-item",45),n.DNE(77,qt,1,3,"i",43)(78,ne,1,3,"i",43)(79,te,3,3,"ng-container",9)(80,ee,3,0,"ng-container",9),n.k0s(),n.j41(81,"nz-descriptions-item",46),n.DNE(82,se,2,2,"ng-container",9)(83,ie,3,0,"ng-container",9),n.k0s()()()()(),n.j41(84,"nz-col",11),n.nrm(85,"cvc-evidence-table",47),n.k0s()(),n.bVm()),2&t){const e=a.ngIf,s=n.sdS(30),o=n.sdS(34),c=n.sdS(51),d=n.XpG(),m=n.sdS(3);n.R7$(),n.Y8G("nzGutter",n.lJ4(81,dt)),n.R7$(),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(82,Y)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",1),n.R7$(3),n.JRh(e.summary),n.R7$(2),n.Y8G("nzEllipsisRows",6),n.R7$(),n.SpI(" ",e.description," "),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(83,ut)),n.R7$(2),n.Y8G("cvcAttrValue",e.assertionType)("nzTooltipTitle",n.i5U(16,65,e.assertionType,"assertionType")),n.R7$(3),n.Y8G("cvcAttrValue",e.assertionDirection)("nzTooltipTitle",n.ii3(19,68,e.assertionDirection,"assertionDirection",e.assertionType,"Assertion")),n.R7$(3),n.Y8G("cvcAttrValue",e.significance)("nzTooltipTitle",n.ii3(22,73,e.significance,"significance",e.assertionType,"Assertion")),n.R7$(3),n.Y8G("cvcAttrValue",e.variantOrigin)("nzTooltipTitle",n.i5U(25,78,e.variantOrigin,"variantOrigin")),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresAmpLevel(e.assertionType))("ngIfElse",m),n.R7$(),n.Y8G("nzSpan",2)("nzTitle",s),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresAcmgCodes(e.assertionType))("ngIfElse",m),n.R7$(),n.Y8G("nzSpan",2)("nzTitle",o),n.R7$(3),n.Y8G("ngIf",d.assertionRules.requiresClingenCodes(e.assertionType))("ngIfElse",m),n.R7$(3),n.Y8G("nzSpan",12),n.R7$(),n.Y8G("nzGutter",n.lJ4(84,Y)),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(85,ft)),n.R7$(2),n.Y8G("status",e.status),n.R7$(),n.Y8G("nzTitle",c),n.R7$(2),n.Y8G("user",e.submissionEvent.originatingUser),n.R7$(),n.Y8G("ngIf",e.submissionActivity.parsedNote.length>0),n.R7$(5),n.Y8G("ngIf",null!==e.rejectionEvent||null!==e.acceptanceEvent),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("nzColumn",n.lJ4(86,zt)),n.R7$(2),n.Y8G("molecularProfile",e.molecularProfile)("enablePopover",!0),n.R7$(2),n.Y8G("nameSegments",e.molecularProfile.parsedName),n.R7$(2),n.Y8G("ngIf",e.disease&&e.disease.name),n.R7$(),n.Y8G("ngIf",!(null!=e.disease&&e.disease.name)),n.R7$(),n.Y8G("nzTitle",e.phenotypes.length>1?"Phenotypes":"Phenotype"),n.R7$(),n.Y8G("ngIf",0===e.phenotypes.length),n.R7$(),n.Y8G("ngIf",e.phenotypes.length>0),n.R7$(),n.Y8G("nzTitle",e.therapies.length>1?"Therapies":"Therapy"),n.R7$(),n.Y8G("ngPlural",e.therapies.length),n.R7$(3),n.Y8G("ngIf",e.therapyInteractionType),n.R7$(2),n.Y8G("ngIf",!0===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",!1===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",e.regulatoryApprovalLastUpdated),n.R7$(),n.Y8G("ngIf",void 0===e.regulatoryApproval),n.R7$(),n.Y8G("ngIf",void 0===e.regulatoryApproval),n.R7$(2),n.Y8G("ngIf",!0===e.fdaCompanionTest),n.R7$(),n.Y8G("ngIf",!1===e.fdaCompanionTest),n.R7$(),n.Y8G("ngIf",e.fdaCompanionTestLastUpdated),n.R7$(),n.Y8G("ngIf",void 0===e.fdaCompanionTest),n.R7$(2),n.Y8G("ngIf",e.nccnGuideline),n.R7$(),n.Y8G("ngIf",!e.nccnGuideline),n.R7$(),n.Y8G("nzSpan",24),n.R7$(),n.Mz_("cvcTitle","",e.name," Evidence"),n.Y8G("assertionId",e.id)}}function oe(t,a){1&t&&n.nrm(0,"cvc-empty-value",63)}function re(t,a){1&t&&n.nrm(0,"cvc-empty-value",64)}let ce=(()=>{class t{constructor(e,s){var o;if(this.gql=e,this.route=s,this.assertionRules=new Kn.o,this.statusValues=p.YSN,null==(o=this.assertionId?this.assertionId:+this.route.snapshot.params.assertionId))throw new Error("Must pass in an assertion ID as an input or via the route.");this.queryRef=this.gql.watch({assertionId:o});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,z.E)("loading"),(0,x.Z)(!0)),this.assertion$=c.pipe((0,z.E)("data","assertion")),this.subscribable={entityType:p.V9U.Assertion,id:o}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(p.fqJ),n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertion-summary"]],inputs:{assertionId:"assertionId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["acmgTitle",""],["clingenTitle",""],["notApplicable",""],["submissionCommentTemplate",""],["submittedTitle",""],["acceptedTitle",""],["rejectedTitle",""],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Summary"],["nz-typography",""],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",1,"summary-block",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["cvcAttrName","assertionType","nz-tooltip","","iconPropertyType","type",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Direction"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Significance"],["nzTitle","Variant Origin"],["nzTitle","AMP/ASCO/CAP Category"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Status"],[3,"status"],[3,"nzTitle"],[3,"user"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["nzTitle","Molecular Profile Name"],[3,"molecularProfile","enablePopover"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Disease"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["nzTitle","Therapy Interaction Type",4,"ngIf"],["nzTitle","Regulatory Approval","nzSpan","1"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor",4,"ngIf"],[3,"ngTemplateOutlet",4,"ngIf"],["nzTitle","FDA Companion Test","nzSpan","1"],["nzTitle","NCCN Guideline"],[3,"assertionId","cvcTitle"],["nz-typography","","nzType","secondary"],["nz-icon","","nzType","info-circle","nz-tooltip","","nzTooltipTitle","All codes are reviewed during acceptance. Absence of a code implies it is not met."],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],["nz-icon","","nzType","align-left"],[3,"commentBodySegments"],[3,"disease"],[4,"ngFor","ngForOf"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["nz-icon","",1,"attribute-icon",3,"nzType"],["nz-icon","",3,"nzType","nzTheme","nzTwotoneColor"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(s,o){1&s&&(n.DNE(0,ae,86,87,"ng-container",9),n.nI1(1,"ngrxPush"),n.DNE(2,oe,1,0,"ng-template",null,0,n.C5r)(4,re,1,0,"ng-template",null,1,n.C5r)),2&s&&n.Y8G("ngIf",n.bMT(1,1,o.assertion$))},dependencies:[r.Sq,r.bT,r.T3,r.IJ,r.WO,g.Uq,g.e,h.Di,C.c,T.s,v.Dn,G.xA,G.gr,S.LH,E.L_,qn.o,nt.g,tt.r,et.M,st.R,it.N,at.Y,ot.A,rt.y,R.z,ct.G,lt.p,r.PV,b.L9,pt.E,gt.H,mt.k,_t.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}.summary-block[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}"]})}return t})();var le=i(9543);let pe=(()=>{class t{constructor(e){this.route=e,this.subscribable={id:+this.route.snapshot.params.assertionId,entityType:p.V9U.Assertion}}static#n=this.\u0275fac=function(s){return new(s||t)(n.rXU(l.nX))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-assertions-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(s,o){1&s&&n.nrm(0,"cvc-event-feed",0),2&s&&n.Y8G("subscribable",o.subscribable)},dependencies:[le.e],styles:["[_nghost-%COMP%]{display:block}"]})}return t})();var ge=i(326);let me=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,ge.p]})}return t})();const _e=[{path:"",component:An,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:ce,data:{breadcrumb:"Summary"}},{path:"events",component:pe,data:{breadcrumb:"Events"}},{path:"comments",component:$n,data:{breadcrumb:"Comments"}},{path:"revisions",component:Nn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Dn,data:{breadcrumb:"Flags"}}]}];let de=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[l.iI.forChild(_e),Hn,xn,Mn,Yn,me,l.iI]})}return t})(),ue=(()=>{class t{static#n=this.\u0275fac=function(s){return new(s||t)};static#t=this.\u0275mod=n.$C({type:t});static#e=this.\u0275inj=n.G2t({imports:[r.MD,de,l.iI,u.pc,h.kT,f.ZJ,y.Zw,T.T,v.Y3,I.$,g.f3,$.i,F.C,D.Y,j.V,M.W,V.U,N.W,O.m,P.o]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/4712.87afb00358a3ec56.js b/server/public/4712.87afb00358a3ec56.js deleted file mode 100644 index f20556cae..000000000 --- a/server/public/4712.87afb00358a3ec56.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[4712],{4712:(S,A,e)=>{e.r(A),e.d(A,{CurationActivityModule:()=>tt});var h=e(177),t=e(1188),P=e(9145),n=e(3953),T=e(9543);const z=[{path:"",redirectTo:"curation-timeline",pathMatch:"full"},{path:"curation-timeline",component:(()=>{class l{constructor(){this.feedMode=P.Qt1.Unscoped}ngOnInit(){}static#t=this.\u0275fac=function(d){return new(d||l)};static#n=this.\u0275cmp=n.VBU({type:l,selectors:[["cvc-curation-activity-timeline"]],decls:1,vars:4,consts:[[3,"showFilters","mode","pageSize","includeAutomatedEvents"]],template:function(d,nt){1&d&&n.nrm(0,"cvc-event-feed",0),2&d&&n.Y8G("showFilters",!0)("mode",nt.feedMode)("pageSize",17)("includeAutomatedEvents",!1)},dependencies:[T.e],encapsulation:2})}return l})(),data:{breadcrumb:"Timeline"}}];let p=(()=>{class l{static#t=this.\u0275fac=function(d){return new(d||l)};static#n=this.\u0275mod=n.$C({type:l});static#e=this.\u0275inj=n.G2t({imports:[t.iI.forChild(z),t.iI]})}return l})();var C=e(4124),E=e(3062),y=e(1532),g=e(5103),u=e(7529),f=e(5703),N=e(326),U=e(8927),R=e(9417),I=e(7481),F=e(1997),O=e(2172),_=e(513),v=e(4917),D=e(7685),c=e(2968),a=e(9438),s=e(1672),o=e(2983),i=e(3146),r=e(5154),m=e(7120),G=e(2839),L=e(1862),x=e(6936),$=e(7051),W=e(8134),K=e(1209),V=e(996),X=e(4415),j=e(4696),Q=e(7169),Y=e(9448);let H=(()=>{class l{static#t=this.\u0275fac=function(d){return new(d||l)};static#n=this.\u0275mod=n.$C({type:l});static#e=this.\u0275inj=n.G2t({imports:[h.MD,f.Ti,Y.g,Q.W]})}return l})(),Z=(()=>{class l{static#t=this.\u0275fac=function(d){return new(d||l)};static#n=this.\u0275mod=n.$C({type:l});static#e=this.\u0275inj=n.G2t({imports:[h.MD,f.Ti,_.Zw,g.Y3]})}return l})();var w=e(6912),k=e(7086);let J=(()=>{class l{static#t=this.\u0275fac=function(d){return new(d||l)};static#n=this.\u0275mod=n.$C({type:l});static#e=this.\u0275inj=n.G2t({imports:[h.MD,R.YN,_.Zw,f.Ti,g.Y3,U.PQ,F.DH,I.$,u.f3,D.pc,s._v,a.Yb,o.V,i.W2,r.Qt,m.ki,j.GB,O.a,v.i,c.K,v.i,G.m,w.l,L.e,x.G,$.U,W.l,K.k,V.o,X.O,H,Z,k.C]})}return l})(),b=(()=>{class l{static#t=this.\u0275fac=function(d){return new(d||l)};static#n=this.\u0275mod=n.$C({type:l});static#e=this.\u0275inj=n.G2t({imports:[h.MD,u.f3,f.Ti,N.p,J]})}return l})();var q=e(7391);let tt=(()=>{class l{static#t=this.\u0275fac=function(d){return new(d||l)};static#n=this.\u0275mod=n.$C({type:l});static#e=this.\u0275inj=n.G2t({imports:[h.MD,p,b,E.ZJ,g.Y3,D.pc,q.kT,u.f3,v.i,C.C,y.W]})}return l})()},4696:(S,A,e)=>{e.d(A,{GB:()=>c,Vz:()=>D,pc:()=>_});var h=e(4707),t=e(3953),P=e(3726),n=e(6977),T=e(5964),B=e(713),z=e(6042),p=e(7806),C=e(1025),E=e(5103),y=e(8203),g=e(6841);const u=["*"],f=["collapseHeader"];function N(a,s){if(1&a&&(t.qex(0),t.nrm(1,"span",7),t.bVm()),2&a){const o=s.$implicit,i=t.XpG(2);t.R7$(),t.Y8G("nzType",o||"right")("nzRotate",i.nzActive?90:0)}}function U(a,s){if(1&a&&(t.j41(0,"div"),t.DNE(1,N,2,2,"ng-container",3),t.k0s()),2&a){const o=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",o.nzExpandedIcon)}}function R(a,s){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const o=t.XpG();t.R7$(),t.JRh(o.nzHeader)}}function I(a,s){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const o=t.XpG(2);t.R7$(),t.JRh(o.nzExtra)}}function F(a,s){if(1&a&&(t.j41(0,"div",4),t.DNE(1,I,2,1,"ng-container",3),t.k0s()),2&a){const o=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",o.nzExtra)}}const O="collapse";let _=(()=>{class a{constructor(o,i,r,m){this.nzConfigService=o,this.cdr=i,this.directionality=r,this.destroy$=m,this._nzModuleName=O,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="start",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.nzConfigService.getConfigChangeEventForComponent(O).pipe((0,n.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,n.Q)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(o){this.listOfNzCollapsePanelComponent.push(o)}removePanel(o){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(o),1)}click(o){this.nzAccordion&&!o.nzActive&&this.listOfNzCollapsePanelComponent.filter(i=>i!==o).forEach(i=>{i.nzActive&&(i.nzActive=!1,i.nzActiveChange.emit(i.nzActive),i.markForCheck())}),o.nzActive=!o.nzActive,o.nzActiveChange.emit(o.nzActive)}static#t=this.\u0275fac=function(i){return new(i||a)(t.rXU(z.yx),t.rXU(t.gRc),t.rXU(y.dS,8),t.rXU(C.y4))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(i,r){2&i&&t.AVh("ant-collapse-icon-position-start","start"===r.nzExpandIconPosition)("ant-collapse-icon-position-end","end"===r.nzExpandIconPosition)("ant-collapse-ghost",r.nzGhost)("ant-collapse-borderless",!r.nzBordered)("ant-collapse-rtl","rtl"===r.dir)},inputs:{nzAccordion:[2,"nzAccordion","nzAccordion",t.L39],nzBordered:[2,"nzBordered","nzBordered",t.L39],nzGhost:[2,"nzGhost","nzGhost",t.L39],nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],standalone:!0,features:[t.Jv_([C.y4]),t.GFd,t.aNF],ngContentSelectors:u,decls:1,vars:0,template:function(i,r){1&i&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return(0,h.Cg)([(0,z.H4)()],a.prototype,"nzAccordion",void 0),(0,h.Cg)([(0,z.H4)()],a.prototype,"nzBordered",void 0),(0,h.Cg)([(0,z.H4)()],a.prototype,"nzGhost",void 0),a})();const v="collapsePanel";let D=(()=>{class a{markForCheck(){this.cdr.markForCheck()}constructor(o,i,r,m,G,L){this.nzConfigService=o,this.ngZone=i,this.cdr=r,this.destroy$=m,this.nzCollapseComponent=G,this.noAnimation=L,this._nzModuleName=v,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new t.bkB,this.nzConfigService.getConfigChangeEventForComponent(v).pipe((0,n.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.nzCollapseComponent.addPanel(this),this.ngZone.runOutsideAngular(()=>(0,P.R)(this.collapseHeader.nativeElement,"click").pipe((0,T.p)(()=>!this.nzDisabled),(0,n.Q)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.nzCollapseComponent.click(this),this.cdr.markForCheck()})}))}ngOnDestroy(){this.nzCollapseComponent.removePanel(this)}static#t=this.\u0275fac=function(i){return new(i||a)(t.rXU(z.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(C.y4),t.rXU(_,1),t.rXU(g.z,8))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["nz-collapse-panel"]],viewQuery:function(i,r){if(1&i&&t.GBs(f,7),2&i){let m;t.mGM(m=t.lsd())&&(r.collapseHeader=m.first)}},hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(i,r){2&i&&t.AVh("ant-collapse-no-arrow",!r.nzShowArrow)("ant-collapse-item-active",r.nzActive)("ant-collapse-item-disabled",r.nzDisabled)},inputs:{nzActive:[2,"nzActive","nzActive",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzShowArrow:[2,"nzShowArrow","nzShowArrow",t.L39],nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],standalone:!0,features:[t.Jv_([C.y4]),t.GFd,t.aNF],ngContentSelectors:u,decls:9,vars:8,consts:[["collapseHeader",""],["role","button",1,"ant-collapse-header"],[1,"ant-collapse-header-text"],[4,"nzStringTemplateOutlet"],[1,"ant-collapse-extra"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"]],template:function(i,r){1&i&&(t.NAR(),t.j41(0,"div",1,0),t.DNE(2,U,2,1,"div"),t.j41(3,"span",2),t.DNE(4,R,2,1,"ng-container",3),t.k0s(),t.DNE(5,F,2,1,"div",4),t.k0s(),t.j41(6,"div",5)(7,"div",6),t.SdG(8),t.k0s()()),2&i&&(t.BMQ("aria-expanded",r.nzActive),t.R7$(2),t.vxM(r.nzShowArrow?2:-1),t.R7$(2),t.Y8G("nzStringTemplateOutlet",r.nzHeader),t.R7$(),t.vxM(r.nzExtra?5:-1),t.R7$(),t.AVh("ant-collapse-content-active",r.nzActive),t.Y8G("@.disabled",!(null==r.noAnimation||!r.noAnimation.nzNoAnimation))("@collapseMotion",r.nzActive?"expanded":"hidden"))},dependencies:[p.C,p.m,E.Y3,E.Dn],encapsulation:2,data:{animation:[B.GE]},changeDetection:0})}return(0,h.Cg)([(0,z.H4)()],a.prototype,"nzShowArrow",void 0),a})(),c=(()=>{class a{static#t=this.\u0275fac=function(i){return new(i||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[D]})}return a})()},7481:(S,A,e)=>{e.d(A,{$:()=>D,u:()=>v});var h=e(4707),t=e(7336),P=e(177),n=e(3953),T=e(9417),B=e(1413),z=e(3726),p=e(6977),C=e(6042),E=e(7806),y=e(5930),g=e(5103),u=e(851),f=e(8203);const N=["switchElement"];function U(c,a){1&c&&n.nrm(0,"span",8)}function R(c,a){if(1&c&&(n.qex(0),n.EFF(1),n.bVm()),2&c){const s=n.XpG(2);n.R7$(),n.JRh(s.nzCheckedChildren)}}function I(c,a){if(1&c&&(n.qex(0),n.DNE(1,R,2,1,"ng-container",9),n.bVm()),2&c){const s=n.XpG();n.R7$(),n.Y8G("nzStringTemplateOutlet",s.nzCheckedChildren)}}function F(c,a){if(1&c&&(n.qex(0),n.EFF(1),n.bVm()),2&c){const s=n.XpG(2);n.R7$(),n.JRh(s.nzUnCheckedChildren)}}function O(c,a){if(1&c&&n.DNE(0,F,2,1,"ng-container",9),2&c){const s=n.XpG();n.Y8G("nzStringTemplateOutlet",s.nzUnCheckedChildren)}}let v=(()=>{class c{updateValue(s){this.isChecked!==s&&(this.isChecked=s,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(s,o,i,r,m,G){this.nzConfigService=s,this.host=o,this.ngZone=i,this.cdr=r,this.focusMonitor=m,this.directionality=G,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new B.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,p.Q)(this.destroy$)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,z.R)(this.host.nativeElement,"click").pipe((0,p.Q)(this.destroy$)).subscribe(s=>{s.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,z.R)(this.switchElement.nativeElement,"keydown").pipe((0,p.Q)(this.destroy$)).subscribe(s=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:o}=s;o!==t.UQ&&o!==t.LE&&o!==t.t6&&o!==t.Fm||(s.preventDefault(),this.ngZone.run(()=>{o===t.UQ?this.updateValue(!1):o===t.LE?this.updateValue(!0):(o===t.t6||o===t.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,p.Q)(this.destroy$)).subscribe(s=>{s||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(s){this.isChecked=s,this.cdr.markForCheck()}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||s,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(o){return new(o||c)(n.rXU(C.yx),n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(n.gRc),n.rXU(u.FN),n.rXU(f.dS,8))};static#n=this.\u0275cmp=n.VBU({type:c,selectors:[["nz-switch"]],viewQuery:function(o,i){if(1&o&&n.GBs(N,7),2&o){let r;n.mGM(r=n.lsd())&&(i.switchElement=r.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",n.L39],nzDisabled:[2,"nzDisabled","nzDisabled",n.L39],nzControl:[2,"nzControl","nzControl",n.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[n.Jv_([{provide:T.kq,useExisting:(0,n.Rfq)(()=>c),multi:!0}]),n.GFd,n.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(o,i){if(1&o&&(n.j41(0,"button",2,0)(2,"span",3),n.DNE(3,U,1,0,"span",4),n.k0s(),n.j41(4,"span",5),n.DNE(5,I,2,1,"ng-container",6)(6,O,1,1,"ng-template",null,1,n.C5r),n.k0s(),n.nrm(8,"div",7),n.k0s()),2&o){const r=n.sdS(7);n.AVh("ant-switch-checked",i.isChecked)("ant-switch-loading",i.nzLoading)("ant-switch-disabled",i.nzDisabled)("ant-switch-small","small"===i.nzSize)("ant-switch-rtl","rtl"===i.dir),n.Y8G("disabled",i.nzDisabled)("nzWaveExtraNode",!0),n.BMQ("id",i.nzId),n.R7$(3),n.Y8G("ngIf",i.nzLoading),n.R7$(2),n.Y8G("ngIf",i.isChecked)("ngIfElse",r)}},dependencies:[y.o7,y.p,g.Y3,g.Dn,P.bT,E.C,E.m],encapsulation:2,changeDetection:0})}return(0,h.Cg)([(0,C.H4)()],c.prototype,"nzSize",void 0),c})(),D=(()=>{class c{static#t=this.\u0275fac=function(o){return new(o||c)};static#n=this.\u0275mod=n.$C({type:c});static#e=this.\u0275inj=n.G2t({imports:[v]})}return c})()}}]); \ No newline at end of file diff --git a/server/public/5179.0550196ba2229852.js b/server/public/5179.0550196ba2229852.js new file mode 100644 index 000000000..7ac281d95 --- /dev/null +++ b/server/public/5179.0550196ba2229852.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5179],{1532:(b,f,a)=>{a.d(f,{W:()=>l});var s=a(177),u=a(9541),e=a(7529),h=a(1188),v=a(5103),y=a(3146),_=a(3953);let l=(()=>{class r{static#e=this.\u0275fac=function(c){return new(c||r)};static#t=this.\u0275mod=_.$C({type:r});static#n=this.\u0275inj=_.G2t({imports:[s.MD,h.iI,u.hM,e.f3,v.Y3,y.W2]})}return r})()},8269:(b,f,a)=>{a.d(f,{G:()=>s,S:()=>u});const s={molecularProfileId:void 0,acmgCodeIds:[],ampLevel:void 0,assertionDirection:void 0,assertionType:void 0,clingenCodeIds:[],significance:void 0,description:void 0,diseaseId:void 0,therapyIds:[],therapyInteractionType:void 0,evidenceItemIds:[],fdaCompanionTest:void 0,fdaRegulatoryApproval:void 0,nccnGuidelineId:void 0,nccnGuidelineVersion:void 0,phenotypeIds:[],summary:void 0,variantOrigin:void 0},u={clientMutationId:void 0,fields:s,comment:void 0,organizationId:void 0}},7593:(b,f,a)=>{a.d(f,{o:()=>y});var s=a(9145),u=a(9894),e=a(4412),h=a(8269),v=a(5183);class y extends v.zn{constructor(){super(v.$L.ASSERTION);const l=h.G;this.fields={molecularProfileId$:new e.t(l.molecularProfileId),variantMolecularProfile$:new e.t(void 0),geneId$:new e.t(void 0),variantId$:new e.t(void 0),variantOrigin$:new e.t(l.variantOrigin),assertionType$:new e.t(l.assertionType),assertionDirection$:new e.t(l.assertionDirection),evidenceItemIds$:new e.t(l.evidenceItemIds),significance$:new e.t(l.significance),diseaseId$:new e.t(l.diseaseId),therapyIds$:new e.t(l.therapyIds),therapyInteractionType$:new e.t(l.therapyInteractionType),phenotypeIds$:new e.t(l.phenotypeIds),nccnGuidelineId$:new e.t(l.nccnGuidelineId),fdaRegulatoryApproval$:new e.t(l.fdaRegulatoryApproval),fdaCompanionTest$:new e.t(l.fdaCompanionTest),ampLevel$:new e.t(l.ampLevel),acmgCodeIds$:new e.t(l.acmgCodeIds),clingenCodeIds$:new e.t(l.clingenCodeIds),nccnGuidelineVersion$:new e.t(l.nccnGuidelineVersion),description$:new e.t(void 0),comment$:new e.t(void 0)},this.enums={entityType$:new e.t(this.getTypeOptions()),significance$:new e.t([]),direction$:new e.t([]),interaction$:new e.t(this.getInteractionOptions())},this.options={assertionTypeOption$:new e.t(this.getOptionsFromEnums(this.getTypeOptions())),directionOption$:new e.t(void 0),significanceOption$:new e.t(void 0)},this.requires={requiresDisease$:new e.t(!1),requiresTherapy$:new e.t(!1),requiresTherapyInteractionType$:new e.t(!1),requiresClingenCodes$:new e.t(!1),requiresAcmgCodes$:new e.t(!1),requiresAmpLevel$:new e.t(!1),allowsFdaApproval$:new e.t(!1)},this.fields.assertionType$.pipe((0,u.s)(this,"onDestroy")).subscribe(r=>{if(!r)return Object.entries(this.requires).forEach(([d,p])=>{p.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(r)),this.enums.direction$.next(this.getDirectionOptions(r)),this.requires.requiresDisease$.next(this.requiresDisease(r)),this.requires.requiresTherapy$.next(this.requiresTherapy(r)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(r)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(r)),this.requires.requiresAmpLevel$.next(this.requiresAmpLevel(r)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(r))}),this.fields.therapyIds$.pipe((0,u.s)(this,"onDestroy")).subscribe(r=>{this.requires.requiresTherapyInteractionType$.next(null!=r&&r.length>1)}),this.validStates.set(s.XEW.Predictive,{entityType:s.XEW.Predictive,significance:[s.YW4.Sensitivityresponse,s.YW4.Resistance,s.YW4.AdverseResponse,s.YW4.ReducedSensitivity,s.YW4.Na],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(s.XEW.Diagnostic,{entityType:s.XEW.Diagnostic,significance:[s.YW4.Positive,s.YW4.Negative],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Prognostic,{entityType:s.XEW.Prognostic,significance:[s.YW4.BetterOutcome,s.YW4.PoorOutcome,s.YW4.Na],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Predisposing,{entityType:s.XEW.Predisposing,significance:[s.YW4.Pathogenic,s.YW4.LikelyPathogenic,s.YW4.Benign,s.YW4.LikelyBenign,s.YW4.UncertainSignificance],entityDirection:[s.w7w.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Oncogenic,{entityType:s.XEW.Oncogenic,significance:[s.YW4.Oncogenic,s.YW4.LikelyOncogenic,s.YW4.Benign,s.YW4.LikelyBenign,s.YW4.UncertainSignificance],entityDirection:[s.w7w.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},6126:(b,f,a)=>{a.r(f),a.d(f,{TestPagesModule:()=>Je});var s=a(177),u=a(1188),e=a(3953),h=a(5847);let v=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(n,o){1&n&&e.nrm(0,"cvc-assertion-revise-form",0),2&n&&e.Y8G("assertionId",3)},dependencies:[h.Z],encapsulation:2,changeDetection:0})}return t})();var y=a(3988);let _=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-assertion-submit-test-page"]],decls:1,vars:0,template:function(n,o){1&n&&e.nrm(0,"cvc-assertion-submit-form")},dependencies:[y.d],encapsulation:2,changeDetection:0})}return t})();var l=a(6905);let r=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-evidence-revise-test-page"]],decls:1,vars:1,consts:[[3,"evidenceId"]],template:function(n,o){1&n&&e.nrm(0,"cvc-evidence-revise-form",0),2&n&&e.Y8G("evidenceId",7606)},dependencies:[l._],encapsulation:2,changeDetection:0})}return t})();var d=a(4594);let p=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:0,template:function(n,o){1&n&&e.nrm(0,"cvc-evidence-submit-form")},dependencies:[d.e],encapsulation:2,changeDetection:0})}return t})();var c=a(9417);const z={geneId:void 0},M=[{key:"molecularProfileId",type:"molecular-profile-select",props:{}},{key:"molecularProfileIds",type:"molecular-profile-multi-select",props:{}},{key:"evidenceType",type:"type-select",props:{}},{key:"evidenceTypes",type:"type-multi-select",props:{}},{key:"featureId",type:"feature-select"},{key:"featureIds",type:"feature-multi-select",props:{}},{key:"variantId",type:"variant-select",props:{requireFeature:!1}},{key:"variantIds",type:"variant-multi-select",props:{requireFeature:!1}},{key:"sourceId",type:"source-select",props:{}},{key:"sourceIds",type:"source-multi-select",props:{}},{key:"diseaseId",type:"disease-select",props:{}},{key:"diseaseIds",type:"disease-multi-select",props:{}},{key:"drugId",type:"therapy-select",props:{}},{key:"drugIds",type:"therapy-multi-select",props:{}},{key:"evidenceLevel",type:"level-select",props:{}},{key:"evidenceLevel",type:"level-multi-select",props:{}},{key:"variantOrigin",type:"origin-select",props:{}},{key:"variantOrigins",type:"origin-multi-select",props:{}},{key:"tag",type:"tag-input",props:{label:"Input Test"}},{key:"tags",type:"tag-multi-input",props:{label:"Input Multi Test"}}];var O=a(8524),$=a(8927);let S=(()=>{class t{constructor(){this.form=new c.J3({}),this.model=z,this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Horizontal Field Layout, No State"}},fieldGroup:M}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-horizontal-form"]],decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(n,o){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(P){return o.model=P}),e.k0s()()),2&n&&(e.Y8G("formGroup",o.form),e.R7$(),e.Y8G("form",o.form)("fields",o.fields)("model",o.model)("options",o.options))},dependencies:[c.qT,c.cb,c.j4,O.aF,$.CA],encapsulation:2,changeDetection:0})}return t})();var L=a(1635),j=a(9894),Y=a(4412),A=a(5964),k=a(6354),N=a(9199),V=a(4608),W=a(7432),B=a(9145),w=a(1774),D=a(5703),T=a(9247),U=a(2688);const X=()=>[];function H(t,m){if(1&t){const i=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td"),e.j41(6,"td"),e.nrm(7,"cvc-entity-tag",12),e.k0s(),e.j41(8,"td")(9,"cvc-entity-tag",13),e.bIt("cvcTagCheckedChange",function(o){e.eBV(i);const g=e.XpG(3);return e.Njj(g.tagChecked(o))}),e.k0s()(),e.nrm(10,"td")(11,"td")(12,"td"),e.k0s()}if(2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(3),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function J(t,m){if(1&t){const i=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td"),e.j41(6,"td"),e.nrm(7,"cvc-entity-tag",12),e.k0s(),e.j41(8,"td")(9,"cvc-entity-tag",13),e.bIt("cvcTagCheckedChange",function(o){e.eBV(i);const g=e.XpG(3);return e.Njj(g.tagChecked(o))}),e.k0s()(),e.nrm(10,"td")(11,"td")(12,"td"),e.k0s()}if(2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(3),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function K(t,m){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function q(t,m){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function Z(t,m){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function Q(t,m){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ee(t,m){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function te(t,m){if(1&t&&(e.qex(0)(1,9),e.DNE(2,H,13,7,"tr",10)(3,J,13,7,"tr",10)(4,K,11,3,"tr",10)(5,q,11,3,"tr",10)(6,Z,11,3,"tr",10)(7,Q,11,3,"tr",10)(8,ee,10,3,"tr",11),e.bVm()()),2&t){const i=m.$implicit;e.R7$(),e.Y8G("ngSwitch",i.__typename),e.R7$(),e.Y8G("ngSwitchCase","EvidenceItem"),e.R7$(),e.Y8G("ngSwitchCase","MolecularProfile"),e.R7$(),e.Y8G("ngSwitchCase","Gene"),e.R7$(),e.Y8G("ngSwitchCase","Variant"),e.R7$(),e.Y8G("ngSwitchCase","Therapy"),e.R7$(),e.Y8G("ngSwitchCase","Disease")}}function ne(t,m){if(1&t&&(e.qex(0),e.DNE(1,te,9,7,"ng-container",7),e.j41(2,"tr")(3,"td"),e.EFF(4,"CACHE MISS"),e.k0s(),e.j41(5,"td"),e.nrm(6,"cvc-entity-tag",8),e.k0s(),e.nrm(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),e.k0s(),e.bVm()),2&t){const i=m.ngrxLet;e.XpG();const n=e.sdS(2);e.R7$(),e.Y8G("ngForOf",n.data),e.R7$(5),e.Y8G("cvcCacheId","FakeTypename:42")("cvcEmphasize",i)}}function ie(t,m){if(1&t){const i=e.RV6();e.EFF(0," Emphasize: "),e.j41(1,"input",14,2),e.nI1(3,"ngrxPush"),e.bIt("ngModelChange",function(){e.eBV(i);const o=e.sdS(2),g=e.XpG();return e.Njj(g.emphasizeStr$.next(o.value))}),e.k0s()}if(2&t){const i=e.XpG();e.R7$(),e.Y8G("ngModel",e.bMT(3,1,i.emphasizeStr$))}}let F=class R{constructor(m){this.entityTagsTestGQL=m,this.emphasizeStr$=new Y.t(""),this.queryParams={molecularProfileId:3133,geneId:5,variantId:2,therapyId:16,diseaseId:2198,eid:123},this.entityTagsData$=this.entityTagsTestGQL.fetch(this.queryParams).pipe((0,V.E)("data"),(0,A.p)(N.kP),(0,W.T)("entityTagsData$"),(0,k.T)(i=>{console.log(i);const n=Object.values(i).filter(o=>"object"==typeof o);return console.log(n),n}))}tagChecked(m){console.log(`Tag checked: ${m}`)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||R)(e.rXU(B.RA2))};static#t=this.\u0275cmp=e.VBU({type:R,selectors:[["cvc-nonstate-form"]],decls:26,vars:6,consts:[["tagTable",""],["cardExtra",""],["emphasizeInput",""],["nzTitle","Entity Tags & Features"],["nzSize","small",3,"nzShowPagination","nzData"],["nzWidth","150px"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcCacheId","cvcEmphasize"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["cvcMode","closeable",3,"cvcCacheId","cvcEmphasize"],["cvcMode","checkable",3,"cvcTagCheckedChange","cvcCacheId","cvcEmphasize"],["nz-input","","nzSize","small","type","text",3,"ngModelChange","ngModel"]],template:function(i,n){1&i&&(e.j41(0,"nz-card",3)(1,"nz-table",4,0),e.nI1(3,"ngrxPush"),e.j41(4,"thead")(5,"tr")(6,"th",5),e.EFF(7,"Entity"),e.k0s(),e.j41(8,"th"),e.EFF(9,"Default"),e.k0s(),e.j41(10,"th"),e.EFF(11,"Popover"),e.k0s(),e.j41(12,"th"),e.EFF(13,"Closeable"),e.k0s(),e.j41(14,"th"),e.EFF(15,"Checkable"),e.k0s(),e.j41(16,"th"),e.EFF(17,"Truncate"),e.k0s(),e.j41(18,"th"),e.EFF(19,"Group"),e.k0s(),e.j41(20,"th"),e.EFF(21,"Unlinked"),e.k0s()()(),e.j41(22,"tbody"),e.DNE(23,ne,13,3,"ng-container",6),e.k0s()()(),e.DNE(24,ie,4,3,"ng-template",null,1,e.C5r)),2&i&&(e.R7$(),e.Y8G("nzShowPagination",!1)("nzData",e.bMT(3,3,n.entityTagsData$)||e.lJ4(5,X)),e.R7$(22),e.Y8G("ngrxLet",n.emphasizeStr$))},dependencies:[s.Sq,s.ux,s.e1,s.fG,w.Nj,c.me,c.BC,c.vS,D.cK,T.CP,T.SO,T._4,T.IL,T.aj,T.kt,U.b,w.L9],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0})};F=(0,L.Cg)([(0,j.d)()],F);let ae=(()=>{class t{constructor(){this.form=new c.J3({}),this.model=z,this.formLayout="inline",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Inline Field Layout, No State"},fieldGroup:M}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-inline-form"]],decls:2,vars:5,consts:[["nz-form","","nzLayout","inline",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(n,o){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(P){return o.model=P}),e.k0s()()),2&n&&(e.Y8G("formGroup",o.form),e.R7$(),e.Y8G("form",o.form)("fields",o.fields)("model",o.model)("options",o.options))},dependencies:[c.qT,c.cb,c.j4,O.aF,$.CA],encapsulation:2,changeDetection:0})}return t})(),se=(()=>{class t{constructor(){this.form=new c.J3({}),this.model=z,this.formLayout="vertical",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Vertical Field Layout, No State"}},fieldGroup:M}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-vertical-form"]],decls:2,vars:4,consts:[["nz-form","","nzLayout","vertical",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model"]],template:function(n,o){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(P){return o.model=P}),e.k0s()()),2&n&&(e.Y8G("formGroup",o.form),e.R7$(),e.Y8G("form",o.form)("fields",o.fields)("model",o.model))},dependencies:[c.qT,c.cb,c.j4,O.aF,$.CA],encapsulation:2,changeDetection:0})}return t})();var I=a(3062),G=a(7529),x=a(5103),C=a(9541),re=a(9765);function oe(t,m){if(1&t&&(e.j41(0,"a",9),e.nrm(1,"span",10),e.EFF(2),e.k0s()),2&t){const i=e.XpG().$implicit;e.Y8G("routerLink",i.routeName),e.R7$(),e.Y8G("nzType",i.iconName),e.R7$(),e.SpI(" ",i.tabLabel," ")}}function ce(t,m){1&t&&(e.j41(0,"nz-tab"),e.DNE(1,oe,3,3,"a",8),e.k0s())}let le=(()=>{class t{constructor(i){this.router=i,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url),this.tabs=[{routeName:"evidence-submit-test",iconName:"civic-evidence",tabLabel:"Submit"},{routeName:"evidence-revise-test",iconName:"civic-evidence",tabLabel:"Revise"},{routeName:"assertion-submit-test",iconName:"civic-assertion",tabLabel:"Submit"},{routeName:"assertion-revise-test",iconName:"civic-assertion",tabLabel:"Revise"},{routeName:"variantgroup-revise-test",iconName:"civic-variantgroup",tabLabel:"Revise"},{routeName:"gene-revise-test",iconName:"civic-feature",tabLabel:"Revise"},{routeName:"mp-revise-test",iconName:"civic-molecularprofile",tabLabel:"Revise"},{routeName:"variant-submit-test",iconName:"civic-variant",tabLabel:"Submit"},{routeName:"variant-revise-test",iconName:"civic-variant",tabLabel:"Revise"},{routeName:"vertical-form",iconName:"layout",tabLabel:"Vertical"},{routeName:"inline-form",iconName:"layout",tabLabel:"Inline"},{routeName:"horizontal-form",iconName:"layout",tabLabel:"Horizontal"},{routeName:"tags-test",iconName:"tag",tabLabel:"Tags"}]}getActivatedRouteIndex(i){return this.tabs?.findIndex(n=>i.includes(n.routeName))}static#e=this.\u0275fac=function(n){return new(n||t)(e.rXU(u.Ix))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-test-pages"]],decls:15,vars:4,consts:[[1,"site-page-header"],["cvcFlaggableOptions",""],[3,"nzSpan"],["id","section-tabs"],["nzSpan","24"],["nzLinkRouter","","nzType","card","nzSize","small",3,"nzSelectedIndex"],[4,"ngFor","ngForOf"],[1,"content"],["nz-tab-link","",3,"routerLink",4,"nzTabLink"],["nz-tab-link","",3,"routerLink"],["nz-icon","",3,"nzType"]],template:function(n,o){if(1&n&&(e.nrm(0,"cvc-section-navigation"),e.j41(1,"nz-page-header",0)(2,"nz-page-header-title",1),e.EFF(3," Form Dev Pages "),e.k0s(),e.j41(4,"nz-page-header-content")(5,"nz-row")(6,"nz-col",2)(7,"nz-row",3)(8,"nz-col",4)(9,"nz-tabset",5),e.DNE(10,ce,2,0,"nz-tab",6),e.k0s()()()()(),e.j41(11,"nz-row")(12,"nz-col",2)(13,"div",7),e.nrm(14,"router-outlet"),e.k0s()()()()()),2&n){let g;e.R7$(6),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("nzSelectedIndex",null!==(g=o.selectedTabIndex)&&void 0!==g?g:null),e.R7$(),e.Y8G("ngForOf",o.tabs),e.R7$(2),e.Y8G("nzSpan",24)}},dependencies:[s.Sq,u.n3,u.Wk,I.WB,I.k9,I.zR,G.Uq,G.e,x.Dn,C.JZ,C.rE,C.v3,C.rM,re.n],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"],changeDetection:0})}return t})();var de=a(7526);let pe=(()=>{class t{constructor(i){this.cdr=i}static#e=this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variantgroup-revise-test-page"]],decls:1,vars:1,consts:[[3,"variantGroupId"]],template:function(n,o){1&n&&e.nrm(0,"cvc-variantgroup-revise-form",0),2&n&&e.Y8G("variantGroupId",24)},dependencies:[de.T],encapsulation:2})}return t})();var me=a(958);let ue=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-gene-form"]],decls:1,vars:1,consts:[[3,"featureId"]],template:function(n,o){1&n&&e.nrm(0,"cvc-gene-revise-form",0),2&n&&e.Y8G("featureId",6)},dependencies:[me.m],encapsulation:2,changeDetection:0})}return t})();var ge=a(4514);let fe=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-mp-form"]],decls:1,vars:1,consts:[[3,"molecularProfileId"]],template:function(n,o){1&n&&e.nrm(0,"cvc-mp-revise-form",0),2&n&&e.Y8G("molecularProfileId",3176)},dependencies:[ge.k],encapsulation:2,changeDetection:0})}return t})();var he=a(2276);let ve=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variant-form"]],decls:1,vars:1,consts:[[3,"variantId"]],template:function(n,o){1&n&&e.nrm(0,"cvc-gene-variant-revise-form",0),2&n&&e.Y8G("variantId",4)},dependencies:[he.v],encapsulation:2,changeDetection:0})}return t})();var ye=a(574);const _e=[{path:"",component:le,children:[{path:"",redirectTo:"evidence-submit-test",pathMatch:"full"},{path:"evidence-submit-test",component:p,data:{breadcrumb:"Evidence Submit Form"}},{path:"evidence-revise-test",component:r,data:{breadcrumb:"Evidence Revise Form"}},{path:"assertion-submit-test",component:_,data:{breadcrumb:"Assertion Submit Form"}},{path:"assertion-revise-test",component:v,data:{breadcrumb:"Assertion Revise Form"}},{path:"variantgroup-revise-test",component:pe,data:{breadcrumb:"Variant Group Revise Form"}},{path:"gene-revise-test",component:ue,data:{breadcrumb:"Gene Revise Form"}},{path:"mp-revise-test",component:fe,data:{breadcrumb:"MP Revise Form"}},{path:"variant-submit-test",component:(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variant-submit-test"]],decls:2,vars:0,consts:[[2,"width","500px"]],template:function(n,o){1&n&&(e.j41(0,"div",0),e.nrm(1,"cvc-variant-submit-form"),e.k0s())},dependencies:[ye.m],encapsulation:2,changeDetection:0})}return t})(),data:{breadcrumb:"Variant Submit Form"}},{path:"variant-revise-test",component:ve,data:{breadcrumb:"Variant Revise Form"}},{path:"vertical-form",component:se,data:{breadcrumb:"Vertical Layout Test"}},{path:"inline-form",component:ae,data:{breadcrumb:"Inline Layout Test"}},{path:"horizontal-form",component:S,data:{breadcrumb:"Horizontal Layout Test"}},{path:"tags-test",component:F,data:{breadcrumb:"Horizontal"}}]}];let Te=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[u.iI.forChild(_e),u.iI]})}return t})();var Ce=a(4124),Pe=a(1532),be=a(7391),Ie=a(4917),ze=a(8476),Me=a(7685);let Oe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,ze.S,Me.pc]})}return t})();var $e=a(1724);let Fe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,$e.y]})}return t})();var Ge=a(7242);let Ee=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Ge.Z]})}return t})();var Re=a(2090);let we=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Re.B]})}return t})();var E=a(8168);let De=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,E.m]})}return t})(),xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,E.m]})}return t})(),Se=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,E.m]})}return t})();var Le=a(181);let je=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,c.YN,D.Ti,T.$G,Le._]})}return t})();var Ye=a(7238);let Ae=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Ye.h]})}return t})();var ke=a(432);let Ne=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,ke.Q]})}return t})();var Ve=a(7064);let We=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Ve.q]})}return t})();var Be=a(6404);let Ue=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Be.v]})}return t})();var Xe=a(7380);let He=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Xe.s]})}return t})(),Je=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Te,I.ZJ,G.f3,x.Y3,be.kT,C.hM,Ie.i,Pe.W,Ce.C,we,Ee,Fe,Oe,Ne,De,xe,We,je,Ue,He,Ae,Se]})}return t})()},7432:(b,f,a)=>{function u(r,d){for(var p=0;p_});var l=function(){function r(d){(function s(r,d){if(!(r instanceof d))throw new TypeError("Cannot call a class as a function")})(this,r),function h(r,d,p){d in r?Object.defineProperty(r,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):r[d]=p}(this,"tag",void 0),this.tag=d}return function e(r,d,p){d&&u(r.prototype,d),p&&u(r,p)}(r,[{key:"call",value:function(p,c){return c.subscribe(p)}}]),r}()}}]); \ No newline at end of file diff --git a/server/public/5353.cbbce88cf1693aa4.js b/server/public/5353.cbbce88cf1693aa4.js new file mode 100644 index 000000000..98e27989e --- /dev/null +++ b/server/public/5353.cbbce88cf1693aa4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5353],{9354:(O,y,n)=>{n.d(y,{e:()=>M});var a=n(177),t=n(2142),s=n(5703),g=n(2e3),f=n(7529),v=n(9541),T=n(5699),o=n(3953),h=n(7855);function d(p,E){if(1&p&&(o.j41(0,"nz-descriptions-item",9),o.EFF(1),o.k0s()),2&p){const l=E.$implicit;o.Y8G("nzTitle",l.source)("nzSpan",1),o.R7$(),o.SpI(" ",l.definition," ")}}function G(p,E){if(1&p&&(o.j41(0,"nz-descriptions",5),o.Z7z(1,d,2,3,"nz-descriptions-item",9,o.Vm6),o.k0s()),2&p){const l=o.XpG(2);o.Y8G("nzBordered",!0)("nzColumn",1),o.R7$(),o.Dyx(l.ncitDetails.definitions)}}function r(p,E){1&p&&(o.j41(0,"span",6),o.EFF(1," None "),o.k0s())}function c(p,E){if(1&p&&(o.j41(0,"nz-tag"),o.EFF(1),o.k0s()),2&p){const l=E.$implicit;o.R7$(),o.JRh(l)}}function u(p,E){if(1&p&&(o.j41(0,"nz-descriptions-item",9)(1,"cvc-tag-list"),o.Z7z(2,c,2,1,"nz-tag",null,o.Vm6),o.k0s()()),2&p){const l=E.$implicit,P=o.XpG(3);o.Y8G("nzTitle",l)("nzSpan",2),o.R7$(2),o.Dyx(P.synonymsBySource.get(l))}}function C(p,E){if(1&p&&(o.j41(0,"nz-descriptions",8),o.Z7z(1,u,4,2,"nz-descriptions-item",9,o.Vm6),o.k0s()),2&p){const l=o.XpG(2);o.Y8G("nzBordered",!0)("nzColumn",2),o.R7$(),o.Dyx(l.synonymsBySource.keys())}}function m(p,E){1&p&&(o.j41(0,"span",6),o.EFF(1," None "),o.k0s())}function D(p,E){if(1&p&&(o.j41(0,"nz-card",1)(1,"nz-col",2)(2,"nz-tabset",3)(3,"nz-tab",4),o.DNE(4,G,3,2,"nz-descriptions",5)(5,r,2,0,"span",6),o.k0s(),o.j41(6,"nz-tab",7),o.DNE(7,C,3,2,"nz-descriptions",8)(8,m,2,0,"span",6),o.k0s()()()()),2&p){const l=o.XpG();o.R7$(),o.Y8G("nzSpan",24),o.R7$(),o.Y8G("nzAnimated",!1),o.R7$(2),o.vxM(l.ncitDetails.definitions.length>0?4:5),o.R7$(3),o.vxM(l.ncitDetails.synonyms.length>0?7:8)}}function x(p,E){1&p&&(o.j41(0,"span",6),o.EFF(1," Not Found "),o.k0s())}let M=(()=>{class p{constructor(){this.synonymsBySource=new Map}ngOnInit(){this.ncitDetails&&this.ncitDetails.synonyms.forEach(l=>{this.synonymsBySource.has(l.name)||this.synonymsBySource.set(l.name,[]),this.synonymsBySource.get(l.name)?.push(l.source)})}static#t=this.\u0275fac=function(P){return new(P||p)};static#n=this.\u0275cmp=o.VBU({type:p,selectors:[["cvc-ncit-details"]],inputs:{ncitDetails:"ncitDetails"},standalone:!0,features:[o.aNF],decls:3,vars:1,consts:[["noValue",""],["nzTitle","NCI Thesaurus"],[3,"nzSpan"],[3,"nzAnimated"],["nzTitle","Definitions"],["nzSize","small","nzLayout","vertical",3,"nzBordered","nzColumn"],["nz-typography","","nzType","secondary"],["nzTitle","Synonyms"],["nzSize","small",3,"nzBordered","nzColumn"],[3,"nzTitle","nzSpan"]],template:function(P,F){1&P&&o.DNE(0,D,9,4,"nz-card",1)(1,x,2,0,"ng-template",null,0,o.C5r),2&P&&o.vxM(F.ncitDetails?0:-1)},dependencies:[a.MD,g.WF,g.xA,g.gr,s.Ti,s.cK,T.T,T.s,f.f3,f.Uq,v.hM,v.JZ,v.rE,t.x,h.M],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]})}return p})()},6719:(O,y,n)=>{n.d(y,{Q:()=>G});var a=n(3953),t=n(177),s=n(1672),g=n(5103);function f(r,c){if(1&r&&(a.j41(0,"span",5),a.EFF(1),a.k0s()),2&r){const u=a.XpG(2);a.R7$(),a.JRh(u.notification)}}function v(r,c){1&r&&a.EFF(0," Not specified ")}function T(r,c){if(1&r&&a.DNE(0,f,2,1,"span",4)(1,v,1,0,"ng-template",null,2,a.C5r),2&r){const u=a.sdS(2),C=a.XpG();a.Y8G("ngIf",C.notification)("ngIfElse",u)}}function o(r,c){if(1&r&&(a.j41(0,"a",6),a.nrm(1,"i",7),a.k0s()),2&r){const u=a.XpG(2);a.Y8G("href",u.reviseFormPath,a.B4B)}}function h(r,c){1&r&&a.nrm(0,"i",7)}function d(r,c){if(1&r&&a.DNE(0,o,2,1,"a",6)(1,h,1,0,"i",7),2&r){const u=a.XpG();a.vxM(u.reviseFormPath?0:1)}}let G=(()=>{class r{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(C){return new(C||r)};static#n=this.\u0275cmp=a.VBU({type:r,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification",reviseFormPath:"reviseFormPath"},decls:5,vars:2,consts:[["notFound",""],["notFoundImg",""],["defaultNotification",""],[3,"nzNotFoundContent","nzNotFoundImage"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["target","_blank",3,"href"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(C,m){if(1&C&&(a.nrm(0,"nz-empty",3),a.DNE(1,T,3,2,"ng-template",null,0,a.C5r)(3,d,2,1,"ng-template",null,1,a.C5r)),2&C){const D=a.sdS(2),x=a.sdS(4);a.Y8G("nzNotFoundContent",D)("nzNotFoundImage",x)}},dependencies:[t.bT,s.RW,g.Dn],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]})}return r})()},8254:(O,y,n)=>{n.d(y,{V:()=>f});var a=n(177),t=n(1672),s=n(5103),g=n(3953);let f=(()=>{class v{static#t=this.\u0275fac=function(h){return new(h||v)};static#n=this.\u0275mod=g.$C({type:v});static#o=this.\u0275inj=g.G2t({imports:[a.MD,t._v,s.Y3]})}return v})()},8238:(O,y,n)=>{n.d(y,{S:()=>A});var a=n(505),t=n(3953),s=n(177),g=n(1188),f=n(1236),v=n(5699),T=n(5103),o=n(9199),h=n(6354),d=n(5964),G=n(9145),r=n(5703),c=n(2e3),u=n(9062),C=n(959),m=n(7855),D=n(1774),x=n(3075);function M(e,_){if(1&e&&(t.nrm(0,"i",7),t.nI1(1,"entityColor"),t.EFF(2)),2&e){const i=t.XpG().ngIf;t.Y8G("nzTwotoneColor",t.bMT(1,2,"VariantGroup")),t.R7$(2),t.SpI(" ",i.name," ")}}function p(e,_){if(1&e&&t.nrm(0,"cvc-feature-variant-tag",10),2&e){const i=_.$implicit;t.Y8G("enablePopover",!1)("variant",i.node)}}function E(e,_){if(1&e&&(t.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),t.DNE(2,p,1,2,"cvc-feature-variant-tag",9),t.k0s()()),2&e){const i=t.XpG().ngIf;t.R7$(2),t.Y8G("ngForOf",i.variants.edges)}}function l(e,_){if(1&e&&t.nrm(0,"cvc-source-tag",13),2&e){const i=_.$implicit;t.Y8G("enablePopover",!1)("source",i)}}function P(e,_){if(1&e&&(t.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),t.DNE(2,l,1,2,"cvc-source-tag",12),t.k0s()()),2&e){const i=t.XpG().ngIf;t.R7$(2),t.Y8G("ngForOf",i.sources)}}function F(e,_){if(1&e&&(t.qex(0),t.j41(1,"nz-card",3),t.DNE(2,M,3,4,"ng-template",null,0,t.C5r),t.EFF(4),t.j41(5,"nz-descriptions",4),t.DNE(6,E,3,1,"nz-descriptions-item",5)(7,P,3,1,"nz-descriptions-item",6),t.k0s()(),t.bVm()),2&e){const i=_.ngIf,z=t.sdS(3);t.R7$(),t.Y8G("nzTitle",z),t.R7$(3),t.SpI(" ",i.description," "),t.R7$(),t.Y8G("nzColumn",2),t.R7$(),t.Y8G("ngIf",i.variants.edges.length>0),t.R7$(),t.Y8G("ngIf",i.sources.length>0)}}let R=(()=>{class e{constructor(i){this.gql=i}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,h.T)(({data:i})=>i?.variantGroup),(0,d.p)(o.kP))}static#t=this.\u0275fac=function(z){return new(z||e)(t.rXU(G.gwr))};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(z,I){1&z&&(t.j41(0,"div",1),t.DNE(1,F,8,5,"ng-container",2),t.nI1(2,"ngrxPush"),t.k0s()),2&z&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,I.variantGroup$)))},dependencies:[s.Sq,s.bT,r.cK,c.xA,c.gr,T.Dn,u.D,C.j,m.M,D.L9,x.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return e})();var S=n(2387);function B(e,_){}function V(e,_){if(1&e&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,B,0,0,"ng-template",6),t.k0s(),t.bVm()),2&e){const i=t.XpG(),z=t.sdS(2);t.R7$(),t.Y8G("routerLink",i.variantgroup.link),t.R7$(),t.Y8G("ngTemplateOutlet",z)}}function N(e,_){}function $(e,_){if(1&e&&t.nrm(0,"cvc-variant-group-popover",9),2&e){const i=t.XpG(3);t.Y8G("variantGroupId",i.variantgroup.id)}}function Y(e,_){if(1&e&&t.DNE(0,$,1,1,"cvc-variant-group-popover",8),2&e){const i=t.XpG(2);t.Y8G("ngIf",i.enablePopover)}}function j(e,_){if(1&e&&(t.j41(0,"nz-tag",7),t.DNE(1,N,0,0,"ng-template",6),t.k0s(),t.DNE(2,Y,1,1,"ng-template",null,3,t.C5r)),2&e){const i=t.sdS(3),z=t.XpG(),I=t.sdS(6);t.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",i)("nzPopoverTrigger",z.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",I)}}function L(e,_){}function U(e,_){if(1&e&&t.DNE(0,L,0,0,"ng-template",6),2&e){t.XpG();const i=t.sdS(2);t.Y8G("ngTemplateOutlet",i)}}function b(e,_){if(1&e&&(t.j41(0,"cvc-icon-badges",10),t.nrm(1,"i",11),t.nI1(2,"entityColor"),t.k0s(),t.EFF(3)),2&e){const i=t.XpG();t.Y8G("flagged",i.variantgroup.flagged)("entityColor",i.iconColor),t.R7$(),t.Y8G("nzTwotoneColor",t.bMT(2,4,"VariantGroup")),t.R7$(2),t.SpI(" ",i.variantgroup.name,"\n")}}let A=(()=>{class e{set variantgroup(i){if(!i)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=i}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,a.P)("VariantGroup")}static#t=this.\u0275fac=function(z){return new(z||e)};static#n=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(z,I){if(1&z&&t.DNE(0,V,3,2,"ng-container",4)(1,j,4,4,"ng-template",null,0,t.C5r)(3,U,1,1,"ng-template",null,1,t.C5r)(5,b,4,6,"ng-template",null,2,t.C5r),2&z){const W=t.sdS(4);t.Y8G("ngIf",I.linked)("ngIfElse",W)}},dependencies:[s.bT,s.T3,g.Wk,f.L_,v.s,T.Dn,R,S.N,x.R],encapsulation:2,changeDetection:0})}return e})()},8134:(O,y,n)=>{n.d(y,{l:()=>C});var a=n(177),t=n(1188),s=n(1236),g=n(5699),f=n(5103),v=n(7086),T=n(2142),o=n(1209),h=n(4917),d=n(5703),G=n(2e3),r=n(3953);let c=(()=>{class m{static#t=this.\u0275fac=function(M){return new(M||m)};static#n=this.\u0275mod=r.$C({type:m});static#o=this.\u0275inj=r.G2t({imports:[a.MD,d.Ti,G.WF,f.Y3,o.k,v.C,T.x,h.i]})}return m})();var u=n(4994);let C=(()=>{class m{static#t=this.\u0275fac=function(M){return new(M||m)};static#n=this.\u0275mod=r.$C({type:m});static#o=this.\u0275inj=r.G2t({imports:[a.MD,t.iI,s.MC,g.T,f.Y3,c,h.i,u.a]})}return m})()},5128:(O,y,n)=>{n.d(y,{K:()=>h});var a=n(177),t=n(8524),s=n(3953),g=n(9417),f=n(1011);const T={name:"comment-textarea",component:(()=>{class d extends t.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(r,c)=>`Comments must be at least ${c.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let r;return function(u){return(r||(r=s.xGo(d)))(u||d)}})();static#n=this.\u0275cmp=s.VBU({type:d,selectors:[["comment-textarea-type"]],features:[s.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(c,u){1&c&&s.nrm(0,"textarea",0),2&c&&s.Y8G("formControl",u.formControl)("formlyAttributes",u.field)},dependencies:[g.me,g.BC,g.l_,t.ch,f.Sy],encapsulation:2,changeDetection:0})}return d})(),wrappers:["form-field"]};var o=n(8927);let h=(()=>{class d{static#t=this.\u0275fac=function(c){return new(c||d)};static#n=this.\u0275mod=s.$C({type:d});static#o=this.\u0275inj=s.G2t({imports:[a.MD,g.X1,t.qy.forChild({types:[T]}),o.PQ,f.j]})}return d})()},8692:(O,y,n)=>{n.d(y,{j:()=>r});var a=n(177),t=n(8524),s=n(3953),g=n(513),f=n(6389),v=n(5930),T=n(1939);const h={name:"submit-button",component:(()=>{class c extends t.PU{constructor(){super(),this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}static#t=this.\u0275fac=function(m){return new(m||c)};static#n=this.\u0275cmp=s.VBU({type:c,selectors:[["cvc-submit-button-type"]],features:[s.Vt3],decls:3,vars:2,consts:[["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","large",3,"disabled"]],template:function(m,D){1&m&&(s.j41(0,"cvc-form-buttons")(1,"button",0),s.EFF(2),s.k0s()()),2&m&&(s.R7$(),s.Y8G("disabled",!D.form.valid),s.R7$(),s.SpI(" ",D.to.submitLabel," "))},dependencies:[g.aO,f.c,v.p,T.l],encapsulation:2,changeDetection:0})}return c})()};var d=n(3842),G=n(9417);let r=(()=>{class c{static#t=this.\u0275fac=function(m){return new(m||c)};static#n=this.\u0275mod=s.$C({type:c});static#o=this.\u0275inj=s.G2t({imports:[a.MD,G.X1,t.qy.forChild({types:[h]}),g.Zw,d.k]})}return c})()}}]); \ No newline at end of file diff --git a/server/public/5384.c698918596b093b6.js b/server/public/5384.e3e673860d12574b.js similarity index 55% rename from server/public/5384.c698918596b093b6.js rename to server/public/5384.e3e673860d12574b.js index 6e781b1e0..48abeb4d8 100644 --- a/server/public/5384.c698918596b093b6.js +++ b/server/public/5384.e3e673860d12574b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5384],{4097:(Q,N,o)=>{o.d(N,{b:()=>ht});var c=o(9145),s=o(5964),S=o(6354),G=o(4608),n=o(9199),t=o(3953),v=o(177),f=o(1774),E=o(513),$=o(6389),P=o(5930),b=o(7529),X=o(1635),A=o(1226),x=o(9894),V=o(1305),k=o(4222),y=o(9417),j=o(8927),F=o(5703),M=o(3617),I=o(5154),O=o(2983),Y=o(1939),h=o(5566),C=o(1845);function u(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",10),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}}function d(r,g){if(1&r&&t.nrm(0,"nz-alert",11),2&r){t.XpG();const a=t.sdS(4);t.Y8G("nzDescription",a)}}function T(r,g){if(1&r&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a)}}function B(r,g){if(1&r&&(t.j41(0,"ul"),t.DNE(1,T,2,1,"li",12),t.k0s()),2&r){const a=t.XpG();t.R7$(),t.Y8G("ngForOf",a.errorMessages)}}function K(r,g){}function J(r,g){1&r&&t.DNE(0,K,0,0,"ng-template")}function nn(r,g){if(1&r&&(t.qex(0),t.DNE(1,J,1,0,null,14),t.bVm()),2&r){t.XpG();const a=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function w(r,g){}function tn(r,g){1&r&&t.DNE(0,w,0,0,"ng-template")}function en(r,g){if(1&r&&(t.j41(0,"span",15),t.DNE(1,tn,1,0,null,14),t.k0s()),2&r){t.XpG();const a=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Z(r,g){if(1&r&&(t.j41(0,"button",16),t.EFF(1),t.nI1(2,"enumToTitle"),t.k0s()),2&r){const a=t.XpG().ngrxLet,m=t.XpG();t.Y8G("disabled",!(void 0!==m.comment&&m.comment.length>=10&&a.signedIn))("nzTooltipTrigger",m.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==m.selectedOrg?null:m.selectedOrg.name)),t.R7$(),t.SpI(" Flag ",t.bMT(2,4,m.flaggable.entityType)," ")}}function on(r,g){if(1&r&&(t.qex(0),t.j41(1,"cvc-form-buttons"),t.DNE(2,nn,2,1,"ng-container",13)(3,en,2,1,"ng-template",null,1,t.C5r)(5,Z,3,6,"ng-template",null,2,t.C5r),t.k0s(),t.bVm()),2&r){const a=g.ngrxLet,m=t.sdS(4);t.R7$(2),t.Y8G("ngIf",a.signedIn)("ngIfElse",m)}}let q=class Et{constructor(g,a,m){this.gql=g,this.viewerService=a,this.networkErrorService=m,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.addFlagMutator=new A.E(this.networkErrorService),this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.pipe((0,x.s)(this)).subscribe(z=>{this.selectedOrg=z.mostRecentOrg})}ngOnInit(){if(void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(g){this.selectedOrg=g}submitFlag(){this.errorMessages=[];let a=this.addFlagMutator.mutate(this.gql,{input:{comment:this.comment,subject:this.flaggable,organizationId:this.selectedOrg?.id}});a.submitSuccess$.pipe((0,x.s)(this)).subscribe(m=>{m&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),a.submitError$.pipe((0,x.s)(this)).subscribe(m=>{m.length>0&&(this.errorMessages=m)}),a.isSubmitting$.pipe((0,x.s)(this)).subscribe(m=>{this.loading=m})}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(a){return new(a||Et)(t.rXU(c.GOU),t.rXU(V.q),t.rXU(k.N))};static#t=this.\u0275cmp=t.VBU({type:Et,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["errorContents",""],["notSignedIn",""],["submitButton",""],["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to flag entity."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(a,m){if(1&a){const z=t.RV6();t.j41(0,"nz-card",3),t.DNE(1,u,1,0,"nz-alert",4)(2,d,1,1,"nz-alert",5)(3,B,2,1,"ng-template",null,0,t.C5r),t.j41(5,"form",6),t.bIt("ngSubmit",function(){return t.eBV(z),t.Njj(m.submitFlag())}),t.j41(6,"cvc-comment-input-form",7),t.mxI("commentChange",function(rn){return t.eBV(z),t.DH7(m.comment,rn)||(m.comment=rn),t.Njj(rn)}),t.k0s(),t.j41(7,"nz-spin",8)(8,"nz-form-item")(9,"nz-form-control"),t.DNE(10,on,7,2,"ng-container",9),t.k0s()()()()()}2&a&&(t.R7$(),t.Y8G("ngIf",m.success),t.R7$(),t.Y8G("ngIf",m.errorMessages.length>0),t.R7$(4),t.R50("comment",m.comment),t.R7$(),t.Y8G("nzSpinning",m.loading),t.R7$(3),t.Y8G("ngrxLet",m.viewer$))},dependencies:[v.Sq,v.bT,v.T3,y.qT,y.cb,y.cV,f.Nj,b.Uq,b.e,j.CA,j.Ls,j.zS,E.aO,$.c,P.p,F.cK,M.Y,I.LH,O.a,Y.l,h.K,C.f],encapsulation:2,changeDetection:0})};q=(0,X.Cg)([(0,x.d)()],q);var D=o(1413),cn=o(6977),H=o(7685),W=o(7391),un=o(1672),vn=o(9448),pn=o(5103),zn=o(6408),Cn=o(311),hn=o(1236);const Tn=()=>({float:"right"});function Rn(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",8),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}}function En(r,g){}function yn(r,g){1&r&&t.DNE(0,En,0,0,"ng-template")}function bn(r,g){if(1&r&&(t.qex(0),t.DNE(1,yn,1,0,null,10),t.bVm()),2&r){t.XpG(2);const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Gn(r,g){if(1&r&&(t.qex(0),t.DNE(1,bn,2,1,"ng-container",9),t.bVm()),2&r){const a=t.XpG().ngrxLet,m=t.sdS(5),z=t.XpG();t.R7$(),t.Y8G("ngIf",a.isEditor||a.isAdmin||z.flag.openActivity.user.id===a.id)("ngIfElse",m)}}function Fn(r,g){}function xn(r,g){1&r&&t.DNE(0,Fn,0,0,"ng-template")}function Sn(r,g){if(1&r&&(t.j41(0,"span",11),t.DNE(1,xn,1,0,null,10),t.k0s()),2&r){t.XpG();const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function In(r,g){}function Dn(r,g){1&r&&t.DNE(0,In,0,0,"ng-template")}function $n(r,g){if(1&r&&(t.j41(0,"span",12),t.DNE(1,Dn,1,0,null,10),t.k0s()),2&r){t.XpG();const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function On(r,g){if(1&r){const a=t.RV6();t.j41(0,"button",14),t.mxI("nzPopoverVisibleChange",function(z){t.eBV(a);const L=t.XpG(3);return t.DH7(L.flagResolvePopoverVisible,z)||(L.flagResolvePopoverVisible=z),t.Njj(z)}),t.bIt("click",function(){t.eBV(a);const z=t.XpG(3);return t.Njj(z.flagResolvePopoverVisible=!z.flagResolvePopoverVisible)}),t.EFF(1," Resolve Flag "),t.nrm(2,"i",15),t.k0s()}if(2&r){const a=t.XpG(2).ngrxLet,m=t.XpG(),z=t.sdS(3),L=t.sdS(5);t.Y8G("nzPopoverTitle",z),t.R50("nzPopoverVisible",m.flagResolvePopoverVisible),t.Y8G("nzPopoverContent",L)("nzPopoverTrigger",void 0)("disabled",!a.signedIn||a.isCurator&&m.flag.openActivity.user.id!=a.id)}}function Ln(r,g){if(1&r&&t.DNE(0,On,3,5,"button",13),2&r){const a=t.XpG(2);t.Y8G("ngIf",!a.success)}}function jn(r,g){if(1&r&&(t.qex(0),t.DNE(1,Gn,2,2,"ng-container",9)(2,Sn,2,1,"ng-template",null,2,t.C5r)(4,$n,2,1,"ng-template",null,3,t.C5r)(6,Ln,1,1,"ng-template",null,4,t.C5r),t.bVm()),2&r){const a=g.ngrxLet,m=t.sdS(3);t.R7$(),t.Y8G("ngIf",a.signedIn)("ngIfElse",m)}}function Mn(r,g){if(1&r){const a=t.RV6();t.EFF(0," Resolve Flag "),t.j41(1,"span",16)(2,"i",17),t.bIt("click",function(){t.eBV(a);const z=t.XpG();return z.flagResolvePopoverVisible=!1,t.Njj(z.errorMessages=[])}),t.k0s()()}2&r&&(t.R7$(),t.Y8G("ngStyle",t.lJ4(1,Tn)))}function Pn(r,g){if(1&r&&t.nrm(0,"nz-alert",24),2&r){t.XpG();const a=t.sdS(2);t.Y8G("nzDescription",a)}}function Nn(r,g){if(1&r&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a)}}function An(r,g){if(1&r&&(t.j41(0,"ul"),t.DNE(1,Nn,2,1,"li",25),t.k0s()),2&r){const a=t.XpG(2);t.R7$(),t.Y8G("ngForOf",a.errorMessages)}}function Yn(r,g){if(1&r){const a=t.RV6();t.DNE(0,Pn,1,1,"nz-alert",18)(1,An,2,1,"ng-template",null,5,t.C5r),t.j41(3,"nz-card",19)(4,"form",20),t.bIt("ngSubmit",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.resolveFlag())}),t.j41(5,"cvc-comment-input-form",21),t.mxI("commentChange",function(z){t.eBV(a);const L=t.XpG();return t.DH7(L.comment,z)||(L.comment=z),t.Njj(z)}),t.k0s(),t.j41(6,"nz-spin",22)(7,"nz-form-item")(8,"nz-form-control")(9,"cvc-form-buttons")(10,"button",23),t.EFF(11," Resolve "),t.k0s()()()()()()()}if(2&r){const a=t.XpG();t.Y8G("ngIf",a.errorMessages.length>0),t.R7$(5),t.R50("comment",a.comment),t.R7$(),t.Y8G("nzSpinning",a.loading),t.R7$(4),t.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}let sn=class yt{constructor(g,a,m){this.gql=g,this.viewerService=a,this.networkErrorService=m,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.resolveFlagMutator=new A.E(this.networkErrorService),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewerService.viewer$.pipe((0,x.s)(this)).subscribe(g=>{this.selectedOrg=g.mostRecentOrg})}onOrgSelected(g){this.selectedOrg=g}resolveFlag(){if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:this.selectedOrg?.id}});g.submitSuccess$.pipe((0,x.s)(this)).subscribe(a=>{a&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,x.s)(this)).subscribe(a=>{a.length>0&&(this.success=!1,this.errorMessages=a)}),g.isSubmitting$.pipe((0,x.s)(this)).subscribe(a=>{this.loading=a})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}static#n=this.\u0275fac=function(a){return new(a||yt)(t.rXU(c.reo),t.rXU(V.q),t.rXU(k.N))};static#t=this.\u0275cmp=t.VBU({type:yt,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["notSignedIn",""],["noPermissions",""],["submitButton",""],["errorContents",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to resolve flag."],["nz-tooltip","","nzTooltipTitle","If you are not an editor, you can only resolve flags you opened."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click",4,"ngIf"],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverVisibleChange","click","nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription",4,"ngIf"],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(a,m){1&a&&t.DNE(0,Rn,1,0,"nz-alert",6)(1,jn,8,2,"ng-container",7)(2,Mn,3,2,"ng-template",null,0,t.C5r)(4,Yn,12,6,"ng-template",null,1,t.C5r),2&a&&(t.Y8G("ngIf",m.success),t.R7$(),t.Y8G("ngrxLet",m.viewer$))},dependencies:[v.Sq,v.bT,v.T3,v.B3,y.qT,y.cb,f.Nj,E.aO,$.c,P.p,b.Uq,b.e,j.CA,j.Ls,j.zS,y.cV,M.Y,F.cK,hn.L_,pn.Dn,I.LH,O.a,h.K,Y.l],encapsulation:2})};sn=(0,X.Cg)([(0,x.d)()],sn);var Vn=o(4126),Xn=o(3075),Bn=o(8139);function Un(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",8),t.bIt("nzOnClose",function(){const z=t.eBV(a).$implicit,L=t.XpG();return t.Njj(L.onErrorBannerClose(z))}),t.k0s()}2&r&&t.Y8G("nzMessage",g.$implicit)}function kn(r,g){if(1&r){const a=t.RV6();t.j41(0,"nz-alert",9),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}if(2&r){const a=t.XpG();t.Mz_("nzMessage","Revision(s) successfully ",a.success,".")}}function Wn(r,g){if(1&r&&t.nrm(0,"cvc-comment-body",15),2&r){const a=t.XpG(2).$implicit;t.Y8G("commentBodySegments",a.openActivity.parsedNote)}}function Kn(r,g){if(1&r&&(t.qex(0),t.nrm(1,"cvc-flag-resolve-form",16),t.bVm()),2&r){const a=t.XpG(2).$implicit,m=t.XpG(2);t.R7$(),t.Y8G("flag",a)("flagResolvedCallback",m.flagResolvedCallback)}}function Qn(r,g){if(1&r&&(t.qex(0),t.nrm(1,"cvc-comment-body",15),t.bVm()),2&r){const a=t.XpG(3).$implicit;t.R7$(),t.Y8G("commentBodySegments",a.resolutionActivity.parsedNote)}}function gn(r,g){if(1&r&&t.nrm(0,"cvc-user-tag",21),2&r){const a=t.XpG(3).$implicit;t.Y8G("user",a.resolutionActivity.user)}}function Hn(r,g){if(1&r&&(t.j41(0,"nz-row")(1,"nz-col",17),t.DNE(2,Qn,2,1,"ng-container",18),t.k0s(),t.j41(3,"nz-col",19),t.EFF(4," Resolved By "),t.DNE(5,gn,1,1,"cvc-user-tag",20),t.EFF(6),t.nI1(7,"timeAgo"),t.k0s()()),2&r){const a=t.XpG(2).$implicit;t.R7$(2),t.Y8G("ngIf",a.resolutionActivity),t.R7$(3),t.Y8G("ngIf",void 0!==a.resolutionActivity),t.R7$(),t.SpI(" ",t.bMT(7,3,null==a.resolutionActivity?null:a.resolutionActivity.createdAt)," ")}}function Jn(r,g){if(1&r&&(t.nrm(0,"i",22),t.nI1(1,"entityColor"),t.EFF(2)),2&r){const a=t.XpG(2).$implicit;t.Y8G("nzTwotoneColor",t.bMT(1,2,"Flag")),t.R7$(2),t.SpI(" FID",a.id," ")}}function Zn(r,g){if(1&r&&(t.j41(0,"span")(1,"span",26),t.EFF(2,"Flagged By"),t.k0s(),t.nrm(3,"cvc-user-tag",21),t.j41(4,"span",26),t.EFF(5),t.nI1(6,"timeAgo"),t.k0s()()),2&r){const a=t.XpG(3).$implicit;t.R7$(3),t.Y8G("user",a.openActivity.user),t.R7$(2),t.JRh(t.bMT(6,2,a.openActivity.createdAt))}}function wn(r,g){if(1&r&&t.nrm(0,"cvc-status-tag",27),2&r){const a=t.XpG(3).$implicit;t.Y8G("status",a.state)}}function mn(r,g){1&r&&(t.j41(0,"nz-space",23),t.DNE(1,Zn,7,4,"span",24)(2,wn,1,1,"cvc-status-tag",25),t.k0s())}function an(r,g){if(1&r&&(t.j41(0,"nz-card",13),t.DNE(1,Wn,1,1,"cvc-comment-body",14),t.nrm(2,"nz-divider"),t.DNE(3,Kn,2,2,"ng-container",7)(4,Hn,8,5,"ng-template",null,1,t.C5r)(6,Jn,3,4,"ng-template",null,2,t.C5r)(8,mn,3,0,"ng-template",null,3,t.C5r),t.k0s()),2&r){const a=t.sdS(5),m=t.sdS(7),z=t.sdS(9),L=t.XpG().$implicit;t.Y8G("nzTitle",m)("nzExtra",z),t.R7$(),t.Y8G("ngIf",L.openActivity),t.R7$(2),t.Y8G("ngIf","OPEN"==L.state)("ngIfElse",a)}}function dn(r,g){1&r&&(t.qex(0),t.DNE(1,an,10,5,"nz-card",12),t.bVm())}function fn(r,g){if(1&r&&(t.qex(0),t.j41(1,"nz-space",10),t.DNE(2,dn,2,0,"ng-container",11),t.k0s(),t.bVm()),2&r){const a=t.XpG();t.R7$(2),t.Y8G("ngForOf",a.flags)}}function qn(r,g){1&r&&t.nrm(0,"nz-empty",28)}let nt=(()=>{class r{constructor(a){this.viewerService=a,this.isLoading=!1,this.success=!1,this.destroy$=new D.B}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(a=>{this.mostRecentOrg=a.mostRecentOrg})}setupMutationResultHandlers(a,m){a.submitSuccess$.pipe((0,cn.Q)(this.destroy$)).subscribe(z=>{z&&(this.isLoading=!1,this.errors=void 0,this.success=m)}),a.submitError$.pipe((0,cn.Q)(this.destroy$)).subscribe(z=>{z.length>0&&(this.isLoading=!1,this.success=!1,this.errors=z)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(a){this.errors=this.errors?.filter(m=>m!=a)}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(m){return new(m||r)(t.rXU(V.q))};static#t=this.\u0275cmp=t.VBU({type:r,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["noFlags",""],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzTitle","Flags",1,"card-list"],[4,"ngIf","ngIfElse"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],[3,"commentBodySegments"],[3,"flag","flagResolvedCallback"],["nzSpan","16"],[4,"ngIf"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"user"],["nz-icon","","nzTheme","twotone","nzType","civic-flag",3,"nzTwotoneColor"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(m,z){if(1&m&&(t.DNE(0,Un,1,1,"nz-alert",4)(1,kn,1,2,"nz-alert",5),t.j41(2,"nz-card",6),t.DNE(3,fn,3,1,"ng-container",7)(4,qn,1,0,"ng-template",null,0,t.C5r),t.k0s()),2&m){const L=t.sdS(5);t.Y8G("ngForOf",z.errors),t.R7$(),t.Y8G("ngIf",z.success),t.R7$(2),t.Y8G("ngIf",z.flags&&z.flags.length>0)("ngIfElse",L)}},dependencies:[v.Sq,v.bT,b.Uq,b.e,F.cK,H.U5,H.Dq,W.Di,un.RW,vn.j,pn.Dn,zn.r,Cn.g,$.c,M.Y,sn,Vn.p,Xn.R,Bn.N],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return r})();var tt=o(9365),et=o(9438);const ln=()=>[];function it(r,g){if(1&r&&(t.nrm(0,"cvc-flag-list",14),t.nI1(1,"ngrxPush")),2&r){const a=t.XpG(2);t.Y8G("flags",t.bMT(1,2,a.flags$)||t.lJ4(4,ln))("flagResolvedCallback",a.refresh)}}function ot(r,g){if(1&r){const a=t.RV6();t.j41(0,"button",17),t.bIt("click",function(){t.eBV(a);const z=t.XpG(2).ngrxLet,L=t.XpG(2);return t.Njj(L.loadMore(null==z?null:z.endCursor))}),t.EFF(1," Load More "),t.k0s()}}function st(r,g){1&r&&(t.qex(0),t.DNE(1,ot,2,0,"button",16),t.bVm())}function at(r,g){if(1&r&&(t.qex(0),t.DNE(1,st,2,0,"ng-container",15),t.bVm()),2&r){const a=g.ngrxLet;t.R7$(),t.Y8G("ngIf",a&&(null==a?null:a.hasNextPage)&&a.endCursor)}}function lt(r,g){if(1&r&&t.nrm(0,"cvc-flag-add-form",18),2&r){const a=t.XpG(2);t.Y8G("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}function rt(r,g){if(1&r&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&r){const a=g.$implicit;t.R7$(),t.JRh(a.displayName)}}function _t(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",19),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onStateSelected(z))}),t.DNE(1,rt,2,1,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("preselectedOption",a.selectableStates[0])("participantList",a.selectableStates)}}function ct(r,g){if(1&r&&t.nrm(0,"nz-avatar",22),2&r){const a=t.XpG().$implicit;t.Y8G("nzSrc",a.profileImagePath)}}function pt(r,g){if(1&r&&(t.nrm(0,"nz-avatar",23),t.nI1(1,"uppercase")),2&r){const a=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,a.username.charAt(0)))}}function gt(r,g){if(1&r&&(t.DNE(0,ct,1,1,"nz-avatar",21)(1,pt,2,3,"ng-template",null,2,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&r){const a=g.$implicit,m=t.sdS(2);t.Y8G("ngIf",a.profileImagePath)("ngIfElse",m),t.R7$(4),t.JRh(a.username)}}function mt(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",20),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onFlaggingUsersSelected(z))}),t.DNE(2,gt,5,3,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,a.uniqueFlaggingUsers$)||t.lJ4(3,ln))}}function dt(r,g){if(1&r&&t.nrm(0,"nz-avatar",22),2&r){const a=t.XpG().$implicit;t.Y8G("nzSrc",a.profileImagePath)}}function ft(r,g){if(1&r&&(t.nrm(0,"nz-avatar",23),t.nI1(1,"uppercase")),2&r){const a=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,a.username.charAt(0)))}}function ut(r,g){if(1&r&&(t.DNE(0,dt,1,1,"nz-avatar",21)(1,ft,2,3,"ng-template",null,2,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&r){const a=g.$implicit,m=t.sdS(2);t.Y8G("ngIf",a.profileImagePath)("ngIfElse",m),t.R7$(4),t.JRh(a.username)}}function vt(r,g){if(1&r){const a=t.RV6();t.j41(0,"cvc-participant-list",24),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onResolvingUsersSelected(z))}),t.DNE(2,ut,5,3,"ng-template",null,1,t.C5r),t.k0s()}if(2&r){const a=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,a.uniqueResolvingUsers$)||t.lJ4(3,ln))}}function zt(r,g){if(1&r&&(t.qex(0),t.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-space",6),t.DNE(4,it,2,5,"cvc-flag-list",7)(5,at,2,1,"ng-container",8)(6,lt,1,2,"cvc-flag-add-form",9),t.k0s()(),t.j41(7,"nz-col",10)(8,"nz-space",6),t.DNE(9,_t,3,2,"cvc-participant-list",11)(10,mt,4,4,"cvc-participant-list",12)(11,vt,4,4,"cvc-participant-list",13),t.k0s()()(),t.bVm()),2&r){const a=t.XpG();t.R7$(),t.Y8G("nzGutter",16),t.R7$(4),t.Y8G("ngrxLet",a.pageInfo$)}}function Ct(r,g){if(1&r&&t.nrm(0,"cvc-flag-add-form",18),2&r){const a=t.XpG();t.Y8G("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}let ht=(()=>{class r{constructor(a){this.gql=a,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:c.Qfy.Open},{id:2,displayName:"Resolved",value:c.Qfy.Resolved}]}ngOnInit(){if(null==this.flaggable)throw new Error("Must pass a flaggable into flag list");this.queryRef=this.gql.watch({first:this.defaultPageSize,flaggable:this.flaggable,state:c.Qfy.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,G.E)("data","flags","edges"),(0,s.p)(n.kP),(0,S.T)(a=>a.map(m=>m.node))),this.pageInfo$=this.results$.pipe((0,G.E)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,G.E)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,S.T)(({data:a})=>a.flags?.uniqueFlaggingUsers)),this.uniqueResolvingUsers$=this.results$.pipe((0,S.T)(({data:a})=>a.flags?.uniqueResolvingUsers))}onFlaggingUsersSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:a?a.id:void 0})}onResolvingUsersSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:a?a.id:void 0})}onStateSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:a?a.value:void 0})}loadMore(a){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:a}})}static#n=this.\u0275fac=function(m){return new(m||r)(t.rXU(c.HnF))};static#t=this.\u0275cmp=t.VBU({type:r,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[["noFlags",""],["itemTemplate",""],["noAvatar",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"flags","flagResolvedCallback",4,"nzSpaceItem"],[4,"ngrxLet"],[3,"flaggable","flagAddedCallback",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Flag State",3,"preselectedOption","participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["listTitle","Flag State",3,"participantSelectedEvent","preselectedOption","participantList"],["listTitle","Flagging Users",3,"participantSelectedEvent","participantList"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Resolving Users",3,"participantSelectedEvent","participantList"]],template:function(m,z){if(1&m&&(t.DNE(0,zt,12,2,"ng-container",3),t.nI1(1,"ngrxPush"),t.DNE(2,Ct,1,2,"ng-template",null,0,t.C5r)),2&m){const L=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,z.unfilteredCount$))("ngIfElse",L)}},dependencies:[v.bT,f.Nj,E.aO,$.c,P.p,b.Uq,b.e,q,nt,tt.T,et.PM,H.U5,H.Dq,v.Pc,f.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return r})()},7268:(Q,N,o)=>{o.d(N,{G:()=>q});var c=o(177),s=o(3190),S=o(2839),G=o(5703),n=o(8927),t=o(2617),v=o(9417),f=o(4917),E=o(4308),$=o(3842),P=o(3617),b=o(513),X=o(2983),A=o(5154),x=o(3953);let V=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=x.$C({type:D});static#e=this.\u0275inj=x.G2t({imports:[c.MD,v.YN,v.X1,n.PQ,b.Zw,G.Ti,P.$,A.Qt,X.V,$.k,f.i,E.I]})}return D})();var k=o(7169),y=o(9192),j=o(1542),F=o(9590),M=o(1209),I=o(9802),O=o(5493),Y=o(7051),h=o(5103),C=o(1236);let u=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=x.$C({type:D});static#e=this.\u0275inj=x.G2t({imports:[c.MD,v.X1,b.Zw,n.PQ,v.YN,P.$,G.Ti,C.MC,h.Y3,A.Qt,X.V,E.I,$.k]})}return D})();var d=o(9438),T=o(2986),B=o(9448),K=o(1672),J=o(7529),nn=o(1011),w=o(7685),tn=o(5699),en=o(7391);let Z=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=x.$C({type:D});static#e=this.\u0275inj=x.G2t({imports:[c.MD,J.f3,t.rD,G.Ti,w.pc,tn.T,en.kT,d.Yb,K._v,T.IJ,B.g,A.Qt,t.rD,C.MC,h.Y3,nn.j,v.YN,M.k,S.m,y.J,I._,j.X,Y.U,O.G,F.R,f.i,b.Zw,P.$,u,B.g,k.W]})}return D})();var on=o(2968);let q=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=x.$C({type:D});static#e=this.\u0275inj=x.G2t({imports:[c.MD,v.YN,b.Zw,n.PQ,s.Sw,b.Zw,S.m,t.rD,G.Ti,V,Z,K._v,on.K,d.Yb,w.pc,f.i]})}return D})()},7428:(Q,N,o)=>{o.d(N,{v:()=>s});var c=o(3953);let s=(()=>{class S{constructor(){}static#n=this.\u0275fac=function(t){return new(t||S)};static#t=this.\u0275dir=c.FsC({type:S,selectors:[["","cvcFlaggableOptions",""]]})}return S})()},8821:(Q,N,o)=>{o.d(N,{H:()=>k});var c=o(3953),s=o(7428),S=o(177),G=o(1188),n=o(5103),t=o(3146),v=o(5154);const f=["cvcFlaggable",""],E=["*"];function $(y,j){1&y&&c.SdG(0)}function P(y,j){1&y&&c.eu8(0)}function b(y,j){if(1&y&&(c.qex(0),c.DNE(1,P,1,0,"ng-container",4),c.bVm()),2&y){c.XpG();const F=c.sdS(1);c.R7$(),c.Y8G("ngTemplateOutlet",F)}}function X(y,j){if(1&y&&(c.j41(0,"a",6),c.nrm(1,"i",7),c.k0s()),2&y){c.XpG();const F=c.sdS(5);c.R7$(),c.Y8G("nzTooltipTitle",F)}}function A(y,j){if(1&y&&c.EFF(0),2&y){const F=c.XpG(2);c.SpI(" ",F.flags," open flags ")}}function x(y,j){1&y&&c.eu8(0)}function V(y,j){if(1&y&&(c.qex(0),c.j41(1,"nz-ribbon",5),c.DNE(2,X,2,1,"ng-template",null,1,c.C5r)(4,A,1,1,"ng-template",null,2,c.C5r)(6,x,1,0,"ng-container",4),c.k0s(),c.bVm()),2&y){const F=c.sdS(3);c.XpG();const M=c.sdS(1);c.R7$(),c.Y8G("nzText",F),c.R7$(5),c.Y8G("ngTemplateOutlet",M)}}let k=(()=>{class y{constructor(F){this.renderer=F}ngOnChanges(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}ngAfterViewInit(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}addFlagged(){this.flaggedChild&&this.renderer.addClass(this.flaggedChild.nativeElement,"flaggedChild")}removeFlagged(){this.flaggedChild&&this.renderer.removeClass(this.flaggedChild.nativeElement,"flaggedChild")}static#n=this.\u0275fac=function(M){return new(M||y)(c.rXU(c.sFG))};static#t=this.\u0275cmp=c.VBU({type:y,selectors:[["","cvcFlaggable",""]],contentQueries:function(M,I,O){if(1&M&&c.wni(O,s.v,5,c.aKT),2&M){let Y;c.mGM(Y=c.lsd())&&(I.flaggedChild=Y.first)}},inputs:{flags:"flags",entity:"entity"},features:[c.OA$],attrs:f,ngContentSelectors:E,decls:4,vars:2,consts:[["flaggedContent",""],["flaggedText",""],["flaggedTooltip",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["routerLink","flags",2,"color","#fff"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(M,I){1&M&&(c.NAR(),c.DNE(0,$,1,0,"ng-template",null,0,c.C5r)(2,b,2,1,"ng-container",3)(3,V,7,2,"ng-container",3)),2&M&&(c.R7$(2),c.Y8G("ngIf",0===I.flags),c.R7$(),c.Y8G("ngIf",I.flags))},dependencies:[S.bT,S.T3,G.Wk,n.Dn,t.KI,v.LH],encapsulation:2})}return y})()},1896:(Q,N,o)=>{o.d(N,{Y:()=>f});var c=o(177),s=o(5154),S=o(7391),G=o(3146),n=o(5103),t=o(1188),v=o(3953);let f=(()=>{class E{static#n=this.\u0275fac=function(b){return new(b||E)};static#t=this.\u0275mod=v.$C({type:E});static#e=this.\u0275inj=v.G2t({imports:[c.MD,t.iI,n.Y3,G.W2,s.Qt,S.kT]})}return E})()},869:(Q,N,o)=>{o.d(N,{S:()=>q});var c=o(177),s=o(5703),S=o(2617),G=o(7529),n=o(3953);let t=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=n.$C({type:D});static#e=this.\u0275inj=n.G2t({imports:[c.MD,G.f3]})}return D})();var v=o(5757),f=o(1209),E=o(7685),$=o(5699),P=o(7391),b=o(9438),X=o(2839),A=o(9192),x=o(1542),V=o(5493),k=o(4696),y=o(1672),j=o(9590),F=o(2986),M=o(9448),I=o(5154),O=o(513),Y=o(3617),h=o(5103),C=o(1236),u=o(1011),d=o(9417),T=o(4917),B=o(2e3),K=o(4308),J=o(7169),nn=o(6936),w=o(9802),tn=o(996),en=o(6912),Z=o(7086),on=o(8920);let q=(()=>{class D{static#n=this.\u0275fac=function(W){return new(W||D)};static#t=this.\u0275mod=n.$C({type:D});static#e=this.\u0275inj=n.G2t({imports:[c.MD,G.f3,S.rD,s.Ti,E.pc,$.T,P.kT,b.Yb,y._v,F.IJ,M.g,I.Qt,S.rD,C.MC,h.Y3,u.j,B.WF,M.g,d.YN,v.v,en.l,f.k,t,X.m,A.J,w._,x.X,Z.C,nn.G,V.G,j.R,K.I,tn.o,T.i,J.W,on.U,k.GB,O.Zw,Y.$]})}return D})()},4055:(Q,N,o)=>{o.d(N,{B:()=>ri});var c=o(9145),s=o(6354),S=o(9172),G=o(4608),n=o(3953),t=o(1188),v=o(177),f=o(1774),E=o(7529),$=o(7685),P=o(5699),b=o(9438),X=o(1672),A=o(513),x=o(6389),V=o(5930),k=o(5103),y=o(9365),j=o(1413),F=o(5964),M=o(4572),I=o(1226),O=o(6977),Y=o(9199),h=o(1305),C=o(4222),u=o(2617),d=o(5703),T=o(7391),B=o(2986),K=o(9448),J=o(5154),nn=o(1236),w=o(2e3);let tn=(()=>{class e{transform(i){return i?i.replace(/([a-z])([A-Z])/g,"$1 $2"):""}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275pipe=n.EJ8({name:"camelToWords",type:e,pure:!0})}return e})();const en=["itemTemplate"],Z=e=>({$implicit:e});function on(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function q(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function D(e,l){if(1&e&&(n.j41(0,"nz-list-item",10),n.DNE(1,on,3,4,"ng-container",11)(2,q,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function cn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG();n.Mz_("nzNoResult","No ",i.entityType,"")}}function H(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(3);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function W(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function un(e,l){if(1&e&&(n.j41(0,"nz-list-item",17),n.DNE(1,H,3,4,"ng-container",11)(2,W,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function vn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(3);n.Mz_("nzNoResult","No ",i.entityType," Removed")}}function pn(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,un,4,2,"nz-list-item",16)(2,vn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG(2);n.Mz_("nzHeader","Removed ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.removedObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.removedObjects.length)}}function zn(e,l){1&e&&(n.qex(0),n.DNE(1,pn,3,4,"nz-list",8),n.bVm())}function Cn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(2);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function hn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function Tn(e,l){if(1&e&&(n.j41(0,"nz-list-item",19),n.DNE(1,Cn,3,4,"ng-container",11)(2,hn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function Rn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(2);n.Mz_("nzNoResult","No ",i.entityType," Added")}}function En(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,Tn,4,2,"nz-list-item",18)(2,Rn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG();n.Mz_("nzHeader","Added ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.addedObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.addedObjects.length)}}function yn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(3);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function bn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function Gn(e,l){if(1&e&&(n.j41(0,"nz-list-item",21),n.DNE(1,yn,3,4,"ng-container",11)(2,bn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function Fn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(3);n.Mz_("nzNoResult","No ",i.entityType," Kept")}}function xn(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,Gn,4,2,"nz-list-item",20)(2,Fn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG(2);n.Mz_("nzHeader","Kept ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.keptObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.keptObjects.length)}}function Sn(e,l){1&e&&(n.qex(0),n.DNE(1,xn,3,4,"nz-list",8),n.bVm())}function In(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function Dn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function $n(e,l){if(1&e&&(n.j41(0,"nz-list-item",22),n.DNE(1,In,3,4,"ng-container",11)(2,Dn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function On(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG();n.Mz_("nzNoResult","No ",i.entityType,"")}}let Ln=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.diffObject)throw new Error("Must specify a diffObject.");if(void 0===this.entityType)throw new Error("Must specify an entityType.")}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(_,p,R){if(1&_&&n.wni(R,en,5),2&_){let U;n.mGM(U=n.lsd())&&(p.itemTemplateRef=U.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:14,consts:[["deleted",""],[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader"],["ngClass","current",4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nzDirection","vertical"],[4,"ngIf"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader",4,"nzSpaceItem"],["ngClass","suggested",4,"ngFor","ngForOf"],["ngClass","current"],[4,"ngIf","ngIfElse"],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nzColor","error"],[3,"nzNoResult"],["ngClass","removed",4,"ngFor","ngForOf"],["ngClass","removed"],["ngClass","added",4,"ngFor","ngForOf"],["ngClass","added"],["ngClass","kept",4,"ngFor","ngForOf"],["ngClass","kept"],["ngClass","suggested"]],template:function(_,p){1&_&&(n.j41(0,"nz-row",1)(1,"nz-col",2)(2,"nz-list",3),n.DNE(3,D,4,2,"nz-list-item",4)(4,cn,1,2,"nz-list-empty",5),n.k0s()(),n.j41(5,"nz-col",2)(6,"nz-space",6),n.DNE(7,zn,2,0,"ng-container",7)(8,En,3,4,"nz-list",8)(9,Sn,2,0,"ng-container",7),n.k0s()(),n.j41(10,"nz-col",2)(11,"nz-list",3),n.DNE(12,$n,4,2,"nz-list-item",9)(13,On,1,2,"nz-list-empty",5),n.k0s()()()),2&_&&(n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",8),n.R7$(),n.Mz_("nzHeader","Original ",p.entityType," List"),n.R7$(),n.Y8G("ngForOf",p.diffObject.currentObjects),n.R7$(),n.Y8G("ngIf",0===p.diffObject.currentObjects.length),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.Y8G("ngIf",p.diffObject.currentObjects.length>0),n.R7$(2),n.Y8G("ngIf",p.diffObject.currentObjects.length>0),n.R7$(),n.Y8G("nzSpan",8),n.R7$(),n.Mz_("nzHeader","Revised ",p.entityType," List"),n.R7$(),n.Y8G("ngForOf",p.diffObject.suggestedObjects),n.R7$(),n.Y8G("ngIf",0===p.diffObject.suggestedObjects.length))},dependencies:[v.YU,v.Sq,v.bT,v.T3,u.eE,u.nt,u.lQ,E.Uq,E.e,P.s,$.U5,$.Dq,tn],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return e})();var jn=o(3245),Mn=o(9062);let Pn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.left)throw new Error("Must provide a left side of the diff.");if(void 0===this.right)throw new Error("Must provide a right side of the diff.");if(void 0===this.entityType)throw new Error("Must provide a diff.")}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-value-diff"]],inputs:{currentValue:"currentValue",suggestedValue:"suggestedValue",left:"left",right:"right",entityType:"entityType"},decls:15,vars:10,consts:[[3,"nzGutter"],[3,"nzSpan"],[3,"innerHtml"],[1,"diff","suggested"],[1,"background"]],template:function(_,p){1&_&&(n.j41(0,"nz-row",0)(1,"nz-col",1)(2,"h4"),n.EFF(3),n.k0s(),n.nrm(4,"div",2),n.k0s(),n.j41(5,"nz-col",1)(6,"h4"),n.EFF(7),n.k0s(),n.nrm(8,"div",2),n.k0s(),n.j41(9,"nz-col",1)(10,"h4"),n.EFF(11),n.k0s(),n.j41(12,"div",3)(13,"div",4),n.EFF(14),n.k0s()()()()),2&_&&(n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("Original ",p.entityType,""),n.R7$(),n.Y8G("innerHtml",p.left,n.npT),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("",p.entityType," Diff"),n.R7$(),n.Y8G("innerHtml",p.right,n.npT),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("Revised ",p.entityType,""),n.R7$(3),n.SpI(" ",p.suggestedValue," "))},dependencies:[E.Uq,E.e],styles:[":host{display:block}.diff{overflow:auto;width:100%}.diff .background{padding:4px 8px}.diff.insertions .background{background:#f6ffed;color:#237804}.diff.deletions .background{background:#fff1f0;color:#a8071a}.diff.suggested .background,.diff.original .background{background:#f0f5ff;color:#10239e}.diff del,.diff ins{text-decoration:none}.diff del strong{font-weight:400;background:#fcc}.diff ins strong{font-weight:400;background:#9f9}.diff .del{font-weight:400;background:#fee;color:#b00}.diff .ins{font-weight:400;background:#dfd;color:#080}ul{list-style:none}\n"],encapsulation:2})}return e})();var Nn=o(6408),An=o(9861),Yn=o(9563),sn=o(7047),Vn=o(959),Xn=o(9045),Bn=o(6073),Un=o(311),kn=o(5566),Wn=o(5473),Kn=o(4126),Qn=o(6440),gn=o(4696),Hn=o(3617),Jn=o(1845),Zn=o(3075),wn=o(8139);const mn=(e,l,i,_,p)=>({id:e,name:l,link:i,deprecated:_,flagged:p}),an=(e,l,i,_)=>({id:e,name:l,link:i,deprecated:_}),dn=(e,l,i)=>({id:e,name:l,link:i}),fn=(e,l,i,_,p,R)=>({id:e,name:l,link:i,feature:_,deprecated:p,flagged:R}),qn=(e,l,i,_,p)=>({id:e,name:l,link:i,status:_,flagged:p}),nt=()=>({float:"right"});function tt(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-alert",17),n.bIt("nzOnClose",function(){const p=n.eBV(i).$implicit,R=n.XpG();return n.Njj(R.onErrorBannerClose(p))}),n.k0s()}2&e&&n.Y8G("nzMessage",l.$implicit)}function et(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-alert",18),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG();return n.Njj(p.onSuccessBannerClose())}),n.k0s()}if(2&e){const i=n.XpG();n.Mz_("nzMessage","Revision(s) successfully ",i.success,".")}}function ln(e,l){if(1&e&&n.nrm(0,"cvc-feature-tag",29),2&e){const i=l.$implicit;n.Y8G("feature",n.s1E(1,mn,i.id,i.displayName,i.link,i.deprecated,i.flagged))}}function it(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",28),n.DNE(2,ln,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ot(e,l){1&e&&n.nrm(0,"cvc-source-tag",31),2&e&&n.Y8G("source",l.$implicit)}function st(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",30),n.DNE(2,ot,1,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function at(e,l){if(1&e&&n.nrm(0,"cvc-disease-tag",33),2&e){const i=l.$implicit;n.Y8G("disease",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function lt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",32),n.DNE(2,at,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function rt(e,l){if(1&e&&n.nrm(0,"cvc-molecular-profile-tag",35),2&e){const i=l.$implicit;n.Y8G("molecularProfile",n.s1E(1,mn,i.id,i.displayName,i.link,i.deprecated,i.flagged))}}function _t(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",34),n.DNE(2,rt,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ct(e,l){if(1&e&&n.nrm(0,"cvc-therapy-tag",37),2&e){const i=l.$implicit;n.Y8G("therapy",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function pt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",36),n.DNE(2,ct,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function gt(e,l){if(1&e&&n.nrm(0,"cvc-therapy-tag",37),2&e){const i=l.$implicit;n.Y8G("therapy",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function mt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",36),n.DNE(2,gt,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function dt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function ft(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",38),n.DNE(2,dt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ut(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function vt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",39),n.DNE(2,ut,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function zt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function Ct(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",40),n.DNE(2,zt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ht(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function r(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",41),n.DNE(2,ht,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function g(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function a(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",42),n.DNE(2,g,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function m(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function z(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",43),n.DNE(2,m,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function L(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function rn(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",44),n.DNE(2,L,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function bt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function Gt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",45),n.DNE(2,bt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Ft(e,l){if(1&e&&n.nrm(0,"cvc-variant-type-tag",47),2&e){const i=l.$implicit;n.Y8G("variantType",n.sMw(1,dn,i.id,i.displayName,i.link))}}function xt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",46),n.DNE(2,Ft,1,5,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function St(e,l){if(1&e&&n.nrm(0,"cvc-phenotype-tag",49),2&e){const i=l.$implicit;n.Y8G("phenotype",n.sMw(1,dn,i.id,i.displayName,i.link))}}function It(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",48),n.DNE(2,St,1,5,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Dt(e,l){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",51),2&e){const i=l.$implicit;n.Y8G("variant",n.l4e(1,fn,i.id,i.displayName,i.link,i.feature,i.deprecated,i.flagged))}}function $t(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",50),n.DNE(2,Dt,1,8,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Ot(e,l){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",51),2&e){const i=l.$implicit;n.Y8G("variant",n.l4e(1,fn,i.id,i.displayName,i.link,i.feature,i.deprecated,i.flagged))}}function Lt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",52),n.DNE(2,Ot,1,8,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function jt(e,l){1&e&&n.nrm(0,"cvc-source-tag",31),2&e&&n.Y8G("source",l.$implicit)}function Mt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",53),n.DNE(2,jt,1,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Pt(e,l){if(1&e&&n.nrm(0,"cvc-evidence-tag",55),2&e){const i=l.$implicit;n.Y8G("evidence",n.s1E(1,qn,i.id,i.displayName,i.link,i.status,i.flagged))}}function Nt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",54),n.DNE(2,Pt,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function At(e,l){if(1&e&&(n.qex(0),n.nrm(1,"cvc-revision-value-diff",56),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("currentValue",i.currentValue)("suggestedValue",i.suggestedValue)("left",i.linkoutData.diffValue.left)("right",i.linkoutData.diffValue.right)("entityType",i.linkoutData.name)}}function Yt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"cvc-comment-body",60),n.bVm()),2&e){const i=n.XpG(2).$implicit;n.R7$(),n.Y8G("commentBodySegments",i.resolutionActivity.parsedNote)}}function Vt(e,l){if(1&e&&n.nrm(0,"cvc-user-tag",61),2&e){const i=n.XpG(2).$implicit;n.Y8G("user",i.resolutionActivity.user)}}function Xt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"nz-divider"),n.j41(2,"nz-row")(3,"nz-col",57),n.DNE(4,Yt,2,1,"ng-container",27),n.k0s(),n.j41(5,"nz-col",58),n.EFF(6),n.nI1(7,"enumToTitle"),n.DNE(8,Vt,1,1,"cvc-user-tag",59),n.EFF(9),n.nI1(10,"timeAgo"),n.k0s()(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(4),n.Y8G("ngIf",null==i.resolutionActivity?null:i.resolutionActivity.parsedNote),n.R7$(2),n.SpI(" ",n.bMT(7,4,i.status)," By "),n.R7$(2),n.Y8G("ngIf",void 0!==(null==i.resolutionActivity?null:i.resolutionActivity.user)),n.R7$(),n.SpI(" ",n.bMT(10,6,null==i.resolutionActivity?null:i.resolutionActivity.createdAt)," ")}}function Bt(e,l){if(1&e&&(n.j41(0,"span"),n.nrm(1,"i",63),n.nI1(2,"entityColor"),n.EFF(3),n.j41(4,"span"),n.EFF(5),n.k0s()()),2&e){const i=n.XpG(2).$implicit;n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,3,"Revision")),n.R7$(2),n.SpI(" RID",i.id," "),n.R7$(2),n.SpI("",i.linkoutData.name," Updated")}}function Ut(e,l){if(1&e&&n.nrm(0,"i",65),2&e){n.XpG();const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function kt(e,l){if(1&e&&n.nrm(0,"cvc-comment-body",60),2&e){const i=n.XpG(3).$implicit;n.Y8G("commentBodySegments",i.creationActivity.parsedNote)}}function Wt(e,l){1&e&&(n.qex(0),n.DNE(1,Ut,1,1,"i",64)(2,kt,1,1,"ng-template",null,5,n.C5r),n.bVm())}function Kt(e,l){if(1&e&&(n.j41(0,"nz-space"),n.DNE(1,Bt,6,5,"span",62)(2,Wt,4,0,"ng-container",27),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(2),n.Y8G("ngIf",null==i.creationActivity?null:i.creationActivity.parsedNote)}}function Qt(e,l){if(1&e&&(n.j41(0,"span",71),n.EFF(1," for\xa0 "),n.k0s(),n.nrm(2,"cvc-organization-tag",72)),2&e){const i=n.XpG(4).$implicit;n.R7$(2),n.Y8G("org",i.creationActivity.organization)}}function Ht(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",71),n.EFF(2," By\xa0 "),n.k0s(),n.nrm(3,"cvc-user-tag",61),n.DNE(4,Qt,3,1),n.bVm()),2&e){const i=n.XpG(3).$implicit;n.R7$(3),n.Y8G("user",i.creationActivity.user),n.R7$(),n.vxM(null!=i.creationActivity&&i.creationActivity.organization?4:-1)}}function Jt(e,l){1&e&&(n.j41(0,"span",71),n.EFF(1,"Submitted"),n.k0s())}function Zt(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ht,5,2,"ng-container",70)(2,Jt,2,0,"ng-template",null,6,n.C5r),n.j41(4,"span",71),n.EFF(5),n.nI1(6,"timeAgo"),n.k0s()()),2&e){const i=n.sdS(3),_=n.XpG(2).$implicit;n.R7$(),n.Y8G("ngIf",null==_.creationActivity?null:_.creationActivity.user)("ngIfElse",i),n.R7$(4),n.JRh(n.bMT(6,3,_.createdAt))}}function wt(e,l){if(1&e&&n.nrm(0,"cvc-status-tag",73),2&e){const i=n.XpG(2).$implicit;n.Y8G("status",i.status)}}function qt(e,l){1&e&&n.nrm(0,"nz-divider",74)}function ne(e,l){if(1&e){const i=n.RV6();n.j41(0,"a",75),n.bIt("click",function(){n.eBV(i);const p=n.XpG(2).$implicit,R=n.XpG(3);return n.Njj(R.onChangesetSelected(p.revisionSetId))}),n.EFF(1,"Show Group"),n.k0s()}}function te(e,l){1&e&&n.nrm(0,"nz-divider",74)}function ee(e,l){1&e&&n.nrm(0,"label",77),2&e&&n.Y8G("nzDisabled",!0)}function ie(e,l){1&e&&n.nrm(0,"label",79),2&e&&n.Y8G("nzDisabled",!0)}function oe(e,l){if(1&e){const i=n.RV6();n.j41(0,"label",80),n.bIt("nzCheckedChange",function(p){n.eBV(i);const R=n.XpG(5).$implicit,U=n.XpG(3);return n.Njj(U.onRevisionCheckboxClicked(p,R.id))}),n.k0s()}}function se(e,l){if(1&e&&n.DNE(0,ie,1,1,"label",78)(1,oe,1,0,"ng-template",null,8,n.C5r),2&e){const i=n.sdS(2),_=n.XpG(4).$implicit,p=n.XpG(2).ngrxLet;n.Y8G("ngIf",p.isCurator&&p.id!=(null==_.creationActivity?null:_.creationActivity.user.id))("ngIfElse",i)}}function ae(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,ee,1,1,"label",76)(2,se,3,2,"ng-template",null,7,n.C5r),n.k0s()),2&e){const i=n.sdS(3),_=n.XpG(5).ngrxLet;n.R7$(),n.Y8G("ngIf",!_.signedIn)("ngIfElse",i)}}function le(e,l){1&e&&(n.qex(0),n.DNE(1,te,1,0,"nz-divider",68)(2,ae,4,2,"span",62),n.bVm())}function re(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-space",66),n.bIt("click",function(p){return n.eBV(i),n.Njj(p.stopPropagation())}),n.DNE(1,Zt,7,5,"span",62)(2,wt,1,1,"cvc-status-tag",67)(3,qt,1,0,"nz-divider",68)(4,ne,2,0,"a",69)(5,le,3,0,"ng-container",27),n.k0s()}if(2&e){const i=n.XpG().$implicit;n.R7$(5),n.Y8G("ngIf","NEW"===i.status)}}function _e(e,l){if(1&e&&(n.j41(0,"nz-collapse-panel",23),n.qex(1,24),n.DNE(2,it,4,1,"ng-container",25)(3,st,4,1,"ng-container",25)(4,lt,4,1,"ng-container",25)(5,_t,4,1,"ng-container",25)(6,pt,4,1,"ng-container",25)(7,mt,4,1,"ng-container",25)(8,ft,4,1,"ng-container",25)(9,vt,4,1,"ng-container",25)(10,Ct,4,1,"ng-container",25)(11,r,4,1,"ng-container",25)(12,a,4,1,"ng-container",25)(13,z,4,1,"ng-container",25)(14,rn,4,1,"ng-container",25)(15,Gt,4,1,"ng-container",25)(16,xt,4,1,"ng-container",25)(17,It,4,1,"ng-container",25)(18,$t,4,1,"ng-container",25)(19,Lt,4,1,"ng-container",25)(20,Mt,4,1,"ng-container",25)(21,Nt,4,1,"ng-container",25)(22,At,2,5,"ng-container",26),n.bVm(),n.DNE(23,Xt,11,8,"ng-container",27)(24,Kt,3,1,"ng-template",null,2,n.C5r)(26,re,6,1,"ng-template",null,3,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(25),p=n.sdS(27);n.Y8G("nzHeader",_)("nzExtra",p)("nzActive",!0),n.R7$(),n.Y8G("ngSwitch",i.fieldName),n.R7$(),n.Y8G("ngSwitchCase","feature_id"),n.R7$(),n.Y8G("ngSwitchCase","source_ids"),n.R7$(),n.Y8G("ngSwitchCase","disease_id"),n.R7$(),n.Y8G("ngSwitchCase","molecular_profile_id"),n.R7$(),n.Y8G("ngSwitchCase","drug_ids"),n.R7$(),n.Y8G("ngSwitchCase","therapy_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","feature_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","molecular_profile_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","clinvar_entry_ids"),n.R7$(),n.Y8G("ngSwitchCase","clingen_code_ids"),n.R7$(),n.Y8G("ngSwitchCase","acmg_code_ids"),n.R7$(),n.Y8G("ngSwitchCase","nccn_guideline_id"),n.R7$(),n.Y8G("ngSwitchCase","hgvs_description_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_type_ids"),n.R7$(),n.Y8G("ngSwitchCase","phenotype_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_id"),n.R7$(),n.Y8G("ngSwitchCase","variant_ids"),n.R7$(),n.Y8G("ngSwitchCase","source_id"),n.R7$(),n.Y8G("ngSwitchCase","evidence_item_ids"),n.R7$(2),n.Y8G("ngIf","NEW"!==i.status)}}function ce(e,l){if(1&e&&(n.j41(0,"nz-collapse",21),n.DNE(1,_e,28,25,"nz-collapse-panel",22),n.k0s()),2&e){const i=n.XpG(2);n.R7$(),n.Y8G("ngForOf",i.untypedRevisons)}}function pe(e,l){1&e&&n.nrm(0,"nz-empty",81)}function ge(e,l){if(1&e&&(n.qex(0),n.j41(1,"nz-card",19),n.DNE(2,ce,2,1,"nz-collapse",20)(3,pe,1,0,"ng-template",null,1,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.sdS(4),_=n.XpG(),p=n.sdS(4);n.R7$(),n.Y8G("nzExtra",p),n.R7$(),n.Y8G("ngIf",_.revisions&&_.revisions.length>0)("ngIfElse",i)}}function me(e,l){}function de(e,l){1&e&&n.DNE(0,me,0,0,"ng-template")}function fe(e,l){if(1&e&&(n.qex(0),n.DNE(1,de,1,0,null,85),n.bVm()),2&e){n.XpG();const i=n.sdS(5);n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function ue(e,l){}function ve(e,l){1&e&&n.DNE(0,ue,0,0,"ng-template")}function ze(e,l){if(1&e&&(n.j41(0,"span",86),n.DNE(1,ve,1,0,null,85),n.k0s()),2&e){n.XpG();const i=n.sdS(5);n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function Ce(e,l){if(1&e){const i=n.RV6();n.j41(0,"button",87),n.mxI("nzPopoverVisibleChange",function(p){n.eBV(i);const R=n.XpG(7);return n.DH7(R.validationPopoverVisible,p)||(R.validationPopoverVisible=p),n.Njj(p)}),n.bIt("click",function(){n.eBV(i);const p=n.XpG(7);return n.Njj(p.validationPopoverVisible=!p.validationPopoverVisible)}),n.EFF(1," Review Selected Revisions "),n.nrm(2,"i",88),n.k0s()}if(2&e){const i=n.XpG(2).ngrxLet,_=n.sdS(7),p=n.sdS(9),R=n.XpG(5);n.Y8G("nzPopoverTitle",_),n.R50("nzPopoverVisible",R.validationPopoverVisible),n.Y8G("nzPopoverContent",p)("nzPopoverTrigger",void 0)("disabled",0===R.selectedRevisionIds.length||!i.signedIn)}}function he(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,fe,2,1,"ng-container",70)(2,ze,2,1,"ng-template",null,12,n.C5r)(4,Ce,3,5,"ng-template",null,13,n.C5r),n.k0s()),2&e){const i=n.sdS(3),_=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",_.signedIn)("ngIfElse",i)}}function Te(e,l){if(1&e&&n.nrm(0,"i",90),2&e){n.XpG(4);const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function Re(e,l){1&e&&(n.qex(0),n.DNE(1,Te,1,1,"i",89),n.bVm())}function Ee(e,l){if(1&e){const i=n.RV6();n.EFF(0," Review Selected Revisions "),n.j41(1,"span",91)(2,"i",92),n.bIt("click",function(){n.eBV(i);const p=n.XpG(6);return n.Njj(p.validationPopoverVisible=!1)}),n.k0s()()}2&e&&(n.R7$(),n.Y8G("ngStyle",n.lJ4(1,nt)))}function ye(e,l){if(1&e){const i=n.RV6();n.j41(0,"cvc-comment-input-form",95),n.mxI("commentChange",function(p){n.eBV(i);const R=n.XpG(7);return n.DH7(R.revisionComment,p)||(R.revisionComment=p),n.Njj(p)}),n.k0s()}if(2&e){const i=n.XpG(7);n.R50("comment",i.revisionComment)}}function be(e,l){if(1&e){const i=n.RV6();n.j41(0,"span")(1,"button",96),n.bIt("click",function(){n.eBV(i);const p=n.XpG(8);return n.Njj(p.onRejectRevisionsClicked())}),n.EFF(2," Reject Revision "),n.k0s()()}if(2&e){const i=n.XpG(8);n.R7$(),n.Y8G("nzLoading",i.isLoading)("disabled",void 0===i.revisionComment||i.revisionComment.length<10)("nzTooltipTrigger",i.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==i.mostRecentOrg?null:i.mostRecentOrg.name))}}function Ge(e,l){if(1&e){const i=n.RV6();n.j41(0,"span")(1,"button",97),n.bIt("click",function(){n.eBV(i);const p=n.XpG(8);return n.Njj(p.onAcceptRevisionClicked())}),n.EFF(2," Accept Revision "),n.k0s()()}if(2&e){const i=n.XpG(4).ngrxLet,_=n.XpG(4);n.R7$(),n.Y8G("nzLoading",_.isLoading)("disabled",!(0==i&&(void 0===_.revisionComment||""===_.revisionComment||_.revisionComment.length>=10)))("nzTooltipTrigger",_.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==_.mostRecentOrg?null:_.mostRecentOrg.name))}}function Fe(e,l){if(1&e&&n.nrm(0,"i",99),2&e){n.XpG(6);const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function xe(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Fe,1,1,"i",98),n.k0s()),2&e){const i=n.XpG(4).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i>0)}}function Se(e,l){1&e&&(n.j41(0,"span")(1,"nz-space"),n.DNE(2,be,3,4,"span",62)(3,Ge,3,4,"span",62)(4,xe,2,1,"span",62),n.k0s()())}function Ie(e,l){1&e&&(n.j41(0,"nz-space",93),n.DNE(1,ye,1,1,"cvc-comment-input-form",94)(2,Se,5,0,"span",62),n.k0s())}function De(e,l){if(1&e&&(n.qex(0),n.j41(1,"div",82)(2,"div",83)(3,"nz-space",84),n.DNE(4,he,6,2,"span",62)(5,Re,2,0,"ng-container",27),n.k0s(),n.DNE(6,Ee,3,2,"ng-template",null,10,n.C5r)(8,Ie,3,0,"ng-template",null,11,n.C5r),n.k0s()(),n.bVm()),2&e){const i=n.XpG().ngrxLet;n.R7$(5),n.Y8G("ngIf",i&&i>0)}}function $e(e,l){if(1&e&&(n.qex(0),n.DNE(1,De,10,1,"ng-container",16),n.bVm()),2&e){const i=n.XpG(4);n.R7$(),n.Y8G("ngrxLet",i.viewer$)}}function Oe(e,l){if(1&e&&(n.j41(0,"nz-list-item"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i)}}function Le(e,l){if(1&e&&(n.j41(0,"nz-card",101)(1,"nz-list",102),n.DNE(2,Oe,2,1,"nz-list-item",103),n.k0s()()),2&e){const i=n.XpG(3).ngrxLet;n.R7$(2),n.Y8G("ngForOf",i)}}function je(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Le,3,1,"nz-card",100),n.k0s()),2&e){const i=n.XpG(2).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i.length>0)}}function Me(e,l){if(1&e&&(n.j41(0,"nz-descriptions-item",108),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.Y8G("nzTitle",i.fieldName),n.R7$(),n.JRh(i.error)}}function Pe(e,l){if(1&e&&(n.j41(0,"nz-card",105)(1,"nz-descriptions",106),n.DNE(2,Me,2,2,"nz-descriptions-item",107),n.k0s()()),2&e){const i=n.XpG(4).ngrxLet;n.R7$(2),n.Y8G("ngForOf",i)}}function Ne(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Pe,3,1,"nz-card",104),n.k0s()),2&e){const i=n.XpG(3).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i.length>0)}}function Ae(e,l){1&e&&(n.j41(0,"nz-space",93),n.DNE(1,je,2,1,"span",62)(2,Ne,2,1,"span",62),n.k0s())}function Ye(e,l){if(1&e&&(n.qex(0),n.DNE(1,$e,2,1,"ng-container",16)(2,Ae,3,0,"ng-template",null,9,n.C5r),n.bVm()),2&e){const i=n.XpG(3);n.R7$(),n.Y8G("ngrxLet",i.totalErrorCount$)}}function Ve(e,l){if(1&e&&(n.qex(0),n.DNE(1,Ye,4,1,"ng-container",16),n.bVm()),2&e){const i=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",i.genericErrors$)}}function Xe(e,l){if(1&e&&n.DNE(0,Ve,2,1,"ng-container",16),2&e){const i=n.XpG();n.Y8G("ngrxLet",i.validationErrors$)}}let Be=(()=>{class e{constructor(i,_,p,R,U){this.viewerService=i,this.networkErrorService=_,this.acceptRevisionsGql=p,this.rejectRevisionsGql=R,this.validationGql=U,this.refetchQueries=[],this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new j.B,this.revisionSetSelectedEvent=new n.bkB,this.revisionMutationCompleted=new n.bkB,this.acceptRevisionsMutator=new I.E(this.networkErrorService),this.rejectRevisionsMutator=new I.E(this.networkErrorService),this.viewer$=this.viewerService.viewer$}ngOnChanges(i){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewerService.viewer$.subscribe(i=>{this.mostRecentOrg=i.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,G.E)("data","validateRevisionsForAcceptance","genericErrors"),(0,F.p)(Y.kP),(0,S.Z)([])),this.validationErrors$=this.queryRef.valueChanges.pipe((0,G.E)("data","validateRevisionsForAcceptance","validationErrors"),(0,F.p)(Y.kP),(0,S.Z)([])),this.totalErrorCount$=(0,M.z)([this.genericErrors$,this.validationErrors$]).pipe((0,s.T)(([i,_])=>i.length+_.length),(0,S.Z)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(i){this.revisionSetSelectedEvent.emit(i)}onRevisionCheckboxClicked(i,_){i?this.selectedRevisionIds.push(_):this.selectedRevisionIds=this.selectedRevisionIds.filter(p=>p!=_),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(i,_){i.submitSuccess$.pipe((0,O.Q)(this.destroy$)).subscribe(p=>{p&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=_,this.validationPopoverVisible=!1,this.selectedRevisionIds=[],this.revisionComment=void 0)}),i.submitError$.pipe((0,O.Q)(this.destroy$)).subscribe(p=>{p.length>0&&(this.isLoading=!1,this.success=!1,this.errors=p,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let i=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:this.mostRecentOrg?.id,comment:this.revisionComment}},{refetchQueries:this.refetchQueries});this.setupMutationResultHandlers(i,"rejected")}}onAcceptRevisionClicked(){this.isLoading=!0;let i=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:this.mostRecentOrg?.id,comment:""===this.revisionComment?void 0:this.revisionComment}},{refetchQueries:this.refetchQueries});this.setupMutationResultHandlers(i,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(i){this.errors=this.errors?.filter(_=>_!=i)}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(_){return new(_||e)(n.rXU(h.q),n.rXU(C.N),n.rXU(c.QZR),n.rXU(c.BMV),n.rXU(c.ZFx))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions",refetchQueries:"refetchQueries"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.OA$],decls:5,vars:3,consts:[["moderationButtons",""],["noRevisions",""],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["itemTemplate",""],["creationCommentTemplate",""],["noRevisor",""],["loggedIn",""],["canRevise",""],["validationErrorTemplate",""],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["entityType","Feature",3,"diffObject"],[3,"feature"],["entityType","Sources",3,"diffObject"],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Molecular Profile",3,"diffObject"],[3,"molecularProfile"],["entityType","Therapies",3,"diffObject"],[3,"therapy"],["entityType","Variant Aliases",3,"diffObject"],["entityType","Feature Aliases",3,"diffObject"],["entityType","Molecular Profile Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","ClinGen/CGC/VICC Code(s)",3,"diffObject"],["entityType","ACMG/AMP Code(s)",3,"diffObject"],["entityType","NCCN Guideline",3,"diffObject"],["entityType","HGVS Descriptions",3,"diffObject"],["entityType","Variant Types",3,"diffObject"],[3,"variantType"],["entityType","Phenotypes",3,"diffObject"],[3,"phenotype"],["entityType","Variant",3,"diffObject"],[3,"variant"],["entityType","Variants",3,"diffObject"],["entityType","Source",3,"diffObject"],["entityType","Evidence",3,"diffObject"],[3,"evidence"],[3,"currentValue","suggestedValue","left","right","entityType"],["nzSpan","16"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"commentBodySegments"],[3,"user"],[4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent"],["nzSize","small",3,"click"],[3,"status",4,"nzSpaceItem"],["nzType","vertical",4,"nzSpaceItem"],["nz-button","","nzType","link",3,"click",4,"nzSpaceItem"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],[3,"org"],[3,"status"],["nzType","vertical"],["nz-button","","nzType","link",3,"click"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Select Revision for Acceptance/Rejection",3,"nzCheckedChange"],["nzNotFoundImage","simple","nzNotFoundContent","No Revisions matching filters"],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverVisibleChange","click","nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzDirection","vertical"],[3,"comment","commentChange",4,"nzSpaceItem"],[3,"commentChange","comment"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","","nz-tooltip","",3,"click","nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nz-tooltip","",3,"click","nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"ngIf"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],["nzTitle","Errors",4,"ngIf"],["nzTitle","Errors"],["nzSize","small"],[4,"ngFor","ngForOf"],["nzTitle","Validation Errors",4,"ngIf"],["nzTitle","Validation Errors"],["nzBordered",""],[3,"nzTitle",4,"ngFor","ngForOf"],[3,"nzTitle"]],template:function(_,p){1&_&&n.DNE(0,tt,1,1,"nz-alert",14)(1,et,1,2,"nz-alert",15)(2,ge,5,3,"ng-container",16)(3,Xe,1,1,"ng-template",null,0,n.C5r),2&_&&(n.Y8G("ngForOf",p.errors),n.R7$(),n.Y8G("ngIf",p.success),n.R7$(),n.Y8G("ngrxLet",p.viewer$))},dependencies:[v.Sq,v.bT,v.T3,v.B3,v.ux,v.e1,v.fG,E.Uq,E.e,u.eE,u.lQ,d.cK,$.U5,$.Dq,P.s,T.Di,X.RW,B.$g,K.j,J.LH,nn.L_,k.Dn,w.xA,w.gr,Ln,jn._,Mn.D,Pn,Nn.r,An.Y,Yn.R,sn.A,Vn.j,Xn.J,Bn.h,Un.g,kn.K,Wn.z,Kn.p,Qn.r,gn.Vz,gn.pc,A.aO,x.c,V.p,Hn.Y,f.Nj,Jn.f,Zn.R,wn.N],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}"]})}return e})();const Tt=()=>[];function Ue(e,l){if(1&e){const i=n.RV6();n.j41(0,"cvc-revision-list",16),n.nI1(1,"ngrxPush"),n.bIt("revisionSetSelectedEvent",function(p){n.eBV(i);const R=n.XpG(2);return n.Njj(R.onRevisionSetSelected(p))})("revisionMutationCompleted",function(){n.eBV(i);const p=n.XpG(2);return n.Njj(p.refresh())}),n.k0s()}if(2&e){const i=n.XpG(2);n.Y8G("revisions",n.bMT(1,2,i.revisions$))("refetchQueries",i.refetchQueries)}}function ke(e,l){if(1&e){const i=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(i);const p=n.XpG(2).ngrxLet,R=n.XpG(2);return n.Njj(R.loadMore(null==p?null:p.endCursor))}),n.EFF(1," Load More "),n.k0s()}}function We(e,l){1&e&&(n.qex(0),n.DNE(1,ke,2,0,"button",18),n.bVm())}function Ke(e,l){if(1&e&&(n.qex(0),n.DNE(1,We,2,0,"ng-container",17),n.bVm()),2&e){const i=l.ngrxLet;n.R7$(),n.Y8G("ngIf",i&&(null==i?null:i.hasNextPage)&&i.endCursor)}}function Qe(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-row")(1,"nz-tag",21),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG(3);return n.Njj(p.onSetFilterClearClicked())}),n.EFF(2),n.k0s()()}if(2&e){const i=n.XpG(3);n.R7$(2),n.SpI("Group: ",i.filteredSet,"")}}function He(e,l){1&e&&(n.j41(0,"nz-space",7),n.DNE(1,Qe,3,1,"nz-row",20),n.k0s())}function Je(e,l){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i.displayName)}}function Ze(e,l){if(1&e&&n.nrm(0,"nz-avatar",23),2&e){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function we(e,l){if(1&e&&(n.nrm(0,"nz-avatar",24),n.nI1(1,"uppercase")),2&e){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.username.charAt(0)))}}function qe(e,l){if(1&e&&(n.DNE(0,Ze,1,1,"nz-avatar",22)(1,we,2,3,"ng-template",null,2,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",_),n.R7$(4),n.JRh(i.username)}}function ni(e,l){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i.displayName)}}function ti(e,l){if(1&e&&n.nrm(0,"nz-avatar",23),2&e){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function ei(e,l){if(1&e&&(n.nrm(0,"nz-avatar",24),n.nI1(1,"uppercase")),2&e){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.username.charAt(0)))}}function ii(e,l){if(1&e&&(n.DNE(0,ti,1,1,"nz-avatar",22)(1,ei,2,3,"ng-template",null,2,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",_),n.R7$(4),n.JRh(i.username)}}function oi(e,l){if(1&e){const i=n.RV6();n.qex(0),n.j41(1,"nz-row",5)(2,"nz-col",6)(3,"nz-space",7),n.DNE(4,Ue,2,4,"cvc-revision-list",8)(5,Ke,2,1,"ng-container",9),n.k0s()(),n.j41(6,"nz-col",10),n.DNE(7,He,2,0,"nz-space",11),n.j41(8,"cvc-participant-list",12),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onStatusSelected(p))}),n.DNE(9,Je,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(11,"cvc-participant-list",13),n.nI1(12,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onRevisorSelected(p))}),n.DNE(13,qe,5,3,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"cvc-participant-list",14),n.nI1(16,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onFieldNameSelected(p))}),n.DNE(17,ni,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(19,"cvc-participant-list",15),n.nI1(20,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const R=n.XpG();return n.Njj(R.onResolverSelected(p))}),n.DNE(21,ii,5,3,"ng-template",null,1,n.C5r),n.k0s()()(),n.bVm()}if(2&e){const i=n.XpG();n.R7$(),n.Y8G("nzGutter",16),n.R7$(4),n.Y8G("ngrxLet",i.pageInfo$),n.R7$(2),n.Y8G("ngIf",i.filteredSet),n.R7$(),n.Y8G("preselectedOption",i.preselectedRevisionStatus)("participantList",i.selectableStatuses),n.R7$(3),n.Y8G("participantList",n.bMT(12,8,i.uniqueRevisors$)||n.lJ4(14,Tt)),n.R7$(4),n.Y8G("participantList",n.bMT(16,10,i.revisionFields$)||n.lJ4(15,Tt)),n.R7$(4),n.Y8G("participantList",n.bMT(20,12,i.uniqueResolvers$)||n.lJ4(16,Tt))}}function si(e,l){1&e&&(n.qex(0),n.j41(1,"nz-row",25),n.nrm(2,"i",26),n.k0s(),n.bVm())}function ai(e,l){1&e&&n.nrm(0,"nz-empty",27)}function li(e,l){if(1&e&&(n.DNE(0,si,3,0,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,ai,1,0,"ng-template",null,3,n.C5r)),2&e){const i=n.sdS(3),_=n.XpG();n.Y8G("ngIf",n.bMT(1,2,_.isLoading$))("ngIfElse",i)}}let ri=(()=>{class e{constructor(i,_,p,R,U,_n,Rt,_i,ci,pi,gi,mi,di,fi){this.gql=i,this.route=_,this.variantDetailGql=p,this.variantSummaryGql=R,this.variantGroupDetailGql=U,this.variantGroupSummaryGql=_n,this.assertionDetailGql=Rt,this.assertionSummaryGql=_i,this.featureDetailGql=ci,this.featureSummaryGql=pi,this.evidenceDetailGql=gi,this.evidenceSummaryGql=mi,this.molecularProfileDetailGql=di,this.molecularProfileSummaryGql=fi,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:c.W14.New},{id:1,displayName:"Accepted",value:c.W14.Accepted},{id:2,displayName:"Rejected",value:c.W14.Rejected},{id:3,displayName:"Superseded",value:c.W14.Superseded}],this.preselectedRevisionStatus=this.selectableStatuses[0],this.defaultPageSize=10,this.refetchQueries=[]}ngOnInit(){switch(this.routeSub=this.route.params.subscribe(i=>{this.queryParamsSub=this.route.queryParams.subscribe(_=>{let p={first:this.defaultPageSize,subject:this.moderated,status:c.W14.New};_.revisionSetId&&(this.filteredSet=+_.revisionSetId,this.preselectedRevisionStatus=void 0,p.status=void 0,p.revisionSetId=+_.revisionSetId),this.queryRef=this.gql.watch(p);let R=this.queryRef.valueChanges;this.revisions$=R.pipe((0,G.E)("data","revisions","edges"),(0,s.T)(U=>U.map(_n=>_n.node))),this.isLoading$=R.pipe((0,s.T)(U=>U.loading),(0,S.Z)(!0)),this.pageInfo$=R.pipe((0,G.E)("data","revisions","pageInfo")),this.uniqueRevisors$=R.pipe((0,s.T)(({data:U})=>U.revisions?.uniqueRevisors)),this.uniqueResolvers$=R.pipe((0,s.T)(({data:U})=>U.revisions?.uniqueResolvers)),this.revisionFields$=R.pipe((0,s.T)(({data:U})=>U.revisions?.revisedFieldNames.map((_n,Rt)=>({..._n,id:Rt})))),this.unfilteredCount$=R.pipe((0,G.E)("data","revisions","unfilteredCountForSubject"))})}),this.moderated.entityType){case c.BlQ.Variant:return this.refetchQueries.push({query:this.variantDetailGql.document,variables:{variantId:this.moderated.id}}),void this.refetchQueries.push({query:this.variantSummaryGql.document,variables:{variantId:this.moderated.id}});case c.BlQ.Assertion:return this.refetchQueries.push({query:this.assertionDetailGql.document,variables:{assertionId:this.moderated.id}}),void this.refetchQueries.push({query:this.assertionSummaryGql.document,variables:{assertionId:this.moderated.id}});case c.BlQ.EvidenceItem:return this.refetchQueries.push({query:this.evidenceDetailGql.document,variables:{evidenceId:this.moderated.id}}),void this.refetchQueries.push({query:this.evidenceSummaryGql.document,variables:{evidenceId:this.moderated.id}});case c.BlQ.Feature:return this.refetchQueries.push({query:this.featureDetailGql.document,variables:{featureId:this.moderated.id}}),void this.refetchQueries.push({query:this.featureSummaryGql.document,variables:{featureId:this.moderated.id}});case c.BlQ.VariantGroup:return this.refetchQueries.push({query:this.variantGroupDetailGql.document,variables:{variantGroupId:this.moderated.id}}),void this.refetchQueries.push({query:this.variantGroupSummaryGql.document,variables:{variantGroupId:this.moderated.id}});case c.BlQ.MolecularProfile:return this.refetchQueries.push({query:this.molecularProfileDetailGql.document,variables:{molecularProfileId:this.moderated.id}}),void this.refetchQueries.push({query:this.molecularProfileSummaryGql.document,variables:{molecularProfileId:this.moderated.id}})}}ngOnDestroy(){this.routeSub?.unsubscribe(),this.queryParamsSub?.unsubscribe()}onFieldNameSelected(i){this.queryRef.refetch({subject:this.moderated,fieldName:i?i.name:void 0})}onRevisorSelected(i){this.queryRef.refetch({subject:this.moderated,originatingUserId:i?i.id:void 0})}onResolverSelected(i){this.queryRef.refetch({subject:this.moderated,resolvingUserId:i?i.id:void 0})}onStatusSelected(i){this.preselectedRevisionStatus=i,this.queryRef.refetch({subject:this.moderated,status:i?i.value:void 0})}onRevisionSetSelected(i){this.filteredSet=i,this.queryRef.refetch({subject:this.moderated,revisionSetId:i||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:this.moderated,revisionSetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(i){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:i}})}static#n=this.\u0275fac=function(_){return new(_||e)(n.rXU(c.xPr),n.rXU(t.nX),n.rXU(c.N47),n.rXU(c.yLZ),n.rXU(c.IbX),n.rXU(c.sAe),n.rXU(c.kKs),n.rXU(c.fqJ),n.rXU(c.ULh),n.rXU(c.gUZ),n.rXU(c.fQd),n.rXU(c.Ype),n.rXU(c.Tj8),n.rXU(c.SPr))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{moderated:"moderated"},decls:4,vars:4,consts:[["noRevisions",""],["itemTemplate",""],["noAvatar",""],["noneFound",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"revisions","refetchQueries","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Filter by Revision Status",3,"participantSelectedEvent","preselectedOption","participantList"],["listTitle","Filter by Revisor",3,"participantSelectedEvent","participantList"],["listTitle","Filter by Field",3,"participantSelectedEvent","participantList"],["listTitle","Filter by Resolver",3,"participantSelectedEvent","participantList"],[3,"revisionSetSelectedEvent","revisionMutationCompleted","revisions","refetchQueries"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[4,"nzSpaceItem"],["nzMode","closeable",3,"nzOnClose"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(_,p){if(1&_&&(n.DNE(0,oi,23,17,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,li,4,4,"ng-template",null,0,n.C5r)),2&_){const R=n.sdS(3);n.Y8G("ngIf",n.bMT(1,2,p.unfilteredCount$))("ngIfElse",R)}},dependencies:[v.bT,f.Nj,E.Uq,E.e,$.U5,$.Dq,P.s,b.PM,X.RW,A.aO,x.c,V.p,k.Dn,y.T,Be,v.Pc,f.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return e})()},6371:(Q,N,o)=>{o.d(N,{O:()=>x});var c=o(177),s=o(7529),S=o(2617),G=o(5703),n=o(7685),t=o(5699),v=o(7391),f=o(2968),E=o(9438),$=o(869),P=o(1672),b=o(513),X=o(5103),A=o(3953);let x=(()=>{class V{static#n=this.\u0275fac=function(j){return new(j||V)};static#t=this.\u0275mod=A.$C({type:V});static#e=this.\u0275inj=A.G2t({imports:[c.MD,s.f3,S.rD,G.Ti,n.pc,t.T,v.kT,E.Yb,P._v,b.Zw,X.Y3,f.K,$.S]})}return V})()},6269:(Q,N,o)=>{o.d(N,{f:()=>h});var c=o(4608),s=o(3953),S=o(9145),G=o(177),n=o(7391),t=o(1188),v=o(9438),f=o(1236),E=o(2e3),$=o(2702),P=o(7793);function b(C,u){1&C&&(s.qex(0),s.EFF(1,", "),s.bVm())}function X(C,u){if(1&C&&(s.qex(0),s.EFF(1),s.nI1(2,"eventVerbiage"),s.DNE(3,b,2,0,"ng-container",12),s.bVm()),2&C){const d=u.$implicit,T=u.last;s.R7$(),s.SpI(" ",s.brH(2,2,d.action,"contributor-card",d.count)," "),s.R7$(2),s.Y8G("ngIf",!T)}}function A(C,u){if(1&C&&(s.j41(0,"nz-descriptions",8)(1,"nz-descriptions-item",9),s.DNE(2,X,4,6,"ng-container",10),s.k0s(),s.j41(3,"nz-descriptions-item",11),s.EFF(4),s.nI1(5,"date"),s.k0s()()),2&C){const d=s.XpG(2).$implicit;s.Y8G("nzColumn",1),s.R7$(2),s.Y8G("ngForOf",d.uniqueActions),s.R7$(2),s.SpI(" ",s.bMT(5,3,d.lastActionDate)," ")}}function x(C,u){if(1&C&&(s.j41(0,"cvc-user-popover",7),s.DNE(1,A,6,5,"ng-template",null,2,s.C5r),s.k0s()),2&C){const d=s.XpG().$implicit;s.Y8G("userId",d.user.id)}}function V(C,u){if(1&C&&(s.j41(0,"a",5),s.nrm(1,"nz-avatar",6),s.DNE(2,x,3,1,"ng-template",null,1,s.C5r),s.k0s()),2&C){const d=u.$implicit,T=s.sdS(3);s.Mz_("routerLink","/users/",d.user.id,""),s.R7$(),s.Y8G("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",T)("nzSrc",d.user.profileImagePath)}}function k(C,u){if(1&C&&(s.qex(0),s.DNE(1,V,4,6,"a",4),s.bVm()),2&C){const d=s.XpG();s.R7$(),s.Y8G("ngForOf",d.sortedContributors)}}function y(C,u){1&C&&s.EFF(0," None ")}let j=(()=>{class C{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((d,T)=>T.totalActionCount-d.totalActionCount)}static#n=this.\u0275fac=function(T){return new(T||C)};static#t=this.\u0275cmp=s.VBU({type:C,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[["noContributors",""],["curatorPopover",""],["additionalMetadata",""],[4,"ngIf","ngIfElse"],["class","avatar",3,"routerLink",4,"ngFor","ngForOf"],[1,"avatar",3,"routerLink"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","bottomRight","nzIcon","user","nzSize","small",3,"nzSize","nzPopoverMouseEnterDelay","nzPopoverContent","nzSrc"],[3,"userId"],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(T,B){if(1&T&&s.DNE(0,k,2,1,"ng-container",3)(1,y,1,0,"ng-template",null,0,s.C5r),2&T){const K=s.sdS(2);s.Y8G("ngIf",B.sortedContributors&&B.sortedContributors.length>0)("ngIfElse",K)}},dependencies:[G.Sq,G.bT,t.Wk,v.PM,f.L_,E.xA,E.gr,$.M,G.vh,P.s],encapsulation:2})}return C})();var F=o(1774);function M(C,u){if(1&C&&(s.qex(0),s.nrm(1,"cvc-contributor-stack",5),s.bVm()),2&C){const d=u.ngIf;s.R7$(),s.Y8G("contributors",d)}}function I(C,u){1&C&&s.EFF(0," None ")}function O(C,u){if(1&C&&(s.qex(0),s.nrm(1,"cvc-contributor-stack",5),s.bVm()),2&C){const d=u.ngIf;s.R7$(),s.Y8G("contributors",d)}}function Y(C,u){1&C&&s.EFF(0," None ")}let h=(()=>{class C{constructor(d){this.gql=d}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let d=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=d.pipe((0,c.E)("data","contributors","curators")),this.editors$=d.pipe((0,c.E)("data","contributors","editors"))}static#n=this.\u0275fac=function(T){return new(T||C)(s.rXU(S.wBW))};static#t=this.\u0275cmp=s.VBU({type:C,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["noCurators",""],["noEditors",""],["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],[3,"contributors"]],template:function(T,B){if(1&T&&(s.j41(0,"span",2),s.EFF(1,"Curators:"),s.k0s(),s.j41(2,"div",3),s.DNE(3,M,2,1,"ng-container",4),s.nI1(4,"ngrxPush"),s.DNE(5,I,1,0,"ng-template",null,0,s.C5r),s.k0s(),s.j41(7,"span",2),s.EFF(8,"Editors:"),s.k0s(),s.j41(9,"div",3),s.DNE(10,O,2,1,"ng-container",4),s.nI1(11,"ngrxPush"),s.DNE(12,Y,1,0,"ng-template",null,1,s.C5r),s.k0s()),2&T){const K=s.sdS(6),J=s.sdS(13);s.R7$(3),s.Y8G("ngIf",s.bMT(4,4,B.curators$))("ngIfElse",K),s.R7$(7),s.Y8G("ngIf",s.bMT(11,6,B.editors$))("ngIfElse",J)}},dependencies:[G.bT,n.Di,j,F.L9],styles:["[_nghost-%COMP%]{display:inline-block}.role-group-label[_ngcontent-%COMP%]{margin-left:12px}.role-group[_ngcontent-%COMP%]{display:inline-block}.role-group[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{display:inline-block;margin-left:2px}"]})}return C})()},8103:(Q,N,o)=>{o.d(N,{m:()=>P});var c=o(177),s=o(7391),S=o(1188),G=o(9438),n=o(1236),t=o(4917),v=o(2225),f=o(2e3),E=o(3953);let $=(()=>{class b{static#n=this.\u0275fac=function(x){return new(x||b)};static#t=this.\u0275mod=E.$C({type:b});static#e=this.\u0275inj=E.G2t({imports:[c.MD,S.iI,G.Yb,n.MC,f.WF,t.i,v.h]})}return b})(),P=(()=>{class b{static#n=this.\u0275fac=function(x){return new(x||b)};static#t=this.\u0275mod=E.$C({type:b});static#e=this.\u0275inj=E.G2t({imports:[c.MD,s.kT,$]})}return b})()},5269:(Q,N,o)=>{o.d(N,{o:()=>j});var c=o(1226),s=o(9145),S=o(1413),G=o(5964),n=o(6977),t=o(9199),v=o(4608),f=o(3953),E=o(4222),$=o(177),P=o(513),b=o(6389),X=o(5930),A=o(5103),x=o(5154),V=o(1774);function k(F,M){if(1&F){const I=f.RV6();f.qex(0),f.j41(1,"button",2),f.bIt("click",function(){f.eBV(I);const Y=f.XpG();return f.Njj(Y.unsubscribe())}),f.nrm(2,"i",3),f.k0s(),f.bVm()}if(2&F){const I=f.XpG();f.R7$(),f.Y8G("nzLoading",I.isSubmitting)}}function y(F,M){if(1&F){const I=f.RV6();f.j41(0,"button",4),f.bIt("click",function(){f.eBV(I);const Y=f.XpG();return f.Njj(Y.subscribe())}),f.nrm(1,"i",5),f.k0s()}if(2&F){const I=f.XpG();f.Y8G("nzLoading",I.isSubmitting)}}let j=(()=>{class F{constructor(I,O,Y,h){this.isSubscribedGQL=I,this.unsubscribeMutation=O,this.subscribeMutation=Y,this.networkErrorService=h,this.isSubmitting=!1,this.destroy$=new S.B,this.unsubscribeMutator=new c.E(h),this.subscribeMutator=new c.E(h)}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.typename)throw new Error("Must pass in a typename to the CvcEntitySubscriptionButtonComponent");if(void 0===this.subscribableId)throw new Error("Must pass in a subscribableId to the CvcEntitySubscriptionButtonComponent");this.subscribable={id:this.subscribableId,entityType:s.V9U[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,v.E)("data","subscriptionForEntity"),(0,G.p)(t.kP))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.Q)(this.destroy$)).subscribe(O=>{O&&(this.queryRef?.refetch(),this.isSubmitting=!1)}))}unsubscribe(){this.subscribable&&(this.isSubmitting=!0,this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.Q)(this.destroy$)).subscribe(O=>{O&&(this.queryRef?.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(O){return new(O||F)(f.rXU(s.aUH),f.rXU(s.ytN),f.rXU(s.RSy),f.rXU(E.N))};static#t=this.\u0275cmp=f.VBU({type:F,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[["noSub",""],[4,"ngIf","ngIfElse"],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"click","nzLoading"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"click","nzLoading"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(O,Y){if(1&O&&(f.DNE(0,k,3,1,"ng-container",1),f.nI1(1,"ngrxPush"),f.DNE(2,y,2,1,"ng-template",null,0,f.C5r)),2&O){const h=f.sdS(3);f.Y8G("ngIf",f.bMT(1,2,Y.existingSubscription$))("ngIfElse",h)}},dependencies:[$.bT,P.aO,b.c,X.p,A.Dn,x.LH,V.L9],styles:["[_nghost-%COMP%]{display:block}"]})}return F})()},5736:(Q,N,o)=>{o.d(N,{V:()=>t});var c=o(177),s=o(513),S=o(5103),G=o(5154),n=o(3953);let t=(()=>{class v{static#n=this.\u0275fac=function($){return new($||v)};static#t=this.\u0275mod=n.$C({type:v});static#e=this.\u0275inj=n.G2t({imports:[c.MD,s.Zw,S.Y3,G.Qt]})}return v})()},4696:(Q,N,o)=>{o.d(N,{GB:()=>Y,Vz:()=>O,pc:()=>M});var c=o(4707),s=o(3953),S=o(3726),G=o(6977),n=o(5964),t=o(713),v=o(6042),f=o(7806),E=o(1025),$=o(5103),P=o(8203),b=o(6841);const X=["*"],A=["collapseHeader"];function x(h,C){if(1&h&&(s.qex(0),s.nrm(1,"span",7),s.bVm()),2&h){const u=C.$implicit,d=s.XpG(2);s.R7$(),s.Y8G("nzType",u||"right")("nzRotate",d.nzActive?90:0)}}function V(h,C){if(1&h&&(s.j41(0,"div"),s.DNE(1,x,2,2,"ng-container",3),s.k0s()),2&h){const u=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",u.nzExpandedIcon)}}function k(h,C){if(1&h&&(s.qex(0),s.EFF(1),s.bVm()),2&h){const u=s.XpG();s.R7$(),s.JRh(u.nzHeader)}}function y(h,C){if(1&h&&(s.qex(0),s.EFF(1),s.bVm()),2&h){const u=s.XpG(2);s.R7$(),s.JRh(u.nzExtra)}}function j(h,C){if(1&h&&(s.j41(0,"div",4),s.DNE(1,y,2,1,"ng-container",3),s.k0s()),2&h){const u=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",u.nzExtra)}}const F="collapse";let M=(()=>{class h{constructor(u,d,T,B){this.nzConfigService=u,this.cdr=d,this.directionality=T,this.destroy$=B,this._nzModuleName=F,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="start",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.nzConfigService.getConfigChangeEventForComponent(F).pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(u){this.listOfNzCollapsePanelComponent.push(u)}removePanel(u){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(u),1)}click(u){this.nzAccordion&&!u.nzActive&&this.listOfNzCollapsePanelComponent.filter(d=>d!==u).forEach(d=>{d.nzActive&&(d.nzActive=!1,d.nzActiveChange.emit(d.nzActive),d.markForCheck())}),u.nzActive=!u.nzActive,u.nzActiveChange.emit(u.nzActive)}static#n=this.\u0275fac=function(d){return new(d||h)(s.rXU(v.yx),s.rXU(s.gRc),s.rXU(P.dS,8),s.rXU(E.y4))};static#t=this.\u0275cmp=s.VBU({type:h,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(d,T){2&d&&s.AVh("ant-collapse-icon-position-start","start"===T.nzExpandIconPosition)("ant-collapse-icon-position-end","end"===T.nzExpandIconPosition)("ant-collapse-ghost",T.nzGhost)("ant-collapse-borderless",!T.nzBordered)("ant-collapse-rtl","rtl"===T.dir)},inputs:{nzAccordion:[2,"nzAccordion","nzAccordion",s.L39],nzBordered:[2,"nzBordered","nzBordered",s.L39],nzGhost:[2,"nzGhost","nzGhost",s.L39],nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],standalone:!0,features:[s.Jv_([E.y4]),s.GFd,s.aNF],ngContentSelectors:X,decls:1,vars:0,template:function(d,T){1&d&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return(0,c.Cg)([(0,v.H4)()],h.prototype,"nzAccordion",void 0),(0,c.Cg)([(0,v.H4)()],h.prototype,"nzBordered",void 0),(0,c.Cg)([(0,v.H4)()],h.prototype,"nzGhost",void 0),h})();const I="collapsePanel";let O=(()=>{class h{markForCheck(){this.cdr.markForCheck()}constructor(u,d,T,B,K,J){this.nzConfigService=u,this.ngZone=d,this.cdr=T,this.destroy$=B,this.nzCollapseComponent=K,this.noAnimation=J,this._nzModuleName=I,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new s.bkB,this.nzConfigService.getConfigChangeEventForComponent(I).pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.nzCollapseComponent.addPanel(this),this.ngZone.runOutsideAngular(()=>(0,S.R)(this.collapseHeader.nativeElement,"click").pipe((0,n.p)(()=>!this.nzDisabled),(0,G.Q)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.nzCollapseComponent.click(this),this.cdr.markForCheck()})}))}ngOnDestroy(){this.nzCollapseComponent.removePanel(this)}static#n=this.\u0275fac=function(d){return new(d||h)(s.rXU(v.yx),s.rXU(s.SKi),s.rXU(s.gRc),s.rXU(E.y4),s.rXU(M,1),s.rXU(b.z,8))};static#t=this.\u0275cmp=s.VBU({type:h,selectors:[["nz-collapse-panel"]],viewQuery:function(d,T){if(1&d&&s.GBs(A,7),2&d){let B;s.mGM(B=s.lsd())&&(T.collapseHeader=B.first)}},hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(d,T){2&d&&s.AVh("ant-collapse-no-arrow",!T.nzShowArrow)("ant-collapse-item-active",T.nzActive)("ant-collapse-item-disabled",T.nzDisabled)},inputs:{nzActive:[2,"nzActive","nzActive",s.L39],nzDisabled:[2,"nzDisabled","nzDisabled",s.L39],nzShowArrow:[2,"nzShowArrow","nzShowArrow",s.L39],nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],standalone:!0,features:[s.Jv_([E.y4]),s.GFd,s.aNF],ngContentSelectors:X,decls:9,vars:8,consts:[["collapseHeader",""],["role","button",1,"ant-collapse-header"],[1,"ant-collapse-header-text"],[4,"nzStringTemplateOutlet"],[1,"ant-collapse-extra"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"]],template:function(d,T){1&d&&(s.NAR(),s.j41(0,"div",1,0),s.DNE(2,V,2,1,"div"),s.j41(3,"span",2),s.DNE(4,k,2,1,"ng-container",3),s.k0s(),s.DNE(5,j,2,1,"div",4),s.k0s(),s.j41(6,"div",5)(7,"div",6),s.SdG(8),s.k0s()()),2&d&&(s.BMQ("aria-expanded",T.nzActive),s.R7$(2),s.vxM(T.nzShowArrow?2:-1),s.R7$(2),s.Y8G("nzStringTemplateOutlet",T.nzHeader),s.R7$(),s.vxM(T.nzExtra?5:-1),s.R7$(),s.AVh("ant-collapse-content-active",T.nzActive),s.Y8G("@.disabled",!(null==T.noAnimation||!T.noAnimation.nzNoAnimation))("@collapseMotion",T.nzActive?"expanded":"hidden"))},dependencies:[f.C,f.m,$.Y3,$.Dn],encapsulation:2,data:{animation:[t.GE]},changeDetection:0})}return(0,c.Cg)([(0,v.H4)()],h.prototype,"nzShowArrow",void 0),h})(),Y=(()=>{class h{static#n=this.\u0275fac=function(d){return new(d||h)};static#t=this.\u0275mod=s.$C({type:h});static#e=this.\u0275inj=s.G2t({imports:[O]})}return h})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5384],{4097:(K,j,o)=>{o.d(j,{b:()=>ht});var r=o(9145),s=o(5964),S=o(6354),T=o(4608),n=o(9199),t=o(3953),m=o(177),f=o(1774),y=o(513),$=o(6389),A=o(5930),F=o(7529),X=o(1635),N=o(1226),x=o(9894),V=o(1305),k=o(4222),b=o(9417),M=o(8927),G=o(5703),P=o(3617),D=o(5154),O=o(2983),Y=o(1939),h=o(5566),C=o(1845);function v(c,g){if(1&c){const a=t.RV6();t.j41(0,"nz-alert",10),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}}function u(c,g){if(1&c&&t.nrm(0,"nz-alert",11),2&c){t.XpG();const a=t.sdS(4);t.Y8G("nzDescription",a)}}function R(c,g){if(1&c&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&c){const a=g.$implicit;t.R7$(),t.JRh(a)}}function B(c,g){if(1&c&&(t.j41(0,"ul"),t.DNE(1,R,2,1,"li",12),t.k0s()),2&c){const a=t.XpG();t.R7$(),t.Y8G("ngForOf",a.errorMessages)}}function W(c,g){}function J(c,g){1&c&&t.DNE(0,W,0,0,"ng-template")}function nn(c,g){if(1&c&&(t.qex(0),t.DNE(1,J,1,0,null,14),t.bVm()),2&c){t.XpG();const a=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function w(c,g){}function tn(c,g){1&c&&t.DNE(0,w,0,0,"ng-template")}function en(c,g){if(1&c&&(t.j41(0,"span",15),t.DNE(1,tn,1,0,null,14),t.k0s()),2&c){t.XpG();const a=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Z(c,g){if(1&c&&(t.j41(0,"button",16),t.EFF(1),t.nI1(2,"enumToTitle"),t.k0s()),2&c){const a=t.XpG().ngrxLet,d=t.XpG();t.Y8G("disabled",!(void 0!==d.comment&&d.comment.length>=10&&a.signedIn))("nzTooltipTrigger",d.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==d.selectedOrg?null:d.selectedOrg.name)),t.R7$(),t.SpI(" Flag ",t.bMT(2,4,d.flaggable.entityType)," ")}}function on(c,g){if(1&c&&(t.qex(0),t.j41(1,"cvc-form-buttons"),t.DNE(2,nn,2,1,"ng-container",13)(3,en,2,1,"ng-template",null,1,t.C5r)(5,Z,3,6,"ng-template",null,2,t.C5r),t.k0s(),t.bVm()),2&c){const a=g.ngrxLet,d=t.sdS(4);t.R7$(2),t.Y8G("ngIf",a.signedIn)("ngIfElse",d)}}let q=class Et{constructor(g,a,d){this.gql=g,this.viewerService=a,this.networkErrorService=d,this.errorMessages=[],this.success=!1,this.loading=!1,this.comment="",this.addFlagMutator=new N.E(this.networkErrorService),this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.pipe((0,x.s)(this)).subscribe(z=>{this.selectedOrg=z.mostRecentOrg})}ngOnInit(){if(void 0===this.flaggable)throw new Error("Must pass a flagggable into flag add component")}onOrgSelected(g){this.selectedOrg=g}submitFlag(){this.errorMessages=[];let a=this.addFlagMutator.mutate(this.gql,{input:{comment:this.comment,subject:this.flaggable,organizationId:this.selectedOrg?.id}});a.submitSuccess$.pipe((0,x.s)(this)).subscribe(d=>{d&&(this.flagAddedCallback&&this.flagAddedCallback(),this.success=!0,this.comment="")}),a.submitError$.pipe((0,x.s)(this)).subscribe(d=>{d.length>0&&(this.errorMessages=d)}),a.isSubmitting$.pipe((0,x.s)(this)).subscribe(d=>{this.loading=d})}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(a){return new(a||Et)(t.rXU(r.GOU),t.rXU(V.q),t.rXU(k.N))};static#t=this.\u0275cmp=t.VBU({type:Et,selectors:[["cvc-flag-add-form"]],inputs:{flaggable:"flaggable",flagAddedCallback:"flagAddedCallback"},decls:11,vars:5,consts:[["errorContents",""],["notSignedIn",""],["submitButton",""],["nzType","inner"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription",4,"ngIf"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag submitted","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Adding Flag",3,"nzDescription"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to flag entity."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(a,d){if(1&a){const z=t.RV6();t.j41(0,"nz-card",3),t.DNE(1,v,1,0,"nz-alert",4)(2,u,1,1,"nz-alert",5)(3,B,2,1,"ng-template",null,0,t.C5r),t.j41(5,"form",6),t.bIt("ngSubmit",function(){return t.eBV(z),t.Njj(d.submitFlag())}),t.j41(6,"cvc-comment-input-form",7),t.mxI("commentChange",function(ln){return t.eBV(z),t.DH7(d.comment,ln)||(d.comment=ln),t.Njj(ln)}),t.k0s(),t.j41(7,"nz-spin",8)(8,"nz-form-item")(9,"nz-form-control"),t.DNE(10,on,7,2,"ng-container",9),t.k0s()()()()()}2&a&&(t.R7$(),t.Y8G("ngIf",d.success),t.R7$(),t.Y8G("ngIf",d.errorMessages.length>0),t.R7$(4),t.R50("comment",d.comment),t.R7$(),t.Y8G("nzSpinning",d.loading),t.R7$(3),t.Y8G("ngrxLet",d.viewer$))},dependencies:[m.Sq,m.bT,m.T3,b.qT,b.cb,b.cV,f.Nj,F.Uq,F.e,M.CA,M.Ls,M.zS,y.aO,$.c,A.p,G.cK,P.Y,D.LH,O.a,Y.l,h.K,C.f],encapsulation:2,changeDetection:0})};q=(0,X.Cg)([(0,x.d)()],q);var I=o(1413),_n=o(6977),Q=o(7685),H=o(7391),fn=o(1672),vn=o(9448),pn=o(5103),zn=o(6408),Cn=o(311),hn=o(1236);const Rn=()=>({float:"right"});function Tn(c,g){if(1&c){const a=t.RV6();t.j41(0,"nz-alert",8),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}}function En(c,g){}function yn(c,g){1&c&&t.DNE(0,En,0,0,"ng-template")}function bn(c,g){if(1&c&&(t.qex(0),t.DNE(1,yn,1,0,null,10),t.bVm()),2&c){t.XpG(2);const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Fn(c,g){if(1&c&&(t.qex(0),t.DNE(1,bn,2,1,"ng-container",9),t.bVm()),2&c){const a=t.XpG().ngrxLet,d=t.sdS(5),z=t.XpG();t.R7$(),t.Y8G("ngIf",a.isEditor||a.isAdmin||z.flag.openActivity.user.id===a.id)("ngIfElse",d)}}function Gn(c,g){}function Sn(c,g){1&c&&t.DNE(0,Gn,0,0,"ng-template")}function xn(c,g){if(1&c&&(t.j41(0,"span",11),t.DNE(1,Sn,1,0,null,10),t.k0s()),2&c){t.XpG();const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function Dn(c,g){}function In(c,g){1&c&&t.DNE(0,Dn,0,0,"ng-template")}function $n(c,g){if(1&c&&(t.j41(0,"span",12),t.DNE(1,In,1,0,null,10),t.k0s()),2&c){t.XpG();const a=t.sdS(7);t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function On(c,g){if(1&c){const a=t.RV6();t.j41(0,"button",14),t.mxI("nzPopoverVisibleChange",function(z){t.eBV(a);const L=t.XpG(3);return t.DH7(L.flagResolvePopoverVisible,z)||(L.flagResolvePopoverVisible=z),t.Njj(z)}),t.bIt("click",function(){t.eBV(a);const z=t.XpG(3);return t.Njj(z.flagResolvePopoverVisible=!z.flagResolvePopoverVisible)}),t.EFF(1," Resolve Flag "),t.nrm(2,"i",15),t.k0s()}if(2&c){const a=t.XpG(2).ngrxLet,d=t.XpG(),z=t.sdS(3),L=t.sdS(5);t.Y8G("nzPopoverTitle",z),t.R50("nzPopoverVisible",d.flagResolvePopoverVisible),t.Y8G("nzPopoverContent",L)("nzPopoverTrigger",void 0)("disabled",!a.signedIn||a.isCurator&&d.flag.openActivity.user.id!=a.id)}}function Ln(c,g){if(1&c&&t.DNE(0,On,3,5,"button",13),2&c){const a=t.XpG(2);t.Y8G("ngIf",!a.success)}}function jn(c,g){if(1&c&&(t.qex(0),t.DNE(1,Fn,2,2,"ng-container",9)(2,xn,2,1,"ng-template",null,2,t.C5r)(4,$n,2,1,"ng-template",null,3,t.C5r)(6,Ln,1,1,"ng-template",null,4,t.C5r),t.bVm()),2&c){const a=g.ngrxLet,d=t.sdS(3);t.R7$(),t.Y8G("ngIf",a.signedIn)("ngIfElse",d)}}function Mn(c,g){if(1&c){const a=t.RV6();t.EFF(0," Resolve Flag "),t.j41(1,"span",16)(2,"i",17),t.bIt("click",function(){t.eBV(a);const z=t.XpG();return z.flagResolvePopoverVisible=!1,t.Njj(z.errorMessages=[])}),t.k0s()()}2&c&&(t.R7$(),t.Y8G("ngStyle",t.lJ4(1,Rn)))}function Pn(c,g){if(1&c&&t.nrm(0,"nz-alert",24),2&c){t.XpG();const a=t.sdS(2);t.Y8G("nzDescription",a)}}function An(c,g){if(1&c&&(t.j41(0,"li"),t.EFF(1),t.k0s()),2&c){const a=g.$implicit;t.R7$(),t.JRh(a)}}function Nn(c,g){if(1&c&&(t.j41(0,"ul"),t.DNE(1,An,2,1,"li",25),t.k0s()),2&c){const a=t.XpG(2);t.R7$(),t.Y8G("ngForOf",a.errorMessages)}}function Yn(c,g){if(1&c){const a=t.RV6();t.DNE(0,Pn,1,1,"nz-alert",18)(1,Nn,2,1,"ng-template",null,5,t.C5r),t.j41(3,"nz-card",19)(4,"form",20),t.bIt("ngSubmit",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.resolveFlag())}),t.j41(5,"cvc-comment-input-form",21),t.mxI("commentChange",function(z){t.eBV(a);const L=t.XpG();return t.DH7(L.comment,z)||(L.comment=z),t.Njj(z)}),t.k0s(),t.j41(6,"nz-spin",22)(7,"nz-form-item")(8,"nz-form-control")(9,"cvc-form-buttons")(10,"button",23),t.EFF(11," Resolve "),t.k0s()()()()()()()}if(2&c){const a=t.XpG();t.Y8G("ngIf",a.errorMessages.length>0),t.R7$(5),t.R50("comment",a.comment),t.R7$(),t.Y8G("nzSpinning",a.loading),t.R7$(4),t.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}let sn=class yt{constructor(g,a,d){this.gql=g,this.viewerService=a,this.networkErrorService=d,this.errorMessages=[],this.loading=!1,this.success=!1,this.flagResolvePopoverVisible=!1,this.resolveFlagMutator=new N.E(this.networkErrorService),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(void 0===this.flag)throw new Error("Must pass a Flag in to resolve component.");this.viewerService.viewer$.pipe((0,x.s)(this)).subscribe(g=>{this.selectedOrg=g.mostRecentOrg})}onOrgSelected(g){this.selectedOrg=g}resolveFlag(){if(this.comment){this.errorMessages=[];let g=this.resolveFlagMutator.mutate(this.gql,{input:{id:this.flag.id,comment:this.comment,organizationId:this.selectedOrg?.id}});g.submitSuccess$.pipe((0,x.s)(this)).subscribe(a=>{a&&(this.flagResolvePopoverVisible=!1,this.success=!0,this.flagResolvedCallback&&this.flagResolvedCallback())}),g.submitError$.pipe((0,x.s)(this)).subscribe(a=>{a.length>0&&(this.success=!1,this.errorMessages=a)}),g.isSubmitting$.pipe((0,x.s)(this)).subscribe(a=>{this.loading=a})}}onSuccessBannerClose(){this.success=!1,this.flagResolvedCallback&&this.flagResolvedCallback()}static#n=this.\u0275fac=function(a){return new(a||yt)(t.rXU(r.reo),t.rXU(V.q),t.rXU(k.N))};static#t=this.\u0275cmp=t.VBU({type:yt,selectors:[["cvc-flag-resolve-form"]],inputs:{flag:"flag",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:2,consts:[["flagResolvePopoverTitleTemplate",""],["flagResolvePopoverContentTemplate",""],["notSignedIn",""],["noPermissions",""],["submitButton",""],["errorContents",""],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[4,"ngrxLet"],["nzBanner","","nzMessage","Flag resolved.","nzType","success","nzCloseable","",3,"nzOnClose"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to resolve flag."],["nz-tooltip","","nzTooltipTitle","If you are not an editor, you can only resolve flags you opened."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled","nzPopoverVisibleChange","click",4,"ngIf"],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverVisibleChange","click","nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled"],["nz-icon","","nzType","caret-down","nzTheme","outline"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription",4,"ngIf"],["nzType","inner",2,"width","300px"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"],["nzType","error","nzShowIcon","","nzMessage","Error Resolving Flag",3,"nzDescription"],[4,"ngFor","ngForOf"]],template:function(a,d){1&a&&t.DNE(0,Tn,1,0,"nz-alert",6)(1,jn,8,2,"ng-container",7)(2,Mn,3,2,"ng-template",null,0,t.C5r)(4,Yn,12,6,"ng-template",null,1,t.C5r),2&a&&(t.Y8G("ngIf",d.success),t.R7$(),t.Y8G("ngrxLet",d.viewer$))},dependencies:[m.Sq,m.bT,m.T3,m.B3,b.qT,b.cb,f.Nj,y.aO,$.c,A.p,F.Uq,F.e,M.CA,M.Ls,M.zS,b.cV,P.Y,G.cK,hn.L_,pn.Dn,D.LH,O.a,h.K,Y.l],encapsulation:2})};sn=(0,X.Cg)([(0,x.d)()],sn);var Vn=o(4126),Xn=o(3075),Bn=o(8139);function Un(c,g){if(1&c){const a=t.RV6();t.j41(0,"nz-alert",8),t.bIt("nzOnClose",function(){const z=t.eBV(a).$implicit,L=t.XpG();return t.Njj(L.onErrorBannerClose(z))}),t.k0s()}2&c&&t.Y8G("nzMessage",g.$implicit)}function kn(c,g){if(1&c){const a=t.RV6();t.j41(0,"nz-alert",9),t.bIt("nzOnClose",function(){t.eBV(a);const z=t.XpG();return t.Njj(z.onSuccessBannerClose())}),t.k0s()}if(2&c){const a=t.XpG();t.Mz_("nzMessage","Revision(s) successfully ",a.success,".")}}function Hn(c,g){if(1&c&&t.nrm(0,"cvc-comment-body",15),2&c){const a=t.XpG(2).$implicit;t.Y8G("commentBodySegments",a.openActivity.parsedNote)}}function Wn(c,g){if(1&c&&(t.qex(0),t.nrm(1,"cvc-flag-resolve-form",16),t.bVm()),2&c){const a=t.XpG(2).$implicit,d=t.XpG(2);t.R7$(),t.Y8G("flag",a)("flagResolvedCallback",d.flagResolvedCallback)}}function Kn(c,g){if(1&c&&(t.qex(0),t.nrm(1,"cvc-comment-body",15),t.bVm()),2&c){const a=t.XpG(3).$implicit;t.R7$(),t.Y8G("commentBodySegments",a.resolutionActivity.parsedNote)}}function gn(c,g){if(1&c&&t.nrm(0,"cvc-user-tag",21),2&c){const a=t.XpG(3).$implicit;t.Y8G("user",a.resolutionActivity.user)}}function Qn(c,g){if(1&c&&(t.j41(0,"nz-row")(1,"nz-col",17),t.DNE(2,Kn,2,1,"ng-container",18),t.k0s(),t.j41(3,"nz-col",19),t.EFF(4," Resolved By "),t.DNE(5,gn,1,1,"cvc-user-tag",20),t.EFF(6),t.nI1(7,"timeAgo"),t.k0s()()),2&c){const a=t.XpG(2).$implicit;t.R7$(2),t.Y8G("ngIf",a.resolutionActivity),t.R7$(3),t.Y8G("ngIf",void 0!==a.resolutionActivity),t.R7$(),t.SpI(" ",t.bMT(7,3,null==a.resolutionActivity?null:a.resolutionActivity.createdAt)," ")}}function Jn(c,g){if(1&c&&(t.nrm(0,"i",22),t.nI1(1,"entityColor"),t.EFF(2)),2&c){const a=t.XpG(2).$implicit;t.Y8G("nzTwotoneColor",t.bMT(1,2,"Flag")),t.R7$(2),t.SpI(" FID",a.id," ")}}function Zn(c,g){if(1&c&&(t.j41(0,"span")(1,"span",26),t.EFF(2,"Flagged By"),t.k0s(),t.nrm(3,"cvc-user-tag",21),t.j41(4,"span",26),t.EFF(5),t.nI1(6,"timeAgo"),t.k0s()()),2&c){const a=t.XpG(3).$implicit;t.R7$(3),t.Y8G("user",a.openActivity.user),t.R7$(2),t.JRh(t.bMT(6,2,a.openActivity.createdAt))}}function wn(c,g){if(1&c&&t.nrm(0,"cvc-status-tag",27),2&c){const a=t.XpG(3).$implicit;t.Y8G("status",a.state)}}function mn(c,g){1&c&&(t.j41(0,"nz-space",23),t.DNE(1,Zn,7,4,"span",24)(2,wn,1,1,"cvc-status-tag",25),t.k0s())}function an(c,g){if(1&c&&(t.j41(0,"nz-card",13),t.DNE(1,Hn,1,1,"cvc-comment-body",14),t.nrm(2,"nz-divider"),t.DNE(3,Wn,2,2,"ng-container",7)(4,Qn,8,5,"ng-template",null,1,t.C5r)(6,Jn,3,4,"ng-template",null,2,t.C5r)(8,mn,3,0,"ng-template",null,3,t.C5r),t.k0s()),2&c){const a=t.sdS(5),d=t.sdS(7),z=t.sdS(9),L=t.XpG().$implicit;t.Y8G("nzTitle",d)("nzExtra",z),t.R7$(),t.Y8G("ngIf",L.openActivity),t.R7$(2),t.Y8G("ngIf","OPEN"==L.state)("ngIfElse",a)}}function dn(c,g){1&c&&(t.qex(0),t.DNE(1,an,10,5,"nz-card",12),t.bVm())}function un(c,g){if(1&c&&(t.qex(0),t.j41(1,"nz-space",10),t.DNE(2,dn,2,0,"ng-container",11),t.k0s(),t.bVm()),2&c){const a=t.XpG();t.R7$(2),t.Y8G("ngForOf",a.flags)}}function qn(c,g){1&c&&t.nrm(0,"nz-empty",28)}let nt=(()=>{class c{constructor(a){this.viewerService=a,this.isLoading=!1,this.success=!1,this.destroy$=new I.B}ngOnInit(){this.viewer$=this.viewerService.viewer$,this.viewerService.viewer$.subscribe(a=>{this.mostRecentOrg=a.mostRecentOrg})}setupMutationResultHandlers(a,d){a.submitSuccess$.pipe((0,_n.Q)(this.destroy$)).subscribe(z=>{z&&(this.isLoading=!1,this.errors=void 0,this.success=d)}),a.submitError$.pipe((0,_n.Q)(this.destroy$)).subscribe(z=>{z.length>0&&(this.isLoading=!1,this.success=!1,this.errors=z)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(a){this.errors=this.errors?.filter(d=>d!=a)}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(d){return new(d||c)(t.rXU(V.q))};static#t=this.\u0275cmp=t.VBU({type:c,selectors:[["cvc-flag-list"]],inputs:{flags:"flags",flagResolvedCallback:"flagResolvedCallback"},decls:6,vars:4,consts:[["noFlags",""],["flagResolved",""],["flagCardHeaderTitle",""],["flagCardHeaderExtra",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzTitle","Flags",1,"card-list"],[4,"ngIf","ngIfElse"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzDirection","vertical"],[4,"ngFor","ngForOf"],["nzType","inner",3,"nzTitle","nzExtra",4,"nzSpaceItem"],["nzType","inner",3,"nzTitle","nzExtra"],[3,"commentBodySegments",4,"ngIf"],[3,"commentBodySegments"],[3,"flag","flagResolvedCallback"],["nzSpan","16"],[4,"ngIf"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"user"],["nz-icon","","nzTheme","twotone","nzType","civic-flag",3,"nzTwotoneColor"],["nzSize","small"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-typography","","nzType","secondary"],[3,"status"],["nzNotFoundImage","simple","nzNotFoundContent","No Flags matching filters"]],template:function(d,z){if(1&d&&(t.DNE(0,Un,1,1,"nz-alert",4)(1,kn,1,2,"nz-alert",5),t.j41(2,"nz-card",6),t.DNE(3,un,3,1,"ng-container",7)(4,qn,1,0,"ng-template",null,0,t.C5r),t.k0s()),2&d){const L=t.sdS(5);t.Y8G("ngForOf",z.errors),t.R7$(),t.Y8G("ngIf",z.success),t.R7$(2),t.Y8G("ngIf",z.flags&&z.flags.length>0)("ngIfElse",L)}},dependencies:[m.Sq,m.bT,F.Uq,F.e,G.cK,Q.U5,Q.Dq,H.Di,fn.RW,vn.j,pn.Dn,zn.r,Cn.g,$.c,P.Y,sn,Vn.p,Xn.R,Bn.N],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return c})();var tt=o(9365),et=o(9438);const rn=()=>[];function it(c,g){if(1&c&&(t.nrm(0,"cvc-flag-list",14),t.nI1(1,"ngrxPush")),2&c){const a=t.XpG(2);t.Y8G("flags",t.bMT(1,2,a.flags$)||t.lJ4(4,rn))("flagResolvedCallback",a.refresh)}}function ot(c,g){if(1&c){const a=t.RV6();t.j41(0,"button",17),t.bIt("click",function(){t.eBV(a);const z=t.XpG(2).ngrxLet,L=t.XpG(2);return t.Njj(L.loadMore(null==z?null:z.endCursor))}),t.EFF(1," Load More "),t.k0s()}}function st(c,g){1&c&&(t.qex(0),t.DNE(1,ot,2,0,"button",16),t.bVm())}function at(c,g){if(1&c&&(t.qex(0),t.DNE(1,st,2,0,"ng-container",15),t.bVm()),2&c){const a=g.ngrxLet;t.R7$(),t.Y8G("ngIf",a&&(null==a?null:a.hasNextPage)&&a.endCursor)}}function rt(c,g){if(1&c&&t.nrm(0,"cvc-flag-add-form",18),2&c){const a=t.XpG(2);t.Y8G("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}function lt(c,g){if(1&c&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&c){const a=g.$implicit;t.R7$(),t.JRh(a.displayName)}}function ct(c,g){if(1&c){const a=t.RV6();t.j41(0,"cvc-participant-list",19),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onStateSelected(z))}),t.DNE(1,lt,2,1,"ng-template",null,1,t.C5r),t.k0s()}if(2&c){const a=t.XpG(2);t.Y8G("preselectedOption",a.selectableStates[0])("participantList",a.selectableStates)}}function _t(c,g){if(1&c&&t.nrm(0,"nz-avatar",22),2&c){const a=t.XpG().$implicit;t.Y8G("nzSrc",a.profileImagePath)}}function pt(c,g){if(1&c&&(t.nrm(0,"nz-avatar",23),t.nI1(1,"uppercase")),2&c){const a=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,a.username.charAt(0)))}}function gt(c,g){if(1&c&&(t.DNE(0,_t,1,1,"nz-avatar",21)(1,pt,2,3,"ng-template",null,2,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&c){const a=g.$implicit,d=t.sdS(2);t.Y8G("ngIf",a.profileImagePath)("ngIfElse",d),t.R7$(4),t.JRh(a.username)}}function mt(c,g){if(1&c){const a=t.RV6();t.j41(0,"cvc-participant-list",20),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onFlaggingUsersSelected(z))}),t.DNE(2,gt,5,3,"ng-template",null,1,t.C5r),t.k0s()}if(2&c){const a=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,a.uniqueFlaggingUsers$)||t.lJ4(3,rn))}}function dt(c,g){if(1&c&&t.nrm(0,"nz-avatar",22),2&c){const a=t.XpG().$implicit;t.Y8G("nzSrc",a.profileImagePath)}}function ut(c,g){if(1&c&&(t.nrm(0,"nz-avatar",23),t.nI1(1,"uppercase")),2&c){const a=t.XpG().$implicit;t.Y8G("nzText",t.bMT(1,1,a.username.charAt(0)))}}function ft(c,g){if(1&c&&(t.DNE(0,dt,1,1,"nz-avatar",21)(1,ut,2,3,"ng-template",null,2,t.C5r),t.j41(3,"span"),t.EFF(4),t.k0s()),2&c){const a=g.$implicit,d=t.sdS(2);t.Y8G("ngIf",a.profileImagePath)("ngIfElse",d),t.R7$(4),t.JRh(a.username)}}function vt(c,g){if(1&c){const a=t.RV6();t.j41(0,"cvc-participant-list",24),t.nI1(1,"ngrxPush"),t.bIt("participantSelectedEvent",function(z){t.eBV(a);const L=t.XpG(2);return t.Njj(L.onResolvingUsersSelected(z))}),t.DNE(2,ft,5,3,"ng-template",null,1,t.C5r),t.k0s()}if(2&c){const a=t.XpG(2);t.Y8G("participantList",t.bMT(1,1,a.uniqueResolvingUsers$)||t.lJ4(3,rn))}}function zt(c,g){if(1&c&&(t.qex(0),t.j41(1,"nz-row",4)(2,"nz-col",5)(3,"nz-space",6),t.DNE(4,it,2,5,"cvc-flag-list",7)(5,at,2,1,"ng-container",8)(6,rt,1,2,"cvc-flag-add-form",9),t.k0s()(),t.j41(7,"nz-col",10)(8,"nz-space",6),t.DNE(9,ct,3,2,"cvc-participant-list",11)(10,mt,4,4,"cvc-participant-list",12)(11,vt,4,4,"cvc-participant-list",13),t.k0s()()(),t.bVm()),2&c){const a=t.XpG();t.R7$(),t.Y8G("nzGutter",16),t.R7$(4),t.Y8G("ngrxLet",a.pageInfo$)}}function Ct(c,g){if(1&c&&t.nrm(0,"cvc-flag-add-form",18),2&c){const a=t.XpG();t.Y8G("flaggable",a.flaggable)("flagAddedCallback",a.refresh)}}let ht=(()=>{class c{constructor(a){this.gql=a,this.defaultPageSize=5,this.selectableStates=[{id:1,displayName:"Open",value:r.Qfy.Open},{id:2,displayName:"Resolved",value:r.Qfy.Resolved}]}ngOnInit(){if(null==this.flaggable)throw new Error("Must pass a flaggable into flag list");this.queryRef=this.gql.watch({first:this.defaultPageSize,flaggable:this.flaggable,state:r.Qfy.Open}),this.refresh=()=>{this.queryRef.refetch()},this.results$=this.queryRef.valueChanges,this.flags$=this.results$.pipe((0,T.E)("data","flags","edges"),(0,s.p)(n.kP),(0,S.T)(a=>a.map(d=>d.node))),this.pageInfo$=this.results$.pipe((0,T.E)("data","flags","pageInfo")),this.unfilteredCount$=this.results$.pipe((0,T.E)("data","flags","unfilteredCountForSubject")),this.uniqueFlaggingUsers$=this.results$.pipe((0,S.T)(({data:a})=>a.flags?.uniqueFlaggingUsers)),this.uniqueResolvingUsers$=this.results$.pipe((0,S.T)(({data:a})=>a.flags?.uniqueResolvingUsers))}onFlaggingUsersSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},flaggingUserId:a?a.id:void 0})}onResolvingUsersSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},resolvingUserId:a?a.id:void 0})}onStateSelected(a){this.queryRef.refetch({flaggable:{id:this.flaggable.id,entityType:this.flaggable.entityType},state:a?a.value:void 0})}loadMore(a){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:a}})}static#n=this.\u0275fac=function(d){return new(d||c)(t.rXU(r.HnF))};static#t=this.\u0275cmp=t.VBU({type:c,selectors:[["cvc-flag-list-and-filter"]],inputs:{flaggable:"flaggable"},decls:4,vars:4,consts:[["noFlags",""],["itemTemplate",""],["noAvatar",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"flags","flagResolvedCallback",4,"nzSpaceItem"],[4,"ngrxLet"],[3,"flaggable","flagAddedCallback",4,"nzSpaceItem"],["nzSpan","6"],["listTitle","Flag State",3,"preselectedOption","participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Flagging Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],["listTitle","Resolving Users",3,"participantList","participantSelectedEvent",4,"nzSpaceItem"],[3,"flags","flagResolvedCallback"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[3,"flaggable","flagAddedCallback"],["listTitle","Flag State",3,"participantSelectedEvent","preselectedOption","participantList"],["listTitle","Flagging Users",3,"participantSelectedEvent","participantList"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["listTitle","Resolving Users",3,"participantSelectedEvent","participantList"]],template:function(d,z){if(1&d&&(t.DNE(0,zt,12,2,"ng-container",3),t.nI1(1,"ngrxPush"),t.DNE(2,Ct,1,2,"ng-template",null,0,t.C5r)),2&d){const L=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,z.unfilteredCount$))("ngIfElse",L)}},dependencies:[m.bT,f.Nj,y.aO,$.c,A.p,F.Uq,F.e,q,nt,tt.T,et.PM,Q.U5,Q.Dq,m.Pc,f.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return c})()},7268:(K,j,o)=>{o.d(j,{G:()=>q});var r=o(177),s=o(3190),S=o(2839),T=o(5703),n=o(8927),t=o(2617),m=o(9417),f=o(4917),y=o(4308),$=o(3842),A=o(3617),F=o(513),X=o(2983),N=o(5154),x=o(3953);let V=(()=>{class I{static#n=this.\u0275fac=function(H){return new(H||I)};static#t=this.\u0275mod=x.$C({type:I});static#e=this.\u0275inj=x.G2t({imports:[r.MD,m.YN,m.X1,n.PQ,F.Zw,T.Ti,A.$,N.Qt,X.V,$.k,f.i,y.I]})}return I})();var k=o(7169),b=o(9192),M=o(1542),G=o(9590),P=o(1209),D=o(9802),O=o(5493),Y=o(7051),h=o(5103),C=o(1236);let v=(()=>{class I{static#n=this.\u0275fac=function(H){return new(H||I)};static#t=this.\u0275mod=x.$C({type:I});static#e=this.\u0275inj=x.G2t({imports:[r.MD,m.X1,F.Zw,n.PQ,m.YN,A.$,T.Ti,C.MC,h.Y3,N.Qt,X.V,y.I,$.k]})}return I})();var u=o(9438),R=o(2986),B=o(9448),W=o(1672),J=o(7529),nn=o(1011),w=o(7685),tn=o(5699),en=o(7391);let Z=(()=>{class I{static#n=this.\u0275fac=function(H){return new(H||I)};static#t=this.\u0275mod=x.$C({type:I});static#e=this.\u0275inj=x.G2t({imports:[r.MD,J.f3,t.rD,T.Ti,w.pc,tn.T,en.kT,u.Yb,W._v,R.IJ,B.g,N.Qt,t.rD,C.MC,h.Y3,nn.j,m.YN,P.k,S.m,b.J,D._,M.X,Y.U,O.G,G.R,f.i,F.Zw,A.$,v,B.g,k.W]})}return I})();var on=o(2968);let q=(()=>{class I{static#n=this.\u0275fac=function(H){return new(H||I)};static#t=this.\u0275mod=x.$C({type:I});static#e=this.\u0275inj=x.G2t({imports:[r.MD,m.YN,F.Zw,n.PQ,s.Sw,F.Zw,S.m,t.rD,T.Ti,V,Z,W._v,on.K,u.Yb,w.pc,f.i]})}return I})()},7428:(K,j,o)=>{o.d(j,{v:()=>s});var r=o(3953);let s=(()=>{class S{constructor(){}static#n=this.\u0275fac=function(t){return new(t||S)};static#t=this.\u0275dir=r.FsC({type:S,selectors:[["","cvcFlaggableOptions",""]]})}return S})()},8821:(K,j,o)=>{o.d(j,{H:()=>k});var r=o(3953),s=o(7428),S=o(177),T=o(1188),n=o(5103),t=o(3146),m=o(5154);const f=["cvcFlaggable",""],y=["*"];function $(b,M){1&b&&r.SdG(0)}function A(b,M){1&b&&r.eu8(0)}function F(b,M){if(1&b&&(r.qex(0),r.DNE(1,A,1,0,"ng-container",4),r.bVm()),2&b){r.XpG();const G=r.sdS(1);r.R7$(),r.Y8G("ngTemplateOutlet",G)}}function X(b,M){if(1&b&&(r.j41(0,"a",6),r.nrm(1,"i",7),r.k0s()),2&b){r.XpG();const G=r.sdS(5);r.R7$(),r.Y8G("nzTooltipTitle",G)}}function N(b,M){if(1&b&&r.EFF(0),2&b){const G=r.XpG(2);r.SpI(" ",G.flags," open flags ")}}function x(b,M){1&b&&r.eu8(0)}function V(b,M){if(1&b&&(r.qex(0),r.j41(1,"nz-ribbon",5),r.DNE(2,X,2,1,"ng-template",null,1,r.C5r)(4,N,1,1,"ng-template",null,2,r.C5r)(6,x,1,0,"ng-container",4),r.k0s(),r.bVm()),2&b){const G=r.sdS(3);r.XpG();const P=r.sdS(1);r.R7$(),r.Y8G("nzText",G),r.R7$(5),r.Y8G("ngTemplateOutlet",P)}}let k=(()=>{class b{constructor(G){this.renderer=G}ngOnChanges(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}ngAfterViewInit(){this.flags&&0===this.flags?this.removeFlagged():this.addFlagged()}addFlagged(){this.flaggedChild&&this.renderer.addClass(this.flaggedChild.nativeElement,"flaggedChild")}removeFlagged(){this.flaggedChild&&this.renderer.removeClass(this.flaggedChild.nativeElement,"flaggedChild")}static#n=this.\u0275fac=function(P){return new(P||b)(r.rXU(r.sFG))};static#t=this.\u0275cmp=r.VBU({type:b,selectors:[["","cvcFlaggable",""]],contentQueries:function(P,D,O){if(1&P&&r.wni(O,s.v,5,r.aKT),2&P){let Y;r.mGM(Y=r.lsd())&&(D.flaggedChild=Y.first)}},inputs:{flags:"flags",entity:"entity"},features:[r.OA$],attrs:f,ngContentSelectors:y,decls:4,vars:2,consts:[["flaggedContent",""],["flaggedText",""],["flaggedTooltip",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["nzPlacement","start","nzColor","#ff3333",3,"nzText"],["routerLink","flags",2,"color","#fff"],["nz-icon","","nzType","flag","nzTheme","fill","nz-tooltip","","nzTooltipPlacement","top","nzTooltipColor","#FF3333",3,"nzTooltipTitle"]],template:function(P,D){1&P&&(r.NAR(),r.DNE(0,$,1,0,"ng-template",null,0,r.C5r)(2,F,2,1,"ng-container",3)(3,V,7,2,"ng-container",3)),2&P&&(r.R7$(2),r.Y8G("ngIf",0===D.flags),r.R7$(),r.Y8G("ngIf",D.flags))},dependencies:[S.bT,S.T3,T.Wk,n.Dn,t.KI,m.LH],encapsulation:2})}return b})()},1896:(K,j,o)=>{o.d(j,{Y:()=>f});var r=o(177),s=o(5154),S=o(7391),T=o(3146),n=o(5103),t=o(1188),m=o(3953);let f=(()=>{class y{static#n=this.\u0275fac=function(F){return new(F||y)};static#t=this.\u0275mod=m.$C({type:y});static#e=this.\u0275inj=m.G2t({imports:[r.MD,t.iI,n.Y3,T.W2,s.Qt,S.kT]})}return y})()},869:(K,j,o)=>{o.d(j,{S:()=>q});var r=o(177),s=o(5703),S=o(2617),T=o(7529),n=o(3953);let t=(()=>{class I{static#n=this.\u0275fac=function(H){return new(H||I)};static#t=this.\u0275mod=n.$C({type:I});static#e=this.\u0275inj=n.G2t({imports:[r.MD,T.f3]})}return I})();var m=o(5757),f=o(1209),y=o(7685),$=o(5699),A=o(7391),F=o(9438),X=o(2839),N=o(9192),x=o(1542),V=o(5493),k=o(4696),b=o(1672),M=o(9590),G=o(2986),P=o(9448),D=o(5154),O=o(513),Y=o(3617),h=o(5103),C=o(1236),v=o(1011),u=o(9417),R=o(4917),B=o(2e3),W=o(4308),J=o(7169),nn=o(6936),w=o(9802),tn=o(996),en=o(6912),Z=o(7086),on=o(8920);let q=(()=>{class I{static#n=this.\u0275fac=function(H){return new(H||I)};static#t=this.\u0275mod=n.$C({type:I});static#e=this.\u0275inj=n.G2t({imports:[r.MD,T.f3,S.rD,s.Ti,y.pc,$.T,A.kT,F.Yb,b._v,G.IJ,P.g,D.Qt,S.rD,C.MC,h.Y3,v.j,B.WF,P.g,u.YN,m.v,en.l,f.k,t,X.m,N.J,w._,x.X,Z.C,nn.G,V.G,M.R,W.I,tn.o,R.i,J.W,on.U,k.GB,O.Zw,Y.$]})}return I})()},4055:(K,j,o)=>{o.d(j,{B:()=>li});var r=o(9145),s=o(6354),S=o(9172),T=o(4608),n=o(3953),t=o(1188),m=o(177),f=o(1774),y=o(7529),$=o(7685),A=o(5699),F=o(9438),X=o(1672),N=o(513),x=o(6389),V=o(5930),k=o(5103),b=o(9365),M=o(1413),G=o(5964),P=o(4572),D=o(1226),O=o(6977),Y=o(9199),h=o(1305),C=o(4222),v=o(2617),u=o(5703),R=o(7391),B=o(2986),W=o(9448),J=o(5154),nn=o(1236),w=o(2e3);let tn=(()=>{class e{transform(i){return i?i.replace(/([a-z])([A-Z])/g,"$1 $2"):""}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275pipe=n.EJ8({name:"camelToWords",type:e,pure:!0})}return e})();const en=["itemTemplate"],Z=e=>({$implicit:e});function on(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function q(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function I(e,l){if(1&e&&(n.j41(0,"nz-list-item",10),n.DNE(1,on,3,4,"ng-container",11)(2,q,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function _n(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG();n.Mz_("nzNoResult","No ",i.entityType,"")}}function Q(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(3);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function H(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function fn(e,l){if(1&e&&(n.j41(0,"nz-list-item",17),n.DNE(1,Q,3,4,"ng-container",11)(2,H,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function vn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(3);n.Mz_("nzNoResult","No ",i.entityType," Removed")}}function pn(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,fn,4,2,"nz-list-item",16)(2,vn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG(2);n.Mz_("nzHeader","Removed ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.removedObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.removedObjects.length)}}function zn(e,l){1&e&&(n.qex(0),n.DNE(1,pn,3,4,"nz-list",8),n.bVm())}function Cn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(2);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function hn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function Rn(e,l){if(1&e&&(n.j41(0,"nz-list-item",19),n.DNE(1,Cn,3,4,"ng-container",11)(2,hn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function Tn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(2);n.Mz_("nzNoResult","No ",i.entityType," Added")}}function En(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,Rn,4,2,"nz-list-item",18)(2,Tn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG();n.Mz_("nzHeader","Added ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.addedObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.addedObjects.length)}}function yn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG(3);n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function bn(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function Fn(e,l){if(1&e&&(n.j41(0,"nz-list-item",21),n.DNE(1,yn,3,4,"ng-container",11)(2,bn,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function Gn(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG(3);n.Mz_("nzNoResult","No ",i.entityType," Kept")}}function Sn(e,l){if(1&e&&(n.j41(0,"nz-list",3),n.DNE(1,Fn,4,2,"nz-list-item",20)(2,Gn,1,2,"nz-list-empty",5),n.k0s()),2&e){const i=n.XpG(2);n.Mz_("nzHeader","Kept ",i.entityType,""),n.R7$(),n.Y8G("ngForOf",i.diffObject.keptObjects),n.R7$(),n.Y8G("ngIf",0===i.diffObject.keptObjects.length)}}function xn(e,l){1&e&&(n.qex(0),n.DNE(1,Sn,3,4,"nz-list",8),n.bVm())}function Dn(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",12),n.eu8(2,13),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit,_=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",_.itemTemplateRef||null)("ngTemplateOutletContext",n.eq3(2,Z,i))}}function In(e,l){if(1&e&&(n.j41(0,"nz-tag",14),n.EFF(1),n.nI1(2,"camelToWords"),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Lme("Deleted ",n.bMT(2,2,i.entityType)," ",i.id,"")}}function $n(e,l){if(1&e&&(n.j41(0,"nz-list-item",22),n.DNE(1,Dn,3,4,"ng-container",11)(2,In,3,4,"ng-template",null,0,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(3);n.R7$(),n.Y8G("ngIf",!i.deleted)("ngIfElse",_)}}function On(e,l){if(1&e&&n.nrm(0,"nz-list-empty",15),2&e){const i=n.XpG();n.Mz_("nzNoResult","No ",i.entityType,"")}}let Ln=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.diffObject)throw new Error("Must specify a diffObject.");if(void 0===this.entityType)throw new Error("Must specify an entityType.")}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-list-diff"]],contentQueries:function(_,p,E){if(1&_&&n.wni(E,en,5),2&_){let U;n.mGM(U=n.lsd())&&(p.itemTemplateRef=U.first)}},inputs:{diffObject:"diffObject",entityType:"entityType"},decls:14,vars:14,consts:[["deleted",""],[3,"nzGutter"],[3,"nzSpan"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader"],["ngClass","current",4,"ngFor","ngForOf"],[3,"nzNoResult",4,"ngIf"],["nzDirection","vertical"],[4,"ngIf"],["nzBordered","","nzType","inner","nzSize","small",3,"nzHeader",4,"nzSpaceItem"],["ngClass","suggested",4,"ngFor","ngForOf"],["ngClass","current"],[4,"ngIf","ngIfElse"],["nz-typography",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nzColor","error"],[3,"nzNoResult"],["ngClass","removed",4,"ngFor","ngForOf"],["ngClass","removed"],["ngClass","added",4,"ngFor","ngForOf"],["ngClass","added"],["ngClass","kept",4,"ngFor","ngForOf"],["ngClass","kept"],["ngClass","suggested"]],template:function(_,p){1&_&&(n.j41(0,"nz-row",1)(1,"nz-col",2)(2,"nz-list",3),n.DNE(3,I,4,2,"nz-list-item",4)(4,_n,1,2,"nz-list-empty",5),n.k0s()(),n.j41(5,"nz-col",2)(6,"nz-space",6),n.DNE(7,zn,2,0,"ng-container",7)(8,En,3,4,"nz-list",8)(9,xn,2,0,"ng-container",7),n.k0s()(),n.j41(10,"nz-col",2)(11,"nz-list",3),n.DNE(12,$n,4,2,"nz-list-item",9)(13,On,1,2,"nz-list-empty",5),n.k0s()()()),2&_&&(n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",8),n.R7$(),n.Mz_("nzHeader","Original ",p.entityType," List"),n.R7$(),n.Y8G("ngForOf",p.diffObject.currentObjects),n.R7$(),n.Y8G("ngIf",0===p.diffObject.currentObjects.length),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.Y8G("ngIf",p.diffObject.currentObjects.length>0),n.R7$(2),n.Y8G("ngIf",p.diffObject.currentObjects.length>0),n.R7$(),n.Y8G("nzSpan",8),n.R7$(),n.Mz_("nzHeader","Revised ",p.entityType," List"),n.R7$(),n.Y8G("ngForOf",p.diffObject.suggestedObjects),n.R7$(),n.Y8G("ngIf",0===p.diffObject.suggestedObjects.length))},dependencies:[m.YU,m.Sq,m.bT,m.T3,v.eE,v.nt,v.lQ,y.Uq,y.e,A.s,$.U5,$.Dq,tn],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return e})();var jn=o(3245),Mn=o(9062);let Pn=(()=>{class e{constructor(){}ngOnInit(){if(void 0===this.left)throw new Error("Must provide a left side of the diff.");if(void 0===this.right)throw new Error("Must provide a right side of the diff.");if(void 0===this.entityType)throw new Error("Must provide a diff.")}static#n=this.\u0275fac=function(_){return new(_||e)};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-value-diff"]],inputs:{currentValue:"currentValue",suggestedValue:"suggestedValue",left:"left",right:"right",entityType:"entityType"},decls:15,vars:10,consts:[[3,"nzGutter"],[3,"nzSpan"],[3,"innerHtml"],[1,"diff","suggested"],[1,"background"]],template:function(_,p){1&_&&(n.j41(0,"nz-row",0)(1,"nz-col",1)(2,"h4"),n.EFF(3),n.k0s(),n.nrm(4,"div",2),n.k0s(),n.j41(5,"nz-col",1)(6,"h4"),n.EFF(7),n.k0s(),n.nrm(8,"div",2),n.k0s(),n.j41(9,"nz-col",1)(10,"h4"),n.EFF(11),n.k0s(),n.j41(12,"div",3)(13,"div",4),n.EFF(14),n.k0s()()()()),2&_&&(n.Y8G("nzGutter",16),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("Original ",p.entityType,""),n.R7$(),n.Y8G("innerHtml",p.left,n.npT),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("",p.entityType," Diff"),n.R7$(),n.Y8G("innerHtml",p.right,n.npT),n.R7$(),n.Y8G("nzSpan",8),n.R7$(2),n.SpI("Revised ",p.entityType,""),n.R7$(3),n.SpI(" ",p.suggestedValue," "))},dependencies:[y.Uq,y.e],styles:[":host{display:block}.diff{overflow:auto;width:100%}.diff .background{padding:4px 8px}.diff.insertions .background{background:#f6ffed;color:#237804}.diff.deletions .background{background:#fff1f0;color:#a8071a}.diff.suggested .background,.diff.original .background{background:#f0f5ff;color:#10239e}.diff del,.diff ins{text-decoration:none}.diff del strong{font-weight:400;background:#fcc}.diff ins strong{font-weight:400;background:#9f9}.diff .del{font-weight:400;background:#fee;color:#b00}.diff .ins{font-weight:400;background:#dfd;color:#080}ul{list-style:none}\n"],encapsulation:2})}return e})();var An=o(6408),Nn=o(9861),Yn=o(9563),sn=o(7047),Vn=o(959),Xn=o(9045),Bn=o(6073),Un=o(311),kn=o(5566),Hn=o(5473),Wn=o(4126),Kn=o(6440),gn=o(4696),Qn=o(3617),Jn=o(1845),Zn=o(3075),wn=o(8139);const mn=(e,l,i,_,p)=>({id:e,name:l,link:i,deprecated:_,flagged:p}),an=(e,l,i,_)=>({id:e,name:l,link:i,deprecated:_}),dn=(e,l,i)=>({id:e,name:l,link:i}),un=(e,l,i,_,p,E)=>({id:e,name:l,link:i,feature:_,deprecated:p,flagged:E}),qn=(e,l,i,_,p)=>({id:e,name:l,link:i,status:_,flagged:p}),nt=()=>({float:"right"});function tt(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-alert",17),n.bIt("nzOnClose",function(){const p=n.eBV(i).$implicit,E=n.XpG();return n.Njj(E.onErrorBannerClose(p))}),n.k0s()}2&e&&n.Y8G("nzMessage",l.$implicit)}function et(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-alert",18),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG();return n.Njj(p.onSuccessBannerClose())}),n.k0s()}if(2&e){const i=n.XpG();n.Mz_("nzMessage","Revision(s) successfully ",i.success,".")}}function rn(e,l){if(1&e&&n.nrm(0,"cvc-feature-tag",29),2&e){const i=l.$implicit;n.Y8G("feature",n.s1E(1,mn,i.id,i.displayName,i.link,i.deprecated,i.flagged))}}function it(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",28),n.DNE(2,rn,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ot(e,l){1&e&&n.nrm(0,"cvc-source-tag",31),2&e&&n.Y8G("source",l.$implicit)}function st(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",30),n.DNE(2,ot,1,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function at(e,l){if(1&e&&n.nrm(0,"cvc-disease-tag",33),2&e){const i=l.$implicit;n.Y8G("disease",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function rt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",32),n.DNE(2,at,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function lt(e,l){if(1&e&&n.nrm(0,"cvc-molecular-profile-tag",35),2&e){const i=l.$implicit;n.Y8G("molecularProfile",n.s1E(1,mn,i.id,i.displayName,i.link,i.deprecated,i.flagged))}}function ct(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",34),n.DNE(2,lt,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function _t(e,l){if(1&e&&n.nrm(0,"cvc-therapy-tag",37),2&e){const i=l.$implicit;n.Y8G("therapy",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function pt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",36),n.DNE(2,_t,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function gt(e,l){if(1&e&&n.nrm(0,"cvc-therapy-tag",37),2&e){const i=l.$implicit;n.Y8G("therapy",n.ziG(1,an,i.id,i.displayName,i.link,i.deprecated))}}function mt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",36),n.DNE(2,gt,1,6,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function dt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function ut(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",38),n.DNE(2,dt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ft(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function vt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",39),n.DNE(2,ft,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function zt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function Ct(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",40),n.DNE(2,zt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function ht(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function c(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",41),n.DNE(2,ht,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function g(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function a(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",42),n.DNE(2,g,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function d(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function z(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",43),n.DNE(2,d,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function L(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function ln(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",44),n.DNE(2,L,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function bt(e,l){if(1&e&&(n.j41(0,"nz-tag"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.SpI(" ",i.displayName," ")}}function Ft(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",45),n.DNE(2,bt,2,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Gt(e,l){if(1&e&&n.nrm(0,"cvc-variant-type-tag",47),2&e){const i=l.$implicit;n.Y8G("variantType",n.sMw(1,dn,i.id,i.displayName,i.link))}}function St(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",46),n.DNE(2,Gt,1,5,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function xt(e,l){if(1&e&&n.nrm(0,"cvc-phenotype-tag",49),2&e){const i=l.$implicit;n.Y8G("phenotype",n.sMw(1,dn,i.id,i.displayName,i.link))}}function Dt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",48),n.DNE(2,xt,1,5,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function It(e,l){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",51),2&e){const i=l.$implicit;n.Y8G("variant",n.l4e(1,un,i.id,i.displayName,i.link,i.feature,i.deprecated,i.flagged))}}function $t(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",50),n.DNE(2,It,1,8,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Ot(e,l){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",51),2&e){const i=l.$implicit;n.Y8G("variant",n.l4e(1,un,i.id,i.displayName,i.link,i.feature,i.deprecated,i.flagged))}}function Lt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",52),n.DNE(2,Ot,1,8,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function jt(e,l){1&e&&n.nrm(0,"cvc-source-tag",31),2&e&&n.Y8G("source",l.$implicit)}function Mt(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",53),n.DNE(2,jt,1,1,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Pt(e,l){if(1&e&&n.nrm(0,"cvc-evidence-tag",55),2&e){const i=l.$implicit;n.Y8G("evidence",n.s1E(1,qn,i.id,i.displayName,i.link,i.status,i.flagged))}}function At(e,l){if(1&e&&(n.qex(0),n.j41(1,"cvc-revision-list-diff",54),n.DNE(2,Pt,1,7,"ng-template",null,4,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("diffObject",i.linkoutData.diffValue)}}function Nt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"cvc-revision-value-diff",56),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(),n.Y8G("currentValue",i.currentValue)("suggestedValue",i.suggestedValue)("left",i.linkoutData.diffValue.left)("right",i.linkoutData.diffValue.right)("entityType",i.linkoutData.name)}}function Yt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"cvc-comment-body",60),n.bVm()),2&e){const i=n.XpG(2).$implicit;n.R7$(),n.Y8G("commentBodySegments",i.resolutionActivity.parsedNote)}}function Vt(e,l){if(1&e&&n.nrm(0,"cvc-user-tag",61),2&e){const i=n.XpG(2).$implicit;n.Y8G("user",i.resolutionActivity.user)}}function Xt(e,l){if(1&e&&(n.qex(0),n.nrm(1,"nz-divider"),n.j41(2,"nz-row")(3,"nz-col",57),n.DNE(4,Yt,2,1,"ng-container",27),n.k0s(),n.j41(5,"nz-col",58),n.EFF(6),n.nI1(7,"enumToTitle"),n.DNE(8,Vt,1,1,"cvc-user-tag",59),n.EFF(9),n.nI1(10,"timeAgo"),n.k0s()(),n.bVm()),2&e){const i=n.XpG().$implicit;n.R7$(4),n.Y8G("ngIf",null==i.resolutionActivity?null:i.resolutionActivity.parsedNote),n.R7$(2),n.SpI(" ",n.bMT(7,4,i.status)," By "),n.R7$(2),n.Y8G("ngIf",void 0!==(null==i.resolutionActivity?null:i.resolutionActivity.user)),n.R7$(),n.SpI(" ",n.bMT(10,6,null==i.resolutionActivity?null:i.resolutionActivity.createdAt)," ")}}function Bt(e,l){if(1&e&&(n.j41(0,"span"),n.nrm(1,"i",63),n.nI1(2,"entityColor"),n.EFF(3),n.j41(4,"span"),n.EFF(5),n.k0s()()),2&e){const i=n.XpG(2).$implicit;n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,3,"Revision")),n.R7$(2),n.SpI(" RID",i.id," "),n.R7$(2),n.SpI("",i.linkoutData.name," Updated")}}function Ut(e,l){if(1&e&&n.nrm(0,"i",65),2&e){n.XpG();const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function kt(e,l){if(1&e&&n.nrm(0,"cvc-comment-body",60),2&e){const i=n.XpG(3).$implicit;n.Y8G("commentBodySegments",i.creationActivity.parsedNote)}}function Ht(e,l){1&e&&(n.qex(0),n.DNE(1,Ut,1,1,"i",64)(2,kt,1,1,"ng-template",null,5,n.C5r),n.bVm())}function Wt(e,l){if(1&e&&(n.j41(0,"nz-space"),n.DNE(1,Bt,6,5,"span",62)(2,Ht,4,0,"ng-container",27),n.k0s()),2&e){const i=n.XpG().$implicit;n.R7$(2),n.Y8G("ngIf",null==i.creationActivity?null:i.creationActivity.parsedNote)}}function Kt(e,l){if(1&e&&(n.j41(0,"span",71),n.EFF(1," for\xa0 "),n.k0s(),n.nrm(2,"cvc-organization-tag",72)),2&e){const i=n.XpG(4).$implicit;n.R7$(2),n.Y8G("org",i.creationActivity.organization)}}function Qt(e,l){if(1&e&&(n.qex(0),n.j41(1,"span",71),n.EFF(2," By\xa0 "),n.k0s(),n.nrm(3,"cvc-user-tag",61),n.DNE(4,Kt,3,1),n.bVm()),2&e){const i=n.XpG(3).$implicit;n.R7$(3),n.Y8G("user",i.creationActivity.user),n.R7$(),n.vxM(null!=i.creationActivity&&i.creationActivity.organization?4:-1)}}function Jt(e,l){1&e&&(n.j41(0,"span",71),n.EFF(1,"Submitted"),n.k0s())}function Zt(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Qt,5,2,"ng-container",70)(2,Jt,2,0,"ng-template",null,6,n.C5r),n.j41(4,"span",71),n.EFF(5),n.nI1(6,"timeAgo"),n.k0s()()),2&e){const i=n.sdS(3),_=n.XpG(2).$implicit;n.R7$(),n.Y8G("ngIf",null==_.creationActivity?null:_.creationActivity.user)("ngIfElse",i),n.R7$(4),n.JRh(n.bMT(6,3,_.createdAt))}}function wt(e,l){if(1&e&&n.nrm(0,"cvc-status-tag",73),2&e){const i=n.XpG(2).$implicit;n.Y8G("status",i.status)}}function qt(e,l){1&e&&n.nrm(0,"nz-divider",74)}function ne(e,l){if(1&e){const i=n.RV6();n.j41(0,"a",75),n.bIt("click",function(){n.eBV(i);const p=n.XpG(2).$implicit,E=n.XpG(3);return n.Njj(E.onChangesetSelected(p.revisionSetId))}),n.EFF(1,"Show Group"),n.k0s()}}function te(e,l){1&e&&n.nrm(0,"nz-divider",74)}function ee(e,l){1&e&&n.nrm(0,"label",77),2&e&&n.Y8G("nzDisabled",!0)}function ie(e,l){1&e&&n.nrm(0,"label",79),2&e&&n.Y8G("nzDisabled",!0)}function oe(e,l){if(1&e){const i=n.RV6();n.j41(0,"label",80),n.bIt("nzCheckedChange",function(p){n.eBV(i);const E=n.XpG(5).$implicit,U=n.XpG(3);return n.Njj(U.onRevisionCheckboxClicked(p,E.id))}),n.k0s()}}function se(e,l){if(1&e&&n.DNE(0,ie,1,1,"label",78)(1,oe,1,0,"ng-template",null,8,n.C5r),2&e){const i=n.sdS(2),_=n.XpG(4).$implicit,p=n.XpG(2).ngrxLet;n.Y8G("ngIf",p.isCurator&&p.id!=(null==_.creationActivity?null:_.creationActivity.user.id))("ngIfElse",i)}}function ae(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,ee,1,1,"label",76)(2,se,3,2,"ng-template",null,7,n.C5r),n.k0s()),2&e){const i=n.sdS(3),_=n.XpG(5).ngrxLet;n.R7$(),n.Y8G("ngIf",!_.signedIn)("ngIfElse",i)}}function re(e,l){1&e&&(n.qex(0),n.DNE(1,te,1,0,"nz-divider",68)(2,ae,4,2,"span",62),n.bVm())}function le(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-space",66),n.bIt("click",function(p){return n.eBV(i),n.Njj(p.stopPropagation())}),n.DNE(1,Zt,7,5,"span",62)(2,wt,1,1,"cvc-status-tag",67)(3,qt,1,0,"nz-divider",68)(4,ne,2,0,"a",69)(5,re,3,0,"ng-container",27),n.k0s()}if(2&e){const i=n.XpG().$implicit;n.R7$(5),n.Y8G("ngIf","NEW"===i.status)}}function ce(e,l){if(1&e&&(n.j41(0,"nz-collapse-panel",23),n.qex(1,24),n.DNE(2,it,4,1,"ng-container",25)(3,st,4,1,"ng-container",25)(4,rt,4,1,"ng-container",25)(5,ct,4,1,"ng-container",25)(6,pt,4,1,"ng-container",25)(7,mt,4,1,"ng-container",25)(8,ut,4,1,"ng-container",25)(9,vt,4,1,"ng-container",25)(10,Ct,4,1,"ng-container",25)(11,c,4,1,"ng-container",25)(12,a,4,1,"ng-container",25)(13,z,4,1,"ng-container",25)(14,ln,4,1,"ng-container",25)(15,Ft,4,1,"ng-container",25)(16,St,4,1,"ng-container",25)(17,Dt,4,1,"ng-container",25)(18,$t,4,1,"ng-container",25)(19,Lt,4,1,"ng-container",25)(20,Mt,4,1,"ng-container",25)(21,At,4,1,"ng-container",25)(22,Nt,2,5,"ng-container",26),n.bVm(),n.DNE(23,Xt,11,8,"ng-container",27)(24,Wt,3,1,"ng-template",null,2,n.C5r)(26,le,6,1,"ng-template",null,3,n.C5r),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(25),p=n.sdS(27);n.Y8G("nzHeader",_)("nzExtra",p)("nzActive",!0),n.R7$(),n.Y8G("ngSwitch",i.fieldName),n.R7$(),n.Y8G("ngSwitchCase","feature_id"),n.R7$(),n.Y8G("ngSwitchCase","source_ids"),n.R7$(),n.Y8G("ngSwitchCase","disease_id"),n.R7$(),n.Y8G("ngSwitchCase","molecular_profile_id"),n.R7$(),n.Y8G("ngSwitchCase","drug_ids"),n.R7$(),n.Y8G("ngSwitchCase","therapy_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","feature_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","molecular_profile_alias_ids"),n.R7$(),n.Y8G("ngSwitchCase","clinvar_entry_ids"),n.R7$(),n.Y8G("ngSwitchCase","clingen_code_ids"),n.R7$(),n.Y8G("ngSwitchCase","acmg_code_ids"),n.R7$(),n.Y8G("ngSwitchCase","nccn_guideline_id"),n.R7$(),n.Y8G("ngSwitchCase","hgvs_description_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_type_ids"),n.R7$(),n.Y8G("ngSwitchCase","phenotype_ids"),n.R7$(),n.Y8G("ngSwitchCase","variant_id"),n.R7$(),n.Y8G("ngSwitchCase","variant_ids"),n.R7$(),n.Y8G("ngSwitchCase","source_id"),n.R7$(),n.Y8G("ngSwitchCase","evidence_item_ids"),n.R7$(2),n.Y8G("ngIf","NEW"!==i.status)}}function _e(e,l){if(1&e&&(n.j41(0,"nz-collapse",21),n.DNE(1,ce,28,25,"nz-collapse-panel",22),n.k0s()),2&e){const i=n.XpG(2);n.R7$(),n.Y8G("ngForOf",i.untypedRevisons)}}function pe(e,l){1&e&&n.nrm(0,"nz-empty",81)}function ge(e,l){if(1&e&&(n.qex(0),n.j41(1,"nz-card",19),n.DNE(2,_e,2,1,"nz-collapse",20)(3,pe,1,0,"ng-template",null,1,n.C5r),n.k0s(),n.bVm()),2&e){const i=n.sdS(4),_=n.XpG(),p=n.sdS(4);n.R7$(),n.Y8G("nzExtra",p),n.R7$(),n.Y8G("ngIf",_.revisions&&_.revisions.length>0)("ngIfElse",i)}}function me(e,l){}function de(e,l){1&e&&n.DNE(0,me,0,0,"ng-template")}function ue(e,l){if(1&e&&(n.qex(0),n.DNE(1,de,1,0,null,85),n.bVm()),2&e){n.XpG();const i=n.sdS(5);n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function fe(e,l){}function ve(e,l){1&e&&n.DNE(0,fe,0,0,"ng-template")}function ze(e,l){if(1&e&&(n.j41(0,"span",86),n.DNE(1,ve,1,0,null,85),n.k0s()),2&e){n.XpG();const i=n.sdS(5);n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function Ce(e,l){if(1&e){const i=n.RV6();n.j41(0,"button",87),n.mxI("nzPopoverVisibleChange",function(p){n.eBV(i);const E=n.XpG(7);return n.DH7(E.validationPopoverVisible,p)||(E.validationPopoverVisible=p),n.Njj(p)}),n.bIt("click",function(){n.eBV(i);const p=n.XpG(7);return n.Njj(p.validationPopoverVisible=!p.validationPopoverVisible)}),n.EFF(1," Review Selected Revisions "),n.nrm(2,"i",88),n.k0s()}if(2&e){const i=n.XpG(2).ngrxLet,_=n.sdS(7),p=n.sdS(9),E=n.XpG(5);n.Y8G("nzPopoverTitle",_),n.R50("nzPopoverVisible",E.validationPopoverVisible),n.Y8G("nzPopoverContent",p)("nzPopoverTrigger",void 0)("disabled",0===E.selectedRevisionIds.length||!i.signedIn)}}function he(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,ue,2,1,"ng-container",70)(2,ze,2,1,"ng-template",null,12,n.C5r)(4,Ce,3,5,"ng-template",null,13,n.C5r),n.k0s()),2&e){const i=n.sdS(3),_=n.XpG().ngrxLet;n.R7$(),n.Y8G("ngIf",_.signedIn)("ngIfElse",i)}}function Re(e,l){if(1&e&&n.nrm(0,"i",90),2&e){n.XpG(4);const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function Te(e,l){1&e&&(n.qex(0),n.DNE(1,Re,1,1,"i",89),n.bVm())}function Ee(e,l){if(1&e){const i=n.RV6();n.EFF(0," Review Selected Revisions "),n.j41(1,"span",91)(2,"i",92),n.bIt("click",function(){n.eBV(i);const p=n.XpG(6);return n.Njj(p.validationPopoverVisible=!1)}),n.k0s()()}2&e&&(n.R7$(),n.Y8G("ngStyle",n.lJ4(1,nt)))}function ye(e,l){if(1&e){const i=n.RV6();n.j41(0,"cvc-comment-input-form",95),n.mxI("commentChange",function(p){n.eBV(i);const E=n.XpG(7);return n.DH7(E.revisionComment,p)||(E.revisionComment=p),n.Njj(p)}),n.k0s()}if(2&e){const i=n.XpG(7);n.R50("comment",i.revisionComment)}}function be(e,l){if(1&e){const i=n.RV6();n.j41(0,"span")(1,"button",96),n.bIt("click",function(){n.eBV(i);const p=n.XpG(8);return n.Njj(p.onRejectRevisionsClicked())}),n.EFF(2," Reject Revision "),n.k0s()()}if(2&e){const i=n.XpG(8);n.R7$(),n.Y8G("nzLoading",i.isLoading)("disabled",void 0===i.revisionComment||i.revisionComment.length<10)("nzTooltipTrigger",i.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==i.mostRecentOrg?null:i.mostRecentOrg.name))}}function Fe(e,l){if(1&e){const i=n.RV6();n.j41(0,"span")(1,"button",97),n.bIt("click",function(){n.eBV(i);const p=n.XpG(8);return n.Njj(p.onAcceptRevisionClicked())}),n.EFF(2," Accept Revision "),n.k0s()()}if(2&e){const i=n.XpG(4).ngrxLet,_=n.XpG(4);n.R7$(),n.Y8G("nzLoading",_.isLoading)("disabled",!(0==i&&(void 0===_.revisionComment||""===_.revisionComment||_.revisionComment.length>=10)))("nzTooltipTrigger",_.mostRecentOrg?"hover":null)("nzTooltipTitle","For "+(null==_.mostRecentOrg?null:_.mostRecentOrg.name))}}function Ge(e,l){if(1&e&&n.nrm(0,"i",99),2&e){n.XpG(6);const i=n.sdS(3);n.Y8G("nzPopoverContent",i)}}function Se(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Ge,1,1,"i",98),n.k0s()),2&e){const i=n.XpG(4).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i>0)}}function xe(e,l){1&e&&(n.j41(0,"span")(1,"nz-space"),n.DNE(2,be,3,4,"span",62)(3,Fe,3,4,"span",62)(4,Se,2,1,"span",62),n.k0s()())}function De(e,l){1&e&&(n.j41(0,"nz-space",93),n.DNE(1,ye,1,1,"cvc-comment-input-form",94)(2,xe,5,0,"span",62),n.k0s())}function Ie(e,l){if(1&e&&(n.qex(0),n.j41(1,"div",82)(2,"div",83)(3,"nz-space",84),n.DNE(4,he,6,2,"span",62)(5,Te,2,0,"ng-container",27),n.k0s(),n.DNE(6,Ee,3,2,"ng-template",null,10,n.C5r)(8,De,3,0,"ng-template",null,11,n.C5r),n.k0s()(),n.bVm()),2&e){const i=n.XpG().ngrxLet;n.R7$(5),n.Y8G("ngIf",i&&i>0)}}function $e(e,l){if(1&e&&(n.qex(0),n.DNE(1,Ie,10,1,"ng-container",16),n.bVm()),2&e){const i=n.XpG(4);n.R7$(),n.Y8G("ngrxLet",i.viewer$)}}function Oe(e,l){if(1&e&&(n.j41(0,"nz-list-item"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i)}}function Le(e,l){if(1&e&&(n.j41(0,"nz-card",101)(1,"nz-list",102),n.DNE(2,Oe,2,1,"nz-list-item",103),n.k0s()()),2&e){const i=n.XpG(3).ngrxLet;n.R7$(2),n.Y8G("ngForOf",i)}}function je(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Le,3,1,"nz-card",100),n.k0s()),2&e){const i=n.XpG(2).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i.length>0)}}function Me(e,l){if(1&e&&(n.j41(0,"nz-descriptions-item",108),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.Y8G("nzTitle",i.fieldName),n.R7$(),n.JRh(i.error)}}function Pe(e,l){if(1&e&&(n.j41(0,"nz-card",105)(1,"nz-descriptions",106),n.DNE(2,Me,2,2,"nz-descriptions-item",107),n.k0s()()),2&e){const i=n.XpG(4).ngrxLet;n.R7$(2),n.Y8G("ngForOf",i)}}function Ae(e,l){if(1&e&&(n.j41(0,"span"),n.DNE(1,Pe,3,1,"nz-card",104),n.k0s()),2&e){const i=n.XpG(3).ngrxLet;n.R7$(),n.Y8G("ngIf",i&&i.length>0)}}function Ne(e,l){1&e&&(n.j41(0,"nz-space",93),n.DNE(1,je,2,1,"span",62)(2,Ae,2,1,"span",62),n.k0s())}function Ye(e,l){if(1&e&&(n.qex(0),n.DNE(1,$e,2,1,"ng-container",16)(2,Ne,3,0,"ng-template",null,9,n.C5r),n.bVm()),2&e){const i=n.XpG(3);n.R7$(),n.Y8G("ngrxLet",i.totalErrorCount$)}}function Ve(e,l){if(1&e&&(n.qex(0),n.DNE(1,Ye,4,1,"ng-container",16),n.bVm()),2&e){const i=n.XpG(2);n.R7$(),n.Y8G("ngrxLet",i.genericErrors$)}}function Xe(e,l){if(1&e&&n.DNE(0,Ve,2,1,"ng-container",16),2&e){const i=n.XpG();n.Y8G("ngrxLet",i.validationErrors$)}}let Be=(()=>{class e{constructor(i,_,p,E,U){this.viewerService=i,this.networkErrorService=_,this.acceptRevisionsGql=p,this.rejectRevisionsGql=E,this.validationGql=U,this.refetchQueries=[],this.selectedRevisionIds=[],this.isLoading=!1,this.success=!1,this.validationPopoverVisible=!1,this.destroy$=new M.B,this.revisionSetSelectedEvent=new n.bkB,this.revisionMutationCompleted=new n.bkB,this.acceptRevisionsMutator=new D.E(this.networkErrorService),this.rejectRevisionsMutator=new D.E(this.networkErrorService),this.viewer$=this.viewerService.viewer$}ngOnChanges(i){this.untypedRevisons=this.revisions,this.selectedRevisionIds=[],this.queryRef&&this.queryRef.refetch({ids:this.selectedRevisionIds})}ngOnInit(){this.viewerService.viewer$.subscribe(i=>{this.mostRecentOrg=i.mostRecentOrg}),this.queryRef=this.validationGql.watch({ids:[]}),this.genericErrors$=this.queryRef.valueChanges.pipe((0,T.E)("data","validateRevisionsForAcceptance","genericErrors"),(0,G.p)(Y.kP),(0,S.Z)([])),this.validationErrors$=this.queryRef.valueChanges.pipe((0,T.E)("data","validateRevisionsForAcceptance","validationErrors"),(0,G.p)(Y.kP),(0,S.Z)([])),this.totalErrorCount$=(0,P.z)([this.genericErrors$,this.validationErrors$]).pipe((0,s.T)(([i,_])=>i.length+_.length),(0,S.Z)(0)),this.untypedRevisons=this.revisions}onChangesetSelected(i){this.revisionSetSelectedEvent.emit(i)}onRevisionCheckboxClicked(i,_){i?this.selectedRevisionIds.push(_):this.selectedRevisionIds=this.selectedRevisionIds.filter(p=>p!=_),this.queryRef.refetch({ids:this.selectedRevisionIds})}setupMutationResultHandlers(i,_){i.submitSuccess$.pipe((0,O.Q)(this.destroy$)).subscribe(p=>{p&&(this.isLoading=!1,this.revisionMutationCompleted.emit(),this.errors=void 0,this.success=_,this.validationPopoverVisible=!1,this.selectedRevisionIds=[],this.revisionComment=void 0)}),i.submitError$.pipe((0,O.Q)(this.destroy$)).subscribe(p=>{p.length>0&&(this.isLoading=!1,this.success=!1,this.errors=p,this.validationPopoverVisible=!1,this.selectedRevisionIds=[])})}onRejectRevisionsClicked(){if(this.revisionComment&&""!==this.revisionComment){this.isLoading=!0;let i=this.rejectRevisionsMutator.mutate(this.rejectRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:this.mostRecentOrg?.id,comment:this.revisionComment}},{refetchQueries:this.refetchQueries});this.setupMutationResultHandlers(i,"rejected")}}onAcceptRevisionClicked(){this.isLoading=!0;let i=this.acceptRevisionsMutator.mutate(this.acceptRevisionsGql,{input:{ids:this.selectedRevisionIds,organizationId:this.mostRecentOrg?.id,comment:""===this.revisionComment?void 0:this.revisionComment}},{refetchQueries:this.refetchQueries});this.setupMutationResultHandlers(i,"accepted")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onErrorBannerClose(i){this.errors=this.errors?.filter(_=>_!=i)}onSuccessBannerClose(){this.success=!1}static#n=this.\u0275fac=function(_){return new(_||e)(n.rXU(h.q),n.rXU(C.N),n.rXU(r.QZR),n.rXU(r.BMV),n.rXU(r.ZFx))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revision-list"]],inputs:{revisions:"revisions",refetchQueries:"refetchQueries"},outputs:{revisionSetSelectedEvent:"revisionSetSelectedEvent",revisionMutationCompleted:"revisionMutationCompleted"},features:[n.OA$],decls:5,vars:3,consts:[["moderationButtons",""],["noRevisions",""],["revCardHeaderTitle",""],["revCardHeaderExtra",""],["itemTemplate",""],["creationCommentTemplate",""],["noRevisor",""],["loggedIn",""],["canRevise",""],["validationErrorTemplate",""],["validationPopoverTitleTemplate",""],["validationPopoverContentTemplate",""],["notSignedIn",""],["submitButton",""],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],[4,"ngrxLet"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzTitle","Revisions",1,"card-list",3,"nzExtra"],["class","revision-list",4,"ngIf","ngIfElse"],[1,"revision-list"],[3,"nzHeader","nzExtra","nzActive",4,"ngFor","ngForOf"],[3,"nzHeader","nzExtra","nzActive"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"],["entityType","Feature",3,"diffObject"],[3,"feature"],["entityType","Sources",3,"diffObject"],[3,"source"],["entityType","Disease",3,"diffObject"],[3,"disease"],["entityType","Molecular Profile",3,"diffObject"],[3,"molecularProfile"],["entityType","Therapies",3,"diffObject"],[3,"therapy"],["entityType","Variant Aliases",3,"diffObject"],["entityType","Feature Aliases",3,"diffObject"],["entityType","Molecular Profile Aliases",3,"diffObject"],["entityType","ClinVar Entries",3,"diffObject"],["entityType","ClinGen/CGC/VICC Code(s)",3,"diffObject"],["entityType","ACMG/AMP Code(s)",3,"diffObject"],["entityType","NCCN Guideline",3,"diffObject"],["entityType","HGVS Descriptions",3,"diffObject"],["entityType","Variant Types",3,"diffObject"],[3,"variantType"],["entityType","Phenotypes",3,"diffObject"],[3,"phenotype"],["entityType","Variant",3,"diffObject"],[3,"variant"],["entityType","Variants",3,"diffObject"],["entityType","Source",3,"diffObject"],["entityType","Evidence",3,"diffObject"],[3,"evidence"],[3,"currentValue","suggestedValue","left","right","entityType"],["nzSpan","16"],["nzSpan","8","nz-typography","","nzType","secondary",2,"text-align","right"],[3,"user",4,"ngIf"],[3,"commentBodySegments"],[3,"user"],[4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-popover","","nz-icon","","nzType","comment","nzTheme","outline",3,"nzPopoverContent"],["nzSize","small",3,"click"],[3,"status",4,"nzSpaceItem"],["nzType","vertical",4,"nzSpaceItem"],["nz-button","","nzType","link",3,"click",4,"nzSpaceItem"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],[3,"org"],[3,"status"],["nzType","vertical"],["nz-button","","nzType","link",3,"click"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled",4,"ngIf","ngIfElse"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Curators may only reject their own revisions.",3,"nzDisabled"],["nz-checkbox","","nz-tooltip","","nzTooltipTitle","Select Revision for Acceptance/Rejection",3,"nzCheckedChange"],["nzNotFoundImage","simple","nzNotFoundContent","No Revisions matching filters"],["nz-row","",2,"margin-top","1em"],["nz-col","","nzSpan","24",2,"text-align","right"],["nzDirection","horizontal"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in to manage revisions."],["nz-button","","nz-popover","","nzSize","small","nzPopoverPlacement","bottom",3,"nzPopoverVisibleChange","click","nzPopoverTitle","nzPopoverVisible","nzPopoverContent","nzPopoverTrigger","disabled"],["nz-icon","","nzType","caret-down","nzTheme","outline"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"nzSpaceItem"],["nz-icon","","nzType","exclamation-circle","nzTheme","twotone","nzTwotoneColor","red","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],[3,"ngStyle"],["nz-icon","","nzType","close","nzTheme","outline",3,"click"],["nzDirection","vertical"],[3,"comment","commentChange",4,"nzSpaceItem"],[3,"commentChange","comment"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nzDanger","","nz-tooltip","",3,"click","nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle"],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzSize","small","nz-tooltip","",3,"click","nzLoading","disabled","nzTooltipTrigger","nzTooltipTitle"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent",4,"ngIf"],["nz-icon","","nzTwotoneColor","red","nzType","exclamation-circle","nzTheme","twotone","nz-popover","","nzPopoverTitle","Selected Revisions would result in an invalid entity",3,"nzPopoverContent"],["nzTitle","Errors",4,"ngIf"],["nzTitle","Errors"],["nzSize","small"],[4,"ngFor","ngForOf"],["nzTitle","Validation Errors",4,"ngIf"],["nzTitle","Validation Errors"],["nzBordered",""],[3,"nzTitle",4,"ngFor","ngForOf"],[3,"nzTitle"]],template:function(_,p){1&_&&n.DNE(0,tt,1,1,"nz-alert",14)(1,et,1,2,"nz-alert",15)(2,ge,5,3,"ng-container",16)(3,Xe,1,1,"ng-template",null,0,n.C5r),2&_&&(n.Y8G("ngForOf",p.errors),n.R7$(),n.Y8G("ngIf",p.success),n.R7$(),n.Y8G("ngrxLet",p.viewer$))},dependencies:[m.Sq,m.bT,m.T3,m.B3,m.ux,m.e1,m.fG,y.Uq,y.e,v.eE,v.lQ,u.cK,$.U5,$.Dq,A.s,R.Di,X.RW,B.$g,W.j,J.LH,nn.L_,k.Dn,w.xA,w.gr,Ln,jn._,Mn.D,Pn,An.r,Nn.Y,Yn.R,sn.A,Vn.j,Xn.J,Bn.h,Un.g,kn.K,Hn.z,Wn.p,Kn.r,gn.Vz,gn.pc,N.aO,x.c,V.p,Qn.Y,f.Nj,Jn.f,Zn.R,wn.N],styles:["[_nghost-%COMP%]{display:block}nz-list[_ngcontent-%COMP%] .kept[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .added[_ngcontent-%COMP%]{background-color:#f6ffed;color:#135200}nz-list[_ngcontent-%COMP%] .removed[_ngcontent-%COMP%]{background-color:#fff1f0;color:#820014}nz-list[_ngcontent-%COMP%] .suggested[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}nz-list[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{background-color:#f0f5ff;color:#061178}"]})}return e})();const Rt=()=>[];function Ue(e,l){if(1&e){const i=n.RV6();n.j41(0,"cvc-revision-list",16),n.nI1(1,"ngrxPush"),n.bIt("revisionSetSelectedEvent",function(p){n.eBV(i);const E=n.XpG(2);return n.Njj(E.onRevisionSetSelected(p))})("revisionMutationCompleted",function(){n.eBV(i);const p=n.XpG(2);return n.Njj(p.refresh())}),n.k0s()}if(2&e){const i=n.XpG(2);n.Y8G("revisions",n.bMT(1,2,i.revisions$))("refetchQueries",i.refetchQueries)}}function ke(e,l){if(1&e){const i=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(i);const p=n.XpG(2).ngrxLet,E=n.XpG(2);return n.Njj(E.loadMore(null==p?null:p.endCursor))}),n.EFF(1," Load More "),n.k0s()}}function He(e,l){1&e&&(n.qex(0),n.DNE(1,ke,2,0,"button",18),n.bVm())}function We(e,l){if(1&e&&(n.qex(0),n.DNE(1,He,2,0,"ng-container",17),n.bVm()),2&e){const i=l.ngrxLet;n.R7$(),n.Y8G("ngIf",i&&(null==i?null:i.hasNextPage)&&i.endCursor)}}function Ke(e,l){if(1&e){const i=n.RV6();n.j41(0,"nz-row")(1,"nz-tag",21),n.bIt("nzOnClose",function(){n.eBV(i);const p=n.XpG(3);return n.Njj(p.onSetFilterClearClicked())}),n.EFF(2),n.k0s()()}if(2&e){const i=n.XpG(3);n.R7$(2),n.SpI("Group: ",i.filteredSet,"")}}function Qe(e,l){1&e&&(n.j41(0,"nz-space",7),n.DNE(1,Ke,3,1,"nz-row",20),n.k0s())}function Je(e,l){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i.displayName)}}function Ze(e,l){if(1&e&&n.nrm(0,"nz-avatar",23),2&e){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function we(e,l){if(1&e&&(n.nrm(0,"nz-avatar",24),n.nI1(1,"uppercase")),2&e){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.username.charAt(0)))}}function qe(e,l){if(1&e&&(n.DNE(0,Ze,1,1,"nz-avatar",22)(1,we,2,3,"ng-template",null,2,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",_),n.R7$(4),n.JRh(i.username)}}function ni(e,l){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const i=l.$implicit;n.R7$(),n.JRh(i.displayName)}}function ti(e,l){if(1&e&&n.nrm(0,"nz-avatar",23),2&e){const i=n.XpG().$implicit;n.Y8G("nzSrc",i.profileImagePath)}}function ei(e,l){if(1&e&&(n.nrm(0,"nz-avatar",24),n.nI1(1,"uppercase")),2&e){const i=n.XpG().$implicit;n.Y8G("nzText",n.bMT(1,1,i.username.charAt(0)))}}function ii(e,l){if(1&e&&(n.DNE(0,ti,1,1,"nz-avatar",22)(1,ei,2,3,"ng-template",null,2,n.C5r),n.j41(3,"span"),n.EFF(4),n.k0s()),2&e){const i=l.$implicit,_=n.sdS(2);n.Y8G("ngIf",i.profileImagePath)("ngIfElse",_),n.R7$(4),n.JRh(i.username)}}function oi(e,l){if(1&e){const i=n.RV6();n.qex(0),n.j41(1,"nz-row",5)(2,"nz-col",6)(3,"nz-space",7),n.DNE(4,Ue,2,4,"cvc-revision-list",8)(5,We,2,1,"ng-container",9),n.k0s()(),n.j41(6,"nz-col",10),n.DNE(7,Qe,2,0,"nz-space",11),n.j41(8,"cvc-participant-list",12),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const E=n.XpG();return n.Njj(E.onStatusSelected(p))}),n.DNE(9,Je,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(11,"cvc-participant-list",13),n.nI1(12,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const E=n.XpG();return n.Njj(E.onRevisorSelected(p))}),n.DNE(13,qe,5,3,"ng-template",null,1,n.C5r),n.k0s(),n.j41(15,"cvc-participant-list",14),n.nI1(16,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const E=n.XpG();return n.Njj(E.onFieldNameSelected(p))}),n.DNE(17,ni,2,1,"ng-template",null,1,n.C5r),n.k0s(),n.j41(19,"cvc-participant-list",15),n.nI1(20,"ngrxPush"),n.bIt("participantSelectedEvent",function(p){n.eBV(i);const E=n.XpG();return n.Njj(E.onResolverSelected(p))}),n.DNE(21,ii,5,3,"ng-template",null,1,n.C5r),n.k0s()()(),n.bVm()}if(2&e){const i=n.XpG();n.R7$(),n.Y8G("nzGutter",16),n.R7$(4),n.Y8G("ngrxLet",i.pageInfo$),n.R7$(2),n.Y8G("ngIf",i.filteredSet),n.R7$(),n.Y8G("preselectedOption",i.preselectedRevisionStatus)("participantList",i.selectableStatuses),n.R7$(3),n.Y8G("participantList",n.bMT(12,8,i.uniqueRevisors$)||n.lJ4(14,Rt)),n.R7$(4),n.Y8G("participantList",n.bMT(16,10,i.revisionFields$)||n.lJ4(15,Rt)),n.R7$(4),n.Y8G("participantList",n.bMT(20,12,i.uniqueResolvers$)||n.lJ4(16,Rt))}}function si(e,l){1&e&&(n.qex(0),n.j41(1,"nz-row",25),n.nrm(2,"i",26),n.k0s(),n.bVm())}function ai(e,l){1&e&&n.nrm(0,"nz-empty",27)}function ri(e,l){if(1&e&&(n.DNE(0,si,3,0,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,ai,1,0,"ng-template",null,3,n.C5r)),2&e){const i=n.sdS(3),_=n.XpG();n.Y8G("ngIf",n.bMT(1,2,_.isLoading$))("ngIfElse",i)}}let li=(()=>{class e{constructor(i,_,p,E,U,cn,Tt,ci,_i,pi,gi,mi,di,ui){this.gql=i,this.route=_,this.variantDetailGql=p,this.variantSummaryGql=E,this.variantGroupDetailGql=U,this.variantGroupSummaryGql=cn,this.assertionDetailGql=Tt,this.assertionSummaryGql=ci,this.featureDetailGql=_i,this.featureSummaryGql=pi,this.evidenceDetailGql=gi,this.evidenceSummaryGql=mi,this.molecularProfileDetailGql=di,this.molecularProfileSummaryGql=ui,this.filteredSet=void 0,this.selectableStatuses=[{id:4,displayName:"New",value:r.W14.New},{id:1,displayName:"Accepted",value:r.W14.Accepted},{id:2,displayName:"Rejected",value:r.W14.Rejected},{id:3,displayName:"Superseded",value:r.W14.Superseded}],this.preselectedRevisionStatus=this.selectableStatuses[0],this.defaultPageSize=10,this.refetchQueries=[]}ngOnInit(){switch(this.routeSub=this.route.params.subscribe(i=>{this.queryParamsSub=this.route.queryParams.subscribe(_=>{let p={first:this.defaultPageSize,subject:this.moderated,status:r.W14.New};_.revisionSetId&&(this.filteredSet=+_.revisionSetId,this.preselectedRevisionStatus=void 0,p.status=void 0,p.revisionSetId=+_.revisionSetId),this.queryRef=this.gql.watch(p);let E=this.queryRef.valueChanges;this.revisions$=E.pipe((0,T.E)("data","revisions","edges"),(0,s.T)(U=>U.map(cn=>cn.node))),this.isLoading$=E.pipe((0,s.T)(U=>U.loading),(0,S.Z)(!0)),this.pageInfo$=E.pipe((0,T.E)("data","revisions","pageInfo")),this.uniqueRevisors$=E.pipe((0,s.T)(({data:U})=>U.revisions?.uniqueRevisors)),this.uniqueResolvers$=E.pipe((0,s.T)(({data:U})=>U.revisions?.uniqueResolvers)),this.revisionFields$=E.pipe((0,s.T)(({data:U})=>U.revisions?.revisedFieldNames.map((cn,Tt)=>({...cn,id:Tt})))),this.unfilteredCount$=E.pipe((0,T.E)("data","revisions","unfilteredCountForSubject"))})}),this.moderated.entityType){case r.BlQ.Variant:return this.refetchQueries.push({query:this.variantDetailGql.document,variables:{variantId:this.moderated.id}}),void this.refetchQueries.push({query:this.variantSummaryGql.document,variables:{variantId:this.moderated.id}});case r.BlQ.Assertion:return this.refetchQueries.push({query:this.assertionDetailGql.document,variables:{assertionId:this.moderated.id}}),void this.refetchQueries.push({query:this.assertionSummaryGql.document,variables:{assertionId:this.moderated.id}});case r.BlQ.EvidenceItem:return this.refetchQueries.push({query:this.evidenceDetailGql.document,variables:{evidenceId:this.moderated.id}}),void this.refetchQueries.push({query:this.evidenceSummaryGql.document,variables:{evidenceId:this.moderated.id}});case r.BlQ.Feature:return this.refetchQueries.push({query:this.featureDetailGql.document,variables:{featureId:this.moderated.id}}),void this.refetchQueries.push({query:this.featureSummaryGql.document,variables:{featureId:this.moderated.id}});case r.BlQ.VariantGroup:return this.refetchQueries.push({query:this.variantGroupDetailGql.document,variables:{variantGroupId:this.moderated.id}}),void this.refetchQueries.push({query:this.variantGroupSummaryGql.document,variables:{variantGroupId:this.moderated.id}});case r.BlQ.MolecularProfile:return this.refetchQueries.push({query:this.molecularProfileDetailGql.document,variables:{molecularProfileId:this.moderated.id}}),void this.refetchQueries.push({query:this.molecularProfileSummaryGql.document,variables:{molecularProfileId:this.moderated.id}})}}ngOnDestroy(){this.routeSub?.unsubscribe(),this.queryParamsSub?.unsubscribe()}onFieldNameSelected(i){this.queryRef.refetch({subject:this.moderated,fieldName:i?i.name:void 0})}onRevisorSelected(i){this.queryRef.refetch({subject:this.moderated,originatingUserId:i?i.id:void 0})}onResolverSelected(i){this.queryRef.refetch({subject:this.moderated,resolvingUserId:i?i.id:void 0})}onStatusSelected(i){this.preselectedRevisionStatus=i,this.queryRef.refetch({subject:this.moderated,status:i?i.value:void 0})}onRevisionSetSelected(i){this.filteredSet=i,this.queryRef.refetch({subject:this.moderated,revisionSetId:i||void 0})}onSetFilterClearClicked(){this.filteredSet=void 0,this.queryRef.refetch({subject:this.moderated,revisionSetId:void 0})}refresh(){this.queryRef.refetch()}loadMore(i){this.queryRef?.fetchMore({variables:{first:this.defaultPageSize,after:i}})}static#n=this.\u0275fac=function(_){return new(_||e)(n.rXU(r.xPr),n.rXU(t.nX),n.rXU(r.N47),n.rXU(r.yLZ),n.rXU(r.IbX),n.rXU(r.sAe),n.rXU(r.kKs),n.rXU(r.fqJ),n.rXU(r.ULh),n.rXU(r.gUZ),n.rXU(r.fQd),n.rXU(r.Ype),n.rXU(r.Tj8),n.rXU(r.SPr))};static#t=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-revisions-list-and-filter"]],inputs:{moderated:"moderated"},decls:4,vars:4,consts:[["noRevisions",""],["itemTemplate",""],["noAvatar",""],["noneFound",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","18"],["nzDirection","vertical"],[3,"revisions","refetchQueries","revisionSetSelectedEvent","revisionMutationCompleted",4,"nzSpaceItem"],[4,"ngrxLet"],["nzSpan","6"],["nzDirection","vertical",4,"ngIf"],["listTitle","Filter by Revision Status",3,"participantSelectedEvent","preselectedOption","participantList"],["listTitle","Filter by Revisor",3,"participantSelectedEvent","participantList"],["listTitle","Filter by Field",3,"participantSelectedEvent","participantList"],["listTitle","Filter by Resolver",3,"participantSelectedEvent","participantList"],[3,"revisionSetSelectedEvent","revisionMutationCompleted","revisions","refetchQueries"],[4,"ngIf"],["nz-button","","nzBlock","","nzType","default",3,"click",4,"nzSpaceItem"],["nz-button","","nzBlock","","nzType","default",3,"click"],[4,"nzSpaceItem"],["nzMode","closeable",3,"nzOnClose"],["nz-comment-avatar","",3,"nzSrc",4,"ngIf","ngIfElse"],["nz-comment-avatar","",3,"nzSrc"],["nz-comment-avatar","",3,"nzText"],["nzJustify","center"],["nz-icon","","nzType","loading",2,"font-size","32px"],["nzNotFoundImage","simple","nzNotFoundContent","Entity has no Revisions"]],template:function(_,p){if(1&_&&(n.DNE(0,oi,23,17,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,ri,4,4,"ng-template",null,0,n.C5r)),2&_){const E=n.sdS(3);n.Y8G("ngIf",n.bMT(1,2,p.unfilteredCount$))("ngIfElse",E)}},dependencies:[m.bT,f.Nj,y.Uq,y.e,$.U5,$.Dq,A.s,F.PM,X.RW,N.aO,x.c,V.p,k.Dn,b.T,Be,m.Pc,f.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%]{width:100%}"]})}return e})()},6371:(K,j,o)=>{o.d(j,{O:()=>x});var r=o(177),s=o(7529),S=o(2617),T=o(5703),n=o(7685),t=o(5699),m=o(7391),f=o(2968),y=o(9438),$=o(869),A=o(1672),F=o(513),X=o(5103),N=o(3953);let x=(()=>{class V{static#n=this.\u0275fac=function(M){return new(M||V)};static#t=this.\u0275mod=N.$C({type:V});static#e=this.\u0275inj=N.G2t({imports:[r.MD,s.f3,S.rD,T.Ti,n.pc,t.T,m.kT,y.Yb,A._v,F.Zw,X.Y3,f.K,$.S]})}return V})()},6269:(K,j,o)=>{o.d(j,{f:()=>h});var r=o(4608),s=o(3953),S=o(9145),T=o(177),n=o(7391),t=o(1188),m=o(9438),f=o(1236),y=o(2e3),$=o(2702),A=o(7793);function F(C,v){1&C&&(s.qex(0),s.EFF(1,", "),s.bVm())}function X(C,v){if(1&C&&(s.qex(0),s.EFF(1),s.nI1(2,"eventVerbiage"),s.DNE(3,F,2,0,"ng-container",12),s.bVm()),2&C){const u=v.$implicit,R=v.last;s.R7$(),s.SpI(" ",s.brH(2,2,u.action,"contributor-card",u.count)," "),s.R7$(2),s.Y8G("ngIf",!R)}}function N(C,v){if(1&C&&(s.j41(0,"nz-descriptions",8)(1,"nz-descriptions-item",9),s.DNE(2,X,4,6,"ng-container",10),s.k0s(),s.j41(3,"nz-descriptions-item",11),s.EFF(4),s.nI1(5,"date"),s.k0s()()),2&C){const u=s.XpG(2).$implicit;s.Y8G("nzColumn",1),s.R7$(2),s.Y8G("ngForOf",u.uniqueActions),s.R7$(2),s.SpI(" ",s.bMT(5,3,u.lastActionDate)," ")}}function x(C,v){if(1&C&&(s.j41(0,"cvc-user-popover",7),s.DNE(1,N,6,5,"ng-template",null,2,s.C5r),s.k0s()),2&C){const u=s.XpG().$implicit;s.Y8G("userId",u.user.id)}}function V(C,v){if(1&C&&(s.j41(0,"a",5),s.nrm(1,"nz-avatar",6),s.DNE(2,x,3,1,"ng-template",null,1,s.C5r),s.k0s()),2&C){const u=v.$implicit,R=s.sdS(3);s.Mz_("routerLink","/users/",u.user.id,""),s.R7$(),s.Y8G("nzSize",14)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",R)("nzSrc",u.user.profileImagePath)}}function k(C,v){if(1&C&&(s.qex(0),s.DNE(1,V,4,6,"a",4),s.bVm()),2&C){const u=s.XpG();s.R7$(),s.Y8G("ngForOf",u.sortedContributors)}}function b(C,v){1&C&&s.EFF(0," None ")}let M=(()=>{class C{ngOnInit(){if(void 0===this.contributors)throw new Error("Must pass a list of contributors into the contributor stack");this.sortedContributors=this.contributors.slice(),this.sortedContributors.sort((u,R)=>R.totalActionCount-u.totalActionCount)}static#n=this.\u0275fac=function(R){return new(R||C)};static#t=this.\u0275cmp=s.VBU({type:C,selectors:[["cvc-contributor-stack"]],inputs:{contributors:"contributors"},decls:3,vars:2,consts:[["noContributors",""],["curatorPopover",""],["additionalMetadata",""],[4,"ngIf","ngIfElse"],["class","avatar",3,"routerLink",4,"ngFor","ngForOf"],[1,"avatar",3,"routerLink"],["nz-popover","","nzPopoverTrigger","hover","nzPopoverPlacement","bottomRight","nzIcon","user","nzSize","small",3,"nzSize","nzPopoverMouseEnterDelay","nzPopoverContent","nzSrc"],[3,"userId"],["nzBordered","","nzTitle","Activity","nzSize","small",3,"nzColumn"],["nzTitle","Contributions"],[4,"ngFor","ngForOf"],["nzTitle","Last Contribution"],[4,"ngIf"]],template:function(R,B){if(1&R&&s.DNE(0,k,2,1,"ng-container",3)(1,b,1,0,"ng-template",null,0,s.C5r),2&R){const W=s.sdS(2);s.Y8G("ngIf",B.sortedContributors&&B.sortedContributors.length>0)("ngIfElse",W)}},dependencies:[T.Sq,T.bT,t.Wk,m.PM,f.L_,y.xA,y.gr,$.M,T.vh,A.s],encapsulation:2})}return C})();var G=o(1774);function P(C,v){if(1&C&&(s.qex(0),s.nrm(1,"cvc-contributor-stack",5),s.bVm()),2&C){const u=v.ngIf;s.R7$(),s.Y8G("contributors",u)}}function D(C,v){1&C&&s.EFF(0," None ")}function O(C,v){if(1&C&&(s.qex(0),s.nrm(1,"cvc-contributor-stack",5),s.bVm()),2&C){const u=v.ngIf;s.R7$(),s.Y8G("contributors",u)}}function Y(C,v){1&C&&s.EFF(0," None ")}let h=(()=>{class C{constructor(u){this.gql=u}ngOnInit(){if(void 0===this.subscribable)throw new Error("Must pass a subscribable into ContributorAvatars component.");let u=this.gql.watch({subscribable:this.subscribable}).valueChanges;this.curators$=u.pipe((0,r.E)("data","contributors","curators")),this.editors$=u.pipe((0,r.E)("data","contributors","editors"))}static#n=this.\u0275fac=function(R){return new(R||C)(s.rXU(S.wBW))};static#t=this.\u0275cmp=s.VBU({type:C,selectors:[["cvc-contributor-avatars"]],inputs:{subscribable:"subscribable"},decls:14,vars:8,consts:[["noCurators",""],["noEditors",""],["nz-typography","","nzType","secondary",1,"role-group-label"],[1,"role-group"],[4,"ngIf","ngIfElse"],[3,"contributors"]],template:function(R,B){if(1&R&&(s.j41(0,"span",2),s.EFF(1,"Curators:"),s.k0s(),s.j41(2,"div",3),s.DNE(3,P,2,1,"ng-container",4),s.nI1(4,"ngrxPush"),s.DNE(5,D,1,0,"ng-template",null,0,s.C5r),s.k0s(),s.j41(7,"span",2),s.EFF(8,"Editors:"),s.k0s(),s.j41(9,"div",3),s.DNE(10,O,2,1,"ng-container",4),s.nI1(11,"ngrxPush"),s.DNE(12,Y,1,0,"ng-template",null,1,s.C5r),s.k0s()),2&R){const W=s.sdS(6),J=s.sdS(13);s.R7$(3),s.Y8G("ngIf",s.bMT(4,4,B.curators$))("ngIfElse",W),s.R7$(7),s.Y8G("ngIf",s.bMT(11,6,B.editors$))("ngIfElse",J)}},dependencies:[T.bT,n.Di,M,G.L9],styles:["[_nghost-%COMP%]{display:inline-block}.role-group-label[_ngcontent-%COMP%]{margin-left:12px}.role-group[_ngcontent-%COMP%]{display:inline-block}.role-group[_ngcontent-%COMP%] .avatar[_ngcontent-%COMP%]{display:inline-block;margin-left:2px}"]})}return C})()},8103:(K,j,o)=>{o.d(j,{m:()=>A});var r=o(177),s=o(7391),S=o(1188),T=o(9438),n=o(1236),t=o(4917),m=o(2225),f=o(2e3),y=o(3953);let $=(()=>{class F{static#n=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=y.$C({type:F});static#e=this.\u0275inj=y.G2t({imports:[r.MD,S.iI,T.Yb,n.MC,f.WF,t.i,m.h]})}return F})(),A=(()=>{class F{static#n=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=y.$C({type:F});static#e=this.\u0275inj=y.G2t({imports:[r.MD,s.kT,$]})}return F})()},5269:(K,j,o)=>{o.d(j,{o:()=>M});var r=o(1226),s=o(9145),S=o(1413),T=o(5964),n=o(6977),t=o(9199),m=o(4608),f=o(3953),y=o(4222),$=o(177),A=o(513),F=o(6389),X=o(5930),N=o(5103),x=o(5154),V=o(1774);function k(G,P){if(1&G){const D=f.RV6();f.qex(0),f.j41(1,"button",2),f.bIt("click",function(){f.eBV(D);const Y=f.XpG();return f.Njj(Y.unsubscribe())}),f.nrm(2,"i",3),f.k0s(),f.bVm()}if(2&G){const D=f.XpG();f.R7$(),f.Y8G("nzLoading",D.isSubmitting)}}function b(G,P){if(1&G){const D=f.RV6();f.j41(0,"button",4),f.bIt("click",function(){f.eBV(D);const Y=f.XpG();return f.Njj(Y.subscribe())}),f.nrm(1,"i",5),f.k0s()}if(2&G){const D=f.XpG();f.Y8G("nzLoading",D.isSubmitting)}}let M=(()=>{class G{constructor(D,O,Y,h){this.isSubscribedGQL=D,this.unsubscribeMutation=O,this.subscribeMutation=Y,this.networkErrorService=h,this.isSubmitting=!1,this.destroy$=new S.B,this.unsubscribeMutator=new r.E(h),this.subscribeMutator=new r.E(h)}ngOnInit(){if(void 0===this.viewer)throw new Error("Must pass in a viewer to the CvcEntitySubscriptionButtonComponent");if(void 0===this.typename)throw new Error("Must pass in a typename to the CvcEntitySubscriptionButtonComponent");if(void 0===this.subscribableId)throw new Error("Must pass in a subscribableId to the CvcEntitySubscriptionButtonComponent");this.subscribable={id:this.subscribableId,entityType:s.V9U[this.typename]},this.queryRef=this.isSubscribedGQL.watch({subscribable:this.subscribable}),this.existingSubscription$=this.queryRef.valueChanges.pipe((0,m.E)("data","subscriptionForEntity"),(0,T.p)(t.kP))}subscribe(){this.subscribable&&(this.isSubmitting=!0,this.subscribeMutator.mutate(this.subscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.Q)(this.destroy$)).subscribe(O=>{O&&(this.queryRef?.refetch(),this.isSubmitting=!1)}))}unsubscribe(){this.subscribable&&(this.isSubmitting=!0,this.unsubscribeMutator.mutate(this.unsubscribeMutation,{input:{subscribables:[this.subscribable]}}).submitSuccess$.pipe((0,n.Q)(this.destroy$)).subscribe(O=>{O&&(this.queryRef?.refetch(),this.isSubmitting=!1)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#n=this.\u0275fac=function(O){return new(O||G)(f.rXU(s.aUH),f.rXU(s.ytN),f.rXU(s.RSy),f.rXU(y.N))};static#t=this.\u0275cmp=f.VBU({type:G,selectors:[["cvc-entity-subscription-button"]],inputs:{viewer:"viewer",typename:"typename",subscribableId:"subscribableId"},decls:4,vars:4,consts:[["noSub",""],[4,"ngIf","ngIfElse"],["nz-button","","nz-tooltip","Unsubscribe","nzSize","small",3,"click","nzLoading"],["nz-icon","","nzType","bell","nzTheme","fill"],["nz-button","","nz-tooltip","Subscribe","nzSize","small",3,"click","nzLoading"],["nz-icon","","nzType","bell","nzTheme","outline"]],template:function(O,Y){if(1&O&&(f.DNE(0,k,3,1,"ng-container",1),f.nI1(1,"ngrxPush"),f.DNE(2,b,2,1,"ng-template",null,0,f.C5r)),2&O){const h=f.sdS(3);f.Y8G("ngIf",f.bMT(1,2,Y.existingSubscription$))("ngIfElse",h)}},dependencies:[$.bT,A.aO,F.c,X.p,N.Dn,x.LH,V.L9],styles:["[_nghost-%COMP%]{display:block}"]})}return G})()},5736:(K,j,o)=>{o.d(j,{V:()=>t});var r=o(177),s=o(513),S=o(5103),T=o(5154),n=o(3953);let t=(()=>{class m{static#n=this.\u0275fac=function($){return new($||m)};static#t=this.\u0275mod=n.$C({type:m});static#e=this.\u0275inj=n.G2t({imports:[r.MD,s.Zw,S.Y3,T.Qt]})}return m})()},7793:(K,j,o)=>{o.d(j,{s:()=>S});var r=o(9145),s=o(3953);let S=(()=>{class T{transform(t,m="contributor-card",f=0){return"contributor-card"===m?this.contributorVerbiage(t,f):"action-filter"===m?this.actionFilterVerbiage(t):this.eventFeedVerbiage(t)}eventFeedVerbiage(t){switch(t){case r.H1z.Commented:return"added comment";case r.H1z.RevisionSuggested:return"suggested revision";case r.H1z.RevisionAccepted:return"accepted revision";case r.H1z.RevisionRejected:return"rejected revision";case r.H1z.RevisionSuperseded:return"closed revision";case r.H1z.Flagged:return"opened new flag";case r.H1z.FlagResolved:return"resolved flag";case r.H1z.AssertionSubmitted:return"submitted assertion";case r.H1z.AssertionAccepted:return"accepted assertion";case r.H1z.AssertionRejected:return"rejected assertion";case r.H1z.Submitted:return"submitted evidence item";case r.H1z.Accepted:return"accepted evidence item";case r.H1z.Rejected:return"rejected evidence item";case r.H1z.PublicationSuggested:return"created source suggestion";case r.H1z.CuratedSourceSuggestion:return"finished curating source suggestion";case r.H1z.RejectedSourceSuggestion:return"rejected source suggestion";case r.H1z.RequeuedSourceSuggestion:return"requeued source suggestion";case r.H1z.Reverted:return"reverted evidence item";case r.H1z.AssertionReverted:return"reverted assertion";case r.H1z.DeprecatedVariant:return"deprecated variant";case r.H1z.DeprecatedFeature:return"deprecated feature";case r.H1z.DeprecatedMolecularProfile:return"deprecated molecular profile";case r.H1z.VariantCreated:return"created variant";case r.H1z.FeatureCreated:return"created feature";case r.H1z.ComplexMolecularProfileCreated:return"created complex molecular profile";case r.H1z.CommentDeleted:return"deleted comment";default:return t}}actionFilterVerbiage(t){switch(t){case r.H1z.Commented:return"commented";case r.H1z.RevisionSuggested:return"revision suggested";case r.H1z.RevisionAccepted:return"revision accepted";case r.H1z.RevisionRejected:return"revision rejected";case r.H1z.RevisionSuperseded:return"revision closed";case r.H1z.Flagged:return"flag opened";case r.H1z.FlagResolved:return"flag resolved";case r.H1z.AssertionSubmitted:return"assertion submitted";case r.H1z.AssertionAccepted:return"assertion accepted";case r.H1z.AssertionRejected:return"assertion rejected";case r.H1z.Submitted:return"evidence item submitted";case r.H1z.Accepted:return"evidence item accepted";case r.H1z.Rejected:return"evidence item rejected";case r.H1z.PublicationSuggested:return"source suggestion created";case r.H1z.CuratedSourceSuggestion:return"source suggestion curated";case r.H1z.RejectedSourceSuggestion:return"source suggestion rejected";case r.H1z.RequeuedSourceSuggestion:return"source suggestion requeued";case r.H1z.Reverted:return"evidence item reverted";case r.H1z.AssertionReverted:return"assertion reverted";case r.H1z.DeprecatedVariant:return"variant deprecated";case r.H1z.DeprecatedMolecularProfile:return"molecular profile deprecated";case r.H1z.VariantCreated:return"variant created";case r.H1z.ComplexMolecularProfileCreated:return"complex molecular profile created";case r.H1z.CommentDeleted:return"comment deleted";default:return t}}contributorVerbiage(t,m){switch(t){case r.H1z.Commented:return 1==m?"left a comment on this entity":`left ${m} comments on this entity`;case r.H1z.RevisionSuggested:return 1==m?"suggested a revision to this entity":`suggested ${m} revisions on this entity`;case r.H1z.RevisionAccepted:return 1==m?"accepted a revision to this entity":`accepted ${m} revisions on this entity`;case r.H1z.RevisionRejected:return 1==m?"rejected a revision to this entity":`rejected ${m} revisions on this entity`;case r.H1z.RevisionSuperseded:return 1==m?"closed a revision to this entity":`closed ${m} revisions on this entity`;case r.H1z.Flagged:return 1==m?"opened new flag on this entity":`opened ${m} new flags on this entity`;case r.H1z.FlagResolved:return 1==m?"resolved a flag on this entity":`resolved ${m} flags on this entity`;case r.H1z.AssertionSubmitted:return"submitted this assertion";case r.H1z.AssertionAccepted:return"accepted this assertion";case r.H1z.AssertionRejected:return"rejected this assertion";case r.H1z.Submitted:return"submitted this evidence item";case r.H1z.Accepted:return"accepted this evidence item";case r.H1z.Rejected:return"rejected this evidence item";case r.H1z.PublicationSuggested:return"";case r.H1z.CuratedSourceSuggestion:return"finished curating this source suggestion";case r.H1z.RejectedSourceSuggestion:return"rejected this source suggestion";case r.H1z.RequeuedSourceSuggestion:return"requeued this source suggestion";case r.H1z.AssertionReverted:return"reverted this assertion";case r.H1z.Reverted:return"reverted this evidence item";case r.H1z.DeprecatedVariant:return"deprecated this variant";case r.H1z.DeprecatedMolecularProfile:return"deprecated this molecular profile";case r.H1z.DeprecatedFeature:return"deprecated this feature";case r.H1z.FeatureCreated:return"created this feature";case r.H1z.VariantCreated:return"created this variant";case r.H1z.ComplexMolecularProfileCreated:return"created this complex molecular profile";default:return t}}static#n=this.\u0275fac=function(m){return new(m||T)};static#t=this.\u0275pipe=s.EJ8({name:"eventVerbiage",type:T,pure:!0})}return T})()},4696:(K,j,o)=>{o.d(j,{GB:()=>Y,Vz:()=>O,pc:()=>P});var r=o(4707),s=o(3953),S=o(3726),T=o(6977),n=o(5964),t=o(713),m=o(6042),f=o(7806),y=o(1025),$=o(5103),A=o(8203),F=o(6841);const X=["*"],N=["collapseHeader"];function x(h,C){if(1&h&&(s.qex(0),s.nrm(1,"span",7),s.bVm()),2&h){const v=C.$implicit,u=s.XpG(2);s.R7$(),s.Y8G("nzType",v||"right")("nzRotate",u.nzActive?90:0)}}function V(h,C){if(1&h&&(s.j41(0,"div"),s.DNE(1,x,2,2,"ng-container",3),s.k0s()),2&h){const v=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",v.nzExpandedIcon)}}function k(h,C){if(1&h&&(s.qex(0),s.EFF(1),s.bVm()),2&h){const v=s.XpG();s.R7$(),s.JRh(v.nzHeader)}}function b(h,C){if(1&h&&(s.qex(0),s.EFF(1),s.bVm()),2&h){const v=s.XpG(2);s.R7$(),s.JRh(v.nzExtra)}}function M(h,C){if(1&h&&(s.j41(0,"div",4),s.DNE(1,b,2,1,"ng-container",3),s.k0s()),2&h){const v=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",v.nzExtra)}}const G="collapse";let P=(()=>{class h{constructor(v,u,R,B){this.nzConfigService=v,this.cdr=u,this.directionality=R,this.destroy$=B,this._nzModuleName=G,this.nzAccordion=!1,this.nzBordered=!0,this.nzGhost=!1,this.nzExpandIconPosition="start",this.dir="ltr",this.listOfNzCollapsePanelComponent=[],this.nzConfigService.getConfigChangeEventForComponent(G).pipe((0,T.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,T.Q)(this.destroy$)).subscribe(v=>{this.dir=v,this.cdr.detectChanges()}),this.dir=this.directionality.value}addPanel(v){this.listOfNzCollapsePanelComponent.push(v)}removePanel(v){this.listOfNzCollapsePanelComponent.splice(this.listOfNzCollapsePanelComponent.indexOf(v),1)}click(v){this.nzAccordion&&!v.nzActive&&this.listOfNzCollapsePanelComponent.filter(u=>u!==v).forEach(u=>{u.nzActive&&(u.nzActive=!1,u.nzActiveChange.emit(u.nzActive),u.markForCheck())}),v.nzActive=!v.nzActive,v.nzActiveChange.emit(v.nzActive)}static#n=this.\u0275fac=function(u){return new(u||h)(s.rXU(m.yx),s.rXU(s.gRc),s.rXU(A.dS,8),s.rXU(y.y4))};static#t=this.\u0275cmp=s.VBU({type:h,selectors:[["nz-collapse"]],hostAttrs:[1,"ant-collapse"],hostVars:10,hostBindings:function(u,R){2&u&&s.AVh("ant-collapse-icon-position-start","start"===R.nzExpandIconPosition)("ant-collapse-icon-position-end","end"===R.nzExpandIconPosition)("ant-collapse-ghost",R.nzGhost)("ant-collapse-borderless",!R.nzBordered)("ant-collapse-rtl","rtl"===R.dir)},inputs:{nzAccordion:[2,"nzAccordion","nzAccordion",s.L39],nzBordered:[2,"nzBordered","nzBordered",s.L39],nzGhost:[2,"nzGhost","nzGhost",s.L39],nzExpandIconPosition:"nzExpandIconPosition"},exportAs:["nzCollapse"],standalone:!0,features:[s.Jv_([y.y4]),s.GFd,s.aNF],ngContentSelectors:X,decls:1,vars:0,template:function(u,R){1&u&&(s.NAR(),s.SdG(0))},encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,m.H4)()],h.prototype,"nzAccordion",void 0),(0,r.Cg)([(0,m.H4)()],h.prototype,"nzBordered",void 0),(0,r.Cg)([(0,m.H4)()],h.prototype,"nzGhost",void 0),h})();const D="collapsePanel";let O=(()=>{class h{markForCheck(){this.cdr.markForCheck()}constructor(v,u,R,B,W,J){this.nzConfigService=v,this.ngZone=u,this.cdr=R,this.destroy$=B,this.nzCollapseComponent=W,this.noAnimation=J,this._nzModuleName=D,this.nzActive=!1,this.nzDisabled=!1,this.nzShowArrow=!0,this.nzActiveChange=new s.bkB,this.nzConfigService.getConfigChangeEventForComponent(D).pipe((0,T.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.nzCollapseComponent.addPanel(this),this.ngZone.runOutsideAngular(()=>(0,S.R)(this.collapseHeader.nativeElement,"click").pipe((0,n.p)(()=>!this.nzDisabled),(0,T.Q)(this.destroy$)).subscribe(()=>{this.ngZone.run(()=>{this.nzCollapseComponent.click(this),this.cdr.markForCheck()})}))}ngOnDestroy(){this.nzCollapseComponent.removePanel(this)}static#n=this.\u0275fac=function(u){return new(u||h)(s.rXU(m.yx),s.rXU(s.SKi),s.rXU(s.gRc),s.rXU(y.y4),s.rXU(P,1),s.rXU(F.z,8))};static#t=this.\u0275cmp=s.VBU({type:h,selectors:[["nz-collapse-panel"]],viewQuery:function(u,R){if(1&u&&s.GBs(N,7),2&u){let B;s.mGM(B=s.lsd())&&(R.collapseHeader=B.first)}},hostAttrs:[1,"ant-collapse-item"],hostVars:6,hostBindings:function(u,R){2&u&&s.AVh("ant-collapse-no-arrow",!R.nzShowArrow)("ant-collapse-item-active",R.nzActive)("ant-collapse-item-disabled",R.nzDisabled)},inputs:{nzActive:[2,"nzActive","nzActive",s.L39],nzDisabled:[2,"nzDisabled","nzDisabled",s.L39],nzShowArrow:[2,"nzShowArrow","nzShowArrow",s.L39],nzExtra:"nzExtra",nzHeader:"nzHeader",nzExpandedIcon:"nzExpandedIcon"},outputs:{nzActiveChange:"nzActiveChange"},exportAs:["nzCollapsePanel"],standalone:!0,features:[s.Jv_([y.y4]),s.GFd,s.aNF],ngContentSelectors:X,decls:9,vars:8,consts:[["collapseHeader",""],["role","button",1,"ant-collapse-header"],[1,"ant-collapse-header-text"],[4,"nzStringTemplateOutlet"],[1,"ant-collapse-extra"],[1,"ant-collapse-content"],[1,"ant-collapse-content-box"],["nz-icon","",1,"ant-collapse-arrow",3,"nzType","nzRotate"]],template:function(u,R){1&u&&(s.NAR(),s.j41(0,"div",1,0),s.DNE(2,V,2,1,"div"),s.j41(3,"span",2),s.DNE(4,k,2,1,"ng-container",3),s.k0s(),s.DNE(5,M,2,1,"div",4),s.k0s(),s.j41(6,"div",5)(7,"div",6),s.SdG(8),s.k0s()()),2&u&&(s.BMQ("aria-expanded",R.nzActive),s.R7$(2),s.vxM(R.nzShowArrow?2:-1),s.R7$(2),s.Y8G("nzStringTemplateOutlet",R.nzHeader),s.R7$(),s.vxM(R.nzExtra?5:-1),s.R7$(),s.AVh("ant-collapse-content-active",R.nzActive),s.Y8G("@.disabled",!(null==R.noAnimation||!R.noAnimation.nzNoAnimation))("@collapseMotion",R.nzActive?"expanded":"hidden"))},dependencies:[f.C,f.m,$.Y3,$.Dn],encapsulation:2,data:{animation:[t.GE]},changeDetection:0})}return(0,r.Cg)([(0,m.H4)()],h.prototype,"nzShowArrow",void 0),h})(),Y=(()=>{class h{static#n=this.\u0275fac=function(u){return new(u||h)};static#t=this.\u0275mod=s.$C({type:h});static#e=this.\u0275inj=s.G2t({imports:[O]})}return h})()}}]); \ No newline at end of file diff --git a/server/public/5439.6ebe3bb6b34df19f.js b/server/public/5439.6ebe3bb6b34df19f.js deleted file mode 100644 index 9659270b7..000000000 --- a/server/public/5439.6ebe3bb6b34df19f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5439],{9045:(A,M,i)=>{i.d(M,{J:()=>W});var o=i(6514),r=i(505),p=i(3953),t=i(177),D=i(1188),u=i(5699),z=i(1236),y=i(5103),I=i(8011),f=i(2387),$=i(3075);const _=(v,b,C)=>({rejected:v,submitted:b,accepted:C});function R(v,b){}function x(v,b){if(1&v&&(p.qex(0),p.j41(1,"a",5),p.DNE(2,R,0,0,"ng-template",6),p.k0s(),p.bVm()),2&v){const C=p.XpG(),O=p.sdS(2);p.R7$(),p.Y8G("routerLink",C.evidence.link),p.R7$(),p.Y8G("ngTemplateOutlet",O)}}function S(v,b){}function G(v,b){if(1&v&&p.nrm(0,"cvc-evidence-popover",9),2&v){const C=p.XpG(3);p.Y8G("evidenceId",C.evidence.id)}}function w(v,b){if(1&v&&p.DNE(0,G,1,1,"cvc-evidence-popover",8),2&v){const C=p.XpG(2);p.Y8G("ngIf",C.enablePopover)}}function N(v,b){if(1&v&&(p.j41(0,"nz-tag",7),p.DNE(1,S,0,0,"ng-template",6),p.k0s(),p.DNE(2,w,1,1,"ng-template",null,3,p.C5r)),2&v){const C=p.sdS(3),O=p.XpG(),L=p.sdS(6);p.Y8G("ngClass",p.sMw(5,_,"REJECTED"===O.evidence.status,"SUBMITTED"===O.evidence.status,"ACCEPTED"===O.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",C)("nzPopoverTrigger",O.enablePopover?"hover":null),p.R7$(),p.Y8G("ngTemplateOutlet",L)}}function F(v,b){}function B(v,b){if(1&v&&p.DNE(0,F,0,0,"ng-template",6),2&v){p.XpG();const C=p.sdS(2);p.Y8G("ngTemplateOutlet",C)}}function U(v,b){if(1&v&&(p.j41(0,"cvc-icon-badges",10),p.nrm(1,"i",11),p.nI1(2,"entityColor"),p.nI1(3,"entityColor"),p.k0s(),p.EFF(4)),2&v){const C=p.XpG();p.Y8G("flagged",C.evidence.flagged)("entityColor",C.iconColor),p.R7$(),p.Y8G("nzTwotoneColor","REJECTED"===C.evidence.status?p.bMT(2,4,"Rejected"):p.bMT(3,6,"EvidenceItem")),p.R7$(3),p.SpI(" ",C.evidence.name,"\n")}}let W=(()=>{class v extends o.s{set evidence(C){if(!C)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=C}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,r.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#t=this.\u0275fac=function(O){return new(O||v)};static#e=this.\u0275cmp=p.VBU({type:v,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[p.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(O,L){if(1&O&&p.DNE(0,x,3,2,"ng-container",4)(1,N,4,9,"ng-template",null,0,p.C5r)(3,B,1,1,"ng-template",null,1,p.C5r)(5,U,5,8,"ng-template",null,2,p.C5r),2&O){const j=p.sdS(4);p.Y8G("ngIf",L.linked)("ngIfElse",j)}},dependencies:[t.YU,t.bT,t.T3,D.Wk,u.s,z.L_,y.Dn,I.S,f.N,$.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]})}return v})()},6936:(A,M,i)=>{i.d(M,{G:()=>$});var o=i(177),r=i(1188),p=i(5699),t=i(1236),D=i(5103),u=i(4666),z=i(4917),y=i(3146),I=i(4994),f=i(3953);let $=(()=>{class _{static#t=this.\u0275fac=function(S){return new(S||_)};static#e=this.\u0275mod=f.$C({type:_});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,y.W2,p.T,t.MC,D.Y3,u.v,z.i,I.a]})}return _})()},6440:(A,M,i)=>{i.d(M,{r:()=>et});var o=i(3953),r=i(177),p=i(1188),t=i(5699),D=i(5103),u=i(1236),z=i(9199),y=i(6354),I=i(5964),f=i(9145),$=i(5703),_=i(7529),R=i(2e3),x=i(7679),S=i(9162),G=i(1774);const w=(g,P)=>({displayName:g,profileImagePath:P});function N(g,P){if(1&g&&(o.nrm(0,"cvc-user-avatar",12),o.j41(1,"span",13),o.EFF(2),o.k0s()),2&g){const c=o.XpG().ngIf;o.Y8G("user",o.l_i(2,w,c.name,c.profileImagePath)),o.R7$(2),o.JRh(c.name)}}function F(g,P){if(1&g&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&g){const c=P.ngIf;o.R7$(),o.JRh(c)}}function B(g,P){if(1&g&&(o.qex(0),o.j41(1,"cvc-link-tag",14),o.EFF(2),o.k0s(),o.bVm()),2&g){const c=o.XpG().ngIf;o.R7$(),o.Y8G("href",c.url),o.R7$(),o.SpI(" ",c.name," ")}}function U(g,P){if(1&g&&(o.qex(0),o.j41(1,"nz-card",5),o.DNE(2,N,3,5,"ng-template",null,2,o.C5r),o.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),o.DNE(8,F,2,1,"span",9),o.k0s()()()(),o.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),o.DNE(11,B,3,2,"ng-container",9),o.k0s()()(),o.bVm()),2&g){const c=P.ngIf,m=o.sdS(3);o.XpG();const h=o.sdS(4),E=o.sdS(6);o.R7$(),o.Y8G("nzTitle",m),o.R7$(7),o.Y8G("ngIf",c.description)("ngIfElse",h),o.R7$(),o.Y8G("nzColumn",2),o.R7$(2),o.Y8G("ngIf",c.url)("ngIfElse",E)}}function W(g,P){1&g&&o.EFF(0," Organization has not provided a description.\n")}function v(g,P){1&g&&o.EFF(0," -- ")}let b=(()=>{class g{constructor(c){this.gql=c}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,y.T)(({data:c})=>c?.organization),(0,I.p)(z.kP))}static#t=this.\u0275fac=function(m){return new(m||g)(o.rXU(f.I8L))};static#e=this.\u0275cmp=o.VBU({type:g,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(m,h){1&m&&(o.j41(0,"div",3),o.DNE(1,U,12,6,"ng-container",4),o.nI1(2,"ngrxPush"),o.k0s(),o.DNE(3,W,1,0,"ng-template",null,0,o.C5r)(5,v,1,0,"ng-template",null,1,o.C5r)),2&m&&(o.R7$(),o.Y8G("ngIf",o.bMT(2,1,h.org$)))},dependencies:[r.bT,$.cK,_.Uq,_.e,R.xA,R.gr,x.a,S.G,G.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return g})();function C(g,P){}function O(g,P){if(1&g&&(o.qex(0),o.j41(1,"a",5),o.DNE(2,C,0,0,"ng-template",6),o.k0s(),o.bVm()),2&g){const c=o.XpG(),m=o.sdS(2);o.R7$(),o.Mz_("routerLink","/organizations/",c.org.id,""),o.R7$(),o.Y8G("ngTemplateOutlet",m)}}function L(g,P){}function j(g,P){if(1&g&&o.nrm(0,"cvc-organization-popover",9),2&g){const c=o.XpG(3);o.Y8G("orgId",c.org.id)}}function X(g,P){if(1&g&&o.DNE(0,j,1,1,"cvc-organization-popover",8),2&g){const c=o.XpG(2);o.Y8G("ngIf",c.enablePopover)}}function J(g,P){if(1&g&&(o.j41(0,"nz-tag",7),o.DNE(1,L,0,0,"ng-template",6),o.k0s(),o.DNE(2,X,1,1,"ng-template",null,3,o.C5r)),2&g){const c=o.sdS(3);o.XpG();const m=o.sdS(6);o.Y8G("nzPopoverContent",c),o.R7$(),o.Y8G("ngTemplateOutlet",m)}}function Z(g,P){}function q(g,P){if(1&g&&o.DNE(0,Z,0,0,"ng-template",6),2&g){o.XpG();const c=o.sdS(2);o.Y8G("ngTemplateOutlet",c)}}function tt(g,P){if(1&g&&(o.nrm(0,"i",10),o.EFF(1)),2&g){const c=o.XpG();o.R7$(),o.SpI(" ",c.org.name,"\n")}}let et=(()=>{class g{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}static#t=this.\u0275fac=function(m){return new(m||g)};static#e=this.\u0275cmp=o.VBU({type:g,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(m,h){if(1&m&&o.DNE(0,O,3,3,"ng-container",4)(1,J,4,2,"ng-template",null,0,o.C5r)(3,q,1,1,"ng-template",null,1,o.C5r)(5,tt,2,1,"ng-template",null,2,o.C5r),2&m){const E=o.sdS(4);o.Y8G("ngIf",h.linked)("ngIfElse",E)}},dependencies:[r.bT,r.T3,p.Wk,t.s,D.Dn,u.L_,b],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return g})()},8920:(A,M,i)=>{i.d(M,{U:()=>R});var o=i(177),r=i(1188),p=i(5699),t=i(5103),D=i(7529),u=i(7054),z=i(2e3),y=i(5703),I=i(3357),f=i(3953);let $=(()=>{class x{static#t=this.\u0275fac=function(w){return new(w||x)};static#e=this.\u0275mod=f.$C({type:x});static#n=this.\u0275inj=f.G2t({imports:[o.MD,y.Ti,D.f3,z.WF,u.L,I.P]})}return x})();var _=i(1236);let R=(()=>{class x{static#t=this.\u0275fac=function(w){return new(w||x)};static#e=this.\u0275mod=f.$C({type:x});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,p.T,t.Y3,_.MC,$]})}return x})()},959:(A,M,i)=>{i.d(M,{j:()=>D});var o=i(3953),r=i(3100),p=i(3245),t=i(4247);let D=(()=>{class u{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(I){return new(I||u)};static#e=this.\u0275cmp=o.VBU({type:u,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(I,f){1&I&&(o.j41(0,"cvc-tag-group"),o.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),o.k0s()),2&I&&(o.R7$(),o.Y8G("feature",f.feature)("enablePopover",f.enablePopover)("truncateLongName",f.truncateLongName),o.R7$(),o.Y8G("variant",f.variant)("enablePopover",f.enablePopover)("truncateLongName",f.truncateLongName))},dependencies:[r.V,p._,t.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return u})()},7086:(A,M,i)=>{i.d(M,{C:()=>$});var o=i(177),r=i(1188),p=i(5699),t=i(5103),D=i(1236),u=i(4917),z=i(7051),y=i(6912),I=i(2502),f=i(3953);let $=(()=>{class _{static#t=this.\u0275fac=function(S){return new(S||_)};static#e=this.\u0275mod=f.$C({type:_});static#n=this.\u0275inj=f.G2t({imports:[o.MD,r.iI,p.T,D.MC,t.Y3,u.i,z.U,y.l,I.u]})}return _})()},8238:(A,M,i)=>{i.d(M,{S:()=>P});var o=i(505),r=i(3953),p=i(177),t=i(1188),D=i(1236),u=i(5699),z=i(5103),y=i(9199),I=i(6354),f=i(5964),$=i(9145),_=i(5703),R=i(2e3),x=i(9062),S=i(959),G=i(7855),w=i(1774),N=i(3075);function F(c,m){if(1&c&&(r.nrm(0,"i",7),r.nI1(1,"entityColor"),r.EFF(2)),2&c){const h=r.XpG().ngIf;r.Y8G("nzTwotoneColor",r.bMT(1,2,"VariantGroup")),r.R7$(2),r.SpI(" ",h.name," ")}}function B(c,m){if(1&c&&r.nrm(0,"cvc-feature-variant-tag",10),2&c){const h=m.$implicit;r.Y8G("enablePopover",!1)("variant",h.node)}}function U(c,m){if(1&c&&(r.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),r.DNE(2,B,1,2,"cvc-feature-variant-tag",9),r.k0s()()),2&c){const h=r.XpG().ngIf;r.R7$(2),r.Y8G("ngForOf",h.variants.edges)}}function W(c,m){if(1&c&&r.nrm(0,"cvc-source-tag",13),2&c){const h=m.$implicit;r.Y8G("enablePopover",!1)("source",h)}}function v(c,m){if(1&c&&(r.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),r.DNE(2,W,1,2,"cvc-source-tag",12),r.k0s()()),2&c){const h=r.XpG().ngIf;r.R7$(2),r.Y8G("ngForOf",h.sources)}}function b(c,m){if(1&c&&(r.qex(0),r.j41(1,"nz-card",3),r.DNE(2,F,3,4,"ng-template",null,0,r.C5r),r.EFF(4),r.j41(5,"nz-descriptions",4),r.DNE(6,U,3,1,"nz-descriptions-item",5)(7,v,3,1,"nz-descriptions-item",6),r.k0s()(),r.bVm()),2&c){const h=m.ngIf,E=r.sdS(3);r.R7$(),r.Y8G("nzTitle",E),r.R7$(3),r.SpI(" ",h.description," "),r.R7$(),r.Y8G("nzColumn",2),r.R7$(),r.Y8G("ngIf",h.variants.edges.length>0),r.R7$(),r.Y8G("ngIf",h.sources.length>0)}}let C=(()=>{class c{constructor(h){this.gql=h}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,I.T)(({data:h})=>h?.variantGroup),(0,f.p)(y.kP))}static#t=this.\u0275fac=function(E){return new(E||c)(r.rXU($.gwr))};static#e=this.\u0275cmp=r.VBU({type:c,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(E,V){1&E&&(r.j41(0,"div",1),r.DNE(1,b,8,5,"ng-container",2),r.nI1(2,"ngrxPush"),r.k0s()),2&E&&(r.R7$(),r.Y8G("ngIf",r.bMT(2,1,V.variantGroup$)))},dependencies:[p.Sq,p.bT,_.cK,R.xA,R.gr,z.Dn,x.D,S.j,G.M,w.L9,N.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return c})();var O=i(2387);function L(c,m){}function j(c,m){if(1&c&&(r.qex(0),r.j41(1,"a",5),r.DNE(2,L,0,0,"ng-template",6),r.k0s(),r.bVm()),2&c){const h=r.XpG(),E=r.sdS(2);r.R7$(),r.Y8G("routerLink",h.variantgroup.link),r.R7$(),r.Y8G("ngTemplateOutlet",E)}}function X(c,m){}function J(c,m){if(1&c&&r.nrm(0,"cvc-variant-group-popover",9),2&c){const h=r.XpG(3);r.Y8G("variantGroupId",h.variantgroup.id)}}function Z(c,m){if(1&c&&r.DNE(0,J,1,1,"cvc-variant-group-popover",8),2&c){const h=r.XpG(2);r.Y8G("ngIf",h.enablePopover)}}function q(c,m){if(1&c&&(r.j41(0,"nz-tag",7),r.DNE(1,X,0,0,"ng-template",6),r.k0s(),r.DNE(2,Z,1,1,"ng-template",null,3,r.C5r)),2&c){const h=r.sdS(3),E=r.XpG(),V=r.sdS(6);r.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",h)("nzPopoverTrigger",E.enablePopover?"hover":null),r.R7$(),r.Y8G("ngTemplateOutlet",V)}}function tt(c,m){}function et(c,m){if(1&c&&r.DNE(0,tt,0,0,"ng-template",6),2&c){r.XpG();const h=r.sdS(2);r.Y8G("ngTemplateOutlet",h)}}function g(c,m){if(1&c&&(r.j41(0,"cvc-icon-badges",10),r.nrm(1,"i",11),r.nI1(2,"entityColor"),r.k0s(),r.EFF(3)),2&c){const h=r.XpG();r.Y8G("flagged",h.variantgroup.flagged)("entityColor",h.iconColor),r.R7$(),r.Y8G("nzTwotoneColor",r.bMT(2,4,"VariantGroup")),r.R7$(2),r.SpI(" ",h.variantgroup.name,"\n")}}let P=(()=>{class c{set variantgroup(h){if(!h)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=h}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,o.P)("VariantGroup")}static#t=this.\u0275fac=function(E){return new(E||c)};static#e=this.\u0275cmp=r.VBU({type:c,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(E,V){if(1&E&&r.DNE(0,j,3,2,"ng-container",4)(1,q,4,4,"ng-template",null,0,r.C5r)(3,et,1,1,"ng-template",null,1,r.C5r)(5,g,4,6,"ng-template",null,2,r.C5r),2&E){const H=r.sdS(4);r.Y8G("ngIf",V.linked)("ngIfElse",H)}},dependencies:[p.bT,p.T3,t.Wk,D.L_,u.s,z.Dn,C,O.N,N.R],encapsulation:2,changeDetection:0})}return c})()},8134:(A,M,i)=>{i.d(M,{l:()=>S});var o=i(177),r=i(1188),p=i(1236),t=i(5699),D=i(5103),u=i(7086),z=i(2142),y=i(1209),I=i(4917),f=i(5703),$=i(2e3),_=i(3953);let R=(()=>{class G{static#t=this.\u0275fac=function(F){return new(F||G)};static#e=this.\u0275mod=_.$C({type:G});static#n=this.\u0275inj=_.G2t({imports:[o.MD,f.Ti,$.WF,D.Y3,y.k,u.C,z.x,I.i]})}return G})();var x=i(4994);let S=(()=>{class G{static#t=this.\u0275fac=function(F){return new(F||G)};static#e=this.\u0275mod=_.$C({type:G});static#n=this.\u0275inj=_.G2t({imports:[o.MD,r.iI,p.MC,t.T,D.Y3,R,I.i,x.a]})}return G})()},3824:(A,M,i)=>{i.r(M),i.d(M,{WelcomeModule:()=>Pe});var o=i(1188),r=i(9145),p=i(6354),t=i(3953),D=i(1626),u=i(177),z=i(7529),y=i(4707),I=i(7336),f=i(1413),$=i(3726),_=i(6977),R=i(152),x=i(3294),S=i(6042),G=i(6860),w=i(1025),N=i(5979),F=i(8203);const B=["slickList"],U=["slickTrack"],W=["*"],v=e=>({$implicit:e});function b(e,a){}function C(e,a){if(1&e){const n=t.RV6();t.j41(0,"li",9),t.bIt("click",function(){const l=t.eBV(n).$index,d=t.XpG(2);return t.Njj(d.onLiClick(l))}),t.DNE(1,b,0,0,"ng-template",10),t.k0s()}if(2&e){const n=a.$index,s=t.XpG(2),l=t.sdS(8);t.AVh("slick-active",n===s.activeIndex),t.R7$(),t.Y8G("ngTemplateOutlet",s.nzDotRender||l)("ngTemplateOutletContext",t.eq3(4,v,n))}}function O(e,a){if(1&e&&(t.j41(0,"ul",7),t.Z7z(1,C,2,6,"li",8,t.fX1),t.k0s()),2&e){const n=t.XpG();t.AVh("slick-dots-top","top"===n.nzDotPosition)("slick-dots-bottom","bottom"===n.nzDotPosition)("slick-dots-left","left"===n.nzDotPosition)("slick-dots-right","right"===n.nzDotPosition),t.R7$(),t.Dyx(n.carouselContents)}}function L(e,a){if(1&e&&(t.j41(0,"button"),t.EFF(1),t.k0s()),2&e){const n=a.$implicit;t.R7$(),t.JRh(n+1)}}let j=(()=>{class e{set isActive(n){this._active=n,this.isActive?this.renderer.addClass(this.el,"slick-active"):this.renderer.removeClass(this.el,"slick-active")}get isActive(){return this._active}constructor(n,s){this.renderer=s,this._active=!1,this.el=n.nativeElement}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(t.aKT),t.rXU(t.sFG))};static#e=this.\u0275dir=t.FsC({type:e,selectors:[["","nz-carousel-content",""]],hostAttrs:[1,"slick-slide"],exportAs:["nzCarouselContent"],standalone:!0})}return e})();class X{get maxIndex(){return this.length-1}get firstEl(){return this.contents[0].el}get lastEl(){return this.contents[this.maxIndex].el}constructor(a,n,s,l,d){this.cdr=n,this.renderer=s,this.platform=l,this.options=d,this.carouselComponent=a}withCarouselContents(a){const n=this.carouselComponent;if(this.slickListEl=n.slickListEl,this.slickTrackEl=n.slickTrackEl,this.contents=a?.toArray()||[],this.length=this.contents.length,this.platform.isBrowser){const s=n.el.getBoundingClientRect();this.unitWidth=s.width,this.unitHeight=s.height}else a?.forEach((s,l)=>{0===l?this.renderer.setStyle(s.el,"width","100%"):this.renderer.setStyle(s.el,"display","none")})}dragging(a){}dispose(){}getFromToInBoundary(a,n){const s=this.maxIndex+1;return{from:(a+s)%s,to:(n+s)%s}}}class J extends X{withCarouselContents(a){super.withCarouselContents(a),this.contents&&(this.slickTrackEl.style.width=this.length*this.unitWidth+"px",this.contents.forEach((n,s)=>{this.renderer.setStyle(n.el,"opacity",this.carouselComponent.activeIndex===s?"1":"0"),this.renderer.setStyle(n.el,"position","relative"),this.renderer.setStyle(n.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(n.el,"left",-this.unitWidth*s+"px"),this.renderer.setStyle(n.el,"transition",["opacity 500ms ease 0s","visibility 500ms ease 0s"])}))}switch(a,n){const{to:s}=this.getFromToInBoundary(a,n),l=new f.B;return this.contents.forEach((d,k)=>{this.renderer.setStyle(d.el,"opacity",s===k?"1":"0")}),setTimeout(()=>{l.next(),l.complete()},this.carouselComponent.nzTransitionSpeed),l}dispose(){this.contents.forEach(a=>{this.renderer.setStyle(a.el,"transition",null),this.renderer.setStyle(a.el,"opacity",null),this.renderer.setStyle(a.el,"width",null),this.renderer.setStyle(a.el,"left",null)}),super.dispose()}}class Z extends X{get vertical(){return this.carouselComponent.vertical}constructor(a,n,s,l,d){super(a,n,s,l,d),this.isDragging=!1,this.isTransitioning=!1}dispose(){super.dispose(),this.renderer.setStyle(this.slickTrackEl,"transform",null)}withCarouselContents(a){super.withCarouselContents(a);const s=this.carouselComponent.activeIndex;this.platform.isBrowser&&this.contents.length&&(this.renderer.setStyle(this.slickListEl,"height",`${this.unitHeight}px`),this.vertical?(this.renderer.setStyle(this.slickTrackEl,"width",`${this.unitWidth}px`),this.renderer.setStyle(this.slickTrackEl,"height",this.length*this.unitHeight+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-s*this.unitHeight}px, 0)`)):(this.renderer.setStyle(this.slickTrackEl,"height",`${this.unitHeight}px`),this.renderer.setStyle(this.slickTrackEl,"width",this.length*this.unitWidth+"px"),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-s*this.unitWidth}px, 0, 0)`)),this.contents.forEach(l=>{this.renderer.setStyle(l.el,"position","relative"),this.renderer.setStyle(l.el,"width",`${this.unitWidth}px`),this.renderer.setStyle(l.el,"height",`${this.unitHeight}px`)}))}switch(a,n){const{to:s}=this.getFromToInBoundary(a,n),l=new f.B;return this.renderer.setStyle(this.slickTrackEl,"transition",`transform ${this.carouselComponent.nzTransitionSpeed}ms ease`),this.vertical?this.verticalTransform(a,n):this.horizontalTransform(a,n),this.isTransitioning=!0,this.isDragging=!1,setTimeout(()=>{this.renderer.setStyle(this.slickTrackEl,"transition",null),this.contents.forEach(d=>{this.renderer.setStyle(d.el,this.vertical?"top":"left",null)}),this.renderer.setStyle(this.slickTrackEl,"transform",this.vertical?`translate3d(0, ${-s*this.unitHeight}px, 0)`:`translate3d(${-s*this.unitWidth}px, 0, 0)`),this.isTransitioning=!1,l.next(),l.complete()},this.carouselComponent.nzTransitionSpeed),l.asObservable()}dragging(a){if(this.isTransitioning)return;const n=this.carouselComponent.activeIndex;this.carouselComponent.vertical?(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareVerticalContext(!0):0===n&&this.prepareVerticalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(0, ${-n*this.unitHeight+a.x}px, 0)`)):(!this.isDragging&&this.length>2&&(n===this.maxIndex?this.prepareHorizontalContext(!0):0===n&&this.prepareHorizontalContext(!1)),this.renderer.setStyle(this.slickTrackEl,"transform",`translate3d(${-n*this.unitWidth+a.x}px, 0, 0)`)),this.isDragging=!0}verticalTransform(a,n){const{from:s,to:l}=this.getFromToInBoundary(a,n);this.length>2&&n!==l?(this.prepareVerticalContext(l2&&n!==l?(this.prepareHorizontalContext(l{class e{set nzDotPosition(n){this._dotPosition=n,this.vertical="left"===n||"right"===n}get nzDotPosition(){return this._dotPosition}constructor(n,s,l,d,k,Y,K,dt,gt,ht,mt){this.nzConfigService=s,this.ngZone=l,this.renderer=d,this.cdr=k,this.platform=Y,this.resizeService=K,this.nzDragService=dt,this.nzResizeObserver=gt,this.directionality=ht,this.customStrategies=mt,this._nzModuleName="carousel",this.nzEffect="scrollx",this.nzEnableSwipe=!0,this.nzDots=!0,this.nzAutoPlay=!1,this.nzAutoPlaySpeed=3e3,this.nzTransitionSpeed=500,this.nzLoop=!0,this.nzStrategyOptions=void 0,this._dotPosition="bottom",this.nzBeforeChange=new t.bkB,this.nzAfterChange=new t.bkB,this.activeIndex=0,this.vertical=!1,this.dir="ltr",this.destroy$=new f.B,this.gestureRect=null,this.pointerDelta=null,this.isTransiting=!1,this.isDragging=!1,this.onLiClick=T=>{this.goTo("rtl"===this.dir?this.carouselContents.length-1-T:T)},this.pointerDown=T=>{!this.isDragging&&!this.isTransiting&&this.nzEnableSwipe&&(this.clearScheduledTransition(),this.gestureRect=this.slickListEl.getBoundingClientRect(),this.nzDragService.requestDraggingSequence(T).subscribe(Q=>{this.pointerDelta=Q,this.isDragging=!0,this.strategy?.dragging(this.pointerDelta)},()=>{},()=>{if(this.nzEnableSwipe&&this.isDragging){const Q=this.pointerDelta?this.pointerDelta.x:0;Math.abs(Q)>this.gestureRect.width/3&&(this.nzLoop||Q<=0&&this.activeIndex+10&&this.activeIndex>0)?this.goTo(Q>0?this.activeIndex-1:this.activeIndex+1):this.goTo(this.activeIndex),this.gestureRect=null,this.pointerDelta=null}this.isDragging=!1}))},this.nzDotPosition="bottom",this.el=n.nativeElement}ngOnInit(){this.slickListEl=this.slickList.nativeElement,this.slickTrackEl=this.slickTrack.nativeElement,this.dir=this.directionality.value,this.directionality.change.pipe((0,_.Q)(this.destroy$)).subscribe(n=>{this.dir=n,this.markContentActive(this.activeIndex),this.cdr.detectChanges()}),this.ngZone.runOutsideAngular(()=>{(0,$.R)(this.slickListEl,"keydown").pipe((0,_.Q)(this.destroy$)).subscribe(n=>{const{keyCode:s}=n;s!==I.UQ&&s!==I.LE||(n.preventDefault(),this.ngZone.run(()=>{s===I.UQ?this.pre():this.next(),this.cdr.markForCheck()}))})}),this.nzResizeObserver.observe(this.el).pipe((0,R.B)(100),(0,x.F)(),(0,_.Q)(this.destroy$)).subscribe(()=>{this.layout()})}ngAfterContentInit(){this.markContentActive(0)}ngAfterViewInit(){this.carouselContents.changes.subscribe(()=>{this.markContentActive(0),this.layout()}),this.resizeService.subscribe().pipe((0,_.Q)(this.destroy$)).subscribe(()=>{this.layout()}),this.switchStrategy(),this.markContentActive(0),this.layout(),Promise.resolve().then(()=>{this.layout()})}ngOnChanges(n){const{nzEffect:s,nzDotPosition:l}=n;s&&!s.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),l&&!l.isFirstChange()&&(this.switchStrategy(),this.markContentActive(0),this.layout()),this.nzAutoPlay&&this.nzAutoPlaySpeed?this.scheduleNextTransition():this.clearScheduledTransition()}ngOnDestroy(){this.clearScheduledTransition(),this.strategy&&this.strategy.dispose(),this.destroy$.next(),this.destroy$.complete()}next(){this.goTo(this.activeIndex+1)}pre(){this.goTo(this.activeIndex-1)}goTo(n){if(this.carouselContents&&this.carouselContents.length&&!this.isTransiting&&(this.nzLoop||n>=0&&n{this.scheduleNextTransition(),this.nzAfterChange.emit(d),this.isTransiting=!1}),this.markContentActive(d),this.cdr.markForCheck()}}switchStrategy(){this.strategy&&this.strategy.dispose();const n=this.customStrategies?this.customStrategies.find(s=>s.name===this.nzEffect):null;this.strategy=n?new n.strategy(this,this.cdr,this.renderer,this.platform):"scrollx"===this.nzEffect?new Z(this,this.cdr,this.renderer,this.platform):new J(this,this.cdr,this.renderer,this.platform)}scheduleNextTransition(){this.clearScheduledTransition(),this.nzAutoPlay&&this.nzAutoPlaySpeed>0&&this.platform.isBrowser&&(this.transitionInProgress=setTimeout(()=>{this.goTo(this.activeIndex+1)},this.nzAutoPlaySpeed))}clearScheduledTransition(){this.transitionInProgress&&(clearTimeout(this.transitionInProgress),this.transitionInProgress=void 0)}markContentActive(n){this.activeIndex=n,this.carouselContents&&this.carouselContents.forEach((s,l)=>{s.isActive="rtl"===this.dir?n===this.carouselContents.length-1-l:n===l}),this.cdr.markForCheck()}layout(){this.strategy&&this.strategy.withCarouselContents(this.carouselContents)}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(t.aKT),t.rXU(S.yx),t.rXU(t.SKi),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(G.OD),t.rXU(w.cB),t.rXU(w.qH),t.rXU(N.xH),t.rXU(F.dS,8),t.rXU(q,8))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["nz-carousel"]],contentQueries:function(s,l,d){if(1&s&&t.wni(d,j,4),2&s){let k;t.mGM(k=t.lsd())&&(l.carouselContents=k)}},viewQuery:function(s,l){if(1&s&&(t.GBs(B,7),t.GBs(U,7)),2&s){let d;t.mGM(d=t.lsd())&&(l.slickList=d.first),t.mGM(d=t.lsd())&&(l.slickTrack=d.first)}},hostAttrs:[1,"ant-carousel"],hostVars:4,hostBindings:function(s,l){2&s&&t.AVh("ant-carousel-vertical",l.vertical)("ant-carousel-rtl","rtl"===l.dir)},inputs:{nzDotRender:"nzDotRender",nzEffect:"nzEffect",nzEnableSwipe:[2,"nzEnableSwipe","nzEnableSwipe",t.L39],nzDots:[2,"nzDots","nzDots",t.L39],nzAutoPlay:[2,"nzAutoPlay","nzAutoPlay",t.L39],nzAutoPlaySpeed:[2,"nzAutoPlaySpeed","nzAutoPlaySpeed",t.Udg],nzTransitionSpeed:[2,"nzTransitionSpeed","nzTransitionSpeed",t.Udg],nzLoop:"nzLoop",nzStrategyOptions:"nzStrategyOptions",nzDotPosition:"nzDotPosition"},outputs:{nzBeforeChange:"nzBeforeChange",nzAfterChange:"nzAfterChange"},exportAs:["nzCarousel"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:W,decls:9,vars:3,consts:[["slickList",""],["slickTrack",""],["renderDotTemplate",""],[1,"slick-initialized","slick-slider"],["tabindex","-1",1,"slick-list",3,"mousedown","touchstart"],[1,"slick-track"],[1,"slick-dots",3,"slick-dots-top","slick-dots-bottom","slick-dots-left","slick-dots-right"],[1,"slick-dots"],[3,"slick-active"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(s,l){if(1&s){const d=t.RV6();t.NAR(),t.j41(0,"div",3)(1,"div",4,0),t.bIt("mousedown",function(Y){return t.eBV(d),t.Njj(l.pointerDown(Y))})("touchstart",function(Y){return t.eBV(d),t.Njj(l.pointerDown(Y))}),t.j41(3,"div",5,1),t.SdG(5),t.k0s()(),t.DNE(6,O,3,8,"ul",6),t.k0s(),t.DNE(7,L,2,1,"ng-template",null,2,t.C5r)}2&s&&(t.AVh("slick-vertical","left"===l.nzDotPosition||"right"===l.nzDotPosition),t.R7$(6),t.vxM(l.nzDots?6:-1))},dependencies:[u.T3],encapsulation:2,changeDetection:0})}return(0,y.Cg)([(0,S.H4)()],e.prototype,"nzEffect",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzEnableSwipe",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzDots",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzAutoPlay",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzAutoPlaySpeed",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzLoop",void 0),(0,y.Cg)([(0,S.H4)()],e.prototype,"nzDotPosition",null),e})(),g=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({})}return e})();var m=i(5703),h=i(7685),E=i(7391),V=i(9199),H=i(5964),nt=i(4608),it=i(9417),lt=i(2269),rt=i(3190),ct=i(6389),ot=i(5103),ut=i(1774),Ct=i(3075);function zt(e,a){if(1&e){const n=t.RV6();t.j41(0,"nz-radio-group",14),t.mxI("ngModelChange",function(l){t.eBV(n);const d=t.XpG();return t.DH7(d.statsType,l)||(d.statsType=l),t.Njj(l)}),t.j41(1,"label",15),t.EFF(2,"Total"),t.k0s(),t.j41(3,"label",16),t.EFF(4,"Weekly"),t.k0s(),t.j41(5,"label",17),t.EFF(6,"Monthly"),t.k0s(),t.j41(7,"label",18),t.EFF(8,"Yearly"),t.k0s()()}if(2&e){const n=t.XpG();t.R50("ngModel",n.statsType)}}function Tt(e,a){1&e&&(t.nrm(0,"i",31),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Assertion"))}function Et(e,a){1&e&&(t.nrm(0,"i",32),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"EvidenceItem"))}function yt(e,a){1&e&&(t.nrm(0,"i",33),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Feature"))}function It(e,a){1&e&&(t.nrm(0,"i",34),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Variant"))}function xt(e,a){1&e&&(t.nrm(0,"i",35),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"MolecularProfile"))}function Pt(e,a){1&e&&(t.nrm(0,"i",36),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Disease"))}function St(e,a){1&e&&(t.nrm(0,"i",37),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Therapy"))}function Gt(e,a){1&e&&(t.nrm(0,"i",38),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Source"))}function Mt(e,a){1&e&&(t.nrm(0,"i",39),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Revision"))}function Dt(e,a){1&e&&(t.nrm(0,"i",40),t.nI1(1,"entityColor")),2&e&&t.Y8G("nzTwotoneColor",t.bMT(1,1,"Curator"))}function Ot(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",19)(2,"nz-col",20)(3,"a",21),t.nrm(4,"nz-statistic",22),t.nI1(5,"number"),t.DNE(6,Tt,2,3,"ng-template",null,2,t.C5r),t.k0s()(),t.j41(8,"nz-col",20)(9,"a",23),t.nrm(10,"nz-statistic",22),t.nI1(11,"number"),t.DNE(12,Et,2,3,"ng-template",null,3,t.C5r),t.k0s()(),t.j41(14,"nz-col",20)(15,"a",24),t.nrm(16,"nz-statistic",22),t.nI1(17,"number"),t.DNE(18,yt,2,3,"ng-template",null,4,t.C5r),t.k0s()(),t.j41(20,"nz-col",20)(21,"a",25),t.nrm(22,"nz-statistic",22),t.nI1(23,"number"),t.DNE(24,It,2,3,"ng-template",null,5,t.C5r),t.k0s()(),t.j41(26,"nz-col",20)(27,"a",26),t.nrm(28,"nz-statistic",22),t.nI1(29,"number"),t.DNE(30,xt,2,3,"ng-template",null,6,t.C5r),t.k0s()()(),t.j41(32,"nz-row",19)(33,"nz-col",20)(34,"a",27),t.nrm(35,"nz-statistic",22),t.nI1(36,"number"),t.DNE(37,Pt,2,3,"ng-template",null,7,t.C5r),t.k0s()(),t.j41(39,"nz-col",20)(40,"a",28),t.nrm(41,"nz-statistic",22),t.nI1(42,"number"),t.DNE(43,St,2,3,"ng-template",null,8,t.C5r),t.k0s()(),t.j41(45,"nz-col",20)(46,"a",29),t.nrm(47,"nz-statistic",22),t.nI1(48,"number"),t.DNE(49,Gt,2,3,"ng-template",null,9,t.C5r),t.k0s()(),t.j41(51,"nz-col",20),t.nrm(52,"nz-statistic",22),t.nI1(53,"number"),t.DNE(54,Mt,2,3,"ng-template",null,10,t.C5r),t.k0s(),t.j41(56,"nz-col",20)(57,"a",30),t.nrm(58,"nz-statistic",22),t.nI1(59,"number"),t.DNE(60,Dt,2,3,"ng-template",null,11,t.C5r),t.k0s()()(),t.bVm()),2&e){const n=a.ngIf,s=t.sdS(7),l=t.sdS(13),d=t.sdS(19),k=t.sdS(25),Y=t.sdS(31),K=t.sdS(38),dt=t.sdS(44),gt=t.sdS(50),ht=t.sdS(55),mt=t.sdS(61),T=t.XpG();t.R7$(4),t.Y8G("nzTitle",T.label()+" Assertions")("nzValue",t.bMT(5,30,n.assertions[T.statsType]))("nzPrefix",s),t.R7$(6),t.Y8G("nzTitle",T.label()+" Evidence")("nzValue",t.bMT(11,32,n.evidenceItems[T.statsType]))("nzPrefix",l),t.R7$(6),t.Y8G("nzTitle",T.label()+" Features")("nzValue",t.bMT(17,34,n.features[T.statsType]))("nzPrefix",d),t.R7$(6),t.Y8G("nzTitle",T.label()+" Variants")("nzValue",t.bMT(23,36,n.variants[T.statsType]))("nzPrefix",k),t.R7$(6),t.Y8G("nzTitle",T.label()+" Molecular Profiles")("nzValue",t.bMT(29,38,n.molecularProfiles[T.statsType]))("nzPrefix",Y),t.R7$(7),t.Y8G("nzTitle",T.label()+" Diseases")("nzValue",t.bMT(36,40,n.diseases[T.statsType]))("nzPrefix",K),t.R7$(6),t.Y8G("nzTitle",T.label()+" Therapies")("nzValue",t.bMT(42,42,n.therapies[T.statsType]))("nzPrefix",dt),t.R7$(6),t.Y8G("nzTitle",T.label()+" Sources")("nzValue",t.bMT(48,44,n.sources[T.statsType]))("nzPrefix",gt),t.R7$(5),t.Y8G("nzTitle",T.label()+" Revisions")("nzValue",t.bMT(53,46,n.revisions[T.statsType]))("nzPrefix",ht),t.R7$(6),t.Y8G("nzTitle",T.label()+" Contributors")("nzValue",t.bMT(59,48,n.users[T.statsType]))("nzPrefix",mt)}}function bt(e,a){if(1&e&&(t.j41(0,"nz-row",19)(1,"nz-col",20),t.nrm(2,"nz-statistic",41),t.k0s(),t.j41(3,"nz-col",20),t.nrm(4,"nz-statistic",41),t.k0s(),t.j41(5,"nz-col",20),t.nrm(6,"nz-statistic",41),t.k0s(),t.j41(7,"nz-col",20),t.nrm(8,"nz-statistic",41),t.k0s(),t.j41(9,"nz-col",20),t.nrm(10,"nz-statistic",41),t.k0s()(),t.j41(11,"nz-row",19)(12,"nz-col",20),t.nrm(13,"nz-statistic",41),t.k0s(),t.j41(14,"nz-col",20),t.nrm(15,"nz-statistic",41),t.k0s(),t.j41(16,"nz-col",20),t.nrm(17,"nz-statistic",41),t.k0s(),t.j41(18,"nz-col",20),t.nrm(19,"nz-statistic",41),t.k0s(),t.j41(20,"nz-col",20),t.nrm(21,"nz-statistic",41),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("nzTitle",n.label()+" Assertions")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Evidence")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Features")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Variants")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Molecular Profiles")("nzValue","--"),t.R7$(3),t.Y8G("nzTitle",n.label()+" Diseases")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Therapies")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Sources")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Revisions")("nzValue","--"),t.R7$(2),t.Y8G("nzTitle",n.label()+" Contributors")("nzValue","--")}}let kt=(()=>{class e{constructor(n){this.statsGql=n,this.statsLabel={allTime:"Total",newThisYear:"Yearly",newThisMonth:"Monthly",newThisWeek:"Weekly"},this.statsType="allTime"}label(){return this.statsLabel[this.statsType]}ngOnInit(){this.statsRef=this.statsGql.watch({}),this.response$=this.statsRef.valueChanges,this.isLoading$=this.response$.pipe((0,nt.E)("loading"),(0,H.p)(V.kP)),this.stats$=this.response$.pipe((0,nt.E)("data","timepointStats"),(0,H.p)(V.kP))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(r.yoY))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-site-stats-card"]],decls:7,vars:5,consts:[["statsRadioGroup",""],["isLoading",""],["assertionIcon",""],["evidenceIcon",""],["featureIcon",""],["variantIcon",""],["mpIcon",""],["diseaseIcon",""],["therapyIcon",""],["sourceIcon",""],["revisionsIcon",""],["userIcon",""],["nzTitle","Knowledgebase Statistics","nzSize","small",1,"home-card",3,"nzExtra"],[4,"ngIf","ngIfElse"],["nzSize","small",3,"ngModelChange","ngModel"],["nz-radio-button","","nzValue","allTime"],["nz-radio-button","","nzValue","newThisWeek"],["nz-radio-button","","nzValue","newThisMonth"],["nz-radio-button","","nzValue","newThisYear"],["nzGutter","8"],["nzFlex","1"],["routerLink","/assertions"],[3,"nzTitle","nzValue","nzPrefix"],["routerLink","/evidence"],["routerLink","/features"],["routerLink","/variants"],["routerLink","/molecular-profiles"],["routerLink","/diseases"],["routerLink","/therapies"],["routerLink","/sources"],["routerLink","/users"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-disease",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-therapy",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],["nz-icon","","nzTheme","twotone","nzType","civic-user",3,"nzTwotoneColor"],[3,"nzTitle","nzValue"]],template:function(s,l){if(1&s&&(t.j41(0,"nz-card",12),t.DNE(1,zt,9,1,"ng-template",null,0,t.C5r)(3,Ot,62,50,"ng-container",13),t.nI1(4,"ngrxPush"),t.DNE(5,bt,22,20,"ng-template",null,1,t.C5r),t.k0s()),2&s){const d=t.sdS(2),k=t.sdS(6);t.Y8G("nzExtra",d),t.R7$(3),t.Y8G("ngIf",t.bMT(4,3,l.stats$))("ngIfElse",k)}},dependencies:[u.bT,it.BC,it.vS,o.Wk,lt.IV,z.Uq,z.e,m.cK,rt.lx,rt.i3,ct.c,ot.Dn,u.QX,ut.L9,Ct.R],styles:["[_nghost-%COMP%]{display:block}.home-card[_ngcontent-%COMP%]{border-radius:8px}"]})}return e})();var $t=i(5312),st=i(513),Rt=i(5930),at=i(1672),wt=i(9588);function Ft(e,a){if(1&e&&(t.qex(0),t.nrm(1,"cvc-event-timeline",9),t.bVm()),2&e){const n=t.XpG().ngIf,s=t.XpG(3);t.R7$(),t.Y8G("events",n)("tagDisplay",s.tagDisplay)}}function Vt(e,a){1&e&&(t.qex(0),t.j41(1,"button",10),t.EFF(2," See Full Activity Feed "),t.k0s(),t.bVm())}function Nt(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",2)(2,"nz-col",8),t.DNE(3,Ft,2,2,"ng-container",1)(4,Vt,3,0,"ng-container",7),t.nI1(5,"ngrxPush"),t.k0s()(),t.bVm()),2&e){const n=a.ngIf,s=t.XpG(3),l=t.sdS(3);t.R7$(),t.Y8G("nzGutter",16),t.R7$(2),t.Y8G("ngIf",n.length)("ngIfElse",l),t.R7$(),t.Y8G("ngIf",t.bMT(5,4,s.pageInfo$))}}function Yt(e,a){if(1&e&&(t.j41(0,"nz-card",6),t.DNE(1,Nt,6,6,"ng-container",7),t.nI1(2,"ngrxPush"),t.k0s()),2&e){const n=t.XpG(2);t.Y8G("nzTitle",void 0),t.R7$(),t.Y8G("ngIf",t.bMT(2,2,n.events$))}}function Lt(e,a){1&e&&(t.qex(0),t.j41(1,"nz-row",2)(2,"nz-col",3)(3,"nz-space",4),t.DNE(4,Yt,3,4,"nz-card",5),t.k0s()()(),t.bVm()),2&e&&(t.R7$(),t.Y8G("nzGutter",16))}function At(e,a){1&e&&t.nrm(0,"nz-empty",11)}let jt=(()=>{class e{constructor(n){this.gql=n,this.pageSize=15,this.mode=r.Qt1.Unscoped,this.tagDisplay="hideOrg",this.showFilters=!1}ngOnInit(){this.initialQueryVars={first:this.pageSize,mode:this.mode,showFilters:this.showFilters,includeAutomatedEvents:!1},this.queryRef=$t.c.production?this.gql.watch(this.initialQueryVars,{pollInterval:3e4}):this.gql.watch(this.initialQueryVars),this.results$=this.queryRef.valueChanges,this.pageInfo$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.pageInfo)),this.events$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.edges.map(s=>s.node))),this.unfilteredCount$=this.results$.pipe((0,nt.E)("data"),(0,H.p)(V.kP),(0,p.T)(({events:n})=>n.unfilteredCount))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(r.XxZ))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-homepage-event-feed"]],inputs:{pageSize:"pageSize"},decls:4,vars:4,consts:[["noEvents",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","24"],["nzDirection","vertical",2,"width","100%"],[3,"nzTitle",4,"nzSpaceItem"],[3,"nzTitle"],[4,"ngIf"],["nzSpan","24",1,"timeline"],[3,"events","tagDisplay"],["nz-button","","nzType","default","nzSize","small","nzBlock","","routerLink","/curation/activity"],["nzNotFoundImage","simple","nzNotFoundContent","No Events"]],template:function(s,l){if(1&s&&(t.DNE(0,Lt,5,1,"ng-container",1),t.nI1(1,"ngrxPush"),t.DNE(2,At,1,0,"ng-template",null,0,t.C5r)),2&s){const d=t.sdS(3);t.Y8G("ngIf",t.bMT(1,2,l.unfilteredCount$))("ngIfElse",d)}},dependencies:[u.bT,o.Wk,st.aO,ct.c,Rt.p,m.cK,z.Uq,z.e,h.U5,h.Dq,at.RW,wt.p,ut.L9],styles:["[_nghost-%COMP%]{display:block}.timeline[_ngcontent-%COMP%]{padding-top:6px;padding-left:6px}#event-filters[_ngcontent-%COMP%] nz-form-item[_ngcontent-%COMP%]:last-child{margin-right:0}#event-filters[_ngcontent-%COMP%] #participant-filter[_ngcontent-%COMP%]{width:200px}#event-filters[_ngcontent-%COMP%] #organization-filter[_ngcontent-%COMP%]{width:250px}"]})}return e})();var vt=i(9448),ft=i(3384);const Bt=()=>[8,16];function Ut(e,a){1&e&&t.eu8(0)}function Wt(e,a){1&e&&t.eu8(0)}function Xt(e,a){1&e&&t.eu8(0)}function Ht(e,a){if(1&e&&t.EFF(0),2&e){const n=t.XpG().$implicit;t.SpI(" ",n.title," ")}}function Kt(e,a){if(1&e&&(t.j41(0,"span",13),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,n.date)," ")}}function Qt(e,a){if(1&e&&t.nrm(0,"div",15),2&e){const n=t.XpG(2).$implicit;t.muq("background-image: url('",n.imageUrl,"')")}}function Jt(e,a){if(1&e&&t.DNE(0,Qt,1,3,"div",14),2&e){const n=t.XpG().$implicit;t.Y8G("ngIf",n.imageUrl)}}function Zt(e,a){if(1&e&&(t.qex(0),t.EFF(1),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",n.text," ")}}function qt(e,a){if(1&e&&(t.nrm(0,"span",16),t.nI1(1,"nzSanitizer")),2&e){const n=t.XpG(2).$implicit;t.Y8G("innerHtml",t.i5U(1,1,n.htmlText,"html"),t.npT)}}function te(e,a){if(1&e&&t.DNE(0,Zt,2,1,"ng-container",7)(1,qt,2,4,"ng-template",null,6,t.C5r),2&e){const n=t.sdS(2),s=t.XpG().$implicit;t.Y8G("ngIf",s.text)("ngIfElse",n)}}function ee(e,a){if(1&e&&(t.qex(0),t.nrm(1,"nz-divider"),t.j41(2,"a",18),t.nrm(3,"i",19),t.EFF(4),t.k0s(),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(2),t.Y8G("href",n.link.url,t.B4B),t.R7$(2),t.SpI(" ",n.link.label?n.link.label:"More Information"," ")}}function ne(e,a){if(1&e&&t.DNE(0,ee,5,2,"ng-container",17),2&e){const n=t.XpG().$implicit;t.Y8G("ngIf",n.link&&n.link.url)}}function ie(e,a){if(1&e&&(t.j41(0,"nz-col",10)(1,"nz-card",11),t.DNE(2,Ut,1,0,"ng-container",12)(3,Wt,1,0,"ng-container",12)(4,Xt,1,0,"ng-container",12),t.k0s(),t.DNE(5,Ht,1,1,"ng-template",null,1,t.C5r)(7,Kt,3,3,"ng-template",null,2,t.C5r)(9,Jt,1,1,"ng-template",null,3,t.C5r)(11,te,3,2,"ng-template",null,4,t.C5r)(13,ne,1,1,"ng-template",null,5,t.C5r),t.k0s()),2&e){const n=t.sdS(6),s=t.sdS(8),l=t.sdS(10),d=t.sdS(12),k=t.sdS(14);t.R7$(),t.Y8G("nzTitle",n)("nzExtra",s),t.R7$(),t.Y8G("ngTemplateOutlet",l),t.R7$(),t.Y8G("ngTemplateOutlet",d),t.R7$(),t.Y8G("ngTemplateOutlet",k)}}function oe(e,a){if(1&e&&(t.qex(0),t.j41(1,"nz-row",8),t.DNE(2,ie,15,5,"nz-col",9),t.k0s(),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("nzGutter",t.lJ4(2,Bt)),t.R7$(),t.Y8G("ngForOf",n.cvcNewsItems)}}function se(e,a){1&e&&t.nrm(0,"nz-empty")}let re=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-news-item-list"]],inputs:{cvcNewsItems:"cvcNewsItems"},decls:3,vars:2,consts:[["newsEmpty",""],["newsTitle",""],["newsDate",""],["cardImage",""],["cardContent",""],["cardLinkButton",""],["htmlText",""],[4,"ngIf","ngIfElse"],[3,"nzGutter"],["nzSpan","24",4,"ngFor","ngForOf"],["nzSpan","24"],["nzSize","small",3,"nzTitle","nzExtra"],[4,"ngTemplateOutlet"],["nz-typography","","nzType","secondary"],["class","news-cover-image",3,"style",4,"ngIf"],[1,"news-cover-image"],[3,"innerHtml"],[4,"ngIf"],["target","_blank","nz-button","","nzSize","small",2,"float","right",3,"href"],["nz-icon","","nzType","link","nzTheme","outline"]],template:function(s,l){if(1&s&&t.DNE(0,oe,3,3,"ng-container",7)(1,se,1,0,"ng-template",null,0,t.C5r),2&s){const d=t.sdS(2);t.Y8G("ngIf",l.cvcNewsItems)("ngIfElse",d)}},dependencies:[u.Sq,u.bT,u.T3,st.aO,ct.c,z.Uq,z.e,m.cK,E.Di,at.RW,vt.j,ot.Dn,u.vh,ft.ec],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .news-cover-card .ant-card-meta-description{color:#000000d9}[_nghost-%COMP%] .news-cover-card .ant-card-meta-title{font-size:12px;line-height:20px}nz-divider[_ngcontent-%COMP%]{margin:12px 0 8px}.cover-card-date[_ngcontent-%COMP%]{text-align:right;font-weight:400}.news-cover-image[_ngcontent-%COMP%]{max-height:200px;min-height:200px;background-position:center center;background-size:cover;background-repeat:no-repeat;overflow:hidden;border-bottom:1px solid #f0f0f0;margin:-12px -12px 8px}"]})}return e})();function ae(e,a){1&e&&(t.j41(0,"nz-carousel",6)(1,"div",7)(2,"h1"),t.EFF(3,"Welcome to CIViC"),t.k0s(),t.j41(4,"h2"),t.EFF(5," an open-source platform supporting crowdsourced and expert-moderated cancer variant curation. "),t.k0s()(),t.j41(6,"div",7)(7,"h1"),t.EFF(8," Discover supported clinical interpretations "),t.nrm(9,"br"),t.EFF(10," of mutations related to cancer. "),t.k0s()(),t.j41(11,"div",7)(12,"h1"),t.EFF(13," Participate with colleagues "),t.nrm(14,"br"),t.EFF(15,"to add variants and support "),t.nrm(16,"br"),t.EFF(17,"for cancer-related mutations. "),t.k0s()(),t.j41(18,"div",7)(19,"h1")(20,"a",8),t.EFF(21,"Become an Editor! "),t.nrm(22,"br"),t.EFF(23,"Help moderate updates to CIViC"),t.k0s()()()())}function le(e,a){1&e&&(t.j41(0,"nz-row")(1,"nz-col",4)(2,"nz-space",0),t.DNE(3,ae,24,0,"nz-carousel",5),t.k0s()()()),2&e&&(t.R7$(),t.Y8G("nzSpan",24))}function ce(e,a){1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4),t.nrm(2,"cvc-site-stats-card"),t.k0s()()),2&e&&(t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24))}function pe(e,a){if(1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",10),t.nrm(3,"cvc-news-item-list",11),t.k0s()(),t.j41(4,"nz-col",4)(5,"nz-card",12),t.nrm(6,"cvc-homepage-event-feed",13),t.k0s()()()),2&e){const n=t.XpG();t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",12),t.R7$(2),t.Y8G("cvcNewsItems",n.newsItems),t.R7$(),t.Y8G("nzSpan",12),t.R7$(2),t.Y8G("pageSize",23)}}function de(e,a){1&e&&(t.j41(0,"nz-row",9)(1,"nz-col",4)(2,"nz-card",14)(3,"p"),t.EFF(4," CIViC is a community-edited forum for discussion and interpretation of peer-reviewed publications pertaining to the clinical relevance of variants (or biomarker alterations) in cancer. These interpretations may include associations between molecular alterations (or lack of alteration) and one or more therapies, diagnoses, prognoses or other treatment decisions. These interpretations of clinical significance (or lack of clinical significance) are purely for research purposes. A finding of no interpretation does not necessarily indicate lack of relevance for any specific variant or biomarker alteration. Interpretations are not presented in ranked order of potential or predicted importance. These interpretations make no promise or guarantee of any clinical benefit (or lack of clinical benefit). "),t.k0s(),t.j41(5,"p"),t.EFF(6," The civicdb.org website does not provide any medical or healthcare products, services or advice, and is not for medical emergencies or urgent situations. "),t.j41(7,"strong"),t.EFF(8,"IF YOU THINK YOU MAY HAVE A MEDICAL EMERGENCY, CALL YOUR DOCTOR OR 911 IMMEDIATELY"),t.k0s(),t.EFF(9,". Information contained on this website is not a substitute for a doctor's medical judgment or advice. We recommend that you discuss your specific, individual health concerns with your doctor or health care professional. "),t.k0s()()()()),2&e&&(t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24))}function ge(e,a){if(1&e&&(t.j41(0,"nz-row",16)(1,"div",17),t.EFF(2),t.nI1(3,"date"),t.j41(4,"a",18),t.EFF(5,"Release Notes"),t.k0s(),t.EFF(6," \u2022 "),t.j41(7,"a",19),t.EFF(8,"History"),t.k0s()()()),2&e){const n=t.XpG().ngIf;t.R7$(2),t.Lme(" CIViC ",n.name," (",t.bMT(3,3,n.published_at),") \u2022 "),t.R7$(2),t.Y8G("href",n.html_url,t.B4B)}}function he(e,a){1&e&&(t.qex(0),t.DNE(1,ge,9,5,"nz-row",15),t.bVm())}const me=[{path:"",component:(()=>{class e{constructor(n){this.http=n,this.feedMode=r.Qt1.Unscoped,this.newsItems=[{title:"PUBLIC NOTICE: CIViC v1 API TO BE DEPRECATED",date:"2023-10-01",htmlText:'The CIViC V1 REST API will officially be retired on November 1st, 2023. All CIViC integrations should transition to our new V2 GraphQL API. The new API is more powerful and provides access to the newest CIViC data model, features, and data. The easiest way to get started is to try out queries and browse the documentation in the GraphiQL sandbox.',link:{url:"https://civicdb.org/api/graphiql",label:"Try the CIViC GraphiQL Sandbox"}},{title:"CIViC Online Training Now Open!",date:"2023-10-01",htmlText:'A new course was developed by the CIViC team covering an introduction to somatic variants, including the rapid development of this field over the last decade with the introduction of next generation sequencing into clinical practice. The course was created using the ITCR training network\u2019s Open-source Tools for Training Resources (OTTR), which allows co-publication on multiple platforms, including bookdown and leanpub.',link:{url:"https://course.civicdb.org",label:"Take the CIViC Intro Course"}},{title:"2023 CGC Hackathon Report",date:"2023-08-14",htmlText:'CIViC together with VICC and ClinGen Somatic hosted the 4th Cancer Variant Interpretation Hackathon and Jamboree as a pre-meeting of the Annual Cancer Genomics Consortium Conference. Over 50 variant scientists and developers gathered in St Louis to discuss and code resources for the clinical interpretation of cancer variants including ClinGen/CGC/VICC Oncogenicity classification, new CIViC Variant Classes, and more.',imageUrl:"assets/images/2023-CGC-hackathon-attendees.jpg"},{title:"Introducing Molecular Profiles",date:"2023-01-09",htmlText:'Today we have rolled out support for a new core concept in CIViC: Molecular Profiles. Molecular Profiles are logical combinations of one or more CIViC Variants. While most Molecular Profiles will consist of a single Variant (\u201cSimple\u201d) they will also allow users to build \u201cComplex\u201d (multi-variant) Molecular Profiles to associate Evidence with. These complex profiles expand the CIViC data model to allow for clinical significance to be evaluated within contexts such as variant co-occurrence or mutual exclusivity. Going forward, Evidence will be associated with a Molecular Profile rather than directly with a Variant. If you have any questions about this change, please feel free to contact us. We have also prepared a video explaining this new feature.',link:{url:"https://www.youtube.com/watch?v=--i54jY746w",label:"View Molecular Profiles Intro Video"}},{title:"Announcing Support for ASH Abstracts",date:"2023-01-09",htmlText:"ASH Annual Meeting Abstracts can now be used as Sources when submitting Evidence Items to CIViC. They can be specified by DOI in the 'Add Source' section of the Evidence form."},{title:"CIViC named as a Global Core Biodata Resource",date:"2022-12-15",htmlText:'CIViC has been named in a list of 37 Global Core Biodata Resources alongside other important resources such as Ensembl, ClinGen and Gnomad. The GCBR includes select resources that ensure the long term preservation of biological data, and are of fundamental importance to the biological and life sciences community.',link:{url:"https://globalbiodata.org/scientific-activities/global-core-biodata-resources/",label:"View the GCBR List"}}]}ngOnInit(){this.release$=this.http.get("https://api.github.com/repos/griffithlab/civic-v2/releases?per_page=1").pipe((0,p.T)(n=>n[0]))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(D.Qq))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-welcome"]],decls:7,vars:3,consts:[["nzDirection","vertical","nzSize","middle",1,"space-container"],[4,"nzSpaceItem"],[3,"nzGutter",4,"nzSpaceItem"],[4,"ngIf"],[3,"nzSpan"],["nzAutoPlay","","nzAutoPlaySpeed","10000",4,"nzSpaceItem"],["nzAutoPlay","","nzAutoPlaySpeed","10000"],["nz-carousel-content",""],["href","https://civic.readthedocs.io/en/latest/curating/editor.html","target","_blank",1,"header-link"],[3,"nzGutter"],["nzTitle","News & Events","nzSize","small",1,"home-card",2,"height","100%"],[3,"cvcNewsItems"],["nzTitle","Live Curation Activity","nzSize","small",1,"home-card",2,"height","100%"],[3,"pageSize"],["nzTitle","Medical Disclaimer: This resource is intended for purely research purposes. It should not be used for emergencies or medical or professional advice.","nzSize","small",1,"home-card"],["nzAlign","middle","nzJustify","center",4,"nzSpaceItem"],["nzAlign","middle","nzJustify","center"],["id","release-info","nz-typography",""],["target","_blank",3,"href"],["href","https://github.com/griffithlab/civic-v2/releases/","target","_blank"]],template:function(s,l){1&s&&(t.j41(0,"nz-space",0),t.DNE(1,le,4,1,"nz-row",1)(2,ce,3,2,"nz-row",2)(3,pe,7,5,"nz-row",2)(4,de,10,2,"nz-row",2)(5,he,2,0,"ng-container",3),t.nI1(6,"async"),t.k0s()),2&s&&(t.R7$(5),t.Y8G("ngIf",t.bMT(6,1,l.release$)))},dependencies:[u.bT,z.Uq,z.e,et,j,m.cK,h.U5,h.Dq,E.Di,kt,jt,re,u.Jj,u.vh],styles:["[_nghost-%COMP%]{display:block}.space-container[_ngcontent-%COMP%]{display:block}.ant-carousel[_ngcontent-%COMP%]{border:1px solid #3e5166;border-radius:8px;height:200px;background-color:#001529}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%]{padding-top:3em;padding-left:3em;height:200px;background-color:#2e143e;overflow:hidden;color:#fff}.ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .ant-carousel[_ngcontent-%COMP%] [nz-carousel-content][_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff}.home-card[_ngcontent-%COMP%]{border-radius:8px}.header-link[_ngcontent-%COMP%], #release-info[_ngcontent-%COMP%]{color:#fff}#release-info[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}"]})}return e})()}];let ue=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[o.iI.forChild(me),o.iI]})}return e})();var ve=i(2617),_t=i(776),fe=i(1912),pt=i(4917);let _e=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,o.iI,lt.Fw,z.f3,m.Ti,rt.Sw,st.Zw,fe.i3,E.kT,ot.Y3,_t.s,pt.i]})}return e})();var Ce=i(8927),ze=i(7481),Te=i(1997),Ee=i(2172),ye=i(2968),Ie=i(9438);let xe=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,o.iI,st.Zw,m.Ti,ot.Y3,Ce.PQ,Te.DH,ze.$,z.f3,h.pc,at._v,Ie.Yb,Ee.a,pt.i,ye.K,pt.i]})}return e})(),Pe=(()=>{class e{static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[u.MD,it.YN,st.Zw,z.f3,g,m.Ti,ve.rD,rt.Sw,h.pc,lt.Fw,E.kT,at._v,ft.Qe,vt.g,ot.Y3,ue,_e,xe,_t.s]})}return e})()}}]); \ No newline at end of file diff --git a/server/public/5528.2bc117ecfc08ac24.js b/server/public/5528.3894fe5d6e5a40c5.js similarity index 97% rename from server/public/5528.2bc117ecfc08ac24.js rename to server/public/5528.3894fe5d6e5a40c5.js index fefe82387..83e69124b 100644 --- a/server/public/5528.2bc117ecfc08ac24.js +++ b/server/public/5528.3894fe5d6e5a40c5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5528],{8920:(R,P,e)=>{e.d(P,{U:()=>s});var n=e(177),m=e(1188),t=e(5699),x=e(5103),z=e(7529),C=e(7054),M=e(2e3),E=e(5703),f=e(3357),_=e(3953);let F=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=_.$C({type:d});static#e=this.\u0275inj=_.G2t({imports:[n.MD,E.Ti,z.f3,M.WF,C.L,f.P]})}return d})();var D=e(1236);let s=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=_.$C({type:d});static#e=this.\u0275inj=_.G2t({imports:[n.MD,m.iI,t.T,x.Y3,D.MC,F]})}return d})()},959:(R,P,e)=>{e.d(P,{j:()=>z});var n=e(3953),m=e(3100),t=e(3245),x=e(4247);let z=(()=>{class C{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(f){return new(f||C)};static#n=this.\u0275cmp=n.VBU({type:C,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(f,_){1&f&&(n.j41(0,"cvc-tag-group"),n.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),n.k0s()),2&f&&(n.R7$(),n.Y8G("feature",_.feature)("enablePopover",_.enablePopover)("truncateLongName",_.truncateLongName),n.R7$(),n.Y8G("variant",_.variant)("enablePopover",_.enablePopover)("truncateLongName",_.truncateLongName))},dependencies:[m.V,t._,x.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return C})()},9129:(R,P,e)=>{e.d(P,{s:()=>D});var n=e(3953),m=e(177),t=e(5699),x=e(1236),z=e(7855);const C=s=>({"matched-tag":s});function M(s,d){if(1&s&&(n.j41(0,"span",3)(1,"nz-tag"),n.EFF(2),n.k0s()()),2&s){const p=d.$implicit,h=n.XpG();n.Y8G("ngClass",n.eq3(2,C,h.matchingText&&p.toLowerCase().includes(h.matchingText))),n.R7$(2),n.JRh(p)}}function E(s,d){if(1&s&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&s){const p=n.XpG(2);n.R7$(),n.SpI(" ",p.matchedHiddenCount," of ")}}function f(s,d){if(1&s&&(n.j41(0,"nz-tag",5),n.EFF(1," +"),n.DNE(2,E,2,1,"span",6),n.EFF(3),n.k0s()),2&s){const p=n.XpG(),h=n.sdS(5);n.Y8G("nzPopoverMouseEnterDelay",0)("nzPopoverContent",h),n.R7$(2),n.Y8G("ngIf",p.matchedHiddenCount>0),n.R7$(),n.SpI("",p.hiddenCount," ")}}function _(s,d){if(1&s&&(n.j41(0,"div",3)(1,"nz-tag"),n.EFF(2),n.k0s()()),2&s){const p=d.$implicit,h=n.XpG(2);n.Y8G("ngClass",n.eq3(2,C,h.matchingText&&p.toLowerCase().includes(h.matchingText))),n.R7$(2),n.JRh(p)}}function F(s,d){if(1&s&&(n.j41(0,"div",7)(1,"cvc-tag-list",1),n.DNE(2,_,3,4,"div",2),n.k0s()()),2&s){const p=n.XpG();n.R7$(2),n.Y8G("ngForOf",p.hiddenTags)}}let D=(()=>{class s{constructor(p){this.cdr=p,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(p){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.hiddenTags){let p=this.matchingText.toLowerCase();this.hiddenTags.forEach(h=>{h.toLowerCase().includes(p)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}static#t=this.\u0275fac=function(h){return new(h||s)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[n.OA$],decls:6,vars:5,consts:[["additionalTagPopover",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(h,O){1&h&&(n.j41(0,"cvc-tag-list",1),n.DNE(1,M,3,4,"span",2),n.j41(2,"span",3),n.DNE(3,f,4,4,"nz-tag",4),n.k0s(),n.DNE(4,F,3,1,"ng-template",null,0,n.C5r),n.k0s()),2&h&&(n.R7$(),n.Y8G("ngForOf",O.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,C,O.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",O.hiddenCount&&O.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,t.s,x.L_,z.M],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return s})()},5724:(R,P,e)=>{e.d(P,{T:()=>C});var n=e(177),m=e(2142),t=e(5699),x=e(1236),z=e(3953);let C=(()=>{class M{static#t=this.\u0275fac=function(_){return new(_||M)};static#n=this.\u0275mod=z.$C({type:M});static#e=this.\u0275inj=z.G2t({imports:[n.MD,t.T,x.MC,m.x]})}return M})()},6911:(R,P,e)=>{e.d(P,{U:()=>b});var n=e(3953),m=e(177),t=e(5699),x=e(1236),z=e(7855),C=e(9563),M=e(9861),E=e(6440),f=e(3245),_=e(3100),F=e(6073),D=e(959);const s=i=>({"matched-tag":i}),d=(i,u)=>({tagType:i,tag:u});function p(i,u){if(1&i&&(n.j41(0,"div",4),n.eu8(1,6),n.k0s()),2&i){const c=u.$implicit,T=n.XpG(),I=n.sdS(7);n.Y8G("ngClass",n.eq3(3,s,T.matchingText&&c.matchText.toLowerCase().includes(T.matchingText))),n.R7$(),n.Y8G("ngTemplateOutlet",I)("ngTemplateOutletContext",n.l_i(5,d,T.tagType,c))}}function h(i,u){if(1&i&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&i){const c=n.XpG(2);n.R7$(),n.SpI(" ",c.matchedHiddenCount," of ")}}function O(i,u){if(1&i&&(n.j41(0,"nz-tag",7),n.EFF(1," +"),n.DNE(2,h,2,1,"span",8),n.EFF(3),n.k0s()),2&i){const c=n.XpG(),T=n.sdS(5);n.Y8G("nzPopoverContent",T),n.R7$(2),n.Y8G("ngIf",c.matchedHiddenCount>0),n.R7$(),n.SpI("",c.hiddenCount," ")}}function G(i,u){if(1&i&&(n.j41(0,"div",4),n.qex(1,10),n.eu8(2,6),n.bVm(),n.k0s()),2&i){const c=u.$implicit,T=n.XpG(2),I=n.sdS(7);n.Y8G("ngClass",n.eq3(4,s,T.matchingText&&c.matchText.toLowerCase().includes(T.matchingText))),n.R7$(),n.Y8G("ngSwitch",T.tagType),n.R7$(),n.Y8G("ngTemplateOutlet",I)("ngTemplateOutletContext",n.l_i(6,d,T.tagType,c))}}function W(i,u){if(1&i&&(n.j41(0,"div",9)(1,"cvc-tag-list",2),n.DNE(2,G,3,9,"div",3),n.k0s()()),2&i){const c=n.XpG();n.R7$(2),n.Y8G("ngForOf",c.hiddenTags)}}function y(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",12),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("therapy",c)("truncateLongName",!0)}}function Y(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-disease-tag",13),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("disease",c)("truncateLongName",!0)}}function N(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-feature-tag",14),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("feature",c)("truncateLongName",!0)}}function $(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-organization-tag",15),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("org",c)}}function K(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-variant-tag",16),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("variant",c)}}function S(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-variant-type-tag",17),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("variantType",c)}}function X(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-feature-variant-tag",18),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("truncateLongName",!0)("variant",c)}}function H(i,u){1&i&&(n.qex(0,10),n.DNE(1,y,2,2,"ng-container",11)(2,Y,2,2,"ng-container",11)(3,N,2,2,"ng-container",11)(4,$,2,1,"ng-container",11)(5,K,2,1,"ng-container",11)(6,S,2,1,"ng-container",11)(7,X,2,2,"ng-container",11),n.bVm()),2&i&&(n.Y8G("ngSwitch",u.tagType),n.R7$(),n.Y8G("ngSwitchCase","therapy"),n.R7$(),n.Y8G("ngSwitchCase","disease"),n.R7$(),n.Y8G("ngSwitchCase","feature"),n.R7$(),n.Y8G("ngSwitchCase","organization"),n.R7$(),n.Y8G("ngSwitchCase","variant"),n.R7$(),n.Y8G("ngSwitchCase","variant-type"),n.R7$(),n.Y8G("ngSwitchCase","variant-feature"))}function j(i){return i?.map(u=>u.matchText?u:{...u,matchText:u.name})}let b=(()=>{class i{constructor(c){this.cdr=c,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(c){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.matchedHiddenCount=0,this.hiddenTags){let c=this.matchingText.toLowerCase();this.hiddenTags.forEach(T=>{T.matchText.toLowerCase().includes(c)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}static#t=this.\u0275fac=function(T){return new(T||i)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:i,selectors:[["cvc-tag-overflow"]],inputs:{tags:[2,"tags","tags",j],maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.GFd,n.OA$],decls:8,vars:5,consts:[["additionalTagPopover",""],["tagTemplate",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"therapy","truncateLongName"],[3,"disease","truncateLongName"],[3,"feature","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"],[3,"truncateLongName","variant"]],template:function(T,I){1&T&&(n.j41(0,"cvc-tag-list",2),n.DNE(1,p,2,8,"div",3),n.j41(2,"div",4),n.DNE(3,O,4,3,"nz-tag",5),n.k0s(),n.DNE(4,W,3,1,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(6,H,8,8,"ng-template",null,1,n.C5r)),2&T&&(n.R7$(),n.Y8G("ngForOf",I.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,s,I.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",I.hiddenCount&&I.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,m.T3,m.ux,m.e1,t.s,x.L_,z.M,C.R,M.Y,E.r,f._,_.V,F.h,D.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return i})()},9374:(R,P,e)=>{e.d(P,{r:()=>s});var n=e(177),m=e(2142),t=e(5699),x=e(1236),z=e(9192),C=e(8920),M=e(7051),E=e(9802),f=e(5493),_=e(6912),F=e(7086),D=e(3953);let s=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=D.$C({type:d});static#e=this.\u0275inj=D.G2t({imports:[n.MD,t.T,x.MC,m.x,E._,z.J,C.U,_.l,M.U,f.G,F.C]})}return d})()},5493:(R,P,e)=>{e.d(P,{G:()=>D});var n=e(177),m=e(1188),t=e(5699),x=e(5703),z=e(7054),C=e(2e3),M=e(5103),E=e(4917),f=e(3953);let _=(()=>{class s{static#t=this.\u0275fac=function(h){return new(h||s)};static#n=this.\u0275mod=f.$C({type:s});static#e=this.\u0275inj=f.G2t({imports:[n.MD,M.Y3,x.Ti,C.WF,E.i,z.L]})}return s})();var F=e(1236);let D=(()=>{class s{static#t=this.\u0275fac=function(h){return new(h||s)};static#n=this.\u0275mod=f.$C({type:s});static#e=this.\u0275inj=f.G2t({imports:[n.MD,m.iI,M.Y3,t.T,F.MC,_]})}return s})()},5528:(R,P,e)=>{e.r(P),e.d(P,{FeaturesModule:()=>bt});var n=e(177),m=e(1188),t=e(3953);let x=(()=>{class o{constructor(){}static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["app-features"]],decls:1,vars:0,template:function(l,r){1&l&&t.nrm(0,"router-outlet")},dependencies:[m.n3],encapsulation:2})}return o})();var z=e(9417),C=e(7874),M=e(9214),E=e(5724),f=e(4998),_=e(9374),F=e(4917),D=e(4256),s=e(4450),d=e(8252),p=e(513),h=e(5703),O=e(8927),G=e(5103),W=e(1011),y=e(9247),Y=e(5699),N=e(5154),$=e(7391),K=e(6912),S=e(1997);let X=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,z.YN,p.Zw,h.Ti,O.PQ,G.Y3,W.j,y.$G,Y.T,N.Qt,$.kT,S.DH,D.t,s.B,C.E,K.l,M.y,E.T,F.i,f.B,d.A,_.r]})}return o})();var H=e(4124),j=e(7529),b=e(3062),i=e(7685);let u=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,p.Zw,G.Y3,i.pc,$.kT,b.ZJ,j.f3,F.i,H.C,X]})}return o})();var c=e(6389),T=e(9765),I=e(1635),nt=e(9995),w=e(9145),L=e(9894),U=e(1413),tt=e(4412),J=e(9199),Q=e(3294),et=e(7048),at=e(5245),A=e(5964),Z=e(6354),ot=e(152),it=e(3993),B=e(4608),rt=e(1852),st=e(1405),lt=e(435),ct=e(3245),gt=e(3296),pt=e(9129),dt=e(3431),ht=e(2923),mt=e(6911),ut=e(1774);const _t=o=>({height:o}),vt=()=>[],Ct=()=>({x:"680px",y:"800px"}),V=()=>["descend","ascend",null];function ft(o,g){}function Tt(o,g){if(1&o&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,ft,0,0,"ng-template",7),t.k0s(),t.bVm()),2&o){t.XpG();const a=t.sdS(4),l=t.sdS(6),r=t.sdS(8);t.R7$(),t.Y8G("nzTitle",l)("nzExtra",r),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function zt(o,g){}function Mt(o,g){if(1&o&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,zt,0,0,"ng-template",7),t.k0s()()),2&o){const a=t.XpG(),l=t.sdS(4),r=t.sdS(6),v=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,_t,a.cvcHeight)),t.R7$(),t.Y8G("nzTitle",r)("nzExtra",v),t.R7$(),t.Y8G("ngTemplateOutlet",l)}}function Pt(o,g){if(1&o&&(t.j41(0,"tr",35)(1,"td",27),t.nrm(2,"cvc-feature-tag",36),t.k0s(),t.j41(3,"td")(4,"span",37),t.EFF(5),t.nI1(6,"titlecase"),t.k0s()(),t.j41(7,"td")(8,"span",38),t.EFF(9),t.nI1(10,"titlecase"),t.k0s()(),t.j41(11,"td"),t.nrm(12,"cvc-plain-tag-overflow",39),t.k0s(),t.j41(13,"td"),t.nrm(14,"cvc-tag-overflow",40),t.k0s(),t.j41(15,"td"),t.nrm(16,"cvc-tag-overflow",41),t.k0s(),t.j41(17,"td",42),t.EFF(18),t.k0s(),t.j41(19,"td",42),t.EFF(20),t.k0s(),t.j41(21,"td",42),t.EFF(22),t.k0s(),t.j41(23,"td",42),t.EFF(24),t.k0s()()),2&o){const a=g.$implicit,l=t.XpG(2);t.R7$(2),t.Y8G("feature",a),t.R7$(2),t.Y8G("nzEllipsis",!0),t.R7$(),t.SpI(" ",t.bMT(6,16,a.fullName)," "),t.R7$(4),t.SpI(" ",t.bMT(10,18,a.featureInstanceType)," "),t.R7$(3),t.Y8G("tags",a.featureAliases)("matchingText",l.aliasInput),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",a.diseases)("matchingText",l.diseaseInput),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",a.therapies)("matchingText",l.therapyInput),t.R7$(2),t.SpI(" ",a.molecularProfileCount," "),t.R7$(2),t.SpI(" ",a.variantCount," "),t.R7$(2),t.SpI(" ",a.evidenceItemCount," "),t.R7$(2),t.SpI(" ",a.assertionCount," ")}}function xt(o,g){if(1&o){const a=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(r){t.eBV(a);const v=t.XpG();return t.Njj(v.scrollEvent$.next(r))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(r){t.eBV(a);const v=t.XpG();return t.Njj(v.sortChange$.next(r))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Name "),t.k0s(),t.j41(10,"th",13),t.EFF(11," Full Name "),t.k0s(),t.j41(12,"th",14),t.EFF(13,"Type"),t.k0s(),t.j41(14,"th",15),t.EFF(15,"Aliases"),t.k0s(),t.j41(16,"th",16),t.EFF(17,"Diseases"),t.k0s(),t.j41(18,"th",17),t.EFF(19,"Therapies"),t.k0s(),t.j41(20,"th",18),t.nrm(21,"i",19),t.EFF(22," Count "),t.k0s(),t.j41(23,"th",20),t.nrm(24,"i",21),t.EFF(25," Count "),t.k0s(),t.j41(26,"th",22),t.nrm(27,"i",23),t.EFF(28," Count "),t.k0s(),t.j41(29,"th",24),t.nrm(30,"i",25),t.EFF(31," Count "),t.k0s()(),t.j41(32,"tr",26)(33,"th",27)(34,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.nameInput,r)||(v.nameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(35,"th",27)(36,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.fullNameInput,r)||(v.fullNameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(37,"th")(38,"nz-select",29),t.bIt("ngModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.mxI("ngModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.typeInput,r)||(v.typeInput=r),t.Njj(r)}),t.nrm(39,"nz-option",30)(40,"nz-option",31)(41,"nz-option",32),t.k0s()(),t.j41(42,"th")(43,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.aliasInput,r)||(v.aliasInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(44,"th")(45,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.diseaseInput,r)||(v.diseaseInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(46,"th")(47,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.therapyInput,r)||(v.therapyInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.nrm(48,"th",33)(49,"th",33)(50,"th",33)(51,"th",33),t.k0s()(),t.j41(52,"tbody"),t.DNE(53,Pt,25,20,"ng-template",34),t.k0s()()}if(2&o){const a=t.XpG();t.Y8G("nzData",t.bMT(2,37,a.row$)||t.lJ4(45,vt))("nzLoading",!t.bMT(3,39,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.bMT(4,41,a.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,43,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.lJ4(46,Ct))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",a.sortColumns.FeatureName)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",a.sortColumns.FeatureFullName)("nzSortFn",!0),t.R7$(10),t.Y8G("nzColumnKey",a.sortColumns.MolecularProfileCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(47,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(48,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(49,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(50,V)),t.R7$(5),t.R50("inputModel",a.nameInput),t.R7$(2),t.R50("inputModel",a.fullNameInput),t.R7$(2),t.Y8G("nzDropdownMatchSelectWidth",!1),t.R50("ngModel",a.typeInput),t.R7$(),t.Y8G("nzValue",a.featureTypes.Gene),t.R7$(),t.Y8G("nzValue",a.featureTypes.Factor),t.R7$(),t.Y8G("nzValue",a.featureTypes.Fusion),t.R7$(2),t.R50("inputModel",a.aliasInput),t.R7$(2),t.R50("inputModel",a.diseaseInput),t.R7$(2),t.R50("inputModel",a.therapyInput)}}function Ot(o,g){}function Et(o,g){if(1&o&&(t.qex(0),t.DNE(1,Ot,0,0,"ng-template",7),t.bVm()),2&o){const a=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",a.cvcTitleTemplate)}}function yt(o,g){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const a=t.XpG(2);t.R7$(),t.SpI(" ",a.cvcTitle," ")}}function Ft(o,g){if(1&o&&(t.DNE(0,Et,2,1,"ng-container",43)(1,yt,2,1,"ng-container",43),t.j41(2,"span",44),t.nrm(3,"cvc-table-counts",45),t.k0s()),2&o){const a=t.XpG();t.Y8G("ngIf",a.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",a.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",a.connection$)}}function Dt(o,g){1&o&&(t.j41(0,"nz-tag",48),t.nrm(1,"i",49),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function It(o,g){if(1&o&&(t.DNE(0,Dt,4,0,"nz-tag",46),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",47),t.nI1(3,"ngrxPush")),2&o){const a=t.XpG();t.Y8G("ngIf",t.bMT(1,2,a.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,a.noMoreRows$))}}let k=class q{set initialUserFilters(g){g&&Object.assign(this,g)}constructor(g,a){this.query=g,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.featureTypes=w.Xiu,this.sortColumns=w.Phy,this.debouncedQuery=new U.B,this.noMoreRows$=new tt.t(!1),this.scrollEvent$=new tt.t("stop"),this.sortChange$=new U.B,this.filterChange$=new U.B,this.scrollIndex$=new U.B}ngOnInit(){this.queryRef=this.query.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,B.E)("loading"),(0,Q.F)(),(0,et.v)(g=>!1!==g,!0)),this.moreLoading$=this.result$.pipe((0,B.E)("loading"),(0,Q.F)(),(0,at.i)(2)),this.connection$=this.result$.pipe((0,B.E)("data","browseFeatures"),(0,A.p)(J.kP)),this.row$=this.connection$.pipe((0,B.E)("edges"),(0,A.p)(J.kP),(0,Z.T)(g=>g.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,B.E)("pageInfo"),(0,A.p)(J.kP)),this.sortChange$.pipe((0,L.s)(this)).subscribe(g=>{this.queryRef.refetch({sortBy:(0,nt.X)(g)})}),this.filterChange$.pipe((0,ot.B)(500),(0,L.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,Z.T)(g=>"stop"!==g),(0,Q.F)(),(0,L.s)(this)).subscribe(g=>{this.isScrolling=g,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,A.p)(g=>"bottom"===g),(0,it.E)(this.pageInfo$),(0,Z.T)(([g,a])=>a),(0,L.s)(this)).subscribe(g=>{g.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({featureName:this.nameInput,featureFullName:this.fullNameInput,featureAlias:this.aliasInput,diseaseName:this.diseaseInput,therapyName:this.therapyInput,featureType:this.typeInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}onModelUpdated(g){this.debouncedQuery.next()}trackByIndex(g,a){return a?.id}static#t=this.\u0275fac=function(a){return new(a||q)(t.rXU(w.UN$),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:q,selectors:[["cvc-features-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","70px"],["nzWidth","200px"],["nzWidth","250px"],["nzWidth","225px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Molecular Profile Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-molecularprofile"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-assertion"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Type",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","Gene",3,"nzValue"],["nzLabel","Factor",3,"nzValue"],["nzLabel","Fusion",3,"nzValue"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"feature"],["nz-typography","","nzType","secondary",3,"nzEllipsis"],["nz-typography","","nz","","nzType","secondary"],[3,"tags","matchingText"],["tagType","disease",3,"maxDisplayCount","tags","matchingText"],["tagType","therapy",3,"maxDisplayCount","tags","matchingText"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,l){if(1&a&&t.DNE(0,Tt,3,3,"ng-container",5)(1,Mt,3,6,"ng-template",null,0,t.C5r)(3,xt,54,51,"ng-template",null,1,t.C5r)(5,Ft,4,3,"ng-template",null,2,t.C5r)(7,It,4,6,"ng-template",null,3,t.C5r),2&a){const r=t.sdS(2);t.Y8G("ngIf",!l.cvcHeight)("ngIfElse",r)}},dependencies:[n.bT,n.T3,n.B3,z.BC,z.vS,c.c,h.cK,G.Dn,y.CP,y.Cc,y.SO,y._4,y.IL,y.aj,y.kt,y.CC,y.OL,y.jc,Y.s,N.LH,$.Di,S.ld,S.WI,rt.M,st.s,lt.n,ct._,gt.M,pt.s,dt.y,ht.f,mt.U,n.PV,ut.L9],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0})};k=(0,I.Cg)([(0,L.d)()],k);var Rt=e(3075);function Gt(o,g){1&o&&(t.j41(0,"a",13),t.nrm(1,"i",14),t.EFF(2," View Gene Model Docs "),t.k0s())}function $t(o,g){1&o&&(t.j41(0,"a",15),t.nrm(1,"i",14),t.EFF(2," View Gene Curation Docs "),t.k0s())}const St=[{path:"",component:x,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-features-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Features"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock",""]],template:function(l,r){1&l&&(t.nrm(0,"cvc-section-navigation"),t.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t.nrm(5,"i",3),t.nI1(6,"entityColor"),t.k0s(),t.j41(7,"nz-col",4)(8,"h2"),t.EFF(9,"Features"),t.k0s(),t.j41(10,"p",5),t.EFF(11," CIViC Features include a feature-level summary, a link to the Drug Gene InteractionDatabase, and extensive gene details from MyGene.info. "),t.k0s()(),t.j41(12,"nz-col",6)(13,"nz-space",7),t.DNE(14,Gt,3,0,"a",8)(15,$t,3,0,"a",9),t.k0s()()(),t.j41(16,"nz-row")(17,"nz-col",10)(18,"div",11),t.nrm(19,"cvc-features-table",12),t.k0s()()()()()),2&l&&(t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(6,3,"Feature")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24))},dependencies:[p.aO,c.c,G.Dn,i.U5,i.Dq,$.Di,b.WB,b.zR,j.Uq,j.e,T.n,k,Rt.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})(),data:{breadcrumb:"Home"}},{path:":featureId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(3967),e.e(1110),e.e(6508),e.e(6161),e.e(326),e.e(262),e.e(5384),e.e(5958),e.e(445)]).then(e.bind(e,4817)).then(o=>o.FeaturesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([e.e(2076),e.e(424)]).then(e.bind(e,424)).then(o=>o.FeaturesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let jt=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[m.iI.forChild(St),u,m.iI]})}return o})(),bt=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,jt]})}return o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5528],{8920:(R,P,e)=>{e.d(P,{U:()=>s});var n=e(177),m=e(1188),t=e(5699),x=e(5103),z=e(7529),C=e(7054),M=e(2e3),E=e(5703),f=e(3357),_=e(3953);let F=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=_.$C({type:d});static#e=this.\u0275inj=_.G2t({imports:[n.MD,E.Ti,z.f3,M.WF,C.L,f.P]})}return d})();var D=e(1236);let s=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=_.$C({type:d});static#e=this.\u0275inj=_.G2t({imports:[n.MD,m.iI,t.T,x.Y3,D.MC,F]})}return d})()},959:(R,P,e)=>{e.d(P,{j:()=>z});var n=e(3953),m=e(3100),t=e(3245),x=e(4247);let z=(()=>{class C{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(f){return new(f||C)};static#n=this.\u0275cmp=n.VBU({type:C,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(f,_){1&f&&(n.j41(0,"cvc-tag-group"),n.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),n.k0s()),2&f&&(n.R7$(),n.Y8G("feature",_.feature)("enablePopover",_.enablePopover)("truncateLongName",_.truncateLongName),n.R7$(),n.Y8G("variant",_.variant)("enablePopover",_.enablePopover)("truncateLongName",_.truncateLongName))},dependencies:[m.V,t._,x.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return C})()},9129:(R,P,e)=>{e.d(P,{s:()=>D});var n=e(3953),m=e(177),t=e(5699),x=e(1236),z=e(7855);const C=s=>({"matched-tag":s});function M(s,d){if(1&s&&(n.j41(0,"span",3)(1,"nz-tag"),n.EFF(2),n.k0s()()),2&s){const p=d.$implicit,h=n.XpG();n.Y8G("ngClass",n.eq3(2,C,h.matchingText&&p.toLowerCase().includes(h.matchingText))),n.R7$(2),n.JRh(p)}}function E(s,d){if(1&s&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&s){const p=n.XpG(2);n.R7$(),n.SpI(" ",p.matchedHiddenCount," of ")}}function f(s,d){if(1&s&&(n.j41(0,"nz-tag",5),n.EFF(1," +"),n.DNE(2,E,2,1,"span",6),n.EFF(3),n.k0s()),2&s){const p=n.XpG(),h=n.sdS(5);n.Y8G("nzPopoverMouseEnterDelay",0)("nzPopoverContent",h),n.R7$(2),n.Y8G("ngIf",p.matchedHiddenCount>0),n.R7$(),n.SpI("",p.hiddenCount," ")}}function _(s,d){if(1&s&&(n.j41(0,"div",3)(1,"nz-tag"),n.EFF(2),n.k0s()()),2&s){const p=d.$implicit,h=n.XpG(2);n.Y8G("ngClass",n.eq3(2,C,h.matchingText&&p.toLowerCase().includes(h.matchingText))),n.R7$(2),n.JRh(p)}}function F(s,d){if(1&s&&(n.j41(0,"div",7)(1,"cvc-tag-list",1),n.DNE(2,_,3,4,"div",2),n.k0s()()),2&s){const p=n.XpG();n.R7$(2),n.Y8G("ngForOf",p.hiddenTags)}}let D=(()=>{class s{constructor(p){this.cdr=p,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(p){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.hiddenTags){let p=this.matchingText.toLowerCase();this.hiddenTags.forEach(h=>{h.toLowerCase().includes(p)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}static#t=this.\u0275fac=function(h){return new(h||s)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:s,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[n.OA$],decls:6,vars:5,consts:[["additionalTagPopover",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(h,O){1&h&&(n.j41(0,"cvc-tag-list",1),n.DNE(1,M,3,4,"span",2),n.j41(2,"span",3),n.DNE(3,f,4,4,"nz-tag",4),n.k0s(),n.DNE(4,F,3,1,"ng-template",null,0,n.C5r),n.k0s()),2&h&&(n.R7$(),n.Y8G("ngForOf",O.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,C,O.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",O.hiddenCount&&O.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,t.s,x.L_,z.M],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return s})()},5724:(R,P,e)=>{e.d(P,{T:()=>C});var n=e(177),m=e(2142),t=e(5699),x=e(1236),z=e(3953);let C=(()=>{class M{static#t=this.\u0275fac=function(_){return new(_||M)};static#n=this.\u0275mod=z.$C({type:M});static#e=this.\u0275inj=z.G2t({imports:[n.MD,t.T,x.MC,m.x]})}return M})()},6911:(R,P,e)=>{e.d(P,{U:()=>b});var n=e(3953),m=e(177),t=e(5699),x=e(1236),z=e(7855),C=e(9563),M=e(9861),E=e(6440),f=e(3245),_=e(3100),F=e(6073),D=e(959);const s=i=>({"matched-tag":i}),d=(i,u)=>({tagType:i,tag:u});function p(i,u){if(1&i&&(n.j41(0,"div",4),n.eu8(1,6),n.k0s()),2&i){const c=u.$implicit,T=n.XpG(),I=n.sdS(7);n.Y8G("ngClass",n.eq3(3,s,T.matchingText&&c.matchText.toLowerCase().includes(T.matchingText))),n.R7$(),n.Y8G("ngTemplateOutlet",I)("ngTemplateOutletContext",n.l_i(5,d,T.tagType,c))}}function h(i,u){if(1&i&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&i){const c=n.XpG(2);n.R7$(),n.SpI(" ",c.matchedHiddenCount," of ")}}function O(i,u){if(1&i&&(n.j41(0,"nz-tag",7),n.EFF(1," +"),n.DNE(2,h,2,1,"span",8),n.EFF(3),n.k0s()),2&i){const c=n.XpG(),T=n.sdS(5);n.Y8G("nzPopoverContent",T),n.R7$(2),n.Y8G("ngIf",c.matchedHiddenCount>0),n.R7$(),n.SpI("",c.hiddenCount," ")}}function G(i,u){if(1&i&&(n.j41(0,"div",4),n.qex(1,10),n.eu8(2,6),n.bVm(),n.k0s()),2&i){const c=u.$implicit,T=n.XpG(2),I=n.sdS(7);n.Y8G("ngClass",n.eq3(4,s,T.matchingText&&c.matchText.toLowerCase().includes(T.matchingText))),n.R7$(),n.Y8G("ngSwitch",T.tagType),n.R7$(),n.Y8G("ngTemplateOutlet",I)("ngTemplateOutletContext",n.l_i(6,d,T.tagType,c))}}function W(i,u){if(1&i&&(n.j41(0,"div",9)(1,"cvc-tag-list",2),n.DNE(2,G,3,9,"div",3),n.k0s()()),2&i){const c=n.XpG();n.R7$(2),n.Y8G("ngForOf",c.hiddenTags)}}function y(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-therapy-tag",12),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("therapy",c)("truncateLongName",!0)}}function Y(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-disease-tag",13),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("disease",c)("truncateLongName",!0)}}function N(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-feature-tag",14),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("feature",c)("truncateLongName",!0)}}function $(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-organization-tag",15),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("org",c)}}function K(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-variant-tag",16),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("variant",c)}}function S(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-variant-type-tag",17),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("variantType",c)}}function X(i,u){if(1&i&&(n.qex(0),n.nrm(1,"cvc-feature-variant-tag",18),n.bVm()),2&i){const c=n.XpG().tag;n.R7$(),n.Y8G("truncateLongName",!0)("variant",c)}}function H(i,u){1&i&&(n.qex(0,10),n.DNE(1,y,2,2,"ng-container",11)(2,Y,2,2,"ng-container",11)(3,N,2,2,"ng-container",11)(4,$,2,1,"ng-container",11)(5,K,2,1,"ng-container",11)(6,S,2,1,"ng-container",11)(7,X,2,2,"ng-container",11),n.bVm()),2&i&&(n.Y8G("ngSwitch",u.tagType),n.R7$(),n.Y8G("ngSwitchCase","therapy"),n.R7$(),n.Y8G("ngSwitchCase","disease"),n.R7$(),n.Y8G("ngSwitchCase","feature"),n.R7$(),n.Y8G("ngSwitchCase","organization"),n.R7$(),n.Y8G("ngSwitchCase","variant"),n.R7$(),n.Y8G("ngSwitchCase","variant-type"),n.R7$(),n.Y8G("ngSwitchCase","variant-feature"))}function j(i){return i?.map(u=>u.matchText?u:{...u,matchText:u.name})}let b=(()=>{class i{constructor(c){this.cdr=c,this.maxDisplayCount=2,this.thisOne=!1,this.matchedHiddenCount=0}ngOnChanges(c){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.matchedHiddenCount=0,this.hiddenTags){let c=this.matchingText.toLowerCase();this.hiddenTags.forEach(T=>{T.matchText.toLowerCase().includes(c)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0;this.cdr.detectChanges()}static#t=this.\u0275fac=function(T){return new(T||i)(n.rXU(n.gRc))};static#n=this.\u0275cmp=n.VBU({type:i,selectors:[["cvc-tag-overflow"]],inputs:{tags:[2,"tags","tags",j],maxDisplayCount:"maxDisplayCount",matchingText:"matchingText",tagType:"tagType",thisOne:"thisOne"},features:[n.GFd,n.OA$],decls:8,vars:5,consts:[["additionalTagPopover",""],["tagTemplate",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"therapy","truncateLongName"],[3,"disease","truncateLongName"],[3,"feature","truncateLongName"],[3,"org"],[3,"variant"],[3,"variantType"],[3,"truncateLongName","variant"]],template:function(T,I){1&T&&(n.j41(0,"cvc-tag-list",2),n.DNE(1,p,2,8,"div",3),n.j41(2,"div",4),n.DNE(3,O,4,3,"nz-tag",5),n.k0s(),n.DNE(4,W,3,1,"ng-template",null,0,n.C5r),n.k0s(),n.DNE(6,H,8,8,"ng-template",null,1,n.C5r)),2&T&&(n.R7$(),n.Y8G("ngForOf",I.displayedTags),n.R7$(),n.Y8G("ngClass",n.eq3(3,s,I.matchedHiddenCount>0)),n.R7$(),n.Y8G("ngIf",I.hiddenCount&&I.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,m.T3,m.ux,m.e1,t.s,x.L_,z.M,C.R,M.Y,E.r,f._,_.V,F.h,D.j],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return i})()},9374:(R,P,e)=>{e.d(P,{r:()=>s});var n=e(177),m=e(2142),t=e(5699),x=e(1236),z=e(9192),C=e(8920),M=e(7051),E=e(9802),f=e(5493),_=e(6912),F=e(7086),D=e(3953);let s=(()=>{class d{static#t=this.\u0275fac=function(O){return new(O||d)};static#n=this.\u0275mod=D.$C({type:d});static#e=this.\u0275inj=D.G2t({imports:[n.MD,t.T,x.MC,m.x,E._,z.J,C.U,_.l,M.U,f.G,F.C]})}return d})()},5493:(R,P,e)=>{e.d(P,{G:()=>D});var n=e(177),m=e(1188),t=e(5699),x=e(5703),z=e(7054),C=e(2e3),M=e(5103),E=e(4917),f=e(3953);let _=(()=>{class s{static#t=this.\u0275fac=function(h){return new(h||s)};static#n=this.\u0275mod=f.$C({type:s});static#e=this.\u0275inj=f.G2t({imports:[n.MD,M.Y3,x.Ti,C.WF,E.i,z.L]})}return s})();var F=e(1236);let D=(()=>{class s{static#t=this.\u0275fac=function(h){return new(h||s)};static#n=this.\u0275mod=f.$C({type:s});static#e=this.\u0275inj=f.G2t({imports:[n.MD,m.iI,M.Y3,t.T,F.MC,_]})}return s})()},5528:(R,P,e)=>{e.r(P),e.d(P,{FeaturesModule:()=>bt});var n=e(177),m=e(1188),t=e(3953);let x=(()=>{class o{constructor(){}static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["app-features"]],decls:1,vars:0,template:function(l,r){1&l&&t.nrm(0,"router-outlet")},dependencies:[m.n3],encapsulation:2})}return o})();var z=e(9417),C=e(7874),M=e(9214),E=e(5724),f=e(4998),_=e(9374),F=e(4917),D=e(4256),s=e(4450),d=e(8252),p=e(513),h=e(5703),O=e(8927),G=e(5103),W=e(1011),y=e(9247),Y=e(5699),N=e(5154),$=e(7391),K=e(6912),S=e(1997);let X=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,z.YN,p.Zw,h.Ti,O.PQ,G.Y3,W.j,y.$G,Y.T,N.Qt,$.kT,S.DH,D.t,s.B,C.E,K.l,M.y,E.T,F.i,f.B,d.A,_.r]})}return o})();var H=e(4124),j=e(7529),b=e(3062),i=e(7685);let u=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,p.Zw,G.Y3,i.pc,$.kT,b.ZJ,j.f3,F.i,H.C,X]})}return o})();var c=e(6389),T=e(9765),I=e(1635),nt=e(9995),w=e(9145),L=e(9894),U=e(1413),tt=e(4412),J=e(9199),Q=e(3294),et=e(7048),at=e(5245),A=e(5964),Z=e(6354),ot=e(152),it=e(3993),B=e(4608),rt=e(1852),st=e(1405),lt=e(435),ct=e(3245),gt=e(3296),pt=e(9129),dt=e(3431),ht=e(2923),mt=e(6911),ut=e(1774);const _t=o=>({height:o}),vt=()=>[],Ct=()=>({x:"680px",y:"800px"}),V=()=>["descend","ascend",null];function ft(o,g){}function Tt(o,g){if(1&o&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,ft,0,0,"ng-template",7),t.k0s(),t.bVm()),2&o){t.XpG();const a=t.sdS(4),l=t.sdS(6),r=t.sdS(8);t.R7$(),t.Y8G("nzTitle",l)("nzExtra",r),t.R7$(),t.Y8G("ngTemplateOutlet",a)}}function zt(o,g){}function Mt(o,g){if(1&o&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,zt,0,0,"ng-template",7),t.k0s()()),2&o){const a=t.XpG(),l=t.sdS(4),r=t.sdS(6),v=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,_t,a.cvcHeight)),t.R7$(),t.Y8G("nzTitle",r)("nzExtra",v),t.R7$(),t.Y8G("ngTemplateOutlet",l)}}function Pt(o,g){if(1&o&&(t.j41(0,"tr",35)(1,"td",27),t.nrm(2,"cvc-feature-tag",36),t.k0s(),t.j41(3,"td")(4,"span",37),t.EFF(5),t.nI1(6,"titlecase"),t.k0s()(),t.j41(7,"td")(8,"span",38),t.EFF(9),t.nI1(10,"titlecase"),t.k0s()(),t.j41(11,"td"),t.nrm(12,"cvc-plain-tag-overflow",39),t.k0s(),t.j41(13,"td"),t.nrm(14,"cvc-tag-overflow",40),t.k0s(),t.j41(15,"td"),t.nrm(16,"cvc-tag-overflow",41),t.k0s(),t.j41(17,"td",42),t.EFF(18),t.k0s(),t.j41(19,"td",42),t.EFF(20),t.k0s(),t.j41(21,"td",42),t.EFF(22),t.k0s(),t.j41(23,"td",42),t.EFF(24),t.k0s()()),2&o){const a=g.$implicit,l=t.XpG(2);t.R7$(2),t.Y8G("feature",a),t.R7$(2),t.Y8G("nzEllipsis",!0),t.R7$(),t.SpI(" ",t.bMT(6,16,a.fullName)," "),t.R7$(4),t.SpI(" ",t.bMT(10,18,a.featureInstanceType)," "),t.R7$(3),t.Y8G("tags",a.featureAliases)("matchingText",l.aliasInput),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",a.diseases)("matchingText",l.diseaseInput),t.R7$(2),t.Y8G("maxDisplayCount",1)("tags",a.therapies)("matchingText",l.therapyInput),t.R7$(2),t.SpI(" ",a.molecularProfileCount," "),t.R7$(2),t.SpI(" ",a.variantCount," "),t.R7$(2),t.SpI(" ",a.evidenceItemCount," "),t.R7$(2),t.SpI(" ",a.assertionCount," ")}}function xt(o,g){if(1&o){const a=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(r){t.eBV(a);const v=t.XpG();return t.Njj(v.scrollEvent$.next(r))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(r){t.eBV(a);const v=t.XpG();return t.Njj(v.sortChange$.next(r))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Name "),t.k0s(),t.j41(10,"th",13),t.EFF(11," Full Name "),t.k0s(),t.j41(12,"th",14),t.EFF(13,"Type"),t.k0s(),t.j41(14,"th",15),t.EFF(15,"Aliases"),t.k0s(),t.j41(16,"th",16),t.EFF(17,"Diseases"),t.k0s(),t.j41(18,"th",17),t.EFF(19,"Therapies"),t.k0s(),t.j41(20,"th",18),t.nrm(21,"i",19),t.EFF(22," Count "),t.k0s(),t.j41(23,"th",20),t.nrm(24,"i",21),t.EFF(25," Count "),t.k0s(),t.j41(26,"th",22),t.nrm(27,"i",23),t.EFF(28," Count "),t.k0s(),t.j41(29,"th",24),t.nrm(30,"i",25),t.EFF(31," Count "),t.k0s()(),t.j41(32,"tr",26)(33,"th",27)(34,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.nameInput,r)||(v.nameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(35,"th",27)(36,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.fullNameInput,r)||(v.fullNameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(37,"th")(38,"nz-select",29),t.bIt("ngModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.mxI("ngModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.typeInput,r)||(v.typeInput=r),t.Njj(r)}),t.nrm(39,"nz-option",30)(40,"nz-option",31)(41,"nz-option",32),t.k0s()(),t.j41(42,"th")(43,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.aliasInput,r)||(v.aliasInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(44,"th")(45,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.diseaseInput,r)||(v.diseaseInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(46,"th")(47,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(r){t.eBV(a);const v=t.XpG();return t.DH7(v.therapyInput,r)||(v.therapyInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(a);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.nrm(48,"th",33)(49,"th",33)(50,"th",33)(51,"th",33),t.k0s()(),t.j41(52,"tbody"),t.DNE(53,Pt,25,20,"ng-template",34),t.k0s()()}if(2&o){const a=t.XpG();t.Y8G("nzData",t.bMT(2,37,a.row$)||t.lJ4(45,vt))("nzLoading",!t.bMT(3,39,a.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",a.queryRef)("cvcTableScrollPageInfo",t.bMT(4,41,a.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,43,a.scrollIndex$))("nzVirtualForTrackBy",a.trackByIndex)("nzScroll",t.lJ4(46,Ct))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",a.sortColumns.FeatureName)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",a.sortColumns.FeatureFullName)("nzSortFn",!0),t.R7$(10),t.Y8G("nzColumnKey",a.sortColumns.MolecularProfileCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(47,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(48,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(49,V)),t.R7$(3),t.Y8G("nzColumnKey",a.sortColumns.AssertionCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(50,V)),t.R7$(5),t.R50("inputModel",a.nameInput),t.R7$(2),t.R50("inputModel",a.fullNameInput),t.R7$(2),t.Y8G("nzDropdownMatchSelectWidth",!1),t.R50("ngModel",a.typeInput),t.R7$(),t.Y8G("nzValue",a.featureTypes.Gene),t.R7$(),t.Y8G("nzValue",a.featureTypes.Factor),t.R7$(),t.Y8G("nzValue",a.featureTypes.Fusion),t.R7$(2),t.R50("inputModel",a.aliasInput),t.R7$(2),t.R50("inputModel",a.diseaseInput),t.R7$(2),t.R50("inputModel",a.therapyInput)}}function Ot(o,g){}function Et(o,g){if(1&o&&(t.qex(0),t.DNE(1,Ot,0,0,"ng-template",7),t.bVm()),2&o){const a=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",a.cvcTitleTemplate)}}function yt(o,g){if(1&o&&(t.qex(0),t.EFF(1),t.bVm()),2&o){const a=t.XpG(2);t.R7$(),t.SpI(" ",a.cvcTitle," ")}}function Ft(o,g){if(1&o&&(t.DNE(0,Et,2,1,"ng-container",43)(1,yt,2,1,"ng-container",43),t.j41(2,"span",44),t.nrm(3,"cvc-table-counts",45),t.k0s()),2&o){const a=t.XpG();t.Y8G("ngIf",a.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",a.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",a.connection$)}}function Dt(o,g){1&o&&(t.j41(0,"nz-tag",48),t.nrm(1,"i",49),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function It(o,g){if(1&o&&(t.DNE(0,Dt,4,0,"nz-tag",46),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",47),t.nI1(3,"ngrxPush")),2&o){const a=t.XpG();t.Y8G("ngIf",t.bMT(1,2,a.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,a.noMoreRows$))}}let k=class q{set initialUserFilters(g){g&&Object.assign(this,g)}constructor(g,a){this.query=g,this.cdr=a,this.initialPageSize=35,this.isScrolling=!1,this.featureTypes=w.Xiu,this.sortColumns=w.Phy,this.debouncedQuery=new U.B,this.noMoreRows$=new tt.t(!1),this.scrollEvent$=new tt.t("stop"),this.sortChange$=new U.B,this.filterChange$=new U.B,this.scrollIndex$=new U.B}ngOnInit(){this.queryRef=this.query.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,B.E)("loading"),(0,Q.F)(),(0,et.v)(g=>!1!==g,!0)),this.moreLoading$=this.result$.pipe((0,B.E)("loading"),(0,Q.F)(),(0,at.i)(2)),this.connection$=this.result$.pipe((0,B.E)("data","browseFeatures"),(0,A.p)(J.kP)),this.row$=this.connection$.pipe((0,B.E)("edges"),(0,A.p)(J.kP),(0,Z.T)(g=>g.map(a=>a.node))),this.pageInfo$=this.connection$.pipe((0,B.E)("pageInfo"),(0,A.p)(J.kP)),this.sortChange$.pipe((0,L.s)(this)).subscribe(g=>{this.queryRef.refetch({sortBy:(0,nt.X)(g)})}),this.filterChange$.pipe((0,ot.B)(500),(0,L.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,Z.T)(g=>"stop"!==g),(0,Q.F)(),(0,L.s)(this)).subscribe(g=>{this.isScrolling=g,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,A.p)(g=>"bottom"===g),(0,it.E)(this.pageInfo$),(0,Z.T)(([g,a])=>a),(0,L.s)(this)).subscribe(g=>{g.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({featureName:this.nameInput,featureFullName:this.fullNameInput,featureAlias:this.aliasInput,diseaseName:this.diseaseInput,therapyName:this.therapyInput,featureType:this.typeInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}onModelUpdated(g){this.debouncedQuery.next()}trackByIndex(g,a){return a?.id}static#t=this.\u0275fac=function(a){return new(a||q)(t.rXU(w.UN$),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:q,selectors:[["cvc-features-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","150px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","70px"],["nzWidth","200px"],["nzWidth","250px"],["nzWidth","225px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Molecular Profile Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-molecularprofile"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Assertion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-assertion"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Type",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzLabel","Gene",3,"nzValue"],["nzLabel","Factor",3,"nzValue"],["nzLabel","Fusion",3,"nzValue"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"feature"],["nz-typography","","nzType","secondary",3,"nzEllipsis"],["nz-typography","","nz","","nzType","secondary"],[3,"tags","matchingText"],["tagType","disease",3,"maxDisplayCount","tags","matchingText"],["tagType","therapy",3,"maxDisplayCount","tags","matchingText"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(a,l){if(1&a&&t.DNE(0,Tt,3,3,"ng-container",5)(1,Mt,3,6,"ng-template",null,0,t.C5r)(3,xt,54,51,"ng-template",null,1,t.C5r)(5,Ft,4,3,"ng-template",null,2,t.C5r)(7,It,4,6,"ng-template",null,3,t.C5r),2&a){const r=t.sdS(2);t.Y8G("ngIf",!l.cvcHeight)("ngIfElse",r)}},dependencies:[n.bT,n.T3,n.B3,z.BC,z.vS,c.c,h.cK,G.Dn,y.CP,y.Cc,y.SO,y._4,y.IL,y.aj,y.kt,y.CC,y.OL,y.jc,Y.s,N.LH,$.Di,S.ld,S.WI,rt.M,st.s,lt.n,ct._,gt.M,pt.s,dt.y,ht.f,mt.U,n.PV,ut.L9],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0})};k=(0,I.Cg)([(0,L.d)()],k);var Rt=e(3075);function Gt(o,g){1&o&&(t.j41(0,"a",13),t.nrm(1,"i",14),t.EFF(2," View Gene Model Docs "),t.k0s())}function $t(o,g){1&o&&(t.j41(0,"a",15),t.nrm(1,"i",14),t.EFF(2," View Gene Curation Docs "),t.k0s())}const St=[{path:"",component:x,children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class o{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275cmp=t.VBU({type:o,selectors:[["cvc-features-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Features"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/genes.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/genes.html","target","_blank","nzSize","small","nzBlock",""]],template:function(l,r){1&l&&(t.nrm(0,"cvc-section-navigation"),t.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),t.nrm(5,"i",3),t.nI1(6,"entityColor"),t.k0s(),t.j41(7,"nz-col",4)(8,"h2"),t.EFF(9,"Features"),t.k0s(),t.j41(10,"p",5),t.EFF(11," CIViC Features include a feature-level summary, a link to the Drug Gene InteractionDatabase, and extensive gene details from MyGene.info. "),t.k0s()(),t.j41(12,"nz-col",6)(13,"nz-space",7),t.DNE(14,Gt,3,0,"a",8)(15,$t,3,0,"a",9),t.k0s()()(),t.j41(16,"nz-row")(17,"nz-col",10)(18,"div",11),t.nrm(19,"cvc-features-table",12),t.k0s()()()()()),2&l&&(t.R7$(5),t.Y8G("nzTwotoneColor",t.bMT(6,3,"Feature")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24))},dependencies:[p.aO,c.c,G.Dn,i.U5,i.Dq,$.Di,b.WB,b.zR,j.Uq,j.e,T.n,k,Rt.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})(),data:{breadcrumb:"Home"}},{path:":featureId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([e.e(3967),e.e(1110),e.e(6161),e.e(8313),e.e(262),e.e(5384),e.e(8606),e.e(6903),e.e(2385),e.e(5353),e.e(445)]).then(e.bind(e,4817)).then(o=>o.FeaturesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([e.e(2076),e.e(424)]).then(e.bind(e,424)).then(o=>o.FeaturesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let jt=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[m.iI.forChild(St),u,m.iI]})}return o})(),bt=(()=>{class o{static#t=this.\u0275fac=function(l){return new(l||o)};static#n=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[n.MD,jt]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/553.105f1f81ea5829f4.js b/server/public/553.105f1f81ea5829f4.js new file mode 100644 index 000000000..28328792b --- /dev/null +++ b/server/public/553.105f1f81ea5829f4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[553],{6936:(R,O,a)=>{a.d(O,{G:()=>v});var h=a(177),C=a(1188),T=a(5699),i=a(1236),n=a(5103),u=a(4666),z=a(4917),m=a(3146),E=a(4994),f=a(3953);let v=(()=>{class g{static#n=this.\u0275fac=function(x){return new(x||g)};static#t=this.\u0275mod=f.$C({type:g});static#e=this.\u0275inj=f.G2t({imports:[h.MD,C.iI,m.W2,T.T,i.MC,n.Y3,u.v,z.i,E.a]})}return g})()},9481:(R,O,a)=>{a.d(O,{W:()=>Pn});var h=a(9145),C=a(9199),T=a(5964),i=a(4608),n=a(3953),u=a(177),z=a(5703),m=a(9541),E=a(2e3),f=a(7391),v=a(7529),g=a(7679),G=a(6719),M=a(1774),x=a(1845),$=a(1596);const l=(t,o)=>({$implicit:t,variant:o}),y=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),S=()=>({xxl:6,xl:3,lg:1,md:1,sm:1,xs:1});function F(t,o){1&t&&n.eu8(0)}function U(t,o){if(1&t&&n.DNE(0,F,1,0,"ng-container",6),2&t){const e=n.XpG().ngIf;n.XpG();const _=n.sdS(6);n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(2,l,e.coordinates,e))}}function P(t,o){1&t&&n.eu8(0)}function L(t,o){1&t&&n.eu8(0)}function s(t,o){1&t&&n.eu8(0)}function I(t,o){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",9),n.DNE(4,P,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",10)(6,"nz-card",11),n.DNE(7,L,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,s,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(2).ngIf;n.XpG();const _=n.sdS(6),d=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(7,l,e.fivePrimeCoordinates,e)),n.R7$(3),n.Y8G("ngTemplateOutlet",d)("ngTemplateOutletContext",n.l_i(10,l,e.fivePrimeStartExonCoordinates,e)),n.R7$(2),n.Y8G("ngTemplateOutlet",d)("ngTemplateOutletContext",n.l_i(13,l,e.fivePrimeEndExonCoordinates,e))}}function r(t,o){1&t&&n.eu8(0)}function c(t,o){1&t&&n.eu8(0)}function p(t,o){1&t&&n.eu8(0)}function D(t,o){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",13),n.DNE(4,r,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",14)(6,"nz-card",11),n.DNE(7,c,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,p,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(2).ngIf;n.XpG();const _=n.sdS(6),d=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(7,l,e.threePrimeCoordinates,e)),n.R7$(3),n.Y8G("ngTemplateOutlet",d)("ngTemplateOutletContext",n.l_i(10,l,e.threePrimeStartExonCoordinates,e)),n.R7$(2),n.Y8G("ngTemplateOutlet",d)("ngTemplateOutletContext",n.l_i(13,l,e.threePrimeEndExonCoordinates,e))}}function B(t,o){if(1&t&&(n.j41(0,"nz-row",5),n.DNE(1,I,10,16,"nz-col",7)(2,D,10,16,"nz-col",7),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.vxM(e.fivePrimeCoordinates?1:-1),n.R7$(),n.vxM(e.threePrimeCoordinates?2:-1)}}function N(t,o){if(1&t&&(n.qex(0),n.DNE(1,U,1,5,"ng-container")(2,B,3,2,"nz-row",5),n.bVm()),2&t){let e;const _=o.ngIf;n.R7$(),n.vxM("GeneVariant"===(e=_.__typename)?1:"FusionVariant"===e?2:-1)}}function b(t,o){1&t&&n.eu8(0)}function A(t,o){if(1&t&&(n.j41(0,"nz-card",15),n.DNE(1,b,1,0,"ng-container",6),n.k0s()),2&t){const e=n.XpG(2),_=n.sdS(6);n.Y8G("nzTitle",e.displayTitle?"Representative Variant Coordinates":void 0),n.R7$(),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(3,l,e.cvcCoordinates.coordinates,e.cvcCoordinates))}}function k(t,o){1&t&&n.eu8(0)}function K(t,o){1&t&&n.eu8(0)}function W(t,o){1&t&&n.eu8(0)}function V(t,o){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",9),n.DNE(4,k,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",10)(6,"nz-card",11),n.DNE(7,K,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,W,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(3),_=n.sdS(6),d=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(7,l,e.cvcCoordinates.fivePrimeCoordinates,e.cvcCoordinates)),n.R7$(3),n.Y8G("ngTemplateOutlet",d)("ngTemplateOutletContext",n.l_i(10,l,e.cvcCoordinates.fivePrimeStartExonCoordinates,e.cvcCoordinates)),n.R7$(2),n.Y8G("ngTemplateOutlet",d)("ngTemplateOutletContext",n.l_i(13,l,e.cvcCoordinates.fivePrimeEndExonCoordinates,e.cvcCoordinates))}}function X(t,o){1&t&&n.eu8(0)}function Y(t,o){1&t&&n.eu8(0)}function j(t,o){1&t&&n.eu8(0)}function w(t,o){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",13),n.DNE(4,X,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",14)(6,"nz-card",11),n.DNE(7,Y,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,j,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(3),_=n.sdS(6),d=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(7,l,e.cvcCoordinates.threePrimeCoordinates,e.cvcCoordinates)),n.R7$(3),n.Y8G("ngTemplateOutlet",d)("ngTemplateOutletContext",n.l_i(10,l,e.cvcCoordinates.threePrimeStartExonCoordinates,e.cvcCoordinates)),n.R7$(2),n.Y8G("ngTemplateOutlet",d)("ngTemplateOutletContext",n.l_i(13,l,e.cvcCoordinates.threePrimeEndExonCoordinates,e.cvcCoordinates))}}function Q(t,o){if(1&t&&(n.j41(0,"nz-row",5),n.DNE(1,V,10,16,"nz-col",7)(2,w,10,16,"nz-col",7),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.vxM(e.cvcCoordinates.fivePrimeCoordinates?1:-1),n.R7$(),n.vxM(e.cvcCoordinates.threePrimeCoordinates?2:-1)}}function J(t,o){if(1&t&&(n.qex(0),n.DNE(1,A,2,6,"nz-card",15)(2,Q,3,2,"nz-row",5),n.bVm()),2&t){let e;const _=n.XpG();n.R7$(),n.vxM("GeneVariant"===(e=_.cvcCoordinates.__typename)?1:"FusionVariant"===e?2:-1)}}function Z(t,o){1&t&&(n.j41(0,"span",16),n.EFF(1," None specified "),n.k0s())}function H(t,o){if(1&t&&(n.j41(0,"span",16),n.nrm(1,"cvc-empty-revisable",17),n.k0s()),2&t){const e=n.XpG().variant;n.R7$(),n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function q(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.referenceBuild," ")}}function nn(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.ensemblVersion," ")}}function tn(t,o){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?transcript="+e.representativeTranscript),n.R7$(),n.SpI(" ",e.representativeTranscript," ")}}function en(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.chromosome," ")}}function on(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.start," ")}}function an(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.stop," ")}}function _n(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"ifEmpty"),n.bVm()),2&t){const e=n.XpG(4).$implicit;n.R7$(),n.SpI(" ",n.i5U(2,1,e.referenceBases,"--")," ")}}function rn(t,o){if(1&t&&(n.j41(0,"nz-descriptions-item",30),n.DNE(1,_n,3,4,"ng-container",18),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.XpG();const _=n.sdS(4);n.R7$(),n.Y8G("ngIf",e.chromosome&&e.start&&e.stop)("ngIfElse",_)}}function sn(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"ifEmpty"),n.bVm()),2&t){const e=n.XpG(4).$implicit;n.R7$(),n.SpI(" ",n.i5U(2,1,e.variantBases,"--")," ")}}function cn(t,o){if(1&t&&(n.j41(0,"nz-descriptions-item",31),n.DNE(1,sn,3,4,"ng-container",18),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.XpG();const _=n.sdS(4);n.R7$(),n.Y8G("ngIf",e.chromosome&&e.start&&e.stop)("ngIfElse",_)}}function dn(t,o){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions",19)(2,"nz-descriptions-item",20),n.DNE(3,q,2,1,"ng-container",18),n.k0s(),n.j41(4,"nz-descriptions-item",21),n.DNE(5,nn,2,1,"ng-container",18),n.k0s(),n.j41(6,"nz-descriptions-item",22),n.DNE(7,tn,2,2,"cvc-link-tag",23),n.k0s(),n.j41(8,"nz-descriptions-item",24),n.DNE(9,en,2,1,"ng-container",18),n.k0s(),n.j41(10,"nz-descriptions-item",25),n.DNE(11,on,2,1,"ng-container",18),n.k0s(),n.j41(12,"nz-descriptions-item",26),n.DNE(13,an,2,1,"ng-container",18),n.k0s(),n.qex(14),n.DNE(15,rn,2,2,"nz-descriptions-item",27)(16,cn,2,2,"nz-descriptions-item",28),n.bVm(),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).$implicit,_=n.XpG(),d=n.sdS(4);n.R7$(),n.Y8G("nzColumn",n.lJ4(15,y)),n.R7$(2),n.Y8G("ngIf",e.referenceBuild)("ngIfElse",d),n.R7$(2),n.Y8G("ngIf",e.ensemblVersion)("ngIfElse",d),n.R7$(2),n.Y8G("ngIf",e.representativeTranscript)("ngIfElse",d),n.R7$(2),n.Y8G("ngIf",e.chromosome)("ngIfElse",d),n.R7$(2),n.Y8G("ngIf",e.start)("ngIfElse",d),n.R7$(2),n.Y8G("ngIf",e.stop)("ngIfElse",d),n.R7$(2),n.Y8G("ngIf",e.coordinateType==_.coordinateTypes.GeneVariantCoordinate),n.R7$(),n.Y8G("ngIf",e.coordinateType==_.coordinateTypes.GeneVariantCoordinate)}}function ln(t,o){if(1&t&&n.DNE(0,dn,17,16,"ng-container",18),2&t){const e=n.XpG().$implicit,_=n.sdS(1);n.Y8G("ngIf",e.referenceBuild)("ngIfElse",_)}}function Cn(t,o){if(1&t&&n.nrm(0,"cvc-empty-revisable",17),2&t){const e=n.XpG().variant;n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function pn(t,o){if(1&t&&n.DNE(0,H,2,3,"ng-template",null,3,n.C5r)(2,ln,1,2,"ng-container")(3,Cn,1,3,"cvc-empty-revisable",17),2&t){const e=o.$implicit;n.R7$(2),n.vxM(e?2:3)}}function gn(t,o){if(1&t&&(n.j41(0,"span",16),n.nrm(1,"cvc-empty-revisable",17),n.k0s()),2&t){const e=n.XpG().variant;n.R7$(),n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function mn(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.exon," ")}}function fn(t,o){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?exon="+e.ensemblId),n.R7$(),n.SpI(" ",e.ensemblId," ")}}function En(t,o){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?transcript="+e.representativeTranscript),n.R7$(),n.SpI(" ",e.representativeTranscript," ")}}function vn(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"enumToTitle"),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,e.strand)," ")}}function hn(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.chromosome," ")}}function Tn(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.start," ")}}function un(t,o){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.stop," ")}}function zn(t,o){if(1&t&&(n.EFF(0),n.nI1(1,"enumToTitle")),2&t){const e=n.XpG(3).$implicit;n.Lme(" ",n.bMT(1,2,e.exonOffsetDirection),"",e.exonOffset," ")}}function Dn(t,o){1&t&&n.EFF(0," 0 ")}function On(t,o){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions",19)(2,"nz-descriptions-item",32),n.DNE(3,mn,2,1,"ng-container",18),n.k0s(),n.j41(4,"nz-descriptions-item",33),n.DNE(5,fn,2,2,"cvc-link-tag",23),n.k0s(),n.j41(6,"nz-descriptions-item",34),n.DNE(7,En,2,2,"cvc-link-tag",23),n.k0s(),n.j41(8,"nz-descriptions-item",35),n.DNE(9,vn,3,3,"ng-container",18),n.k0s(),n.j41(10,"nz-descriptions-item",24),n.DNE(11,hn,2,1,"ng-container",18),n.k0s(),n.j41(12,"nz-descriptions-item",36),n.DNE(13,Tn,2,1,"ng-container",18),n.k0s(),n.j41(14,"nz-descriptions-item",37),n.DNE(15,un,2,1,"ng-container",18),n.k0s(),n.j41(16,"nz-descriptions-item",38),n.DNE(17,zn,2,4)(18,Dn,1,0),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2).$implicit;n.XpG();const _=n.sdS(4);n.R7$(),n.Y8G("nzColumn",n.lJ4(16,S)),n.R7$(2),n.Y8G("ngIf",e.exon)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.ensemblId)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.representativeTranscript)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.strand)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.chromosome)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.start)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.stop)("ngIfElse",_),n.R7$(2),n.vxM(e.exonOffset&&e.exonOffsetDirection?17:18)}}function xn(t,o){if(1&t&&n.DNE(0,On,19,17,"ng-container",18),2&t){const e=n.XpG().$implicit,_=n.sdS(1);n.Y8G("ngIf",e.referenceBuild)("ngIfElse",_)}}function In(t,o){if(1&t&&n.nrm(0,"cvc-empty-revisable",17),2&t){const e=n.XpG().variant;n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function Mn(t,o){if(1&t&&n.DNE(0,gn,2,3,"ng-template",null,3,n.C5r)(2,xn,1,2,"ng-container")(3,In,1,3,"cvc-empty-revisable",17),2&t){const e=o.$implicit;n.R7$(2),n.vxM(e?2:3)}}let Pn=(()=>{class t{constructor(e){this.gql=e,this.displayTitle=!0,this.coordinateTypes=h.c1P}ngOnInit(){if(!this.cvcCoordinates&&!this.cvcVariantId)throw new Error("CvcCoordinatesCard requires valid cvcVariantId or cvcCoordinates Input, none provided.");if(!this.cvcCoordinates&&this.cvcVariantId){this.queryRef=this.gql.watch({variantId:this.cvcVariantId});let e=this.queryRef.valueChanges;this.loading$=e.pipe((0,i.E)("loading"),(0,T.p)(C.kP)),this.variant$=e.pipe((0,i.E)("data","variant"),(0,T.p)(C.kP))}}static#n=this.\u0275fac=function(_){return new(_||t)(n.rXU(h.kWO))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-coordinates-card"]],inputs:{cvcVariantId:"cvcVariantId",cvcCoordinates:"cvcCoordinates",displayTitle:"displayTitle"},decls:9,vars:4,consts:[["noneSpecified",""],["coordinateCard",""],["exonCoordinateCard",""],["noCoord",""],[4,"ngIf"],["nzSpan","24","nzGutter","12"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzSpan","12"],[3,"nzAnimated"],["nzTitle","5' Partner Genomic Coordinates"],["nzTitle","5' Partner Exon Coordinates"],["nzTitle","Start Exon Coordinates"],["nzTitle","End Exon Coordinates"],["nzTitle","3' Partner Genomic Coordinates"],["nzTitle","3' Partner Exon Coordinates"],[3,"nzTitle"],["nz-typography","","nzType","secondary"],["notification","No coordinates specified",3,"reviseFormPath"],[4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Ref. Build"],["nzTitle","Ensembl Version"],["nzTitle","Transcript"],["tooltip","View on Ensembl",3,"href",4,"ngIf","ngIfElse"],["nzTitle","Chr."],["nzTitle","Start"],["nzTitle","Stop"],["nzTitle","Ref. Bases",4,"ngIf"],["nzTitle","Var. Bases",4,"ngIf"],["tooltip","View on Ensembl",3,"href"],["nzTitle","Ref. Bases"],["nzTitle","Var. Bases"],["nzTitle","Exon"],["nzTitle","Exon ID","nzSpan","2"],["nzTitle","Transcript","nzSpan","2"],["nzTitle","Strand"],["nzTitle","Start","nzSpan","2"],["nzTitle","Stop","nzSpan","2"],["nzTitle","Offset"]],template:function(_,d){1&_&&(n.DNE(0,N,3,1,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,J,3,1,"ng-container",4)(3,Z,2,0,"ng-template",null,0,n.C5r)(5,pn,4,1,"ng-template",null,1,n.C5r)(7,Mn,4,1,"ng-template",null,2,n.C5r)),2&_&&(n.Y8G("ngIf",d.cvcVariantId&&n.bMT(1,2,d.variant$)),n.R7$(2),n.Y8G("ngIf",d.cvcCoordinates))},dependencies:[u.bT,u.T3,z.cK,m.JZ,m.rE,E.xA,E.gr,f.Di,v.Uq,v.e,g.a,G.Q,M.L9,x.f,$.r],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-tabs-tab-btn{padding-left:5px}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions .ant-descriptions-view{border-left:none;border-right:none}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions:first-child .ant-descriptions-view{border-top:none}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions:last-child .ant-descriptions-view{border-bottom:none}"]})}return t})()},7513:(R,O,a)=>{a.d(O,{m:()=>v});var h=a(177),C=a(5703),T=a(2e3),i=a(7054),n=a(8254),u=a(4917),z=a(7391),m=a(7529),E=a(9541),f=a(3953);let v=(()=>{class g{static#n=this.\u0275fac=function(x){return new(x||g)};static#t=this.\u0275mod=f.$C({type:g});static#e=this.\u0275inj=f.G2t({imports:[h.MD,C.Ti,E.hM,T.WF,z.kT,m.f3,u.i,i.L,n.V]})}return g})()},7481:(R,O,a)=>{a.d(O,{$:()=>L,u:()=>P});var h=a(4707),C=a(7336),T=a(177),i=a(3953),n=a(9417),u=a(1413),z=a(3726),m=a(6977),E=a(6042),f=a(7806),v=a(5930),g=a(5103),G=a(851),M=a(8203);const x=["switchElement"];function $(s,I){1&s&&i.nrm(0,"span",8)}function l(s,I){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const r=i.XpG(2);i.R7$(),i.JRh(r.nzCheckedChildren)}}function y(s,I){if(1&s&&(i.qex(0),i.DNE(1,l,2,1,"ng-container",9),i.bVm()),2&s){const r=i.XpG();i.R7$(),i.Y8G("nzStringTemplateOutlet",r.nzCheckedChildren)}}function S(s,I){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const r=i.XpG(2);i.R7$(),i.JRh(r.nzUnCheckedChildren)}}function F(s,I){if(1&s&&i.DNE(0,S,2,1,"ng-container",9),2&s){const r=i.XpG();i.Y8G("nzStringTemplateOutlet",r.nzUnCheckedChildren)}}let P=(()=>{class s{updateValue(r){this.isChecked!==r&&(this.isChecked=r,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(r,c,p,D,B,N){this.nzConfigService=r,this.host=c,this.ngZone=p,this.cdr=D,this.focusMonitor=B,this.directionality=N,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new u.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,m.Q)(this.destroy$)).subscribe(r=>{this.dir=r,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,z.R)(this.host.nativeElement,"click").pipe((0,m.Q)(this.destroy$)).subscribe(r=>{r.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,z.R)(this.switchElement.nativeElement,"keydown").pipe((0,m.Q)(this.destroy$)).subscribe(r=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:c}=r;c!==C.UQ&&c!==C.LE&&c!==C.t6&&c!==C.Fm||(r.preventDefault(),this.ngZone.run(()=>{c===C.UQ?this.updateValue(!1):c===C.LE?this.updateValue(!0):(c===C.t6||c===C.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,m.Q)(this.destroy$)).subscribe(r=>{r||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(r){this.isChecked=r,this.cdr.markForCheck()}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||r,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#n=this.\u0275fac=function(c){return new(c||s)(i.rXU(E.yx),i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(i.gRc),i.rXU(G.FN),i.rXU(M.dS,8))};static#t=this.\u0275cmp=i.VBU({type:s,selectors:[["nz-switch"]],viewQuery:function(c,p){if(1&c&&i.GBs(x,7),2&c){let D;i.mGM(D=i.lsd())&&(p.switchElement=D.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",i.L39],nzDisabled:[2,"nzDisabled","nzDisabled",i.L39],nzControl:[2,"nzControl","nzControl",i.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[i.Jv_([{provide:n.kq,useExisting:(0,i.Rfq)(()=>s),multi:!0}]),i.GFd,i.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(c,p){if(1&c&&(i.j41(0,"button",2,0)(2,"span",3),i.DNE(3,$,1,0,"span",4),i.k0s(),i.j41(4,"span",5),i.DNE(5,y,2,1,"ng-container",6)(6,F,1,1,"ng-template",null,1,i.C5r),i.k0s(),i.nrm(8,"div",7),i.k0s()),2&c){const D=i.sdS(7);i.AVh("ant-switch-checked",p.isChecked)("ant-switch-loading",p.nzLoading)("ant-switch-disabled",p.nzDisabled)("ant-switch-small","small"===p.nzSize)("ant-switch-rtl","rtl"===p.dir),i.Y8G("disabled",p.nzDisabled)("nzWaveExtraNode",!0),i.BMQ("id",p.nzId),i.R7$(3),i.Y8G("ngIf",p.nzLoading),i.R7$(2),i.Y8G("ngIf",p.isChecked)("ngIfElse",D)}},dependencies:[v.o7,v.p,g.Y3,g.Dn,T.bT,f.C,f.m],encapsulation:2,changeDetection:0})}return(0,h.Cg)([(0,E.H4)()],s.prototype,"nzSize",void 0),s})(),L=(()=>{class s{static#n=this.\u0275fac=function(c){return new(c||s)};static#t=this.\u0275mod=i.$C({type:s});static#e=this.\u0275inj=i.G2t({imports:[P]})}return s})()}}]); \ No newline at end of file diff --git a/server/public/5627.603ab01f65c98827.js b/server/public/5627.81a39cf55446ab02.js similarity index 58% rename from server/public/5627.603ab01f65c98827.js rename to server/public/5627.81a39cf55446ab02.js index 2c801f210..6cf6987e5 100644 --- a/server/public/5627.603ab01f65c98827.js +++ b/server/public/5627.81a39cf55446ab02.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5627],{6936:(T,v,t)=>{t.d(v,{G:()=>M});var l=t(177),s=t(1188),u=t(5699),n=t(1236),C=t(5103),h=t(4666),g=t(4917),z=t(3146),p=t(4994),c=t(3953);let M=(()=>{class m{static#t=this.\u0275fac=function(O){return new(O||m)};static#n=this.\u0275mod=c.$C({type:m});static#e=this.\u0275inj=c.G2t({imports:[l.MD,s.iI,z.W2,u.T,n.MC,C.Y3,h.v,g.i,p.a]})}return m})()},8920:(T,v,t)=>{t.d(v,{U:()=>e});var l=t(177),s=t(1188),u=t(5699),n=t(5103),C=t(7529),h=t(7054),g=t(2e3),z=t(5703),p=t(3357),c=t(3953);let M=(()=>{class d{static#t=this.\u0275fac=function(P){return new(P||d)};static#n=this.\u0275mod=c.$C({type:d});static#e=this.\u0275inj=c.G2t({imports:[l.MD,z.Ti,C.f3,g.WF,h.L,p.P]})}return d})();var m=t(1236);let e=(()=>{class d{static#t=this.\u0275fac=function(P){return new(P||d)};static#n=this.\u0275mod=c.$C({type:d});static#e=this.\u0275inj=c.G2t({imports:[l.MD,s.iI,u.T,n.Y3,m.MC,M]})}return d})()},9374:(T,v,t)=>{t.d(v,{r:()=>e});var l=t(177),s=t(2142),u=t(5699),n=t(1236),C=t(9192),h=t(8920),g=t(7051),z=t(9802),p=t(5493),c=t(6912),M=t(7086),m=t(3953);let e=(()=>{class d{static#t=this.\u0275fac=function(P){return new(P||d)};static#n=this.\u0275mod=m.$C({type:d});static#e=this.\u0275inj=m.G2t({imports:[l.MD,u.T,n.MC,s.x,z._,C.J,h.U,c.l,g.U,p.G,M.C]})}return d})()},5493:(T,v,t)=>{t.d(v,{G:()=>m});var l=t(177),s=t(1188),u=t(5699),n=t(5703),C=t(7054),h=t(2e3),g=t(5103),z=t(4917),p=t(3953);let c=(()=>{class e{static#t=this.\u0275fac=function(_){return new(_||e)};static#n=this.\u0275mod=p.$C({type:e});static#e=this.\u0275inj=p.G2t({imports:[l.MD,g.Y3,n.Ti,h.WF,z.i,C.L]})}return e})();var M=t(1236);let m=(()=>{class e{static#t=this.\u0275fac=function(_){return new(_||e)};static#n=this.\u0275mod=p.$C({type:e});static#e=this.\u0275inj=p.G2t({imports:[l.MD,s.iI,g.Y3,u.T,M.MC,c]})}return e})()},7292:(T,v,t)=>{t.d(v,{H:()=>u});var s=t(3953);let u=(()=>{class n{transform(h,g="display-string"){return void 0===h?"":"display-string"===g?function l(n){switch(n){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return n}}(h):`civic-${h.replace(/_/g,"").toLowerCase()}`}static#t=this.\u0275fac=function(g){return new(g||n)};static#n=this.\u0275pipe=s.EJ8({name:"therapyInteractionEnumDisplay",type:n,pure:!0})}return n})()},4414:(T,v,t)=>{t.r(v),t.d(v,{EvidenceModule:()=>N});var l=t(177),s=t(1188),u=t(4124),n=t(3062),C=t(7529),h=t(5103),g=t(4531),z=t(7481),p=t(513),c=t(7685),M=t(7391),m=t(4917),e=t(3953);let d=(()=>{class i{static#t=this.\u0275fac=function(f){return new(f||i)};static#n=this.\u0275mod=e.$C({type:i});static#e=this.\u0275inj=e.G2t({imports:[l.MD,s.iI,p.Zw,z.$,n.ZJ,C.f3,h.Y3,c.pc,M.kT,m.i,u.C,g.C]})}return i})();var O=t(1305),_=t(1774),P=t(6389),R=t(5930),x=t(9765),A=t(8199),B=t(3075);function L(i,U){1&i&&(e.j41(0,"button",15),e.nrm(1,"i",16),e.EFF(2," Submit New Evidence "),e.k0s())}function F(i,U){if(1&i&&(e.qex(0),e.DNE(1,L,3,0,"button",14),e.bVm()),2&i){const D=U.ngrxLet;e.R7$(),e.Y8G("ngIf",D.signedIn)}}function o(i,U){if(1&i&&e.DNE(0,F,2,1,"ng-container",13),2&i){const D=e.XpG();e.Y8G("ngrxLet",D.viewer$)}}function I(i,U){1&i&&(e.j41(0,"a",17),e.nrm(1,"i",18),e.EFF(2," View Evidence Model Docs "),e.k0s())}function a(i,U){1&i&&(e.j41(0,"a",19),e.nrm(1,"i",18),e.EFF(2," View Evidence Curation Docs "),e.k0s())}function r(i,U){1&i&&(e.j41(0,"nz-row")(1,"div",20)(2,"div",21),e.nrm(3,"cvc-evidence-table",22),e.k0s()()()),2&i&&(e.R7$(),e.Y8G("nzSpan",24))}const S=[{path:"",component:(()=>{class i{constructor(){}static#t=this.\u0275fac=function(f){return new(f||i)};static#n=this.\u0275cmp=e.VBU({type:i,selectors:[["app-evidence"]],decls:1,vars:0,template:function(f,K){1&f&&e.nrm(0,"router-outlet")},dependencies:[s.n3],encapsulation:2})}return i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(D){this.viewerService=D,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(f){return new(f||i)(e.rXU(O.q))};static#n=this.\u0275cmp=e.VBU({type:i,selectors:[["evidence-home"]],decls:19,vars:6,consts:[["evidenceActions",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[4,"ngIf"],[4,"ngrxLet"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Evidence"]],template:function(f,K){if(1&f&&(e.nrm(0,"cvc-section-navigation",1),e.DNE(1,o,1,1,"ng-template",null,0,e.C5r),e.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),e.nrm(7,"i",5),e.nI1(8,"entityColor"),e.k0s(),e.j41(9,"nz-col",6)(10,"h2"),e.EFF(11,"Evidence Items"),e.k0s(),e.j41(12,"p",7),e.EFF(13," The clinical evidence statement is a piece of information that has been manually curated from trustable medical literature about a variant or genomic \u2018event\u2019 that has implications in cancer predisposition, diagnosis (aka molecular classification), prognosis, or predictive response to therapy. "),e.k0s()(),e.j41(14,"nz-col",8)(15,"nz-space",9),e.DNE(16,I,3,0,"a",10)(17,a,3,0,"a",11),e.k0s()()(),e.DNE(18,r,4,1,"nz-row",12),e.k0s()()),2&f){const G=e.sdS(2);e.Y8G("actionsTpl",G),e.R7$(7),e.Y8G("nzTwotoneColor",e.bMT(8,4,"EvidenceItem")),e.R7$(5),e.Y8G("nzEllipsisRows",2),e.R7$(6),e.Y8G("ngIf",K.tableView)}},dependencies:[l.bT,s.Wk,_.Nj,p.aO,P.c,R.p,n.WB,n.zR,C.Uq,C.e,h.Dn,c.U5,c.Dq,M.Di,x.n,A.N,B.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(5615),t.e(2076),t.e(3118)]).then(t.bind(t,3118)).then(i=>i.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(3967),t.e(1110),t.e(6508),t.e(6161),t.e(4514),t.e(3236),t.e(326),t.e(262),t.e(5384),t.e(394),t.e(2076),t.e(6024)]).then(t.bind(t,8345)).then(i=>i.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(2076),t.e(5827)]).then(t.bind(t,5709)).then(i=>i.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let W=(()=>{class i{static#t=this.\u0275fac=function(f){return new(f||i)};static#n=this.\u0275mod=e.$C({type:i});static#e=this.\u0275inj=e.G2t({imports:[s.iI.forChild(S),d,s.iI]})}return i})(),N=(()=>{class i{static#t=this.\u0275fac=function(f){return new(f||i)};static#n=this.\u0275mod=e.$C({type:i});static#e=this.\u0275inj=e.G2t({imports:[l.MD,W]})}return i})()},7481:(T,v,t)=>{t.d(v,{$:()=>F,u:()=>L});var l=t(4707),s=t(7336),u=t(177),n=t(3953),C=t(9417),h=t(1413),g=t(3726),z=t(6977),p=t(6042),c=t(7806),M=t(5930),m=t(5103),e=t(851),d=t(8203);const O=["switchElement"];function _(o,I){1&o&&n.nrm(0,"span",8)}function P(o,I){if(1&o&&(n.qex(0),n.EFF(1),n.bVm()),2&o){const a=n.XpG(2);n.R7$(),n.JRh(a.nzCheckedChildren)}}function R(o,I){if(1&o&&(n.qex(0),n.DNE(1,P,2,1,"ng-container",9),n.bVm()),2&o){const a=n.XpG();n.R7$(),n.Y8G("nzStringTemplateOutlet",a.nzCheckedChildren)}}function x(o,I){if(1&o&&(n.qex(0),n.EFF(1),n.bVm()),2&o){const a=n.XpG(2);n.R7$(),n.JRh(a.nzUnCheckedChildren)}}function A(o,I){if(1&o&&n.DNE(0,x,2,1,"ng-container",9),2&o){const a=n.XpG();n.Y8G("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let L=(()=>{class o{updateValue(a){this.isChecked!==a&&(this.isChecked=a,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(a,r,E,y,S,W){this.nzConfigService=a,this.host=r,this.ngZone=E,this.cdr=y,this.focusMonitor=S,this.directionality=W,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new h.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,z.Q)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.host.nativeElement,"click").pipe((0,z.Q)(this.destroy$)).subscribe(a=>{a.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,g.R)(this.switchElement.nativeElement,"keydown").pipe((0,z.Q)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:r}=a;r!==s.UQ&&r!==s.LE&&r!==s.t6&&r!==s.Fm||(a.preventDefault(),this.ngZone.run(()=>{r===s.UQ?this.updateValue(!1):r===s.LE?this.updateValue(!0):(r===s.t6||r===s.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,z.Q)(this.destroy$)).subscribe(a=>{a||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(a){this.isChecked=a,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(r){return new(r||o)(n.rXU(p.yx),n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(n.gRc),n.rXU(e.FN),n.rXU(d.dS,8))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-switch"]],viewQuery:function(r,E){if(1&r&&n.GBs(O,7),2&r){let y;n.mGM(y=n.lsd())&&(E.switchElement=y.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",n.L39],nzDisabled:[2,"nzDisabled","nzDisabled",n.L39],nzControl:[2,"nzControl","nzControl",n.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[n.Jv_([{provide:C.kq,useExisting:(0,n.Rfq)(()=>o),multi:!0}]),n.GFd,n.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(r,E){if(1&r&&(n.j41(0,"button",2,0)(2,"span",3),n.DNE(3,_,1,0,"span",4),n.k0s(),n.j41(4,"span",5),n.DNE(5,R,2,1,"ng-container",6)(6,A,1,1,"ng-template",null,1,n.C5r),n.k0s(),n.nrm(8,"div",7),n.k0s()),2&r){const y=n.sdS(7);n.AVh("ant-switch-checked",E.isChecked)("ant-switch-loading",E.nzLoading)("ant-switch-disabled",E.nzDisabled)("ant-switch-small","small"===E.nzSize)("ant-switch-rtl","rtl"===E.dir),n.Y8G("disabled",E.nzDisabled)("nzWaveExtraNode",!0),n.BMQ("id",E.nzId),n.R7$(3),n.Y8G("ngIf",E.nzLoading),n.R7$(2),n.Y8G("ngIf",E.isChecked)("ngIfElse",y)}},dependencies:[M.o7,M.p,m.Y3,m.Dn,u.bT,c.C,c.m],encapsulation:2,changeDetection:0})}return(0,l.Cg)([(0,p.H4)()],o.prototype,"nzSize",void 0),o})(),F=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[L]})}return o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5627],{6936:(T,v,t)=>{t.d(v,{G:()=>M});var l=t(177),s=t(1188),u=t(5699),n=t(1236),C=t(5103),h=t(4666),g=t(4917),z=t(3146),p=t(4994),c=t(3953);let M=(()=>{class m{static#t=this.\u0275fac=function(O){return new(O||m)};static#n=this.\u0275mod=c.$C({type:m});static#e=this.\u0275inj=c.G2t({imports:[l.MD,s.iI,z.W2,u.T,n.MC,C.Y3,h.v,g.i,p.a]})}return m})()},8920:(T,v,t)=>{t.d(v,{U:()=>e});var l=t(177),s=t(1188),u=t(5699),n=t(5103),C=t(7529),h=t(7054),g=t(2e3),z=t(5703),p=t(3357),c=t(3953);let M=(()=>{class d{static#t=this.\u0275fac=function(P){return new(P||d)};static#n=this.\u0275mod=c.$C({type:d});static#e=this.\u0275inj=c.G2t({imports:[l.MD,z.Ti,C.f3,g.WF,h.L,p.P]})}return d})();var m=t(1236);let e=(()=>{class d{static#t=this.\u0275fac=function(P){return new(P||d)};static#n=this.\u0275mod=c.$C({type:d});static#e=this.\u0275inj=c.G2t({imports:[l.MD,s.iI,u.T,n.Y3,m.MC,M]})}return d})()},9374:(T,v,t)=>{t.d(v,{r:()=>e});var l=t(177),s=t(2142),u=t(5699),n=t(1236),C=t(9192),h=t(8920),g=t(7051),z=t(9802),p=t(5493),c=t(6912),M=t(7086),m=t(3953);let e=(()=>{class d{static#t=this.\u0275fac=function(P){return new(P||d)};static#n=this.\u0275mod=m.$C({type:d});static#e=this.\u0275inj=m.G2t({imports:[l.MD,u.T,n.MC,s.x,z._,C.J,h.U,c.l,g.U,p.G,M.C]})}return d})()},5493:(T,v,t)=>{t.d(v,{G:()=>m});var l=t(177),s=t(1188),u=t(5699),n=t(5703),C=t(7054),h=t(2e3),g=t(5103),z=t(4917),p=t(3953);let c=(()=>{class e{static#t=this.\u0275fac=function(D){return new(D||e)};static#n=this.\u0275mod=p.$C({type:e});static#e=this.\u0275inj=p.G2t({imports:[l.MD,g.Y3,n.Ti,h.WF,z.i,C.L]})}return e})();var M=t(1236);let m=(()=>{class e{static#t=this.\u0275fac=function(D){return new(D||e)};static#n=this.\u0275mod=p.$C({type:e});static#e=this.\u0275inj=p.G2t({imports:[l.MD,s.iI,g.Y3,u.T,M.MC,c]})}return e})()},7292:(T,v,t)=>{t.d(v,{H:()=>u});var s=t(3953);let u=(()=>{class n{transform(h,g="display-string"){return void 0===h?"":"display-string"===g?function l(n){switch(n){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return n}}(h):`civic-${h.replace(/_/g,"").toLowerCase()}`}static#t=this.\u0275fac=function(g){return new(g||n)};static#n=this.\u0275pipe=s.EJ8({name:"therapyInteractionEnumDisplay",type:n,pure:!0})}return n})()},4414:(T,v,t)=>{t.r(v),t.d(v,{EvidenceModule:()=>N});var l=t(177),s=t(1188),u=t(4124),n=t(3062),C=t(7529),h=t(5103),g=t(4531),z=t(7481),p=t(513),c=t(7685),M=t(7391),m=t(4917),e=t(3953);let d=(()=>{class i{static#t=this.\u0275fac=function(f){return new(f||i)};static#n=this.\u0275mod=e.$C({type:i});static#e=this.\u0275inj=e.G2t({imports:[l.MD,s.iI,p.Zw,z.$,n.ZJ,C.f3,h.Y3,c.pc,M.kT,m.i,u.C,g.C]})}return i})();var O=t(1305),D=t(1774),P=t(6389),R=t(5930),x=t(9765),A=t(8199),B=t(3075);function L(i,U){1&i&&(e.j41(0,"button",15),e.nrm(1,"i",16),e.EFF(2," Submit New Evidence "),e.k0s())}function F(i,U){if(1&i&&(e.qex(0),e.DNE(1,L,3,0,"button",14),e.bVm()),2&i){const _=U.ngrxLet;e.R7$(),e.Y8G("ngIf",_.signedIn)}}function o(i,U){if(1&i&&e.DNE(0,F,2,1,"ng-container",13),2&i){const _=e.XpG();e.Y8G("ngrxLet",_.viewer$)}}function I(i,U){1&i&&(e.j41(0,"a",17),e.nrm(1,"i",18),e.EFF(2," View Evidence Model Docs "),e.k0s())}function a(i,U){1&i&&(e.j41(0,"a",19),e.nrm(1,"i",18),e.EFF(2," View Evidence Curation Docs "),e.k0s())}function r(i,U){1&i&&(e.j41(0,"nz-row")(1,"div",20)(2,"div",21),e.nrm(3,"cvc-evidence-table",22),e.k0s()()()),2&i&&(e.R7$(),e.Y8G("nzSpan",24))}const S=[{path:"",component:(()=>{class i{constructor(){}static#t=this.\u0275fac=function(f){return new(f||i)};static#n=this.\u0275cmp=e.VBU({type:i,selectors:[["app-evidence"]],decls:1,vars:0,template:function(f,K){1&f&&e.nrm(0,"router-outlet")},dependencies:[s.n3],encapsulation:2})}return i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(_){this.viewerService=_,this.tableView=!0,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(f){return new(f||i)(e.rXU(O.q))};static#n=this.\u0275cmp=e.VBU({type:i,selectors:[["evidence-home"]],decls:19,vars:6,consts:[["evidenceActions",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[4,"ngIf"],[4,"ngrxLet"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/evidence.html","target","_blank","nzSize","small","nzBlock",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Evidence"]],template:function(f,K){if(1&f&&(e.nrm(0,"cvc-section-navigation",1),e.DNE(1,o,1,1,"ng-template",null,0,e.C5r),e.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),e.nrm(7,"i",5),e.nI1(8,"entityColor"),e.k0s(),e.j41(9,"nz-col",6)(10,"h2"),e.EFF(11,"Evidence Items"),e.k0s(),e.j41(12,"p",7),e.EFF(13," The clinical evidence statement is a piece of information that has been manually curated from trustable medical literature about a variant or genomic \u2018event\u2019 that has implications in cancer predisposition, diagnosis (aka molecular classification), prognosis, or predictive response to therapy. "),e.k0s()(),e.j41(14,"nz-col",8)(15,"nz-space",9),e.DNE(16,I,3,0,"a",10)(17,a,3,0,"a",11),e.k0s()()(),e.DNE(18,r,4,1,"nz-row",12),e.k0s()()),2&f){const G=e.sdS(2);e.Y8G("actionsTpl",G),e.R7$(7),e.Y8G("nzTwotoneColor",e.bMT(8,4,"EvidenceItem")),e.R7$(5),e.Y8G("nzEllipsisRows",2),e.R7$(6),e.Y8G("ngIf",K.tableView)}},dependencies:[l.bT,s.Wk,D.Nj,p.aO,P.c,R.p,n.WB,n.zR,C.Uq,C.e,h.Dn,c.U5,c.Dq,M.Di,x.n,A.N,B.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(5615),t.e(2076),t.e(3118)]).then(t.bind(t,3118)).then(i=>i.EvidenceAddModule),data:{breadcrumb:"Add"}},{path:":evidenceId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(3967),t.e(1110),t.e(6161),t.e(4514),t.e(8313),t.e(3236),t.e(262),t.e(5384),t.e(394),t.e(2076),t.e(6024)]).then(t.bind(t,8345)).then(i=>i.EvidenceDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(2076),t.e(5827)]).then(t.bind(t,5709)).then(i=>i.EvidenceReviseModule),data:{breadcrumb:"Revise"}}]}]}];let W=(()=>{class i{static#t=this.\u0275fac=function(f){return new(f||i)};static#n=this.\u0275mod=e.$C({type:i});static#e=this.\u0275inj=e.G2t({imports:[s.iI.forChild(S),d,s.iI]})}return i})(),N=(()=>{class i{static#t=this.\u0275fac=function(f){return new(f||i)};static#n=this.\u0275mod=e.$C({type:i});static#e=this.\u0275inj=e.G2t({imports:[l.MD,W]})}return i})()},7481:(T,v,t)=>{t.d(v,{$:()=>F,u:()=>L});var l=t(4707),s=t(7336),u=t(177),n=t(3953),C=t(9417),h=t(1413),g=t(3726),z=t(6977),p=t(6042),c=t(7806),M=t(5930),m=t(5103),e=t(851),d=t(8203);const O=["switchElement"];function D(o,I){1&o&&n.nrm(0,"span",8)}function P(o,I){if(1&o&&(n.qex(0),n.EFF(1),n.bVm()),2&o){const a=n.XpG(2);n.R7$(),n.JRh(a.nzCheckedChildren)}}function R(o,I){if(1&o&&(n.qex(0),n.DNE(1,P,2,1,"ng-container",9),n.bVm()),2&o){const a=n.XpG();n.R7$(),n.Y8G("nzStringTemplateOutlet",a.nzCheckedChildren)}}function x(o,I){if(1&o&&(n.qex(0),n.EFF(1),n.bVm()),2&o){const a=n.XpG(2);n.R7$(),n.JRh(a.nzUnCheckedChildren)}}function A(o,I){if(1&o&&n.DNE(0,x,2,1,"ng-container",9),2&o){const a=n.XpG();n.Y8G("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let L=(()=>{class o{updateValue(a){this.isChecked!==a&&(this.isChecked=a,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(a,r,E,y,S,W){this.nzConfigService=a,this.host=r,this.ngZone=E,this.cdr=y,this.focusMonitor=S,this.directionality=W,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new h.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,z.Q)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.host.nativeElement,"click").pipe((0,z.Q)(this.destroy$)).subscribe(a=>{a.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,g.R)(this.switchElement.nativeElement,"keydown").pipe((0,z.Q)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:r}=a;r!==s.UQ&&r!==s.LE&&r!==s.t6&&r!==s.Fm||(a.preventDefault(),this.ngZone.run(()=>{r===s.UQ?this.updateValue(!1):r===s.LE?this.updateValue(!0):(r===s.t6||r===s.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,z.Q)(this.destroy$)).subscribe(a=>{a||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(a){this.isChecked=a,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(r){return new(r||o)(n.rXU(p.yx),n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(n.gRc),n.rXU(e.FN),n.rXU(d.dS,8))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["nz-switch"]],viewQuery:function(r,E){if(1&r&&n.GBs(O,7),2&r){let y;n.mGM(y=n.lsd())&&(E.switchElement=y.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",n.L39],nzDisabled:[2,"nzDisabled","nzDisabled",n.L39],nzControl:[2,"nzControl","nzControl",n.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[n.Jv_([{provide:C.kq,useExisting:(0,n.Rfq)(()=>o),multi:!0}]),n.GFd,n.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(r,E){if(1&r&&(n.j41(0,"button",2,0)(2,"span",3),n.DNE(3,D,1,0,"span",4),n.k0s(),n.j41(4,"span",5),n.DNE(5,R,2,1,"ng-container",6)(6,A,1,1,"ng-template",null,1,n.C5r),n.k0s(),n.nrm(8,"div",7),n.k0s()),2&r){const y=n.sdS(7);n.AVh("ant-switch-checked",E.isChecked)("ant-switch-loading",E.nzLoading)("ant-switch-disabled",E.nzDisabled)("ant-switch-small","small"===E.nzSize)("ant-switch-rtl","rtl"===E.dir),n.Y8G("disabled",E.nzDisabled)("nzWaveExtraNode",!0),n.BMQ("id",E.nzId),n.R7$(3),n.Y8G("ngIf",E.nzLoading),n.R7$(2),n.Y8G("ngIf",E.isChecked)("ngIfElse",y)}},dependencies:[M.o7,M.p,m.Y3,m.Dn,u.bT,c.C,c.m],encapsulation:2,changeDetection:0})}return(0,l.Cg)([(0,p.H4)()],o.prototype,"nzSize",void 0),o})(),F=(()=>{class o{static#t=this.\u0275fac=function(r){return new(r||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[L]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/5813.2754cd76fca31059.js b/server/public/5813.2754cd76fca31059.js deleted file mode 100644 index 86a99c1ab..000000000 --- a/server/public/5813.2754cd76fca31059.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5813],{9045:(R,T,e)=>{e.d(T,{J:()=>S});var r=e(6514),d=e(505),i=e(3953),a=e(177),z=e(1188),y=e(5699),M=e(1236),C=e(5103),t=e(8011),v=e(2387),G=e(3075);const l=(_,p,g)=>({rejected:_,submitted:p,accepted:g});function f(_,p){}function u(_,p){if(1&_&&(i.qex(0),i.j41(1,"a",5),i.DNE(2,f,0,0,"ng-template",6),i.k0s(),i.bVm()),2&_){const g=i.XpG(),c=i.sdS(2);i.R7$(),i.Y8G("routerLink",g.evidence.link),i.R7$(),i.Y8G("ngTemplateOutlet",c)}}function b(_,p){}function V(_,p){if(1&_&&i.nrm(0,"cvc-evidence-popover",9),2&_){const g=i.XpG(3);i.Y8G("evidenceId",g.evidence.id)}}function x(_,p){if(1&_&&i.DNE(0,V,1,1,"cvc-evidence-popover",8),2&_){const g=i.XpG(2);i.Y8G("ngIf",g.enablePopover)}}function P(_,p){if(1&_&&(i.j41(0,"nz-tag",7),i.DNE(1,b,0,0,"ng-template",6),i.k0s(),i.DNE(2,x,1,1,"ng-template",null,3,i.C5r)),2&_){const g=i.sdS(3),c=i.XpG(),m=i.sdS(6);i.Y8G("ngClass",i.sMw(5,l,"REJECTED"===c.evidence.status,"SUBMITTED"===c.evidence.status,"ACCEPTED"===c.evidence.status))("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",g)("nzPopoverTrigger",c.enablePopover?"hover":null),i.R7$(),i.Y8G("ngTemplateOutlet",m)}}function L(_,p){}function U(_,p){if(1&_&&i.DNE(0,L,0,0,"ng-template",6),2&_){i.XpG();const g=i.sdS(2);i.Y8G("ngTemplateOutlet",g)}}function F(_,p){if(1&_&&(i.j41(0,"cvc-icon-badges",10),i.nrm(1,"i",11),i.nI1(2,"entityColor"),i.nI1(3,"entityColor"),i.k0s(),i.EFF(4)),2&_){const g=i.XpG();i.Y8G("flagged",g.evidence.flagged)("entityColor",g.iconColor),i.R7$(),i.Y8G("nzTwotoneColor","REJECTED"===g.evidence.status?i.bMT(2,4,"Rejected"):i.bMT(3,6,"EvidenceItem")),i.R7$(3),i.SpI(" ",g.evidence.name,"\n")}}let S=(()=>{class _ extends r.s{set evidence(g){if(!g)throw new Error("cvc-evidence-tag evidence input requires LinkableEvidence.");this._evidence=g}get evidence(){return this._evidence}constructor(){super(),this.linked=!0,this.enablePopover=!0,this.iconColor=(0,d.P)("EvidenceItem")}idFunction(){return this.evidence.id}static#t=this.\u0275fac=function(c){return new(c||_)};static#n=this.\u0275cmp=i.VBU({type:_,selectors:[["cvc-evidence-tag"]],inputs:{evidence:"evidence",linked:"linked",enablePopover:"enablePopover"},features:[i.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["evidencePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"evidenceId",4,"ngIf"],[3,"evidenceId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-evidence","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(c,m){if(1&c&&i.DNE(0,u,3,2,"ng-container",4)(1,P,4,9,"ng-template",null,0,i.C5r)(3,U,1,1,"ng-template",null,1,i.C5r)(5,F,5,8,"ng-template",null,2,i.C5r),2&c){const E=i.sdS(4);i.Y8G("ngIf",m.linked)("ngIfElse",E)}},dependencies:[a.YU,a.bT,a.T3,z.Wk,y.s,M.L_,C.Dn,t.S,v.N,G.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"]})}return _})()},6936:(R,T,e)=>{e.d(T,{G:()=>G});var r=e(177),d=e(1188),i=e(5699),a=e(1236),z=e(5103),y=e(4666),M=e(4917),C=e(3146),t=e(4994),v=e(3953);let G=(()=>{class l{static#t=this.\u0275fac=function(b){return new(b||l)};static#n=this.\u0275mod=v.$C({type:l});static#e=this.\u0275inj=v.G2t({imports:[r.MD,d.iI,C.W2,i.T,a.MC,z.Y3,y.v,M.i,t.a]})}return l})()},6719:(R,T,e)=>{e.d(T,{Q:()=>G});var r=e(3953),d=e(177),i=e(1672),a=e(5103);function z(l,f){if(1&l&&(r.j41(0,"span",5),r.EFF(1),r.k0s()),2&l){const u=r.XpG(2);r.R7$(),r.JRh(u.notification)}}function y(l,f){1&l&&r.EFF(0," Not specified ")}function M(l,f){if(1&l&&r.DNE(0,z,2,1,"span",4)(1,y,1,0,"ng-template",null,2,r.C5r),2&l){const u=r.sdS(2),b=r.XpG();r.Y8G("ngIf",b.notification)("ngIfElse",u)}}function C(l,f){if(1&l&&(r.j41(0,"a",6),r.nrm(1,"i",7),r.k0s()),2&l){const u=r.XpG(2);r.Y8G("href",u.reviseFormPath,r.B4B)}}function t(l,f){1&l&&r.nrm(0,"i",7)}function v(l,f){if(1&l&&r.DNE(0,C,2,1,"a",6)(1,t,1,0,"i",7),2&l){const u=r.XpG();r.vxM(u.reviseFormPath?0:1)}}let G=(()=>{class l{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(b){return new(b||l)};static#n=this.\u0275cmp=r.VBU({type:l,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification",reviseFormPath:"reviseFormPath"},decls:5,vars:2,consts:[["notFound",""],["notFoundImg",""],["defaultNotification",""],[3,"nzNotFoundContent","nzNotFoundImage"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["target","_blank",3,"href"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(b,V){if(1&b&&(r.nrm(0,"nz-empty",3),r.DNE(1,M,3,2,"ng-template",null,0,r.C5r)(3,v,2,1,"ng-template",null,1,r.C5r)),2&b){const x=r.sdS(2),P=r.sdS(4);r.Y8G("nzNotFoundContent",x)("nzNotFoundImage",P)}},dependencies:[d.bT,i.RW,a.Dn],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]})}return l})()},8254:(R,T,e)=>{e.d(T,{V:()=>z});var r=e(177),d=e(1672),i=e(5103),a=e(3953);let z=(()=>{class y{static#t=this.\u0275fac=function(t){return new(t||y)};static#n=this.\u0275mod=a.$C({type:y});static#e=this.\u0275inj=a.G2t({imports:[r.MD,d._v,i.Y3]})}return y})()},5128:(R,T,e)=>{e.d(T,{K:()=>t});var r=e(177),d=e(8524),i=e(3953),a=e(9417),z=e(1011);const M={name:"comment-textarea",component:(()=>{class v extends d.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(l,f)=>`Comments must be at least ${f.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let l;return function(u){return(l||(l=i.xGo(v)))(u||v)}})();static#n=this.\u0275cmp=i.VBU({type:v,selectors:[["comment-textarea-type"]],features:[i.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(f,u){1&f&&i.nrm(0,"textarea",0),2&f&&i.Y8G("formControl",u.formControl)("formlyAttributes",u.field)},dependencies:[a.me,a.BC,a.l_,d.ch,z.Sy],encapsulation:2,changeDetection:0})}return v})(),wrappers:["form-field"]};var C=e(8927);let t=(()=>{class v{static#t=this.\u0275fac=function(f){return new(f||v)};static#n=this.\u0275mod=i.$C({type:v});static#e=this.\u0275inj=i.G2t({imports:[r.MD,a.X1,d.qy.forChild({types:[M]}),C.PQ,z.j]})}return v})()},5791:(R,T,e)=>{e.r(T),e.d(T,{VariantGroupsDetailModule:()=>Xt});var r=e(177),d=e(1188),i=e(1413),a=e(4412),z=e(9145),y=e(9172),M=e(6977),C=e(4608),t=e(3953),v=e(1305),G=e(1774),l=e(5103),f=e(7529),u=e(3062),b=e(513),V=e(6389),x=e(5930),P=e(7685),L=e(8821),U=e(7428),F=e(9765),S=e(5269),_=e(9945),p=e(6269),g=e(3075);const c=n=>["/variant-groups",n,"revise"];function m(n,h){if(1&n&&(t.j41(0,"button",15,1),t.EFF(2," Revise "),t.k0s()),2&n){const o=t.sdS(1),s=t.XpG(4).ngIf;t.Y8G("routerLink",t.eq3(2,c,s.id))("nzType",o.isActive?"primary":"default")}}function E(n,h){if(1&n&&(t.j41(0,"span"),t.DNE(1,m,3,4,"button",14),t.k0s()),2&n){const o=t.XpG().ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function O(n,h){if(1&n&&(t.j41(0,"button",17,1),t.EFF(2," Flag "),t.k0s()),2&n){const o=t.sdS(1);t.Y8G("nzType",o.isActive?"primary":"default")}}function B(n,h){if(1&n&&(t.j41(0,"span"),t.DNE(1,O,3,1,"button",16),t.k0s()),2&n){const o=t.XpG().ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function A(n,h){if(1&n&&t.nrm(0,"cvc-entity-subscription-button",19),2&n){const o=t.XpG(2).ngrxLet,s=t.XpG(3);t.Y8G("viewer",o)("subscribableId",s.subscribable.id)}}function W(n,h){if(1&n&&(t.j41(0,"span"),t.DNE(1,A,1,2,"cvc-entity-subscription-button",18),t.k0s()),2&n){const o=t.XpG().ngrxLet,s=t.XpG(3);t.R7$(),t.Y8G("ngIf",o.signedIn&&s.subscribable)}}function K(n,h){1&n&&(t.j41(0,"nz-space",12),t.DNE(1,E,2,1,"span",13)(2,B,2,1,"span",13)(3,W,2,1,"span",13),t.k0s())}function w(n,h){if(1&n&&(t.j41(0,"nz-page-header-extra"),t.DNE(1,K,4,0,"nz-space",11),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.Y8G("ngrxLet",o.viewer$)}}function k(n,h){if(1&n&&(t.j41(0,"nz-col",20),t.nrm(1,"cvc-contributor-avatars",21),t.k0s()),2&n){const o=t.XpG(2);t.R7$(),t.Y8G("subscribable",o.subscribable)}}function Q(n,h){if(1&n&&(t.qex(0),t.nrm(1,"cvc-section-navigation",3),t.j41(2,"div",4),t.nI1(3,"ngrxPush"),t.j41(4,"nz-page-header",5)(5,"nz-page-header-title",6),t.nrm(6,"i",7),t.nI1(7,"entityColor"),t.EFF(8),t.k0s(),t.DNE(9,w,2,1,"nz-page-header-extra",8),t.j41(10,"nz-page-header-content")(11,"cvc-tab-navigation",9),t.nI1(12,"ngrxPush"),t.DNE(13,k,2,1,"ng-template",null,0,t.C5r),t.k0s(),t.j41(15,"div",10),t.nrm(16,"router-outlet"),t.k0s()()()(),t.bVm()),2&n){const o=h.ngIf,s=t.XpG();t.R7$(),t.Y8G("displayName",o.name),t.R7$(),t.Y8G("flags",t.bMT(3,6,s.flagsTotal$)),t.R7$(4),t.Y8G("nzTwotoneColor",t.bMT(7,8,"VariantGroup")),t.R7$(2),t.SpI(" ",o.name," "),t.R7$(),t.Y8G("ngrxLet",s.viewer$),t.R7$(2),t.Y8G("tabs",t.bMT(12,10,s.tabs$))}}let J=(()=>{class n{constructor(o,s,D){this.gql=o,this.viewerService=s,this.route=D,this.destroy$=new i.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"}],this.viewer$=this.viewerService.viewer$,this.tabs$=new a.t(this.defaultTabs),this.routeSub=this.route.params.subscribe($=>{let j=this.gql.watch({variantGroupId:+$.variantGroupId}).valueChanges;this.loading$=j.pipe((0,C.E)("loading"),(0,y.Z)(!0)),this.variantGroup$=j.pipe((0,C.E)("data","variantGroup")),this.flagsTotal$=this.variantGroup$.pipe((0,C.E)("flags","totalCount")),this.variantGroup$.pipe((0,M.Q)(this.destroy$)).subscribe({next:N=>{this.tabs$.next(this.defaultTabs.map(I=>"Revisions"===I.tabLabel?{badgeCount:N?.revisions.totalCount,...I}:"Comments"===I.tabLabel?{badgeCount:N?.comments.totalCount,badgeColor:"#cccccc",...I}:I))}}),this.subscribable={id:+$.variantGroupId,entityType:z.V9U.VariantGroup}})}ngOnInit(){}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(z.IbX),t.rXU(v.q),t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-detail"]],decls:2,vars:3,consts:[["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],[4,"ngrxLet"],[3,"tabs"],[1,"content"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","Variant",3,"viewer","subscribableId",4,"ngIf"],["typename","Variant",3,"viewer","subscribableId"],["id","contributors-col"],[3,"subscribable"]],template:function(s,D){1&s&&(t.DNE(0,Q,17,12,"ng-container",2),t.nI1(1,"async")),2&s&&t.Y8G("ngIf",t.bMT(1,1,D.variantGroup$))},dependencies:[r.bT,G.Nj,d.n3,d.Wk,d.wQ,l.Dn,f.Uq,u.WB,u.k9,u.zR,u.ov,b.aO,V.c,x.p,P.U5,P.Dq,L.H,U.v,F.n,S.o,_.N,p.f,r.Jj,G.L9,g.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var Z=e(4873);let H=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,Z.A]})}return n})();var q=e(664);function tt(n,h){if(1&n&&t.nrm(0,"cvc-comment-list",1),2&n){const o=t.XpG();t.Y8G("commentable",o.commentable)}}let nt=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.commentable={entityType:z.T31.VariantGroup,id:+s.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-comments"]],decls:1,vars:1,consts:[[3,"commentable",4,"ngIf"],[3,"commentable"]],template:function(s,D){1&s&&t.DNE(0,tt,1,1,"cvc-comment-list",0),2&s&&t.Y8G("ngIf",D.commentable)},dependencies:[r.bT,q.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var et=e(7268);let at=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,et.G]})}return n})();var it=e(4097);function ot(n,h){if(1&n&&t.nrm(0,"cvc-flag-list-and-filter",1),2&n){const o=t.XpG();t.Y8G("flaggable",o.flaggable)}}let st=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.flaggable={entityType:z.lD4.VariantGroup,id:+s.variantGroupId}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-flags"]],decls:1,vars:1,consts:[[3,"flaggable",4,"ngIf"],[3,"flaggable"]],template:function(s,D){1&s&&t.DNE(0,ot,1,1,"cvc-flag-list-and-filter",0),2&s&&t.Y8G("ngIf",D.flaggable)},dependencies:[r.bT,it.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var rt=e(6371);let ct=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,rt.O]})}return n})();var lt=e(4055);let pt=(()=>{class n{constructor(o){this.route=o,this.routeSub=this.route.params.subscribe(s=>{this.subject={id:+s.variantGroupId,entityType:z.BlQ.VariantGroup}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(s,D){1&s&&t.nrm(0,"cvc-revisions-list-and-filter",0),2&s&&t.Y8G("moderated",D.subject)},dependencies:[lt.B],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Y=e(2e3),dt=e(8254),_t=e(9271),X=e(7391),gt=e(2142),mt=e(1209);let ut=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,P.pc,f.f3,Y.WF,X.kT,dt.V,_t.l,gt.x,mt.k]})}return n})();var ht=e(6354),vt=e(6719),ft=e(3640),zt=e(7855),Ct=e(9062);function Et(n,h){if(1&n&&(t.j41(0,"p",12),t.EFF(1),t.k0s()),2&n){const o=t.XpG(3).ngIf;t.Y8G("nzEllipsisRows",14),t.R7$(),t.SpI(" ",o.description," ")}}function yt(n,h){1&n&&t.nrm(0,"cvc-empty-revisable",13)}function bt(n,h){if(1&n&&(t.j41(0,"nz-descriptions",9)(1,"nz-descriptions-item",10),t.DNE(2,Et,2,2,"p",11)(3,yt,1,0,"ng-template",null,0,t.C5r),t.k0s()()),2&n){const o=t.sdS(4),s=t.XpG(2).ngIf;t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("ngIf",s.description)("ngIfElse",o)}}function Dt(n,h){1&n&&t.nrm(0,"cvc-source-tag",17),2&n&&t.Y8G("source",h.$implicit)}function Tt(n,h){if(1&n&&(t.qex(0),t.j41(1,"cvc-tag-list"),t.DNE(2,Dt,1,1,"cvc-source-tag",16),t.k0s(),t.bVm()),2&n){const o=t.XpG(3).ngIf;t.R7$(2),t.Y8G("ngForOf",o.sources)}}function Gt(n,h){1&n&&(t.j41(0,"span",18),t.EFF(1,"None specified"),t.k0s())}function Mt(n,h){if(1&n&&(t.j41(0,"nz-descriptions",9)(1,"nz-descriptions-item",14),t.DNE(2,Tt,3,1,"ng-container",15)(3,Gt,2,0,"ng-template",null,1,t.C5r),t.k0s()()),2&n){const o=t.sdS(4),s=t.XpG(2).ngIf;t.Y8G("nzColumn",1),t.R7$(2),t.Y8G("ngIf",s.sources.length>0)("ngIfElse",o)}}function Pt(n,h){1&n&&(t.j41(0,"nz-row",5)(1,"nz-col",6)(2,"nz-space",7),t.DNE(3,bt,5,3,"nz-descriptions",8),t.k0s()(),t.j41(4,"nz-col",6)(5,"nz-space",7),t.DNE(6,Mt,5,3,"nz-descriptions",8),t.k0s()()()),2&n&&t.Y8G("nzGutter",16)}function Ot(n,h){if(1&n&&(t.qex(0),t.nrm(1,"cvc-variants-table",21),t.bVm()),2&n){const o=h.ngrxLet;t.R7$(),t.Mz_("cvcTitle","Variants in Variant Group ",null==o?null:o.name,""),t.Y8G("variantGroupId",null==o?null:o.id)}}function xt(n,h){if(1&n&&(t.j41(0,"nz-row",5)(1,"nz-col",19),t.DNE(2,Ot,2,3,"ng-container",20),t.k0s()()),2&n){const o=t.XpG(2);t.Y8G("nzGutter",16),t.R7$(),t.Y8G("nzSpan",24),t.R7$(),t.Y8G("ngrxLet",o.variantGroup$)}}function It(n,h){1&n&&(t.j41(0,"nz-space",3),t.DNE(1,Pt,7,1,"nz-row",4)(2,xt,3,3,"nz-row",4),t.k0s())}let Rt=(()=>{class n{constructor(o,s,D){this.gql=o,this.viewerService=s,this.route=D,this.routeSub=this.route.params.subscribe($=>{this.viewer$=this.viewerService.viewer$;let N=this.gql.watch({variantGroupId:+$.variantGroupId}).valueChanges;this.subscribableEntity={id:+$.variantGroupId,entityType:z.V9U.VariantGroup},this.variantGroup$=N.pipe((0,C.E)("data","variantGroup")),this.loading$=N.pipe((0,C.E)("loading")),this.myVariantGroupInfo$=this.variantGroup$.pipe((0,C.E)("myVariantGroupInfoDetails"),(0,ht.T)(I=>JSON.parse(String(I))))})}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(z.sAe),t.rXU(v.q),t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-summary"]],decls:2,vars:3,consts:[["noDescription",""],["noSources",""],["nzSize","middle","nzDirection","vertical","class","space-align-block",4,"ngIf"],["nzSize","middle","nzDirection","vertical",1,"space-align-block"],[3,"nzGutter",4,"nzSpaceItem"],[3,"nzGutter"],["nzSpan","12"],["nzDirection","vertical"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],["nz-typography","","nzType","secondary"],[3,"nzSpan"],[4,"ngrxLet"],[3,"variantGroupId","cvcTitle"]],template:function(s,D){1&s&&(t.DNE(0,It,3,0,"nz-space",2),t.nI1(1,"ngrxPush")),2&s&&t.Y8G("ngIf",t.bMT(1,1,D.variantGroup$))},dependencies:[r.Sq,r.bT,G.Nj,P.U5,P.Dq,f.Uq,f.e,Y.xA,Y.gr,X.Di,vt.Q,ft.k,zt.M,Ct.D,G.L9],styles:["[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return n})();var Vt=e(326);let St=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,Vt.p]})}return n})();var Lt=e(9543);const Ut=[{path:"",component:J,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Rt,data:{breadcrumb:"Summary"}},{path:"comments",component:nt,data:{breadcrumb:"Comments"}},{path:"revisions",component:pt,data:{breadcrumb:"Revisions"}},{path:"flags",component:st,data:{breadcrumb:"Flags"}},{path:"events",component:(()=>{class n{constructor(o){this.route=o,this.subscribable={id:+this.route.snapshot.params.variantGroupId,entityType:z.V9U.VariantGroup}}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(d.nX))};static#n=this.\u0275cmp=t.VBU({type:n,selectors:[["cvc-variant-groups-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(s,D){1&s&&t.nrm(0,"cvc-event-feed",0),2&s&&t.Y8G("subscribable",D.subscribable)},dependencies:[Lt.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})(),data:{breadcrumb:"Events"}}]}];let Ft=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[d.iI.forChild(Ut),ut,H,ct,at,St,d.iI]})}return n})();var $t=e(4124),Nt=e(5736),Bt=e(1896),At=e(1532),Yt=e(8103),jt=e(4917);let Xt=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#n=this.\u0275mod=t.$C({type:n});static#e=this.\u0275inj=t.G2t({imports:[r.MD,Ft,l.Y3,f.f3,u.ZJ,b.Zw,P.pc,Bt.Y,jt.i,$t.C,Nt.V,At.W,Yt.m]})}return n})()},7481:(R,T,e)=>{e.d(T,{$:()=>_,u:()=>S});var r=e(4707),d=e(7336),i=e(177),a=e(3953),z=e(9417),y=e(1413),M=e(3726),C=e(6977),t=e(6042),v=e(7806),G=e(5930),l=e(5103),f=e(851),u=e(8203);const b=["switchElement"];function V(p,g){1&p&&a.nrm(0,"span",8)}function x(p,g){if(1&p&&(a.qex(0),a.EFF(1),a.bVm()),2&p){const c=a.XpG(2);a.R7$(),a.JRh(c.nzCheckedChildren)}}function P(p,g){if(1&p&&(a.qex(0),a.DNE(1,x,2,1,"ng-container",9),a.bVm()),2&p){const c=a.XpG();a.R7$(),a.Y8G("nzStringTemplateOutlet",c.nzCheckedChildren)}}function L(p,g){if(1&p&&(a.qex(0),a.EFF(1),a.bVm()),2&p){const c=a.XpG(2);a.R7$(),a.JRh(c.nzUnCheckedChildren)}}function U(p,g){if(1&p&&a.DNE(0,L,2,1,"ng-container",9),2&p){const c=a.XpG();a.Y8G("nzStringTemplateOutlet",c.nzUnCheckedChildren)}}let S=(()=>{class p{updateValue(c){this.isChecked!==c&&(this.isChecked=c,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(c,m,E,O,B,A){this.nzConfigService=c,this.host=m,this.ngZone=E,this.cdr=O,this.focusMonitor=B,this.directionality=A,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new y.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,C.Q)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,M.R)(this.host.nativeElement,"click").pipe((0,C.Q)(this.destroy$)).subscribe(c=>{c.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,M.R)(this.switchElement.nativeElement,"keydown").pipe((0,C.Q)(this.destroy$)).subscribe(c=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:m}=c;m!==d.UQ&&m!==d.LE&&m!==d.t6&&m!==d.Fm||(c.preventDefault(),this.ngZone.run(()=>{m===d.UQ?this.updateValue(!1):m===d.LE?this.updateValue(!0):(m===d.t6||m===d.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,C.Q)(this.destroy$)).subscribe(c=>{c||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(c){this.isChecked=c,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||c,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(m){return new(m||p)(a.rXU(t.yx),a.rXU(a.aKT),a.rXU(a.SKi),a.rXU(a.gRc),a.rXU(f.FN),a.rXU(u.dS,8))};static#n=this.\u0275cmp=a.VBU({type:p,selectors:[["nz-switch"]],viewQuery:function(m,E){if(1&m&&a.GBs(b,7),2&m){let O;a.mGM(O=a.lsd())&&(E.switchElement=O.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",a.L39],nzDisabled:[2,"nzDisabled","nzDisabled",a.L39],nzControl:[2,"nzControl","nzControl",a.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[a.Jv_([{provide:z.kq,useExisting:(0,a.Rfq)(()=>p),multi:!0}]),a.GFd,a.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(m,E){if(1&m&&(a.j41(0,"button",2,0)(2,"span",3),a.DNE(3,V,1,0,"span",4),a.k0s(),a.j41(4,"span",5),a.DNE(5,P,2,1,"ng-container",6)(6,U,1,1,"ng-template",null,1,a.C5r),a.k0s(),a.nrm(8,"div",7),a.k0s()),2&m){const O=a.sdS(7);a.AVh("ant-switch-checked",E.isChecked)("ant-switch-loading",E.nzLoading)("ant-switch-disabled",E.nzDisabled)("ant-switch-small","small"===E.nzSize)("ant-switch-rtl","rtl"===E.dir),a.Y8G("disabled",E.nzDisabled)("nzWaveExtraNode",!0),a.BMQ("id",E.nzId),a.R7$(3),a.Y8G("ngIf",E.nzLoading),a.R7$(2),a.Y8G("ngIf",E.isChecked)("ngIfElse",O)}},dependencies:[G.o7,G.p,l.Y3,l.Dn,i.bT,v.C,v.m],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,t.H4)()],p.prototype,"nzSize",void 0),p})(),_=(()=>{class p{static#t=this.\u0275fac=function(m){return new(m||p)};static#n=this.\u0275mod=a.$C({type:p});static#e=this.\u0275inj=a.G2t({imports:[S]})}return p})()}}]); \ No newline at end of file diff --git a/server/public/5892.804bee8cc1360cb5.js b/server/public/5892.804bee8cc1360cb5.js deleted file mode 100644 index 1c486ba92..000000000 --- a/server/public/5892.804bee8cc1360cb5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5892],{9129:(x,v,e)=>{e.d(v,{s:()=>z});var o=e(3953),m=e(177),E=e(5699),g=e(1236),T=e(7855);const u=c=>({"matched-tag":c});function p(c,C){if(1&c&&(o.j41(0,"span",3)(1,"nz-tag"),o.EFF(2),o.k0s()()),2&c){const r=C.$implicit,t=o.XpG();o.Y8G("ngClass",o.eq3(2,u,t.matchingText&&r.toLowerCase().includes(t.matchingText))),o.R7$(2),o.JRh(r)}}function P(c,C){if(1&c&&(o.j41(0,"span"),o.EFF(1),o.k0s()),2&c){const r=o.XpG(2);o.R7$(),o.SpI(" ",r.matchedHiddenCount," of ")}}function D(c,C){if(1&c&&(o.j41(0,"nz-tag",5),o.EFF(1," +"),o.DNE(2,P,2,1,"span",6),o.EFF(3),o.k0s()),2&c){const r=o.XpG(),t=o.sdS(5);o.Y8G("nzPopoverMouseEnterDelay",0)("nzPopoverContent",t),o.R7$(2),o.Y8G("ngIf",r.matchedHiddenCount>0),o.R7$(),o.SpI("",r.hiddenCount," ")}}function O(c,C){if(1&c&&(o.j41(0,"div",3)(1,"nz-tag"),o.EFF(2),o.k0s()()),2&c){const r=C.$implicit,t=o.XpG(2);o.Y8G("ngClass",o.eq3(2,u,t.matchingText&&r.toLowerCase().includes(t.matchingText))),o.R7$(2),o.JRh(r)}}function M(c,C){if(1&c&&(o.j41(0,"div",7)(1,"cvc-tag-list",1),o.DNE(2,O,3,4,"div",2),o.k0s()()),2&c){const r=o.XpG();o.R7$(2),o.Y8G("ngForOf",r.hiddenTags)}}let z=(()=>{class c{constructor(r){this.cdr=r,this.maxDisplayCount=2,this.matchedHiddenCount=0}ngOnChanges(r){this.calculateDisplayedTags()}calculateDisplayedTags(){if(this.displayedTags=this.tags?.slice(0,this.maxDisplayCount),this.hiddenTags=this.tags?.slice(this.maxDisplayCount),this.hiddenCount=this.hiddenTags?.length,this.matchingText){if(this.hiddenTags){let r=this.matchingText.toLowerCase();this.hiddenTags.forEach(t=>{t.toLowerCase().includes(r)&&(this.matchedHiddenCount+=1)})}}else this.matchedHiddenCount=0}static#t=this.\u0275fac=function(t){return new(t||c)(o.rXU(o.gRc))};static#n=this.\u0275cmp=o.VBU({type:c,selectors:[["cvc-plain-tag-overflow"]],inputs:{tags:"tags",matchingText:"matchingText",maxDisplayCount:"maxDisplayCount"},features:[o.OA$],decls:6,vars:5,consts:[["additionalTagPopover",""],["size","xs"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["class","overflow-tag","nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverMouseEnterDelay","nzPopoverContent",4,"ngIf"],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",1,"overflow-tag",3,"nzPopoverMouseEnterDelay","nzPopoverContent"],[4,"ngIf"],[1,"popover-tag-list"]],template:function(t,h){1&t&&(o.j41(0,"cvc-tag-list",1),o.DNE(1,p,3,4,"span",2),o.j41(2,"span",3),o.DNE(3,D,4,4,"nz-tag",4),o.k0s(),o.DNE(4,M,3,1,"ng-template",null,0,o.C5r),o.k0s()),2&t&&(o.R7$(),o.Y8G("ngForOf",h.displayedTags),o.R7$(),o.Y8G("ngClass",o.eq3(3,u,h.matchedHiddenCount>0)),o.R7$(),o.Y8G("ngIf",h.hiddenCount&&h.hiddenCount>0))},dependencies:[m.YU,m.Sq,m.bT,E.s,g.L_,T.M],styles:[".matched-tag[_ngcontent-%COMP%]{font-weight:700}.popover-tag-list[_ngcontent-%COMP%]{max-width:600px}"],changeDetection:0})}return c})()},5724:(x,v,e)=>{e.d(v,{T:()=>u});var o=e(177),m=e(2142),E=e(5699),g=e(1236),T=e(3953);let u=(()=>{class p{static#t=this.\u0275fac=function(O){return new(O||p)};static#n=this.\u0275mod=T.$C({type:p});static#e=this.\u0275inj=T.G2t({imports:[o.MD,E.T,g.MC,m.x]})}return p})()},4644:(x,v,e)=>{e.d(v,{y:()=>A});var o=e(1635),m=e(9995),E=e(9145),g=e(9894),T=e(4412),u=e(1413),p=e(9199),P=e(3294),D=e(7048),O=e(5245),M=e(5964),z=e(6354),c=e(152),C=e(3993),r=e(4608),t=e(3953),h=e(177),I=e(9417),S=e(6389),R=e(5703),j=e(5103),f=e(1997),d=e(9247),L=e(5699),B=e(5154),F=e(1852),K=e(1405),$=e(435),U=e(3296),W=e(9129),G=e(9062),Y=e(3431),N=e(2923),V=e(1774);const X=l=>({height:l}),H=()=>[],w=()=>({x:"680px",y:"800px"}),y=()=>["descend","ascend",null];function J(l,_){}function Q(l,_){if(1&l&&(t.qex(0),t.j41(1,"nz-card",6),t.DNE(2,J,0,0,"ng-template",7),t.k0s(),t.bVm()),2&l){t.XpG();const n=t.sdS(4),s=t.sdS(6),a=t.sdS(8);t.R7$(),t.Y8G("nzTitle",s)("nzExtra",a),t.R7$(),t.Y8G("ngTemplateOutlet",n)}}function Z(l,_){}function k(l,_){if(1&l&&(t.j41(0,"div",8)(1,"nz-card",9),t.DNE(2,Z,0,0,"ng-template",7),t.k0s()()),2&l){const n=t.XpG(),s=t.sdS(4),a=t.sdS(6),i=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,X,n.cvcHeight)),t.R7$(),t.Y8G("nzTitle",a)("nzExtra",i),t.R7$(),t.Y8G("ngTemplateOutlet",s)}}function q(l,_){if(1&l&&(t.j41(0,"tr",38)(1,"td",26),t.nrm(2,"cvc-source-tag",39),t.k0s(),t.j41(3,"td",40),t.EFF(4),t.k0s(),t.j41(5,"td"),t.nrm(6,"cvc-plain-tag-overflow",41),t.k0s(),t.j41(7,"td"),t.EFF(8),t.k0s(),t.j41(9,"td"),t.EFF(10),t.k0s(),t.j41(11,"td"),t.EFF(12),t.k0s(),t.j41(13,"td"),t.EFF(14),t.k0s(),t.j41(15,"td",42),t.nrm(16,"span",43),t.k0s(),t.j41(17,"td",44),t.EFF(18),t.k0s(),t.j41(19,"td",44),t.EFF(20),t.k0s()()),2&l){const n=_.$implicit,s=t.XpG(2);t.R7$(2),t.Y8G("source",n)("truncateLongName",!0),t.R7$(),t.Y8G("nzTooltipTitle",s.isScrolling?"":n.name),t.R7$(),t.SpI(" ",n.name," "),t.R7$(2),t.Y8G("tags",n.authors)("maxDisplayCount",1)("matchingText",s.authorInput),t.R7$(2),t.SpI(" ",n.displayType," "),t.R7$(2),t.SpI(" ",n.citationId," "),t.R7$(2),t.SpI(" ",n.publicationYear," "),t.R7$(2),t.SpI(" ",n.journal," "),t.R7$(),t.Y8G("nzTooltipTitle",n.openAccess?"Open":"Closed"),t.R7$(),t.Y8G("nzType",n.openAccess?"unlock":"lock"),t.R7$(2),t.JRh(n.evidenceItemCount),t.R7$(2),t.JRh(n.sourceSuggestionCount)}}function tt(l,_){if(1&l){const n=t.RV6();t.j41(0,"nz-table",10,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(a){t.eBV(n);const i=t.XpG();return t.Njj(i.scrollEvent$.next(a))}),t.j41(6,"thead",11),t.bIt("nzSortOrderChange",function(a){t.eBV(n);const i=t.XpG();return t.Njj(i.sortChange$.next(a))}),t.j41(7,"tr",12)(8,"th",13),t.EFF(9," Citation "),t.k0s(),t.j41(10,"th",14),t.EFF(11," Name "),t.k0s(),t.j41(12,"th",15),t.EFF(13," Authors "),t.k0s(),t.j41(14,"th",16),t.EFF(15," Type "),t.k0s(),t.j41(16,"th",17),t.EFF(17," ID "),t.k0s(),t.j41(18,"th",16),t.EFF(19," Year "),t.k0s(),t.j41(20,"th",18),t.EFF(21," Journal "),t.k0s(),t.j41(22,"th",19),t.nrm(23,"i",20),t.k0s(),t.j41(24,"th",21),t.nrm(25,"i",22),t.EFF(26," Count "),t.k0s(),t.j41(27,"th",23),t.nrm(28,"i",24),t.EFF(29," Count "),t.k0s()(),t.j41(30,"tr",25),t.nrm(31,"th",26),t.j41(32,"th")(33,"cvc-clearable-input-filter",27),t.mxI("inputModelChange",function(a){t.eBV(n);const i=t.XpG();return t.DH7(i.nameInput,a)||(i.nameInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(34,"th")(35,"cvc-clearable-input-filter",28),t.mxI("inputModelChange",function(a){t.eBV(n);const i=t.XpG();return t.DH7(i.authorInput,a)||(i.authorInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(36,"th")(37,"nz-select",29),t.bIt("ngModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.mxI("ngModelChange",function(a){t.eBV(n);const i=t.XpG();return t.DH7(i.sourceTypeInput,a)||(i.sourceTypeInput=a),t.Njj(a)}),t.nrm(38,"nz-option",30)(39,"nz-option",31)(40,"nz-option",32),t.k0s()(),t.j41(41,"th")(42,"cvc-clearable-input-filter",33),t.mxI("inputModelChange",function(a){t.eBV(n);const i=t.XpG();return t.DH7(i.citationIdInput,a)||(i.citationIdInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(43,"th")(44,"cvc-clearable-input-filter",33),t.mxI("inputModelChange",function(a){t.eBV(n);const i=t.XpG();return t.DH7(i.yearInput,a)||(i.yearInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(45,"th")(46,"cvc-clearable-input-filter",33),t.mxI("inputModelChange",function(a){t.eBV(n);const i=t.XpG();return t.DH7(i.journalInput,a)||(i.journalInput=a),t.Njj(a)}),t.bIt("inputModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.k0s()(),t.j41(47,"th",34)(48,"nz-select",29),t.bIt("ngModelChange",function(){t.eBV(n);const a=t.XpG();return t.Njj(a.filterChange$.next())}),t.mxI("ngModelChange",function(a){t.eBV(n);const i=t.XpG();return t.DH7(i.openAccessInput,a)||(i.openAccessInput=a),t.Njj(a)}),t.nrm(49,"nz-option",35)(50,"nz-option",36),t.k0s()(),t.nrm(51,"th",34)(52,"th",34),t.k0s()(),t.j41(53,"tbody"),t.DNE(54,q,21,15,"ng-template",37),t.k0s()()}if(2&l){const n=t.XpG();t.Y8G("nzData",t.bMT(2,38,n.row$)||t.lJ4(46,H))("nzLoading",!t.bMT(3,40,n.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",n.queryRef)("cvcTableScrollPageInfo",t.bMT(4,42,n.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,44,n.scrollIndex$))("nzVirtualForTrackBy",n.trackByIndex)("nzScroll",t.lJ4(47,w))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(10),t.Y8G("nzColumnKey",n.sortColumns.Name)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",n.sortColumns.Authors)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",n.sortColumns.SourceType)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",n.sortColumns.CitationId)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",n.sortColumns.Year)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",n.sortColumns.Journal)("nzSortFn",!0),t.R7$(4),t.Y8G("nzColumnKey",n.sortColumns.EvidenceCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(48,y)),t.R7$(3),t.Y8G("nzColumnKey",n.sortColumns.SuggestionCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(49,y)),t.R7$(6),t.R50("inputModel",n.nameInput),t.R7$(2),t.R50("inputModel",n.authorInput),t.R7$(2),t.R50("ngModel",n.sourceTypeInput),t.R7$(5),t.R50("inputModel",n.citationIdInput),t.R7$(2),t.R50("inputModel",n.yearInput),t.R7$(2),t.R50("inputModel",n.journalInput),t.R7$(2),t.R50("ngModel",n.openAccessInput),t.R7$(),t.Y8G("nzValue",!0),t.R7$(),t.Y8G("nzValue",!1)}}function nt(l,_){}function et(l,_){if(1&l&&(t.qex(0),t.DNE(1,nt,0,0,"ng-template",7),t.bVm()),2&l){const n=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",n.cvcTitleTemplate)}}function ot(l,_){if(1&l&&(t.qex(0),t.EFF(1),t.bVm()),2&l){const n=t.XpG(2);t.R7$(),t.SpI(" ",n.cvcTitle," ")}}function at(l,_){if(1&l&&(t.DNE(0,et,2,1,"ng-container",45)(1,ot,2,1,"ng-container",45),t.j41(2,"span",46),t.nrm(3,"cvc-table-counts",47),t.k0s()),2&l){const n=t.XpG();t.Y8G("ngIf",n.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",n.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",n.connection$)}}function _t(l,_){1&l&&(t.j41(0,"nz-tag",50),t.nrm(1,"i",51),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function lt(l,_){if(1&l&&(t.DNE(0,_t,4,0,"nz-tag",48),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",49),t.nI1(3,"ngrxPush")),2&l){const n=t.XpG();t.Y8G("ngIf",t.bMT(1,2,n.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,n.noMoreRows$))}}let A=class b{set initialUserFilters(_){_&&Object.assign(this,_)}constructor(_,n){this.gql=_,this.cdr=n,this.initialPageSize=35,this.isScrolling=!1,this.sortColumns=E.En6,this.noMoreRows$=new T.t(!1),this.scrollEvent$=new T.t("stop"),this.sortChange$=new u.B,this.filterChange$=new u.B,this.scrollIndex$=new u.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,clinicalTrialId:this.clinicalTrialId}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,r.E)("loading"),(0,P.F)(),(0,D.v)(_=>!1!==_,!0)),this.moreLoading$=this.result$.pipe((0,r.E)("loading"),(0,P.F)(),(0,O.i)(2)),this.connection$=this.result$.pipe((0,r.E)("data","browseSources"),(0,M.p)(p.kP)),this.row$=this.connection$.pipe((0,r.E)("edges"),(0,M.p)(p.kP),(0,z.T)(_=>_.map(n=>n.node))),this.pageInfo$=this.connection$.pipe((0,r.E)("pageInfo"),(0,M.p)(p.kP)),this.sortChange$.pipe((0,g.s)(this)).subscribe(_=>{this.queryRef.refetch({sortBy:(0,m.X)(_)})}),this.filterChange$.pipe((0,c.B)(500),(0,g.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,z.T)(_=>"stop"!==_),(0,P.F)(),(0,g.s)(this)).subscribe(_=>{this.isScrolling=_,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,M.p)(_=>"bottom"===_),(0,C.E)(this.pageInfo$),(0,z.T)(([_,n])=>n),(0,g.s)(this)).subscribe(_=>{_.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,author:this.authorInput,year:this.yearInput?+this.yearInput:void 0,journal:this.journalInput,name:this.nameInput,sourceType:this.sourceTypeInput,openAccess:this.openAccessInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(_,n){return n?.id}static#t=this.\u0275fac=function(n){return new(n||b)(t.rXU(E.FMZ),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:b,selectors:[["cvc-sources-table"]],inputs:{cvcHeight:"cvcHeight",clinicalTrialId:"clinicalTrialId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","400px","nzLeft",""],["nzWidth","200px",3,"nzColumnKey","nzSortFn"],["nzWidth","275px",3,"nzColumnKey","nzSortFn"],["nzWidth","75px",3,"nzColumnKey","nzSortFn"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","150px",3,"nzColumnKey","nzSortFn"],["nzWidth","80px","nzRight","","nz-tooltip","","nzTooltipTitle","Open Access"],["nz-icon","","nzType","unlock"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Suggestion Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-queue"],[1,"filter-row"],["nzLeft",""],["placeholderText","Name",3,"inputModelChange","inputModel"],["placeholderText","Authors",3,"inputModelChange","inputModel"],["nzSize","small","nzAllowClear","","nzPlaceHolder","Choose",3,"ngModelChange","ngModel"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["nzValue","ASH","nzLabel","ASH"],[3,"inputModelChange","inputModel"],["nzRight",""],["nzLabel","Open",3,"nzValue"],["nzLabel","Closed",3,"nzValue"],["nz-virtual-scroll",""],[1,"data-row"],[3,"source","truncateLongName"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],[3,"tags","maxDisplayCount","matchingText"],["nzRight","","nz-tooltip","",3,"nzTooltipTitle"],["nz-icon","","nzTheme","outline",3,"nzType"],["nzAlign","right","nzRight",""],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(n,s){if(1&n&&t.DNE(0,Q,3,3,"ng-container",5)(1,k,3,6,"ng-template",null,0,t.C5r)(3,tt,55,50,"ng-template",null,1,t.C5r)(5,at,4,3,"ng-template",null,2,t.C5r)(7,lt,4,6,"ng-template",null,3,t.C5r),2&n){const a=t.sdS(2);t.Y8G("ngIf",!s.cvcHeight)("ngIfElse",a)}},dependencies:[h.bT,h.T3,h.B3,I.BC,I.vS,S.c,R.cK,j.Dn,f.ld,f.WI,d.CP,d.Cc,d.SO,d._4,d.IL,d.aj,d.kt,d.CC,d.OL,d.jc,L.s,B.LH,F.M,K.s,$.n,U.M,W.s,G.D,Y.y,N.f,V.L9],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0})};A=(0,o.Cg)([(0,g.d)()],A)},5443:(x,v,e)=>{e.d(v,{n:()=>j});var o=e(177),m=e(9417),E=e(7874),g=e(9214),T=e(5724),u=e(4998),p=e(4917),P=e(4256),D=e(4450),O=e(8252),M=e(513),z=e(5703),c=e(5103),C=e(1997),r=e(9247),t=e(5699),h=e(5154),I=e(7391),S=e(1209),R=e(3953);let j=(()=>{class f{static#t=this.\u0275fac=function(B){return new(B||f)};static#n=this.\u0275mod=R.$C({type:f});static#e=this.\u0275inj=R.G2t({imports:[o.MD,m.YN,M.Zw,z.Ti,c.Y3,C.DH,r.$G,t.T,h.Qt,I.kT,p.i,P.t,D.B,E.E,g.y,T.T,S.k,u.B,O.A]})}return f})()}}]); \ No newline at end of file diff --git a/server/public/5957.95c2cc4a75611a4d.js b/server/public/5957.95c2cc4a75611a4d.js new file mode 100644 index 000000000..2cdf9a7d7 --- /dev/null +++ b/server/public/5957.95c2cc4a75611a4d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5957],{8920:($,M,n)=>{n.d(M,{U:()=>_});var d=n(177),o=n(1188),p=n(5699),m=n(5103),S=n(7529),v=n(7054),z=n(2e3),I=n(5703),f=n(3357),u=n(3953);let E=(()=>{class C{static#t=this.\u0275fac=function(O){return new(O||C)};static#n=this.\u0275mod=u.$C({type:C});static#e=this.\u0275inj=u.G2t({imports:[d.MD,I.Ti,S.f3,z.WF,v.L,f.P]})}return C})();var h=n(1236);let _=(()=>{class C{static#t=this.\u0275fac=function(O){return new(O||C)};static#n=this.\u0275mod=u.$C({type:C});static#e=this.\u0275inj=u.G2t({imports:[d.MD,o.iI,p.T,m.Y3,h.MC,E]})}return C})()},959:($,M,n)=>{n.d(M,{j:()=>S});var d=n(3953),o=n(3100),p=n(3245),m=n(4247);let S=(()=>{class v{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(f){return new(f||v)};static#n=this.\u0275cmp=d.VBU({type:v,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(f,u){1&f&&(d.j41(0,"cvc-tag-group"),d.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),d.k0s()),2&f&&(d.R7$(),d.Y8G("feature",u.feature)("enablePopover",u.enablePopover)("truncateLongName",u.truncateLongName),d.R7$(),d.Y8G("variant",u.variant)("enablePopover",u.enablePopover)("truncateLongName",u.truncateLongName))},dependencies:[o.V,p._,m.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return v})()},9374:($,M,n)=>{n.d(M,{r:()=>_});var d=n(177),o=n(2142),p=n(5699),m=n(1236),S=n(9192),v=n(8920),z=n(7051),I=n(9802),f=n(5493),u=n(6912),E=n(7086),h=n(3953);let _=(()=>{class C{static#t=this.\u0275fac=function(O){return new(O||C)};static#n=this.\u0275mod=h.$C({type:C});static#e=this.\u0275inj=h.G2t({imports:[d.MD,p.T,m.MC,o.x,I._,S.J,v.U,u.l,z.U,f.G,E.C]})}return C})()},3340:($,M,n)=>{n.d(M,{E:()=>w});var d=n(1635),o=n(9995),p=n(9145),m=n(9894),S=n(4412),v=n(1413),z=n(9199),I=n(6354),f=n(3294),u=n(7048),E=n(5245),h=n(5964),_=n(152),C=n(3993),b=n(4608),t=n(3953),O=n(1305),P=n(177),y=n(9417),F=n(1188),D=n(513),N=n(6389),V=n(5930),Y=n(5703),B=n(5103),X=n(1236),R=n(1997),G=n(9247),L=n(5699),U=n(5154),A=n(2923),W=n(3431),K=n(3296),H=n(1852),J=n(1405),Q=n(435),s=n(9861),x=n(9062),l=n(6977),T=n(1226),j=n(4222),Z=n(2983),nt=n(3617),et=n(1011),q=n(7685),ot=n(9449),at=n(1939);function rt(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-alert",6),t.bIt("nzOnClose",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.onSuccessBannerClose())}),t.k0s()}}function it(a,i){if(1&a&&t.nrm(0,"cvc-form-errors-alert",7),2&a){const e=t.XpG();t.Y8G("errors",e.errorMessages)}}function st(a,i){if(1&a){const e=t.RV6();t.j41(0,"textarea",8),t.mxI("ngModelChange",function(r){t.eBV(e);const g=t.XpG();return t.DH7(g.reason,r)||(g.reason=r),t.Njj(r)}),t.k0s()}if(2&a){const e=t.XpG();t.R50("ngModel",e.reason)}}function ct(a,i){1&a&&t.nrm(0,"nz-option",13)}function lt(a,i){1&a&&t.nrm(0,"nz-option",14)}function gt(a,i){1&a&&t.nrm(0,"nz-option",15)}function ut(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-select",9),t.mxI("ngModelChange",function(r){t.eBV(e);const g=t.XpG();return t.DH7(g.newStatus,r)||(g.newStatus=r),t.Njj(r)}),t.DNE(1,ct,1,0,"nz-option",10)(2,lt,1,0,"nz-option",11)(3,gt,1,0,"nz-option",12),t.k0s()}if(2&a){const e=t.XpG();t.R50("ngModel",e.newStatus),t.R7$(),t.Y8G("ngIf","NEW"==e.currentStatus),t.R7$(),t.Y8G("ngIf","NEW"!=e.currentStatus),t.R7$(),t.Y8G("ngIf","NEW"==e.currentStatus)}}function pt(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-spin",16)(1,"cvc-form-buttons")(2,"button",17),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.updateSourceSuggestionStatus())}),t.EFF(3," Update Source Suggestion status "),t.k0s()()()}if(2&a){const e=t.XpG();t.Y8G("nzSpinning",e.loading),t.R7$(2),t.Y8G("disabled",e.loading)}}let mt=(()=>{class a{constructor(e,c,r){this.viewerService=e,this.networkErrorService=c,this.updateSuggestionStatusGql=r,this.commentAddedEvent=new t.bkB,this.destroy$=new v.B,this.success=!1,this.errorMessages=[],this.loading=!1,this.viewerService.viewer$.pipe((0,l.Q)(this.destroy$)).subscribe(g=>{this.organizations=g.organizations,this.mostRecentOrg=g.mostRecentOrg}),this.sourceSuggestionStatusMutator=new T.E(c)}selectOrg(e){this.mostRecentOrg=e}updateSourceSuggestionStatus(){if(this.newStatus){let e=this.sourceSuggestionStatusMutator.mutate(this.updateSuggestionStatusGql,{input:{id:this.sourceSuggestionId,newStatus:this.newStatus,reason:this.reason,organizationId:this.mostRecentOrg?.id}});e.submitSuccess$.pipe((0,l.Q)(this.destroy$)).subscribe(c=>{this.resetForm(),this.success=!0}),e.submitError$.pipe((0,l.Q)(this.destroy$)).subscribe(c=>{c&&(this.errorMessages=c)}),e.isSubmitting$.pipe((0,l.Q)(this.destroy$)).subscribe(c=>{this.loading=c})}}resetForm(){this.commentText=""}onSuccessBannerClose(){this.resetForm()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(c){return new(c||a)(t.rXU(O.q),t.rXU(j.N),t.rXU(p.v8x))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["cvc-update-source-suggestion-form"]],inputs:{sourceSuggestionId:"sourceSuggestionId",currentStatus:"currentStatus"},outputs:{commentAddedEvent:"commentAddedEvent"},decls:7,vars:2,consts:[["nzDirection","vertical"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],[3,"errors",4,"ngIf"],["rows","4","nz-input","",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzPlaceHolder","New Status","required","true",3,"ngModel","ngModelChange",4,"nzSpaceItem"],["nzTip","Submitting",3,"nzSpinning",4,"nzSpaceItem"],["nzBanner","","nzMessage","Status Updated","nzType","success","nzCloseable","",3,"nzOnClose"],[3,"errors"],["rows","4","nz-input","",3,"ngModelChange","ngModel"],["nzPlaceHolder","New Status","required","true",3,"ngModelChange","ngModel"],["nzValue","CURATED","nzLabel","Curated",4,"ngIf"],["nzValue","NEW","nzLabel","New",4,"ngIf"],["nzValue","REJECTED","nzLabel","Rejected",4,"ngIf"],["nzValue","CURATED","nzLabel","Curated"],["nzValue","NEW","nzLabel","New"],["nzValue","REJECTED","nzLabel","Rejected"],["nzTip","Submitting",3,"nzSpinning"],["type","submit","nz-button","","nzType","primary","nzSize","small",3,"click","disabled"]],template:function(c,r){1&c&&(t.j41(0,"nz-card")(1,"nz-space",0),t.DNE(2,rt,1,0,"nz-alert",1)(3,it,1,1,"cvc-form-errors-alert",2)(4,st,1,1,"textarea",3)(5,ut,4,4,"nz-select",4)(6,pt,4,2,"nz-spin",5),t.k0s()()),2&c&&(t.R7$(2),t.Y8G("ngIf",r.success),t.R7$(),t.Y8G("ngIf",r.errorMessages.length))},dependencies:[P.bT,y.me,y.BC,y.YS,D.aO,N.c,V.p,Y.cK,Z.a,nt.Y,et.Sy,R.ld,R.WI,q.U5,q.Dq,y.vS,ot.j,at.l],encapsulation:2})}return a})();var dt=n(6408),_t=n(5473),vt=n(4126),Ct=n(1774),ft=n(3075);const ht=a=>({height:a}),zt=()=>[],Tt=()=>({x:"680px",y:"800px"}),St=()=>["descend","ascend",null],tt=()=>({width:"300px"}),It=(a,i,e)=>({molecularProfileId:a,sourceId:i,diseaseId:e});function Mt(a,i){}function xt(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-card",10),t.DNE(2,Mt,0,0,"ng-template",11),t.k0s(),t.bVm()),2&a){t.XpG();const e=t.sdS(4),c=t.sdS(8),r=t.sdS(10);t.R7$(),t.Y8G("nzTitle",c)("nzExtra",r),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Gt(a,i){}function Pt(a,i){if(1&a&&(t.j41(0,"div",12)(1,"nz-card",13),t.DNE(2,Gt,0,0,"ng-template",11),t.k0s()()),2&a){const e=t.XpG(),c=t.sdS(4),r=t.sdS(8),g=t.sdS(10);t.Y8G("ngStyle",t.eq3(4,ht,e.cvcHeight)),t.R7$(),t.Y8G("nzTitle",r)("nzExtra",g),t.R7$(),t.Y8G("ngTemplateOutlet",c)}}function yt(a,i){if(1&a){const e=t.RV6();t.j41(0,"cvc-clearable-input-filter",32),t.mxI("inputModelChange",function(r){t.eBV(e);const g=t.XpG(2);return t.DH7(g.submitterInput,r)||(g.submitterInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG(2);return t.Njj(r.filterChange$.next())}),t.k0s()}if(2&a){const e=t.XpG(2);t.R50("inputModel",e.submitterInput)}}function Et(a,i){1&a&&t.eu8(0)}function bt(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-tag",54),t.DNE(2,Et,1,0,"ng-container",55),t.EFF(3),t.nI1(4,"lowercase"),t.k0s(),t.bVm()),2&a){const e=t.XpG().$implicit,c=t.sdS(8);t.R7$(2),t.Y8G("ngTemplateOutlet",c),t.R7$(),t.SpI(" ",t.bMT(4,2,e.status)," ")}}function Ot(a,i){1&a&&t.eu8(0)}function $t(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-tag",56),t.DNE(2,Ot,1,0,"ng-container",55),t.EFF(3),t.nI1(4,"lowercase"),t.k0s(),t.bVm()),2&a){const e=t.XpG().$implicit,c=t.sdS(8);t.R7$(2),t.Y8G("ngTemplateOutlet",c),t.R7$(),t.SpI(" ",t.bMT(4,2,e.status)," ")}}function Rt(a,i){1&a&&t.eu8(0)}function Dt(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-tag",57),t.DNE(2,Rt,1,0,"ng-container",55),t.EFF(3),t.nI1(4,"lowercase"),t.k0s(),t.bVm()),2&a){const e=t.XpG().$implicit,c=t.sdS(8);t.R7$(2),t.Y8G("ngTemplateOutlet",c),t.R7$(),t.SpI(" ",t.bMT(4,2,e.status)," ")}}function jt(a,i){if(1&a&&t.nrm(0,"i",59),2&a){t.XpG(2);const e=t.sdS(10),c=t.XpG(2);t.Y8G("nzPopoverContent",c.isScrolling?"":e)("nzPopoverOverlayStyle",t.lJ4(2,tt))}}function Ft(a,i){if(1&a&&t.DNE(0,jt,1,3,"i",58),2&a){const e=t.XpG().$implicit;t.Y8G("ngIf",e.lastStatusUpdateActivity&&e.lastStatusUpdateActivity.parsedNote.length>0)}}function Nt(a,i){if(1&a&&t.nrm(0,"cvc-comment-body",60),2&a){const e=t.XpG().$implicit;t.Y8G("commentBodySegments",e.lastStatusUpdateActivity.parsedNote)}}function Vt(a,i){if(1&a&&t.nrm(0,"cvc-source-tag",61),2&a){const e=t.XpG().$implicit;t.Y8G("source",e.source)}}function Yt(a,i){if(1&a&&t.nrm(0,"cvc-comment-body",60),2&a){const e=t.XpG().$implicit;t.Y8G("commentBodySegments",e.creationActivity.parsedNote)}}function Bt(a,i){if(1&a&&t.nrm(0,"cvc-user-tag",62),2&a){const e=t.XpG().$implicit;t.Y8G("user",e.user)}}function Xt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.source.displayType," ")}}function Lt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.source.citationId," ")}}function Ut(a,i){if(1&a&&t.nrm(0,"cvc-molecular-profile-tag",63),2&a){const e=t.XpG().$implicit;t.Y8G("molecularProfile",e.molecularProfile)}}function At(a,i){if(1&a&&t.nrm(0,"cvc-disease-tag",64),2&a){const e=t.XpG().$implicit;t.Y8G("disease",e.disease)("truncateLongName",!0)}}function Wt(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-button-group")(1,"button",65),t.nrm(2,"i",66),t.k0s(),t.j41(3,"button",67),t.bIt("click",function(){t.eBV(e);const r=t.XpG().$implicit,g=t.XpG(2);return t.Njj(g.setFormInputs(r.id,r.status))}),t.nrm(4,"i",68),t.k0s()()}if(2&a){const e=t.XpG().$implicit,c=t.XpG(2),r=t.sdS(6);t.R7$(),t.Y8G("queryParams",t.sMw(7,It,null==e.molecularProfile?null:e.molecularProfile.id,null==e.source?null:e.source.id,null==e.disease?null:e.disease.id))("disabled",e.status!=c.status.New)("nzTooltipTitle",c.isScrolling?"":"Create Evidence with this Source")("nzTooltipMouseEnterDelay",1),t.R7$(2),t.Y8G("nzTooltipTitle",c.isScrolling?"":"Manage Source Suggestion")("nzTooltipMouseEnterDelay",1)("nzPopoverContent",r)}}function Kt(a,i){1&a&&(t.qex(0),t.EFF(1," -- "),t.bVm())}function Ht(a,i){if(1&a&&(t.j41(0,"tr",42)(1,"td",43),t.qex(2,44),t.nI1(3,"lowercase"),t.DNE(4,bt,5,4,"ng-container",45)(5,$t,5,4,"ng-container",45)(6,Dt,5,4,"ng-container",45)(7,Ft,1,1,"ng-template",null,6,t.C5r)(9,Nt,1,1,"ng-template",null,7,t.C5r),t.bVm(),t.k0s(),t.j41(11,"td",27),t.DNE(12,Vt,1,1,"cvc-source-tag",46),t.k0s(),t.j41(13,"td",47),t.nrm(14,"i",20),t.nI1(15,"entityColor"),t.DNE(16,Yt,1,1,"ng-template",null,8,t.C5r),t.k0s(),t.j41(18,"td"),t.DNE(19,Bt,1,1,"cvc-user-tag",48),t.k0s(),t.j41(20,"td"),t.DNE(21,Xt,2,1,"ng-container",49),t.k0s(),t.j41(22,"td"),t.DNE(23,Lt,2,1,"ng-container",49),t.k0s(),t.j41(24,"td"),t.DNE(25,Ut,1,1,"cvc-molecular-profile-tag",50),t.k0s(),t.j41(26,"td"),t.DNE(27,At,1,2,"cvc-disease-tag",51),t.k0s(),t.j41(28,"td",52),t.EFF(29),t.nI1(30,"date"),t.k0s(),t.j41(31,"td",53),t.DNE(32,Wt,5,11,"nz-button-group",49)(33,Kt,2,0,"ng-container",49),t.k0s()()),2&a){const e=i.$implicit,c=t.sdS(17),r=t.XpG(2);t.R7$(2),t.Y8G("ngSwitch",t.bMT(3,16,e.status)),t.R7$(2),t.Y8G("ngSwitchCase","curated"),t.R7$(),t.Y8G("ngSwitchCase","new"),t.R7$(),t.Y8G("ngSwitchCase","rejected"),t.R7$(6),t.Y8G("ngIf",e.source),t.R7$(),t.Y8G("nzPopoverContent",r.isScrolling?"":c)("nzPopoverOverlayStyle",t.lJ4(22,tt)),t.R7$(),t.Y8G("nzTwotoneColor",t.bMT(15,18,"Comment")),t.R7$(5),t.Y8G("ngIf",e.user),t.R7$(2),t.Y8G("ngIf",e.source),t.R7$(2),t.Y8G("ngIf",e.source),t.R7$(2),t.Y8G("ngIf",e.molecularProfile),t.R7$(2),t.Y8G("ngIf",e.disease),t.R7$(2),t.SpI(" ",t.bMT(30,20,e.createdAt)," "),t.R7$(3),t.Y8G("ngIf",r.isSignedIn),t.R7$(),t.Y8G("ngIf",!r.isSignedIn)}}function Jt(a,i){if(1&a){const e=t.RV6();t.j41(0,"nz-table",14,5),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(r){t.eBV(e);const g=t.XpG();return t.Njj(g.scrollEvent$.next(r))}),t.j41(6,"thead",15),t.bIt("nzSortOrderChange",function(r){t.eBV(e);const g=t.XpG();return t.Njj(g.sortChange$.next(r))}),t.j41(7,"tr",16)(8,"th",17),t.EFF(9," Status "),t.k0s(),t.j41(10,"th",18),t.EFF(11," Citation "),t.k0s(),t.j41(12,"th",19),t.nrm(13,"i",20),t.nI1(14,"entityColor"),t.k0s(),t.j41(15,"th",21),t.EFF(16," Submitter "),t.k0s(),t.j41(17,"th",22),t.EFF(18," Type "),t.k0s(),t.j41(19,"th",22),t.EFF(20," ID "),t.k0s(),t.j41(21,"th",23),t.EFF(22,"Molecular Profile"),t.k0s(),t.j41(23,"th",21),t.EFF(24," Disease "),t.k0s(),t.j41(25,"th",24),t.EFF(26," Submitted "),t.k0s(),t.j41(27,"th",25),t.EFF(28," Actions "),t.k0s()(),t.j41(29,"tr",26)(30,"th",27)(31,"nz-select",28),t.bIt("ngModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.mxI("ngModelChange",function(r){t.eBV(e);const g=t.XpG();return t.DH7(g.statusInput,r)||(g.statusInput=r),t.Njj(r)}),t.nrm(32,"nz-option",29)(33,"nz-option",30)(34,"nz-option",31),t.k0s()(),t.j41(35,"th",27)(36,"cvc-clearable-input-filter",32),t.mxI("inputModelChange",function(r){t.eBV(e);const g=t.XpG();return t.DH7(g.citationInput,r)||(g.citationInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.nrm(37,"th"),t.j41(38,"th"),t.DNE(39,yt,1,1,"cvc-clearable-input-filter",33),t.k0s(),t.j41(40,"th")(41,"nz-select",34),t.bIt("ngModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.mxI("ngModelChange",function(r){t.eBV(e);const g=t.XpG();return t.DH7(g.sourceTypeInput,r)||(g.sourceTypeInput=r),t.Njj(r)}),t.nrm(42,"nz-option",35)(43,"nz-option",36),t.k0s()(),t.j41(44,"th")(45,"cvc-clearable-input-filter",37),t.mxI("inputModelChange",function(r){t.eBV(e);const g=t.XpG();return t.DH7(g.citationIdInput,r)||(g.citationIdInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(46,"th")(47,"cvc-clearable-input-filter",38),t.mxI("inputModelChange",function(r){t.eBV(e);const g=t.XpG();return t.DH7(g.molecularProfileNameInput,r)||(g.molecularProfileNameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.j41(48,"th")(49,"cvc-clearable-input-filter",39),t.mxI("inputModelChange",function(r){t.eBV(e);const g=t.XpG();return t.DH7(g.diseaseNameInput,r)||(g.diseaseNameInput=r),t.Njj(r)}),t.bIt("inputModelChange",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.filterChange$.next())}),t.k0s()(),t.nrm(50,"th")(51,"th",40),t.k0s()(),t.j41(52,"tbody"),t.DNE(53,Ht,34,23,"ng-template",41),t.k0s()()}if(2&a){const e=t.XpG();t.Y8G("nzData",t.bMT(2,33,e.row$)||t.lJ4(43,zt))("nzLoading",!t.bMT(3,35,e.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",e.queryRef)("cvcTableScrollPageInfo",t.bMT(4,37,e.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,39,e.scrollIndex$))("nzVirtualForTrackBy",e.trackByIndex)("nzScroll",t.lJ4(44,Tt))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(10),t.Y8G("nzColumnKey",e.sortColumns.Citation)("nzSortFn",!0),t.R7$(3),t.Y8G("nzTwotoneColor",t.bMT(14,41,"Comment")),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.Submitter)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.SourceType)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.CitationId)("nzSortFn",!0),t.R7$(4),t.Y8G("nzColumnKey",e.sortColumns.DiseaseName)("nzSortFn",!0),t.R7$(2),t.Y8G("nzColumnKey",e.sortColumns.CreatedAt)("nzSortDirections",t.lJ4(45,St))("nzSortFn",!0),t.R7$(6),t.Y8G("nzDropdownMatchSelectWidth",!1),t.R50("ngModel",e.statusInput),t.R7$(5),t.R50("inputModel",e.citationInput),t.R7$(3),t.Y8G("ngIf",!e.submitterId),t.R7$(2),t.R50("ngModel",e.sourceTypeInput),t.R7$(4),t.R50("inputModel",e.citationIdInput),t.R7$(2),t.R50("inputModel",e.molecularProfileNameInput),t.R7$(2),t.R50("inputModel",e.diseaseNameInput)}}function Qt(a,i){if(1&a&&t.nrm(0,"cvc-update-source-suggestion-form",70),2&a){const e=t.XpG(2);t.Y8G("currentStatus",e.selectedStatus)("sourceSuggestionId",e.selectedSourceId)}}function Zt(a,i){if(1&a&&t.DNE(0,Qt,1,2,"cvc-update-source-suggestion-form",69),2&a){const e=t.XpG();t.Y8G("ngIf",e.selectedSourceId&&e.selectedStatus)}}function wt(a,i){}function kt(a,i){if(1&a&&(t.qex(0),t.DNE(1,wt,0,0,"ng-template",11),t.bVm()),2&a){const e=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",e.cvcTitleTemplate)}}function qt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.cvcTitle," ")}}function tn(a,i){if(1&a&&(t.nrm(0,"i",71),t.nI1(1,"entityColor"),t.DNE(2,kt,2,1,"ng-container",49)(3,qt,2,1,"ng-container",49),t.j41(4,"span",72),t.nrm(5,"cvc-table-counts",73),t.k0s()),2&a){const e=t.XpG();t.Y8G("nzTwotoneColor",t.bMT(1,4,"Source")),t.R7$(2),t.Y8G("ngIf",e.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",e.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",e.connection$)}}function nn(a,i){1&a&&(t.j41(0,"nz-tag",76),t.nrm(1,"i",77),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function en(a,i){if(1&a&&(t.DNE(0,nn,4,0,"nz-tag",74),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",75),t.nI1(3,"ngrxPush")),2&a){const e=t.XpG();t.Y8G("ngIf",t.bMT(1,2,e.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,e.noMoreRows$))}}let w=class k{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,e,c){this.gql=i,this.viewerService=e,this.cdr=c,this.initialPageSize=35,this.isScrolling=!1,this.statusInput=p._f.New,this.sortColumns=p.wVR,this.status=p._f,this.showManageForm=!1,this.noMoreRows$=new S.t(!1),this.scrollEvent$=new S.t("stop"),this.sortChange$=new v.B,this.filterChange$=new v.B,this.scrollIndex$=new v.B,this.viewerService.viewer$.pipe((0,I.T)(r=>r.signedIn),(0,m.s)(this)).subscribe(r=>this.isSignedIn=r)}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize,sourceId:this.sourceId,submitterId:this.submitterId,status:this.status.New,sortBy:{column:this.sortColumns.CreatedAt,direction:p.UEL.Desc}}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,b.E)("loading"),(0,f.F)(),(0,u.v)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,b.E)("loading"),(0,f.F)(),(0,E.i)(2)),this.connection$=this.result$.pipe((0,b.E)("data","sourceSuggestions"),(0,h.p)(z.kP)),this.row$=this.connection$.pipe((0,b.E)("edges"),(0,h.p)(z.kP),(0,I.T)(i=>i.map(e=>e.node))),this.pageInfo$=this.connection$.pipe((0,b.E)("pageInfo"),(0,h.p)(z.kP)),this.sortChange$.pipe((0,m.s)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,o.X)(i)})}),this.filterChange$.pipe((0,_.B)(500),(0,m.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,I.T)(i=>"stop"!==i),(0,f.F)(),(0,m.s)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,h.p)(i=>"bottom"===i),(0,C.E)(this.pageInfo$),(0,I.T)(([i,e])=>e),(0,m.s)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({citationId:this.citationIdInput?+this.citationIdInput:void 0,sourceType:this.sourceTypeInput?this.sourceTypeInput:void 0,sourceId:this.sourceIdInput?+this.sourceIdInput:void 0,molecularProfileName:this.molecularProfileNameInput,diseaseName:this.diseaseNameInput,comment:this.commentInput,submitter:this.submitterInput,citation:this.citationInput,status:this.statusInput?this.statusInput:void 0}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}setFormInputs(i,e){this.selectedSourceId=i,this.selectedStatus=e,this.showManageForm=!0}closePopover(){this.showManageForm=!1}trackByIndex(i,e){return e?.id}static#t=this.\u0275fac=function(e){return new(e||k)(t.rXU(p.bz7),t.rXU(O.q),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:k,selectors:[["cvc-source-suggestions-table"]],inputs:{cvcHeight:"cvcHeight",sourceId:"sourceId",submitterId:"submitterId",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:11,vars:2,consts:[["setHeightCard",""],["table",""],["manageSuggestionTemplate",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],["statusNote",""],["statusNoteContentTemplate",""],["creationCommentTemplate",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","100px","nzLeft",""],["nzWidth","425px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","24px","nzAlign","center","nz-tooltip","","nzTooltipTitle","Submitter Comment"],["nz-icon","","nzTheme","twotone","nzType","civic-comment",3,"nzTwotoneColor"],["nzWidth","200px",3,"nzColumnKey","nzSortFn"],["nzWidth","80px",3,"nzColumnKey","nzSortFn"],["nzWidth","290px"],["nzWidth","90px","nzSortOrder","descend",3,"nzColumnKey","nzSortDirections","nzSortFn"],["nzWidth","70px","nzRight","","nzAlign","center"],[1,"filter-row"],["nzLeft",""],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel"],["nzValue","NEW","nzLabel","new"],["nzValue","CURATED","nzLabel","curated"],["nzValue","REJECTED","nzLabel","rejected"],[3,"inputModelChange","inputModel"],[3,"inputModel","inputModelChange",4,"ngIf"],["nzAllowClear","","nzSize","small","nzPlaceHolder","Any",3,"ngModelChange","ngModel"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["placeholderText","ID",3,"inputModelChange","inputModel"],["placeholderText","Molecular Profile",3,"inputModelChange","inputModel"],["placeholderText","Disease",3,"inputModelChange","inputModel"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],["nzLeft","","nzAlign","center"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"source",4,"ngIf"],["nzAlign","center","nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],[3,"user",4,"ngIf"],[4,"ngIf"],[3,"molecularProfile",4,"ngIf"],[3,"disease","truncateLongName",4,"ngIf"],["nzAlign","right"],["nzRight","","nzAlign","center",1,"button-cell"],["nzColor","green",1,"status-tag"],[4,"ngTemplateOutlet"],["nzColor","orange",1,"status-tag"],["nzColor","volcano",1,"status-tag"],["nz-icon","","nz-popover","","nzType","civic-comment",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["nz-icon","","nz-popover","","nzType","civic-comment",3,"nzPopoverContent","nzPopoverOverlayStyle"],[3,"commentBodySegments"],[3,"source"],[3,"user"],[3,"molecularProfile"],[3,"disease","truncateLongName"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small","nz-tooltip","",3,"queryParams","disabled","nzTooltipTitle","nzTooltipMouseEnterDelay"],["nz-icon","","nzType","civic-evidence"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Manage Source Suggestion","nzPopoverPlacement","left","nzPopoverTrigger","click","nz-tooltip","","nzTooltipPlacement","top",3,"click","nzTooltipTitle","nzTooltipMouseEnterDelay","nzPopoverContent"],["nz-icon","","nzType","civic-source"],[3,"currentStatus","sourceSuggestionId",4,"ngIf"],[3,"currentStatus","sourceSuggestionId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""]],template:function(e,c){if(1&e&&t.DNE(0,xt,3,3,"ng-container",9)(1,Pt,3,6,"ng-template",null,0,t.C5r)(3,Jt,54,46,"ng-template",null,1,t.C5r)(5,Zt,1,1,"ng-template",null,2,t.C5r)(7,tn,6,6,"ng-template",null,3,t.C5r)(9,en,4,6,"ng-template",null,4,t.C5r),2&e){const r=t.sdS(2);t.Y8G("ngIf",!c.cvcHeight)("ngIfElse",r)}},dependencies:[P.bT,P.T3,P.B3,P.ux,P.e1,y.BC,y.vS,F.Wk,D.aO,D.dn,N.c,V.p,Y.cK,B.Dn,X.L_,R.ld,R.WI,G.CP,G.Cc,G.SO,G._4,G.IL,G.aj,G.kt,G.CC,G.OL,G.jc,L.s,U.LH,A.f,W.y,K.M,H.M,J.s,Q.n,s.Y,x.D,mt,dt.r,_t.z,vt.p,P.GH,P.vh,Ct.L9,ft.R],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}.status-tag[_ngcontent-%COMP%]{display:block}"],changeDetection:0})};w=(0,d.Cg)([(0,m.d)()],w)},5594:($,M,n)=>{n.d(M,{b:()=>Q});var d=n(177),o=n(9417),p=n(1188),m=n(7169),S=n(9192),v=n(996),z=n(7874),I=n(9214),f=n(4998),u=n(1209),E=n(2839),h=n(4917),_=n(4256),C=n(4450),b=n(8252),t=n(8492),O=n(5703),P=n(8927),y=n(3842),F=n(513),D=n(9541),N=n(2983),V=n(3617),Y=n(1011),B=n(1997),X=n(4308),R=n(7685),G=n(3953);let L=(()=>{class s{static#t=this.\u0275fac=function(T){return new(T||s)};static#n=this.\u0275mod=G.$C({type:s});static#e=this.\u0275inj=G.G2t({imports:[d.MD,o.X1,F.Zw,O.Ti,D.hM,P.PQ,N.V,V.$,Y.j,B.DH,R.pc,o.YN,t.M,y.k,X.I]})}return s})();var U=n(5103),A=n(1236),W=n(9247),K=n(5699),H=n(5154),J=n(7391);let Q=(()=>{class s{static#t=this.\u0275fac=function(T){return new(T||s)};static#n=this.\u0275mod=G.$C({type:s});static#e=this.\u0275inj=G.G2t({imports:[d.MD,o.YN,p.iI,F.Zw,O.Ti,U.Y3,A.MC,B.DH,W.$G,K.T,H.Qt,J.kT,b.A,f.B,I.y,_.t,C.B,z.E,S.J,t.M,h.i,u.k,L,E.m,v.o,m.W]})}return s})()},8238:($,M,n)=>{n.d(M,{S:()=>Q});var d=n(505),o=n(3953),p=n(177),m=n(1188),S=n(1236),v=n(5699),z=n(5103),I=n(9199),f=n(6354),u=n(5964),E=n(9145),h=n(5703),_=n(2e3),C=n(9062),b=n(959),t=n(7855),O=n(1774),P=n(3075);function y(s,x){if(1&s&&(o.nrm(0,"i",7),o.nI1(1,"entityColor"),o.EFF(2)),2&s){const l=o.XpG().ngIf;o.Y8G("nzTwotoneColor",o.bMT(1,2,"VariantGroup")),o.R7$(2),o.SpI(" ",l.name," ")}}function F(s,x){if(1&s&&o.nrm(0,"cvc-feature-variant-tag",10),2&s){const l=x.$implicit;o.Y8G("enablePopover",!1)("variant",l.node)}}function D(s,x){if(1&s&&(o.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),o.DNE(2,F,1,2,"cvc-feature-variant-tag",9),o.k0s()()),2&s){const l=o.XpG().ngIf;o.R7$(2),o.Y8G("ngForOf",l.variants.edges)}}function N(s,x){if(1&s&&o.nrm(0,"cvc-source-tag",13),2&s){const l=x.$implicit;o.Y8G("enablePopover",!1)("source",l)}}function V(s,x){if(1&s&&(o.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),o.DNE(2,N,1,2,"cvc-source-tag",12),o.k0s()()),2&s){const l=o.XpG().ngIf;o.R7$(2),o.Y8G("ngForOf",l.sources)}}function Y(s,x){if(1&s&&(o.qex(0),o.j41(1,"nz-card",3),o.DNE(2,y,3,4,"ng-template",null,0,o.C5r),o.EFF(4),o.j41(5,"nz-descriptions",4),o.DNE(6,D,3,1,"nz-descriptions-item",5)(7,V,3,1,"nz-descriptions-item",6),o.k0s()(),o.bVm()),2&s){const l=x.ngIf,T=o.sdS(3);o.R7$(),o.Y8G("nzTitle",T),o.R7$(3),o.SpI(" ",l.description," "),o.R7$(),o.Y8G("nzColumn",2),o.R7$(),o.Y8G("ngIf",l.variants.edges.length>0),o.R7$(),o.Y8G("ngIf",l.sources.length>0)}}let B=(()=>{class s{constructor(l){this.gql=l}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,f.T)(({data:l})=>l?.variantGroup),(0,u.p)(I.kP))}static#t=this.\u0275fac=function(T){return new(T||s)(o.rXU(E.gwr))};static#n=this.\u0275cmp=o.VBU({type:s,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(T,j){1&T&&(o.j41(0,"div",1),o.DNE(1,Y,8,5,"ng-container",2),o.nI1(2,"ngrxPush"),o.k0s()),2&T&&(o.R7$(),o.Y8G("ngIf",o.bMT(2,1,j.variantGroup$)))},dependencies:[p.Sq,p.bT,h.cK,_.xA,_.gr,z.Dn,C.D,b.j,t.M,O.L9,P.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return s})();var X=n(2387);function R(s,x){}function G(s,x){if(1&s&&(o.qex(0),o.j41(1,"a",5),o.DNE(2,R,0,0,"ng-template",6),o.k0s(),o.bVm()),2&s){const l=o.XpG(),T=o.sdS(2);o.R7$(),o.Y8G("routerLink",l.variantgroup.link),o.R7$(),o.Y8G("ngTemplateOutlet",T)}}function L(s,x){}function U(s,x){if(1&s&&o.nrm(0,"cvc-variant-group-popover",9),2&s){const l=o.XpG(3);o.Y8G("variantGroupId",l.variantgroup.id)}}function A(s,x){if(1&s&&o.DNE(0,U,1,1,"cvc-variant-group-popover",8),2&s){const l=o.XpG(2);o.Y8G("ngIf",l.enablePopover)}}function W(s,x){if(1&s&&(o.j41(0,"nz-tag",7),o.DNE(1,L,0,0,"ng-template",6),o.k0s(),o.DNE(2,A,1,1,"ng-template",null,3,o.C5r)),2&s){const l=o.sdS(3),T=o.XpG(),j=o.sdS(6);o.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",T.enablePopover?"hover":null),o.R7$(),o.Y8G("ngTemplateOutlet",j)}}function K(s,x){}function H(s,x){if(1&s&&o.DNE(0,K,0,0,"ng-template",6),2&s){o.XpG();const l=o.sdS(2);o.Y8G("ngTemplateOutlet",l)}}function J(s,x){if(1&s&&(o.j41(0,"cvc-icon-badges",10),o.nrm(1,"i",11),o.nI1(2,"entityColor"),o.k0s(),o.EFF(3)),2&s){const l=o.XpG();o.Y8G("flagged",l.variantgroup.flagged)("entityColor",l.iconColor),o.R7$(),o.Y8G("nzTwotoneColor",o.bMT(2,4,"VariantGroup")),o.R7$(2),o.SpI(" ",l.variantgroup.name,"\n")}}let Q=(()=>{class s{set variantgroup(l){if(!l)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=l}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,d.P)("VariantGroup")}static#t=this.\u0275fac=function(T){return new(T||s)};static#n=this.\u0275cmp=o.VBU({type:s,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(T,j){if(1&T&&o.DNE(0,G,3,2,"ng-container",4)(1,W,4,4,"ng-template",null,0,o.C5r)(3,H,1,1,"ng-template",null,1,o.C5r)(5,J,4,6,"ng-template",null,2,o.C5r),2&T){const Z=o.sdS(4);o.Y8G("ngIf",j.linked)("ngIfElse",Z)}},dependencies:[p.bT,p.T3,m.Wk,S.L_,v.s,z.Dn,B,X.N,P.R],encapsulation:2,changeDetection:0})}return s})()},8134:($,M,n)=>{n.d(M,{l:()=>b});var d=n(177),o=n(1188),p=n(1236),m=n(5699),S=n(5103),v=n(7086),z=n(2142),I=n(1209),f=n(4917),u=n(5703),E=n(2e3),h=n(3953);let _=(()=>{class t{static#t=this.\u0275fac=function(y){return new(y||t)};static#n=this.\u0275mod=h.$C({type:t});static#e=this.\u0275inj=h.G2t({imports:[d.MD,u.Ti,E.WF,S.Y3,I.k,v.C,z.x,f.i]})}return t})();var C=n(4994);let b=(()=>{class t{static#t=this.\u0275fac=function(y){return new(y||t)};static#n=this.\u0275mod=h.$C({type:t});static#e=this.\u0275inj=h.G2t({imports:[d.MD,o.iI,p.MC,m.T,S.Y3,_,f.i,C.a]})}return t})()},5493:($,M,n)=>{n.d(M,{G:()=>h});var d=n(177),o=n(1188),p=n(5699),m=n(5703),S=n(7054),v=n(2e3),z=n(5103),I=n(4917),f=n(3953);let u=(()=>{class _{static#t=this.\u0275fac=function(t){return new(t||_)};static#n=this.\u0275mod=f.$C({type:_});static#e=this.\u0275inj=f.G2t({imports:[d.MD,z.Y3,m.Ti,v.WF,I.i,S.L]})}return _})();var E=n(1236);let h=(()=>{class _{static#t=this.\u0275fac=function(t){return new(t||_)};static#n=this.\u0275mod=f.$C({type:_});static#e=this.\u0275inj=f.G2t({imports:[d.MD,o.iI,z.Y3,p.T,E.MC,u]})}return _})()},7292:($,M,n)=>{n.d(M,{H:()=>p});var o=n(3953);let p=(()=>{class m{transform(v,z="display-string"){return void 0===v?"":"display-string"===z?function d(m){switch(m){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return m}}(v):`civic-${v.replace(/_/g,"").toLowerCase()}`}static#t=this.\u0275fac=function(z){return new(z||m)};static#n=this.\u0275pipe=o.EJ8({name:"therapyInteractionEnumDisplay",type:m,pure:!0})}return m})()},5128:($,M,n)=>{n.d(M,{K:()=>f});var d=n(177),o=n(8524),p=n(3953),m=n(9417),S=n(1011);const z={name:"comment-textarea",component:(()=>{class u extends o.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(h,_)=>`Comments must be at least ${_.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let h;return function(C){return(h||(h=p.xGo(u)))(C||u)}})();static#n=this.\u0275cmp=p.VBU({type:u,selectors:[["comment-textarea-type"]],features:[p.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(_,C){1&_&&p.nrm(0,"textarea",0),2&_&&p.Y8G("formControl",C.formControl)("formlyAttributes",C.field)},dependencies:[m.me,m.BC,m.l_,o.ch,S.Sy],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]};var I=n(8927);let f=(()=>{class u{static#t=this.\u0275fac=function(_){return new(_||u)};static#n=this.\u0275mod=p.$C({type:u});static#e=this.\u0275inj=p.G2t({imports:[d.MD,m.X1,o.qy.forChild({types:[z]}),I.PQ,S.j]})}return u})()}}]); \ No newline at end of file diff --git a/server/public/5958.50527ae55cd0fe6e.js b/server/public/5958.50527ae55cd0fe6e.js deleted file mode 100644 index 79409241c..000000000 --- a/server/public/5958.50527ae55cd0fe6e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[5958],{6936:(B,D,n)=>{n.d(D,{G:()=>G});var a=n(177),t=n(1188),c=n(5699),o=n(1236),f=n(5103),C=n(4666),T=n(4917),e=n(3146),z=n(4994),_=n(3953);let G=(()=>{class s{static#t=this.\u0275fac=function(E){return new(E||s)};static#n=this.\u0275mod=_.$C({type:s});static#o=this.\u0275inj=_.G2t({imports:[a.MD,t.iI,e.W2,c.T,o.MC,f.Y3,C.v,T.i,z.a]})}return s})()},9354:(B,D,n)=>{n.d(D,{e:()=>F});var a=n(177),t=n(2142),c=n(5703),o=n(2e3),f=n(7529),C=n(9541),T=n(5699),e=n(3953),z=n(7855);function _(d,M){if(1&d&&(e.j41(0,"nz-descriptions-item",9),e.EFF(1),e.k0s()),2&d){const g=M.$implicit;e.Y8G("nzTitle",g.source)("nzSpan",1),e.R7$(),e.SpI(" ",g.definition," ")}}function G(d,M){if(1&d&&(e.j41(0,"nz-descriptions",5),e.Z7z(1,_,2,3,"nz-descriptions-item",9,e.Vm6),e.k0s()),2&d){const g=e.XpG(2);e.Y8G("nzBordered",!0)("nzColumn",1),e.R7$(),e.Dyx(g.ncitDetails.definitions)}}function s(d,M){1&d&&(e.j41(0,"span",6),e.EFF(1," None "),e.k0s())}function p(d,M){if(1&d&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&d){const g=M.$implicit;e.R7$(),e.JRh(g)}}function u(d,M){if(1&d&&(e.j41(0,"nz-descriptions-item",9)(1,"cvc-tag-list"),e.Z7z(2,p,2,1,"nz-tag",null,e.Vm6),e.k0s()()),2&d){const g=M.$implicit,I=e.XpG(3);e.Y8G("nzTitle",g)("nzSpan",2),e.R7$(2),e.Dyx(I.synonymsBySource.get(g))}}function E(d,M){if(1&d&&(e.j41(0,"nz-descriptions",8),e.Z7z(1,u,4,2,"nz-descriptions-item",9,e.Vm6),e.k0s()),2&d){const g=e.XpG(2);e.Y8G("nzBordered",!0)("nzColumn",2),e.R7$(),e.Dyx(g.synonymsBySource.keys())}}function v(d,M){1&d&&(e.j41(0,"span",6),e.EFF(1," None "),e.k0s())}function x(d,M){if(1&d&&(e.j41(0,"nz-card",1)(1,"nz-col",2)(2,"nz-tabset",3)(3,"nz-tab",4),e.DNE(4,G,3,2,"nz-descriptions",5)(5,s,2,0,"span",6),e.k0s(),e.j41(6,"nz-tab",7),e.DNE(7,E,3,2,"nz-descriptions",8)(8,v,2,0,"span",6),e.k0s()()()()),2&d){const g=e.XpG();e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzAnimated",!1),e.R7$(2),e.vxM(g.ncitDetails.definitions.length>0?4:5),e.R7$(3),e.vxM(g.ncitDetails.synonyms.length>0?7:8)}}function R(d,M){1&d&&(e.j41(0,"span",6),e.EFF(1," Not Found "),e.k0s())}let F=(()=>{class d{constructor(){this.synonymsBySource=new Map}ngOnInit(){this.ncitDetails&&this.ncitDetails.synonyms.forEach(g=>{this.synonymsBySource.has(g.name)||this.synonymsBySource.set(g.name,[]),this.synonymsBySource.get(g.name)?.push(g.source)})}static#t=this.\u0275fac=function(I){return new(I||d)};static#n=this.\u0275cmp=e.VBU({type:d,selectors:[["cvc-ncit-details"]],inputs:{ncitDetails:"ncitDetails"},standalone:!0,features:[e.aNF],decls:3,vars:1,consts:[["noValue",""],["nzTitle","NCI Thesaurus"],[3,"nzSpan"],[3,"nzAnimated"],["nzTitle","Definitions"],["nzSize","small","nzLayout","vertical",3,"nzBordered","nzColumn"],["nz-typography","","nzType","secondary"],["nzTitle","Synonyms"],["nzSize","small",3,"nzBordered","nzColumn"],[3,"nzTitle","nzSpan"]],template:function(I,m){1&I&&e.DNE(0,x,9,4,"nz-card",1)(1,R,2,0,"ng-template",null,0,e.C5r),2&I&&e.vxM(m.ncitDetails?0:-1)},dependencies:[a.MD,o.WF,o.xA,o.gr,c.Ti,c.cK,T.T,T.s,f.f3,f.Uq,C.hM,C.JZ,C.rE,t.x,z.M],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]{width:100%}.key-col[_ngcontent-%COMP%]{text-align:right;font-weight:700}.button-col[_ngcontent-%COMP%]{text-align:right}"]})}return d})()},6719:(B,D,n)=>{n.d(D,{Q:()=>G});var a=n(3953),t=n(177),c=n(1672),o=n(5103);function f(s,p){if(1&s&&(a.j41(0,"span",5),a.EFF(1),a.k0s()),2&s){const u=a.XpG(2);a.R7$(),a.JRh(u.notification)}}function C(s,p){1&s&&a.EFF(0," Not specified ")}function T(s,p){if(1&s&&a.DNE(0,f,2,1,"span",4)(1,C,1,0,"ng-template",null,2,a.C5r),2&s){const u=a.sdS(2),E=a.XpG();a.Y8G("ngIf",E.notification)("ngIfElse",u)}}function e(s,p){if(1&s&&(a.j41(0,"a",6),a.nrm(1,"i",7),a.k0s()),2&s){const u=a.XpG(2);a.Y8G("href",u.reviseFormPath,a.B4B)}}function z(s,p){1&s&&a.nrm(0,"i",7)}function _(s,p){if(1&s&&a.DNE(0,e,2,1,"a",6)(1,z,1,0,"i",7),2&s){const u=a.XpG();a.vxM(u.reviseFormPath?0:1)}}let G=(()=>{class s{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(E){return new(E||s)};static#n=this.\u0275cmp=a.VBU({type:s,selectors:[["cvc-empty-revisable"]],inputs:{notification:"notification",reviseFormPath:"reviseFormPath"},decls:5,vars:2,consts:[["notFound",""],["notFoundImg",""],["defaultNotification",""],[3,"nzNotFoundContent","nzNotFoundImage"],["nz-typography","","nzType","secondary",4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary"],["target","_blank",3,"href"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#dfdfdf"]],template:function(E,v){if(1&E&&(a.nrm(0,"nz-empty",3),a.DNE(1,T,3,2,"ng-template",null,0,a.C5r)(3,_,2,1,"ng-template",null,1,a.C5r)),2&E){const x=a.sdS(2),R=a.sdS(4);a.Y8G("nzNotFoundContent",x)("nzNotFoundImage",R)}},dependencies:[t.bT,c.RW,o.Dn],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .ant-empty-image{height:35px;margin-top:4px;margin-bottom:4px}[_nghost-%COMP%] .ant-empty-image i, [_nghost-%COMP%] .ant-empty-image svg{height:100%;width:100%}"]})}return s})()},8254:(B,D,n)=>{n.d(D,{V:()=>f});var a=n(177),t=n(1672),c=n(5103),o=n(3953);let f=(()=>{class C{static#t=this.\u0275fac=function(z){return new(z||C)};static#n=this.\u0275mod=o.$C({type:C});static#o=this.\u0275inj=o.G2t({imports:[a.MD,t._v,c.Y3]})}return C})()},8238:(B,D,n)=>{n.d(D,{S:()=>b});var a=n(505),t=n(3953),c=n(177),o=n(1188),f=n(1236),C=n(5699),T=n(5103),e=n(9199),z=n(6354),_=n(5964),G=n(9145),s=n(5703),p=n(2e3),u=n(9062),E=n(959),v=n(7855),x=n(1774),R=n(3075);function F(i,y){if(1&i&&(t.nrm(0,"i",7),t.nI1(1,"entityColor"),t.EFF(2)),2&i){const r=t.XpG().ngIf;t.Y8G("nzTwotoneColor",t.bMT(1,2,"VariantGroup")),t.R7$(2),t.SpI(" ",r.name," ")}}function d(i,y){if(1&i&&t.nrm(0,"cvc-feature-variant-tag",10),2&i){const r=y.$implicit;t.Y8G("enablePopover",!1)("variant",r.node)}}function M(i,y){if(1&i&&(t.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),t.DNE(2,d,1,2,"cvc-feature-variant-tag",9),t.k0s()()),2&i){const r=t.XpG().ngIf;t.R7$(2),t.Y8G("ngForOf",r.variants.edges)}}function g(i,y){if(1&i&&t.nrm(0,"cvc-source-tag",13),2&i){const r=y.$implicit;t.Y8G("enablePopover",!1)("source",r)}}function I(i,y){if(1&i&&(t.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),t.DNE(2,g,1,2,"cvc-source-tag",12),t.k0s()()),2&i){const r=t.XpG().ngIf;t.R7$(2),t.Y8G("ngForOf",r.sources)}}function m(i,y){if(1&i&&(t.qex(0),t.j41(1,"nz-card",3),t.DNE(2,F,3,4,"ng-template",null,0,t.C5r),t.EFF(4),t.j41(5,"nz-descriptions",4),t.DNE(6,M,3,1,"nz-descriptions-item",5)(7,I,3,1,"nz-descriptions-item",6),t.k0s()(),t.bVm()),2&i){const r=y.ngIf,O=t.sdS(3);t.R7$(),t.Y8G("nzTitle",O),t.R7$(3),t.SpI(" ",r.description," "),t.R7$(),t.Y8G("nzColumn",2),t.R7$(),t.Y8G("ngIf",r.variants.edges.length>0),t.R7$(),t.Y8G("ngIf",r.sources.length>0)}}let U=(()=>{class i{constructor(r){this.gql=r}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,z.T)(({data:r})=>r?.variantGroup),(0,_.p)(e.kP))}static#t=this.\u0275fac=function(O){return new(O||i)(t.rXU(G.gwr))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(O,L){1&O&&(t.j41(0,"div",1),t.DNE(1,m,8,5,"ng-container",2),t.nI1(2,"ngrxPush"),t.k0s()),2&O&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,L.variantGroup$)))},dependencies:[c.Sq,c.bT,s.cK,p.xA,p.gr,T.Dn,u.D,E.j,v.M,x.L9,R.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return i})();var l=n(2387);function h(i,y){}function P(i,y){if(1&i&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,h,0,0,"ng-template",6),t.k0s(),t.bVm()),2&i){const r=t.XpG(),O=t.sdS(2);t.R7$(),t.Y8G("routerLink",r.variantgroup.link),t.R7$(),t.Y8G("ngTemplateOutlet",O)}}function S(i,y){}function N(i,y){if(1&i&&t.nrm(0,"cvc-variant-group-popover",9),2&i){const r=t.XpG(3);t.Y8G("variantGroupId",r.variantgroup.id)}}function V(i,y){if(1&i&&t.DNE(0,N,1,1,"cvc-variant-group-popover",8),2&i){const r=t.XpG(2);t.Y8G("ngIf",r.enablePopover)}}function $(i,y){if(1&i&&(t.j41(0,"nz-tag",7),t.DNE(1,S,0,0,"ng-template",6),t.k0s(),t.DNE(2,V,1,1,"ng-template",null,3,t.C5r)),2&i){const r=t.sdS(3),O=t.XpG(),L=t.sdS(6);t.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",r)("nzPopoverTrigger",O.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",L)}}function A(i,y){}function W(i,y){if(1&i&&t.DNE(0,A,0,0,"ng-template",6),2&i){t.XpG();const r=t.sdS(2);t.Y8G("ngTemplateOutlet",r)}}function K(i,y){if(1&i&&(t.j41(0,"cvc-icon-badges",10),t.nrm(1,"i",11),t.nI1(2,"entityColor"),t.k0s(),t.EFF(3)),2&i){const r=t.XpG();t.Y8G("flagged",r.variantgroup.flagged)("entityColor",r.iconColor),t.R7$(),t.Y8G("nzTwotoneColor",t.bMT(2,4,"VariantGroup")),t.R7$(2),t.SpI(" ",r.variantgroup.name,"\n")}}let b=(()=>{class i{set variantgroup(r){if(!r)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=r}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,a.P)("VariantGroup")}static#t=this.\u0275fac=function(O){return new(O||i)};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(O,L){if(1&O&&t.DNE(0,P,3,2,"ng-container",4)(1,$,4,4,"ng-template",null,0,t.C5r)(3,W,1,1,"ng-template",null,1,t.C5r)(5,K,4,6,"ng-template",null,2,t.C5r),2&O){const Y=t.sdS(4);t.Y8G("ngIf",L.linked)("ngIfElse",Y)}},dependencies:[c.bT,c.T3,o.Wk,f.L_,C.s,T.Dn,U,l.N,R.R],encapsulation:2,changeDetection:0})}return i})()},8134:(B,D,n)=>{n.d(D,{l:()=>E});var a=n(177),t=n(1188),c=n(1236),o=n(5699),f=n(5103),C=n(7086),T=n(2142),e=n(1209),z=n(4917),_=n(5703),G=n(2e3),s=n(3953);let p=(()=>{class v{static#t=this.\u0275fac=function(F){return new(F||v)};static#n=this.\u0275mod=s.$C({type:v});static#o=this.\u0275inj=s.G2t({imports:[a.MD,_.Ti,G.WF,f.Y3,e.k,C.C,T.x,z.i]})}return v})();var u=n(4994);let E=(()=>{class v{static#t=this.\u0275fac=function(F){return new(F||v)};static#n=this.\u0275mod=s.$C({type:v});static#o=this.\u0275inj=s.G2t({imports:[a.MD,t.iI,c.MC,o.T,f.Y3,p,z.i,u.a]})}return v})()},5128:(B,D,n)=>{n.d(D,{K:()=>z});var a=n(177),t=n(8524),c=n(3953),o=n(9417),f=n(1011);const T={name:"comment-textarea",component:(()=>{class _ extends t.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(s,p)=>`Comments must be at least ${p.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let s;return function(u){return(s||(s=c.xGo(_)))(u||_)}})();static#n=this.\u0275cmp=c.VBU({type:_,selectors:[["comment-textarea-type"]],features:[c.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(p,u){1&p&&c.nrm(0,"textarea",0),2&p&&c.Y8G("formControl",u.formControl)("formlyAttributes",u.field)},dependencies:[o.me,o.BC,o.l_,t.ch,f.Sy],encapsulation:2,changeDetection:0})}return _})(),wrappers:["form-field"]};var e=n(8927);let z=(()=>{class _{static#t=this.\u0275fac=function(p){return new(p||_)};static#n=this.\u0275mod=c.$C({type:_});static#o=this.\u0275inj=c.G2t({imports:[a.MD,o.X1,t.qy.forChild({types:[T]}),e.PQ,f.j]})}return _})()},8692:(B,D,n)=>{n.d(D,{j:()=>s});var a=n(177),t=n(8524),c=n(3953),o=n(513),f=n(6389),C=n(5930),T=n(1939);const z={name:"submit-button",component:(()=>{class p extends t.PU{constructor(){super(),this.defaultOptions={templateOptions:{submitLabel:"Submit",submitSize:"small"}}}static#t=this.\u0275fac=function(v){return new(v||p)};static#n=this.\u0275cmp=c.VBU({type:p,selectors:[["cvc-submit-button-type"]],features:[c.Vt3],decls:3,vars:2,consts:[["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","large",3,"disabled"]],template:function(v,x){1&v&&(c.j41(0,"cvc-form-buttons")(1,"button",0),c.EFF(2),c.k0s()()),2&v&&(c.R7$(),c.Y8G("disabled",!x.form.valid),c.R7$(),c.SpI(" ",x.to.submitLabel," "))},dependencies:[o.aO,f.c,C.p,T.l],encapsulation:2,changeDetection:0})}return p})()};var _=n(3842),G=n(9417);let s=(()=>{class p{static#t=this.\u0275fac=function(v){return new(v||p)};static#n=this.\u0275mod=c.$C({type:p});static#o=this.\u0275inj=c.G2t({imports:[a.MD,G.X1,t.qy.forChild({types:[z]}),o.Zw,_.k]})}return p})()},7481:(B,D,n)=>{n.d(D,{$:()=>I,u:()=>g});var a=n(4707),t=n(7336),c=n(177),o=n(3953),f=n(9417),C=n(1413),T=n(3726),e=n(6977),z=n(6042),_=n(7806),G=n(5930),s=n(5103),p=n(851),u=n(8203);const E=["switchElement"];function v(m,U){1&m&&o.nrm(0,"span",8)}function x(m,U){if(1&m&&(o.qex(0),o.EFF(1),o.bVm()),2&m){const l=o.XpG(2);o.R7$(),o.JRh(l.nzCheckedChildren)}}function R(m,U){if(1&m&&(o.qex(0),o.DNE(1,x,2,1,"ng-container",9),o.bVm()),2&m){const l=o.XpG();o.R7$(),o.Y8G("nzStringTemplateOutlet",l.nzCheckedChildren)}}function F(m,U){if(1&m&&(o.qex(0),o.EFF(1),o.bVm()),2&m){const l=o.XpG(2);o.R7$(),o.JRh(l.nzUnCheckedChildren)}}function d(m,U){if(1&m&&o.DNE(0,F,2,1,"ng-container",9),2&m){const l=o.XpG();o.Y8G("nzStringTemplateOutlet",l.nzUnCheckedChildren)}}let g=(()=>{class m{updateValue(l){this.isChecked!==l&&(this.isChecked=l,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(l,h,P,S,N,V){this.nzConfigService=l,this.host=h,this.ngZone=P,this.cdr=S,this.focusMonitor=N,this.directionality=V,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new C.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,e.Q)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,T.R)(this.host.nativeElement,"click").pipe((0,e.Q)(this.destroy$)).subscribe(l=>{l.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,T.R)(this.switchElement.nativeElement,"keydown").pipe((0,e.Q)(this.destroy$)).subscribe(l=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:h}=l;h!==t.UQ&&h!==t.LE&&h!==t.t6&&h!==t.Fm||(l.preventDefault(),this.ngZone.run(()=>{h===t.UQ?this.updateValue(!1):h===t.LE?this.updateValue(!0):(h===t.t6||h===t.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,e.Q)(this.destroy$)).subscribe(l=>{l||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(l){this.isChecked=l,this.cdr.markForCheck()}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}setDisabledState(l){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||l,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(h){return new(h||m)(o.rXU(z.yx),o.rXU(o.aKT),o.rXU(o.SKi),o.rXU(o.gRc),o.rXU(p.FN),o.rXU(u.dS,8))};static#n=this.\u0275cmp=o.VBU({type:m,selectors:[["nz-switch"]],viewQuery:function(h,P){if(1&h&&o.GBs(E,7),2&h){let S;o.mGM(S=o.lsd())&&(P.switchElement=S.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",o.L39],nzDisabled:[2,"nzDisabled","nzDisabled",o.L39],nzControl:[2,"nzControl","nzControl",o.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[o.Jv_([{provide:f.kq,useExisting:(0,o.Rfq)(()=>m),multi:!0}]),o.GFd,o.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(h,P){if(1&h&&(o.j41(0,"button",2,0)(2,"span",3),o.DNE(3,v,1,0,"span",4),o.k0s(),o.j41(4,"span",5),o.DNE(5,R,2,1,"ng-container",6)(6,d,1,1,"ng-template",null,1,o.C5r),o.k0s(),o.nrm(8,"div",7),o.k0s()),2&h){const S=o.sdS(7);o.AVh("ant-switch-checked",P.isChecked)("ant-switch-loading",P.nzLoading)("ant-switch-disabled",P.nzDisabled)("ant-switch-small","small"===P.nzSize)("ant-switch-rtl","rtl"===P.dir),o.Y8G("disabled",P.nzDisabled)("nzWaveExtraNode",!0),o.BMQ("id",P.nzId),o.R7$(3),o.Y8G("ngIf",P.nzLoading),o.R7$(2),o.Y8G("ngIf",P.isChecked)("ngIfElse",S)}},dependencies:[G.o7,G.p,s.Y3,s.Dn,c.bT,_.C,_.m],encapsulation:2,changeDetection:0})}return(0,a.Cg)([(0,z.H4)()],m.prototype,"nzSize",void 0),m})(),I=(()=>{class m{static#t=this.\u0275fac=function(h){return new(h||m)};static#n=this.\u0275mod=o.$C({type:m});static#o=this.\u0275inj=o.G2t({imports:[g]})}return m})()}}]); \ No newline at end of file diff --git a/server/public/6024.2cf87d0897668d31.js b/server/public/6024.2cf87d0897668d31.js deleted file mode 100644 index 4756fbed2..000000000 --- a/server/public/6024.2cf87d0897668d31.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6024],{5128:(O,I,a)=>{a.d(I,{K:()=>f});var r=a(177),z=a(8524),d=a(3953),g=a(9417),E=a(1011);const b={name:"comment-textarea",component:(()=>{class c extends z.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(u,v)=>`Comments must be at least ${v.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#e=this.\u0275fac=(()=>{let u;return function(m){return(u||(u=d.xGo(c)))(m||c)}})();static#n=this.\u0275cmp=d.VBU({type:c,selectors:[["comment-textarea-type"]],features:[d.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(v,m){1&v&&d.nrm(0,"textarea",0),2&v&&d.Y8G("formControl",m.formControl)("formlyAttributes",m.field)},dependencies:[g.me,g.BC,g.l_,z.ch,E.Sy],encapsulation:2,changeDetection:0})}return c})(),wrappers:["form-field"]};var y=a(8927);let f=(()=>{class c{static#e=this.\u0275fac=function(v){return new(v||c)};static#n=this.\u0275mod=d.$C({type:c});static#t=this.\u0275inj=d.G2t({imports:[r.MD,g.X1,z.qy.forChild({types:[b]}),y.PQ,E.j]})}return c})()},8345:(O,I,a)=>{a.r(I),a.d(I,{EvidenceDetailModule:()=>ct});var r=a(177),z=a(4124),d=a(7685),g=a(7391),E=a(1896),_=a(3062),b=a(513),y=a(5699),f=a(5103),c=a(1188),p=a(9145),u=a(9172),v=a(6977),m=a(4608),N=a(1413),X=a(4412),e=a(3953),A=a(1305),G=a(1774),$=a(3617),S=a(6389),L=a(5930),T=a(7529),C=a(5154),U=a(9765),B=a(8821),J=a(7428),w=a(5269),W=a(8719),Q=a(1263),Z=a(9945),k=a(6269),D=a(5473),H=a(3075);const K=n=>({flagged:n}),q=n=>["/evidence",n,"revise"],ee=n=>({existingEvidenceId:n});function ne(n,s){if(1&n&&(e.j41(0,"span",10)(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3," Parents:"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.JRh(t.name)}}function te(n,s){if(1&n&&(e.j41(0,"span",11),e.nrm(1,"cvc-molecular-profile-tag",12),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(),e.Y8G("molecularProfile",t.molecularProfile)("enablePopover",!1)}}function ie(n,s){1&n&&(e.j41(0,"nz-space",7),e.DNE(1,ne,4,1,"span",8)(2,te,2,2,"span",9),e.k0s())}function ae(n,s){1&n&&(e.j41(0,"nz-tag",26),e.EFF(1,"Flagged"),e.k0s()),2&n&&e.Y8G("nzColor","red")}function se(n,s){if(1&n&&(e.j41(0,"button",28,2),e.EFF(2," Revise "),e.k0s()),2&n){const t=e.sdS(1),i=e.XpG(3).ngIf;e.Y8G("routerLink",e.eq3(2,q,i.id))("nzType",t.isActive?"primary":"default")}}function oe(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,se,3,4,"button",27),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function ce(n,s){if(1&n&&(e.j41(0,"button",30,2),e.EFF(2," Flag "),e.k0s()),2&n){const t=e.sdS(1);e.Y8G("nzType",t.isActive?"primary":"default")}}function re(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,ce,3,1,"button",29),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function le(n,s){if(1&n&&e.nrm(0,"cvc-entity-subscription-button",32),2&n){const t=e.XpG(2).ngrxLet,i=e.XpG(2);e.Y8G("viewer",t)("subscribableId",i.subscribable.id)}}function de(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,le,1,2,"cvc-entity-subscription-button",31),e.k0s()),2&n){const t=e.XpG().ngrxLet,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.signedIn&&i.subscribable)}}function pe(n,s){if(1&n){const t=e.RV6();e.j41(0,"cvc-revert-entity-button",34),e.bIt("onReverted",function(o){e.eBV(t);const l=e.XpG(4);return e.Njj(l.onRevertCompleted(o))}),e.k0s()}if(2&n){const t=e.XpG(3).ngIf;e.Y8G("entityId",t.id)}}function me(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,pe,1,1,"cvc-revert-entity-button",33),e.k0s()),2&n){const t=e.XpG().ngrxLet,i=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",t.canModerate&&"SUBMITTED"!=i.status)}}function ge(n,s){if(1&n&&(e.j41(0,"button",36),e.nrm(1,"i",37),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.Y8G("queryParams",e.eq3(1,ee,t.id))}}function ve(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,ge,2,3,"button",35),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.canCurate)}}function ue(n,s){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",38),e.bIt("nzOnClose",function(){const o=e.eBV(t).$implicit,l=e.XpG(3);return e.Njj(l.onErrorBannerClose(o))}),e.k0s()}2&n&&e.Y8G("nzMessage",s.$implicit)}function _e(n,s){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",39),e.bIt("nzOnClose",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onSuccessBannerClose())}),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("nzMessage",t.successMessage)}}function fe(n,s){1&n&&e.nrm(0,"nz-alert",40)}function he(n,s){1&n&&e.nrm(0,"nz-alert",41)}function ze(n,s){if(1&n&&(e.j41(0,"nz-col",42),e.nrm(1,"cvc-contributor-avatars",43),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("subscribable",t.subscribable)}}function ye(n,s){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"cvc-moderate-entity-buttons",45),e.bIt("onModerated",function(o){e.eBV(t);const l=e.XpG(4);return e.Njj(l.onModerateCompleted(o))}),e.k0s()()}if(2&n){const t=e.XpG(3).ngIf;e.R7$(),e.Y8G("entityId",t.id)}}function Te(n,s){1&n&&e.nrm(0,"span")}function Ee(n,s){1&n&&(e.j41(0,"nz-space",44),e.DNE(1,ye,2,1,"span",18)(2,Te,1,0,"span",18),e.k0s())}function be(n,s){if(1&n&&(e.j41(0,"nz-page-header",13)(1,"nz-page-header-title",14),e.nrm(2,"i",15),e.nI1(3,"entityColor"),e.EFF(4),e.k0s(),e.j41(5,"nz-page-header-tags"),e.DNE(6,ae,2,1,"nz-tag",16),e.k0s(),e.j41(7,"nz-page-header-extra")(8,"nz-space",17),e.DNE(9,oe,2,1,"span",18)(10,re,2,1,"span",18)(11,de,2,1,"span",18)(12,me,2,1,"span",18)(13,ve,2,1,"span",18),e.k0s()(),e.j41(14,"nz-page-header-content"),e.DNE(15,ue,1,1,"nz-alert",19)(16,_e,1,1,"nz-alert",20)(17,fe,1,0,"nz-alert",21)(18,he,1,0,"nz-alert",22),e.j41(19,"cvc-tab-navigation",23),e.nI1(20,"ngrxPush"),e.DNE(21,ze,2,1,"ng-template",null,1,e.C5r),e.k0s(),e.DNE(23,Ee,3,0,"nz-space",24),e.j41(24,"div",25),e.nrm(25,"router-outlet"),e.k0s()()()),2&n){const t=s.ngrxLet,i=e.XpG().ngIf,o=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(14,K,i.flags.totalCount>0)),e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(3,10,"EvidenceItem")),e.R7$(2),e.SpI(" ",i.name," "),e.R7$(2),e.Y8G("ngIf",!1),e.R7$(9),e.Y8G("ngForOf",o.errors),e.R7$(),e.Y8G("ngIf",o.successMessage),e.R7$(),e.Y8G("ngIf","SUBMITTED"==i.status),e.R7$(),e.Y8G("ngIf","REJECTED"==i.status),e.R7$(),e.Y8G("tabs",e.bMT(20,12,o.tabs$)),e.R7$(4),e.Y8G("ngIf",(t.canModerate||t.signedIn&&t.id==(null==i.submissionEvent||null==i.submissionEvent.originatingUser?null:i.submissionEvent.originatingUser.id))&&"SUBMITTED"==i.status)}}function Ie(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",4),e.DNE(2,ie,3,0,"ng-template",null,0,e.C5r),e.j41(4,"div",5),e.nI1(5,"ngrxPush"),e.DNE(6,be,26,16,"nz-page-header",6),e.k0s(),e.bVm()),2&n){const t=s.ngIf,i=e.sdS(3),o=e.XpG();e.R7$(),e.Y8G("displayName",t.name)("relationsTpl",i),e.R7$(3),e.Y8G("flags",e.bMT(5,4,o.flagsTotal$)),e.R7$(2),e.Y8G("ngrxLet",o.viewer$)}}let Ce=(()=>{class n{constructor(t,i,o){this.gql=t,this.viewerService=i,this.route=o,this.errors=[],this.destroy$=new N.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new X.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({evidenceId:+l.evidenceId});let V=this.queryRef.valueChanges;this.loading$=V.pipe((0,m.E)("loading"),(0,u.Z)(!0)),this.evidence$=V.pipe((0,m.E)("data","evidenceItem")),this.flagsTotal$=this.evidence$.pipe((0,m.E)("flags","totalCount")),this.evidence$.pipe((0,v.Q)(this.destroy$)).subscribe({next:R=>{this.tabs$.next(this.defaultTabs.map(h=>"Revisions"===h.tabLabel?{badgeCount:R?.revisions.totalCount,...h}:"Flags"===h.tabLabel?{badgeCount:R?.flags.totalCount,...h}:"Comments"===h.tabLabel?{badgeCount:R?.comments.totalCount,badgeColor:"#cccccc",...h}:h))}}),this.subscribable={id:+l.evidenceId,entityType:p.V9U.EvidenceItem}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",this.queryRef?.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,this.queryRef?.refetch())}onErrorBannerClose(t){this.errors=this.errors?.filter(i=>i!=t)}onSuccessBannerClose(){this.successMessage=void 0}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(p.fQd),e.rXU(A.q),e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[["evidenceRelations",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName","relationsTpl"],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"molecularProfile","enablePopover"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[3,"nzColor",4,"ngIf"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item has been rejected.","nzType","error",4,"ngIf"],[3,"tabs"],["nzDirection","vertical",4,"ngIf"],[1,"content"],[3,"nzColor"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","EvidenceItem",3,"viewer","subscribableId",4,"ngIf"],["typename","EvidenceItem",3,"viewer","subscribableId"],["entityType","EvidenceItem",3,"entityId","onReverted",4,"ngIf"],["entityType","EvidenceItem",3,"onReverted","entityId"],["routerLink","/evidence/add/submit","nz-button","","nz-tooltip","","nzTooltipTitle","Clone This EID","nzSize","small",3,"queryParams",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nz-tooltip","","nzTooltipTitle","Clone This EID","nzSize","small",3,"queryParams"],["nz-icon","","nzType","copy"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["nzBanner","","nzMessage","This Evidence Item has been rejected.","nzType","error"],["id","contributors-col"],[3,"subscribable"],["nzDirection","vertical"],["entityType","EvidenceItem",3,"onModerated","entityId"]],template:function(i,o){1&i&&(e.DNE(0,Ie,7,6,"ng-container",3),e.nI1(1,"ngrxPush")),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.evidence$))},dependencies:[r.YU,r.Sq,r.bT,c.n3,c.Wk,c.wQ,G.Nj,$.Y,b.aO,S.c,L.p,T.Uq,f.Dn,y.s,_.WB,_.k9,_.zR,_.cC,_.ov,d.U5,d.Dq,g.Di,C.LH,U.n,B.H,J.v,w.o,W.r,Q.L,Z.N,k.f,D.z,G.L9,H.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var Ge=a(4873);let xe=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Ge.A]})}return n})();var Re=a(1661),$e=a(664);let Se=(()=>{class n{constructor(t,i){this.route=t,this.apollo=i,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:p.T31.EvidenceItem}}ngOnInit(){const t={id:`EvidenceItem:${this.commentable.id}`,fragment:p.LJ9,fragmentName:"evidenceSubmissionActivity"};try{const i=this.apollo.client.readFragment(t);this.submissionComment={createdAt:i.submissionActivity.createdAt,parsedComment:i.submissionActivity.parsedNote,commenter:i.submissionActivity.user}}catch(i){console.log(i)}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX),e.rXU(Re.Ic))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:2,consts:[[3,"creationComment","commentable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-comment-list",0),2&i&&e.Y8G("creationComment",o.submissionComment)("commentable",o.commentable)},dependencies:[$e.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var De=a(5703),Ye=a(1912),Pe=a(7268);let Me=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,T.f3,De.Ti,d.pc,Ye.i3,Pe.G]})}return n})();var je=a(4097);let Fe=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:p.lD4.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-flag-list-and-filter",0),2&i&&e.Y8G("flaggable",o.flaggable)},dependencies:[je.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Ve=a(6371);let Oe=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Ve.O]})}return n})();var Ne=a(4055);let Xe=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(i=>{this.subject={id:+i.evidenceId,entityType:p.BlQ.EvidenceItem}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(i,o){1&i&&e.nrm(0,"cvc-revisions-list-and-filter",0),2&i&&e.Y8G("moderated",o.subject)},dependencies:[Ne.B],encapsulation:2})}return n})();var Ae=a(7660),Le=a(9619),Ue=a(9192),Be=a(9213),Je=a(1448),Y=a(996),we=a(1542),We=a(797),Qe=a(9590),Ze=a(2142),ke=a(1209),He=a(9802),Ke=a(2839),P=a(4917),x=a(2e3),qe=a(7556),M=a(1236),en=a(7169);let nn=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,c.iI,T.f3,d.pc,g.kT,b.Zw,y.T,f.Y3,x.WF,C.Qt,M.MC,qe.F,P.i,Be.l,Ue.J,Qe.R,Ze.x,Ke.m,Le.u,ke.k,we.X,He._,Ae.u,We.h,Y.o,Je.B,en.W]})}return n})();var tn=a(2033);function an(n,s){1&n&&e.nrm(0,"i",4)}function sn(n,s){1&n&&e.nrm(0,"i",5)}function on(n,s){if(1&n&&(e.qex(0),e.DNE(1,an,1,0,"i",2)(2,sn,1,0,"i",3),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.filledStars),e.R7$(),e.Y8G("ngForOf",t.emptyStars)}}function cn(n,s){1&n&&e.EFF(0," -- ")}let rn=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[["noStars",""],[4,"ngIf","ngIfElse"],["nzType","star","nzTheme","fill","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","outline","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","fill","nz-icon",""],["nzType","star","nzTheme","outline","nz-icon",""]],template:function(i,o){if(1&i&&e.DNE(0,on,3,2,"ng-container",1)(1,cn,1,0,"ng-template",null,0,e.C5r),2&i){const l=e.sdS(2);e.Y8G("ngIf",o.starRating)("ngIfElse",l)}},dependencies:[r.Sq,r.bT,f.Dn],encapsulation:2})}return n})();var ln=a(9861),dn=a(311),pn=a(7855),mn=a(6408),gn=a(6726),vn=a(9062),un=a(7047),_n=a(9563),fn=a(4441),hn=a(5051),zn=a(9973),yn=a(4126),Tn=a(8763),En=a(8139);const bn=()=>[8,16],j=()=>[8,8],In=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),F=()=>({xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}),Cn=()=>({xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}),Gn=()=>({width:"300px"});function xn(n,s){if(1&n&&(e.nrm(0,"cvc-attribute-tag",19),e.nI1(1,"enumTooltip")),2&n){const t=e.XpG().ngIf;e.Y8G("cvcAttrValue",t.evidenceDirection)("nzTooltipTitle",e.ii3(1,2,t.evidenceDirection,"evidenceDirection",t.evidenceType,"EvidenceItem"))}}function Rn(n,s){if(1&n&&(e.nrm(0,"cvc-attribute-tag",19),e.nI1(1,"enumTooltip")),2&n){const t=e.XpG().ngIf;e.Y8G("cvcAttrValue",t.significance)("nzTooltipTitle",e.ii3(1,2,t.significance,"significance",t.evidenceType,"EvidenceItem"))}}function $n(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-clinical-trial-tag",44),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("clinicalTrial",t)}}function Sn(n,s){if(1&n&&(e.qex(0),e.DNE(1,$n,2,1,"ng-container",43),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.source.clinicalTrials)}}function Dn(n,s){if(1&n&&(e.j41(0,"nz-tag",45),e.nrm(1,"i",46),e.k0s()),2&n){e.XpG();const t=e.sdS(49);e.Y8G("nzPopoverContent",t)("nzPopoverOverlayStyle",e.lJ4(2,Gn))}}function Yn(n,s){if(1&n&&e.nrm(0,"cvc-comment-body",47),2&n){const t=e.XpG().ngIf;e.Y8G("commentBodySegments",t.submissionActivity.parsedNote)}}function Pn(n,s){if(1&n&&(e.EFF(0," Submitted "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.submissionActivity.createdAt),") ")}}function Mn(n,s){if(1&n&&(e.EFF(0," Accepted "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.acceptanceEvent.createdAt),") ")}}function jn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",26),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",31),e.k0s(),e.DNE(4,Mn,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),i=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",i.acceptanceEvent.originatingUser)}}function Fn(n,s){if(1&n&&(e.EFF(0," Rejected "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.rejectionEvent.createdAt),") ")}}function Vn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",49),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",31),e.k0s(),e.DNE(4,Fn,4,3,"ng-template",null,5,e.C5r),e.bVm()),2&n){const t=e.XpG(2).ngIf;e.R7$(3),e.Y8G("user",t.rejectionEvent.originatingUser)}}function On(n,s){if(1&n&&(e.qex(0),e.DNE(1,jn,6,2,"ng-container",6)(2,Vn,6,1,"ng-container",6),e.bVm()),2&n){const t=e.XpG().ngIf,i=e.XpG();e.R7$(),e.Y8G("ngIf",t.status==i.statusValues.Accepted&&t.acceptanceEvent),e.R7$(),e.Y8G("ngIf",t.status==i.statusValues.Rejected&&t.rejectionEvent)}}function Nn(n,s){if(1&n&&(e.qex(0),e.j41(1,"a",50),e.nrm(2,"cvc-disease-tag",51),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Mz_("routerLink","/diseases/",t.disease.id,""),e.R7$(),e.Y8G("disease",t.disease)}}function Xn(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-phenotype-tag",52),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("phenotype",t)}}function An(n,s){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Xn,2,1,"ng-container",43),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",t.phenotypes)}}function Ln(n,s){if(1&n&&e.eu8(0,53),2&n){e.XpG(2);const t=e.sdS(3);e.Y8G("ngTemplateOutlet",t)}}function Un(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-therapy-tag",54),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("therapy",t)}}function Bn(n,s){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,Un,2,1,"ng-container",43),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.therapies)}}function Jn(n,s){if(1&n&&(e.j41(0,"nz-descriptions-item",55),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.bMT(2,1,t.therapyInteractionType)," ")}}function wn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-row",7)(2,"nz-col",8)(3,"nz-row",7)(4,"nz-col",8)(5,"nz-descriptions",9)(6,"nz-descriptions-item",10)(7,"p",11),e.EFF(8),e.k0s()()()(),e.j41(9,"nz-col",8)(10,"nz-descriptions",12)(11,"nz-descriptions-item",13),e.nrm(12,"cvc-attribute-tag",14),e.nI1(13,"enumTooltip"),e.k0s(),e.j41(14,"nz-descriptions-item",15),e.DNE(15,xn,2,7,"cvc-attribute-tag",16),e.k0s(),e.j41(16,"nz-descriptions-item",17),e.DNE(17,Rn,2,7,"cvc-attribute-tag",16),e.k0s(),e.j41(18,"nz-descriptions-item",18),e.nrm(19,"cvc-attribute-tag",19),e.nI1(20,"enumTooltip"),e.k0s(),e.j41(21,"nz-descriptions-item",20)(22,"nz-tag",21),e.nI1(23,"enumTooltip"),e.j41(24,"strong"),e.EFF(25),e.k0s(),e.EFF(26),e.nI1(27,"enumTooltip"),e.k0s()(),e.j41(28,"nz-descriptions-item",22)(29,"nz-tag",21),e.nI1(30,"enumTooltip"),e.nrm(31,"cvc-evidence-rating",23),e.k0s()()()(),e.j41(32,"nz-col",8)(33,"nz-descriptions",12)(34,"nz-descriptions-item",24),e.nrm(35,"cvc-source-tag",25),e.k0s(),e.j41(36,"nz-descriptions-item",26),e.DNE(37,Sn,2,1,"ng-container",27),e.k0s()()()()(),e.j41(38,"nz-col",8)(39,"nz-row",7)(40,"nz-col",8)(41,"nz-descriptions",28)(42,"nz-descriptions-item",29),e.nrm(43,"cvc-status-tag",30),e.k0s(),e.j41(44,"nz-descriptions-item",26),e.EFF(45," by "),e.nrm(46,"cvc-user-tag",31),e.DNE(47,Dn,2,3,"nz-tag",32)(48,Yn,1,1,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(50,Pn,4,3,"ng-template",null,3,e.C5r)(52,On,3,2,"ng-container",6),e.k0s()(),e.j41(53,"nz-col",8)(54,"nz-descriptions",12)(55,"nz-descriptions-item",33),e.nrm(56,"cvc-molecular-profile-tag",34),e.k0s(),e.j41(57,"nz-descriptions-item",35),e.nrm(58,"cvc-mp-tag-name",36),e.k0s(),e.j41(59,"nz-descriptions-item",37),e.DNE(60,Nn,3,3,"ng-container",27),e.k0s(),e.j41(61,"nz-descriptions-item",26),e.DNE(62,An,3,1,"ng-container",27),e.k0s(),e.j41(63,"nz-descriptions-item",26),e.qex(64,38),e.DNE(65,Ln,1,1,"ng-template",39)(66,Bn,2,1,"ng-template",40),e.bVm(),e.k0s(),e.DNE(67,Jn,3,3,"nz-descriptions-item",41),e.k0s()()()(),e.j41(68,"nz-col",8),e.nrm(69,"cvc-assertions-table",42),e.k0s()(),e.bVm()),2&n){const t=s.ngIf,i=e.sdS(51);e.XpG();const o=e.sdS(3),l=e.sdS(5);e.R7$(),e.Y8G("nzGutter",e.lJ4(68,bn)),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzGutter",e.lJ4(69,j)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("nzEllipsisRows",14),e.R7$(),e.SpI(" ",t.description," "),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(70,In)),e.R7$(2),e.Y8G("cvcAttrValue",t.evidenceType)("nzTooltipTitle",e.i5U(13,53,t.evidenceType,"evidenceType")),e.R7$(3),e.Y8G("ngIf","NA"!==t.evidenceDirection)("ngIfElse",o),e.R7$(2),e.Y8G("ngIf","NA"!==t.significance)("ngIfElse",o),e.R7$(2),e.Y8G("cvcAttrValue",t.variantOrigin)("nzTooltipTitle",e.i5U(20,56,t.variantOrigin,"variantOrigin")),e.R7$(3),e.Y8G("nzTooltipTitle",e.i5U(23,59,t.evidenceLevel,"evidenceLevel")),e.R7$(3),e.JRh(t.evidenceLevel),e.R7$(),e.SpI(" - ",e.i5U(27,62,t.evidenceLevel,"evidenceLevelBrief")," "),e.R7$(3),e.Y8G("nzTooltipTitle",e.i5U(30,65,t.evidenceRating,"evidenceRating")),e.R7$(2),e.Y8G("starRating",t.evidenceRating),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(71,F)),e.R7$(2),e.Y8G("source",t.source),e.R7$(),e.Y8G("nzTitle",t.source.clinicalTrials&&t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.R7$(),e.Y8G("ngIf",t.source.clinicalTrials&&t.source.clinicalTrials.length>0)("ngIfElse",l),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzGutter",e.lJ4(72,j)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(73,Cn)),e.R7$(2),e.Y8G("status",t.status),e.R7$(),e.Y8G("nzTitle",i),e.R7$(2),e.Y8G("user",t.submissionEvent.originatingUser),e.R7$(),e.Y8G("ngIf",t.submissionActivity.parsedNote.length>0),e.R7$(5),e.Y8G("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(74,F)),e.R7$(2),e.Y8G("molecularProfile",t.molecularProfile)("enablePopover",!0),e.R7$(2),e.Y8G("nameSegments",t.molecularProfile.parsedName),e.R7$(2),e.Y8G("ngIf",t.disease)("ngIfElse",o),e.R7$(),e.Y8G("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),e.R7$(),e.Y8G("ngIf",t.phenotypes.length>0)("ngIfElse",l),e.R7$(),e.Y8G("nzTitle",t.therapies.length>1?"Therapies":"Therapy"),e.R7$(),e.Y8G("ngPlural",t.therapies.length),e.R7$(3),e.Y8G("ngIf",t.therapyInteractionType),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Mz_("cvcTitle","",t.name," Assertions"),e.Y8G("evidenceId",t.id)}}function Wn(n,s){1&n&&e.nrm(0,"cvc-empty-value",56)}function Qn(n,s){1&n&&e.nrm(0,"cvc-empty-value",57)}let Zn=(()=>{class n{constructor(t,i){var o;if(this.gql=t,this.route=i,this.statusValues=p.YSN,null==(o=this.evidenceId?this.evidenceId:+this.route.snapshot.params.evidenceId))throw new Error("Must pass in an evidence ID as an input or via the route.");this.queryRef=this.gql.watch({evidenceId:o});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,m.E)("loading"),(0,u.Z)(!0)),this.evidence$=l.pipe((0,m.E)("data","evidenceItem")),this.subscribable={entityType:p.V9U.EvidenceItem,id:o}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(p.Ype),e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["submissionCommentTemplate",""],["submittedTitle",""],["acceptedTitle",""],["rejectedTitle",""],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Statement"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["cvcAttrName","evidenceType","nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Direction"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle",4,"ngIf","ngIfElse"],["nzTitle","Significance"],["nzTitle","Variant Origin"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Level"],["nz-tooltip","",3,"nzTooltipTitle"],["nzTitle","Rating"],[3,"starRating"],["nzTitle","Source"],[3,"source"],[3,"nzTitle"],[4,"ngIf","ngIfElse"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Status"],[3,"status"],[3,"user"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["nzTitle","Molecular Profile"],[3,"molecularProfile","enablePopover"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Disease"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["nzTitle","Therapy Interaction Type",4,"ngIf"],[3,"evidenceId","cvcTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],["nz-icon","","nzType","align-left"],[3,"commentBodySegments"],["nz-typography","","nzType","secondary"],["nzTitle","Rejected"],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(i,o){1&i&&(e.DNE(0,wn,70,75,"ng-container",6),e.nI1(1,"ngrxPush"),e.DNE(2,Wn,1,0,"ng-template",null,0,e.C5r)(4,Qn,1,0,"ng-template",null,1,e.C5r)),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.evidence$))},dependencies:[r.Sq,r.bT,r.T3,r.IJ,r.WO,c.Wk,T.Uq,T.e,g.Di,S.c,y.s,f.Dn,x.xA,x.gr,C.LH,M.L_,tn.o,rn,ln.Y,dn.g,pn.M,mn.r,gn.X,vn.D,un.A,_n.R,fn.z,hn.y,D.z,zn.G,yn.p,r.PV,G.L9,Tn.k,En.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}.summary-block[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}"]})}return n})();var kn=a(9543);let Hn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.evidenceId,entityType:p.V9U.EvidenceItem}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-event-feed",0),2&i&&e.Y8G("subscribable",o.subscribable)},dependencies:[kn.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Kn=a(326);let qn=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Kn.p]})}return n})();const et=[{path:"",component:Ce,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:Zn,data:{breadcrumb:"Summary"}},{path:"comments",component:Se,data:{breadcrumb:"Comments"}},{path:"revisions",component:Xe,data:{breadcrumb:"Revisions"}},{path:"flags",component:Fe,data:{breadcrumb:"Flags"}},{path:"events",component:Hn,data:{breadcrumb:"Events"}}]}];let nt=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[c.iI.forChild(et),nn,xe,Oe,Me,qn,c.iI]})}return n})();var tt=a(5736),it=a(590),at=a(78),st=a(1532),ot=a(8103);let ct=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,nt,$.$,b.Zw,T.f3,f.Y3,y.T,_.ZJ,d.pc,g.kT,C.Qt,z.C,E.Y,tt.V,E.Y,at.U,P.i,it.W,z.C,st.W,ot.m,Y.o]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/6024.993db6c47ef3c530.js b/server/public/6024.993db6c47ef3c530.js new file mode 100644 index 000000000..6e776eb8d --- /dev/null +++ b/server/public/6024.993db6c47ef3c530.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6024],{5128:(N,I,a)=>{a.d(I,{K:()=>f});var r=a(177),z=a(8524),d=a(3953),g=a(9417),E=a(1011);const b={name:"comment-textarea",component:(()=>{class c extends z.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(u,v)=>`Comments must be at least ${v.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#e=this.\u0275fac=(()=>{let u;return function(m){return(u||(u=d.xGo(c)))(m||c)}})();static#n=this.\u0275cmp=d.VBU({type:c,selectors:[["comment-textarea-type"]],features:[d.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(v,m){1&v&&d.nrm(0,"textarea",0),2&v&&d.Y8G("formControl",m.formControl)("formlyAttributes",m.field)},dependencies:[g.me,g.BC,g.l_,z.ch,E.Sy],encapsulation:2,changeDetection:0})}return c})(),wrappers:["form-field"]};var y=a(8927);let f=(()=>{class c{static#e=this.\u0275fac=function(v){return new(v||c)};static#n=this.\u0275mod=d.$C({type:c});static#t=this.\u0275inj=d.G2t({imports:[r.MD,g.X1,z.qy.forChild({types:[b]}),y.PQ,E.j]})}return c})()},8345:(N,I,a)=>{a.r(I),a.d(I,{EvidenceDetailModule:()=>ot});var r=a(177),z=a(4124),d=a(7685),g=a(7391),E=a(1896),_=a(3062),b=a(513),y=a(5699),f=a(5103),c=a(1188),p=a(9145),u=a(9172),v=a(6977),m=a(4608),X=a(1413),A=a(4412),e=a(3953),L=a(1305),G=a(1774),$=a(3617),S=a(6389),U=a(5930),T=a(7529),C=a(5154),B=a(9765),w=a(8821),J=a(7428),W=a(5269),Q=a(8719),Z=a(1263),k=a(9945),H=a(6269),Y=a(5473),K=a(3075);const q=n=>({flagged:n}),ee=n=>["/evidence",n,"revise"],ne=n=>({existingEvidenceId:n});function te(n,s){if(1&n&&(e.j41(0,"span",10)(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3," Parents:"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.JRh(t.name)}}function ie(n,s){if(1&n&&(e.j41(0,"span",11),e.nrm(1,"cvc-molecular-profile-tag",12),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(),e.Y8G("molecularProfile",t.molecularProfile)("enablePopover",!1)}}function ae(n,s){1&n&&(e.j41(0,"nz-space",7),e.DNE(1,te,4,1,"span",8)(2,ie,2,2,"span",9),e.k0s())}function se(n,s){1&n&&(e.j41(0,"nz-tag",26),e.EFF(1,"Flagged"),e.k0s()),2&n&&e.Y8G("nzColor","red")}function oe(n,s){if(1&n&&(e.j41(0,"button",28,2),e.EFF(2," Revise "),e.k0s()),2&n){const t=e.sdS(1),i=e.XpG(3).ngIf;e.Y8G("routerLink",e.eq3(2,ee,i.id))("nzType",t.isActive?"primary":"default")}}function ce(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,oe,3,4,"button",27),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function re(n,s){if(1&n&&(e.j41(0,"button",30,2),e.EFF(2," Flag "),e.k0s()),2&n){const t=e.sdS(1);e.Y8G("nzType",t.isActive?"primary":"default")}}function le(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,re,3,1,"button",29),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function de(n,s){if(1&n&&e.nrm(0,"cvc-entity-subscription-button",32),2&n){const t=e.XpG(2).ngrxLet,i=e.XpG(2);e.Y8G("viewer",t)("subscribableId",i.subscribable.id)}}function pe(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,de,1,2,"cvc-entity-subscription-button",31),e.k0s()),2&n){const t=e.XpG().ngrxLet,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.signedIn&&i.subscribable)}}function me(n,s){if(1&n){const t=e.RV6();e.j41(0,"cvc-revert-entity-button",34),e.bIt("onReverted",function(o){e.eBV(t);const l=e.XpG(4);return e.Njj(l.onRevertCompleted(o))}),e.k0s()}if(2&n){const t=e.XpG(3).ngIf;e.Y8G("entityId",t.id)}}function ge(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,me,1,1,"cvc-revert-entity-button",33),e.k0s()),2&n){const t=e.XpG().ngrxLet,i=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",t.canModerate&&"SUBMITTED"!=i.status)}}function ve(n,s){if(1&n&&(e.j41(0,"button",36),e.nrm(1,"i",37),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.Y8G("queryParams",e.eq3(1,ne,t.id))}}function ue(n,s){if(1&n&&(e.j41(0,"span"),e.DNE(1,ve,2,3,"button",35),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.canCurate)}}function _e(n,s){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",38),e.bIt("nzOnClose",function(){const o=e.eBV(t).$implicit,l=e.XpG(3);return e.Njj(l.onErrorBannerClose(o))}),e.k0s()}2&n&&e.Y8G("nzMessage",s.$implicit)}function fe(n,s){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",39),e.bIt("nzOnClose",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.onSuccessBannerClose())}),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("nzMessage",t.successMessage)}}function he(n,s){1&n&&e.nrm(0,"nz-alert",40)}function ze(n,s){1&n&&e.nrm(0,"nz-alert",41)}function ye(n,s){if(1&n&&(e.j41(0,"nz-col",42),e.nrm(1,"cvc-contributor-avatars",43),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("subscribable",t.subscribable)}}function Te(n,s){if(1&n){const t=e.RV6();e.j41(0,"span")(1,"cvc-moderate-entity-buttons",45),e.bIt("onModerated",function(o){e.eBV(t);const l=e.XpG(4);return e.Njj(l.onModerateCompleted(o))}),e.k0s()()}if(2&n){const t=e.XpG(3).ngIf;e.R7$(),e.Y8G("entityId",t.id)}}function Ee(n,s){1&n&&e.nrm(0,"span")}function be(n,s){1&n&&(e.j41(0,"nz-space",44),e.DNE(1,Te,2,1,"span",18)(2,Ee,1,0,"span",18),e.k0s())}function Ie(n,s){if(1&n&&(e.j41(0,"nz-page-header",13)(1,"nz-page-header-title",14),e.nrm(2,"i",15),e.nI1(3,"entityColor"),e.EFF(4),e.k0s(),e.j41(5,"nz-page-header-tags"),e.DNE(6,se,2,1,"nz-tag",16),e.k0s(),e.j41(7,"nz-page-header-extra")(8,"nz-space",17),e.DNE(9,ce,2,1,"span",18)(10,le,2,1,"span",18)(11,pe,2,1,"span",18)(12,ge,2,1,"span",18)(13,ue,2,1,"span",18),e.k0s()(),e.j41(14,"nz-page-header-content"),e.DNE(15,_e,1,1,"nz-alert",19)(16,fe,1,1,"nz-alert",20)(17,he,1,0,"nz-alert",21)(18,ze,1,0,"nz-alert",22),e.j41(19,"cvc-tab-navigation",23),e.nI1(20,"ngrxPush"),e.DNE(21,ye,2,1,"ng-template",null,1,e.C5r),e.k0s(),e.DNE(23,be,3,0,"nz-space",24),e.j41(24,"div",25),e.nrm(25,"router-outlet"),e.k0s()()()),2&n){const t=s.ngrxLet,i=e.XpG().ngIf,o=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(14,q,i.flags.totalCount>0)),e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(3,10,"EvidenceItem")),e.R7$(2),e.SpI(" ",i.name," "),e.R7$(2),e.Y8G("ngIf",!1),e.R7$(9),e.Y8G("ngForOf",o.errors),e.R7$(),e.Y8G("ngIf",o.successMessage),e.R7$(),e.Y8G("ngIf","SUBMITTED"==i.status),e.R7$(),e.Y8G("ngIf","REJECTED"==i.status),e.R7$(),e.Y8G("tabs",e.bMT(20,12,o.tabs$)),e.R7$(4),e.Y8G("ngIf",(t.canModerate||t.signedIn&&t.id==(null==i.submissionEvent||null==i.submissionEvent.originatingUser?null:i.submissionEvent.originatingUser.id))&&"SUBMITTED"==i.status)}}function Ce(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",4),e.DNE(2,ae,3,0,"ng-template",null,0,e.C5r),e.j41(4,"div",5),e.nI1(5,"ngrxPush"),e.DNE(6,Ie,26,16,"nz-page-header",6),e.k0s(),e.bVm()),2&n){const t=s.ngIf,i=e.sdS(3),o=e.XpG();e.R7$(),e.Y8G("displayName",t.name)("relationsTpl",i),e.R7$(3),e.Y8G("flags",e.bMT(5,4,o.flagsTotal$)),e.R7$(2),e.Y8G("ngrxLet",o.viewer$)}}let Ge=(()=>{class n{constructor(t,i,o){this.gql=t,this.viewerService=i,this.route=o,this.errors=[],this.destroy$=new X.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new A.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(l=>{this.queryRef=this.gql.watch({evidenceId:+l.evidenceId});let O=this.queryRef.valueChanges;this.loading$=O.pipe((0,m.E)("loading"),(0,u.Z)(!0)),this.evidence$=O.pipe((0,m.E)("data","evidenceItem")),this.flagsTotal$=this.evidence$.pipe((0,m.E)("flags","totalCount")),this.evidence$.pipe((0,v.Q)(this.destroy$)).subscribe({next:R=>{this.tabs$.next(this.defaultTabs.map(h=>"Revisions"===h.tabLabel?{badgeCount:R?.revisions.totalCount,...h}:"Flags"===h.tabLabel?{badgeCount:R?.flags.totalCount,...h}:"Comments"===h.tabLabel?{badgeCount:R?.comments.totalCount,badgeColor:"#cccccc",...h}:h))}}),this.subscribable={id:+l.evidenceId,entityType:p.V9U.EvidenceItem}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}onRevertCompleted(t){!0===t?(this.errors=[],this.successMessage="Evidence Item reverted to submitted status.",this.queryRef?.refetch()):(this.errors=t,this.successMessage=void 0)}onModerateCompleted(t){Array.isArray(t)?(this.errors=t,this.successMessage=void 0):(this.errors=[],this.successMessage=`Evidence successfully ${t}.`,this.queryRef?.refetch())}onErrorBannerClose(t){this.errors=this.errors?.filter(i=>i!=t)}onSuccessBannerClose(){this.successMessage=void 0}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(p.fQd),e.rXU(L.q),e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["evidence-detail"]],decls:2,vars:3,consts:[["evidenceRelations",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],[4,"ngIf"],[3,"displayName","relationsTpl"],["cvcFlaggable","",3,"flags"],["class","site-page-header",4,"ngrxLet"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"molecularProfile","enablePopover"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[3,"nzColor",4,"ngIf"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["nzBanner","","nzType","error","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngFor","ngForOf"],["nzBanner","","nzType","success","nzCloseable","",3,"nzMessage","nzOnClose",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning",4,"ngIf"],["nzBanner","","nzMessage","This Evidence Item has been rejected.","nzType","error",4,"ngIf"],[3,"tabs"],["nzDirection","vertical",4,"ngIf"],[1,"content"],[3,"nzColor"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["typename","EvidenceItem",3,"viewer","subscribableId",4,"ngIf"],["typename","EvidenceItem",3,"viewer","subscribableId"],["entityType","EvidenceItem",3,"entityId","onReverted",4,"ngIf"],["entityType","EvidenceItem",3,"onReverted","entityId"],["routerLink","/evidence/add/submit","nz-button","","nz-tooltip","","nzTooltipTitle","Clone This EID","nzSize","small",3,"queryParams",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nz-tooltip","","nzTooltipTitle","Clone This EID","nzSize","small",3,"queryParams"],["nz-icon","","nzType","copy"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzType","success","nzCloseable","",3,"nzOnClose","nzMessage"],["nzBanner","","nzMessage","This Evidence Item is in a 'submitted' state and has not yet been reviewed by an editor.","nzType","warning"],["nzBanner","","nzMessage","This Evidence Item has been rejected.","nzType","error"],["id","contributors-col"],[3,"subscribable"],["nzDirection","vertical"],["entityType","EvidenceItem",3,"onModerated","entityId"]],template:function(i,o){1&i&&(e.DNE(0,Ce,7,6,"ng-container",3),e.nI1(1,"ngrxPush")),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.evidence$))},dependencies:[r.YU,r.Sq,r.bT,c.n3,c.Wk,c.wQ,G.Nj,$.Y,b.aO,S.c,U.p,T.Uq,f.Dn,y.s,_.WB,_.k9,_.zR,_.cC,_.ov,d.U5,d.Dq,g.Di,C.LH,B.n,w.H,J.v,W.o,Q.r,Z.L,k.N,H.f,Y.z,G.L9,K.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var xe=a(4873);let Re=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,xe.A]})}return n})();var $e=a(1661),Se=a(664);let Ye=(()=>{class n{constructor(t,i){this.route=t,this.apollo=i,this.commentable={id:+this.route.snapshot.params.evidenceId,entityType:p.T31.EvidenceItem}}ngOnInit(){const t={id:`EvidenceItem:${this.commentable.id}`,fragment:p.LJ9,fragmentName:"evidenceSubmissionActivity"};try{const i=this.apollo.client.readFragment(t);this.submissionComment={id:99999,__typename:"Comment",comment:"",deleted:!1,createdAt:i.submissionActivity.createdAt,parsedComment:i.submissionActivity.parsedNote,commenter:i.submissionActivity.user}}catch(i){console.log(i)}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX),e.rXU($e.Ic))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-comments"]],decls:1,vars:2,consts:[[3,"creationComment","commentable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-comment-list",0),2&i&&e.Y8G("creationComment",o.submissionComment)("commentable",o.commentable)},dependencies:[Se.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var De=a(5703),Pe=a(1912),Me=a(7268);let je=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,T.f3,De.Ti,d.pc,Pe.i3,Me.G]})}return n})();var Fe=a(4097);let Ve=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:p.lD4.EvidenceItem,id:+this.route.snapshot.params.evidenceId}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(i,o){1&i&&e.nrm(0,"cvc-flag-list-and-filter",0),2&i&&e.Y8G("flaggable",o.flaggable)},dependencies:[Fe.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Oe=a(6371);let Ne=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,Oe.O]})}return n})();var Xe=a(4055);let Ae=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(i=>{this.subject={id:+i.evidenceId,entityType:p.BlQ.EvidenceItem}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(i,o){1&i&&e.nrm(0,"cvc-revisions-list-and-filter",0),2&i&&e.Y8G("moderated",o.subject)},dependencies:[Xe.B],encapsulation:2})}return n})();var Le=a(7660),Ue=a(9619),Be=a(9192),we=a(9213),Je=a(1448),D=a(996),We=a(1542),Qe=a(797),Ze=a(9590),ke=a(2142),He=a(1209),Ke=a(9802),qe=a(2839),P=a(4917),x=a(2e3),en=a(7556),M=a(1236),nn=a(7169);let tn=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,c.iI,T.f3,d.pc,g.kT,b.Zw,y.T,f.Y3,x.WF,C.Qt,M.MC,en.F,P.i,we.l,Be.J,Ze.R,ke.x,qe.m,Ue.u,He.k,We.X,Ke._,Le.u,Qe.h,D.o,Je.B,nn.W]})}return n})();var an=a(2033);function sn(n,s){1&n&&e.nrm(0,"i",4)}function on(n,s){1&n&&e.nrm(0,"i",5)}function cn(n,s){if(1&n&&(e.qex(0),e.DNE(1,sn,1,0,"i",2)(2,on,1,0,"i",3),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.filledStars),e.R7$(),e.Y8G("ngForOf",t.emptyStars)}}function rn(n,s){1&n&&e.EFF(0," -- ")}let ln=(()=>{class n{constructor(){this.filledStars=[],this.emptyStars=[]}ngOnInit(){this.starRating&&(this.filledStars=Array(this.starRating),this.emptyStars=Array(5-this.starRating))}static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-rating"]],inputs:{starRating:"starRating"},decls:3,vars:2,consts:[["noStars",""],[4,"ngIf","ngIfElse"],["nzType","star","nzTheme","fill","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","outline","nz-icon","",4,"ngFor","ngForOf"],["nzType","star","nzTheme","fill","nz-icon",""],["nzType","star","nzTheme","outline","nz-icon",""]],template:function(i,o){if(1&i&&e.DNE(0,cn,3,2,"ng-container",1)(1,rn,1,0,"ng-template",null,0,e.C5r),2&i){const l=e.sdS(2);e.Y8G("ngIf",o.starRating)("ngIfElse",l)}},dependencies:[r.Sq,r.bT,f.Dn],encapsulation:2})}return n})();var dn=a(9861),pn=a(311),mn=a(7855),gn=a(6408),vn=a(6726),un=a(9062),_n=a(7047),fn=a(9563),hn=a(4441),zn=a(5051),yn=a(9973),Tn=a(4126),En=a(8763),bn=a(8139);const In=()=>[8,16],j=()=>[8,8],Cn=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),F=()=>({xxl:2,xl:1,lg:1,md:1,sm:1,xs:1}),Gn=()=>({xxl:3,xl:3,lg:3,md:1,sm:1,xs:1}),xn=()=>({width:"300px"});function Rn(n,s){if(1&n&&(e.nrm(0,"cvc-attribute-tag",19),e.nI1(1,"enumTooltip")),2&n){const t=e.XpG().ngIf;e.Y8G("cvcAttrValue",t.evidenceDirection)("nzTooltipTitle",e.ii3(1,2,t.evidenceDirection,"evidenceDirection",t.evidenceType,"EvidenceItem"))}}function $n(n,s){if(1&n&&(e.nrm(0,"cvc-attribute-tag",19),e.nI1(1,"enumTooltip")),2&n){const t=e.XpG().ngIf;e.Y8G("cvcAttrValue",t.significance)("nzTooltipTitle",e.ii3(1,2,t.significance,"significance",t.evidenceType,"EvidenceItem"))}}function Sn(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-clinical-trial-tag",44),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("clinicalTrial",t)}}function Yn(n,s){if(1&n&&(e.qex(0),e.DNE(1,Sn,2,1,"ng-container",43),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.source.clinicalTrials)}}function Dn(n,s){if(1&n&&(e.j41(0,"nz-tag",45),e.nrm(1,"i",46),e.k0s()),2&n){e.XpG();const t=e.sdS(49);e.Y8G("nzPopoverContent",t)("nzPopoverOverlayStyle",e.lJ4(2,xn))}}function Pn(n,s){if(1&n&&e.nrm(0,"cvc-comment-body",47),2&n){const t=e.XpG().ngIf;e.Y8G("commentBodySegments",t.submissionActivity.parsedNote)}}function Mn(n,s){if(1&n&&(e.EFF(0," Submitted "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.submissionActivity.createdAt),") ")}}function jn(n,s){if(1&n&&(e.EFF(0," Accepted "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.acceptanceEvent.createdAt),") ")}}function Fn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",26),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",31),e.k0s(),e.DNE(4,jn,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),i=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",i.acceptanceEvent.originatingUser)}}function Vn(n,s){if(1&n&&(e.EFF(0," Rejected "),e.j41(1,"span",48),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.rejectionEvent.createdAt),") ")}}function On(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",49),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",31),e.k0s(),e.DNE(4,Vn,4,3,"ng-template",null,5,e.C5r),e.bVm()),2&n){const t=e.XpG(2).ngIf;e.R7$(3),e.Y8G("user",t.rejectionEvent.originatingUser)}}function Nn(n,s){if(1&n&&(e.qex(0),e.DNE(1,Fn,6,2,"ng-container",6)(2,On,6,1,"ng-container",6),e.bVm()),2&n){const t=e.XpG().ngIf,i=e.XpG();e.R7$(),e.Y8G("ngIf",t.status==i.statusValues.Accepted&&t.acceptanceEvent),e.R7$(),e.Y8G("ngIf",t.status==i.statusValues.Rejected&&t.rejectionEvent)}}function Xn(n,s){if(1&n&&(e.qex(0),e.j41(1,"a",50),e.nrm(2,"cvc-disease-tag",51),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Mz_("routerLink","/diseases/",t.disease.id,""),e.R7$(),e.Y8G("disease",t.disease)}}function An(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-phenotype-tag",52),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("phenotype",t)}}function Ln(n,s){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,An,2,1,"ng-container",43),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",t.phenotypes)}}function Un(n,s){if(1&n&&e.eu8(0,53),2&n){e.XpG(2);const t=e.sdS(3);e.Y8G("ngTemplateOutlet",t)}}function Bn(n,s){if(1&n&&(e.qex(0),e.nrm(1,"cvc-therapy-tag",54),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.Y8G("therapy",t)}}function wn(n,s){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,Bn,2,1,"ng-container",43),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.therapies)}}function Jn(n,s){if(1&n&&(e.j41(0,"nz-descriptions-item",55),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.bMT(2,1,t.therapyInteractionType)," ")}}function Wn(n,s){if(1&n&&(e.qex(0),e.j41(1,"nz-row",7)(2,"nz-col",8)(3,"nz-row",7)(4,"nz-col",8)(5,"nz-descriptions",9)(6,"nz-descriptions-item",10)(7,"p",11),e.EFF(8),e.k0s()()()(),e.j41(9,"nz-col",8)(10,"nz-descriptions",12)(11,"nz-descriptions-item",13),e.nrm(12,"cvc-attribute-tag",14),e.nI1(13,"enumTooltip"),e.k0s(),e.j41(14,"nz-descriptions-item",15),e.DNE(15,Rn,2,7,"cvc-attribute-tag",16),e.k0s(),e.j41(16,"nz-descriptions-item",17),e.DNE(17,$n,2,7,"cvc-attribute-tag",16),e.k0s(),e.j41(18,"nz-descriptions-item",18),e.nrm(19,"cvc-attribute-tag",19),e.nI1(20,"enumTooltip"),e.k0s(),e.j41(21,"nz-descriptions-item",20)(22,"nz-tag",21),e.nI1(23,"enumTooltip"),e.j41(24,"strong"),e.EFF(25),e.k0s(),e.EFF(26),e.nI1(27,"enumTooltip"),e.k0s()(),e.j41(28,"nz-descriptions-item",22)(29,"nz-tag",21),e.nI1(30,"enumTooltip"),e.nrm(31,"cvc-evidence-rating",23),e.k0s()()()(),e.j41(32,"nz-col",8)(33,"nz-descriptions",12)(34,"nz-descriptions-item",24),e.nrm(35,"cvc-source-tag",25),e.k0s(),e.j41(36,"nz-descriptions-item",26),e.DNE(37,Yn,2,1,"ng-container",27),e.k0s()()()()(),e.j41(38,"nz-col",8)(39,"nz-row",7)(40,"nz-col",8)(41,"nz-descriptions",28)(42,"nz-descriptions-item",29),e.nrm(43,"cvc-status-tag",30),e.k0s(),e.j41(44,"nz-descriptions-item",26),e.EFF(45," by "),e.nrm(46,"cvc-user-tag",31),e.DNE(47,Dn,2,3,"nz-tag",32)(48,Pn,1,1,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(50,Mn,4,3,"ng-template",null,3,e.C5r)(52,Nn,3,2,"ng-container",6),e.k0s()(),e.j41(53,"nz-col",8)(54,"nz-descriptions",12)(55,"nz-descriptions-item",33),e.nrm(56,"cvc-molecular-profile-tag",34),e.k0s(),e.j41(57,"nz-descriptions-item",35),e.nrm(58,"cvc-mp-tag-name",36),e.k0s(),e.j41(59,"nz-descriptions-item",37),e.DNE(60,Xn,3,3,"ng-container",27),e.k0s(),e.j41(61,"nz-descriptions-item",26),e.DNE(62,Ln,3,1,"ng-container",27),e.k0s(),e.j41(63,"nz-descriptions-item",26),e.qex(64,38),e.DNE(65,Un,1,1,"ng-template",39)(66,wn,2,1,"ng-template",40),e.bVm(),e.k0s(),e.DNE(67,Jn,3,3,"nz-descriptions-item",41),e.k0s()()()(),e.j41(68,"nz-col",8),e.nrm(69,"cvc-assertions-table",42),e.k0s()(),e.bVm()),2&n){const t=s.ngIf,i=e.sdS(51);e.XpG();const o=e.sdS(3),l=e.sdS(5);e.R7$(),e.Y8G("nzGutter",e.lJ4(68,In)),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzGutter",e.lJ4(69,j)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("nzEllipsisRows",14),e.R7$(),e.SpI(" ",t.description," "),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(70,Cn)),e.R7$(2),e.Y8G("cvcAttrValue",t.evidenceType)("nzTooltipTitle",e.i5U(13,53,t.evidenceType,"evidenceType")),e.R7$(3),e.Y8G("ngIf","NA"!==t.evidenceDirection)("ngIfElse",o),e.R7$(2),e.Y8G("ngIf","NA"!==t.significance)("ngIfElse",o),e.R7$(2),e.Y8G("cvcAttrValue",t.variantOrigin)("nzTooltipTitle",e.i5U(20,56,t.variantOrigin,"variantOrigin")),e.R7$(3),e.Y8G("nzTooltipTitle",e.i5U(23,59,t.evidenceLevel,"evidenceLevel")),e.R7$(3),e.JRh(t.evidenceLevel),e.R7$(),e.SpI(" - ",e.i5U(27,62,t.evidenceLevel,"evidenceLevelBrief")," "),e.R7$(3),e.Y8G("nzTooltipTitle",e.i5U(30,65,t.evidenceRating,"evidenceRating")),e.R7$(2),e.Y8G("starRating",t.evidenceRating),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(71,F)),e.R7$(2),e.Y8G("source",t.source),e.R7$(),e.Y8G("nzTitle",t.source.clinicalTrials&&t.source.clinicalTrials.length>1?"Clinical Trials":"Clinical Trial"),e.R7$(),e.Y8G("ngIf",t.source.clinicalTrials&&t.source.clinicalTrials.length>0)("ngIfElse",l),e.R7$(),e.Y8G("nzSpan",12),e.R7$(),e.Y8G("nzGutter",e.lJ4(72,j)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(73,Gn)),e.R7$(2),e.Y8G("status",t.status),e.R7$(),e.Y8G("nzTitle",i),e.R7$(2),e.Y8G("user",t.submissionEvent.originatingUser),e.R7$(),e.Y8G("ngIf",t.submissionActivity.parsedNote.length>0),e.R7$(5),e.Y8G("ngIf",null!==t.rejectionEvent||null!==t.acceptanceEvent),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",e.lJ4(74,F)),e.R7$(2),e.Y8G("molecularProfile",t.molecularProfile)("enablePopover",!0),e.R7$(2),e.Y8G("nameSegments",t.molecularProfile.parsedName),e.R7$(2),e.Y8G("ngIf",t.disease)("ngIfElse",o),e.R7$(),e.Y8G("nzTitle",t.phenotypes.length>1?"Phenotypes":"Phenotype"),e.R7$(),e.Y8G("ngIf",t.phenotypes.length>0)("ngIfElse",l),e.R7$(),e.Y8G("nzTitle",t.therapies.length>1?"Therapies":"Therapy"),e.R7$(),e.Y8G("ngPlural",t.therapies.length),e.R7$(3),e.Y8G("ngIf",t.therapyInteractionType),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Mz_("cvcTitle","",t.name," Assertions"),e.Y8G("evidenceId",t.id)}}function Qn(n,s){1&n&&e.nrm(0,"cvc-empty-value",56)}function Zn(n,s){1&n&&e.nrm(0,"cvc-empty-value",57)}let kn=(()=>{class n{constructor(t,i){var o;if(this.gql=t,this.route=i,this.statusValues=p.YSN,null==(o=this.evidenceId?this.evidenceId:+this.route.snapshot.params.evidenceId))throw new Error("Must pass in an evidence ID as an input or via the route.");this.queryRef=this.gql.watch({evidenceId:o});let l=this.queryRef.valueChanges;this.loading$=l.pipe((0,m.E)("loading"),(0,u.Z)(!0)),this.evidence$=l.pipe((0,m.E)("data","evidenceItem")),this.subscribable={entityType:p.V9U.EvidenceItem,id:o}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(p.Ype),e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-summary"]],inputs:{evidenceId:"evidenceId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["submissionCommentTemplate",""],["submittedTitle",""],["acceptedTitle",""],["rejectedTitle",""],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical","nzSize","small","nzBordered","true"],["nzTitle","Statement"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Type"],["cvcAttrName","evidenceType","nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Direction"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle",4,"ngIf","ngIfElse"],["nzTitle","Significance"],["nzTitle","Variant Origin"],["nz-tooltip","",3,"cvcAttrValue","nzTooltipTitle"],["nzTitle","Level"],["nz-tooltip","",3,"nzTooltipTitle"],["nzTitle","Rating"],[3,"starRating"],["nzTitle","Source"],[3,"source"],[3,"nzTitle"],[4,"ngIf","ngIfElse"],["nzLayout","vertical","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Status"],[3,"status"],[3,"user"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle",4,"ngIf"],["nzTitle","Molecular Profile"],[3,"molecularProfile","enablePopover"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Disease"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","other"],["nzTitle","Therapy Interaction Type",4,"ngIf"],[3,"evidenceId","cvcTitle"],[4,"ngFor","ngForOf"],[3,"clinicalTrial"],["nz-popover","",3,"nzPopoverContent","nzPopoverOverlayStyle"],["nz-icon","","nzType","align-left"],[3,"commentBodySegments"],["nz-typography","","nzType","secondary"],["nzTitle","Rejected"],[3,"routerLink"],[3,"disease"],[3,"phenotype"],[3,"ngTemplateOutlet"],[3,"therapy"],["nzTitle","Therapy Interaction Type"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(i,o){1&i&&(e.DNE(0,Wn,70,75,"ng-container",6),e.nI1(1,"ngrxPush"),e.DNE(2,Qn,1,0,"ng-template",null,0,e.C5r)(4,Zn,1,0,"ng-template",null,1,e.C5r)),2&i&&e.Y8G("ngIf",e.bMT(1,1,o.evidence$))},dependencies:[r.Sq,r.bT,r.T3,r.IJ,r.WO,c.Wk,T.Uq,T.e,g.Di,S.c,y.s,f.Dn,x.xA,x.gr,C.LH,M.L_,an.o,ln,dn.Y,pn.g,mn.M,gn.r,vn.X,un.D,_n.A,fn.R,hn.z,zn.y,Y.z,yn.G,Tn.p,r.PV,G.L9,En.k,bn.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}.summary-block[_ngcontent-%COMP%]{max-height:200px;overflow-y:auto}"]})}return n})();var V=a(8313);let Hn=(()=>{class n{constructor(t){this.route=t,this.feedScope={mode:p.Qt1.Subject,subject:{id:+this.route.snapshot.params.evidenceId,entityType:p.V9U.EvidenceItem}}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-evidence-events"]],decls:1,vars:2,consts:[[3,"cvcScope","cvcShowFilters"]],template:function(i,o){1&i&&e.nrm(0,"cvc-activity-feed",0),2&i&&e.Y8G("cvcScope",o.feedScope)("cvcShowFilters",!0)},dependencies:[V.Y],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})(),Kn=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,V.Y]})}return n})();const qn=[{path:"",component:Ge,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:kn,data:{breadcrumb:"Summary"}},{path:"comments",component:Ye,data:{breadcrumb:"Comments"}},{path:"revisions",component:Ae,data:{breadcrumb:"Revisions"}},{path:"flags",component:Ve,data:{breadcrumb:"Flags"}},{path:"events",component:Hn,data:{breadcrumb:"Events"}}]}];let et=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[c.iI.forChild(qn),tn,Re,Ne,je,Kn,c.iI]})}return n})();var nt=a(5736),tt=a(590),it=a(78),at=a(1532),st=a(8103);let ot=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[r.MD,et,$.$,b.Zw,T.f3,f.Y3,y.T,_.ZJ,d.pc,g.kT,C.Qt,z.C,E.Y,nt.V,E.Y,it.U,P.i,tt.W,z.C,at.W,st.m,D.o]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/6148.069dfef439190e01.js b/server/public/6148.069dfef439190e01.js deleted file mode 100644 index 6f4648b52..000000000 --- a/server/public/6148.069dfef439190e01.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6148],{1532:(b,u,a)=>{a.d(u,{W:()=>c});var s=a(177),p=a(9541),e=a(7529),h=a(1188),f=a(5103),v=a(3146),y=a(3953);let c=(()=>{class l{static#e=this.\u0275fac=function(d){return new(d||l)};static#t=this.\u0275mod=y.$C({type:l});static#n=this.\u0275inj=y.G2t({imports:[s.MD,h.iI,p.hM,e.f3,f.Y3,v.W2]})}return l})()},8269:(b,u,a)=>{a.d(u,{G:()=>s,S:()=>p});const s={molecularProfileId:void 0,acmgCodeIds:[],ampLevel:void 0,assertionDirection:void 0,assertionType:void 0,clingenCodeIds:[],significance:void 0,description:void 0,diseaseId:void 0,therapyIds:[],therapyInteractionType:void 0,evidenceItemIds:[],fdaCompanionTest:void 0,fdaRegulatoryApproval:void 0,nccnGuidelineId:void 0,nccnGuidelineVersion:void 0,phenotypeIds:[],summary:void 0,variantOrigin:void 0},p={clientMutationId:void 0,fields:s,comment:void 0,organizationId:void 0}},7593:(b,u,a)=>{a.d(u,{o:()=>v});var s=a(9145),p=a(9894),e=a(4412),h=a(8269),f=a(5183);class v extends f.zn{constructor(){super(f.$L.ASSERTION);const c=h.G;this.fields={molecularProfileId$:new e.t(c.molecularProfileId),variantMolecularProfile$:new e.t(void 0),geneId$:new e.t(void 0),variantId$:new e.t(void 0),variantOrigin$:new e.t(c.variantOrigin),assertionType$:new e.t(c.assertionType),assertionDirection$:new e.t(c.assertionDirection),evidenceItemIds$:new e.t(c.evidenceItemIds),significance$:new e.t(c.significance),diseaseId$:new e.t(c.diseaseId),therapyIds$:new e.t(c.therapyIds),therapyInteractionType$:new e.t(c.therapyInteractionType),phenotypeIds$:new e.t(c.phenotypeIds),nccnGuidelineId$:new e.t(c.nccnGuidelineId),fdaRegulatoryApproval$:new e.t(c.fdaRegulatoryApproval),fdaCompanionTest$:new e.t(c.fdaCompanionTest),ampLevel$:new e.t(c.ampLevel),acmgCodeIds$:new e.t(c.acmgCodeIds),clingenCodeIds$:new e.t(c.clingenCodeIds),nccnGuidelineVersion$:new e.t(c.nccnGuidelineVersion),description$:new e.t(void 0),comment$:new e.t(void 0)},this.enums={entityType$:new e.t(this.getTypeOptions()),significance$:new e.t([]),direction$:new e.t([]),interaction$:new e.t(this.getInteractionOptions())},this.options={assertionTypeOption$:new e.t(this.getOptionsFromEnums(this.getTypeOptions())),directionOption$:new e.t(void 0),significanceOption$:new e.t(void 0)},this.requires={requiresDisease$:new e.t(!1),requiresTherapy$:new e.t(!1),requiresTherapyInteractionType$:new e.t(!1),requiresClingenCodes$:new e.t(!1),requiresAcmgCodes$:new e.t(!1),requiresAmpLevel$:new e.t(!1),allowsFdaApproval$:new e.t(!1)},this.fields.assertionType$.pipe((0,p.s)(this,"onDestroy")).subscribe(l=>{if(!l)return Object.entries(this.requires).forEach(([R,C])=>{C.next(!1)}),this.enums.significance$.next([]),void this.enums.direction$.next([]);this.enums.significance$.next(this.getSignificanceOptions(l)),this.enums.direction$.next(this.getDirectionOptions(l)),this.requires.requiresDisease$.next(this.requiresDisease(l)),this.requires.requiresTherapy$.next(this.requiresTherapy(l)),this.requires.requiresClingenCodes$.next(this.requiresClingenCodes(l)),this.requires.requiresAcmgCodes$.next(this.requiresAcmgCodes(l)),this.requires.requiresAmpLevel$.next(this.requiresAmpLevel(l)),this.requires.allowsFdaApproval$.next(this.allowsFdaApproval(l))}),this.fields.therapyIds$.pipe((0,p.s)(this,"onDestroy")).subscribe(l=>{this.requires.requiresTherapyInteractionType$.next(null!=l&&l.length>1)}),this.validStates.set(s.XEW.Predictive,{entityType:s.XEW.Predictive,significance:[s.YW4.Sensitivityresponse,s.YW4.Resistance,s.YW4.AdverseResponse,s.YW4.ReducedSensitivity,s.YW4.Na],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!0,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!0}),this.validStates.set(s.XEW.Diagnostic,{entityType:s.XEW.Diagnostic,significance:[s.YW4.Positive,s.YW4.Negative],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Prognostic,{entityType:s.XEW.Prognostic,significance:[s.YW4.BetterOutcome,s.YW4.PoorOutcome,s.YW4.Na],entityDirection:[s.w7w.Supports,s.w7w.DoesNotSupport],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!1,requiresAmpLevel:!0,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Predisposing,{entityType:s.XEW.Predisposing,significance:[s.YW4.Pathogenic,s.YW4.LikelyPathogenic,s.YW4.Benign,s.YW4.LikelyBenign,s.YW4.UncertainSignificance],entityDirection:[s.w7w.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!1,requiresAcmgCodes:!0,requiresAmpLevel:!1,allowsFdaApproval:!1}),this.validStates.set(s.XEW.Oncogenic,{entityType:s.XEW.Oncogenic,significance:[s.YW4.Oncogenic,s.YW4.LikelyOncogenic,s.YW4.Benign,s.YW4.LikelyBenign,s.YW4.UncertainSignificance],entityDirection:[s.w7w.Supports],requiresDisease:!0,requiresTherapy:!1,requiresClingenCodes:!0,requiresAcmgCodes:!1,requiresAmpLevel:!1,allowsFdaApproval:!1})}}},2317:(b,u,a)=>{a.r(u),a.d(u,{TestPagesModule:()=>tt});var s=a(177),p=a(1188),e=a(3953),h=a(5847);let f=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:1,consts:[[3,"assertionId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-assertion-revise-form",0),2&n&&e.Y8G("assertionId",3)},dependencies:[h.Z],encapsulation:2,changeDetection:0})}return t})();var v=a(3988);let y=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-assertion-submit-test-page"]],decls:1,vars:0,template:function(n,r){1&n&&e.nrm(0,"cvc-assertion-submit-form")},dependencies:[v.d],encapsulation:2,changeDetection:0})}return t})();var c=a(6905);let l=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-evidence-revise-test-page"]],decls:1,vars:1,consts:[[3,"evidenceId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-evidence-revise-form",0),2&n&&e.Y8G("evidenceId",7606)},dependencies:[c._],encapsulation:2,changeDetection:0})}return t})();var R=a(4594);let C=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-nonstate-form"]],decls:1,vars:0,template:function(n,r){1&n&&e.nrm(0,"cvc-evidence-submit-form")},dependencies:[R.e],encapsulation:2,changeDetection:0})}return t})();var d=a(9417);const I={geneId:void 0},z=[{key:"molecularProfileId",type:"molecular-profile-select",props:{}},{key:"molecularProfileIds",type:"molecular-profile-multi-select",props:{}},{key:"evidenceType",type:"type-select",props:{}},{key:"evidenceTypes",type:"type-multi-select",props:{}},{key:"featureId",type:"feature-select"},{key:"featureIds",type:"feature-multi-select",props:{}},{key:"variantId",type:"variant-select",props:{requireFeature:!1}},{key:"variantIds",type:"variant-multi-select",props:{requireFeature:!1}},{key:"sourceId",type:"source-select",props:{}},{key:"sourceIds",type:"source-multi-select",props:{}},{key:"diseaseId",type:"disease-select",props:{}},{key:"diseaseIds",type:"disease-multi-select",props:{}},{key:"drugId",type:"therapy-select",props:{}},{key:"drugIds",type:"therapy-multi-select",props:{}},{key:"evidenceLevel",type:"level-select",props:{}},{key:"evidenceLevel",type:"level-multi-select",props:{}},{key:"variantOrigin",type:"origin-select",props:{}},{key:"variantOrigins",type:"origin-multi-select",props:{}},{key:"tag",type:"tag-input",props:{label:"Input Test"}},{key:"tags",type:"tag-multi-input",props:{label:"Input Multi Test"}}];var M=a(8524),O=a(8927);let L=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Horizontal Field Layout, No State"}},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-horizontal-form"]],decls:2,vars:5,consts:[["nz-form","","nzLayout","horizontal",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model)("options",r.options))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})();var j=a(1635),Y=a(9894),A=a(4412),k=a(5964),N=a(6354),V=a(9199),W=a(4608);function w(t,o){for(var i=0;i[];function ee(t,o){if(1&t){const i=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td"),e.j41(6,"td"),e.nrm(7,"cvc-entity-tag",12),e.k0s(),e.j41(8,"td")(9,"cvc-entity-tag",13),e.bIt("cvcTagCheckedChange",function(r){e.eBV(i);const m=e.XpG(3);return e.Njj(m.tagChecked(r))}),e.k0s()(),e.nrm(10,"td")(11,"td")(12,"td"),e.k0s()}if(2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(3),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function te(t,o){if(1&t){const i=e.RV6();e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td"),e.j41(6,"td"),e.nrm(7,"cvc-entity-tag",12),e.k0s(),e.j41(8,"td")(9,"cvc-entity-tag",13),e.bIt("cvcTagCheckedChange",function(r){e.eBV(i);const m=e.XpG(3);return e.Njj(m.tagChecked(r))}),e.k0s()(),e.nrm(10,"td")(11,"td")(12,"td"),e.k0s()}if(2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(3),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ne(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ie(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function ae(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function se(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td")(10,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function re(t,o){if(1&t&&(e.j41(0,"tr")(1,"td"),e.EFF(2),e.k0s(),e.j41(3,"td"),e.nrm(4,"cvc-entity-tag",8),e.k0s(),e.nrm(5,"td")(6,"td")(7,"td")(8,"td")(9,"td"),e.k0s()),2&t){const i=e.XpG().$implicit,n=e.XpG().ngrxLet;e.R7$(2),e.JRh(i.__typename),e.R7$(2),e.Y8G("cvcCacheId",i.__typename+":"+i.id)("cvcEmphasize",n)}}function oe(t,o){if(1&t&&(e.qex(0)(1,9),e.DNE(2,ee,13,7,"tr",10)(3,te,13,7,"tr",10)(4,ne,11,3,"tr",10)(5,ie,11,3,"tr",10)(6,ae,11,3,"tr",10)(7,se,11,3,"tr",10)(8,re,10,3,"tr",11),e.bVm()()),2&t){const i=o.$implicit;e.R7$(),e.Y8G("ngSwitch",i.__typename),e.R7$(),e.Y8G("ngSwitchCase","EvidenceItem"),e.R7$(),e.Y8G("ngSwitchCase","MolecularProfile"),e.R7$(),e.Y8G("ngSwitchCase","Gene"),e.R7$(),e.Y8G("ngSwitchCase","Variant"),e.R7$(),e.Y8G("ngSwitchCase","Therapy"),e.R7$(),e.Y8G("ngSwitchCase","Disease")}}function ce(t,o){if(1&t&&(e.qex(0),e.DNE(1,oe,9,7,"ng-container",7),e.j41(2,"tr")(3,"td"),e.EFF(4,"CACHE MISS"),e.k0s(),e.j41(5,"td"),e.nrm(6,"cvc-entity-tag",8),e.k0s(),e.nrm(7,"td")(8,"td")(9,"td")(10,"td")(11,"td")(12,"td"),e.k0s(),e.bVm()),2&t){const i=o.ngrxLet;e.XpG();const n=e.sdS(2);e.R7$(),e.Y8G("ngForOf",n.data),e.R7$(5),e.Y8G("cvcCacheId","FakeTypename:42")("cvcEmphasize",i)}}function le(t,o){if(1&t){const i=e.RV6();e.EFF(0," Emphasize: "),e.j41(1,"input",14,2),e.nI1(3,"ngrxPush"),e.bIt("ngModelChange",function(){e.eBV(i);const r=e.sdS(2),m=e.XpG();return e.Njj(m.emphasizeStr$.next(r.value))}),e.k0s()}if(2&t){const i=e.XpG();e.R7$(),e.Y8G("ngModel",e.bMT(3,1,i.emphasizeStr$))}}let $=class E{constructor(o){this.entityTagsTestGQL=o,this.emphasizeStr$=new A.t(""),this.queryParams={molecularProfileId:3133,geneId:5,variantId:2,therapyId:16,diseaseId:2198,eid:123},this.entityTagsData$=this.entityTagsTestGQL.fetch(this.queryParams).pipe((0,W.E)("data"),(0,k.p)(V.kP),function J(t){return function(i){return i.lift(new K(t))}}("entityTagsData$"),(0,N.T)(i=>{console.log(i);const n=Object.values(i).filter(r=>"object"==typeof r);return console.log(n),n}))}tagChecked(o){console.log(`Tag checked: ${o}`)}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||E)(e.rXU(q.RA2))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-nonstate-form"]],decls:26,vars:6,consts:[["tagTable",""],["cardExtra",""],["emphasizeInput",""],["nzTitle","Entity Tags & Features"],["nzSize","small",3,"nzShowPagination","nzData"],["nzWidth","150px"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcCacheId","cvcEmphasize"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["cvcMode","closeable",3,"cvcCacheId","cvcEmphasize"],["cvcMode","checkable",3,"cvcTagCheckedChange","cvcCacheId","cvcEmphasize"],["nz-input","","nzSize","small","type","text",3,"ngModelChange","ngModel"]],template:function(i,n){1&i&&(e.j41(0,"nz-card",3)(1,"nz-table",4,0),e.nI1(3,"ngrxPush"),e.j41(4,"thead")(5,"tr")(6,"th",5),e.EFF(7,"Entity"),e.k0s(),e.j41(8,"th"),e.EFF(9,"Default"),e.k0s(),e.j41(10,"th"),e.EFF(11,"Popover"),e.k0s(),e.j41(12,"th"),e.EFF(13,"Closeable"),e.k0s(),e.j41(14,"th"),e.EFF(15,"Checkable"),e.k0s(),e.j41(16,"th"),e.EFF(17,"Truncate"),e.k0s(),e.j41(18,"th"),e.EFF(19,"Group"),e.k0s(),e.j41(20,"th"),e.EFF(21,"Unlinked"),e.k0s()()(),e.j41(22,"tbody"),e.DNE(23,ce,13,3,"ng-container",6),e.k0s()()(),e.DNE(24,le,4,3,"ng-template",null,1,e.C5r)),2&i&&(e.R7$(),e.Y8G("nzShowPagination",!1)("nzData",e.bMT(3,3,n.entityTagsData$)||e.lJ4(5,Q)),e.R7$(22),e.Y8G("ngrxLet",n.emphasizeStr$))},dependencies:[s.Sq,s.ux,s.e1,s.fG,D.Nj,d.me,d.BC,d.vS,x.cK,g.CP,g.SO,g._4,g.IL,g.aj,g.kt,Z.b,D.L9],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0})};$=(0,j.Cg)([(0,Y.d)()],$);let de=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="inline",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{title:"Inline Field Layout, No State"},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-inline-form"]],decls:2,vars:5,consts:[["nz-form","","nzLayout","inline",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model","options"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model)("options",r.options))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})(),pe=(()=>{class t{constructor(){this.form=new d.J3({}),this.model=I,this.formLayout="vertical",this.options={formState:{formLayout:this.formLayout}},this.fields=[{key:"fields",wrappers:["form-card"],props:{formCardOptions:{title:"Vertical Field Layout, No State"}},fieldGroup:z}]}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-vertical-form"]],decls:2,vars:4,consts:[["nz-form","","nzLayout","vertical",3,"formGroup"],[2,"width","100%",3,"modelChange","form","fields","model"]],template:function(n,r){1&n&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(T){return r.model=T}),e.k0s()()),2&n&&(e.Y8G("formGroup",r.form),e.R7$(),e.Y8G("form",r.form)("fields",r.fields)("model",r.model))},dependencies:[d.qT,d.cb,d.j4,M.aF,O.CA],encapsulation:2,changeDetection:0})}return t})();var P=a(3062),F=a(7529),S=a(5103),_=a(9541),me=a(9765);function ue(t,o){if(1&t&&(e.j41(0,"a",9),e.nrm(1,"span",10),e.EFF(2),e.k0s()),2&t){const i=e.XpG().$implicit;e.Y8G("routerLink",i.routeName),e.R7$(),e.Y8G("nzType",i.iconName),e.R7$(),e.SpI(" ",i.tabLabel," ")}}function ge(t,o){1&t&&(e.j41(0,"nz-tab"),e.DNE(1,ue,3,3,"a",8),e.k0s())}let fe=(()=>{class t{constructor(i){this.router=i,this.selectedTabIndex=this.getActivatedRouteIndex(this.router.url),this.tabs=[{routeName:"evidence-submit-test",iconName:"civic-evidence",tabLabel:"Submit"},{routeName:"evidence-revise-test",iconName:"civic-evidence",tabLabel:"Revise"},{routeName:"assertion-submit-test",iconName:"civic-assertion",tabLabel:"Submit"},{routeName:"assertion-revise-test",iconName:"civic-assertion",tabLabel:"Revise"},{routeName:"variantgroup-revise-test",iconName:"civic-variantgroup",tabLabel:"Revise"},{routeName:"gene-revise-test",iconName:"civic-feature",tabLabel:"Revise"},{routeName:"mp-revise-test",iconName:"civic-molecularprofile",tabLabel:"Revise"},{routeName:"variant-submit-test",iconName:"civic-variant",tabLabel:"Submit"},{routeName:"variant-revise-test",iconName:"civic-variant",tabLabel:"Revise"},{routeName:"vertical-form",iconName:"layout",tabLabel:"Vertical"},{routeName:"inline-form",iconName:"layout",tabLabel:"Inline"},{routeName:"horizontal-form",iconName:"layout",tabLabel:"Horizontal"},{routeName:"tags-test",iconName:"tag",tabLabel:"Tags"}]}getActivatedRouteIndex(i){return this.tabs?.findIndex(n=>i.includes(n.routeName))}static#e=this.\u0275fac=function(n){return new(n||t)(e.rXU(p.Ix))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-test-pages"]],decls:15,vars:4,consts:[[1,"site-page-header"],["cvcFlaggableOptions",""],[3,"nzSpan"],["id","section-tabs"],["nzSpan","24"],["nzLinkRouter","","nzType","card","nzSize","small",3,"nzSelectedIndex"],[4,"ngFor","ngForOf"],[1,"content"],["nz-tab-link","",3,"routerLink",4,"nzTabLink"],["nz-tab-link","",3,"routerLink"],["nz-icon","",3,"nzType"]],template:function(n,r){if(1&n&&(e.nrm(0,"cvc-section-navigation"),e.j41(1,"nz-page-header",0)(2,"nz-page-header-title",1),e.EFF(3," Form Dev Pages "),e.k0s(),e.j41(4,"nz-page-header-content")(5,"nz-row")(6,"nz-col",2)(7,"nz-row",3)(8,"nz-col",4)(9,"nz-tabset",5),e.DNE(10,ge,2,0,"nz-tab",6),e.k0s()()()()(),e.j41(11,"nz-row")(12,"nz-col",2)(13,"div",7),e.nrm(14,"router-outlet"),e.k0s()()()()()),2&n){let m;e.R7$(6),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("nzSelectedIndex",null!==(m=r.selectedTabIndex)&&void 0!==m?m:null),e.R7$(),e.Y8G("ngForOf",r.tabs),e.R7$(2),e.Y8G("nzSpan",24)}},dependencies:[s.Sq,p.n3,p.Wk,P.WB,P.k9,P.zR,F.Uq,F.e,S.Dn,_.JZ,_.rE,_.v3,_.rM,me.n],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"],changeDetection:0})}return t})();var he=a(7526);let ve=(()=>{class t{constructor(i){this.cdr=i}static#e=this.\u0275fac=function(n){return new(n||t)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variantgroup-revise-test-page"]],decls:1,vars:1,consts:[[3,"variantGroupId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-variantgroup-revise-form",0),2&n&&e.Y8G("variantGroupId",24)},dependencies:[he.T],encapsulation:2})}return t})();var ye=a(958);let _e=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-gene-form"]],decls:1,vars:1,consts:[[3,"featureId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-gene-revise-form",0),2&n&&e.Y8G("featureId",6)},dependencies:[ye.m],encapsulation:2,changeDetection:0})}return t})();var Te=a(4514);let Ce=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-mp-form"]],decls:1,vars:1,consts:[[3,"molecularProfileId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-mp-revise-form",0),2&n&&e.Y8G("molecularProfileId",3176)},dependencies:[Te.k],encapsulation:2,changeDetection:0})}return t})();var Pe=a(2276);let be=(()=>{class t{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variant-form"]],decls:1,vars:1,consts:[[3,"variantId"]],template:function(n,r){1&n&&e.nrm(0,"cvc-gene-variant-revise-form",0),2&n&&e.Y8G("variantId",4)},dependencies:[Pe.v],encapsulation:2,changeDetection:0})}return t})();var Ie=a(574);const ze=[{path:"",component:fe,children:[{path:"",redirectTo:"evidence-submit-test",pathMatch:"full"},{path:"evidence-submit-test",component:C,data:{breadcrumb:"Evidence Submit Form"}},{path:"evidence-revise-test",component:l,data:{breadcrumb:"Evidence Revise Form"}},{path:"assertion-submit-test",component:y,data:{breadcrumb:"Assertion Submit Form"}},{path:"assertion-revise-test",component:f,data:{breadcrumb:"Assertion Revise Form"}},{path:"variantgroup-revise-test",component:ve,data:{breadcrumb:"Variant Group Revise Form"}},{path:"gene-revise-test",component:_e,data:{breadcrumb:"Gene Revise Form"}},{path:"mp-revise-test",component:Ce,data:{breadcrumb:"MP Revise Form"}},{path:"variant-submit-test",component:(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-variant-submit-test"]],decls:2,vars:0,consts:[[2,"width","500px"]],template:function(n,r){1&n&&(e.j41(0,"div",0),e.nrm(1,"cvc-variant-submit-form"),e.k0s())},dependencies:[Ie.m],encapsulation:2,changeDetection:0})}return t})(),data:{breadcrumb:"Variant Submit Form"}},{path:"variant-revise-test",component:be,data:{breadcrumb:"Variant Revise Form"}},{path:"vertical-form",component:pe,data:{breadcrumb:"Vertical Layout Test"}},{path:"inline-form",component:de,data:{breadcrumb:"Inline Layout Test"}},{path:"horizontal-form",component:L,data:{breadcrumb:"Horizontal Layout Test"}},{path:"tags-test",component:$,data:{breadcrumb:"Horizontal"}}]}];let Me=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[p.iI.forChild(ze),p.iI]})}return t})();var Oe=a(4124),$e=a(1532),Fe=a(7391),Ge=a(4917),Ee=a(8476),Re=a(7685);let we=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Ee.S,Re.pc]})}return t})();var De=a(1724);let xe=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,De.y]})}return t})();var Se=a(7242);let Le=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Se.Z]})}return t})();var je=a(2090);let Ye=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,je.B]})}return t})();var G=a(8168);let Ae=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})(),ke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})(),Ne=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,G.m]})}return t})();var Ve=a(181);let We=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,d.YN,x.Ti,g.$G,Ve._]})}return t})();var Be=a(7238);let Ue=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Be.h]})}return t})();var Xe=a(432);let He=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Xe.Q]})}return t})();var Je=a(7064);let Ke=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Je.q]})}return t})();var qe=a(6404);let Ze=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,qe.v]})}return t})();var Qe=a(7380);let et=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Qe.s]})}return t})(),tt=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=e.$C({type:t});static#n=this.\u0275inj=e.G2t({imports:[s.MD,Me,P.ZJ,F.f3,S.Y3,Fe.kT,_.hM,Ge.i,$e.W,Oe.C,Ye,Le,xe,we,He,Ae,ke,Ke,We,Ze,et,Ue,Ne]})}return t})()}}]); \ No newline at end of file diff --git a/server/public/6508.366bb09b77b4d0ac.js b/server/public/6508.366bb09b77b4d0ac.js deleted file mode 100644 index 11857713d..000000000 --- a/server/public/6508.366bb09b77b4d0ac.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6508],{9238:(H,O,o)=>{o.d(O,{e:()=>I});var e=o(177),i=o(1236),v=o(2839),h=o(1862),D=o(6936),m=o(5703),c=o(7529),C=o(4415),x=o(1209),P=o(4917),z=o(6912),y=o(7086),E=o(3953);let _=(()=>{class u{static#e=this.\u0275fac=function(d){return new(d||u)};static#t=this.\u0275mod=E.$C({type:u});static#n=this.\u0275inj=E.G2t({imports:[e.MD,m.Ti,c.f3,z.l,v.m,h.e,D.G,D.G,y.C,C.O,x.k,P.i]})}return u})();var G=o(5699),p=o(5103),T=o(1188);let I=(()=>{class u{static#e=this.\u0275fac=function(d){return new(d||u)};static#t=this.\u0275mod=E.$C({type:u});static#n=this.\u0275inj=E.G2t({imports:[e.MD,P.i,T.iI,i.MC,p.Y3,_,G.T]})}return u})()},5023:(H,O,o)=>{o.d(O,{J:()=>F});var e=o(177),i=o(5103),v=o(2839),h=o(7391),D=o(4917),m=o(9238),c=o(9269),C=o(1862),x=o(6936),P=o(8920),z=o(5154),y=o(7529),E=o(4415),_=o(513),G=o(1209),p=o(8134),T=o(5699),I=o(1188),u=o(996),j=o(6912),S=o(7086),d=o(3953);let F=(()=>{class ${static#e=this.\u0275fac=function(L){return new(L||$)};static#t=this.\u0275mod=d.$C({type:$});static#n=this.\u0275inj=d.G2t({imports:[e.MD,_.Zw,i.Y3,T.T,z.Qt,h.kT,y.f3,I.iI,E.O,v.m,D.i,m.e,c.P,j.l,C.e,x.G,S.C,P.U,G.k,p.l,u.o]})}return $})()},2597:(H,O,o)=>{o.d(O,{O:()=>ht});var e=o(3953),i=o(177),v=o(5699),h=o(5154),D=o(7391),m=o(7529),c=o(1188),C=o(6354),x=o(5964),P=o(9199),z=o(9145),y=o(5703),E=o(5103),_=o(7685),G=o(2e3),p=o(3245),T=o(6408),I=o(1417),u=o(9045),j=o(959),S=o(8238),d=o(311),F=o(4126),$=o(1774),Y=o(3075),b=o(8139);function L(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"i",14),e.nI1(2,"entityColor"),e.EFF(3),e.k0s()),2&t){const n=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"Revision")),e.R7$(2),e.SpI(" RID",n.id," ")}}function K(t,a){if(1&t&&e.nrm(0,"cvc-status-tag",15),2&t){const n=e.XpG(2).ngIf;e.Y8G("status",n.status)}}function B(t,a){1&t&&(e.j41(0,"nz-space",11),e.DNE(1,L,4,4,"span",12)(2,K,1,1,"cvc-status-tag",13),e.k0s())}function X(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",16),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.subject)}}function N(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",17),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.subject)}}function V(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",18),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.subject)}}function J(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",19),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.subject)}}function s(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",20),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variantgroup",n.subject)}}function R(t,a){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2).ngIf;e.SpI(" ",n.subject.name," ")}}function l(t,a){if(1&t&&e.DNE(0,X,1,2,"cvc-feature-tag",16)(1,N,1,2,"cvc-assertion-tag",17)(2,V,1,2,"cvc-evidence-tag",18)(3,J,1,2,"cvc-feature-variant-tag",19)(4,s,1,2,"cvc-variant-group-tag",20)(5,R,1,1),2&t){let n;const r=e.XpG().ngIf;e.vxM("Feature"===(n=r.subject.__typename)?0:"Assertion"===n?1:"EvidenceItem"===n?2:"Variant"===n?3:"VariantGroup"===n?4:5)}}function g(t,a){if(1&t&&e.nrm(0,"cvc-user-tag",21),2&t){const n=e.XpG().ngIf;e.Y8G("enablePopover",!1)("user",n.creationActivity.user)}}function f(t,a){if(1&t&&(e.j41(0,"nz-descriptions-item",22),e.nrm(1,"cvc-comment-body",23),e.k0s()),2&t){const n=e.XpG().ngIf;e.R7$(),e.Y8G("commentBodySegments",n.creationActivity.parsedNote)}}function A(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,B,3,0,"ng-template",null,0,e.C5r)(4,l,6,1,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.DNE(8,g,1,2,"cvc-user-tag",7),e.k0s(),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.nI1(13,"timeAgo"),e.k0s(),e.DNE(14,f,2,1,"nz-descriptions-item",10),e.k0s()(),e.bVm()),2&t){const n=a.ngIf,r=e.sdS(3),M=e.sdS(5);e.R7$(),e.Y8G("nzTitle",r)("nzExtra",M),e.R7$(5),e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("ngIf",null==n.creationActivity?null:n.creationActivity.user),e.R7$(2),e.SpI(" ",n.linkoutData.name," "),e.R7$(2),e.SpI(" ",e.bMT(13,7,n.createdAt)," "),e.R7$(2),e.Y8G("ngIf",null==n.creationActivity?null:n.creationActivity.parsedNote)}}let W=(()=>{class t{constructor(n){this.gql=n}ngOnInit(){if(null==this.revisionId)throw new Error("cvc-revision-popover requires valid revisionId input.");this.revision$=this.gql.watch({revisionId:this.revisionId}).valueChanges.pipe((0,C.T)(({data:n})=>n?.revision),(0,x.p)(P.kP))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.XWi))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Revisor"],[3,"enablePopover","user",4,"ngIf"],["nzTitle","Field"],["nzTitle","Revision Date"],["nzTitle","Creation Comment",4,"ngIf"],[1,"revision-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],[3,"status"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[3,"enablePopover","user"],["nzTitle","Creation Comment"],[3,"commentBodySegments"]],template:function(r,M){1&r&&(e.j41(0,"div",2),e.DNE(1,A,15,9,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,M.revision$)))},dependencies:[i.bT,y.cK,E.Dn,_.U5,_.Dq,G.xA,G.gr,p._,T.r,I.a,u.J,j.j,S.S,d.g,F.p,$.L9,Y.R,b.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.revision-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return t})();var Q=o(1236);const k=t=>({revisionSetId:t});function q(t,a){}function ee(t,a){}function te(t,a){if(1&t&&e.nrm(0,"cvc-revision-popover",6),2&t){const n=e.XpG(2);e.Y8G("revisionId",n.revision.id)}}function ne(t,a){if(1&t&&(e.j41(0,"nz-tag",5),e.DNE(1,ee,0,0,"ng-template",4),e.k0s(),e.DNE(2,te,1,1,"ng-template",null,2,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),M=e.sdS(5);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",M)}}function oe(t,a){if(1&t&&(e.nrm(0,"i",7),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.revision.name,"\n")}}let Z=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:5,consts:[["tag",""],["tagContent",""],["revisionPopover",""],[3,"routerLink","queryParams"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(r,M){if(1&r&&(e.j41(0,"a",3),e.DNE(1,q,0,0,"ng-template",4),e.k0s(),e.DNE(2,ne,4,4,"ng-template",null,0,e.C5r)(4,oe,2,1,"ng-template",null,1,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",M.revision.link)("queryParams",e.eq3(3,k,M.revision.revisionSetId)),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,W,v.s,E.Dn,Q.L_],encapsulation:2})}return t})();var ie=o(4608),w=o(9062);function ae(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",9),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.commentable)}}function re(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",10),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.commentable)}}function ce(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",11),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.commentable)}}function se(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",12),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.commentable)}}function le(t,a){if(1&t&&e.nrm(0,"cvc-revision-tag",13),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("revision",n.commentable)}}function me(t,a){if(1&t&&e.nrm(0,"cvc-source-tag",14),2&t){const n=e.XpG(3).ngIf;e.Y8G("enablePopover",!1)("source",n.commentable)}}function _e(t,a){1&t&&e.DNE(0,me,1,2,"cvc-source-tag",15),2&t&&e.Y8G("ngSwitchCase","Source")}function pe(t,a){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2).ngIf;e.SpI(" ",n.commentable.name," ")}}function ge(t,a){if(1&t&&(e.j41(0,"span",7),e.nrm(1,"cvc-user-tag",8),e.EFF(2,"commented on "),e.DNE(3,ae,1,2,"cvc-feature-tag",9)(4,re,1,2,"cvc-assertion-tag",10)(5,ce,1,2,"cvc-evidence-tag",11)(6,se,1,2,"cvc-feature-variant-tag",12)(7,le,1,2,"cvc-revision-tag",13)(8,_e,1,1,"cvc-source-tag",14)(9,pe,1,1),e.EFF(10),e.nI1(11,"timeAgo"),e.k0s()),2&t){let n;const r=e.XpG().ngIf;e.R7$(),e.Y8G("enablePopover",!1)("user",r.commenter),e.R7$(2),e.vxM("Feature"===(n=r.commentable.__typename)?3:"Assertion"===n?4:"EvidenceItem"===n?5:"Variant"===n?6:"Revision"===n?7:"Source"===n?8:9),e.R7$(7),e.SpI(" ",e.bMT(11,4,r.createdAt)," ")}}function ve(t,a){if(1&t&&(e.j41(0,"p",16)(1,"b"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG().ngIf;e.R7$(2),e.JRh(n.title)}}function de(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,ge,12,6,"ng-template",null,0,e.C5r),e.j41(4,"nz-row")(5,"nz-col",4)(6,"div",5),e.DNE(7,ve,3,1,"p",6),e.j41(8,"p"),e.EFF(9),e.k0s()()()()(),e.bVm()),2&t){const n=a.ngIf,r=e.sdS(3);e.R7$(),e.Y8G("nzTitle",r),e.R7$(6),e.Y8G("ngIf",n.title),e.R7$(2),e.SpI(" ",n.comment," ")}}let ue=(()=>{class t{constructor(n){this.gql=n}ngOnInit(){if(null==this.commentId)throw new Error("cvc-comment-popover requires valid commentId input.");this.comment$=this.gql.watch({commentId:this.commentId}).valueChanges.pipe((0,ie.E)("data","comment"))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.d2V))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-comment-popover"]],inputs:{commentId:"commentId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography","",4,"ngIf"],[1,"comment-card-title"],[3,"enablePopover","user"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","revision"],["mode","concise",3,"enablePopover","source"],["mode","concise",3,"enablePopover","source",4,"ngSwitchCase"],["nz-typography",""]],template:function(r,M){1&r&&(e.j41(0,"div",1),e.DNE(1,de,10,3,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,M.comment$)))},dependencies:[i.bT,i.e1,y.cK,m.Uq,m.e,p._,T.r,I.a,u.J,j.j,Z,w.D,$.L9,b.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.comment-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return t})();function fe(t,a){}function Ce(t,a){}function ze(t,a){if(1&t&&e.nrm(0,"cvc-comment-popover",7),2&t){const n=e.XpG(2);e.Y8G("commentId",n.comment.id)}}function Te(t,a){if(1&t&&(e.j41(0,"nz-tag",6),e.DNE(1,Ce,0,0,"ng-template",5),e.k0s(),e.DNE(2,ze,1,1,"ng-template",null,3,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),M=e.sdS(7);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",M)}}function he(t,a){}function Pe(t,a){if(1&t&&(e.j41(0,"nz-tag"),e.DNE(1,he,0,0,"ng-template",5),e.k0s()),2&t){e.XpG();const n=e.sdS(7);e.R7$(),e.Y8G("ngTemplateOutlet",n)}}function Ee(t,a){if(1&t&&(e.nrm(0,"i",8),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.comment.name,"\n")}}let Ie=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-comment-tag"]],inputs:{comment:"comment",subject:"subject",enablePopover:"enablePopover"},decls:8,vars:2,consts:[["tag",""],["noPopover",""],["tagContent",""],["commentPopover",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"commentId"],["nz-icon","","nzType","civic-comment","nzTheme","twotone","nzTwotoneColor","#44D8EF"]],template:function(r,M){if(1&r&&(e.j41(0,"a",4),e.DNE(1,fe,0,0,"ng-template",5),e.k0s(),e.DNE(2,Te,4,4,"ng-template",null,0,e.C5r)(4,Pe,2,1,"ng-template",null,1,e.C5r)(6,Ee,2,1,"ng-template",null,2,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",M.comment.link),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,Q.L_,E.Dn,ue,v.s],encapsulation:2})}return t})();function De(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"i",11),e.nI1(2,"entityColor"),e.EFF(3),e.k0s()),2&t){const n=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"Flag")),e.R7$(2),e.SpI(" FID",n.id," ")}}function Re(t,a){if(1&t&&e.nrm(0,"cvc-status-tag",12),2&t){const n=e.XpG(2).ngIf;e.Y8G("status",n.state)}}function Me(t,a){1&t&&(e.j41(0,"nz-space",8),e.DNE(1,De,4,4,"span",9)(2,Re,1,1,"cvc-status-tag",10),e.k0s())}function Oe(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",13),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",n.flaggable)}}function Ge(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",14),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",n.flaggable)}}function xe(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",15),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",n.flaggable)}}function ye(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",16),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",n.flaggable)}}function Fe(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",17),2&t){const n=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variantgroup",n.flaggable)}}function je(t,a){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3).ngIf;e.R7$(),e.JRh(n.flaggable.name)}}function Se(t,a){1&t&&e.DNE(0,je,2,1,"span",18)}function Ae(t,a){if(1&t&&e.DNE(0,Oe,1,2,"cvc-feature-tag",13)(1,Ge,1,2,"cvc-assertion-tag",14)(2,xe,1,2,"cvc-evidence-tag",15)(3,ye,1,2,"cvc-feature-variant-tag",16)(4,Fe,1,2,"cvc-variant-group-tag",17)(5,Se,1,0,"span"),2&t){let n;const r=e.XpG().ngIf;e.vxM("Feature"===(n=r.flaggable.__typename)?0:"Assertion"===n?1:"EvidenceItem"===n?2:"Variant"===n?3:"VariantGroup"===n?4:5)}}function $e(t,a){if(1&t&&(e.j41(0,"nz-descriptions",19)(1,"nz-descriptions-item",20),e.nrm(2,"cvc-user-tag",21),e.k0s(),e.j41(3,"nz-descriptions-item",22),e.EFF(4),e.nI1(5,"timeAgo"),e.k0s()()),2&t){const n=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("enablePopover",!1)("user",n.flaggingUser),e.R7$(2),e.SpI(" ",e.bMT(5,4,n.createdAt)," ")}}function Ye(t,a){if(1&t&&(e.j41(0,"nz-descriptions",23)(1,"nz-descriptions-item",24),e.nrm(2,"cvc-comment-body",25),e.k0s()()),2&t){const n=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("commentBodySegments",n.openActivity.parsedNote)}}function be(t,a){if(1&t&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,Me,3,0,"ng-template",null,0,e.C5r)(4,Ae,6,1,"ng-template",null,1,e.C5r),e.j41(6,"nz-space",5),e.DNE(7,$e,6,6,"nz-descriptions",6)(8,Ye,3,2,"nz-descriptions",7),e.k0s()(),e.bVm()),2&t){const n=e.sdS(3),r=e.sdS(5);e.R7$(),e.Y8G("nzTitle",n)("nzExtra",r)}}let He=(()=>{class t{constructor(n){this.gql=n}ngOnInit(){if(null==this.flagId)throw new Error("cvc-flag-popover requires valid flagId input.");this.flag$=this.gql.watch({flagId:this.flagId}).valueChanges.pipe((0,C.T)(({data:n})=>n?.flag),(0,x.p)(P.kP))}static#e=this.\u0275fac=function(r){return new(r||t)(e.rXU(z.wJE))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-flag-popover"]],inputs:{flagId:"flagId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzDirection","vertical",2,"width","100%"],["nzBordered","","nzSize","small",3,"nzColumn",4,"nzSpaceItem"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],[1,"flag-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-flag",3,"nzTwotoneColor"],[3,"status"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[4,"ngSwitchDefault"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Flagging User"],[3,"enablePopover","user"],["nzTitle","Flagging Date"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Comment"],[3,"commentBodySegments"]],template:function(r,M){1&r&&(e.j41(0,"div",2),e.DNE(1,be,9,2,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&r&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,M.flag$)))},dependencies:[i.bT,i.fG,y.cK,E.Dn,_.U5,_.Dq,G.xA,G.gr,p._,T.r,I.a,u.J,j.j,S.S,d.g,F.p,$.L9,Y.R,b.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.flag-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return t})();function Le(t,a){}function Ue(t,a){}function Be(t,a){if(1&t&&e.nrm(0,"cvc-flag-popover",6),2&t){const n=e.XpG(2);e.Y8G("flagId",n.flag.id)}}function Xe(t,a){if(1&t&&(e.j41(0,"nz-tag",5),e.DNE(1,Ue,0,0,"ng-template",4),e.k0s(),e.DNE(2,Be,1,1,"ng-template",null,2,e.C5r)),2&t){const n=e.sdS(3),r=e.XpG(),M=e.sdS(5);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",n)("nzPopoverTrigger",r.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",M)}}function Ne(t,a){if(1&t&&(e.nrm(0,"i",7),e.EFF(1)),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.flag.name,"\n")}}let We=(()=>{class t{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-flag-tag"]],inputs:{flag:"flag",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:2,consts:[["tag",""],["tagContent",""],["flagPopover",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"flagId"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(r,M){if(1&r&&(e.j41(0,"a",3),e.DNE(1,Le,0,0,"ng-template",4),e.k0s(),e.DNE(2,Xe,4,4,"ng-template",null,0,e.C5r)(4,Ne,2,1,"ng-template",null,1,e.C5r)),2&r){const U=e.sdS(3);e.Y8G("routerLink",M.flag.link),e.R7$(),e.Y8G("ngTemplateOutlet",U)}},dependencies:[i.T3,c.Wk,v.s,E.Dn,Q.L_,He],encapsulation:2})}return t})();var Ke=o(6440),Ve=o(5473),Je=o(7793);let Qe=(()=>{class t{transform(n){switch(n){case z.H1z.Commented:case z.H1z.RevisionSuggested:case z.H1z.RevisionAccepted:case z.H1z.RevisionRejected:case z.H1z.RevisionSuperseded:return"to";case z.H1z.Flagged:case z.H1z.FlagResolved:return"on";default:return""}}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275pipe=e.EJ8({name:"prepositionForSubject",type:t,pure:!0})}return t})();function Ze(t,a){if(1&t&&e.nrm(0,"cvc-user-tag",9),2&t){const n=e.XpG(2);e.Y8G("user",n.event.originatingUser)}}function we(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function ke(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-revision-tag",12),e.DNE(2,we,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("revision",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function qe(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function et(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-comment-tag",14),e.DNE(2,qe,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("comment",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function tt(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function nt(t,a){if(1&t&&(e.j41(0,"span"),e.nrm(1,"cvc-flag-tag",15),e.DNE(2,tt,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("flag",n)("subject",r.event.subject),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function ot(t,a){if(1&t&&(e.j41(0,"span",5),e.EFF(1),e.nI1(2,"prepositionForSubject"),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.SpI("",e.bMT(2,1,n.event.action),"\xa0")}}function it(t,a){if(1&t&&(e.j41(0,"span")(1,"nz-tag",16),e.EFF(2),e.k0s(),e.DNE(3,ot,3,3,"span",13),e.k0s()),2&t){const n=e.XpG().ngIf,r=e.XpG(2);e.R7$(),e.Y8G("routerLink",n.link),e.R7$(),e.SpI(" ",n.name," "),e.R7$(),e.Y8G("ngIf","hideSubject"!=r.tagDisplay)}}function at(t,a){if(1&t&&(e.qex(0)(1,10),e.DNE(2,ke,3,3,"span",11)(3,et,3,3,"span",11)(4,nt,3,3,"span",11)(5,it,4,3,"span",11),e.bVm()()),2&t){const n=a.ngIf;e.R7$(),e.Y8G("ngSwitch",n.__typename),e.R7$(),e.Y8G("ngSwitchCase","Revision"),e.R7$(),e.Y8G("ngSwitchCase","Comment"),e.R7$(),e.Y8G("ngSwitchCase","Flag"),e.R7$(),e.Y8G("ngSwitchCase","SourceSuggestion")}}function rt(t,a){if(1&t&&e.nrm(0,"cvc-feature-tag",17),2&t){const n=e.XpG().ngIf;e.Y8G("feature",n)}}function ct(t,a){if(1&t&&e.nrm(0,"cvc-assertion-tag",18),2&t){const n=e.XpG().ngIf;e.Y8G("assertion",n)}}function st(t,a){if(1&t&&e.nrm(0,"cvc-evidence-tag",19),2&t){const n=e.XpG().ngIf;e.Y8G("evidence",n)}}function lt(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",20),2&t){const n=e.XpG().ngIf;e.Y8G("variant",n)}}function mt(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",20),2&t){const n=e.XpG().ngIf;e.Y8G("variant",n)}}function _t(t,a){if(1&t&&e.nrm(0,"cvc-feature-variant-tag",20),2&t){const n=e.XpG().ngIf;e.Y8G("variant",n)}}function pt(t,a){if(1&t&&e.nrm(0,"cvc-revision-tag",21),2&t){const n=e.XpG().ngIf;e.Y8G("revision",n)}}function gt(t,a){if(1&t&&e.nrm(0,"cvc-variant-group-tag",22),2&t){const n=e.XpG().ngIf;e.Y8G("variantgroup",n)}}function vt(t,a){if(1&t&&e.nrm(0,"cvc-source-tag",23),2&t){const n=e.XpG().ngIf;e.Y8G("source",n)}}function dt(t,a){if(1&t&&e.nrm(0,"cvc-molecular-profile-tag",24),2&t){const n=e.XpG().ngIf;e.Y8G("molecularProfile",n)}}function ut(t,a){if(1&t&&(e.j41(0,"nz-tag")(1,"a",25),e.EFF(2),e.k0s()()),2&t){const n=e.XpG().ngIf;e.R7$(),e.Y8G("href",n.link,e.B4B),e.R7$(),e.SpI(" ",n.name," ")}}function ft(t,a){if(1&t&&(e.qex(0),e.DNE(1,rt,1,1,"cvc-feature-tag",17)(2,ct,1,1,"cvc-assertion-tag",18)(3,st,1,1,"cvc-evidence-tag",19)(4,lt,1,1,"cvc-feature-variant-tag",20)(5,mt,1,1,"cvc-feature-variant-tag",20)(6,_t,1,1,"cvc-feature-variant-tag",20)(7,pt,1,1,"cvc-revision-tag",21)(8,gt,1,1,"cvc-variant-group-tag",22)(9,vt,1,1,"cvc-source-tag",23)(10,dt,1,1,"cvc-molecular-profile-tag",24)(11,ut,3,2,"nz-tag"),e.bVm()),2&t){let n;const r=a.ngIf;e.R7$(),e.vxM("Feature"===(n=r.__typename)?1:"Assertion"===n?2:"EvidenceItem"===n?3:"GeneVariant"===n?4:"FactorVariant"===n?5:"FusionVariant"===n?6:"Revision"===n?7:"VariantGroup"===n?8:"Source"===n?9:"MolecularProfile"===n?10:11)}}function Ct(t,a){if(1&t&&(e.qex(0),e.j41(1,"span",5),e.EFF(2,"for\xa0"),e.k0s(),e.nrm(3,"cvc-organization-tag",26),e.bVm()),2&t){const n=a.ngIf;e.R7$(3),e.Y8G("org",n)}}function zt(t,a){if(1&t&&(e.j41(0,"nz-row",2)(1,"nz-col",3),e.DNE(2,Ze,1,1,"cvc-user-tag",4),e.j41(3,"span",5),e.EFF(4),e.nI1(5,"eventVerbiage"),e.k0s(),e.DNE(6,at,6,5,"ng-container",6)(7,ft,12,1,"ng-container",6)(8,Ct,4,1,"ng-container",6),e.k0s(),e.j41(9,"nz-col",7)(10,"span",8),e.nI1(11,"date"),e.EFF(12),e.nI1(13,"timeAgo"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngIf","hideUser"!=n.tagDisplay),e.R7$(2),e.SpI("",e.i5U(5,7,n.event.action,"feed"),"\xa0"),e.R7$(2),e.Y8G("ngIf",n.event.originatingObject),e.R7$(),e.Y8G("ngIf","hideSubject"!=n.tagDisplay&&n.event.subject),e.R7$(),e.Y8G("ngIf","hideOrg"!=n.tagDisplay&&n.event.organization),e.R7$(2),e.Y8G("nzTooltipTitle",e.bMT(11,10,n.event.createdAt)),e.R7$(2),e.SpI(" ",e.bMT(13,12,n.event.createdAt)," ")}}function Tt(t,a){1&t&&e.EFF(0," Event database entry is malformed and cannot be displayed\n")}let ht=(()=>{class t{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["cvc-event-timeline-item"]],inputs:{event:"event",tagDisplay:"tagDisplay"},decls:3,vars:2,consts:[["noOriginating",""],["class","timeline-item",4,"ngIf","ngIfElse"],[1,"timeline-item"],["nzFlex","auto",1,"description"],[3,"user",4,"ngIf"],["nz-typography",""],[4,"ngIf"],["nzFlex","100px",1,"timestamp"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision","subject"],["nz-typography","",4,"ngIf"],[3,"comment","subject"],[3,"flag","subject"],[2,"cursor","pointer",3,"routerLink"],[3,"feature"],[3,"assertion"],[3,"evidence"],[3,"variant"],[3,"revision"],[3,"variantgroup"],["mode","concise",3,"source"],[3,"molecularProfile"],[3,"href"],[3,"org"]],template:function(r,M){if(1&r&&e.DNE(0,zt,14,14,"nz-row",1)(1,Tt,1,0,"ng-template",null,0,e.C5r),2&r){const U=e.sdS(2);e.Y8G("ngIf",M.event.originatingObject)("ngIfElse",U)}},dependencies:[i.bT,i.ux,i.e1,v.s,h.LH,D.Di,m.Uq,m.e,c.Wk,Z,T.r,Ie,We,p._,I.a,u.J,j.j,Ke.r,w.D,S.S,Ve.z,i.vh,Je.s,Qe,b.N],encapsulation:2})}return t})()},9588:(H,O,o)=>{o.d(O,{p:()=>E});var e=o(3953),i=o(177),v=o(6389),h=o(5103),D=o(7120),m=o(2597),c=o(9145);let C=(()=>{class _{transform(p){switch(p){case c.H1z.Commented:case c.H1z.CommentDeleted:return"civic-comment";case c.H1z.RevisionSuggested:case c.H1z.RevisionAccepted:case c.H1z.RevisionRejected:case c.H1z.RevisionSuperseded:return"civic-revision";case c.H1z.Flagged:case c.H1z.FlagResolved:return"civic-flag";case c.H1z.AssertionSubmitted:case c.H1z.AssertionAccepted:case c.H1z.AssertionRejected:return"civic-assertion";case c.H1z.Submitted:case c.H1z.Accepted:case c.H1z.Rejected:return"civic-evidence";case c.H1z.PublicationSuggested:case c.H1z.CuratedSourceSuggestion:case c.H1z.RejectedSourceSuggestion:case c.H1z.RequeuedSourceSuggestion:return"file-add";case c.H1z.Reverted:return"civic-evidence";case c.H1z.AssertionReverted:return"civic-assertion";case c.H1z.DeprecatedVariant:return"civic-variant";case c.H1z.DeprecatedFeature:case c.H1z.FeatureCreated:return"civic-feature";case c.H1z.DeprecatedMolecularProfile:case c.H1z.ComplexMolecularProfileCreated:return"civic-molecularprofile";case c.H1z.VariantCreated:return"civic-variant";default:return p}}static#e=this.\u0275fac=function(T){return new(T||_)};static#t=this.\u0275pipe=e.EJ8({name:"iconNameForEventAction",type:_,pure:!0})}return _})();function x(_,G){if(1&_&&(e.nrm(0,"i",6),e.nI1(1,"iconNameForEventAction")),2&_){const p=e.XpG(2).$implicit;e.Y8G("nzType",e.bMT(1,1,p.action))}}function P(_,G){if(1&_&&(e.j41(0,"nz-timeline-item",4),e.DNE(1,x,2,3,"ng-template",null,0,e.C5r),e.nrm(3,"cvc-event-timeline-item",5),e.k0s()),2&_){const p=e.sdS(2),T=e.XpG().$implicit,I=e.XpG(2);e.Y8G("nzDot",p),e.R7$(3),e.Y8G("event",T)("tagDisplay",I.tagDisplay)}}function z(_,G){if(1&_&&(e.qex(0),e.DNE(1,P,4,3,"nz-timeline-item",3),e.bVm()),2&_){const p=G.$implicit;e.R7$(),e.Y8G("ngIf",p)}}function y(_,G){if(1&_&&(e.j41(0,"nz-timeline"),e.DNE(1,z,2,1,"ng-container",2),e.k0s()),2&_){const p=e.XpG();e.R7$(),e.Y8G("ngForOf",p.events)}}let E=(()=>{class _{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.events)throw new Error("cvc-feed-item component requires array of EventFeedNodeFragment input.")}static#e=this.\u0275fac=function(T){return new(T||_)};static#t=this.\u0275cmp=e.VBU({type:_,selectors:[["cvc-event-timeline"]],inputs:{events:"events",tagDisplay:"tagDisplay"},decls:1,vars:1,consts:[["timelineDotTemplate",""],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"nzDot",4,"ngIf"],[3,"nzDot"],[3,"event","tagDisplay"],["nz-icon","","nzTheme","twotone",1,"item-icon",3,"nzType"]],template:function(T,I){1&T&&e.DNE(0,y,2,1,"nz-timeline",1),2&T&&e.Y8G("ngIf",null==I.events?null:I.events.length)},dependencies:[i.Sq,i.bT,v.c,h.Dn,D.SO,D.XJ,m.O,C],styles:["[_nghost-%COMP%]{display:block}.item-icon[_ngcontent-%COMP%]{font-size:18px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .timeline-item[_ngcontent-%COMP%] .timestamp[_ngcontent-%COMP%]{margin-top:2px}.timeline-item[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-left:4px}nz-timeline[_ngcontent-%COMP%] ul li:last-child{padding-bottom:0}nz-timeline[_ngcontent-%COMP%] ul li:last-child .ant-timeline-item-content{min-height:0;padding-bottom:8px}.timestamp[_ngcontent-%COMP%]{text-align:right}.comment-title[_ngcontent-%COMP%]{padding-right:24px}.comment-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:400}.comment-card[_ngcontent-%COMP%]{width:100%}"]})}return _})()},2172:(H,O,o)=>{o.d(O,{a:()=>S});var e=o(177),i=o(5103),v=o(2839),h=o(7391),D=o(4917),m=o(9238),c=o(9269),C=o(1862),x=o(6936),P=o(7051),z=o(8920),y=o(5154),E=o(7120),_=o(7529),G=o(4415),p=o(513),T=o(1209),I=o(5023),u=o(6912),j=o(3953);let S=(()=>{class d{static#e=this.\u0275fac=function(Y){return new(Y||d)};static#t=this.\u0275mod=j.$C({type:d});static#n=this.\u0275inj=j.G2t({imports:[e.MD,p.Zw,i.Y3,y.Qt,h.kT,E.ki,_.f3,G.O,v.m,D.i,m.e,c.P,u.l,C.e,x.G,P.U,z.U,T.k,I.J]})}return d})()},9269:(H,O,o)=>{o.d(O,{P:()=>S});var e=o(177),i=o(5699),v=o(5103),h=o(1188),D=o(4917),m=o(2839),c=o(1862),C=o(6936),x=o(5703),P=o(7529),z=o(8134),y=o(9590),E=o(7685),_=o(2e3),G=o(7169),p=o(6912),T=o(7086),I=o(3953);let u=(()=>{class d{static#e=this.\u0275fac=function(Y){return new(Y||d)};static#t=this.\u0275mod=I.$C({type:d});static#n=this.\u0275inj=I.G2t({imports:[e.MD,x.Ti,P.f3,v.Y3,E.pc,_.WF,D.i,p.l,m.m,c.e,C.G,T.C,z.l,y.R,G.W]})}return d})();var j=o(1236);let S=(()=>{class d{static#e=this.\u0275fac=function(Y){return new(Y||d)};static#t=this.\u0275mod=I.$C({type:d});static#n=this.\u0275inj=I.G2t({imports:[e.MD,h.iI,i.T,v.Y3,j.MC,D.i,u]})}return d})()},5757:(H,O,o)=>{o.d(O,{v:()=>x});var e=o(177),i=o(5703),v=o(2617),h=o(7529),D=o(7685),m=o(5699),c=o(4917),C=o(3953);let x=(()=>{class P{static#e=this.\u0275fac=function(E){return new(E||P)};static#t=this.\u0275mod=C.$C({type:P});static#n=this.\u0275inj=C.G2t({imports:[e.MD,i.Ti,v.rD,h.f3,m.T,D.pc,c.i]})}return P})()},4415:(H,O,o)=>{o.d(O,{O:()=>d});var e=o(177),i=o(5699),v=o(5103),h=o(1188),D=o(4917),m=o(2839),c=o(1862),C=o(6936),x=o(5703),P=o(7529),z=o(8134),y=o(9590),E=o(7685),_=o(2e3),G=o(5757),p=o(7169),T=o(6912),I=o(7086),u=o(3953);let j=(()=>{class F{static#e=this.\u0275fac=function(b){return new(b||F)};static#t=this.\u0275mod=u.$C({type:F});static#n=this.\u0275inj=u.G2t({imports:[e.MD,x.Ti,P.f3,v.Y3,E.pc,_.WF,D.i,T.l,m.m,c.e,C.G,I.C,z.l,y.R,p.W,G.v]})}return F})();var S=o(1236);let d=(()=>{class F{static#e=this.\u0275fac=function(b){return new(b||F)};static#t=this.\u0275mod=u.$C({type:F});static#n=this.\u0275inj=u.G2t({imports:[e.MD,h.iI,D.i,j,i.T,v.Y3,S.MC]})}return F})()},2968:(H,O,o)=>{o.d(O,{K:()=>c});var e=o(177),i=o(5703),v=o(2617),h=o(5103),D=o(513),m=o(3953);let c=(()=>{class C{static#e=this.\u0275fac=function(z){return new(z||C)};static#t=this.\u0275mod=m.$C({type:C});static#n=this.\u0275inj=m.G2t({imports:[e.MD,i.Ti,v.rD,h.Y3,D.Zw]})}return C})()},7793:(H,O,o)=>{o.d(O,{s:()=>v});var e=o(9145),i=o(3953);let v=(()=>{class h{transform(m,c="contributor-card",C=0){return"contributor-card"===c?this.contributorVerbiage(m,C):"action-filter"===c?this.actionFilterVerbiage(m):this.eventFeedVerbiage(m)}eventFeedVerbiage(m){switch(m){case e.H1z.Commented:return"added comment";case e.H1z.RevisionSuggested:return"suggested revision";case e.H1z.RevisionAccepted:return"accepted revision";case e.H1z.RevisionRejected:return"rejected revision";case e.H1z.RevisionSuperseded:return"closed revision";case e.H1z.Flagged:return"opened new flag";case e.H1z.FlagResolved:return"resolved flag";case e.H1z.AssertionSubmitted:return"submitted assertion";case e.H1z.AssertionAccepted:return"accepted assertion";case e.H1z.AssertionRejected:return"rejected assertion";case e.H1z.Submitted:return"submitted evidence item";case e.H1z.Accepted:return"accepted evidence item";case e.H1z.Rejected:return"rejected evidence item";case e.H1z.PublicationSuggested:return"created source suggestion";case e.H1z.CuratedSourceSuggestion:return"finished curating source suggestion";case e.H1z.RejectedSourceSuggestion:return"rejected source suggestion";case e.H1z.RequeuedSourceSuggestion:return"requeued source suggestion";case e.H1z.Reverted:return"reverted evidence item";case e.H1z.AssertionReverted:return"reverted assertion";case e.H1z.DeprecatedVariant:return"deprecated variant";case e.H1z.DeprecatedFeature:return"deprecated feature";case e.H1z.DeprecatedMolecularProfile:return"deprecated molecular profile";case e.H1z.VariantCreated:return"created variant";case e.H1z.FeatureCreated:return"created feature";case e.H1z.ComplexMolecularProfileCreated:return"created complex molecular profile";case e.H1z.CommentDeleted:return"deleted comment";default:return m}}actionFilterVerbiage(m){switch(m){case e.H1z.Commented:return"commented";case e.H1z.RevisionSuggested:return"revision suggested";case e.H1z.RevisionAccepted:return"revision accepted";case e.H1z.RevisionRejected:return"revision rejected";case e.H1z.RevisionSuperseded:return"revision closed";case e.H1z.Flagged:return"flag opened";case e.H1z.FlagResolved:return"flag resolved";case e.H1z.AssertionSubmitted:return"assertion submitted";case e.H1z.AssertionAccepted:return"assertion accepted";case e.H1z.AssertionRejected:return"assertion rejected";case e.H1z.Submitted:return"evidence item submitted";case e.H1z.Accepted:return"evidence item accepted";case e.H1z.Rejected:return"evidence item rejected";case e.H1z.PublicationSuggested:return"source suggestion created";case e.H1z.CuratedSourceSuggestion:return"source suggestion curated";case e.H1z.RejectedSourceSuggestion:return"source suggestion rejected";case e.H1z.RequeuedSourceSuggestion:return"source suggestion requeued";case e.H1z.Reverted:return"evidence item reverted";case e.H1z.AssertionReverted:return"assertion reverted";case e.H1z.DeprecatedVariant:return"variant deprecated";case e.H1z.DeprecatedMolecularProfile:return"molecular profile deprecated";case e.H1z.VariantCreated:return"variant created";case e.H1z.ComplexMolecularProfileCreated:return"complex molecular profile created";case e.H1z.CommentDeleted:return"comment deleted";default:return m}}contributorVerbiage(m,c){switch(m){case e.H1z.Commented:return 1==c?"left a comment on this entity":`left ${c} comments on this entity`;case e.H1z.RevisionSuggested:return 1==c?"suggested a revision to this entity":`suggested ${c} revisions on this entity`;case e.H1z.RevisionAccepted:return 1==c?"accepted a revision to this entity":`accepted ${c} revisions on this entity`;case e.H1z.RevisionRejected:return 1==c?"rejected a revision to this entity":`rejected ${c} revisions on this entity`;case e.H1z.RevisionSuperseded:return 1==c?"closed a revision to this entity":`closed ${c} revisions on this entity`;case e.H1z.Flagged:return 1==c?"opened new flag on this entity":`opened ${c} new flags on this entity`;case e.H1z.FlagResolved:return 1==c?"resolved a flag on this entity":`resolved ${c} flags on this entity`;case e.H1z.AssertionSubmitted:return"submitted this assertion";case e.H1z.AssertionAccepted:return"accepted this assertion";case e.H1z.AssertionRejected:return"rejected this assertion";case e.H1z.Submitted:return"submitted this evidence item";case e.H1z.Accepted:return"accepted this evidence item";case e.H1z.Rejected:return"rejected this evidence item";case e.H1z.PublicationSuggested:return"";case e.H1z.CuratedSourceSuggestion:return"finished curating this source suggestion";case e.H1z.RejectedSourceSuggestion:return"rejected this source suggestion";case e.H1z.RequeuedSourceSuggestion:return"requeued this source suggestion";case e.H1z.AssertionReverted:return"reverted this assertion";case e.H1z.Reverted:return"reverted this evidence item";case e.H1z.DeprecatedVariant:return"deprecated this variant";case e.H1z.DeprecatedMolecularProfile:return"deprecated this molecular profile";case e.H1z.DeprecatedFeature:return"deprecated this feature";case e.H1z.FeatureCreated:return"created this feature";case e.H1z.VariantCreated:return"created this variant";case e.H1z.ComplexMolecularProfileCreated:return"created this complex molecular profile";default:return m}}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275pipe=i.EJ8({name:"eventVerbiage",type:h,pure:!0})}return h})()},7120:(H,O,o)=>{o.d(O,{SO:()=>B,XJ:()=>X,ki:()=>J});var e=o(177),i=o(3953),v=o(7806),h=o(2771),D=o(1413),m=o(6977),c=o(5103),C=o(8203);const x=["template"],P=["*"];function z(s,R){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.JRh(l.nzLabel)}}function y(s,R){if(1&s&&(i.j41(0,"div",7),i.DNE(1,z,2,1,"ng-container",5),i.k0s()),2&s){const l=i.XpG(2);i.R7$(),i.Y8G("nzStringTemplateOutlet",l.nzLabel)}}function E(s,R){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(2);i.R7$(),i.JRh(l.nzDot)}}function _(s,R){if(1&s&&(i.j41(0,"li",1),i.DNE(1,y,2,1,"div",2),i.nrm(2,"div",3),i.j41(3,"div",4),i.DNE(4,E,2,1,"ng-container",5),i.k0s(),i.j41(5,"div",6),i.SdG(6),i.k0s()()),2&s){const l=i.XpG();i.AVh("ant-timeline-item-right","right"===(l.nzPosition||l.position))("ant-timeline-item-left","left"===(l.nzPosition||l.position))("ant-timeline-item-last",l.isLast),i.R7$(),i.Y8G("ngIf",l.nzLabel),i.R7$(2),i.xc7("border-color",l.borderColor),i.AVh("ant-timeline-item-head-red","red"===l.nzColor)("ant-timeline-item-head-blue","blue"===l.nzColor)("ant-timeline-item-head-green","green"===l.nzColor)("ant-timeline-item-head-gray","gray"===l.nzColor)("ant-timeline-item-head-custom",!!l.nzDot),i.R7$(),i.Y8G("nzStringTemplateOutlet",l.nzDot)}}function G(s,R){if(1&s&&i.eu8(0,4),2&s){i.XpG();const l=i.sdS(5);i.Y8G("ngTemplateOutlet",l)}}function p(s,R){}function T(s,R){if(1&s&&(i.qex(0),i.DNE(1,p,0,0,"ng-template",4),i.bVm()),2&s){const l=R.$implicit;i.R7$(),i.Y8G("ngTemplateOutlet",l.template)}}function I(s,R){if(1&s&&i.eu8(0,4),2&s){i.XpG();const l=i.sdS(5);i.Y8G("ngTemplateOutlet",l)}}function u(s,R){1&s&&i.nrm(0,"span",12)}function j(s,R){if(1&s&&(i.qex(0),i.EFF(1),i.DNE(2,u,1,0,"span",11),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.SpI(" ",l.nzPendingDot," "),i.R7$(),i.Y8G("ngIf",!l.nzPendingDot)}}function S(s,R){if(1&s&&(i.qex(0),i.EFF(1),i.bVm()),2&s){const l=i.XpG(3);i.R7$(),i.SpI(" ",l.isPendingBoolean?"":l.nzPending," ")}}function d(s,R){if(1&s&&(i.j41(0,"li",6),i.nrm(1,"div",7),i.j41(2,"div",8),i.DNE(3,j,3,2,"ng-container",9),i.k0s(),i.j41(4,"div",10),i.DNE(5,S,2,1,"ng-container",9),i.k0s()()),2&s){const l=i.XpG(2);i.R7$(3),i.Y8G("nzStringTemplateOutlet",l.nzPendingDot),i.R7$(2),i.Y8G("nzStringTemplateOutlet",l.nzPending)}}function F(s,R){if(1&s&&i.DNE(0,d,6,2,"li",5),2&s){const l=i.XpG();i.Y8G("ngIf",l.nzPending)}}const b=["red","blue","green","grey","gray"];let L=(()=>{class s{constructor(){this.check$=new h.m(1)}markForCheck(){this.check$.next()}static#e=this.\u0275fac=function(g){return new(g||s)};static#t=this.\u0275prov=i.jDH({token:s,factory:s.\u0275fac})}return s})(),B=(()=>{class s{constructor(l,g){this.cdr=l,this.timelineService=g,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(l){this.timelineService.markForCheck(),l.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function K(s){return-1!==b.findIndex(R=>R===s)}(this.nzColor)?null:this.nzColor}static#e=this.\u0275fac=function(g){return new(g||s)(i.rXU(i.gRc),i.rXU(L))};static#t=this.\u0275cmp=i.VBU({type:s,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(g,f){if(1&g&&i.GBs(x,5),2&g){let A;i.mGM(A=i.lsd())&&(f.template=A.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],standalone:!0,features:[i.OA$,i.aNF],ngContentSelectors:P,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],["class","ant-timeline-item-label",4,"ngIf"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],[1,"ant-timeline-item-label"]],template:function(g,f){1&g&&(i.NAR(),i.DNE(0,_,7,20,"ng-template",null,0,i.C5r))},dependencies:[e.bT,v.C,v.m],encapsulation:2,changeDetection:0})}return s})(),X=(()=>{class s{constructor(l,g,f){this.cdr=l,this.timelineService=g,this.directionality=f,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new D.B}ngOnChanges(l){const{nzMode:g,nzReverse:f,nzPending:A}=l;(N(g)||N(f))&&this.updateChildren(),A&&(this.isPendingBoolean=!0===A.currentValue)}ngOnInit(){this.timelineService.check$.pipe((0,m.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.directionality.change?.pipe((0,m.Q)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,m.Q)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const l=this.listOfItems.length;let g=!1;this.listOfItems.forEach((f,A)=>{f.isLast=this.nzReverse?0===A:A===l-1,f.position=function V(s,R){return"custom"===R?void 0:"left"===R?"left":"right"===R?"right":"alternate"===R&&s%2==0?"left":"right"}(A,this.nzMode),!g&&f.nzLabel&&(g=!0),f.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=g}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}static#e=this.\u0275fac=function(g){return new(g||s)(i.rXU(i.gRc),i.rXU(L),i.rXU(C.dS,8))};static#t=this.\u0275cmp=i.VBU({type:s,selectors:[["nz-timeline"]],contentQueries:function(g,f,A){if(1&g&&i.wni(A,B,4),2&g){let W;i.mGM(W=i.lsd())&&(f.listOfItems=W)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:[2,"nzReverse","nzReverse",i.L39]},exportAs:["nzTimeline"],standalone:!0,features:[i.Jv_([L]),i.GFd,i.OA$,i.aNF],ngContentSelectors:P,decls:7,vars:15,consts:[["pendingTemplate",""],[1,"ant-timeline"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-timeline-item ant-timeline-item-pending",4,"ngIf"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(g,f){1&g&&(i.NAR(),i.j41(0,"ul",1),i.DNE(1,G,1,1,"ng-container",2)(2,T,2,1,"ng-container",3)(3,I,1,1,"ng-container",2),i.k0s(),i.DNE(4,F,1,1,"ng-template",null,0,i.C5r),i.SdG(6)),2&g&&(i.AVh("ant-timeline-label",f.hasLabelItem)("ant-timeline-right",!f.hasLabelItem&&"right"===f.nzMode)("ant-timeline-alternate","alternate"===f.nzMode||"custom"===f.nzMode)("ant-timeline-pending",!!f.nzPending)("ant-timeline-reverse",f.nzReverse)("ant-timeline-rtl","rtl"===f.dir),i.R7$(),i.Y8G("ngIf",f.nzReverse),i.R7$(),i.Y8G("ngForOf",f.timelineItems),i.R7$(),i.Y8G("ngIf",!f.nzReverse))},dependencies:[e.bT,e.T3,e.Sq,v.C,v.m,c.Y3,c.Dn],encapsulation:2,changeDetection:0})}return s})();function N(s){return!(!s||s.previousValue===s.currentValue&&!s.isFirstChange())}let J=(()=>{class s{static#e=this.\u0275fac=function(g){return new(g||s)};static#t=this.\u0275mod=i.$C({type:s});static#n=this.\u0275inj=i.G2t({imports:[B,X]})}return s})()}}]); \ No newline at end of file diff --git a/server/public/6618.1122c81efe8fd01c.js b/server/public/6618.553dce5a4245d39e.js similarity index 72% rename from server/public/6618.1122c81efe8fd01c.js rename to server/public/6618.553dce5a4245d39e.js index cb0880b3e..50ae42e3f 100644 --- a/server/public/6618.1122c81efe8fd01c.js +++ b/server/public/6618.553dce5a4245d39e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6618],{5128:(X,E,t)=>{t.d(E,{K:()=>f});var C=t(177),c=t(8524),z=t(3953),e=t(9417),y=t(1011);const m={name:"comment-textarea",component:(()=>{class l extends c.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(x,s)=>`Comments must be at least ${s.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let x;return function(P){return(x||(x=z.xGo(l)))(P||l)}})();static#n=this.\u0275cmp=z.VBU({type:l,selectors:[["comment-textarea-type"]],features:[z.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(s,P){1&s&&z.nrm(0,"textarea",0),2&s&&z.Y8G("formControl",P.formControl)("formlyAttributes",P.field)},dependencies:[e.me,e.BC,e.l_,c.ch,y.Sy],encapsulation:2,changeDetection:0})}return l})(),wrappers:["form-field"]};var h=t(8927);let f=(()=>{class l{static#t=this.\u0275fac=function(s){return new(s||l)};static#n=this.\u0275mod=z.$C({type:l});static#e=this.\u0275inj=z.G2t({imports:[C.MD,e.X1,c.qy.forChild({types:[m]}),h.PQ,y.j]})}return l})()},7480:(X,E,t)=>{function C(c,z){const e=(n,m)=>{let h;for(let f of n)if(f.fieldGroup)h=e(f.fieldGroup,m);else if(f.key===m){h=f;break}return h},y=(n,m)=>{for(let h of Object.keys(m))if(m[h]instanceof Object&&!Array.isArray(m[h]))y(n,m[h]);else{const f=e(n,h);f&&(f.defaultValue=m[h])}return n};return y(c,z)}t.d(E,{A:()=>C})},9065:(X,E,t)=>{t.r(E),t.d(E,{AssertionsReviseModule:()=>J});var C=t(177),c=t(1188),z=t(9172),e=t(6354),y=t(4608),n=t(3953),m=t(9145),h=t(1305),f=t(3062),l=t(7685),T=t(5103),x=t(7391),s=t(5473),P=t(9765),D=t(7529),F=t(2261),$=t(3075),U=t(1774);function G(o,I){if(1&o&&(n.j41(0,"span",12)(1,"strong"),n.EFF(2),n.k0s(),n.EFF(3," Parents:"),n.k0s()),2&o){const g=n.XpG(2).ngIf;n.R7$(2),n.JRh(g.name)}}function V(o,I){if(1&o&&(n.j41(0,"span",13),n.nrm(1,"cvc-molecular-profile-tag",14),n.k0s()),2&o){const g=n.XpG(2).ngIf;n.R7$(),n.Y8G("molecularProfile",g.molecularProfile)("enablePopover",!1)}}function N(o,I){1&o&&(n.j41(0,"nz-space",9),n.DNE(1,G,4,1,"span",10)(2,V,2,2,"span",11),n.k0s())}function S(o,I){1&o&&(n.j41(0,"div"),n.nrm(1,"router-outlet"),n.k0s())}function L(o,I){1&o&&(n.j41(0,"nz-row",15)(1,"div",16),n.nrm(2,"cvc-login-prompt"),n.k0s()())}function r(o,I){if(1&o&&(n.qex(0),n.nrm(1,"cvc-section-navigation",3),n.DNE(2,N,3,0,"ng-template",null,0,n.C5r),n.j41(4,"nz-page-header",4)(5,"nz-page-header-title",5),n.EFF(6," REVISE "),n.nrm(7,"i",6),n.nI1(8,"entityColor"),n.EFF(9),n.k0s(),n.j41(10,"nz-page-header-content")(11,"div",7),n.DNE(12,S,2,0,"div",8),n.nI1(13,"ngrxPush"),n.DNE(14,L,3,0,"ng-template",null,1,n.C5r),n.k0s()()(),n.bVm()),2&o){const g=I.ngIf,p=n.sdS(3),R=n.sdS(15),w=n.XpG();n.R7$(),n.Y8G("displayName",g.name)("relationsTpl",p),n.R7$(6),n.Y8G("nzTwotoneColor",n.bMT(8,6,"Assertion")),n.R7$(2),n.SpI(" ",g.name," "),n.R7$(3),n.Y8G("ngIf",n.bMT(13,8,w.isSignedIn$))("ngIfElse",R)}}let A=(()=>{class o{constructor(g,p,R){this.gql=g,this.route=p,this.viewerService=R,this.routeSub=this.route.params.subscribe(w=>{let H=this.gql.watch({assertionId:+w.assertionId}).valueChanges;this.loading$=H.pipe((0,y.E)("loading"),(0,z.Z)(!0)),this.assertion$=H.pipe((0,y.E)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,e.T)(g=>g.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(p){return new(p||o)(n.rXU(m.kKs),n.rXU(c.nX),n.rXU(h.q))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-assertions-revise-view"]],decls:2,vars:3,consts:[["assertionRelations",""],["notSignedIn",""],[4,"ngIf"],[3,"displayName","relationsTpl"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"molecularProfile","enablePopover"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(p,R){1&p&&(n.DNE(0,r,16,10,"ng-container",2),n.nI1(1,"async")),2&p&&n.Y8G("ngIf",n.bMT(1,1,R.assertion$))},dependencies:[C.bT,c.n3,f.WB,f.k9,f.zR,l.U5,l.Dq,T.Dn,x.Di,s.z,P.n,D.Uq,D.e,F.h,C.Jj,$.R,U.L9],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})();var a=t(5703),d=t(1912),u=t(2090);let O=(()=>{class o{static#t=this.\u0275fac=function(p){return new(p||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[C.MD,D.f3,a.Ti,d.i3,l.pc,u.B]})}return o})();var j=t(5847);function B(o,I){if(1&o&&(n.qex(0),n.nrm(1,"cvc-assertion-revise-form",2),n.bVm()),2&o){const g=n.XpG();n.R7$(),n.Y8G("assertionId",g.assertionId)}}function Y(o,I){1&o&&n.EFF(0,"Loading Assertion...")}const b=[{path:"",component:A,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class o{constructor(g){this.route=g,this.routeParams$=this.route.params.subscribe(p=>{this.assertionId=+p.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}static#t=this.\u0275fac=function(p){return new(p||o)(n.rXU(c.nX))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-assertions-suggest-page"]],decls:3,vars:2,consts:[["loadingAssertion",""],[4,"ngIf","ngIfElse"],[3,"assertionId"]],template:function(p,R){if(1&p&&n.DNE(0,B,2,1,"ng-container",1)(1,Y,1,0,"ng-template",null,0,n.C5r),2&p){const w=n.sdS(2);n.Y8G("ngIf",R.assertionId)("ngIfElse",w)}},dependencies:[C.bT,j.Z],encapsulation:2})}return o})(),data:{breadcrumb:"Suggest Revision"}}]}];let M=(()=>{class o{static#t=this.\u0275fac=function(p){return new(p||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[c.iI.forChild(b),O,c.iI]})}return o})();var v=t(4124),W=t(5128),K=t(3688),Q=t(996),Z=t(4917);let J=(()=>{class o{static#t=this.\u0275fac=function(p){return new(p||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[C.MD,M,f.ZJ,l.pc,T.Y3,x.kT,l.pc,Z.i,Q.o,v.C,W.K,D.f3,K.A]})}return o})()},5629:(X,E,t)=>{t.r(E),t.d(E,{AssertionsModule:()=>Y});var C=t(177),c=t(1188),z=t(7391),e=t(3062),y=t(7529),n=t(7481),m=t(7660),h=t(5103),f=t(4124),l=t(513),T=t(7685),x=t(4917),s=t(3953);let P=(()=>{class i{static#t=this.\u0275fac=function(v){return new(v||i)};static#n=this.\u0275mod=s.$C({type:i});static#e=this.\u0275inj=s.G2t({imports:[C.MD,c.iI,h.Y3,z.kT,e.ZJ,y.f3,n.$,l.Zw,T.pc,x.i,m.u,f.C]})}return i})();var D=t(1305),F=t(1774),$=t(6389),U=t(5930),G=t(4441),V=t(9765),N=t(3075);function S(i,b){1&i&&(s.j41(0,"button",17),s.nrm(1,"i",18),s.EFF(2," Submit New Assertion "),s.k0s())}function L(i,b){if(1&i&&(s.qex(0),s.DNE(1,S,3,0,"button",16),s.bVm()),2&i){const M=b.ngrxLet;s.R7$(),s.Y8G("ngIf",M.signedIn)}}function r(i,b){if(1&i&&s.DNE(0,L,2,1,"ng-container",15),2&i){const M=s.XpG();s.Y8G("ngrxLet",M.viewer$)}}function A(i,b){1&i&&(s.j41(0,"a",19),s.nrm(1,"i",20),s.EFF(2," View Assertion Model Docs "),s.k0s())}function a(i,b){1&i&&(s.j41(0,"a",21),s.nrm(1,"i",20),s.EFF(2," View Assertion Curation Docs "),s.k0s())}const O=[{path:"",component:(()=>{class i{constructor(){}static#t=this.\u0275fac=function(v){return new(v||i)};static#n=this.\u0275cmp=s.VBU({type:i,selectors:[["app-assertions"]],decls:1,vars:0,template:function(v,W){1&v&&s.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(M){this.viewerService=M,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(v){return new(v||i)(s.rXU(D.q))};static#n=this.\u0275cmp=s.VBU({type:i,selectors:[["assertions-home"]],decls:22,vars:6,consts:[["assertionActions",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Assertions"],[4,"ngrxLet"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock",""]],template:function(v,W){if(1&v&&(s.nrm(0,"cvc-section-navigation",1),s.DNE(1,r,1,1,"ng-template",null,0,s.C5r),s.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),s.nrm(7,"i",5),s.nI1(8,"entityColor"),s.k0s(),s.j41(9,"nz-col",6)(10,"h2"),s.EFF(11,"Assertions"),s.k0s(),s.j41(12,"p",7),s.EFF(13," A CIViC Assertion summarizes a collection of Evidence Items that cover predictive/therapeutic, diagnostic, prognostic or predisposing clinical information for a variant in a specific cancer context. "),s.k0s()(),s.j41(14,"nz-col",8)(15,"nz-space",9),s.DNE(16,A,3,0,"a",10)(17,a,3,0,"a",11),s.k0s()()(),s.j41(18,"nz-row")(19,"nz-col",12)(20,"div",13),s.nrm(21,"cvc-assertions-table",14),s.k0s()()()()()),2&v){const K=s.sdS(2);s.Y8G("actionsTpl",K),s.R7$(7),s.Y8G("nzTwotoneColor",s.bMT(8,4,"Assertion")),s.R7$(5),s.Y8G("nzEllipsisRows",2),s.R7$(7),s.Y8G("nzSpan",24)}},dependencies:[C.bT,F.Nj,c.Wk,h.Dn,z.Di,e.WB,e.zR,y.Uq,y.e,l.aO,$.c,U.p,T.U5,T.Dq,G.z,V.n,N.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(2076),t.e(7240)]).then(t.bind(t,7240)).then(i=>i.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(4514),t.e(326),t.e(262),t.e(5384),t.e(394),t.e(4705)]).then(t.bind(t,4705)).then(i=>i.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(t.bind(t,9065)).then(i=>i.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>Promise.all([t.e(2076),t.e(7240)]).then(t.bind(t,7240)).then(i=>i.AssertionAddModule)}];let j=(()=>{class i{static#t=this.\u0275fac=function(v){return new(v||i)};static#n=this.\u0275mod=s.$C({type:i});static#e=this.\u0275inj=s.G2t({imports:[c.iI.forChild(O),P,c.iI]})}return i})();var B=t(9065);let Y=(()=>{class i{static#t=this.\u0275fac=function(v){return new(v||i)};static#n=this.\u0275mod=s.$C({type:i});static#e=this.\u0275inj=s.G2t({imports:[C.MD,j,B.AssertionsReviseModule]})}return i})()},7481:(X,E,t)=>{t.d(E,{$:()=>L,u:()=>S});var C=t(4707),c=t(7336),z=t(177),e=t(3953),y=t(9417),n=t(1413),m=t(3726),h=t(6977),f=t(6042),l=t(7806),T=t(5930),x=t(5103),s=t(851),P=t(8203);const D=["switchElement"];function F(r,A){1&r&&e.nrm(0,"span",8)}function $(r,A){if(1&r&&(e.qex(0),e.EFF(1),e.bVm()),2&r){const a=e.XpG(2);e.R7$(),e.JRh(a.nzCheckedChildren)}}function U(r,A){if(1&r&&(e.qex(0),e.DNE(1,$,2,1,"ng-container",9),e.bVm()),2&r){const a=e.XpG();e.R7$(),e.Y8G("nzStringTemplateOutlet",a.nzCheckedChildren)}}function G(r,A){if(1&r&&(e.qex(0),e.EFF(1),e.bVm()),2&r){const a=e.XpG(2);e.R7$(),e.JRh(a.nzUnCheckedChildren)}}function V(r,A){if(1&r&&e.DNE(0,G,2,1,"ng-container",9),2&r){const a=e.XpG();e.Y8G("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let S=(()=>{class r{updateValue(a){this.isChecked!==a&&(this.isChecked=a,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(a,d,u,O,j,B){this.nzConfigService=a,this.host=d,this.ngZone=u,this.cdr=O,this.focusMonitor=j,this.directionality=B,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new n.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,h.Q)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.host.nativeElement,"click").pipe((0,h.Q)(this.destroy$)).subscribe(a=>{a.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,m.R)(this.switchElement.nativeElement,"keydown").pipe((0,h.Q)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:d}=a;d!==c.UQ&&d!==c.LE&&d!==c.t6&&d!==c.Fm||(a.preventDefault(),this.ngZone.run(()=>{d===c.UQ?this.updateValue(!1):d===c.LE?this.updateValue(!0):(d===c.t6||d===c.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,h.Q)(this.destroy$)).subscribe(a=>{a||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(a){this.isChecked=a,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(d){return new(d||r)(e.rXU(f.yx),e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.gRc),e.rXU(s.FN),e.rXU(P.dS,8))};static#n=this.\u0275cmp=e.VBU({type:r,selectors:[["nz-switch"]],viewQuery:function(d,u){if(1&d&&e.GBs(D,7),2&d){let O;e.mGM(O=e.lsd())&&(u.switchElement=O.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzControl:[2,"nzControl","nzControl",e.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[e.Jv_([{provide:y.kq,useExisting:(0,e.Rfq)(()=>r),multi:!0}]),e.GFd,e.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(d,u){if(1&d&&(e.j41(0,"button",2,0)(2,"span",3),e.DNE(3,F,1,0,"span",4),e.k0s(),e.j41(4,"span",5),e.DNE(5,U,2,1,"ng-container",6)(6,V,1,1,"ng-template",null,1,e.C5r),e.k0s(),e.nrm(8,"div",7),e.k0s()),2&d){const O=e.sdS(7);e.AVh("ant-switch-checked",u.isChecked)("ant-switch-loading",u.nzLoading)("ant-switch-disabled",u.nzDisabled)("ant-switch-small","small"===u.nzSize)("ant-switch-rtl","rtl"===u.dir),e.Y8G("disabled",u.nzDisabled)("nzWaveExtraNode",!0),e.BMQ("id",u.nzId),e.R7$(3),e.Y8G("ngIf",u.nzLoading),e.R7$(2),e.Y8G("ngIf",u.isChecked)("ngIfElse",O)}},dependencies:[T.o7,T.p,x.Y3,x.Dn,z.bT,l.C,l.m],encapsulation:2,changeDetection:0})}return(0,C.Cg)([(0,f.H4)()],r.prototype,"nzSize",void 0),r})(),L=(()=>{class r{static#t=this.\u0275fac=function(d){return new(d||r)};static#n=this.\u0275mod=e.$C({type:r});static#e=this.\u0275inj=e.G2t({imports:[S]})}return r})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6618],{5128:(X,E,t)=>{t.d(E,{K:()=>f});var C=t(177),c=t(8524),z=t(3953),e=t(9417),y=t(1011);const m={name:"comment-textarea",component:(()=>{class l extends c.PU{constructor(){super(...arguments),this.defaultOptions={defaultValue:"",validation:{messages:{minlength:(x,s)=>`Comments must be at least ${s.templateOptions?.minLength} characters in length.`}},templateOptions:{rows:4}}}static#t=this.\u0275fac=(()=>{let x;return function(P){return(x||(x=z.xGo(l)))(P||l)}})();static#n=this.\u0275cmp=z.VBU({type:l,selectors:[["comment-textarea-type"]],features:[z.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(s,P){1&s&&z.nrm(0,"textarea",0),2&s&&z.Y8G("formControl",P.formControl)("formlyAttributes",P.field)},dependencies:[e.me,e.BC,e.l_,c.ch,y.Sy],encapsulation:2,changeDetection:0})}return l})(),wrappers:["form-field"]};var h=t(8927);let f=(()=>{class l{static#t=this.\u0275fac=function(s){return new(s||l)};static#n=this.\u0275mod=z.$C({type:l});static#e=this.\u0275inj=z.G2t({imports:[C.MD,e.X1,c.qy.forChild({types:[m]}),h.PQ,y.j]})}return l})()},7480:(X,E,t)=>{function C(c,z){const e=(n,m)=>{let h;for(let f of n)if(f.fieldGroup)h=e(f.fieldGroup,m);else if(f.key===m){h=f;break}return h},y=(n,m)=>{for(let h of Object.keys(m))if(m[h]instanceof Object&&!Array.isArray(m[h]))y(n,m[h]);else{const f=e(n,h);f&&(f.defaultValue=m[h])}return n};return y(c,z)}t.d(E,{A:()=>C})},9065:(X,E,t)=>{t.r(E),t.d(E,{AssertionsReviseModule:()=>J});var C=t(177),c=t(1188),z=t(9172),e=t(6354),y=t(4608),n=t(3953),m=t(9145),h=t(1305),f=t(3062),l=t(7685),T=t(5103),x=t(7391),s=t(5473),P=t(9765),D=t(7529),F=t(2261),$=t(3075),U=t(1774);function G(o,I){if(1&o&&(n.j41(0,"span",12)(1,"strong"),n.EFF(2),n.k0s(),n.EFF(3," Parents:"),n.k0s()),2&o){const g=n.XpG(2).ngIf;n.R7$(2),n.JRh(g.name)}}function V(o,I){if(1&o&&(n.j41(0,"span",13),n.nrm(1,"cvc-molecular-profile-tag",14),n.k0s()),2&o){const g=n.XpG(2).ngIf;n.R7$(),n.Y8G("molecularProfile",g.molecularProfile)("enablePopover",!1)}}function N(o,I){1&o&&(n.j41(0,"nz-space",9),n.DNE(1,G,4,1,"span",10)(2,V,2,2,"span",11),n.k0s())}function S(o,I){1&o&&(n.j41(0,"div"),n.nrm(1,"router-outlet"),n.k0s())}function L(o,I){1&o&&(n.j41(0,"nz-row",15)(1,"div",16),n.nrm(2,"cvc-login-prompt"),n.k0s()())}function r(o,I){if(1&o&&(n.qex(0),n.nrm(1,"cvc-section-navigation",3),n.DNE(2,N,3,0,"ng-template",null,0,n.C5r),n.j41(4,"nz-page-header",4)(5,"nz-page-header-title",5),n.EFF(6," REVISE "),n.nrm(7,"i",6),n.nI1(8,"entityColor"),n.EFF(9),n.k0s(),n.j41(10,"nz-page-header-content")(11,"div",7),n.DNE(12,S,2,0,"div",8),n.nI1(13,"ngrxPush"),n.DNE(14,L,3,0,"ng-template",null,1,n.C5r),n.k0s()()(),n.bVm()),2&o){const g=I.ngIf,p=n.sdS(3),R=n.sdS(15),w=n.XpG();n.R7$(),n.Y8G("displayName",g.name)("relationsTpl",p),n.R7$(6),n.Y8G("nzTwotoneColor",n.bMT(8,6,"Assertion")),n.R7$(2),n.SpI(" ",g.name," "),n.R7$(3),n.Y8G("ngIf",n.bMT(13,8,w.isSignedIn$))("ngIfElse",R)}}let A=(()=>{class o{constructor(g,p,R){this.gql=g,this.route=p,this.viewerService=R,this.routeSub=this.route.params.subscribe(w=>{let H=this.gql.watch({assertionId:+w.assertionId}).valueChanges;this.loading$=H.pipe((0,y.E)("loading"),(0,z.Z)(!0)),this.assertion$=H.pipe((0,y.E)("data","assertion"))})}ngOnInit(){this.isSignedIn$=this.viewerService.viewer$.pipe((0,e.T)(g=>g.signedIn))}ngOnDestroy(){this.routeSub.unsubscribe()}static#t=this.\u0275fac=function(p){return new(p||o)(n.rXU(m.kKs),n.rXU(c.nX),n.rXU(h.q))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-assertions-revise-view"]],decls:2,vars:3,consts:[["assertionRelations",""],["notSignedIn",""],[4,"ngIf"],[3,"displayName","relationsTpl"],[1,"site-page-header"],["cvcFlaggableOptions",""],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],[1,"content"],[4,"ngIf","ngIfElse"],["nzDirection","horizontal"],["nz-typography","","class","label",4,"nzSpaceItem"],["class","tags",4,"nzSpaceItem"],["nz-typography","",1,"label"],[1,"tags"],[3,"molecularProfile","enablePopover"],["nzSpan","24","nzJustify","center"],["nz-col","","nzSpan","6"]],template:function(p,R){1&p&&(n.DNE(0,r,16,10,"ng-container",2),n.nI1(1,"async")),2&p&&n.Y8G("ngIf",n.bMT(1,1,R.assertion$))},dependencies:[C.bT,c.n3,f.WB,f.k9,f.zR,l.U5,l.Dq,T.Dn,x.Di,s.z,P.n,D.Uq,D.e,F.h,C.Jj,$.R,U.L9],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})();var a=t(5703),d=t(1912),u=t(2090);let O=(()=>{class o{static#t=this.\u0275fac=function(p){return new(p||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[C.MD,D.f3,a.Ti,d.i3,l.pc,u.B]})}return o})();var j=t(5847);function B(o,I){if(1&o&&(n.qex(0),n.nrm(1,"cvc-assertion-revise-form",2),n.bVm()),2&o){const g=n.XpG();n.R7$(),n.Y8G("assertionId",g.assertionId)}}function Y(o,I){1&o&&n.EFF(0,"Loading Assertion...")}const b=[{path:"",component:A,data:{breadcrumb:"Revise"},children:[{path:"",redirectTo:"suggest",pathMatch:"full"},{path:"suggest",component:(()=>{class o{constructor(g){this.route=g,this.routeParams$=this.route.params.subscribe(p=>{this.assertionId=+p.assertionId})}ngOnDestroy(){this.routeParams$.unsubscribe()}static#t=this.\u0275fac=function(p){return new(p||o)(n.rXU(c.nX))};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-assertions-suggest-page"]],decls:3,vars:2,consts:[["loadingAssertion",""],[4,"ngIf","ngIfElse"],[3,"assertionId"]],template:function(p,R){if(1&p&&n.DNE(0,B,2,1,"ng-container",1)(1,Y,1,0,"ng-template",null,0,n.C5r),2&p){const w=n.sdS(2);n.Y8G("ngIf",R.assertionId)("ngIfElse",w)}},dependencies:[C.bT,j.Z],encapsulation:2})}return o})(),data:{breadcrumb:"Suggest Revision"}}]}];let M=(()=>{class o{static#t=this.\u0275fac=function(p){return new(p||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[c.iI.forChild(b),O,c.iI]})}return o})();var v=t(4124),W=t(5128),K=t(3688),Q=t(996),Z=t(4917);let J=(()=>{class o{static#t=this.\u0275fac=function(p){return new(p||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[C.MD,M,f.ZJ,l.pc,T.Y3,x.kT,l.pc,Z.i,Q.o,v.C,W.K,D.f3,K.A]})}return o})()},5629:(X,E,t)=>{t.r(E),t.d(E,{AssertionsModule:()=>Y});var C=t(177),c=t(1188),z=t(7391),e=t(3062),y=t(7529),n=t(7481),m=t(7660),h=t(5103),f=t(4124),l=t(513),T=t(7685),x=t(4917),s=t(3953);let P=(()=>{class i{static#t=this.\u0275fac=function(v){return new(v||i)};static#n=this.\u0275mod=s.$C({type:i});static#e=this.\u0275inj=s.G2t({imports:[C.MD,c.iI,h.Y3,z.kT,e.ZJ,y.f3,n.$,l.Zw,T.pc,x.i,m.u,f.C]})}return i})();var D=t(1305),F=t(1774),$=t(6389),U=t(5930),G=t(4441),V=t(9765),N=t(3075);function S(i,b){1&i&&(s.j41(0,"button",17),s.nrm(1,"i",18),s.EFF(2," Submit New Assertion "),s.k0s())}function L(i,b){if(1&i&&(s.qex(0),s.DNE(1,S,3,0,"button",16),s.bVm()),2&i){const M=b.ngrxLet;s.R7$(),s.Y8G("ngIf",M.signedIn)}}function r(i,b){if(1&i&&s.DNE(0,L,2,1,"ng-container",15),2&i){const M=s.XpG();s.Y8G("ngrxLet",M.viewer$)}}function A(i,b){1&i&&(s.j41(0,"a",19),s.nrm(1,"i",20),s.EFF(2," View Assertion Model Docs "),s.k0s())}function a(i,b){1&i&&(s.j41(0,"a",21),s.nrm(1,"i",20),s.EFF(2," View Assertion Curation Docs "),s.k0s())}const O=[{path:"",component:(()=>{class i{constructor(){}static#t=this.\u0275fac=function(v){return new(v||i)};static#n=this.\u0275cmp=s.VBU({type:i,selectors:[["app-assertions"]],decls:1,vars:0,template:function(v,W){1&v&&s.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return i})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class i{constructor(M){this.viewerService=M,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(v){return new(v||i)(s.rXU(D.q))};static#n=this.\u0275cmp=s.VBU({type:i,selectors:[["assertions-home"]],decls:22,vars:6,consts:[["assertionActions",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-assertion",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Assertions"],[4,"ngrxLet"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/assertions/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/assertions.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/assertions.html","target","_blank","nzSize","small","nzBlock",""]],template:function(v,W){if(1&v&&(s.nrm(0,"cvc-section-navigation",1),s.DNE(1,r,1,1,"ng-template",null,0,s.C5r),s.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),s.nrm(7,"i",5),s.nI1(8,"entityColor"),s.k0s(),s.j41(9,"nz-col",6)(10,"h2"),s.EFF(11,"Assertions"),s.k0s(),s.j41(12,"p",7),s.EFF(13," A CIViC Assertion summarizes a collection of Evidence Items that cover predictive/therapeutic, diagnostic, prognostic or predisposing clinical information for a variant in a specific cancer context. "),s.k0s()(),s.j41(14,"nz-col",8)(15,"nz-space",9),s.DNE(16,A,3,0,"a",10)(17,a,3,0,"a",11),s.k0s()()(),s.j41(18,"nz-row")(19,"nz-col",12)(20,"div",13),s.nrm(21,"cvc-assertions-table",14),s.k0s()()()()()),2&v){const K=s.sdS(2);s.Y8G("actionsTpl",K),s.R7$(7),s.Y8G("nzTwotoneColor",s.bMT(8,4,"Assertion")),s.R7$(5),s.Y8G("nzEllipsisRows",2),s.R7$(7),s.Y8G("nzSpan",24)}},dependencies:[C.bT,F.Nj,c.Wk,h.Dn,z.Di,e.WB,e.zR,y.Uq,y.e,l.aO,$.c,U.p,T.U5,T.Dq,G.z,V.n,N.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return i})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([t.e(2076),t.e(7240)]).then(t.bind(t,7240)).then(i=>i.AssertionAddModule),data:{breadcrumb:"Add"}},{path:":assertionId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(8414),t.e(1110),t.e(6161),t.e(4514),t.e(8313),t.e(262),t.e(5384),t.e(394),t.e(4705)]).then(t.bind(t,4705)).then(i=>i.AssertionsDetailModule)},{path:"revise",loadChildren:()=>Promise.resolve().then(t.bind(t,9065)).then(i=>i.AssertionsReviseModule),data:{breadcrumb:"Revise"}}]}]},{path:"revise",loadChildren:()=>Promise.all([t.e(2076),t.e(7240)]).then(t.bind(t,7240)).then(i=>i.AssertionAddModule)}];let j=(()=>{class i{static#t=this.\u0275fac=function(v){return new(v||i)};static#n=this.\u0275mod=s.$C({type:i});static#e=this.\u0275inj=s.G2t({imports:[c.iI.forChild(O),P,c.iI]})}return i})();var B=t(9065);let Y=(()=>{class i{static#t=this.\u0275fac=function(v){return new(v||i)};static#n=this.\u0275mod=s.$C({type:i});static#e=this.\u0275inj=s.G2t({imports:[C.MD,j,B.AssertionsReviseModule]})}return i})()},7481:(X,E,t)=>{t.d(E,{$:()=>L,u:()=>S});var C=t(4707),c=t(7336),z=t(177),e=t(3953),y=t(9417),n=t(1413),m=t(3726),h=t(6977),f=t(6042),l=t(7806),T=t(5930),x=t(5103),s=t(851),P=t(8203);const D=["switchElement"];function F(r,A){1&r&&e.nrm(0,"span",8)}function $(r,A){if(1&r&&(e.qex(0),e.EFF(1),e.bVm()),2&r){const a=e.XpG(2);e.R7$(),e.JRh(a.nzCheckedChildren)}}function U(r,A){if(1&r&&(e.qex(0),e.DNE(1,$,2,1,"ng-container",9),e.bVm()),2&r){const a=e.XpG();e.R7$(),e.Y8G("nzStringTemplateOutlet",a.nzCheckedChildren)}}function G(r,A){if(1&r&&(e.qex(0),e.EFF(1),e.bVm()),2&r){const a=e.XpG(2);e.R7$(),e.JRh(a.nzUnCheckedChildren)}}function V(r,A){if(1&r&&e.DNE(0,G,2,1,"ng-container",9),2&r){const a=e.XpG();e.Y8G("nzStringTemplateOutlet",a.nzUnCheckedChildren)}}let S=(()=>{class r{updateValue(a){this.isChecked!==a&&(this.isChecked=a,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(a,d,u,O,j,B){this.nzConfigService=a,this.host=d,this.ngZone=u,this.cdr=O,this.focusMonitor=j,this.directionality=B,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new n.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,h.Q)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.host.nativeElement,"click").pipe((0,h.Q)(this.destroy$)).subscribe(a=>{a.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,m.R)(this.switchElement.nativeElement,"keydown").pipe((0,h.Q)(this.destroy$)).subscribe(a=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:d}=a;d!==c.UQ&&d!==c.LE&&d!==c.t6&&d!==c.Fm||(a.preventDefault(),this.ngZone.run(()=>{d===c.UQ?this.updateValue(!1):d===c.LE?this.updateValue(!0):(d===c.t6||d===c.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,h.Q)(this.destroy$)).subscribe(a=>{a||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(a){this.isChecked=a,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(d){return new(d||r)(e.rXU(f.yx),e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.gRc),e.rXU(s.FN),e.rXU(P.dS,8))};static#n=this.\u0275cmp=e.VBU({type:r,selectors:[["nz-switch"]],viewQuery:function(d,u){if(1&d&&e.GBs(D,7),2&d){let O;e.mGM(O=e.lsd())&&(u.switchElement=O.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzControl:[2,"nzControl","nzControl",e.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[e.Jv_([{provide:y.kq,useExisting:(0,e.Rfq)(()=>r),multi:!0}]),e.GFd,e.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(d,u){if(1&d&&(e.j41(0,"button",2,0)(2,"span",3),e.DNE(3,F,1,0,"span",4),e.k0s(),e.j41(4,"span",5),e.DNE(5,U,2,1,"ng-container",6)(6,V,1,1,"ng-template",null,1,e.C5r),e.k0s(),e.nrm(8,"div",7),e.k0s()),2&d){const O=e.sdS(7);e.AVh("ant-switch-checked",u.isChecked)("ant-switch-loading",u.nzLoading)("ant-switch-disabled",u.nzDisabled)("ant-switch-small","small"===u.nzSize)("ant-switch-rtl","rtl"===u.dir),e.Y8G("disabled",u.nzDisabled)("nzWaveExtraNode",!0),e.BMQ("id",u.nzId),e.R7$(3),e.Y8G("ngIf",u.nzLoading),e.R7$(2),e.Y8G("ngIf",u.isChecked)("ngIfElse",O)}},dependencies:[T.o7,T.p,x.Y3,x.Dn,z.bT,l.C,l.m],encapsulation:2,changeDetection:0})}return(0,C.Cg)([(0,f.H4)()],r.prototype,"nzSize",void 0),r})(),L=(()=>{class r{static#t=this.\u0275fac=function(d){return new(d||r)};static#n=this.\u0275mod=e.$C({type:r});static#e=this.\u0275inj=e.G2t({imports:[S]})}return r})()}}]); \ No newline at end of file diff --git a/server/public/6903.1cdb46eba27161be.js b/server/public/6903.1cdb46eba27161be.js new file mode 100644 index 000000000..060e13bd0 --- /dev/null +++ b/server/public/6903.1cdb46eba27161be.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[6903],{6903:(te,F,c)=>{c.d(F,{O:()=>ee});var n=c(3953),r=c(177),l=c(5699),j=c(5154),y=c(7391),m=c(7529),_=c(1188),z=c(3710),g=c(6408),I=c(1236),v=c(5103),S=c(4608),p=c(9145),h=c(5703),f=c(3245),u=c(1417),C=c(9045),d=c(959),G=c(9062),x=c(1774),T=c(8139);function Y(e,o){if(1&e&&n.nrm(0,"cvc-feature-tag",9),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("feature",t.commentable)}}function R(e,o){if(1&e&&n.nrm(0,"cvc-assertion-tag",10),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("assertion",t.commentable)}}function $(e,o){if(1&e&&n.nrm(0,"cvc-evidence-tag",11),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("evidence",t.commentable)}}function D(e,o){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",12),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("variant",t.commentable)}}function X(e,o){if(1&e&&n.nrm(0,"cvc-revision-tag",13),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("revision",t.commentable)}}function w(e,o){if(1&e&&n.nrm(0,"cvc-source-tag",14),2&e){const t=n.XpG(3).ngIf;n.Y8G("enablePopover",!1)("source",t.commentable)}}function M(e,o){1&e&&n.DNE(0,w,1,2,"cvc-source-tag",15),2&e&&n.Y8G("ngSwitchCase","Source")}function O(e,o){if(1&e&&n.EFF(0),2&e){const t=n.XpG(2).ngIf;n.SpI(" ",t.commentable.name," ")}}function N(e,o){if(1&e&&(n.j41(0,"span",7),n.nrm(1,"cvc-user-tag",8),n.EFF(2,"commented on "),n.DNE(3,Y,1,2,"cvc-feature-tag",9)(4,R,1,2,"cvc-assertion-tag",10)(5,$,1,2,"cvc-evidence-tag",11)(6,D,1,2,"cvc-feature-variant-tag",12)(7,X,1,2,"cvc-revision-tag",13)(8,M,1,1,"cvc-source-tag",14)(9,O,1,1),n.EFF(10),n.nI1(11,"timeAgo"),n.k0s()),2&e){let t;const a=n.XpG().ngIf;n.R7$(),n.Y8G("enablePopover",!1)("user",a.commenter),n.R7$(2),n.vxM("Feature"===(t=a.commentable.__typename)?3:"Assertion"===t?4:"EvidenceItem"===t?5:"Variant"===t?6:"Revision"===t?7:"Source"===t?8:9),n.R7$(7),n.SpI(" ",n.bMT(11,4,a.createdAt)," ")}}function k(e,o){if(1&e&&(n.j41(0,"p",16)(1,"b"),n.EFF(2),n.k0s()()),2&e){const t=n.XpG().ngIf;n.R7$(2),n.JRh(t.title)}}function A(e,o){if(1&e&&(n.qex(0),n.j41(1,"nz-card",3),n.DNE(2,N,12,6,"ng-template",null,0,n.C5r),n.j41(4,"nz-row")(5,"nz-col",4)(6,"div",5),n.DNE(7,k,3,1,"p",6),n.j41(8,"p"),n.EFF(9),n.k0s()()()()(),n.bVm()),2&e){const t=o.ngIf,a=n.sdS(3);n.R7$(),n.Y8G("nzTitle",a),n.R7$(6),n.Y8G("ngIf",t.title),n.R7$(2),n.SpI(" ",t.comment," ")}}let V=(()=>{class e{constructor(t){this.gql=t}ngOnInit(){if(null==this.commentId)throw new Error("cvc-comment-popover requires valid commentId input.");this.comment$=this.gql.watch({commentId:this.commentId}).valueChanges.pipe((0,S.E)("data","comment"))}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(p.d2V))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-comment-popover"]],inputs:{commentId:"commentId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography","",4,"ngIf"],[1,"comment-card-title"],[3,"enablePopover","user"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","revision"],["mode","concise",3,"enablePopover","source"],["mode","concise",3,"enablePopover","source",4,"ngSwitchCase"],["nz-typography",""]],template:function(a,i){1&a&&(n.j41(0,"div",1),n.DNE(1,A,10,3,"ng-container",2),n.nI1(2,"ngrxPush"),n.k0s()),2&a&&(n.R7$(),n.Y8G("ngIf",n.bMT(2,1,i.comment$)))},dependencies:[r.bT,r.e1,h.cK,m.Uq,m.e,f._,g.r,u.a,C.J,d.j,z.T,G.D,x.L9,T.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.comment-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return e})();function B(e,o){}function L(e,o){}function U(e,o){if(1&e&&n.nrm(0,"cvc-comment-popover",7),2&e){const t=n.XpG(2);n.Y8G("commentId",t.comment.id)}}function H(e,o){if(1&e&&(n.j41(0,"nz-tag",6),n.DNE(1,L,0,0,"ng-template",5),n.k0s(),n.DNE(2,U,1,1,"ng-template",null,3,n.C5r)),2&e){const t=n.sdS(3),a=n.XpG(),i=n.sdS(7);n.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",t)("nzPopoverTrigger",a.enablePopover?"hover":null),n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function J(e,o){}function W(e,o){if(1&e&&(n.j41(0,"nz-tag"),n.DNE(1,J,0,0,"ng-template",5),n.k0s()),2&e){n.XpG();const t=n.sdS(7);n.R7$(),n.Y8G("ngTemplateOutlet",t)}}function K(e,o){if(1&e&&(n.nrm(0,"i",8),n.EFF(1)),2&e){const t=n.XpG();n.R7$(),n.SpI(" ",t.comment.name,"\n")}}let Q=(()=>{class e{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.comment)throw new Error("cvc-comment-tag requires LinkableComment input, none supplied.")}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-comment-tag"]],inputs:{comment:"comment",subject:"subject",enablePopover:"enablePopover"},decls:8,vars:2,consts:[["tag",""],["noPopover",""],["tagContent",""],["commentPopover",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"commentId"],["nz-icon","","nzType","civic-comment","nzTheme","twotone","nzTwotoneColor","#44D8EF"]],template:function(a,i){if(1&a&&(n.j41(0,"a",4),n.DNE(1,B,0,0,"ng-template",5),n.k0s(),n.DNE(2,H,4,4,"ng-template",null,0,n.C5r)(4,W,2,1,"ng-template",null,1,n.C5r)(6,K,2,1,"ng-template",null,2,n.C5r)),2&a){const s=n.sdS(3);n.Y8G("routerLink",i.comment.link),n.R7$(),n.Y8G("ngTemplateOutlet",s)}},dependencies:[r.T3,_.Wk,I.L_,v.Dn,V,l.s],encapsulation:2})}return e})();var Z=c(9199),q=c(6354),nn=c(5964),P=c(7685),b=c(2e3),E=c(8238),en=c(311),tn=c(4126),on=c(3075);function an(e,o){if(1&e&&(n.j41(0,"span"),n.nrm(1,"i",11),n.nI1(2,"entityColor"),n.EFF(3),n.k0s()),2&e){const t=n.XpG(2).ngIf;n.R7$(),n.Y8G("nzTwotoneColor",n.bMT(2,2,"Flag")),n.R7$(2),n.SpI(" FID",t.id," ")}}function cn(e,o){if(1&e&&n.nrm(0,"cvc-status-tag",12),2&e){const t=n.XpG(2).ngIf;n.Y8G("status",t.state)}}function rn(e,o){1&e&&(n.j41(0,"nz-space",8),n.DNE(1,an,4,4,"span",9)(2,cn,1,1,"cvc-status-tag",10),n.k0s())}function pn(e,o){if(1&e&&n.nrm(0,"cvc-feature-tag",13),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("feature",t.flaggable)}}function sn(e,o){if(1&e&&n.nrm(0,"cvc-assertion-tag",14),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("assertion",t.flaggable)}}function mn(e,o){if(1&e&&n.nrm(0,"cvc-evidence-tag",15),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("evidence",t.flaggable)}}function ln(e,o){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",16),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("variant",t.flaggable)}}function _n(e,o){if(1&e&&n.nrm(0,"cvc-variant-group-tag",17),2&e){const t=n.XpG(2).ngIf;n.Y8G("enablePopover",!1)("variantgroup",t.flaggable)}}function gn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=n.XpG(3).ngIf;n.R7$(),n.JRh(t.flaggable.name)}}function vn(e,o){1&e&&n.DNE(0,gn,2,1,"span",18)}function fn(e,o){if(1&e&&n.DNE(0,pn,1,2,"cvc-feature-tag",13)(1,sn,1,2,"cvc-assertion-tag",14)(2,mn,1,2,"cvc-evidence-tag",15)(3,ln,1,2,"cvc-feature-variant-tag",16)(4,_n,1,2,"cvc-variant-group-tag",17)(5,vn,1,0,"span"),2&e){let t;const a=n.XpG().ngIf;n.vxM("Feature"===(t=a.flaggable.__typename)?0:"Assertion"===t?1:"EvidenceItem"===t?2:"Variant"===t?3:"VariantGroup"===t?4:5)}}function un(e,o){if(1&e&&(n.j41(0,"nz-descriptions",19)(1,"nz-descriptions-item",20),n.nrm(2,"cvc-user-tag",21),n.k0s(),n.j41(3,"nz-descriptions-item",22),n.EFF(4),n.nI1(5,"timeAgo"),n.k0s()()),2&e){const t=n.XpG().ngIf;n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("enablePopover",!1)("user",t.flaggingUser),n.R7$(2),n.SpI(" ",n.bMT(5,4,t.createdAt)," ")}}function Cn(e,o){if(1&e&&(n.j41(0,"nz-descriptions",23)(1,"nz-descriptions-item",24),n.nrm(2,"cvc-comment-body",25),n.k0s()()),2&e){const t=n.XpG().ngIf;n.Y8G("nzColumn",1),n.R7$(2),n.Y8G("commentBodySegments",t.openActivity.parsedNote)}}function dn(e,o){if(1&e&&(n.qex(0),n.j41(1,"nz-card",4),n.DNE(2,rn,3,0,"ng-template",null,0,n.C5r)(4,fn,6,1,"ng-template",null,1,n.C5r),n.j41(6,"nz-space",5),n.DNE(7,un,6,6,"nz-descriptions",6)(8,Cn,3,2,"nz-descriptions",7),n.k0s()(),n.bVm()),2&e){const t=n.sdS(3),a=n.sdS(5);n.R7$(),n.Y8G("nzTitle",t)("nzExtra",a)}}let Tn=(()=>{class e{constructor(t){this.gql=t}ngOnInit(){if(null==this.flagId)throw new Error("cvc-flag-popover requires valid flagId input.");this.flag$=this.gql.watch({flagId:this.flagId}).valueChanges.pipe((0,q.T)(({data:t})=>t?.flag),(0,nn.p)(Z.kP))}static#n=this.\u0275fac=function(a){return new(a||e)(n.rXU(p.wJE))};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-flag-popover"]],inputs:{flagId:"flagId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzDirection","vertical",2,"width","100%"],["nzBordered","","nzSize","small",3,"nzColumn",4,"nzSpaceItem"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn",4,"nzSpaceItem"],[1,"flag-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-flag",3,"nzTwotoneColor"],[3,"status"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[4,"ngSwitchDefault"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Flagging User"],[3,"enablePopover","user"],["nzTitle","Flagging Date"],["nzBordered","","nzSize","small","nzLayout","vertical",3,"nzColumn"],["nzTitle","Comment"],[3,"commentBodySegments"]],template:function(a,i){1&a&&(n.j41(0,"div",2),n.DNE(1,dn,9,2,"ng-container",3),n.nI1(2,"ngrxPush"),n.k0s()),2&a&&(n.R7$(),n.Y8G("ngIf",n.bMT(2,1,i.flag$)))},dependencies:[r.bT,r.fG,h.cK,v.Dn,P.U5,P.Dq,b.xA,b.gr,f._,g.r,u.a,C.J,d.j,E.S,en.g,tn.p,x.L9,on.R,T.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.flag-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return e})();function zn(e,o){}function In(e,o){}function hn(e,o){if(1&e&&n.nrm(0,"cvc-flag-popover",6),2&e){const t=n.XpG(2);n.Y8G("flagId",t.flag.id)}}function Gn(e,o){if(1&e&&(n.j41(0,"nz-tag",5),n.DNE(1,In,0,0,"ng-template",4),n.k0s(),n.DNE(2,hn,1,1,"ng-template",null,2,n.C5r)),2&e){const t=n.sdS(3),a=n.XpG(),i=n.sdS(5);n.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",t)("nzPopoverTrigger",a.enablePopover?"hover":null),n.R7$(),n.Y8G("ngTemplateOutlet",i)}}function xn(e,o){if(1&e&&(n.nrm(0,"i",7),n.EFF(1)),2&e){const t=n.XpG();n.R7$(),n.SpI(" ",t.flag.name,"\n")}}let Pn=(()=>{class e{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.flag)throw new Error("cvc-flag-tag requires LinkableFlag input, none supplied.")}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-flag-tag"]],inputs:{flag:"flag",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:2,consts:[["tag",""],["tagContent",""],["flagPopover",""],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"flagId"],["nz-icon","","nzType","civic-flag","nzTheme","twotone","nzTwotoneColor","#E24759"]],template:function(a,i){if(1&a&&(n.j41(0,"a",3),n.DNE(1,zn,0,0,"ng-template",4),n.k0s(),n.DNE(2,Gn,4,4,"ng-template",null,0,n.C5r)(4,xn,2,1,"ng-template",null,1,n.C5r)),2&a){const s=n.sdS(3);n.Y8G("routerLink",i.flag.link),n.R7$(),n.Y8G("ngTemplateOutlet",s)}},dependencies:[r.T3,_.Wk,l.s,v.Dn,I.L_,Tn],encapsulation:2})}return e})();var bn=c(6440),En=c(5473),Fn=c(7793);let jn=(()=>{class e{transform(t){switch(t){case p.H1z.Commented:case p.H1z.RevisionSuggested:case p.H1z.RevisionAccepted:case p.H1z.RevisionRejected:case p.H1z.RevisionSuperseded:return"to";case p.H1z.Flagged:case p.H1z.FlagResolved:return"on";default:return""}}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275pipe=n.EJ8({name:"prepositionForSubject",type:e,pure:!0})}return e})();function yn(e,o){if(1&e&&n.nrm(0,"cvc-user-tag",9),2&e){const t=n.XpG(2);n.Y8G("user",t.event.originatingUser)}}function Sn(e,o){if(1&e&&(n.j41(0,"span",5),n.EFF(1),n.nI1(2,"prepositionForSubject"),n.k0s()),2&e){const t=n.XpG(4);n.R7$(),n.SpI("",n.bMT(2,1,t.event.action),"\xa0")}}function Yn(e,o){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-revision-tag",12),n.DNE(2,Sn,3,3,"span",13),n.k0s()),2&e){const t=n.XpG().ngIf,a=n.XpG(2);n.R7$(),n.Y8G("revision",t)("subject",a.event.subject),n.R7$(),n.Y8G("ngIf","hideSubject"!=a.tagDisplay)}}function Rn(e,o){if(1&e&&(n.j41(0,"span",5),n.EFF(1),n.nI1(2,"prepositionForSubject"),n.k0s()),2&e){const t=n.XpG(4);n.R7$(),n.SpI("",n.bMT(2,1,t.event.action),"\xa0")}}function $n(e,o){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-comment-tag",14),n.DNE(2,Rn,3,3,"span",13),n.k0s()),2&e){const t=n.XpG().ngIf,a=n.XpG(2);n.R7$(),n.Y8G("comment",t)("subject",a.event.subject),n.R7$(),n.Y8G("ngIf","hideSubject"!=a.tagDisplay)}}function Dn(e,o){if(1&e&&(n.j41(0,"span",5),n.EFF(1),n.nI1(2,"prepositionForSubject"),n.k0s()),2&e){const t=n.XpG(4);n.R7$(),n.SpI("",n.bMT(2,1,t.event.action),"\xa0")}}function Xn(e,o){if(1&e&&(n.j41(0,"span"),n.nrm(1,"cvc-flag-tag",15),n.DNE(2,Dn,3,3,"span",13),n.k0s()),2&e){const t=n.XpG().ngIf,a=n.XpG(2);n.R7$(),n.Y8G("flag",t)("subject",a.event.subject),n.R7$(),n.Y8G("ngIf","hideSubject"!=a.tagDisplay)}}function wn(e,o){if(1&e&&(n.j41(0,"span",5),n.EFF(1),n.nI1(2,"prepositionForSubject"),n.k0s()),2&e){const t=n.XpG(4);n.R7$(),n.SpI("",n.bMT(2,1,t.event.action),"\xa0")}}function Mn(e,o){if(1&e&&(n.j41(0,"span")(1,"nz-tag",16),n.EFF(2),n.k0s(),n.DNE(3,wn,3,3,"span",13),n.k0s()),2&e){const t=n.XpG().ngIf,a=n.XpG(2);n.R7$(),n.Y8G("routerLink",t.link),n.R7$(),n.SpI(" ",t.name," "),n.R7$(),n.Y8G("ngIf","hideSubject"!=a.tagDisplay)}}function On(e,o){if(1&e&&(n.qex(0)(1,10),n.DNE(2,Yn,3,3,"span",11)(3,$n,3,3,"span",11)(4,Xn,3,3,"span",11)(5,Mn,4,3,"span",11),n.bVm()()),2&e){const t=o.ngIf;n.R7$(),n.Y8G("ngSwitch",t.__typename),n.R7$(),n.Y8G("ngSwitchCase","Revision"),n.R7$(),n.Y8G("ngSwitchCase","Comment"),n.R7$(),n.Y8G("ngSwitchCase","Flag"),n.R7$(),n.Y8G("ngSwitchCase","SourceSuggestion")}}function Nn(e,o){if(1&e&&n.nrm(0,"cvc-feature-tag",17),2&e){const t=n.XpG().ngIf;n.Y8G("feature",t)}}function kn(e,o){if(1&e&&n.nrm(0,"cvc-assertion-tag",18),2&e){const t=n.XpG().ngIf;n.Y8G("assertion",t)}}function An(e,o){if(1&e&&n.nrm(0,"cvc-evidence-tag",19),2&e){const t=n.XpG().ngIf;n.Y8G("evidence",t)}}function Vn(e,o){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",20),2&e){const t=n.XpG().ngIf;n.Y8G("variant",t)}}function Bn(e,o){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",20),2&e){const t=n.XpG().ngIf;n.Y8G("variant",t)}}function Ln(e,o){if(1&e&&n.nrm(0,"cvc-feature-variant-tag",20),2&e){const t=n.XpG().ngIf;n.Y8G("variant",t)}}function Un(e,o){if(1&e&&n.nrm(0,"cvc-revision-tag",21),2&e){const t=n.XpG().ngIf;n.Y8G("revision",t)}}function Hn(e,o){if(1&e&&n.nrm(0,"cvc-variant-group-tag",22),2&e){const t=n.XpG().ngIf;n.Y8G("variantgroup",t)}}function Jn(e,o){if(1&e&&n.nrm(0,"cvc-source-tag",23),2&e){const t=n.XpG().ngIf;n.Y8G("source",t)}}function Wn(e,o){if(1&e&&n.nrm(0,"cvc-molecular-profile-tag",24),2&e){const t=n.XpG().ngIf;n.Y8G("molecularProfile",t)}}function Kn(e,o){if(1&e&&(n.j41(0,"nz-tag")(1,"a",25),n.EFF(2),n.k0s()()),2&e){const t=n.XpG().ngIf;n.R7$(),n.Y8G("href",t.link,n.B4B),n.R7$(),n.SpI(" ",t.name," ")}}function Qn(e,o){if(1&e&&(n.qex(0),n.DNE(1,Nn,1,1,"cvc-feature-tag",17)(2,kn,1,1,"cvc-assertion-tag",18)(3,An,1,1,"cvc-evidence-tag",19)(4,Vn,1,1,"cvc-feature-variant-tag",20)(5,Bn,1,1,"cvc-feature-variant-tag",20)(6,Ln,1,1,"cvc-feature-variant-tag",20)(7,Un,1,1,"cvc-revision-tag",21)(8,Hn,1,1,"cvc-variant-group-tag",22)(9,Jn,1,1,"cvc-source-tag",23)(10,Wn,1,1,"cvc-molecular-profile-tag",24)(11,Kn,3,2,"nz-tag"),n.bVm()),2&e){let t;const a=o.ngIf;n.R7$(),n.vxM("Feature"===(t=a.__typename)?1:"Assertion"===t?2:"EvidenceItem"===t?3:"GeneVariant"===t?4:"FactorVariant"===t?5:"FusionVariant"===t?6:"Revision"===t?7:"VariantGroup"===t?8:"Source"===t?9:"MolecularProfile"===t?10:11)}}function Zn(e,o){if(1&e&&(n.qex(0),n.j41(1,"span",5),n.EFF(2,"for\xa0"),n.k0s(),n.nrm(3,"cvc-organization-tag",26),n.bVm()),2&e){const t=o.ngIf;n.R7$(3),n.Y8G("org",t)}}function qn(e,o){if(1&e&&(n.j41(0,"nz-row",2)(1,"nz-col",3),n.DNE(2,yn,1,1,"cvc-user-tag",4),n.j41(3,"span",5),n.EFF(4),n.nI1(5,"eventVerbiage"),n.k0s(),n.DNE(6,On,6,5,"ng-container",6)(7,Qn,12,1,"ng-container",6)(8,Zn,4,1,"ng-container",6),n.k0s(),n.j41(9,"nz-col",7)(10,"span",8),n.nI1(11,"date"),n.EFF(12),n.nI1(13,"timeAgo"),n.k0s()()()),2&e){const t=n.XpG();n.R7$(2),n.Y8G("ngIf","hideUser"!=t.tagDisplay),n.R7$(2),n.SpI("",n.i5U(5,7,t.event.action,"feed"),"\xa0"),n.R7$(2),n.Y8G("ngIf",t.event.originatingObject),n.R7$(),n.Y8G("ngIf","hideSubject"!=t.tagDisplay&&t.event.subject),n.R7$(),n.Y8G("ngIf","hideOrg"!=t.tagDisplay&&t.event.organization),n.R7$(2),n.Y8G("nzTooltipTitle",n.bMT(11,10,t.event.createdAt)),n.R7$(2),n.SpI(" ",n.bMT(13,12,t.event.createdAt)," ")}}function ne(e,o){1&e&&n.EFF(0," Event database entry is malformed and cannot be displayed\n")}let ee=(()=>{class e{constructor(){this.tagDisplay="displayAll"}ngOnInit(){if(void 0===this.event)throw new Error("cvc-timeline-item component requires an EventFeedNodeFragment input.")}static#n=this.\u0275fac=function(a){return new(a||e)};static#e=this.\u0275cmp=n.VBU({type:e,selectors:[["cvc-event-timeline-item"]],inputs:{event:"event",tagDisplay:"tagDisplay"},decls:3,vars:2,consts:[["noOriginating",""],["class","timeline-item",4,"ngIf","ngIfElse"],[1,"timeline-item"],["nzFlex","auto",1,"description"],[3,"user",4,"ngIf"],["nz-typography",""],[4,"ngIf"],["nzFlex","100px",1,"timestamp"],["nz-tooltip","","nzTooltipPlacement","top",3,"nzTooltipTitle"],[3,"user"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"revision","subject"],["nz-typography","",4,"ngIf"],[3,"comment","subject"],[3,"flag","subject"],[2,"cursor","pointer",3,"routerLink"],[3,"feature"],[3,"assertion"],[3,"evidence"],[3,"variant"],[3,"revision"],[3,"variantgroup"],["mode","concise",3,"source"],[3,"molecularProfile"],[3,"href"],[3,"org"]],template:function(a,i){if(1&a&&n.DNE(0,qn,14,14,"nz-row",1)(1,ne,1,0,"ng-template",null,0,n.C5r),2&a){const s=n.sdS(2);n.Y8G("ngIf",i.event.originatingObject)("ngIfElse",s)}},dependencies:[r.bT,r.ux,r.e1,l.s,j.LH,y.Di,m.Uq,m.e,_.Wk,z.T,g.r,Q,Pn,f._,u.a,C.J,d.j,bn.r,G.D,E.S,En.z,r.vh,Fn.s,jn,T.N],encapsulation:2})}return e})()}}]); \ No newline at end of file diff --git a/server/public/7038.ff8a7202cc6f84c1.js b/server/public/7038.ff8a7202cc6f84c1.js deleted file mode 100644 index e55a3728f..000000000 --- a/server/public/7038.ff8a7202cc6f84c1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[7038],{9481:(z,E,a)=>{a.d(E,{W:()=>$n});var s=a(9145),d=a(9199),l=a(5964),C=a(4608),n=a(3953),p=a(177),T=a(5703),m=a(9541),g=a(2e3),f=a(7391),v=a(7529),c=a(7679),I=a(6719),u=a(1774),x=a(1845),D=a(1596);const r=(t,i)=>({$implicit:t,variant:i}),G=()=>({xxl:3,xl:2,lg:1,md:1,sm:1,xs:1}),R=()=>({xxl:6,xl:3,lg:1,md:1,sm:1,xs:1});function O(t,i){1&t&&n.eu8(0)}function $(t,i){if(1&t&&n.DNE(0,O,1,0,"ng-container",6),2&t){const e=n.XpG().ngIf;n.XpG();const o=n.sdS(6);n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(2,r,e.coordinates,e))}}function P(t,i){1&t&&n.eu8(0)}function M(t,i){1&t&&n.eu8(0)}function h(t,i){1&t&&n.eu8(0)}function y(t,i){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",9),n.DNE(4,P,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",10)(6,"nz-card",11),n.DNE(7,M,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,h,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(2).ngIf;n.XpG();const o=n.sdS(6),_=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(7,r,e.fivePrimeCoordinates,e)),n.R7$(3),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(10,r,e.fivePrimeStartExonCoordinates,e)),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(13,r,e.fivePrimeEndExonCoordinates,e))}}function S(t,i){1&t&&n.eu8(0)}function F(t,i){1&t&&n.eu8(0)}function b(t,i){1&t&&n.eu8(0)}function Y(t,i){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",13),n.DNE(4,S,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",14)(6,"nz-card",11),n.DNE(7,F,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,b,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(2).ngIf;n.XpG();const o=n.sdS(6),_=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(7,r,e.threePrimeCoordinates,e)),n.R7$(3),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(10,r,e.threePrimeStartExonCoordinates,e)),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(13,r,e.threePrimeEndExonCoordinates,e))}}function N(t,i){if(1&t&&(n.j41(0,"nz-row",5),n.DNE(1,y,10,16,"nz-col",7)(2,Y,10,16,"nz-col",7),n.k0s()),2&t){const e=n.XpG().ngIf;n.R7$(),n.vxM(e.fivePrimeCoordinates?1:-1),n.R7$(),n.vxM(e.threePrimeCoordinates?2:-1)}}function X(t,i){if(1&t&&(n.qex(0),n.DNE(1,$,1,5,"ng-container")(2,N,3,2,"nz-row",5),n.bVm()),2&t){let e;const o=i.ngIf;n.R7$(),n.vxM("GeneVariant"===(e=o.__typename)?1:"FusionVariant"===e?2:-1)}}function j(t,i){1&t&&n.eu8(0)}function V(t,i){if(1&t&&(n.j41(0,"nz-card",15),n.DNE(1,j,1,0,"ng-container",6),n.k0s()),2&t){const e=n.XpG(2),o=n.sdS(6);n.Y8G("nzTitle",e.displayTitle?"Representative Variant Coordinates":void 0),n.R7$(),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(3,r,e.cvcCoordinates.coordinates,e.cvcCoordinates))}}function B(t,i){1&t&&n.eu8(0)}function k(t,i){1&t&&n.eu8(0)}function A(t,i){1&t&&n.eu8(0)}function K(t,i){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",9),n.DNE(4,B,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",10)(6,"nz-card",11),n.DNE(7,k,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,A,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(3),o=n.sdS(6),_=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(7,r,e.cvcCoordinates.fivePrimeCoordinates,e.cvcCoordinates)),n.R7$(3),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(10,r,e.cvcCoordinates.fivePrimeStartExonCoordinates,e.cvcCoordinates)),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(13,r,e.cvcCoordinates.fivePrimeEndExonCoordinates,e.cvcCoordinates))}}function U(t,i){1&t&&n.eu8(0)}function L(t,i){1&t&&n.eu8(0)}function W(t,i){1&t&&n.eu8(0)}function H(t,i){if(1&t&&(n.j41(0,"nz-col",7)(1,"nz-card")(2,"nz-tabset",8)(3,"nz-tab",13),n.DNE(4,U,1,0,"ng-container",6),n.k0s(),n.j41(5,"nz-tab",14)(6,"nz-card",11),n.DNE(7,L,1,0,"ng-container",6),n.k0s(),n.j41(8,"nz-card",12),n.DNE(9,W,1,0,"ng-container",6),n.k0s()()()()()),2&t){const e=n.XpG(3),o=n.sdS(6),_=n.sdS(8);n.R7$(2),n.Y8G("nzAnimated",!1),n.R7$(2),n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(7,r,e.cvcCoordinates.threePrimeCoordinates,e.cvcCoordinates)),n.R7$(3),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(10,r,e.cvcCoordinates.threePrimeStartExonCoordinates,e.cvcCoordinates)),n.R7$(2),n.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",n.l_i(13,r,e.cvcCoordinates.threePrimeEndExonCoordinates,e.cvcCoordinates))}}function J(t,i){if(1&t&&(n.j41(0,"nz-row",5),n.DNE(1,K,10,16,"nz-col",7)(2,H,10,16,"nz-col",7),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.vxM(e.cvcCoordinates.fivePrimeCoordinates?1:-1),n.R7$(),n.vxM(e.cvcCoordinates.threePrimeCoordinates?2:-1)}}function Q(t,i){if(1&t&&(n.qex(0),n.DNE(1,V,2,6,"nz-card",15)(2,J,3,2,"nz-row",5),n.bVm()),2&t){let e;const o=n.XpG();n.R7$(),n.vxM("GeneVariant"===(e=o.cvcCoordinates.__typename)?1:"FusionVariant"===e?2:-1)}}function Z(t,i){1&t&&(n.j41(0,"span",16),n.EFF(1," None specified "),n.k0s())}function q(t,i){if(1&t&&(n.j41(0,"span",16),n.nrm(1,"cvc-empty-revisable",17),n.k0s()),2&t){const e=n.XpG().variant;n.R7$(),n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function w(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.referenceBuild," ")}}function nn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.ensemblVersion," ")}}function tn(t,i){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?transcript="+e.representativeTranscript),n.R7$(),n.SpI(" ",e.representativeTranscript," ")}}function en(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.chromosome," ")}}function on(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.start," ")}}function an(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.stop," ")}}function _n(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"ifEmpty"),n.bVm()),2&t){const e=n.XpG(4).$implicit;n.R7$(),n.SpI(" ",n.i5U(2,1,e.referenceBases,"--")," ")}}function rn(t,i){if(1&t&&(n.j41(0,"nz-descriptions-item",30),n.DNE(1,_n,3,4,"ng-container",18),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.XpG();const o=n.sdS(4);n.R7$(),n.Y8G("ngIf",e.chromosome&&e.start&&e.stop)("ngIfElse",o)}}function cn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"ifEmpty"),n.bVm()),2&t){const e=n.XpG(4).$implicit;n.R7$(),n.SpI(" ",n.i5U(2,1,e.variantBases,"--")," ")}}function sn(t,i){if(1&t&&(n.j41(0,"nz-descriptions-item",31),n.DNE(1,cn,3,4,"ng-container",18),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.XpG();const o=n.sdS(4);n.R7$(),n.Y8G("ngIf",e.chromosome&&e.start&&e.stop)("ngIfElse",o)}}function dn(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions",19)(2,"nz-descriptions-item",20),n.DNE(3,w,2,1,"ng-container",18),n.k0s(),n.j41(4,"nz-descriptions-item",21),n.DNE(5,nn,2,1,"ng-container",18),n.k0s(),n.j41(6,"nz-descriptions-item",22),n.DNE(7,tn,2,2,"cvc-link-tag",23),n.k0s(),n.j41(8,"nz-descriptions-item",24),n.DNE(9,en,2,1,"ng-container",18),n.k0s(),n.j41(10,"nz-descriptions-item",25),n.DNE(11,on,2,1,"ng-container",18),n.k0s(),n.j41(12,"nz-descriptions-item",26),n.DNE(13,an,2,1,"ng-container",18),n.k0s(),n.qex(14),n.DNE(15,rn,2,2,"nz-descriptions-item",27)(16,sn,2,2,"nz-descriptions-item",28),n.bVm(),n.k0s(),n.bVm()),2&t){const e=n.XpG(2).$implicit,o=n.XpG(),_=n.sdS(4);n.R7$(),n.Y8G("nzColumn",n.lJ4(15,G)),n.R7$(2),n.Y8G("ngIf",e.referenceBuild)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.ensemblVersion)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.representativeTranscript)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.chromosome)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.start)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.stop)("ngIfElse",_),n.R7$(2),n.Y8G("ngIf",e.coordinateType==o.coordinateTypes.GeneVariantCoordinate),n.R7$(),n.Y8G("ngIf",e.coordinateType==o.coordinateTypes.GeneVariantCoordinate)}}function ln(t,i){if(1&t&&n.DNE(0,dn,17,16,"ng-container",18),2&t){const e=n.XpG().$implicit,o=n.sdS(1);n.Y8G("ngIf",e.referenceBuild)("ngIfElse",o)}}function Cn(t,i){if(1&t&&n.nrm(0,"cvc-empty-revisable",17),2&t){const e=n.XpG().variant;n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function pn(t,i){if(1&t&&n.DNE(0,q,2,3,"ng-template",null,3,n.C5r)(2,ln,1,2,"ng-container")(3,Cn,1,3,"cvc-empty-revisable",17),2&t){const e=i.$implicit;n.R7$(2),n.vxM(e?2:3)}}function mn(t,i){if(1&t&&(n.j41(0,"span",16),n.nrm(1,"cvc-empty-revisable",17),n.k0s()),2&t){const e=n.XpG().variant;n.R7$(),n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function gn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.exon," ")}}function fn(t,i){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?exon="+e.ensemblId),n.R7$(),n.SpI(" ",e.ensemblId," ")}}function vn(t,i){if(1&t&&(n.j41(0,"cvc-link-tag",29),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.Y8G("href","http://grch37.ensembl.org/Homo_sapiens/transview?transcript="+e.representativeTranscript),n.R7$(),n.SpI(" ",e.representativeTranscript," ")}}function En(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.nI1(2,"enumToTitle"),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,e.strand)," ")}}function Tn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.chromosome," ")}}function xn(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.start," ")}}function un(t,i){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.SpI(" ",e.stop," ")}}function zn(t,i){if(1&t&&(n.EFF(0),n.nI1(1,"enumToTitle")),2&t){const e=n.XpG(3).$implicit;n.Lme(" ",n.bMT(1,2,e.exonOffsetDirection),"",e.exonOffset," ")}}function In(t,i){1&t&&n.EFF(0," 0 ")}function Dn(t,i){if(1&t&&(n.qex(0),n.j41(1,"nz-descriptions",19)(2,"nz-descriptions-item",32),n.DNE(3,gn,2,1,"ng-container",18),n.k0s(),n.j41(4,"nz-descriptions-item",33),n.DNE(5,fn,2,2,"cvc-link-tag",23),n.k0s(),n.j41(6,"nz-descriptions-item",34),n.DNE(7,vn,2,2,"cvc-link-tag",23),n.k0s(),n.j41(8,"nz-descriptions-item",35),n.DNE(9,En,3,3,"ng-container",18),n.k0s(),n.j41(10,"nz-descriptions-item",24),n.DNE(11,Tn,2,1,"ng-container",18),n.k0s(),n.j41(12,"nz-descriptions-item",36),n.DNE(13,xn,2,1,"ng-container",18),n.k0s(),n.j41(14,"nz-descriptions-item",37),n.DNE(15,un,2,1,"ng-container",18),n.k0s(),n.j41(16,"nz-descriptions-item",38),n.DNE(17,zn,2,4)(18,In,1,0),n.k0s()(),n.bVm()),2&t){const e=n.XpG(2).$implicit;n.XpG();const o=n.sdS(4);n.R7$(),n.Y8G("nzColumn",n.lJ4(16,R)),n.R7$(2),n.Y8G("ngIf",e.exon)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.ensemblId)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.representativeTranscript)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.strand)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.chromosome)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.start)("ngIfElse",o),n.R7$(2),n.Y8G("ngIf",e.stop)("ngIfElse",o),n.R7$(2),n.vxM(e.exonOffset&&e.exonOffsetDirection?17:18)}}function Gn(t,i){if(1&t&&n.DNE(0,Dn,19,17,"ng-container",18),2&t){const e=n.XpG().$implicit,o=n.sdS(1);n.Y8G("ngIf",e.referenceBuild)("ngIfElse",o)}}function Rn(t,i){if(1&t&&n.nrm(0,"cvc-empty-revisable",17),2&t){const e=n.XpG().variant;n.FCK("reviseFormPath","/variants/",e.id,"/revise/suggest?variantType=",e.__typename,"")}}function On(t,i){if(1&t&&n.DNE(0,mn,2,3,"ng-template",null,3,n.C5r)(2,Gn,1,2,"ng-container")(3,Rn,1,3,"cvc-empty-revisable",17),2&t){const e=i.$implicit;n.R7$(2),n.vxM(e?2:3)}}let $n=(()=>{class t{constructor(e){this.gql=e,this.displayTitle=!0,this.coordinateTypes=s.c1P}ngOnInit(){if(!this.cvcCoordinates&&!this.cvcVariantId)throw new Error("CvcCoordinatesCard requires valid cvcVariantId or cvcCoordinates Input, none provided.");if(!this.cvcCoordinates&&this.cvcVariantId){this.queryRef=this.gql.watch({variantId:this.cvcVariantId});let e=this.queryRef.valueChanges;this.loading$=e.pipe((0,C.E)("loading"),(0,l.p)(d.kP)),this.variant$=e.pipe((0,C.E)("data","variant"),(0,l.p)(d.kP))}}static#n=this.\u0275fac=function(o){return new(o||t)(n.rXU(s.kWO))};static#t=this.\u0275cmp=n.VBU({type:t,selectors:[["cvc-coordinates-card"]],inputs:{cvcVariantId:"cvcVariantId",cvcCoordinates:"cvcCoordinates",displayTitle:"displayTitle"},decls:9,vars:4,consts:[["noneSpecified",""],["coordinateCard",""],["exonCoordinateCard",""],["noCoord",""],[4,"ngIf"],["nzSpan","24","nzGutter","12"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzSpan","12"],[3,"nzAnimated"],["nzTitle","5' Partner Genomic Coordinates"],["nzTitle","5' Partner Exon Coordinates"],["nzTitle","Start Exon Coordinates"],["nzTitle","End Exon Coordinates"],["nzTitle","3' Partner Genomic Coordinates"],["nzTitle","3' Partner Exon Coordinates"],[3,"nzTitle"],["nz-typography","","nzType","secondary"],["notification","No coordinates specified",3,"reviseFormPath"],[4,"ngIf","ngIfElse"],["nzLayout","horizontal","nzBordered","true","nzSize","small",3,"nzColumn"],["nzTitle","Ref. Build"],["nzTitle","Ensembl Version"],["nzTitle","Transcript"],["tooltip","View on Ensembl",3,"href",4,"ngIf","ngIfElse"],["nzTitle","Chr."],["nzTitle","Start"],["nzTitle","Stop"],["nzTitle","Ref. Bases",4,"ngIf"],["nzTitle","Var. Bases",4,"ngIf"],["tooltip","View on Ensembl",3,"href"],["nzTitle","Ref. Bases"],["nzTitle","Var. Bases"],["nzTitle","Exon"],["nzTitle","Exon ID","nzSpan","2"],["nzTitle","Transcript","nzSpan","2"],["nzTitle","Strand"],["nzTitle","Start","nzSpan","2"],["nzTitle","Stop","nzSpan","2"],["nzTitle","Offset"]],template:function(o,_){1&o&&(n.DNE(0,X,3,1,"ng-container",4),n.nI1(1,"ngrxPush"),n.DNE(2,Q,3,1,"ng-container",4)(3,Z,2,0,"ng-template",null,0,n.C5r)(5,pn,4,1,"ng-template",null,1,n.C5r)(7,On,4,1,"ng-template",null,2,n.C5r)),2&o&&(n.Y8G("ngIf",_.cvcVariantId&&n.bMT(1,2,_.variant$)),n.R7$(2),n.Y8G("ngIf",_.cvcCoordinates))},dependencies:[p.bT,p.T3,T.cK,m.JZ,m.rE,g.xA,g.gr,f.Di,v.Uq,v.e,c.a,I.Q,u.L9,x.f,D.r],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-tabs-tab-btn{padding-left:5px}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions .ant-descriptions-view{border-left:none;border-right:none}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions:first-child .ant-descriptions-view{border-top:none}nz-card[_ngcontent-%COMP%]:first-of-type nz-descriptions:last-child .ant-descriptions-view{border-bottom:none}"]})}return t})()},7513:(z,E,a)=>{a.d(E,{m:()=>v});var s=a(177),d=a(5703),l=a(2e3),C=a(7054),n=a(8254),p=a(4917),T=a(7391),m=a(7529),g=a(9541),f=a(3953);let v=(()=>{class c{static#n=this.\u0275fac=function(x){return new(x||c)};static#t=this.\u0275mod=f.$C({type:c});static#e=this.\u0275inj=f.G2t({imports:[s.MD,d.Ti,g.hM,l.WF,T.kT,m.f3,p.i,C.L,n.V]})}return c})()}}]); \ No newline at end of file diff --git a/server/public/8313.b5c7716c51db818d.js b/server/public/8313.b5c7716c51db818d.js new file mode 100644 index 000000000..036b03ce6 --- /dev/null +++ b/server/public/8313.b5c7716c51db818d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8313],{8313:(dt,ve,f)=>{f.d(ve,{Y:()=>gp,n:()=>lt});var _t,Ie,J,ce,yt,mn,Ct,bt,xt,Nt,we,zt,At,Re,oe,re,$t,e=f(3953),H=f(9145),h=f(1635),V=function(){function n(o,t){this.id=0,void 0!==o&&(this.value=o,this.initialValue=o),this.options=t||{},this.subscriptions=new Map}return n.prototype.set=function(o){var t,i;if(this.value!==o||this.options.emitEqual){this.value=o;try{for(var r=(0,h.Ju)(this.subscriptions),s=r.next();!s.done&&((0,h.zs)(s.value,2)[1].emit(o),this.value===o);s=r.next());}catch(l){t={error:l}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(t)throw t.error}}}},n.prototype.get=function(){return this.value},n.prototype.on=function(o){var t=this,i=this.id++,r={emit:o,off:function(){r.emit=function(){return null},t.subscriptions.delete(i)}};return this.subscriptions.set(i,r),this.options.emitOnSubscribe&&r.emit(this.value),function(){return r.off()}},n.prototype.once=function(o){var t=this.on(function(i){t(),o(i)});return t},n.prototype.reset=function(){this.set(this.initialValue)},n.prototype.dispose=function(){this.subscriptions.forEach(function(o){return o.off()})},n}(),D=function(n){return n.id="id",n.mock="mock",n.augmented="augmented",n.version="version",n.init="init",n.init$="init$",n.packageInfo="packageInfo",n.itemsCount="itemsCount",n.bufferInfo="bufferInfo",n.isLoading="isLoading",n.isLoading$="isLoading$",n.loopPending="loopPending",n.loopPending$="loopPending$",n.firstVisible="firstVisible",n.firstVisible$="firstVisible$",n.lastVisible="lastVisible",n.lastVisible$="lastVisible$",n.bof="bof",n.bof$="bof$",n.eof="eof",n.eof$="eof$",n.paused="paused",n.paused$="paused$",n.reset="reset",n.reload="reload",n.append="append",n.prepend="prepend",n.check="check",n.remove="remove",n.clip="clip",n.insert="insert",n.replace="replace",n.update="update",n.pause="pause",n.resume="resume",n.fix="fix",n.relax="relax",n.showLog="showLog",n}(D||{}),X=function(n){return n[n.Scalar=0]="Scalar",n[n.Reactive=1]="Reactive",n[n.WorkflowRunner=2]="WorkflowRunner",n[n.Function=3]="Function",n}(X||{}),y=D,x=X,w=function(){return null},R={immediate:!0,success:!0,details:"Adapter is not initialized"},L={immediate:!0,success:!0,details:"Scroller is paused"},N=function(){return Promise.resolve(R)},Ee={core:{name:"",version:""},consumer:{name:"",version:""}},pt={firstIndex:NaN,lastIndex:NaN,minIndex:NaN,maxIndex:NaN,absMinIndex:-1/0,absMaxIndex:1/0,defaultSize:NaN},_e={data:{},element:{}},Ne=function(){return[{type:x.Scalar,name:y.id,value:0,permanent:!0},{type:x.Scalar,name:y.mock,value:!0,permanent:!0},{type:x.Scalar,name:y.augmented,value:!1,permanent:!0},{type:x.Scalar,name:y.version,value:"",permanent:!0},{type:x.Scalar,name:y.init,value:!1,reactive:y.init$},{type:x.Scalar,name:y.packageInfo,value:Ee,onDemand:!0},{type:x.Scalar,name:y.itemsCount,value:0,onDemand:!0},{type:x.Scalar,name:y.bufferInfo,value:pt,onDemand:!0},{type:x.Scalar,name:y.isLoading,value:!1,reactive:y.isLoading$},{type:x.Scalar,name:y.loopPending,value:!1,reactive:y.loopPending$},{type:x.Scalar,name:y.firstVisible,value:_e,reactive:y.firstVisible$,wanted:!0},{type:x.Scalar,name:y.lastVisible,value:_e,reactive:y.lastVisible$,wanted:!0},{type:x.Scalar,name:y.bof,value:!1,reactive:y.bof$},{type:x.Scalar,name:y.eof,value:!1,reactive:y.eof$},{type:x.Scalar,name:y.paused,value:!1,reactive:y.paused$},{type:x.WorkflowRunner,name:y.reset,value:N,allowedWhenPaused:!0},{type:x.WorkflowRunner,name:y.reload,value:N},{type:x.WorkflowRunner,name:y.append,value:N},{type:x.WorkflowRunner,name:y.prepend,value:N},{type:x.WorkflowRunner,name:y.check,value:N},{type:x.WorkflowRunner,name:y.remove,value:N},{type:x.WorkflowRunner,name:y.clip,value:N},{type:x.WorkflowRunner,name:y.insert,value:N},{type:x.WorkflowRunner,name:y.replace,value:N},{type:x.WorkflowRunner,name:y.update,value:N},{type:x.WorkflowRunner,name:y.pause,value:N},{type:x.WorkflowRunner,name:y.resume,value:N,allowedWhenPaused:!0},{type:x.WorkflowRunner,name:y.fix,value:N},{type:x.Function,name:y.relax,value:w},{type:x.Function,name:y.showLog,value:w},{type:x.Reactive,name:y.init$,value:new V},{type:x.Reactive,name:y.isLoading$,value:new V},{type:x.Reactive,name:y.loopPending$,value:new V},{type:x.Reactive,name:y.firstVisible$,value:new V(_e,{emitOnSubscribe:!0}),wanted:!0},{type:x.Reactive,name:y.lastVisible$,value:new V(_e,{emitOnSubscribe:!0}),wanted:!0},{type:x.Reactive,name:y.bof$,value:new V},{type:x.Reactive,name:y.eof$,value:new V},{type:x.Reactive,name:y.paused$,value:new V}]},Me=new Map,Le={name:"vscroll",version:"1.6.1"},ze_setBox=function(n,o){var t=n.name,i=n.wanted,r=Z.get(o||-1);if(i&&r&&!r.box[t]&&!r.block){var s=D.firstVisible,a=D.firstVisible$,c=D.lastVisible,l=D.lastVisible$;return r.box[s]=r.box[a]=[s,a].some(function(u){return u===t})||r.box[s],r.box[c]=r.box[l]=[c,l].some(function(u){return u===t})||r.box[c],!0}return!1},ze_setBlock=function(n,o){var t=Z.get(o||-1);t&&(t.block=n)},Z=new Map,on=0,vt=function(){return function n(o){var t=this,i=o.mock,r=o.reactive,s=++on,a={configurable:!0},c={};Z.set(s,{box:{},block:!1}),Object.defineProperty(this,D.id,(0,h.Cl)({get:function(){return s}},a)),Object.defineProperty(this,D.mock,(0,h.Cl)({get:function(){return i}},a)),Object.defineProperty(this,D.augmented,(0,h.Cl)({get:function(){return!1}},a)),Object.defineProperty(this,D.version,(0,h.Cl)({get:function(){return Le.version}},a)),Ne().filter(function(l){return!l.permanent}).forEach(function(l){var u=l.value;if(r&&l.type===X.Reactive){var d=r[l.name];d&&(c[l.name]=(0,h.Cl)((0,h.Cl)({},d),{default:u}),u=d.source)}Object.defineProperty(t,l.name,(0,h.Cl)({get:function(){return ze_setBox(l,s),u}},a))}),r&&Me.set(s,c)}}(),Fe=function(){function n(o,t){this.get=o.get,this.settings=o.settings,this.devSettings=o.devSettings;var i=new vt(t||{mock:!1});this.adapter=i}return n.prototype.dispose=function(){Me.delete(this.adapter.id),Z.delete(this.adapter.id)},n}(),mt=function(n){return function(o){function t(i){var r="function"==typeof n?n():void 0;return o.call(this,i,r)||this}return(0,h.C6)(t,o),t}(Fe)},rn=mt(),k=function(n){return n.forward="forward",n.backward="backward",n}(k||{}),se=function(n){return n.Average="average",n.Constant="constant",n.Frequent="frequent",n}(se||{}),F=function(n){return n.number="must be a number",n.integer="must be an integer",n.integerUnlimited="must be an integer or infinity",n.moreOrEqual="must be a number greater than (or equal to) {arg1}",n.itemList="must be an array of items {arg1}",n.boolean="must be a boolean",n.object="must be an object",n.element="must be an html element",n.function="must be a function",n.funcOfxArguments="must have {arg1} argument(s)",n.funcOfxAndMoreArguments="must have at least {arg1} argument(s)",n.funcOfXToYArguments="must have {arg1} to {arg2} arguments",n.oneOfCan="can be present as only one item of {arg1} list",n.oneOfMust="must be present as only one item of {arg1} list",n.or="must satisfy at least 1 validator from {arg1} list",n.enum="must belong to {arg1} list",n}(F||{}),ae=function(n,o){return(o||[""]).reduce(function(t,i,r){return t.replace("{arg".concat(r+1,"}"),i)},n)},gt=function(n){return"number"==typeof n||"string"==typeof n&&""!==n?Number(n):NaN},Pt=function(n){var o=gt(n),t=[];return Number.isNaN(o)&&t.push(F.number),{value:o,isSet:!0,isValid:!t.length,errors:t}},cn=function(n,o){return function(t){var i=Pt(t);if(!i.isValid)return i;var r=i.value,s=[];return ro)&&r.push(ae(F.funcOfXToYArguments,[String(n),String(o)])),{value:t,isSet:!0,isValid:!r.length,errors:r}}},b=function(n,o){return function(t,i){var r=[],s=void 0!==t,a=!s,c=o?F.oneOfMust:F.oneOfCan;if(Array.isArray(n)&&n.length){for(var l=n.length-1;l>=0;l--){var u=n[l];if("string"!=typeof u){r.push(ae(c,[n.join('", "')])+" (non-string token)");break}var d=i&&Object.prototype.hasOwnProperty.call(i,u);if(s&&d){r.push(ae(c,[n.join('", "')])+" (".concat(u," is present)"));break}a&&d&&(a=!1)}o&&a&&r.push(ae(c,[n.join('", "')]))}else r.push(ae(c,["undefined"]));return{value:t,isSet:s,isValid:!r.length,errors:r}}},W=function(n){return function(o){var t=[];return n.every(function(i){return!i.method(o).isValid})&&t.push(n.map(function(i){return i.type}).join(" OR ")),{value:o,isSet:!0,isValid:!t.length,errors:t}}},S=function(n){return function(o){var t=[],i=Object.keys(n).filter(function(r){return isNaN(Number(r))}).map(function(r){return n[r]});return i.some(function(r){return r===o})||t.push(ae(F.enum,["["+i.join(",")+"]"])),{value:o,isSet:!0,isValid:!t.length,errors:t}}},M={NUMBER:{type:F.number,method:Pt},INTEGER:{type:F.integer,method:function(n){var o=[];n=gt(n);var t=parseInt(String(n),10);return n!==t&&o.push(F.integer),{value:t,isSet:!0,isValid:!o.length,errors:o}}},INTEGER_UNLIMITED:{type:F.integerUnlimited,method:function(n){var o,t=[];return(n=gt(n))!==(o=Number.isFinite(n)?parseInt(String(n),10):n)&&t.push(F.integerUnlimited),{value:o,isSet:!0,isValid:!t.length,errors:t}}},MORE_OR_EQUAL:function(n,o){return{type:F.moreOrEqual,method:cn(n,o)}},BOOLEAN:{type:F.boolean,method:function(n){var o=[],t=n;return"true"===n?t=!0:"false"===n&&(t=!1),"boolean"!=typeof t&&o.push(F.boolean),{value:t,isSet:!0,isValid:!o.length,errors:o}}},OBJECT:{type:F.object,method:function(n){var o=[];return(!n||"[object Object]"!==Object.prototype.toString.call(n))&&o.push(F.object),{value:n,isSet:!0,isValid:!o.length,errors:o}}},ITEM_LIST:{type:F.itemList,method:function(n){var o=n,t=[];if(Array.isArray(n))if(n.length){if(n.length>1)for(var i=typeof n[0],r=n.length-1;r>=0;r--)if(typeof n[r]!==i){t.push(ae(F.itemList,["of items of the same type"]));break}}else t.push(ae(F.itemList,["with at least 1 item"]));else t.push(F.itemList),o=[];return{value:o,isSet:!0,isValid:!t.length,errors:t}}},ELEMENT:{type:F.element,method:function(n){var o=[];return!(n instanceof Element)&&!(n instanceof Document)&&o.push(F.element),{value:n,isSet:!0,isValid:!o.length,errors:o}}},FUNC:{type:F.function,method:Ye},FUNC_WITH_X_ARGUMENTS:function(n){return{type:F.funcOfxArguments,method:fn(n)}},FUNC_WITH_X_AND_MORE_ARGUMENTS:function(n){return{type:F.funcOfxAndMoreArguments,method:hn(n)}},FUNC_WITH_X_TO_Y_ARGUMENTS:function(n,o){return{type:F.funcOfXToYArguments,method:vn(n,o)}},ONE_OF_CAN:function(n){return{type:F.oneOfCan,method:b(n,!1)}},ONE_OF_MUST:function(n){return{type:F.oneOfMust,method:b(n,!0)}},OR:function(n){return{type:F.or,method:W(n)}},ENUM:function(n){return{type:F.enum,method:S(n)}}},ye=function(){function n(o){this.params={},this.contextErrors=[],this.errors=[],this.isValid=!0,this.setContext(o)}return n.prototype.setContext=function(o){o&&"[object Object]"===Object.prototype.toString.call(o)?this.isValidContext=!0:(this.setCommonError("context is not an object"),this.isValidContext=!1),this.context=o},n.prototype.setValidity=function(){var o=this;this.errors=Object.keys(this.params).reduce(function(t,i){return(0,h.fX)((0,h.fX)([],(0,h.zs)(t),!1),(0,h.zs)(o.params[i].errors),!1)},[]),this.isValid=!this.errors.length},n.prototype.setCommonError=function(o){this.contextErrors.push(o),this.errors.push(o),this.isValid=!1},n.prototype.setParam=function(o,t){t.isValid||(t.errors=t.isSet?t.errors.map(function(i){return'"'.concat(o,'" ').concat(i)}):['"'.concat(o,'" must be set')]),this.params[o]=t,this.setValidity()},n.prototype.showErrors=function(){return this.errors.length?"validation failed: "+this.errors.join(", "):""},n}(),Ot=function(n,o,t){var r=n.errors,s=o.method(n.value,t),a=(0,h.fX)((0,h.fX)([],(0,h.zs)(r),!1),(0,h.zs)(s.errors),!1);return{value:s.value,isSet:s.isSet,isValid:!a.length,errors:a}},Ln=function(n,o){var t=void 0===n,i=!o.mandatory&&void 0!==o.defaultValue;return{value:t?i?o.defaultValue:void 0:n,isSet:!t||i,isValid:!t||!o.mandatory,errors:[]}},Yn=function(n,o,t){var i,r,s=Ln(n[o],t);if(s.isSet)try{for(var c=(0,h.Ju)(Object.values(t.validators)),l=c.next();!l.done;l=c.next()){var d=Ot(s,l.value,n);if(!d.isValid&&void 0!==t.defaultValue)return{value:t.defaultValue,isSet:!0,isValid:!0,errors:[]};Object.assign(s,d)}}catch(p){i={error:p}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}else{var a=t.validators.find(function(p){return p.type===F.oneOfMust});if(a)return Ot(s,a,n)}return s},Et=function(n,o){var t=new ye(n);return Object.entries(o).forEach(function(i){var r=(0,h.zs)(i,2),s=r[0],a=r[1];return t.setParam(s,t.isValidContext?Yn(t.context,s,a):Ln(void 0,a))}),t},Un=M.OBJECT,Ri=M.FUNC_WITH_X_AND_MORE_ARGUMENTS,ke=function(n){return n.get="get",n.settings="settings",n.devSettings="devSettings",n}(ke||{}),Pi=((_t={})[ke.get]={validators:[Ri(2)],mandatory:!0},_t[ke.settings]={validators:[Un]},_t[ke.devSettings]={validators:[Un]},_t),Oi=M.NUMBER,Ue=M.INTEGER,Wn=M.INTEGER_UNLIMITED,We=M.MORE_OR_EQUAL,pe=M.BOOLEAN,Ei=M.ELEMENT,Qn=M.FUNC,Ni=M.OR,Zn=M.ENUM,Y=function(n){return n.adapter="adapter",n.startIndex="startIndex",n.minIndex="minIndex",n.maxIndex="maxIndex",n.itemSize="itemSize",n.bufferSize="bufferSize",n.padding="padding",n.infinite="infinite",n.horizontal="horizontal",n.windowViewport="windowViewport",n.viewportElement="viewportElement",n.inverse="inverse",n.onBeforeClip="onBeforeClip",n.sizeStrategy="sizeStrategy",n}(Y||{}),Q=function(n){return n.debug="debug",n.immediateLog="immediateLog",n.logProcessRun="logProcessRun",n.logTime="logTime",n.throttle="throttle",n.initDelay="initDelay",n.initWindowDelay="initWindowDelay",n.cacheData="cacheData",n.cacheOnReload="cacheOnReload",n.dismissOverflowAnchor="dismissOverflowAnchor",n.directionPriority="directionPriority",n}(Q||{}),Qe=((Ie={})[Y.itemSize]=1,Ie[Y.bufferSize]=1,Ie[Y.padding]=.01,Ie[Q.throttle]=0,Ie[Q.initDelay]=0,Ie[Q.initWindowDelay]=0,Ie),Ai=((J={})[Y.adapter]={validators:[pe],defaultValue:!1},J[Y.startIndex]={validators:[Ue],defaultValue:1},J[Y.minIndex]={validators:[Wn],defaultValue:-1/0},J[Y.maxIndex]={validators:[Wn],defaultValue:1/0},J[Y.itemSize]={validators:[Ue,We(Qe[Y.itemSize],!0)],defaultValue:NaN},J[Y.bufferSize]={validators:[Ue,We(Qe[Y.bufferSize],!0)],defaultValue:5},J[Y.padding]={validators:[Oi,We(Qe[Y.padding],!0)],defaultValue:.5},J[Y.infinite]={validators:[pe],defaultValue:!1},J[Y.horizontal]={validators:[pe],defaultValue:!1},J[Y.windowViewport]={validators:[pe],defaultValue:!1},J[Y.viewportElement]={validators:[Ni([Ei,Qn])],defaultValue:null},J[Y.inverse]={validators:[pe],defaultValue:!1},J[Y.onBeforeClip]={validators:[Qn],defaultValue:null},J[Y.sizeStrategy]={validators:[Zn(se)],defaultValue:se.Average},J),$i=((ce={})[Q.debug]={validators:[pe],defaultValue:!1},ce[Q.immediateLog]={validators:[pe],defaultValue:!0},ce[Q.logProcessRun]={validators:[pe],defaultValue:!1},ce[Q.logTime]={validators:[pe],defaultValue:!1},ce[Q.throttle]={validators:[Ue,We(Qe[Q.throttle],!0)],defaultValue:40},ce[Q.initDelay]={validators:[Ue,We(Qe[Q.initDelay],!0)],defaultValue:1},ce[Q.initWindowDelay]={validators:[Ue,We(Qe[Q.initWindowDelay],!0)],defaultValue:40},ce[Q.cacheData]={validators:[pe],defaultValue:!1},ce[Q.cacheOnReload]={validators:[pe],defaultValue:!1},ce[Q.dismissOverflowAnchor]={validators:[pe],defaultValue:!0},ce[Q.directionPriority]={validators:[Zn(k)],defaultValue:k.backward},ce),A=function(n){return n.init="init",n.scroll="scroll",n.start="start",n.preFetch="preFetch",n.fetch="fetch",n.postFetch="postFetch",n.render="render",n.preClip="preClip",n.clip="clip",n.adjust="adjust",n.end="end",n}(A||{}),_=function(n){return n.reset="adapter.reset",n.reload="adapter.reload",n.append="adapter.append",n.prepend="adapter.prepend",n.check="adapter.check",n.remove="adapter.remove",n.replace="adapter.replace",n.update="adapter.update",n.clip="adapter.clip",n.insert="adapter.insert",n.pause="adapter.pause",n.fix="adapter.fix",n}(_||{}),m=function(n){return n.start="start",n.next="next",n.done="done",n.error="error",n}(m||{}),gn=M.INTEGER,_n=M.INTEGER_UNLIMITED,me=M.BOOLEAN,yn=M.OBJECT,kt=M.ITEM_LIST,Ze=M.FUNC_WITH_X_ARGUMENTS,ji=M.FUNC_WITH_X_TO_Y_ARGUMENTS,Ke=M.ONE_OF_MUST,Kn=M.ONE_OF_CAN,Bi=M.OR;$t||($t={});var $e,Jn={},Gi=((yt={})[ke.get]={validators:[(0,M.FUNC_WITH_X_AND_MORE_ARGUMENTS)(2)]},yt[ke.settings]={validators:[yn]},yt[ke.devSettings]={validators:[yn]},yt),Cn=function(n){return n.reloadIndex="reloadIndex",n}(Cn||{}),Hi=((mn={})[Cn.reloadIndex]={validators:[gn]},mn),St=function(n){return n.items="items",n.bof="bof",n.increase="increase",n}(St||{}),Xi=((Ct={})[St.items]={validators:[kt],mandatory:!0},Ct[St.bof]={validators:[me],defaultValue:!1},Ct[St.increase]={validators:[me],defaultValue:!1},Ct),Tt=function(n){return n.items="items",n.eof="eof",n.decrease="decrease",n}(Tt||{}),Li=((bt={})[Tt.items]={validators:[kt],mandatory:!0},bt[Tt.eof]={validators:[me],defaultValue:!1},bt[Tt.decrease]={validators:[me],defaultValue:!1},bt),Ae=function(n){return n.predicate="predicate",n.indexes="indexes",n.increase="increase",n}(Ae||{}),Yi=((xt={})[Ae.predicate]={validators:[Ze(1),Ke([Ae.indexes])]},xt[Ae.indexes]={validators:[kt,Ke([Ae.predicate])]},xt[Ae.increase]={validators:[me],defaultValue:!1},xt),Je=function(n){return n.backwardOnly="backwardOnly",n.forwardOnly="forwardOnly",n}(Je||{}),Ui=((Nt={})[Je.backwardOnly]={validators:[me,Kn([Je.forwardOnly])],defaultValue:!1},Nt[Je.forwardOnly]={validators:[me,Kn([Je.backwardOnly])],defaultValue:!1},Nt),U=function(n){return n.items="items",n.before="before",n.after="after",n.beforeIndex="beforeIndex",n.afterIndex="afterIndex",n.decrease="decrease",n}(U||{}),Wi=((we={})[U.items]={validators:[kt],mandatory:!0},we[U.before]={validators:[Ze(1),Ke([U.after,U.beforeIndex,U.afterIndex])]},we[U.after]={validators:[Ze(1),Ke([U.before,U.beforeIndex,U.afterIndex])]},we[U.beforeIndex]={validators:[gn,Ke([U.before,U.after,U.afterIndex])]},we[U.afterIndex]={validators:[gn,Ke([U.before,U.after,U.beforeIndex])]},we[U.decrease]={validators:[me],defaultValue:!1},we),Vt=function(n){return n.items="items",n.predicate="predicate",n.fixRight="fixRight",n}(Vt||{}),Qi=((zt={})[U.items]={validators:[kt],mandatory:!0},zt[Vt.predicate]={validators:[Ze(1)],mandatory:!0},zt[Vt.fixRight]={validators:[me],defaultValue:!1},zt),jt=function(n){return n.predicate="predicate",n.fixRight="fixRight",n}(jt||{}),Zi=((At={})[jt.predicate]={validators:[Ze(1)],mandatory:!0},At[jt.fixRight]={validators:[me],defaultValue:!1},At),Pe=function(n){return n.scrollPosition="scrollPosition",n.minIndex="minIndex",n.maxIndex="maxIndex",n.updater="updater",n.scrollToItem="scrollToItem",n.scrollToItemOpt="scrollToItemOpt",n}(Pe||{}),Ki=((Re={})[Pe.scrollPosition]={validators:[_n]},Re[Pe.minIndex]={validators:[_n]},Re[Pe.maxIndex]={validators:[_n]},Re[Pe.updater]={validators:[ji(1,2)]},Re[Pe.scrollToItem]={validators:[Ze(1)]},Re[Pe.scrollToItemOpt]={validators:[Bi([me,yn])]},Re),Ji=((oe={})[_.reset]=ke,oe[_.reload]=Cn,oe[_.prepend]=St,oe[_.append]=Tt,oe[_.check]=$t,oe[_.remove]=Ae,oe[_.clip]=Je,oe[_.insert]=U,oe[_.replace]=Vt,oe[_.update]=jt,oe[_.pause]=$t,oe[_.fix]=Pe,oe),qi=((re={})[_.reset]=Gi,re[_.reload]=Hi,re[_.prepend]=Xi,re[_.append]=Li,re[_.check]=Jn,re[_.remove]=Yi,re[_.clip]=Ui,re[_.insert]=Wi,re[_.replace]=Qi,re[_.update]=Zi,re[_.pause]=Jn,re[_.fix]=Ki,re),eo=M.ELEMENT,qn=M.OBJECT,to=M.FUNC,no=M.FUNC_WITH_X_ARGUMENTS,qe=function(n){return n.consumer="consumer",n.element="element",n.datasource="datasource",n.run="run",n.Routines="Routines",n}(qe||{}),io=(($e={})[qe.consumer]={validators:[qn]},$e[qe.element]={validators:[eo],mandatory:!0},$e[qe.datasource]={validators:[qn],mandatory:!0},$e[qe.run]={validators:[no(1)],mandatory:!0},$e[qe.Routines]={validators:[to]},$e),oo=function(){function n(o,t,i){this.parseInput(o,Ai),this.parseInput(t,$i),this.instanceIndex=i,this.initializeDelay=this.getInitializeDelay(),this.viewport=this.getViewport()}return n.prototype.parseInput=function(o,t){var i=this,r=Et(o,t);if(!r.isValid)throw new Error("Invalid settings");Object.entries(r.params).forEach(function(s){var a,c=(0,h.zs)(s,2);return Object.assign(i,((a={})[c[0]]=c[1].value,a))})},n.prototype.getInitializeDelay=function(){var o=0;return this.windowViewport&&this.initWindowDelay&&!("scrollRestoration"in history)&&(o=this.initWindowDelay),this.initDelay>0&&(o=Math.max(o,this.initDelay)),o},n.prototype.getViewport=function(){if("function"!=typeof this.viewportElement)return this.viewportElement;var o=this.viewportElement(),t=Yn({value:o},"value",{validators:[M.ELEMENT]});return t.isValid?t.value:null},n}(),fe=function(n){var o;return(o=function(){return function t(){}}()).process=n,o},ge=function(n){var o;return o=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,h.C6)(i,t),i.parseInput=function(r,s,a,c){void 0===a&&(a=!1);var l={data:Et(s,qi[c||n])};return l.data.isValid?l.params=Object.entries(l.data.params).reduce(function(u,d){var p,v=(0,h.zs)(d,2),g=v[0],C=v[1].value;return(0,h.Cl)((0,h.Cl)({},u),((p={})[g]=C,p))},{}):(r.logger.log(function(){return l.data.showErrors()}),a||r.workflow.call({process:n,status:m.error,payload:{error:'Wrong argument of the "'.concat(n,'" method call')}})),l},i}(fe(n)),o.process=n,o},ro=[A.init,_.reset,_.reload],le=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(o,n),o.run=function(t,i){var r=t.state,s=t.workflow,a=ro.includes(i);t.logger.logCycle(!0),r.startWorkflowCycle(a,i),s.call({process:o.process,status:m.next})},o}(fe(A.init)),so=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(o,n),o.run=function(t,i){var r=t.workflow,a=t.viewport.scrollPosition;o.onSynthetic(t,a)||o.onThrottle(t,a,function(){return o.onScroll(t,r)})},o.onSynthetic=function(t,i){var r=t.state.scroll,s=r.syntheticPosition;if(null!==s){if(r.syntheticFulfill&&(r.syntheticPosition=null),!r.syntheticFulfill||s===i)return t.logger.log(function(){return["skipping scroll",i,"[".concat(r.syntheticFulfill?"":"pre-","synthetic]")]}),!0;t.logger.log(function(){return["synthetic scroll has been fulfilled:",i,i",s]})}return!1},o.onThrottle=function(t,i,r){var s=t.state.scroll,a=t.settings.throttle,c=t.logger;s.current=o.getScrollEvent(i,s.previous);var l=s.current,u=l.direction,d=l.time,p=s.previous?d-s.previous.time:1/0,v=a-p,g=isFinite(v)&&v>0,C=!!s.scrollTimer;if(c.log(function(){return[u===k.backward?"\u2934":"\u2935",i,g?p+"ms":"0ms",g?C?"delayed":"/ ".concat(v,"ms delay"):""]}),!g)return s.scrollTimer&&(clearTimeout(s.scrollTimer),s.scrollTimer=null),void r();C||(s.scrollTimer=setTimeout(function(){c.log(function(){var T=o.getScrollEvent(t.viewport.scrollPosition,s.current);return[T.direction===k.backward?"\u2934":"\u2935",T.position,T.time-d+"ms","triggered by timer set on",i]}),s.scrollTimer=null,r()},v))},o.getScrollEvent=function(t,i){var r=Number(new Date),s=k.forward;return i&&(t===i.position?s=i.direction:t=c&&v.$index<=l}))}t.logger.stat("check"),i.call({process:o.process,status:Number.isFinite(c)?m.next:m.done})},o}(ge(_.check)),po=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(o,n),o.run=function(t,i){var r=o.parseInput(t,i).params;if(r){var s=o.doRemove(t,r);t.workflow.call({process:o.process,status:s?m.next:m.done})}},o.doRemove=function(t,i){t.state.fetch.firstVisible.index=NaN;var s=o.removeBufferedItems(t,i),a=s.length>0;if(a&&(i.indexes&&i.indexes.length&&(i.indexes=i.indexes.filter(function(d){return!s.includes(d)})),i.indexes&&i.indexes.length)){var c=(i.increase?1:0)*s.length,l=(i.increase?0:-1)*s.length;i.indexes=i.indexes.map(function(d){return d+(d=u&&!isNaN(d)&&Pv))continue;g.push(P)}if(!g.length)return!1;if(isNaN(l.firstVisible.index)){var P,G=c.getEdgeVisibleItem(a.items,k.backward),E=G.diff;l.firstVisible.index=P=G.index,isNaN(P)||(l.firstVisible.delta=-a.getSizeByIndex(P)+E)}return t.logger.log(function(){return"going to remove ".concat(g.length," item(s) virtually")}),a.removeVirtually(g,!!s),a.checkDefaultSize(),o.shiftFirstVisibleIndex(t,g,!!s),!0},o.shiftFirstVisibleIndex=function(t,i,r){var s=t.state.fetch.firstVisible;if(!isNaN(s.index)){var a=i.reduce(function(c,l){return c+(r&&l>s.index||!r&&l=0){var v=r.getSizeByIndex(p);if(d+v-a>0){l=p,u=d;break}if(d+=v,++pd&&(l.index=T,s.innerLoop.isInitial||(l.delta=P-G-d)),P>=p||T++>a.absMaxIndex)break}}else C=a.startIndex+c.bufferSize-1,t.logger.log("forcing fetch forward direction [no item size]");g.index=g.indexBuffer=Math.min(C,a.absMaxIndex)},o.skipBufferedItems=function(t){var i=t.buffer;if(i.size){for(var r=t.state.fetch,s=r.first.index,a=r.last.index,c=[[]],l=0,u=s;u<=a;u++)i.get(u)?c[l].length&&(c[++l]=[]):c[l].push(u);var d=c[0];c[0].length&&c[1]&&c[1].length&&(r.hasAnotherPack=!0,c[1].length>=c[0].length&&(d=c[1])),r.first.index=Math.max(d[0],i.absMinIndex),r.last.index=Math.min(d[d.length-1],i.absMaxIndex),(r.first.index!==s||r.last.index!==a)&&t.logger.fetch("after Buffer flushing")}},o.checkBufferGaps=function(t){var i=t.buffer,r=t.state.fetch;if(i.size){var s=r.first.index,a=i.lastIndex;s>a&&(r.first.index=r.first.indexBuffer=a+1);var c=i.firstIndex,l=r.last.index;li.items[0].$index){var l=Math.min(a+c,i.absMaxIndex);l>a&&(r.last.index=r.last.indexBuffer=l)}else{var u=Math.max(s-c,i.absMinIndex);uc[d].$index&&(i.absMaxIndex=c[d].$index)}else(ui.maxIndex||a.isInitial)&&(i.absMaxIndex=i.maxIndex)},o.setItems=function(t){var i=t.buffer,r=t.state,s=r.fetch,c=s.newItemsData;if(!c||!c.length)return!0;var l=s.index;return c.length0&&(s?T+=O:P+=O,t.logger.log(function(){return s?"backward":"forward"+" padding will be increased by ".concat(O," to fill the viewport")})),g.size=T,v.size=P,t.logger.stat("after paddings adjustments")},o.calculatePosition=function(t){var i=t.viewport,r=t.buffer,s=t.state,a=s.fetch,c=s.render,l=s.scroll,u=i.paddings.backward.size;if(!isNaN(a.firstVisible.index)&&!isNaN(r.firstIndex)){t.logger.log("first index = ".concat(a.firstVisible.index,", delta = ").concat(a.firstVisible.delta));var d=a.shouldCheckPreSizeExpectation(r.lastIndex);r.items.forEach(function(v){v.$index0&&(u||a.positions.before)&&(u+=i.offset),Math.round(u)},o.setAdditionalForwardPadding=function(t,i){var r=t.viewport,s=t.buffer;if(t.state.cycle.isInitial&&je.shouldContinueRun(t,null)){var c=i-r.getMaxScrollPosition();if(!(c<=0)){var l=s.getLastVisibleItem();if(l){for(var u=0,d=l.$index+1;u<=c&&d<=s.absMaxIndex;)u+=s.getSizeByIndex(d++);var p=Math.min(u,c);p&&(r.paddings.forward.size+=p,t.logger.log("increase fwd padding due to lack of items (".concat(c," -> ").concat(p,")")))}}}},o.setPosition=function(t,i,r){var s=t.state.scroll,a=t.viewport,c=t.routines;if(!s.hasPositionChanged(i))return r();s.syntheticPosition=i,s.syntheticFulfill=!1,s.cancelAnimation=c.animate(function(){s.cancelAnimation=null;var l=s.positionAfterAdjust-a.scrollPosition,u="";l>0&&(s.syntheticPosition=i-=l,u=" (-".concat(l,")")),s.syntheticFulfill=!0,a.scrollPosition=i,t.logger.stat("after scroll adjustment"+u),r()})},o}(fe(A.adjust)),ni=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(o,n),o.run=function(t){o.prepareClip(t),t.workflow.call({process:o.process,status:m.next,payload:{doClip:t.state.clip.doClip}})},o.prepareClip=function(t){var i=t.state,r=i.fetch,s=i.clip;if(!o.shouldNotClip(t)){var a=r.first.indexBuffer,c=r.last.indexBuffer;t.logger.log(function(){return"looking for ".concat(r.direction?"anti-"+r.direction+" ":"","items ")+"that are out of [".concat(a,"..").concat(c,"] range")}),o.isBackward(t,a)&&o.prepareClipByDirection(t,k.backward,a),o.isForward(t,c)&&o.prepareClipByDirection(t,k.forward,c),s.doClip||t.logger.log("skipping clip [no items to clip]")}},o.shouldNotClip=function(t){var r=t.buffer,s=t.state;return t.settings.infinite&&!s.clip.force?(t.logger.log("skipping clip [infinite mode]"),!0):r.size?!!s.cycle.isInitial&&(t.logger.log("skipping clip [initial cycle]"),!0):(t.logger.log("skipping clip [empty buffer]"),!0)},o.isBackward=function(t,i){var s=t.state,a=s.clip;return a.force?a.forceBackward:s.fetch.direction!==k.backward&&i-1>=t.buffer.absMinIndex},o.isForward=function(t,i){var s=t.state,a=s.clip;return a.force?a.forceForward:s.fetch.direction!==k.forward&&i+1<=t.buffer.absMaxIndex},o.prepareClipByDirection=function(t,i,r){var s=i===k.forward;t.buffer.items.forEach(function(a){(!s&&a.$indexr)&&(a.toRemove=!0,a.removeDirection=i,t.state.clip.doClip=!0)})},o}(fe(A.preClip)),zo=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return(0,h.C6)(o,n),o.run=function(t){var i=t.workflow;o.doClip(t),i.call({process:o.process,status:m.next})},o.doClip=function(t){var i,r=t.buffer,s=t.viewport.paddings,a=t.state.clip,c=t.logger,l=((i={})[k.backward]=0,i[k.forward]=0,i);c.stat("before clip (".concat(++a.callCount,")"));var u=r.items.filter(function(d){return!!d.toRemove&&(d.hide(),l[d.removeDirection]+=d.size,!0)});u.length&&(l[k.backward]&&(s.byDirection(k.backward).size+=l[k.backward]),l[k.forward]&&(s.byDirection(k.forward).size+=l[k.forward]),t.settings.onBeforeClip&&t.settings.onBeforeClip(u.map(function(d){return d.get()}))),r.clip(),c.log(function(){var d=u.map(function(p){return p.$index});return d.length?["clipped ".concat(d.length," item(s) from Buffer")+(l.backward?", +".concat(l.backward," fwd px"):"")+(l.forward?", +".concat(l.forward," bwd px"):"")+", range: [".concat(d[0],"..").concat(d[d.length-1],"]")]:"clipped 0 items from Buffer"}),c.stat("after clip")},o}(fe(A.clip)),ko=function(){function n(o,t,i){var r=this;this.logs=[],this.logAdapterMethod=function(a,c,l){if(r.debug){var u=(void 0===c?[]:Array.isArray(c)?c:[c]).map(function(d){return"function"==typeof d?"func":"object"==typeof d&&d?Array.isArray(d)?"[of ".concat(d.length,"]"):"{ "+Object.keys(d).join(", ")+" }":d}).join(", ");r.log("adapter: ".concat(a,"(").concat(u||"",")").concat(l||""))}};var s=o.settings;this.debug=s.debug,this.immediateLog=s.immediateLog,this.logTime=s.logTime,this.getTime=function(){return o.state&&" // time: ".concat(o.state.time)},this.getStat=function(){var a=o.buffer,c=o.viewport,l=a.getFirstVisibleItem(),u=a.getLastVisibleItem();return"pos: "+c.scrollPosition+", size: "+c.getScrollableSize()+", bwd_p: "+c.paddings.backward.size+", fwd_p: "+c.paddings.forward.size+", default: "+(a.defaultSize||"no")+", items: "+a.getVisibleItemsCount()+", range: "+(l&&u?"[".concat(l.$index,"..").concat(u.$index,"]"):"no")},this.getFetchRange=function(){var a=o.state.fetch,c=a.first.index,l=a.last.index;return Number.isNaN(c)||Number.isNaN(l)?"no":"[".concat(c,"..").concat(l,"]")},this.getLoopId=function(){return o.state.cycle.loopId},this.getLoopIdNext=function(){return o.state.cycle.loopIdNext},this.getWorkflowCycleData=function(){return"".concat(s.instanceIndex,"-").concat(o.state.cycle.count)},this.getScrollPosition=function(){return o.routines.getScrollPosition()},this.log(function(){return"vscroll Workflow has been started, "+"core: ".concat(t.core.name," v").concat(t.core.version,", ")+"consumer: ".concat(t.consumer.name," v").concat(t.consumer.version,", ")+"scroller instance: ".concat(s.instanceIndex,", adapter ")+(i?"instance: ".concat(i.id):"is not instantiated")})}return n.prototype.object=function(o,t,i){this.log(function(){return[o,i?JSON.stringify(t,function(r,s){return Number.isNaN(s)?"NaN":s===1/0?"Infinity":s===-1/0?"-Infinity":s instanceof Element?"HTMLElement":s instanceof HTMLDocument?"HTMLDocument":"function"==typeof s?"Function":s}).replace(/"/g,"").replace(/(\{|:|,)/g,"$1 ").replace(/(\})/g," $1"):t]})},n.prototype.stat=function(o){var t=this;if(this.debug){var i=["color: #888; border: dashed #888 0; border-bottom-width: 0px","color: #000; border-width: 0"];this.log(function(){return(0,h.fX)(["%cstat"+(o?" ".concat(o):"")+",%c "+t.getStat()],(0,h.zs)(i),!1)})}},n.prototype.fetch=function(o){var t=this;if(this.debug){var i="fetch interval"+(o?" ".concat(o):""),r=["color: #888","color: #000"];this.log(function(){return(0,h.fX)(["%c".concat(i,": %c").concat(t.getFetchRange())],(0,h.zs)(r),!1)})}},n.prototype.prepareForLog=function(o){return o instanceof Event&&o.target?this.getScrollPosition():o},n.prototype.logProcess=function(o){if(this.debug){var t=o.process,i=o.status,r=o.payload,s=[];if(t===A.init&&i===m.next)s.push("%c---=== loop ".concat(this.getLoopIdNext()," start"));else if(t===A.end){s.push("%c---=== loop ".concat(this.getLoopId()," done"));var a=r&&r.process;i===m.next&&a!==_.reset&&a!==_.reload&&(s[0]+=", loop ".concat(this.getLoopIdNext()," start"))}s.length&&this.log(function(){return(0,h.fX)((0,h.fX)([],(0,h.zs)(s),!1),["color: #006600;"],!1)})}},n.prototype.logCycle=function(o){void 0===o&&(o=!0);var t=this.getWorkflowCycleData(),r="color: #0000aa; border: solid #555 1px; border-width: ".concat(o?"1px 0 0 1px":"0 0 1px 1px","; margin-left: -2px");this.log(function(){return["%c ~~~ WF Cycle ".concat(t," ").concat(o?"STARTED":"FINALIZED"," ~~~ "),r]})},n.prototype.logError=function(o){var t=this;if(this.debug){var i=["color: #a00;","color: #000"];this.log(function(){return(0,h.fX)(["error:%c"+(o?" ".concat(o):"")+"%c (loop ".concat(t.getLoopIdNext(),")")],(0,h.zs)(i),!1)})}},n.prototype.log=function(){for(var o=this,t=[],i=0;i0&&(this.backward.size+=a,this.forward.size-=a)):(this.forward.reset(r),this.backward.reset(s),(a=o-this.forward.size-i)>0&&(this.backward.size-=a,this.forward.size+=a))},n.prototype.getPositiveSize=function(o,t,i){var r=this.settings,s=t;return isFinite(r.maxIndex)&&(s=(r.maxIndex-o+1)*r.itemSize),i&&(s=Math.max(s-i,0)),s},n.prototype.getNegativeSize=function(o){var t=this.settings,i=0;return isFinite(t.minIndex)&&(i=(o-t.minIndex)*t.itemSize),i},n}(),To=function(){function n(o,t,i,r){this.settings=o,this.routines=t,this.state=i,this.logger=r,this.paddings=new So(this.routines,o)}return n.prototype.reset=function(o){this.setOffset(),this.paddings.reset(this.getSize(),o,this.offset),this.scrollPosition=this.paddings.backward.size||0,this.state.scroll.reset()},n.prototype.setPosition=function(o){if(this.scrollPosition===o)return this.logger.log(function(){return["setting scroll position at",o,"[cancelled]"]}),o;this.routines.setScrollPosition(o);var i=this.scrollPosition;return this.logger.log(function(){return(0,h.fX)(["setting scroll position at",i],(0,h.zs)(i!==o?["(".concat(o,")")]:[]),!1)}),i},Object.defineProperty(n.prototype,"scrollPosition",{get:function(){return this.routines.getScrollPosition()},set:function(o){this.setPosition(o)},enumerable:!1,configurable:!0}),n.prototype.getSize=function(){return this.routines.getViewportSize()},n.prototype.getScrollableSize=function(){return this.routines.getScrollerSize()},n.prototype.getMaxScrollPosition=function(){return this.getScrollableSize()-this.getSize()},n.prototype.getBufferPadding=function(){return this.getSize()*this.settings.padding},n.prototype.getEdge=function(o){return this.routines.getViewportEdge(o)},n.prototype.setOffset=function(){this.offset=this.routines.getOffset()},n.prototype.findItemElementById=function(o){return this.routines.findItemElement(o)},n.prototype.getEdgeVisibleItem=function(o,t){for(var a,i=t===k.backward,r=i?k.forward:k.backward,s=this.getEdge(t),c=0,l=i?0:o.length-1;i?l<=o.length-1:l>=0;l+=i?1:-1)if(c=this.routines.getEdge(o[l].element,r)-s,i&&c>0||!i&&c<0){a=o[l];break}return{item:a,index:a?a.$index:NaN,diff:c}},n}(),Mo=function(){function n(){this.reset()}return n.prototype.reset=function(){this.newItems=[],this.oldItems=[],this.removed=[]},n}(),Do=function(){function n(o,t){this.itemSize=o,this.sizeStrategy=t,this.sizeMap=new Map,this.recalculation=new Mo}return n.prototype.reset=function(o){o&&(this.constantSize=this.itemSize,this.frequentSize=this.itemSize,this.averageSize=this.itemSize,this.averageSizeFloat=this.itemSize,this.sizeMap.clear()),this.recalculation.reset()},n.prototype.get=function(){switch(this.sizeStrategy){case se.Average:return this.averageSize;case se.Frequent:return this.frequentSize;default:return this.constantSize}},n.prototype.recalculateAverageSize=function(o){var t=this.recalculation,i=t.oldItems,r=t.newItems,s=t.removed;if(i.length){var a=i.reduce(function(d,p){return d+p.size},0),c=i.reduce(function(d,p){return d+p.newSize},0);this.averageSizeFloat=(this.averageSizeFloat||0)-(a-c)/(o-r.length)}if(r.length&&(c=r.reduce(function(v,g){return v+g.size},0),this.averageSizeFloat=((o-r.length)*(this.averageSizeFloat||0)+c)/o),s.length){var u=s.reduce(function(p,v){return p+v.size},0);this.averageSizeFloat=((o+s.length)*(this.averageSizeFloat||0)-u)/o}this.averageSize=Math.round(this.averageSizeFloat)},n.prototype.recalculateFrequentSize=function(){var o=this,t=this.recalculation,i=t.oldItems,r=t.newItems,s=t.removed,a=this.sizeMap.get(this.frequentSize);r.length&&r.forEach(function(d){var p=d.size;return o.sizeMap.set(p,(o.sizeMap.get(p)||0)+1)}),i.length&&(i.forEach(function(d){var p=d.size;return o.sizeMap.set(p,Math.max((o.sizeMap.get(p)||0)-1,0))}),i.forEach(function(d){var p=d.newSize;return o.sizeMap.set(p,(o.sizeMap.get(p)||0)+1)})),s.length&&s.forEach(function(d){var p=d.size;return o.sizeMap.set(p,Math.max((o.sizeMap.get(p)||0)-1,0))});var c=(0,h.fX)([],(0,h.zs)(this.sizeMap.entries()),!1).sort(function(d,p){return p[1]-d[1]}),l=c[0][1],u=c.filter(function(d){return d[1]===l});u.length>1&&u.find(function(d){return d[0]===a})||(this.frequentSize=c[0][0])},n.prototype.recalculate=function(o){if(this.sizeStrategy===se.Constant)return!1;var t=this.recalculation;if(!t.oldItems.length&&!t.newItems.length&&!t.removed.length)return!1;var a=this.get();return o?(this.sizeStrategy===se.Average?this.recalculateAverageSize(o):this.recalculateFrequentSize(),this.recalculation.reset()):this.reset(!0),this.get()!==a},n.prototype.setExisted=function(o,t){this.sizeStrategy!==se.Constant&&this.recalculation.oldItems.push({size:o,newSize:t})},n.prototype.setNew=function(o){this.sizeStrategy!==se.Constant?this.recalculation.newItems.push({size:o}):this.constantSize||(this.constantSize=o)},n.prototype.setRemoved=function(o){this.sizeStrategy!==se.Constant&&this.recalculation.removed.push({size:o})},n}(),zn=function(){function n(o,t){this.$index=o.$index,this.data=t?o.data:null,this.size=o.size}return n.prototype.changeIndex=function(o){this.$index=o},n}(),Fo=function(){function n(o,t){var i=o.itemSize,r=o.cacheData,s=o.cacheOnReload,a=o.sizeStrategy;this.itemSize=i,this.saveData=r,this.cacheOnReload=s,this.sizeStrategy=a,this.logger=t,this.items=new Map,this.defaultSize=new Do(i,a),this.reset(!0)}return n.prototype.reset=function(o){(o=o||!this.cacheOnReload)&&(this.minIndex=1/0,this.maxIndex=-1/0,this.items.clear()),this.defaultSize.reset(o)},Object.defineProperty(n.prototype,"size",{get:function(){return this.items.size},enumerable:!1,configurable:!0}),n.prototype.get=function(o){return this.items.get(o)},n.prototype.getSizeByIndex=function(o){var t=this.get(o);return t&&t.size||this.defaultSize.get()},n.prototype.getDefaultSize=function(){return this.defaultSize.get()},n.prototype.recalculateDefaultSize=function(){var o=this;return!!this.defaultSize.recalculate(this.size)&&(this.logger.log(function(){return"default size has been updated: ".concat(o.defaultSize.get())}),!0)},n.prototype.add=function(o){var t=this.get(o.$index);return t?(this.saveData&&(t.data=o.data),t.size!==o.size&&(t.size?this.defaultSize.setExisted(t.size,o.size):this.defaultSize.setNew(o.size),t.size=o.size)):(t=new zn(o,this.saveData),this.items.set(o.$index,t),this.defaultSize.setNew(o.size)),o.$indexthis.maxIndex&&(this.maxIndex=o.$index),t},n.prototype.insertItems=function(o,t,i,r){var s=this,a=new Map,c=o.length,l=1/0,u=-1/0,d=function(p){a.set(p.$index,p),l=p.$indexu?p.$index:u};this.items.forEach(function(p){var v=0;i===k.backward?p.$index=t&&!r&&(v=c):i===k.forward&&(p.$index<=t&&r?v=-c:p.$index>t&&!r&&(v=c)),v&&p.changeIndex(p.$index+v),d(p)}),this.saveData&&o.forEach(function(p,v){var C=new zn({$index:t+v-(r?c:0)+(i===k.forward?1:0),data:p},s.saveData);d(C)}),this.items=a,this.minIndex=l,this.maxIndex=u},n.prototype.removeItems=function(o,t){var i=this,r=new Map,s=1/0,a=-1/0;this.items.forEach(function(c){if(o.some(function(u){return u===c.$index}))c.size&&i.defaultSize.setRemoved(c.size);else{var l=o.reduce(t?function(u,d){return u+(c.$indexd?1:0)},0);c.changeIndex(c.$index+l),r.set(c.$index,c),s=c.$indexa?c.$index:a}}),this.items=r,this.minIndex=s,this.maxIndex=a},n.prototype.updateSubset=function(o,t,i){var r=this;if(this.size&&o.length){var c,l,s=o[0].$index,a=o[o.length-1].$index;t.length?(c=t[0].$index-s,l=t[t.length-1].$index-a):(c=i?a-s+1:0,l=i?0:s-a-1);var p=new Map;this.items.forEach(function(v){return v.$indexa?(v.changeIndex(v.$index+l),void p.set(v.$index,v)):void 0}),t.forEach(function(v){return p.set(v.$index,new zn(v,r.saveData))}),o.filter(function(v){return v.toRemove}).forEach(function(v){return r.defaultSize.setRemoved(v.size)}),this.minIndex+=c,this.maxIndex+=l,this.items=p}},n.prototype.shiftIndexes=function(o){var t=new Map,i=1/0,r=-1/0;this.items.forEach(function(s){s.changeIndex(s.$index+o),t.set(s.$index,s),i=s.$indexr?s.$index:r}),this.items=t,this.minIndex=i,this.maxIndex=r},n}(),Io=function(){function n(o,t){this.context=o,this.logger=t}return n.prototype.fillEmpty=function(o,t,i){return o.length?Number.isInteger(t)||Number.isInteger(i)?(this.logger.log(function(){return"going to fill the buffer with ".concat(o.length," item(s)")}),!0):(this.logger.log("no items to fill the buffer; wrong indexes"),!1):(this.logger.log("no items to fill the buffer; empty list"),!1)},n.prototype.insertInBuffer=function(o,t,i){var r=Number.isInteger(t)?t:Number.isInteger(i)?i:NaN,s=this.context.items.find(function(a){return o&&o(a.get())||Number.isInteger(r)&&r===a.$index});return s?s.$index:(this.logger.log("no items to insert in buffer; empty predicate's result"),NaN)},n.prototype.insertVirtual=function(o,t,i){if(!o.length)return this.logger.log("no items to insert virtually; empty list"),!1;var r=this.context,s=r.firstIndex,a=r.lastIndex,c=r.finiteAbsMinIndex,l=r.finiteAbsMaxIndex;if(tl)return this.logger.log(function(){return"no items to insert virtually; "+"selected index (".concat(t,") does not match virtual area [").concat(c,"..").concat(l,"]")}),!1;var u=i===k.backward;return ta-(u?0:1)?(this.logger.log(function(){return"going to insert ".concat(o.length," item(s) virtually")}),!0):(this.logger.log(function(){return"no items to insert virtually; selected index (".concat(t,") belongs Buffer [").concat(s,"..").concat(a,"]")}),!1)},n}(),wo=function(){function n(o,t,i){this._items=[],this.logger=i,this.changeItems=t,this.bof=new V(!1),this.eof=new V(!1),this.cache=new Fo(o,i),this.checkCall=new Io(this,i),this.startIndexUser=o.startIndex,this.minIndexUser=o.minIndex,this.maxIndexUser=o.maxIndex,this.reset(!0)}return n.prototype.dispose=function(){this.bof.dispose(),this.eof.dispose(),this._items.forEach(function(o){return o.dispose()}),this._items=[]},n.prototype.reset=function(o,t){this.items.forEach(function(i){return i.hide()}),this.pristine=!0,this.items=[],this.cache.reset(o),this.absMinIndex=this.minIndexUser,this.absMaxIndex=this.maxIndexUser,this.setCurrentStartIndex(t),this.bof.set(!1),this.eof.set(!1),this.pristine=!1},n.prototype.setCurrentStartIndex=function(o){var t=this.minIndexUser,i=this.maxIndexUser,r=this.startIndexUser,s=Number(o);Number.isNaN(s)&&(this.logger.log(function(){return"fallback startIndex to settings.startIndex (".concat(r,")")}),s=r),si&&(this.logger.log(function(){return"setting startIndex to settings.maxIndex (".concat(i,") because ").concat(s," > ").concat(i)}),s=i),this.startIndex=s},Object.defineProperty(n.prototype,"items",{get:function(){return this._items},set:function(o){this._items=o,this.changeItems(o),this.pristine||(this.checkBOF(),this.checkEOF())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"absMinIndex",{get:function(){return this._absMinIndex},set:function(o){this._absMinIndex!==o&&(this._absMinIndex=Number.isFinite(this._absMaxIndex)&&o>this._absMaxIndex?this._absMaxIndex:o),this.pristine||this.checkBOF()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"absMaxIndex",{get:function(){return this._absMaxIndex},set:function(o){this._absMaxIndex!==o&&(this._absMaxIndex=Number.isFinite(this._absMinIndex)&&oo[o.length-1].$index)this.items=(0,h.fX)((0,h.fX)([],(0,h.zs)(o),!1),(0,h.zs)(this.items),!1);else{if(!(o[0].$index>this.items[this.items.length-1].$index))return!1;this.items=(0,h.fX)((0,h.fX)([],(0,h.zs)(this.items),!1),(0,h.zs)(o),!1)}else this.items=(0,h.fX)([],(0,h.zs)(o),!1);return!0},n.prototype.clip=function(){this.items=this.items.filter(function(o){return!o.toRemove})},n.prototype.getIndexToInsert=function(o,t,i){return this.checkCall.insertInBuffer(o,t,i)},n.prototype.shiftExtremum=function(o,t){t?(this.absMinIndex-=o,this.startIndex-=o):this.absMaxIndex+=o,this.startIndex>this.absMaxIndex?this.startIndex=this.absMaxIndex:this.startIndex=this.lastIndex&&r&&(s=-o.length),s&&(this.items.forEach(function(a){return a.updateIndex(a.$index+s)}),this.cache.insertItems(o,t,i,r),this.items=(0,h.fX)([],(0,h.zs)(this.items),!1)),this.shiftExtremum(o.length,r),!0},n.prototype.removeVirtually=function(o,t){for(var i=this.items.length,r=!1,s=function(l){var u=a.items[l],d=o.reduce(function(p,v){return p+(t?u.$indexv?-1:0)},0);r=r||!!d,u.updateIndex(u.$index+d)},a=this,c=t?i-1:0;t?c>=0:cthis.absMaxIndex&&(this.startIndex=this.absMaxIndex),!0},n.prototype.updateItems=function(o,t,i,r){if(!this.size||Number.isNaN(this.firstIndex))return{trackedIndex:NaN,toRemove:[]};for(var s=i,a=r?this.lastIndex:this.firstIndex,c=[],l=r?-1:1,u=this.size-1,d=new Map,p=Array.prototype[r?"unshift":"push"],v=function(G){var E=g.items[G];d.set(E.$index,E);var O=o(E);if(!O||Array.isArray(O)&&!O.length)return E.toRemove=!0,s+=E.$index>=i?r?1:0:r?0:-1,g.shiftExtremum(-1,r),"continue";if(!Array.isArray(O))return E.updateIndex(a),p.call(c,E),a+=l,"continue";E.$indexi&&(s+=r?1-O.length:0);var ie=!0,ut=[];(r?(0,h.fX)([],(0,h.zs)(O),!1).reverse():O).forEach(function(en,Hn){var tn;E.data===en?(i===E.$index&&(s=a+Hn*l),E.updateIndex(a+Hn*l),tn=E,ie=!1):(tn=t(a+Hn*l,en)).toInsert=!0,p.call(ut,tn)}),E.toRemove=ie,p.call.apply(p,(0,h.fX)([c],(0,h.zs)(ut),!1)),a+=l*O.length,O.length>1&&g.shiftExtremum(O.length-1,r)},g=this,C=r?u:0;r?C>=0:C<=u;C+=l)v(C);var T=this.items.filter(function(G){return G.toRemove}),P=Array.from(d).map(function(G){var E=(0,h.zs)(G,2),ie=E[1];return{$index:E[0],size:ie.size,toRemove:ie.toRemove}}).sort(function(G,E){return G.$index-E.$index});return this.items=c,this.cache.updateSubset(P,c,r),this.finiteAbsMinIndex===this.finiteAbsMaxIndex?s=NaN:s>this.finiteAbsMaxIndex?s=this.finiteAbsMaxIndex:s=0;o--)if(!this.items[o].invisible)return o;return-1},n.prototype.getFirstVisibleItem=function(){var o=this.getFirstVisibleItemIndex();return o>=0?this.items[o]:void 0},n.prototype.getLastVisibleItem=function(){var o=this.getLastVisibleItemIndex();return o>=0?this.items[o]:void 0},n.prototype.getEdgeVisibleItem=function(o,t){return o===(t?k.backward:k.forward)?this.getLastVisibleItem():this.getFirstVisibleItem()},n.prototype.getVisibleItemsCount=function(){return this.items.reduce(function(o,t){return o+(t.invisible?0:1)},0)},n.prototype.getSizeByIndex=function(o){return this.cache.getSizeByIndex(o)},n.prototype.checkDefaultSize=function(){return this.cache.recalculateDefaultSize()},n}(),Ro=function(){function n(o){this.total=o,this.isInitial=!1,this.busy=new V(!1)}return Object.defineProperty(n.prototype,"first",{get:function(){return 0===this.count},enumerable:!1,configurable:!0}),n.prototype.done=function(){this.isInitial=!1,this.count++,this.total++,this.busy.set(!1)},n.prototype.start=function(){this.busy.set(!0)},n.prototype.dispose=function(){this.busy.dispose()},n}(),Po=function(){function n(o,t){var i=t?t.count:1,r=t?t.innerLoop.count:0;this.instanceIndex=o,this.innerLoop=new Ro(r),this.interrupter=null,this.busy=new V(!1),this.end(i)}return Object.defineProperty(n.prototype,"loopId",{get:function(){return"".concat(this.instanceIndex,"-").concat(this.count,"-").concat(this.innerLoop.total)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loopIdNext",{get:function(){return"".concat(this.instanceIndex,"-").concat(this.count,"-").concat(this.innerLoop.total+1)},enumerable:!1,configurable:!0}),n.prototype.start=function(o,t){this.isInitial=o,this.initiator=t,this.innerLoop.isInitial=o,this.innerLoop.count=0,this.interrupter=null,this.busy.set(!0)},n.prototype.end=function(o){this.count=o,this.isInitial=!1,this.busy.set(!1)},n.prototype.dispose=function(o){o&&this.busy.dispose(),this.innerLoop.dispose()},n}(),Oo=function(){function n(){this.reset()}return n.prototype.reset=function(){this.startDelta=0,this.before=0},n}(),Eo=function(){function n(){this.reset()}return n.prototype.reset=function(){this.index=NaN,this.indexBuffer=NaN,this.position=NaN},n}(),No=function(){function n(){this.reset()}return n.prototype.reset=function(){this.index=NaN,this.indexBuffer=NaN},n}(),Ao=function(){function n(){this.reset()}return n.prototype.reset=function(){this.index=NaN,this.delta=0},n}(),$o=function(){function n(o){this.directionPriority=o,this.callCount=0,this.positions=new Oo,this.first=new Eo,this.last=new No,this.firstVisible=new Ao,this.reset()}return n.prototype.reset=function(){this._newItemsData=null,this.items=[],this.positions.reset(),this.first.reset(),this.last.reset(),this.firstVisible.reset(),this.hasAnotherPack=!1,this.direction=null,this.cancel=null,this.simulate=!1,this.isCheck=!1,this.doRemove=!1},Object.defineProperty(n.prototype,"newItemsData",{get:function(){return this._newItemsData},set:function(o){this._newItemsData=o,o&&o.length&&this.callCount++},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"shouldFetch",{get:function(){return!!this.count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNewItems",{get:function(){return!(!this._newItemsData||!this._newItemsData.length)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"index",{get:function(){return this.first.index},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return isNaN(this.first.index)||isNaN(this.last.index)?0:this.last.index-this.first.index+1},enumerable:!1,configurable:!0}),n.prototype.shouldCheckPreSizeExpectation=function(o){if(this.directionPriority===k.backward)return!1;var t=this.items[this.items.length-1];return t&&t.$index0},n}(),Vo=function(){function n(){this.callCount=0,this.reset()}return Object.defineProperty(n.prototype,"force",{get:function(){return this.forceForward||this.forceBackward},enumerable:!1,configurable:!0}),n.prototype.reset=function(o){this.doClip=!1,o||(this.forceForward=!1,this.forceBackward=!1)},n}(),jo=function(){function n(){this.reset()}return Object.defineProperty(n.prototype,"noSize",{get:function(){return this.sizeBefore===this.sizeAfter},enumerable:!1,configurable:!0}),n.prototype.reset=function(){this.sizeBefore=0,this.sizeAfter=0,this.positionBefore=0,this.cancel=null},n}(),Bo=function(){function n(){this.reset()}return n.prototype.reset=function(){this.previous=null,this.current=null,this.syntheticPosition=null,this.syntheticFulfill=!1,this.positionBeforeAsync=null,this.positionBeforeAdjust=null,this.positionAfterAdjust=null,this.stop()},n.prototype.stop=function(){this.scrollTimer&&(clearTimeout(this.scrollTimer),this.scrollTimer=null),this.cancelAnimation&&(this.cancelAnimation(),this.cancelAnimation=null)},n.prototype.hasPositionChanged=function(o){var t=this.positionBeforeAdjust,i=this.positionAfterAdjust;return null===t||t!==o||null===i||i!==o},n}(),Go=function(){function n(o,t,i){this.packageInfo=o,this.settings=t,this.initTime=Number(new Date),this.paused=new V(!1),this.cycle=new Po(this.settings.instanceIndex,i?i.cycle:void 0),this.fetch=new $o(t.directionPriority),this.clip=new Vo,this.render=new jo,this.scroll=new Bo}return Object.defineProperty(n.prototype,"time",{get:function(){return Number(new Date)-this.initTime},enumerable:!1,configurable:!0}),n.prototype.startWorkflowCycle=function(o,t){this.cycle.start(o,t)},n.prototype.endWorkflowCycle=function(o){this.cycle.end(o)},n.prototype.startInnerLoop=function(){var o=this,t=o.cycle,i=o.scroll,r=o.fetch,s=o.render,a=o.clip;return t.innerLoop.start(),i.positionBeforeAsync=null,r.simulate||r.reset(),a.reset(a.force),s.reset(),(0,h.Cl)({},t.innerLoop.first?{process:t.initiator,doRender:r.simulate&&r.items.length>0}:{})},n.prototype.endInnerLoop=function(){var o=this,t=o.fetch,i=o.clip,r=o.render,s=o.cycle;t.stopSimulate(),i.reset(!0),t.cancel&&(t.cancel(),t.cancel=null),r.cancel&&(r.cancel(),r.cancel=null),s.innerLoop.done()},n.prototype.dispose=function(){this.scroll.stop(),this.cycle.dispose(),this.paused.dispose(),this.endInnerLoop()},n}(),kn=Ne(),Ho=kn.filter(function(n){return!!n.allowedWhenPaused}).map(function(n){return n.name}),Sn=function(n,o){return!!n&&"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,o)},oi=function(n,o,t){var i=o;if(!Sn(o,"items")){var r=Array.isArray(o)?o:[o];i=n?{items:r,bof:t}:{items:r,eof:t}}return i},Lo=function(){function n(o,t,i){var r=this;this.source={},this.box={},this.demand={},this.setFirstOrLastVisible=function(u){},this.getWorkflow=t,this.logger=i,this.relax$=null,this.relaxRun=null,this.reloadCounter=0;var s=o?.id||-1,a=o&&Me.get(o.id)||{};ze_setBlock(!0,s);var c=o?kn.map(function(u){var d=o[u.name];if(o.augmented){var p=a[u.name];p&&(d=p.default)}return(0,h.Cl)((0,h.Cl)({},u),{value:d})}):Ne();Object.entries(a).forEach(function(u){var d=(0,h.zs)(u,2),p=d[0],v=d[1],g=c.find(function(C){return C.name===p});g&&v&&(g.value=v.default)}),c.filter(function(u){return u.type===X.Scalar&&u.permanent}).forEach(function(u){var p=u.value;return Object.defineProperty(r,u.name,{configurable:!0,get:function(){return p}})}),c.filter(function(u){return u.type===X.Reactive}).forEach(function(u){var d=u.name;r.source[d]=u.value,Object.defineProperty(r,d,{configurable:!0,get:function(){return r.source[d]}})});var l=function(u){ze_setBox(u,s)&&([D.firstVisible,D.firstVisible$].some(function(d){return d===u.name})?r.setFirstOrLastVisible({first:!0}):[D.lastVisible,D.lastVisible$].some(function(d){return d===u.name})&&r.setFirstOrLastVisible({last:!0}))};c.filter(function(u){return u.type===X.Scalar&&!!u.reactive}).forEach(function(u){var d=u.name,v=u.reactive;r.box[d]=u.value,Object.defineProperty(r,d,{configurable:!0,set:function(g){if(g!==r.box[d]){r.box[d]=g,r.source[v].set(g);var C=a[v];C&&C.emit(C.source,g)}},get:function(){return l(u),r.box[d]}})}),c.filter(function(u){return u.type===X.Scalar&&u.onDemand}).forEach(function(u){var d=u.name;r.demand[d]=u.value,Object.defineProperty(r,d,{configurable:!0,get:function(){return r.demand[d]}})}),o&&(c.forEach(function(u){var d=u.name,p=u.type,v=u.permanent,g=r[d];p===X.Function?g=g.bind(r):p===X.WorkflowRunner?g=r.getWorkflowRunnerMethod(g,d):p===X.Reactive&&a[d]?g=o[d]:d===D.augmented&&(g=!0);var C=!v&&p===X.Scalar;Object.defineProperty(o,d,{configurable:!0,get:function(){return l(u),C?r[d]:g}})}),this.externalContext=o,ze_setBlock(!1,s))}return Object.defineProperty(n.prototype,"workflow",{get:function(){return this.getWorkflow()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"reloadCount",{get:function(){return this.reloadCounter},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"reloadId",{get:function(){return this.id+"."+this.reloadCounter},enumerable:!1,configurable:!0}),n.prototype.getPromisifiedMethod=function(o,t){var i=this;return new Promise(function(r){i.relax$&&i.relax$.once(function(s){return r(s)}),o.apply(i,t)})},n.prototype.getWorkflowRunnerMethod=function(o,t){var i=this;return function(){for(var r,s,a,c,l=[],u=0;uthis.state()[o])}set(o,t){this.state.update(i=>({...i,[o]:t}))}setState(o){this.state.update(t=>({...t,...o}))}}var j=f(1413),Ht=f(5558),or=f(1584),ue=f(6354),Xt=f(3294),si=f(4572),rr=f(3386),ai=f(9172),Lt=f(4668),et=f(9894);let Tn=class nn extends ir{constructor(o){super(),this.zone=o,this.onScrollEvent$=new j.B,this.onToggleItem$=new j.B,this.onScrollPosition$=new j.B,this.onScrollerSize$=new j.B,this.onViewportSize$=new j.B,this.set("isScrolling",!1),this.set("toggledItems",new Set),this.set("isAtTop",!0),this.set("isAtBottom",!0),this.onScrollEvent$.pipe((0,rr.c)(200,void 0,{leading:!0,trailing:!1}),(0,Ht.n)(()=>(0,or.O)(300).pipe((0,ue.T)(()=>!1),(0,ai.Z)(!0))),(0,Xt.F)(),(0,Lt.t)(1),(0,et.s)(this)).subscribe(t=>{this.zone.run(()=>{this.set("isScrolling",t)})}),(0,si.z)([this.onViewportSize$,this.onScrollerSize$,this.onScrollPosition$]).pipe((0,Xt.F)(([t,i,r],[s,a,c])=>t===s&&i===a&&r===c),(0,Lt.t)(1),(0,et.s)(this)).subscribe(([t,i,r])=>{const s=r<=0,a=r+t>=i;this.zone.run(()=>{this.set("isAtTop",s),this.set("isAtBottom",a)})}),this.onToggleItem$.pipe((0,et.s)(this)).subscribe(t=>{this.zone.run(()=>{const i=this.state().toggledItems;!0===t.showDetails?i.has(t.id)||(i.add(t.id),this.set("toggledItems",i)):i.has(t.id)&&(i.delete(t.id),this.set("toggledItems",i))})})}static#e=this.\u0275fac=function(t){return new(t||nn)(e.KVO(e.SKi))};static#t=this.\u0275prov=e.jDH({token:nn,factory:nn.\u0275fac,providedIn:"any"})};Tn=(0,h.Cg)([(0,et.d)()],Tn);var ar=f(1985),Mn=f(7786),Dt=f(3993),Be=f(5964),cr=f(6697),tt=f(7673),lr=f(9974),ci=f(4360),ur=f(8750),dr=f(5343),z=f(177),fr=f(1862),hr=f(6936),vr=f(6912),mr=f(996),gr=f(8920),_r=f(4415),yr=f(1209),Cr=f(2839),br=f(8134),xr=f(7051),Yt=f(4917),Ut=f(5703),he=f(5103),nt=f(7391),it=f(7169),ot=f(4126);let zr=(()=>{class n{constructor(t){this.scrollerState=t,this.activity=e.hFB.required({alias:"cvcFlagEntityActivity"}),this.$scroller=t.state.asReadonly()}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(lt))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-flag-entity-activity-details"]],inputs:{activity:[1,"cvcFlagEntityActivity","activity"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"comment-container"],[3,"commentBodySegments"]],template:function(i,r){1&i&&(e.j41(0,"div",0),e.nrm(1,"cvc-comment-body",1),e.k0s()),2&i&&(e.R7$(),e.Y8G("commentBodySegments",r.activity().parsedNote))},dependencies:[z.MD,it.W,ot.p],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}"],changeDetection:0})}return n})(),kr=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcCommentActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-comment-activity-details"]],inputs:{activity:[1,"cvcCommentActivity","activity"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"comment-container"],[3,"commentBodySegments"]],template:function(i,r){1&i&&(e.j41(0,"div",0),e.nrm(1,"cvc-comment-body",1),e.k0s()),2&i&&(e.R7$(),e.Y8G("commentBodySegments",r.activity().comment.parsedComment))},dependencies:[z.MD,it.W,ot.p],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}"],changeDetection:0})}return n})();var Sr=f(152),B=f(9417),Dn=f(7556),Se=f(2e3),de=f(7529),li=f(7481),Ce=f(5699),Fn=f(2033),Tr=f(345);let Mr=(()=>{class n{constructor(t){this.sanitizer=t}transform(t){return this.sanitizer.bypassSecurityTrustHtml(t)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(Tr.up,16))};static#t=this.\u0275pipe=e.EJ8({name:"sanitizeHtml",type:n,pure:!0})}return n})();const Dr=(n,o)=>o.id,ui=()=>[0,0],Ge=n=>({$implicit:n});function Fr(n,o){if(1&n){const t=e.RV6();e.j41(0,"span",11),e.EFF(1," Details "),e.k0s(),e.j41(2,"nz-switch",12),e.mxI("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.DH7(s.showDiffs,r)||(s.showDiffs=r),e.Njj(r)}),e.k0s()}if(2&n){const t=e.XpG();e.R7$(2),e.R50("ngModel",t.showDiffs)}}function Ir(n,o){1&n&&e.eu8(0)}function wr(n,o){1&n&&e.eu8(0)}function Rr(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",15),e.SS7(1),e.DNE(2,wr,1,0,"ng-container",14),e.k0s()),2&n){const t=e.XpG(2),i=e.sdS(18),r=t.diffValue.addedObjects;e.R7$(2),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(2,Ge,r))}}function Pr(n,o){1&n&&e.eu8(0)}function Or(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",16),e.SS7(1),e.DNE(2,Pr,1,0,"ng-container",14),e.k0s()),2&n){const t=e.XpG(2),i=e.sdS(18),r=t.diffValue.removedObjects;e.R7$(2),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(2,Ge,r))}}function Er(n,o){1&n&&e.eu8(0)}function Nr(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",17),e.SS7(1),e.DNE(2,Er,1,0,"ng-container",14),e.k0s()),2&n){const t=e.XpG(2),i=e.sdS(18),r=t.diffValue.keptObjects;e.R7$(2),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(2,Ge,r))}}function Ar(n,o){1&n&&e.eu8(0)}function $r(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",13),e.SS7(1),e.DNE(2,Ir,1,0,"ng-container",14),e.k0s(),e.DNE(3,Rr,3,4,"nz-descriptions-item",15)(4,Or,3,4,"nz-descriptions-item",16)(5,Nr,3,4,"nz-descriptions-item",17),e.j41(6,"nz-descriptions-item",18),e.SS7(7),e.DNE(8,Ar,1,0,"ng-container",14),e.k0s()),2&n){const t=e.XpG(),i=e.sdS(18),r=t.diffValue.currentObjects;e.R7$(2),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(7,Ge,r)),e.R7$(),e.vxM(t.showDiffs()&&t.diffValue.addedObjects.length>0?3:-1),e.R7$(),e.vxM(t.showDiffs()&&t.diffValue.removedObjects.length>0?4:-1),e.R7$(),e.vxM(t.showDiffs()&&t.diffValue.keptObjects.length>0?5:-1);const s=t.diffValue.suggestedObjects;e.R7$(3),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(9,Ge,s))}}function Vr(n,o){1&n&&e.eu8(0)}function jr(n,o){1&n&&e.eu8(0)}function Br(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",13),e.DNE(1,Vr,1,0,"ng-container",14),e.k0s(),e.j41(2,"nz-descriptions-item",18),e.DNE(3,jr,1,0,"ng-container",14),e.k0s()),2&n){const t=e.XpG(),i=e.sdS(16);e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(4,Ge,t.diffValue.left)),e.R7$(2),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(6,Ge,t.diffValue.right))}}function Gr(n,o){1&n&&(e.nrm(0,"div",19),e.nI1(1,"sanitizeHtml")),2&n&&e.Y8G("innerHtml",e.bMT(1,1,o.$implicit),e.npT)}function Hr(n,o){if(1&n&&(e.j41(0,"li")(1,"nz-tag"),e.EFF(2),e.k0s()()),2&n){const t=o.$implicit;e.R7$(2),e.JRh(t.displayName)}}function Xr(n,o){if(1&n&&(e.j41(0,"ul",20),e.Z7z(1,Hr,3,1,"li",null,Dr),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Dyx(t)}}function Lr(n,o){1&n&&e.nrm(0,"cvc-empty-value",21)}function Yr(n,o){1&n&&e.DNE(0,Xr,3,0,"ul",20)(1,Lr,1,0,"cvc-empty-value",21),2&n&&e.vxM(o.$implicit.length>0?0:1)}let In=(()=>{class n{constructor(){this.revision=e.hFB.required({alias:"cvcActivityRevision"}),this.title=(0,e.EWP)(()=>{const t=this.revision();return`${t.linkoutData.name} ${t.name} `}),this.showDiffs=(0,e.vPA)(!1)}get diffValue(){const t=this.revision().linkoutData.diffValue,i=t.__typename;if("ObjectFieldDiff"===i)return t;if("ScalarFieldDiff"===i)return t;throw new Error(`Unsupported diff type: ${i}`)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-activity-revision"]],inputs:{revision:[1,"cvcActivityRevision","revision"]},standalone:!0,features:[e.aNF],decls:19,vars:11,consts:[["diffScalar",""],["diffObjects",""],[1,"revision-container"],[1,"title-row",3,"nzGutter"],["nzFlex","auto",1,"revision-title"],[1,"name"],[1,"id"],["nzFlex","100px",1,"title-extra"],[1,"details-row",3,"nzGutter"],[3,"nzSpan"],["nzLayout","vertical",3,"nzBordered","nzSize"],["nz-typography","","nzType","secondary"],["nzSize","small",3,"ngModelChange","ngModel"],["nzTitle","Current"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzTitle","Added"],["nzTitle","Removed"],["nzTitle","Kept"],["nzTitle","Suggested"],[1,"diff-container",3,"innerHtml"],[1,"object-list"],["cvcEmptyCategory","unspecified"]],template:function(i,r){if(1&i&&(e.SS7(0),e.j41(1,"div",2)(2,"nz-row",3)(3,"nz-col",4)(4,"span",5),e.EFF(5),e.k0s(),e.j41(6,"span",6),e.EFF(7),e.k0s()(),e.j41(8,"nz-col",7),e.DNE(9,Fr,3,1),e.k0s()(),e.j41(10,"nz-row",8)(11,"nz-col",9)(12,"nz-descriptions",10),e.DNE(13,$r,9,11)(14,Br,4,8),e.k0s()()()(),e.DNE(15,Gr,2,3,"ng-template",null,0,e.C5r)(17,Yr,2,1,"ng-template",null,1,e.C5r)),2&i){let s;const a=r.revision().linkoutData;e.R7$(2),e.Y8G("nzGutter",e.lJ4(9,ui)),e.R7$(3),e.JRh(a.name),e.R7$(2),e.SpI(" (",r.revision().name,")"),e.R7$(2),e.vxM("ObjectFieldDiff"===r.diffValue.__typename?9:-1),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,ui)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzBordered",!0)("nzSize","small"),e.R7$(),e.vxM("ObjectFieldDiff"===(s=r.diffValue.__typename)?13:"ScalarFieldDiff"===s?14:-1)}},dependencies:[z.MD,z.T3,B.YN,B.BC,B.vS,nt.kT,nt.Di,li.$,li.u,de.f3,de.Uq,de.e,Se.WF,Se.xA,Se.gr,Ce.T,Ce.s,Dn.F,Fn.o,Yt.i,Mr],styles:[".title-row[_ngcontent-%COMP%]{flex-wrap:nowrap}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .ant-descriptions-item-label{padding:2px 4px!important;font-weight:500!important;font-size:12px!important;color:#00000073}.revision-container[_ngcontent-%COMP%]{margin-bottom:4px}.revision-title[_ngcontent-%COMP%]{font-size:14px}.revision-title[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;color:#000000d9}.revision-title[_ngcontent-%COMP%] .id[_ngcontent-%COMP%]{font-weight:500;color:#00000073}.title-extra[_ngcontent-%COMP%]{text-align:right}pre[_ngcontent-%COMP%]{font-size:6px}.object-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:none}.object-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:2px 0}.diff-container[_ngcontent-%COMP%] .diff{overflow:auto;width:100%}.diff-container[_ngcontent-%COMP%] .diff ul{list-style-type:none;margin:0;padding:0}.diff-container[_ngcontent-%COMP%] .diff .background{padding:4px 8px}.diff-container[_ngcontent-%COMP%] .diff.insertions .background{background:#f6ffed;color:#237804}.diff-container[_ngcontent-%COMP%] .diff.deletions .background{background:#fff1f0;color:#a8071a}.diff-container[_ngcontent-%COMP%] .diff.suggested .background{background:#f0f5ff;color:#10239e}.diff-container[_ngcontent-%COMP%] .diff.original .background{background:#f0f5ff;color:#10239e}.diff-container[_ngcontent-%COMP%] .diff del, .diff-container[_ngcontent-%COMP%] .diff ins{text-decoration:none}.diff-container[_ngcontent-%COMP%] .diff del strong{font-weight:400;background:#fcc}.diff-container[_ngcontent-%COMP%] .diff ins strong{font-weight:400;background:#9f9}.diff-container[_ngcontent-%COMP%] .diff .del{font-weight:400;background:#fee;color:#b00}.diff-container[_ngcontent-%COMP%] .diff .ins{font-weight:400;background:#dfd;color:#080}"],changeDetection:0})}return n})();const Ur=(n,o)=>o.id;function Wr(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.text," ")}}function Qr(n,o){if(1&n&&(e.j41(0,"div",0),e.DNE(1,Wr,1,1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.vxM("CommentTextSegment"==t.__typename?1:-1)}}function Zr(n,o){1&n&&e.nrm(0,"cvc-activity-revision",2),2&n&&e.Y8G("cvcActivityRevision",o.$implicit)}let Kr=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcAcceptRevisionActivity"}),this.revisions=(0,e.EWP)(()=>this.activity().revisions)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-accept-revisions-activity-details"]],inputs:{activity:[1,"cvcAcceptRevisionActivity","activity"]},standalone:!0,features:[e.aNF],decls:5,vars:0,consts:[[1,"comment-container"],[1,"revisions-container"],[3,"cvcActivityRevision"]],template:function(i,r){1&i&&(e.Z7z(0,Qr,2,1,"div",0,e.fX1),e.j41(2,"div",1),e.Z7z(3,Zr,1,1,"cvc-activity-revision",2,Ur),e.k0s()),2&i&&(e.Dyx(r.activity().parsedNote),e.R7$(3),e.Dyx(r.revisions()))},dependencies:[z.MD,In],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}.revisions-container[_ngcontent-%COMP%]{margin:8px}"],changeDetection:0})}return n})(),Jr=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcCreateMpActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-create-mp-activity-details"]],inputs:{activity:[1,"cvcCreateMpActivity","activity"]},standalone:!0,features:[e.aNF],decls:3,vars:3,template:function(i,r){1&i&&(e.j41(0,"pre"),e.EFF(1),e.nI1(2,"json"),e.k0s()),2&i&&(e.R7$(),e.JRh(e.bMT(2,1,r.activity())))},dependencies:[z.MD,z.TG],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})(),qr=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcCreateVariantActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-create-variant-activity-details"]],inputs:{activity:[1,"cvcCreateVariantActivity","activity"]},standalone:!0,features:[e.aNF],decls:3,vars:3,template:function(i,r){1&i&&(e.j41(0,"pre"),e.EFF(1),e.nI1(2,"json"),e.k0s()),2&i&&(e.R7$(),e.JRh(e.bMT(2,1,r.activity())))},dependencies:[z.TG],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})();var He=f(4608),Ft=f(9199);let es=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcDeprecateMpActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-deprecate-mp-activity-details"]],inputs:{activity:[1,"cvcDeprecateMpActivity","activity"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"comment-container"],[3,"commentBodySegments"]],template:function(i,r){1&i&&(e.j41(0,"div",0),e.nrm(1,"cvc-comment-body",1),e.k0s()),2&i&&(e.R7$(),e.Y8G("commentBodySegments",r.activity().parsedNote))},dependencies:[it.W,ot.p],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}"],changeDetection:0})}return n})();function ts(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.text," ")}}function ns(n,o){if(1&n&&(e.j41(0,"div",0),e.DNE(1,ts,1,1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.vxM("CommentTextSegment"==t.__typename?1:-1)}}let is=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcDeprecateVariantActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-deprecate-variant-activity-details"]],inputs:{activity:[1,"cvcDeprecateVariantActivity","activity"]},standalone:!0,features:[e.aNF],decls:2,vars:0,consts:[[1,"comment-container"]],template:function(i,r){1&i&&e.Z7z(0,ns,2,1,"div",0,e.fX1),2&i&&e.Dyx(r.activity().parsedNote)},styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}"],changeDetection:0})}return n})(),os=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcModerateAssertionActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-moderate-assertion-activity-details"]],inputs:{activity:[1,"cvcModerateAssertionActivity","activity"]},standalone:!0,features:[e.aNF],decls:3,vars:3,template:function(i,r){1&i&&(e.j41(0,"pre"),e.EFF(1),e.nI1(2,"json"),e.k0s()),2&i&&(e.R7$(),e.JRh(e.bMT(2,1,r.activity())))},dependencies:[z.TG],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})(),rs=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcModerateEvidenceActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-moderate-evidence-activity-details"]],inputs:{activity:[1,"cvcModerateEvidenceActivity","activity"]},standalone:!0,features:[e.aNF],decls:3,vars:3,template:function(i,r){1&i&&(e.j41(0,"pre"),e.EFF(1),e.nI1(2,"json"),e.k0s()),2&i&&(e.R7$(),e.JRh(e.bMT(2,1,r.activity())))},dependencies:[z.TG],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();const ss=(n,o)=>o.id;function as(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.text," ")}}function cs(n,o){if(1&n&&(e.j41(0,"div",0),e.DNE(1,as,1,1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.vxM("CommentTextSegment"==t.__typename?1:-1)}}function ls(n,o){1&n&&e.nrm(0,"cvc-activity-revision",2),2&n&&e.Y8G("cvcActivityRevision",o.$implicit)}let us=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcRejectRevisionsActivity"}),this.revisions=(0,e.EWP)(()=>this.activity().revisions)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-reject-revisions-activity-details"]],inputs:{activity:[1,"cvcRejectRevisionsActivity","activity"]},standalone:!0,features:[e.aNF],decls:5,vars:0,consts:[[1,"comment-container"],[1,"revisions-container"],[3,"cvcActivityRevision"]],template:function(i,r){1&i&&(e.Z7z(0,cs,2,1,"div",0,e.fX1),e.j41(2,"div",1),e.Z7z(3,ls,1,1,"cvc-activity-revision",2,ss),e.k0s()),2&i&&(e.Dyx(r.activity().parsedNote),e.R7$(3),e.Dyx(r.revisions()))},dependencies:[In],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}.revisions-container[_ngcontent-%COMP%]{margin:8px}"],changeDetection:0})}return n})(),ds=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcResolveFlagActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-resolve-flag-activity-details"]],inputs:{activity:[1,"cvcResolveFlagActivity","activity"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"comment-container"],[3,"commentBodySegments"]],template:function(i,r){1&i&&(e.j41(0,"div",0),e.nrm(1,"cvc-comment-body",1),e.k0s()),2&i&&(e.R7$(),e.Y8G("commentBodySegments",r.activity().parsedNote))},dependencies:[it.W,ot.p],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}"],changeDetection:0})}return n})(),ps=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcSubmitAssertionActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-submit-assertion-activity-details"]],inputs:{activity:[1,"cvcSubmitAssertionActivity","activity"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"comment-container"],[3,"commentBodySegments"]],template:function(i,r){1&i&&(e.j41(0,"div",0),e.nrm(1,"cvc-comment-body",1),e.k0s()),2&i&&(e.R7$(),e.Y8G("commentBodySegments",r.activity().parsedNote))},dependencies:[it.W,ot.p],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}"],changeDetection:0})}return n})();const fs=(n,o)=>o.id;function hs(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.text," ")}}function vs(n,o){if(1&n&&(e.j41(0,"div",0),e.DNE(1,hs,1,1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.vxM("CommentTextSegment"==t.__typename?1:-1)}}function ms(n,o){1&n&&e.nrm(0,"cvc-activity-revision",2),2&n&&e.Y8G("cvcActivityRevision",o.$implicit)}let gs=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcSuggestRevisionSetActivity"}),this.revisions=(0,e.EWP)(()=>this.activity().revisions)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-suggest-revision-set-activity-details"]],inputs:{activity:[1,"cvcSuggestRevisionSetActivity","activity"]},standalone:!0,features:[e.aNF],decls:5,vars:0,consts:[[1,"comment-container"],[1,"revisions-container"],[3,"cvcActivityRevision"]],template:function(i,r){1&i&&(e.Z7z(0,vs,2,1,"div",0,e.fX1),e.j41(2,"div",1),e.Z7z(3,ms,1,1,"cvc-activity-revision",2,fs),e.k0s()),2&i&&(e.Dyx(r.activity().parsedNote),e.R7$(3),e.Dyx(r.revisions()))},dependencies:[In],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}.revisions-container[_ngcontent-%COMP%]{margin:8px}"],changeDetection:0})}return n})();function _s(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.text," ")}}function ys(n,o){if(1&n&&(e.j41(0,"div",0),e.DNE(1,_s,1,1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.vxM("CommentTextSegment"==t.__typename?1:-1)}}function Cs(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.activity().sourceSuggestion.status)}}function bs(n,o){1&n&&e.nrm(0,"cvc-empty-value",4)}function xs(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.activity().sourceSuggestion.source.name)}}function zs(n,o){1&n&&e.nrm(0,"cvc-empty-value",4)}function ks(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.activity().sourceSuggestion.molecularProfile.name)}}function Ss(n,o){1&n&&e.nrm(0,"cvc-empty-value",4)}function Ts(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.activity().sourceSuggestion.disease.name)}}function Ms(n,o){1&n&&e.nrm(0,"cvc-empty-value",4)}let Ds=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcSuggestSourceActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-suggest-source-activity-details"]],inputs:{activity:[1,"cvcSuggestSourceActivity","activity"]},standalone:!0,features:[e.aNF],decls:16,vars:5,consts:[[1,"comment-container"],[1,"fields-container"],["nzBordered","","nzLayout","vertical",3,"nzSize"],["nzTitle","Status"],["cvcEmptyCategory","unspecified"],["nzTitle","Source"],["nzTitle","Molecular Profile"],["nzTitle","Disease"]],template:function(i,r){if(1&i&&(e.Z7z(0,ys,2,1,"div",0,e.fX1),e.j41(2,"div",1)(3,"nz-descriptions",2)(4,"nz-descriptions-item",3),e.DNE(5,Cs,2,1,"nz-tag")(6,bs,1,0,"cvc-empty-value",4),e.k0s(),e.j41(7,"nz-descriptions-item",5),e.DNE(8,xs,2,1,"nz-tag")(9,zs,1,0,"cvc-empty-value",4),e.k0s(),e.j41(10,"nz-descriptions-item",6),e.DNE(11,ks,2,1,"nz-tag")(12,Ss,1,0,"cvc-empty-value",4),e.k0s(),e.j41(13,"nz-descriptions-item",7),e.DNE(14,Ts,2,1,"nz-tag")(15,Ms,1,0,"cvc-empty-value",4),e.k0s()()()),2&i){let s,a,c;e.Dyx(r.activity().parsedNote),e.R7$(3),e.Y8G("nzSize","small"),e.R7$(2),e.vxM(r.activity().sourceSuggestion.status?5:6),e.R7$(3),e.vxM(null!=(s=r.activity().sourceSuggestion.source)&&s.name?8:9),e.R7$(3),e.vxM(null!=(a=r.activity().sourceSuggestion.molecularProfile)&&a.name?11:12),e.R7$(3),e.vxM(null!=(c=r.activity().sourceSuggestion.disease)&&c.name?14:15)}},dependencies:[Se.WF,Se.xA,Se.gr,Ce.T,Ce.s,Dn.F,Fn.o],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .ant-descriptions-item-label{padding:2px 4px!important;font-weight:500!important;font-size:12px!important;color:#00000073}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}.fields-container[_ngcontent-%COMP%]{margin:8px}"],changeDetection:0})}return n})();function Fs(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.text," ")}}function Is(n,o){if(1&n&&(e.j41(0,"div",0),e.DNE(1,Fs,1,1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.vxM("CommentTextSegment"==t.__typename?1:-1)}}function ws(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.activity().sourceSuggestion.status)}}function Rs(n,o){1&n&&e.nrm(0,"cvc-empty-value",4)}function Ps(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.activity().sourceSuggestion.source.name)}}function Os(n,o){1&n&&e.nrm(0,"cvc-empty-value",4)}function Es(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.activity().sourceSuggestion.molecularProfile.name)}}function Ns(n,o){1&n&&e.nrm(0,"cvc-empty-value",4)}function As(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.activity().sourceSuggestion.disease.name)}}function $s(n,o){1&n&&e.nrm(0,"cvc-empty-value",4)}let Vs=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcUpdateSourceSuggestionStatusActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-update-source-suggestion-activity-details"]],inputs:{activity:[1,"cvcUpdateSourceSuggestionStatusActivity","activity"]},standalone:!0,features:[e.aNF],decls:16,vars:5,consts:[[1,"comment-container"],[1,"fields-container"],["nzBordered","","nzLayout","vertical",3,"nzSize"],["nzTitle","Status"],["cvcEmptyCategory","unspecified"],["nzTitle","Source"],["nzTitle","Molecular Profile"],["nzTitle","Disease"]],template:function(i,r){if(1&i&&(e.Z7z(0,Is,2,1,"div",0,e.fX1),e.j41(2,"div",1)(3,"nz-descriptions",2)(4,"nz-descriptions-item",3),e.DNE(5,ws,2,1,"nz-tag")(6,Rs,1,0,"cvc-empty-value",4),e.k0s(),e.j41(7,"nz-descriptions-item",5),e.DNE(8,Ps,2,1,"nz-tag")(9,Os,1,0,"cvc-empty-value",4),e.k0s(),e.j41(10,"nz-descriptions-item",6),e.DNE(11,Es,2,1,"nz-tag")(12,Ns,1,0,"cvc-empty-value",4),e.k0s(),e.j41(13,"nz-descriptions-item",7),e.DNE(14,As,2,1,"nz-tag")(15,$s,1,0,"cvc-empty-value",4),e.k0s()()()),2&i){let s,a,c;e.Dyx(r.activity().parsedNote),e.R7$(3),e.Y8G("nzSize","small"),e.R7$(2),e.vxM(r.activity().sourceSuggestion.status?5:6),e.R7$(3),e.vxM(null!=(s=r.activity().sourceSuggestion.source)&&s.name?8:9),e.R7$(3),e.vxM(null!=(a=r.activity().sourceSuggestion.molecularProfile)&&a.name?11:12),e.R7$(3),e.vxM(null!=(c=r.activity().sourceSuggestion.disease)&&c.name?14:15)}},dependencies:[Se.WF,Se.xA,Se.gr,Ce.T,Ce.s,Dn.F,Fn.o],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .ant-descriptions-item-label{padding:2px 4px!important;font-weight:500!important;font-size:12px!important;color:#00000073}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}.fields-container[_ngcontent-%COMP%]{margin:8px}"],changeDetection:0})}return n})(),js=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcSubmitEvidenceActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-submit-evidence-activity-details"]],inputs:{activity:[1,"cvcSubmitEvidenceActivity","activity"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"comment-container"],[3,"commentBodySegments"]],template:function(i,r){1&i&&(e.j41(0,"div",0),e.nrm(1,"cvc-comment-body",1),e.k0s()),2&i&&(e.R7$(),e.Y8G("commentBodySegments",r.activity().parsedNote))},dependencies:[it.W,ot.p],styles:["[_nghost-%COMP%]{display:block}.comment-container[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:4px;padding:8px;margin:8px}"],changeDetection:0})}return n})();var di=f(1912);function be(n,o){const t=!o?.manualCleanup;t&&!o?.injector&&(0,e.Af3)(be);const i=t?o?.injector?.get(e.abz)??(0,e.WQX)(e.abz):null,r=function Hs(n=Object.is){return(o,t)=>1===o.kind&&1===t.kind&&n(o.value,t.value)}(o?.equal);let s;s=(0,e.vPA)(o?.requireSync?{kind:0}:{kind:1,value:o?.initialValue},{equal:r});const a=n.subscribe({next:c=>s.set({kind:1,value:c}),error:c=>{if(o?.rejectErrors)throw c;s.set({kind:2,error:c})}});if(o?.requireSync&&0===s().kind)throw new e.wOt(601,!1);return i?.onDestroy(a.unsubscribe.bind(a)),(0,e.EWP)(()=>{const c=s();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new e.wOt(601,!1)}},{equal:o?.equal})}let Xs=(()=>{class n{constructor(){this.activity=e.hFB.required({alias:"cvcDeprecateFeatureActivity"})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-deprecate-feature-activity-details"]],inputs:{activity:[1,"cvcDeprecateFeatureActivity","activity"]},standalone:!0,features:[e.aNF],decls:2,vars:1,template:function(i,r){1&i&&(e.j41(0,"pre"),e.EFF(1),e.k0s()),2&i&&(e.R7$(),e.JRh(r.activity()))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})();const Ls=()=>["100%","100%","100%"],Ys=n=>({rows:3,width:n});function Us(n,o){if(1&n&&e.nrm(0,"cvc-accept-revisions-activity-details",0),2&n){const t=e.XpG();e.Y8G("cvcAcceptRevisionActivity",t)}}function Ws(n,o){if(1&n&&e.nrm(0,"cvc-comment-activity-details",1),2&n){const t=e.XpG();e.Y8G("cvcCommentActivity",t)}}function Qs(n,o){if(1&n&&e.nrm(0,"cvc-create-mp-activity-details",2),2&n){const t=e.XpG();e.Y8G("cvcCreateMpActivity",t)}}function Zs(n,o){if(1&n&&e.nrm(0,"cvc-create-variant-activity-details",3),2&n){const t=e.XpG();e.Y8G("cvcCreateVariantActivity",t)}}function Ks(n,o){if(1&n&&e.nrm(0,"cvc-deprecate-mp-activity-details",4),2&n){const t=e.XpG();e.Y8G("cvcDeprecateMpActivity",t)}}function Js(n,o){if(1&n&&e.nrm(0,"cvc-deprecate-variant-activity-details",5),2&n){const t=e.XpG();e.Y8G("cvcDeprecateVariantActivity",t)}}function qs(n,o){if(1&n&&e.nrm(0,"cvc-deprecate-feature-activity-details",6),2&n){const t=e.XpG();e.Y8G("cvcDeprecateFeatureActivity",t)}}function ea(n,o){if(1&n&&e.nrm(0,"cvc-flag-entity-activity-details",7),2&n){const t=e.XpG();e.Y8G("cvcFlagEntityActivity",t)}}function ta(n,o){if(1&n&&e.nrm(0,"cvc-moderate-assertion-activity-details",8),2&n){const t=e.XpG();e.Y8G("cvcModerateAssertionActivity",t)}}function na(n,o){if(1&n&&e.nrm(0,"cvc-moderate-evidence-activity-details",9),2&n){const t=e.XpG();e.Y8G("cvcModerateEvidenceActivity",t)}}function ia(n,o){if(1&n&&e.nrm(0,"cvc-reject-revisions-activity-details",10),2&n){const t=e.XpG();e.Y8G("cvcRejectRevisionsActivity",t)}}function oa(n,o){if(1&n&&e.nrm(0,"cvc-resolve-flag-activity-details",11),2&n){const t=e.XpG();e.Y8G("cvcResolveFlagActivity",t)}}function ra(n,o){if(1&n&&e.nrm(0,"cvc-submit-assertion-activity-details",12),2&n){const t=e.XpG();e.Y8G("cvcSubmitAssertionActivity",t)}}function sa(n,o){if(1&n&&e.nrm(0,"cvc-submit-evidence-activity-details",13),2&n){const t=e.XpG();e.Y8G("cvcSubmitEvidenceActivity",t)}}function aa(n,o){if(1&n&&e.nrm(0,"cvc-suggest-revision-set-activity-details",14),2&n){const t=e.XpG();e.Y8G("cvcSuggestRevisionSetActivity",t)}}function ca(n,o){if(1&n&&e.nrm(0,"cvc-suggest-source-activity-details",15),2&n){const t=e.XpG();e.Y8G("cvcSuggestSourceActivity",t)}}function la(n,o){if(1&n&&e.nrm(0,"cvc-update-source-suggestion-activity-details",16),2&n){const t=e.XpG();e.Y8G("cvcUpdateSourceSuggestionStatusActivity",t)}}function ua(n,o){if(1&n&&e.DNE(0,Us,1,1,"cvc-accept-revisions-activity-details",0)(1,Ws,1,1,"cvc-comment-activity-details",1)(2,Qs,1,1,"cvc-create-mp-activity-details",2)(3,Zs,1,1,"cvc-create-variant-activity-details",3)(4,Ks,1,1,"cvc-deprecate-mp-activity-details",4)(5,Js,1,1,"cvc-deprecate-variant-activity-details",5)(6,qs,1,1,"cvc-deprecate-feature-activity-details",6)(7,ea,1,1,"cvc-flag-entity-activity-details",7)(8,ta,1,1,"cvc-moderate-assertion-activity-details",8)(9,na,1,1,"cvc-moderate-evidence-activity-details",9)(10,ia,1,1,"cvc-reject-revisions-activity-details",10)(11,oa,1,1,"cvc-resolve-flag-activity-details",11)(12,ra,1,1,"cvc-submit-assertion-activity-details",12)(13,sa,1,1,"cvc-submit-evidence-activity-details",13)(14,aa,1,1,"cvc-suggest-revision-set-activity-details",14)(15,ca,1,1,"cvc-suggest-source-activity-details",15)(16,la,1,1,"cvc-update-source-suggestion-activity-details",16),2&n){let t;e.vxM("AcceptRevisionsActivity"===(t=o.__typename)?0:"CommentActivity"===t?1:"CreateComplexMolecularProfileActivity"===t?2:"CreateVariantActivity"===t?3:"DeprecateComplexMolecularProfileActivity"===t?4:"DeprecateVariantActivity"===t?5:"DeprecateFeatureActivity"===t?6:"FlagEntityActivity"===t?7:"ModerateAssertionActivity"===t?8:"ModerateEvidenceItemActivity"===t?9:"RejectRevisionsActivity"===t?10:"ResolveFlagActivity"===t?11:"SubmitAssertionActivity"===t?12:"SubmitEvidenceItemActivity"===t?13:"SuggestRevisionSetActivity"===t?14:"SuggestSourceActivity"===t?15:"UpdateSourceSuggestionStatusActivity"===t?16:-1)}}function da(n,o){1&n&&e.nrm(0,"nz-skeleton",17),2&n&&e.Y8G("nzActive",!0)("nzTitle",!1)("nzParagraph",e.eq3(4,Ys,e.lJ4(3,Ls)))}function pa(n,o){if(1&n&&e.DNE(0,da,1,6,"nz-skeleton",17),2&n){const t=e.XpG();e.vxM(t.$loading()?0:-1)}}let fa=(()=>{class n{constructor(t,i){this.gql=t,this.scrollerState=i,this.cvcActivityId=e.hFB.required(),this.injector=(0,e.WQX)(e.uvJ)}ngOnInit(){(0,e.N4e)(this.injector,()=>{this.queryRef=this.gql.watch({id:this.cvcActivityId(),requestDetails:!0}),this.result$=this.queryRef.valueChanges,this.$loading=be(this.result$.pipe((0,He.E)("loading"),(0,Be.p)(Ft.kP),(0,Sr.B)(250),(0,ai.Z)(!0)),{requireSync:!0}),this.$activity=be(this.result$.pipe((0,He.E)("data","activity"),(0,Be.p)(Ft.kP)),{initialValue:void 0})})}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(H.nFI),e.rXU(lt))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-activity-feed-item-details"]],inputs:{cvcActivityId:[1,"cvcActivityId"]},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[3,"cvcAcceptRevisionActivity"],[3,"cvcCommentActivity"],[3,"cvcCreateMpActivity"],[3,"cvcCreateVariantActivity"],[3,"cvcDeprecateMpActivity"],[3,"cvcDeprecateVariantActivity"],[3,"cvcDeprecateFeatureActivity"],[3,"cvcFlagEntityActivity"],[3,"cvcModerateAssertionActivity"],[3,"cvcModerateEvidenceActivity"],[3,"cvcRejectRevisionsActivity"],[3,"cvcResolveFlagActivity"],[3,"cvcSubmitAssertionActivity"],[3,"cvcSubmitEvidenceActivity"],[3,"cvcSuggestRevisionSetActivity"],[3,"cvcSuggestSourceActivity"],[3,"cvcUpdateSourceSuggestionStatusActivity"],[3,"nzActive","nzTitle","nzParagraph"]],template:function(i,r){if(1&i&&e.DNE(0,ua,17,1)(1,pa,1,1),2&i){let s;e.vxM((s=r.$activity())?0:1,s)}},dependencies:[z.MD,Yt.i,kr,zr,Kr,Jr,qr,es,is,os,rs,us,ds,ps,gs,Ds,Vs,js,Xs,di.i3,di.Bi],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return n})();var Te=f(9969),ha=f(5245),va=f(7086),ma=f(8139),ga=f(6408),_a=f(6440),ya=f(3245),Ca=f(1417),ba=f(9045),xa=f(3710),za=f(8238),ka=f(9062),Sa=f(5473),Ta=f(959);const Ma=(n,o)=>({show:n,hide:o}),Da=(n,o)=>({$implicit:n,isScrolling:o});function Fa(n,o){if(1&n&&e.nrm(0,"cvc-activity-feed-item-details",5),2&n){const t=e.XpG();e.Y8G("cvcActivityId",t.id)}}function Ia(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){e.eBV(t);const r=e.XpG(3);return e.Njj(r.$showDetails.set(!r.$showDetails()))}),e.nrm(1,"span",12),e.k0s()}}function wa(n,o){if(1&n&&e.nrm(0,"cvc-user-tag",8),2&n){const t=e.XpG(2);e.Y8G("user",t.user)}}function Ra(n,o){1&n&&e.eu8(0)}function Pa(n,o){if(1&n&&e.DNE(0,Ra,1,0,"ng-container",13),2&n){const t=e.XpG(2),i=e.sdS(8),r=e.XpG();e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.l_i(2,Da,t.subject,r.$scroller().isScrolling))}}function Oa(n,o){if(1&n&&(e.j41(0,"div",10)(1,"span",9),e.EFF(2," for "),e.k0s(),e.nrm(3,"cvc-organization-tag",14),e.k0s()),2&n){const t=e.XpG(2),i=e.XpG();e.R7$(3),e.Y8G("org",t.organization)("enablePopover",!i.$scroller().isScrolling)}}function Ea(n,o){if(1&n&&(e.DNE(0,Ia,2,0,"div",6),e.j41(1,"div",7),e.DNE(2,wa,1,1,"cvc-user-tag",8),e.j41(3,"span",9),e.EFF(4),e.k0s(),e.DNE(5,Pa,1,5,"ng-container")(6,Oa,4,2,"div",10),e.k0s()),2&n){const t=e.XpG(),i=e.XpG();e.Y8G("ngIf",!i.simpleActivityTypes.has(t.__typename)),e.R7$(2),e.vxM("USER"!==i.scope().mode?2:-1),e.R7$(2),e.SpI(" ",t.verbiage," "),e.R7$(),e.vxM("SUBJECT"!==i.scope().mode?5:-1),e.R7$(),e.vxM(t.organization&&"ORGANIZATION"!==i.scope().mode?6:-1)}}function Na(n,o){if(1&n&&(e.j41(0,"span",15),e.EFF(1),e.nI1(2,"timeAgo"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,1,t.createdAt)," ")}}function Aa(n,o){if(1&n&&e.nrm(0,"cvc-feature-tag",26),2&n){const t=e.XpG(),r=t.isScrolling;e.Y8G("feature",t.$implicit)("enablePopover",!r)}}function $a(n,o){if(1&n&&e.nrm(0,"cvc-assertion-tag",27),2&n){const t=e.XpG(),r=t.isScrolling;e.Y8G("assertion",t.$implicit)("enablePopover",!r)}}function Va(n,o){if(1&n&&e.nrm(0,"cvc-evidence-tag",28),2&n){const t=e.XpG(),r=t.isScrolling;e.Y8G("evidence",t.$implicit)("enablePopover",!r)}}function ja(n,o){if(1&n&&e.nrm(0,"cvc-feature-variant-tag",29),2&n){const t=e.XpG(),i=t.$implicit,r=t.isScrolling;e.Y8G("variant",i)("feature",i.feature)("truncateLongName",!0)("enablePopover",!r)}}function Ba(n,o){if(1&n&&e.nrm(0,"cvc-feature-variant-tag",29),2&n){const t=e.XpG(),i=t.$implicit,r=t.isScrolling;e.Y8G("variant",i)("feature",i.feature)("truncateLongName",!0)("enablePopover",!r)}}function Ga(n,o){if(1&n&&e.nrm(0,"cvc-revision-tag",30),2&n){const t=e.XpG(),r=t.isScrolling;e.Y8G("revision",t.$implicit)("enablePopover",!r)}}function Ha(n,o){if(1&n&&e.nrm(0,"cvc-variant-group-tag",31),2&n){const t=e.XpG(),r=t.isScrolling;e.Y8G("variantgroup",t.$implicit)("enablePopover",!r)}}function Xa(n,o){if(1&n&&e.nrm(0,"cvc-source-tag",32),2&n){const t=e.XpG(),r=t.isScrolling;e.Y8G("source",t.$implicit)("enablePopover",!r)}}function La(n,o){if(1&n&&e.nrm(0,"cvc-molecular-profile-tag",33),2&n){const t=e.XpG(),r=t.isScrolling;e.Y8G("molecularProfile",t.$implicit)("truncateLongName",!0)("enablePopover",!r)}}function Ya(n,o){if(1&n&&(e.j41(0,"span")(1,"nz-tag"),e.EFF(2),e.k0s()()),2&n){const t=e.XpG().$implicit;e.R7$(2),e.Lme("",t.__typename," ",t.name,"")}}function Ua(n,o){1&n&&(e.qex(0,16),e.DNE(1,Aa,1,2,"cvc-feature-tag",17)(2,$a,1,2,"cvc-assertion-tag",18)(3,Va,1,2,"cvc-evidence-tag",19)(4,ja,1,4,"cvc-feature-variant-tag",20)(5,Ba,1,4,"cvc-feature-variant-tag",20)(6,Ga,1,2,"cvc-revision-tag",21)(7,Ha,1,2,"cvc-variant-group-tag",22)(8,Xa,1,2,"cvc-source-tag",23)(9,La,1,3,"cvc-molecular-profile-tag",24)(10,Ya,3,2,"span",25),e.bVm()),2&n&&(e.Y8G("ngSwitch",o.$implicit.__typename),e.R7$(),e.Y8G("ngSwitchCase","Feature"),e.R7$(),e.Y8G("ngSwitchCase","Assertion"),e.R7$(),e.Y8G("ngSwitchCase","EvidenceItem"),e.R7$(),e.Y8G("ngSwitchCase","GeneVariant"),e.R7$(),e.Y8G("ngSwitchCase","FactorVariant"),e.R7$(),e.Y8G("ngSwitchCase","Revision"),e.R7$(),e.Y8G("ngSwitchCase","VariantGroup"),e.R7$(),e.Y8G("ngSwitchCase","Source"),e.R7$(),e.Y8G("ngSwitchCase","MolecularProfile"))}function Wa(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-card",3)(1,"div",4),e.bIt("@details.done",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onToggleDone$.next(r.$showDetails()))}),e.DNE(2,Fa,1,1,"cvc-activity-feed-item-details",5),e.k0s()(),e.DNE(3,Ea,7,5,"ng-template",null,0,e.C5r)(5,Na,3,3,"ng-template",null,1,e.C5r)(7,Ua,11,10,"ng-template",null,2,e.C5r)}if(2&n){const t=e.sdS(4),i=e.sdS(6),r=e.XpG();e.Y8G("nzTitle",t)("nzExtra",i)("ngClass",e.l_i(5,Ma,r.$showDetails(),!r.$showDetails())),e.R7$(),e.Y8G("@details",r.$showDetails()?"visible":"hidden"),e.R7$(),e.vxM(r.$showDetails()?2:-1)}}let wn=class Xn{constructor(o,t,i,r){this.gql=o,this.element=t,this.injector=i,this.scrollerState=r,this.activity=(0,e.hFB)(void 0,{alias:"cvcActivity"}),this.scope=e.hFB.required({alias:"cvcScope"}),this.simpleActivityTypes=qo,this.$showDetails=(0,e.vPA)(!1),this.onToggleDone$=new j.B,this.onToggleDone$.pipe((0,ha.i)(1),(0,ue.T)(s=>({id:this.activity().id,showDetails:s})),(0,et.s)(this)).subscribe(s=>{this.scrollerState.onToggleItem$.next(s)}),this.$scroller=r.state.asReadonly()}ngOnInit(){const o=this.scrollerState.state().toggledItems.has(this.activity().id);this.$showDetails.set(o)}static#e=this.\u0275fac=function(t){return new(t||Xn)(e.rXU(H.nFI),e.rXU(e.aKT),e.rXU(e.uvJ),e.rXU(lt))};static#t=this.\u0275cmp=e.VBU({type:Xn,selectors:[["cvc-activity-feed-item"]],inputs:{activity:[1,"cvcActivity","activity"],scope:[1,"cvcScope","scope"]},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["itemDescription",""],["itemDate",""],["subject",""],["nzSize","small",3,"nzTitle","nzExtra","ngClass"],[1,"details"],[3,"cvcActivityId"],["class","toggle",3,"click",4,"ngIf"],[1,"description"],[3,"user"],["nz-typography","","nzType","secondary",1,"verbiage"],[1,"organization"],[1,"toggle",3,"click"],["nz-icon","","nzType","caret-right","nzTheme","outline"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"org","enablePopover"],["nz-typography","","nzType","secondary"],[3,"ngSwitch"],[3,"feature","enablePopover",4,"ngSwitchCase"],[3,"assertion","enablePopover",4,"ngSwitchCase"],[3,"evidence","enablePopover",4,"ngSwitchCase"],[3,"variant","feature","truncateLongName","enablePopover",4,"ngSwitchCase"],[3,"revision","enablePopover",4,"ngSwitchCase"],[3,"variantgroup","enablePopover",4,"ngSwitchCase"],["mode","concise",3,"source","enablePopover",4,"ngSwitchCase"],[3,"molecularProfile","truncateLongName","enablePopover",4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"feature","enablePopover"],[3,"assertion","enablePopover"],[3,"evidence","enablePopover"],[3,"variant","feature","truncateLongName","enablePopover"],[3,"revision","enablePopover"],[3,"variantgroup","enablePopover"],["mode","concise",3,"source","enablePopover"],[3,"molecularProfile","truncateLongName","enablePopover"]],template:function(t,i){if(1&t&&e.DNE(0,Wa,9,8),2&t){let r;e.vxM((r=i.activity())?0:-1,r)}},dependencies:[z.MD,z.YU,z.bT,z.T3,z.ux,z.e1,z.fG,Ut.Ti,Ut.cK,nt.kT,nt.Di,he.Y3,he.Dn,Ce.T,Ce.s,de.f3,fa,Yt.i,ma.N,Cr.m,ga.r,gr.U,_a.r,vr.l,ya._,fr.e,Ca.a,hr.G,ba.J,xr.U,_r.O,xa.T,br.l,za.S,yr.k,ka.D,mr.o,Sa.z,va.C,Ta.j],styles:["[_nghost-%COMP%]{padding-top:8px;display:block}[_nghost-%COMP%] nz-card>.ant-card-head{padding-left:0}[_nghost-%COMP%] nz-card .ant-card-head-title{font-weight:450}[_nghost-%COMP%] nz-card>.ant-card-body{padding:0}[_nghost-%COMP%] nz-card.hide .toggle span{transform:rotate(0);transition:transform .2s linear}[_nghost-%COMP%] nz-card.show .toggle span{transform:rotate(90deg);transition:transform .2s linear}.description[_ngcontent-%COMP%]{margin-left:8px;display:inline}.description[_ngcontent-%COMP%] nz-tag{margin-right:0}.description[_ngcontent-%COMP%] .verbiage[_ngcontent-%COMP%]{padding:0 4px}.organization[_ngcontent-%COMP%]{display:inline-block}.toggle[_ngcontent-%COMP%]{display:inline-block;margin-left:8px;padding:0 8px;background-color:#e6f7ff;border:1px solid #bae7ff;border-radius:2px;cursor:pointer}.toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{height:12px;width:12px;color:#096dd9}"],data:{animation:[(0,Te.hZ)("details",[(0,Te.wk)("hidden",(0,Te.iF)({height:0,"overflow-y":"hidden"})),(0,Te.wk)("visible",(0,Te.iF)({height:"*","overflow-y":"hidden"})),(0,Te.kY)("visible <=> hidden",(0,Te.i0)(".25s ease-out")),(0,Te.kY)("hidden <=> visible",(0,Te.i0)(".25s ease-in"))])]},changeDetection:0})};wn=(0,h.Cg)([(0,et.d)()],wn);const qa={beforeToday:function Ka(n){const o=new Date;return o.setHours(0,0,0,0),n.getTime()>=o.getTime()},beforeTomorrow:function Ja(n){const o=new Date;o.setHours(0,0,0,0);const t=new Date(o.getTime()+864e5);return n.getTime()>t.getTime()}};function ec(n){return{activityType:n.activityType.length>0?n.activityType:void 0,organizationId:n.organizationId.length>0?n.organizationId:void 0,subjectType:n.subjectType.length>0?n.subjectType:void 0,userId:n.userId.length>0?n.userId:void 0,occurredAfter:n.occurredAfter?n.occurredAfter.toISOString():void 0,occurredBefore:n.occurredBefore?n.occurredBefore.toISOString():void 0}}function tc(n){const{scope:o,...t}=n;return{...t,mode:o.mode,...o.mode===H.Qt1.Subject?{subject:o.subject}:{},...o.mode===H.Qt1.Organization?{organizationId:[o.organizationId]}:{},...o.mode===H.Qt1.User?{userId:[o.userId]}:{},userId:o.mode===H.Qt1.User?[o.userId]:void 0}}function nc(n){return{...ec(n.filters),...tc(n.settings)}}var ic=f(4412);const oc=["ui-scroll",""],rc=(n,o,t,i)=>({$implicit:n,index:o,odd:t,even:i});function sc(n,o){}function ac(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,sc,0,0,"ng-template",3),e.k0s()),2&n){const t=o.$implicit,i=e.XpG();e.xc7("position",t.invisible?"fixed":null)("left",t.invisible?"-99999px":null),e.BMQ("data-sid",t.$index),e.R7$(),e.Y8G("ngTemplateOutlet",i.template)("ngTemplateOutletContext",e.ziG(7,rc,t.data,t.$index,t.$index%2,!(t.$index%2)))}}var cc={name:"ngx-ui-scroll",version:"3.2.0"};let lc=(()=>{class n{constructor(t,i,r){this.changeDetector=t,this.elementRef=i,this.ngZone=r,this.items=[]}ngOnInit(){this.workflow=this.ngZone.runOutsideAngular(()=>new Qo(Object.assign({consumer:cc,element:this.elementRef.nativeElement,datasource:this.datasource,run:t=>{!t.length&&!this.items.length||this.ngZone.run(()=>{this.items=t,this.changeDetector.detectChanges()})}},this.Routines?{Routines:this.Routines}:{})))}ngOnDestroy(){var t;null===(t=this.workflow)||void 0===t||t.dispose()}}return n.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(e.SKi))},n.\u0275cmp=e.VBU({type:n,selectors:[["","ui-scroll",""]],attrs:oc,decls:3,vars:1,consts:[["data-padding-backward",""],[3,"position","left",4,"ngFor","ngForOf"],["data-padding-forward",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){1&t&&(e.nrm(0,"div",0),e.DNE(1,ac,2,12,"div",1),e.nrm(2,"div",2)),2&t&&(e.R7$(),e.Y8G("ngForOf",i.items))},dependencies:[z.Sq,z.T3],encapsulation:2,changeDetection:0}),n})(),uc=(()=>{class n{constructor(t,i){this.templateRef=t,this.viewContainer=i}set uiScrollOf(t){this.datasource=t}set uiScrollRoutines(t){this.Routines=t}ngOnInit(){const t=this.viewContainer.createComponent(lc);t.instance.datasource=this.datasource,t.instance.template=this.templateRef,t.instance.Routines=this.Routines}}return n.\u0275fac=function(t){return new(t||n)(e.rXU(e.C4Q),e.rXU(e.c1b))},n.\u0275dir=e.FsC({type:n,selectors:[["","uiScroll","","uiScrollOf",""]],inputs:{uiScrollOf:"uiScrollOf",uiScrollRoutines:"uiScrollRoutines"}}),n})(),dc=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[[z.MD]]}),n})();const rt=()=>({source:new j.B,emit:(n,o)=>n.next(o)}),fi=()=>({source:new ic.t(_e),emit:(n,o)=>n.next(o)}),pc=mt(()=>({mock:!1,reactive:{[D.init$]:rt(),[D.isLoading$]:rt(),[D.loopPending$]:rt(),[D.firstVisible$]:fi(),[D.lastVisible$]:fi(),[D.bof$]:rt(),[D.eof$]:rt(),[D.paused$]:rt()}}));var fc=f(2242);function hc(n,o){if(1&n&&(e.j41(0,"span",0),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Lme(" ",t.rows()," of ",e.bMT(2,2,t.total())," loaded ")}}let vc=(()=>{class n{constructor(){this.cvcFeedCounts=(0,e.hFB)(),this.total=(0,e.EWP)(()=>this.cvcFeedCounts()?.total??0),this.unfiltered=(0,e.EWP)(()=>this.cvcFeedCounts()?.unfiltered??0),this.page=(0,e.EWP)(()=>this.cvcFeedCounts()?.page??0),this.rows=(0,e.EWP)(()=>this.cvcFeedCounts()?.rows??0)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-activity-feed-counts"]],inputs:{cvcFeedCounts:[1,"cvcFeedCounts"]},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["nz-typography","","nzType","secondary"]],template:function(i,r){1&i&&e.DNE(0,hc,3,4,"span",0),2&i&&e.vxM(r.rows()>0?0:-1)},dependencies:[z.MD,z.QX,nt.kT,nt.Di],changeDetection:0})}return n})();var st=f(513),hi=f(8927),vi=f(1236),Wt=f(1997),mi=f(2986),Rn=f(6389),Pn=f(5930);const mc=()=>[8,8];function gc(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",3)(1,"nz-row",4)(2,"nz-col",5),e.EFF(3," Include Automated Events "),e.k0s(),e.j41(4,"nz-col",6)(5,"label",7),e.bIt("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.includeAutomatedEvents.set(r))}),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("nzGutter",e.lJ4(2,mc)),e.R7$(4),e.Y8G("ngModel",t.includeAutomatedEvents())}}let _c=(()=>{class n{constructor(){this.cvcSettings=e.hFB.required(),this.cvcScope=e.hFB.required(),this.cvcSettingsChange=new e.bkB,(0,e.QZP)(()=>{this.cvcSettingsChange.emit({...this.cvcSettings(),scope:this.cvcScope(),includeAutomatedEvents:this.includeAutomatedEvents()})})}ngOnInit(){this.includeAutomatedEvents=(0,e.vPA)(this.cvcSettings().includeAutomatedEvents)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-activity-feed-settings"]],inputs:{cvcSettings:[1,"cvcSettings"],cvcScope:[1,"cvcScope"]},outputs:{cvcSettingsChange:"cvcSettingsChange"},standalone:!0,features:[e.aNF],decls:4,vars:2,consts:[["settingsPopover",""],["nz-button","","nz-popover","","nzPopoverTitle","Activity Feed Settings","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],[1,"popover-content"],[3,"nzGutter"],["nzSpan","18",1,"option-key"],["nzSpan","6",1,"option-input"],["nz-checkbox","",3,"ngModelChange","ngModel"]],template:function(i,r){if(1&i&&(e.j41(0,"button",1),e.nrm(1,"span",2),e.k0s(),e.DNE(2,gc,6,3,"ng-template",null,0,e.C5r)),2&i){const s=e.sdS(3);e.Y8G("nzPopoverContent",s)("nzPopoverTrigger","click")}},dependencies:[z.MD,B.YN,B.BC,B.vS,hi.PQ,de.Uq,de.e,st.Zw,st.aO,Rn.c,Pn.p,mi.IJ,mi.$g,he.Y3,he.Dn,de.f3,vi.MC,vi.L_,Wt.DH],styles:["[_nghost-%COMP%]{display:inline-block}.popover-content[_ngcontent-%COMP%]{min-width:250px}.option-key[_ngcontent-%COMP%]{text-align:right;white-space:nowrap}"],changeDetection:0})}return n})();var $=f(5203),I=f(317),q=f(6914),ee=f(4707),yc=f(7336),at=f(7987),Cc=f(2771),On=f(3726),te=f(6977),gi=f(713),K=f(6042),Oe=f(7891),_i=f(6841),ct=f(7806),Xe=f(5463),yi=f(1025),En=f(6860),Qt=f(2764),bc=f(3451),xc=f(4500),Nn=f(8203);const zc=["hourListElement"],kc=["minuteListElement"],Sc=["secondListElement"],Tc=["use12HoursListElement"];function Mc(n,o){if(1&n&&(e.j41(0,"div",8)(1,"div",9),e.EFF(2),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.JRh(t.dateHelper.format(null==t.time?null:t.time.value,t.format)||"\xa0")}}function Dc(n,o){if(1&n){const t=e.RV6();e.j41(0,"li",13),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,s=e.XpG(2);return e.Njj(s.selectHour(r))}),e.j41(1,"div",14),e.EFF(2),e.nI1(3,"number"),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("ant-picker-time-panel-cell-selected",i.isSelectedHour(t))("ant-picker-time-panel-cell-disabled",t.disabled),e.R7$(2),e.JRh(e.i5U(3,5,t.index,"2.0-0"))}}function Fc(n,o){if(1&n&&(e.qex(0),e.DNE(1,Dc,4,8,"li",12),e.bVm()),2&n){const t=o.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!(i.nzHideDisabledOptions&&t.disabled))}}function Ic(n,o){if(1&n&&(e.j41(0,"ul",10,0),e.DNE(2,Fc,2,1,"ng-container",11),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.hourRange)("ngForTrackBy",t.trackByFn)}}function wc(n,o){if(1&n){const t=e.RV6();e.j41(0,"li",13),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,s=e.XpG(2);return e.Njj(s.selectMinute(r))}),e.j41(1,"div",14),e.EFF(2),e.nI1(3,"number"),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("ant-picker-time-panel-cell-selected",i.isSelectedMinute(t))("ant-picker-time-panel-cell-disabled",t.disabled),e.R7$(2),e.JRh(e.i5U(3,5,t.index,"2.0-0"))}}function Rc(n,o){if(1&n&&(e.qex(0),e.DNE(1,wc,4,8,"li",12),e.bVm()),2&n){const t=o.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!(i.nzHideDisabledOptions&&t.disabled))}}function Pc(n,o){if(1&n&&(e.j41(0,"ul",10,1),e.DNE(2,Rc,2,1,"ng-container",11),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.minuteRange)("ngForTrackBy",t.trackByFn)}}function Oc(n,o){if(1&n){const t=e.RV6();e.j41(0,"li",13),e.bIt("click",function(){e.eBV(t);const r=e.XpG().$implicit,s=e.XpG(2);return e.Njj(s.selectSecond(r))}),e.j41(1,"div",14),e.EFF(2),e.nI1(3,"number"),e.k0s()()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("ant-picker-time-panel-cell-selected",i.isSelectedSecond(t))("ant-picker-time-panel-cell-disabled",t.disabled),e.R7$(2),e.JRh(e.i5U(3,5,t.index,"2.0-0"))}}function Ec(n,o){if(1&n&&(e.qex(0),e.DNE(1,Oc,4,8,"li",12),e.bVm()),2&n){const t=o.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",!(i.nzHideDisabledOptions&&t.disabled))}}function Nc(n,o){if(1&n&&(e.j41(0,"ul",10,2),e.DNE(2,Ec,2,1,"ng-container",11),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.secondRange)("ngForTrackBy",t.trackByFn)}}function Ac(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"li",13),e.bIt("click",function(){const r=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.select12Hours(r))}),e.j41(2,"div",14),e.EFF(3),e.k0s()(),e.bVm()}if(2&n){const t=o.$implicit,i=e.XpG(2);e.R7$(),e.AVh("ant-picker-time-panel-cell-selected",i.isSelected12Hours(t)),e.R7$(2),e.JRh(t.value)}}function $c(n,o){if(1&n&&(e.j41(0,"ul",10,3),e.DNE(2,Ac,4,3,"ng-container",15),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.use12HoursRange)}}function Vc(n,o){}function jc(n,o){if(1&n&&(e.j41(0,"div",23),e.DNE(1,Vc,0,0,"ng-template",24),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngTemplateOutlet",t.nzAddOn)}}function Bc(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",16),e.DNE(1,jc,2,1,"div",17),e.j41(2,"ul",18)(3,"li",19)(4,"a",20),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onClickNow())}),e.EFF(5),e.nI1(6,"nzI18n"),e.k0s()(),e.j41(7,"li",21)(8,"button",22),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onClickOk())}),e.EFF(9),e.nI1(10,"nzI18n"),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.nzAddOn),e.R7$(4),e.SpI(" ",t.nzNowText||e.bMT(6,3,"Calendar.lang.now")," "),e.R7$(4),e.SpI(" ",t.nzOkText||e.bMT(10,5,"Calendar.lang.ok")," ")}}const Gc=["inputElement"];function Hc(n,o){if(1&n&&(e.qex(0),e.nrm(1,"span",8),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("nzType",t)}}function Xc(n,o){if(1&n&&e.nrm(0,"nz-form-item-feedback-icon",9),2&n){const t=e.XpG();e.Y8G("status",t.status)}}function Lc(n,o){if(1&n){const t=e.RV6();e.j41(0,"span",10),e.bIt("click",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onClickClearBtn(r))}),e.nrm(1,"span",11),e.k0s()}if(2&n){const t=e.XpG();e.R7$(),e.BMQ("aria-label",t.nzClearText)("title",t.nzClearText)}}function Yc(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",12)(1,"div",13)(2,"div",14)(3,"nz-time-picker-panel",15),e.nI1(4,"async"),e.mxI("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.DH7(s.value,r)||(s.value=r),e.Njj(r)}),e.bIt("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onPanelValueChange(r))})("closePanel",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.closePanel())}),e.k0s()()()()}if(2&n){const t=e.XpG();e.Y8G("@slideMotion","enter"),e.R7$(3),e.Y8G("ngClass",t.nzPopupClassName)("format",t.nzFormat)("nzHourStep",t.nzHourStep)("nzMinuteStep",t.nzMinuteStep)("nzSecondStep",t.nzSecondStep)("nzDisabledHours",t.nzDisabledHours)("nzDisabledMinutes",t.nzDisabledMinutes)("nzDisabledSeconds",t.nzDisabledSeconds)("nzPlaceHolder",t.nzPlaceHolder||e.bMT(4,19,t.i18nPlaceHolder$))("nzHideDisabledOptions",t.nzHideDisabledOptions)("nzUse12Hours",t.nzUse12Hours)("nzDefaultOpenValue",t.nzDefaultOpenValue)("nzAddOn",t.nzAddOn)("nzClearText",t.nzClearText)("nzNowText",t.nzNowText)("nzOkText",t.nzOkText)("nzAllowEmpty",t.nzAllowEmpty),e.R50("ngModel",t.value)}}class Uc{setMinutes(o,t){return t||(this.initValue(),this.value.setMinutes(o),this.update()),this}setHours(o,t){return t||(this.initValue(),this.value.setHours(this._use12Hours?"PM"===this.selected12Hours&&12!==o?o+12:"AM"===this.selected12Hours&&12===o?0:o:o),this.update()),this}setSeconds(o,t){return t||(this.initValue(),this.value.setSeconds(o),this.update()),this}setUse12Hours(o){return this._use12Hours=o,this}get changes(){return this._changes.asObservable()}setValue(o,t){return(0,I.n9)(t)&&(this._use12Hours=t),o!==this.value&&(this._value=o,(0,I.n9)(this.value)?this._use12Hours&&(0,I.n9)(this.hours)&&(this.selected12Hours=this.hours>=12?"PM":"AM"):this._clear()),this}initValue(){(0,I.gD)(this.value)&&this.setValue(new Date,this._use12Hours)}clear(){this._clear(),this.update()}get isEmpty(){return!((0,I.n9)(this.hours)||(0,I.n9)(this.minutes)||(0,I.n9)(this.seconds))}_clear(){this._value=void 0,this.selected12Hours=void 0}update(){this.isEmpty?this._value=void 0:((0,I.n9)(this.hours)&&this.value.setHours(this.hours),(0,I.n9)(this.minutes)&&this.value.setMinutes(this.minutes),(0,I.n9)(this.seconds)&&this.value.setSeconds(this.seconds),this._use12Hours&&("PM"===this.selected12Hours&&this.hours<12&&this.value.setHours(this.hours+12),"AM"===this.selected12Hours&&this.hours>=12&&this.value.setHours(this.hours-12))),this.changed()}changed(){this._changes.next(this.value)}get viewHours(){return this._use12Hours&&(0,I.n9)(this.hours)?this.calculateViewHour(this.hours):this.hours}setSelected12Hours(o){o.toUpperCase()!==this.selected12Hours&&(this.selected12Hours=o.toUpperCase(),this.update())}get value(){return this._value||this._defaultOpenValue}get hours(){return this.value?.getHours()}get minutes(){return this.value?.getMinutes()}get seconds(){return this.value?.getSeconds()}setDefaultOpenValue(o){return this._defaultOpenValue=o,this}constructor(){this.selected12Hours=void 0,this._use12Hours=!1,this._changes=new j.B}calculateViewHour(o){const t=this.selected12Hours;return"PM"===t&&o>12?o-12:"AM"===t&&0===o?12:o}}function An(n,o=1,t=0){return new Array(Math.ceil(n/o)).fill(0).map((i,r)=>(r+t)*o)}let $n=(()=>{class n{set nzAllowEmpty(t){this._allowEmpty=t}get nzAllowEmpty(){return this._allowEmpty}set nzDisabledHours(t){this._disabledHours=t,this._disabledHours&&this.buildHours()}get nzDisabledHours(){return this._disabledHours}set nzDisabledMinutes(t){(0,I.n9)(t)&&(this._disabledMinutes=t,this.buildMinutes())}get nzDisabledMinutes(){return this._disabledMinutes}set nzDisabledSeconds(t){(0,I.n9)(t)&&(this._disabledSeconds=t,this.buildSeconds())}get nzDisabledSeconds(){return this._disabledSeconds}set format(t){if((0,I.n9)(t)){this._format=t,this.enabledColumns=0;const i=new Set(t);this.hourEnabled=i.has("H")||i.has("h"),this.minuteEnabled=i.has("m"),this.secondEnabled=i.has("s"),this.hourEnabled&&this.enabledColumns++,this.minuteEnabled&&this.enabledColumns++,this.secondEnabled&&this.enabledColumns++,this.nzUse12Hours&&this.build12Hours()}}get format(){return this._format}set nzHourStep(t){this._nzHourStep=t||1,this.buildHours()}get nzHourStep(){return this._nzHourStep}set nzMinuteStep(t){this._nzMinuteStep=t||1,this.buildMinutes()}get nzMinuteStep(){return this._nzMinuteStep}set nzSecondStep(t){this._nzSecondStep=t||1,this.buildSeconds()}get nzSecondStep(){return this._nzSecondStep}trackByFn(t){return t}buildHours(){let t=24,i=this.nzDisabledHours?.(),r=0;if(this.nzUse12Hours&&(t=12,i&&(i="PM"===this.time.selected12Hours?i.filter(s=>s>=12).map(s=>s>12?s-12:s):i.filter(s=>s<12||24===s).map(s=>24===s||0===s?12:s)),r=1),this.hourRange=An(t,this.nzHourStep,r).map(s=>({index:s,disabled:!!i&&-1!==i.indexOf(s)})),this.nzUse12Hours&&12===this.hourRange[this.hourRange.length-1].index){const s=[...this.hourRange];s.unshift(s[s.length-1]),s.splice(s.length-1,1),this.hourRange=s}}buildMinutes(){this.minuteRange=An(60,this.nzMinuteStep).map(t=>({index:t,disabled:!!this.nzDisabledMinutes&&-1!==this.nzDisabledMinutes(this.time.hours).indexOf(t)}))}buildSeconds(){this.secondRange=An(60,this.nzSecondStep).map(t=>({index:t,disabled:!!this.nzDisabledSeconds&&-1!==this.nzDisabledSeconds(this.time.hours,this.time.minutes).indexOf(t)}))}build12Hours(){const t=this._format.includes("A");this.use12HoursRange=[{index:0,value:t?"AM":"am"},{index:1,value:t?"PM":"pm"}]}buildTimes(){this.buildHours(),this.buildMinutes(),this.buildSeconds(),this.build12Hours()}scrollToTime(t=0){this.hourEnabled&&this.hourListElement&&this.scrollToSelected(this.hourListElement.nativeElement,this.time.viewHours,t,"hour"),this.minuteEnabled&&this.minuteListElement&&this.scrollToSelected(this.minuteListElement.nativeElement,this.time.minutes,t,"minute"),this.secondEnabled&&this.secondListElement&&this.scrollToSelected(this.secondListElement.nativeElement,this.time.seconds,t,"second"),this.nzUse12Hours&&this.use12HoursListElement&&this.scrollToSelected(this.use12HoursListElement.nativeElement,"AM"===this.time.selected12Hours?0:1,t,"12-hour")}selectHour(t){this.time.setHours(t.index,t.disabled),this._disabledMinutes&&this.buildMinutes(),(this._disabledSeconds||this._disabledMinutes)&&this.buildSeconds()}selectMinute(t){this.time.setMinutes(t.index,t.disabled),this._disabledSeconds&&this.buildSeconds()}selectSecond(t){this.time.setSeconds(t.index,t.disabled)}select12Hours(t){this.time.setSelected12Hours(t.value),this._disabledHours&&this.buildHours(),this._disabledMinutes&&this.buildMinutes(),this._disabledSeconds&&this.buildSeconds()}scrollToSelected(t,i,r=0,s){if(!t)return;const a=this.translateIndex(i,s);this.scrollTo(t,(t.children[a]||t.children[0]).offsetTop,r)}translateIndex(t,i){return"hour"===i?this.calcIndex(this.nzDisabledHours?.(),this.hourRange.map(r=>r.index).indexOf(t)):"minute"===i?this.calcIndex(this.nzDisabledMinutes?.(this.time.hours),this.minuteRange.map(r=>r.index).indexOf(t)):"second"===i?this.calcIndex(this.nzDisabledSeconds?.(this.time.hours,this.time.minutes),this.secondRange.map(r=>r.index).indexOf(t)):this.calcIndex([],this.use12HoursRange.map(r=>r.index).indexOf(t))}scrollTo(t,i,r){if(r<=0)return void(t.scrollTop=i);const a=(i-t.scrollTop)/r*10;this.ngZone.runOutsideAngular(()=>{(0,xc.j)(()=>{t.scrollTop=t.scrollTop+a,t.scrollTop!==i&&this.scrollTo(t,i,r-10)})})}calcIndex(t,i){return t?.length&&this.nzHideDisabledOptions?i-t.reduce((r,s)=>r+(s-1||(this.nzDisabledMinutes?.(i).indexOf(r)??-1)>-1||(this.nzDisabledSeconds?.(i,r).indexOf(s)??-1)>-1}onClickNow(){const t=new Date;this.timeDisabled(t)||(this.time.setValue(t),this.changed(),this.closePanel.emit())}onClickOk(){this.time.setValue(this.time.value,this.nzUse12Hours),this.changed(),this.closePanel.emit()}isSelectedHour(t){return t.index===this.time.viewHours}isSelectedMinute(t){return t.index===this.time.minutes}isSelectedSecond(t){return t.index===this.time.seconds}isSelected12Hours(t){return t.value.toUpperCase()===this.time.selected12Hours}constructor(t,i,r,s){this.ngZone=t,this.cdr=i,this.dateHelper=r,this.elementRef=s,this._nzHourStep=1,this._nzMinuteStep=1,this._nzSecondStep=1,this.unsubscribe$=new j.B,this._format="HH:mm:ss",this._disabledHours=()=>[],this._disabledMinutes=()=>[],this._disabledSeconds=()=>[],this._allowEmpty=!0,this.time=new Uc,this.hourEnabled=!0,this.minuteEnabled=!0,this.secondEnabled=!0,this.firstScrolled=!1,this.enabledColumns=3,this.nzInDatePicker=!1,this.nzHideDisabledOptions=!1,this.nzUse12Hours=!1,this.closePanel=new e.bkB}ngOnInit(){this.time.changes.pipe((0,te.Q)(this.unsubscribe$)).subscribe(()=>{this.changed(),this.touched(),this.scrollToTime(120)}),this.buildTimes(),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.scrollToTime(),this.firstScrolled=!0}),(0,On.R)(this.elementRef.nativeElement,"mousedown").pipe((0,te.Q)(this.unsubscribe$)).subscribe(t=>{t.preventDefault()})})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}ngOnChanges(t){const{nzUse12Hours:i,nzDefaultOpenValue:r}=t;!i?.previousValue&&i?.currentValue&&(this.build12Hours(),this.enabledColumns++),r?.currentValue&&this.time.setDefaultOpenValue(this.nzDefaultOpenValue||new Date)}writeValue(t){this.time.setValue(t,this.nzUse12Hours),this.buildTimes(),t&&this.firstScrolled&&this.scrollToTime(120),this.cdr.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouch=t}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(e.SKi),e.rXU(e.gRc),e.rXU(q.cr),e.rXU(e.aKT))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["nz-time-picker-panel"]],viewQuery:function(i,r){if(1&i&&(e.GBs(zc,5),e.GBs(kc,5),e.GBs(Sc,5),e.GBs(Tc,5)),2&i){let s;e.mGM(s=e.lsd())&&(r.hourListElement=s.first),e.mGM(s=e.lsd())&&(r.minuteListElement=s.first),e.mGM(s=e.lsd())&&(r.secondListElement=s.first),e.mGM(s=e.lsd())&&(r.use12HoursListElement=s.first)}},hostAttrs:[1,"ant-picker-time-panel"],hostVars:12,hostBindings:function(i,r){2&i&&e.AVh("ant-picker-time-panel-column-0",0===r.enabledColumns&&!r.nzInDatePicker)("ant-picker-time-panel-column-1",1===r.enabledColumns&&!r.nzInDatePicker)("ant-picker-time-panel-column-2",2===r.enabledColumns&&!r.nzInDatePicker)("ant-picker-time-panel-column-3",3===r.enabledColumns&&!r.nzInDatePicker)("ant-picker-time-panel-narrow",r.enabledColumns<3)("ant-picker-time-panel-placement-bottomLeft",!r.nzInDatePicker)},inputs:{nzInDatePicker:[2,"nzInDatePicker","nzInDatePicker",e.L39],nzAddOn:"nzAddOn",nzHideDisabledOptions:"nzHideDisabledOptions",nzClearText:"nzClearText",nzNowText:"nzNowText",nzOkText:"nzOkText",nzPlaceHolder:"nzPlaceHolder",nzUse12Hours:[2,"nzUse12Hours","nzUse12Hours",e.L39],nzDefaultOpenValue:"nzDefaultOpenValue",nzAllowEmpty:[2,"nzAllowEmpty","nzAllowEmpty",e.L39],nzDisabledHours:"nzDisabledHours",nzDisabledMinutes:"nzDisabledMinutes",nzDisabledSeconds:"nzDisabledSeconds",format:"format",nzHourStep:[2,"nzHourStep","nzHourStep",e.Udg],nzMinuteStep:[2,"nzMinuteStep","nzMinuteStep",e.Udg],nzSecondStep:[2,"nzSecondStep","nzSecondStep",e.Udg]},outputs:{closePanel:"closePanel"},exportAs:["nzTimePickerPanel"],standalone:!0,features:[e.Jv_([{provide:B.kq,useExisting:n,multi:!0}]),e.GFd,e.OA$,e.aNF],decls:7,vars:6,consts:[["hourListElement",""],["minuteListElement",""],["secondListElement",""],["use12HoursListElement",""],["class","ant-picker-header",4,"ngIf"],[1,"ant-picker-content"],["class","ant-picker-time-panel-column","style","position: relative;",4,"ngIf"],["class","ant-picker-footer",4,"ngIf"],[1,"ant-picker-header"],[1,"ant-picker-header-view"],[1,"ant-picker-time-panel-column",2,"position","relative"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","ant-picker-time-panel-cell",3,"ant-picker-time-panel-cell-selected","ant-picker-time-panel-cell-disabled","click",4,"ngIf"],[1,"ant-picker-time-panel-cell",3,"click"],[1,"ant-picker-time-panel-cell-inner"],[4,"ngFor","ngForOf"],[1,"ant-picker-footer"],["class","ant-picker-footer-extra",4,"ngIf"],[1,"ant-picker-ranges"],[1,"ant-picker-now"],[3,"click"],[1,"ant-picker-ok"],["nz-button","","type","button","nzSize","small","nzType","primary",3,"click"],[1,"ant-picker-footer-extra"],[3,"ngTemplateOutlet"]],template:function(i,r){1&i&&(e.DNE(0,Mc,3,1,"div",4),e.j41(1,"div",5),e.DNE(2,Ic,3,2,"ul",6)(3,Pc,3,2,"ul",6)(4,Nc,3,2,"ul",6)(5,$c,3,1,"ul",6),e.k0s(),e.DNE(6,Bc,11,7,"div",7)),2&i&&(e.Y8G("ngIf",r.nzInDatePicker),e.R7$(2),e.Y8G("ngIf",r.hourEnabled),e.R7$(),e.Y8G("ngIf",r.minuteEnabled),e.R7$(),e.Y8G("ngIf",r.secondEnabled),e.R7$(),e.Y8G("ngIf",r.nzUse12Hours),e.R7$(),e.Y8G("ngIf",!r.nzInDatePicker))},dependencies:[z.bT,z.Sq,z.QX,z.T3,q.bP,q.Vc,st.Zw,st.aO,Rn.c,Pn.p],encapsulation:2,changeDetection:0})}return n})(),Qc=(()=>{class n{emitValue(t){this.setValue(t,!0),this._onChange&&this._onChange(this.value),this._onTouched&&this._onTouched()}setValue(t,i=!1){i&&(this.preValue=(0,Qt.A)(t)?new Date(t):null),this.value=(0,Qt.A)(t)?new Date(t):null,this.inputValue=this.dateHelper.format(t,this.nzFormat),this.cdr.markForCheck()}open(){this.nzDisabled||this.nzOpen||(this.focus(),this.nzOpen=!0,this.nzOpenChange.emit(this.nzOpen))}close(){this.nzOpen=!1,this.cdr.markForCheck(),this.nzOpenChange.emit(this.nzOpen)}updateAutoFocus(){this.isInit&&!this.nzDisabled&&(this.nzAutoFocus?this.renderer.setAttribute(this.inputRef.nativeElement,"autofocus","autofocus"):this.renderer.removeAttribute(this.inputRef.nativeElement,"autofocus"))}onClickClearBtn(t){t.stopPropagation(),this.emitValue(null)}onClickOutside(t){const i=(0,En.Fb)(t);this.element.nativeElement.contains(i)||this.setCurrentValueAndClose()}onFocus(t){this.focused=t,t||(this.checkTimeValid(this.value)?this.setCurrentValueAndClose():(this.setValue(this.preValue),this.close()))}focus(){this.inputRef.nativeElement&&this.inputRef.nativeElement.focus()}blur(){this.inputRef.nativeElement&&this.inputRef.nativeElement.blur()}onKeyupEsc(){this.setValue(this.preValue)}onKeyupEnter(){this.nzOpen&&(0,Qt.A)(this.value)?this.setCurrentValueAndClose():this.nzOpen||this.open()}onInputChange(t){!this.platform.TRIDENT&&document.activeElement===this.inputRef.nativeElement&&(this.open(),this.parseTimeString(t))}onPanelValueChange(t){this.setValue(t),this.focus()}closePanel(){this.inputRef.nativeElement.blur()}setCurrentValueAndClose(){this.emitValue(this.value),this.close()}constructor(t,i,r,s,a,c,l,u,d,p){this.nzConfigService=t,this.i18n=i,this.element=r,this.renderer=s,this.cdr=a,this.dateHelper=c,this.platform=l,this.directionality=u,this.nzFormStatusService=d,this.nzFormNoStatusService=p,this._nzModuleName="timePicker",this.destroy$=new j.B,this.isNzDisableFirstChange=!0,this.isInit=!1,this.focused=!1,this.inputValue="",this.value=null,this.preValue=null,this.i18nPlaceHolder$=(0,tt.of)(void 0),this.overlayPositions=[{offsetY:3,originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{offsetY:-3,originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{offsetY:3,originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{offsetY:-3,originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],this.dir="ltr",this.prefixCls="ant-picker",this.statusCls={},this.status="",this.hasFeedback=!1,this.nzId=null,this.nzSize=null,this.nzStatus="",this.nzHourStep=1,this.nzMinuteStep=1,this.nzSecondStep=1,this.nzClearText="clear",this.nzNowText="",this.nzOkText="",this.nzPopupClassName="",this.nzPlaceHolder="",this.nzFormat="HH:mm:ss",this.nzOpen=!1,this.nzUse12Hours=!1,this.nzSuffixIcon="clock-circle",this.nzOpenChange=new e.bkB,this.nzHideDisabledOptions=!1,this.nzAllowEmpty=!0,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzBackdrop=!1,this.nzBorderless=!1,this.nzInputReadOnly=!1}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,Xt.F)((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),(0,Dt.E)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,tt.of)(!1)),(0,ue.T)(([{status:t,hasFeedback:i},r])=>({status:r?"":t,hasFeedback:i})),(0,te.Q)(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.inputSize=Math.max(8,this.nzFormat.length)+2,this.origin=new at.$Q(this.element),this.i18nPlaceHolder$=this.i18n.localeChange.pipe((0,ue.T)(t=>t.TimePicker.placeholder)),this.dir=this.directionality.value,this.directionality.change?.pipe((0,te.Q)(this.destroy$)).subscribe(t=>{this.dir=t})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(t){const{nzUse12Hours:i,nzFormat:r,nzDisabled:s,nzAutoFocus:a,nzStatus:c}=t;if(i&&!i.previousValue&&i.currentValue&&!r&&(this.nzFormat="h:mm:ss a"),s){const u=this.inputRef.nativeElement;s.currentValue?this.renderer.setAttribute(u,"disabled",""):this.renderer.removeAttribute(u,"disabled")}a&&this.updateAutoFocus(),c&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}parseTimeString(t){const i=this.dateHelper.parseTime(t,this.nzFormat)||null;(0,Qt.A)(i)&&(this.value=i,this.cdr.markForCheck())}ngAfterViewInit(){this.isInit=!0,this.updateAutoFocus()}writeValue(t){let i;t instanceof Date?i=t:(0,I.gD)(t)?i=null:((0,bc.R8)('Non-Date type is not recommended for time-picker, use "Date" type.'),i=new Date(t)),this.setValue(i,!0)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}checkTimeValid(t){if(!t)return!0;const i=this.nzDisabledHours?.(),r=this.nzDisabledMinutes?.(t.getHours()),s=this.nzDisabledSeconds?.(t.getHours(),t.getMinutes());return!(i?.includes(t.getHours())||r?.includes(t.getMinutes())||s?.includes(t.getSeconds()))}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.cdr.markForCheck(),this.statusCls=(0,I.LP)(this.prefixCls,t,i),Object.keys(this.statusCls).forEach(r=>{this.statusCls[r]?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(K.yx),e.rXU(q.Og),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(q.cr),e.rXU(En.OD),e.rXU(Nn.dS,8),e.rXU(Oe.is,8),e.rXU(Oe.n1,8))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["nz-time-picker"]],viewQuery:function(i,r){if(1&i&&e.GBs(Gc,7),2&i){let s;e.mGM(s=e.lsd())&&(r.inputRef=s.first)}},hostAttrs:[1,"ant-picker"],hostVars:12,hostBindings:function(i,r){1&i&&e.bIt("click",function(){return r.open()}),2&i&&e.AVh("ant-picker-large","large"===r.nzSize)("ant-picker-small","small"===r.nzSize)("ant-picker-disabled",r.nzDisabled)("ant-picker-focused",r.focused)("ant-picker-rtl","rtl"===r.dir)("ant-picker-borderless",r.nzBorderless)},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzHourStep:"nzHourStep",nzMinuteStep:"nzMinuteStep",nzSecondStep:"nzSecondStep",nzClearText:"nzClearText",nzNowText:"nzNowText",nzOkText:"nzOkText",nzPopupClassName:"nzPopupClassName",nzPlaceHolder:"nzPlaceHolder",nzAddOn:"nzAddOn",nzDefaultOpenValue:"nzDefaultOpenValue",nzDisabledHours:"nzDisabledHours",nzDisabledMinutes:"nzDisabledMinutes",nzDisabledSeconds:"nzDisabledSeconds",nzFormat:"nzFormat",nzOpen:"nzOpen",nzUse12Hours:[2,"nzUse12Hours","nzUse12Hours",e.L39],nzSuffixIcon:"nzSuffixIcon",nzHideDisabledOptions:[2,"nzHideDisabledOptions","nzHideDisabledOptions",e.L39],nzAllowEmpty:[2,"nzAllowEmpty","nzAllowEmpty",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzBackdrop:"nzBackdrop",nzBorderless:[2,"nzBorderless","nzBorderless",e.L39],nzInputReadOnly:[2,"nzInputReadOnly","nzInputReadOnly",e.L39]},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzTimePicker"],standalone:!0,features:[e.Jv_([{provide:B.kq,useExisting:n,multi:!0}]),e.GFd,e.OA$,e.aNF],decls:9,vars:16,consts:[["inputElement",""],[1,"ant-picker-input"],["type","text","autocomplete","off",3,"ngModelChange","focus","blur","keyup.enter","keyup.escape","size","placeholder","ngModel","disabled","readOnly"],[1,"ant-picker-suffix"],[4,"nzStringTemplateOutlet"],[3,"status",4,"ngIf"],["class","ant-picker-clear",3,"click",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"detach","overlayOutsideClick","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-icon","",3,"nzType"],[3,"status"],[1,"ant-picker-clear",3,"click"],["nz-icon","","nzType","close-circle","nzTheme","fill"],[1,"ant-picker-dropdown",2,"position","relative"],[1,"ant-picker-panel-container"],["tabindex","-1",1,"ant-picker-panel"],[3,"ngModelChange","closePanel","ngClass","format","nzHourStep","nzMinuteStep","nzSecondStep","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzPlaceHolder","nzHideDisabledOptions","nzUse12Hours","nzDefaultOpenValue","nzAddOn","nzClearText","nzNowText","nzOkText","nzAllowEmpty","ngModel"]],template:function(i,r){if(1&i){const s=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.nI1(3,"async"),e.mxI("ngModelChange",function(c){return e.eBV(s),e.DH7(r.inputValue,c)||(r.inputValue=c),e.Njj(c)}),e.bIt("focus",function(){return e.eBV(s),e.Njj(r.onFocus(!0))})("blur",function(){return e.eBV(s),e.Njj(r.onFocus(!1))})("keyup.enter",function(){return e.eBV(s),e.Njj(r.onKeyupEnter())})("keyup.escape",function(){return e.eBV(s),e.Njj(r.onKeyupEsc())})("ngModelChange",function(c){return e.eBV(s),e.Njj(r.onInputChange(c))}),e.k0s(),e.j41(4,"span",3),e.DNE(5,Hc,2,1,"ng-container",4)(6,Xc,1,1,"nz-form-item-feedback-icon",5),e.k0s(),e.DNE(7,Lc,2,2,"span",6),e.k0s(),e.DNE(8,Yc,5,21,"ng-template",7),e.bIt("detach",function(){return e.eBV(s),e.Njj(r.close())})("overlayOutsideClick",function(c){return e.eBV(s),e.Njj(r.onClickOutside(c))})}2&i&&(e.R7$(),e.Y8G("size",r.inputSize)("placeholder",r.nzPlaceHolder||e.bMT(3,14,r.i18nPlaceHolder$)),e.R50("ngModel",r.inputValue),e.Y8G("disabled",r.nzDisabled)("readOnly",r.nzInputReadOnly),e.BMQ("id",r.nzId),e.R7$(4),e.Y8G("nzStringTemplateOutlet",r.nzSuffixIcon),e.R7$(),e.Y8G("ngIf",r.hasFeedback&&!!r.status),e.R7$(),e.Y8G("ngIf",r.nzAllowEmpty&&!r.nzDisabled&&r.value),e.R7$(),e.Y8G("cdkConnectedOverlayHasBackdrop",r.nzBackdrop)("cdkConnectedOverlayPositions",r.overlayPositions)("cdkConnectedOverlayOrigin",r.origin)("cdkConnectedOverlayOpen",r.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-picker-dropdown"))},dependencies:[z.Jj,B.YN,B.me,B.BC,B.vS,ct.C,ct.m,he.Y3,he.Dn,Oe.J1,Oe.Xd,z.bT,$n,z.YU,Xe.$_,Xe.vT,at.z_,at.WB],encapsulation:2,data:{animation:[gi.U1]},changeDetection:0})}return(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzHourStep",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzMinuteStep",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzSecondStep",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzClearText",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzNowText",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzOkText",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzPopupClassName",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzFormat",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzUse12Hours",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzSuffixIcon",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzAllowEmpty",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzBackdrop",void 0),n})(),Zc=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[Qc,$n]})}return n})();var Kc=f(9114),Jc=f(5979);function qc(n,o){1&n&&e.eu8(0)}function el(n,o){if(1&n&&e.DNE(0,qc,1,0,"ng-container",3),2&n){const t=e.XpG(2);e.Y8G("ngTemplateOutlet",t.extraFooter)}}function tl(n,o){if(1&n&&e.nrm(0,"span",2),2&n){const t=e.XpG(2);e.Y8G("innerHTML",t.extraFooter,e.npT)}}function nl(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,el,1,1,"ng-container")(2,tl,1,1,"span",2),e.k0s()),2&n){const t=e.XpG();e.ZvI("",t.prefixCls,"-footer-extra"),e.R7$(),e.vxM(t.isExtraFooterTemplateRef?1:-1),e.R7$(),e.vxM(t.isExtraFooterNonEmptyString?2:-1)}}function il(n,o){if(1&n){const t=e.RV6();e.j41(0,"a",4),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.isTodayDisabled?null:r.onClickToday())}),e.EFF(1),e.k0s()}if(2&n){const t=e.XpG();e.STu("",t.prefixCls,"-today-btn ",t.isTodayDisabled?t.prefixCls+"-today-btn-disabled":"",""),e.FS9("title",t.todayTitle),e.R7$(),e.SpI(" ",t.locale.today," ")}}function ol(n,o){1&n&&e.eu8(0)}function rl(n,o){if(1&n){const t=e.RV6();e.j41(0,"li")(1,"a",5),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.isTodayDisabled?null:r.onClickToday())}),e.EFF(2),e.k0s()()}if(2&n){const t=e.XpG(2);e.ZvI("",t.prefixCls,"-now"),e.R7$(),e.ZvI("",t.prefixCls,"-now-btn"),e.R7$(),e.SpI(" ",t.locale.now," ")}}function sl(n,o){if(1&n){const t=e.RV6();e.j41(0,"li")(1,"button",6),e.bIt("click",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.okDisabled?null:r.clickOk.emit())}),e.EFF(2),e.k0s()()}if(2&n){const t=e.XpG(2);e.ZvI("",t.prefixCls,"-ok"),e.R7$(),e.Y8G("disabled",t.okDisabled),e.R7$(),e.SpI(" ",t.locale.ok," ")}}function al(n,o){if(1&n&&(e.j41(0,"ul"),e.DNE(1,ol,1,0,"ng-container",3)(2,rl,3,7,"li",0)(3,sl,3,5,"li",0),e.k0s()),2&n){const t=e.XpG();e.ZvI("",t.prefixCls,"-ranges"),e.R7$(),e.Y8G("ngTemplateOutlet",t.rangeQuickSelector),e.R7$(),e.vxM(t.showNow?2:-1),e.R7$(),e.vxM(t.hasTimePicker?3:-1)}}function cl(n,o){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onClick())}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.HbH(t.className),e.FS9("title",t.title||null),e.R7$(),e.SpI(" ",t.label," ")}}const xe=(n,o)=>o.trackByIndex,ne=n=>({$implicit:n});function ll(n,o){1&n&&e.nrm(0,"th",3)}function ul(n,o){if(1&n&&(e.j41(0,"th",4),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.FS9("title",t.title),e.R7$(),e.SpI(" ",t.content," ")}}function dl(n,o){if(1&n&&(e.j41(0,"thead")(1,"tr",2),e.DNE(2,ll,1,0,"th",3),e.Z7z(3,ul,2,2,"th",4,e.fX1),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t.showWeek?2:-1),e.R7$(),e.Dyx(t.headRow)}}function pl(n,o){if(1&n&&(e.j41(0,"td",7),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG();e.ZvI("",i.prefixCls,"-cell-week"),e.R7$(),e.SpI(" ",t.weekNum," ")}}function fl(n,o){1&n&&e.eu8(0)}function hl(n,o){if(1&n&&e.DNE(0,fl,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function vl(n,o){if(1&n&&e.nrm(0,"span",10),2&n){const t=e.XpG(2).$implicit;e.Y8G("innerHTML",t.cellRender,e.npT)}}function ml(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-cell-inner"),e.BMQ("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),e.R7$(),e.SpI(" ",t.content," ")}}function gl(n,o){if(1&n&&e.DNE(0,hl,1,4,"ng-container")(1,vl,1,1,"span",10)(2,ml,2,6,"div",11),2&n){const t=e.XpG().$implicit;e.vxM(t.isTemplateRef?0:t.isNonEmptyString?1:2)}}function _l(n,o){1&n&&e.eu8(0)}function yl(n,o){if(1&n&&e.DNE(0,_l,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function Cl(n,o){1&n&&e.eu8(0)}function bl(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s(),e.j41(2,"div"),e.DNE(3,Cl,1,0,"ng-container",12),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date-value"),e.R7$(),e.JRh(t.content),e.R7$(),e.ZvI("",i.prefixCls,"-date-content"),e.R7$(),e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(9,ne,t.value))}}function xl(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,yl,1,4,"ng-container")(2,bl,4,11),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date ant-picker-cell-inner"),e.AVh("ant-picker-calendar-date-today",t.isToday),e.R7$(),e.vxM(t.fullCellRender?1:2)}}function zl(n,o){if(1&n){const t=e.RV6();e.j41(0,"td",8),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.isDisabled?null:r.onClick())})("mouseenter",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onMouseEnter())}),e.DNE(1,gl,3,1)(2,xl,3,6,"div",9),e.k0s()}if(2&n){let t;const i=o.$implicit,r=e.XpG(2);e.FS9("title",i.title),e.Y8G("ngClass",i.classMap),e.R7$(),e.vxM("ant-picker"===(t=r.prefixCls)?1:"ant-picker-calendar"===t?2:-1)}}function kl(n,o){if(1&n&&(e.j41(0,"tr",1),e.DNE(1,pl,2,4,"td",5),e.Z7z(2,zl,3,3,"td",6,xe),e.k0s()),2&n){const t=o.$implicit;e.Y8G("ngClass",t.classMap),e.R7$(),e.vxM(t.weekNum?1:-1),e.R7$(),e.Dyx(t.dateCells)}}function Sl(n,o){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onClick())}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.HbH(t.className),e.FS9("title",t.title||null),e.R7$(),e.SpI(" ",t.label," ")}}function Tl(n,o){1&n&&e.nrm(0,"th",3)}function Ml(n,o){if(1&n&&(e.j41(0,"th",4),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.FS9("title",t.title),e.R7$(),e.SpI(" ",t.content," ")}}function Dl(n,o){if(1&n&&(e.j41(0,"thead")(1,"tr",2),e.DNE(2,Tl,1,0,"th",3),e.Z7z(3,Ml,2,2,"th",4,e.fX1),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t.showWeek?2:-1),e.R7$(),e.Dyx(t.headRow)}}function Fl(n,o){if(1&n&&(e.j41(0,"td",7),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG();e.ZvI("",i.prefixCls,"-cell-week"),e.R7$(),e.SpI(" ",t.weekNum," ")}}function Il(n,o){1&n&&e.eu8(0)}function wl(n,o){if(1&n&&e.DNE(0,Il,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function Rl(n,o){if(1&n&&e.nrm(0,"span",10),2&n){const t=e.XpG(2).$implicit;e.Y8G("innerHTML",t.cellRender,e.npT)}}function Pl(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-cell-inner"),e.BMQ("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),e.R7$(),e.SpI(" ",t.content," ")}}function Ol(n,o){if(1&n&&e.DNE(0,wl,1,4,"ng-container")(1,Rl,1,1,"span",10)(2,Pl,2,6,"div",11),2&n){const t=e.XpG().$implicit;e.vxM(t.isTemplateRef?0:t.isNonEmptyString?1:2)}}function El(n,o){1&n&&e.eu8(0)}function Nl(n,o){if(1&n&&e.DNE(0,El,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function Al(n,o){1&n&&e.eu8(0)}function $l(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s(),e.j41(2,"div"),e.DNE(3,Al,1,0,"ng-container",12),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date-value"),e.R7$(),e.JRh(t.content),e.R7$(),e.ZvI("",i.prefixCls,"-date-content"),e.R7$(),e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(9,ne,t.value))}}function Vl(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,Nl,1,4,"ng-container")(2,$l,4,11),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date ant-picker-cell-inner"),e.AVh("ant-picker-calendar-date-today",t.isToday),e.R7$(),e.vxM(t.fullCellRender?1:2)}}function jl(n,o){if(1&n){const t=e.RV6();e.j41(0,"td",8),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.isDisabled?null:r.onClick())})("mouseenter",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onMouseEnter())}),e.DNE(1,Ol,3,1)(2,Vl,3,6,"div",9),e.k0s()}if(2&n){let t;const i=o.$implicit,r=e.XpG(2);e.FS9("title",i.title),e.Y8G("ngClass",i.classMap),e.R7$(),e.vxM("ant-picker"===(t=r.prefixCls)?1:"ant-picker-calendar"===t?2:-1)}}function Bl(n,o){if(1&n&&(e.j41(0,"tr",1),e.DNE(1,Fl,2,4,"td",5),e.Z7z(2,jl,3,3,"td",6,xe),e.k0s()),2&n){const t=o.$implicit;e.Y8G("ngClass",t.classMap),e.R7$(),e.vxM(t.weekNum?1:-1),e.R7$(),e.Dyx(t.dateCells)}}function Gl(n,o){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onClick())}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.HbH(t.className),e.FS9("title",t.title||null),e.R7$(),e.SpI(" ",t.label," ")}}function Hl(n,o){1&n&&e.nrm(0,"th",3)}function Xl(n,o){if(1&n&&(e.j41(0,"th",4),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.FS9("title",t.title),e.R7$(),e.SpI(" ",t.content," ")}}function Ll(n,o){if(1&n&&(e.j41(0,"thead")(1,"tr",2),e.DNE(2,Hl,1,0,"th",3),e.Z7z(3,Xl,2,2,"th",4,e.fX1),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t.showWeek?2:-1),e.R7$(),e.Dyx(t.headRow)}}function Yl(n,o){if(1&n&&(e.j41(0,"td",7),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG();e.ZvI("",i.prefixCls,"-cell-week"),e.R7$(),e.SpI(" ",t.weekNum," ")}}function Ul(n,o){1&n&&e.eu8(0)}function Wl(n,o){if(1&n&&e.DNE(0,Ul,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function Ql(n,o){if(1&n&&e.nrm(0,"span",10),2&n){const t=e.XpG(2).$implicit;e.Y8G("innerHTML",t.cellRender,e.npT)}}function Zl(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-cell-inner"),e.BMQ("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),e.R7$(),e.SpI(" ",t.content," ")}}function Kl(n,o){if(1&n&&e.DNE(0,Wl,1,4,"ng-container")(1,Ql,1,1,"span",10)(2,Zl,2,6,"div",11),2&n){const t=e.XpG().$implicit;e.vxM(t.isTemplateRef?0:t.isNonEmptyString?1:2)}}function Jl(n,o){1&n&&e.eu8(0)}function ql(n,o){if(1&n&&e.DNE(0,Jl,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function eu(n,o){1&n&&e.eu8(0)}function tu(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s(),e.j41(2,"div"),e.DNE(3,eu,1,0,"ng-container",12),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date-value"),e.R7$(),e.JRh(t.content),e.R7$(),e.ZvI("",i.prefixCls,"-date-content"),e.R7$(),e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(9,ne,t.value))}}function nu(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,ql,1,4,"ng-container")(2,tu,4,11),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date ant-picker-cell-inner"),e.AVh("ant-picker-calendar-date-today",t.isToday),e.R7$(),e.vxM(t.fullCellRender?1:2)}}function iu(n,o){if(1&n){const t=e.RV6();e.j41(0,"td",8),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.isDisabled?null:r.onClick())})("mouseenter",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onMouseEnter())}),e.DNE(1,Kl,3,1)(2,nu,3,6,"div",9),e.k0s()}if(2&n){let t;const i=o.$implicit,r=e.XpG(2);e.FS9("title",i.title),e.Y8G("ngClass",i.classMap),e.R7$(),e.vxM("ant-picker"===(t=r.prefixCls)?1:"ant-picker-calendar"===t?2:-1)}}function ou(n,o){if(1&n&&(e.j41(0,"tr",1),e.DNE(1,Yl,2,4,"td",5),e.Z7z(2,iu,3,3,"td",6,xe),e.k0s()),2&n){const t=o.$implicit;e.Y8G("ngClass",t.classMap),e.R7$(),e.vxM(t.weekNum?1:-1),e.R7$(),e.Dyx(t.dateCells)}}function ru(n,o){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onClick())}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.HbH(t.className),e.FS9("title",t.title||null),e.R7$(),e.SpI(" ",t.label," ")}}function su(n,o){1&n&&e.nrm(0,"th",3)}function au(n,o){if(1&n&&(e.j41(0,"th",4),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.FS9("title",t.title),e.R7$(),e.SpI(" ",t.content," ")}}function cu(n,o){if(1&n&&(e.j41(0,"thead")(1,"tr",2),e.DNE(2,su,1,0,"th",3),e.Z7z(3,au,2,2,"th",4,e.fX1),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t.showWeek?2:-1),e.R7$(),e.Dyx(t.headRow)}}function lu(n,o){if(1&n&&(e.j41(0,"td",7),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG();e.ZvI("",i.prefixCls,"-cell-week"),e.R7$(),e.SpI(" ",t.weekNum," ")}}function uu(n,o){1&n&&e.eu8(0)}function du(n,o){if(1&n&&e.DNE(0,uu,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function pu(n,o){if(1&n&&e.nrm(0,"span",10),2&n){const t=e.XpG(2).$implicit;e.Y8G("innerHTML",t.cellRender,e.npT)}}function fu(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-cell-inner"),e.BMQ("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),e.R7$(),e.SpI(" ",t.content," ")}}function hu(n,o){if(1&n&&e.DNE(0,du,1,4,"ng-container")(1,pu,1,1,"span",10)(2,fu,2,6,"div",11),2&n){const t=e.XpG().$implicit;e.vxM(t.isTemplateRef?0:t.isNonEmptyString?1:2)}}function vu(n,o){1&n&&e.eu8(0)}function mu(n,o){if(1&n&&e.DNE(0,vu,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function gu(n,o){1&n&&e.eu8(0)}function _u(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s(),e.j41(2,"div"),e.DNE(3,gu,1,0,"ng-container",12),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date-value"),e.R7$(),e.JRh(t.content),e.R7$(),e.ZvI("",i.prefixCls,"-date-content"),e.R7$(),e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(9,ne,t.value))}}function yu(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,mu,1,4,"ng-container")(2,_u,4,11),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date ant-picker-cell-inner"),e.AVh("ant-picker-calendar-date-today",t.isToday),e.R7$(),e.vxM(t.fullCellRender?1:2)}}function Cu(n,o){if(1&n){const t=e.RV6();e.j41(0,"td",8),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.isDisabled?null:r.onClick())})("mouseenter",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onMouseEnter())}),e.DNE(1,hu,3,1)(2,yu,3,6,"div",9),e.k0s()}if(2&n){let t;const i=o.$implicit,r=e.XpG(2);e.FS9("title",i.title),e.Y8G("ngClass",i.classMap),e.R7$(),e.vxM("ant-picker"===(t=r.prefixCls)?1:"ant-picker-calendar"===t?2:-1)}}function bu(n,o){if(1&n&&(e.j41(0,"tr",1),e.DNE(1,lu,2,4,"td",5),e.Z7z(2,Cu,3,3,"td",6,xe),e.k0s()),2&n){const t=o.$implicit;e.Y8G("ngClass",t.classMap),e.R7$(),e.vxM(t.weekNum?1:-1),e.R7$(),e.Dyx(t.dateCells)}}function xu(n,o){if(1&n){const t=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onClick())}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.HbH(t.className),e.FS9("title",t.title||null),e.R7$(),e.SpI(" ",t.label," ")}}function zu(n,o){1&n&&e.nrm(0,"th",3)}function ku(n,o){if(1&n&&(e.j41(0,"th",4),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.FS9("title",t.title),e.R7$(),e.SpI(" ",t.content," ")}}function Su(n,o){if(1&n&&(e.j41(0,"thead")(1,"tr",2),e.DNE(2,zu,1,0,"th",3),e.Z7z(3,ku,2,2,"th",4,e.fX1),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.vxM(t.showWeek?2:-1),e.R7$(),e.Dyx(t.headRow)}}function Tu(n,o){if(1&n&&(e.j41(0,"td",7),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG();e.ZvI("",i.prefixCls,"-cell-week"),e.R7$(),e.SpI(" ",t.weekNum," ")}}function Mu(n,o){1&n&&e.eu8(0)}function Du(n,o){if(1&n&&e.DNE(0,Mu,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function Fu(n,o){if(1&n&&e.nrm(0,"span",10),2&n){const t=e.XpG(2).$implicit;e.Y8G("innerHTML",t.cellRender,e.npT)}}function Iu(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-cell-inner"),e.BMQ("aria-selected",t.isSelected)("aria-disabled",t.isDisabled),e.R7$(),e.SpI(" ",t.content," ")}}function wu(n,o){if(1&n&&e.DNE(0,Du,1,4,"ng-container")(1,Fu,1,1,"span",10)(2,Iu,2,6,"div",11),2&n){const t=e.XpG().$implicit;e.vxM(t.isTemplateRef?0:t.isNonEmptyString?1:2)}}function Ru(n,o){1&n&&e.eu8(0)}function Pu(n,o){if(1&n&&e.DNE(0,Ru,1,0,"ng-container",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("ngTemplateOutlet",t.fullCellRender)("ngTemplateOutletContext",e.eq3(2,ne,t.value))}}function Ou(n,o){1&n&&e.eu8(0)}function Eu(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s(),e.j41(2,"div"),e.DNE(3,Ou,1,0,"ng-container",12),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date-value"),e.R7$(),e.JRh(t.content),e.R7$(),e.ZvI("",i.prefixCls,"-date-content"),e.R7$(),e.Y8G("ngTemplateOutlet",t.cellRender)("ngTemplateOutletContext",e.eq3(9,ne,t.value))}}function Nu(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,Pu,1,4,"ng-container")(2,Eu,4,11),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-date ant-picker-cell-inner"),e.AVh("ant-picker-calendar-date-today",t.isToday),e.R7$(),e.vxM(t.fullCellRender?1:2)}}function Au(n,o){if(1&n){const t=e.RV6();e.j41(0,"td",8),e.bIt("click",function(){const r=e.eBV(t).$implicit;return e.Njj(r.isDisabled?null:r.onClick())})("mouseenter",function(){const r=e.eBV(t).$implicit;return e.Njj(r.onMouseEnter())}),e.DNE(1,wu,3,1)(2,Nu,3,6,"div",9),e.k0s()}if(2&n){let t;const i=o.$implicit,r=e.XpG(2);e.FS9("title",i.title),e.Y8G("ngClass",i.classMap),e.R7$(),e.vxM("ant-picker"===(t=r.prefixCls)?1:"ant-picker-calendar"===t?2:-1)}}function $u(n,o){if(1&n&&(e.j41(0,"tr",1),e.DNE(1,Tu,2,4,"td",5),e.Z7z(2,Au,3,3,"td",6,xe),e.k0s()),2&n){const t=o.$implicit;e.Y8G("ngClass",t.classMap),e.R7$(),e.vxM(t.weekNum?1:-1),e.R7$(),e.Dyx(t.dateCells)}}function Vu(n,o){if(1&n){const t=e.RV6();e.j41(0,"decade-header",1),e.mxI("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.DH7(s.activeDate,r)||(s.activeDate=r),e.Njj(r)}),e.bIt("panelModeChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.panelModeChange.emit(r))})("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.headerChange.emit(r))}),e.k0s(),e.j41(1,"div")(2,"decade-table",2),e.bIt("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onChooseDecade(r))}),e.k0s()()}if(2&n){const t=e.XpG();e.R50("value",t.activeDate),e.Y8G("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev","decade"))("showSuperNextBtn",t.enablePrevNext("next","decade"))("showNextBtn",!1)("showPreBtn",!1),e.R7$(),e.ZvI("",t.prefixCls,"-body"),e.R7$(),e.Y8G("activeDate",t.activeDate)("value",t.value)("locale",t.locale)("disabledDate",t.disabledDate)}}function ju(n,o){if(1&n){const t=e.RV6();e.j41(0,"year-header",1),e.mxI("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.DH7(s.activeDate,r)||(s.activeDate=r),e.Njj(r)}),e.bIt("panelModeChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.panelModeChange.emit(r))})("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.headerChange.emit(r))}),e.k0s(),e.j41(1,"div")(2,"year-table",3),e.bIt("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onChooseYear(r))})("cellHover",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.cellHover.emit(r))}),e.k0s()()}if(2&n){const t=e.XpG();e.R50("value",t.activeDate),e.Y8G("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev","year"))("showSuperNextBtn",t.enablePrevNext("next","year"))("showNextBtn",!1)("showPreBtn",!1),e.R7$(),e.ZvI("",t.prefixCls,"-body"),e.R7$(),e.Y8G("activeDate",t.activeDate)("value",t.value)("locale",t.locale)("disabledDate",t.disabledDate)("selectedValue",t.selectedValue)("hoverValue",t.hoverValue)}}function Bu(n,o){if(1&n){const t=e.RV6();e.j41(0,"month-header",1),e.mxI("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.DH7(s.activeDate,r)||(s.activeDate=r),e.Njj(r)}),e.bIt("panelModeChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.panelModeChange.emit(r))})("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.headerChange.emit(r))}),e.k0s(),e.j41(1,"div")(2,"month-table",4),e.bIt("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onChooseMonth(r))})("cellHover",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.cellHover.emit(r))}),e.k0s()()}if(2&n){const t=e.XpG();e.R50("value",t.activeDate),e.Y8G("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev","month"))("showSuperNextBtn",t.enablePrevNext("next","month"))("showNextBtn",!1)("showPreBtn",!1),e.R7$(),e.ZvI("",t.prefixCls,"-body"),e.R7$(),e.Y8G("value",t.value)("activeDate",t.activeDate)("locale",t.locale)("disabledDate",t.disabledDate)("selectedValue",t.selectedValue)("hoverValue",t.hoverValue)}}function Gu(n,o){if(1&n){const t=e.RV6();e.j41(0,"quarter-header",1),e.mxI("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.DH7(s.activeDate,r)||(s.activeDate=r),e.Njj(r)}),e.bIt("panelModeChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.panelModeChange.emit(r))})("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.headerChange.emit(r))}),e.k0s(),e.j41(1,"div")(2,"quarter-table",5),e.bIt("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onChooseQuarter(r))})("cellHover",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.cellHover.emit(r))}),e.k0s()()}if(2&n){const t=e.XpG();e.R50("value",t.activeDate),e.Y8G("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev","month"))("showSuperNextBtn",t.enablePrevNext("next","month"))("showNextBtn",!1)("showPreBtn",!1),e.R7$(),e.ZvI("",t.prefixCls,"-body"),e.R7$(),e.Y8G("value",t.value)("activeDate",t.activeDate)("locale",t.locale)("disabledDate",t.disabledDate)("selectedValue",t.selectedValue)("hoverValue",t.hoverValue)("cellRender",t.dateRender)}}function Hu(n,o){if(1&n){const t=e.RV6();e.j41(0,"date-header",6),e.mxI("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.DH7(s.activeDate,r)||(s.activeDate=r),e.Njj(r)}),e.bIt("panelModeChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.panelModeChange.emit(r))})("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.headerChange.emit(r))}),e.k0s(),e.j41(1,"div")(2,"date-table",7),e.bIt("valueChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onSelectDate(r))})("cellHover",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.cellHover.emit(r))}),e.k0s()()}if(2&n){const t=e.XpG();e.R50("value",t.activeDate),e.Y8G("locale",t.locale)("showSuperPreBtn",t.enablePrevNext("prev","week"===t.panelMode?"week":"date"))("showSuperNextBtn",t.enablePrevNext("next","week"===t.panelMode?"week":"date"))("showPreBtn",t.enablePrevNext("prev","week"===t.panelMode?"week":"date"))("showNextBtn",t.enablePrevNext("next","week"===t.panelMode?"week":"date")),e.R7$(),e.ZvI("",t.prefixCls,"-body"),e.R7$(),e.Y8G("locale",t.locale)("showWeek",t.showWeek)("value",t.value)("activeDate",t.activeDate)("disabledDate",t.disabledDate)("cellRender",t.dateRender)("selectedValue",t.selectedValue)("hoverValue",t.hoverValue)("canSelectWeek","week"===t.panelMode)}}function Xu(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-time-picker-panel",8),e.bIt("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onSelectTime(r))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("nzInDatePicker",!0)("ngModel",null==t.value?null:t.value.nativeDate)("format",t.timeOptions.nzFormat)("nzHourStep",t.timeOptions.nzHourStep)("nzMinuteStep",t.timeOptions.nzMinuteStep)("nzSecondStep",t.timeOptions.nzSecondStep)("nzDisabledHours",t.timeOptions.nzDisabledHours)("nzDisabledMinutes",t.timeOptions.nzDisabledMinutes)("nzDisabledSeconds",t.timeOptions.nzDisabledSeconds)("nzHideDisabledOptions",!!t.timeOptions.nzHideDisabledOptions)("nzDefaultOpenValue",t.timeOptions.nzDefaultOpenValue)("nzUse12Hours",!!t.timeOptions.nzUse12Hours)("nzAddOn",t.timeOptions.nzAddOn)}}const Lu=n=>({partType:n}),Ci=()=>({partType:"left"}),bi=()=>({partType:"right"});function Yu(n,o){1&n&&e.eu8(0)}function Uu(n,o){if(1&n&&e.DNE(0,Yu,1,0,"ng-container",6),2&n){const t=e.XpG(2),i=e.sdS(3);e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(2,Lu,t.datePickerService.activeInput))}}function Wu(n,o){1&n&&e.eu8(0)}function Qu(n,o){1&n&&e.eu8(0)}function Zu(n,o){if(1&n&&e.DNE(0,Wu,1,0,"ng-container",6)(1,Qu,1,0,"ng-container",6),2&n){e.XpG(2);const t=e.sdS(3);e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.lJ4(4,Ci)),e.R7$(),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.lJ4(5,bi))}}function Ku(n,o){1&n&&e.eu8(0)}function Ju(n,o){if(1&n&&(e.j41(0,"div"),e.nrm(1,"div",4),e.j41(2,"div")(3,"div"),e.DNE(4,Uu,1,4,"ng-container")(5,Zu,2,6),e.k0s(),e.DNE(6,Ku,1,0,"ng-container",5),e.k0s()()),2&n){const t=e.XpG(),i=e.sdS(5);e.STu("",t.prefixCls,"-range-wrapper ",t.prefixCls,"-date-range-wrapper"),e.R7$(),e.ZvI("",t.prefixCls,"-range-arrow"),e.Y8G("ngStyle",t.arrowPosition),e.R7$(),e.STu("",t.prefixCls,"-panel-container ",t.showWeek?t.prefixCls+"-week-number":"",""),e.R7$(),e.ZvI("",t.prefixCls,"-panels"),e.R7$(),e.vxM(t.hasTimePicker?4:5),e.R7$(2),e.Y8G("ngTemplateOutlet",i)}}function qu(n,o){1&n&&e.eu8(0)}function ed(n,o){1&n&&e.eu8(0)}function td(n,o){if(1&n&&(e.j41(0,"div")(1,"div",7),e.DNE(2,qu,1,0,"ng-container",5)(3,ed,1,0,"ng-container",5),e.k0s()()),2&n){const t=e.XpG(),i=e.sdS(3),r=e.sdS(5);e.ee0("",t.prefixCls,"-panel-container ",t.showWeek?t.prefixCls+"-week-number":""," ",t.hasTimePicker?t.prefixCls+"-time":""," ",t.isRange?t.prefixCls+"-range":"",""),e.R7$(),e.ZvI("",t.prefixCls,"-panel"),e.AVh("ant-picker-panel-rtl","rtl"===t.dir),e.R7$(),e.Y8G("ngTemplateOutlet",i),e.R7$(),e.Y8G("ngTemplateOutlet",r)}}function nd(n,o){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"inner-popup",8),e.bIt("panelModeChange",function(r){const s=e.eBV(t).partType,a=e.XpG();return e.Njj(a.onPanelModeChange(r,s))})("cellHover",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onCellHover(r))})("selectDate",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.changeValueFromSelect(r,!s.showTime))})("selectTime",function(r){const s=e.eBV(t).partType,a=e.XpG();return e.Njj(a.onSelectTime(r,s))})("headerChange",function(r){const s=e.eBV(t).partType,a=e.XpG();return e.Njj(a.onActiveDateChange(r,s))}),e.k0s()()}if(2&n){const t=o.partType,i=e.XpG();e.ZvI("",i.prefixCls,"-panel"),e.AVh("ant-picker-panel-rtl","rtl"===i.dir),e.R7$(),e.Y8G("showWeek",i.showWeek)("endPanelMode",i.getPanelMode(i.endPanelMode,t))("partType",t)("locale",i.locale)("showTimePicker",i.hasTimePicker)("timeOptions",i.getTimeOptions(t))("panelMode",i.getPanelMode(i.panelMode,t))("activeDate",i.getActiveDate(t))("value",i.getValue(t))("disabledDate",i.disabledDate)("dateRender",i.dateRender)("selectedValue",null==i.datePickerService?null:i.datePickerService.value)("hoverValue",i.hoverValue)}}function id(n,o){if(1&n){const t=e.RV6();e.j41(0,"calendar-footer",10),e.bIt("clickOk",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onClickOk())})("clickToday",function(r){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onClickToday(r))}),e.k0s()}if(2&n){const t=e.XpG(2),i=e.sdS(7);e.Y8G("locale",t.locale)("isRange",t.isRange)("showToday",t.showToday)("showNow",t.showNow)("hasTimePicker",t.hasTimePicker)("okDisabled",!t.isAllowed(null==t.datePickerService?null:t.datePickerService.value))("extraFooter",t.extraFooter)("rangeQuickSelector",t.ranges?i:null)}}function od(n,o){if(1&n&&e.DNE(0,id,1,8,"calendar-footer",9),2&n){const t=e.XpG();e.vxM(t.hasFooter?0:-1)}}function rd(n,o){if(1&n){const t=e.RV6();e.j41(0,"li",11),e.bIt("click",function(){const r=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.onClickPresetRange(s.ranges[r]))})("mouseenter",function(){const r=e.eBV(t).$implicit,s=e.XpG(2);return e.Njj(s.onHoverPresetRange(s.ranges[r]))})("mouseleave",function(){e.eBV(t);const r=e.XpG(2);return e.Njj(r.onPresetRangeMouseLeave())}),e.j41(1,"span",12),e.EFF(2),e.k0s()()}if(2&n){const t=o.$implicit,i=e.XpG(2);e.ZvI("",i.prefixCls,"-preset"),e.R7$(2),e.JRh(t)}}function sd(n,o){if(1&n&&e.Z7z(0,rd,3,4,"li",3,e.fX1),2&n){const t=e.XpG();e.Dyx(t.getObjectKeys(t.ranges))}}const ad=["separatorElement"],cd=["pickerInput"],ld=["rangePickerInput"];function ud(n,o){1&n&&e.eu8(0)}function dd(n,o){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"input",9,3),e.mxI("ngModelChange",function(r){e.eBV(t);const s=e.XpG(2);return e.DH7(s.inputValue,r)||(s.inputValue=r),e.Njj(r)}),e.bIt("focus",function(r){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onFocus(r))})("focusout",function(r){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onFocusout(r))})("ngModelChange",function(r){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onInputChange(r))})("keyup.enter",function(r){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onKeyupEnter(r))}),e.k0s(),e.DNE(3,ud,1,0,"ng-container",10),e.k0s()}if(2&n){const t=e.XpG(2),i=e.sdS(5);e.ZvI("",t.prefixCls,"-input"),e.R7$(),e.AVh("ant-input-disabled",t.nzDisabled),e.FS9("placeholder",t.getPlaceholder()),e.Y8G("disabled",t.nzDisabled)("readOnly",t.nzInputReadOnly),e.R50("ngModel",t.inputValue),e.Y8G("size",t.inputSize),e.BMQ("id",t.nzId),e.R7$(2),e.Y8G("ngTemplateOutlet",i)}}function pd(n,o){1&n&&e.eu8(0)}function fd(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG(4);e.SpI(" ",t.nzSeparator," ")}}function hd(n,o){1&n&&e.nrm(0,"span",13)}function vd(n,o){if(1&n&&(e.qex(0),e.DNE(1,fd,1,1)(2,hd,1,0,"span",13),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.vxM(t.nzSeparator?1:2)}}function md(n,o){1&n&&e.eu8(0)}function gd(n,o){1&n&&e.eu8(0)}function _d(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,pd,1,0,"ng-container",11),e.k0s(),e.j41(2,"div",null,4)(4,"span"),e.DNE(5,vd,3,1,"ng-container",12),e.k0s()(),e.j41(6,"div"),e.DNE(7,md,1,0,"ng-container",11),e.k0s(),e.DNE(8,gd,1,0,"ng-container",10)),2&n){const t=e.XpG(2),i=e.sdS(3),r=e.sdS(5);e.ZvI("",t.prefixCls,"-input"),e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.lJ4(18,Ci)),e.R7$(),e.ZvI("",t.prefixCls,"-range-separator"),e.R7$(2),e.ZvI("",t.prefixCls,"-separator"),e.R7$(),e.Y8G("nzStringTemplateOutlet",t.nzSeparator),e.R7$(),e.ZvI("",t.prefixCls,"-input"),e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.lJ4(19,bi)),e.R7$(),e.Y8G("ngTemplateOutlet",r)}}function yd(n,o){if(1&n&&e.DNE(0,dd,4,12,"div",8)(1,_d,9,20),2&n){const t=e.XpG();e.vxM(t.isRange?1:0)}}function Cd(n,o){}function bd(n,o){if(1&n&&e.DNE(0,Cd,0,0,"ng-template",6),2&n){e.XpG();const t=e.sdS(7);e.Y8G("ngTemplateOutlet",t)}}function xd(n,o){if(1&n){const t=e.RV6();e.j41(0,"input",14,5),e.bIt("click",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onClickInputBox(r))})("focusout",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onFocusout(r))})("focus",function(r){const s=e.eBV(t).partType,a=e.XpG();return e.Njj(a.onFocus(r,s))})("keyup.enter",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onKeyupEnter(r))}),e.mxI("ngModelChange",function(r){const s=e.eBV(t).partType,a=e.XpG();return e.DH7(a.inputValue[a.datePickerService.getActiveIndex(s)],r)||(a.inputValue[a.datePickerService.getActiveIndex(s)]=r),e.Njj(r)}),e.bIt("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onInputChange(r))}),e.k0s()}if(2&n){const t=o.partType,i=e.XpG();e.FS9("placeholder",i.getPlaceholder(t)),e.Y8G("disabled",i.nzDisabled)("readOnly",i.nzInputReadOnly)("size",i.inputSize),e.R50("ngModel",i.inputValue[i.datePickerService.getActiveIndex(t)]),e.BMQ("id",i.nzId)}}function zd(n,o){if(1&n){const t=e.RV6();e.j41(0,"span",17),e.bIt("click",function(r){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onClickClear(r))}),e.nrm(1,"span",18),e.k0s()}if(2&n){const t=e.XpG(2);e.ZvI("",t.prefixCls,"-clear")}}function kd(n,o){if(1&n&&(e.qex(0),e.nrm(1,"span",19),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("nzType",t)}}function Sd(n,o){if(1&n&&e.nrm(0,"nz-form-item-feedback-icon",16),2&n){const t=e.XpG(2);e.Y8G("status",t.status)}}function Td(n,o){if(1&n&&(e.nrm(0,"div",15),e.DNE(1,zd,2,3,"span",8),e.j41(2,"span"),e.DNE(3,kd,2,1,"ng-container",12)(4,Sd,1,1,"nz-form-item-feedback-icon",16),e.k0s()),2&n){const t=e.XpG();e.ZvI("",t.prefixCls,"-active-bar"),e.Y8G("ngStyle",t.activeBarStyle),e.R7$(),e.vxM(t.showClear?1:-1),e.R7$(),e.ZvI("",t.prefixCls,"-suffix"),e.R7$(),e.Y8G("nzStringTemplateOutlet",t.nzSuffixIcon),e.R7$(),e.vxM(t.hasFeedback&&t.status?4:-1)}}function Md(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",15)(1,"date-range-popup",20),e.bIt("panelModeChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onPanelModeChange(r))})("calendarChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onCalendarChange(r))})("resultOk",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onResultOk())}),e.k0s()()}if(2&n){const t=e.XpG();e.STu("",t.prefixCls,"-dropdown ",t.nzDropdownClassName,""),e.AVh("ant-picker-dropdown-rtl","rtl"===t.dir)("ant-picker-dropdown-placement-bottomLeft","bottom"===t.currentPositionY&&"start"===t.currentPositionX)("ant-picker-dropdown-placement-topLeft","top"===t.currentPositionY&&"start"===t.currentPositionX)("ant-picker-dropdown-placement-bottomRight","bottom"===t.currentPositionY&&"end"===t.currentPositionX)("ant-picker-dropdown-placement-topRight","top"===t.currentPositionY&&"end"===t.currentPositionX)("ant-picker-dropdown-range",t.isRange)("ant-picker-active-left","left"===t.datePickerService.activeInput)("ant-picker-active-right","right"===t.datePickerService.activeInput),e.Y8G("ngStyle",t.nzPopupStyle),e.R7$(),e.Y8G("isRange",t.isRange)("inline",t.nzInline)("defaultPickerValue",t.nzDefaultPickerValue)("showWeek",t.nzShowWeekNumber||"week"===t.nzMode)("panelMode",t.panelMode)("locale",null==t.nzLocale?null:t.nzLocale.lang)("showToday","date"===t.nzMode&&t.nzShowToday&&!t.isRange&&!t.nzShowTime)("showNow","date"===t.nzMode&&t.nzShowNow&&!t.isRange&&!!t.nzShowTime)("showTime",t.nzShowTime)("dateRender",t.nzDateRender)("disabledDate",t.nzDisabledDate)("disabledTime",t.nzDisabledTime)("extraFooter",t.extraFooter)("ranges",t.nzRanges)("dir",t.dir)}}function Dd(n,o){1&n&&e.eu8(0)}function Fd(n,o){if(1&n&&(e.j41(0,"div",21),e.DNE(1,Dd,1,0,"ng-container",10),e.k0s()),2&n){const t=e.XpG(),i=e.sdS(7);e.xc7("position","relative"),e.Y8G("nzNoAnimation",!(null==t.noAnimation||!t.noAnimation.nzNoAnimation))("@slideMotion","enter"),e.R7$(),e.Y8G("ngTemplateOutlet",i)}}const Zt="ant-picker",Id={nzDisabledHours:()=>[],nzDisabledMinutes:()=>[],nzDisabledSeconds:()=>[]};function xi(n,o){let t=o?o(n&&n.nativeDate):{};return t={...Id,...t},t}function Kt(n,o,t){return!(!n||o&&o(n.nativeDate)||t&&!function Rd(n,o){return function wd(n,o){let t=!1;if(n){const i=n.getHours(),r=n.getMinutes(),s=n.getSeconds();t=-1!==o.nzDisabledHours().indexOf(i)||-1!==o.nzDisabledMinutes(i).indexOf(r)||-1!==o.nzDisabledSeconds(i,r).indexOf(s)}return!t}(n,xi(n,o))}(n,t))}function It(n){return n&&n.replace(/Y/g,"y").replace(/D/g,"d")}let zi=(()=>{class n{constructor(t){this.dateHelper=t,this.showToday=!1,this.showNow=!1,this.hasTimePicker=!1,this.isRange=!1,this.okDisabled=!1,this.rangeQuickSelector=null,this.clickOk=new e.bkB,this.clickToday=new e.bkB,this.prefixCls=Zt,this.isTemplateRef=I.my,this.isNonEmptyString=I.uI,this.isTodayDisabled=!1,this.todayTitle=""}ngOnChanges(t){const i=new Date;if(t.disabledDate&&(this.isTodayDisabled=!(!this.disabledDate||!this.disabledDate(i))),t.locale){const r=It(this.locale.dateFormat);this.todayTitle=this.dateHelper.format(i,r)}}onClickToday(){const t=new $.KV;this.clickToday.emit(t.clone())}get isExtraFooterTemplateRef(){return(0,I.my)(this.extraFooter)}get isExtraFooterNonEmptyString(){return(0,I.uI)(this.extraFooter)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(q.cr))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["calendar-footer"]],inputs:{locale:"locale",showToday:[2,"showToday","showToday",e.L39],showNow:[2,"showNow","showNow",e.L39],hasTimePicker:[2,"hasTimePicker","hasTimePicker",e.L39],isRange:[2,"isRange","isRange",e.L39],okDisabled:[2,"okDisabled","okDisabled",e.L39],disabledDate:"disabledDate",extraFooter:"extraFooter",rangeQuickSelector:"rangeQuickSelector"},outputs:{clickOk:"clickOk",clickToday:"clickToday"},exportAs:["calendarFooter"],standalone:!0,features:[e.GFd,e.OA$,e.aNF],decls:4,vars:6,consts:[[3,"class"],["role","button",3,"class","title"],[3,"innerHTML"],[4,"ngTemplateOutlet"],["role","button",3,"click","title"],[3,"click"],["nz-button","","type","button","nzType","primary","nzSize","small",3,"click","disabled"]],template:function(i,r){1&i&&(e.j41(0,"div"),e.DNE(1,nl,3,5,"div",0)(2,il,2,6,"a",1)(3,al,4,6,"ul",0),e.k0s()),2&i&&(e.ZvI("",r.prefixCls,"-footer"),e.R7$(),e.vxM(r.extraFooter?1:-1),e.R7$(),e.vxM(r.showToday?2:-1),e.R7$(),e.vxM(r.hasTimePicker||r.rangeQuickSelector?3:-1))},dependencies:[z.T3,st.Zw,st.aO,Rn.c,Pn.p],encapsulation:2,changeDetection:0})}return n})(),Vn=(()=>{class n{constructor(){this.activeInput="left",this.arrowLeft=0,this.isRange=!1,this.valueChange$=new Cc.m(1),this.emitValue$=new j.B,this.inputPartChange$=new j.B}initValue(t=!1){t&&(this.initialValue=this.isRange?[]:null),this.setValue(this.initialValue)}hasValue(t=this.value){return Array.isArray(t)?!!t[0]||!!t[1]:!!t}makeValue(t){return this.isRange?t?t.map(i=>new $.KV(i)):[]:t?new $.KV(t):null}setActiveDate(t,i=!1,r="month"){this.activeDate=this.isRange?(0,$.aV)(t,i,{date:"month",month:"year",quarter:"year",year:"decade"}[r],this.activeInput):(0,$.ad)(t)}setValue(t){this.value=t,this.valueChange$.next(this.value)}getActiveIndex(t=this.activeInput){return{left:0,right:1}[t]}ngOnDestroy(){this.valueChange$.complete(),this.emitValue$.complete(),this.inputPartChange$.complete()}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}return n})(),wt=(()=>{class n{constructor(){this.prefixCls="ant-picker-header",this.selectors=[],this.showSuperPreBtn=!0,this.showSuperNextBtn=!0,this.showPreBtn=!0,this.showNextBtn=!0,this.panelModeChange=new e.bkB,this.valueChange=new e.bkB}superPreviousTitle(){return this.locale.previousYear}previousTitle(){return this.locale.previousMonth}superNextTitle(){return this.locale.nextYear}nextTitle(){return this.locale.nextMonth}superPrevious(){this.changeValue(this.value.addYears(-1))}superNext(){this.changeValue(this.value.addYears(1))}previous(){this.changeValue(this.value.addMonths(-1))}next(){this.changeValue(this.value.addMonths(1))}changeValue(t){this.value!==t&&(this.value=t,this.valueChange.emit(this.value),this.render())}changeMode(t){this.panelModeChange.emit(t)}render(){this.value&&(this.selectors=this.getSelectors())}ngOnInit(){this.value||(this.value=new $.KV),this.selectors=this.getSelectors()}ngOnChanges(t){(t.value||t.locale)&&this.render()}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275dir=e.FsC({type:n,inputs:{value:"value",locale:"locale",showSuperPreBtn:[2,"showSuperPreBtn","showSuperPreBtn",e.L39],showSuperNextBtn:[2,"showSuperNextBtn","showSuperNextBtn",e.L39],showPreBtn:[2,"showPreBtn","showPreBtn",e.L39],showNextBtn:[2,"showNextBtn","showNextBtn",e.L39]},outputs:{panelModeChange:"panelModeChange",valueChange:"valueChange"},features:[e.GFd,e.OA$]})}return n})(),Pd=(()=>{class n extends wt{previous(){}next(){}get startYear(){return 100*parseInt(""+this.value.getYear()/100,10)}get endYear(){return this.startYear+99}superPrevious(){this.changeValue(this.value.addYears(-100))}superNext(){this.changeValue(this.value.addYears(100))}getSelectors(){return[{className:`${this.prefixCls}-decade-btn`,title:"",onClick:()=>{},label:`${this.startYear}-${this.endYear}`}]}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=e.xGo(n)))(r||n)}})();static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["decade-header"]],exportAs:["decadeHeader"],standalone:!0,features:[e.Vt3,e.aNF],decls:12,vars:30,consts:[["role","button","type","button","tabindex","-1",3,"click","title"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],["role","button","type","button",3,"class","title"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"click","title"]],template:function(i,r){1&i&&(e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return r.superPrevious()}),e.nrm(2,"span",1),e.k0s(),e.j41(3,"button",0),e.bIt("click",function(){return r.previous()}),e.nrm(4,"span",2),e.k0s(),e.j41(5,"div"),e.Z7z(6,cl,2,5,"button",3,e.fX1),e.k0s(),e.j41(8,"button",0),e.bIt("click",function(){return r.next()}),e.nrm(9,"span",4),e.k0s(),e.j41(10,"button",0),e.bIt("click",function(){return r.superNext()}),e.nrm(11,"span",5),e.k0s()()),2&i&&(e.HbH(r.prefixCls),e.R7$(),e.ZvI("",r.prefixCls,"-super-prev-btn"),e.xc7("visibility",r.showSuperPreBtn?"visible":"hidden"),e.FS9("title",r.superPreviousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-prev-btn"),e.xc7("visibility",r.showPreBtn?"visible":"hidden"),e.FS9("title",r.previousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-view"),e.R7$(),e.Dyx(r.selectors),e.R7$(2),e.ZvI("",r.prefixCls,"-next-btn"),e.xc7("visibility",r.showNextBtn?"visible":"hidden"),e.FS9("title",r.nextTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-super-next-btn"),e.xc7("visibility",r.showSuperNextBtn?"visible":"hidden"),e.FS9("title",r.superNextTitle()))},encapsulation:2,changeDetection:0})}return n})(),Rt=(()=>{class n{constructor(){this.headRow=[],this.bodyRows=[],this.MAX_ROW=6,this.MAX_COL=7,this.prefixCls="ant-picker",this.activeDate=new $.KV,this.showWeek=!1,this.selectedValue=[],this.hoverValue=[],this.canSelectWeek=!1,this.valueChange=new e.bkB,this.cellHover=new e.bkB}render(){this.activeDate&&(this.headRow=this.makeHeadRow(),this.bodyRows=this.makeBodyRows())}hasRangeValue(){return this.selectedValue?.length>0||this.hoverValue?.length>0}getClassMap(t){return{"ant-picker-cell":!0,"ant-picker-cell-in-view":!0,"ant-picker-cell-selected":t.isSelected,"ant-picker-cell-disabled":t.isDisabled,"ant-picker-cell-in-range":!!t.isInSelectedRange,"ant-picker-cell-range-start":!!t.isSelectedStart,"ant-picker-cell-range-end":!!t.isSelectedEnd,"ant-picker-cell-range-start-single":!!t.isStartSingle,"ant-picker-cell-range-end-single":!!t.isEndSingle,"ant-picker-cell-range-hover":!!t.isInHoverRange,"ant-picker-cell-range-hover-start":!!t.isHoverStart,"ant-picker-cell-range-hover-end":!!t.isHoverEnd,"ant-picker-cell-range-hover-edge-start":!!t.isFirstCellInPanel,"ant-picker-cell-range-hover-edge-end":!!t.isLastCellInPanel,"ant-picker-cell-range-start-near-hover":!!t.isRangeStartNearHover,"ant-picker-cell-range-end-near-hover":!!t.isRangeEndNearHover}}ngOnInit(){this.render()}ngOnChanges(t){t.activeDate&&!t.activeDate.currentValue&&(this.activeDate=new $.KV),(t.disabledDate||t.locale||t.showWeek||t.selectWeek||this.isDateRealChange(t.activeDate)||this.isDateRealChange(t.value)||this.isDateRealChange(t.selectedValue)||this.isDateRealChange(t.hoverValue))&&this.render()}isDateRealChange(t){if(t){const i=t.previousValue,r=t.currentValue;return Array.isArray(r)?!Array.isArray(i)||r.length!==i.length||r.some((s,a)=>{const c=i[a];return c instanceof $.KV?c.isSameDay(s):c!==s}):!this.isSameDate(i,r)}return!1}isSameDate(t,i){return!t&&!i||t&&i&&i.isSameDay(t)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275dir=e.FsC({type:n,inputs:{prefixCls:"prefixCls",value:"value",locale:"locale",activeDate:"activeDate",showWeek:[2,"showWeek","showWeek",e.L39],selectedValue:"selectedValue",hoverValue:"hoverValue",disabledDate:"disabledDate",cellRender:"cellRender",fullCellRender:"fullCellRender",canSelectWeek:[2,"canSelectWeek","canSelectWeek",e.L39]},outputs:{valueChange:"valueChange",cellHover:"cellHover"},features:[e.GFd,e.OA$]})}return n})(),Nd=(()=>{class n extends Rt{get startYear(){return 100*parseInt(""+this.activeDate.getYear()/100,10)}get endYear(){return this.startYear+99}makeHeadRow(){return[]}makeBodyRows(){const t=[],i=this.value&&this.value.getYear(),r=this.startYear,s=this.endYear,a=r-10;let c=0;for(let l=0;l<4;l++){const u={dateCells:[],trackByIndex:l};for(let d=0;d<3;d++){const p=a+10*c,v=a+10*c+9,g=`${p}-${v}`,C={trackByIndex:d,value:this.activeDate.setYear(p).nativeDate,content:g,title:g,isDisabled:!1,isSelected:i>=p&&i<=v,isLowerThanStart:vs,classMap:{},onClick(){},onMouseEnter(){}};C.classMap=this.getClassMap(C),C.onClick=()=>this.chooseDecade(p),c++,u.dateCells.push(C)}t.push(u)}return t}getClassMap(t){return{[`${this.prefixCls}-cell`]:!0,[`${this.prefixCls}-cell-in-view`]:!t.isBiggerThanEnd&&!t.isLowerThanStart,[`${this.prefixCls}-cell-selected`]:t.isSelected,[`${this.prefixCls}-cell-disabled`]:t.isDisabled}}chooseDecade(t){this.value=this.activeDate.setYear(t),this.valueChange.emit(this.value)}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=e.xGo(n)))(r||n)}})();static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["decade-table"]],exportAs:["decadeTable"],standalone:!0,features:[e.Vt3,e.aNF],decls:5,vars:1,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],["role","row",3,"ngClass"],["role","row"],["role","columnheader"],["role","columnheader",3,"title"],["role","gridcell",3,"class"],["role","gridcell",3,"title","ngClass"],["role","gridcell"],["role","gridcell",3,"click","mouseenter","title","ngClass"],[3,"class","ant-picker-calendar-date-today"],[3,"innerHTML"],[3,"class"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(e.j41(0,"table",0),e.DNE(1,dl,5,1,"thead"),e.j41(2,"tbody"),e.Z7z(3,kl,4,2,"tr",1,xe),e.k0s()()),2&i&&(e.R7$(),e.vxM(r.headRow&&r.headRow.length>0?1:-1),e.R7$(2),e.Dyx(r.bodyRows))},dependencies:[z.YU,z.T3],encapsulation:2,changeDetection:0})}return n})(),Ad=(()=>{class n extends wt{get startYear(){return 10*parseInt(""+this.value.getYear()/10,10)}get endYear(){return this.startYear+9}superPrevious(){this.changeValue(this.value.addYears(-10))}superNext(){this.changeValue(this.value.addYears(10))}getSelectors(){return[{className:`${this.prefixCls}-year-btn`,title:"",onClick:()=>this.changeMode("decade"),label:`${this.startYear}-${this.endYear}`}]}static#e=this.\u0275fac=(()=>{let t;return function(r){return(t||(t=e.xGo(n)))(r||n)}})();static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["year-header"]],exportAs:["yearHeader"],standalone:!0,features:[e.Vt3,e.aNF],decls:12,vars:30,consts:[["role","button","type","button","tabindex","-1",3,"click","title"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],["role","button","type","button",3,"class","title"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"click","title"]],template:function(i,r){1&i&&(e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return r.superPrevious()}),e.nrm(2,"span",1),e.k0s(),e.j41(3,"button",0),e.bIt("click",function(){return r.previous()}),e.nrm(4,"span",2),e.k0s(),e.j41(5,"div"),e.Z7z(6,Sl,2,5,"button",3,e.fX1),e.k0s(),e.j41(8,"button",0),e.bIt("click",function(){return r.next()}),e.nrm(9,"span",4),e.k0s(),e.j41(10,"button",0),e.bIt("click",function(){return r.superNext()}),e.nrm(11,"span",5),e.k0s()()),2&i&&(e.HbH(r.prefixCls),e.R7$(),e.ZvI("",r.prefixCls,"-super-prev-btn"),e.xc7("visibility",r.showSuperPreBtn?"visible":"hidden"),e.FS9("title",r.superPreviousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-prev-btn"),e.xc7("visibility",r.showPreBtn?"visible":"hidden"),e.FS9("title",r.previousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-view"),e.R7$(),e.Dyx(r.selectors),e.R7$(2),e.ZvI("",r.prefixCls,"-next-btn"),e.xc7("visibility",r.showNextBtn?"visible":"hidden"),e.FS9("title",r.nextTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-super-next-btn"),e.xc7("visibility",r.showSuperNextBtn?"visible":"hidden"),e.FS9("title",r.superNextTitle()))},encapsulation:2,changeDetection:0})}return n})(),$d=(()=>{class n extends Rt{constructor(t){super(),this.dateHelper=t,this.MAX_ROW=4,this.MAX_COL=3}makeHeadRow(){return[]}makeBodyRows(){const t=this.activeDate&&this.activeDate.getYear(),i=10*parseInt(""+t/10,10),r=i+9,s=i-1,a=[];let c=0;for(let l=0;l=i&&p<=r,isSelected:p===(this.value&&this.value.getYear()),content:g,title:g,classMap:{},isLastCellInPanel:v.getYear()===r,isFirstCellInPanel:v.getYear()===i,cellRender:(0,I.XQ)(this.cellRender,v),fullCellRender:(0,I.XQ)(this.fullCellRender,v),onClick:()=>this.chooseYear(T.value.getFullYear()),onMouseEnter:()=>this.cellHover.emit(v)};this.addCellProperty(T,v),u.dateCells.push(T),c++}a.push(u)}return a}getClassMap(t){return{...super.getClassMap(t),"ant-picker-cell-in-view":!!t.isSameDecade}}isDisabledYear(t){if(!this.disabledDate)return!1;for(let r=t.setMonth(0).setDate(1);r.getYear()===t.getYear();r=r.addDays(1))if(!this.disabledDate(r.nativeDate))return!1;return!0}addCellProperty(t,i){if(this.hasRangeValue()){const[r,s]=this.hoverValue,[a,c]=this.selectedValue;a?.isSameYear(i)&&(t.isSelectedStart=!0,t.isSelected=!0),c?.isSameYear(i)&&(t.isSelectedEnd=!0,t.isSelected=!0),r&&s&&(t.isHoverStart=r.isSameYear(i),t.isHoverEnd=s.isSameYear(i),t.isInHoverRange=r.isBeforeYear(i)&&i.isBeforeYear(s)),t.isStartSingle=a&&!c,t.isEndSingle=!a&&c,t.isInSelectedRange=a?.isBeforeYear(i)&&i?.isBeforeYear(c),t.isRangeStartNearHover=a&&t.isInHoverRange,t.isRangeEndNearHover=c&&t.isInHoverRange}else i.isSameYear(this.value)&&(t.isSelected=!0);t.classMap=this.getClassMap(t)}chooseYear(t){this.value=this.activeDate.setYear(t),this.valueChange.emit(this.value),this.render()}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(q.cr))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["year-table"]],exportAs:["yearTable"],standalone:!0,features:[e.Vt3,e.aNF],decls:5,vars:1,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],["role","row",3,"ngClass"],["role","row"],["role","columnheader"],["role","columnheader",3,"title"],["role","gridcell",3,"class"],["role","gridcell",3,"title","ngClass"],["role","gridcell"],["role","gridcell",3,"click","mouseenter","title","ngClass"],[3,"class","ant-picker-calendar-date-today"],[3,"innerHTML"],[3,"class"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(e.j41(0,"table",0),e.DNE(1,Dl,5,1,"thead"),e.j41(2,"tbody"),e.Z7z(3,Bl,4,2,"tr",1,xe),e.k0s()()),2&i&&(e.R7$(),e.vxM(r.headRow&&r.headRow.length>0?1:-1),e.R7$(2),e.Dyx(r.bodyRows))},dependencies:[z.YU,z.T3],encapsulation:2,changeDetection:0})}return n})(),Vd=(()=>{class n extends wt{constructor(t){super(),this.dateHelper=t}getSelectors(){return[{className:`${this.prefixCls}-quarter-btn`,title:this.locale.yearSelect,onClick:()=>this.changeMode("year"),label:this.dateHelper.format(this.value.nativeDate,It(this.locale.yearFormat))}]}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(q.cr))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["quarter-header"]],exportAs:["quarterHeader"],standalone:!0,features:[e.Vt3,e.aNF],decls:12,vars:30,consts:[["role","button","type","button","tabindex","-1",3,"click","title"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],["role","button","type","button",3,"class","title"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"click","title"]],template:function(i,r){1&i&&(e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return r.superPrevious()}),e.nrm(2,"span",1),e.k0s(),e.j41(3,"button",0),e.bIt("click",function(){return r.previous()}),e.nrm(4,"span",2),e.k0s(),e.j41(5,"div"),e.Z7z(6,Gl,2,5,"button",3,e.fX1),e.k0s(),e.j41(8,"button",0),e.bIt("click",function(){return r.next()}),e.nrm(9,"span",4),e.k0s(),e.j41(10,"button",0),e.bIt("click",function(){return r.superNext()}),e.nrm(11,"span",5),e.k0s()()),2&i&&(e.HbH(r.prefixCls),e.R7$(),e.ZvI("",r.prefixCls,"-super-prev-btn"),e.xc7("visibility",r.showSuperPreBtn?"visible":"hidden"),e.FS9("title",r.superPreviousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-prev-btn"),e.xc7("visibility",r.showPreBtn?"visible":"hidden"),e.FS9("title",r.previousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-view"),e.R7$(),e.Dyx(r.selectors),e.R7$(2),e.ZvI("",r.prefixCls,"-next-btn"),e.xc7("visibility",r.showNextBtn?"visible":"hidden"),e.FS9("title",r.nextTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-super-next-btn"),e.xc7("visibility",r.showSuperNextBtn?"visible":"hidden"),e.FS9("title",r.superNextTitle()))},encapsulation:2,changeDetection:0})}return n})(),jd=(()=>{class n extends Rt{constructor(t){super(),this.dateHelper=t,this.MAX_ROW=1,this.MAX_COL=4}changeValueFromInside(t){this.activeDate=t.clone(),this.valueChange.emit(this.activeDate),this.activeDate.isSameQuarter(this.value)||this.render()}makeHeadRow(){return[]}makeBodyRows(){const t=[],i=[{dateCells:t,trackByIndex:0}];let r=1;for(let s=1;s<=this.MAX_COL;s++,r++){const a=this.activeDate.setQuarter(r),c=this.isDisabledQuarter(a),l=this.dateHelper.format(a.nativeDate,"[Q]Q"),u={trackByIndex:s,value:a.nativeDate,isDisabled:c,isSelected:a.isSameQuarter(this.value),content:l,title:l,classMap:{},cellRender:(0,I.XQ)(this.cellRender,a),fullCellRender:(0,I.XQ)(this.fullCellRender,a),onClick:()=>this.changeValueFromInside(a),onMouseEnter:()=>this.cellHover.emit(a)};this.addCellProperty(u,a),t.push(u)}return i}isDisabledQuarter(t){if(!this.disabledDate)return!1;for(let r=new $.KV((0,Kc.A)(t.nativeDate));r.getQuarter()===t.getQuarter();r=r.addMonths(1))if(!this.disabledDate(r.nativeDate))return!1;return!0}addCellProperty(t,i){if(t.isTemplateRef=(0,I.my)(t.cellRender),t.isNonEmptyString=(0,I.uI)(t.cellRender),this.hasRangeValue()){const[r,s]=this.hoverValue,[a,c]=this.selectedValue;a?.isSameQuarter(i)&&(t.isSelectedStart=!0,t.isSelected=!0),c?.isSameQuarter(i)&&(t.isSelectedEnd=!0,t.isSelected=!0),r&&s&&(t.isHoverStart=r.isSameQuarter(i),t.isHoverEnd=s.isSameQuarter(i),t.isLastCellInPanel=4===i.getQuarter(),t.isFirstCellInPanel=1===i.getQuarter(),t.isInHoverRange=r.isBeforeQuarter(i)&&i.isBeforeQuarter(s)),t.isStartSingle=a&&!c,t.isEndSingle=!a&&c,t.isInSelectedRange=a?.isBeforeQuarter(i)&&i?.isBeforeQuarter(c),t.isRangeStartNearHover=a&&t.isInHoverRange,t.isRangeEndNearHover=c&&t.isInHoverRange}else i.isSameQuarter(this.value)&&(t.isSelected=!0);t.classMap=this.getClassMap(t)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(q.cr))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["quarter-table"]],exportAs:["quarterTable"],standalone:!0,features:[e.Vt3,e.aNF],decls:5,vars:1,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],["role","row",3,"ngClass"],["role","row"],["role","columnheader"],["role","columnheader",3,"title"],["role","gridcell",3,"class"],["role","gridcell",3,"title","ngClass"],["role","gridcell"],["role","gridcell",3,"click","mouseenter","title","ngClass"],[3,"class","ant-picker-calendar-date-today"],[3,"innerHTML"],[3,"class"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(e.j41(0,"table",0),e.DNE(1,Ll,5,1,"thead"),e.j41(2,"tbody"),e.Z7z(3,ou,4,2,"tr",1,xe),e.k0s()()),2&i&&(e.R7$(),e.vxM(r.headRow&&r.headRow.length>0?1:-1),e.R7$(2),e.Dyx(r.bodyRows))},dependencies:[z.YU,z.T3],encapsulation:2,changeDetection:0})}return n})(),Bd=(()=>{class n extends wt{constructor(t){super(),this.dateHelper=t}getSelectors(){return[{className:`${this.prefixCls}-month-btn`,title:this.locale.yearSelect,onClick:()=>this.changeMode("year"),label:this.dateHelper.format(this.value.nativeDate,It(this.locale.yearFormat))}]}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(q.cr))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["month-header"]],exportAs:["monthHeader"],standalone:!0,features:[e.Vt3,e.aNF],decls:12,vars:30,consts:[["role","button","type","button","tabindex","-1",3,"click","title"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],["role","button","type","button",3,"class","title"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"click","title"]],template:function(i,r){1&i&&(e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return r.superPrevious()}),e.nrm(2,"span",1),e.k0s(),e.j41(3,"button",0),e.bIt("click",function(){return r.previous()}),e.nrm(4,"span",2),e.k0s(),e.j41(5,"div"),e.Z7z(6,ru,2,5,"button",3,e.fX1),e.k0s(),e.j41(8,"button",0),e.bIt("click",function(){return r.next()}),e.nrm(9,"span",4),e.k0s(),e.j41(10,"button",0),e.bIt("click",function(){return r.superNext()}),e.nrm(11,"span",5),e.k0s()()),2&i&&(e.HbH(r.prefixCls),e.R7$(),e.ZvI("",r.prefixCls,"-super-prev-btn"),e.xc7("visibility",r.showSuperPreBtn?"visible":"hidden"),e.FS9("title",r.superPreviousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-prev-btn"),e.xc7("visibility",r.showPreBtn?"visible":"hidden"),e.FS9("title",r.previousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-view"),e.R7$(),e.Dyx(r.selectors),e.R7$(2),e.ZvI("",r.prefixCls,"-next-btn"),e.xc7("visibility",r.showNextBtn?"visible":"hidden"),e.FS9("title",r.nextTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-super-next-btn"),e.xc7("visibility",r.showSuperNextBtn?"visible":"hidden"),e.FS9("title",r.superNextTitle()))},encapsulation:2,changeDetection:0})}return n})(),Gd=(()=>{class n extends Rt{constructor(t){super(),this.dateHelper=t,this.MAX_ROW=4,this.MAX_COL=3}makeHeadRow(){return[]}makeBodyRows(){const t=[];let i=0;for(let r=0;rthis.chooseMonth(d.value.getMonth()),onMouseEnter:()=>this.cellHover.emit(c)};this.addCellProperty(d,c),s.dateCells.push(d),i++}t.push(s)}return t}isDisabledMonth(t){if(!this.disabledDate)return!1;for(let r=t.setDate(1);r.getMonth()===t.getMonth();r=r.addDays(1))if(!this.disabledDate(r.nativeDate))return!1;return!0}addCellProperty(t,i){if(this.hasRangeValue()){const[r,s]=this.hoverValue,[a,c]=this.selectedValue;a?.isSameMonth(i)&&(t.isSelectedStart=!0,t.isSelected=!0),c?.isSameMonth(i)&&(t.isSelectedEnd=!0,t.isSelected=!0),r&&s&&(t.isHoverStart=r.isSameMonth(i),t.isHoverEnd=s.isSameMonth(i),t.isLastCellInPanel=11===i.getMonth(),t.isFirstCellInPanel=0===i.getMonth(),t.isInHoverRange=r.isBeforeMonth(i)&&i.isBeforeMonth(s)),t.isStartSingle=a&&!c,t.isEndSingle=!a&&c,t.isInSelectedRange=a?.isBeforeMonth(i)&&i?.isBeforeMonth(c),t.isRangeStartNearHover=a&&t.isInHoverRange,t.isRangeEndNearHover=c&&t.isInHoverRange}else i.isSameMonth(this.value)&&(t.isSelected=!0);t.classMap=this.getClassMap(t)}chooseMonth(t){this.value=this.activeDate.setMonth(t),this.valueChange.emit(this.value)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(q.cr))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["month-table"]],exportAs:["monthTable"],standalone:!0,features:[e.Vt3,e.aNF],decls:5,vars:1,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],["role","row",3,"ngClass"],["role","row"],["role","columnheader"],["role","columnheader",3,"title"],["role","gridcell",3,"class"],["role","gridcell",3,"title","ngClass"],["role","gridcell"],["role","gridcell",3,"click","mouseenter","title","ngClass"],[3,"class","ant-picker-calendar-date-today"],[3,"innerHTML"],[3,"class"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(e.j41(0,"table",0),e.DNE(1,cu,5,1,"thead"),e.j41(2,"tbody"),e.Z7z(3,bu,4,2,"tr",1,xe),e.k0s()()),2&i&&(e.R7$(),e.vxM(r.headRow&&r.headRow.length>0?1:-1),e.R7$(2),e.Dyx(r.bodyRows))},dependencies:[z.YU,z.T3],encapsulation:2,changeDetection:0})}return n})(),Hd=(()=>{class n extends wt{constructor(t){super(),this.dateHelper=t}getSelectors(){return[{className:`${this.prefixCls}-year-btn`,title:this.locale.yearSelect,onClick:()=>this.changeMode("year"),label:this.dateHelper.format(this.value.nativeDate,It(this.locale.yearFormat))},{className:`${this.prefixCls}-month-btn`,title:this.locale.monthSelect,onClick:()=>this.changeMode("month"),label:this.dateHelper.format(this.value.nativeDate,this.locale.monthFormat||"MMM")}]}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(q.cr))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["date-header"]],exportAs:["dateHeader"],standalone:!0,features:[e.Vt3,e.aNF],decls:12,vars:30,consts:[["role","button","type","button","tabindex","-1",3,"click","title"],[1,"ant-picker-super-prev-icon"],[1,"ant-picker-prev-icon"],["role","button","type","button",3,"class","title"],[1,"ant-picker-next-icon"],[1,"ant-picker-super-next-icon"],["role","button","type","button",3,"click","title"]],template:function(i,r){1&i&&(e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return r.superPrevious()}),e.nrm(2,"span",1),e.k0s(),e.j41(3,"button",0),e.bIt("click",function(){return r.previous()}),e.nrm(4,"span",2),e.k0s(),e.j41(5,"div"),e.Z7z(6,xu,2,5,"button",3,e.fX1),e.k0s(),e.j41(8,"button",0),e.bIt("click",function(){return r.next()}),e.nrm(9,"span",4),e.k0s(),e.j41(10,"button",0),e.bIt("click",function(){return r.superNext()}),e.nrm(11,"span",5),e.k0s()()),2&i&&(e.HbH(r.prefixCls),e.R7$(),e.ZvI("",r.prefixCls,"-super-prev-btn"),e.xc7("visibility",r.showSuperPreBtn?"visible":"hidden"),e.FS9("title",r.superPreviousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-prev-btn"),e.xc7("visibility",r.showPreBtn?"visible":"hidden"),e.FS9("title",r.previousTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-view"),e.R7$(),e.Dyx(r.selectors),e.R7$(2),e.ZvI("",r.prefixCls,"-next-btn"),e.xc7("visibility",r.showNextBtn?"visible":"hidden"),e.FS9("title",r.nextTitle()),e.R7$(2),e.ZvI("",r.prefixCls,"-super-next-btn"),e.xc7("visibility",r.showSuperNextBtn?"visible":"hidden"),e.FS9("title",r.superNextTitle()))},encapsulation:2,changeDetection:0})}return n})(),Xd=(()=>{class n extends Rt{constructor(t,i){super(),this.i18n=t,this.dateHelper=i}changeValueFromInside(t){this.activeDate=this.activeDate.setYear(t.getYear()).setMonth(t.getMonth()).setDate(t.getDate()),this.valueChange.emit(this.activeDate),this.activeDate.isSameMonth(this.value)||this.render()}makeHeadRow(){const t=[],i=this.activeDate.calendarStart({weekStartsOn:this.dateHelper.getFirstDayOfWeek()});for(let r=0;rthis.changeValueFromInside(l),onMouseEnter:()=>this.cellHover.emit(l)};this.addCellProperty(v,l),this.showWeek&&!a.weekNum&&(a.weekNum=this.dateHelper.getISOWeek(l.nativeDate)),l.isSameDay(this.value)&&(a.isActive=l.isSameDay(this.value)),a.dateCells.push(v)}a.classMap={"ant-picker-week-panel-row":this.canSelectWeek,"ant-picker-week-panel-row-selected":this.canSelectWeek&&a.isActive},t.push(a)}return t}addCellProperty(t,i){if(t.isTemplateRef=(0,I.my)(t.cellRender),t.isNonEmptyString=(0,I.uI)(t.cellRender),this.hasRangeValue()&&!this.canSelectWeek){const[r,s]=this.hoverValue,[a,c]=this.selectedValue;a?.isSameDay(i)&&(t.isSelectedStart=!0,t.isSelected=!0),c?.isSameDay(i)&&(t.isSelectedEnd=!0,t.isSelected=!0),r&&s&&(t.isHoverStart=r.isSameDay(i),t.isHoverEnd=s.isSameDay(i),t.isLastCellInPanel=i.isLastDayOfMonth(),t.isFirstCellInPanel=i.isFirstDayOfMonth(),t.isInHoverRange=r.isBeforeDay(i)&&i.isBeforeDay(s)),t.isStartSingle=a&&!c,t.isEndSingle=!a&&c,t.isInSelectedRange=a?.isBeforeDay(i)&&i.isBeforeDay(c),t.isRangeStartNearHover=a&&t.isInHoverRange,t.isRangeEndNearHover=c&&t.isInHoverRange}t.isToday=i.isToday(),t.isSelected=i.isSameDay(this.value),t.isDisabled=!!this.disabledDate?.(i.nativeDate),t.classMap=this.getClassMap(t)}getClassMap(t){const i=new $.KV(t.value);return{...super.getClassMap(t),"ant-picker-cell-today":!!t.isToday,"ant-picker-cell-in-view":i.isSameMonth(this.activeDate)}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(q.Og),e.rXU(q.cr))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["date-table"]],inputs:{locale:"locale"},exportAs:["dateTable"],standalone:!0,features:[e.Vt3,e.aNF],decls:5,vars:1,consts:[["cellspacing","0","role","grid",1,"ant-picker-content"],["role","row",3,"ngClass"],["role","row"],["role","columnheader"],["role","columnheader",3,"title"],["role","gridcell",3,"class"],["role","gridcell",3,"title","ngClass"],["role","gridcell"],["role","gridcell",3,"click","mouseenter","title","ngClass"],[3,"class","ant-picker-calendar-date-today"],[3,"innerHTML"],[3,"class"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(e.j41(0,"table",0),e.DNE(1,Su,5,1,"thead"),e.j41(2,"tbody"),e.Z7z(3,$u,4,2,"tr",1,xe),e.k0s()()),2&i&&(e.R7$(),e.vxM(r.headRow&&r.headRow.length>0?1:-1),e.R7$(2),e.Dyx(r.bodyRows))},dependencies:[z.YU,z.T3],encapsulation:2,changeDetection:0})}return n})(),Ld=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({})}return n})(),ki=(()=>{class n{constructor(){this.panelModeChange=new e.bkB,this.headerChange=new e.bkB,this.selectDate=new e.bkB,this.selectTime=new e.bkB,this.cellHover=new e.bkB,this.prefixCls=Zt}enablePrevNext(t,i){return!(!this.showTimePicker&&i===this.endPanelMode&&("left"===this.partType&&"next"===t||"right"===this.partType&&"prev"===t))}onSelectTime(t){this.selectTime.emit(new $.KV(t))}onSelectDate(t){const i=t instanceof $.KV?t:new $.KV(t),r=this.timeOptions&&this.timeOptions.nzDefaultOpenValue;!this.value&&r&&i.setHms(r.getHours(),r.getMinutes(),r.getSeconds()),this.selectDate.emit(i)}onChooseMonth(t){this.activeDate=this.activeDate.setMonth(t.getMonth()),"month"===this.endPanelMode?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit(this.endPanelMode))}onChooseQuarter(t){this.activeDate=this.activeDate.setQuarter(t.getQuarter()),this.value=t,this.selectDate.emit(t)}onChooseYear(t){this.activeDate=this.activeDate.setYear(t.getYear()),"year"===this.endPanelMode?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit(this.endPanelMode))}onChooseDecade(t){this.activeDate=this.activeDate.setYear(t.getYear()),"decade"===this.endPanelMode?(this.value=t,this.selectDate.emit(t)):(this.headerChange.emit(t),this.panelModeChange.emit("year"))}ngOnChanges(t){t.activeDate&&!t.activeDate.currentValue&&(this.activeDate=new $.KV),t.panelMode&&"time"===t.panelMode.currentValue&&(this.panelMode="date")}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["inner-popup"]],inputs:{activeDate:"activeDate",endPanelMode:"endPanelMode",panelMode:"panelMode",showWeek:[2,"showWeek","showWeek",e.L39],locale:"locale",showTimePicker:[2,"showTimePicker","showTimePicker",e.L39],timeOptions:"timeOptions",disabledDate:"disabledDate",dateRender:"dateRender",selectedValue:"selectedValue",hoverValue:"hoverValue",value:"value",partType:"partType"},outputs:{panelModeChange:"panelModeChange",headerChange:"headerChange",selectDate:"selectDate",selectTime:"selectTime",cellHover:"cellHover"},exportAs:["innerPopup"],standalone:!0,features:[e.GFd,e.OA$,e.aNF],decls:8,vars:8,consts:[[3,"nzInDatePicker","ngModel","format","nzHourStep","nzMinuteStep","nzSecondStep","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzHideDisabledOptions","nzDefaultOpenValue","nzUse12Hours","nzAddOn"],[3,"valueChange","panelModeChange","value","locale","showSuperPreBtn","showSuperNextBtn","showNextBtn","showPreBtn"],[3,"valueChange","activeDate","value","locale","disabledDate"],[3,"valueChange","cellHover","activeDate","value","locale","disabledDate","selectedValue","hoverValue"],[3,"valueChange","cellHover","value","activeDate","locale","disabledDate","selectedValue","hoverValue"],[3,"valueChange","cellHover","value","activeDate","locale","disabledDate","selectedValue","hoverValue","cellRender"],[3,"valueChange","panelModeChange","value","locale","showSuperPreBtn","showSuperNextBtn","showPreBtn","showNextBtn"],[3,"valueChange","cellHover","locale","showWeek","value","activeDate","disabledDate","cellRender","selectedValue","hoverValue","canSelectWeek"],[3,"ngModelChange","nzInDatePicker","ngModel","format","nzHourStep","nzMinuteStep","nzSecondStep","nzDisabledHours","nzDisabledMinutes","nzDisabledSeconds","nzHideDisabledOptions","nzDefaultOpenValue","nzUse12Hours","nzAddOn"]],template:function(i,r){if(1&i&&(e.j41(0,"div")(1,"div"),e.DNE(2,Vu,3,13)(3,ju,3,15)(4,Bu,3,15)(5,Gu,3,16)(6,Hu,3,18),e.k0s(),e.DNE(7,Xu,1,13,"nz-time-picker-panel",0),e.k0s()),2&i){let s;e.AVh("ant-picker-datetime-panel",r.showTimePicker),e.R7$(),e.STu("",r.prefixCls,"-",r.panelMode,"-panel"),e.R7$(),e.vxM("decade"===(s=r.panelMode)?2:"year"===s?3:"month"===s?4:"quarter"===s?5:6),e.R7$(5),e.vxM(r.showTimePicker&&r.timeOptions?7:-1)}},dependencies:[Ld,Hd,Xd,Pd,Nd,Bd,Gd,Ad,$d,Vd,jd,Zc,$n,B.YN,B.BC,B.vS],encapsulation:2,changeDetection:0})}return n})(),jn=(()=>{class n{get hasTimePicker(){return!!this.showTime}get hasFooter(){return this.showToday||this.hasTimePicker||!!this.extraFooter||!!this.ranges}get arrowPosition(){return"rtl"===this.dir?{right:`${this.datePickerService?.arrowLeft}px`}:{left:`${this.datePickerService?.arrowLeft}px`}}constructor(t,i,r,s){this.datePickerService=t,this.cdr=i,this.ngZone=r,this.host=s,this.inline=!1,this.dir="ltr",this.panelModeChange=new e.bkB,this.calendarChange=new e.bkB,this.resultOk=new e.bkB,this.prefixCls=Zt,this.endPanelMode="date",this.timeOptions=null,this.hoverValue=[],this.checkedPartArr=[!1,!1],this.destroy$=new j.B,this.disabledStartTime=a=>this.disabledTime&&this.disabledTime(a,"start"),this.disabledEndTime=a=>this.disabledTime&&this.disabledTime(a,"end")}ngOnInit(){(0,Mn.h)(this.datePickerService.valueChange$,this.datePickerService.inputPartChange$).pipe((0,te.Q)(this.destroy$)).subscribe(()=>{this.updateActiveDate(),this.cdr.markForCheck()}),this.ngZone.runOutsideAngular(()=>{(0,On.R)(this.host.nativeElement,"mousedown").pipe((0,te.Q)(this.destroy$)).subscribe(t=>t.preventDefault())})}ngOnChanges(t){(t.showTime||t.disabledTime)&&this.showTime&&this.buildTimeOptions(),t.panelMode&&(this.endPanelMode=this.panelMode),t.defaultPickerValue&&this.updateActiveDate()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}updateActiveDate(){const t=this.datePickerService.hasValue()?this.datePickerService.value:this.datePickerService.makeValue(this.defaultPickerValue);this.datePickerService.setActiveDate(t,this.hasTimePicker,this.getPanelMode(this.endPanelMode))}onClickOk(){this.changeValueFromSelect(this.isRange?this.datePickerService.value[{left:0,right:1}[this.datePickerService.activeInput]]:this.datePickerService.value),this.resultOk.emit()}onClickToday(t){this.changeValueFromSelect(t,!this.showTime)}onCellHover(t){if(!this.isRange)return;const r=this.datePickerService.value[{left:1,right:0}[this.datePickerService.activeInput]];r&&(this.hoverValue=r.isBeforeDay(t)?[r,t]:[t,r])}onPanelModeChange(t,i){this.panelMode=this.isRange?0===this.datePickerService.getActiveIndex(i)?[t,this.panelMode[1]]:[this.panelMode[0],t]:t,this.panelModeChange.emit(this.panelMode)}onActiveDateChange(t,i){if(this.isRange){const r=[];r[this.datePickerService.getActiveIndex(i)]=t,this.datePickerService.setActiveDate(r,this.hasTimePicker,this.getPanelMode(this.endPanelMode,i))}else this.datePickerService.setActiveDate(t)}onSelectTime(t,i){if(this.isRange){const r=(0,$.ad)(this.datePickerService.value),s=this.datePickerService.getActiveIndex(i);r[s]=this.overrideHms(t,r[s]),this.datePickerService.setValue(r)}else{const r=this.overrideHms(t,this.datePickerService.value);this.datePickerService.setValue(r)}this.datePickerService.inputPartChange$.next(null),this.buildTimeOptions()}changeValueFromSelect(t,i=!0){if(this.isRange){const r=(0,$.ad)(this.datePickerService.value),s=this.datePickerService.activeInput;let a=s;r[this.datePickerService.getActiveIndex(s)]=t,this.checkedPartArr[this.datePickerService.getActiveIndex(s)]=!0,this.hoverValue=r,i?this.inline?(a=this.reversedPart(s),"right"===a&&(r[this.datePickerService.getActiveIndex(a)]=null,this.checkedPartArr[this.datePickerService.getActiveIndex(a)]=!1),this.datePickerService.setValue(r),this.calendarChange.emit(r),this.isBothAllowed(r)&&this.checkedPartArr[0]&&this.checkedPartArr[1]&&(this.clearHoverValue(),this.datePickerService.emitValue$.next())):((0,$.yZ)(r)&&(a=this.reversedPart(s),r[this.datePickerService.getActiveIndex(a)]=null,this.checkedPartArr[this.datePickerService.getActiveIndex(a)]=!1),this.datePickerService.setValue(r),this.isBothAllowed(r)&&this.checkedPartArr[0]&&this.checkedPartArr[1]?(this.calendarChange.emit(r),this.clearHoverValue(),this.datePickerService.emitValue$.next()):this.isAllowed(r)&&(a=this.reversedPart(s),this.calendarChange.emit([t.clone()]))):this.datePickerService.setValue(r),this.datePickerService.inputPartChange$.next(a)}else this.datePickerService.setValue(t),this.datePickerService.inputPartChange$.next(null),i&&this.isAllowed(t)&&this.datePickerService.emitValue$.next();this.buildTimeOptions()}reversedPart(t){return"left"===t?"right":"left"}getPanelMode(t,i){return this.isRange?t[this.datePickerService.getActiveIndex(i)]:t}getValue(t){return this.isRange?(this.datePickerService.value||[])[this.datePickerService.getActiveIndex(t)]:this.datePickerService.value}getActiveDate(t){return this.isRange?this.datePickerService.activeDate[this.datePickerService.getActiveIndex(t)]:this.datePickerService.activeDate}isOneAllowed(t){const i=this.datePickerService.getActiveIndex();return Kt(t[i],this.disabledDate,[this.disabledStartTime,this.disabledEndTime][i])}isBothAllowed(t){return Kt(t[0],this.disabledDate,this.disabledStartTime)&&Kt(t[1],this.disabledDate,this.disabledEndTime)}isAllowed(t,i=!1){return this.isRange?i?this.isBothAllowed(t):this.isOneAllowed(t):Kt(t,this.disabledDate,this.disabledTime)}getTimeOptions(t){return this.showTime&&this.timeOptions?this.timeOptions instanceof Array?this.timeOptions[this.datePickerService.getActiveIndex(t)]:this.timeOptions:null}onClickPresetRange(t){const i="function"==typeof t?t():t;i&&(this.datePickerService.setValue([new $.KV(i[0]),new $.KV(i[1])]),this.datePickerService.emitValue$.next())}onPresetRangeMouseLeave(){this.clearHoverValue()}onHoverPresetRange(t){"function"!=typeof t&&(this.hoverValue=[new $.KV(t[0]),new $.KV(t[1])])}getObjectKeys(t){return t?Object.keys(t):[]}show(t){return!(this.showTime&&this.isRange&&this.datePickerService.activeInput!==t)}clearHoverValue(){this.hoverValue=[]}buildTimeOptions(){if(this.showTime){const t="object"==typeof this.showTime?this.showTime:{};if(this.isRange){const i=this.datePickerService.value;this.timeOptions=[this.overrideTimeOptions(t,i[0],"start"),this.overrideTimeOptions(t,i[1],"end")]}else this.timeOptions=this.overrideTimeOptions(t,this.datePickerService.value)}else this.timeOptions=null}overrideTimeOptions(t,i,r){let s;return s=r?"start"===r?this.disabledStartTime:this.disabledEndTime:this.disabledTime,{...t,...xi(i,s)}}overrideHms(t,i){return t=t||new $.KV,(i=i||new $.KV).setHms(t.getHours(),t.getMinutes(),t.getSeconds())}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(Vn),e.rXU(e.gRc),e.rXU(e.SKi),e.rXU(e.aKT))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["date-range-popup"]],inputs:{isRange:[2,"isRange","isRange",e.L39],inline:[2,"inline","inline",e.L39],showWeek:[2,"showWeek","showWeek",e.L39],locale:"locale",disabledDate:"disabledDate",disabledTime:"disabledTime",showToday:[2,"showToday","showToday",e.L39],showNow:[2,"showNow","showNow",e.L39],showTime:"showTime",extraFooter:"extraFooter",ranges:"ranges",dateRender:"dateRender",panelMode:"panelMode",defaultPickerValue:"defaultPickerValue",dir:"dir"},outputs:{panelModeChange:"panelModeChange",calendarChange:"calendarChange",resultOk:"resultOk"},exportAs:["dateRangePopup"],standalone:!0,features:[e.GFd,e.OA$,e.aNF],decls:8,vars:1,consts:[["tplInnerPopup",""],["tplFooter",""],["tplRangeQuickSelector",""],[3,"class"],[3,"ngStyle"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","-1"],[3,"panelModeChange","cellHover","selectDate","selectTime","headerChange","showWeek","endPanelMode","partType","locale","showTimePicker","timeOptions","panelMode","activeDate","value","disabledDate","dateRender","selectedValue","hoverValue"],[3,"locale","isRange","showToday","showNow","hasTimePicker","okDisabled","extraFooter","rangeQuickSelector"],[3,"clickOk","clickToday","locale","isRange","showToday","showNow","hasTimePicker","okDisabled","extraFooter","rangeQuickSelector"],[3,"click","mouseenter","mouseleave"],[1,"ant-tag","ant-tag-blue"]],template:function(i,r){1&i&&e.DNE(0,Ju,7,17,"div",3)(1,td,4,13,"div",3)(2,nd,2,18,"ng-template",null,0,e.C5r)(4,od,1,1,"ng-template",null,1,e.C5r)(6,sd,2,0,"ng-template",null,2,e.C5r),2&i&&e.vxM(r.isRange?0:1)},dependencies:[ki,z.T3,zi,z.B3],encapsulation:2,changeDetection:0})}return n})();const Bn={position:"relative"};let Si=(()=>{class n{get nzShowTime(){return this.showTime}set nzShowTime(t){this.showTime="object"==typeof t?t:(0,I.G4)(t)}get realOpenState(){return this.isOpenHandledByUser()?!!this.nzOpen:this.overlayOpen}ngAfterViewInit(){this.nzAutoFocus&&this.focus(),this.isRange&&this.platform.isBrowser&&this.nzResizeObserver.observe(this.elementRef).pipe((0,te.Q)(this.destroy$)).subscribe(()=>{this.updateInputWidthAndArrowLeft()}),this.datePickerService.inputPartChange$.pipe((0,te.Q)(this.destroy$)).subscribe(t=>{t&&(this.datePickerService.activeInput=t),this.focus(),this.updateInputWidthAndArrowLeft()}),this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>(0,On.R)(this.elementRef.nativeElement,"mousedown").pipe((0,te.Q)(this.destroy$)).subscribe(t=>{"input"!==t.target.tagName.toLowerCase()&&t.preventDefault()}))}updateInputWidthAndArrowLeft(){this.inputWidth=this.rangePickerInputs?.first?.nativeElement.offsetWidth||0;const t={position:"absolute",width:`${this.inputWidth}px`};this.datePickerService.arrowLeft="left"===this.datePickerService.activeInput?0:this.inputWidth+this.separatorElement?.nativeElement.offsetWidth||0,this.activeBarStyle="rtl"===this.dir?{...t,right:`${this.datePickerService.arrowLeft}px`}:{...t,left:`${this.datePickerService.arrowLeft}px`},this.cdr.markForCheck()}getInput(t){if(!this.nzInline)return this.isRange?"left"===t?this.rangePickerInputs?.first.nativeElement:this.rangePickerInputs?.last.nativeElement:this.pickerInput.nativeElement}focus(){const t=this.getInput(this.datePickerService.activeInput);this.document.activeElement!==t&&t?.focus()}onFocus(t,i){t.preventDefault(),i&&this.datePickerService.inputPartChange$.next(i),this.renderClass(!0)}onFocusout(t){t.preventDefault(),this.onTouchedFn(),this.elementRef.nativeElement.contains(t.relatedTarget)||this.checkAndClose(),this.renderClass(!1)}open(){this.nzInline||!this.realOpenState&&!this.nzDisabled&&(this.updateInputWidthAndArrowLeft(),this.overlayOpen=!0,this.nzOnOpenChange.emit(!0),this.focus(),this.cdr.markForCheck())}close(){this.nzInline||this.realOpenState&&(this.overlayOpen=!1,this.nzOnOpenChange.emit(!1))}get showClear(){return!this.nzDisabled&&!this.isEmptyValue(this.datePickerService.value)&&this.nzAllowClear}checkAndClose(){if(this.realOpenState)if(this.panel.isAllowed(this.datePickerService.value,!0)){if(Array.isArray(this.datePickerService.value)&&(0,$.yZ)(this.datePickerService.value)){const t=this.datePickerService.getActiveIndex();return void this.panel.changeValueFromSelect(this.datePickerService.value[t],!0)}this.updateInputValue(),this.datePickerService.emitValue$.next()}else this.datePickerService.setValue(this.datePickerService.initialValue),this.close()}onClickInputBox(t){t.stopPropagation(),this.focus(),this.isOpenHandledByUser()||this.open()}onOverlayKeydown(t){t.keyCode===yc._f&&this.datePickerService.initValue()}onPositionChange(t){this.currentPositionX=t.connectionPair.originX,this.currentPositionY=t.connectionPair.originY,this.cdr.detectChanges()}onClickClear(t){t.preventDefault(),t.stopPropagation(),this.datePickerService.initValue(!0),this.datePickerService.emitValue$.next()}updateInputValue(){const t=this.datePickerService.value;this.inputValue=this.isRange?t?t.map(i=>this.formatValue(i)):["",""]:this.formatValue(t),this.cdr.markForCheck()}formatValue(t){return this.dateHelper.format(t&&t.nativeDate,this.nzFormat)}onInputChange(t,i=!1){if(!this.platform.TRIDENT&&this.document.activeElement===this.getInput(this.datePickerService.activeInput)&&!this.realOpenState)return void this.open();const r=this.checkValidDate(t);r&&this.realOpenState&&this.panel.changeValueFromSelect(r,i)}onKeyupEnter(t){this.onInputChange(t.target.value,!0)}checkValidDate(t){const i=new $.KV(this.dateHelper.parseDate(t,this.nzFormat));return i.isValid()&&t===this.dateHelper.format(i.nativeDate,this.nzFormat)?i:null}getPlaceholder(t){return this.isRange?this.nzPlaceHolder[this.datePickerService.getActiveIndex(t)]:this.nzPlaceHolder}isEmptyValue(t){return null===t||(this.isRange?!t||!Array.isArray(t)||t.every(i=>!i):!t)}isOpenHandledByUser(){return void 0!==this.nzOpen}constructor(t,i,r,s,a,c,l,u,d,p,v,g,C,T,P,G){this.nzConfigService=t,this.datePickerService=i,this.i18n=r,this.cdr=s,this.renderer=a,this.ngZone=c,this.elementRef=l,this.dateHelper=u,this.nzResizeObserver=d,this.platform=p,this.destroy$=v,this.directionality=C,this.noAnimation=T,this.nzFormStatusService=P,this.nzFormNoStatusService=G,this._nzModuleName="datePicker",this.isRange=!1,this.dir="ltr",this.statusCls={},this.status="",this.hasFeedback=!1,this.panelMode="date",this.isCustomPlaceHolder=!1,this.isCustomFormat=!1,this.showTime=!1,this.isNzDisableFirstChange=!0,this.nzAllowClear=!0,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzBorderless=!1,this.nzInputReadOnly=!1,this.nzInline=!1,this.nzPlaceHolder="",this.nzPopupStyle=Bn,this.nzSize="default",this.nzStatus="",this.nzShowToday=!0,this.nzMode="date",this.nzShowNow=!0,this.nzDefaultPickerValue=null,this.nzSeparator=void 0,this.nzSuffixIcon="calendar",this.nzBackdrop=!1,this.nzId=null,this.nzPlacement="bottomLeft",this.nzShowWeekNumber=!1,this.nzOnPanelChange=new e.bkB,this.nzOnCalendarChange=new e.bkB,this.nzOnOk=new e.bkB,this.nzOnOpenChange=new e.bkB,this.inputSize=12,this.prefixCls=Zt,this.activeBarStyle={},this.overlayOpen=!1,this.overlayPositions=[...Xe.DN],this.currentPositionX="start",this.currentPositionY="bottom",this.onChangeFn=()=>{},this.onTouchedFn=()=>{},this.document=g,this.origin=new at.$Q(this.elementRef)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,Xt.F)((t,i)=>t.status===i.status&&t.hasFeedback===i.hasFeedback),(0,Dt.E)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,tt.of)(!1)),(0,ue.T)(([{status:t,hasFeedback:i},r])=>({status:r?"":t,hasFeedback:i})),(0,te.Q)(this.destroy$)).subscribe(({status:t,hasFeedback:i})=>{this.setStatusStyles(t,i)}),this.nzLocale||this.i18n.localeChange.pipe((0,te.Q)(this.destroy$)).subscribe(()=>this.setLocale()),this.datePickerService.isRange=this.isRange,this.datePickerService.initValue(!0),this.datePickerService.emitValue$.pipe((0,te.Q)(this.destroy$)).subscribe(()=>{const t=this.showTime?"second":"day",i=this.datePickerService.value,r=this.datePickerService.initialValue;if(!this.isRange&&i?.isSame(r?.nativeDate,t))return this.onTouchedFn(),this.close();if(this.isRange){const[s,a]=r,[c,l]=i;if(s?.isSame(c?.nativeDate,t)&&a?.isSame(l?.nativeDate,t))return this.onTouchedFn(),this.close()}if(this.datePickerService.initialValue=(0,$.ad)(i),this.isRange){const s=i;this.onChangeFn(s.length?[s[0]?.nativeDate??null,s[1]?.nativeDate??null]:[])}else this.onChangeFn(i?i.nativeDate:null);this.onTouchedFn(),this.close()}),this.directionality.change?.pipe((0,te.Q)(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.inputValue=this.isRange?["",""]:"",this.setModeAndFormat(),this.datePickerService.valueChange$.pipe((0,te.Q)(this.destroy$)).subscribe(()=>{this.updateInputValue()})}ngOnChanges(t){const{nzStatus:i,nzPlacement:r}=t;t.nzPopupStyle&&(this.nzPopupStyle=this.nzPopupStyle?{...this.nzPopupStyle,...Bn}:Bn),t.nzPlaceHolder?.currentValue&&(this.isCustomPlaceHolder=!0),t.nzFormat?.currentValue&&(this.isCustomFormat=!0),t.nzLocale&&this.setDefaultPlaceHolder(),t.nzRenderExtraFooter&&(this.extraFooter=(0,I.XQ)(this.nzRenderExtraFooter)),t.nzMode&&(this.setDefaultPlaceHolder(),this.setModeAndFormat()),i&&this.setStatusStyles(this.nzStatus,this.hasFeedback),r&&this.setPlacement(this.nzPlacement)}setModeAndFormat(){const t={year:"yyyy",quarter:"yyyy-[Q]Q",month:"yyyy-MM",week:"YYYY-ww",date:this.nzShowTime?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd"};this.nzMode||(this.nzMode="date"),this.panelMode=this.isRange?[this.nzMode,this.nzMode]:this.nzMode,this.isCustomFormat||(this.nzFormat=t[this.nzMode]),this.inputSize=Math.max(10,this.nzFormat.length)+2,this.updateInputValue()}onOpenChange(t){this.nzOnOpenChange.emit(t)}writeValue(t){this.setValue(t),this.cdr.markForCheck()}registerOnChange(t){this.onChangeFn=t}registerOnTouched(t){this.onTouchedFn=t}setDisabledState(t){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||t,this.cdr.markForCheck(),this.isNzDisableFirstChange=!1}setLocale(){this.nzLocale=this.i18n.getLocaleData("DatePicker",{}),this.setDefaultPlaceHolder(),this.cdr.markForCheck()}setDefaultPlaceHolder(){if(!this.isCustomPlaceHolder&&this.nzLocale){const t={year:this.getPropertyOfLocale("yearPlaceholder"),quarter:this.getPropertyOfLocale("quarterPlaceholder"),month:this.getPropertyOfLocale("monthPlaceholder"),week:this.getPropertyOfLocale("weekPlaceholder"),date:this.getPropertyOfLocale("placeholder")},i={year:this.getPropertyOfLocale("rangeYearPlaceholder"),quarter:this.getPropertyOfLocale("rangeQuarterPlaceholder"),month:this.getPropertyOfLocale("rangeMonthPlaceholder"),week:this.getPropertyOfLocale("rangeWeekPlaceholder"),date:this.getPropertyOfLocale("rangePlaceholder")};this.nzPlaceHolder=this.isRange?i[this.nzMode]:t[this.nzMode]}}getPropertyOfLocale(t){return this.nzLocale.lang[t]||this.i18n.getLocaleData(`DatePicker.lang.${t}`)}setValue(t){const i=this.datePickerService.makeValue(t);this.datePickerService.setValue(i),this.datePickerService.initialValue=(0,$.ad)(i),this.cdr.detectChanges()}renderClass(t){t?this.renderer.addClass(this.elementRef.nativeElement,"ant-picker-focused"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-picker-focused")}onPanelModeChange(t){this.nzOnPanelChange.emit(t)}onCalendarChange(t){if(this.isRange&&Array.isArray(t)){const i=t.filter(r=>r instanceof $.KV).map(r=>r.nativeDate);this.nzOnCalendarChange.emit(i)}}onResultOk(){if(this.isRange){const t=this.datePickerService.value;this.nzOnOk.emit(t.length?[t[0]?.nativeDate||null,t[1]?.nativeDate||null]:[])}else this.nzOnOk.emit(this.datePickerService.value?this.datePickerService.value.nativeDate:null)}setStatusStyles(t,i){this.status=t,this.hasFeedback=i,this.cdr.markForCheck(),this.statusCls=(0,I.LP)(this.prefixCls,t,i),Object.keys(this.statusCls).forEach(r=>{this.statusCls[r]?this.renderer.addClass(this.elementRef.nativeElement,r):this.renderer.removeClass(this.elementRef.nativeElement,r)})}setPlacement(t){const i=Xe.l$[t];this.overlayPositions=[i,...Xe.DN],this.currentPositionX=i.originX,this.currentPositionY=i.originY}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(K.yx),e.rXU(Vn),e.rXU(q.Og),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(q.cr),e.rXU(Jc.xH),e.rXU(En.OD),e.rXU(yi.y4),e.rXU(z.qQ),e.rXU(Nn.dS,8),e.rXU(_i.z,9),e.rXU(Oe.is,8),e.rXU(Oe.n1,8))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["nz-date-picker"],["nz-week-picker"],["nz-month-picker"],["nz-quarter-picker"],["nz-year-picker"],["nz-range-picker"]],viewQuery:function(i,r){if(1&i&&(e.GBs(at.WB,5),e.GBs(jn,5),e.GBs(ad,5),e.GBs(cd,5),e.GBs(ld,5)),2&i){let s;e.mGM(s=e.lsd())&&(r.cdkConnectedOverlay=s.first),e.mGM(s=e.lsd())&&(r.panel=s.first),e.mGM(s=e.lsd())&&(r.separatorElement=s.first),e.mGM(s=e.lsd())&&(r.pickerInput=s.first),e.mGM(s=e.lsd())&&(r.rangePickerInputs=s)}},hostVars:16,hostBindings:function(i,r){1&i&&e.bIt("click",function(a){return r.onClickInputBox(a)}),2&i&&e.AVh("ant-picker",!0)("ant-picker-range",r.isRange)("ant-picker-large","large"===r.nzSize)("ant-picker-small","small"===r.nzSize)("ant-picker-disabled",r.nzDisabled)("ant-picker-rtl","rtl"===r.dir)("ant-picker-borderless",r.nzBorderless)("ant-picker-inline",r.nzInline)},inputs:{nzAllowClear:[2,"nzAllowClear","nzAllowClear",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzBorderless:[2,"nzBorderless","nzBorderless",e.L39],nzInputReadOnly:[2,"nzInputReadOnly","nzInputReadOnly",e.L39],nzInline:[2,"nzInline","nzInline",e.L39],nzOpen:[2,"nzOpen","nzOpen",e.L39],nzDisabledDate:"nzDisabledDate",nzLocale:"nzLocale",nzPlaceHolder:"nzPlaceHolder",nzPopupStyle:"nzPopupStyle",nzDropdownClassName:"nzDropdownClassName",nzSize:"nzSize",nzStatus:"nzStatus",nzFormat:"nzFormat",nzDateRender:"nzDateRender",nzDisabledTime:"nzDisabledTime",nzRenderExtraFooter:"nzRenderExtraFooter",nzShowToday:[2,"nzShowToday","nzShowToday",e.L39],nzMode:"nzMode",nzShowNow:[2,"nzShowNow","nzShowNow",e.L39],nzRanges:"nzRanges",nzDefaultPickerValue:"nzDefaultPickerValue",nzSeparator:"nzSeparator",nzSuffixIcon:"nzSuffixIcon",nzBackdrop:"nzBackdrop",nzId:"nzId",nzPlacement:"nzPlacement",nzShowWeekNumber:[2,"nzShowWeekNumber","nzShowWeekNumber",e.L39],nzShowTime:"nzShowTime"},outputs:{nzOnPanelChange:"nzOnPanelChange",nzOnCalendarChange:"nzOnCalendarChange",nzOnOk:"nzOnOk",nzOnOpenChange:"nzOnOpenChange"},exportAs:["nzDatePicker"],standalone:!0,features:[e.Jv_([yi.y4,Vn,{provide:B.kq,multi:!0,useExisting:(0,e.Rfq)(()=>n)}]),e.GFd,e.OA$,e.aNF],decls:9,vars:6,consts:[["tplRangeInput",""],["tplRightRest",""],["inlineMode",""],["pickerInput",""],["separatorElement",""],["rangePickerInput",""],[3,"ngTemplateOutlet"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"positionChange","detach","overlayKeydown","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayTransformOriginOn"],[3,"class"],["autocomplete","off",3,"ngModelChange","focus","focusout","keyup.enter","disabled","readOnly","ngModel","placeholder","size"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","swap-right","nzTheme","outline"],["autocomplete","off",3,"click","focusout","focus","keyup.enter","ngModelChange","disabled","readOnly","size","ngModel","placeholder"],[3,"ngStyle"],[3,"status"],[3,"click"],["nz-icon","","nzType","close-circle","nzTheme","fill"],["nz-icon","",3,"nzType"],[3,"panelModeChange","calendarChange","resultOk","isRange","inline","defaultPickerValue","showWeek","panelMode","locale","showToday","showNow","showTime","dateRender","disabledDate","disabledTime","extraFooter","ranges","dir"],[1,"ant-picker-wrapper",3,"nzNoAnimation"]],template:function(i,r){if(1&i){const s=e.RV6();e.DNE(0,yd,2,1)(1,bd,1,1,null,6)(2,xd,2,6,"ng-template",null,0,e.C5r)(4,Td,5,10,"ng-template",null,1,e.C5r)(6,Md,2,36,"ng-template",null,2,e.C5r)(8,Fd,2,5,"ng-template",7),e.bIt("positionChange",function(c){return e.eBV(s),e.Njj(r.onPositionChange(c))})("detach",function(){return e.eBV(s),e.Njj(r.close())})("overlayKeydown",function(c){return e.eBV(s),e.Njj(r.onOverlayKeydown(c))})}2&i&&(e.vxM(r.nzInline?1:0),e.R7$(8),e.Y8G("cdkConnectedOverlayHasBackdrop",r.nzBackdrop)("cdkConnectedOverlayOrigin",r.origin)("cdkConnectedOverlayOpen",r.realOpenState)("cdkConnectedOverlayPositions",r.overlayPositions)("cdkConnectedOverlayTransformOriginOn",".ant-picker-wrapper"))},dependencies:[B.YN,B.me,B.BC,B.vS,z.T3,ct.C,ct.m,he.Y3,he.Dn,z.B3,Oe.J1,Oe.Xd,jn,at.WB,Xe.$_,Xe.vT,_i.z],encapsulation:2,data:{animation:[gi.U1]},changeDetection:0})}return(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzSeparator",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzSuffixIcon",void 0),(0,ee.Cg)([(0,K.H4)()],n.prototype,"nzBackdrop",void 0),n})(),Ud=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[Si,zi,ki,jn]})}return n})();var Wd=f(1845),Qd=f(9502);let Zd=(()=>{class n{transform(t){return(0,Qd.q)(t)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275pipe=e.EJ8({name:"entityTypeToTypename",type:n,pure:!0})}return n})();var Kd=f(4493),Jd=f(3075);let qd=(()=>{class n{transform(t){return[...t].sort((i,r)=>"string"==typeof i&&"string"==typeof r?i.localeCompare(r):i-r)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275pipe=e.EJ8({name:"enumSort",type:n,pure:!0})}return n})();const e1=()=>[8,8],t1=n=>({$implicit:"Activity Type",value:n}),Jt=(n,o)=>({nzLabel:n,nzValue:o}),qt=n=>({$implicit:n}),n1=n=>({$implicit:"Subject Type",value:n}),i1=n=>({$implicit:"Participating User",value:n}),o1=n=>({$implicit:"Participating Organization",value:n});function r1(n,o){1&n&&e.eu8(0)}function s1(n,o){1&n&&e.eu8(0)}function a1(n,o){if(1&n&&(e.j41(0,"nz-option",12),e.nI1(1,"enumToTitle"),e.DNE(2,s1,1,0,"ng-container",7),e.nI1(3,"enumToTitle"),e.k0s()),2&n){const t=o.$implicit;e.XpG();const i=e.sdS(7);e.Y8G("nzLabel",e.bMT(1,4,t))("nzValue",t),e.R7$(2),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(11,qt,e.l_i(8,Jt,e.bMT(3,6,t),t)))}}function c1(n,o){if(1&n&&(e.nrm(0,"i",13),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=o.$implicit;e.Y8G("nzTwotoneColor",e.bMT(1,2,"Event")),e.R7$(2),e.SpI(" ",t.nzLabel," ")}}function l1(n,o){1&n&&e.eu8(0)}function u1(n,o){1&n&&e.eu8(0)}function d1(n,o){if(1&n&&(e.j41(0,"nz-option",12),e.nI1(1,"enumToTitle"),e.DNE(2,u1,1,0,"ng-container",7),e.nI1(3,"enumToTitle"),e.k0s()),2&n){const t=o.$implicit;e.XpG();const i=e.sdS(6);e.Y8G("nzLabel",e.bMT(1,4,t))("nzValue",t),e.R7$(2),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(11,qt,e.l_i(8,Jt,e.bMT(3,6,t),t)))}}function p1(n,o){if(1&n&&(e.nrm(0,"i",15),e.nI1(1,"entityTypeToTypename"),e.nI1(2,"entityColor"),e.nI1(3,"iconNameForSubscribableEntity"),e.EFF(4)),2&n){const t=o.$implicit;e.Y8G("nzTwotoneColor",e.bMT(2,5,e.bMT(1,3,t.nzValue)))("nzType",e.bMT(3,7,t.nzValue)),e.R7$(4),e.SpI(" ",t.nzLabel," ")}}function f1(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-col",6),e.DNE(1,l1,1,0,"ng-container",7),e.j41(2,"nz-select",14),e.bIt("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.subjectType.set(r))}),e.DNE(3,d1,4,13,"nz-option",9),e.nI1(4,"enumSort"),e.DNE(5,p1,5,9,"ng-template",null,2,e.C5r),e.k0s()()}if(2&n){const t=e.sdS(6),i=e.XpG(),r=e.sdS(20);e.R7$(),e.Y8G("ngTemplateOutlet",r)("ngTemplateOutletContext",e.eq3(9,n1,i.subjectType())),e.R7$(),e.Y8G("ngModel",i.subjectType())("nzCustomTemplate",t)("nzOptionHeightPx",28)("nzOptionOverflowSize",10),e.R7$(),e.Y8G("ngForOf",e.bMT(4,7,i.cvcFilterOptions().subjectTypes))}}function h1(n,o){1&n&&e.eu8(0)}function v1(n,o){1&n&&e.eu8(0)}function m1(n,o){if(1&n&&(e.j41(0,"nz-option",12),e.DNE(1,v1,1,0,"ng-container",7),e.k0s()),2&n){const t=o.$implicit;e.XpG();const i=e.sdS(5);e.Y8G("nzLabel",t.displayName)("nzValue",t.id),e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(7,qt,e.l_i(4,Jt,t.displayName,t.id)))}}function g1(n,o){if(1&n&&(e.nrm(0,"span",17),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=o.$implicit;e.Y8G("nzType","civic-curator")("nzTwotoneColor",e.bMT(1,3,"Curator")),e.R7$(2),e.SpI(" ",t.nzLabel," ")}}function _1(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-col",6),e.DNE(1,h1,1,0,"ng-container",7),e.j41(2,"nz-select",16),e.bIt("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.userId.set(r))}),e.DNE(3,m1,2,9,"nz-option",9)(4,g1,3,5,"ng-template",null,3,e.C5r),e.k0s()()}if(2&n){const t=e.sdS(5),i=e.XpG(),r=e.sdS(20);e.R7$(),e.Y8G("ngTemplateOutlet",r)("ngTemplateOutletContext",e.eq3(7,i1,i.userId())),e.R7$(),e.Y8G("ngModel",i.userId())("nzCustomTemplate",t)("nzOptionOverflowSize",12)("nzOptionHeightPx",28),e.R7$(),e.Y8G("ngForOf",i.cvcFilterOptions().uniqueParticipants)}}function y1(n,o){1&n&&e.eu8(0)}function C1(n,o){1&n&&e.eu8(0)}function b1(n,o){if(1&n&&(e.j41(0,"nz-option",12),e.DNE(1,C1,1,0,"ng-container",7),e.k0s()),2&n){const t=o.$implicit;e.XpG();const i=e.sdS(5);e.Y8G("nzLabel",t.name)("nzValue",t.id),e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(7,qt,e.l_i(4,Jt,t.name,t.id)))}}function x1(n,o){if(1&n&&(e.nrm(0,"span",17),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=o.$implicit;e.Y8G("nzType","civic-organization")("nzTwotoneColor",e.bMT(1,3,"Organization")),e.R7$(2),e.SpI(" ",t.nzLabel," ")}}function z1(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-col",6),e.DNE(1,y1,1,0,"ng-container",7),e.j41(2,"nz-select",18),e.bIt("ngModelChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.organizationId.set(r))}),e.DNE(3,b1,2,9,"nz-option",9)(4,x1,3,5,"ng-template",null,4,e.C5r),e.k0s()()}if(2&n){const t=e.sdS(5),i=e.XpG(),r=e.sdS(20);e.R7$(),e.Y8G("ngTemplateOutlet",r)("ngTemplateOutletContext",e.eq3(6,o1,i.organizationId())),e.R7$(),e.Y8G("ngModel",i.organizationId())("nzCustomTemplate",t)("nzOptionHeightPx",28),e.R7$(),e.Y8G("ngForOf",i.cvcFilterOptions().participatingOrganizations)}}function k1(n,o){if(1&n&&(e.j41(0,"h4"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit,i=o.value;e.R7$(),e.Lme("",t,"",i.length>1?"s":"","")}}let S1=(()=>{class n{constructor(){this.cvcFilters=e.hFB.required(),this.cvcFilterOptions=e.hFB.required(),this.cvcScope=e.hFB.required(),this.cvcFiltersChange=new e.bkB,this.disableDates=qa,(0,e.QZP)(()=>{this.cvcFiltersChange.emit({activityType:this.eventType(),organizationId:this.organizationId(),subjectType:this.subjectType(),userId:this.userId(),occurredAfter:this.occurredAfter(),occurredBefore:this.occurredBefore()})})}ngOnInit(){this.eventType=(0,e.vPA)(this.cvcFilters().activityType),this.subjectType=(0,e.vPA)(this.cvcFilters().subjectType),this.organizationId=(0,e.vPA)(this.cvcFilters().organizationId),this.userId=(0,e.vPA)(this.cvcFilters().userId),this.occurredAfter=(0,e.vPA)(this.cvcFilters().occurredAfter),this.occurredBefore=(0,e.vPA)(this.cvcFilters().occurredBefore)}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-activity-feed-filters"]],inputs:{cvcFilters:[1,"cvcFilters"],cvcFilterOptions:[1,"cvcFilterOptions"],cvcScope:[1,"cvcScope"]},outputs:{cvcFiltersChange:"cvcFiltersChange"},standalone:!0,features:[e.aNF],decls:21,vars:21,consts:[["activityTypeLabel",""],["filterTitle",""],["subjectTypeLabel",""],["userLabel",""],["organizationLabel",""],[3,"nzGutter"],["nzSpan","24"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzPlaceHolder","Select Type","nzMode","multiple",3,"ngModelChange","nzDropdownMatchSelectWidth","ngModel","nzCustomTemplate","nzOptionOverflowSize","nzOptionHeightPx"],["nzCustomContent","",3,"nzLabel","nzValue",4,"ngFor","ngForOf"],["nzMd","24","nzLg","12"],["nzFormat","yyyy-MM-dd","nzPlaceHolder","Select Date",3,"ngModelChange","ngModel","nzDisabledDate"],["nzCustomContent","",3,"nzLabel","nzValue"],["nz-icon","","nzTheme","twotone","nzType","civic-event",1,"select-icon",3,"nzTwotoneColor"],["nzPlaceHolder","Select Subject Type","nzMode","multiple",3,"ngModelChange","ngModel","nzCustomTemplate","nzOptionHeightPx","nzOptionOverflowSize"],["nz-icon","","nzTheme","twotone",1,"select-icon",3,"nzTwotoneColor","nzType"],["nzPlaceHolder","Select User","nzMode","multiple",3,"ngModelChange","ngModel","nzCustomTemplate","nzOptionOverflowSize","nzOptionHeightPx"],["nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor"],["nzPlaceHolder","Select Organization","nzMode","multiple",3,"ngModelChange","ngModel","nzCustomTemplate","nzOptionHeightPx"]],template:function(i,r){if(1&i){const s=e.RV6();e.j41(0,"nz-row",5)(1,"nz-col",6),e.DNE(2,r1,1,0,"ng-container",7),e.j41(3,"nz-select",8),e.bIt("ngModelChange",function(c){return e.eBV(s),e.Njj(r.eventType.set(c))}),e.DNE(4,a1,4,13,"nz-option",9),e.nI1(5,"enumSort"),e.DNE(6,c1,3,4,"ng-template",null,0,e.C5r),e.k0s()(),e.DNE(8,f1,7,11,"nz-col",6)(9,_1,6,9,"nz-col",6)(10,z1,6,8,"nz-col",6),e.j41(11,"nz-col",10)(12,"h4"),e.EFF(13,"Occurred After"),e.k0s(),e.j41(14,"nz-date-picker",11),e.bIt("ngModelChange",function(c){return e.eBV(s),e.Njj(r.occurredAfter.set(c))}),e.k0s()(),e.j41(15,"nz-col",10)(16,"h4"),e.EFF(17,"Occurred Before"),e.k0s(),e.j41(18,"nz-date-picker",11),e.bIt("ngModelChange",function(c){return e.eBV(s),e.Njj(r.occurredBefore.set(c))}),e.k0s()()(),e.DNE(19,k1,2,2,"ng-template",null,1,e.C5r)}if(2&i){const s=e.sdS(7),a=e.sdS(20);e.Y8G("nzGutter",e.lJ4(18,e1)),e.R7$(2),e.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",e.eq3(19,t1,r.eventType())),e.R7$(),e.Y8G("nzDropdownMatchSelectWidth",!1)("ngModel",r.eventType())("nzCustomTemplate",s)("nzOptionOverflowSize",12)("nzOptionHeightPx",28),e.R7$(),e.Y8G("ngForOf",e.bMT(5,16,r.cvcFilterOptions().activityTypes)),e.R7$(4),e.vxM("SUBJECT"!==r.cvcScope().mode?8:-1),e.R7$(),e.vxM("USER"!==r.cvcScope().mode?9:-1),e.R7$(),e.vxM("ORGANIZATION"!==r.cvcScope().mode?10:-1),e.R7$(4),e.Y8G("ngModel",r.occurredAfter())("nzDisabledDate",r.disableDates.beforeToday),e.R7$(4),e.Y8G("ngModel",r.occurredBefore())("nzDisabledDate",r.disableDates.beforeTomorrow)}},dependencies:[z.MD,z.Sq,z.T3,B.YN,B.BC,B.vS,he.Y3,he.Dn,de.f3,de.Uq,de.e,hi.PQ,Wt.DH,Wt.ld,Wt.WI,Ud,Si,Yt.i,Wd.f,Zd,Kd.g,Jd.R,qd],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-select, [_nghost-%COMP%] nz-date-picker[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] nz-select-item .select-icon{line-height:18px;margin-right:4px;padding-top:2px}[_nghost-%COMP%] nz-select-item .select-icon svg{line-height:18px}"],changeDetection:0})}return n})();var Gn=f(7685),Ti=f(2983);const T1=[[["nz-result-content"],["","nz-result-content",""]],[["","nz-result-icon",""]],[["div","nz-result-title",""]],[["div","nz-result-subtitle",""]],[["div","nz-result-extra",""]]],M1=["nz-result-content, [nz-result-content]","[nz-result-icon]","div[nz-result-title]","div[nz-result-subtitle]","div[nz-result-extra]"];function D1(n,o){if(1&n&&(e.qex(0),e.nrm(1,"span",5),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("nzType",t)}}function F1(n,o){if(1&n&&e.DNE(0,D1,2,1,"ng-container",4),2&n){const t=e.XpG(2);e.Y8G("nzStringTemplateOutlet",t.icon)}}function I1(n,o){1&n&&e.SdG(0,1)}function w1(n,o){if(1&n&&e.DNE(0,F1,1,1,"ng-container")(1,I1,1,0),2&n){const t=e.XpG();e.vxM(t.icon?0:1)}}function R1(n,o){1&n&&e.nrm(0,"nz-result-not-found")}function P1(n,o){1&n&&e.nrm(0,"nz-result-server-error")}function O1(n,o){1&n&&e.nrm(0,"nz-result-unauthorized")}function E1(n,o){if(1&n&&e.DNE(0,R1,1,0,"nz-result-not-found")(1,P1,1,0,"nz-result-server-error")(2,O1,1,0,"nz-result-unauthorized"),2&n){let t;const i=e.XpG();e.vxM("404"===(t=i.nzStatus)?0:"500"===t?1:"403"===t?2:-1)}}function N1(n,o){if(1&n&&(e.j41(0,"div",1),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.nzTitle," ")}}function A1(n,o){if(1&n&&e.DNE(0,N1,2,1,"div",6),2&n){const t=e.XpG();e.Y8G("nzStringTemplateOutlet",t.nzTitle)}}function $1(n,o){1&n&&e.SdG(0,2)}function V1(n,o){if(1&n&&(e.j41(0,"div",2),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.nzSubTitle," ")}}function j1(n,o){if(1&n&&e.DNE(0,V1,2,1,"div",7),2&n){const t=e.XpG();e.Y8G("nzStringTemplateOutlet",t.nzSubTitle)}}function B1(n,o){1&n&&e.SdG(0,3)}function G1(n,o){if(1&n&&(e.j41(0,"div",3),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.nzExtra," ")}}function H1(n,o){if(1&n&&e.DNE(0,G1,2,1,"div",8),2&n){const t=e.XpG();e.Y8G("nzStringTemplateOutlet",t.nzExtra)}}function X1(n,o){1&n&&e.SdG(0,4)}let Mi=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["nz-result-not-found"]],exportAs:["nzResultNotFound"],standalone:!0,features:[e.aNF],decls:62,vars:0,consts:[["width","252","height","294"],["d","M0 .387h251.772v251.772H0z"],["fill","none","fillRule","evenodd"],["transform","translate(0 .012)"],["fill","#fff"],["d","M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321","fill","#E4EBF7","mask","url(#b)"],["d","M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66","fill","#FFF"],["d","M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788","stroke","#FFF","strokeWidth","2"],["d","M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175","fill","#FFF"],["d","M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932","fill","#FFF"],["d","M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011","par","","stroke","#FFF","strokeWidth","2"],["d","M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382","fill","#FFF"],["d","M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z","stroke","#FFF","strokeWidth","2"],["stroke","#FFF","strokeWidth","2","d","M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"],["d","M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742","fill","#FFF"],["d","M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48","fill","#1890FF"],["d","M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894","fill","#FFF"],["d","M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88","fill","#FFB594"],["d","M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624","fill","#FFC6A0"],["d","M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682","fill","#FFF"],["d","M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573","fill","#CBD1D1"],["d","M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z","fill","#2B0849"],["d","M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558","fill","#A4AABA"],["d","M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z","fill","#CBD1D1"],["d","M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062","fill","#2B0849"],["d","M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15","fill","#A4AABA"],["d","M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165","fill","#7BB2F9"],["d","M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M107.275 222.1s2.773-1.11 6.102-3.884","stroke","#648BD8","strokeLinecap","round","strokeLinejoin","round"],["d","M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038","fill","#192064"],["d","M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81","fill","#FFF"],["d","M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642","fill","#192064"],["d","M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268","fill","#FFC6A0"],["d","M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456","fill","#FFC6A0"],["d","M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z","fill","#520038"],["d","M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254","fill","#552950"],["stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round","d","M110.13 74.84l-.896 1.61-.298 4.357h-2.228"],["d","M110.846 74.481s1.79-.716 2.506.537","stroke","#5C2552","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67","stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M103.287 72.93s1.83 1.113 4.137.954","stroke","#5C2552","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639","stroke","#DB836E","strokeWidth","1.118","strokeLinecap","round","strokeLinejoin","round"],["d","M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"],["d","M129.405 122.865s-5.272 7.403-9.422 10.768","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M119.306 107.329s.452 4.366-2.127 32.062","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"],["d","M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01","fill","#F2D7AD"],["d","M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92","fill","#F4D19D"],["d","M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z","fill","#F2D7AD"],["fill","#CC9B6E","d","M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"],["d","M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83","fill","#F4D19D"],["fill","#CC9B6E","d","M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"],["fill","#CC9B6E","d","M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"],["d","M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238","fill","#FFC6A0"],["d","M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754","stroke","#DB836E","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647","fill","#5BA02E"],["d","M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647","fill","#92C110"],["d","M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187","fill","#F2D7AD"],["d","M88.979 89.48s7.776 5.384 16.6 2.842","stroke","#E4EBF7","strokeWidth","1.101","strokeLinecap","round","strokeLinejoin","round"]],template:function(i,r){1&i&&(e.qSk(),e.j41(0,"svg",0)(1,"defs"),e.nrm(2,"path",1),e.k0s(),e.j41(3,"g",2)(4,"g",3),e.nrm(5,"mask",4)(6,"path",5),e.k0s(),e.nrm(7,"path",6)(8,"path",7)(9,"path",8)(10,"path",9)(11,"path",10)(12,"path",11)(13,"path",12)(14,"path",13)(15,"path",14)(16,"path",15)(17,"path",16)(18,"path",17)(19,"path",18)(20,"path",19)(21,"path",20)(22,"path",21)(23,"path",22)(24,"path",23)(25,"path",24)(26,"path",25)(27,"path",26)(28,"path",27)(29,"path",28)(30,"path",29)(31,"path",30)(32,"path",31)(33,"path",32)(34,"path",33)(35,"path",34)(36,"path",35)(37,"path",36)(38,"path",37)(39,"path",38)(40,"path",39)(41,"path",40)(42,"path",41)(43,"path",42)(44,"path",43)(45,"path",44)(46,"path",45)(47,"path",46)(48,"path",47)(49,"path",48)(50,"path",49)(51,"path",50)(52,"path",51)(53,"path",52)(54,"path",53)(55,"path",54)(56,"path",55)(57,"path",56)(58,"path",57)(59,"path",58)(60,"path",59)(61,"path",60),e.k0s()())},encapsulation:2,changeDetection:0})}return n})(),Di=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["nz-result-server-error"]],exportAs:["nzResultServerError"],standalone:!0,features:[e.aNF],decls:69,vars:0,consts:[["width","254","height","294"],["d","M0 .335h253.49v253.49H0z"],["d","M0 293.665h253.49V.401H0z"],["fill","none","fillRule","evenodd"],["transform","translate(0 .067)"],["fill","#fff"],["d","M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134","fill","#E4EBF7","mask","url(#b)"],["d","M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671","fill","#FFF"],["d","M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861","stroke","#FFF","strokeWidth","2"],["d","M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238","fill","#FFF"],["d","M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775","fill","#FFF"],["d","M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68","fill","#FF603B"],["d","M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733","fill","#FFF"],["d","M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487","fill","#FFB594"],["d","M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235","fill","#FFF"],["d","M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246","fill","#FFB594"],["d","M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508","fill","#FFC6A0"],["d","M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z","fill","#520038"],["d","M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26","fill","#552950"],["stroke","#DB836E","strokeWidth","1.063","strokeLinecap","round","strokeLinejoin","round","d","M99.206 73.644l-.9 1.62-.3 4.38h-2.24"],["d","M99.926 73.284s1.8-.72 2.52.54","stroke","#5C2552","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68","stroke","#DB836E","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M92.326 71.724s1.84 1.12 4.16.96","stroke","#5C2552","strokeWidth","1.117","strokeLinecap","round","strokeLinejoin","round"],["d","M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954","stroke","#DB836E","strokeWidth","1.063","strokeLinecap","round","strokeLinejoin","round"],["d","M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044","stroke","#E4EBF7","strokeWidth","1.136","strokeLinecap","round","strokeLinejoin","round"],["d","M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583","fill","#FFF"],["d","M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75","fill","#FFC6A0"],["d","M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713","fill","#FFC6A0"],["d","M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16","fill","#FFC6A0"],["d","M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575","fill","#FFF"],["d","M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47","fill","#CBD1D1"],["d","M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z","fill","#2B0849"],["d","M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671","fill","#A4AABA"],["d","M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z","fill","#CBD1D1"],["d","M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162","fill","#2B0849"],["d","M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156","fill","#A4AABA"],["d","M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69","fill","#7BB2F9"],["d","M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M96.973 219.373s2.882-1.153 6.34-4.034","stroke","#648BD8","strokeWidth","1.032","strokeLinecap","round","strokeLinejoin","round"],["d","M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62","fill","#192064"],["d","M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843","fill","#FFF"],["d","M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668","fill","#192064"],["d","M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513","stroke","#648BD8","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69","fill","#FFC6A0"],["d","M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593","stroke","#DB836E","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594","fill","#FFC6A0"],["d","M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M109.278 112.533s3.38-3.613 7.575-4.662","stroke","#E4EBF7","strokeWidth","1.085","strokeLinecap","round","strokeLinejoin","round"],["d","M107.375 123.006s9.697-2.745 11.445-.88","stroke","#E59788","strokeWidth",".774","strokeLinecap","round","strokeLinejoin","round"],["d","M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955","stroke","#BFCDDD","strokeWidth","2","strokeLinecap","round","strokeLinejoin","round"],["d","M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01","fill","#A3B4C6"],["d","M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813","fill","#A3B4C6"],["fill","#A3B4C6","mask","url(#d)","d","M154.098 190.096h70.513v-84.617h-70.513z"],["d","M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208","fill","#BFCDDD","mask","url(#d)"],["d","M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802","fill","#FFF","mask","url(#d)"],["d","M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209","fill","#BFCDDD","mask","url(#d)"],["d","M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751","stroke","#7C90A5","strokeWidth","1.124","strokeLinecap","round","strokeLinejoin","round","mask","url(#d)"],["d","M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802","fill","#FFF","mask","url(#d)"],["d","M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407","fill","#BFCDDD","mask","url(#d)"],["d","M177.259 207.217v11.52M201.05 207.217v11.52","stroke","#A3B4C6","strokeWidth","1.124","strokeLinecap","round","strokeLinejoin","round","mask","url(#d)"],["d","M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422","fill","#5BA02E","mask","url(#d)"],["d","M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423","fill","#92C110","mask","url(#d)"],["d","M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209","fill","#F2D7AD","mask","url(#d)"]],template:function(i,r){1&i&&(e.qSk(),e.j41(0,"svg",0)(1,"defs"),e.nrm(2,"path",1)(3,"path",2),e.k0s(),e.j41(4,"g",3)(5,"g",4),e.nrm(6,"mask",5)(7,"path",6),e.k0s(),e.nrm(8,"path",7)(9,"path",8)(10,"path",9)(11,"path",10)(12,"path",11)(13,"path",12)(14,"path",13)(15,"path",14)(16,"path",15)(17,"path",16)(18,"path",17)(19,"path",18)(20,"path",19)(21,"path",20)(22,"path",21)(23,"path",22)(24,"path",23)(25,"path",24)(26,"path",25)(27,"path",26)(28,"path",27)(29,"path",28)(30,"path",29)(31,"path",30)(32,"path",31)(33,"path",32)(34,"path",33)(35,"path",34)(36,"path",35)(37,"path",36)(38,"path",37)(39,"path",38)(40,"path",39)(41,"path",40)(42,"path",41)(43,"path",42)(44,"path",43)(45,"path",44)(46,"path",45)(47,"path",46)(48,"path",47)(49,"path",48)(50,"path",49)(51,"path",50)(52,"path",51)(53,"path",52)(54,"path",53)(55,"path",54)(56,"path",55)(57,"mask",5)(58,"path",56)(59,"path",57)(60,"path",58)(61,"path",59)(62,"path",60)(63,"path",61)(64,"path",62)(65,"path",63)(66,"path",64)(67,"path",65)(68,"path",66),e.k0s()())},encapsulation:2,changeDetection:0})}return n})(),Fi=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["nz-result-unauthorized"]],exportAs:["nzResultUnauthorized"],standalone:!0,features:[e.aNF],decls:56,vars:0,consts:[["width","251","height","294"],["fill","none","fillRule","evenodd"],["d","M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023","fill","#E4EBF7"],["d","M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65","fill","#FFF"],["d","M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73","stroke","#FFF","strokeWidth","2"],["d","M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126","fill","#FFF"],["d","M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873","fill","#FFF"],["d","M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36","stroke","#FFF","strokeWidth","2"],["d","M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375","fill","#FFF"],["d","M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z","stroke","#FFF","strokeWidth","2"],["stroke","#FFF","strokeWidth","2","d","M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"],["d","M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321","fill","#A26EF4"],["d","M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734","fill","#FFF"],["d","M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717","fill","#FFF"],["d","M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61","fill","#5BA02E"],["d","M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611","fill","#92C110"],["d","M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17","fill","#F2D7AD"],["d","M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085","fill","#FFF"],["d","M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233","fill","#FFC6A0"],["d","M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367","fill","#FFB594"],["d","M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95","fill","#FFC6A0"],["d","M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929","fill","#FFF"],["d","M78.18 94.656s.911 7.41-4.914 13.078","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437","stroke","#E4EBF7","strokeWidth",".932","strokeLinecap","round","strokeLinejoin","round"],["d","M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z","fill","#FFC6A0"],["d","M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91","fill","#FFB594"],["d","M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103","fill","#5C2552"],["d","M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145","fill","#FFC6A0"],["stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round","d","M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"],["d","M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32","fill","#552950"],["d","M91.132 86.786s5.269 4.957 12.679 2.327","stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round"],["d","M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25","fill","#DB836E"],["d","M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073","stroke","#5C2552","strokeWidth","1.526","strokeLinecap","round","strokeLinejoin","round"],["d","M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254","stroke","#DB836E","strokeWidth","1.145","strokeLinecap","round","strokeLinejoin","round"],["d","M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M66.508 86.763s-1.598 8.83-6.697 14.078","stroke","#E4EBF7","strokeWidth","1.114","strokeLinecap","round","strokeLinejoin","round"],["d","M128.31 87.934s3.013 4.121 4.06 11.785","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M64.09 84.816s-6.03 9.912-13.607 9.903","stroke","#DB836E","strokeWidth",".795","strokeLinecap","round","strokeLinejoin","round"],["d","M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73","fill","#FFC6A0"],["d","M130.532 85.488s4.588 5.757 11.619 6.214","stroke","#DB836E","strokeWidth",".75","strokeLinecap","round","strokeLinejoin","round"],["d","M121.708 105.73s-.393 8.564-1.34 13.612","stroke","#E4EBF7","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M115.784 161.512s-3.57-1.488-2.678-7.14","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68","fill","#CBD1D1"],["d","M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z","fill","#2B0849"],["d","M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62","fill","#A4AABA"],["d","M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z","fill","#CBD1D1"],["d","M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078","fill","#2B0849"],["d","M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15","fill","#A4AABA"],["d","M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954","fill","#7BB2F9"],["d","M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M108.459 220.905s2.759-1.104 6.07-3.863","stroke","#648BD8","strokeLinecap","round","strokeLinejoin","round"],["d","M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"],["d","M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017","fill","#192064"],["d","M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806","fill","#FFF"],["d","M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64","fill","#192064"],["d","M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956","stroke","#648BD8","strokeWidth","1.051","strokeLinecap","round","strokeLinejoin","round"]],template:function(i,r){1&i&&(e.qSk(),e.j41(0,"svg",0)(1,"g",1),e.nrm(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"path",11)(12,"path",12)(13,"path",13)(14,"path",14)(15,"path",15)(16,"path",16)(17,"path",17)(18,"path",18)(19,"path",19)(20,"path",20)(21,"path",21)(22,"path",22)(23,"path",23)(24,"path",24)(25,"path",25)(26,"path",26)(27,"path",27)(28,"path",28)(29,"path",29)(30,"path",30)(31,"path",31)(32,"path",32)(33,"path",33)(34,"path",34)(35,"path",35)(36,"path",36)(37,"path",37)(38,"path",38)(39,"path",39)(40,"path",40)(41,"path",41)(42,"path",42)(43,"path",43)(44,"path",44)(45,"path",45)(46,"path",46)(47,"path",47)(48,"path",48)(49,"path",49)(50,"path",50)(51,"path",51)(52,"path",52)(53,"path",53)(54,"path",54)(55,"path",55),e.k0s()())},encapsulation:2,changeDetection:0})}return n})();const Ii={success:"check-circle",error:"close-circle",info:"exclamation-circle",warning:"warning"},Z1=["404","500","403"];let wi=(()=>{class n{constructor(t,i){this.cdr=t,this.directionality=i,this.nzStatus="info",this.isException=!1,this.dir="ltr",this.destroy$=new j.B}ngOnInit(){this.directionality.change?.pipe((0,te.Q)(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(){this.setStatusIcon()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusIcon(){const t=this.nzIcon;this.isException=-1!==Z1.indexOf(this.nzStatus),this.icon=t?"string"==typeof t&&Ii[t]||t:this.isException?void 0:Ii[this.nzStatus]}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(e.gRc),e.rXU(Nn.dS,8))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["nz-result"]],hostAttrs:[1,"ant-result"],hostVars:10,hostBindings:function(i,r){2&i&&e.AVh("ant-result-success","success"===r.nzStatus)("ant-result-error","error"===r.nzStatus)("ant-result-info","info"===r.nzStatus)("ant-result-warning","warning"===r.nzStatus)("ant-result-rtl","rtl"===r.dir)},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",nzStatus:"nzStatus",nzSubTitle:"nzSubTitle",nzExtra:"nzExtra"},exportAs:["nzResult"],standalone:!0,features:[e.OA$,e.aNF],ngContentSelectors:M1,decls:10,vars:4,consts:[[1,"ant-result-icon"],[1,"ant-result-title"],[1,"ant-result-subtitle"],[1,"ant-result-extra"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","fill",3,"nzType"],["class","ant-result-title",4,"nzStringTemplateOutlet"],["class","ant-result-subtitle",4,"nzStringTemplateOutlet"],["class","ant-result-extra",4,"nzStringTemplateOutlet"]],template:function(i,r){1&i&&(e.NAR(T1),e.j41(0,"div",0),e.DNE(1,w1,2,1)(2,E1,3,1),e.k0s(),e.DNE(3,A1,1,1,"div",1)(4,$1,1,0)(5,j1,1,1,"div",2)(6,B1,1,0),e.SdG(7),e.DNE(8,H1,1,1,"div",3)(9,X1,1,0)),2&i&&(e.R7$(),e.vxM(r.isException?2:1),e.R7$(2),e.vxM(r.nzTitle?3:4),e.R7$(2),e.vxM(r.nzSubTitle?5:6),e.R7$(3),e.vxM(r.nzExtra?8:9))},dependencies:[ct.C,ct.m,he.Y3,he.Dn,Mi,Di,Fi],encapsulation:2,changeDetection:0})}return n})(),K1=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[wi]})}return n})();var J1=f(7432),q1=f(3617),ep=f(3821);const tp=()=>[16,8],np=n=>({"feed-border":n});function ip(n,o){if(1&n&&(e.j41(0,"span",20),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.cvcTitle()," ")}}function op(n,o){if(1&n&&e.nrm(0,"cvc-activity-feed-counts",21),2&n){const t=e.XpG(2);e.Y8G("cvcFeedCounts",t.counts())}}function rp(n,o){1&n&&(e.j41(0,"nz-tag",23),e.nrm(1,"i",24),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function sp(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,rp,4,0,"nz-tag",22),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.moreLoading())}}function ap(n,o){1&n&&(e.j41(0,"nz-space",16),e.DNE(1,ip,2,1,"span",17)(2,op,1,1,"cvc-activity-feed-counts",18)(3,sp,2,1,"span",19),e.k0s())}function cp(n,o){if(1&n){const t=e.RV6();e.j41(0,"cvc-activity-feed-settings",25),e.bIt("cvcSettingsChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onSettingChange$.next(r))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("cvcSettings",t.cvcSettings())("cvcScope",t.cvcScope())}}function lp(n,o){if(1&n&&e.nrm(0,"nz-result",9),2&n){e.XpG();const t=e.sdS(12);e.Y8G("nzTitle",t)}}function up(n,o){1&n&&e.EFF(0," specified subject ")}function dp(n,o){1&n&&e.EFF(0," specified contributor ")}function pp(n,o){1&n&&e.EFF(0," specified filters ")}function fp(n,o){if(1&n&&(e.j41(0,"div",26),e.EFF(1," No Activities found matching "),e.DNE(2,up,1,0)(3,dp,1,0)(4,pp,1,0),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.vxM("SUBJECT"===t.cvcScope().mode?2:"USER"===t.cvcScope().mode?3:4)}}function hp(n,o){if(1&n&&e.nrm(0,"cvc-activity-feed-item",14),2&n){const t=o.$implicit,i=e.XpG(2);e.Y8G("cvcActivity",t.node)("cvcScope",i.cvcScope())}}function vp(n,o){if(1&n&&e.DNE(0,hp,1,2,"cvc-activity-feed-item",27),2&n){const t=e.XpG();e.Y8G("uiScrollOf",t.scrollDatasource)("uiScrollRoutines",t.scrollerRoutines)}}function mp(n,o){if(1&n){const t=e.RV6();e.j41(0,"cvc-activity-feed-settings",25),e.bIt("cvcSettingsChange",function(r){e.eBV(t);const s=e.XpG();return e.Njj(s.onSettingChange$.next(r))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("cvcSettings",t.cvcSettings())("cvcScope",t.cvcScope())}}const lt=new e.nKC("ActivityFeedScrollerState");let gp=(()=>{class n{constructor(t,i,r){this.gql=t,this.injector=i,this.scrollerState=r,this.cvcShowFilters=(0,e.hFB)(!0),this.cvcSettings=(0,e.hFB)(Zo),this.cvcFilters=(0,e.hFB)(Ko),this.cvcScope=(0,e.hFB)(Jo),this.cvcTitle=(0,e.hFB)("Activity Feed"),this.onSettingChange$=new j.B,this.onFilterChange$=new j.B,this.onToggleItem$=new j.B,this.poll$=new j.B,this.fetchMore$=new j.B,this.init$=new j.B,this.queryType$=new j.B,this.pageInfo$=new ar.c,this.onQueryComplete$=new j.B,this.onZeroRows$=new j.B,this.onAllRowsFetched$=new j.B,this.scrollerRoutines=function sr(n,o){return class extends Gt{onScroll(t){return this.viewport.addEventListener("scroll",i=>{o.onScrollEvent$.next(i),o.onScrollPosition$.next(super.getScrollPosition()),o.onScrollerSize$.next(super.getScrollerSize()),o.onViewportSize$.next(super.getViewportSize())}),o.onViewportSize$.next(super.getViewportSize()),o.onScrollPosition$.next(super.getScrollPosition()),o.onScrollerSize$.next(super.getScrollerSize()),super.onScroll(t)}}}(0,this.scrollerState),this.scroller=this.scrollerState.state.asReadonly(),this.zeroRows=be(this.onZeroRows$,{initialValue:!1}),this.allRowsFetched=be(this.onAllRowsFetched$,{initialValue:!1});const s=(0,si.z)([this.onSettingChange$,this.onFilterChange$]).pipe((0,ue.T)(([l,u])=>({type:"refetch",query:nc({settings:l,filters:u})}))),a=(0,Mn.h)(this.fetchMore$,this.poll$).pipe((0,ue.T)(l=>({type:"fetchMore",fetch:l})));this.result$=this.init$.pipe((0,Ht.n)(()=>(0,Mn.h)(s,a)),(0,Ht.n)(l=>(this.queryType$.next(l.type),this.onZeroRows$.next(!1),this.queryRef?"refetch"===l.type?this.queryRef.refetch(l.query).then(u=>{console.log("refetch complete",u),this.onQueryComplete$.next(!0),this.scrollAdapter&&this.scrollAdapter.reload()}):"fetchMore"===l.type&&this.queryRef&&this.queryRef.fetchMore({variables:l.fetch}).then(u=>{this.onQueryComplete$.next(!0),console.log("fetchMore complete",u)}):this.queryRef=this.gql.watch(l.query),this.queryRef.valueChanges)),(0,Lt.t)(1)),this.refetchLoading=be(this.result$.pipe((0,He.E)("loading"),(0,Dt.E)(this.queryType$),(0,Be.p)(([l,u])=>"refetch"===u),(0,ue.T)(([l])=>l)),{initialValue:!1}),this.moreLoading=be(this.result$.pipe((0,He.E)("loading"),(0,Dt.E)(this.queryType$),(0,Be.p)(([l,u])=>"fetchMore"===u),(0,ue.T)(([l])=>l)),{initialValue:!1});const c=this.result$.pipe((0,He.E)("data","activities"),(0,Be.p)(Ft.kP),(0,Lt.t)(1));this.pageInfo$=c.pipe((0,He.E)("pageInfo"),(0,Be.p)(Ft.kP)),this.counts=be(c.pipe((0,ue.T)(l=>function Za(n){return{total:n.totalCount,unfiltered:n.unfilteredCount,page:n.pageCount,rows:n.edges.length}}(l))),{initialValue:void 0}),this.feedFilterOptions=be(c.pipe((0,ue.T)(l=>function Qa(n){return{uniqueParticipants:n.uniqueParticipants??[],participatingOrganizations:n.participatingOrganizations??[],activityTypes:n.activityTypes??[],subjectTypes:n.subjectTypes??[]}}(l))),{initialValue:er}),this.allRowsFetched=be(this.onAllRowsFetched$.pipe((0,J1.T)("onAllRowsFetched$")),{initialValue:!1}),this.edge$=this.result$.pipe((0,He.E)("data","activities"),(0,Be.p)(Ft.kP),(0,ue.T)(l=>l.edges)),this.init$.next(),this.edge$.pipe((0,cr.s)(1)).subscribe(()=>{this.configureDatasource(),this.configureAdapter()})}configureDatasource(){this.scrollDatasource=new pc({get:(t,i)=>(0,tt.of)({index:t,count:i}).pipe((0,Dt.E)(this.edge$,this.pageInfo$),(0,Ht.n)(([r,s,a])=>{const{index:c,count:l}=r,u=c+l;if(0===c&&!1===a.hasNextPage&&s.length<=u)return(0,tt.of)(s);if(s.length>=u)return(0,tt.of)(s.slice(c,u));{const p={first:l,after:s[c-1].cursor};return this.onQueryComplete$.next(!1),this.fetchMore$.next(p),this.edge$.pipe(function pr(n){return(0,lr.N)((o,t)=>{let i=!1;const r=(0,ci._)(t,()=>{r?.unsubscribe(),i=!0},dr.l);(0,ur.Tg)(n).subscribe(r),o.subscribe((0,ci._)(t,s=>i&&t.next(s)))})}(this.onQueryComplete$),(0,ue.T)(v=>v.slice(c,u)))}})),settings:tr,devSettings:nr})}configureAdapter(){this.scrollAdapter=this.scrollDatasource?.adapter,(0,e.QZP)(()=>{this.scroller(),this.scrollAdapter?.check()},{injector:this.injector})}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(H.wlK),e.rXU(e.zZn),e.rXU(lt))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-activity-feed"]],inputs:{cvcShowFilters:[1,"cvcShowFilters"],cvcSettings:[1,"cvcSettings"],cvcFilters:[1,"cvcFilters"],cvcScope:[1,"cvcScope"],cvcTitle:[1,"cvcTitle"]},standalone:!0,features:[e.Jv_([{provide:lt,useFactory:t=>new Tn(t),deps:[e.SKi]}]),e.aNF],decls:22,vars:16,consts:[["cardTitle",""],["cardExtra",""],["resultsMessage",""],["nzSize","small",2,"width","100%",3,"nzTitle","nzExtra"],[3,"nzGutter"],[3,"nzSpan"],[1,"feed-container",3,"ngClass"],[1,"feed-layers"],[1,"messages"],["nzStatus","info",3,"nzTitle"],[1,"boundaries"],[1,"scroller"],["nzSize","large",3,"nzSpinning","nzDelay"],["cvcAutoHeightDiv","40","cvcAutoHeightTarget","viewport"],[3,"cvcActivity","cvcScope"],[3,"cvcFiltersChange","cvcFilterOptions","cvcFilters","cvcScope"],["nzDirection","horizontal"],["class","title",4,"nzSpaceItem"],[3,"cvcFeedCounts",4,"nzSpaceItem"],[4,"nzSpaceItem"],[1,"title"],[3,"cvcFeedCounts"],["nzColor","processing",4,"ngIf"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],[3,"cvcSettingsChange","cvcSettings","cvcScope"],[2,"font-size","18px","font-weight","600","text-align","center","color","#666"],[3,"cvcActivity","cvcScope",4,"uiScroll","uiScrollOf","uiScrollRoutines"]],template:function(i,r){if(1&i){const s=e.RV6();e.j41(0,"nz-card",3),e.DNE(1,ap,4,0,"ng-template",null,0,e.C5r)(3,cp,1,2,"ng-template",null,1,e.C5r),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"div",6)(8,"div",7)(9,"div",8),e.DNE(10,lp,1,1,"nz-result",9),e.k0s(),e.DNE(11,fp,5,1,"ng-template",null,2,e.C5r),e.nrm(13,"div",10),e.j41(14,"div",11)(15,"nz-spin",12)(16,"div",13),e.DNE(17,vp,1,2,"cvc-activity-feed-item",14),e.k0s()()()()()(),e.j41(18,"nz-col",5)(19,"cvc-activity-feed-filters",15),e.bIt("cvcFiltersChange",function(c){return e.eBV(s),e.Njj(r.onFilterChange$.next(c))}),e.k0s()()()(),e.DNE(20,mp,1,2,"ng-template",null,1,e.C5r)}if(2&i){const s=e.sdS(2),a=e.sdS(4);e.Y8G("nzTitle",s)("nzExtra",a),e.R7$(5),e.Y8G("nzGutter",e.lJ4(13,tp)),e.R7$(),e.Y8G("nzSpan",r.cvcShowFilters()?18:24),e.R7$(),e.Y8G("ngClass",e.eq3(14,np,r.cvcShowFilters())),e.R7$(3),e.vxM(r.zeroRows()?10:-1),e.R7$(5),e.Y8G("nzSpinning",r.refetchLoading())("nzDelay",0),e.R7$(2),e.vxM(r.scrollDatasource?17:-1),e.R7$(),e.Y8G("nzSpan",r.cvcShowFilters()?6:0),e.R7$(),e.Y8G("cvcFilterOptions",r.feedFilterOptions())("cvcFilters",r.cvcFilters())("cvcScope",r.cvcScope())}},dependencies:[z.MD,z.YU,z.bT,dc,uc,q1.$,Ut.Ti,Ut.cK,de.f3,de.Uq,de.e,Gn.pc,Gn.U5,Gn.Dq,Ce.T,Ce.s,Ti.V,Ti.a,K1,wi,wn,fc.i,ep.L,vc,_c,S1],styles:["[_nghost-%COMP%]{display:block}.feed-container[_ngcontent-%COMP%]{margin:-11px -12px -12px;border-bottom-left-radius:2px;overflow:hidden}.feed-container.feed-border[_ngcontent-%COMP%]{border-right:1px solid #f0f0f0;margin-right:inherit}.feed-layers[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column}.feed-layers[_ngcontent-%COMP%] .messages[_ngcontent-%COMP%]{z-index:10;position:absolute;display:block;height:100%;width:100%;pointer-events:none}.feed-layers[_ngcontent-%COMP%] .messages[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{pointer-events:auto}.feed-layers[_ngcontent-%COMP%] .scroller[_ngcontent-%COMP%]{z-index:0;position:relative;display:block;padding:0 12px}"],data:{animation:[]},changeDetection:0})}return n})()},5757:(dt,ve,f)=>{f.d(ve,{v:()=>w});var e=f(177),H=f(5703),h=f(2617),V=f(7529),D=f(7685),X=f(5699),y=f(4917),x=f(3953);let w=(()=>{class R{static#e=this.\u0275fac=function(Ee){return new(Ee||R)};static#t=this.\u0275mod=x.$C({type:R});static#n=this.\u0275inj=x.G2t({imports:[e.MD,H.Ti,h.rD,V.f3,X.T,D.pc,y.i]})}return R})()},3710:(dt,ve,f)=>{f.d(ve,{T:()=>vn});var e=f(3953),H=f(177),h=f(1188),V=f(6354),D=f(5964),X=f(9199),y=f(9145),x=f(5703),w=f(5103),R=f(7685),L=f(2e3),N=f(3245),Ee=f(6408),pt=f(1417),_e=f(9045),Ne=f(959),Me=f(8238),Le=f(311),De=f(4126),ft=f(1774),ht=f(3075),ze=f(8139);function Z(b,W){if(1&b&&(e.j41(0,"span"),e.nrm(1,"i",14),e.nI1(2,"entityColor"),e.EFF(3),e.k0s()),2&b){const S=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"Revision")),e.R7$(2),e.SpI(" RID",S.id," ")}}function on(b,W){if(1&b&&e.nrm(0,"cvc-status-tag",15),2&b){const S=e.XpG(2).ngIf;e.Y8G("status",S.status)}}function vt(b,W){1&b&&(e.j41(0,"nz-space",11),e.DNE(1,Z,4,4,"span",12)(2,on,1,1,"cvc-status-tag",13),e.k0s())}function Fe(b,W){if(1&b&&e.nrm(0,"cvc-feature-tag",16),2&b){const S=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("feature",S.subject)}}function mt(b,W){if(1&b&&e.nrm(0,"cvc-assertion-tag",17),2&b){const S=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("assertion",S.subject)}}function rn(b,W){if(1&b&&e.nrm(0,"cvc-evidence-tag",18),2&b){const S=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("evidence",S.subject)}}function k(b,W){if(1&b&&e.nrm(0,"cvc-feature-variant-tag",19),2&b){const S=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variant",S.subject)}}function se(b,W){if(1&b&&e.nrm(0,"cvc-variant-group-tag",20),2&b){const S=e.XpG(2).ngIf;e.Y8G("enablePopover",!1)("variantgroup",S.subject)}}function F(b,W){if(1&b&&e.EFF(0),2&b){const S=e.XpG(2).ngIf;e.SpI(" ",S.subject.name," ")}}function ae(b,W){if(1&b&&e.DNE(0,Fe,1,2,"cvc-feature-tag",16)(1,mt,1,2,"cvc-assertion-tag",17)(2,rn,1,2,"cvc-evidence-tag",18)(3,k,1,2,"cvc-feature-variant-tag",19)(4,se,1,2,"cvc-variant-group-tag",20)(5,F,1,1),2&b){let S;const M=e.XpG().ngIf;e.vxM("Feature"===(S=M.subject.__typename)?0:"Assertion"===S?1:"EvidenceItem"===S?2:"Variant"===S?3:"VariantGroup"===S?4:5)}}function gt(b,W){if(1&b&&e.nrm(0,"cvc-user-tag",21),2&b){const S=e.XpG().ngIf;e.Y8G("enablePopover",!1)("user",S.creationActivity.user)}}function Pt(b,W){if(1&b&&(e.j41(0,"nz-descriptions-item",22),e.nrm(1,"cvc-comment-body",23),e.k0s()),2&b){const S=e.XpG().ngIf;e.R7$(),e.Y8G("commentBodySegments",S.creationActivity.parsedNote)}}function sn(b,W){if(1&b&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,vt,3,0,"ng-template",null,0,e.C5r)(4,ae,6,1,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.DNE(8,gt,1,2,"cvc-user-tag",7),e.k0s(),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.nI1(13,"timeAgo"),e.k0s(),e.DNE(14,Pt,2,1,"nz-descriptions-item",10),e.k0s()(),e.bVm()),2&b){const S=W.ngIf,M=e.sdS(3),ye=e.sdS(5);e.R7$(),e.Y8G("nzTitle",M)("nzExtra",ye),e.R7$(5),e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("ngIf",null==S.creationActivity?null:S.creationActivity.user),e.R7$(2),e.SpI(" ",S.linkoutData.name," "),e.R7$(2),e.SpI(" ",e.bMT(13,7,S.createdAt)," "),e.R7$(2),e.Y8G("ngIf",null==S.creationActivity?null:S.creationActivity.parsedNote)}}let an=(()=>{class b{constructor(S){this.gql=S}ngOnInit(){if(null==this.revisionId)throw new Error("cvc-revision-popover requires valid revisionId input.");this.revision$=this.gql.watch({revisionId:this.revisionId}).valueChanges.pipe((0,V.T)(({data:S})=>S?.revision),(0,D.p)(X.kP))}static#e=this.\u0275fac=function(M){return new(M||b)(e.rXU(y.XWi))};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["cvc-revision-popover"]],inputs:{revisionId:"revisionId"},decls:3,vars:3,consts:[["cardTitle",""],["subject",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Revisor"],[3,"enablePopover","user",4,"ngIf"],["nzTitle","Field"],["nzTitle","Revision Date"],["nzTitle","Creation Comment",4,"ngIf"],[1,"revision-card-title"],[4,"nzSpaceItem"],[3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-revision",3,"nzTwotoneColor"],[3,"status"],[3,"enablePopover","feature"],[3,"enablePopover","assertion"],[3,"enablePopover","evidence"],[3,"enablePopover","variant"],[3,"enablePopover","variantgroup"],[3,"enablePopover","user"],["nzTitle","Creation Comment"],[3,"commentBodySegments"]],template:function(M,ye){1&M&&(e.j41(0,"div",2),e.DNE(1,sn,15,9,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&M&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,ye.revision$)))},dependencies:[H.bT,x.cK,w.Dn,R.U5,R.Dq,L.xA,L.gr,N._,Ee.r,pt.a,_e.J,Ne.j,Me.S,Le.g,De.p,ft.L9,ht.R,ze.N],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}[_nghost-%COMP%]{display:block}.revision-card-title[_ngcontent-%COMP%]{font-weight:400}"]})}return b})();var cn=f(5699),ln=f(1236);const un=b=>({revisionSetId:b});function dn(b,W){}function pn(b,W){}function Ye(b,W){if(1&b&&e.nrm(0,"cvc-revision-popover",6),2&b){const S=e.XpG(2);e.Y8G("revisionId",S.revision.id)}}function fn(b,W){if(1&b&&(e.j41(0,"nz-tag",5),e.DNE(1,pn,0,0,"ng-template",4),e.k0s(),e.DNE(2,Ye,1,1,"ng-template",null,2,e.C5r)),2&b){const S=e.sdS(3),M=e.XpG(),ye=e.sdS(5);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",S)("nzPopoverTrigger",M.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",ye)}}function hn(b,W){if(1&b&&(e.nrm(0,"i",7),e.EFF(1)),2&b){const S=e.XpG();e.R7$(),e.SpI(" ",S.revision.name,"\n")}}let vn=(()=>{class b{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.revision)throw new Error("cvc-revision-tag requires LinkableRevision input, none supplied.")}static#e=this.\u0275fac=function(M){return new(M||b)};static#t=this.\u0275cmp=e.VBU({type:b,selectors:[["cvc-revision-tag"]],inputs:{revision:"revision",subject:"subject",enablePopover:"enablePopover"},decls:6,vars:5,consts:[["tag",""],["tagContent",""],["revisionPopover",""],[3,"routerLink","queryParams"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"revisionId"],["nz-icon","","nzType","civic-revision","nzTheme","twotone","nzTwotoneColor","#F0673A"]],template:function(M,ye){if(1&M&&(e.j41(0,"a",3),e.DNE(1,dn,0,0,"ng-template",4),e.k0s(),e.DNE(2,fn,4,4,"ng-template",null,0,e.C5r)(4,hn,2,1,"ng-template",null,1,e.C5r)),2&M){const Ot=e.sdS(3);e.Y8G("routerLink",ye.revision.link)("queryParams",e.eq3(3,un,ye.revision.revisionSetId)),e.R7$(),e.Y8G("ngTemplateOutlet",Ot)}},dependencies:[H.T3,h.Wk,an,cn.s,w.Dn,ln.L_],encapsulation:2})}return b})()},4415:(dt,ve,f)=>{f.d(ve,{O:()=>ze});var e=f(177),H=f(5699),h=f(5103),V=f(1188),D=f(4917),X=f(2839),y=f(1862),x=f(6936),w=f(5703),R=f(7529),L=f(8134),N=f(9590),Ee=f(7685),pt=f(2e3),_e=f(5757),Ne=f(7169),Me=f(6912),Le=f(7086),De=f(3953);let ft=(()=>{class Z{static#e=this.\u0275fac=function(Fe){return new(Fe||Z)};static#t=this.\u0275mod=De.$C({type:Z});static#n=this.\u0275inj=De.G2t({imports:[e.MD,w.Ti,R.f3,h.Y3,Ee.pc,pt.WF,D.i,Me.l,X.m,y.e,x.G,Le.C,L.l,N.R,Ne.W,_e.v]})}return Z})();var ht=f(1236);let ze=(()=>{class Z{static#e=this.\u0275fac=function(Fe){return new(Fe||Z)};static#t=this.\u0275mod=De.$C({type:Z});static#n=this.\u0275inj=De.G2t({imports:[e.MD,V.iI,D.i,ft,H.T,h.Y3,ht.MC]})}return Z})()},3821:(dt,ve,f)=>{f.d(ve,{L:()=>V});var e=f(1413),H=f(3386),h=f(3953);let V=(()=>{class D{set cvcAutoHeightDiv(y){const x=parseInt(y,0);!isNaN(x)&&x>=0&&(this._offset=x)}set cvcAutoHeightTarget(y){this._target=y}get cvcAutoHeightTarget(){return this._target}constructor(y,x,w){this.el=y,this.zone=x,this.cdr=w,this._offset=0,this._target="parent",this.divTop=0,this.onResized$=new e.B,this.resizeObserver=new ResizeObserver(R=>{this.zone.run(()=>{this.onResized$.next(!0)})}),this.onResized$.pipe((0,H.c)(10)).subscribe(R=>{this.resizeToFitContent()})}ngOnInit(){this.resizeObserver.observe(this.el.nativeElement)}ngAfterViewInit(){Promise.resolve().then(()=>{this.resizeToFitContent()})}resizeToFitContent(){const y=this.el.nativeElement,x=y.parentElement.getBoundingClientRect().height;y&&y.getBoundingClientRect&&y.getBoundingClientRect().top&&(this.divTop=y.getBoundingClientRect().top),y&&("parent"===this._target?y.style.height=x:"viewport"===this._target&&(y.getBoundingClientRect&&y.getBoundingClientRect().top&&(this.divTop=y.getBoundingClientRect().top),y.style.height=`calc(100vh - ${this.divTop+this._offset}px)`),y.style["overflow-y"]="auto",this.cdr.detectChanges())}ngOnDestroy(){this.onResized$.unsubscribe(),this.resizeObserver.unobserve(this.el.nativeElement)}static#e=this.\u0275fac=function(x){return new(x||D)(h.rXU(h.aKT),h.rXU(h.SKi),h.rXU(h.gRc))};static#t=this.\u0275dir=h.FsC({type:D,selectors:[["","cvcAutoHeightDiv",""]],inputs:{cvcAutoHeightDiv:"cvcAutoHeightDiv",cvcAutoHeightTarget:"cvcAutoHeightTarget"}})}return D})()},7432:(dt,ve,f)=>{function H(w,R){for(var L=0;Ly});var x=function(){function w(R){(function e(w,R){if(!(w instanceof R))throw new TypeError("Cannot call a class as a function")})(this,w),function V(w,R,L){R in w?Object.defineProperty(w,R,{value:L,enumerable:!0,configurable:!0,writable:!0}):w[R]=L}(this,"tag",void 0),this.tag=R}return function h(w,R,L){R&&H(w.prototype,R),L&&H(w,L)}(w,[{key:"call",value:function(L,N){return N.subscribe(L)}}]),w}()}}]); \ No newline at end of file diff --git a/server/public/8580.1078d0af0d71065a.js b/server/public/8580.1078d0af0d71065a.js new file mode 100644 index 000000000..eaf59b7c8 --- /dev/null +++ b/server/public/8580.1078d0af0d71065a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8580],{6936:($,v,e)=>{e.d(v,{G:()=>O});var t=e(177),h=e(1188),n=e(5699),m=e(1236),z=e(5103),C=e(4666),u=e(4917),y=e(3146),P=e(4994),f=e(3953);let O=(()=>{class c{static#t=this.\u0275fac=function(x){return new(x||c)};static#n=this.\u0275mod=f.$C({type:c});static#e=this.\u0275inj=f.G2t({imports:[t.MD,h.iI,y.W2,n.T,m.MC,z.Y3,C.v,u.i,P.a]})}return c})()},6440:($,v,e)=>{e.d(v,{r:()=>U});var t=e(3953),h=e(177),n=e(1188),m=e(5699),z=e(5103),C=e(1236),u=e(9199),y=e(6354),P=e(5964),f=e(9145),O=e(5703),c=e(7529),E=e(2e3),M=e(7679),x=e(9162),b=e(1774);const _=(a,d)=>({displayName:a,profileImagePath:d});function F(a,d){if(1&a&&(t.nrm(0,"cvc-user-avatar",12),t.j41(1,"span",13),t.EFF(2),t.k0s()),2&a){const i=t.XpG().ngIf;t.Y8G("user",t.l_i(2,_,i.name,i.profileImagePath)),t.R7$(2),t.JRh(i.name)}}function I(a,d){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const i=d.ngIf;t.R7$(),t.JRh(i)}}function G(a,d){if(1&a&&(t.qex(0),t.j41(1,"cvc-link-tag",14),t.EFF(2),t.k0s(),t.bVm()),2&a){const i=t.XpG().ngIf;t.R7$(),t.Y8G("href",i.url),t.R7$(),t.SpI(" ",i.name," ")}}function R(a,d){if(1&a&&(t.qex(0),t.j41(1,"nz-card",5),t.DNE(2,F,3,5,"ng-template",null,2,t.C5r),t.j41(4,"nz-row")(5,"nz-col",6)(6,"div",7)(7,"p",8),t.DNE(8,I,2,1,"span",9),t.k0s()()()(),t.j41(9,"nz-descriptions",10)(10,"nz-descriptions-item",11),t.DNE(11,G,3,2,"ng-container",9),t.k0s()()(),t.bVm()),2&a){const i=d.ngIf,l=t.sdS(3);t.XpG();const D=t.sdS(4),Y=t.sdS(6);t.R7$(),t.Y8G("nzTitle",l),t.R7$(7),t.Y8G("ngIf",i.description)("ngIfElse",D),t.R7$(),t.Y8G("nzColumn",2),t.R7$(2),t.Y8G("ngIf",i.url)("ngIfElse",Y)}}function r(a,d){1&a&&t.EFF(0," Organization has not provided a description.\n")}function S(a,d){1&a&&t.EFF(0," -- ")}let o=(()=>{class a{constructor(i){this.gql=i}ngOnInit(){if(void 0===this.orgId)throw new Error("cvc-org-popover requires orgId input.");this.org$=this.gql.watch({orgId:this.orgId}).valueChanges.pipe((0,y.T)(({data:i})=>i?.organization),(0,P.p)(u.kP))}static#t=this.\u0275fac=function(l){return new(l||a)(t.rXU(f.I8L))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["cvc-organization-popover"]],inputs:{orgId:"orgId"},decls:7,vars:3,consts:[["noDesc",""],["noHomepage",""],["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSpan","24"],[1,"popover-text"],["nz-typography",""],[4,"ngIf","ngIfElse"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Homepage"],["size","default",3,"user"],["nz-typography","","nzStyle","default",1,"display-name"],[3,"href"]],template:function(l,D){1&l&&(t.j41(0,"div",3),t.DNE(1,R,12,6,"ng-container",4),t.nI1(2,"ngrxPush"),t.k0s(),t.DNE(3,r,1,0,"ng-template",null,0,t.C5r)(5,S,1,0,"ng-template",null,1,t.C5r)),2&l&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,D.org$)))},dependencies:[h.bT,O.cK,c.Uq,c.e,E.xA,E.gr,M.a,x.G,b.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return a})();function p(a,d){}function g(a,d){if(1&a&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,p,0,0,"ng-template",6),t.k0s(),t.bVm()),2&a){const i=t.XpG(),l=t.sdS(2);t.R7$(),t.Mz_("routerLink","/organizations/",i.org.id,""),t.R7$(),t.Y8G("ngTemplateOutlet",l)}}function s(a,d){}function T(a,d){if(1&a&&t.nrm(0,"cvc-organization-popover",9),2&a){const i=t.XpG(3);t.Y8G("orgId",i.org.id)}}function j(a,d){if(1&a&&t.DNE(0,T,1,1,"cvc-organization-popover",8),2&a){const i=t.XpG(2);t.Y8G("ngIf",i.enablePopover)}}function A(a,d){if(1&a&&(t.j41(0,"nz-tag",7),t.DNE(1,s,0,0,"ng-template",6),t.k0s(),t.DNE(2,j,1,1,"ng-template",null,3,t.C5r)),2&a){const i=t.sdS(3);t.XpG();const l=t.sdS(6);t.Y8G("nzPopoverContent",i),t.R7$(),t.Y8G("ngTemplateOutlet",l)}}function B(a,d){}function w(a,d){if(1&a&&t.DNE(0,B,0,0,"ng-template",6),2&a){t.XpG();const i=t.sdS(2);t.Y8G("ngTemplateOutlet",i)}}function N(a,d){if(1&a&&(t.nrm(0,"i",10),t.EFF(1)),2&a){const i=t.XpG();t.R7$(),t.SpI(" ",i.org.name,"\n")}}let U=(()=>{class a{constructor(){this.linked=!0,this.enablePopover=!0}ngOnInit(){if(void 0===this.org)throw new Error("cvc-org-tag requires valid TagLinkableOrganization input, none provided.")}static#t=this.\u0275fac=function(l){return new(l||a)};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["cvc-organization-tag"]],inputs:{org:"org",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["orgPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverContent"],[3,"orgId",4,"ngIf"],[3,"orgId"],["nz-icon","","nzType","civic-organization","nzTheme","twotone","nzTwotoneColor","#58A0C4"]],template:function(l,D){if(1&l&&t.DNE(0,g,3,3,"ng-container",4)(1,A,4,2,"ng-template",null,0,t.C5r)(3,w,1,1,"ng-template",null,1,t.C5r)(5,N,2,1,"ng-template",null,2,t.C5r),2&l){const Y=t.sdS(4);t.Y8G("ngIf",D.linked)("ngIfElse",Y)}},dependencies:[h.bT,h.T3,n.Wk,m.s,z.Dn,C.L_,o],styles:["[_nghost-%COMP%]{display:inline-block}"]})}return a})()},2478:($,v,e)=>{e.r(v),e.d(v,{CurationQueuesModule:()=>R});var t=e(177),h=e(4124),n=e(1532),m=e(4917),z=e(7529),C=e(5103),u=e(3062),y=e(7685),P=e(7391),f=e(1188),O=e(9145),c=e(3953),E=e(4441);let M=(()=>{class r{constructor(){this.status=O.OWv.Submitted}ngOnInit(){}static#t=this.\u0275fac=function(p){return new(p||r)};static#n=this.\u0275cmp=c.VBU({type:r,selectors:[["cvc-pending-assertions-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Assertions",3,"status"]],template:function(p,g){1&p&&c.nrm(0,"cvc-assertions-table",0),2&p&&c.Y8G("status",g.status)},dependencies:[E.z],encapsulation:2})}return r})();var x=e(8199);let b=(()=>{class r{constructor(){this.status=O.OWv.Submitted}ngOnInit(){}static#t=this.\u0275fac=function(p){return new(p||r)};static#n=this.\u0275cmp=c.VBU({type:r,selectors:[["cvc-pending-evidence-page"]],decls:1,vars:1,consts:[["cvcTitle","Browse Pending Evidence",3,"status"]],template:function(p,g){1&p&&c.nrm(0,"cvc-evidence-table",0),2&p&&c.Y8G("status",g.status)},dependencies:[x.N],encapsulation:2})}return r})();var _=e(3340);const I=[{path:"",redirectTo:"pending-sources",pathMatch:"full"},{path:"pending-sources",component:(()=>{class r{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(p){return new(p||r)};static#n=this.\u0275cmp=c.VBU({type:r,selectors:[["cvc-pending-sources-page"]],decls:1,vars:0,consts:[["cvcTitle","Browse Suggested Sources"]],template:function(p,g){1&p&&c.nrm(0,"cvc-source-suggestions-table",0)},dependencies:[_.E],encapsulation:2})}return r})(),data:{breadcrumb:"Pending Source Suggestions"}},{path:"pending-evidence",component:b,data:{breadcrumb:"Pending Evidence Items"}},{path:"pending-assertions",component:M,data:{breadcrumb:"Pending Assertions"}}];let G=(()=>{class r{static#t=this.\u0275fac=function(p){return new(p||r)};static#n=this.\u0275mod=c.$C({type:r});static#e=this.\u0275inj=c.G2t({imports:[f.iI.forChild(I),f.iI]})}return r})(),R=(()=>{class r{static#t=this.\u0275fac=function(p){return new(p||r)};static#n=this.\u0275mod=c.$C({type:r});static#e=this.\u0275inj=c.G2t({imports:[t.MD,G,u.ZJ,C.Y3,y.pc,P.kT,z.f3,h.C,n.W,m.i]})}return r})()},2670:($,v,e)=>{e.r(v),e.d(v,{CurationModule:()=>S});var t=e(177),h=e(1188),n=e(3953),m=e(3062),z=e(5103),C=e(7391),u=e(7529),y=e(9765),P=e(9945),f=e(3075);const M=[{path:"",component:(()=>{class o{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-curation-view"]],decls:1,vars:0,template:function(s,T){1&s&&n.nrm(0,"router-outlet")},dependencies:[h.n3],encapsulation:2})}return o})(),children:[{path:"",redirectTo:"activity",pathMatch:"full"},{path:"activity",component:(()=>{class o{constructor(){this.tabs=[{routeName:"curation-timeline",iconName:"civic-event",tabLabel:"Timeline"}]}static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-curation-activity-view"]],decls:20,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-event",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(s,T){1&s&&(n.nrm(0,"cvc-section-navigation"),n.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n.nrm(5,"i",3),n.nI1(6,"entityColor"),n.k0s(),n.j41(7,"nz-col",4)(8,"h2"),n.EFF(9,"Curation Event Timeline"),n.k0s(),n.j41(10,"p",5),n.EFF(11," All CIViC curation activity is logged and publicly available, thus esablishing the provenance of its assertions, summaries, associations, and acknowledging the work of collaborators. "),n.k0s()(),n.nrm(12,"nz-col",6),n.k0s(),n.j41(13,"nz-row")(14,"nz-col",7),n.nrm(15,"cvc-tab-navigation",8),n.k0s()(),n.j41(16,"nz-row")(17,"nz-col",7)(18,"div",9),n.nrm(19,"router-outlet"),n.k0s()()()()()),2&s&&(n.R7$(5),n.Y8G("nzTwotoneColor",n.bMT(6,5,"Event")),n.R7$(5),n.Y8G("nzEllipsisRows",2),n.R7$(4),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("tabs",T.tabs),n.R7$(2),n.Y8G("nzSpan",24))},dependencies:[h.n3,m.WB,m.zR,z.Dn,C.Di,u.Uq,u.e,y.n,P.N,f.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})(),loadChildren:()=>Promise.all([e.e(8313),e.e(3643)]).then(e.bind(e,5730)).then(o=>o.CurationActivityModule),data:{breadcrumb:"Activity"}},{path:"queues",component:(()=>{class o{constructor(){this.tabs=[{routeName:"pending-sources",iconName:"civic-source",tabLabel:"Sources Queue"},{routeName:"pending-evidence",iconName:"civic-evidence",tabLabel:"Evidence Queue"},{routeName:"pending-assertions",iconName:"civic-assertion",tabLabel:"Assertions Queue"}]}static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275cmp=n.VBU({type:o,selectors:[["cvc-curation-queues-view"]],decls:20,vars:7,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-queue",3,"nzTwotoneColor"],["nzFlex","600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],[3,"nzSpan"],[3,"tabs"],[1,"content"]],template:function(s,T){1&s&&(n.nrm(0,"cvc-section-navigation"),n.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),n.nrm(5,"i",3),n.nI1(6,"entityColor"),n.k0s(),n.j41(7,"nz-col",4)(8,"h2"),n.EFF(9,"Curation Queues"),n.k0s(),n.j41(10,"p",5),n.EFF(11," New submitted Evidence, Assertions, and Source Suggestions must be accepted by a CIViC Editor. These Curation Queues list items in need of Editor moderation. "),n.k0s()(),n.nrm(12,"nz-col",6),n.k0s(),n.j41(13,"nz-row")(14,"nz-col",7),n.nrm(15,"cvc-tab-navigation",8),n.k0s()(),n.j41(16,"nz-row")(17,"nz-col",7)(18,"div",9),n.nrm(19,"router-outlet"),n.k0s()()()()()),2&s&&(n.R7$(5),n.Y8G("nzTwotoneColor",n.bMT(6,5,"Queue")),n.R7$(5),n.Y8G("nzEllipsisRows",2),n.R7$(4),n.Y8G("nzSpan",24),n.R7$(),n.Y8G("tabs",T.tabs),n.R7$(2),n.Y8G("nzSpan",24))},dependencies:[h.n3,m.WB,m.zR,z.Dn,C.Di,u.Uq,u.e,y.n,P.N,f.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return o})(),loadChildren:()=>Promise.resolve().then(e.bind(e,2478)).then(o=>o.CurationQueuesModule),data:{breadcrumb:"Queues"}}]}];let x=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[h.iI.forChild(M),h.iI]})}return o})();var b=e(2478),_=e(5594);let F=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[t.MD,_.b]})}return o})();var I=e(4531);let G=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[t.MD,I.C]})}return o})();var R=e(7660);let r=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[t.MD,R.u]})}return o})(),S=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#n=this.\u0275mod=n.$C({type:o});static#e=this.\u0275inj=n.G2t({imports:[t.MD,x,b.CurationQueuesModule,F,G,r]})}return o})()}}]); \ No newline at end of file diff --git a/server/public/8584.fa76254f1fc877d6.js b/server/public/8584.3f3829d1fb4ec6b8.js similarity index 91% rename from server/public/8584.fa76254f1fc877d6.js rename to server/public/8584.3f3829d1fb4ec6b8.js index 09be327d8..8d4ffd021 100644 --- a/server/public/8584.fa76254f1fc877d6.js +++ b/server/public/8584.3f3829d1fb4ec6b8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8584],{959:(u,p,t)=>{t.d(p,{j:()=>h});var o=t(3953),c=t(3100),g=t(3245),d=t(4247);let h=(()=>{class l{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(r){return new(r||l)};static#e=this.\u0275cmp=o.VBU({type:l,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(r,i){1&r&&(o.j41(0,"cvc-tag-group"),o.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),o.k0s()),2&r&&(o.R7$(),o.Y8G("feature",i.feature)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName),o.R7$(),o.Y8G("variant",i.variant)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName))},dependencies:[c.V,g._,d.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return l})()},7502:(u,p,t)=>{t.r(p),t.d(p,{MolecularProfilesModule:()=>I});var o=t(177),c=t(1188),g=t(4124),d=t(3062),h=t(7529),l=t(5103),m=t(7391),f=t(513),r=t(7685),i=t(2242),v=t(1236),z=t(7380),P=t(9972),M=t(4917),e=t(3953);let C=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[o.MD,c.iI,d.ZJ,h.f3,l.Y3,m.kT,f.Zw,r.pc,v.MC,M.i,g.C,P.V,i.i,g.C,z.s]})}return n})();var y=t(1305),O=t(6389),b=t(9765),x=t(8097),E=t(3075);function T(n,R){1&n&&(e.j41(0,"a",13),e.nrm(1,"i",14),e.EFF(2," View Molecular Profiles Model Docs "),e.k0s())}function D(n,R){1&n&&(e.j41(0,"a",15),e.nrm(1,"i",14),e.EFF(2," View Molecular Profiles Curation Docs "),e.k0s())}const F=[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=e.VBU({type:n,selectors:[["app-molecular-profiles"]],decls:1,vars:0,template:function(a,L){1&a&&e.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class n{constructor(s){this.viewerService=s,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)(e.rXU(y.q))};static#e=this.\u0275cmp=e.VBU({type:n,selectors:[["molecular-profiles-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/molecular_profiles.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/molecular_profiles.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Molecular Profiles"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/molecular_profiles.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/molecular_profiles.html","target","_blank","nzSize","small","nzBlock",""]],template:function(a,L){1&a&&(e.nrm(0,"cvc-section-navigation"),e.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),e.nrm(5,"i",3),e.nI1(6,"entityColor"),e.k0s(),e.j41(7,"nz-col",4)(8,"h2"),e.EFF(9,"Molecular Profiles"),e.k0s(),e.j41(10,"p",5),e.EFF(11," CIViC molecular profiles are complex combinations of one or more CIViC variants across one or more genes. Variants are placed in combinations connected by AND or OR, and mutual exclusivity is supported by NOT. These relationships may be further defined by parenthesis. "),e.k0s()(),e.j41(12,"nz-col",6)(13,"nz-space",7),e.DNE(14,T,3,0,"a",8)(15,D,3,0,"a",9),e.k0s()()(),e.j41(16,"nz-row")(17,"nz-col",10)(18,"div",11),e.nrm(19,"cvc-molecular-profiles-table",12),e.k0s()()()()()),2&a&&(e.R7$(5),e.Y8G("nzTwotoneColor",e.bMT(6,3,"MolecularProfile")),e.R7$(5),e.Y8G("nzEllipsisRows",2),e.R7$(7),e.Y8G("nzSpan",24))},dependencies:[d.WB,d.zR,h.Uq,h.e,l.Dn,m.Di,f.aO,O.c,r.U5,r.Dq,b.n,x.I,E.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}:[_nghost-%COMP%]{position:relative}.addVariant[_ngcontent-%COMP%]{width:500px}"]})}return n})(),data:{breadcrumb:"Home"}},{path:":molecularProfileId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(3967),t.e(8414),t.e(1110),t.e(6508),t.e(6161),t.e(3236),t.e(326),t.e(262),t.e(5384),t.e(5958),t.e(7038),t.e(9373)]).then(t.bind(t,6544)).then(n=>n.MolecularProfilesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(2076),t.e(9611)]).then(t.bind(t,6462)).then(n=>n.MolecularProfilesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let V=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[c.iI.forChild(F),C,c.iI]})}return n})(),I=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[o.MD,V]})}return n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8584],{959:(u,p,t)=>{t.d(p,{j:()=>h});var o=t(3953),c=t(3100),g=t(3245),d=t(4247);let h=(()=>{class l{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(r){return new(r||l)};static#e=this.\u0275cmp=o.VBU({type:l,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(r,i){1&r&&(o.j41(0,"cvc-tag-group"),o.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),o.k0s()),2&r&&(o.R7$(),o.Y8G("feature",i.feature)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName),o.R7$(),o.Y8G("variant",i.variant)("enablePopover",i.enablePopover)("truncateLongName",i.truncateLongName))},dependencies:[c.V,g._,d.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return l})()},7502:(u,p,t)=>{t.r(p),t.d(p,{MolecularProfilesModule:()=>I});var o=t(177),c=t(1188),g=t(4124),d=t(3062),h=t(7529),l=t(5103),m=t(7391),f=t(513),r=t(7685),i=t(2242),v=t(1236),z=t(7380),P=t(9972),M=t(4917),e=t(3953);let C=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[o.MD,c.iI,d.ZJ,h.f3,l.Y3,m.kT,f.Zw,r.pc,v.MC,M.i,g.C,P.V,i.i,g.C,z.s]})}return n})();var y=t(1305),O=t(6389),b=t(9765),x=t(8097),E=t(3075);function T(n,R){1&n&&(e.j41(0,"a",13),e.nrm(1,"i",14),e.EFF(2," View Molecular Profiles Model Docs "),e.k0s())}function D(n,R){1&n&&(e.j41(0,"a",15),e.nrm(1,"i",14),e.EFF(2," View Molecular Profiles Curation Docs "),e.k0s())}const F=[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275cmp=e.VBU({type:n,selectors:[["app-molecular-profiles"]],decls:1,vars:0,template:function(a,L){1&a&&e.nrm(0,"router-outlet")},dependencies:[c.n3],encapsulation:2})}return n})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class n{constructor(s){this.viewerService=s,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(a){return new(a||n)(e.rXU(y.q))};static#e=this.\u0275cmp=e.VBU({type:n,selectors:[["molecular-profiles-home"]],decls:20,vars:5,consts:[[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-molecularprofile",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/molecular_profiles.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/molecular_profiles.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],[3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Molecular Profiles"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/molecular_profiles.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/curating/molecular_profiles.html","target","_blank","nzSize","small","nzBlock",""]],template:function(a,L){1&a&&(e.nrm(0,"cvc-section-navigation"),e.j41(1,"nz-page-header",0)(2,"nz-page-header-content")(3,"nz-row",1)(4,"nz-col",2),e.nrm(5,"i",3),e.nI1(6,"entityColor"),e.k0s(),e.j41(7,"nz-col",4)(8,"h2"),e.EFF(9,"Molecular Profiles"),e.k0s(),e.j41(10,"p",5),e.EFF(11," CIViC molecular profiles are complex combinations of one or more CIViC variants across one or more genes. Variants are placed in combinations connected by AND or OR, and mutual exclusivity is supported by NOT. These relationships may be further defined by parenthesis. "),e.k0s()(),e.j41(12,"nz-col",6)(13,"nz-space",7),e.DNE(14,T,3,0,"a",8)(15,D,3,0,"a",9),e.k0s()()(),e.j41(16,"nz-row")(17,"nz-col",10)(18,"div",11),e.nrm(19,"cvc-molecular-profiles-table",12),e.k0s()()()()()),2&a&&(e.R7$(5),e.Y8G("nzTwotoneColor",e.bMT(6,3,"MolecularProfile")),e.R7$(5),e.Y8G("nzEllipsisRows",2),e.R7$(7),e.Y8G("nzSpan",24))},dependencies:[d.WB,d.zR,h.Uq,h.e,l.Dn,m.Di,f.aO,O.c,r.U5,r.Dq,b.n,x.I,E.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}:[_nghost-%COMP%]{position:relative}.addVariant[_ngcontent-%COMP%]{width:500px}"]})}return n})(),data:{breadcrumb:"Home"}},{path:":molecularProfileId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([t.e(3967),t.e(8414),t.e(1110),t.e(6161),t.e(8313),t.e(3236),t.e(262),t.e(5384),t.e(5353),t.e(553),t.e(9373)]).then(t.bind(t,6544)).then(n=>n.MolecularProfilesDetailModule)},{path:"revise",loadChildren:()=>Promise.all([t.e(2076),t.e(9611)]).then(t.bind(t,6462)).then(n=>n.MolecularProfilesReviseModule),data:{breadcrumb:"Revise"}}]}]}];let V=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[c.iI.forChild(F),C,c.iI]})}return n})(),I=(()=>{class n{static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[o.MD,V]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/8606.1a613946cd13d47a.js b/server/public/8606.1a613946cd13d47a.js new file mode 100644 index 000000000..8e7dd4f3f --- /dev/null +++ b/server/public/8606.1a613946cd13d47a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8606],{9238:(K,P,n)=>{n.d(P,{e:()=>T});var h=n(177),t=n(1236),g=n(2839),e=n(1862),v=n(6936),z=n(5703),f=n(7529),C=n(4415),D=n(1209),u=n(4917),M=n(6912),E=n(7086),O=n(3953);let L=(()=>{class c{static#t=this.\u0275fac=function(d){return new(d||c)};static#n=this.\u0275mod=O.$C({type:c});static#e=this.\u0275inj=O.G2t({imports:[h.MD,z.Ti,f.f3,M.l,g.m,e.e,v.G,v.G,E.C,C.O,D.k,u.i]})}return c})();var I=n(5699),y=n(5103),A=n(1188);let T=(()=>{class c{static#t=this.\u0275fac=function(d){return new(d||c)};static#n=this.\u0275mod=O.$C({type:c});static#e=this.\u0275inj=O.G2t({imports:[h.MD,u.i,A.iI,t.MC,y.Y3,L,I.T]})}return c})()},5023:(K,P,n)=>{n.d(P,{J:()=>G});var h=n(177),t=n(5103),g=n(2839),e=n(7391),v=n(4917),z=n(9238),f=n(9269),C=n(1862),D=n(6936),u=n(8920),M=n(5154),E=n(7529),O=n(4415),L=n(513),I=n(1209),y=n(8134),A=n(5699),T=n(1188),c=n(996),N=n(6912),B=n(7086),d=n(3953);let G=(()=>{class a{static#t=this.\u0275fac=function(r){return new(r||a)};static#n=this.\u0275mod=d.$C({type:a});static#e=this.\u0275inj=d.G2t({imports:[h.MD,L.Zw,t.Y3,A.T,M.Qt,e.kT,E.f3,T.iI,O.O,g.m,v.i,z.e,f.P,N.l,C.e,D.G,B.C,u.U,I.k,y.l,c.o]})}return a})()},6936:(K,P,n)=>{n.d(P,{G:()=>M});var h=n(177),t=n(1188),g=n(5699),e=n(1236),v=n(5103),z=n(4666),f=n(4917),C=n(3146),D=n(4994),u=n(3953);let M=(()=>{class E{static#t=this.\u0275fac=function(I){return new(I||E)};static#n=this.\u0275mod=u.$C({type:E});static#e=this.\u0275inj=u.G2t({imports:[h.MD,t.iI,C.W2,g.T,e.MC,v.Y3,z.v,f.i,D.a]})}return E})()},9269:(K,P,n)=>{n.d(P,{P:()=>B});var h=n(177),t=n(5699),g=n(5103),e=n(1188),v=n(4917),z=n(2839),f=n(1862),C=n(6936),D=n(5703),u=n(7529),M=n(8134),E=n(9590),O=n(7685),L=n(2e3),I=n(7169),y=n(6912),A=n(7086),T=n(3953);let c=(()=>{class d{static#t=this.\u0275fac=function(W){return new(W||d)};static#n=this.\u0275mod=T.$C({type:d});static#e=this.\u0275inj=T.G2t({imports:[h.MD,D.Ti,u.f3,g.Y3,O.pc,L.WF,v.i,y.l,z.m,f.e,C.G,A.C,M.l,E.R,I.W]})}return d})();var N=n(1236);let B=(()=>{class d{static#t=this.\u0275fac=function(W){return new(W||d)};static#n=this.\u0275mod=T.$C({type:d});static#e=this.\u0275inj=T.G2t({imports:[h.MD,e.iI,t.T,g.Y3,N.MC,v.i,c]})}return d})()},7481:(K,P,n)=>{n.d(P,{$:()=>G,u:()=>d});var h=n(4707),t=n(7336),g=n(177),e=n(3953),v=n(9417),z=n(1413),f=n(3726),C=n(6977),D=n(6042),u=n(7806),M=n(5930),E=n(5103),O=n(851),L=n(8203);const I=["switchElement"];function y(a,W){1&a&&e.nrm(0,"span",8)}function A(a,W){if(1&a&&(e.qex(0),e.EFF(1),e.bVm()),2&a){const s=e.XpG(2);e.R7$(),e.JRh(s.nzCheckedChildren)}}function T(a,W){if(1&a&&(e.qex(0),e.DNE(1,A,2,1,"ng-container",9),e.bVm()),2&a){const s=e.XpG();e.R7$(),e.Y8G("nzStringTemplateOutlet",s.nzCheckedChildren)}}function c(a,W){if(1&a&&(e.qex(0),e.EFF(1),e.bVm()),2&a){const s=e.XpG(2);e.R7$(),e.JRh(s.nzUnCheckedChildren)}}function N(a,W){if(1&a&&e.DNE(0,c,2,1,"ng-container",9),2&a){const s=e.XpG();e.Y8G("nzStringTemplateOutlet",s.nzUnCheckedChildren)}}let d=(()=>{class a{updateValue(s){this.isChecked!==s&&(this.isChecked=s,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(s,r,p,U,F,$){this.nzConfigService=s,this.host=r,this.ngZone=p,this.cdr=U,this.focusMonitor=F,this.directionality=$,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new z.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,C.Q)(this.destroy$)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,f.R)(this.host.nativeElement,"click").pipe((0,C.Q)(this.destroy$)).subscribe(s=>{s.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,f.R)(this.switchElement.nativeElement,"keydown").pipe((0,C.Q)(this.destroy$)).subscribe(s=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:r}=s;r!==t.UQ&&r!==t.LE&&r!==t.t6&&r!==t.Fm||(s.preventDefault(),this.ngZone.run(()=>{r===t.UQ?this.updateValue(!1):r===t.LE?this.updateValue(!0):(r===t.t6||r===t.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,C.Q)(this.destroy$)).subscribe(s=>{s||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(s){this.isChecked=s,this.cdr.markForCheck()}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||s,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(r){return new(r||a)(e.rXU(D.yx),e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.gRc),e.rXU(O.FN),e.rXU(L.dS,8))};static#n=this.\u0275cmp=e.VBU({type:a,selectors:[["nz-switch"]],viewQuery:function(r,p){if(1&r&&e.GBs(I,7),2&r){let U;e.mGM(U=e.lsd())&&(p.switchElement=U.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzControl:[2,"nzControl","nzControl",e.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[e.Jv_([{provide:v.kq,useExisting:(0,e.Rfq)(()=>a),multi:!0}]),e.GFd,e.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(r,p){if(1&r&&(e.j41(0,"button",2,0)(2,"span",3),e.DNE(3,y,1,0,"span",4),e.k0s(),e.j41(4,"span",5),e.DNE(5,T,2,1,"ng-container",6)(6,N,1,1,"ng-template",null,1,e.C5r),e.k0s(),e.nrm(8,"div",7),e.k0s()),2&r){const U=e.sdS(7);e.AVh("ant-switch-checked",p.isChecked)("ant-switch-loading",p.nzLoading)("ant-switch-disabled",p.nzDisabled)("ant-switch-small","small"===p.nzSize)("ant-switch-rtl","rtl"===p.dir),e.Y8G("disabled",p.nzDisabled)("nzWaveExtraNode",!0),e.BMQ("id",p.nzId),e.R7$(3),e.Y8G("ngIf",p.nzLoading),e.R7$(2),e.Y8G("ngIf",p.isChecked)("ngIfElse",U)}},dependencies:[M.o7,M.p,E.Y3,E.Dn,g.bT,u.C,u.m],encapsulation:2,changeDetection:0})}return(0,h.Cg)([(0,D.H4)()],a.prototype,"nzSize",void 0),a})(),G=(()=>{class a{static#t=this.\u0275fac=function(r){return new(r||a)};static#n=this.\u0275mod=e.$C({type:a});static#e=this.\u0275inj=e.G2t({imports:[d]})}return a})()},7120:(K,P,n)=>{n.d(P,{SO:()=>U,XJ:()=>F,ki:()=>V});var h=n(177),t=n(3953),g=n(7806),e=n(2771),v=n(1413),z=n(6977),f=n(5103),C=n(8203);const D=["template"],u=["*"];function M(i,m){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const o=t.XpG(3);t.R7$(),t.JRh(o.nzLabel)}}function E(i,m){if(1&i&&(t.j41(0,"div",7),t.DNE(1,M,2,1,"ng-container",5),t.k0s()),2&i){const o=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",o.nzLabel)}}function O(i,m){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const o=t.XpG(2);t.R7$(),t.JRh(o.nzDot)}}function L(i,m){if(1&i&&(t.j41(0,"li",1),t.DNE(1,E,2,1,"div",2),t.nrm(2,"div",3),t.j41(3,"div",4),t.DNE(4,O,2,1,"ng-container",5),t.k0s(),t.j41(5,"div",6),t.SdG(6),t.k0s()()),2&i){const o=t.XpG();t.AVh("ant-timeline-item-right","right"===(o.nzPosition||o.position))("ant-timeline-item-left","left"===(o.nzPosition||o.position))("ant-timeline-item-last",o.isLast),t.R7$(),t.Y8G("ngIf",o.nzLabel),t.R7$(2),t.xc7("border-color",o.borderColor),t.AVh("ant-timeline-item-head-red","red"===o.nzColor)("ant-timeline-item-head-blue","blue"===o.nzColor)("ant-timeline-item-head-green","green"===o.nzColor)("ant-timeline-item-head-gray","gray"===o.nzColor)("ant-timeline-item-head-custom",!!o.nzDot),t.R7$(),t.Y8G("nzStringTemplateOutlet",o.nzDot)}}function I(i,m){if(1&i&&t.eu8(0,4),2&i){t.XpG();const o=t.sdS(5);t.Y8G("ngTemplateOutlet",o)}}function y(i,m){}function A(i,m){if(1&i&&(t.qex(0),t.DNE(1,y,0,0,"ng-template",4),t.bVm()),2&i){const o=m.$implicit;t.R7$(),t.Y8G("ngTemplateOutlet",o.template)}}function T(i,m){if(1&i&&t.eu8(0,4),2&i){t.XpG();const o=t.sdS(5);t.Y8G("ngTemplateOutlet",o)}}function c(i,m){1&i&&t.nrm(0,"span",12)}function N(i,m){if(1&i&&(t.qex(0),t.EFF(1),t.DNE(2,c,1,0,"span",11),t.bVm()),2&i){const o=t.XpG(3);t.R7$(),t.SpI(" ",o.nzPendingDot," "),t.R7$(),t.Y8G("ngIf",!o.nzPendingDot)}}function B(i,m){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const o=t.XpG(3);t.R7$(),t.SpI(" ",o.isPendingBoolean?"":o.nzPending," ")}}function d(i,m){if(1&i&&(t.j41(0,"li",6),t.nrm(1,"div",7),t.j41(2,"div",8),t.DNE(3,N,3,2,"ng-container",9),t.k0s(),t.j41(4,"div",10),t.DNE(5,B,2,1,"ng-container",9),t.k0s()()),2&i){const o=t.XpG(2);t.R7$(3),t.Y8G("nzStringTemplateOutlet",o.nzPendingDot),t.R7$(2),t.Y8G("nzStringTemplateOutlet",o.nzPending)}}function G(i,m){if(1&i&&t.DNE(0,d,6,2,"li",5),2&i){const o=t.XpG();t.Y8G("ngIf",o.nzPending)}}const s=["red","blue","green","grey","gray"];let r=(()=>{class i{constructor(){this.check$=new e.m(1)}markForCheck(){this.check$.next()}static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac})}return i})(),U=(()=>{class i{constructor(o,l){this.cdr=o,this.timelineService=l,this.nzColor="blue",this.isLast=!1,this.borderColor=null}ngOnChanges(o){this.timelineService.markForCheck(),o.nzColor&&this.updateCustomColor()}detectChanges(){this.cdr.detectChanges()}updateCustomColor(){this.borderColor=function p(i){return-1!==s.findIndex(m=>m===i)}(this.nzColor)?null:this.nzColor}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(t.gRc),t.rXU(r))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["nz-timeline-item"],["","nz-timeline-item",""]],viewQuery:function(l,_){if(1&l&&t.GBs(D,5),2&l){let R;t.mGM(R=t.lsd())&&(_.template=R.first)}},inputs:{nzPosition:"nzPosition",nzColor:"nzColor",nzDot:"nzDot",nzLabel:"nzLabel"},exportAs:["nzTimelineItem"],standalone:!0,features:[t.OA$,t.aNF],ngContentSelectors:u,decls:2,vars:0,consts:[["template",""],[1,"ant-timeline-item"],["class","ant-timeline-item-label",4,"ngIf"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],[1,"ant-timeline-item-label"]],template:function(l,_){1&l&&(t.NAR(),t.DNE(0,L,7,20,"ng-template",null,0,t.C5r))},dependencies:[h.bT,g.C,g.m],encapsulation:2,changeDetection:0})}return i})(),F=(()=>{class i{constructor(o,l,_){this.cdr=o,this.timelineService=l,this.directionality=_,this.nzMode="left",this.nzReverse=!1,this.isPendingBoolean=!1,this.timelineItems=[],this.dir="ltr",this.hasLabelItem=!1,this.destroy$=new v.B}ngOnChanges(o){const{nzMode:l,nzReverse:_,nzPending:R}=o;($(l)||$(_))&&this.updateChildren(),R&&(this.isPendingBoolean=!0===R.currentValue)}ngOnInit(){this.timelineService.check$.pipe((0,z.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.directionality.change?.pipe((0,z.Q)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.updateChildren(),this.listOfItems.changes.pipe((0,z.Q)(this.destroy$)).subscribe(()=>{this.updateChildren()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateChildren(){if(this.listOfItems&&this.listOfItems.length){const o=this.listOfItems.length;let l=!1;this.listOfItems.forEach((_,R)=>{_.isLast=this.nzReverse?0===R:R===o-1,_.position=function x(i,m){return"custom"===m?void 0:"left"===m?"left":"right"===m?"right":"alternate"===m&&i%2==0?"left":"right"}(R,this.nzMode),!l&&_.nzLabel&&(l=!0),_.detectChanges()}),this.timelineItems=this.nzReverse?this.listOfItems.toArray().reverse():this.listOfItems.toArray(),this.hasLabelItem=l}else this.timelineItems=[],this.hasLabelItem=!1;this.cdr.markForCheck()}static#t=this.\u0275fac=function(l){return new(l||i)(t.rXU(t.gRc),t.rXU(r),t.rXU(C.dS,8))};static#n=this.\u0275cmp=t.VBU({type:i,selectors:[["nz-timeline"]],contentQueries:function(l,_,R){if(1&l&&t.wni(R,U,4),2&l){let S;t.mGM(S=t.lsd())&&(_.listOfItems=S)}},inputs:{nzMode:"nzMode",nzPending:"nzPending",nzPendingDot:"nzPendingDot",nzReverse:[2,"nzReverse","nzReverse",t.L39]},exportAs:["nzTimeline"],standalone:!0,features:[t.Jv_([r]),t.GFd,t.OA$,t.aNF],ngContentSelectors:u,decls:7,vars:15,consts:[["pendingTemplate",""],[1,"ant-timeline"],[3,"ngTemplateOutlet",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet"],["class","ant-timeline-item ant-timeline-item-pending",4,"ngIf"],[1,"ant-timeline-item","ant-timeline-item-pending"],[1,"ant-timeline-item-tail"],[1,"ant-timeline-item-head","ant-timeline-item-head-custom","ant-timeline-item-head-blue"],[4,"nzStringTemplateOutlet"],[1,"ant-timeline-item-content"],["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(l,_){1&l&&(t.NAR(),t.j41(0,"ul",1),t.DNE(1,I,1,1,"ng-container",2)(2,A,2,1,"ng-container",3)(3,T,1,1,"ng-container",2),t.k0s(),t.DNE(4,G,1,1,"ng-template",null,0,t.C5r),t.SdG(6)),2&l&&(t.AVh("ant-timeline-label",_.hasLabelItem)("ant-timeline-right",!_.hasLabelItem&&"right"===_.nzMode)("ant-timeline-alternate","alternate"===_.nzMode||"custom"===_.nzMode)("ant-timeline-pending",!!_.nzPending)("ant-timeline-reverse",_.nzReverse)("ant-timeline-rtl","rtl"===_.dir),t.R7$(),t.Y8G("ngIf",_.nzReverse),t.R7$(),t.Y8G("ngForOf",_.timelineItems),t.R7$(),t.Y8G("ngIf",!_.nzReverse))},dependencies:[h.bT,h.T3,h.Sq,g.C,g.m,f.Y3,f.Dn],encapsulation:2,changeDetection:0})}return i})();function $(i){return!(!i||i.previousValue===i.currentValue&&!i.isFirstChange())}let V=(()=>{class i{static#t=this.\u0275fac=function(l){return new(l||i)};static#n=this.\u0275mod=t.$C({type:i});static#e=this.\u0275inj=t.G2t({imports:[U,F]})}return i})()}}]); \ No newline at end of file diff --git a/server/public/8733.72f4f037f4e2a419.js b/server/public/8733.72f4f037f4e2a419.js deleted file mode 100644 index 4d0410400..000000000 --- a/server/public/8733.72f4f037f4e2a419.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8733],{2269:(K,I,c)=>{c.d(I,{IV:()=>F,Fw:()=>tt});var t=c(3953),g=c(1413),k=c(605);const v=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];var y=c(317);let T=(()=>{class i{transform(n,a="HH:mm:ss"){let r=Number(n||0);return v.reduce((h,[f,p])=>{if(-1!==h.indexOf(f)){const M=Math.floor(r/p);return r-=M*p,h.replace(new RegExp(`${f}+`,"g"),O=>(0,y.CF)(M.toString(),O.length,"0"))}return h},a)}static#t=this.\u0275fac=function(a){return new(a||i)};static#e=this.\u0275pipe=t.EJ8({name:"nzTimeRange",type:i,pure:!0,standalone:!0})}return i})(),N=(()=>{class i{static#t=this.\u0275fac=function(a){return new(a||i)};static#e=this.\u0275mod=t.$C({type:i});static#n=this.\u0275inj=t.G2t({})}return i})();var D=c(177),P=c(6977),E=c(7806),b=c(1912),w=c(8203),L=c(6860);const U=i=>({$implicit:i});function G(i,e){if(1&i&&t.eu8(0,3),2&i){const n=t.XpG();t.Y8G("ngTemplateOutlet",n.nzValueTemplate)("ngTemplateOutletContext",t.eq3(2,U,n.nzValue))}}function A(i,e){if(1&i&&(t.j41(0,"span",6),t.EFF(1),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.JRh(n.displayInt)}}function x(i,e){if(1&i&&(t.j41(0,"span",7),t.EFF(1),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.JRh(n.displayDecimal)}}function B(i,e){if(1&i&&(t.qex(0),t.DNE(1,A,2,1,"span",4)(2,x,2,1,"span",5),t.bVm()),2&i){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.displayInt),t.R7$(),t.Y8G("ngIf",n.displayDecimal)}}function l(i,e){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const n=t.XpG();t.R7$(),t.JRh(n.nzTitle)}}function C(i,e){1&i&&t.nrm(0,"nz-skeleton",2),2&i&&t.Y8G("nzParagraph",!1)}function o(i,e){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const n=t.XpG(3);t.R7$(),t.JRh(n.nzPrefix)}}function d(i,e){if(1&i&&(t.j41(0,"span",4),t.DNE(1,o,2,1,"ng-container",1),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",n.nzPrefix)}}function m(i,e){if(1&i&&(t.qex(0),t.EFF(1),t.bVm()),2&i){const n=t.XpG(3);t.R7$(),t.JRh(n.nzSuffix)}}function z(i,e){if(1&i&&(t.j41(0,"span",6),t.DNE(1,m,2,1,"ng-container",1),t.k0s()),2&i){const n=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",n.nzSuffix)}}function Y(i,e){if(1&i&&(t.j41(0,"div",3),t.DNE(1,d,2,1,"span",4),t.nrm(2,"nz-statistic-number",5),t.DNE(3,z,2,1,"span",6),t.k0s()),2&i){const n=t.XpG();t.Y8G("ngStyle",n.nzValueStyle),t.R7$(),t.vxM(n.nzPrefix?1:-1),t.R7$(),t.Y8G("nzValue",n.nzValue)("nzValueTemplate",n.nzValueTemplate),t.R7$(),t.vxM(n.nzSuffix?3:-1)}}function W(i,e){if(1&i&&(t.EFF(0),t.nI1(1,"nzTimeRange")),2&i){const n=t.XpG();t.JRh(t.i5U(1,1,n.diff,n.nzFormat))}}let J=(()=>{class i{constructor(n){this.locale_id=n,this.displayInt="",this.displayDecimal=""}ngOnChanges(){this.formatNumber()}formatNumber(){const n="number"==typeof this.nzValue?".":(0,D.a)(this.locale_id,D.gz.Decimal),a=String(this.nzValue),[r,h]=a.split(n);this.displayInt=r,this.displayDecimal=h?`${n}${h}`:""}static#t=this.\u0275fac=function(a){return new(a||i)(t.rXU(t.xe9))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["nz-statistic-number"]],inputs:{nzValue:"nzValue",nzValueTemplate:"nzValueTemplate"},exportAs:["nzStatisticNumber"],standalone:!0,features:[t.OA$,t.aNF],decls:3,vars:2,consts:[[1,"ant-statistic-content-value"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-statistic-content-value-int",4,"ngIf"],["class","ant-statistic-content-value-decimal",4,"ngIf"],[1,"ant-statistic-content-value-int"],[1,"ant-statistic-content-value-decimal"]],template:function(a,r){1&a&&(t.j41(0,"span",0),t.DNE(1,G,1,4,"ng-container",1)(2,B,3,2,"ng-container",2),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",r.nzValueTemplate),t.R7$(),t.Y8G("ngIf",!r.nzValueTemplate))},dependencies:[D.bT,D.T3],encapsulation:2,changeDetection:0})}return i})(),F=(()=>{class i{constructor(n,a){this.cdr=n,this.directionality=a,this.nzValueStyle={},this.nzLoading=!1,this.dir="ltr",this.destroy$=new g.B}ngOnInit(){this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(n=>{this.dir=n,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#t=this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(w.dS,8))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["nz-statistic"]],hostAttrs:[1,"ant-statistic"],hostVars:2,hostBindings:function(a,r){2&a&&t.AVh("ant-statistic-rtl","rtl"===r.dir)},inputs:{nzPrefix:"nzPrefix",nzSuffix:"nzSuffix",nzTitle:"nzTitle",nzValue:"nzValue",nzValueStyle:"nzValueStyle",nzValueTemplate:"nzValueTemplate",nzLoading:[2,"nzLoading","nzLoading",t.L39]},exportAs:["nzStatistic"],standalone:!0,features:[t.GFd,t.aNF],decls:4,vars:2,consts:[[1,"ant-statistic-title"],[4,"nzStringTemplateOutlet"],[1,"ant-statistic-skeleton",3,"nzParagraph"],[1,"ant-statistic-content",3,"ngStyle"],[1,"ant-statistic-content-prefix"],[3,"nzValue","nzValueTemplate"],[1,"ant-statistic-content-suffix"]],template:function(a,r){1&a&&(t.j41(0,"div",0),t.DNE(1,l,2,1,"ng-container",1),t.k0s(),t.DNE(2,C,1,1,"nz-skeleton",2)(3,Y,4,5,"div",3)),2&a&&(t.R7$(),t.Y8G("nzStringTemplateOutlet",r.nzTitle),t.R7$(),t.vxM(r.nzLoading?2:3))},dependencies:[b.i3,b.Bi,J,E.C,E.m,D.B3],encapsulation:2,changeDetection:0})}return i})();const Z=1e3/30;let q=(()=>{class i extends F{constructor(n,a,r,h){super(n,h),this.ngZone=a,this.platform=r,this.nzFormat="HH:mm:ss",this.nzCountdownFinish=new t.bkB,this.target=0}ngOnChanges(n){n.nzValue&&(this.target=Number(n.nzValue.currentValue),n.nzValue.isFirstChange()||this.syncTimer())}ngOnInit(){super.ngOnInit(),this.syncTimer()}ngOnDestroy(){this.stopTimer()}syncTimer(){this.target>=Date.now()?this.startTimer():this.stopTimer()}startTimer(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.stopTimer(),this.updater_=(0,k.Y)(Z).subscribe(()=>{this.updateValue(),this.cdr.detectChanges()})})}stopTimer(){this.updater_&&(this.updater_.unsubscribe(),this.updater_=null)}updateValue(){this.diff=Math.max(this.target-Date.now(),0),0===this.diff&&(this.stopTimer(),this.nzCountdownFinish.observers.length&&this.ngZone.run(()=>this.nzCountdownFinish.emit()))}static#t=this.\u0275fac=function(a){return new(a||i)(t.rXU(t.gRc),t.rXU(t.SKi),t.rXU(L.OD),t.rXU(w.dS,8))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["nz-countdown"]],inputs:{nzFormat:"nzFormat"},outputs:{nzCountdownFinish:"nzCountdownFinish"},exportAs:["nzCountdown"],standalone:!0,features:[t.Vt3,t.OA$,t.aNF],decls:3,vars:6,consts:[["countDownTpl",""],[3,"nzValue","nzValueStyle","nzValueTemplate","nzTitle","nzPrefix","nzSuffix"]],template:function(a,r){if(1&a&&(t.nrm(0,"nz-statistic",1),t.DNE(1,W,2,4,"ng-template",null,0,t.C5r)),2&a){const h=t.sdS(2);t.Y8G("nzValue",r.diff)("nzValueStyle",r.nzValueStyle)("nzValueTemplate",r.nzValueTemplate||h)("nzTitle",r.nzTitle)("nzPrefix",r.nzPrefix)("nzSuffix",r.nzSuffix)}},dependencies:[F,N,T],encapsulation:2,changeDetection:0})}return i})(),tt=(()=>{class i{static#t=this.\u0275fac=function(a){return new(a||i)};static#e=this.\u0275mod=t.$C({type:i});static#n=this.\u0275inj=t.G2t({imports:[F,q]})}return i})()},7481:(K,I,c)=>{c.d(I,{$:()=>B,u:()=>x});var t=c(4707),g=c(7336),k=c(177),s=c(3953),j=c(9417),H=c(1413),u=c(3726),v=c(6977),$=c(6042),y=c(7806),T=c(5930),N=c(5103),D=c(851),P=c(8203);const E=["switchElement"];function b(l,C){1&l&&s.nrm(0,"span",8)}function w(l,C){if(1&l&&(s.qex(0),s.EFF(1),s.bVm()),2&l){const o=s.XpG(2);s.R7$(),s.JRh(o.nzCheckedChildren)}}function L(l,C){if(1&l&&(s.qex(0),s.DNE(1,w,2,1,"ng-container",9),s.bVm()),2&l){const o=s.XpG();s.R7$(),s.Y8G("nzStringTemplateOutlet",o.nzCheckedChildren)}}function U(l,C){if(1&l&&(s.qex(0),s.EFF(1),s.bVm()),2&l){const o=s.XpG(2);s.R7$(),s.JRh(o.nzUnCheckedChildren)}}function G(l,C){if(1&l&&s.DNE(0,U,2,1,"ng-container",9),2&l){const o=s.XpG();s.Y8G("nzStringTemplateOutlet",o.nzUnCheckedChildren)}}let x=(()=>{class l{updateValue(o){this.isChecked!==o&&(this.isChecked=o,this.onChange(this.isChecked))}focus(){this.focusMonitor.focusVia(this.switchElement.nativeElement,"keyboard")}blur(){this.switchElement.nativeElement.blur()}constructor(o,d,m,z,Y,W){this.nzConfigService=o,this.host=d,this.ngZone=m,this.cdr=z,this.focusMonitor=Y,this.directionality=W,this._nzModuleName="switch",this.isChecked=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzLoading=!1,this.nzDisabled=!1,this.nzControl=!1,this.nzCheckedChildren=null,this.nzUnCheckedChildren=null,this.nzSize="default",this.nzId=null,this.dir="ltr",this.destroy$=new H.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.directionality.change.pipe((0,v.Q)(this.destroy$)).subscribe(o=>{this.dir=o,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,u.R)(this.host.nativeElement,"click").pipe((0,v.Q)(this.destroy$)).subscribe(o=>{o.preventDefault(),!(this.nzControl||this.nzDisabled||this.nzLoading)&&this.ngZone.run(()=>{this.updateValue(!this.isChecked),this.cdr.markForCheck()})}),(0,u.R)(this.switchElement.nativeElement,"keydown").pipe((0,v.Q)(this.destroy$)).subscribe(o=>{if(this.nzControl||this.nzDisabled||this.nzLoading)return;const{keyCode:d}=o;d!==g.UQ&&d!==g.LE&&d!==g.t6&&d!==g.Fm||(o.preventDefault(),this.ngZone.run(()=>{d===g.UQ?this.updateValue(!1):d===g.LE?this.updateValue(!0):(d===g.t6||d===g.Fm)&&this.updateValue(!this.isChecked),this.cdr.markForCheck()}))})})}ngAfterViewInit(){this.focusMonitor.monitor(this.switchElement.nativeElement,!0).pipe((0,v.Q)(this.destroy$)).subscribe(o=>{o||Promise.resolve().then(()=>this.onTouched())})}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.switchElement.nativeElement),this.destroy$.next(),this.destroy$.complete()}writeValue(o){this.isChecked=o,this.cdr.markForCheck()}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||o,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#t=this.\u0275fac=function(d){return new(d||l)(s.rXU($.yx),s.rXU(s.aKT),s.rXU(s.SKi),s.rXU(s.gRc),s.rXU(D.FN),s.rXU(P.dS,8))};static#e=this.\u0275cmp=s.VBU({type:l,selectors:[["nz-switch"]],viewQuery:function(d,m){if(1&d&&s.GBs(E,7),2&d){let z;s.mGM(z=s.lsd())&&(m.switchElement=z.first)}},inputs:{nzLoading:[2,"nzLoading","nzLoading",s.L39],nzDisabled:[2,"nzDisabled","nzDisabled",s.L39],nzControl:[2,"nzControl","nzControl",s.L39],nzCheckedChildren:"nzCheckedChildren",nzUnCheckedChildren:"nzUnCheckedChildren",nzSize:"nzSize",nzId:"nzId"},exportAs:["nzSwitch"],standalone:!0,features:[s.Jv_([{provide:j.kq,useExisting:(0,s.Rfq)(()=>l),multi:!0}]),s.GFd,s.aNF],decls:9,vars:16,consts:[["switchElement",""],["uncheckTemplate",""],["nz-wave","","type","button",1,"ant-switch",3,"disabled","nzWaveExtraNode"],[1,"ant-switch-handle"],["nz-icon","","nzType","loading","class","ant-switch-loading-icon",4,"ngIf"],[1,"ant-switch-inner"],[4,"ngIf","ngIfElse"],[1,"ant-click-animating-node"],["nz-icon","","nzType","loading",1,"ant-switch-loading-icon"],[4,"nzStringTemplateOutlet"]],template:function(d,m){if(1&d&&(s.j41(0,"button",2,0)(2,"span",3),s.DNE(3,b,1,0,"span",4),s.k0s(),s.j41(4,"span",5),s.DNE(5,L,2,1,"ng-container",6)(6,G,1,1,"ng-template",null,1,s.C5r),s.k0s(),s.nrm(8,"div",7),s.k0s()),2&d){const z=s.sdS(7);s.AVh("ant-switch-checked",m.isChecked)("ant-switch-loading",m.nzLoading)("ant-switch-disabled",m.nzDisabled)("ant-switch-small","small"===m.nzSize)("ant-switch-rtl","rtl"===m.dir),s.Y8G("disabled",m.nzDisabled)("nzWaveExtraNode",!0),s.BMQ("id",m.nzId),s.R7$(3),s.Y8G("ngIf",m.nzLoading),s.R7$(2),s.Y8G("ngIf",m.isChecked)("ngIfElse",z)}},dependencies:[T.o7,T.p,N.Y3,N.Dn,k.bT,y.C,y.m],encapsulation:2,changeDetection:0})}return(0,t.Cg)([(0,$.H4)()],l.prototype,"nzSize",void 0),l})(),B=(()=>{class l{static#t=this.\u0275fac=function(d){return new(d||l)};static#e=this.\u0275mod=s.$C({type:l});static#n=this.\u0275inj=s.G2t({imports:[x]})}return l})()}}]); \ No newline at end of file diff --git a/server/public/9034.558479e1ac1c528e.js b/server/public/9034.9cf5b4682c5b40ad.js similarity index 94% rename from server/public/9034.558479e1ac1c528e.js rename to server/public/9034.9cf5b4682c5b40ad.js index 383dd4878..2ef0df006 100644 --- a/server/public/9034.558479e1ac1c528e.js +++ b/server/public/9034.9cf5b4682c5b40ad.js @@ -1 +1 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9034],{959:(B,P,n)=>{n.d(P,{j:()=>T});var p=n(3953),e=n(3100),t=n(3245),b=n(4247);let T=(()=>{class C{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(h){return new(h||C)};static#n=this.\u0275cmp=p.VBU({type:C,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(h,m){1&h&&(p.j41(0,"cvc-tag-group"),p.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),p.k0s()),2&h&&(p.R7$(),p.Y8G("feature",m.feature)("enablePopover",m.enablePopover)("truncateLongName",m.truncateLongName),p.R7$(),p.Y8G("variant",m.variant)("enablePopover",m.enablePopover)("truncateLongName",m.truncateLongName))},dependencies:[e.V,t._,b.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return C})()},8238:(B,P,n)=>{n.d(P,{S:()=>J});var p=n(505),e=n(3953),t=n(177),b=n(1188),T=n(1236),C=n(5699),S=n(5103),V=n(9199),h=n(6354),m=n(5964),G=n(9145),z=n(5703),_=n(2e3),E=n(9062),F=n(959),v=n(7855),D=n(1774),M=n(3075);function x(r,g){if(1&r&&(e.nrm(0,"i",7),e.nI1(1,"entityColor"),e.EFF(2)),2&r){const l=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,2,"VariantGroup")),e.R7$(2),e.SpI(" ",l.name," ")}}function R(r,g){if(1&r&&e.nrm(0,"cvc-feature-variant-tag",10),2&r){const l=g.$implicit;e.Y8G("enablePopover",!1)("variant",l.node)}}function X(r,g){if(1&r&&(e.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),e.DNE(2,R,1,2,"cvc-feature-variant-tag",9),e.k0s()()),2&r){const l=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",l.variants.edges)}}function H(r,g){if(1&r&&e.nrm(0,"cvc-source-tag",13),2&r){const l=g.$implicit;e.Y8G("enablePopover",!1)("source",l)}}function $(r,g){if(1&r&&(e.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),e.DNE(2,H,1,2,"cvc-source-tag",12),e.k0s()()),2&r){const l=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",l.sources)}}function j(r,g){if(1&r&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,x,3,4,"ng-template",null,0,e.C5r),e.EFF(4),e.j41(5,"nz-descriptions",4),e.DNE(6,X,3,1,"nz-descriptions-item",5)(7,$,3,1,"nz-descriptions-item",6),e.k0s()(),e.bVm()),2&r){const l=g.ngIf,d=e.sdS(3);e.R7$(),e.Y8G("nzTitle",d),e.R7$(3),e.SpI(" ",l.description," "),e.R7$(),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",l.variants.edges.length>0),e.R7$(),e.Y8G("ngIf",l.sources.length>0)}}let A=(()=>{class r{constructor(l){this.gql=l}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,h.T)(({data:l})=>l?.variantGroup),(0,m.p)(V.kP))}static#t=this.\u0275fac=function(d){return new(d||r)(e.rXU(G.gwr))};static#n=this.\u0275cmp=e.VBU({type:r,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(d,y){1&d&&(e.j41(0,"div",1),e.DNE(1,j,8,5,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&d&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,y.variantGroup$)))},dependencies:[t.Sq,t.bT,z.cK,_.xA,_.gr,S.Dn,E.D,F.j,v.M,D.L9,M.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return r})();var U=n(2387);function I(r,g){}function O(r,g){if(1&r&&(e.qex(0),e.j41(1,"a",5),e.DNE(2,I,0,0,"ng-template",6),e.k0s(),e.bVm()),2&r){const l=e.XpG(),d=e.sdS(2);e.R7$(),e.Y8G("routerLink",l.variantgroup.link),e.R7$(),e.Y8G("ngTemplateOutlet",d)}}function N(r,g){}function f(r,g){if(1&r&&e.nrm(0,"cvc-variant-group-popover",9),2&r){const l=e.XpG(3);e.Y8G("variantGroupId",l.variantgroup.id)}}function Y(r,g){if(1&r&&e.DNE(0,f,1,1,"cvc-variant-group-popover",8),2&r){const l=e.XpG(2);e.Y8G("ngIf",l.enablePopover)}}function L(r,g){if(1&r&&(e.j41(0,"nz-tag",7),e.DNE(1,N,0,0,"ng-template",6),e.k0s(),e.DNE(2,Y,1,1,"ng-template",null,3,e.C5r)),2&r){const l=e.sdS(3),d=e.XpG(),y=e.sdS(6);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",d.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",y)}}function W(r,g){}function K(r,g){if(1&r&&e.DNE(0,W,0,0,"ng-template",6),2&r){e.XpG();const l=e.sdS(2);e.Y8G("ngTemplateOutlet",l)}}function w(r,g){if(1&r&&(e.j41(0,"cvc-icon-badges",10),e.nrm(1,"i",11),e.nI1(2,"entityColor"),e.k0s(),e.EFF(3)),2&r){const l=e.XpG();e.Y8G("flagged",l.variantgroup.flagged)("entityColor",l.iconColor),e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,4,"VariantGroup")),e.R7$(2),e.SpI(" ",l.variantgroup.name,"\n")}}let J=(()=>{class r{set variantgroup(l){if(!l)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=l}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,p.P)("VariantGroup")}static#t=this.\u0275fac=function(d){return new(d||r)};static#n=this.\u0275cmp=e.VBU({type:r,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(d,y){if(1&d&&e.DNE(0,O,3,2,"ng-container",4)(1,L,4,4,"ng-template",null,0,e.C5r)(3,K,1,1,"ng-template",null,1,e.C5r)(5,w,4,6,"ng-template",null,2,e.C5r),2&d){const Q=e.sdS(4);e.Y8G("ngIf",y.linked)("ngIfElse",Q)}},dependencies:[t.bT,t.T3,b.Wk,T.L_,C.s,S.Dn,A,U.N,M.R],encapsulation:2,changeDetection:0})}return r})()},8134:(B,P,n)=>{n.d(P,{l:()=>F});var p=n(177),e=n(1188),t=n(1236),b=n(5699),T=n(5103),C=n(7086),S=n(2142),V=n(1209),h=n(4917),m=n(5703),G=n(2e3),z=n(3953);let _=(()=>{class v{static#t=this.\u0275fac=function(x){return new(x||v)};static#n=this.\u0275mod=z.$C({type:v});static#e=this.\u0275inj=z.G2t({imports:[p.MD,m.Ti,G.WF,T.Y3,V.k,C.C,S.x,h.i]})}return v})();var E=n(4994);let F=(()=>{class v{static#t=this.\u0275fac=function(x){return new(x||v)};static#n=this.\u0275mod=z.$C({type:v});static#e=this.\u0275inj=z.G2t({imports:[p.MD,e.iI,t.MC,b.T,T.Y3,_,h.i,E.a]})}return v})()},9034:(B,P,n)=>{n.r(P),n.d(P,{VariantGroupsModule:()=>Dt});var p=n(177),e=n(1188),t=n(3953),b=n(1305),T=n(1774),C=n(513),S=n(6389),V=n(5930),h=n(7529),m=n(3062),G=n(5103),z=n(7391),_=n(7685),E=n(1635),F=n(9995),v=n(9145),D=n(4412),M=n(1413),x=n(9199),R=n(3294),X=n(7048),H=n(5245),$=n(5964),j=n(6354),A=n(152),U=n(3993),I=n(4608),O=n(9894),N=n(5703),f=n(9247),Y=n(5699),L=n(5154),W=n(1852),K=n(1405),w=n(435),J=n(3296),r=n(3431),g=n(2923),l=n(8238);const d=a=>({height:a}),y=()=>[],Q=()=>({x:"680px",y:"800px"}),q=()=>["descend","ascend",null];function nt(a,i){}function et(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-card",7),t.DNE(2,nt,0,0,"ng-template",8),t.k0s(),t.bVm()),2&a){t.XpG();const o=t.sdS(4),s=t.sdS(6),c=t.sdS(8);t.R7$(),t.Y8G("nzTitle",s)("nzExtra",c),t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function at(a,i){}function ot(a,i){if(1&a&&(t.j41(0,"div",9)(1,"nz-card",10),t.DNE(2,at,0,0,"ng-template",8),t.k0s()()),2&a){const o=t.XpG(),s=t.sdS(4),c=t.sdS(6),u=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,d,o.cvcHeight)),t.R7$(),t.Y8G("nzTitle",c)("nzExtra",u),t.R7$(),t.Y8G("ngTemplateOutlet",s)}}function rt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const o=i.$implicit,s=i.last;t.R7$(),t.Lme(" ",o,"",s?"":", "," ")}}function it(a,i){if(1&a&&t.DNE(0,rt,2,2,"ng-container",29),2&a){const o=t.XpG().$implicit;t.Y8G("ngForOf",o.variantNames)}}function lt(a,i){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const o=i.$implicit,s=i.last;t.R7$(),t.Lme(" ",o,"",s?"":", "," ")}}function st(a,i){if(1&a&&(t.j41(0,"tr",26)(1,"td",22),t.nrm(2,"cvc-variant-group-tag",27),t.k0s(),t.j41(3,"td",28),t.DNE(4,it,1,1,"ng-template",null,5,t.C5r),t.eu8(6,8),t.k0s(),t.j41(7,"td"),t.DNE(8,lt,2,2,"span",29),t.k0s(),t.j41(9,"td",30),t.EFF(10),t.k0s(),t.j41(11,"td",30),t.EFF(12),t.k0s()()),2&a){const o=i.$implicit,s=t.sdS(5),c=t.XpG(2);t.R7$(2),t.Y8G("variantgroup",o),t.R7$(),t.Y8G("nzTooltipTitle",c.isScrolling?"":s),t.R7$(3),t.Y8G("ngTemplateOutlet",s),t.R7$(2),t.Y8G("ngForOf",o.featureNames),t.R7$(2),t.SpI(" ",o.variantCount," "),t.R7$(2),t.SpI(" ",o.evidenceItemCount," ")}}function ct(a,i){if(1&a){const o=t.RV6();t.j41(0,"nz-table",11,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(c){t.eBV(o);const u=t.XpG();return t.Njj(u.scrollEvent$.next(c))}),t.j41(6,"thead",12),t.bIt("nzSortOrderChange",function(c){t.eBV(o);const u=t.XpG();return t.Njj(u.sortChange$.next(c))}),t.j41(7,"tr",13)(8,"th",14),t.EFF(9," Name "),t.k0s(),t.j41(10,"th",15),t.EFF(11,"Variants"),t.k0s(),t.j41(12,"th",16),t.EFF(13,"Features"),t.k0s(),t.j41(14,"th",17),t.nrm(15,"i",18),t.EFF(16," Count "),t.k0s(),t.j41(17,"th",19),t.nrm(18,"i",20),t.EFF(19," Count "),t.k0s()(),t.j41(20,"tr",21)(21,"th",22)(22,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(c){t.eBV(o);const u=t.XpG();return t.DH7(u.nameInput,c)||(u.nameInput=c),t.Njj(c)}),t.bIt("inputModelChange",function(){t.eBV(o);const c=t.XpG();return t.Njj(c.filterChange$.next())}),t.k0s()(),t.j41(23,"th")(24,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(c){t.eBV(o);const u=t.XpG();return t.DH7(u.variantNameInput,c)||(u.variantNameInput=c),t.Njj(c)}),t.bIt("inputModelChange",function(){t.eBV(o);const c=t.XpG();return t.Njj(c.filterChange$.next())}),t.k0s()(),t.j41(25,"th")(26,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(c){t.eBV(o);const u=t.XpG();return t.DH7(u.featureNameInput,c)||(u.featureNameInput=c),t.Njj(c)}),t.bIt("inputModelChange",function(){t.eBV(o);const c=t.XpG();return t.Njj(c.filterChange$.next())}),t.k0s()(),t.nrm(27,"th",24)(28,"th",24),t.k0s()(),t.j41(29,"tbody"),t.DNE(30,st,13,6,"ng-template",25),t.k0s()()}if(2&a){const o=t.XpG();t.Y8G("nzData",t.bMT(2,22,o.row$)||t.lJ4(30,y))("nzLoading",!t.bMT(3,24,o.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",o.queryRef)("cvcTableScrollPageInfo",t.bMT(4,26,o.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,28,o.scrollIndex$))("nzVirtualForTrackBy",o.trackByIndex)("nzScroll",t.lJ4(31,Q))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",o.sortColumns.Name)("nzSortFn",!0),t.R7$(6),t.Y8G("nzColumnKey",o.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(32,q)),t.R7$(3),t.Y8G("nzColumnKey",o.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(33,q)),t.R7$(5),t.R50("inputModel",o.nameInput),t.R7$(2),t.R50("inputModel",o.variantNameInput),t.R7$(2),t.R50("inputModel",o.featureNameInput)}}function pt(a,i){}function gt(a,i){if(1&a&&(t.qex(0),t.DNE(1,pt,0,0,"ng-template",8),t.bVm()),2&a){const o=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",o.cvcTitleTemplate)}}function dt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const o=t.XpG(2);t.R7$(),t.SpI(" ",o.cvcTitle," ")}}function ut(a,i){if(1&a&&(t.DNE(0,gt,2,1,"ng-container",31)(1,dt,2,1,"ng-container",31),t.j41(2,"span",32),t.nrm(3,"cvc-table-counts",33),t.k0s()),2&a){const o=t.XpG();t.Y8G("ngIf",o.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",o.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",o.connection$)}}function mt(a,i){1&a&&(t.j41(0,"nz-tag",36),t.nrm(1,"i",37),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function vt(a,i){if(1&a&&(t.DNE(0,mt,4,0,"nz-tag",34),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",35),t.nI1(3,"ngrxPush")),2&a){const o=t.XpG();t.Y8G("ngIf",t.bMT(1,2,o.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,o.noMoreRows$))}}let Z=class k{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,o){this.gql=i,this.cdr=o,this.initialPageSize=30,this.isScrolling=!1,this.sortColumns=v.Nel,this.noMoreRows$=new D.t(!1),this.scrollEvent$=new D.t("stop"),this.sortChange$=new M.B,this.filterChange$=new M.B,this.scrollIndex$=new M.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,I.E)("loading"),(0,R.F)(),(0,X.v)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,I.E)("loading"),(0,R.F)(),(0,H.i)(2)),this.connection$=this.result$.pipe((0,I.E)("data","browseVariantGroups"),(0,$.p)(x.kP)),this.row$=this.connection$.pipe((0,I.E)("edges"),(0,$.p)(x.kP),(0,j.T)(i=>i.map(o=>o.node))),this.pageInfo$=this.connection$.pipe((0,I.E)("pageInfo"),(0,$.p)(x.kP)),this.sortChange$.pipe((0,O.s)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,F.X)(i)})}),this.filterChange$.pipe((0,A.B)(500),(0,O.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,j.T)(i=>"stop"!==i),(0,R.F)(),(0,O.s)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,$.p)(i=>"bottom"===i),(0,U.E)(this.pageInfo$),(0,j.T)(([i,o])=>o),(0,O.s)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameInput,featureNames:this.featureNameInput,variantNames:this.variantNameInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(i,o){return o?.id}static#t=this.\u0275fac=function(o){return new(o||k)(t.rXU(v.WSr),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:k,selectors:[["cvc-variant-groups-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],["variantNames",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","250px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","600px"],["nzWidth","150px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"variantgroup"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],[4,"ngFor","ngForOf"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","k","","nzType","sync","nzSpin",""]],template:function(o,s){if(1&o&&t.DNE(0,et,3,3,"ng-container",6)(1,ot,3,6,"ng-template",null,0,t.C5r)(3,ct,31,34,"ng-template",null,1,t.C5r)(5,ut,4,3,"ng-template",null,2,t.C5r)(7,vt,4,6,"ng-template",null,3,t.C5r),2&o){const c=t.sdS(2);t.Y8G("ngIf",!s.cvcHeight)("ngIfElse",c)}},dependencies:[p.Sq,p.bT,p.T3,p.B3,N.cK,G.Dn,f.CP,f.Cc,f.SO,f._4,f.IL,f.aj,f.kt,f.CC,f.OL,f.jc,Y.s,L.LH,W.M,K.s,w.n,J.M,r.y,g.f,l.S,T.L9],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0})};Z=(0,E.Cg)([(0,O.d)()],Z);var ht=n(9765),ft=n(3075);function Ct(a,i){1&a&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Submit New Variant Group "),t.k0s())}function zt(a,i){if(1&a&&(t.qex(0),t.DNE(1,Ct,3,0,"button",17),t.bVm()),2&a){const o=i.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function Tt(a,i){if(1&a&&t.DNE(0,zt,2,1,"ng-container",16),2&a){const o=t.XpG();t.Y8G("ngrxLet",o.viewer$)}}function Gt(a,i){1&a&&(t.j41(0,"a",20),t.nrm(1,"i",21),t.EFF(2," View Variant Group Model Docs "),t.k0s())}function xt(a,i){1&a&&(t.j41(0,"a",22),t.nrm(1,"i",21),t.EFF(2," View Variant Group Curation Docs "),t.k0s())}const Pt=[{path:"",component:(()=>{class a{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["app-variant-groups"]],decls:1,vars:0,template:function(s,c){1&s&&t.nrm(0,"router-outlet")},dependencies:[e.n3],encapsulation:2})}return a})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class a{constructor(o){this.viewerService=o,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(s){return new(s||a)(t.rXU(b.q))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["variant-groups-home"]],decls:22,vars:6,consts:[["vargroupActions",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variant Groups"],[4,"ngrxLet"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock",""]],template:function(s,c){if(1&s&&(t.nrm(0,"cvc-section-navigation",1),t.DNE(1,Tt,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t.nrm(7,"i",5),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",6)(10,"h2"),t.EFF(11,"Variant Groups"),t.k0s(),t.j41(12,"p",7),t.EFF(13," Variant Groups provide user-defined grouping of Variants within and between genes based on unifying characteristics. "),t.k0s()(),t.j41(14,"nz-col",8)(15,"nz-space",9),t.DNE(16,Gt,3,0,"a",10)(17,xt,3,0,"a",11),t.k0s()()(),t.j41(18,"div",12)(19,"div",13)(20,"div",14),t.nrm(21,"cvc-variant-groups-table",15),t.k0s()()()()()),2&s){const u=t.sdS(2);t.Y8G("actionsTpl",u),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"VariantGroup")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[p.bT,e.Wk,T.Nj,C.aO,S.c,V.p,h.Uq,h.e,m.WB,m.zR,G.Dn,z.Di,_.U5,_.Dq,Z,ht.n,ft.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return a})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([n.e(2076),n.e(3232)]).then(n.bind(n,3232)).then(a=>a.VariantGroupsAddModule),data:{breadcrumb:"Add"}},{path:":variantGroupId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([n.e(3967),n.e(1110),n.e(6508),n.e(6161),n.e(4514),n.e(326),n.e(262),n.e(5384),n.e(1250),n.e(1234),n.e(5813)]).then(n.bind(n,5791)).then(a=>a.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([n.e(2076),n.e(5399)]).then(n.bind(n,5399)).then(a=>a.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let _t=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[e.iI.forChild(Pt),e.iI]})}return a})();var Mt=n(9417),bt=n(7874),Vt=n(9214),It=n(4998),Ot=n(7051),tt=n(4917),yt=n(4256),St=n(4450),$t=n(8252),Et=n(8134);let Ft=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[p.MD,Mt.YN,N.Ti,G.Y3,G.Y3,f.$G,Y.T,L.Qt,z.kT,yt.t,St.B,bt.E,Vt.y,tt.i,It.B,$t.A,Et.l,Ot.U]})}return a})();var Rt=n(4124);let jt=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[p.MD,e.iI,C.Zw,h.f3,m.ZJ,G.Y3,z.kT,_.pc,tt.i,Ft,Rt.C]})}return a})(),Dt=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[p.MD,_t,jt]})}return a})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9034],{959:(B,P,n)=>{n.d(P,{j:()=>T});var p=n(3953),e=n(3100),t=n(3245),b=n(4247);let T=(()=>{class C{constructor(){this.enablePopover=!0,this.truncateLongName=!1}ngOnInit(){if(void 0===this.variant)throw new Error("cvc-feature-variant-tag requires LinkableVariant input, none supplied.");if(this.variant.feature&&(this.feature=this.variant.feature),void 0===this.feature)throw new Error("cvc-feature-variant-tag requires a Feature, either as an input or on the Variant")}static#t=this.\u0275fac=function(h){return new(h||C)};static#n=this.\u0275cmp=p.VBU({type:C,selectors:[["cvc-feature-variant-tag"]],inputs:{variant:"variant",feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},decls:3,vars:6,consts:[[3,"feature","enablePopover","truncateLongName"],[3,"variant","enablePopover","truncateLongName"]],template:function(h,m){1&h&&(p.j41(0,"cvc-tag-group"),p.nrm(1,"cvc-feature-tag",0)(2,"cvc-variant-tag",1),p.k0s()),2&h&&(p.R7$(),p.Y8G("feature",m.feature)("enablePopover",m.enablePopover)("truncateLongName",m.truncateLongName),p.R7$(),p.Y8G("variant",m.variant)("enablePopover",m.enablePopover)("truncateLongName",m.truncateLongName))},dependencies:[e.V,t._,b.L],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return C})()},8238:(B,P,n)=>{n.d(P,{S:()=>J});var p=n(505),e=n(3953),t=n(177),b=n(1188),T=n(1236),C=n(5699),S=n(5103),V=n(9199),h=n(6354),m=n(5964),G=n(9145),z=n(5703),_=n(2e3),E=n(9062),F=n(959),v=n(7855),D=n(1774),M=n(3075);function x(r,g){if(1&r&&(e.nrm(0,"i",7),e.nI1(1,"entityColor"),e.EFF(2)),2&r){const l=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,2,"VariantGroup")),e.R7$(2),e.SpI(" ",l.name," ")}}function R(r,g){if(1&r&&e.nrm(0,"cvc-feature-variant-tag",10),2&r){const l=g.$implicit;e.Y8G("enablePopover",!1)("variant",l.node)}}function X(r,g){if(1&r&&(e.j41(0,"nz-descriptions-item",8)(1,"cvc-tag-list"),e.DNE(2,R,1,2,"cvc-feature-variant-tag",9),e.k0s()()),2&r){const l=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",l.variants.edges)}}function H(r,g){if(1&r&&e.nrm(0,"cvc-source-tag",13),2&r){const l=g.$implicit;e.Y8G("enablePopover",!1)("source",l)}}function $(r,g){if(1&r&&(e.j41(0,"nz-descriptions-item",11)(1,"cvc-tag-list"),e.DNE(2,H,1,2,"cvc-source-tag",12),e.k0s()()),2&r){const l=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",l.sources)}}function j(r,g){if(1&r&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,x,3,4,"ng-template",null,0,e.C5r),e.EFF(4),e.j41(5,"nz-descriptions",4),e.DNE(6,X,3,1,"nz-descriptions-item",5)(7,$,3,1,"nz-descriptions-item",6),e.k0s()(),e.bVm()),2&r){const l=g.ngIf,d=e.sdS(3);e.R7$(),e.Y8G("nzTitle",d),e.R7$(3),e.SpI(" ",l.description," "),e.R7$(),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",l.variants.edges.length>0),e.R7$(),e.Y8G("ngIf",l.sources.length>0)}}let A=(()=>{class r{constructor(l){this.gql=l}ngOnInit(){if(void 0===this.variantGroupId)throw new Error("Must pass a variant group ID into the variant group popover component.");this.variantGroup$=this.gql.watch({variantGroupId:this.variantGroupId}).valueChanges.pipe((0,h.T)(({data:l})=>l?.variantGroup),(0,m.p)(V.kP))}static#t=this.\u0275fac=function(d){return new(d||r)(e.rXU(G.gwr))};static#n=this.\u0275cmp=e.VBU({type:r,selectors:[["cvc-variant-group-popover"]],inputs:{variantGroupId:"variantGroupId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Variants","nzSpan","2",4,"ngIf"],["nzTitle","Sources","nzSpan","2",4,"ngIf"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzTitle","Variants","nzSpan","2"],[3,"enablePopover","variant",4,"ngFor","ngForOf"],[3,"enablePopover","variant"],["nzTitle","Sources","nzSpan","2"],[3,"enablePopover","source",4,"ngFor","ngForOf"],[3,"enablePopover","source"]],template:function(d,y){1&d&&(e.j41(0,"div",1),e.DNE(1,j,8,5,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&d&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,y.variantGroup$)))},dependencies:[t.Sq,t.bT,z.cK,_.xA,_.gr,S.Dn,E.D,F.j,v.M,D.L9,M.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return r})();var U=n(2387);function I(r,g){}function O(r,g){if(1&r&&(e.qex(0),e.j41(1,"a",5),e.DNE(2,I,0,0,"ng-template",6),e.k0s(),e.bVm()),2&r){const l=e.XpG(),d=e.sdS(2);e.R7$(),e.Y8G("routerLink",l.variantgroup.link),e.R7$(),e.Y8G("ngTemplateOutlet",d)}}function N(r,g){}function f(r,g){if(1&r&&e.nrm(0,"cvc-variant-group-popover",9),2&r){const l=e.XpG(3);e.Y8G("variantGroupId",l.variantgroup.id)}}function Y(r,g){if(1&r&&e.DNE(0,f,1,1,"cvc-variant-group-popover",8),2&r){const l=e.XpG(2);e.Y8G("ngIf",l.enablePopover)}}function L(r,g){if(1&r&&(e.j41(0,"nz-tag",7),e.DNE(1,N,0,0,"ng-template",6),e.k0s(),e.DNE(2,Y,1,1,"ng-template",null,3,e.C5r)),2&r){const l=e.sdS(3),d=e.XpG(),y=e.sdS(6);e.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",l)("nzPopoverTrigger",d.enablePopover?"hover":null),e.R7$(),e.Y8G("ngTemplateOutlet",y)}}function W(r,g){}function K(r,g){if(1&r&&e.DNE(0,W,0,0,"ng-template",6),2&r){e.XpG();const l=e.sdS(2);e.Y8G("ngTemplateOutlet",l)}}function w(r,g){if(1&r&&(e.j41(0,"cvc-icon-badges",10),e.nrm(1,"i",11),e.nI1(2,"entityColor"),e.k0s(),e.EFF(3)),2&r){const l=e.XpG();e.Y8G("flagged",l.variantgroup.flagged)("entityColor",l.iconColor),e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,4,"VariantGroup")),e.R7$(2),e.SpI(" ",l.variantgroup.name,"\n")}}let J=(()=>{class r{set variantgroup(l){if(!l)throw new Error("cvc-variantgroup-tag input requires LinkableVariantgroup.");this._variantgroup=l}get variantgroup(){return this._variantgroup}constructor(){this.linked=!0,this.enablePopover=!0,this.iconColor=(0,p.P)("VariantGroup")}static#t=this.\u0275fac=function(d){return new(d||r)};static#n=this.\u0275cmp=e.VBU({type:r,selectors:[["cvc-variant-group-tag"]],inputs:{variantgroup:"variantgroup",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"variantGroupId",4,"ngIf"],[3,"variantGroupId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variantgroup","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(d,y){if(1&d&&e.DNE(0,O,3,2,"ng-container",4)(1,L,4,4,"ng-template",null,0,e.C5r)(3,K,1,1,"ng-template",null,1,e.C5r)(5,w,4,6,"ng-template",null,2,e.C5r),2&d){const Q=e.sdS(4);e.Y8G("ngIf",y.linked)("ngIfElse",Q)}},dependencies:[t.bT,t.T3,b.Wk,T.L_,C.s,S.Dn,A,U.N,M.R],encapsulation:2,changeDetection:0})}return r})()},8134:(B,P,n)=>{n.d(P,{l:()=>F});var p=n(177),e=n(1188),t=n(1236),b=n(5699),T=n(5103),C=n(7086),S=n(2142),V=n(1209),h=n(4917),m=n(5703),G=n(2e3),z=n(3953);let _=(()=>{class v{static#t=this.\u0275fac=function(x){return new(x||v)};static#n=this.\u0275mod=z.$C({type:v});static#e=this.\u0275inj=z.G2t({imports:[p.MD,m.Ti,G.WF,T.Y3,V.k,C.C,S.x,h.i]})}return v})();var E=n(4994);let F=(()=>{class v{static#t=this.\u0275fac=function(x){return new(x||v)};static#n=this.\u0275mod=z.$C({type:v});static#e=this.\u0275inj=z.G2t({imports:[p.MD,e.iI,t.MC,b.T,T.Y3,_,h.i,E.a]})}return v})()},9034:(B,P,n)=>{n.r(P),n.d(P,{VariantGroupsModule:()=>Dt});var p=n(177),e=n(1188),t=n(3953),b=n(1305),T=n(1774),C=n(513),S=n(6389),V=n(5930),h=n(7529),m=n(3062),G=n(5103),z=n(7391),_=n(7685),E=n(1635),F=n(9995),v=n(9145),D=n(4412),M=n(1413),x=n(9199),R=n(3294),X=n(7048),H=n(5245),$=n(5964),j=n(6354),A=n(152),U=n(3993),I=n(4608),O=n(9894),N=n(5703),f=n(9247),Y=n(5699),L=n(5154),W=n(1852),K=n(1405),w=n(435),J=n(3296),r=n(3431),g=n(2923),l=n(8238);const d=a=>({height:a}),y=()=>[],Q=()=>({x:"680px",y:"800px"}),q=()=>["descend","ascend",null];function nt(a,i){}function et(a,i){if(1&a&&(t.qex(0),t.j41(1,"nz-card",7),t.DNE(2,nt,0,0,"ng-template",8),t.k0s(),t.bVm()),2&a){t.XpG();const o=t.sdS(4),s=t.sdS(6),c=t.sdS(8);t.R7$(),t.Y8G("nzTitle",s)("nzExtra",c),t.R7$(),t.Y8G("ngTemplateOutlet",o)}}function at(a,i){}function ot(a,i){if(1&a&&(t.j41(0,"div",9)(1,"nz-card",10),t.DNE(2,at,0,0,"ng-template",8),t.k0s()()),2&a){const o=t.XpG(),s=t.sdS(4),c=t.sdS(6),u=t.sdS(8);t.Y8G("ngStyle",t.eq3(4,d,o.cvcHeight)),t.R7$(),t.Y8G("nzTitle",c)("nzExtra",u),t.R7$(),t.Y8G("ngTemplateOutlet",s)}}function rt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const o=i.$implicit,s=i.last;t.R7$(),t.Lme(" ",o,"",s?"":", "," ")}}function it(a,i){if(1&a&&t.DNE(0,rt,2,2,"ng-container",29),2&a){const o=t.XpG().$implicit;t.Y8G("ngForOf",o.variantNames)}}function lt(a,i){if(1&a&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&a){const o=i.$implicit,s=i.last;t.R7$(),t.Lme(" ",o,"",s?"":", "," ")}}function st(a,i){if(1&a&&(t.j41(0,"tr",26)(1,"td",22),t.nrm(2,"cvc-variant-group-tag",27),t.k0s(),t.j41(3,"td",28),t.DNE(4,it,1,1,"ng-template",null,5,t.C5r),t.eu8(6,8),t.k0s(),t.j41(7,"td"),t.DNE(8,lt,2,2,"span",29),t.k0s(),t.j41(9,"td",30),t.EFF(10),t.k0s(),t.j41(11,"td",30),t.EFF(12),t.k0s()()),2&a){const o=i.$implicit,s=t.sdS(5),c=t.XpG(2);t.R7$(2),t.Y8G("variantgroup",o),t.R7$(),t.Y8G("nzTooltipTitle",c.isScrolling?"":s),t.R7$(3),t.Y8G("ngTemplateOutlet",s),t.R7$(2),t.Y8G("ngForOf",o.featureNames),t.R7$(2),t.SpI(" ",o.variantCount," "),t.R7$(2),t.SpI(" ",o.evidenceItemCount," ")}}function ct(a,i){if(1&a){const o=t.RV6();t.j41(0,"nz-table",11,4),t.nI1(2,"ngrxPush"),t.nI1(3,"ngrxPush"),t.nI1(4,"ngrxPush"),t.nI1(5,"ngrxPush"),t.bIt("cvcTableScrollOnScroll",function(c){t.eBV(o);const u=t.XpG();return t.Njj(u.scrollEvent$.next(c))}),t.j41(6,"thead",12),t.bIt("nzSortOrderChange",function(c){t.eBV(o);const u=t.XpG();return t.Njj(u.sortChange$.next(c))}),t.j41(7,"tr",13)(8,"th",14),t.EFF(9," Name "),t.k0s(),t.j41(10,"th",15),t.EFF(11,"Variants"),t.k0s(),t.j41(12,"th",16),t.EFF(13,"Features"),t.k0s(),t.j41(14,"th",17),t.nrm(15,"i",18),t.EFF(16," Count "),t.k0s(),t.j41(17,"th",19),t.nrm(18,"i",20),t.EFF(19," Count "),t.k0s()(),t.j41(20,"tr",21)(21,"th",22)(22,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(c){t.eBV(o);const u=t.XpG();return t.DH7(u.nameInput,c)||(u.nameInput=c),t.Njj(c)}),t.bIt("inputModelChange",function(){t.eBV(o);const c=t.XpG();return t.Njj(c.filterChange$.next())}),t.k0s()(),t.j41(23,"th")(24,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(c){t.eBV(o);const u=t.XpG();return t.DH7(u.variantNameInput,c)||(u.variantNameInput=c),t.Njj(c)}),t.bIt("inputModelChange",function(){t.eBV(o);const c=t.XpG();return t.Njj(c.filterChange$.next())}),t.k0s()(),t.j41(25,"th")(26,"cvc-clearable-input-filter",23),t.mxI("inputModelChange",function(c){t.eBV(o);const u=t.XpG();return t.DH7(u.featureNameInput,c)||(u.featureNameInput=c),t.Njj(c)}),t.bIt("inputModelChange",function(){t.eBV(o);const c=t.XpG();return t.Njj(c.filterChange$.next())}),t.k0s()(),t.nrm(27,"th",24)(28,"th",24),t.k0s()(),t.j41(29,"tbody"),t.DNE(30,st,13,6,"ng-template",25),t.k0s()()}if(2&a){const o=t.XpG();t.Y8G("nzData",t.bMT(2,22,o.row$)||t.lJ4(30,y))("nzLoading",!t.bMT(3,24,o.row$))("cvcAutoHeightTable",25)("nzVirtualItemSize",29)("cvcTableScrollQueryRef",o.queryRef)("cvcTableScrollPageInfo",t.bMT(4,26,o.pageInfo$))("cvcTableScrollToIndex",t.bMT(5,28,o.scrollIndex$))("nzVirtualForTrackBy",o.trackByIndex)("nzScroll",t.lJ4(31,Q))("nzFrontPagination",!1)("nzShowPagination",!1),t.R7$(8),t.Y8G("nzColumnKey",o.sortColumns.Name)("nzSortFn",!0),t.R7$(6),t.Y8G("nzColumnKey",o.sortColumns.VariantCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(32,q)),t.R7$(3),t.Y8G("nzColumnKey",o.sortColumns.EvidenceItemCount)("nzSortFn",!0)("nzSortDirections",t.lJ4(33,q)),t.R7$(5),t.R50("inputModel",o.nameInput),t.R7$(2),t.R50("inputModel",o.variantNameInput),t.R7$(2),t.R50("inputModel",o.featureNameInput)}}function pt(a,i){}function gt(a,i){if(1&a&&(t.qex(0),t.DNE(1,pt,0,0,"ng-template",8),t.bVm()),2&a){const o=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",o.cvcTitleTemplate)}}function dt(a,i){if(1&a&&(t.qex(0),t.EFF(1),t.bVm()),2&a){const o=t.XpG(2);t.R7$(),t.SpI(" ",o.cvcTitle," ")}}function ut(a,i){if(1&a&&(t.DNE(0,gt,2,1,"ng-container",31)(1,dt,2,1,"ng-container",31),t.j41(2,"span",32),t.nrm(3,"cvc-table-counts",33),t.k0s()),2&a){const o=t.XpG();t.Y8G("ngIf",o.cvcTitleTemplate),t.R7$(),t.Y8G("ngIf",o.cvcTitle),t.R7$(2),t.Y8G("cvcTableCountsConnection",o.connection$)}}function mt(a,i){1&a&&(t.j41(0,"nz-tag",36),t.nrm(1,"i",37),t.j41(2,"span"),t.EFF(3,"Loading\u2026"),t.k0s()())}function vt(a,i){if(1&a&&(t.DNE(0,mt,4,0,"nz-tag",34),t.nI1(1,"ngrxPush"),t.nrm(2,"cvc-no-more-rows",35),t.nI1(3,"ngrxPush")),2&a){const o=t.XpG();t.Y8G("ngIf",t.bMT(1,2,o.moreLoading$)),t.R7$(2),t.Y8G("cvcShowTag",t.bMT(3,4,o.noMoreRows$))}}let Z=class k{set initialUserFilters(i){i&&Object.assign(this,i)}constructor(i,o){this.gql=i,this.cdr=o,this.initialPageSize=30,this.isScrolling=!1,this.sortColumns=v.Nel,this.noMoreRows$=new D.t(!1),this.scrollEvent$=new D.t("stop"),this.sortChange$=new M.B,this.filterChange$=new M.B,this.scrollIndex$=new M.B}ngOnInit(){this.queryRef=this.gql.watch({first:this.initialPageSize}),this.result$=this.queryRef.valueChanges,this.initialLoading$=this.result$.pipe((0,I.E)("loading"),(0,R.F)(),(0,X.v)(i=>!1!==i,!0)),this.moreLoading$=this.result$.pipe((0,I.E)("loading"),(0,R.F)(),(0,H.i)(2)),this.connection$=this.result$.pipe((0,I.E)("data","browseVariantGroups"),(0,$.p)(x.kP)),this.row$=this.connection$.pipe((0,I.E)("edges"),(0,$.p)(x.kP),(0,j.T)(i=>i.map(o=>o.node))),this.pageInfo$=this.connection$.pipe((0,I.E)("pageInfo"),(0,$.p)(x.kP)),this.sortChange$.pipe((0,O.s)(this)).subscribe(i=>{this.queryRef.refetch({sortBy:(0,F.X)(i)})}),this.filterChange$.pipe((0,A.B)(500),(0,O.s)(this)).subscribe(()=>{this.refresh()}),this.scrollEvent$.pipe((0,j.T)(i=>"stop"!==i),(0,R.F)(),(0,O.s)(this)).subscribe(i=>{this.isScrolling=i,this.cdr.detectChanges()}),this.scrollEvent$.pipe((0,$.p)(i=>"bottom"===i),(0,U.E)(this.pageInfo$),(0,j.T)(([i,o])=>o),(0,O.s)(this)).subscribe(i=>{i.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}refresh(){this.queryRef.refetch({name:this.nameInput,featureNames:this.featureNameInput,variantNames:this.variantNameInput}).then(()=>this.scrollIndex$.next(0)),this.cdr.detectChanges()}trackByIndex(i,o){return o?.id}static#t=this.\u0275fac=function(o){return new(o||k)(t.rXU(v.WSr),t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:k,selectors:[["cvc-variant-groups-table"]],inputs:{cvcHeight:"cvcHeight",cvcTitleTemplate:"cvcTitleTemplate",cvcTitle:"cvcTitle",initialPageSize:"initialPageSize",initialUserFilters:"initialUserFilters"},decls:9,vars:2,consts:[["setHeightCard",""],["table",""],["titleTemplate",""],["extraTemplate",""],["virtualTable",""],["variantNames",""],[4,"ngIf","ngIfElse"],["nzSize","small","cvcAutoHeightCard","","cvcAutoHeightTarget","viewport",3,"nzTitle","nzExtra"],[3,"ngTemplateOutlet"],[1,"card-container",3,"ngStyle"],["cvcAutoHeightCard","","nzSize","small",3,"nzTitle","nzExtra"],["nzSize","small","cvcTableScroll","",3,"cvcTableScrollOnScroll","nzData","nzLoading","cvcAutoHeightTable","nzVirtualItemSize","cvcTableScrollQueryRef","cvcTableScrollPageInfo","cvcTableScrollToIndex","nzVirtualForTrackBy","nzScroll","nzFrontPagination","nzShowPagination"],[3,"nzSortOrderChange"],[1,"col-header-row"],["nzWidth","250px","nzLeft","",3,"nzColumnKey","nzSortFn"],["nzWidth","600px"],["nzWidth","150px"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Variant Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-variant"],["nzWidth","75px","nzRight","","nzAlign","right","nz-tooltip","","nzTooltipTitle","Evidence Count",3,"nzColumnKey","nzSortFn","nzSortDirections"],["nz-icon","","nzType","civic-evidence"],[1,"filter-row"],["nzLeft",""],[3,"inputModelChange","inputModel"],["nzRight",""],["nz-virtual-scroll",""],[1,"data-row"],[3,"variantgroup"],["nz-tooltip","",1,"overflow-ellipsis",3,"nzTooltipTitle"],[4,"ngFor","ngForOf"],["nzRight","","nzAlign","right"],[4,"ngIf"],[1,"table-info"],[3,"cvcTableCountsConnection"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],["nzColor","processing"],["nz-icon","","k","","nzType","sync","nzSpin",""]],template:function(o,s){if(1&o&&t.DNE(0,et,3,3,"ng-container",6)(1,ot,3,6,"ng-template",null,0,t.C5r)(3,ct,31,34,"ng-template",null,1,t.C5r)(5,ut,4,3,"ng-template",null,2,t.C5r)(7,vt,4,6,"ng-template",null,3,t.C5r),2&o){const c=t.sdS(2);t.Y8G("ngIf",!s.cvcHeight)("ngIfElse",c)}},dependencies:[p.Sq,p.bT,p.T3,p.B3,N.cK,G.Dn,f.CP,f.Cc,f.SO,f._4,f.IL,f.aj,f.kt,f.CC,f.OL,f.jc,Y.s,L.LH,W.M,K.s,w.n,J.M,r.y,g.f,l.S,T.L9],styles:["nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]{display:block}"],changeDetection:0})};Z=(0,E.Cg)([(0,O.d)()],Z);var ht=n(9765),ft=n(3075);function Ct(a,i){1&a&&(t.j41(0,"button",18),t.nrm(1,"i",19),t.EFF(2," Submit New Variant Group "),t.k0s())}function zt(a,i){if(1&a&&(t.qex(0),t.DNE(1,Ct,3,0,"button",17),t.bVm()),2&a){const o=i.ngrxLet;t.R7$(),t.Y8G("ngIf",o.signedIn)}}function Tt(a,i){if(1&a&&t.DNE(0,zt,2,1,"ng-container",16),2&a){const o=t.XpG();t.Y8G("ngrxLet",o.viewer$)}}function Gt(a,i){1&a&&(t.j41(0,"a",20),t.nrm(1,"i",21),t.EFF(2," View Variant Group Model Docs "),t.k0s())}function xt(a,i){1&a&&(t.j41(0,"a",22),t.nrm(1,"i",21),t.EFF(2," View Variant Group Curation Docs "),t.k0s())}const Pt=[{path:"",component:(()=>{class a{constructor(){}ngOnInit(){}static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["app-variant-groups"]],decls:1,vars:0,template:function(s,c){1&s&&t.nrm(0,"router-outlet")},dependencies:[e.n3],encapsulation:2})}return a})(),children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class a{constructor(o){this.viewerService=o,this.viewer$=this.viewerService.viewer$}ngOnInit(){}static#t=this.\u0275fac=function(s){return new(s||a)(t.rXU(b.q))};static#n=this.\u0275cmp=t.VBU({type:a,selectors:[["variant-groups-home"]],decls:22,vars:6,consts:[["vargroupActions",""],[3,"actionsTpl"],[1,"site-page-header"],[1,"header-content"],["nzFlex","64px",1,"header-icon"],["nz-icon","","nzTheme","twotone","nzType","civic-variantgroup",3,"nzTwotoneColor"],["nzFlex","0 1 600px",1,"header-description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["nzFlex","auto",1,"header-links"],["nzDirection","vertical",1,"docs-buttons"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock","",4,"nzSpaceItem"],["nz-row",""],["nz-col","",3,"nzSpan"],[1,"content"],["cvcTitle","Browse All Variant Groups"],[4,"ngrxLet"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small",4,"ngIf"],["routerLink","/variant-groups/add/submit","nz-button","","nzSize","small"],["nz-icon","","nzType","plus-circle"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html","target","_blank","nzSize","small","nzBlock",""],["nz-icon","","nzType","link","nzTheme","outline"],["nz-button","","href","https://civic.readthedocs.io/en/latest/model/variant_groups.html#curating-variant-groups","target","_blank","nzSize","small","nzBlock",""]],template:function(s,c){if(1&s&&(t.nrm(0,"cvc-section-navigation",1),t.DNE(1,Tt,1,1,"ng-template",null,0,t.C5r),t.j41(3,"nz-page-header",2)(4,"nz-page-header-content")(5,"nz-row",3)(6,"nz-col",4),t.nrm(7,"i",5),t.nI1(8,"entityColor"),t.k0s(),t.j41(9,"nz-col",6)(10,"h2"),t.EFF(11,"Variant Groups"),t.k0s(),t.j41(12,"p",7),t.EFF(13," Variant Groups provide user-defined grouping of Variants within and between genes based on unifying characteristics. "),t.k0s()(),t.j41(14,"nz-col",8)(15,"nz-space",9),t.DNE(16,Gt,3,0,"a",10)(17,xt,3,0,"a",11),t.k0s()()(),t.j41(18,"div",12)(19,"div",13)(20,"div",14),t.nrm(21,"cvc-variant-groups-table",15),t.k0s()()()()()),2&s){const u=t.sdS(2);t.Y8G("actionsTpl",u),t.R7$(7),t.Y8G("nzTwotoneColor",t.bMT(8,4,"VariantGroup")),t.R7$(5),t.Y8G("nzEllipsisRows",2),t.R7$(7),t.Y8G("nzSpan",24)}},dependencies:[p.bT,e.Wk,T.Nj,C.aO,S.c,V.p,h.Uq,h.e,m.WB,m.zR,G.Dn,z.Di,_.U5,_.Dq,Z,ht.n,ft.R],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return a})(),data:{breadcrumb:"Home"}},{path:"add",loadChildren:()=>Promise.all([n.e(2076),n.e(3232)]).then(n.bind(n,3232)).then(a=>a.VariantGroupsAddModule),data:{breadcrumb:"Add"}},{path:":variantGroupId",data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",loadChildren:()=>Promise.all([n.e(3967),n.e(1110),n.e(6161),n.e(4514),n.e(262),n.e(5384),n.e(8606),n.e(6903),n.e(1250),n.e(2385),n.e(1234),n.e(3205)]).then(n.bind(n,5791)).then(a=>a.VariantGroupsDetailModule)},{path:"revise",loadChildren:()=>Promise.all([n.e(2076),n.e(5399)]).then(n.bind(n,5399)).then(a=>a.VariantGroupsReviseModule),data:{breadcrumb:"Revise"}}]}]}];let _t=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[e.iI.forChild(Pt),e.iI]})}return a})();var Mt=n(9417),bt=n(7874),Vt=n(9214),It=n(4998),Ot=n(7051),tt=n(4917),yt=n(4256),St=n(4450),$t=n(8252),Et=n(8134);let Ft=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[p.MD,Mt.YN,N.Ti,G.Y3,G.Y3,f.$G,Y.T,L.Qt,z.kT,yt.t,St.B,bt.E,Vt.y,tt.i,It.B,$t.A,Et.l,Ot.U]})}return a})();var Rt=n(4124);let jt=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[p.MD,e.iI,C.Zw,h.f3,m.ZJ,G.Y3,z.kT,_.pc,tt.i,Ft,Rt.C]})}return a})(),Dt=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#n=this.\u0275mod=t.$C({type:a});static#e=this.\u0275inj=t.G2t({imports:[p.MD,_t,jt]})}return a})()}}]); \ No newline at end of file diff --git a/server/public/9373.1426b85d2fdfe1ad.js b/server/public/9373.1426b85d2fdfe1ad.js deleted file mode 100644 index 6d9eda17b..000000000 --- a/server/public/9373.1426b85d2fdfe1ad.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9373],{7292:(ue,$,i)=>{i.d($,{H:()=>_});var X=i(3953);let _=(()=>{class z{transform(h,f="display-string"){return void 0===h?"":"display-string"===f?function l(z){switch(z){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return z}}(h):`civic-${h.replace(/_/g,"").toLowerCase()}`}static#e=this.\u0275fac=function(f){return new(f||z)};static#n=this.\u0275pipe=X.EJ8({name:"therapyInteractionEnumDisplay",type:z,pure:!0})}return z})()},6544:(ue,$,i)=>{i.r($),i.d($,{MolecularProfilesDetailModule:()=>Fa});var l=i(177),X=i(4124),_=i(7685),z=i(1896),T=i(3062),h=i(513),f=i(5103),fe=i(1532),m=i(7529),_e=i(8103),ge=i(5736),p=i(1188),de=i(4873),e=i(3953);let ve=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,de.A]})}return n})();var d=i(9145),ze=i(664);let he=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.molecularProfileId,entityType:d.T31.MolecularProfile}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-comment-list",0),2&a&&e.Y8G("commentable",r.commentable)},dependencies:[ze.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var K=i(9172),L=i(6977),x=i(4608),Z=i(1413),q=i(4412),ee=i(1305),I=i(1774),ne=i(6389),te=i(5930),D=i(3617),ae=i(1236),Ce=i(6269),Pe=i(9945),ye=i(8821),Me=i(7428),Te=i(9765),Ge=i(5269),E=i(959),xe=i(4126),Ie=i(1635),Fe=i(1226),oe=i(6354),ie=i(9894),be=i(4222),y=i(9417),R=i(8927),re=i(2983),v=i(5703),le=i(5154),A=i(1997),$e=i(1939),De=i(5566);function Ee(n,o){1&n&&e.nrm(0,"nz-alert",18)}function Re(n,o){1&n&&(e.qex(0),e.DNE(1,Ee,1,0,"nz-alert",17),e.bVm())}function Se(n,o){if(1&n&&(e.qex(0),e.DNE(1,Re,2,0,"ng-container",16),e.bVm()),2&n){const t=o.ngrxLet;e.R7$(),e.Y8G("ngIf",t)}}function Ve(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",19),e.bIt("nzOnClose",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onSuccessBannerClose())}),e.k0s()}}function Ye(n,o){if(1&n&&e.nrm(0,"nz-alert",20),2&n){e.XpG();const t=e.sdS(8);e.Y8G("nzDescription",t)}}function je(n,o){if(1&n&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Ne(n,o){if(1&n&&(e.j41(0,"ul"),e.DNE(1,je,2,1,"li",21),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.errorMessages)}}function Oe(n,o){}function Xe(n,o){1&n&&e.DNE(0,Oe,0,0,"ng-template")}function Le(n,o){if(1&n&&(e.qex(0),e.DNE(1,Xe,1,0,null,23),e.bVm()),2&n){e.XpG();const t=e.sdS(6);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Ae(n,o){}function we(n,o){1&n&&e.DNE(0,Ae,0,0,"ng-template")}function ke(n,o){if(1&n&&(e.j41(0,"span",24),e.DNE(1,we,1,0,null,23),e.k0s()),2&n){e.XpG();const t=e.sdS(6);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Ue(n,o){if(1&n&&(e.j41(0,"button",25),e.EFF(1," Deprecate Molecular Profile "),e.k0s()),2&n){const t=e.XpG().ngrxLet,a=e.XpG();e.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10&&t.signedIn&&t.isEditor&&a.reason))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}function Be(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-form-buttons"),e.DNE(2,Le,2,1,"ng-container",22)(3,ke,2,1,"ng-template",null,1,e.C5r)(5,Ue,2,3,"ng-template",null,2,e.C5r),e.k0s(),e.bVm()),2&n){const t=o.ngrxLet,a=e.sdS(4);e.R7$(2),e.Y8G("ngIf",t.signedIn&&t.isEditor)("ngIfElse",a)}}let w=class H{constructor(o,t,a,r,c,s){this.deprecateComplexMolecularProfileGQL=o,this.molecularProfileDetailGQL=t,this.evidenceCountsForMolecularProfileGQL=a,this.networkErrorService=r,this.route=c,this.viewerService=s,this.destroy$=new Z.B,this.success=!1,this.errorMessages=[],this.mutationLoading$=new q.t(!1),this.comment="",this.deprecateComplexMolecularProfileMutator=new Fe.E(r),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,ie.s)(this)).subscribe(t=>{this.selectedOrg=t.mostRecentOrg}),void 0===this.molecularProfileId)throw new Error("Must pass a molecular profile id into deprecate complex molecular profile component");let o=this.evidenceCountsForMolecularProfileGQL.fetch({molecularProfileId:this.molecularProfileId});this.hasEvidence$=o.pipe((0,oe.T)(({data:t})=>t.molecularProfile.evidenceCountsByStatus.submittedCount+t.molecularProfile.evidenceCountsByStatus.acceptedCount>0)),this.isLoading$=o.pipe((0,oe.T)(({loading:t})=>t))}deprecateMolecularProfile(){if(this.errorMessages=[],this.reason&&this.comment&&this.molecularProfileId){let o={deprecationReason:this.reason,comment:this.comment,molecularProfileId:this.molecularProfileId,organizationId:this.selectedOrg?.id};this.mutationLoading$.next(!0);let t=this.deprecateComplexMolecularProfileMutator.mutate(this.deprecateComplexMolecularProfileGQL,o,{refetchQueries:[{query:this.molecularProfileDetailGQL.document,variables:{molecularProfileId:this.molecularProfileId}}]});t.submitSuccess$.pipe((0,L.Q)(this.destroy$)).subscribe(a=>{a&&(this.success=!0,this.comment="",this.mutationLoading$.next(!1))}),t.submitError$.pipe((0,L.Q)(this.destroy$)).subscribe(a=>{a.length>0&&(this.errorMessages=a,this.mutationLoading$.next(!1))})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(t){return new(t||H)(e.rXU(d.HLX),e.rXU(d.Tj8),e.rXU(d.WAS),e.rXU(be.N),e.rXU(p.nX),e.rXU(ee.q))};static#n=this.\u0275cmp=e.VBU({type:H,selectors:[["cvc-complex-molecular-profile-deprecate-form"]],inputs:{molecularProfileId:"molecularProfileId"},decls:21,vars:12,consts:[["errorContents",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Molecular Profile deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Molecular Profile",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","error","nzMessage","Cannot deprecate this Molecular Profiles because it has attached Evidence Items",4,"nzSpaceItem"],["nzType","error","nzMessage","Cannot deprecate this Molecular Profiles because it has attached Evidence Items"],["nzBanner","","nzMessage","Molecular Profile deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Molecular Profile",3,"nzDescription"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate Molecular Profile."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(t,a){if(1&t){const r=e.RV6();e.j41(0,"nz-spin",3),e.nI1(1,"ngrxPush"),e.j41(2,"nz-space",4),e.DNE(3,Se,2,1,"ng-container",5),e.k0s()(),e.j41(4,"nz-card",6),e.DNE(5,Ve,1,0,"nz-alert",7)(6,Ye,1,1,"nz-alert",8)(7,Ne,2,1,"ng-template",null,0,e.C5r),e.j41(9,"nz-form-item")(10,"nz-select",9),e.mxI("ngModelChange",function(s){return e.eBV(r),e.DH7(a.reason,s)||(a.reason=s),e.Njj(s)}),e.nrm(11,"nz-option",10)(12,"nz-option",11)(13,"nz-option",12),e.k0s()(),e.j41(14,"form",13),e.bIt("ngSubmit",function(){return e.eBV(r),e.Njj(a.deprecateMolecularProfile())}),e.j41(15,"cvc-comment-input-form",14),e.mxI("commentChange",function(s){return e.eBV(r),e.DH7(a.comment,s)||(a.comment=s),e.Njj(s)}),e.k0s(),e.j41(16,"nz-spin",15),e.nI1(17,"ngrxPush"),e.j41(18,"nz-form-item")(19,"nz-form-control"),e.DNE(20,Be,7,2,"ng-container",5),e.k0s()()()()()}2&t&&(e.Y8G("nzSpinning",e.bMT(1,8,a.isLoading$)),e.R7$(3),e.Y8G("ngrxLet",a.hasEvidence$),e.R7$(2),e.Y8G("ngIf",a.success),e.R7$(),e.Y8G("ngIf",a.errorMessages.length>0),e.R7$(4),e.R50("ngModel",a.reason),e.R7$(5),e.R50("comment",a.comment),e.R7$(),e.Y8G("nzSpinning",e.bMT(17,10,a.mutationLoading$)),e.R7$(4),e.Y8G("ngrxLet",a.viewer$))},dependencies:[l.Sq,l.bT,l.T3,y.qT,y.BC,y.cb,y.vS,y.cV,I.Nj,m.Uq,m.e,R.CA,R.Ls,R.zS,D.Y,h.aO,ne.c,te.p,re.a,v.cK,_.U5,_.Dq,le.LH,A.ld,A.WI,$e.l,De.K,I.L9],encapsulation:2,changeDetection:0})};w=(0,Ie.Cg)([(0,ie.d)()],w);var Je=i(1845);const Qe=n=>({flagged:n}),We=n=>({molecularProfileId:n}),He=n=>["/molecular-profiles",n,"revise"],Ke=()=>[];function Ze(n,o){if(1&n&&(e.j41(0,"button",17),e.nrm(1,"i",18),e.EFF(2," Add Evidence For This Molecular Profile "),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.Y8G("queryParams",e.eq3(1,We,t.id))}}function qe(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ze,3,3,"button",16),e.bVm()),2&n){const t=o.ngrxLet;e.R7$(),e.Y8G("ngIf",t.canCurate)}}function en(n,o){if(1&n&&e.DNE(0,qe,2,1,"ng-container",12),2&n){const t=e.XpG(2);e.Y8G("ngrxLet",t.viewer$)}}function nn(n,o){1&n&&(e.j41(0,"span"),e.EFF(1,",\xa0"),e.k0s())}function tn(n,o){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.DNE(2,nn,2,0,"span",6),e.k0s()),2&n){const t=o.$implicit,a=o.last;e.R7$(),e.SpI(" ",t,""),e.R7$(),e.Y8G("ngIf",!a)}}function an(n,o){if(1&n&&(e.j41(0,"nz-page-header-subtitle"),e.DNE(1,tn,3,2,"span",19),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.molecularProfileAliases)}}function on(n,o){if(1&n&&(e.j41(0,"button",24,3),e.EFF(2," Revise "),e.k0s()),2&n){const t=e.sdS(1),a=e.XpG(4).ngIf;e.Y8G("routerLink",e.eq3(2,He,a.id))("nzType",t.isActive?"primary":"default")}}function rn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,on,3,4,"button",23),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function ln(n,o){if(1&n&&(e.j41(0,"button",26,3),e.EFF(2," Flag "),e.k0s()),2&n){const t=e.sdS(1);e.Y8G("nzType",t.isActive?"primary":"default")}}function cn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,ln,3,1,"button",25),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function sn(n,o){if(1&n&&(e.j41(0,"div",29),e.nrm(1,"cvc-complex-molecular-profile-deprecate-form",30),e.k0s()),2&n){const t=e.XpG(5).ngIf;e.R7$(),e.Y8G("molecularProfileId",t.id)}}function pn(n,o){if(1&n&&(e.j41(0,"button",28),e.EFF(1," Deprecate "),e.DNE(2,sn,2,1,"ng-template",null,4,e.C5r),e.k0s()),2&n){const t=e.sdS(3),a=e.XpG(4).ngIf;e.Y8G("disabled",a.deprecated||1==a.variants.length)("nzPopoverContent",t)}}function mn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,pn,4,2,"button",27),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.isEditor)}}function un(n,o){if(1&n&&e.nrm(0,"cvc-entity-subscription-button",32),2&n){const t=e.XpG(2).ngrxLet,a=e.XpG(3);e.Y8G("viewer",t)("subscribableId",a.subscribable.id)}}function fn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,un,1,2,"cvc-entity-subscription-button",31),e.k0s()),2&n){const t=e.XpG().ngrxLet,a=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.signedIn&&a.subscribable)}}function _n(n,o){1&n&&(e.j41(0,"nz-space",21),e.DNE(1,rn,2,1,"span",22)(2,cn,2,1,"span",22)(3,mn,2,1,"span",22)(4,fn,2,1,"span",22),e.k0s())}function gn(n,o){if(1&n&&(e.j41(0,"nz-page-header-extra"),e.DNE(1,_n,5,0,"nz-space",20),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngrxLet",t.viewer$)}}function dn(n,o){if(1&n&&e.nrm(0,"nz-alert",33),2&n){e.XpG();const t=e.sdS(15);e.Y8G("nzMessage",t)}}function vn(n,o){if(1&n&&e.nrm(0,"cvc-comment-body",37),2&n){const t=e.XpG().$implicit;e.Y8G("commentBodySegments",t.deprecationActivity.parsedNote)}}function zn(n,o){if(1&n&&(e.qex(0),e.nrm(1,"br")(2,"cvc-feature-variant-tag",35),e.EFF(3),e.nI1(4,"enumToTitle"),e.DNE(5,vn,1,1,"cvc-comment-body",36),e.bVm()),2&n){const t=o.$implicit;e.R7$(2),e.Y8G("variant",t),e.R7$(),e.SpI(" ",e.bMT(4,3,t.deprecationReason),". "),e.R7$(2),e.Y8G("ngIf",t.deprecationActivity)}}function hn(n,o){if(1&n&&(e.qex(0),e.EFF(1," This Molecular Profile has been deprecated because one or more of its underlying variants are deprecated "),e.DNE(2,zn,6,5,"ng-container",19),e.bVm()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.Y8G("ngForOf",t.deprecatedVariants)}}function Cn(n,o){if(1&n&&(e.EFF(0),e.nI1(1,"enumToTitle"),e.nrm(2,"cvc-comment-body",37)),2&n){const t=e.XpG(2).ngIf;e.SpI(" This Molecular Profile has been deprecated for reason: ",e.bMT(1,2,t.deprecationReason),". "),e.R7$(2),e.Y8G("commentBodySegments",(null==t.complexMolecularProfileDeprecationActivity?null:t.complexMolecularProfileDeprecationActivity.parsedNote)||e.lJ4(4,Ke))}}function Pn(n,o){if(1&n&&e.DNE(0,hn,3,1,"ng-container",34)(1,Cn,3,5,"ng-template",null,5,e.C5r),2&n){const t=e.sdS(2),a=e.XpG().ngIf;e.Y8G("ngIf","VARIANT_DEPRECATED"==a.deprecationReason)("ngIfElse",t)}}function yn(n,o){if(1&n&&(e.j41(0,"nz-col",38),e.nrm(1,"cvc-contributor-avatars",39),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("subscribable",t.subscribable)}}function Mn(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",7),e.DNE(2,en,1,1,"ng-template",null,0,e.C5r),e.j41(4,"div",8),e.nI1(5,"ngrxPush"),e.j41(6,"nz-page-header",9)(7,"nz-page-header-title",10),e.nrm(8,"i",11),e.EFF(9),e.k0s(),e.DNE(10,an,2,1,"nz-page-header-subtitle",6)(11,gn,2,1,"nz-page-header-extra",12),e.j41(12,"nz-page-header-content"),e.DNE(13,dn,1,1,"nz-alert",13)(14,Pn,3,2,"ng-template",null,1,e.C5r),e.j41(16,"cvc-tab-navigation",14),e.nI1(17,"ngrxPush"),e.DNE(18,yn,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.j41(20,"div",15),e.nrm(21,"router-outlet"),e.k0s()()()(),e.bVm()),2&n){const t=o.ngIf,a=e.sdS(3),r=e.XpG();e.R7$(),e.Y8G("displayName",t.name)("actionsTpl",a),e.R7$(3),e.Y8G("flags",e.bMT(5,9,r.flagsTotal$)),e.R7$(3),e.Y8G("ngClass",e.eq3(13,Qe,t.flags.totalCount>0)),e.R7$(2),e.SpI(" ",t.name," "),e.R7$(),e.Y8G("ngIf",t.molecularProfileAliases.length>0),e.R7$(),e.Y8G("ngrxLet",r.viewer$),e.R7$(2),e.Y8G("ngIf",t.deprecated),e.R7$(3),e.Y8G("tabs",e.bMT(17,11,r.tabs$))}}let Tn=(()=>{class n{constructor(t,a,r){this.gql=t,this.viewerService=a,this.route=r,this.destroy$=new Z.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new q.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({mpId:+c.molecularProfileId});let s=this.queryRef.valueChanges;this.loading$=s.pipe((0,x.E)("loading"),(0,K.Z)(!0)),this.molecularProfile$=s.pipe((0,x.E)("data","molecularProfile")),this.flagsTotal$=this.molecularProfile$.pipe((0,x.E)("flags","totalCount")),this.molecularProfile$.pipe((0,L.Q)(this.destroy$)).subscribe({next:b=>{this.tabs$.next(this.defaultTabs.map(u=>"Revisions"===u.tabLabel?{badgeCount:b?.revisions.totalCount,...u}:"Flags"===u.tabLabel?{badgeCount:b?.flags.totalCount,...u}:"Comments"===u.tabLabel?{badgeCount:b?.comments.totalCount,badgeColor:"#cccccc",...u}:u))}}),this.subscribable={id:+c.molecularProfileId,entityType:d.V9U.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(d.Tj8),e.rXU(ee.q),e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["molecular-profiles-detail"]],decls:2,vars:3,consts:[["mpActions",""],["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateMolecularProfileForm",""],["directDeprecationTemplate",""],[4,"ngIf"],[3,"displayName","actionsTpl"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:molecularprofile"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",3,"queryParams",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",3,"queryParams"],["nz-icon","","nzType","plus-circle"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Molecular Profile","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Molecular Profile","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateMolecularProfile"],[3,"molecularProfileId"],["typename","MolecularProfile",3,"viewer","subscribableId",4,"ngIf"],["typename","MolecularProfile",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[4,"ngIf","ngIfElse"],[3,"variant"],[3,"commentBodySegments",4,"ngIf"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(a,r){1&a&&(e.DNE(0,Mn,22,15,"ng-container",6),e.nI1(1,"ngrxPush")),2&a&&e.Y8G("ngIf",e.bMT(1,1,r.molecularProfile$))},dependencies:[l.YU,l.Sq,l.bT,p.n3,p.Wk,p.wQ,I.Nj,h.aO,ne.c,te.p,f.Dn,T.WB,T.k9,T.CO,T.zR,T.ov,_.U5,_.Dq,m.Uq,D.Y,ae.L_,Ce.f,Pe.N,ye.H,Me.v,Te.n,Ge.o,E.j,xe.p,w,I.L9,Je.f],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var Gn=i(326);let xn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Gn.p]})}return n})();var In=i(9543);let Fn=(()=>{class n{constructor(t){this.route=t,this.subscribable={id:+this.route.snapshot.params.molecularProfileId,entityType:d.V9U.MolecularProfile}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-events"]],decls:1,vars:1,consts:[["tagDisplay","hideSubject",3,"subscribable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-event-feed",0),2&a&&e.Y8G("subscribable",r.subscribable)},dependencies:[In.e],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var bn=i(7268),$n=i(1912);let Dn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,m.f3,v.Ti,_.pc,$n.i3,f.Y3,bn.G]})}return n})();var En=i(4097);let Rn=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:d.lD4.MolecularProfile,id:+this.route.snapshot.params.molecularProfileId}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-flag-list-and-filter",0),2&a&&e.Y8G("flaggable",r.flaggable)},dependencies:[En.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Sn=i(6371);let Vn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Sn.O]})}return n})();var Yn=i(4055);let jn=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.subject={id:+a.molecularProfileId,entityType:d.BlQ.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(a,r){1&a&&e.nrm(0,"cvc-revisions-list-and-filter",0),2&a&&e.Y8G("moderated",r.subject)},dependencies:[Yn.B],encapsulation:2})}return n})();var G=i(2142),Nn=i(1209),g=i(2e3),S=i(5493),V=i(7054),Y=i(8254),On=i(4531),Xn=i(7660),C=i(7391),F=i(4917),Ln=i(2839),P=i(5699),An=i(1448),wn=i(7556),k=i(7051),j=i(996),M=i(4696),U=i(7513),B=i(6912),N=i(7086);let kn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,P.T,f.Y3,m.f3,g.WF,C.kT,v.Ti,M.GB,_.pc,F.i,k.U,B.l,Y.V,G.x,S.G,V.L,G.x,j.o,U.m,N.C]})}return n})();var Un=i(9354),J=i(3075),ce=i(6719),O=i(7855),Q=i(6073),W=i(5473);const Bn=()=>[8,16],Jn=()=>[8,8];function Qn(n,o){if(1&n&&(e.nrm(0,"i",15),e.nI1(1,"entityColor"),e.j41(2,"span",16),e.EFF(3),e.k0s(),e.j41(4,"span",17),e.EFF(5),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,3,"Variant")),e.R7$(3),e.SpI(" ",t.variant.feature.name," "),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function Wn(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Hn(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Wn,2,1,"nz-tag",18),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function Kn(n,o){1&n&&(e.j41(0,"span",16),e.EFF(1,"None specified"),e.k0s())}function Zn(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",20),2&n&&e.Y8G("variantType",o.$implicit)}function qn(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Zn,1,1,"cvc-variant-type-tag",19),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function et(n,o){1&n&&(e.j41(0,"span",16),e.EFF(1,"None specified"),e.k0s())}function nt(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",23),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function tt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",24),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function at(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",21)(1,"cvc-tag-list"),e.DNE(2,nt,2,2,"ng-container",18)(3,tt,3,3,"ng-container",22),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function ot(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-ncit-details",25),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ncitDetails",t.variant.ncitDetails)}}function it(n,o){1&n&&(e.j41(0,"nz-col",6)(1,"nz-card",26),e.nrm(2,"cvc-empty-revisable",27),e.k0s()()),2&n&&e.Y8G("nzSpan",24)}function rt(n,o){if(1&n&&(e.j41(0,"nz-card",4),e.DNE(1,Qn,6,5,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",5)(4,"nz-col",6)(5,"nz-row",5)(6,"nz-col",7)(7,"nz-descriptions",8)(8,"nz-descriptions-item",9),e.nrm(9,"cvc-feature-variant-tag",10),e.k0s(),e.j41(10,"nz-descriptions-item",11),e.DNE(11,Hn,3,1,"ng-container",12)(12,Kn,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",13),e.DNE(15,qn,3,1,"ng-container",12)(16,et,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(18,at,4,3,"nz-descriptions-item",14),e.k0s()()()(),e.j41(19,"nz-col",6),e.DNE(20,ot,2,1,"ng-container",12)(21,it,3,1,"ng-template",null,3,e.C5r),e.k0s()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.sdS(22),s=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(18,Bn)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(19,Jn)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",s.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",s.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",s.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",s.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",s.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("ngIf",s.variant.ncitId)("ngIfElse",c)}}let se=(()=>{class n{constructor(){this.displayMps=[]}ngOnInit(){if(void 0===this.variant)throw new Error("Must pass a Variant into the MP Variant Card Component");if(void 0===this.currentMolecularProfileId)throw new Error("Must pass a MP ID into the MP Variant Card Component");if("FactorVariant"!==this.variant.__typename)throw new Error("This card is for FactorVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-factor-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["noNcit",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Factor Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography","","nzType","secondary"],["nz-typography",""],[4,"ngFor","ngForOf"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"],[3,"ncitDetails"],["nzTitle",""],["notification","Not available, please provide an NCIt Code"]],template:function(a,r){1&a&&e.DNE(0,rt,23,20,"nz-card",4),2&a&&e.vxM("FactorVariant"==r.variant.__typename?0:-1)},dependencies:[l.MD,l.Sq,l.bT,p.iI,p.Wk,P.T,P.s,f.Y3,f.Dn,m.f3,m.Uq,m.e,g.WF,g.xA,g.gr,C.kT,C.Di,v.Ti,v.cK,M.GB,_.pc,F.i,J.R,k.U,B.l,Y.V,ce.Q,G.x,O.M,S.G,Q.h,V.L,j.o,W.z,U.m,N.C,E.j,Un.e],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})(),lt=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,P.T,f.Y3,m.f3,g.WF,C.kT,v.Ti,M.GB,_.pc,F.i,k.U,B.l,Y.V,G.x,S.G,V.L,G.x,j.o,U.m,N.C]})}return n})(),ct=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,_.pc,m.f3,g.WF,v.Ti,C.kT,f.Y3,P.T,wn.F,F.i,On.C,Xn.u,G.x,Ln.m,Nn.k,S.G,V.L,Y.V,An.B,kn,se,lt]})}return n})();var st=i(2033),pt=i(8199),mt=i(4441),ut=i(6408),ft=i(9062),_t=i(9973),gt=i(7679),pe=i(9481);const dt=()=>[8,16],vt=()=>[8,8];function zt(n,o){if(1&n&&(e.nrm(0,"i",23),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function ht(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Ct(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,ht,2,1,"nz-tag",24),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function Pt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None specified"),e.k0s())}function yt(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",27),2&n&&e.Y8G("variantType",o.$implicit)}function Mt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,yt,1,1,"cvc-variant-type-tag",26),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function Tt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None specified"),e.k0s())}function Gt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-link-tag",28),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("href","https://reg.genome.network/allele/"+t.variant.alleleRegistryId+".html"),e.R7$(),e.SpI(" ",t.variant.alleleRegistryId," ")}}function xt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None provided"),e.k0s())}function It(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-link-tag",29),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+t),e.R7$(),e.SpI(" ",t," ")}}function Ft(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,It,3,2,"ng-container",24),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",t.variant.clinvarIds)}}function bt(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ft,2,1,"cvc-tag-list",15),e.bVm()),2&n){e.XpG();const t=e.sdS(25),a=e.XpG();e.R7$(),e.Y8G("ngIf","N/A"!==a.variant.clinvarIds[0])("ngIfElse",t)}}function $t(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"N/A"),e.k0s())}function Dt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None provided"),e.k0s())}function Et(n,o){if(1&n&&(e.j41(0,"cvc-link-tag",30),e.EFF(1," Variant Report "),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("href",t.variant.openCravatUrl)}}function Rt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"Allele Registry ID required."),e.k0s())}function St(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",33),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function Vt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",34),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function Yt(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",31)(1,"cvc-tag-list"),e.DNE(2,St,2,2,"ng-container",24)(3,Vt,3,3,"ng-container",32),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function jt(n,o){if(1&n&&(e.j41(0,"nz-card",7),e.DNE(1,zt,3,4,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",8)(4,"nz-col",9)(5,"nz-row",8)(6,"nz-col",10)(7,"nz-descriptions",11)(8,"nz-descriptions-item",12),e.nrm(9,"cvc-feature-variant-tag",13),e.k0s(),e.j41(10,"nz-descriptions-item",14),e.DNE(11,Ct,3,1,"ng-container",15)(12,Pt,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",16),e.DNE(15,Mt,3,1,"ng-container",15)(16,Tt,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(18,"nz-descriptions-item",17),e.DNE(19,Gt,3,2,"ng-container",15)(20,xt,2,0,"ng-template",null,3,e.C5r),e.k0s(),e.j41(22,"nz-descriptions-item",16),e.DNE(23,bt,2,2,"ng-container",15)(24,$t,2,0,"ng-template",null,4,e.C5r)(26,Dt,2,0,"ng-template",null,5,e.C5r),e.k0s(),e.j41(28,"nz-descriptions-item",18),e.DNE(29,Et,2,1,"cvc-link-tag",19)(30,Rt,2,0,"ng-template",null,6,e.C5r),e.k0s(),e.DNE(32,Yt,4,3,"nz-descriptions-item",20),e.k0s()(),e.j41(33,"nz-col",9)(34,"nz-collapse")(35,"nz-collapse-panel",21),e.nrm(36,"cvc-coordinates-card",22),e.k0s()()()()()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.sdS(21),s=e.sdS(27),b=e.sdS(31),u=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(28,dt)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(29,vt)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",u.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",u.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",u.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",u.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",u.variant.alleleRegistryId)("ngIfElse",c),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",u.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),e.R7$(),e.Y8G("ngIf",u.variant.clinvarIds.length>0)("ngIfElse",s),e.R7$(5),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",u.variant.openCravatUrl)("ngIfElse",b),e.R7$(3),e.Y8G("ngIf",u.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("displayTitle",!1)("cvcCoordinates",u.variant)}}let Nt=(()=>{class n{constructor(){this.displayMps=[]}ngOnInit(){if(void 0===this.variant)throw new Error("Must pass a Variant into the MP Variant Card Component");if(void 0===this.currentMolecularProfileId)throw new Error("Must pass a MP ID into the MP Variant Card Component");if("GeneVariant"!==this.variant.__typename)throw new Error("This card is for GeneVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-gene-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["noCravat",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Gene Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Allele Registry ID",3,"nzSpan"],["nzTitle","OpenCRAVAT",3,"nzSpan"],["tooltip","View on OpenCRAVAT",3,"href",4,"ngIf","ngIfElse"],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nzHeader","Representative Variant Coordinates"],[3,"displayTitle","cvcCoordinates"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on OpenCRAVAT",3,"href"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"]],template:function(a,r){1&a&&e.DNE(0,jt,37,30,"nz-card",7),2&a&&e.vxM("GeneVariant"==r.variant.__typename?0:-1)},dependencies:[l.Sq,l.bT,p.Wk,P.s,f.Dn,m.Uq,m.e,g.xA,g.gr,C.Di,v.cK,M.Vz,M.pc,O.M,Q.h,gt.a,W.z,pe.W,E.j,J.R],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})();const Ot=()=>[8,16],Xt=()=>[8,8];function Lt(n,o){if(1&n&&(e.nrm(0,"i",16),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function At(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function wt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,At,2,1,"nz-tag",17),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function kt(n,o){1&n&&(e.j41(0,"span",18),e.EFF(1,"None specified"),e.k0s())}function Ut(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",20),2&n&&e.Y8G("variantType",o.$implicit)}function Bt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Ut,1,1,"cvc-variant-type-tag",19),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function Jt(n,o){1&n&&(e.j41(0,"span",18),e.EFF(1,"None provided"),e.k0s())}function Qt(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",23),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function Wt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",24),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function Ht(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",21)(1,"cvc-tag-list"),e.DNE(2,Qt,2,2,"ng-container",17)(3,Wt,3,3,"ng-container",22),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function Kt(n,o){if(1&n&&(e.j41(0,"nz-card",3),e.DNE(1,Lt,3,4,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",4)(4,"nz-col",5)(5,"nz-row",4)(6,"nz-col",6)(7,"nz-descriptions",7)(8,"nz-descriptions-item",8),e.nrm(9,"cvc-feature-variant-tag",9),e.k0s(),e.j41(10,"nz-descriptions-item",10),e.DNE(11,wt,3,1,"ng-container",11)(12,kt,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",12),e.DNE(15,Bt,3,1,"ng-container",11)(16,Jt,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(18,Ht,4,3,"nz-descriptions-item",13),e.k0s()(),e.j41(19,"nz-col",5)(20,"nz-collapse")(21,"nz-collapse-panel",14),e.nrm(22,"cvc-coordinates-card",15),e.k0s()()()()()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(18,Ot)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(19,Xt)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",c.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",c.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",c.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",c.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",c.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("displayTitle",!1)("cvcCoordinates",c.variant)}}let Zt=(()=>{class n{constructor(){this.displayMps=[]}ngOnInit(){if(void 0===this.variant)throw new Error("Must pass a Variant into the MP Variant Card Component");if(void 0===this.currentMolecularProfileId)throw new Error("Must pass a MP ID into the MP Variant Card Component");if("FusionVariant"!==this.variant.__typename)throw new Error("This card is for FusionVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-fusion-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Fusion Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nzHeader","Representative Variant Coordinates"],[3,"displayTitle","cvcCoordinates"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"]],template:function(a,r){1&a&&e.DNE(0,Kt,23,20,"nz-card",3),2&a&&e.vxM("FusionVariant"==r.variant.__typename?0:-1)},dependencies:[l.Sq,l.bT,p.Wk,P.s,f.Dn,m.Uq,m.e,g.xA,g.gr,C.Di,v.cK,M.Vz,M.pc,O.M,Q.h,W.z,pe.W,E.j,J.R],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})();var qt=i(8139);const ea=()=>[8,16],me=()=>[8,8];function na(n,o){if(1&n&&(e.EFF(0," Created "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.complexMolecularProfileCreationActivity.createdAt),") ")}}function ta(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,na,4,3,"ng-template",null,3,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.complexMolecularProfileCreationActivity.user)}}function aa(n,o){if(1&n&&(e.EFF(0," Deprecated "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.complexMolecularProfileDeprecationActivity.createdAt),") ")}}function oa(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,aa,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.complexMolecularProfileDeprecationActivity.user)}}function ia(n,o){if(1&n&&(e.EFF(0," Deprecated "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.variantDeprecationActivity.createdAt),") ")}}function ra(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,ia,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.variantDeprecationActivity.user)}}function la(n,o){if(1&n&&(e.j41(0,"p",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG().ngIf;e.Y8G("nzEllipsisRows",14),e.R7$(),e.SpI(" ",t.description," ")}}function ca(n,o){1&n&&e.nrm(0,"cvc-empty-revisable",27)}function sa(n,o){1&n&&e.nrm(0,"cvc-source-tag",29),2&n&&e.Y8G("source",o.$implicit)}function pa(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,sa,1,1,"cvc-source-tag",28),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.sources)}}function ma(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function ua(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,ma,2,1,"nz-tag",30),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.molecularProfileAliases)}}function fa(n,o){if(1&n&&e.nrm(0,"cvc-mp-gene-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function _a(n,o){if(1&n&&e.nrm(0,"cvc-mp-fusion-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function ga(n,o){if(1&n&&e.nrm(0,"cvc-mp-factor-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function da(n,o){if(1&n&&(e.j41(0,"nz-col",18),e.DNE(1,fa,1,2,"cvc-mp-gene-variant-card",31)(2,_a,1,2,"cvc-mp-fusion-variant-card",31)(3,ga,1,2,"cvc-mp-factor-variant-card",31),e.k0s()),2&n){let t;const a=o.$implicit;e.R7$(),e.vxM("GeneVariant"===(t=a.__typename)?1:"FusionVariant"===t?2:"FactorVariant"===t?3:-1)}}function va(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-row",6)(2,"nz-col",7)(3,"nz-row",6)(4,"nz-col",7)(5,"nz-descriptions",8)(6,"nz-descriptions-item",9),e.nrm(7,"cvc-mp-tag-name",10),e.k0s(),e.DNE(8,ta,6,2,"ng-container",5)(9,oa,6,2,"ng-container",5)(10,ra,6,2,"ng-container",5),e.k0s()(),e.j41(11,"nz-col",7)(12,"nz-descriptions",8)(13,"nz-descriptions-item",11),e.DNE(14,la,2,2,"p",12)(15,ca,1,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(17,"nz-descriptions-item",13),e.DNE(18,pa,2,1,"cvc-tag-list",14),e.k0s(),e.j41(19,"nz-descriptions-item",15)(20,"span",16),e.EFF(21),e.nI1(22,"number"),e.k0s()(),e.j41(23,"nz-descriptions-item",17),e.DNE(24,ua,2,1,"cvc-tag-list",14),e.k0s()()()()(),e.j41(25,"nz-col",18)(26,"nz-card",19)(27,"nz-row",6),e.DNE(28,da,4,1,"nz-col",20),e.k0s()()(),e.j41(29,"nz-col",18),e.nrm(30,"cvc-evidence-table",21),e.k0s(),e.j41(31,"nz-col",18),e.nrm(32,"cvc-assertions-table",22),e.k0s()(),e.bVm()),2&n){const t=o.ngIf,a=e.sdS(16);e.XpG();const r=e.sdS(5);e.R7$(),e.Y8G("nzGutter",e.lJ4(27,ea)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(28,me)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",3),e.R7$(2),e.Y8G("nameSegments",t.parsedName),e.R7$(),e.Y8G("ngIf",t.complexMolecularProfileCreationActivity),e.R7$(),e.Y8G("ngIf",t.complexMolecularProfileDeprecationActivity),e.R7$(),e.Y8G("ngIf",t.variantDeprecationActivity),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("ngIf",t.description)("ngIfElse",a),e.R7$(4),e.Y8G("ngIf",t.sources.length>0)("ngIfElse",r),e.R7$(3),e.JRh(e.bMT(22,25,t.molecularProfileScore)),e.R7$(3),e.Y8G("ngIf",t.molecularProfileAliases.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("nzGutter",e.lJ4(29,me)),e.R7$(),e.Y8G("ngForOf",t.variants),e.R7$(2),e.Y8G("molecularProfileId",t.id)("displayMolecularProfile",!1),e.R7$(2),e.Mz_("cvcTitle","",t.name," Assertions"),e.Y8G("molecularProfileId",t.id)}}function za(n,o){1&n&&e.nrm(0,"cvc-empty-value",32)}function ha(n,o){1&n&&e.nrm(0,"cvc-empty-value",33)}const Ca=[{path:"",component:Tn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(t,a){var r;if(this.gql=t,this.route=a,null==(r=this.molecularProfileId?this.molecularProfileId:+this.route.snapshot.params.molecularProfileId))throw new Error("Must pass in a molecular profile ID as an input or via the route.");this.queryRef=this.gql.watch({mpId:r});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,x.E)("loading"),(0,K.Z)(!0)),this.molecularProfile$=c.pipe((0,x.E)("data","molecularProfile")),this.subscribable={entityType:d.V9U.MolecularProfile,id:r}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(d.SPr),e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-summary"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["noDescription",""],["createdTitle",""],["deprecatedTitle",""],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small","nzBordered","true","nzLayout","vertical",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Molecular Profile Score"],["nz-typography",""],["nzTitle","Aliases"],["nzSpan","24"],["nzTitle","MP Variants"],["nzSpan","24",4,"ngFor","ngForOf"],["cvcHeight","300px","cvcTitle","Evidence",3,"molecularProfileId","displayMolecularProfile"],["cvcHeight","200px",3,"molecularProfileId","cvcTitle"],[3,"nzTitle"],[3,"user"],["nz-typography","","nzType","secondary"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],[4,"ngFor","ngForOf"],[3,"variant","currentMolecularProfileId"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(a,r){1&a&&(e.DNE(0,va,33,30,"ng-container",5),e.nI1(1,"ngrxPush"),e.DNE(2,za,1,0,"ng-template",null,0,e.C5r)(4,ha,1,0,"ng-template",null,1,e.C5r)),2&a&&e.Y8G("ngIf",e.bMT(1,1,r.molecularProfile$))},dependencies:[l.Sq,l.bT,m.Uq,m.e,g.xA,g.gr,v.cK,C.Di,P.s,st.o,pt.N,mt.z,O.M,ut.r,ft.D,ce.Q,_t.G,Nt,se,Zt,l.QX,I.L9,qt.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return n})(),data:{breadcrumb:"Summary"}},{path:"comments",component:he,data:{breadcrumb:"Comments"}},{path:"revisions",component:jn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Rn,data:{breadcrumb:"Flags"}},{path:"events",component:Fn,data:{breadcrumb:"Events"}}]}];let Pa=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[p.iI.forChild(Ca),ct,Vn,ve,Dn,xn,p.iI]})}return n})();var ya=i(7169),Ma=i(4308),Ta=i(3842),Ga=i(8492),xa=i(8692);let Ia=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,y.YN,y.X1,R.PQ,D.$,m.f3,h.Zw,re.V,v.Ti,_.pc,C.kT,le.Qt,A.DH,Ga.M,Ta.k,xa.j,Ma.I,j.o]})}return n})(),Fa=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Pa,h.Zw,f.Y3,T.ZJ,_.pc,m.f3,D.$,ae.MC,_e.m,fe.W,z.Y,X.C,ge.V,N.C,F.i,ya.W,Ia]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/9373.b424d3334e601db6.js b/server/public/9373.b424d3334e601db6.js new file mode 100644 index 000000000..01105442d --- /dev/null +++ b/server/public/9373.b424d3334e601db6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[9373],{7292:(ue,b,i)=>{i.d(b,{H:()=>_});var X=i(3953);let _=(()=>{class z{transform(h,u="display-string"){return void 0===h?"":"display-string"===u?function l(z){switch(z){case"COMBINATION":return"Combination";case"SEQUENTIAL":return"Sequential";case"SUBSTITUTES":return"Substitutes";default:return z}}(h):`civic-${h.replace(/_/g,"").toLowerCase()}`}static#e=this.\u0275fac=function(u){return new(u||z)};static#n=this.\u0275pipe=X.EJ8({name:"therapyInteractionEnumDisplay",type:z,pure:!0})}return z})()},6544:(ue,b,i)=>{i.r(b),i.d(b,{MolecularProfilesDetailModule:()=>Ia});var l=i(177),X=i(4124),_=i(7685),z=i(1896),T=i(3062),h=i(513),u=i(5103),_e=i(1532),m=i(7529),ge=i(8103),de=i(5736),p=i(1188),ve=i(4873),e=i(3953);let ze=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,ve.A]})}return n})();var g=i(9145),he=i(664);let Ce=(()=>{class n{constructor(t){this.route=t,this.commentable={id:+this.route.snapshot.params.molecularProfileId,entityType:g.T31.MolecularProfile}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-comments"]],decls:1,vars:1,consts:[[3,"commentable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-comment-list",0),2&a&&e.Y8G("commentable",r.commentable)},dependencies:[he.D],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var K=i(9172),L=i(6977),x=i(4608),Z=i(1413),q=i(4412),ee=i(1305),I=i(1774),ne=i(6389),te=i(5930),S=i(3617),ae=i(1236),Pe=i(6269),ye=i(9945),Me=i(8821),Te=i(7428),Ge=i(9765),xe=i(5269),D=i(959),Ie=i(4126),Fe=i(1635),$e=i(1226),oe=i(6354),ie=i(9894),be=i(4222),y=i(9417),E=i(8927),re=i(2983),v=i(5703),le=i(5154),A=i(1997),Se=i(1939),De=i(5566);function Ee(n,o){1&n&&e.nrm(0,"nz-alert",18)}function Re(n,o){1&n&&(e.qex(0),e.DNE(1,Ee,1,0,"nz-alert",17),e.bVm())}function Ve(n,o){if(1&n&&(e.qex(0),e.DNE(1,Re,2,0,"ng-container",16),e.bVm()),2&n){const t=o.ngrxLet;e.R7$(),e.Y8G("ngIf",t)}}function Ye(n,o){if(1&n){const t=e.RV6();e.j41(0,"nz-alert",19),e.bIt("nzOnClose",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.onSuccessBannerClose())}),e.k0s()}}function je(n,o){if(1&n&&e.nrm(0,"nz-alert",20),2&n){e.XpG();const t=e.sdS(8);e.Y8G("nzDescription",t)}}function Ne(n,o){if(1&n&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Oe(n,o){if(1&n&&(e.j41(0,"ul"),e.DNE(1,Ne,2,1,"li",21),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.errorMessages)}}function Xe(n,o){}function Le(n,o){1&n&&e.DNE(0,Xe,0,0,"ng-template")}function Ae(n,o){if(1&n&&(e.qex(0),e.DNE(1,Le,1,0,null,23),e.bVm()),2&n){e.XpG();const t=e.sdS(6);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function we(n,o){}function ke(n,o){1&n&&e.DNE(0,we,0,0,"ng-template")}function Ue(n,o){if(1&n&&(e.j41(0,"span",24),e.DNE(1,ke,1,0,null,23),e.k0s()),2&n){e.XpG();const t=e.sdS(6);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Be(n,o){if(1&n&&(e.j41(0,"button",25),e.EFF(1," Deprecate Molecular Profile "),e.k0s()),2&n){const t=e.XpG().ngrxLet,a=e.XpG();e.Y8G("disabled",!(void 0!==a.comment&&a.comment.length>=10&&t.signedIn&&t.isEditor&&a.reason))("nzTooltipTrigger",a.selectedOrg?"hover":null)("nzTooltipTitle","For "+(null==a.selectedOrg?null:a.selectedOrg.name))}}function Qe(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-form-buttons"),e.DNE(2,Ae,2,1,"ng-container",22)(3,Ue,2,1,"ng-template",null,1,e.C5r)(5,Be,2,3,"ng-template",null,2,e.C5r),e.k0s(),e.bVm()),2&n){const t=o.ngrxLet,a=e.sdS(4);e.R7$(2),e.Y8G("ngIf",t.signedIn&&t.isEditor)("ngIfElse",a)}}let w=class H{constructor(o,t,a,r,c,s){this.deprecateComplexMolecularProfileGQL=o,this.molecularProfileDetailGQL=t,this.evidenceCountsForMolecularProfileGQL=a,this.networkErrorService=r,this.route=c,this.viewerService=s,this.destroy$=new Z.B,this.success=!1,this.errorMessages=[],this.mutationLoading$=new q.t(!1),this.comment="",this.deprecateComplexMolecularProfileMutator=new $e.E(r),this.viewer$=this.viewerService.viewer$}ngOnInit(){if(this.viewerService.viewer$.pipe((0,ie.s)(this)).subscribe(t=>{this.selectedOrg=t.mostRecentOrg}),void 0===this.molecularProfileId)throw new Error("Must pass a molecular profile id into deprecate complex molecular profile component");let o=this.evidenceCountsForMolecularProfileGQL.fetch({molecularProfileId:this.molecularProfileId});this.hasEvidence$=o.pipe((0,oe.T)(({data:t})=>t.molecularProfile.evidenceCountsByStatus.submittedCount+t.molecularProfile.evidenceCountsByStatus.acceptedCount>0)),this.isLoading$=o.pipe((0,oe.T)(({loading:t})=>t))}deprecateMolecularProfile(){if(this.errorMessages=[],this.reason&&this.comment&&this.molecularProfileId){let o={deprecationReason:this.reason,comment:this.comment,molecularProfileId:this.molecularProfileId,organizationId:this.selectedOrg?.id};this.mutationLoading$.next(!0);let t=this.deprecateComplexMolecularProfileMutator.mutate(this.deprecateComplexMolecularProfileGQL,o,{refetchQueries:[{query:this.molecularProfileDetailGQL.document,variables:{molecularProfileId:this.molecularProfileId}}]});t.submitSuccess$.pipe((0,L.Q)(this.destroy$)).subscribe(a=>{a&&(this.success=!0,this.comment="",this.mutationLoading$.next(!1))}),t.submitError$.pipe((0,L.Q)(this.destroy$)).subscribe(a=>{a.length>0&&(this.errorMessages=a,this.mutationLoading$.next(!1))})}}onSuccessBannerClose(){this.success=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(t){return new(t||H)(e.rXU(g.HLX),e.rXU(g.Tj8),e.rXU(g.WAS),e.rXU(be.N),e.rXU(p.nX),e.rXU(ee.q))};static#n=this.\u0275cmp=e.VBU({type:H,selectors:[["cvc-complex-molecular-profile-deprecate-form"]],inputs:{molecularProfileId:"molecularProfileId"},decls:21,vars:12,consts:[["errorContents",""],["notSignedIn",""],["submitButton",""],[3,"nzSpinning"],["nzDirection","vertical"],[4,"ngrxLet"],["nzType","inner"],["nzBanner","","nzMessage","Molecular Profile deprecated","nzType","success","nzCloseable","",3,"nzOnClose",4,"ngIf"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Molecular Profile",3,"nzDescription",4,"ngIf"],["nzPlaceHolder","Select a deprecation reason",2,"width","300px",3,"ngModelChange","ngModel"],["nzValue","DUPLICATE","nzLabel","duplicate"],["nzValue","INVALID","nzLabel","invalid"],["nzValue","OTHER","nzLabel","other"],["nz-form","","nzLayout","vertical",3,"ngSubmit"],[3,"commentChange","comment"],["nzTip","Submitting",3,"nzSpinning"],[4,"ngIf"],["nzType","error","nzMessage","Cannot deprecate this Molecular Profiles because it has attached Evidence Items",4,"nzSpaceItem"],["nzType","error","nzMessage","Cannot deprecate this Molecular Profiles because it has attached Evidence Items"],["nzBanner","","nzMessage","Molecular Profile deprecated","nzType","success","nzCloseable","",3,"nzOnClose"],["nzType","error","nzShowIcon","","nzMessage","Error Deprecating Molecular Profile",3,"nzDescription"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["nz-tooltip","","nzTooltipTitle","Must be signed in and an editor to deprecate Molecular Profile."],["type","submit","nz-button","","cvcOrgSelectorBtn","","nzType","primary","nzSize","small","nz-tooltip","",3,"disabled","nzTooltipTrigger","nzTooltipTitle"]],template:function(t,a){if(1&t){const r=e.RV6();e.j41(0,"nz-spin",3),e.nI1(1,"ngrxPush"),e.j41(2,"nz-space",4),e.DNE(3,Ve,2,1,"ng-container",5),e.k0s()(),e.j41(4,"nz-card",6),e.DNE(5,Ye,1,0,"nz-alert",7)(6,je,1,1,"nz-alert",8)(7,Oe,2,1,"ng-template",null,0,e.C5r),e.j41(9,"nz-form-item")(10,"nz-select",9),e.mxI("ngModelChange",function(s){return e.eBV(r),e.DH7(a.reason,s)||(a.reason=s),e.Njj(s)}),e.nrm(11,"nz-option",10)(12,"nz-option",11)(13,"nz-option",12),e.k0s()(),e.j41(14,"form",13),e.bIt("ngSubmit",function(){return e.eBV(r),e.Njj(a.deprecateMolecularProfile())}),e.j41(15,"cvc-comment-input-form",14),e.mxI("commentChange",function(s){return e.eBV(r),e.DH7(a.comment,s)||(a.comment=s),e.Njj(s)}),e.k0s(),e.j41(16,"nz-spin",15),e.nI1(17,"ngrxPush"),e.j41(18,"nz-form-item")(19,"nz-form-control"),e.DNE(20,Qe,7,2,"ng-container",5),e.k0s()()()()()}2&t&&(e.Y8G("nzSpinning",e.bMT(1,8,a.isLoading$)),e.R7$(3),e.Y8G("ngrxLet",a.hasEvidence$),e.R7$(2),e.Y8G("ngIf",a.success),e.R7$(),e.Y8G("ngIf",a.errorMessages.length>0),e.R7$(4),e.R50("ngModel",a.reason),e.R7$(5),e.R50("comment",a.comment),e.R7$(),e.Y8G("nzSpinning",e.bMT(17,10,a.mutationLoading$)),e.R7$(4),e.Y8G("ngrxLet",a.viewer$))},dependencies:[l.Sq,l.bT,l.T3,y.qT,y.BC,y.cb,y.vS,y.cV,I.Nj,m.Uq,m.e,E.CA,E.Ls,E.zS,S.Y,h.aO,ne.c,te.p,re.a,v.cK,_.U5,_.Dq,le.LH,A.ld,A.WI,Se.l,De.K,I.L9],encapsulation:2,changeDetection:0})};w=(0,Fe.Cg)([(0,ie.d)()],w);var Je=i(1845);const We=n=>({flagged:n}),He=n=>({molecularProfileId:n}),Ke=n=>["/molecular-profiles",n,"revise"],Ze=()=>[];function qe(n,o){if(1&n&&(e.j41(0,"button",17),e.nrm(1,"i",18),e.EFF(2," Add Evidence For This Molecular Profile "),e.k0s()),2&n){const t=e.XpG(3).ngIf;e.Y8G("queryParams",e.eq3(1,He,t.id))}}function en(n,o){if(1&n&&(e.qex(0),e.DNE(1,qe,3,3,"button",16),e.bVm()),2&n){const t=o.ngrxLet;e.R7$(),e.Y8G("ngIf",t.canCurate)}}function nn(n,o){if(1&n&&e.DNE(0,en,2,1,"ng-container",12),2&n){const t=e.XpG(2);e.Y8G("ngrxLet",t.viewer$)}}function tn(n,o){1&n&&(e.j41(0,"span"),e.EFF(1,",\xa0"),e.k0s())}function an(n,o){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.DNE(2,tn,2,0,"span",6),e.k0s()),2&n){const t=o.$implicit,a=o.last;e.R7$(),e.SpI(" ",t,""),e.R7$(),e.Y8G("ngIf",!a)}}function on(n,o){if(1&n&&(e.j41(0,"nz-page-header-subtitle"),e.DNE(1,an,3,2,"span",19),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.molecularProfileAliases)}}function rn(n,o){if(1&n&&(e.j41(0,"button",24,3),e.EFF(2," Revise "),e.k0s()),2&n){const t=e.sdS(1),a=e.XpG(4).ngIf;e.Y8G("routerLink",e.eq3(2,Ke,a.id))("nzType",t.isActive?"primary":"default")}}function ln(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,rn,3,4,"button",23),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function cn(n,o){if(1&n&&(e.j41(0,"button",26,3),e.EFF(2," Flag "),e.k0s()),2&n){const t=e.sdS(1);e.Y8G("nzType",t.isActive?"primary":"default")}}function sn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,cn,3,1,"button",25),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.signedIn)}}function pn(n,o){if(1&n&&(e.j41(0,"div",29),e.nrm(1,"cvc-complex-molecular-profile-deprecate-form",30),e.k0s()),2&n){const t=e.XpG(5).ngIf;e.R7$(),e.Y8G("molecularProfileId",t.id)}}function mn(n,o){if(1&n&&(e.j41(0,"button",28),e.EFF(1," Deprecate "),e.DNE(2,pn,2,1,"ng-template",null,4,e.C5r),e.k0s()),2&n){const t=e.sdS(3),a=e.XpG(4).ngIf;e.Y8G("disabled",a.deprecated||1==a.variants.length)("nzPopoverContent",t)}}function fn(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,mn,4,2,"button",27),e.k0s()),2&n){const t=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",t.isEditor)}}function un(n,o){if(1&n&&e.nrm(0,"cvc-entity-subscription-button",32),2&n){const t=e.XpG(2).ngrxLet,a=e.XpG(3);e.Y8G("viewer",t)("subscribableId",a.subscribable.id)}}function _n(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,un,1,2,"cvc-entity-subscription-button",31),e.k0s()),2&n){const t=e.XpG().ngrxLet,a=e.XpG(3);e.R7$(),e.Y8G("ngIf",t.signedIn&&a.subscribable)}}function gn(n,o){1&n&&(e.j41(0,"nz-space",21),e.DNE(1,ln,2,1,"span",22)(2,sn,2,1,"span",22)(3,fn,2,1,"span",22)(4,_n,2,1,"span",22),e.k0s())}function dn(n,o){if(1&n&&(e.j41(0,"nz-page-header-extra"),e.DNE(1,gn,5,0,"nz-space",20),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngrxLet",t.viewer$)}}function vn(n,o){if(1&n&&e.nrm(0,"nz-alert",33),2&n){e.XpG();const t=e.sdS(15);e.Y8G("nzMessage",t)}}function zn(n,o){if(1&n&&e.nrm(0,"cvc-comment-body",37),2&n){const t=e.XpG().$implicit;e.Y8G("commentBodySegments",t.deprecationActivity.parsedNote)}}function hn(n,o){if(1&n&&(e.qex(0),e.nrm(1,"br")(2,"cvc-feature-variant-tag",35),e.EFF(3),e.nI1(4,"enumToTitle"),e.DNE(5,zn,1,1,"cvc-comment-body",36),e.bVm()),2&n){const t=o.$implicit;e.R7$(2),e.Y8G("variant",t),e.R7$(),e.SpI(" ",e.bMT(4,3,t.deprecationReason),". "),e.R7$(2),e.Y8G("ngIf",t.deprecationActivity)}}function Cn(n,o){if(1&n&&(e.qex(0),e.EFF(1," This Molecular Profile has been deprecated because one or more of its underlying variants are deprecated "),e.DNE(2,hn,6,5,"ng-container",19),e.bVm()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.Y8G("ngForOf",t.deprecatedVariants)}}function Pn(n,o){if(1&n&&(e.EFF(0),e.nI1(1,"enumToTitle"),e.nrm(2,"cvc-comment-body",37)),2&n){const t=e.XpG(2).ngIf;e.SpI(" This Molecular Profile has been deprecated for reason: ",e.bMT(1,2,t.deprecationReason),". "),e.R7$(2),e.Y8G("commentBodySegments",(null==t.complexMolecularProfileDeprecationActivity?null:t.complexMolecularProfileDeprecationActivity.parsedNote)||e.lJ4(4,Ze))}}function yn(n,o){if(1&n&&e.DNE(0,Cn,3,1,"ng-container",34)(1,Pn,3,5,"ng-template",null,5,e.C5r),2&n){const t=e.sdS(2),a=e.XpG().ngIf;e.Y8G("ngIf","VARIANT_DEPRECATED"==a.deprecationReason)("ngIfElse",t)}}function Mn(n,o){if(1&n&&(e.j41(0,"nz-col",38),e.nrm(1,"cvc-contributor-avatars",39),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("subscribable",t.subscribable)}}function Tn(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-section-navigation",7),e.DNE(2,nn,1,1,"ng-template",null,0,e.C5r),e.j41(4,"div",8),e.nI1(5,"ngrxPush"),e.j41(6,"nz-page-header",9)(7,"nz-page-header-title",10),e.nrm(8,"i",11),e.EFF(9),e.k0s(),e.DNE(10,on,2,1,"nz-page-header-subtitle",6)(11,dn,2,1,"nz-page-header-extra",12),e.j41(12,"nz-page-header-content"),e.DNE(13,vn,1,1,"nz-alert",13)(14,yn,3,2,"ng-template",null,1,e.C5r),e.j41(16,"cvc-tab-navigation",14),e.nI1(17,"ngrxPush"),e.DNE(18,Mn,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.j41(20,"div",15),e.nrm(21,"router-outlet"),e.k0s()()()(),e.bVm()),2&n){const t=o.ngIf,a=e.sdS(3),r=e.XpG();e.R7$(),e.Y8G("displayName",t.name)("actionsTpl",a),e.R7$(3),e.Y8G("flags",e.bMT(5,9,r.flagsTotal$)),e.R7$(3),e.Y8G("ngClass",e.eq3(13,We,t.flags.totalCount>0)),e.R7$(2),e.SpI(" ",t.name," "),e.R7$(),e.Y8G("ngIf",t.molecularProfileAliases.length>0),e.R7$(),e.Y8G("ngrxLet",r.viewer$),e.R7$(2),e.Y8G("ngIf",t.deprecated),e.R7$(3),e.Y8G("tabs",e.bMT(17,11,r.tabs$))}}let Gn=(()=>{class n{constructor(t,a,r){this.gql=t,this.viewerService=a,this.route=r,this.destroy$=new Z.B,this.defaultTabs=[{routeName:"summary",iconName:"pic-left",tabLabel:"Summary"},{routeName:"comments",iconName:"civic-comment",tabLabel:"Comments"},{routeName:"revisions",iconName:"civic-revision",tabLabel:"Revisions"},{routeName:"flags",iconName:"civic-flag",tabLabel:"Flags"},{routeName:"events",iconName:"civic-event",tabLabel:"Events"}],this.tabs$=new q.t(this.defaultTabs),this.viewer$=this.viewerService.viewer$,this.routeSub=this.route.params.subscribe(c=>{this.queryRef=this.gql.watch({mpId:+c.molecularProfileId});let s=this.queryRef.valueChanges;this.loading$=s.pipe((0,x.E)("loading"),(0,K.Z)(!0)),this.molecularProfile$=s.pipe((0,x.E)("data","molecularProfile")),this.flagsTotal$=this.molecularProfile$.pipe((0,x.E)("flags","totalCount")),this.molecularProfile$.pipe((0,L.Q)(this.destroy$)).subscribe({next:$=>{this.tabs$.next(this.defaultTabs.map(f=>"Revisions"===f.tabLabel?{badgeCount:$?.revisions.totalCount,...f}:"Flags"===f.tabLabel?{badgeCount:$?.flags.totalCount,...f}:"Comments"===f.tabLabel?{badgeCount:$?.comments.totalCount,badgeColor:"#cccccc",...f}:f))}}),this.subscribable={id:+c.molecularProfileId,entityType:g.V9U.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe(),this.destroy$.next(),this.destroy$.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(g.Tj8),e.rXU(ee.q),e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["molecular-profiles-detail"]],decls:2,vars:3,consts:[["mpActions",""],["deprecationMessageTemplate",""],["tabBarExtraContent",""],["rlaComments","routerLinkActive"],["deprecateMolecularProfileForm",""],["directDeprecationTemplate",""],[4,"ngIf"],[3,"displayName","actionsTpl"],["cvcFlaggable","",3,"flags"],[1,"site-page-header"],["cvcFlaggableOptions","",3,"ngClass"],["nz-icon","","nzType","civic:molecularprofile"],[4,"ngrxLet"],["nzBanner","","nzType","error",3,"nzMessage",4,"ngIf"],[3,"tabs"],[1,"content"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",3,"queryParams",4,"ngIf"],["routerLink","/evidence/add/submit","nz-button","","nzSize","small",3,"queryParams"],["nz-icon","","nzType","plus-circle"],[4,"ngFor","ngForOf"],["nzDirection","horizontal","nzSize","small",4,"ngrxLet"],["nzDirection","horizontal","nzSize","small"],[4,"nzSpaceItem"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType",4,"ngIf"],["routerLinkActive","","nz-button","","nzSize","small",3,"routerLink","nzType"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType",4,"ngIf"],["routerLink","flags","routerLinkActive","","nz-button","","nzSize","small",3,"nzType"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Molecular Profile","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent",4,"ngIf"],["nz-button","","nzSize","small","nz-popover","","nzPopoverTitle","Deprecate Molecular Profile","nzPopoverTrigger","click","nzPopoverPlacement","bottomRight",3,"disabled","nzPopoverContent"],[1,"deprecateMolecularProfile"],[3,"molecularProfileId"],["typename","MolecularProfile",3,"viewer","subscribableId",4,"ngIf"],["typename","MolecularProfile",3,"viewer","subscribableId"],["nzBanner","","nzType","error",3,"nzMessage"],[4,"ngIf","ngIfElse"],[3,"variant"],[3,"commentBodySegments",4,"ngIf"],[3,"commentBodySegments"],["id","contributors-col"],[3,"subscribable"]],template:function(a,r){1&a&&(e.DNE(0,Tn,22,15,"ng-container",6),e.nI1(1,"ngrxPush")),2&a&&e.Y8G("ngIf",e.bMT(1,1,r.molecularProfile$))},dependencies:[l.YU,l.Sq,l.bT,p.n3,p.Wk,p.wQ,I.Nj,h.aO,ne.c,te.p,u.Dn,T.WB,T.k9,T.CO,T.zR,T.ov,_.U5,_.Dq,m.Uq,S.Y,ae.L_,Pe.f,ye.N,Me.H,Te.v,Ge.n,xe.o,D.j,Ie.p,w,I.L9,Je.f],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] nz-page-header:first-of-type{background-color:#fff;border-radius:8px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content{flex-wrap:nowrap;background-color:#f0f0f0;border-top-left-radius:8px;border-top-right-radius:8px;margin:-12px -16px 16px;border-bottom:1px solid #bfbfbf}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon{padding:12px 0 12px 12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-icon i svg{width:100%;height:100%}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description{padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description h2{color:#262626;margin:-8px 0 0;font-weight:500}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-description p{color:#262626;margin:-2px 0 0;padding:0;font-size:95%;line-height:1.5em}[_nghost-%COMP%] nz-page-header:first-of-type .header-content .header-links{text-align:right;padding:12px}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card{width:100%}[_nghost-%COMP%] nz-page-header:first-of-type .card-list nz-card .card-grid-cell{width:50%}[_nghost-%COMP%] nz-page-header:first-of-type nz-page-header-title.flagged{padding-left:.75em}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-content{padding-top:0;padding-bottom:12px}[_nghost-%COMP%] nz-page-header:first-of-type .ant-page-header-heading-extra nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs{margin:0 -16px 12px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap{padding-left:16px;padding-right:16px;line-height:24px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab{padding:1px 8px}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-nav-wrap .ant-tabs-tab .anticon{margin-right:0}[_nghost-%COMP%] nz-page-header:first-of-type #section-tabs .ant-tabs-extra-content{margin-right:16px}"]})}return n})();var ce=i(8313);let xn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,ce.Y]})}return n})(),In=(()=>{class n{constructor(t){this.route=t,this.feedScope={mode:g.Qt1.Subject,subject:{id:+this.route.snapshot.params.molecularProfileId,entityType:g.V9U.MolecularProfile}}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-events"]],decls:1,vars:2,consts:[[3,"cvcScope","cvcShowFilters"]],template:function(a,r){1&a&&e.nrm(0,"cvc-activity-feed",0),2&a&&e.Y8G("cvcScope",r.feedScope)("cvcShowFilters",!0)},dependencies:[ce.Y],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var Fn=i(7268),$n=i(1912);let bn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,m.f3,v.Ti,_.pc,$n.i3,u.Y3,Fn.G]})}return n})();var Sn=i(4097);let Dn=(()=>{class n{constructor(t){this.route=t,this.flaggable={entityType:g.lD4.MolecularProfile,id:+this.route.snapshot.params.molecularProfileId}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-flags"]],decls:1,vars:1,consts:[[3,"flaggable"]],template:function(a,r){1&a&&e.nrm(0,"cvc-flag-list-and-filter",0),2&a&&e.Y8G("flaggable",r.flaggable)},dependencies:[Sn.b],styles:["[_nghost-%COMP%]{display:block}"]})}return n})();var En=i(6371);let Rn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,En.O]})}return n})();var Vn=i(4055);let Yn=(()=>{class n{constructor(t){this.route=t,this.routeSub=this.route.params.subscribe(a=>{this.subject={id:+a.molecularProfileId,entityType:g.BlQ.MolecularProfile}})}ngOnDestroy(){this.routeSub.unsubscribe()}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-revisions"]],decls:1,vars:1,consts:[[3,"moderated"]],template:function(a,r){1&a&&e.nrm(0,"cvc-revisions-list-and-filter",0),2&a&&e.Y8G("moderated",r.subject)},dependencies:[Vn.B],encapsulation:2})}return n})();var G=i(2142),jn=i(1209),d=i(2e3),R=i(5493),V=i(7054),Y=i(8254),Nn=i(4531),On=i(7660),C=i(7391),F=i(4917),Xn=i(2839),P=i(5699),Ln=i(1448),An=i(7556),k=i(7051),j=i(996),M=i(4696),U=i(7513),B=i(6912),N=i(7086);let wn=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,P.T,u.Y3,m.f3,d.WF,C.kT,v.Ti,M.GB,_.pc,F.i,k.U,B.l,Y.V,G.x,R.G,V.L,G.x,j.o,U.m,N.C]})}return n})();var kn=i(9354),Q=i(3075),se=i(6719),O=i(7855),J=i(6073),W=i(5473);const Un=()=>[8,16],Bn=()=>[8,8];function Qn(n,o){if(1&n&&(e.nrm(0,"i",15),e.nI1(1,"entityColor"),e.j41(2,"span",16),e.EFF(3),e.k0s(),e.j41(4,"span",17),e.EFF(5),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,3,"Variant")),e.R7$(3),e.SpI(" ",t.variant.feature.name," "),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function Jn(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function Wn(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Jn,2,1,"nz-tag",18),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function Hn(n,o){1&n&&(e.j41(0,"span",16),e.EFF(1,"None specified"),e.k0s())}function Kn(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",20),2&n&&e.Y8G("variantType",o.$implicit)}function Zn(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Kn,1,1,"cvc-variant-type-tag",19),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function qn(n,o){1&n&&(e.j41(0,"span",16),e.EFF(1,"None specified"),e.k0s())}function et(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",23),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function nt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",24),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function tt(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",21)(1,"cvc-tag-list"),e.DNE(2,et,2,2,"ng-container",18)(3,nt,3,3,"ng-container",22),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function at(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-ncit-details",25),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ncitDetails",t.variant.ncitDetails)}}function ot(n,o){1&n&&(e.j41(0,"nz-col",6)(1,"nz-card",26),e.nrm(2,"cvc-empty-revisable",27),e.k0s()()),2&n&&e.Y8G("nzSpan",24)}function it(n,o){if(1&n&&(e.j41(0,"nz-card",4),e.DNE(1,Qn,6,5,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",5)(4,"nz-col",6)(5,"nz-row",5)(6,"nz-col",7)(7,"nz-descriptions",8)(8,"nz-descriptions-item",9),e.nrm(9,"cvc-feature-variant-tag",10),e.k0s(),e.j41(10,"nz-descriptions-item",11),e.DNE(11,Wn,3,1,"ng-container",12)(12,Hn,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",13),e.DNE(15,Zn,3,1,"ng-container",12)(16,qn,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(18,tt,4,3,"nz-descriptions-item",14),e.k0s()()()(),e.j41(19,"nz-col",6),e.DNE(20,at,2,1,"ng-container",12)(21,ot,3,1,"ng-template",null,3,e.C5r),e.k0s()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.sdS(22),s=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(18,Un)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(19,Bn)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",s.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",s.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",s.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",s.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",s.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("ngIf",s.variant.ncitId)("ngIfElse",c)}}let pe=(()=>{class n{constructor(){this.displayMps=[]}ngOnInit(){if(void 0===this.variant)throw new Error("Must pass a Variant into the MP Variant Card Component");if(void 0===this.currentMolecularProfileId)throw new Error("Must pass a MP ID into the MP Variant Card Component");if("FactorVariant"!==this.variant.__typename)throw new Error("This card is for FactorVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-factor-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["noNcit",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Factor Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],["nz-typography","","nzType","secondary"],["nz-typography",""],[4,"ngFor","ngForOf"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"],[3,"ncitDetails"],["nzTitle",""],["notification","Not available, please provide an NCIt Code"]],template:function(a,r){1&a&&e.DNE(0,it,23,20,"nz-card",4),2&a&&e.vxM("FactorVariant"==r.variant.__typename?0:-1)},dependencies:[l.MD,l.Sq,l.bT,p.iI,p.Wk,P.T,P.s,u.Y3,u.Dn,m.f3,m.Uq,m.e,d.WF,d.xA,d.gr,C.kT,C.Di,v.Ti,v.cK,M.GB,_.pc,F.i,Q.R,k.U,B.l,Y.V,se.Q,G.x,O.M,R.G,J.h,V.L,j.o,W.z,U.m,N.C,D.j,kn.e],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})(),rt=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,P.T,u.Y3,m.f3,d.WF,C.kT,v.Ti,M.GB,_.pc,F.i,k.U,B.l,Y.V,G.x,R.G,V.L,G.x,j.o,U.m,N.C]})}return n})(),lt=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,_.pc,m.f3,d.WF,v.Ti,C.kT,u.Y3,P.T,An.F,F.i,Nn.C,On.u,G.x,Xn.m,jn.k,R.G,V.L,Y.V,Ln.B,wn,pe,rt]})}return n})();var ct=i(2033),st=i(8199),pt=i(4441),mt=i(6408),ft=i(9062),ut=i(9973),_t=i(7679),me=i(9481);const gt=()=>[8,16],dt=()=>[8,8];function vt(n,o){if(1&n&&(e.nrm(0,"i",23),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function zt(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function ht(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,zt,2,1,"nz-tag",24),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function Ct(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None specified"),e.k0s())}function Pt(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",27),2&n&&e.Y8G("variantType",o.$implicit)}function yt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Pt,1,1,"cvc-variant-type-tag",26),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function Mt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None specified"),e.k0s())}function Tt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-link-tag",28),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("href","https://reg.genome.network/allele/"+t.variant.alleleRegistryId+".html"),e.R7$(),e.SpI(" ",t.variant.alleleRegistryId," ")}}function Gt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None provided"),e.k0s())}function xt(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-link-tag",29),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("href","https://www.ncbi.nlm.nih.gov/clinvar/variation/"+t),e.R7$(),e.SpI(" ",t," ")}}function It(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,xt,3,2,"ng-container",24),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",t.variant.clinvarIds)}}function Ft(n,o){if(1&n&&(e.qex(0),e.DNE(1,It,2,1,"cvc-tag-list",15),e.bVm()),2&n){e.XpG();const t=e.sdS(25),a=e.XpG();e.R7$(),e.Y8G("ngIf","N/A"!==a.variant.clinvarIds[0])("ngIfElse",t)}}function $t(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"N/A"),e.k0s())}function bt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"None provided"),e.k0s())}function St(n,o){if(1&n&&(e.j41(0,"cvc-link-tag",30),e.EFF(1," Variant Report "),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("href",t.variant.openCravatUrl)}}function Dt(n,o){1&n&&(e.j41(0,"span",25),e.EFF(1,"Allele Registry ID required."),e.k0s())}function Et(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",33),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function Rt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",34),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function Vt(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",31)(1,"cvc-tag-list"),e.DNE(2,Et,2,2,"ng-container",24)(3,Rt,3,3,"ng-container",32),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function Yt(n,o){if(1&n&&(e.j41(0,"nz-card",7),e.DNE(1,vt,3,4,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",8)(4,"nz-col",9)(5,"nz-row",8)(6,"nz-col",10)(7,"nz-descriptions",11)(8,"nz-descriptions-item",12),e.nrm(9,"cvc-feature-variant-tag",13),e.k0s(),e.j41(10,"nz-descriptions-item",14),e.DNE(11,ht,3,1,"ng-container",15)(12,Ct,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",16),e.DNE(15,yt,3,1,"ng-container",15)(16,Mt,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(18,"nz-descriptions-item",17),e.DNE(19,Tt,3,2,"ng-container",15)(20,Gt,2,0,"ng-template",null,3,e.C5r),e.k0s(),e.j41(22,"nz-descriptions-item",16),e.DNE(23,Ft,2,2,"ng-container",15)(24,$t,2,0,"ng-template",null,4,e.C5r)(26,bt,2,0,"ng-template",null,5,e.C5r),e.k0s(),e.j41(28,"nz-descriptions-item",18),e.DNE(29,St,2,1,"cvc-link-tag",19)(30,Dt,2,0,"ng-template",null,6,e.C5r),e.k0s(),e.DNE(32,Vt,4,3,"nz-descriptions-item",20),e.k0s()(),e.j41(33,"nz-col",9)(34,"nz-collapse")(35,"nz-collapse-panel",21),e.nrm(36,"cvc-coordinates-card",22),e.k0s()()()()()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.sdS(21),s=e.sdS(27),$=e.sdS(31),f=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(28,gt)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(29,dt)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",f.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",f.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",f.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",f.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",f.variant.alleleRegistryId)("ngIfElse",c),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",f.variant.clinvarIds.length>1?"ClinVar IDs":"ClinVar ID"),e.R7$(),e.Y8G("ngIf",f.variant.clinvarIds.length>0)("ngIfElse",s),e.R7$(5),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",f.variant.openCravatUrl)("ngIfElse",$),e.R7$(3),e.Y8G("ngIf",f.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("displayTitle",!1)("cvcCoordinates",f.variant)}}let jt=(()=>{class n{constructor(){this.displayMps=[]}ngOnInit(){if(void 0===this.variant)throw new Error("Must pass a Variant into the MP Variant Card Component");if(void 0===this.currentMolecularProfileId)throw new Error("Must pass a MP ID into the MP Variant Card Component");if("GeneVariant"!==this.variant.__typename)throw new Error("This card is for GeneVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-gene-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["noAlleleRegistry",""],["clinvarNotApplicable",""],["noClinvarIds",""],["noCravat",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Gene Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Allele Registry ID",3,"nzSpan"],["nzTitle","OpenCRAVAT",3,"nzSpan"],["tooltip","View on OpenCRAVAT",3,"href",4,"ngIf","ngIfElse"],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nzHeader","Representative Variant Coordinates"],[3,"displayTitle","cvcCoordinates"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["tooltip","View on ClinGen Allele Registry",3,"href"],["tooltip","View on ClinVar",3,"href"],["tooltip","View on OpenCRAVAT",3,"href"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"]],template:function(a,r){1&a&&e.DNE(0,Yt,37,30,"nz-card",7),2&a&&e.vxM("GeneVariant"==r.variant.__typename?0:-1)},dependencies:[l.Sq,l.bT,p.Wk,P.s,u.Dn,m.Uq,m.e,d.xA,d.gr,C.Di,v.cK,M.Vz,M.pc,O.M,J.h,_t.a,W.z,me.W,D.j,Q.R],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})();const Nt=()=>[8,16],Ot=()=>[8,8];function Xt(n,o){if(1&n&&(e.nrm(0,"i",16),e.nI1(1,"entityColor"),e.EFF(2)),2&n){const t=e.XpG(2);e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",t.variant.name," ")}}function Lt(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function At(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Lt,2,1,"nz-tag",17),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantAliases)}}function wt(n,o){1&n&&(e.j41(0,"span",18),e.EFF(1,"None specified"),e.k0s())}function kt(n,o){1&n&&e.nrm(0,"cvc-variant-type-tag",20),2&n&&e.Y8G("variantType",o.$implicit)}function Ut(n,o){if(1&n&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,kt,1,1,"cvc-variant-type-tag",19),e.k0s(),e.bVm()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",t.variant.variantTypes)}}function Bt(n,o){1&n&&(e.j41(0,"span",18),e.EFF(1,"None provided"),e.k0s())}function Qt(n,o){if(1&n&&(e.qex(0),e.nrm(1,"cvc-molecular-profile-tag",23),e.bVm()),2&n){const t=o.$implicit;e.R7$(),e.Y8G("molecularProfile",t)("truncateLongName",!0)}}function Jt(n,o){if(1&n&&(e.qex(0),e.j41(1,"a",24),e.EFF(2),e.k0s(),e.bVm()),2&n){const t=e.XpG(3);e.R7$(),e.Mz_("routerLink","/variants/",t.variant.id,"/summary"),e.R7$(),e.SpI(" + view ",t.variant.molecularProfiles.totalCount-t.displayMps.length," more ")}}function Wt(n,o){if(1&n&&(e.j41(0,"nz-descriptions-item",21)(1,"cvc-tag-list"),e.DNE(2,Qt,2,2,"ng-container",17)(3,Jt,3,3,"ng-container",22),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("nzSpan",4),e.R7$(2),e.Y8G("ngForOf",t.displayMps),e.R7$(),e.Y8G("ngIf",t.variant.molecularProfiles.totalCount>t.displayMps.length+1)}}function Ht(n,o){if(1&n&&(e.j41(0,"nz-card",3),e.DNE(1,Xt,3,4,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",4)(4,"nz-col",5)(5,"nz-row",4)(6,"nz-col",6)(7,"nz-descriptions",7)(8,"nz-descriptions-item",8),e.nrm(9,"cvc-feature-variant-tag",9),e.k0s(),e.j41(10,"nz-descriptions-item",10),e.DNE(11,At,3,1,"ng-container",11)(12,wt,2,0,"ng-template",null,1,e.C5r),e.k0s(),e.j41(14,"nz-descriptions-item",12),e.DNE(15,Ut,3,1,"ng-container",11)(16,Bt,2,0,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(18,Wt,4,3,"nz-descriptions-item",13),e.k0s()(),e.j41(19,"nz-col",5)(20,"nz-collapse")(21,"nz-collapse-panel",14),e.nrm(22,"cvc-coordinates-card",15),e.k0s()()()()()()()),2&n){const t=e.sdS(2),a=e.sdS(13),r=e.sdS(17),c=e.XpG();e.Y8G("nzTitle",t),e.R7$(3),e.Y8G("nzGutter",e.lJ4(18,Nt)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(19,Ot)),e.R7$(2),e.Y8G("nzColumn",4),e.R7$(),e.Y8G("nzSpan",4),e.R7$(),e.Y8G("variant",c.variant),e.R7$(),e.Y8G("nzSpan",2),e.R7$(),e.Y8G("ngIf",c.variant.variantAliases.length>0)("ngIfElse",a),e.R7$(3),e.Y8G("nzSpan",2)("nzTitle",c.variant.variantTypes.length>1?"Variant Types":"Variant Type"),e.R7$(),e.Y8G("ngIf",c.variant.variantTypes.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",c.displayMps.length>0),e.R7$(),e.Y8G("nzSpan",24),e.R7$(3),e.Y8G("displayTitle",!1)("cvcCoordinates",c.variant)}}let Kt=(()=>{class n{constructor(){this.displayMps=[]}ngOnInit(){if(void 0===this.variant)throw new Error("Must pass a Variant into the MP Variant Card Component");if(void 0===this.currentMolecularProfileId)throw new Error("Must pass a MP ID into the MP Variant Card Component");if("FusionVariant"!==this.variant.__typename)throw new Error("This card is for FusionVariant variant types only.");this.displayMps=this.variant.molecularProfiles.nodes.filter(t=>t.id!=this.currentMolecularProfileId)}static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-mp-fusion-variant-card"]],inputs:{variant:"variant",currentMolecularProfileId:"currentMolecularProfileId"},decls:1,vars:1,consts:[["cardTitle",""],["noAliases",""],["noTypes",""],["nzType","inner","nzSize","small",3,"nzTitle"],[3,"nzGutter"],[3,"nzSpan"],["nzSpan","24"],["nzLayout","horizontal","nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Fusion Variant",3,"nzSpan"],[3,"variant"],["nzTitle","Aliases",3,"nzSpan"],[4,"ngIf","ngIfElse"],[3,"nzSpan","nzTitle"],["nzTitle","Other Molecular Profiles",3,"nzSpan",4,"ngIf"],["nzHeader","Representative Variant Coordinates"],[3,"displayTitle","cvcCoordinates"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"variantType",4,"ngFor","ngForOf"],[3,"variantType"],["nzTitle","Other Molecular Profiles",3,"nzSpan"],[4,"ngIf"],[3,"molecularProfile","truncateLongName"],[3,"routerLink"]],template:function(a,r){1&a&&e.DNE(0,Ht,23,20,"nz-card",3),2&a&&e.vxM("FusionVariant"==r.variant.__typename?0:-1)},dependencies:[l.Sq,l.bT,p.Wk,P.s,u.Dn,m.Uq,m.e,d.xA,d.gr,C.Di,v.cK,M.Vz,M.pc,O.M,J.h,W.z,me.W,D.j,Q.R],styles:[".card-title[_ngcontent-%COMP%]{font-size:120%}"]})}return n})();var Zt=i(8139);const qt=()=>[8,16],fe=()=>[8,8];function ea(n,o){if(1&n&&(e.EFF(0," Created "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.complexMolecularProfileCreationActivity.createdAt),") ")}}function na(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,ea,4,3,"ng-template",null,3,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.complexMolecularProfileCreationActivity.user)}}function ta(n,o){if(1&n&&(e.EFF(0," Deprecated "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.complexMolecularProfileDeprecationActivity.createdAt),") ")}}function aa(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,ta,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.complexMolecularProfileDeprecationActivity.user)}}function oa(n,o){if(1&n&&(e.EFF(0," Deprecated "),e.j41(1,"span",25),e.EFF(2),e.nI1(3,"timeAgo"),e.k0s()),2&n){const t=e.XpG(2).ngIf;e.R7$(2),e.SpI(" (",e.bMT(3,1,t.variantDeprecationActivity.createdAt),") ")}}function ia(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-descriptions-item",23),e.EFF(2," by "),e.nrm(3,"cvc-user-tag",24),e.k0s(),e.DNE(4,oa,4,3,"ng-template",null,4,e.C5r),e.bVm()),2&n){const t=e.sdS(5),a=e.XpG().ngIf;e.R7$(),e.Y8G("nzTitle",t),e.R7$(2),e.Y8G("user",a.variantDeprecationActivity.user)}}function ra(n,o){if(1&n&&(e.j41(0,"p",26),e.EFF(1),e.k0s()),2&n){const t=e.XpG().ngIf;e.Y8G("nzEllipsisRows",14),e.R7$(),e.SpI(" ",t.description," ")}}function la(n,o){1&n&&e.nrm(0,"cvc-empty-revisable",27)}function ca(n,o){1&n&&e.nrm(0,"cvc-source-tag",29),2&n&&e.Y8G("source",o.$implicit)}function sa(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,ca,1,1,"cvc-source-tag",28),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.sources)}}function pa(n,o){if(1&n&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&n){const t=o.$implicit;e.R7$(),e.JRh(t)}}function ma(n,o){if(1&n&&(e.j41(0,"cvc-tag-list"),e.DNE(1,pa,2,1,"nz-tag",30),e.k0s()),2&n){const t=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",t.molecularProfileAliases)}}function fa(n,o){if(1&n&&e.nrm(0,"cvc-mp-gene-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function ua(n,o){if(1&n&&e.nrm(0,"cvc-mp-fusion-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function _a(n,o){if(1&n&&e.nrm(0,"cvc-mp-factor-variant-card",31),2&n){const t=e.XpG().$implicit,a=e.XpG().ngIf;e.Y8G("variant",t)("currentMolecularProfileId",a.id)}}function ga(n,o){if(1&n&&(e.j41(0,"nz-col",18),e.DNE(1,fa,1,2,"cvc-mp-gene-variant-card",31)(2,ua,1,2,"cvc-mp-fusion-variant-card",31)(3,_a,1,2,"cvc-mp-factor-variant-card",31),e.k0s()),2&n){let t;const a=o.$implicit;e.R7$(),e.vxM("GeneVariant"===(t=a.__typename)?1:"FusionVariant"===t?2:"FactorVariant"===t?3:-1)}}function da(n,o){if(1&n&&(e.qex(0),e.j41(1,"nz-row",6)(2,"nz-col",7)(3,"nz-row",6)(4,"nz-col",7)(5,"nz-descriptions",8)(6,"nz-descriptions-item",9),e.nrm(7,"cvc-mp-tag-name",10),e.k0s(),e.DNE(8,na,6,2,"ng-container",5)(9,aa,6,2,"ng-container",5)(10,ia,6,2,"ng-container",5),e.k0s()(),e.j41(11,"nz-col",7)(12,"nz-descriptions",8)(13,"nz-descriptions-item",11),e.DNE(14,ra,2,2,"p",12)(15,la,1,0,"ng-template",null,2,e.C5r),e.k0s(),e.j41(17,"nz-descriptions-item",13),e.DNE(18,sa,2,1,"cvc-tag-list",14),e.k0s(),e.j41(19,"nz-descriptions-item",15)(20,"span",16),e.EFF(21),e.nI1(22,"number"),e.k0s()(),e.j41(23,"nz-descriptions-item",17),e.DNE(24,ma,2,1,"cvc-tag-list",14),e.k0s()()()()(),e.j41(25,"nz-col",18)(26,"nz-card",19)(27,"nz-row",6),e.DNE(28,ga,4,1,"nz-col",20),e.k0s()()(),e.j41(29,"nz-col",18),e.nrm(30,"cvc-evidence-table",21),e.k0s(),e.j41(31,"nz-col",18),e.nrm(32,"cvc-assertions-table",22),e.k0s()(),e.bVm()),2&n){const t=o.ngIf,a=e.sdS(16);e.XpG();const r=e.sdS(5);e.R7$(),e.Y8G("nzGutter",e.lJ4(27,qt)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzGutter",e.lJ4(28,fe)),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",3),e.R7$(2),e.Y8G("nameSegments",t.parsedName),e.R7$(),e.Y8G("ngIf",t.complexMolecularProfileCreationActivity),e.R7$(),e.Y8G("ngIf",t.complexMolecularProfileDeprecationActivity),e.R7$(),e.Y8G("ngIf",t.variantDeprecationActivity),e.R7$(),e.Y8G("nzSpan",24),e.R7$(),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("ngIf",t.description)("ngIfElse",a),e.R7$(4),e.Y8G("ngIf",t.sources.length>0)("ngIfElse",r),e.R7$(3),e.JRh(e.bMT(22,25,t.molecularProfileScore)),e.R7$(3),e.Y8G("ngIf",t.molecularProfileAliases.length>0)("ngIfElse",r),e.R7$(3),e.Y8G("nzGutter",e.lJ4(29,fe)),e.R7$(),e.Y8G("ngForOf",t.variants),e.R7$(2),e.Y8G("molecularProfileId",t.id)("displayMolecularProfile",!1),e.R7$(2),e.Mz_("cvcTitle","",t.name," Assertions"),e.Y8G("molecularProfileId",t.id)}}function va(n,o){1&n&&e.nrm(0,"cvc-empty-value",32)}function za(n,o){1&n&&e.nrm(0,"cvc-empty-value",33)}const ha=[{path:"",component:Gn,data:{breadcrumb:"DISPLAYNAME"},children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:(()=>{class n{constructor(t,a){var r;if(this.gql=t,this.route=a,null==(r=this.molecularProfileId?this.molecularProfileId:+this.route.snapshot.params.molecularProfileId))throw new Error("Must pass in a molecular profile ID as an input or via the route.");this.queryRef=this.gql.watch({mpId:r});let c=this.queryRef.valueChanges;this.loading$=c.pipe((0,x.E)("loading"),(0,K.Z)(!0)),this.molecularProfile$=c.pipe((0,x.E)("data","molecularProfile")),this.subscribable={entityType:g.V9U.MolecularProfile,id:r}}static#e=this.\u0275fac=function(a){return new(a||n)(e.rXU(g.SPr),e.rXU(p.nX))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["cvc-molecular-profiles-summary"]],inputs:{molecularProfileId:"molecularProfileId"},decls:6,vars:3,consts:[["valueNotApplicable",""],["valueUnspecified",""],["noDescription",""],["createdTitle",""],["deprecatedTitle",""],[4,"ngIf"],[3,"nzGutter"],[3,"nzSpan"],["nzSize","small","nzBordered","true","nzLayout","vertical",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments"],["nzTitle","Description"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows",4,"ngIf","ngIfElse"],["nzTitle","Sources"],[4,"ngIf","ngIfElse"],["nzTitle","Molecular Profile Score"],["nz-typography",""],["nzTitle","Aliases"],["nzSpan","24"],["nzTitle","MP Variants"],["nzSpan","24",4,"ngFor","ngForOf"],["cvcHeight","300px","cvcTitle","Evidence",3,"molecularProfileId","displayMolecularProfile"],["cvcHeight","200px",3,"molecularProfileId","cvcTitle"],[3,"nzTitle"],[3,"user"],["nz-typography","","nzType","secondary"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],["notification","No description provided"],[3,"source",4,"ngFor","ngForOf"],[3,"source"],[4,"ngFor","ngForOf"],[3,"variant","currentMolecularProfileId"],["cvcEmptyCategory","not-applicable"],["cvcEmptyCategory","unspecified"]],template:function(a,r){1&a&&(e.DNE(0,da,33,30,"ng-container",5),e.nI1(1,"ngrxPush"),e.DNE(2,va,1,0,"ng-template",null,0,e.C5r)(4,za,1,0,"ng-template",null,1,e.C5r)),2&a&&e.Y8G("ngIf",e.bMT(1,1,r.molecularProfile$))},dependencies:[l.Sq,l.bT,m.Uq,m.e,d.xA,d.gr,v.cK,C.Di,P.s,ct.o,st.N,pt.z,O.M,mt.r,ft.D,se.Q,ut.G,jt,pe,Kt,l.QX,I.L9,Zt.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}[_nghost-%COMP%]{display:block}nz-space[_ngcontent-%COMP%], nz-space-item[_ngcontent-%COMP%]{width:100%}"]})}return n})(),data:{breadcrumb:"Summary"}},{path:"comments",component:Ce,data:{breadcrumb:"Comments"}},{path:"revisions",component:Yn,data:{breadcrumb:"Revisions"}},{path:"flags",component:Dn,data:{breadcrumb:"Flags"}},{path:"events",component:In,data:{breadcrumb:"Events"}}]}];let Ca=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[p.iI.forChild(ha),lt,Rn,ze,bn,xn,p.iI]})}return n})();var Pa=i(7169),ya=i(4308),Ma=i(3842),Ta=i(8492),Ga=i(8692);let xa=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,p.iI,y.YN,y.X1,E.PQ,S.$,m.f3,h.Zw,re.V,v.Ti,_.pc,C.kT,le.Qt,A.DH,Ta.M,Ma.k,Ga.j,ya.I,j.o]})}return n})(),Ia=(()=>{class n{static#e=this.\u0275fac=function(a){return new(a||n)};static#n=this.\u0275mod=e.$C({type:n});static#t=this.\u0275inj=e.G2t({imports:[l.MD,Ca,h.Zw,u.Y3,T.ZJ,_.pc,m.f3,S.$,ae.MC,ge.m,_e.W,z.Y,X.C,de.V,N.C,F.i,Pa.W,xa]})}return n})()}}]); \ No newline at end of file diff --git a/server/public/assets/.sprockets-manifest-c773e3f101e504cce6224b6711ee25b0.json b/server/public/assets/.sprockets-manifest-a78b9768a871ebd5045b3ed8511b014d.json similarity index 83% rename from server/public/assets/.sprockets-manifest-c773e3f101e504cce6224b6711ee25b0.json rename to server/public/assets/.sprockets-manifest-a78b9768a871ebd5045b3ed8511b014d.json index 0b297331d..d892a6095 100644 --- a/server/public/assets/.sprockets-manifest-c773e3f101e504cce6224b6711ee25b0.json +++ b/server/public/assets/.sprockets-manifest-a78b9768a871ebd5045b3ed8511b014d.json @@ -1 +1 @@ -{"files":{"trestle/admin-9dbcbe99af6787d43c1cdd66bdca75b3d118fa0c7cffbcb408a07cb04cd4eb38.css":{"logical_path":"trestle/admin.css","mtime":"2024-09-14T15:25:16+00:00","size":321726,"digest":"593a45db2025f0f750d47e94fedb5272bf89ff06a0641f51f8709032b20e86ee","integrity":"sha256-WTpF2yAl8PdQ1H6U/ttScr+J/wagZB9R+HCQMrIOhu4="},"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2024-09-14T15:25:16+00:00","size":34034,"digest":"79d088064beb3826054fb88165416235897a856ca952fca1498b1c59b16aaa48","integrity":"sha256-edCIBkvrOCYFT7iBZUFiNYl6hWypUvyhSYscWbFqqkg="},"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2024-09-14T15:25:16+00:00","size":13224,"digest":"e42a88444448ac3d60549cc7c1ff2c8a9cac721034c073d80a14a44e79730cca","integrity":"sha256-5CqIRERIrD1gVJzHwf8sipyschA0wHPYChSkTnlzDMo="},"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2024-09-14T15:25:16+00:00","size":16276,"digest":"cb9e9e693192413cde2b1f21c1dc1d44b6fe7b27cc2b458e8b359d18f9ff8f4e","integrity":"sha256-y56eaTGSQTzeKx8hwdwdRLb+eyfMK0WOizWdGPn/j04="},"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2024-09-14T15:25:16+00:00","size":33736,"digest":"e8711bbb871afd8e9dea60e16d30f00c7e4837bbc9807065017475b849fa2313","integrity":"sha256-6HEbu4ca/Y6d6mDhbTDwDH5IN7vJgHBlAXR1uEn6IxM="},"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2024-09-14T15:25:16+00:00","size":144714,"digest":"be0a084962d8066884f7fe9bd27ec16e51f5a93b72a502c92c5a24dc87eb2ebc","integrity":"sha256-vgoISWLYBmiE9/6b0n7BblH1qTtypQLJLFok3IfrLrw="},"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2024-09-14T15:25:16+00:00","size":203030,"digest":"373c04fd2418f5c77eea49d514731058f1907a94ff3b4e5d7c3e5767e8b53d8b","integrity":"sha256-NzwE/SQY9cd+6knVFHMQWPGQepT/O05dfD5XZ+i1PYs="},"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2024-09-14T15:25:16+00:00","size":78268,"digest":"9834b82ad26e2a37583d22676a12dd2eb0fe7c80356a2114d0db1aa8b3899537","integrity":"sha256-mDS4KtJuKjdYPSJnahLdLrD+fIA1aiEU0NsaqLOJlTc="},"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2024-09-14T15:25:16+00:00","size":101648,"digest":"3f6d3488cf65374f6f676c315340b0ac2be832bd55240c809448e36ef9b96326","integrity":"sha256-P200iM9lN09vZ2wxU0CwrCvoMr1VJAyAlEjjbvm5YyY="},"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2024-09-14T15:25:16+00:00","size":202744,"digest":"af6397503fcefbd613976c21ad5c1e37298c18bbe07d096db03ccd3af6e05ba8","integrity":"sha256-r2OXUD/O+9YTl2whrVweNymMGLvgfQltsDzNOvbgW6g="},"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2024-09-14T15:25:16+00:00","size":918991,"digest":"9674eb1bd5504717903837093a67668ea88f2ed006d91367d0d4b7aa1f9211fc","integrity":"sha256-lnTrG9VQRxeQODcJOmdmjqiPLtAG2RNn0NS3qh+SEfw="},"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2024-09-14T15:25:16+00:00","size":134294,"digest":"e4299464e7b012968eed63ac2db1c9509f56bca409ef9f71f2926a8c3c80b2a9","integrity":"sha256-5CmUZOewEpaO7WOsLbHJUJ9WvKQJ759x8pJqjDyAsqk="},"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2024-09-14T15:25:16+00:00","size":76736,"digest":"8ea8791754915a898a3100e63e32978a6d1763be6df8e73a39d3a90d691cdeef","integrity":"sha256-jqh5F1SRWomKMQDmPjKXim0XY75t+Oc6OdOpDWkc3u8="},"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2024-09-14T15:25:16+00:00","size":89988,"digest":"f9217f66874b0c01cd8c10b6a295dbc4f609acb6f5adc41c37da46641b57eb02","integrity":"sha256-+SF/ZodLDAHNjBC2opXbxPYJrLb1rcQcN9pGZBtX6wI="},"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2024-09-14T15:25:16+00:00","size":133988,"digest":"cda59d6efffa685830fd95b55f64ae9cb51279cd34b2410b69f84c7ec30157d9","integrity":"sha256-zaWdbv/6aFgw/ZW1X2SunLUSec00skELafhMfsMBV9k="},"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2024-09-14T15:25:16+00:00","size":747927,"digest":"a3b9817780214caf01e8aec20bcdc2305a1ff34a15fae81ecd0923df9cd5cd0a","integrity":"sha256-o7mBd4AhTK8B6K7CC83CMFof80oV+ugezQkj35zVzQo="},"trestle/admin-8c4c927b4f8bcc53b427b68a96e56feaae8b0855dc28a001fdeb8ad992b80c6a.js":{"logical_path":"trestle/admin.js","mtime":"2024-09-14T15:25:16+00:00","size":380463,"digest":"b27b2750122eebd024d8ab7a04cede4dea88ca8d5ac1566078d91682aa4fcb80","integrity":"sha256-snsnUBIu69Ak2Kt6BM7eTeqIyo1awVZgeNkWgqpPy4A="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2024-09-14T15:25:16+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2024-09-14T15:25:16+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js":{"logical_path":"manifest.js","mtime":"2024-09-14T15:25:16+00:00","size":2,"digest":"75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070","integrity":"sha256-daEdpEyAJIa8b2VkCqSKcw8PaExcB6Qro80XNes/sHA="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2024-09-14T15:25:16+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"trestle/theme-8a6616f99ee353db4ae700d93d5c0071909e407698adb987dacbcb6894b81398.css":{"logical_path":"trestle/theme.css","mtime":"2024-09-14T15:25:16+00:00","size":18638,"digest":"e49164b7efa8df4c7809c539f2369aa3cd7f0bc6998f297699c5b3876013cb64","integrity":"sha256-5JFkt++o30x4CcU58jaao81/C8aZjyl2mcWzh2ATy2Q="},"activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js":{"logical_path":"activestorage.js","mtime":"2024-09-14T15:25:16+00:00","size":29379,"digest":"7dbadea816242c6d03cc2f59c58398ab55bb9a70ee859fa962ad4c7ad4c48594","integrity":"sha256-fbreqBYkLG0DzC9ZxYOYq1W7mnDuhZ+pYq1MetTEhZQ="},"activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js":{"logical_path":"activestorage.esm.js","mtime":"2024-09-14T15:25:16+00:00","size":27247,"digest":"b2d9aa45888a540d7e6969e484dbdb0a0a501ff56542ce737db6599b311e3385","integrity":"sha256-stmqRYiKVA1+aWnkhNvbCgpQH/VlQs5zfbZZmzEeM4U="}},"assets":{"trestle/admin.css":"trestle/admin-9dbcbe99af6787d43c1cdd66bdca75b3d118fa0c7cffbcb408a07cb04cd4eb38.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg","trestle/admin.js":"trestle/admin-8c4c927b4f8bcc53b427b68a96e56feaae8b0855dc28a001fdeb8ad992b80c6a.js","trestle/custom.css":"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css","trestle/search.css":"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css","manifest.js":"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js","application.css":"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css","trestle/theme.css":"trestle/theme-8a6616f99ee353db4ae700d93d5c0071909e407698adb987dacbcb6894b81398.css","activestorage.js":"activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js","activestorage.esm.js":"activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js"}} \ No newline at end of file +{"files":{"trestle/admin-9dbcbe99af6787d43c1cdd66bdca75b3d118fa0c7cffbcb408a07cb04cd4eb38.css":{"logical_path":"trestle/admin.css","mtime":"2024-09-16T22:43:06+00:00","size":321726,"digest":"593a45db2025f0f750d47e94fedb5272bf89ff06a0641f51f8709032b20e86ee","integrity":"sha256-WTpF2yAl8PdQ1H6U/ttScr+J/wagZB9R+HCQMrIOhu4="},"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot":{"logical_path":"trestle/fa-regular-400.eot","mtime":"2024-09-16T22:43:06+00:00","size":34034,"digest":"79d088064beb3826054fb88165416235897a856ca952fca1498b1c59b16aaa48","integrity":"sha256-edCIBkvrOCYFT7iBZUFiNYl6hWypUvyhSYscWbFqqkg="},"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2":{"logical_path":"trestle/fa-regular-400.woff2","mtime":"2024-09-16T22:43:06+00:00","size":13224,"digest":"e42a88444448ac3d60549cc7c1ff2c8a9cac721034c073d80a14a44e79730cca","integrity":"sha256-5CqIRERIrD1gVJzHwf8sipyschA0wHPYChSkTnlzDMo="},"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff":{"logical_path":"trestle/fa-regular-400.woff","mtime":"2024-09-16T22:43:06+00:00","size":16276,"digest":"cb9e9e693192413cde2b1f21c1dc1d44b6fe7b27cc2b458e8b359d18f9ff8f4e","integrity":"sha256-y56eaTGSQTzeKx8hwdwdRLb+eyfMK0WOizWdGPn/j04="},"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf":{"logical_path":"trestle/fa-regular-400.ttf","mtime":"2024-09-16T22:43:06+00:00","size":33736,"digest":"e8711bbb871afd8e9dea60e16d30f00c7e4837bbc9807065017475b849fa2313","integrity":"sha256-6HEbu4ca/Y6d6mDhbTDwDH5IN7vJgHBlAXR1uEn6IxM="},"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg":{"logical_path":"trestle/fa-regular-400.svg","mtime":"2024-09-16T22:43:06+00:00","size":144714,"digest":"be0a084962d8066884f7fe9bd27ec16e51f5a93b72a502c92c5a24dc87eb2ebc","integrity":"sha256-vgoISWLYBmiE9/6b0n7BblH1qTtypQLJLFok3IfrLrw="},"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot":{"logical_path":"trestle/fa-solid-900.eot","mtime":"2024-09-16T22:43:06+00:00","size":203030,"digest":"373c04fd2418f5c77eea49d514731058f1907a94ff3b4e5d7c3e5767e8b53d8b","integrity":"sha256-NzwE/SQY9cd+6knVFHMQWPGQepT/O05dfD5XZ+i1PYs="},"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2":{"logical_path":"trestle/fa-solid-900.woff2","mtime":"2024-09-16T22:43:06+00:00","size":78268,"digest":"9834b82ad26e2a37583d22676a12dd2eb0fe7c80356a2114d0db1aa8b3899537","integrity":"sha256-mDS4KtJuKjdYPSJnahLdLrD+fIA1aiEU0NsaqLOJlTc="},"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff":{"logical_path":"trestle/fa-solid-900.woff","mtime":"2024-09-16T22:43:06+00:00","size":101648,"digest":"3f6d3488cf65374f6f676c315340b0ac2be832bd55240c809448e36ef9b96326","integrity":"sha256-P200iM9lN09vZ2wxU0CwrCvoMr1VJAyAlEjjbvm5YyY="},"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf":{"logical_path":"trestle/fa-solid-900.ttf","mtime":"2024-09-16T22:43:06+00:00","size":202744,"digest":"af6397503fcefbd613976c21ad5c1e37298c18bbe07d096db03ccd3af6e05ba8","integrity":"sha256-r2OXUD/O+9YTl2whrVweNymMGLvgfQltsDzNOvbgW6g="},"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg":{"logical_path":"trestle/fa-solid-900.svg","mtime":"2024-09-16T22:43:06+00:00","size":918991,"digest":"9674eb1bd5504717903837093a67668ea88f2ed006d91367d0d4b7aa1f9211fc","integrity":"sha256-lnTrG9VQRxeQODcJOmdmjqiPLtAG2RNn0NS3qh+SEfw="},"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot":{"logical_path":"trestle/fa-brands-400.eot","mtime":"2024-09-16T22:43:06+00:00","size":134294,"digest":"e4299464e7b012968eed63ac2db1c9509f56bca409ef9f71f2926a8c3c80b2a9","integrity":"sha256-5CmUZOewEpaO7WOsLbHJUJ9WvKQJ759x8pJqjDyAsqk="},"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2":{"logical_path":"trestle/fa-brands-400.woff2","mtime":"2024-09-16T22:43:06+00:00","size":76736,"digest":"8ea8791754915a898a3100e63e32978a6d1763be6df8e73a39d3a90d691cdeef","integrity":"sha256-jqh5F1SRWomKMQDmPjKXim0XY75t+Oc6OdOpDWkc3u8="},"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff":{"logical_path":"trestle/fa-brands-400.woff","mtime":"2024-09-16T22:43:06+00:00","size":89988,"digest":"f9217f66874b0c01cd8c10b6a295dbc4f609acb6f5adc41c37da46641b57eb02","integrity":"sha256-+SF/ZodLDAHNjBC2opXbxPYJrLb1rcQcN9pGZBtX6wI="},"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf":{"logical_path":"trestle/fa-brands-400.ttf","mtime":"2024-09-16T22:43:06+00:00","size":133988,"digest":"cda59d6efffa685830fd95b55f64ae9cb51279cd34b2410b69f84c7ec30157d9","integrity":"sha256-zaWdbv/6aFgw/ZW1X2SunLUSec00skELafhMfsMBV9k="},"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg":{"logical_path":"trestle/fa-brands-400.svg","mtime":"2024-09-16T22:43:06+00:00","size":747927,"digest":"a3b9817780214caf01e8aec20bcdc2305a1ff34a15fae81ecd0923df9cd5cd0a","integrity":"sha256-o7mBd4AhTK8B6K7CC83CMFof80oV+ugezQkj35zVzQo="},"trestle/admin-8c4c927b4f8bcc53b427b68a96e56feaae8b0855dc28a001fdeb8ad992b80c6a.js":{"logical_path":"trestle/admin.js","mtime":"2024-09-16T22:43:06+00:00","size":380463,"digest":"b27b2750122eebd024d8ab7a04cede4dea88ca8d5ac1566078d91682aa4fcb80","integrity":"sha256-snsnUBIu69Ak2Kt6BM7eTeqIyo1awVZgeNkWgqpPy4A="},"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css":{"logical_path":"trestle/custom.css","mtime":"2024-09-16T22:43:06+00:00","size":0,"digest":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","integrity":"sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="},"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css":{"logical_path":"trestle/search.css","mtime":"2024-09-16T22:43:06+00:00","size":530,"digest":"5fd53643dc178d1a9bc0a7508aa4ea2b17368d1b90ce9ca80aff5880a7c6a2e8","integrity":"sha256-X9U2Q9wXjRqbwKdQiqTqKxc2jRuQzpyoCv9YgKfGoug="},"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js":{"logical_path":"manifest.js","mtime":"2024-09-16T22:43:06+00:00","size":2,"digest":"75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070","integrity":"sha256-daEdpEyAJIa8b2VkCqSKcw8PaExcB6Qro80XNes/sHA="},"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css":{"logical_path":"application.css","mtime":"2024-09-16T22:43:06+00:00","size":675,"digest":"4998ce12ecefa6ba42de36e4beac458527529608f8cf0fe6c97acd87850045e4","integrity":"sha256-SZjOEuzvprpC3jbkvqxFhSdSlgj4zw/myXrNh4UAReQ="},"trestle/theme-8a6616f99ee353db4ae700d93d5c0071909e407698adb987dacbcb6894b81398.css":{"logical_path":"trestle/theme.css","mtime":"2024-09-16T22:43:06+00:00","size":18638,"digest":"e49164b7efa8df4c7809c539f2369aa3cd7f0bc6998f297699c5b3876013cb64","integrity":"sha256-5JFkt++o30x4CcU58jaao81/C8aZjyl2mcWzh2ATy2Q="},"activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js":{"logical_path":"activestorage.js","mtime":"2024-09-16T22:43:06+00:00","size":29379,"digest":"7dbadea816242c6d03cc2f59c58398ab55bb9a70ee859fa962ad4c7ad4c48594","integrity":"sha256-fbreqBYkLG0DzC9ZxYOYq1W7mnDuhZ+pYq1MetTEhZQ="},"activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js":{"logical_path":"activestorage.esm.js","mtime":"2024-09-16T22:43:06+00:00","size":27247,"digest":"b2d9aa45888a540d7e6969e484dbdb0a0a501ff56542ce737db6599b311e3385","integrity":"sha256-stmqRYiKVA1+aWnkhNvbCgpQH/VlQs5zfbZZmzEeM4U="}},"assets":{"trestle/admin.css":"trestle/admin-9dbcbe99af6787d43c1cdd66bdca75b3d118fa0c7cffbcb408a07cb04cd4eb38.css","trestle/fa-regular-400.eot":"trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot","trestle/fa-regular-400.woff2":"trestle/fa-regular-400-6cfa156c0f937f0ce08c02e342067be2f4ba4db29abba244f90c27a223f96acc.woff2","trestle/fa-regular-400.woff":"trestle/fa-regular-400-5cc917c41d445fd002c151f518d442eff06969dd30c4d155b9ec3693f74677df.woff","trestle/fa-regular-400.ttf":"trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf","trestle/fa-regular-400.svg":"trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg","trestle/fa-solid-900.eot":"trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot","trestle/fa-solid-900.woff2":"trestle/fa-solid-900-3700f19f26d7519a6dad2354a996452064156d978bc0bcfc6f74555e6a881bf6.woff2","trestle/fa-solid-900.woff":"trestle/fa-solid-900-7be9c1dc2418c499534a48ee49c2d27f4fef5a5aee4f30f75b4c9ae2e6a9c6da.woff","trestle/fa-solid-900.ttf":"trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf","trestle/fa-solid-900.svg":"trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg","trestle/fa-brands-400.eot":"trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot","trestle/fa-brands-400.woff2":"trestle/fa-brands-400-12a387beb2f100bb320b09c518af672c7aadac8641901823571385403268ec18.woff2","trestle/fa-brands-400.woff":"trestle/fa-brands-400-7424d5bc8c3fa6f7e7962c5512305c907cf16c0d89c09468df2c591e1d2f82a7.woff","trestle/fa-brands-400.ttf":"trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf","trestle/fa-brands-400.svg":"trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg","trestle/admin.js":"trestle/admin-8c4c927b4f8bcc53b427b68a96e56feaae8b0855dc28a001fdeb8ad992b80c6a.js","trestle/custom.css":"trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css","trestle/search.css":"trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css","manifest.js":"manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js","application.css":"application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css","trestle/theme.css":"trestle/theme-8a6616f99ee353db4ae700d93d5c0071909e407698adb987dacbcb6894b81398.css","activestorage.js":"activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js","activestorage.esm.js":"activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js"}} \ No newline at end of file diff --git a/server/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz b/server/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz index 7e2cc9e35..620677519 100644 Binary files a/server/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz and b/server/public/assets/activestorage-503a4fe23aabfbcb752dad255f01835904e6961d5f20d1de13987a691c27d9cd.js.gz differ diff --git a/server/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz b/server/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz index 48296fdcf..f2c63d5ed 100644 Binary files a/server/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz and b/server/public/assets/activestorage.esm-b3f7f0a5ef90530b509c5e681c4b3ef5d5046851e5b70d57fdb45e32b039c883.js.gz differ diff --git a/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz b/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz index ab43924ce..0b266077e 100644 Binary files a/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz and b/server/public/assets/application-b324c44f04a0d0da658824105489a2676d49df561c3d06723770321fd441977c.css.gz differ diff --git a/server/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz b/server/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz index 19445d537..15718622f 100644 Binary files a/server/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz and b/server/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz differ diff --git a/server/public/assets/trestle/admin-8c4c927b4f8bcc53b427b68a96e56feaae8b0855dc28a001fdeb8ad992b80c6a.js.gz b/server/public/assets/trestle/admin-8c4c927b4f8bcc53b427b68a96e56feaae8b0855dc28a001fdeb8ad992b80c6a.js.gz index 97837ba89..ea66182cd 100644 Binary files a/server/public/assets/trestle/admin-8c4c927b4f8bcc53b427b68a96e56feaae8b0855dc28a001fdeb8ad992b80c6a.js.gz and b/server/public/assets/trestle/admin-8c4c927b4f8bcc53b427b68a96e56feaae8b0855dc28a001fdeb8ad992b80c6a.js.gz differ diff --git a/server/public/assets/trestle/admin-9dbcbe99af6787d43c1cdd66bdca75b3d118fa0c7cffbcb408a07cb04cd4eb38.css.gz b/server/public/assets/trestle/admin-9dbcbe99af6787d43c1cdd66bdca75b3d118fa0c7cffbcb408a07cb04cd4eb38.css.gz index 56aab33c8..ffcd31e26 100644 Binary files a/server/public/assets/trestle/admin-9dbcbe99af6787d43c1cdd66bdca75b3d118fa0c7cffbcb408a07cb04cd4eb38.css.gz and b/server/public/assets/trestle/admin-9dbcbe99af6787d43c1cdd66bdca75b3d118fa0c7cffbcb408a07cb04cd4eb38.css.gz differ diff --git a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz index d7668d93d..7e2dfad7f 100644 Binary files a/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz and b/server/public/assets/trestle/custom-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz b/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz index 1e2d82182..2ccc70d19 100644 Binary files a/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz and b/server/public/assets/trestle/fa-brands-400-53b75d467dcd047612f6a7f25b3c68bd845b551aedf1b397e0f09f99d887bd0c.eot.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz b/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz index 0f259c2aa..cac9625d6 100644 Binary files a/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz and b/server/public/assets/trestle/fa-brands-400-82e5e53767e293a56080dd2d4e3db91764d85f002ea1706a99459d903ebf8f95.ttf.gz differ diff --git a/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz b/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz index 9b40cad38..f4a8011f6 100644 Binary files a/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz and b/server/public/assets/trestle/fa-brands-400-effd4e273b1d4c0a8f825e6e7593f0442651935fb12c0c4781bc54205a054d34.svg.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz b/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz index 167069dea..65c8c1fa3 100644 Binary files a/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz and b/server/public/assets/trestle/fa-regular-400-164fd2bef125a58606a240ecb88eaf01039045bac6615b3c58c6260a03b4411d.svg.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz b/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz index 47cc62b93..edf9f8d28 100644 Binary files a/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz and b/server/public/assets/trestle/fa-regular-400-4a9a9ccf3ccc2ce775695dcdab2e36f48a6db5876a7acf2c6bcb76912af65c87.eot.gz differ diff --git a/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz b/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz index d09c2a5ad..42186c3af 100644 Binary files a/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz and b/server/public/assets/trestle/fa-regular-400-ca2fb9c9ed4e86200e0b14a4fe17772d353db275c0cd506a43f15c28146001e3.ttf.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz b/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz index 8968b0fc9..a4e6c7f6d 100644 Binary files a/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz and b/server/public/assets/trestle/fa-solid-900-33e728329ea58ca0ddc5f1002bb9a744a02d5679b12103ca30373e687aed1698.svg.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz b/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz index 42d3169e9..6997dc3c0 100644 Binary files a/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz and b/server/public/assets/trestle/fa-solid-900-9e3bdf4b406af9baa46bf60e1903449bb4314aeb868fcbae3e95de479633205e.eot.gz differ diff --git a/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz b/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz index 33d2c9725..4cea39e90 100644 Binary files a/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz and b/server/public/assets/trestle/fa-solid-900-a12cebc5d1f2b9dd9d81bb7f2dfc989ce35868092ef46c1098afb09f257d4c2b.ttf.gz differ diff --git a/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz b/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz index e28d21024..91c599a48 100644 Binary files a/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz and b/server/public/assets/trestle/search-303d3dbb97749a6ac23ed964dfde754f56146915dca7ba28284b8405562d3ec8.css.gz differ diff --git a/server/public/assets/trestle/theme-8a6616f99ee353db4ae700d93d5c0071909e407698adb987dacbcb6894b81398.css.gz b/server/public/assets/trestle/theme-8a6616f99ee353db4ae700d93d5c0071909e407698adb987dacbcb6894b81398.css.gz index 2212b6570..ac67dac38 100644 Binary files a/server/public/assets/trestle/theme-8a6616f99ee353db4ae700d93d5c0071909e407698adb987dacbcb6894b81398.css.gz and b/server/public/assets/trestle/theme-8a6616f99ee353db4ae700d93d5c0071909e407698adb987dacbcb6894b81398.css.gz differ diff --git a/server/public/index.html b/server/public/index.html index 45bd23151..51639ae0f 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -21,5 +21,5 @@ - + diff --git a/server/public/main.204387d1aac68048.js b/server/public/main.204387d1aac68048.js deleted file mode 100644 index ca66397c8..000000000 --- a/server/public/main.204387d1aac68048.js +++ /dev/null @@ -1,5640 +0,0 @@ -"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8792],{4709:(Rt,De,c)=>{c.d(De,{H:()=>A,K6:()=>g,Me:()=>L,Ob:()=>B,YL:()=>M,_:()=>r,g8:()=>X,n6:()=>F,oS:()=>V,wE:()=>G});var t=c(9785);function r(x,ne,J){return{r:255*(0,t.Cg)(x,255),g:255*(0,t.Cg)(ne,255),b:255*(0,t.Cg)(J,255)}}function g(x,ne,J){x=(0,t.Cg)(x,255),ne=(0,t.Cg)(ne,255),J=(0,t.Cg)(J,255);var be=Math.max(x,ne,J),Oe=Math.min(x,ne,J),he=0,Ie=0,me=(be+Oe)/2;if(be===Oe)Ie=0,he=0;else{var de=be-Oe;switch(Ie=me>.5?de/(2-be-Oe):de/(be+Oe),be){case x:he=(ne-J)/de+(ne1&&(J-=1),J<1/6?x+6*J*(ne-x):J<.5?ne:J<2/3?x+(ne-x)*(2/3-J)*6:x}function M(x,ne,J){var be,Oe,he;if(x=(0,t.Cg)(x,360),ne=(0,t.Cg)(ne,100),J=(0,t.Cg)(J,100),0===ne)Oe=J,he=J,be=J;else{var Ie=J<.5?J*(1+ne):J+ne-J*ne,me=2*J-Ie;be=e(me,Ie,x+1/3),Oe=e(me,Ie,x),he=e(me,Ie,x-1/3)}return{r:255*be,g:255*Oe,b:255*he}}function G(x,ne,J){x=(0,t.Cg)(x,255),ne=(0,t.Cg)(ne,255),J=(0,t.Cg)(J,255);var be=Math.max(x,ne,J),Oe=Math.min(x,ne,J),he=0,Ie=be,me=be-Oe,de=0===be?0:me/be;if(be===Oe)he=0;else{switch(be){case x:he=(ne-J)/me+(ne>16,g:(65280&x)>>8,b:255&x}}},6681:(Rt,De,c)=>{c.d(De,{D:()=>t});var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},4215:(Rt,De,c)=>{c.d(De,{RO:()=>e});var t=c(4709),r=c(6681),g=c(9785);function e(X){var V={r:0,g:0,b:0},x=1,ne=null,J=null,be=null,Oe=!1,he=!1;return"string"==typeof X&&(X=function I(X){if(0===(X=X.trim().toLowerCase()).length)return!1;var V=!1;if(r.D[X])X=r.D[X],V=!0;else if("transparent"===X)return{r:0,g:0,b:0,a:0,format:"name"};var x=w.rgb.exec(X);return x?{r:x[1],g:x[2],b:x[3]}:(x=w.rgba.exec(X))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=w.hsl.exec(X))?{h:x[1],s:x[2],l:x[3]}:(x=w.hsla.exec(X))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=w.hsv.exec(X))?{h:x[1],s:x[2],v:x[3]}:(x=w.hsva.exec(X))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=w.hex8.exec(X))?{r:(0,t.g8)(x[1]),g:(0,t.g8)(x[2]),b:(0,t.g8)(x[3]),a:(0,t.n6)(x[4]),format:V?"name":"hex8"}:(x=w.hex6.exec(X))?{r:(0,t.g8)(x[1]),g:(0,t.g8)(x[2]),b:(0,t.g8)(x[3]),format:V?"name":"hex"}:(x=w.hex4.exec(X))?{r:(0,t.g8)(x[1]+x[1]),g:(0,t.g8)(x[2]+x[2]),b:(0,t.g8)(x[3]+x[3]),a:(0,t.n6)(x[4]+x[4]),format:V?"name":"hex8"}:!!(x=w.hex3.exec(X))&&{r:(0,t.g8)(x[1]+x[1]),g:(0,t.g8)(x[2]+x[2]),b:(0,t.g8)(x[3]+x[3]),format:V?"name":"hex"}}(X)),"object"==typeof X&&(F(X.r)&&F(X.g)&&F(X.b)?(V=(0,t._)(X.r,X.g,X.b),Oe=!0,he="%"===String(X.r).substr(-1)?"prgb":"rgb"):F(X.h)&&F(X.s)&&F(X.v)?(ne=(0,g.Px)(X.s),J=(0,g.Px)(X.v),V=(0,t.Me)(X.h,ne,J),Oe=!0,he="hsv"):F(X.h)&&F(X.s)&&F(X.l)&&(ne=(0,g.Px)(X.s),be=(0,g.Px)(X.l),V=(0,t.YL)(X.h,ne,be),Oe=!0,he="hsl"),Object.prototype.hasOwnProperty.call(X,"a")&&(x=X.a)),x=(0,g.TV)(x),{ok:Oe,format:X.format||he,r:Math.min(255,Math.max(V.r,0)),g:Math.min(255,Math.max(V.g,0)),b:Math.min(255,Math.max(V.b,0)),a:x}}var L="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),B="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),A="[\\s|\\(]+(".concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")[,|\\s]+(").concat(L,")\\s*\\)?"),w={CSS_UNIT:new RegExp(L),rgb:new RegExp("rgb"+B),rgba:new RegExp("rgba"+A),hsl:new RegExp("hsl"+B),hsla:new RegExp("hsla"+A),hsv:new RegExp("hsv"+B),hsva:new RegExp("hsva"+A),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function F(X){return!!w.CSS_UNIT.exec(String(X))}},9785:(Rt,De,c)=>{function t(B,A){(function g(B){return"string"==typeof B&&-1!==B.indexOf(".")&&1===parseFloat(B)})(B)&&(B="100%");var w=function e(B){return"string"==typeof B&&-1!==B.indexOf("%")}(B);return B=360===A?B:Math.min(A,Math.max(0,parseFloat(B))),w&&(B=parseInt(String(B*A),10)/100),Math.abs(B-A)<1e-6?1:B=360===A?(B<0?B%A+A:B%A)/parseFloat(String(A)):B%A/parseFloat(String(A))}function r(B){return Math.min(1,Math.max(0,B))}function M(B){return B=parseFloat(B),(isNaN(B)||B<0||B>1)&&(B=1),B}function G(B){return B<=1?"".concat(100*Number(B),"%"):B}function L(B){return 1===B.length?"0"+B:String(B)}c.d(De,{Cg:()=>t,J$:()=>r,Px:()=>G,TV:()=>M,wl:()=>L})},6726:(Rt,De,c)=>{c.d(De,{X:()=>E});var t=c(3953),r=c(177),g=c(1188),e=c(5103),M=c(5699),G=c(1236),L=c(9199),B=c(6354),A=c(5964),w=c(9145),I=c(5703),F=c(2e3),X=c(7679),V=c(1774),x=c(3075);function ne(S,R){if(1&S&&(t.nrm(0,"i",9),t.nI1(1,"entityColor"),t.EFF(2)),2&S){const Y=t.XpG().ngIf;t.Y8G("nzTwotoneColor",t.bMT(1,2,"ClinicalTrial")),t.R7$(2),t.SpI(" ",Y.nctId," ")}}function J(S,R){if(1&S&&(t.j41(0,"cvc-link-tag",10),t.EFF(1," View on clinicaltrials.gov "),t.k0s()),2&S){const Y=t.XpG().ngIf;t.Y8G("href",Y.url)}}function be(S,R){if(1&S&&(t.qex(0),t.j41(1,"nz-card",4),t.DNE(2,ne,3,4,"ng-template",null,0,t.C5r)(4,J,2,1,"ng-template",null,1,t.C5r),t.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),t.EFF(8),t.k0s(),t.j41(9,"nz-descriptions-item",7),t.EFF(10),t.k0s(),t.j41(11,"nz-descriptions-item",8),t.EFF(12),t.k0s()()(),t.bVm()),2&S){const Y=R.ngIf,se=t.sdS(3),Be=t.sdS(5);t.R7$(),t.Y8G("nzTitle",se)("nzExtra",Be),t.R7$(5),t.Y8G("nzColumn",2),t.R7$(2),t.SpI(" ",Y.name," "),t.R7$(2),t.SpI(" ",Y.sourceCount," "),t.R7$(2),t.SpI(" ",Y.evidenceCount," ")}}let Oe=(()=>{class S{constructor(Y){this.gql=Y}ngOnInit(){if(null==this.clinicalTrialId)throw new Error("cvc-clinical-trial-popover requires valid clinicalTrialId input.");this.clinicalTrial$=this.gql.watch({clinicalTrialId:this.clinicalTrialId}).valueChanges.pipe((0,B.T)(({data:Y})=>Y?.clinicalTrials.edges[0]?.node),(0,A.p)(L.kP))}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(w.hzv))};static#t=this.\u0275cmp=t.VBU({type:S,selectors:[["cvc-clinical-trial-popover"]],inputs:{clinicalTrialId:"clinicalTrialId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2"],["nzTitle","Sources","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],[3,"href"]],template:function(se,Be){1&se&&(t.j41(0,"div",2),t.DNE(1,be,13,6,"ng-container",3),t.nI1(2,"ngrxPush"),t.k0s()),2&se&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,Be.clinicalTrial$)))},dependencies:[r.bT,I.cK,e.Dn,F.xA,F.gr,X.a,V.L9,x.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return S})();function he(S,R){}function Ie(S,R){if(1&S&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,he,0,0,"ng-template",6),t.k0s(),t.bVm()),2&S){const Y=t.XpG(),se=t.sdS(2);t.R7$(),t.Y8G("routerLink",Y.clinicalTrial.link),t.R7$(),t.Y8G("ngTemplateOutlet",se)}}function me(S,R){}function de(S,R){if(1&S&&t.nrm(0,"cvc-clinical-trial-popover",8),2&S){const Y=t.XpG(2);t.Y8G("clinicalTrialId",Y.clinicalTrial.id)}}function H(S,R){if(1&S&&(t.j41(0,"nz-tag",7),t.DNE(1,me,0,0,"ng-template",6),t.k0s(),t.DNE(2,de,1,1,"ng-template",null,3,t.C5r)),2&S){const Y=t.sdS(3),se=t.XpG(),Be=t.sdS(6);t.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",Y)("nzPopoverTrigger",se.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",Be)}}function z(S,R){}function Z(S,R){if(1&S&&t.DNE(0,z,0,0,"ng-template",6),2&S){t.XpG();const Y=t.sdS(2);t.Y8G("ngTemplateOutlet",Y)}}function pe(S,R){if(1&S&&(t.nrm(0,"i",9),t.nI1(1,"entityColor"),t.EFF(2)),2&S){const Y=t.XpG();t.Y8G("nzTwotoneColor",t.bMT(1,2,"ClinicalTrial")),t.R7$(2),t.SpI(" ",Y.clinicalTrial.nctId,"\n")}}let E=(()=>{class S{set clinicalTrial(Y){if(!Y)throw new Error("clinical-trial-tag clinicalTrial Input requires LinkableClinicalTrial.");this._clinicalTrial=Y}get clinicalTrial(){return this._clinicalTrial}constructor(){this.linked=!0,this.enablePopover=!0}static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275cmp=t.VBU({type:S,selectors:[["cvc-clinical-trial-tag"]],inputs:{clinicalTrial:"clinicalTrial",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["clinicalTrialPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"clinicalTrialId"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"]],template:function(se,Be){if(1&se&&t.DNE(0,Ie,3,2,"ng-container",4)(1,H,4,4,"ng-template",null,0,t.C5r)(3,Z,1,1,"ng-template",null,1,t.C5r)(5,pe,3,4,"ng-template",null,2,t.C5r),2&se){const Pt=t.sdS(4);t.Y8G("ngIf",Be.linked)("ngIfElse",Pt)}},dependencies:[r.bT,r.T3,g.Wk,e.Dn,M.s,G.L_,Oe,x.R],styles:["[_nghost-%COMP%]{display:block}"]})}return S})()},9619:(Rt,De,c)=>{c.d(De,{u:()=>F});var t=c(177),r=c(1188),g=c(5699),e=c(1236),M=c(7054),G=c(4917),L=c(5703),B=c(2e3),A=c(5103),w=c(3953);let I=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=w.$C({type:X});static#n=this.\u0275inj=w.G2t({imports:[t.MD,L.Ti,A.Y3,B.WF,M.L,G.i]})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=w.$C({type:X});static#n=this.\u0275inj=w.G2t({imports:[t.MD,r.iI,A.Y3,g.T,e.MC,I,G.i]})}return X})()},1289:(Rt,De,c)=>{c.d(De,{R:()=>Ie});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(5703),B=c(2e3),A=c(5103),w=c(7391),I=c(7679),F=c(1774),X=c(2287);function V(me,de){if(1&me&&(e.nrm(0,"i",12),e.EFF(1),e.nI1(2,"truncate")),2&me){const H=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,H.name,50)," ")}}function x(me,de){if(1&me&&(e.j41(0,"cvc-link-tag",14),e.EFF(1),e.k0s()),2&me){const H=e.XpG(2).ngIf;e.Y8G("href",H.diseaseUrl),e.R7$(),e.SpI(" DOID: ",H.doid," ")}}function ne(me,de){if(1&me&&e.DNE(0,x,2,2,"cvc-link-tag",13),2&me){const H=e.XpG().ngIf,z=e.sdS(7);e.Y8G("ngIf",H.doid)("ngIfElse",z)}}function J(me,de){1&me&&(e.j41(0,"span",15),e.EFF(1,"No DOID"),e.k0s())}function be(me,de){if(1&me&&(e.j41(0,"nz-descriptions-item",16),e.EFF(1),e.k0s()),2&me){const H=e.XpG().ngIf;e.R7$(),e.SpI(" ",H.name," ")}}function Oe(me,de){if(1&me&&(e.j41(0,"nz-descriptions-item",17),e.EFF(1),e.k0s()),2&me){const H=e.XpG().ngIf;e.R7$(),e.SpI(" ",H.diseaseAliases.join(", ")," ")}}function he(me,de){if(1&me&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,V,3,4,"ng-template",null,0,e.C5r)(4,ne,1,2,"ng-template",null,1,e.C5r)(6,J,2,0,"ng-template",null,2,e.C5r),e.j41(8,"nz-descriptions",6),e.DNE(9,be,2,1,"nz-descriptions-item",7)(10,Oe,2,1,"nz-descriptions-item",8),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.EFF(14),e.k0s(),e.j41(15,"nz-descriptions-item",11),e.EFF(16),e.k0s()()(),e.bVm()),2&me){const H=de.ngIf,z=e.sdS(3),Z=e.sdS(5);e.R7$(),e.Y8G("nzTitle",z)("nzExtra",Z),e.R7$(7),e.Y8G("nzColumn",1),e.R7$(),e.Y8G("ngIf",H.name.length>50),e.R7$(),e.Y8G("ngIf",H.diseaseAliases.length>0),e.R7$(2),e.SpI(" ",H.assertionCount," "),e.R7$(2),e.SpI(" ",H.evidenceItemCount," "),e.R7$(2),e.SpI(" ",H.molecularProfileCount," ")}}let Ie=(()=>{class me{constructor(H){this.gql=H}ngOnInit(){if(null==this.diseaseId)throw new Error("cvc-disease-popover requires valid diseaseId input.");this.disease$=this.gql.watch({diseaseId:this.diseaseId}).valueChanges.pipe((0,r.T)(({data:H})=>H?.diseasePopover),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(z){return new(z||me)(e.rXU(M.cs4))};static#t=this.\u0275cmp=e.VBU({type:me,selectors:[["cvc-disease-popover"]],inputs:{diseaseId:"diseaseId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noDoid",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","1"],["nzTitle","Evidence","nzSpan","1"],["nzTitle","Molecular Profiles","nzSpan","1"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on disease-ontology.org",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"]],template:function(z,Z){1&z&&(e.j41(0,"div",3),e.DNE(1,he,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&z&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,Z.disease$)))},dependencies:[G.bT,L.cK,B.xA,B.gr,A.Dn,w.Di,I.a,F.L9,X.H],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return me})()},8156:(Rt,De,c)=>{c.d(De,{U:()=>A});var t=c(177),r=c(5703),g=c(2e3),e=c(5103),M=c(7054),G=c(7391),L=c(4917),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,r.Ti,g.WF,e.Y3,G.kT,L.i,M.L]})}return w})()},9861:(Rt,De,c)=>{c.d(De,{Y:()=>Ie});var t=c(6514),r=c(3953),g=c(177),e=c(1188),M=c(5699),G=c(1236),L=c(5103),B=c(1289),A=c(2287);const w=me=>({deprecated:me});function I(me,de){}function F(me,de){if(1&me&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,I,0,0,"ng-template",7),r.k0s(),r.bVm()),2&me){const H=r.XpG(),z=r.sdS(2);r.R7$(),r.Y8G("routerLink",H.disease.link),r.R7$(),r.Y8G("ngTemplateOutlet",z)}}function X(me,de){}function V(me,de){if(1&me&&r.nrm(0,"cvc-disease-popover",9),2&me){const H=r.XpG(2);r.Y8G("diseaseId",H.disease.id)}}function x(me,de){if(1&me){const H=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(Z){r.eBV(H);const pe=r.XpG();return r.Njj(pe.itemClosed(Z))}),r.DNE(1,X,0,0,"ng-template",7),r.k0s(),r.DNE(2,V,1,1,"ng-template",null,3,r.C5r)}if(2&me){const H=r.sdS(3),z=r.XpG(),Z=r.sdS(6);r.Y8G("ngClass",r.eq3(6,w,z.disease.deprecated))("nzPopoverMouseEnterDelay",z.onCloseClicked?0:.5)("nzPopoverContent",H)("nzPopoverTrigger",z.enablePopover?"hover":null)("nzMode",z.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",Z)}}function ne(me,de){}function J(me,de){if(1&me&&r.DNE(0,ne,0,0,"ng-template",7),2&me){r.XpG();const H=r.sdS(2);r.Y8G("ngTemplateOutlet",H)}}function be(me,de){if(1&me&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&me){const H=r.XpG(2);r.R7$(),r.SpI(" ",r.i5U(2,1,H.disease.name,27)," ")}}function Oe(me,de){if(1&me&&r.EFF(0),2&me){const H=r.XpG(2);r.SpI(" ",H.disease.name," ")}}function he(me,de){if(1&me&&(r.nrm(0,"i",10),r.DNE(1,be,3,4,"ng-container",5)(2,Oe,1,1,"ng-template",null,4,r.C5r)),2&me){const H=r.sdS(3),z=r.XpG();r.R7$(),r.Y8G("ngIf",z.truncateLongName)("ngIfElse",H)}}let Ie=(()=>{class me extends t.s{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set disease(H){if(!H)throw new Error("disease-tag disease Input requires LinkableDisease.");this._disease=H}get disease(){return this._disease}idFunction(){return this.disease.id}static#e=this.\u0275fac=(()=>{let H;return function(Z){return(H||(H=r.xGo(me)))(Z||me)}})();static#t=this.\u0275cmp=r.VBU({type:me,selectors:[["cvc-disease-tag"]],inputs:{disease:"disease",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["diseasePopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"diseaseId"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"]],template:function(z,Z){if(1&z&&r.DNE(0,F,3,2,"ng-container",5)(1,x,4,8,"ng-template",null,0,r.C5r)(3,J,1,1,"ng-template",null,1,r.C5r)(5,he,4,2,"ng-template",null,2,r.C5r),2&z){const pe=r.sdS(4);r.Y8G("ngIf",Z.linked)("ngIfElse",pe)}},dependencies:[g.YU,g.bT,g.T3,e.Wk,M.s,G.L_,L.Dn,B.R,A.H],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}"],changeDetection:0})}return me})()},9192:(Rt,De,c)=>{c.d(De,{J:()=>A});var t=c(177),r=c(1188),g=c(5699),e=c(1236),M=c(5103),G=c(8156),L=c(4917),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,r.iI,g.T,e.MC,M.Y3,L.i,G.U]})}return w})()},8011:(Rt,De,c)=>{c.d(De,{S:()=>en});var t=c(6354),r=c(5964),g=c(9199),e=c(3953),M=c(9145),G=c(177),L=c(1188),B=c(5103),A=c(5703),w=c(7529),I=c(2e3),F=c(5699),X=c(7685),V=c(7391),x=c(9563),ne=c(9861),J=c(7047),be=c(9062),Oe=c(311),he=c(5473),Ie=c(9973),me=c(1774),de=c(1677),H=c(3075);function z(jt,Vt){if(1&jt&&(e.qex(0),e.nrm(1,"i",18),e.nI1(2,"entityColor"),e.EFF(3),e.bVm()),2&jt){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"EvidenceItem")),e.R7$(2),e.SpI(" ",fn.name," ")}}function Z(jt,Vt){if(1&jt&&e.nrm(0,"cvc-status-tag",19),2&jt){const fn=e.XpG(2).ngIf;e.Y8G("status",fn.status)}}function pe(jt,Vt){1&jt&&(e.j41(0,"nz-space"),e.DNE(1,z,4,4,"ng-container",16)(2,Z,1,1,"cvc-status-tag",17),e.k0s())}function E(jt,Vt){if(1&jt&&e.nrm(0,"cvc-molecular-profile-tag",20),2&jt){const fn=e.XpG().ngIf;e.Y8G("molecularProfile",fn.molecularProfile)("enablePopover",!1)("truncateLongName",!0)}}function S(jt,Vt){if(1&jt&&(e.qex(0),e.EFF(1),e.bVm()),2&jt){const fn=Vt.ngIf;e.R7$(),e.SpI(" ",fn," ")}}function R(jt,Vt){if(1&jt&&(e.j41(0,"nz-descriptions",21)(1,"nz-descriptions-item",22),e.nrm(2,"cvc-mp-tag-name",23),e.k0s(),e.j41(3,"nz-descriptions-item",24),e.nrm(4,"cvc-source-tag",25),e.k0s()()),2&jt){const fn=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("nameSegments",fn.molecularProfile.parsedName)("enablePopover",!1),e.R7$(2),e.Y8G("source",fn.source)("enablePopover",!1)}}function Y(jt,Vt){if(1&jt&&(e.qex(0),e.nrm(1,"cvc-disease-tag",35),e.bVm()),2&jt){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("enablePopover",!1)("disease",fn.disease)("truncateLongName",!0)}}function se(jt,Vt){1&jt&&e.EFF(0," N/A ")}function Be(jt,Vt){if(1&jt&&(e.j41(0,"span"),e.nrm(1,"cvc-therapy-tag",38),e.k0s()),2&jt){const fn=Vt.$implicit;e.R7$(),e.Y8G("enablePopover",!1)("therapy",fn)("truncateLongName",!0)}}function Pt(jt,Vt){if(1&jt&&(e.qex(0),e.EFF(1),e.nI1(2,"titlecase"),e.bVm()),2&jt){const fn=e.XpG(3).ngIf;e.R7$(),e.SpI(" ",e.bMT(2,1,fn.therapyInteractionType)," ")}}function vt(jt,Vt){if(1&jt&&(e.j41(0,"nz-descriptions-item",36),e.DNE(1,Be,2,3,"span",37)(2,Pt,3,3,"ng-container",5),e.k0s()),2&jt){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngForOf",fn.therapies),e.R7$(),e.Y8G("ngIf",fn.therapies.length>1)}}function wt(jt,Vt){if(1&jt&&(e.j41(0,"span"),e.nrm(1,"cvc-phenotype-tag",40),e.k0s()),2&jt){const fn=Vt.$implicit;e.R7$(),e.Y8G("enablePopover",!1)("phenotype",fn)}}function Le(jt,Vt){if(1&jt&&(e.j41(0,"nz-descriptions-item",39),e.DNE(1,wt,2,2,"span",37),e.k0s()),2&jt){const fn=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngForOf",fn.phenotypes)}}function zt(jt,Vt){if(1&jt&&(e.j41(0,"nz-descriptions",21)(1,"nz-descriptions-item",26),e.EFF(2),e.k0s(),e.j41(3,"nz-descriptions-item",27),e.EFF(4),e.nI1(5,"evidenceEnumDisplay"),e.k0s(),e.j41(6,"nz-descriptions-item",28),e.EFF(7),e.nI1(8,"evidenceEnumDisplay"),e.k0s(),e.j41(9,"nz-descriptions-item",29),e.EFF(10),e.nI1(11,"evidenceEnumDisplay"),e.k0s(),e.j41(12,"nz-descriptions-item",30),e.EFF(13),e.nrm(14,"i",31),e.k0s(),e.j41(15,"nz-descriptions-item",32),e.DNE(16,Y,2,3,"ng-container",10)(17,se,1,0,"ng-template",null,3,e.C5r),e.k0s(),e.DNE(19,vt,3,2,"nz-descriptions-item",33)(20,Le,2,1,"nz-descriptions-item",34),e.k0s()),2&jt){const fn=e.sdS(18),Hn=e.XpG().ngIf;e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",Hn.evidenceLevel," "),e.R7$(2),e.SpI(" ",e.bMT(5,10,Hn.evidenceType)," "),e.R7$(3),e.SpI(" ",e.bMT(8,12,Hn.evidenceDirection)," "),e.R7$(3),e.SpI(" ",e.bMT(11,14,Hn.significance)," "),e.R7$(3),e.SpI(" ",Hn.evidenceRating,""),e.R7$(3),e.Y8G("ngIf",Hn.disease)("ngIfElse",fn),e.R7$(3),e.Y8G("ngIf",Hn.therapies.length>0),e.R7$(),e.Y8G("ngIf",Hn.phenotypes.length>0)}}function xt(jt,Vt){if(1&jt&&(e.j41(0,"a",41)(1,"nz-tag",42),e.nrm(2,"i",43),e.EFF(3),e.k0s()()),2&jt){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/flags"),e.R7$(3),e.SpI(" Flags (",fn.flags.totalCount,") ")}}function st(jt,Vt){if(1&jt&&(e.j41(0,"a",41)(1,"nz-tag",44),e.nrm(2,"i",45),e.EFF(3),e.k0s()()),2&jt){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",fn.revisions.totalCount,") ")}}function Ct(jt,Vt){if(1&jt&&(e.j41(0,"a",41)(1,"nz-tag",46),e.nrm(2,"i",47),e.EFF(3),e.k0s()()),2&jt){const fn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",fn.id,"/comments"),e.R7$(3),e.SpI(" Comments (",fn.comments.totalCount,") ")}}function It(jt,Vt){if(1&jt&&(e.qex(0),e.j41(1,"nz-card",6),e.DNE(2,pe,3,0,"ng-template",null,1,e.C5r)(4,E,1,3,"ng-template",null,2,e.C5r),e.j41(6,"nz-row")(7,"nz-col",7)(8,"div",8)(9,"p",9),e.DNE(10,S,2,1,"ng-container",10),e.k0s()()()(),e.j41(11,"nz-space",11),e.DNE(12,R,5,5,"nz-descriptions",12)(13,zt,21,16,"nz-descriptions",12),e.k0s(),e.j41(14,"nz-row",13)(15,"nz-col",7)(16,"nz-space",14),e.DNE(17,xt,4,3,"a",15)(18,st,4,3,"a",15)(19,Ct,4,3,"a",15),e.k0s()()()(),e.bVm()),2&jt){const fn=Vt.ngIf,Hn=e.sdS(3),zn=e.sdS(5);e.XpG();const bt=e.sdS(4);e.R7$(),e.Y8G("nzTitle",Hn)("nzExtra",zn),e.R7$(8),e.Y8G("nzEllipsisRows",4),e.R7$(),e.Y8G("ngIf",fn.description)("ngIfElse",bt)}}function Tt(jt,Vt){1&jt&&e.EFF(0," Evidence item has not been provided a description.\n")}let en=(()=>{class jt{constructor(fn){this.gql=fn}ngOnInit(){if(null==this.evidenceId)throw new Error("cvc-evidence-popover requires valid evidenceId input.");this.evidence$=this.gql.watch({evidenceId:this.evidenceId}).valueChanges.pipe((0,t.T)(({data:fn})=>fn?.evidenceItem),(0,r.p)(g.kP))}static#e=this.\u0275fac=function(Hn){return new(Hn||jt)(e.rXU(M.XUB))};static#t=this.\u0275cmp=e.VBU({type:jt,selectors:[["cvc-evidence-popover"]],inputs:{evidenceId:"evidenceId"},decls:5,vars:3,consts:[["noDescription",""],["cardTitle",""],["molecularProfile",""],["noDisease",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSpan","24"],[1,"popover-text"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],[4,"ngIf","ngIfElse"],["nzDirection","vertical","nzSize","small"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[2,"font-weight","normal",3,"status"],[3,"molecularProfile","enablePopover","truncateLongName"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments","enablePopover"],["nzTitle","Source","nzSpan","2"],[3,"source","enablePopover"],["nzTitle","Level"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Rating"],["nz-icon","","nzType","star","nzTheme","fill"],["nzTitle","Disease"],["nzTitle","Therapies","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Therapies","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","therapy","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(Hn,zn){1&Hn&&(e.j41(0,"div",4),e.DNE(1,It,20,5,"ng-container",5),e.nI1(2,"ngrxPush"),e.k0s(),e.DNE(3,Tt,1,0,"ng-template",null,0,e.C5r)),2&Hn&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,zn.evidence$)))},dependencies:[G.Sq,G.bT,L.Wk,B.Dn,A.cK,w.Uq,w.e,I.xA,I.gr,F.s,X.U5,X.Dq,V.Di,x.R,ne.Y,J.A,be.D,Oe.g,he.z,Ie.G,G.PV,me.L9,de.pW,H.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return jt})()},4666:(Rt,De,c)=>{c.d(De,{v:()=>Oe});var t=c(177),r=c(5703),g=c(7529),e=c(2e3),M=c(1188),G=c(5699),L=c(9192),B=c(1542),A=c(7685),w=c(5103),I=c(4917),F=c(1209),X=c(9590),V=c(7391),x=c(1448),ne=c(996),J=c(9802),be=c(3953);let Oe=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=be.$C({type:he});static#n=this.\u0275inj=be.G2t({imports:[t.MD,M.iI,w.Y3,r.Ti,g.f3,e.WF,G.T,A.pc,V.kT,I.i,J._,L.J,B.X,F.k,X.R,ne.o,x.B]})}return he})()},1429:(Rt,De,c)=>{c.d(De,{X:()=>H});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(1188),B=c(5703),A=c(7529),w=c(2e3),I=c(5699),F=c(5103),X=c(7685),V=c(1774),x=c(3075);function ne(z,Z){if(1&z&&(e.nrm(0,"i",12),e.nI1(1,"entityColor"),e.EFF(2)),2&z){const pe=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,3,"Feature")),e.R7$(2),e.Lme(" ",pe.featureInstance.__typename," - ",pe.name," ")}}function J(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",13),e.EFF(1),e.k0s()),2&z){const pe=e.XpG().ngIf;e.R7$(),e.SpI(" ",pe.fullName," ")}}function be(z,Z){if(1&z&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&z){const pe=Z.$implicit;e.R7$(),e.JRh(pe)}}function Oe(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",14),e.DNE(1,be,2,1,"nz-tag",15),e.k0s()),2&z){const pe=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",pe.featureAliases)}}function he(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",17),e.nrm(2,"i",18),e.EFF(3),e.k0s()()),2&z){const pe=e.XpG().ngIf;e.Mz_("routerLink","/features/",pe.id,"/flags"),e.R7$(3),e.SpI(" Flags (",pe.flags.totalCount,") ")}}function Ie(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",19),e.nrm(2,"i",20),e.EFF(3," Revisions "),e.k0s()()),2&z){const pe=e.XpG().ngIf;e.Mz_("routerLink","/features/",pe.id,"/revisions")}}function me(z,Z){if(1&z&&(e.j41(0,"a",16)(1,"nz-tag",21),e.nrm(2,"i",22),e.EFF(3," Comments "),e.k0s()()),2&z){const pe=e.XpG().ngIf;e.Mz_("routerLink","/features/",pe.id,"/comments")}}function de(z,Z){if(1&z&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,ne,3,5,"ng-template",null,0,e.C5r),e.j41(4,"nz-descriptions",4),e.DNE(5,J,2,1,"nz-descriptions-item",5)(6,Oe,2,1,"nz-descriptions-item",6),e.j41(7,"nz-descriptions-item",7),e.EFF(8),e.k0s()(),e.j41(9,"nz-row",8)(10,"nz-col",9)(11,"nz-space",10),e.DNE(12,he,4,3,"a",11)(13,Ie,4,2,"a",11)(14,me,4,2,"a",11),e.k0s()()()(),e.bVm()),2&z){const pe=Z.ngIf,E=e.sdS(3);e.R7$(),e.Y8G("nzTitle",E),e.R7$(3),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",pe.fullName),e.R7$(),e.Y8G("ngIf",pe.featureAliases.length>0),e.R7$(2),e.SpI(" ",pe.variants.totalCount," ")}}let H=(()=>{class z{constructor(pe){this.gql=pe}ngOnInit(){if(null==this.featureId)throw new Error("cvc-feature-popover requires valid featureId input.");this.feature$=this.gql.watch({featureId:this.featureId}).valueChanges.pipe((0,r.T)(({data:pe})=>pe?.feature),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(E){return new(E||z)(e.rXU(M.AsH))};static#t=this.\u0275cmp=e.VBU({type:z,selectors:[["cvc-feature-popover"]],inputs:{featureId:"featureId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","2","nzTitle","Full Name",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Variants"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],["nzSpan","2","nzTitle","Full Name"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(E,S){1&E&&(e.j41(0,"div",1),e.DNE(1,de,15,5,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&E&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,S.feature$)))},dependencies:[G.Sq,G.bT,L.Wk,B.cK,A.Uq,A.e,w.xA,w.gr,I.s,F.Dn,X.U5,X.Dq,V.L9,x.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return z})()},5928:(Rt,De,c)=>{c.d(De,{o:()=>I});var t=c(177),r=c(1188),g=c(4917),e=c(5703),M=c(2e3),G=c(7529),L=c(5103),B=c(7685),A=c(5699),w=c(3953);let I=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=w.$C({type:F});static#n=this.\u0275inj=w.G2t({imports:[t.MD,r.iI,e.Ti,G.f3,M.WF,A.T,L.Y3,B.pc,g.i]})}return F})()},3245:(Rt,De,c)=>{c.d(De,{_:()=>H});var t=c(6514),r=c(505),g=c(3953),e=c(177),M=c(1188),G=c(5699),L=c(1236),B=c(5103),A=c(1429),w=c(2387),I=c(2287),F=c(3075);const X=z=>({deprecated:z});function V(z,Z){}function x(z,Z){if(1&z&&(g.qex(0),g.j41(1,"a",6),g.DNE(2,V,0,0,"ng-template",7),g.k0s(),g.bVm()),2&z){const pe=g.XpG(),E=g.sdS(2);g.R7$(),g.Y8G("routerLink",pe.feature.link),g.R7$(),g.Y8G("ngTemplateOutlet",E)}}function ne(z,Z){}function J(z,Z){if(1&z&&g.nrm(0,"cvc-feature-popover",9),2&z){const pe=g.XpG(2);g.Y8G("featureId",pe.feature.id)}}function be(z,Z){if(1&z){const pe=g.RV6();g.j41(0,"nz-tag",8),g.bIt("nzOnClose",function(S){g.eBV(pe);const R=g.XpG();return g.Njj(R.itemClosed(S))}),g.DNE(1,ne,0,0,"ng-template",7),g.k0s(),g.DNE(2,J,1,1,"ng-template",null,3,g.C5r)}if(2&z){const pe=g.sdS(3),E=g.XpG(),S=g.sdS(6);g.Y8G("ngClass",g.eq3(6,X,E.feature.deprecated))("nzPopoverMouseEnterDelay",E.onCloseClicked?0:.5)("nzPopoverContent",pe)("nzPopoverTrigger",E.enablePopover?"hover":null)("nzMode",E.onCloseClicked?"closeable":"default"),g.R7$(),g.Y8G("ngTemplateOutlet",S)}}function Oe(z,Z){}function he(z,Z){if(1&z&&g.DNE(0,Oe,0,0,"ng-template",7),2&z){g.XpG();const pe=g.sdS(2);g.Y8G("ngTemplateOutlet",pe)}}function Ie(z,Z){if(1&z&&(g.qex(0),g.EFF(1),g.nI1(2,"truncate"),g.bVm()),2&z){const pe=g.XpG(2);g.R7$(),g.SpI(" ",g.i5U(2,1,pe.feature.name,12)," ")}}function me(z,Z){if(1&z&&g.EFF(0),2&z){const pe=g.XpG(2);g.SpI(" ",pe.feature.name," ")}}function de(z,Z){if(1&z&&(g.j41(0,"cvc-icon-badges",10),g.nrm(1,"i",11),g.nI1(2,"entityColor"),g.k0s(),g.DNE(3,Ie,3,4,"ng-container",5)(4,me,1,1,"ng-template",null,4,g.C5r)),2&z){const pe=g.sdS(5),E=g.XpG();g.Y8G("flagged",E.feature.flagged)("entityColor",E.iconColor),g.R7$(),g.Y8G("nzTwotoneColor",g.bMT(2,5,"Feature")),g.R7$(2),g.Y8G("ngIf",E.truncateLongName)("ngIfElse",pe)}}let H=(()=>{class z extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,r.P)("Gene")}idFunction(){return this.feature.id}ngOnInit(){if(super.ngOnInit(),void 0===this.feature)throw new Error("cvc-feature-tag requires LinkableFeature input, none supplied.")}static#e=this.\u0275fac=function(E){return new(E||z)};static#t=this.\u0275cmp=g.VBU({type:z,selectors:[["cvc-feature-tag"]],inputs:{feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[g.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["featurePopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"featureId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-feature","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(E,S){if(1&E&&g.DNE(0,x,3,2,"ng-container",5)(1,be,4,8,"ng-template",null,0,g.C5r)(3,he,1,1,"ng-template",null,1,g.C5r)(5,de,6,7,"ng-template",null,2,g.C5r),2&E){const R=g.sdS(4);g.Y8G("ngIf",S.linked)("ngIfElse",R)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,G.s,L.L_,B.Dn,A.X,w.N,I.H,F.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return z})()},6912:(Rt,De,c)=>{c.d(De,{l:()=>I});var t=c(177),r=c(1188),g=c(5699),e=c(5103),M=c(1236),G=c(4917),L=c(3146),B=c(4994),A=c(5928),w=c(3953);let I=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=w.$C({type:F});static#n=this.\u0275inj=w.G2t({imports:[t.MD,r.iI,g.T,M.MC,e.Y3,L.W2,G.i,A.o,B.a]})}return F})()},5761:(Rt,De,c)=>{c.d(De,{q:()=>pe});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(1188),B=c(5703),A=c(7529),w=c(2e3),I=c(5699),F=c(5103),X=c(7685),V=c(7855),x=c(9973),ne=c(1774);function J(E,S){if(1&E&&(e.nrm(0,"i",16),e.EFF(1)),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.name," ")}}function be(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",17),e.EFF(1),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.evidenceItems.totalCount," ")}}function Oe(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",18),e.EFF(1),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.SpI(" ",R.assertions.totalCount," ")}}function he(E,S){if(1&E&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&E){const R=S.$implicit;e.R7$(),e.JRh(R)}}function Ie(E,S){if(1&E&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,he,2,1,"nz-tag",19),e.k0s(),e.bVm()),2&E){const R=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",R.molecularProfileAliases)}}function me(E,S){1&E&&(e.j41(0,"span",20),e.EFF(1,"None specified"),e.k0s())}function de(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",22),e.nrm(2,"i",23),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/flags"),e.R7$(3),e.SpI(" Flags (",R.flags.totalCount,") ")}}function H(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",24),e.nrm(2,"i",25),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",R.revisions.totalCount,") ")}}function z(E,S){if(1&E&&(e.j41(0,"a",21)(1,"nz-tag",26),e.nrm(2,"i",27),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",R.id,"/comments"),e.R7$(3),e.SpI(" Comments (",R.comments.totalCount,") ")}}function Z(E,S){if(1&E&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,J,2,1,"ng-template",null,0,e.C5r),e.j41(4,"nz-descriptions",5)(5,"nz-descriptions-item",6),e.nrm(6,"cvc-mp-tag-name",7),e.k0s(),e.DNE(7,be,2,1,"nz-descriptions-item",8)(8,Oe,2,1,"nz-descriptions-item",9),e.j41(9,"nz-descriptions-item",10),e.DNE(10,Ie,3,1,"ng-container",11)(11,me,2,0,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(13,"nz-row",12)(14,"nz-col",13)(15,"nz-space",14),e.DNE(16,de,4,3,"a",15)(17,H,4,3,"a",15)(18,z,4,3,"a",15),e.k0s()()()(),e.bVm()),2&E){const R=S.ngIf,Y=e.sdS(3),se=e.sdS(12);e.R7$(),e.Y8G("nzTitle",Y),e.R7$(3),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("nameSegments",R.parsedName)("enablePopover",!1),e.R7$(),e.Y8G("ngIf",R.evidenceItems.totalCount>0),e.R7$(),e.Y8G("ngIf",R.assertions.totalCount>0),e.R7$(2),e.Y8G("ngIf",R.molecularProfileAliases.length>0)("ngIfElse",se)}}let pe=(()=>{class E{constructor(R){this.gql=R}ngOnInit(){if(void 0===this.molecularProfileId)throw new Error("Must pass a molecular profile ID into the molecular profile popover component.");this.molecularProfile$=this.gql.watch({molecularProfileId:this.molecularProfileId}).valueChanges.pipe((0,r.T)(({data:R})=>R?.molecularProfile),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(Y){return new(Y||E)(e.rXU(M.fvu))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-molecular-profile-popover"]],inputs:{molecularProfileId:"molecularProfileId"},decls:3,vars:3,consts:[["cardTitle",""],["noAliases",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","MP Expression","nzSpan","2"],[3,"nameSegments","enablePopover"],["nzTitle","Evidence Items","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2",4,"ngIf"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:molecularprofile"],["nzTitle","Evidence Items","nzSpan","2"],["nzTitle","Assertions","nzSpan","2"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(Y,se){1&Y&&(e.j41(0,"div",2),e.DNE(1,Z,19,8,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&Y&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,se.molecularProfile$)))},dependencies:[G.Sq,G.bT,L.Wk,B.cK,A.Uq,A.e,w.xA,w.gr,I.s,F.Dn,X.U5,X.Dq,V.M,x.G,ne.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return E})()},8052:(Rt,De,c)=>{c.d(De,{b:()=>V});var t=c(177),r=c(1188),g=c(5703),e=c(7529),M=c(2e3),G=c(5699),L=c(5103),B=c(7685),A=c(7054),w=c(1448),I=c(2142),F=c(6912),X=c(3953);let V=(()=>{class x{static#e=this.\u0275fac=function(be){return new(be||x)};static#t=this.\u0275mod=X.$C({type:x});static#n=this.\u0275inj=X.G2t({imports:[t.MD,r.iI,g.Ti,e.f3,M.WF,G.T,L.Y3,B.pc,F.l,A.L,I.x,w.B]})}return x})()},9973:(Rt,De,c)=>{c.d(De,{G:()=>F});var t=c(3953),r=c(177),g=c(3100),e=c(3245),M=c(4247);const G=X=>[X];function L(X,V){if(1&X&&t.nrm(0,"span",3),2&X){const x=t.XpG().$implicit;t.Y8G("innerHtml",x.text,t.npT)}}function B(X,V){if(1&X&&t.nrm(0,"cvc-feature-tag",6),2&X){const x=t.XpG().$implicit,ne=t.XpG(3);t.Y8G("feature",x)("enablePopover",ne.enablePopover)}}function A(X,V){if(1&X&&(t.qex(0),t.DNE(1,B,1,2,"cvc-feature-tag",5),t.bVm()),2&X){const x=V.$implicit;t.R7$(),t.Y8G("ngIf","Feature"==x.__typename)}}function w(X,V){if(1&X&&(t.qex(0),t.j41(1,"cvc-tag-group"),t.DNE(2,A,2,1,"ng-container",0),t.nrm(3,"cvc-variant-tag",4),t.k0s(),t.bVm()),2&X){const x=t.XpG(),ne=x.$implicit,J=x.index,be=t.XpG();t.R7$(2),t.Y8G("ngForOf",t.eq3(3,G,be.nameSegments[J-1])),t.R7$(),t.Y8G("variant",ne)("enablePopover",be.enablePopover)}}function I(X,V){if(1&X&&(t.qex(0),t.DNE(1,L,1,1,"span",1)(2,w,4,5,"ng-container",2),t.bVm()),2&X){const x=V.$implicit;t.R7$(),t.Y8G("ngIf","MolecularProfileTextSegment"==x.__typename),t.R7$(),t.Y8G("ngIf","Variant"==x.__typename)}}let F=(()=>{class X{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.nameSegments)throw new Error("Must pass a list of molecular profile name segments into mp name component.")}static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275cmp=t.VBU({type:X,selectors:[["cvc-mp-tag-name"]],inputs:{nameSegments:"nameSegments",enablePopover:"enablePopover"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["class","text-segment",3,"innerHtml",4,"ngIf"],[4,"ngIf"],[1,"text-segment",3,"innerHtml"],[3,"variant","enablePopover"],[3,"feature","enablePopover",4,"ngIf"],[3,"feature","enablePopover"]],template:function(ne,J){1&ne&&t.DNE(0,I,3,2,"ng-container",0),2&ne&&t.Y8G("ngForOf",J.nameSegments)},dependencies:[r.Sq,r.bT,g.V,e._,M.L],styles:[".text-segment[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;font-weight:700;color:#0009;font-size:14px;line-height:12px}"]})}return X})()},1448:(Rt,De,c)=>{c.d(De,{B:()=>B});var t=c(177),r=c(7051),g=c(5699),e=c(5103),M=c(2502),G=c(6912),L=c(3953);let B=(()=>{class A{static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275mod=L.$C({type:A});static#n=this.\u0275inj=L.G2t({imports:[t.MD,g.T,e.Y3,r.U,G.l,M.u]})}return A})()},5473:(Rt,De,c)=>{c.d(De,{z:()=>E});var t=c(6514),r=c(505),g=c(3953),e=c(177),M=c(1188),G=c(5699),L=c(1236),B=c(5103),A=c(5761),w=c(2387),I=c(2287),F=c(3075);const X=S=>({deprecated:S});function V(S,R){}function x(S,R){if(1&S&&(g.qex(0),g.j41(1,"a",7),g.DNE(2,V,0,0,"ng-template",8),g.k0s(),g.bVm()),2&S){const Y=g.XpG(),se=g.sdS(2);g.R7$(),g.Y8G("routerLink",Y.molecularProfile.link),g.R7$(),g.Y8G("ngTemplateOutlet",se)}}function ne(S,R){}function J(S,R){if(1&S){const Y=g.RV6();g.j41(0,"nz-tag",10),g.bIt("nzOnClose",function(Be){g.eBV(Y);const Pt=g.XpG(2);return g.Njj(Pt.itemClosed(Be))}),g.DNE(1,ne,0,0,"ng-template",8),g.k0s()}if(2&S){g.XpG();const Y=g.sdS(2),se=g.XpG(),Be=g.sdS(8);g.Y8G("ngClass",g.eq3(5,X,se.molecularProfile.deprecated))("nzPopoverMouseEnterDelay",se.onCloseClicked?0:.5)("nzPopoverContent",Y)("nzMode",se.onCloseClicked?"closeable":"default"),g.R7$(),g.Y8G("ngTemplateOutlet",Be)}}function be(S,R){if(1&S&&g.nrm(0,"cvc-molecular-profile-popover",12),2&S){const Y=g.XpG(3);g.Y8G("molecularProfileId",Y.molecularProfile.id)}}function Oe(S,R){if(1&S&&g.DNE(0,be,1,1,"cvc-molecular-profile-popover",11),2&S){const Y=g.XpG(2);g.Y8G("ngIf",Y.enablePopover)}}function he(S,R){if(1&S&&g.DNE(0,J,2,7,"nz-tag",9)(1,Oe,1,1,"ng-template",null,4,g.C5r),2&S){const Y=g.XpG(),se=g.sdS(4);g.Y8G("ngIf",Y.enablePopover)("ngIfElse",se)}}function Ie(S,R){}function me(S,R){if(1&S){const Y=g.RV6();g.j41(0,"nz-tag",13),g.bIt("nzOnClose",function(Be){g.eBV(Y);const Pt=g.XpG();return g.Njj(Pt.itemClosed(Be))}),g.DNE(1,Ie,0,0,"ng-template",8),g.k0s()}if(2&S){const Y=g.XpG(),se=g.sdS(8);g.Y8G("nzMode",Y.onCloseClicked?"closeable":"default")("ngClass",g.eq3(3,X,Y.molecularProfile.deprecated)),g.R7$(),g.Y8G("ngTemplateOutlet",se)}}function de(S,R){}function H(S,R){if(1&S&&g.DNE(0,de,0,0,"ng-template",8),2&S){g.XpG();const Y=g.sdS(2);g.Y8G("ngTemplateOutlet",Y)}}function z(S,R){if(1&S&&(g.qex(0),g.EFF(1),g.nI1(2,"truncate"),g.bVm()),2&S){const Y=g.XpG(2);g.R7$(),g.SpI(" ",g.i5U(2,1,Y.molecularProfile.name,Y.truncationLength)," ")}}function Z(S,R){if(1&S&&g.EFF(0),2&S){const Y=g.XpG(2);g.SpI(" ",Y.molecularProfile.name," ")}}function pe(S,R){if(1&S&&(g.j41(0,"cvc-icon-badges",14),g.nrm(1,"i",15),g.nI1(2,"entityColor"),g.k0s(),g.DNE(3,z,3,4,"ng-container",6)(4,Z,1,1,"ng-template",null,5,g.C5r)),2&S){const Y=g.sdS(5),se=g.XpG();g.Y8G("flagged",se.molecularProfile.flagged)("entityColor",se.iconColor),g.R7$(),g.Y8G("nzTwotoneColor",g.bMT(2,5,"MolecularProfile")),g.R7$(2),g.Y8G("ngIf",se.truncateLongName)("ngIfElse",Y)}}let E=(()=>{class S extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.truncationLength=20,this.iconColor=(0,r.P)("MolecularProfile")}idFunction(){return this.molecularProfile.id}ngOnInit(){if(super.ngOnInit(),void 0===this.molecularProfile)throw new Error("cvc-molecular-profile-tag requires LinkableMolecularProfile input, none supplied.");"number"==typeof this.truncateLongName&&(this.truncationLength=this.truncateLongName),"segments"in this.molecularProfile&&(this.molecularProfile.name=this.molecularProfile.segments.map(Y=>"text"in Y?Y.text:Y.name).join(" "))}static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275cmp=g.VBU({type:S,selectors:[["cvc-molecular-profile-tag"]],inputs:{molecularProfile:"molecularProfile",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[g.Vt3],decls:9,vars:2,consts:[["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],["popoverContent",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["nz-popover","","nzPopoverTrigger","hover",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode"],[3,"molecularProfileId",4,"ngIf"],[3,"molecularProfileId"],[3,"nzOnClose","nzMode","ngClass"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-molecularprofile","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(se,Be){if(1&se&&g.DNE(0,x,3,2,"ng-container",6)(1,he,3,2,"ng-template",null,0,g.C5r)(3,me,2,5,"ng-template",null,1,g.C5r)(5,H,1,1,"ng-template",null,2,g.C5r)(7,pe,6,7,"ng-template",null,3,g.C5r),2&se){const Pt=g.sdS(6);g.Y8G("ngIf",Be.linked)("ngIfElse",Pt)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,G.s,L.L_,B.Dn,A.q,w.N,I.H,F.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return S})()},996:(Rt,De,c)=>{c.d(De,{o:()=>w});var t=c(177),r=c(1188),g=c(5699),e=c(5103),M=c(1236),G=c(4917),L=c(8052),B=c(4994),A=c(3953);let w=(()=>{class I{static#e=this.\u0275fac=function(V){return new(V||I)};static#t=this.\u0275mod=A.$C({type:I});static#n=this.\u0275inj=A.G2t({imports:[t.MD,r.iI,g.T,M.MC,e.Y3,G.i,L.b,B.a]})}return I})()},6564:(Rt,De,c)=>{c.d(De,{F:()=>x});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(5103),B=c(5703),A=c(7679),w=c(2e3),I=c(1774);function F(ne,J){if(1&ne&&(e.nrm(0,"i",9),e.EFF(1)),2&ne){const be=e.XpG().ngIf;e.R7$(),e.SpI(" ",be.name," ")}}function X(ne,J){if(1&ne&&(e.j41(0,"cvc-link-tag",10),e.EFF(1),e.k0s()),2&ne){const be=e.XpG().ngIf;e.Y8G("href",be.url),e.R7$(),e.SpI(" ",be.hpoId," ")}}function V(ne,J){if(1&ne&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,F,2,1,"ng-template",null,0,e.C5r)(4,X,2,2,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.EFF(8),e.k0s(),e.j41(9,"nz-descriptions-item",7),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",8),e.EFF(12),e.k0s()()(),e.bVm()),2&ne){const be=J.ngIf,Oe=e.sdS(3),he=e.sdS(5);e.R7$(),e.Y8G("nzTitle",Oe)("nzExtra",he),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",be.assertionCount," "),e.R7$(2),e.SpI(" ",be.evidenceItemCount," "),e.R7$(2),e.SpI(" ",be.molecularProfileCount," ")}}let x=(()=>{class ne{constructor(be){this.gql=be}ngOnInit(){if(null==this.phenotypeId)throw new Error("cvc-phenotype-popover requires valid phenotypeId input.");this.phenotype$=this.gql.watch({phenotypeId:this.phenotypeId}).valueChanges.pipe((0,r.T)(({data:be})=>be?.phenotypePopover),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(Oe){return new(Oe||ne)(e.rXU(M.WeE))};static#t=this.\u0275cmp=e.VBU({type:ne,selectors:[["cvc-phenotype-popover"]],inputs:{phenotypeId:"phenotypeId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Molecular Profiles","nzSpan","2"],["nz-icon","","nzType","civic-phenotype","nzTheme","twotone","nzTwotoneColor","#2A63B6"],["tooltip","View in the Human Phenotype Ontology",3,"href"]],template:function(Oe,he){1&Oe&&(e.j41(0,"div",2),e.DNE(1,V,13,6,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&Oe&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,he.phenotype$)))},dependencies:[G.bT,L.Dn,B.cK,A.a,w.xA,w.gr,I.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return ne})()},2582:(Rt,De,c)=>{c.d(De,{y:()=>L});var t=c(177),r=c(5703),g=c(7054),e=c(2e3),M=c(5103),G=c(3953);let L=(()=>{class B{static#e=this.\u0275fac=function(I){return new(I||B)};static#t=this.\u0275mod=G.$C({type:B});static#n=this.\u0275inj=G.G2t({imports:[t.MD,M.Y3,r.Ti,g.L,e.WF]})}return B})()},7047:(Rt,De,c)=>{c.d(De,{A:()=>he});var t=c(6514),r=c(3953),g=c(177),e=c(1188),M=c(5699),G=c(1236),L=c(5103),B=c(6564),A=c(3075);function w(Ie,me){}function I(Ie,me){if(1&Ie&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,w,0,0,"ng-template",7),r.k0s(),r.bVm()),2&Ie){const de=r.XpG(),H=r.sdS(2);r.R7$(),r.Y8G("routerLink",de.phenotype.link),r.R7$(),r.Y8G("ngTemplateOutlet",H)}}function F(Ie,me){}function X(Ie,me){if(1&Ie&&r.nrm(0,"cvc-phenotype-popover",9),2&Ie){const de=r.XpG(2);r.Y8G("phenotypeId",de.phenotype.id)}}function V(Ie,me){if(1&Ie){const de=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(z){r.eBV(de);const Z=r.XpG();return r.Njj(Z.itemClosed(z))}),r.DNE(1,F,0,0,"ng-template",7),r.k0s(),r.DNE(2,X,1,1,"ng-template",null,4,r.C5r)}if(2&Ie){const de=r.sdS(3),H=r.XpG(),z=r.sdS(8);r.Y8G("nzPopoverMouseEnterDelay",H.onCloseClicked?0:.5)("nzPopoverContent",de)("nzPopoverTrigger",H.enablePopover?"hover":null)("nzMode",H.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",z)}}function x(Ie,me){}function ne(Ie,me){if(1&Ie){const de=r.RV6();r.j41(0,"nz-tag",10),r.bIt("nzOnClose",function(z){r.eBV(de);const Z=r.XpG();return r.Njj(Z.itemClosed(z))}),r.DNE(1,x,0,0,"ng-template",7),r.k0s()}if(2&Ie){const de=r.XpG(),H=r.sdS(8);r.Y8G("nzMode",de.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",H)}}function J(Ie,me){}function be(Ie,me){if(1&Ie&&r.DNE(0,J,0,0,"ng-template",7),2&Ie){r.XpG();const de=r.sdS(2);r.Y8G("ngTemplateOutlet",de)}}function Oe(Ie,me){if(1&Ie&&(r.nrm(0,"i",11),r.nI1(1,"entityColor"),r.EFF(2)),2&Ie){const de=r.XpG();r.Y8G("nzTwotoneColor",r.bMT(1,2,"Phenotype")),r.R7$(2),r.SpI(" ",de.phenotype.name,"\n")}}let he=(()=>{class Ie extends t.s{constructor(){super(...arguments),this.enablePopover=!0}set phenotype(de){if(!de)throw new Error("phenotype-tag phentype input requires LinkablePhenotype.");this._phenotype=de}get phenotype(){return this._phenotype}idFunction(){return this.phenotype.id}static#e=this.\u0275fac=(()=>{let de;return function(z){return(de||(de=r.xGo(Ie)))(z||Ie)}})();static#t=this.\u0275cmp=r.VBU({type:Ie,selectors:[["cvc-phenotype-tag"]],inputs:{phenotype:"phenotype",enablePopover:"enablePopover"},features:[r.Vt3],decls:9,vars:2,consts:[["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],["phenotypePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"phenotypeId"],[3,"nzOnClose","nzMode"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"]],template:function(H,z){if(1&H&&r.DNE(0,I,3,2,"ng-container",5)(1,V,4,5,"ng-template",null,0,r.C5r)(3,ne,2,2,"ng-template",null,1,r.C5r)(5,be,1,1,"ng-template",null,2,r.C5r)(7,Oe,3,4,"ng-template",null,3,r.C5r),2&H){const Z=r.sdS(6);r.Y8G("ngIf",z.linked)("ngIfElse",Z)}},dependencies:[g.bT,g.T3,e.Wk,M.s,G.L_,L.Dn,B.F,A.R],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return Ie})()},1542:(Rt,De,c)=>{c.d(De,{X:()=>A});var t=c(177),r=c(1188),g=c(4917),e=c(5103),M=c(1236),G=c(5699),L=c(2582),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,r.iI,G.T,M.MC,e.Y3,L.y,g.i]})}return w})()},2387:(Rt,De,c)=>{c.d(De,{N:()=>A});var t=c(505),r=c(3953),g=c(177);const e=["*"],M=w=>({background:w});function G(w,I){if(1&w&&r.nrm(0,"div",3),2&w){const F=r.XpG();r.Y8G("ngStyle",r.eq3(1,M,F.flagColor))}}function L(w,I){if(1&w&&r.nrm(0,"div",4),2&w){const F=r.XpG();r.Y8G("ngStyle",r.eq3(1,M,F.entityColor))}}function B(w,I){if(1&w&&r.nrm(0,"div",5),2&w){const F=r.XpG();r.Y8G("ngStyle",r.eq3(1,M,F.entityColor))}}let A=(()=>{class w{constructor(){this.hasRevisions=!1,this.flagged=!1,this.hasComments=!1,this.entityColor="#AAA",this.flagColor=(0,t.P)("Flag")}static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275cmp=r.VBU({type:w,selectors:[["cvc-icon-badges"]],inputs:{hasRevisions:"hasRevisions",flagged:"flagged",hasComments:"hasComments",entityColor:"entityColor"},ngContentSelectors:e,decls:4,vars:3,consts:[["class","cvc-badge badge-flags",3,"ngStyle",4,"ngIf"],["class","cvc-badge badge-revisions",3,"ngStyle",4,"ngIf"],["class","cvc-badge badge-comments",3,"ngStyle",4,"ngIf"],[1,"cvc-badge","badge-flags",3,"ngStyle"],[1,"cvc-badge","badge-revisions",3,"ngStyle"],[1,"cvc-badge","badge-comments",3,"ngStyle"]],template:function(X,V){1&X&&(r.NAR(),r.SdG(0),r.DNE(1,G,1,3,"div",0)(2,L,1,3,"div",1)(3,B,1,3,"div",2)),2&X&&(r.R7$(),r.Y8G("ngIf",V.flagged),r.R7$(),r.Y8G("ngIf",V.hasRevisions),r.R7$(),r.Y8G("ngIf",V.hasComments))},dependencies:[g.bT,g.B3],styles:["[_nghost-%COMP%]{display:inline-block;position:relative;line-height:1}.cvc-badge[_ngcontent-%COMP%]{position:absolute;z-index:auto;width:4px;min-width:4px;height:4px;border-radius:100%;box-shadow:0 0 0 1px #fff;background:#aaa}.cvc-badge.badge-revisions[_ngcontent-%COMP%]{top:.5px;right:.5px;transform:translate(50%,-50%)}.cvc-badge.badge-flags[_ngcontent-%COMP%]{top:.5px;left:.5px;transform:translate(-50%,-50%)}.cvc-badge.badge-comments[_ngcontent-%COMP%]{bottom:.5px;right:.5px;transform:translate(50%,50%)}"],changeDetection:0})}return w})()},4994:(Rt,De,c)=>{c.d(De,{a:()=>e});var t=c(177),r=c(4917),g=c(3953);let e=(()=>{class M{static#e=this.\u0275fac=function(B){return new(B||M)};static#t=this.\u0275mod=g.$C({type:M});static#n=this.\u0275inj=g.G2t({imports:[t.MD,r.i]})}return M})()},7679:(Rt,De,c)=>{c.d(De,{a:()=>G});var t=c(3953),r=c(5154),g=c(5699),e=c(5103);const M=["*"];let G=(()=>{class L{set href(A){if(!A)throw new Error("link-tag link Input requires string.");this._href=A}get href(){return this._href?this._href:""}static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275cmp=t.VBU({type:L,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:M,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(w,I){1&w&&(t.NAR(),t.j41(0,"a",0)(1,"nz-tag",1),t.nrm(2,"i",2),t.SdG(3),t.k0s()()),2&w&&(t.Y8G("href",I.href,t.B4B),t.R7$(),t.Y8G("nzTooltipTitle",I.tooltip)("nzTooltipTrigger",I.tooltip?"hover":null),t.R7$(),t.Y8G("nzType",I.iconName?I.iconName:"link"))},dependencies:[r.LH,g.s,e.Dn],encapsulation:2})}return L})()},7054:(Rt,De,c)=>{c.d(De,{L:()=>G});var t=c(177),r=c(5154),g=c(5699),e=c(5103),M=c(3953);let G=(()=>{class L{static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275mod=M.$C({type:L});static#n=this.\u0275inj=M.G2t({imports:[t.MD,r.Qt,g.T,e.Y3]})}return L})()},9214:(Rt,De,c)=>{c.d(De,{y:()=>M});var t=c(177),r=c(5103),g=c(5699),e=c(3953);let M=(()=>{class G{static#e=this.\u0275fac=function(A){return new(A||G)};static#t=this.\u0275mod=e.$C({type:G});static#n=this.\u0275inj=e.G2t({imports:[t.MD,g.T,r.Y3]})}return G})()},3296:(Rt,De,c)=>{c.d(De,{M:()=>w});var t=c(4412),r=c(605),g=c(1594),e=c(3953),M=c(177),G=c(5699),L=c(5103),B=c(1774);function A(I,F){1&I&&(e.j41(0,"nz-tag",1),e.nrm(1,"i",2),e.j41(2,"span"),e.EFF(3,"End of results reached"),e.k0s()())}let w=(()=>{class I{set cvcShowTag(X){void 0!==X&&X&&this.showTag()}constructor(X){this.cdr=X,this.showTag$=new t.t(!1)}showTag(){!1===this.showTag$.getValue()&&(this.showTag$.next(!0),(0,r.Y)(3e3).pipe((0,g.$)()).subscribe(()=>{this.showTag$.next(!1),this.cdr.detectChanges()}))}static#e=this.\u0275fac=function(V){return new(V||I)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:I,selectors:[["cvc-no-more-rows"]],inputs:{cvcShowTag:"cvcShowTag"},decls:2,vars:3,consts:[["nzColor","warning",4,"ngIf"],["nzColor","warning"],["nz-icon","","nzType","exclamation-circle"]],template:function(V,x){1&V&&(e.DNE(0,A,4,0,"nz-tag",0),e.nI1(1,"ngrxPush")),2&V&&e.Y8G("ngIf",e.bMT(1,1,x.showTag$))},dependencies:[M.bT,G.s,L.Dn,B.L9],encapsulation:2,changeDetection:0})}return I})()},2143:(Rt,De,c)=>{c.d(De,{n:()=>J});var t=c(3953),r=c(177),g=c(5699),e=c(5103),M=c(1236),G=c(2e3),L=c(2617),B=c(7679),A=c(8139);function w(be,Oe){1&be&&t.nrm(0,"i",5)}function I(be,Oe){1&be&&t.nrm(0,"i",6)}function F(be,Oe){if(1&be&&(t.j41(0,"nz-tag",2),t.nI1(1,"titlecase"),t.DNE(2,w,1,0,"i",3)(3,I,1,0,"i",4),t.EFF(4),t.nI1(5,"titlecase"),t.k0s()),2&be){const he=t.XpG(),Ie=t.sdS(2);t.Y8G("nzColor",he.tagStatus)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",Ie)("nzPopoverTitle","This Source has been identified by Retraction Watch as status: "+t.bMT(1,8,he.retractionNature))("nzPopoverTrigger",he.enablePopover?"hover":null),t.R7$(2),t.Y8G("ngIf","error"==he.tagStatus),t.R7$(),t.Y8G("ngIf","warning"==he.tagStatus),t.R7$(),t.SpI(" ",t.bMT(5,10,he.retractionNature),"\n")}}function X(be,Oe){if(1&be&&(t.j41(0,"nz-descriptions-item",13),t.EFF(1),t.nI1(2,"timeAgo"),t.k0s()),2&be){const he=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,he.retractionDate))}}function V(be,Oe){if(1&be&&(t.j41(0,"nz-list-item"),t.EFF(1),t.k0s()),2&be){const he=Oe.$implicit;t.R7$(),t.SpI(" ",he.replace("+","")," ")}}function x(be,Oe){if(1&be&&(t.j41(0,"nz-descriptions-item",14)(1,"nz-list",15),t.DNE(2,V,2,1,"nz-list-item",16),t.k0s()()),2&be){const he=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",he.retractionReasons.split(";"))}}function ne(be,Oe){if(1&be&&(t.j41(0,"nz-descriptions",7),t.DNE(1,X,3,3,"nz-descriptions-item",8)(2,x,3,1,"nz-descriptions-item",9),t.j41(3,"nz-descriptions-item",10)(4,"cvc-link-tag",11),t.EFF(5," Retraction Watch Homepage "),t.k0s(),t.j41(6,"cvc-link-tag",12),t.EFF(7," Retraction Watch Database "),t.k0s()()()),2&be){const he=t.XpG();t.Y8G("nzColumn",1),t.R7$(),t.Y8G("ngIf",he.retractionDate),t.R7$(),t.Y8G("ngIf",he.retractionReasons)}}let J=(()=>{class be{constructor(){this.enablePopover=!0}set retractionNature(he){this._retractionNature=he,he&&("Retraction"==he?(this.tagStatus="error",this.retracted=!0):(this.tagStatus="warning",this.retracted=!1))}get retractionNature(){return this._retractionNature}ngOnInit(){if(void 0===this.retractionNature)throw new Error("Must pass a valid retractionNature to cvc-status-tag component");if(void 0===this.retractionDate)throw new Error("Must pass a valid retractionDate to cvc-status-tag component");if(void 0===this.retractionReasons)throw new Error("Must pass a valid retractionReasons to cvc-status-tag component")}static#e=this.\u0275fac=function(Ie){return new(Ie||be)};static#t=this.\u0275cmp=t.VBU({type:be,selectors:[["cvc-retraction-status-tag"]],inputs:{retractionNature:"retractionNature",retractionDate:"retractionDate",retractionReasons:"retractionReasons",enablePopover:"enablePopover"},decls:3,vars:1,consts:[["retractionPopover",""],["nz-popover","","nzPopoverPlacement","left",3,"nzColor","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTitle","nzPopoverTrigger",4,"ngIf"],["nz-popover","","nzPopoverPlacement","left",3,"nzColor","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTitle","nzPopoverTrigger"],["nz-icon","","nzType","close-circle",4,"ngIf"],["nz-icon","","nzType","exclamation-circle",4,"ngIf"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Date",4,"ngIf"],["nzTitle","Reasons",4,"ngIf"],["nzTitle","Links"],["href","https://retractionwatch.com/"],["href","http://retractiondatabase.org/RetractionSearch.aspx?"],["nzTitle","Date"],["nzTitle","Reasons"],["nzSize","small"],[4,"ngFor","ngForOf"]],template:function(Ie,me){1&Ie&&t.DNE(0,F,6,12,"nz-tag",1)(1,ne,8,3,"ng-template",null,0,t.C5r),2&Ie&&t.Y8G("ngIf",me.tagStatus)},dependencies:[r.Sq,r.bT,g.s,e.Dn,M.L_,G.xA,G.gr,L.eE,L.lQ,B.a,r.PV,A.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}"]})}return be})()},174:(Rt,De,c)=>{c.d(De,{u:()=>w});var t=c(177),r=c(5699),g=c(5103),e=c(1236),M=c(2e3),G=c(2617),L=c(4917),B=c(7054),A=c(3953);let w=(()=>{class I{static#e=this.\u0275fac=function(V){return new(V||I)};static#t=this.\u0275mod=A.$C({type:I});static#n=this.\u0275inj=A.G2t({imports:[t.MD,r.T,g.Y3,e.MC,M.WF,G.rD,L.i,B.L]})}return I})()},311:(Rt,De,c)=>{c.d(De,{g:()=>I});var t=c(3953),r=c(177),g=c(5699),e=c(5103);function M(F,X){1&F&&t.nrm(0,"i",7)}function G(F,X){1&F&&t.nrm(0,"i",8)}function L(F,X){1&F&&t.nrm(0,"i",9)}function B(F,X){1&F&&t.nrm(0,"i",10)}function A(F,X){1&F&&t.nrm(0,"i",10)}function w(F,X){if(1&F&&(t.j41(0,"nz-tag",1),t.qex(1,2),t.DNE(2,M,1,0,"i",3)(3,G,1,0,"i",4)(4,L,1,0,"i",5)(5,B,1,0,"i",6)(6,A,1,0,"i",6),t.bVm(),t.EFF(7),t.nI1(8,"titlecase"),t.k0s()),2&F){const V=t.XpG();t.Y8G("nzColor",V.tagStatus),t.R7$(),t.Y8G("ngSwitch",V.tagStatus),t.R7$(),t.Y8G("ngSwitchCase","success"),t.R7$(),t.Y8G("ngSwitchCase","error"),t.R7$(),t.Y8G("ngSwitchCase","warning"),t.R7$(),t.Y8G("ngSwitchCase","processing"),t.R7$(),t.Y8G("ngSwitchCase","default"),t.R7$(),t.SpI(" ",t.bMT(8,8,V.status),"\n")}}let I=(()=>{class F{constructor(){this.statusColorMap={ACCEPTED:"success",REJECTED:"error",SUBMITTED:"warning",NEW:"processing",SUPERSEDED:"default",OPEN:"error",RESOLVED:"default"}}set status(V){this._status=V,V&&(this.tagStatus=this.statusColorMap[V])}get status(){return this._status}ngOnInit(){if(void 0===this.status)throw new Error("Must pass a valid EvidenceStatus, RevisionStatus, or FlagState to cvc-status-tag component")}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275cmp=t.VBU({type:F,selectors:[["cvc-status-tag"]],inputs:{status:"status"},decls:1,vars:1,consts:[[3,"nzColor",4,"ngIf"],[3,"nzColor"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","",4,"ngSwitchCase"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon",""]],template:function(x,ne){1&x&&t.DNE(0,w,9,10,"nz-tag",0),2&x&&t.Y8G("ngIf",ne.tagStatus)},dependencies:[r.bT,r.ux,r.e1,g.s,e.Dn,r.PV],encapsulation:2})}return F})()},9590:(Rt,De,c)=>{c.d(De,{R:()=>M});var t=c(177),r=c(5699),g=c(5103),e=c(3953);let M=(()=>{class G{static#e=this.\u0275fac=function(A){return new(A||G)};static#t=this.\u0275mod=e.$C({type:G});static#n=this.\u0275inj=e.G2t({imports:[t.MD,r.T,g.Y3]})}return G})()},4247:(Rt,De,c)=>{c.d(De,{L:()=>g});var t=c(3953);const r=["*"];let g=(()=>{class e{constructor(){}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-tag-group"]],ngContentSelectors:r,decls:1,vars:0,template:function(L,B){1&L&&(t.NAR(),t.SdG(0))},styles:["[_nghost-%COMP%] >*:first-child nz-tag{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}[_nghost-%COMP%] >*:last-child nz-tag{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px;border-left-color:#e9e9e9}"]})}return e})()},2502:(Rt,De,c)=>{c.d(De,{u:()=>g});var t=c(177),r=c(3953);let g=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},7855:(Rt,De,c)=>{c.d(De,{M:()=>g});var t=c(3953);const r=["*"];let g=(()=>{class e{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(L,B){2&L&&t.AVh("xs","xs"===B.size||!B.size)("sm","sm"===B.size)},inputs:{size:"size"},ngContentSelectors:r,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(L,B){1&L&&(t.NAR(),t.j41(0,"div",0),t.SdG(1),t.k0s())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"],changeDetection:0})}return e})()},2142:(Rt,De,c)=>{c.d(De,{x:()=>g});var t=c(177),r=c(3953);let g=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},5652:(Rt,De,c)=>{c.d(De,{u:()=>me});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(5103),B=c(5703),A=c(2e3),w=c(7679),I=c(7855),F=c(6726),X=c(2143),V=c(1774);function x(de,H){if(1&de&&(e.nrm(0,"i",12),e.EFF(1)),2&de){const z=e.XpG().ngIf;e.R7$(),e.Lme(" ",z.displayType,":\xa0",z.citation," ")}}function ne(de,H){if(1&de&&e.nrm(0,"cvc-retraction-status-tag",15),2&de){const z=e.XpG(2).ngIf;e.Y8G("retractionNature",z.retractionNature)("retractionDate",z.retractionDate)("retractionReasons",z.retractionReasons)("enablePopover",!1)}}function J(de,H){if(1&de&&(e.j41(0,"cvc-link-tag",13),e.EFF(1),e.k0s(),e.DNE(2,ne,1,4,"cvc-retraction-status-tag",14)),2&de){const z=e.XpG().ngIf;e.Y8G("href",z.sourceUrl)("tooltip","View on "+z.displayType),e.R7$(),e.SpI(" ",z.displayType+":"+z.citationId," "),e.R7$(),e.Y8G("ngIf",z.retractionNature&&z.retractionDate&&z.retractionReasons)}}function be(de,H){1&de&&e.nrm(0,"cvc-clinical-trial-tag",17),2&de&&e.Y8G("clinicalTrial",H.$implicit)("enablePopover",!1)}function Oe(de,H){if(1&de&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,be,1,2,"cvc-clinical-trial-tag",16),e.k0s(),e.bVm()),2&de){const z=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",z.clinicalTrials)}}function he(de,H){1&de&&e.EFF(0," -- ")}function Ie(de,H){if(1&de&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,x,2,2,"ng-template",null,0,e.C5r)(4,J,3,4,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",6)(7,"nz-descriptions-item",7),e.EFF(8),e.k0s(),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.DNE(14,Oe,3,1,"ng-container",11)(15,he,1,0,"ng-template",null,2,e.C5r),e.k0s()()(),e.bVm()),2&de){const z=H.ngIf,Z=e.sdS(3),pe=e.sdS(5),E=e.sdS(16);e.R7$(),e.Y8G("nzTitle",Z)("nzExtra",pe),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",z.title," "),e.R7$(2),e.SpI(" ",z.fullJournalTitle," "),e.R7$(2),e.SpI(" ",z.evidenceItemCount," "),e.R7$(2),e.Y8G("ngIf",z.clinicalTrials&&z.clinicalTrials.length>0)("ngIfElse",E)}}let me=(()=>{class de{constructor(z){this.gql=z}ngOnInit(){if(null==this.sourceId)throw new Error("cvc-source-popover requires valid sourceId input.");this.source$=this.gql.watch({sourceId:this.sourceId}).valueChanges.pipe((0,r.T)(({data:z})=>z?.sourcePopover),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(Z){return new(Z||de)(e.rXU(M.jme))};static#t=this.\u0275cmp=e.VBU({type:de,selectors:[["cvc-source-popover"]],inputs:{sourceId:"sourceId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noTrials",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Title","nzSpan","2"],["nzTitle","Journal","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Clinical Trials:","nzSpan","2"],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","civic-source","nzTheme","twotone","nzTwotoneColor","#F9BA45"],[3,"href","tooltip"],[3,"retractionNature","retractionDate","retractionReasons","enablePopover",4,"ngIf"],[3,"retractionNature","retractionDate","retractionReasons","enablePopover"],[3,"clinicalTrial","enablePopover",4,"ngFor","ngForOf"],[3,"clinicalTrial","enablePopover"]],template:function(Z,pe){1&Z&&(e.j41(0,"div",3),e.DNE(1,Ie,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&Z&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,pe.source$)))},dependencies:[G.Sq,G.bT,L.Dn,B.cK,A.xA,A.gr,w.a,I.M,F.X,X.n,V.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return de})()},7683:(Rt,De,c)=>{c.d(De,{B:()=>w});var t=c(177),r=c(5703),g=c(7054),e=c(2e3),M=c(2142),G=c(9619),L=c(5103),B=c(174),A=c(3953);let w=(()=>{class I{static#e=this.\u0275fac=function(V){return new(V||I)};static#t=this.\u0275mod=A.$C({type:I});static#n=this.\u0275inj=A.G2t({imports:[t.MD,L.Y3,r.Ti,e.WF,g.L,M.x,G.u,B.u]})}return I})()},9062:(Rt,De,c)=>{c.d(De,{D:()=>z});var t=c(6514),r=c(3953),g=c(8335),e=c(177),M=c(1188),G=c(5103),L=c(1236),B=c(5699),A=c(5652),w=c(2287),I=c(3075);const F=Z=>({deprecated:Z});function X(Z,pe){}function V(Z,pe){if(1&Z&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,X,0,0,"ng-template",7),r.k0s(),r.bVm()),2&Z){const E=r.XpG(),S=r.sdS(2);r.R7$(),r.Y8G("routerLink",E.source.link),r.R7$(),r.Y8G("ngTemplateOutlet",S)}}function x(Z,pe){}function ne(Z,pe){if(1&Z&&r.nrm(0,"cvc-source-popover",9),2&Z){const E=r.XpG(2);r.Y8G("sourceId",E.source.id)}}function J(Z,pe){if(1&Z){const E=r.RV6();r.j41(0,"nz-tag",8),r.mxI("nzPopoverVisibleChange",function(R){r.eBV(E);const Y=r.XpG();return r.DH7(Y.popoverVisible,R)||(Y.popoverVisible=R),r.Njj(R)}),r.bIt("nzOnClose",function(R){r.eBV(E);const Y=r.XpG();return r.Njj(Y.itemClosed(R))}),r.DNE(1,x,0,0,"ng-template",7),r.k0s(),r.DNE(2,ne,1,1,"ng-template",null,3,r.C5r)}if(2&Z){const E=r.sdS(3),S=r.XpG(),R=r.sdS(6);r.Y8G("ngClass",r.eq3(7,F,S.source.deprecated))("nzPopoverMouseEnterDelay",S.onCloseClicked?0:.5)("nzPopoverContent",E)("nzPopoverTrigger",S.enablePopover?"hover":null),r.R50("nzPopoverVisible",S.popoverVisible),r.Y8G("nzMode",S.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",R)}}function be(Z,pe){}function Oe(Z,pe){if(1&Z&&r.DNE(0,be,0,0,"ng-template",7),2&Z){r.XpG();const E=r.sdS(2);r.Y8G("ngTemplateOutlet",E)}}function he(Z,pe){if(1&Z&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&Z){const E=r.XpG(3);r.R7$(),r.SpI(" ",r.i5U(2,1,E.displayName,50)," ")}}function Ie(Z,pe){if(1&Z&&(r.qex(0),r.EFF(1),r.bVm()),2&Z){const E=r.XpG(3);r.R7$(),r.SpI(" ",E.displayName," ")}}function me(Z,pe){if(1&Z&&(r.qex(0),r.DNE(1,he,3,4,"ng-container",11)(2,Ie,2,1,"ng-container",11),r.bVm()),2&Z){const E=r.XpG(2);r.R7$(),r.Y8G("ngIf",E.truncateLongName),r.R7$(),r.Y8G("ngIf",!E.truncateLongName)}}function de(Z,pe){if(1&Z&&r.EFF(0),2&Z){const E=r.XpG(2);r.SpI(" SID:",E.source.id," ")}}function H(Z,pe){if(1&Z&&(r.nrm(0,"i",10),r.nI1(1,"entityColor"),r.DNE(2,me,3,2,"ng-container",5)(3,de,1,1,"ng-template",null,4,r.C5r)),2&Z){const E=r.sdS(4),S=r.XpG();r.Y8G("nzTwotoneColor",r.bMT(1,3,"Source")),r.R7$(2),r.Y8G("ngIf","normal"===S.mode)("ngIfElse",E)}}let z=(()=>{class Z extends t.s{set source(E){if(!E)throw new Error("source-tag source input requires SourceWithDisplayName or SourceWithCitation.");this._source=E,this.displayName="displayName"in this.source?this.source.displayName:this.sourceTypeDisplay.transform(this.source.sourceType)+": "+this.source.citation}get source(){return this._source}constructor(E){super(),this.sourceTypeDisplay=E,this.enablePopover=!0,this.linked=!0,this.mode="normal",this.truncateLongName=!1}idFunction(){return this.source.id}static#e=this.\u0275fac=function(S){return new(S||Z)(r.rXU(g.Q))};static#t=this.\u0275cmp=r.VBU({type:Z,selectors:[["cvc-source-tag"]],inputs:{source:"source",enablePopover:"enablePopover",linked:"linked",mode:"mode",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["sourcePopover",""],["concise",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverVisibleChange","nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzPopoverVisible","nzMode"],[3,"sourceId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[4,"ngIf"]],template:function(S,R){if(1&S&&r.DNE(0,V,3,2,"ng-container",5)(1,J,4,9,"ng-template",null,0,r.C5r)(3,Oe,1,1,"ng-template",null,1,r.C5r)(5,H,5,5,"ng-template",null,2,r.C5r),2&S){const Y=r.sdS(4);r.Y8G("ngIf",R.linked)("ngIfElse",Y)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,G.Dn,L.L_,B.s,A.u,w.H,I.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return Z})()},1209:(Rt,De,c)=>{c.d(De,{k:()=>A});var t=c(177),r=c(1236),g=c(1188),e=c(7683),M=c(5699),G=c(5103),L=c(4917),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,g.iI,G.Y3,r.MC,M.T,e.B,L.i]})}return w})()},3287:(Rt,De,c)=>{c.d(De,{a:()=>H});var t=c(6354),r=c(5964),g=c(9199),e=c(3953),M=c(9145),G=c(177),L=c(5703),B=c(2e3),A=c(5103),w=c(7391),I=c(5699),F=c(5154),X=c(7679),V=c(1774),x=c(2287);function ne(z,Z){if(1&z&&(e.nrm(0,"i",12),e.EFF(1),e.nI1(2,"truncate")),2&z){const pe=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,pe.name,50)," ")}}function J(z,Z){if(1&z&&(e.j41(0,"cvc-link-tag",14),e.EFF(1),e.k0s()),2&z){const pe=e.XpG(2).ngIf;e.Y8G("href",pe.therapyUrl),e.R7$(),e.SpI(" ",pe.ncitId," ")}}function be(z,Z){if(1&z&&e.DNE(0,J,2,2,"cvc-link-tag",13),2&z){const pe=e.XpG().ngIf,E=e.sdS(7);e.Y8G("ngIf",pe.ncitId)("ngIfElse",E)}}function Oe(z,Z){1&z&&(e.j41(0,"span",15),e.EFF(1,"No NCIt ID"),e.k0s())}function he(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",16),e.EFF(1),e.k0s()),2&z){const pe=e.XpG().ngIf;e.R7$(),e.SpI(" ",pe.name," ")}}function Ie(z,Z){if(1&z&&(e.j41(0,"nz-tag",19),e.EFF(1),e.nI1(2,"truncate"),e.k0s()),2&z){const pe=Z.$implicit;e.Y8G("nzTooltipTitle",pe),e.R7$(),e.JRh(e.bMT(2,2,pe))}}function me(z,Z){if(1&z&&(e.j41(0,"nz-descriptions-item",17),e.DNE(1,Ie,3,4,"nz-tag",18),e.k0s()),2&z){const pe=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",pe.therapyAliases)}}function de(z,Z){if(1&z&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,ne,3,4,"ng-template",null,0,e.C5r)(4,be,1,2,"ng-template",null,1,e.C5r)(6,Oe,2,0,"ng-template",null,2,e.C5r),e.j41(8,"nz-descriptions",6),e.DNE(9,he,2,1,"nz-descriptions-item",7)(10,me,2,1,"nz-descriptions-item",8),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.EFF(14),e.k0s(),e.j41(15,"nz-descriptions-item",11),e.EFF(16),e.k0s()()(),e.bVm()),2&z){const pe=Z.ngIf,E=e.sdS(3),S=e.sdS(5);e.R7$(),e.Y8G("nzTitle",E)("nzExtra",S),e.R7$(7),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",pe.name.length>50),e.R7$(),e.Y8G("ngIf",pe.therapyAliases.length>0),e.R7$(2),e.SpI(" ",pe.assertionCount," "),e.R7$(2),e.SpI(" ",pe.evidenceItemCount," "),e.R7$(2),e.SpI(" ",pe.molecularProfileCount," ")}}let H=(()=>{class z{constructor(pe){this.gql=pe}ngOnInit(){if(null==this.therapyId)throw new Error("cvc-therapy-popover requires valid therapyId input.");this.therapy$=this.gql.watch({therapyId:this.therapyId}).valueChanges.pipe((0,t.T)(({data:pe})=>pe?.therapyPopover),(0,r.p)(g.kP))}static#e=this.\u0275fac=function(E){return new(E||z)(e.rXU(M.RQS))};static#t=this.\u0275cmp=e.VBU({type:z,selectors:[["cvc-therapy-popover"]],inputs:{therapyId:"therapyId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noNcitId",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Molecular Profiles","nzSpan","2"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"],["tooltip","View on NCI Thesaurus",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on NCI Thesaurus",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"]],template:function(E,S){1&E&&(e.j41(0,"div",3),e.DNE(1,de,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&E&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,S.therapy$)))},dependencies:[G.Sq,G.bT,L.cK,B.xA,B.gr,A.Dn,w.Di,I.s,F.LH,X.a,V.L9,x.H],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return z})()},3126:(Rt,De,c)=>{c.d(De,{t:()=>F});var t=c(177),r=c(1188),g=c(5703),e=c(2e3),M=c(7054),G=c(5103),L=c(7391),B=c(4917),A=c(5699),w=c(5154),I=c(3953);let F=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=I.$C({type:X});static#n=this.\u0275inj=I.G2t({imports:[t.MD,r.iI,g.Ti,e.WF,G.Y3,L.kT,A.T,w.Qt,M.L,B.i]})}return X})()},9563:(Rt,De,c)=>{c.d(De,{R:()=>he});var t=c(6514),r=c(3953),g=c(177),e=c(1188),M=c(5699),G=c(1236),L=c(5103),B=c(3287),A=c(2287);function w(Ie,me){}function I(Ie,me){if(1&Ie&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,w,0,0,"ng-template",7),r.k0s(),r.bVm()),2&Ie){const de=r.XpG(),H=r.sdS(2);r.R7$(),r.Y8G("routerLink",de.therapy.link),r.R7$(),r.Y8G("ngTemplateOutlet",H)}}function F(Ie,me){}function X(Ie,me){if(1&Ie&&r.nrm(0,"cvc-therapy-popover",9),2&Ie){const de=r.XpG(2);r.Y8G("therapyId",de.therapy.id)}}function V(Ie,me){if(1&Ie){const de=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(z){r.eBV(de);const Z=r.XpG();return r.Njj(Z.itemClosed(z))}),r.DNE(1,F,0,0,"ng-template",7),r.k0s(),r.DNE(2,X,1,1,"ng-template",null,3,r.C5r)}if(2&Ie){const de=r.sdS(3),H=r.XpG(),z=r.sdS(6);r.Y8G("nzPopoverMouseEnterDelay",H.onCloseClicked?0:.5)("nzPopoverContent",de)("nzPopoverTrigger",H.enablePopover?"hover":null)("nzMode",H.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",z)}}function x(Ie,me){}function ne(Ie,me){if(1&Ie&&r.DNE(0,x,0,0,"ng-template",7),2&Ie){r.XpG();const de=r.sdS(2);r.Y8G("ngTemplateOutlet",de)}}function J(Ie,me){if(1&Ie&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&Ie){const de=r.XpG(2);r.R7$(),r.SpI(" ",r.i5U(2,1,de.therapy.name,21)," ")}}function be(Ie,me){if(1&Ie&&r.EFF(0),2&Ie){const de=r.XpG(2);r.SpI(" ",de.therapy.name," ")}}function Oe(Ie,me){if(1&Ie&&(r.nrm(0,"i",10),r.DNE(1,J,3,4,"ng-container",5)(2,be,1,1,"ng-template",null,4,r.C5r)),2&Ie){const de=r.sdS(3),H=r.XpG();r.R7$(),r.Y8G("ngIf",H.truncateLongName)("ngIfElse",de)}}let he=(()=>{class Ie extends t.s{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set therapy(de){if(!de)throw new Error("therapy-tag Input requires LinkableTherapy.");this._therapy=de}get therapy(){return this._therapy}idFunction(){return this.therapy.id}static#e=this.\u0275fac=(()=>{let de;return function(z){return(de||(de=r.xGo(Ie)))(z||Ie)}})();static#t=this.\u0275cmp=r.VBU({type:Ie,selectors:[["cvc-therapy-tag"]],inputs:{therapy:"therapy",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["therapyPopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"therapyId"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"]],template:function(H,z){if(1&H&&r.DNE(0,I,3,2,"ng-container",5)(1,V,4,5,"ng-template",null,0,r.C5r)(3,ne,1,1,"ng-template",null,1,r.C5r)(5,Oe,4,2,"ng-template",null,2,r.C5r),2&H){const Z=r.sdS(4);r.Y8G("ngIf",z.linked)("ngIfElse",Z)}},dependencies:[g.bT,g.T3,e.Wk,M.s,G.L_,L.Dn,B.a,A.H],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}"],changeDetection:0})}return Ie})()},9802:(Rt,De,c)=>{c.d(De,{_:()=>A});var t=c(177),r=c(1188),g=c(5699),e=c(1236),M=c(5103),G=c(4917),L=c(3126),B=c(3953);let A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=B.$C({type:w});static#n=this.\u0275inj=B.G2t({imports:[t.MD,r.iI,g.T,e.MC,M.Y3,G.i,L.t]})}return w})()},3548:(Rt,De,c)=>{c.d(De,{A:()=>pe});var t=c(9199),r=c(6354),g=c(5964),e=c(3953),M=c(9145),G=c(177),L=c(1188),B=c(5703),A=c(7529),w=c(2e3),I=c(5699),F=c(5103),X=c(7685),V=c(3245),x=c(7679),ne=c(1774),J=c(3075);function be(E,S){if(1&E&&(e.nrm(0,"i",13),e.nI1(1,"entityColor"),e.EFF(2)),2&E){const R=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",R.name," ")}}function Oe(E,S){if(1&E&&e.nrm(0,"cvc-feature-tag",14),2&E){const R=e.XpG().ngIf;e.Y8G("enablePopover",!1)("feature",R.feature)}}function he(E,S){if(1&E&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&E){const R=S.$implicit;e.R7$(),e.JRh(R)}}function Ie(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",15),e.DNE(1,he,2,1,"nz-tag",16),e.k0s()),2&E){const R=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",R.variantAliases)}}function me(E,S){if(1&E&&(e.j41(0,"nz-descriptions-item",17)(1,"cvc-link-tag",18),e.EFF(2),e.k0s()()),2&E){const R=e.XpG().ngIf;e.R7$(),e.Mz_("href","https://reg.genome.network/allele/",R.alleleRegistryId,".html"),e.R7$(),e.SpI(" ",R.alleleRegistryId," ")}}function de(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",20),e.nrm(2,"i",21),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/flags"),e.R7$(3),e.SpI(" Flags (",R.flags.totalCount,") ")}}function H(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",22),e.nrm(2,"i",23),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",R.revisions.totalCount,") ")}}function z(E,S){if(1&E&&(e.j41(0,"a",19)(1,"nz-tag",24),e.nrm(2,"i",25),e.EFF(3),e.k0s()()),2&E){const R=e.XpG().ngIf;e.Mz_("routerLink","/variants/",R.id,"/comments"),e.R7$(3),e.SpI(" Comments (",R.comments.totalCount,") ")}}function Z(E,S){if(1&E&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,be,3,4,"ng-template",null,0,e.C5r)(4,Oe,1,2,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5),e.DNE(7,Ie,2,1,"nz-descriptions-item",6)(8,me,3,3,"nz-descriptions-item",7),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s()(),e.j41(11,"nz-row",9)(12,"nz-col",10)(13,"nz-space",11),e.DNE(14,de,4,3,"a",12)(15,H,4,3,"a",12)(16,z,4,3,"a",12),e.k0s()()()(),e.bVm()),2&E){const R=S.ngIf,Y=e.sdS(3),se=e.sdS(5);e.R7$(),e.Y8G("nzTitle",Y)("nzExtra",se),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",R.variantAliases.length>0),e.R7$(),e.Y8G("ngIf","GeneVariant"==R.__typename&&R.alleleRegistryId&&"unregistered"!=R.alleleRegistryId),e.R7$(2),e.SpI(" ",R.molecularProfiles.totalCount," ")}}let pe=(()=>{class E{constructor(R){this.gql=R}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,r.T)(({data:R})=>R?.variant),(0,g.p)(t.kP))}static#e=this.\u0275fac=function(Y){return new(Y||E)(e.rXU(M.l20))};static#t=this.\u0275cmp=e.VBU({type:E,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["cardTitle",""],["feature",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Molecular Profiles","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[3,"enablePopover","feature"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(Y,se){1&Y&&(e.j41(0,"div",2),e.DNE(1,Z,17,6,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&Y&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,se.variant$)))},dependencies:[G.Sq,G.bT,L.Wk,B.cK,A.Uq,A.e,w.xA,w.gr,I.s,F.Dn,X.U5,X.Dq,V._,x.a,ne.L9,J.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return E})()},6075:(Rt,De,c)=>{c.d(De,{$:()=>X});var t=c(177),r=c(1188),g=c(5703),e=c(7529),M=c(2e3),G=c(5699),L=c(5103),B=c(7685),A=c(7054),w=c(4917),I=c(6912),F=c(3953);let X=(()=>{class V{static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275mod=F.$C({type:V});static#n=this.\u0275inj=F.G2t({imports:[t.MD,r.iI,g.Ti,e.f3,M.WF,G.T,L.Y3,B.pc,w.i,I.l,A.L]})}return V})()},3100:(Rt,De,c)=>{c.d(De,{V:()=>H});var t=c(6514),r=c(505),g=c(3953),e=c(177),M=c(1188),G=c(5699),L=c(1236),B=c(5103),A=c(3548),w=c(2387),I=c(2287);const F=z=>({deprecated:z});function X(z,Z){}function V(z,Z){if(1&z&&(g.qex(0),g.j41(1,"a",6),g.DNE(2,X,0,0,"ng-template",7),g.k0s(),g.bVm()),2&z){const pe=g.XpG(),E=g.sdS(2);g.R7$(),g.Y8G("routerLink",pe.variant.link),g.R7$(),g.Y8G("ngTemplateOutlet",E)}}function x(z,Z){}function ne(z,Z){if(1&z&&g.nrm(0,"cvc-variant-popover",10),2&z){const pe=g.XpG(3);g.Y8G("variantId",pe.variant.id)}}function J(z,Z){if(1&z&&g.DNE(0,ne,1,1,"cvc-variant-popover",9),2&z){const pe=g.XpG(2);g.Y8G("ngIf",pe.enablePopover)}}function be(z,Z){if(1&z){const pe=g.RV6();g.j41(0,"nz-tag",8),g.bIt("nzOnClose",function(S){g.eBV(pe);const R=g.XpG();return g.Njj(R.itemClosed(S))}),g.DNE(1,x,0,0,"ng-template",7),g.k0s(),g.DNE(2,J,1,1,"ng-template",null,3,g.C5r)}if(2&z){const pe=g.sdS(3),E=g.XpG(),S=g.sdS(6);g.Y8G("ngClass",g.eq3(6,F,E.variant.deprecated))("nzPopoverMouseEnterDelay",E.onCloseClicked?0:.5)("nzPopoverContent",pe)("nzPopoverTrigger",E.enablePopover?"hover":null)("nzMode",E.onCloseClicked?"closeable":"default"),g.R7$(),g.Y8G("ngTemplateOutlet",S)}}function Oe(z,Z){}function he(z,Z){if(1&z&&g.DNE(0,Oe,0,0,"ng-template",7),2&z){g.XpG();const pe=g.sdS(2);g.Y8G("ngTemplateOutlet",pe)}}function Ie(z,Z){if(1&z&&(g.qex(0),g.EFF(1),g.nI1(2,"truncate"),g.bVm()),2&z){const pe=g.XpG(2);g.R7$(),g.SpI(" ",g.i5U(2,1,pe.variant.name,20)," ")}}function me(z,Z){if(1&z&&g.EFF(0),2&z){const pe=g.XpG(2);g.SpI(" ",pe.variant.name," ")}}function de(z,Z){if(1&z&&(g.j41(0,"cvc-icon-badges",11),g.nrm(1,"i",12),g.k0s(),g.DNE(2,Ie,3,4,"ng-container",5)(3,me,1,1,"ng-template",null,4,g.C5r)),2&z){const pe=g.sdS(4),E=g.XpG();g.Y8G("flagged",E.variant.flagged)("entityColor",E.iconColor),g.R7$(),g.Y8G("nzTwotoneColor",E.iconColor),g.R7$(),g.Y8G("ngIf",E.truncateLongName)("ngIfElse",pe)}}let H=(()=>{class z extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,r.P)("Variant")}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}static#e=this.\u0275fac=function(E){return new(E||z)};static#t=this.\u0275cmp=g.VBU({type:z,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[g.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(E,S){if(1&E&&g.DNE(0,V,3,2,"ng-container",5)(1,be,4,8,"ng-template",null,0,g.C5r)(3,he,1,1,"ng-template",null,1,g.C5r)(5,de,5,5,"ng-template",null,2,g.C5r),2&E){const R=g.sdS(4);g.Y8G("ngIf",S.linked)("ngIfElse",R)}},dependencies:[e.YU,e.bT,e.T3,M.Wk,G.s,L.L_,B.Dn,A.A,w.N,I.H],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return z})()},7051:(Rt,De,c)=>{c.d(De,{U:()=>w});var t=c(177),r=c(1188),g=c(5699),e=c(5103),M=c(1236),G=c(6075),L=c(4917),B=c(4994),A=c(3953);let w=(()=>{class I{static#e=this.\u0275fac=function(V){return new(V||I)};static#t=this.\u0275mod=A.$C({type:I});static#n=this.\u0275inj=A.G2t({imports:[t.MD,r.iI,g.T,M.MC,e.Y3,L.i,G.$,B.a]})}return I})()},463:(Rt,De,c)=>{c.d(De,{E:()=>r});var t=c(3953);let r=(()=>{class g{transform(M,G){return M?"verbose"==G?"TIER_I_LEVEL_A"===M?"Tier I - Level A":"TIER_I_LEVEL_B"===M?"Tier I - Level B":"TIER_II_LEVEL_C"===M?"Tier II - Level C":"TIER_II_LEVEL_D"===M?"Tier II - Level D":"TIER_III"===M?"Tier III":"TIER_IV"===M?"Tier IV":"Not Applicable":M.toUpperCase().replace("TIER","").replace("LEVEL","").replace(/ /g,"").replace(/_/g,""):""}static#e=this.\u0275fac=function(G){return new(G||g)};static#t=this.\u0275pipe=t.EJ8({name:"formatAmp",type:g,pure:!0})}return g})()},3075:(Rt,De,c)=>{c.d(De,{R:()=>g});var t=c(505),r=c(3953);let g=(()=>{class e{transform(G){return(0,t.P)(G)}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275pipe=r.EJ8({name:"entityColor",type:e,pure:!0})}return e})()},1845:(Rt,De,c)=>{c.d(De,{f:()=>r});var t=c(3953);let r=(()=>{class g{transform(M){if(M){if("POSITIVE"===M)return"+";if("NEGATIVE"===M)return"-";let L=M.toLowerCase().replace(/_/g," ").split(" ");for(var G=0;G{c.d(De,{pW:()=>G});var t=c(9145),r=c(896),g=c(3953);const e=new Map([[t.iHU.A,"Validated association"],[t.iHU.B,"Clinical evidence"],[t.iHU.C,"Case study"],[t.iHU.D,"Preclinical evidence"],[t.iHU.E,"Inferential association"]]),M=new Map([[1,"One Star"],[2,"Two Stars"],[3,"Three Stars"],[4,"Four Stars"],[5,"Five Stars"]]);let G=(()=>{class L{transform(A,w="display-string"){return null==A?"":"short-string"===w&&1===A.toString().length?"string"==typeof A?A:A.toString():"icon-name"===w?"number"==typeof A?`civic-rating${A}`:1===A.length?`civic-level${A.toLowerCase()}`:`civic-${A.replace(/_/g,"").toLowerCase()}`:"number"==typeof A?M.get(A)||A.toString():1===A.length?e.get(A)||A:(0,r.u)(A)}static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275pipe=g.EJ8({name:"evidenceEnumDisplay",type:L,pure:!0})}return L})()},8763:(Rt,De,c)=>{c.d(De,{k:()=>G});var t=c(9145);const r={evidenceType:{[t.M1P.Diagnostic]:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.M1P.Functional]:"Evidence pertains to a variant that alters biological function from the reference state",[t.M1P.Oncogenic]:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",[t.M1P.Predictive]:"Evidence pertains to a variant's effect on therapeutic response",[t.M1P.Predisposing]:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.M1P.Prognostic]:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival"},assertionType:{[t.XEW.Diagnostic]:"Assertion pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.XEW.Predictive]:"Assertion pertains to a variant's effect on therapeutic response",[t.XEW.Predisposing]:"Assertion pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.XEW.Prognostic]:"Assertion pertains to a variant's impact on disease progression, severity, or patient survival",[t.XEW.Oncogenic]:"Assertion pertains to a somatic variant's role in driving tumor formation, growth, and other processes related to the Hallmarks of Cancer"},variantOrigin:{[t.Kkj.Somatic]:"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring",[t.Kkj.RareGermline]:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item",[t.Kkj.CommonGermline]:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item",[t.Kkj.Unknown]:"The variant origin is uncertain based on the available evidence",[t.Kkj.Na]:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin",[t.Kkj.Combined]:"Variants in the Molecular Profile span multiple Origin types."},evidenceLevel:{[t.iHU.A]:"Proven/consensus association in human medicine",[t.iHU.B]:"Clinical trial or other primary patient data supports association",[t.iHU.C]:"Individual case reports from clinical journals",[t.iHU.D]:"In vivo or in vitro models support association",[t.iHU.E]:"Indirect evidence"},evidenceLevelBrief:{[t.iHU.A]:"Validated association",[t.iHU.B]:"Clinical evidence",[t.iHU.C]:"Case Study",[t.iHU.D]:"Preclinical evidence",[t.iHU.E]:"Inferential association"},therapyInteractionType:{[t.qld.Combination]:"The therapies listed were used as part of a combination therapy approach",[t.qld.Sequential]:"The therapies listed were used at separate timepoints in the same treatment plan",[t.qld.Substitutes]:"The therapies listed are often considered to be of the same family, or behave similarly in a treatment setting"},evidenceRating:{1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods"}},g={significance:{PREDICTIVE:{ADVERSE_RESPONSE:{EvidenceItem:"Associated with an adverse response to theraputic treatment",Assertion:"Associated with an adverse response to theraputic treatment"},REDUCED_SENSITIVITY:{EvidenceItem:"Response to treatment is lower than seen in other treatment contexts",Assertion:"Response to treatment is lower than seen in other treatment contexts"},RESISTANCE:{EvidenceItem:"Associated with clinical or preclinical resistance to treatment",Assertion:"Associated with clinical or preclinical resistance to treatment"},SENSITIVITYRESPONSE:{EvidenceItem:"Associated with clinical or preclinical response to treatment",Assertion:"Associated with a clinical or preclinical response to treatment"},NA:{EvidenceItem:"Clinical Significance is not applicable",Assertion:"Clinical Significance is not applicable"}},DIAGNOSTIC:{POSITIVE:{EvidenceItem:"Associated with diagnosis of disease or subtype",Assertion:"Associated with diagnosis of disease or subtype"},NEGATIVE:{EvidenceItem:"Associated with lack of disease or subtype",Assertion:"Associated with lack of disease or subtype"}},PROGNOSTIC:{BETTER_OUTCOME:{EvidenceItem:"Demonstrates better than expected clinical outcome",Assertion:"Demonstrates better than expected clinical outcome"},POOR_OUTCOME:{EvidenceItem:"Demonstrates worse than expected clinical outcome",Assertion:"Demonstrates worse than expected clinical outcome"},Na:{EvidenceItem:"Clinical Significance is not applicable",Assertion:"Clinical Significance is not applicable"}},PREDISPOSING:{PATHOGENIC:{Assertion:"Very strong evidence the variant is pathogenic"},LIKELY_PATHOGENIC:{Assertion:"Strong evidence (>90% certainty) the variant is pathogenic"},BENIGN:{Assertion:"Very strong evidence the variant is benign"},LIKELY_BENIGN:{Assertion:"Not expected to have a major effect on disease"},UNCERTAIN_SIGNIFICANCE:{Assertion:"Does not meet the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"},Na:{EvidenceItem:"Clinical Significance is not applicable"},PREDISPOSITION:{EvidenceItem:"Germline variant has predisposing potential for cancer, and may meet ACMG/AMP criteria supporting pathogenic or benign classification."},PROTECTIVENESS:{EvidenceItem:"Germline variant has properties that protect individuals from acquiring cancer."}},ONCOGENIC:{ONCOGENICITY:{EvidenceItem:"Somatic variant has oncogenic potential for driving cancer, and may meet ClinGen/CGC/VICC criteria supporting pathogenic or benign classification."},PROTECTIVENESS:{EvidenceItem:"Somatic variant has a protective role and minimizes co-occuring driver variants, tumor malignancy, or other oncogenic tumor properties."},ONCOGENIC:{Assertion:"Very strong evidence the variant is oncogenic."},LIKELY_ONCOGENIC:{Assertion:"Strong evidence the variant is oncogenic."},BENIGN:{Assertion:"Very strong evidence the variant does not have oncogenic properties."},LIKELY_BENIGN:{Assertion:"Strong evidence the variant does not have oncogenic properties."},UNCERTAIN_SIGNIFICANCE:{Assertion:"Does not meet guideline criteria for oncogenic/benign, or the evidence is conflicting."}}},evidenceDirection:{PREDICTIVE:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's response to a therapy"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a therapy"}},DIAGNOSTIC:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"}},PROGNOSTIC:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's impact on prognostic outcome"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support a prognostic association between variant and outcome"}},PREDISPOSING:{Na:{EvidenceItem:"Evidence Direction is not applicable"},SUPPORTS:{EvidenceItem:"The evidence supports a pathogenic or a protective role for a germline variant in cancer."},DOES_NOT_SUPPORT:{EvidenceItem:"The evidence supports a benign (if Clinical Significance is Predisposition) or lack or protective (if Clinical Significance is Protectiveness) role for a germline variant in cancer."}},FUNCTIONAL:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"}},ONCOGENIC:{NA:{EvidenceItem:"Evidence Direction is not applicable for Oncogenic Evidence Type"},SUPPORTS:{EvidenceItem:"The evidence supports an oncogenic or protective role for a somatic variant"},DOES_NOT_SUPPORT:{EvidenceItem:"The evidence does not support an oncogenic or protective role for a somatic variant"}}},assertionDirection:{PREDICTIVE:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's response to a therapy"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a therapy"}},DIAGNOSTIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"}},PROGNOSTIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"}},PREDISPOSING:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome"}},FUNCTIONAL:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}},ONCOGENIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support a variant's oncogenic, benign, or uncertain significance"}}}};var M=c(3953);let G=(()=>{class L{transform(A,w,I=void 0,F=void 0){return w&&A?function e(L,B,A,w){let I;return I=A&&w?g[L][A][B][w]:r[L][B],I||""}(w,A,I,F):""}static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275pipe=M.EJ8({name:"enumTooltip",type:L,pure:!0})}return L})()},1555:(Rt,De,c)=>{c.d(De,{M:()=>g});var t=c(3953),r=c(345);let g=(()=>{class e{constructor(G){this.sanitizer=G}transform(G,L){if(!L||""==L)return G;const B=new RegExp(L,"gi"),A=G.match(B);if(!A)return G;let w=G.replace(B,`${A[0]}`);return this.sanitizer.bypassSecurityTrustHtml(w)}static#e=this.\u0275fac=function(L){return new(L||e)(t.rXU(r.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"highlightTypeahead",type:e,pure:!0})}return e})()},4917:(Rt,De,c)=>{c.d(De,{i:()=>e});var t=c(177),r=c(8335),g=c(3953);let e=(()=>{class M{static#e=this.\u0275fac=function(B){return new(B||M)};static#t=this.\u0275mod=g.$C({type:M});static#n=this.\u0275inj=g.G2t({providers:[r.Q],imports:[t.MD]})}return M})()},8335:(Rt,De,c)=>{c.d(De,{Q:()=>g});var t=c(1427),r=c(3953);let g=(()=>{class e{transform(G){return G?(0,t.A)(G):""}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275pipe=r.EJ8({name:"sourceTypeDisplay",type:e,pure:!0})}return e})()},8139:(Rt,De,c)=>{c.d(De,{N:()=>I});var t=c(3953);const g=3600,e=24*g,G=365*e,B=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),w=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let I=(()=>{class F{transform(V){if(!V)return"--";let x;x="number"==typeof V?V:Date.parse(V);const ne=Date.now(),J=Math.round(Math.abs(ne-x)/1e3);if(J>=2592e3&&J=G){let Ie=new Date(x);return w.format(Ie)}let be,Oe;return J<60?(be=Math.round(J),Oe="second"):J1?"s":""} ago`}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275pipe=t.EJ8({name:"timeAgo",type:F,pure:!0})}return F})()},2287:(Rt,De,c)=>{c.d(De,{H:()=>r});var t=c(3953);let r=(()=>{class g{constructor(){}transform(M,G=25){if(M.length>G){let B=M.slice(0,G);var L=B.lastIndexOf(" ");return B.slice(0,L)+"\u2026"}return M}static#e=this.\u0275fac=function(G){return new(G||g)};static#t=this.\u0275pipe=t.EJ8({name:"truncate",type:g,pure:!0})}return g})()},4137:(Rt,De,c)=>{c.d(De,{o:()=>r});var t=c(3953);let r=(()=>{class g{transform(M){return M?M.endsWith("Variant")?"civic-variant":`civic-${M.replace(/_/g,"").toLowerCase()}`:""}static#e=this.\u0275fac=function(G){return new(G||g)};static#t=this.\u0275pipe=t.EJ8({name:"typenameToIcon",type:g,pure:!0})}return g})()},4222:(Rt,De,c)=>{c.d(De,{N:()=>g});var t=c(4412),r=c(3953);let g=(()=>{class e{constructor(){this.networkError$=new t.t(void 0)}clearErrors(){this.networkError$.next(void 0)}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275prov=r.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},1305:(Rt,De,c)=>{c.d(De,{q:()=>w});var t=c(1635),r=c(9145),g=c(9894),e=c(6354),M=c(9172),G=c(4668),L=c(4608),B=c(3953),A=c(1626);let w=class jf{constructor(F,X){function V(he){return!(!he||he.role!==r.gG1.Admin)}function x(he){return!(!he||he.role!==r.gG1.Editor&&he.role!==r.gG1.Admin)}function ne(he){return!(!he||he.role!==r.gG1.Curator)}function J(he){return!(!he||he.role!==r.gG1.Curator&&he.role!==r.gG1.Editor&&he.role!==r.gG1.Admin)}function be(he){return!(!he||he.role!==r.gG1.Editor&&he.role!==r.gG1.Admin||!he.mostRecentConflictOfInterestStatement||he.mostRecentConflictOfInterestStatement?.coiStatus!=r.shk.Conflict&&he.mostRecentConflictOfInterestStatement?.coiStatus!=r.shk.Valid)}function Oe(he){if(he.mostRecentOrganizationId)return he.organizations.find(Ie=>Ie.id===he.mostRecentOrganizationId)}this.viewerBaseGQL=F,this.http=X,this.initialViewer={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0},this.queryRef=this.viewerBaseGQL.watch(void 0,{notifyOnNetworkStatusChange:!1}),this.viewer$=this.queryRef.valueChanges.pipe((0,L.E)("data","viewer"),(0,e.T)(he=>({...he,signedIn:null!=he,signedOut:null==he,canCurate:J(he),canModerate:be(he),isAdmin:V(he),isEditor:x(he),isCurator:ne(he),organizations:null==he?[]:he.organizations,mostRecentOrg:null==he?void 0:Oe(he),invalidCoi:x(he)&&(!he.mostRecentConflictOfInterestStatement||he.mostRecentConflictOfInterestStatement.coiStatus===r.shk.Expired||he.mostRecentConflictOfInterestStatement.coiStatus===r.shk.Missing)})),(0,M.Z)(this.initialViewer),(0,G.t)(1)),this.signedIn$=this.viewer$.pipe((0,e.T)(he=>he.signedIn)),this.signedOut$=this.viewer$.pipe((0,e.T)(he=>he.signedOut)),this.isAdmin$=this.viewer$.pipe((0,e.T)(he=>V(he))),this.isEditor$=this.viewer$.pipe((0,e.T)(he=>x(he))),this.isCurator$=this.viewer$.pipe((0,e.T)(he=>ne(he))),this.canCurate$=this.viewer$.pipe((0,e.T)(he=>J(he))),this.canModerate$=this.viewer$.pipe((0,e.T)(he=>be(he)))}signOut(){this.http.get("/api/sign_out").pipe((0,g.s)(this)).subscribe(()=>this.queryRef.refetch())}refetch(){this.queryRef.refetch()}static#e=this.\u0275fac=function(X){return new(X||jf)(B.KVO(r.arH),B.KVO(A.Qq))};static#t=this.\u0275prov=B.jDH({token:jf,factory:jf.\u0275fac,providedIn:"root"})};w=(0,t.Cg)([(0,g.d)()],w)},6514:(Rt,De,c)=>{c.d(De,{s:()=>r});var t=c(3953);let r=(()=>{class g{constructor(){this.linked=!0,this.popoverVisible=!1}ngOnInit(){this.onCloseClicked&&(this.linked=!1)}itemClosed(M){this.popoverVisible=!1,this.onCloseClicked&&this.onCloseClicked(this.idFunction())}static#e=this.\u0275fac=function(G){return new(G||g)};static#t=this.\u0275cmp=t.VBU({type:g,selectors:[["ng-component"]],inputs:{onCloseClicked:"onCloseClicked",linked:"linked"},decls:0,vars:0,template:function(G,L){},encapsulation:2})}return g})()},896:(Rt,De,c)=>{function t(r){if("number"==typeof r||"boolean"==typeof r)return r;let g;if("NA"===r)g=["Not Applicable"];else if("SENSITIVITYRESPONSE"===r)g=["Sensitivity","/","Response"];else{g=r.toLowerCase().replace(/_/g," ").split(" ");for(var e=0;et})},1427:(Rt,De,c)=>{function t(r){switch(r){case"ASCO":return"ASCO";case"PUBMED":return"PubMed";case"ASH":return"ASH";default:return r}}c.d(De,{A:()=>t})},505:(Rt,De,c)=>{c.d(De,{P:()=>r});const t=new Map([["Assertion","#7243b5"],["ClinicalTrial","#ac3996"],["CoordinateSystem","#f68f37"],["Disease","#e62f76"],["Event","#1db8a9"],["EvidenceItem","#2a63b6"],["Feature","#07aff0"],["MolecularProfile","#33b358"],["NccnGuideline","#49566D"],["Phenotype","#1db8a9"],["Source","#f9ba45"],["Therapy","#ac3996"],["Variant","#74d34c"],["GeneVariant","#74d34c"],["FactorVariant","#74d34c"],["FusionVariant","#74d34c"],["VariantGroup","#74d34c"],["VariantType","#74d34c"],["Comment","#44d8ef"],["Event","#ffdb00"],["Flag","#e24759"],["Queue","#666699"],["Revision","#f0673a"],["Curator","#a0d8f5"],["Editor","#58a0c4"],["Admin","#58a0c4"],["Organization","#3d7b99"],["Rejected","#BBBBBB"],["Greyscale","#999999"]]);function r(g){let e="#AAAAAA";if(g){const M=t.get(g);M&&(e=M)}return e}},1226:(Rt,De,c)=>{c.d(De,{E:()=>M});var t=c(1413),r=c(4412),g=c(6977),e=c(980);class M{constructor(L){this.networkErrorService=L}mutate(L,B,A,w){let I=new t.B,F={isSubmitting$:new r.t(!1),submitSuccess$:new r.t(!1),submitError$:new r.t([]),cleanup:()=>{I.next(),I.complete()}};return F.isSubmitting$.next(!0),L.mutate(B,A).pipe((0,g.Q)(I),(0,e.j)(()=>{F.isSubmitting$.next(!1)})).subscribe({next:X=>{X.data&&w&&w(X.data)},error:X=>{X.graphQLErrors.length>0?F.submitError$.next(X.graphQLErrors.map(V=>V.message)):X.networkError&&this.networkErrorService.networkError$.next(X.networkError),F.cleanup()},complete:()=>{F.submitError$.next([]),F.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),F.cleanup()}}),F}}},2242:(Rt,De,c)=>{c.d(De,{i:()=>g});var t=c(177),r=c(3953);let g=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},2033:(Rt,De,c)=>{c.d(De,{o:()=>X});var t=c(3953),r=c(177),g=c(5154);function e(V,x){1&V&&(t.qex(0),t.EFF(1," N/A "),t.bVm())}function M(V,x){1&V&&(t.qex(0),t.EFF(1," Not applicable "),t.bVm())}function G(V,x){if(1&V&&(t.j41(0,"span",4),t.qex(1,0),t.DNE(2,e,2,0,"ng-container",5)(3,M,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const ne=t.XpG();t.R7$(),t.Y8G("ngSwitch",ne.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}function L(V,x){1&V&&(t.qex(0),t.EFF(1," \u2013\xa0\u2013 "),t.bVm())}function B(V,x){1&V&&(t.qex(0),t.EFF(1,"Not specified"),t.bVm())}function A(V,x){if(1&V&&(t.j41(0,"span",7),t.qex(1,0),t.DNE(2,L,2,0,"ng-container",5)(3,B,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const ne=t.XpG();t.R7$(),t.Y8G("ngSwitch",ne.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}function w(V,x){1&V&&(t.qex(0),t.EFF(1,"!?"),t.bVm())}function I(V,x){1&V&&(t.qex(0),t.EFF(1,"Unspecified"),t.bVm())}function F(V,x){if(1&V&&(t.j41(0,"span",8),t.qex(1,0),t.DNE(2,w,2,0,"ng-container",5)(3,I,2,0,"ng-container",6),t.bVm(),t.k0s()),2&V){const ne=t.XpG();t.R7$(),t.Y8G("ngSwitch",ne.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}let X=(()=>{class V{constructor(){this.cvcEmptyCategory="not-applicable",this.cvcDisplayMode="default"}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["cvc-empty-value"]],inputs:{cvcEmptyCategory:"cvcEmptyCategory",cvcDisplayMode:"cvcDisplayMode"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","empty-symbol not-applicable","nz-tooltip","","nzTooltipTitle","Value is not applicable",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Unspecified","class","empty-symbol unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","INVALID","class","empty-symbol invalid","nz-tooltip","","nzTooltipTitle","Error: value requires specification",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Value is not applicable",1,"empty-symbol","not-applicable"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-tooltip","","nzTooltipTitle","Unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",1,"empty-symbol","unspecified"],["nz-tooltip","","nzTooltipTitle","INVALID","nz-tooltip","","nzTooltipTitle","Error: value requires specification",1,"empty-symbol","invalid"]],template:function(J,be){1&J&&(t.qex(0,0),t.DNE(1,G,4,2,"span",1)(2,A,4,2,"span",2)(3,F,4,2,"span",3),t.bVm()),2&J&&(t.Y8G("ngSwitch",be.cvcEmptyCategory),t.R7$(),t.Y8G("ngSwitchCase","not-applicable"),t.R7$(),t.Y8G("ngSwitchCase","unspecified"),t.R7$(),t.Y8G("ngSwitchCase","invalid"))},dependencies:[r.ux,r.e1,r.fG,g.LH],styles:[".empty-symbol[_ngcontent-%COMP%]{font-style:oblique;display:inline-block;white-space:no-wrap}.empty-symbol.not-applicable[_ngcontent-%COMP%]{color:#ccc;font-weight:500}.empty-symbol.unspecified[_ngcontent-%COMP%]{display:inline-block;color:#ccc;font-weight:500;padding:0 3px}.empty-symbol.invalid[_ngcontent-%COMP%]{display:inline-block;color:#ff4d4f;font-weight:700}"]})}return V})()},7556:(Rt,De,c)=>{c.d(De,{F:()=>M});var t=c(177),r=c(5103),g=c(5154),e=c(3953);let M=(()=>{class G{static#e=this.\u0275fac=function(A){return new(A||G)};static#t=this.\u0275mod=e.$C({type:G});static#n=this.\u0275inj=e.G2t({imports:[t.MD,g.Qt,r.Y3]})}return G})()},2688:(Rt,De,c)=>{c.d(De,{b:()=>Wt});var t=c(3953),r=c(1661),g=c(177),e=c(5761),M=c(1289),G=c(5652),L=c(3287),B=c(6564),A=c(8011),w=c(1429),I=c(3548);function F(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-molecular-profile-popover",9),2&Ue){const ie=t.XpG();t.Y8G("molecularProfileId",ie.entity.entityId)}}function X(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-disease-popover",10),2&Ue){const ie=t.XpG();t.Y8G("diseaseId",ie.entity.entityId)}}function V(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-therapy-popover",11),2&Ue){const ie=t.XpG();t.Y8G("therapyId",ie.entity.entityId)}}function x(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-source-popover",12),2&Ue){const ie=t.XpG();t.Y8G("sourceId",ie.entity.entityId)}}function ne(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-phenotype-popover",13),2&Ue){const ie=t.XpG();t.Y8G("phenotypeId",ie.entity.entityId)}}function J(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-evidence-popover",14),2&Ue){const ie=t.XpG();t.Y8G("evidenceId",ie.entity.entityId)}}function be(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-feature-popover",15),2&Ue){const ie=t.XpG();t.Y8G("featureId",ie.entity.entityId)}}function Oe(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-variant-popover",16),2&Ue){const ie=t.XpG();t.Y8G("variantId",ie.entity.entityId)}}const he=["MolecularProfile","Disease","Therapy","Phenotype","Source","Gene","Variant","EvidenceItem"];let Ie=(()=>{class Ue{ngOnInit(){if(null==this.entity)throw new Error("entity input is required for CvcEntityTagPopoverComponent")}static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275cmp=t.VBU({type:Ue,selectors:[["cvc-entity-tag-popover"]],inputs:{entity:"entity"},decls:9,vars:9,consts:[[3,"ngSwitch"],[3,"molecularProfileId",4,"ngSwitchCase"],[3,"diseaseId",4,"ngSwitchCase"],[3,"therapyId",4,"ngSwitchCase"],[3,"sourceId",4,"ngSwitchCase"],[3,"phenotypeId",4,"ngSwitchCase"],[3,"evidenceId",4,"ngSwitchCase"],[3,"featureId",4,"ngSwitchCase"],[3,"variantId",4,"ngSwitchCase"],[3,"molecularProfileId"],[3,"diseaseId"],[3,"therapyId"],[3,"sourceId"],[3,"phenotypeId"],[3,"evidenceId"],[3,"featureId"],[3,"variantId"]],template:function(_e,oe){1&_e&&(t.qex(0,0),t.DNE(1,F,1,1,"cvc-molecular-profile-popover",1)(2,X,1,1,"cvc-disease-popover",2)(3,V,1,1,"cvc-therapy-popover",3)(4,x,1,1,"cvc-source-popover",4)(5,ne,1,1,"cvc-phenotype-popover",5)(6,J,1,1,"cvc-evidence-popover",6)(7,be,1,1,"cvc-feature-popover",7)(8,Oe,1,1,"cvc-variant-popover",8),t.bVm()),2&_e&&(t.Y8G("ngSwitch",oe.entity.entityType),t.R7$(),t.Y8G("ngSwitchCase","MolecularProfile"),t.R7$(),t.Y8G("ngSwitchCase","Disease"),t.R7$(),t.Y8G("ngSwitchCase","Therapy"),t.R7$(),t.Y8G("ngSwitchCase","Source"),t.R7$(),t.Y8G("ngSwitchCase","Phenotype"),t.R7$(),t.Y8G("ngSwitchCase","EvidenceItem"),t.R7$(),t.Y8G("ngSwitchCase","Feature"),t.R7$(),t.Y8G("ngSwitchCase","Variant"))},dependencies:[g.ux,g.e1,e.q,M.R,G.u,L.a,B.F,A.S,w.X,I.A],encapsulation:2,changeDetection:0})}return Ue})();var me=c(1188),de=c(5103),H=c(5699),z=c(5154),Z=c(1236),pe=c(1555),E=c(3075),S=c(4137);function R(Ue,Ae){}function Y(Ue,Ae){if(1&Ue){const ie=t.RV6();t.j41(0,"span",9)(1,"nz-tag",10),t.bIt("nzCheckedChange",function(){t.eBV(ie);const oe=t.XpG();return t.Njj(oe.cvcTagCheckedChange)})("nzOnClose",function(oe){t.eBV(ie);const Fe=t.XpG();return t.Njj(Fe.cvcOnClose.next(oe))}),t.j41(2,"span",11),t.DNE(3,R,0,0,"ng-template",12),t.k0s()()()}if(2&Ue){const ie=t.XpG(),_e=t.sdS(6),oe=t.sdS(8);t.R7$(),t.Y8G("nzMode",ie.cvcMode)("nzChecked",ie.cvcTagChecked),t.R7$(),t.Y8G("nzPopoverContent",ie.cvcShowPopover&&ie.popoverInput?_e:void 0),t.R7$(),t.Y8G("ngTemplateOutlet",oe)}}function se(Ue,Ae){}function Be(Ue,Ae){if(1&Ue&&(t.j41(0,"span",16),t.DNE(1,se,0,0,"ng-template",12),t.k0s()),2&Ue){const ie=t.XpG(2),_e=t.sdS(8);t.Y8G("nzTooltipTitle",ie.entity.tooltip),t.R7$(),t.Y8G("ngTemplateOutlet",_e)}}function Pt(Ue,Ae){if(1&Ue){const ie=t.RV6();t.j41(0,"span",13)(1,"nz-tag",14),t.bIt("nzOnClose",function(oe){t.eBV(ie);const Fe=t.XpG();return t.Njj(Fe.cvcOnClose.next(oe))}),t.DNE(2,Be,2,2,"span",15),t.k0s()()}if(2&Ue){const ie=t.XpG(),_e=t.sdS(4);t.R7$(),t.Y8G("nzMode","closeable"),t.R7$(),t.Y8G("ngIf",ie.entity&&ie.entity.tooltip)("ngIfElse",_e)}}function vt(Ue,Ae){}function wt(Ue,Ae){if(1&Ue&&(t.j41(0,"span",16),t.DNE(1,vt,0,0,"ng-template",12),t.k0s()),2&Ue){const ie=t.XpG(2),_e=t.sdS(8);t.Y8G("nzTooltipTitle",ie.entity.tooltip),t.R7$(),t.Y8G("ngTemplateOutlet",_e)}}function Le(Ue,Ae){if(1&Ue&&(t.j41(0,"span",17),t.DNE(1,wt,2,2,"span",15),t.k0s()),2&Ue){const ie=t.XpG(),_e=t.sdS(4);t.R7$(),t.Y8G("ngIf",ie.entity&&ie.entity.tooltip)("ngIfElse",_e)}}function zt(Ue,Ae){}function xt(Ue,Ae){if(1&Ue&&(t.j41(0,"span",11),t.DNE(1,zt,0,0,"ng-template",12),t.k0s()),2&Ue){const ie=t.XpG(),_e=t.sdS(6),oe=t.sdS(8);t.Y8G("nzPopoverContent",ie.popoverInput?_e:void 0),t.R7$(),t.Y8G("ngTemplateOutlet",oe)}}function st(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-entity-tag-popover",19),2&Ue){const ie=t.XpG(2);t.Y8G("entity",ie.popoverInput)}}function Ct(Ue,Ae){if(1&Ue&&t.DNE(0,st,1,1,"cvc-entity-tag-popover",18),2&Ue){const ie=t.XpG();t.Y8G("ngIf",ie.popoverInput)}}function It(Ue,Ae){if(1&Ue&&(t.j41(0,"span"),t.eu8(1,12),t.k0s()),2&Ue){t.XpG();const ie=t.sdS(4);t.R7$(),t.Y8G("ngTemplateOutlet",ie)}}function Tt(Ue,Ae){if(1&Ue&&(t.j41(0,"a",23),t.eu8(1,12),t.k0s()),2&Ue){t.XpG();const ie=t.sdS(4),_e=t.XpG(2);t.Y8G("routerLink",_e.entity.link),t.R7$(),t.Y8G("ngTemplateOutlet",ie)}}function en(Ue,Ae){if(1&Ue&&(t.nrm(0,"span",26),t.nI1(1,"typenameToIcon"),t.nI1(2,"entityColor")),2&Ue){const ie=t.XpG(4);t.Y8G("nzType",t.bMT(1,2,ie.typename))("nzTwotoneColor",t.bMT(2,4,ie.typename))}}function jt(Ue,Ae){if(1&Ue&&(t.DNE(0,en,3,6,"span",24),t.nrm(1,"span",25),t.nI1(2,"highlightTypeahead")),2&Ue){t.XpG(2);const ie=t.sdS(4),_e=t.XpG();t.Y8G("ngIf",_e.typename&&_e.cvcShowIcon)("ngIfElse",ie),t.R7$(),t.Y8G("innerHtml",t.i5U(2,3,_e.entity.name,_e.cvcEmphasize),t.npT)}}function Vt(Ue,Ae){if(1&Ue&&(t.qex(0),t.DNE(1,It,2,1,"span",21)(2,Tt,2,2,"a",22)(3,jt,3,6,"ng-template",null,5,t.C5r),t.bVm()),2&Ue){const ie=t.XpG(2);t.R7$(),t.Y8G("ngIf",ie.cvcDisableLink),t.R7$(),t.Y8G("ngIf",!ie.cvcDisableLink)}}function fn(Ue,Ae){}function Hn(Ue,Ae){if(1&Ue&&(t.DNE(0,fn,0,0,"ng-template",12),t.EFF(1)),2&Ue){t.XpG();const ie=t.sdS(4),_e=t.XpG();t.Y8G("ngTemplateOutlet",ie),t.R7$(),t.SpI(" CACHE-MISS (",_e.cvcCacheId,") ")}}function zn(Ue,Ae){1&Ue&&t.nrm(0,"span",27)}function bt(Ue,Ae){if(1&Ue&&t.DNE(0,Vt,5,2,"ng-container",20)(1,Hn,2,2,"ng-template",null,3,t.C5r)(3,zn,1,0,"ng-template",null,4,t.C5r),2&Ue){const ie=t.sdS(2),_e=t.XpG();t.Y8G("ngIf",_e.entity)("ngIfElse",ie)}}function At(Ue,Ae){if(1&Ue&&t.nrm(0,"cvc-entity-tag-popover",19),2&Ue){const ie=t.XpG(2);t.Y8G("entity",ie.popoverInput)}}function Et(Ue,Ae){if(1&Ue&&t.DNE(0,At,1,1,"cvc-entity-tag-popover",18),2&Ue){const ie=t.XpG();t.Y8G("ngIf",ie.popoverInput)}}const Ot=Ue=>void 0!==Ue&&Ue.__typename&&Ue.id&&void 0!==Ue.name;let Wt=(()=>{class Ue{set cvcLinkableEntity(ie){ie&&this.setLinkableEntity(ie)}set cvcCacheId(ie){ie&&this.setCachedLinkableEntity(ie)}constructor(ie){this.apollo=ie,this.cvcContext="default",this.cvcMode="default",this.cvcDisableLink=!0,this.cvcTagChecked=!1,this.cvcHasTooltip=!1,this.cvcFullWidth=!1,this.cvcShowPopover=!1,this.cvcShowIcon=!0,this.cvcTagCheckedChange=new t.bkB,this.cvcOnClose=new t.bkB}hasPopover(ie){return he.includes(ie)}setLinkableEntity(ie){Ot(ie)&&(this.typename=ie.__typename,this.id=ie.id,this.entity=ie,this.setPopoverInput(ie))}setCachedLinkableEntity(ie){const[_e,oe]=ie.split(":");if(this.typename=_e,this.id=+oe,!this.typename||!this.id)return void console.error(`entity-tag received an invalid cacheId: ${ie}. Cache IDs must be in the format 'TYPENAME:ID'.`);let Fe;Fe=this.cvcDisableLink?this.cvcHasTooltip?{id:`${_e}:${oe}`,fragment:r.J1` - fragment Linkable${_e}Entity on ${_e} { - id - name - tooltip - } - `}:{id:`${_e}:${oe}`,fragment:r.J1` - fragment Linkable${_e}Entity on ${_e} { - id - name - } - `}:{id:`${_e}:${oe}`,fragment:r.J1` - fragment Linkable${_e}Entity on ${_e} { - id - name - link - } - `};const et=this.apollo.client.readFragment(Fe);Ot(et)?(this.setPopoverInput(et),this.entity=et):console.error(`entity-tag could not find cached entity ${ie}`)}setPopoverInput(ie){Ot(ie)&&this.hasPopover(ie.__typename)&&(this.popoverInput={entityId:ie.id,entityType:ie.__typename})}ngOnChanges(ie){ie.cvcMode&&"checkable"===ie.cvcMode.currentValue&&(this.cvcDisableLink=!0),ie.cvcContext&&"default"!==ie.cvcContext.currentValue&&(this.cvcDisableLink=!0)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(t.rXU(r.Ic))};static#t=this.\u0275cmp=t.VBU({type:Ue,selectors:[["cvc-entity-tag"]],hostVars:40,hostBindings:function(_e,oe){2&_e&&t.AVh("full-width",!0===oe.cvcFullWidth)("label-max",void 0!==oe.cvcTruncateLabel)("label-max-50","50px"===oe.cvcTruncateLabel)("label-max-75","75px"===oe.cvcTruncateLabel)("label-max-100","100px"===oe.cvcTruncateLabel)("label-max-125","125px"===oe.cvcTruncateLabel)("label-max-150","150px"===oe.cvcTruncateLabel)("label-max-175","175px"===oe.cvcTruncateLabel)("label-max-200","200px"===oe.cvcTruncateLabel)("label-max-250","250px"===oe.cvcTruncateLabel)("label-max-300","300px"===oe.cvcTruncateLabel)("label-max-350","350px"===oe.cvcTruncateLabel)("label-max-400","400px"===oe.cvcTruncateLabel)("label-max-450","450px"===oe.cvcTruncateLabel)("label-max-500","500px"===oe.cvcTruncateLabel)("rejected","REJECTED"===oe.cvcStatus)("accepted","ACCEPTED"===oe.cvcStatus)("submitted","SUBMITTED"===oe.cvcStatus)("new","NEW"===oe.cvcStatus)("superseded","SUPERSEDED"===oe.cvcStatus)},inputs:{cvcLinkableEntity:"cvcLinkableEntity",cvcCacheId:"cvcCacheId",cvcStatus:"cvcStatus",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcEmphasize:"cvcEmphasize",cvcDisableLink:"cvcDisableLink",cvcTagChecked:"cvcTagChecked",cvcHasTooltip:"cvcHasTooltip",cvcFullWidth:"cvcFullWidth",cvcShowPopover:"cvcShowPopover",cvcShowIcon:"cvcShowIcon",cvcTruncateLabel:"cvcTruncateLabel"},outputs:{cvcTagCheckedChange:"cvcTagCheckedChange",cvcOnClose:"cvcOnClose"},features:[t.OA$],decls:11,vars:3,consts:[["noTooltip",""],["popoverContent",""],["tagContent",""],["cacheMiss",""],["noIcon",""],["tagLabel",""],["class","default",4,"ngIf"],["class","select-item",4,"ngIf"],["class","multi-select-item",4,"ngIf"],[1,"default"],[3,"nzCheckedChange","nzOnClose","nzMode","nzChecked"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngTemplateOutlet"],[1,"select-item"],[3,"nzOnClose","nzMode"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",3,"nzTooltipTitle"],[1,"multi-select-item"],[3,"entity",4,"ngIf"],[3,"entity"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[3,"routerLink",4,"ngIf"],[3,"routerLink"],["nz-icon","","nzTheme","twotone","class","tag-icon",3,"nzType","nzTwotoneColor",4,"ngIf","ngIfElse"],[1,"tag-label",3,"innerHtml"],["nz-icon","","nzTheme","twotone",1,"tag-icon",3,"nzType","nzTwotoneColor"],[1,"tag-no-icon"]],template:function(_e,oe){1&_e&&t.DNE(0,Y,4,4,"span",6)(1,Pt,3,3,"span",7)(2,Le,2,2,"span",8)(3,xt,2,2,"ng-template",null,0,t.C5r)(5,Ct,1,1,"ng-template",null,1,t.C5r)(7,bt,5,2,"ng-template",null,2,t.C5r)(9,Et,1,1,"ng-template",null,1,t.C5r),2&_e&&(t.Y8G("ngIf","default"===oe.cvcContext),t.R7$(),t.Y8G("ngIf","select-item"===oe.cvcContext),t.R7$(),t.Y8G("ngIf","multi-select-item"===oe.cvcContext))},dependencies:[g.bT,g.T3,me.Wk,de.Dn,H.s,z.LH,Z.L_,Ie,pe.M,E.R,S.o],styles:['.hide-dropdown[_ngcontent-%COMP%]{display:none}.label-max-50[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:50px;overflow:hidden;text-overflow:ellipsis}.label-max-75[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:75px;overflow:hidden;text-overflow:ellipsis}.label-max-100[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:100px;overflow:hidden;text-overflow:ellipsis}.label-max-125[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:125px;overflow:hidden;text-overflow:ellipsis}.label-max-150[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:150px;overflow:hidden;text-overflow:ellipsis}.label-max-175[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:175px;overflow:hidden;text-overflow:ellipsis}.label-max-200[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:200px;overflow:hidden;text-overflow:ellipsis}.label-max-250[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:250px;overflow:hidden;text-overflow:ellipsis}.label-max-300[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:300px;overflow:hidden;text-overflow:ellipsis}.label-max-350[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:350px;overflow:hidden;text-overflow:ellipsis}.label-max-400[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis}.label-max-450[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:450px;overflow:hidden;text-overflow:ellipsis}.label-max-500[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:500px;overflow:hidden;text-overflow:ellipsis}.rejected[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .submitted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .accepted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .deprecated[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-right-width:2px}.rejected[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .deprecated[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#e6e6e6;background-color:#fff;color:#999999d9}.submitted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#ffe58f}.accepted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#b7eb8f}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{width:100%}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{width:100%}nz-tag[_ngcontent-%COMP%]{margin-right:0;margin-inline-end:4px} -checkable{background-color:transparent;cursor:pointer} -checkable:not( -checkable-checked):hover{color:#1890ff} -checkable:active, -checkable-checked{color:#fff} -checkable-checked{background-color:#1890ff} -checkable:active{background-color:#096dd9}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{display:inline-block;padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-no-icon[_ngcontent-%COMP%]{display:inline-block;width:4px}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{display:inline-block;padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-no-icon[_ngcontent-%COMP%]{display:inline-block;width:4px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{padding-right:0}.multi-select-item[_ngcontent-%COMP%]{display:inline-block;margin-top:-3px;margin-bottom:-3px;margin-left:-4px;padding-left:4px}.multi-select-item[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]:after{content:" "}.typeahead-match[_ngcontent-%COMP%]{font-weight:700}a.disabled[_ngcontent-%COMP%]{pointer-events:none}'],changeDetection:0})}return Ue})()},181:(Rt,De,c)=>{c.d(De,{_:()=>Oe});var t=c(177),r=c(5103),g=c(5699),e=c(4917),M=c(5154),G=c(1188),L=c(3953);let B=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=L.$C({type:he});static#n=this.\u0275inj=L.G2t({imports:[t.MD]})}return he})();var A=c(1236),w=c(8156),I=c(4666),F=c(5928),X=c(8052),V=c(2582),x=c(7683),ne=c(3126),J=c(6075);let be=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=L.$C({type:he});static#n=this.\u0275inj=L.G2t({imports:[t.MD,X.b,w.U,x.B,ne.t,V.y,I.v,F.o,J.$]})}return he})(),Oe=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=L.$C({type:he});static#n=this.\u0275inj=L.G2t({imports:[t.MD,G.iI,r.Y3,g.T,M.Qt,A.MC,B,e.i,be,B]})}return he})()},8721:(Rt,De,c)=>{c.d(De,{G:()=>ne});var t=c(1635),r=c(9894),g=c(3953),e=c(1188),M=c(177),G=c(2983),L=c(3617),B=c(1774);const A=["*"];function w(J,be){if(1&J&&g.nrm(0,"nz-alert",6),2&J){g.XpG();const Oe=g.sdS(3),he=g.XpG();g.Mz_("nzMessage","Error Submitting ",he.entityType,""),g.Y8G("nzDescription",Oe)}}function I(J,be){if(1&J&&(g.j41(0,"li"),g.EFF(1),g.k0s()),2&J){const Oe=be.$implicit;g.R7$(),g.SpI(" ",Oe," ")}}function F(J,be){if(1&J&&(g.j41(0,"ul"),g.DNE(1,I,2,1,"li",7),g.k0s()),2&J){const Oe=g.XpG().ngIf;g.R7$(),g.Y8G("ngForOf",Oe)}}function X(J,be){if(1&J&&(g.qex(0),g.DNE(1,w,1,3,"nz-alert",5)(2,F,2,1,"ng-template",null,1,g.C5r),g.bVm()),2&J){const Oe=be.ngIf;g.R7$(),g.Y8G("ngIf",Oe.length>0)}}function V(J,be){if(1&J&&(g.qex(0),g.nrm(1,"nz-alert",8),g.bVm()),2&J){const Oe=g.XpG();g.R7$(),g.Mz_("nzMessage","",Oe.entityType," Submitted"),g.Y8G("nzDescription",Oe.successMessage?Oe.successMessage:null)}}function x(J,be){1&J&&g.SdG(0)}let ne=class D8{set mutationState(be){this._mutationState=be,this.currentTimer&&clearTimeout(this.currentTimer),be&&be.submitSuccess$.pipe((0,r.s)(this)).subscribe(Oe=>{Oe&&(this.currentTimer=setTimeout(()=>{this.redirectUrl&&this.router.navigateByUrl(this.redirectUrl)},2500))})}get mutationState(){return this._mutationState}constructor(be){this.router=be}ngOnInit(){}static#e=this.\u0275fac=function(Oe){return new(Oe||D8)(g.rXU(e.Ix))};static#t=this.\u0275cmp=g.VBU({type:D8,selectors:[["cvc-form-submission-status-display"]],inputs:{mutationState:"mutationState",entityType:"entityType",successMessage:"successMessage",redirectUrl:"redirectUrl"},ngContentSelectors:A,decls:8,vars:10,consts:[["form",""],["errorList",""],[3,"nzSpinning"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription"],[4,"ngFor","ngForOf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(Oe,he){if(1&Oe&&(g.NAR(),g.j41(0,"nz-spin",2),g.nI1(1,"ngrxPush"),g.DNE(2,X,4,1,"ng-container",3),g.nI1(3,"ngrxPush"),g.DNE(4,V,2,3,"ng-container",4),g.nI1(5,"ngrxPush"),g.DNE(6,x,1,0,"ng-template",null,0,g.C5r),g.k0s()),2&Oe){const Ie=g.sdS(7);g.Y8G("nzSpinning",g.bMT(1,4,null==he.mutationState?null:he.mutationState.isSubmitting$)),g.R7$(2),g.Y8G("ngIf",g.bMT(3,6,null==he.mutationState?null:he.mutationState.submitError$)),g.R7$(2),g.Y8G("ngIf",g.bMT(5,8,null==he.mutationState?null:he.mutationState.submitSuccess$))("ngIfElse",Ie)}},dependencies:[M.Sq,M.bT,G.a,L.Y,B.L9],encapsulation:2,changeDetection:0})};ne=(0,t.Cg)([(0,r.d)()],ne)},5316:(Rt,De,c)=>{c.d(De,{P:()=>G});var t=c(177),r=c(3617),g=c(7685),e=c(2983),M=c(3953);let G=(()=>{class L{static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275mod=M.$C({type:L});static#n=this.\u0275inj=M.G2t({imports:[t.MD,e.V,r.$,g.pc]})}return L})()},8168:(Rt,De,c)=>{c.d(De,{m:()=>Gd});var t=c(9417),r=c(1188),g=c(8524),e=c(3953),M=c(177),G=c(8927),L=c(7529);function B(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-form-label",4),e.EFF(2),e.k0s(),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("nzRequired",a.props.required&&!0!==a.props.hideRequiredMarker)("nzFor",a.id),e.R7$(),e.SpI(" ",a.props.label," ")}}function A(u,b){if(1&u&&e.nrm(0,"formly-validation-message",5),2&u){const a=e.XpG();e.Y8G("field",a.field)}}let w=(()=>{class u extends g.cm{get errorState(){return this.showError?"error":""}}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-wrapper-nz-form-field"]],features:[e.Vt3],decls:7,vars:4,consts:[["fieldComponent",""],["errorTpl",""],[4,"ngIf"],[3,"nzValidateStatus","nzErrorTip","nzExtra"],[3,"nzRequired","nzFor"],[3,"field"]],template:function(a,h){if(1&a&&(e.j41(0,"nz-form-item"),e.DNE(1,B,3,3,"ng-container",2),e.j41(2,"nz-form-control",3),e.eu8(3,null,0),e.DNE(5,A,1,1,"ng-template",null,1,e.C5r),e.k0s()()),2&a){const _=e.sdS(6);e.R7$(),e.Y8G("ngIf",h.props.label&&!0!==h.props.hideLabel),e.R7$(),e.Y8G("nzValidateStatus",h.errorState)("nzErrorTip",_)("nzExtra",h.props.description)}},dependencies:[G.Ls,G.Mo,G.zS,g.Nc,L.e,M.bT,L.Uq],encapsulation:2}),u})(),I=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,G.PQ,g.qy.forChild({wrappers:[{name:"form-field",component:w}]})]]}),u})();var F=c(1011),X=c(7336),V=c(1413),x=c(3726),ne=c(7786),J=c(3294),be=c(6977),Oe=c(9172),he=c(5558),Ie=c(1397),me=c(6354),de=c(7891),H=c(1025),z=c(317),Z=c(5103),pe=c(851),E=c(8203),S=c(7806);const R=["upHandler"],Y=["downHandler"],se=["inputElement"];function Be(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",10),2&u){const a=e.XpG();e.Y8G("status",a.status)}}const Pt=["nz-input-number-group-slot",""],vt=["*"];function wt(u,b){if(1&u&&e.nrm(0,"span",0),2&u){const a=e.XpG();e.Y8G("nzType",a.icon)}}function Le(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.JRh(a.template)}}function zt(u,b){if(1&u&&e.nrm(0,"div",3),2&u){const a=e.XpG(2);e.Y8G("icon",a.nzAddOnBeforeIcon)("template",a.nzAddOnBefore)}}function xt(u,b){}function st(u,b){if(1&u&&(e.j41(0,"div",6),e.DNE(1,xt,0,0,"ng-template",5),e.k0s()),2&u){const a=e.XpG(2),h=e.sdS(3);e.AVh("ant-input-number-affix-wrapper-disabled",a.disabled)("ant-input-number-affix-wrapper-sm",a.isSmall)("ant-input-number-affix-wrapper-lg",a.isLarge)("ant-input-number-affix-wrapper-focused",a.focused),e.Y8G("ngClass",a.affixInGroupStatusCls),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Ct(u,b){}function It(u,b){if(1&u&&e.DNE(0,Ct,0,0,"ng-template",5),2&u){e.XpG(2);const a=e.sdS(5);e.Y8G("ngTemplateOutlet",a)}}function Tt(u,b){if(1&u&&e.nrm(0,"span",3),2&u){const a=e.XpG(2);e.Y8G("icon",a.nzAddOnAfterIcon)("template",a.nzAddOnAfter)}}function en(u,b){if(1&u&&(e.j41(0,"span",2),e.DNE(1,zt,1,2,"div",3)(2,st,2,10,"div",4)(3,It,1,1,null,5)(4,Tt,1,2,"span",3),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.vxM(a.nzAddOnBefore||a.nzAddOnBeforeIcon?1:-1),e.R7$(),e.vxM(a.isAffix||a.hasFeedback?2:3),e.R7$(2),e.vxM(a.nzAddOnAfter||a.nzAddOnAfterIcon?4:-1)}}function jt(u,b){}function Vt(u,b){if(1&u&&e.DNE(0,jt,0,0,"ng-template",5),2&u){e.XpG(2);const a=e.sdS(3);e.Y8G("ngTemplateOutlet",a)}}function fn(u,b){}function Hn(u,b){if(1&u&&e.DNE(0,fn,0,0,"ng-template",5),2&u){e.XpG(2);const a=e.sdS(5);e.Y8G("ngTemplateOutlet",a)}}function zn(u,b){if(1&u&&e.DNE(0,Vt,1,1,null,5)(1,Hn,1,1,null,5),2&u){const a=e.XpG();e.vxM(a.isAffix?0:1)}}function bt(u,b){if(1&u&&e.nrm(0,"span",7),2&u){const a=e.XpG(2);e.Y8G("icon",a.nzPrefixIcon)("template",a.nzPrefix)}}function At(u,b){}function Et(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",9),2&u){const a=e.XpG(3);e.Y8G("status",a.status)}}function Ot(u,b){if(1&u&&(e.j41(0,"span",8),e.DNE(1,Et,1,1,"nz-form-item-feedback-icon",9),e.k0s()),2&u){const a=e.XpG(2);e.Y8G("icon",a.nzSuffixIcon)("template",a.nzSuffix),e.R7$(),e.vxM(a.isFeedback?1:-1)}}function Wt(u,b){if(1&u&&e.DNE(0,bt,1,2,"span",7)(1,At,0,0,"ng-template",5)(2,Ot,2,3,"span",8),2&u){const a=e.XpG(),h=e.sdS(5);e.vxM(a.nzPrefix||a.nzPrefixIcon?0:-1),e.R7$(),e.Y8G("ngTemplateOutlet",h),e.R7$(),e.vxM(a.nzSuffix||a.nzSuffixIcon||a.isFeedback?2:-1)}}function Ue(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",9),2&u){const a=e.XpG(3);e.Y8G("status",a.status)}}function Ae(u,b){if(1&u&&(e.j41(0,"span",10),e.DNE(1,Ue,1,1,"nz-form-item-feedback-icon",9),e.k0s()),2&u){const a=e.XpG(2);e.R7$(),e.vxM(a.isFeedback?1:-1)}}function ie(u,b){if(1&u&&(e.SdG(0),e.DNE(1,Ae,2,1,"span",10)),2&u){const a=e.XpG();e.R7$(),e.vxM(a.isAddOn||a.isAffix||!a.isFeedback?-1:1)}}let _e=(()=>{class u{onModelChange(a){this.parsedValue=this.nzParser(a),this.inputElement.nativeElement.value=`${this.parsedValue}`;const h=this.getCurrentValidValue(this.parsedValue);this.setValue(h)}getCurrentValidValue(a){let h=a;return h=""===h?"":this.isNotCompleteNumber(h)?this.value:`${this.getValidValue(h)}`,this.toNumber(h)}isNotCompleteNumber(a){return isNaN(a)||""===a||null===a||!(!a||a.toString().indexOf(".")!==a.toString().length-1)}getValidValue(a){let h=parseFloat(a);return isNaN(h)?a:(hthis.nzMax&&(h=this.nzMax),h)}toNumber(a){if(this.isNotCompleteNumber(a))return a;const h=String(a);if(h.indexOf(".")>=0&&(0,z.n9)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(a,this.nzPrecision);if("cut"===this.nzPrecisionMode){const _=h.split(".");return _[1]=_[1].slice(0,this.nzPrecision),Number(_.join("."))}return Number(Number(a).toFixed(this.nzPrecision))}return Number(a)}getRatio(a){let h=1;return a.metaKey||a.ctrlKey?h=.1:a.shiftKey&&(h=10),h}down(a,h){this.isFocused||this.focus(),this.step("down",a,h)}up(a,h){this.isFocused||this.focus(),this.step("up",a,h)}getPrecision(a){const h=a.toString();if(h.indexOf("e-")>=0)return parseInt(h.slice(h.indexOf("e-")+2),10);let _=0;return h.indexOf(".")>=0&&(_=h.length-h.indexOf(".")-1),_}getMaxPrecision(a,h){if((0,z.n9)(this.nzPrecision))return this.nzPrecision;const _=this.getPrecision(h),ee=this.getPrecision(this.nzStep),ft=this.getPrecision(a);return a?Math.max(ft,_+ee):_+ee}getPrecisionFactor(a,h){const _=this.getMaxPrecision(a,h);return Math.pow(10,_)}upStep(a,h){const _=this.getPrecisionFactor(a,h),ee=Math.abs(this.getMaxPrecision(a,h));let ft;return ft="number"==typeof a?((_*a+_*this.nzStep*h)/_).toFixed(ee):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(ft)}downStep(a,h){const _=this.getPrecisionFactor(a,h),ee=Math.abs(this.getMaxPrecision(a,h));let ft;return ft="number"==typeof a?((_*a-_*this.nzStep*h)/_).toFixed(ee):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(ft)}step(a,h,_=1){if(this.stop(),h.preventDefault(),this.nzDisabled)return;const ee=this.getCurrentValidValue(this.parsedValue)||0;let ft=0;"up"===a?ft=this.upStep(ee,_):"down"===a&&(ft=this.downStep(ee,_));const nn=ft>this.nzMax||ftthis.nzMax?ft=this.nzMax:ft{this[a](h,_)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(a){if(`${this.value}`!=`${a}`&&this.onChange(a),this.value=a,this.parsedValue=a,this.disabledUp=this.disabledDown=!1,a||0===a){const h=Number(a);h>=this.nzMax&&(this.disabledUp=!0),h<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(a){const h=(0,z.n9)(this.nzFormatter(a))?this.nzFormatter(a):"";this.displayValue=h,this.inputElement.nativeElement.value=`${h}`}writeValue(a){this.value=a,this.setValue(a),this.updateDisplayValue(a),this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.disabled$.next(this.nzDisabled),this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(a,h,_,ee,ft,nn,Rn,xi,Co){this.ngZone=a,this.elementRef=h,this.cdr=_,this.focusMonitor=ee,this.renderer=ft,this.directionality=nn,this.destroy$=Rn,this.nzFormStatusService=xi,this.nzFormNoStatusService=Co,this.isNzDisableFirstChange=!0,this.isFocused=!1,this.disabled$=new V.B,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.status="",this.statusCls={},this.hasFeedback=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new e.bkB,this.nzFocus=new e.bkB,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=Ho=>Ho.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStatus="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzReadOnly=!1,this.nzAutoFocus=!1,this.nzBorderless=!1,this.nzFormatter=Ho=>Ho}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,J.F)((a,h)=>a.status===h.status&&a.hasFeedback===h.hasFeedback),(0,be.Q)(this.destroy$)).subscribe(({status:a,hasFeedback:h})=>{this.setStatusStyles(a,h)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,be.Q)(this.destroy$)).subscribe(a=>{a?(this.isFocused=!0,this.nzFocus.emit()):(this.isFocused=!1,this.updateDisplayValue(this.value),this.nzBlur.emit(),Promise.resolve().then(()=>this.onTouched()))}),this.dir=this.directionality.value,this.directionality.change.pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.dir=a}),this.setupHandlersListeners(),this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.inputElement.nativeElement,"keyup").pipe((0,be.Q)(this.destroy$)).subscribe(()=>this.stop()),(0,x.R)(this.inputElement.nativeElement,"keydown").pipe((0,be.Q)(this.destroy$)).subscribe(a=>{const{keyCode:h}=a;h!==X.i7&&h!==X.n6&&h!==X.Fm||this.ngZone.run(()=>{if(h===X.i7){const _=this.getRatio(a);this.up(a,_),this.stop()}else if(h===X.n6){const _=this.getRatio(a);this.down(a,_),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(a){const{nzStatus:h,nzDisabled:_}=a;if(a.nzFormatter&&!a.nzFormatter.isFirstChange()){const ee=this.getCurrentValidValue(this.parsedValue);this.setValue(ee),this.updateDisplayValue(ee)}_&&this.disabled$.next(this.nzDisabled),h&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef)}setupHandlersListeners(){this.ngZone.runOutsideAngular(()=>{(0,ne.h)((0,x.R)(this.upHandler.nativeElement,"mouseup"),(0,x.R)(this.upHandler.nativeElement,"mouseleave"),(0,x.R)(this.downHandler.nativeElement,"mouseup"),(0,x.R)(this.downHandler.nativeElement,"mouseleave")).pipe((0,be.Q)(this.destroy$)).subscribe(()=>this.stop())})}setStatusStyles(a,h){this.status=a,this.hasFeedback=h,this.cdr.markForCheck(),this.statusCls=(0,z.LP)(this.prefixCls,a,h),Object.keys(this.statusCls).forEach(_=>{this.statusCls[_]?this.renderer.addClass(this.elementRef.nativeElement,_):this.renderer.removeClass(this.elementRef.nativeElement,_)})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(pe.FN),e.rXU(e.sFG),e.rXU(E.dS,8),e.rXU(H.y4),e.rXU(de.is,8),e.rXU(de.n1,8))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-input-number"]],viewQuery:function(h,_){if(1&h&&(e.GBs(R,7),e.GBs(Y,7),e.GBs(se,7)),2&h){let ee;e.mGM(ee=e.lsd())&&(_.upHandler=ee.first),e.mGM(ee=e.lsd())&&(_.downHandler=ee.first),e.mGM(ee=e.lsd())&&(_.inputElement=ee.first)}},hostAttrs:[1,"ant-input-number"],hostVars:16,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-in-form-item",!!_.nzFormStatusService)("ant-input-number-focused",_.isFocused)("ant-input-number-lg","large"===_.nzSize)("ant-input-number-sm","small"===_.nzSize)("ant-input-number-disabled",_.nzDisabled)("ant-input-number-readonly",_.nzReadOnly)("ant-input-number-rtl","rtl"===_.dir)("ant-input-number-borderless",_.nzBorderless)},inputs:{nzSize:"nzSize",nzMin:[2,"nzMin","nzMin",e.Udg],nzMax:[2,"nzMax","nzMax",e.Udg],nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStatus:"nzStatus",nzStep:[2,"nzStep","nzStep",e.Udg],nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzReadOnly:[2,"nzReadOnly","nzReadOnly",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzBorderless:[2,"nzBorderless","nzBorderless",e.L39],nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],standalone:!0,features:[e.Jv_([{provide:t.kq,useExisting:(0,e.Rfq)(()=>u),multi:!0},H.y4]),e.GFd,e.OA$,e.aNF],decls:11,vars:15,consts:[["upHandler",""],["downHandler",""],["inputElement",""],[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["nz-icon","","nzType","up",1,"ant-input-number-handler-up-inner"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown"],["nz-icon","","nzType","down",1,"ant-input-number-handler-down-inner"],[1,"ant-input-number-input-wrap"],["autocomplete","off",1,"ant-input-number-input",3,"ngModelChange","disabled","placeholder","readOnly","ngModel"],[1,"ant-input-number-suffix",3,"status"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"div",3)(1,"span",4,0),e.bIt("mousedown",function(nn){return e.eBV(ee),e.Njj(_.up(nn))}),e.nrm(3,"span",5),e.k0s(),e.j41(4,"span",6,1),e.bIt("mousedown",function(nn){return e.eBV(ee),e.Njj(_.down(nn))}),e.nrm(6,"span",7),e.k0s()(),e.j41(7,"div",8)(8,"input",9,2),e.bIt("ngModelChange",function(nn){return e.eBV(ee),e.Njj(_.onModelChange(nn))}),e.k0s()(),e.DNE(10,Be,1,1,"nz-form-item-feedback-icon",10)}2&h&&(e.R7$(),e.AVh("ant-input-number-handler-up-disabled",_.disabledUp),e.R7$(3),e.AVh("ant-input-number-handler-down-disabled",_.disabledDown),e.R7$(4),e.Y8G("disabled",_.nzDisabled)("placeholder",_.nzPlaceHolder)("readOnly",_.nzReadOnly)("ngModel",_.displayValue),e.BMQ("id",_.nzId)("autofocus",_.nzAutoFocus?"autofocus":null)("min",_.nzMin)("max",_.nzMax)("step",_.nzStep)("inputmode",_.nzInputMode),e.R7$(2),e.vxM(_.hasFeedback&&_.status&&!_.nzFormNoStatusService?10:-1))},dependencies:[Z.Y3,Z.Dn,t.YN,t.me,t.BC,t.vS,de.J1,de.Xd],encapsulation:2,changeDetection:0})}return u})(),oe=(()=>{class u{constructor(){this.icon=null,this.type=null,this.template=null}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["","nz-input-number-group-slot",""]],hostVars:6,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-group-addon","addon"===_.type)("ant-input-number-prefix","prefix"===_.type)("ant-input-number-suffix","suffix"===_.type)},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[e.aNF],attrs:Pt,ngContentSelectors:vt,decls:3,vars:2,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"]],template:function(h,_){1&h&&(e.NAR(),e.DNE(0,wt,1,1,"span",0)(1,Le,2,1,"ng-container",1),e.SdG(2)),2&h&&(e.vxM(_.icon?0:-1),e.R7$(),e.Y8G("nzStringTemplateOutlet",_.template))},dependencies:[Z.Y3,Z.Dn,S.C,S.m],encapsulation:2,changeDetection:0})}return u})(),et=(()=>{class u{constructor(a,h,_,ee,ft,nn,Rn){this.focusMonitor=a,this.elementRef=h,this.renderer=_,this.cdr=ee,this.directionality=ft,this.nzFormStatusService=nn,this.nzFormNoStatusService=Rn,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new V.B}updateChildrenInputSize(){this.listOfNzInputNumberComponent&&this.listOfNzInputNumberComponent.forEach(a=>a.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,J.F)((a,h)=>a.status===h.status&&a.hasFeedback===h.hasFeedback),(0,be.Q)(this.destroy$)).subscribe(({status:a,hasFeedback:h})=>{this.setStatusStyles(a,h)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.focused=!!a,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.dir=a})}ngAfterContentInit(){this.updateChildrenInputSize();const a=this.listOfNzInputNumberComponent.changes.pipe((0,Oe.Z)(this.listOfNzInputNumberComponent));a.pipe((0,he.n)(h=>(0,ne.h)(a,...h.map(_=>_.disabled$))),(0,Ie.Z)(()=>a),(0,me.T)(h=>h.some(_=>_.nzDisabled)),(0,be.Q)(this.destroy$)).subscribe(h=>{this.disabled=h,this.cdr.markForCheck()})}ngOnChanges(a){const{nzSize:h,nzSuffix:_,nzPrefix:ee,nzPrefixIcon:ft,nzSuffixIcon:nn,nzAddOnAfter:Rn,nzAddOnBefore:xi,nzAddOnAfterIcon:Co,nzAddOnBeforeIcon:Ho,nzStatus:Na}=a;h&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(_||ee||ft||nn)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Rn||xi||Co||Ho)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),Na&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(a,h){this.status=a,this.hasFeedback=h,this.isFeedback=!!a&&h,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&h,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,z.LP)(`${this.prefixCls}-affix-wrapper`,a,h):{},this.cdr.markForCheck(),this.affixStatusCls=(0,z.LP)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":a,!this.isAddOn&&h),this.groupStatusCls=(0,z.LP)(`${this.prefixCls}-group-wrapper`,this.isAddOn?a:"",!!this.isAddOn&&h);const ee={...this.affixStatusCls,...this.groupStatusCls};Object.keys(ee).forEach(ft=>{ee[ft]?this.renderer.addClass(this.elementRef.nativeElement,ft):this.renderer.removeClass(this.elementRef.nativeElement,ft)})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(pe.FN),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(E.dS,8),e.rXU(de.is,8),e.rXU(de.n1,8))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-input-number-group"]],contentQueries:function(h,_,ee){if(1&h&&e.wni(ee,_e,5),2&h){let ft;e.mGM(ft=e.lsd())&&(_.listOfNzInputNumberComponent=ft)}},hostVars:24,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-group",_.nzCompact)("ant-input-number-group-compact",_.nzCompact)("ant-input-number-group-wrapper",_.isAddOn)("ant-input-number-group-wrapper-rtl",_.isAddOn&&"rtl"===_.dir)("ant-input-number-group-wrapper-lg",_.isAddOn&&_.isLarge)("ant-input-number-group-wrapper-sm",_.isAddOn&&_.isSmall)("ant-input-number-affix-wrapper",!_.isAddOn&&_.isAffix)("ant-input-number-affix-wrapper-rtl",!_.isAddOn&&"rtl"===_.dir)("ant-input-number-affix-wrapper-focused",!_.isAddOn&&_.isAffix&&_.focused)("ant-input-number-affix-wrapper-disabled",!_.isAddOn&&_.isAffix&&_.disabled)("ant-input-number-affix-wrapper-lg",!_.isAddOn&&_.isAffix&&_.isLarge)("ant-input-number-affix-wrapper-sm",!_.isAddOn&&_.isAffix&&_.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzCompact:[2,"nzCompact","nzCompact",e.L39]},exportAs:["nzInputNumberGroup"],standalone:!0,features:[e.Jv_([de.n1]),e.GFd,e.OA$,e.aNF],ngContentSelectors:vt,decls:6,vars:1,consts:[["affixTemplate",""],["contentTemplate",""],[1,"ant-input-number-wrapper","ant-input-number-group"],["nz-input-number-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-number-affix-wrapper",3,"ant-input-number-affix-wrapper-disabled","ant-input-number-affix-wrapper-sm","ant-input-number-affix-wrapper-lg","ant-input-number-affix-wrapper-focused","ngClass"],[3,"ngTemplateOutlet"],[1,"ant-input-number-affix-wrapper",3,"ngClass"],["nz-input-number-group-slot","","type","prefix",3,"icon","template"],["nz-input-number-group-slot","","type","suffix",3,"icon","template"],[3,"status"],["nz-input-number-group-slot","","type","suffix"]],template:function(h,_){1&h&&(e.NAR(),e.DNE(0,en,5,3,"span",2)(1,zn,2,1)(2,Wt,3,3,"ng-template",null,0,e.C5r)(4,ie,2,1,"ng-template",null,1,e.C5r)),2&h&&e.vxM(_.isAddOn?0:1)},dependencies:[oe,M.YU,M.T3,de.J1,de.Xd],encapsulation:2,changeDetection:0})}return u})(),dt=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[_e,et,oe]})}return u})();function Kt(u,b){if(1&u&&e.nrm(0,"input",2),2&u){const a=e.XpG();e.Y8G("formControl",a.formControl)("type",a.props.type||"text")("formlyAttributes",a.field)}}function cn(u,b){if(1&u&&e.nrm(0,"nz-input-number",3),2&u){const a=e.XpG();e.Y8G("formControl",a.formControl)("formlyAttributes",a.field)}}let Tn=(()=>{class u extends g.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes",4,"ngIf","ngIfElse"],["nz-input","",3,"formControl","type","formlyAttributes"],[3,"formControl","formlyAttributes"]],template:function(a,h){if(1&a&&e.DNE(0,Kt,1,3,"input",1)(1,cn,1,2,"ng-template",null,0,e.C5r),2&a){const _=e.sdS(2);e.Y8G("ngIf","number"!==h.props.type)("ngIfElse",_)}},dependencies:[_e,M.bT,F.Sy,t.me,t.BC,t.l_,g.ch],encapsulation:2,changeDetection:0}),u})(),Wn=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,F.j,dt,I,g.qy.forChild({types:[{name:"input",component:Tn,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]})]]}),u})(),kn=(()=>{class u extends g.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(a,h){1&a&&e.nrm(0,"textarea",0),2&a&&e.Y8G("formControl",h.formControl)("formlyAttributes",h.field)},dependencies:[F.Sy,t.me,t.BC,t.l_,g.ch],encapsulation:2,changeDetection:0}),u})(),Vn=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,F.j,I,g.qy.forChild({types:[{name:"textarea",component:kn,wrappers:["form-field"]}]})]]}),u})();var Un=c(1985),dn=c(4412),qt=c(5964),On=c(8141);let Ut=(()=>{class u{transform(a,h){return a instanceof Un.c?this.dispose():a=this.observableOf(a,h),a.pipe((0,me.T)(_=>this.transformOptions(_,h)))}ngOnDestroy(){this.dispose()}transformOptions(a,h){const _=this.transformSelectProps(h),ee=[],ft={};return a?.forEach(nn=>{const Rn=this.transformOption(nn,_);if(Rn.group){const xi=ft[Rn.label];void 0===xi?ft[Rn.label]=ee.push(Rn)-1:Rn.group.forEach(Co=>ee[xi].group.push(Co))}else ee.push(Rn)}),ee}transformOption(a,h){const _=h.groupProp(a);return Array.isArray(_)?{label:h.labelProp(a),group:_.map(ee=>this.transformOption(ee,h))}:(a={label:h.labelProp(a),value:h.valueProp(a),disabled:!!h.disabledProp(a)},_?{label:_,group:[a]}:a)}transformSelectProps(a){const h=a?.props||a?.templateOptions||{},_=ee=>"function"==typeof ee?ee:ft=>ft[ee];return{groupProp:_(h.groupProp||"group"),labelProp:_(h.labelProp||"label"),valueProp:_(h.valueProp||"value"),disabledProp:_(h.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(a,h){return this.dispose(),h&&h.options&&h.options.fieldChanges&&(this._subscription=h.options.fieldChanges.pipe((0,qt.p)(({property:_,type:ee,field:ft})=>"expressionChanges"===ee&&(0===_.indexOf("templateOptions.options")||0===_.indexOf("props.options"))&&ft===h&&Array.isArray(ft.props.options)&&!!this._options),(0,On.M)(()=>this._options.next(h.props.options))).subscribe()),this._options=new dn.t(a),this._options.asObservable()}}return u.\u0275fac=function(a){return new(a||u)},u.\u0275pipe=e.EJ8({name:"formlySelectOptions",type:u,pure:!0}),u})(),Ye=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({}),u})();var ue=c(3190);function te(u,b){if(1&u&&(e.j41(0,"label",2),e.EFF(1),e.k0s()),2&u){const a=b.$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled),e.R7$(),e.SpI(" ",a.label," ")}}let q=(()=>{class u extends g.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-radio"]],features:[e.Vt3],decls:4,vars:7,consts:[[3,"ngModelChange","formControl"],["nz-radio","",3,"nzValue","nzDisabled",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue","nzDisabled"]],template:function(a,h){1&a&&(e.j41(0,"nz-radio-group",0),e.bIt("ngModelChange",function(ee){return h.props.change&&h.props.change(h.field,ee)}),e.DNE(1,te,2,3,"label",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&a&&(e.Y8G("formControl",h.formControl),e.R7$(),e.Y8G("ngForOf",e.bMT(3,5,e.i5U(2,2,h.props.options,h.field))))},dependencies:[ue.i3,ue.lx,t.BC,t.l_,M.Sq,M.Jj,Ut],encapsulation:2,changeDetection:0}),u})(),Xe=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,ue.Sw,I,Ye,g.qy.forChild({types:[{name:"radio",component:q,wrappers:["form-field"]}]})]]}),u})();var ht=c(2986);let at=(()=>{class u extends g.PU{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(a,h){1&a&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ee){return h.props.change&&h.props.change(h.field,ee)}),e.EFF(1),e.k0s()),2&a&&(e.Y8G("nzIndeterminate",h.props.indeterminate&&null==h.formControl.value)("formControl",h.formControl)("formlyAttributes",h.field),e.R7$(),e.SpI(" ",h.props.label," "))},dependencies:[ht.$g,t.BC,t.l_,g.ch],encapsulation:2,changeDetection:0}),u})(),St=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,ht.IJ,I,g.qy.forChild({types:[{name:"checkbox",component:at,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]})]]}),u})();var Qe=c(1997);function Ee(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const a=b.$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled)("nzLabel",a.label)}}function Je(u,b){if(1&u&&(e.j41(0,"nz-option-group",4),e.DNE(1,Ee,1,3,"nz-option",5),e.k0s()),2&u){const a=e.XpG().$implicit;e.Y8G("nzLabel",a.label),e.R7$(),e.Y8G("ngForOf",a.group)}}function re(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const a=e.XpG().$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled)("nzLabel",a.label)}}function ze(u,b){if(1&u&&(e.qex(0),e.DNE(1,Je,2,2,"nz-option-group",2)(2,re,1,3,"nz-option",3),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",a.group),e.R7$(),e.Y8G("ngIf",!a.group)}}let gt=(()=>{class u extends g.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-select"]],features:[e.Vt3],decls:4,vars:12,consts:[[3,"ngModelChange","nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(a,h){1&a&&(e.j41(0,"nz-select",0),e.bIt("ngModelChange",function(ee){return h.props.change&&h.props.change(h.field,ee)}),e.DNE(1,ze,3,2,"ng-container",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&a&&(e.AVh("ng-dirty",h.showError),e.Y8G("nzPlaceHolder",h.props.placeholder)("formControl",h.formControl)("formlyAttributes",h.field)("nzMode",h.props.multiple?"multiple":"default"),e.R7$(),e.Y8G("ngForOf",e.bMT(3,10,e.i5U(2,7,h.props.options,h.field))))},dependencies:[Qe.WI,Qe.uX,Qe.ld,t.BC,t.l_,g.ch,M.Sq,M.bT,M.Jj,Ut],encapsulation:2,changeDetection:0}),u})(),Ke=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[M.MD,t.X1,Qe.DH,I,Ye,g.qy.forChild({types:[{name:"select",component:gt,wrappers:["form-field"]},{name:"enum",extends:"select"}]})]]}),u})(),Pe=(()=>{class u{}return u.\u0275fac=function(a){return new(a||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[I,Wn,Vn,Xe,St,Ke]]}),u})();var Re=c(776);function $(u,b){return(0,J.F)((a,h)=>b?b(a[u],h[u]):a[u]===h[u])}const ce={paramKey:!0};class N{constructor(b){this.route=b,this.unSub$=new V.B}postPopulate(b){if(b.fieldGroup||b.fieldArray||!1===(b.props||{...ce}).paramKey||(this.paramKey=this.getParamKey(b),!this.paramKey))return;const h=this.getRouteSub(this.route,b),_=b.hooks?.onDestroy;h&&_&&(b.hooks={...b.hooks,onDestroy:ee=>{h.unsubscribe(),_(ee)}})}getParamKey(b){const a=b.props;if("string"==typeof a.paramKey)return a.paramKey;if(b.key){if("string"==typeof b.key)return b.key;console.warn(`observe-query-param cannot use field key ${JSON.stringify(b.key)} of type ${typeof b.key} to observe a query param. Use prop.paramKey to specify a query param string, or define a string field.key.`)}}getRouteSub(b,a){return b.queryParams.pipe($(this.paramKey),(0,be.Q)(this.unSub$)).subscribe(h=>{const _=a.formControl,ee=h[this.paramKey];if(!ee)return void this.unSub$.next();let ft;try{ft=JSON.parse(ee)}catch(nn){return console.warn(`observe-query-param failed to parse query param ${this.paramKey} for field ${a.id}: ${nn}`),console.warn("Note: Query values are parsed as JSON, therefore enum strings must be enclosed in double-quotes, and numeric entity IDs must be bare, unquoted."),void this.unSub$.next()}if(ft)return Object.keys(ft).length>0&&ft.constructor===Object?(console.warn(`observe-query-param may only set primitive types or arrays of primitive types, param ${this.paramKey} is an object: ${JSON.stringify(ft)}`),void this.unSub$.next()):void _.setValue(ft);this.unSub$.next()})}}function ke(u){return{extensions:[{name:"observeQueryParam",extension:new N(u)}]}}const U={extras:{immutable:!1,lazyRender:!0},validationMessages:[{name:"required",message:"This field is required."},{name:"minLength",message:(u,b)=>`This field has a minimum length of ${b.templateOptions?.minLength}.`},{name:"maxLength",message:(u,b)=>`This field has a maximum length of ${b.templateOptions?.maxLength}.`},{name:"min",message:(u,b)=>`This field has a minimum value of ${b.templateOptions?.min}.`},{name:"max",message:(u,b)=>`This field has a maximum value of ${b.templateOptions?.max}.`},{name:"pattern",message:(u,b)=>`This field's value must fit the pattern ${b.templateOptions?.pattern}.`},{name:"integer",message:(u,b)=>"Value must be an integer."},{name:"nucleotide",message:(u,b)=>"Value must only contain A, C, T, G, and/or /."},{name:"clinvar",message:(u,b)=>"Value must be an integer."}],validators:[{name:"integer",validation:(u,b)=>""===u.value||null==u.value||/^\d+$/.test(u.value)?null:{integer:!0}},{name:"nucleotide",validation:(u,b)=>""===u.value||null==u.value||/^[ACTG\/]+$/.test(u.value)?null:{nucleotide:!0}},{name:"clinvar",validation:(u,b)=>{for(var a of u.value)if(""!==a&&null!=a&&!/^\d+$/.test(a))return{clinvar:!0};return null}}]};var ge=c(4917),qe=c(7391),rt=c(8928),Ft=c(181),rn=c(7685),Cn=c(3617),Zn=c(9448);let jn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(),Cn.$,Z.Y3,Qe.DH,F.j,G.PQ,qe.kT,rt.jl,rn.pc,Zn.g,Ft._,ge.i]})}return u})();var Gn=c(5699);let Ti=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,Gn.T,ge.i]})}return u})();const Oi=(u,b,a,h)=>({disabled:u,error:b,required:a,valid:h}),lo=(u,b)=>({disabled:u,error:b});function Zi(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-form-label",6),e.nrm(2,"span",7),e.k0s(),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(6,lo,a.props.disabled,a.showError))("nzRequired",a.props.required)("nzFor",a.id)("nzTooltipTitle",a.props.tooltip)("nzNoColon",!0),e.R7$(),e.Y8G("nzContent",a.props.label)}}function Bo(u,b){if(1&u&&e.nrm(0,"span",13),2&u){const a=e.XpG(2);e.Y8G("innerHTML",a.props.description,e.npT)}}function bo(u,b){if(1&u&&e.nrm(0,"span",14),2&u){const a=e.XpG(2);e.Y8G("innerHTML",a.props.description,e.npT)}}function zr(u,b){if(1&u&&e.nrm(0,"span",15),2&u){const a=e.XpG(2);e.Y8G("innerHTML",a.props.description,e.npT)}}function rr(u,b){if(1&u&&(e.j41(0,"div",8),e.qex(1,9),e.DNE(2,Bo,1,1,"span",10)(3,bo,1,1,"span",11)(4,zr,1,1,"span",12),e.bVm(),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngSwitch",a.props.extraType),e.R7$(),e.Y8G("ngSwitchCase","prompt"),e.R7$(),e.Y8G("ngSwitchCase","description")}}function lt(u,b){if(1&u&&e.nrm(0,"formly-validation-message",18),2&u){const a=e.XpG(2);e.Y8G("field",a.field)}}function Lt(u,b){if(1&u&&(e.j41(0,"div",16),e.DNE(1,lt,1,1,"formly-validation-message",17),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",a.props.showErrorTip)}}const $t={};let mn=(()=>{class u extends g.cm{get errorState(){return this.showError?"error":""}constructor(a){super(),this.cdr=a,this.formLayout="vertical",this.wrapperOptions={...$t}}ngOnInit(){this.props.showExtra=this.props.showExtra??!0,this.props.extraType=this.props.extraType??"prompt",this.props.showErrorTip=this.props.showErrorTip??!0,this.props.formFieldOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formFieldOptions}),this.options.formState.formLayout&&(this.formLayout=this.options.formState.formLayout)}ngAfterViewInit(){this.cdr.detectChanges()}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-field-wrapper"]],hostVars:6,hostBindings:function(h,_){2&h&&e.AVh("layout-horizontal","horizontal"===_.formLayout)("layout-vertical","vertical"===_.formLayout)("layout-inline","inline"===_.formLayout)},features:[e.Vt3],decls:9,vars:10,consts:[["fieldComponent",""],["descriptionTpl",""],["errorTpl",""],[3,"ngClass"],[4,"ngIf"],[3,"nzExtra","nzValidateStatus","nzErrorTip"],[3,"ngClass","nzRequired","nzFor","nzTooltipTitle","nzNoColon"],["nz-typography","","nzEllipsis","",1,"label",3,"nzContent"],[1,"form-field-description"],[3,"ngSwitch"],["class","extra-prompt",3,"innerHTML",4,"ngSwitchCase"],["class","extra-description",3,"innerHTML",4,"ngSwitchCase"],[3,"innerHTML",4,"ngSwitchDefault"],[1,"extra-prompt",3,"innerHTML"],[1,"extra-description",3,"innerHTML"],[3,"innerHTML"],[1,"cvc-form-field-validation"],[3,"field",4,"ngIf"],[3,"field"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-form-item",3),e.DNE(1,Zi,3,9,"ng-container",4),e.j41(2,"nz-form-control",5),e.eu8(3,null,0),e.k0s()(),e.DNE(5,rr,5,3,"ng-template",null,1,e.C5r)(7,Lt,2,1,"ng-template",null,2,e.C5r)),2&h){const ee=e.sdS(6),ft=e.sdS(8);e.Y8G("ngClass",e.ziG(5,Oi,_.props.disabled,_.showError,_.props.required,"VALID"===_.field.formControl.status&&!0===_.field.formControl.touched)),e.R7$(),e.Y8G("ngIf",_.props.label&&!0!==_.props.hideLabel),e.R7$(),e.Y8G("nzExtra",_.props.showExtra&&!_.showError?ee:void 0)("nzValidateStatus",_.errorState)("nzErrorTip",ft)}},dependencies:[M.YU,M.bT,M.ux,M.e1,M.fG,L.Uq,L.e,G.Ls,G.Mo,G.zS,qe.Di,g.Nc],styles:['.typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{border-radius:4px;margin-top:8px;margin-bottom:0}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.label[_ngcontent-%COMP%]{color:#096dd9}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.anticon{margin-left:.25em}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.anticon path{color:#69c0ff}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] .form-row-wrapped[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%], .form-row-wrapped [_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border:1px solid #096dd9;height:1em;content:""}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#096dd9;font-weight:600}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#40a9ff}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#cf1322}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#cf1322}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#ff4d4f}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#389e0d}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#389e0d}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#73d13d}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#00000073}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#00000073}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#d9d9d9}.layout-vertical[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{background-color:#e6f7ff;border:1px solid #e6f7ff;padding:4px 8px}.layout-vertical[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%]{background-color:#e6f7ff;border:1px solid #69c0ff}.layout-vertical[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%]{background-color:#fff1f0;border:1px solid #ff7875}.layout-vertical[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%]{background-color:#f6ffed;border:1px solid #95de64}.layout-vertical[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%]{background-color:#f5f5f5;border:1px solid #f5f5f5}.cvc-form-field-validation[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%]{min-height:16px;line-height:1.2;margin-top:4px}.cvc-form-field-validation[_ngcontent-%COMP%] .extra-prompt[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%] .extra-prompt[_ngcontent-%COMP%]{font-weight:400}.cvc-form-field-validation[_ngcontent-%COMP%] .extra-description[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%] .extra-description[_ngcontent-%COMP%]{font-style:oblique}.cvc-form-field-validation[_ngcontent-%COMP%]{font-weight:600}'],changeDetection:0})}return u})();var hn=c(5154);const Yn={wrappers:[{name:"form-field",component:mn}]};let En=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,G.PQ,hn.Qt,qe.kT,g.qy.forChild(Yn)]})}return u})();var Kn=c(513),oi=c(2096),gi=c(1236),ro=c(896),vi=c(1635),pn=c(9894),$i=c(4608);function zi(){let u=class w4 extends g.PU{configureBaseField(){this.field?.options?.fieldChanges?(this.onModelChange$=this.field.options.fieldChanges.pipe((0,qt.p)(a=>a.field.id===this.field.id),(0,$i.E)("value")),this.formControl.value?(this.onValueChange$=new dn.t(this.formControl.value),Array.isArray(this.formControl.value)?this.field.formControl.value.length>0&&this.formControl.markAsTouched():this.formControl.markAsTouched()):this.onValueChange$=new dn.t(void 0),this.onModelChange$.pipe((0,pn.s)(this)).subscribe(a=>{this.onValueChange$.next(a)}),this.field.options?.formState&&this.field.options.formState.fields&&(this.state=this.field.options.formState,this.autoConfigureStateValueChanges())):console.error(`${this.field.id} could not find its fieldChanges Observable, ensure configureBaseField() is called in this field's AfterViewInit hook.`)}autoConfigureStateValueChanges(){!this.field.key&&"string"==typeof this.field.key&&console.warn(`${this.field.id} cannot auto-configure state value changes, as its field key is not a string. field.key: `,this.field.key);const a=`${this.field.key}$`;this.state&&this.state.fields[a]?(this.stateValueChange$=this.state.fields[a],this.onValueChange$.pipe((0,me.T)(h=>null===h?void 0:h),(0,pn.s)(this)).subscribe(h=>{this.stateValueChange$&&this.stateValueChange$.next(h)})):console.warn(`${this.field.id} could not find state field ${a} on form state. State: `,this.state)}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(w4)))(_||w4)}})();static#t=this.\u0275prov=e.jDH({token:w4,factory:w4.\u0275fac})};return u=(0,vi.Cg)([(0,pn.d)()],u),u}var Ni=c(2771),so=c(5245),Yi=c(3993),Xo=c(7673),Ki=c(2806),qo=c(3226),pr=c(9030),fo=c(9199),po=c(4572);function fr(...u){let b=u[0],a=u[1];if(0===b.length)return(0,Xo.of)(a?a([]):[]);const h=b.slice();return a&&h.push((..._)=>a(_)),po.z.apply(null,h)}function jo(){return function(b){return(()=>{class h extends b{configureEntitySelectField(ee){if(this.typeaheadQuery=ee.typeaheadQuery,this.tagQuery=ee.tagQuery,this.getTypeaheadVars=ee.getTypeaheadVarsFn,this.getTypeahedResults=ee.getTypeaheadResultsFn,this.getTagQueryVars=ee.getTagQueryVarsFn,this.getTagQueryResults=ee.getTagQueryResultsFn,this.getSelectedItemOption=ee.getSelectedItemOptionFn,this.getSelectOptions=ee.getSelectOptionsFn,this.typeaheadParam$=ee.typeaheadParam$,this.typeaheadParamName$=ee.typeaheadParamName$,this.selectOpen$=ee.selectOpen$||new Ni.m,this.selectComponent=ee.selectComponent,this.minSearchStrLength=ee.minSearchStrLength||0,this.cdr=ee.changeDetectorRef,this.onSearch$=new dn.t(void 0),this.isLoading$=new Un.c,this.result$=new dn.t([]),this.onPopulate$=new V.B,this.onTagClose$=new V.B,this.onOpenChange$=new V.B,this.onCreate$=new V.B,this.selectOption$=new dn.t(void 0),this.response$=this.onSearch$.pipe((0,so.i)(1),(0,qt.p)(fo.kP),(0,qt.p)(ft=>0===this.minSearchStrLength||ft.length>=this.minSearchStrLength),(0,Yi.E)(void 0!==this.typeaheadParam$?this.typeaheadParam$:(0,Xo.of)(void 0)),(0,he.n)(([ft,nn])=>{const Rn=this.getTypeaheadVars(ft,nn),xi=Ho=>(this.queryRef=this.typeaheadQuery.watch(Ho),this.isLoading$=this.queryRef.valueChanges.pipe((0,$i.E)("loading"),(0,J.F)()),this.queryRef.valueChanges),Co=Ho=>(0,Ki.H)(this.queryRef.refetch(Ho));return(0,qo.T)(()=>void 0===this.queryRef,(0,pr.v)(()=>xi(Rn)),(0,pr.v)(()=>Co(Rn)))})),this.onOpenChange$.subscribe(ft=>{ft&&this.onSearch$.next("")}),this.response$.pipe((0,qt.p)(ft=>void 0!==ft.data),(0,me.T)(ft=>this.getTypeahedResults(ft)),(0,pn.s)(this)).subscribe(ft=>{this.result$.next(ft),0===ft.length&&this.selectOption$.next([]),this.cdr.detectChanges()}),this.optionTemplates?this.optionTemplates.changes.pipe((0,Yi.E)(this.result$),(0,pn.s)(this)).subscribe(([ft,nn])=>{const Rn=this.getSelectOptions(nn,ft);this.selectOption$.next(Rn),this.cdr.detectChanges()}):(console.warn(`${this.field.id} could not find reference to optionTemplates ViewChildren, options will only show entity name text.`),this.result$.pipe((0,pn.s)(this)).subscribe(ft=>{this.selectOption$.next(ft.map(nn=>({label:nn.name,value:nn.id})))})),this.onPopulate$.pipe((0,qt.p)(fo.kP),(0,he.n)(ft=>fr(this.getTagQueries(ft))),(0,me.T)(ft=>ft.map(nn=>this.getTagQueryResults(nn))),(0,On.M)(ft=>{this.result$.next(ft)}),(0,pn.s)(this)).subscribe(ft=>{let nn;if(this.field.props&&this.field.props.isMultiSelect){const Rn=[];ft.forEach(xi=>Rn.push(xi?.id||void 0)),nn=Rn}else nn=ft[0].id;this.formControl.setValue(nn),this.selectOpen$.next(!1)}),this.formControl.value){const ft=this.formControl.value;if(Object.keys(ft).length>0&&ft.constructor===Object)return void console.error(`${this.field.id} prepopulated value must be a primitive or array of primitives, value is an object:`,ft);this.onPopulate$.next(ft)}this.onTagClose$.pipe((0,pn.s)(this)).subscribe(ft=>{this.resetField()})}getTagQueries(ee){return"number"==typeof ee&&(ee=[ee]),ee.map(nn=>this.tagQuery.fetch(this.getTagQueryVars(nn),{fetchPolicy:"cache-first"}).pipe((0,qt.p)(Rn=>!!Rn.data)))}resetField(){this.formControl.setValue(void 0),this.result$&&this.result$.next([])}static#e=this.\u0275fac=(()=>{let ee;return function(nn){return(ee||(ee=e.xGo(h)))(nn||h)}})();static#t=this.\u0275prov=e.jDH({token:h,factory:h.\u0275fac})}return h})()}}const qi=function Lr(u){for(var b=arguments.length,a=new Array(b>1?b-1:0),h=1;h[],Gs=(u,b,a)=>({$implicit:u,createMsg:b,model:a});function nt(u,b){1&u&&e.nrm(0,"span",5),2&u&&e.Y8G("nzType","loading")}function ye(u,b){if(1&u&&(e.DNE(0,nt,1,1,"span",4),e.qex(1),e.EFF(2),e.bVm()),2&u){const a=e.XpG().ngrxLet;e.Y8G("ngIf",a.showSpinner),e.R7$(2),e.SpI(" ",a.message," ")}}function Ve(u,b){if(1&u&&(e.nrm(0,"nz-divider"),e.j41(1,"div",6),e.eu8(2,7),e.k0s()),2&u){const a=e.XpG().ngrxLet,h=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",h.cvcAddEntity)("ngTemplateOutletContext",e.sMw(2,Gs,a.searchStr,a.message,h.cvcAddEntityModel))}}function tt(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-select",3),e.bIt("nzOpenChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onOpenChange$.next(_))})("nzOnSearch",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcOnSearch.next(_))})("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcOnModelChange.next(_))}),e.k0s(),e.DNE(2,ye,3,2,"ng-template",null,0,e.C5r)(4,Ve,3,6,"ng-template",null,1,e.C5r),e.bVm()}if(2&u){const a=b.ngrxLet,h=e.sdS(3),_=e.sdS(5),ee=e.XpG();e.R7$(),e.AVh("ng-dirty",ee.cvcShowError),e.Y8G("nzDropdownMatchSelectWidth",!0)("formControl",ee.cvcFormControl)("formlyAttributes",ee.cvcFormlyAttributes)("nzMode",ee.cvcSelectMode)("nzPlaceHolder",ee.cvcPlaceholder||"Search "+ee.cvcEntityName.plural)("nzCustomTemplate",ee.cvcCustomTemplate||null)("nzOptionHeightPx",30)("nzDisabled",ee.cvcDisabled)("nzLoading",ee.cvcLoading)("nzAllowClear",ee.cvcAllowClear)("nzBorderless",ee.cvcBorderless)("nzSuffixIcon",ee.cvcSuffixIcon)("nzShowArrow",ee.cvcShowArrow)("nzAutoClearSearchValue",ee.cvcAutoClearSearchValue)("nzOptions",ee.cvcOptions||e.lJ4(20,Qo))("nzDropdownRender",a.showAddForm?_:null)("nzNotFoundContent",h)("nzOpen",ee.cvcSelectOpen)}}const Mt={search:(u,b,a)=>`Searching ${u} matching "${b}"...`,searchAll:(u,b,a)=>`Listing all ${u}...`,searchParam:(u,b,a)=>`Searching ${a} ${u} matching "${b}"...`,searchParamAll:(u,b,a)=>`Listing all ${a} ${u}...`,searchEnterQuery:(u,b,a,h)=>`Enter at least ${h} characters to search ${a} ${u}`,searchEnterQueryAll:(u,b,a,h)=>`Enter at least least ${h} characters to search ${u}`,empty:(u,b,a)=>`No ${u} found matching "${b}"`,emptyAll:(u,b,a)=>`No ${u} found.`,emptyParam:(u,b,a)=>`No ${a} ${u} found matching "${b}"`,emptyParamAll:(u,b,a)=>`No ${a} ${u} found`};let Yt=class O8{constructor(){this.cvcEntityName={singular:"Entity",plural:"Entities"},this.cvcSelectMode="default",this.cvcLoading=!1,this.cvcOptions=void 0,this.cvcShowError=!1,this.cvcDisabled=!1,this.cvcAllowClear=!0,this.cvcBorderless=!1,this.cvcShowArrow=!1,this.cvcAutoClearSearchValue=!0,this.cvcSuffixIcon="search",this.cvcCustomTemplate=null,this.cvcAddEntity=null,this.cvcMinSearchStrLength=0,this.cvcAddEntityBehavior=(b,a)=>b.length>this.cvcMinSearchStrLength&&0===a.length,this.cvcOnOpenChange=new e.bkB,this.cvcOnSearch=(new e.bkB).pipe((0,Mr.c)(300,Ur.E,{leading:!1,trailing:!0}),(0,Ts.t)(1)),this.cvcOnModelChange=new e.bkB,this.cvcSelectComponent=new e.bkB,this.messageOptions=Mt,this.onParamName$=new dn.t(void 0),this.onOption$=new dn.t([]),this.onOpenChange$=new dn.t(!1),this.onLoading$=new dn.t(!1),this.notFoundDisplay$=new dn.t({searchStr:"",showSpinner:!0,showAddForm:!1,message:`Searching ${this.cvcEntityName.plural}...`}),this.previousIsOpen=!1}ngAfterViewInit(){this.cvcSelectMessages&&(this.messageOptions={...this.messageOptions,...this.cvcSelectMessages}),this.nzSelectComponent?(this.cvcSelectComponent.next(this.nzSelectComponent),this.onOpenChange$.pipe((0,pn.s)(this)).subscribe(b=>{this.cvcOnOpenChange.next(b)}),(0,po.z)([this.onOpenChange$,this.cvcOnSearch,this.onParamName$,this.onOption$,this.onLoading$.pipe((0,J.F)())]).pipe((0,me.T)(([b,a,h,_,ee])=>{const ft=this.cvcEntityName.plural,nn=this.cvcMinSearchStrLength,Rn=null!==this.cvcAddEntity,xi=!1===this.previousIsOpen&&!0===b;if(this.previousIsOpen=b,xi)return this.getSelectInitDisplay(ft,nn,h);if(ee&&a.length>=nn){const Co=this.cvcAddEntityBehavior(a,this.cvcResults||[]);return this.getSelectSearchingDisplay(a,ft,nn,h,Rn,Co)}return b&&!ee&&a.length>=nn&&0===_.length?this.getSelectEmptyDisplay(a,ft,h,Rn):{searchStr:"",showSpinner:!1,showAddForm:Rn&&this.cvcAddEntityBehavior(a,this.cvcResults||[]),message:""}}),(0,On.M)(b=>{this.notFoundDisplay$.next(b)}),(0,pn.s)(this)).subscribe()):console.error(`${this.cvcEntityName.singular} entity-select could not gain reference to its nzSelectComponent, aborting AfterViewInit()`)}getSelectInitDisplay(b,a,h){let _=this.messageOptions.searchAll,ee=!1;return 0==a?(ee=!0,_=void 0===h?this.messageOptions.searchAll:this.messageOptions.searchParamAll):a>0&&(ee=!1,_=void 0===h?this.messageOptions.searchEnterQueryAll:this.messageOptions.searchEnterQuery),{message:_(b,"",h,a),showSpinner:ee,showAddForm:!1,searchStr:""}}getSelectSearchingDisplay(b,a,h,_,ee,ft=!1){let nn=this.messageOptions.searchAll;return nn=void 0===_?b.length>0?this.messageOptions.search:this.messageOptions.searchAll:b.length>0?this.messageOptions.searchParam:this.messageOptions.searchParamAll,{message:nn(a,b,_),showSpinner:!0,showAddForm:ee&&ft,searchStr:b}}getSelectEmptyDisplay(b,a,h,_){let ee=this.messageOptions.empty;return ee=void 0===h?b.length>0?this.messageOptions.empty:this.messageOptions.emptyAll:b.length>0?this.messageOptions.emptyParam:this.messageOptions.emptyParamAll,{message:ee(a,b,h),showSpinner:!1,showAddForm:_,searchStr:b}}ngOnChanges(b){if(b.cvcParamName&&this.onParamName$.next(b.cvcParamName.currentValue),b.cvcOptions){const a=b.cvcOptions.currentValue;void 0!==a&&this.onOption$.next(a)}if(b.cvcLoading){const a=b.cvcLoading.currentValue;void 0!==a&&this.onLoading$.next(a)}}static#e=this.\u0275fac=function(a){return new(a||O8)};static#t=this.\u0275cmp=e.VBU({type:O8,selectors:[["cvc-entity-select"]],viewQuery:function(a,h){if(1&a&&e.GBs(Qe.WI,5),2&a){let _;e.mGM(_=e.lsd())&&(h.nzSelectComponent=_.first)}},inputs:{cvcFormControl:"cvcFormControl",cvcFormlyAttributes:"cvcFormlyAttributes",cvcEntityName:"cvcEntityName",cvcSelectMessages:"cvcSelectMessages",cvcSelectMode:"cvcSelectMode",cvcPlaceholder:"cvcPlaceholder",cvcLoading:"cvcLoading",cvcOptions:"cvcOptions",cvcResults:"cvcResults",cvcShowError:"cvcShowError",cvcDisabled:"cvcDisabled",cvcAllowClear:"cvcAllowClear",cvcBorderless:"cvcBorderless",cvcShowArrow:"cvcShowArrow",cvcAutoClearSearchValue:"cvcAutoClearSearchValue",cvcSuffixIcon:"cvcSuffixIcon",cvcCustomTemplate:"cvcCustomTemplate",cvcParamName:"cvcParamName",cvcAddEntity:"cvcAddEntity",cvcAddEntityModel:"cvcAddEntityModel",cvcMinSearchStrLength:"cvcMinSearchStrLength",cvcAddEntityBehavior:"cvcAddEntityBehavior",cvcSelectOpen:"cvcSelectOpen"},outputs:{cvcOnOpenChange:"cvcOnOpenChange",cvcOnSearch:"cvcOnSearch",cvcOnModelChange:"cvcOnModelChange",cvcSelectComponent:"cvcSelectComponent"},features:[e.OA$],decls:1,vars:1,consts:[["searchMessages",""],["addForm",""],[4,"ngrxLet"],["nzShowSearch","","nzServerSearch","","nzAllowClear","",3,"nzOpenChange","nzOnSearch","ngModelChange","nzDropdownMatchSelectWidth","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzLoading","nzAllowClear","nzBorderless","nzSuffixIcon","nzShowArrow","nzAutoClearSearchValue","nzOptions","nzDropdownRender","nzNotFoundContent","nzOpen"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"add-form-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(a,h){1&a&&e.DNE(0,tt,6,21,"ng-container",2),2&a&&e.Y8G("ngrxLet",h.notFoundDisplay$)},dependencies:[M.bT,M.T3,t.BC,t.l_,bi.Nj,g.ch,Z.Dn,Qe.WI,Zn.j],styles:["nz-divider[_ngcontent-%COMP%]{margin:4px 0 0}.add-form-container[_ngcontent-%COMP%]{padding:4px 8px 8px}"],changeDetection:0})};Yt=(0,vi.Cg)([(0,pn.d)({arrayName:"stateSubscriptions"})],Yt);var tn=c(2688);const on=["optionTemplates"];function bn(u,b){if(1&u&&(e.qex(0),e.j41(1,"em")(2,"span",6),e.EFF(3),e.k0s()(),e.bVm()),2&u){const a=e.XpG(2).$implicit;e.R7$(3),e.JRh(a.description)}}function Sn(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s(),e.j41(2,"span",6),e.DNE(3,bn,4,1,"ng-container",7),e.k0s()),2&u){const a=e.XpG().$implicit;e.R7$(),e.JRh(a.code),e.R7$(2),e.Y8G("ngIf",a.description)}}function Ln(u,b){1&u&&(e.qex(0),e.DNE(1,Sn,4,2,"ng-template",null,1,e.C5r),e.bVm())}function xn(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ln,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Qn(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",8)(1,"cvc-entity-tag",9),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","AcmgCode:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const qn=qi(zi(),jo());let pi=(()=>{class u extends qn{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"ACMG/AMP Code",plural:"ACMG/AMP Codes"},isMultiSelect:!1,requireType:!0,tooltip:"If applicable, please provide evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP.",placeholder:"Search ACMG/AMP Codes",requireTypePromptFn:(ee,ft)=>`Select an ${ee} Type to search associated ACMG Code(s)`}},this.placeholder$=new dn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresAcmgCodes$?this.onRequiresAcmgCode$=this.state.requires.requiresAcmgCodes$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresAcmgCodes$ subject to attach.`),this.props.requireType)){const a=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[a]?this.onEntityType$=this.state.fields[a]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${a}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresAcmgCode$&&this.onEntityType$&&(0,po.z)([this.onRequiresAcmgCode$,this.onEntityType$]).pipe((0,J.F)(),(0,pn.s)(this)).subscribe(([a,h])=>{!a&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ro.u)(h)} ${this.state.entityName} does not include associated ACMG/AMP Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):a?(this.props.required=!0,this.props.disabled=!1,this.props.description='Please provide evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP in Richards et. al. 2015. Review all codes and select each one that applies. If a code is not applied, it is inferred to not be met.',this.props.extraType="description"):(!a&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(a){return{code:a}}getTypeaheadResultsFn(a){return a.data.acmgCodesTypeahead}getTagQueryResultsFn(a){return a.data.acmgCode}getTagQueryVarsFn(a){return{id:a}}getSelectedItemOptionFn(a){return{value:a.id,label:a.code}}getSelectOptionsFn(a,h){return a.map((_,ee)=>(console.log(_),{label:h.get(ee)||_.code,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.Fd4),e.rXU(wn.Mvn),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-acmg-code-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(on,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,xn,3,3,"ng-container",3)(7,Qn,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresAcmgCode$&&!e.bMT(4,18,_.onRequiresAcmgCode$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,bi.Nj,hn.LH,qe.Di,Gn.s,Yt,tn.b,bi.L9],changeDetection:0})}return u})();const ei={types:[{name:"acmg-code-select",wrappers:["form-field"],component:pi,defaultOptions:{props:{label:"ACMG/AMP Code"}}},{name:"acmg-code-multi-select",wrappers:["form-field"],component:pi,defaultOptions:{props:{isMultiSelect:!0,label:"ACMG/AMP Code(s)"}}}]};let li=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(ei),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._,Ti]})}return u})(),ai=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(),Z.Y3,G.PQ,Qe.DH,F.j,ge.i]})}return u})();function mi(){return function(b){return(()=>{class h extends b{configureEnumSelectField(ee){this.selectOption$=new dn.t([]),this.onTagClose$=new V.B,this.optionEnum$=ee.optionEnum$,this.changeDetectorRef=ee.changeDetectorRef,this.optionTemplate$=ee.optionTemplate$?ee.optionTemplate$:new dn.t([]),this.optionTemplate$.pipe((0,Yi.E)(this.optionEnum$),(0,pn.s)(this)).subscribe(ft=>{this.emitSelectOptions(ft)}),this.onTagClose$.pipe((0,pn.s)(this)).subscribe(ft=>{this.resetField()})}emitSelectOptions([ee,ft]){this.selectOption$.next(ft.map((nn,Rn)=>({label:ee[Rn]||nn,value:nn}))),this.changeDetectorRef?this.changeDetectorRef.detectChanges():console.error(`${this.field.id}'s configureEnumTagField() requires valid ChangeDetectorRef option, none detected.`)}resetField(){this.formControl.setValue(this.props.isMultiSelect?[]:void 0)}static#e=this.\u0275fac=(()=>{let ee;return function(nn){return(ee||(ee=e.xGo(h)))(nn||h)}})();static#t=this.\u0275prov=e.jDH({token:h,factory:h.\u0275fac})}return h})()}}var Ei=c(1018);const Xi=()=>[];let Mi=(()=>{class u{constructor(){this.cvcSelectMode="default",this.cvcPlaceholder="Select an option",this.cvcOptions=[],this.cvcShowError=!1,this.cvcDisabled=!1,this.cvcAllowClear=!0,this.cvcCustomTemplate=null,this.cvcOnFocus=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-enum-select"]],inputs:{cvcFormControl:"cvcFormControl",cvcFormlyAttributes:"cvcFormlyAttributes",cvcSelectMode:"cvcSelectMode",cvcPlaceholder:"cvcPlaceholder",cvcOptions:"cvcOptions",cvcShowError:"cvcShowError",cvcDisabled:"cvcDisabled",cvcAllowClear:"cvcAllowClear",cvcModelChange:"cvcModelChange",cvcCustomTemplate:"cvcCustomTemplate"},outputs:{cvcOnFocus:"cvcOnFocus"},decls:1,vars:12,consts:[[3,"nzFocus","ngModelChange","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzOptions","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzAllowClear"]],template:function(h,_){1&h&&(e.j41(0,"nz-select",0),e.bIt("nzFocus",function(){return _.cvcOnFocus.next()})("ngModelChange",function(ft){return _.cvcModelChange&&_.cvcModelChange(_.cvcFormlyAttributes,ft)}),e.k0s()),2&h&&(e.AVh("ng-dirty",_.cvcShowError),e.Y8G("formControl",_.cvcFormControl)("formlyAttributes",_.cvcFormlyAttributes)("nzMode",_.cvcSelectMode)("nzPlaceHolder",_.cvcPlaceholder?_.cvcPlaceholder:"Select Value")("nzOptions",_.cvcOptions?_.cvcOptions:e.lJ4(11,Xi))("nzCustomTemplate",_.cvcCustomTemplate?_.cvcCustomTemplate:null)("nzOptionHeightPx",30)("nzDisabled",_.cvcDisabled)("nzAllowClear",_.cvcAllowClear))},dependencies:[t.BC,t.l_,g.ch,Qe.WI],changeDetection:0})}return u})();var no=c(463);const ao=["optionTemplates"];function io(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.nI1(3,"formatAmp"),e.k0s()(),e.j41(4,"span",4),e.EFF(5),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG();e.R7$(2),e.JRh(e.i5U(3,2,a,"verbose")),e.R7$(3),e.JRh(h.descriptionForCategory(a))}}function Fn(u,b){1&u&&(e.qex(0),e.DNE(1,io,6,5,"ng-template",null,1,e.C5r),e.bVm())}function _o(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-tag",8),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.nI1(3,"formatAmp"),e.k0s()()}if(2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(e.i5U(3,1,a.nzValue,"verbose"))}}function ir(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.nI1(2,"formatAmp"),e.bVm()),2&u){const a=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,a.nzValue,"verbose")," ")}}function Gr(u,b){if(1&u&&(e.j41(0,"div",5),e.DNE(1,_o,4,4,"nz-tag",6)(2,ir,3,4,"ng-container",7),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!a.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",a.props.isMultiSelect)}}const Do=new Map([[wn.XJ.Na,"Not Applicable"],[wn.XJ.TierILevelA,"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines."],[wn.XJ.TierILevelB,"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field."],[wn.XJ.TierIiLevelC,"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus."],[wn.XJ.TierIiLevelD,"Biomarkers that show plausible therapeutic significance based on preclinical studies."],[wn.XJ.TierIii,"Somatic variants in cancer genes reported in the same or different cancer types with unknown clinical significance and variants in cancer genes that have not been reported in any cancers."],[wn.XJ.TierIv,"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation."]]),Jo=qi(zi(),mi());let Sr=(()=>{class u extends Jo{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"AMP/ASCO/CAP Category",required:!1,isMultiSelect:!1,placeholder:"Select AMP/ASCO/CAP Category"}},this.ampCategoryEnum$=new dn.t([])}descriptionForCategory(a){return Do.get(a)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.ampCategoryEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.configurePlaceholder()}configureStateConnections(){this.props.tooltip="If applicable, please provide the AMP/ASCO/CAP somatic variant classification.",this.ampCategoryEnum$.next((0,Ei.KF)(wn.XJ).map(a=>a)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,me.T)(a=>a.map(h=>h))),this.state&&(this.state.requires.requiresAmpLevel$?this.onRequiresAmpCategory$=this.state.requires.requiresAmpLevel$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresAmpLevel$ subject to attach.`),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.extraType=void 0,this.props.description=Do.get(a)):this.props.description="Select an Assertion Type to select its AMP Category"}))}configurePlaceholder(){this.placeholder$=new dn.t(this.props.placeholder),this.onRequiresAmpCategory$&&this.onRequiresAmpCategory$.pipe((0,J.F)(),(0,pn.s)(this)).subscribe(a=>{this.props.extraType=void 0,a?(this.formControl.value||(this.props.extraType="description",this.props.description='Please provide the AMP/ASCO/CAP somatic variant classification.'),this.props.required=!0,this.props.disabled=!1):(this.props.required=!1,this.props.disabled=!0,this.resetField()),this.cdr.markForCheck()})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-amp-category-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(ao,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,Fn,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Gr,3,2,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.ampCategoryEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,qe.Di,Mi,bi.L9,no.E]})}return u})();const _r={types:[{name:"amp-category-select",wrappers:["form-field"],component:Sr},{name:"amp-category-multi-select",wrappers:["form-field"],component:Sr,defaultOptions:{props:{label:"AMP/ASCO/CAP Categories",isMultiSelect:!0}}}]};let yr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(_r),Gn.T,qe.kT,ge.i,En,ai]})}return u})();const sr=qi(zi()),zs={types:[{name:"checkbox",wrappers:["form-field"],component:(()=>{class u extends sr{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}ngAfterViewInit(){console.log(this.props)}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ft){return _.props.change&&_.props.change(_.field,ft)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,ht.$g,g.ch],changeDetection:0})}return u})()}]};let Fr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,ht.IJ,g.qy.forChild(zs),En]})}return u})();function Uo(u,b){if(1&u){const a=e.RV6();e.j41(0,"input",2),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onValueChange$.next(_))}),e.k0s()}if(2&u){const a=e.XpG();e.Y8G("formControl",a.formControl)("type",a.props.type||"text")("formlyAttributes",a.field)}}function es(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number",3),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onValueChange$.next(_))}),e.k0s()}if(2&u){const a=e.XpG();e.Y8G("formControl",a.formControl)("formlyAttributes",a.field)}}const Eo=qi(zi());let Ms=(()=>{class u extends Eo{constructor(){super()}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-base-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes","ngModelChange",4,"ngIf","ngIfElse"],["nz-input","",3,"ngModelChange","formControl","type","formlyAttributes"],[3,"ngModelChange","formControl","formlyAttributes"]],template:function(h,_){if(1&h&&e.DNE(0,Uo,1,3,"input",1)(1,es,1,2,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf","number"!==_.props.type)("ngIfElse",ee)}},dependencies:[M.bT,t.me,t.BC,t.l_,F.Sy,_e,g.ch],encapsulation:2,changeDetection:0})}return u})(),ds=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,F.j,dt,g.qy.forChild({types:[{name:"base-input",component:Ms,wrappers:["form-field"]},{name:"base-string",extends:"base-input"},{name:"base-number",extends:"base-input",defaultOptions:{props:{type:"number"}}},{name:"base-integer",extends:"base-input",defaultOptions:{props:{type:"number"}}}]})]})}return u})();function Ze(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const a=b.$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled)("nzLabel",a.label)}}function An(u,b){if(1&u&&(e.j41(0,"nz-option-group",4),e.DNE(1,Ze,1,3,"nz-option",5),e.k0s()),2&u){const a=e.XpG().$implicit;e.Y8G("nzLabel",a.label),e.R7$(),e.Y8G("ngForOf",a.group)}}function fe(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const a=e.XpG().$implicit;e.Y8G("nzValue",a.value)("nzDisabled",a.disabled)("nzLabel",a.label)}}function We(u,b){if(1&u&&(e.qex(0),e.DNE(1,An,2,2,"nz-option-group",2)(2,fe,1,3,"nz-option",3),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",a.group),e.R7$(),e.Y8G("ngIf",!a.group)}}const ct=qi(zi());let sn=(()=>{class u extends ct{constructor(){super(),this.defaultOptions={props:{isMultiSelect:!1}}}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-base-select"]],features:[e.Vt3],decls:4,vars:12,consts:[[3,"ngModelChange","nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(h,_){1&h&&(e.j41(0,"nz-select",0),e.bIt("ngModelChange",function(ft){return _.props.change&&_.props.change(_.field,ft)}),e.DNE(1,We,3,2,"ng-container",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&h&&(e.AVh("ng-dirty",_.showError),e.Y8G("nzPlaceHolder",void 0!==_.props.placeholder?_.props.placeholder:null)("formControl",_.formControl)("formlyAttributes",_.field)("nzMode",_.props.isMultiSelect?"multiple":"default"),e.R7$(),e.Y8G("ngForOf",e.bMT(3,10,e.i5U(2,7,_.props.options,_.field))))},dependencies:[M.Sq,M.bT,t.BC,t.l_,Qe.ld,Qe.WI,Qe.uX,g.ch,M.Jj,Ut],encapsulation:2,changeDetection:0})}return u})(),Bn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,Qe.DH,I,Ye,g.qy.forChild({types:[{name:"base-select",component:sn,wrappers:["form-field"]},{name:"enum",extends:"select"},{name:"base-multi-select",extends:"level-select",defaultOptions:{props:{isMultiSelect:!0}}}]})]})}return u})();const $n=qi(zi()),ki={types:[{name:"base-textarea",component:(()=>{class u extends $n{constructor(){super(),this.defaultOptions={props:{autosize:!1}}}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.Vt3],decls:1,vars:5,consts:[["nz-input","",3,"nzAutosize","rows","formControl","placeholder","formlyAttributes"]],template:function(h,_){1&h&&e.nrm(0,"textarea",0),2&h&&e.Y8G("nzAutosize",_.props.autosize)("rows",_.props.rows?_.props.rows:2)("formControl",_.formControl)("placeholder",_.props.placeholder)("formlyAttributes",_.field)},dependencies:[t.me,t.BC,t.l_,g.ch,F.Sy,F.c9],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]}]};let To=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(ki),F.j,En]})}return u})();var di=c(6389),ho=c(5930);const ts={types:[{name:"cvc-cancel-button",component:(()=>{class u extends g.PU{constructor(a){super(),this.location=a}cancelClicked(){this.location.back()}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(M.aZ))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-cancel-button"]],features:[e.Vt3],decls:2,vars:0,consts:[["nz-button","","type","button","nzType","default","nzDanger","",1,"cancel-button",3,"click"]],template:function(h,_){1&h&&(e.j41(0,"button",0),e.bIt("click",function(){return _.cancelClicked()}),e.EFF(1," Cancel\n"),e.k0s())},dependencies:[Kn.aO,di.c,ho.p],styles:[".cancel-button[_ngcontent-%COMP%]{margin-right:10px}"],changeDetection:0})}return u})()}]};let Ne=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(ts),Kn.Zw]})}return u})();const je=["optionTemplates"];function Ce(u,b){if(1&u&&(e.qex(0),e.j41(1,"em")(2,"span",6),e.EFF(3),e.k0s()(),e.bVm()),2&u){const a=e.XpG(2).$implicit;e.R7$(3),e.JRh(a.description)}}function pt(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s(),e.j41(2,"span",6),e.DNE(3,Ce,4,1,"ng-container",7),e.k0s()),2&u){const a=e.XpG().$implicit;e.R7$(),e.JRh(a.code),e.R7$(2),e.Y8G("ngIf",a.description)}}function Jt(u,b){1&u&&(e.qex(0),e.DNE(1,pt,4,2,"ng-template",null,1,e.C5r),e.bVm())}function Ii(u,b){if(1&u&&(e.qex(0),e.DNE(1,Jt,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Qi(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",8)(1,"cvc-entity-tag",9),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","ClingenCode:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const xo=qi(zi(),jo());let yi=(()=>{class u extends xo{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.exclusiveCodes=new Set,this.exclusiveSelected=!1,this.defaultOptions={props:{entityName:{singular:"ClinGen/CGC/VICC Code",plural:"ClinGen/CGC/VICC Codes"},isMultiSelect:!1,requireType:!0,tooltip:"If applicable, please provide evidence classifications from the Standards for the classification of pathogenicity of somatic variants in cancer (oncogenicity).",placeholder:"Search ClinGen/CGC/VICC Codes",requireTypePromptFn:(ee,ft)=>`Select an ${ee} Type to search associated ClinGen Code(s)`}},this.placeholder$=new dn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent}),this.configurePlaceholders(),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{if(a&&Array.isArray(a)&&a.length>1){const h=a.find(_=>this.exclusiveCodes.has(_));h?(this.previousDescription=this.props.description,this.previousDescriptionType=this.props.extraType,this.props.description="You have selected N/A which precludes selecting any other codes. Please remove it if you wish to select additional codes.",this.exclusiveSelected=!0,this.formControl.setValue([h])):this.exclusiveSelected=!1}this.previousDescription&&!this.exclusiveSelected&&(this.props.description=this.previousDescription,this.props.extraType=this.previousDescriptionType),this.cdr.detectChanges()})}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresClingenCodes$?this.onRequiresClingenCode$=this.state.requires.requiresClingenCodes$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresClingenCodes$ subject to attach.`),this.props.requireType)){const a=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[a]?this.onEntityType$=this.state.fields[a]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${a}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresClingenCode$&&this.onEntityType$&&(0,po.z)([this.onRequiresClingenCode$,this.onEntityType$]).pipe((0,J.F)(),(0,pn.s)(this)).subscribe(([a,h])=>{!a&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ro.u)(h)} ${this.state.entityName} does not include associated ClinGen/CGC/VICC Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):a?(this.props.required=!0,this.props.disabled=!1,this.props.description='Please provide the evidence classifications from the Standards for the classification of pathogenicity of somatic variants in cancer (oncogenicity) in Horak et. al. 2022.. Review all codes and select each one that applies. If a code is not applied, it is inferred to not be met.',this.props.extraType="description"):(!a&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(a){return{code:a}}getTypeaheadResultsFn(a){return a.data.clingenCodesTypeahead.forEach(h=>{h.exclusive&&this.exclusiveCodes.add(h.id)}),a.data.clingenCodesTypeahead}getTagQueryResultsFn(a){return a.data.clingenCode}getTagQueryVarsFn(a){return{id:a}}getSelectedItemOptionFn(a){return{value:a.id,label:a.code}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.code,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.FZ_),e.rXU(wn.kp0),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-clingen-code-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(je,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,Ii,3,3,"ng-container",3)(7,Qi,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresClingenCode$&&!e.bMT(4,18,_.onRequiresClingenCode$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,bi.Nj,hn.LH,qe.Di,Gn.s,Yt,tn.b,bi.L9],changeDetection:0})}return u})();const Ba={types:[{name:"clingen-code-select",wrappers:["form-field"],component:yi,defaultOptions:{props:{label:"ClinGen/CGC/VICC Code"}}},{name:"clingen-code-multi-select",wrappers:["form-field"],component:yi,defaultOptions:{props:{isMultiSelect:!0,label:"ClinGen/CGC/VICC Code(s)"}}}]};let Hc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Ba),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._,Ti]})}return u})();function Ea(u){return(()=>{class a extends u{configureStringTagField(){this.tagLabel$=new V.B,this.onTagClose$=new V.B,this.onTagClose$.pipe((0,pn.s)(this)).subscribe(_=>{this.formControl.setValue(void 0),this.tagLabel$.next(void 0)})}static#e=this.\u0275fac=(()=>{let _;return function(ft){return(_||(_=e.xGo(a)))(ft||a)}})();static#t=this.\u0275prov=e.jDH({token:a,factory:a.\u0275fac})}return a})()}var Cr=c(5741);const vc=()=>[8,8];function mo(u,b){if(1&u&&(e.j41(0,"label",5),e.EFF(1),e.k0s()),2&u){const a=b.$implicit;e.Y8G("nzValue",a.value)("nzTooltipTitle",a.tooltip),e.R7$(),e.SpI(" ",a.label," ")}}function ua(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",2)(1,"nz-radio-group",3),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.existenceChange$.next(_))}),e.DNE(3,mo,2,3,"label",4),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("ngModel",e.bMT(2,2,a.existenceModel$)),e.R7$(2),e.Y8G("ngForOf",a.selectOptions)}}function Yr(u,b){if(1&u&&e.nrm(0,"nz-option",8),2&u){const a=b.$implicit;e.Y8G("nzLabel",a)("nzValue",a)("nzHide",!0)}}function na(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",2)(1,"nz-select",6),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onValueChange$.next(_))}),e.DNE(2,Yr,1,3,"nz-option",7),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("formControl",a.formControl)("formlyAttributes",a.field),e.R7$(),e.Y8G("ngForOf",a.formControl.value)}}const $a=qi(zi(),Ea);let mr=class I8 extends $a{constructor(b){super(),this.cdr=b,this.defaultOptions={modelOptions:{updateOn:"blur"},props:{label:"Enter value",placeholder:"Enter value and hit Return",description:"Specify if Clinvar IDs exist, or if they are not applicable for this variant."}},this.clinvarIds$=new dn.t([]),this.values=new Set,this.showClinvarIdEntry$=new dn.t(!1),this.selectModel=void 0,this.selectOptions=[{value:void 0,label:"Unspecified",tooltip:"Existence of ClinVar IDs for this variant is unspecified."},{value:Cr.cD.NotApplicable,label:"Not Applicable",tooltip:"ClinVar IDs are not applicable to this variant."},{value:Cr.cD.NoneFound,label:"Were Not Found",tooltip:"A search was performed, and no ClinVar IDs were found."},{value:Cr.cD.Found,label:"Were Found",tooltip:"A search was performed, and ClinVar IDs were found (enter IDs below)."}],this.existenceChange$=new V.B,this.existenceModel$=new dn.t(void 0),this.showTagSelect$=new dn.t(!1)}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField(),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(b=>{void 0===b?(this.existenceModel$.next(void 0),this.showTagSelect$.next(!1)):b.includes("NONE FOUND")||b.includes("NA")?(b.includes("NONE FOUND")?this.existenceModel$.next(Cr.cD.NoneFound):b.includes("NA")&&this.existenceModel$.next(Cr.cD.NotApplicable),this.showTagSelect$.next(!1)):(this.existenceModel$.next(Cr.cD.Found),this.showTagSelect$.next(!0))}),this.existenceChange$.pipe((0,me.T)(b=>{const a=this.formControl.value;void 0===b&&void 0!==this.formControl.value?this.formControl.setValue(void 0):b!==Cr.cD.NoneFound||a.includes("NONE FOUND")?b!==Cr.cD.NotApplicable||a.includes("NA")?b===Cr.cD.Found&&(void 0===a||a.includes("NONE FOUND")||a.includes("NA"))&&this.formControl.setValue([]):this.formControl.setValue(["NA"]):this.formControl.setValue(["NONE FOUND"])}),(0,pn.s)(this)).subscribe()}static#e=this.\u0275fac=function(a){return new(a||I8)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:I8,selectors:[["cvc-clinvar-input"]],features:[e.Vt3],decls:4,vars:6,consts:[[3,"nzGutter"],["nzSpan","24",4,"ngIf"],["nzSpan","24"],["nzName","existence",3,"ngModelChange","ngModel"],["nz-radio-button","","nz-tooltip","",3,"nzValue","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-radio-button","","nz-tooltip","",3,"nzValue","nzTooltipTitle"],["nzMode","tags","nzPlaceHolder","Enter ClinVar IDs","nzAllowClear","","nzDropdownClassName","hide-dropdown",3,"ngModelChange","formControl","formlyAttributes"],[3,"nzLabel","nzValue","nzHide",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue","nzHide"]],template:function(a,h){1&a&&(e.j41(0,"nz-row",0),e.DNE(1,ua,4,4,"nz-col",1)(2,na,3,3,"nz-col",1),e.nI1(3,"ngrxPush"),e.k0s()),2&a&&(e.Y8G("nzGutter",e.lJ4(5,vc)),e.R7$(),e.Y8G("ngIf",h.props.showExistenceOptions),e.R7$(),e.Y8G("ngIf",e.bMT(3,3,h.showTagSelect$)))},dependencies:[M.Sq,M.bT,t.BC,t.vS,t.l_,g.ch,L.Uq,L.e,ue.lx,ue.i3,Qe.ld,Qe.WI,hn.LH,bi.L9],changeDetection:0})};mr=(0,vi.Cg)([(0,pn.d)()],mr);const Ta={types:[{name:"clinvar-input",wrappers:["form-field"],component:mr,defaultOptions:{props:{isRepeatItem:!1,showExistenceOptions:!1}}},{name:"clinvar-multi-input",wrappers:["form-field"],component:mr,defaultOptions:{props:{isRepeatItem:!0,showExistenceOptions:!0}}}]};let Ys=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,g.qy.forChild(Ta),G.PQ,L.f3,F.j,ue.Sw,Qe.DH,hn.Qt,ge.i]})}return u})();var hs=c(6697);const _c=qi(zi()),Wr={types:[{name:"fda-companion-test-checkbox",wrappers:["form-field"],component:(()=>{class u extends _c{constructor(){super(...arguments),this.defaultDescription='Select Yes if an FDA approved companion test exists for the variant and therapy associated with the Assertion (such as tests listed here).',this.defaultOptions={props:{hideLabel:!1,label:"FDA Companion Test",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&(this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField())}configureField(){this.state?.fields.fdaRegulatoryApproval$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.disabled=!1,this.props.extraType="description",this.props.description=this.defaultDescription,void 0===this.formControl.value&&this.formControl.setValue(!1)):(this.props.disabled=!0,this.props.description="FDA Companion Test only applies when Regulatory Approval is selected",this.formControl.setValue(void 0))})}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-fda-companion-test-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ft){return _.props.change&&_.props.change(_.field,ft)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,ht.$g,g.ch],changeDetection:0})}return u})()}]};let wi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,ht.IJ,g.qy.forChild(Wr),En]})}return u})();const Ws=qi(zi()),ps={types:[{name:"fda-regulatory-approval-checkbox",wrappers:["form-field"],component:(()=>{class u extends Ws{constructor(){super(...arguments),this.defaultDescription="Check this if the referenced therapy is approved for use by the FDA in the specific disease associated with the Assertion (as in a listing here.)",this.defaultOptions={props:{hideLabel:!1,label:"FDA Regulatory Approval",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&(this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField())}configureField(){this.state?.requires.allowsFdaApproval$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.disabled=!1,this.props.extraType="description",this.props.description=this.defaultDescription,void 0===this.formControl.value&&this.formControl.setValue(!1)):(this.props.disabled=!0,this.props.description="FDA Regulatory Approval does not apply to this Assertion Type",this.formControl.setValue(void 0))})}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-fda-regulatory-approval-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ft){return _.props.change&&_.props.change(_.field,ft)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,ht.$g,g.ch],changeDetection:0})}return u})()}]};let ja=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,ht.IJ,g.qy.forChild(ps),En]})}return u})(),Kr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Gn.T,Z.Y3,hn.Qt,ge.i]})}return u})();var za=c(1677),Xr=c(1555);const Hu=u=>({"tag-icon-large":u});function yl(u,b){}function ju(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",5)(1,"nz-tag",6),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcOnClose.next(_))}),e.DNE(2,yl,0,0,"ng-template",7),e.k0s()()}if(2&u){const a=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode",a.cvcMode)("nzTooltipTitle",a.cvcTooltip)("nzChecked",a.cvcChecked),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function br(u,b){}function Ss(u,b){if(1&u&&(e.j41(0,"span",8)(1,"nz-tag",9),e.DNE(2,br,0,0,"ng-template",7),e.k0s()()),2&u){const a=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode","checkable")("nzChecked",a.cvcChecked),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Ua(u,b){}function ha(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",10)(1,"nz-tag",11),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcOnClose.next(_))}),e.DNE(2,Ua,0,0,"ng-template",7),e.k0s()()}if(2&u){e.XpG();const a=e.sdS(5);e.R7$(),e.Y8G("nzMode","closeable"),e.R7$(),e.Y8G("ngTemplateOutlet",a)}}function jc(u,b){}function Ds(u,b){if(1&u&&(e.j41(0,"span",12)(1,"nz-tag",13),e.DNE(2,jc,0,0,"ng-template",7),e.k0s()()),2&u){const a=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode","default")("nzTooltipTitle",a.cvcTooltip),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Ga(u,b){if(1&u&&(e.nrm(0,"i",16),e.nI1(1,"evidenceEnumDisplay")),2&u){const a=e.XpG(2);e.Y8G("nzType",!0===a.cvcShowIcon?e.i5U(1,5,a.cvcAttrValue,"icon-name"):a.cvcShowIcon)("nzTwotoneColor",a.cvcIconColor)("nzTheme",a.cvcIconTheme)("ngClass",e.eq3(8,Hu,!0===a.cvcZoomIcon)),e.BMQ("style","color: "+a.cvcIconColor,e.$dS)}}function yc(u,b){if(1&u&&(e.nrm(0,"span",17),e.nI1(1,"evidenceEnumDisplay"),e.nI1(2,"highlightTypeahead")),2&u){const a=e.XpG(2);e.Y8G("innerHtml",e.i5U(2,4,e.i5U(1,1,a.cvcAttrValue,"display-string"===a.cvcShowLabel?a.cvcShowLabel:"short-string"),a.cvcEmphasize),e.npT)}}function Vi(u,b){if(1&u&&e.DNE(0,Ga,2,10,"i",14)(1,yc,3,7,"span",15),2&u){const a=e.XpG();e.Y8G("ngIf",a.cvcAttrValue&&a.cvcShowIcon),e.R7$(),e.Y8G("ngIf",a.cvcShowLabel)}}let eo=(()=>{class u{constructor(){this.cvcShowLabel="display-string",this.cvcShowIcon=!0,this.cvcZoomIcon=!1,this.cvcContext="default",this.cvcMode="default",this.cvcChecked=!1,this.cvcIconColor="#797979",this.cvcLabelColor="#434343",this.cvcIconTheme="outline",this.cvcFullWidth=!1,this.cvcOnClose=new e.bkB}ngOnChanges(a){a.cvcContext&&"compact"===a.cvcContext.currentValue&&(this.cvcShowIcon=!0,this.cvcShowLabel=!1,this.cvcZoomIcon=!0)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-attribute-tag"]],hostVars:2,hostBindings:function(h,_){2&h&&e.AVh("full-width",!0===_.cvcFullWidth)},inputs:{cvcAttrValue:"cvcAttrValue",cvcShowLabel:"cvcShowLabel",cvcShowIcon:"cvcShowIcon",cvcZoomIcon:"cvcZoomIcon",cvcTooltip:"cvcTooltip",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcChecked:"cvcChecked",cvcEmphasize:"cvcEmphasize",cvcIconColor:"cvcIconColor",cvcLabelColor:"cvcLabelColor",cvcIconTheme:"cvcIconTheme",cvcFullWidth:"cvcFullWidth"},outputs:{cvcOnClose:"cvcOnClose"},features:[e.OA$],decls:6,vars:4,consts:[["tagContent",""],["class","default",4,"ngIf"],["class","menu-item",4,"ngIf"],["class","select-item",4,"ngIf"],["class","compact",4,"ngIf"],[1,"default"],["nz-tooltip","",3,"nzOnClose","nzMode","nzTooltipTitle","nzChecked"],[3,"ngTemplateOutlet"],[1,"menu-item"],[3,"nzMode","nzChecked"],[1,"select-item"],[3,"nzOnClose","nzMode"],[1,"compact"],["nz-tooltip","",3,"nzMode","nzTooltipTitle"],["nz-icon","","class","tag-icon",3,"nzType","nzTwotoneColor","nzTheme","ngClass",4,"ngIf"],["class","tag-label",3,"innerHtml",4,"ngIf"],["nz-icon","",1,"tag-icon",3,"nzType","nzTwotoneColor","nzTheme","ngClass"],[1,"tag-label",3,"innerHtml"]],template:function(h,_){1&h&&e.DNE(0,ju,3,4,"span",1)(1,Ss,3,3,"span",2)(2,ha,3,2,"span",3)(3,Ds,3,3,"span",4)(4,Vi,2,2,"ng-template",null,0,e.C5r),2&h&&(e.Y8G("ngIf","default"===_.cvcContext),e.R7$(),e.Y8G("ngIf","menu-item"===_.cvcContext),e.R7$(),e.Y8G("ngIf","select-item"===_.cvcContext),e.R7$(),e.Y8G("ngIf","compact"===_.cvcContext))},dependencies:[M.YU,M.bT,M.T3,Gn.s,Z.Dn,hn.LH,za.pW,Xr.M],styles:['.hide-dropdown[_ngcontent-%COMP%]{display:none}.full-width[_nghost-%COMP%]{width:100%}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{margin-right:0;margin-inline-end:4px}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.menu-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{background-color:#fff}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable[_ngcontent-%COMP%]{border:1px solid #d9d9d9}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable[_ngcontent-%COMP%]:active{background-color:#e6f7ff}.menu-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]:not(.menu-item nz-tag.ant-tag-checkable-checked)[_ngcontent-%COMP%]:hover{color:#000000d9;border-color:#1890ff}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable-checked[_ngcontent-%COMP%]{border:transparent;background-color:#fff;color:#000000d9}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{background:#f5f5f5;border:1px solid #f0f0f0}.multi-select-item[_ngcontent-%COMP%]{display:inline-block;margin-top:-3px;margin-bottom:-3px;margin-left:-4px;padding-left:4px}.multi-select-item[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]:after{content:" "}.typeahead-match[_ngcontent-%COMP%]{font-weight:700}'],changeDetection:0})}return u})();const Cc=["optionTemplates"];function pa(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function Uc(u,b){1&u&&(e.qex(0),e.DNE(1,pa,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Gc(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Os={Evidence:{PREDICTIVE:{SUPPORTS:"Experiment or study supports the variant's response to a drug",DOES_NOT_SUPPORT:"Experiment or study does not support, or was inconclusive of an interaction between the variant and a drug"},DIAGNOSTIC:{SUPPORTS:"Experiment or study supports the variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"Experiment or study does not support the variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"Experiment or study supports the variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"Experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"Suggests a pathogenic or a protective role for a germline variant in cancer",DOES_NOT_SUPPORT:"Supports a benign (for Predisposition) or lack of protective (for Protectiveness) role for a germline variant in cancer."},FUNCTIONAL:{SUPPORTS:"Experiment or study supports the variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"Experiment or study does not support the variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Not Applicable for Oncogenic Evidence Type.",SUPPORTS:"Supports an oncogenic or protective role for a somatic variant.",DOES_NOT_SUPPORT:"Supports a benign (for Oncogenicity) or lack of protective (for Protectiveness) role for a somatic variant in cancer."}},Assertion:{PREDICTIVE:{SUPPORTS:"Supports the variant's response to a drug",DOES_NOT_SUPPORT:"Does not support, or was inconclusive of an interaction between the variant and a drug"},DIAGNOSTIC:{SUPPORTS:"Supports the variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"Does not support the variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"Supports the variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"Does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"Suggests a pathogenic or a protective role for a germline variant in cancer",DOES_NOT_SUPPORT:"Does not support an association between the variant and disease causation"},FUNCTIONAL:{SUPPORTS:"Supports the variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"Does not support the variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{SUPPORTS:"Supports an oncogenic or protective role for a somatic variant",DOES_NOT_SUPPORT:"Does not support an association between the variant and disease causation"}}},Ks=qi(zi(),mi()),Ya={types:[{name:"direction-select",wrappers:["form-field"],component:(()=>{class u extends Ks{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Direction",labelFn:h=>`${h} Direction`,required:!0,isMultiSelect:!1,placeholder:"Select Entity Direction",placeholderFn:(h,_)=>`Select ${_?_+" ":""}${h} Direction`,requireTypePromptFn:h=>`Select ${h} Type to select its Direction`}},this.directionEnum$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.directionEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void(this.placeholder$=new dn.t("ERROR: Form state not found"));if(this.props.label=this.props.labelFn(this.state.entityName),this.props.tooltip=`An indicator of whether the ${this.state.entityName} statement supports or refutes the clinical significance of an event.`,this.placeholder$=new dn.t(this.props.placeholderFn(this.state.entityName)),!this.state.enums.direction$)return void console.error(`${this.field.id} could not find form state's direction$ to populate select.`);this.state.enums.direction$.pipe((0,pn.s)(this)).subscribe(h=>{this.directionEnum$.next(h)}),this.optionTemplates||console.info(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,me.T)(h=>h.map(_=>_)));const a=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[a]?(this.onEntityType$=this.state.fields[a],this.onEntityType$.pipe((0,so.i)("add"===this.options.formState.formMode?0:1),(0,pn.s)(this)).subscribe(h=>{h?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName,(0,ro.u)(h)))):(this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName),this.props.extraType="prompt"),this.formControl.value&&this.formControl.setValue(void 0)}),this.onValueChange$.pipe((0,Yi.E)(this.onEntityType$),(0,pn.s)(this)).subscribe(([h,_])=>{!_||!h||!this.state||(this.props.extraType="description",this.props.description=Os[this.state.entityName][_][h],this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's ${a} to populate Direction options.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-direction-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Cc,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,Uc,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Gc,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.directionEnum$))}},dependencies:[M.Sq,Mi,eo,bi.L9],changeDetection:0})}return u})()}]};let bc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Ya),En,ai,Kr]})}return u})();var Go=c(5316),Ar=c(1226),ia=c(4222),fs=c(8721);const Ma=()=>[0,0];function Ec(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG();e.JRh(a.successMessage)}}function W(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.SpI(' "',a.model.name,'" ')}}let it=class w8{set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,a){this.query=b,this.errors=a,this.cvcOnCreate=new e.bkB,this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.addDiseaseMutator=new Ar.E(this.errors),this.fields=[{key:"doid",type:"base-input",props:{label:"DOID",keydown:(h,_)=>{"Tab"===_.code&&_.stopPropagation()}}},{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,pn.s)(this)).subscribe(h=>{h&&(this.model.name=h)}),this.onSubmit$.pipe((0,pn.s)(this)).subscribe(h=>{console.log("disease-quick-add form model submitted.",h),this.submitDisease(h)})}submitDisease(b){b.name?this.mutationState=this.addDiseaseMutator.mutate(this.query,this.model,{},a=>{console.log("disease-quick-add submit data callback",a),a.addDisease&&(this.successMessage=a.addDisease.new?`New Disease ${a.addDisease.disease.name} added.`:`Existing Disease ${a.addDisease.disease.name} with DOID ${a.addDisease.disease.doid} found. `,setTimeout(()=>{a&&a.addDisease&&this.cvcOnCreate.next(a.addDisease.disease.id)},1e3))}):console.error("disease-quick-add form submitDisease requires model with valid name.")}static#e=this.\u0275fac=function(a){return new(a||w8)(e.rXU(wn.tas),e.rXU(ia.N))};static#t=this.\u0275cmp=e.VBU({type:w8,selectors:[["cvc-disease-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:11,vars:11,consts:[["success",""],["entityType","Disease",3,"mutationState","successMessage"],["nz-form","","nzLayout","horizontal",3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],[4,"ngIf"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"cvc-form-submission-status-display",1),e.DNE(1,Ec,1,1,"ng-template",null,0,e.C5r),e.j41(3,"form",2),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(4,"nz-row",3)(5,"nz-col",4)(6,"formly-form",5),e.bIt("modelChange",function(ft){return e.eBV(_),e.Njj(h.model=ft)}),e.k0s()(),e.j41(7,"nz-col",4)(8,"button",6),e.EFF(9," Add Disease\xa0 "),e.DNE(10,W,2,1,"ng-container",7),e.k0s()()()()()}if(2&a){const _=e.sdS(2);e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,Ma)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("disabled",!h.form.valid),e.R7$(2),e.Y8G("ngIf",h.model.name)}},dependencies:[M.bT,t.qT,t.cb,t.j4,g.aF,Kn.aO,di.c,ho.p,L.Uq,L.e,G.CA,fs.G],encapsulation:2,changeDetection:0})};it=(0,vi.Cg)([(0,pn.d)()],it);const Te=["optionTemplates"];function Ge(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"DOID:"),e.k0s(),e.nrm(3,"span",9),e.nI1(4,"highlightTypeahead"),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(3),e.Y8G("innerHtml",e.i5U(4,1,a.doid,h),e.npT)}}function Nt(u,b){if(1&u&&(e.qex(0),e.EFF(1," \xa0 "),e.j41(2,"strong"),e.EFF(3,"Aliases: "),e.k0s(),e.j41(4,"em"),e.nrm(5,"span",10),e.nI1(6,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(5),e.Y8G("nzTooltipTitle",a.diseaseAliases.join(", "))("innerHtml",e.i5U(6,2,a.diseaseAliases.join(", "),h),e.npT)}}function gn(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",6),e.j41(1,"span",7),e.DNE(2,Ge,5,4,"ng-container",8)(3,Nt,7,5,"ng-container",8),e.EFF(4),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",a.doid),e.R7$(),e.Y8G("ngIf",a.diseaseAliases.length>0),e.R7$(),e.SpI(" ",h," ")}}function Pn(u,b){1&u&&(e.qex(0),e.DNE(1,gn,5,6,"ng-template",null,2,e.C5r),e.bVm())}function hi(u,b){if(1&u&&(e.qex(0),e.DNE(1,Pn,3,0,"ng-container",5),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function yo(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",11)(1,"cvc-entity-tag",12),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Disease:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function Gi(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-disease-quick-add-form",13),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()}2&u&&e.Y8G("cvcSearchString",b.$implicit)}const zo=qi(zi(),jo());let Xn=(()=>{class u extends zo{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"Disease",plural:"Diseases"},tooltip:"Cancer or cancer subtype that is a result of the described variant",isMultiSelect:!1,requireType:!0,placeholder:"Search Diseases",requireTypePromptFn:(ee,ft)=>`Select an ${ee} Type to select an associated Disease${ft?"(s)":""}`,addFormTitle:"Add a New Disease"}},this.placeholder$=new dn.t(void 0),this.selectOpen$=new Ni.m}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.placeholder$.next(this.props.placeholder),this.configureStateConnections()}configureStateConnections(){if(this.state){if(this.state.requires.requiresDisease$?this.onRequiresDisease$=this.state.requires.requiresDisease$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresDisease$ subject to attach.`),this.props.requireType){const a=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[a]?this.onEntityType$=this.state.fields[a]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${a}.`)}!this.onRequiresDisease$||!this.onEntityType$||(0,po.z)([this.onRequiresDisease$,this.onEntityType$,this.onValueChange$]).pipe((0,pn.s)(this)).subscribe(([a,h,_])=>{this.onStateUpdates(a,h,_)})}}onStateUpdates(a,h,_){!a&&h&&(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ro.u)(h)} ${this.state.entityName} does not include associated diseases`,this.props.extraType="prompt",this.cdr.markForCheck()),this.props.requireType&&!h&&(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"),a&&(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0),(!a&&void 0!==_||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()}getTypeaheadVarsFn(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.diseaseTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.disease}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.O3Q),e.rXU(wn.BOs),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-disease-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Te,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:12,vars:26,consts:[["selectedTemplate",""],["addDisease",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcAddEntity","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],[3,"innerHtml"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",3),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcSelectComponent",function(nn){return e.eBV(ee),e.Njj(_.selectComponent=nn)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(7,hi,3,3,"ng-container",4)(8,yo,2,3,"ng-template",null,0,e.C5r)(10,Gi,1,1,"ng-template",null,1,e.C5r)}if(2&h){const ee=e.sdS(9),ft=e.sdS(11);e.Y8G("cvcAddEntity",ft)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,14,_.placeholder$))("cvcResults",e.bMT(2,16,_.result$))("cvcOptions",e.bMT(3,18,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresDisease$&&!e.bMT(4,20,_.onRequiresDisease$))("cvcLoading",e.bMT(5,22,_.isLoading$))("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,bi.Nj,hn.LH,qe.Di,Yt,tn.b,it,bi.L9,Xr.M],changeDetection:0})}return u})();const Io={types:[{name:"disease-select",wrappers:["form-field"],component:Xn,defaultOptions:{props:{label:"Disease"}}},{name:"disease-multi-select",wrappers:["form-field"],component:Xn,defaultOptions:{props:{isMultiSelect:!0,label:"Diseases"}}}]};let Wi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Io),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,G.PQ,rt.jl,qe.kT,Gn.T,Go.P,En,jn,ge.i,Ft._]})}return u})();const Ao=["optionTemplates"];function Qr(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function Rr(u,b){1&u&&(e.qex(0),e.DNE(1,Qr,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Is(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ms={DIAGNOSTIC:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype).",PREDICTIVE:"Evidence pertains to a variant's effect on therapeutic response.",PROGNOSTIC:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival.",PREDISPOSING:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations).",ONCOGENIC:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer.",FUNCTIONAL:"Evidence pertains to a variant that alters biological function from the reference state."},Br=qi(zi(),mi()),vs={types:[{name:"type-select",wrappers:["form-field"],component:(()=>{class u extends Br{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"ENTITY_NAME Type",entityName:{singular:"Entity",plural:"Entities"},placeholder:"Select an ENTITY_NAME Type",isMultiSelect:!1}},this.typeEnums$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.description=ms[a],this.props.extraType="description",this.field.formControl.markAsTouched()):(this.props.description=void 0,this.props.extraType=void 0)}),this.state?(this.props.placeholder=this.props.placeholder.replace("ENTITY_NAME",this.state.entityName),this.props.label=this.props.label.replace("ENTITY_NAME",this.state.entityName),this.props.tooltip=`Type of clinical outcome associated with the ${this.state.entityName} statement.`,this.state.enums.entityType$?(this.state.enums.entityType$.pipe((0,pn.s)(this)).subscribe(a=>{this.typeEnums$.next(a)}),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,me.T)(a=>a.map(h=>h))),this.configureEnumSelect()):console.error(`${this.field.id} could not find state's enums.inputEnum$ to populate its select options.`)):console.error(`${this.field.id} requires a form state to configure itself, none was found.`)}configureEnumSelect(){this.configureEnumSelectField({optionEnum$:this.typeEnums$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-type-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Ao,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,Rr,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,Is,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ee)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.typeEnums$))}},dependencies:[M.Sq,eo,Mi,bi.L9],changeDetection:0})}return u})()}]};let Tc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(vs),En,Kr,ai]})}return u})();var ws=c(9214);let zc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,qe.kT]})}return u})();var Yo=c(5703),ns=c(2602),to=c(9247),Sa=c(2816),xs=c(152),is=c(1661),Uu=c(9869);const j1={isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},Mc=u=>void 0!==u.sort,Jr=u=>void 0!==u.filter,Wc={description:wn.NVO.Description,disease:wn.NVO.DiseaseName,evidenceDirection:wn.NVO.EvidenceDirection,evidenceLevel:wn.NVO.EvidenceLevel,evidenceRating:wn.NVO.EvidenceRating,evidenceType:wn.NVO.EvidenceType,id:wn.NVO.Id,significance:wn.NVO.Significance,status:wn.NVO.Status,variantOrigin:wn.NVO.VariantOrigin},fa={molecularProfile:"molecularProfileName",disease:"diseaseName",therapies:"therapyName",evidenceItem:"id"},ma=["selected","id"];class Kc{constructor(){this.sortStreams=[],this.filterStreams=[],this.config=this.configureColumnStreams([{key:"selected",label:"Select",type:"select",width:"25px",align:"center",fixedLeft:!0,checkbox:{th:{showCheckbox:!1},td:{showCheckbox:!0}}},{hidden:!0,key:"id",label:"ID",type:"default",width:"30px"},{hidden:!0,key:"status",label:"Status",type:"default",width:"50px"},{key:"id",label:"Evidence",type:"entity-tag",width:"95px",context:"evidenceItem",fixedLeft:!0,showStatus:!0,tag:{fullWidth:!0},sort:{default:"ascend"},filter:{inputType:"default",options:[{key:"EID",value:null}],transform:b=>b?+b.toString().replace(/EID/i,""):null}},{key:"molecularProfile",label:"Molecular Profile",type:"entity-tag",width:"240px",sort:{},tag:{truncateLabel:"200px"},filter:{inputType:"default",typename:"MolecularProfile",options:[{key:"Filter Therapy Names",value:null}]}},{key:"disease",type:"entity-tag",label:"Disease",width:"240px",sort:{},tag:{truncateLabel:"200px"},filter:{inputType:"default",typename:"Disease",options:[{key:"Filter Disease Names",value:null}]}},{key:"therapies",label:"Therapies",type:"entity-tag",width:"275px",sort:{disabled:!0},tag:{maxTags:2,truncateLabel:"150px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}},{key:"therapyInteractionType",label:"INT",tooltip:"Therapy Interaction Type",type:"enum-tag",width:"40px",align:"center",emptyValueCategory:"not-applicable",sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(wn.qld))}},{key:"description",label:"DSC",tooltip:"Evidence Description",type:"text-tag",width:"40px",align:"center",fixedRight:!0,emptyValueCategory:"unspecified",sort:{},filter:{inputType:"default",options:[{key:"Search Descriptions",value:null}]}},{key:"evidenceType",label:"ET",tooltip:"Evidence Type",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(wn.M1P))}},{key:"evidenceLevel",label:"EL",tooltip:"Evidence Level",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(wn.iHU))}},{key:"evidenceDirection",label:"ED",tooltip:"Evidence Direction",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(wn.$Ni))}},{key:"significance",label:"SI",tooltip:"Significance",type:"enum-tag",align:"center",width:"40px",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,Ei.KF)(wn.Vue))}},{key:"evidenceRating",label:"ER",tooltip:"Evidence Rating",type:"enum-tag",width:"45px",align:"center",fixedRight:!0,tag:{showLabel:"short-string"},sort:{},filter:{options:[1,2,3,4,5].map(b=>({value:b,text:`${b} stars`}))}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(b,a){return b.getValues().map(_=>({text:(0,ro.u)(_),value:_,byDefault:a===_}))}configureColumnStreams(b){return b.forEach(a=>{const h=a;if(Mc(h)&&(h.sort.changes=new dn.t({key:h.key,value:h.sort.default??null}),this.sortStreams.push(h.sort.changes)),Jr(h)){const _=h.filter.options.find(ee=>ee.byDefault)?.value;h.filter.changes=new dn.t({key:h.key,value:_??null}),this.filterStreams.push(h.filter.changes)}}),b}}var Ps=c(2033);const Fs=(u,b,a)=>({$implicit:u,config:b,emphasize:a});function au(u,b){1&u&&e.eu8(0)}function Xc(u,b){if(1&u&&(e.qex(0),e.j41(1,"span",1),e.DNE(2,au,1,0,"ng-container",2),e.k0s(),e.bVm()),2&u){const a=b.$implicit,h=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",h.cvcTagTemplate)("ngTemplateOutletContext",e.sMw(2,Fs,a,h.config,null==h.config?null:h.config.emphasize))}}let Xs=class x8{set cvcTagListConfig(b){!b||!b.tagList||!b.tag||(this.config=b,this.setEntities(b.tagList,b.tag))}constructor(){this.entities=[]}setEntities(b,a){this.entities=b&&0!==b.length&&0!==a.maxTags?b:[]}static#e=this.\u0275fac=function(a){return new(a||x8)};static#t=this.\u0275cmp=e.VBU({type:x8,selectors:[["cvc-entity-tag-list"]],inputs:{cvcTagListConfig:"cvcTagListConfig",cvcTagTemplate:"cvcTagTemplate"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"tag-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(a,h){1&a&&e.DNE(0,Xc,3,6,"ng-container",0),2&a&&e.Y8G("ngForOf",h.entities)},dependencies:[M.Sq,M.T3],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]{display:inline-block;margin-bottom:-4px}.tag-container[_ngcontent-%COMP%]{display:inline-block;margin-bottom:4px}"],changeDetection:0})};Xs=(0,vi.Cg)([(0,pn.d)()],Xs);var bl=c(3075),Da=c(4137);const Qc=(u,b,a,h,_)=>({tagList:u,tag:b,showPopover:a,status:h,emphasize:_});function Sc(u,b){if(1&u&&(e.nrm(0,"span",7),e.nI1(1,"typenameToIcon"),e.nI1(2,"entityColor")),2&u){const a=b.$implicit;e.Y8G("nzType",e.bMT(1,2,a.__typename))("nzTwotoneColor",e.bMT(2,4,a.__typename))}}function os(u,b){if(1&u&&(e.qex(0),e.DNE(1,Sc,3,6,"span",6),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",a.entities)}}function ga(u,b){if(1&u&&(e.j41(0,"span",8)(1,"strong"),e.EFF(2),e.k0s()(),e.nrm(3,"span",7),e.nI1(4,"typenameToIcon"),e.nI1(5,"entityColor")),2&u){const a=e.XpG();e.R7$(2),e.JRh(a.entities.length),e.R7$(),e.Y8G("nzType",e.bMT(4,3,a.entities[0].__typename))("nzTwotoneColor",e.bMT(5,5,a.entities[0].__typename))}}function cu(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag-list",11),2&u){const a=e.XpG(2);e.Y8G("cvcTagTemplate",a.cvcTagTemplate)("cvcTagListConfig",e.s1E(2,Qc,a.entities,a.config.tag,a.config.showPopover,a.config.status,a.config.emphasize))}}function Yu(u,b){1&u&&e.EFF(0," Invalid config specified for entity-tag-list. ")}function _s(u,b){if(1&u&&(e.j41(0,"div",9),e.DNE(1,cu,1,8,"cvc-entity-tag-list",10),e.k0s(),e.DNE(2,Yu,1,0,"ng-template",null,2,e.C5r)),2&u){const a=e.sdS(3),h=e.XpG();e.R7$(),e.Y8G("ngIf",h.config)("ngIfElse",a)}}let lu=(()=>{class u{set cvcCollectionTagConfig(a){!a||!a.tagList||!a.tag||(this.setConfig(a),this.setEntities(a.tagList))}constructor(){this.cvcShowMaxIcons=5,this.cvcShowFullLabels=!0,this.entities=[]}setConfig(a){this.config=this.cvcShowFullLabels?{...a,tag:{...a.tag,truncateLabel:void 0}}:a}setEntities(a){this.entities=a&&0!==a.length?a:[]}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-entity-collection-tag"]],inputs:{cvcCollectionTagConfig:"cvcCollectionTagConfig",cvcTagTemplate:"cvcTagTemplate",cvcShowMaxIcons:"cvcShowMaxIcons",cvcShowFullLabels:"cvcShowFullLabels"},decls:9,vars:3,consts:[["showCount",""],["tagListPopover",""],["noConfig",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-typography","","nzType","secondary",1,"plus-sign"],[4,"ngIf","ngIfElse"],["class","entity-icon","nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor",4,"ngFor","ngForOf"],["nz-icon","","nzTheme","twotone",1,"entity-icon",3,"nzType","nzTwotoneColor"],["nz-typography","","nzType","secondary",1,"entity-count"],[1,"popover-container"],[3,"cvcTagTemplate","cvcTagListConfig",4,"ngIf","ngIfElse"],[3,"cvcTagTemplate","cvcTagListConfig"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-tag",3)(1,"span",4)(2,"strong"),e.EFF(3,"+"),e.k0s()(),e.DNE(4,os,2,1,"ng-container",5)(5,ga,6,7,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(7,_s,4,2,"ng-template",null,1,e.C5r)),2&h){const ee=e.sdS(6),ft=e.sdS(8);e.Y8G("nzPopoverContent",ft),e.R7$(4),e.Y8G("ngIf",_.entities.length<=_.cvcShowMaxIcons)("ngIfElse",ee)}},dependencies:[M.Sq,M.bT,Gn.s,qe.Di,gi.L_,Z.Dn,Xs,bl.R,Da.o],styles:["[_nghost-%COMP%]{display:inline-block}.popover-container[_ngcontent-%COMP%]{max-width:300px}nz-tag[_ngcontent-%COMP%]{margin:0;padding:0;margin-inline-end:4px}nz-tag[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block}nz-tag[_ngcontent-%COMP%] .plus-sign[_ngcontent-%COMP%]{padding:3px 3px 3px 4px;margin:-3px 0;line-height:1}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]:first-child{padding-left:2px}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]{margin:-3px 1px -4px -1px;padding:3px 0;line-height:1}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]:last-child{padding-right:3px}nz-tag[_ngcontent-%COMP%] .entity-count[_ngcontent-%COMP%]{margin-left:-2px;padding-right:4px}"],changeDetection:0})}return u})();var Jc=c(3296);function P(u,b){if(1&u&&(e.j41(0,"span",1),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&u){const a=b.ngIf;e.R7$(),e.Lme(" ",e.bMT(2,2,a.edgeCount)," of ",e.bMT(3,4,a.filteredCount)," displayed\n")}}let ae=(()=>{class u{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,qt.p)(a=>null!=a.totalCount||null!=a.filteredCount),(0,me.T)(a=>{const h=a.filteredCount,_=a.totalCount,ee=a.edges;return null==h&&null==_&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:ee.length,filteredCount:h??_}}))}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-table-counts2"]],inputs:{cvcTableCountsConnection:"cvcTableCountsConnection"},decls:2,vars:3,consts:[["class","table-counts","nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary",1,"table-counts"]],template:function(h,_){1&h&&(e.DNE(0,P,4,6,"span",0),e.nI1(1,"ngrxPush")),2&h&&e.Y8G("ngIf",e.bMT(1,1,_.tableCountsInfo$))},dependencies:[M.bT,qe.Di,M.QX,bi.L9],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0})}return u})();var k=c(1594),le=c(3946);let $e=class P8{set cvcTableScrollerToIndex(b){void 0!==b&&this.scrollToIndex(b)}set cvcTableScrollerToOffset(b){void 0!==b&&this.scrollToIndex(b)}constructor(b){this.host=b,this.cvcTableScrollerOnScroll=new e.bkB,this.cvcTableScrollerOnFetch=new e.bkB,this.cvcTableScrollerTargetHeight=140,this.cvcTableScrollerFetchCount=50,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroller directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,k.$)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,Mr.c)(this.onScrollThrottleTime,Ur.E,{leading:!0,trailing:!0}),(0,On.M)(b=>this.cvcTableScrollerOnScroll.next("scroll")),(0,xs.B)(this.onScrollDebounceTime),(0,pn.s)(this)).subscribe(b=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,me.T)(b=>this.viewport.measureScrollOffset("bottom")),(0,le.J)(),(0,qt.p)(([b,a])=>a{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(a){console.error(a)}})}loadMore(b){const a=this.cvcTableScrollerQueryRef;if(!b&&a)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(b&&!a)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(b&&a){const[h,_,ee]=[this.cvcTableScrollerFetchCount,b.hasNextPage,b.endCursor];if(!h||!ee)throw new Error("table-scroll PageInfo invalid.");if(!_)return;this.cvcTableScrollerOnFetch.next({first:h,after:ee})}}scrollToIndex(b){const[a,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!a||!h)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");h.scrollToIndex(b)}scrollToOffset(b){const[a,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!a||!h)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");h.scrollToOffset(b)}static#e=this.\u0275fac=function(a){return new(a||P8)(e.rXU(to.CP))};static#t=this.\u0275dir=e.FsC({type:P8,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}})};function mt(u,b){1&u&&e.nrm(0,"span",8)}function kt(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",9),e.bIt("click",function(){e.eBV(a),e.XpG(2);const _=e.sdS(3),ee=e.XpG();return _.value="",e.Njj(ee.cvcModelChange.next(null))}),e.k0s()}}function yn(u,b){if(1&u&&e.DNE(0,mt,1,0,"span",6)(1,kt,1,0,"span",7),2&u){e.XpG();const a=e.sdS(3);e.Y8G("ngIf",!a.value),e.R7$(),e.Y8G("ngIf",a.value)}}function ln(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-input-group",4)(2,"input",5,1),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcModelChange.next(_))}),e.k0s()(),e.DNE(4,yn,2,2,"ng-template",null,2,e.C5r),e.bVm()}if(2&u){const a=e.sdS(5),h=e.XpG();e.R7$(),e.Y8G("nzSuffix",a),e.R7$(),e.Y8G("placeholder",h.cvcPlaceholder)("ngModel",h.cvcModel)}}function si(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number-group",10)(1,"nz-input-number",11,1),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcModelChange.next(""===_?null:_))}),e.k0s()()}if(2&u){let a;const h=e.XpG();e.R7$(),e.Y8G("nzPlaceHolder",null!==(a=h.cvcPlaceholder)&&void 0!==a?a:"")("ngModel",h.cvcModel)("nzMin",1)("nzStep",1)}}$e=(0,vi.Cg)([(0,pn.d)()],$e);let Fi=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.bkB,this.cvcInputType="default"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[["numericInput",""],["filterInput",""],["suffixIcon",""],[4,"ngIf","ngIfElse"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"ngModelChange","placeholder","ngModel"],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"]],template:function(h,_){if(1&h&&e.DNE(0,ln,6,3,"ng-container",3)(1,si,3,4,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf","default"===_.cvcInputType)("ngIfElse",ee)}},dependencies:[M.bT,t.me,t.BC,t.vS,di.c,Z.Dn,F.Sy,F.tg,F.vN,_e,et],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none} nz-input-group{border-color:#d9d9d9!important}"]})}return u})();var Ai=c(1868);function Ro(u,b){if(1&u){const a=e.RV6();e.j41(0,"li",5),e.bIt("click",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.cvcOptionChange.next({key:ee.cvcColumnKey,value:_.value}))}),e.nrm(1,"cvc-attribute-tag",6),e.k0s()}if(2&u){const a=b.$implicit,h=e.XpG();e.Y8G("nzSelected",(null==h.cvcOption?null:h.cvcOption.value)===a.value),e.R7$(),e.Y8G("cvcFullWidth",!0)("cvcChecked",(null==h.cvcOption?null:h.cvcOption.value)===a.value)("cvcAttrValue",a.value)}}let ys=(()=>{class u{constructor(){this.cvcOptionChange=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-enum-filter-menu"]],inputs:{cvcColumnKey:"cvcColumnKey",cvcFilterOptions:"cvcFilterOptions",cvcOption:"cvcOption"},outputs:{cvcOptionChange:"cvcOptionChange"},decls:6,vars:2,consts:[["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[2,"padding","3px"],["nz-button","","nzType","default","nzBlock","","nzSize","small",3,"click","disabled"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"click","nzSelected"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(h,_){1&h&&(e.j41(0,"ul",0),e.DNE(1,Ro,2,4,"li",1),e.j41(2,"li",2)(3,"button",3),e.bIt("click",function(){return _.cvcOptionChange.next({key:_.cvcColumnKey,value:null})}),e.nrm(4,"span",4),e.EFF(5," Reset "),e.k0s()()()),2&h&&(e.R7$(),e.Y8G("ngForOf",_.cvcFilterOptions),e.R7$(2),e.Y8G("disabled",null===(null==_.cvcOption?null:_.cvcOption.value)))},dependencies:[M.Sq,eo,Kn.aO,di.c,ho.p,Ai.jS,Ai.CU,Z.Dn],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] ul li:hover{background-color:#e6f7ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected{background-color:#1890ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected:active{background-color:#096dd9}"],changeDetection:0})}return u})(),Or=(()=>{class u{transform(a){return null!=a&&Array.isArray(a)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275pipe=e.EJ8({name:"isArray",type:u,pure:!0})}return u})(),Hi=(()=>{class u{transform(a,h){return h(a)?a:void 0}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275pipe=e.EJ8({name:"guardType",type:u,pure:!0})}return u})();const So=()=>[],er=()=>({x:"800px",y:"200px"}),oa=(u,b,a)=>({$implicit:u,config:b,emphasize:a}),tr=(u,b,a,h,_)=>({tagList:u,tag:b,showPopover:a,status:h,emphasize:_}),El=()=>[6,6],Tl=u=>({$implicit:u});function zl(u,b){if(1&u&&e.nrm(0,"th",28),2&u){let a;const h=b.ngIf;e.Y8G("nzShowCheckbox",h.checkbox.th.showCheckbox||!1)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Jd(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",29),e.nI1(1,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.sort.changes.next({key:ee.key,value:_}))}),e.j41(2,"span",30),e.EFF(3),e.k0s()()}if(2&u){let a,h;const _=b.ngIf;e.Y8G("nzColumnKey",_.key)("nzAlign",null!==(a=_.align)&&void 0!==a?a:"left")("nzWidth",_.width)("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzShowSort",void 0!==_.sort&&!_.sort.disabled)("nzSortFn",!_.sort.disabled)("nzSortOrder",(null==(h=e.bMT(1,10,_.sort.changes))?null:h.value)||null),e.R7$(2),e.Y8G("nzTooltipTitle",_.tooltip),e.R7$(),e.SpI(" ",_.label," ")}}function Zd(u,b){if(1&u&&(e.j41(0,"th",31),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Ml(u,b){if(1&u&&(e.j41(0,"th",31),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function U1(u,b){if(1&u&&(e.qex(0),e.DNE(1,zl,1,5,"th",25),e.nI1(2,"guardType"),e.DNE(3,Jd,4,12,"th",26),e.nI1(4,"guardType"),e.DNE(5,Zd,2,7,"th",27),e.nI1(6,"guardType"),e.DNE(7,Ml,2,7,"th",27),e.nI1(8,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,a,h.colGuards.isTextTagCol))}}function Dc(u,b){if(1&u&&(e.qex(0),e.DNE(1,U1,9,16,"ng-container",24),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function uu(u,b){if(1&u&&(e.j41(0,"th",36),e.EFF(1," \xa0 "),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Zc(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-table-filter-input",39),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf,ft=e.XpG().ngIf;return e.Njj(ee.changes.next(ee.transform?{key:ft.key,value:ee.transform(_)}:{key:ft.key,value:_}))}),e.k0s()}if(2&u){const a=e.XpG().ngIf;e.Y8G("cvcInputType",a.filter.inputType)("cvcPlaceholder",a.filter.options[0].key)("cvcModel",a.filter.options[0].value)}}function G1(u,b){if(1&u&&(e.j41(0,"th",37),e.DNE(1,Zc,1,3,"cvc-table-filter-input",38),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function Sl(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",40,4),e.nI1(2,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.sort.changes.next({key:ee.key,value:_}))}),e.j41(3,"nz-filter-trigger",41,5),e.nI1(5,"ngrxPush"),e.nrm(6,"span",42),e.k0s(),e.j41(7,"nz-dropdown-menu",null,6)(9,"cvc-enum-filter-menu",43),e.nI1(10,"ngrxPush"),e.bIt("cvcOptionChange",function(_){const ee=e.eBV(a).ngIf,ft=e.sdS(4);return ee.filter.changes.next(_),e.Njj(ft.nzVisible=!1)}),e.k0s()()()}if(2&u){let a,h,_;const ee=b.ngIf,ft=e.sdS(8);e.Y8G("nzColumnKey",ee.key)("nzWidth",ee.width)("nzAlign",null!==(a=ee.align)&&void 0!==a?a:"left")("nzLeft",ee.fixedLeft||!1)("nzRight",ee.fixedRight||!1)("nzShowSort",!ee.sort.disabled)("nzSortFn",!ee.sort.disabled)("nzSortOrder",(null==(h=e.bMT(2,15,ee.sort.changes))?null:h.value)||null)("nzShowFilter",void 0!==ee.filter)("nzFilterFn",!0),e.R7$(3),e.Y8G("nzDropdownMenu",ft)("nzActive",null!==(null==(_=e.bMT(5,17,ee.filter.changes))?null:_.value)),e.R7$(6),e.Y8G("cvcColumnKey",ee.key)("cvcFilterOptions",ee.filter.options)("cvcOption",e.bMT(10,19,ee.filter.changes))}}function Wu(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",44,4)(2,"nz-filter-trigger",41),e.nI1(3,"ngrxPush"),e.nrm(4,"span",45),e.k0s(),e.j41(5,"nz-dropdown-menu",null,7)(7,"div",46)(8,"div",47)(9,"cvc-table-filter-input",48),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.filter.changes.next({key:ee.key,value:_}))}),e.k0s()()()()()}if(2&u){let a,h;const _=b.ngIf,ee=e.sdS(6);e.Y8G("nzColumnKey",_.key)("nzWidth",_.width)("nzAlign",null!==(a=_.align)&&void 0!==a?a:"left")("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzFilterFn",!0),e.R7$(2),e.Y8G("nzDropdownMenu",ee)("nzActive",null!==(null==(h=e.bMT(3,10,_.filter.changes))?null:h.value)),e.R7$(7),e.Y8G("cvcPlaceholder",_.filter.options[0].key)("cvcModel",_.filter.options[0].value)}}function Dl(u,b){if(1&u&&(e.qex(0),e.DNE(1,uu,2,5,"th",32),e.nI1(2,"guardType"),e.DNE(3,G1,2,6,"th",33),e.nI1(4,"guardType"),e.DNE(5,Sl,11,21,"th",34),e.nI1(6,"guardType"),e.DNE(7,Wu,10,12,"th",35),e.nI1(8,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,a,h.colGuards.isTextTagCol))}}function du(u,b){if(1&u&&(e.qex(0),e.DNE(1,Dl,9,16,"ng-container",24),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function hu(u,b){if(1&u&&(e.j41(0,"thead")(1,"tr",21),e.DNE(2,Dc,2,1,"ng-container",22),e.k0s(),e.j41(3,"tr",23),e.DNE(4,du,2,1,"ng-container",22),e.k0s()()),2&u){const a=b.ngrxLet;e.R7$(2),e.Y8G("ngForOf",a),e.R7$(2),e.Y8G("ngForOf",a)}}function Oa(u,b){if(1&u){const a=e.RV6();e.j41(0,"td",53),e.bIt("nzCheckedChange",function(_){e.eBV(a);const ee=e.XpG(3).$implicit,ft=e.XpG(2);return e.Njj(ft.onRowSelected$.next({id:ee.id,selected:_}))}),e.k0s()}if(2&u){let a;const h=b.ngIf,_=e.XpG(3).$implicit;e.Y8G("nzChecked",_.selected)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Ku(u,b){1&u&&e.eu8(0)}function Ol(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ku,1,0,"ng-container",56),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let a;const h=e.XpG().ngIf,_=e.XpG().ngIf,ee=e.sdS(3),ft=e.sdS(5),nn=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,nn[h])?ee:ft)("ngTemplateOutletContext",e.sMw(6,oa,nn[h],_,null==(a=e.bMT(3,4,_.filter.changes))?null:a.value))}}function qc(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ol,4,10,"ng-container",55),e.bVm()),2&u){const a=b.ngIf;e.XpG();const h=e.sdS(7),_=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngIf",_[a])("ngIfElse",h)}}function Xu(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-collection-tag",58),e.bVm()),2&u){const a=e.XpG(2),h=a.$implicit,_=a.config,ee=a.emphasize;e.XpG();const ft=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcCollectionTagConfig",e.s1E(3,tr,h.slice(_.tag.maxTags,h.length),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ee))("cvcTagTemplate",ft)("cvcShowFullLabels",!0)}}function Il(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-tag-list",57),e.DNE(2,Xu,2,9,"ng-container",24),e.bVm()),2&u){const a=e.XpG(),h=a.$implicit,_=a.config,ee=a.emphasize;e.XpG();const ft=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcTagTemplate",ft)("cvcTagListConfig",e.s1E(3,tr,h.slice(0,_.tag.maxTags),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ee)),e.R7$(),e.Y8G("ngIf",h.slice(_.tag.maxTags,h.length).length>0)}}function el(u,b){if(1&u&&e.DNE(0,Il,3,9,"ng-container",55),2&u){const a=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",a.length>0)("ngIfElse",h)}}function Cs(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",59),2&u){let a;const h=b.$implicit,_=b.config,ee=b.emphasize,ft=e.XpG(6);e.Y8G("cvcTruncateLabel",null==_.tag?null:_.tag.truncateLabel)("cvcLinkableEntity",h)("cvcEmphasize",ee)("cvcShowPopover",!ft.isScrolling)("cvcStatus",!0===_.showStatus?h.status:void 0)("cvcFullWidth",null!==(a=null==_.tag?null:_.tag.fullWidth)&&void 0!==a&&a)}}function Ka(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",60),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"not-applicable")}}function Qu(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,qc,2,2,"ng-container",24)(2,el,1,2,"ng-template",null,8,e.C5r)(4,Cs,1,6,"ng-template",null,9,e.C5r)(6,Ka,1,1,"ng-template",null,10,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.context||h.key)}}function Y1(u,b){if(1&u&&(e.nrm(0,"cvc-attribute-tag",62),e.nI1(1,"evidenceEnumDisplay")),2&u){const a=e.XpG().ngIf,h=e.XpG(3).$implicit,_=e.XpG(2);e.Y8G("cvcFullWidth",!0)("cvcAttrValue",h[a.key])("cvcTooltip",e.bMT(1,3,!_.isScrolling&&h[a.key]))}}function W1(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",63),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function Ju(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,Y1,2,5,"cvc-attribute-tag",61)(2,W1,1,1,"ng-template",null,11,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(3),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function Xa(u,b){if(1&u&&(e.j41(0,"nz-tag",65),e.nrm(1,"span",66),e.k0s()),2&u){const a=e.XpG().ngIf,h=e.XpG(3).$implicit;e.Y8G("nzTooltipTitle",h[a.key])}}function Zu(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",60),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function qu(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,Xa,2,1,"nz-tag",64)(2,Zu,1,1,"ng-template",null,12,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(3),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function e1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Oa,1,4,"td",51),e.nI1(2,"guardType"),e.DNE(3,Qu,8,4,"td",52),e.nI1(4,"guardType"),e.DNE(5,Ju,4,5,"td",52),e.nI1(6,"guardType"),e.DNE(7,qu,4,5,"td",52),e.nI1(8,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,a,h.colGuards.isTextTagCol))}}function wl(u,b){if(1&u&&(e.qex(0),e.DNE(1,e1,9,16,"ng-container",24),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function pu(u,b){if(1&u&&(e.j41(0,"tr",50),e.DNE(1,wl,2,1,"ng-container",22),e.k0s()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngForOf",a)}}function fu(u,b){1&u&&(e.j41(0,"tbody"),e.DNE(1,pu,2,1,"ng-template",49),e.k0s())}function tl(u,b){1&u&&e.nrm(0,"span",71)}function Qa(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",72),e.bIt("click",function(){e.eBV(a),e.XpG(2);const _=e.sdS(3),ee=e.XpG().filter;return _.value="",e.Njj(ee.changes.next({key:ee.key,value:null}))}),e.k0s()}}function t1(u,b){if(1&u&&e.DNE(0,tl,1,0,"span",69)(1,Qa,1,0,"span",70),2&u){e.XpG();const a=e.sdS(3);e.Y8G("ngIf",!a.value),e.R7$(),e.Y8G("ngIf",a.value)}}function n1(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-input-group",67)(2,"input",68,14),e.bIt("nzFilterChange",function(_){e.eBV(a);const ee=e.XpG().filter;return e.Njj(ee.changes.next({key:ee.key,value:_}))}),e.k0s()(),e.DNE(4,t1,2,2,"ng-template",null,15,e.C5r),e.bVm()}if(2&u){const a=e.sdS(5),h=e.XpG().filter;e.R7$(),e.Y8G("nzSuffix",a),e.R7$(),e.Y8G("placeholder",h.placeholder)("ngModel",h.defaultValue)}}function gr(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number-group",73)(1,"nz-input-number",74,14),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG().filter;return e.Njj(ee.changes.next({key:ee.key,value:_}))}),e.k0s()()}if(2&u){const a=e.XpG().filter;e.R7$(),e.Y8G("nzPlaceHolder",a.placeholder)("ngModel",a.defaultValue)("nzMin",1)("nzStep",1)}}function mu(u,b){if(1&u&&e.DNE(0,n1,6,3,"ng-container",55)(1,gr,3,4,"ng-template",null,13,e.C5r),2&u){const a=b.filter,h=e.sdS(2);e.Y8G("ngIf",void 0===a.inputType||"default"===a.inputType)("ngIfElse",h)}}function gu(u,b){1&u&&(e.j41(0,"nz-row",75)(1,"nz-col")(2,"span"),e.EFF(3,"Use checkboxes to select or deselect EIDs"),e.k0s()()()),2&u&&e.Y8G("nzGutter",e.lJ4(1,El))}function Oc(u,b){1&u&&(e.j41(0,"nz-tag",85),e.nrm(1,"i",86),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function o1(u,b){if(1&u&&(e.j41(0,"nz-tag",88),e.nrm(1,"span",89),e.j41(2,"span",90),e.EFF(3),e.k0s()()),2&u){e.XpG();const a=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",a)("nzTooltipTitleContext",e.eq3(3,Tl,h.query)),e.R7$(),e.SpI(" Query Error",h.query.length>1?"s":""," ")}}function r1(u,b){if(1&u&&(e.j41(0,"nz-tag",88)(1,"span",90)(2,"span",91)(3,"strong"),e.EFF(4),e.k0s()()()()),2&u){e.XpG();const a=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(),e.Y8G("nzTooltipTitle",a)("nzTooltipTitleContext",e.eq3(3,Tl,h.network)),e.R7$(3),e.SpI(" Network Error",h.query.length>1?"s":""," ")}}function s1(u,b){if(1&u&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&u){const a=b.$implicit;e.R7$(),e.SpI(" ",a.message," ")}}function a1(u,b){1&u&&e.DNE(0,s1,2,1,"div",22),2&u&&e.Y8G("ngForOf",b.$implicit)}function c1(u,b){if(1&u&&(e.qex(0),e.DNE(1,o1,4,5,"nz-tag",87)(2,r1,5,5,"nz-tag",87)(3,a1,1,1,"ng-template",null,17,e.C5r),e.bVm()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",a.query),e.R7$(),e.Y8G("ngIf",a.network)}}function l1(u,b){if(1&u&&(e.qex(0),e.DNE(1,c1,5,2,"ng-container",24),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(),e.Y8G("ngIf",a)}}function xl(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",92)(1,"nz-checkbox-group",93),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onPreferenceChange$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngModel",e.bMT(2,1,a.setPreference$))}}function nl(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-row",75)(1,"nz-col",76),e.DNE(2,Oc,4,0,"nz-tag",77),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nrm(5,"cvc-no-more-rows",78),e.nI1(6,"ngrxPush"),e.k0s(),e.j41(7,"nz-col",76),e.DNE(8,l1,2,1,"ng-container",20),e.k0s(),e.j41(9,"nz-col",76),e.nrm(10,"cvc-table-counts2",79),e.k0s(),e.j41(11,"nz-col",80)(12,"nz-button-group")(13,"button",81),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onResetFilter$.next())}),e.nrm(14,"span",82),e.k0s(),e.j41(15,"button",83),e.nrm(16,"span",84),e.k0s()(),e.DNE(17,xl,3,3,"ng-template",null,16,e.C5r),e.k0s()()}if(2&u){const a=e.sdS(18),h=e.XpG();e.Y8G("nzGutter",8),e.R7$(2),e.Y8G("ngIf",e.bMT(3,7,h.loading$)&&e.bMT(4,9,h.isFetchMore$)),e.R7$(3),e.Y8G("cvcShowTag",e.bMT(6,11,h.noMoreRows$)),e.R7$(3),e.Y8G("ngrxLet",h.queryError$),e.R7$(2),e.Y8G("cvcTableCountsConnection",h.connection$),e.R7$(5),e.Y8G("nzPopoverContent",a)("nzPopoverTrigger","click")}}let No=class F8{constructor(b,a,h){this.queryGQL=b,this.apollo=a,this.cdr=h,this.cvcSelectedIdsChange=new e.bkB,this.isScrolling=!1,this.colGuards=j1,this.onFetchMore$=new V.B,this.onPreferenceChange$=new dn.t([]),this.onResetFilter$=new V.B,this.onRowSelected$=new V.B,this.onScroll$=new dn.t("stop"),this.onSetSelectedRow$=new dn.t(new Set),this.queryError$=new V.B,this.queryRequest$=new V.B,this.queryResult$=new Ni.m(1),this.isFetchMore$=new dn.t(!1),this.noMoreRows$=new dn.t(!1),this.scrollToIndex$=new V.B,this.tableConfig=new Kc;const _=(0,po.z)(this.tableConfig.getFilterStreams()),ee=(0,po.z)(this.tableConfig.getSortStreams()).pipe((0,qt.p)(ft=>ft.filter(nn=>null!==nn.value).length<=1));this.refetch$=(0,po.z)([ee,_]).pipe((0,me.T)(([ft,nn])=>({query:"refetch",sort:ft,filter:nn}))),this.fetchMore$=this.onFetchMore$.pipe((0,me.T)(ft=>({query:"fetchMore",fetchMore:{...ft}}))),(0,ne.h)(this.refetch$,this.fetchMore$).pipe((0,xs.B)(50),(0,pn.s)(this)).subscribe(ft=>{const nn=this.getQueryVars(ft);this.queryRef?(this.queryError$.next({}),"refetch"===ft.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(nn).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:nn}).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(nn),this.queryRef.valueChanges.pipe((0,pn.s)(this)).subscribe(Rn=>{this.queryResult$.next(Rn),(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))}),this.loading$=this.queryResult$.pipe((0,$i.E)("loading"),(0,J.F)()),this.connection$=this.queryResult$.pipe((0,$i.E)("data","evidenceItems"),(0,qt.p)(fo.kP)),this.pageInfo$=this.connection$.pipe((0,$i.E)("pageInfo"),(0,qt.p)(fo.kP)),this.row$=(0,po.z)([this.connection$.pipe((0,$i.E)("edges"),(0,qt.p)(fo.kP),(0,me.T)(ft=>ft.map(nn=>nn.node))),this.onSetSelectedRow$]).pipe((0,me.T)(([ft,nn])=>ft.map(Rn=>{if(Rn)return{...Rn,evidenceItem:{__typename:"EvidenceItem",id:Rn.id,name:Rn.name,link:Rn.link,status:Rn.status},selected:nn.has(Rn.id)}}))),this.col$=new dn.t(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,me.T)(ft=>this.getColPrefsFromTableConfig(ft))),this.onPreferenceChange$.pipe((0,Yi.E)(this.col$),(0,me.T)(([ft,nn])=>this.getTableConfigFromColPrefs(ft,nn)),(0,pn.s)(this)).subscribe(ft=>{this.col$.next(ft)}),this.onSetTableFilter$=new dn.t([]),this.onSetTableFilter$.pipe((0,pn.s)(this)).subscribe(ft=>{const nn=this.col$.getValue();ft.forEach(Rn=>{const xi=nn.find(Co=>Co.key===Rn.key);if(void 0!==xi.filter.inputType){const Co=xi.filter.options[0];if(null===Rn.value)return xi.filter.options=[{...Co,value:null}],void xi.filter.changes.next(Rn);if(Array.isArray(Rn.value)&&0===Rn.value.length)return xi.filter.options=[{...Co,value:null}],void xi.filter.changes.next({...Rn,value:null});let Ho;Array.isArray(Rn.value)?Rn.value.length>0&&(Ho=Rn.value[0]):Ho=Rn.value;const Na=xi.filter.typename;if(!Na||!Ho)return void console.error(`evidence-manager requires column config '${xi.key}' provide a typename for cvcTablePrefs Input to set its filter`);const Bc=this.getEntityName(Na,Ho);if(!Bc)return;xi.filter.options=[{...Co,value:Bc}],xi.filter.changes.next({...Rn,value:Bc})}else Jr(xi)&&xi.filter.changes.next(Rn)})}),this.onSetTablePref$=new dn.t([]),this.onSetTablePref$.pipe((0,Yi.E)(this.setPreference$),(0,me.T)(([ft,nn])=>{const Rn=[];return ft.forEach(xi=>{let Co=nn.find(Ho=>Ho.value===xi.value);Co?Rn.push({...Co,...xi}):console.warn(`evidence-manager onSetTablePref$ received updated preferences for column '${xi.value}', but a column with that key could not be found.`)}),Rn}),(0,pn.s)(this)).subscribe(ft=>{this.onPreferenceChange$.next(ft)}),this.onRowSelected$.pipe((0,Yi.E)(this.onSetSelectedRow$),(0,pn.s)(this)).subscribe(([ft,nn])=>{ft.selected?nn.add(ft.id):nn.delete(ft.id),this.onSetSelectedRow$.next(nn),this.cvcSelectedIdsChange.next(Array.from(nn))}),this.onScroll$.pipe((0,me.T)(ft=>"stop"!==ft),(0,J.F)(),(0,pn.s)(this)).subscribe(ft=>{this.isScrolling=ft,this.cdr.markForCheck()}),this.onScroll$.pipe((0,qt.p)(ft=>"bottom"===ft),(0,Yi.E)(this.pageInfo$),(0,me.T)(([ft,nn])=>nn),(0,pn.s)(this)).subscribe(ft=>{ft.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,Yi.E)((0,Xo.of)(this.tableConfig.get())),(0,pn.s)(this)).subscribe(([b,a])=>{const h=[];a.forEach(_=>{if(Mc(_)&&_.sort.changes&&_.sort.changes.next({key:_.key,value:_.sort.default??null}),Jr(_)){const ee=_.filter.options.find(ft=>1==ft.byDefault)?.value;_.filter.changes&&_.filter.changes.next({key:_.key,value:ee||null})}h.push(_)}),this.col$.next(h)})}getQueryVars(b){const a=this.getQueryFilterParams(b);return{...this.getQuerySortParams(b),...a,...b.fetchMore}}getQuerySortParams(b){if(!b.sort)return;const h=b.sort.find(ee=>null!==ee.value);return h?{sortBy:{column:this.getSortColumnFromColKey(h.key),direction:"ascend"===h.value?wn.UEL.Asc:wn.UEL.Desc||void 0}}:void 0}getQueryFilterParams(b){let a={};return b.filter&&b.filter.forEach(h=>{a[fa[h.key]||h.key]=null===h.value||""===h.value?void 0:h.value}),a}getRequestErrors(b){return{query:b.errors,network:b.error}}getTableConfigFromColPrefs(b,a){return a.forEach(h=>{if(ma.find(ee=>ee===h.key))return;const _=b.find(ee=>ee.value===h.key);_&&(h.hidden=!_?.checked)}),[...a]}getColPrefsFromTableConfig(b){let a=[];return b.forEach(h=>{ma.find(_=>_===h.key)||a.push({label:h.tooltip||h.label,value:h.key,checked:!h.hidden})}),a}getSortColumnFromColKey(b){return Wc[b]}getEntityName(b,a){const h={id:`${b}:${a}`,fragment:Uu.J1` - fragment Linkable${b}Entity on ${b} { - id - name - link - }`},_=this.apollo.client.readFragment(h);if(_)return _.name;console.error(`evidence-manager onSetTableFilter$ could not find cached entity ${b}:${a} to populate input filter`)}trackByIndex(b,a){return a?.id}ngOnChanges(b){if(b.cvcTableSettings){const a=b.cvcTableSettings.currentValue;void 0!==a&&this.onSetTableFilter$.next(a.filters)}if(b.cvcSelectedIds){const a=b.cvcSelectedIds.currentValue,h=new Set;void 0!==a&&a.forEach(_=>h.add(_)),this.onSetSelectedRow$.next(h)}}static#e=this.\u0275fac=function(a){return new(a||F8)(e.rXU(wn.BaG),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:F8,selectors:[["cvc-evidence-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.OA$],decls:16,vars:27,consts:[["virtualTable",""],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],["enumTableFilter",""],["enumTagFilterTrigger",""],["enumFilterMenu","nzDropdownMenu"],["textTagFilterMenu","nzDropdownMenu"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],["emptyEnumTagCell",""],["emptyTextTagCell",""],["numericInput",""],["filterInput",""],["suffixIcon",""],["prefsPopover",""],["queryError",""],["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"cvcTableScrollerOnScroll","cvcTableScrollerOnFetch","nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading"],[4,"ngrxLet"],[1,"col-header-row"],[4,"ngFor","ngForOf"],[1,"filter-row"],[4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange",4,"ngIf"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle",4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight"],[3,"nzSortOrderChange","nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder"],["nz-tooltip","",1,"col-header-label",3,"nzTooltipTitle"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],[3,"cvcModelChange","cvcInputType","cvcPlaceholder","cvcModel"],["nzCustomFilter","",1,"attribute-filter",3,"nzSortOrderChange","nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn"],[3,"nzDropdownMenu","nzActive"],["nz-icon","","nzType","filter","nzTheme","fill"],[3,"cvcOptionChange","cvcColumnKey","cvcFilterOptions","cvcOption"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcModelChange","cvcPlaceholder","cvcModel"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzCheckedChange","nzChecked","nzAlign","nzLeft","nzRight"],[3,"nzAlign","nzLeft","nzRight"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"cvcTagTemplate","cvcTagListConfig"],[3,"cvcCollectionTagConfig","cvcTagTemplate","cvcShowFullLabels"],[3,"cvcTruncateLabel","cvcLinkableEntity","cvcEmphasize","cvcShowPopover","cvcStatus","cvcFullWidth"],[3,"cvcEmptyCategory"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip",4,"ngIf","ngIfElse"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["cvcDisplayMode","small",3,"cvcEmptyCategory"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"nzFilterChange","placeholder","ngModel"],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"],[3,"nzGutter"],["nzFlex","auto"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],[3,"cvcTableCountsConnection"],["nzFlex","35px"],["nz-button","","type","button","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-button","","nz-popover","","nzPopoverTitle","Visible Columns","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["nzColor","error",2,"margin-left","12px"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nz-tooltip","",2,"cursor","help",3,"nzTooltipTitle","nzTooltipTitleContext"],["nz-typography",""],[1,"prefs-popover"],[3,"ngModelChange","ngModel"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"nz-card",18)(1,"nz-table",19,0),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.bIt("cvcTableScrollerOnScroll",function(ft){return e.eBV(_),e.Njj(h.onScroll$.next(ft))})("cvcTableScrollerOnFetch",function(ft){return e.eBV(_),e.Njj(h.onFetchMore$.next(ft))}),e.DNE(8,hu,5,2,"thead",20)(9,fu,2,0,"tbody",20),e.k0s()(),e.DNE(10,mu,3,2,"ng-template",null,1,e.C5r)(12,gu,4,2,"ng-template",null,2,e.C5r)(14,nl,19,13,"ng-template",null,3,e.C5r)}if(2&a){const _=e.sdS(13),ee=e.sdS(15);e.Y8G("nzTitle",_)("nzExtra",ee),e.R7$(),e.Y8G("nzData",e.bMT(3,15,h.row$)||e.lJ4(25,So))("cvcTableScrollerQueryRef",h.queryRef)("cvcTableScrollerPageInfo",e.bMT(4,17,h.pageInfo$))("cvcTableScrollerToIndex",e.bMT(5,19,h.scrollToIndex$))("nzScroll",e.lJ4(26,er))("nzVirtualForTrackBy",h.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.bMT(6,21,h.loading$)&&!e.bMT(7,23,h.isFetchMore$)),e.R7$(7),e.Y8G("ngrxLet",h.col$),e.R7$(),e.Y8G("ngrxLet",h.col$)}},dependencies:[M.Sq,M.bT,M.T3,eo,Ps.o,lu,Xs,tn.b,Jc.M,ae,t.me,t.BC,t.vS,bi.Nj,Kn.aO,Kn.dn,di.c,ho.p,Yo.cK,ht.Ov,ns.wQ,L.Uq,L.e,Z.Dn,F.Sy,F.tg,F.vN,_e,et,gi.L_,to.CP,to.Cc,to.SO,to._4,to.GM,to.IL,to.aj,to.kt,to.CC,to.OL,to.Kg,to.jc,to.oZ,Gn.s,hn.LH,qe.Di,$e,Fi,ys,Or,za.pW,Hi,bi.L9],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:6px}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type cvc-entity-tag[_ngcontent-%COMP%]{margin-left:6px}.ant-table-filter-dropdown[_ngcontent-%COMP%]{padding:8px}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label{display:block}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label span{display:inline-block}"],changeDetection:0})};No=(0,vi.Cg)([(0,pn.d)()],No);const ni=["optionTemplates"],Pi=()=>[6,6],cr=(u,b)=>({show:u,hide:b});function As(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",10)(1,"cvc-evidence-manager",11),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.bIt("cvcSelectedIdsChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("cvcSelectedIds",e.bMT(2,2,a.onEid$))("cvcTableSettings",e.bMT(3,4,a.tableSettingsChange$))}}function Ir(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",13),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h)}}function $r(u,b){1&u&&(e.qex(0),e.DNE(1,Ir,1,3,"ng-template",null,1,e.C5r),e.bVm())}function Ja(u,b){if(1&u&&(e.qex(0),e.DNE(1,$r,3,0,"ng-container",12),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function ko(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",14)(1,"cvc-entity-tag",15),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","EvidenceItem:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const lr=qi(zi(),jo());let Rs=(()=>{class u extends lr{constructor(a,h,_,ee){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.apollo=ee,this.synchronizedFields$=[],this.synchronizedRequired$=[],this.defaultOptions={props:{label:"Evidence Items",placeholder:"Select Evidence Items",isMultiSelect:!0,description:"Select Evidence by ID, or use the manager to select with filtering",entityName:{singular:"Evidence Item",plural:"Evidence Items"},minSearchStrLength:1}},this.synchronizedFieldToColMap=new Map([["molecularProfileId","molecularProfile"],["diseaseId","disease"],["therapyIds","therapies"]]),this.requiredFieldToColMap=new Map([["disease","requiresDisease$"],["therapies","requiresTherapy$"]]),this.onEid$=new Ni.m,this.onShowMgrClick$=new V.B,this.showMgr$=this.onShowMgrClick$.pipe((0,Sa.S)((ft,nn)=>!ft,!1))}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),void 0!==this.formControl.value&&0!==this.formControl.value.length&&this.onEid$.next(this.formControl.value),this.onValueChange$.pipe((0,Yi.E)(this.onEid$),(0,pn.s)(this)).subscribe(([a,h])=>{Array.isArray(a)&&this.onEid$.next(a)})}configureStateConnections(){this.state&&(this.synchronizedFieldToColMap.forEach((a,h)=>{const _=this.state.fields[`${h}$`];_&&this.synchronizedFields$.push(_.pipe((0,me.T)(ee=>({key:h,value:ee??null}))))}),this.requiredFieldToColMap.forEach((a,h)=>{const _=this.state.requires[a];_&&this.synchronizedRequired$.push(_.pipe((0,me.T)(ee=>({key:h,required:ee}))))}),this.onFieldsChange$=(0,po.z)(this.synchronizedFields$).pipe((0,me.T)(a=>{const h=[];return a.forEach(_=>{const ee=this.synchronizedFieldToColMap.get(_.key);ee&&h.push({key:ee,value:_.value})}),h})),this.onRequiredChange$=(0,po.z)(this.synchronizedRequired$).pipe((0,me.T)(a=>{const h=[];return a.forEach(_=>{h.push({value:_.key,checked:_.required})}),h})),this.tableSettingsChange$=(0,po.z)([this.onFieldsChange$,this.onRequiredChange$]).pipe((0,me.T)(([a,h])=>({filters:a,preferences:h})),(0,xs.B)(100),(0,Ts.t)(1)))}getTypeaheadVarsFn(a,h){return{eid:+a.replace(/EID/i,"")}}getTypeaheadResultsFn(a){return a.data.evidenceItems.nodes}getTagQueryVarsFn(a){return{eid:a}}getTagQueryResultsFn(a){return a.data.evidenceItem}getSelectedItemOptionFn(a){return{value:a.id,label:`EID${a.id}`}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||`EID${_.id}`,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.ZLN),e.rXU(wn.sZm),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-evidence-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(ni,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:18,vars:36,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"nzGutter"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcSelectMode","cvcMinSearchStrLength","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIdsChange","cvcSelectedIds","cvcTableSettings"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"nz-row",2)(1,"nz-col",3)(2,"cvc-entity-select",4),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcSelectComponent",function(nn){return e.eBV(ee),e.Njj(_.selectComponent=nn)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()(),e.j41(7,"nz-col",5)(8,"button",6),e.bIt("click",function(){return e.eBV(ee),e.Njj(_.onShowMgrClick$.next())}),e.nrm(9,"span",7),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.EFF(12," Manager "),e.k0s()(),e.DNE(13,As,4,6,"nz-col",8),e.nI1(14,"ngrxPush"),e.k0s(),e.DNE(15,Ja,3,3,"ng-container",9)(16,ko,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(17);e.Y8G("nzGutter",e.lJ4(32,Pi)),e.R7$(2),e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",_.props.placeholder)("cvcResults",e.bMT(3,18,_.result$))("cvcOptions",e.bMT(4,20,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled)("cvcLoading",e.bMT(5,22,_.isLoading$))("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngClass",e.l_i(33,cr,e.bMT(10,26,_.showMgr$),!e.bMT(11,28,_.showMgr$)))("nzType","caret-right"),e.R7$(4),e.Y8G("ngIf",e.bMT(14,30,_.showMgr$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.YU,M.Sq,M.bT,Yt,tn.b,bi.Nj,Kn.aO,di.c,ho.p,L.Uq,L.e,Z.Dn,No,bi.L9],styles:[".manager-button[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s linear}.manager-button[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}"],changeDetection:0})}return u})();var Ri=c(7556);let Ia=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,Gn.T,hn.Qt,qe.kT,ge.i,Ft._]})}return u})(),Pl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Gn.T,qe.kT,gi.MC,Z.Y3,hn.Qt,ge.i,Ia]})}return u})();const Za={types:[{name:"evidence-select",wrappers:["form-field"],component:Rs},{name:"evidence-multi-select",wrappers:["form-field"],component:Rs,defaultOptions:{props:{label:"Evidence Items",isMultiSelect:!0}}}]};let Wo=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Kr,Ri.F,Pl,jn,Ia,Ft._,ws.y,ge.i,zc,g.qy.forChild(Za),t.YN,Kn.Zw,Yo.Ti,ht.IJ,ns.Cu,G.PQ,L.f3,Z.Y3,F.j,dt,gi.MC,to.$G,Gn.T,hn.Qt,qe.kT]})}return u})(),Qs=class A8{#e;constructor(b,a){this.query=b,this.errors=a,this.onFusionSelected=new e.bkB,this.#e=(0,e.WQX)(oi.J9),this.nzModalData=(0,e.WQX)(oi.or),this.layout="vertical",this.selectOrCreateFusionMutator=new Ar.E(a),this.form=new t.J3({}),this.model={fivePrimeGeneId:void 0,threePrimeGeneId:void 0,fivePrimePartnerStatus:wn.hBv.Known,threePrimePartnerStatus:wn.hBv.Known},this.options={};const h=[{label:"Known",value:wn.hBv.Known},{label:"Unknown",value:wn.hBv.Unknown},{label:"Multiple",value:wn.hBv.Multiple}];this.config=[{wrappers:["form-layout"],props:{showDevPanel:!1},validators:{partnerStatus:{message:"At least one of 5' or 3' partner status must be Known",expression:_=>{const ee=_.value;return!(!ee||ee.fivePrimePartnerStatus!=wn.hBv.Known&&ee.threePrimePartnerStatus!=wn.hBv.Known)},errorPath:"fivePrimePartnerStatus"},sameGene:{message:"5' and 3' Genes must be different",expression:_=>{const ee=_.value;return!(ee&&ee.fivePrimeGeneId&&ee.threePrimeGeneId&&ee.fivePrimeGeneId==ee.threePrimeGeneId)},errorPath:"fivePrimeGeneId"}},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:"New Fusion Feature"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"fivePrimePartnerStatus",type:"base-select",props:{label:"5' Partner Status",tooltip:"Select Known if the specific 5' Gene partner is known, Unknown if not. Select Multiple if there are multiple potential 5' Gene partners",required:!0,placeholder:"5' Partner Status",options:h,multiple:!1}},{key:"fivePrimeGeneId",type:"feature-select",props:{label:"5' Fusion Partner",placeholder:"Select Gene",tooltip:"Select the 5' Gene partner in the Fusion",canChangeFeatureType:!1,hideFeatureTypeSelect:!0,featureType:wn.Xiu.Gene},expressions:{"props.disabled":_=>_.model.fivePrimePartnerStatus!=wn.hBv.Known,"props.required":_=>_.model.fivePrimePartnerStatus==wn.hBv.Known}}]},{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"threePrimePartnerStatus",type:"base-select",props:{required:!0,placeholder:"3' Partner Status",label:"3' Partner Status",tooltip:"Select Known if the specific 3' Gene partner is known, Unknown if not. Select Multiple if there are multiple potential 3' Gene partners",options:h,multiple:!1}},{key:"threePrimeGeneId",type:"feature-select",props:{label:"3' Fusion Partner",placeholder:"Select Gene",tooltip:"Select the 3' Gene partner in the Fusion",canChangeFeatureType:!1,hideFeatureTypeSelect:!0,featureType:wn.Xiu.Gene},expressions:{"props.disabled":_=>_.model.threePrimePartnerStatus!=wn.hBv.Known,"props.required":_=>_.model.threePrimePartnerStatus==wn.hBv.Known}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Create Fusion",align:"right"}}]}]}]}]}modelChange(b){b&&(this.model.fivePrimePartnerStatus!=wn.hBv.Known&&(this.model={...this.model,fivePrimeGeneId:void 0}),this.model.threePrimePartnerStatus!=wn.hBv.Known&&(this.model={...this.model,threePrimeGeneId:void 0}))}submitFusion(b){this.mutationState=this.selectOrCreateFusionMutator.mutate(this.query,b,{},a=>{if(a.createFusionFeature?.feature.id){const h=a.createFusionFeature.feature.id;this.onFusionSelected.next(h),this.#e&&this.#e.destroy({featureId:h})}})}static#t=this.\u0275fac=function(a){return new(a||A8)(e.rXU(wn.Yd3),e.rXU(ia.N))};static#n=this.\u0275cmp=e.VBU({type:A8,selectors:[["cvc-fusion-select-form"]],outputs:{onFusionSelected:"onFusionSelected"},standalone:!0,features:[e.aNF],decls:2,vars:6,consts:[["nz-form","",3,"ngSubmit","nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(a,h){1&a&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return h.submitFusion(h.model)}),e.j41(1,"formly-form",1),e.bIt("modelChange",function(ee){return h.modelChange(ee)}),e.k0s()()),2&a&&(e.Y8G("nzLayout",h.layout)("formGroup",h.form),e.R7$(),e.Y8G("form",h.form)("fields",h.config)("model",h.model)("options",h.options))},dependencies:[M.MD,t.X1,t.qT,t.cb,t.j4,G.PQ,G.CA,Kn.Zw,Cn.$,oi.U6,r.iI,g.qy,g.aF],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})};Qs=(0,vi.Cg)([(0,pn.d)()],Qs);const qa=()=>[0,0];function Js(u,b){if(1&u&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.k0s(),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(2),e.JRh(a.message)}}function Ic(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG(2);e.JRh(a.successMessage)}}function u1(u,b){if(1&u){const a=e.RV6();e.qex(0),e.DNE(1,Js,3,1,"ng-container",2),e.j41(2,"cvc-form-submission-status-display",3),e.DNE(3,Ic,1,1,"ng-template",null,0,e.C5r),e.j41(5,"form",4),e.bIt("ngSubmit",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onSubmit$.next(_.model))}),e.j41(6,"nz-row",5)(7,"nz-col",6)(8,"formly-form",7),e.bIt("modelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.model=_)}),e.k0s()()()()(),e.bVm()}if(2&u){const a=e.sdS(4),h=e.XpG();e.R7$(),e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",a),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(9,qa)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}}let Ns=class R8{set cvcFeatureType(b){b&&this.featureType$.next(b)}set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,a){this.query=b,this.errors=a,this.cvcOnCreate=new e.bkB,this.showForm$=new dn.t(!1),this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.featureType$=new dn.t(void 0),this.formMessageDisplay$=new dn.t({message:"Feature does not exist, create it?"}),this.addFeatureMutator=new Ar.E(this.errors),this.minNameLength=3,this.fields=[{key:"featureType",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Add Feature"}}],this.featureType$.pipe((0,pn.s)(this)).subscribe(h=>{Object.values(wn.iby).includes(h)?(this.model.featureType=h,this.showForm$.next(!0)):this.showForm$.next(!1)}),this.searchString$.pipe((0,pn.s)(this)).subscribe(h=>{this.model.name=h,this.formMessageDisplay$.next(void 0===h||void 0!==h&&h.length{console.log("feature-quick-add form model submitted.",h),this.submitFeature(h)})}submitFeature(b){b.name&&b.featureType?this.mutationState=this.addFeatureMutator.mutate(this.query,{name:b.name,featureType:b.featureType,organizationId:b.organizationId},{},a=>{console.log("feature-quick-add submit data callback",a),a.createFeature&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{a&&a.createFeature&&this.cvcOnCreate.next({id:a.createFeature.feature.id,new:a.createFeature.new})},1e3))}):console.error("feature-quick-add form submitFeature requires model with valid name and featureType.")}ngOnChanges(b){if(b.cvcFeatureType){const a=b.cvcFeatureType.currentValue;this.featureType$.next(a),this.model={...this.model,featureType:a}}}static#e=this.\u0275fac=function(a){return new(a||R8)(e.rXU(wn.r$P),e.rXU(ia.N))};static#t=this.\u0275cmp=e.VBU({type:R8,selectors:[["cvc-feature-quick-add-form"]],inputs:{cvcFeatureType:"cvcFeatureType",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},standalone:!0,features:[e.OA$,e.aNF],decls:2,vars:3,consts:[["success",""],[4,"ngIf"],[4,"ngrxLet"],["entityType","Feature",3,"mutationState","successMessage"],[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"]],template:function(a,h){1&a&&(e.DNE(0,u1,9,10,"ng-container",1),e.nI1(1,"ngrxPush")),2&a&&e.Y8G("ngIf",e.bMT(1,1,h.showForm$))},dependencies:[M.MD,M.bT,t.X1,t.qT,t.cb,t.j4,Go.P,fs.G,bi.Nj,bi.L9,g.qy,g.aF,L.f3,L.Uq,L.e],encapsulation:2,changeDetection:0})};Ns=(0,vi.Cg)([(0,pn.d)()],Ns);const il=["optionTemplates"],ks=()=>[6,6];function Si(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",9)(1,"nz-select",10),e.mxI("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.DH7(ee.selectedFeatureType,_)||(ee.selectedFeatureType=_),e.Njj(_)}),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return ee.onFeatureType$.next(_),e.Njj(ee.formControl.setValue(void 0))}),e.nrm(2,"nz-option",11)(3,"nz-option",12)(4,"nz-option",13),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("disabled",!a.props.canChangeFeatureType),e.R50("ngModel",a.selectedFeatureType)}}function Fl(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",18),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",a.featureAliases.join(", "))("innerHtml",e.i5U(3,2,a.featureAliases.join(", "),h),e.npT)}}function wc(u,b){1&u&&e.EFF(0,"--")}function Zs(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",15),e.j41(1,"span",16),e.DNE(2,Fl,4,5,"ng-container",17)(3,wc,1,0,"ng-template",null,3,e.C5r),e.k0s()),2&u){const a=e.sdS(4),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(2),e.Y8G("ngIf",h.featureAliases.length>0)("ngIfElse",a)}}function ol(u,b){1&u&&(e.qex(0),e.DNE(1,Zs,5,5,"ng-template",null,2,e.C5r),e.bVm())}function ec(u,b){if(1&u&&(e.qex(0),e.DNE(1,ol,3,0,"ng-container",14),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function or(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",19)(1,"cvc-entity-tag",20),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Feature:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function rl(u,b){if(1&u&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&u){const a=e.XpG(2).$implicit;e.R7$(),e.SpI("",a," does not match any existing Fusions")}}function Er(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",26),e.bIt("click",function(){e.eBV(a);const _=e.XpG(3);return e.Njj(_.createFusionModal())}),e.EFF(1," Open Fusion Builder "),e.k0s()}}function Nr(u,b){1&u&&(e.j41(0,"nz-space",21),e.DNE(1,rl,2,1,"span",23)(2,Er,2,0,"button",24),e.k0s())}function Al(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-feature-quick-add-form",27),e.nI1(1,"ngrxPush"),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onSelectOrCreate(_))}),e.k0s()}if(2&u){const a=e.XpG().$implicit,h=e.XpG();e.Y8G("cvcSearchString",a)("cvcFeatureType",e.bMT(1,2,h.onFeatureType$))}}function wa(u,b){if(1&u&&e.DNE(0,Nr,3,0,"nz-space",21)(1,Al,2,4,"cvc-feature-quick-add-form",22),2&u){const a=e.XpG();e.vxM("FUSION"==a.selectedFeatureType?0:1)}}const sl=qi(zi(),jo());let Zr=class N8 extends sl{constructor(b,a,h,_){super(),this.taq=b,this.tq=a,this.changeDetectorRef=h,this.modal=_,this.defaultOptions={props:{label:"Feature",placeholder:"Search Features",isMultiSelect:!1,entityName:{singular:"Feature",plural:"Features"},description:"",featureType:wn.Xiu.Gene,canChangeFeatureType:!0,hideFeatureTypeSelect:!1}},this.selectedFeatureType=this.props.featureType,this.onFeatureType$=new dn.t(void 0),this.instanceTypes=wn.Xiu}ngAfterViewInit(){this.selectedFeatureType=this.props.featureType,this.props.featureTypeCallback&&(this.onFeatureType$.pipe((0,pn.s)(this)).subscribe(b=>this.props.featureTypeCallback(b)),this.onFeatureType$.next(this.selectedFeatureType)),this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent})}getTypeaheadVarsFn(b){return{queryTerm:b,featureType:this.selectedFeatureType}}getTypeaheadResultsFn(b){return b.data.featureTypeahead}getTagQueryVarsFn(b){return{featureId:b}}getTagQueryResultsFn(b){return b.data.feature}getSelectedItemOptionFn(b){return{value:b.id,label:b.name}}getSelectOptionsFn(b,a){return b.map((h,_)=>({label:a.get(_)||h.name,value:h.id}))}showAddBehavior(b,a){const h=b.toLowerCase();return b.length>=3&&!a.some(_=>_.name.toLowerCase()===h)}onSelectOrCreate(b){this.onPopulate$.next(b.id),this.props.isNewlyCreatedCallback&&this.props.isNewlyCreatedCallback(b.new)}onFusionSelected(b){this.onPopulate$.next(b),this.formControl.setValue(b)}createFusionModal(){const b=this.modal.create({nzTitle:"Add New Fusion Feature",nzContent:Qs,nzData:{},nzFooter:null});b.getContentComponent(),b.afterClose.pipe((0,pn.s)(this)).subscribe(a=>{a.featureId&&this.onFusionSelected(a.featureId)})}static#e=this.\u0275fac=function(a){return new(a||N8)(e.rXU(wn.kq4),e.rXU(wn.$TJ),e.rXU(e.gRc),e.rXU(oi.N_))};static#t=this.\u0275cmp=e.VBU({type:N8,selectors:[["cvc-feature-select"]],viewQuery:function(a,h){if(1&a&&e.GBs(il,5,e.C4Q),2&a){let _;e.mGM(_=e.lsd())&&(h.optionTemplates=_)}},features:[e.Vt3],decls:12,vars:22,consts:[["selectedTemplate",""],["addFeature",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","100px",4,"ngIf"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcPlaceholder","cvcEntityName","cvcAddEntity","cvcAddEntityBehavior","cvcResults","cvcOptions","cvcShowError","cvcLoading"],[4,"ngrxLet"],["nzFlex","100px"],[3,"ngModelChange","disabled","ngModel"],["nzValue","GENE","nzLabel","Gene"],["nzValue","FACTOR","nzLabel","Factor"],["nzValue","FUSION","nzLabel","Fusion"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],["nzDirection","vertical"],[3,"cvcSearchString","cvcFeatureType"],["nz-typography","",4,"nzSpaceItem"],["nz-button","","nzType","primary",3,"click",4,"nzSpaceItem"],["nz-typography",""],["nz-button","","nzType","primary",3,"click"],[3,"cvcOnCreate","cvcSearchString","cvcFeatureType"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"nz-row",4),e.DNE(1,Si,5,2,"nz-col",5),e.j41(2,"nz-col",6)(3,"cvc-entity-select",7),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(ft){return e.eBV(_),e.Njj(h.onSearch$.next(ft))})("cvcOnOpenChange",function(ft){return e.eBV(_),e.Njj(h.onOpenChange$?h.onOpenChange$.next(ft):null)})("cvcSelectComponent",function(ft){return e.eBV(_),e.Njj(h.selectComponent=ft)})("cvcOnModelChange",function(ft){return e.eBV(_),e.Njj(h.props.change&&h.props.change(h.field,ft))}),e.k0s()()(),e.DNE(7,ec,3,3,"ng-container",8)(8,or,2,3,"ng-template",null,0,e.C5r)(10,wa,2,1,"ng-template",null,1,e.C5r)}if(2&a){const _=e.sdS(9),ee=e.sdS(11);e.Y8G("nzGutter",e.lJ4(21,ks)),e.R7$(),e.Y8G("ngIf",!h.props.hideFeatureTypeSelect),e.R7$(2),e.Y8G("cvcSelectMode",h.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",_)("cvcFormControl",h.formControl)("cvcFormlyAttributes",h.field)("cvcPlaceholder",h.props.placeholder)("cvcEntityName",h.props.entityName)("cvcAddEntity",ee)("cvcAddEntityBehavior",h.showAddBehavior)("cvcResults",e.bMT(4,15,h.result$))("cvcOptions",e.bMT(5,17,h.selectOption$))("cvcShowError",h.showError)("cvcLoading",e.bMT(6,19,h.isLoading$)),e.R7$(4),e.Y8G("ngrxLet",h.onSearch$)}},dependencies:[M.Sq,M.bT,t.BC,t.vS,bi.Nj,Kn.aO,di.c,ho.p,Qe.ld,Qe.WI,hn.LH,L.Uq,L.e,qe.Di,rn.U5,rn.Dq,Yt,tn.b,Ns,bi.L9,Xr.M],changeDetection:0})};Zr=(0,vi.Cg)([(0,pn.d)()],Zr);const xc={types:[{name:"feature-select",wrappers:["form-field"],component:Zr},{name:"feature-multi-select",wrappers:["form-field"],component:Zr,defaultOptions:{props:{label:"Features",isMultiSelect:!0}}}]};let d1=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,t.YN,g.qy.forChild(xc),Cn.$,Kn.Zw,Qe.DH,Z.Y3,F.j,hn.Qt,G.PQ,rt.jl,qe.kT,Gn.T,rn.pc,oi.U6,En,jn,ge.i,Ft._,Ns,Qs]})}return u})();const h1=["optionTemplates"];function Rl(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function vu(u,b){1&u&&(e.qex(0),e.DNE(1,Rl,1,1,"ng-template",null,1,e.C5r),e.bVm())}function p1(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const al={COMBINATION:"Therapies specified were used as part of a combination therapy approach",SEQUENTIAL:"Therapies specified were used at separate timepoints in the same treatment plan",SUBSTITUTES:"Therapies specified are often considered to be of the same family, or behave similarly in a treatment setting"},K1=qi(zi(),mi()),X1={types:[{name:"interaction-select",wrappers:["form-field"],component:(()=>{class u extends K1{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Therapy Interaction",placeholder:"Select Therapy Interaction",requireMultipleTherapies:!0,requireMultipleTherapiesPromptFn:()=>"A single associated therapy does not have an Interaction type",tooltip:"Characterizes the interaction of a multi-therapy treatment"}},this.interactionEnum$=new dn.t([]),this.placeholder$=new dn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.interactionEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void this.placeholder$.next("ERROR: Form state not found");this.placeholder$.next(this.props.placeholder),this.state.enums.interaction$?(this.state.enums.interaction$.pipe((0,pn.s)(this)).subscribe(a=>{this.interactionEnum$.next(a)}),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,me.T)(a=>a.map(h=>h))),this.onTherapies$=this.state.fields.therapyIds$,this.optionTemplates||console.warn(`${this.field.id} could not find state's fields.therapyIds$ to handle its required & disabled states.`),this.onTherapies$.pipe((0,pn.s)(this)).subscribe(a=>{a&&0!=a.length?1==a.length?(this.props.description="A single associated therapy does not have an Interaction type",this.props.disabled=!0,this.props.required=!1,void 0!==this.formControl.value&&this.formControl.setValue(void 0)):(this.props.description="Select an Interaction Type",this.props.disabled=!1,this.props.required=!0):(this.props.disabled=!0,this.props.required=!1,this.props.description="Interaction type is not applicable when no therapies are selected.",void 0!==this.formControl.value&&this.formControl.setValue(void 0)),this.cdr.markForCheck()}),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.description=al[a],this.props.extraType="description"):(this.props.extraType="prompt",this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's interaction$ to populate select.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-interaction-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(h1,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,vu,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,p1,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.interactionEnum$))}},dependencies:[M.Sq,Mi,eo,bi.L9]})}return u})()}]};let Q1=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(X1),En,ai,Kr]})}return u})();var J1=c(8763);const Z1=["optionTemplates"];function q1(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.k0s()),2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a),e.R7$(),e.SpI(" - ",e.i5U(4,2,a,"evidenceLevelBrief")," ")}}function ed(u,b){1&u&&(e.qex(0),e.DNE(1,q1,5,5,"ng-template",null,1,e.C5r),e.bVm())}function td(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-tag",7),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.k0s()}if(2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a.nzValue),e.R7$(),e.SpI(" - ",e.i5U(4,2,a.nzValue,"evidenceLevelBrief")," ")}}function nd(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.bVm()),2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a.nzValue),e.R7$(),e.SpI(" - ",e.i5U(4,2,a.nzValue,"evidenceLevelBrief")," ")}}function id(u,b){if(1&u&&(e.j41(0,"div",4),e.DNE(1,td,5,5,"nz-tag",5)(2,nd,5,5,"ng-container",6),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!a.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",a.props.isMultiSelect)}}const od=new Map([[wn.iHU.A,"Evidence shows consensus association in human medicine"],[wn.iHU.B,"Evidence supports association using clinical trial or other primary patient data"],[wn.iHU.C,"Evidence supports association using individual case reports from clinical journals"],[wn.iHU.D,"Evidence supports association using in vivo or in vitro models"],[wn.iHU.E,"Evidential association is inferential or indirect"]]),_u=qi(zi(),mi()),rd={types:[{name:"level-select",wrappers:["form-field"],component:(()=>{class u extends _u{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Evidence Level",required:!1,isMultiSelect:!1,placeholder:"Select Evidence Level",extraType:"description"}},this.levelEnum$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.props.tooltip="Type of study performed to produce the evidence statement",this.levelEnum$.next((0,Ei.KF)(wn.iHU).map(a=>a)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,me.T)(a=>a.map(h=>h))),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.description=od.get(a),this.field.formControl.markAsTouched()):this.props.description=void 0}),this.configureEnumSelectField({optionEnum$:this.levelEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-level-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Z1,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,ed,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,id,3,2,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ee)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.levelEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,Mi,bi.L9,J1.k],changeDetection:0})}return u})()},{name:"level-multi-select",extends:"level-select",defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let sd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(rd),Gn.T,ge.i,En,ai]})}return u})();var ad=c(1448),Hr=c(2617),Nl=c(713);const yu=/\(/g,kl=/\)/g,Vl=/AND|OR/i,m1=/^(?NOT\s)?\s*#VID(?\d+)$/i,g1=/\s+/,Ll="EXPR";function Bl(u){return Cu(u.replace(yu," ( ").replace(kl," ) "))}function Cu(u){let a,b=u.split(g1),h=0,_=[],ee=[],ft=[];for(let $s of b)if("("==$s)0!=h&&_.push($s),h+=1;else if(")"==$s)if(h-=1,0==h){let ba=Cu(_.join(" "));if("errorMessage"in ba)return ba;ft.push(ba),ee.push(Ll),_=[]}else _.push($s);else h>0?_.push($s):ee.push($s);const nn={errorType:"trailingBoolean",errorMessage:"Expressions may not end with AND / OR boolean operators."},Rn={errorType:"initialBoolean",errorMessage:"Expressions may not start with AND / OR boolean operators."},xi={errorType:"multipleBoolean",errorMessage:"Multiple boolean operators found."},Co={errorType:"incompleteExpression",errorMessage:"Ensure that parenthetical clauses are closed."};let Ho=0;for(let $s of ee){let ba=Vl.test($s);if(ba&&0==Ho)return Rn;if(ba&&Ho===b.length-1)return nn;if(ba&&!a)a=Pc($s);else if(ba&&a&&Pc($s)!==a)return xi;Ho++}let Na=[],Bc=ee.join(" ").split(Vl);for(let $s of Bc.map(ba=>ba.trim())){let ba=m1.exec($s);if(null===ba){if(0===$s.length)return Co;if("NOT"===$s||"NOT"===$s.split(" ").pop())return{errorType:"incompleteNOT",errorMessage:"NOT operator must be followed by a valid #VID."};if($s!==Ll)return{errorType:"invalidToken",errorMessage:`Token '${$s}' does not match the expected format.`}}else Na.push({not:!!ba[1],variantId:parseInt(ba[2])})}return{booleanOperator:a,variantComponents:Na,complexComponents:ft}}function Pc(u){return"AND"==u.toUpperCase()?wn.l76.And:wn.l76.Or}var v1=c(9350);function Vs(u,b){const a="object"==typeof b;return new Promise((h,_)=>{let ft,ee=!1;u.subscribe({next:nn=>{ft=nn,ee=!0},error:_,complete:()=>{ee?h(ft):a?h(b.defaultValue):_(new v1.G)}})})}var $l=c(1305),Hl=c(9973),vo=c(1845);let cl=(()=>{class u{constructor(a){this.apollo=a,this.cvcOnSelect=new e.bkB,this.cvcOnVariantSelect=new e.bkB,this.modelChange$=new dn.t(void 0),this.finderState={formLayout:"horizontal",fields:{featureId$:new dn.t(void 0),variantId$:new dn.t(void 0),variantMolecularProfile$:new dn.t(void 0)}},this.form=new t.J3({}),this.model={featureId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["form-row"],props:{formRowOptions:{gutter:[8,0],span:12}},fieldGroup:[{key:"featureId",type:"feature-select",props:{placeholder:"Select MP Feature",hideLabel:!0,showExtra:!1,showErrorTip:!1,required:!0,featureTypeCallback:h=>{this.featureType=h}}},{key:"variantId",type:"variant-select",props:{placeholder:"Select MP Variant",hideLabel:!0,required:!0,showExtra:!1,showErrorTip:!1,requireFeature:!0}}]}]}modelChange(a){if(!a?.variantId)return;const h=this.getSelectedVariant(a.variantId);h&&(this.model={featureId:void 0,variantId:void 0},console.log(h),this.cvcOnSelect.next(h.singleVariantMolecularProfile),this.cvcOnVariantSelect.next(h))}getFragment(a,h){return{id:`${a}Variant:${h}`,fragment:is.J1` - fragment ${a}VariantSelectQuery on ${a}Variant { - id - name - link - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } - } - `}}getSelectedVariant(a){if(!a)return;const h=(new vo.f).transform(this.featureType);let _;const ee=this.getFragment(h,a);try{_=this.apollo.client.readFragment(ee)}catch(nn){console.error(nn)}if(_)return _;const ft=this.getFragment("",a);try{_=this.apollo.client.readFragment(ft)}catch(nn){console.error(nn)}if(_)return _;console.error("MpFinderForm could not resolve its Variant from the cache")}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-mp-finder"]],outputs:{cvcOnSelect:"cvcOnSelect",cvcOnVariantSelect:"cvcOnVariantSelect"},decls:2,vars:6,consts:[["nz-form","",3,"formGroup","nzLayout"],[3,"modelChange","form","fields","model","options"]],template:function(h,_){1&h&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(ft){return _.modelChange(ft)}),e.k0s()()),2&h&&(e.Y8G("formGroup",_.form)("nzLayout",_.finderState.formLayout),e.R7$(),e.Y8G("form",_.form)("fields",_.config)("model",_.model)("options",_.options))},dependencies:[t.qT,t.cb,t.j4,g.aF,G.CA],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return u})();function tc(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," The expression contains open parentheses. Please ensure that all parenthetical expressions are closed. "),e.k0s(),e.bVm())}function jr(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Complete the expression by appending a "),e.j41(3,"strong"),e.EFF(4,"#VID"),e.k0s(),e.EFF(5," token to the incomplete boolean expression. "),e.k0s(),e.bVm())}function eh(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," MP Expressions may not begin with an "),e.j41(3,"strong"),e.EFF(4,"AND"),e.k0s(),e.EFF(5," or "),e.j41(6,"strong"),e.EFF(7,"OR"),e.k0s(),e.EFF(8," boolean. Ensure the expression begins with a "),e.j41(9,"strong"),e.EFF(10,"#VID"),e.k0s(),e.EFF(11," or "),e.j41(12,"strong"),e.EFF(13,"NOT #VID"),e.k0s(),e.EFF(14," token. "),e.k0s(),e.bVm())}function jl(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Molecular Profile expressions use a simple domain-specific language to specify complex MPs using boolean expressions to combine variants. These expressions may contain: "),e.k0s(),e.j41(3,"ul")(4,"li"),e.EFF(5," Variant Tokens - "),e.j41(6,"strong"),e.EFF(7,"#VID"),e.k0s(),e.EFF(8," or "),e.j41(9,"strong"),e.EFF(10,"NOT #VID"),e.k0s(),e.EFF(11,'followed by a valid Variant ID, e.g. "#VID123" '),e.k0s(),e.j41(12,"li"),e.EFF(13,"Boolean Tokens - "),e.j41(14,"strong"),e.EFF(15,"AND"),e.k0s(),e.EFF(16,", "),e.j41(17,"strong"),e.EFF(18,"OR"),e.k0s()(),e.j41(19,"li"),e.EFF(20," Parentheses - "),e.j41(21,"strong"),e.EFF(22,"("),e.k0s(),e.EFF(23," or "),e.j41(24,"strong"),e.EFF(25,")"),e.k0s(),e.EFF(26,", for grouping tokens into nested expressions "),e.k0s()(),e.j41(27,"p")(28,"strong"),e.EFF(29,"Invalid Token"),e.k0s(),e.EFF(30," errors occur if the parser encounters any text or token that does not match those listed above. "),e.k0s(),e.bVm())}function Fc(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," A single expression may not include more than one "),e.j41(3,"strong"),e.EFF(4,"AND"),e.k0s(),e.EFF(5," or "),e.j41(6,"strong"),e.EFF(7,"OR"),e.k0s(),e.EFF(8," boolean operator. To construct complex expressions, use parentheses. "),e.k0s(),e.j41(9,"p"),e.EFF(10," For example, the expression "),e.j41(11,"strong"),e.EFF(12,"#VID12 AND #VID2220 OR #VID456"),e.k0s(),e.EFF(13," is invalid, but the expression "),e.j41(14,"strong"),e.EFF(15,"#VID12 AND (#VID2220 OR #VID456)"),e.k0s(),e.EFF(16," is valid. The parentheses create a nested expression independent of the outer expression. "),e.k0s(),e.bVm())}function bs(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Complete the expression by appending a "),e.j41(3,"strong"),e.EFF(4,"#VID"),e.k0s(),e.EFF(5," token to the incomplete boolean expression. "),e.k0s(),e.bVm())}function cd(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," The expression contains a Variant ID that cannot be matched to any Variant in the CIViC database. Please re-check the Variant ID, or create a new one by following these steps: "),e.k0s(),e.j41(3,"ol")(4,"li"),e.EFF(5,"click the 'Variant' button,"),e.k0s(),e.j41(6,"li"),e.EFF(7,"enter a Gene name, then select a Gene"),e.k0s(),e.j41(8,"li"),e.EFF(9,"enter the Variant name"),e.k0s(),e.j41(10,"li"),e.EFF(11," click the 'Create Variant' button that will appear if name does not match any CIViC Variants "),e.k0s()(),e.bVm())}function bu(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," An expression may not contain multiple instances of the same Variant. Either remove the variant or change the expression. For example, "),e.j41(3,"strong"),e.EFF(4,"(#VID123 AND #VID456) OR (#VID123 AND #VID789)"),e.k0s(),e.EFF(5,", which is invalid, is logically identical to the valid MP expression "),e.j41(6,"strong"),e.EFF(7,"#VID123 AND (#VID456 OR #VID789)"),e.k0s(),e.EFF(8,". "),e.k0s(),e.bVm())}function th(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," The Molecular Profile editor allows the selection or creation of complex Molecular Profiles by writing Molecular Profile Expressions. These expressions are composed with a simple language consisting of Variant tokens, boolean operators, and parentheses. For example: "),e.k0s(),e.j41(3,"blockquote")(4,"strong"),e.EFF(5,"#VID12 AND #VID2220"),e.k0s(),e.nrm(6,"br"),e.j41(7,"strong"),e.EFF(8,"#VID12 OR #VID2220"),e.k0s(),e.nrm(9,"br"),e.j41(10,"strong"),e.EFF(11,"#VID12 AND NOT #VID2220"),e.k0s(),e.nrm(12,"br"),e.j41(13,"strong"),e.EFF(14,"#VID12 AND #VID2220 AND (#VID456 OR #VID123)"),e.k0s(),e.nrm(15,"br"),e.j41(16,"strong"),e.EFF(17,"#VID12 OR #VID2220 OR (NOT #VID456 AND #VID123)"),e.k0s(),e.nrm(18,"br"),e.k0s(),e.j41(19,"p")(20,"strong"),e.EFF(21,"Variant Tokens"),e.k0s(),e.nrm(22,"br"),e.EFF(23," Variant tokens are composed of a CIViC Variant ID prepended with "),e.j41(24,"strong"),e.EFF(25,"#VID"),e.k0s(),e.EFF(26,", and refer to specific CIViC Variants. For example, "),e.j41(27,"strong"),e.EFF(28,"#VID12"),e.k0s(),e.EFF(29," refers to "),e.j41(30,"strong"),e.EFF(31,"BRAF V600E"),e.k0s(),e.EFF(32,"; "),e.j41(33,"strong"),e.EFF(34,"#VID2220"),e.k0s(),e.EFF(35," refers to "),e.j41(36,"strong"),e.EFF(37,"ALK FUSION"),e.k0s(),e.EFF(38,". If you don\u2019t know the CIViC ID of a Variant, you can search for Variants by name using the \u2018Variant\u2019 or \u2018NOT Variant\u2019 buttons below. These interfaces can also be used to add a Variant that\u2019s not yet in CIViC. "),e.k0s(),e.j41(39,"p")(40,"strong"),e.EFF(41,"Boolean Operators"),e.k0s(),e.nrm(42,"br"),e.EFF(43," MP Expressions with more than a single variant must include boolean operators - "),e.j41(44,"strong"),e.EFF(45,"AND"),e.k0s(),e.EFF(46,", "),e.j41(47,"strong"),e.EFF(48,"OR"),e.k0s(),e.EFF(49,", and "),e.j41(50,"strong"),e.EFF(51,"NOT"),e.k0s(),e.EFF(52," - indicating their relationship. For example, the expression "),e.j41(53,"strong"),e.EFF(54,"#VID12 AND #VID2220"),e.k0s(),e.EFF(55," describes a MP that includes both "),e.j41(56,"strong"),e.EFF(57,"BRAF V600E"),e.k0s(),e.EFF(58," and "),e.j41(59,"strong"),e.EFF(60,"ALK FUSION"),e.k0s(),e.EFF(61,". "),e.k0s(),e.j41(62,"p")(63,"strong"),e.EFF(64,"Parentheses"),e.k0s(),e.nrm(65,"br"),e.EFF(66," Expressions cannot have both "),e.j41(67,"strong"),e.EFF(68,"AND"),e.k0s(),e.EFF(69," and "),e.j41(70,"strong"),e.EFF(71,"OR"),e.k0s(),e.EFF(72," operators within the same expression. To construct complex MPs that require multiple operators, one must use parentheses to create embedded expressions. "),e.k0s(),e.j41(73,"p")(74,"strong"),e.EFF(75,"NOTE:"),e.k0s(),e.EFF(76," Be sure to read the help text provided along with every alert message by hovering over 'Syntax Assistance'. "),e.k0s(),e.bVm())}let Ls=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-mp-editor-popover-help"]],inputs:{cvcErrorType:"cvcErrorType"},decls:11,vars:9,consts:[[1,"help-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(h,_){1&h&&(e.j41(0,"div",0),e.qex(1,1),e.DNE(2,tc,3,0,"ng-container",2)(3,jr,6,0,"ng-container",2)(4,eh,15,0,"ng-container",2)(5,jl,31,0,"ng-container",2)(6,Fc,17,0,"ng-container",2)(7,bs,6,0,"ng-container",2)(8,cd,12,0,"ng-container",2)(9,bu,9,0,"ng-container",2)(10,th,77,0,"ng-container",3),e.bVm(),e.k0s()),2&h&&(e.R7$(),e.Y8G("ngSwitch",_.cvcErrorType),e.R7$(),e.Y8G("ngSwitchCase","incompleteExpression"),e.R7$(),e.Y8G("ngSwitchCase","incompleteNOT"),e.R7$(),e.Y8G("ngSwitchCase","initialBoolean"),e.R7$(),e.Y8G("ngSwitchCase","invalidToken"),e.R7$(),e.Y8G("ngSwitchCase","multipleBoolean"),e.R7$(),e.Y8G("ngSwitchCase","trailingBoolean"),e.R7$(),e.Y8G("ngSwitchCase","unknownVariant"),e.R7$(),e.Y8G("ngSwitchCase","identicalVariants"))},dependencies:[M.ux,M.e1,M.fG],styles:[".help-content[_ngcontent-%COMP%]{max-width:500px}blockquote[_ngcontent-%COMP%]{margin-left:1em}"]})}return u})();const _1=["expressionEditor"],Ul=()=>[6,8],y1=u=>({active:u}),Bs=(u,b)=>({$implicit:u,helpContent:b});function nc(u,b){1&u&&e.EFF(0,"Added new Molecular Profile")}function Gl(u,b){if(1&u&&e.nrm(0,"cvc-mp-tag-name",38),2&u){const a=e.XpG().ngrxLet;e.Y8G("nameSegments",a)}}function Yl(u,b){1&u&&(e.j41(0,"span",39),e.EFF(1," Valid Molecular Profile expressions will be previewed here. "),e.k0s())}function Eu(u,b){if(1&u&&(e.qex(0),e.DNE(1,Gl,1,1,"cvc-mp-tag-name",36)(2,Yl,2,0,"span",37),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(),e.Y8G("ngIf",a),e.R7$(),e.Y8G("ngIf",!a)}}function qs(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help")}function ji(u,b){if(1&u&&(e.j41(0,"button",41),e.nrm(1,"span",42),e.EFF(2," GETTING STARTED "),e.k0s(),e.DNE(3,qs,1,0,"ng-template",null,7,e.C5r)),2&u){const a=e.sdS(4);e.Y8G("nzPopoverContent",a)}}function Wl(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",40),e.DNE(2,ji,5,1,"ng-template",null,6,e.C5r),e.bVm()),2&u){const a=b.ngIf,h=e.sdS(3);e.R7$(),e.Y8G("nzMessage",a)("nzAction",h)}}function Kl(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(a);const _=e.XpG(3).ngrxLet,ee=e.XpG();return e.Njj(ee.cvcOnSelect.next(_))}),e.EFF(1," Select this MP "),e.k0s()}}function C1(u,b){if(1&u&&(e.EFF(0," Molecular Profile "),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3," found. ")),2&u){const a=e.XpG(3).ngrxLet;e.R7$(2),e.JRh(a.name)}}function ld(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",43),e.DNE(2,Kl,2,0,"ng-template",null,8,e.C5r)(4,C1,4,1,"ng-template",null,9,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.sdS(5);e.R7$(),e.Y8G("nzMessage",h)("nzAction",a)}}function b1(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(a);const _=e.XpG(4);return e.Njj(_.onCreateNewMp$.next())}),e.EFF(1," Create New MP "),e.k0s()}}function ud(u,b){1&u&&e.EFF(0," Molecular Profile not found, create it? ")}function dd(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",43),e.DNE(2,b1,2,0,"ng-template",null,10,e.C5r)(4,ud,1,0,"ng-template",null,11,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.sdS(5);e.R7$(),e.Y8G("nzMessage",h)("nzAction",a)}}function E1(u,b){if(1&u&&(e.qex(0),e.DNE(1,ld,6,2,"ng-container",25)(2,dd,6,2,"ng-container",25),e.bVm()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",void 0!==a),e.R7$(),e.Y8G("ngIf",void 0===a)}}function ic(u,b){if(1&u&&(e.qex(0),e.DNE(1,E1,3,2,"ng-container",25),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!e.bMT(2,1,a.expressionError$)&&!e.bMT(3,3,a.expressionMessage$))}}function hd(u,b){if(1&u&&(e.j41(0,"button",47),e.nrm(1,"span",42),e.EFF(2," SYNTAX ASSISTANCE "),e.k0s()),2&u){const a=e.XpG().helpContent;e.Y8G("nzPopoverContent",a)}}function pd(u,b){if(1&u&&(e.nrm(0,"nz-alert",46),e.DNE(1,hd,3,1,"ng-template",null,12,e.C5r)),2&u){const a=b.$implicit,h=e.sdS(2);e.Y8G("nzMessage",a.errorMessage)("nzAction",h)}}function fd(u,b){1&u&&e.eu8(0)}function md(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",52)}function gd(u,b){if(1&u&&(e.qex(0),e.DNE(1,fd,1,0,"ng-container",51)(2,md,1,0,"ng-template",null,13,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function Dn(u,b){1&u&&e.eu8(0)}function oo(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",53)}function T1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Dn,1,0,"ng-container",51)(2,oo,1,0,"ng-template",null,14,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function z1(u,b){1&u&&e.eu8(0)}function wo(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",54)}function ll(u,b){if(1&u&&(e.qex(0),e.DNE(1,z1,1,0,"ng-container",51)(2,wo,1,0,"ng-template",null,15,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function ri(u,b){1&u&&e.eu8(0)}function $o(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",55)}function oc(u,b){if(1&u&&(e.qex(0),e.DNE(1,ri,1,0,"ng-container",51)(2,$o,1,0,"ng-template",null,16,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function Ac(u,b){1&u&&e.eu8(0)}function ul(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",56)}function Tu(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ac,1,0,"ng-container",51)(2,ul,1,0,"ng-template",null,17,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function Xl(u,b){1&u&&e.eu8(0)}function ra(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",57)}function M1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Xl,1,0,"ng-container",51)(2,ra,1,0,"ng-template",null,18,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function zu(u,b){1&u&&e.eu8(0)}function qr(u,b){1&u&&(e.qex(0),e.nrm(1,"cvc-mp-editor-popover-help",58),e.bVm())}function sa(u,b){1&u&&(e.qex(0),e.nrm(1,"cvc-mp-editor-popover-help",59),e.bVm())}function Mu(u,b){if(1&u&&e.DNE(0,qr,2,0,"ng-container",25)(1,sa,2,0,"ng-container",25),2&u){const a=e.XpG(2).ngIf;e.Y8G("ngIf",a.errorMessage.split(" ").includes("multiple")),e.R7$(),e.Y8G("ngIf",a.errorMessage.split(" ").includes("found."))}}function ea(u,b){if(1&u&&(e.qex(0),e.DNE(1,zu,1,0,"ng-container",51)(2,Mu,2,2,"ng-template",null,19,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,Bs,h,a))}}function ta(u,b){if(1&u&&(e.qex(0),e.j41(1,"pre"),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.bVm()),2&u){const a=e.XpG().ngIf;e.R7$(2),e.SpI(" ",e.bMT(3,1,a),"\n ")}}function dl(u,b){if(1&u&&(e.qex(0)(1,48),e.DNE(2,gd,4,5,"ng-container",49)(3,T1,4,5,"ng-container",49)(4,ll,4,5,"ng-container",49)(5,oc,4,5,"ng-container",49)(6,Tu,4,5,"ng-container",49)(7,M1,4,5,"ng-container",49)(8,ea,4,5,"ng-container",49)(9,ta,4,3,"ng-container",50),e.bVm()()),2&u){const a=b.ngIf;e.R7$(),e.Y8G("ngSwitch",a.errorType),e.R7$(),e.Y8G("ngSwitchCase","invalidToken"),e.R7$(),e.Y8G("ngSwitchCase","trailingBoolean"),e.R7$(),e.Y8G("ngSwitchCase","initialBoolean"),e.R7$(),e.Y8G("ngSwitchCase","multipleBoolean"),e.R7$(),e.Y8G("ngSwitchCase","incompleteExpression"),e.R7$(),e.Y8G("ngSwitchCase","incompleteNOT"),e.R7$(),e.Y8G("ngSwitchCase","queryError")}}function S1(u,b){1&u&&(e.j41(0,"span",39),e.EFF(1," Append: "),e.k0s())}function Li(u,b){if(1&u&&(e.j41(0,"button",60)(1,"strong"),e.EFF(2,"Variant"),e.k0s()()),2&u){e.XpG();const a=e.sdS(37);e.Y8G("nzPopoverContent",a)}}function D1(u,b){if(1&u&&(e.j41(0,"button",61)(1,"strong"),e.EFF(2,"NOT Variant"),e.k0s()()),2&u){e.XpG();const a=e.sdS(39);e.Y8G("nzPopoverContent",a)}}function rc(u,b){1&u&&(e.j41(0,"span",62),e.EFF(1," | "),e.k0s())}function Ql(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onAppendInput$.next("AND"))}),e.j41(1,"strong"),e.EFF(2,"AND"),e.k0s()()}}function xa(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onAppendInput$.next("OR"))}),e.j41(1,"strong"),e.EFF(2,"OR"),e.k0s()()}}function Rc(u,b){1&u&&(e.j41(0,"span",62),e.EFF(1," | "),e.k0s())}function rs(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onAppendInput$.next("("))}),e.j41(1,"strong"),e.EFF(2,"("),e.k0s()()}}function O1(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onAppendInput$.next(")"))}),e.j41(1,"strong"),e.EFF(2,")"),e.k0s()()}}function Su(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",64)(1,"nz-row",21)(2,"nz-col",22)(3,"p",65),e.EFF(4," Select a Gene and Variant to append its #VID. "),e.k0s()(),e.j41(5,"nz-col",22)(6,"cvc-mp-finder",66),e.bIt("cvcOnVariantSelect",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onVariantSelect$.next({variant:_,prependNot:!1}))}),e.k0s()()()()}2&u&&(e.R7$(),e.Y8G("nzGutter",e.lJ4(1,Ul)))}function Jl(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",64)(1,"nz-row",21)(2,"nz-col",22)(3,"p",65),e.EFF(4," Select a Gene and Variant to append its #VID, prepended with NOT boolean. "),e.k0s()(),e.j41(5,"nz-col",22)(6,"cvc-mp-finder",66),e.bIt("cvcOnVariantSelect",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onVariantSelect$.next({variant:_,prependNot:!0}))}),e.k0s()()()()}2&u&&(e.R7$(),e.Y8G("nzGutter",e.lJ4(1,Ul)))}function hl(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e.nrm(3,"cvc-entity-tag",70),e.k0s(),e.j41(4,"nz-list-item-meta-description"),e.EFF(5),e.k0s()(),e.j41(6,"ul",71)(7,"nz-list-item-action")(8,"button",72),e.bIt("click",function(){const _=e.eBV(a).$implicit,ee=e.XpG(2);return e.Njj(ee.onSelectExample$.next(_))}),e.EFF(9," Select "),e.k0s()()()()}if(2&u){const a=b.$implicit;e.R7$(3),e.Y8G("cvcLinkableEntity",a.mp),e.R7$(2),e.SpI(" ",a.description," ")}}function Zo(u,b){if(1&u&&(e.j41(0,"div",67)(1,"nz-list",68),e.DNE(2,hl,10,2,"nz-list-item",69),e.k0s()()),2&u){const a=e.XpG();e.R7$(2),e.Y8G("ngForOf",a.exampleExpressions)}}let ur=class k8{constructor(b,a,h,_,ee){this.previewMpGql=b,this.createMolecularProfileGql=a,this.mpEditorPrepopulate=h,this.networkErrorService=_,this.viewerService=ee,this.cvcOnSelect=new e.bkB,this.expressionMessages={initial:"Use the editor below to construct a molecular profile."},this.exampleExpressions=[{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND EGFR L858R AND EGFR T790M"},expression:"#VID12 AND #VID33 AND #VID34",description:"BRAF V600E, EGFR L858R, and EGFR T790M must all be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND NOT EGFR L858R"},expression:"#VID12 AND NOT #VID33",description:"BRAF V600E must be observed and EGFR L858R must be absent."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E OR EGFR L858R OR EGFR T790M"},expression:"#VID12 OR #VID33 OR #VID34",description:"Either BRAF V600E, or EGFR L858R, or EGFR T790M must be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND (EGFR L858R OR EGFR T790M)"},expression:"#VID12 AND (#VID33 OR #VID34)",description:"BRAF V600E must be observed and either EGFR L858R or EGFR T790M must be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"NOT KIT D816V"},expression:"NOT #VID4353",description:"KIT D816V must be absent."}],this.createMolecularProfileMutator=new Ar.E(this.networkErrorService),this.onInputChange$=new dn.t(void 0),this.onAppendInput$=new V.B,this.onVariantSelect$=new V.B,this.onCreateNewMp$=new V.B,this.onSelectExample$=new V.B,this.inputValue$=new dn.t(""),this.expressionError$=new dn.t(void 0),this.expressionHelp$=new dn.t(void 0),this.expressionMessage$=new dn.t(this.expressionMessages.initial),this.expressionSegment$=new V.B,this.existingMp$=new V.B,this.viewer$=this.viewerService.viewer$,this.mostRecentOrg$=this.viewer$.pipe((0,$i.E)("mostRecentOrg"))}ngAfterViewInit(){this.mostRecentOrg$.pipe((0,pn.s)(this)).subscribe(b=>{this.mostRecentOrgId=b?.id}),this.onInputChange$.pipe((0,xs.B)(250),(0,On.M)(b=>{b||this.expressionSegment$.next(void 0)}),(0,qt.p)(fo.kP),(0,On.M)(b=>{0===b.length&&(this.expressionMessage$.next(this.expressionMessages.initial),this.expressionError$.next(void 0))}),(0,qt.p)(b=>b.length>0),(0,qt.p)(b=>" "!==b[b.length-1]),(0,me.T)(b=>{let a=Bl(b);return"errorMessage"in a?a:this.previewQueryRef.refetch({mpStructure:a})}),(0,pn.s)(this)).subscribe(b=>{if(this.isMpParseError(b)){const a=b;this.expressionMessage$.next(void 0),this.expressionError$.next(a),this.expressionSegment$.next(void 0)}else b.then(({data:h,errors:_})=>{if(_)this.expressionMessage$.next(void 0),this.expressionError$.next({errorType:"queryError",errorMessage:_.map(ee=>ee.message).join("\n")}),this.expressionSegment$.next(void 0);else{this.expressionSegment$.next(h.previewMolecularProfileName.segments),this.expressionMessage$.next(void 0),this.expressionError$.next(void 0);this.existingMp$.next(h.previewMolecularProfileName.existingMolecularProfile||void 0)}})}),this.onAppendInput$.pipe((0,pn.s)(this)).subscribe(b=>{if(this.expressionEditor){const a=this.expressionEditor.nativeElement,_=`${a.value}${/\s+$/.test(b)?b:" "+b}`;a.value=_,this.inputValue$.next(_),this.onInputChange$.next(_)}}),this.onSelectExample$.pipe((0,pn.s)(this)).subscribe(b=>{this.expressionEditor&&(this.expressionEditor.nativeElement.value=b.expression,this.inputValue$.next(b.expression),this.onInputChange$.next(b.expression))}),this.onVariantSelect$.pipe((0,Yi.E)(this.onInputChange$),(0,me.T)(([b,a])=>{const h=`${b.prependNot?"NOT ":""}#VID${b.variant.id}`;return a&&0!=a.trim().length?`${a.trim()} ${h}`:h}),(0,pn.s)(this)).subscribe(b=>{this.inputValue$.next(b),this.onInputChange$.next(b)}),this.previewQueryRef=this.previewMpGql.watch({}),this.previewMpName$=this.previewQueryRef.valueChanges.pipe((0,$i.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,me.T)(b=>b.segments),(0,pn.s)(this)),this.previewMpAlreadyExists$=this.previewQueryRef.valueChanges.pipe((0,$i.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,me.T)(b=>b.existingMolecularProfile),(0,pn.s)(this)),this.previewDeprecatedVariants$=this.previewQueryRef.valueChanges.pipe((0,$i.E)("data","previewMolecularProfileName"),(0,qt.p)(fo.kP),(0,me.T)(b=>b.deprecatedVariants),(0,pn.s)(this)),this.onCreateNewMp$.pipe((0,Yi.E)(this.onInputChange$),(0,pn.s)(this)).subscribe(([b,a])=>{if(!a||0===a.length)return;let h=Bl(a);"errorMessage"in h||(this.state=this.createMolecularProfileMutator.mutate(this.createMolecularProfileGql,{mpStructure:h,organizationId:this.mostRecentOrgId},{},_=>{setTimeout(()=>{_.createMolecularProfile&&this.cvcOnSelect.next(_.createMolecularProfile.molecularProfile)},1e3)}))})}isMpParseError(b){return void 0!==b.errorMessage}prepopulateMp(b){if(!b)return this.expressionSegment$.next(void 0),this.expressionMessage$.next(this.expressionMessages.initial),void this.inputValue$.next("");Vs(this.mpEditorPrepopulate.fetch({mpId:b},{fetchPolicy:"cache-first"})).then(({data:a})=>{if(!a?.molecularProfile?.id)return void console.error(`MpExpressionEditor could not fetch MolecularProfile:${b} to prepolate editor fields.`);const h=a.molecularProfile.rawName.replace(/#GID(\d+)/g,"").trim();this.inputValue$.next(h),this.onInputChange$.next(h)})}ngOnChanges(b){b.cvcPrepopulateWithId&&this.prepopulateMp(b.cvcPrepopulateWithId.currentValue)}static#e=this.\u0275fac=function(a){return new(a||k8)(e.rXU(wn.xKZ),e.rXU(wn.Avr),e.rXU(wn.uXu),e.rXU(ia.N),e.rXU($l.q))};static#t=this.\u0275cmp=e.VBU({type:k8,selectors:[["cvc-mp-expression-editor"]],viewQuery:function(a,h){if(1&a&&e.GBs(_1,5),2&a){let _;e.mGM(_=e.lsd())&&(h.expressionEditor=_.first)}},inputs:{cvcPrepopulateWithId:"cvcPrepopulateWithId"},outputs:{cvcOnSelect:"cvcOnSelect"},features:[e.OA$],decls:42,vars:23,consts:[["success",""],["errorAlert",""],["expressionEditor",""],["appendVariant",""],["appendNotVariant",""],["expressionExamples",""],["messageAction",""],["gettingStartedHelp",""],["selectAction",""],["foundMessage",""],["createAction",""],["createMessage",""],["errorAction",""],["invalidTokenHelp",""],["trailingBooleanHelp",""],["initialBooleanHelp",""],["multipleBooleanHelp",""],["incompleteExpressionHelp",""],["incompleteNOTHelp",""],["queryErrorHelp",""],["entityType","Molecular Profile",3,"mutationState","successMessage"],[3,"nzGutter"],["nzSpan","24"],[1,"expression-preview",3,"ngClass"],[4,"ngrxLet"],[4,"ngIf"],["nz-input","","rows","1","placeholder","Enter or edit a Molecular Expression here.",2,"width","100%",3,"ngModelChange","ngModel"],[1,"btn-row"],["nzFlex","80px"],["nzBlock","","nz-button","","nzType","primary","nzShape","round","nzSize","small","nz-popover","","nzPopoverTitle","Select a Profile to view its expression","nzPopoverTrigger","click","nzPopoverPlacement","bottomLeft",3,"nzPopoverContent"],["nzFlex","auto",2,"text-align","right"],["nz-typography","","nzType","secondary",4,"nzSpaceItem"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent",4,"nzSpaceItem"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant NOT #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent",4,"nzSpaceItem"],["class","btn-divider",4,"nzSpaceItem"],["type","button","nz-button","","nzType","primary","nzSize","small","nzShape","round",3,"click",4,"nzSpaceItem"],[3,"nameSegments",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"nameSegments"],["nz-typography","","nzType","secondary"],["nzType","info","nzShowIcon","",3,"nzMessage","nzAction"],["type","button","nz-button","","nzType","dashed","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-icon","","nzType","question-circle","nzTheme","fill"],["nzType","success","nzShowIcon","",3,"nzMessage","nzAction"],["type","button","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"click"],["type","button","nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],["nzType","error","nzShowIcon","",3,"nzMessage","nzAction"],["nz-button","","nzDanger","","nzType","text","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cvcErrorType","invalidToken"],["cvcErrorType","trailingBoolean"],["cvcErrorType","initialBoolean"],["cvcErrorType","multipleBoolean"],["cvcErrorType","incompleteExpression"],["cvcErrorType","incompleteNOT"],["cvcErrorType","identicalVariants"],["cvcErrorType","unknownVariant"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant NOT #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent"],[1,"btn-divider"],["type","button","nz-button","","nzType","primary","nzSize","small","nzShape","round",3,"click"],[1,"append-popover-contents"],["nz-typography","","nzType","secondary",2,"margin","0","padding-bottom","2px"],[3,"cvcOnVariantSelect"],[2,"min-width","525px","margin","-8px -12px"],["nzSize","small","nzItemLayout","horizontal"],[4,"ngFor","ngForOf"],[3,"cvcLinkableEntity"],["nz-list-item-actions",""],["type","button","nz-button","","nzType","primary","nzSize","small",3,"click"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"cvc-form-submission-status-display",20),e.DNE(1,nc,1,0,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",21)(4,"nz-col",22)(5,"div",23),e.nI1(6,"ngrxPush"),e.DNE(7,Eu,3,2,"ng-container",24),e.nI1(8,"ngrxPush"),e.k0s()(),e.j41(9,"nz-col",22),e.DNE(10,Wl,4,2,"ng-container",25),e.nI1(11,"ngrxPush"),e.DNE(12,ic,4,5,"ng-container",24)(13,pd,3,2,"ng-template",null,1,e.C5r)(15,dl,10,8,"ng-container",25),e.nI1(16,"ngrxPush"),e.k0s(),e.j41(17,"nz-col",22)(18,"textarea",26,2),e.nI1(20,"ngrxPush"),e.bIt("ngModelChange",function(ft){return e.eBV(_),e.Njj(h.onInputChange$.next(ft))}),e.k0s()()(),e.j41(21,"nz-row",27)(22,"nz-col",28)(23,"button",29),e.EFF(24," Examples "),e.k0s()(),e.j41(25,"nz-col",30)(26,"nz-space"),e.DNE(27,S1,2,0,"span",31)(28,Li,3,1,"button",32)(29,D1,3,1,"button",33)(30,rc,2,0,"span",34)(31,Ql,3,0,"button",35)(32,xa,3,0,"button",35)(33,Rc,2,0,"span",34)(34,rs,3,0,"button",35)(35,O1,3,0,"button",35),e.k0s()(),e.DNE(36,Su,7,2,"ng-template",null,3,e.C5r)(38,Jl,7,2,"ng-template",null,4,e.C5r)(40,Zo,3,1,"ng-template",null,5,e.C5r),e.k0s()()}if(2&a){const _=e.sdS(2),ee=e.sdS(41);e.Y8G("mutationState",h.state)("successMessage",_),e.R7$(3),e.Y8G("nzGutter",e.lJ4(20,Ul)),e.R7$(2),e.Y8G("ngClass",e.eq3(21,y1,void 0!==e.bMT(6,10,h.expressionSegment$))),e.R7$(2),e.Y8G("ngrxLet",e.bMT(8,12,h.expressionSegment$)),e.R7$(3),e.Y8G("ngIf",e.bMT(11,14,h.expressionMessage$)),e.R7$(2),e.Y8G("ngrxLet",h.existingMp$),e.R7$(3),e.Y8G("ngIf",e.bMT(16,16,h.expressionError$)),e.R7$(3),e.Y8G("ngModel",e.bMT(20,18,h.inputValue$)),e.R7$(5),e.Y8G("nzPopoverContent",ee)}},dependencies:[M.YU,M.Sq,M.bT,M.T3,M.ux,M.e1,M.fG,t.me,t.BC,t.vS,bi.Nj,Cn.Y,Kn.aO,di.c,ho.p,Z.Dn,F.Sy,L.Uq,L.e,rn.U5,rn.Dq,qe.Di,gi.L_,Hr.eE,Hr.lQ,Hr.qx,Hr.mf,Hr.YU,Hr.MV,Hr.Tc,fs.G,Hl.G,tn.b,cl,Ls,M.TG,bi.L9],styles:["[_nghost-%COMP%]{display:block;background-color:#f6f6f6;border:1px solid #dedede;border-radius:4px;padding:8px}.expression-preview[_ngcontent-%COMP%]{width:100%;padding:8px;border:1px solid #dedede;border-radius:4px}.expression-preview.active[_ngcontent-%COMP%]{background-color:#fff}.append-popover-contents[_ngcontent-%COMP%]{min-width:450px}.help-content[_ngcontent-%COMP%]{max-width:500px}.btn-row[_ngcontent-%COMP%]{margin-top:10px;flex-wrap:nowrap}.btn-row[_ngcontent-%COMP%] .btn-divider[_ngcontent-%COMP%]{color:#aaa}"],changeDetection:0})};ur=(0,vi.Cg)([(0,pn.d)()],ur);const sc=["optionTemplates"],I1=()=>[8,12],wr=(u,b)=>({show:u,hide:b});function ac(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-mp-finder",13),e.bIt("cvcOnSelect",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onMpSelect$.next(_))}),e.k0s()}}function Vo(u,b){1&u&&(e.j41(0,"div",14),e.EFF(1," \xa0 "),e.j41(2,"span",15)(3,"i"),e.EFF(4,"Select or create a Molecular Profile with the expression editor "),e.k0s()()())}function w1(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",16)(1,"div",17)(2,"cvc-entity-select",18),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onSearch$.next(_))})("cvcOnModelChange",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.props.change&&ee.props.change(ee.field,_))}),e.k0s()()()}if(2&u){const a=e.XpG(2),h=e.sdS(13);e.R7$(2),e.Y8G("cvcSelectMode",a.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",h)("cvcFormControl",a.formControl)("cvcFormlyAttributes",a.field)("cvcEntityName",a.props.entityName)("cvcPlaceholder",a.props.placeholder)("cvcResults",e.bMT(3,15,a.result$))("cvcDisabled",a.props.disabled)("cvcAllowClear",!1)("cvcOptions",e.bMT(4,17,a.selectOption$))("cvcShowError",a.showError)("cvcLoading",e.bMT(5,19,a.isLoading$))("cvcBorderless",!0)("cvcSuffixIcon",null)("cvcShowArrow",!1)}}function x1(u,b){if(1&u&&(e.qex(0),e.DNE(1,ac,1,0,"cvc-mp-finder",10)(2,Vo,5,0,"div",11)(3,w1,6,21,"div",12),e.bVm()),2&u){const a=b.ngrxLet,h=e.XpG();e.R7$(),e.Y8G("ngIf",a.showFinder&&!h.editorOpen),e.R7$(),e.Y8G("ngIf",h.editorOpen),e.R7$(),e.Y8G("ngIf",a.showSelect&&!h.editorOpen)}}function Pa(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",19)(1,"cvc-mp-expression-editor",20),e.nI1(2,"ngrxPush"),e.bIt("cvcOnSelect",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onMpSelect$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("cvcPrepopulateWithId",e.bMT(2,1,a.onMpId$))}}function Du(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",25),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,a.molecularProfileAliases.join(", "),h),e.npT)}}function cc(u,b){1&u&&e.EFF(0,"--")}function P1(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",22),e.j41(1,"span",23),e.EFF(2," Aliases: "),e.DNE(3,Du,4,4,"ng-container",24)(4,cc,1,0,"ng-template",null,2,e.C5r),e.k0s()),2&u){const a=e.sdS(5),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(3),e.Y8G("ngIf",h.molecularProfileAliases.length>0)("ngIfElse",a)}}function Nc(u,b){1&u&&(e.qex(0),e.DNE(1,P1,6,5,"ng-template",null,1,e.C5r),e.bVm())}function Es(u,b){if(1&u&&(e.qex(0),e.DNE(1,Nc,3,0,"ng-container",21),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Ou(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",26)(1,"cvc-entity-tag",27),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","MolecularProfile:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const pl=qi(zi(),jo());let va=(()=>{class u extends pl{constructor(a,h,_,ee){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.apollo=ee,this.editorOpen=!1,this.defaultOptions={props:{label:"Molecular Profile",placeholder:"Search Molecular Profiles",tooltip:"A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated assertion.",isMultiSelect:!1,description:"Select a Feature and Variant to specify a simple Molecular Profile.",entityName:{singular:"Molecular Profile",plural:"Molecular Profiles"},minSearchStrLength:1}},this.onMpSelect$=new dn.t(void 0),this.onMpId$=new Ni.m,this.onShowExpClick$=new V.B,this.showExp$=this.onShowExpClick$.pipe((0,Sa.S)((ft,nn)=>!ft,!1),(0,On.M)(ft=>this.editorOpen=ft)),this.selectDisplay$=new dn.t({showFinder:!0,showSelect:!1})}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.initialDescription=this.props.description,this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{const h=void 0!==a;this.selectDisplay$.next({showFinder:!h,showSelect:h}),this.onMpId$.next(a),this.props.description=a?void 0:this.initialDescription}),this.onMpSelect$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.selectOption$.next([{label:a.name,value:a.id}]),this.editorOpen&&this.onShowExpClick$.next(),this.cdr.detectChanges(),this.field.formControl.setValue(a.id),this.field.formControl.markAsTouched()):this.selectDisplay$.next({showFinder:!0,showSelect:!1})})}configureStateConnections(){}getTypeaheadVarsFn(a,h){return{name:a,geneId:h}}getTypeaheadResultsFn(a){return a.data.molecularProfiles.nodes}getTagQueryVarsFn(a){return{molecularProfileId:a}}getTagQueryResultsFn(a){return a.data.molecularProfile}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.nRJ),e.rXU(wn.OLK),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["ng-component"]],viewQuery:function(h,_){if(1&h&&e.GBs(sc,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:14,vars:16,consts:[["selectedTemplate",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","auto"],[4,"ngrxLet"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","","nz-tooltip","","nzTooltipTitle","Add/Edit Complex MP Expression",1,"expression-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24","class","editor-drawer",4,"ngIf"],[3,"cvcOnSelect",4,"ngIf"],["class","editor-message",4,"ngIf"],["class","select-container",4,"ngIf"],[3,"cvcOnSelect"],[1,"editor-message"],["nz-typography","","nzEllipsis","","nzType","secondary"],[1,"select-container"],[1,"limit-select-width"],[3,"cvcOnSearch","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcAllowClear","cvcOptions","cvcShowError","cvcLoading","cvcBorderless","cvcSuffixIcon","cvcShowArrow"],["nzSpan","24",1,"editor-drawer"],[3,"cvcOnSelect","cvcPrepopulateWithId"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"nz-row",3)(1,"nz-col",4),e.DNE(2,x1,4,3,"ng-container",5),e.k0s(),e.j41(3,"nz-col",6)(4,"button",7),e.bIt("click",function(){return e.eBV(ee),e.Njj(_.onShowExpClick$.next())}),e.nrm(5,"span",8),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.EFF(8,"Editor "),e.k0s()(),e.DNE(9,Pa,3,3,"nz-col",9),e.nI1(10,"ngrxPush"),e.k0s(),e.DNE(11,Es,3,3,"ng-container",5)(12,Ou,2,3,"ng-template",null,0,e.C5r)}2&h&&(e.Y8G("nzGutter",e.lJ4(12,I1)),e.R7$(2),e.Y8G("ngrxLet",_.selectDisplay$),e.R7$(3),e.Y8G("ngClass",e.l_i(13,wr,e.bMT(6,6,_.showExp$),!e.bMT(7,8,_.showExp$)))("nzType","caret-right"),e.R7$(4),e.Y8G("ngIf",e.bMT(10,10,_.showExp$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$))},dependencies:[M.YU,M.Sq,M.bT,bi.Nj,Kn.aO,di.c,ho.p,Z.Dn,L.Uq,L.e,qe.Di,hn.LH,Yt,tn.b,ur,cl,bi.L9,Xr.M],styles:["form[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%], .expression-button[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s linear}form[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%], .expression-button[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}.editor-message[_ngcontent-%COMP%]{padding:3px;background-color:#f5f5f5;cursor:default;border-radius:2px}.select-container[_ngcontent-%COMP%]{padding:0;background-color:#fff;cursor:default;border-radius:2px;border:1px solid #d9d9d9}.select-container[_ngcontent-%COMP%] .limit-select-width[_ngcontent-%COMP%]{display:inline-block;margin-top:-1px;margin-bottom:-1px}"],data:{animation:[Nl.U1,Nl.LD]},changeDetection:0})}return u})();const m={types:[{name:"molecular-profile-select",wrappers:["form-field"],component:va},{name:"molecular-profile-multi-select",wrappers:["form-field"],component:va,defaultOptions:{props:{label:"Molecular Profiles",isMultiSelect:!0}}}]};let ss=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,g.qy.forChild(m),Cn.$,Kn.Zw,Qe.DH,oi.U6,Z.Y3,F.j,L.f3,rn.pc,G.PQ,rt.jl,qe.kT,hn.Qt,gi.MC,rn.pc,ht.IJ,Hr.rD,Go.P,ad.B,En,jn,ge.i,Ft._]})}return u})();const we=["optionTemplates"];function ut(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s()),2&u){const a=e.XpG().$implicit;e.R7$(),e.JRh(a.name)}}function Vh(u,b){1&u&&(e.qex(0),e.DNE(1,ut,2,1,"ng-template",null,1,e.C5r),e.bVm())}function Zl(u,b){if(1&u&&(e.qex(0),e.DNE(1,Vh,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function lc(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",6)(1,"cvc-entity-tag",7),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcCacheId","NccnGuideline:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")("cvcShowIcon",!1)}}const Lh=qi(zi(),jo());let Iu=(()=>{class u extends Lh{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"NCCN Guideline",plural:"NCCN Guidelines"},isMultiSelect:!1,requireType:!1,tooltip:"If applicable, please provide cancer (e.g., Breast Cancer) for the appropriate NCCN guideline.",placeholder:"Search NCCN Guidelines"}},this.placeholder$=new dn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent})}getTypeaheadVarsFn(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.nccnGuidelinesTypeahead}getTagQueryResultsFn(a){return a.data.nccnGuideline}getTagQueryVarsFn(a){return{id:a}}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.qKP),e.rXU(wn.ZVN),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-nccn-guideline-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(we,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:8,vars:20,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcCacheId","cvcContext","cvcMode","cvcShowIcon"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(5,Zl,3,3,"ng-container",3)(6,lc,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(7);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",!1)("cvcLoading",e.bMT(4,18,_.isLoading$)),e.R7$(5),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,bi.Nj,hn.LH,Gn.s,Yt,tn.b,bi.L9],changeDetection:0})}return u})();const vd={types:[{name:"nccn-guideline-select",wrappers:["form-field"],component:Iu,defaultOptions:{props:{label:"NCCN Guideline"}}},{name:"nccn-guideline-multi-select",wrappers:["form-field"],component:Iu,defaultOptions:{props:{isMultiSelect:!0,label:"NCCN Guideline(s)"}}}]};let Bh=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(vd),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._,Ti]})}return u})();const $h=qi(zi()),Z2={types:[{name:"nccn-guideline-version-input",component:(()=>{class u extends $h{constructor(a){super(),this.cdr=a,this.defaultDescription="Please enter the version of the NCCN guideline you're referencing in the format Version.Year",this.defaultOptions={validators:{nccnVersionNumber:{expression:h=>{if(h.value){if(/^\d{1,2}\.\d{4}$/.test(h.value)){let _=+h.value.split(".")[1];return _>=2e3&&_<=(new Date).getFullYear()+1}return!1}return!0},message:(h,_)=>`"${_.formControl?.value}" does not fit the format Version.Year`}},props:{label:"NCCN Guideline Version",extraType:"description",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.state?.fields.nccnGuidelineId$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.disabled=!1,this.props.required=!0,this.props.extraType="description",this.props.description=this.defaultDescription):(this.props.disabled=!0,this.props.required=!1,this.props.extraType="prompt",this.props.description="NCCN Guideline Version is only required when NCCN Guideline is specified.",this.formControl.setValue(void 0))})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-nccn-guideline-version-input"]],features:[e.Vt3],decls:1,vars:2,consts:[["nz-input","","placeholder","ex: 1.2023",3,"formControl","formlyAttributes"]],template:function(h,_){1&h&&e.nrm(0,"input",0),2&h&&e.Y8G("formControl",_.formControl)("formlyAttributes",_.field)},dependencies:[t.me,t.BC,t.l_,g.ch,F.Sy],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]}]};let _d=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Z2),F.j,En]})}return u})();var aa=c(9438);let fl=class V8{constructor(b){this.el=b,this.domChange=new e.bkB,this.changes=new MutationObserver(a=>{(0,Ki.H)(a).pipe((0,me.T)(h=>{const _=h.target;return"class"===h.attributeName?{type:"class",change:_.classList.value,key:`${h.attributeName}:${_.classList.value}`}:"disabled"===h.attributeName?{type:"disabled",change:_.disabled,key:`${h.attributeName}:${_.disabled}`}:"hidden"===h.attributeName?{type:"hidden",change:_.hidden,key:`${h.attributeName}:${_.hidden}`}:{type:h.attributeName,change:"unknown change type",key:`${h.attributeName}:unknown-change-type`}}),$("key"),(0,pn.s)(this)).subscribe(h=>{this.domChange.emit(h)})}),this.changes.observe(this.el.nativeElement,{attributeFilter:["class","disabled","hidden"],attributes:!0,childList:!1,subtree:!1})}ngAfterViewInit(){this.initialClass=this.el.nativeElement.classList.value}ngOnDestroy(){this.changes.disconnect()}static#e=this.\u0275fac=function(a){return new(a||V8)(e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:V8,selectors:[["button","cvcOrgSubmitButton",""]],outputs:{domChange:"domChange"}})};fl=(0,vi.Cg)([(0,pn.d)()],fl);const kc=(u,b,a)=>({"btn-right":u,"btn-left":b,"btn-center":a});function nh(u,b){if(1&u&&(e.j41(0,"button",3),e.EFF(1),e.k0s()),2&u){const a=b.ngrxLet,h=e.XpG();e.Y8G("disabled",!h.form.valid)("nzTooltipTrigger",a?"hover":null)("nzTooltipTitle","For "+(null==a?null:a.name)),e.R7$(),e.SpI(" ",h.props.submitLabel," ")}}let Vc=class L8 extends g.PU{constructor(b,a,h){super(),this.viewerService=b,this.cdr=a,this.apollo=h,this.menuSelection$=new V.B,this.baseButtonClass="org-dropdown-btn",this.defaultOptions={props:{submitLabel:"Submit"}},this.viewer$=this.viewerService.viewer$,this.organizations$=this.viewer$.pipe((0,$i.E)("organizations")),this.mostRecentOrg$=this.viewer$.pipe((0,$i.E)("mostRecentOrg")),this.isDisabled$=new V.B,this.isHidden$=new V.B,this.buttonClass$=new dn.t(this.baseButtonClass),this.subscriptions=[]}ngOnInit(){this.menuSelection$.pipe((0,Yi.E)(this.viewer$)).subscribe(([_,ee])=>{const ft={id:`User:${ee.id}`,fragment:is.J1` - fragment UserMostRecentOrgId on User { - mostRecentOrganizationId - } - `,data:{mostRecentOrganizationId:_}};this.apollo.client.writeFragment(ft)}),this.formUpdate$=new dn.t(this.form.status);const b=this.form.statusChanges.subscribe(_=>this.formUpdate$.next(_)),a=this.formUpdate$.subscribe(_=>this.cdr.detectChanges()),h=this.mostRecentOrg$.pipe((0,$i.E)("id"),(0,qt.p)(fo.kP)).subscribe(_=>{this.formControl.setValue(_)});this.subscriptions=this.subscriptions.concat([b,a,h])}ngAfterViewInit(){if(this.button&&this.button.domChange){const b=this.button.domChange.subscribe(a=>{"class"===a.type&&"string"==typeof a.change?this.buttonClass$.next(`${this.baseButtonClass} ${a.change}`):"disabled"===a.type&&"boolean"==typeof a.change?this.isDisabled$.next(a.change):"hidden"===a.type&&"boolean"==typeof a.change&&this.isHidden$.next(a.change)});this.subscriptions.push(b)}}static#e=this.\u0275fac=function(a){return new(a||L8)(e.rXU($l.q),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:L8,selectors:[["cvc-org-submit-button"]],viewQuery:function(a,h){if(1&a&&e.GBs(fl,5),2&a){let _;e.mGM(_=e.lsd())&&(h.button=_.first)}},features:[e.Vt3],decls:3,vars:8,consts:[["type","hidden",3,"formControl","formlyAttributes"],[1,"btn-aligner",3,"ngClass"],["cvcOrgSubmitButton","","type","submit","nz-button","","nzType","primary","nz-tooltip","",3,"disabled","nzDanger","nzTooltipTrigger","nzTooltipTitle",4,"ngrxLet"],["cvcOrgSubmitButton","","type","submit","nz-button","","nzType","primary","nz-tooltip","",3,"disabled","nzDanger","nzTooltipTrigger","nzTooltipTitle"]],template:function(a,h){1&a&&(e.nrm(0,"input",0),e.j41(1,"div",1),e.DNE(2,nh,2,4,"button",2),e.k0s()),2&a&&(e.Y8G("formControl",h.formControl)("formlyAttributes",h.field),e.R7$(),e.Y8G("ngClass",e.sMw(4,kc,"right"===h.props.align,"left"===h.props.align,"center"===h.props.align)),e.R7$(),e.Y8G("ngrxLet",h.mostRecentOrg$))},dependencies:[M.YU,t.me,t.BC,t.l_,bi.Nj,g.ch,Kn.aO,di.c,ho.p,hn.LH,fl],styles:[".btn-aligner[_ngcontent-%COMP%]{width:100%}.btn-aligner.btn-right[_ngcontent-%COMP%]{text-align:right}.btn-aligner.btn-left[_ngcontent-%COMP%]{text-align:left}.btn-aligner.btn-center[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})};Vc=(0,vi.Cg)([(0,pn.d)({arrayName:"subscriptions"})],Vc);const yd={types:[{name:"org-submit-button",component:Vc}]};let F1=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(yd),Z.Y3,aa.Yb,Kn.Zw,ns.Cu,hn.Qt]})}return u})();const wu=["optionTemplates"];function xu(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function Cd(u,b){1&u&&(e.qex(0),e.DNE(1,xu,1,1,"ng-template",null,1,e.C5r),e.bVm())}function A1(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ih=new Map([[wn.Kkj.Somatic,"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring."],[wn.Kkj.RareGermline,"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item."],[wn.Kkj.CommonGermline,"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item."],[wn.Kkj.Combined," Variants in the corresponding Complex Molecular Profile have heterogeneous origins."],[wn.Kkj.Unknown,"The variant origin is uncertain based on the available evidence."],[wn.Kkj.Na,"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."]]),_a=qi(zi(),mi());let bd=(()=>{class u extends _a{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Variant Origin",required:!1,isMultiSelect:!1,placeholder:"Select Variant Origin",tooltip:"Identifies whether the variant is inherited (germline mutation) or acquired (somatic mutation) in the context of the study"}},this.originEnum$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.originEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.originEnum$.next(Array.from(ih.keys()))}configureStateConnections(){this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,me.T)(a=>a.map(h=>h))),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a?(this.props.description=ih.get(a),this.props.extraType="description"):(this.props.description=void 0,this.props.extraType="prompt")})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-origin-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(wu,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,Cd,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,A1,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ee)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.originEnum$))}},dependencies:[M.Sq,Mi,eo,bi.L9]})}return u})();const Pu={types:[{name:"origin-select",wrappers:["form-field"],component:bd},{name:"origin-multi-select",wrappers:["form-field"],component:bd,defaultOptions:{props:{label:"Variant Origins",isMultiSelect:!0}}}]};let Ed=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Pu),En,ai,Kr]})}return u})();const Td=["optionTemplates"];function ql(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",8),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,a.hpoId,h),e.npT)}}function R1(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",5),e.j41(1,"span",6),e.DNE(2,ql,4,4,"ng-container",7),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",a.hpoId)}}function zd(u,b){1&u&&(e.qex(0),e.DNE(1,R1,3,4,"ng-template",null,1,e.C5r),e.bVm())}function oh(u,b){if(1&u&&(e.qex(0),e.DNE(1,zd,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Md(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",9)(1,"cvc-entity-tag",10),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Phenotype:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Sd=qi(zi(),jo());let Fu=(()=>{class u extends Sd{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"Phenotype",plural:"Phenotypes"},isMultiSelect:!1,requireType:!0,tooltip:"Phenotype or phenotype combination which interacts with the specified variant",placeholders:{default:"Search Phenotypes",multiDefault:"Select Phenotype(s) (max MULTI_MAX)",requireTypePrompt:"Select an ENTITY_NAME Type to search Phenotypes"},description:'Please provide any HPO phenotypes, including age of onset.',extraType:"prompt"}},this.placeholder$=new dn.t(this.defaultOptions.props.placeholders.default)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){}configurePlaceholders(){}getTypeaheadVarsFn(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.phenotypeTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.phenotype}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.Osm),e.rXU(wn.$UJ),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-phenotype-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Td,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(6,oh,3,3,"ng-container",3)(7,Md,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresPhenotype$&&!e.bMT(4,18,_.onRequiresPhenotype$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,bi.Nj,qe.Di,Yt,tn.b,bi.L9,Xr.M],changeDetection:0})}return u})();const N1={types:[{name:"phenotype-select",wrappers:["form-field"],component:Fu,defaultOptions:{props:{label:"Phenotype"}}},{name:"phenotype-multi-select",wrappers:["form-field"],component:Fu,defaultOptions:{props:{isMultiSelect:!0,label:"Phenotypes"}}}]};let Au=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(N1),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._]})}return u})();var uc=c(4707),Dd=c(6042);const Od=["nz-rate-item",""],rh=u=>({$implicit:u});function eu(u,b){}function Lc(u,b){}function xr(u,b){1&u&&e.nrm(0,"span",4)}const Hh=["ulElement"];function sh(u,b){if(1&u){const a=e.RV6();e.j41(0,"li",2)(1,"div",3),e.bIt("itemHover",function(_){const ee=e.eBV(a).$index,ft=e.XpG();return e.Njj(ft.onItemHover(ee,_))})("itemClick",function(_){const ee=e.eBV(a).$index,ft=e.XpG();return e.Njj(ft.onItemClick(ee,_))}),e.k0s()()}if(2&u){const a=b.$index,h=e.XpG();e.Y8G("ngClass",h.starStyleArray[a]||"")("nzTooltipTitle",h.nzTooltips[a]),e.R7$(),e.Y8G("allowHalf",h.nzAllowHalf)("character",h.nzCharacter)("index",a)}}let Ru=(()=>{class u{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new e.bkB,this.itemClick=new e.bkB}hoverRate(a){this.itemHover.next(a&&this.allowHalf)}clickRate(a){this.itemClick.next(a&&this.allowHalf)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:[2,"allowHalf","allowHalf",e.L39]},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],standalone:!0,features:[e.GFd,e.aNF],attrs:Od,decls:6,vars:8,consts:[["defaultCharacter",""],[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"div",1),e.bIt("mouseover",function(nn){return e.eBV(ee),_.hoverRate(!1),e.Njj(nn.stopPropagation())})("click",function(){return e.eBV(ee),e.Njj(_.clickRate(!1))}),e.DNE(1,eu,0,0,"ng-template",2),e.k0s(),e.j41(2,"div",3),e.bIt("mouseover",function(nn){return e.eBV(ee),_.hoverRate(!0),e.Njj(nn.stopPropagation())})("click",function(){return e.eBV(ee),e.Njj(_.clickRate(!0))}),e.DNE(3,Lc,0,0,"ng-template",2),e.k0s(),e.DNE(4,xr,1,0,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",_.character||ee)("ngTemplateOutletContext",e.eq3(4,rh,_.index)),e.R7$(2),e.Y8G("ngTemplateOutlet",_.character||ee)("ngTemplateOutletContext",e.eq3(6,rh,_.index))}},dependencies:[M.T3,Z.Y3,Z.Dn],encapsulation:2,changeDetection:0})}return u})(),tu=(()=>{class u{get nzValue(){return this._value}set nzValue(a){this._value!==a&&(this._value=a,this.hasHalf=!Number.isInteger(a)&&this.nzAllowHalf,this.hoverValue=Math.ceil(a))}constructor(a,h,_,ee,ft,nn){this.nzConfigService=a,this.ngZone=h,this.renderer=_,this.cdr=ee,this.directionality=ft,this.destroy$=nn,this._nzModuleName="rate",this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new e.bkB,this.nzOnFocus=new e.bkB,this.nzOnHoverChange=new e.bkB,this.nzOnKeyDown=new e.bkB,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.isNzDisableFirstChange=!0,this.onChange=()=>null,this.onTouched=()=>null}ngOnChanges(a){const{nzAutoFocus:h,nzCount:_,nzValue:ee}=a;if(h&&!h.isFirstChange()){const ft=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(ft,"autofocus","autofocus"):this.renderer.removeAttribute(ft,"autofocus")}_&&this.updateStarArray(),ee&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent("rate").pipe((0,be.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.dir=a,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.ulElement.nativeElement,"focus").pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(a))}),(0,x.R)(this.ulElement.nativeElement,"blur").pipe((0,be.Q)(this.destroy$)).subscribe(a=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(a))})})}onItemClick(a,h){if(this.nzDisabled)return;this.hoverValue=a+1;const _=h?a+.5:a+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(a,h){this.nzDisabled||((this.hoverValue!==a+1||h!==this.hasHalf)&&(this.hoverValue=a+1,this.hasHalf=h,this.updateStarStyle()),this.nzOnHoverChange.emit(this.hoverValue))}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(a){const h=this.nzValue;a.keyCode===X.LE&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),h!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(a),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((a,h)=>h),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(a=>{const h="ant-rate-star",_=a+1;return{[`${h}-full`]:_this.hoverValue,[`${h}-focused`]:this.hasHalf&&_===this.hoverValue&&this.isFocused}})}writeValue(a){this.nzValue=a||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(a){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||a,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}registerOnChange(a){this.onChange=a}registerOnTouched(a){this.onTouched=a}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Dd.yx),e.rXU(e.SKi),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(E.dS,8),e.rXU(H.y4))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-rate"]],viewQuery:function(h,_){if(1&h&&e.GBs(Hh,7),2&h){let ee;e.mGM(ee=e.lsd())&&(_.ulElement=ee.first)}},inputs:{nzAllowClear:[2,"nzAllowClear","nzAllowClear",e.L39],nzAllowHalf:[2,"nzAllowHalf","nzAllowHalf",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzCharacter:"nzCharacter",nzCount:[2,"nzCount","nzCount",e.Udg],nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],standalone:!0,features:[e.Jv_([H.y4,{provide:t.kq,useExisting:(0,e.Rfq)(()=>u),multi:!0}]),e.GFd,e.OA$,e.aNF],decls:4,vars:6,consts:[["ulElement",""],[1,"ant-rate",3,"keydown","mouseleave","ngClass","tabindex"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"itemHover","itemClick","allowHalf","character","index"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"ul",1,0),e.bIt("keydown",function(nn){return e.eBV(ee),_.onKeyDown(nn),e.Njj(nn.preventDefault())})("mouseleave",function(nn){return e.eBV(ee),_.onRateLeave(),e.Njj(nn.stopPropagation())}),e.Z7z(2,sh,2,5,"li",2,e.fX1),e.k0s()}2&h&&(e.AVh("ant-rate-disabled",_.nzDisabled)("ant-rate-rtl","rtl"===_.dir),e.Y8G("ngClass",_.classMap)("tabindex",_.nzDisabled?-1:1),e.R7$(2),e.Dyx(_.starArray))},dependencies:[M.YU,hn.Qt,hn.LH,Ru],encapsulation:2,changeDetection:0})}return(0,uc.Cg)([(0,Dd.H4)()],u.prototype,"nzAllowClear",void 0),(0,uc.Cg)([(0,Dd.H4)()],u.prototype,"nzAllowHalf",void 0),u})(),Nu=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[tu,Ru]})}return u})();const ku={1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims.",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing.",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning.",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning.",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods."},Fa=qi(zi(),mi()),k1={types:[{name:"rating",wrappers:["form-field"],component:(()=>{class u extends Fa{constructor(){super(),this.defaultOptions={props:{label:"Evidence Rating",count:5,tooltip:"A representation of the curator's confidence in the quality of the summarized evidence",hoverText:[]}},this.rating$=new dn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.formControl.value&&this.rating$.next(this.formControl.value),Object.entries(ku).map(([a,h])=>{this.props.hoverText.push(h)}),this.rating$.pipe((0,pn.s)(this)).subscribe(a=>{this.formControl.setValue(a)}),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{a&&0!==a?(this.props.description=ku[a],this.props.extraType="description"):(this.formControl.setValue(void 0),this.props.description=void 0,this.props.extraType="prompt")})}configureStateConnections(){}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-rating"]],features:[e.Vt3],decls:3,vars:5,consts:[["type","hidden",3,"formControl","formlyAttributes"],[1,"rate-block"],[3,"ngModelChange","ngModel","nzCount","nzTooltips"]],template:function(h,_){1&h&&(e.nrm(0,"input",0),e.j41(1,"div",1)(2,"nz-rate",2),e.bIt("ngModelChange",function(ft){return _.rating$.next(ft)}),e.k0s()()),2&h&&(e.Y8G("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(2),e.Y8G("ngModel",_.formControl.value)("nzCount",_.props.count)("nzTooltips",_.props.hoverText))},dependencies:[t.me,t.BC,t.l_,t.vS,g.ch,tu],styles:["[_nghost-%COMP%] .rate-block[_ngcontent-%COMP%]{display:inline-block;background-color:#fff;border-radius:2px;padding:2px 4px;margin-top:-4px}[_nghost-%COMP%] nz-rate .anticon{font-size:160%}"],changeDetection:0})}return u})()}]};let ah=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,t.YN,g.qy.forChild(k1),Nu,ge.i,En,ai]})}return u})();const Uh=["optionTemplates"];function q2(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.k0s()()),2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a)}}function ep(u,b){1&u&&(e.qex(0),e.DNE(1,q2,3,1,"ng-template",null,1,e.C5r),e.bVm())}function Ko(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-tag",7),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.k0s()()}if(2&u){const a=e.XpG().$implicit;e.R7$(2),e.JRh(a.nzValue)}}function wd(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const a=e.XpG().$implicit;e.R7$(),e.SpI(" ",a.nzValue," ")}}function ch(u,b){if(1&u&&(e.j41(0,"div",4),e.DNE(1,Ko,3,1,"nz-tag",5)(2,wd,2,1,"ng-container",6),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",!a.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",a.props.isMultiSelect)}}const Gh=qi(zi(),mi());let lh=(()=>{class u extends Gh{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Reference Build",required:!1,isMultiSelect:!1,description:"Select the human genome reference sequence from which these coordinates are obtained",placeholder:"Select Reference Build"}},this.buildEnum$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.buildEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){this.placeholder$=new dn.t(this.props.placeholder),this.buildEnum$.next((0,Ei.KF)(wn.KRr).map(a=>a)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,me.T)(a=>a.map(h=>h)))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-reference-build-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Uh,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,ep,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,ch,3,2,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.buildEnum$))}},dependencies:[M.Sq,M.bT,Gn.s,Mi,bi.L9]})}return u})();const tp={types:[{name:"reference-build-select",wrappers:["form-field"],component:lh},{name:"reference-build-multi-select",wrappers:["form-field"],component:lh,defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let uh=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(tp),Gn.T,ge.i,En,ai]})}return u})();const dh=["optionTemplates"];function kr(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const a=e.XpG().$implicit;e.Y8G("cvcAttrValue",a)}}function np(u,b){1&u&&(e.qex(0),e.DNE(1,kr,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Yh(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onTagClose$.next(_))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ip={Evidence:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PREDISPOSITION:"Germline variant has predisposing potential for cancer, and may meet select ACMG/AMP criteria supporting pathogenic or benign classification.",PROTECTIVENESS:"Germline variant has properties that protect individuals from acquiring cancer."},FUNCTIONAL:{GAIN_OF_FUNCTION:"Sequence variant confers an increase in normal gene function",LOSS_OF_FUNCTION:"Sequence variant confers a diminished or abolished function",UNALTERED_FUNCTION:"Gene product of sequence variant is unchanged",NEOMORPHIC:"Sequence variant creates a novel function",DOMINANT_NEGATIVE:"Sequence variant abrogates function of wildtype allele gene product",UNKNOWN:"Sequence variant that cannot be precisely defined by the other listed categories"},ONCOGENIC:{ONCOGENICITY:"Somatic variant has oncogenic potential for driving cancer, and may meet select ClinGen/CGC/VICC criteria supporting pathogenic or benign classification.",PROTECTIVENESS:"Somatic variant has a protective role against cancer."}},Assertion:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PATHOGENIC:"Very strong evidence the variant is pathogenic",LIKELY_PATHOGENIC:"Strong evidence (>90% certainty) the variant is pathogenic.",BENIGN:"Very strong evidence the variant is benign",LIKELY_BENIGN:"Not expected to have a major effect on disease",UNCERTAIN_SIGNIFICANCE:"Does not meet the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"},ONCOGENIC:{ONCOGENIC:"Very strong evidence the variant is oncogenic.",LIKELY_ONCOGENIC:"Strong evidence the variant is oncogenic.",BENIGN:"Very strong evidence the variant does not have oncogenic properties.",LIKELY_BENIGN:"Strong evidence the variant does not have oncogenic properties.",UNCERTAIN_SIGNIFICANCE:"Does not meet guideline criteria for oncogenic/benign, or the evidence is conflicting."}}},hh=qi(zi(),mi()),xd={types:[{name:"significance-select",wrappers:["form-field"],component:(()=>{class u extends hh{constructor(a){super(),this.cdr=a,this.defaultOptions={props:{label:"Significance",required:!0,isMultiSelect:!1,placeholder:"Select Significance",placeholderFn:h=>`Select ${h?h+" ":""} Significance`,requireTypePromptFn:h=>`Select ${h} Type to select its Significance`,tooltip:"Clinical impact of the variant"}},this.significanceEnum$=new dn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.significanceEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void(this.placeholder$=new dn.t("ERROR: Form state not found"));if(this.placeholder$=new dn.t(this.props.placeholderFn(this.state.entityName)),!this.state.enums.significance$)return void console.error(`${this.field.id} could not find form state's enums.significance$ to populate select.`);this.state.enums.significance$.pipe((0,pn.s)(this)).subscribe(h=>{this.significanceEnum$.next(h)}),this.optionTemplates||console.warn(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,me.T)(h=>h.map(_=>_)));const a=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[a]?(this.onTypeSelect$=this.state.fields[a],this.onTypeSelect$.pipe((0,so.i)("add"===this.options.formState.formMode?0:1),(0,pn.s)(this)).subscribe(h=>{h?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName))):(this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName),this.props.extraType="prompt"),this.formControl.value&&this.formControl.setValue(void 0)}),this.onValueChange$.pipe((0,Yi.E)(this.onTypeSelect$),(0,pn.s)(this)).subscribe(([h,_])=>{!_||!h||!this.state||(this.props.description=void 0,this.props.extraType="description",this.props.description=ip[this.state.entityName][_][h],this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's ${a} to populate Significance options.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-significance-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(dh,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,np,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Yh,2,3,"ng-template",null,0,e.C5r)),2&h){const ee=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ee)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.significanceEnum$))}},dependencies:[M.Sq,Mi,eo,bi.L9]})}return u})()}]};let ya=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(xd),En,ai,Kr]})}return u})();var T=c(1427);const d=()=>[0,0];function p(u,b){1&u&&e.nrm(0,"span",9),2&u&&e.Y8G("nzType","loading")}function v(u,b){if(1&u&&(e.qex(0),e.DNE(1,p,1,1,"span",8),e.EFF(2,"\xa0 "),e.j41(3,"span"),e.EFF(4),e.k0s(),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(),e.Y8G("ngIf",a.showSpinner),e.R7$(3),e.JRh(a.message)}}function C(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG();e.JRh(a.successMessage)}}function O(u,b){1&u&&(e.j41(0,"button",10),e.EFF(1," Add Source "),e.k0s()),2&u&&e.Y8G("disabled",null===b.ngrxLet.citation)}let Q=class B8{constructor(b,a,h,_,ee){this.checkCitation=b,this.addRemoteCitation=a,this.errors=h,this.apollo=_,this.cdr=ee,this.cvcOnCreate=new e.bkB,this.messageOptions={empty:(ft,nn)=>`No ${nn} Source with a citation ID of "${ft}"`,searchCitation:(ft,nn)=>`Searching ${nn} for a citation ID of "${ft}"`,foundCitation:(ft,nn,Rn)=>`Found ${nn} citation "${Rn}" with ID ${ft}`,noCitation:(ft,nn)=>`No ${nn} Source with a citation ID of "${ft}" was found`},this.form=new t.J3({}),this.model={citationId:"",sourceType:wn.tUL.Pubmed},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.citationId$=new dn.t(""),this.sourceType$=new dn.t(wn.tUL.Pubmed),this.addSourceStubMutator=new Ar.E(this.errors),this.fields=[{key:"citationId",props:{hidden:!0}},{key:"sourceType",props:{hidden:!0}}],this.onSubmit$.pipe((0,pn.s)(this)).subscribe(ft=>{console.log("disease-quick-add form model submitted.",ft),this.submitSourceStub()})}ngOnInit(){void 0!==this.model.citationId&&void 0!==this.model.sourceType?(this.queryRef=this.checkCitation.watch({citationId:this.model.citationId,sourceType:this.model.sourceType}),this.checkResult$=this.queryRef.valueChanges.pipe((0,me.T)(b=>({loading:b.loading,citation:b.data?b.data.remoteCitation:null,model:this.model})),(0,On.M)(b=>{this.citationString=b.citation?b.citation:void 0})),this.citationId$.pipe((0,pn.s)(this)).subscribe(b=>{this.model.sourceType&&this.queryRef.refetch({citationId:b,sourceType:this.model.sourceType})}),this.formMessageDisplay$=this.checkResult$.pipe((0,me.T)(b=>{const a=b.loading,h=b.citation,_=b.model;return a?{message:this.messageOptions.searchCitation(_.citationId,_.sourceType),showSpinner:!0}:a||null===h?a||null!==h?{message:"UNHANDLED MESSAGE STATE",showSpinner:!1}:{message:this.messageOptions.noCitation(_.citationId,_.sourceType),showSpinner:!1}:{message:this.messageOptions.foundCitation(_.citationId,(0,T.A)(_.sourceType),h),showSpinner:!1}}),(0,Oe.Z)({message:this.messageOptions.searchCitation(this.model.citationId,this.model.sourceType),showSpinner:!0}))):console.error("source-quick-add provided invalid initial model")}submitSourceStub(){void 0!==this.model.citationId&&void 0!==this.model.sourceType&&(this.mutationState=this.addSourceStubMutator.mutate(this.addRemoteCitation,{input:{citationId:this.model.citationId,sourceType:this.model.sourceType}},{},b=>{if(console.log("source-quick-add submit data callback",b),b.addRemoteCitation){this.successMessage=`New Source "${this.citationString}" added.`;const a=b.addRemoteCitation.newSource,h=(0,T.A)(this.model.sourceType),_=this.citationString?this.citationString:"NO CITATION",ee={query:is.J1` - query WriteLocalSource($id: Int!) { - source(id: $id) { - id - name - link - citation - citationId - sourceType - } - } - `,data:{source:{__typename:"Source",id:a.id,name:`${h}: ${_}`,link:`sources/${a.id}`,citation:_,citationId:this.model.citationId,sourceType:this.model.sourceType}},variables:{id:a.id}};this.apollo.client.cache.writeQuery(ee)||console.error("source-quick-add.form Source writeQuery failed.",ee),setTimeout(()=>{const nn={id:`Source:${a.id}`,fragment:is.J1` - fragment LinkableSource on Source { - id - name - link - } - `},Rn=this.apollo.client.cache.readFragment(nn);null!==Rn&&this.cvcOnCreate.next(Rn.id)},1e3)}}))}ngOnChanges(b){if(b.cvcSourceType){const a=b.cvcSourceType.currentValue;this.sourceType$.next(a),this.model={...this.model,sourceType:a}}if(b.cvcCitationId){const a=b.cvcCitationId.currentValue;this.citationId$.next(a),this.model={...this.model,citationId:a}}}static#e=this.\u0275fac=function(a){return new(a||B8)(e.rXU(wn.RMT),e.rXU(wn.Z3e),e.rXU(ia.N),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:B8,selectors:[["cvc-source-quick-add"]],inputs:{cvcSourceType:"cvcSourceType",cvcCitationId:"cvcCitationId"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.OA$],decls:10,vars:11,consts:[["success",""],[4,"ngrxLet"],["entityType","Source",3,"mutationState","successMessage"],["nz-form","","nzLayout","horizontal",3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["nz-button","","nzType","primary","nzBlock","",3,"disabled",4,"ngrxLet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"]],template:function(a,h){if(1&a){const _=e.RV6();e.DNE(0,v,5,2,"ng-container",1),e.j41(1,"cvc-form-submission-status-display",2),e.DNE(2,C,1,1,"ng-template",null,0,e.C5r),e.j41(4,"form",3),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.bIt("modelChange",function(ft){return e.eBV(_),e.Njj(h.model=ft)}),e.k0s()(),e.j41(8,"nz-col",5),e.DNE(9,O,2,1,"button",7),e.k0s()()()()}if(2&a){const _=e.sdS(3);e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,d)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("ngrxLet",h.checkResult$)}},dependencies:[M.bT,t.qT,t.cb,t.j4,bi.Nj,g.aF,Kn.aO,di.c,ho.p,Z.Dn,L.Uq,L.e,G.CA,fs.G],changeDetection:0})};Q=(0,vi.Cg)([(0,pn.d)()],Q);const Me=["optionTemplates"],xe=()=>[6,6];function ot(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",10)(1,"nz-select",11),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.sourceType$.next(_))}),e.nrm(3,"nz-option",12)(4,"nz-option",13)(5,"nz-option",14),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("nzOptionHeightPx",28)("ngModel",e.bMT(2,2,a.sourceType$))}}function yt(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"PMID:"),e.k0s())}function Dt(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"ID:"),e.k0s())}function Bt(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"doi.org/"),e.k0s())}function Ht(u,b){if(1&u&&(e.j41(0,"nz-col",15),e.qex(1,16),e.nI1(2,"ngrxPush"),e.DNE(3,yt,2,0,"div",17)(4,Dt,2,0,"div",17)(5,Bt,2,0,"div",17),e.bVm(),e.k0s()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngSwitch",e.bMT(2,4,a.sourceType$)),e.R7$(2),e.Y8G("ngSwitchCase","PUBMED"),e.R7$(),e.Y8G("ngSwitchCase","ASCO"),e.R7$(),e.Y8G("ngSwitchCase","ASH")}}function Xt(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",19),e.j41(1,"span",20),e.EFF(2," ID: "),e.nrm(3,"span",21),e.nI1(4,"highlightTypeahead"),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(3),e.Y8G("innerHtml",e.i5U(4,4,a.citationId.toString(),h),e.npT)}}function Zt(u,b){1&u&&(e.qex(0),e.DNE(1,Xt,5,7,"ng-template",null,3,e.C5r),e.bVm())}function vn(u,b){if(1&u&&(e.qex(0),e.DNE(1,Zt,3,0,"ng-container",18),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Mn(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",22)(1,"cvc-entity-tag",23),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Source:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function ci(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-source-quick-add",24),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()}if(2&u){const a=b.model;e.Y8G("cvcCitationId",a.citationId)("cvcSourceType",a.sourceType)}}function an(u,b){1&u&&(e.j41(0,"button",25),e.EFF(1,"Add a New Source"),e.k0s())}const ti=qi(zi(),jo());let Jn=(()=>{class u extends ti{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.onModel$=new Un.c,this.defaultSourceType=wn.tUL.Pubmed,this.defaultOptions={props:{entityName:{singular:"Source",plural:"Sources"},isMultiSelect:!1,minSearchStrLength:2,tooltip:"PubMed, ASCO, or ASH Abstract Source(s) that support items, statements or descriptions.",placeholders:{default:"Search PubMed, ASCO, and ASH Sources",contextualFn:ee=>`Search ${ee} Sources`},description:"Select Source type, then enter its ID to search Sources"}},this.sourceType$=new dn.t(this.defaultSourceType),this.sourceTypeName$=new dn.t((0,T.A)(this.defaultSourceType)),this.placeholder$=new dn.t(this.defaultOptions.props.placeholders.contextualFn((0,T.A)(this.defaultSourceType))),this.showTypeSelect$=new Un.c}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:this.sourceType$,typeaheadParamName$:this.sourceTypeName$||void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent,minSearchStrLength:this.field.props.minSearchStrLength}),this.initialDescription=this.props.description,this.showTypeSelect$=this.onValueChange$.pipe((0,me.T)(a=>!!(!a||a&&Array.isArray(a)))),this.sourceType$.pipe((0,pn.s)(this)).subscribe(a=>{const h=(0,T.A)(a);this.sourceTypeName$.next(h),this.placeholder$.next(this.props.placeholders.contextualFn(h))}),this.onModel$=(0,po.z)([this.sourceType$,this.onSearch$]).pipe((0,me.T)(([a,h])=>({citationId:h,sourceType:a}))),this.onValueChange$.pipe((0,pn.s)(this)).subscribe(a=>{this.props.description=a?void 0:this.initialDescription})}getTypeaheadVarsFn(a,h=wn.tUL.Pubmed){return{partialCitationId:a,sourceType:h}}getTypeaheadResultsFn(a){return a.data.sourceTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.source}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.txm),e.rXU(wn.mww),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-source-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Me,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:21,vars:39,consts:[["selectedTemplate",""],["addSource",""],["addSourceBtn",""],["optionTemplates",""],[1,"select-layout",3,"nzGutter"],["nzFlex","80px",4,"ngIf"],["nzFlex","60px","class","prefix",4,"ngIf"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnModelChange","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcParamName","cvcShowError","cvcDisabled","cvcLoading","cvcAddEntity","cvcAddEntityModel","cvcSelectOpen"],[4,"ngrxLet"],["nzFlex","80px"],["nzSize","default","nzBlock","",3,"ngModelChange","nzOptionHeightPx","ngModel"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["nzValue","ASH","nzLabel","ASH"],["nzFlex","60px",1,"prefix"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcCitationId","cvcSourceType"],["type","button"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"nz-row",4),e.DNE(1,ot,6,4,"nz-col",5),e.nI1(2,"ngrxPush"),e.DNE(3,Ht,6,6,"nz-col",6),e.nI1(4,"ngrxPush"),e.j41(5,"nz-col",7)(6,"cvc-entity-select",8),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.nI1(12,"ngrxPush"),e.nI1(13,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()()(),e.DNE(14,vn,3,3,"ng-container",9)(15,Mn,2,3,"ng-template",null,0,e.C5r)(17,ci,1,2,"ng-template",null,1,e.C5r)(19,an,2,0,"ng-template",null,2,e.C5r)}if(2&h){const ee=e.sdS(16),ft=e.sdS(18);e.Y8G("nzGutter",e.lJ4(38,xe)),e.R7$(),e.Y8G("ngIf",e.bMT(2,20,_.showTypeSelect$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,22,_.showTypeSelect$)),e.R7$(3),e.Y8G("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(7,24,_.placeholder$))("cvcResults",e.bMT(8,26,_.result$))("cvcOptions",e.bMT(9,28,_.selectOption$))("cvcParamName",e.bMT(10,30,_.sourceTypeName$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled)("cvcLoading",e.bMT(11,32,_.isLoading$))("cvcAddEntity",ft)("cvcAddEntityModel",e.bMT(12,34,_.onModel$))("cvcSelectOpen",e.bMT(13,36,_.selectOpen$)),e.R7$(8),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,M.ux,M.e1,t.BC,t.vS,bi.Nj,Qe.ld,Qe.WI,L.Uq,L.e,qe.Di,Yt,tn.b,Q,bi.L9,Xr.M],styles:[".prefix[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:right;line-height:28px;color:#999}.select-layout[_ngcontent-%COMP%]{flex-wrap:nowrap}"],changeDetection:0})}return u})();const Ci={types:[{name:"source-select",wrappers:["form-field"],component:Jn,defaultOptions:{props:{label:"Source"}}},{name:"source-multi-select",wrappers:["form-field"],component:Jn,defaultOptions:{props:{label:"Sources",isMultiSelect:!0}}}]};let Bi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,t.X1,g.qy.forChild(Ci),Cn.$,Kn.Zw,ue.Sw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,G.PQ,rt.jl,qe.kT,Zn.g,Gn.T,Go.P,En,jn,ge.i,Ft._]})}return u})();function nr(u,b){if(1&u&&e.nrm(0,"nz-option",7),2&u){const a=b.$implicit;e.Y8G("nzLabel",a)("nzValue",a)("nzHide",!0)}}function vr(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-select",5),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onValueChange$.next(_))}),e.DNE(2,nr,1,3,"nz-option",6),e.k0s(),e.bVm()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("formControl",a.formControl)("formlyAttributes",a.field),e.R7$(),e.Y8G("ngForOf",a.formControl.value)}}function dc(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-tag",10),e.bIt("nzOnClose",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onTagClose$.next(_))}),e.EFF(1),e.k0s()}if(2&u){const a=b.ngIf;e.Y8G("nzMode","closeable"),e.R7$(),e.SpI(" ",a," ")}}function Vr(u,b){if(1&u){const a=e.RV6();e.j41(0,"input",12,2),e.bIt("keydown.enter",function(){e.eBV(a);const _=e.sdS(1);return e.Njj(_.blur())}),e.k0s()}if(2&u){const a=e.XpG(3);e.Y8G("formControl",a.formControl)("type",a.props.type||"text")("formlyAttributes",a.field)}}function Aa(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number",13,3),e.bIt("keydown.enter",function(){e.eBV(a);const _=e.sdS(1);return e.Njj(_.blur())}),e.k0s()}if(2&u){const a=e.XpG(3);e.Y8G("formControl",a.formControl)("formlyAttributes",a.field)}}function Pd(u,b){if(1&u&&(e.qex(0),e.DNE(1,Vr,2,3,"input",11)(2,Aa,2,2,"ng-template",null,1,e.C5r),e.bVm()),2&u){const a=e.sdS(3),h=e.XpG(2);e.R7$(),e.Y8G("ngIf","number"!==h.props.type)("ngIfElse",a)}}function ph(u,b){if(1&u&&(e.DNE(0,dc,2,2,"nz-tag",8),e.nI1(1,"ngrxPush"),e.DNE(2,Pd,4,2,"ng-container",9),e.nI1(3,"ngrxPush")),2&u){const a=e.XpG();e.Y8G("ngIf",e.bMT(1,2,a.tagLabel$)),e.R7$(2),e.Y8G("ngIf",!e.bMT(3,4,a.tagLabel$))}}const Di=qi(zi(),Ea);let _i=(()=>{class u extends Di{constructor(){super(),this.defaultOptions={props:{label:"Enter value"}}}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-tag-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["singleInputField",""],["numberTmp",""],["baseInputTxt",""],["baseInputNum",""],[4,"ngIf","ngIfElse"],["nzMode","tags","nzPlaceHolder","Please select","nzAllowClear","","nzDropdownClassName","hide-dropdown",3,"ngModelChange","formControl","formlyAttributes"],[3,"nzLabel","nzValue","nzHide",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue","nzHide"],[3,"nzMode","nzOnClose",4,"ngIf"],[4,"ngIf"],[3,"nzOnClose","nzMode"],["nz-input","",3,"formControl","type","formlyAttributes","keydown.enter",4,"ngIf","ngIfElse"],["nz-input","",3,"keydown.enter","formControl","type","formlyAttributes"],[3,"keydown.enter","formControl","formlyAttributes"]],template:function(h,_){if(1&h&&e.DNE(0,vr,3,3,"ng-container",4)(1,ph,4,6,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf",_.props.isMultiInput)("ngIfElse",ee)}},dependencies:[M.Sq,M.bT,t.me,t.BC,t.l_,g.ch,F.Sy,Qe.ld,Qe.WI,Gn.s,bi.L9],changeDetection:0})}return u})();const Ui={types:[{name:"tag-input",wrappers:["form-field"],component:_i,defaultOptions:{modelOptions:{updateOn:"blur"}}},{name:"tag-multi-input",wrappers:["form-field"],component:_i,defaultOptions:{props:{isMultiInput:!0}}}]};let Mo=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(Ui),G.PQ,F.j,Qe.DH,Gn.T,Ti]})}return u})();const Tr=()=>[0,0];function hc(u,b){1&u&&e.nrm(0,"span",7)}function ca(u,b){1&u&&e.nrm(0,"span",8)}const dr={name:void 0};let Po=class $8{set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,a){this.query=b,this.errors=a,this.cvcOnCreate=new e.bkB,this.model=dr,this.form=new t.J3({}),this.options={},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.queryMutator=new Ar.E(this.errors),this.isSubmitting$=new dn.t(!1),this.submitSuccess$=new dn.t(!1),this.submitError$=new dn.t([]),this.addTherapyMutator=new Ar.E(this.errors),this.fields=[{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,pn.s)(this)).subscribe(h=>{this.model.name=h}),this.onSubmit$.pipe((0,pn.s)(this)).subscribe(h=>{this.submitTherapy(h)})}submitTherapy(b){if(!b.name)return void console.error("therapy-quick-add form submitTherapy requires model with valid name.");let a=this.addTherapyMutator.mutate(this.query,{name:b.name},{},h=>{console.log("therapy-quick-add submit data callback",h),h.addTherapy&&this.cvcOnCreate.next(h.addTherapy.therapy.id)});a.submitSuccess$.pipe((0,pn.s)(this)).subscribe(h=>{console.log("therapy-quick-add submitSuccess$",h),this.submitSuccess$.next(h)}),a.submitError$.pipe((0,pn.s)(this)).subscribe(h=>{console.log("therapy-quick-add submitError$",h),this.submitError$.next(h)}),a.isSubmitting$.pipe((0,pn.s)(this)).subscribe(h=>{this.isSubmitting$.next(h)})}static#e=this.\u0275fac=function(a){return new(a||$8)(e.rXU(wn.G4Q),e.rXU(ia.N))};static#t=this.\u0275cmp=e.VBU({type:$8,selectors:[["cvc-therapy-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:14,vars:17,consts:[[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],["nz-icon","","nzType","plus-circle","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","loading","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","plus-circle","nzTheme","outline"],["nz-icon","","nzType","loading","nzTheme","outline"]],template:function(a,h){1&a&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return h.onSubmit$.next(h.model)}),e.j41(1,"nz-row",1)(2,"nz-col",2)(3,"formly-form",3),e.bIt("modelChange",function(ee){return h.model=ee}),e.k0s()(),e.j41(4,"nz-col",2)(5,"button",4),e.DNE(6,hc,1,0,"span",5),e.nI1(7,"ngrxPush"),e.DNE(8,ca,1,0,"span",6),e.nI1(9,"ngrxPush"),e.EFF(10," Create Therapy\xa0"),e.j41(11,"i"),e.EFF(12),e.nI1(13,"ngrxPush"),e.k0s()()()()()),2&a&&(e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(16,Tr)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("disabled",!h.form.valid),e.R7$(),e.Y8G("ngIf",!e.bMT(7,10,h.isSubmitting$)),e.R7$(2),e.Y8G("ngIf",e.bMT(9,12,h.isSubmitting$)),e.R7$(4),e.JRh(e.bMT(13,14,h.searchString$)))},dependencies:[M.bT,t.qT,t.cb,t.j4,g.aF,Kn.aO,di.c,ho.p,Z.Dn,L.Uq,L.e,bi.L9],encapsulation:2,changeDetection:0})};Po=(0,vi.Cg)([(0,pn.d)()],Po);const Fd=["optionTemplates"];function fh(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"NCIt Code: "),e.k0s(),e.nrm(3,"span",9),e.nI1(4,"highlightTypeahead"),e.EFF(5,"\xa0 "),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(3),e.Y8G("innerHtml",e.i5U(4,1,a.ncitId,h),e.npT)}}function as(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"Aliases: "),e.k0s(),e.j41(3,"em"),e.nrm(4,"span",10),e.nI1(5,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(4),e.Y8G("nzTooltipTitle",a.therapyAliases.join(", "))("innerHtml",e.i5U(5,2,a.therapyAliases.join(", "),h),e.npT)}}function pc(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",6),e.j41(1,"span",7),e.DNE(2,fh,6,4,"ng-container",8)(3,as,6,5,"ng-container",8),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",a.ncitId),e.R7$(),e.Y8G("ngIf",a.therapyAliases.length>0)}}function la(u,b){1&u&&(e.qex(0),e.DNE(1,pc,4,5,"ng-template",null,2,e.C5r),e.bVm())}function Vu(u,b){if(1&u&&(e.qex(0),e.DNE(1,la,3,0,"ng-container",5),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function Ad(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",11)(1,"cvc-entity-tag",12),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Therapy:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function op(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-therapy-quick-add-form",13),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()}2&u&&e.Y8G("cvcSearchString",b.$implicit)}const F4=qi(zi(),jo());let rp=(()=>{class u extends F4{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"Therapy",plural:"Therapies"},isMultiSelect:!1,requireType:!0,tooltip:"Therapy or therapy combination which interacts with the specified variant",placeholder:"Search Therapies",requireTypePromptFn:(ee,ft)=>`Select an ${ee} Type to search associated Therapies`}},this.placeholder$=new dn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresTherapy$?this.onRequiresTherapy$=this.state.requires.requiresTherapy$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresTherapy$ subject to attach.`),this.props.requireType)){const a=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[a]?this.onEntityType$=this.state.fields[a]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${a}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholder),this.onRequiresTherapy$&&this.onEntityType$&&(0,po.z)([this.onRequiresTherapy$,this.onEntityType$]).pipe((0,J.F)(),(0,pn.s)(this)).subscribe(([a,h])=>{!a&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,ro.u)(h)} ${this.state.entityName} does not include associated therapies`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):a?(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0):(!a&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&(this.resetField(),console.log("HERE2"))})}getTypeaheadVarsFn(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.therapyTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.therapy}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.f9r),e.rXU(wn.a3n),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-therapy-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Fd,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:12,vars:26,consts:[["selectedTemplate",""],["addTherapy",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcAddEntity","cvcCustomTemplate","cvcDisabled","cvcEntityName","cvcFormControl","cvcFormlyAttributes","cvcLoading","cvcOptions","cvcPlaceholder","cvcResults","cvcSelectMode","cvcShowError","cvcSelectOpen"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],[3,"innerHtml"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",3),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(7,Vu,3,3,"ng-container",4)(8,Ad,2,3,"ng-template",null,0,e.C5r)(10,op,1,1,"ng-template",null,1,e.C5r)}if(2&h){const ee=e.sdS(9),ft=e.sdS(11);e.Y8G("cvcAddEntity",ft)("cvcCustomTemplate",ee)("cvcDisabled",_.onRequiresTherapy$&&!e.bMT(1,14,_.onRequiresTherapy$))("cvcEntityName",_.props.entityName)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcLoading",e.bMT(2,16,_.isLoading$))("cvcOptions",e.bMT(3,18,_.selectOption$))("cvcPlaceholder",e.bMT(4,20,_.placeholder$))("cvcResults",e.bMT(5,22,_.result$))("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcShowError",_.showError)("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,bi.Nj,hn.LH,qe.Di,Yt,tn.b,Po,bi.L9,Xr.M],changeDetection:0})}return u})();const A4={types:[{name:"therapy-select",wrappers:["form-field"],component:rp,defaultOptions:{props:{label:"Therapy"}}},{name:"therapy-multi-select",wrappers:["form-field"],component:rp,defaultOptions:{props:{label:"Therapies",isMultiSelect:!0}}}]};let R4=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(A4),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._]})}return u})();const ap={isDefaultCol:u=>"default"===u.type,isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},Kh=u=>void 0!==u.sort,Xh=u=>void 0!==u.filter,$4={diseases:wn.wOP.DiseaseName,feature:wn.wOP.FeatureName,therapies:wn.wOP.TherapyName,variant:wn.wOP.VariantName},lp={diseases:"diseaseName",therapies:"therapyName",variant:"variantName",feature:"featureName",aliases:"variantAlias"},H4=["selected","id"];class up{constructor(){this.sortStreams=[],this.filterStreams=[],this.config=this.configureColumnStreams([{key:"selected",label:"Select",type:"select",width:"25px",align:"center",fixedLeft:!0,checkbox:{th:{showCheckbox:!1},td:{showCheckbox:!0}}},{key:"id",label:"ID",hidden:!0,type:"hidden",width:"0px"},{key:"variant",label:"Variant",type:"entity-tag",width:"215px",context:"variant",fixedLeft:!0,showStatus:!0,tag:{fullWidth:!0,truncateLabel:"200px"},sort:{default:"ascend"},filter:{inputType:"default",options:[{key:"Filter Variant Name",value:null}]}},{key:"aliases",label:"Aliases",type:"default",width:"150px",objectKey:"name",sort:{},filter:{inputType:"default",options:[{key:"Filter Aliases",value:null}]}},{key:"feature",label:"Feature",type:"entity-tag",width:"135px",tag:{truncateLabel:"125px"},sort:{},filter:{inputType:"default",options:[{key:"Filter Feature Name",value:null}]}},{key:"diseases",label:"Diseases",type:"entity-tag",width:"250px",sort:{},tag:{maxTags:1,truncateLabel:"175px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}},{key:"therapies",label:"Therapies",type:"entity-tag",width:"275px",sort:{},tag:{maxTags:2,truncateLabel:"150px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(b,a){return b.getValues().map(_=>({text:(0,ro.u)(_),value:_,byDefault:a===_}))}configureColumnStreams(b){return b.forEach(a=>{const h=a;if(Kh(h)&&(h.sort.changes=new dn.t({key:h.key,value:h.sort.default??null}),this.sortStreams.push(h.sort.changes)),Xh(h)){const _=h.filter.options.find(ee=>ee.byDefault)?.value;h.filter.changes=new dn.t({key:h.key,value:_??null}),this.filterStreams.push(h.filter.changes)}}),b}}let Qh=class H8{set cvcTableScrollerToIndex(b){void 0!==b&&this.scrollToIndex(b)}set cvcTableScrollerToOffset(b){void 0!==b&&this.scrollToIndex(b)}constructor(b){this.host=b,this.cvcTableScrollerOnScroll=new e.bkB,this.cvcTableScrollerOnFetch=new e.bkB,this.cvcTableScrollerTargetHeight=140,this.cvcTableScrollerFetchCount=50,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroller directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,k.$)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,Mr.c)(this.onScrollThrottleTime,Ur.E,{leading:!0,trailing:!0}),(0,On.M)(b=>this.cvcTableScrollerOnScroll.next("scroll")),(0,xs.B)(this.onScrollDebounceTime),(0,pn.s)(this)).subscribe(b=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,me.T)(b=>this.viewport.measureScrollOffset("bottom")),(0,le.J)(),(0,qt.p)(([b,a])=>a{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(a){console.error(a)}})}loadMore(b){const a=this.cvcTableScrollerQueryRef;if(!b&&a)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(b&&!a)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(b&&a){const[h,_,ee]=[this.cvcTableScrollerFetchCount,b.hasNextPage,b.endCursor];if(!h||!ee)throw new Error("table-scroll PageInfo invalid.");if(!_)return;this.cvcTableScrollerOnFetch.next({first:h,after:ee})}}scrollToIndex(b){const[a,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!a||!h)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");h.scrollToIndex(b)}scrollToOffset(b){const[a,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!a||!h)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");h.scrollToOffset(b)}static#e=this.\u0275fac=function(a){return new(a||H8)(e.rXU(to.CP))};static#t=this.\u0275dir=e.FsC({type:H8,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}})};function j4(u,b){1&u&&e.nrm(0,"span",8)}function Uf(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",9),e.bIt("click",function(){e.eBV(a),e.XpG(2);const _=e.sdS(3),ee=e.XpG();return _.value="",e.Njj(ee.cvcModelChange.next(null))}),e.k0s()}}function U4(u,b){if(1&u&&e.DNE(0,j4,1,0,"span",6)(1,Uf,1,0,"span",7),2&u){e.XpG();const a=e.sdS(3);e.Y8G("ngIf",!a.value),e.R7$(),e.Y8G("ngIf",a.value)}}function dp(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-input-group",4)(2,"input",5,1),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcModelChange.next(_))}),e.k0s()(),e.DNE(4,U4,2,2,"ng-template",null,2,e.C5r),e.bVm()}if(2&u){const a=e.sdS(5),h=e.XpG();e.R7$(),e.Y8G("nzSuffix",a),e.R7$(),e.Y8G("placeholder",h.cvcPlaceholder)("ngModel",h.cvcModel)}}function Jh(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number-group",10)(1,"nz-input-number",11,1),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.cvcModelChange.next(""===_?null:_))}),e.k0s()()}if(2&u){let a;const h=e.XpG();e.R7$(),e.Y8G("nzPlaceHolder",null!==(a=h.cvcPlaceholder)&&void 0!==a?a:"")("ngModel",h.cvcModel)("nzMin",1)("nzStep",1)}}Qh=(0,vi.Cg)([(0,pn.d)()],Qh);let G4=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.bkB,this.cvcInputType="default"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[["numericInput",""],["filterInput",""],["suffixIcon",""],[4,"ngIf","ngIfElse"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"ngModelChange","placeholder","ngModel"],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"]],template:function(h,_){if(1&h&&e.DNE(0,dp,6,3,"ng-container",3)(1,Jh,3,4,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf","default"===_.cvcInputType)("ngIfElse",ee)}},dependencies:[M.bT,t.me,t.BC,t.vS,di.c,Z.Dn,F.Sy,F.tg,F.vN,_e,et]})}return u})();function nu(u,b){if(1&u){const a=e.RV6();e.j41(0,"li",5),e.bIt("click",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.cvcOptionChange.next({key:ee.cvcColumnKey,value:_.value}))}),e.nrm(1,"cvc-attribute-tag",6),e.k0s()}if(2&u){const a=b.$implicit,h=e.XpG();e.Y8G("nzSelected",(null==h.cvcOption?null:h.cvcOption.value)===a.value),e.R7$(),e.Y8G("cvcFullWidth",!0)("cvcChecked",(null==h.cvcOption?null:h.cvcOption.value)===a.value)("cvcAttrValue",a.value)}}let mh=(()=>{class u{constructor(){this.cvcOptionChange=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-enum-filter-menu"]],inputs:{cvcColumnKey:"cvcColumnKey",cvcFilterOptions:"cvcFilterOptions",cvcOption:"cvcOption"},outputs:{cvcOptionChange:"cvcOptionChange"},decls:6,vars:2,consts:[["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[2,"padding","3px"],["nz-button","","nzType","default","nzBlock","","nzSize","small",3,"click","disabled"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"click","nzSelected"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(h,_){1&h&&(e.j41(0,"ul",0),e.DNE(1,nu,2,4,"li",1),e.j41(2,"li",2)(3,"button",3),e.bIt("click",function(){return _.cvcOptionChange.next({key:_.cvcColumnKey,value:null})}),e.nrm(4,"span",4),e.EFF(5," Reset "),e.k0s()()()),2&h&&(e.R7$(),e.Y8G("ngForOf",_.cvcFilterOptions),e.R7$(2),e.Y8G("disabled",null===(null==_.cvcOption?null:_.cvcOption.value)))},dependencies:[M.Sq,eo,Kn.aO,di.c,ho.p,Z.Dn,Ai.jS,Ai.CU],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] ul li:hover{background-color:#e6f7ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected{background-color:#1890ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected:active{background-color:#096dd9}"],changeDetection:0})}return u})();const Y4=()=>[],hp=()=>({x:"800px",y:"200px"}),Zh=(u,b,a)=>({$implicit:u,config:b,emphasize:a}),W4=(u,b,a,h,_)=>({tagList:u,tag:b,showPopover:a,status:h,emphasize:_}),pp=(u,b)=>({$implicit:u,emphasize:b}),K4=()=>[6,6],fp=u=>({$implicit:u});function X4(u,b){if(1&u&&e.nrm(0,"th",31),2&u){let a;const h=b.ngIf;e.Y8G("nzShowCheckbox",h.checkbox.th.showCheckbox||!1)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Gf(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",32),e.nI1(1,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.sort.changes.next({key:ee.key,value:_}))}),e.j41(2,"span",33),e.EFF(3),e.k0s()()}if(2&u){let a,h;const _=b.ngIf;e.Y8G("nzColumnKey",_.key)("nzAlign",null!==(a=_.align)&&void 0!==a?a:"left")("nzWidth",_.width)("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzShowSort",void 0!==_.sort)("nzSortFn",!0)("nzSortOrder",(null==(h=e.bMT(1,10,_.sort.changes))?null:h.value)||null),e.R7$(2),e.Y8G("nzTooltipTitle",_.tooltip),e.R7$(),e.SpI(" ",_.label," ")}}function Yf(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function gh(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Q4(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function qh(u,b){if(1&u&&(e.qex(0),e.DNE(1,X4,1,5,"th",28),e.nI1(2,"guardType"),e.DNE(3,Gf,4,12,"th",29),e.nI1(4,"guardType"),e.DNE(5,Yf,2,7,"th",30),e.nI1(6,"guardType"),e.DNE(7,gh,2,7,"th",30),e.nI1(8,"guardType"),e.DNE(9,Q4,2,7,"th",30),e.nI1(10,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,a,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,a,h.colGuards.isDefaultCol))}}function e2(u,b){if(1&u&&(e.qex(0),e.DNE(1,qh,11,20,"ng-container",27),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function V1(u,b){if(1&u&&(e.j41(0,"th",39),e.EFF(1," \xa0 "),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function vh(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-variant-table-filter-input",42),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf,ft=e.XpG().ngIf;return e.Njj(ee.changes.next({key:ft.key,value:_}))}),e.k0s()}if(2&u){const a=e.XpG().ngIf;e.Y8G("cvcInputType",a.filter.inputType)("cvcPlaceholder",a.filter.options[0].key)("cvcModel",a.filter.options[0].value)}}function t2(u,b){if(1&u&&(e.j41(0,"th",40),e.DNE(1,vh,1,3,"cvc-variant-table-filter-input",41),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function Rd(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",43,4),e.nI1(2,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.sort.changes.next({key:ee.key,value:_}))}),e.j41(3,"nz-filter-trigger",44,5),e.nI1(5,"ngrxPush"),e.nrm(6,"span",45),e.k0s(),e.j41(7,"nz-dropdown-menu",null,6)(9,"cvc-variant-enum-filter-menu",46),e.nI1(10,"ngrxPush"),e.bIt("cvcOptionChange",function(_){const ee=e.eBV(a).ngIf,ft=e.sdS(4);return ee.filter.changes.next(_),e.Njj(ft.nzVisible=!1)}),e.k0s()()()}if(2&u){let a,h,_;const ee=b.ngIf,ft=e.sdS(8);e.Y8G("nzColumnKey",ee.key)("nzWidth",ee.width)("nzAlign",null!==(a=ee.align)&&void 0!==a?a:"left")("nzLeft",ee.fixedLeft||!1)("nzRight",ee.fixedRight||!1)("nzShowSort",!0)("nzSortFn",!0)("nzSortOrder",(null==(h=e.bMT(2,15,ee.sort.changes))?null:h.value)||null)("nzShowFilter",void 0!==ee.filter)("nzFilterFn",!0),e.R7$(3),e.Y8G("nzDropdownMenu",ft)("nzActive",null!==(null==(_=e.bMT(5,17,ee.filter.changes))?null:_.value)),e.R7$(6),e.Y8G("cvcColumnKey",ee.key)("cvcFilterOptions",ee.filter.options)("cvcOption",e.bMT(10,19,ee.filter.changes))}}function _h(u,b){if(1&u){const a=e.RV6();e.j41(0,"th",47,4)(2,"nz-filter-trigger",44),e.nI1(3,"ngrxPush"),e.nrm(4,"span",48),e.k0s(),e.j41(5,"nz-dropdown-menu",null,7)(7,"div",49)(8,"div",50)(9,"cvc-variant-table-filter-input",51),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf;return e.Njj(ee.filter.changes.next({key:ee.key,value:_}))}),e.k0s()()()()()}if(2&u){let a,h;const _=b.ngIf,ee=e.sdS(6);e.Y8G("nzColumnKey",_.key)("nzWidth",_.width)("nzAlign",null!==(a=_.align)&&void 0!==a?a:"left")("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzFilterFn",!0),e.R7$(2),e.Y8G("nzDropdownMenu",ee)("nzActive",null!==(null==(h=e.bMT(3,10,_.filter.changes))?null:h.value)),e.R7$(7),e.Y8G("cvcPlaceholder",_.filter.options[0].key)("cvcModel",_.filter.options[0].value)}}function L1(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-variant-table-filter-input",51),e.bIt("cvcModelChange",function(_){const ee=e.eBV(a).ngIf,ft=e.XpG().ngIf;return e.Njj(ee.changes.next({key:ft.key,value:_}))}),e.k0s()}if(2&u){const a=e.XpG().ngIf;e.Y8G("cvcPlaceholder",a.filter.options[0].key)("cvcModel",a.filter.options[0].value)}}function n2(u,b){if(1&u&&(e.j41(0,"th",40),e.DNE(1,L1,1,2,"cvc-variant-table-filter-input",52),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function yh(u,b){if(1&u&&(e.qex(0),e.DNE(1,V1,2,5,"th",35),e.nI1(2,"guardType"),e.DNE(3,t2,2,6,"th",36),e.nI1(4,"guardType"),e.DNE(5,Rd,11,21,"th",37),e.nI1(6,"guardType"),e.DNE(7,_h,10,12,"th",38),e.nI1(8,"guardType"),e.DNE(9,n2,2,6,"th",36),e.nI1(10,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,a,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,a,h.colGuards.isDefaultCol))}}function Nd(u,b){if(1&u&&(e.qex(0),e.DNE(1,yh,11,20,"ng-container",27),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function o2(u,b){if(1&u&&(e.j41(0,"thead")(1,"tr",24),e.DNE(2,e2,2,1,"ng-container",25),e.k0s(),e.j41(3,"tr",26),e.DNE(4,Nd,2,1,"ng-container",25),e.k0s()()),2&u){const a=b.ngrxLet;e.R7$(2),e.Y8G("ngForOf",a),e.R7$(2),e.Y8G("ngForOf",a)}}function Wf(u,b){if(1&u){const a=e.RV6();e.j41(0,"td",58),e.bIt("nzCheckedChange",function(_){e.eBV(a);const ee=e.XpG(3).$implicit,ft=e.XpG(2);return e.Njj(ft.onRowSelected$.next({id:ee.id,selected:_}))}),e.k0s()}if(2&u){let a;const h=b.ngIf,_=e.XpG(3).$implicit;e.Y8G("nzChecked",_.selected)("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function r2(u,b){1&u&&e.eu8(0)}function kd(u,b){if(1&u&&(e.qex(0),e.DNE(1,r2,1,0,"ng-container",61),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let a;const h=e.XpG().ngIf,_=e.XpG().ngIf,ee=e.sdS(3),ft=e.sdS(5),nn=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,nn[h])?ee:ft)("ngTemplateOutletContext",e.sMw(6,Zh,nn[h],_,null==(a=e.bMT(3,4,_.filter.changes))?null:a.value))}}function J4(u,b){if(1&u&&(e.qex(0),e.DNE(1,kd,4,10,"ng-container",60),e.bVm()),2&u){const a=b.ngIf;e.XpG();const h=e.sdS(7),_=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngIf",_[a])("ngIfElse",h)}}function mp(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-collection-tag",63),e.bVm()),2&u){const a=e.XpG(2),h=a.$implicit,_=a.config,ee=a.emphasize;e.XpG();const ft=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcCollectionTagConfig",e.s1E(3,W4,h.slice(_.tag.maxTags,h.length),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ee))("cvcTagTemplate",ft)("cvcShowFullLabels",!0)}}function Z4(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-tag-list",62),e.DNE(2,mp,2,9,"ng-container",27),e.bVm()),2&u){const a=e.XpG(),h=a.$implicit,_=a.config,ee=a.emphasize;e.XpG();const ft=e.sdS(5),nn=e.XpG(5);e.R7$(),e.Y8G("cvcTagTemplate",ft)("cvcTagListConfig",e.s1E(3,W4,h.slice(0,_.tag.maxTags),_.tag,!nn.isScrolling,!0===_.showStatus?h.status:void 0,ee)),e.R7$(),e.Y8G("ngIf",h.slice(_.tag.maxTags,h.length).length>0)}}function q4(u,b){if(1&u&&e.DNE(0,Z4,3,9,"ng-container",60),2&u){const a=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",a.length>0)("ngIfElse",h)}}function s2(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",64),2&u){let a;const h=b.$implicit,_=b.config,ee=b.emphasize,ft=e.XpG(6);e.Y8G("cvcTruncateLabel",null==_.tag?null:_.tag.truncateLabel)("cvcLinkableEntity",h)("cvcEmphasize",ee)("cvcShowPopover",!ft.isScrolling)("cvcStatus",!0===_.showStatus?h.status:void 0)("cvcFullWidth",null!==(a=null==_.tag?null:_.tag.fullWidth)&&void 0!==a&&a)}}function gp(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function e0(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,J4,2,2,"ng-container",27)(2,q4,1,2,"ng-template",null,8,e.C5r)(4,s2,1,6,"ng-template",null,9,e.C5r)(6,gp,1,1,"ng-template",null,10,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.context||h.key)}}function t0(u,b){if(1&u&&(e.nrm(0,"cvc-attribute-tag",67),e.nI1(1,"evidenceEnumDisplay")),2&u){const a=e.XpG().ngIf,h=e.XpG(3).$implicit,_=e.XpG(2);e.Y8G("cvcFullWidth",!0)("cvcAttrValue",h[a.key])("cvcTooltip",e.bMT(1,3,!_.isScrolling&&h[a.key]))}}function Vd(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function vp(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,t0,2,5,"cvc-attribute-tag",66)(2,Vd,1,1,"ng-template",null,11,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(3),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function a2(u,b){if(1&u&&(e.j41(0,"nz-tag",69),e.nrm(1,"span",70),e.k0s()),2&u){const a=e.XpG().ngIf,h=e.XpG(3).$implicit;e.Y8G("nzTooltipTitle",h[a.key])}}function n0(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function o0(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,a2,2,1,"nz-tag",68)(2,n0,1,1,"ng-template",null,12,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(3),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function Kf(u,b){1&u&&e.eu8(0)}function Ld(u,b){if(1&u&&(e.qex(0),e.DNE(1,Kf,1,0,"ng-container",61),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let a;const h=b.ngIf,_=e.XpG().ngIf,ee=e.sdS(3),ft=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,h)?ee:ft)("ngTemplateOutletContext",e.l_i(6,pp,h,null==(a=e.bMT(3,4,_.filter.changes))?null:a.value))}}function r0(u,b){1&u&&e.eu8(0)}function Ch(u,b){1&u&&(e.qex(0),e.EFF(1,", "),e.bVm())}function c2(u,b){if(1&u&&(e.qex(0),e.DNE(1,r0,1,0,"ng-container",61)(2,Ch,2,0,"ng-container",27),e.bVm()),2&u){const a=b.$implicit,h=b.last,_=e.XpG(2).emphasize;e.XpG();const ee=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",ee)("ngTemplateOutletContext",e.l_i(3,pp,a,_)),e.R7$(),e.Y8G("ngIf",!h)}}function _p(u,b){if(1&u&&(e.qex(0),e.DNE(1,c2,3,6,"ng-container",25),e.bVm()),2&u){const a=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",a)}}function s0(u,b){if(1&u&&e.DNE(0,_p,2,1,"ng-container",60),2&u){const a=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",a.length>0)("ngIfElse",h)}}function yp(u,b){if(1&u&&(e.nrm(0,"span",72),e.nI1(1,"highlightTypeahead")),2&u){const a=b.$implicit,h=b.emphasize,_=e.XpG().ngIf;e.Y8G("innerHtml",e.i5U(1,1,_.objectKey?a[_.objectKey]:a,h),e.npT)}}function l2(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const a=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",a.emptyValueCategory||"unspecified")}}function Cp(u,b){if(1&u&&(e.j41(0,"td",71),e.DNE(1,Ld,4,9,"ng-container",60)(2,s0,1,2,"ng-template",null,13,e.C5r)(4,yp,2,4,"ng-template",null,14,e.C5r)(6,l2,1,1,"ng-template",null,15,e.C5r),e.k0s()),2&u){let a;const h=b.ngIf,_=e.sdS(7),ee=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(a=h.align)&&void 0!==a?a:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ee[h.key])("ngIfElse",_)}}function Bd(u,b){if(1&u&&(e.qex(0),e.DNE(1,Wf,1,4,"td",55),e.nI1(2,"guardType"),e.DNE(3,e0,8,4,"td",56),e.nI1(4,"guardType"),e.DNE(5,vp,4,5,"td",56),e.nI1(6,"guardType"),e.DNE(7,o0,4,5,"td",56),e.nI1(8,"guardType"),e.DNE(9,Cp,8,5,"td",57),e.nI1(10,"guardType"),e.bVm()),2&u){const a=e.XpG().$implicit,h=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,a,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,a,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,a,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,a,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,a,h.colGuards.isDefaultCol))}}function bp(u,b){if(1&u&&(e.qex(0),e.DNE(1,Bd,11,20,"ng-container",27),e.bVm()),2&u){const a=b.$implicit;e.R7$(),e.Y8G("ngIf",!a.hidden)}}function bh(u,b){if(1&u&&(e.j41(0,"tr",54),e.DNE(1,bp,2,1,"ng-container",25),e.k0s()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngForOf",a)}}function Ep(u,b){1&u&&(e.j41(0,"tbody"),e.DNE(1,bh,2,1,"ng-template",53),e.k0s())}function Tp(u,b){1&u&&e.nrm(0,"span",77)}function zp(u,b){if(1&u){const a=e.RV6();e.j41(0,"span",78),e.bIt("click",function(){e.eBV(a),e.XpG(2);const _=e.sdS(3),ee=e.XpG().filter;return _.value="",e.Njj(ee.changes.next({key:ee.key,value:null}))}),e.k0s()}}function Eh(u,b){if(1&u&&e.DNE(0,Tp,1,0,"span",75)(1,zp,1,0,"span",76),2&u){e.XpG();const a=e.sdS(3);e.Y8G("ngIf",!a.value),e.R7$(),e.Y8G("ngIf",a.value)}}function u2(u,b){if(1&u){const a=e.RV6();e.qex(0),e.j41(1,"nz-input-group",73)(2,"input",74,17),e.bIt("nzFilterChange",function(_){e.eBV(a);const ee=e.XpG().filter;return e.Njj(ee.changes.next({key:ee.key,value:_}))}),e.k0s()(),e.DNE(4,Eh,2,2,"ng-template",null,18,e.C5r),e.bVm()}if(2&u){const a=e.sdS(5),h=e.XpG().filter;e.R7$(),e.Y8G("nzSuffix",a),e.R7$(),e.Y8G("placeholder",h.placeholder)("ngModel",h.defaultValue)}}function Mp(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-input-number-group",79)(1,"nz-input-number",80,17),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG().filter;return e.Njj(ee.changes.next({key:ee.key,value:_}))}),e.k0s()()}if(2&u){const a=e.XpG().filter;e.R7$(),e.Y8G("nzPlaceHolder",a.placeholder)("ngModel",a.defaultValue)("nzMin",1)("nzStep",1)}}function Th(u,b){if(1&u&&e.DNE(0,u2,6,3,"ng-container",60)(1,Mp,3,4,"ng-template",null,16,e.C5r),2&u){const a=b.filter,h=e.sdS(2);e.Y8G("ngIf",void 0===a.inputType||"default"===a.inputType)("ngIfElse",h)}}function d2(u,b){1&u&&(e.j41(0,"nz-row",81)(1,"nz-col")(2,"span"),e.EFF(3,"Use checkboxes to select or deselect Variants"),e.k0s()()()),2&u&&e.Y8G("nzGutter",e.lJ4(1,K4))}function B1(u,b){1&u&&(e.j41(0,"nz-tag",91),e.nrm(1,"i",92),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function a0(u,b){if(1&u&&(e.j41(0,"nz-tag",94),e.nrm(1,"span",95),e.j41(2,"span",96),e.EFF(3),e.k0s()()),2&u){e.XpG();const a=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",a)("nzTooltipTitleContext",e.eq3(3,fp,h.query)),e.R7$(),e.SpI(" Query Error",h.query.length>1?"s":""," ")}}function Sp(u,b){if(1&u&&(e.j41(0,"nz-tag",94)(1,"span",96)(2,"span",97)(3,"strong"),e.EFF(4),e.k0s()()()()),2&u){e.XpG();const a=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(),e.Y8G("nzTooltipTitle",a)("nzTooltipTitleContext",e.eq3(3,fp,h.network)),e.R7$(3),e.SpI(" Network Error",h.query.length>1?"s":""," ")}}function Xf(u,b){if(1&u&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&u){const a=b.$implicit;e.R7$(),e.SpI(" ",a.message," ")}}function zh(u,b){1&u&&e.DNE(0,Xf,2,1,"div",25),2&u&&e.Y8G("ngForOf",b.$implicit)}function h2(u,b){if(1&u&&(e.qex(0),e.DNE(1,a0,4,5,"nz-tag",93)(2,Sp,5,5,"nz-tag",93)(3,zh,1,1,"ng-template",null,20,e.C5r),e.bVm()),2&u){const a=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",a.query),e.R7$(),e.Y8G("ngIf",a.network)}}function Dp(u,b){if(1&u&&(e.qex(0),e.DNE(1,h2,5,2,"ng-container",27),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(),e.Y8G("ngIf",a)}}function Op(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",98)(1,"nz-checkbox-group",99),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onPreferenceChange$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngModel",e.bMT(2,1,a.setPreference$))}}function Ip(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-row",81)(1,"nz-col",82),e.DNE(2,B1,4,0,"nz-tag",83),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nrm(5,"cvc-no-more-rows",84),e.nI1(6,"ngrxPush"),e.k0s(),e.j41(7,"nz-col",82),e.DNE(8,Dp,2,1,"ng-container",23),e.k0s(),e.j41(9,"nz-col",82),e.nrm(10,"cvc-table-counts2",85),e.k0s(),e.j41(11,"nz-col",86)(12,"nz-button-group")(13,"button",87),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onResetFilter$.next())}),e.nrm(14,"span",88),e.k0s(),e.j41(15,"button",89),e.nrm(16,"span",90),e.k0s()(),e.DNE(17,Op,3,3,"ng-template",null,19,e.C5r),e.k0s()()}if(2&u){const a=e.sdS(18),h=e.XpG();e.Y8G("nzGutter",8),e.R7$(2),e.Y8G("ngIf",e.bMT(3,7,h.loading$)&&e.bMT(4,9,h.isFetchMore$)),e.R7$(3),e.Y8G("cvcShowTag",e.bMT(6,11,h.noMoreRows$)),e.R7$(3),e.Y8G("ngrxLet",h.queryError$),e.R7$(2),e.Y8G("cvcTableCountsConnection",h.connection$),e.R7$(5),e.Y8G("nzPopoverContent",a)("nzPopoverTrigger","click")}}let ml=class j8{constructor(b,a,h){this.queryGQL=b,this.apollo=a,this.cdr=h,this.cvcSelectedIdsChange=new e.bkB,this.isScrolling=!1,this.colGuards=ap,this.onFetchMore$=new V.B,this.onPreferenceChange$=new dn.t([]),this.onResetFilter$=new V.B,this.onRowSelected$=new V.B,this.onScroll$=new dn.t("stop"),this.onSetSelectedRow$=new dn.t(new Set),this.queryError$=new V.B,this.queryRequest$=new V.B,this.queryResult$=new Ni.m(1),this.isFetchMore$=new dn.t(!1),this.noMoreRows$=new dn.t(!1),this.scrollToIndex$=new V.B,this.tableConfig=new up;const _=(0,po.z)(this.tableConfig.getFilterStreams()),ee=(0,po.z)(this.tableConfig.getSortStreams()).pipe((0,qt.p)(ft=>ft.filter(nn=>null!==nn.value).length<=1));this.refetch$=(0,po.z)([ee,_]).pipe((0,me.T)(([ft,nn])=>({query:"refetch",sort:ft,filter:nn}))),this.fetchMore$=this.onFetchMore$.pipe((0,me.T)(ft=>({query:"fetchMore",fetchMore:{...ft}}))),(0,ne.h)(this.refetch$,this.fetchMore$).pipe((0,xs.B)(50),(0,pn.s)(this)).subscribe(ft=>{const nn=this.getQueryVars(ft);this.queryRef?(this.queryError$.next({}),"refetch"===ft.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(nn).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:nn}).then(Rn=>{(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(nn),this.queryRef.valueChanges.pipe((0,pn.s)(this)).subscribe(Rn=>{this.queryResult$.next(Rn),(Rn.error||Rn.errors)&&this.queryError$.next(this.getRequestErrors(Rn))}))}),this.loading$=this.queryResult$.pipe((0,$i.E)("loading"),(0,J.F)()),this.connection$=this.queryResult$.pipe((0,$i.E)("data","browseVariants"),(0,qt.p)(fo.kP)),this.pageInfo$=this.connection$.pipe((0,$i.E)("pageInfo"),(0,qt.p)(fo.kP)),this.row$=(0,po.z)([this.connection$.pipe((0,$i.E)("edges"),(0,qt.p)(fo.kP),(0,me.T)(ft=>ft.map(nn=>nn.node))),this.onSetSelectedRow$]).pipe((0,me.T)(([ft,nn])=>ft.map(Rn=>{if(Rn)return{...Rn,variant:{__typename:"Variant",id:Rn.id,name:Rn.name,link:Rn.link},feature:{__typename:"Feature",id:Rn.featureId,name:Rn.featureName,link:Rn.featureLink},selected:nn.has(Rn.id)}}))),this.col$=new dn.t(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,me.T)(ft=>this.getColPrefsFromTableConfig(ft))),this.onPreferenceChange$.pipe((0,Yi.E)(this.col$),(0,me.T)(([ft,nn])=>this.getTableConfigFromColPrefs(ft,nn)),(0,pn.s)(this)).subscribe(ft=>{this.col$.next(ft)}),this.onSetTableFilter$=new dn.t([]),this.onSetTableFilter$.pipe((0,pn.s)(this)).subscribe(ft=>{const nn=this.col$.getValue();ft.forEach(Rn=>{const xi=nn.find(Co=>Co.key===Rn.key);if(void 0!==xi.filter.inputType){const Co=xi.filter.options[0];if(null===Rn.value)return xi.filter.options=[{...Co,value:null}],void xi.filter.changes.next(Rn);if(Array.isArray(Rn.value)&&0===Rn.value.length)return xi.filter.options=[{...Co,value:null}],void xi.filter.changes.next({...Rn,value:null});let Ho;Array.isArray(Rn.value)?Rn.value.length>0&&(Ho=Rn.value[0]):Ho=Rn.value;const Na=xi.filter.typename;if(!Na||!Ho)return void console.error(`variant-manager requires column config '${xi.key}' provide a typename for cvcTablePrefs Input to set its filter`);const Bc=this.getEntityName(Na,Ho);if(!Bc)return;xi.filter.options=[{...Co,value:Bc}],xi.filter.changes.next({...Rn,value:Bc})}else Xh(xi)&&xi.filter.changes.next(Rn)})}),this.onSetTablePref$=new dn.t([]),this.onSetTablePref$.pipe((0,Yi.E)(this.setPreference$),(0,me.T)(([ft,nn])=>{const Rn=[];return ft.forEach(xi=>{let Co=nn.find(Ho=>Ho.value===xi.value);Co?Rn.push({...Co,...xi}):console.warn(`variant-manager onSetTablePref$ received updated preferences for column '${xi.value}', but a column with that key could not be found.`)}),Rn}),(0,pn.s)(this)).subscribe(ft=>{this.onPreferenceChange$.next(ft)}),this.onRowSelected$.pipe((0,Yi.E)(this.onSetSelectedRow$),(0,pn.s)(this)).subscribe(([ft,nn])=>{ft.selected?nn.add(ft.id):nn.delete(ft.id),this.onSetSelectedRow$.next(nn),this.cvcSelectedIdsChange.next(Array.from(nn))}),this.onScroll$.pipe((0,me.T)(ft=>"stop"!==ft),(0,J.F)(),(0,pn.s)(this)).subscribe(ft=>{this.isScrolling=ft,this.cdr.detectChanges()}),this.onScroll$.pipe((0,qt.p)(ft=>"bottom"===ft),(0,Yi.E)(this.pageInfo$),(0,me.T)(([ft,nn])=>nn),(0,pn.s)(this)).subscribe(ft=>{ft.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,Yi.E)((0,Xo.of)(this.tableConfig.get())),(0,pn.s)(this)).subscribe(([b,a])=>{const h=[];a.forEach(_=>{if(Kh(_)&&_.sort.changes&&_.sort.changes.next({key:_.key,value:_.sort.default??null}),Xh(_)){const ee=_.filter.options.find(ft=>1==ft.byDefault)?.value;_.filter.changes&&_.filter.changes.next({key:_.key,value:ee||null})}h.push(_)}),this.col$.next(h)})}getQueryVars(b){const a=this.getQueryFilterParams(b);return{...this.getQuerySortParams(b),...a,...b.fetchMore}}getQuerySortParams(b){if(!b.sort)return;const h=b.sort.find(ee=>null!==ee.value);return h?{sortBy:{column:this.getSortColumnFromColKey(h.key),direction:"ascend"===h.value?wn.UEL.Asc:wn.UEL.Desc||void 0}}:void 0}getQueryFilterParams(b){let a={};return b.filter&&b.filter.forEach(h=>{a[lp[h.key]||h.key]=null===h.value||""===h.value?void 0:h.value}),a}getRequestErrors(b){return{query:b.errors,network:b.error}}getTableConfigFromColPrefs(b,a){return a.forEach(h=>{if(H4.find(ee=>ee===h.key))return;const _=b.find(ee=>ee.value===h.key);_&&(h.hidden=!_?.checked)}),[...a]}getColPrefsFromTableConfig(b){let a=[];return b.forEach(h=>{H4.find(_=>_===h.key)||a.push({label:h.tooltip||h.label,value:h.key,checked:!h.hidden})}),a}getSortColumnFromColKey(b){return $4[b]}getEntityName(b,a){const h={id:`${b}:${a}`,fragment:Uu.J1` - fragment Linkable${b}Entity on ${b} { - id - name - link - }`},_=this.apollo.client.readFragment(h);if(_)return _.name;console.error(`variant-manager onSetTableFilter$ could not find cached entity ${b}:${a} to populate input filter`)}trackByIndex(b,a){return a?.id}ngOnChanges(b){if(b.cvcTableSettings){const a=b.cvcTableSettings.currentValue;void 0!==a&&this.onSetTableFilter$.next(a.filters)}if(b.cvcSelectedIds){const a=b.cvcSelectedIds.currentValue,h=new Set;void 0!==a&&a.forEach(_=>h.add(_)),this.onSetSelectedRow$.next(h)}}static#e=this.\u0275fac=function(a){return new(a||j8)(e.rXU(wn.ngC),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:j8,selectors:[["cvc-variant-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.OA$],decls:16,vars:27,consts:[["virtualTable",""],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],["enumTableFilter",""],["enumTagFilterTrigger",""],["enumFilterMenu","nzDropdownMenu"],["textTagFilterMenu","nzDropdownMenu"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],["emptyEnumTagCell",""],["emptyTextTagCell",""],["staticList",""],["staticValue",""],["emptyDefaultCell",""],["numericInput",""],["filterInput",""],["suffixIcon",""],["prefsPopover",""],["queryError",""],["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"cvcTableScrollerOnScroll","cvcTableScrollerOnFetch","nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading"],[4,"ngrxLet"],[1,"col-header-row"],[4,"ngFor","ngForOf"],[1,"filter-row"],[4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange",4,"ngIf"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle",4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight"],[3,"nzSortOrderChange","nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder"],["nz-tooltip","",1,"col-header-label",3,"nzTooltipTitle"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],[3,"cvcModelChange","cvcInputType","cvcPlaceholder","cvcModel"],["nzCustomFilter","",1,"attribute-filter",3,"nzSortOrderChange","nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn"],[3,"nzDropdownMenu","nzActive"],["nz-icon","","nzType","filter","nzTheme","fill"],[3,"cvcOptionChange","cvcColumnKey","cvcFilterOptions","cvcOption"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcModelChange","cvcPlaceholder","cvcModel"],[3,"cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],["class","default-col-type",3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzCheckedChange","nzChecked","nzAlign","nzLeft","nzRight"],[3,"nzAlign","nzLeft","nzRight"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"cvcTagTemplate","cvcTagListConfig"],[3,"cvcCollectionTagConfig","cvcTagTemplate","cvcShowFullLabels"],[3,"cvcTruncateLabel","cvcLinkableEntity","cvcEmphasize","cvcShowPopover","cvcStatus","cvcFullWidth"],[3,"cvcEmptyCategory"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip",4,"ngIf","ngIfElse"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],[1,"default-col-type",3,"nzAlign","nzLeft","nzRight"],[3,"innerHtml"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"nzFilterChange","placeholder","ngModel"],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"],[3,"nzGutter"],["nzFlex","auto"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],[3,"cvcTableCountsConnection"],["nzFlex","35px"],["nz-button","","type","button","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-button","","nz-popover","","nzPopoverTitle","Visible Columns","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["nzColor","error",2,"margin-left","12px"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nz-tooltip","",2,"cursor","help",3,"nzTooltipTitle","nzTooltipTitleContext"],["nz-typography",""],[1,"prefs-popover"],[3,"ngModelChange","ngModel"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"nz-card",21)(1,"nz-table",22,0),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.bIt("cvcTableScrollerOnScroll",function(ft){return e.eBV(_),e.Njj(h.onScroll$.next(ft))})("cvcTableScrollerOnFetch",function(ft){return e.eBV(_),e.Njj(h.onFetchMore$.next(ft))}),e.DNE(8,o2,5,2,"thead",23)(9,Ep,2,0,"tbody",23),e.k0s()(),e.DNE(10,Th,3,2,"ng-template",null,1,e.C5r)(12,d2,4,2,"ng-template",null,2,e.C5r)(14,Ip,19,13,"ng-template",null,3,e.C5r)}if(2&a){const _=e.sdS(13),ee=e.sdS(15);e.Y8G("nzTitle",_)("nzExtra",ee),e.R7$(),e.Y8G("nzData",e.bMT(3,15,h.row$)||e.lJ4(25,Y4))("cvcTableScrollerQueryRef",h.queryRef)("cvcTableScrollerPageInfo",e.bMT(4,17,h.pageInfo$))("cvcTableScrollerToIndex",e.bMT(5,19,h.scrollToIndex$))("nzScroll",e.lJ4(26,hp))("nzVirtualForTrackBy",h.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.bMT(6,21,h.loading$)&&!e.bMT(7,23,h.isFetchMore$)),e.R7$(7),e.Y8G("ngrxLet",h.col$),e.R7$(),e.Y8G("ngrxLet",h.col$)}},dependencies:[M.Sq,M.bT,M.T3,tn.b,ae,Xs,eo,lu,Ps.o,Jc.M,t.me,t.BC,t.vS,bi.Nj,Kn.aO,Kn.dn,di.c,ho.p,L.Uq,L.e,Z.Dn,F.Sy,F.tg,F.vN,qe.Di,Yo.cK,ht.Ov,ns.wQ,_e,et,gi.L_,to.CP,to.Cc,to.SO,to._4,to.GM,to.IL,to.aj,to.kt,to.CC,to.OL,to.Kg,to.jc,to.oZ,Gn.s,hn.LH,Qh,G4,mh,Or,za.pW,Xr.M,Hi,bi.L9],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:6px}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type cvc-entity-tag[_ngcontent-%COMP%]{margin-left:6px}td.default-col-type[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ant-table-filter-dropdown[_ngcontent-%COMP%]{padding:8px}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label{display:block}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label span{display:inline-block}"],changeDetection:0})};ml=(0,vi.Cg)([(0,pn.d)()],ml);const c0=()=>[0,0];function l0(u,b){if(1&u&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.k0s(),e.bVm()),2&u){const a=b.ngrxLet;e.R7$(2),e.JRh(a.message)}}function wp(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG();e.JRh(a.successMessage)}}let p2=class U8{set cvcFeatureId(b){b&&this.featureId$.next(b)}set cvcFeatureName(b){b&&this.featureName$.next(b)}set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,a){this.query=b,this.errors=a,this.cvcOnCreate=new e.bkB,this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new V.B,this.searchString$=new dn.t(void 0),this.featureName$=new dn.t(void 0),this.featureId$=new dn.t(void 0),this.formMessageDisplay$=new dn.t({message:"Variant does not exist, create it?"}),this.queryMutator=new Ar.E(this.errors),this.addVariantMutator=new Ar.E(this.errors),this.minNameLength=3,this.fields=[{key:"featureId",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Add Variant"}}],this.featureId$.pipe((0,pn.s)(this)).subscribe(h=>{this.model.featureId=h}),this.searchString$.pipe((0,pn.s)(this)).subscribe(h=>{this.model.name=h,this.formMessageDisplay$.next(void 0===h||void 0!==h&&h.length{console.log("variant-quick-add form model submitted.",h),this.submitVariant(h)})}submitVariant(b){b.name&&b.featureId?this.mutationState=this.addVariantMutator.mutate(this.query,{name:b.name,featureId:b.featureId,organizationId:b.organizationId},{},a=>{console.log("variant-quick-add submit data callback",a),a.createVariant&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{a&&a.createVariant&&this.cvcOnCreate.next({id:a.createVariant.variant.id,new:a.createVariant.new})},1e3))}):console.error("variant-quick-add form submitVariant requires model with valid name and featureId.")}ngOnChanges(b){if(b.cvcFeatureId){const a=b.cvcFeatureId.currentValue;this.featureId$.next(a),this.model={...this.model,featureId:a}}b.cvcFeatureName&&this.featureName$.next(b.cvcFeatureName.currentValue)}static#e=this.\u0275fac=function(a){return new(a||U8)(e.rXU(wn.wdL),e.rXU(ia.N))};static#t=this.\u0275cmp=e.VBU({type:U8,selectors:[["cvc-variant-quick-add-form"]],inputs:{cvcFeatureId:"cvcFeatureId",cvcFeatureName:"cvcFeatureName",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.OA$],decls:8,vars:10,consts:[["success",""],[4,"ngrxLet"],["entityType","Variant",3,"mutationState","successMessage"],[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"]],template:function(a,h){if(1&a){const _=e.RV6();e.DNE(0,l0,3,1,"ng-container",1),e.j41(1,"cvc-form-submission-status-display",2),e.DNE(2,wp,1,1,"ng-template",null,0,e.C5r),e.j41(4,"form",3),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.bIt("modelChange",function(ft){return e.eBV(_),e.Njj(h.model=ft)}),e.k0s()()()()()}if(2&a){const _=e.sdS(3);e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(9,c0)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}},dependencies:[fs.G,g.aF,t.qT,t.cb,bi.Nj,L.Uq,L.e,t.j4],encapsulation:2,changeDetection:0})};p2=(0,vi.Cg)([(0,pn.d)()],p2);var u0=c(5676);const gl=["optionTemplates"],$1=()=>[6,6],d0=(u,b)=>({show:u,hide:b});function h0(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",11)(1,"button",12),e.bIt("click",function(){e.eBV(a);const _=e.XpG();return e.Njj(_.onShowMgrClick$.next())}),e.nrm(2,"span",13),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.EFF(5," Manager "),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(2),e.Y8G("ngClass",e.l_i(6,d0,e.bMT(3,2,a.showMgr$),!e.bMT(4,4,a.showMgr$)))("nzType","caret-right")}}function p0(u,b){if(1&u){const a=e.RV6();e.j41(0,"nz-col",14)(1,"cvc-variant-manager",15),e.nI1(2,"ngrxPush"),e.bIt("cvcSelectedIdsChange",function(_){e.eBV(a);const ee=e.XpG();return e.Njj(ee.onPopulate$.next(_))}),e.k0s()()}if(2&u){const a=e.XpG();e.R7$(),e.Y8G("cvcSelectedIds",e.bMT(2,1,a.onVid$))}}function f0(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",20),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",a.variantAliases.join(", "))("innerHtml",e.i5U(3,2,a.variantAliases.join(", "),h),e.npT)}}function m0(u,b){1&u&&e.EFF(0,"--")}function g0(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",17),e.j41(1,"span",18)(2,"strong"),e.EFF(3,"Aliases:"),e.k0s(),e.DNE(4,f0,4,5,"ng-container",19)(5,m0,1,0,"ng-template",null,3,e.C5r),e.k0s()),2&u){const a=e.sdS(6),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(4),e.Y8G("ngIf",h.variantAliases.length>0)("ngIfElse",a)}}function xp(u,b){1&u&&(e.qex(0),e.DNE(1,g0,7,5,"ng-template",null,2,e.C5r),e.bVm())}function v0(u,b){if(1&u&&(e.qex(0),e.DNE(1,xp,3,0,"ng-container",16),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function _0(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",21)(1,"cvc-entity-tag",22),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Variant:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function y0(u,b){if(1&u&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&u){const a=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",a," does not match any existing Variants")}}function C0(u,b){if(1&u){const a=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(a);const _=e.XpG(3);return e.Njj(_.createFusionVariantModal())}),e.EFF(1," Open Fusion Variant Builder "),e.k0s()}}function Mh(u,b){1&u&&(e.j41(0,"nz-space",23),e.DNE(1,y0,2,1,"span",25)(2,C0,2,0,"button",26),e.k0s())}function vl(u,b){if(1&u){const a=e.RV6();e.j41(0,"cvc-variant-quick-add-form",29),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.bIt("cvcOnCreate",function(_){e.eBV(a);const ee=e.XpG(2);return e.Njj(ee.onSelectOrCreate(_))}),e.k0s()}if(2&u){const a=e.XpG().$implicit,h=e.XpG();e.Y8G("cvcSearchString",a)("cvcFeatureId",e.bMT(1,3,h.onFeatureId$))("cvcFeatureName",e.bMT(2,5,h.onFeatureName$))}}function $d(u,b){if(1&u&&e.DNE(0,Mh,3,0,"nz-space",23)(1,vl,3,7,"cvc-variant-quick-add-form",24),2&u){const a=e.XpG();e.vxM("FUSION"==a.selectedFeatureType?0:1)}}const Pp=qi(zi(),jo());let Sh=(()=>{class u extends Pp{constructor(a,h,_,ee,ft){super(),this.taq=a,this.tq=h,this.featureQuery=_,this.changeDetectorRef=ee,this.modal=ft,this.onModel$=new Un.c,this.defaultOptions={props:{label:"Variant",placeholder:"Search Variants",requireFeature:!0,requireFeaturePlaceholderFn:nn=>`Search ${nn} Variants`,requireFeaturePrompt:"Select a Feature to search its Variants",isMultiSelect:!1,entityName:{singular:"Variant",plural:"Variants"},showManagerBtn:!1,minSearchStrLength:0}},this.onFeatureName$=new dn.t(void 0),this.onVid$=new Ni.m,this.onShowMgrClick$=new V.B,this.showMgr$=this.onShowMgrClick$.pipe((0,Sa.S)((nn,Rn)=>!nn,!1))}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent,minSearchStrLength:this.field.props.minSearchStrLength}),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,qt.p)(a=>a),(0,hs.s)(1),(0,pn.s)(this)).subscribe(a=>{this.configureField()}):this.configureField()}configureField(){this.configureStateConnections(),this.onVid$.pipe((0,pn.s)(this)).subscribe(),this.onVid$.next(this.formControl.value),this.onModel$=(0,po.z)([this.onFeatureId$,this.onSearch$]).pipe((0,me.T)(([a,h])=>({featureId:a,name:h}))),this.onValueChange$.pipe((0,Yi.E)(this.onVid$),(0,pn.s)(this)).subscribe(([a,h])=>{Array.isArray(a)&&this.onVid$.next(a)})}configureStateConnections(){if(this.state&&this.props.requireFeature){if(!this.state?.fields.featureId$)return void console.error(`${this.field.id} requireFeature is set, but no featureId$ subject found on state.`);this.onFeatureId$=this.state.fields.featureId$,this.onFeatureId$.pipe((0,pn.s)(this)).subscribe(a=>{this.onFeatureId(a)})}}getTypeaheadVarsFn(a){return{name:a,featureId:this.selectedFeatureId}}getTypeaheadResultsFn(a){return a.data.variantsTypeahead}getTagQueryVarsFn(a){return{variantId:a}}getTagQueryResultsFn(a){return a.data.variant}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}showAddBehavior(a,h){const _=a.toLowerCase();return a.length>=3&&!h.some(ee=>ee.name.toLowerCase()===_)}onSelectOrCreate(a){this.onPopulate$.next(a.id),this.formControl.setValue(a.id),this.props.isNewlyCreatedCallback&&this.props.isNewlyCreatedCallback(a.new)}onFeatureId(a){this.selectedFeatureId=a,!a&&this.props.requireFeature?(this.resetField(),this.props.description=this.props.requireFeaturePrompt,this.props.placeholder="Select a Variant",this.props.extraType="prompt",this.onFeatureName$.next(void 0)):a&&(this.props.description=void 0,this.props.extraType=void 0,Vs(this.featureQuery.fetch({featureId:a},{fetchPolicy:"cache-first"})).then(({data:h})=>{h?.feature?.name?(this.selectedFeatureType=h.feature.featureType,this.selectedFeature=h.feature,this.props.placeholder=this.props.requireFeature?this.props.requireFeaturePlaceholderFn(h.feature.name):this.props.placeholder,this.onFeatureName$.next(h.feature.name)):console.error(`${this.field.id} could not fetch feature name for Feature:${a}.`)}))}createFusionVariantModal(){const a=this.modal.create({nzTitle:"Add New Fusion Variant",nzContent:u0.aS,nzData:{feature:this.selectedFeature},nzFooter:null,nzWidth:"60%"});a.getContentComponent(),a.afterClose.pipe((0,pn.s)(this)).subscribe(h=>{h.variantId&&(this.onSelectOrCreate({id:h.variantId,new:!0}),this.onVid$.next(h.variantId))})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.duD),e.rXU(wn.y3W),e.rXU(wn.$TJ),e.rXU(e.gRc),e.rXU(oi.N_))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["ng-component"]],viewQuery:function(h,_){if(1&h&&e.GBs(gl,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:20,vars:41,consts:[["selectedTemplate",""],["addVariant",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","auto"],["nz-tooltip","","nzTooltipTitle","Select a Feature to enable field.",3,"nzTooltipTrigger"],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcAddEntity","cvcAddEntityModel","cvcAddEntityBehavior","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcOptions","cvcSelectOpen","cvcShowError","cvcLoading","cvcParamName"],["nzFlex","50px",4,"ngIf"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIdsChange","cvcSelectedIds"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],["nzDirection","vertical"],[3,"cvcSearchString","cvcFeatureId","cvcFeatureName"],["nz-typography","",4,"nzSpaceItem"],["nz-button","","nzType","primary",3,"click",4,"nzSpaceItem"],["nz-typography",""],["nz-button","","nzType","primary",3,"click"],[3,"cvcOnCreate","cvcSearchString","cvcFeatureId","cvcFeatureName"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"nz-row",4)(1,"nz-col",5)(2,"span",6),e.nI1(3,"ngrxPush"),e.j41(4,"cvc-entity-select",7),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s()()(),e.DNE(12,h0,6,9,"nz-col",8)(13,p0,3,3,"nz-col",9),e.nI1(14,"ngrxPush"),e.k0s(),e.DNE(15,v0,3,3,"ng-container",10)(16,_0,2,3,"ng-template",null,0,e.C5r)(18,$d,2,1,"ng-template",null,1,e.C5r)}if(2&h){const ee=e.sdS(17),ft=e.sdS(19);e.Y8G("nzGutter",e.lJ4(40,$1)),e.R7$(2),e.Y8G("nzTooltipTrigger",_.props.requireFeature&&!e.bMT(3,22,_.onFeatureId$)?"hover":null),e.R7$(2),e.Y8G("cvcAddEntity",ft)("cvcAddEntityModel",e.bMT(5,24,_.onModel$))("cvcAddEntityBehavior",_.showAddBehavior)("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",_.props.placeholder)("cvcResults",e.bMT(6,26,_.result$))("cvcDisabled",_.props.requireFeature&&!e.bMT(7,28,_.onFeatureId$))("cvcOptions",e.bMT(8,30,_.selectOption$))("cvcSelectOpen",e.bMT(9,32,_.selectOpen$))("cvcShowError",_.showError)("cvcLoading",e.bMT(10,34,_.isLoading$))("cvcParamName",e.bMT(11,36,_.onFeatureName$)),e.R7$(8),e.Y8G("ngIf",_.props.showManagerBtn),e.R7$(),e.Y8G("ngIf",e.bMT(14,38,_.showMgr$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$)}},styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none} nz-input-group{border-color:#d9d9d9!important}"],changeDetection:0})}return u})();const Fp={types:[{name:"variant-select",wrappers:["form-field"],component:Sh},{name:"variant-multi-select",wrappers:["form-field"],component:Sh,defaultOptions:{props:{label:"Variants",isMultiSelect:!0}}}]};let Qf=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,jn,Ft._,En,Go.P,ge.i,zc,Ia,Kr,Pl,Ri.F,ws.y,g.qy.forChild(Fp),t.YN,Cn.$,rt.jl,Kn.Zw,G.PQ,L.f3,Z.Y3,F.j,oi.U6,Qe.DH,qe.kT,Kn.Zw,Yo.Ti,ht.IJ,ns.Cu,G.PQ,L.f3,Z.Y3,F.j,dt,gi.MC,to.$G,Gn.T,hn.Qt,qe.kT,oi.U6,rn.pc,t.X1]})}return u})();e.wjB(Sh,function(){return[M.YU,M.Sq,M.bT,Yt,tn.b,bi.Nj,Kn.aO,di.c,ho.p,L.Uq,L.e,Z.Dn,qe.Di,hn.LH,rn.U5,rn.Dq,ml,p2]},function(){return[Xr.M,bi.L9]});const b0=["optionTemplates"];function Jf(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",8),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const a=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,a.soid,h),e.npT)}}function f2(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",5),e.j41(1,"span",6),e.DNE(2,Jf,4,4,"ng-container",7),e.k0s()),2&u){const a=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",a.__typename+":"+a.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",a.soid)}}function m2(u,b){1&u&&(e.qex(0),e.DNE(1,f2,3,4,"ng-template",null,1,e.C5r),e.bVm())}function Zf(u,b){if(1&u&&(e.qex(0),e.DNE(1,m2,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,a.result$))}}function qf(u,b){if(1&u){const a=e.RV6();e.j41(0,"div",9)(1,"cvc-entity-tag",10),e.bIt("cvcOnClose",function(){const _=e.eBV(a).$implicit,ee=e.XpG();return e.Njj(ee.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const a=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","VariantType:"+a.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Ap=qi(zi(),jo());let Rp=(()=>{class u extends Ap{constructor(a,h,_){super(),this.taq=a,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"VariantType",plural:"VariantTypes"},isMultiSelect:!1,placeholders:{default:"Search Variant Types",multiDefault:"Select VariantType(s)"},description:'Add one or more variant types from the Sequence Ontology (e.g., missense, loss-of-function). Be specific as possible, avoid the addition of root concepts, and use the sequence_variant tree of the sequence ontology.'}},this.placeholder$=new dn.t(this.defaultOptions.props.placeholders.default)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){}configurePlaceholders(){}getTypeaheadVarsFn(a){return{name:a}}getTypeaheadResultsFn(a){return a.data.variantTypeTypeahead}getTagQueryVarsFn(a){return{id:a}}getTagQueryResultsFn(a){return a.data.variantType}getSelectedItemOptionFn(a){return{value:a.id,label:a.name}}getSelectOptionsFn(a,h){return a.map((_,ee)=>({label:h.get(ee)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(wn.Rqb),e.rXU(wn.q7o),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-type-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(b0,5,e.C4Q),2&h){let ee;e.mGM(ee=e.lsd())&&(_.optionTemplates=ee)}},features:[e.Vt3],decls:8,vars:19,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ee=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.bIt("cvcOnSearch",function(nn){return e.eBV(ee),e.Njj(_.onSearch$.next(nn))})("cvcOnOpenChange",function(nn){return e.eBV(ee),e.Njj(_.onOpenChange$?_.onOpenChange$.next(nn):null)})("cvcOnModelChange",function(nn){return e.eBV(ee),e.Njj(_.props.change&&_.props.change(_.field,nn))}),e.k0s(),e.DNE(5,Zf,3,3,"ng-container",3)(6,qf,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ee=e.sdS(7);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ee)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,11,_.placeholder$))("cvcResults",e.bMT(2,13,_.result$))("cvcOptions",e.bMT(3,15,_.selectOption$))("cvcShowError",_.showError)("cvcLoading",e.bMT(4,17,_.isLoading$)),e.R7$(5),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[M.Sq,M.bT,bi.Nj,qe.Di,Yt,tn.b,bi.L9,Xr.M],changeDetection:0})}return u})();const E0={types:[{name:"variant-type-select",wrappers:["form-field"],component:Rp,defaultOptions:{props:{label:"Variant Type"}}},{name:"variant-type-multi-select",wrappers:["form-field"],component:Rp,defaultOptions:{props:{isMultiSelect:!0,label:"Variant Types"}}}]};let T0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,g.qy.forChild(E0),Cn.$,Kn.Zw,Qe.DH,gi.MC,oi.U6,Z.Y3,F.j,L.f3,hn.Qt,rn.pc,G.PQ,rt.jl,qe.kT,Gn.T,En,jn,ge.i,Ft._]})}return u})(),Np=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,li,yr,Fr,ds,Bn,To,Ne,Hc,Ys,wi,ja,bc,Wi,Tc,Wo,d1,Q1,sd,ss,Bh,_d,F1,Ed,Au,ah,uh,ya,Bi,Mo,R4,Qf,T0]})}return u})();const kp=()=>[6,6];function z0(u,b){if(1&u&&e.EFF(0),2&u){const a=e.XpG();e.SpI(" ",a.props.addFormTitle,"\n")}}let g2=class G8 extends g.cm{constructor(){super(),this.contentTemplate$=new Ni.m}ngAfterViewInit(){this.field.props&&this.field.props.addFormContent?this.contentTemplate$.next(this.field.props.addFormContent):console.error(`${this.field.id} add-entity-form wrapper failed to find parent field's props.addFormContent TemplateRef.`)}static#e=this.\u0275fac=function(a){return new(a||G8)};static#t=this.\u0275cmp=e.VBU({type:G8,selectors:[["cvc-add-entity-form-wrapper"]],features:[e.Vt3],decls:10,vars:7,consts:[["fieldComponent",""],["titleTemplate",""],[3,"nzGutter"],["nzFlex","auto"],["nzFlex","20px"],["type","button","nz-button","","nzType","primary","nzSize","default","nzShape","circle","nz-popover","",3,"disabled","nzPopoverTitle","nzPopoverContent"],["nz-icon","","nzType","plus-circle","nzTheme","outline"]],template:function(a,h){if(1&a&&(e.j41(0,"nz-row",2)(1,"nz-col",3),e.eu8(2,null,0),e.k0s(),e.j41(4,"nz-col",4)(5,"button",5),e.nI1(6,"ngrxPush"),e.nrm(7,"span",6),e.k0s()()(),e.DNE(8,z0,1,1,"ng-template",null,1,e.C5r)),2&a){const _=e.sdS(9);e.Y8G("nzGutter",e.lJ4(6,kp)),e.R7$(5),e.Y8G("disabled",null==h.field.props?null:h.field.props.disabled)("nzPopoverTitle",_)("nzPopoverContent",e.bMT(6,4,h.contentTemplate$))}},dependencies:[Kn.aO,di.c,ho.p,gi.L_,Z.Dn,L.Uq,L.e,bi.L9],styles:[".add-button[_ngcontent-%COMP%]{font-size:24px;color:#cfcfdf}"],changeDetection:0})};g2=(0,vi.Cg)([(0,pn.d)()],g2);const e3={wrappers:[{name:"add-entity-form",component:g2}]};let t3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,g.qy.forChild(e3),Kn.Zw,gi.MC,Z.Y3,L.f3]})}return u})();function M0(u,b){1&u&&e.nrm(0,"formly-field",2),2&u&&e.Y8G("field",b.$implicit)}const v2={size:"default"},Vp={wrappers:[{name:"form-card",component:(()=>{class u extends g.cm{get errorState(){return this.showError?"error":""}constructor(){super(),this.wrapperOptions={...v2}}ngOnInit(){this.props.formCardOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formCardOptions})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-card"]],features:[e.Vt3],decls:2,vars:3,consts:[[3,"nzTitle","nzSize"],[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-card",0),e.DNE(1,M0,1,1,"formly-field",1),e.k0s()),2&h){let ee;e.Y8G("nzTitle",_.wrapperOptions.title)("nzSize",null!==(ee=_.wrapperOptions.size)&&void 0!==ee?ee:"default"),e.R7$(),e.Y8G("ngForOf",_.field.fieldGroup)}},dependencies:[M.Sq,g.ac,Yo.cK]})}return u})()}]};let i3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.YN,g.qy.forChild(Vp),L.f3,Yo.Ti,ht.IJ]})}return u})();const S0={wrappers:[{name:"form-footer",component:(()=>{class u extends g.cm{ngOnInit(){}static#e=this.\u0275fac=(()=>{let a;return function(_){return(a||(a=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-footer"]],features:[e.Vt3],decls:4,vars:0,consts:[["fieldComponent",""],[1,"form-footer"],["nzSpan","24",1,"submit-col"]],template:function(h,_){1&h&&(e.j41(0,"nz-row",1)(1,"nz-col",2),e.eu8(2,null,0),e.k0s()())},dependencies:[L.Uq,L.e],styles:[".form-footer[_ngcontent-%COMP%]{margin-top:1em;border-radius:8px;background-color:#f0f0f0;padding:1em}.submit-col[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0})}return u})()}]};let Lp=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,L.f3,g.qy.forChild(S0)]})}return u})();var D0=c(2242),Bp=c(2e3),_2=c(9541);let r3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Z.Y3,L.f3,Yo.Ti,_2.hM,Bp.WF,Hr.rD,Gn.T,qe.kT,Re.s]})}return u})(),s3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,Kn.Zw,aa.Yb,ns.Cu]})}return u})();var O0=c(5312);const X8={VALID:"success",INVALID:"error",PENDING:"processing",DISABLED:"default"};let a3=(()=>{class u{constructor(){this.tagColor="default"}set cvcFormControlStatus(a){this._status=a,this.tagColor=a?X8[a]:"default"}get cvcFormControlStatus(){return this._status}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-status-tag"]],inputs:{cvcFormControlStatus:"cvcFormControlStatus"},decls:3,vars:4,consts:[[3,"nzColor"]],template:function(h,_){1&h&&(e.j41(0,"nz-tag",0),e.EFF(1),e.nI1(2,"lowercase"),e.k0s()),2&h&&(e.Y8G("nzColor",_.tagColor),e.R7$(),e.SpI(" ",_.cvcFormControlStatus?e.bMT(2,2,_.cvcFormControlStatus):"UNKNOWN","\n"))},dependencies:[Gn.s,M.GH]})}return u})();const jd=(u,b)=>({key:u,ctrl:b});function c3(u,b){if(1&u&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&u){const a=e.XpG(2).ctrl;e.R7$(),e.SpI(" ",a.value," ")}}function l3(u,b){1&u&&(e.j41(0,"span",9),e.EFF(1," undefined "),e.k0s())}function u3(u,b){if(1&u&&(e.j41(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e.EFF(3),e.k0s(),e.j41(4,"nz-list-item-meta-description"),e.DNE(5,c3,2,1,"span",6)(6,l3,2,0,"span",7),e.k0s()(),e.j41(7,"nz-list-item-extra"),e.nrm(8,"cvc-form-status-tag",8),e.k0s()()),2&u){const a=e.XpG(),h=a.ctrl,_=a.key;e.R7$(3),e.SpI(" ",_," "),e.R7$(2),e.Y8G("ngIf",h.value),e.R7$(),e.Y8G("ngIf",!h.value),e.R7$(2),e.Y8G("cvcFormControlStatus",h.status)}}function I0(u,b){}function d3(u,b){if(1&u&&e.DNE(0,I0,0,0,"ng-template",12),2&u){const a=b.$implicit;e.XpG(3);const h=e.sdS(3);e.Y8G("ngTemplateOutlet",h)("ngTemplateOutletContext",e.l_i(2,jd,a.key,a.value))}}function h3(u,b){if(1&u&&(e.j41(0,"strong"),e.EFF(1),e.k0s()),2&u){const a=e.XpG(2).key;e.R7$(),e.JRh(a)}}function p3(u,b){if(1&u&&(e.j41(0,"nz-list-item")(1,"nz-card",10)(2,"nz-list",11),e.DNE(3,d3,1,5,null,5),e.nI1(4,"keyvalue"),e.k0s()(),e.DNE(5,h3,2,1,"ng-template",null,2,e.C5r),e.k0s()),2&u){const a=e.XpG(),h=a.ctrl,_=a.key;e.R7$(),e.Y8G("nzTitle",_),e.R7$(2),e.Y8G("ngForOf",e.bMT(4,2,h.controls))}}function f3(u,b){if(1&u&&e.DNE(0,u3,9,4,"nz-list-item",6)(1,p3,7,4,"nz-list-item",6),2&u){const a=b.ctrl;e.Y8G("ngIf",!a.controls),e.R7$(),e.Y8G("ngIf",a.controls)}}function m3(u,b){}function g3(u,b){if(1&u&&e.DNE(0,m3,0,0,"ng-template",12),2&u){const a=b.$implicit;e.XpG();const h=e.sdS(3);e.Y8G("ngTemplateOutlet",h)("ngTemplateOutletContext",e.l_i(2,jd,a.key,a.value))}}function $p(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-list",4),e.DNE(2,f3,2,2,"ng-template",null,1,e.C5r),e.k0s(),e.DNE(4,g3,1,5,null,5),e.nI1(5,"keyvalue"),e.bVm()),2&u){const a=b.ngIf;e.R7$(4),e.Y8G("ngForOf",e.bMT(5,1,a.controls))}}function Q8(u,b){1&u&&e.EFF(0," No AbstractFormControl provided. ")}let J8=(()=>{class u{set cvcAbstractControl(a){if(!a)throw new Error("cvc-form-debug-field-list requires valid cvcFormControl Input.");this._cvcFormControl=a,this.formControl=a}get cvcFormControl(){return this._cvcFormControl}constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-debug-field-list"]],inputs:{cvcAbstractControl:"cvcAbstractControl"},decls:3,vars:2,consts:[["noFormControl",""],["ctrlTemplateRef",""],["cardExtra",""],[4,"ngIf","ngIfElse"],["nzSize","small"],[4,"ngFor","ngForOf"],[4,"ngIf"],["style","padding: 0px 4px; color: white; background-color: #ccc",4,"ngIf"],[3,"cvcFormControlStatus"],[2,"padding","0px 4px","color","white","background-color","#ccc"],["nzSize","small",2,"width","100%",3,"nzTitle"],["nzSize","small",2,"padding","0"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,_){if(1&h&&e.DNE(0,$p,6,3,"ng-container",3)(1,Q8,1,0,"ng-template",null,0,e.C5r),2&h){const ee=e.sdS(2);e.Y8G("ngIf",_.formControl)("ngIfElse",ee)}},dependencies:[M.Sq,M.bT,M.T3,Yo.cK,Hr.eE,Hr.lQ,Hr.qx,Hr.mf,Hr.YU,Hr.$2,a3,M.lG],styles:["[_nghost-%COMP%] nz-card .ant-card-body{padding:6px 0}"]})}return u})();function Hp(u,b){if(1&u&&(e.qex(0),e.nrm(1,"ngx-json-viewer",9),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("json",a.watchModel)}}function Z8(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-descriptions",10)(2,"nz-descriptions-item",11),e.nrm(3,"cvc-form-status-tag",12),e.k0s(),e.j41(4,"nz-descriptions-item",13),e.EFF(5),e.k0s(),e.j41(6,"nz-descriptions-item",14),e.EFF(7),e.k0s(),e.j41(8,"nz-descriptions-item",15),e.EFF(9),e.k0s(),e.j41(10,"nz-descriptions-item",16),e.EFF(11),e.k0s(),e.j41(12,"nz-descriptions-item",17),e.EFF(13),e.k0s()(),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("cvcFormControlStatus",null==a.cvcForm?null:a.cvcForm.status),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.pending," "),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.touched," "),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.valid," "),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.dirty," "),e.R7$(2),e.SpI(" ",null==a.cvcForm?null:a.cvcForm.enabled," ")}}function q8(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-form-debug-field-list",18),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("cvcAbstractControl",a.cvcForm)}}function em(u,b){1&u&&(e.qex(0),e.EFF(1," State Content "),e.bVm())}function tm(u,b){if(1&u&&(e.j41(0,"nz-row")(1,"nz-col",19),e.EFF(2," Form Details "),e.k0s(),e.j41(3,"nz-col",20),e.nrm(4,"cvc-form-status-tag",12),e.k0s()()),2&u){const a=e.XpG();e.R7$(4),e.Y8G("cvcFormControlStatus",null==a.cvcForm?null:a.cvcForm.status)}}let w0=class Y8{constructor(b){this.cdr=b,this.selectedIndex=0}ngOnInit(){if(!this.cvcForm)throw new Error("cvc-form-debug requires valid cvcForm Input.");this.valueChange$=new dn.t(this.cvcForm.value),this.statusChange$=new dn.t(this.cvcForm.status),this.formChange$=fr([this.statusChange$,this.valueChange$]),this.watchModel=this.cvcModel,this.subscriptions=[this.cvcForm.valueChanges.subscribe(b=>{this.watchModel={...this.cvcModel},this.valueChange$.next(b)}),this.cvcForm.statusChanges.subscribe(b=>{this.statusChange$.next(b)}),this.formChange$.subscribe(b=>{this.cdr.detectChanges()})]}static#e=this.\u0275fac=function(a){return new(a||Y8)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:Y8,selectors:[["cvc-form-debug"]],inputs:{cvcForm:"cvcForm",cvcModel:"cvcModel"},decls:14,vars:7,consts:[["cardTitle",""],["nzSize","small","nzBordered","true",3,"nzTitle"],["nzSize","small",3,"nzSelectedIndexChange","nzSelectedIndex"],["nzTitle","Model"],["nzTitle","Controls"],["nzTitle","State"],["nzTitle","Form Status"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"json"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","status"],[3,"cvcFormControlStatus"],["nzTitle","pending"],["nzTitle","touched"],["nzTitle","valid"],["nzTitle","dirty"],["nzTitle","enabled"],[3,"cvcAbstractControl"],["nzFlex","2"],["nzFlex","3",1,"form-status-col"]],template:function(a,h){if(1&a){const _=e.RV6();e.j41(0,"nz-card",1)(1,"nz-card-tab")(2,"nz-tabset",2),e.mxI("nzSelectedIndexChange",function(ft){return e.eBV(_),e.DH7(h.selectedIndex,ft)||(h.selectedIndex=ft),e.Njj(ft)}),e.nrm(3,"nz-tab",3)(4,"nz-tab",4)(5,"nz-tab",5)(6,"nz-tab",6),e.k0s()(),e.qex(7,7),e.DNE(8,Hp,2,1,"ng-container",8)(9,Z8,14,7,"ng-container",8)(10,q8,2,1,"ng-container",8)(11,em,2,0,"ng-container",8),e.bVm(),e.k0s(),e.DNE(12,tm,5,1,"ng-template",null,0,e.C5r)}if(2&a){const _=e.sdS(13);e.Y8G("nzTitle",_),e.R7$(2),e.R50("nzSelectedIndex",h.selectedIndex),e.R7$(5),e.Y8G("ngSwitch",h.selectedIndex),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2)}},dependencies:[M.ux,M.e1,L.Uq,L.e,Yo.cK,Yo.RO,_2.JZ,_2.rE,Bp.xA,Bp.gr,Re.J,J8,a3],styles:["[_nghost-%COMP%]{display:block}.form-status-col[_ngcontent-%COMP%]{text-align:right}.form-status-col[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]:last-child{margin-right:0}"],changeDetection:0})};w0=(0,vi.Cg)([(0,pn.d)({arrayName:"subscriptions"})],w0);const v3=()=>[8,8];function y2(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"cvc-form-debug",5),e.k0s()),2&u){const a=e.XpG();e.Y8G("nzSpan",8),e.R7$(),e.Y8G("cvcForm",a.form)("cvcModel",a.model)}}let b2=class W8 extends g.cm{constructor(){super()}get errorState(){return this.showError?"error":""}ngOnInit(){this.props.showDevPanel=!O0.c.production&&(this.props.showDevPanel||false)}static#e=this.\u0275fac=function(a){return new(a||W8)};static#t=this.\u0275cmp=e.VBU({type:W8,selectors:[["cvc-form-layout-wrapper"]],features:[e.Vt3],decls:5,vars:4,consts:[["fieldComponent",""],[3,"nzGutter"],[1,"form-col",3,"nzSpan"],["class","status-col",3,"nzSpan",4,"ngIf"],[1,"status-col",3,"nzSpan"],[3,"cvcForm","cvcModel"]],template:function(a,h){1&a&&(e.j41(0,"nz-row",1)(1,"nz-col",2),e.eu8(2,null,0),e.k0s(),e.DNE(4,y2,2,3,"nz-col",3),e.k0s()),2&a&&(e.Y8G("nzGutter",e.lJ4(3,v3)),e.R7$(),e.Y8G("nzSpan",h.props.showDevPanel?16:24),e.R7$(3),e.Y8G("ngIf",h.props.showDevPanel))},dependencies:[M.bT,L.Uq,L.e,w0],changeDetection:0})};b2=(0,vi.Cg)([(0,pn.d)({arrayName:"subscriptions"})],b2);const x0={wrappers:[{name:"form-layout",component:b2}]};let P0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,g.qy.forChild(x0),Kn.Zw,Yo.Ti,Z.Y3,Gn.T,_2.hM,gi.MC,Hr.rD,L.f3,D0.i,s3,r3,Re.s]})}return u})();function F0(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"formly-field",5),e.k0s()),2&u){let a;const h=b.$implicit,_=e.XpG(2);e.Y8G("nzSpan",null!==(a=_.wrapperOptions.span)&&void 0!==a?a:null),e.R7$(),e.Y8G("field",h)}}function _3(u,b){if(1&u&&e.DNE(0,F0,2,2,"nz-col",3),2&u){const a=e.XpG();e.Y8G("ngForOf",a.field.fieldGroup)}}function A0(u,b){if(1&u&&(e.j41(0,"nz-col",8),e.nrm(1,"formly-field",5),e.k0s()),2&u){const a=b.$implicit,h=e.XpG(3);e.Y8G("nzFlex",h.wrapperOptions.flex),e.R7$(),e.Y8G("field",a)}}function Ud(u,b){if(1&u&&(e.qex(0),e.DNE(1,A0,2,2,"nz-col",7),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function Ra(u,b){if(1&u&&(e.j41(0,"nz-col",10),e.nrm(1,"formly-field",5),e.k0s()),2&u){let a,h,_,ee,ft,nn;const Rn=b.$implicit,xi=e.XpG(3);e.Y8G("nzXs",null!==(a=xi.wrapperOptions.responsive.xs)&&void 0!==a?a:null)("nzSm",null!==(h=xi.wrapperOptions.responsive.sm)&&void 0!==h?h:null)("nzMd",null!==(_=xi.wrapperOptions.responsive.md)&&void 0!==_?_:null)("nzLg",null!==(ee=xi.wrapperOptions.responsive.lg)&&void 0!==ee?ee:null)("nzXl",null!==(ft=xi.wrapperOptions.responsive.xl)&&void 0!==ft?ft:null)("nzXXl",null!==(nn=xi.wrapperOptions.responsive.xxl)&&void 0!==nn?nn:null),e.R7$(),e.Y8G("field",Rn)}}function Ca(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ra,2,7,"nz-col",9),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function R0(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"formly-field",5),e.k0s()),2&u){const a=b.$implicit,h=b.index,_=e.XpG(3);e.Y8G("nzSpan",_.wrapperOptions.spanIndexed[h]),e.R7$(),e.Y8G("field",a)}}function nm(u,b){if(1&u&&(e.qex(0),e.DNE(1,R0,2,2,"nz-col",3),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function y3(u,b){if(1&u&&(e.j41(0,"nz-col",10),e.nrm(1,"formly-field",5),e.k0s()),2&u){let a,h,_,ee,ft,nn;const Rn=b.$implicit,xi=b.index,Co=e.XpG(3);e.Y8G("nzXs",null!==(a=Co.wrapperOptions.responsiveIndexed[xi].xs)&&void 0!==a?a:null)("nzSm",null!==(h=Co.wrapperOptions.responsiveIndexed[xi].sm)&&void 0!==h?h:null)("nzMd",null!==(_=Co.wrapperOptions.responsiveIndexed[xi].md)&&void 0!==_?_:null)("nzLg",null!==(ee=Co.wrapperOptions.responsiveIndexed[xi].lg)&&void 0!==ee?ee:null)("nzXl",null!==(ft=Co.wrapperOptions.responsiveIndexed[xi].xl)&&void 0!==ft?ft:null)("nzXXl",null!==(nn=Co.wrapperOptions.responsiveIndexed[xi].xxl)&&void 0!==nn?nn:null),e.R7$(),e.Y8G("field",Rn)}}function im(u,b){if(1&u&&(e.qex(0),e.DNE(1,y3,2,7,"nz-col",9),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function om(u,b){if(1&u&&(e.j41(0,"nz-col",8),e.nrm(1,"formly-field",5),e.k0s()),2&u){const a=b.$implicit,h=b.index,_=e.XpG(3);e.Y8G("nzFlex",_.wrapperOptions.flexIndexed[h]),e.R7$(),e.Y8G("field",a)}}function N0(u,b){if(1&u&&(e.qex(0),e.DNE(1,om,2,2,"nz-col",7),e.bVm()),2&u){const a=e.XpG(2);e.R7$(),e.Y8G("ngForOf",a.field.fieldGroup)}}function k0(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ud,2,1,"ng-container",6)(2,Ca,2,1,"ng-container",6)(3,nm,2,1,"ng-container",6)(4,im,2,1,"ng-container",6)(5,N0,2,1,"ng-container",6),e.bVm()),2&u){const a=e.XpG();e.R7$(),e.Y8G("ngIf",a.wrapperOptions.flex),e.R7$(),e.Y8G("ngIf",a.wrapperOptions.responsive),e.R7$(),e.Y8G("ngIf",a.wrapperOptions.spanIndexed),e.R7$(),e.Y8G("ngIf",a.wrapperOptions.responsiveIndexed),e.R7$(),e.Y8G("ngIf",a.wrapperOptions.flexIndexed)}}const rm={gutter:[8,8],span:24},Up={wrappers:[{name:"form-row",component:(()=>{class u extends g.cm{constructor(){super(),this.wrapperOptions={...rm},this.topMargin="0"}ngOnInit(){this.props.formRowOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formRowOptions}),this.topMargin=Array.isArray(this.wrapperOptions.gutter)?this.wrapperOptions.gutter[1]>0?this.wrapperOptions.gutter[1]/2+"px":"0":this.wrapperOptions.gutter&&this.wrapperOptions.gutter>0?this.wrapperOptions.gutter+"px":"0"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-row"]],features:[e.Vt3],decls:5,vars:4,consts:[["defaultCol",""],[1,"form-row-wrapped",3,"nzGutter"],[4,"ngIf","ngIfElse"],[3,"nzSpan",4,"ngFor","ngForOf"],[3,"nzSpan"],[3,"field"],[4,"ngIf"],[3,"nzFlex",4,"ngFor","ngForOf"],[3,"nzFlex"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"]],template:function(h,_){if(1&h&&(e.j41(0,"div")(1,"nz-row",1),e.DNE(2,_3,1,1,"ng-template",null,0,e.C5r)(4,k0,6,5,"ng-container",2),e.k0s()()),2&h){let ee;const ft=e.sdS(3);e.BMQ("style","margin-top: "+_.topMargin,e.$dS),e.R7$(),e.Y8G("nzGutter",null!==(ee=_.wrapperOptions.gutter)&&void 0!==ee?ee:null),e.R7$(3),e.Y8G("ngIf",_.wrapperOptions.flex||_.wrapperOptions.flexIndexed||_.wrapperOptions.spanIndexed||_.wrapperOptions.responsive||_.wrapperOptions.responsiveIndexed)("ngIfElse",ft)}},dependencies:[M.Sq,M.bT,L.Uq,L.e,g.ac],changeDetection:0})}return u})()}]};let Gp=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,t.X1,G.PQ,L.f3,g.qy.forChild(Up)]})}return u})(),V0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[M.MD,P0,i3,Lp,En,Gp,t3]})}return u})(),Gd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({providers:[{provide:g.hL,multi:!0,useFactory:ke,deps:[r.nX]}],imports:[g.qy.forRoot(U),t.X1,G.PQ,Pe,V0,Re.s,t.X1,g.qy,Pe,G.PQ,V0,Np]})}return u})()},5676:(Rt,De,c)=>{c.d(De,{UH:()=>ne,aS:()=>Oe,kf:()=>J,t_:()=>be});var t=c(1635),r=c(3953),g=c(9417),e=c(9145),M=c(8524),G=c(177),L=c(8927),B=c(513),A=c(1188),w=c(3617),I=c(9894),F=c(1226),X=c(2096),V=c(6912),x=c(4222);const ne=[{label:"+",value:e.OP3.Positive},{label:"-",value:e.OP3.Negative}],J=he=>!he.value||/^\d+$/.test(he.value),be=he=>!he.value||/ENST\d{11}\.\d{1,2}/.test(he.value);let Oe=class K8{#e;constructor(Ie,me){this.query=Ie,this.onVariantSelected=new r.bkB,this.#e=(0,r.WQX)(X.J9),this.nzModalData=(0,r.WQX)(X.or),this.layout="vertical",this.selectOrCreateFusionMutator=new F.E(me),this.form=new g.J3({}),this.model={fivePrimeTranscript:void 0,fivePrimeExonEnd:void 0,fivePrimeOffset:void 0,fivePrimeOffsetDirection:void 0,threePrimeTranscript:void 0,threePrimeExonStart:void 0,threePrimeOffsetDirection:void 0,ensemblVersion:void 0,referenceBuild:void 0,organizationId:void 0},this.options={};let de=!1,H=!1;if("Fusion"==this.nzModalData.feature?.featureInstance.__typename){const z=this.nzModalData.feature.featureInstance;de=z.fivePrimePartnerStatus!=e.hBv.Known,H=z.threePrimePartnerStatus!=e.hBv.Known}this.config=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:`New Fusion Variant for ${this.nzModalData.feature?.name}`}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"referenceBuild",type:"reference-build-select",props:{required:!0}},{key:"ensemblVersion",type:"base-input",validators:{nccnVersionNumber:{expression:z=>!z.value||/^\d{2,3}$/.test(z.value),message:(z,Z)=>`"${Z.formControl?.value}" does not appear to be an Ensembl version number`}},props:{label:"Ensembl Version",description:"Enter a valid Ensembl database version (e.g. 75)",required:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{span:6}},fieldGroup:[{key:"fivePrimeTranscript",type:"base-input",props:{label:"5' Transcript",required:!de,disabled:de,tooltip:"Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected"},validators:{isTranscriptId:{expression:be,message:"5' Transcript must be a valid, human, versioned, Ensembl transcript ID"}}},{key:"fivePrimeExonEnd",type:"base-input",validators:{isNumeric:{expression:J,message:"5' exon must be numeric"}},props:{label:"5' End Exon",required:!de,disabled:de,tooltip:"The exon number counted from the 5\u2019 end of the transcript."}},{key:"fivePrimeOffset",type:"base-input",validators:{isNumeric:{expression:J,message:"5' exon offset must be numeric"}},props:{label:"5' Exon Offset",tooltip:"A value representing the offset from the segment boundary.",required:!1,disabled:de}},{key:"fivePrimeOffsetDirection",type:"base-select",props:{label:"5' Exon Offset Direction",tooltip:"Negative values offset towards the 5\u2019 end of the transcript and positive values offset towards the 3\u2019 end of the transcript.",required:!0,placeholder:"5' Offset Direction",options:ne,multiple:!1},expressions:{"props.disabled":z=>!z.model.fivePrimeOffset,"props.required":z=>!!z.model.fivePrimeOffset}}]},{wrappers:["form-row"],props:{formRowOptions:{span:6}},fieldGroup:[{key:"threePrimeTranscript",type:"base-input",props:{required:!H,disabled:H,label:"3' Transcript",tooltip:"Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected"},validators:{isTranscriptId:{expression:be,message:"5' Transcript must be a valid, human, versioned, Ensembl transcript ID"}}},{key:"threePrimeExonStart",type:"base-input",validators:{isNumeric:{expression:J,message:"3' exon must be numeric"}},props:{label:"3' Start Exon",tooltip:"The exon number counted from the 5\u2019 end of the transcript.",required:!H,disabled:H}},{key:"threePrimeOffset",type:"base-input",validators:{isNumeric:{expression:J,message:"3' exon must be numeric"}},props:{label:"3' Exon Offset",disabled:H,required:!1,tooltip:"A value representing the offset from the segment boundary."}},{key:"threePrimeOffsetDirection",type:"base-select",props:{label:"3' Exon Offset Direction",tooltip:"Negative values offset towards the 5\u2019 end of the transcript and positive values offset towards the 3\u2019 end of the transcript.",required:!0,placeholder:"3' Offset Direction",options:ne,multiple:!1},expressions:{"props.disabled":z=>!z.model.threePrimeOffset,"props.required":z=>!!z.model.threePrimeOffset}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Create Fusion Variant",align:"right"}}]}]}]}]}modelChange(Ie){Ie&&(this.model.fivePrimeOffset||(this.model={...this.model,fivePrimeOffsetDirection:void 0}),this.model.threePrimeOffset||(this.model={...this.model,threePrimeOffsetDirection:void 0}))}submitFusion(Ie){const me=H=>{if(H)return+H},de=this.nzModalData.feature?.id;if(Ie&&de){const H={fivePrimeTranscript:Ie.fivePrimeTranscript,fivePrimeExonEnd:me(Ie.fivePrimeExonEnd),fivePrimeOffset:me(Ie.fivePrimeOffset),fivePrimeOffsetDirection:Ie.fivePrimeOffsetDirection,threePrimeTranscript:Ie.threePrimeTranscript,threePrimeExonStart:me(Ie.threePrimeExonStart),threePrimeOffset:me(Ie.threePrimeOffset),threePrimeOffsetDirection:Ie.threePrimeOffsetDirection,referenceBuild:Ie.referenceBuild,ensemblVersion:+Ie.ensemblVersion};this.mutationState=this.selectOrCreateFusionMutator.mutate(this.query,{organizationId:Ie.organizationId,featureId:de,coordinates:H},{},z=>{if(z.createFusionVariant?.variant.id){const Z=z.createFusionVariant.variant.id;this.onVariantSelected.next(Z),this.#e&&this.#e.destroy({variantId:Z})}})}}static#t=this.\u0275fac=function(me){return new(me||K8)(r.rXU(e.j8M),r.rXU(x.N))};static#n=this.\u0275cmp=r.VBU({type:K8,selectors:[["cvc-fusion-variant-select-form"]],outputs:{onVariantSelected:"onVariantSelected"},standalone:!0,features:[r.aNF],decls:2,vars:6,consts:[["nz-form","",3,"ngSubmit","nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(me,de){1&me&&(r.j41(0,"form",0),r.bIt("ngSubmit",function(){return de.submitFusion(de.model)}),r.j41(1,"formly-form",1),r.bIt("modelChange",function(z){return de.modelChange(z)}),r.k0s()()),2&me&&(r.Y8G("nzLayout",de.layout)("formGroup",de.form),r.R7$(),r.Y8G("form",de.form)("fields",de.config)("model",de.model)("options",de.options))},dependencies:[G.MD,g.X1,g.qT,g.cb,g.j4,L.PQ,L.CA,B.Zw,w.$,X.U6,A.iI,M.qy,M.aF,V.l],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})};Oe=(0,t.Cg)([(0,I.d)()],Oe)},5741:(Rt,De,c)=>{function t(B){let A={value:void 0,unset:void 0};return B&&B.trim().length>0?A.value=B.trim():A.unset=!0,A}function r(B){let A={value:void 0,unset:void 0};return void 0!==B?A.value=B:A.unset=!0,A}function g(B){return B?+B:void 0}c.d(De,{Kd:()=>L,cD:()=>e,pz:()=>r,q2:()=>t,tV:()=>g});var e=function(B){return B[B.NotApplicable=0]="NotApplicable",B[B.NoneFound=1]="NoneFound",B[B.Found=2]="Found",B}(e||{});const L=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},9145:(Rt,De,c)=>{c.d(De,{$Ni:()=>Ie,$Pl:()=>As,$TJ:()=>ed,$UJ:()=>Pc,$Vg:()=>xa,$pU:()=>ha,$qW:()=>il,$rM:()=>Rs,AsH:()=>Ta,Avr:()=>yu,BMV:()=>Go,BOs:()=>h1,B_h:()=>Xu,BaG:()=>vu,BlQ:()=>wt,CFE:()=>rs,Ei5:()=>Cr,En6:()=>Et,FEq:()=>Qs,FMZ:()=>ms,FP9:()=>Wu,FZ_:()=>Er,Fd4:()=>ol,Fll:()=>Pi,Fq8:()=>Ne,G4Q:()=>jl,GOU:()=>El,GUs:()=>Tn,GXf:()=>Ct,G_G:()=>ne,H1z:()=>Oe,HAY:()=>Dr,HKj:()=>E1,HLX:()=>$e,HnF:()=>da,I8L:()=>eo,INr:()=>Tc,IbX:()=>w1,IxG:()=>Js,J9f:()=>ju,JCx:()=>be,JTF:()=>gr,Jmn:()=>Ou,KRr:()=>jt,KiN:()=>hd,Kkj:()=>Wn,LJ9:()=>ai,LXB:()=>Zu,M1P:()=>pe,M5K:()=>oa,MAo:()=>Fe,Mvn:()=>or,N47:()=>Nc,NMX:()=>zc,NVO:()=>H,Nac:()=>dl,Nel:()=>cn,O3Q:()=>xc,OLK:()=>f1,OP3:()=>J,OWv:()=>Z,Osm:()=>Bl,Phy:()=>Y,Psd:()=>Li,Pw8:()=>Da,QVS:()=>$r,QWP:()=>ea,QZR:()=>Ya,Qa$:()=>di,QcR:()=>Ha,Qfy:()=>se,Qt1:()=>he,RA2:()=>wc,RJ$:()=>en,RKe:()=>It,RMT:()=>Vs,RQS:()=>gs,RSu:()=>Su,RSy:()=>ac,Rqb:()=>ji,SPr:()=>Tu,T31:()=>V,Thk:()=>kn,Tj8:()=>Ac,ToY:()=>Wc,UEL:()=>Hn,UK$:()=>ko,ULh:()=>ll,UN$:()=>hs,V1_:()=>el,V3k:()=>Sa,V9U:()=>Wt,VV8:()=>Oa,Vl8:()=>sa,Vue:()=>de,W14:()=>Vt,WAS:()=>kt,WGp:()=>lu,WSr:()=>Mc,WeE:()=>Gc,WgR:()=>No,XEW:()=>w,XJ:()=>M,XUB:()=>Yr,XWi:()=>Ma,Xiu:()=>R,XxZ:()=>mo,YQp:()=>Tt,YSN:()=>z,YW4:()=>B,Yd3:()=>nd,Ye0:()=>gu,Ype:()=>z1,Z3e:()=>Hl,ZC5:()=>ra,ZFx:()=>ia,ZLN:()=>al,ZVN:()=>g1,_f:()=>bt,a3n:()=>bu,a4s:()=>s1,aUH:()=>Nt,aX5:()=>pu,aZy:()=>tl,arH:()=>Sc,bOY:()=>Za,bPL:()=>P,bz7:()=>Io,c1P:()=>dt,cO8:()=>fn,cQZ:()=>yc,cs4:()=>yi,d2V:()=>Qi,d52:()=>F,dYH:()=>o1,dbG:()=>ur,duD:()=>Gl,eHp:()=>$a,eJL:()=>is,eTd:()=>gd,f9r:()=>bs,fQd:()=>oo,fh2:()=>ie,fqJ:()=>ud,fvu:()=>za,g1E:()=>fd,gG1:()=>oe,gUZ:()=>$o,gtA:()=>Ia,gwr:()=>Wa,hBv:()=>Pt,hGs:()=>Ce,hj:()=>Yu,hzv:()=>Oo,iHU:()=>me,iSS:()=>Hc,iby:()=>x,iyz:()=>uu,j8M:()=>Ls,jaV:()=>G1,jme:()=>Rr,k1Y:()=>e1,kBo:()=>Xs,kHr:()=>ja,kKs:()=>ld,kWO:()=>ma,kp0:()=>Al,kq4:()=>Z1,krZ:()=>au,kut:()=>st,l20:()=>Ps,l76:()=>I,lBA:()=>Ue,lD4:()=>Be,lEz:()=>t1,l_P:()=>go,m7j:()=>Ka,m9R:()=>Pn,mDT:()=>hl,mRx:()=>zu,mqi:()=>yo,mww:()=>jr,nRJ:()=>od,ngC:()=>Ul,npr:()=>ns,oGI:()=>xt,oJ_:()=>ki,oKj:()=>A,owd:()=>Ks,pCs:()=>du,paL:()=>k,pi3:()=>ga,q3K:()=>c1,q7o:()=>Kl,qKP:()=>Vl,qld:()=>Ae,r$P:()=>Q1,rCZ:()=>Hu,rR2:()=>Ss,rUT:()=>pa,reo:()=>zl,s91:()=>rc,sAe:()=>Pa,sZm:()=>qd,shk:()=>X,tDA:()=>U1,tUL:()=>zn,tas:()=>sl,twV:()=>xl,txm:()=>cl,uXu:()=>Hr,v8x:()=>Zd,w7w:()=>L,wBW:()=>Te,wJE:()=>wi,wJP:()=>_e,wOP:()=>Vn,wVR:()=>At,wdL:()=>Bs,wkS:()=>Ol,xKZ:()=>sd,xNz:()=>Ds,xPr:()=>W,y3W:()=>Eu,y5X:()=>Jt,yLZ:()=>va,yR6:()=>So,yo9:()=>Qn,yoY:()=>zo,ypY:()=>et,ytN:()=>I1,zNY:()=>Yc,zf1:()=>cc});var t=c(1661),r=c(3953),M=function(m){return m.Na="NA",m.TierIii="TIER_III",m.TierIiLevelC="TIER_II_LEVEL_C",m.TierIiLevelD="TIER_II_LEVEL_D",m.TierIv="TIER_IV",m.TierILevelA="TIER_I_LEVEL_A",m.TierILevelB="TIER_I_LEVEL_B",m}(M||{}),L=function(m){return m.DoesNotSupport="DOES_NOT_SUPPORT",m.Supports="SUPPORTS",m}(L||{}),B=function(m){return m.AdverseResponse="ADVERSE_RESPONSE",m.Benign="BENIGN",m.BetterOutcome="BETTER_OUTCOME",m.LikelyBenign="LIKELY_BENIGN",m.LikelyOncogenic="LIKELY_ONCOGENIC",m.LikelyPathogenic="LIKELY_PATHOGENIC",m.Na="NA",m.Negative="NEGATIVE",m.Oncogenic="ONCOGENIC",m.Pathogenic="PATHOGENIC",m.PoorOutcome="POOR_OUTCOME",m.Positive="POSITIVE",m.ReducedSensitivity="REDUCED_SENSITIVITY",m.Resistance="RESISTANCE",m.Sensitivityresponse="SENSITIVITYRESPONSE",m.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",m}(B||{}),A=function(m){return m.AmpLevel="AMP_LEVEL",m.AssertionDirection="ASSERTION_DIRECTION",m.AssertionType="ASSERTION_TYPE",m.DiseaseName="DISEASE_NAME",m.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",m.Id="ID",m.Significance="SIGNIFICANCE",m.Status="STATUS",m.Summary="SUMMARY",m}(A||{}),w=function(m){return m.Diagnostic="DIAGNOSTIC",m.Oncogenic="ONCOGENIC",m.Predictive="PREDICTIVE",m.Predisposing="PREDISPOSING",m.Prognostic="PROGNOSTIC",m}(w||{}),I=function(m){return m.And="AND",m.Or="OR",m}(I||{}),F=function(m){return m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.Name="NAME",m.NctId="NCT_ID",m.SourceCount="SOURCE_COUNT",m}(F||{}),X=function(m){return m.Conflict="CONFLICT",m.Expired="EXPIRED",m.Missing="MISSING",m.Valid="VALID",m}(X||{}),V=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Source="SOURCE",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(V||{}),x=function(m){return m.Factor="FACTOR",m}(x||{}),ne=function(m){return m.Created="CREATED",m.LastModified="LAST_MODIFIED",m}(ne||{}),J=function(m){return m.Negative="NEGATIVE",m.Positive="POSITIVE",m}(J||{}),be=function(m){return m.AssertionCount="ASSERTION_COUNT",m.Doid="DOID",m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.FeatureCount="FEATURE_COUNT",m.Name="NAME",m.VariantCount="VARIANT_COUNT",m}(be||{}),Oe=function(m){return m.Accepted="ACCEPTED",m.AssertionAccepted="ASSERTION_ACCEPTED",m.AssertionRejected="ASSERTION_REJECTED",m.AssertionReverted="ASSERTION_REVERTED",m.AssertionSubmitted="ASSERTION_SUBMITTED",m.Commented="COMMENTED",m.CommentDeleted="COMMENT_DELETED",m.ComplexMolecularProfileCreated="COMPLEX_MOLECULAR_PROFILE_CREATED",m.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",m.DeprecatedFeature="DEPRECATED_FEATURE",m.DeprecatedMolecularProfile="DEPRECATED_MOLECULAR_PROFILE",m.DeprecatedVariant="DEPRECATED_VARIANT",m.FeatureCreated="FEATURE_CREATED",m.Flagged="FLAGGED",m.FlagResolved="FLAG_RESOLVED",m.PublicationSuggested="PUBLICATION_SUGGESTED",m.Rejected="REJECTED",m.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",m.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",m.Reverted="REVERTED",m.RevisionAccepted="REVISION_ACCEPTED",m.RevisionRejected="REVISION_REJECTED",m.RevisionSuggested="REVISION_SUGGESTED",m.RevisionSuperseded="REVISION_SUPERSEDED",m.Submitted="SUBMITTED",m.VariantCreated="VARIANT_CREATED",m}(Oe||{}),he=function(m){return m.Organization="ORGANIZATION",m.Subject="SUBJECT",m.Unscoped="UNSCOPED",m.User="USER",m}(he||{}),Ie=function(m){return m.DoesNotSupport="DOES_NOT_SUPPORT",m.Na="NA",m.Supports="SUPPORTS",m}(Ie||{}),me=function(m){return m.A="A",m.B="B",m.C="C",m.D="D",m.E="E",m}(me||{}),de=function(m){return m.AdverseResponse="ADVERSE_RESPONSE",m.Benign="BENIGN",m.BetterOutcome="BETTER_OUTCOME",m.DominantNegative="DOMINANT_NEGATIVE",m.GainOfFunction="GAIN_OF_FUNCTION",m.LikelyBenign="LIKELY_BENIGN",m.LikelyPathogenic="LIKELY_PATHOGENIC",m.LossOfFunction="LOSS_OF_FUNCTION",m.Na="NA",m.Negative="NEGATIVE",m.Neomorphic="NEOMORPHIC",m.Oncogenicity="ONCOGENICITY",m.Pathogenic="PATHOGENIC",m.PoorOutcome="POOR_OUTCOME",m.Positive="POSITIVE",m.Predisposition="PREDISPOSITION",m.Protectiveness="PROTECTIVENESS",m.ReducedSensitivity="REDUCED_SENSITIVITY",m.Resistance="RESISTANCE",m.Sensitivityresponse="SENSITIVITYRESPONSE",m.UnalteredFunction="UNALTERED_FUNCTION",m.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",m.Unknown="UNKNOWN",m}(de||{}),H=function(m){return m.Description="DESCRIPTION",m.DiseaseName="DISEASE_NAME",m.EvidenceDirection="EVIDENCE_DIRECTION",m.EvidenceLevel="EVIDENCE_LEVEL",m.EvidenceRating="EVIDENCE_RATING",m.EvidenceType="EVIDENCE_TYPE",m.Id="ID",m.Significance="SIGNIFICANCE",m.Status="STATUS",m.VariantOrigin="VARIANT_ORIGIN",m}(H||{}),z=function(m){return m.Accepted="ACCEPTED",m.Rejected="REJECTED",m.Submitted="SUBMITTED",m}(z||{}),Z=function(m){return m.Accepted="ACCEPTED",m.All="ALL",m.NonRejected="NON_REJECTED",m.Rejected="REJECTED",m.Submitted="SUBMITTED",m}(Z||{}),pe=function(m){return m.Diagnostic="DIAGNOSTIC",m.Functional="FUNCTIONAL",m.Oncogenic="ONCOGENIC",m.Predictive="PREDICTIVE",m.Predisposing="PREDISPOSING",m.Prognostic="PROGNOSTIC",m}(pe||{}),R=function(m){return m.Factor="FACTOR",m.Fusion="FUSION",m.Gene="GENE",m}(R||{}),Y=function(m){return m.AssertionCount="assertionCount",m.DiseaseName="diseaseName",m.EvidenceItemCount="evidenceItemCount",m.FeatureAlias="featureAlias",m.FeatureFullName="featureFullName",m.FeatureName="featureName",m.MolecularProfileCount="molecularProfileCount",m.TherapyName="therapyName",m.VariantCount="variantCount",m}(Y||{}),se=function(m){return m.Open="OPEN",m.Resolved="RESOLVED",m}(se||{}),Be=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(Be||{}),Pt=function(m){return m.Known="KNOWN",m.Multiple="MULTIPLE",m.Unknown="UNKNOWN",m}(Pt||{}),wt=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.ExonCoordinates="EXON_COORDINATES",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Variant="VARIANT",m.VariantCoordinates="VARIANT_COORDINATES",m.VariantGroup="VARIANT_GROUP",m}(wt||{}),xt=function(m){return m.All="ALL",m.WithAccepted="WITH_ACCEPTED",m.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",m.WithSubmitted="WITH_SUBMITTED",m}(xt||{}),st=function(m){return m.AssertionCount="assertionCount",m.EvidenceItemCount="evidenceItemCount",m.MolecularProfileScore="molecularProfileScore",m.VariantCount="variantCount",m}(st||{}),Ct=function(m){return m.Mention="MENTION",m.Subscription="SUBSCRIPTION",m}(Ct||{}),It=function(m){return m.ActivityCount="ACTIVITY_COUNT",m.Id="ID",m.MemberCount="MEMBER_COUNT",m.MostRecentActivityTimestamp="MOST_RECENT_ACTIVITY_TIMESTAMP",m.Name="NAME",m}(It||{}),Tt=function(m){return m.AssertionCount="ASSERTION_COUNT",m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.HpoId="HPO_ID",m.Name="NAME",m}(Tt||{}),en=function(m){return m.Read="READ",m.Unread="UNREAD",m}(en||{}),jt=function(m){return m.Grch37="GRCH37",m.Grch38="GRCH38",m.Ncbi36="NCBI36",m}(jt||{}),Vt=function(m){return m.Accepted="ACCEPTED",m.New="NEW",m.Rejected="REJECTED",m.Superseded="SUPERSEDED",m}(Vt||{}),fn=function(m){return m.Assertion="ASSERTION",m.Disease="DISEASE",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Revision="REVISION",m.Therapy="THERAPY",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(fn||{}),Hn=function(m){return m.Asc="ASC",m.Desc="DESC",m}(Hn||{}),zn=function(m){return m.Asco="ASCO",m.Ash="ASH",m.Pubmed="PUBMED",m}(zn||{}),bt=function(m){return m.Curated="CURATED",m.New="NEW",m.Rejected="REJECTED",m}(bt||{}),At=function(m){return m.Citation="CITATION",m.CitationId="CITATION_ID",m.CreatedAt="CREATED_AT",m.DiseaseName="DISEASE_NAME",m.SourceType="SOURCE_TYPE",m.Submitter="SUBMITTER",m}(At||{}),Et=function(m){return m.Authors="AUTHORS",m.CitationId="CITATION_ID",m.EvidenceCount="EVIDENCE_COUNT",m.Journal="JOURNAL",m.Name="NAME",m.SourceType="SOURCE_TYPE",m.SuggestionCount="SUGGESTION_COUNT",m.Year="YEAR",m}(Et||{}),Wt=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Revision="REVISION",m.SourceSuggestion="SOURCE_SUGGESTION",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(Wt||{}),Ue=function(m){return m.Assertion="ASSERTION",m.EvidenceItem="EVIDENCE_ITEM",m.Feature="FEATURE",m.MolecularProfile="MOLECULAR_PROFILE",m.Revision="REVISION",m.Role="ROLE",m.Variant="VARIANT",m.VariantGroup="VARIANT_GROUP",m}(Ue||{}),Ae=function(m){return m.Combination="COMBINATION",m.Sequential="SEQUENTIAL",m.Substitutes="SUBSTITUTES",m}(Ae||{}),ie=function(m){return m.AssertionCount="ASSERTION_COUNT",m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.Name="NAME",m.NcitId="NCIT_ID",m}(ie||{}),_e=function(m){return m.AllTime="ALL_TIME",m.LastMonth="LAST_MONTH",m.LastWeek="LAST_WEEK",m.LastYear="LAST_YEAR",m}(_e||{}),oe=function(m){return m.Admin="ADMIN",m.Curator="CURATOR",m.Editor="EDITOR",m}(oe||{}),Fe=function(m){return m.EvidenceCount="EVIDENCE_COUNT",m.Id="ID",m.LastAction="LAST_ACTION",m.Name="NAME",m.RevisionCount="REVISION_COUNT",m.Role="ROLE",m}(Fe||{}),et=function(m){return m.Factor="FACTOR",m.Fusion="FUSION",m.Gene="GENE",m}(et||{}),dt=function(m){return m.FivePrimeFusionCoordinate="FIVE_PRIME_FUSION_COORDINATE",m.GeneVariantCoordinate="GENE_VARIANT_COORDINATE",m.ThreePrimeFusionCoordinate="THREE_PRIME_FUSION_COORDINATE",m}(dt||{}),cn=function(m){return m.EvidenceItemCount="EVIDENCE_ITEM_COUNT",m.GeneNames="GENE_NAMES",m.Name="NAME",m.VariantCount="VARIANT_COUNT",m.VariantNames="VARIANT_NAMES",m}(cn||{}),Tn=function(m){return m.CoordinateEnd="COORDINATE_END",m.CoordinateStart="COORDINATE_START",m.Name="NAME",m}(Tn||{}),Wn=function(m){return m.Combined="COMBINED",m.CommonGermline="COMMON_GERMLINE",m.Na="NA",m.RareGermline="RARE_GERMLINE",m.Somatic="SOMATIC",m.Unknown="UNKNOWN",m}(Wn||{}),kn=function(m){return m.Name="NAME",m.Soid="SOID",m.VariantCount="VARIANT_COUNT",m}(kn||{}),Vn=function(m){return m.DiseaseName="diseaseName",m.FeatureName="featureName",m.TherapyName="therapyName",m.VariantName="variantName",m}(Vn||{});const Un=t.J1` - fragment ActivityCard on ActivityInterface { - id - verbiage -} - `,dn=t.J1` - fragment activityFeedNode on ActivityInterface { - id - verbiage - createdAt - organization { - id - name - profileImagePath(size: 32) - } - user { - id - username - displayName - role - profileImagePath(size: 32) - } - subject { - name - id - link - ... on Source { - citation - sourceType - } - ... on EvidenceItem { - status - flagged - } - ... on Assertion { - status - flagged - } - ... on Revision { - revisionSetId - } - ... on VariantInterface { - deprecated - flagged - feature { - id - name - link - deprecated - flagged - } - } - ... on MolecularProfile { - deprecated - flagged - } - ... on Feature { - deprecated - flagged - } - ... on VariantGroup { - flagged - } - __typename - } - ... on FlagEntityActivity { - flag { - id - name - link - } - } -} - `,qt=t.J1` - fragment activityFeed on ActivityInterfaceConnection { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - edges { - cursor - node { - ...activityFeedNode - } - } -} - ${dn}`,On=t.J1` - fragment MolecularProfileParsedName on MolecularProfileSegment { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Feature { - id - name - link - deprecated - flagged - } - ... on Variant { - id - name - link - deprecated - flagged - } -} - `,Ut=t.J1` - fragment assertionPopover on Assertion { - id - name - status - summary - assertionType - assertionDirection - significance - variantOrigin - ampLevel - acmgCodes { - code - description - } - clingenCodes { - code - description - } - nccnGuideline { - id - name - } - regulatoryApproval - regulatoryApprovalLastUpdated - fdaCompanionTest - fdaCompanionTestLastUpdated - therapies { - id - name - link - deprecated - } - therapyInteractionType - disease { - id - name - link - deprecated - } - phenotypes { - id - name - link - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - flagged - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${On}`,Ye=t.J1` - fragment AssertionBrowseFields on Assertion { - id - name - link - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - } - disease { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - therapyInteractionType - summary - assertionType - assertionDirection - significance - ampLevel - evidenceItemsCount - status - flagged -} - ${On}`,ue=t.J1` - fragment clinicalTrialPopover on BrowseClinicalTrial { - id - name - nctId - url - sourceCount - evidenceCount -} - `,te=t.J1` - fragment BrowseClinicalTrialsRowFields on BrowseClinicalTrial { - id - name - nctId - evidenceCount - sourceCount - link -} - `,q=t.J1` - fragment parsedCommentFragment on CommentBodySegment { - __typename - ... on CommentTagSegment { - entityId - displayName - tagType - link - revisionSetId - feature { - id - name - link - deprecated - flagged - } - __typename - } - ... on CommentTagSegmentFlagged { - entityId - displayName - tagType - flagged - link - revisionSetId - feature { - id - name - link - deprecated - flagged - } - __typename - } - ... on CommentTagSegmentFlaggedAndWithStatus { - entityId - displayName - tagType - status - flagged - link - revisionSetId - feature { - id - name - link - deprecated - flagged - } - __typename - } - ... on CommentTagSegmentFlaggedAndDeprecated { - entityId - displayName - tagType - flagged - deprecated - link - revisionSetId - feature { - id - name - link - deprecated - flagged - } - __typename - } - ... on CommentTextSegment { - text - } - ... on User { - id - displayName - role - } -} - `,Xe=t.J1` - fragment commentListNode on Comment { - id - title - comment - createdAt - deleted - deletedAt - commenter { - id - username - displayName - name - role - profileImagePath(size: 32) - organizations { - id - name - profileImagePath(size: 32) - } - } - parsedComment { - ...parsedCommentFragment - } -} - ${q}`,ht=t.J1` - fragment commentPopover on Comment { - id - name - createdAt - title - comment - commenter { - id - displayName - role - } - commentable { - id - name - link - ... on Variant { - deprecated - feature { - id - name - link - deprecated - flagged - } - flagged - } - ... on Feature { - deprecated - flagged - } - ... on Source { - deprecated - sourceType - } - ... on Assertion { - flagged - status - } - ... on EvidenceItem { - flagged - status - } - __typename - } -} - `,at=t.J1` - fragment BrowseDiseaseRowFields on BrowseDisease { - id - name - doid - diseaseUrl - features { - id - name - link - } - assertionCount - evidenceItemCount - variantCount - featureCount - link - deprecated - diseaseAliases -} - `,St=t.J1` - fragment eventFeedNode on Event { - id - action - createdAt - organization { - id - name - profileImagePath(size: 32) - } - originatingUser { - id - username - displayName - role - profileImagePath(size: 32) - } - subject { - name - id - link - ... on Source { - citation - sourceType - deprecated - } - ... on EvidenceItem { - status - flagged - } - ... on Assertion { - status - flagged - } - ... on Revision { - revisionSetId - } - ... on VariantInterface { - deprecated - flagged - feature { - id - link - name - deprecated - flagged - } - } - ... on Feature { - deprecated - flagged - id - link - name - } - ... on MolecularProfile { - deprecated - flagged - } - ... on VariantGroup { - flagged - } - __typename - } - originatingObject { - id - name - link - __typename - ... on Revision { - id - revisionSetId - } - ... on Comment { - id - } - ... on Flag { - id - } - } -} - `,Qe=t.J1` - fragment eventFeed on EventConnection { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - eventTypes @include(if: $showFilters) - unfilteredCount - uniqueParticipants @include(if: $showFilters) { - id - displayName - role - profileImagePath(size: 32) - } - participatingOrganizations @include(if: $showFilters) { - id - name - profileImagePath(size: 32) - } - edges { - cursor - node { - ...eventFeedNode - } - } -} - ${St}`,Ee=t.J1` - fragment evidencePopover on EvidenceItem { - id - name - status - description - evidenceLevel - evidenceType - evidenceDirection - significance - variantOrigin - therapies { - id - name - link - deprecated - } - therapyInteractionType - disease { - id - name - link - deprecated - } - phenotypes { - id - name - link - } - evidenceRating - molecularProfile { - id - name - link - deprecated - flagged - parsedName { - ...MolecularProfileParsedName - } - } - source { - id - citation - sourceType - displayType - link - deprecated - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${On}`,Je=t.J1` - fragment EvidenceGridFields on EvidenceItem { - id - name - link - disease { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - } - status - flagged - therapyInteractionType - description - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin -} - ${On}`,re=t.J1` - fragment featurePopover on Feature { - id - name - fullName - featureInstance { - __typename - } - featureAliases - variants { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,ze=t.J1` - fragment BrowseFeaturesFields on BrowseFeature { - id - name - fullName - link - deprecated - flagged - featureAliases - diseases { - name - id - link - deprecated - } - therapies { - name - id - link - deprecated - } - variantCount - evidenceItemCount - assertionCount - molecularProfileCount - featureInstanceType -} - `,gt=t.J1` - fragment flag on Flag { - id - state - flaggable { - id - name - link - ... on Variant { - deprecated - } - ... on Feature { - deprecated - } - ... on MolecularProfile { - deprecated - } - } - openActivity { - id - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - id - displayName - role - profileImagePath(size: 32) - } - } - resolutionActivity { - id - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${q}`,Ke=t.J1` - fragment flagList on FlagConnection { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - totalCount - unfilteredCountForSubject - uniqueFlaggingUsers { - username - id - profileImagePath(size: 32) - } - uniqueResolvingUsers { - username - id - profileImagePath(size: 32) - } - edges { - node { - ...flag - } - } -} - ${gt}`,Pe=t.J1` - fragment flagPopover on Flag { - id - name - state - flaggingUser { - id - displayName - role - } - flaggable { - id - link - name - ... on VariantInterface { - deprecated - feature { - id - name - link - deprecated - flagged - } - } - ... on Feature { - deprecated - } - ... on EvidenceItem { - status - } - ... on Assertion { - status - } - flagged - } - createdAt - openActivity { - parsedNote { - ...parsedCommentFragment - } - } -} - ${q}`,Re=t.J1` - fragment menuFusion on Fusion { - id - name - link - flagged - deprecated -} - `,$=t.J1` - fragment QuicksearchResult on SearchResult { - id - resultType - name - matchingText -} - `,ce=t.J1` - fragment molecularProfilePopoverFields on MolecularProfile { - id - name - parsedName { - ...MolecularProfileParsedName - } - molecularProfileAliases - evidenceItems { - totalCount - } - assertions { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - ${On}`,N=t.J1` - fragment BrowseMolecularProfilesFields on BrowseMolecularProfile { - id - name - evidenceItemCount - molecularProfileScore - assertionCount - variantCount - aliases { - name - } - variants { - id - name - link - matchText - feature { - id - link - name - } - } - therapies { - id - name - link - deprecated - } - diseases { - id - name - link - deprecated - } - link - deprecated -} - `,ke=t.J1` - fragment menuMolecularProfile on MolecularProfile { - id - name - link - flagged - deprecated -} - `,ve=t.J1` - fragment LeaderboardOrganizationFields on LeaderboardOrganization { - id - name - actionCount - rank - profileImagePath(size: 64) -} - `,K=t.J1` - fragment orgPopover on Organization { - id - profileImagePath(size: 64) - name - description - url -} - `,U=t.J1` - fragment OrganizationBrowseTableRowFields on BrowseOrganization { - id - name - description - url - memberCount - activityCount - mostRecentActivityTimestamp - childOrganizations { - id - name - } -} - `,ge=t.J1` - fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { - id - name - hpoId - url - assertionCount - evidenceCount - link -} - `,qe=t.J1` - fragment validationError on FieldValidationError { - fieldName - error -} - `,rt=t.J1` - fragment revisionPopover on Revision { - id - name - link - status - creationActivity { - user { - id - displayName - role - } - parsedNote { - ...parsedCommentFragment - } - } - subject { - id - link - name - ... on VariantInterface { - deprecated - flagged - feature { - id - name - link - deprecated - flagged - } - } - ... on Feature { - deprecated - flagged - } - ... on Assertion { - flagged - status - } - ... on EvidenceItem { - flagged - status - } - ... on VariantGroup { - flagged - } - } - createdAt - linkoutData { - name - } -} - ${q}`,Ft=t.J1` - fragment revision on Revision { - id - revisionSetId - createdAt - fieldName - currentValue - suggestedValue - linkoutData { - name - diffValue { - ... on ObjectFieldDiff { - currentObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - addedObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - removedObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - keptObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - suggestedObjects { - id - displayName - displayType - entityType - link - deleted - deprecated - flagged - feature { - link - id - name - deprecated - flagged - } - } - } - ... on ScalarFieldDiff { - left - right - } - } - } - creationActivity { - createdAt - user { - id - displayName - role - } - parsedNote { - ...parsedCommentFragment - } - organization { - id - name - } - } - resolutionActivity { - createdAt - user { - id - displayName - role - } - parsedNote { - ...parsedCommentFragment - } - } - status -} - ${q}`,rn=t.J1` - fragment ContributorFields on ContributingUser { - user { - id - profileImagePath(size: 12) - } - uniqueActions { - action - count - } - lastActionDate - totalActionCount -} - `,Cn=t.J1` - fragment subscriptionId on Subscription { - id - __typename -} - `,Zn=t.J1` - fragment TimepointCount on TimePointCounts { - allTime - newThisMonth - newThisWeek - newThisYear -} - `,jn=t.J1` - fragment BrowseSourceSuggestionRowFields on SourceSuggestion { - id - molecularProfile { - id - name - link - deprecated - } - disease { - id - name - link - deprecated - } - source { - link - id - citation - citationId - sourceType - sourceUrl - displayType - deprecated - } - user { - id - displayName - role - profileImagePath(size: 32) - } - creationActivity { - parsedNote { - ...parsedCommentFragment - } - } - lastStatusUpdateActivity { - parsedNote { - ...parsedCommentFragment - } - } - status - reason - createdAt -} - ${q}`,Gn=t.J1` - fragment sourcePopover on SourcePopover { - id - title - fullJournalTitle - evidenceItemCount - citation - citationId - displayType - sourceUrl - clinicalTrials { - id - nctId - link - } - retractionDate - retractionReasons - retractionNature -} - `,Ti=t.J1` - fragment BrowseSourceRowFields on BrowseSource { - id - authors - citationId - evidenceItemCount - sourceSuggestionCount - journal - name - publicationYear - sourceType - citation - displayType - link - openAccess - deprecated -} - `,Oi=t.J1` - fragment TherapyBrowseTableRowFields on BrowseTherapy { - id - name - ncitId - therapyUrl - assertionCount - evidenceCount - link - deprecated - therapyAliases -} - `,lo=t.J1` - fragment LeaderboardUserFields on LeaderboardUser { - id - name - displayName - actionCount - role - rank - profileImagePath(size: 64) -} - `,Zi=t.J1` - fragment popoverUser on User { - id - profileImagePath(size: 64) - displayName - bio - role - organizations { - id - name - } -} - `,Bo=t.J1` - fragment UserBrowseTableRowFields on BrowseUser { - id - name - displayName - username - organizations { - id - name - } - role - evidenceCount - revisionCount - profileImagePath(size: 64) - mostRecentActivityTimestamp -} - `,bo=t.J1` - fragment variantGroupPopoverFields on VariantGroup { - id - name - description - variants { - edges { - node { - id - name - link - deprecated - flagged - feature { - id - name - link - deprecated - flagged - } - } - } - } - sources { - id - citation - sourceType - link - deprecated - } -} - `,zr=t.J1` - fragment BrowseVariantGroupRowFields on BrowseVariantGroup { - id - name - link - featureNames - variantNames - variantCount - evidenceItemCount -} - `,rr=t.J1` - fragment variantTypePopover on VariantTypePopover { - id - name - url - soid - variantCount -} - `,lt=t.J1` - fragment VariantTypeBrowseTableRowFields on BrowseVariantType { - id - name - soid - url - variantCount - link -} - `,Lt=t.J1` - fragment CoordinateFields on VariantCoordinate { - referenceBuild - ensemblVersion - chromosome - representativeTranscript - start - stop - referenceBases - variantBases - coordinateType -} - `,$t=t.J1` - fragment ExonCoordinateFields on ExonCoordinate { - referenceBuild - ensemblVersion - chromosome - representativeTranscript - start - stop - exon - exonOffset - exonOffsetDirection - ensemblId - strand - coordinateType -} - `,mn=t.J1` - fragment CoordinatesCardFields on VariantInterface { - id - name - ... on GeneVariant { - coordinates { - ...CoordinateFields - } - } - ... on FusionVariant { - fivePrimeCoordinates { - ...CoordinateFields - } - threePrimeCoordinates { - ...CoordinateFields - } - fivePrimeStartExonCoordinates { - ...ExonCoordinateFields - } - fivePrimeEndExonCoordinates { - ...ExonCoordinateFields - } - threePrimeStartExonCoordinates { - ...ExonCoordinateFields - } - threePrimeEndExonCoordinates { - ...ExonCoordinateFields - } - } -} - ${Lt} -${$t}`,hn=t.J1` - fragment variantPopoverFields on VariantInterface { - id - name - variantAliases - ... on GeneVariant { - alleleRegistryId - } - feature { - id - name - link - deprecated - flagged - } - molecularProfiles { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - flags(state: OPEN) { - totalCount - } -} - `,Yn=t.J1` - fragment menuVariantType on BrowseVariantType { - id - name - link -} - `,En=t.J1` - fragment menuVariant on VariantInterface { - id - name - link - flagged - deprecated -} - `,Kn=t.J1` - fragment BrowseVariantsFields on BrowseVariant { - id - name - link - featureId - featureName - featureLink - category - featureDeprecated - featureFlagged - diseases { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - aliases { - name - } - variantTypes { - id - name - link - } - deprecated - flagged -} - `,oi=t.J1` - fragment RevisableAssertionFields on Assertion { - id - summary - description - molecularProfile { - id - name - link - } - variantOrigin - significance - disease { - id - doid - name - displayName - link - } - therapies { - id - ncitId - name - link - } - therapyInteractionType - assertionDirection - assertionType - phenotypes { - id - hpoId - name - } - ampLevel - acmgCodes { - id - name - code - description - tooltip - } - clingenCodes { - id - code - description - name - tooltip - exclusive - } - nccnGuideline { - id - name - } - nccnGuidelineVersion - regulatoryApproval - fdaCompanionTest - evidenceItems { - id - name - link - status - } -} - `,gi=t.J1` - fragment MolecularProfileSelectTypeaheadFields on MolecularProfile { - id - name - link - molecularProfileAliases - deprecated - flagged -} - `,ro=t.J1` - fragment DiseaseSelectTypeaheadFields on Disease { - id - name - link - displayName - doid - diseaseAliases -} - `,vi=t.J1` - fragment TherapySelectTypeaheadFields on Therapy { - id - name - link - ncitId - therapyAliases -} - `,pn=t.J1` - fragment PhenotypeSelectTypeaheadFields on Phenotype { - id - name - link - hpoId -} - `,$i=t.J1` - fragment SourceSelectTypeaheadFields on Source { - id - name - link - citation - citationId - sourceType - deprecated -} - `,zi=t.J1` - fragment RevisableEvidenceFields on EvidenceItem { - id - molecularProfile { - ...MolecularProfileSelectTypeaheadFields - } - variantOrigin - description - significance - disease { - ...DiseaseSelectTypeaheadFields - } - therapies { - ...TherapySelectTypeaheadFields - } - therapyInteractionType - evidenceDirection - evidenceLevel - evidenceType - phenotypes { - ...PhenotypeSelectTypeaheadFields - } - evidenceRating - source { - ...SourceSelectTypeaheadFields - } -} - ${gi} -${ro} -${vi} -${pn} -${$i}`,Ni=t.J1` - fragment SubmittableEvidenceFields on EvidenceItem { - id - description - variantOrigin - evidenceType - significance - evidenceLevel - evidenceDirection - evidenceRating - therapyInteractionType - source { - id - citation - sourceType - deprecated - } - phenotypes { - id - name - } - therapies { - id - name - } - disease { - id - name - } -} - `,so=t.J1` - fragment RevisableFactorFields on Feature { - id - name - fullName - description - sources { - id - sourceType - citation - citationId - } - featureAliases - featureInstance { - ... on Factor { - ncitId - } - } -} - `,Yi=t.J1` - fragment RevisableFactorVariantFields on FactorVariant { - name - feature { - id - name - } - variantAliases - variantTypes { - id - name - soid - } - ncitId -} - `,Xo=t.J1` - fragment RevisableFusionFields on Feature { - id - description - sources { - id - sourceType - citation - citationId - } - featureAliases - featureInstance { - __typename - } -} - `,Ki=t.J1` - fragment RevisableFusionVariantFields on FusionVariant { - name - feature { - id - name - link - deprecated - flagged - featureInstance { - ... on Fusion { - fivePrimePartnerStatus - threePrimePartnerStatus - } - } - } - variantAliases - variantTypes { - id - name - soid - } - fivePrimeEndExonCoordinates { - ...ExonCoordinateFields - } - threePrimeStartExonCoordinates { - ...ExonCoordinateFields - } -} - ${$t}`,qo=t.J1` - fragment RevisableGeneFields on Feature { - id - description - sources { - id - sourceType - citation - citationId - } -} - `,pr=t.J1` - fragment RevisableGeneVariantFields on GeneVariant { - name - feature { - id - name - } - variantAliases - alleleRegistryId - clinvarIds - hgvsDescriptions - variantTypes { - id - name - soid - } - coordinates { - ...CoordinateFields - } -} - ${Lt}`,fo=t.J1` - fragment RevisableMolecularProfileFields on MolecularProfile { - id - description - sources { - id - sourceType - citation - citationId - } - molecularProfileAliases - isComplex -} - `,po=t.J1` - fragment VariantGroupRevisableFields on VariantGroup { - id - name - description - variants { - totalCount - edges { - cursor - node { - id - name - link - } - } - nodes { - id - name - link - } - } - sources { - id - name - link - } -} - `,fr=t.J1` - fragment SubmittableVariantGroupFields on VariantGroup { - id - name - description - variants(first: 50) { - nodes { - id - name - link - singleVariantMolecularProfile { - id - name - link - } - } - } - sources { - id - link - citation - sourceType - } -} - `,jo=t.J1` - fragment AdvancedSearchPermalink on AdvancedSearchResult { - permalinkId -} - `,Lr=t.J1` - fragment AcmgCodeSelectTypeaheadFields on AcmgCode { - id - code - name - description - tooltip -} - `,qi=t.J1` - fragment ClingenCodeSelectTypeaheadFields on ClingenCode { - id - code - name - description - tooltip - exclusive -} - `,wn=t.J1` - fragment QuickAddDiseaseFields on AddDiseasePayload { - new - disease { - ...DiseaseSelectTypeaheadFields - } -} - ${ro}`,bi=t.J1` - fragment EvidenceManagerFields on EvidenceItem { - id - name - link - disease { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - } - status - flagged - therapyInteractionType - description - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin -} - ${On}`,Mr=t.J1` - fragment EvidenceSelectTypeaheadFields on EvidenceItem { - id - name - link - evidenceType - evidenceDirection - evidenceLevel - evidenceRating - significance - variantOrigin - status -} - `,Ur=t.J1` - fragment GeneBaseFields on Gene { - id - description - featureAliases - entrezId - deprecated - flagged - name - link - sources { - deprecated - id - citation - link - sourceUrl - displayType - sourceType - } -} - `,Ts=t.J1` - fragment GeneSummaryFields on Gene { - ...GeneBaseFields - myGeneInfoDetails -} - ${Ur}`,Qo=t.J1` - fragment NcitDetails on NcitDetails { - synonyms { - name - source - } - definitions { - definition - source - } -} - `,Gs=t.J1` - fragment FactorSummaryFields on Factor { - id - name - description - featureAliases - ncitId - deprecated - sources { - id - citation - link - sourceUrl - displayType - sourceType - deprecated - } - ncitDetails { - ...NcitDetails - } - creationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } - deprecationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } -} - ${Qo}`,nt=t.J1` - fragment FusionSummaryFields on Fusion { - id - description - featureAliases - name - sources { - id - citation - link - sourceUrl - displayType - sourceType - deprecated - } - fivePrimeGene { - ...GeneBaseFields - } - threePrimeGene { - ...GeneBaseFields - } - fivePrimePartnerStatus - threePrimePartnerStatus - creationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } - deprecationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } -} - ${Ur}`,ye=t.J1` - fragment FeatureSummaryFields on Feature { - id - name - fullName - link - deprecated - flagged - featureInstance { - __typename - ... on Gene { - ...GeneSummaryFields - } - ... on Factor { - ...FactorSummaryFields - } - ... on Fusion { - ...FusionSummaryFields - } - } -} - ${Ts} -${Gs} -${nt}`,Ve=t.J1` - fragment QuickAddFeatureFields on CreateFeaturePayload { - clientMutationId - new - feature { - ...FeatureSummaryFields - } -} - ${ye}`,tt=t.J1` - fragment FeatureSelectTypeaheadFields on Feature { - id - name - featureAliases - link - featureType - featureInstance { - __typename - ... on Gene { - entrezId - } - ... on Factor { - ncitId - } - ... on Fusion { - fivePrimePartnerStatus - threePrimePartnerStatus - } - } -} - `,Mt=t.J1` - fragment PreviewMpName2 on MolecularProfileSegment { - __typename - ... on MolecularProfileTextSegment { - text - } - ... on Feature { - id - name - link - deprecated - flagged - } - ... on Variant { - id - name - link - deprecated - flagged - } -} - `,Yt=t.J1` - fragment NccnGuidelineSelectTypeaheadFields on NccnGuideline { - id - name -} - `,tn=t.J1` - fragment QuickAddTherapyFields on AddTherapyPayload { - new - therapy { - ...TherapySelectTypeaheadFields - } -} - ${vi}`,on=t.J1` - fragment VariantSelectTypeaheadFields on VariantInterface { - id - name - link - deprecated - variantAliases - singleVariantMolecularProfileId - singleVariantMolecularProfile { - id - name - link - molecularProfileAliases - } -} - `,bn=t.J1` - fragment CreateFusionVariantFields on CreateFusionVariantPayload { - clientMutationId - new - variant { - ...VariantSelectTypeaheadFields - } -} - ${on}`,Ln=(t.J1` - fragment VariantManagerFields on BrowseVariant { - id - name - link - featureId - featureName - featureLink - diseases { - id - name - link - deprecated - } - therapies { - id - name - link - deprecated - } - aliases { - name - } -} - `,t.J1` - fragment QuickAddVariantFields on CreateVariantPayload { - clientMutationId - new - variant { - ...VariantSelectTypeaheadFields - } -} - ${on}`),xn=t.J1` - fragment VariantTypeSelectTypeaheadFields on VariantType { - id - name - link - soid -} - `,Qn=t.J1` - fragment assertionSubmissionActivity on Assertion { - submissionActivity { - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - id - displayName - profileImagePath(size: 32) - } - } -} - ${q}`,qn=t.J1` - fragment AssertionDetailFields on Assertion { - id - name - status - submissionEvent { - originatingUser { - id - } - } - molecularProfile { - id - name - link - deprecated - flagged - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - ...assertionSubmissionActivity -} - ${Qn}`,pi=t.J1` - fragment AssertionSummaryFields on Assertion { - id - name - summary - description - status - variantOrigin - disease { - id - name - link - deprecated - } - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - flagged - } - assertionType - assertionDirection - significance - therapies { - ncitId - name - link - id - deprecated - } - phenotypes { - id - name - link - } - therapyInteractionType - ampLevel - acmgCodes { - code - description - } - clingenCodes { - id - code - description - } - nccnGuideline { - id - name - } - nccnGuidelineVersion - regulatoryApproval - regulatoryApprovalLastUpdated - fdaCompanionTest - fdaCompanionTestLastUpdated - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - acceptanceEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - ...assertionSubmissionActivity - submissionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - rejectionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${On} -${Qn}`,ei=t.J1` - fragment MyDiseaseInfoFields on MyDiseaseInfo { - diseaseOntologyExactSynonyms - diseaseOntologyRelatedSynonyms - mesh - icdo - icd10 - ncit - omim - doDef - doDefCitations - mondoDef - mondoId -} - `,li=t.J1` - fragment DiseasesSummaryFields on Disease { - id - name - doid - diseaseUrl - displayName - diseaseAliases - link - myDiseaseInfo { - ...MyDiseaseInfoFields - } - deprecated -} - ${ei}`,ai=t.J1` - fragment evidenceSubmissionActivity on EvidenceItem { - submissionActivity { - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - id - displayName - profileImagePath(size: 32) - } - } -} - ${q}`,mi=t.J1` - fragment EvidenceDetailFields on EvidenceItem { - id - name - status - submissionEvent { - originatingUser { - id - } - } - molecularProfile { - id - name - link - deprecated - flagged - } - assertions { - id - name - link - flagged - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - ...evidenceSubmissionActivity -} - ${ai}`,Ei=t.J1` - fragment EvidenceSummaryFields on EvidenceItem { - id - name - description - status - evidenceLevel - evidenceType - evidenceDirection - significance - variantOrigin - therapies { - id - name - link - deprecated - } - therapyInteractionType - disease { - id - name - link - deprecated - } - phenotypes { - id - name - link - } - source { - id - citation - citationId - sourceType - displayType - sourceUrl - ascoAbstractId - link - clinicalTrials { - nctId - id - link - } - retractionNature - deprecated - } - evidenceRating - molecularProfile { - id - name - link - parsedName { - ...MolecularProfileParsedName - } - deprecated - flagged - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - submissionActivity { - createdAt - parsedNote { - ...parsedCommentFragment - } - user { - displayName - profileImagePath(size: 32) - id - role - } - } - acceptanceEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - submissionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - rejectionEvent { - createdAt - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${On} -${q}`,Xi=t.J1` - fragment FeatureDetailFields on Feature { - id - name - fullName - deprecated - deprecationReason - deprecationActivity { - parsedNote { - ...parsedCommentFragment - } - } - featureInstance { - __typename - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - ${q}`,Mi=t.J1` - fragment MolecularProfileDetailFields on MolecularProfile { - id - name - deprecated - deprecationReason - complexMolecularProfileDeprecationActivity { - parsedNote { - ...parsedCommentFragment - } - } - deprecatedVariants { - deprecationReason - deprecationActivity { - parsedNote { - ...parsedCommentFragment - } - } - id - deprecated - flagged - name - link - feature { - id - name - link - deprecated - flagged - } - } - molecularProfileAliases - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - variants { - id - } -} - ${q}`,no=t.J1` - fragment MyVariantInfoFields on MyVariantInfo { - myVariantInfoId - caddConsequence - caddDetail - caddScore - caddPhred - clinvarClinicalSignificance - clinvarHgvsCoding - clinvarHgvsGenomic - clinvarHgvsNonCoding - clinvarHgvsProtein - clinvarId - clinvarOmim - cosmicId - dbnsfpInterproDomain - dbsnpRsid - eglClass - eglHgvs - eglProtein - eglTranscript - exacAlleleCount - exacAlleleFrequency - exacAlleleNumber - fathmmMklPrediction - fathmmMklScore - fathmmPrediction - fathmmScore - fitconsScore - gerp - gnomadExomeAlleleCount - gnomadExomeAlleleFrequency - gnomadExomeAlleleNumber - gnomadExomeFilter - gnomadGenomeAlleleCount - gnomadGenomeAlleleFrequency - gnomadGenomeAlleleNumber - gnomadGenomeFilter - lrtPrediction - lrtScore - metalrPrediction - metalrScore - metasvmPrediction - metasvmScore - mutationassessorPrediction - mutationassessorScore - mutationtasterPrediction - mutationtasterScore - phastcons100way - phastcons30way - phyloP100way - phyloP30way - polyphen2HdivPrediction - polyphen2HdivScore - polyphen2HvarPrediction - polyphen2HvarScore - proveanPrediction - proveanScore - revelScore - siftPrediction - siftScore - siphy - snpeffSnpEffect - snpeffSnpImpact -} - `,ao=t.J1` - fragment GeneVariantSummaryFields on GeneVariant { - alleleRegistryId - openCravatUrl - maneSelectTranscript - hgvsDescriptions - clinvarIds - coordinates { - ...CoordinateFields - } - myVariantInfo { - ...MyVariantInfoFields - } -} - ${Lt} -${no}`,io=t.J1` - fragment FactorVariantSummaryFields on FactorVariant { - ncitId - ncitDetails { - ...NcitDetails - } -} - ${Qo}`,Fn=t.J1` - fragment FusionVariantSummaryFields on FusionVariant { - viccCompliantName - fusion { - fivePrimePartnerStatus - fivePrimeGene { - id - name - link - deprecated - flagged - } - threePrimePartnerStatus - threePrimeGene { - id - name - link - deprecated - flagged - } - } - fivePrimeCoordinates { - ...CoordinateFields - } - threePrimeCoordinates { - ...CoordinateFields - } - fivePrimeStartExonCoordinates { - ...ExonCoordinateFields - } - fivePrimeEndExonCoordinates { - ...ExonCoordinateFields - } - threePrimeStartExonCoordinates { - ...ExonCoordinateFields - } - threePrimeEndExonCoordinates { - ...ExonCoordinateFields - } -} - ${Lt} -${$t}`,_o=t.J1` - fragment VariantMolecularProfileCardFields on VariantInterface { - id - name - link - deprecated - flagged - feature { - id - name - link - deprecated - flagged - } - molecularProfiles(first: 3) { - totalCount - nodes { - id - link - name - deprecated - flagged - } - } - ... on GeneVariant { - ...GeneVariantSummaryFields - } - ... on FactorVariant { - ...FactorVariantSummaryFields - } - ... on FusionVariant { - ...FusionVariantSummaryFields - } - variantAliases - variantTypes { - id - link - soid - name - } -} - ${ao} -${io} -${Fn}`,ir=t.J1` - fragment MolecularProfileSummaryFields on MolecularProfile { - id - name - description - molecularProfileAliases - molecularProfileScore - sources { - id - citation - link - sourceType - deprecated - } - variants { - ...VariantMolecularProfileCardFields - } - parsedName { - ...MolecularProfileParsedName - } - complexMolecularProfileCreationActivity { - createdAt - user { - id - displayName - role - profileImagePath(size: 32) - } - } - variantDeprecationActivity { - createdAt - user { - id - displayName - role - profileImagePath(size: 32) - } - } - complexMolecularProfileDeprecationActivity { - createdAt - user { - id - displayName - role - profileImagePath(size: 32) - } - } -} - ${_o} -${On}`,Gr=t.J1` - fragment OrganizationDetailFields on Organization { - id - name - url - description - profileImagePath(size: 256) - subGroups { - id - name - profileImagePath(size: 12) - } - orgStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - orgAndSuborgsStatsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - ranks { - commentsRank { - rank - actionCount - } - moderationRank { - rank - actionCount - } - revisionsRank { - rank - actionCount - } - submissionsRank { - rank - actionCount - } - } -} - `,Do=t.J1` - fragment OrganizationGroupsFields on Organization { - id - name - url - description - profileImagePath(size: 128) - subGroups { - id - name - url - } - ranks { - commentsRank { - rank - actionCount - } - moderationRank { - rank - actionCount - } - revisionsRank { - rank - actionCount - } - submissionsRank { - rank - actionCount - } - } -} - `,Jo=t.J1` - fragment OrganizationMembersFields on BrowseUser { - id - name - displayName - username - profileImagePath(size: 64) - role - url - areaOfExpertise - orcid - twitterHandle - facebookProfile - linkedinProfile - organizations { - id - name - url - } -} - `,Sr=t.J1` - fragment Release on DataRelease { - name - geneTsv { - filename - path - } - variantTsv { - filename - path - } - variantGroupTsv { - filename - path - } - evidenceTsv { - filename - path - } - molecularProfileTsv { - filename - path - } - assertionTsv { - filename - path - } - acceptedVariantsVcf { - filename - path - } - acceptedAndSubmittedVariantsVcf { - filename - path - } -} - `,_r=t.J1` - fragment SourceDetailFields on Source { - id - citation - sourceUrl - displayType - fullyCurated - citationId - comments { - totalCount - } -} - `,yr=t.J1` - fragment SourceSummaryFields on Source { - id - citation - displayType - sourceUrl - title - abstract - publicationDate - citationId - fullJournalTitle - pmcId - authorString - ascoAbstractId - clinicalTrials { - nctId - id - link - } - retracted - retractionNature - retractionDate - retractionReasons - deprecated -} - `,sr=t.J1` - fragment MyChemInfoFields on MyChemInfo { - chebiId - chebiDefinition - fdaEpcCodes { - code - description - } - fdaMoaCodes { - code - description - } - firstApproval - chemblMoleculeType - chemblId - pubchemCid - pharmgkbId - rxnorm - inchikey - drugbankId - indications -} - `,Fo=t.J1` - fragment TherapiesSummaryFields on Therapy { - id - name - ncitId - therapyUrl - therapyAliases - link - myChemInfo { - ...MyChemInfoFields - } -} - ${sr}`,zs=t.J1` - fragment UserDetailFields on User { - id - name - displayName - username - email - profileImagePath(size: 128) - role - url - bio - areaOfExpertise - orcid - twitterHandle - facebookProfile - linkedinProfile - organizations { - id - name - url - } - country { - id - name - } - statsHash { - comments - revisions - appliedRevisions - submittedEvidenceItems - acceptedEvidenceItems - suggestedSources - submittedAssertions - acceptedAssertions - } - ranks { - commentsRank { - rank - actionCount - } - moderationRank { - rank - actionCount - } - revisionsRank { - rank - actionCount - } - submissionsRank { - rank - actionCount - } - } - mostRecentConflictOfInterestStatement { - id - coiPresent - coiStatement - coiStatus - createdAt - expiresAt - } -} - `,Fr=t.J1` - fragment notificationOrganization on Organization { - id - name -} - `,Uo=t.J1` - fragment notificationOriginatingUsers on User { - id - displayName -} - `,es=t.J1` - fragment notificationFeedSubjects on EventSubjectWithCount { - subject { - id - __typename - name - } - occuranceCount -} - `,Eo=t.J1` - fragment notificationNode on Notification { - id - type - event { - ...eventFeedNode - } - seen - subscription { - id - subscribable { - id - name - __typename - } - } -} - ${St}`,Ms=t.J1` - fragment subscribable on Subscribable { - id - entityType - __typename -} - `,ds=t.J1` - fragment VariantGroupDetailFields on VariantGroup { - id - name - variants { - totalCount - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } -} - `,Ze=t.J1` - fragment VariantGroupSummaryFields on VariantGroup { - id - name - description - sources { - id - link - citation - sourceUrl - displayType - sourceType - deprecated - } -} - `,An=t.J1` - fragment VariantDetailFields on VariantInterface { - id - name - deprecated - deprecationReason - deprecationActivity { - parsedNote { - ...parsedCommentFragment - } - } - feature { - id - name - link - deprecated - flagged - } - variantAliases - flags(state: OPEN) { - totalCount - } - openRevisionCount - comments { - totalCount - } -} - ${q}`,fe=t.J1` - fragment VariantCoordinateIds on VariantInterface { - __typename - ... on GeneVariant { - coordinates { - id - } - } - ... on FusionVariant { - fivePrimeEndExonCoordinates { - id - } - threePrimeStartExonCoordinates { - id - } - } -} - `,We=t.J1` - fragment VariantSummaryFields on VariantInterface { - id - name - feature { - __typename - id - name - link - deprecated - flagged - } - variantAliases - variantTypes { - id - link - soid - name - } - flags(state: OPEN) { - totalCount - } - revisions(status: NEW) { - totalCount - } - comments { - totalCount - } - lastSubmittedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - lastAcceptedRevisionEvent { - originatingUser { - id - displayName - role - profileImagePath(size: 32) - } - } - creationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } - deprecationActivity { - user { - id - displayName - role - profileImagePath(size: 32) - } - createdAt - } - ... on GeneVariant { - ...GeneVariantSummaryFields - } - ... on FactorVariant { - ...FactorVariantSummaryFields - } - ... on FusionVariant { - ...FusionVariantSummaryFields - } -} - ${ao} -${io} -${Fn}`;t.J1` - query ActivityCard($activityId: Int!) { - activity(id: $activityId) { - ...ActivityCard - } -} - ${Un}`,t.J1` - query ActivityFeed($first: Int, $last: Int, $before: String, $after: String, $userId: [Int!]) { - activities( - first: $first - last: $last - before: $before - after: $after - userId: $userId - ) { - ...activityFeed - } -} - ${qt}`;const fi=t.J1` - query AssertionPopover($assertionId: Int!) { - assertion(id: $assertionId) { - ...assertionPopover - } -} - ${Ut}`;let ki=(()=>{class m extends t.XK{constructor(we){super(we),this.document=fi}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const To=t.J1` - query AssertionsBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $summary: String, $assertionDirection: EvidenceDirection, $significance: EvidenceSignificance, $assertionType: EvidenceType, $variantId: Int, $molecularProfileId: Int, $evidenceId: Int, $molecularProfileName: String, $sortBy: AssertionSort, $ampLevel: AmpLevel, $organizationId: Int, $userId: Int, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $status: EvidenceStatusFilter) { - assertions( - first: $first - last: $last - before: $before - after: $after - diseaseName: $diseaseName - therapyName: $therapyName - id: $id - summary: $summary - assertionDirection: $assertionDirection - significance: $significance - assertionType: $assertionType - variantId: $variantId - molecularProfileId: $molecularProfileId - sortBy: $sortBy - ampLevel: $ampLevel - molecularProfileName: $molecularProfileName - evidenceId: $evidenceId - organizationId: $organizationId - userId: $userId - phenotypeId: $phenotypeId - therapyId: $therapyId - diseaseId: $diseaseId - status: $status - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...AssertionBrowseFields - } - } - } -} - ${Ye}`;let di=(()=>{class m extends t.XK{constructor(we){super(we),this.document=To}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ho=t.J1` - query ClinicalTrialPopover($clinicalTrialId: Int!) { - clinicalTrials(id: $clinicalTrialId) { - edges { - node { - ...clinicalTrialPopover - } - } - } -} - ${ue}`;let Oo=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ho}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ts=t.J1` - query ClinicalTrialsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $nctId: String, $sortBy: ClinicalTrialSort) { - clinicalTrials( - first: $first - last: $last - before: $before - after: $after - name: $name - nctId: $nctId - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...BrowseClinicalTrialsRowFields - } - } - } -} - ${te}`;let Ne=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ts}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const je=t.J1` - mutation DeleteComment($input: DeleteCommentInput!) { - deleteComment(input: $input) { - comment { - ...commentListNode - } - } -} - ${Xe}`;let Ce=(()=>{class m extends t.sM{constructor(we){super(we),this.document=je}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const pt=t.J1` - query CommentList($first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $mentionedUserId: Int, $mentionedRole: UserRole, $mentionedEntity: TaggableEntityInput, $subject: CommentableInput, $sortBy: DateSort) { - comments( - first: $first - last: $last - before: $before - after: $after - originatingUserId: $originatingUserId - mentionedUserId: $mentionedUserId - mentionedRole: $mentionedRole - mentionedEntity: $mentionedEntity - subject: $subject - sortBy: $sortBy - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - uniqueCommenters { - id - displayName - role - profileImagePath(size: 32) - } - mentionedUsers { - id - displayName - role - profileImagePath(size: 32) - } - mentionedRoles { - displayName - entityId - tagType - link - } - mentionedEntities { - displayName - entityId - tagType - link - } - unfilteredCountForSubject - edges { - cursor - node { - ...commentListNode - } - } - } -} - ${Xe}`;let Jt=(()=>{class m extends t.XK{constructor(we){super(we),this.document=pt}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ii=t.J1` - query CommentPopover($commentId: Int!) { - comment(id: $commentId) { - ...commentPopover - } -} - ${ht}`;let Qi=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ii}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const xo=t.J1` - query DiseasePopover($diseaseId: Int!) { - diseasePopover(id: $diseaseId) { - id - name - displayName - doid - diseaseUrl - diseaseAliases - assertionCount - evidenceItemCount - molecularProfileCount - link - deprecated - } -} - `;let yi=(()=>{class m extends t.XK{constructor(we){super(we),this.document=xo}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ba=t.J1` - query BrowseDiseases($first: Int, $last: Int, $before: String, $after: String, $sortBy: DiseasesSort, $name: String, $doid: String, $diseaseAlias: String, $featureName: String) { - browseDiseases( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - doid: $doid - diseaseAlias: $diseaseAlias - featureName: $featureName - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - lastUpdated - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseDiseaseRowFields - } - } - } -} - ${at}`;let Hc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ba}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ea=t.J1` - query EventFeedCount($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $includeAutomatedEvents: Boolean, $mode: EventFeedMode) { - events( - subject: $subject - first: $first - last: $last - before: $before - after: $after - originatingUserId: $originatingUserId - organizationId: $organizationId - eventType: $eventType - mode: $mode - includeAutomatedEvents: $includeAutomatedEvents - ) { - unfilteredCount - } -} - `;let Cr=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ea}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const vc=t.J1` - query EventFeed($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode, $includeAutomatedEvents: Boolean = true, $showFilters: Boolean!) { - events( - subject: $subject - first: $first - last: $last - before: $before - after: $after - originatingUserId: $originatingUserId - organizationId: $organizationId - eventType: $eventType - includeAutomatedEvents: $includeAutomatedEvents - mode: $mode - ) { - ...eventFeed - } -} - ${Qe}`;let mo=(()=>{class m extends t.XK{constructor(we){super(we),this.document=vc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ua=t.J1` - query EvidencePopover($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...evidencePopover - } -} - ${Ee}`;let Yr=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ua}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const na=t.J1` - query EvidenceBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { - evidenceItems( - first: $first - last: $last - before: $before - after: $after - diseaseName: $diseaseName - therapyName: $therapyName - id: $id - description: $description - evidenceLevel: $evidenceLevel - evidenceDirection: $evidenceDirection - significance: $significance - evidenceType: $evidenceType - evidenceRating: $rating - variantOrigin: $variantOrigin - variantId: $variantId - molecularProfileId: $molecularProfileId - assertionId: $assertionId - organizationId: $organizationId - userId: $userId - phenotypeId: $phenotypeId - diseaseId: $diseaseId - therapyId: $therapyId - sourceId: $sourceId - clinicalTrialId: $clinicalTrialId - molecularProfileName: $molecularProfileName - status: $status - sortBy: $sortBy - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...EvidenceGridFields - } - } - } -} - ${Je}`;let $a=(()=>{class m extends t.XK{constructor(we){super(we),this.document=na}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const mr=t.J1` - query FeaturePopover($featureId: Int!) { - feature(id: $featureId) { - ...featurePopover - } -} - ${re}`;let Ta=(()=>{class m extends t.XK{constructor(we){super(we),this.document=mr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ys=t.J1` - query BrowseFeatures($featureName: String, $featureFullName: String, $therapyName: String, $featureAlias: String, $diseaseName: String, $featureType: FeatureInstanceTypes, $sortBy: FeaturesSort, $first: Int, $last: Int, $before: String, $after: String) { - browseFeatures( - featureName: $featureName - featureFullName: $featureFullName - therapyName: $therapyName - featureAlias: $featureAlias - diseaseName: $diseaseName - featureType: $featureType - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - edges { - cursor - node { - ...BrowseFeaturesFields - } - } - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - lastUpdated - totalCount - filteredCount - pageCount - } -} - ${ze}`;let hs=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ys}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const _c=t.J1` - query FlagList($flaggable: FlaggableInput, $flaggingUserId: Int, $resolvingUserId: Int, $state: FlagState, $sortBy: DateSort, $first: Int, $last: Int, $before: String, $after: String) { - flags( - flaggable: $flaggable - flaggingUserId: $flaggingUserId - resolvingUserId: $resolvingUserId - state: $state - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - ...flagList - } -} - ${Ke}`;let da=(()=>{class m extends t.XK{constructor(we){super(we),this.document=_c}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Wr=t.J1` - query FlagPopover($flagId: Int!) { - flag(id: $flagId) { - ...flagPopover - } -} - ${Pe}`;let wi=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Wr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ws=t.J1` - query FusionMenu($genePartnerId: Int, $first: Int, $last: Int, $before: String, $after: String) { - fusions( - genePartnerId: $genePartnerId - first: $first - last: $last - before: $before - after: $after - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - cursor - node { - ...menuFusion - } - } - } -} - ${Re}`;let Ha=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ws}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ps=t.J1` - query Quicksearch($query: String!, $types: [SearchableEntities!], $highlightMatches: Boolean) { - search(query: $query, types: $types, highlightMatches: $highlightMatches) { - ...QuicksearchResult - } -} - ${$}`;let ja=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ps}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Kr=t.J1` - query MolecularProfilePopover($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...molecularProfilePopoverFields - } -} - ${ce}`;let za=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Kr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Xr=t.J1` - query BrowseMolecularProfiles($molecularProfileName: String, $variantName: String, $variantId: Int, $featureName: String, $diseaseName: String, $therapyName: String, $molecularProfileAlias: String, $sortBy: MolecularProfilesSort, $first: Int, $last: Int, $before: String, $after: String) { - browseMolecularProfiles( - molecularProfileName: $molecularProfileName - variantName: $variantName - variantId: $variantId - featureName: $featureName - diseaseName: $diseaseName - therapyName: $therapyName - molecularProfileAlias: $molecularProfileAlias - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - edges { - cursor - node { - ...BrowseMolecularProfilesFields - } - } - lastUpdated - filteredCount - pageCount - } -} - ${N}`;let Hu=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Xr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const yl=t.J1` - query MolecularProfileMenu($geneId: Int, $featureId: Int, $mpName: String, $first: Int, $last: Int, $before: String, $after: String, $evidenceStatusFilter: MolecularProfileDisplayFilter) { - molecularProfiles( - geneId: $geneId - featureId: $featureId - name: $mpName - evidenceStatusFilter: $evidenceStatusFilter - first: $first - last: $last - before: $before - after: $after - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - cursor - node { - ...menuMolecularProfile - } - } - } -} - ${ke}`;let ju=(()=>{class m extends t.XK{constructor(we){super(we),this.document=yl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const br=t.J1` - query OrganizationCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - organizationLeaderboards { - commentsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardOrganizationFields - } - } - nodes { - ...LeaderboardOrganizationFields - } - } - } -} - ${ve}`;let Ss=(()=>{class m extends t.XK{constructor(we){super(we),this.document=br}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ua=t.J1` - query OrganizationRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - organizationLeaderboards { - revisionsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardOrganizationFields - } - } - nodes { - ...LeaderboardOrganizationFields - } - } - } -} - ${ve}`;let ha=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ua}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const jc=t.J1` - query OrganizationModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - organizationLeaderboards { - moderationLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardOrganizationFields - } - } - nodes { - ...LeaderboardOrganizationFields - } - } - } -} - ${ve}`;let Ds=(()=>{class m extends t.XK{constructor(we){super(we),this.document=jc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ga=t.J1` - query OrganizationSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - organizationLeaderboards { - submissionsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardOrganizationFields - } - } - nodes { - ...LeaderboardOrganizationFields - } - } - } -} - ${ve}`;let yc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ga}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Vi=t.J1` - query OrgPopover($orgId: Int!) { - organization(id: $orgId) { - ...orgPopover - } -} - ${K}`;let eo=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Vi}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Cc=t.J1` - query OrganizationsBrowse($first: Int, $last: Int, $before: String, $after: String, $id: Int, $orgName: String, $sortBy: OrganizationSort) { - organizations( - first: $first - last: $last - before: $before - after: $after - name: $orgName - id: $id - sortBy: $sortBy - ) { - totalCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...OrganizationBrowseTableRowFields - } - } - } -} - ${U}`;let pa=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Cc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Uc=t.J1` - query PhenotypePopover($phenotypeId: Int!) { - phenotypePopover(id: $phenotypeId) { - id - name - url - hpoId - assertionCount - evidenceItemCount - molecularProfileCount - link - } -} - `;let Gc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Uc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Os=t.J1` - query PhenotypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $hpoId: String, $sortBy: PhenotypeSort) { - phenotypes( - first: $first - last: $last - before: $before - after: $after - name: $name - hpoId: $hpoId - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...PhenotypeBrowseTableRowFields - } - } - } -} - ${ge}`;let Ks=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Os}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const co=t.J1` - mutation AcceptRevision($input: AcceptRevisionsInput!) { - acceptRevisions(input: $input) { - revisions { - id - __typename - } - } -} - `;let Ya=(()=>{class m extends t.sM{constructor(we){super(we),this.document=co}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const bc=t.J1` - mutation RejectRevision($input: RejectRevisionsInput!) { - rejectRevisions(input: $input) { - revisions { - id - __typename - } - } -} - `;let Go=(()=>{class m extends t.sM{constructor(we){super(we),this.document=bc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ar=t.J1` - query ValidateRevisionsForAcceptance($ids: [Int!]!) { - validateRevisionsForAcceptance(revisionIds: $ids) { - genericErrors - validationErrors { - ...validationError - } - } -} - ${qe}`;let ia=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ar}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const fs=t.J1` - query RevisionPopover($revisionId: Int!) { - revision(id: $revisionId) { - ...revisionPopover - } -} - ${rt}`;let Ma=(()=>{class m extends t.XK{constructor(we){super(we),this.document=fs}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ec=t.J1` - query Revisions($subject: ModeratedInput, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int, $resolvingUserId: Int, $revisionSetId: Int, $status: RevisionStatus) { - revisions( - first: $first - last: $last - before: $before - after: $after - fieldName: $fieldName - originatingUserId: $originatingUserId - resolvingUserId: $resolvingUserId - subject: $subject - status: $status - revisionSetId: $revisionSetId - ) { - totalCount - unfilteredCountForSubject - uniqueRevisors { - username - id - profileImagePath(size: 32) - } - uniqueResolvers { - username - id - profileImagePath(size: 32) - } - revisedFieldNames { - name - displayName - } - pageInfo { - hasNextPage - hasPreviousPage - endCursor - startCursor - } - edges { - node { - ...revision - } - } - } -} - ${Ft}`;let W=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ec}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const it=t.J1` - query ContributorAvatars($subscribable: SubscribableInput!) { - contributors(subscribable: $subscribable) { - editors { - ...ContributorFields - } - curators { - ...ContributorFields - } - } -} - ${rn}`;let Te=(()=>{class m extends t.XK{constructor(we){super(we),this.document=it}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ge=t.J1` - query SubscriptionForEntity($subscribable: SubscribableInput!) { - subscriptionForEntity(subscribable: $subscribable) { - ...subscriptionId - } -} - ${Cn}`;let Nt=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ge}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const gn=t.J1` - mutation ModerateEvidenceItem($input: ModerateEvidenceItemInput!) { - moderateEvidenceItem(input: $input) { - evidenceItem { - id - } - } -} - `;let Pn=(()=>{class m extends t.sM{constructor(we){super(we),this.document=gn}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const hi=t.J1` - mutation ModerateAssertion($input: ModerateAssertionInput!) { - moderateAssertion(input: $input) { - assertion { - id - } - } -} - `;let yo=(()=>{class m extends t.sM{constructor(we){super(we),this.document=hi}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Gi=t.J1` - query CivicStats { - timepointStats { - assertions { - ...TimepointCount - } - diseases { - ...TimepointCount - } - therapies { - ...TimepointCount - } - evidenceItems { - ...TimepointCount - } - features { - ...TimepointCount - } - revisions { - ...TimepointCount - } - sources { - ...TimepointCount - } - users { - ...TimepointCount - } - variants { - ...TimepointCount - } - comments { - ...TimepointCount - } - molecularProfiles { - ...TimepointCount - } - } -} - ${Zn}`;let zo=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Gi}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Xn=t.J1` - query BrowseSourceSuggestions($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourceSuggestionsSort, $sourceType: SourceSource, $citationId: Int, $sourceId: Int, $molecularProfileName: String, $diseaseName: String, $comment: String, $submitter: String, $citation: String, $submitterId: Int, $status: SourceSuggestionStatus) { - sourceSuggestions( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - sourceType: $sourceType - citationId: $citationId - sourceId: $sourceId - molecularProfileName: $molecularProfileName - diseaseName: $diseaseName - comment: $comment - submitter: $submitter - citation: $citation - submitterId: $submitterId - status: $status - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - edges { - cursor - node { - ...BrowseSourceSuggestionRowFields - } - } - } -} - ${jn}`;let Io=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Xn}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` - mutation UpdateSourceSuggestionStatus($input: UpdateSourceSuggestionStatusInput!) { - updateSourceSuggestionStatus(input: $input) { - sourceSuggestion { - id - status - } - } -} - `;const Qr=t.J1` - query SourcePopover($sourceId: Int!) { - sourcePopover(id: $sourceId) { - ...sourcePopover - } -} - ${Gn}`;let Rr=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Qr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Is=t.J1` - query BrowseSources($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourcesSort, $name: String, $year: Int, $sourceType: SourceSource, $citationId: Int, $author: String, $journal: String, $clinicalTrialId: Int, $openAccess: Boolean) { - browseSources( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - year: $year - sourceType: $sourceType - citationId: $citationId - author: $author - journal: $journal - clinicalTrialId: $clinicalTrialId - openAccess: $openAccess - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - lastUpdated - pageCount - edges { - cursor - node { - ...BrowseSourceRowFields - } - } - } -} - ${Ti}`;let ms=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Is}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Br=t.J1` - query TherapyPopover($therapyId: Int!) { - therapyPopover(id: $therapyId) { - id - name - therapyUrl - ncitId - therapyAliases - assertionCount - evidenceItemCount - molecularProfileCount - link - deprecated - } -} - `;let gs=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Br}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const vs=t.J1` - query TherapiesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $ncitId: String, $therapyAlias: String, $sortBy: TherapySort) { - therapies( - first: $first - last: $last - before: $before - after: $after - name: $name - ncitId: $ncitId - therapyAlias: $therapyAlias - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...TherapyBrowseTableRowFields - } - } - } -} - ${Oi}`;let Tc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=vs}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ws=t.J1` - query UserCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - userLeaderboards { - commentsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardUserFields - } - } - nodes { - ...LeaderboardUserFields - } - } - } -} - ${lo}`;let zc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ws}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Yo=t.J1` - query UserRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - userLeaderboards { - revisionsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardUserFields - } - } - nodes { - ...LeaderboardUserFields - } - } - } -} - ${lo}`;let ns=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Yo}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const to=t.J1` - query UserModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - userLeaderboards { - moderationLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardUserFields - } - } - nodes { - ...LeaderboardUserFields - } - } - } -} - ${lo}`;let Sa=(()=>{class m extends t.XK{constructor(we){super(we),this.document=to}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const xs=t.J1` - query UserSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { - userLeaderboards { - submissionsLeaderboard( - first: $first - last: $last - before: $before - after: $after - window: $window - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - edges { - cursor - node { - ...LeaderboardUserFields - } - } - nodes { - ...LeaderboardUserFields - } - } - } -} - ${lo}`;let is=(()=>{class m extends t.XK{constructor(we){super(we),this.document=xs}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Uu=t.J1` - query UserPopover($userId: Int!) { - user(id: $userId) { - ...popoverUser - } -} - ${Zi}`;let Yc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Uu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Gu=t.J1` - query UsersBrowse($first: Int, $last: Int, $before: String, $after: String, $userName: String, $orgName: OrganizationFilter, $userRole: UserRole, $sortBy: UsersSort) { - users( - first: $first - last: $last - before: $before - after: $after - name: $userName - organization: $orgName - role: $userRole - sortBy: $sortBy - ) { - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor - } - totalCount - edges { - cursor - node { - ...UserBrowseTableRowFields - } - } - } -} - ${Bo}`;let Dr=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Gu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Cl=t.J1` - query VariantGroupPopover($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...variantGroupPopoverFields - } -} - ${bo}`;let Wa=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Cl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const j1=t.J1` - query BrowseVariantGroups($first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantGroupsSort, $name: String, $featureNames: String, $variantNames: String) { - browseVariantGroups( - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - name: $name - featureNames: $featureNames - variantNames: $variantNames - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - totalCount - filteredCount - pageCount - lastUpdated - edges { - cursor - node { - ...BrowseVariantGroupRowFields - } - } - } -} - ${zr}`;let Mc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=j1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Jr=t.J1` - query VariantTypePopover($variantTypeId: Int!) { - variantTypePopover(id: $variantTypeId) { - ...variantTypePopover - } -} - ${rr}`;let go=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Jr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ar=t.J1` - query VariantTypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $soid: String, $sortBy: VariantTypeSort) { - variantTypes( - first: $first - last: $last - before: $before - after: $after - name: $name - soid: $soid - sortBy: $sortBy - ) { - totalCount - filteredCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...VariantTypeBrowseTableRowFields - } - } - } -} - ${lt}`;let Wc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ar}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const fa=t.J1` - query CoordinatesCard($variantId: Int!) { - variant(id: $variantId) { - ...CoordinatesCardFields - } -} - ${mn}`;let ma=(()=>{class m extends t.XK{constructor(we){super(we),this.document=fa}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Kc=t.J1` - query VariantPopover($variantId: Int!) { - variant(id: $variantId) { - ...variantPopoverFields - } -} - ${hn}`;let Ps=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Kc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Fs=t.J1` - query VariantsMenu($featureId: Int, $variantName: String, $variantTypeIds: [Int!], $hasNoVariantType: Boolean, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { - variants( - featureId: $featureId - name: $variantName - variantTypeIds: $variantTypeIds - hasNoVariantType: $hasNoVariantType - first: $first - last: $last - before: $before - after: $after - sortBy: $sortBy - ) { - totalCount - pageInfo { - startCursor - endCursor - hasPreviousPage - hasNextPage - } - edges { - cursor - node { - ...menuVariant - } - } - } -} - ${En}`;let au=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Fs}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Xc=t.J1` - query VariantTypesForFeature($featureId: Int) { - variantTypes(featureId: $featureId, first: 50) { - edges { - node { - ...menuVariantType - } - } - } -} - ${Yn}`;let Xs=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Xc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const bl=t.J1` - query BrowseVariants($variantName: String, $featureName: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $variantTypeName: String, $hasNoVariantType: Boolean, $variantCategory: VariantCategories, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { - browseVariants( - variantName: $variantName - featureName: $featureName - diseaseName: $diseaseName - therapyName: $therapyName - variantAlias: $variantAlias - variantTypeId: $variantTypeId - variantGroupId: $variantGroupId - variantTypeName: $variantTypeName - hasNoVariantType: $hasNoVariantType - category: $variantCategory - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - edges { - cursor - node { - ...BrowseVariantsFields - } - } - totalCount - filteredCount - pageCount - lastUpdated - } -} - ${Kn}`;let Da=(()=>{class m extends t.XK{constructor(we){super(we),this.document=bl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Qc=t.J1` - query ViewerBase { - viewer { - id - username - role - displayName - profileImagePath(size: 32) - organizations { - id - name - profileImagePath(size: 32) - } - mostRecentConflictOfInterestStatement { - coiStatus - } - mostRecentOrganizationId - } -} - `;let Sc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Qc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const os=t.J1` - query ViewerNotificationCount { - notifications { - unreadCount - } -} - `;let ga=(()=>{class m extends t.XK{constructor(we){super(we),this.document=os}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const cu=t.J1` - mutation AddComment($input: AddCommentInput!) { - addComment(input: $input) { - clientMutationId - comment { - ...commentListNode - } - } -} - ${Xe}`;let Yu=(()=>{class m extends t.sM{constructor(we){super(we),this.document=cu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const _s=t.J1` - query previewComment($commentText: String!) { - previewCommentText(commentText: $commentText) { - ...parsedCommentFragment - } -} - ${q}`;let lu=(()=>{class m extends t.XK{constructor(we){super(we),this.document=_s}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Jc=t.J1` - query userTypeahead($queryTerm: String!) { - userTypeahead(queryTerm: $queryTerm) { - username - } -} - `;let P=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Jc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ae=t.J1` - query entityTypeahead($queryTerm: String!) { - entityTypeahead(queryTerm: $queryTerm) { - entityId - tagType - displayName - } -} - `;let k=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ae}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const le=t.J1` - mutation DeprecateComplexMolecularProfile($molecularProfileId: Int!, $deprecationReason: MolecularProfileDeprecationReasonMutationInput!, $comment: String!, $organizationId: Int) { - deprecateComplexMolecularProfile( - input: {molecularProfileId: $molecularProfileId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} - ) { - molecularProfile { - id - name - } - } -} - `;let $e=(()=>{class m extends t.sM{constructor(we){super(we),this.document=le}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const mt=t.J1` - query EvidenceCountsForMolecularProfile($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - id - name - link - evidenceCountsByStatus { - submittedCount - acceptedCount - } - } -} - `;let kt=(()=>{class m extends t.XK{constructor(we){super(we),this.document=mt}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` - query LinkableGene($geneId: Int!) { - gene(id: $geneId) { - id - name - link - } -} - `,t.J1` - query LinkableVariant($variantId: Int!) { - variant(id: $variantId) { - id - name - link - } -} - `,t.J1` - query LinkableTherapy($therapyId: Int!) { - therapy(id: $therapyId) { - id - name - link - } -} - `,t.J1` - query LinkableFeature($featureId: Int!) { - feature(id: $featureId) { - id - name - link - featureType - } -} - `;const Hi=t.J1` - mutation DeprecateFeature($featureId: Int!, $deprecationReason: FeatureDeprecationReason!, $comment: String!, $organizationId: Int) { - deprecateFeature( - input: {featureId: $featureId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} - ) { - feature { - id - name - } - } -} - `;let So=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Hi}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const er=t.J1` - query VariantsForFeature($featureId: Int!) { - variants(featureId: $featureId, first: 50) { - nodes { - id - name - link - deprecated - flagged - } - } -} - `;let oa=(()=>{class m extends t.XK{constructor(we){super(we),this.document=er}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const tr=t.J1` - mutation FlagEntity($input: FlagEntityInput!) { - flagEntity(input: $input) { - flag { - id - } - } -} - `;let El=(()=>{class m extends t.sM{constructor(we){super(we),this.document=tr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Tl=t.J1` - mutation ResolveFlag($input: ResolveFlagInput!) { - resolveFlag(input: $input) { - flag { - id - } - } -} - `;let zl=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Tl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Jd=t.J1` - mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { - updateSourceSuggestionStatus(input: $input) { - sourceSuggestion { - id - status - } - } -} - `;let Zd=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Jd}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ml=t.J1` - mutation UpdateCoi($input: UpdateCoiInput!) { - updateCoi(input: $input) { - coiStatement { - coiPresent - coiStatus - createdAt - id - } - } -} - `;let U1=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Ml}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Dc=t.J1` - mutation UpdateUserProfile($input: EditUserInput!) { - editUser(input: $input) { - user { - id - } - } -} - `;let uu=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Dc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Zc=t.J1` - query Countries { - countries { - id - name - } -} - `;let G1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Zc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Sl=t.J1` - mutation DeprecateVariant($variantId: Int!, $deprecationReason: VariantDeprecationReason!, $comment: String!, $organizationId: Int) { - deprecateVariant( - input: {variantId: $variantId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} - ) { - newlyDeprecatedMolecularProfiles { - id - } - variant { - id - name - } - } -} - `;let Wu=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Sl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Dl=t.J1` - query MolecularProfilesForVariant($variantId: Int!) { - molecularProfiles(variantId: $variantId, first: 50) { - nodes { - id - name - link - evidenceCountsByStatus { - submittedCount - acceptedCount - } - deprecated - flagged - } - } -} - `;let du=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Dl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const hu=t.J1` - query AssertionRevisableFields($assertionId: Int!) { - assertion(id: $assertionId) { - ...RevisableAssertionFields - } -} - ${oi}`;let Oa=(()=>{class m extends t.XK{constructor(we){super(we),this.document=hu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ku=t.J1` - mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { - suggestAssertionRevision(input: $input) { - clientMutationId - assertion { - id - } - results { - newlyCreated - } - } -} - `;let Ol=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Ku}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const qc=t.J1` - mutation SubmitAssertion($input: SubmitAssertionInput!) { - submitAssertion(input: $input) { - clientMutationId - assertion { - id - } - } -} - `;let Xu=(()=>{class m extends t.sM{constructor(we){super(we),this.document=qc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Il=t.J1` - query EvidenceItemRevisableFields($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...RevisableEvidenceFields - } -} - ${zi}`;let el=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Il}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Cs=t.J1` - mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { - suggestEvidenceItemRevision(input: $input) { - clientMutationId - evidenceItem { - id - } - results { - newlyCreated - } - } -} - `;let Ka=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Cs}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` - query EvidenceFieldsFromSourceSuggestion($sourceId: Int, $molecularProfileId: Int, $diseaseId: Int) { - sourceSuggestionValues( - molecularProfileId: $molecularProfileId - diseaseId: $diseaseId - sourceId: $sourceId - ) { - molecularProfile { - id - name - link - } - disease { - id - name - link - } - source { - id - sourceType - citationId - citation - link - deprecated - } - } -} - `,t.J1` - query EvidenceSubmittableFields($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...SubmittableEvidenceFields - } -} - ${Ni}`;const Xa=t.J1` - mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { - submitEvidence(input: $input) { - clientMutationId - evidenceItem { - id - } - } -} - `;let Zu=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Xa}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const qu=t.J1` - query ExistingEvidenceCount($molecularProfileId: Int!, $sourceId: Int!) { - evidenceItems(molecularProfileId: $molecularProfileId, sourceId: $sourceId) { - totalCount - } -} - `;let e1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=qu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const wl=t.J1` - query FullyCuratedSource($sourceId: Int!) { - source(id: $sourceId) { - fullyCurated - } -} - `;let pu=(()=>{class m extends t.XK{constructor(we){super(we),this.document=wl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const fu=t.J1` - query FactorRevisableFields($featureId: Int!) { - feature(id: $featureId) { - ...RevisableFactorFields - } -} - ${so}`;let tl=(()=>{class m extends t.XK{constructor(we){super(we),this.document=fu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Qa=t.J1` - mutation SuggestFactorRevision($input: SuggestFactorRevisionInput!) { - suggestFactorRevision(input: $input) { - clientMutationId - results { - newlyCreated - id - fieldName - } - } -} - `;let t1=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Qa}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const n1=t.J1` - query FactorVariantRevisableFields($variantId: Int!) { - variant(id: $variantId) { - id - ... on FactorVariant { - ...RevisableFactorVariantFields - } - } -} - ${Yi}`;let gr=(()=>{class m extends t.XK{constructor(we){super(we),this.document=n1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const mu=t.J1` - mutation SuggestFactorVariantRevision($input: SuggestFactorVariantRevisionInput!) { - suggestFactorVariantRevision(input: $input) { - clientMutationId - variant { - id - } - results { - id - fieldName - newlyCreated - } - } -} - `;let gu=(()=>{class m extends t.sM{constructor(we){super(we),this.document=mu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Oc=t.J1` - query FusionRevisableFields($featureId: Int!) { - feature(id: $featureId) { - ...RevisableFusionFields - } -} - ${Xo}`;let o1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Oc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const r1=t.J1` - mutation SuggestFusionRevision($input: SuggestFusionRevisionInput!) { - suggestFusionRevision(input: $input) { - clientMutationId - results { - newlyCreated - id - fieldName - } - } -} - `;let s1=(()=>{class m extends t.sM{constructor(we){super(we),this.document=r1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const a1=t.J1` - query FusionVariantRevisableFields($variantId: Int!) { - variant(id: $variantId) { - id - ... on FusionVariant { - ...RevisableFusionVariantFields - } - } -} - ${Ki}`;let c1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=a1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const l1=t.J1` - mutation SuggestFusionVariantRevision($input: SuggestFusionVariantRevisionInput!) { - suggestFusionVariantRevision(input: $input) { - clientMutationId - variant { - id - } - results { - id - fieldName - newlyCreated - } - } -} - `;let xl=(()=>{class m extends t.sM{constructor(we){super(we),this.document=l1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const nl=t.J1` - query GeneRevisableFields($featureId: Int!) { - feature(id: $featureId) { - ...RevisableGeneFields - } -} - ${qo}`;let No=(()=>{class m extends t.XK{constructor(we){super(we),this.document=nl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ni=t.J1` - mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { - suggestGeneRevision(input: $input) { - clientMutationId - results { - newlyCreated - id - fieldName - } - } -} - `;let Pi=(()=>{class m extends t.sM{constructor(we){super(we),this.document=ni}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const cr=t.J1` - query GeneVariantRevisableFields($variantId: Int!) { - variant(id: $variantId) { - id - ... on GeneVariant { - ...RevisableGeneVariantFields - } - } -} - ${pr}`;let As=(()=>{class m extends t.XK{constructor(we){super(we),this.document=cr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ir=t.J1` - mutation SuggestGeneVariantRevision($input: SuggestGeneVariantRevisionInput!) { - suggestGeneVariantRevision(input: $input) { - clientMutationId - variant { - id - } - results { - id - fieldName - newlyCreated - } - } -} - `;let $r=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Ir}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ja=t.J1` - query MolecularProfileRevisableFields($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...RevisableMolecularProfileFields - } -} - ${fo}`;let ko=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ja}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const lr=t.J1` - mutation SuggestMolecularProfileRevision($input: SuggestMolecularProfileRevisionInput!) { - suggestMolecularProfileRevision(input: $input) { - clientMutationId - molecularProfile { - id - } - results { - newlyCreated - id - fieldName - } - } -} - `;let Rs=(()=>{class m extends t.sM{constructor(we){super(we),this.document=lr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ri=t.J1` - mutation SubmitSource($input: SuggestSourceInput!) { - suggestSource(input: $input) { - clientMutationId - sourceSuggestion { - id - } - } -} - `;let Ia=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Ri}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Pl=t.J1` - query SourceSuggestionChecks($sourceId: Int!) { - source(id: $sourceId) { - fullyCurated - } - sourceSuggestions(sourceId: $sourceId) { - filteredCount - } -} - `;let Za=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Pl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Wo=t.J1` - query VariantGroupRevisableFields($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupRevisableFields - } -} - ${po}`;let Qs=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Wo}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const qa=t.J1` - mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { - suggestVariantGroupRevision(input: $input) { - clientMutationId - variantGroup { - id - } - results { - newlyCreated - id - fieldName - } - } -} - `;let Js=(()=>{class m extends t.sM{constructor(we){super(we),this.document=qa}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` - query VariantGroupSubmittableFields($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...SubmittableVariantGroupFields - } -} - ${fr}`;const Ns=t.J1` - mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { - submitVariantGroup(input: $input) { - clientMutationId - variantGroup { - id - } - } -} - `;let il=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Ns}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();t.J1` - query GeneAdvancedSearch($query: GeneSearchFilter!) { - searchGenes(query: $query, createPermalink: true) { - ...AdvancedSearchPermalink - } -} - ${jo}`;const Fl=t.J1` - query EntityTagsTest($molecularProfileId: Int!, $geneId: Int!, $variantId: Int!, $therapyId: Int!, $diseaseId: Int!, $eid: Int!) { - evidenceItem(id: $eid) { - id - name - link - } - molecularProfile(id: $molecularProfileId) { - id - name - link - } - gene(id: $geneId) { - id - name - link - } - variant(id: $variantId) { - id - name - link - } - therapy(id: $therapyId) { - id - name - link - } - disease(id: $diseaseId) { - id - name - link - } -} - `;let wc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Fl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Zs=t.J1` - query AcmgCodeSelectTypeahead($code: String!) { - acmgCodesTypeahead(queryTerm: $code) { - ...AcmgCodeSelectTypeaheadFields - } -} - ${Lr}`;let ol=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Zs}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ec=t.J1` - query AcmgCodeSelectTag($id: Int!) { - acmgCode(id: $id) { - ...AcmgCodeSelectTypeaheadFields - } -} - ${Lr}`;let or=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ec}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const rl=t.J1` - query ClingenCodeSelectTypeahead($code: String!) { - clingenCodesTypeahead(queryTerm: $code) { - ...ClingenCodeSelectTypeaheadFields - } -} - ${qi}`;let Er=(()=>{class m extends t.XK{constructor(we){super(we),this.document=rl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Nr=t.J1` - query ClingenCodeSelectTag($id: Int!) { - clingenCode(id: $id) { - ...ClingenCodeSelectTypeaheadFields - } -} - ${qi}`;let Al=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Nr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const wa=t.J1` - mutation QuickAddDisease($name: String!, $doid: String) { - addDisease(input: {name: $name, doid: $doid}) { - ...QuickAddDiseaseFields - } -} - ${wn}`;let sl=(()=>{class m extends t.sM{constructor(we){super(we),this.document=wa}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Zr=t.J1` - query DiseaseSelectTypeahead($name: String!) { - diseaseTypeahead(queryTerm: $name) { - ...DiseaseSelectTypeaheadFields - } -} - ${ro}`;let xc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Zr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const d1=t.J1` - query DiseaseSelectTag($id: Int!) { - disease(id: $id) { - ...DiseaseSelectTypeaheadFields - } -} - ${ro}`;let h1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=d1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Rl=t.J1` - query EvidenceManager($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { - evidenceItems( - first: $first - last: $last - before: $before - after: $after - diseaseName: $diseaseName - therapyName: $therapyName - id: $id - description: $description - evidenceLevel: $evidenceLevel - evidenceDirection: $evidenceDirection - significance: $significance - evidenceType: $evidenceType - evidenceRating: $rating - variantOrigin: $variantOrigin - variantId: $variantId - molecularProfileId: $molecularProfileId - assertionId: $assertionId - organizationId: $organizationId - userId: $userId - phenotypeId: $phenotypeId - diseaseId: $diseaseId - therapyId: $therapyId - sourceId: $sourceId - clinicalTrialId: $clinicalTrialId - molecularProfileName: $molecularProfileName - status: $status - sortBy: $sortBy - ) { - totalCount - pageCount - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...EvidenceManagerFields - } - } - nodes { - ...EvidenceManagerFields - } - } -} - ${bi}`;let vu=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Rl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const p1=t.J1` - query EvidenceSelectTypeahead($eid: Int!) { - evidenceItems(id: $eid) { - nodes { - ...EvidenceSelectTypeaheadFields - } - } -} - ${Mr}`;let al=(()=>{class m extends t.XK{constructor(we){super(we),this.document=p1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const K1=t.J1` - query EvidenceSelectTag($eid: Int!) { - evidenceItem(id: $eid) { - ...EvidenceSelectTypeaheadFields - } -} - ${Mr}`;let qd=(()=>{class m extends t.XK{constructor(we){super(we),this.document=K1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const X1=t.J1` - mutation QuickAddFeature($name: String!, $organizationId: Int, $featureType: CreateableFeatureTypes!) { - createFeature( - input: {name: $name, organizationId: $organizationId, featureType: $featureType} - ) { - ...QuickAddFeatureFields - } -} - ${Ve}`;let Q1=(()=>{class m extends t.sM{constructor(we){super(we),this.document=X1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const J1=t.J1` - query FeatureSelectTypeahead($queryTerm: String!, $featureType: FeatureInstanceTypes) { - featureTypeahead(queryTerm: $queryTerm, featureType: $featureType) { - ...FeatureSelectTypeaheadFields - } -} - ${tt}`;let Z1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=J1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const q1=t.J1` - query FeatureSelectTag($featureId: Int!) { - feature(id: $featureId) { - ...FeatureSelectTypeaheadFields - } -} - ${tt}`;let ed=(()=>{class m extends t.XK{constructor(we){super(we),this.document=q1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const td=t.J1` - mutation SelectOrCreateFusion($organizationId: Int, $fivePrimeGeneId: Int, $fivePrimePartnerStatus: FusionPartnerStatus!, $threePrimeGeneId: Int, $threePrimePartnerStatus: FusionPartnerStatus!) { - createFusionFeature( - input: {organizationId: $organizationId, fivePrimeGene: {geneId: $fivePrimeGeneId, partnerStatus: $fivePrimePartnerStatus}, threePrimeGene: {geneId: $threePrimeGeneId, partnerStatus: $threePrimePartnerStatus}} - ) { - new - feature { - ...FeatureSummaryFields - } - } -} - ${ye}`;let nd=(()=>{class m extends t.sM{constructor(we){super(we),this.document=td}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const id=t.J1` - query MolecularProfileSelectTypeahead($name: String!, $geneId: Int) { - molecularProfiles(name: $name, geneId: $geneId, first: 25) { - nodes { - ...MolecularProfileSelectTypeaheadFields - } - } -} - ${gi}`;let od=(()=>{class m extends t.XK{constructor(we){super(we),this.document=id}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const _u=t.J1` - query MolecularProfileSelectTag($molecularProfileId: Int!) { - molecularProfile(id: $molecularProfileId) { - ...MolecularProfileSelectTypeaheadFields - } -} - ${gi}`;let f1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=_u}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const rd=t.J1` - query PreviewMolecularProfileName2($mpStructure: MolecularProfileComponentInput) { - previewMolecularProfileName(structure: $mpStructure) { - existingMolecularProfile { - id - name - link - deprecated - flagged - } - segments { - ...PreviewMpName2 - } - deprecatedVariants { - id - name - link - deprecated - flagged - } - } -} - ${Mt}`;let sd=(()=>{class m extends t.XK{constructor(we){super(we),this.document=rd}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ad=t.J1` - query MpExpressionEditorPrepopulate($mpId: Int!) { - molecularProfile(id: $mpId) { - id - parsedName { - ...MolecularProfileParsedName - } - rawName - deprecated - flagged - } -} - ${On}`;let Hr=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ad}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Nl=t.J1` - mutation CreateMolecularProfile2($mpStructure: MolecularProfileComponentInput!, $organizationId: Int) { - createMolecularProfile( - input: {structure: $mpStructure, organizationId: $organizationId} - ) { - molecularProfile { - id - name - link - deprecated - flagged - } - } -} - `;let yu=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Nl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const kl=t.J1` - query NccnGuidelineSelectTypeahead($name: String!) { - nccnGuidelinesTypeahead(queryTerm: $name) { - ...NccnGuidelineSelectTypeaheadFields - } -} - ${Yt}`;let Vl=(()=>{class m extends t.XK{constructor(we){super(we),this.document=kl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const m1=t.J1` - query NccnGuidelineSelectTag($id: Int!) { - nccnGuideline(id: $id) { - ...NccnGuidelineSelectTypeaheadFields - } -} - ${Yt}`;let g1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=m1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ll=t.J1` - query PhenotypeSelectTypeahead($name: String!) { - phenotypeTypeahead(queryTerm: $name) { - ...PhenotypeSelectTypeaheadFields - } -} - ${pn}`;let Bl=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ll}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Cu=t.J1` - query PhenotypeSelectTag($id: Int!) { - phenotype(id: $id) { - ...PhenotypeSelectTypeaheadFields - } -} - ${pn}`;let Pc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Cu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const v1=t.J1` - query QuickAddSourceCheckCitation($sourceType: SourceSource!, $citationId: String!) { - remoteCitation(sourceType: $sourceType, citationId: $citationId) -} - `;let Vs=(()=>{class m extends t.XK{constructor(we){super(we),this.document=v1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const $l=t.J1` - mutation QuickAddSourceRemoteCitation($input: AddRemoteCitationInput!) { - addRemoteCitation(input: $input) { - newSource { - id - citationId - sourceType - } - } -} - `;let Hl=(()=>{class m extends t.sM{constructor(we){super(we),this.document=$l}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const vo=t.J1` - query SourceSelectTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { - sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { - ...SourceSelectTypeaheadFields - } -} - ${$i}`;let cl=(()=>{class m extends t.XK{constructor(we){super(we),this.document=vo}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const tc=t.J1` - query SourceSelectTag($id: Int!) { - source(id: $id) { - ...SourceSelectTypeaheadFields - } -} - ${$i}`;let jr=(()=>{class m extends t.XK{constructor(we){super(we),this.document=tc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const eh=t.J1` - mutation QuickAddTherapy($name: String!, $ncitId: String) { - addTherapy(input: {name: $name, ncitId: $ncitId}) { - ...QuickAddTherapyFields - } -} - ${tn}`;let jl=(()=>{class m extends t.sM{constructor(we){super(we),this.document=eh}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Fc=t.J1` - query TherapySelectTypeahead($name: String!) { - therapyTypeahead(queryTerm: $name) { - ...TherapySelectTypeaheadFields - } -} - ${vi}`;let bs=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Fc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const cd=t.J1` - query TherapySelectTag($id: Int!) { - therapy(id: $id) { - ...TherapySelectTypeaheadFields - } -} - ${vi}`;let bu=(()=>{class m extends t.XK{constructor(we){super(we),this.document=cd}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const th=t.J1` - mutation SelectOrCreateFusionVariant($organizationId: Int, $featureId: Int!, $coordinates: FusionVariantInput!) { - createFusionVariant( - input: {organizationId: $organizationId, featureId: $featureId, coordinates: $coordinates} - ) { - ...CreateFusionVariantFields - } -} - ${bn}`;let Ls=(()=>{class m extends t.sM{constructor(we){super(we),this.document=th}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const _1=t.J1` - query VariantManager($variantName: String, $featureName: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { - browseVariants( - variantName: $variantName - featureName: $featureName - diseaseName: $diseaseName - therapyName: $therapyName - variantAlias: $variantAlias - variantTypeId: $variantTypeId - variantGroupId: $variantGroupId - sortBy: $sortBy - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - endCursor - hasNextPage - startCursor - hasPreviousPage - } - edges { - cursor - node { - ...BrowseVariantsFields - } - } - totalCount - filteredCount - pageCount - } -} - ${Kn}`;let Ul=(()=>{class m extends t.XK{constructor(we){super(we),this.document=_1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const y1=t.J1` - mutation QuickAddVariant($name: String!, $featureId: Int!, $organizationId: Int) { - createVariant( - input: {name: $name, featureId: $featureId, organizationId: $organizationId} - ) { - ...QuickAddVariantFields - } -} - ${Ln}`;let Bs=(()=>{class m extends t.sM{constructor(we){super(we),this.document=y1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const nc=t.J1` - query VariantSelectTypeahead($name: String!, $featureId: Int) { - variantsTypeahead(queryTerm: $name, featureId: $featureId) { - ...VariantSelectTypeaheadFields - } -} - ${on}`;let Gl=(()=>{class m extends t.XK{constructor(we){super(we),this.document=nc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Yl=t.J1` - query VariantSelectTag($variantId: Int!) { - variant(id: $variantId) { - ... on Variant { - ...VariantSelectTypeaheadFields - } - ... on GeneVariant { - ...VariantSelectTypeaheadFields - } - ... on FactorVariant { - ...VariantSelectTypeaheadFields - } - ... on FusionVariant { - ...VariantSelectTypeaheadFields - } - } -} - ${on}`;let Eu=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Yl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const qs=t.J1` - query VariantTypeSelectTypeahead($name: String!) { - variantTypeTypeahead(queryTerm: $name) { - ...VariantTypeSelectTypeaheadFields - } -} - ${xn}`;let ji=(()=>{class m extends t.XK{constructor(we){super(we),this.document=qs}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Wl=t.J1` - query VariantTypeSelectTag($id: Int!) { - variantType(id: $id) { - ...VariantTypeSelectTypeaheadFields - } -} - ${xn}`;let Kl=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Wl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const C1=t.J1` - query AssertionDetail($assertionId: Int!) { - assertion(id: $assertionId) { - ...AssertionDetailFields - } -} - ${qn}`;let ld=(()=>{class m extends t.XK{constructor(we){super(we),this.document=C1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const b1=t.J1` - query AssertionSummary($assertionId: Int!) { - assertion(id: $assertionId) { - ...AssertionSummaryFields - } -} - ${pi}`;let ud=(()=>{class m extends t.XK{constructor(we){super(we),this.document=b1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const dd=t.J1` - query ClinicalTrialDetail($clinicalTrialId: Int!) { - clinicalTrial(id: $clinicalTrialId) { - id - name - nctId - description - url - link - } -} - `;let E1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=dd}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ic=t.J1` - query ClinicalTrialSummary($clinicalTrialId: Int!) { - clinicalTrial(id: $clinicalTrialId) { - id - name - nctId - description - url - link - } -} - `;let hd=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ic}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const pd=t.J1` - query DiseaseDetail($diseaseId: Int!) { - disease(id: $diseaseId) { - id - name - doid - diseaseUrl - displayName - diseaseAliases - link - deprecated - } -} - `;let fd=(()=>{class m extends t.XK{constructor(we){super(we),this.document=pd}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const md=t.J1` - query DiseasesSummary($diseaseId: Int!) { - disease(id: $diseaseId) { - ...DiseasesSummaryFields - } -} - ${li}`;let gd=(()=>{class m extends t.XK{constructor(we){super(we),this.document=md}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Dn=t.J1` - query EvidenceDetail($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...EvidenceDetailFields - } -} - ${mi}`;let oo=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Dn}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const T1=t.J1` - query EvidenceSummary($evidenceId: Int!) { - evidenceItem(id: $evidenceId) { - ...EvidenceSummaryFields - } -} - ${Ei}`;let z1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=T1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const wo=t.J1` - query FeatureDetail($featureId: Int!) { - feature(id: $featureId) { - ...FeatureDetailFields - } -} - ${Xi}`;let ll=(()=>{class m extends t.XK{constructor(we){super(we),this.document=wo}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ri=t.J1` - query FeaturesSummary($featureId: Int!) { - feature(id: $featureId) { - ...FeatureSummaryFields - } -} - ${ye}`;let $o=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ri}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const oc=t.J1` - query MolecularProfileDetail($mpId: Int!) { - molecularProfile(id: $mpId) { - ...MolecularProfileDetailFields - } -} - ${Mi}`;let Ac=(()=>{class m extends t.XK{constructor(we){super(we),this.document=oc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ul=t.J1` - query MolecularProfileSummary($mpId: Int!) { - molecularProfile(id: $mpId) { - ...MolecularProfileSummaryFields - } -} - ${ir}`;let Tu=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ul}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Xl=t.J1` - query OrganizationDetail($organizationId: Int!) { - organization(id: $organizationId) { - ...OrganizationDetailFields - } -} - ${Gr}`;let ra=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Xl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const M1=t.J1` - query OrganizationGroups($organizationId: Int!) { - organization(id: $organizationId) { - subGroups { - ...OrganizationGroupsFields - } - } -} - ${Do}`;let zu=(()=>{class m extends t.XK{constructor(we){super(we),this.document=M1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const qr=t.J1` - query OrganizationMembers($organizationId: Int!, $first: Int, $last: Int, $before: String, $after: String) { - users( - organization: {id: $organizationId} - first: $first - last: $last - before: $before - after: $after - ) { - pageInfo { - hasNextPage - hasPreviousPage - startCursor - endCursor - } - edges { - cursor - node { - ...OrganizationMembersFields - } - } - } -} - ${Jo}`;let sa=(()=>{class m extends t.XK{constructor(we){super(we),this.document=qr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Mu=t.J1` - query PhenotypeDetail($phenotypeId: Int!) { - phenotype(id: $phenotypeId) { - id - name - description - hpoId - url - link - } -} - `;let ea=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Mu}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const ta=t.J1` - query DataReleases { - dataReleases { - ...Release - } -} - ${Sr}`;let dl=(()=>{class m extends t.XK{constructor(we){super(we),this.document=ta}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const S1=t.J1` - query SourceDetail($sourceId: Int!) { - source(id: $sourceId) { - ...SourceDetailFields - } -} - ${_r}`;let Li=(()=>{class m extends t.XK{constructor(we){super(we),this.document=S1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const D1=t.J1` - query SourceSummary($sourceId: Int!) { - source(id: $sourceId) { - ...SourceSummaryFields - } -} - ${yr}`;let rc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=D1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ql=t.J1` - query TherapyDetail($therapyId: Int!) { - therapy(id: $therapyId) { - id - name - ncitId - therapyUrl - therapyAliases - link - deprecated - } -} - `;let xa=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Ql}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Rc=t.J1` - query TherapiesSummary($therapyId: Int!) { - therapy(id: $therapyId) { - ...TherapiesSummaryFields - } -} - ${Fo}`;let rs=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Rc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const O1=t.J1` - query UserDetail($userId: Int!) { - user(id: $userId) { - ...UserDetailFields - } -} - ${zs}`;let Su=(()=>{class m extends t.XK{constructor(we){super(we),this.document=O1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Jl=t.J1` - query UserNotifications($first: Int, $last: Int, $before: String, $after: String, $notificationReason: NotificationReason, $subscriptionId: Int, $originatingObject: SubscribableInput, $eventType: EventAction, $originatingUserId: Int, $organizationId: Int, $includeRead: Boolean) { - notifications( - first: $first - last: $last - before: $before - after: $after - notificationReason: $notificationReason - subscriptionId: $subscriptionId - originatingObject: $originatingObject - eventType: $eventType - originatingUserId: $originatingUserId - organizationId: $organizationId - includeRead: $includeRead - ) { - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage - } - notificationSubjects { - ...notificationFeedSubjects - } - originatingUsers { - ...notificationOriginatingUsers - } - organizations { - ...notificationOrganization - } - eventTypes - edges { - node { - ...notificationNode - } - } - } -} - ${es} -${Uo} -${Fr} -${Eo}`;let hl=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Jl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Zo=t.J1` - mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { - updateNotificationStatus(input: $input) { - notifications { - ...notificationNode - } - } -} - ${Eo}`;let ur=(()=>{class m extends t.sM{constructor(we){super(we),this.document=Zo}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const sc=t.J1` - mutation Unsubscribe($input: UnsubscribeInput!) { - unsubscribe(input: $input) { - unsubscribedEntities { - ...subscribable - } - } -} - ${Ms}`;let I1=(()=>{class m extends t.sM{constructor(we){super(we),this.document=sc}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const wr=t.J1` - mutation Subscribe($input: SubscribeInput!) { - subscribe(input: $input) { - subscriptions { - id - } - } -} - `;let ac=(()=>{class m extends t.sM{constructor(we){super(we),this.document=wr}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Vo=t.J1` - query VariantGroupDetail($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupDetailFields - } -} - ${ds}`;let w1=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Vo}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const x1=t.J1` - query VariantGroupsSummary($variantGroupId: Int!) { - variantGroup(id: $variantGroupId) { - ...VariantGroupSummaryFields - } -} - ${Ze}`;let Pa=(()=>{class m extends t.XK{constructor(we){super(we),this.document=x1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Du=t.J1` - query VariantTypeDetail($variantTypeId: Int!) { - variantType(id: $variantTypeId) { - id - name - soid - description - url - link - } -} - `;let cc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Du}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const P1=t.J1` - query VariantDetail($variantId: Int!) { - variant(id: $variantId) { - ...VariantDetailFields - } -} - ${An}`;let Nc=(()=>{class m extends t.XK{constructor(we){super(we),this.document=P1}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Es=t.J1` - query CoordinateIdsForVariant($variantId: Int!) { - variant(id: $variantId) { - ...VariantCoordinateIds - } -} - ${fe}`;let Ou=(()=>{class m extends t.XK{constructor(we){super(we),this.document=Es}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const pl=t.J1` - query VariantSummary($variantId: Int!) { - variant(id: $variantId) { - ...VariantSummaryFields - } -} - ${We}`;let va=(()=>{class m extends t.XK{constructor(we){super(we),this.document=pl}static#e=this.\u0275fac=function(ut){return new(ut||m)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()},5312:(Rt,De,c)=>{c.d(De,{c:()=>t});const t={production:!0}},3272:(Rt,De,c)=>{var t=c(345),r=c(3953),g=c(1985),e=c(7707),M=c(7673),G=c(9030),L=c(7786),B=c(5343);const A=new g.c(B.l);var I=c(1413),F=c(7468),X=c(4412),V=c(8359),x=c(4668),ne=c(983),J=c(8810),be=c(8071);class he{constructor(d,p,v){this.kind=d,this.value=p,this.error=v,this.hasValue="N"===d}observe(d){return Ie(this,d)}do(d,p,v){const{kind:C,value:O,error:Q}=this;return"N"===C?d?.(O):"E"===C?p?.(Q):v?.()}accept(d,p,v){var C;return(0,be.T)(null===(C=d)||void 0===C?void 0:C.next)?this.observe(d):this.do(d,p,v)}toObservable(){const{kind:d,value:p,error:v}=this,C="N"===d?(0,M.of)(p):"E"===d?(0,J.$)(()=>v):"C"===d?ne.w:0;if(!C)throw new TypeError(`Unexpected notification kind ${d}`);return C}static createNext(d){return new he("N",d)}static createError(d){return new he("E",void 0,d)}static createComplete(){return he.completeNotification}}function Ie(T,d){var p,v,C;const{kind:O,value:Q,error:Me}=T;if("string"!=typeof O)throw new TypeError('Invalid notification, missing "kind"');"N"===O?null===(p=d.next)||void 0===p||p.call(d,Q):"E"===O?null===(v=d.error)||void 0===v||v.call(d,Me):null===(C=d.complete)||void 0===C||C.call(d)}he.completeNotification=new he("C");var me=c(9974),de=c(4360),Z=c(3703),pe=function(){},E=pe;function R(T){E=T||pe}var Y=console;function se(T){if(T.error&&T.group&&T.groupCollapsed&&T.groupEnd&&T.warn)return T;var p=0;return{error:function(O){for(var Q=arguments.length,Me=new Array(Q>1?Q-1:0),xe=1;xe1?Q-1:0),xe=1;xe1?Q-1:0),xe=1;xe2?xe-2:0),yt=2;yt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var C,v=Wt(T);if(d){var O=Wt(this).constructor;C=Reflect.construct(v,arguments,O)}else C=v.apply(this,arguments);return function _e(T,d){return!d||"object"!=typeof d&&"function"!=typeof d?ie(T):d}(this,C)}}function et(T){return function dt(T){if(Array.isArray(T))return kn(T)}(T)||function cn(T){if(typeof Symbol<"u"&&null!=T[Symbol.iterator]||null!=T["@@iterator"])return Array.from(T)}(T)||Wn(T)||function Vn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wn(T,d){if(T){if("string"==typeof T)return kn(T,d);var p=Object.prototype.toString.call(T).slice(8,-1);if("Object"===p&&T.constructor&&(p=T.constructor.name),"Map"===p||"Set"===p)return Array.from(T);if("Arguments"===p||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return kn(T,d)}}function kn(T,d){(null==d||d>T.length)&&(d=T.length);for(var p=0,v=new Array(d);p-1&&(yt=yt.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var Dt=yt.replace(/^\s+/,"").replace(/\(eval code/g,"("),Bt=Dt.match(/ (\((.+):(\d+):(\d+)\)$)/),Ht=(Dt=Bt?Dt.replace(Bt[0],""):Dt).split(/\s+/).slice(1),Xt=this.extractLocation(Bt?Bt[1]:Ht.pop()),Zt=Ht.join(" ")||void 0,vn=["eval",""].indexOf(Xt[0])>-1?void 0:Xt[0];return new v({functionName:Zt,fileName:vn,lineNumber:Xt[1],columnNumber:Xt[2],source:yt})},this)},parseFFOrSafari:function(xe){return xe.stack.split("\n").filter(function(yt){return!yt.match(Q)},this).map(function(yt){if(yt.indexOf(" > eval")>-1&&(yt=yt.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===yt.indexOf("@")&&-1===yt.indexOf(":"))return new v({functionName:yt});var Dt=/((.*".+"[^@]*)?[^@]*)(?:@)/,Bt=yt.match(Dt),Ht=Bt&&Bt[1]?Bt[1]:void 0,Xt=this.extractLocation(yt.replace(Dt,""));return new v({functionName:Ht,fileName:Xt[0],lineNumber:Xt[1],columnNumber:Xt[2],source:yt})},this)},parseOpera:function(xe){return!xe.stacktrace||xe.message.indexOf("\n")>-1&&xe.message.split("\n").length>xe.stacktrace.split("\n").length?this.parseOpera9(xe):xe.stack?this.parseOpera11(xe):this.parseOpera10(xe)},parseOpera9:function(xe){for(var ot=/Line (\d+).*script (?:in )?(\S+)/i,yt=xe.message.split("\n"),Dt=[],Bt=2,Ht=yt.length;Bt/,"$2").replace(/\([^)]*\)/g,"")||void 0;Ht.match(/\(([^)]*)\)/)&&(Zt=Ht.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var vn=void 0===Zt||"[arguments not available]"===Zt?void 0:Zt.split(",");return new v({functionName:Xt,args:vn,fileName:Bt[0],lineNumber:Bt[1],columnNumber:Bt[2],source:yt})},this)}})}),te=On(function(T,d){d.getArg=function p(an,_n,ti){if(_n in an)return an[_n];if(3===arguments.length)return ti;throw new Error('"'+_n+'" is a required argument.')};var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,C=/^data:.+\,.+$/;function O(an){var _n=an.match(v);return _n?{scheme:_n[1],auth:_n[2],host:_n[3],port:_n[4],path:_n[5]}:null}function Q(an){var _n="";return an.scheme&&(_n+=an.scheme+":"),_n+="//",an.auth&&(_n+=an.auth+"@"),an.host&&(_n+=an.host),an.port&&(_n+=":"+an.port),an.path&&(_n+=an.path),_n}function Me(an){var _n=an,ti=O(an);if(ti){if(!ti.path)return an;_n=ti.path}for(var Bi,Jn=d.isAbsolute(_n),Ci=_n.split(/\/+/),nr=0,vr=Ci.length-1;vr>=0;vr--)"."===(Bi=Ci[vr])?Ci.splice(vr,1):".."===Bi?nr++:nr>0&&(""===Bi?(Ci.splice(vr+1,nr),nr=0):(Ci.splice(vr,2),nr--));return""===(_n=Ci.join("/"))&&(_n=Jn?"/":"."),ti?(ti.path=_n,Q(ti)):_n}d.urlParse=O,d.urlGenerate=Q,d.normalize=Me,d.join=function xe(an,_n){""===an&&(an="."),""===_n&&(_n=".");var ti=O(_n),Jn=O(an);if(Jn&&(an=Jn.path||"/"),ti&&!ti.scheme)return Jn&&(ti.scheme=Jn.scheme),Q(ti);if(ti||_n.match(C))return _n;if(Jn&&!Jn.host&&!Jn.path)return Jn.host=_n,Q(Jn);var Ci="/"===_n.charAt(0)?_n:Me(an.replace(/\/+$/,"")+"/"+_n);return Jn?(Jn.path=Ci,Q(Jn)):Ci},d.isAbsolute=function(an){return"/"===an.charAt(0)||!!an.match(v)},d.relative=function ot(an,_n){""===an&&(an="."),an=an.replace(/\/$/,"");for(var ti=0;0!==_n.indexOf(an+"/");){var Jn=an.lastIndexOf("/");if(Jn<0||(an=an.slice(0,Jn)).match(/^([^\/]+:\/)?\/*$/))return _n;++ti}return Array(ti+1).join("../")+_n.substr(an.length+1)};var yt=!("__proto__"in Object.create(null));function Dt(an){return an}function Xt(an){if(!an)return!1;var _n=an.length;if(_n<9||95!==an.charCodeAt(_n-1)||95!==an.charCodeAt(_n-2)||111!==an.charCodeAt(_n-3)||116!==an.charCodeAt(_n-4)||111!==an.charCodeAt(_n-5)||114!==an.charCodeAt(_n-6)||112!==an.charCodeAt(_n-7)||95!==an.charCodeAt(_n-8)||95!==an.charCodeAt(_n-9))return!1;for(var ti=_n-10;ti>=0;ti--)if(36!==an.charCodeAt(ti))return!1;return!0}function Mn(an,_n){return an===_n?0:an>_n?1:-1}d.toSetString=yt?Dt:function Bt(an){return Xt(an)?"$"+an:an},d.fromSetString=yt?Dt:function Ht(an){return Xt(an)?an.slice(1):an},d.compareByOriginalPositions=function Zt(an,_n,ti){var Jn=an.source-_n.source;return 0!==Jn||0!=(Jn=an.originalLine-_n.originalLine)||0!=(Jn=an.originalColumn-_n.originalColumn)||ti||0!=(Jn=an.generatedColumn-_n.generatedColumn)||0!=(Jn=an.generatedLine-_n.generatedLine)?Jn:an.name-_n.name},d.compareByGeneratedPositionsDeflated=function vn(an,_n,ti){var Jn=an.generatedLine-_n.generatedLine;return 0!==Jn||0!=(Jn=an.generatedColumn-_n.generatedColumn)||ti||0!=(Jn=an.source-_n.source)||0!=(Jn=an.originalLine-_n.originalLine)||0!=(Jn=an.originalColumn-_n.originalColumn)?Jn:an.name-_n.name},d.compareByGeneratedPositionsInflated=function ci(an,_n){var ti=an.generatedLine-_n.generatedLine;return 0!==ti||0!=(ti=an.generatedColumn-_n.generatedColumn)||0!==(ti=Mn(an.source,_n.source))||0!=(ti=an.originalLine-_n.originalLine)||0!=(ti=an.originalColumn-_n.originalColumn)?ti:Mn(an.name,_n.name)}}),q=On(function(T,d){function p(v,C,O,Q,Me,xe){var ot=Math.floor((C-v)/2)+v,yt=Me(O,Q[ot],!0);return 0===yt?ot:yt>0?C-ot>1?p(ot,C,O,Q,Me,xe):xe==d.LEAST_UPPER_BOUND?C1?p(v,ot,O,Q,Me,xe):xe==d.LEAST_UPPER_BOUND?ot:v<0?-1:v}d.GREATEST_LOWER_BOUND=1,d.LEAST_UPPER_BOUND=2,d.search=function(C,O,Q,Me){if(0===O.length)return-1;var xe=p(-1,O.length,C,O,Q,Me||d.GREATEST_LOWER_BOUND);if(xe<0)return-1;for(;xe-1>=0&&0===Q(O[xe],O[xe-1],!0);)--xe;return xe}}),Xe=Object.prototype.hasOwnProperty;function ht(){this._array=[],this._set=Object.create(null)}ht.fromArray=function(d,p){for(var v=new ht,C=0,O=d.length;C=0&&d=C)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(xe=re_decode(d.charCodeAt(p++))))throw new Error("Invalid base64 digit: "+d.charAt(p-1));Me=!!(32&xe),O+=(xe&=31)<>1;return 1&~T?p:-p}(O),v.rest=p};function ve(T,d,p){var v=T[d];T[d]=T[p],T[p]=v}function U(T,d,p,v){if(p=0){var Q=this._originalMappings[O];if(void 0===d.column)for(var Me=Q.originalLine;Q&&Q.originalLine===Me;)C.push({line:te.getArg(Q,"generatedLine",null),column:te.getArg(Q,"generatedColumn",null),lastColumn:te.getArg(Q,"lastGeneratedColumn",null)}),Q=this._originalMappings[++O];else for(var xe=Q.originalColumn;Q&&Q.originalLine===p&&Q.originalColumn==xe;)C.push({line:te.getArg(Q,"generatedLine",null),column:te.getArg(Q,"generatedColumn",null),lastColumn:te.getArg(Q,"lastGeneratedColumn",null)}),Q=this._originalMappings[++O]}return C};var Cn=rn;function Zn(T){var d=T;"string"==typeof T&&(d=JSON.parse(T.replace(/^\)\]\}'/,"")));var p=te.getArg(d,"version"),v=te.getArg(d,"sources"),C=te.getArg(d,"names",[]),O=te.getArg(d,"sourceRoot",null),Q=te.getArg(d,"sourcesContent",null),Me=te.getArg(d,"mappings"),xe=te.getArg(d,"file",null);if(p!=this._version)throw new Error("Unsupported version: "+p);v=v.map(String).map(te.normalize).map(function(ot){return O&&te.isAbsolute(O)&&te.isAbsolute(ot)?te.relative(O,ot):ot}),this._names=rt.fromArray(C.map(String),!0),this._sources=rt.fromArray(v,!0),this.sourceRoot=O,this.sourcesContent=Q,this._mappings=Me,this.file=xe}function jn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}(Zn.prototype=Object.create(rn.prototype)).consumer=rn,Zn.fromSourceMap=function(d){var p=Object.create(Zn.prototype),v=p._names=rt.fromArray(d._names.toArray(),!0),C=p._sources=rt.fromArray(d._sources.toArray(),!0);p.sourceRoot=d._sourceRoot,p.sourcesContent=d._generateSourcesContent(p._sources.toArray(),p.sourceRoot),p.file=d._file;for(var O=d._mappings.toArray().slice(),Q=p.__generatedMappings=[],Me=p.__originalMappings=[],xe=0,ot=O.length;xe1&&(Zt.source=Me+Mn[1],Me+=Mn[1],Zt.originalLine=O+Mn[2],O=Zt.originalLine,Zt.originalLine+=1,Zt.originalColumn=Q+Mn[3],Q=Zt.originalColumn,Mn.length>4&&(Zt.name=xe+Mn[4],xe+=Mn[4])),Xt.push(Zt),"number"==typeof Zt.originalLine&&Ht.push(Zt)}Ft(Xt,te.compareByGeneratedPositionsDeflated),this.__generatedMappings=Xt,Ft(Ht,te.compareByOriginalPositions),this.__originalMappings=Ht},Zn.prototype._findMapping=function(d,p,v,C,O,Q){if(d[v]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+d[v]);if(d[C]<0)throw new TypeError("Column must be greater than or equal to 0, got "+d[C]);return q.search(d,p,O,Q)},Zn.prototype.computeColumnSpans=function(){for(var d=0;d=0){var C=this._generatedMappings[v];if(C.generatedLine===p.generatedLine){var O=te.getArg(C,"source",null);null!==O&&(O=this._sources.at(O),null!=this.sourceRoot&&(O=te.join(this.sourceRoot,O)));var Q=te.getArg(C,"name",null);return null!==Q&&(Q=this._names.at(Q)),{source:O,line:te.getArg(C,"originalLine",null),column:te.getArg(C,"originalColumn",null),name:Q}}}return{source:null,line:null,column:null,name:null}},Zn.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(d){return null==d})},Zn.prototype.sourceContentFor=function(d,p){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(d=te.relative(this.sourceRoot,d)),this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];var v;if(null!=this.sourceRoot&&(v=te.urlParse(this.sourceRoot))){var C=d.replace(/^file:\/\//,"");if("file"==v.scheme&&this._sources.has(C))return this.sourcesContent[this._sources.indexOf(C)];if((!v.path||"/"==v.path)&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(p)return null;throw new Error('"'+d+'" is not in the SourceMap.')},Zn.prototype.generatedPositionFor=function(d){var p=te.getArg(d,"source");if(null!=this.sourceRoot&&(p=te.relative(this.sourceRoot,p)),!this._sources.has(p))return{line:null,column:null,lastColumn:null};var v={source:p=this._sources.indexOf(p),originalLine:te.getArg(d,"line"),originalColumn:te.getArg(d,"column")},C=this._findMapping(v,this._originalMappings,"originalLine","originalColumn",te.compareByOriginalPositions,te.getArg(d,"bias",rn.GREATEST_LOWER_BOUND));if(C>=0){var O=this._originalMappings[C];if(O.source===v.source)return{line:te.getArg(O,"generatedLine",null),column:te.getArg(O,"generatedColumn",null),lastColumn:te.getArg(O,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Gn=Zn;function Ti(T){var d=T;"string"==typeof T&&(d=JSON.parse(T.replace(/^\)\]\}'/,"")));var p=te.getArg(d,"version"),v=te.getArg(d,"sections");if(p!=this._version)throw new Error("Unsupported version: "+p);this._sources=new rt,this._names=new rt;var C={line:-1,column:0};this._sections=v.map(function(O){if(O.url)throw new Error("Support for url field in sections not implemented.");var Q=te.getArg(O,"offset"),Me=te.getArg(Q,"line"),xe=te.getArg(Q,"column");if(Me=200&&Zt.status<300||"file://"===Bt.substr(0,7)&&Zt.responseText?Ht(Zt.responseText):Xt(new Error("HTTP status: "+Zt.status+" retrieving "+Bt)))},Zt.send()})}function O(Bt){if(typeof window<"u"&&window.atob)return window.atob(Bt);throw new Error("You must supply a polyfill for window.atob in this environment")}function ot(Bt){if("object"!==Hn(Bt))throw new TypeError("Given StackFrame is not an object");if("string"!=typeof Bt.fileName)throw new TypeError("Given file name is not a String");if("number"!=typeof Bt.lineNumber||Bt.lineNumber%1!=0||Bt.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if("number"!=typeof Bt.columnNumber||Bt.columnNumber%1!=0||Bt.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}return function Bt(Ht){if(!(this instanceof Bt))return new Bt(Ht);this.sourceCache=(Ht=Ht||{}).sourceCache||{},this.sourceMapConsumerCache=Ht.sourceMapConsumerCache||{},this.ajax=Ht.ajax||C,this._atob=Ht.atob||O,this._get=function(Zt){return new Promise(function(vn,Mn){var ci="data:"===Zt.substr(0,5);if(this.sourceCache[Zt])vn(this.sourceCache[Zt]);else if(Ht.offline&&!ci)Mn(new Error("Cannot make network requests in offline mode"));else if(ci){var _n=Zt.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(_n){var Jn=Zt.substr(_n[0].length),Ci=this._atob(Jn);this.sourceCache[Zt]=Ci,vn(Ci)}else Mn(new Error("The encoding of the inline sourcemap is not supported"))}else{var Bi=this.ajax(Zt,{method:"get"});this.sourceCache[Zt]=Bi,Bi.then(vn,Mn)}}.bind(this))},this._getSourceMapConsumer=function(Zt,vn){return new Promise(function(Mn){if(this.sourceMapConsumerCache[Zt])Mn(this.sourceMapConsumerCache[Zt]);else{var ci=new Promise(function(an,_n){return this._get(Zt).then(function(ti){"string"==typeof ti&&(ti=function Q(Bt){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(Bt);throw new Error("You must supply a polyfill for JSON.parse in this environment")}(ti.replace(/^\)\]\}'/,""))),typeof ti.sourceRoot>"u"&&(ti.sourceRoot=vn),an(new p.SourceMapConsumer(ti))},_n)}.bind(this));this.sourceMapConsumerCache[Zt]=ci,Mn(ci)}}.bind(this))},this.pinpoint=function(Zt){return new Promise(function(vn,Mn){this.getMappedLocation(Zt).then(function(ci){function an(){vn(ci)}this.findFunctionName(ci).then(vn,an).catch(an)}.bind(this),Mn)}.bind(this))},this.findFunctionName=function(Zt){return new Promise(function(vn,Mn){ot(Zt),this._get(Zt.fileName).then(function(an){var _n=Zt.lineNumber,ti=Zt.columnNumber,Jn=function Me(Bt,Ht){for(var Xt=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],Zt=Bt.split("\n"),vn="",Mn=Math.min(Ht,20),ci=0;ci=0&&(an=an.substr(0,_n)),an){vn=an+vn;for(var ti=Xt.length,Jn=0;Jn0&&void 0!==arguments[0]?arguments[0]:{}).sourceMaps,Q=void 0!==O&&O;return zn(this,p),Et(ie(v=d.call(this,"stackTrace")),"sourceCache_",void 0),Et(ie(v),"sourceMaps_",void 0),v.sourceCache_={},v.sourceMaps_=Q,v}return At(p,[{key:"beforeSubscribe",value:function(C){var O=this,Q=this.getStackFrames_();this.sourceMaps_&&typeof window<"u"&&"file:"!==window.location.protocol?Yn(C,{mappedStackTrace:(0,G.v)(function(){var Me=new Bo({sourceCache:O.sourceCache_});return Promise.all(Q.map(function(xe){return Me.pinpoint(xe).catch(function(){return xe})}))}).pipe((0,x.t)(1),bo()),stackTrace:Q}):Yn(C,{mappedStackTrace:(0,M.of)(Q).pipe(bo()),stackTrace:Q})}},{key:"teardown",value:function(){this.sourceCache_={}}},{key:"getStackFrames_",value:function(){try{throw new Error}catch(O){var C=!0;return ue.parse(O).filter(function(Q){var Me=!C;return/coreSubscribe_/.test(Q.functionName||"")&&(C=!1),Me})}}}]),p}(dn),Kn=Symbol("cycleDetected"),oi=Symbol("cycleWarned"),gi=function(T){Ot(p,T);var d=oe(p);function p(v,C){var O;return zn(this,p),Et(ie(O=d.call(this,"cycle")),"logger_",void 0),Et(ie(O),"nexts_",[]),Et(ie(O),"spy_",void 0),O.logger_=se(C),O.spy_=v,O}return At(p,[{key:"afterNext",value:function(C,O){this.nexts_.pop()}},{key:"beforeNext",value:function(C,O){var Q=this.logger_,Me=this.nexts_,xe=this.spy_,ot=C.observable,yt=C.subscription;if(-1!==Me.indexOf(C)&&!yt[Kn]&&(yt[Kn]=!0,-1===Me.findIndex(function(Xt){return Xt.subscription[oi]}))){yt[oi]=!0;var Dt=mn(C);0===Dt.length&&xe.warnOnce(console,"Stack tracing is not enabled; add the StackTracePlugin before the CyclePlugin.");var Bt=Dt.length?"; subscribed at\n".concat(Dt.join("\n")):"",Ht=zt(ot);Q.warn("Cyclic next detected; type = ".concat(Ht,"; value = ").concat(O).concat(Bt))}Me.push(C)}}]),p}(dn),ro=function(T){Ot(p,T);var d=oe(p);function p(v,C){var O;return zn(this,p),Et(ie(O=d.call(this,"debug(".concat(jt(v),")"))),"notifications_",void 0),Et(ie(O),"matcher_",void 0),O.notifications_=C,O.matcher_=function(Q,Me){return Tt(Q,v)&&-1!==O.notifications_.indexOf(Me)},O}return At(p,[{key:"beforeComplete",value:function(C){(0,this.matcher_)(C,"complete")}},{key:"beforeError",value:function(C,O){(0,this.matcher_)(C,"error")}},{key:"beforeNext",value:function(C,O){(0,this.matcher_)(C,"next")}},{key:"beforeSubscribe",value:function(C){(0,this.matcher_)(C,"subscribe")}},{key:"beforeUnsubscribe",value:function(C){(0,this.matcher_)(C,"unsubscribe")}}]),p}(dn),vi=Symbol("graphRef");function pn(T){return T[vi]}var zi=function(T){Ot(p,T);var d=oe(p);function p(){var v,O=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).keptDuration,Q=void 0===O?3e4:O;return zn(this,p),Et(ie(v=d.call(this,"graph")),"flushIntervalId_",void 0),Et(ie(v),"flushQueue_",void 0),Et(ie(v),"keptDuration_",void 0),Et(ie(v),"notifications_",void 0),Et(ie(v),"sentinel_",void 0),v.flushIntervalId_=void 0,v.flushQueue_=[],v.keptDuration_=Q,v.notifications_=[],v.sentinel_={depth:0,flattened:!1,flattenings:[],flatteningsFlushed:0,link:void 0,rootSink:void 0,sentinel:void 0,sink:void 0,sources:[],sourcesFlushed:0},v.sentinel_.link=v.sentinel_,v.sentinel_.sentinel=v.sentinel_,v}return At(p,[{key:"afterNext",value:function(C,O){this.notifications_.pop()}},{key:"afterSubscribe",value:function(C){this.notifications_.pop()}},{key:"afterUnsubscribe",value:function(C){this.notifications_.pop(),this.flush_(C)}},{key:"beforeNext",value:function(C,O){this.notifications_.push({notification:"next",ref:C})}},{key:"beforeSubscribe",value:function(C){var O=this.notifications_,Q=this.sentinel_,Me=function $i(T,d){return T[vi]=d,d}(C,{depth:1,flattened:!1,flattenings:[],flatteningsFlushed:0,link:Q,rootSink:void 0,sentinel:Q,sink:void 0,sources:[],sourcesFlushed:0}),xe=O.length;if(xe>0&&"next"===O[xe-1].notification){var ot=O[xe-1].ref,yt=pn(ot);yt.flattenings.push(C),Me.link=yt,Me.flattened=!0,Me.rootSink=yt.rootSink||ot,Me.sink=ot}else for(var Dt=xe-1;Dt>-1;--Dt)if("subscribe"===O[Dt].notification){var Bt=O[xe-1].ref,Ht=pn(Bt);Ht.sources.push(C),Me.depth=Ht.depth+1,Me.link=Ht,Me.rootSink=Ht.rootSink||Bt,Me.sink=Bt;break}Me.link===Me.sentinel&&Me.sentinel.sources.push(C),O.push({notification:"subscribe",ref:C})}},{key:"beforeUnsubscribe",value:function(C){this.notifications_.push({notification:"unsubscribe",ref:C})}},{key:"teardown",value:function(){void 0!==this.flushIntervalId_&&(clearInterval(this.flushIntervalId_),this.flushIntervalId_=void 0)}},{key:"flush_",value:function(C){var O=this,Q=pn(C),xe=Q.sources;if(C.unsubscribed&&Q.flattenings.every(function(Bt){return Bt.unsubscribed})&&xe.every(function(Bt){return Bt.unsubscribed})){var ot=this.keptDuration_,yt=Q.link,Dt=function(){var Ht=yt.flattenings,Xt=yt.sources,Zt=Ht.indexOf(C);-1!==Zt&&(Ht.splice(Zt,1),++yt.flatteningsFlushed);var vn=Xt.indexOf(C);-1!==vn&&(Xt.splice(vn,1),++yt.sourcesFlushed)};0===ot?Dt():ot>0&&ot<1/0&&(this.flushQueue_.push({due:Date.now()+ot,flush:Dt}),void 0===this.flushIntervalId_&&(this.flushIntervalId_=setInterval(function(){var Bt=Date.now();O.flushQueue_=O.flushQueue_.filter(function(Ht){return Ht.due>Bt||(Ht.flush(),!1)}),0===O.flushQueue_.length&&(clearInterval(O.flushIntervalId_),O.flushIntervalId_=void 0)},ot)))}}}]),p}(dn),Ni=function(T){Ot(p,T);var d=oe(p);function p(v,C){var O,Me=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).complete,xe=void 0===Me||Me;return zn(this,p),Et(ie(O=d.call(this,"let(".concat(jt(v),")"))),"match_",void 0),Et(ie(O),"select_",void 0),O.match_=v,O.select_=xe?C:function(ot){return(0,L.h)(A,C(ot))},O}return At(p,[{key:"select",value:function(C){var Q=this.select_;if(Tt(C,this.match_))return Q}}]),p}(dn),so=function(T){Ot(p,T);var d=oe(p);function p(v,C){var O;zn(this,p),Et(ie(O=d.call(this,"log(".concat(jt(C),")"))),"auditor_",void 0),Et(ie(O),"logger_",void 0),Et(ie(O),"notificationMatch_",void 0),Et(ie(O),"tagMatch_",void 0),O.auditor_=v.auditor,O.tagMatch_=C;var Q=/.+/;switch(arguments.length<=2?0:arguments.length-2){case 0:O.notificationMatch_=Q,O.logger_=se(Y);break;case 1:"function"==typeof(arguments.length<=2?void 0:arguments[2])?(O.notificationMatch_=arguments.length<=2?void 0:arguments[2],O.logger_=se(Y)):(O.notificationMatch_=Q,O.logger_=se(arguments.length<=2?void 0:arguments[2]));break;default:O.notificationMatch_=arguments.length<=2?void 0:arguments[2],O.logger_=se(arguments.length<=3?void 0:arguments[3])}return O}return At(p,[{key:"beforeComplete",value:function(C){this.log_(C,"complete")}},{key:"beforeError",value:function(C,O){this.log_(C,"error",O)}},{key:"beforeNext",value:function(C,O){this.log_(C,"next",O)}},{key:"beforeSubscribe",value:function(C){this.log_(C,"subscribe")}},{key:"beforeUnsubscribe",value:function(C){this.log_(C,"unsubscribe")}},{key:"log_",value:function(C,O,Q){var Me=this,xe=this.auditor_,ot=this.notificationMatch_,yt=this.tagMatch_;Tt(C,yt)&&Tt(C,ot,O)&&xe.audit(this,function(Dt){var Bt=Me.logger_,Ht=C.observable,Xt=en(Ht),Zt=zt(Ht),vn="string"==typeof yt?"":"; matching ".concat(jt(yt)),Mn=0===Dt?"":"; ignored ".concat(Dt),ci=Xt?"Tag = ".concat(Xt,"; notification = ").concat(O).concat(vn).concat(Mn):"Type = ".concat(Zt,"; notification = ").concat(O).concat(vn).concat(Mn);switch(O){case"error":Bt.error("".concat(ci,"; error ="),Q);break;case"next":Bt.log("".concat(ci,"; value ="),Q);break;default:Bt.log(ci)}})}}]),p}(dn),Yi=function(){function T(d){zn(this,T),Et(this,"teardown",void 0),Et(this,"match_",void 0),Et(this,"paused_",!0),Et(this,"states_",new Map),Et(this,"stats_",void 0),this.match_=d,this.stats_=new I.B}return At(T,[{key:"stats",get:function(){return this.stats_.asObservable()}},{key:"paused",get:function(){return this.paused_}},{key:"clear",value:function(){var p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};this.states_.forEach(function(v){v.notifications_=v.notifications_.filter(function(C){return!p(C)})}),this.broadcast_()}},{key:"log",value:function(){var v=se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y);v.group("Deck matching ".concat(jt(this.match_))),v.log("Paused =",this.paused_),this.states_.forEach(function(C){v.group("Observable; tag = ".concat(C.tag_)),v.log("Notifications =",C.notifications_),v.groupEnd()}),v.groupEnd()}},{key:"pause",value:function(){this.paused_=!0,this.broadcast_()}},{key:"resume",value:function(){this.states_.forEach(function(p){for(;p.notifications_.length>0;)p.subject_.next(p.notifications_.shift())}),this.paused_=!1,this.broadcast_()}},{key:"select",value:function(p){var v=this,C=p.observable;return function(O){var Q=v.states_.get(C);return Q?Q.subscription_.unsubscribe():(Q={notifications_:[],subject_:new I.B,subscription_:void 0,tag_:en(C)},v.states_.set(C,Q)),Q.subscription_=O.pipe(function H(){return(0,me.N)((T,d)=>{T.subscribe((0,de._)(d,p=>{d.next(he.createNext(p))},()=>{d.next(he.createComplete()),d.complete()},p=>{d.next(he.createError(p)),d.complete()}))})}(),bo()).subscribe({next:function(xe){v.paused_?Q.notifications_.push(xe):Q.subject_.next(xe),v.broadcast_()}}),v.broadcast_(),Q.subject_.asObservable().pipe(function z(){return(0,me.N)((T,d)=>{T.subscribe((0,de._)(d,p=>Ie(p,d)))})}())}}},{key:"skip",value:function(){this.states_.forEach(function(p){p.notifications_.length>0&&p.notifications_.shift()}),this.broadcast_()}},{key:"step",value:function(){this.states_.forEach(function(p){p.notifications_.length>0&&p.subject_.next(p.notifications_.shift())}),this.broadcast_()}},{key:"unsubscribe",value:function(){this.states_.forEach(function(p){p.subscription_&&(p.subscription_.unsubscribe(),p.subscription_=void 0)}),this.broadcast_()}},{key:"broadcast_",value:function(){var p=this.paused_,C=this.stats_,O=0;this.states_.forEach(function(Q){return O+=Q.notifications_.length}),C.next({notifications:O,paused:p})}}]),T}(),Xo=function(T){Ot(p,T);var d=oe(p);function p(v){var C;return zn(this,p),Et(ie(C=d.call(this,"pause(".concat(jt(v),")"))),"match_",void 0),Et(ie(C),"deck_",void 0),C.deck_=new Yi(v),C.match_=v,C}return At(p,[{key:"deck",get:function(){return this.deck_}},{key:"match",get:function(){return this.match_}},{key:"select",value:function(C){var O=this.deck_;if(Tt(C,this.match_))return O.select(C)}},{key:"teardown",value:function(){var C=this.deck_;C&&(C.resume(),C.unsubscribe())}}]),p}(dn),Ki=Symbol("snapshotRef");function qo(T){return T[Ki]}function pr(T){var d=[(0,M.of)(null)];return T.forEach(function(v){v.subscriptions?v.subscriptions.forEach(p):p(v)}),(0,F.p)(d).pipe((0,Z.u)(void 0),bo());function p(v){d.push(v.mappedStackTrace),v.rootSink&&d.push(v.rootSink.mappedStackTrace)}}var po=function(T){Ot(p,T);var d=oe(p);function p(v){var C,Q=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).keptValues,Me=void 0===Q?4:Q;return zn(this,p),Et(ie(C=d.call(this,"snapshot")),"keptValues_",void 0),Et(ie(C),"sentinel_",void 0),Et(ie(C),"spy_",void 0),C.keptValues_=Me,C.sentinel_=void 0,C.spy_=v,C}return At(p,[{key:"afterUnsubscribe",value:function(C){var O=qo(C);O.tick=this.spy_.tick,O.unsubscribed=!0}},{key:"beforeComplete",value:function(C){var O=qo(C);O.tick=this.spy_.tick,O.complete=!0}},{key:"beforeError",value:function(C,O){var Q=qo(C);Q.tick=this.spy_.tick,Q.error=O}},{key:"beforeNext",value:function(C,O){var Q=this.spy_.tick,Me=qo(C);Me.tick=Q,Me.values.push({tick:Q,timestamp:Date.now(),value:O});var ot=Me.values.length-this.keptValues_;ot>0&&(Me.values.splice(0,ot),Me.valuesFlushed+=ot)}},{key:"beforeSubscribe",value:function(C){!function fo(T,d){T[Ki]=d}(C,{complete:!1,error:void 0,tick:this.spy_.tick,timestamp:Date.now(),unsubscribed:!1,values:[],valuesFlushed:0});var O=pn(C);O?this.sentinel_=O.sentinel:this.spy_.warnOnce(console,"Graphing is not enabled; add the GraphPlugin before the SnapshotPlugin.")}},{key:"snapshotAll",value:function(){var O=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).since,Q=new Map,Me=new Map,xe=new Map,ot=this.getSubscriptionRefs_();return ot.forEach(function(yt,Dt){var Bt,Ht=Dt.observable,Xt=Dt.subscriber,Zt=Dt.subscription,vn=pn(Dt),Mn=vn.flatteningsFlushed,ci=vn.sourcesFlushed,an=qo(Dt),Jn=an.tick,Ci=an.timestamp,Bi=an.unsubscribed,nr=an.values,vr=an.valuesFlushed,dc={complete:an.complete,error:an.error,flattenings:new Map,flatteningsFlushed:Mn,id:vt(Dt),mappedStackTrace:$t(Dt),observable:Ht,rootSink:void 0,sink:void 0,sources:new Map,sourcesFlushed:ci,stackTrace:mn(Dt),subscriber:Xt,subscription:Zt,tick:Jn,timestamp:Ci,unsubscribed:Bi};xe.set(Zt,dc);var Vr=Me.get(Xt);Vr||(Vr={id:vt(Xt),subscriber:Xt,subscriptions:new Map,tick:Jn,values:[],valuesFlushed:0},Me.set(Xt,Vr)),Vr.subscriptions.set(Zt,dc),Vr.tick=Math.max(Vr.tick,Jn),(Bt=Vr.values).push.apply(Bt,et(nr)),Vr.valuesFlushed+=vr;var Aa=Q.get(Ht);Aa||(Aa={id:vt(Ht),observable:Ht,path:Le(Ht),subscriptions:new Map,tag:en(Ht),tick:Jn,type:zt(Ht)},Q.set(Ht,Aa)),Aa.subscriptions.set(Zt,dc),Aa.tick=Math.max(Aa.tick,Jn)}),ot.forEach(function(yt,Dt){var Bt=pn(Dt),Ht=xe.get(Dt.subscription);Bt.sink&&(Ht.sink=xe.get(Bt.sink.subscription)),Bt.rootSink&&(Ht.rootSink=xe.get(Bt.rootSink.subscription)),Bt.flattenings.forEach(function(Xt){return Ht.flattenings.set(Xt.subscription,xe.get(Xt.subscription))}),Bt.sources.forEach(function(Xt){return Ht.sources.set(Xt.subscription,xe.get(Xt.subscription))})}),Me.forEach(function(yt){yt.values.sort(function(Dt,Bt){return Dt.tick-Bt.tick})}),void 0!==O&&(Q.forEach(function(yt,Dt){yt.tick<=O.tick&&Q.delete(Dt)}),Me.forEach(function(yt,Dt){yt.tick<=O.tick&&Me.delete(Dt)}),xe.forEach(function(yt,Dt){yt.tick<=O.tick&&xe.delete(Dt)})),{mapStackTraces:pr,observables:Q,subscribers:Me,subscriptions:xe,tick:this.spy_.tick}}},{key:"snapshotObservable",value:function(C){return this.snapshotAll().observables.get(C.observable)}},{key:"snapshotSubscriber",value:function(C){return this.snapshotAll().subscribers.get(C.subscriber)}},{key:"addSubscriptionRefs_",value:function(C,O){var Q=this;O.set(C,!0);var Me=pn(C);Me.flattenings.forEach(function(xe){return Q.addSubscriptionRefs_(xe,O)}),Me.sources.forEach(function(xe){return Q.addSubscriptionRefs_(xe,O)})}},{key:"getSubscriptionRefs_",value:function(){var C=this,O=this.sentinel_,Q=new Map;return O&&O.sources.forEach(function(Me){return C.addSubscriptionRefs_(Me,Q)}),Q}}]),p}(dn),fr=function(T){Ot(p,T);var d=oe(p);function p(v){var C;return zn(this,p),Et(ie(C=d.call(this,"stats")),"spy_",void 0),Et(ie(C),"stats_",void 0),Et(ie(C),"time_",void 0),C.spy_=v,C.stats_={completes:0,errors:0,flattenedSubscribes:0,leafSubscribes:0,maxDepth:0,nexts:0,rootSubscribes:0,subscribes:0,tick:0,timespan:0,totalDepth:0,unsubscribes:0},C.time_=0,C}return At(p,[{key:"afterSubscribe",value:function(C){var O=this.stats_,Q=pn(C);if(Q){var Me=Q.depth,xe=Q.flattened,ot=Q.flattenings,yt=Q.flatteningsFlushed,Bt=Q.sources,Ht=Q.sourcesFlushed;Q.rootSink||(O.rootSubscribes+=1),xe&&(O.flattenedSubscribes+=1),ot.length+yt+Bt.length+Ht===0&&(O.maxDepth0&&(this.timeoutId_=setTimeout(function(){for(var Q=Date.now()-v;C.length>0&&C[0].timestamp<=Q;){var Me=C.shift();Me.task(Me.ignored)}p.timeoutId_=void 0,p.wait_()},Math.max(0,C[0].timestamp+v-Date.now())))}}]),T}(),Lr=function(){function T(d){zn(this,T),Et(this,"detectorRecords_",void 0),Et(this,"snapshotPlugin_",void 0),Et(this,"spy_",void 0),this.detectorRecords_=new Map,this.snapshotPlugin_=d.find(po),this.spy_=d}return At(T,[{key:"detect",value:function(p){var v=this.detectorRecords_,C=this.snapshotPlugin_,O=this.spy_;if(C){var Q=v.get(p),Me=this.record_(C.snapshotAll());if(Q?Q.snapshotRecords.push(Me):v.set(p,Q={snapshotRecords:[Me]}),Q.snapshotRecords.length>2&&Q.snapshotRecords.shift(),!(Q.snapshotRecords.length<2)){var xe=function Fe(T,d){return function Kt(T){if(Array.isArray(T))return T}(T)||function Tn(T,d){var p=T&&(typeof Symbol<"u"&&T[Symbol.iterator]||T["@@iterator"]);if(null!=p){var Q,Me,v=[],C=!0,O=!1;try{for(p=p.call(T);!(C=(Q=p.next()).done)&&(v.push(Q.value),!d||v.length!==d);C=!0);}catch(xe){O=!0,Me=xe}finally{try{!C&&null!=p.return&&p.return()}finally{if(O)throw Me}}return v}}(T,d)||Wn(T,d)||function Un(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Q.snapshotRecords,2);return this.compare_(p,xe[0],xe[1])}}else O.warnOnce(console,"Snapshotting is not enabled.")}},{key:"compare_",value:function(p,v,C){var O=[],Q=[],Me=[],xe=[],ot=v.rootSubscriptions,yt=C.rootSubscriptions;if(ot.forEach(function(Dt,Bt){yt.has(Bt)||Q.push(Dt)}),yt.forEach(function(Dt,Bt){var Ht=ot.get(Bt);if(Ht){var Xt=Ht.flattenings,Zt=Dt.flattenings;Xt.forEach(function(vn,Mn){Zt.has(Mn)||xe.push(vn)}),Zt.forEach(function(vn,Mn){Xt.has(Mn)||Me.push(vn)})}else O.push(Dt)}),0!==Me.length||0!==xe.length||0!==O.length||0!==Q.length)return{flatteningSubscriptions:Me,flatteningUnsubscriptions:xe,subscriptions:O.map(function(Dt){return Dt.subscriptionSnapshot}),unsubscriptions:Q.map(function(Dt){return Dt.subscriptionSnapshot})}}},{key:"findFlatteningSubscriptions_",value:function(p,v){var C=v.flattenings,O=v.subscriptionSnapshot;p.subscriptions.forEach(function(Q){Q.rootSink===O&&Q.flattenings.forEach(function(Me){var xe=Me.subscription;xe.closed||C.set(xe,Me)})})}},{key:"findRootSubscriptions_",value:function(p,v){var C=this;p.observables.forEach(function(O){O.subscriptions.forEach(function(Q){var yt=Q.subscription;if(!(Q.complete||Q.error||Q.sink||yt.closed)){var Dt={flattenings:new Map,subscriptionSnapshot:Q};C.findFlatteningSubscriptions_(p,Dt),v.set(yt,Dt)}})})}},{key:"record_",value:function(p){var v=new Map;return this.findRootSubscriptions_(p,v),{rootSubscriptions:v,snapshot:p}}}]),T}();var bi=g.c.prototype.subscribe,Mr={},Ur=function(){function T(){var d=this,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(zn(this,T),Et(this,"auditor_",void 0),Et(this,"defaultLogger_",void 0),Et(this,"maxLogged_",20),Et(this,"plugins_",void 0),Et(this,"pluginsSubject_",void 0),Et(this,"teardown_",void 0),Et(this,"tick_",void 0),Et(this,"undos_",void 0),Et(this,"warned_",void 0),T.spy_)throw new Error("Already spying on Observable.prototype.subscribe.");p.warning&&console.warn("Spying on Observable.prototype.subscribe."),T.spy_=this,g.c.prototype.subscribe=T.coreSubscribe_,this.auditor_=new jo(p.audit||0),this.defaultLogger_=p.defaultLogger||Y,this.plugins_=!1===p.defaultPlugins?[]:[new En(p),new zi(p),new po(this,p),new gi(this,this.defaultLogger_),new fr(this)],this.pluginsSubject_=new X.t(this.plugins_),this.tick_=0,this.undos_=[],this.warned_={};var v=new Lr(this);R(function(C){return d.detect_(C,v)}),typeof window<"u"&&[p.global||"spy","rxSpy"].forEach(function(C){window.hasOwnProperty(C)&&(d.defaultLogger_.log("Overwriting window.".concat(C)),Mr[C]=window[C]),window[C]=function wn(T){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{deck:function(v){d();var C=T.findAll(Xo);if(void 0!==v){var Q=C[v-1];return Q?Q.deck:void 0}var O=se(Y);O.group("".concat(C.length," Deck(s)")),C.forEach(function(Me,xe){return O.log("".concat(xe+1," pause(").concat(Me.name,")"))}),O.groupEnd()},debug:function(){d();for(var v=arguments.length,C=new Array(v),O=0;O0&&void 0!==arguments[0]?arguments[0]:"";d(),function S(T){E(T)}(v)},flush:function(){d(),T.flush()},inferPath:Le,inferType:zt,let:function(){d();for(var v=arguments.length,C=new Array(v),O=0;O1?v-1:0),O=1;Oyt?ot.length-yt:0;Dt&&ot.splice(yt,Dt),xe.group("".concat(ot.length+Dt," snapshot(s) found"));var Bt=ot.length>3?"groupCollapsed":"group";ot.forEach(function(Ht){var Xt=Ht.observable;xe[Bt].call(xe,Xt.tag?"Tag = ".concat(Xt.tag):"Type = ".concat(Xt.type)),xe.log("Path =",Xt.path);var Zt=Ht.subs,vn=Ht.subs.length>3?"groupCollapsed":"group";xe.group("".concat(Zt.length," subscriber(s)")),Zt.forEach(function(Mn){var ci=Mn.subscription,an=Mn.subscriber,_n=an.values,ti=an.valuesFlushed;xe[vn].call(xe,"Subscriber"),xe.log("Value count =",_n.length+ti),_n.length>0&&xe.log("Last value =",_n[_n.length-1].value),Qo(xe,ci),Array.from(an.subscriptions.values()).filter(function(Ci){return Ci!==ci}).forEach(function(Ci){xe.groupCollapsed("Other subscription"),Qo(xe,Ci),xe.groupEnd()}),xe.groupEnd()}),xe.groupEnd(),xe.groupEnd()}),Dt&&xe.log("... another ".concat(Dt," snapshot(s) not logged.")),xe.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"show",value:function(p,v){var C=/.+/;p?"function"==typeof p.log&&(v=p,p=C):p=C;var O=this.find(po);if(O){var Q=O.snapshotAll(),Me=Array.from(Q.observables.values()).filter(function(Dt){return Tt(Dt.observable,p)}),xe=se(v||this.defaultLogger_),ot=this.maxLogged_,yt=Me.length>ot?Me.length-ot:0;yt&&Me.splice(ot,yt),Q.mapStackTraces(Me).subscribe(function(){xe.group("".concat(Me.length+yt," snapshot(s) matching ").concat(jt(p)));var Dt=Me.length>3?"groupCollapsed":"group";Me.forEach(function(Bt){xe[Dt].call(xe,Bt.tag?"Tag = ".concat(Bt.tag):"Type = ".concat(Bt.type)),xe.log("Path =",Bt.path);var Ht=Bt.subscriptions,Xt=Ht.size>3?"groupCollapsed":"group";xe.group("".concat(Ht.size," subscriber(s)")),Ht.forEach(function(Zt){var vn=Q.subscribers.get(Zt.subscriber);if(vn){var Mn=vn.values,ci=vn.valuesFlushed;xe[Xt].call(xe,"Subscriber"),xe.log("Value count =",Mn.length+ci),Mn.length>0&&xe.log("Last value =",Mn[Mn.length-1].value),Qo(xe,Zt),Array.from(vn.subscriptions.values()).filter(function(_n){return _n!==Zt}).forEach(function(_n){xe.groupCollapsed("Other subscription"),Qo(xe,_n),xe.groupEnd()}),xe.groupEnd()}else xe.warn("Cannot find subscriber snapshot")}),xe.groupEnd(),xe.groupEnd()}),yt&&xe.log("... another ".concat(yt," snapshot(s) not logged.")),xe.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"stats",value:function(p){var v=this.find(fr);if(v){var C=v.stats,O=C.leafSubscribes,Q=C.maxDepth,Me=C.flattenedSubscribes,xe=C.rootSubscribes,ot=C.totalDepth,yt=se(p||this.defaultLogger_);yt.group("Stats"),yt.log("Subscribes =",C.subscribes),xe>0&&yt.log("Root subscribes =",xe),O>0&&yt.log("Leaf subscribes =",O),Me>0&&yt.log("Flattened subscribes =",Me),yt.log("Unsubscribes =",C.unsubscribes),yt.log("Nexts =",C.nexts),yt.log("Errors =",C.errors),yt.log("Completes =",C.completes),Q>0&&(yt.log("Max. depth =",Q),yt.log("Avg. depth =",(ot/O).toFixed(1))),yt.log("Tick =",C.tick),yt.log("Timespan =",C.timespan),yt.groupEnd()}else this.warnOnce(console,"Stats are not enabled.")}},{key:"teardown",value:function(){this.teardown_&&(this.teardown_(),this.teardown_=void 0)}},{key:"unplug",value:function(){for(var p=this,v=arguments.length,C=new Array(v),O=0;O2?C-2:0),Q=2;Q2?O-2:0),Me=2;Me0){this.preSelectSubject||(this.preSelectSubject=new I.B),this.postSelectSubscription&&this.postSelectSubscription.unsubscribe();var vn=this.preSelectSubject.asObservable();Zt.forEach(function(Mn){return vn=Mn(vn)}),this.postSelectSubscription=vn.pipe(bo()).subscribe(Dt)}else this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0,this.preSelectSubject=void 0)},next:function(Xt){this.preSelectSubject?this.preSelectSubject.next(Xt):this.postSelectObserver.next(Xt)},postSelectObserver:Dt,postSelectSubscription:void 0,preSelectSubject:void 0,unsubscribe:function(){this.unsubscribed||(this.unsubscribed=!0,!this.completed&&!this.errored&&this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0))},unsubscribed:!1};return xe.add(v.pluginsSubject_.pipe(bo()).subscribe({next:function(Xt){return Bt.let(Xt)}})),Me(function(Ht){return Ht.beforeSubscribe(ot)},function(){xe.add(bi.call(p,Bt)),xe.add(function(){return Bt.unsubscribe()})},function(Ht){return Ht.afterSubscribe(ot)}),xe}}]),T}();function Qo(T,d){var v=d.error,C=d.unsubscribed;T.log("State =",d.complete?"complete":v?"error":"incomplete"),v&&T.error("Error =",v),C&&T.log("Unsubscribed =",!0),function Ts(T,d){var v=d.rootSink;(v?v.mappedStackTrace:d.mappedStackTrace).subscribe(function(O){return T.log("Root subscribe",O)})}(T,d)}Et(Ur,"spy_",void 0);var Ve=c(177);const tt=void 0,Yt=["en",[["a","p"],["AM","PM"],tt],[["AM","PM"],tt,tt],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],tt,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],tt,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",tt,"{1} 'at' {0}",tt],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mt(T){const p=Math.floor(Math.abs(T)),v=T.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===v?1:5}];var tn=c(1626),on=c(9969);function Sn(T){return new r.wOt(3e3,!1)}function We(T){switch(T.length){case 0:return new on.sf;case 1:return T[0];default:return new on.ui(T)}}function ct(T,d,p=new Map,v=new Map){const C=[],O=[];let Q=-1,Me=null;if(d.forEach(xe=>{const ot=xe.get("offset"),yt=ot==Q,Dt=yt&&Me||new Map;xe.forEach((Bt,Ht)=>{let Xt=Ht,Zt=Bt;if("offset"!==Ht)switch(Xt=T.normalizePropertyName(Xt,C),Zt){case on.FX:Zt=p.get(Ht);break;case on.kp:Zt=v.get(Ht);break;default:Zt=T.normalizeStyleValue(Ht,Xt,Zt,C)}Dt.set(Xt,Zt)}),yt||O.push(Dt),Me=Dt,Q=ot}),C.length)throw function yr(T){return new r.wOt(3502,!1)}();return O}function sn(T,d,p,v){switch(d){case"start":T.onStart(()=>v(p&&Bn(p,"start",T)));break;case"done":T.onDone(()=>v(p&&Bn(p,"done",T)));break;case"destroy":T.onDestroy(()=>v(p&&Bn(p,"destroy",T)))}}function Bn(T,d,p){const O=$n(T.element,T.triggerName,T.fromState,T.toState,d||T.phaseName,p.totalTime??T.totalTime,!!p.disabled),Q=T._data;return null!=Q&&(O._data=Q),O}function $n(T,d,p,v,C="",O=0,Q){return{element:T,triggerName:d,fromState:p,toState:v,phaseName:C,totalTime:O,disabled:!!Q}}function fi(T,d,p){let v=T.get(d);return v||T.set(d,v=p),v}function ki(T){const d=T.indexOf(":");return[T.substring(1,d),T.slice(d+1)]}const To=typeof document>"u"?null:document.documentElement;function di(T){const d=T.parentNode||T.host||null;return d===To?null:d}let Oo=null,ts=!1;function pt(T,d){for(;d;){if(d===T)return!0;d=di(d)}return!1}function Jt(T,d,p){if(p)return Array.from(T.querySelectorAll(d));const v=T.querySelector(d);return v?[v]:[]}let Qi=(()=>{class T{validateStyleProperty(p){return function Ne(T){Oo||(Oo=function Ce(){return typeof document<"u"?document.body:null}()||{},ts=!!Oo.style&&"WebkitAppearance"in Oo.style);let d=!0;return Oo.style&&!function ho(T){return"ebkit"==T.substring(1,6)}(T)&&(d=T in Oo.style,!d&&ts&&(d="Webkit"+T.charAt(0).toUpperCase()+T.slice(1)in Oo.style)),d}(p)}containsElement(p,v){return pt(p,v)}getParentElement(p){return di(p)}query(p,v,C){return Jt(p,v,C)}computeStyle(p,v,C){return C||""}animate(p,v,C,O,Q,Me=[],xe){return new on.sf(C,O)}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275prov=r.jDH({token:T,factory:T.\u0275fac})}return T})();class xo{static#e=this.NOOP=new Qi}class yi{}const Hc=1e3,vc="ng-enter",mo="ng-leave",ua="ng-trigger",Yr=".ng-trigger",na="ng-animating",$a=".ng-animating";function mr(T){if("number"==typeof T)return T;const d=T.match(/^(-?[\.\d]+)(m?s)/);return!d||d.length<2?0:Ta(parseFloat(d[1]),d[2])}function Ta(T,d){return"s"===d?T*Hc:T}function Ys(T,d,p){return T.hasOwnProperty("duration")?T:function hs(T,d,p){let C,O=0,Q="";if("string"==typeof T){const Me=T.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Me)return d.push(Sn()),{duration:0,delay:0,easing:""};C=Ta(parseFloat(Me[1]),Me[2]);const xe=Me[3];null!=xe&&(O=Ta(parseFloat(xe),Me[4]));const ot=Me[5];ot&&(Q=ot)}else C=T;if(!p){let Me=!1,xe=d.length;C<0&&(d.push(function Ln(){return new r.wOt(3100,!1)}()),Me=!0),O<0&&(d.push(function xn(){return new r.wOt(3101,!1)}()),Me=!0),Me&&d.splice(xe,0,Sn())}return{duration:C,delay:O,easing:Q}}(T,d,p)}function Wr(T,d,p){d.forEach((v,C)=>{const O=Xr(C);p&&!p.has(C)&&p.set(C,T.style[O]),T.style[O]=v})}function wi(T,d){d.forEach((p,v)=>{const C=Xr(v);T.style[C]=""})}function Ws(T){return Array.isArray(T)?1==T.length?T[0]:(0,on.K2)(T):T}const ps=new RegExp("{{\\s*(.+?)\\s*}}","g");function ja(T){let d=[];if("string"==typeof T){let p;for(;p=ps.exec(T);)d.push(p[1]);ps.lastIndex=0}return d}function Kr(T,d,p){const v=`${T}`,C=v.replace(ps,(O,Q)=>{let Me=d[Q];return null==Me&&(p.push(function qn(T){return new r.wOt(3003,!1)}()),Me=""),Me.toString()});return C==v?T:C}const za=/-+([a-z0-9])/g;function Xr(T){return T.replace(za,(...d)=>d[1].toUpperCase())}function br(T,d,p){switch(d.type){case on.If.Trigger:return T.visitTrigger(d,p);case on.If.State:return T.visitState(d,p);case on.If.Transition:return T.visitTransition(d,p);case on.If.Sequence:return T.visitSequence(d,p);case on.If.Group:return T.visitGroup(d,p);case on.If.Animate:return T.visitAnimate(d,p);case on.If.Keyframes:return T.visitKeyframes(d,p);case on.If.Style:return T.visitStyle(d,p);case on.If.Reference:return T.visitReference(d,p);case on.If.AnimateChild:return T.visitAnimateChild(d,p);case on.If.AnimateRef:return T.visitAnimateRef(d,p);case on.If.Query:return T.visitQuery(d,p);case on.If.Stagger:return T.visitStagger(d,p);default:throw function pi(T){return new r.wOt(3004,!1)}()}}function Ss(T,d){return window.getComputedStyle(T)[d]}const Ua=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ha extends yi{normalizePropertyName(d,p){return Xr(d)}normalizeStyleValue(d,p,v,C){let O="";const Q=v.toString().trim();if(Ua.has(p)&&0!==v&&"0"!==v)if("number"==typeof v)O="px";else{const Me=v.match(/^[+-]?[\d\.]+([a-z]*)$/);Me&&0==Me[1].length&&C.push(function ei(T,d){return new r.wOt(3005,!1)}())}return Q+O}}const Cc="*";const Os=new Set(["true","1"]),Ks=new Set(["false","0"]);function co(T,d){const p=Os.has(T)||Ks.has(T),v=Os.has(d)||Ks.has(d);return(C,O)=>{let Q=T==Cc||T==C,Me=d==Cc||d==O;return!Q&&p&&"boolean"==typeof C&&(Q=C?Os.has(T):Ks.has(T)),!Me&&v&&"boolean"==typeof O&&(Me=O?Os.has(d):Ks.has(d)),Q&&Me}}const bc=new RegExp("s*:selfs*,?","g");function Go(T,d,p,v){return new ia(T).build(d,p,v)}class ia{constructor(d){this._driver=d}build(d,p,v){const C=new Ec(p);return this._resetContextStyleTimingState(C),br(this,Ws(d),C)}_resetContextStyleTimingState(d){d.currentQuerySelector="",d.collectedStyles=new Map,d.collectedStyles.set("",new Map),d.currentTime=0}visitTrigger(d,p){let v=p.queryCount=0,C=p.depCount=0;const O=[],Q=[];return"@"==d.name.charAt(0)&&p.errors.push(function li(){return new r.wOt(3006,!1)}()),d.definitions.forEach(Me=>{if(this._resetContextStyleTimingState(p),Me.type==on.If.State){const xe=Me,ot=xe.name;ot.toString().split(/\s*,\s*/).forEach(yt=>{xe.name=yt,O.push(this.visitState(xe,p))}),xe.name=ot}else if(Me.type==on.If.Transition){const xe=this.visitTransition(Me,p);v+=xe.queryCount,C+=xe.depCount,Q.push(xe)}else p.errors.push(function ai(){return new r.wOt(3007,!1)}())}),{type:on.If.Trigger,name:d.name,states:O,transitions:Q,queryCount:v,depCount:C,options:null}}visitState(d,p){const v=this.visitStyle(d.styles,p),C=d.options&&d.options.params||null;if(v.containsDynamicStyles){const O=new Set,Q=C||{};v.styles.forEach(Me=>{Me instanceof Map&&Me.forEach(xe=>{ja(xe).forEach(ot=>{Q.hasOwnProperty(ot)||O.add(ot)})})}),O.size&&p.errors.push(function mi(T,d){return new r.wOt(3008,!1)}(0,O.values()))}return{type:on.If.State,name:d.name,style:v,options:C?{params:C}:null}}visitTransition(d,p){p.queryCount=0,p.depCount=0;const v=br(this,Ws(d.animation),p),C=function pa(T,d){const p=[];return"string"==typeof T?T.split(/\s*,\s*/).forEach(v=>function Uc(T,d,p){if(":"==T[0]){const xe=function Gc(T,d){switch(T){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,v)=>parseFloat(v)>parseFloat(p);case":decrement":return(p,v)=>parseFloat(v) *"}}(T,p);if("function"==typeof xe)return void d.push(xe);T=xe}const v=T.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return p.push(function Gr(T){return new r.wOt(3015,!1)}()),d;const C=v[1],O=v[2],Q=v[3];d.push(co(C,Q)),"<"==O[0]&&(C!=Cc||Q!=Cc)&&d.push(co(Q,C))}(v,p,d)):p.push(T),p}(d.expr,p.errors);return{type:on.If.Transition,matchers:C,animation:v,queryCount:p.queryCount,depCount:p.depCount,options:Te(d.options)}}visitSequence(d,p){return{type:on.If.Sequence,steps:d.steps.map(v=>br(this,v,p)),options:Te(d.options)}}visitGroup(d,p){const v=p.currentTime;let C=0;const O=d.steps.map(Q=>{p.currentTime=v;const Me=br(this,Q,p);return C=Math.max(C,p.currentTime),Me});return p.currentTime=C,{type:on.If.Group,steps:O,options:Te(d.options)}}visitAnimate(d,p){const v=function it(T,d){if(T.hasOwnProperty("duration"))return T;if("number"==typeof T)return Ge(Ys(T,d).duration,0,"");const p=T;if(p.split(/\s+/).some(O=>"{"==O.charAt(0)&&"{"==O.charAt(1))){const O=Ge(0,0,"");return O.dynamic=!0,O.strValue=p,O}const C=Ys(p,d);return Ge(C.duration,C.delay,C.easing)}(d.timings,p.errors);p.currentAnimateTimings=v;let C,O=d.styles?d.styles:(0,on.iF)({});if(O.type==on.If.Keyframes)C=this.visitKeyframes(O,p);else{let Q=d.styles,Me=!1;if(!Q){Me=!0;const ot={};v.easing&&(ot.easing=v.easing),Q=(0,on.iF)(ot)}p.currentTime+=v.duration+v.delay;const xe=this.visitStyle(Q,p);xe.isEmptyStep=Me,C=xe}return p.currentAnimateTimings=null,{type:on.If.Animate,timings:v,style:C,options:null}}visitStyle(d,p){const v=this._makeStyleAst(d,p);return this._validateStyleAst(v,p),v}_makeStyleAst(d,p){const v=[],C=Array.isArray(d.styles)?d.styles:[d.styles];for(let Me of C)"string"==typeof Me?Me===on.kp?v.push(Me):p.errors.push(new r.wOt(3002,!1)):v.push(new Map(Object.entries(Me)));let O=!1,Q=null;return v.forEach(Me=>{if(Me instanceof Map&&(Me.has("easing")&&(Q=Me.get("easing"),Me.delete("easing")),!O))for(let xe of Me.values())if(xe.toString().indexOf("{{")>=0){O=!0;break}}),{type:on.If.Style,styles:v,easing:Q,offset:d.offset,containsDynamicStyles:O,options:null}}_validateStyleAst(d,p){const v=p.currentAnimateTimings;let C=p.currentTime,O=p.currentTime;v&&O>0&&(O-=v.duration+v.delay),d.styles.forEach(Q=>{"string"!=typeof Q&&Q.forEach((Me,xe)=>{const ot=p.collectedStyles.get(p.currentQuerySelector),yt=ot.get(xe);let Dt=!0;yt&&(O!=C&&O>=yt.startTime&&C<=yt.endTime&&(p.errors.push(function Mi(T,d,p,v,C){return new r.wOt(3010,!1)}()),Dt=!1),O=yt.startTime),Dt&&ot.set(xe,{startTime:O,endTime:C}),p.options&&function Ha(T,d,p){const v=d.params||{},C=ja(T);C.length&&C.forEach(O=>{v.hasOwnProperty(O)||p.push(function Qn(T){return new r.wOt(3001,!1)}())})}(Me,p.options,p.errors)})})}visitKeyframes(d,p){const v={type:on.If.Keyframes,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push(function no(){return new r.wOt(3011,!1)}()),v;let O=0;const Q=[];let Me=!1,xe=!1,ot=0;const yt=d.steps.map(Mn=>{const ci=this._makeStyleAst(Mn,p);let an=null!=ci.offset?ci.offset:function W(T){if("string"==typeof T)return null;let d=null;if(Array.isArray(T))T.forEach(p=>{if(p instanceof Map&&p.has("offset")){const v=p;d=parseFloat(v.get("offset")),v.delete("offset")}});else if(T instanceof Map&&T.has("offset")){const p=T;d=parseFloat(p.get("offset")),p.delete("offset")}return d}(ci.styles),_n=0;return null!=an&&(O++,_n=ci.offset=an),xe=xe||_n<0||_n>1,Me=Me||_n0&&O{const an=Bt>0?ci==Ht?1:Bt*ci:Q[ci],_n=an*vn;p.currentTime=Xt+Zt.delay+_n,Zt.duration=_n,this._validateStyleAst(Mn,p),Mn.offset=an,v.styles.push(Mn)}),v}visitReference(d,p){return{type:on.If.Reference,animation:br(this,Ws(d.animation),p),options:Te(d.options)}}visitAnimateChild(d,p){return p.depCount++,{type:on.If.AnimateChild,options:Te(d.options)}}visitAnimateRef(d,p){return{type:on.If.AnimateRef,animation:this.visitReference(d.animation,p),options:Te(d.options)}}visitQuery(d,p){const v=p.currentQuerySelector,C=d.options||{};p.queryCount++,p.currentQuery=d;const[O,Q]=function fs(T){const d=!!T.split(/\s*,\s*/).find(p=>":self"==p);return d&&(T=T.replace(bc,"")),T=T.replace(/@\*/g,Yr).replace(/@\w+/g,p=>Yr+"-"+p.slice(1)).replace(/:animating/g,$a),[T,d]}(d.selector);p.currentQuerySelector=v.length?v+" "+O:O,fi(p.collectedStyles,p.currentQuerySelector,new Map);const Me=br(this,Ws(d.animation),p);return p.currentQuery=null,p.currentQuerySelector=v,{type:on.If.Query,selector:O,limit:C.limit||0,optional:!!C.optional,includeSelf:Q,animation:Me,originalSelector:d.selector,options:Te(d.options)}}visitStagger(d,p){p.currentQuery||p.errors.push(function _o(){return new r.wOt(3013,!1)}());const v="full"===d.timings?{duration:0,delay:0,easing:"full"}:Ys(d.timings,p.errors,!0);return{type:on.If.Stagger,animation:br(this,Ws(d.animation),p),timings:v,options:null}}}class Ec{constructor(d){this.errors=d,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Te(T){return T?(T={...T}).params&&(T.params=function Ma(T){return T?{...T}:null}(T.params)):T={},T}function Ge(T,d,p){return{duration:T,delay:d,easing:p}}function Nt(T,d,p,v,C,O,Q=null,Me=!1){return{type:1,element:T,keyframes:d,preStyleProps:p,postStyleProps:v,duration:C,delay:O,totalTime:C+O,easing:Q,subTimeline:Me}}class gn{constructor(){this._map=new Map}get(d){return this._map.get(d)||[]}append(d,p){let v=this._map.get(d);v||this._map.set(d,v=[]),v.push(...p)}has(d){return this._map.has(d)}clear(){this._map.clear()}}const yo=new RegExp(":enter","g"),zo=new RegExp(":leave","g");function Xn(T,d,p,v,C,O=new Map,Q=new Map,Me,xe,ot=[]){return(new Io).buildKeyframes(T,d,p,v,C,O,Q,Me,xe,ot)}class Io{buildKeyframes(d,p,v,C,O,Q,Me,xe,ot,yt=[]){ot=ot||new gn;const Dt=new Ao(d,p,ot,C,O,yt,[]);Dt.options=xe;const Bt=xe.delay?mr(xe.delay):0;Dt.currentTimeline.delayNextStep(Bt),Dt.currentTimeline.setStyles([Q],null,Dt.errors,xe),br(this,v,Dt);const Ht=Dt.timelines.filter(Xt=>Xt.containsAnimation());if(Ht.length&&Me.size){let Xt;for(let Zt=Ht.length-1;Zt>=0;Zt--){const vn=Ht[Zt];if(vn.element===p){Xt=vn;break}}Xt&&!Xt.allowOnlyTimelineStyles()&&Xt.setStyles([Me],null,Dt.errors,xe)}return Ht.length?Ht.map(Xt=>Xt.buildKeyframes()):[Nt(p,[],[],[],0,Bt,"",!1)]}visitTrigger(d,p){}visitState(d,p){}visitTransition(d,p){}visitAnimateChild(d,p){const v=p.subInstructions.get(p.element);if(v){const C=p.createSubContext(d.options),O=p.currentTimeline.currentTime,Q=this._visitSubInstructions(v,C,C.options);O!=Q&&p.transformIntoNewTimeline(Q)}p.previousNode=d}visitAnimateRef(d,p){const v=p.createSubContext(d.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([d.options,d.animation.options],p,v),this.visitReference(d.animation,v),p.transformIntoNewTimeline(v.currentTimeline.currentTime),p.previousNode=d}_applyAnimationRefDelays(d,p,v){for(const C of d){const O=C?.delay;if(O){const Q="number"==typeof O?O:mr(Kr(O,C?.params??{},p.errors));v.delayNextStep(Q)}}}_visitSubInstructions(d,p,v){let O=p.currentTimeline.currentTime;const Q=null!=v.duration?mr(v.duration):null,Me=null!=v.delay?mr(v.delay):null;return 0!==Q&&d.forEach(xe=>{const ot=p.appendInstructionToTimeline(xe,Q,Me);O=Math.max(O,ot.duration+ot.delay)}),O}visitReference(d,p){p.updateOptions(d.options,!0),br(this,d.animation,p),p.previousNode=d}visitSequence(d,p){const v=p.subContextCount;let C=p;const O=d.options;if(O&&(O.params||O.delay)&&(C=p.createSubContext(O),C.transformIntoNewTimeline(),null!=O.delay)){C.previousNode.type==on.If.Style&&(C.currentTimeline.snapshotCurrentStyles(),C.previousNode=Wi);const Q=mr(O.delay);C.delayNextStep(Q)}d.steps.length&&(d.steps.forEach(Q=>br(this,Q,C)),C.currentTimeline.applyStylesToKeyframe(),C.subContextCount>v&&C.transformIntoNewTimeline()),p.previousNode=d}visitGroup(d,p){const v=[];let C=p.currentTimeline.currentTime;const O=d.options&&d.options.delay?mr(d.options.delay):0;d.steps.forEach(Q=>{const Me=p.createSubContext(d.options);O&&Me.delayNextStep(O),br(this,Q,Me),C=Math.max(C,Me.currentTimeline.currentTime),v.push(Me.currentTimeline)}),v.forEach(Q=>p.currentTimeline.mergeTimelineCollectedStyles(Q)),p.transformIntoNewTimeline(C),p.previousNode=d}_visitTiming(d,p){if(d.dynamic){const v=d.strValue;return Ys(p.params?Kr(v,p.params,p.errors):v,p.errors)}return{duration:d.duration,delay:d.delay,easing:d.easing}}visitAnimate(d,p){const v=p.currentAnimateTimings=this._visitTiming(d.timings,p),C=p.currentTimeline;v.delay&&(p.incrementTime(v.delay),C.snapshotCurrentStyles());const O=d.style;O.type==on.If.Keyframes?this.visitKeyframes(O,p):(p.incrementTime(v.duration),this.visitStyle(O,p),C.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=d}visitStyle(d,p){const v=p.currentTimeline,C=p.currentAnimateTimings;!C&&v.hasCurrentStyleProperties()&&v.forwardFrame();const O=C&&C.easing||d.easing;d.isEmptyStep?v.applyEmptyStep(O):v.setStyles(d.styles,O,p.errors,p.options),p.previousNode=d}visitKeyframes(d,p){const v=p.currentAnimateTimings,C=p.currentTimeline.duration,O=v.duration,Me=p.createSubContext().currentTimeline;Me.easing=v.easing,d.styles.forEach(xe=>{Me.forwardTime((xe.offset||0)*O),Me.setStyles(xe.styles,xe.easing,p.errors,p.options),Me.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(Me),p.transformIntoNewTimeline(C+O),p.previousNode=d}visitQuery(d,p){const v=p.currentTimeline.currentTime,C=d.options||{},O=C.delay?mr(C.delay):0;O&&(p.previousNode.type===on.If.Style||0==v&&p.currentTimeline.hasCurrentStyleProperties())&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=Wi);let Q=v;const Me=p.invokeQuery(d.selector,d.originalSelector,d.limit,d.includeSelf,!!C.optional,p.errors);p.currentQueryTotal=Me.length;let xe=null;Me.forEach((ot,yt)=>{p.currentQueryIndex=yt;const Dt=p.createSubContext(d.options,ot);O&&Dt.delayNextStep(O),ot===p.element&&(xe=Dt.currentTimeline),br(this,d.animation,Dt),Dt.currentTimeline.applyStylesToKeyframe(),Q=Math.max(Q,Dt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Q),xe&&(p.currentTimeline.mergeTimelineCollectedStyles(xe),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=d}visitStagger(d,p){const v=p.parentContext,C=p.currentTimeline,O=d.timings,Q=Math.abs(O.duration),Me=Q*(p.currentQueryTotal-1);let xe=Q*p.currentQueryIndex;switch(O.duration<0?"reverse":O.easing){case"reverse":xe=Me-xe;break;case"full":xe=v.currentStaggerTime}const yt=p.currentTimeline;xe&&yt.delayNextStep(xe);const Dt=yt.currentTime;br(this,d.animation,p),p.previousNode=d,v.currentStaggerTime=C.currentTime-Dt+(C.startTime-v.currentTimeline.startTime)}}const Wi={};class Ao{constructor(d,p,v,C,O,Q,Me,xe){this._driver=d,this.element=p,this.subInstructions=v,this._enterClassName=C,this._leaveClassName=O,this.errors=Q,this.timelines=Me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=xe||new Qr(this._driver,p,0),Me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(d,p){if(!d)return;const v=d;let C=this.options;null!=v.duration&&(C.duration=mr(v.duration)),null!=v.delay&&(C.delay=mr(v.delay));const O=v.params;if(O){let Q=C.params;Q||(Q=this.options.params={}),Object.keys(O).forEach(Me=>{(!p||!Q.hasOwnProperty(Me))&&(Q[Me]=Kr(O[Me],Q,this.errors))})}}_copyOptions(){const d={};if(this.options){const p=this.options.params;if(p){const v=d.params={};Object.keys(p).forEach(C=>{v[C]=p[C]})}}return d}createSubContext(d=null,p,v){const C=p||this.element,O=new Ao(this._driver,C,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(C,v||0));return O.previousNode=this.previousNode,O.currentAnimateTimings=this.currentAnimateTimings,O.options=this._copyOptions(),O.updateOptions(d),O.currentQueryIndex=this.currentQueryIndex,O.currentQueryTotal=this.currentQueryTotal,O.parentContext=this,this.subContextCount++,O}transformIntoNewTimeline(d){return this.previousNode=Wi,this.currentTimeline=this.currentTimeline.fork(this.element,d),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(d,p,v){const C={duration:p??d.duration,delay:this.currentTimeline.currentTime+(v??0)+d.delay,easing:""},O=new Rr(this._driver,d.element,d.keyframes,d.preStyleProps,d.postStyleProps,C,d.stretchStartingKeyframe);return this.timelines.push(O),C}incrementTime(d){this.currentTimeline.forwardTime(this.currentTimeline.duration+d)}delayNextStep(d){d>0&&this.currentTimeline.delayNextStep(d)}invokeQuery(d,p,v,C,O,Q){let Me=[];if(C&&Me.push(this.element),d.length>0){d=(d=d.replace(yo,"."+this._enterClassName)).replace(zo,"."+this._leaveClassName);let ot=this._driver.query(this.element,d,1!=v);0!==v&&(ot=v<0?ot.slice(ot.length+v,ot.length):ot.slice(0,v)),Me.push(...ot)}return!O&&0==Me.length&&Q.push(function ir(T){return new r.wOt(3014,!1)}()),Me}}class Qr{constructor(d,p,v,C){this._driver=d,this.element=p,this.startTime=v,this._elementTimelineStylesLookup=C,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(d){const p=1===this._keyframes.size&&this._pendingStyles.size;this.duration||p?(this.forwardTime(this.currentTime+d),p&&this.snapshotCurrentStyles()):this.startTime+=d}fork(d,p){return this.applyStylesToKeyframe(),new Qr(this._driver,d,p||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(d){this.applyStylesToKeyframe(),this.duration=d,this._loadKeyframe()}_updateStyle(d,p){this._localTimelineStyles.set(d,p),this._globalTimelineStyles.set(d,p),this._styleSummary.set(d,{time:this.currentTime,value:p})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(d){d&&this._previousKeyframe.set("easing",d);for(let[p,v]of this._globalTimelineStyles)this._backFill.set(p,v||on.kp),this._currentKeyframe.set(p,on.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(d,p,v,C){p&&this._previousKeyframe.set("easing",p);const O=C&&C.params||{},Q=function ms(T,d){const p=new Map;let v;return T.forEach(C=>{if("*"===C){v??=d.keys();for(let O of v)p.set(O,on.kp)}else for(let[O,Q]of C)p.set(O,Q)}),p}(d,this._globalTimelineStyles);for(let[Me,xe]of Q){const ot=Kr(xe,O,v);this._pendingStyles.set(Me,ot),this._localTimelineStyles.has(Me)||this._backFill.set(Me,this._globalTimelineStyles.get(Me)??on.kp),this._updateStyle(Me,ot)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((d,p)=>{this._currentKeyframe.set(p,d)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((d,p)=>{this._currentKeyframe.has(p)||this._currentKeyframe.set(p,d)}))}snapshotCurrentStyles(){for(let[d,p]of this._localTimelineStyles)this._pendingStyles.set(d,p),this._updateStyle(d,p)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const d=[];for(let p in this._currentKeyframe)d.push(p);return d}mergeTimelineCollectedStyles(d){d._styleSummary.forEach((p,v)=>{const C=this._styleSummary.get(v);(!C||p.time>C.time)&&this._updateStyle(v,p.value)})}buildKeyframes(){this.applyStylesToKeyframe();const d=new Set,p=new Set,v=1===this._keyframes.size&&0===this.duration;let C=[];this._keyframes.forEach((Me,xe)=>{const ot=new Map([...this._backFill,...Me]);ot.forEach((yt,Dt)=>{yt===on.FX?d.add(Dt):yt===on.kp&&p.add(Dt)}),v||ot.set("offset",xe/this.duration),C.push(ot)});const O=[...d.values()],Q=[...p.values()];if(v){const Me=C[0],xe=new Map(Me);Me.set("offset",0),xe.set("offset",1),C=[Me,xe]}return Nt(this.element,C,O,Q,this.duration,this.startTime,this.easing,!1)}}class Rr extends Qr{constructor(d,p,v,C,O,Q,Me=!1){super(d,p,Q.delay),this.keyframes=v,this.preStyleProps=C,this.postStyleProps=O,this._stretchStartingKeyframe=Me,this.timings={duration:Q.duration,delay:Q.delay,easing:Q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let d=this.keyframes,{delay:p,duration:v,easing:C}=this.timings;if(this._stretchStartingKeyframe&&p){const O=[],Q=v+p,Me=p/Q,xe=new Map(d[0]);xe.set("offset",0),O.push(xe);const ot=new Map(d[0]);ot.set("offset",Is(Me)),O.push(ot);const yt=d.length-1;for(let Dt=1;Dt<=yt;Dt++){let Bt=new Map(d[Dt]);const Ht=Bt.get("offset");Bt.set("offset",Is((p+Ht*v)/Q)),O.push(Bt)}v=Q,p=0,C="",d=O}return Nt(this.element,d,this.preStyleProps,this.postStyleProps,v,p,C,!0)}}function Is(T,d=3){const p=Math.pow(10,d-1);return Math.round(T*p)/p}function Br(T,d,p,v,C,O,Q,Me,xe,ot,yt,Dt,Bt){return{type:0,element:T,triggerName:d,isRemovalTransition:C,fromState:p,fromStyles:O,toState:v,toStyles:Q,timelines:Me,queriedElements:xe,preStyleProps:ot,postStyleProps:yt,totalTime:Dt,errors:Bt}}const gs={};class vs{constructor(d,p,v){this._triggerName=d,this.ast=p,this._stateStyles=v}match(d,p,v,C){return function ws(T,d,p,v,C){return T.some(O=>O(d,p,v,C))}(this.ast.matchers,d,p,v,C)}buildStyles(d,p,v){let C=this._stateStyles.get("*");return void 0!==d&&(C=this._stateStyles.get(d?.toString())||C),C?C.buildStyles(p,v):new Map}build(d,p,v,C,O,Q,Me,xe,ot,yt){const Dt=[],Bt=this.ast.options&&this.ast.options.params||gs,Xt=this.buildStyles(v,Me&&Me.params||gs,Dt),Zt=xe&&xe.params||gs,vn=this.buildStyles(C,Zt,Dt),Mn=new Set,ci=new Map,an=new Map,_n="void"===C,ti={params:zc(Zt,Bt),delay:this.ast.options?.delay},Jn=yt?[]:Xn(d,p,this.ast.animation,O,Q,Xt,vn,ti,ot,Dt);let Ci=0;return Jn.forEach(Bi=>{Ci=Math.max(Bi.duration+Bi.delay,Ci)}),Dt.length?Br(p,this._triggerName,v,C,_n,Xt,vn,[],[],ci,an,Ci,Dt):(Jn.forEach(Bi=>{const nr=Bi.element,vr=fi(ci,nr,new Set);Bi.preStyleProps.forEach(Vr=>vr.add(Vr));const dc=fi(an,nr,new Set);Bi.postStyleProps.forEach(Vr=>dc.add(Vr)),nr!==p&&Mn.add(nr)}),Br(p,this._triggerName,v,C,_n,Xt,vn,Jn,[...Mn.values()],ci,an,Ci))}}function zc(T,d){const p={...d};return Object.entries(T).forEach(([v,C])=>{null!=C&&(p[v]=C)}),p}class Yo{constructor(d,p,v){this.styles=d,this.defaultParams=p,this.normalizer=v}buildStyles(d,p){const v=new Map,C=zc(d,this.defaultParams);return this.styles.styles.forEach(O=>{"string"!=typeof O&&O.forEach((Q,Me)=>{Q&&(Q=Kr(Q,C,p));const xe=this.normalizer.normalizePropertyName(Me,p);Q=this.normalizer.normalizeStyleValue(Me,xe,Q,p),v.set(Me,Q)})}),v}}class to{constructor(d,p,v){this.name=d,this.ast=p,this._normalizer=v,this.transitionFactories=[],this.states=new Map,p.states.forEach(C=>{this.states.set(C.name,new Yo(C.style,C.options&&C.options.params||{},v))}),xs(this.states,"true","1"),xs(this.states,"false","0"),p.transitions.forEach(C=>{this.transitionFactories.push(new vs(d,C,this.states))}),this.fallbackTransition=function Sa(T,d,p){return new vs(T,{type:on.If.Transition,animation:{type:on.If.Sequence,steps:[],options:null},matchers:[(Q,Me)=>!0],options:null,queryCount:0,depCount:0},d)}(d,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(d,p,v,C){return this.transitionFactories.find(Q=>Q.match(d,p,v,C))||null}matchStyles(d,p,v){return this.fallbackTransition.buildStyles(d,p,v)}}function xs(T,d,p){T.has(d)?T.has(p)||T.set(p,T.get(d)):T.has(p)&&T.set(d,T.get(p))}const is=new gn;class Uu{constructor(d,p,v){this.bodyNode=d,this._driver=p,this._normalizer=v,this._animations=new Map,this._playersById=new Map,this.players=[]}register(d,p){const v=[],O=Go(this._driver,p,v,[]);if(v.length)throw function sr(T){return new r.wOt(3503,!1)}();this._animations.set(d,O)}_buildPlayer(d,p,v){const C=d.element,O=ct(this._normalizer,d.keyframes,p,v);return this._driver.animate(C,O,d.duration,d.delay,d.easing,[],!0)}create(d,p,v={}){const C=[],O=this._animations.get(d);let Q;const Me=new Map;if(O?(Q=Xn(this._driver,p,O,vc,mo,new Map,new Map,v,is,C),Q.forEach(yt=>{const Dt=fi(Me,yt.element,new Map);yt.postStyleProps.forEach(Bt=>Dt.set(Bt,null))})):(C.push(function Fo(){return new r.wOt(3300,!1)}()),Q=[]),C.length)throw function zs(T){return new r.wOt(3504,!1)}();Me.forEach((yt,Dt)=>{yt.forEach((Bt,Ht)=>{yt.set(Ht,this._driver.computeStyle(Dt,Ht,on.kp))})});const ot=We(Q.map(yt=>{const Dt=Me.get(yt.element);return this._buildPlayer(yt,new Map,Dt)}));return this._playersById.set(d,ot),ot.onDestroy(()=>this.destroy(d)),this.players.push(ot),ot}destroy(d){const p=this._getPlayer(d);p.destroy(),this._playersById.delete(d);const v=this.players.indexOf(p);v>=0&&this.players.splice(v,1)}_getPlayer(d){const p=this._playersById.get(d);if(!p)throw function Fr(T){return new r.wOt(3301,!1)}();return p}listen(d,p,v,C){const O=$n(p,"","","");return sn(this._getPlayer(d),v,O,C),()=>{}}command(d,p,v,C){if("register"==v)return void this.register(d,C[0]);if("create"==v)return void this.create(d,p,C[0]||{});const O=this._getPlayer(d);switch(v){case"play":O.play();break;case"pause":O.pause();break;case"reset":O.reset();break;case"restart":O.restart();break;case"finish":O.finish();break;case"init":O.init();break;case"setPosition":O.setPosition(parseFloat(C[0]));break;case"destroy":this.destroy(d)}}}const Yc="ng-animate-queued",Dr="ng-animate-disabled",Mc=[],Jr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},go={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ar="__ng_removed";class Wc{get params(){return this.options.params}constructor(d,p=""){this.namespaceId=p;const v=d&&d.hasOwnProperty("value");if(this.value=function Xc(T){return T??null}(v?d.value:d),v){const{value:O,...Q}=d;this.options=Q}else this.options={};this.options.params||(this.options.params={})}absorbOptions(d){const p=d.params;if(p){const v=this.options.params;Object.keys(p).forEach(C=>{null==v[C]&&(v[C]=p[C])})}}}const fa="void",ma=new Wc(fa);class Kc{constructor(d,p,v){this.id=d,this.hostElement=p,this._engine=v,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+d,os(p,this._hostClassName)}listen(d,p,v,C){if(!this._triggers.has(p))throw function Uo(T,d){return new r.wOt(3302,!1)}();if(null==v||0==v.length)throw function es(T){return new r.wOt(3303,!1)}();if(!function bl(T){return"start"==T||"done"==T}(v))throw function Eo(T,d){return new r.wOt(3400,!1)}();const O=fi(this._elementListeners,d,[]),Q={name:p,phase:v,callback:C};O.push(Q);const Me=fi(this._engine.statesByElement,d,new Map);return Me.has(p)||(os(d,ua),os(d,ua+"-"+p),Me.set(p,ma)),()=>{this._engine.afterFlush(()=>{const xe=O.indexOf(Q);xe>=0&&O.splice(xe,1),this._triggers.has(p)||Me.delete(p)})}}register(d,p){return!this._triggers.has(d)&&(this._triggers.set(d,p),!0)}_getTrigger(d){const p=this._triggers.get(d);if(!p)throw function Ms(T){return new r.wOt(3401,!1)}();return p}trigger(d,p,v,C=!0){const O=this._getTrigger(p),Q=new Fs(this.id,p,d);let Me=this._engine.statesByElement.get(d);Me||(os(d,ua),os(d,ua+"-"+p),this._engine.statesByElement.set(d,Me=new Map));let xe=Me.get(p);const ot=new Wc(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&xe&&ot.absorbOptions(xe.options),Me.set(p,ot),xe||(xe=ma),ot.value!==fa&&xe.value===ot.value){if(!function lu(T,d){const p=Object.keys(T),v=Object.keys(d);if(p.length!=v.length)return!1;for(let C=0;C{wi(d,vn),Wr(d,Mn)})}return}const Bt=fi(this._engine.playersByElement,d,[]);Bt.forEach(Zt=>{Zt.namespaceId==this.id&&Zt.triggerName==p&&Zt.queued&&Zt.destroy()});let Ht=O.matchTransition(xe.value,ot.value,d,ot.params),Xt=!1;if(!Ht){if(!C)return;Ht=O.fallbackTransition,Xt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:p,transition:Ht,fromState:xe,toState:ot,player:Q,isFallbackTransition:Xt}),Xt||(os(d,Yc),Q.onStart(()=>{ga(d,Yc)})),Q.onDone(()=>{let Zt=this.players.indexOf(Q);Zt>=0&&this.players.splice(Zt,1);const vn=this._engine.playersByElement.get(d);if(vn){let Mn=vn.indexOf(Q);Mn>=0&&vn.splice(Mn,1)}}),this.players.push(Q),Bt.push(Q),Q}deregister(d){this._triggers.delete(d),this._engine.statesByElement.forEach(p=>p.delete(d)),this._elementListeners.forEach((p,v)=>{this._elementListeners.set(v,p.filter(C=>C.name!=d))})}clearElementCache(d){this._engine.statesByElement.delete(d),this._elementListeners.delete(d);const p=this._engine.playersByElement.get(d);p&&(p.forEach(v=>v.destroy()),this._engine.playersByElement.delete(d))}_signalRemovalForInnerTriggers(d,p){const v=this._engine.driver.query(d,Yr,!0);v.forEach(C=>{if(C[ar])return;const O=this._engine.fetchNamespacesByElement(C);O.size?O.forEach(Q=>Q.triggerLeaveAnimation(C,p,!1,!0)):this.clearElementCache(C)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(C=>this.clearElementCache(C)))}triggerLeaveAnimation(d,p,v,C){const O=this._engine.statesByElement.get(d),Q=new Map;if(O){const Me=[];if(O.forEach((xe,ot)=>{if(Q.set(ot,xe.value),this._triggers.has(ot)){const yt=this.trigger(d,ot,fa,C);yt&&Me.push(yt)}}),Me.length)return this._engine.markElementAsRemoved(this.id,d,!0,p,Q),v&&We(Me).onDone(()=>this._engine.processLeaveNode(d)),!0}return!1}prepareLeaveAnimationListeners(d){const p=this._elementListeners.get(d),v=this._engine.statesByElement.get(d);if(p&&v){const C=new Set;p.forEach(O=>{const Q=O.name;if(C.has(Q))return;C.add(Q);const xe=this._triggers.get(Q).fallbackTransition,ot=v.get(Q)||ma,yt=new Wc(fa),Dt=new Fs(this.id,Q,d);this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:Q,transition:xe,fromState:ot,toState:yt,player:Dt,isFallbackTransition:!0})})}}removeNode(d,p){const v=this._engine;if(d.childElementCount&&this._signalRemovalForInnerTriggers(d,p),this.triggerLeaveAnimation(d,p,!0))return;let C=!1;if(v.totalAnimations){const O=v.players.length?v.playersByQueriedElement.get(d):[];if(O&&O.length)C=!0;else{let Q=d;for(;Q=Q.parentNode;)if(v.statesByElement.get(Q)){C=!0;break}}}if(this.prepareLeaveAnimationListeners(d),C)v.markElementAsRemoved(this.id,d,!1,p);else{const O=d[ar];(!O||O===Jr)&&(v.afterFlush(()=>this.clearElementCache(d)),v.destroyInnerAnimations(d),v._onRemovalComplete(d,p))}}insertNode(d,p){os(d,this._hostClassName)}drainQueuedTransitions(d){const p=[];return this._queue.forEach(v=>{const C=v.player;if(C.destroyed)return;const O=v.element,Q=this._elementListeners.get(O);Q&&Q.forEach(Me=>{if(Me.name==v.triggerName){const xe=$n(O,v.triggerName,v.fromState.value,v.toState.value);xe._data=d,sn(v.player,Me.phase,xe,Me.callback)}}),C.markedForDestroy?this._engine.afterFlush(()=>{C.destroy()}):p.push(v)}),this._queue=[],p.sort((v,C)=>{const O=v.transition.ast.depCount,Q=C.transition.ast.depCount;return 0==O||0==Q?O-Q:this._engine.driver.containsElement(v.element,C.element)?1:-1})}destroy(d){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,d)}}class Ps{_onRemovalComplete(d,p){this.onRemovalComplete(d,p)}constructor(d,p,v){this.bodyNode=d,this.driver=p,this._normalizer=v,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(C,O)=>{}}get queuedPlayers(){const d=[];return this._namespaceList.forEach(p=>{p.players.forEach(v=>{v.queued&&d.push(v)})}),d}createNamespace(d,p){const v=new Kc(d,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(v,p):(this.newHostElements.set(p,v),this.collectEnterElement(p)),this._namespaceLookup[d]=v}_balanceNamespaceList(d,p){const v=this._namespaceList,C=this.namespacesByHostElement;if(v.length-1>=0){let Q=!1,Me=this.driver.getParentElement(p);for(;Me;){const xe=C.get(Me);if(xe){const ot=v.indexOf(xe);v.splice(ot+1,0,d),Q=!0;break}Me=this.driver.getParentElement(Me)}Q||v.unshift(d)}else v.push(d);return C.set(p,d),d}register(d,p){let v=this._namespaceLookup[d];return v||(v=this.createNamespace(d,p)),v}registerTrigger(d,p,v){let C=this._namespaceLookup[d];C&&C.register(p,v)&&this.totalAnimations++}destroy(d,p){d&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(d);this.namespacesByHostElement.delete(v.hostElement);const C=this._namespaceList.indexOf(v);C>=0&&this._namespaceList.splice(C,1),v.destroy(p),delete this._namespaceLookup[d]}))}_fetchNamespace(d){return this._namespaceLookup[d]}fetchNamespacesByElement(d){const p=new Set,v=this.statesByElement.get(d);if(v)for(let C of v.values())if(C.namespaceId){const O=this._fetchNamespace(C.namespaceId);O&&p.add(O)}return p}trigger(d,p,v,C){if(Xs(p)){const O=this._fetchNamespace(d);if(O)return O.trigger(p,v,C),!0}return!1}insertNode(d,p,v,C){if(!Xs(p))return;const O=p[ar];if(O&&O.setForRemoval){O.setForRemoval=!1,O.setForMove=!0;const Q=this.collectedLeaveElements.indexOf(p);Q>=0&&this.collectedLeaveElements.splice(Q,1)}if(d){const Q=this._fetchNamespace(d);Q&&Q.insertNode(p,v)}C&&this.collectEnterElement(p)}collectEnterElement(d){this.collectedEnterElements.push(d)}markElementAsDisabled(d,p){p?this.disabledNodes.has(d)||(this.disabledNodes.add(d),os(d,Dr)):this.disabledNodes.has(d)&&(this.disabledNodes.delete(d),ga(d,Dr))}removeNode(d,p,v){if(Xs(p)){const C=d?this._fetchNamespace(d):null;C?C.removeNode(p,v):this.markElementAsRemoved(d,p,!1,v);const O=this.namespacesByHostElement.get(p);O&&O.id!==d&&O.removeNode(p,v)}else this._onRemovalComplete(p,v)}markElementAsRemoved(d,p,v,C,O){this.collectedLeaveElements.push(p),p[ar]={namespaceId:d,setForRemoval:C,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:O}}listen(d,p,v,C,O){return Xs(p)?this._fetchNamespace(d).listen(p,v,C,O):()=>{}}_buildInstruction(d,p,v,C,O){return d.transition.build(this.driver,d.element,d.fromState.value,d.toState.value,v,C,d.fromState.options,d.toState.options,p,O)}destroyInnerAnimations(d){let p=this.driver.query(d,Yr,!0);p.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(d,$a,!0),p.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(d){const p=this.playersByElement.get(d);p&&p.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(d){const p=this.playersByQueriedElement.get(d);p&&p.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(d=>{if(this.players.length)return We(this.players).onDone(()=>d());d()})}processLeaveNode(d){const p=d[ar];if(p&&p.setForRemoval){if(d[ar]=Jr,p.namespaceId){this.destroyInnerAnimations(d);const v=this._fetchNamespace(p.namespaceId);v&&v.clearElementCache(d)}this._onRemovalComplete(d,p.setForRemoval)}d.classList?.contains(Dr)&&this.markElementAsDisabled(d,!1),this.driver.query(d,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(d=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,C)=>this._balanceNamespaceList(v,C)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],p.length?We(p).onDone(()=>{v.forEach(C=>C())}):v.forEach(C=>C())}}reportError(d){throw function ds(T){return new r.wOt(3402,!1)}()}_flushAnimations(d,p){const v=new gn,C=[],O=new Map,Q=[],Me=new Map,xe=new Map,ot=new Map,yt=new Set;this.disabledNodes.forEach(Di=>{yt.add(Di);const _i=this.driver.query(Di,".ng-animate-queued",!0);for(let Ui=0;Ui<_i.length;Ui++)yt.add(_i[Ui])});const Dt=this.bodyNode,Bt=Array.from(this.statesByElement.keys()),Ht=Sc(Bt,this.collectedEnterElements),Xt=new Map;let Zt=0;Ht.forEach((Di,_i)=>{const Ui=vc+Zt++;Xt.set(_i,Ui),Di.forEach(Mo=>os(Mo,Ui))});const vn=[],Mn=new Set,ci=new Set;for(let Di=0;DiMn.add(Mo)):ci.add(_i))}const an=new Map,_n=Sc(Bt,Array.from(Mn));_n.forEach((Di,_i)=>{const Ui=mo+Zt++;an.set(_i,Ui),Di.forEach(Mo=>os(Mo,Ui))}),d.push(()=>{Ht.forEach((Di,_i)=>{const Ui=Xt.get(_i);Di.forEach(Mo=>ga(Mo,Ui))}),_n.forEach((Di,_i)=>{const Ui=an.get(_i);Di.forEach(Mo=>ga(Mo,Ui))}),vn.forEach(Di=>{this.processLeaveNode(Di)})});const ti=[],Jn=[];for(let Di=this._namespaceList.length-1;Di>=0;Di--)this._namespaceList[Di].drainQueuedTransitions(p).forEach(Ui=>{const Mo=Ui.player,Tr=Ui.element;if(ti.push(Mo),this.collectedEnterElements.length){const as=Tr[ar];if(as&&as.setForMove){if(as.previousTriggersValues&&as.previousTriggersValues.has(Ui.triggerName)){const pc=as.previousTriggersValues.get(Ui.triggerName),la=this.statesByElement.get(Ui.element);if(la&&la.has(Ui.triggerName)){const Vu=la.get(Ui.triggerName);Vu.value=pc,la.set(Ui.triggerName,Vu)}}return void Mo.destroy()}}const hc=!Dt||!this.driver.containsElement(Dt,Tr),ca=an.get(Tr),dr=Xt.get(Tr),Po=this._buildInstruction(Ui,v,dr,ca,hc);if(Po.errors&&Po.errors.length)return void Jn.push(Po);if(hc)return Mo.onStart(()=>wi(Tr,Po.fromStyles)),Mo.onDestroy(()=>Wr(Tr,Po.toStyles)),void C.push(Mo);if(Ui.isFallbackTransition)return Mo.onStart(()=>wi(Tr,Po.fromStyles)),Mo.onDestroy(()=>Wr(Tr,Po.toStyles)),void C.push(Mo);const Fd=[];Po.timelines.forEach(as=>{as.stretchStartingKeyframe=!0,this.disabledNodes.has(as.element)||Fd.push(as)}),Po.timelines=Fd,v.append(Tr,Po.timelines),Q.push({instruction:Po,player:Mo,element:Tr}),Po.queriedElements.forEach(as=>fi(Me,as,[]).push(Mo)),Po.preStyleProps.forEach((as,pc)=>{if(as.size){let la=xe.get(pc);la||xe.set(pc,la=new Set),as.forEach((Vu,Ad)=>la.add(Ad))}}),Po.postStyleProps.forEach((as,pc)=>{let la=ot.get(pc);la||ot.set(pc,la=new Set),as.forEach((Vu,Ad)=>la.add(Ad))})});if(Jn.length){const Di=[];Jn.forEach(_i=>{Di.push(function An(T,d){return new r.wOt(3505,!1)}())}),ti.forEach(_i=>_i.destroy()),this.reportError(Di)}const Ci=new Map,Bi=new Map;Q.forEach(Di=>{const _i=Di.element;v.has(_i)&&(Bi.set(_i,_i),this._beforeAnimationBuild(Di.player.namespaceId,Di.instruction,Ci))}),C.forEach(Di=>{const _i=Di.element;this._getPreviousPlayers(_i,!1,Di.namespaceId,Di.triggerName,null).forEach(Mo=>{fi(Ci,_i,[]).push(Mo),Mo.destroy()})});const nr=vn.filter(Di=>Jc(Di,xe,ot)),vr=new Map;Qc(vr,this.driver,ci,ot,on.kp).forEach(Di=>{Jc(Di,xe,ot)&&nr.push(Di)});const Vr=new Map;Ht.forEach((Di,_i)=>{Qc(Vr,this.driver,new Set(Di),xe,on.FX)}),nr.forEach(Di=>{const _i=vr.get(Di),Ui=Vr.get(Di);vr.set(Di,new Map([..._i?.entries()??[],...Ui?.entries()??[]]))});const Aa=[],Pd=[],ph={};Q.forEach(Di=>{const{element:_i,player:Ui,instruction:Mo}=Di;if(v.has(_i)){if(yt.has(_i))return Ui.onDestroy(()=>Wr(_i,Mo.toStyles)),Ui.disabled=!0,Ui.overrideTotalTime(Mo.totalTime),void C.push(Ui);let Tr=ph;if(Bi.size>1){let ca=_i;const dr=[];for(;ca=ca.parentNode;){const Po=Bi.get(ca);if(Po){Tr=Po;break}dr.push(ca)}dr.forEach(Po=>Bi.set(Po,Tr))}const hc=this._buildAnimation(Ui.namespaceId,Mo,Ci,O,Vr,vr);if(Ui.setRealPlayer(hc),Tr===ph)Aa.push(Ui);else{const ca=this.playersByElement.get(Tr);ca&&ca.length&&(Ui.parentPlayer=We(ca)),C.push(Ui)}}else wi(_i,Mo.fromStyles),Ui.onDestroy(()=>Wr(_i,Mo.toStyles)),Pd.push(Ui),yt.has(_i)&&C.push(Ui)}),Pd.forEach(Di=>{const _i=O.get(Di.element);if(_i&&_i.length){const Ui=We(_i);Di.setRealPlayer(Ui)}}),C.forEach(Di=>{Di.parentPlayer?Di.syncPlayerEvents(Di.parentPlayer):Di.destroy()});for(let Di=0;Di!hc.destroyed);Tr.length?cu(this,_i,Tr):this.processLeaveNode(_i)}return vn.length=0,Aa.forEach(Di=>{this.players.push(Di),Di.onDone(()=>{Di.destroy();const _i=this.players.indexOf(Di);this.players.splice(_i,1)}),Di.play()}),Aa}afterFlush(d){this._flushFns.push(d)}afterFlushAnimationsDone(d){this._whenQuietFns.push(d)}_getPreviousPlayers(d,p,v,C,O){let Q=[];if(p){const Me=this.playersByQueriedElement.get(d);Me&&(Q=Me)}else{const Me=this.playersByElement.get(d);if(Me){const xe=!O||O==fa;Me.forEach(ot=>{ot.queued||!xe&&ot.triggerName!=C||Q.push(ot)})}}return(v||C)&&(Q=Q.filter(Me=>!(v&&v!=Me.namespaceId||C&&C!=Me.triggerName))),Q}_beforeAnimationBuild(d,p,v){const O=p.element,Q=p.isRemovalTransition?void 0:d,Me=p.isRemovalTransition?void 0:p.triggerName;for(const xe of p.timelines){const ot=xe.element,yt=ot!==O,Dt=fi(v,ot,[]);this._getPreviousPlayers(ot,yt,Q,Me,p.toState).forEach(Ht=>{const Xt=Ht.getRealPlayer();Xt.beforeDestroy&&Xt.beforeDestroy(),Ht.destroy(),Dt.push(Ht)})}wi(O,p.fromStyles)}_buildAnimation(d,p,v,C,O,Q){const Me=p.triggerName,xe=p.element,ot=[],yt=new Set,Dt=new Set,Bt=p.timelines.map(Xt=>{const Zt=Xt.element;yt.add(Zt);const vn=Zt[ar];if(vn&&vn.removedBeforeQueried)return new on.sf(Xt.duration,Xt.delay);const Mn=Zt!==xe,ci=function Yu(T){const d=[];return _s(T,d),d}((v.get(Zt)||Mc).map(Ci=>Ci.getRealPlayer())).filter(Ci=>!!Ci.element&&Ci.element===Zt),an=O.get(Zt),_n=Q.get(Zt),ti=ct(this._normalizer,Xt.keyframes,an,_n),Jn=this._buildPlayer(Xt,ti,ci);if(Xt.subTimeline&&C&&Dt.add(Zt),Mn){const Ci=new Fs(d,Me,Zt);Ci.setRealPlayer(Jn),ot.push(Ci)}return Jn});ot.forEach(Xt=>{fi(this.playersByQueriedElement,Xt.element,[]).push(Xt),Xt.onDone(()=>function au(T,d,p){let v=T.get(d);if(v){if(v.length){const C=v.indexOf(p);v.splice(C,1)}0==v.length&&T.delete(d)}return v}(this.playersByQueriedElement,Xt.element,Xt))}),yt.forEach(Xt=>os(Xt,na));const Ht=We(Bt);return Ht.onDestroy(()=>{yt.forEach(Xt=>ga(Xt,na)),Wr(xe,p.toStyles)}),Dt.forEach(Xt=>{fi(C,Xt,[]).push(Ht)}),Ht}_buildPlayer(d,p,v){return p.length>0?this.driver.animate(d.element,p,d.duration,d.delay,d.easing,v):new on.sf(d.duration,d.delay)}}class Fs{constructor(d,p,v){this.namespaceId=d,this.triggerName=p,this.element=v,this._player=new on.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(d){this._containsRealPlayer||(this._player=d,this._queuedCallbacks.forEach((p,v)=>{p.forEach(C=>sn(d,v,void 0,C))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(d.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(d){this.totalTime=d}syncPlayerEvents(d){const p=this._player;p.triggerCallback&&d.onStart(()=>p.triggerCallback("start")),d.onDone(()=>this.finish()),d.onDestroy(()=>this.destroy())}_queueEvent(d,p){fi(this._queuedCallbacks,d,[]).push(p)}onDone(d){this.queued&&this._queueEvent("done",d),this._player.onDone(d)}onStart(d){this.queued&&this._queueEvent("start",d),this._player.onStart(d)}onDestroy(d){this.queued&&this._queueEvent("destroy",d),this._player.onDestroy(d)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(d){this.queued||this._player.setPosition(d)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(d){const p=this._player;p.triggerCallback&&p.triggerCallback(d)}}function Xs(T){return T&&1===T.nodeType}function Da(T,d){const p=T.style.display;return T.style.display=d??"none",p}function Qc(T,d,p,v,C){const O=[];p.forEach(xe=>O.push(Da(xe)));const Q=[];v.forEach((xe,ot)=>{const yt=new Map;xe.forEach(Dt=>{const Bt=d.computeStyle(ot,Dt,C);yt.set(Dt,Bt),(!Bt||0==Bt.length)&&(ot[ar]=go,Q.push(ot))}),T.set(ot,yt)});let Me=0;return p.forEach(xe=>Da(xe,O[Me++])),Q}function Sc(T,d){const p=new Map;if(T.forEach(Me=>p.set(Me,[])),0==d.length)return p;const C=new Set(d),O=new Map;function Q(Me){if(!Me)return 1;let xe=O.get(Me);if(xe)return xe;const ot=Me.parentNode;return xe=p.has(ot)?ot:C.has(ot)?1:Q(ot),O.set(Me,xe),xe}return d.forEach(Me=>{const xe=Q(Me);1!==xe&&p.get(xe).push(Me)}),p}function os(T,d){T.classList?.add(d)}function ga(T,d){T.classList?.remove(d)}function cu(T,d,p){We(p).onDone(()=>T.processLeaveNode(d))}function _s(T,d){for(let p=0;pC.add(O)):d.set(T,v),p.delete(T),!0}class P{constructor(d,p,v){this._driver=p,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(C,O)=>{},this._transitionEngine=new Ps(d.body,p,v),this._timelineEngine=new Uu(d.body,p,v),this._transitionEngine.onRemovalComplete=(C,O)=>this.onRemovalComplete(C,O)}registerTrigger(d,p,v,C,O){const Q=d+"-"+C;let Me=this._triggerCache[Q];if(!Me){const xe=[],yt=Go(this._driver,O,xe,[]);if(xe.length)throw function _r(T,d){return new r.wOt(3404,!1)}();Me=function ns(T,d,p){return new to(T,d,p)}(C,yt,this._normalizer),this._triggerCache[Q]=Me}this._transitionEngine.registerTrigger(p,C,Me)}register(d,p){this._transitionEngine.register(d,p)}destroy(d,p){this._transitionEngine.destroy(d,p)}onInsert(d,p,v,C){this._transitionEngine.insertNode(d,p,v,C)}onRemove(d,p,v){this._transitionEngine.removeNode(d,p,v)}disableAnimations(d,p){this._transitionEngine.markElementAsDisabled(d,p)}process(d,p,v,C){if("@"==v.charAt(0)){const[O,Q]=ki(v);this._timelineEngine.command(O,p,Q,C)}else this._transitionEngine.trigger(d,p,v,C)}listen(d,p,v,C,O){if("@"==v.charAt(0)){const[Q,Me]=ki(v);return this._timelineEngine.listen(Q,p,Me,O)}return this._transitionEngine.listen(d,p,v,C,O)}flush(d=-1){this._transitionEngine.flush(d)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(d){this._transitionEngine.afterFlushAnimationsDone(d)}}class k{static#e=this.initialStylesByElement=new WeakMap;constructor(d,p,v){this._element=d,this._startStyles=p,this._endStyles=v,this._state=0;let C=k.initialStylesByElement.get(d);C||k.initialStylesByElement.set(d,C=new Map),this._initialStyles=C}start(){this._state<1&&(this._startStyles&&Wr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Wr(this._element,this._initialStyles),this._endStyles&&(Wr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(k.initialStylesByElement.delete(this._element),this._startStyles&&(wi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wi(this._element,this._endStyles),this._endStyles=null),Wr(this._element,this._initialStyles),this._state=3)}}function le(T){let d=null;return T.forEach((p,v)=>{(function $e(T){return"display"===T||"position"===T})(v)&&(d=d||new Map,d.set(v,p))}),d}class mt{constructor(d,p,v,C){this.element=d,this.keyframes=p,this.options=v,this._specialStyles=C,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const d=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,d,this.options),this._finalKeyframe=d.length?d[d.length-1]:new Map;const p=()=>this._onFinish();this.domPlayer.addEventListener("finish",p),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",p)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(d){const p=[];return d.forEach(v=>{p.push(Object.fromEntries(v))}),p}_triggerWebAnimation(d,p,v){return d.animate(this._convertKeyframesToObject(p),v)}onStart(d){this._originalOnStartFns.push(d),this._onStartFns.push(d)}onDone(d){this._originalOnDoneFns.push(d),this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(d=>d()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(d=>d()),this._onDestroyFns=[])}setPosition(d){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=d*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const d=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,C)=>{"offset"!==C&&d.set(C,this._finished?v:Ss(this.element,C))}),this.currentSnapshot=d}triggerCallback(d){const p="start"===d?this._onStartFns:this._onDoneFns;p.forEach(v=>v()),p.length=0}}class kt{validateStyleProperty(d){return!0}validateAnimatableStyleProperty(d){return!0}containsElement(d,p){return pt(d,p)}getParentElement(d){return di(d)}query(d,p,v){return Jt(d,p,v)}computeStyle(d,p,v){return Ss(d,p)}animate(d,p,v,C,O,Q=[]){const xe={duration:v,delay:C,fill:0==C?"both":"forwards"};O&&(xe.easing=O);const ot=new Map,yt=Q.filter(Ht=>Ht instanceof mt);(function yl(T,d){return 0===T||0===d})(v,C)&&yt.forEach(Ht=>{Ht.currentSnapshot.forEach((Xt,Zt)=>ot.set(Zt,Xt))});let Dt=function _c(T){return T.length?T[0]instanceof Map?T:T.map(d=>new Map(Object.entries(d))):[]}(p).map(Ht=>new Map(Ht));Dt=function ju(T,d,p){if(p.size&&d.length){let v=d[0],C=[];if(p.forEach((O,Q)=>{v.has(Q)||C.push(Q),v.set(Q,O)}),C.length)for(let O=1;OQ.set(Me,Ss(T,Me)))}}return d}(d,Dt,ot);const Bt=function ae(T,d){let p=null,v=null;return Array.isArray(d)&&d.length?(p=le(d[0]),d.length>1&&(v=le(d[d.length-1]))):d instanceof Map&&(p=le(d)),p||v?new k(T,p,v):null}(d,Dt);return new mt(d,Dt,xe,Bt)}}const Fi="@.disabled";class Ai{constructor(d,p,v,C){this.namespaceId=d,this.delegate=p,this.engine=v,this._onDestroy=C,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(d){this.delegate.destroyNode?.(d)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(d,p){return this.delegate.createElement(d,p)}createComment(d){return this.delegate.createComment(d)}createText(d){return this.delegate.createText(d)}appendChild(d,p){this.delegate.appendChild(d,p),this.engine.onInsert(this.namespaceId,p,d,!1)}insertBefore(d,p,v,C=!0){this.delegate.insertBefore(d,p,v),this.engine.onInsert(this.namespaceId,p,d,C)}removeChild(d,p,v){this.engine.onRemove(this.namespaceId,p,this.delegate)}selectRootElement(d,p){return this.delegate.selectRootElement(d,p)}parentNode(d){return this.delegate.parentNode(d)}nextSibling(d){return this.delegate.nextSibling(d)}setAttribute(d,p,v,C){this.delegate.setAttribute(d,p,v,C)}removeAttribute(d,p,v){this.delegate.removeAttribute(d,p,v)}addClass(d,p){this.delegate.addClass(d,p)}removeClass(d,p){this.delegate.removeClass(d,p)}setStyle(d,p,v,C){this.delegate.setStyle(d,p,v,C)}removeStyle(d,p,v){this.delegate.removeStyle(d,p,v)}setProperty(d,p,v){"@"==p.charAt(0)&&p==Fi?this.disableAnimations(d,!!v):this.delegate.setProperty(d,p,v)}setValue(d,p){this.delegate.setValue(d,p)}listen(d,p,v){return this.delegate.listen(d,p,v)}disableAnimations(d,p){this.engine.disableAnimations(d,p)}}class Ro extends Ai{constructor(d,p,v,C,O){super(p,v,C,O),this.factory=d,this.namespaceId=p}setProperty(d,p,v){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Fi?this.disableAnimations(d,v=void 0===v||!!v):this.engine.process(this.namespaceId,d,p.slice(1),v):this.delegate.setProperty(d,p,v)}listen(d,p,v){if("@"==p.charAt(0)){const C=function ys(T){switch(T){case"body":return document.body;case"document":return document;case"window":return window;default:return T}}(d);let O=p.slice(1),Q="";return"@"!=O.charAt(0)&&([O,Q]=function Or(T){const d=T.indexOf(".");return[T.substring(0,d),T.slice(d+1)]}(O)),this.engine.listen(this.namespaceId,C,O,Q,Me=>{this.factory.scheduleListenerCallback(Me._data||-1,v,Me)})}return this.delegate.listen(d,p,v)}}class Hi{constructor(d,p,v){this.delegate=d,this.engine=p,this._zone=v,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,p.onRemovalComplete=(C,O)=>{const Q=O?.parentNode(C);Q&&O.removeChild(Q,C)}}createRenderer(d,p){const C=this.delegate.createRenderer(d,p);if(!d||!p?.data?.animation){const ot=this._rendererCache;let yt=ot.get(C);return yt||(yt=new Ai("",C,this.engine,()=>ot.delete(C)),ot.set(C,yt)),yt}const O=p.id,Q=p.id+"-"+this._currentId;this._currentId++,this.engine.register(Q,d);const Me=ot=>{Array.isArray(ot)?ot.forEach(Me):this.engine.registerTrigger(O,Q,d,ot.name,ot)};return p.data.animation.forEach(Me),new Ro(this,Q,C,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(d,p,v){if(d>=0&&dp(v));const C=this._animationCallbacksBuffer;0==C.length&&queueMicrotask(()=>{this._zone.run(()=>{C.forEach(O=>{const[Q,Me]=O;Q(Me)}),this._animationCallbacksBuffer=[]})}),C.push([p,v])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let So=(()=>{class T extends P{constructor(p,v,C){super(p,v,C)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(v){return new(v||T)(r.KVO(Ve.qQ),r.KVO(xo),r.KVO(yi))};static#t=this.\u0275prov=r.jDH({token:T,factory:T.\u0275fac})}return T})();const tr=[{provide:yi,useFactory:function er(){return new ha}},{provide:P,useClass:So},{provide:r._9s,useFactory:function oa(T,d,p){return new Hi(T,d,p)},deps:[t.B7,P,r.SKi]}],El=[{provide:xo,useFactory:()=>new kt},{provide:r.bc$,useValue:"BrowserAnimations"},...tr],Tl=[{provide:xo,useClass:Qi},{provide:r.bc$,useValue:"NoopAnimations"},...tr];let zl=(()=>{class T{static withConfig(p){return{ngModule:T,providers:p.disableAnimations?Tl:El}}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T});static#n=this.\u0275inj=r.G2t({providers:El,imports:[t.Bb]})}return T})();c(8167);const cd=[{name:"adminFullcolor",data:''},{name:"assertionFullcolor",data:''},{name:"clinicaltrialFullcolor",data:''},{name:"queueFullcolor",data:''},{name:"commentFullcolor",data:''},{name:"coordinatesystemFullcolor",data:''},{name:"curatorFullcolor",data:''},{name:"diseaseFullcolor",data:''},{name:"editorFullcolor",data:''},{name:"eventFullcolor",data:''},{name:"evidenceitemFullcolor",data:''},{name:"evidenceFullcolor",data:''},{name:"flagFullcolor",data:''},{name:"featureFullcolor",data:''},{name:"therapyFullcolor",data:''},{name:"molecularprofileFullcolor",data:''},{name:"organizationFullcolor",data:''},{name:"phenotypeFullcolor",data:''},{name:"revisionFullcolor",data:''},{name:"sourceFullcolor",data:''},{name:"userFullcolor",data:''},{name:"variant",data:''},{name:"variantgroupFullcolor",data:''},{name:"varianttypeFullcolor",data:''}],bu=function Ls(T){const d=[];return T.forEach(p=>{const v={name:_1(p.name),theme:Ul(p.name),icon:p.data};d.push(v)}),d}([{name:"adminOutline",data:''},{name:"adminTwotone",data:''},{name:"adverseresponseOutline",data:''},{name:"assertionOutline",data:''},{name:"assertionTwotone",data:''},{name:"benignOutline",data:''},{name:"betteroutcomeOutline",data:''},{name:"clinicaltrialOutline",data:''},{name:"clinicaltrialTwotone",data:''},{name:"queueOutline",data:''},{name:"queueTwotone",data:''},{name:"combinationOutline",data:''},{name:"combinedOutline",data:''},{name:"commentOutline",data:''},{name:"commentTwotone",data:''},{name:"commongermlineOutline",data:''},{name:"coordinatesystemOutline",data:''},{name:"coordinatesystemTwotone",data:''},{name:"curatorOutline",data:''},{name:"curatorTwotone",data:''},{name:"diagnosticOutline",data:''},{name:"diseaseOutline",data:''},{name:"diseaseTwotone",data:''},{name:"doesnotsupportOutline",data:''},{name:"dominantnegativeOutline",data:''},{name:"editorOutline",data:''},{name:"editorTwotone",data:''},{name:"eventOutline",data:''},{name:"eventTwotone",data:''},{name:"evidenceOutline",data:''},{name:"evidenceTwotone",data:''},{name:"evidenceitemOutline",data:''},{name:"evidenceitemTwotone",data:''},{name:"flagOutline",data:''},{name:"flagTwotone",data:''},{name:"functionalOutline",data:''},{name:"gainoffunctionOutline",data:''},{name:"featureOutline",data:''},{name:"featureTwotone",data:''},{name:"levelaOutline",data:''},{name:"levelbOutline",data:''},{name:"levelcOutline",data:''},{name:"leveldOutline",data:''},{name:"leveleOutline",data:''},{name:"therapyOutline",data:''},{name:"therapyTwotone",data:''},{name:"likelybenignOutline",data:''},{name:"likelypathogenicOutline",data:''},{name:"lossoffunctionOutline",data:''},{name:"molecularprofileOutline",data:''},{name:"molecularprofileTwotone",data:''},{name:"naOutline",data:''},{name:"negativeOutline",data:''},{name:"neomorphicOutline",data:''},{name:"oncogenicOutline",data:''},{name:"oncogenictypeOutline",data:''},{name:"oncogenicsignificanceOutline",data:''},{name:"oncogenicityOutline",data:''},{name:"orcid",data:''},{name:"organizationOutline",data:''},{name:"organizationTwotone",data:''},{name:"pathogenicOutline",data:''},{name:"phenotypeOutline",data:''},{name:"phenotypeTwotone",data:''},{name:"pooroutcomeOutline",data:''},{name:"positiveOutline",data:''},{name:"predictiveOutline",data:''},{name:"predisposingOutline",data:''},{name:"predispositionOutline",data:''},{name:"prognosticOutline",data:''},{name:"protectivenessOutline",data:''},{name:"raregermlineOutline",data:''},{name:"rating1Outline",data:''},{name:"rating2Outline",data:''},{name:"rating3Outline",data:''},{name:"rating4Outline",data:''},{name:"rating5Outline",data:''},{name:"reducedsensitivityOutline",data:''},{name:"resistanceOutline",data:''},{name:"revisionOutline",data:''},{name:"revisionTwotone",data:''},{name:"sensitivityresponseOutline",data:''},{name:"sequentialOutline",data:''},{name:"somaticOutline",data:''},{name:"sourceOutline",data:''},{name:"sourceTwotone",data:''},{name:"substitutesOutline",data:''},{name:"supportsOutline",data:''},{name:"unalteredfunctionOutline",data:''},{name:"uncertainsignificanceOutline",data:''},{name:"unknownOutline",data:''},{name:"userOutline",data:''},{name:"userTwotone",data:''},{name:"variantOutline",data:''},{name:"variantTwotone",data:''},{name:"variantgroupOutline",data:''},{name:"variantgroupTwotone",data:''},{name:"varianttypeOutline",data:''},{name:"varianttypeTwotone",data:''}]);function _1(T){return"civic-"+function U1(T){return T.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}(T.replace(/Outline|Fill|TwoTone/i,""))}function Ul(T){return T.includes("Twotone")?"twotone":T.includes("Outline")?"outline":T.includes("Fill")?"fill":"outline"}var y1=c(776),Bs=c(1377),nc=c(1188);const Gl=[{path:"",loadChildren:()=>c.e(4178).then(c.bind(c,4178)).then(T=>T.LayoutModule)}],Yl={paramsInheritanceStrategy:"always",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"};let Eu=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T});static#n=this.\u0275inj=r.G2t({imports:[nc.iI.forRoot(Gl,Yl),nc.iI]})}return T})();var qs=c(5312),ji=c(5103),Wl=c(4222),Kl=c(2096),C1=c(3801),ld=c(3617),b1=c(513),ud=c(6389),dd=c(5930),E1=c(1774);const ic=T=>({error:T});function hd(T,d){if(1&T&&r.EFF(0),2&T){const p=r.XpG().ngIf;r.Lme(" ",p.name," ",p.message," ")}}function pd(T,d){1&T&&r.eu8(0)}function fd(T,d){if(1&T&&r.DNE(0,pd,1,0,"ng-container",8),2&T){const p=r.XpG().ngIf,v=r.sdS(7);r.Y8G("ngTemplateOutlet",v)("ngTemplateOutletContext",r.eq3(2,ic,p))}}function md(T,d){if(1&T){const p=r.RV6();r.j41(0,"button",10),r.bIt("click",function(){r.eBV(p);const C=r.XpG().error;r.XpG();const O=r.sdS(9),Q=r.sdS(11),Me=r.XpG();return r.Njj(Me.showModal("Backtrace for '"+C.message+"'",C.backtrace,Q,O))}),r.EFF(1," View Backtrace "),r.k0s()}}function gd(T,d){if(1&T&&(r.EFF(0),r.DNE(1,md,2,0,"button",9)),2&T){const p=d.error;r.SpI(" ",p.message," "),r.R7$(),r.Y8G("ngIf",p.backtrace.length>0)}}function Dn(T,d){if(1&T&&(r.j41(0,"pre",11),r.EFF(1),r.k0s()),2&T){const p=d.$implicit;r.R7$(),r.JRh(p.backtrace)}}function oo(T,d){if(1&T){const p=r.RV6();r.j41(0,"button",12),r.bIt("click",function(){r.eBV(p);const C=r.XpG(2);return r.Njj(C.copyToClipboard())}),r.EFF(1," Copy to Clipboard "),r.k0s(),r.j41(2,"button",13),r.bIt("click",function(){const C=r.eBV(p).modalRef,O=r.XpG(2);return r.Njj(O.hideModal(C))}),r.EFF(3," OK "),r.k0s()}}function T1(T,d){if(1&T){const p=r.RV6();r.j41(0,"div",6)(1,"nz-alert",7),r.bIt("nzOnClose",function(){r.eBV(p);const C=r.XpG();return r.Njj(C.onClose())}),r.k0s(),r.DNE(2,hd,1,2,"ng-template",null,0,r.C5r)(4,fd,1,4,"ng-template",null,1,r.C5r)(6,gd,2,2,"ng-template",null,2,r.C5r)(8,Dn,2,1,"ng-template",null,3,r.C5r)(10,oo,4,0,"ng-template",null,4,r.C5r),r.k0s()}if(2&T){const p=r.sdS(3),v=r.sdS(5);r.R7$(),r.Y8G("nzMessage",p)("nzDescription",v)}}let z1=(()=>{class T{constructor(p,v,C){this.modal=v,this.clipboard=C,this.modalVisible=!1,this.errors=p}showModal(p,v,C,O){this.modalContent=v.join("\n"),this.modal.create({nzTitle:p,nzFooter:C,nzContent:O,nzWidth:800,nzBodyStyle:{"max-height":"500px",overflow:"hidden","overflow-y":"scroll"},nzClosable:!0,nzOkDisabled:!0,nzCancelDisabled:!0,nzData:{backtrace:this.modalContent}})}hideModal(p){p.destroy()}onClose(){this.errors.clearErrors()}copyToClipboard(){this.clipboard.copy(this.modalContent)}static#e=this.\u0275fac=function(v){return new(v||T)(r.rXU(Wl.N),r.rXU(Kl.N_),r.rXU(C1.B0))};static#t=this.\u0275cmp=r.VBU({type:T,selectors:[["cvc-network-error-alert"]],decls:2,vars:3,consts:[["alertMessage",""],["alertDescription",""],["errorDisplay",""],["modalContent",""],["modalFooter",""],["class","alert-container",4,"ngIf"],[1,"alert-container"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage","nzDescription"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzSize","small","nzType","link",3,"click",4,"ngIf"],["nz-button","","nzSize","small","nzType","link",3,"click"],[2,"white-space","pre-wrap","font-size","80%"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(v,C){1&v&&(r.DNE(0,T1,12,2,"div",5),r.nI1(1,"ngrxPush")),2&v&&r.Y8G("ngIf",r.bMT(1,1,C.errors.networkError$))},dependencies:[Ve.bT,Ve.T3,ld.Y,b1.aO,ud.c,dd.p,E1.L9],styles:["[_nghost-%COMP%]{display:block}.alert-container[_ngcontent-%COMP%]{display:block;width:100%;padding:12px 24px}[_nghost-%COMP%] nz-alert .ant-alert-banner{border-radius:8px;border:2px solid #cf1322}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"],changeDetection:0})}return T})(),wo=(()=>{class T{constructor(p,v){this.iconService=p,this.router=v,this.addIcons(cd),qs.c.production&&this.router.events.subscribe(C=>{C instanceof nc.wF&>ag("config","UA-60119642-1",{page_path:C.urlAfterRedirects})})}addIcons(p){p.forEach(v=>{const O="civic:"+v.name.replace(/Fullcolor/i,"");this.iconService.addIconLiteral(O,v.data)})}static#e=this.\u0275fac=function(v){return new(v||T)(r.rXU(ji.Rt),r.rXU(nc.Ix))};static#t=this.\u0275cmp=r.VBU({type:T,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"alert-container"],[1,"app-container"]],template:function(v,C){1&v&&(r.j41(0,"div",0),r.nrm(1,"cvc-network-error-alert"),r.k0s(),r.j41(2,"div",1),r.nrm(3,"router-outlet"),r.k0s())},dependencies:[nc.n3,z1],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.alert-container[_ngcontent-%COMP%]{position:absolute;z-index:100;width:100%}.app-container[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;z-index:0;overflow-y:auto}"]})}return T})();var ll=c(8008),ri=c(4626),$o=c(1404),oc=c(2081),Ac=c(9860),ul=c(6108),Tu=c(2151),Xl=c(7994),ra=c(1115),M1=c(9055),zu=c(8782),qr=c(9471),sa=function(){function T(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,oc.LV)(ul.ct,{max:Tu.v["cache.fragmentQueryDocuments"]||1e3,cache:M1.l})}return T.prototype.batch=function(d){var C,p=this;return this.performTransaction(function(){return C=d.update(p)},"string"==typeof d.optimistic?d.optimistic:!1===d.optimistic?null:void 0),C},T.prototype.recordOptimisticTransaction=function(d,p){this.performTransaction(d,p)},T.prototype.transformDocument=function(d){return d},T.prototype.transformForLink=function(d){return d},T.prototype.identify=function(d){},T.prototype.gc=function(){return[]},T.prototype.modify=function(d){return!1},T.prototype.readQuery=function(d,p){return void 0===p&&(p=!!d.optimistic),this.read((0,ri.Cl)((0,ri.Cl)({},d),{rootId:d.id||"ROOT_QUERY",optimistic:p}))},T.prototype.watchFragment=function(d){var Dt,p=this,v=d.fragment,C=d.fragmentName,O=d.from,Q=d.optimistic,Me=void 0===Q||Q,xe=(0,ri.Tt)(d,["fragment","fragmentName","from","optimistic"]),ot=this.getFragmentDoc(v,C),yt=(0,ri.Cl)((0,ri.Cl)({},xe),{returnPartialData:!0,id:"string"==typeof O?O:this.identify(O),query:ot,optimistic:Me});return new Xl.c(function(Bt){return p.watch((0,ri.Cl)((0,ri.Cl)({},yt),{immediate:!0,callback:function(Ht){if(!Dt||!(0,qr.a)(ot,{data:Dt?.result},{data:Ht.result})){var Xt={data:Ht.result,complete:!!Ht.complete};Ht.missing&&(Xt.missing=(0,ra.IM)(Ht.missing.map(function(Zt){return Zt.missing}))),Dt=Ht,Bt.next(Xt)}}}))})},T.prototype.readFragment=function(d,p){return void 0===p&&(p=!!d.optimistic),this.read((0,ri.Cl)((0,ri.Cl)({},d),{query:this.getFragmentDoc(d.fragment,d.fragmentName),rootId:d.id,optimistic:p}))},T.prototype.writeQuery=function(d){var p=d.id,v=d.data,C=(0,ri.Tt)(d,["id","data"]);return this.write(Object.assign(C,{dataId:p||"ROOT_QUERY",result:v}))},T.prototype.writeFragment=function(d){var p=d.id,v=d.data,C=d.fragment,O=d.fragmentName,Q=(0,ri.Tt)(d,["id","data","fragment","fragmentName"]);return this.write(Object.assign(Q,{query:this.getFragmentDoc(C,O),dataId:p,result:v}))},T.prototype.updateQuery=function(d,p){return this.batch({update:function(v){var C=v.readQuery(d),O=p(C);return null==O?C:(v.writeQuery((0,ri.Cl)((0,ri.Cl)({},d),{data:O})),O)}})},T.prototype.updateFragment=function(d,p){return this.batch({update:function(v){var C=v.readFragment(d),O=p(C);return null==O?C:(v.writeFragment((0,ri.Cl)((0,ri.Cl)({},d),{data:O})),O)}})},T}();!1!==globalThis.__DEV__&&(sa.prototype.getMemoryInternals=zu.tQ);var Mu=function(T){function d(p,v,C,O){var Q,Me=T.call(this,p)||this;if(Me.message=p,Me.path=v,Me.query=C,Me.variables=O,Array.isArray(Me.path)){Me.missing=Me.message;for(var xe=Me.path.length-1;xe>=0;--xe)Me.missing=((Q={})[Me.path[xe]]=Me.missing,Q)}else Me.missing=Me.path;return Me.__proto__=d.prototype,Me}return(0,ri.C6)(d,T),d}(Error),ea=c(8926),ta=c(1601),dl=c(2130),S1=c(1658),Li=c(1367),D1=c(1955),rc=c(6500),Ql=c(120),xa=c(4229),Rc=c(4183),rs=c(1181);function Jl(T){return!1!==globalThis.__DEV__&&function O1(T){var d=new Set([T]);return d.forEach(function(p){(0,rs.U)(p)&&function Su(T){if(!1!==globalThis.__DEV__&&!Object.isFrozen(T))try{Object.freeze(T)}catch(d){if(d instanceof TypeError)return null;throw d}return T}(p)===p&&Object.getOwnPropertyNames(p).forEach(function(v){(0,rs.U)(p[v])&&d.add(p[v])})}),T}(T),T}var hl=c(4420),Zo=c(7715),ur=Object.prototype.hasOwnProperty;function sc(T){return null==T}function I1(T,d){var p=T.__typename,v=T.id,C=T._id;if("string"==typeof p&&(d&&(d.keyObject=sc(v)?sc(C)?void 0:{_id:C}:{id:v}),sc(v)&&!sc(C)&&(v=C),!sc(v)))return"".concat(p,":").concat("number"==typeof v||"string"==typeof v?v:JSON.stringify(v))}var wr={dataIdFromObject:I1,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Vo(T){var d=T.canonizeResults;return void 0===d?wr.canonizeResults:d}var x1=/^[_a-z][_0-9a-z]*/i;function Pa(T){var d=T.match(x1);return d?d[0]:T}function Du(T,d,p){return!!(0,rs.U)(d)&&((0,Zo.c)(d)?d.every(function(v){return Du(T,v,p)}):T.selections.every(function(v){if((0,Li.dt)(v)&&(0,Rc.MS)(v,p)){var C=(0,Li.ue)(v);return ur.call(d,C)&&(!v.selectionSet||Du(v.selectionSet,d[C],p))}return!0}))}function cc(T){return(0,rs.U)(T)&&!(0,Li.A_)(T)&&!(0,Zo.c)(T)}function Nc(T,d){var p=(0,ul.JG)((0,xa.zK)(T));return{fragmentMap:p,lookupFragment:function(v){var C=p[v];return!C&&d&&(C=d.lookup(v)),C||null}}}var T,d,Es=Object.create(null),Ou=function(){return Es},pl=Object.create(null),va=function(){function T(d,p){var v=this;this.policies=d,this.group=p,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(C,O){return Jl((0,Li.A_)(C)?v.get(C.__ref,O):C&&C[O])},this.canRead=function(C){return(0,Li.A_)(C)?v.has(C.__ref):"object"==typeof C},this.toReference=function(C,O){if("string"==typeof C)return(0,Li.WU)(C);if((0,Li.A_)(C))return C;var Q=v.policies.identify(C)[0];if(Q){var Me=(0,Li.WU)(Q);return O&&v.merge(Q,C),Me}}}return T.prototype.toObject=function(){return(0,ri.Cl)({},this.data)},T.prototype.has=function(d){return void 0!==this.lookup(d,!0)},T.prototype.get=function(d,p){if(this.group.depend(d,p),ur.call(this.data,d)){var v=this.data[d];if(v&&ur.call(v,p))return v[p]}return"__typename"===p&&ur.call(this.policies.rootTypenamesById,d)?this.policies.rootTypenamesById[d]:this instanceof ut?this.parent.get(d,p):void 0},T.prototype.lookup=function(d,p){return p&&this.group.depend(d,"__exists"),ur.call(this.data,d)?this.data[d]:this instanceof ut?this.parent.lookup(d,p):this.policies.rootTypenamesById[d]?Object.create(null):void 0},T.prototype.merge=function(d,p){var C,v=this;(0,Li.A_)(d)&&(d=d.__ref),(0,Li.A_)(p)&&(p=p.__ref);var O="string"==typeof d?this.lookup(C=d):d,Q="string"==typeof p?this.lookup(C=p):p;if(Q){(0,$o.V1)("string"==typeof C,1);var Me=new ra.ZI(Zl).merge(O,Q);if(this.data[C]=Me,Me!==O&&(delete this.refs[C],this.group.caching)){var xe=Object.create(null);O||(xe.__exists=1),Object.keys(Q).forEach(function(ot){if(!O||O[ot]!==Me[ot]){xe[ot]=1;var yt=Pa(ot);yt!==ot&&!v.policies.hasKeyArgs(Me.__typename,yt)&&(xe[yt]=1),void 0===Me[ot]&&!(v instanceof ut)&&delete Me[ot]}}),xe.__typename&&!(O&&O.__typename)&&this.policies.rootTypenamesById[C]===Me.__typename&&delete xe.__typename,Object.keys(xe).forEach(function(ot){return v.group.dirty(C,ot)})}}},T.prototype.modify=function(d,p){var v=this,C=this.lookup(d);if(C){var O=Object.create(null),Q=!1,Me=!0,xe={DELETE:Es,INVALIDATE:pl,isReference:Li.A_,toReference:this.toReference,canRead:this.canRead,readField:function(ot,yt){return v.policies.readField("string"==typeof ot?{fieldName:ot,from:yt||(0,Li.WU)(d)}:ot,{store:v})}};if(Object.keys(C).forEach(function(ot){var yt=Pa(ot),Dt=C[ot];if(void 0!==Dt){var Bt="function"==typeof p?p:p[ot]||p[yt];if(Bt){var Ht=Bt===Ou?Es:Bt(Jl(Dt),(0,ri.Cl)((0,ri.Cl)({},xe),{fieldName:yt,storeFieldName:ot,storage:v.getStorage(d,ot)}));if(Ht===pl)v.group.dirty(d,ot);else if(Ht===Es&&(Ht=void 0),Ht!==Dt&&(O[ot]=Ht,Q=!0,Dt=Ht,!1!==globalThis.__DEV__)){var Xt=function(ti){if(void 0===v.lookup(ti.__ref))return!1!==globalThis.__DEV__&&$o.V1.warn(2,ti),!0};if((0,Li.A_)(Ht))Xt(Ht);else if(Array.isArray(Ht))for(var Zt=!1,vn=void 0,Mn=0,ci=Ht;Mn0){var p=--this.rootIds[d];return p||delete this.rootIds[d],p}return 0},T.prototype.getRootIdSet=function(d){return void 0===d&&(d=new Set),Object.keys(this.rootIds).forEach(d.add,d),this instanceof ut?this.parent.getRootIdSet(d):Object.keys(this.policies.rootTypenamesById).forEach(d.add,d),d},T.prototype.gc=function(){var d=this,p=this.getRootIdSet(),v=this.toObject();p.forEach(function(Q){ur.call(v,Q)&&(Object.keys(d.findChildRefIds(Q)).forEach(p.add,p),delete v[Q])});var C=Object.keys(v);if(C.length){for(var O=this;O instanceof ut;)O=O.parent;C.forEach(function(Q){return O.delete(Q)})}return C},T.prototype.findChildRefIds=function(d){if(!ur.call(this.refs,d)){var p=this.refs[d]=Object.create(null),v=this.data[d];if(!v)return p;var C=new Set([v]);C.forEach(function(O){(0,Li.A_)(O)&&(p[O.__ref]=!0),(0,rs.U)(O)&&Object.keys(O).forEach(function(Q){var Me=O[Q];(0,rs.U)(Me)&&C.add(Me)})})}return this.refs[d]},T.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},T}(),m=function(){function T(d,p){void 0===p&&(p=null),this.caching=d,this.parent=p,this.d=null,this.resetCaching()}return T.prototype.resetCaching=function(){this.d=this.caching?(0,oc.yN)():null,this.keyMaker=new hl.b(rc.et)},T.prototype.depend=function(d,p){if(this.d){this.d(ss(d,p));var v=Pa(p);v!==p&&this.d(ss(d,v)),this.parent&&this.parent.depend(d,p)}},T.prototype.dirty=function(d,p){this.d&&this.d.dirty(ss(d,p),"__exists"===p?"forget":"setDirty")},T}();function ss(T,d){return d+"#"+T}function we(T,d){lc(T)&&T.group.depend(d,"__exists")}d=function(p){function v(C){var Q=C.resultCaching,xe=C.seed,ot=p.call(this,C.policies,new m(void 0===Q||Q))||this;return ot.stump=new Vh(ot),ot.storageTrie=new hl.b(rc.et),xe&&ot.replace(xe),ot}return(0,ri.C6)(v,p),v.prototype.addLayer=function(C,O){return this.stump.addLayer(C,O)},v.prototype.removeLayer=function(){return this},v.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},v}(T=va||(va={})),T.Root=d;var ut=function(T){function d(p,v,C,O){var Q=T.call(this,v.policies,O)||this;return Q.id=p,Q.parent=v,Q.replay=C,Q.group=O,C(Q),Q}return(0,ri.C6)(d,T),d.prototype.addLayer=function(p,v){return new d(p,this,v,this.group)},d.prototype.removeLayer=function(p){var v=this,C=this.parent.removeLayer(p);return p===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(O){var Q=v.data[O],Me=C.lookup(O);Me?Q?Q!==Me&&Object.keys(Q).forEach(function(xe){(0,Ac.L)(Q[xe],Me[xe])||v.group.dirty(O,xe)}):(v.group.dirty(O,"__exists"),Object.keys(Me).forEach(function(xe){v.group.dirty(O,xe)})):v.delete(O)}),C):C===this.parent?this:C.addLayer(this.id,this.replay)},d.prototype.toObject=function(){return(0,ri.Cl)((0,ri.Cl)({},this.parent.toObject()),this.data)},d.prototype.findChildRefIds=function(p){var v=this.parent.findChildRefIds(p);return ur.call(this.data,p)?(0,ri.Cl)((0,ri.Cl)({},v),T.prototype.findChildRefIds.call(this,p)):v},d.prototype.getStorage=function(){for(var p=this.parent;p.parent;)p=p.parent;return p.getStorage.apply(p,arguments)},d}(va),Vh=function(T){function d(p){return T.call(this,"EntityStore.Stump",p,function(){},new m(p.group.caching,p.group))||this}return(0,ri.C6)(d,T),d.prototype.removeLayer=function(){return this},d.prototype.merge=function(p,v){return this.parent.merge(p,v)},d}(ut);function Zl(T,d,p){var v=T[p],C=d[p];return(0,Ac.L)(v,C)?v:C}function lc(T){return!!(T instanceof va&&T.group.caching)}var Iu=function(){function T(){this.known=new(rc.En?WeakSet:Set),this.pool=new hl.b(rc.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return T.prototype.isKnown=function(d){return(0,rs.U)(d)&&this.known.has(d)},T.prototype.pass=function(d){if((0,rs.U)(d)){var p=function Lh(T){return(0,rs.U)(T)?(0,Zo.c)(T)?T.slice(0):(0,ri.Cl)({__proto__:Object.getPrototypeOf(T)},T):T}(d);return this.passes.set(p,d),p}return d},T.prototype.admit=function(d){var p=this;if((0,rs.U)(d)){var v=this.passes.get(d);if(v)return v;switch(Object.getPrototypeOf(d)){case Array.prototype:if(this.known.has(d))return d;var O=d.map(this.admit,this);return(Q=this.pool.lookupArray(O)).array||(this.known.add(Q.array=O),!1!==globalThis.__DEV__&&Object.freeze(O)),Q.array;case null:case Object.prototype:if(this.known.has(d))return d;var Me=Object.getPrototypeOf(d),xe=[Me],ot=this.sortedKeys(d);xe.push(ot.json);var Q,yt=xe.length;if(ot.sorted.forEach(function(Ht){xe.push(p.admit(d[Ht]))}),!(Q=this.pool.lookupArray(xe)).object){var Dt=Q.object=Object.create(Me);this.known.add(Dt),ot.sorted.forEach(function(Ht,Xt){Dt[Ht]=xe[yt+Xt]}),!1!==globalThis.__DEV__&&Object.freeze(Dt)}return Q.object}}return d},T.prototype.sortedKeys=function(d){var p=Object.keys(d),v=this.pool.lookupArray(p);if(!v.keys){p.sort();var C=JSON.stringify(p);(v.keys=this.keysByJSON.get(C))||this.keysByJSON.set(C,v.keys={sorted:p,json:C})}return v.keys},T}();function vd(T){return[T.selectionSet,T.objectOrReference,T.context,T.context.canonizeResults]}var Bh=function(){function T(d){var p=this;this.knownResults=new(rc.et?WeakMap:Map),this.config=(0,Ql.o)(d,{addTypename:!1!==d.addTypename,canonizeResults:Vo(d)}),this.canon=d.canon||new Iu,this.executeSelectionSet=(0,oc.LV)(function(v){var C,O=v.context.canonizeResults,Q=vd(v);Q[3]=!O;var Me=(C=p.executeSelectionSet).peek.apply(C,Q);return Me?O?(0,ri.Cl)((0,ri.Cl)({},Me),{result:p.canon.admit(Me.result)}):Me:(we(v.context.store,v.enclosingRef.__ref),p.execSelectionSetImpl(v))},{max:this.config.resultCacheMaxSize||Tu.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:vd,makeCacheKey:function(v,C,O,Q){if(lc(O.store))return O.store.makeCacheKey(v,(0,Li.A_)(C)?C.__ref:C,O.varString,Q)}}),this.executeSubSelectedArray=(0,oc.LV)(function(v){return we(v.context.store,v.enclosingRef.__ref),p.execSubSelectedArrayImpl(v)},{max:this.config.resultCacheMaxSize||Tu.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(v){var C=v.field,O=v.array,Q=v.context;if(lc(Q.store))return Q.store.makeCacheKey(C,O,Q.varString)}})}return T.prototype.resetCanon=function(){this.canon=new Iu},T.prototype.diffQueryAgainstStore=function(d){var p=d.store,v=d.query,C=d.rootId,O=void 0===C?"ROOT_QUERY":C,Q=d.variables,Me=d.returnPartialData,xe=void 0===Me||Me,ot=d.canonizeResults,yt=void 0===ot?this.config.canonizeResults:ot,Dt=this.config.cache.policies;Q=(0,ri.Cl)((0,ri.Cl)({},(0,xa.wY)((0,xa.AT)(v))),Q);var Xt,Bt=(0,Li.WU)(O),Ht=this.executeSelectionSet({selectionSet:(0,xa.Vn)(v).selectionSet,objectOrReference:Bt,enclosingRef:Bt,context:(0,ri.Cl)({store:p,query:v,policies:Dt,variables:Q,varString:(0,dl.M)(Q),canonizeResults:yt},Nc(v,this.config.fragments))});if(Ht.missing&&(Xt=[new Mu($h(Ht.missing),Ht.missing,v,Q)],!xe))throw Xt[0];return{result:Ht.result,complete:!Xt,missing:Xt}},T.prototype.isFresh=function(d,p,v,C){if(lc(C.store)&&this.knownResults.get(d)===v){var O=this.executeSelectionSet.peek(v,p,C,this.canon.isKnown(d));if(O&&d===O.result)return!0}return!1},T.prototype.execSelectionSetImpl=function(d){var p=this,v=d.selectionSet,C=d.objectOrReference,O=d.enclosingRef,Q=d.context;if((0,Li.A_)(C)&&!Q.policies.rootTypenamesById[C.__ref]&&!Q.store.has(C.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(C.__ref," object")};var Bt,Me=Q.variables,xe=Q.policies,yt=Q.store.getFieldValue(C,"__typename"),Dt=[],Ht=new ra.ZI;function Xt(an,_n){var ti;return an.missing&&(Bt=Ht.merge(Bt,((ti={})[_n]=an.missing,ti))),an.result}this.config.addTypename&&"string"==typeof yt&&!xe.rootIdsByTypename[yt]&&Dt.push({__typename:yt});var Zt=new Set(v.selections);Zt.forEach(function(an){var _n,ti;if((0,Rc.MS)(an,Me))if((0,Li.dt)(an)){var Jn=xe.readField({fieldName:an.name.value,field:an,variables:Q.variables,from:C},Q),Ci=(0,Li.ue)(an);void 0===Jn?ta.XY.added(an)||(Bt=Ht.merge(Bt,((_n={})[Ci]="Can't find field '".concat(an.name.value,"' on ").concat((0,Li.A_)(C)?C.__ref+" object":"object "+JSON.stringify(C,null,2)),_n))):(0,Zo.c)(Jn)?Jn.length>0&&(Jn=Xt(p.executeSubSelectedArray({field:an,array:Jn,enclosingRef:O,context:Q}),Ci)):an.selectionSet?null!=Jn&&(Jn=Xt(p.executeSelectionSet({selectionSet:an.selectionSet,objectOrReference:Jn,enclosingRef:(0,Li.A_)(Jn)?Jn:O,context:Q}),Ci)):Q.canonizeResults&&(Jn=p.canon.pass(Jn)),void 0!==Jn&&Dt.push(((ti={})[Ci]=Jn,ti))}else{var Bi=(0,ul.HQ)(an,Q.lookupFragment);if(!Bi&&an.kind===D1.b.FRAGMENT_SPREAD)throw(0,$o.vA)(9,an.name.value);Bi&&xe.fragmentMatches(Bi,yt)&&Bi.selectionSet.selections.forEach(Zt.add,Zt)}});var Mn={result:(0,ra.IM)(Dt),missing:Bt},ci=Q.canonizeResults?this.canon.admit(Mn):Jl(Mn);return ci.result&&this.knownResults.set(ci.result,v),ci},T.prototype.execSubSelectedArrayImpl=function(d){var Me,p=this,v=d.field,C=d.array,O=d.enclosingRef,Q=d.context,xe=new ra.ZI;function ot(yt,Dt){var Bt;return yt.missing&&(Me=xe.merge(Me,((Bt={})[Dt]=yt.missing,Bt))),yt.result}return v.selectionSet&&(C=C.filter(Q.store.canRead)),C=C.map(function(yt,Dt){return null===yt?null:(0,Zo.c)(yt)?ot(p.executeSubSelectedArray({field:v,array:yt,enclosingRef:O,context:Q}),Dt):v.selectionSet?ot(p.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:yt,enclosingRef:(0,Li.A_)(yt)?yt:O,context:Q}),Dt):(!1!==globalThis.__DEV__&&function x4(T,d,p){if(!d.selectionSet){var v=new Set([p]);v.forEach(function(C){(0,rs.U)(C)&&((0,$o.V1)(!(0,Li.A_)(C),10,function w1(T,d){return(0,Li.A_)(d)?T.get(d.__ref,"__typename"):d&&d.__typename}(T,C),d.name.value),Object.values(C).forEach(v.add,v))})}}(Q.store,v,yt),yt)}),{result:Q.canonizeResults?this.canon.admit(C):C,missing:Me}},T}();function $h(T){try{JSON.stringify(T,function(d,p){if("string"==typeof p)throw p;return p})}catch(d){return d}}var Z2=c(4246),_d=c(1687),aa=c(4141),fl=Object.create(null);function kc(T){var d=JSON.stringify(T);return fl[d]||(fl[d]=Object.create(null))}function nh(T){var d=kc(T);return d.keyFieldsFn||(d.keyFieldsFn=function(p,v){var C=function(Q,Me){return v.readField(Me,Q)},O=v.keyObject=yd(T,function(Q){var Me=xu(v.storeObject,Q,C);return void 0===Me&&p!==v.storeObject&&ur.call(p,Q[0])&&(Me=xu(p,Q,wu)),(0,$o.V1)(void 0!==Me,4,Q.join("."),p),Me});return"".concat(v.typename,":").concat(JSON.stringify(O))})}function Vc(T){var d=kc(T);return d.keyArgsFn||(d.keyArgsFn=function(p,v){var C=v.field,O=v.variables,Q=v.fieldName,Me=yd(T,function(ot){var yt=ot[0],Dt=yt.charAt(0);if("@"!==Dt)if("$"!==Dt){if(p)return xu(p,ot)}else{var Zt=yt.slice(1);if(O&&ur.call(O,Zt)){var vn=ot.slice(0);return vn[0]=Zt,xu(O,vn)}}else if(C&&(0,Zo.E)(C.directives)){var Bt=yt.slice(1),Ht=C.directives.find(function(Mn){return Mn.name.value===Bt}),Xt=Ht&&(0,Li.MB)(Ht,O);return Xt&&xu(Xt,ot.slice(1))}}),xe=JSON.stringify(Me);return(p||"{}"!==xe)&&(Q+=":"+xe),Q})}function yd(T,d){var p=new ra.ZI;return F1(T).reduce(function(v,C){var O,Q=d(C);if(void 0!==Q){for(var Me=C.length-1;Me>=0;--Me)(O={})[C[Me]]=Q,Q=O;v=p.merge(v,Q)}return v},Object.create(null))}function F1(T){var d=kc(T);if(!d.paths){var p=d.paths=[],v=[];T.forEach(function(C,O){(0,Zo.c)(C)?(F1(C).forEach(function(Q){return p.push(v.concat(Q))}),v.length=0):(v.push(C),(0,Zo.c)(T[O+1])||(p.push(v.slice(0)),v.length=0))})}return d.paths}function wu(T,d){return T[d]}function xu(T,d,p){return p=p||wu,Cd(d.reduce(function v(C,O){return(0,Zo.c)(C)?C.map(function(Q){return v(Q,O)}):C&&p(C,O)},T))}function Cd(T){return(0,rs.U)(T)?(0,Zo.c)(T)?T.map(Cd):yd(Object.keys(T).sort(),function(d){return xu(T,d)}):T}function A1(T){return void 0!==T.args?T.args:T.field?(0,Li.MB)(T.field,T.variables):null}var ih=function(){},_a=function(T,d){return d.fieldName},bd=function(T,d,p){return(0,p.mergeObjects)(T,d)},Pu=function(T,d){return d},Ed=function(){function T(d){this.config=d,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,ri.Cl)({dataIdFromObject:I1},d),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),d.possibleTypes&&this.addPossibleTypes(d.possibleTypes),d.typePolicies&&this.addTypePolicies(d.typePolicies)}return T.prototype.identify=function(d,p){var v,C=this,O=p&&(p.typename||(null===(v=p.storeObject)||void 0===v?void 0:v.__typename))||d.__typename;if(O===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var xe,Q=p&&p.storeObject||d,Me=(0,ri.Cl)((0,ri.Cl)({},p),{typename:O,storeObject:Q,readField:p&&p.readField||function(){var Bt=ql(arguments,Q);return C.readField(Bt,{store:C.cache.data,variables:Bt.variables})}}),ot=O&&this.getTypePolicy(O),yt=ot&&ot.keyFn||this.config.dataIdFromObject;yt;){var Dt=yt((0,ri.Cl)((0,ri.Cl)({},d),Q),Me);if(!(0,Zo.c)(Dt)){xe=Dt;break}yt=nh(Dt)}return xe=xe?String(xe):void 0,Me.keyObject?[xe,Me.keyObject]:[xe]},T.prototype.addTypePolicies=function(d){var p=this;Object.keys(d).forEach(function(v){var C=d[v],O=C.queryType,Q=C.mutationType,Me=C.subscriptionType,xe=(0,ri.Tt)(C,["queryType","mutationType","subscriptionType"]);O&&p.setRootTypename("Query",v),Q&&p.setRootTypename("Mutation",v),Me&&p.setRootTypename("Subscription",v),ur.call(p.toBeAdded,v)?p.toBeAdded[v].push(xe):p.toBeAdded[v]=[xe]})},T.prototype.updateTypePolicy=function(d,p){var v=this,C=this.getTypePolicy(d),O=p.keyFields,Q=p.fields;function Me(xe,ot){xe.merge="function"==typeof ot?ot:!0===ot?bd:!1===ot?Pu:xe.merge}Me(C,p.merge),C.keyFn=!1===O?ih:(0,Zo.c)(O)?nh(O):"function"==typeof O?O:C.keyFn,Q&&Object.keys(Q).forEach(function(xe){var ot=v.getFieldPolicy(d,xe,!0),yt=Q[xe];if("function"==typeof yt)ot.read=yt;else{var Dt=yt.keyArgs,Bt=yt.read,Ht=yt.merge;ot.keyFn=!1===Dt?_a:(0,Zo.c)(Dt)?Vc(Dt):"function"==typeof Dt?Dt:ot.keyFn,"function"==typeof Bt&&(ot.read=Bt),Me(ot,Ht)}ot.read&&ot.merge&&(ot.keyFn=ot.keyFn||_a)})},T.prototype.setRootTypename=function(d,p){void 0===p&&(p=d);var v="ROOT_"+d.toUpperCase(),C=this.rootTypenamesById[v];p!==C&&((0,$o.V1)(!C||C===d,5,d),C&&delete this.rootIdsByTypename[C],this.rootIdsByTypename[p]=v,this.rootTypenamesById[v]=p)},T.prototype.addPossibleTypes=function(d){var p=this;this.usingPossibleTypes=!0,Object.keys(d).forEach(function(v){p.getSupertypeSet(v,!0),d[v].forEach(function(C){p.getSupertypeSet(C,!0).add(v);var O=C.match(x1);(!O||O[0]!==C)&&p.fuzzySubtypes.set(C,new RegExp(C))})})},T.prototype.getTypePolicy=function(d){var p=this;if(!ur.call(this.typePolicies,d)){var v=this.typePolicies[d]=Object.create(null);v.fields=Object.create(null);var C=this.supertypeMap.get(d);!C&&this.fuzzySubtypes.size&&(C=this.getSupertypeSet(d,!0),this.fuzzySubtypes.forEach(function(Q,Me){if(Q.test(d)){var xe=p.supertypeMap.get(Me);xe&&xe.forEach(function(ot){return C.add(ot)})}})),C&&C.size&&C.forEach(function(Q){var Me=p.getTypePolicy(Q),xe=Me.fields,ot=(0,ri.Tt)(Me,["fields"]);Object.assign(v,ot),Object.assign(v.fields,xe)})}var O=this.toBeAdded[d];return O&&O.length&&O.splice(0).forEach(function(Q){p.updateTypePolicy(d,Q)}),this.typePolicies[d]},T.prototype.getFieldPolicy=function(d,p,v){if(d){var C=this.getTypePolicy(d).fields;return C[p]||v&&(C[p]=Object.create(null))}},T.prototype.getSupertypeSet=function(d,p){var v=this.supertypeMap.get(d);return!v&&p&&this.supertypeMap.set(d,v=new Set),v},T.prototype.fragmentMatches=function(d,p,v,C){var O=this;if(!d.typeCondition)return!0;if(!p)return!1;var Q=d.typeCondition.name.value;if(p===Q)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(Q))for(var Me=this.getSupertypeSet(p,!0),xe=[Me],ot=function(Xt){var Zt=O.getSupertypeSet(Xt,!1);Zt&&Zt.size&&xe.indexOf(Zt)<0&&xe.push(Zt)},yt=!(!v||!this.fuzzySubtypes.size),Dt=!1,Bt=0;Bt1?T[1]:d}:(Q=(0,ri.Cl)({},v),ur.call(Q,"from")||(Q.from=d)),!1!==globalThis.__DEV__&&void 0===Q.from&&!1!==globalThis.__DEV__&&$o.V1.warn(7,(0,_d.p)(Array.from(T))),void 0===Q.variables&&(Q.variables=p),Q}function R1(T){return function(p,v){if((0,Zo.c)(p)||(0,Zo.c)(v))throw(0,$o.vA)(8);if((0,rs.U)(p)&&(0,rs.U)(v)){var C=T.getFieldValue(p,"__typename"),O=T.getFieldValue(v,"__typename");if(C&&O&&C!==O)return v;if((0,Li.A_)(p)&&cc(v))return T.merge(p.__ref,v),p;if(cc(p)&&(0,Li.A_)(v))return T.merge(p,v.__ref),v;if(cc(p)&&cc(v))return(0,ri.Cl)((0,ri.Cl)({},p),v)}return v}}function zd(T,d,p){var v="".concat(d).concat(p),C=T.flavors.get(v);return C||T.flavors.set(v,C=T.clientOnly===d&&T.deferred===p?T:(0,ri.Cl)((0,ri.Cl)({},T),{clientOnly:d,deferred:p})),C}var oh=function(){function T(d,p,v){this.cache=d,this.reader=p,this.fragments=v}return T.prototype.writeToStore=function(d,p){var v=this,C=p.query,O=p.result,Q=p.dataId,Me=p.variables,xe=p.overwrite,ot=(0,xa.Vu)(C),yt=function P1(){return new ra.ZI}();Me=(0,ri.Cl)((0,ri.Cl)({},(0,xa.wY)(ot)),Me);var Dt=(0,ri.Cl)((0,ri.Cl)({store:d,written:Object.create(null),merge:function(Ht,Xt){return yt.merge(Ht,Xt)},variables:Me,varString:(0,dl.M)(Me)},Nc(C,this.fragments)),{overwrite:!!xe,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),Bt=this.processSelectionSet({result:O||Object.create(null),dataId:Q,selectionSet:ot.selectionSet,mergeTree:{map:new Map},context:Dt});if(!(0,Li.A_)(Bt))throw(0,$o.vA)(11,O);return Dt.incomingById.forEach(function(Ht,Xt){var Zt=Ht.storeObject,vn=Ht.mergeTree,Mn=Ht.fieldNodeSet,ci=(0,Li.WU)(Xt);if(vn&&vn.map.size){var an=v.applyMerges(vn,ci,Zt,Dt);if((0,Li.A_)(an))return;Zt=an}if(!1!==globalThis.__DEV__&&!Dt.overwrite){var _n=Object.create(null);Mn.forEach(function(Ci){Ci.selectionSet&&(_n[Ci.name.value]=!0)}),Object.keys(Zt).forEach(function(Ci){(function(Ci){return!0===_n[Pa(Ci)]})(Ci)&&!function(Ci){var Bi=vn&&vn.map.get(Ci);return!!(Bi&&Bi.info&&Bi.info.merge)}(Ci)&&function Dd(T,d,p,v){var C=function(Dt){var Bt=v.getFieldValue(Dt,p);return"object"==typeof Bt&&Bt},O=C(T);if(O){var Q=C(d);if(Q&&!(0,Li.A_)(O)&&!(0,Ac.L)(O,Q)&&!Object.keys(O).every(function(Dt){return void 0!==v.getFieldValue(Q,Dt)})){var Me=v.getFieldValue(T,"__typename")||v.getFieldValue(d,"__typename"),xe=Pa(p),ot="".concat(Me,".").concat(xe);if(!uc.has(ot)){uc.add(ot);var yt=[];!(0,Zo.c)(O)&&!(0,Zo.c)(Q)&&[O,Q].forEach(function(Dt){var Bt=v.getFieldValue(Dt,"__typename");"string"==typeof Bt&&!yt.includes(Bt)&&yt.push(Bt)}),!1!==globalThis.__DEV__&&$o.V1.warn(14,xe,Me,yt.length?"either ensure all objects of type "+yt.join(" and ")+" have an ID or a custom merge function, or ":"",ot,(0,ri.Cl)({},O),(0,ri.Cl)({},Q))}}}}(ci,Zt,Ci,Dt.store)})}d.merge(Xt,Zt)}),d.retain(Bt.__ref),Bt},T.prototype.processSelectionSet=function(d){var p=this,v=d.dataId,C=d.result,O=d.selectionSet,Q=d.context,Me=d.mergeTree,xe=this.cache.policies,ot=Object.create(null),yt=v&&xe.rootTypenamesById[v]||(0,Li.D$)(C,O,Q.fragmentMap)||v&&Q.store.get(v,"__typename");"string"==typeof yt&&(ot.__typename=yt);var Dt=function(){var an=ql(arguments,ot,Q.variables);if((0,Li.A_)(an.from)){var _n=Q.incomingById.get(an.from.__ref);if(_n){var ti=xe.readField((0,ri.Cl)((0,ri.Cl)({},an),{from:_n.storeObject}),Q);if(void 0!==ti)return ti}}return xe.readField(an,Q)},Bt=new Set;this.flattenFields(O,C,Q,yt).forEach(function(an,_n){var ti,Jn=(0,Li.ue)(_n),Ci=C[Jn];if(Bt.add(_n),void 0!==Ci){var Bi=xe.getStoreFieldName({typename:yt,fieldName:_n.name.value,field:_n,variables:an.variables}),nr=Sd(Me,Bi),vr=p.processFieldValue(Ci,_n,_n.selectionSet?zd(an,!1,!1):an,nr),dc=void 0;_n.selectionSet&&((0,Li.A_)(vr)||cc(vr))&&(dc=Dt("__typename",vr));var Vr=xe.getMergeFunction(yt,_n.name.value,dc);Vr?nr.info={field:_n,typename:yt,merge:Vr}:Au(Me,Bi),ot=an.merge(ot,((ti={})[Bi]=vr,ti))}else!1!==globalThis.__DEV__&&!an.clientOnly&&!an.deferred&&!ta.XY.added(_n)&&!xe.getReadFunction(yt,_n.name.value)&&!1!==globalThis.__DEV__&&$o.V1.error(12,(0,Li.ue)(_n),C)});try{var Ht=xe.identify(C,{typename:yt,selectionSet:O,fragmentMap:Q.fragmentMap,storeObject:ot,readField:Dt}),Zt=Ht[1];v=v||Ht[0],Zt&&(ot=Q.merge(ot,Zt))}catch(an){if(!v)throw an}if("string"==typeof v){var vn=(0,Li.WU)(v),Mn=Q.written[v]||(Q.written[v]=[]);if(Mn.indexOf(O)>=0||(Mn.push(O),this.reader&&this.reader.isFresh(C,vn,O,Q)))return vn;var ci=Q.incomingById.get(v);return ci?(ci.storeObject=Q.merge(ci.storeObject,ot),ci.mergeTree=Fu(ci.mergeTree,Me),Bt.forEach(function(an){return ci.fieldNodeSet.add(an)})):Q.incomingById.set(v,{storeObject:ot,mergeTree:N1(Me)?void 0:Me,fieldNodeSet:Bt}),vn}return ot},T.prototype.processFieldValue=function(d,p,v,C){var O=this;return p.selectionSet&&null!==d?(0,Zo.c)(d)?d.map(function(Q,Me){var xe=O.processFieldValue(Q,p,v,Sd(C,Me));return Au(C,Me),xe}):this.processSelectionSet({result:d,selectionSet:p.selectionSet,context:v,mergeTree:C}):!1!==globalThis.__DEV__?(0,Z2.m)(d):d},T.prototype.flattenFields=function(d,p,v,C){void 0===C&&(C=(0,Li.D$)(p,d,v.fragmentMap));var O=new Map,Q=this.cache.policies,Me=new hl.b(!1);return function xe(ot,yt){var Dt=Me.lookup(ot,yt.clientOnly,yt.deferred);Dt.visited||(Dt.visited=!0,ot.selections.forEach(function(Bt){if((0,Rc.MS)(Bt,v.variables)){var Ht=yt.clientOnly,Xt=yt.deferred;if(!(Ht&&Xt)&&(0,Zo.E)(Bt.directives)&&Bt.directives.forEach(function(Mn){var ci=Mn.name.value;if("client"===ci&&(Ht=!0),"defer"===ci){var an=(0,Li.MB)(Mn,v.variables);(!an||!1!==an.if)&&(Xt=!0)}}),(0,Li.dt)(Bt)){var Zt=O.get(Bt);Zt&&(Ht=Ht&&Zt.clientOnly,Xt=Xt&&Zt.deferred),O.set(Bt,zd(v,Ht,Xt))}else{var vn=(0,ul.HQ)(Bt,v.lookupFragment);if(!vn&&Bt.kind===D1.b.FRAGMENT_SPREAD)throw(0,$o.vA)(13,Bt.name.value);vn&&Q.fragmentMatches(vn,C,p,v.variables)&&xe(vn.selectionSet,zd(v,Ht,Xt))}}}))}(d,v),O},T.prototype.applyMerges=function(d,p,v,C,O){var Q,Me=this;if(d.map.size&&!(0,Li.A_)(v)){var xe=(0,Zo.c)(v)||!(0,Li.A_)(p)&&!cc(p)?void 0:p,ot=v;xe&&!O&&(O=[(0,Li.A_)(xe)?xe.__ref:xe]);var yt,Dt=function(Bt,Ht){return(0,Zo.c)(Bt)?"number"==typeof Ht?Bt[Ht]:void 0:C.store.getFieldValue(Bt,String(Ht))};d.map.forEach(function(Bt,Ht){var Xt=Dt(xe,Ht),Zt=Dt(ot,Ht);if(void 0!==Zt){O&&O.push(Ht);var vn=Me.applyMerges(Bt,Xt,Zt,C,O);vn!==Zt&&(yt=yt||new Map).set(Ht,vn),O&&(0,$o.V1)(O.pop()===Ht)}}),yt&&(v=(0,Zo.c)(ot)?ot.slice(0):(0,ri.Cl)({},ot),yt.forEach(function(Bt,Ht){v[Ht]=Bt}))}return d.info?this.cache.policies.runMergeFunction(p,v,d.info,C,O&&(Q=C.store).getStorage.apply(Q,O)):v},T}(),Md=[];function Sd(T,d){var p=T.map;return p.has(d)||p.set(d,Md.pop()||{map:new Map}),p.get(d)}function Fu(T,d){if(T===d||!d||N1(d))return T;if(!T||N1(T))return d;var p=T.info&&d.info?(0,ri.Cl)((0,ri.Cl)({},T.info),d.info):T.info||d.info,v=T.map.size&&d.map.size,O={info:p,map:v?new Map:T.map.size?T.map:d.map};if(v){var Q=new Set(d.map.keys());T.map.forEach(function(Me,xe){O.map.set(xe,Fu(Me,d.map.get(xe))),Q.delete(xe)}),Q.forEach(function(Me){O.map.set(Me,Fu(d.map.get(Me),T.map.get(Me)))})}return O}function N1(T){return!T||!(T.info||T.map.size)}function Au(T,d){var p=T.map,v=p.get(d);v&&N1(v)&&(Md.push(v),p.delete(d))}var uc=new Set,Od=function(T){function d(p){void 0===p&&(p={});var v=T.call(this)||this;return v.watches=new Set,v.addTypenameTransform=new ea.c(ta.XY),v.assumeImmutableResults=!0,v.makeVar=aa.UT,v.txCount=0,v.config=function ac(T){return(0,Ql.o)(wr,T)}(p),v.addTypename=!!v.config.addTypename,v.policies=new Ed({cache:v,dataIdFromObject:v.config.dataIdFromObject,possibleTypes:v.config.possibleTypes,typePolicies:v.config.typePolicies}),v.init(),v}return(0,ri.C6)(d,T),d.prototype.init=function(){var p=this.data=new va.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=p.stump,this.resetResultCache()},d.prototype.resetResultCache=function(p){var v=this,C=this.storeReader,O=this.config.fragments;this.storeWriter=new oh(this,this.storeReader=new Bh({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Vo(this.config),canon:p?void 0:C&&C.canon,fragments:O}),O),this.maybeBroadcastWatch=(0,oc.LV)(function(Q,Me){return v.broadcastWatch(Q,Me)},{max:this.config.resultCacheMaxSize||Tu.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(Q){var Me=Q.optimistic?v.optimisticData:v.data;if(lc(Me))return Me.makeCacheKey(Q.query,Q.callback,(0,dl.M)({optimistic:Q.optimistic,id:Q.id,variables:Q.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(Q){return Q.resetCaching()})},d.prototype.restore=function(p){return this.init(),p&&this.data.replace(p),this},d.prototype.extract=function(p){return void 0===p&&(p=!1),(p?this.optimisticData:this.data).extract()},d.prototype.read=function(p){var v=p.returnPartialData,C=void 0!==v&&v;try{return this.storeReader.diffQueryAgainstStore((0,ri.Cl)((0,ri.Cl)({},p),{store:p.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:C})).result||null}catch(O){if(O instanceof Mu)return null;throw O}},d.prototype.write=function(p){try{return++this.txCount,this.storeWriter.writeToStore(this.data,p)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.modify=function(p){if(ur.call(p,"id")&&!p.id)return!1;var v=p.optimistic?this.optimisticData:this.data;try{return++this.txCount,v.modify(p.id||"ROOT_QUERY",p.fields)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.diff=function(p){return this.storeReader.diffQueryAgainstStore((0,ri.Cl)((0,ri.Cl)({},p),{store:p.optimistic?this.optimisticData:this.data,rootId:p.id||"ROOT_QUERY",config:this.config}))},d.prototype.watch=function(p){var v=this;return this.watches.size||(0,aa.MS)(this),this.watches.add(p),p.immediate&&this.maybeBroadcastWatch(p),function(){v.watches.delete(p)&&!v.watches.size&&(0,aa.WR)(v),v.maybeBroadcastWatch.forget(p)}},d.prototype.gc=function(p){var v;dl.M.reset(),S1.y.reset(),this.addTypenameTransform.resetCache(),null===(v=this.config.fragments)||void 0===v||v.resetCaches();var C=this.optimisticData.gc();return p&&!this.txCount&&(p.resetResultCache?this.resetResultCache(p.resetResultIdentities):p.resetResultIdentities&&this.storeReader.resetCanon()),C},d.prototype.retain=function(p,v){return(v?this.optimisticData:this.data).retain(p)},d.prototype.release=function(p,v){return(v?this.optimisticData:this.data).release(p)},d.prototype.identify=function(p){if((0,Li.A_)(p))return p.__ref;try{return this.policies.identify(p)[0]}catch(v){!1!==globalThis.__DEV__&&$o.V1.warn(v)}},d.prototype.evict=function(p){if(!p.id){if(ur.call(p,"id"))return!1;p=(0,ri.Cl)((0,ri.Cl)({},p),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(p,this.data)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.reset=function(p){var v=this;return this.init(),dl.M.reset(),p&&p.discardWatches?(this.watches.forEach(function(C){return v.maybeBroadcastWatch.forget(C)}),this.watches.clear(),(0,aa.WR)(this)):this.broadcastWatches(),Promise.resolve()},d.prototype.removeOptimistic=function(p){var v=this.optimisticData.removeLayer(p);v!==this.optimisticData&&(this.optimisticData=v,this.broadcastWatches())},d.prototype.batch=function(p){var ot,v=this,C=p.update,O=p.optimistic,Q=void 0===O||O,Me=p.removeOptimistic,xe=p.onWatchUpdated,yt=function(Bt){var Xt=v.data,Zt=v.optimisticData;++v.txCount,Bt&&(v.data=v.optimisticData=Bt);try{return ot=C(v)}finally{--v.txCount,v.data=Xt,v.optimisticData=Zt}},Dt=new Set;return xe&&!this.txCount&&this.broadcastWatches((0,ri.Cl)((0,ri.Cl)({},p),{onWatchUpdated:function(Bt){return Dt.add(Bt),!1}})),"string"==typeof Q?this.optimisticData=this.optimisticData.addLayer(Q,yt):!1===Q?yt(this.data):yt(),"string"==typeof Me&&(this.optimisticData=this.optimisticData.removeLayer(Me)),xe&&Dt.size?(this.broadcastWatches((0,ri.Cl)((0,ri.Cl)({},p),{onWatchUpdated:function(Bt,Ht){var Xt=xe.call(this,Bt,Ht);return!1!==Xt&&Dt.delete(Bt),Xt}})),Dt.size&&Dt.forEach(function(Bt){return v.maybeBroadcastWatch.dirty(Bt)})):this.broadcastWatches(p),ot},d.prototype.performTransaction=function(p,v){return this.batch({update:p,optimistic:v||null!==v})},d.prototype.transformDocument=function(p){return this.addTypenameToDocument(this.addFragmentsToDocument(p))},d.prototype.broadcastWatches=function(p){var v=this;this.txCount||this.watches.forEach(function(C){return v.maybeBroadcastWatch(C,p)})},d.prototype.addFragmentsToDocument=function(p){var v=this.config.fragments;return v?v.transform(p):p},d.prototype.addTypenameToDocument=function(p){return this.addTypename?this.addTypenameTransform.transformDocument(p):p},d.prototype.broadcastWatch=function(p,v){var C=p.lastDiff,O=this.diff(p);v&&(p.optimistic&&"string"==typeof v.optimistic&&(O.fromOptimisticTransaction=!0),v.onWatchUpdated&&!1===v.onWatchUpdated.call(this,p,O,C))||(!C||!(0,Ac.L)(C.result,O.result))&&p.callback(p.lastDiff=O,C)},d}(sa);!1!==globalThis.__DEV__&&(Od.prototype.getMemoryInternals=zu.cM);const eu={possibleTypes:{ActivityInterface:["AcceptRevisionsActivity","CommentActivity","CreateComplexMolecularProfileActivity","CreateFeatureActivity","CreateVariantActivity","DeleteCommentActivity","DeprecateComplexMolecularProfileActivity","DeprecateFeatureActivity","DeprecateVariantActivity","FlagEntityActivity","ModerateAssertionActivity","ModerateEvidenceItemActivity","RejectRevisionsActivity","ResolveFlagActivity","SubmitAssertionActivity","SubmitEvidenceItemActivity","SuggestRevisionSetActivity","SuggestSourceActivity","UpdateSourceSuggestionStatusActivity"],CommentBodySegment:["CommentTagSegment","CommentTagSegmentFlagged","CommentTagSegmentFlaggedAndDeprecated","CommentTagSegmentFlaggedAndWithStatus","CommentTextSegment","User"],Commentable:["Assertion","EvidenceItem","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","Source","SourcePopover","Variant","VariantGroup"],EventOriginObject:["Assertion","Comment","EvidenceItem","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","SourceSuggestion","Variant"],EventSubject:["Assertion","EvidenceItem","ExonCoordinate","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","RevisionSet","Source","SourcePopover","SourceSuggestion","Variant","VariantCoordinate","VariantGroup"],FeatureInstance:["Factor","Fusion","Gene"],Flaggable:["Assertion","BrowseFeature","EvidenceItem","Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Variant","VariantGroup"],ModeratedField:["ObjectField","ScalarField"],ModeratedFieldDiff:["ObjectFieldDiff","ScalarFieldDiff"],MolecularProfileComponent:["Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","Variant"],MolecularProfileSegment:["Feature","MolecularProfileTextSegment","Variant"],VariantInterface:["FactorVariant","FusionVariant","GeneVariant","Variant"],WithRevisions:["Assertion","EvidenceItem","Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Variant","VariantGroup"]}};var Lc=c(1661),xr=c(3246),Hh=function(){function T(d){var p=d.batchDebounce,v=d.batchInterval,C=d.batchMax,O=d.batchHandler,Q=d.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=p,this.batchInterval=v,this.batchMax=C||0,this.batchHandler=O,this.batchKey=Q||function(){return""}}return T.prototype.enqueueRequest=function(d){var p=this,v=(0,ri.Cl)((0,ri.Cl)({},d),{next:[],error:[],complete:[],subscribers:new Set}),C=this.batchKey(d.operation);return v.observable||(v.observable=new Xl.c(function(O){var Q=p.batchesByKey.get(C);Q||p.batchesByKey.set(C,Q=new Set);var Me=0===Q.size,xe=0===v.subscribers.size;return v.subscribers.add(O),xe&&Q.add(v),O.next&&v.next.push(O.next.bind(O)),O.error&&v.error.push(O.error.bind(O)),O.complete&&v.complete.push(O.complete.bind(O)),(Me||p.batchDebounce)&&p.scheduleQueueConsumption(C),Q.size===p.batchMax&&p.consumeQueue(C),function(){var ot;v.subscribers.delete(O)&&v.subscribers.size<1&&Q.delete(v)&&Q.size<1&&(p.consumeQueue(C),null===(ot=Q.subscription)||void 0===ot||ot.unsubscribe())}})),v.observable},T.prototype.consumeQueue=function(d){void 0===d&&(d="");var p=this.batchesByKey.get(d);if(this.batchesByKey.delete(d),p&&p.size){var v=[],C=[],O=[],Q=[],Me=[],xe=[];p.forEach(function(Dt){v.push(Dt.operation),C.push(Dt.forward),O.push(Dt.observable),Q.push(Dt.next),Me.push(Dt.error),xe.push(Dt.complete)});var ot=this.batchHandler(v,C)||Xl.c.of(),yt=function(Dt){Me.forEach(function(Bt){Bt&&Bt.forEach(function(Ht){return Ht(Dt)})})};return p.subscription=ot.subscribe({next:function(Dt){if(Array.isArray(Dt)||(Dt=[Dt]),Q.length!==Dt.length){var Bt=new Error("server returned results with length ".concat(Dt.length,", expected length of ").concat(Q.length));return Bt.result=Dt,yt(Bt)}Dt.forEach(function(Ht,Xt){Q[Xt]&&Q[Xt].forEach(function(Zt){return Zt(Ht)})})},error:yt,complete:function(){xe.forEach(function(Dt){Dt&&Dt.forEach(function(Bt){return Bt()})})}}),O}},T.prototype.scheduleQueueConsumption=function(d){var p=this;clearTimeout(this.scheduledBatchTimerByKey.get(d)),this.scheduledBatchTimerByKey.set(d,setTimeout(function(){p.consumeQueue(d),p.scheduledBatchTimerByKey.delete(d)},this.batchInterval))},T}();!function(T){function d(p){var v=T.call(this)||this,C=p||{},Q=C.batchInterval,xe=C.batchMax,yt=C.batchHandler,Bt=C.batchKey;return v.batcher=new Hh({batchDebounce:C.batchDebounce,batchInterval:void 0===Q?10:Q,batchMax:void 0===xe?0:xe,batchHandler:void 0===yt?function(){return null}:yt,batchKey:void 0===Bt?function(){return""}:Bt}),p.batchHandler.length<=1&&(v.request=function(Xt){return v.batcher.enqueueRequest({operation:Xt})}),v}(0,ri.C6)(d,T),d.prototype.request=function(p,v){return this.batcher.enqueueRequest({operation:p,forward:v})}}(ll.C);const ku={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Fa(T,d,p){return function tu(...T){return T.find(d=>typeof d<"u")}(T[p],d[p],ku[p])}class ah extends ll.C{httpClient;options;requester;print=xr.y;constructor(d,p){super(),this.httpClient=d,this.options=p,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=v=>new Xl.c(C=>{const O=v.getContext();let Q=Fa(O,this.options,"method");const Me=Fa(O,this.options,"includeQuery"),xe=Fa(O,this.options,"includeExtensions"),ot=Fa(O,this.options,"uri"),yt=Fa(O,this.options,"withCredentials"),Dt=Fa(O,this.options,"useMultipart"),Bt=!0===this.options.useGETForQueries,Ht=v.query.definitions.some(Mn=>"OperationDefinition"===Mn.kind&&"query"===Mn.operation);Bt&&Ht&&(Q="GET");const Xt={method:Q,url:"function"==typeof ot?ot(v):ot,body:{operationName:v.operationName,variables:v.variables},options:{withCredentials:yt,useMultipart:Dt,headers:this.options.headers}};xe&&(Xt.body.extensions=v.extensions),Me&&(Xt.body.query=this.print(v.query));const Zt=function Nu(T){let d=T.headers&&T.headers instanceof tn.Lr?T.headers:new tn.Lr(T.headers);if(T.clientAwareness){const{name:p,version:v}=T.clientAwareness;p&&!d.has("apollographql-client-name")&&(d=d.set("apollographql-client-name",p)),v&&!d.has("apollographql-client-version")&&(d=d.set("apollographql-client-version",v))}return d}(O);Xt.options.headers=((T,d)=>T&&d?d.keys().reduce((v,C)=>v.set(C,d.getAll(C)),T):d||T)(Xt.options.headers,Zt);const vn=((T,d,p)=>{const v=-1!==["POST","PUT","PATCH"].indexOf(T.method.toUpperCase()),O=T.body.length;let Me,Q=T.options&&T.options.useMultipart;if(Q){if(O)return new g.c(ot=>ot.error(new Error("File upload is not available when combined with Batching")));if(!v)return new g.c(ot=>ot.error(new Error("File upload is not available when GET is used")));if(!p)return new g.c(ot=>ot.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));Me=p(T.body),Q=!!Me.files.size}let xe={};if(O){if(!v)return new g.c(ot=>ot.error(new Error("Batching is not available for GET requests")));xe={body:T.body}}else xe=v?{body:Q?Me.clone:T.body}:{params:Object.keys(T.body).reduce((Dt,Bt)=>{const Ht=T.body[Bt];return Dt[Bt]=-1!==["variables","extensions"].indexOf(Bt.toLowerCase())?JSON.stringify(Ht):Ht,Dt},{})};if(Q&&v){const ot=new FormData;ot.append("operations",JSON.stringify(xe.body));const yt={},Dt=Me.files;let Bt=0;Dt.forEach(Ht=>{yt[++Bt]=Ht}),ot.append("map",JSON.stringify(yt)),Bt=0,Dt.forEach((Ht,Xt)=>{ot.append(++Bt+"",Xt,Xt.name)}),xe.body=ot}return d.request(T.method,T.url,{observe:"response",responseType:"json",reportProgress:!1,...xe,...T.options})})(Xt,this.httpClient,this.options.extractFiles).subscribe({next:Mn=>{v.setContext({response:Mn}),C.next(Mn.body)},error:Mn=>C.error(Mn),complete:()=>C.complete()});return()=>{vn.closed||vn.unsubscribe()}})}request(d){return this.requester(d)}}let Uh=(()=>{class T{httpClient;constructor(p){this.httpClient=p}create(p){return new ah(this.httpClient,p)}static \u0275fac=function(v){return new(v||T)(r.KVO(tn.Qq))};static \u0275prov=r.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})();function Ko(T){return void 0===T&&(T=!1),{keyArgs:T,read:function(d,p){var v=p.canRead,C=p.readField;if(!d)return d;var O=[],Q="",Me="";d.edges.forEach(function(Dt){v(C("node",Dt))&&(O.push(Dt),Dt.cursor&&(Q=Q||Dt.cursor||"",Me=Dt.cursor||Me))}),O.length>1&&Q===Me&&(Q="");var xe=d.pageInfo||{},ot=xe.startCursor,yt=xe.endCursor;return(0,ri.Cl)((0,ri.Cl)({},wd(d)),{edges:O,pageInfo:(0,ri.Cl)((0,ri.Cl)({},d.pageInfo),{startCursor:ot||Q,endCursor:yt||Me})})},merge:function(d,p,v){var C=v.args,O=v.isReference,Q=v.readField;if(d||(d={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!p)return d;var Me=p.edges?p.edges.map(function(Bi){return O(Bi=(0,ri.Cl)({},Bi))&&(Bi.cursor=Q("cursor",Bi)),Bi}):[];if(p.pageInfo){var xe=p.pageInfo,ot=xe.startCursor,yt=xe.endCursor,Dt=Me[0],Bt=Me[Me.length-1];Dt&&ot&&(Dt.cursor=ot),Bt&&yt&&(Bt.cursor=yt);var Ht=Dt&&Dt.cursor;Ht&&!ot&&(p=(0,ra.D9)(p,{pageInfo:{startCursor:Ht}}));var Xt=Bt&&Bt.cursor;Xt&&!yt&&(p=(0,ra.D9)(p,{pageInfo:{endCursor:Xt}}))}var Zt=d.edges,vn=[];if(C&&C.after)(Mn=Zt.findIndex(function(Bi){return Bi.cursor===C.after}))>=0&&(Zt=Zt.slice(0,Mn+1));else if(C&&C.before){var Mn;vn=(Mn=Zt.findIndex(function(nr){return nr.cursor===C.before}))<0?Zt:Zt.slice(Mn),Zt=[]}else p.edges&&(Zt=[]);var ci=(0,ri.fX)((0,ri.fX)((0,ri.fX)([],Zt,!0),Me,!0),vn,!0),an=(0,ri.Cl)((0,ri.Cl)({},p.pageInfo),d.pageInfo);if(p.pageInfo){var _n=p.pageInfo,ti=_n.hasPreviousPage,Jn=_n.hasNextPage,Ci=(ot=_n.startCursor,yt=_n.endCursor,(0,ri.Tt)(_n,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(an,Ci),Zt.length||(void 0!==ti&&(an.hasPreviousPage=ti),void 0!==ot&&(an.startCursor=ot)),vn.length||(void 0!==Jn&&(an.hasNextPage=Jn),void 0!==yt&&(an.endCursor=yt))}return(0,ri.Cl)((0,ri.Cl)((0,ri.Cl)({},wd(d)),wd(p)),{edges:ci,pageInfo:an})}}}var wd=function(T){return(0,ri.Tt)(T,ch)},ch=["edges","pageInfo"];const tp={Gene:{fields:{comments:Ko(),revisions:Ko(),events:Ko(),variants:Ko()}},Query:{fields:{browseFeatures:Ko(["name","featureType","therapyName","featureAlias","diseaseName","searchScope"]),browseVariants:Ko(["variantName","entrezSymbol","diseaseName","therapayName","variantTypeId","variantGroupId","variantCategory"]),browseMolecularProfiles:Ko(["variantName","entrezSymbol","diseaseName","therapyName","molecularProfileScore","molecularProfileAlias","variantId"]),browseVariantGroups:Ko(["name","geneNames","variantNames","variantId"]),browseSources:Ko(["name","year","sourceType","citationId","author","journal","clinicalTrialId","id","openAccess"]),sourceSuggestions:Ko(["sourceType","citationId","sourceId","molecularProfileName","diseaseName","comment","submitter","citation","status","submitterId"]),browseDiseases:Ko(["name","doid","geneNames","id"]),events:Ko(["subject","organizationId","originatingUserId","eventType"]),variants:Ko(["featureId","name"]),molecularProfiles:Ko(["featureId","name","evidenceStatusFilter"]),comments:Ko(["originatingUserId","subject"]),evidenceItems:Ko(["diseaseName","therapayName","id","description","evidenceLevel","evidenceDirection","significance","evidenceType","evidenceRating","variantOrigin","variantId","molecularProfileId","assertionId","organizationId","userId","phenotypeId","diseaseId","therapayId","sourceId","geneSymbol","variantName","status","clinicalTrialId"]),assertions:Ko(["diseaseName","therapayName","id","name","summary","assertionDirection","significance","assertionType","variantId","molecularProfileId","ampLevel","geneName","variantName","evidenceId","organizationId","userId","phenotypeId","diseaseId","therapayId","status"]),organizations:Ko(["name","id"]),flags:Ko(["flaggable","flaggingUserId","resolvingUserId","state"]),phenotypes:Ko(["hpoId","name","id"]),variantTypes:Ko(["soid","name","id"]),therapies:Ko(["ncitId","name","id"]),clinicalTrials:Ko(["nctId","name","id"]),notifications:Ko(["notificationReason","subscriptionId","originatingObject","eventType","originatingUserId","organizationId","includeRead"]),revisions:Ko(["subject","status","originatingUserId","fieldName","revisionsetId"]),users:Ko(["userName","orgName","userRole"])}},User:{fields:{mostRecentOrg:{read:(T,{readField:d})=>{const p=d("mostRecentOrganizationId"),v=d("organizations");if(p&&v)return v.find(C=>C.__ref===`Organization:${p}`)}}}}},dh=tp;function kr(T){let d=T.create({uri:"/api/graphql",withCredentials:!0});return{link:new ll.C((v,C)=>(v.setContext({headers:{"Civic-Client-Name":"civic-frontend"}}),C(v))).concat(d),cache:new Od({possibleTypes:eu.possibleTypes,typePolicies:dh}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"all",notifyOnNetworkStatusChange:!0}}}}let np=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T});static#n=this.\u0275inj=r.G2t({providers:[{provide:Lc.EM,useValue:{useInitialLoading:!0}},{provide:Lc.$Y,useFactory:kr,deps:[Uh]}],imports:[Lc._9]})}return T})();var Yh=c(7391);let ip=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T});static#n=this.\u0275inj=r.G2t({imports:[Ve.MD,ld.$,b1.Zw,Kl.U6,Yh.kT]})}return T})(),hh=(()=>{class T{handleError(p){qs.c.production?/Loading chunk [\d]+ failed/.test(p.message)&&confirm("There is an updated version of CiVIC available. Click OK to reload.")&&window.location.reload():console.error(p)}static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275prov=r.jDH({token:T,factory:T.\u0275fac})}return T})();var P4=c(8168);function xd(T){return()=>T.get("/api/status")}(0,Ve.EO)(Yt);let ya=(()=>{class T{static#e=this.\u0275fac=function(v){return new(v||T)};static#t=this.\u0275mod=r.$C({type:T,bootstrap:[wo]});static#n=this.\u0275inj=r.G2t({providers:[{provide:r.zcH,useClass:hh},{provide:Bs._N,useValue:Bs.Bh},{provide:r.hnV,useFactory:xd,deps:[tn.Qq],multi:!0},(0,tn.$R)((0,tn.Sx)(),(0,tn.YH)(),(0,tn.c2)({cookieName:"XSRF-TOKEN"}))],imports:[Eu,zl,t.Bb,np,y1.s,ji.Y3.forRoot(bu),P4.m,ip]})}return T})();if(qs.c.production)(0,r.SmG)();else{const T=function Gs(){return new Ur(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}();T.unplug(T.find(gi)),T.show(),T.log()}t.sG().bootstrapModule(ya).catch(T=>console.error(T))},9869:(Rt,De,c)=>{c.d(De,{J1:()=>Pe});var g=function(){return g=Object.assign||function(U){for(var ge,qe=1,rt=arguments.length;qe=U)break;ge=rt.index+rt[0].length,qe+=1}return{line:qe,column:U+1-ge}}function Be(K,U){const ge=K.locationOffset.column-1,qe="".padStart(ge)+K.body,rt=U.line-1,rn=U.line+(K.locationOffset.line-1),Zn=U.column+(1===U.line?ge:0),jn=`${K.name}:${rn}:${Zn}\n`,Gn=qe.split(/\r\n|[\n\r]/g),Ti=Gn[rt];if(Ti.length>120){const Oi=Math.floor(Zn/80),lo=Zn%80,Zi=[];for(let Bo=0;Bo["|",Bo]),["|","^".padStart(lo)],["|",Zi[Oi+1]]])}return jn+Pt([[rn-1+" |",Gn[rt-1]],[`${rn} |`,Ti],["|","^".padStart(Zn)],[`${rn+1} |`,Gn[rt+1]]])}function Pt(K){const U=K.filter(([qe,rt])=>void 0!==rt),ge=Math.max(...U.map(([qe])=>qe.length));return U.map(([qe,rt])=>qe.padStart(ge)+(rt?" "+rt:"")).join("\n")}class wt extends Error{constructor(U,...ge){var qe,rt,Ft;const{nodes:rn,source:Cn,positions:Zn,path:jn,originalError:Gn,extensions:Ti}=function vt(K){const U=K[0];return null==U||"kind"in U||"length"in U?{nodes:U,source:K[1],positions:K[2],path:K[3],originalError:K[4],extensions:K[5]}:U}(ge);super(U),this.name="GraphQLError",this.path=jn??void 0,this.originalError=Gn??void 0,this.nodes=Le(Array.isArray(rn)?rn:rn?[rn]:void 0);const Oi=Le(null===(qe=this.nodes)||void 0===qe?void 0:qe.map(Zi=>Zi.loc).filter(Zi=>null!=Zi));this.source=Cn??(null==Oi||null===(rt=Oi[0])||void 0===rt?void 0:rt.source),this.positions=Zn??Oi?.map(Zi=>Zi.start),this.locations=Zn&&Cn?Zn.map(Zi=>Y(Cn,Zi)):Oi?.map(Zi=>Y(Zi.source,Zi.start));const lo=function E(K){return"object"==typeof K&&null!==K}(Gn?.extensions)?Gn?.extensions:void 0;this.extensions=null!==(Ft=Ti??lo)&&void 0!==Ft?Ft:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=Gn&&Gn.stack?Object.defineProperty(this,"stack",{value:Gn.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,wt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let U=this.message;if(this.nodes)for(const ge of this.nodes)ge.loc&&(U+="\n\n"+Be((K=ge.loc).source,Y(K.source,K.start)));else if(this.source&&this.locations)for(const ge of this.locations)U+="\n\n"+Be(this.source,ge);var K;return U}toJSON(){const U={message:this.message};return null!=this.locations&&(U.locations=this.locations),null!=this.path&&(U.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(U.extensions=this.extensions),U}}function Le(K){return void 0===K||0===K.length?void 0:K}function st(K,U,ge){return new wt(`Syntax Error: ${ge}`,{source:K,positions:[U]})}var Ct=c(1222),It=function(K){return K.QUERY="QUERY",K.MUTATION="MUTATION",K.SUBSCRIPTION="SUBSCRIPTION",K.FIELD="FIELD",K.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",K.FRAGMENT_SPREAD="FRAGMENT_SPREAD",K.INLINE_FRAGMENT="INLINE_FRAGMENT",K.VARIABLE_DEFINITION="VARIABLE_DEFINITION",K.SCHEMA="SCHEMA",K.SCALAR="SCALAR",K.OBJECT="OBJECT",K.FIELD_DEFINITION="FIELD_DEFINITION",K.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",K.INTERFACE="INTERFACE",K.UNION="UNION",K.ENUM="ENUM",K.ENUM_VALUE="ENUM_VALUE",K.INPUT_OBJECT="INPUT_OBJECT",K.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",K}(It||{}),Tt=c(1955),en=c(5174),jt=c(3725),Vt=function(K){return K.SOF="",K.EOF="",K.BANG="!",K.DOLLAR="$",K.AMP="&",K.PAREN_L="(",K.PAREN_R=")",K.SPREAD="...",K.COLON=":",K.EQUALS="=",K.AT="@",K.BRACKET_L="[",K.BRACKET_R="]",K.BRACE_L="{",K.PIPE="|",K.BRACE_R="}",K.NAME="Name",K.INT="Int",K.FLOAT="Float",K.STRING="String",K.BLOCK_STRING="BlockString",K.COMMENT="Comment",K}(Vt||{});class fn{constructor(U){const ge=new Ct.ou(Vt.SOF,0,0,0,0);this.source=U,this.lastToken=ge,this.token=ge,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let U=this.token;if(U.kind!==Vt.EOF)do{if(U.next)U=U.next;else{const ge=Ue(this,U.end);U.next=ge,ge.prev=U,U=ge}}while(U.kind===Vt.COMMENT);return U}}function zn(K){return K>=0&&K<=55295||K>=57344&&K<=1114111}function bt(K,U){return At(K.charCodeAt(U))&&Et(K.charCodeAt(U+1))}function At(K){return K>=55296&&K<=56319}function Et(K){return K>=56320&&K<=57343}function Ot(K,U){const ge=K.source.body.codePointAt(U);if(void 0===ge)return Vt.EOF;if(ge>=32&&ge<=126){const qe=String.fromCodePoint(ge);return'"'===qe?"'\"'":`"${qe}"`}return"U+"+ge.toString(16).toUpperCase().padStart(4,"0")}function Wt(K,U,ge,qe,rt){return new Ct.ou(U,ge,qe,K.line,1+ge-K.lineStart,rt)}function Ue(K,U){const ge=K.source.body,qe=ge.length;let rt=U;for(;rt=48&&K<=57?K-48:K>=65&&K<=70?K-55:K>=97&&K<=102?K-87:-1}function cn(K,U){const ge=K.source.body;switch(ge.charCodeAt(U+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw st(K.source,U,`Invalid character escape sequence: "${ge.slice(U,U+2)}".`)}function Tn(K,U){const ge=K.source.body,qe=ge.length;let rt=K.lineStart,Ft=U+3,rn=Ft,Cn="";const Zn=[];for(;Ft0||(0,kn.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,kn.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class q{constructor(U,ge={}){const qe=function On(K){return dn(K,qt)}(U)?U:new qt(U);this._lexer=new fn(qe),this._options=ge,this._tokenCounter=0}parseName(){const U=this.expectToken(Vt.NAME);return this.node(U,{kind:Tt.b.NAME,value:U.value})}parseDocument(){return this.node(this._lexer.token,{kind:Tt.b.DOCUMENT,definitions:this.many(Vt.SOF,this.parseDefinition,Vt.EOF)})}parseDefinition(){if(this.peek(Vt.BRACE_L))return this.parseOperationDefinition();const U=this.peekDescription(),ge=U?this._lexer.lookahead():this._lexer.token;if(ge.kind===Vt.NAME){switch(ge.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(U)throw st(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(ge.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(ge)}parseOperationDefinition(){const U=this._lexer.token;if(this.peek(Vt.BRACE_L))return this.node(U,{kind:Tt.b.OPERATION_DEFINITION,operation:Ct.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const ge=this.parseOperationType();let qe;return this.peek(Vt.NAME)&&(qe=this.parseName()),this.node(U,{kind:Tt.b.OPERATION_DEFINITION,operation:ge,name:qe,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const U=this.expectToken(Vt.NAME);switch(U.value){case"query":return Ct.cE.QUERY;case"mutation":return Ct.cE.MUTATION;case"subscription":return Ct.cE.SUBSCRIPTION}throw this.unexpected(U)}parseVariableDefinitions(){return this.optionalMany(Vt.PAREN_L,this.parseVariableDefinition,Vt.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Tt.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Vt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Vt.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const U=this._lexer.token;return this.expectToken(Vt.DOLLAR),this.node(U,{kind:Tt.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Tt.b.SELECTION_SET,selections:this.many(Vt.BRACE_L,this.parseSelection,Vt.BRACE_R)})}parseSelection(){return this.peek(Vt.SPREAD)?this.parseFragment():this.parseField()}parseField(){const U=this._lexer.token,ge=this.parseName();let qe,rt;return this.expectOptionalToken(Vt.COLON)?(qe=ge,rt=this.parseName()):rt=ge,this.node(U,{kind:Tt.b.FIELD,alias:qe,name:rt,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Vt.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(U){return this.optionalMany(Vt.PAREN_L,U?this.parseConstArgument:this.parseArgument,Vt.PAREN_R)}parseArgument(U=!1){const ge=this._lexer.token,qe=this.parseName();return this.expectToken(Vt.COLON),this.node(ge,{kind:Tt.b.ARGUMENT,name:qe,value:this.parseValueLiteral(U)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const U=this._lexer.token;this.expectToken(Vt.SPREAD);const ge=this.expectOptionalKeyword("on");return!ge&&this.peek(Vt.NAME)?this.node(U,{kind:Tt.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(U,{kind:Tt.b.INLINE_FRAGMENT,typeCondition:ge?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const U=this._lexer.token;return this.expectKeyword("fragment"),this.node(U,!0===this._options.allowLegacyFragmentVariables?{kind:Tt.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:Tt.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(U){const ge=this._lexer.token;switch(ge.kind){case Vt.BRACKET_L:return this.parseList(U);case Vt.BRACE_L:return this.parseObject(U);case Vt.INT:return this.advanceLexer(),this.node(ge,{kind:Tt.b.INT,value:ge.value});case Vt.FLOAT:return this.advanceLexer(),this.node(ge,{kind:Tt.b.FLOAT,value:ge.value});case Vt.STRING:case Vt.BLOCK_STRING:return this.parseStringLiteral();case Vt.NAME:switch(this.advanceLexer(),ge.value){case"true":return this.node(ge,{kind:Tt.b.BOOLEAN,value:!0});case"false":return this.node(ge,{kind:Tt.b.BOOLEAN,value:!1});case"null":return this.node(ge,{kind:Tt.b.NULL});default:return this.node(ge,{kind:Tt.b.ENUM,value:ge.value})}case Vt.DOLLAR:if(U){if(this.expectToken(Vt.DOLLAR),this._lexer.token.kind===Vt.NAME)throw st(this._lexer.source,ge.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(ge)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const U=this._lexer.token;return this.advanceLexer(),this.node(U,{kind:Tt.b.STRING,value:U.value,block:U.kind===Vt.BLOCK_STRING})}parseList(U){return this.node(this._lexer.token,{kind:Tt.b.LIST,values:this.any(Vt.BRACKET_L,()=>this.parseValueLiteral(U),Vt.BRACKET_R)})}parseObject(U){return this.node(this._lexer.token,{kind:Tt.b.OBJECT,fields:this.any(Vt.BRACE_L,()=>this.parseObjectField(U),Vt.BRACE_R)})}parseObjectField(U){const ge=this._lexer.token,qe=this.parseName();return this.expectToken(Vt.COLON),this.node(ge,{kind:Tt.b.OBJECT_FIELD,name:qe,value:this.parseValueLiteral(U)})}parseDirectives(U){const ge=[];for(;this.peek(Vt.AT);)ge.push(this.parseDirective(U));return ge}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(U){const ge=this._lexer.token;return this.expectToken(Vt.AT),this.node(ge,{kind:Tt.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(U)})}parseTypeReference(){const U=this._lexer.token;let ge;if(this.expectOptionalToken(Vt.BRACKET_L)){const qe=this.parseTypeReference();this.expectToken(Vt.BRACKET_R),ge=this.node(U,{kind:Tt.b.LIST_TYPE,type:qe})}else ge=this.parseNamedType();return this.expectOptionalToken(Vt.BANG)?this.node(U,{kind:Tt.b.NON_NULL_TYPE,type:ge}):ge}parseNamedType(){return this.node(this._lexer.token,{kind:Tt.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Vt.STRING)||this.peek(Vt.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("schema");const qe=this.parseConstDirectives(),rt=this.many(Vt.BRACE_L,this.parseOperationTypeDefinition,Vt.BRACE_R);return this.node(U,{kind:Tt.b.SCHEMA_DEFINITION,description:ge,directives:qe,operationTypes:rt})}parseOperationTypeDefinition(){const U=this._lexer.token,ge=this.parseOperationType();this.expectToken(Vt.COLON);const qe=this.parseNamedType();return this.node(U,{kind:Tt.b.OPERATION_TYPE_DEFINITION,operation:ge,type:qe})}parseScalarTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("scalar");const qe=this.parseName(),rt=this.parseConstDirectives();return this.node(U,{kind:Tt.b.SCALAR_TYPE_DEFINITION,description:ge,name:qe,directives:rt})}parseObjectTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("type");const qe=this.parseName(),rt=this.parseImplementsInterfaces(),Ft=this.parseConstDirectives(),rn=this.parseFieldsDefinition();return this.node(U,{kind:Tt.b.OBJECT_TYPE_DEFINITION,description:ge,name:qe,interfaces:rt,directives:Ft,fields:rn})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Vt.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Vt.BRACE_L,this.parseFieldDefinition,Vt.BRACE_R)}parseFieldDefinition(){const U=this._lexer.token,ge=this.parseDescription(),qe=this.parseName(),rt=this.parseArgumentDefs();this.expectToken(Vt.COLON);const Ft=this.parseTypeReference(),rn=this.parseConstDirectives();return this.node(U,{kind:Tt.b.FIELD_DEFINITION,description:ge,name:qe,arguments:rt,type:Ft,directives:rn})}parseArgumentDefs(){return this.optionalMany(Vt.PAREN_L,this.parseInputValueDef,Vt.PAREN_R)}parseInputValueDef(){const U=this._lexer.token,ge=this.parseDescription(),qe=this.parseName();this.expectToken(Vt.COLON);const rt=this.parseTypeReference();let Ft;this.expectOptionalToken(Vt.EQUALS)&&(Ft=this.parseConstValueLiteral());const rn=this.parseConstDirectives();return this.node(U,{kind:Tt.b.INPUT_VALUE_DEFINITION,description:ge,name:qe,type:rt,defaultValue:Ft,directives:rn})}parseInterfaceTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("interface");const qe=this.parseName(),rt=this.parseImplementsInterfaces(),Ft=this.parseConstDirectives(),rn=this.parseFieldsDefinition();return this.node(U,{kind:Tt.b.INTERFACE_TYPE_DEFINITION,description:ge,name:qe,interfaces:rt,directives:Ft,fields:rn})}parseUnionTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("union");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseUnionMemberTypes();return this.node(U,{kind:Tt.b.UNION_TYPE_DEFINITION,description:ge,name:qe,directives:rt,types:Ft})}parseUnionMemberTypes(){return this.expectOptionalToken(Vt.EQUALS)?this.delimitedMany(Vt.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("enum");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseEnumValuesDefinition();return this.node(U,{kind:Tt.b.ENUM_TYPE_DEFINITION,description:ge,name:qe,directives:rt,values:Ft})}parseEnumValuesDefinition(){return this.optionalMany(Vt.BRACE_L,this.parseEnumValueDefinition,Vt.BRACE_R)}parseEnumValueDefinition(){const U=this._lexer.token,ge=this.parseDescription(),qe=this.parseEnumValueName(),rt=this.parseConstDirectives();return this.node(U,{kind:Tt.b.ENUM_VALUE_DEFINITION,description:ge,name:qe,directives:rt})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw st(this._lexer.source,this._lexer.token.start,`${Xe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("input");const qe=this.parseName(),rt=this.parseConstDirectives(),Ft=this.parseInputFieldsDefinition();return this.node(U,{kind:Tt.b.INPUT_OBJECT_TYPE_DEFINITION,description:ge,name:qe,directives:rt,fields:Ft})}parseInputFieldsDefinition(){return this.optionalMany(Vt.BRACE_L,this.parseInputValueDef,Vt.BRACE_R)}parseTypeSystemExtension(){const U=this._lexer.lookahead();if(U.kind===Vt.NAME)switch(U.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(U)}parseSchemaExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const ge=this.parseConstDirectives(),qe=this.optionalMany(Vt.BRACE_L,this.parseOperationTypeDefinition,Vt.BRACE_R);if(0===ge.length&&0===qe.length)throw this.unexpected();return this.node(U,{kind:Tt.b.SCHEMA_EXTENSION,directives:ge,operationTypes:qe})}parseScalarTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const ge=this.parseName(),qe=this.parseConstDirectives();if(0===qe.length)throw this.unexpected();return this.node(U,{kind:Tt.b.SCALAR_TYPE_EXTENSION,name:ge,directives:qe})}parseObjectTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const ge=this.parseName(),qe=this.parseImplementsInterfaces(),rt=this.parseConstDirectives(),Ft=this.parseFieldsDefinition();if(0===qe.length&&0===rt.length&&0===Ft.length)throw this.unexpected();return this.node(U,{kind:Tt.b.OBJECT_TYPE_EXTENSION,name:ge,interfaces:qe,directives:rt,fields:Ft})}parseInterfaceTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const ge=this.parseName(),qe=this.parseImplementsInterfaces(),rt=this.parseConstDirectives(),Ft=this.parseFieldsDefinition();if(0===qe.length&&0===rt.length&&0===Ft.length)throw this.unexpected();return this.node(U,{kind:Tt.b.INTERFACE_TYPE_EXTENSION,name:ge,interfaces:qe,directives:rt,fields:Ft})}parseUnionTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const ge=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseUnionMemberTypes();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(U,{kind:Tt.b.UNION_TYPE_EXTENSION,name:ge,directives:qe,types:rt})}parseEnumTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const ge=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseEnumValuesDefinition();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(U,{kind:Tt.b.ENUM_TYPE_EXTENSION,name:ge,directives:qe,values:rt})}parseInputObjectTypeExtension(){const U=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const ge=this.parseName(),qe=this.parseConstDirectives(),rt=this.parseInputFieldsDefinition();if(0===qe.length&&0===rt.length)throw this.unexpected();return this.node(U,{kind:Tt.b.INPUT_OBJECT_TYPE_EXTENSION,name:ge,directives:qe,fields:rt})}parseDirectiveDefinition(){const U=this._lexer.token,ge=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Vt.AT);const qe=this.parseName(),rt=this.parseArgumentDefs(),Ft=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const rn=this.parseDirectiveLocations();return this.node(U,{kind:Tt.b.DIRECTIVE_DEFINITION,description:ge,name:qe,arguments:rt,repeatable:Ft,locations:rn})}parseDirectiveLocations(){return this.delimitedMany(Vt.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const U=this._lexer.token,ge=this.parseName();if(Object.prototype.hasOwnProperty.call(It,ge.value))return ge;throw this.unexpected(U)}node(U,ge){return!0!==this._options.noLocation&&(ge.loc=new Ct.aZ(U,this._lexer.lastToken,this._lexer.source)),ge}peek(U){return this._lexer.token.kind===U}expectToken(U){const ge=this._lexer.token;if(ge.kind===U)return this.advanceLexer(),ge;throw st(this._lexer.source,ge.start,`Expected ${ht(U)}, found ${Xe(ge)}.`)}expectOptionalToken(U){return this._lexer.token.kind===U&&(this.advanceLexer(),!0)}expectKeyword(U){const ge=this._lexer.token;if(ge.kind!==Vt.NAME||ge.value!==U)throw st(this._lexer.source,ge.start,`Expected "${U}", found ${Xe(ge)}.`);this.advanceLexer()}expectOptionalKeyword(U){const ge=this._lexer.token;return ge.kind===Vt.NAME&&ge.value===U&&(this.advanceLexer(),!0)}unexpected(U){const ge=U??this._lexer.token;return st(this._lexer.source,ge.start,`Unexpected ${Xe(ge)}.`)}any(U,ge,qe){this.expectToken(U);const rt=[];for(;!this.expectOptionalToken(qe);)rt.push(ge.call(this));return rt}optionalMany(U,ge,qe){if(this.expectOptionalToken(U)){const rt=[];do{rt.push(ge.call(this))}while(!this.expectOptionalToken(qe));return rt}return[]}many(U,ge,qe){this.expectToken(U);const rt=[];do{rt.push(ge.call(this))}while(!this.expectOptionalToken(qe));return rt}delimitedMany(U,ge){this.expectOptionalToken(U);const qe=[];do{qe.push(ge.call(this))}while(this.expectOptionalToken(U));return qe}advanceLexer(){const{maxTokens:U}=this._options,ge=this._lexer.advance();if(void 0!==U&&ge.kind!==Vt.EOF&&(++this._tokenCounter,this._tokenCounter>U))throw st(this._lexer.source,ge.start,`Document contains more that ${U} tokens. Parsing aborted.`)}}function Xe(K){const U=K.value;return ht(K.kind)+(null!=U?` "${U}"`:"")}function ht(K){return function Hn(K){return K===Vt.BANG||K===Vt.DOLLAR||K===Vt.AMP||K===Vt.PAREN_L||K===Vt.PAREN_R||K===Vt.SPREAD||K===Vt.COLON||K===Vt.EQUALS||K===Vt.AT||K===Vt.BRACKET_L||K===Vt.BRACKET_R||K===Vt.BRACE_L||K===Vt.PIPE||K===Vt.BRACE_R}(K)?`"${K}"`:K}var at=new Map,St=new Map,Qe=!0,Ee=!1;function Je(K){return K.replace(/[\s,]+/g," ").trim()}function Ke(K){var U=Je(K);if(!at.has(U)){var ge=function Ut(K,U){return new q(K,U).parseDocument()}(K,{experimentalFragmentVariables:Ee,allowLegacyFragmentVariables:Ee});if(!ge||"Document"!==ge.kind)throw new Error("Not a valid GraphQL document.");at.set(U,function gt(K){var U=new Set(K.definitions);U.forEach(function(qe){qe.loc&&delete qe.loc,Object.keys(qe).forEach(function(rt){var Ft=qe[rt];Ft&&"object"==typeof Ft&&U.add(Ft)})});var ge=K.loc;return ge&&(delete ge.startToken,delete ge.endToken),K}(function ze(K){var U=new Set,ge=[];return K.definitions.forEach(function(qe){if("FragmentDefinition"===qe.kind){var rt=qe.name.value,Ft=function re(K){return Je(K.source.body.substring(K.start,K.end))}(qe.loc),rn=St.get(rt);rn&&!rn.has(Ft)?Qe&&console.warn("Warning: fragment with name "+rt+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):rn||St.set(rt,rn=new Set),rn.add(Ft),U.has(Ft)||(U.add(Ft),ge.push(qe))}else ge.push(qe)}),g(g({},K),{definitions:ge})}(ge)))}return at.get(U)}function Pe(K){for(var U=[],ge=1;ge{c.d(De,{E:()=>r});var t=c(9085);function r(...g){return e=>(0,t.E)(...g)(e)}},9199:(Rt,De,c)=>{function t(L){return null!=L}c.d(De,{Vq:()=>r,kP:()=>t});const r=t},4412:(Rt,De,c)=>{c.d(De,{t:()=>r});var t=c(1413);class r extends t.B{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const M=super._subscribe(e);return!M.closed&&e.next(this._value),M}getValue(){const{hasError:e,thrownError:M,_value:G}=this;if(e)throw M;return this._throwIfClosed(),G}next(e){super.next(this._value=e)}}},1985:(Rt,De,c)=>{c.d(De,{c:()=>B});var t=c(7707),r=c(8359),g=c(3494),e=c(1203),M=c(1026),G=c(8071),L=c(9786);let B=(()=>{class F{constructor(V){V&&(this._subscribe=V)}lift(V){const x=new F;return x.source=this,x.operator=V,x}subscribe(V,x,ne){const J=function I(F){return F&&F instanceof t.vU||function w(F){return F&&(0,G.T)(F.next)&&(0,G.T)(F.error)&&(0,G.T)(F.complete)}(F)&&(0,r.Uv)(F)}(V)?V:new t.Ms(V,x,ne);return(0,L.Y)(()=>{const{operator:be,source:Oe}=this;J.add(be?be.call(J,Oe):Oe?this._subscribe(J):this._trySubscribe(J))}),J}_trySubscribe(V){try{return this._subscribe(V)}catch(x){V.error(x)}}forEach(V,x){return new(x=A(x))((ne,J)=>{const be=new t.Ms({next:Oe=>{try{V(Oe)}catch(he){J(he),be.unsubscribe()}},error:J,complete:ne});this.subscribe(be)})}_subscribe(V){var x;return null===(x=this.source)||void 0===x?void 0:x.subscribe(V)}[g.s](){return this}pipe(...V){return(0,e.m)(V)(this)}toPromise(V){return new(V=A(V))((x,ne)=>{let J;this.subscribe(be=>J=be,be=>ne(be),()=>x(J))})}}return F.create=X=>new F(X),F})();function A(F){var X;return null!==(X=F??M.$.Promise)&&void 0!==X?X:Promise}},2771:(Rt,De,c)=>{c.d(De,{m:()=>g});var t=c(1413),r=c(6129);class g extends t.B{constructor(M=1/0,G=1/0,L=r.U){super(),this._bufferSize=M,this._windowTime=G,this._timestampProvider=L,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=G===1/0,this._bufferSize=Math.max(1,M),this._windowTime=Math.max(1,G)}next(M){const{isStopped:G,_buffer:L,_infiniteTimeWindow:B,_timestampProvider:A,_windowTime:w}=this;G||(L.push(M),!B&&L.push(A.now()+w)),this._trimBuffer(),super.next(M)}_subscribe(M){this._throwIfClosed(),this._trimBuffer();const G=this._innerSubscribe(M),{_infiniteTimeWindow:L,_buffer:B}=this,A=B.slice();for(let w=0;w{c.d(De,{B:()=>L});var t=c(1985),r=c(8359);const e=(0,c(1853).L)(A=>function(){A(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var M=c(7908),G=c(9786);let L=(()=>{class A extends t.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(I){const F=new B(this,this);return F.operator=I,F}_throwIfClosed(){if(this.closed)throw new e}next(I){(0,G.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const F of this.currentObservers)F.next(I)}})}error(I){(0,G.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=I;const{observers:F}=this;for(;F.length;)F.shift().error(I)}})}complete(){(0,G.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:I}=this;for(;I.length;)I.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var I;return(null===(I=this.observers)||void 0===I?void 0:I.length)>0}_trySubscribe(I){return this._throwIfClosed(),super._trySubscribe(I)}_subscribe(I){return this._throwIfClosed(),this._checkFinalizedStatuses(I),this._innerSubscribe(I)}_innerSubscribe(I){const{hasError:F,isStopped:X,observers:V}=this;return F||X?r.Kn:(this.currentObservers=null,V.push(I),new r.yU(()=>{this.currentObservers=null,(0,M.o)(V,I)}))}_checkFinalizedStatuses(I){const{hasError:F,thrownError:X,isStopped:V}=this;F?I.error(X):V&&I.complete()}asObservable(){const I=new t.c;return I.source=this,I}}return A.create=(w,I)=>new B(w,I),A})();class B extends L{constructor(w,I){super(),this.destination=w,this.source=I}next(w){var I,F;null===(F=null===(I=this.destination)||void 0===I?void 0:I.next)||void 0===F||F.call(I,w)}error(w){var I,F;null===(F=null===(I=this.destination)||void 0===I?void 0:I.error)||void 0===F||F.call(I,w)}complete(){var w,I;null===(I=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===I||I.call(w)}_subscribe(w){var I,F;return null!==(F=null===(I=this.source)||void 0===I?void 0:I.subscribe(w))&&void 0!==F?F:r.Kn}}},7707:(Rt,De,c)=>{c.d(De,{Ms:()=>ne,vU:()=>F});var t=c(8071),r=c(8359),g=c(1026),e=c(5334),M=c(5343);const G=A("C",void 0,void 0);function A(Ie,me,de){return{kind:Ie,value:me,error:de}}var w=c(9270),I=c(9786);class F extends r.yU{constructor(me){super(),this.isStopped=!1,me?(this.destination=me,(0,r.Uv)(me)&&me.add(this)):this.destination=he}static create(me,de,H){return new ne(me,de,H)}next(me){this.isStopped?Oe(function B(Ie){return A("N",Ie,void 0)}(me),this):this._next(me)}error(me){this.isStopped?Oe(function L(Ie){return A("E",void 0,Ie)}(me),this):(this.isStopped=!0,this._error(me))}complete(){this.isStopped?Oe(G,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(me){this.destination.next(me)}_error(me){try{this.destination.error(me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function V(Ie,me){return X.call(Ie,me)}class x{constructor(me){this.partialObserver=me}next(me){const{partialObserver:de}=this;if(de.next)try{de.next(me)}catch(H){J(H)}}error(me){const{partialObserver:de}=this;if(de.error)try{de.error(me)}catch(H){J(H)}else J(me)}complete(){const{partialObserver:me}=this;if(me.complete)try{me.complete()}catch(de){J(de)}}}class ne extends F{constructor(me,de,H){let z;if(super(),(0,t.T)(me)||!me)z={next:me??void 0,error:de??void 0,complete:H??void 0};else{let Z;this&&g.$.useDeprecatedNextContext?(Z=Object.create(me),Z.unsubscribe=()=>this.unsubscribe(),z={next:me.next&&V(me.next,Z),error:me.error&&V(me.error,Z),complete:me.complete&&V(me.complete,Z)}):z=me}this.destination=new x(z)}}function J(Ie){g.$.useDeprecatedSynchronousErrorHandling?(0,I.l)(Ie):(0,e.m)(Ie)}function Oe(Ie,me){const{onStoppedNotification:de}=g.$;de&&w.f.setTimeout(()=>de(Ie,me))}const he={closed:!0,next:M.l,error:function be(Ie){throw Ie},complete:M.l}},8359:(Rt,De,c)=>{c.d(De,{Kn:()=>G,yU:()=>M,Uv:()=>L});var t=c(8071);const g=(0,c(1853).L)(A=>function(I){A(this),this.message=I?`${I.length} errors occurred during unsubscription:\n${I.map((F,X)=>`${X+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=I});var e=c(7908);class M{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:I}=this;if(I)if(this._parentage=null,Array.isArray(I))for(const V of I)V.remove(this);else I.remove(this);const{initialTeardown:F}=this;if((0,t.T)(F))try{F()}catch(V){w=V instanceof g?V.errors:[V]}const{_finalizers:X}=this;if(X){this._finalizers=null;for(const V of X)try{B(V)}catch(x){w=w??[],x instanceof g?w=[...w,...x.errors]:w.push(x)}}if(w)throw new g(w)}}add(w){var I;if(w&&w!==this)if(this.closed)B(w);else{if(w instanceof M){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._finalizers=null!==(I=this._finalizers)&&void 0!==I?I:[]).push(w)}}_hasParent(w){const{_parentage:I}=this;return I===w||Array.isArray(I)&&I.includes(w)}_addParent(w){const{_parentage:I}=this;this._parentage=Array.isArray(I)?(I.push(w),I):I?[I,w]:w}_removeParent(w){const{_parentage:I}=this;I===w?this._parentage=null:Array.isArray(I)&&(0,e.o)(I,w)}remove(w){const{_finalizers:I}=this;I&&(0,e.o)(I,w),w instanceof M&&w._removeParent(this)}}M.EMPTY=(()=>{const A=new M;return A.closed=!0,A})();const G=M.EMPTY;function L(A){return A instanceof M||A&&"closed"in A&&(0,t.T)(A.remove)&&(0,t.T)(A.add)&&(0,t.T)(A.unsubscribe)}function B(A){(0,t.T)(A)?A():A.unsubscribe()}},1026:(Rt,De,c)=>{c.d(De,{$:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(Rt,De,c)=>{c.d(De,{G:()=>G});var t=c(1985),r=c(8359),g=c(9898),e=c(4360),M=c(9974);class G extends t.c{constructor(B,A){super(),this.source=B,this.subjectFactory=A,this._subject=null,this._refCount=0,this._connection=null,(0,M.S)(B)&&(this.lift=B.lift)}_subscribe(B){return this.getSubject().subscribe(B)}getSubject(){const B=this._subject;return(!B||B.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:B}=this;this._subject=this._connection=null,B?.unsubscribe()}connect(){let B=this._connection;if(!B){B=this._connection=new r.yU;const A=this.getSubject();B.add(this.source.subscribe((0,e._)(A,void 0,()=>{this._teardown(),A.complete()},w=>{this._teardown(),A.error(w)},()=>this._teardown()))),B.closed&&(this._connection=null,B=r.yU.EMPTY)}return B}refCount(){return(0,g.B)()(this)}}},4572:(Rt,De,c)=>{c.d(De,{z:()=>w});var t=c(1985),r=c(3073),g=c(2806),e=c(3669),M=c(6450),G=c(9326),L=c(8496),B=c(4360),A=c(5225);function w(...X){const V=(0,G.lI)(X),x=(0,G.ms)(X),{args:ne,keys:J}=(0,r.D)(X);if(0===ne.length)return(0,g.H)([],V);const be=new t.c(function I(X,V,x=e.D){return ne=>{F(V,()=>{const{length:J}=X,be=new Array(J);let Oe=J,he=J;for(let Ie=0;Ie{const me=(0,g.H)(X[Ie],V);let de=!1;me.subscribe((0,B._)(ne,H=>{be[Ie]=H,de||(de=!0,he--),he||ne.next(x(be.slice()))},()=>{--Oe||ne.complete()}))},ne)},ne)}}(ne,V,J?Oe=>(0,L.e)(J,Oe):e.D));return x?be.pipe((0,M.I)(x)):be}function F(X,V,x){X?(0,A.N)(x,X,V):V()}},8793:(Rt,De,c)=>{c.d(De,{x:()=>M});var t=c(6365),g=c(9326),e=c(2806);function M(...G){return function r(){return(0,t.U)(1)}()((0,e.H)(G,(0,g.lI)(G)))}},9030:(Rt,De,c)=>{c.d(De,{v:()=>g});var t=c(1985),r=c(8750);function g(e){return new t.c(M=>{(0,r.Tg)(e()).subscribe(M)})}},983:(Rt,De,c)=>{c.d(De,{w:()=>r});const r=new(c(1985).c)(M=>M.complete())},7468:(Rt,De,c)=>{c.d(De,{p:()=>B});var t=c(1985),r=c(3073),g=c(8750),e=c(9326),M=c(4360),G=c(6450),L=c(8496);function B(...A){const w=(0,e.ms)(A),{args:I,keys:F}=(0,r.D)(A),X=new t.c(V=>{const{length:x}=I;if(!x)return void V.complete();const ne=new Array(x);let J=x,be=x;for(let Oe=0;Oe{he||(he=!0,be--),ne[Oe]=Ie},()=>J--,void 0,()=>{(!J||!he)&&(be||V.next(F?(0,L.e)(F,ne):ne),V.complete())}))}});return w?X.pipe((0,G.I)(w)):X}},2806:(Rt,De,c)=>{c.d(De,{H:()=>de});var t=c(8750),r=c(941),g=c(9974);function e(H,z=0){return(0,g.N)((Z,pe)=>{pe.add(H.schedule(()=>Z.subscribe(pe),z))})}var L=c(1985),A=c(4761),w=c(8071),I=c(5225);function X(H,z){if(!H)throw new Error("Iterable cannot be null");return new L.c(Z=>{(0,I.N)(Z,z,()=>{const pe=H[Symbol.asyncIterator]();(0,I.N)(Z,z,()=>{pe.next().then(E=>{E.done?Z.complete():Z.next(E.value)})},0,!0)})})}var V=c(5055),x=c(9858),ne=c(7441),J=c(5397),be=c(7953),Oe=c(591),he=c(5196);function de(H,z){return z?function me(H,z){if(null!=H){if((0,V.l)(H))return function M(H,z){return(0,t.Tg)(H).pipe(e(z),(0,r.Q)(z))}(H,z);if((0,ne.X)(H))return function B(H,z){return new L.c(Z=>{let pe=0;return z.schedule(function(){pe===H.length?Z.complete():(Z.next(H[pe++]),Z.closed||this.schedule())})})}(H,z);if((0,x.y)(H))return function G(H,z){return(0,t.Tg)(H).pipe(e(z),(0,r.Q)(z))}(H,z);if((0,be.T)(H))return X(H,z);if((0,J.x)(H))return function F(H,z){return new L.c(Z=>{let pe;return(0,I.N)(Z,z,()=>{pe=H[A.l](),(0,I.N)(Z,z,()=>{let E,S;try{({value:E,done:S}=pe.next())}catch(R){return void Z.error(R)}S?Z.complete():Z.next(E)},0,!0)}),()=>(0,w.T)(pe?.return)&&pe.return()})}(H,z);if((0,he.U)(H))return function Ie(H,z){return X((0,he.C)(H),z)}(H,z)}throw(0,Oe.L)(H)}(H,z):(0,t.Tg)(H)}},3726:(Rt,De,c)=>{c.d(De,{R:()=>w});var t=c(8750),r=c(1985),g=c(1397),e=c(7441),M=c(8071),G=c(6450);const L=["addListener","removeListener"],B=["addEventListener","removeEventListener"],A=["on","off"];function w(x,ne,J,be){if((0,M.T)(J)&&(be=J,J=void 0),be)return w(x,ne,J).pipe((0,G.I)(be));const[Oe,he]=function V(x){return(0,M.T)(x.addEventListener)&&(0,M.T)(x.removeEventListener)}(x)?B.map(Ie=>me=>x[Ie](ne,me,J)):function F(x){return(0,M.T)(x.addListener)&&(0,M.T)(x.removeListener)}(x)?L.map(I(x,ne)):function X(x){return(0,M.T)(x.on)&&(0,M.T)(x.off)}(x)?A.map(I(x,ne)):[];if(!Oe&&(0,e.X)(x))return(0,g.Z)(Ie=>w(Ie,ne,J))((0,t.Tg)(x));if(!Oe)throw new TypeError("Invalid event target");return new r.c(Ie=>{const me=(...de)=>Ie.next(1he(me)})}function I(x,ne){return J=>be=>x[J](ne,be)}},3226:(Rt,De,c)=>{c.d(De,{T:()=>r});var t=c(9030);function r(g,e,M){return(0,t.v)(()=>g()?e:M)}},8750:(Rt,De,c)=>{c.d(De,{Tg:()=>X});var t=c(7272),r=c(7441),g=c(9858),e=c(1985),M=c(5055),G=c(7953),L=c(591),B=c(5397),A=c(5196),w=c(8071),I=c(5334),F=c(3494);function X(Ie){if(Ie instanceof e.c)return Ie;if(null!=Ie){if((0,M.l)(Ie))return function V(Ie){return new e.c(me=>{const de=Ie[F.s]();if((0,w.T)(de.subscribe))return de.subscribe(me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ie);if((0,r.X)(Ie))return function x(Ie){return new e.c(me=>{for(let de=0;de{Ie.then(de=>{me.closed||(me.next(de),me.complete())},de=>me.error(de)).then(null,I.m)})}(Ie);if((0,G.T)(Ie))return be(Ie);if((0,B.x)(Ie))return function J(Ie){return new e.c(me=>{for(const de of Ie)if(me.next(de),me.closed)return;me.complete()})}(Ie);if((0,A.U)(Ie))return function Oe(Ie){return be((0,A.C)(Ie))}(Ie)}throw(0,L.L)(Ie)}function be(Ie){return new e.c(me=>{(function he(Ie,me){var de,H,z,Z;return(0,t.sH)(this,void 0,void 0,function*(){try{for(de=(0,t.xN)(Ie);!(H=yield de.next()).done;)if(me.next(H.value),me.closed)return}catch(pe){z={error:pe}}finally{try{H&&!H.done&&(Z=de.return)&&(yield Z.call(de))}finally{if(z)throw z.error}}me.complete()})})(Ie,me).catch(de=>me.error(de))})}},605:(Rt,De,c)=>{c.d(De,{Y:()=>g});var t=c(3236),r=c(1584);function g(e=0,M=t.E){return e<0&&(e=0),(0,r.O)(e,e,M)}},7786:(Rt,De,c)=>{c.d(De,{h:()=>G});var t=c(6365),r=c(8750),g=c(983),e=c(9326),M=c(2806);function G(...L){const B=(0,e.lI)(L),A=(0,e.R0)(L,1/0),w=L;return w.length?1===w.length?(0,r.Tg)(w[0]):(0,t.U)(A)((0,M.H)(w,B)):g.w}},7673:(Rt,De,c)=>{c.d(De,{of:()=>g});var t=c(9326),r=c(2806);function g(...e){const M=(0,t.lI)(e);return(0,r.H)(e,M)}},8810:(Rt,De,c)=>{c.d(De,{$:()=>g});var t=c(1985),r=c(8071);function g(e,M){const G=(0,r.T)(e)?e:()=>e,L=B=>B.error(G());return new t.c(M?B=>M.schedule(L,0,B):L)}},1584:(Rt,De,c)=>{c.d(De,{O:()=>M});var t=c(1985),r=c(3236),g=c(9470);function M(G=0,L,B=r.b){let A=-1;return null!=L&&((0,g.m)(L)?B=L:A=L),new t.c(w=>{let I=function e(G){return G instanceof Date&&!isNaN(G)}(G)?+G-B.now():G;I<0&&(I=0);let F=0;return B.schedule(function(){w.closed||(w.next(F++),0<=A?this.schedule(void 0,A):w.complete())},I)})}},4360:(Rt,De,c)=>{c.d(De,{_:()=>r});var t=c(7707);function r(e,M,G,L,B){return new g(e,M,G,L,B)}class g extends t.vU{constructor(M,G,L,B,A,w){super(M),this.onFinalize=A,this.shouldUnsubscribe=w,this._next=G?function(I){try{G(I)}catch(F){M.error(F)}}:super._next,this._error=B?function(I){try{B(I)}catch(F){M.error(F)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(I){M.error(I)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var M;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:G}=this;super.unsubscribe(),!G&&(null===(M=this.onFinalize)||void 0===M||M.call(this))}}}},3798:(Rt,De,c)=>{c.d(De,{Z:()=>L});var t=c(3236),r=c(9974),g=c(8750),e=c(4360),G=c(1584);function L(B,A=t.E){return function M(B){return(0,r.N)((A,w)=>{let I=!1,F=null,X=null,V=!1;const x=()=>{if(X?.unsubscribe(),X=null,I){I=!1;const J=F;F=null,w.next(J)}V&&w.complete()},ne=()=>{X=null,V&&w.complete()};A.subscribe((0,e._)(w,J=>{I=!0,F=J,X||(0,g.Tg)(B(J)).subscribe(X=(0,e._)(w,x,ne))},()=>{V=!0,(!I||!X||X.closed)&&w.complete()}))})}(()=>(0,G.O)(B,A))}},9437:(Rt,De,c)=>{c.d(De,{W:()=>e});var t=c(8750),r=c(4360),g=c(9974);function e(M){return(0,g.N)((G,L)=>{let w,B=null,A=!1;B=G.subscribe((0,r._)(L,void 0,void 0,I=>{w=(0,t.Tg)(M(I,e(M)(G))),B?(B.unsubscribe(),B=null,w.subscribe(L)):A=!0})),A&&(B.unsubscribe(),B=null,w.subscribe(L))})}},274:(Rt,De,c)=>{c.d(De,{H:()=>g});var t=c(1397),r=c(8071);function g(e,M){return(0,r.T)(M)?(0,t.Z)(e,M,1):(0,t.Z)(e,1)}},152:(Rt,De,c)=>{c.d(De,{B:()=>e});var t=c(3236),r=c(9974),g=c(4360);function e(M,G=t.E){return(0,r.N)((L,B)=>{let A=null,w=null,I=null;const F=()=>{if(A){A.unsubscribe(),A=null;const V=w;w=null,B.next(V)}};function X(){const V=I+M,x=G.now();if(x{w=V,I=G.now(),A||(A=G.schedule(X,M),B.add(A))},()=>{F(),B.complete()},void 0,()=>{w=A=null}))})}},9901:(Rt,De,c)=>{c.d(De,{U:()=>g});var t=c(9974),r=c(4360);function g(e){return(0,t.N)((M,G)=>{let L=!1;M.subscribe((0,r._)(G,B=>{L=!0,G.next(B)},()=>{L||G.next(e),G.complete()}))})}},1986:(Rt,De,c)=>{c.d(De,{c:()=>X});var t=c(3236),r=c(8793),g=c(6697),e=c(9974),M=c(4360),G=c(5343),B=c(3703),A=c(1397),w=c(8750);function I(V,x){return x?ne=>(0,r.x)(x.pipe((0,g.s)(1),function L(){return(0,e.N)((V,x)=>{V.subscribe((0,M._)(x,G.l))})}()),ne.pipe(I(V))):(0,A.Z)((ne,J)=>(0,w.Tg)(V(ne,J)).pipe((0,g.s)(1),(0,B.u)(ne)))}var F=c(1584);function X(V,x=t.E){const ne=(0,F.O)(V,x);return I(()=>ne)}},3294:(Rt,De,c)=>{c.d(De,{F:()=>e});var t=c(3669),r=c(9974),g=c(4360);function e(G,L=t.D){return G=G??M,(0,r.N)((B,A)=>{let w,I=!0;B.subscribe((0,g._)(A,F=>{const X=L(F);(I||!G(w,X))&&(I=!1,w=X,A.next(F))}))})}function M(G,L){return G===L}},5964:(Rt,De,c)=>{c.d(De,{p:()=>g});var t=c(9974),r=c(4360);function g(e,M){return(0,t.N)((G,L)=>{let B=0;G.subscribe((0,r._)(L,A=>e.call(M,A,B++)&&L.next(A)))})}},980:(Rt,De,c)=>{c.d(De,{j:()=>r});var t=c(9974);function r(g){return(0,t.N)((e,M)=>{try{e.subscribe(M)}finally{M.add(g)}})}},1594:(Rt,De,c)=>{c.d(De,{$:()=>L});var t=c(9350),r=c(5964),g=c(6697),e=c(9901),M=c(3774),G=c(3669);function L(B,A){const w=arguments.length>=2;return I=>I.pipe(B?(0,r.p)((F,X)=>B(F,X,I)):G.D,(0,g.s)(1),w?(0,e.U)(A):(0,M.v)(()=>new t.G))}},6354:(Rt,De,c)=>{c.d(De,{T:()=>g});var t=c(9974),r=c(4360);function g(e,M){return(0,t.N)((G,L)=>{let B=0;G.subscribe((0,r._)(L,A=>{L.next(e.call(M,A,B++))}))})}},3703:(Rt,De,c)=>{c.d(De,{u:()=>r});var t=c(6354);function r(g){return(0,t.T)(()=>g)}},6365:(Rt,De,c)=>{c.d(De,{U:()=>g});var t=c(1397),r=c(3669);function g(e=1/0){return(0,t.Z)(r.D,e)}},1397:(Rt,De,c)=>{c.d(De,{Z:()=>B});var t=c(6354),r=c(8750),g=c(9974),e=c(5225),M=c(4360),L=c(8071);function B(A,w,I=1/0){return(0,L.T)(w)?B((F,X)=>(0,t.T)((V,x)=>w(F,V,X,x))((0,r.Tg)(A(F,X))),I):("number"==typeof w&&(I=w),(0,g.N)((F,X)=>function G(A,w,I,F,X,V,x,ne){const J=[];let be=0,Oe=0,he=!1;const Ie=()=>{he&&!J.length&&!be&&w.complete()},me=H=>be{V&&w.next(H),be++;let z=!1;(0,r.Tg)(I(H,Oe++)).subscribe((0,M._)(w,Z=>{X?.(Z),V?me(Z):w.next(Z)},()=>{z=!0},void 0,()=>{if(z)try{for(be--;J.length&&bede(Z)):de(Z)}Ie()}catch(Z){w.error(Z)}}))};return A.subscribe((0,M._)(w,me,()=>{he=!0,Ie()})),()=>{ne?.()}}(F,X,A,I)))}},941:(Rt,De,c)=>{c.d(De,{Q:()=>e});var t=c(5225),r=c(9974),g=c(4360);function e(M,G=0){return(0,r.N)((L,B)=>{L.subscribe((0,g._)(B,A=>(0,t.N)(B,M,()=>B.next(A),G),()=>(0,t.N)(B,M,()=>B.complete(),G),A=>(0,t.N)(B,M,()=>B.error(A),G)))})}},3946:(Rt,De,c)=>{c.d(De,{J:()=>g});var t=c(9974),r=c(4360);function g(){return(0,t.N)((e,M)=>{let G,L=!1;e.subscribe((0,r._)(M,B=>{const A=G;G=B,L&&M.next([A,B]),L=!0}))})}},9085:(Rt,De,c)=>{c.d(De,{E:()=>r});var t=c(6354);function r(...g){const e=g.length;if(0===e)throw new Error("list of properties cannot be empty.");return(0,t.T)(M=>{let G=M;for(let L=0;L{c.d(De,{B:()=>g});var t=c(9974),r=c(4360);function g(){return(0,t.N)((e,M)=>{let G=null;e._refCount++;const L=(0,r._)(M,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(G=null);const B=e._connection,A=G;G=null,B&&(!A||B===A)&&B.unsubscribe(),M.unsubscribe()});e.subscribe(L),L.closed||(G=e.connect())})}},2816:(Rt,De,c)=>{c.d(De,{S:()=>e});var t=c(9974),r=c(4360);function e(M,G){return(0,t.N)(function g(M,G,L,B,A){return(w,I)=>{let F=L,X=G,V=0;w.subscribe((0,r._)(I,x=>{const ne=V++;X=F?M(X,x,ne):(F=!0,x),B&&I.next(X)},A&&(()=>{F&&I.next(X),I.complete()})))}}(M,G,arguments.length>=2,!0))}},7647:(Rt,De,c)=>{c.d(De,{u:()=>M});var t=c(8750),r=c(1413),g=c(7707),e=c(9974);function M(L={}){const{connector:B=(()=>new r.B),resetOnError:A=!0,resetOnComplete:w=!0,resetOnRefCountZero:I=!0}=L;return F=>{let X,V,x,ne=0,J=!1,be=!1;const Oe=()=>{V?.unsubscribe(),V=void 0},he=()=>{Oe(),X=x=void 0,J=be=!1},Ie=()=>{const me=X;he(),me?.unsubscribe()};return(0,e.N)((me,de)=>{ne++,!be&&!J&&Oe();const H=x=x??B();de.add(()=>{ne--,0===ne&&!be&&!J&&(V=G(Ie,I))}),H.subscribe(de),!X&&ne>0&&(X=new g.Ms({next:z=>H.next(z),error:z=>{be=!0,Oe(),V=G(he,A,z),H.error(z)},complete:()=>{J=!0,Oe(),V=G(he,w),H.complete()}}),(0,t.Tg)(me).subscribe(X))})(F)}}function G(L,B,...A){if(!0===B)return void L();if(!1===B)return;const w=new g.Ms({next:()=>{w.unsubscribe(),L()}});return(0,t.Tg)(B(...A)).subscribe(w)}},4668:(Rt,De,c)=>{c.d(De,{t:()=>g});var t=c(2771),r=c(7647);function g(e,M,G){let L,B=!1;return e&&"object"==typeof e?({bufferSize:L=1/0,windowTime:M=1/0,refCount:B=!1,scheduler:G}=e):L=e??1/0,(0,r.u)({connector:()=>new t.m(L,M,G),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:B})}},5245:(Rt,De,c)=>{c.d(De,{i:()=>r});var t=c(5964);function r(g){return(0,t.p)((e,M)=>g<=M)}},9172:(Rt,De,c)=>{c.d(De,{Z:()=>e});var t=c(8793),r=c(9326),g=c(9974);function e(...M){const G=(0,r.lI)(M);return(0,g.N)((L,B)=>{(G?(0,t.x)(M,L,G):(0,t.x)(M,L)).subscribe(B)})}},5558:(Rt,De,c)=>{c.d(De,{n:()=>e});var t=c(8750),r=c(9974),g=c(4360);function e(M,G){return(0,r.N)((L,B)=>{let A=null,w=0,I=!1;const F=()=>I&&!A&&B.complete();L.subscribe((0,g._)(B,X=>{A?.unsubscribe();let V=0;const x=w++;(0,t.Tg)(M(X,x)).subscribe(A=(0,g._)(B,ne=>B.next(G?G(X,ne,x,V++):ne),()=>{A=null,F()}))},()=>{I=!0,F()}))})}},6697:(Rt,De,c)=>{c.d(De,{s:()=>e});var t=c(983),r=c(9974),g=c(4360);function e(M){return M<=0?()=>t.w:(0,r.N)((G,L)=>{let B=0;G.subscribe((0,g._)(L,A=>{++B<=M&&(L.next(A),M<=B&&L.complete())}))})}},6977:(Rt,De,c)=>{c.d(De,{Q:()=>M});var t=c(9974),r=c(4360),g=c(8750),e=c(5343);function M(G){return(0,t.N)((L,B)=>{(0,g.Tg)(G).subscribe((0,r._)(B,()=>B.complete(),e.l)),!B.closed&&L.subscribe(B)})}},7048:(Rt,De,c)=>{c.d(De,{v:()=>g});var t=c(9974),r=c(4360);function g(e,M=!1){return(0,t.N)((G,L)=>{let B=0;G.subscribe((0,r._)(L,A=>{const w=e(A,B++);(w||M)&&L.next(A),!w&&L.complete()}))})}},8141:(Rt,De,c)=>{c.d(De,{M:()=>M});var t=c(8071),r=c(9974),g=c(4360),e=c(3669);function M(G,L,B){const A=(0,t.T)(G)||L||B?{next:G,error:L,complete:B}:G;return A?(0,r.N)((w,I)=>{var F;null===(F=A.subscribe)||void 0===F||F.call(A);let X=!0;w.subscribe((0,g._)(I,V=>{var x;null===(x=A.next)||void 0===x||x.call(A,V),I.next(V)},()=>{var V;X=!1,null===(V=A.complete)||void 0===V||V.call(A),I.complete()},V=>{var x;X=!1,null===(x=A.error)||void 0===x||x.call(A,V),I.error(V)},()=>{var V,x;X&&(null===(V=A.unsubscribe)||void 0===V||V.call(A)),null===(x=A.finalize)||void 0===x||x.call(A)}))}):e.D}},3386:(Rt,De,c)=>{c.d(De,{c:()=>L});var t=c(3236),r=c(9974),g=c(4360),e=c(8750),G=c(1584);function L(B,A=t.E,w){const I=(0,G.O)(B,A);return function M(B,A){return(0,r.N)((w,I)=>{const{leading:F=!0,trailing:X=!1}=A??{};let V=!1,x=null,ne=null,J=!1;const be=()=>{ne?.unsubscribe(),ne=null,X&&(Ie(),J&&I.complete())},Oe=()=>{ne=null,J&&I.complete()},he=me=>ne=(0,e.Tg)(B(me)).subscribe((0,g._)(I,be,Oe)),Ie=()=>{if(V){V=!1;const me=x;x=null,I.next(me),!J&&he(me)}};w.subscribe((0,g._)(I,me=>{V=!0,x=me,(!ne||ne.closed)&&(F?Ie():he(me))},()=>{J=!0,(!(X&&V&&ne)||ne.closed)&&I.complete()}))})}(()=>I,w)}},3774:(Rt,De,c)=>{c.d(De,{v:()=>e});var t=c(9350),r=c(9974),g=c(4360);function e(G=M){return(0,r.N)((L,B)=>{let A=!1;L.subscribe((0,g._)(B,w=>{A=!0,B.next(w)},()=>A?B.complete():B.error(G())))})}function M(){return new t.G}},3993:(Rt,De,c)=>{c.d(De,{E:()=>L});var t=c(9974),r=c(4360),g=c(8750),e=c(3669),M=c(5343),G=c(9326);function L(...B){const A=(0,G.ms)(B);return(0,t.N)((w,I)=>{const F=B.length,X=new Array(F);let V=B.map(()=>!1),x=!1;for(let ne=0;ne{X[ne]=J,!x&&!V[ne]&&(V[ne]=!0,(x=V.every(e.D))&&(V=null))},M.l));w.subscribe((0,r._)(I,ne=>{if(x){const J=[ne,...X];I.next(A?A(...J):J)}}))})}},6780:(Rt,De,c)=>{c.d(De,{R:()=>M});var t=c(8359);class r extends t.yU{constructor(L,B){super()}schedule(L,B=0){return this}}const g={setInterval(G,L,...B){const{delegate:A}=g;return A?.setInterval?A.setInterval(G,L,...B):setInterval(G,L,...B)},clearInterval(G){const{delegate:L}=g;return(L?.clearInterval||clearInterval)(G)},delegate:void 0};var e=c(7908);class M extends r{constructor(L,B){super(L,B),this.scheduler=L,this.work=B,this.pending=!1}schedule(L,B=0){var A;if(this.closed)return this;this.state=L;const w=this.id,I=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(I,w,B)),this.pending=!0,this.delay=B,this.id=null!==(A=this.id)&&void 0!==A?A:this.requestAsyncId(I,this.id,B),this}requestAsyncId(L,B,A=0){return g.setInterval(L.flush.bind(L,this),A)}recycleAsyncId(L,B,A=0){if(null!=A&&this.delay===A&&!1===this.pending)return B;null!=B&&g.clearInterval(B)}execute(L,B){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const A=this._execute(L,B);if(A)return A;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,B){let w,A=!1;try{this.work(L)}catch(I){A=!0,w=I||new Error("Scheduled action threw falsy error")}if(A)return this.unsubscribe(),w}unsubscribe(){if(!this.closed){const{id:L,scheduler:B}=this,{actions:A}=B;this.work=this.state=this.scheduler=null,this.pending=!1,(0,e.o)(A,this),null!=L&&(this.id=this.recycleAsyncId(B,L,null)),this.delay=null,super.unsubscribe()}}}},9687:(Rt,De,c)=>{c.d(De,{q:()=>g});var t=c(6129);class r{constructor(M,G=r.now){this.schedulerActionCtor=M,this.now=G}schedule(M,G=0,L){return new this.schedulerActionCtor(this,M).schedule(L,G)}}r.now=t.U.now;class g extends r{constructor(M,G=r.now){super(M,G),this.actions=[],this._active=!1}flush(M){const{actions:G}=this;if(this._active)return void G.push(M);let L;this._active=!0;do{if(L=M.execute(M.state,M.delay))break}while(M=G.shift());if(this._active=!1,L){for(;M=G.shift();)M.unsubscribe();throw L}}}},536:(Rt,De,c)=>{c.d(De,{X:()=>L});var t=c(6780),r=c(8359);const g={schedule(A){let w=requestAnimationFrame,I=cancelAnimationFrame;const{delegate:F}=g;F&&(w=F.requestAnimationFrame,I=F.cancelAnimationFrame);const X=w(V=>{I=void 0,A(V)});return new r.yU(()=>I?.(X))},requestAnimationFrame(...A){const{delegate:w}=g;return(w?.requestAnimationFrame||requestAnimationFrame)(...A)},cancelAnimationFrame(...A){const{delegate:w}=g;return(w?.cancelAnimationFrame||cancelAnimationFrame)(...A)},delegate:void 0};var M=c(9687);const L=new class G extends M.q{flush(w){this._active=!0;const I=this._scheduled;this._scheduled=void 0;const{actions:F}=this;let X;w=w||F.shift();do{if(X=w.execute(w.state,w.delay))break}while((w=F[0])&&w.id===I&&F.shift());if(this._active=!1,X){for(;(w=F[0])&&w.id===I&&F.shift();)w.unsubscribe();throw X}}}(class e extends t.R{constructor(w,I){super(w,I),this.scheduler=w,this.work=I}requestAsyncId(w,I,F=0){return null!==F&&F>0?super.requestAsyncId(w,I,F):(w.actions.push(this),w._scheduled||(w._scheduled=g.requestAnimationFrame(()=>w.flush(void 0))))}recycleAsyncId(w,I,F=0){var X;if(null!=F?F>0:this.delay>0)return super.recycleAsyncId(w,I,F);const{actions:V}=w;null!=I&&(null===(X=V[V.length-1])||void 0===X?void 0:X.id)!==I&&(g.cancelAnimationFrame(I),w._scheduled=void 0)}})},5007:(Rt,De,c)=>{c.d(De,{$:()=>V});var t=c(6780);let g,r=1;const e={};function M(ne){return ne in e&&(delete e[ne],!0)}const G={setImmediate(ne){const J=r++;return e[J]=!0,g||(g=Promise.resolve()),g.then(()=>M(J)&&ne()),J},clearImmediate(ne){M(ne)}},{setImmediate:B,clearImmediate:A}=G,w={setImmediate(...ne){const{delegate:J}=w;return(J?.setImmediate||B)(...ne)},clearImmediate(ne){const{delegate:J}=w;return(J?.clearImmediate||A)(ne)},delegate:void 0};var F=c(9687);const V=new class X extends F.q{flush(J){this._active=!0;const be=this._scheduled;this._scheduled=void 0;const{actions:Oe}=this;let he;J=J||Oe.shift();do{if(he=J.execute(J.state,J.delay))break}while((J=Oe[0])&&J.id===be&&Oe.shift());if(this._active=!1,he){for(;(J=Oe[0])&&J.id===be&&Oe.shift();)J.unsubscribe();throw he}}}(class I extends t.R{constructor(J,be){super(J,be),this.scheduler=J,this.work=be}requestAsyncId(J,be,Oe=0){return null!==Oe&&Oe>0?super.requestAsyncId(J,be,Oe):(J.actions.push(this),J._scheduled||(J._scheduled=w.setImmediate(J.flush.bind(J,void 0))))}recycleAsyncId(J,be,Oe=0){var he;if(null!=Oe?Oe>0:this.delay>0)return super.recycleAsyncId(J,be,Oe);const{actions:Ie}=J;null!=be&&(null===(he=Ie[Ie.length-1])||void 0===he?void 0:he.id)!==be&&(w.clearImmediate(be),J._scheduled===be&&(J._scheduled=void 0))}})},3236:(Rt,De,c)=>{c.d(De,{E:()=>g,b:()=>e});var t=c(6780);const g=new(c(9687).q)(t.R),e=g},6129:(Rt,De,c)=>{c.d(De,{U:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},9270:(Rt,De,c)=>{c.d(De,{f:()=>t});const t={setTimeout(r,g,...e){const{delegate:M}=t;return M?.setTimeout?M.setTimeout(r,g,...e):setTimeout(r,g,...e)},clearTimeout(r){const{delegate:g}=t;return(g?.clearTimeout||clearTimeout)(r)},delegate:void 0}},4761:(Rt,De,c)=>{c.d(De,{l:()=>r});const r=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Rt,De,c)=>{c.d(De,{s:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Rt,De,c)=>{c.d(De,{G:()=>r});const r=(0,c(1853).L)(g=>function(){g(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Rt,De,c)=>{c.d(De,{R0:()=>G,lI:()=>M,ms:()=>e});var t=c(8071),r=c(9470);function g(L){return L[L.length-1]}function e(L){return(0,t.T)(g(L))?L.pop():void 0}function M(L){return(0,r.m)(g(L))?L.pop():void 0}function G(L,B){return"number"==typeof g(L)?L.pop():B}},3073:(Rt,De,c)=>{c.d(De,{D:()=>M});const{isArray:t}=Array,{getPrototypeOf:r,prototype:g,keys:e}=Object;function M(L){if(1===L.length){const B=L[0];if(t(B))return{args:B,keys:null};if(function G(L){return L&&"object"==typeof L&&r(L)===g}(B)){const A=e(B);return{args:A.map(w=>B[w]),keys:A}}}return{args:L,keys:null}}},7908:(Rt,De,c)=>{function t(r,g){if(r){const e=r.indexOf(g);0<=e&&r.splice(e,1)}}c.d(De,{o:()=>t})},1853:(Rt,De,c)=>{function t(r){const e=r(M=>{Error.call(M),M.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}c.d(De,{L:()=>t})},8496:(Rt,De,c)=>{function t(r,g){return r.reduce((e,M,G)=>(e[M]=g[G],e),{})}c.d(De,{e:()=>t})},9786:(Rt,De,c)=>{c.d(De,{Y:()=>g,l:()=>e});var t=c(1026);let r=null;function g(M){if(t.$.useDeprecatedSynchronousErrorHandling){const G=!r;if(G&&(r={errorThrown:!1,error:null}),M(),G){const{errorThrown:L,error:B}=r;if(r=null,L)throw B}}else M()}function e(M){t.$.useDeprecatedSynchronousErrorHandling&&r&&(r.errorThrown=!0,r.error=M)}},5225:(Rt,De,c)=>{function t(r,g,e,M=0,G=!1){const L=g.schedule(function(){e(),G?r.add(this.schedule(null,M)):this.unsubscribe()},M);if(r.add(L),!G)return L}c.d(De,{N:()=>t})},3669:(Rt,De,c)=>{function t(r){return r}c.d(De,{D:()=>t})},7441:(Rt,De,c)=>{c.d(De,{X:()=>t});const t=r=>r&&"number"==typeof r.length&&"function"!=typeof r},7953:(Rt,De,c)=>{c.d(De,{T:()=>r});var t=c(8071);function r(g){return Symbol.asyncIterator&&(0,t.T)(g?.[Symbol.asyncIterator])}},8071:(Rt,De,c)=>{function t(r){return"function"==typeof r}c.d(De,{T:()=>t})},5055:(Rt,De,c)=>{c.d(De,{l:()=>g});var t=c(3494),r=c(8071);function g(e){return(0,r.T)(e[t.s])}},5397:(Rt,De,c)=>{c.d(De,{x:()=>g});var t=c(4761),r=c(8071);function g(e){return(0,r.T)(e?.[t.l])}},4402:(Rt,De,c)=>{c.d(De,{A:()=>g});var t=c(1985),r=c(8071);function g(e){return!!e&&(e instanceof t.c||(0,r.T)(e.lift)&&(0,r.T)(e.subscribe))}},9858:(Rt,De,c)=>{c.d(De,{y:()=>r});var t=c(8071);function r(g){return(0,t.T)(g?.then)}},5196:(Rt,De,c)=>{c.d(De,{C:()=>g,U:()=>e});var t=c(7272),r=c(8071);function g(M){return(0,t.AQ)(this,arguments,function*(){const L=M.getReader();try{for(;;){const{value:B,done:A}=yield(0,t.N3)(L.read());if(A)return yield(0,t.N3)(void 0);yield yield(0,t.N3)(B)}}finally{L.releaseLock()}})}function e(M){return(0,r.T)(M?.getReader)}},9470:(Rt,De,c)=>{c.d(De,{m:()=>r});var t=c(8071);function r(g){return g&&(0,t.T)(g.schedule)}},9974:(Rt,De,c)=>{c.d(De,{N:()=>g,S:()=>r});var t=c(8071);function r(e){return(0,t.T)(e?.lift)}function g(e){return M=>{if(r(M))return M.lift(function(G){try{return e(G,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Rt,De,c)=>{c.d(De,{I:()=>e});var t=c(6354);const{isArray:r}=Array;function e(M){return(0,t.T)(G=>function g(M,G){return r(G)?M(...G):M(G)}(M,G))}},5343:(Rt,De,c)=>{function t(){}c.d(De,{l:()=>t})},1203:(Rt,De,c)=>{c.d(De,{F:()=>r,m:()=>g});var t=c(3669);function r(...e){return g(e)}function g(e){return 0===e.length?t.D:1===e.length?e[0]:function(G){return e.reduce((L,B)=>B(L),G)}}},5334:(Rt,De,c)=>{c.d(De,{m:()=>g});var t=c(1026),r=c(9270);function g(e){r.f.setTimeout(()=>{const{onUnhandledError:M}=t.$;if(!M)throw e;M(e)})}},591:(Rt,De,c)=>{function t(r){return new TypeError(`You provided ${null!==r&&"object"==typeof r?"an invalid object":`'${r}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}c.d(De,{L:()=>t})},1018:(Rt,De,c)=>{function t(H){return H!==String(parseFloat(H))}c.d(De,{KF:()=>de});var M=Object.getOwnPropertyNames?function r(H){return Object.getOwnPropertyNames(H).filter(function(z){return H.propertyIsEnumerable(z)&&t(z)})}:Object.keys?function g(H){return Object.keys(H).filter(t)}:function e(H){var z=[];for(var Z in H)H.hasOwnProperty(Z)&&H.propertyIsEnumerable(Z)&&t(Z)&&z.push(Z);return z},G=function(){function H(z){this.enumObj=z,this.keysList=Object.freeze(M(z));for(var Z=this.keysList.length,pe=new Array(Z),E=new Map,S=0;S=Z.length,value:Z.keysList[pe]};return++pe,S}})[Symbol.iterator]=function(){return this},z},H.prototype.values=function(){var z,Z=this,pe=0;return(z={next:function(){var S={done:pe>=Z.length,value:Z.valuesList[pe]};return++pe,S}})[Symbol.iterator]=function(){return this},z},H.prototype.entries=function(){var z,Z=this,pe=0;return(z={next:function(){var S={done:pe>=Z.length,value:Z[pe]};return++pe,S}})[Symbol.iterator]=function(){return this},z},H.prototype[Symbol.iterator]=function(){return this.entries()},H.prototype.forEach=function(z,Z){for(var pe=this.length,E=0;E{c.d(De,{C6:()=>r,Cl:()=>g,Tt:()=>e,YH:()=>A,fX:()=>ne,sH:()=>B});var t=function(E,S){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,Y){R.__proto__=Y}||function(R,Y){for(var se in Y)Object.prototype.hasOwnProperty.call(Y,se)&&(R[se]=Y[se])})(E,S)};function r(E,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function R(){this.constructor=E}t(E,S),E.prototype=null===S?Object.create(S):(R.prototype=S.prototype,new R)}var g=function(){return g=Object.assign||function(S){for(var R,Y=1,se=arguments.length;Y0&&Be[Be.length-1])&&(6===Le[0]||2===Le[0])){R=0;continue}if(3===Le[0]&&(!Be||Le[1]>Be[0]&&Le[1]{function M(E,S,R,Y){var Pt,se=arguments.length,Be=se<3?S:null===Y?Y=Object.getOwnPropertyDescriptor(S,R):Y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Be=Reflect.decorate(E,S,R,Y);else for(var vt=E.length-1;vt>=0;vt--)(Pt=E[vt])&&(Be=(se<3?Pt(Be):se>3?Pt(S,R,Be):Pt(S,R))||Be);return se>3&&Be&&Object.defineProperty(S,R,Be),Be}c.d(De,{Cg:()=>M})},7272:(Rt,De,c)=>{function B(E,S,R,Y){return new(R||(R=Promise))(function(Be,Pt){function vt(zt){try{Le(Y.next(zt))}catch(xt){Pt(xt)}}function wt(zt){try{Le(Y.throw(zt))}catch(xt){Pt(xt)}}function Le(zt){zt.done?Be(zt.value):function se(Be){return Be instanceof R?Be:new R(function(Pt){Pt(Be)})}(zt.value).then(vt,wt)}Le((Y=Y.apply(E,S||[])).next())})}function J(E){return this instanceof J?(this.v=E,this):new J(E)}function be(E,S,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,Y=R.apply(E,S||[]),Be=[];return se={},Pt("next"),Pt("throw"),Pt("return"),se[Symbol.asyncIterator]=function(){return this},se;function Pt(st){Y[st]&&(se[st]=function(Ct){return new Promise(function(It,Tt){Be.push([st,Ct,It,Tt])>1||vt(st,Ct)})})}function vt(st,Ct){try{!function wt(st){st.value instanceof J?Promise.resolve(st.value.v).then(Le,zt):xt(Be[0][2],st)}(Y[st](Ct))}catch(It){xt(Be[0][3],It)}}function Le(st){vt("next",st)}function zt(st){vt("throw",st)}function xt(st,Ct){st(Ct),Be.shift(),Be.length&&vt(Be[0][0],Be[0][1])}}function he(E){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R,S=E[Symbol.asyncIterator];return S?S.call(E):(E=function F(E){var S="function"==typeof Symbol&&Symbol.iterator,R=S&&E[S],Y=0;if(R)return R.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&Y>=E.length&&(E=void 0),{value:E&&E[Y++],done:!E}}};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")}(E),R={},Y("next"),Y("throw"),Y("return"),R[Symbol.asyncIterator]=function(){return this},R);function Y(Be){R[Be]=E[Be]&&function(Pt){return new Promise(function(vt,wt){!function se(Be,Pt,vt,wt){Promise.resolve(wt).then(function(Le){Be({value:Le,done:vt})},Pt)}(vt,wt,(Pt=E[Be](Pt)).done,Pt.value)})}}}c.d(De,{AQ:()=>be,N3:()=>J,sH:()=>B,xN:()=>he})},4523:(Rt,De,c)=>{function t(g,e,M,G,L,B,A){try{var w=g[B](A),I=w.value}catch(F){return void M(F)}w.done?e(I):Promise.resolve(I).then(G,L)}function r(g){return function(){var e=this,M=arguments;return new Promise(function(G,L){var B=g.apply(e,M);function A(I){t(B,G,L,A,w,"next",I)}function w(I){t(B,G,L,A,w,"throw",I)}A(void 0)})}}c.d(De,{A:()=>r})},9969:(Rt,De,c)=>{c.d(De,{FX:()=>Z,If:()=>t,K2:()=>G,P:()=>V,hZ:()=>g,i0:()=>e,iF:()=>L,kY:()=>w,kp:()=>r,sf:()=>H,ui:()=>z,wk:()=>B,yc:()=>x});var t=function(pe){return pe[pe.State=0]="State",pe[pe.Transition=1]="Transition",pe[pe.Sequence=2]="Sequence",pe[pe.Group=3]="Group",pe[pe.Animate=4]="Animate",pe[pe.Keyframes=5]="Keyframes",pe[pe.Style=6]="Style",pe[pe.Trigger=7]="Trigger",pe[pe.Reference=8]="Reference",pe[pe.AnimateChild=9]="AnimateChild",pe[pe.AnimateRef=10]="AnimateRef",pe[pe.Query=11]="Query",pe[pe.Stagger=12]="Stagger",pe}(t||{});const r="*";function g(pe,E){return{type:t.Trigger,name:pe,definitions:E,options:{}}}function e(pe,E=null){return{type:t.Animate,styles:E,timings:pe}}function G(pe,E=null){return{type:t.Sequence,steps:pe,options:E}}function L(pe){return{type:t.Style,styles:pe,offset:null}}function B(pe,E,S){return{type:t.State,name:pe,styles:E,options:S}}function w(pe,E,S=null){return{type:t.Transition,expr:pe,animation:E,options:S}}function V(pe,E,S=null){return{type:t.Query,selector:pe,animation:E,options:S}}function x(pe,E){return{type:t.Stagger,timings:pe,animation:E}}class H{constructor(E=0,S=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=E+S}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(E=>E()),this._onDoneFns=[])}onStart(E){this._originalOnStartFns.push(E),this._onStartFns.push(E)}onDone(E){this._originalOnDoneFns.push(E),this._onDoneFns.push(E)}onDestroy(E){this._onDestroyFns.push(E)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(E=>E()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(E=>E()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(E){this._position=this.totalTime?E*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(E){const S="start"==E?this._onStartFns:this._onDoneFns;S.forEach(R=>R()),S.length=0}}class z{constructor(E){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=E;let S=0,R=0,Y=0;const se=this.players.length;0==se?queueMicrotask(()=>this._onFinish()):this.players.forEach(Be=>{Be.onDone(()=>{++S==se&&this._onFinish()}),Be.onDestroy(()=>{++R==se&&this._onDestroy()}),Be.onStart(()=>{++Y==se&&this._onStart()})}),this.totalTime=this.players.reduce((Be,Pt)=>Math.max(Be,Pt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(E=>E()),this._onDoneFns=[])}init(){this.players.forEach(E=>E.init())}onStart(E){this._onStartFns.push(E)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(E=>E()),this._onStartFns=[])}onDone(E){this._onDoneFns.push(E)}onDestroy(E){this._onDestroyFns.push(E)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(E=>E.play())}pause(){this.players.forEach(E=>E.pause())}restart(){this.players.forEach(E=>E.restart())}finish(){this._onFinish(),this.players.forEach(E=>E.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(E=>E.destroy()),this._onDestroyFns.forEach(E=>E()),this._onDestroyFns=[])}reset(){this.players.forEach(E=>E.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(E){const S=E*this.totalTime;this.players.forEach(R=>{const Y=R.totalTime?Math.min(1,S/R.totalTime):1;R.setPosition(Y)})}getPosition(){const E=this.players.reduce((S,R)=>null===S||R.totalTime>S.totalTime?R:S,null);return null!=E?E.getPosition():0}beforeDestroy(){this.players.forEach(E=>{E.beforeDestroy&&E.beforeDestroy()})}triggerCallback(E){const S="start"==E?this._onStartFns:this._onDoneFns;S.forEach(R=>R()),S.length=0}}const Z="!"},851:(Rt,De,c)=>{c.d(De,{Pd:()=>Qe,vR:()=>te,kB:()=>Ot,Bu:()=>wt,FN:()=>ue,GX:()=>Et,_G:()=>oe,w6:()=>Fe});var t=c(177),r=c(3953),g=c(6860),e=c(1413),M=c(8359),G=c(4412),L=c(7673),B=c(7336),A=c(8141),w=c(152),I=c(5964),F=c(6354),X=c(5245),V=c(3294),x=c(6977);let J=(()=>{class Ee{create(re){return typeof MutationObserver>"u"?null:new MutationObserver(re)}static#e=this.\u0275fac=function(ze){return new(ze||Ee)};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),he=(()=>{class Ee{static#e=this.\u0275fac=function(ze){return new(ze||Ee)};static#t=this.\u0275mod=r.$C({type:Ee});static#n=this.\u0275inj=r.G2t({providers:[J]})}return Ee})();var Ie=c(4085),me=c(9327);class Pt{constructor(Je,re){this._items=Je,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new e.B,this._typeaheadSubscription=M.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=ze=>ze.disabled,this._pressedLetters=[],this.tabOut=new e.B,this.change=new e.B,Je instanceof r.rOR?this._itemChangesSubscription=Je.changes.subscribe(ze=>this._itemsChanged(ze.toArray())):(0,r.Hps)(Je)&&(this._effectRef=(0,r.QZP)(()=>this._itemsChanged(Je()),{injector:re}))}skipPredicate(Je){return this._skipPredicateFn=Je,this}withWrap(Je=!0){return this._wrap=Je,this}withVerticalOrientation(Je=!0){return this._vertical=Je,this}withHorizontalOrientation(Je){return this._horizontal=Je,this}withAllowedModifierKeys(Je){return this._allowedModifierKeys=Je,this}withTypeAhead(Je=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,A.M)(re=>this._pressedLetters.push(re)),(0,w.B)(Je),(0,I.p)(()=>this._pressedLetters.length>0),(0,F.T)(()=>this._pressedLetters.join(""))).subscribe(re=>{const ze=this._getItemsArray();for(let gt=1;gt!Je[Ke]||this._allowedModifierKeys.indexOf(Ke)>-1);switch(re){case B.wn:return void this.tabOut.next();case B.n6:if(this._vertical&>){this.setNextItemActive();break}return;case B.i7:if(this._vertical&>){this.setPreviousItemActive();break}return;case B.LE:if(this._horizontal&>){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case B.UQ:if(this._horizontal&>){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case B.yZ:if(this._homeAndEnd&>){this.setFirstItemActive();break}return;case B.Kp:if(this._homeAndEnd&>){this.setLastItemActive();break}return;case B.w_:if(this._pageUpAndDown.enabled&>){const Ke=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Ke>0?Ke:0,1);break}return;case B.dB:if(this._pageUpAndDown.enabled&>){const Ke=this._activeItemIndex+this._pageUpAndDown.delta,Pe=this._getItemsArray().length;this._setActiveItemByIndex(Ke=B.A&&re<=B.Z||re>=B.f2&&re<=B.bn)&&this._letterKeyStream.next(String.fromCharCode(re))))}this._pressedLetters=[],Je.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._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Je){const re=this._getItemsArray(),ze="number"==typeof Je?Je:re.indexOf(Je);this._activeItem=re[ze]??null,this._activeItemIndex=ze}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Je){this._wrap?this._setActiveInWrapMode(Je):this._setActiveInDefaultMode(Je)}_setActiveInWrapMode(Je){const re=this._getItemsArray();for(let ze=1;ze<=re.length;ze++){const gt=(this._activeItemIndex+Je*ze+re.length)%re.length;if(!this._skipPredicateFn(re[gt]))return void this.setActiveItem(gt)}}_setActiveInDefaultMode(Je){this._setActiveItemByIndex(this._activeItemIndex+Je,Je)}_setActiveItemByIndex(Je,re){const ze=this._getItemsArray();if(ze[Je]){for(;this._skipPredicateFn(ze[Je]);)if(!ze[Je+=re])return;this.setActiveItem(Je)}}_getItemsArray(){return(0,r.Hps)(this._items)?this._items():this._items instanceof r.rOR?this._items.toArray():this._items}_itemsChanged(Je){if(this._activeItem){const re=Je.indexOf(this._activeItem);re>-1&&re!==this._activeItemIndex&&(this._activeItemIndex=re)}}}class wt extends Pt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Je){return this._origin=Je,this}setActiveItem(Je){super.setActiveItem(Je),this.activeItem&&this.activeItem.focus(this._origin)}}let zt=(()=>{class Ee{constructor(re){this._platform=re}isDisabled(re){return re.hasAttribute("disabled")}isVisible(re){return function st(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(re)&&"visible"===getComputedStyle(re).visibility}isTabbable(re){if(!this._platform.isBrowser)return!1;const ze=function xt(Ee){try{return Ee.frameElement}catch{return null}}(function bt(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(re));if(ze&&(-1===fn(ze)||!this.isVisible(ze)))return!1;let gt=re.nodeName.toLowerCase(),Ke=fn(re);return re.hasAttribute("contenteditable")?-1!==Ke:!("iframe"===gt||"object"===gt||this._platform.WEBKIT&&this._platform.IOS&&!function Hn(Ee){let Je=Ee.nodeName.toLowerCase(),re="input"===Je&&Ee.type;return"text"===re||"password"===re||"select"===Je||"textarea"===Je}(re))&&("audio"===gt?!!re.hasAttribute("controls")&&-1!==Ke:"video"===gt?-1!==Ke&&(null!==Ke||this._platform.FIREFOX||re.hasAttribute("controls")):re.tabIndex>=0)}isFocusable(re,ze){return function zn(Ee){return!function It(Ee){return function en(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function Ct(Ee){let Je=Ee.nodeName.toLowerCase();return"input"===Je||"select"===Je||"button"===Je||"textarea"===Je}(Ee)||function Tt(Ee){return function jt(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||Vt(Ee))}(re)&&!this.isDisabled(re)&&(ze?.ignoreVisibility||this.isVisible(re))}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(g.OD))};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();function Vt(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Je=Ee.getAttribute("tabindex");return!(!Je||isNaN(parseInt(Je,10)))}function fn(Ee){if(!Vt(Ee))return null;const Je=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Je)?-1:Je}class At{get enabled(){return this._enabled}set enabled(Je){this._enabled=Je,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}constructor(Je,re,ze,gt,Ke=!1,Pe){this._element=Je,this._checker=re,this._ngZone=ze,this._document=gt,this._injector=Pe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Ke||this.attachAnchors()}destroy(){const Je=this._startAnchor,re=this._endAnchor;Je&&(Je.removeEventListener("focus",this.startAnchorListener),Je.remove()),re&&(re.removeEventListener("focus",this.endAnchorListener),re.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(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusInitialElement(Je)))})}focusFirstTabbableElementWhenReady(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusFirstTabbableElement(Je)))})}focusLastTabbableElementWhenReady(Je){return new Promise(re=>{this._executeOnStable(()=>re(this.focusLastTabbableElement(Je)))})}_getRegionBoundary(Je){const re=this._element.querySelectorAll(`[cdk-focus-region-${Je}], [cdkFocusRegion${Je}], [cdk-focus-${Je}]`);return"start"==Je?re.length?re[0]:this._getFirstTabbableElement(this._element):re.length?re[re.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Je){const re=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(re){if(!this._checker.isFocusable(re)){const ze=this._getFirstTabbableElement(re);return ze?.focus(Je),!!ze}return re.focus(Je),!0}return this.focusFirstTabbableElement(Je)}focusFirstTabbableElement(Je){const re=this._getRegionBoundary("start");return re&&re.focus(Je),!!re}focusLastTabbableElement(Je){const re=this._getRegionBoundary("end");return re&&re.focus(Je),!!re}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Je){if(this._checker.isFocusable(Je)&&this._checker.isTabbable(Je))return Je;const re=Je.children;for(let ze=0;ze=0;ze--){const gt=re[ze].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(re[ze]):null;if(gt)return gt}return null}_createAnchor(){const Je=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Je),Je.classList.add("cdk-visually-hidden"),Je.classList.add("cdk-focus-trap-anchor"),Je.setAttribute("aria-hidden","true"),Je}_toggleAnchorTabIndex(Je,re){Je?re.setAttribute("tabindex","0"):re.removeAttribute("tabindex")}toggleAnchors(Je){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}_executeOnStable(Je){this._injector?(0,r.mal)(Je,{injector:this._injector}):setTimeout(Je)}}let Et=(()=>{class Ee{constructor(re,ze,gt){this._checker=re,this._ngZone=ze,this._injector=(0,r.WQX)(r.zZn),this._document=gt}create(re,ze=!1){return new At(re,this._checker,this._ngZone,this._document,ze,this._injector)}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(zt),r.KVO(r.SKi),r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),Ot=(()=>{class Ee{get enabled(){return this.focusTrap?.enabled||!1}set enabled(re){this.focusTrap&&(this.focusTrap.enabled=re)}constructor(re,ze,gt){this._elementRef=re,this._focusTrapFactory=ze,this._previouslyFocusedElement=null,(0,r.WQX)(g.OD).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(re){const ze=re.autoCapture;ze&&!ze.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,g.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.rXU(r.aKT),r.rXU(Et),r.rXU(t.qQ))};static#t=this.\u0275dir=r.FsC({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",r.L39],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",r.L39]},exportAs:["cdkTrapFocus"],standalone:!0,features:[r.GFd,r.OA$]})}return Ee})();function oe(Ee){return 0===Ee.buttons||0===Ee.detail}function Fe(Ee){const Je=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Je||-1!==Je.identifier||null!=Je.radiusX&&1!==Je.radiusX||null!=Je.radiusY&&1!==Je.radiusY)}const et=new r.nKC("cdk-input-modality-detector-options"),dt={ignoreKeys:[B.A$,B.W3,B.eg,B.Ge,B.FX]},cn=(0,g.BQ)({passive:!0,capture:!0});let Tn=(()=>{class Ee{get mostRecentModality(){return this._modality.value}constructor(re,ze,gt,Ke){this._platform=re,this._mostRecentTarget=null,this._modality=new G.t(null),this._lastTouchMs=0,this._onKeydown=Pe=>{this._options?.ignoreKeys?.some(Re=>Re===Pe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.Fb)(Pe))},this._onMousedown=Pe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(oe(Pe)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.Fb)(Pe))},this._onTouchstart=Pe=>{Fe(Pe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.Fb)(Pe))},this._options={...dt,...Ke},this.modalityDetected=this._modality.pipe((0,X.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,V.F)()),re.isBrowser&&ze.runOutsideAngular(()=>{gt.addEventListener("keydown",this._onKeydown,cn),gt.addEventListener("mousedown",this._onMousedown,cn),gt.addEventListener("touchstart",this._onTouchstart,cn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cn),document.removeEventListener("mousedown",this._onMousedown,cn),document.removeEventListener("touchstart",this._onTouchstart,cn))}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(g.OD),r.KVO(r.SKi),r.KVO(t.qQ),r.KVO(et,8))};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();var On=function(Ee){return Ee[Ee.IMMEDIATE=0]="IMMEDIATE",Ee[Ee.EVENTUAL=1]="EVENTUAL",Ee}(On||{});const Ut=new r.nKC("cdk-focus-monitor-default-options"),Ye=(0,g.BQ)({passive:!0,capture:!0});let ue=(()=>{class Ee{constructor(re,ze,gt,Ke,Pe){this._ngZone=re,this._platform=ze,this._inputModalityDetector=gt,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 e.B,this._rootNodeFocusAndBlurListener=Re=>{for(let ce=(0,g.Fb)(Re);ce;ce=ce.parentElement)"focus"===Re.type?this._onFocus(Re,ce):this._onBlur(Re,ce)},this._document=Ke,this._detectionMode=Pe?.detectionMode||On.IMMEDIATE}monitor(re,ze=!1){const gt=(0,Ie.i8)(re);if(!this._platform.isBrowser||1!==gt.nodeType)return(0,L.of)();const Ke=(0,g.KT)(gt)||this._getDocument(),Pe=this._elementInfo.get(gt);if(Pe)return ze&&(Pe.checkChildren=!0),Pe.subject;const Re={checkChildren:ze,subject:new e.B,rootNode:Ke};return this._elementInfo.set(gt,Re),this._registerGlobalListeners(Re),Re.subject}stopMonitoring(re){const ze=(0,Ie.i8)(re),gt=this._elementInfo.get(ze);gt&&(gt.subject.complete(),this._setClasses(ze),this._elementInfo.delete(ze),this._removeGlobalListeners(gt))}focusVia(re,ze,gt){const Ke=(0,Ie.i8)(re);Ke===this._getDocument().activeElement?this._getClosestElementsInfo(Ke).forEach(([Re,$])=>this._originChanged(Re,ze,$)):(this._setOrigin(ze),"function"==typeof Ke.focus&&Ke.focus(gt))}ngOnDestroy(){this._elementInfo.forEach((re,ze)=>this.stopMonitoring(ze))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:re&&this._isLastInteractionFromInputLabel(re)?"mouse":"program"}_shouldBeAttributedToTouch(re){return this._detectionMode===On.EVENTUAL||!!re?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(re,ze){re.classList.toggle("cdk-focused",!!ze),re.classList.toggle("cdk-touch-focused","touch"===ze),re.classList.toggle("cdk-keyboard-focused","keyboard"===ze),re.classList.toggle("cdk-mouse-focused","mouse"===ze),re.classList.toggle("cdk-program-focused","program"===ze)}_setOrigin(re,ze=!1){this._ngZone.runOutsideAngular(()=>{this._origin=re,this._originFromTouchInteraction="touch"===re&&ze,this._detectionMode===On.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(re,ze){const gt=this._elementInfo.get(ze),Ke=(0,g.Fb)(re);!gt||!gt.checkChildren&&ze!==Ke||this._originChanged(ze,this._getFocusOrigin(Ke),gt)}_onBlur(re,ze){const gt=this._elementInfo.get(ze);!gt||gt.checkChildren&&re.relatedTarget instanceof Node&&ze.contains(re.relatedTarget)||(this._setClasses(ze),this._emitOrigin(gt,null))}_emitOrigin(re,ze){re.subject.observers.length&&this._ngZone.run(()=>re.subject.next(ze))}_registerGlobalListeners(re){if(!this._platform.isBrowser)return;const ze=re.rootNode,gt=this._rootNodeFocusListenerCount.get(ze)||0;gt||this._ngZone.runOutsideAngular(()=>{ze.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ye),ze.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ye)}),this._rootNodeFocusListenerCount.set(ze,gt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,x.Q)(this._stopInputModalityDetector)).subscribe(Ke=>{this._setOrigin(Ke,!0)}))}_removeGlobalListeners(re){const ze=re.rootNode;if(this._rootNodeFocusListenerCount.has(ze)){const gt=this._rootNodeFocusListenerCount.get(ze);gt>1?this._rootNodeFocusListenerCount.set(ze,gt-1):(ze.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ye),ze.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ye),this._rootNodeFocusListenerCount.delete(ze))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(re,ze,gt){this._setClasses(re,ze),this._emitOrigin(gt,ze),this._lastFocusOrigin=ze}_getClosestElementsInfo(re){const ze=[];return this._elementInfo.forEach((gt,Ke)=>{(Ke===re||gt.checkChildren&&Ke.contains(re))&&ze.push([Ke,gt])}),ze}_isLastInteractionFromInputLabel(re){const{_mostRecentTarget:ze,mostRecentModality:gt}=this._inputModalityDetector;if("mouse"!==gt||!ze||ze===re||"INPUT"!==re.nodeName&&"TEXTAREA"!==re.nodeName||re.disabled)return!1;const Ke=re.labels;if(Ke)for(let Pe=0;Pe{class Ee{constructor(re,ze){this._elementRef=re,this._focusMonitor=ze,this._focusOrigin=null,this.cdkFocusChange=new r.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const re=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(re,1===re.nodeType&&re.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ze=>{this._focusOrigin=ze,this.cdkFocusChange.emit(ze)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.rXU(r.aKT),r.rXU(ue))};static#t=this.\u0275dir=r.FsC({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return Ee})();var q=function(Ee){return Ee[Ee.NONE=0]="NONE",Ee[Ee.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",Ee[Ee.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",Ee}(q||{});const Xe="cdk-high-contrast-black-on-white",ht="cdk-high-contrast-white-on-black",at="cdk-high-contrast-active";let St=(()=>{class Ee{constructor(re,ze){this._platform=re,this._document=ze,this._breakpointSubscription=(0,r.WQX)(me.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return q.NONE;const re=this._document.createElement("div");re.style.backgroundColor="rgb(1,2,3)",re.style.position="absolute",this._document.body.appendChild(re);const ze=this._document.defaultView||window,gt=ze&&ze.getComputedStyle?ze.getComputedStyle(re):null,Ke=(gt&>.backgroundColor||"").replace(/ /g,"");switch(re.remove(),Ke){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return q.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return q.BLACK_ON_WHITE}return q.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const re=this._document.body.classList;re.remove(at,Xe,ht),this._hasCheckedHighContrastMode=!0;const ze=this.getHighContrastMode();ze===q.BLACK_ON_WHITE?re.add(at,Xe):ze===q.WHITE_ON_BLACK&&re.add(at,ht)}}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(g.OD),r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),Qe=(()=>{class Ee{constructor(re){re._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(r.KVO(St))};static#t=this.\u0275mod=r.$C({type:Ee});static#n=this.\u0275inj=r.G2t({imports:[he]})}return Ee})()},8203:(Rt,De,c)=>{c.d(De,{dS:()=>L,jI:()=>A});var t=c(3953),r=c(177);const g=new t.nKC("cdk-dir-doc",{providedIn:"root",factory:function e(){return(0,t.WQX)(r.qQ)}}),M=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let L=(()=>{class w{constructor(F){this.value="ltr",this.change=new t.bkB,F&&(this.value=function G(w){const I=w?.toLowerCase()||"";return"auto"===I&&typeof navigator<"u"&&navigator?.language?M.test(navigator.language)?"rtl":"ltr":"rtl"===I?"rtl":"ltr"}((F.body?F.body.dir:null)||(F.documentElement?F.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(X){return new(X||w)(t.KVO(g,8))};static#t=this.\u0275prov=t.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),A=(()=>{class w{static#e=this.\u0275fac=function(X){return new(X||w)};static#t=this.\u0275mod=t.$C({type:w});static#n=this.\u0275inj=t.G2t({})}return w})()},3801:(Rt,De,c)=>{c.d(De,{B0:()=>e});var t=c(177),r=c(3953);class g{constructor(A,w){this._document=w;const I=this._textarea=this._document.createElement("textarea"),F=I.style;F.position="fixed",F.top=F.opacity="0",F.left="-999em",I.setAttribute("aria-hidden","true"),I.value=A,I.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(I)}copy(){const A=this._textarea;let w=!1;try{if(A){const I=this._document.activeElement;A.select(),A.setSelectionRange(0,A.value.length),w=this._document.execCommand("copy"),I&&I.focus()}}catch{}return w}destroy(){const A=this._textarea;A&&(A.remove(),this._textarea=void 0)}}let e=(()=>{class B{constructor(w){this._document=w}copy(w){const I=this.beginCopy(w),F=I.copy();return I.destroy(),F}beginCopy(w){return new g(w,this._document)}static#e=this.\u0275fac=function(I){return new(I||B)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})()},4085:(Rt,De,c)=>{c.d(De,{FG:()=>M,OE:()=>g,a1:()=>G,he:()=>r,i8:()=>L});var t=c(3953);function r(A){return null!=A&&"false"!=`${A}`}function g(A,w=0){return function e(A){return!isNaN(parseFloat(A))&&!isNaN(Number(A))}(A)?Number(A):w}function M(A){return Array.isArray(A)?A:[A]}function G(A){return null==A?"":"string"==typeof A?A:`${A}px`}function L(A){return A instanceof t.aKT?A.nativeElement:A}},1391:(Rt,De,c)=>{c.d(De,{Fb:()=>ue,T1:()=>ht});var t=c(3953),r=c(177),g=c(946),e=c(851),M=c(4085),G=c(6860),L=c(1413),B=c(8359),A=c(605),w=c(536),I=c(1985),F=c(7786),X=c(4412),V=c(6977),x=c(6354),ne=c(6697),J=c(8141),be=c(5558),Oe=c(9172),he=c(8203);function Ie(Re){const $=Re.cloneNode(!0),ce=$.querySelectorAll("[id]"),N=Re.nodeName.toLowerCase();$.removeAttribute("id");for(let ke=0;ke=N&&ce<=ke&&$>=ve&&$<=K}function E(Re,$,ce){Re.top+=$,Re.bottom=Re.top+Re.height,Re.left+=ce,Re.right=Re.left+Re.width}function S(Re,$,ce,N){const{top:ke,right:ve,bottom:K,left:U,width:ge,height:qe}=Re,rt=ge*$,Ft=qe*$;return N>ke-Ft&&NU-rt&&ce{this.positions.set(ce,{scrollPosition:{top:ce.scrollTop,left:ce.scrollLeft},clientRect:Z(ce)})})}handleScroll($){const ce=(0,G.Fb)($),N=this.positions.get(ce);if(!N)return null;const ke=N.scrollPosition;let ve,K;if(ce===this._document){const qe=this.getViewportScrollPosition();ve=qe.top,K=qe.left}else ve=ce.scrollTop,K=ce.scrollLeft;const U=ke.top-ve,ge=ke.left-K;return this.positions.forEach((qe,rt)=>{qe.clientRect&&ce!==rt&&ce.contains(rt)&&E(qe.clientRect,U,ge)}),ke.top=ve,ke.left=K,{top:U,left:ge}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Y(Re,$){const ce=Re.rootNodes;if(1===ce.length&&ce[0].nodeType===$.ELEMENT_NODE)return ce[0];const N=$.createElement("div");return ce.forEach(ke=>N.appendChild(ke)),N}function se(Re,$,ce){for(let N in $)if($.hasOwnProperty(N)){const ke=$[N];ke?Re.setProperty(N,ke,ce?.has(N)?"important":""):Re.removeProperty(N)}return Re}function Be(Re,$){const ce=$?"":"none";se(Re.style,{"touch-action":$?"":"none","-webkit-user-drag":$?"":"none","-webkit-tap-highlight-color":$?"":"transparent","user-select":ce,"-ms-user-select":ce,"-webkit-user-select":ce,"-moz-user-select":ce})}function Pt(Re,$,ce){se(Re.style,{position:$?"":"fixed",top:$?"":"0",opacity:$?"":"0",left:$?"":"-999em"},ce)}function vt(Re,$){return $&&"none"!=$?Re+" "+$:Re}function wt(Re,$){Re.style.width=`${$.width}px`,Re.style.height=`${$.height}px`,Re.style.transform=Le($.left,$.top)}function Le(Re,$){return`translate3d(${Math.round(Re)}px, ${Math.round($)}px, 0)`}function zt(Re){const $=Re.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Re)*$}function st(Re,$){return Re.getPropertyValue($).split(",").map(N=>N.trim())}const Ct=new Set(["position"]);class It{get element(){return this._preview}constructor($,ce,N,ke,ve,K,U,ge,qe){this._document=$,this._rootElement=ce,this._direction=N,this._initialDomRect=ke,this._previewTemplate=ve,this._previewClass=K,this._pickupPositionOnPage=U,this._initialTransform=ge,this._zIndex=qe}attach($){this._preview=this._createPreview(),$.appendChild(this._preview),"showPopover"in this._preview&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform($){this._preview.style.transform=$}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass($){this._preview.classList.add($)}getTransitionDuration(){return function xt(Re){const $=getComputedStyle(Re),ce=st($,"transition-property"),N=ce.find(U=>"transform"===U||"all"===U);if(!N)return 0;const ke=ce.indexOf(N),ve=st($,"transition-duration"),K=st($,"transition-delay");return zt(ve[ke])+zt(K[ke])}(this._preview)}addEventListener($,ce){this._preview.addEventListener($,ce)}removeEventListener($,ce){this._preview.removeEventListener($,ce)}_createPreview(){const $=this._previewTemplate,ce=this._previewClass,N=$?$.template:null;let ke;if(N&&$){const ve=$.matchSize?this._initialDomRect:null,K=$.viewContainer.createEmbeddedView(N,$.context);K.detectChanges(),ke=Y(K,this._document),this._previewEmbeddedView=K,$.matchSize?wt(ke,ve):ke.style.transform=Le(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else ke=Ie(this._rootElement),wt(ke,this._initialDomRect),this._initialTransform&&(ke.style.transform=this._initialTransform);return se(ke.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Ct),Be(ke,!1),ke.classList.add("cdk-drag-preview"),ke.setAttribute("popover","manual"),ke.setAttribute("dir",this._direction),ce&&(Array.isArray(ce)?ce.forEach(ve=>ke.classList.add(ve)):ke.classList.add(ce)),ke}}const Tt=(0,G.BQ)({passive:!0}),en=(0,G.BQ)({passive:!1}),jt=(0,G.BQ)({passive:!1,capture:!0}),fn=new Set(["position"]);class Hn{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled($){$!==this._disabled&&(this._disabled=$,this._toggleNativeDragInteractions(),this._handles.forEach(ce=>Be(ce,$)))}constructor($,ce,N,ke,ve,K){this._config=ce,this._document=N,this._ngZone=ke,this._viewportRuler=ve,this._dragDropRegistry=K,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=(0,t.vPA)(!1),this._moveEvents=new L.B,this._pointerMoveSubscription=B.yU.EMPTY,this._pointerUpSubscription=B.yU.EMPTY,this._scrollSubscription=B.yU.EMPTY,this._resizeSubscription=B.yU.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new L.B,this.started=new L.B,this.released=new L.B,this.ended=new L.B,this.entered=new L.B,this.exited=new L.B,this.dropped=new L.B,this.moved=this._moveEvents,this._pointerDown=U=>{if(this.beforeStarted.next(),this._handles.length){const ge=this._getTargetHandle(U);ge&&!this._disabledHandles.has(ge)&&!this.disabled&&this._initializeDragSequence(ge,U)}else this.disabled||this._initializeDragSequence(this._rootElement,U)},this._pointerMove=U=>{const ge=this._getPointerPositionOnPage(U);if(!this._hasStartedDragging()){if(Math.abs(ge.x-this._pickupPositionOnPage.x)+Math.abs(ge.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Cn=Date.now()>=this._dragStartTime+this._getDragStartDelay(U),Zn=this._dropContainer;if(!Cn)return void this._endDragSequence(U);(!Zn||!Zn.isDragging()&&!Zn.isReceiving())&&(U.cancelable&&U.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(U)))}return}U.cancelable&&U.preventDefault();const qe=this._getConstrainedPointerPosition(ge);if(this._hasMoved=!0,this._lastKnownPointerPosition=ge,this._updatePointerDirectionDelta(qe),this._dropContainer)this._updateActiveDropContainer(qe,ge);else{const rt=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,Ft=this._activeTransform;Ft.x=qe.x-rt.x+this._passiveTransform.x,Ft.y=qe.y-rt.y+this._passiveTransform.y,this._applyRootElementTransform(Ft.x,Ft.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:qe,event:U,distance:this._getDragDistance(qe),delta:this._pointerDirectionDelta})})},this._pointerUp=U=>{this._endDragSequence(U)},this._nativeDragStart=U=>{if(this._handles.length){const ge=this._getTargetHandle(U);ge&&!this._disabledHandles.has(ge)&&!this.disabled&&U.preventDefault()}else this.disabled||U.preventDefault()},this.withRootElement($).withParent(ce.parentDragRef||null),this._parentPositions=new R(N),K.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles($){this._handles=$.map(N=>(0,M.i8)(N)),this._handles.forEach(N=>Be(N,this.disabled)),this._toggleNativeDragInteractions();const ce=new Set;return this._disabledHandles.forEach(N=>{this._handles.indexOf(N)>-1&&ce.add(N)}),this._disabledHandles=ce,this}withPreviewTemplate($){return this._previewTemplate=$,this}withPlaceholderTemplate($){return this._placeholderTemplate=$,this}withRootElement($){const ce=(0,M.i8)($);return ce!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ce.addEventListener("mousedown",this._pointerDown,en),ce.addEventListener("touchstart",this._pointerDown,Tt),ce.addEventListener("dragstart",this._nativeDragStart,en)}),this._initialTransform=void 0,this._rootElement=ce),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement($){return this._boundaryElement=$?(0,M.i8)($):null,this._resizeSubscription.unsubscribe(),$&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent($){return this._parentDragRef=$,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle($){!this._disabledHandles.has($)&&this._handles.indexOf($)>-1&&(this._disabledHandles.add($),Be($,!0))}enableHandle($){this._disabledHandles.has($)&&(this._disabledHandles.delete($),Be($,this.disabled))}withDirection($){return this._direction=$,this}_withDropContainer($){this._dropContainer=$}getFreeDragPosition(){const $=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:$.x,y:$.y}}setFreeDragPosition($){return this._activeTransform={x:0,y:0},this._passiveTransform.x=$.x,this._passiveTransform.y=$.y,this._dropContainer||this._applyRootElementTransform($.x,$.y),this}withPreviewContainer($){return this._previewContainer=$,this}_sortFromLastPointerPosition(){const $=this._lastKnownPointerPosition;$&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition($),$)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",At,jt)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence($){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging()))if(this.released.next({source:this,event:$}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts($),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ce=this._getPointerPositionOnPage($);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ce),dropPoint:ce,event:$})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence($){bt($)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ce=this._getShadowRoot(),N=this._dropContainer;if(ce&&this._ngZone.runOutsideAngular(()=>{ce.addEventListener("selectstart",At,jt)}),N){const ke=this._rootElement,ve=ke.parentNode,K=this._placeholder=this._createPlaceholderElement(),U=this._anchor=this._anchor||this._document.createComment("");ve.insertBefore(U,ke),this._initialTransform=ke.style.transform||"",this._preview=new It(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(ve,ce)),Pt(ke,!1,fn),this._document.body.appendChild(ve.replaceChild(K,ke)),this.started.next({source:this,event:$}),N.start(),this._initialContainer=N,this._initialIndex=N.getItemIndex(this)}else this.started.next({source:this,event:$}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(N?N.getScrollableParents():[])}_initializeDragSequence($,ce){this._parentDragRef&&ce.stopPropagation();const N=this.isDragging(),ke=bt(ce),ve=!ke&&0!==ce.button,K=this._rootElement,U=(0,G.Fb)(ce),ge=!ke&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),qe=ke?(0,e.w6)(ce):(0,e._G)(ce);if(U&&U.draggable&&"mousedown"===ce.type&&ce.preventDefault(),N||ve||ge||qe)return;if(this._handles.length){const rn=K.style;this._rootElementTapHighlight=rn.webkitTapHighlightColor||"",rn.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(rn=>this._updateOnScroll(rn)),this._boundaryElement&&(this._boundaryRect=Z(this._boundaryElement));const rt=this._previewTemplate;this._pickupPositionInElement=rt&&rt.template&&!rt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,$,ce);const Ft=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ce);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Ft.x,y:Ft.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ce)}_cleanupDragArtifacts($){Pt(this._rootElement,!0,fn),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ce=this._dropContainer,N=ce.getItemIndex(this),ke=this._getPointerPositionOnPage($),ve=this._getDragDistance(ke),K=ce._isOverContainer(ke.x,ke.y);this.ended.next({source:this,distance:ve,dropPoint:ke,event:$}),this.dropped.next({item:this,currentIndex:N,previousIndex:this._initialIndex,container:ce,previousContainer:this._initialContainer,isPointerOverContainer:K,distance:ve,dropPoint:ke,event:$}),ce.drop(this,N,this._initialIndex,this._initialContainer,K,ve,ke,$),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:$,y:ce},{x:N,y:ke}){let ve=this._initialContainer._getSiblingContainerFromPosition(this,$,ce);!ve&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer($,ce)&&(ve=this._initialContainer),ve&&ve!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ve,this._dropContainer.enter(this,$,ce,ve===this._initialContainer&&ve.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ve,currentIndex:ve.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(N,ke),this._dropContainer._sortItem(this,$,ce,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform($,ce):this._applyPreviewTransform($-this._pickupPositionInElement.x,ce-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const $=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform($.left,$.top);const ce=this._preview.getTransitionDuration();return 0===ce?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(N=>{const ke=K=>{(!K||this._preview&&(0,G.Fb)(K)===this._preview.element&&"transform"===K.propertyName)&&(this._preview?.removeEventListener("transitionend",ke),N(),clearTimeout(ve))},ve=setTimeout(ke,1.5*ce);this._preview.addEventListener("transitionend",ke)}))}_createPlaceholderElement(){const $=this._placeholderTemplate,ce=$?$.template:null;let N;return ce?(this._placeholderRef=$.viewContainer.createEmbeddedView(ce,$.context),this._placeholderRef.detectChanges(),N=Y(this._placeholderRef,this._document)):N=Ie(this._rootElement),N.style.pointerEvents="none",N.classList.add("cdk-drag-placeholder"),N}_getPointerPositionInElement($,ce,N){const ke=ce===this._rootElement?null:ce,ve=ke?ke.getBoundingClientRect():$,K=bt(N)?N.targetTouches[0]:N,U=this._getViewportScrollPosition();return{x:ve.left-$.left+(K.pageX-ve.left-U.left),y:ve.top-$.top+(K.pageY-ve.top-U.top)}}_getPointerPositionOnPage($){const ce=this._getViewportScrollPosition(),N=bt($)?$.touches[0]||$.changedTouches[0]||{pageX:0,pageY:0}:$,ke=N.pageX-ce.left,ve=N.pageY-ce.top;if(this._ownerSVGElement){const K=this._ownerSVGElement.getScreenCTM();if(K){const U=this._ownerSVGElement.createSVGPoint();return U.x=ke,U.y=ve,U.matrixTransform(K.inverse())}}return{x:ke,y:ve}}_getConstrainedPointerPosition($){const ce=this._dropContainer?this._dropContainer.lockAxis:null;let{x:N,y:ke}=this.constrainPosition?this.constrainPosition($,this,this._initialDomRect,this._pickupPositionInElement):$;if("x"===this.lockAxis||"x"===ce?ke=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===ce)&&(N=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:ve,y:K}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,U=this._boundaryRect,{width:ge,height:qe}=this._getPreviewRect(),rt=U.top+K,Ft=U.bottom-(qe-K);N=zn(N,U.left+ve,U.right-(ge-ve)),ke=zn(ke,rt,Ft)}return{x:N,y:ke}}_updatePointerDirectionDelta($){const{x:ce,y:N}=$,ke=this._pointerDirectionDelta,ve=this._pointerPositionAtLastDirectionChange,K=Math.abs(ce-ve.x),U=Math.abs(N-ve.y);return K>this._config.pointerDirectionChangeThreshold&&(ke.x=ce>ve.x?1:-1,ve.x=ce),U>this._config.pointerDirectionChangeThreshold&&(ke.y=N>ve.y?1:-1,ve.y=N),ke}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const $=this._handles.length>0||!this.isDragging();$!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=$,Be(this._rootElement,$))}_removeRootElementListeners($){$.removeEventListener("mousedown",this._pointerDown,en),$.removeEventListener("touchstart",this._pointerDown,Tt),$.removeEventListener("dragstart",this._nativeDragStart,en)}_applyRootElementTransform($,ce){const N=Le($,ce),ke=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=ke.transform&&"none"!=ke.transform?ke.transform:""),ke.transform=vt(N,this._initialTransform)}_applyPreviewTransform($,ce){const N=this._previewTemplate?.template?void 0:this._initialTransform,ke=Le($,ce);this._preview.setTransform(vt(ke,N))}_getDragDistance($){const ce=this._pickupPositionOnPage;return ce?{x:$.x-ce.x,y:$.y-ce.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:$,y:ce}=this._passiveTransform;if(0===$&&0===ce||this.isDragging()||!this._boundaryElement)return;const N=this._rootElement.getBoundingClientRect(),ke=this._boundaryElement.getBoundingClientRect();if(0===ke.width&&0===ke.height||0===N.width&&0===N.height)return;const ve=ke.left-N.left,K=N.right-ke.right,U=ke.top-N.top,ge=N.bottom-ke.bottom;ke.width>N.width?(ve>0&&($+=ve),K>0&&($-=K)):$=0,ke.height>N.height?(U>0&&(ce+=U),ge>0&&(ce-=ge)):ce=0,($!==this._passiveTransform.x||ce!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ce,x:$})}_getDragStartDelay($){const ce=this.dragStartDelay;return"number"==typeof ce?ce:bt($)?ce.touch:ce?ce.mouse:0}_updateOnScroll($){const ce=this._parentPositions.handleScroll($);if(ce){const N=(0,G.Fb)($);this._boundaryRect&&N!==this._boundaryElement&&N.contains(this._boundaryElement)&&E(this._boundaryRect,ce.top,ce.left),this._pickupPositionOnPage.x+=ce.left,this._pickupPositionOnPage.y+=ce.top,this._dropContainer||(this._activeTransform.x-=ce.left,this._activeTransform.y-=ce.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,G.KT)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint($,ce){const N=this._previewContainer||"global";if("parent"===N)return $;if("global"===N){const ke=this._document;return ce||ke.fullscreenElement||ke.webkitFullscreenElement||ke.mozFullScreenElement||ke.msFullscreenElement||ke.body}return(0,M.i8)(N)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle($){return this._handles.find(ce=>$.target&&($.target===ce||ce.contains($.target)))}}function zn(Re,$,ce){return Math.max($,Math.min(ce,Re))}function bt(Re){return"t"===Re.type[0]}function At(Re){Re.preventDefault()}function Et(Re,$,ce){const N=Ue($,Re.length-1),ke=Ue(ce,Re.length-1);if(N===ke)return;const ve=Re[N],K=ke0)return null;const U="horizontal"===this.orientation,ge=ve.findIndex(Gn=>Gn.drag===$),qe=ve[K],Ft=qe.clientRect,rn=ge>K?1:-1,Cn=this._getItemOffsetPx(ve[ge].clientRect,Ft,rn),Zn=this._getSiblingOffsetPx(ge,ve,rn),jn=ve.slice();return Et(ve,ge,K),ve.forEach((Gn,Ti)=>{if(jn[Ti]===Gn)return;const Oi=Gn.drag===$,lo=Oi?Cn:Zn,Zi=Oi?$.getPlaceholderElement():Gn.drag.getRootElement();Gn.offset+=lo,U?(Zi.style.transform=vt(`translate3d(${Math.round(Gn.offset)}px, 0, 0)`,Gn.initialTransform),E(Gn.clientRect,0,lo)):(Zi.style.transform=vt(`translate3d(0, ${Math.round(Gn.offset)}px, 0)`,Gn.initialTransform),E(Gn.clientRect,lo,0))}),this._previousSwap.overlaps=pe(Ft,ce,N),this._previousSwap.drag=qe.drag,this._previousSwap.delta=U?ke.x:ke.y,{previousIndex:ge,currentIndex:K}}enter($,ce,N,ke){const ve=null==ke||ke<0?this._getItemIndexFromPointerPosition($,ce,N):ke,K=this._activeDraggables,U=K.indexOf($),ge=$.getPlaceholderElement();let qe=K[ve];if(qe===$&&(qe=K[ve+1]),!qe&&(null==ve||-1===ve||ve-1&&K.splice(U,1),qe&&!this._dragDropRegistry.isDragging(qe)){const rt=qe.getRootElement();rt.parentElement.insertBefore(ge,rt),K.splice(ve,0,$)}else this._element.appendChild(ge),K.push($);ge.style.transform="",this._cacheItemPositions()}withItems($){this._activeDraggables=$.slice(),this._cacheItemPositions()}withSortPredicate($){this._sortPredicate=$}reset(){this._activeDraggables?.forEach($=>{const ce=$.getRootElement();if(ce){const N=this._itemPositions.find(ke=>ke.drag===$)?.initialTransform;ce.style.transform=N||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex($){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(N=>N.drag===$)}updateOnScroll($,ce){this._itemPositions.forEach(({clientRect:N})=>{E(N,$,ce)}),this._itemPositions.forEach(({drag:N})=>{this._dragDropRegistry.isDragging(N)&&N._sortFromLastPointerPosition()})}withElementContainer($){this._element=$}_cacheItemPositions(){const $="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(ce=>{const N=ce.getVisibleElement();return{drag:ce,offset:0,initialTransform:N.style.transform||"",clientRect:Z(N)}}).sort((ce,N)=>$?ce.clientRect.left-N.clientRect.left:ce.clientRect.top-N.clientRect.top)}_getItemOffsetPx($,ce,N){const ke="horizontal"===this.orientation;let ve=ke?ce.left-$.left:ce.top-$.top;return-1===N&&(ve+=ke?ce.width-$.width:ce.height-$.height),ve}_getSiblingOffsetPx($,ce,N){const ke="horizontal"===this.orientation,ve=ce[$].clientRect,K=ce[$+-1*N];let U=ve[ke?"width":"height"]*N;if(K){const ge=ke?"left":"top",qe=ke?"right":"bottom";-1===N?U-=K.clientRect[ge]-ve[qe]:U+=ve[ge]-K.clientRect[qe]}return U}_shouldEnterAsFirstChild($,ce){if(!this._activeDraggables.length)return!1;const N=this._itemPositions,ke="horizontal"===this.orientation;if(N[0].drag!==this._activeDraggables[0]){const K=N[N.length-1].clientRect;return ke?$>=K.right:ce>=K.bottom}{const K=N[0].clientRect;return ke?$<=K.left:ce<=K.top}}_getItemIndexFromPointerPosition($,ce,N,ke){const ve="horizontal"===this.orientation,K=this._itemPositions.findIndex(({drag:U,clientRect:ge})=>U!==$&&((!ke||U!==this._previousSwap.drag||!this._previousSwap.overlaps||(ve?ke.x:ke.y)!==this._previousSwap.delta)&&(ve?ce>=Math.floor(ge.left)&&ce=Math.floor(ge.top)&&Nge?rt.after(qe):rt.before(qe),Et(this._activeItems,ge,ve);const Ft=this._getRootNode().elementFromPoint(ce,N);return K.deltaX=ke.x,K.deltaY=ke.y,K.drag=U,K.overlaps=rt===Ft||rt.contains(Ft),{previousIndex:ge,currentIndex:ve}}enter($,ce,N,ke){let ve=null==ke||ke<0?this._getItemIndexFromPointerPosition($,ce,N):ke;-1===ve&&(ve=this._getClosestItemIndexToPointer($,ce,N));const K=this._activeItems[ve],U=this._activeItems.indexOf($);U>-1&&this._activeItems.splice(U,1),K&&!this._dragDropRegistry.isDragging(K)?(this._activeItems.splice(ve,0,$),K.getRootElement().before($.getPlaceholderElement())):(this._activeItems.push($),this._element.appendChild($.getPlaceholderElement()))}withItems($){this._activeItems=$.slice()}withSortPredicate($){this._sortPredicate=$}reset(){const $=this._element,ce=this._previousSwap;for(let N=this._relatedNodes.length-1;N>-1;N--){const[ke,ve]=this._relatedNodes[N];ke.parentNode===$&&ke.nextSibling!==ve&&(null===ve?$.appendChild(ke):ve.parentNode===$&&$.insertBefore(ke,ve))}this._relatedNodes=[],this._activeItems=[],ce.drag=null,ce.deltaX=ce.deltaY=0,ce.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex($){return this._activeItems.indexOf($)}updateOnScroll(){this._activeItems.forEach($=>{this._dragDropRegistry.isDragging($)&&$._sortFromLastPointerPosition()})}withElementContainer($){$!==this._element&&(this._element=$,this._rootNode=void 0)}_getItemIndexFromPointerPosition($,ce,N){const ke=this._getRootNode().elementFromPoint(Math.floor(ce),Math.floor(N)),ve=ke?this._activeItems.findIndex(K=>{const U=K.getRootElement();return ke===U||U.contains(ke)}):-1;return-1!==ve&&this._sortPredicate(ve,$)?ve:-1}_getRootNode(){return this._rootNode||(this._rootNode=(0,G.KT)(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer($,ce,N){if(0===this._activeItems.length)return-1;if(1===this._activeItems.length)return 0;let ke=1/0,ve=-1;for(let K=0;K!0,this.sortPredicate=()=>!0,this.beforeStarted=new L.B,this.entered=new L.B,this.exited=new L.B,this.dropped=new L.B,this.sorted=new L.B,this.receivingStarted=new L.B,this.receivingStopped=new L.B,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=B.yU.EMPTY,this._verticalScrollDirection=Fe.NONE,this._horizontalScrollDirection=et.NONE,this._stopScrollTimers=new L.B,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),(0,A.Y)(0,w.X).pipe((0,V.Q)(this._stopScrollTimers)).subscribe(()=>{const U=this._scrollNode,ge=this.autoScrollStep;this._verticalScrollDirection===Fe.UP?U.scrollBy(0,-ge):this._verticalScrollDirection===Fe.DOWN&&U.scrollBy(0,ge),this._horizontalScrollDirection===et.LEFT?U.scrollBy(-ge,0):this._horizontalScrollDirection===et.RIGHT&&U.scrollBy(ge,0)})};const K=this.element=(0,M.i8)($);this._document=N,this.withOrientation("vertical").withElementContainer(K),ce.registerDropContainer(this),this._parentPositions=new R(N)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter($,ce,N,ke){this._draggingStarted(),null==ke&&this.sortingDisabled&&(ke=this._draggables.indexOf($)),this._sortStrategy.enter($,ce,N,ke),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:$,container:this,currentIndex:this.getItemIndex($)})}exit($){this._reset(),this.exited.next({item:$,container:this})}drop($,ce,N,ke,ve,K,U,ge={}){this._reset(),this.dropped.next({item:$,currentIndex:ce,previousIndex:N,container:this,previousContainer:ke,isPointerOverContainer:ve,distance:K,dropPoint:U,event:ge})}withItems($){const ce=this._draggables;return this._draggables=$,$.forEach(N=>N._withDropContainer(this)),this.isDragging()&&(ce.filter(ke=>ke.isDragging()).every(ke=>-1===$.indexOf(ke))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection($){return this._direction=$,this._sortStrategy instanceof Ae&&(this._sortStrategy.direction=$),this}connectedTo($){return this._siblings=$.slice(),this}withOrientation($){if("mixed"===$)this._sortStrategy=new ie(this._document,this._dragDropRegistry);else{const ce=new Ae(this._dragDropRegistry);ce.direction=this._direction,ce.orientation=$,this._sortStrategy=ce}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((ce,N)=>this.sortPredicate(ce,N,this)),this}withScrollableParents($){const ce=this._container;return this._scrollableElements=-1===$.indexOf(ce)?[ce,...$]:$.slice(),this}withElementContainer($){if($===this._container)return this;(0,M.i8)(this.element);const N=this._scrollableElements.indexOf(this._container),ke=this._scrollableElements.indexOf($);return N>-1&&this._scrollableElements.splice(N,1),ke>-1&&this._scrollableElements.splice(ke,1),this._sortStrategy&&this._sortStrategy.withElementContainer($),this._cachedShadowRoot=null,this._scrollableElements.unshift($),this._container=$,this}getScrollableParents(){return this._scrollableElements}getItemIndex($){return this._isDragging?this._sortStrategy.getItemIndex($):this._draggables.indexOf($)}isReceiving(){return this._activeSiblings.size>0}_sortItem($,ce,N,ke){if(this.sortingDisabled||!this._domRect||!S(this._domRect,.05,ce,N))return;const ve=this._sortStrategy.sort($,ce,N,ke);ve&&this.sorted.next({previousIndex:ve.previousIndex,currentIndex:ve.currentIndex,container:this,item:$})}_startScrollingIfNecessary($,ce){if(this.autoScrollDisabled)return;let N,ke=Fe.NONE,ve=et.NONE;if(this._parentPositions.positions.forEach((K,U)=>{U===this._document||!K.clientRect||N||S(K.clientRect,.05,$,ce)&&([ke,ve]=function Tn(Re,$,ce,N,ke){const ve=Kt($,ke),K=cn($,N);let U=Fe.NONE,ge=et.NONE;if(ve){const qe=Re.scrollTop;ve===Fe.UP?qe>0&&(U=Fe.UP):Re.scrollHeight-qe>Re.clientHeight&&(U=Fe.DOWN)}if(K){const qe=Re.scrollLeft;"rtl"===ce?K===et.RIGHT?qe<0&&(ge=et.RIGHT):Re.scrollWidth+qe>Re.clientWidth&&(ge=et.LEFT):K===et.LEFT?qe>0&&(ge=et.LEFT):Re.scrollWidth-qe>Re.clientWidth&&(ge=et.RIGHT)}return[U,ge]}(U,K.clientRect,this._direction,$,ce),(ke||ve)&&(N=U))}),!ke&&!ve){const{width:K,height:U}=this._viewportRuler.getViewportSize(),ge={width:K,height:U,top:0,right:K,bottom:U,left:0};ke=Kt(ge,ce),ve=cn(ge,$),N=window}N&&(ke!==this._verticalScrollDirection||ve!==this._horizontalScrollDirection||N!==this._scrollNode)&&(this._verticalScrollDirection=ke,this._horizontalScrollDirection=ve,this._scrollNode=N,(ke||ve)&&N?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const $=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=$.msScrollSnapType||$.scrollSnapType||"",$.scrollSnapType=$.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;const $=this._container.style;$.scrollSnapType=$.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(ce=>ce._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer($,ce){return null!=this._domRect&&pe(this._domRect,$,ce)}_getSiblingContainerFromPosition($,ce,N){return this._siblings.find(ke=>ke._canReceive($,ce,N))}_canReceive($,ce,N){if(!this._domRect||!pe(this._domRect,ce,N)||!this.enterPredicate($,this))return!1;const ke=this._getShadowRoot().elementFromPoint(ce,N);return!!ke&&(ke===this._container||this._container.contains(ke))}_startReceiving($,ce){const N=this._activeSiblings;!N.has($)&&ce.every(ke=>this.enterPredicate(ke,this)||this._draggables.indexOf(ke)>-1)&&(N.add($),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:$,receiver:this,items:ce}))}_stopReceiving($){this._activeSiblings.delete($),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:$,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe($=>{if(this.isDragging()){const ce=this._parentPositions.handleScroll($);ce&&this._sortStrategy.updateOnScroll(ce.top,ce.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const $=(0,G.KT)(this._container);this._cachedShadowRoot=$||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const $=this._sortStrategy.getActiveItemsSnapshot().filter(ce=>ce.isDragging());this._siblings.forEach(ce=>ce._startReceiving(this,$))}}function Kt(Re,$){const{top:ce,bottom:N,height:ke}=Re,ve=.05*ke;return $>=ce-ve&&$<=ce+ve?Fe.UP:$>=N-ve&&$<=N+ve?Fe.DOWN:Fe.NONE}function cn(Re,$){const{left:ce,right:N,width:ke}=Re,ve=.05*ke;return $>=ce-ve&&$<=ce+ve?et.LEFT:$>=N-ve&&$<=N+ve?et.RIGHT:et.NONE}const Wn=(0,G.BQ)({passive:!1,capture:!0}),kn=new Set;let Vn=(()=>{class Re{static#e=this.\u0275fac=function(N){return new(N||Re)};static#t=this.\u0275cmp=t.VBU({type:Re,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[t.aNF],decls:0,vars:0,template:function(N,ke){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"],encapsulation:2,changeDetection:0})}return Re})(),Un=(()=>{class Re{constructor(ce,N){this._ngZone=ce,this._appRef=(0,t.WQX)(t.o8S),this._environmentInjector=(0,t.WQX)(t.uvJ),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=(0,t.vPA)([]),this._globalListeners=new Map,this._draggingPredicate=ke=>ke.isDragging(),this.pointerMove=new L.B,this.pointerUp=new L.B,this.scroll=new L.B,this._preventDefaultWhileDragging=ke=>{this._activeDragInstances().length>0&&ke.preventDefault()},this._persistentTouchmoveListener=ke=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&ke.preventDefault(),this.pointerMove.next(ke))},this._document=N}registerDropContainer(ce){this._dropInstances.has(ce)||this._dropInstances.add(ce)}registerDragItem(ce){this._dragInstances.add(ce),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Wn)})}removeDropContainer(ce){this._dropInstances.delete(ce)}removeDragItem(ce){this._dragInstances.delete(ce),this.stopDragging(ce),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Wn)}startDragging(ce,N){if(!(this._activeDragInstances().indexOf(ce)>-1)&&(this._loadResets(),this._activeDragInstances.update(ke=>[...ke,ce]),1===this._activeDragInstances().length)){const ke=N.type.startsWith("touch");this._globalListeners.set(ke?"touchend":"mouseup",{handler:ve=>this.pointerUp.next(ve),options:!0}).set("scroll",{handler:ve=>this.scroll.next(ve),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Wn}),ke||this._globalListeners.set("mousemove",{handler:ve=>this.pointerMove.next(ve),options:Wn}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ve,K)=>{this._document.addEventListener(K,ve.handler,ve.options)})})}}stopDragging(ce){this._activeDragInstances.update(N=>{const ke=N.indexOf(ce);return ke>-1?(N.splice(ke,1),[...N]):N}),0===this._activeDragInstances().length&&this._clearGlobalListeners()}isDragging(ce){return this._activeDragInstances().indexOf(ce)>-1}scrolled(ce){const N=[this.scroll];return ce&&ce!==this._document&&N.push(new I.c(ke=>this._ngZone.runOutsideAngular(()=>{const K=U=>{this._activeDragInstances().length&&ke.next(U)};return ce.addEventListener("scroll",K,!0),()=>{ce.removeEventListener("scroll",K,!0)}}))),(0,F.h)(...N)}ngOnDestroy(){this._dragInstances.forEach(ce=>this.removeDragItem(ce)),this._dropInstances.forEach(ce=>this.removeDropContainer(ce)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ce,N)=>{this._document.removeEventListener(N,ce.handler,ce.options)}),this._globalListeners.clear()}_loadResets(){if(!kn.has(this._appRef)){kn.add(this._appRef);const ce=(0,t.a0P)(Vn,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{kn.delete(this._appRef),0===kn.size&&ce.destroy()})}}static#e=this.\u0275fac=function(N){return new(N||Re)(t.KVO(t.SKi),t.KVO(r.qQ))};static#t=this.\u0275prov=t.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})();const dn={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let qt=(()=>{class Re{constructor(ce,N,ke,ve){this._document=ce,this._ngZone=N,this._viewportRuler=ke,this._dragDropRegistry=ve}createDrag(ce,N=dn){return new Hn(ce,N,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ce){return new dt(ce,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(N){return new(N||Re)(t.KVO(r.qQ),t.KVO(t.SKi),t.KVO(g.Xj),t.KVO(Un))};static#t=this.\u0275prov=t.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})();const On=new t.nKC("CDK_DRAG_PARENT"),Ye=new t.nKC("CdkDragHandle");let ue=(()=>{class Re{get disabled(){return this._disabled}set disabled(ce){this._disabled=ce,this._stateChanges.next(this)}constructor(ce,N){this.element=ce,this._parentDrag=N,this._stateChanges=new L.B,this._disabled=!1,N?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static#e=this.\u0275fac=function(N){return new(N||Re)(t.rXU(t.aKT),t.rXU(On,12))};static#t=this.\u0275dir=t.FsC({type:Re,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",t.L39]},standalone:!0,features:[t.Jv_([{provide:Ye,useExisting:Re}]),t.GFd]})}return Re})();const te=new t.nKC("CDK_DRAG_CONFIG"),Xe=new t.nKC("CdkDropList");let ht=(()=>{class Re{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ce){this._disabled=ce,this._dragRef.disabled=this._disabled}constructor(ce,N,ke,ve,K,U,ge,qe,rt,Ft,rn){this.element=ce,this.dropContainer=N,this._ngZone=ve,this._viewContainerRef=K,this._dir=ge,this._changeDetectorRef=rt,this._selfHandle=Ft,this._parentDrag=rn,this._destroyed=new L.B,this._handles=new X.t([]),this.started=new t.bkB,this.released=new t.bkB,this.ended=new t.bkB,this.entered=new t.bkB,this.exited=new t.bkB,this.dropped=new t.bkB,this.moved=new I.c(Cn=>{const Zn=this._dragRef.moved.pipe((0,x.T)(jn=>({source:this,pointerPosition:jn.pointerPosition,event:jn.event,delta:jn.delta,distance:jn.distance}))).subscribe(Cn);return()=>{Zn.unsubscribe()}}),this._injector=(0,t.WQX)(t.zZn),this._dragRef=qe.createDrag(ce,{dragStartThreshold:U&&null!=U.dragStartThreshold?U.dragStartThreshold:5,pointerDirectionChangeThreshold:U&&null!=U.pointerDirectionChangeThreshold?U.pointerDirectionChangeThreshold:5,zIndex:U?.zIndex}),this._dragRef.data=this,Re._dragInstances.push(this),U&&this._assignDefaults(U),N&&(this._dragRef._withDropContainer(N._dropListRef),N.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(ce){this._dragRef.setFreeDragPosition(ce)}ngAfterViewInit(){(0,t.mal)(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(ce){const N=ce.rootElementSelector,ke=ce.freeDragPosition;N&&!N.firstChange&&this._updateRootElement(),ke&&!ke.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ce=Re._dragInstances.indexOf(this);ce>-1&&Re._dragInstances.splice(ce,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(ce){const N=this._handles.getValue();N.push(ce),this._handles.next(N)}_removeHandle(ce){const N=this._handles.getValue(),ke=N.indexOf(ce);ke>-1&&(N.splice(ke,1),this._handles.next(N))}_setPreviewTemplate(ce){this._previewTemplate=ce}_resetPreviewTemplate(ce){ce===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(ce){this._placeholderTemplate=ce}_resetPlaceholderTemplate(ce){ce===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){const ce=this.element.nativeElement;let N=ce;this.rootElementSelector&&(N=void 0!==ce.closest?ce.closest(this.rootElementSelector):ce.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(N||ce)}_getBoundaryElement(){const ce=this.boundaryElement;return ce?"string"==typeof ce?this.element.nativeElement.closest(ce):(0,M.i8)(ce):null}_syncInputs(ce){ce.beforeStarted.subscribe(()=>{if(!ce.isDragging()){const N=this._dir,ke=this.dragStartDelay,ve=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,K=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ce.disabled=this.disabled,ce.lockAxis=this.lockAxis,ce.dragStartDelay="object"==typeof ke&&ke?ke:(0,M.OE)(ke),ce.constrainPosition=this.constrainPosition,ce.previewClass=this.previewClass,ce.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ve).withPreviewTemplate(K).withPreviewContainer(this.previewContainer||"global"),N&&ce.withDirection(N.value)}}),ce.beforeStarted.pipe((0,ne.s)(1)).subscribe(()=>{if(this._parentDrag)return void ce.withParent(this._parentDrag._dragRef);let N=this.element.nativeElement.parentElement;for(;N;){if(N.classList.contains("cdk-drag")){ce.withParent(Re._dragInstances.find(ke=>ke.element.nativeElement===N)?._dragRef||null);break}N=N.parentElement}})}_handleEvents(ce){ce.started.subscribe(N=>{this.started.emit({source:this,event:N.event}),this._changeDetectorRef.markForCheck()}),ce.released.subscribe(N=>{this.released.emit({source:this,event:N.event})}),ce.ended.subscribe(N=>{this.ended.emit({source:this,distance:N.distance,dropPoint:N.dropPoint,event:N.event}),this._changeDetectorRef.markForCheck()}),ce.entered.subscribe(N=>{this.entered.emit({container:N.container.data,item:this,currentIndex:N.currentIndex})}),ce.exited.subscribe(N=>{this.exited.emit({container:N.container.data,item:this})}),ce.dropped.subscribe(N=>{this.dropped.emit({previousIndex:N.previousIndex,currentIndex:N.currentIndex,previousContainer:N.previousContainer.data,container:N.container.data,isPointerOverContainer:N.isPointerOverContainer,item:this,distance:N.distance,dropPoint:N.dropPoint,event:N.event})})}_assignDefaults(ce){const{lockAxis:N,dragStartDelay:ke,constrainPosition:ve,previewClass:K,boundaryElement:U,draggingDisabled:ge,rootElementSelector:qe,previewContainer:rt}=ce;this.disabled=ge??!1,this.dragStartDelay=ke||0,N&&(this.lockAxis=N),ve&&(this.constrainPosition=ve),K&&(this.previewClass=K),U&&(this.boundaryElement=U),qe&&(this.rootElementSelector=qe),rt&&(this.previewContainer=rt)}_setupHandlesListener(){this._handles.pipe((0,J.M)(ce=>{const N=ce.map(ke=>ke.element);this._selfHandle&&this.rootElementSelector&&N.push(this.element),this._dragRef.withHandles(N)}),(0,be.n)(ce=>(0,F.h)(...ce.map(N=>N._stateChanges.pipe((0,Oe.Z)(N))))),(0,V.Q)(this._destroyed)).subscribe(ce=>{const N=this._dragRef,ke=ce.element.nativeElement;ce.disabled?N.disableHandle(ke):N.enableHandle(ke)})}static#t=this.\u0275fac=function(N){return new(N||Re)(t.rXU(t.aKT),t.rXU(Xe,12),t.rXU(r.qQ),t.rXU(t.SKi),t.rXU(t.c1b),t.rXU(te,8),t.rXU(he.dS,8),t.rXU(qt),t.rXU(t.gRc),t.rXU(Ye,10),t.rXU(On,12))};static#n=this.\u0275dir=t.FsC({type:Re,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(N,ke){2&N&&t.AVh("cdk-drag-disabled",ke.disabled)("cdk-drag-dragging",ke._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",t.L39],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t.Jv_([{provide:On,useExisting:Re}]),t.GFd,t.OA$]})}return Re})()},7336:(Rt,De,c)=>{c.d(De,{A:()=>xt,A$:()=>B,FX:()=>G,Fm:()=>M,G_:()=>r,Ge:()=>Tn,Kp:()=>x,LE:()=>Oe,UQ:()=>J,W3:()=>L,Z:()=>cn,_f:()=>I,bn:()=>Pt,dB:()=>V,eg:()=>hn,f2:()=>z,i7:()=>be,n6:()=>he,rp:()=>Yn,t6:()=>F,w_:()=>X,wn:()=>g,yZ:()=>ne});const r=8,g=9,M=13,G=16,L=17,B=18,I=27,F=32,X=33,V=34,x=35,ne=36,J=37,be=38,Oe=39,he=40,z=48,Pt=57,xt=65,cn=90,Tn=91,hn=224;function Yn(En,...Kn){return Kn.length?Kn.some(oi=>En[oi]):En.altKey||En.shiftKey||En.ctrlKey||En.metaKey}},9327:(Rt,De,c)=>{c.d(De,{DY:()=>J,QP:()=>he});var t=c(3953),r=c(4085),g=c(1413),e=c(4572),M=c(8793),G=c(1985),L=c(6697),B=c(5245),A=c(152),w=c(6354),I=c(9172),F=c(6977),X=c(6860);const x=new Set;let ne,J=(()=>{class de{constructor(z,Z){this._platform=z,this._nonce=Z,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Oe}matchMedia(z){return(this._platform.WEBKIT||this._platform.BLINK)&&function be(de,H){if(!x.has(de))try{ne||(ne=document.createElement("style"),H&&ne.setAttribute("nonce",H),ne.setAttribute("type","text/css"),document.head.appendChild(ne)),ne.sheet&&(ne.sheet.insertRule(`@media ${de} {body{ }}`,0),x.add(de))}catch(z){console.error(z)}}(z,this._nonce),this._matchMedia(z)}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.KVO(X.OD),t.KVO(t.BIS,8))};static#t=this.\u0275prov=t.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();function Oe(de){return{matches:"all"===de||""===de,media:de,addListener:()=>{},removeListener:()=>{}}}let he=(()=>{class de{constructor(z,Z){this._mediaMatcher=z,this._zone=Z,this._queries=new Map,this._destroySubject=new g.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(z){return Ie((0,r.FG)(z)).some(pe=>this._registerQuery(pe).mql.matches)}observe(z){const pe=Ie((0,r.FG)(z)).map(S=>this._registerQuery(S).observable);let E=(0,e.z)(pe);return E=(0,M.x)(E.pipe((0,L.s)(1)),E.pipe((0,B.i)(1),(0,A.B)(0))),E.pipe((0,w.T)(S=>{const R={matches:!1,breakpoints:{}};return S.forEach(({matches:Y,query:se})=>{R.matches=R.matches||Y,R.breakpoints[se]=Y}),R}))}_registerQuery(z){if(this._queries.has(z))return this._queries.get(z);const Z=this._mediaMatcher.matchMedia(z),E={observable:new G.c(S=>{const R=Y=>this._zone.run(()=>S.next(Y));return Z.addListener(R),()=>{Z.removeListener(R)}}).pipe((0,I.Z)(Z),(0,w.T)(({matches:S})=>({query:z,matches:S})),(0,F.Q)(this._destroySubject)),mql:Z};return this._queries.set(z,E),E}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.KVO(J),t.KVO(t.SKi))};static#t=this.\u0275prov=t.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();function Ie(de){return de.map(H=>H.split(",")).reduce((H,z)=>H.concat(z)).map(H=>H.trim())}},7987:(Rt,De,c)=>{c.d(De,{$Q:()=>Et,WB:()=>Ot,hJ:()=>zn,rR:()=>H,uH:()=>z,yY:()=>vt,z_:()=>Ae});var t=c(946),r=c(177),g=c(3953),e=c(4085),M=c(6860),G=c(5964),L=c(6977),B=c(7048),A=c(8203),w=c(6939),I=c(1413),F=c(8359),X=c(7786),V=c(7336);const x=(0,M.CZ)();class ne{constructor(oe,Fe){this._viewportRuler=oe,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Fe}attach(){}enable(){if(this._canBeEnabled()){const oe=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=oe.style.left||"",this._previousHTMLStyles.top=oe.style.top||"",oe.style.left=(0,e.a1)(-this._previousScrollPosition.left),oe.style.top=(0,e.a1)(-this._previousScrollPosition.top),oe.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const oe=this._document.documentElement,et=oe.style,dt=this._document.body.style,Kt=et.scrollBehavior||"",cn=dt.scrollBehavior||"";this._isEnabled=!1,et.left=this._previousHTMLStyles.left,et.top=this._previousHTMLStyles.top,oe.classList.remove("cdk-global-scrollblock"),x&&(et.scrollBehavior=dt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),x&&(et.scrollBehavior=Kt,dt.scrollBehavior=cn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Fe=this._document.body,et=this._viewportRuler.getViewportSize();return Fe.scrollHeight>et.height||Fe.scrollWidth>et.width}}class be{constructor(oe,Fe,et,dt){this._scrollDispatcher=oe,this._ngZone=Fe,this._viewportRuler=et,this._config=dt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(oe){this._overlayRef=oe}enable(){if(this._scrollSubscription)return;const oe=this._scrollDispatcher.scrolled(0).pipe((0,G.p)(Fe=>!Fe||!this._overlayRef.overlayElement.contains(Fe.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=oe.subscribe(()=>{const Fe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Fe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=oe.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Oe{enable(){}disable(){}attach(){}}function he(_e,oe){return oe.some(Fe=>_e.bottomFe.bottom||_e.rightFe.right)}function Ie(_e,oe){return oe.some(Fe=>_e.topFe.bottom||_e.leftFe.right)}class me{constructor(oe,Fe,et,dt){this._scrollDispatcher=oe,this._viewportRuler=Fe,this._ngZone=et,this._config=dt,this._scrollSubscription=null}attach(oe){this._overlayRef=oe}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 Fe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:et,height:dt}=this._viewportRuler.getViewportSize();he(Fe,[{width:et,height:dt,bottom:dt,right:et,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 de=(()=>{class _e{constructor(Fe,et,dt,Kt){this._scrollDispatcher=Fe,this._viewportRuler=et,this._ngZone=dt,this.noop=()=>new Oe,this.close=cn=>new be(this._scrollDispatcher,this._ngZone,this._viewportRuler,cn),this.block=()=>new ne(this._viewportRuler,this._document),this.reposition=cn=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,cn),this._document=Kt}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(t.R),g.KVO(t.Xj),g.KVO(g.SKi),g.KVO(r.qQ))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();class H{constructor(oe){if(this.scrollStrategy=new Oe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,oe){const Fe=Object.keys(oe);for(const et of Fe)void 0!==oe[et]&&(this[et]=oe[et])}}}class z{constructor(oe,Fe,et,dt,Kt){this.offsetX=et,this.offsetY=dt,this.panelClass=Kt,this.originX=oe.originX,this.originY=oe.originY,this.overlayX=Fe.overlayX,this.overlayY=Fe.overlayY}}class pe{constructor(oe,Fe){this.connectionPair=oe,this.scrollableViewProperties=Fe}}let R=(()=>{class _e{constructor(Fe){this._attachedOverlays=[],this._document=Fe}ngOnDestroy(){this.detach()}add(Fe){this.remove(Fe),this._attachedOverlays.push(Fe)}remove(Fe){const et=this._attachedOverlays.indexOf(Fe);et>-1&&this._attachedOverlays.splice(et,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(r.qQ))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),Y=(()=>{class _e extends R{constructor(Fe,et){super(Fe),this._ngZone=et,this._keydownListener=dt=>{const Kt=this._attachedOverlays;for(let cn=Kt.length-1;cn>-1;cn--)if(Kt[cn]._keydownEvents.observers.length>0){const Tn=Kt[cn]._keydownEvents;this._ngZone?this._ngZone.run(()=>Tn.next(dt)):Tn.next(dt);break}}}add(Fe){super.add(Fe),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)}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(r.qQ),g.KVO(g.SKi,8))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),se=(()=>{class _e extends R{constructor(Fe,et,dt){super(Fe),this._platform=et,this._ngZone=dt,this._cursorStyleIsSet=!1,this._pointerDownListener=Kt=>{this._pointerDownEventTarget=(0,M.Fb)(Kt)},this._clickListener=Kt=>{const cn=(0,M.Fb)(Kt),Tn="click"===Kt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:cn;this._pointerDownEventTarget=null;const Wn=this._attachedOverlays.slice();for(let kn=Wn.length-1;kn>-1;kn--){const Vn=Wn[kn];if(Vn._outsidePointerEvents.observers.length<1||!Vn.hasAttached())continue;if(Be(Vn.overlayElement,cn)||Be(Vn.overlayElement,Tn))break;const Un=Vn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Un.next(Kt)):Un.next(Kt)}}}add(Fe){if(super.add(Fe),!this._isAttached){const et=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(et)):this._addEventListeners(et),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=et.style.cursor,et.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Fe=this._document.body;Fe.removeEventListener("pointerdown",this._pointerDownListener,!0),Fe.removeEventListener("click",this._clickListener,!0),Fe.removeEventListener("auxclick",this._clickListener,!0),Fe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Fe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Fe){Fe.addEventListener("pointerdown",this._pointerDownListener,!0),Fe.addEventListener("click",this._clickListener,!0),Fe.addEventListener("auxclick",this._clickListener,!0),Fe.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(r.qQ),g.KVO(M.OD),g.KVO(g.SKi,8))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function Be(_e,oe){const Fe=typeof ShadowRoot<"u"&&ShadowRoot;let et=oe;for(;et;){if(et===_e)return!0;et=Fe&&et instanceof ShadowRoot?et.host:et.parentNode}return!1}let Pt=(()=>{class _e{constructor(Fe,et){this._platform=et,this._document=Fe}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Fe="cdk-overlay-container";if(this._platform.isBrowser||(0,M.v8)()){const dt=this._document.querySelectorAll(`.${Fe}[platform="server"], .${Fe}[platform="test"]`);for(let Kt=0;Ktthis._backdropClick.next(dn),this._backdropTransitionendHandler=dn=>{this._disposeBackdrop(dn.target)},this._keydownEvents=new I.B,this._outsidePointerEvents=new I.B,this._renders=new I.B,dt.scrollStrategy&&(this._scrollStrategy=dt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=dt.positionStrategy,this._afterRenderRef=(0,g.O8t)(()=>(0,g.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(oe){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Fe=this._portalOutlet.attach(oe);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),(0,g.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),"function"==typeof Fe?.onDestroy&&Fe.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Fe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const oe=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),oe}dispose(){const oe=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,oe&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(oe){oe!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=oe,this.hasAttached()&&(oe.attach(this),this.updatePosition()))}updateSize(oe){this._config={...this._config,...oe},this._updateElementSize()}setDirection(oe){this._config={...this._config,direction:oe},this._updateElementDirection()}addPanelClass(oe){this._pane&&this._toggleClasses(this._pane,oe,!0)}removePanelClass(oe){this._pane&&this._toggleClasses(this._pane,oe,!1)}getDirection(){const oe=this._config.direction;return oe?"string"==typeof oe?oe:oe.value:"ltr"}updateScrollStrategy(oe){oe!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=oe,this.hasAttached()&&(oe.attach(this),oe.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const oe=this._pane.style;oe.width=(0,e.a1)(this._config.width),oe.height=(0,e.a1)(this._config.height),oe.minWidth=(0,e.a1)(this._config.minWidth),oe.minHeight=(0,e.a1)(this._config.minHeight),oe.maxWidth=(0,e.a1)(this._config.maxWidth),oe.maxHeight=(0,e.a1)(this._config.maxHeight)}_togglePointerEvents(oe){this._pane.style.pointerEvents=oe?"":"none"}_attachBackdrop(){const oe="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(oe)})}):this._backdropElement.classList.add(oe)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const oe=this._backdropElement;if(oe){if(this._animationsDisabled)return void this._disposeBackdrop(oe);oe.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{oe.addEventListener("transitionend",this._backdropTransitionendHandler)}),oe.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(oe)},500))}}_toggleClasses(oe,Fe,et){const dt=(0,e.FG)(Fe||[]).filter(Kt=>!!Kt);dt.length&&(et?oe.classList.add(...dt):oe.classList.remove(...dt))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const oe=this._renders.pipe((0,L.Q)((0,X.h)(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()),oe.unsubscribe())})})}_disposeScrollStrategy(){const oe=this._scrollStrategy;oe&&(oe.disable(),oe.detach&&oe.detach())}_disposeBackdrop(oe){oe&&(oe.removeEventListener("click",this._backdropClickHandler),oe.removeEventListener("transitionend",this._backdropTransitionendHandler),oe.remove(),this._backdropElement===oe&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const wt="cdk-overlay-connected-position-bounding-box",Le=/([A-Za-z%]+)$/;class zt{get positions(){return this._preferredPositions}constructor(oe,Fe,et,dt,Kt){this._viewportRuler=Fe,this._document=et,this._platform=dt,this._overlayContainer=Kt,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 I.B,this._resizeSubscription=F.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(oe)}attach(oe){this._validatePositions(),oe.hostElement.classList.add(wt),this._overlayRef=oe,this._boundingBox=oe.hostElement,this._pane=oe.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 oe=this._originRect,Fe=this._overlayRect,et=this._viewportRect,dt=this._containerRect,Kt=[];let cn;for(let Tn of this._preferredPositions){let Wn=this._getOriginPoint(oe,dt,Tn),kn=this._getOverlayPoint(Wn,Fe,Tn),Vn=this._getOverlayFit(kn,Fe,et,Tn);if(Vn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Tn,Wn);this._canFitWithFlexibleDimensions(Vn,kn,et)?Kt.push({position:Tn,origin:Wn,overlayRect:Fe,boundingBoxRect:this._calculateBoundingBoxRect(Wn,Tn)}):(!cn||cn.overlayFit.visibleAreaWn&&(Wn=Vn,Tn=kn)}return this._isPushed=!1,void this._applyPosition(Tn.position,Tn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(cn.position,cn.originPoint);this._applyPosition(cn.position,cn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&xt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const oe=this._lastPosition;if(oe){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Fe=this._getOriginPoint(this._originRect,this._containerRect,oe);this._applyPosition(oe,Fe)}else this.apply()}withScrollableContainers(oe){return this._scrollables=oe,this}withPositions(oe){return this._preferredPositions=oe,-1===oe.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(oe){return this._viewportMargin=oe,this}withFlexibleDimensions(oe=!0){return this._hasFlexibleDimensions=oe,this}withGrowAfterOpen(oe=!0){return this._growAfterOpen=oe,this}withPush(oe=!0){return this._canPush=oe,this}withLockedPosition(oe=!0){return this._positionLocked=oe,this}setOrigin(oe){return this._origin=oe,this}withDefaultOffsetX(oe){return this._offsetX=oe,this}withDefaultOffsetY(oe){return this._offsetY=oe,this}withTransformOriginOn(oe){return this._transformOriginSelector=oe,this}_getOriginPoint(oe,Fe,et){let dt,Kt;if("center"==et.originX)dt=oe.left+oe.width/2;else{const cn=this._isRtl()?oe.right:oe.left,Tn=this._isRtl()?oe.left:oe.right;dt="start"==et.originX?cn:Tn}return Fe.left<0&&(dt-=Fe.left),Kt="center"==et.originY?oe.top+oe.height/2:"top"==et.originY?oe.top:oe.bottom,Fe.top<0&&(Kt-=Fe.top),{x:dt,y:Kt}}_getOverlayPoint(oe,Fe,et){let dt,Kt;return dt="center"==et.overlayX?-Fe.width/2:"start"===et.overlayX?this._isRtl()?-Fe.width:0:this._isRtl()?0:-Fe.width,Kt="center"==et.overlayY?-Fe.height/2:"top"==et.overlayY?0:-Fe.height,{x:oe.x+dt,y:oe.y+Kt}}_getOverlayFit(oe,Fe,et,dt){const Kt=Ct(Fe);let{x:cn,y:Tn}=oe,Wn=this._getOffset(dt,"x"),kn=this._getOffset(dt,"y");Wn&&(cn+=Wn),kn&&(Tn+=kn);let dn=0-Tn,qt=Tn+Kt.height-et.height,On=this._subtractOverflows(Kt.width,0-cn,cn+Kt.width-et.width),Ut=this._subtractOverflows(Kt.height,dn,qt),Ye=On*Ut;return{visibleArea:Ye,isCompletelyWithinViewport:Kt.width*Kt.height===Ye,fitsInViewportVertically:Ut===Kt.height,fitsInViewportHorizontally:On==Kt.width}}_canFitWithFlexibleDimensions(oe,Fe,et){if(this._hasFlexibleDimensions){const dt=et.bottom-Fe.y,Kt=et.right-Fe.x,cn=st(this._overlayRef.getConfig().minHeight),Tn=st(this._overlayRef.getConfig().minWidth);return(oe.fitsInViewportVertically||null!=cn&&cn<=dt)&&(oe.fitsInViewportHorizontally||null!=Tn&&Tn<=Kt)}return!1}_pushOverlayOnScreen(oe,Fe,et){if(this._previousPushAmount&&this._positionLocked)return{x:oe.x+this._previousPushAmount.x,y:oe.y+this._previousPushAmount.y};const dt=Ct(Fe),Kt=this._viewportRect,cn=Math.max(oe.x+dt.width-Kt.width,0),Tn=Math.max(oe.y+dt.height-Kt.height,0),Wn=Math.max(Kt.top-et.top-oe.y,0),kn=Math.max(Kt.left-et.left-oe.x,0);let Vn=0,Un=0;return Vn=dt.width<=Kt.width?kn||-cn:oe.xOn&&!this._isInitialRender&&!this._growAfterOpen&&(cn=oe.y-On/2)}if("end"===Fe.overlayX&&!dt||"start"===Fe.overlayX&&dt)dn=et.width-oe.x+2*this._viewportMargin,Vn=oe.x-this._viewportMargin;else if("start"===Fe.overlayX&&!dt||"end"===Fe.overlayX&&dt)Un=oe.x,Vn=et.right-oe.x;else{const qt=Math.min(et.right-oe.x+et.left,oe.x),On=this._lastBoundingBoxSize.width;Vn=2*qt,Un=oe.x-qt,Vn>On&&!this._isInitialRender&&!this._growAfterOpen&&(Un=oe.x-On/2)}return{top:cn,left:Un,bottom:Tn,right:dn,width:Vn,height:Kt}}_setBoundingBoxStyles(oe,Fe){const et=this._calculateBoundingBoxRect(oe,Fe);!this._isInitialRender&&!this._growAfterOpen&&(et.height=Math.min(et.height,this._lastBoundingBoxSize.height),et.width=Math.min(et.width,this._lastBoundingBoxSize.width));const dt={};if(this._hasExactPosition())dt.top=dt.left="0",dt.bottom=dt.right=dt.maxHeight=dt.maxWidth="",dt.width=dt.height="100%";else{const Kt=this._overlayRef.getConfig().maxHeight,cn=this._overlayRef.getConfig().maxWidth;dt.height=(0,e.a1)(et.height),dt.top=(0,e.a1)(et.top),dt.bottom=(0,e.a1)(et.bottom),dt.width=(0,e.a1)(et.width),dt.left=(0,e.a1)(et.left),dt.right=(0,e.a1)(et.right),dt.alignItems="center"===Fe.overlayX?"center":"end"===Fe.overlayX?"flex-end":"flex-start",dt.justifyContent="center"===Fe.overlayY?"center":"bottom"===Fe.overlayY?"flex-end":"flex-start",Kt&&(dt.maxHeight=(0,e.a1)(Kt)),cn&&(dt.maxWidth=(0,e.a1)(cn))}this._lastBoundingBoxSize=et,xt(this._boundingBox.style,dt)}_resetBoundingBoxStyles(){xt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){xt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(oe,Fe){const et={},dt=this._hasExactPosition(),Kt=this._hasFlexibleDimensions,cn=this._overlayRef.getConfig();if(dt){const Vn=this._viewportRuler.getViewportScrollPosition();xt(et,this._getExactOverlayY(Fe,oe,Vn)),xt(et,this._getExactOverlayX(Fe,oe,Vn))}else et.position="static";let Tn="",Wn=this._getOffset(Fe,"x"),kn=this._getOffset(Fe,"y");Wn&&(Tn+=`translateX(${Wn}px) `),kn&&(Tn+=`translateY(${kn}px)`),et.transform=Tn.trim(),cn.maxHeight&&(dt?et.maxHeight=(0,e.a1)(cn.maxHeight):Kt&&(et.maxHeight="")),cn.maxWidth&&(dt?et.maxWidth=(0,e.a1)(cn.maxWidth):Kt&&(et.maxWidth="")),xt(this._pane.style,et)}_getExactOverlayY(oe,Fe,et){let dt={top:"",bottom:""},Kt=this._getOverlayPoint(Fe,this._overlayRect,oe);return this._isPushed&&(Kt=this._pushOverlayOnScreen(Kt,this._overlayRect,et)),"bottom"===oe.overlayY?dt.bottom=this._document.documentElement.clientHeight-(Kt.y+this._overlayRect.height)+"px":dt.top=(0,e.a1)(Kt.y),dt}_getExactOverlayX(oe,Fe,et){let cn,dt={left:"",right:""},Kt=this._getOverlayPoint(Fe,this._overlayRect,oe);return this._isPushed&&(Kt=this._pushOverlayOnScreen(Kt,this._overlayRect,et)),cn=this._isRtl()?"end"===oe.overlayX?"left":"right":"end"===oe.overlayX?"right":"left","right"===cn?dt.right=this._document.documentElement.clientWidth-(Kt.x+this._overlayRect.width)+"px":dt.left=(0,e.a1)(Kt.x),dt}_getScrollVisibility(){const oe=this._getOriginRect(),Fe=this._pane.getBoundingClientRect(),et=this._scrollables.map(dt=>dt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ie(oe,et),isOriginOutsideView:he(oe,et),isOverlayClipped:Ie(Fe,et),isOverlayOutsideView:he(Fe,et)}}_subtractOverflows(oe,...Fe){return Fe.reduce((et,dt)=>et-Math.max(dt,0),oe)}_getNarrowedViewportRect(){const oe=this._document.documentElement.clientWidth,Fe=this._document.documentElement.clientHeight,et=this._viewportRuler.getViewportScrollPosition();return{top:et.top+this._viewportMargin,left:et.left+this._viewportMargin,right:et.left+oe-this._viewportMargin,bottom:et.top+Fe-this._viewportMargin,width:oe-2*this._viewportMargin,height:Fe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(oe,Fe){return"x"===Fe?null==oe.offsetX?this._offsetX:oe.offsetX:null==oe.offsetY?this._offsetY:oe.offsetY}_validatePositions(){}_addPanelClasses(oe){this._pane&&(0,e.FG)(oe).forEach(Fe=>{""!==Fe&&-1===this._appliedPanelClasses.indexOf(Fe)&&(this._appliedPanelClasses.push(Fe),this._pane.classList.add(Fe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(oe=>{this._pane.classList.remove(oe)}),this._appliedPanelClasses=[])}_getOriginRect(){const oe=this._origin;if(oe instanceof g.aKT)return oe.nativeElement.getBoundingClientRect();if(oe instanceof Element)return oe.getBoundingClientRect();const Fe=oe.width||0,et=oe.height||0;return{top:oe.y,bottom:oe.y+et,left:oe.x,right:oe.x+Fe,height:et,width:Fe}}}function xt(_e,oe){for(let Fe in oe)oe.hasOwnProperty(Fe)&&(_e[Fe]=oe[Fe]);return _e}function st(_e){if("number"!=typeof _e&&null!=_e){const[oe,Fe]=_e.split(Le);return Fe&&"px"!==Fe?null:parseFloat(oe)}return _e||null}function Ct(_e){return{top:Math.floor(_e.top),right:Math.floor(_e.right),bottom:Math.floor(_e.bottom),left:Math.floor(_e.left),width:Math.floor(_e.width),height:Math.floor(_e.height)}}const jt="cdk-global-overlay-wrapper";class Vt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(oe){const Fe=oe.getConfig();this._overlayRef=oe,this._width&&!Fe.width&&oe.updateSize({width:this._width}),this._height&&!Fe.height&&oe.updateSize({height:this._height}),oe.hostElement.classList.add(jt),this._isDisposed=!1}top(oe=""){return this._bottomOffset="",this._topOffset=oe,this._alignItems="flex-start",this}left(oe=""){return this._xOffset=oe,this._xPosition="left",this}bottom(oe=""){return this._topOffset="",this._bottomOffset=oe,this._alignItems="flex-end",this}right(oe=""){return this._xOffset=oe,this._xPosition="right",this}start(oe=""){return this._xOffset=oe,this._xPosition="start",this}end(oe=""){return this._xOffset=oe,this._xPosition="end",this}width(oe=""){return this._overlayRef?this._overlayRef.updateSize({width:oe}):this._width=oe,this}height(oe=""){return this._overlayRef?this._overlayRef.updateSize({height:oe}):this._height=oe,this}centerHorizontally(oe=""){return this.left(oe),this._xPosition="center",this}centerVertically(oe=""){return this.top(oe),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const oe=this._overlayRef.overlayElement.style,Fe=this._overlayRef.hostElement.style,et=this._overlayRef.getConfig(),{width:dt,height:Kt,maxWidth:cn,maxHeight:Tn}=et,Wn=!("100%"!==dt&&"100vw"!==dt||cn&&"100%"!==cn&&"100vw"!==cn),kn=!("100%"!==Kt&&"100vh"!==Kt||Tn&&"100%"!==Tn&&"100vh"!==Tn),Vn=this._xPosition,Un=this._xOffset,dn="rtl"===this._overlayRef.getConfig().direction;let qt="",On="",Ut="";Wn?Ut="flex-start":"center"===Vn?(Ut="center",dn?On=Un:qt=Un):dn?"left"===Vn||"end"===Vn?(Ut="flex-end",qt=Un):("right"===Vn||"start"===Vn)&&(Ut="flex-start",On=Un):"left"===Vn||"start"===Vn?(Ut="flex-start",qt=Un):("right"===Vn||"end"===Vn)&&(Ut="flex-end",On=Un),oe.position=this._cssPosition,oe.marginLeft=Wn?"0":qt,oe.marginTop=kn?"0":this._topOffset,oe.marginBottom=this._bottomOffset,oe.marginRight=Wn?"0":On,Fe.justifyContent=Ut,Fe.alignItems=kn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const oe=this._overlayRef.overlayElement.style,Fe=this._overlayRef.hostElement,et=Fe.style;Fe.classList.remove(jt),et.justifyContent=et.alignItems=oe.marginTop=oe.marginBottom=oe.marginLeft=oe.marginRight=oe.position="",this._overlayRef=null,this._isDisposed=!0}}let fn=(()=>{class _e{constructor(Fe,et,dt,Kt){this._viewportRuler=Fe,this._document=et,this._platform=dt,this._overlayContainer=Kt}global(){return new Vt}flexibleConnectedTo(Fe){return new zt(Fe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(t.Xj),g.KVO(r.qQ),g.KVO(M.OD),g.KVO(Pt))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})(),Hn=0,zn=(()=>{class _e{constructor(Fe,et,dt,Kt,cn,Tn,Wn,kn,Vn,Un,dn,qt){this.scrollStrategies=Fe,this._overlayContainer=et,this._componentFactoryResolver=dt,this._positionBuilder=Kt,this._keyboardDispatcher=cn,this._injector=Tn,this._ngZone=Wn,this._document=kn,this._directionality=Vn,this._location=Un,this._outsideClickDispatcher=dn,this._animationsModuleType=qt}create(Fe){const et=this._createHostElement(),dt=this._createPaneElement(et),Kt=this._createPortalOutlet(dt),cn=new H(Fe);return cn.direction=cn.direction||this._directionality.value,new vt(Kt,et,dt,cn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(g.uvJ))}position(){return this._positionBuilder}_createPaneElement(Fe){const et=this._document.createElement("div");return et.id="cdk-overlay-"+Hn++,et.classList.add("cdk-overlay-pane"),Fe.appendChild(et),et}_createHostElement(){const Fe=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Fe),Fe}_createPortalOutlet(Fe){return this._appRef||(this._appRef=this._injector.get(g.o8S)),new w.aI(Fe,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(et){return new(et||_e)(g.KVO(de),g.KVO(Pt),g.KVO(g.OM3),g.KVO(fn),g.KVO(Y),g.KVO(g.zZn),g.KVO(g.SKi),g.KVO(r.qQ),g.KVO(A.dS),g.KVO(r.aZ),g.KVO(se),g.KVO(g.bc$,8))};static#t=this.\u0275prov=g.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();const bt=[{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"}],At=new g.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const _e=(0,g.WQX)(zn);return()=>_e.scrollStrategies.reposition()}});let Et=(()=>{class _e{constructor(Fe){this.elementRef=Fe}static#e=this.\u0275fac=function(et){return new(et||_e)(g.rXU(g.aKT))};static#t=this.\u0275dir=g.FsC({type:_e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return _e})(),Ot=(()=>{class _e{get offsetX(){return this._offsetX}set offsetX(Fe){this._offsetX=Fe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Fe){this._offsetY=Fe,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Fe){this._disposeOnNavigation=Fe}constructor(Fe,et,dt,Kt,cn){this._overlay=Fe,this._dir=cn,this._backdropSubscription=F.yU.EMPTY,this._attachSubscription=F.yU.EMPTY,this._detachSubscription=F.yU.EMPTY,this._positionSubscription=F.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,g.WQX)(g.SKi),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new g.bkB,this.positionChange=new g.bkB,this.attach=new g.bkB,this.detach=new g.bkB,this.overlayKeydown=new g.bkB,this.overlayOutsideClick=new g.bkB,this._templatePortal=new w.VA(et,dt),this._scrollStrategyFactory=Kt,this.scrollStrategy=this._scrollStrategyFactory()}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(Fe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Fe.origin&&this.open&&this._position.apply()),Fe.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bt);const Fe=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Fe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Fe.detachments().subscribe(()=>this.detach.emit()),Fe.keydownEvents().subscribe(et=>{this.overlayKeydown.next(et),et.keyCode===V._f&&!this.disableClose&&!(0,V.rp)(et)&&(et.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(et=>{const dt=this._getOriginElement(),Kt=(0,M.Fb)(et);(!dt||dt!==Kt&&!dt.contains(Kt))&&this.overlayOutsideClick.next(et)})}_buildConfig(){const Fe=this._position=this.positionStrategy||this._createPositionStrategy(),et=new H({direction:this._dir,positionStrategy:Fe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(et.width=this.width),(this.height||0===this.height)&&(et.height=this.height),(this.minWidth||0===this.minWidth)&&(et.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(et.minHeight=this.minHeight),this.backdropClass&&(et.backdropClass=this.backdropClass),this.panelClass&&(et.panelClass=this.panelClass),et}_updatePositionStrategy(Fe){const et=this.positions.map(dt=>({originX:dt.originX,originY:dt.originY,overlayX:dt.overlayX,overlayY:dt.overlayY,offsetX:dt.offsetX||this.offsetX,offsetY:dt.offsetY||this.offsetY,panelClass:dt.panelClass||void 0}));return Fe.setOrigin(this._getOrigin()).withPositions(et).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Fe=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(Fe),Fe}_getOrigin(){return this.origin instanceof Et?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Et?this.origin.elementRef.nativeElement:this.origin instanceof g.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(Fe=>{this.backdropClick.emit(Fe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,B.v)(()=>this.positionChange.observers.length>0)).subscribe(Fe=>{this._ngZone.run(()=>this.positionChange.emit(Fe)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(et){return new(et||_e)(g.rXU(zn),g.rXU(g.C4Q),g.rXU(g.c1b),g.rXU(At),g.rXU(A.dS,8))};static#t=this.\u0275dir=g.FsC({type:_e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",g.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",g.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",g.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",g.L39],push:[2,"cdkConnectedOverlayPush","push",g.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",g.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[g.GFd,g.OA$]})}return _e})();const Ue={provide:At,deps:[zn],useFactory:function Wt(_e){return()=>_e.scrollStrategies.reposition()}};let Ae=(()=>{class _e{static#e=this.\u0275fac=function(et){return new(et||_e)};static#t=this.\u0275mod=g.$C({type:_e});static#n=this.\u0275inj=g.G2t({providers:[zn,Ue],imports:[A.jI,w.jc,t.E9,t.E9]})}return _e})()},6860:(Rt,De,c)=>{c.d(De,{BD:()=>ne,BQ:()=>I,CZ:()=>x,Fb:()=>Ie,IK:()=>M,KT:()=>Oe,OD:()=>e,r5:()=>F,v8:()=>me,vc:()=>he});var t=c(3953),r=c(177);let g;try{g=typeof Intl<"u"&&Intl.v8BreakIterator}catch{g=!1}let A,e=(()=>{class de{constructor(z){this._platformId=z,this.isBrowser=this._platformId?(0,r.UE)(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&&!g)&&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}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.KVO(t.Agw))};static#t=this.\u0275prov=t.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})(),M=(()=>{class de{static#e=this.\u0275fac=function(Z){return new(Z||de)};static#t=this.\u0275mod=t.$C({type:de});static#n=this.\u0275inj=t.G2t({})}return de})();function I(de){return function w(){if(null==A&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>A=!0}))}finally{A=A||!1}return A}()?de:!!de.capture}var F=function(de){return de[de.NORMAL=0]="NORMAL",de[de.NEGATED=1]="NEGATED",de[de.INVERTED=2]="INVERTED",de}(F||{});let X,V,J;function x(){if(null==V){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return V=!1,V;if("scrollBehavior"in document.documentElement.style)V=!0;else{const de=Element.prototype.scrollTo;V=!!de&&!/\{\s*\[native code\]\s*\}/.test(de.toString())}}return V}function ne(){if("object"!=typeof document||!document)return F.NORMAL;if(null==X){const de=document.createElement("div"),H=de.style;de.dir="rtl",H.width="1px",H.overflow="auto",H.visibility="hidden",H.pointerEvents="none",H.position="absolute";const z=document.createElement("div"),Z=z.style;Z.width="2px",Z.height="1px",de.appendChild(z),document.body.appendChild(de),X=F.NORMAL,0===de.scrollLeft&&(de.scrollLeft=1,X=0===de.scrollLeft?F.NEGATED:F.INVERTED),de.remove()}return X}function Oe(de){if(function be(){if(null==J){const de=typeof document<"u"?document.head:null;J=!(!de||!de.createShadowRoot&&!de.attachShadow)}return J}()){const H=de.getRootNode?de.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&H instanceof ShadowRoot)return H}return null}function he(){let de=typeof document<"u"&&document?document.activeElement:null;for(;de&&de.shadowRoot;){const H=de.shadowRoot.activeElement;if(H===de)break;de=H}return de}function Ie(de){return de.composedPath?de.composedPath()[0]:de.target}function me(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(Rt,De,c)=>{c.d(De,{A8:()=>w,I3:()=>Oe,VA:()=>I,aI:()=>x,jc:()=>Ie,lb:()=>X});var t=c(3953),r=c(177);class A{attach(H){return this._attachedHost=H,H.attach(this)}detach(){let H=this._attachedHost;null!=H&&(this._attachedHost=null,H.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(H){this._attachedHost=H}}class w extends A{constructor(H,z,Z,pe,E){super(),this.component=H,this.viewContainerRef=z,this.injector=Z,this.componentFactoryResolver=pe,this.projectableNodes=E}}class I extends A{constructor(H,z,Z,pe){super(),this.templateRef=H,this.viewContainerRef=z,this.context=Z,this.injector=pe}get origin(){return this.templateRef.elementRef}attach(H,z=this.context){return this.context=z,super.attach(H)}detach(){return this.context=void 0,super.detach()}}class F extends A{constructor(H){super(),this.element=H instanceof t.aKT?H.nativeElement:H}}class X{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(H){return H instanceof w?(this._attachedPortal=H,this.attachComponentPortal(H)):H instanceof I?(this._attachedPortal=H,this.attachTemplatePortal(H)):this.attachDomPortal&&H instanceof F?(this._attachedPortal=H,this.attachDomPortal(H)):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(H){this._disposeFn=H}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class x extends X{constructor(H,z,Z,pe,E){super(),this.outletElement=H,this._componentFactoryResolver=z,this._appRef=Z,this._defaultInjector=pe,this.attachDomPortal=S=>{const R=S.element,Y=this._document.createComment("dom-portal");R.parentNode.insertBefore(Y,R),this.outletElement.appendChild(R),this._attachedPortal=S,super.setDisposeFn(()=>{Y.parentNode&&Y.parentNode.replaceChild(R,Y)})},this._document=E}attachComponentPortal(H){const Z=(H.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(H.component);let pe;return H.viewContainerRef?(pe=H.viewContainerRef.createComponent(Z,H.viewContainerRef.length,H.injector||H.viewContainerRef.injector,H.projectableNodes||void 0),this.setDisposeFn(()=>pe.destroy())):(pe=Z.create(H.injector||this._defaultInjector||t.zZn.NULL),this._appRef.attachView(pe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(pe.hostView),pe.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(pe)),this._attachedPortal=H,pe}attachTemplatePortal(H){let z=H.viewContainerRef,Z=z.createEmbeddedView(H.templateRef,H.context,{injector:H.injector});return Z.rootNodes.forEach(pe=>this.outletElement.appendChild(pe)),Z.detectChanges(),this.setDisposeFn(()=>{let pe=z.indexOf(Z);-1!==pe&&z.remove(pe)}),this._attachedPortal=H,Z}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(H){return H.hostView.rootNodes[0]}}let Oe=(()=>{class de extends X{constructor(z,Z,pe){super(),this._componentFactoryResolver=z,this._viewContainerRef=Z,this._isInitialized=!1,this.attached=new t.bkB,this.attachDomPortal=E=>{const S=E.element,R=this._document.createComment("dom-portal");E.setAttachedHost(this),S.parentNode.insertBefore(R,S),this._getRootNode().appendChild(S),this._attachedPortal=E,super.setDisposeFn(()=>{R.parentNode&&R.parentNode.replaceChild(S,R)})},this._document=pe}get portal(){return this._attachedPortal}set portal(z){this.hasAttached()&&!z&&!this._isInitialized||(this.hasAttached()&&super.detach(),z&&super.attach(z),this._attachedPortal=z||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(z){z.setAttachedHost(this);const Z=null!=z.viewContainerRef?z.viewContainerRef:this._viewContainerRef,E=(z.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(z.component),S=Z.createComponent(E,Z.length,z.injector||Z.injector,z.projectableNodes||void 0);return Z!==this._viewContainerRef&&this._getRootNode().appendChild(S.hostView.rootNodes[0]),super.setDisposeFn(()=>S.destroy()),this._attachedPortal=z,this._attachedRef=S,this.attached.emit(S),S}attachTemplatePortal(z){z.setAttachedHost(this);const Z=this._viewContainerRef.createEmbeddedView(z.templateRef,z.context,{injector:z.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=z,this._attachedRef=Z,this.attached.emit(Z),Z}_getRootNode(){const z=this._viewContainerRef.element.nativeElement;return z.nodeType===z.ELEMENT_NODE?z:z.parentNode}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.rXU(t.OM3),t.rXU(t.c1b),t.rXU(r.qQ))};static#t=this.\u0275dir=t.FsC({type:de,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[t.Vt3]})}return de})(),Ie=(()=>{class de{static#e=this.\u0275fac=function(Z){return new(Z||de)};static#t=this.\u0275mod=t.$C({type:de});static#n=this.\u0275inj=t.G2t({})}return de})()},946:(Rt,De,c)=>{c.d(De,{yg:()=>zt,E$:()=>bt,d6:()=>Hn,R:()=>st,E9:()=>Wt,Xj:()=>Tt});var t=c(4085),r=c(3953),g=c(1413),e=c(7673),M=c(1985),G=c(3726),L=c(536),B=c(5007),A=c(8359),w=c(4402),I=c(3294),F=c(3798),X=c(5964),V=c(6977),x=c(9172),ne=c(3946),J=c(5558),be=c(4668),Oe=c(6860),he=c(177),Ie=c(8203),me=c(17);class de{}class z extends de{constructor(Ae){super(),this._data=Ae}connect(){return(0,w.A)(this._data)?this._data:(0,e.of)(this._data)}disconnect(){}}var Z=function(Ue){return Ue[Ue.REPLACED=0]="REPLACED",Ue[Ue.INSERTED=1]="INSERTED",Ue[Ue.MOVED=2]="MOVED",Ue[Ue.REMOVED=3]="REMOVED",Ue}(Z||{});const pe=new r.nKC("_ViewRepeater");class S{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(Ae,ie,_e,oe,Fe){Ae.forEachOperation((et,dt,Kt)=>{let cn,Tn;null==et.previousIndex?(cn=this._insertView(()=>_e(et,dt,Kt),Kt,ie,oe(et)),Tn=cn?Z.INSERTED:Z.REPLACED):null==Kt?(this._detachAndCacheView(dt,ie),Tn=Z.REMOVED):(cn=this._moveView(dt,Kt,ie,oe(et)),Tn=Z.MOVED),Fe&&Fe({context:cn?.context,operation:Tn,record:et})})}detach(){for(const Ae of this._viewCache)Ae.destroy();this._viewCache=[]}_insertView(Ae,ie,_e,oe){const Fe=this._insertViewFromCache(ie,_e);if(Fe)return void(Fe.context.$implicit=oe);const et=Ae();return _e.createEmbeddedView(et.templateRef,et.context,et.index)}_detachAndCacheView(Ae,ie){const _e=ie.detach(Ae);this._maybeCacheView(_e,ie)}_moveView(Ae,ie,_e,oe){const Fe=_e.get(Ae);return _e.move(Fe,ie),Fe.context.$implicit=oe,Fe}_maybeCacheView(Ae,ie){if(this._viewCache.length0?Fe/this._itemSize:0;if(ie.end>oe){const Kt=Math.ceil(_e/this._itemSize),cn=Math.max(0,Math.min(et,oe-Kt));et!=cn&&(et=cn,Fe=cn*this._itemSize,ie.start=Math.floor(et)),ie.end=Math.max(0,Math.min(oe,ie.start+Kt))}const dt=Fe-ie.start*this._itemSize;if(dt0&&(ie.end=Math.min(oe,ie.end+cn),ie.start=Math.max(0,Math.floor(et-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(ie),this._viewport.setRenderedContentOffset(this._itemSize*ie.start),this._scrolledIndexChange.next(Math.floor(et))}}function Le(Ue){return Ue._scrollStrategy}let zt=(()=>{class Ue{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new wt(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(ie){this._itemSize=(0,t.OE)(ie)}get minBufferPx(){return this._minBufferPx}set minBufferPx(ie){this._minBufferPx=(0,t.OE)(ie)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(ie){this._maxBufferPx=(0,t.OE)(ie)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275dir=r.FsC({type:Ue,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[r.Jv_([{provide:vt,useFactory:Le,deps:[(0,r.Rfq)(()=>Ue)]}]),r.OA$]})}return Ue})(),st=(()=>{class Ue{constructor(ie,_e,oe){this._ngZone=ie,this._platform=_e,this._scrolled=new g.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(ie){this.scrollContainers.has(ie)||this.scrollContainers.set(ie,ie.elementScrolled().subscribe(()=>this._scrolled.next(ie)))}deregister(ie){const _e=this.scrollContainers.get(ie);_e&&(_e.unsubscribe(),this.scrollContainers.delete(ie))}scrolled(ie=20){return this._platform.isBrowser?new M.c(_e=>{this._globalSubscription||this._addGlobalListener();const oe=ie>0?this._scrolled.pipe((0,F.Z)(ie)).subscribe(_e):this._scrolled.subscribe(_e);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ie,_e)=>this.deregister(_e)),this._scrolled.complete()}ancestorScrolled(ie,_e){const oe=this.getAncestorScrollContainers(ie);return this.scrolled(_e).pipe((0,X.p)(Fe=>!Fe||oe.indexOf(Fe)>-1))}getAncestorScrollContainers(ie){const _e=[];return this.scrollContainers.forEach((oe,Fe)=>{this._scrollableContainsElement(Fe,ie)&&_e.push(Fe)}),_e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ie,_e){let oe=(0,t.i8)(_e),Fe=ie.getElementRef().nativeElement;do{if(oe==Fe)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ie=this._getWindow();return(0,G.R)(ie.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.KVO(r.SKi),r.KVO(Oe.OD),r.KVO(he.qQ,8))};static#t=this.\u0275prov=r.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}return Ue})(),Ct=(()=>{class Ue{constructor(ie,_e,oe,Fe){this.elementRef=ie,this.scrollDispatcher=_e,this.ngZone=oe,this.dir=Fe,this._destroyed=new g.B,this._elementScrolled=new M.c(et=>this.ngZone.runOutsideAngular(()=>(0,G.R)(this.elementRef.nativeElement,"scroll").pipe((0,V.Q)(this._destroyed)).subscribe(et)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(ie){const _e=this.elementRef.nativeElement,oe=this.dir&&"rtl"==this.dir.value;null==ie.left&&(ie.left=oe?ie.end:ie.start),null==ie.right&&(ie.right=oe?ie.start:ie.end),null!=ie.bottom&&(ie.top=_e.scrollHeight-_e.clientHeight-ie.bottom),oe&&(0,Oe.BD)()!=Oe.r5.NORMAL?(null!=ie.left&&(ie.right=_e.scrollWidth-_e.clientWidth-ie.left),(0,Oe.BD)()==Oe.r5.INVERTED?ie.left=ie.right:(0,Oe.BD)()==Oe.r5.NEGATED&&(ie.left=ie.right?-ie.right:ie.right)):null!=ie.right&&(ie.left=_e.scrollWidth-_e.clientWidth-ie.right),this._applyScrollToOptions(ie)}_applyScrollToOptions(ie){const _e=this.elementRef.nativeElement;(0,Oe.CZ)()?_e.scrollTo(ie):(null!=ie.top&&(_e.scrollTop=ie.top),null!=ie.left&&(_e.scrollLeft=ie.left))}measureScrollOffset(ie){const _e="left",Fe=this.elementRef.nativeElement;if("top"==ie)return Fe.scrollTop;if("bottom"==ie)return Fe.scrollHeight-Fe.clientHeight-Fe.scrollTop;const et=this.dir&&"rtl"==this.dir.value;return"start"==ie?ie=et?"right":_e:"end"==ie&&(ie=et?_e:"right"),et&&(0,Oe.BD)()==Oe.r5.INVERTED?ie==_e?Fe.scrollWidth-Fe.clientWidth-Fe.scrollLeft:Fe.scrollLeft:et&&(0,Oe.BD)()==Oe.r5.NEGATED?ie==_e?Fe.scrollLeft+Fe.scrollWidth-Fe.clientWidth:-Fe.scrollLeft:ie==_e?Fe.scrollLeft:Fe.scrollWidth-Fe.clientWidth-Fe.scrollLeft}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.rXU(r.aKT),r.rXU(st),r.rXU(r.SKi),r.rXU(Ie.dS,8))};static#t=this.\u0275dir=r.FsC({type:Ue,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return Ue})(),Tt=(()=>{class Ue{constructor(ie,_e,oe){this._platform=ie,this._change=new g.B,this._changeListener=Fe=>{this._change.next(Fe)},this._document=oe,_e.runOutsideAngular(()=>{if(ie.isBrowser){const Fe=this._getWindow();Fe.addEventListener("resize",this._changeListener),Fe.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ie=this._getWindow();ie.removeEventListener("resize",this._changeListener),ie.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ie={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ie}getViewportRect(){const ie=this.getViewportScrollPosition(),{width:_e,height:oe}=this.getViewportSize();return{top:ie.top,left:ie.left,bottom:ie.top+oe,right:ie.left+_e,height:oe,width:_e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ie=this._document,_e=this._getWindow(),oe=ie.documentElement,Fe=oe.getBoundingClientRect();return{top:-Fe.top||ie.body.scrollTop||_e.scrollY||oe.scrollTop||0,left:-Fe.left||ie.body.scrollLeft||_e.scrollX||oe.scrollLeft||0}}change(ie=20){return ie>0?this._change.pipe((0,F.Z)(ie)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ie=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ie.innerWidth,height:ie.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.KVO(Oe.OD),r.KVO(r.SKi),r.KVO(he.qQ,8))};static#t=this.\u0275prov=r.jDH({token:Ue,factory:Ue.\u0275fac,providedIn:"root"})}return Ue})();const en=new r.nKC("VIRTUAL_SCROLLABLE");let jt=(()=>{class Ue extends Ct{constructor(ie,_e,oe,Fe){super(ie,_e,oe,Fe)}measureViewportSize(ie){const _e=this.elementRef.nativeElement;return"horizontal"===ie?_e.clientWidth:_e.clientHeight}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.rXU(r.aKT),r.rXU(st),r.rXU(r.SKi),r.rXU(Ie.dS,8))};static#t=this.\u0275dir=r.FsC({type:Ue,features:[r.Vt3]})}return Ue})();const fn=typeof requestAnimationFrame<"u"?L.X:B.$;let Hn=(()=>{class Ue extends jt{get orientation(){return this._orientation}set orientation(ie){this._orientation!==ie&&(this._orientation=ie,this._calculateSpacerSize())}constructor(ie,_e,oe,Fe,et,dt,Kt,cn){super(ie,dt,oe,et),this.elementRef=ie,this._changeDetectorRef=_e,this._scrollStrategy=Fe,this.scrollable=cn,this._platform=(0,r.WQX)(Oe.OD),this._detachedSubject=new g.B,this._renderedRangeSubject=new g.B,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new M.c(Tn=>this._scrollStrategy.scrolledIndexChange.subscribe(Wn=>Promise.resolve().then(()=>this.ngZone.run(()=>Tn.next(Wn))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=A.yU.EMPTY,this._injector=(0,r.WQX)(r.zZn),this._isDestroyed=!1,this._viewportChanges=Kt.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,x.Z)(null),(0,F.Z)(0,fn),(0,V.Q)(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(ie){this.ngZone.runOutsideAngular(()=>{this._forOf=ie,this._forOf.dataStream.pipe((0,V.Q)(this._detachedSubject)).subscribe(_e=>{const oe=_e.length;oe!==this._dataLength&&(this._dataLength=oe,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(ie){return this.getElementRef().nativeElement.getBoundingClientRect()[ie]}setTotalContentSize(ie){this._totalContentSize!==ie&&(this._totalContentSize=ie,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(ie){(function Vt(Ue,Ae){return Ue.start==Ae.start&&Ue.end==Ae.end})(this._renderedRange,ie)||(this.appendOnly&&(ie={start:0,end:Math.max(this._renderedRange.end,ie.end)}),this._renderedRangeSubject.next(this._renderedRange=ie),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(ie,_e="to-start"){ie=this.appendOnly&&"to-start"===_e?0:ie;const Fe="horizontal"==this.orientation,et=Fe?"X":"Y";let Kt=`translate${et}(${Number((Fe&&this.dir&&"rtl"==this.dir.value?-1:1)*ie)}px)`;this._renderedContentOffset=ie,"to-end"===_e&&(Kt+=` translate${et}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Kt&&(this._renderedContentTransform=Kt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(ie,_e="auto"){const oe={behavior:_e};"horizontal"===this.orientation?oe.start=ie:oe.top=ie,this.scrollable.scrollTo(oe)}scrollToIndex(ie,_e="auto"){this._scrollStrategy.scrollToIndex(ie,_e)}measureScrollOffset(ie){let _e;return _e=this.scrollable==this?oe=>super.measureScrollOffset(oe):oe=>this.scrollable.measureScrollOffset(oe),Math.max(0,_e(ie??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(ie){let _e;const et="rtl"==this.dir?.value;_e="start"==ie?et?"right":"left":"end"==ie?et?"left":"right":ie||("horizontal"===this.orientation?"left":"top");const dt=this.scrollable.measureBoundingClientRectWithScrollOffset(_e);return this.elementRef.nativeElement.getBoundingClientRect()[_e]-dt}measureRenderedContentSize(){const ie=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?ie.offsetWidth:ie.offsetHeight}measureRangeSize(ie){return this._forOf?this._forOf.measureRangeSize(ie,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(ie){ie&&this._runAfterChangeDetection.push(ie),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,(0,r.mal)(()=>{this._isChangeDetectionPending=!1;const ie=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const _e of ie)_e()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(r.SKi),r.rXU(vt,8),r.rXU(Ie.dS,8),r.rXU(st),r.rXU(Tt),r.rXU(en,8))};static#t=this.\u0275cmp=r.VBU({type:Ue,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(_e,oe){if(1&_e&&r.GBs(Be,7),2&_e){let Fe;r.mGM(Fe=r.lsd())&&(oe._contentWrapper=Fe.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(_e,oe){2&_e&&r.AVh("cdk-virtual-scroll-orientation-horizontal","horizontal"===oe.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==oe.orientation)},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",r.L39]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[r.Jv_([{provide:Ct,useFactory:(ie,_e)=>ie||_e,deps:[[new r.Xx1,new r.y_5(en)],Ue]}]),r.GFd,r.Vt3,r.aNF],ngContentSelectors:Pt,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(_e,oe){1&_e&&(r.NAR(),r.j41(0,"div",1,0),r.SdG(2),r.k0s(),r.nrm(3,"div",2)),2&_e&&(r.R7$(3),r.xc7("width",oe._totalContentWidth)("height",oe._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0})}return Ue})();function zn(Ue,Ae,ie){if(!ie.getBoundingClientRect)return 0;const oe=ie.getBoundingClientRect();return"horizontal"===Ue?"start"===Ae?oe.left:oe.right:"start"===Ae?oe.top:oe.bottom}let bt=(()=>{class Ue{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(ie){this._cdkVirtualForOf=ie,function H(Ue){return Ue&&"function"==typeof Ue.connect&&!(Ue instanceof me.G)}(ie)?this._dataSourceChanges.next(ie):this._dataSourceChanges.next(new z((0,w.A)(ie)?ie:Array.from(ie||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(ie){this._needsUpdate=!0,this._cdkVirtualForTrackBy=ie?(_e,oe)=>ie(_e+(this._renderedRange?this._renderedRange.start:0),oe):void 0}set cdkVirtualForTemplate(ie){ie&&(this._needsUpdate=!0,this._template=ie)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(ie){this._viewRepeater.viewCacheSize=(0,t.OE)(ie)}constructor(ie,_e,oe,Fe,et,dt){this._viewContainerRef=ie,this._template=_e,this._differs=oe,this._viewRepeater=Fe,this._viewport=et,this.viewChange=new g.B,this._dataSourceChanges=new g.B,this.dataStream=this._dataSourceChanges.pipe((0,x.Z)(null),(0,ne.J)(),(0,J.n)(([Kt,cn])=>this._changeDataSource(Kt,cn)),(0,be.t)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new g.B,this.dataStream.subscribe(Kt=>{this._data=Kt,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,V.Q)(this._destroyed)).subscribe(Kt=>{this._renderedRange=Kt,this.viewChange.observers.length&&dt.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(ie,_e){if(ie.start>=ie.end)return 0;const oe=ie.start-this._renderedRange.start,Fe=ie.end-ie.start;let et,dt;for(let Kt=0;Kt-1;Kt--){const cn=this._viewContainerRef.get(Kt+oe);if(cn&&cn.rootNodes.length){dt=cn.rootNodes[cn.rootNodes.length-1];break}}return et&&dt?zn(_e,"end",dt)-zn(_e,"start",et):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const ie=this._differ.diff(this._renderedItems);ie?this._applyChanges(ie):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((ie,_e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(ie,_e):_e)),this._needsUpdate=!0)}_changeDataSource(ie,_e){return ie&&ie.disconnect(this),this._needsUpdate=!0,_e?_e.connect(this):(0,e.of)()}_updateContext(){const ie=this._data.length;let _e=this._viewContainerRef.length;for(;_e--;){const oe=this._viewContainerRef.get(_e);oe.context.index=this._renderedRange.start+_e,oe.context.count=ie,this._updateComputedContextProperties(oe.context),oe.detectChanges()}}_applyChanges(ie){this._viewRepeater.applyChanges(ie,this._viewContainerRef,(Fe,et,dt)=>this._getEmbeddedViewArgs(Fe,dt),Fe=>Fe.item),ie.forEachIdentityChange(Fe=>{this._viewContainerRef.get(Fe.currentIndex).context.$implicit=Fe.item});const _e=this._data.length;let oe=this._viewContainerRef.length;for(;oe--;){const Fe=this._viewContainerRef.get(oe);Fe.context.index=this._renderedRange.start+oe,Fe.context.count=_e,this._updateComputedContextProperties(Fe.context)}}_updateComputedContextProperties(ie){ie.first=0===ie.index,ie.last=ie.index===ie.count-1,ie.even=ie.index%2==0,ie.odd=!ie.even}_getEmbeddedViewArgs(ie,_e){return{templateRef:this._template,context:{$implicit:ie.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:_e}}static#e=this.\u0275fac=function(_e){return new(_e||Ue)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(r._q3),r.rXU(pe),r.rXU(Hn,4),r.rXU(r.SKi))};static#t=this.\u0275dir=r.FsC({type:Ue,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[r.Jv_([{provide:pe,useClass:S}])]})}return Ue})(),Ot=(()=>{class Ue{static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275mod=r.$C({type:Ue});static#n=this.\u0275inj=r.G2t({})}return Ue})(),Wt=(()=>{class Ue{static#e=this.\u0275fac=function(_e){return new(_e||Ue)};static#t=this.\u0275mod=r.$C({type:Ue});static#n=this.\u0275inj=r.G2t({imports:[Ie.jI,Ot,Ie.jI,Ot]})}return Ue})()},177:(Rt,De,c)=>{c.d(De,{AJ:()=>qn,B3:()=>so,EO:()=>lo,GH:()=>jo,IJ:()=>zi,Jj:()=>fr,MD:()=>Qn,N0:()=>no,PV:()=>qi,Pc:()=>wn,QT:()=>g,QX:()=>Yt,Sm:()=>ne,Sq:()=>$t,T3:()=>Yi,TG:()=>ye,UE:()=>ei,VF:()=>M,Vy:()=>li,WO:()=>Ni,Xr:()=>mi,YU:()=>zr,ZD:()=>e,_b:()=>Zi,a:()=>Ct,aZ:()=>be,bT:()=>Yn,e1:()=>ro,fG:()=>vi,fw:()=>J,gz:()=>S,hb:()=>V,hj:()=>A,lG:()=>tt,pM:()=>$t,qQ:()=>L,ux:()=>gi,vh:()=>Ts,xv:()=>ai});var t=c(3953);let r=null;function g(){return r}function e(W){r??=W}class M{}const L=new t.nKC("");let B=(()=>{class W{historyGo(Te){throw new Error("")}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275prov=t.jDH({token:W,factory:()=>(0,t.WQX)(w),providedIn:"platform"})}return W})();const A=new t.nKC("");let w=(()=>{class W extends B{constructor(){super(),this._doc=(0,t.WQX)(L),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(Te){const Ge=g().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("popstate",Te,!1),()=>Ge.removeEventListener("popstate",Te)}onHashChange(Te){const Ge=g().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("hashchange",Te,!1),()=>Ge.removeEventListener("hashchange",Te)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(Te){this._location.pathname=Te}pushState(Te,Ge,Nt){this._history.pushState(Te,Ge,Nt)}replaceState(Te,Ge,Nt){this._history.replaceState(Te,Ge,Nt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Te=0){this._history.go(Te)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275prov=t.jDH({token:W,factory:()=>new W,providedIn:"platform"})}return W})();function I(W,it){if(0==W.length)return it;if(0==it.length)return W;let Te=0;return W.endsWith("/")&&Te++,it.startsWith("/")&&Te++,2==Te?W+it.substring(1):1==Te?W+it:W+"/"+it}function F(W){const it=W.match(/#|\?|$/),Te=it&&it.index||W.length;return W.slice(0,Te-("/"===W[Te-1]?1:0))+W.slice(Te)}function X(W){return W&&"?"!==W[0]?"?"+W:W}let V=(()=>{class W{historyGo(Te){throw new Error("")}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275prov=t.jDH({token:W,factory:()=>(0,t.WQX)(ne),providedIn:"root"})}return W})();const x=new t.nKC("");let ne=(()=>{class W extends V{constructor(Te,Ge){super(),this._platformLocation=Te,this._removeListenerFns=[],this._baseHref=Ge??this._platformLocation.getBaseHrefFromDOM()??(0,t.WQX)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Te){this._removeListenerFns.push(this._platformLocation.onPopState(Te),this._platformLocation.onHashChange(Te))}getBaseHref(){return this._baseHref}prepareExternalUrl(Te){return I(this._baseHref,Te)}path(Te=!1){const Ge=this._platformLocation.pathname+X(this._platformLocation.search),Nt=this._platformLocation.hash;return Nt&&Te?`${Ge}${Nt}`:Ge}pushState(Te,Ge,Nt,gn){const Pn=this.prepareExternalUrl(Nt+X(gn));this._platformLocation.pushState(Te,Ge,Pn)}replaceState(Te,Ge,Nt,gn){const Pn=this.prepareExternalUrl(Nt+X(gn));this._platformLocation.replaceState(Te,Ge,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Te=0){this._platformLocation.historyGo?.(Te)}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.KVO(B),t.KVO(x,8))};static#t=this.\u0275prov=t.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})(),J=(()=>{class W extends V{constructor(Te,Ge){super(),this._platformLocation=Te,this._baseHref="",this._removeListenerFns=[],null!=Ge&&(this._baseHref=Ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Te){this._removeListenerFns.push(this._platformLocation.onPopState(Te),this._platformLocation.onHashChange(Te))}getBaseHref(){return this._baseHref}path(Te=!1){const Ge=this._platformLocation.hash??"#";return Ge.length>0?Ge.substring(1):Ge}prepareExternalUrl(Te){const Ge=I(this._baseHref,Te);return Ge.length>0?"#"+Ge:Ge}pushState(Te,Ge,Nt,gn){let Pn=this.prepareExternalUrl(Nt+X(gn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.pushState(Te,Ge,Pn)}replaceState(Te,Ge,Nt,gn){let Pn=this.prepareExternalUrl(Nt+X(gn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.replaceState(Te,Ge,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Te=0){this._platformLocation.historyGo?.(Te)}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.KVO(B),t.KVO(x,8))};static#t=this.\u0275prov=t.jDH({token:W,factory:W.\u0275fac})}return W})(),be=(()=>{class W{constructor(Te){this._subject=new t.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Te;const Ge=this._locationStrategy.getBaseHref();this._basePath=function me(W){if(new RegExp("^(https?:)?//").test(W)){const[,Te]=W.split(/\/\/[^\/]+/);return Te}return W}(F(Ie(Ge))),this._locationStrategy.onPopState(Nt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Nt.state,type:Nt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Te=!1){return this.normalize(this._locationStrategy.path(Te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Te,Ge=""){return this.path()==this.normalize(Te+X(Ge))}normalize(Te){return W.stripTrailingSlash(function he(W,it){if(!W||!it.startsWith(W))return it;const Te=it.substring(W.length);return""===Te||["/",";","?","#"].includes(Te[0])?Te:it}(this._basePath,Ie(Te)))}prepareExternalUrl(Te){return Te&&"/"!==Te[0]&&(Te="/"+Te),this._locationStrategy.prepareExternalUrl(Te)}go(Te,Ge="",Nt=null){this._locationStrategy.pushState(Nt,"",Te,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Te+X(Ge)),Nt)}replaceState(Te,Ge="",Nt=null){this._locationStrategy.replaceState(Nt,"",Te,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(Te+X(Ge)),Nt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Te=0){this._locationStrategy.historyGo?.(Te)}onUrlChange(Te){return this._urlChangeListeners.push(Te),this._urlChangeSubscription??=this.subscribe(Ge=>{this._notifyUrlChangeListeners(Ge.url,Ge.state)}),()=>{const Ge=this._urlChangeListeners.indexOf(Te);this._urlChangeListeners.splice(Ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Te="",Ge){this._urlChangeListeners.forEach(Nt=>Nt(Te,Ge))}subscribe(Te,Ge,Nt){return this._subject.subscribe({next:Te,error:Ge,complete:Nt})}static#e=this.normalizeQueryParams=X;static#t=this.joinWithSlash=I;static#n=this.stripTrailingSlash=F;static#i=this.\u0275fac=function(Ge){return new(Ge||W)(t.KVO(V))};static#o=this.\u0275prov=t.jDH({token:W,factory:()=>function Oe(){return new be((0,t.KVO)(V))}(),providedIn:"root"})}return W})();function Ie(W){return W.replace(/\/index.html$/,"")}var H=function(W){return W[W.Decimal=0]="Decimal",W[W.Percent=1]="Percent",W[W.Currency=2]="Currency",W[W.Scientific=3]="Scientific",W}(H||{}),z=function(W){return W[W.Zero=0]="Zero",W[W.One=1]="One",W[W.Two=2]="Two",W[W.Few=3]="Few",W[W.Many=4]="Many",W[W.Other=5]="Other",W}(z||{}),Z=function(W){return W[W.Format=0]="Format",W[W.Standalone=1]="Standalone",W}(Z||{}),pe=function(W){return W[W.Narrow=0]="Narrow",W[W.Abbreviated=1]="Abbreviated",W[W.Wide=2]="Wide",W[W.Short=3]="Short",W}(pe||{}),E=function(W){return W[W.Short=0]="Short",W[W.Medium=1]="Medium",W[W.Long=2]="Long",W[W.Full=3]="Full",W}(E||{});const S={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function zt(W,it){return Et((0,t.H5H)(W)[t.KH2.DateFormat],it)}function xt(W,it){return Et((0,t.H5H)(W)[t.KH2.TimeFormat],it)}function st(W,it){return Et((0,t.H5H)(W)[t.KH2.DateTimeFormat],it)}function Ct(W,it){const Te=(0,t.H5H)(W),Ge=Te[t.KH2.NumberSymbols][it];if(typeof Ge>"u"){if(it===S.CurrencyDecimal)return Te[t.KH2.NumberSymbols][S.Decimal];if(it===S.CurrencyGroup)return Te[t.KH2.NumberSymbols][S.Group]}return Ge}const fn=t.mq5;function Hn(W){if(!W[t.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${W[t.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Et(W,it){for(let Te=it;Te>-1;Te--)if(typeof W[Te]<"u")return W[Te];throw new Error("Locale data API: locale data undefined")}function Ot(W){const[it,Te]=W.split(":");return{hours:+it,minutes:+Te}}const ie=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_e={},oe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Fe=function(W){return W[W.Short=0]="Short",W[W.ShortGMT=1]="ShortGMT",W[W.Long=2]="Long",W[W.Extended=3]="Extended",W}(Fe||{}),et=function(W){return W[W.FullYear=0]="FullYear",W[W.Month=1]="Month",W[W.Date=2]="Date",W[W.Hours=3]="Hours",W[W.Minutes=4]="Minutes",W[W.Seconds=5]="Seconds",W[W.FractionalSeconds=6]="FractionalSeconds",W[W.Day=7]="Day",W}(et||{}),dt=function(W){return W[W.DayPeriods=0]="DayPeriods",W[W.Days=1]="Days",W[W.Months=2]="Months",W[W.Eras=3]="Eras",W}(dt||{});function Kt(W,it,Te,Ge){let Nt=function re(W){if(gt(W))return W;if("number"==typeof W&&!isNaN(W))return new Date(W);if("string"==typeof W){if(W=W.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(W)){const[Nt,gn=1,Pn=1]=W.split("-").map(hi=>+hi);return cn(Nt,gn-1,Pn)}const Te=parseFloat(W);if(!isNaN(W-Te))return new Date(Te);let Ge;if(Ge=W.match(ie))return function ze(W){const it=new Date(0);let Te=0,Ge=0;const Nt=W[8]?it.setUTCFullYear:it.setFullYear,gn=W[8]?it.setUTCHours:it.setHours;W[9]&&(Te=Number(W[9]+W[10]),Ge=Number(W[9]+W[11])),Nt.call(it,Number(W[1]),Number(W[2])-1,Number(W[3]));const Pn=Number(W[4]||0)-Te,hi=Number(W[5]||0)-Ge,yo=Number(W[6]||0),Gi=Math.floor(1e3*parseFloat("0."+(W[7]||0)));return gn.call(it,Pn,hi,yo,Gi),it}(Ge)}const it=new Date(W);if(!gt(it))throw new Error(`Unable to convert "${W}" into a date`);return it}(W);it=Tn(Te,it)||it;let hi,Pn=[];for(;it;){if(hi=oe.exec(it),!hi){Pn.push(it);break}{Pn=Pn.concat(hi.slice(1));const zo=Pn.pop();if(!zo)break;it=zo}}let yo=Nt.getTimezoneOffset();Ge&&(yo=Qe(Ge,yo),Nt=function Je(W,it,Te){const Ge=Te?-1:1,Nt=W.getTimezoneOffset();return function Ee(W,it){return(W=new Date(W.getTime())).setMinutes(W.getMinutes()+it),W}(W,Ge*(Qe(it,Nt)-Nt))}(Nt,Ge,!0));let Gi="";return Pn.forEach(zo=>{const Xn=function St(W){if(at[W])return at[W];let it;switch(W){case"G":case"GG":case"GGG":it=qt(dt.Eras,pe.Abbreviated);break;case"GGGG":it=qt(dt.Eras,pe.Wide);break;case"GGGGG":it=qt(dt.Eras,pe.Narrow);break;case"y":it=Un(et.FullYear,1,0,!1,!0);break;case"yy":it=Un(et.FullYear,2,0,!0,!0);break;case"yyy":it=Un(et.FullYear,3,0,!1,!0);break;case"yyyy":it=Un(et.FullYear,4,0,!1,!0);break;case"Y":it=ht(1);break;case"YY":it=ht(2,!0);break;case"YYY":it=ht(3);break;case"YYYY":it=ht(4);break;case"M":case"L":it=Un(et.Month,1,1);break;case"MM":case"LL":it=Un(et.Month,2,1);break;case"MMM":it=qt(dt.Months,pe.Abbreviated);break;case"MMMM":it=qt(dt.Months,pe.Wide);break;case"MMMMM":it=qt(dt.Months,pe.Narrow);break;case"LLL":it=qt(dt.Months,pe.Abbreviated,Z.Standalone);break;case"LLLL":it=qt(dt.Months,pe.Wide,Z.Standalone);break;case"LLLLL":it=qt(dt.Months,pe.Narrow,Z.Standalone);break;case"w":it=Xe(1);break;case"ww":it=Xe(2);break;case"W":it=Xe(1,!0);break;case"d":it=Un(et.Date,1);break;case"dd":it=Un(et.Date,2);break;case"c":case"cc":it=Un(et.Day,1);break;case"ccc":it=qt(dt.Days,pe.Abbreviated,Z.Standalone);break;case"cccc":it=qt(dt.Days,pe.Wide,Z.Standalone);break;case"ccccc":it=qt(dt.Days,pe.Narrow,Z.Standalone);break;case"cccccc":it=qt(dt.Days,pe.Short,Z.Standalone);break;case"E":case"EE":case"EEE":it=qt(dt.Days,pe.Abbreviated);break;case"EEEE":it=qt(dt.Days,pe.Wide);break;case"EEEEE":it=qt(dt.Days,pe.Narrow);break;case"EEEEEE":it=qt(dt.Days,pe.Short);break;case"a":case"aa":case"aaa":it=qt(dt.DayPeriods,pe.Abbreviated);break;case"aaaa":it=qt(dt.DayPeriods,pe.Wide);break;case"aaaaa":it=qt(dt.DayPeriods,pe.Narrow);break;case"b":case"bb":case"bbb":it=qt(dt.DayPeriods,pe.Abbreviated,Z.Standalone,!0);break;case"bbbb":it=qt(dt.DayPeriods,pe.Wide,Z.Standalone,!0);break;case"bbbbb":it=qt(dt.DayPeriods,pe.Narrow,Z.Standalone,!0);break;case"B":case"BB":case"BBB":it=qt(dt.DayPeriods,pe.Abbreviated,Z.Format,!0);break;case"BBBB":it=qt(dt.DayPeriods,pe.Wide,Z.Format,!0);break;case"BBBBB":it=qt(dt.DayPeriods,pe.Narrow,Z.Format,!0);break;case"h":it=Un(et.Hours,1,-12);break;case"hh":it=Un(et.Hours,2,-12);break;case"H":it=Un(et.Hours,1);break;case"HH":it=Un(et.Hours,2);break;case"m":it=Un(et.Minutes,1);break;case"mm":it=Un(et.Minutes,2);break;case"s":it=Un(et.Seconds,1);break;case"ss":it=Un(et.Seconds,2);break;case"S":it=Un(et.FractionalSeconds,1);break;case"SS":it=Un(et.FractionalSeconds,2);break;case"SSS":it=Un(et.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":it=Ut(Fe.Short);break;case"ZZZZZ":it=Ut(Fe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":it=Ut(Fe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":it=Ut(Fe.Long);break;default:return null}return at[W]=it,it}(zo);Gi+=Xn?Xn(Nt,Te,yo):"''"===zo?"'":zo.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Gi}function cn(W,it,Te){const Ge=new Date(0);return Ge.setFullYear(W,it,Te),Ge.setHours(0,0,0),Ge}function Tn(W,it){const Te=function Y(W){return(0,t.H5H)(W)[t.KH2.LocaleId]}(W);if(_e[Te]??={},_e[Te][it])return _e[Te][it];let Ge="";switch(it){case"shortDate":Ge=zt(W,E.Short);break;case"mediumDate":Ge=zt(W,E.Medium);break;case"longDate":Ge=zt(W,E.Long);break;case"fullDate":Ge=zt(W,E.Full);break;case"shortTime":Ge=xt(W,E.Short);break;case"mediumTime":Ge=xt(W,E.Medium);break;case"longTime":Ge=xt(W,E.Long);break;case"fullTime":Ge=xt(W,E.Full);break;case"short":const Nt=Tn(W,"shortTime"),gn=Tn(W,"shortDate");Ge=Wn(st(W,E.Short),[Nt,gn]);break;case"medium":const Pn=Tn(W,"mediumTime"),hi=Tn(W,"mediumDate");Ge=Wn(st(W,E.Medium),[Pn,hi]);break;case"long":const yo=Tn(W,"longTime"),Gi=Tn(W,"longDate");Ge=Wn(st(W,E.Long),[yo,Gi]);break;case"full":const zo=Tn(W,"fullTime"),Xn=Tn(W,"fullDate");Ge=Wn(st(W,E.Full),[zo,Xn])}return Ge&&(_e[Te][it]=Ge),Ge}function Wn(W,it){return it&&(W=W.replace(/\{([^}]+)}/g,function(Te,Ge){return null!=it&&Ge in it?it[Ge]:Te})),W}function kn(W,it,Te="-",Ge,Nt){let gn="";(W<0||Nt&&W<=0)&&(Nt?W=1-W:(W=-W,gn=Te));let Pn=String(W);for(;Pn.length0||hi>-Te)&&(hi+=Te),W===et.Hours)0===hi&&-12===Te&&(hi=12);else if(W===et.FractionalSeconds)return function Vn(W,it){return kn(W,3).substring(0,it)}(hi,it);const yo=Ct(Pn,S.MinusSign);return kn(hi,it,yo,Ge,Nt)}}function qt(W,it,Te=Z.Format,Ge=!1){return function(Nt,gn){return function On(W,it,Te,Ge,Nt,gn){switch(Te){case dt.Months:return function Pt(W,it,Te){const Ge=(0,t.H5H)(W),gn=Et([Ge[t.KH2.MonthsFormat],Ge[t.KH2.MonthsStandalone]],it);return Et(gn,Te)}(it,Nt,Ge)[W.getMonth()];case dt.Days:return function Be(W,it,Te){const Ge=(0,t.H5H)(W),gn=Et([Ge[t.KH2.DaysFormat],Ge[t.KH2.DaysStandalone]],it);return Et(gn,Te)}(it,Nt,Ge)[W.getDay()];case dt.DayPeriods:const Pn=W.getHours(),hi=W.getMinutes();if(gn){const Gi=function zn(W){const it=(0,t.H5H)(W);return Hn(it),(it[t.KH2.ExtraData][2]||[]).map(Ge=>"string"==typeof Ge?Ot(Ge):[Ot(Ge[0]),Ot(Ge[1])])}(it),zo=function bt(W,it,Te){const Ge=(0,t.H5H)(W);Hn(Ge);const gn=Et([Ge[t.KH2.ExtraData][0],Ge[t.KH2.ExtraData][1]],it)||[];return Et(gn,Te)||[]}(it,Nt,Ge),Xn=Gi.findIndex(Io=>{if(Array.isArray(Io)){const[Wi,Ao]=Io,Qr=Pn>=Wi.hours&&hi>=Wi.minutes,Rr=Pn0?Math.floor(Nt/60):Math.ceil(Nt/60);switch(W){case Fe.Short:return(Nt>=0?"+":"")+kn(Pn,2,gn)+kn(Math.abs(Nt%60),2,gn);case Fe.ShortGMT:return"GMT"+(Nt>=0?"+":"")+kn(Pn,1,gn);case Fe.Long:return"GMT"+(Nt>=0?"+":"")+kn(Pn,2,gn)+":"+kn(Math.abs(Nt%60),2,gn);case Fe.Extended:return 0===Ge?"Z":(Nt>=0?"+":"")+kn(Pn,2,gn)+":"+kn(Math.abs(Nt%60),2,gn);default:throw new Error(`Unknown zone width "${W}"`)}}}const Ye=0,ue=4;function q(W){const it=W.getDay(),Te=0===it?-3:ue-it;return cn(W.getFullYear(),W.getMonth(),W.getDate()+Te)}function Xe(W,it=!1){return function(Te,Ge){let Nt;if(it){const gn=new Date(Te.getFullYear(),Te.getMonth(),1).getDay()-1,Pn=Te.getDate();Nt=1+Math.floor((Pn+gn)/7)}else{const gn=q(Te),Pn=function te(W){const it=cn(W,Ye,1).getDay();return cn(W,0,1+(it<=ue?ue:ue+7)-it)}(gn.getFullYear()),hi=gn.getTime()-Pn.getTime();Nt=1+Math.round(hi/6048e5)}return kn(Nt,W,Ct(Ge,S.MinusSign))}}function ht(W,it=!1){return function(Te,Ge){return kn(q(Te).getFullYear(),W,Ct(Ge,S.MinusSign),it)}}const at={};function Qe(W,it){W=W.replace(/:/g,"");const Te=Date.parse("Jan 01, 1970 00:00:00 "+W)/6e4;return isNaN(Te)?it:Te}function gt(W){return W instanceof Date&&!isNaN(W.valueOf())}const Ke=/^(\d+)?\.((\d+)(-(\d+))?)?$/,$="0";function jn(W){const it=parseInt(W);if(isNaN(it))throw new Error("Invalid integer literal when parsing "+W);return it}let Gn=(()=>{class W{static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275prov=t.jDH({token:W,factory:function(Ge){let Nt=null;return Ge?Nt=new Ge:(gn=t.KVO(t.xe9),Nt=new Oi(gn)),Nt;var gn},providedIn:"root"})}return W})();let Oi=(()=>{class W extends Gn{constructor(Te){super(),this.locale=Te}getPluralCategory(Te,Ge){switch(fn(Ge||this.locale)(Te)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.KVO(t.xe9))};static#t=this.\u0275prov=t.jDH({token:W,factory:W.\u0275fac})}return W})();function lo(W,it,Te){return(0,t.XSP)(W,it,Te)}function Zi(W,it){it=encodeURIComponent(it);for(const Te of W.split(";")){const Ge=Te.indexOf("="),[Nt,gn]=-1==Ge?[Te,""]:[Te.slice(0,Ge),Te.slice(Ge+1)];if(Nt.trim()===it)return decodeURIComponent(gn)}return null}const Bo=/\s+/,bo=[];let zr=(()=>{class W{constructor(Te,Ge){this._ngEl=Te,this._renderer=Ge,this.initialClasses=bo,this.stateMap=new Map}set klass(Te){this.initialClasses=null!=Te?Te.trim().split(Bo):bo}set ngClass(Te){this.rawClass="string"==typeof Te?Te.trim().split(Bo):Te}ngDoCheck(){for(const Ge of this.initialClasses)this._updateState(Ge,!0);const Te=this.rawClass;if(Array.isArray(Te)||Te instanceof Set)for(const Ge of Te)this._updateState(Ge,!0);else if(null!=Te)for(const Ge of Object.keys(Te))this._updateState(Ge,!!Te[Ge]);this._applyStateDiff()}_updateState(Te,Ge){const Nt=this.stateMap.get(Te);void 0!==Nt?(Nt.enabled!==Ge&&(Nt.changed=!0,Nt.enabled=Ge),Nt.touched=!0):this.stateMap.set(Te,{enabled:Ge,changed:!0,touched:!0})}_applyStateDiff(){for(const Te of this.stateMap){const Ge=Te[0],Nt=Te[1];Nt.changed?(this._toggleClass(Ge,Nt.enabled),Nt.changed=!1):Nt.touched||(Nt.enabled&&this._toggleClass(Ge,!1),this.stateMap.delete(Ge)),Nt.touched=!1}}_toggleClass(Te,Ge){(Te=Te.trim()).length>0&&Te.split(Bo).forEach(Nt=>{Ge?this._renderer.addClass(this._ngEl.nativeElement,Nt):this._renderer.removeClass(this._ngEl.nativeElement,Nt)})}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return W})();class Lt{constructor(it,Te,Ge,Nt){this.$implicit=it,this.ngForOf=Te,this.index=Ge,this.count=Nt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let $t=(()=>{class W{set ngForOf(Te){this._ngForOf=Te,this._ngForOfDirty=!0}set ngForTrackBy(Te){this._trackByFn=Te}get ngForTrackBy(){return this._trackByFn}constructor(Te,Ge,Nt){this._viewContainer=Te,this._template=Ge,this._differs=Nt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Te){Te&&(this._template=Te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Te=this._ngForOf;!this._differ&&Te&&(this._differ=this._differs.find(Te).create(this.ngForTrackBy))}if(this._differ){const Te=this._differ.diff(this._ngForOf);Te&&this._applyChanges(Te)}}_applyChanges(Te){const Ge=this._viewContainer;Te.forEachOperation((Nt,gn,Pn)=>{if(null==Nt.previousIndex)Ge.createEmbeddedView(this._template,new Lt(Nt.item,this._ngForOf,-1,-1),null===Pn?void 0:Pn);else if(null==Pn)Ge.remove(null===gn?void 0:gn);else if(null!==gn){const hi=Ge.get(gn);Ge.move(hi,Pn),mn(hi,Nt)}});for(let Nt=0,gn=Ge.length;Nt{mn(Ge.get(Nt.currentIndex),Nt)})}static ngTemplateContextGuard(Te,Ge){return!0}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(t._q3))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return W})();function mn(W,it){W.context.$implicit=it.item}let Yn=(()=>{class W{constructor(Te,Ge){this._viewContainer=Te,this._context=new En,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ge}set ngIf(Te){this._context.$implicit=this._context.ngIf=Te,this._updateView()}set ngIfThen(Te){Kn("ngIfThen",Te),this._thenTemplateRef=Te,this._thenViewRef=null,this._updateView()}set ngIfElse(Te){Kn("ngIfElse",Te),this._elseTemplateRef=Te,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Te,Ge){return!0}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return W})();class En{constructor(){this.$implicit=null,this.ngIf=null}}function Kn(W,it){if(it&&!it.createEmbeddedView)throw new Error(`${W} must be a TemplateRef, but received '${(0,t.Tbb)(it)}'.`)}class oi{constructor(it,Te){this._viewContainerRef=it,this._templateRef=Te,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(it){it&&!this._created?this.create():!it&&this._created&&this.destroy()}}let gi=(()=>{class W{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Te){this._ngSwitch=Te,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Te){this._defaultViews.push(Te)}_matchCase(Te){const Ge=Te===this._ngSwitch;return this._lastCasesMatched||=Ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ge}_updateDefaultCases(Te){if(this._defaultViews.length>0&&Te!==this._defaultUsed){this._defaultUsed=Te;for(const Ge of this._defaultViews)Ge.enforceState(Te)}}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return W})(),ro=(()=>{class W{constructor(Te,Ge,Nt){this.ngSwitch=Nt,Nt._addCase(),this._view=new oi(Te,Ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(gi,9))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return W})(),vi=(()=>{class W{constructor(Te,Ge,Nt){Nt._addDefault(new oi(Te,Ge))}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(gi,9))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return W})(),zi=(()=>{class W{constructor(Te){this._localization=Te,this._caseViews={}}set ngPlural(Te){this._updateView(Te)}addCase(Te,Ge){this._caseViews[Te]=Ge}_updateView(Te){this._clearViews();const Nt=function Ti(W,it,Te,Ge){let Nt=`=${W}`;if(it.indexOf(Nt)>-1||(Nt=Te.getPluralCategory(W,Ge),it.indexOf(Nt)>-1))return Nt;if(it.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${W}"`)}(Te,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[Nt])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(Te){Te&&(this._activeView=Te,this._activeView.create())}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(Gn))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0})}return W})(),Ni=(()=>{class W{constructor(Te,Ge,Nt,gn){this.value=Te;const Pn=!isNaN(Number(Te));gn.addCase(Pn?`=${Te}`:Te,new oi(Nt,Ge))}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.kS0("ngPluralCase"),t.rXU(t.C4Q),t.rXU(t.c1b),t.rXU(zi,1))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngPluralCase",""]],standalone:!0})}return W})(),so=(()=>{class W{constructor(Te,Ge,Nt){this._ngEl=Te,this._differs=Ge,this._renderer=Nt,this._ngStyle=null,this._differ=null}set ngStyle(Te){this._ngStyle=Te,!this._differ&&Te&&(this._differ=this._differs.find(Te).create())}ngDoCheck(){if(this._differ){const Te=this._differ.diff(this._ngStyle);Te&&this._applyChanges(Te)}}_setStyle(Te,Ge){const[Nt,gn]=Te.split("."),Pn=-1===Nt.indexOf("-")?void 0:t.czy.DashCase;null!=Ge?this._renderer.setStyle(this._ngEl.nativeElement,Nt,gn?`${Ge}${gn}`:Ge,Pn):this._renderer.removeStyle(this._ngEl.nativeElement,Nt,Pn)}_applyChanges(Te){Te.forEachRemovedItem(Ge=>this._setStyle(Ge.key,null)),Te.forEachAddedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue)),Te.forEachChangedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue))}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.aKT),t.rXU(t.MKu),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return W})(),Yi=(()=>{class W{constructor(Te){this._viewContainerRef=Te,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Te){if(this._shouldRecreateView(Te)){const Ge=this._viewContainerRef;if(this._viewRef&&Ge.remove(Ge.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Nt=this._createContextForwardProxy();this._viewRef=Ge.createEmbeddedView(this.ngTemplateOutlet,Nt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(Te){return!!Te.ngTemplateOutlet||!!Te.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(Te,Ge,Nt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ge,Nt),get:(Te,Ge,Nt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ge,Nt)}})}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.c1b))};static#t=this.\u0275dir=t.FsC({type:W,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.OA$]})}return W})();function Ki(W,it){return new t.wOt(2100,!1)}class qo{createSubscription(it,Te){return(0,t.O8t)(()=>it.subscribe({next:Te,error:Ge=>{throw Ge}}))}dispose(it){(0,t.O8t)(()=>it.unsubscribe())}}class pr{createSubscription(it,Te){return it.then(Te,Ge=>{throw Ge})}dispose(it){}}const fo=new pr,po=new qo;let fr=(()=>{class W{constructor(Te){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Te}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Te){if(!this._obj){if(Te)try{this.markForCheckOnValueUpdate=!1,this._subscribe(Te)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return Te!==this._obj?(this._dispose(),this.transform(Te)):this._latestValue}_subscribe(Te){this._obj=Te,this._strategy=this._selectStrategy(Te),this._subscription=this._strategy.createSubscription(Te,Ge=>this._updateLatestValue(Te,Ge))}_selectStrategy(Te){if((0,t.jNT)(Te))return fo;if((0,t.zjR)(Te))return po;throw Ki()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Te,Ge){Te===this._obj&&(this._latestValue=Ge,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.gRc,16))};static#t=this.\u0275pipe=t.EJ8({name:"async",type:W,pure:!1,standalone:!0})}return W})(),jo=(()=>{class W{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.toLowerCase()}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275pipe=t.EJ8({name:"lowercase",type:W,pure:!0,standalone:!0})}return W})();const Lr=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let qi=(()=>{class W{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.replace(Lr,Ge=>Ge[0].toUpperCase()+Ge.slice(1).toLowerCase())}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275pipe=t.EJ8({name:"titlecase",type:W,pure:!0,standalone:!0})}return W})(),wn=(()=>{class W{transform(Te){if(null==Te)return null;if("string"!=typeof Te)throw Ki();return Te.toUpperCase()}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275pipe=t.EJ8({name:"uppercase",type:W,pure:!0,standalone:!0})}return W})();const Mr=new t.nKC(""),Ur=new t.nKC("");let Ts=(()=>{class W{constructor(Te,Ge,Nt){this.locale=Te,this.defaultTimezone=Ge,this.defaultOptions=Nt}transform(Te,Ge,Nt,gn){if(null==Te||""===Te||Te!=Te)return null;try{return Kt(Te,Ge??this.defaultOptions?.dateFormat??"mediumDate",gn||this.locale,Nt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Pn){throw Ki()}}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.xe9,16),t.rXU(Mr,24),t.rXU(Ur,24))};static#t=this.\u0275pipe=t.EJ8({name:"date",type:W,pure:!0,standalone:!0})}return W})(),ye=(()=>{class W{transform(Te){return JSON.stringify(Te,null,2)}static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275pipe=t.EJ8({name:"json",type:W,pure:!1,standalone:!0})}return W})(),tt=(()=>{class W{constructor(Te){this.differs=Te,this.keyValues=[],this.compareFn=Mt}transform(Te,Ge=Mt){if(!Te||!(Te instanceof Map)&&"object"!=typeof Te)return null;this.differ??=this.differs.find(Te).create();const Nt=this.differ.diff(Te),gn=Ge!==this.compareFn;return Nt&&(this.keyValues=[],Nt.forEachItem(Pn=>{this.keyValues.push(function Ve(W,it){return{key:W,value:it}}(Pn.key,Pn.currentValue))})),(Nt||gn)&&(this.keyValues.sort(Ge),this.compareFn=Ge),this.keyValues}static#e=this.\u0275fac=function(Ge){return new(Ge||W)(t.rXU(t.MKu,16))};static#t=this.\u0275pipe=t.EJ8({name:"keyvalue",type:W,pure:!1,standalone:!0})}return W})();function Mt(W,it){const Te=W.key,Ge=it.key;if(Te===Ge)return 0;if(void 0===Te)return 1;if(void 0===Ge)return-1;if(null===Te)return 1;if(null===Ge)return-1;if("string"==typeof Te&&"string"==typeof Ge)return Te{class W{constructor(Te){this._locale=Te}transform(Te,Ge,Nt){if(!function bn(W){return!(null==W||""===W||W!=W)}(Te))return null;Nt||=this._locale;try{return function rt(W,it,Te){return function U(W,it,Te,Ge,Nt,gn,Pn=!1){let hi="",yo=!1;if(isFinite(W)){let Gi=function Cn(W){let Ge,Nt,gn,Pn,hi,it=Math.abs(W)+"",Te=0;for((Nt=it.indexOf("."))>-1&&(it=it.replace(".","")),(gn=it.search(/e/i))>0?(Nt<0&&(Nt=gn),Nt+=+it.slice(gn+1),it=it.substring(0,gn)):Nt<0&&(Nt=it.length),gn=0;it.charAt(gn)===$;gn++);if(gn===(hi=it.length))Ge=[0],Nt=1;else{for(hi--;it.charAt(hi)===$;)hi--;for(Nt-=gn,Ge=[],Pn=0;gn<=hi;gn++,Pn++)Ge[Pn]=Number(it.charAt(gn))}return Nt>22&&(Ge=Ge.splice(0,21),Te=Nt-1,Nt=1),{digits:Ge,exponent:Te,integerLen:Nt}}(W);Pn&&(Gi=function rn(W){if(0===W.digits[0])return W;const it=W.digits.length-W.integerLen;return W.exponent?W.exponent+=2:(0===it?W.digits.push(0,0):1===it&&W.digits.push(0),W.integerLen+=2),W}(Gi));let zo=it.minInt,Xn=it.minFrac,Io=it.maxFrac;if(gn){const ms=gn.match(Ke);if(null===ms)throw new Error(`${gn} is not a valid digit info`);const Br=ms[1],gs=ms[3],vs=ms[5];null!=Br&&(zo=jn(Br)),null!=gs&&(Xn=jn(gs)),null!=vs?Io=jn(vs):null!=gs&&Xn>Io&&(Io=Xn)}!function Zn(W,it,Te){if(it>Te)throw new Error(`The minimum number of digits after fraction (${it}) is higher than the maximum (${Te}).`);let Ge=W.digits,Nt=Ge.length-W.integerLen;const gn=Math.min(Math.max(it,Nt),Te);let Pn=gn+W.integerLen,hi=Ge[Pn];if(Pn>0){Ge.splice(Math.max(W.integerLen,Pn));for(let Xn=Pn;Xn=5)if(Pn-1<0){for(let Xn=0;Xn>Pn;Xn--)Ge.unshift(0),W.integerLen++;Ge.unshift(1),W.integerLen++}else Ge[Pn-1]++;for(;Nt=Gi?Ao.pop():yo=!1),Io>=10?1:0},0);zo&&(Ge.unshift(zo),W.integerLen++)}(Gi,Xn,Io);let Wi=Gi.digits,Ao=Gi.integerLen;const Qr=Gi.exponent;let Rr=[];for(yo=Wi.every(ms=>!ms);Ao0?Rr=Wi.splice(Ao,Wi.length):(Rr=Wi,Wi=[0]);const Is=[];for(Wi.length>=it.lgSize&&Is.unshift(Wi.splice(-it.lgSize,Wi.length).join(""));Wi.length>it.gSize;)Is.unshift(Wi.splice(-it.gSize,Wi.length).join(""));Wi.length&&Is.unshift(Wi.join("")),hi=Is.join(Ct(Te,Ge)),Rr.length&&(hi+=Ct(Te,Nt)+Rr.join("")),Qr&&(hi+=Ct(Te,S.Exponential)+"+"+Qr)}else hi=Ct(Te,S.Infinity);return hi=W<0&&!yo?it.negPre+hi+it.negSuf:it.posPre+hi+it.posSuf,hi}(W,function Ft(W,it="-"){const Te={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ge=W.split(";"),Nt=Ge[0],gn=Ge[1],Pn=-1!==Nt.indexOf(".")?Nt.split("."):[Nt.substring(0,Nt.lastIndexOf($)+1),Nt.substring(Nt.lastIndexOf($)+1)],hi=Pn[0],yo=Pn[1]||"";Te.posPre=hi.substring(0,hi.indexOf("#"));for(let zo=0;zo{class W{static#e=this.\u0275fac=function(Ge){return new(Ge||W)};static#t=this.\u0275mod=t.$C({type:W});static#n=this.\u0275inj=t.G2t({})}return W})();const qn="browser",pi="server";function ei(W){return W===qn}function li(W){return W===pi}const ai=new t.RxE("18.1.2");let mi=(()=>{class W{static#e=this.\u0275prov=(0,t.jDH)({token:W,providedIn:"root",factory:()=>ei((0,t.WQX)(t.Agw))?new Ei((0,t.WQX)(L),window):new Mi})}return W})();class Ei{constructor(it,Te){this.document=it,this.window=Te,this.offset=()=>[0,0]}setOffset(it){this.offset=Array.isArray(it)?()=>it:it}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(it){this.window.scrollTo(it[0],it[1])}scrollToAnchor(it){const Te=function Xi(W,it){const Te=W.getElementById(it)||W.getElementsByName(it)[0];if(Te)return Te;if("function"==typeof W.createTreeWalker&&W.body&&"function"==typeof W.body.attachShadow){const Ge=W.createTreeWalker(W.body,NodeFilter.SHOW_ELEMENT);let Nt=Ge.currentNode;for(;Nt;){const gn=Nt.shadowRoot;if(gn){const Pn=gn.getElementById(it)||gn.querySelector(`[name="${it}"]`);if(Pn)return Pn}Nt=Ge.nextNode()}}return null}(this.document,it);Te&&(this.scrollToElement(Te),Te.focus())}setHistoryScrollRestoration(it){this.window.history.scrollRestoration=it}scrollToElement(it){const Te=it.getBoundingClientRect(),Ge=Te.left+this.window.pageXOffset,Nt=Te.top+this.window.pageYOffset,gn=this.offset();this.window.scrollTo(Ge-gn[0],Nt-gn[1])}}class Mi{setOffset(it){}getScrollPosition(){return[0,0]}scrollToPosition(it){}scrollToAnchor(it){}setHistoryScrollRestoration(it){}}class no{}},1626:(Rt,De,c)=>{c.d(De,{$R:()=>Je,JV:()=>X,Lr:()=>V,Qq:()=>st,Sx:()=>gt,YH:()=>Re,c2:()=>Ke});var t=c(4523),r=c(3953),g=c(7673),e=c(1985),M=c(2806),G=c(274),L=c(5964),B=c(6354),A=c(980),w=c(5558),I=c(177);class F{}class X{}class V{constructor(Lt){this.normalizedNames=new Map,this.lazyUpdate=null,Lt?"string"==typeof Lt?this.lazyInit=()=>{this.headers=new Map,Lt.split("\n").forEach($t=>{const mn=$t.indexOf(":");if(mn>0){const hn=$t.slice(0,mn),Yn=hn.toLowerCase(),En=$t.slice(mn+1).trim();this.maybeSetNormalizedName(hn,Yn),this.headers.has(Yn)?this.headers.get(Yn).push(En):this.headers.set(Yn,[En])}})}:typeof Headers<"u"&&Lt instanceof Headers?(this.headers=new Map,Lt.forEach(($t,mn)=>{this.setHeaderEntries(mn,$t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Lt).forEach(([$t,mn])=>{this.setHeaderEntries($t,mn)})}:this.headers=new Map}has(Lt){return this.init(),this.headers.has(Lt.toLowerCase())}get(Lt){this.init();const $t=this.headers.get(Lt.toLowerCase());return $t&&$t.length>0?$t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Lt){return this.init(),this.headers.get(Lt.toLowerCase())||null}append(Lt,$t){return this.clone({name:Lt,value:$t,op:"a"})}set(Lt,$t){return this.clone({name:Lt,value:$t,op:"s"})}delete(Lt,$t){return this.clone({name:Lt,value:$t,op:"d"})}maybeSetNormalizedName(Lt,$t){this.normalizedNames.has($t)||this.normalizedNames.set($t,Lt)}init(){this.lazyInit&&(this.lazyInit instanceof V?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Lt=>this.applyUpdate(Lt)),this.lazyUpdate=null))}copyFrom(Lt){Lt.init(),Array.from(Lt.headers.keys()).forEach($t=>{this.headers.set($t,Lt.headers.get($t)),this.normalizedNames.set($t,Lt.normalizedNames.get($t))})}clone(Lt){const $t=new V;return $t.lazyInit=this.lazyInit&&this.lazyInit instanceof V?this.lazyInit:this,$t.lazyUpdate=(this.lazyUpdate||[]).concat([Lt]),$t}applyUpdate(Lt){const $t=Lt.name.toLowerCase();switch(Lt.op){case"a":case"s":let mn=Lt.value;if("string"==typeof mn&&(mn=[mn]),0===mn.length)return;this.maybeSetNormalizedName(Lt.name,$t);const hn=("a"===Lt.op?this.headers.get($t):void 0)||[];hn.push(...mn),this.headers.set($t,hn);break;case"d":const Yn=Lt.value;if(Yn){let En=this.headers.get($t);if(!En)return;En=En.filter(Kn=>-1===Yn.indexOf(Kn)),0===En.length?(this.headers.delete($t),this.normalizedNames.delete($t)):this.headers.set($t,En)}else this.headers.delete($t),this.normalizedNames.delete($t)}}setHeaderEntries(Lt,$t){const mn=(Array.isArray($t)?$t:[$t]).map(Yn=>Yn.toString()),hn=Lt.toLowerCase();this.headers.set(hn,mn),this.maybeSetNormalizedName(Lt,hn)}forEach(Lt){this.init(),Array.from(this.normalizedNames.keys()).forEach($t=>Lt(this.normalizedNames.get($t),this.headers.get($t)))}}class ne{encodeKey(Lt){return he(Lt)}encodeValue(Lt){return he(Lt)}decodeKey(Lt){return decodeURIComponent(Lt)}decodeValue(Lt){return decodeURIComponent(Lt)}}const be=/%(\d[a-f0-9])/gi,Oe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function he(lt){return encodeURIComponent(lt).replace(be,(Lt,$t)=>Oe[$t]??Lt)}function Ie(lt){return`${lt}`}class me{constructor(Lt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Lt.encoder||new ne,Lt.fromString){if(Lt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function J(lt,Lt){const $t=new Map;return lt.length>0&<.replace(/^\?/,"").split("&").forEach(hn=>{const Yn=hn.indexOf("="),[En,Kn]=-1==Yn?[Lt.decodeKey(hn),""]:[Lt.decodeKey(hn.slice(0,Yn)),Lt.decodeValue(hn.slice(Yn+1))],oi=$t.get(En)||[];oi.push(Kn),$t.set(En,oi)}),$t}(Lt.fromString,this.encoder)}else Lt.fromObject?(this.map=new Map,Object.keys(Lt.fromObject).forEach($t=>{const mn=Lt.fromObject[$t],hn=Array.isArray(mn)?mn.map(Ie):[Ie(mn)];this.map.set($t,hn)})):this.map=null}has(Lt){return this.init(),this.map.has(Lt)}get(Lt){this.init();const $t=this.map.get(Lt);return $t?$t[0]:null}getAll(Lt){return this.init(),this.map.get(Lt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Lt,$t){return this.clone({param:Lt,value:$t,op:"a"})}appendAll(Lt){const $t=[];return Object.keys(Lt).forEach(mn=>{const hn=Lt[mn];Array.isArray(hn)?hn.forEach(Yn=>{$t.push({param:mn,value:Yn,op:"a"})}):$t.push({param:mn,value:hn,op:"a"})}),this.clone($t)}set(Lt,$t){return this.clone({param:Lt,value:$t,op:"s"})}delete(Lt,$t){return this.clone({param:Lt,value:$t,op:"d"})}toString(){return this.init(),this.keys().map(Lt=>{const $t=this.encoder.encodeKey(Lt);return this.map.get(Lt).map(mn=>$t+"="+this.encoder.encodeValue(mn)).join("&")}).filter(Lt=>""!==Lt).join("&")}clone(Lt){const $t=new me({encoder:this.encoder});return $t.cloneFrom=this.cloneFrom||this,$t.updates=(this.updates||[]).concat(Lt),$t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Lt=>this.map.set(Lt,this.cloneFrom.map.get(Lt))),this.updates.forEach(Lt=>{switch(Lt.op){case"a":case"s":const $t=("a"===Lt.op?this.map.get(Lt.param):void 0)||[];$t.push(Ie(Lt.value)),this.map.set(Lt.param,$t);break;case"d":if(void 0===Lt.value){this.map.delete(Lt.param);break}{let mn=this.map.get(Lt.param)||[];const hn=mn.indexOf(Ie(Lt.value));-1!==hn&&mn.splice(hn,1),mn.length>0?this.map.set(Lt.param,mn):this.map.delete(Lt.param)}}}),this.cloneFrom=this.updates=null)}}class H{constructor(){this.map=new Map}set(Lt,$t){return this.map.set(Lt,$t),this}get(Lt){return this.map.has(Lt)||this.map.set(Lt,Lt.defaultValue()),this.map.get(Lt)}delete(Lt){return this.map.delete(Lt),this}has(Lt){return this.map.has(Lt)}keys(){return this.map.keys()}}function Z(lt){return typeof ArrayBuffer<"u"&< instanceof ArrayBuffer}function pe(lt){return typeof Blob<"u"&< instanceof Blob}function E(lt){return typeof FormData<"u"&< instanceof FormData}class R{constructor(Lt,$t,mn,hn){let Yn;if(this.url=$t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Lt.toUpperCase(),function z(lt){switch(lt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||hn?(this.body=void 0!==mn?mn:null,Yn=hn):Yn=mn,Yn&&(this.reportProgress=!!Yn.reportProgress,this.withCredentials=!!Yn.withCredentials,Yn.responseType&&(this.responseType=Yn.responseType),Yn.headers&&(this.headers=Yn.headers),Yn.context&&(this.context=Yn.context),Yn.params&&(this.params=Yn.params),this.transferCache=Yn.transferCache),this.headers??=new V,this.context??=new H,this.params){const En=this.params.toString();if(0===En.length)this.urlWithParams=$t;else{const Kn=$t.indexOf("?");this.urlWithParams=$t+(-1===Kn?"?":Kn<$t.length-1?"&":"")+En}}else this.params=new me,this.urlWithParams=$t}serializeBody(){return null===this.body?null:"string"==typeof this.body||Z(this.body)||pe(this.body)||E(this.body)||function S(lt){return typeof URLSearchParams<"u"&< instanceof URLSearchParams}(this.body)?this.body:this.body instanceof me?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||E(this.body)?null:pe(this.body)?this.body.type||null:Z(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof me?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Lt={}){const $t=Lt.method||this.method,mn=Lt.url||this.url,hn=Lt.responseType||this.responseType,Yn=Lt.transferCache??this.transferCache,En=void 0!==Lt.body?Lt.body:this.body,Kn=Lt.withCredentials??this.withCredentials,oi=Lt.reportProgress??this.reportProgress;let gi=Lt.headers||this.headers,ro=Lt.params||this.params;const vi=Lt.context??this.context;return void 0!==Lt.setHeaders&&(gi=Object.keys(Lt.setHeaders).reduce((pn,$i)=>pn.set($i,Lt.setHeaders[$i]),gi)),Lt.setParams&&(ro=Object.keys(Lt.setParams).reduce((pn,$i)=>pn.set($i,Lt.setParams[$i]),ro)),new R($t,mn,En,{params:ro,headers:gi,context:vi,reportProgress:oi,responseType:hn,withCredentials:Kn,transferCache:Yn})}}var Y=function(lt){return lt[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt}(Y||{});class se{constructor(Lt,$t=200,mn="OK"){this.headers=Lt.headers||new V,this.status=void 0!==Lt.status?Lt.status:$t,this.statusText=Lt.statusText||mn,this.url=Lt.url||null,this.ok=this.status>=200&&this.status<300}}class Be extends se{constructor(Lt={}){super(Lt),this.type=Y.ResponseHeader}clone(Lt={}){return new Be({headers:Lt.headers||this.headers,status:void 0!==Lt.status?Lt.status:this.status,statusText:Lt.statusText||this.statusText,url:Lt.url||this.url||void 0})}}class Pt extends se{constructor(Lt={}){super(Lt),this.type=Y.Response,this.body=void 0!==Lt.body?Lt.body:null}clone(Lt={}){return new Pt({body:void 0!==Lt.body?Lt.body:this.body,headers:Lt.headers||this.headers,status:void 0!==Lt.status?Lt.status:this.status,statusText:Lt.statusText||this.statusText,url:Lt.url||this.url||void 0})}}class vt extends se{constructor(Lt){super(Lt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Lt.url||"(unknown url)"}`:`Http failure response for ${Lt.url||"(unknown url)"}: ${Lt.status} ${Lt.statusText}`,this.error=Lt.error||null}}function xt(lt,Lt){return{body:Lt,headers:lt.headers,context:lt.context,observe:lt.observe,params:lt.params,reportProgress:lt.reportProgress,responseType:lt.responseType,withCredentials:lt.withCredentials,transferCache:lt.transferCache}}let st=(()=>{class lt{constructor($t){this.handler=$t}request($t,mn,hn={}){let Yn;if($t instanceof R)Yn=$t;else{let oi,gi;oi=hn.headers instanceof V?hn.headers:new V(hn.headers),hn.params&&(gi=hn.params instanceof me?hn.params:new me({fromObject:hn.params})),Yn=new R($t,mn,void 0!==hn.body?hn.body:null,{headers:oi,context:hn.context,params:gi,reportProgress:hn.reportProgress,responseType:hn.responseType||"json",withCredentials:hn.withCredentials,transferCache:hn.transferCache})}const En=(0,g.of)(Yn).pipe((0,G.H)(oi=>this.handler.handle(oi)));if($t instanceof R||"events"===hn.observe)return En;const Kn=En.pipe((0,L.p)(oi=>oi instanceof Pt));switch(hn.observe||"body"){case"body":switch(Yn.responseType){case"arraybuffer":return Kn.pipe((0,B.T)(oi=>{if(null!==oi.body&&!(oi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return oi.body}));case"blob":return Kn.pipe((0,B.T)(oi=>{if(null!==oi.body&&!(oi.body instanceof Blob))throw new Error("Response is not a Blob.");return oi.body}));case"text":return Kn.pipe((0,B.T)(oi=>{if(null!==oi.body&&"string"!=typeof oi.body)throw new Error("Response is not a string.");return oi.body}));default:return Kn.pipe((0,B.T)(oi=>oi.body))}case"response":return Kn;default:throw new Error(`Unreachable: unhandled observe type ${hn.observe}}`)}}delete($t,mn={}){return this.request("DELETE",$t,mn)}get($t,mn={}){return this.request("GET",$t,mn)}head($t,mn={}){return this.request("HEAD",$t,mn)}jsonp($t,mn){return this.request("JSONP",$t,{params:(new me).append(mn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options($t,mn={}){return this.request("OPTIONS",$t,mn)}patch($t,mn,hn={}){return this.request("PATCH",$t,xt(hn,mn))}post($t,mn,hn={}){return this.request("POST",$t,xt(hn,mn))}put($t,mn,hn={}){return this.request("PUT",$t,xt(hn,mn))}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(F))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const Ct=/^\)\]\}',?\n/;function Tt(lt){if(lt.url)return lt.url;const Lt="X-Request-URL".toLocaleLowerCase();return lt.headers.get(Lt)}let en=(()=>{class lt{constructor(){this.fetchImpl=(0,r.WQX)(jt,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=(0,r.WQX)(r.SKi)}handle($t){return new e.c(mn=>{const hn=new AbortController;return this.doRequest($t,hn.signal,mn).then(Vt,Yn=>mn.error(new vt({error:Yn}))),()=>hn.abort()})}doRequest($t,mn,hn){var Yn=this;return(0,t.A)(function*(){const En=Yn.createRequestInit($t);let Kn;try{const zi=Yn.ngZone.runOutsideAngular(()=>Yn.fetchImpl($t.urlWithParams,{signal:mn,...En}));(function fn(lt){lt.then(Vt,Vt)})(zi),hn.next({type:Y.Sent}),Kn=yield zi}catch(zi){return void hn.error(new vt({error:zi,status:zi.status??0,statusText:zi.statusText,url:$t.urlWithParams,headers:zi.headers}))}const oi=new V(Kn.headers),gi=Kn.statusText,ro=Tt(Kn)??$t.urlWithParams;let vi=Kn.status,pn=null;if($t.reportProgress&&hn.next(new Be({headers:oi,status:vi,statusText:gi,url:ro})),Kn.body){const zi=Kn.headers.get("content-length"),Ni=[],so=Kn.body.getReader();let Xo,Ki,Yi=0;const qo=typeof Zone<"u"&&Zone.current;yield Yn.ngZone.runOutsideAngular((0,t.A)(function*(){for(;;){const{done:fo,value:po}=yield so.read();if(fo)break;if(Ni.push(po),Yi+=po.length,$t.reportProgress){Ki="text"===$t.responseType?(Ki??"")+(Xo??=new TextDecoder).decode(po,{stream:!0}):void 0;const fr=()=>hn.next({type:Y.DownloadProgress,total:zi?+zi:void 0,loaded:Yi,partialText:Ki});qo?qo.run(fr):fr()}}}));const pr=Yn.concatChunks(Ni,Yi);try{const fo=Kn.headers.get("Content-Type")??"";pn=Yn.parseBody($t,pr,fo)}catch(fo){return void hn.error(new vt({error:fo,headers:new V(Kn.headers),status:Kn.status,statusText:Kn.statusText,url:Tt(Kn)??$t.urlWithParams}))}}0===vi&&(vi=pn?200:0),vi>=200&&vi<300?(hn.next(new Pt({body:pn,headers:oi,status:vi,statusText:gi,url:ro})),hn.complete()):hn.error(new vt({error:pn,headers:oi,status:vi,statusText:gi,url:ro}))})()}parseBody($t,mn,hn){switch($t.responseType){case"json":const Yn=(new TextDecoder).decode(mn).replace(Ct,"");return""===Yn?null:JSON.parse(Yn);case"text":return(new TextDecoder).decode(mn);case"blob":return new Blob([mn],{type:hn});case"arraybuffer":return mn.buffer}}createRequestInit($t){const mn={},hn=$t.withCredentials?"include":void 0;if($t.headers.forEach((Yn,En)=>mn[Yn]=En.join(",")),$t.headers.has("Accept")||(mn.Accept="application/json, text/plain, */*"),!$t.headers.has("Content-Type")){const Yn=$t.detectContentTypeHeader();null!==Yn&&(mn["Content-Type"]=Yn)}return{body:$t.serializeBody(),method:$t.method,headers:mn,credentials:hn}}concatChunks($t,mn){const hn=new Uint8Array(mn);let Yn=0;for(const En of $t)hn.set(En,Yn),Yn+=En.length;return hn}static#e=this.\u0275fac=function(mn){return new(mn||lt)};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();class jt{}function Vt(){}function Hn(lt,Lt){return Lt(lt)}function zn(lt,Lt){return($t,mn)=>Lt.intercept($t,{handle:hn=>lt(hn,mn)})}const At=new r.nKC(""),Et=new r.nKC(""),Ot=new r.nKC(""),Wt=new r.nKC("",{providedIn:"root",factory:()=>!0});function Ue(){let lt=null;return(Lt,$t)=>{null===lt&&(lt=((0,r.WQX)(At,{optional:!0})??[]).reduceRight(zn,Hn));const mn=(0,r.WQX)(r.TgB);if((0,r.WQX)(Wt)){const Yn=mn.add();return lt(Lt,$t).pipe((0,A.j)(()=>mn.remove(Yn)))}return lt(Lt,$t)}}let Fe,_e=(()=>{class lt extends F{constructor($t,mn){super(),this.backend=$t,this.injector=mn,this.chain=null,this.pendingTasks=(0,r.WQX)(r.TgB),this.contributeToStability=(0,r.WQX)(Wt)}handle($t){if(null===this.chain){const mn=Array.from(new Set([...this.injector.get(Et),...this.injector.get(Ot,[])]));this.chain=mn.reduceRight((hn,Yn)=>function bt(lt,Lt,$t){return(mn,hn)=>(0,r.N4e)($t,()=>Lt(mn,Yn=>lt(Yn,hn)))}(hn,Yn,this.injector),Hn)}if(this.contributeToStability){const mn=this.pendingTasks.add();return this.chain($t,hn=>this.backend.handle(hn)).pipe((0,A.j)(()=>this.pendingTasks.remove(mn)))}return this.chain($t,mn=>this.backend.handle(mn))}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(X),r.KVO(r.uvJ))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})(),oe=0;class Tn{}function Wn(){return"object"==typeof window?window:{}}let kn=(()=>{class lt{constructor($t,mn){this.callbackMap=$t,this.document=mn,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+oe++}handle($t){if("JSONP"!==$t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==$t.responseType)throw new Error("JSONP requests must use Json response type.");if($t.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new e.c(mn=>{const hn=this.nextCallback(),Yn=$t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${hn}$1`),En=this.document.createElement("script");En.src=Yn;let Kn=null,oi=!1;this.callbackMap[hn]=pn=>{delete this.callbackMap[hn],Kn=pn,oi=!0};const gi=()=>{En.parentNode&&En.parentNode.removeChild(En),delete this.callbackMap[hn]};return En.addEventListener("load",pn=>{this.resolvedPromise.then(()=>{gi(),oi?(mn.next(new Pt({body:Kn,status:200,statusText:"OK",url:Yn})),mn.complete()):mn.error(new vt({url:Yn,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),En.addEventListener("error",pn=>{gi(),mn.error(new vt({error:pn,status:0,statusText:"JSONP Error",url:Yn}))}),this.document.body.appendChild(En),mn.next({type:Y.Sent}),()=>{oi||this.removeListeners(En),gi()}})}removeListeners($t){Fe??=this.document.implementation.createHTMLDocument(),Fe.adoptNode($t)}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(Tn),r.KVO(I.qQ))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();function Vn(lt,Lt){return"JSONP"===lt.method?(0,r.WQX)(kn).handle(lt):Lt(lt)}const dn=/^\)\]\}',?\n/;let On=(()=>{class lt{constructor($t){this.xhrFactory=$t}handle($t){if("JSONP"===$t.method)throw new r.wOt(-2800,!1);const mn=this.xhrFactory;return(mn.\u0275loadImpl?(0,M.H)(mn.\u0275loadImpl()):(0,g.of)(null)).pipe((0,w.n)(()=>new e.c(Yn=>{const En=mn.build();if(En.open($t.method,$t.urlWithParams),$t.withCredentials&&(En.withCredentials=!0),$t.headers.forEach((Ni,so)=>En.setRequestHeader(Ni,so.join(","))),$t.headers.has("Accept")||En.setRequestHeader("Accept","application/json, text/plain, */*"),!$t.headers.has("Content-Type")){const Ni=$t.detectContentTypeHeader();null!==Ni&&En.setRequestHeader("Content-Type",Ni)}if($t.responseType){const Ni=$t.responseType.toLowerCase();En.responseType="json"!==Ni?Ni:"text"}const Kn=$t.serializeBody();let oi=null;const gi=()=>{if(null!==oi)return oi;const Ni=En.statusText||"OK",so=new V(En.getAllResponseHeaders()),Yi=function qt(lt){return"responseURL"in lt&<.responseURL?lt.responseURL:/^X-Request-URL:/m.test(lt.getAllResponseHeaders())?lt.getResponseHeader("X-Request-URL"):null}(En)||$t.url;return oi=new Be({headers:so,status:En.status,statusText:Ni,url:Yi}),oi},ro=()=>{let{headers:Ni,status:so,statusText:Yi,url:Xo}=gi(),Ki=null;204!==so&&(Ki=typeof En.response>"u"?En.responseText:En.response),0===so&&(so=Ki?200:0);let qo=so>=200&&so<300;if("json"===$t.responseType&&"string"==typeof Ki){const pr=Ki;Ki=Ki.replace(dn,"");try{Ki=""!==Ki?JSON.parse(Ki):null}catch(fo){Ki=pr,qo&&(qo=!1,Ki={error:fo,text:Ki})}}qo?(Yn.next(new Pt({body:Ki,headers:Ni,status:so,statusText:Yi,url:Xo||void 0})),Yn.complete()):Yn.error(new vt({error:Ki,headers:Ni,status:so,statusText:Yi,url:Xo||void 0}))},vi=Ni=>{const{url:so}=gi(),Yi=new vt({error:Ni,status:En.status||0,statusText:En.statusText||"Unknown Error",url:so||void 0});Yn.error(Yi)};let pn=!1;const $i=Ni=>{pn||(Yn.next(gi()),pn=!0);let so={type:Y.DownloadProgress,loaded:Ni.loaded};Ni.lengthComputable&&(so.total=Ni.total),"text"===$t.responseType&&En.responseText&&(so.partialText=En.responseText),Yn.next(so)},zi=Ni=>{let so={type:Y.UploadProgress,loaded:Ni.loaded};Ni.lengthComputable&&(so.total=Ni.total),Yn.next(so)};return En.addEventListener("load",ro),En.addEventListener("error",vi),En.addEventListener("timeout",vi),En.addEventListener("abort",vi),$t.reportProgress&&(En.addEventListener("progress",$i),null!==Kn&&En.upload&&En.upload.addEventListener("progress",zi)),En.send(Kn),Yn.next({type:Y.Sent}),()=>{En.removeEventListener("error",vi),En.removeEventListener("abort",vi),En.removeEventListener("load",ro),En.removeEventListener("timeout",vi),$t.reportProgress&&(En.removeEventListener("progress",$i),null!==Kn&&En.upload&&En.upload.removeEventListener("progress",zi)),En.readyState!==En.DONE&&En.abort()}})))}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(I.N0))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const Ut=new r.nKC(""),ue=new r.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),q=new r.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Xe{}let ht=(()=>{class lt{constructor($t,mn,hn){this.doc=$t,this.platform=mn,this.cookieName=hn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const $t=this.doc.cookie||"";return $t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,I._b)($t,this.cookieName),this.lastCookieString=$t),this.lastToken}static#e=this.\u0275fac=function(mn){return new(mn||lt)(r.KVO(I.qQ),r.KVO(r.Agw),r.KVO(ue))};static#t=this.\u0275prov=r.jDH({token:lt,factory:lt.\u0275fac})}return lt})();function at(lt,Lt){const $t=lt.url.toLowerCase();if(!(0,r.WQX)(Ut)||"GET"===lt.method||"HEAD"===lt.method||$t.startsWith("http://")||$t.startsWith("https://"))return Lt(lt);const mn=(0,r.WQX)(Xe).getToken(),hn=(0,r.WQX)(q);return null!=mn&&!lt.headers.has(hn)&&(lt=lt.clone({headers:lt.headers.set(hn,mn)})),Lt(lt)}var Qe=function(lt){return lt[lt.Interceptors=0]="Interceptors",lt[lt.LegacyInterceptors=1]="LegacyInterceptors",lt[lt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",lt[lt.NoXsrfProtection=3]="NoXsrfProtection",lt[lt.JsonpSupport=4]="JsonpSupport",lt[lt.RequestsMadeViaParent=5]="RequestsMadeViaParent",lt[lt.Fetch=6]="Fetch",lt}(Qe||{});function Ee(lt,Lt){return{\u0275kind:lt,\u0275providers:Lt}}function Je(...lt){const Lt=[st,On,_e,{provide:F,useExisting:_e},{provide:X,useFactory:()=>(0,r.WQX)(en,{optional:!0})??(0,r.WQX)(On)},{provide:Et,useValue:at,multi:!0},{provide:Ut,useValue:!0},{provide:Xe,useClass:ht}];for(const $t of lt)Lt.push(...$t.\u0275providers);return(0,r.EmA)(Lt)}const ze=new r.nKC("");function gt(){return Ee(Qe.LegacyInterceptors,[{provide:ze,useFactory:Ue},{provide:Et,useExisting:ze,multi:!0}])}function Ke({cookieName:lt,headerName:Lt}){const $t=[];return void 0!==lt&&$t.push({provide:ue,useValue:lt}),void 0!==Lt&&$t.push({provide:q,useValue:Lt}),Ee(Qe.CustomXsrfConfiguration,$t)}function Re(){return Ee(Qe.JsonpSupport,[kn,{provide:Tn,useFactory:Wn},{provide:Et,useValue:Vn,multi:!0}])}},3953:(Rt,De,c)=>{function t(n,i){return Object.is(n,i)}c.d(De,{bc$:()=>pp,iLQ:()=>xf,sZ2:()=>mh,hnV:()=>g_,Hbi:()=>yM,o8S:()=>su,BIS:()=>K4,gRc:()=>w_,Ql9:()=>Uz,OM3:()=>s4,rjb:()=>ug,Ocv:()=>Zz,Z63:()=>ar,aKT:()=>Bt,uvJ:()=>Cs,zcH:()=>ya,bkB:()=>Mn,y_5:()=>ms,$GK:()=>co,nKC:()=>wi,zZn:()=>kr,_q3:()=>E8,MKu:()=>T8,xe9:()=>Af,Co$:()=>rv,Vns:()=>Ph,SKi:()=>Pr,Xx1:()=>Br,Agw:()=>Zh,PLl:()=>hp,rOR:()=>an,sFG:()=>eC,_9s:()=>Y3,czy:()=>jp,WPN:()=>Hd,FRM:()=>Nl,kdw:()=>vs,C4Q:()=>Jp,NYb:()=>Vz,giA:()=>f_,ZUJ:()=>gu,RxE:()=>s_,c1b:()=>rf,gXe:()=>Ps,mal:()=>Eg,Tzd:()=>bg,L39:()=>eS,EWP:()=>iS,a0P:()=>lS,Ol2:()=>h6,w6W:()=>eb,oH4:()=>S_,QZP:()=>h9,SmG:()=>oM,Rfq:()=>Bn,WQX:()=>Xn,naY:()=>iM,Hps:()=>a6,QuC:()=>oa,EmA:()=>Ml,Udg:()=>tS,fpN:()=>_M,HJs:()=>uS,N4e:()=>pu,vPA:()=>$g,O8t:()=>oS,H3F:()=>a_,zAP:()=>n9,H8p:()=>Ol,KH2:()=>W2,YHP:()=>ha,FOc:()=>q0,TgB:()=>Xt,wOt:()=>Fn,WHO:()=>h_,e01:()=>p_,lNU:()=>io,h9k:()=>n3,$MX:()=>Mh,ZF7:()=>$1,Kcf:()=>h0,e5t:()=>g0,UyX:()=>f0,cWb:()=>p0,osQ:()=>m0,H5H:()=>$6,Zy3:()=>_o,xtB:()=>_i,mq5:()=>h5,JZv:()=>Eo,LfX:()=>$a,plB:()=>Yd,jNT:()=>d8,zjR:()=>m_,XSP:()=>wE,TL$:()=>G4,Tbb:()=>fe,rcV:()=>gl,Vt3:()=>l6,GFd:()=>ov,OA$:()=>kl,Jv_:()=>E7,aNF:()=>T7,R7$:()=>_m,BMQ:()=>M6,HbH:()=>Yv,ZvI:()=>qv,AVh:()=>P6,BUC:()=>e5,vxM:()=>o5,wni:()=>W5,SS7:()=>e8,VBU:()=>ln,FsC:()=>ys,jDH:()=>mo,G2t:()=>Yr,$C:()=>Ai,EJ8:()=>Or,rXU:()=>T2,nrm:()=>k6,eu8:()=>V6,bVm:()=>bf,qex:()=>Cf,k0s:()=>yf,j41:()=>_f,RV6:()=>d5,xGo:()=>sh,Mr5:()=>L6,KVO:()=>Gi,kS0:()=>Nu,QTQ:()=>Cm,bIt:()=>U6,lsd:()=>Q5,qSk:()=>w1,XpG:()=>k5,nI1:()=>L7,bMT:()=>B7,i5U:()=>$7,brH:()=>H7,ii3:()=>j7,SdG:()=>L5,NAR:()=>V5,Y8G:()=>I6,FS9:()=>W6,Mz_:()=>Mf,FCK:()=>K6,lJ4:()=>D7,eq3:()=>O7,l_i:()=>I7,sMw:()=>w7,ziG:()=>x7,s1E:()=>P7,l4e:()=>F7,mGM:()=>X5,r8f:()=>C7,sdS:()=>J5,Dyx:()=>c5,Z7z:()=>a5,fX1:()=>s5,Vm6:()=>r5,Njj:()=>z1,tSv:()=>F0,eBV:()=>T1,npT:()=>o3,$dS:()=>S0,B4B:()=>Lp,n$t:()=>O0,wjB:()=>z7,bH3:()=>y7,Aen:()=>iu,muq:()=>Z5,xc7:()=>x6,Kam:()=>G6,zvX:()=>B6,DNE:()=>f6,C5r:()=>U7,EFF:()=>c7,JRh:()=>Q6,SpI:()=>Sf,Lme:()=>J6,DH7:()=>v7,mxI:()=>q6,R50:()=>Z6,GBs:()=>K5});let r=null,g=!1,e=1;const M=Symbol("SIGNAL");function G(n){const i=r;return r=n,i}const w={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function I(n){if(g)throw new Error("");if(null===r)return;r.consumerOnSignalRead(n);const i=r.nextProducerIndex++;H(r),in.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function Oe(n){H(n);for(let i=0;i0}function H(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function z(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}function Z(n){return void 0!==n.producerNode}const E=Symbol("UNSET"),S=Symbol("COMPUTING"),R=Symbol("ERRORED"),Y={...w,value:E,dirty:!0,error:null,equal:t,producerMustRecompute:n=>n.value===E||n.value===S,producerRecomputeValue(n){if(n.value===S)throw new Error("Detected cycle in computations.");const i=n.value;n.value=S;const o=J(n);let s;try{s=n.computation()}catch(l){s=R,n.error=l}finally{be(n,o)}i!==E&&i!==R&&s!==R&&n.equal(i,s)?n.value=i:(n.value=s,n.version++)}};let Be=function se(){throw new Error};function Pt(){Be()}let wt=null;function st(n,i){x()||Pt(),n.equal(n.value,i)||(n.value=i,function en(n){n.version++,function F(){e++}(),V(n),wt?.()}(n))}const Tt={...w,equal:t,value:void 0};const Vt=()=>{},fn={...w,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:n=>{null!==n.schedule&&n.schedule(n.ref)},hasRun:!1,cleanupFn:Vt};var zn=c(4412),bt=c(1413),At=c(8359),Et=c(6354);typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const io="https://g.co/ng/security#xss";class Fn extends Error{constructor(i,o){super(_o(i,o)),this.code=i}}function _o(n,i){return`NG0${Math.abs(n)}${i?": "+i:""}`}function _r(n){return{toString:n}.toString()}const sr="__parameters__";function Uo(n,i,o){return _r(()=>{const s=function Fr(n){return function(...o){if(n){const s=n(...o);for(const l in s)this[l]=s[l]}}}(i);function l(...f){if(this instanceof l)return s.apply(this,f),this;const y=new l(...f);return D.annotation=y,D;function D(j,Se,He){const _t=j.hasOwnProperty(sr)?j[sr]:Object.defineProperty(j,sr,{value:[]})[sr];for(;_t.length<=He;)_t.push(null);return(_t[He]=_t[He]||[]).push(y),j}}return o&&(l.prototype=Object.create(o.prototype)),l.prototype.ngMetadataName=n,l.annotationCls=l,l})}const Eo=globalThis;function Ze(n){for(let i in n)if(n[i]===Ze)return i;throw Error("Could not find renamed property on target object.")}function An(n,i){for(const o in i)i.hasOwnProperty(o)&&!n.hasOwnProperty(o)&&(n[o]=i[o])}function fe(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(fe).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const i=n.toString();if(null==i)return""+i;const o=i.indexOf("\n");return-1===o?i:i.substring(0,o)}function We(n,i){return null==n||""===n?null===i?"":i:null==i||""===i?n:n+" "+i}const sn=Ze({__forward_ref__:Ze});function Bn(n){return n.__forward_ref__=Bn,n.toString=function(){return fe(this())},n}function $n(n){return fi(n)?n():n}function fi(n){return"function"==typeof n&&n.hasOwnProperty(sn)&&n.__forward_ref__===Bn}function mo(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Yr(n){return{providers:n.providers||[],imports:n.imports||[]}}function na(n){return mr(n,hs)||mr(n,da)}function $a(n){return null!==na(n)}function mr(n,i){return n.hasOwnProperty(i)?n[i]:null}function Ys(n){return n&&(n.hasOwnProperty(_c)||n.hasOwnProperty(Wr))?n[_c]:null}const hs=Ze({\u0275prov:Ze}),_c=Ze({\u0275inj:Ze}),da=Ze({ngInjectableDef:Ze}),Wr=Ze({ngInjectorDef:Ze});class wi{constructor(i,o){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=mo({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function br(n){return n&&!!n.\u0275providers}const Ss=Ze({\u0275cmp:Ze}),Ua=Ze({\u0275dir:Ze}),ha=Ze({\u0275pipe:Ze}),jc=Ze({\u0275mod:Ze}),Ds=Ze({\u0275fac:Ze}),Ga=Ze({__NG_ELEMENT_ID__:Ze}),yc=Ze({__NG_ENV_ID__:Ze});function Vi(n){return"string"==typeof n?n:null==n?"":String(n)}function Ks(n,i){throw new Fn(-201,!1)}var co=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(co||{});let Ya;function bc(){return Ya}function Go(n){const i=Ya;return Ya=n,i}function Ar(n,i,o){const s=na(n);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:o&co.Optional?null:void 0!==i?i:void Ks()}const Ma={},Ec="__NG_DI_FLAG__",W="ngTempTokenPath",Te=/\n/gm,Nt="__source";let gn;function hi(n){const i=gn;return gn=n,i}function yo(n,i=co.Default){if(void 0===gn)throw new Fn(-203,!1);return null===gn?Ar(n,void 0,i):gn.get(n,i&co.Optional?null:void 0,i)}function Gi(n,i=co.Default){return(bc()||yo)($n(n),i)}function Xn(n,i=co.Default){return Gi(n,Io(i))}function Io(n){return typeof n>"u"||"number"==typeof n?n:(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Wi(n){const i=[];for(let o=0;o({token:n})),-1),Br=Ao(Uo("Optional"),8),vs=Ao(Uo("SkipSelf"),4);function ws(n,i){return n.hasOwnProperty(Ds)?n[Ds]:null}function ns(n,i){n.forEach(o=>Array.isArray(o)?ns(o,i):i(o))}function to(n,i,o){i>=n.length?n.push(o):n.splice(i,0,o)}function Sa(n,i){return i>=n.length-1?n.pop():n.splice(i,1)[0]}function Dr(n,i,o){let s=Wa(n,i);return s>=0?n[1|s]=o:(s=~s,function Yc(n,i,o,s){let l=n.length;if(l==i)n.push(o,s);else if(1===l)n.push(s,n[0]),n[0]=o;else{for(l--,n.push(n[l-1],n[l]);l>i;)n[l]=n[l-2],l--;n[i]=o,n[i+1]=s}}(n,s,i,o)),s}function Cl(n,i){const o=Wa(n,i);if(o>=0)return n[1|o]}function Wa(n,i){return function Mc(n,i,o){let s=0,l=n.length>>o;for(;l!==s;){const f=s+(l-s>>1),y=n[f<i?l=f:s=f+1}return~(l<i){y=f-1;break}}}for(;f-1){let f;for(;++lf?"":l[He+1].toLowerCase(),2&s&&Se!==_t){if(_s(s))return!1;y=!0}}}}else{if(!y&&!_s(s)&&!_s(j))return!1;if(y&&_s(j))continue;y=!1,s=j|1&s}}return _s(s)||y}function _s(n){return!(1&n)}function lu(n,i,o,s){if(null===i)return-1;let l=0;if(s||!o){let f=!1;for(;l-1)for(o++;o0?'="'+D+'"':"")+"]"}else 8&s?l+="."+y:4&s&&(l+=" "+y);else""!==l&&!_s(y)&&(i+=$e(f,l),l=""),s=y,f=f||!_s(s);o++}return""!==l&&(i+=$e(f,l)),i}function ln(n){return _r(()=>{const i=El(n),o={...i,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===Kc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Ps.Emulated,styles:n.styles||go,_:null,schemas:n.schemas||null,tView:null,id:""};Tl(o);const s=n.dependencies;return o.directiveDefs=zl(s,!1),o.pipeDefs=zl(s,!0),o.id=function Zd(n){let i=0;const o=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const l of o)i=Math.imul(31,i)+l.charCodeAt(0)|0;return i+=2147483648,"c"+i}(o),o})}function si(n){return Hi(n)||So(n)}function Fi(n){return null!==n}function Ai(n){return _r(()=>({type:n.type,bootstrap:n.bootstrap||go,declarations:n.declarations||go,imports:n.imports||go,exports:n.exports||go,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Ro(n,i){if(null==n)return Jr;const o={};for(const s in n)if(n.hasOwnProperty(s)){const l=n[s];let f,y,D=Fs.None;Array.isArray(l)?(D=l[0],f=l[1],y=l[2]??f):(f=l,y=l),i?(o[f]=D!==Fs.None?[s,D]:s,i[f]=y):o[f]=s}return o}function ys(n){return _r(()=>{const i=El(n);return Tl(i),i})}function Or(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Hi(n){return n[Ss]||null}function So(n){return n[Ua]||null}function er(n){return n[ha]||null}function oa(n){const i=Hi(n)||So(n)||er(n);return null!==i&&i.standalone}function tr(n,i){const o=n[jc]||null;if(!o&&!0===i)throw new Error(`Type ${fe(n)} does not have '\u0275mod' property.`);return o}function El(n){const i={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:n.inputs||Jr,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||go,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ro(n.inputs,i),outputs:Ro(n.outputs),debugInfo:null}}function Tl(n){n.features?.forEach(i=>i(n))}function zl(n,i){if(!n)return null;const o=i?er:si;return()=>("function"==typeof n?n():n).map(s=>o(s)).filter(Fi)}function Ml(n){return{\u0275providers:n}}function U1(...n){return{\u0275providers:Dc(0,n),\u0275fromNgModule:!0}}function Dc(n,...i){const o=[],s=new Set;let l;const f=y=>{o.push(y)};return ns(i,y=>{const D=y;Zc(D,f,[],s)&&(l||=[],l.push(D))}),void 0!==l&&uu(l,f),o}function uu(n,i){for(let o=0;o{i(f,s)})}}function Zc(n,i,o,s){if(!(n=$n(n)))return!1;let l=null,f=Ys(n);const y=!f&&Hi(n);if(f||y){if(y&&!y.standalone)return!1;l=n}else{const j=n.ngModule;if(f=Ys(j),!f)return!1;l=j}const D=s.has(l);if(y){if(D)return!1;if(s.add(l),y.dependencies){const j="function"==typeof y.dependencies?y.dependencies():y.dependencies;for(const Se of j)Zc(Se,i,o,s)}}else{if(!f)return!1;{if(null!=f.imports&&!D){let Se;s.add(l);try{ns(f.imports,He=>{Zc(He,i,o,s)&&(Se||=[],Se.push(He))})}finally{}void 0!==Se&&uu(Se,i)}if(!D){const Se=ws(l)||(()=>new l);i({provide:l,useFactory:Se,deps:go},l),i({provide:fa,useValue:l,multi:!0},l),i({provide:ar,useValue:()=>Gi(l),multi:!0},l)}const j=f.providers;if(null!=j&&!D){const Se=n;Sl(j,He=>{i(He,Se)})}}}return l!==n&&void 0!==n.providers}function Sl(n,i){for(let o of n)br(o)&&(o=o.\u0275providers),Array.isArray(o)?Sl(o,i):i(o)}const Wu=Ze({provide:String,useValue:Ze});function Dl(n){return null!==n&&"object"==typeof n&&Wu in n}function Oa(n){return"function"==typeof n}const Ol=new wi(""),qc={},Xu={};let Il;function el(){return void 0===Il&&(Il=new ma),Il}class Cs{}class Ka extends Cs{get destroyed(){return this._destroyed}constructor(i,o,s,l){super(),this.parent=o,this.source=s,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wl(i,y=>this.processProvider(y)),this.records.set(Wc,Xa(void 0,this)),l.has("environment")&&this.records.set(Cs,Xa(void 0,this));const f=this.records.get(Ol);null!=f&&"string"==typeof f.value&&this.scopes.add(f.value),this.injectorDefTypes=new Set(this.get(fa,go,co.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const i=G(null);try{for(const s of this._ngOnDestroyHooks)s.ngOnDestroy();const o=this._onDestroyHooks;this._onDestroyHooks=[];for(const s of o)s()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),G(i)}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const o=hi(this),s=Go(void 0);try{return i()}finally{hi(o),Go(s)}}get(i,o=Ma,s=co.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(yc))return i[yc](this);s=Io(s);const f=hi(this),y=Go(void 0);try{if(!(s&co.SkipSelf)){let j=this.records.get(i);if(void 0===j){const Se=function e1(n){return"function"==typeof n||"object"==typeof n&&n instanceof wi}(i)&&na(i);j=Se&&this.injectableDefInScope(Se)?Xa(Qu(i),qc):null,this.records.set(i,j)}if(null!=j)return this.hydrate(i,j)}return(s&co.Self?el():this.parent).get(i,o=s&co.Optional&&o===Ma?null:o)}catch(D){if("NullInjectorError"===D.name){if((D[W]=D[W]||[]).unshift(fe(i)),f)throw D;return function Rr(n,i,o,s){const l=n[W];throw i[Nt]&&l.unshift(i[Nt]),n.message=function Is(n,i,o,s=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let l=fe(i);if(Array.isArray(i))l=i.map(fe).join(" -> ");else if("object"==typeof i){let f=[];for(let y in i)if(i.hasOwnProperty(y)){let D=i[y];f.push(y+":"+("string"==typeof D?JSON.stringify(D):fe(D)))}l=`{${f.join(", ")}}`}return`${o}${s?"("+s+")":""}[${l}]: ${n.replace(Te,"\n ")}`}("\n"+n.message,l,o,s),n.ngTokenPath=l,n[W]=null,n}(D,i,"R3InjectorError",this.source)}throw D}finally{Go(y),hi(f)}}resolveInjectorInitializers(){const i=G(null),o=hi(this),s=Go(void 0);try{const f=this.get(ar,go,co.Self);for(const y of f)y()}finally{hi(o),Go(s),G(i)}}toString(){const i=[],o=this.records;for(const s of o.keys())i.push(fe(s));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fn(205,!1)}processProvider(i){let o=Oa(i=$n(i))?i:$n(i&&i.provide);const s=function W1(n){return Dl(n)?Xa(void 0,n.useValue):Xa(Ju(n),qc)}(i);if(!Oa(i)&&!0===i.multi){let l=this.records.get(o);l||(l=Xa(void 0,qc,!0),l.factory=()=>Wi(l.multi),this.records.set(o,l)),o=i,l.multi.push(i)}this.records.set(o,s)}hydrate(i,o){const s=G(null);try{return o.value===qc&&(o.value=Xu,o.value=o.factory()),"object"==typeof o.value&&o.value&&function qu(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(o.value)&&this._ngOnDestroyHooks.add(o.value),o.value}finally{G(s)}}injectableDefInScope(i){if(!i.providedIn)return!1;const o=$n(i.providedIn);return"string"==typeof o?"any"===o||this.scopes.has(o):this.injectorDefTypes.has(o)}removeOnDestroy(i){const o=this._onDestroyHooks.indexOf(i);-1!==o&&this._onDestroyHooks.splice(o,1)}}function Qu(n){const i=na(n),o=null!==i?i.factory:ws(n);if(null!==o)return o;if(n instanceof wi)throw new Fn(204,!1);if(n instanceof Function)return function Y1(n){if(n.length>0)throw new Fn(204,!1);const o=function Ta(n){return n&&(n[hs]||n[da])||null}(n);return null!==o?()=>o.factory(n):()=>new n}(n);throw new Fn(204,!1)}function Ju(n,i,o){let s;if(Oa(n)){const l=$n(n);return ws(l)||Qu(l)}if(Dl(n))s=()=>$n(n.useValue);else if(function hu(n){return!(!n||!n.useFactory)}(n))s=()=>n.useFactory(...Wi(n.deps||[]));else if(function du(n){return!(!n||!n.useExisting)}(n))s=()=>Gi($n(n.useExisting));else{const l=$n(n&&(n.useClass||n.provide));if(!function Zu(n){return!!n.deps}(n))return ws(l)||Qu(l);s=()=>new l(...Wi(n.deps))}return s}function Xa(n,i,o=!1){return{factory:n,value:i,multi:o?[]:void 0}}function wl(n,i){for(const o of n)Array.isArray(o)?wl(o,i):o&&br(o)?wl(o.\u0275providers,i):i(o)}function pu(n,i){n instanceof Ka&&n.assertNotDestroyed();const s=hi(n),l=Go(void 0);try{return i()}finally{hi(s),Go(l)}}function fu(){return void 0!==bc()||null!=function Pn(){return gn}()}function tl(n){if(!fu())throw new Fn(-203,!1)}const gu=Function;const No=0,ni=1,Pi=2,cr=3,As=4,Ir=5,$r=6,Ja=7,ko=8,lr=9,Rs=10,Ri=11,Ia=12,Pl=13,Za=14,Wo=15,Qs=16,qa=17,Js=18,Ic=19,u1=20,Ns=21,il=22,ks=23,Si=25,Fl=1,Zs=7,ec=9,or=10;var rl=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(rl||{});function Er(n){return Array.isArray(n)&&"object"==typeof n[Fl]}function Nr(n){return Array.isArray(n)&&!0===n[Fl]}function Al(n){return!!(4&n.flags)}function wa(n){return n.componentOffset>-1}function sl(n){return!(1&~n.flags)}function Zr(n){return!!n.template}function xc(n){return!!(512&n[Pi])}class Nl{constructor(i,o,s){this.previousValue=i,this.currentValue=o,this.firstChange=s}isFirstChange(){return this.firstChange}}function yu(n,i,o,s){null!==i?i.applyValueToInputSignal(i,s):n[o]=s}function kl(){return Vl}function Vl(n){return n.type.prototype.ngOnChanges&&(n.setInput=g1),m1}function m1(){const n=Bl(this),i=n?.current;if(i){const o=n.previous;if(o===Jr)n.previous=i;else for(let s in i)o[s]=i[s];n.current=null,this.ngOnChanges(i)}}function g1(n,i,o,s,l){const f=this.declaredInputs[s],y=Bl(n)||function Cu(n,i){return n[Ll]=i}(n,{previous:Jr,current:null}),D=y.current||(y.current={}),j=y.previous,Se=j[f];D[f]=new Nl(Se&&Se.currentValue,o,j===Jr),yu(n,i,l,o)}kl.ngInherit=!0;const Ll="__ngSimpleChanges__";function Bl(n){return n[Ll]||null}const Vs=function(n,i,o){},$l="svg";function vo(n){for(;Array.isArray(n);)n=n[No];return n}function tc(n,i){return vo(i[n])}function jr(n,i){return vo(i[n.index])}function jl(n,i){return n.data[i]}function Fc(n,i){return n[i]}function bs(n,i){const o=i[n];return Er(o)?o:o[No]}function bu(n){return!(128&~n[Pi])}function Ls(n,i){return null==i?null:n[i]}function _1(n){n[qa]=0}function Ul(n){1024&n[Pi]||(n[Pi]|=1024,bu(n)&&Gl(n))}function Bs(n){return!!(9216&n[Pi]||n[ks]?.dirty)}function nc(n){n[Rs].changeDetectionScheduler?.notify(7),64&n[Pi]&&(n[Pi]|=1024),Bs(n)&&Gl(n)}function Gl(n){n[Rs].changeDetectionScheduler?.notify(0);let i=qs(n);for(;null!==i&&!(8192&i[Pi])&&(i[Pi]|=8192,bu(i));)i=qs(i)}function Yl(n,i){if(!(256&~n[Pi]))throw new Fn(911,!1);null===n[Ns]&&(n[Ns]=[]),n[Ns].push(i)}function qs(n){const i=n[cr];return Nr(i)?i[cr]:i}const ji={lFrame:hl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let C1=!1;function E1(){return ji.bindingsEnabled}function ic(){return null!==ji.skipHydrationRootTNode}function Dn(){return ji.lFrame.lView}function oo(){return ji.lFrame.tView}function T1(n){return ji.lFrame.contextLView=n,n[ko]}function z1(n){return ji.lFrame.contextLView=null,n}function wo(){let n=ll();for(;null!==n&&64===n.type;)n=n.parent;return n}function ll(){return ji.lFrame.currentTNode}function $o(n,i){const o=ji.lFrame;o.currentTNode=n,o.isParent=i}function oc(){return ji.lFrame.isParent}function Ac(){ji.lFrame.isParent=!1}function ul(){return ji.lFrame.contextLView}function M1(){return C1}function zu(n){C1=n}function qr(){const n=ji.lFrame;let i=n.bindingRootIndex;return-1===i&&(i=n.bindingRootIndex=n.tView.bindingStartIndex),i}function ea(){return ji.lFrame.bindingIndex++}function ta(n){const i=ji.lFrame,o=i.bindingIndex;return i.bindingIndex=i.bindingIndex+n,o}function Li(n,i){const o=ji.lFrame;o.bindingIndex=o.bindingRootIndex=n,rc(i)}function rc(n){ji.lFrame.currentDirectiveIndex=n}function Ql(n){const i=ji.lFrame.currentDirectiveIndex;return-1===i?null:n[i]}function xa(){return ji.lFrame.currentQueryIndex}function Rc(n){ji.lFrame.currentQueryIndex=n}function rs(n){const i=n[ni];return 2===i.type?i.declTNode:1===i.type?n[Ir]:null}function O1(n,i,o){if(o&co.SkipSelf){let l=i,f=n;for(;!(l=l.parent,null!==l||o&co.Host||(l=rs(f),null===l||(f=f[Za],10&l.type))););if(null===l)return!1;i=l,n=f}const s=ji.lFrame=Jl();return s.currentTNode=i,s.lView=n,!0}function Su(n){const i=Jl(),o=n[ni];ji.lFrame=i,i.currentTNode=o.firstChild,i.lView=n,i.tView=o,i.contextLView=n,i.bindingIndex=o.bindingStartIndex,i.inI18n=!1}function Jl(){const n=ji.lFrame,i=null===n?null:n.child;return null===i?hl(n):i}function hl(n){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=i),i}function Zo(){const n=ji.lFrame;return ji.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const ur=Zo;function sc(){const n=Zo();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function wr(){return ji.lFrame.selectedIndex}function ac(n){ji.lFrame.selectedIndex=n}function Vo(){const n=ji.lFrame;return jl(n.tView,n.selectedIndex)}function w1(){ji.lFrame.currentNamespace=$l}let P1=!0;function Nc(){return P1}function Es(n){P1=n}function pl(n,i){for(let o=i.directiveStart,s=i.directiveEnd;o=s)break}else i[j]<0&&(n[qa]+=65536),(D>14>16&&(3&n[Pi])===i&&(n[Pi]+=16384,ut(D,f)):ut(D,f)}const Zl=-1;class lc{constructor(i,o,s){this.factory=i,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=s}}const _d={};class aa{constructor(i,o){this.injector=i,this.parentInjector=o}get(i,o,s){s=Io(s);const l=this.injector.get(i,_d,s);return l!==_d||o===_d?l:this.parentInjector.get(i,o,s)}}function fl(n){return n!==Zl}function kc(n){return 32767&n}function Vc(n,i){let o=function nh(n){return n>>16}(n),s=i;for(;o>0;)s=s[Za],o--;return s}let F1=!0;function wu(n){const i=F1;return F1=n,i}const Cd=255,A1=5;let ih=0;const _a={};function Pu(n,i){const o=Td(n,i);if(-1!==o)return o;const s=i[ni];s.firstCreatePass&&(n.injectorIndex=i.length,Ed(s.data,n),Ed(i,null),Ed(s.blueprint,null));const l=ql(n,i),f=n.injectorIndex;if(fl(l)){const y=kc(l),D=Vc(l,i),j=D[ni].data;for(let Se=0;Se<8;Se++)i[f+Se]=D[y+Se]|j[y+Se]}return i[f+8]=l,f}function Ed(n,i){n.push(0,0,0,0,0,0,0,0,i)}function Td(n,i){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===i[n.injectorIndex+8]?-1:n.injectorIndex}function ql(n,i){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let o=0,s=null,l=i;for(;null!==l;){if(s=tu(l),null===s)return Zl;if(o++,l=l[Za],-1!==s.injectorIndex)return s.injectorIndex|o<<16}return Zl}function R1(n,i,o){!function bd(n,i,o){let s;"string"==typeof o?s=o.charCodeAt(0)||0:o.hasOwnProperty(Ga)&&(s=o[Ga]),null==s&&(s=o[Ga]=ih++);const l=s&Cd;i.data[n+(l>>A1)]|=1<=0?i&Cd:Hh:i}(o);if("function"==typeof f){if(!O1(i,n,s))return s&co.Host?oh(l,0,s):Md(i,o,s,l);try{let y;if(y=f(s),null!=y||s&co.Optional)return y;Ks()}finally{ur()}}else if("number"==typeof f){let y=null,D=Td(n,i),j=Zl,Se=s&co.Host?i[Wo][Ir]:null;for((-1===D||s&co.SkipSelf)&&(j=-1===D?ql(n,i):i[D+8],j!==Zl&&rh(s,!1)?(y=i[ni],D=kc(j),i=Vc(j,i)):D=-1);-1!==D;){const He=i[ni];if(Od(f,D,He.data)){const _t=N1(D,i,o,y,s,Se);if(_t!==_a)return _t}j=i[D+8],j!==Zl&&rh(s,i[ni].data[D+8]===Se)&&Od(f,D,i)?(y=He,D=kc(j),i=Vc(j,i)):D=-1}}return l}function N1(n,i,o,s,l,f){const y=i[ni],D=y.data[n+8],He=Au(D,y,o,null==s?wa(D)&&F1:s!=y&&!!(3&D.type),l&co.Host&&f===D);return null!==He?uc(i,y,He,D):_a}function Au(n,i,o,s,l){const f=n.providerIndexes,y=i.data,D=1048575&f,j=n.directiveStart,He=f>>20,Gt=l?D+He:n.directiveEnd;for(let Qt=s?D:D+He;Qt=j&&un.type===o)return Qt}if(l){const Qt=y[j];if(Qt&&Zr(Qt)&&Qt.type===o)return j}return null}function uc(n,i,o,s){let l=n[o];const f=i.data;if(function Lh(n){return n instanceof lc}(l)){const y=l;y.resolving&&function Uc(n,i){throw i&&i.join(" > "),new Fn(-200,n)}(function eo(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Vi(n)}(f[o]));const D=wu(y.canSeeViewProviders);y.resolving=!0;const Se=y.injectImpl?Go(y.injectImpl):null;O1(n,s,co.Default);try{l=n[o]=y.factory(void 0,f,n,s),i.firstCreatePass&&o>=s.directiveStart&&function Ou(n,i,o){const{ngOnChanges:s,ngOnInit:l,ngDoCheck:f}=i.type.prototype;if(s){const y=Vl(i);(o.preOrderHooks??=[]).push(n,y),(o.preOrderCheckHooks??=[]).push(n,y)}l&&(o.preOrderHooks??=[]).push(0-n,l),f&&((o.preOrderHooks??=[]).push(n,f),(o.preOrderCheckHooks??=[]).push(n,f))}(o,f[o],i)}finally{null!==Se&&Go(Se),wu(D),y.resolving=!1,ur()}}return l}function Od(n,i,o){return!!(o[i+(n>>A1)]&1<{const i=n.prototype.constructor,o=i[Ds]||Ru(i),s=Object.prototype;let l=Object.getPrototypeOf(n.prototype).constructor;for(;l&&l!==s;){const f=l[Ds]||Ru(l);if(f&&f!==o)return f;l=Object.getPrototypeOf(l)}return f=>new f})}function Ru(n){return fi(n)?()=>{const i=Ru($n(n));return i&&i()}:ws(n)}function tu(n){const i=n[ni],o=i.type;return 2===o?i.declTNode:1===o?n[Ir]:null}function Nu(n){return function zd(n,i){if("class"===i)return n.classes;if("style"===i)return n.styles;const o=n.attrs;if(o){const s=o.length;let l=0;for(;lGi(Wc)});static#i=this.__NG_ELEMENT_ID__=-1}new wi("").__NG_ELEMENT_ID__=n=>{const i=wo();if(null===i)throw new Fn(204,!1);if(2&i.type)return i.value;if(n&co.Optional)return null;throw new Fn(204,!1)};function xd(n){return n.ngOriginalError}class ya{constructor(){this._console=console}handleError(i){const o=this._findOriginalError(i);this._console.error("ERROR",i),o&&this._console.error("ORIGINAL ERROR",o)}_findOriginalError(i){let o=i&&xd(i);for(;o&&xd(o);)o=xd(o);return o||null}}const T=new wi("",{providedIn:"root",factory:()=>Xn(ya).handleError.bind(void 0)});let d=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=v;static#t=this.__NG_ENV_ID__=o=>o}return n})();class p extends d{constructor(i){super(),this._lView=i}onDestroy(i){return Yl(this._lView,i),()=>function Eu(n,i){if(null===n[Ns])return;const o=n[Ns].indexOf(i);-1!==o&&n[Ns].splice(o,1)}(this._lView,i)}}function v(){return new p(Dn())}function yt(){return Dt(wo(),Dn())}function Dt(n,i){return new Bt(jr(n,i))}let Bt=(()=>{class n{constructor(o){this.nativeElement=o}static#e=this.__NG_ELEMENT_ID__=yt}return n})();function Ht(n){return n instanceof Bt?n.nativeElement:n}let Xt=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new zn.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new n})}return n})();const Mn=class vn extends bt.B{constructor(i=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=i,fu()&&(this.destroyRef=Xn(d,{optional:!0})??void 0,this.pendingTasks=Xn(Xt,{optional:!0})??void 0)}emit(i){const o=G(null);try{super.next(i)}finally{G(o)}}subscribe(i,o,s){let l=i,f=o||(()=>null),y=s;if(i&&"object"==typeof i){const j=i;l=j.next?.bind(j),f=j.error?.bind(j),y=j.complete?.bind(j)}this.__isAsync&&(f=this.wrapInTimeout(f),l&&(l=this.wrapInTimeout(l)),y&&(y=this.wrapInTimeout(y)));const D=super.subscribe({next:l,error:f,complete:y});return i instanceof At.yU&&i.add(D),D}wrapInTimeout(i){return o=>{const s=this.pendingTasks?.add();setTimeout(()=>{i(o),void 0!==s&&this.pendingTasks?.remove(s)})}}};function ci(){return this._results[Symbol.iterator]()}class an{static#e=Symbol.iterator;get changes(){return this._changes??=new Mn}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const o=an.prototype;o[Symbol.iterator]||(o[Symbol.iterator]=ci)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,o){return this._results.reduce(i,o)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,o){this.dirty=!1;const s=function Yo(n){return n.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function zc(n,i,o){if(n.length!==i.length)return!1;for(let s=0;s=0){const D=vo(f[y]),j=Ui(f,y,D);dr(D,j),i=j;break}}}}return i||null}function Ui(n,i,o){return new Di(n[Ic],i,o)}const Tr="__ngContext__";function dr(n,i){Er(i)?(n[Tr]=i[Ic],function Aa(n){vr.set(n[Ic],n)}(i)):n[Tr]=i}function Po(n){const i=n[Tr];return"number"==typeof i?Pd(i):i||null}function fh(n){return n&&n.constructor&&n.constructor.\u0275cmp}function pc(n,i){const o=n[ni];for(let s=Si;sY4}),Y4="ng",hp=new wi(""),Zh=new wi("",{providedIn:"platform",factory:()=>"unknown"}),pp=new wi(""),K4=new wi("",{providedIn:"root",factory:()=>nu().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let mp=()=>null;function s2(n,i,o=!1){return mp(n,i,o)}const Tp=new wi("",{providedIn:"root",factory:()=>!1});let Th,zh;function B1(n){return function d2(){if(void 0===Th&&(Th=null,Eo.trustedTypes))try{Th=Eo.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Th}()?.createHTML(n)||n}function h2(){if(void 0===zh&&(zh=null,Eo.trustedTypes))try{zh=Eo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return zh}function Dp(n){return h2()?.createHTML(n)||n}function Ip(n){return h2()?.createScriptURL(n)||n}class ml{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${io})`}}class c0 extends ml{getTypeName(){return"HTML"}}class l0 extends ml{getTypeName(){return"Style"}}class wp extends ml{getTypeName(){return"Script"}}class p2 extends ml{getTypeName(){return"URL"}}class u0 extends ml{getTypeName(){return"ResourceURL"}}function gl(n){return n instanceof ml?n.changingThisBreaksApplicationSecurity:n}function $1(n,i){const o=function d0(n){return n instanceof ml&&n.getTypeName()||null}(n);if(null!=o&&o!==i){if("ResourceURL"===o&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${o} (see ${io})`)}return o===i}function h0(n){return new c0(n)}function p0(n){return new l0(n)}function f0(n){return new wp(n)}function m0(n){return new p2(n)}function g0(n){return new u0(n)}class v0{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const o=(new window.DOMParser).parseFromString(B1(i),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(i):(o.removeChild(o.firstChild),o)}catch{return null}}}class _0{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const o=this.inertDocument.createElement("template");return o.innerHTML=B1(i),o}}const C0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Mh(n){return(n=String(n)).match(C0)?n:"unsafe:"+n}function vl(n){const i={};for(const o of n.split(","))i[o]=!0;return i}function $d(...n){const i={};for(const o of n)for(const s in o)o.hasOwnProperty(s)&&(i[s]=!0);return i}const Pp=vl("area,br,col,hr,img,wbr"),Sh=vl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Fp=vl("rp,rt"),f2=$d(Pp,$d(Sh,vl("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),$d(Fp,vl("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),$d(Fp,Sh)),m2=vl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ap=$d(m2,vl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),vl("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Rp=vl("script,style,template");class E0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let o=i.firstChild,s=!0,l=[];for(;o;)if(o.nodeType===Node.ELEMENT_NODE?s=this.startElement(o):o.nodeType===Node.TEXT_NODE?this.chars(o.nodeValue):this.sanitizedSomething=!0,s&&o.firstChild)l.push(o),o=kp(o);else for(;o;){o.nodeType===Node.ELEMENT_NODE&&this.endElement(o);let f=Np(o);if(f){o=f;break}o=l.pop()}return this.buf.join("")}startElement(i){const o=z0(i).toLowerCase();if(!f2.hasOwnProperty(o))return this.sanitizedSomething=!0,!Rp.hasOwnProperty(o);this.buf.push("<"),this.buf.push(o);const s=i.attributes;for(let l=0;l"),!0}endElement(i){const o=z0(i).toLowerCase();f2.hasOwnProperty(o)&&!Pp.hasOwnProperty(o)&&(this.buf.push(""))}chars(i){this.buf.push(M0(i))}}function Np(n){const i=n.nextSibling;if(i&&n!==i.previousSibling)throw g2(i);return i}function kp(n){const i=n.firstChild;if(i&&function T0(n,i){return(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,i))throw g2(i);return i}function z0(n){const i=n.nodeName;return"string"==typeof i?i:"FORM"}function g2(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const e3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t3=/([^\#-~ |!])/g;function M0(n){return n.replace(/&/g,"&").replace(e3,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(t3,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let v2;function n3(n,i){let o=null;try{v2=v2||function xp(n){const i=new _0(n);return function y0(){try{return!!(new window.DOMParser).parseFromString(B1(""),"text/html")}catch{return!1}}()?new v0(i):i}(n);let s=i?String(i):"";o=v2.getInertBodyElement(s);let l=5,f=s;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,s=f,f=o.innerHTML,o=v2.getInertBodyElement(s)}while(s!==f);return B1((new E0).sanitizeChildren(Vp(o)||o))}finally{if(o){const s=Vp(o)||o;for(;s.firstChild;)s.removeChild(s.firstChild)}}}function Vp(n){return"content"in n&&function i3(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Hd=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(Hd||{});function o3(n){const i=jd();return i?Dp(i.sanitize(Hd.HTML,n)||""):$1(n,"HTML")?Dp(gl(n)):n3(nu(),Vi(n))}function S0(n){const i=jd();return i?i.sanitize(Hd.STYLE,n)||"":$1(n,"Style")?gl(n):Vi(n)}function Lp(n){const i=jd();return i?i.sanitize(Hd.URL,n)||"":$1(n,"URL")?gl(n):Mh(Vi(n))}function D0(n){const i=jd();if(i)return Ip(i.sanitize(Hd.RESOURCE_URL,n)||"");if($1(n,"ResourceURL"))return Ip(gl(n));throw new Fn(904,!1)}function O0(n,i,o){return function s3(n,i){return"src"===i&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===i&&("base"===n||"link"===n)?D0:Lp}(i,o)(n)}function jd(){const n=Dn();return n&&n[Rs].sanitizer}const c3=/^>|^->||--!>|)/g,u3="\u200b$1\u200b";function F0(n){return n.ownerDocument.defaultView}function Ra(n){return n instanceof Function?n():n}function Ca(n){return"browser"===(n??Xn(kr)).get(Zh)}var jp=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(jp||{});let Up;function Gp(n,i){return Up(n,i)}function Gd(n,i,o,s,l){if(null!=s){let f,y=!1;Nr(s)?f=s:Er(s)&&(y=!0,s=s[No]);const D=vo(s);0===n&&null!==o?null==l?am(i,o,D):Dh(i,o,D,l||null,!0):1===n&&null!==o?Dh(i,o,D,l||null,!0):2===n?function Yp(n,i,o){const s=B0(n,i);s&&function f9(n,i,o,s){n.removeChild(i,o,s)}(n,s,i,o)}(i,D,y):3===n&&i.destroyNode(D),null!=f&&function v9(n,i,o,s,l){const f=o[Zs];f!==vo(o)&&Gd(i,n,s,f,l);for(let D=or;Di.replace(l3,u3))}(i))}function h(n,i,o){return n.createElement(i,o)}function ft(n,i){i[Rs].changeDetectionScheduler?.notify(8),H0(n,i,i[Ri],2,null,null)}function xi(n,i){const o=n[ec],s=i[cr];(Er(s)||i[Wo]!==s[cr][Wo])&&(n[Pi]|=rl.HasTransplantedViews),null===o?n[ec]=[i]:o.push(i)}function Co(n,i){const o=n[ec],s=o.indexOf(i);o.splice(s,1)}function Ho(n,i){if(n.length<=or)return;const o=or+i,s=n[o];if(s){const l=s[Qs];null!==l&&l!==n&&Co(l,s),i>0&&(n[o-1][As]=s[As]);const f=Sa(n,or+i);!function _(n,i){ft(n,i),i[No]=null,i[Ir]=null}(s[ni],s);const y=f[Js];null!==y&&y.detachView(f[ni]),s[cr]=null,s[As]=null,s[Pi]&=-129}return s}function Na(n,i){if(!(256&i[Pi])){const o=i[Ri];o.destroyNode&&H0(n,i,o,3,null,null),function nn(n){let i=n[Ia];if(!i)return Bc(n[ni],n);for(;i;){let o=null;if(Er(i))o=i[Ia];else{const s=i[or];s&&(o=s)}if(!o){for(;i&&!i[As]&&i!==n;)Er(i)&&Bc(i[ni],i),i=i[cr];null===i&&(i=n),Er(i)&&Bc(i[ni],i),o=i&&i[As]}i=o}}(i)}}function Bc(n,i){if(256&i[Pi])return;const o=G(null);try{i[Pi]&=-129,i[Pi]|=256,i[ks]&&he(i[ks]),function ba(n,i){let o;if(null!=n&&null!=(o=n.destroyHooks))for(let s=0;s=0?s[y]():s[-y].unsubscribe(),f+=2}else o[f].call(s[o[f+1]]);null!==s&&(i[Ja]=null);const l=i[Ns];if(null!==l){i[Ns]=null;for(let f=0;f-1){const{encapsulation:f}=n.data[s.directiveStart+l];if(f===Ps.None||f===Ps.Emulated)return null}return jr(s,o)}}(n,i.parent,o)}function Dh(n,i,o,s,l){n.insertBefore(i,o,s,l)}function am(n,i,o){n.appendChild(i,o)}function cm(n,i,o,s,l){null!==s?Dh(n,i,o,s,l):am(n,i,o)}function B0(n,i){return n.parentNode(i)}function lm(n,i,o){return dm(n,i,o)}let C3,dm=function um(n,i,o){return 40&n.type?jr(n,o):null};function $0(n,i,o,s){const l=L0(n,s,i),f=i[Ri],D=lm(s.parent||i[Ir],s,i);if(null!=l)if(Array.isArray(o))for(let j=0;jSi&&ym(n,i,Si,!1),Vs(y?2:0,l),o(s,l)}finally{ac(f),Vs(y?3:1,l)}}function z3(n,i,o){if(Al(i)){const s=G(null);try{const f=i.directiveEnd;for(let y=i.directiveStart;ynull;function Mm(n,i,o,s,l){for(let f in i){if(!i.hasOwnProperty(f))continue;const y=i[f];if(void 0===y)continue;s??={};let D,j=Fs.None;Array.isArray(y)?(D=y[0],j=y[1]):D=y;let Se=f;if(null!==l){if(!l.hasOwnProperty(f))continue;Se=l[f]}0===n?Sm(s,o,Se,D,j):Sm(s,o,Se,D)}return s}function Sm(n,i,o,s,l){let f;n.hasOwnProperty(o)?(f=n[o]).push(i,s):f=n[o]=[i,s],void 0!==l&&f.push(l)}function fc(n,i,o,s,l,f,y,D){const j=jr(i,o);let He,Se=i.inputs;!D&&null!=Se&&(He=Se[s])?(P3(n,o,He,s,l),wa(i)&&function w9(n,i){const o=bs(i,n);16&o[Pi]||(o[Pi]|=64)}(o,i.index)):3&i.type&&(s=function I9(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(s),l=null!=y?y(l,i.value||"",s):l,f.setProperty(j,s,l))}function O3(n,i,o,s){if(E1()){const l=null===s?null:{"":-1},f=function N9(n,i){const o=n.directiveRegistry;let s=null,l=null;if(o)for(let f=0;f0;){const o=n[--i];if("number"==typeof o&&o<0)return o}return 0})(y)!=D&&y.push(D),y.push(o,s,f)}}(n,i,s,Wp(n,o,l.hostVars,uo),l)}function Lu(n,i,o,s,l,f){const y=jr(n,i);!function w3(n,i,o,s,l,f,y){if(null==f)n.removeAttribute(i,l,o);else{const D=null==y?Vi(f):y(f,s||"",l);n.setAttribute(i,l,D,o)}}(i[Ri],y,f,n.value,o,s,l)}function H9(n,i,o,s,l,f){const y=f[i];if(null!==y)for(let D=0;D0&&(o[l-1][As]=i),s{Gl(n.lView)},consumerOnSignalRead(){this.lView[ks]=this}},Z9={...w,consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{let i=qs(n.lView);for(;i&&!km(i[ni]);)i=qs(i);i&&Ul(i)},consumerOnSignalRead(){this.lView[ks]=this}};function km(n){return 2!==n.type}const q9=100;function Y0(n,i=!0,o=0){const s=n[Rs],l=s.rendererFactory;l.begin?.();try{!function ey(n,i){const o=M1();try{zu(!0),R3(n,i);let s=0;for(;Bs(n);){if(s===q9)throw new Fn(103,!1);s++,R3(n,1)}}finally{zu(o)}}(n,o)}catch(y){throw i&&G0(n,y),y}finally{l.end?.(),s.inlineEffectRunner?.flush()}}function ty(n,i,o,s){const l=i[Pi];if(!(256&~l))return;i[Rs].inlineEffectRunner?.flush(),Su(i);let D=!0,j=null,Se=null;km(n)?(Se=function W9(n){return n[ks]??function K9(n){const i=Nm.pop()??Object.create(Q9);return i.lView=n,i}(n)}(i),j=J(Se)):null===function L(){return r}()?(D=!1,Se=function J9(n){const i=n[ks]??Object.create(Z9);return i.lView=n,i}(i),j=J(Se)):i[ks]&&(he(i[ks]),i[ks]=null);try{_1(i),function Mu(n){return ji.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==o&&Em(n,i,o,2,s);const He=!(3&~l);if(He){const Qt=n.preOrderCheckHooks;null!==Qt&&va(i,Qt,null)}else{const Qt=n.preOrderHooks;null!==Qt&&m(i,Qt,0,null),ss(i,0)}if(function ny(n){for(let i=sp(n);null!==i;i=N4(i)){if(!(i[Pi]&rl.HasTransplantedViews))continue;const o=i[ec];for(let s=0;s-1&&(Ho(i,s),Sa(o,s))}this._attachedToViewContainer=!1}Na(this._lView[ni],this._lView)}onDestroy(i){Yl(this._lView,i)}markForCheck(){Xp(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Pi]&=-129}reattach(){nc(this._lView),this._lView[Pi]|=128}detectChanges(){this._lView[Pi]|=1024,Y0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Fn(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const i=xc(this._lView),o=this._lView[Qs];null!==o&&!i&&Co(o,this._lView),ft(this._lView[ni],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Fn(902,!1);this._appRef=i;const o=xc(this._lView),s=this._lView[Qs];null!==s&&!o&&xi(s,this._lView),nc(this._lView)}}let Jp=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=sy}return n})();const oy=Jp,ry=class extends oy{constructor(i,o,s){super(),this._declarationLView=i,this._declarationTContainer=o,this.elementRef=s}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,o){return this.createEmbeddedViewImpl(i,o)}createEmbeddedViewImpl(i,o,s){const l=z2(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:o,dehydratedView:s});return new Qp(l)}};function sy(){return W0(wo(),Dn())}function W0(n,i){return 4&n.type?new ry(i,n,Dt(n,i)):null}let cg=()=>null;function xh(n,i){return cg(n,i)}class D2{}const r4=new wi("",{providedIn:"root",factory:()=>!1}),lg=new wi("");class ug{}class dg{}class qy{resolveComponentFactory(i){throw function Zy(n){const i=Error(`No component factory found for ${fe(n)}.`);return i.ngComponent=n,i}(i)}}class s4{static#e=this.NULL=new qy}class Y3{}let eC=(()=>{class n{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function tC(){const n=Dn(),o=bs(wo().index,n);return(Er(o)?o:n)[Ri]}()}return n})(),nC=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>null})}return n})();const pg=new Set;function ka(n){pg.has(n)||(pg.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function fg(n){let i=!0;return setTimeout(()=>{i&&(i=!1,n())}),"function"==typeof Eo.requestAnimationFrame&&Eo.requestAnimationFrame(()=>{i&&(i=!1,n())}),()=>{i=!1}}function mg(n){let i=!0;return queueMicrotask(()=>{i&&n()}),()=>{i=!1}}function gg(...n){}class Pr{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:s=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mn(!1),this.onMicrotaskEmpty=new Mn(!1),this.onStable=new Mn(!1),this.onError=new Mn(!1),typeof Zone>"u")throw new Fn(908,!1);Zone.assertZonePatched();const l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!s&&o,l.shouldCoalesceRunChangeDetection=s,l.callbackScheduled=!1,function rC(n){const i=()=>{!function oC(n){n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,Zone.root.run(()=>{fg(()=>{n.callbackScheduled=!1,K3(n),n.isCheckStableRunning=!0,W3(n),n.isCheckStableRunning=!1})}),K3(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,s,l,f,y,D)=>{if(function sC(n){return yg(n,"__ignore_ng_zone__")}(D))return o.invokeTask(l,f,y,D);try{return vg(n),o.invokeTask(l,f,y,D)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===f.type||n.shouldCoalesceRunChangeDetection)&&i(),_g(n)}},onInvoke:(o,s,l,f,y,D,j)=>{try{return vg(n),o.invoke(l,f,y,D,j)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function aC(n){return yg(n,"__scheduler_tick__")}(D)&&i(),_g(n)}},onHasTask:(o,s,l,f)=>{o.hasTask(l,f),s===l&&("microTask"==f.change?(n._hasPendingMicrotasks=f.microTask,K3(n),W3(n)):"macroTask"==f.change&&(n.hasPendingMacrotasks=f.macroTask))},onHandleError:(o,s,l,f)=>(o.handleError(l,f),n.runOutsideAngular(()=>n.onError.emit(f)),!1)})}(l)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pr.isInAngularZone())throw new Fn(909,!1)}static assertNotInAngularZone(){if(Pr.isInAngularZone())throw new Fn(909,!1)}run(i,o,s){return this._inner.run(i,o,s)}runTask(i,o,s,l){const f=this._inner,y=f.scheduleEventTask("NgZoneEvent: "+l,i,iC,gg,gg);try{return f.runTask(y,o,s)}finally{f.cancelTask(y)}}runGuarded(i,o,s){return this._inner.runGuarded(i,o,s)}runOutsideAngular(i){return this._outer.run(i)}}const iC={};function W3(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function K3(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function vg(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function _g(n){n._nesting--,W3(n)}class q0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mn,this.onMicrotaskEmpty=new Mn,this.onStable=new Mn,this.onError=new Mn}run(i,o,s){return i.apply(o,s)}runGuarded(i,o,s){return i.apply(o,s)}runOutsideAngular(i){return i()}runTask(i,o,s,l){return i.apply(o,s)}}function yg(n,i){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[i]}var Va=function(n){return n[n.EarlyRead=0]="EarlyRead",n[n.Write=1]="Write",n[n.MixedReadWrite=2]="MixedReadWrite",n[n.Read=3]="Read",n}(Va||{});const Cg={destroy(){}};function bg(n,i){!i&&tl();const o=i?.injector??Xn(kr);return Ca(o)?(ka("NgAfterRender"),Tg(n,o,!1,i?.phase??Va.MixedReadWrite)):Cg}function Eg(n,i){!i&&tl();const o=i?.injector??Xn(kr);return Ca(o)?(ka("NgAfterNextRender"),Tg(n,o,!0,i?.phase??Va.MixedReadWrite)):Cg}function Tg(n,i,o,s){const l=function lC(n,i){if(n instanceof Function)switch(i){case Va.EarlyRead:return{earlyRead:n};case Va.Write:return{write:n};case Va.MixedReadWrite:return{mixedReadWrite:n};case Va.Read:return{read:n}}return n}(n,s),f=i.get(ef),y=f.handler??=new dC,D=[],j=[],Se=()=>{for(const Qt of j)y.unregister(Qt);He()},He=i.get(d).onDestroy(Se);let _t=0;const Gt=(Qt,un)=>{if(!un)return;const In=o?(...ui)=>(_t--,_t<1&&Se(),un(...ui)):un,ii=pu(i,()=>new uC(Qt,D,In));y.register(ii),j.push(ii),_t++};return Gt(Va.EarlyRead,l.earlyRead),Gt(Va.Write,l.write),Gt(Va.MixedReadWrite,l.mixedReadWrite),Gt(Va.Read,l.read),{destroy:Se}}class uC{constructor(i,o,s){this.phase=i,this.pipelinedArgs=o,this.callbackFn=s,this.zone=Xn(Pr),this.errorHandler=Xn(ya,{optional:!0}),Xn(D2,{optional:!0})?.notify(6)}invoke(){try{const i=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,i)}catch(i){this.errorHandler?.handleError(i)}}}class dC{constructor(){this.executingCallbacks=!1,this.buckets={[Va.EarlyRead]:new Set,[Va.Write]:new Set,[Va.MixedReadWrite]:new Set,[Va.Read]:new Set},this.deferredCallbacks=new Set}register(i){(this.executingCallbacks?this.deferredCallbacks:this.buckets[i.phase]).add(i)}unregister(i){this.buckets[i.phase].delete(i),this.deferredCallbacks.delete(i)}execute(){this.executingCallbacks=!0;for(const i of Object.values(this.buckets))for(const o of i)o.invoke();this.executingCallbacks=!1;for(const i of this.deferredCallbacks)this.buckets[i.phase].add(i);this.deferredCallbacks.clear()}destroy(){for(const i of Object.values(this.buckets))i.clear();this.deferredCallbacks.clear()}}let ef=(()=>{class n{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const s of o)s()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new n})}return n})();function Yd(n){return!!tr(n)}function nf(n,i,o){let s=o?n.styles:null,l=o?n.classes:null,f=0;if(null!==i)for(let y=0;y0&&gm(n,o,f.join(" "))}}(Qt,Us,In,s),void 0!==o&&function bC(n,i,o){const s=n.projection=[];for(let l=0;l{class n{static#e=this.__NG_ELEMENT_ID__=TC}return n})();function TC(){return wg(wo(),Dn())}const zC=rf,Og=class extends zC{constructor(i,o,s){super(),this._lContainer=i,this._hostTNode=o,this._hostLView=s}get element(){return Dt(this._hostTNode,this._hostLView)}get injector(){return new xr(this._hostTNode,this._hostLView)}get parentInjector(){const i=ql(this._hostTNode,this._hostLView);if(fl(i)){const o=Vc(i,this._hostLView),s=kc(i);return new xr(o[ni].data[s+8],o)}return new xr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const o=Ig(this._lContainer);return null!==o&&o[i]||null}get length(){return this._lContainer.length-or}createEmbeddedView(i,o,s){let l,f;"number"==typeof s?l=s:null!=s&&(l=s.index,f=s.injector);const y=xh(this._lContainer,i.ssrId),D=i.createEmbeddedViewImpl(o||{},f,y);return this.insertImpl(D,l,Ih(this._hostTNode,y)),D}createComponent(i,o,s,l,f){const y=i&&!function Oc(n){return"function"==typeof n}(i);let D;if(y)D=o;else{const un=o||{};D=un.index,s=un.injector,l=un.projectableNodes,f=un.environmentInjector||un.ngModuleRef}const j=y?i:new l4(Hi(i)),Se=s||this.parentInjector;if(!f&&null==j.ngModule){const In=(y?Se:this.parentInjector).get(Cs,null);In&&(f=In)}const He=Hi(j.componentType??{}),_t=xh(this._lContainer,He?.id??null),Qt=j.create(Se,l,_t?.firstChild??null,f);return this.insertImpl(Qt.hostView,D,Ih(this._hostTNode,_t)),Qt}insert(i,o){return this.insertImpl(i,o,!0)}insertImpl(i,o,s){const l=i._lView;if(function th(n){return Nr(n[cr])}(l)){const D=this.indexOf(i);if(-1!==D)this.detach(D);else{const j=l[cr],Se=new Og(j,j[Ir],j[cr]);Se.detach(Se.indexOf(i))}}const f=this._adjustIndex(o),y=this._lContainer;return M2(y,l,f,s),i.attachToViewContainerRef(),to(Z3(y),f,i),i}move(i,o){return this.insert(i,o)}indexOf(i){const o=Ig(this._lContainer);return null!==o?o.indexOf(i):-1}remove(i){const o=this._adjustIndex(i,-1),s=Ho(this._lContainer,o);s&&(Sa(Z3(this._lContainer),o),Na(s[ni],s))}detach(i){const o=this._adjustIndex(i,-1),s=Ho(this._lContainer,o);return s&&null!=Sa(Z3(this._lContainer),o)?new Qp(s):null}_adjustIndex(i,o=0){return i??this.length+o}};function Ig(n){return n[8]}function Z3(n){return n[8]||(n[8]=[])}function wg(n,i){let o;const s=i[n.index];return Nr(s)?o=s:(o=Im(s,i,null,n),i[n.index]=o,U0(i,o)),xg(o,i,n,s),new Og(o,n,i)}let xg=function Fg(n,i,o,s){if(n[Zs])return;let l;l=8&o.type?vo(s):function MC(n,i){const o=n[Ri],s=o.createComment(""),l=jr(i,n);return Dh(o,B0(o,l),s,function m9(n,i){return n.nextSibling(i)}(o,l),!1),s}(i,o),n[Zs]=l},q3=()=>!1;class e6{constructor(i){this.queryList=i,this.matches=null}clone(){return new e6(this.queryList)}setDirty(){this.queryList.setDirty()}}class t6{constructor(i=[]){this.queries=i}createEmbeddedView(i){const o=i.queries;if(null!==o){const s=null!==i.contentQueries?i.contentQueries[0]:o.length,l=[];for(let f=0;fi.trim())}(i):i}}class n6{constructor(i=[]){this.queries=i}elementStart(i,o){for(let s=0;s0)s.push(y[D/2]);else{const Se=f[D+1],He=i[-j];for(let _t=or;_t(I(i),i.value);return o[M]=i,o}(n),s=o[M];return i?.equal&&(s.equal=i.equal),o.set=l=>st(s,l),o.update=l=>function Ct(n,i){x()||Pt(),st(n,i(n.value))}(s,l),o.asReadonly=Hg.bind(o),o}function Hg(){const n=this[M];if(void 0===n.readonlyFn){const i=()=>this();i[M]=n,n.readonlyFn=i}return n.readonlyFn}function jg(n){return a6(n)&&"function"==typeof n.set}function l6(n){let i=function ev(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),o=!0;const s=[n];for(;i;){let l;if(Zr(n))l=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Fn(903,!1);l=i.\u0275dir}if(l){if(o){s.push(l);const y=n;y.inputs=af(n.inputs),y.inputTransforms=af(n.inputTransforms),y.declaredInputs=af(n.declaredInputs),y.outputs=af(n.outputs);const D=l.hostBindings;D&&KC(n,D);const j=l.viewQuery,Se=l.contentQueries;if(j&&YC(n,j),Se&&WC(n,Se),UC(n,l),An(n.outputs,l.outputs),Zr(l)&&l.data.animation){const He=n.data;He.animation=(He.animation||[]).concat(l.data.animation)}}const f=l.features;if(f)for(let y=0;y=0;s--){const l=n[s];l.hostVars=i+=l.hostVars,l.hostAttrs=Da(l.hostAttrs,o=Da(o,l.hostAttrs))}}(s)}function UC(n,i){for(const o in i.inputs){if(!i.inputs.hasOwnProperty(o)||n.inputs.hasOwnProperty(o))continue;const s=i.inputs[o];if(void 0!==s&&(n.inputs[o]=s,n.declaredInputs[o]=i.declaredInputs[o],null!==i.inputTransforms)){const l=Array.isArray(s)?s[0]:s;if(!i.inputTransforms.hasOwnProperty(l))continue;n.inputTransforms??={},n.inputTransforms[l]=i.inputTransforms[l]}}}function af(n){return n===Jr?{}:n===go?[]:n}function YC(n,i){const o=n.viewQuery;n.viewQuery=o?(s,l)=>{i(s,l),o(s,l)}:i}function WC(n,i){const o=n.contentQueries;n.contentQueries=o?(s,l,f)=>{i(s,l,f),o(s,l,f)}:i}function KC(n,i){const o=n.hostBindings;n.hostBindings=o?(s,l)=>{i(s,l),o(s,l)}:i}function ov(n){const i=n.inputConfig,o={};for(const s in i)if(i.hasOwnProperty(s)){const l=i[s];Array.isArray(l)&&l[3]&&(o[s]=l[3])}n.inputTransforms=o}class Ph{}class rv{}function eb(n,i){return new u6(n,i??null,[])}class u6 extends Ph{constructor(i,o,s){super(),this._parent=o,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Sg(this);const l=tr(i);this._bootstrapComponents=Ra(l.bootstrap),this._r3Injector=dh(i,o,[{provide:Ph,useValue:this},{provide:s4,useValue:this.componentFactoryResolver},...s],fe(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class d6 extends rv{constructor(i){super(),this.moduleType=i}create(i){return new u6(this.moduleType,i,[])}}class sv extends Ph{constructor(i){super(),this.componentFactoryResolver=new Sg(this),this.instance=null;const o=new Ka([...i.providers,{provide:Ph,useValue:this},{provide:s4,useValue:this.componentFactoryResolver}],i.parent||el(),i.debugName,new Set(["environment"]));this.injector=o,i.runEnvironmentInitializers&&o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function h6(n,i,o=null){return new sv({providers:n,parent:i,debugName:o,runEnvironmentInitializers:!0}).injector}function cf(n){return!!p6(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function p6(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Bu(n,i,o){return n[i]=o}function d4(n,i){return n[i]}function cs(n,i,o){return!Object.is(n[i],o)&&(n[i]=o,!0)}function Fh(n,i,o,s){const l=cs(n,i,o);return cs(n,i+1,s)||l}function _l(n,i,o,s,l,f){const y=Fh(n,i,o,s);return Fh(n,i+2,l,f)||y}function h4(n,i,o,s,l,f,y,D,j,Se){const He=o+Si,_t=i.firstCreatePass?function sb(n,i,o,s,l,f,y,D,j){const Se=i.consts,He=Oh(i,n,4,y||null,D||null);O3(i,o,He,Ls(Se,j)),pl(i,He);const _t=He.tView=D3(2,He,s,l,f,i.directiveRegistry,i.pipeRegistry,null,i.schemas,Se,null);return null!==i.queries&&(i.queries.template(i,He),_t.queries=i.queries.embeddedTView(He)),He}(He,i,n,s,l,f,y,D,j):i.data[He];$o(_t,!1);const Gt=av(i,n,_t,o);Nc()&&$0(i,n,Gt,_t),dr(Gt,n);const Qt=Im(Gt,n,Gt,_t);return n[He]=Qt,U0(n,Qt),function Pg(n,i,o){return q3(n,i,o)}(Qt,_t,n),sl(_t)&&M3(i,n,_t),null!=j&&S3(n,_t,Se),_t}function f6(n,i,o,s,l,f,y,D){const j=Dn(),Se=oo();return h4(j,Se,n,i,o,s,l,Ls(Se.consts,f),y,D),f6}let av=function cv(n,i,o,s){return Es(!0),i[Ri].createComment("")};function M6(n,i,o,s){const l=Dn();return cs(l,ea(),i)&&(oo(),Lu(Vo(),l,n,i,o,s)),M6}function k2(n,i,o,s){return cs(n,ea(),o)?i+Vi(o)+s:uo}function V2(n,i,o,s,l,f){const D=Fh(n,function sa(){return ji.lFrame.bindingIndex}(),o,l);return ta(2),D?i+Vi(o)+s+Vi(l)+f:uo}function mf(n,i){return n<<17|i<<2}function Xd(n){return n>>17&32767}function S6(n){return 2|n}function Rh(n){return(131068&n)>>2}function D6(n,i){return-131069&n|i<<2}function O6(n){return 1|n}function Lv(n,i,o,s){const l=n[o+1],f=null===i;let y=s?Xd(l):Rh(l),D=!1;for(;0!==y&&(!1===D||f);){const Se=n[y+1];Gb(n[y],i)&&(D=!0,n[y+1]=s?O6(Se):S6(Se)),y=s?Xd(Se):Rh(Se)}D&&(n[o+1]=s?S6(l):O6(l))}function Gb(n,i){return null===n||null==i||(Array.isArray(n)?n[1]:n)===i||!(!Array.isArray(n)||"string"!=typeof i)&&Wa(n,i)>=0}const Hs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bv(n){return n.substring(Hs.key,Hs.keyEnd)}function Yb(n){return n.substring(Hs.value,Hs.valueEnd)}function $v(n,i){const o=Hs.textEnd;return o===i?-1:(i=Hs.keyEnd=function Xb(n,i,o){for(;i32;)i++;return i}(n,Hs.key=i,o),G2(n,i,o))}function Hv(n,i){const o=Hs.textEnd;let s=Hs.key=G2(n,i,o);return o===s?-1:(s=Hs.keyEnd=function Qb(n,i,o){let s;for(;i=65&&(-33&s)<=90||s>=48&&s<=57);)i++;return i}(n,s,o),s=Uv(n,s,o),s=Hs.value=G2(n,s,o),s=Hs.valueEnd=function Jb(n,i,o){let s=-1,l=-1,f=-1,y=i,D=y;for(;y32&&(D=y),f=l,l=s,s=-33&j}return D}(n,s,o),Uv(n,s,o))}function jv(n){Hs.key=0,Hs.keyEnd=0,Hs.value=0,Hs.valueEnd=0,Hs.textEnd=n.length}function G2(n,i,o){for(;i=0;o=Hv(i,o))Xv(n,Bv(i),Yb(i))}function Yv(n){ru(oE,$u,n,!0)}function $u(n,i){for(let o=function Wb(n){return jv(n),$v(n,G2(n,0,Hs.textEnd))}(i);o>=0;o=$v(i,o))Dr(n,Bv(i),!0)}function ou(n,i,o,s){const l=Dn(),f=oo(),y=ta(2);f.firstUpdatePass&&Kv(f,n,y,s),i!==uo&&cs(l,y,i)&&Qv(f,f.data[wr()],l,l[Ri],n,l[y+1]=function sE(n,i){return null==n||""===n||("string"==typeof i?n+=i:"object"==typeof n&&(n=fe(gl(n)))),n}(i,o),s,y)}function ru(n,i,o,s){const l=oo(),f=ta(2);l.firstUpdatePass&&Kv(l,null,f,s);const y=Dn();if(o!==uo&&cs(y,f,o)){const D=l.data[wr()];if(Zv(D,s)&&!Wv(l,f)){let j=s?D.classesWithoutHost:D.stylesWithoutHost;null!==j&&(o=We(j,o||"")),w6(l,D,y,o,s)}else!function rE(n,i,o,s,l,f,y,D){l===uo&&(l=go);let j=0,Se=0,He=0=n.expandoStartIndex}function Kv(n,i,o,s){const l=n.data;if(null===l[o+1]){const f=l[wr()],y=Wv(n,o);Zv(f,s)&&null===i&&!y&&(i=!1),i=function qb(n,i,o,s){const l=Ql(n);let f=s?i.residualClasses:i.residualStyles;if(null===l)0===(s?i.classBindings:i.styleBindings)&&(o=g4(o=F6(null,n,i,o,s),i.attrs,s),f=null);else{const y=i.directiveStylingLast;if(-1===y||n[y]!==l)if(o=F6(l,n,i,o,s),null===f){let j=function eE(n,i,o){const s=o?i.classBindings:i.styleBindings;if(0!==Rh(s))return n[Xd(s)]}(n,i,s);void 0!==j&&Array.isArray(j)&&(j=F6(null,n,i,j[1],s),j=g4(j,i.attrs,s),function tE(n,i,o,s){n[Xd(o?i.classBindings:i.styleBindings)]=s}(n,i,s,j))}else f=function nE(n,i,o){let s;const l=i.directiveEnd;for(let f=1+i.directiveStylingLast;f0)&&(Se=!0)):He=o,l)if(0!==j){const Gt=Xd(n[D+1]);n[s+1]=mf(Gt,D),0!==Gt&&(n[Gt+1]=D6(n[Gt+1],s)),n[D+1]=function $b(n,i){return 131071&n|i<<17}(n[D+1],s)}else n[s+1]=mf(D,0),0!==D&&(n[D+1]=D6(n[D+1],s)),D=s;else n[s+1]=mf(j,0),0===D?D=s:n[j+1]=D6(n[j+1],s),j=s;Se&&(n[s+1]=S6(n[s+1])),Lv(n,He,s,!0),Lv(n,He,s,!1),function Ub(n,i,o,s,l){const f=l?n.residualClasses:n.residualStyles;null!=f&&"string"==typeof i&&Wa(f,i)>=0&&(o[s+1]=O6(o[s+1]))}(i,He,n,s,f),y=mf(D,j),f?i.classBindings=y:i.styleBindings=y}(l,f,i,o,y,s)}}function F6(n,i,o,s,l){let f=null;const y=o.directiveEnd;let D=o.directiveStylingLast;for(-1===D?D=o.directiveStart:D++;D0;){const j=n[l],Se=Array.isArray(j),He=Se?j[1]:j,_t=null===He;let Gt=o[l+1];Gt===uo&&(Gt=_t?go:void 0);let Qt=_t?Cl(Gt,s):He===s?Gt:void 0;if(Se&&!gf(Qt)&&(Qt=Cl(j,s)),gf(Qt)&&(D=Qt,y))return D;const un=n[l+1];l=y?Xd(un):Rh(un)}if(null!==i){let j=f?i.residualClasses:i.residualStyles;null!=j&&(D=Cl(j,s))}return D}function gf(n){return void 0!==n}function Zv(n,i){return!!(n.flags&(i?8:16))}function qv(n,i,o){ru(Dr,$u,k2(Dn(),n,i,o),!0)}function e5(){return Dn()[Wo][ko]}class mE{destroy(i){}updateValue(i,o){}swap(i,o){const s=Math.min(i,o),l=Math.max(i,o),f=this.detach(l);if(l-s>1){const y=this.detach(s);this.attach(s,f),this.attach(l,y)}else this.attach(s,f)}move(i,o){this.attach(o,this.detach(i))}}function A6(n,i,o,s,l){return n===o&&Object.is(i,s)?1:Object.is(l(n,i),l(o,s))?-1:0}function R6(n,i,o,s){return!(void 0===i||!i.has(s)||(n.attach(o,i.get(s)),i.delete(s),0))}function t5(n,i,o,s,l){if(R6(n,i,s,o(s,l)))n.updateValue(s,l);else{const f=n.create(s,l);n.attach(s,f)}}function n5(n,i,o,s){const l=new Set;for(let f=i;f<=o;f++)l.add(s(f,n.at(f)));return l}class i5{constructor(){this.kvMap=new Map,this._vMap=void 0}has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;const o=this.kvMap.get(i);return void 0!==this._vMap&&this._vMap.has(o)?(this.kvMap.set(i,this._vMap.get(o)),this._vMap.delete(o)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,o){if(this.kvMap.has(i)){let s=this.kvMap.get(i);void 0===this._vMap&&(this._vMap=new Map);const l=this._vMap;for(;l.has(s);)s=l.get(s);l.set(s,o)}else this.kvMap.set(i,o)}forEach(i){for(let[o,s]of this.kvMap)if(i(s,o),void 0!==this._vMap){const l=this._vMap;for(;l.has(s);)s=l.get(s),i(s,o)}}}function o5(n,i){ka("NgControlFlow");const o=Dn(),s=ea(),l=o[s]!==uo?o[s]:-1,f=-1!==l?vf(o,Si+l):void 0;if(cs(o,s,n)){const D=G(null);try{if(void 0!==f&&A3(f,0),-1!==n){const j=Si+n,Se=vf(o,j),He=N6(o[ni],j),_t=xh(Se,He.tView.ssrId);M2(Se,z2(o,He,i,{dehydratedView:_t}),0,Ih(He,_t))}}finally{G(D)}}else if(void 0!==f){const D=Am(f,0);void 0!==D&&(D[ko]=i)}}class vE{constructor(i,o,s){this.lContainer=i,this.$implicit=o,this.$index=s}get $count(){return this.lContainer.length-or}}function r5(n){return n}function s5(n,i){return i}class _E{constructor(i,o,s){this.hasEmptyBlock=i,this.trackByFn=o,this.liveCollection=s}}function a5(n,i,o,s,l,f,y,D,j,Se,He,_t,Gt){ka("NgControlFlow");const Qt=Dn(),un=oo(),In=void 0!==j,ii=Dn(),ui=D?y.bind(ii[Wo][ko]):y,Nn=new _E(In,ui);ii[Si+n]=Nn,h4(Qt,un,n+1,i,o,s,l,Ls(un.consts,f)),In&&h4(Qt,un,n+2,j,Se,He,_t,Ls(un.consts,Gt))}class yE extends mE{constructor(i,o,s){super(),this.lContainer=i,this.hostLView=o,this.templateTNode=s,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-or}at(i){return this.getLView(i)[ko].$implicit}attach(i,o){const s=o[$r];this.needsIndexUpdate||=i!==this.length,M2(this.lContainer,o,i,Ih(this.templateTNode,s))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,function CE(n,i){return Ho(n,i)}(this.lContainer,i)}create(i,o){const s=xh(this.lContainer,this.templateTNode.tView.ssrId),l=z2(this.hostLView,this.templateTNode,new vE(this.lContainer,o,i),{dehydratedView:s});return this.operationsCounter?.recordCreate(),l}destroy(i){Na(i[ni],i),this.operationsCounter?.recordDestroy()}updateValue(i,o){this.getLView(i)[ko].$implicit=o}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i{n.destroy(j)})}(j,n,f.trackByFn),j.updateIndexes(),f.hasEmptyBlock){const Se=ea(),He=0===j.length;if(cs(s,Se,He)){const _t=o+2,Gt=vf(s,_t);if(He){const Qt=N6(l,_t),un=xh(Gt,Qt.tView.ssrId);M2(Gt,z2(s,Qt,void 0,{dehydratedView:un}),0,Ih(Qt,un))}else A3(Gt,0)}}}finally{G(i)}}function vf(n,i){return n[i]}function N6(n,i){return jl(n,i)}function _f(n,i,o,s){const l=Dn(),f=oo(),y=Si+n,D=l[Ri],j=f.firstCreatePass?function EE(n,i,o,s,l,f){const y=i.consts,j=Oh(i,n,2,s,Ls(y,l));return O3(i,o,j,Ls(y,f)),null!==j.attrs&&nf(j,j.attrs,!1),null!==j.mergedAttrs&&nf(j,j.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,j),j}(y,f,l,i,o,s):f.data[y],Se=l5(f,l,j,D,i,n);l[y]=Se;const He=sl(j);return $o(j,!0),vm(D,Se,j),!function I2(n){return!(32&~n.flags)}(j)&&Nc()&&$0(f,l,Se,j),0===function b1(){return ji.lFrame.elementDepthCount}()&&dr(Se,l),function ud(){ji.lFrame.elementDepthCount++}(),He&&(M3(f,l,j),z3(f,j,l)),null!==s&&S3(l,j),_f}function yf(){let n=wo();oc()?Ac():(n=n.parent,$o(n,!1));const i=n;(function hd(n){return ji.skipHydrationRootTNode===n})(i)&&function gd(){ji.skipHydrationRootTNode=null}(),function dd(){ji.lFrame.elementDepthCount--}();const o=oo();return o.firstCreatePass&&(pl(o,n),Al(n)&&o.queries.elementEnd(n)),null!=i.classesWithoutHost&&function Bh(n){return!!(8&n.flags)}(i)&&w6(o,i,Dn(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function $h(n){return!!(16&n.flags)}(i)&&w6(o,i,Dn(),i.stylesWithoutHost,!1),yf}function k6(n,i,o,s){return _f(n,i,o,s),yf(),k6}let l5=(n,i,o,s,l,f)=>(Es(!0),h(s,l,function cc(){return ji.lFrame.currentNamespace}()));function Cf(n,i,o){const s=Dn(),l=oo(),f=n+Si,y=l.firstCreatePass?function ME(n,i,o,s,l){const f=i.consts,y=Ls(f,s),D=Oh(i,n,8,"ng-container",y);return null!==y&&nf(D,y,!0),O3(i,o,D,Ls(f,l)),null!==i.queries&&i.queries.elementStart(i,D),D}(f,l,s,i,o):l.data[f];$o(y,!0);const D=u5(l,s,y,n);return s[f]=D,Nc()&&$0(l,s,D,y),dr(D,s),sl(y)&&(M3(l,s,y),z3(l,y,s)),null!=o&&S3(s,y),Cf}function bf(){let n=wo();const i=oo();return oc()?Ac():(n=n.parent,$o(n,!1)),i.firstCreatePass&&(pl(i,n),Al(n)&&i.queries.elementEnd(n)),bf}function V6(n,i,o){return Cf(n,i,o),bf(),V6}let u5=(n,i,o,s)=>(Es(!0),a(i[Ri],""));function d5(){return Dn()}function L6(n,i,o){const s=Dn();return cs(s,ea(),i)&&fc(oo(),Vo(),s,n,i,s[Ri],o,!0),L6}function B6(n,i,o){const s=Dn();if(cs(s,ea(),i)){const f=oo(),y=Vo();fc(f,y,s,n,i,Fm(Ql(f.data),y,s),o,!0)}return B6}const Nh=void 0;var IE=["en",[["a","p"],["AM","PM"],Nh],[["AM","PM"],Nh,Nh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Nh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Nh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Nh,"{1} 'at' {0}",Nh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function OE(n){const o=Math.floor(Math.abs(n)),s=n.toString().replace(/^[^.]*\.?/,"").length;return 1===o&&0===s?1:5}];let Y2={};function wE(n,i,o){"string"!=typeof i&&(o=i,i=n[W2.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),Y2[i]=n,o&&(Y2[i][W2.ExtraData]=o)}function $6(n){const i=function xE(n){return n.toLowerCase().replace(/_/g,"-")}(n);let o=p5(i);if(o)return o;const s=i.split("-")[0];if(o=p5(s),o)return o;if("en"===s)return IE;throw new Fn(701,!1)}function h5(n){return $6(n)[W2.PluralCase]}function p5(n){return n in Y2||(Y2[n]=Eo.ng&&Eo.ng.common&&Eo.ng.common.locales&&Eo.ng.common.locales[n]),Y2[n]}var W2=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(W2||{});const K2="en-US";let f5=K2;let F5=(n,i,o)=>{};function U6(n,i,o,s){const l=Dn(),f=oo(),y=wo();return Y6(f,l,l[Ri],y,n,i,s),U6}function G6(n,i){const o=wo(),s=Dn(),l=oo();return Y6(l,s,Fm(Ql(l.data),o,s),o,n,i),G6}function Y6(n,i,o,s,l,f,y){const D=sl(s),Se=n.firstCreatePass&&Pm(n),He=i[ko],_t=xm(i);let Gt=!0;if(3&s.type||y){const In=jr(s,i),ii=y?y(In):In,ui=_t.length,Nn=y?Lo=>y(vo(Lo[s.index])):s.index;let Ji=null;if(!y&&D&&(Ji=function _T(n,i,o,s){const l=n.cleanup;if(null!=l)for(let f=0;fj?D[j]:null}"string"==typeof y&&(f+=2)}return null}(n,i,l,s.index)),null!==Ji)(Ji.__ngLastListenerFn__||Ji).__ngNextListenerFn__=f,Ji.__ngLastListenerFn__=f,Gt=!1;else{f=N5(s,i,He,f),F5(In,l,f);const Lo=o.listen(ii,l,f);_t.push(f,Lo),Se&&Se.push(l,Nn,ui,ui+1)}}else f=N5(s,i,He,f);const Qt=s.outputs;let un;if(Gt&&null!==Qt&&(un=Qt[l])){const In=un.length;if(In)for(let ii=0;ii-1?bs(n.index,i):i,5);let D=R5(i,o,s,f),j=l.__ngNextListenerFn__;for(;j;)D=R5(i,o,j,f)&&D,j=j.__ngNextListenerFn__;return D}}function k5(n=1){return function I1(n){return(ji.lFrame.contextLView=function y1(n,i){for(;n>0;)i=i[Za],n--;return i}(n,ji.lFrame.contextLView))[ko]}(n)}function yT(n,i){let o=null;const s=function P(n){const i=n.attrs;if(null!=i){const o=i.indexOf(5);if(!(1&o))return i[o+1]}return null}(n);for(let l=0;l=n.data.length&&(n.data[o]=null,n.blueprint[o]=null),i[o]=s}function J5(n){return Fc(ul(),Si+n)}function Z5(n,i,o){iu(k2(Dn(),n,i,o))}function c7(n,i=""){const o=Dn(),s=oo(),l=n+Si,f=s.firstCreatePass?Oh(s,l,1,i,null):s.data[l],y=l7(s,o,f,i,n);o[l]=y,Nc()&&$0(s,o,y,f),$o(f,!1)}let l7=(n,i,o,s,l)=>(Es(!0),function u(n,i){return n.createText(i)}(i[Ri],s));function Q6(n){return Sf("",n,""),Q6}function Sf(n,i,o){const s=Dn(),l=k2(s,n,i,o);return l!==uo&&H1(s,wr(),l),Sf}function J6(n,i,o,s,l){const f=Dn(),y=V2(f,n,i,o,s,l);return y!==uo&&H1(f,wr(),y),J6}function Z6(n,i,o){jg(i)&&(i=i());const s=Dn();return cs(s,ea(),i)&&fc(oo(),Vo(),s,n,i,s[Ri],o,!1),Z6}function v7(n,i){const o=jg(n);return o&&n.set(i),o}function q6(n,i){const o=Dn(),s=oo(),l=wo();return Y6(s,o,o[Ri],l,n,i),q6}const _7={};function e8(n){const i=oo(),o=Dn(),s=n+Si;return $o(Oh(i,s,128,null,null),!1),X6(i,o,s,_7),e8}function y7(n){return ka("NgLet"),X6(oo(),Dn(),wr(),n),n}function C7(n){const o=Fc(ul(),Si+n);if(o===_7)throw new Fn(314,!1);return o}function t8(n,i,o,s,l){if(n=$n(n),Array.isArray(n))for(let f=0;f>20;if(Oa(n)||!n.multi){const Qt=new lc(Se,l,T2),un=i8(j,i,l?He:He+Gt,_t);-1===un?(R1(Pu(D,y),f,j),n8(f,n,i.length),i.push(j),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),o.push(Qt),y.push(Qt)):(o[un]=Qt,y[un]=Qt)}else{const Qt=i8(j,i,He+Gt,_t),un=i8(j,i,He,He+Gt),ii=un>=0&&o[un];if(l&&!ii||!l&&!(Qt>=0&&o[Qt])){R1(Pu(D,y),f,j);const ui=function kT(n,i,o,s,l){const f=new lc(n,o,T2);return f.multi=[],f.index=i,f.componentProviders=0,b7(f,l,s&&!o),f}(l?NT:RT,o.length,l,s,Se);!l&&ii&&(o[un].providerFactory=ui),n8(f,n,i.length,0),i.push(j),D.directiveStart++,D.directiveEnd++,l&&(D.providerIndexes+=1048576),o.push(ui),y.push(ui)}else n8(f,n,Qt>-1?Qt:un,b7(o[l?un:Qt],Se,!l&&s));!l&&s&&ii&&o[un].componentProviders++}}}function n8(n,i,o,s){const l=Oa(i),f=function Ku(n){return!!n.useClass}(i);if(l||f){const j=(f?$n(i.useClass):i).prototype.ngOnDestroy;if(j){const Se=n.destroyHooks||(n.destroyHooks=[]);if(!l&&i.multi){const He=Se.indexOf(o);-1===He?Se.push(o,[s,j]):Se[He+1].push(s,j)}else Se.push(o,j)}}}function b7(n,i,o){return o&&n.componentProviders++,n.multi.push(i)-1}function i8(n,i,o,s){for(let l=o;l{o.providersResolver=(s,l)=>function AT(n,i,o){const s=oo();if(s.firstCreatePass){const l=Zr(n);t8(o,s.data,s.blueprint,l,!0),t8(i,s.data,s.blueprint,l,!1)}}(s,l?l(n):n,i)}}let VT=(()=>{class n{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const s=Dc(0,o.type),l=s.length>0?h6([s],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,l)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=mo({token:n,providedIn:"environment",factory:()=>new n(Gi(Cs))})}return n})();function T7(n){ka("NgStandalone"),n.getStandaloneInjector=i=>i.get(VT).getOrCreateStandaloneInjector(n)}function z7(n,i,o){const s=n.\u0275cmp;s.directiveDefs=zl(i,!1),s.pipeDefs=zl(o,!0)}function D7(n,i,o){const s=qr()+n,l=Dn();return l[s]===uo?Bu(l,s,o?i.call(o):i()):d4(l,s)}function O7(n,i,o,s){return A7(Dn(),qr(),n,i,o,s)}function I7(n,i,o,s,l){return R7(Dn(),qr(),n,i,o,s,l)}function w7(n,i,o,s,l,f){return N7(Dn(),qr(),n,i,o,s,l,f)}function x7(n,i,o,s,l,f,y){return k7(Dn(),qr(),n,i,o,s,l,f,y)}function P7(n,i,o,s,l,f,y,D){const j=qr()+n,Se=Dn(),He=_l(Se,j,o,s,l,f);return cs(Se,j+4,y)||He?Bu(Se,j+5,D?i.call(D,o,s,l,f,y):i(o,s,l,f,y)):d4(Se,j+5)}function F7(n,i,o,s,l,f,y,D,j){const Se=qr()+n,He=Dn(),_t=_l(He,Se,o,s,l,f);return Fh(He,Se+4,y,D)||_t?Bu(He,Se+6,j?i.call(j,o,s,l,f,y,D):i(o,s,l,f,y,D)):d4(He,Se+6)}function E4(n,i){const o=n[i];return o===uo?void 0:o}function A7(n,i,o,s,l,f){const y=i+o;return cs(n,y,l)?Bu(n,y+1,f?s.call(f,l):s(l)):E4(n,y+1)}function R7(n,i,o,s,l,f,y){const D=i+o;return Fh(n,D,l,f)?Bu(n,D+2,y?s.call(y,l,f):s(l,f)):E4(n,D+2)}function N7(n,i,o,s,l,f,y,D){const j=i+o;return function lf(n,i,o,s,l){const f=Fh(n,i,o,s);return cs(n,i+2,l)||f}(n,j,l,f,y)?Bu(n,j+3,D?s.call(D,l,f,y):s(l,f,y)):E4(n,j+3)}function k7(n,i,o,s,l,f,y,D,j){const Se=i+o;return _l(n,Se,l,f,y,D)?Bu(n,Se+4,j?s.call(j,l,f,y,D):s(l,f,y,D)):E4(n,Se+4)}function L7(n,i){const o=oo();let s;const l=n+Si;o.firstCreatePass?(s=function UT(n,i){if(i)for(let o=i.length-1;o>=0;o--){const s=i[o];if(n===s.name)return s}}(i,o.pipeRegistry),o.data[l]=s,s.onDestroy&&(o.destroyHooks??=[]).push(l,s.onDestroy)):s=o.data[l];const f=s.factory||(s.factory=ws(s.type)),D=Go(T2);try{const j=wu(!1),Se=f();return wu(j),X6(o,Dn(),l,Se),Se}finally{Go(D)}}function B7(n,i,o){const s=n+Si,l=Dn(),f=Fc(l,s);return T4(l,s)?A7(l,qr(),i,f.transform,o,f):f.transform(o)}function $7(n,i,o,s){const l=n+Si,f=Dn(),y=Fc(f,l);return T4(f,l)?R7(f,qr(),i,y.transform,o,s,y):y.transform(o,s)}function H7(n,i,o,s,l){const f=n+Si,y=Dn(),D=Fc(y,f);return T4(y,f)?N7(y,qr(),i,D.transform,o,s,l,D):D.transform(o,s,l)}function j7(n,i,o,s,l,f){const y=n+Si,D=Dn(),j=Fc(D,y);return T4(D,y)?k7(D,qr(),i,j.transform,o,s,l,f,j):j.transform(o,s,l,f)}function T4(n,i){return n[ni].data[i].pure}function U7(n,i){return W0(n,i)}class s_{constructor(i){this.full=i;const o=i.split(".");this.major=o[0],this.minor=o[1],this.patch=o.slice(2).join(".")}}let a_=(()=>{class n{log(o){console.log(o)}warn(o){console.warn(o)}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const h_=new wi(""),p_=new wi("");let u8,Vz=(()=>{class n{constructor(o,s,l){this._ngZone=o,this.registry=s,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,u8||(function Lz(n){u8=n}(l),l.addToWindow(s)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Pr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(o)||(clearTimeout(s.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,s,l){let f=-1;s&&s>0&&(f=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==f),o()},s)),this._callbacks.push({doneCb:o,timeoutId:f,updateCb:l})}whenStable(o,s,l){if(l&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(o,s,l),this._runCallbacksIfReady()}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,s,l){return[]}static#e=this.\u0275fac=function(s){return new(s||n)(Gi(Pr),Gi(f_),Gi(p_))};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac})}return n})(),f_=(()=>{class n{constructor(){this._applications=new Map}registerApplication(o,s){this._applications.set(o,s)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,s=!0){return u8?.findTestabilityInTree(this,o,s)??null}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function d8(n){return!!n&&"function"==typeof n.then}function m_(n){return!!n&&"function"==typeof n.subscribe}const g_=new wi("");let h8=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,s)=>{this.resolve=o,this.reject=s}),this.appInits=Xn(g_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const o=[];for(const l of this.appInits){const f=l();if(d8(f))o.push(f);else if(m_(f)){const y=new Promise((D,j)=>{f.subscribe({complete:D,error:j})});o.push(y)}}const s=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{s()}).catch(l=>{this.reject(l)}),0===o.length&&s(),this.initialized=!0}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const xf=new wi("");function y_(n,i){return Array.isArray(i)?i.reduce(y_,n):{...n,...i}}let su=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Xn(T),this.afterRenderEffectManager=Xn(ef),this.zonelessEnabled=Xn(r4),this.externalTestViews=new Set,this.beforeRender=new bt.B,this.afterTick=new bt.B,this.componentTypes=[],this.components=[],this.isStable=Xn(Xt).hasPendingTasks.pipe((0,Et.T)(o=>!o)),this._injector=Xn(Cs)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,s){const l=o instanceof dg;if(!this._injector.get(h8).done)throw!l&&oa(o),new Fn(405,!1);let y;y=l?o:this._injector.get(s4).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const D=function Bz(n){return n.isBoundToModule}(y)?void 0:this._injector.get(Ph),Se=y.create(kr.NULL,[],s||y.selector,D),He=Se.location.nativeElement,_t=Se.injector.get(h_,null);return _t?.registerApplication(He),Se.onDestroy(()=>{this.detachView(Se.hostView),Pf(this.components,Se),_t?.unregisterApplication(He)}),this._loadComponent(Se),Se}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new Fn(101,!1);const s=G(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,G(s),this.afterTick.next()}}detectChangesInAttachedViews(o){let s=null;this._injector.destroyed||(s=this._injector.get(Y3,null,{optional:!0}));let l=0;const f=this.afterRenderEffectManager;for(;l<10;){const y=0===l;if(o||!y){this.beforeRender.next(y);for(let{_lView:D,notifyErrorHandler:j}of this._views)Hz(D,j,y,this.zonelessEnabled)}else s?.begin?.(),s?.end?.();if(l++,f.executeInternalCallbacks(),!this.allViews.some(({_lView:D})=>Bs(D))&&(f.execute(),!this.allViews.some(({_lView:D})=>Bs(D))))break}}attachView(o){const s=o;this._views.push(s),s.attachToAppRef(this)}detachView(o){const s=o;Pf(this._views,s),s.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const s=this._injector.get(xf,[]);[...this._bootstrapListeners,...s].forEach(l=>l(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>Pf(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Fn(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Pf(n,i){const o=n.indexOf(i);o>-1&&n.splice(o,1)}function Hz(n,i,o,s){(o||Bs(n))&&Y0(n,i,o&&!s?0:1)}class jz{constructor(i,o){this.ngModuleFactory=i,this.componentFactories=o}}let Uz=(()=>{class n{compileModuleSync(o){return new d6(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const s=this.compileModuleSync(o),f=Ra(tr(o).declarations).reduce((y,D)=>{const j=Hi(D);return j&&y.push(new l4(j)),y},[]);return new jz(s,f)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Wz=(()=>{class n{constructor(){this.zone=Xn(Pr),this.changeDetectionScheduler=Xn(D2),this.applicationRef=Xn(su)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function p8({ngZoneFactory:n,ignoreChangesOutsideZone:i}){return n??=()=>new Pr(f8()),[{provide:Pr,useFactory:n},{provide:ar,multi:!0,useFactory:()=>{const o=Xn(Wz,{optional:!0});return()=>o.initialize()}},{provide:ar,multi:!0,useFactory:()=>{const o=Xn(Qz);return()=>{o.initialize()}}},{provide:T,useFactory:Xz},!0===i?{provide:lg,useValue:!0}:[]]}function Xz(){const n=Xn(Pr),i=Xn(ya);return o=>n.runOutsideAngular(()=>i.handleError(o))}function f8(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}let Qz=(()=>{class n{constructor(){this.subscription=new At.yU,this.initialized=!1,this.zone=Xn(Pr),this.pendingTasks=Xn(Xt)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Pr.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Pr.assertInAngularZone(),o??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),S4=(()=>{class n{constructor(){this.appRef=Xn(su),this.taskService=Xn(Xt),this.ngZone=Xn(Pr),this.zonelessEnabled=Xn(r4),this.disableScheduling=Xn(lg,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new At.yU,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof q0||!this.zoneIsDefined)}notify(o){if(!this.zonelessEnabled&&5===o)return;switch(o){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const s=this.useMicrotaskScheduler?mg:fg;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=s(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=s(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Pr.isInAngularZone())}tick(o){if(this.runningTick||this.appRef.destroyed)return;const s=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(o)},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(s),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,mg(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(s)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const o=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(o)}}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Af=new wi("",{providedIn:"root",factory:()=>Xn(Af,co.Optional|co.SkipSelf)||function Jz(){return typeof $localize<"u"&&$localize.locale||K2}()}),Zz=new wi("",{providedIn:"root",factory:()=>"USD"}),g8=new wi("");let z_=(()=>{class n{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,s){const l=function cC(n="zone.js",i){return"noop"===n?new q0:"zone.js"===n?new Pr(i):n}(s?.ngZone,f8({eventCoalescing:s?.ngZoneEventCoalescing,runCoalescing:s?.ngZoneRunCoalescing}));return l.run(()=>{const f=s?.ignoreChangesOutsideZone,y=function tb(n,i,o){return new u6(n,i,o)}(o.moduleType,this.injector,[...p8({ngZoneFactory:()=>l,ignoreChangesOutsideZone:f}),{provide:D2,useExisting:S4}]),D=y.injector.get(ya,null);return l.runOutsideAngular(()=>{const j=l.onError.subscribe({next:Se=>{D.handleError(Se)}});y.onDestroy(()=>{Pf(this._modules,y),j.unsubscribe()})}),function __(n,i,o){try{const s=o();return d8(s)?s.catch(l=>{throw i.runOutsideAngular(()=>n.handleError(l)),l}):s}catch(s){throw i.runOutsideAngular(()=>n.handleError(s)),s}}(D,l,()=>{const j=y.injector.get(h8);return j.runInitializers(),j.donePromise.then(()=>(function m5(n){"string"==typeof n&&(f5=n.toLowerCase().replace(/_/g,"-"))}(y.injector.get(Af,K2)||K2),this._moduleDoBootstrap(y),y))})})}bootstrapModule(o,s=[]){const l=y_({},s);return function Yz(n,i,o){const s=new d6(o);return Promise.resolve(s)}(0,0,o).then(f=>this.bootstrapModuleFactory(f,l))}_moduleDoBootstrap(o){const s=o.injector.get(su);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(l=>s.bootstrap(l));else{if(!o.instance.ngDoBootstrap)throw new Fn(-403,!1);o.instance.ngDoBootstrap(s)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Fn(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const o=this._injector.get(g8,null);o&&(o.forEach(s=>s()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(s){return new(s||n)(Gi(kr))};static#t=this.\u0275prov=mo({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})(),Qd=null;const M_=new wi("");function S_(n,i,o=[]){const s=`Platform: ${i}`,l=new wi(s);return(f=[])=>{let y=v8();if(!y||y.injector.get(M_,!1)){const D=[...o,...f,{provide:l,useValue:!0}];n?n(D):function eM(n){if(Qd&&!Qd.get(M_,!1))throw new Fn(400,!1);(function v_(){!function vt(n){Be=n}(()=>{throw new Fn(600,!1)})})(),Qd=n;const i=n.get(z_);(function O_(n){n.get(hp,null)?.forEach(o=>o())})(n)}(function D_(n=[],i){return kr.create({name:i,providers:[{provide:Ol,useValue:"platform"},{provide:g8,useValue:new Set([()=>Qd=null])},...n]})}(D,s))}return function tM(n){const i=v8();if(!i)throw new Fn(401,!1);return i}()}}function v8(){return Qd?.get(z_)??null}function iM(){return!1}function oM(){}let w_=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=rM}return n})();function rM(n){return function sM(n,i,o){if(wa(n)&&!o){const s=bs(n.index,i);return new Qp(s,s)}return 175&n.type?new Qp(i[Wo],i):null}(wo(),Dn(),!(16&~n))}class A_{constructor(){}supports(i){return cf(i)}create(i){return new dM(i)}}const uM=(n,i)=>i;class dM{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||uM}forEachItem(i){let o;for(o=this._itHead;null!==o;o=o._next)i(o)}forEachOperation(i){let o=this._itHead,s=this._removalsHead,l=0,f=null;for(;o||s;){const y=!s||o&&o.currentIndex{y=this._trackByFn(l,D),null!==o&&Object.is(o.trackById,y)?(s&&(o=this._verifyReinsertion(o,D,y,l)),Object.is(o.item,D)||this._addIdentityChange(o,D)):(o=this._mismatch(o,D,y,l),s=!0),o=o._next,l++}),this.length=l;return this._truncate(o),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,o,s,l){let f;return null===i?f=this._itTail:(f=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._reinsertAfter(i,f,l)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(s,l))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._moveAfter(i,f,l)):i=this._addAfter(new hM(o,s),f,l),i}_verifyReinsertion(i,o,s,l){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null);return null!==f?i=this._reinsertAfter(f,i._prev,l):i.currentIndex!=l&&(i.currentIndex=l,this._addToMoves(i,l)),i}_truncate(i){for(;null!==i;){const o=i._next;this._addToRemovals(this._unlink(i)),i=o}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,o,s){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const l=i._prevRemoved,f=i._nextRemoved;return null===l?this._removalsHead=f:l._nextRemoved=f,null===f?this._removalsTail=l:f._prevRemoved=l,this._insertAfter(i,o,s),this._addToMoves(i,s),i}_moveAfter(i,o,s){return this._unlink(i),this._insertAfter(i,o,s),this._addToMoves(i,s),i}_addAfter(i,o,s){return this._insertAfter(i,o,s),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,o,s){const l=null===o?this._itHead:o._next;return i._next=l,i._prev=o,null===l?this._itTail=i:l._prev=i,null===o?this._itHead=i:o._next=i,null===this._linkedRecords&&(this._linkedRecords=new R_),this._linkedRecords.put(i),i.currentIndex=s,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const o=i._prev,s=i._next;return null===o?this._itHead=s:o._next=s,null===s?this._itTail=o:s._prev=o,i}_addToMoves(i,o){return i.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new R_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,o){return i.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class hM{constructor(i,o){this.item=i,this.trackById=o,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class pM{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,o){let s;for(s=this._head;null!==s;s=s._nextDup)if((null===o||o<=s.currentIndex)&&Object.is(s.trackById,i))return s;return null}remove(i){const o=i._prevDup,s=i._nextDup;return null===o?this._head=s:o._nextDup=s,null===s?this._tail=o:s._prevDup=o,null===this._head}}class R_{constructor(){this.map=new Map}put(i){const o=i.trackById;let s=this.map.get(o);s||(s=new pM,this.map.set(o,s)),s.add(i)}get(i,o){const l=this.map.get(i);return l?l.get(i,o):null}remove(i){const o=i.trackById;return this.map.get(o).remove(i)&&this.map.delete(o),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function N_(n,i,o){const s=n.previousIndex;if(null===s)return s;let l=0;return o&&s{if(o&&o.key===l)this._maybeAddToChanges(o,s),this._appendAfter=o,o=o._next;else{const f=this._getOrCreateRecordForKey(l,s);o=this._insertBeforeOrAppend(o,f)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let s=o;null!==s;s=s._nextRemoved)s===this._mapHead&&(this._mapHead=null),this._records.delete(s.key),s._nextRemoved=s._next,s.previousValue=s.currentValue,s.currentValue=null,s._prev=null,s._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,o){if(i){const s=i._prev;return o._next=i,o._prev=s,i._prev=o,s&&(s._next=o),i===this._mapHead&&(this._mapHead=o),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(i,o){if(this._records.has(i)){const l=this._records.get(i);this._maybeAddToChanges(l,o);const f=l._prev,y=l._next;return f&&(f._next=y),y&&(y._prev=f),l._next=null,l._prev=null,l}const s=new mM(i);return this._records.set(i,s),s.currentValue=o,this._addToAdditions(s),s}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,o){Object.is(o,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=o,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,o){i instanceof Map?i.forEach(o):Object.keys(i).forEach(s=>o(i[s],s))}}class mM{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function V_(){return new E8([new A_])}let E8=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:V_});constructor(o){this.factories=o}static create(o,s){if(null!=s){const l=s.factories.slice();o=o.concat(l)}return new n(o)}static extend(o){return{provide:n,useFactory:s=>n.create(o,s||V_()),deps:[[n,new vs,new Br]]}}find(o){const s=this.factories.find(l=>l.supports(o));if(null!=s)return s;throw new Fn(901,!1)}}return n})();function L_(){return new T8([new k_])}let T8=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:L_});constructor(o){this.factories=o}static create(o,s){if(s){const l=s.factories.slice();o=o.concat(l)}return new n(o)}static extend(o){return{provide:n,useFactory:s=>n.create(o,s||L_()),deps:[[n,new vs,new Br]]}}find(o){const s=this.factories.find(l=>l.supports(o));if(s)return s;throw new Fn(901,!1)}}return n})();const _M=S_(null,"core",[]);let yM=(()=>{class n{constructor(o){}static#e=this.\u0275fac=function(s){return new(s||n)(Gi(su))};static#t=this.\u0275mod=Ai({type:n});static#n=this.\u0275inj=Yr({})}return n})();const n9=new wi("");function eS(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function tS(n,i=NaN){return isNaN(parseFloat(n))||isNaN(Number(n))?i:Number(n)}function iS(n,i){ka("NgSignals");const o=function pe(n){const i=Object.create(Y);i.computation=n;const o=()=>{if(X(i),I(i),i.value===R)throw i.error;return i.value};return o[M]=i,o}(n);return i?.equal&&(o[M].equal=i.equal),o}function oS(n){const i=G(null);try{return n()}finally{G(i)}}const rS=new wi("",{providedIn:"root",factory:()=>Xn(sS)});let sS=(()=>{class n{static#e=this.\u0275prov=mo({token:n,providedIn:"root",factory:()=>new aS})}return n})();class aS{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Xn(Xt),this.taskId=null}scheduleEffect(i){if(this.enqueue(i),null===this.taskId){const o=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(o),this.taskId=null})}}enqueue(i){const o=i.creationZone;this.queues.has(o)||this.queues.set(o,new Set);const s=this.queues.get(o);s.has(i)||(this.queuedEffectCount++,s.add(i))}flush(){for(;this.queuedEffectCount>0;)for(const[i,o]of this.queues)null===i?this.flushQueue(o):i.run(()=>this.flushQueue(o))}flushQueue(i){for(const o of i)i.delete(o),this.queuedEffectCount--,o.run()}}class cS{constructor(i,o,s,l,f,y){this.scheduler=i,this.effectFn=o,this.creationZone=s,this.injector=f,this.watcher=function jt(n,i,o){const s=Object.create(fn);o&&(s.consumerAllowSignalWrites=!0),s.fn=n,s.schedule=i;const l=j=>{s.cleanupFn=j};return s.ref={notify:()=>ne(s),run:()=>{if(null===s.fn)return;if(function B(){return g}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(s.dirty=!1,s.hasRun&&!Oe(s))return;s.hasRun=!0;const j=J(s);try{s.cleanupFn(),s.cleanupFn=Vt,s.fn(l)}finally{be(s,j)}},cleanup:()=>s.cleanupFn(),destroy:()=>function y(j){(function f(j){return null===j.fn&&null===j.schedule})(j)||(he(j),j.cleanupFn(),j.fn=null,j.schedule=null,j.cleanupFn=Vt)}(s),[M]:s},s.ref}(D=>this.runEffect(D),()=>this.schedule(),y),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(i){try{this.effectFn(i)}catch(o){this.injector.get(ya,null,{optional:!0})?.handleError(o)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function h9(n,i){ka("NgSignals"),!i?.injector&&tl();const o=i?.injector??Xn(kr),s=!0!==i?.manualCleanup?o.get(d):null,l=new cS(o.get(rS),n,typeof Zone>"u"?null:Zone.current,s,o,i?.allowSignalWrites??!1),f=o.get(w_,null,{optional:!0});return f&&8&f._lView[Pi]?(f._lView[il]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function lS(n,i){const o=Hi(n),s=i.elementInjector||el();return new l4(o).create(s,i.projectableNodes,i.hostElement,i.environmentInjector)}function uS(n){const i=Hi(n);if(!i)return null;const o=new l4(i);return{get selector(){return o.selector},get type(){return o.componentType},get inputs(){return o.inputs},get outputs(){return o.outputs},get ngContentSelectors(){return o.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}},9417:(Rt,De,c)=>{c.d(De,{BC:()=>Wt,EL:()=>ce,J3:()=>ve,JD:()=>qn,MJ:()=>Ni,X1:()=>ts,YN:()=>Oo,YS:()=>sr,Yp:()=>sn,Zm:()=>I,cV:()=>pn,cb:()=>Ue,gE:()=>N,j4:()=>tn,k0:()=>Ie,kq:()=>A,l_:()=>Mt,mP:()=>V,me:()=>x,qT:()=>wn,vO:()=>bt,vS:()=>qi});var t=c(3953),r=c(177),g=c(2806),e=c(7468),M=c(1413),G=c(6354);let L=(()=>{class Ne{constructor(Ce,pt){this._renderer=Ce,this._elementRef=pt,this.onChange=Jt=>{},this.onTouched=()=>{}}setProperty(Ce,pt){this._renderer.setProperty(this._elementRef.nativeElement,Ce,pt)}registerOnTouched(Ce){this.onTouched=Ce}registerOnChange(Ce){this.onChange=Ce}setDisabledState(Ce){this.setProperty("disabled",Ce)}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ne})}return Ne})(),B=(()=>{class Ne extends L{static#e=this.\u0275fac=(()=>{let Ce;return function(Jt){return(Ce||(Ce=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,features:[t.Vt3]})}return Ne})();const A=new t.nKC(""),w={provide:A,useExisting:(0,t.Rfq)(()=>I),multi:!0};let I=(()=>{class Ne extends B{writeValue(Ce){this.setProperty("checked",Ce)}static#e=this.\u0275fac=(()=>{let Ce;return function(Jt){return(Ce||(Ce=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(pt,Jt){1&pt&&t.bIt("change",function(Qi){return Jt.onChange(Qi.target.checked)})("blur",function(){return Jt.onTouched()})},features:[t.Jv_([w]),t.Vt3]})}return Ne})();const F={provide:A,useExisting:(0,t.Rfq)(()=>x),multi:!0},V=new t.nKC("");let x=(()=>{class Ne extends L{constructor(Ce,pt,Jt){super(Ce,pt),this._compositionMode=Jt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function X(){const Ne=(0,r.QT)()?(0,r.QT)().getUserAgent():"";return/android (\d+)/.test(Ne.toLowerCase())}())}writeValue(Ce){this.setProperty("value",Ce??"")}_handleInput(Ce){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ce)}_compositionStart(){this._composing=!0}_compositionEnd(Ce){this._composing=!1,this._compositionMode&&this.onChange(Ce)}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(V,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(pt,Jt){1&pt&&t.bIt("input",function(Qi){return Jt._handleInput(Qi.target.value)})("blur",function(){return Jt.onTouched()})("compositionstart",function(){return Jt._compositionStart()})("compositionend",function(Qi){return Jt._compositionEnd(Qi.target.value)})},features:[t.Jv_([F]),t.Vt3]})}return Ne})();function ne(Ne){return null==Ne||("string"==typeof Ne||Array.isArray(Ne))&&0===Ne.length}function J(Ne){return null!=Ne&&"number"==typeof Ne.length}const be=new t.nKC(""),Oe=new t.nKC(""),he=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ie{static min(je){return function me(Ne){return je=>{if(ne(je.value)||ne(Ne))return null;const Ce=parseFloat(je.value);return!isNaN(Ce)&&Ce{if(ne(je.value)||ne(Ne))return null;const Ce=parseFloat(je.value);return!isNaN(Ce)&&Ce>Ne?{max:{max:Ne,actual:je.value}}:null}}(je)}static required(je){return H(je)}static requiredTrue(je){return function z(Ne){return!0===Ne.value?null:{required:!0}}(je)}static email(je){return function Z(Ne){return ne(Ne.value)||he.test(Ne.value)?null:{email:!0}}(je)}static minLength(je){return function pe(Ne){return je=>ne(je.value)||!J(je.value)?null:je.value.lengthJ(je.value)&&je.value.length>Ne?{maxlength:{requiredLength:Ne,actualLength:je.value.length}}:null}(je)}static pattern(je){return function S(Ne){if(!Ne)return R;let je,Ce;return"string"==typeof Ne?(Ce="","^"!==Ne.charAt(0)&&(Ce+="^"),Ce+=Ne,"$"!==Ne.charAt(Ne.length-1)&&(Ce+="$"),je=new RegExp(Ce)):(Ce=Ne.toString(),je=Ne),pt=>{if(ne(pt.value))return null;const Jt=pt.value;return je.test(Jt)?null:{pattern:{requiredPattern:Ce,actualValue:Jt}}}}(je)}static nullValidator(je){return null}static compose(je){return Le(je)}static composeAsync(je){return xt(je)}}function H(Ne){return ne(Ne.value)?{required:!0}:null}function R(Ne){return null}function Y(Ne){return null!=Ne}function se(Ne){return(0,t.jNT)(Ne)?(0,g.H)(Ne):Ne}function Be(Ne){let je={};return Ne.forEach(Ce=>{je=null!=Ce?{...je,...Ce}:je}),0===Object.keys(je).length?null:je}function Pt(Ne,je){return je.map(Ce=>Ce(Ne))}function wt(Ne){return Ne.map(je=>function vt(Ne){return!Ne.validate}(je)?je:Ce=>je.validate(Ce))}function Le(Ne){if(!Ne)return null;const je=Ne.filter(Y);return 0==je.length?null:function(Ce){return Be(Pt(Ce,je))}}function zt(Ne){return null!=Ne?Le(wt(Ne)):null}function xt(Ne){if(!Ne)return null;const je=Ne.filter(Y);return 0==je.length?null:function(Ce){const pt=Pt(Ce,je).map(se);return(0,e.p)(pt).pipe((0,G.T)(Be))}}function st(Ne){return null!=Ne?xt(wt(Ne)):null}function Ct(Ne,je){return null===Ne?[je]:Array.isArray(Ne)?[...Ne,je]:[Ne,je]}function It(Ne){return Ne._rawValidators}function Tt(Ne){return Ne._rawAsyncValidators}function en(Ne){return Ne?Array.isArray(Ne)?Ne:[Ne]:[]}function jt(Ne,je){return Array.isArray(Ne)?Ne.includes(je):Ne===je}function Vt(Ne,je){const Ce=en(je);return en(Ne).forEach(Jt=>{jt(Ce,Jt)||Ce.push(Jt)}),Ce}function fn(Ne,je){return en(je).filter(Ce=>!jt(Ne,Ce))}class Hn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(je){this._rawValidators=je||[],this._composedValidatorFn=zt(this._rawValidators)}_setAsyncValidators(je){this._rawAsyncValidators=je||[],this._composedAsyncValidatorFn=st(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(je){this._onDestroyCallbacks.push(je)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(je=>je()),this._onDestroyCallbacks=[]}reset(je=void 0){this.control&&this.control.reset(je)}hasError(je,Ce){return!!this.control&&this.control.hasError(je,Ce)}getError(je,Ce){return this.control?this.control.getError(je,Ce):null}}class zn extends Hn{get formDirective(){return null}get path(){return null}}class bt extends Hn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class At{constructor(je){this._cd=je}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Wt=(()=>{class Ne extends At{constructor(Ce){super(Ce)}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(bt,2))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(pt,Jt){2&pt&&t.AVh("ng-untouched",Jt.isUntouched)("ng-touched",Jt.isTouched)("ng-pristine",Jt.isPristine)("ng-dirty",Jt.isDirty)("ng-valid",Jt.isValid)("ng-invalid",Jt.isInvalid)("ng-pending",Jt.isPending)},features:[t.Vt3]})}return Ne})(),Ue=(()=>{class Ne extends At{constructor(Ce){super(Ce)}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(zn,10))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(pt,Jt){2&pt&&t.AVh("ng-untouched",Jt.isUntouched)("ng-touched",Jt.isTouched)("ng-pristine",Jt.isPristine)("ng-dirty",Jt.isDirty)("ng-valid",Jt.isValid)("ng-invalid",Jt.isInvalid)("ng-pending",Jt.isPending)("ng-submitted",Jt.isSubmitted)},features:[t.Vt3]})}return Ne})();const Ye="VALID",ue="INVALID",te="PENDING",q="DISABLED";class Xe{}class ht extends Xe{constructor(je,Ce){super(),this.value=je,this.source=Ce}}class at extends Xe{constructor(je,Ce){super(),this.pristine=je,this.source=Ce}}class St extends Xe{constructor(je,Ce){super(),this.touched=je,this.source=Ce}}class Qe extends Xe{constructor(je,Ce){super(),this.status=je,this.source=Ce}}class Ee extends Xe{constructor(je){super(),this.source=je}}class Je extends Xe{constructor(je){super(),this.source=je}}function re(Ne){return(Pe(Ne)?Ne.validators:Ne)||null}function gt(Ne,je){return(Pe(je)?je.asyncValidators:Ne)||null}function Pe(Ne){return null!=Ne&&!Array.isArray(Ne)&&"object"==typeof Ne}function Re(Ne,je,Ce){const pt=Ne.controls;if(!(je?Object.keys(pt):pt).length)throw new t.wOt(1e3,"");if(!pt[Ce])throw new t.wOt(1001,"")}function $(Ne,je,Ce){Ne._forEachChild((pt,Jt)=>{if(void 0===Ce[Jt])throw new t.wOt(1002,"")})}class ce{constructor(je,Ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,t.EWP)(()=>this.statusReactive()),this.statusReactive=(0,t.vPA)(void 0),this._pristine=(0,t.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,t.vPA)(!0),this._touched=(0,t.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,t.vPA)(!1),this._events=new M.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(je),this._assignAsyncValidators(Ce)}get validator(){return this._composedValidatorFn}set validator(je){this._rawValidators=this._composedValidatorFn=je}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(je){this._rawAsyncValidators=this._composedAsyncValidatorFn=je}get parent(){return this._parent}get status(){return(0,t.O8t)(this.statusReactive)}set status(je){(0,t.O8t)(()=>this.statusReactive.set(je))}get valid(){return this.status===Ye}get invalid(){return this.status===ue}get pending(){return this.status==te}get disabled(){return this.status===q}get enabled(){return this.status!==q}get pristine(){return(0,t.O8t)(this.pristineReactive)}set pristine(je){(0,t.O8t)(()=>this.pristineReactive.set(je))}get dirty(){return!this.pristine}get touched(){return(0,t.O8t)(this.touchedReactive)}set touched(je){(0,t.O8t)(()=>this.touchedReactive.set(je))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(je){this._assignValidators(je)}setAsyncValidators(je){this._assignAsyncValidators(je)}addValidators(je){this.setValidators(Vt(je,this._rawValidators))}addAsyncValidators(je){this.setAsyncValidators(Vt(je,this._rawAsyncValidators))}removeValidators(je){this.setValidators(fn(je,this._rawValidators))}removeAsyncValidators(je){this.setAsyncValidators(fn(je,this._rawAsyncValidators))}hasValidator(je){return jt(this._rawValidators,je)}hasAsyncValidator(je){return jt(this._rawAsyncValidators,je)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(je={}){const Ce=!1===this.touched;this.touched=!0;const pt=je.sourceControl??this;this._parent&&!je.onlySelf&&this._parent.markAsTouched({...je,sourceControl:pt}),Ce&&!1!==je.emitEvent&&this._events.next(new St(!0,pt))}markAllAsTouched(je={}){this.markAsTouched({onlySelf:!0,emitEvent:je.emitEvent,sourceControl:this}),this._forEachChild(Ce=>Ce.markAllAsTouched(je))}markAsUntouched(je={}){const Ce=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const pt=je.sourceControl??this;this._forEachChild(Jt=>{Jt.markAsUntouched({onlySelf:!0,emitEvent:je.emitEvent,sourceControl:pt})}),this._parent&&!je.onlySelf&&this._parent._updateTouched(je,pt),Ce&&!1!==je.emitEvent&&this._events.next(new St(!1,pt))}markAsDirty(je={}){const Ce=!0===this.pristine;this.pristine=!1;const pt=je.sourceControl??this;this._parent&&!je.onlySelf&&this._parent.markAsDirty({...je,sourceControl:pt}),Ce&&!1!==je.emitEvent&&this._events.next(new at(!1,pt))}markAsPristine(je={}){const Ce=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const pt=je.sourceControl??this;this._forEachChild(Jt=>{Jt.markAsPristine({onlySelf:!0,emitEvent:je.emitEvent})}),this._parent&&!je.onlySelf&&this._parent._updatePristine(je,pt),Ce&&!1!==je.emitEvent&&this._events.next(new at(!0,pt))}markAsPending(je={}){this.status=te;const Ce=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new Qe(this.status,Ce)),this.statusChanges.emit(this.status)),this._parent&&!je.onlySelf&&this._parent.markAsPending({...je,sourceControl:Ce})}disable(je={}){const Ce=this._parentMarkedDirty(je.onlySelf);this.status=q,this.errors=null,this._forEachChild(Jt=>{Jt.disable({...je,onlySelf:!0})}),this._updateValue();const pt=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new ht(this.value,pt)),this._events.next(new Qe(this.status,pt)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...je,skipPristineCheck:Ce},this),this._onDisabledChange.forEach(Jt=>Jt(!0))}enable(je={}){const Ce=this._parentMarkedDirty(je.onlySelf);this.status=Ye,this._forEachChild(pt=>{pt.enable({...je,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:je.emitEvent}),this._updateAncestors({...je,skipPristineCheck:Ce},this),this._onDisabledChange.forEach(pt=>pt(!1))}_updateAncestors(je,Ce){this._parent&&!je.onlySelf&&(this._parent.updateValueAndValidity(je),je.skipPristineCheck||this._parent._updatePristine({},Ce),this._parent._updateTouched({},Ce))}setParent(je){this._parent=je}getRawValue(){return this.value}updateValueAndValidity(je={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const pt=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ye||this.status===te)&&this._runAsyncValidator(pt,je.emitEvent)}const Ce=je.sourceControl??this;!1!==je.emitEvent&&(this._events.next(new ht(this.value,Ce)),this._events.next(new Qe(this.status,Ce)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!je.onlySelf&&this._parent.updateValueAndValidity({...je,sourceControl:Ce})}_updateTreeValidity(je={emitEvent:!0}){this._forEachChild(Ce=>Ce._updateTreeValidity(je)),this.updateValueAndValidity({onlySelf:!0,emitEvent:je.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?q:Ye}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(je,Ce){if(this.asyncValidator){this.status=te,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Ce};const pt=se(this.asyncValidator(this));this._asyncValidationSubscription=pt.subscribe(Jt=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(Jt,{emitEvent:Ce,shouldHaveEmitted:je})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const je=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,je}return!1}setErrors(je,Ce={}){this.errors=je,this._updateControlsErrors(!1!==Ce.emitEvent,this,Ce.shouldHaveEmitted)}get(je){let Ce=je;return null==Ce||(Array.isArray(Ce)||(Ce=Ce.split(".")),0===Ce.length)?null:Ce.reduce((pt,Jt)=>pt&&pt._find(Jt),this)}getError(je,Ce){const pt=Ce?this.get(Ce):this;return pt&&pt.errors?pt.errors[je]:null}hasError(je,Ce){return!!this.getError(je,Ce)}get root(){let je=this;for(;je._parent;)je=je._parent;return je}_updateControlsErrors(je,Ce,pt){this.status=this._calculateStatus(),je&&this.statusChanges.emit(this.status),(je||pt)&&this._events.next(new Qe(this.status,Ce)),this._parent&&this._parent._updateControlsErrors(je,Ce,pt)}_initObservables(){this.valueChanges=new t.bkB,this.statusChanges=new t.bkB}_calculateStatus(){return this._allControlsDisabled()?q:this.errors?ue:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(te)?te:this._anyControlsHaveStatus(ue)?ue:Ye}_anyControlsHaveStatus(je){return this._anyControls(Ce=>Ce.status===je)}_anyControlsDirty(){return this._anyControls(je=>je.dirty)}_anyControlsTouched(){return this._anyControls(je=>je.touched)}_updatePristine(je,Ce){const pt=!this._anyControlsDirty(),Jt=this.pristine!==pt;this.pristine=pt,this._parent&&!je.onlySelf&&this._parent._updatePristine(je,Ce),Jt&&this._events.next(new at(this.pristine,Ce))}_updateTouched(je={},Ce){this.touched=this._anyControlsTouched(),this._events.next(new St(this.touched,Ce)),this._parent&&!je.onlySelf&&this._parent._updateTouched(je,Ce)}_registerOnCollectionChange(je){this._onCollectionChange=je}_setUpdateStrategy(je){Pe(je)&&null!=je.updateOn&&(this._updateOn=je.updateOn)}_parentMarkedDirty(je){return!je&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(je){return null}_assignValidators(je){this._rawValidators=Array.isArray(je)?je.slice():je,this._composedValidatorFn=function ze(Ne){return Array.isArray(Ne)?zt(Ne):Ne||null}(this._rawValidators)}_assignAsyncValidators(je){this._rawAsyncValidators=Array.isArray(je)?je.slice():je,this._composedAsyncValidatorFn=function Ke(Ne){return Array.isArray(Ne)?st(Ne):Ne||null}(this._rawAsyncValidators)}}class N extends ce{constructor(je,Ce,pt){super(re(Ce),gt(pt,Ce)),this.controls=je,this._initObservables(),this._setUpdateStrategy(Ce),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(je,Ce){return this.controls[je]?this.controls[je]:(this.controls[je]=Ce,Ce.setParent(this),Ce._registerOnCollectionChange(this._onCollectionChange),Ce)}addControl(je,Ce,pt={}){this.registerControl(je,Ce),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}removeControl(je,Ce={}){this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),delete this.controls[je],this.updateValueAndValidity({emitEvent:Ce.emitEvent}),this._onCollectionChange()}setControl(je,Ce,pt={}){this.controls[je]&&this.controls[je]._registerOnCollectionChange(()=>{}),delete this.controls[je],Ce&&this.registerControl(je,Ce),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}contains(je){return this.controls.hasOwnProperty(je)&&this.controls[je].enabled}setValue(je,Ce={}){$(this,0,je),Object.keys(je).forEach(pt=>{Re(this,!0,pt),this.controls[pt].setValue(je[pt],{onlySelf:!0,emitEvent:Ce.emitEvent})}),this.updateValueAndValidity(Ce)}patchValue(je,Ce={}){null!=je&&(Object.keys(je).forEach(pt=>{const Jt=this.controls[pt];Jt&&Jt.patchValue(je[pt],{onlySelf:!0,emitEvent:Ce.emitEvent})}),this.updateValueAndValidity(Ce))}reset(je={},Ce={}){this._forEachChild((pt,Jt)=>{pt.reset(je?je[Jt]:null,{onlySelf:!0,emitEvent:Ce.emitEvent})}),this._updatePristine(Ce,this),this._updateTouched(Ce,this),this.updateValueAndValidity(Ce)}getRawValue(){return this._reduceChildren({},(je,Ce,pt)=>(je[pt]=Ce.getRawValue(),je))}_syncPendingControls(){let je=this._reduceChildren(!1,(Ce,pt)=>!!pt._syncPendingControls()||Ce);return je&&this.updateValueAndValidity({onlySelf:!0}),je}_forEachChild(je){Object.keys(this.controls).forEach(Ce=>{const pt=this.controls[Ce];pt&&je(pt,Ce)})}_setUpControls(){this._forEachChild(je=>{je.setParent(this),je._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(je){for(const[Ce,pt]of Object.entries(this.controls))if(this.contains(Ce)&&je(pt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ce,pt,Jt)=>((pt.enabled||this.disabled)&&(Ce[Jt]=pt.value),Ce))}_reduceChildren(je,Ce){let pt=je;return this._forEachChild((Jt,Ii)=>{pt=Ce(pt,Jt,Ii)}),pt}_allControlsDisabled(){for(const je of Object.keys(this.controls))if(this.controls[je].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(je){return this.controls.hasOwnProperty(je)?this.controls[je]:null}}const ve=N,qe=new t.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>rt}),rt="always";function Ft(Ne,je){return[...je.path,Ne]}function rn(Ne,je,Ce=rt){Gn(Ne,je),je.valueAccessor.writeValue(Ne.value),(Ne.disabled||"always"===Ce)&&je.valueAccessor.setDisabledState?.(Ne.disabled),function Oi(Ne,je){je.valueAccessor.registerOnChange(Ce=>{Ne._pendingValue=Ce,Ne._pendingChange=!0,Ne._pendingDirty=!0,"change"===Ne.updateOn&&Zi(Ne,je)})}(Ne,je),function Bo(Ne,je){const Ce=(pt,Jt)=>{je.valueAccessor.writeValue(pt),Jt&&je.viewToModelUpdate(pt)};Ne.registerOnChange(Ce),je._registerOnDestroy(()=>{Ne._unregisterOnChange(Ce)})}(Ne,je),function lo(Ne,je){je.valueAccessor.registerOnTouched(()=>{Ne._pendingTouched=!0,"blur"===Ne.updateOn&&Ne._pendingChange&&Zi(Ne,je),"submit"!==Ne.updateOn&&Ne.markAsTouched()})}(Ne,je),function jn(Ne,je){if(je.valueAccessor.setDisabledState){const Ce=pt=>{je.valueAccessor.setDisabledState(pt)};Ne.registerOnDisabledChange(Ce),je._registerOnDestroy(()=>{Ne._unregisterOnDisabledChange(Ce)})}}(Ne,je)}function Cn(Ne,je,Ce=!0){const pt=()=>{};je.valueAccessor&&(je.valueAccessor.registerOnChange(pt),je.valueAccessor.registerOnTouched(pt)),Ti(Ne,je),Ne&&(je._invokeOnDestroyCallbacks(),Ne._registerOnCollectionChange(()=>{}))}function Zn(Ne,je){Ne.forEach(Ce=>{Ce.registerOnValidatorChange&&Ce.registerOnValidatorChange(je)})}function Gn(Ne,je){const Ce=It(Ne);null!==je.validator?Ne.setValidators(Ct(Ce,je.validator)):"function"==typeof Ce&&Ne.setValidators([Ce]);const pt=Tt(Ne);null!==je.asyncValidator?Ne.setAsyncValidators(Ct(pt,je.asyncValidator)):"function"==typeof pt&&Ne.setAsyncValidators([pt]);const Jt=()=>Ne.updateValueAndValidity();Zn(je._rawValidators,Jt),Zn(je._rawAsyncValidators,Jt)}function Ti(Ne,je){let Ce=!1;if(null!==Ne){if(null!==je.validator){const Jt=It(Ne);if(Array.isArray(Jt)&&Jt.length>0){const Ii=Jt.filter(Qi=>Qi!==je.validator);Ii.length!==Jt.length&&(Ce=!0,Ne.setValidators(Ii))}}if(null!==je.asyncValidator){const Jt=Tt(Ne);if(Array.isArray(Jt)&&Jt.length>0){const Ii=Jt.filter(Qi=>Qi!==je.asyncValidator);Ii.length!==Jt.length&&(Ce=!0,Ne.setAsyncValidators(Ii))}}}const pt=()=>{};return Zn(je._rawValidators,pt),Zn(je._rawAsyncValidators,pt),Ce}function Zi(Ne,je){Ne._pendingDirty&&Ne.markAsDirty(),Ne.setValue(Ne._pendingValue,{emitModelToViewChange:!1}),je.viewToModelUpdate(Ne._pendingValue),Ne._pendingChange=!1}function bo(Ne,je){Gn(Ne,je)}function hn(Ne,je){if(!Ne.hasOwnProperty("model"))return!1;const Ce=Ne.model;return!!Ce.isFirstChange()||!Object.is(je,Ce.currentValue)}function En(Ne,je){Ne._syncPendingControls(),je.forEach(Ce=>{const pt=Ce.control;"submit"===pt.updateOn&&pt._pendingChange&&(Ce.viewToModelUpdate(pt._pendingValue),pt._pendingChange=!1)})}function Kn(Ne,je){if(!je)return null;let Ce,pt,Jt;return Array.isArray(je),je.forEach(Ii=>{Ii.constructor===x?Ce=Ii:function Yn(Ne){return Object.getPrototypeOf(Ne.constructor)===B}(Ii)?pt=Ii:Jt=Ii}),Jt||pt||Ce||null}const ro={provide:zn,useExisting:(0,t.Rfq)(()=>pn)},vi=Promise.resolve();let pn=(()=>{class Ne extends zn{get submitted(){return(0,t.O8t)(this.submittedReactive)}constructor(Ce,pt,Jt){super(),this.callSetDisabledState=Jt,this._submitted=(0,t.EWP)(()=>this.submittedReactive()),this.submittedReactive=(0,t.vPA)(!1),this._directives=new Set,this.ngSubmit=new t.bkB,this.form=new N({},zt(Ce),st(pt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ce){vi.then(()=>{const pt=this._findContainer(Ce.path);Ce.control=pt.registerControl(Ce.name,Ce.control),rn(Ce.control,Ce,this.callSetDisabledState),Ce.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ce)})}getControl(Ce){return this.form.get(Ce.path)}removeControl(Ce){vi.then(()=>{const pt=this._findContainer(Ce.path);pt&&pt.removeControl(Ce.name),this._directives.delete(Ce)})}addFormGroup(Ce){vi.then(()=>{const pt=this._findContainer(Ce.path),Jt=new N({});bo(Jt,Ce),pt.registerControl(Ce.name,Jt),Jt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ce){vi.then(()=>{const pt=this._findContainer(Ce.path);pt&&pt.removeControl(Ce.name)})}getFormGroup(Ce){return this.form.get(Ce.path)}updateModel(Ce,pt){vi.then(()=>{this.form.get(Ce.path).setValue(pt)})}setValue(Ce){this.control.setValue(Ce)}onSubmit(Ce){return this.submittedReactive.set(!0),En(this.form,this._directives),this.ngSubmit.emit(Ce),"dialog"===Ce?.target?.method}onReset(){this.resetForm()}resetForm(Ce=void 0){this.form.reset(Ce),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ce){return Ce.pop(),Ce.length?this.form.get(Ce):this.form}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(be,10),t.rXU(Oe,10),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(pt,Jt){1&pt&&t.bIt("submit",function(Qi){return Jt.onSubmit(Qi)})("reset",function(){return Jt.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([ro]),t.Vt3]})}return Ne})();function $i(Ne,je){const Ce=Ne.indexOf(je);Ce>-1&&Ne.splice(Ce,1)}function zi(Ne){return"object"==typeof Ne&&null!==Ne&&2===Object.keys(Ne).length&&"value"in Ne&&"disabled"in Ne}const Ni=class extends ce{constructor(je=null,Ce,pt){super(re(Ce),gt(pt,Ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(je),this._setUpdateStrategy(Ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pe(Ce)&&(Ce.nonNullable||Ce.initialValueIsDefault)&&(this.defaultValue=zi(je)?je.value:je)}setValue(je,Ce={}){this.value=this._pendingValue=je,this._onChange.length&&!1!==Ce.emitModelToViewChange&&this._onChange.forEach(pt=>pt(this.value,!1!==Ce.emitViewToModelChange)),this.updateValueAndValidity(Ce)}patchValue(je,Ce={}){this.setValue(je,Ce)}reset(je=this.defaultValue,Ce={}){this._applyFormState(je),this.markAsPristine(Ce),this.markAsUntouched(Ce),this.setValue(this.value,Ce),this._pendingChange=!1}_updateValue(){}_anyControls(je){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(je){this._onChange.push(je)}_unregisterOnChange(je){$i(this._onChange,je)}registerOnDisabledChange(je){this._onDisabledChange.push(je)}_unregisterOnDisabledChange(je){$i(this._onDisabledChange,je)}_forEachChild(je){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(je){zi(je)?(this.value=this._pendingValue=je.value,je.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=je}},jo={provide:bt,useExisting:(0,t.Rfq)(()=>qi)},Lr=Promise.resolve();let qi=(()=>{class Ne extends bt{constructor(Ce,pt,Jt,Ii,Qi,xo){super(),this._changeDetectorRef=Qi,this.callSetDisabledState=xo,this.control=new Ni,this._registered=!1,this.name="",this.update=new t.bkB,this._parent=Ce,this._setValidators(pt),this._setAsyncValidators(Jt),this.valueAccessor=Kn(0,Ii)}ngOnChanges(Ce){if(this._checkForErrors(),!this._registered||"name"in Ce){if(this._registered&&(this._checkName(),this.formDirective)){const pt=Ce.name.previousValue;this.formDirective.removeControl({name:pt,path:this._getPath(pt)})}this._setUpControl()}"isDisabled"in Ce&&this._updateDisabled(Ce),hn(Ce,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ce){this.viewModel=Ce,this.update.emit(Ce)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){rn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ce){Lr.then(()=>{this.control.setValue(Ce,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ce){const pt=Ce.isDisabled.currentValue,Jt=0!==pt&&(0,t.L39)(pt);Lr.then(()=>{Jt&&!this.control.disabled?this.control.disable():!Jt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ce){return this._parent?Ft(Ce,this._parent):[Ce]}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(zn,9),t.rXU(be,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(t.gRc,8),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.Jv_([jo]),t.Vt3,t.OA$]})}return Ne})(),wn=(()=>{class Ne{static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Ne})();const Ve=new t.nKC(""),tt={provide:bt,useExisting:(0,t.Rfq)(()=>Mt)};let Mt=(()=>{class Ne extends bt{set isDisabled(Ce){}static#e=this._ngModelWarningSentOnce=!1;constructor(Ce,pt,Jt,Ii,Qi){super(),this._ngModelWarningConfig=Ii,this.callSetDisabledState=Qi,this.update=new t.bkB,this._ngModelWarningSent=!1,this._setValidators(Ce),this._setAsyncValidators(pt),this.valueAccessor=Kn(0,Jt)}ngOnChanges(Ce){if(this._isControlChanged(Ce)){const pt=Ce.form.previousValue;pt&&Cn(pt,this,!1),rn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}hn(Ce,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Cn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ce){this.viewModel=Ce,this.update.emit(Ce)}_isControlChanged(Ce){return Ce.hasOwnProperty("form")}static#t=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(be,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(Ve,8),t.rXU(qe,8))};static#n=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.Jv_([tt]),t.Vt3,t.OA$]})}return Ne})();const Yt={provide:zn,useExisting:(0,t.Rfq)(()=>tn)};let tn=(()=>{class Ne extends zn{get submitted(){return(0,t.O8t)(this._submittedReactive)}set submitted(Ce){this._submittedReactive.set(Ce)}constructor(Ce,pt,Jt){super(),this.callSetDisabledState=Jt,this._submitted=(0,t.EWP)(()=>this._submittedReactive()),this._submittedReactive=(0,t.vPA)(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.bkB,this._setValidators(Ce),this._setAsyncValidators(pt)}ngOnChanges(Ce){this._checkFormPresent(),Ce.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ti(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ce){const pt=this.form.get(Ce.path);return rn(pt,Ce,this.callSetDisabledState),pt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ce),pt}getControl(Ce){return this.form.get(Ce.path)}removeControl(Ce){Cn(Ce.control||null,Ce,!1),function oi(Ne,je){const Ce=Ne.indexOf(je);Ce>-1&&Ne.splice(Ce,1)}(this.directives,Ce)}addFormGroup(Ce){this._setUpFormContainer(Ce)}removeFormGroup(Ce){this._cleanUpFormContainer(Ce)}getFormGroup(Ce){return this.form.get(Ce.path)}addFormArray(Ce){this._setUpFormContainer(Ce)}removeFormArray(Ce){this._cleanUpFormContainer(Ce)}getFormArray(Ce){return this.form.get(Ce.path)}updateModel(Ce,pt){this.form.get(Ce.path).setValue(pt)}onSubmit(Ce){return this._submittedReactive.set(!0),En(this.form,this.directives),this.ngSubmit.emit(Ce),this.form._events.next(new Ee(this.control)),"dialog"===Ce?.target?.method}onReset(){this.resetForm()}resetForm(Ce=void 0){this.form.reset(Ce),this._submittedReactive.set(!1),this.form._events.next(new Je(this.form))}_updateDomValue(){this.directives.forEach(Ce=>{const pt=Ce.control,Jt=this.form.get(Ce.path);pt!==Jt&&(Cn(pt||null,Ce),(Ne=>Ne instanceof Ni)(Jt)&&(rn(Jt,Ce,this.callSetDisabledState),Ce.control=Jt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ce){const pt=this.form.get(Ce.path);bo(pt,Ce),pt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ce){if(this.form){const pt=this.form.get(Ce.path);pt&&function zr(Ne,je){return Ti(Ne,je)}(pt,Ce)&&pt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Gn(this.form,this),this._oldForm&&Ti(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(be,10),t.rXU(Oe,10),t.rXU(qe,8))};static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formGroup",""]],hostBindings:function(pt,Jt){1&pt&&t.bIt("submit",function(Qi){return Jt.onSubmit(Qi)})("reset",function(){return Jt.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([Yt]),t.Vt3,t.OA$]})}return Ne})();const Qn={provide:bt,useExisting:(0,t.Rfq)(()=>qn)};let qn=(()=>{class Ne extends bt{set isDisabled(Ce){}static#e=this._ngModelWarningSentOnce=!1;constructor(Ce,pt,Jt,Ii,Qi){super(),this._ngModelWarningConfig=Qi,this._added=!1,this.name=null,this.update=new t.bkB,this._ngModelWarningSent=!1,this._parent=Ce,this._setValidators(pt),this._setAsyncValidators(Jt),this.valueAccessor=Kn(0,Ii)}ngOnChanges(Ce){this._added||this._setUpControl(),hn(Ce,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ce){this.viewModel=Ce,this.update.emit(Ce)}get path(){return Ft(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(pt){return new(pt||Ne)(t.rXU(zn,13),t.rXU(be,10),t.rXU(Oe,10),t.rXU(A,10),t.rXU(Ve,8))};static#n=this.\u0275dir=t.FsC({type:Ne,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.Jv_([Qn]),t.Vt3,t.OA$]})}return Ne})(),ir=(()=>{class Ne{constructor(){this._validator=R}ngOnChanges(Ce){if(this.inputName in Ce){const pt=this.normalizeInput(Ce[this.inputName].currentValue);this._enabled=this.enabled(pt),this._validator=this._enabled?this.createValidator(pt):R,this._onChange&&this._onChange()}}validate(Ce){return this._validator(Ce)}registerOnValidatorChange(Ce){this._onChange=Ce}enabled(Ce){return null!=Ce}static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275dir=t.FsC({type:Ne,features:[t.OA$]})}return Ne})();const _r={provide:be,useExisting:(0,t.Rfq)(()=>sr),multi:!0};let sr=(()=>{class Ne extends ir{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.L39,this.createValidator=Ce=>H}enabled(Ce){return Ce}static#e=this.\u0275fac=(()=>{let Ce;return function(Jt){return(Ce||(Ce=t.xGo(Ne)))(Jt||Ne)}})();static#t=this.\u0275dir=t.FsC({type:Ne,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(pt,Jt){2&pt&&t.BMQ("required",Jt._enabled?"":null)},inputs:{required:"required"},features:[t.Jv_([_r]),t.Vt3]})}return Ne})(),ct=(()=>{class Ne{static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({})}return Ne})();class sn extends ce{constructor(je,Ce,pt){super(re(Ce),gt(pt,Ce)),this.controls=je,this._initObservables(),this._setUpdateStrategy(Ce),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(je){return this.controls[this._adjustIndex(je)]}push(je,Ce={}){this.controls.push(je),this._registerControl(je),this.updateValueAndValidity({emitEvent:Ce.emitEvent}),this._onCollectionChange()}insert(je,Ce,pt={}){this.controls.splice(je,0,Ce),this._registerControl(Ce),this.updateValueAndValidity({emitEvent:pt.emitEvent})}removeAt(je,Ce={}){let pt=this._adjustIndex(je);pt<0&&(pt=0),this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),this.controls.splice(pt,1),this.updateValueAndValidity({emitEvent:Ce.emitEvent})}setControl(je,Ce,pt={}){let Jt=this._adjustIndex(je);Jt<0&&(Jt=0),this.controls[Jt]&&this.controls[Jt]._registerOnCollectionChange(()=>{}),this.controls.splice(Jt,1),Ce&&(this.controls.splice(Jt,0,Ce),this._registerControl(Ce)),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(je,Ce={}){$(this,0,je),je.forEach((pt,Jt)=>{Re(this,!1,Jt),this.at(Jt).setValue(pt,{onlySelf:!0,emitEvent:Ce.emitEvent})}),this.updateValueAndValidity(Ce)}patchValue(je,Ce={}){null!=je&&(je.forEach((pt,Jt)=>{this.at(Jt)&&this.at(Jt).patchValue(pt,{onlySelf:!0,emitEvent:Ce.emitEvent})}),this.updateValueAndValidity(Ce))}reset(je=[],Ce={}){this._forEachChild((pt,Jt)=>{pt.reset(je[Jt],{onlySelf:!0,emitEvent:Ce.emitEvent})}),this._updatePristine(Ce,this),this._updateTouched(Ce,this),this.updateValueAndValidity(Ce)}getRawValue(){return this.controls.map(je=>je.getRawValue())}clear(je={}){this.controls.length<1||(this._forEachChild(Ce=>Ce._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:je.emitEvent}))}_adjustIndex(je){return je<0?je+this.length:je}_syncPendingControls(){let je=this.controls.reduce((Ce,pt)=>!!pt._syncPendingControls()||Ce,!1);return je&&this.updateValueAndValidity({onlySelf:!0}),je}_forEachChild(je){this.controls.forEach((Ce,pt)=>{je(Ce,pt)})}_updateValue(){this.value=this.controls.filter(je=>je.enabled||this.disabled).map(je=>je.value)}_anyControls(je){return this.controls.some(Ce=>Ce.enabled&&je(Ce))}_setUpControls(){this._forEachChild(je=>this._registerControl(je))}_allControlsDisabled(){for(const je of this.controls)if(je.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(je){je.setParent(this),je._registerOnCollectionChange(this._onCollectionChange)}_find(je){return this.at(je)??null}}let Oo=(()=>{class Ne{static withConfig(Ce){return{ngModule:Ne,providers:[{provide:qe,useValue:Ce.callSetDisabledState??rt}]}}static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({imports:[ct]})}return Ne})(),ts=(()=>{class Ne{static withConfig(Ce){return{ngModule:Ne,providers:[{provide:Ve,useValue:Ce.warnOnNgModelWithFormControl??"always"},{provide:qe,useValue:Ce.callSetDisabledState??rt}]}}static#e=this.\u0275fac=function(pt){return new(pt||Ne)};static#t=this.\u0275mod=t.$C({type:Ne});static#n=this.\u0275inj=t.G2t({imports:[ct]})}return Ne})()},345:(Rt,De,c)=>{c.d(De,{B7:()=>z,Bb:()=>At,W8:()=>Et,hE:()=>Wt,sG:()=>fn,up:()=>Un});var t=c(177),r=c(3953);class g extends t.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class e extends g{static makeCurrent(){(0,t.ZD)(new e)}onAndCancel(St,Qe,Ee){return St.addEventListener(Qe,Ee),()=>{St.removeEventListener(Qe,Ee)}}dispatchEvent(St,Qe){St.dispatchEvent(Qe)}remove(St){St.parentNode&&St.parentNode.removeChild(St)}createElement(St,Qe){return(Qe=Qe||this.getDefaultDocument()).createElement(St)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(St){return St.nodeType===Node.ELEMENT_NODE}isShadowRoot(St){return St instanceof DocumentFragment}getGlobalEventTarget(St,Qe){return"window"===Qe?window:"document"===Qe?St:"body"===Qe?St.body:null}getBaseHref(St){const Qe=function G(){return M=M||document.querySelector("base"),M?M.getAttribute("href"):null}();return null==Qe?null:function L(at){return new URL(at,document.baseURI).pathname}(Qe)}resetBaseElement(){M=null}getUserAgent(){return window.navigator.userAgent}getCookie(St){return(0,t._b)(document.cookie,St)}}let M=null,A=(()=>{class at{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Ee){return new(Ee||at)};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();const w=new r.nKC("");let I=(()=>{class at{constructor(Qe,Ee){this._zone=Ee,this._eventNameToPlugin=new Map,Qe.forEach(Je=>{Je.manager=this}),this._plugins=Qe.slice().reverse()}addEventListener(Qe,Ee,Je){return this._findPluginFor(Ee).addEventListener(Qe,Ee,Je)}getZone(){return this._zone}_findPluginFor(Qe){let Ee=this._eventNameToPlugin.get(Qe);if(Ee)return Ee;if(Ee=this._plugins.find(re=>re.supports(Qe)),!Ee)throw new r.wOt(5101,!1);return this._eventNameToPlugin.set(Qe,Ee),Ee}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(w),r.KVO(r.SKi))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();class F{constructor(St){this._doc=St}}const X="ng-app-id";let V=(()=>{class at{constructor(Qe,Ee,Je,re={}){this.doc=Qe,this.appId=Ee,this.nonce=Je,this.platformId=re,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,t.Vy)(re),this.resetHostNodes()}addStyles(Qe){for(const Ee of Qe)1===this.changeUsageCount(Ee,1)&&this.onStyleAdded(Ee)}removeStyles(Qe){for(const Ee of Qe)this.changeUsageCount(Ee,-1)<=0&&this.onStyleRemoved(Ee)}ngOnDestroy(){const Qe=this.styleNodesInDOM;Qe&&(Qe.forEach(Ee=>Ee.remove()),Qe.clear());for(const Ee of this.getAllStyles())this.onStyleRemoved(Ee);this.resetHostNodes()}addHost(Qe){this.hostNodes.add(Qe);for(const Ee of this.getAllStyles())this.addStyleToHost(Qe,Ee)}removeHost(Qe){this.hostNodes.delete(Qe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Qe){for(const Ee of this.hostNodes)this.addStyleToHost(Ee,Qe)}onStyleRemoved(Qe){const Ee=this.styleRef;Ee.get(Qe)?.elements?.forEach(Je=>Je.remove()),Ee.delete(Qe)}collectServerRenderedStyles(){const Qe=this.doc.head?.querySelectorAll(`style[${X}="${this.appId}"]`);if(Qe?.length){const Ee=new Map;return Qe.forEach(Je=>{null!=Je.textContent&&Ee.set(Je.textContent,Je)}),Ee}return null}changeUsageCount(Qe,Ee){const Je=this.styleRef;if(Je.has(Qe)){const re=Je.get(Qe);return re.usage+=Ee,re.usage}return Je.set(Qe,{usage:Ee,elements:[]}),Ee}getStyleElement(Qe,Ee){const Je=this.styleNodesInDOM,re=Je?.get(Ee);if(re?.parentNode===Qe)return Je.delete(Ee),re.removeAttribute(X),re;{const ze=this.doc.createElement("style");return this.nonce&&ze.setAttribute("nonce",this.nonce),ze.textContent=Ee,this.platformIsServer&&ze.setAttribute(X,this.appId),Qe.appendChild(ze),ze}}addStyleToHost(Qe,Ee){const Je=this.getStyleElement(Qe,Ee),re=this.styleRef,ze=re.get(Ee)?.elements;ze?ze.push(Je):re.set(Ee,{elements:[Je],usage:1})}resetHostNodes(){const Qe=this.hostNodes;Qe.clear(),Qe.add(this.doc.head)}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ),r.KVO(r.sZ2),r.KVO(r.BIS,8),r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();const x={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},ne=/%COMP%/g,J="%COMP%",be=`_nghost-${J}`,Oe=`_ngcontent-${J}`,Ie=new r.nKC("",{providedIn:"root",factory:()=>!0});function H(at,St){return St.map(Qe=>Qe.replace(ne,at))}let z=(()=>{class at{constructor(Qe,Ee,Je,re,ze,gt,Ke,Pe=null){this.eventManager=Qe,this.sharedStylesHost=Ee,this.appId=Je,this.removeStylesOnCompDestroy=re,this.doc=ze,this.platformId=gt,this.ngZone=Ke,this.nonce=Pe,this.rendererByCompId=new Map,this.platformIsServer=(0,t.Vy)(gt),this.defaultRenderer=new Z(Qe,ze,Ke,this.platformIsServer)}createRenderer(Qe,Ee){if(!Qe||!Ee)return this.defaultRenderer;this.platformIsServer&&Ee.encapsulation===r.gXe.ShadowDom&&(Ee={...Ee,encapsulation:r.gXe.Emulated});const Je=this.getOrCreateRenderer(Qe,Ee);return Je instanceof se?Je.applyToHost(Qe):Je instanceof Y&&Je.applyStyles(),Je}getOrCreateRenderer(Qe,Ee){const Je=this.rendererByCompId;let re=Je.get(Ee.id);if(!re){const ze=this.doc,gt=this.ngZone,Ke=this.eventManager,Pe=this.sharedStylesHost,Re=this.removeStylesOnCompDestroy,$=this.platformIsServer;switch(Ee.encapsulation){case r.gXe.Emulated:re=new se(Ke,Pe,Ee,this.appId,Re,ze,gt,$);break;case r.gXe.ShadowDom:return new R(Ke,Pe,Qe,Ee,ze,gt,this.nonce,$);default:re=new Y(Ke,Pe,Ee,Re,ze,gt,$)}Je.set(Ee.id,re)}return re}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(I),r.KVO(V),r.KVO(r.sZ2),r.KVO(Ie),r.KVO(t.qQ),r.KVO(r.Agw),r.KVO(r.SKi),r.KVO(r.BIS))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();class Z{constructor(St,Qe,Ee,Je){this.eventManager=St,this.doc=Qe,this.ngZone=Ee,this.platformIsServer=Je,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(St,Qe){return Qe?this.doc.createElementNS(x[Qe]||Qe,St):this.doc.createElement(St)}createComment(St){return this.doc.createComment(St)}createText(St){return this.doc.createTextNode(St)}appendChild(St,Qe){(S(St)?St.content:St).appendChild(Qe)}insertBefore(St,Qe,Ee){St&&(S(St)?St.content:St).insertBefore(Qe,Ee)}removeChild(St,Qe){St&&St.removeChild(Qe)}selectRootElement(St,Qe){let Ee="string"==typeof St?this.doc.querySelector(St):St;if(!Ee)throw new r.wOt(-5104,!1);return Qe||(Ee.textContent=""),Ee}parentNode(St){return St.parentNode}nextSibling(St){return St.nextSibling}setAttribute(St,Qe,Ee,Je){if(Je){Qe=Je+":"+Qe;const re=x[Je];re?St.setAttributeNS(re,Qe,Ee):St.setAttribute(Qe,Ee)}else St.setAttribute(Qe,Ee)}removeAttribute(St,Qe,Ee){if(Ee){const Je=x[Ee];Je?St.removeAttributeNS(Je,Qe):St.removeAttribute(`${Ee}:${Qe}`)}else St.removeAttribute(Qe)}addClass(St,Qe){St.classList.add(Qe)}removeClass(St,Qe){St.classList.remove(Qe)}setStyle(St,Qe,Ee,Je){Je&(r.czy.DashCase|r.czy.Important)?St.style.setProperty(Qe,Ee,Je&r.czy.Important?"important":""):St.style[Qe]=Ee}removeStyle(St,Qe,Ee){Ee&r.czy.DashCase?St.style.removeProperty(Qe):St.style[Qe]=""}setProperty(St,Qe,Ee){null!=St&&(St[Qe]=Ee)}setValue(St,Qe){St.nodeValue=Qe}listen(St,Qe,Ee){if("string"==typeof St&&!(St=(0,t.QT)().getGlobalEventTarget(this.doc,St)))throw new Error(`Unsupported event target ${St} for event ${Qe}`);return this.eventManager.addEventListener(St,Qe,this.decoratePreventDefault(Ee))}decoratePreventDefault(St){return Qe=>{if("__ngUnwrap__"===Qe)return St;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>St(Qe)):St(Qe))&&Qe.preventDefault()}}}function S(at){return"TEMPLATE"===at.tagName&&void 0!==at.content}class R extends Z{constructor(St,Qe,Ee,Je,re,ze,gt,Ke){super(St,re,ze,Ke),this.sharedStylesHost=Qe,this.hostEl=Ee,this.shadowRoot=Ee.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Pe=H(Je.id,Je.styles);for(const Re of Pe){const $=document.createElement("style");gt&&$.setAttribute("nonce",gt),$.textContent=Re,this.shadowRoot.appendChild($)}}nodeOrShadowRoot(St){return St===this.hostEl?this.shadowRoot:St}appendChild(St,Qe){return super.appendChild(this.nodeOrShadowRoot(St),Qe)}insertBefore(St,Qe,Ee){return super.insertBefore(this.nodeOrShadowRoot(St),Qe,Ee)}removeChild(St,Qe){return super.removeChild(this.nodeOrShadowRoot(St),Qe)}parentNode(St){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(St)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Y extends Z{constructor(St,Qe,Ee,Je,re,ze,gt,Ke){super(St,re,ze,gt),this.sharedStylesHost=Qe,this.removeStylesOnCompDestroy=Je,this.styles=Ke?H(Ke,Ee.styles):Ee.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class se extends Y{constructor(St,Qe,Ee,Je,re,ze,gt,Ke){const Pe=Je+"-"+Ee.id;super(St,Qe,Ee,re,ze,gt,Ke,Pe),this.contentAttr=function me(at){return Oe.replace(ne,at)}(Pe),this.hostAttr=function de(at){return be.replace(ne,at)}(Pe)}applyToHost(St){this.applyStyles(),this.setAttribute(St,this.hostAttr,"")}createElement(St,Qe){const Ee=super.createElement(St,Qe);return super.setAttribute(Ee,this.contentAttr,""),Ee}}let Be=(()=>{class at extends F{constructor(Qe){super(Qe)}supports(Qe){return!0}addEventListener(Qe,Ee,Je){return Qe.addEventListener(Ee,Je,!1),()=>this.removeEventListener(Qe,Ee,Je)}removeEventListener(Qe,Ee,Je){return Qe.removeEventListener(Ee,Je)}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})(),Pt=(()=>{class at extends F{constructor(Qe){super(Qe),this.delegate=(0,r.WQX)(r.zAP,{optional:!0})}supports(Qe){return!!this.delegate&&this.delegate.supports(Qe)}addEventListener(Qe,Ee,Je){return this.delegate.addEventListener(Qe,Ee,Je)}removeEventListener(Qe,Ee,Je){return this.delegate.removeEventListener(Qe,Ee,Je)}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();const vt=["alt","control","meta","shift"],wt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Le={alt:at=>at.altKey,control:at=>at.ctrlKey,meta:at=>at.metaKey,shift:at=>at.shiftKey};let zt=(()=>{class at extends F{constructor(Qe){super(Qe)}supports(Qe){return null!=at.parseEventName(Qe)}addEventListener(Qe,Ee,Je){const re=at.parseEventName(Ee),ze=at.eventCallback(re.fullKey,Je,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.QT)().onAndCancel(Qe,re.domEventName,ze))}static parseEventName(Qe){const Ee=Qe.toLowerCase().split("."),Je=Ee.shift();if(0===Ee.length||"keydown"!==Je&&"keyup"!==Je)return null;const re=at._normalizeKey(Ee.pop());let ze="",gt=Ee.indexOf("code");if(gt>-1&&(Ee.splice(gt,1),ze="code."),vt.forEach(Pe=>{const Re=Ee.indexOf(Pe);Re>-1&&(Ee.splice(Re,1),ze+=Pe+".")}),ze+=re,0!=Ee.length||0===re.length)return null;const Ke={};return Ke.domEventName=Je,Ke.fullKey=ze,Ke}static matchEventFullKeyCode(Qe,Ee){let Je=wt[Qe.key]||Qe.key,re="";return Ee.indexOf("code.")>-1&&(Je=Qe.code,re="code."),!(null==Je||!Je)&&(Je=Je.toLowerCase()," "===Je?Je="space":"."===Je&&(Je="dot"),vt.forEach(ze=>{ze!==Je&&(0,Le[ze])(Qe)&&(re+=ze+".")}),re+=Je,re===Ee)}static eventCallback(Qe,Ee,Je){return re=>{at.matchEventFullKeyCode(re,Qe)&&Je.runGuarded(()=>Ee(re))}}static _normalizeKey(Qe){return"esc"===Qe?"escape":Qe}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac})}return at})();const fn=(0,r.oH4)(r.fpN,"browser",[{provide:r.Agw,useValue:t.AJ},{provide:r.PLl,useValue:function Tt(){e.makeCurrent()},multi:!0},{provide:t.qQ,useFactory:function jt(){return(0,r.TL$)(document),document},deps:[]}]),Hn=new r.nKC(""),zn=[{provide:r.e01,useClass:class B{addToWindow(St){r.JZv.getAngularTestability=(Ee,Je=!0)=>{const re=St.findTestabilityInTree(Ee,Je);if(null==re)throw new r.wOt(5103,!1);return re},r.JZv.getAllAngularTestabilities=()=>St.getAllTestabilities(),r.JZv.getAllAngularRootElements=()=>St.getAllRootElements(),r.JZv.frameworkStabilizers||(r.JZv.frameworkStabilizers=[]),r.JZv.frameworkStabilizers.push(Ee=>{const Je=r.JZv.getAllAngularTestabilities();let re=Je.length;const ze=function(){re--,0==re&&Ee()};Je.forEach(gt=>{gt.whenStable(ze)})})}findTestabilityInTree(St,Qe,Ee){return null==Qe?null:St.getTestability(Qe)??(Ee?(0,t.QT)().isShadowRoot(Qe)?this.findTestabilityInTree(St,Qe.host,!0):this.findTestabilityInTree(St,Qe.parentElement,!0):null)}},deps:[]},{provide:r.WHO,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]},{provide:r.NYb,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]}],bt=[{provide:r.H8p,useValue:"root"},{provide:r.zcH,useFactory:function en(){return new r.zcH},deps:[]},{provide:w,useClass:Be,multi:!0,deps:[t.qQ,r.SKi,r.Agw]},{provide:w,useClass:zt,multi:!0,deps:[t.qQ]},{provide:w,useClass:Pt,multi:!0},z,V,I,{provide:r._9s,useExisting:z},{provide:t.N0,useClass:A,deps:[]},[]];let At=(()=>{class at{constructor(Qe){}static withServerTransition(Qe){return{ngModule:at,providers:[{provide:r.sZ2,useValue:Qe.appId}]}}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(Hn,12))};static#t=this.\u0275mod=r.$C({type:at});static#n=this.\u0275inj=r.G2t({providers:[...bt,...zn],imports:[t.MD,r.Hbi]})}return at})(),Et=(()=>{class at{constructor(Qe){this._doc=Qe,this._dom=(0,t.QT)()}addTag(Qe,Ee=!1){return Qe?this._getOrCreateElement(Qe,Ee):null}addTags(Qe,Ee=!1){return Qe?Qe.reduce((Je,re)=>(re&&Je.push(this._getOrCreateElement(re,Ee)),Je),[]):[]}getTag(Qe){return Qe&&this._doc.querySelector(`meta[${Qe}]`)||null}getTags(Qe){if(!Qe)return[];const Ee=this._doc.querySelectorAll(`meta[${Qe}]`);return Ee?[].slice.call(Ee):[]}updateTag(Qe,Ee){if(!Qe)return null;Ee=Ee||this._parseSelector(Qe);const Je=this.getTag(Ee);return Je?this._setMetaElementAttributes(Qe,Je):this._getOrCreateElement(Qe,!0)}removeTag(Qe){this.removeTagElement(this.getTag(Qe))}removeTagElement(Qe){Qe&&this._dom.remove(Qe)}_getOrCreateElement(Qe,Ee=!1){if(!Ee){const ze=this._parseSelector(Qe),gt=this.getTags(ze).filter(Ke=>this._containsAttributes(Qe,Ke))[0];if(void 0!==gt)return gt}const Je=this._dom.createElement("meta");return this._setMetaElementAttributes(Qe,Je),this._doc.getElementsByTagName("head")[0].appendChild(Je),Je}_setMetaElementAttributes(Qe,Ee){return Object.keys(Qe).forEach(Je=>Ee.setAttribute(this._getMetaKeyMap(Je),Qe[Je])),Ee}_parseSelector(Qe){const Ee=Qe.name?"name":"property";return`${Ee}="${Qe[Ee]}"`}_containsAttributes(Qe,Ee){return Object.keys(Qe).every(Je=>Ee.getAttribute(this._getMetaKeyMap(Je))===Qe[Je])}_getMetaKeyMap(Qe){return Ot[Qe]||Qe}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})();const Ot={httpEquiv:"http-equiv"};let Wt=(()=>{class at{constructor(Qe){this._doc=Qe}getTitle(){return this._doc.title}setTitle(Qe){this._doc.title=Qe||""}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})(),Un=(()=>{class at{static#e=this.\u0275fac=function(Ee){return new(Ee||at)};static#t=this.\u0275prov=r.jDH({token:at,factory:function(Ee){let Je=null;return Je=Ee?new(Ee||at):r.KVO(dn),Je},providedIn:"root"})}return at})(),dn=(()=>{class at extends Un{constructor(Qe){super(),this._doc=Qe}sanitize(Qe,Ee){if(null==Ee)return null;switch(Qe){case r.WPN.NONE:return Ee;case r.WPN.HTML:return(0,r.ZF7)(Ee,"HTML")?(0,r.rcV)(Ee):(0,r.h9k)(this._doc,String(Ee)).toString();case r.WPN.STYLE:return(0,r.ZF7)(Ee,"Style")?(0,r.rcV)(Ee):Ee;case r.WPN.SCRIPT:if((0,r.ZF7)(Ee,"Script"))return(0,r.rcV)(Ee);throw new r.wOt(5200,!1);case r.WPN.URL:return(0,r.ZF7)(Ee,"URL")?(0,r.rcV)(Ee):(0,r.$MX)(String(Ee));case r.WPN.RESOURCE_URL:if((0,r.ZF7)(Ee,"ResourceURL"))return(0,r.rcV)(Ee);throw new r.wOt(5201,!1);default:throw new r.wOt(5202,!1)}}bypassSecurityTrustHtml(Qe){return(0,r.Kcf)(Qe)}bypassSecurityTrustStyle(Qe){return(0,r.cWb)(Qe)}bypassSecurityTrustScript(Qe){return(0,r.UyX)(Qe)}bypassSecurityTrustUrl(Qe){return(0,r.osQ)(Qe)}bypassSecurityTrustResourceUrl(Qe){return(0,r.e5t)(Qe)}static#e=this.\u0275fac=function(Ee){return new(Ee||at)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}return at})()},1188:(Rt,De,c)=>{c.d(De,{nX:()=>xn,wF:()=>mn,Xk:()=>Ct,Ix:()=>Wi,Wk:()=>Rr,wQ:()=>Is,iI:()=>au,n3:()=>Xi});var t=c(3953),r=c(4402),g=c(2806),e=c(7673),M=c(4412),G=c(4572),L=c(9350),B=c(8793),A=c(9030),w=c(1203),I=c(8810),F=c(983),X=c(17),V=c(1413),x=c(8359),ne=c(177),J=c(6354),be=c(5558),Oe=c(6697),he=c(9172),Ie=c(5964),me=c(1397),de=c(1594),H=c(274),z=c(8141),Z=c(9437),pe=c(2816),E=c(9901),S=c(9974),R=c(4360);function Y(P){return P<=0?()=>F.w:(0,S.N)((ae,k)=>{let le=[];ae.subscribe((0,R._)(k,$e=>{le.push($e),P{for(const $e of le)k.next($e);k.complete()},void 0,()=>{le=null}))})}var se=c(3774),Be=c(3669),vt=c(3703),wt=c(980),Le=c(9898),zt=c(6977),xt=c(6365),st=c(345);const Ct="primary",It=Symbol("RouteTitle");class Tt{constructor(ae){this.params=ae||{}}has(ae){return Object.prototype.hasOwnProperty.call(this.params,ae)}get(ae){if(this.has(ae)){const k=this.params[ae];return Array.isArray(k)?k[0]:k}return null}getAll(ae){if(this.has(ae)){const k=this.params[ae];return Array.isArray(k)?k:[k]}return[]}get keys(){return Object.keys(this.params)}}function en(P){return new Tt(P)}function jt(P,ae,k){const le=k.path.split("/");if(le.length>P.length||"full"===k.pathMatch&&(ae.hasChildren()||le.lengthle[mt]===$e)}return P===ae}function bt(P){return P.length>0?P[P.length-1]:null}function At(P){return(0,r.A)(P)?P:(0,t.jNT)(P)?(0,g.H)(Promise.resolve(P)):(0,e.of)(P)}const Et={exact:function Ae(P,ae,k){if(!Tn(P.segments,ae.segments)||!Fe(P.segments,ae.segments,k)||P.numberOfChildren!==ae.numberOfChildren)return!1;for(const le in ae.children)if(!P.children[le]||!Ae(P.children[le],ae.children[le],k))return!1;return!0},subset:_e},Ot={exact:function Ue(P,ae){return fn(P,ae)},subset:function ie(P,ae){return Object.keys(ae).length<=Object.keys(P).length&&Object.keys(ae).every(k=>zn(P[k],ae[k]))},ignored:()=>!0};function Wt(P,ae,k){return Et[k.paths](P.root,ae.root,k.matrixParams)&&Ot[k.queryParams](P.queryParams,ae.queryParams)&&!("exact"===k.fragment&&P.fragment!==ae.fragment)}function _e(P,ae,k){return oe(P,ae,ae.segments,k)}function oe(P,ae,k,le){if(P.segments.length>k.length){const $e=P.segments.slice(0,k.length);return!(!Tn($e,k)||ae.hasChildren()||!Fe($e,k,le))}if(P.segments.length===k.length){if(!Tn(P.segments,k)||!Fe(P.segments,k,le))return!1;for(const $e in ae.children)if(!P.children[$e]||!_e(P.children[$e],ae.children[$e],le))return!1;return!0}{const $e=k.slice(0,P.segments.length),mt=k.slice(P.segments.length);return!!(Tn(P.segments,$e)&&Fe(P.segments,$e,le)&&P.children[Ct])&&oe(P.children[Ct],ae,mt,le)}}function Fe(P,ae,k){return ae.every((le,$e)=>Ot[k](P[$e].parameters,le.parameters))}class et{constructor(ae=new dt([],{}),k={},le=null){this.root=ae,this.queryParams=k,this.fragment=le}get queryParamMap(){return this._queryParamMap??=en(this.queryParams),this._queryParamMap}toString(){return Un.serialize(this)}}class dt{constructor(ae,k){this.segments=ae,this.children=k,this.parent=null,Object.values(k).forEach(le=>le.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return dn(this)}}class Kt{constructor(ae,k){this.path=ae,this.parameters=k}get parameterMap(){return this._parameterMap??=en(this.parameters),this._parameterMap}toString(){return Xe(this)}}function Tn(P,ae){return P.length===ae.length&&P.every((k,le)=>k.path===ae[le].path)}let kn=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>new Vn,providedIn:"root"})}return P})();class Vn{parse(ae){const k=new Pe(ae);return new et(k.parseRootSegment(),k.parseQueryParams(),k.parseFragment())}serialize(ae){const k=`/${qt(ae.root,!0)}`,le=function at(P){const ae=Object.entries(P).map(([k,le])=>Array.isArray(le)?le.map($e=>`${Ut(k)}=${Ut($e)}`).join("&"):`${Ut(k)}=${Ut(le)}`).filter(k=>k);return ae.length?`?${ae.join("&")}`:""}(ae.queryParams);return`${k}${le}${"string"==typeof ae.fragment?`#${function Ye(P){return encodeURI(P)}(ae.fragment)}`:""}`}}const Un=new Vn;function dn(P){return P.segments.map(ae=>Xe(ae)).join("/")}function qt(P,ae){if(!P.hasChildren())return dn(P);if(ae){const k=P.children[Ct]?qt(P.children[Ct],!1):"",le=[];return Object.entries(P.children).forEach(([$e,mt])=>{$e!==Ct&&le.push(`${$e}:${qt(mt,!1)}`)}),le.length>0?`${k}(${le.join("//")})`:k}{const k=function Wn(P,ae){let k=[];return Object.entries(P.children).forEach(([le,$e])=>{le===Ct&&(k=k.concat(ae($e,le)))}),Object.entries(P.children).forEach(([le,$e])=>{le!==Ct&&(k=k.concat(ae($e,le)))}),k}(P,(le,$e)=>$e===Ct?[qt(P.children[Ct],!1)]:[`${$e}:${qt(le,!1)}`]);return 1===Object.keys(P.children).length&&null!=P.children[Ct]?`${dn(P)}/${k[0]}`:`${dn(P)}/(${k.join("//")})`}}function On(P){return encodeURIComponent(P).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(P){return On(P).replace(/%3B/gi,";")}function ue(P){return On(P).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function te(P){return decodeURIComponent(P)}function q(P){return te(P.replace(/\+/g,"%20"))}function Xe(P){return`${ue(P.path)}${function ht(P){return Object.entries(P).map(([ae,k])=>`;${ue(ae)}=${ue(k)}`).join("")}(P.parameters)}`}const St=/^[^\/()?;#]+/;function Qe(P){const ae=P.match(St);return ae?ae[0]:""}const Ee=/^[^\/()?;=#]+/,re=/^[^=?&#]+/,gt=/^[^&#]+/;class Pe{constructor(ae){this.url=ae,this.remaining=ae}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const ae={};if(this.consumeOptional("?"))do{this.parseQueryParam(ae)}while(this.consumeOptional("&"));return ae}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ae=[];for(this.peekStartsWith("(")||ae.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ae.push(this.parseSegment());let k={};this.peekStartsWith("/(")&&(this.capture("/"),k=this.parseParens(!0));let le={};return this.peekStartsWith("(")&&(le=this.parseParens(!1)),(ae.length>0||Object.keys(k).length>0)&&(le[Ct]=new dt(ae,k)),le}parseSegment(){const ae=Qe(this.remaining);if(""===ae&&this.peekStartsWith(";"))throw new t.wOt(4009,!1);return this.capture(ae),new Kt(te(ae),this.parseMatrixParams())}parseMatrixParams(){const ae={};for(;this.consumeOptional(";");)this.parseParam(ae);return ae}parseParam(ae){const k=function Je(P){const ae=P.match(Ee);return ae?ae[0]:""}(this.remaining);if(!k)return;this.capture(k);let le="";if(this.consumeOptional("=")){const $e=Qe(this.remaining);$e&&(le=$e,this.capture(le))}ae[te(k)]=te(le)}parseQueryParam(ae){const k=function ze(P){const ae=P.match(re);return ae?ae[0]:""}(this.remaining);if(!k)return;this.capture(k);let le="";if(this.consumeOptional("=")){const kt=function Ke(P){const ae=P.match(gt);return ae?ae[0]:""}(this.remaining);kt&&(le=kt,this.capture(le))}const $e=q(k),mt=q(le);if(ae.hasOwnProperty($e)){let kt=ae[$e];Array.isArray(kt)||(kt=[kt],ae[$e]=kt),kt.push(mt)}else ae[$e]=mt}parseParens(ae){const k={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const le=Qe(this.remaining),$e=this.remaining[le.length];if("/"!==$e&&")"!==$e&&";"!==$e)throw new t.wOt(4010,!1);let mt;le.indexOf(":")>-1?(mt=le.slice(0,le.indexOf(":")),this.capture(mt),this.capture(":")):ae&&(mt=Ct);const kt=this.parseChildren();k[mt]=1===Object.keys(kt).length?kt[Ct]:new dt([],kt),this.consumeOptional("//")}return k}peekStartsWith(ae){return this.remaining.startsWith(ae)}consumeOptional(ae){return!!this.peekStartsWith(ae)&&(this.remaining=this.remaining.substring(ae.length),!0)}capture(ae){if(!this.consumeOptional(ae))throw new t.wOt(4011,!1)}}function Re(P){return P.segments.length>0?new dt([],{[Ct]:P}):P}function $(P){const ae={};for(const[le,$e]of Object.entries(P.children)){const mt=$($e);if(le===Ct&&0===mt.segments.length&&mt.hasChildren())for(const[kt,yn]of Object.entries(mt.children))ae[kt]=yn;else(mt.segments.length>0||mt.hasChildren())&&(ae[le]=mt)}return function ce(P){if(1===P.numberOfChildren&&P.children[Ct]){const ae=P.children[Ct];return new dt(P.segments.concat(ae.segments),ae.children)}return P}(new dt(P.segments,ae))}function N(P){return P instanceof et}function ve(P){let ae;const $e=Re(function k(mt){const kt={};for(const ln of mt.children){const si=k(ln);kt[ln.outlet]=si}const yn=new dt(mt.url,kt);return mt===P&&(ae=yn),yn}(P.root));return ae??$e}function K(P,ae,k,le){let $e=P;for(;$e.parent;)$e=$e.parent;if(0===ae.length)return qe($e,$e,$e,k,le);const mt=function rn(P){if("string"==typeof P[0]&&1===P.length&&"/"===P[0])return new Ft(!0,0,P);let ae=0,k=!1;const le=P.reduce(($e,mt,kt)=>{if("object"==typeof mt&&null!=mt){if(mt.outlets){const yn={};return Object.entries(mt.outlets).forEach(([ln,si])=>{yn[ln]="string"==typeof si?si.split("/"):si}),[...$e,{outlets:yn}]}if(mt.segmentPath)return[...$e,mt.segmentPath]}return"string"!=typeof mt?[...$e,mt]:0===kt?(mt.split("/").forEach((yn,ln)=>{0==ln&&"."===yn||(0==ln&&""===yn?k=!0:".."===yn?ae++:""!=yn&&$e.push(yn))}),$e):[...$e,mt]},[]);return new Ft(k,ae,le)}(ae);if(mt.toRoot())return qe($e,$e,new dt([],{}),k,le);const kt=function Zn(P,ae,k){if(P.isAbsolute)return new Cn(ae,!0,0);if(!k)return new Cn(ae,!1,NaN);if(null===k.parent)return new Cn(k,!0,0);const le=U(P.commands[0])?0:1;return function jn(P,ae,k){let le=P,$e=ae,mt=k;for(;mt>$e;){if(mt-=$e,le=le.parent,!le)throw new t.wOt(4005,!1);$e=le.segments.length}return new Cn(le,!1,$e-mt)}(k,k.segments.length-1+le,P.numberOfDoubleDots)}(mt,$e,P),yn=kt.processChildren?Oi(kt.segmentGroup,kt.index,mt.commands):Ti(kt.segmentGroup,kt.index,mt.commands);return qe($e,kt.segmentGroup,yn,k,le)}function U(P){return"object"==typeof P&&null!=P&&!P.outlets&&!P.segmentPath}function ge(P){return"object"==typeof P&&null!=P&&P.outlets}function qe(P,ae,k,le,$e){let kt,mt={};le&&Object.entries(le).forEach(([ln,si])=>{mt[ln]=Array.isArray(si)?si.map(Fi=>`${Fi}`):`${si}`}),kt=P===ae?k:rt(P,ae,k);const yn=Re($(kt));return new et(yn,mt,$e)}function rt(P,ae,k){const le={};return Object.entries(P.children).forEach(([$e,mt])=>{le[$e]=mt===ae?k:rt(mt,ae,k)}),new dt(P.segments,le)}class Ft{constructor(ae,k,le){if(this.isAbsolute=ae,this.numberOfDoubleDots=k,this.commands=le,ae&&le.length>0&&U(le[0]))throw new t.wOt(4003,!1);const $e=le.find(ge);if($e&&$e!==bt(le))throw new t.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cn{constructor(ae,k,le){this.segmentGroup=ae,this.processChildren=k,this.index=le}}function Ti(P,ae,k){if(P??=new dt([],{}),0===P.segments.length&&P.hasChildren())return Oi(P,ae,k);const le=function lo(P,ae,k){let le=0,$e=ae;const mt={match:!1,pathIndex:0,commandIndex:0};for(;$e=k.length)return mt;const kt=P.segments[$e],yn=k[le];if(ge(yn))break;const ln=`${yn}`,si=le0&&void 0===ln)break;if(ln&&si&&"object"==typeof si&&void 0===si.outlets){if(!zr(ln,si,kt))return mt;le+=2}else{if(!zr(ln,{},kt))return mt;le++}$e++}return{match:!0,pathIndex:$e,commandIndex:le}}(P,ae,k),$e=k.slice(le.commandIndex);if(le.match&&le.pathIndexmt!==Ct)&&P.children[Ct]&&1===P.numberOfChildren&&0===P.children[Ct].segments.length){const mt=Oi(P.children[Ct],ae,k);return new dt(P.segments,mt.children)}return Object.entries(le).forEach(([mt,kt])=>{"string"==typeof kt&&(kt=[kt]),null!==kt&&($e[mt]=Ti(P.children[mt],ae,kt))}),Object.entries(P.children).forEach(([mt,kt])=>{void 0===le[mt]&&($e[mt]=kt)}),new dt(P.segments,$e)}}function Zi(P,ae,k){const le=P.segments.slice(0,ae);let $e=0;for(;$e{"string"==typeof le&&(le=[le]),null!==le&&(ae[k]=Zi(new dt([],{}),0,le))}),ae}function bo(P){const ae={};return Object.entries(P).forEach(([k,le])=>ae[k]=`${le}`),ae}function zr(P,ae,k){return P==k.path&&fn(ae,k.parameters)}const rr="imperative";var lt=function(P){return P[P.NavigationStart=0]="NavigationStart",P[P.NavigationEnd=1]="NavigationEnd",P[P.NavigationCancel=2]="NavigationCancel",P[P.NavigationError=3]="NavigationError",P[P.RoutesRecognized=4]="RoutesRecognized",P[P.ResolveStart=5]="ResolveStart",P[P.ResolveEnd=6]="ResolveEnd",P[P.GuardsCheckStart=7]="GuardsCheckStart",P[P.GuardsCheckEnd=8]="GuardsCheckEnd",P[P.RouteConfigLoadStart=9]="RouteConfigLoadStart",P[P.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",P[P.ChildActivationStart=11]="ChildActivationStart",P[P.ChildActivationEnd=12]="ChildActivationEnd",P[P.ActivationStart=13]="ActivationStart",P[P.ActivationEnd=14]="ActivationEnd",P[P.Scroll=15]="Scroll",P[P.NavigationSkipped=16]="NavigationSkipped",P}(lt||{});class Lt{constructor(ae,k){this.id=ae,this.url=k}}class $t extends Lt{constructor(ae,k,le="imperative",$e=null){super(ae,k),this.type=lt.NavigationStart,this.navigationTrigger=le,this.restoredState=$e}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class mn extends Lt{constructor(ae,k,le){super(ae,k),this.urlAfterRedirects=le,this.type=lt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var hn=function(P){return P[P.Redirect=0]="Redirect",P[P.SupersededByNewNavigation=1]="SupersededByNewNavigation",P[P.NoDataFromResolver=2]="NoDataFromResolver",P[P.GuardRejected=3]="GuardRejected",P}(hn||{}),Yn=function(P){return P[P.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",P[P.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",P}(Yn||{});class En extends Lt{constructor(ae,k,le,$e){super(ae,k),this.reason=le,this.code=$e,this.type=lt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kn extends Lt{constructor(ae,k,le,$e){super(ae,k),this.reason=le,this.code=$e,this.type=lt.NavigationSkipped}}class oi extends Lt{constructor(ae,k,le,$e){super(ae,k),this.error=le,this.target=$e,this.type=lt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gi extends Lt{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ro extends Lt{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vi extends Lt{constructor(ae,k,le,$e,mt){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.shouldActivate=mt,this.type=lt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class pn extends Lt{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $i extends Lt{constructor(ae,k,le,$e){super(ae,k),this.urlAfterRedirects=le,this.state=$e,this.type=lt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zi{constructor(ae){this.route=ae,this.type=lt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ni{constructor(ae){this.route=ae,this.type=lt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class so{constructor(ae){this.snapshot=ae,this.type=lt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yi{constructor(ae){this.snapshot=ae,this.type=lt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xo{constructor(ae){this.snapshot=ae,this.type=lt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ki{constructor(ae){this.snapshot=ae,this.type=lt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qo{constructor(ae,k,le){this.routerEvent=ae,this.position=k,this.anchor=le,this.type=lt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class pr{}class fo{constructor(ae,k){this.url=ae,this.navigationBehaviorOptions=k}}function Qo(P){return P.outlet||Ct}function nt(P){if(!P)return null;if(P.routeConfig?._injector)return P.routeConfig._injector;for(let ae=P.parent;ae;ae=ae.parent){const k=ae.routeConfig;if(k?._loadedInjector)return k._loadedInjector;if(k?._injector)return k._injector}return null}class ye{get injector(){return nt(this.route?.snapshot)??this.rootInjector}set injector(ae){}constructor(ae){this.rootInjector=ae,this.outlet=null,this.route=null,this.children=new Ve(this.rootInjector),this.attachRef=null}}let Ve=(()=>{class P{constructor(k){this.rootInjector=k,this.contexts=new Map}onChildOutletCreated(k,le){const $e=this.getOrCreateContext(k);$e.outlet=le,this.contexts.set(k,$e)}onChildOutletDestroyed(k){const le=this.getContext(k);le&&(le.outlet=null,le.attachRef=null)}onOutletDeactivated(){const k=this.contexts;return this.contexts=new Map,k}onOutletReAttached(k){this.contexts=k}getOrCreateContext(k){let le=this.getContext(k);return le||(le=new ye(this.rootInjector),this.contexts.set(k,le)),le}getContext(k){return this.contexts.get(k)||null}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(t.uvJ))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();class tt{constructor(ae){this._root=ae}get root(){return this._root.value}parent(ae){const k=this.pathFromRoot(ae);return k.length>1?k[k.length-2]:null}children(ae){const k=Mt(ae,this._root);return k?k.children.map(le=>le.value):[]}firstChild(ae){const k=Mt(ae,this._root);return k&&k.children.length>0?k.children[0].value:null}siblings(ae){const k=Yt(ae,this._root);return k.length<2?[]:k[k.length-2].children.map($e=>$e.value).filter($e=>$e!==ae)}pathFromRoot(ae){return Yt(ae,this._root).map(k=>k.value)}}function Mt(P,ae){if(P===ae.value)return ae;for(const k of ae.children){const le=Mt(P,k);if(le)return le}return null}function Yt(P,ae){if(P===ae.value)return[ae];for(const k of ae.children){const le=Yt(P,k);if(le.length)return le.unshift(ae),le}return[]}class tn{constructor(ae,k){this.value=ae,this.children=k}toString(){return`TreeNode(${this.value})`}}function on(P){const ae={};return P&&P.children.forEach(k=>ae[k.value.outlet]=k),ae}class bn extends tt{constructor(ae,k){super(ae),this.snapshot=k,ei(this,ae)}toString(){return this.snapshot.toString()}}function Sn(P){const ae=function Ln(P){const mt=new qn([],{},{},"",{},Ct,P,null,{});return new pi("",new tn(mt,[]))}(P),k=new M.t([new Kt("",{})]),le=new M.t({}),$e=new M.t({}),mt=new M.t({}),kt=new M.t(""),yn=new xn(k,le,mt,kt,$e,Ct,P,ae.root);return yn.snapshot=ae.root,new bn(new tn(yn,[]),ae)}class xn{constructor(ae,k,le,$e,mt,kt,yn,ln){this.urlSubject=ae,this.paramsSubject=k,this.queryParamsSubject=le,this.fragmentSubject=$e,this.dataSubject=mt,this.outlet=kt,this.component=yn,this._futureSnapshot=ln,this.title=this.dataSubject?.pipe((0,J.T)(si=>si[It]))??(0,e.of)(void 0),this.url=ae,this.params=k,this.queryParams=le,this.fragment=$e,this.data=mt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,J.T)(ae=>en(ae))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,J.T)(ae=>en(ae))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Qn(P,ae,k="emptyOnly"){let le;const{routeConfig:$e}=P;return le=null===ae||"always"!==k&&""!==$e?.path&&(ae.component||ae.routeConfig?.loadComponent)?{params:{...P.params},data:{...P.data},resolve:{...P.data,...P._resolvedData??{}}}:{params:{...ae.params,...P.params},data:{...ae.data,...P.data},resolve:{...P.data,...ae.data,...$e?.data,...P._resolvedData}},$e&&Ei($e)&&(le.resolve[It]=$e.title),le}class qn{get title(){return this.data?.[It]}constructor(ae,k,le,$e,mt,kt,yn,ln,si){this.url=ae,this.params=k,this.queryParams=le,this.fragment=$e,this.data=mt,this.outlet=kt,this.component=yn,this.routeConfig=ln,this._resolve=si}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=en(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=en(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(le=>le.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pi extends tt{constructor(ae,k){super(k),this.url=ae,ei(this,k)}toString(){return li(this._root)}}function ei(P,ae){ae.value._routerState=P,ae.children.forEach(k=>ei(P,k))}function li(P){const ae=P.children.length>0?` { ${P.children.map(li).join(", ")} } `:"";return`${P.value}${ae}`}function ai(P){if(P.snapshot){const ae=P.snapshot,k=P._futureSnapshot;P.snapshot=k,fn(ae.queryParams,k.queryParams)||P.queryParamsSubject.next(k.queryParams),ae.fragment!==k.fragment&&P.fragmentSubject.next(k.fragment),fn(ae.params,k.params)||P.paramsSubject.next(k.params),function Vt(P,ae){if(P.length!==ae.length)return!1;for(let k=0;kfn(k.parameters,ae[le].parameters))}(P.url,ae.url);return k&&!(!P.parent!=!ae.parent)&&(!P.parent||mi(P.parent,ae.parent))}function Ei(P){return"string"==typeof P.title||null===P.title}let Xi=(()=>{class P{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ct,this.activateEvents=new t.bkB,this.deactivateEvents=new t.bkB,this.attachEvents=new t.bkB,this.detachEvents=new t.bkB,this.parentContexts=(0,t.WQX)(Ve),this.location=(0,t.WQX)(t.c1b),this.changeDetector=(0,t.WQX)(t.gRc),this.inputBinder=(0,t.WQX)(no,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(k){if(k.name){const{firstChange:le,previousValue:$e}=k.name;if(le)return;this.isTrackedInParentContexts($e)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed($e)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(k){return this.parentContexts.getContext(k)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const k=this.parentContexts.getContext(this.name);k?.route&&(k.attachRef?this.attach(k.attachRef,k.route):this.activateWith(k.route,k.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.wOt(4012,!1);this.location.detach();const k=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(k.instance),k}attach(k,le){this.activated=k,this._activatedRoute=le,this.location.insert(k.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(k.instance)}deactivate(){if(this.activated){const k=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(k)}}activateWith(k,le){if(this.isActivated)throw new t.wOt(4013,!1);this._activatedRoute=k;const $e=this.location,kt=k.snapshot.component,yn=this.parentContexts.getOrCreateContext(this.name).children,ln=new Mi(k,yn,$e.injector);this.activated=$e.createComponent(kt,{index:$e.length,injector:ln,environmentInjector:le}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.OA$]})}return P})();class Mi{__ngOutletInjector(ae){return new Mi(this.route,this.childContexts,ae)}constructor(ae,k,le){this.route=ae,this.childContexts=k,this.parent=le}get(ae,k){return ae===xn?this.route:ae===Ve?this.childContexts:this.parent.get(ae,k)}}const no=new t.nKC("");let ao=(()=>{class P{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(k){this.unsubscribeFromRouteData(k),this.subscribeToRouteData(k)}unsubscribeFromRouteData(k){this.outletDataSubscriptions.get(k)?.unsubscribe(),this.outletDataSubscriptions.delete(k)}subscribeToRouteData(k){const{activatedRoute:le}=k,$e=(0,G.z)([le.queryParams,le.params,le.data]).pipe((0,be.n)(([mt,kt,yn],ln)=>(yn={...mt,...kt,...yn},0===ln?(0,e.of)(yn):Promise.resolve(yn)))).subscribe(mt=>{if(!k.isActivated||!k.activatedComponentRef||k.activatedRoute!==le||null===le.component)return void this.unsubscribeFromRouteData(k);const kt=(0,t.HJs)(le.component);if(kt)for(const{templateName:yn}of kt.inputs)k.activatedComponentRef.setInput(yn,mt[yn]);else this.unsubscribeFromRouteData(k)});this.outletDataSubscriptions.set(k,$e)}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac})}return P})();function Fn(P,ae,k){if(k&&P.shouldReuseRoute(ae.value,k.value.snapshot)){const le=k.value;le._futureSnapshot=ae.value;const $e=function _o(P,ae,k){return ae.children.map(le=>{for(const $e of k.children)if(P.shouldReuseRoute(le.value,$e.value.snapshot))return Fn(P,le,$e);return Fn(P,le)})}(P,ae,k);return new tn(le,$e)}{if(P.shouldAttach(ae.value)){const mt=P.retrieve(ae.value);if(null!==mt){const kt=mt.route;return kt.value._futureSnapshot=ae.value,kt.children=ae.children.map(yn=>Fn(P,yn)),kt}}const le=function ir(P){return new xn(new M.t(P.url),new M.t(P.params),new M.t(P.queryParams),new M.t(P.fragment),new M.t(P.data),P.outlet,P.component,P)}(ae.value),$e=ae.children.map(mt=>Fn(P,mt));return new tn(le,$e)}}class Gr{constructor(ae,k){this.redirectTo=ae,this.navigationBehaviorOptions=k}}const Do="ngNavigationCancelingError";function Jo(P,ae){const{redirectTo:k,navigationBehaviorOptions:le}=N(ae)?{redirectTo:ae,navigationBehaviorOptions:void 0}:ae,$e=Sr(!1,hn.Redirect);return $e.url=k,$e.navigationBehaviorOptions=le,$e}function Sr(P,ae){const k=new Error(`NavigationCancelingError: ${P||""}`);return k[Do]=!0,k.cancellationCode=ae,k}function yr(P){return!!P&&P[Do]}class zs{constructor(ae,k,le,$e,mt){this.routeReuseStrategy=ae,this.futureState=k,this.currState=le,this.forwardEvent=$e,this.inputBindingEnabled=mt}activate(ae){const k=this.futureState._root,le=this.currState?this.currState._root:null;this.deactivateChildRoutes(k,le,ae),ai(this.futureState.root),this.activateChildRoutes(k,le,ae)}deactivateChildRoutes(ae,k,le){const $e=on(k);ae.children.forEach(mt=>{const kt=mt.value.outlet;this.deactivateRoutes(mt,$e[kt],le),delete $e[kt]}),Object.values($e).forEach(mt=>{this.deactivateRouteAndItsChildren(mt,le)})}deactivateRoutes(ae,k,le){const $e=ae.value,mt=k?k.value:null;if($e===mt)if($e.component){const kt=le.getContext($e.outlet);kt&&this.deactivateChildRoutes(ae,k,kt.children)}else this.deactivateChildRoutes(ae,k,le);else mt&&this.deactivateRouteAndItsChildren(k,le)}deactivateRouteAndItsChildren(ae,k){ae.value.component&&this.routeReuseStrategy.shouldDetach(ae.value.snapshot)?this.detachAndStoreRouteSubtree(ae,k):this.deactivateRouteAndOutlet(ae,k)}detachAndStoreRouteSubtree(ae,k){const le=k.getContext(ae.value.outlet),$e=le&&ae.value.component?le.children:k,mt=on(ae);for(const kt of Object.values(mt))this.deactivateRouteAndItsChildren(kt,$e);if(le&&le.outlet){const kt=le.outlet.detach(),yn=le.children.onOutletDeactivated();this.routeReuseStrategy.store(ae.value.snapshot,{componentRef:kt,route:ae,contexts:yn})}}deactivateRouteAndOutlet(ae,k){const le=k.getContext(ae.value.outlet),$e=le&&ae.value.component?le.children:k,mt=on(ae);for(const kt of Object.values(mt))this.deactivateRouteAndItsChildren(kt,$e);le&&(le.outlet&&(le.outlet.deactivate(),le.children.onOutletDeactivated()),le.attachRef=null,le.route=null)}activateChildRoutes(ae,k,le){const $e=on(k);ae.children.forEach(mt=>{this.activateRoutes(mt,$e[mt.value.outlet],le),this.forwardEvent(new Ki(mt.value.snapshot))}),ae.children.length&&this.forwardEvent(new Yi(ae.value.snapshot))}activateRoutes(ae,k,le){const $e=ae.value,mt=k?k.value:null;if(ai($e),$e===mt)if($e.component){const kt=le.getOrCreateContext($e.outlet);this.activateChildRoutes(ae,k,kt.children)}else this.activateChildRoutes(ae,k,le);else if($e.component){const kt=le.getOrCreateContext($e.outlet);if(this.routeReuseStrategy.shouldAttach($e.snapshot)){const yn=this.routeReuseStrategy.retrieve($e.snapshot);this.routeReuseStrategy.store($e.snapshot,null),kt.children.onOutletReAttached(yn.contexts),kt.attachRef=yn.componentRef,kt.route=yn.route.value,kt.outlet&&kt.outlet.attach(yn.componentRef,yn.route.value),ai(yn.route.value),this.activateChildRoutes(ae,null,kt.children)}else kt.attachRef=null,kt.route=$e,kt.outlet&&kt.outlet.activateWith($e,kt.injector),this.activateChildRoutes(ae,null,kt.children)}else this.activateChildRoutes(ae,null,le)}}class Fr{constructor(ae){this.path=ae,this.route=this.path[this.path.length-1]}}class Uo{constructor(ae,k){this.component=ae,this.route=k}}function es(P,ae,k){const le=P._root;return ds(le,ae?ae._root:null,k,[le.value])}function Ms(P,ae){const k=Symbol(),le=ae.get(P,k);return le===k?"function"!=typeof P||(0,t.LfX)(P)?ae.get(P):P:le}function ds(P,ae,k,le,$e={canDeactivateChecks:[],canActivateChecks:[]}){const mt=on(ae);return P.children.forEach(kt=>{(function Ze(P,ae,k,le,$e={canDeactivateChecks:[],canActivateChecks:[]}){const mt=P.value,kt=ae?ae.value:null,yn=k?k.getContext(P.value.outlet):null;if(kt&&mt.routeConfig===kt.routeConfig){const ln=function An(P,ae,k){if("function"==typeof k)return k(P,ae);switch(k){case"pathParamsChange":return!Tn(P.url,ae.url);case"pathParamsOrQueryParamsChange":return!Tn(P.url,ae.url)||!fn(P.queryParams,ae.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mi(P,ae)||!fn(P.queryParams,ae.queryParams);default:return!mi(P,ae)}}(kt,mt,mt.routeConfig.runGuardsAndResolvers);ln?$e.canActivateChecks.push(new Fr(le)):(mt.data=kt.data,mt._resolvedData=kt._resolvedData),ds(P,ae,mt.component?yn?yn.children:null:k,le,$e),ln&&yn&&yn.outlet&&yn.outlet.isActivated&&$e.canDeactivateChecks.push(new Uo(yn.outlet.component,kt))}else kt&&fe(ae,yn,$e),$e.canActivateChecks.push(new Fr(le)),ds(P,null,mt.component?yn?yn.children:null:k,le,$e)})(kt,mt[kt.value.outlet],k,le.concat([kt.value]),$e),delete mt[kt.value.outlet]}),Object.entries(mt).forEach(([kt,yn])=>fe(yn,k.getContext(kt),$e)),$e}function fe(P,ae,k){const le=on(P),$e=P.value;Object.entries(le).forEach(([mt,kt])=>{fe(kt,$e.component?ae?ae.children.getContext(mt):null:ae,k)}),k.canDeactivateChecks.push(new Uo($e.component&&ae&&ae.outlet&&ae.outlet.isActivated?ae.outlet.component:null,$e))}function We(P){return"function"==typeof P}function To(P){return P instanceof L.G||"EmptyError"===P?.name}const di=Symbol("INITIAL_VALUE");function ho(){return(0,be.n)(P=>(0,G.z)(P.map(ae=>ae.pipe((0,Oe.s)(1),(0,he.Z)(di)))).pipe((0,J.T)(ae=>{for(const k of ae)if(!0!==k){if(k===di)return di;if(!1===k||Oo(k))return k}return!0}),(0,Ie.p)(ae=>ae!==di),(0,Oe.s)(1)))}function Oo(P){return N(P)||P instanceof Gr}function yi(P){return(0,w.F)((0,z.M)(ae=>{if("boolean"!=typeof ae)throw Jo(0,ae)}),(0,J.T)(ae=>!0===ae))}class Hc{constructor(ae){this.segmentGroup=ae||null}}class Ea extends Error{constructor(ae){super(),this.urlTree=ae}}function Cr(P){return(0,I.$)(new Hc(P))}class Yr{constructor(ae,k){this.urlSerializer=ae,this.urlTree=k}lineralizeSegments(ae,k){let le=[],$e=k.root;for(;;){if(le=le.concat($e.segments),0===$e.numberOfChildren)return(0,e.of)(le);if($e.numberOfChildren>1||!$e.children[Ct])return(0,I.$)(new t.wOt(4e3,!1));$e=$e.children[Ct]}}applyRedirectCommands(ae,k,le,$e,mt){if("string"!=typeof k){const yn=k,{queryParams:ln,fragment:si,routeConfig:Fi,url:Ai,outlet:Ro,params:ys,data:Or,title:Hi}=$e,So=(0,t.N4e)(mt,()=>yn({params:ys,data:Or,queryParams:ln,fragment:si,routeConfig:Fi,url:Ai,outlet:Ro,title:Hi}));if(So instanceof et)throw new Ea(So);k=So}const kt=this.applyRedirectCreateUrlTree(k,this.urlSerializer.parse(k),ae,le);if("/"===k[0])throw new Ea(kt);return kt}applyRedirectCreateUrlTree(ae,k,le,$e){const mt=this.createSegmentGroup(ae,k.root,le,$e);return new et(mt,this.createQueryParams(k.queryParams,this.urlTree.queryParams),k.fragment)}createQueryParams(ae,k){const le={};return Object.entries(ae).forEach(([$e,mt])=>{if("string"==typeof mt&&":"===mt[0]){const yn=mt.substring(1);le[$e]=k[yn]}else le[$e]=mt}),le}createSegmentGroup(ae,k,le,$e){const mt=this.createSegments(ae,k.segments,le,$e);let kt={};return Object.entries(k.children).forEach(([yn,ln])=>{kt[yn]=this.createSegmentGroup(ae,ln,le,$e)}),new dt(mt,kt)}createSegments(ae,k,le,$e){return k.map(mt=>":"===mt.path[0]?this.findPosParam(ae,mt,$e):this.findOrReturn(mt,le))}findPosParam(ae,k,le){const $e=le[k.path.substring(1)];if(!$e)throw new t.wOt(4001,!1);return $e}findOrReturn(ae,k){let le=0;for(const $e of k){if($e.path===ae.path)return k.splice(le),$e;le++}return ae}}const na={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function $a(P,ae,k,le,$e){const mt=mr(P,ae,k);return mt.matched?(le=function fr(P,ae){return P.providers&&!P._injector&&(P._injector=(0,t.Ol2)(P.providers,ae,`Route: ${P.path}`)),P._injector??ae}(ae,le),function Ba(P,ae,k,le){const $e=ae.canMatch;if(!$e||0===$e.length)return(0,e.of)(!0);const mt=$e.map(kt=>{const yn=Ms(kt,P);return At(function ki(P){return P&&We(P.canMatch)}(yn)?yn.canMatch(ae,k):(0,t.N4e)(P,()=>yn(ae,k)))});return(0,e.of)(mt).pipe(ho(),yi())}(le,ae,k).pipe((0,J.T)(kt=>!0===kt?mt:{...na}))):(0,e.of)(mt)}function mr(P,ae,k){if("**"===ae.path)return function Ta(P){return{matched:!0,parameters:P.length>0?bt(P).parameters:{},consumedSegments:P,remainingSegments:[],positionalParamSegments:{}}}(k);if(""===ae.path)return"full"===ae.pathMatch&&(P.hasChildren()||k.length>0)?{...na}:{matched:!0,consumedSegments:[],remainingSegments:k,parameters:{},positionalParamSegments:{}};const $e=(ae.matcher||jt)(k,P,ae);if(!$e)return{...na};const mt={};Object.entries($e.posParams??{}).forEach(([yn,ln])=>{mt[yn]=ln.path});const kt=$e.consumed.length>0?{...mt,...$e.consumed[$e.consumed.length-1].parameters}:mt;return{matched:!0,consumedSegments:$e.consumed,remainingSegments:k.slice($e.consumed.length),parameters:kt,positionalParamSegments:$e.posParams??{}}}function Ys(P,ae,k,le){return k.length>0&&function da(P,ae,k){return k.some(le=>wi(P,ae,le)&&Qo(le)!==Ct)}(P,k,le)?{segmentGroup:new dt(ae,_c(le,new dt(k,P.children))),slicedSegments:[]}:0===k.length&&function Wr(P,ae,k){return k.some(le=>wi(P,ae,le))}(P,k,le)?{segmentGroup:new dt(P.segments,hs(P,k,le,P.children)),slicedSegments:k}:{segmentGroup:new dt(P.segments,P.children),slicedSegments:k}}function hs(P,ae,k,le){const $e={};for(const mt of k)if(wi(P,ae,mt)&&!le[Qo(mt)]){const kt=new dt([],{});$e[Qo(mt)]=kt}return{...le,...$e}}function _c(P,ae){const k={};k[Ct]=ae;for(const le of P)if(""===le.path&&Qo(le)!==Ct){const $e=new dt([],{});k[Qo(le)]=$e}return k}function wi(P,ae,k){return(!(P.hasChildren()||ae.length>0)||"full"!==k.pathMatch)&&""===k.path}class ps{}class za{constructor(ae,k,le,$e,mt,kt,yn){this.injector=ae,this.configLoader=k,this.rootComponentType=le,this.config=$e,this.urlTree=mt,this.paramsInheritanceStrategy=kt,this.urlSerializer=yn,this.applyRedirects=new Yr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(ae){return new t.wOt(4002,`'${ae.segmentGroup}'`)}recognize(){const ae=Ys(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(ae).pipe((0,J.T)(({children:k,rootSnapshot:le})=>{const $e=new tn(le,k),mt=new pi("",$e),kt=function ke(P,ae,k=null,le=null){return K(ve(P),ae,k,le)}(le,[],this.urlTree.queryParams,this.urlTree.fragment);return kt.queryParams=this.urlTree.queryParams,mt.url=this.urlSerializer.serialize(kt),{state:mt,tree:kt}}))}match(ae){const k=new qn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Ct,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,ae,Ct,k).pipe((0,J.T)(le=>({children:le,rootSnapshot:k})),(0,Z.W)(le=>{if(le instanceof Ea)return this.urlTree=le.urlTree,this.match(le.urlTree.root);throw le instanceof Hc?this.noMatchError(le):le}))}processSegmentGroup(ae,k,le,$e,mt){return 0===le.segments.length&&le.hasChildren()?this.processChildren(ae,k,le,mt):this.processSegment(ae,k,le,le.segments,$e,!0,mt).pipe((0,J.T)(kt=>kt instanceof tn?[kt]:[]))}processChildren(ae,k,le,$e){const mt=[];for(const kt of Object.keys(le.children))"primary"===kt?mt.unshift(kt):mt.push(kt);return(0,g.H)(mt).pipe((0,H.H)(kt=>{const yn=le.children[kt],ln=function Gs(P,ae){const k=P.filter(le=>Qo(le)===ae);return k.push(...P.filter(le=>Qo(le)!==ae)),k}(k,kt);return this.processSegmentGroup(ae,ln,yn,kt,$e)}),(0,pe.S)((kt,yn)=>(kt.push(...yn),kt)),(0,E.U)(null),function Pt(P,ae){const k=arguments.length>=2;return le=>le.pipe(P?(0,Ie.p)(($e,mt)=>P($e,mt,le)):Be.D,Y(1),k?(0,E.U)(ae):(0,se.v)(()=>new L.G))}(),(0,me.Z)(kt=>{if(null===kt)return Cr(le);const yn=yl(kt);return function Xr(P){P.sort((ae,k)=>ae.value.outlet===Ct?-1:k.value.outlet===Ct?1:ae.value.outlet.localeCompare(k.value.outlet))}(yn),(0,e.of)(yn)}))}processSegment(ae,k,le,$e,mt,kt,yn){return(0,g.H)(k).pipe((0,H.H)(ln=>this.processSegmentAgainstRoute(ln._injector??ae,k,ln,le,$e,mt,kt,yn).pipe((0,Z.W)(si=>{if(si instanceof Hc)return(0,e.of)(null);throw si}))),(0,de.$)(ln=>!!ln),(0,Z.W)(ln=>{if(To(ln))return function Ha(P,ae,k){return 0===ae.length&&!P.children[k]}(le,$e,mt)?(0,e.of)(new ps):Cr(le);throw ln}))}processSegmentAgainstRoute(ae,k,le,$e,mt,kt,yn,ln){return function Ws(P,ae,k,le){return!!(Qo(P)===le||le!==Ct&&wi(ae,k,P))&&mr(ae,P,k).matched}(le,$e,mt,kt)?void 0===le.redirectTo?this.matchSegmentAgainstRoute(ae,$e,le,mt,kt,ln):this.allowRedirects&&yn?this.expandSegmentAgainstRouteUsingRedirect(ae,$e,k,le,mt,kt,ln):Cr($e):Cr($e)}expandSegmentAgainstRouteUsingRedirect(ae,k,le,$e,mt,kt,yn){const{matched:ln,parameters:si,consumedSegments:Fi,positionalParamSegments:Ai,remainingSegments:Ro}=mr(k,$e,mt);if(!ln)return Cr(k);"string"==typeof $e.redirectTo&&"/"===$e.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const ys=new qn(mt,si,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,br($e),Qo($e),$e.component??$e._loadedComponent??null,$e,Ss($e)),Or=Qn(ys,yn,this.paramsInheritanceStrategy);ys.params=Object.freeze(Or.params),ys.data=Object.freeze(Or.data);const Hi=this.applyRedirects.applyRedirectCommands(Fi,$e.redirectTo,Ai,ys,ae);return this.applyRedirects.lineralizeSegments($e,Hi).pipe((0,me.Z)(So=>this.processSegment(ae,le,k,So.concat(Ro),kt,!1,yn)))}matchSegmentAgainstRoute(ae,k,le,$e,mt,kt){const yn=$a(k,le,$e,ae);return"**"===le.path&&(k.children={}),yn.pipe((0,be.n)(ln=>ln.matched?this.getChildConfig(ae=le._injector??ae,le,$e).pipe((0,be.n)(({routes:si})=>{const Fi=le._loadedInjector??ae,{parameters:Ai,consumedSegments:Ro,remainingSegments:ys}=ln,Or=new qn(Ro,Ai,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,br(le),Qo(le),le.component??le._loadedComponent??null,le,Ss(le)),Hi=Qn(Or,kt,this.paramsInheritanceStrategy);Or.params=Object.freeze(Hi.params),Or.data=Object.freeze(Hi.data);const{segmentGroup:So,slicedSegments:er}=Ys(k,Ro,ys,si);if(0===er.length&&So.hasChildren())return this.processChildren(Fi,si,So,Or).pipe((0,J.T)(tr=>new tn(Or,tr)));if(0===si.length&&0===er.length)return(0,e.of)(new tn(Or,[]));const oa=Qo(le)===mt;return this.processSegment(Fi,si,So,er,oa?Ct:mt,!0,Or).pipe((0,J.T)(tr=>new tn(Or,tr instanceof tn?[tr]:[])))})):Cr(k)))}getChildConfig(ae,k,le){return k.children?(0,e.of)({routes:k.children,injector:ae}):k.loadChildren?void 0!==k._loadedRoutes?(0,e.of)({routes:k._loadedRoutes,injector:k._loadedInjector}):function xo(P,ae,k,le){const $e=ae.canLoad;if(void 0===$e||0===$e.length)return(0,e.of)(!0);const mt=$e.map(kt=>{const yn=Ms(kt,P);return At(function sn(P){return P&&We(P.canLoad)}(yn)?yn.canLoad(ae,k):(0,t.N4e)(P,()=>yn(ae,k)))});return(0,e.of)(mt).pipe(ho(),yi())}(ae,k,le).pipe((0,me.Z)($e=>$e?this.configLoader.loadChildren(ae,k).pipe((0,z.M)(mt=>{k._loadedRoutes=mt.routes,k._loadedInjector=mt.injector})):function ua(P){return(0,I.$)(Sr(!1,hn.GuardRejected))}())):(0,e.of)({routes:[],injector:ae})}}function Hu(P){const ae=P.value.routeConfig;return ae&&""===ae.path}function yl(P){const ae=[],k=new Set;for(const le of P){if(!Hu(le)){ae.push(le);continue}const $e=ae.find(mt=>le.value.routeConfig===mt.value.routeConfig);void 0!==$e?($e.children.push(...le.children),k.add($e)):ae.push(le)}for(const le of k){const $e=yl(le.children);ae.push(new tn(le.value,$e))}return ae.filter(le=>!k.has(le))}function br(P){return P.data||{}}function Ss(P){return P.resolve||{}}function jc(P){const ae=P.children.map(k=>jc(k)).flat();return[P,...ae]}function Vi(P){return(0,be.n)(ae=>{const k=P(ae);return k?(0,g.H)(k).pipe((0,J.T)(()=>ae)):(0,e.of)(ae)})}let eo=(()=>{class P{buildTitle(k){let le,$e=k.root;for(;void 0!==$e;)le=this.getResolvedTitleForRoute($e)??le,$e=$e.children.find(mt=>mt.outlet===Ct);return le}getResolvedTitleForRoute(k){return k.data[It]}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(Cc),providedIn:"root"})}return P})(),Cc=(()=>{class P extends eo{constructor(k){super(),this.title=k}updateTitle(k){const le=this.buildTitle(k);void 0!==le&&this.title.setTitle(le)}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(st.hE))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const pa=new t.nKC("",{providedIn:"root",factory:()=>({})});let Uc=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275cmp=t.VBU({type:P,selectors:[["ng-component"]],standalone:!0,features:[t.aNF],decls:1,vars:0,template:function(le,$e){1&le&&t.nrm(0,"router-outlet")},dependencies:[Xi],encapsulation:2})}return P})();function Gc(P){const ae=P.children&&P.children.map(Gc),k=ae?{...P,children:ae}:{...P};return!k.component&&!k.loadComponent&&(ae||k.loadChildren)&&k.outlet&&k.outlet!==Ct&&(k.component=Uc),k}const Os=new t.nKC("");let Ks=(()=>{class P{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.WQX)(t.Ql9)}loadComponent(k){if(this.componentLoaders.get(k))return this.componentLoaders.get(k);if(k._loadedComponent)return(0,e.of)(k._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(k);const le=At(k.loadComponent()).pipe((0,J.T)(bc),(0,z.M)(mt=>{this.onLoadEndListener&&this.onLoadEndListener(k),k._loadedComponent=mt}),(0,wt.j)(()=>{this.componentLoaders.delete(k)})),$e=new X.G(le,()=>new V.B).pipe((0,Le.B)());return this.componentLoaders.set(k,$e),$e}loadChildren(k,le){if(this.childrenLoaders.get(le))return this.childrenLoaders.get(le);if(le._loadedRoutes)return(0,e.of)({routes:le._loadedRoutes,injector:le._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(le);const mt=function co(P,ae,k,le){return At(P.loadChildren()).pipe((0,J.T)(bc),(0,me.Z)($e=>$e instanceof t.Co$||Array.isArray($e)?(0,e.of)($e):(0,g.H)(ae.compileModuleAsync($e))),(0,J.T)($e=>{le&&le(P);let mt,kt,yn=!1;return Array.isArray($e)?(kt=$e,!0):(mt=$e.create(k).injector,kt=mt.get(Os,[],{optional:!0,self:!0}).flat()),{routes:kt.map(Gc),injector:mt}}))}(le,this.compiler,k,this.onLoadEndListener).pipe((0,wt.j)(()=>{this.childrenLoaders.delete(le)})),kt=new X.G(mt,()=>new V.B).pipe((0,Le.B)());return this.childrenLoaders.set(le,kt),kt}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function bc(P){return function Ya(P){return P&&"object"==typeof P&&"default"in P}(P)?P.default:P}let Go=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(Ar),providedIn:"root"})}return P})(),Ar=(()=>{class P{shouldProcessUrl(k){return!0}extract(k){return k}merge(k,le){return k}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const ia=new t.nKC(""),fs=new t.nKC("");function Ma(P,ae,k){const le=P.get(fs),$e=P.get(ne.qQ);return P.get(t.SKi).runOutsideAngular(()=>{if(!$e.startViewTransition||le.skipNextTransition)return le.skipNextTransition=!1,new Promise(si=>setTimeout(si));let mt;const kt=new Promise(si=>{mt=si}),yn=$e.startViewTransition(()=>(mt(),function Ec(P){return new Promise(ae=>{(0,t.mal)({read:()=>setTimeout(ae)},{injector:P})})}(P))),{onViewTransitionCreated:ln}=le;return ln&&(0,t.N4e)(P,()=>ln({transition:yn,from:ae,to:k})),kt})}const W=new t.nKC("");let it=(()=>{class P{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new V.B,this.transitionAbortSubject=new V.B,this.configLoader=(0,t.WQX)(Ks),this.environmentInjector=(0,t.WQX)(t.uvJ),this.urlSerializer=(0,t.WQX)(kn),this.rootContexts=(0,t.WQX)(Ve),this.location=(0,t.WQX)(ne.aZ),this.inputBindingEnabled=null!==(0,t.WQX)(no,{optional:!0}),this.titleStrategy=(0,t.WQX)(eo),this.options=(0,t.WQX)(pa,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,t.WQX)(Go),this.createViewTransition=(0,t.WQX)(ia,{optional:!0}),this.navigationErrorHandler=(0,t.WQX)(W,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,e.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=$e=>this.events.next(new Ni($e)),this.configLoader.onLoadStartListener=$e=>this.events.next(new zi($e))}complete(){this.transitions?.complete()}handleNavigationRequest(k){const le=++this.navigationId;this.transitions?.next({...this.transitions.value,...k,id:le})}setupNavigations(k,le,$e){return this.transitions=new M.t({id:0,currentUrlTree:le,currentRawUrl:le,extractedUrl:this.urlHandlingStrategy.extract(le),urlAfterRedirects:this.urlHandlingStrategy.extract(le),rawUrl:le,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:rr,restoredState:null,currentSnapshot:$e.snapshot,targetSnapshot:null,currentRouterState:$e,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ie.p)(mt=>0!==mt.id),(0,J.T)(mt=>({...mt,extractedUrl:this.urlHandlingStrategy.extract(mt.rawUrl)})),(0,be.n)(mt=>{let kt=!1,yn=!1;return(0,e.of)(mt).pipe((0,be.n)(ln=>{if(this.navigationId>mt.id)return this.cancelNavigationTransition(mt,"",hn.SupersededByNewNavigation),F.w;this.currentTransition=mt,this.currentNavigation={id:ln.id,initialUrl:ln.rawUrl,extractedUrl:ln.extractedUrl,targetBrowserUrl:"string"==typeof ln.extras.browserUrl?this.urlSerializer.parse(ln.extras.browserUrl):ln.extras.browserUrl,trigger:ln.source,extras:ln.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const si=!k.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!si&&"reload"!==(ln.extras.onSameUrlNavigation??k.onSameUrlNavigation)){const Ai="";return this.events.next(new Kn(ln.id,this.urlSerializer.serialize(ln.rawUrl),Ai,Yn.IgnoredSameUrlNavigation)),ln.resolve(!1),F.w}if(this.urlHandlingStrategy.shouldProcessUrl(ln.rawUrl))return(0,e.of)(ln).pipe((0,be.n)(Ai=>{const Ro=this.transitions?.getValue();return this.events.next(new $t(Ai.id,this.urlSerializer.serialize(Ai.extractedUrl),Ai.source,Ai.restoredState)),Ro!==this.transitions?.getValue()?F.w:Promise.resolve(Ai)}),function Ua(P,ae,k,le,$e,mt){return(0,me.Z)(kt=>function ja(P,ae,k,le,$e,mt,kt="emptyOnly"){return new za(P,ae,k,le,$e,kt,mt).recognize()}(P,ae,k,le,kt.extractedUrl,$e,mt).pipe((0,J.T)(({state:yn,tree:ln})=>({...kt,targetSnapshot:yn,urlAfterRedirects:ln}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,k.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,z.M)(Ai=>{mt.targetSnapshot=Ai.targetSnapshot,mt.urlAfterRedirects=Ai.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ai.urlAfterRedirects};const Ro=new gi(Ai.id,this.urlSerializer.serialize(Ai.extractedUrl),this.urlSerializer.serialize(Ai.urlAfterRedirects),Ai.targetSnapshot);this.events.next(Ro)}));if(si&&this.urlHandlingStrategy.shouldProcessUrl(ln.currentRawUrl)){const{id:Ai,extractedUrl:Ro,source:ys,restoredState:Or,extras:Hi}=ln,So=new $t(Ai,this.urlSerializer.serialize(Ro),ys,Or);this.events.next(So);const er=Sn(this.rootComponentType).snapshot;return this.currentTransition=mt={...ln,targetSnapshot:er,urlAfterRedirects:Ro,extras:{...Hi,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Ro,(0,e.of)(mt)}{const Ai="";return this.events.next(new Kn(ln.id,this.urlSerializer.serialize(ln.extractedUrl),Ai,Yn.IgnoredByUrlHandlingStrategy)),ln.resolve(!1),F.w}}),(0,z.M)(ln=>{const si=new ro(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects),ln.targetSnapshot);this.events.next(si)}),(0,J.T)(ln=>(this.currentTransition=mt={...ln,guards:es(ln.targetSnapshot,ln.currentSnapshot,this.rootContexts)},mt)),function ts(P,ae){return(0,me.Z)(k=>{const{targetSnapshot:le,currentSnapshot:$e,guards:{canActivateChecks:mt,canDeactivateChecks:kt}}=k;return 0===kt.length&&0===mt.length?(0,e.of)({...k,guardsResult:!0}):function Ne(P,ae,k,le){return(0,g.H)(P).pipe((0,me.Z)($e=>function Qi(P,ae,k,le,$e){const mt=ae&&ae.routeConfig?ae.routeConfig.canDeactivate:null;if(!mt||0===mt.length)return(0,e.of)(!0);const kt=mt.map(yn=>{const ln=nt(ae)??$e,si=Ms(yn,ln);return At(function fi(P){return P&&We(P.canDeactivate)}(si)?si.canDeactivate(P,ae,k,le):(0,t.N4e)(ln,()=>si(P,ae,k,le))).pipe((0,de.$)())});return(0,e.of)(kt).pipe(ho())}($e.component,$e.route,k,ae,le)),(0,de.$)($e=>!0!==$e,!0))}(kt,le,$e,P).pipe((0,me.Z)(yn=>yn&&function ct(P){return"boolean"==typeof P}(yn)?function je(P,ae,k,le){return(0,g.H)(ae).pipe((0,H.H)($e=>(0,B.x)(function pt(P,ae){return null!==P&&ae&&ae(new so(P)),(0,e.of)(!0)}($e.route.parent,le),function Ce(P,ae){return null!==P&&ae&&ae(new Xo(P)),(0,e.of)(!0)}($e.route,le),function Ii(P,ae,k){const le=ae[ae.length-1],mt=ae.slice(0,ae.length-1).reverse().map(kt=>function Eo(P){const ae=P.routeConfig?P.routeConfig.canActivateChild:null;return ae&&0!==ae.length?{node:P,guards:ae}:null}(kt)).filter(kt=>null!==kt).map(kt=>(0,A.v)(()=>{const yn=kt.guards.map(ln=>{const si=nt(kt.node)??k,Fi=Ms(ln,si);return At(function $n(P){return P&&We(P.canActivateChild)}(Fi)?Fi.canActivateChild(le,P):(0,t.N4e)(si,()=>Fi(le,P))).pipe((0,de.$)())});return(0,e.of)(yn).pipe(ho())}));return(0,e.of)(mt).pipe(ho())}(P,$e.path,k),function Jt(P,ae,k){const le=ae.routeConfig?ae.routeConfig.canActivate:null;if(!le||0===le.length)return(0,e.of)(!0);const $e=le.map(mt=>(0,A.v)(()=>{const kt=nt(ae)??k,yn=Ms(mt,kt);return At(function Bn(P){return P&&We(P.canActivate)}(yn)?yn.canActivate(ae,P):(0,t.N4e)(kt,()=>yn(ae,P))).pipe((0,de.$)())}));return(0,e.of)($e).pipe(ho())}(P,$e.route,k))),(0,de.$)($e=>!0!==$e,!0))}(le,mt,P,ae):(0,e.of)(yn)),(0,J.T)(yn=>({...k,guardsResult:yn})))})}(this.environmentInjector,ln=>this.events.next(ln)),(0,z.M)(ln=>{if(mt.guardsResult=ln.guardsResult,ln.guardsResult&&"boolean"!=typeof ln.guardsResult)throw Jo(0,ln.guardsResult);const si=new vi(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects),ln.targetSnapshot,!!ln.guardsResult);this.events.next(si)}),(0,Ie.p)(ln=>!!ln.guardsResult||(this.cancelNavigationTransition(ln,"",hn.GuardRejected),!1)),Vi(ln=>{if(ln.guards.canActivateChecks.length)return(0,e.of)(ln).pipe((0,z.M)(si=>{const Fi=new pn(si.id,this.urlSerializer.serialize(si.extractedUrl),this.urlSerializer.serialize(si.urlAfterRedirects),si.targetSnapshot);this.events.next(Fi)}),(0,be.n)(si=>{let Fi=!1;return(0,e.of)(si).pipe(function ha(P,ae){return(0,me.Z)(k=>{const{targetSnapshot:le,guards:{canActivateChecks:$e}}=k;if(!$e.length)return(0,e.of)(k);const mt=new Set($e.map(ln=>ln.route)),kt=new Set;for(const ln of mt)if(!kt.has(ln))for(const si of jc(ln))kt.add(si);let yn=0;return(0,g.H)(kt).pipe((0,H.H)(ln=>mt.has(ln)?function Ds(P,ae,k,le){const $e=P.routeConfig,mt=P._resolve;return void 0!==$e?.title&&!Ei($e)&&(mt[It]=$e.title),function Ga(P,ae,k,le){const $e=Hn(P);if(0===$e.length)return(0,e.of)({});const mt={};return(0,g.H)($e).pipe((0,me.Z)(kt=>function yc(P,ae,k,le){const $e=nt(ae)??le,mt=Ms(P,$e);return At(mt.resolve?mt.resolve(ae,k):(0,t.N4e)($e,()=>mt(ae,k)))}(P[kt],ae,k,le).pipe((0,de.$)(),(0,z.M)(yn=>{if(yn instanceof Gr)throw Jo(new Vn,yn);mt[kt]=yn}))),Y(1),(0,vt.u)(mt),(0,Z.W)(kt=>To(kt)?F.w:(0,I.$)(kt)))}(mt,P,ae,le).pipe((0,J.T)(kt=>(P._resolvedData=kt,P.data=Qn(P,P.parent,k).resolve,null)))}(ln,le,P,ae):(ln.data=Qn(ln,ln.parent,P).resolve,(0,e.of)(void 0))),(0,z.M)(()=>yn++),Y(1),(0,me.Z)(ln=>yn===kt.size?(0,e.of)(k):F.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,z.M)({next:()=>Fi=!0,complete:()=>{Fi||this.cancelNavigationTransition(si,"",hn.NoDataFromResolver)}}))}),(0,z.M)(si=>{const Fi=new $i(si.id,this.urlSerializer.serialize(si.extractedUrl),this.urlSerializer.serialize(si.urlAfterRedirects),si.targetSnapshot);this.events.next(Fi)}))}),Vi(ln=>{const si=Fi=>{const Ai=[];Fi.routeConfig?.loadComponent&&!Fi.routeConfig._loadedComponent&&Ai.push(this.configLoader.loadComponent(Fi.routeConfig).pipe((0,z.M)(Ro=>{Fi.component=Ro}),(0,J.T)(()=>{})));for(const Ro of Fi.children)Ai.push(...si(Ro));return Ai};return(0,G.z)(si(ln.targetSnapshot.root)).pipe((0,E.U)(null),(0,Oe.s)(1))}),Vi(()=>this.afterPreactivation()),(0,be.n)(()=>{const{currentSnapshot:ln,targetSnapshot:si}=mt,Fi=this.createViewTransition?.(this.environmentInjector,ln.root,si.root);return Fi?(0,g.H)(Fi).pipe((0,J.T)(()=>mt)):(0,e.of)(mt)}),(0,J.T)(ln=>{const si=function io(P,ae,k){const le=Fn(P,ae._root,k?k._root:void 0);return new bn(le,ae)}(k.routeReuseStrategy,ln.targetSnapshot,ln.currentRouterState);return this.currentTransition=mt={...ln,targetRouterState:si},this.currentNavigation.targetRouterState=si,mt}),(0,z.M)(()=>{this.events.next(new pr)}),((P,ae,k,le)=>(0,J.T)($e=>(new zs(ae,$e.targetRouterState,$e.currentRouterState,k,le).activate(P),$e)))(this.rootContexts,k.routeReuseStrategy,ln=>this.events.next(ln),this.inputBindingEnabled),(0,Oe.s)(1),(0,z.M)({next:ln=>{kt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new mn(ln.id,this.urlSerializer.serialize(ln.extractedUrl),this.urlSerializer.serialize(ln.urlAfterRedirects))),this.titleStrategy?.updateTitle(ln.targetRouterState.snapshot),ln.resolve(!0)},complete:()=>{kt=!0}}),(0,zt.Q)(this.transitionAbortSubject.pipe((0,z.M)(ln=>{throw ln}))),(0,wt.j)(()=>{!kt&&!yn&&this.cancelNavigationTransition(mt,"",hn.SupersededByNewNavigation),this.currentTransition?.id===mt.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Z.W)(ln=>{if(yn=!0,yr(ln))this.events.next(new En(mt.id,this.urlSerializer.serialize(mt.extractedUrl),ln.message,ln.cancellationCode)),function _r(P){return yr(P)&&N(P.url)}(ln)?this.events.next(new fo(ln.url,ln.navigationBehaviorOptions)):mt.resolve(!1);else{const si=new oi(mt.id,this.urlSerializer.serialize(mt.extractedUrl),ln,mt.targetSnapshot??void 0);try{const Fi=(0,t.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(si));if(Fi instanceof Gr){const{message:Ai,cancellationCode:Ro}=Jo(0,Fi);this.events.next(new En(mt.id,this.urlSerializer.serialize(mt.extractedUrl),Ai,Ro)),this.events.next(new fo(Fi.redirectTo,Fi.navigationBehaviorOptions))}else{this.events.next(si);const Ai=k.errorHandler(ln);mt.resolve(!!Ai)}}catch(Fi){this.options.resolveNavigationPromiseOnError?mt.resolve(!1):mt.reject(Fi)}}return F.w}))}))}cancelNavigationTransition(k,le,$e){const mt=new En(k.id,this.urlSerializer.serialize(k.extractedUrl),le,$e);this.events.next(mt),k.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const k=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),le=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return k.toString()!==le?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function Te(P){return P!==rr}let Ge=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(gn),providedIn:"root"})}return P})();class Nt{shouldDetach(ae){return!1}store(ae,k){}shouldAttach(ae){return!1}retrieve(ae){return null}shouldReuseRoute(ae,k){return ae.routeConfig===k.routeConfig}}let gn=(()=>{class P extends Nt{static#e=this.\u0275fac=(()=>{let k;return function($e){return(k||(k=t.xGo(P)))($e||P)}})();static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Pn=(()=>{class P{static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:()=>(0,t.WQX)(hi),providedIn:"root"})}return P})(),hi=(()=>{class P extends Pn{constructor(){super(...arguments),this.location=(0,t.WQX)(ne.aZ),this.urlSerializer=(0,t.WQX)(kn),this.options=(0,t.WQX)(pa,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,t.WQX)(Go),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new et,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Sn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(k){return this.location.subscribe(le=>{"popstate"===le.type&&k(le.url,le.state)})}handleRouterEvent(k,le){if(k instanceof $t)this.stateMemento=this.createStateMemento();else if(k instanceof Kn)this.rawUrlTree=le.initialUrl;else if(k instanceof gi){if("eager"===this.urlUpdateStrategy&&!le.extras.skipLocationChange){const $e=this.urlHandlingStrategy.merge(le.finalUrl,le.initialUrl);this.setBrowserUrl(le.targetBrowserUrl??$e,le)}}else k instanceof pr?(this.currentUrlTree=le.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(le.finalUrl,le.initialUrl),this.routerState=le.targetRouterState,"deferred"===this.urlUpdateStrategy&&!le.extras.skipLocationChange&&this.setBrowserUrl(le.targetBrowserUrl??this.rawUrlTree,le)):k instanceof En&&(k.code===hn.GuardRejected||k.code===hn.NoDataFromResolver)?this.restoreHistory(le):k instanceof oi?this.restoreHistory(le,!0):k instanceof mn&&(this.lastSuccessfulId=k.id,this.currentPageId=this.browserPageId)}setBrowserUrl(k,le){const $e=k instanceof et?this.urlSerializer.serialize(k):k;if(this.location.isCurrentPathEqualTo($e)||le.extras.replaceUrl){const kt={...le.extras.state,...this.generateNgRouterState(le.id,this.browserPageId)};this.location.replaceState($e,"",kt)}else{const mt={...le.extras.state,...this.generateNgRouterState(le.id,this.browserPageId+1)};this.location.go($e,"",mt)}}restoreHistory(k,le=!1){if("computed"===this.canceledNavigationResolution){const mt=this.currentPageId-this.browserPageId;0!==mt?this.location.historyGo(mt):this.currentUrlTree===k.finalUrl&&0===mt&&(this.resetState(k),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(le&&this.resetState(k),this.resetUrlToCurrentUrlTree())}resetState(k){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,k.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(k,le){return"computed"===this.canceledNavigationResolution?{navigationId:k,\u0275routerPageId:le}:{navigationId:k}}static#e=this.\u0275fac=(()=>{let k;return function($e){return(k||(k=t.xGo(P)))($e||P)}})();static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();var yo=function(P){return P[P.COMPLETE=0]="COMPLETE",P[P.FAILED=1]="FAILED",P[P.REDIRECTING=2]="REDIRECTING",P}(yo||{});function Gi(P,ae){P.events.pipe((0,Ie.p)(k=>k instanceof mn||k instanceof En||k instanceof oi||k instanceof Kn),(0,J.T)(k=>k instanceof mn||k instanceof Kn?yo.COMPLETE:k instanceof En&&(k.code===hn.Redirect||k.code===hn.SupersededByNewNavigation)?yo.REDIRECTING:yo.FAILED),(0,Ie.p)(k=>k!==yo.REDIRECTING),(0,Oe.s)(1)).subscribe(()=>{ae()})}function zo(P){throw P}const Xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Io={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wi=(()=>{class P{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=(0,t.WQX)(t.H3F),this.stateManager=(0,t.WQX)(Pn),this.options=(0,t.WQX)(pa,{optional:!0})||{},this.pendingTasks=(0,t.WQX)(t.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,t.WQX)(it),this.urlSerializer=(0,t.WQX)(kn),this.location=(0,t.WQX)(ne.aZ),this.urlHandlingStrategy=(0,t.WQX)(Go),this._events=new V.B,this.errorHandler=this.options.errorHandler||zo,this.navigated=!1,this.routeReuseStrategy=(0,t.WQX)(Ge),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,t.WQX)(Os,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,t.WQX)(no,{optional:!0}),this.eventsSubscription=new x.yU,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:k=>{this.console.warn(k)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const k=this.navigationTransitions.events.subscribe(le=>{try{const $e=this.navigationTransitions.currentTransition,mt=this.navigationTransitions.currentNavigation;if(null!==$e&&null!==mt)if(this.stateManager.handleRouterEvent(le,mt),le instanceof En&&le.code!==hn.Redirect&&le.code!==hn.SupersededByNewNavigation)this.navigated=!0;else if(le instanceof mn)this.navigated=!0;else if(le instanceof fo){const kt=le.navigationBehaviorOptions,yn=this.urlHandlingStrategy.merge(le.url,$e.currentRawUrl),ln={browserUrl:$e.extras.browserUrl,info:$e.extras.info,skipLocationChange:$e.extras.skipLocationChange,replaceUrl:$e.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Te($e.source),...kt};this.scheduleNavigation(yn,rr,null,ln,{resolve:$e.resolve,reject:$e.reject,promise:$e.promise})}(function Qr(P){return!(P instanceof pr||P instanceof fo)})(le)&&this._events.next(le)}catch($e){this.navigationTransitions.transitionAbortSubject.next($e)}});this.eventsSubscription.add(k)}resetRootComponentType(k){this.routerState.root.component=k,this.navigationTransitions.rootComponentType=k}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),rr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((k,le)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(k,"popstate",le)},0)})}navigateToSyncWithBrowser(k,le,$e){const mt={replaceUrl:!0},kt=$e?.navigationId?$e:null;if($e){const ln={...$e};delete ln.navigationId,delete ln.\u0275routerPageId,0!==Object.keys(ln).length&&(mt.state=ln)}const yn=this.parseUrl(k);this.scheduleNavigation(yn,le,kt,mt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(k){this.config=k.map(Gc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(k,le={}){const{relativeTo:$e,queryParams:mt,fragment:kt,queryParamsHandling:yn,preserveFragment:ln}=le,si=ln?this.currentUrlTree.fragment:kt;let Ai,Fi=null;switch(yn){case"merge":Fi={...this.currentUrlTree.queryParams,...mt};break;case"preserve":Fi=this.currentUrlTree.queryParams;break;default:Fi=mt||null}null!==Fi&&(Fi=this.removeEmptyProps(Fi));try{Ai=ve($e?$e.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof k[0]||"/"!==k[0][0])&&(k=[]),Ai=this.currentUrlTree.root}return K(Ai,k,Fi,si??null)}navigateByUrl(k,le={skipLocationChange:!1}){const $e=N(k)?k:this.parseUrl(k),mt=this.urlHandlingStrategy.merge($e,this.rawUrlTree);return this.scheduleNavigation(mt,rr,null,le)}navigate(k,le={skipLocationChange:!1}){return function Ao(P){for(let ae=0;ae(null!=mt&&(le[$e]=mt),le),{})}scheduleNavigation(k,le,$e,mt,kt){if(this.disposed)return Promise.resolve(!1);let yn,ln,si;kt?(yn=kt.resolve,ln=kt.reject,si=kt.promise):si=new Promise((Ai,Ro)=>{yn=Ai,ln=Ro});const Fi=this.pendingTasks.add();return Gi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Fi))}),this.navigationTransitions.handleNavigationRequest({source:le,restoredState:$e,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:k,extras:mt,resolve:yn,reject:ln,promise:si,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),si.catch(Ai=>Promise.reject(Ai))}static#e=this.\u0275fac=function(le){return new(le||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Rr=(()=>{class P{constructor(k,le,$e,mt,kt,yn){this.router=k,this.route=le,this.tabIndexAttribute=$e,this.renderer=mt,this.el=kt,this.locationStrategy=yn,this.href=null,this.onChanges=new V.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const ln=kt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ln||"area"===ln,this.isAnchorElement?this.subscription=k.events.subscribe(si=>{si instanceof mn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(k){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",k)}ngOnChanges(k){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(k){null==k?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=N(k)||Array.isArray(k)?k:[k],this.setTabIndexIfNotOnNativeEl("0"))}onClick(k,le,$e,mt,kt){const yn=this.urlTree;return!!(null===yn||this.isAnchorElement&&(0!==k||le||$e||mt||kt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(yn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const k=this.urlTree;this.href=null!==k&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(k)):null;const le=null===this.href?null:(0,t.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",le)}applyAttributeValue(k,le){const $e=this.renderer,mt=this.el.nativeElement;null!==le?$e.setAttribute(mt,k,le):$e.removeAttribute(mt,k)}get urlTree(){return null===this.routerLinkInput?null:N(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(le){return new(le||P)(t.rXU(Wi),t.rXU(xn),t.kS0("tabindex"),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(ne.hb))};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(le,$e){1&le&&t.bIt("click",function(kt){return $e.onClick(kt.button,kt.ctrlKey,kt.shiftKey,kt.altKey,kt.metaKey)}),2&le&&t.BMQ("target",$e.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",t.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",t.L39],replaceUrl:[2,"replaceUrl","replaceUrl",t.L39],routerLink:"routerLink"},standalone:!0,features:[t.GFd,t.OA$]})}return P})(),Is=(()=>{class P{get isActive(){return this._isActive}constructor(k,le,$e,mt,kt){this.router=k,this.element=le,this.renderer=$e,this.cdr=mt,this.link=kt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.bkB,this.routerEventsSubscription=k.events.subscribe(yn=>{yn instanceof mn&&this.update()})}ngAfterContentInit(){(0,e.of)(this.links.changes,(0,e.of)(null)).pipe((0,xt.U)()).subscribe(k=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const k=[...this.links.toArray(),this.link].filter(le=>!!le).map(le=>le.onChanges);this.linkInputChangesSubscription=(0,g.H)(k).pipe((0,xt.U)()).subscribe(le=>{this._isActive!==this.isLinkActive(this.router)(le)&&this.update()})}set routerLinkActive(k){const le=Array.isArray(k)?k:k.split(" ");this.classes=le.filter($e=>!!$e)}ngOnChanges(k){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const k=this.hasActiveLinks();this.classes.forEach(le=>{k?this.renderer.addClass(this.element.nativeElement,le):this.renderer.removeClass(this.element.nativeElement,le)}),k&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==k&&(this._isActive=k,this.cdr.markForCheck(),this.isActiveChange.emit(k))})}isLinkActive(k){const le=function ms(P){return!!P.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return $e=>{const mt=$e.urlTree;return!!mt&&k.isActive(mt,le)}}hasActiveLinks(){const k=this.isLinkActive(this.router);return this.link&&k(this.link)||this.links.some(k)}static#e=this.\u0275fac=function(le){return new(le||P)(t.rXU(Wi),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(Rr,8))};static#t=this.\u0275dir=t.FsC({type:P,selectors:[["","routerLinkActive",""]],contentQueries:function(le,$e,mt){if(1&le&&t.wni(mt,Rr,5),2&le){let kt;t.mGM(kt=t.lsd())&&($e.links=kt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.OA$]})}return P})();class Br{}let Tc=(()=>{class P{constructor(k,le,$e,mt,kt){this.router=k,this.injector=$e,this.preloadingStrategy=mt,this.loader=kt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ie.p)(k=>k instanceof mn),(0,H.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(k,le){const $e=[];for(const mt of le){mt.providers&&!mt._injector&&(mt._injector=(0,t.Ol2)(mt.providers,k,`Route: ${mt.path}`));const kt=mt._injector??k,yn=mt._loadedInjector??kt;(mt.loadChildren&&!mt._loadedRoutes&&void 0===mt.canLoad||mt.loadComponent&&!mt._loadedComponent)&&$e.push(this.preloadConfig(kt,mt)),(mt.children||mt._loadedRoutes)&&$e.push(this.processRoutes(yn,mt.children??mt._loadedRoutes))}return(0,g.H)($e).pipe((0,xt.U)())}preloadConfig(k,le){return this.preloadingStrategy.preload(le,()=>{let $e;$e=le.loadChildren&&void 0===le.canLoad?this.loader.loadChildren(k,le):(0,e.of)(null);const mt=$e.pipe((0,me.Z)(kt=>null===kt?(0,e.of)(void 0):(le._loadedRoutes=kt.routes,le._loadedInjector=kt.injector,this.processRoutes(kt.injector??k,kt.routes))));if(le.loadComponent&&!le._loadedComponent){const kt=this.loader.loadComponent(le);return(0,g.H)([mt,kt]).pipe((0,xt.U)())}return mt})}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(Wi),t.KVO(t.Ql9),t.KVO(t.uvJ),t.KVO(Br),t.KVO(Ks))};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const ws=new t.nKC("");let zc=(()=>{class P{constructor(k,le,$e,mt,kt={}){this.urlSerializer=k,this.transitions=le,this.viewportScroller=$e,this.zone=mt,this.options=kt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},kt.scrollPositionRestoration||="disabled",kt.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(k=>{k instanceof $t?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=k.navigationTrigger,this.restoredId=k.restoredState?k.restoredState.navigationId:0):k instanceof mn?(this.lastId=k.id,this.scheduleScrollEvent(k,this.urlSerializer.parse(k.urlAfterRedirects).fragment)):k instanceof Kn&&k.code===Yn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(k,this.urlSerializer.parse(k.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(k=>{k instanceof qo&&(k.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(k.position):k.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(k.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(k,le){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new qo(k,"popstate"===this.lastSource?this.store[this.restoredId]:null,le))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(le){t.QTQ()};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac})}return P})();function to(P,ae){return{\u0275kind:P,\u0275providers:ae}}function Yc(){const P=(0,t.WQX)(t.zZn);return ae=>{const k=P.get(t.o8S);if(ae!==k.components[0])return;const le=P.get(Wi),$e=P.get(Gu);1===P.get(Dr)&&le.initialNavigation(),P.get(Mc,null,t.$GK.Optional)?.setUpPreloading(),P.get(ws,null,t.$GK.Optional)?.init(),le.resetRootComponentType(k.componentTypes[0]),$e.closed||($e.next(),$e.complete(),$e.unsubscribe())}}const Gu=new t.nKC("",{factory:()=>new V.B}),Dr=new t.nKC("",{providedIn:"root",factory:()=>1}),Mc=new t.nKC("");function Jr(P){return to(0,[{provide:Mc,useExisting:Tc},{provide:Br,useExisting:P}])}function ma(P){return to(9,[{provide:ia,useValue:Ma},{provide:fs,useValue:{skipNextTransition:!!P?.skipInitialTransition,...P}}])}const Ps=new t.nKC("ROUTER_FORROOT_GUARD"),Fs=[ne.aZ,{provide:kn,useClass:Vn},Wi,Ve,{provide:xn,useFactory:function ns(P){return P.routerState.root},deps:[Wi]},Ks,[]];let au=(()=>{class P{constructor(k){}static forRoot(k,le){return{ngModule:P,providers:[Fs,[],{provide:Os,multi:!0,useValue:k},{provide:Ps,useFactory:Da,deps:[[Wi,new t.Xx1,new t.kdw]]},{provide:pa,useValue:le||{}},le?.useHash?{provide:ne.hb,useClass:ne.fw}:{provide:ne.hb,useClass:ne.Sm},{provide:ws,useFactory:()=>{const P=(0,t.WQX)(ne.Xr),ae=(0,t.WQX)(t.SKi),k=(0,t.WQX)(pa),le=(0,t.WQX)(it),$e=(0,t.WQX)(kn);return k.scrollOffset&&P.setOffset(k.scrollOffset),new zc($e,le,P,ae,k)}},le?.preloadingStrategy?Jr(le.preloadingStrategy).\u0275providers:[],le?.initialNavigation?Qc(le):[],le?.bindToComponentInputs?to(8,[ao,{provide:no,useExisting:ao}]).\u0275providers:[],le?.enableViewTransitions?ma().\u0275providers:[],[{provide:Sc,useFactory:Yc},{provide:t.iLQ,multi:!0,useExisting:Sc}]]}}static forChild(k){return{ngModule:P,providers:[{provide:Os,multi:!0,useValue:k}]}}static#e=this.\u0275fac=function(le){return new(le||P)(t.KVO(Ps,8))};static#t=this.\u0275mod=t.$C({type:P});static#n=this.\u0275inj=t.G2t({})}return P})();function Da(P){return"guarded"}function Qc(P){return["disabled"===P.initialNavigation?to(3,[{provide:t.hnV,multi:!0,useFactory:()=>{const ae=(0,t.WQX)(Wi);return()=>{ae.setUpLocationChangeListener()}}},{provide:Dr,useValue:2}]).\u0275providers:[],"enabledBlocking"===P.initialNavigation?to(2,[{provide:Dr,useValue:0},{provide:t.hnV,multi:!0,deps:[t.zZn],useFactory:ae=>{const k=ae.get(ne.hj,Promise.resolve());return()=>k.then(()=>new Promise(le=>{const $e=ae.get(Wi),mt=ae.get(Gu);Gi($e,()=>{le(!0)}),ae.get(it).afterPreactivation=()=>(le(!0),mt.closed?(0,e.of)(void 0):mt),$e.initialNavigation()}))}}]).\u0275providers:[]]}const Sc=new t.nKC("")},8167:(Rt,De,c)=>{c.d(De,{$ix:()=>xs,DT4:()=>Si,DXx:()=>Ni,Dnx:()=>kc,FmF:()=>rn,HCk:()=>zi,HSk:()=>Sp,Hb1:()=>k1,Hcp:()=>ro,KKJ:()=>vc,MTO:()=>Kr,MxV:()=>tc,N$r:()=>Gn,Nk1:()=>Xr,O9N:()=>ao,OgO:()=>ds,PR6:()=>Hl,QQ_:()=>gs,R9X:()=>ys,RR4:()=>wp,SFT:()=>K,U1s:()=>fs,U97:()=>Ri,XEL:()=>pn,XTv:()=>b0,XkU:()=>Vt,Y6F:()=>da,Z1x:()=>ze,a5L:()=>B4,aB7:()=>jn,cuh:()=>cu,drJ:()=>yc,eNq:()=>kp,eiI:()=>pc,ekG:()=>Js,f0d:()=>yi,gA6:()=>al,gZ6:()=>Np,hl9:()=>Pc,iOx:()=>Ft,j4r:()=>oo,kGj:()=>ku,lWl:()=>Cr,qZ3:()=>o0,rHI:()=>ve,rXM:()=>$a,wx$:()=>cp,zt9:()=>yt});const Vt={name:"bars",theme:"outline",icon:''},ze={name:"calendar",theme:"outline",icon:''},ve={name:"caret-down",theme:"fill",icon:''},K={name:"caret-down",theme:"outline",icon:''},Ft={name:"caret-up",theme:"fill",icon:''},rn={name:"caret-up",theme:"outline",icon:''},jn={name:"check-circle",theme:"fill",icon:''},Gn={name:"check-circle",theme:"outline",icon:''},ro={name:"close-circle",theme:"outline",icon:''},pn={name:"close",theme:"outline",icon:''},zi={name:"check",theme:"outline",icon:''},Ni={name:"clock-circle",theme:"outline",icon:''},ao={name:"copy",theme:"outline",icon:''},ds={name:"delete",theme:"outline",icon:''},yi={name:"dashboard",theme:"outline",icon:''},Cr={name:"double-left",theme:"outline",icon:''},vc={name:"double-right",theme:"outline",icon:''},$a={name:"down",theme:"outline",icon:''},da={name:"close-circle",theme:"fill",icon:''},Kr={name:"ellipsis",theme:"outline",icon:''},Xr={name:"edit",theme:"outline",icon:''},yc={name:"exclamation-circle",theme:"fill",icon:''},fs={name:"eye",theme:"outline",icon:''},gs={name:"file",theme:"fill",icon:''},xs={name:"file",theme:"outline",icon:''},cu={name:"filter",theme:"fill",icon:''},ys={name:"form",theme:"outline",icon:''},Ri={name:"info-circle",theme:"fill",icon:''},Js={name:"exclamation-circle",theme:"outline",icon:''},Si={name:"info-circle",theme:"outline",icon:''},al={name:"left",theme:"outline",icon:''},Pc={name:"loading",theme:"outline",icon:''},Hl={name:"menu-fold",theme:"outline",icon:''},tc={name:"menu-unfold",theme:"outline",icon:''},oo={name:"paper-clip",theme:"outline",icon:''},kc={name:"question-circle",theme:"outline",icon:''},ku={name:"rotate-right",theme:"outline",icon:''},k1={name:"right",theme:"outline",icon:''},yt={name:"search",theme:"outline",icon:''},pc={name:"star",theme:"fill",icon:''},cp={name:"swap",theme:"outline",icon:''},B4={name:"swap-right",theme:"outline",icon:''},o0={name:"up",theme:"outline",icon:''},Sp={name:"rotate-left",theme:"outline",icon:''},wp={name:"vertical-align-top",theme:"outline",icon:''},b0={name:"zoom-in",theme:"outline",icon:''},Np={name:"zoom-out",theme:"outline",icon:''},kp={name:"upload",theme:"outline",icon:''}},4141:(Rt,De,c)=>{c.d(De,{MS:()=>G,UT:()=>L,WR:()=>M,bl:()=>r});var t=c(2081),r=new t.DX,g=new WeakMap;function e(A){var w=g.get(A);return w||g.set(A,w={vars:new Set,dep:(0,t.yN)()}),w}function M(A){e(A).vars.forEach(function(w){return w.forgetCache(A)})}function G(A){e(A).vars.forEach(function(w){return w.attachCache(A)})}function L(A){var w=new Set,I=new Set,F=function(V){if(arguments.length>0){if(A!==V){A=V,w.forEach(function(J){e(J).dep.dirty(F),function B(A){A.broadcastWatches&&A.broadcastWatches()}(J)});var x=Array.from(I);I.clear(),x.forEach(function(J){return J(A)})}}else{var ne=r.getValue();ne&&(X(ne),e(ne).dep(F))}return A};F.onNextChange=function(V){return I.add(V),function(){I.delete(V)}};var X=F.attachCache=function(V){return w.add(V),e(V).vars.add(F),F};return F.forgetCache=function(V){return w.delete(V)},F}},9471:(Rt,De,c)=>{c.d(De,{a:()=>L});var t=c(4626),r=c(9860),g=c(4229),e=c(6108),M=c(4183),G=c(1367);function L(I,F,X,V){var x=F.data,ne=(0,t.Tt)(F,["data"]),J=X.data,be=(0,t.Tt)(X,["data"]);return(0,r.A)(ne,be)&&B((0,g.Vn)(I).selectionSet,x,J,{fragmentMap:(0,e.JG)((0,g.zK)(I)),variables:V})}function B(I,F,X,V){if(F===X)return!0;var x=new Set;return I.selections.every(function(ne){if(x.has(ne)||(x.add(ne),!(0,M.MS)(ne,V.variables))||A(ne))return!0;if((0,G.dt)(ne)){var J=(0,G.ue)(ne),be=F&&F[J],Oe=X&&X[J],he=ne.selectionSet;if(!he)return(0,r.A)(be,Oe);var Ie=Array.isArray(be),me=Array.isArray(Oe);if(Ie!==me)return!1;if(Ie&&me){var de=be.length;if(Oe.length!==de)return!1;for(var H=0;H{c.d(De,{C:()=>I});var t=c(1404),r=c(7994),g=c(4626),M=c(4229);function B(F,X){return X?X(F):r.c.of()}function A(F){return"function"==typeof F?new I(F):F}function w(F){return F.request.length<=1}var I=function(){function F(X){X&&(this.request=X)}return F.empty=function(){return new F(function(){return r.c.of()})},F.from=function(X){return 0===X.length?F.empty():X.map(A).reduce(function(V,x){return V.concat(x)})},F.split=function(X,V,x){var be,ne=A(V),J=A(x||new F(B));return be=w(ne)&&w(J)?new F(function(Oe){return X(Oe)?ne.request(Oe)||r.c.of():J.request(Oe)||r.c.of()}):new F(function(Oe,he){return X(Oe)?ne.request(Oe,he)||r.c.of():J.request(Oe,he)||r.c.of()}),Object.assign(be,{left:ne,right:J})},F.execute=function(X,V){return X.request(function e(F,X){var V=(0,g.Cl)({},F);return Object.defineProperty(X,"setContext",{enumerable:!1,value:function(J){V=(0,g.Cl)((0,g.Cl)({},V),"function"==typeof J?J(V):J)}}),Object.defineProperty(X,"getContext",{enumerable:!1,value:function(){return(0,g.Cl)({},V)}}),X}(V.context,function G(F){var X={variables:F.variables||{},extensions:F.extensions||{},operationName:F.operationName,query:F.query};return X.operationName||(X.operationName="string"!=typeof X.query?(0,M.n4)(X.query)||void 0:""),X}(function L(F){for(var X=["query","operationName","variables","extensions","context"],V=0,x=Object.keys(F);V{c.d(De,{A:()=>M,V:()=>G});var t=c(9055),r=c(6476),g=new WeakSet;function e(L){L.size<=(L.max||-1)||g.has(L)||(g.add(L),setTimeout(function(){L.clean(),g.delete(L)},100))}var M=function(L,B){var A=new t.l(L,B);return A.set=function(w,I){var F=t.l.prototype.set.call(this,w,I);return e(this),F},A},G=function(L,B){var A=new r.C(L,B);return A.set=function(w,I){var F=r.C.prototype.set.call(this,w,I);return e(this),F},A}},8782:(Rt,De,c)=>{c.d(De,{D_:()=>e,cM:()=>G,ep:()=>M,tQ:()=>L});var t=c(4626),r=c(2151),g={};function e(be,Oe){g[be]=Oe}var M=!1!==globalThis.__DEV__?function A(){var be,Oe,he,Ie,me;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(Oe){var he=Oe[0];return[he,r.v[he]||Oe[1]]})),sizes:(0,t.Cl)({print:null===(be=g.print)||void 0===be?void 0:be.call(g),parser:null===(Oe=g.parser)||void 0===Oe?void 0:Oe.call(g),canonicalStringify:null===(he=g.canonicalStringify)||void 0===he?void 0:he.call(g),links:J(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:x(this.queryManager.documentTransform)}},null===(me=(Ie=this.cache).getMemoryInternals)||void 0===me?void 0:me.call(Ie))}}:void 0,G=!1!==globalThis.__DEV__?function I(){var be=this.config.fragments;return(0,t.Cl)((0,t.Cl)({},w.apply(this)),{addTypenameDocumentTransform:x(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:X(this.storeReader.executeSelectionSet),executeSubSelectedArray:X(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:X(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:X(be?.findFragmentSpreads),lookup:X(be?.lookup),transform:X(be?.transform)}})}:void 0,L=!1!==globalThis.__DEV__?w:void 0;function w(){return{cache:{fragmentQueryDocuments:X(this.getFragmentDoc)}}}function X(be){return function F(be){return!!be&&"dirtyKey"in be}(be)?be.size:void 0}function V(be){return null!=be}function x(be){return ne(be).map(function(Oe){return{cache:Oe}})}function ne(be){return be?(0,t.fX)((0,t.fX)([X(be?.performWork)],ne(be?.left),!0),ne(be?.right),!0).filter(V):[]}function J(be){var Oe;return be?(0,t.fX)((0,t.fX)([null===(Oe=be?.getMemoryInternals)||void 0===Oe?void 0:Oe.call(be)],J(be?.left),!0),J(be?.right),!0).filter(V):[]}},2151:(Rt,De,c)=>{c.d(De,{v:()=>e});var t=c(4626),r=c(1404),g=Symbol.for("apollo.cacheSize"),e=(0,t.Cl)({},r.Sf[g])},7715:(Rt,De,c)=>{c.d(De,{E:()=>r,c:()=>t});var t=Array.isArray;function r(g){return Array.isArray(g)&&g.length>0}},6500:(Rt,De,c)=>{c.d(De,{En:()=>e,et:()=>g,ol:()=>M,uJ:()=>G});var t=c(1404),r="ReactNative"==(0,t.no)(function(){return navigator.product}),g="function"==typeof WeakMap&&!(r&&!global.HermesInternal),e="function"==typeof WeakSet,M="function"==typeof Symbol&&"function"==typeof Symbol.for,G=M&&Symbol.asyncIterator;(0,t.no)(function(){return window.document.createElement}),(0,t.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},2130:(Rt,De,c)=>{c.d(De,{M:()=>e});var M,t=c(2170),r=c(2151),g=c(8782),e=Object.assign(function(A){return JSON.stringify(A,G)},{reset:function(){M=new t.V(r.v.canonicalStringify||1e3)}});function G(B,A){if(A&&"object"==typeof A){var w=Object.getPrototypeOf(A);if(w===Object.prototype||null===w){var I=Object.keys(A);if(I.every(L))return A;var F=JSON.stringify(I),X=M.get(F);if(!X){I.sort();var V=JSON.stringify(I);X=M.get(V)||I,M.set(F,X),M.set(V,X)}var x=Object.create(w);return X.forEach(function(ne){x[ne]=A[ne]}),x}}return A}function L(B,A,w){return 0===A||w[A-1]<=B}!1!==globalThis.__DEV__&&(0,g.D_)("canonicalStringify",function(){return M.size}),e.reset()},4246:(Rt,De,c)=>{c.d(De,{m:()=>r});var t=Object.prototype.toString;function r(e){return g(e)}function g(e,M){switch(t.call(e)){case"[object Array]":if((M=M||new Map).has(e))return M.get(e);var G=e.slice(0);return M.set(e,G),G.forEach(function(B,A){G[A]=g(B,M)}),G;case"[object Object]":if((M=M||new Map).has(e))return M.get(e);var L=Object.create(Object.getPrototypeOf(e));return M.set(e,L),Object.keys(e).forEach(function(B){L[B]=g(e[B],M)}),L;default:return e}}},120:(Rt,De,c)=>{function t(){for(var r=[],g=0;gt})},9977:(Rt,De,c)=>{c.d(De,{v:()=>r});var t=new Map;function r(g){var e=t.get(g)||1;return t.set(g,e+1),"".concat(g,":").concat(e,":").concat(Math.random().toString(36).slice(2))}},1115:(Rt,De,c)=>{c.d(De,{D9:()=>e,IM:()=>M,ZI:()=>L});var t=c(4626),r=c(1181),g=Object.prototype.hasOwnProperty;function e(){for(var B=[],A=0;A1)for(var I=new L,F=1;F{function t(g){return null!==g&&"object"==typeof g}c.d(De,{U:()=>t})},1687:(Rt,De,c)=>{c.d(De,{p:()=>r});var t=c(9977);function r(g,e){void 0===e&&(e=0);var M=(0,t.v)("stringifyForDisplay");return JSON.stringify(g,function(G,L){return void 0===L?M:L},e).split(JSON.stringify(M)).join("")}},1404:(Rt,De,c)=>{c.d(De,{Sf:()=>st,V1:()=>Tt,no:()=>xt,vA:()=>en});var t=function(bt,At){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Et,Ot){Et.__proto__=Ot}||function(Et,Ot){for(var Wt in Ot)Object.prototype.hasOwnProperty.call(Ot,Wt)&&(Et[Wt]=Ot[Wt])})(bt,At)},E="Invariant Violation",S=Object.setPrototypeOf,R=void 0===S?function(bt,At){return bt.__proto__=At,bt}:S,Y=function(bt){function At(Et){void 0===Et&&(Et=E);var Ot=bt.call(this,"number"==typeof Et?E+": "+Et+" (see https://github.com/apollographql/invariant-packages)":Et)||this;return Ot.framesToPop=1,Ot.name=E,R(Ot,At.prototype),Ot}return function r(bt,At){if("function"!=typeof At&&null!==At)throw new TypeError("Class extends value "+String(At)+" is not a constructor or null");function Et(){this.constructor=bt}t(bt,At),bt.prototype=null===At?Object.create(At):(Et.prototype=At.prototype,new Et)}(At,bt),At}(Error);function se(bt,At){if(!bt)throw new Y(At)}var bt,Be=["debug","log","warn","error","silent"],Pt=Be.indexOf("log");function vt(bt){return function(){if(Be.indexOf(bt)>=Pt)return(console[bt]||console.log).apply(console,arguments)}}(bt=se||(se={})).debug=vt("debug"),bt.log=vt("log"),bt.warn=vt("warn"),bt.error=vt("error");var zt=c(560);function xt(bt){try{return bt()}catch{}}const st=xt(function(){return globalThis})||xt(function(){return window})||xt(function(){return self})||xt(function(){return global})||xt(function(){return xt.constructor("return this")()});var Ct=c(1687);function It(bt){return function(At){for(var Et=[],Ot=1;Ot"}}function fn(bt,At){if(void 0===At&&(At=[]),bt)return st[jt]&&st[jt](bt,At.map(Vt))}function Hn(bt,At){if(void 0===At&&(At=[]),bt)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:zt.r,message:bt,args:At.map(Vt)})))}globalThis},8926:(Rt,De,c)=>{c.d(De,{c:()=>A});var t=c(4420),r=c(6500),g=c(4229),e=c(1404),M=c(9055),G=c(2081),L=c(2151);function B(w){return w}var A=function(){function w(I,F){void 0===F&&(F=Object.create(null)),this.resultCache=r.En?new WeakSet:new Set,this.transform=I,F.getCacheKey&&(this.getCacheKey=F.getCacheKey),this.cached=!1!==F.cache,this.resetCache()}return w.prototype.getCacheKey=function(I){return[I]},w.identity=function(){return new w(B,{cache:!1})},w.split=function(I,F,X){return void 0===X&&(X=w.identity()),Object.assign(new w(function(V){return(I(V)?F:X).transformDocument(V)},{cache:!1}),{left:F,right:X})},w.prototype.resetCache=function(){var I=this;if(this.cached){var F=new t.b(r.et);this.performWork=(0,G.LV)(w.prototype.performWork.bind(this),{makeCacheKey:function(X){var V=I.getCacheKey(X);if(V)return(0,e.V1)(Array.isArray(V),68),F.lookupArray(V)},max:L.v["documentTransform.cache"],cache:M.l})}},w.prototype.performWork=function(I){return(0,g.sw)(I),this.transform(I)},w.prototype.transformDocument=function(I){if(this.resultCache.has(I))return I;var F=this.performWork(I);return this.resultCache.add(F),F},w.prototype.concat=function(I){var F=this;return Object.assign(new w(function(X){return I.transformDocument(F.transformDocument(X))},{cache:!1}),{left:this,right:I})},w}()},4183:(Rt,De,c)=>{c.d(De,{MS:()=>g,d8:()=>L,f2:()=>B});var t=c(1404),r=c(8540);function g(I,F){var X=I.directives;return!X||!X.length||function w(I){var F=[];return I&&I.length&&I.forEach(function(X){if(function A(I){var F=I.name.value;return"skip"===F||"include"===F}(X)){var V=X.arguments,x=X.name.value;(0,t.V1)(V&&1===V.length,70,x);var ne=V[0];(0,t.V1)(ne.name&&"if"===ne.name.value,71,x);var J=ne.value;(0,t.V1)(J&&("Variable"===J.kind||"BooleanValue"===J.kind),72,x),F.push({directive:X,ifArgument:ne})}}),F}(X).every(function(V){var x=V.directive,ne=V.ifArgument,J=!1;return"Variable"===ne.value.kind?(0,t.V1)(void 0!==(J=F&&F[ne.value.name.value]),69,x.name.value):J=ne.value.value,"skip"===x.name.value?!J:J})}function L(I,F,X){var V=new Set(I),x=V.size;return(0,r.YR)(F,{Directive:function(ne){if(V.delete(ne.name.value)&&(!X||!V.size))return r.sP}}),X?!V.size:V.size{c.d(De,{HQ:()=>M,JG:()=>e,ct:()=>g});var t=c(4626),r=c(1404);function g(G,L){var B=L,A=[];return G.definitions.forEach(function(I){if("OperationDefinition"===I.kind)throw(0,r.vA)(73,I.operation,I.name?" named '".concat(I.name.value,"'"):"");"FragmentDefinition"===I.kind&&A.push(I)}),typeof B>"u"&&((0,r.V1)(1===A.length,74,A.length),B=A[0].name.value),(0,t.Cl)((0,t.Cl)({},G),{definitions:(0,t.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:B}}]}}],G.definitions,!0)})}function e(G){void 0===G&&(G=[]);var L={};return G.forEach(function(B){L[B.name.value]=B}),L}function M(G,L){switch(G.kind){case"InlineFragment":return G;case"FragmentSpread":var B=G.name.value;if("function"==typeof L)return L(B);var A=L&&L[B];return(0,r.V1)(A,75,B),A||null;default:return null}}},4229:(Rt,De,c)=>{c.d(De,{AT:()=>L,E4:()=>B,Vn:()=>A,Vu:()=>e,n4:()=>M,sw:()=>g,wY:()=>w,zK:()=>G});var t=c(1404),r=c(1367);function g(I){(0,t.V1)(I&&"Document"===I.kind,76);var F=I.definitions.filter(function(X){return"FragmentDefinition"!==X.kind}).map(function(X){if("OperationDefinition"!==X.kind)throw(0,t.vA)(77,X.kind);return X});return(0,t.V1)(F.length<=1,78,F.length),I}function e(I){return g(I),I.definitions.filter(function(F){return"OperationDefinition"===F.kind})[0]}function M(I){return I.definitions.filter(function(F){return"OperationDefinition"===F.kind&&!!F.name}).map(function(F){return F.name.value})[0]||null}function G(I){return I.definitions.filter(function(F){return"FragmentDefinition"===F.kind})}function L(I){var F=e(I);return(0,t.V1)(F&&"query"===F.operation,79),F}function B(I){(0,t.V1)("Document"===I.kind,80),(0,t.V1)(I.definitions.length<=1,81);var F=I.definitions[0];return(0,t.V1)("FragmentDefinition"===F.kind,82),F}function A(I){g(I);for(var F,X=0,V=I.definitions;X{c.d(De,{y:()=>G});var M,t=c(3246),r=c(2170),g=c(2151),e=c(8782),G=Object.assign(function(L){var B=M.get(L);return B||(B=(0,t.y)(L),M.set(L,B)),B},{reset:function(){M=new r.A(g.v.print||2e3)}});G.reset(),!1!==globalThis.__DEV__&&(0,e.D_)("print",function(){return M?M.size:0})},1367:(Rt,De,c)=>{c.d(De,{A_:()=>G,D$:()=>H,Ii:()=>be,J:()=>J,Kc:()=>L,MB:()=>me,WU:()=>M,dt:()=>z,kd:()=>Z,o5:()=>Ie,ue:()=>de});var t=c(1404),r=c(1181),g=c(6108),e=c(2130);function M(pe){return{__ref:String(pe)}}function G(pe){return!(!pe||"object"!=typeof pe||"string"!=typeof pe.__ref)}function L(pe){return(0,r.U)(pe)&&"Document"===pe.kind&&Array.isArray(pe.definitions)}function J(pe,E,S,R){if(function w(pe){return"IntValue"===pe.kind}(S)||function I(pe){return"FloatValue"===pe.kind}(S))pe[E.value]=Number(S.value);else if(function A(pe){return"BooleanValue"===pe.kind}(S)||function B(pe){return"StringValue"===pe.kind}(S))pe[E.value]=S.value;else if(function X(pe){return"ObjectValue"===pe.kind}(S)){var Y={};S.fields.map(function(Be){return J(Y,Be.name,Be.value,R)}),pe[E.value]=Y}else if(function F(pe){return"Variable"===pe.kind}(S))pe[E.value]=(R||{})[S.name.value];else if(function V(pe){return"ListValue"===pe.kind}(S))pe[E.value]=S.values.map(function(Be){var Pt={};return J(Pt,E,Be,R),Pt[E.value]});else if(function x(pe){return"EnumValue"===pe.kind}(S))pe[E.value]=S.value;else{if(!function ne(pe){return"NullValue"===pe.kind}(S))throw(0,t.vA)(84,E.value,S.kind);pe[E.value]=null}}function be(pe,E){var S=null;pe.directives&&(S={},pe.directives.forEach(function(Y){S[Y.name.value]={},Y.arguments&&Y.arguments.forEach(function(se){return J(S[Y.name.value],se.name,se.value,E)})}));var R=null;return pe.arguments&&pe.arguments.length&&(R={},pe.arguments.forEach(function(Y){return J(R,Y.name,Y.value,E)})),Ie(pe.name.value,R,S)}var Oe=["connection","include","skip","client","rest","export","nonreactive"],he=e.M,Ie=Object.assign(function(pe,E,S){if(E&&S&&S.connection&&S.connection.key){if(S.connection.filter&&S.connection.filter.length>0){var R=S.connection.filter?S.connection.filter:[];R.sort();var Y={};return R.forEach(function(Pt){Y[Pt]=E[Pt]}),"".concat(S.connection.key,"(").concat(he(Y),")")}return S.connection.key}var se=pe;if(E){var Be=he(E);se+="(".concat(Be,")")}return S&&Object.keys(S).forEach(function(Pt){-1===Oe.indexOf(Pt)&&(S[Pt]&&Object.keys(S[Pt]).length?se+="@".concat(Pt,"(").concat(he(S[Pt]),")"):se+="@".concat(Pt))}),se},{setStringify:function(pe){var E=he;return he=pe,E}});function me(pe,E){if(pe.arguments&&pe.arguments.length){var S={};return pe.arguments.forEach(function(R){return J(S,R.name,R.value,E)}),S}return null}function de(pe){return pe.alias?pe.alias.value:pe.name.value}function H(pe,E,S){for(var R,Y=0,se=E.selections;Y{c.d(De,{XY:()=>x,er:()=>H,iz:()=>V,zc:()=>de});var t=c(4626),r=c(1404),g=c(1955),e=c(8540),M=c(4229),G=c(1367),L=c(6108),B=c(7715),A={kind:g.b.FIELD,name:{kind:g.b.NAME,value:"__typename"}};function w(z,Z){return!z||z.selectionSet.selections.every(function(pe){return pe.kind===g.b.FRAGMENT_SPREAD&&w(Z[pe.name.value],Z)})}function I(z){return w((0,M.Vu)(z)||(0,M.E4)(z),(0,L.JG)((0,M.zK)(z)))?null:z}function X(z){var Z=new Map;return function(E){void 0===E&&(E=z);var S=Z.get(E);return S||Z.set(E,S={variables:new Set,fragmentSpreads:new Set}),S}}function V(z,Z){(0,M.sw)(Z);for(var pe=X(""),E=X(""),S=function(It){for(var Tt=0,en=void 0;Tt=0;--Y)Z.definitions[Y].kind===g.b.OPERATION_DEFINITION&&++R;var se=function F(z){var Z=new Map,pe=new Map;return z.forEach(function(E){E&&(E.name?Z.set(E.name,E):E.test&&pe.set(E.test,E))}),function(E){var S=Z.get(E.name.value);return!S&&pe.size&&pe.forEach(function(R,Y){Y(E)&&(S=R)}),S}}(z),Be=function(It){return(0,B.E)(It)&&It.map(se).some(function(Tt){return Tt&&Tt.remove})},Pt=new Map,vt=!1,wt={enter:function(It){if(Be(It.directives))return vt=!0,null}},Le=(0,e.YR)(Z,{Field:wt,InlineFragment:wt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(It,Tt,en,jt,Vt){var fn=S(Vt);fn&&fn.variables.add(It.name.value)}},FragmentSpread:{enter:function(It,Tt,en,jt,Vt){if(Be(It.directives))return vt=!0,null;var fn=S(Vt);fn&&fn.fragmentSpreads.add(It.name.value)}},FragmentDefinition:{enter:function(It,Tt,en,jt){Pt.set(JSON.stringify(jt),It)},leave:function(It,Tt,en,jt){return It===Pt.get(JSON.stringify(jt))?It:R>0&&It.selectionSet.selections.every(function(fn){return fn.kind===g.b.FIELD&&"__typename"===fn.name.value})?(E(It.name.value).removed=!0,vt=!0,null):void 0}},Directive:{leave:function(It){if(se(It))return vt=!0,null}}});if(!vt)return Z;var zt=function(It){return It.transitiveVars||(It.transitiveVars=new Set(It.variables),It.removed||It.fragmentSpreads.forEach(function(Tt){zt(E(Tt)).transitiveVars.forEach(function(en){It.transitiveVars.add(en)})})),It},xt=new Set;Le.definitions.forEach(function(It){It.kind===g.b.OPERATION_DEFINITION?zt(pe(It.name&&It.name.value)).fragmentSpreads.forEach(function(Tt){xt.add(Tt)}):It.kind===g.b.FRAGMENT_DEFINITION&&0===R&&!E(It.name.value).removed&&xt.add(It.name.value)}),xt.forEach(function(It){zt(E(It)).fragmentSpreads.forEach(function(Tt){xt.add(Tt)})});var Ct={enter:function(It){if(function(It){return!(xt.has(It)&&!E(It).removed)}(It.name.value))return null}};return I((0,e.YR)(Le,{FragmentSpread:Ct,FragmentDefinition:Ct,OperationDefinition:{leave:function(It){if(It.variableDefinitions){var Tt=zt(pe(It.name&&It.name.value)).transitiveVars;if(Tt.size{c.d(De,{r:()=>t});var t="3.11.1"},9894:(Rt,De,c)=>{c.d(De,{d:()=>Ie,s:()=>R});var t=c(1413),r=c(8359),g=c(2806),e=c(983),M=c(3953),G=c(1397),L=c(6977);const B=M.YHP,w=Symbol("__destroy"),I=Symbol("__decoratorApplied");function F(se){return"string"==typeof se?Symbol(`__destroy__${se}`):w}function V(se,Be){se[Be]||(se[Be]=new t.B)}function x(se,Be){se[Be]&&(se[Be].next(),se[Be].complete(),se[Be]=null)}function ne(se){se instanceof r.yU&&se.unsubscribe()}function be(se,Be){return function(){if(se&&se.call(this),x(this,F()),Be.arrayName&&function J(se){Array.isArray(se)&&se.forEach(ne)}(this[Be.arrayName]),Be.checkProperties)for(const Pt in this)Be.blackList?.includes(Pt)||ne(this[Pt])}}function Ie(se={}){return Be=>{!function A(se){return!!se[B]}(Be)?function Oe(se,Be){se.prototype.ngOnDestroy=be(se.prototype.ngOnDestroy,Be)}(Be,se):function he(se,Be){const Pt=se.\u0275pipe;Pt.onDestroy=be(Pt.onDestroy,Be)}(Be,se),function X(se){se.prototype[I]=!0}(Be)}}const me=7,de=Symbol("CheckerHasBeenSet");function Z(se){const Be=M.JZv.Zone;return Be&&"function"==typeof Be.root?.run?Be.root.run(se):se()}const E=!1;function R(se,Be){return Pt=>{const vt=F(Be);"string"==typeof Be?function S(se,Be,Pt){const vt=se[Be];if(E&&"function"!=typeof vt)throw new Error(`${se.constructor.name} is using untilDestroyed but doesn't implement ${Be}`);V(se,Pt),se[Be]=function(){vt.apply(this,arguments),x(this,Pt),se[Be]=vt}}(se,Be,vt):(E&&function Y(se){const Be=Object.getPrototypeOf(se);if(!(I in Be))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(se),V(se,vt));const wt=se[vt];return E&&function H(se,Be){se[de]||function z(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process)}()||(Z(()=>(0,g.H)(Promise.resolve()).pipe((0,G.Z)(()=>{let Pt;try{Pt=(0,M.xtB)(se)}catch{Pt=null}const vt=Pt?.lView;if(null==vt)return e.w;const wt=vt[me]||(vt[me]=[]),Le=new t.B;return wt.push(function(){Z(()=>{Le.next(),Le.complete()})}),Le}),(0,G.Z)(()=>Promise.resolve())).subscribe(()=>{(Be.observed??Be.observers.length>0)&&console.warn(function pe(se){return`\n The ${se.constructor.name} still has subscriptions that haven't been unsubscribed.\n This may happen if the class extends another class decorated with @UntilDestroy().\n The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().\n Let's look at the following example:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {}\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n }\n }\n The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy()\n on the ConcreteComponent, but not on the BaseDirective.\n One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {\n ngOnDestroy(): void {}\n }\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n super.ngOnDestroy();\n }\n }\n `}(se))})),se[de]=!0)}(se,wt),Pt.pipe((0,L.Q)(wt))}}},1774:(Rt,De,c)=>{c.d(De,{L9:()=>E,Nj:()=>pe});var t=c(3953),r=c(4402),g=c(4572),e=c(2806),M=c(1985),G=c(2771),L=c(1203),B=c(8359),A=c(3294),w=c(8141),I=c(5558);let X=(()=>{class S{static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275prov=t.jDH({token:S,factory:()=>function F(S){return S instanceof t.SKi}((0,t.WQX)(t.SKi))?new x:(0,t.WQX)(V),providedIn:"root"})}return S})(),V=(()=>{class S extends X{constructor(Y){super(),this.appRef=Y,this.isScheduled=!1}schedule(){this.isScheduled||(this.isScheduled=!0,requestAnimationFrame(()=>{this.appRef.tick(),this.isScheduled=!1}))}static#e=this.\u0275fac=function(se){return new(se||S)(t.KVO(t.o8S))};static#t=this.\u0275prov=t.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();class x extends X{schedule(){}}let ne=(()=>{class S{constructor(Y,se){this.cdRef=Y,this.tickScheduler=se}schedule(){this.cdRef.markForCheck(),this.tickScheduler.schedule()}static#e=this.\u0275fac=function(se){return new(se||S)(t.KVO(t.gRc),t.KVO(X))};static#t=this.\u0275prov=t.jDH({token:S,factory:S.\u0275fac})}return S})();function H(S){const R=function be(S){return R=>S[R.type]?.(R)}(S),Y=new G.m(1);return{nextPotentialObservable(se){Y.next(se)},handlePotentialObservableChanges:()=>Y.pipe((0,A.F)(),function z(){return(0,L.F)((0,I.n)(S=>{const R=function Oe(S){return(0,r.A)(S)?S:function Ie(S){return function me(S){return!!S&&"object"==typeof S&&!Array.isArray(S)}(S)&&Object.keys(S).length>0&&Object.values(S).every(r.A)}(S)?(0,g.z)(function de(S){return Object.keys(S).reduce((R,Y)=>({...R,[Y]:S[Y].pipe((0,A.F)())}),{})}(S)):function he(S){return"function"==typeof S?.then}(S)?(0,e.H)(S):new M.c(R=>{R.next(S)})}(S);let Y=!0,se=!0;return new M.c(Be=>{const Pt=(0,t.O8t)(()=>R.subscribe({next(vt){Be.next({type:"next",value:vt,reset:Y,synchronous:se}),Y=!1},error(vt){Be.next({type:"error",error:vt,reset:Y,synchronous:se}),Y=!1},complete(){Be.next({type:"complete",reset:Y,synchronous:se}),Y=!1}}));return Y&&(Be.next({type:"suspense",reset:Y,synchronous:!0}),Y=!1),se=!1,Pt})}))}(),(0,A.F)(Z),(0,w.M)(R))}}function Z(S,R){return S.type===R.type&&S.reset===R.reset&&("next"===R.type?S.value===R.value:"error"!==R.type||S.error===R.error)}let pe=(()=>{class S{set ngrxLet(Y){this.renderEventManager.nextPotentialObservable(Y)}constructor(Y,se,Be,Pt){this.mainTemplateRef=Y,this.viewContainerRef=se,this.errorHandler=Be,this.renderScheduler=Pt,this.isMainViewCreated=!1,this.isSuspenseViewCreated=!1,this.viewContext={$implicit:void 0,ngrxLet:void 0,error:void 0,complete:!1},this.renderEventManager=H({suspense:()=>{this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0,this.viewContext.complete=!1,this.renderSuspenseView()},next:vt=>{this.viewContext.$implicit=vt.value,this.viewContext.ngrxLet=vt.value,vt.reset&&(this.viewContext.error=void 0,this.viewContext.complete=!1),this.renderMainView(vt.synchronous)},error:vt=>{this.viewContext.error=vt.error,vt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.complete=!1),this.renderMainView(vt.synchronous),this.errorHandler.handleError(vt.error)},complete:vt=>{this.viewContext.complete=!0,vt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0),this.renderMainView(vt.synchronous)}}),this.subscription=new B.yU}static ngTemplateContextGuard(Y,se){return!0}ngOnInit(){this.subscription.add(this.renderEventManager.handlePotentialObservableChanges().subscribe())}ngOnDestroy(){this.subscription.unsubscribe()}renderMainView(Y){this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!1,this.viewContainerRef.clear()),this.isMainViewCreated||(this.isMainViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.mainTemplateRef,this.viewContext)),Y||this.renderScheduler.schedule()}renderSuspenseView(){this.isMainViewCreated&&(this.isMainViewCreated=!1,this.viewContainerRef.clear()),this.suspenseTemplateRef&&!this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.suspenseTemplateRef))}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(t.C4Q),t.rXU(t.c1b),t.rXU(t.zcH),t.rXU(ne))};static#t=this.\u0275dir=t.FsC({type:S,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet",suspenseTemplateRef:[0,"ngrxLetSuspenseTpl","suspenseTemplateRef"]},standalone:!0,features:[t.Jv_([ne])]})}return S})(),E=(()=>{class S{constructor(Y){this.errorHandler=Y,this.renderScheduler=function J(){return new ne((0,t.WQX)(t.gRc),(0,t.WQX)(X))}(),this.renderEventManager=H({suspense:se=>this.setRenderedValue(void 0,se.synchronous),next:se=>this.setRenderedValue(se.value,se.synchronous),error:se=>{se.reset&&this.setRenderedValue(void 0,se.synchronous),this.errorHandler.handleError(se.error)},complete:se=>{se.reset&&this.setRenderedValue(void 0,se.synchronous)}}),this.subscription=this.renderEventManager.handlePotentialObservableChanges().subscribe()}transform(Y){return this.renderEventManager.nextPotentialObservable(Y),this.renderedValue}ngOnDestroy(){this.subscription.unsubscribe()}setRenderedValue(Y,se){Y!==this.renderedValue&&(this.renderedValue=Y,se||this.renderScheduler.schedule())}static#e=this.\u0275fac=function(se){return new(se||S)(t.rXU(t.zcH,16))};static#t=this.\u0275pipe=t.EJ8({name:"ngrxPush",type:S,pure:!1,standalone:!0})}return S})()},8524:(Rt,De,c)=>{c.d(De,{Nc:()=>dt,PU:()=>Fe,aF:()=>_e,ac:()=>ie,ch:()=>oe,cm:()=>cn,hL:()=>fn,qy:()=>Ut});var t=c(3953),r=c(9417),g=c(4402),e=c(7673),M=c(7786),G=c(1985),L=c(1413),B=c(3294),A=c(6354),w=c(9172),I=c(152),F=c(5964),X=c(5558),V=c(6697),x=c(8141),ne=c(177),J=c(345);const be=["container"];function Oe(Ye,ue){}const he=["*"];function Ie(Ye,ue){1&Ye&&t.nrm(0,"formly-field",1),2&Ye&&t.Y8G("field",ue.$implicit)}const me=["fieldComponent"];function H(Ye,ue,te){if(ue.id)return ue.id;let q=ue.type;return!q&&ue.template&&(q="template"),q instanceof t.ZUJ&&(q=q.prototype.constructor.name),[Ye,q,ue.key,te].join("_")}function z(Ye){return!se(Ye.key)&&""!==Ye.key&&(!Array.isArray(Ye.key)||Ye.key.length>0)}function Z(Ye){if(!z(Ye))return[];if(Ye._keyPath?.key!==Ye.key){let ue=[];if("string"==typeof Ye.key){const te=-1===Ye.key.indexOf("[")?Ye.key:Ye.key.replace(/\[(\w+)\]/g,".$1");ue=-1!==te.indexOf(".")?te.split("."):[te]}else ue=Array.isArray(Ye.key)?Ye.key.slice(0):[`${Ye.key}`];st(Ye,"_keyPath",{key:Ye.key,path:ue})}return Ye._keyPath.path.slice(0)}const pe=["required","pattern","minLength","maxLength","min","max"];function E(Ye,ue){let te=Z(Ye);if(0===te.length)return;let q=Ye;for(;q.parent;)q=q.parent,te=[...Z(q),...te];if(void 0===ue&&Ye.resetOnHide){const Xe=te.pop();delete te.reduce((at,St)=>at[St]||{},q.model)[Xe]}else!function S(Ye,ue,te){for(let q=0;q{for(const q in te)se(Ye[q])||Pt(Ye[q])?Ye[q]=xt(te[q]):wt(Ye[q],te[q])&&Y(Ye[q],te[q])}),Ye}function se(Ye){return null==Ye}function Be(Ye){return void 0===Ye}function Pt(Ye){return""===Ye}function vt(Ye){return"function"==typeof Ye}function wt(Ye,ue){return Le(Ye)&&Le(ue)&&Object.getPrototypeOf(Ye)===Object.getPrototypeOf(ue)&&!(Array.isArray(Ye)||Array.isArray(ue))}function Le(Ye){return null!=Ye&&"object"==typeof Ye}function xt(Ye){if(!Le(Ye)||(0,g.A)(Ye)||Ye instanceof t.C4Q||Ye.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(Ye.constructor.name))return Ye;if(Ye instanceof Set)return new Set(Ye);if(Ye instanceof Map)return new Map(Ye);if(Ye instanceof Uint8Array)return new Uint8Array(Ye);if(Ye instanceof Uint16Array)return new Uint16Array(Ye);if(Ye instanceof Uint32Array)return new Uint32Array(Ye);if(Ye._isAMomentObject&&vt(Ye.clone))return Ye.clone();if(Ye instanceof r.EL)return null;if(Ye instanceof Date)return new Date(Ye.getTime());if(Array.isArray(Ye))return Ye.slice(0).map(q=>xt(q));const ue=Object.getPrototypeOf(Ye);let te=Object.create(ue);return te=Object.setPrototypeOf(te,ue),Object.keys(Ye).reduce((q,Xe)=>{const ht=Object.getOwnPropertyDescriptor(Ye,Xe);return ht.get?Object.defineProperty(q,Xe,ht):q[Xe]=xt(Ye[Xe]),q},te)}function st(Ye,ue,te){Object.defineProperty(Ye,ue,{enumerable:!1,writable:!0,configurable:!0}),Ye[ue]=te}function Ct(Ye,ue,te){let q=[];const Xe=()=>{q.forEach(at=>at()),q=[]},ht=It(Ye,ue,({firstChange:at,currentValue:St})=>{!at&&te(),Xe(),Le(St)&&"Object"===St.constructor.name&&Object.keys(St).forEach(Qe=>{q.push(Ct(Ye,[...ue,Qe],te))})});return()=>{ht.unsubscribe(),Xe()}}function It(Ye,ue,te){Ye._observers||st(Ye,"_observers",{});let q=Ye;for(let St=0;St=1&&Le(q))){const{enumerable:St}=Object.getOwnPropertyDescriptor(q,Xe)||{enumerable:!0};Object.defineProperty(q,Xe,{enumerable:St,configurable:!0,get:()=>at.value,set:Qe=>{if(Qe!==at.value){const Ee=at.value;at.value=Qe,at.onChange.forEach(Je=>Je({previousValue:Ee,currentValue:Qe,firstChange:!1}))}}})}return{setValue(St,Qe=!0){if(St===at.value)return;const Ee=at.value;at.value=St,at.onChange.forEach(Je=>{Je!==te&&Qe&&Je({previousValue:Ee,currentValue:St,firstChange:!1})})},unsubscribe(){at.onChange=at.onChange.filter(St=>St!==te),0===at.onChange.length&&delete Ye._observers[ht]}}}function Tt(Ye,ue){if(ue=Array.isArray(ue)?ue.join("."):ue,Ye.fieldGroup)for(let te=0,q=Ye.fieldGroup.length;te{ue instanceof t.rjb?ue.injector.get(t.gRc).markForCheck():ue.markForCheck()})}function Vt(Ye){const ue=q=>q.hide||q.expressions?.hide||q.hideExpression;let te=!Ye.resetOnHide||!ue(Ye);if(!ue(Ye)&&Ye.resetOnHide){let q=Ye.parent;for(;q&&!ue(q);)q=q.parent;te=!q||!ue(q)}return!te}const fn=new t.nKC("FORMLY_CONFIG");let Hn=(()=>{class Ye{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError:te=>te.formControl?.invalid&&(te.formControl?.touched||te.options.parentForm?.submitted||!!te.field.validation?.show)},this.extensions={},this.presets={},this.extensionsByPriority={}}addConfig(te){te.types&&te.types.forEach(q=>this.setType(q)),te.validators&&te.validators.forEach(q=>this.setValidator(q)),te.wrappers&&te.wrappers.forEach(q=>this.setWrapper(q)),te.validationMessages&&te.validationMessages.forEach(q=>this.addValidatorMessage(q.name,q.message)),te.extensions&&this.setSortedExtensions(te.extensions),te.extras&&(this.extras={...this.extras,...te.extras}),te.presets&&(this.presets={...this.presets,...te.presets.reduce((q,Xe)=>({...q,[Xe.name]:Xe.config}),{})})}setType(te){Array.isArray(te)?te.forEach(q=>this.setType(q)):(this.types[te.name]||(this.types[te.name]={name:te.name}),["component","extends","defaultOptions","wrappers"].forEach(q=>{te.hasOwnProperty(q)&&(this.types[te.name][q]=te[q])}))}getType(te,q=!1){if(te instanceof t.ZUJ)return{component:te,name:te.prototype.constructor.name};if(!this.types[te]){if(q)throw new Error(`[Formly Error] The type "${te}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(te),this.types[te]}getMergedField(te={}){const q=this.getType(te.type);if(!q)return;q.defaultOptions&&Y(te,q.defaultOptions);const Xe=q.extends&&this.getType(q.extends).defaultOptions;Xe&&Y(te,Xe),te?.optionsTypes&&te.optionsTypes.forEach(at=>{const St=this.getType(at).defaultOptions;St&&Y(te,St)});const ht=this.resolveFieldTypeRef(te);ht?.instance?.defaultOptions&&Y(te,ht.instance.defaultOptions),!te.wrappers&&q.wrappers&&(te.wrappers=[...q.wrappers])}resolveFieldTypeRef(te={}){const q=this.getType(te.type);if(!q)return null;if(!q.component||q._componentRef)return q._componentRef;const{_viewContainerRef:Xe,_injector:ht}=te.options;if(!Xe||!ht)return null;const at=Xe.createComponent(q.component,{injector:ht});st(q,"_componentRef",at);try{at.destroy()}catch(St){console.error(`An error occurred while destroying the Formly component type "${te.type}"`,St)}return q._componentRef}setWrapper(te){this.wrappers[te.name]=te,te.types&&te.types.forEach(q=>{this.setTypeWrapper(q,te.name)})}getWrapper(te){if(te instanceof t.ZUJ)return{component:te,name:te.prototype.constructor.name};if(!this.wrappers[te])throw new Error(`[Formly Error] The wrapper "${te}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[te]}setTypeWrapper(te,q){this.types[te]||(this.types[te]={}),this.types[te].wrappers||(this.types[te].wrappers=[]),-1===this.types[te].wrappers.indexOf(q)&&this.types[te].wrappers.push(q)}setValidator(te){this.validators[te.name]=te}getValidator(te){if(!this.validators[te])throw new Error(`[Formly Error] The validator "${te}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[te]}addValidatorMessage(te,q){this.messages[te]=q}getValidatorMessage(te){return this.messages[te]}setSortedExtensions(te){te.forEach(q=>{const Xe=q.priority??1;this.extensionsByPriority[Xe]={...this.extensionsByPriority[Xe],[q.name]:q.extension}}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((q,Xe)=>q-Xe).reduce((q,Xe)=>({...q,...this.extensionsByPriority[Xe]}),{})}mergeExtendedType(te){if(!this.types[te].extends)return;const q=this.getType(this.types[te].extends);this.types[te].component||(this.types[te].component=q.component),this.types[te].wrappers||(this.types[te].wrappers=q.wrappers)}}return Ye.\u0275fac=function(te){return new(te||Ye)},Ye.\u0275prov=t.jDH({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),zn=(()=>{class Ye{constructor(te,q,Xe,ht){this.config=te,this.injector=q,this.viewContainerRef=Xe,this.parentForm=ht}buildForm(te,q=[],Xe,ht){this.build({fieldGroup:q,model:Xe,form:te,options:ht})}build(te){if(!this.config.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");te.parent||this._setOptions(te),function de(Ye,ue){const te=Ye._updateTreeValidity.bind(Ye);Ye._updateTreeValidity=()=>{},ue(),Ye._updateTreeValidity=te}(te.form,()=>{if(this._build(te),!te.parent||te.fieldArray){const q=te.options;te.parent&&Vt(te)&&q._hiddenFieldsForCheck?.push(te),q.checkExpressions?.(te,!0),q._detectChanges?.(te)}})}_build(te){if(!te)return;const q=Object.values(this.config.extensions);q.forEach(Xe=>Xe.prePopulate?.(te)),q.forEach(Xe=>Xe.onPopulate?.(te)),te.fieldGroup?.forEach(Xe=>this._build(Xe)),q.forEach(Xe=>Xe.postPopulate?.(te))}_setOptions(te){te.form=te.form||new r.gE({}),te.model=te.model||{},te.options=te.options||{};const q=te.options;q._viewContainerRef||st(q,"_viewContainerRef",this.viewContainerRef),q._injector||st(q,"_injector",this.injector),q.build||(q._buildForm=()=>{console.warn("Formly: 'options._buildForm' is deprecated since v6.0, use 'options.build' instead."),this.build(te)},q.build=(Xe=te)=>(this.build(Xe),Xe)),!q.parentForm&&this.parentForm&&(st(q,"parentForm",this.parentForm),It(q,["parentForm","submitted"],({firstChange:Xe})=>{Xe||q.detectChanges(te)}))}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.KVO(Hn),t.KVO(t.zZn),t.KVO(t.c1b,8),t.KVO(r.j4,8))},Ye.\u0275prov=t.jDH({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})();function Et(Ye,ue,te=!1){if((ue=ue||Ye.formControl)._fields||st(ue,"_fields",[]),-1===ue._fields.indexOf(Ye)&&ue._fields.push(Ye),!Ye.formControl&&ue){st(Ye,"formControl",ue),ue.setValidators(null),ue.setAsyncValidators(null),Ye.props.disabled=!!Ye.props.disabled;const St=It(Ye,["props","disabled"],({firstChange:Qe,currentValue:Ee})=>{Qe||(Ee?Ye.formControl.disable():Ye.formControl.enable())});ue instanceof r.MJ&&ue.registerOnDisabledChange(St.setValue)}if(!Ye.form||!z(Ye))return;let q=Ye.form;const Xe=Z(Ye),ht=R(Ye);(!se(ue.value)||!se(ht))&&ue.value!==ht&&ue instanceof r.MJ&&ue.patchValue(ht);for(let St=0;StWt(ue))}let Ue=(()=>{class Ye{constructor(te){this.ref=te}ngOnChanges(){this.name=this.name||"formly-group"}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(t.C4Q))},Ye.\u0275dir=t.FsC({type:Ye,selectors:[["","formlyTemplate",""]],inputs:{name:[0,"formlyTemplate","name"]},features:[t.OA$]}),Ye})(),Ae=(()=>{class Ye{}return Ye.\u0275fac=function(te){return new(te||Ye)},Ye.\u0275prov=t.jDH({token:Ye,factory:Ye.\u0275fac}),Ye})(),ie=(()=>{class Ye{constructor(te,q,Xe,ht,at){this.config=te,this.renderer=q,this._elementRef=Xe,this.hostContainerRef=ht,this.form=at,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof t.rjb?this.componentRefs[0].location:null}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(te){this.triggerHook("onChanges",te)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(te=>te.unsubscribe()),this.hooksObservers.forEach(te=>te()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(te,q,Xe=[]){if(this.containerRef===te&&(this.resetRefs(this.field),this.containerRef.clear(),Xe=this.field?.wrappers),Xe?.length>0){const[ht,...at]=Xe,{component:St}=this.config.getWrapper(ht),Qe=te.createComponent(St);this.attachComponentRef(Qe,q),It(Qe.instance,["fieldComponent"],({currentValue:Ee,previousValue:Je,firstChange:re})=>{if(Ee){if(Je&&Je._lContainer===Ee._lContainer)return;const ze=Je?Je.detach():null;ze&&!ze.destroyed?Ee.insert(ze):this.renderField(Ee,q,at),!re&&Qe.changeDetectorRef.detectChanges()}})}else if(q?.type){const ht=this.form?.templates?.find(St=>St.name===q.type);let at;if(ht)at=te.createEmbeddedView(ht.ref,{$implicit:q});else{const{component:St}=this.config.getType(q.type,!0);at=te.createComponent(St)}this.attachComponentRef(at,q)}}triggerHook(te,q){if(("onInit"===te||"onChanges"===te&&q.field&&!q.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[te]&&(!q||q.field)){const Xe=this.field.hooks[te](this.field);if((0,g.A)(Xe)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(te)){const ht=Xe.subscribe();this.hooksObservers.push(()=>ht.unsubscribe())}}"onChanges"===te&&q.field&&(this.resetRefs(q.field.previousValue),this.render())}attachComponentRef(te,q){this.componentRefs.push(te),q._componentRefs.push(te),te instanceof t.rjb&&Object.assign(te.instance,{field:q})}render(){if(this.field)if(this.field.options)if(this.detectFieldBuild=!1,this.hostObservers.forEach(q=>q.unsubscribe()),this.hostObservers=[It(this.field,["hide"],({firstChange:q,currentValue:Xe})=>{const ht=this.containerRef;!1===this.config.extras.lazyRender?(q&&this.renderField(ht,this.field),(!q||q&&Xe)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",Xe?"none":"")):Xe?(ht.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(ht,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!q&&this.field.options.detectChanges(this.field)}),It(this.field,["className"],({firstChange:q,currentValue:Xe})=>{(!q||q&&Xe)&&(!this.config.extras.lazyRender||!0!==this.field.hide)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",Xe)})],+ne.xv.major>=18&&+ne.xv.minor>=1){if(this.field.formControl){const q=this.field.formControl.statusChanges.pipe((0,B.F)()).subscribe(()=>en(this.field));this.hostObservers.push(q)}}else["touched","pristine","status"].forEach(q=>this.hostObservers.push(It(this.field,["formControl",q],({firstChange:Xe})=>!Xe&&en(this.field))));else this.detectFieldBuild=!0}resetRefs(te){te&&(te._localFields?te._localFields=[]:st(this.field,"_localFields",[]),te._componentRefs?te._componentRefs=te._componentRefs.filter(q=>-1===this.componentRefs.indexOf(q)):st(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(te){if(!te)return()=>{};const q=[Ct(te,["props"],()=>te.options.detectChanges(te))];te.options&&q.push(Ct(te.options,["formState"],()=>te.options.detectChanges(te)));for(const ht of Object.keys(te._expressions||{})){const at=It(te,["_expressions",ht],({currentValue:St,previousValue:Qe})=>{Qe?.subscription&&(Qe.subscription.unsubscribe(),Qe.subscription=null),(0,g.A)(St.value$)&&(St.subscription=St.value$.subscribe())});q.push(()=>{te._expressions[ht]?.subscription&&te._expressions[ht].subscription.unsubscribe(),at.unsubscribe()})}for(const ht of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){const at=It(te,ht,({firstChange:St})=>!St&&te.options.detectChanges(te));q.push(()=>at.unsubscribe())}if(te.formControl&&!te.fieldGroup){const ht=te.formControl;let at=ht.valueChanges.pipe((0,A.T)(Je=>(te.parsers?.map(re=>Je=re(Je,te)),Object.is(Je,te.formControl.value)||te.formControl.setValue(Je),Je)),(0,B.F)((Je,re)=>!(Je!==re||Array.isArray(Je)||Le(Je))));ht.value!==R(te)&&(at=at.pipe((0,w.Z)(ht.value)));const{updateOn:St,debounce:Qe}=te.modelOptions;(!St||"change"===St)&&Qe?.default>0&&(at=ht.valueChanges.pipe((0,I.B)(Qe.default)));const Ee=at.subscribe(Je=>{ht._fields?.length>1&&ht instanceof r.MJ&&ht.patchValue(Je,{emitEvent:!1,onlySelf:!0}),z(te)&&E(te,Je),te.options.fieldChanges.next({value:Je,field:te,type:"valueChanges"})});q.push(()=>Ee.unsubscribe())}let Xe=[];return It(te,["_localFields"],({currentValue:ht})=>{Xe.forEach(at=>at()),Xe=(ht||[]).map(at=>this.fieldChanges(at))}),()=>{q.forEach(ht=>ht()),Xe.forEach(ht=>ht())}}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(Hn),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(t.c1b),t.rXU(Ae,8))},Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-field"]],viewQuery:function(te,q){if(1&te&&t.GBs(be,7,t.c1b),2&te){let Xe;t.mGM(Xe=t.lsd())&&(q.viewContainerRef=Xe.first)}},inputs:{field:"field"},features:[t.OA$],decls:2,vars:0,consts:[["container",""]],template:function(te,q){1&te&&t.DNE(0,Oe,0,0,"ng-template",null,0,t.C5r)},styles:["[_nghost-%COMP%]:empty{display:none}"]}),Ye})(),_e=(()=>{class Ye{constructor(te,q,Xe,ht){this.builder=te,this.config=q,this.ngZone=Xe,this.fieldTemplates=ht,this.modelChange=new t.bkB,this.field={type:"formly-group"},this._modelChangeValue={},this.valueChangesUnsubscribe=()=>{}}set form(te){this.field.form=te}get form(){return this.field.form}set model(te){this.config.extras.immutable&&this._modelChangeValue===te||this.setField({model:te})}get model(){return this.field.model}set fields(te){this.setField({fieldGroup:te})}get fields(){return this.field.fieldGroup}set options(te){this.setField({options:te})}get options(){return this.field.options}set templates(te){this.fieldTemplates.templates=te}ngDoCheck(){"changeDetectionCheck"===this.config.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(te){te.fields&&this.form&&Wt(this.form),(te.fields||te.form||te.model&&this._modelChangeValue!==te.model.currentValue)&&(this.valueChangesUnsubscribe(),this.builder.build(this.field),this.valueChangesUnsubscribe=this.valueChanges())}ngOnDestroy(){this.valueChangesUnsubscribe()}checkExpressionChange(){this.field.options.checkExpressions?.(this.field)}valueChanges(){this.valueChangesUnsubscribe();const te=this.field.options.fieldChanges.pipe((0,F.p)(({field:q,type:Xe})=>z(q)&&"valueChanges"===Xe),(0,X.n)(()=>function jt(Ye){return Ye instanceof t.FOc}(this.ngZone)?(0,e.of)(null):this.ngZone.onStable.asObservable().pipe((0,V.s)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=xt(this.model))}));return()=>te.unsubscribe()}setField(te){this.config.extras.immutable?this.field={...this.field,...xt(te)}:Object.keys(te).forEach(q=>this.field[q]=te[q])}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(zn),t.rXU(Hn),t.rXU(t.SKi),t.rXU(Ae))},Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-form"]],contentQueries:function(te,q,Xe){if(1&te&&t.wni(Xe,Ue,4),2&te){let ht;t.mGM(ht=t.lsd())&&(q.templates=ht)}},inputs:{form:"form",model:"model",fields:"fields",options:"options"},outputs:{modelChange:"modelChange"},features:[t.Jv_([zn,Ae]),t.OA$],decls:1,vars:1,consts:[[3,"field"]],template:function(te,q){1&te&&t.nrm(0,"formly-field",0),2&te&&t.Y8G("field",q.field)},dependencies:[ie],encapsulation:2,changeDetection:0}),Ye})(),oe=(()=>{class Ye{constructor(te,q,Xe){this.renderer=te,this.elementRef=q,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(ht,at)=>{switch(ht){case"focus":return this.onFocus(at);case"blur":return this.onBlur(at);case"change":return this.onChange(at);default:return this.props[ht](this.field,at)}}},this.document=Xe}get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}ngOnChanges(te){te.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(q=>q()),this.uiEvents.events.forEach(q=>{(this.props?.[q]||-1!==["focus","blur","change"].indexOf(q))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,q,Xe=>this.uiEvents.callback(q,Xe)))}),this.props?.attributes&&It(this.field,["props","attributes"],({currentValue:q,previousValue:Xe})=>{Xe&&Object.keys(Xe).forEach(ht=>this.removeAttribute(ht)),q&&Object.keys(q).forEach(ht=>{null!=q[ht]&&this.setAttribute(ht,q[ht])})}),this.detachElementRef(te.field.previousValue),this.attachElementRef(te.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=It(this.field,["focus"],({currentValue:q})=>{this.toggleFocus(q)}))),te.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const te=this.elementRef.nativeElement;this.uiAttributes=[...pe,"tabindex","placeholder","readonly","disabled","step"].filter(q=>!te.hasAttribute||!te.hasAttribute(q))}for(let te=0;tete()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(te){const q=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!q||!q.nativeElement.focus)return;const Xe=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:ht})=>this.document.activeElement===ht||ht.contains(this.document.activeElement));te&&!Xe?Promise.resolve().then(()=>q.nativeElement.focus()):!te&&Xe&&Promise.resolve().then(()=>q.nativeElement.blur())}onFocus(te){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,te)}onBlur(te){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,te)}onHostChange(te){te instanceof Event||this.onChange(te)}onChange(te){this.props.change?.(this.field,te),this.field.formControl?.markAsDirty()}attachElementRef(te){te&&(-1===te._elementRefs?.indexOf(this.elementRef)?te._elementRefs.push(this.elementRef):st(te,"_elementRefs",[this.elementRef]))}detachElementRef(te){const q=te?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==q&&te._elementRefs.splice(q,1)}setAttribute(te,q){this.renderer.setAttribute(this.elementRef.nativeElement,te,q)}removeAttribute(te){this.renderer.removeAttribute(this.elementRef.nativeElement,te)}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(ne.qQ))},Ye.\u0275dir=t.FsC({type:Ye,selectors:[["","formlyAttributes",""]],hostBindings:function(te,q){1&te&&t.bIt("change",function(ht){return q.onHostChange(ht)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[t.OA$]}),Ye})(),Fe=(()=>{class Ye{constructor(){this.field={}}set _formlyControls(te){this.field._localFields=te.map(Xe=>Xe.control._fields||[]).flat().filter(Xe=>Xe.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}}return Ye.\u0275fac=function(te){return new(te||Ye)},Ye.\u0275dir=t.FsC({type:Ye,viewQuery:function(te,q){if(1&te&&t.GBs(r.vO,5),2&te){let Xe;t.mGM(Xe=t.lsd())&&(q._formlyControls=Xe)}},inputs:{field:"field"}}),Ye})(),et=(()=>{class Ye extends Fe{}return Ye.\u0275fac=(()=>{let ue;return function(q){return(ue||(ue=t.xGo(Ye)))(q||Ye)}})(),Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-group"]],hostVars:2,hostBindings:function(te,q){2&te&&t.HbH(q.field.fieldGroupClassName||"")},features:[t.Vt3],ngContentSelectors:he,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(te,q){1&te&&(t.NAR(),t.DNE(0,Ie,1,1,"formly-field",0),t.SdG(1)),2&te&&t.Y8G("ngForOf",q.field.fieldGroup)},dependencies:[ie,ne.Sq],encapsulation:2,changeDetection:0}),Ye})(),dt=(()=>{class Ye{constructor(te){this.config=te}ngOnChanges(){const te=pe.map(q=>`templateOptions.${q}`);this.errorMessage$=(0,M.h)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe((0,F.p)(({field:q,type:Xe,property:ht})=>q===this.field&&"expressionChanges"===Xe&&(-1!==ht.indexOf("validation")||-1!==te.indexOf(ht)))):(0,e.of)(null)).pipe((0,w.Z)(null),(0,X.n)(()=>(0,g.A)(this.errorMessage)?this.errorMessage:(0,e.of)(this.errorMessage)))}get errorMessage(){const te=this.field.formControl;for(const q in te.errors)if(te.errors.hasOwnProperty(q)){let Xe=this.config.getValidatorMessage(q);if(Le(te.errors[q])){if(te.errors[q].errorPath)return;te.errors[q].message&&(Xe=te.errors[q].message)}return this.field.validation?.messages?.[q]&&(Xe=this.field.validation.messages[q]),this.field.validators?.[q]?.message&&(Xe=this.field.validators[q].message),this.field.asyncValidators?.[q]?.message&&(Xe=this.field.asyncValidators[q].message),"function"==typeof Xe?Xe(te.errors[q],this.field):Xe}}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(Hn))},Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[t.OA$],decls:2,vars:3,template:function(te,q){1&te&&(t.EFF(0),t.nI1(1,"async")),2&te&&t.JRh(t.bMT(1,1,q.errorMessage$))},dependencies:[ne.Jj],encapsulation:2,changeDetection:0}),Ye})(),cn=(()=>{class Ye extends Fe{set _formlyControls(te){}set _staticContent(te){this.fieldComponent=te}}return Ye.\u0275fac=(()=>{let ue;return function(q){return(ue||(ue=t.xGo(Ye)))(q||Ye)}})(),Ye.\u0275dir=t.FsC({type:Ye,viewQuery:function(te,q){if(1&te&&(t.GBs(me,5,t.c1b),t.GBs(me,7,t.c1b)),2&te){let Xe;t.mGM(Xe=t.lsd())&&(q.fieldComponent=Xe.first),t.mGM(Xe=t.lsd())&&(q._staticContent=Xe.first)}},features:[t.Vt3]}),Ye})(),Tn=(()=>{class Ye extends Fe{constructor(te){super(),this.sanitizer=te,this.innerHtml={}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.rXU(J.up))},Ye.\u0275cmp=t.VBU({type:Ye,selectors:[["formly-template"]],features:[t.Vt3],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(te,q){1&te&&t.nrm(0,"div",0),2&te&&t.Y8G("innerHtml",q.template,t.npT)},encapsulation:2,changeDetection:0}),Ye})();class Vn{onPopulate(ue){if(ue._expressions)return;st(ue,"_expressions",{}),It(ue,["hide"],({currentValue:q,firstChange:Xe})=>{st(ue,"_hide",!!q),(!Xe||Xe&&!0===q)&&(ue.props.hidden=q,ue.options._hiddenFieldsForCheck.push(ue))}),ue.hideExpression&&It(ue,["hideExpression"],({currentValue:q})=>{ue._expressions.hide=this.parseExpressions(ue,"hide","boolean"==typeof q?()=>q:q)});const te=(q,Xe)=>{"string"==typeof Xe||vt(Xe)?ue._expressions[q]=this.parseExpressions(ue,q,Xe):Xe instanceof G.c&&(ue._expressions[q]={value$:Xe.pipe((0,x.M)(ht=>{this.evalExpr(ue,q,ht),ue.options._detectChanges(ue)}))})};ue.expressions=ue.expressions||{};for(const q of Object.keys(ue.expressions))It(ue,["expressions",q],({currentValue:Xe})=>{te(q,vt(Xe)?(...ht)=>Xe(ue,ht[3]):Xe)});ue.expressionProperties=ue.expressionProperties||{};for(const q of Object.keys(ue.expressionProperties))It(ue,["expressionProperties",q],({currentValue:Xe})=>te(q,Xe))}postPopulate(ue){if(!ue.parent&&!ue.options.checkExpressions){let te=!1;ue.options.checkExpressions=(q,Xe)=>{if(te)return;te=!0;const ht=this.checkExpressions(q,Xe),at=ue.options;at._hiddenFieldsForCheck.sort(St=>St.hide?-1:1).forEach(St=>this.changeHideState(St,St.hide,!Xe)),at._hiddenFieldsForCheck=[],ht&&this.checkExpressions(ue),te=!1},ue.options._checkField=(q,Xe)=>{console.warn("Formly: 'options._checkField' is deprecated since v6.0, use 'options.checkExpressions' instead."),ue.options.checkExpressions(q,Xe)}}}parseExpressions(ue,te,q){let Xe,ht;if(ue.parent&&["hide","props.disabled"].includes(te)){const at=St=>"hide"===te?St.hide:St.props.disabled;Xe=()=>{let St=ue.parent;for(;St.parent&&!at(St);)St=St.parent;return at(St)}}return"string"==typeof(q=q||(()=>!1))&&(q=function Wn(Ye,ue){try{return Function(...ue,`return ${Ye};`)}catch(te){console.error(te)}}(q,["model","formState","field"])),{callback:at=>{try{const St=function kn(Ye,ue,te){return"function"==typeof Ye?Ye.apply(ue,te):!!Ye}(Xe?(...Qe)=>Xe(ue)||q(...Qe):q,{field:ue},[ue.model,ue.options.formState,ue,at]);return!(!at&&(ht===St||Le(St)&&!(0,g.A)(St)&&JSON.stringify(St)===JSON.stringify(ht))||(ht=St,this.evalExpr(ue,te,St),0))}catch(St){throw St.message=`[Formly Error] [Expression "${te}"] ${St.message}`,St}}}}checkExpressions(ue,te=!1){if(!ue)return!1;let q=!1;if(ue._expressions)for(const Xe of Object.keys(ue._expressions))ue._expressions[Xe].callback?.(te)&&(q=!0);return ue.fieldGroup?.forEach(Xe=>this.checkExpressions(Xe,te)&&(q=!0)),q}changeDisabledState(ue,te){ue.fieldGroup&&ue.fieldGroup.filter(q=>!q._expressions.hasOwnProperty("props.disabled")).forEach(q=>this.changeDisabledState(q,te)),z(ue)&&ue.props.disabled!==te&&(ue.props.disabled=te)}changeHideState(ue,te,q){if(ue.fieldGroup&&ue.fieldGroup.filter(Xe=>Xe&&!Xe._expressions.hide).forEach(Xe=>this.changeHideState(Xe,te,q)),ue.formControl&&z(ue)){st(ue,"_hide",!(!te&&!ue.hide));const Xe=ue.formControl;Xe._fields?.length>1&&Ot(Xe),!0!==te||Xe._fields&&!Xe._fields.every(ht=>!!ht._hide)?!1===te&&(ue.resetOnHide&&!Be(ue.defaultValue)&&Be(R(ue))&&E(ue,ue.defaultValue),Et(ue,void 0,!0),ue.resetOnHide&&ue.fieldArray&&ue.fieldGroup?.length!==ue.model?.length&&ue.options.build(ue)):(function bt(Ye,ue=!1){const te=Ye.formControl,q=te._fields?te._fields.indexOf(Ye):-1;-1!==q&&te._fields.splice(q,1);const Xe=te.parent;if(!Xe)return;const ht={emitEvent:ue};if(Xe instanceof r.Yp){const at=Xe.controls.findIndex(St=>St===te);-1!==at&&Xe.removeAt(at,ht)}else if(Xe instanceof r.gE){const at=Z(Ye),St=at[at.length-1];Xe.get([St])===te&&Xe.removeControl(St,ht)}te.setParent(null)}(ue,!0),q&&ue.resetOnHide&&(E(ue,void 0),ue.formControl.reset({value:void 0,disabled:ue.formControl.disabled}),ue.options.fieldChanges.next({value:void 0,field:ue,type:"valueChanges"}),ue.fieldGroup&&ue.formControl instanceof r.Yp&&(ue.fieldGroup.length=0)))}ue.options.fieldChanges&&ue.options.fieldChanges.next({field:ue,type:"hidden",value:te})}evalExpr(ue,te,q){if(0===te.indexOf("model.")){const Xe=te.replace(/^model\./,""),ht=ue.fieldGroup?ue:ue.parent;let at=ue?.key===Xe?ue.formControl:ue.form.get(Xe);!at&&ue.get(Xe)&&(at=ue.get(Xe).formControl),E({key:Xe,parent:ht,model:ue.model},q),at&&(!se(at.value)||!se(q))&&at.value!==q&&at.patchValue(q)}else{try{let Xe=ue;const ht=this._evalExpressionPath(ue,te),at=ht.length-1;for(let St=0;StXe).forEach(Xe=>{const ht=Xe.match(/['|"](.*?)['|"]/);ht?q.push(ht[1]):q.push(...Xe.split(".").filter(at=>at))}),ue._expressions[te]&&(ue._expressions[te].paths=q),q}}class Un{constructor(ue){this.config=ue}onPopulate(ue){this.initFieldValidation(ue,"validators"),this.initFieldValidation(ue,"asyncValidators")}initFieldValidation(ue,te){const q=[];if("validators"===te&&!(ue.hasOwnProperty("fieldGroup")&&!z(ue))&&q.push(this.getPredefinedFieldValidation(ue)),ue[te])for(const Xe of Object.keys(ue[te]))"validation"===Xe?q.push(...ue[te].validation.map(ht=>this.wrapNgValidatorFn(ue,ht))):q.push(this.wrapNgValidatorFn(ue,ue[te][Xe],Xe));st(ue,"_"+te,q)}getPredefinedFieldValidation(ue){let te=[];return pe.forEach(q=>It(ue,["props",q],({currentValue:Xe,firstChange:ht})=>{te=te.filter(at=>at!==q),"required"===q&&null!=Xe&&"boolean"!=typeof Xe&&console.warn(`Formly: Invalid prop 'required' of type '${typeof Xe}', expected 'boolean' (Field:${ue.key}).`),null!=Xe&&!1!==Xe&&te.push(q),!ht&&ue.formControl&&Ot(ue.formControl)})),q=>0===te.length?null:r.k0.compose(te.map(Xe=>()=>{const ht=ue.props[Xe];switch(Xe){case"required":return r.k0.required(q);case"pattern":return r.k0.pattern(ht)(q);case"minLength":const at=r.k0.minLength(ht)(q),St=this.config.getValidatorMessage("minlength")||ue.validation?.messages?.minlength?"minlength":"minLength";return at?{[St]:at.minlength}:null;case"maxLength":const Qe=r.k0.maxLength(ht)(q),Ee=this.config.getValidatorMessage("maxlength")||ue.validation?.messages?.maxlength?"maxlength":"maxLength";return Qe?{[Ee]:Qe.maxlength}:null;case"min":return r.k0.min(ht)(q);case"max":return r.k0.max(ht)(q);default:return null}}))(q)}wrapNgValidatorFn(ue,te,q){let Xe;if("string"==typeof te&&(Xe=xt(this.config.getValidator(te))),"object"==typeof te&&te.name&&(Xe=xt(this.config.getValidator(te.name)),te.options&&(Xe.options=te.options)),"object"==typeof te&&te.expression){const{expression:ht,...at}=te;Xe={name:q,validation:ht,options:Object.keys(at).length>0?at:null}}return"function"==typeof te&&(Xe={name:q,validation:te}),ht=>{const at=Xe.validation(ht,ue,Xe.options);return function zt(Ye){return!!Ye&&"function"==typeof Ye.then}(at)?at.then(St=>this.handleResult(ue,q?!!St:St,Xe)):(0,g.A)(at)?at.pipe((0,A.T)(St=>this.handleResult(ue,q?!!St:St,Xe))):this.handleResult(ue,q?!!at:at,Xe)}}handleResult(ue,te,{name:q,options:Xe}){"boolean"==typeof te&&(te=te?null:{[q]:Xe||!0});const ht=ue.formControl;return ht?._childrenErrors?.[q]?.(),Le(te)&&Object.keys(te).forEach(at=>{const St=te[at].errorPath?te[at].errorPath:Xe?.errorPath,Qe=St?ue.formControl.get(St):null;if(Qe){const{errorPath:Ee,...Je}=te[at];Qe.setErrors({...Qe.errors||{},[at]:Je}),!ht._childrenErrors&&st(ht,"_childrenErrors",{}),ht._childrenErrors[at]=()=>{const{[at]:re,...ze}=Qe.errors||{};Qe.setErrors(0===Object.keys(ze).length?null:ze)}}}),te}}class dn{prePopulate(ue){this.root||(this.root=ue),ue.parent&&Object.defineProperty(ue,"form",{get:()=>ue.parent.formControl,configurable:!0})}onPopulate(ue){ue.hasOwnProperty("fieldGroup")&&!z(ue)?st(ue,"formControl",ue.form):this.addFormControl(ue)}postPopulate(ue){if(this.root===ue&&(this.root=null,this.setValidators(ue)&&ue.parent)){let q=ue.parent;for(;q;)(z(q)||!q.parent)&&Ot(q.formControl,!0),q=q.parent}}addFormControl(ue){let te=function At(Ye){return Ye.formControl?Ye.formControl:!1===Ye.shareFormControl?null:Ye.form?.get(Z(Ye))}(ue);if(!ue.fieldArray){if(te){if(te instanceof r.MJ){const q=z(ue)?R(ue):ue.defaultValue;te.defaultValue=q}}else{const q={updateOn:ue.modelOptions.updateOn};if(ue.fieldGroup)te=new r.gE({},q);else{const Xe=z(ue)?R(ue):ue.defaultValue;te=new r.MJ({value:Xe,disabled:!!ue.props.disabled},{...q,initialValueIsDefault:!0})}}Et(ue,te)}}setValidators(ue,te=!1){!1===te&&z(ue)&&ue.props?.disabled&&(te=!0);let q=!1;if(ue.fieldGroup?.forEach(Xe=>Xe&&this.setValidators(Xe,te)&&(q=!0)),z(ue)||!ue.parent||!z(ue)&&!ue.fieldGroup){const{formControl:Xe}=ue;if(Xe&&(z(ue)&&Xe instanceof r.MJ&&(te&&Xe.enabled&&(Xe.disable({emitEvent:!1,onlySelf:!0}),q=!0),!te&&Xe.disabled&&(Xe.enable({emitEvent:!1,onlySelf:!0}),q=!0)),null===Xe.validator&&this.hasValidators(ue,"_validators")&&(Xe.setValidators(()=>{const ht=r.k0.compose(this.mergeValidators(ue,"_validators"));return ht?ht(Xe):null}),q=!0),null===Xe.asyncValidator&&this.hasValidators(ue,"_asyncValidators")&&(Xe.setAsyncValidators(()=>{const ht=r.k0.composeAsync(this.mergeValidators(ue,"_asyncValidators"));return ht?ht(Xe):(0,e.of)(null)}),q=!0),q)){Ot(Xe,!0);let ht=Xe.parent;for(let at=1;at1&&q._fields.some(Xe=>Xe[te].length>0)||ue[te].length>0)||ue.fieldGroup?.some(Xe=>Xe?.fieldGroup&&!z(Xe)&&this.hasValidators(Xe,te))}mergeValidators(ue,te){const q=[],Xe=ue.formControl;return Xe?._fields?.length>1?Xe._fields.filter(ht=>!ht._hide).forEach(ht=>q.push(...ht[te])):ue[te]&&q.push(...ue[te]),ue.fieldGroup&&ue.fieldGroup.filter(ht=>ht?.fieldGroup&&!z(ht)).forEach(ht=>q.push(...this.mergeValidators(ht,te))),q}}class qt{constructor(ue){this.config=ue,this.formId=0}prePopulate(ue){const te=ue.parent;this.initRootOptions(ue),this.initFieldProps(ue),te&&(Object.defineProperty(ue,"options",{get:()=>te.options,configurable:!0}),Object.defineProperty(ue,"model",{get:()=>z(ue)&&ue.fieldGroup?R(ue):te.model,configurable:!0})),Object.defineProperty(ue,"get",{value:q=>Tt(ue,q),configurable:!0}),this.getFieldComponentInstance(ue).prePopulate?.(ue)}onPopulate(ue){this.initFieldOptions(ue),this.getFieldComponentInstance(ue).onPopulate?.(ue),ue.fieldGroup&&ue.fieldGroup.forEach((te,q)=>{te&&(Object.defineProperty(te,"parent",{get:()=>ue,configurable:!0}),Object.defineProperty(te,"index",{get:()=>q,configurable:!0})),this.formId++})}postPopulate(ue){this.getFieldComponentInstance(ue).postPopulate?.(ue)}initFieldProps(ue){ue.props??(ue.props=ue.templateOptions),Object.defineProperty(ue,"templateOptions",{get:()=>ue.props,set:te=>ue.props=te,configurable:!0})}initRootOptions(ue){if(ue.parent)return;const te=ue.options;ue.options.formState=ue.options.formState||{},te.showError||(te.showError=this.config.extras.showError),te.fieldChanges||st(te,"fieldChanges",new L.B),te._hiddenFieldsForCheck||(te._hiddenFieldsForCheck=[]),te._markForCheck=q=>{console.warn("Formly: 'options._markForCheck' is deprecated since v6.0, use 'options.detectChanges' instead."),te.detectChanges(q)},te._detectChanges=q=>{q._componentRefs&&en(q),q.fieldGroup?.forEach(Xe=>Xe&&te._detectChanges(Xe))},te.detectChanges=q=>{q.options.checkExpressions?.(q),te._detectChanges(q)},te.resetModel=q=>{q=xt(q??te._initialModel),ue.model&&(Object.keys(ue.model).forEach(Xe=>delete ue.model[Xe]),Object.assign(ue.model,q||{})),It(te,["parentForm","submitted"]).setValue(!1,!1),te.build(ue),ue.form.reset(ue.model)},te.updateInitialValue=q=>te._initialModel=xt(q??ue.model),ue.options.updateInitialValue()}initFieldOptions(ue){Y(ue,{id:H(`formly_${this.formId}`,ue,ue.index),hooks:{},modelOptions:{},validation:{messages:{}},props:ue.type&&z(ue)?{label:"",placeholder:"",disabled:!1}:{}}),this.config.extras.resetFieldOnHide&&!1!==ue.resetOnHide&&(ue.resetOnHide=!0),"formly-template"!==ue.type&&(ue.template||ue.expressions?.template||ue.expressionProperties?.template)&&(ue.type="formly-template"),!ue.type&&ue.fieldGroup&&(ue.type="formly-group"),ue.type&&this.config.getMergedField(ue),z(ue)&&!Be(ue.defaultValue)&&Be(R(ue))&&!Vt(ue)&&E(ue,ue.defaultValue),ue.wrappers=ue.wrappers||[]}getFieldComponentInstance(ue){const te=()=>{let q=this.config.resolveFieldTypeRef(ue);const Xe=ue._componentRefs?.slice(-1)[0];return Xe instanceof t.rjb&&Xe?.componentType===q?.componentType&&(q=Xe),q?.instance};return ue._proxyInstance||st(ue,"_proxyInstance",new Proxy({},{get:(q,Xe)=>te()?.[Xe],set:(q,Xe,ht)=>te()[Xe]=ht})),ue._proxyInstance}}function On(Ye){return{types:[{name:"formly-group",component:et},{name:"formly-template",component:Tn}],extensions:[{name:"core",extension:new qt(Ye),priority:-250},{name:"field-validation",extension:new Un(Ye),priority:-200},{name:"field-form",extension:new dn,priority:-150},{name:"field-expression",extension:new Vn,priority:-100}]}}let Ut=(()=>{class Ye{constructor(te,q=[]){q&&q.forEach(Xe=>te.addConfig(Xe))}static forRoot(te={}){return{ngModule:Ye,providers:[{provide:fn,multi:!0,useFactory:On,deps:[Hn]},{provide:fn,useValue:te,multi:!0},Hn,zn]}}static forChild(te={}){return{ngModule:Ye,providers:[{provide:fn,multi:!0,useFactory:On,deps:[Hn]},{provide:fn,useValue:te,multi:!0},zn]}}}return Ye.\u0275fac=function(te){return new(te||Ye)(t.KVO(Hn),t.KVO(fn,8))},Ye.\u0275mod=t.$C({type:Ye}),Ye.\u0275inj=t.G2t({imports:[[ne.MD]]}),Ye})()},6476:(Rt,De,c)=>{function t(){}c.d(De,{C:()=>r});class r{constructor(e=1/0,M=t){this.max=e,this.dispose=M,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const M=this.getNode(e);return M&&M.value}get size(){return this.map.size}getNode(e){const M=this.map.get(e);if(M&&M!==this.newest){const{older:G,newer:L}=M;L&&(L.older=G),G&&(G.newer=L),M.older=this.newest,M.older.newer=M,M.newer=null,this.newest=M,M===this.oldest&&(this.oldest=L)}return M}set(e,M){let G=this.getNode(e);return G?G.value=M:(G={key:e,value:M,newer:null,older:this.newest},this.newest&&(this.newest.newer=G),this.newest=G,this.oldest=this.oldest||G,this.map.set(e,G),G.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const M=this.map.get(e);return!!M&&(M===this.newest&&(this.newest=M.older),M===this.oldest&&(this.oldest=M.newer),M.newer&&(M.newer.older=M.older),M.older&&(M.older.newer=M.newer),this.map.delete(e),this.dispose(M.value,e),!0)}}},9055:(Rt,De,c)=>{function t(){}c.d(De,{l:()=>L});const r=t,g=typeof WeakRef<"u"?WeakRef:function(B){return{deref:()=>B}},e=typeof WeakMap<"u"?WeakMap:Map,M=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:t,unregister:t}};class L{constructor(A=1/0,w=r){this.max=A,this.dispose=w,this.map=new e,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const I=this.unfinalizedNodes.values();for(let F=0;F<10024;F++){const X=I.next().value;if(!X)break;this.unfinalizedNodes.delete(X);const V=X.key;delete X.key,X.keyRef=new g(V),this.registry.register(V,X,X)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new M(this.deleteNode.bind(this))}has(A){return this.map.has(A)}get(A){const w=this.getNode(A);return w&&w.value}getNode(A){const w=this.map.get(A);if(w&&w!==this.newest){const{older:I,newer:F}=w;F&&(F.older=I),I&&(I.newer=F),w.older=this.newest,w.older.newer=w,w.newer=null,this.newest=w,w===this.oldest&&(this.oldest=F)}return w}set(A,w){let I=this.getNode(A);return I?I.value=w:(I={key:A,value:w,newer:null,older:this.newest},this.newest&&(this.newest.newer=I),this.newest=I,this.oldest=this.oldest||I,this.scheduleFinalization(I),this.map.set(A,I),this.size++,I.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(A){A===this.newest&&(this.newest=A.older),A===this.oldest&&(this.oldest=A.newer),A.newer&&(A.newer.older=A.older),A.older&&(A.older.newer=A.newer),this.size--;const w=A.key||A.keyRef&&A.keyRef.deref();this.dispose(A.value,w),A.keyRef?this.registry.unregister(A):this.unfinalizedNodes.delete(A),w&&this.map.delete(w)}delete(A){const w=this.map.get(A);return!!w&&(this.deleteNode(w),!0)}scheduleFinalization(A){this.unfinalizedNodes.add(A),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},9860:(Rt,De,c)=>{c.d(De,{A:()=>G,L:()=>M});const{toString:t,hasOwnProperty:r}=Object.prototype,g=Function.prototype.toString,e=new Map;function M(X,V){try{return L(X,V)}finally{e.clear()}}const G=M;function L(X,V){if(X===V)return!0;const x=t.call(X);if(x!==t.call(V))return!1;switch(x){case"[object Array]":if(X.length!==V.length)return!1;case"[object Object]":{if(F(X,V))return!0;const J=B(X),be=B(V),Oe=J.length;if(Oe!==be.length)return!1;for(let he=0;he=0&&X.indexOf(V,x)===x}(J,w)}}return!1}function B(X){return Object.keys(X).filter(A,X)}function A(X){return void 0!==this[X]}const w="{ [native code] }";function F(X,V){let x=e.get(X);if(x){if(x.has(V))return!0}else e.set(X,x=new Set);return x.add(V),!1}},4420:(Rt,De,c)=>{c.d(De,{b:()=>M});const t=()=>Object.create(null),{forEach:r,slice:g}=Array.prototype,{hasOwnProperty:e}=Object.prototype;class M{constructor(B=!0,A=t){this.weakness=B,this.makeData=A}lookup(){return this.lookupArray(arguments)}lookupArray(B){let A=this;return r.call(B,w=>A=A.getChildTrie(w)),e.call(A,"data")?A.data:A.data=this.makeData(g.call(B))}peek(){return this.peekArray(arguments)}peekArray(B){let A=this;for(let w=0,I=B.length;A&&w{c.d(De,{EM:()=>pr,$Y:()=>fo,Ic:()=>jo,_9:()=>wn,sM:()=>Mr,XK:()=>bi,J1:()=>Qo});var t=c(3953),r=c(1985),g=c(6780),M=c(9687);const L=new class G extends M.q{}(class e extends g.R{constructor(ye,Ve){super(ye,Ve),this.scheduler=ye,this.work=Ve}schedule(ye,Ve=0){return Ve>0?super.schedule(ye,Ve):(this.delay=Ve,this.state=ye,this.scheduler.flush(this),this)}execute(ye,Ve){return Ve>0||this.closed?super.execute(ye,Ve):this._execute(ye,Ve)}requestAsyncId(ye,Ve,tt=0){return null!=tt&&tt>0||null==tt&&this.delay>0?super.requestAsyncId(ye,Ve,tt):(ye.flush(this),0)}});var A=c(3494),w=c(2806),I=function(nt){return nt[nt.loading=1]="loading",nt[nt.setVariables=2]="setVariables",nt[nt.fetchMore=3]="fetchMore",nt[nt.refetch=4]="refetch",nt[nt.poll=6]="poll",nt[nt.ready=7]="ready",nt[nt.error=8]="error",nt}(I||{});function F(nt){return!!nt&&nt<7}var V=c(4626),x=c(1404),ne=c(8008),J=ne.C.execute,be=c(560),Oe=c(4183),he=c(7994),Ie=function(nt,ye){var Ve;try{Ve=JSON.stringify(nt)}catch(Mt){var tt=(0,x.vA)(39,ye,Mt.message);throw tt.parseError=Mt,tt}return Ve},de=c(6500);function pe(nt){var ye={next:function(){return nt.read()}};return de.uJ&&(ye[Symbol.asyncIterator]=function(){return this}),ye}function Pt(nt){var ye=nt;if(function E(nt){return!!nt.body}(nt)&&(ye=nt.body),function R(nt){return!(!de.uJ||!nt[Symbol.asyncIterator])}(ye))return function H(nt){var ye,Ve=nt[Symbol.asyncIterator]();return(ye={next:function(){return Ve.next()}})[Symbol.asyncIterator]=function(){return this},ye}(ye);if(function S(nt){return!!nt.getReader}(ye))return pe(ye.getReader());if(function Y(nt){return!!nt.stream}(ye))return pe(ye.stream().getReader());if(function se(nt){return!!nt.arrayBuffer}(ye))return function Z(nt){var ye=!1,Ve={next:function(){return ye?Promise.resolve({value:void 0,done:!0}):(ye=!0,new Promise(function(tt,Mt){nt.then(function(Yt){tt({value:Yt,done:!1})}).catch(Mt)}))}};return de.uJ&&(Ve[Symbol.asyncIterator]=function(){return this}),Ve}(ye.arrayBuffer());if(function Be(nt){return!!nt.pipe}(ye))return function z(nt){var ye=null,Ve=null,tt=!1,Mt=[],Yt=[];function tn(xn){if(!Ve){if(Yt.length){var Qn=Yt.shift();if(Array.isArray(Qn)&&Qn[0])return Qn[0]({value:xn,done:!1})}Mt.push(xn)}}function on(xn){Ve=xn,Yt.slice().forEach(function(qn){qn[1](xn)}),!ye||ye()}function bn(){tt=!0,Yt.slice().forEach(function(Qn){Qn[0]({value:void 0,done:!0})}),!ye||ye()}ye=function(){ye=null,nt.removeListener("data",tn),nt.removeListener("error",on),nt.removeListener("end",bn),nt.removeListener("finish",bn),nt.removeListener("close",bn)},nt.on("data",tn),nt.on("error",on),nt.on("end",bn),nt.on("finish",bn),nt.on("close",bn);var Ln={next:function(){return function Sn(){return new Promise(function(xn,Qn){return Ve?Qn(Ve):Mt.length?xn({value:Mt.shift(),done:!1}):tt?xn({value:void 0,done:!0}):void Yt.push([xn,Qn])})}()}};return de.uJ&&(Ln[Symbol.asyncIterator]=function(){return this}),Ln}(ye);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var vt=function(nt,ye,Ve){var tt=new Error(Ve);throw tt.name="ServerError",tt.response=nt,tt.statusCode=nt.status,tt.result=ye,tt},wt=c(1181),Le=Symbol(),Ct=function(nt){function ye(Ve){var tt=Ve.graphQLErrors,Mt=Ve.protocolErrors,Yt=Ve.clientErrors,tn=Ve.networkError,on=Ve.errorMessage,bn=Ve.extraInfo,Sn=nt.call(this,on)||this;return Sn.name="ApolloError",Sn.graphQLErrors=tt||[],Sn.protocolErrors=Mt||[],Sn.clientErrors=Yt||[],Sn.networkError=tn||null,Sn.message=on||function(nt){var ye=(0,V.fX)((0,V.fX)((0,V.fX)([],nt.graphQLErrors,!0),nt.clientErrors,!0),nt.protocolErrors,!0);return nt.networkError&&ye.push(nt.networkError),ye.map(function(Ve){return(0,wt.U)(Ve)&&Ve.message||"Error message not found."}).join("\n")}(Sn),Sn.extraInfo=bn,Sn.cause=(0,V.fX)((0,V.fX)((0,V.fX)([tn],tt||[],!0),Mt||[],!0),Yt||[],!0).find(function(Ln){return!!Ln})||null,Sn.__proto__=ye.prototype,Sn}return(0,V.C6)(ye,nt),ye}(Error),It=c(7715),Tt=c(1115);function en(nt){return"incremental"in nt}function fn(nt){return(0,wt.U)(nt)&&"payload"in nt}function Hn(nt,ye){var Ve=nt,tt=new Tt.ZI;return en(ye)&&(0,It.E)(ye.incremental)&&ye.incremental.forEach(function(Mt){for(var Yt=Mt.data,tn=Mt.path,on=tn.length-1;on>=0;--on){var bn=tn[on],Ln=isNaN(+bn)?{}:[];Ln[bn]=Yt,Yt=Ln}Ve=tt.merge(Ve,Yt)}),Ve}var zn=Object.prototype.hasOwnProperty;function At(nt){var ye={};return nt.split("\n").forEach(function(Ve){var tt=Ve.indexOf(":");if(tt>-1){var Mt=Ve.slice(0,tt).trim().toLowerCase(),Yt=Ve.slice(tt+1).trim();ye[Mt]=Yt}}),ye}function Et(nt,ye){nt.status>=300&&vt(nt,function(){try{return JSON.parse(ye)}catch{return ye}}(),"Response not successful: Received status code ".concat(nt.status));try{return JSON.parse(ye)}catch(Mt){var tt=Mt;throw tt.name="ServerParseError",tt.response=nt,tt.statusCode=nt.status,tt.bodyText=ye,tt}}var Ae=c(1658),Fe={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},et=function(nt,ye){return ye(nt)};function Wn(nt){return new he.c(function(ye){ye.error(nt)})}var kn=c(8540),Un=c(1601),dn=c(4229),qt=(0,x.no)(function(){return fetch}),On=function(nt){void 0===nt&&(nt={});var ye=nt.uri,Ve=void 0===ye?"/graphql":ye,tt=nt.fetch,Mt=nt.print,Yt=void 0===Mt?et:Mt,tn=nt.includeExtensions,on=nt.preserveHeaderCase,bn=nt.useGETForQueries,Sn=nt.includeUnusedVariables,Ln=void 0!==Sn&&Sn,xn=(0,V.Tt)(nt,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(nt){if(!nt&&typeof fetch>"u")throw(0,x.vA)(37)}(tt||qt);var Qn={http:{includeExtensions:tn,preserveHeaderCase:on},options:xn.fetchOptions,credentials:xn.credentials,headers:xn.headers};return new ne.C(function(qn){var pi=function(nt,ye){return nt.getContext().uri||("function"==typeof ye?ye(nt):ye||"/graphql")}(qn,Ve),ei=qn.getContext(),li={};if(ei.clientAwareness){var ai=ei.clientAwareness,mi=ai.name,Ei=ai.version;mi&&(li["apollographql-client-name"]=mi),Ei&&(li["apollographql-client-version"]=Ei)}var Xi=(0,V.Cl)((0,V.Cl)({},li),ei.headers),Mi={http:ei.http,options:ei.fetchOptions,credentials:ei.credentials,headers:Xi};if((0,Oe.d8)(["client"],qn.query)){var no=(0,Un.er)(qn.query);if(!no)return Wn(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));qn.query=no}var _o,ao=function Kt(nt,ye){for(var Ve=[],tt=2;tt-1;){if(li=void 0,ao=[on.slice(0,ei),on.slice(ei+tn.length)],on=ao[1],ai=(li=ao[0]).indexOf("\r\n\r\n"),mi=At(li.slice(0,ai)),(Ei=mi["content-type"])&&-1===Ei.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(Xi=li.slice(ai))if(Mi=Et(nt,Xi),Object.keys(Mi).length>1||"data"in Mi||"incremental"in Mi||"errors"in Mi||"payload"in Mi)if(fn(Mi)){if(no={},"payload"in Mi){if(1===Object.keys(Mi).length&&null===Mi.payload)return[2];no=(0,V.Cl)({},Mi.payload)}"errors"in Mi&&(no=(0,V.Cl)((0,V.Cl)({},no),{extensions:(0,V.Cl)((0,V.Cl)({},"extensions"in no?no.extensions:null),(io={},io[Le]=Mi.errors,io))})),ye(no)}else ye(Mi);else if(1===Object.keys(Mi).length&&"hasNext"in Mi&&!Mi.hasNext)return[2];ei=on.indexOf(tn)}return[3,1];case 3:return[2]}})})}(Uo,Fr):function Wt(nt){return function(ye){return ye.text().then(function(Ve){return Et(ye,Ve)}).then(function(Ve){return!Array.isArray(Ve)&&!zn.call(Ve,"data")&&!zn.call(Ve,"errors")&&vt(ye,Ve,"Server response was missing for query '".concat(Array.isArray(nt)?nt.map(function(tt){return tt.operationName}):nt.operationName,"'.")),Ve})}}(qn)(Uo).then(Fr)}).then(function(){_o=void 0,Fo.complete()}).catch(function(Uo){_o=void 0,function Ot(nt,ye){nt.result&&nt.result.errors&&nt.result.data&&ye.next(nt.result),ye.error(nt)}(Uo,Fo)}),function(){_o&&_o.abort()}})})},Ut=function(nt){function ye(Ve){void 0===Ve&&(Ve={});var tt=nt.call(this,On(Ve).request)||this;return tt.options=Ve,tt}return(0,V.C6)(ye,nt),ye}(ne.C),Ye=c(9860),ue=c(2130),te=c(8926);function q(nt,ye,Ve){return new he.c(function(tt){var Mt={then:function(bn){return new Promise(function(Sn){return Sn(bn())})}};function Yt(bn,Sn){return function(Ln){if(bn){var xn=function(){return tt.closed?0:bn(Ln)};Mt=Mt.then(xn,xn).then(function(Qn){return tt.next(Qn)},function(Qn){return tt.error(Qn)})}else tt[Sn](Ln)}}var tn={next:Yt(ye,"next"),error:Yt(Ve,"error"),complete:function(){Mt.then(function(){return tt.complete()})}},on=nt.subscribe(tn);return function(){return on.unsubscribe()}})}function Xe(nt){var ye=ht(nt);return(0,It.E)(ye)}function ht(nt){var ye=(0,It.E)(nt.errors)?nt.errors.slice(0):[];return en(nt)&&(0,It.E)(nt.incremental)&&nt.incremental.forEach(function(Ve){Ve.errors&&ye.push.apply(ye,Ve.errors)}),ye}var at=c(1367),St=c(9977);function Qe(nt,ye,Ve){var tt=[];nt.forEach(function(Mt){return Mt[ye]&&tt.push(Mt)}),tt.forEach(function(Mt){return Mt[ye](Ve)})}function Ee(nt){function ye(Ve){Object.defineProperty(nt,Ve,{value:he.c})}return de.ol&&Symbol.species&&ye(Symbol.species),ye("@@species"),nt}function Je(nt){return nt&&"function"==typeof nt.then}var re=function(nt){function ye(Ve){var tt=nt.call(this,function(Mt){return tt.addObserver(Mt),function(){return tt.removeObserver(Mt)}})||this;return tt.observers=new Set,tt.promise=new Promise(function(Mt,Yt){tt.resolve=Mt,tt.reject=Yt}),tt.handlers={next:function(Mt){null!==tt.sub&&(tt.latest=["next",Mt],tt.notify("next",Mt),Qe(tt.observers,"next",Mt))},error:function(Mt){var Yt=tt.sub;null!==Yt&&(Yt&&setTimeout(function(){return Yt.unsubscribe()}),tt.sub=null,tt.latest=["error",Mt],tt.reject(Mt),tt.notify("error",Mt),Qe(tt.observers,"error",Mt))},complete:function(){var Yt=tt.sub,tn=tt.sources;if(null!==Yt){var bn=(void 0===tn?[]:tn).shift();bn?Je(bn)?bn.then(function(Sn){return tt.sub=Sn.subscribe(tt.handlers)},tt.handlers.error):tt.sub=bn.subscribe(tt.handlers):(Yt&&setTimeout(function(){return Yt.unsubscribe()}),tt.sub=null,tt.latest&&"next"===tt.latest[0]?tt.resolve(tt.latest[1]):tt.resolve(),tt.notify("complete"),Qe(tt.observers,"complete"))}}},tt.nextResultListeners=new Set,tt.cancel=function(Mt){tt.reject(Mt),tt.sources=[],tt.handlers.complete()},tt.promise.catch(function(Mt){}),"function"==typeof Ve&&(Ve=[new he.c(Ve)]),Je(Ve)?Ve.then(function(Mt){return tt.start(Mt)},tt.handlers.error):tt.start(Ve),tt}return(0,V.C6)(ye,nt),ye.prototype.start=function(Ve){void 0===this.sub&&(this.sources=Array.from(Ve),this.handlers.complete())},ye.prototype.deliverLastMessage=function(Ve){if(this.latest){var tt=this.latest[0],Mt=Ve[tt];Mt&&Mt.call(Ve,this.latest[1]),null===this.sub&&"next"===tt&&Ve.complete&&Ve.complete()}},ye.prototype.addObserver=function(Ve){this.observers.has(Ve)||(this.deliverLastMessage(Ve),this.observers.add(Ve))},ye.prototype.removeObserver=function(Ve){this.observers.delete(Ve)&&this.observers.size<1&&this.handlers.complete()},ye.prototype.notify=function(Ve,tt){var Mt=this.nextResultListeners;Mt.size&&(this.nextResultListeners=new Set,Mt.forEach(function(Yt){return Yt(Ve,tt)}))},ye.prototype.beforeNext=function(Ve){var tt=!1;this.nextResultListeners.add(function(Mt,Yt){tt||(tt=!0,Ve(Mt,Yt))})},ye}(he.c);Ee(re);var ze=c(120),gt=c(4246),Ke=c(9471),Pe=Object.assign,Re=Object.hasOwnProperty,$=function(nt){function ye(Ve){var tt=Ve.queryManager,Mt=Ve.queryInfo,Yt=Ve.options,tn=nt.call(this,function(li){try{var ai=li._subscription._observer;ai&&!ai.error&&(ai.error=N)}catch{}var mi=!tn.observers.size;tn.observers.add(li);var Ei=tn.last;return Ei&&Ei.error?li.error&&li.error(Ei.error):Ei&&Ei.result&&li.next&&li.next(Ei.result),mi&&tn.reobserve().catch(function(){}),function(){tn.observers.delete(li)&&!tn.observers.size&&tn.tearDownQuery()}})||this;tn.observers=new Set,tn.subscriptions=new Set,tn.queryInfo=Mt,tn.queryManager=tt,tn.waitForOwnResult=ve(Yt.fetchPolicy),tn.isTornDown=!1,tn.subscribeToMore=tn.subscribeToMore.bind(tn);var on=tt.defaultOptions.watchQuery,Sn=(void 0===on?{}:on).fetchPolicy,Ln=void 0===Sn?"cache-first":Sn,xn=Yt.fetchPolicy,Qn=void 0===xn?Ln:xn,qn=Yt.initialFetchPolicy,pi=void 0===qn?"standby"===Qn?Ln:Qn:qn;tn.options=(0,V.Cl)((0,V.Cl)({},Yt),{initialFetchPolicy:pi,fetchPolicy:Qn}),tn.queryId=Mt.queryId||tt.generateQueryId();var ei=(0,dn.Vu)(tn.query);return tn.queryName=ei&&ei.name&&ei.name.value,tn}return(0,V.C6)(ye,nt),Object.defineProperty(ye.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ye.prototype.result=function(){var Ve=this;return new Promise(function(tt,Mt){var Yt={next:function(on){tt(on),Ve.observers.delete(Yt),Ve.observers.size||Ve.queryManager.removeQuery(Ve.queryId),setTimeout(function(){tn.unsubscribe()},0)},error:Mt},tn=Ve.subscribe(Yt)})},ye.prototype.resetDiff=function(){this.queryInfo.resetDiff()},ye.prototype.getCurrentResult=function(Ve){void 0===Ve&&(Ve=!0);var tt=this.getLastResult(!0),Mt=this.queryInfo.networkStatus||tt&&tt.networkStatus||I.ready,Yt=(0,V.Cl)((0,V.Cl)({},tt),{loading:F(Mt),networkStatus:Mt}),tn=this.options.fetchPolicy,on=void 0===tn?"cache-first":tn;if(!ve(on)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var bn=this.queryInfo.getDiff();(bn.complete||this.options.returnPartialData)&&(Yt.data=bn.result),(0,Ye.L)(Yt.data,{})&&(Yt.data=void 0),bn.complete?(delete Yt.partial,bn.complete&&Yt.networkStatus===I.loading&&("cache-first"===on||"cache-only"===on)&&(Yt.networkStatus=I.ready,Yt.loading=!1)):Yt.partial=!0,!1!==globalThis.__DEV__&&!bn.complete&&!this.options.partialRefetch&&!Yt.loading&&!Yt.data&&!Yt.error&&ke(bn.missing)}return Ve&&this.updateLastResult(Yt),Yt},ye.prototype.isDifferentFromLastResult=function(Ve,tt){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,Ke.a)(this.query,this.last.result,Ve,this.variables):!(0,Ye.L)(this.last.result,Ve))||tt&&!(0,Ye.L)(this.last.variables,tt)},ye.prototype.getLast=function(Ve,tt){var Mt=this.last;if(Mt&&Mt[Ve]&&(!tt||(0,Ye.L)(Mt.variables,this.variables)))return Mt[Ve]},ye.prototype.getLastResult=function(Ve){return this.getLast("result",Ve)},ye.prototype.getLastError=function(Ve){return this.getLast("error",Ve)},ye.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ye.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ye.prototype.refetch=function(Ve){var tt,Mt={pollInterval:0},Yt=this.options.fetchPolicy;if(Mt.fetchPolicy="cache-and-network"===Yt?Yt:"no-cache"===Yt?"no-cache":"network-only",!1!==globalThis.__DEV__&&Ve&&Re.call(Ve,"variables")){var tn=(0,dn.AT)(this.query),on=tn.variableDefinitions;(!on||!on.some(function(bn){return"variables"===bn.variable.name.value}))&&!1!==globalThis.__DEV__&&x.V1.warn(20,Ve,(null===(tt=tn.name)||void 0===tt?void 0:tt.value)||tn)}return Ve&&!(0,Ye.L)(this.options.variables,Ve)&&(Mt.variables=this.options.variables=(0,V.Cl)((0,V.Cl)({},this.options.variables),Ve)),this.queryInfo.resetLastWrite(),this.reobserve(Mt,I.refetch)},ye.prototype.fetchMore=function(Ve){var tt=this,Mt=(0,V.Cl)((0,V.Cl)({},Ve.query?Ve:(0,V.Cl)((0,V.Cl)((0,V.Cl)((0,V.Cl)({},this.options),{query:this.options.query}),Ve),{variables:(0,V.Cl)((0,V.Cl)({},this.options.variables),Ve.variables)})),{fetchPolicy:"no-cache"});Mt.query=this.transformDocument(Mt.query);var Yt=this.queryManager.generateQueryId();this.lastQuery=Ve.query?this.transformDocument(this.options.query):Mt.query;var tn=this.queryInfo,on=tn.networkStatus;tn.networkStatus=I.fetchMore,Mt.notifyOnNetworkStatusChange&&this.observe();var bn=new Set;return this.queryManager.fetchQuery(Yt,Mt,I.fetchMore).then(function(Sn){return tt.queryManager.removeQuery(Yt),tn.networkStatus===I.fetchMore&&(tn.networkStatus=on),tt.queryManager.cache.batch({update:function(Ln){var xn=Ve.updateQuery;xn?Ln.updateQuery({query:tt.query,variables:tt.variables,returnPartialData:!0,optimistic:!1},function(Qn){return xn(Qn,{fetchMoreResult:Sn.data,variables:Mt.variables})}):Ln.writeQuery({query:Mt.query,variables:Mt.variables,data:Sn.data})},onWatchUpdated:function(Ln){bn.add(Ln.query)}}),Sn}).finally(function(){bn.has(tt.query)||ce(tt)})},ye.prototype.subscribeToMore=function(Ve){var tt=this,Mt=this.queryManager.startGraphQLSubscription({query:Ve.document,variables:Ve.variables,context:Ve.context}).subscribe({next:function(Yt){var tn=Ve.updateQuery;tn&&tt.updateQuery(function(on,bn){return tn(on,{subscriptionData:Yt,variables:bn.variables})})},error:function(Yt){Ve.onError?Ve.onError(Yt):!1!==globalThis.__DEV__&&x.V1.error(21,Yt)}});return this.subscriptions.add(Mt),function(){tt.subscriptions.delete(Mt)&&Mt.unsubscribe()}},ye.prototype.setOptions=function(Ve){return this.reobserve(Ve)},ye.prototype.silentSetOptions=function(Ve){var tt=(0,ze.o)(this.options,Ve||{});Pe(this.options,tt)},ye.prototype.setVariables=function(Ve){return(0,Ye.L)(this.variables,Ve)?this.observers.size?this.result():Promise.resolve():(this.options.variables=Ve,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:Ve},I.setVariables):Promise.resolve())},ye.prototype.updateQuery=function(Ve){var tt=this.queryManager,Yt=Ve(tt.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});Yt&&(tt.cache.writeQuery({query:this.options.query,data:Yt,variables:this.variables}),tt.broadcastQueries())},ye.prototype.startPolling=function(Ve){this.options.pollInterval=Ve,this.updatePolling()},ye.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ye.prototype.applyNextFetchPolicy=function(Ve,tt){if(tt.nextFetchPolicy){var Mt=tt.fetchPolicy,Yt=void 0===Mt?"cache-first":Mt,tn=tt.initialFetchPolicy,on=void 0===tn?Yt:tn;"standby"===Yt||(tt.fetchPolicy="function"==typeof tt.nextFetchPolicy?tt.nextFetchPolicy(Yt,{reason:Ve,options:tt,observable:this,initialFetchPolicy:on}):"variables-changed"===Ve?on:tt.nextFetchPolicy)}return tt.fetchPolicy},ye.prototype.fetch=function(Ve,tt,Mt){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,Ve,tt,Mt)},ye.prototype.updatePolling=function(){var Ve=this;if(!this.queryManager.ssrMode){var Mt=this.pollingInfo,Yt=this.options.pollInterval;if(!Yt||!this.hasObservers())return void(Mt&&(clearTimeout(Mt.timeout),delete this.pollingInfo));if(!Mt||Mt.interval!==Yt){(0,x.V1)(Yt,22),(Mt||(this.pollingInfo={})).interval=Yt;var on=function(){var Sn,Ln;Ve.pollingInfo&&(F(Ve.queryInfo.networkStatus)||null!==(Ln=(Sn=Ve.options).skipPollAttempt)&&void 0!==Ln&&Ln.call(Sn)?bn():Ve.reobserve({fetchPolicy:"no-cache"===Ve.options.initialFetchPolicy?"no-cache":"network-only"},I.poll).then(bn,bn))},bn=function(){var Sn=Ve.pollingInfo;Sn&&(clearTimeout(Sn.timeout),Sn.timeout=setTimeout(on,Sn.interval))};bn()}}},ye.prototype.updateLastResult=function(Ve,tt){void 0===tt&&(tt=this.variables);var Mt=this.getLastError();return Mt&&this.last&&!(0,Ye.L)(tt,this.last.variables)&&(Mt=void 0),this.last=(0,V.Cl)({result:this.queryManager.assumeImmutableResults?Ve:(0,gt.m)(Ve),variables:tt},Mt?{error:Mt}:null)},ye.prototype.reobserveAsConcast=function(Ve,tt){var Mt=this;this.isTornDown=!1;var Yt=tt===I.refetch||tt===I.fetchMore||tt===I.poll,tn=this.options.variables,on=this.options.fetchPolicy,bn=(0,ze.o)(this.options,Ve||{}),Sn=Yt?bn:Pe(this.options,bn),Ln=this.transformDocument(Sn.query);this.lastQuery=Ln,Yt||(this.updatePolling(),Ve&&Ve.variables&&!(0,Ye.L)(Ve.variables,tn)&&"standby"!==Sn.fetchPolicy&&(Sn.fetchPolicy===on||"function"==typeof Sn.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",Sn),void 0===tt&&(tt=I.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=ve(Sn.fetchPolicy));var xn=function(){Mt.concast===pi&&(Mt.waitForOwnResult=!1)},Qn=Sn.variables&&(0,V.Cl)({},Sn.variables),qn=this.fetch(Sn,tt,Ln),pi=qn.concast,li={next:function(ai){(0,Ye.L)(Mt.variables,Qn)&&(xn(),Mt.reportResult(ai,Qn))},error:function(ai){(0,Ye.L)(Mt.variables,Qn)&&(xn(),Mt.reportError(ai,Qn))}};return!Yt&&(qn.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=pi,this.observer=li),pi.addObserver(li),pi},ye.prototype.reobserve=function(Ve,tt){return this.reobserveAsConcast(Ve,tt).promise},ye.prototype.resubscribeAfterError=function(){for(var Ve=[],tt=0;tt0},ye.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(Ve){return Ve.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ye.prototype.transformDocument=function(Ve){return this.queryManager.transform(Ve)},ye}(he.c);function ce(nt){var ye=nt.options,Ve=ye.fetchPolicy,tt=ye.nextFetchPolicy;return"cache-and-network"===Ve||"network-only"===Ve?nt.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(Mt,Yt){return this.nextFetchPolicy=tt,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(Mt,Yt):Ve}}):nt.reobserve()}function N(nt){!1!==globalThis.__DEV__&&x.V1.error(23,nt.message,nt.stack)}function ke(nt){!1!==globalThis.__DEV__&&nt&&!1!==globalThis.__DEV__&&x.V1.debug(24,nt)}function ve(nt){return"network-only"===nt||"no-cache"===nt||"standby"===nt}Ee($);var K=new(de.et?WeakMap:Map);function U(nt,ye){var Ve=nt[ye];"function"==typeof Ve&&(nt[ye]=function(){return K.set(nt,(K.get(nt)+1)%1e15),Ve.apply(this,arguments)})}function ge(nt){nt.notifyTimeout&&(clearTimeout(nt.notifyTimeout),nt.notifyTimeout=void 0)}var qe=function(){function nt(ye,Ve){void 0===Ve&&(Ve=ye.generateQueryId()),this.queryId=Ve,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var tt=this.cache=ye.cache;K.has(tt)||(K.set(tt,0),U(tt,"evict"),U(tt,"modify"),U(tt,"reset"))}return nt.prototype.init=function(ye){var Ve=ye.networkStatus||I.loading;return this.variables&&this.networkStatus!==I.loading&&!(0,Ye.L)(this.variables,ye.variables)&&(Ve=I.setVariables),(0,Ye.L)(ye.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:ye.document,variables:ye.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:Ve}),ye.observableQuery&&this.setObservableQuery(ye.observableQuery),ye.lastRequestId&&(this.lastRequestId=ye.lastRequestId),this},nt.prototype.reset=function(){ge(this),this.dirty=!1},nt.prototype.resetDiff=function(){this.lastDiff=void 0},nt.prototype.getDiff=function(){var ye=this.getDiffOptions();if(this.lastDiff&&(0,Ye.L)(ye,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var Ve=this.observableQuery;if(Ve&&"no-cache"===Ve.options.fetchPolicy)return{complete:!1};var tt=this.cache.diff(ye);return this.updateLastDiff(tt,ye),tt},nt.prototype.updateLastDiff=function(ye,Ve){this.lastDiff=ye?{diff:ye,options:Ve||this.getDiffOptions()}:void 0},nt.prototype.getDiffOptions=function(ye){var Ve;return void 0===ye&&(ye=this.variables),{query:this.document,variables:ye,returnPartialData:!0,optimistic:!0,canonizeResults:null===(Ve=this.observableQuery)||void 0===Ve?void 0:Ve.options.canonizeResults}},nt.prototype.setDiff=function(ye){var tt,Ve=this,Mt=this.lastDiff&&this.lastDiff.diff;ye&&!ye.complete&&null!==(tt=this.observableQuery)&&void 0!==tt&&tt.getLastError()||(this.updateLastDiff(ye),!this.dirty&&!(0,Ye.L)(Mt&&Mt.result,ye&&ye.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return Ve.notify()},0))))},nt.prototype.setObservableQuery=function(ye){var Ve=this;ye!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=ye,ye?(ye.queryInfo=this,this.listeners.add(this.oqListener=function(){Ve.getDiff().fromOptimisticTransaction?ye.observe():ce(ye)})):delete this.oqListener)},nt.prototype.notify=function(){var ye=this;ge(this),this.shouldNotify()&&this.listeners.forEach(function(Ve){return Ve(ye)}),this.dirty=!1},nt.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(F(this.networkStatus)&&this.observableQuery){var ye=this.observableQuery.options.fetchPolicy;if("cache-only"!==ye&&"cache-and-network"!==ye)return!1}return!0},nt.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=nt.prototype.cancel;var ye=this.observableQuery;ye&&ye.stopPolling()}},nt.prototype.cancel=function(){},nt.prototype.updateWatch=function(ye){var Ve=this;void 0===ye&&(ye=this.variables);var tt=this.observableQuery;if(!tt||"no-cache"!==tt.options.fetchPolicy){var Mt=(0,V.Cl)((0,V.Cl)({},this.getDiffOptions(ye)),{watcher:this,callback:function(Yt){return Ve.setDiff(Yt)}});(!this.lastWatch||!(0,Ye.L)(Mt,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=Mt))}},nt.prototype.resetLastWrite=function(){this.lastWrite=void 0},nt.prototype.shouldWrite=function(ye,Ve){var tt=this.lastWrite;return!(tt&&tt.dmCount===K.get(this.cache)&&(0,Ye.L)(Ve,tt.variables)&&(0,Ye.L)(ye.data,tt.result.data))},nt.prototype.markResult=function(ye,Ve,tt,Mt){var Yt=this,tn=new Tt.ZI,on=(0,It.E)(ye.errors)?ye.errors.slice(0):[];if(this.reset(),"incremental"in ye&&(0,It.E)(ye.incremental)){var bn=Hn(this.getDiff().result,ye);ye.data=bn}else if("hasNext"in ye&&ye.hasNext){var Sn=this.getDiff();ye.data=tn.merge(Sn.result,ye.data)}this.graphQLErrors=on,"no-cache"===tt.fetchPolicy?this.updateLastDiff({result:ye.data,complete:!0},this.getDiffOptions(tt.variables)):0!==Mt&&(rt(ye,tt.errorPolicy)?this.cache.performTransaction(function(Ln){if(Yt.shouldWrite(ye,tt.variables))Ln.writeQuery({query:Ve,data:ye.data,variables:tt.variables,overwrite:1===Mt}),Yt.lastWrite={result:ye,variables:tt.variables,dmCount:K.get(Yt.cache)};else if(Yt.lastDiff&&Yt.lastDiff.diff.complete)return void(ye.data=Yt.lastDiff.diff.result);var xn=Yt.getDiffOptions(tt.variables),Qn=Ln.diff(xn);!Yt.stopped&&(0,Ye.L)(Yt.variables,tt.variables)&&Yt.updateWatch(tt.variables),Yt.updateLastDiff(Qn,xn),Qn.complete&&(ye.data=Qn.result)}):this.lastWrite=void 0)},nt.prototype.markReady=function(){return this.networkError=null,this.networkStatus=I.ready},nt.prototype.markError=function(ye){return this.networkStatus=I.error,this.lastWrite=void 0,this.reset(),ye.graphQLErrors&&(this.graphQLErrors=ye.graphQLErrors),ye.networkError&&(this.networkError=ye.networkError),ye},nt}();function rt(nt,ye){void 0===ye&&(ye="none");var Ve="ignore"===ye||"all"===ye,tt=!Xe(nt);return!tt&&Ve&&nt.data&&(tt=!0),tt}var Ft=c(4420),rn=c(2170),Cn=c(2151),Zn=Object.prototype.hasOwnProperty,jn=Object.create(null),Gn=function(){function nt(ye){var Ve=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new rn.A(Cn.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Ft.b(!1);var tt=new te.c(function(Yt){return Ve.cache.transformDocument(Yt)},{cache:!1});this.cache=ye.cache,this.link=ye.link,this.defaultOptions=ye.defaultOptions,this.queryDeduplication=ye.queryDeduplication,this.clientAwareness=ye.clientAwareness,this.localState=ye.localState,this.ssrMode=ye.ssrMode,this.assumeImmutableResults=ye.assumeImmutableResults;var Mt=ye.documentTransform;this.documentTransform=Mt?tt.concat(Mt).concat(tt):tt,this.defaultContext=ye.defaultContext||Object.create(null),(this.onBroadcast=ye.onBroadcast)&&(this.mutationStore=Object.create(null))}return nt.prototype.stop=function(){var ye=this;this.queries.forEach(function(Ve,tt){ye.stopQueryNoBroadcast(tt)}),this.cancelPendingFetches((0,x.vA)(25))},nt.prototype.cancelPendingFetches=function(ye){this.fetchCancelFns.forEach(function(Ve){return Ve(ye)}),this.fetchCancelFns.clear()},nt.prototype.mutate=function(ye){return(0,V.sH)(this,arguments,void 0,function(Ve){var tt,Mt,Yt,tn,on,bn,Sn,Ln=Ve.mutation,xn=Ve.variables,Qn=Ve.optimisticResponse,qn=Ve.updateQueries,pi=Ve.refetchQueries,ei=void 0===pi?[]:pi,li=Ve.awaitRefetchQueries,ai=void 0!==li&&li,mi=Ve.update,Ei=Ve.onQueryUpdated,Xi=Ve.fetchPolicy,Mi=void 0===Xi?(null===(bn=this.defaultOptions.mutate)||void 0===bn?void 0:bn.fetchPolicy)||"network-only":Xi,no=Ve.errorPolicy,ao=void 0===no?(null===(Sn=this.defaultOptions.mutate)||void 0===Sn?void 0:Sn.errorPolicy)||"none":no,io=Ve.keepRootFields,Fn=Ve.context;return(0,V.YH)(this,function(_o){switch(_o.label){case 0:return(0,x.V1)(Ln,26),(0,x.V1)("network-only"===Mi||"no-cache"===Mi,27),tt=this.generateMutationId(),Ln=this.cache.transformForLink(this.transform(Ln)),Mt=this.getDocumentInfo(Ln).hasClientExports,xn=this.getVariables(Ln,xn),Mt?[4,this.localState.addExportedVariables(Ln,xn,Fn)]:[3,2];case 1:xn=_o.sent(),_o.label=2;case 2:return Yt=this.mutationStore&&(this.mutationStore[tt]={mutation:Ln,variables:xn,loading:!0,error:null}),tn=Qn&&this.markMutationOptimistic(Qn,{mutationId:tt,document:Ln,variables:xn,fetchPolicy:Mi,errorPolicy:ao,context:Fn,updateQueries:qn,update:mi,keepRootFields:io}),this.broadcastQueries(),on=this,[2,new Promise(function(ir,Gr){return q(on.getObservableFromLink(Ln,(0,V.Cl)((0,V.Cl)({},Fn),{optimisticResponse:tn?Qn:void 0}),xn,{},!1),function(Do){if(Xe(Do)&&"none"===ao)throw new Ct({graphQLErrors:ht(Do)});Yt&&(Yt.loading=!1,Yt.error=null);var Jo=(0,V.Cl)({},Do);return"function"==typeof ei&&(ei=ei(Jo)),"ignore"===ao&&Xe(Jo)&&delete Jo.errors,on.markMutationResult({mutationId:tt,result:Jo,document:Ln,variables:xn,fetchPolicy:Mi,errorPolicy:ao,context:Fn,update:mi,updateQueries:qn,awaitRefetchQueries:ai,refetchQueries:ei,removeOptimistic:tn?tt:void 0,onQueryUpdated:Ei,keepRootFields:io})}).subscribe({next:function(Do){on.broadcastQueries(),(!("hasNext"in Do)||!1===Do.hasNext)&&ir(Do)},error:function(Do){Yt&&(Yt.loading=!1,Yt.error=Do),tn&&on.cache.removeOptimistic(tt),on.broadcastQueries(),Gr(Do instanceof Ct?Do:new Ct({networkError:Do}))}})})]}})})},nt.prototype.markMutationResult=function(ye,Ve){var tt=this;void 0===Ve&&(Ve=this.cache);var Mt=ye.result,Yt=[],tn="no-cache"===ye.fetchPolicy;if(!tn&&rt(Mt,ye.errorPolicy)){if(en(Mt)||Yt.push({result:Mt.data,dataId:"ROOT_MUTATION",query:ye.document,variables:ye.variables}),en(Mt)&&(0,It.E)(Mt.incremental)){var on=Ve.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(ye.document).asQuery,variables:ye.variables,optimistic:!1,returnPartialData:!0}),bn=void 0;on.result&&(bn=Hn(on.result,Mt)),typeof bn<"u"&&(Mt.data=bn,Yt.push({result:bn,dataId:"ROOT_MUTATION",query:ye.document,variables:ye.variables}))}var Sn=ye.updateQueries;Sn&&this.queries.forEach(function(xn,Qn){var qn=xn.observableQuery,pi=qn&&qn.queryName;if(pi&&Zn.call(Sn,pi)){var ei=Sn[pi],li=tt.queries.get(Qn),ai=li.document,mi=li.variables,Ei=Ve.diff({query:ai,variables:mi,returnPartialData:!0,optimistic:!1}),Xi=Ei.result;if(Ei.complete&&Xi){var no=ei(Xi,{mutationResult:Mt,queryName:ai&&(0,dn.n4)(ai)||void 0,queryVariables:mi});no&&Yt.push({result:no,dataId:"ROOT_QUERY",query:ai,variables:mi})}}})}if(Yt.length>0||(ye.refetchQueries||"").length>0||ye.update||ye.onQueryUpdated||ye.removeOptimistic){var Ln=[];if(this.refetchQueries({updateCache:function(xn){tn||Yt.forEach(function(ei){return xn.write(ei)});var Qn=ye.update,qn=!function Vt(nt){return en(nt)||function jt(nt){return"hasNext"in nt&&"data"in nt}(nt)}(Mt)||en(Mt)&&!Mt.hasNext;if(Qn){if(!tn){var pi=xn.diff({id:"ROOT_MUTATION",query:tt.getDocumentInfo(ye.document).asQuery,variables:ye.variables,optimistic:!1,returnPartialData:!0});pi.complete&&("incremental"in(Mt=(0,V.Cl)((0,V.Cl)({},Mt),{data:pi.result}))&&delete Mt.incremental,"hasNext"in Mt&&delete Mt.hasNext)}qn&&Qn(xn,Mt,{context:ye.context,variables:ye.variables})}!tn&&!ye.keepRootFields&&qn&&xn.modify({id:"ROOT_MUTATION",fields:function(ei,li){return"__typename"===li.fieldName?ei:li.DELETE}})},include:ye.refetchQueries,optimistic:!1,removeOptimistic:ye.removeOptimistic,onQueryUpdated:ye.onQueryUpdated||null}).forEach(function(xn){return Ln.push(xn)}),ye.awaitRefetchQueries||ye.onQueryUpdated)return Promise.all(Ln).then(function(){return Mt})}return Promise.resolve(Mt)},nt.prototype.markMutationOptimistic=function(ye,Ve){var tt=this,Mt="function"==typeof ye?ye(Ve.variables,{IGNORE:jn}):ye;return Mt!==jn&&(this.cache.recordOptimisticTransaction(function(Yt){try{tt.markMutationResult((0,V.Cl)((0,V.Cl)({},Ve),{result:{data:Mt}}),Yt)}catch(tn){!1!==globalThis.__DEV__&&x.V1.error(tn)}},Ve.mutationId),!0)},nt.prototype.fetchQuery=function(ye,Ve,tt){return this.fetchConcastWithInfo(ye,Ve,tt).concast.promise},nt.prototype.getQueryStore=function(){var ye=Object.create(null);return this.queries.forEach(function(Ve,tt){ye[tt]={variables:Ve.variables,networkStatus:Ve.networkStatus,networkError:Ve.networkError,graphQLErrors:Ve.graphQLErrors}}),ye},nt.prototype.resetErrors=function(ye){var Ve=this.queries.get(ye);Ve&&(Ve.networkError=void 0,Ve.graphQLErrors=[])},nt.prototype.transform=function(ye){return this.documentTransform.transformDocument(ye)},nt.prototype.getDocumentInfo=function(ye){var Ve=this.transformCache;if(!Ve.has(ye)){var tt={hasClientExports:(0,Oe.f2)(ye),hasForcedResolvers:this.localState.shouldForceResolvers(ye),hasNonreactiveDirective:(0,Oe.d8)(["nonreactive"],ye),clientQuery:this.localState.clientQuery(ye),serverQuery:(0,Un.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],ye),defaultVars:(0,dn.wY)((0,dn.Vu)(ye)),asQuery:(0,V.Cl)((0,V.Cl)({},ye),{definitions:ye.definitions.map(function(Mt){return"OperationDefinition"===Mt.kind&&"query"!==Mt.operation?(0,V.Cl)((0,V.Cl)({},Mt),{operation:"query"}):Mt})})};Ve.set(ye,tt)}return Ve.get(ye)},nt.prototype.getVariables=function(ye,Ve){return(0,V.Cl)((0,V.Cl)({},this.getDocumentInfo(ye).defaultVars),Ve)},nt.prototype.watchQuery=function(ye){var Ve=this.transform(ye.query);typeof(ye=(0,V.Cl)((0,V.Cl)({},ye),{variables:this.getVariables(Ve,ye.variables)})).notifyOnNetworkStatusChange>"u"&&(ye.notifyOnNetworkStatusChange=!1);var tt=new qe(this),Mt=new $({queryManager:this,queryInfo:tt,options:ye});return Mt.lastQuery=Ve,this.queries.set(Mt.queryId,tt),tt.init({document:Ve,observableQuery:Mt,variables:Mt.variables}),Mt},nt.prototype.query=function(ye,Ve){var tt=this;return void 0===Ve&&(Ve=this.generateQueryId()),(0,x.V1)(ye.query,28),(0,x.V1)("Document"===ye.query.kind,29),(0,x.V1)(!ye.returnPartialData,30),(0,x.V1)(!ye.pollInterval,31),this.fetchQuery(Ve,(0,V.Cl)((0,V.Cl)({},ye),{query:this.transform(ye.query)})).finally(function(){return tt.stopQuery(Ve)})},nt.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},nt.prototype.generateRequestId=function(){return this.requestIdCounter++},nt.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},nt.prototype.stopQueryInStore=function(ye){this.stopQueryInStoreNoBroadcast(ye),this.broadcastQueries()},nt.prototype.stopQueryInStoreNoBroadcast=function(ye){var Ve=this.queries.get(ye);Ve&&Ve.stop()},nt.prototype.clearStore=function(ye){return void 0===ye&&(ye={discardWatches:!0}),this.cancelPendingFetches((0,x.vA)(32)),this.queries.forEach(function(Ve){Ve.observableQuery?Ve.networkStatus=I.loading:Ve.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(ye)},nt.prototype.getObservableQueries=function(ye){var Ve=this;void 0===ye&&(ye="active");var tt=new Map,Mt=new Map,Yt=new Set;return Array.isArray(ye)&&ye.forEach(function(tn){"string"==typeof tn?Mt.set(tn,!1):(0,at.Kc)(tn)?Mt.set(Ve.transform(tn),!1):(0,wt.U)(tn)&&tn.query&&Yt.add(tn)}),this.queries.forEach(function(tn,on){var bn=tn.observableQuery,Sn=tn.document;if(bn){if("all"===ye)return void tt.set(on,bn);var Ln=bn.queryName;if("standby"===bn.options.fetchPolicy||"active"===ye&&!bn.hasObservers())return;("active"===ye||Ln&&Mt.has(Ln)||Sn&&Mt.has(Sn))&&(tt.set(on,bn),Ln&&Mt.set(Ln,!0),Sn&&Mt.set(Sn,!0))}}),Yt.size&&Yt.forEach(function(tn){var on=(0,St.v)("legacyOneTimeQuery"),bn=Ve.getQuery(on).init({document:tn.query,variables:tn.variables}),Sn=new $({queryManager:Ve,queryInfo:bn,options:(0,V.Cl)((0,V.Cl)({},tn),{fetchPolicy:"network-only"})});(0,x.V1)(Sn.queryId===on),bn.setObservableQuery(Sn),tt.set(on,Sn)}),!1!==globalThis.__DEV__&&Mt.size&&Mt.forEach(function(tn,on){tn||!1!==globalThis.__DEV__&&x.V1.warn("string"==typeof on?33:34,on)}),tt},nt.prototype.reFetchObservableQueries=function(ye){var Ve=this;void 0===ye&&(ye=!1);var tt=[];return this.getObservableQueries(ye?"all":"active").forEach(function(Mt,Yt){var tn=Mt.options.fetchPolicy;Mt.resetLastResults(),(ye||"standby"!==tn&&"cache-only"!==tn)&&tt.push(Mt.refetch()),Ve.getQuery(Yt).setDiff(null)}),this.broadcastQueries(),Promise.all(tt)},nt.prototype.setObservableQuery=function(ye){this.getQuery(ye.queryId).setObservableQuery(ye)},nt.prototype.startGraphQLSubscription=function(ye){var Ve=this,tt=ye.query,Mt=ye.fetchPolicy,Yt=ye.errorPolicy,tn=void 0===Yt?"none":Yt,on=ye.variables,bn=ye.context,Sn=void 0===bn?{}:bn,Ln=ye.extensions,xn=void 0===Ln?{}:Ln;tt=this.transform(tt),on=this.getVariables(tt,on);var Qn=function(pi){return Ve.getObservableFromLink(tt,Sn,pi,xn).map(function(ei){"no-cache"!==Mt&&(rt(ei,tn)&&Ve.cache.write({query:tt,result:ei.data,dataId:"ROOT_SUBSCRIPTION",variables:pi}),Ve.broadcastQueries());var li=Xe(ei),ai=function zt(nt){return!!nt.extensions&&Array.isArray(nt.extensions[Le])}(ei);if(li||ai){var mi={};if(li&&(mi.graphQLErrors=ei.errors),ai&&(mi.protocolErrors=ei.extensions[Le]),"none"===tn||ai)throw new Ct(mi)}return"ignore"===tn&&delete ei.errors,ei})};if(this.getDocumentInfo(tt).hasClientExports){var qn=this.localState.addExportedVariables(tt,on,Sn).then(Qn);return new he.c(function(pi){var ei=null;return qn.then(function(li){return ei=li.subscribe(pi)},pi.error),function(){return ei&&ei.unsubscribe()}})}return Qn(on)},nt.prototype.stopQuery=function(ye){this.stopQueryNoBroadcast(ye),this.broadcastQueries()},nt.prototype.stopQueryNoBroadcast=function(ye){this.stopQueryInStoreNoBroadcast(ye),this.removeQuery(ye)},nt.prototype.removeQuery=function(ye){this.fetchCancelFns.delete(ye),this.queries.has(ye)&&(this.getQuery(ye).stop(),this.queries.delete(ye))},nt.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(ye){return ye.notify()})},nt.prototype.getLocalState=function(){return this.localState},nt.prototype.getObservableFromLink=function(ye,Ve,tt,Mt,Yt){var on,tn=this;void 0===Yt&&(Yt=null!==(on=Ve?.queryDeduplication)&&void 0!==on?on:this.queryDeduplication);var bn,Sn=this.getDocumentInfo(ye),Ln=Sn.serverQuery,xn=Sn.clientQuery;if(Ln){var qn=this.inFlightLinkObservables,pi=this.link,ei={query:Ln,variables:tt,operationName:(0,dn.n4)(Ln)||void 0,context:this.prepareContext((0,V.Cl)((0,V.Cl)({},Ve),{forceFetch:!Yt})),extensions:Mt};if(Ve=ei.context,Yt){var li=(0,Ae.y)(Ln),ai=(0,ue.M)(tt),mi=qn.lookup(li,ai);if(!(bn=mi.observable)){var Ei=new re([J(pi,ei)]);bn=mi.observable=Ei,Ei.beforeNext(function(){qn.remove(li,ai)})}}else bn=new re([J(pi,ei)])}else bn=new re([he.c.of({data:{}})]),Ve=this.prepareContext(Ve);return xn&&(bn=q(bn,function(Xi){return tn.localState.runResolvers({document:xn,remoteResult:Xi,context:Ve,variables:tt})})),bn},nt.prototype.getResultsFromLink=function(ye,Ve,tt){var Mt=ye.lastRequestId=this.generateRequestId(),Yt=this.cache.transformForLink(tt.query);return q(this.getObservableFromLink(Yt,tt.context,tt.variables),function(tn){var on=ht(tn),bn=on.length>0;if(Mt>=ye.lastRequestId){if(bn&&"none"===tt.errorPolicy)throw ye.markError(new Ct({graphQLErrors:on}));ye.markResult(tn,Yt,tt,Ve),ye.markReady()}var Sn={data:tn.data,loading:!1,networkStatus:I.ready};return bn&&"ignore"!==tt.errorPolicy&&(Sn.errors=on,Sn.networkStatus=I.error),Sn},function(tn){var on=function xt(nt){return nt.hasOwnProperty("graphQLErrors")}(tn)?tn:new Ct({networkError:tn});throw Mt>=ye.lastRequestId&&ye.markError(on),on})},nt.prototype.fetchConcastWithInfo=function(ye,Ve,tt,Mt){var Yt=this;void 0===tt&&(tt=I.loading),void 0===Mt&&(Mt=Ve.query);var no,ao,tn=this.getVariables(Mt,Ve.variables),on=this.getQuery(ye),bn=this.defaultOptions.watchQuery,Sn=Ve.fetchPolicy,xn=Ve.errorPolicy,qn=Ve.returnPartialData,ei=Ve.notifyOnNetworkStatusChange,ai=Ve.context,Ei=Object.assign({},Ve,{query:Mt,variables:tn,fetchPolicy:void 0===Sn?bn&&bn.fetchPolicy||"cache-first":Sn,errorPolicy:void 0===xn?bn&&bn.errorPolicy||"none":xn,returnPartialData:void 0!==qn&&qn,notifyOnNetworkStatusChange:void 0!==ei&&ei,context:void 0===ai?{}:ai}),Xi=function(Fn){Ei.variables=Fn;var _o=Yt.fetchQueryByPolicy(on,Ei,tt);return"standby"!==Ei.fetchPolicy&&_o.sources.length>0&&on.observableQuery&&on.observableQuery.applyNextFetchPolicy("after-fetch",Ve),_o},Mi=function(){return Yt.fetchCancelFns.delete(ye)};if(this.fetchCancelFns.set(ye,function(Fn){Mi(),setTimeout(function(){return no.cancel(Fn)})}),this.getDocumentInfo(Ei.query).hasClientExports)no=new re(this.localState.addExportedVariables(Ei.query,Ei.variables,Ei.context).then(Xi).then(function(Fn){return Fn.sources})),ao=!0;else{var io=Xi(Ei.variables);ao=io.fromLink,no=new re(io.sources)}return no.promise.then(Mi,Mi),{concast:no,fromLink:ao}},nt.prototype.refetchQueries=function(ye){var Ve=this,tt=ye.updateCache,Mt=ye.include,Yt=ye.optimistic,tn=void 0!==Yt&&Yt,on=ye.removeOptimistic,bn=void 0===on?tn?(0,St.v)("refetchQueries"):void 0:on,Sn=ye.onQueryUpdated,Ln=new Map;Mt&&this.getObservableQueries(Mt).forEach(function(Qn,qn){Ln.set(qn,{oq:Qn,lastDiff:Ve.getQuery(qn).getDiff()})});var xn=new Map;return tt&&this.cache.batch({update:tt,optimistic:tn&&bn||!1,removeOptimistic:bn,onWatchUpdated:function(Qn,qn,pi){var ei=Qn.watcher instanceof qe&&Qn.watcher.observableQuery;if(ei){if(Sn){Ln.delete(ei.queryId);var li=Sn(ei,qn,pi);return!0===li&&(li=ei.refetch()),!1!==li&&xn.set(ei,li),li}null!==Sn&&Ln.set(ei.queryId,{oq:ei,lastDiff:pi,diff:qn})}}}),Ln.size&&Ln.forEach(function(Qn,qn){var ai,pi=Qn.oq,ei=Qn.lastDiff,li=Qn.diff;if(Sn){if(!li){var mi=pi.queryInfo;mi.reset(),li=mi.getDiff()}ai=Sn(pi,li,ei)}(!Sn||!0===ai)&&(ai=pi.refetch()),!1!==ai&&xn.set(pi,ai),qn.indexOf("legacyOneTimeQuery")>=0&&Ve.stopQueryNoBroadcast(qn)}),bn&&this.cache.removeOptimistic(bn),xn},nt.prototype.fetchQueryByPolicy=function(ye,Ve,tt){var Mt=this,Yt=Ve.query,tn=Ve.variables,on=Ve.fetchPolicy,bn=Ve.refetchWritePolicy,Sn=Ve.errorPolicy,Ln=Ve.returnPartialData,xn=Ve.context,Qn=Ve.notifyOnNetworkStatusChange,qn=ye.networkStatus;ye.init({document:Yt,variables:tn,networkStatus:tt});var pi=function(){return ye.getDiff()},ei=function(Xi,Mi){void 0===Mi&&(Mi=ye.networkStatus||I.loading);var no=Xi.result;!1!==globalThis.__DEV__&&!Ln&&!(0,Ye.L)(no,{})&&ke(Xi.missing);var ao=function(io){return he.c.of((0,V.Cl)({data:io,loading:F(Mi),networkStatus:Mi},Xi.complete?null:{partial:!0}))};return no&&Mt.getDocumentInfo(Yt).hasForcedResolvers?Mt.localState.runResolvers({document:Yt,remoteResult:{data:no},context:xn,variables:tn,onlyRunForcedResolvers:!0}).then(function(io){return ao(io.data||void 0)}):"none"===Sn&&Mi===I.refetch&&Array.isArray(Xi.missing)?ao(void 0):ao(no)},li="no-cache"===on?0:tt===I.refetch&&"merge"!==bn?1:2,ai=function(){return Mt.getResultsFromLink(ye,li,{query:Yt,variables:tn,context:xn,fetchPolicy:on,errorPolicy:Sn})},mi=Qn&&"number"==typeof qn&&qn!==tt&&F(tt);switch(on){default:case"cache-first":return(Ei=pi()).complete?{fromLink:!1,sources:[ei(Ei,ye.markReady())]}:Ln||mi?{fromLink:!0,sources:[ei(Ei),ai()]}:{fromLink:!0,sources:[ai()]};case"cache-and-network":var Ei;return(Ei=pi()).complete||Ln||mi?{fromLink:!0,sources:[ei(Ei),ai()]}:{fromLink:!0,sources:[ai()]};case"cache-only":return{fromLink:!1,sources:[ei(pi(),ye.markReady())]};case"network-only":return mi?{fromLink:!0,sources:[ei(pi()),ai()]}:{fromLink:!0,sources:[ai()]};case"no-cache":return mi?{fromLink:!0,sources:[ei(ye.getDiff()),ai()]}:{fromLink:!0,sources:[ai()]};case"standby":return{fromLink:!1,sources:[]}}},nt.prototype.getQuery=function(ye){return ye&&!this.queries.has(ye)&&this.queries.set(ye,new qe(this,ye)),this.queries.get(ye)},nt.prototype.prepareContext=function(ye){void 0===ye&&(ye={});var Ve=this.localState.prepareContext(ye);return(0,V.Cl)((0,V.Cl)((0,V.Cl)({},this.defaultContext),Ve),{clientAwareness:this.clientAwareness})},nt}(),Ti=c(1955);function Zi(nt){return nt.kind===Ti.b.FIELD||nt.kind===Ti.b.FRAGMENT_SPREAD||nt.kind===Ti.b.INLINE_FRAGMENT}var mn=c(6108),hn=c(4141),Yn=function(){function nt(ye){var Ve=ye.cache,tt=ye.client,Mt=ye.resolvers,Yt=ye.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=Ve,tt&&(this.client=tt),Mt&&this.addResolvers(Mt),Yt&&this.setFragmentMatcher(Yt)}return nt.prototype.addResolvers=function(ye){var Ve=this;this.resolvers=this.resolvers||{},Array.isArray(ye)?ye.forEach(function(tt){Ve.resolvers=(0,Tt.D9)(Ve.resolvers,tt)}):this.resolvers=(0,Tt.D9)(this.resolvers,ye)},nt.prototype.setResolvers=function(ye){this.resolvers={},this.addResolvers(ye)},nt.prototype.getResolvers=function(){return this.resolvers||{}},nt.prototype.runResolvers=function(ye){return(0,V.sH)(this,arguments,void 0,function(Ve){var tt=Ve.document,Mt=Ve.remoteResult,Yt=Ve.context,tn=Ve.variables,on=Ve.onlyRunForcedResolvers,bn=void 0!==on&&on;return(0,V.YH)(this,function(Sn){return tt?[2,this.resolveDocument(tt,Mt.data,Yt,tn,this.fragmentMatcher,bn).then(function(Ln){return(0,V.Cl)((0,V.Cl)({},Mt),{data:Ln.result})})]:[2,Mt]})})},nt.prototype.setFragmentMatcher=function(ye){this.fragmentMatcher=ye},nt.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},nt.prototype.clientQuery=function(ye){return(0,Oe.d8)(["client"],ye)&&this.resolvers?ye:null},nt.prototype.serverQuery=function(ye){return(0,Un.er)(ye)},nt.prototype.prepareContext=function(ye){var Ve=this.cache;return(0,V.Cl)((0,V.Cl)({},ye),{cache:Ve,getCacheKey:function(tt){return Ve.identify(tt)}})},nt.prototype.addExportedVariables=function(ye){return(0,V.sH)(this,arguments,void 0,function(Ve,tt,Mt){return void 0===tt&&(tt={}),void 0===Mt&&(Mt={}),(0,V.YH)(this,function(Yt){return Ve?[2,this.resolveDocument(Ve,this.buildRootValueFromCache(Ve,tt)||{},this.prepareContext(Mt),tt).then(function(tn){return(0,V.Cl)((0,V.Cl)({},tt),tn.exportedVariables)})]:[2,(0,V.Cl)({},tt)]})})},nt.prototype.shouldForceResolvers=function(ye){var Ve=!1;return(0,kn.YR)(ye,{Directive:{enter:function(tt){if("client"===tt.name.value&&tt.arguments&&(Ve=tt.arguments.some(function(Mt){return"always"===Mt.name.value&&"BooleanValue"===Mt.value.kind&&!0===Mt.value.value})))return kn.sP}}}),Ve},nt.prototype.buildRootValueFromCache=function(ye,Ve){return this.cache.diff({query:(0,Un.zc)(ye),variables:Ve,returnPartialData:!0,optimistic:!1}).result},nt.prototype.resolveDocument=function(ye,Ve){return(0,V.sH)(this,arguments,void 0,function(tt,Mt,Yt,tn,on,bn){var Sn,Ln,xn,Qn,qn,pi,ei,li,ai,mi;return void 0===Yt&&(Yt={}),void 0===tn&&(tn={}),void 0===on&&(on=function(){return!0}),void 0===bn&&(bn=!1),(0,V.YH)(this,function(Xi){return Sn=(0,dn.Vn)(tt),Ln=(0,dn.zK)(tt),xn=(0,mn.JG)(Ln),Qn=this.collectSelectionsToResolve(Sn,xn),pi=(qn=Sn.operation)?qn.charAt(0).toUpperCase()+qn.slice(1):"Query",li=(ei=this).cache,ai=ei.client,mi={fragmentMap:xn,context:(0,V.Cl)((0,V.Cl)({},Yt),{cache:li,client:ai}),variables:tn,fragmentMatcher:on,defaultOperationType:pi,exportedVariables:{},selectionsToResolve:Qn,onlyRunForcedResolvers:bn},[2,this.resolveSelectionSet(Sn.selectionSet,!1,Mt,mi).then(function(Mi){return{result:Mi,exportedVariables:mi.exportedVariables}})]})})},nt.prototype.resolveSelectionSet=function(ye,Ve,tt,Mt){return(0,V.sH)(this,void 0,void 0,function(){var Yt,tn,on,bn,Ln=this;return(0,V.YH)(this,function(xn){return Yt=Mt.fragmentMap,tn=Mt.context,on=Mt.variables,bn=[tt],[2,Promise.all(ye.selections.map(function(Qn){return(0,V.sH)(Ln,void 0,void 0,function(){var qn;return(0,V.YH)(this,function(ei){return(Ve||Mt.selectionsToResolve.has(Qn))&&(0,Oe.MS)(Qn,on)?(0,at.dt)(Qn)?[2,this.resolveField(Qn,Ve,tt,Mt).then(function(li){var ai;typeof li<"u"&&bn.push(((ai={})[(0,at.ue)(Qn)]=li,ai))})]:((0,at.kd)(Qn)?qn=Qn:(0,x.V1)(qn=Yt[Qn.name.value],18,Qn.name.value),qn&&qn.typeCondition&&Mt.fragmentMatcher(tt,qn.typeCondition.name.value,tn)?[2,this.resolveSelectionSet(qn.selectionSet,Ve,tt,Mt).then(function(li){bn.push(li)})]:[2]):[2]})})})).then(function(){return(0,Tt.IM)(bn)})]})})},nt.prototype.resolveField=function(ye,Ve,tt,Mt){return(0,V.sH)(this,void 0,void 0,function(){var Yt,tn,on,bn,Sn,Ln,xn,Qn,qn,pi=this;return(0,V.YH)(this,function(ei){return tt?(Yt=Mt.variables,tn=ye.name.value,on=(0,at.ue)(ye),bn=tn!==on,Sn=tt[on]||tt[tn],Ln=Promise.resolve(Sn),(!Mt.onlyRunForcedResolvers||this.shouldForceResolvers(ye))&&(xn=tt.__typename||Mt.defaultOperationType,(Qn=this.resolvers&&this.resolvers[xn])&&(qn=Qn[bn?tn:on])&&(Ln=Promise.resolve(hn.bl.withValue(this.cache,qn,[tt,(0,at.MB)(ye,Yt),Mt.context,{field:ye,fragmentMap:Mt.fragmentMap}])))),[2,Ln.then(function(li){var ai,mi;if(void 0===li&&(li=Sn),ye.directives&&ye.directives.forEach(function(Xi){"export"===Xi.name.value&&Xi.arguments&&Xi.arguments.forEach(function(Mi){"as"===Mi.name.value&&"StringValue"===Mi.value.kind&&(Mt.exportedVariables[Mi.value.value]=li)})}),!ye.selectionSet||null==li)return li;var Ei=null!==(mi=null===(ai=ye.directives)||void 0===ai?void 0:ai.some(function(Xi){return"client"===Xi.name.value}))&&void 0!==mi&&mi;return Array.isArray(li)?pi.resolveSubSelectedArray(ye,Ve||Ei,li,Mt):ye.selectionSet?pi.resolveSelectionSet(ye.selectionSet,Ve||Ei,li,Mt):void 0})]):[2,null]})})},nt.prototype.resolveSubSelectedArray=function(ye,Ve,tt,Mt){var Yt=this;return Promise.all(tt.map(function(tn){return null===tn?null:Array.isArray(tn)?Yt.resolveSubSelectedArray(ye,Ve,tn,Mt):ye.selectionSet?Yt.resolveSelectionSet(ye.selectionSet,Ve,tn,Mt):void 0}))},nt.prototype.collectSelectionsToResolve=function(ye,Ve){var tt=function(tn){return!Array.isArray(tn)},Mt=this.selectionsToResolveCache;return function Yt(tn){if(!Mt.has(tn)){var on=new Set;Mt.set(tn,on),(0,kn.YR)(tn,{Directive:function(bn,Sn,Ln,xn,Qn){"client"===bn.name.value&&Qn.forEach(function(qn){tt(qn)&&Zi(qn)&&on.add(qn)})},FragmentSpread:function(bn,Sn,Ln,xn,Qn){var qn=Ve[bn.name.value];(0,x.V1)(qn,19,bn.name.value);var pi=Yt(qn);pi.size>0&&(Qn.forEach(function(ei){tt(ei)&&Zi(ei)&&on.add(ei)}),on.add(bn),pi.forEach(function(ei){on.add(ei)}))}})}return Mt.get(tn)}(ye)},nt}();function En(nt,ye){return(0,ze.o)(nt,ye,ye.variables&&{variables:(0,ze.o)((0,V.Cl)((0,V.Cl)({},nt&&nt.variables),ye.variables))})}var Kn=c(8782),oi=!1,gi=function(){function nt(ye){var Ve=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!ye.cache)throw(0,x.vA)(15);var tt=ye.uri,tn=ye.cache,on=ye.documentTransform,bn=ye.ssrMode,Sn=void 0!==bn&&bn,Ln=ye.ssrForceFetchDelay,xn=void 0===Ln?0:Ln,Qn=ye.connectToDevTools,qn=ye.queryDeduplication,pi=void 0===qn||qn,ei=ye.defaultOptions,li=ye.defaultContext,ai=ye.assumeImmutableResults,mi=void 0===ai?tn.assumeImmutableResults:ai,Ei=ye.resolvers,Xi=ye.typeDefs,Mi=ye.fragmentMatcher,no=ye.name,ao=ye.version,io=ye.devtools,Fn=ye.link;Fn||(Fn=tt?new Ut({uri:tt,credentials:ye.credentials,headers:ye.headers}):ne.C.empty()),this.link=Fn,this.cache=tn,this.disableNetworkFetches=Sn||xn>0,this.queryDeduplication=pi,this.defaultOptions=ei||Object.create(null),this.typeDefs=Xi,this.devtoolsConfig=(0,V.Cl)((0,V.Cl)({},io),{enabled:io?.enabled||Qn}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),xn&&setTimeout(function(){return Ve.disableNetworkFetches=!1},xn),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=be.r,this.localState=new Yn({cache:tn,client:this,resolvers:Ei,fragmentMatcher:Mi}),this.queryManager=new Gn({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:li,documentTransform:on,queryDeduplication:pi,ssrMode:Sn,clientAwareness:{name:no,version:ao},localState:this.localState,assumeImmutableResults:mi,onBroadcast:this.devtoolsConfig.enabled?function(){Ve.devToolsHookCb&&Ve.devToolsHookCb({action:{},state:{queries:Ve.queryManager.getQueryStore(),mutations:Ve.queryManager.mutationStore||{}},dataWithOptimisticResults:Ve.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return nt.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var ye=window,Ve=Symbol.for("apollo.devtools");(ye[Ve]=ye[Ve]||[]).push(this),ye.__APOLLO_CLIENT__=this,!oi&&!1!==globalThis.__DEV__&&(oi=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var tt=window.navigator,Mt=tt&&tt.userAgent,Yt=void 0;"string"==typeof Mt&&(Mt.indexOf("Chrome/")>-1?Yt="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":Mt.indexOf("Firefox/")>-1&&(Yt="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),Yt&&!1!==globalThis.__DEV__&&x.V1.log("Download the Apollo DevTools for a better development experience: %s",Yt)}},1e4))}},Object.defineProperty(nt.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),nt.prototype.stop=function(){this.queryManager.stop()},nt.prototype.watchQuery=function(ye){return this.defaultOptions.watchQuery&&(ye=En(this.defaultOptions.watchQuery,ye)),this.disableNetworkFetches&&("network-only"===ye.fetchPolicy||"cache-and-network"===ye.fetchPolicy)&&(ye=(0,V.Cl)((0,V.Cl)({},ye),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(ye)},nt.prototype.query=function(ye){return this.defaultOptions.query&&(ye=En(this.defaultOptions.query,ye)),(0,x.V1)("cache-and-network"!==ye.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===ye.fetchPolicy&&(ye=(0,V.Cl)((0,V.Cl)({},ye),{fetchPolicy:"cache-first"})),this.queryManager.query(ye)},nt.prototype.mutate=function(ye){return this.defaultOptions.mutate&&(ye=En(this.defaultOptions.mutate,ye)),this.queryManager.mutate(ye)},nt.prototype.subscribe=function(ye){return this.queryManager.startGraphQLSubscription(ye)},nt.prototype.readQuery=function(ye,Ve){return void 0===Ve&&(Ve=!1),this.cache.readQuery(ye,Ve)},nt.prototype.watchFragment=function(ye){return this.cache.watchFragment(ye)},nt.prototype.readFragment=function(ye,Ve){return void 0===Ve&&(Ve=!1),this.cache.readFragment(ye,Ve)},nt.prototype.writeQuery=function(ye){var Ve=this.cache.writeQuery(ye);return!1!==ye.broadcast&&this.queryManager.broadcastQueries(),Ve},nt.prototype.writeFragment=function(ye){var Ve=this.cache.writeFragment(ye);return!1!==ye.broadcast&&this.queryManager.broadcastQueries(),Ve},nt.prototype.__actionHookForDevTools=function(ye){this.devToolsHookCb=ye},nt.prototype.__requestRaw=function(ye){return J(this.link,ye)},nt.prototype.resetStore=function(){var ye=this;return Promise.resolve().then(function(){return ye.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(ye.resetStoreCallbacks.map(function(Ve){return Ve()}))}).then(function(){return ye.reFetchObservableQueries()})},nt.prototype.clearStore=function(){var ye=this;return Promise.resolve().then(function(){return ye.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(ye.clearStoreCallbacks.map(function(Ve){return Ve()}))})},nt.prototype.onResetStore=function(ye){var Ve=this;return this.resetStoreCallbacks.push(ye),function(){Ve.resetStoreCallbacks=Ve.resetStoreCallbacks.filter(function(tt){return tt!==ye})}},nt.prototype.onClearStore=function(ye){var Ve=this;return this.clearStoreCallbacks.push(ye),function(){Ve.clearStoreCallbacks=Ve.clearStoreCallbacks.filter(function(tt){return tt!==ye})}},nt.prototype.reFetchObservableQueries=function(ye){return this.queryManager.reFetchObservableQueries(ye)},nt.prototype.refetchQueries=function(ye){var Ve=this.queryManager.refetchQueries(ye),tt=[],Mt=[];Ve.forEach(function(tn,on){tt.push(on),Mt.push(tn)});var Yt=Promise.all(Mt);return Yt.queries=tt,Yt.results=Mt,Yt.catch(function(tn){!1!==globalThis.__DEV__&&x.V1.debug(17,tn)}),Yt},nt.prototype.getObservableQueries=function(ye){return void 0===ye&&(ye="active"),this.queryManager.getObservableQueries(ye)},nt.prototype.extract=function(ye){return this.cache.extract(ye)},nt.prototype.restore=function(ye){return this.cache.restore(ye)},nt.prototype.addResolvers=function(ye){this.localState.addResolvers(ye)},nt.prototype.setResolvers=function(ye){this.localState.setResolvers(ye)},nt.prototype.getResolvers=function(){return this.localState.getResolvers()},nt.prototype.setLocalStateFragmentMatcher=function(ye){this.localState.setFragmentMatcher(ye)},nt.prototype.setLink=function(ye){this.link=this.queryManager.link=ye},Object.defineProperty(nt.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),nt}();!1!==globalThis.__DEV__&&(gi.prototype.getMemoryInternals=Kn.ep);var ro=c(9869),vi=c(6354),pn=c(9172),$i=c(941);function zi(nt){return new r.c(ye=>(nt().then(Ve=>{ye.closed||(ye.next(Ve),ye.complete())},Ve=>{ye.closed||ye.error(Ve)}),()=>ye.unsubscribe()))}class so{zone;constructor(ye){this.zone=ye}now=Date.now?Date.now:()=>+new Date;schedule(ye,Ve=0,tt){return this.zone.run(()=>L.schedule(ye,Ve,tt))}}function Yi(nt){return nt[A.s]=()=>nt,nt}function Xo(nt,ye){return nt.pipe((0,$i.Q)(new so(ye)))}class qo{obsQuery;valueChanges;queryId;constructor(ye,Ve,tt){this.obsQuery=ye;const Mt=Xo((0,w.H)(Yi(this.obsQuery)),Ve);this.valueChanges=tt.useInitialLoading?Mt.pipe(function Ki(nt){return function(Ve){return new r.c(function(Mt){const Yt=nt.getCurrentResult(),{loading:tn,errors:on,error:bn,partial:Sn,data:Ln}=Yt,{partialRefetch:xn,fetchPolicy:Qn}=nt.options,qn=on||bn;return xn&&Sn&&(!Ln||0===Object.keys(Ln).length)&&"cache-only"!==Qn&&!tn&&!qn&&Mt.next({...Yt,loading:!0,networkStatus:I.loading}),Ve.subscribe(Mt)})}}(this.obsQuery)):Mt,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(ye){return this.obsQuery.refetch(ye)}fetchMore(ye){return this.obsQuery.fetchMore(ye)}subscribeToMore(ye){return this.obsQuery.subscribeToMore(ye)}updateQuery(ye){return this.obsQuery.updateQuery(ye)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(ye){return this.obsQuery.startPolling(ye)}setOptions(ye){return this.obsQuery.setOptions(ye)}setVariables(ye){return this.obsQuery.setVariables(ye)}}const pr=new t.nKC("APOLLO_FLAGS"),fo=new t.nKC("APOLLO_OPTIONS"),po=new t.nKC("APOLLO_NAMED_OPTIONS");class fr{ngZone;flags;_client;useInitialLoading;useMutationLoading;constructor(ye,Ve,tt){this.ngZone=ye,this.flags=Ve,this._client=tt,this.useInitialLoading=Ve?.useInitialLoading??!1,this.useMutationLoading=Ve?.useMutationLoading??!1}watchQuery(ye){return new qo(this.ensureClient().watchQuery({...ye}),this.ngZone,{useInitialLoading:this.useInitialLoading,...ye})}query(ye){return zi(()=>this.ensureClient().query({...ye}))}mutate(ye){return function Ni(nt,ye){return ye?nt.pipe((0,pn.Z)({loading:!0}),(0,vi.T)(Ve=>({...Ve,loading:!!Ve.loading}))):nt.pipe((0,vi.T)(Ve=>({...Ve,loading:!1})))}(zi(()=>this.ensureClient().mutate({...ye})),ye.useMutationLoading??this.useMutationLoading)}subscribe(ye,Ve){const tt=(0,w.H)(Yi(this.ensureClient().subscribe({...ye})));return Ve&&!0!==Ve.useZone?tt:Xo(tt,this.ngZone)}get client(){return this.ensureClient()}set client(ye){if(this._client)throw new Error("Client has been already defined");this._client=ye}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}}let jo=(()=>{class nt extends fr{map=new Map;constructor(Ve,tt,Mt,Yt){if(super(Ve,Yt),tt&&this.createDefault(tt),Mt&&"object"==typeof Mt)for(let tn in Mt)Mt.hasOwnProperty(tn)&&this.create(Mt[tn],tn)}create(Ve,tt){Lr(tt)?this.createNamed(tt,Ve):this.createDefault(Ve)}default(){return this}use(Ve){return Lr(Ve)?this.map.get(Ve):this.default()}createDefault(Ve){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new gi(Ve))}createNamed(Ve,tt){if(this.map.has(Ve))throw new Error(`Client ${Ve} has been already created`);this.map.set(Ve,new fr(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new gi(tt))))}removeClient(Ve){Lr(Ve)?this.map.delete(Ve):this._client=void 0}static \u0275fac=function(tt){return new(tt||nt)(t.KVO(t.SKi),t.KVO(fo,8),t.KVO(po,8),t.KVO(pr,8))};static \u0275prov=t.jDH({token:nt,factory:nt.\u0275fac})}return nt})();function Lr(nt){return!!nt&&"default"!==nt}const qi=[jo];let wn=(()=>{class nt{static \u0275fac=function(tt){return new(tt||nt)};static \u0275mod=t.$C({type:nt});static \u0275inj=t.G2t({providers:qi})}return nt})(),bi=(()=>{class nt{apollo;client="default";constructor(Ve){this.apollo=Ve}watch(Ve,tt){return this.apollo.use(this.client).watchQuery({...tt,variables:Ve,query:this.document})}fetch(Ve,tt){return this.apollo.use(this.client).query({...tt,variables:Ve,query:this.document})}static \u0275fac=function(tt){return new(tt||nt)(t.KVO(jo))};static \u0275prov=t.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),Mr=(()=>{class nt{apollo;client="default";constructor(Ve){this.apollo=Ve}mutate(Ve,tt){return this.apollo.use(this.client).mutate({...tt,variables:Ve,mutation:this.document})}static \u0275fac=function(tt){return new(tt||nt)(t.KVO(jo))};static \u0275prov=t.jDH({token:nt,factory:nt.\u0275fac})}return nt})();const Qo=function Ts(nt,...ye){return(0,ro.J1)(nt,...ye)}},6005:(Rt,De,c)=>{function t(r,g){if(!r)throw new Error(g)}c.d(De,{U:()=>t})},7250:(Rt,De,c)=>{c.d(De,{N:()=>g});const t=10,r=2;function g(w){return e(w,[])}function e(w,I){switch(typeof w){case"string":return JSON.stringify(w);case"function":return w.name?`[function ${w.name}]`:"[function]";case"object":return function M(w,I){if(null===w)return"null";if(I.includes(w))return"[Circular]";const F=[...I,w];if(function G(w){return"function"==typeof w.toJSON}(w)){const X=w.toJSON();if(X!==w)return"string"==typeof X?X:e(X,F)}else if(Array.isArray(w))return function B(w,I){if(0===w.length)return"[]";if(I.length>r)return"[Array]";const F=Math.min(t,w.length),X=w.length-F,V=[];for(let x=0;x1&&V.push(`... ${X} more items`),"["+V.join(", ")+"]"}(w,F);return function L(w,I){const F=Object.entries(w);return 0===F.length?"{}":I.length>r?"["+function A(w){const I=Object.prototype.toString.call(w).replace(/^\[object /,"").replace(/]$/,"");if("Object"===I&&"function"==typeof w.constructor){const F=w.constructor.name;if("string"==typeof F&&""!==F)return F}return I}(w)+"]":"{ "+F.map(([V,x])=>V+": "+e(x,I)).join(", ")+" }"}(w,F)}(w,I);default:return String(w)}}},1222:(Rt,De,c)=>{c.d(De,{Ll:()=>M,aD:()=>g,aZ:()=>t,cE:()=>G,ou:()=>r});class t{constructor(B,A,w){this.start=B.start,this.end=A.end,this.startToken=B,this.endToken=A,this.source=w}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class r{constructor(B,A,w,I,F,X){this.kind=B,this.start=A,this.end=w,this.line=I,this.column=F,this.value=X,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const g={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},e=new Set(Object.keys(g));function M(L){const B=L?.kind;return"string"==typeof B&&e.has(B)}var G=function(L){return L.QUERY="query",L.MUTATION="mutation",L.SUBSCRIPTION="subscription",L}(G||{})},5174:(Rt,De,c)=>{c.d(De,{OC:()=>r,yo:()=>M});var t=c(3725);function r(G){var L;let B=Number.MAX_SAFE_INTEGER,A=null,w=-1;for(let F=0;F0===X?F:F.slice(B)).slice(null!==(L=A)&&void 0!==L?L:0,w+1)}function g(G){let L=0;for(;L1&&A.slice(1).every(Oe=>0===Oe.length||(0,t.i0)(Oe.charCodeAt(0))),F=B.endsWith('\\"""'),X=G.endsWith('"')&&!F,V=G.endsWith("\\"),x=X||V,ne=!(null!=L&&L.minimize)&&(!w||G.length>70||x||I||F);let J="";const be=w&&(0,t.i0)(G.charCodeAt(0));return(ne&&!be||I)&&(J+="\n"),J+=B,(ne||x)&&(J+="\n"),'"""'+J+'"""'}},3725:(Rt,De,c)=>{function t(G){return 9===G||32===G}function r(G){return G>=48&&G<=57}function g(G){return G>=97&&G<=122||G>=65&&G<=90}function e(G){return g(G)||95===G}function M(G){return g(G)||r(G)||95===G}c.d(De,{i0:()=>t,un:()=>e,xr:()=>M,yp:()=>r})},1955:(Rt,De,c)=>{c.d(De,{b:()=>t});var t=function(r){return r.NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r}(t||{})},3246:(Rt,De,c)=>{c.d(De,{y:()=>L});var t=c(5174);const g=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function e(x){return M[x.charCodeAt(0)]}const M=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var G=c(8540);function L(x){return(0,G.YR)(x,A)}const A={Name:{leave:x=>x.value},Variable:{leave:x=>"$"+x.name},Document:{leave:x=>w(x.definitions,"\n\n")},OperationDefinition:{leave(x){const ne=F("(",w(x.variableDefinitions,", "),")"),J=w([x.operation,w([x.name,ne]),w(x.directives," ")]," ");return("query"===J?"":J+" ")+x.selectionSet}},VariableDefinition:{leave:({variable:x,type:ne,defaultValue:J,directives:be})=>x+": "+ne+F(" = ",J)+F(" ",w(be," "))},SelectionSet:{leave:({selections:x})=>I(x)},Field:{leave({alias:x,name:ne,arguments:J,directives:be,selectionSet:Oe}){const he=F("",x,": ")+ne;let Ie=he+F("(",w(J,", "),")");return Ie.length>80&&(Ie=he+F("(\n",X(w(J,"\n")),"\n)")),w([Ie,w(be," "),Oe]," ")}},Argument:{leave:({name:x,value:ne})=>x+": "+ne},FragmentSpread:{leave:({name:x,directives:ne})=>"..."+x+F(" ",w(ne," "))},InlineFragment:{leave:({typeCondition:x,directives:ne,selectionSet:J})=>w(["...",F("on ",x),w(ne," "),J]," ")},FragmentDefinition:{leave:({name:x,typeCondition:ne,variableDefinitions:J,directives:be,selectionSet:Oe})=>`fragment ${x}${F("(",w(J,", "),")")} on ${ne} ${F("",w(be," ")," ")}`+Oe},IntValue:{leave:({value:x})=>x},FloatValue:{leave:({value:x})=>x},StringValue:{leave:({value:x,block:ne})=>ne?(0,t.yo)(x):function r(x){return`"${x.replace(g,e)}"`}(x)},BooleanValue:{leave:({value:x})=>x?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:x})=>x},ListValue:{leave:({values:x})=>"["+w(x,", ")+"]"},ObjectValue:{leave:({fields:x})=>"{"+w(x,", ")+"}"},ObjectField:{leave:({name:x,value:ne})=>x+": "+ne},Directive:{leave:({name:x,arguments:ne})=>"@"+x+F("(",w(ne,", "),")")},NamedType:{leave:({name:x})=>x},ListType:{leave:({type:x})=>"["+x+"]"},NonNullType:{leave:({type:x})=>x+"!"},SchemaDefinition:{leave:({description:x,directives:ne,operationTypes:J})=>F("",x,"\n")+w(["schema",w(ne," "),I(J)]," ")},OperationTypeDefinition:{leave:({operation:x,type:ne})=>x+": "+ne},ScalarTypeDefinition:{leave:({description:x,name:ne,directives:J})=>F("",x,"\n")+w(["scalar",ne,w(J," ")]," ")},ObjectTypeDefinition:{leave:({description:x,name:ne,interfaces:J,directives:be,fields:Oe})=>F("",x,"\n")+w(["type",ne,F("implements ",w(J," & ")),w(be," "),I(Oe)]," ")},FieldDefinition:{leave:({description:x,name:ne,arguments:J,type:be,directives:Oe})=>F("",x,"\n")+ne+(V(J)?F("(\n",X(w(J,"\n")),"\n)"):F("(",w(J,", "),")"))+": "+be+F(" ",w(Oe," "))},InputValueDefinition:{leave:({description:x,name:ne,type:J,defaultValue:be,directives:Oe})=>F("",x,"\n")+w([ne+": "+J,F("= ",be),w(Oe," ")]," ")},InterfaceTypeDefinition:{leave:({description:x,name:ne,interfaces:J,directives:be,fields:Oe})=>F("",x,"\n")+w(["interface",ne,F("implements ",w(J," & ")),w(be," "),I(Oe)]," ")},UnionTypeDefinition:{leave:({description:x,name:ne,directives:J,types:be})=>F("",x,"\n")+w(["union",ne,w(J," "),F("= ",w(be," | "))]," ")},EnumTypeDefinition:{leave:({description:x,name:ne,directives:J,values:be})=>F("",x,"\n")+w(["enum",ne,w(J," "),I(be)]," ")},EnumValueDefinition:{leave:({description:x,name:ne,directives:J})=>F("",x,"\n")+w([ne,w(J," ")]," ")},InputObjectTypeDefinition:{leave:({description:x,name:ne,directives:J,fields:be})=>F("",x,"\n")+w(["input",ne,w(J," "),I(be)]," ")},DirectiveDefinition:{leave:({description:x,name:ne,arguments:J,repeatable:be,locations:Oe})=>F("",x,"\n")+"directive @"+ne+(V(J)?F("(\n",X(w(J,"\n")),"\n)"):F("(",w(J,", "),")"))+(be?" repeatable":"")+" on "+w(Oe," | ")},SchemaExtension:{leave:({directives:x,operationTypes:ne})=>w(["extend schema",w(x," "),I(ne)]," ")},ScalarTypeExtension:{leave:({name:x,directives:ne})=>w(["extend scalar",x,w(ne," ")]," ")},ObjectTypeExtension:{leave:({name:x,interfaces:ne,directives:J,fields:be})=>w(["extend type",x,F("implements ",w(ne," & ")),w(J," "),I(be)]," ")},InterfaceTypeExtension:{leave:({name:x,interfaces:ne,directives:J,fields:be})=>w(["extend interface",x,F("implements ",w(ne," & ")),w(J," "),I(be)]," ")},UnionTypeExtension:{leave:({name:x,directives:ne,types:J})=>w(["extend union",x,w(ne," "),F("= ",w(J," | "))]," ")},EnumTypeExtension:{leave:({name:x,directives:ne,values:J})=>w(["extend enum",x,w(ne," "),I(J)]," ")},InputObjectTypeExtension:{leave:({name:x,directives:ne,fields:J})=>w(["extend input",x,w(ne," "),I(J)]," ")}};function w(x,ne=""){var J;return null!==(J=x?.filter(be=>be).join(ne))&&void 0!==J?J:""}function I(x){return F("{\n",X(w(x,"\n")),"\n}")}function F(x,ne,J=""){return null!=ne&&""!==ne?x+ne+J:""}function X(x){return F(" ",x.replace(/\n/g,"\n "))}function V(x){var ne;return null!==(ne=x?.some(J=>J.includes("\n")))&&void 0!==ne&&ne}},8540:(Rt,De,c)=>{c.d(De,{YR:()=>G,sP:()=>M});var t=c(6005),r=c(7250),g=c(1222),e=c(1955);const M=Object.freeze({});function G(w,I,F=g.aD){const X=new Map;for(const pe of Object.values(e.b))X.set(pe,B(I,pe));let V,he,Ie,x=Array.isArray(w),ne=[w],J=-1,be=[],Oe=w;const me=[],de=[];do{J++;const pe=J===ne.length,E=pe&&0!==be.length;if(pe){if(he=0===de.length?void 0:me[me.length-1],Oe=Ie,Ie=de.pop(),E)if(x){Oe=Oe.slice();let R=0;for(const[Y,se]of be){const Be=Y-R;null===se?(Oe.splice(Be,1),R++):Oe[Be]=se}}else{Oe=Object.defineProperties({},Object.getOwnPropertyDescriptors(Oe));for(const[R,Y]of be)Oe[R]=Y}J=V.index,ne=V.keys,be=V.edits,x=V.inArray,V=V.prev}else if(Ie){if(he=x?J:ne[J],Oe=Ie[he],null==Oe)continue;me.push(he)}let S;if(!Array.isArray(Oe)){var H,z;(0,g.Ll)(Oe)||(0,t.U)(!1,`Invalid AST Node: ${(0,r.N)(Oe)}.`);const R=pe?null===(H=X.get(Oe.kind))||void 0===H?void 0:H.leave:null===(z=X.get(Oe.kind))||void 0===z?void 0:z.enter;if(S=R?.call(I,Oe,he,Ie,me,de),S===M)break;if(!1===S){if(!pe){me.pop();continue}}else if(void 0!==S&&(be.push([he,S]),!pe)){if(!(0,g.Ll)(S)){me.pop();continue}Oe=S}}var Z;void 0===S&&E&&be.push([he,Oe]),pe?me.pop():(V={inArray:x,index:J,keys:ne,edits:be,prev:V},x=Array.isArray(Oe),ne=x?Oe:null!==(Z=F[Oe.kind])&&void 0!==Z?Z:[],J=-1,be=[],Ie&&de.push(Ie),Ie=Oe)}while(void 0!==V);return 0!==be.length?be[be.length-1][1]:w}function B(w,I){const F=w[I];return"object"==typeof F?F:"function"==typeof F?{enter:F,leave:void 0}:{enter:w.enter,leave:w.leave}}},3617:(Rt,De,c)=>{c.d(De,{$:()=>E,Y:()=>pe});var t=c(4707),r=c(3953),g=c(1413),e=c(6977),M=c(713),G=c(6042),L=c(7806),B=c(5103),A=c(8203);function w(S,R){1&S&&r.eu8(0)}function I(S,R){if(1&S&&r.DNE(0,w,1,0,"ng-container",7),2&S){const Y=r.XpG(3);r.Y8G("nzStringTemplateOutlet",Y.nzIcon)}}function F(S,R){if(1&S&&r.nrm(0,"span",6),2&S){const Y=r.XpG(3);r.Y8G("nzType",Y.nzIconType||Y.inferredIconType)("nzTheme",Y.iconTheme)}}function X(S,R){if(1&S&&(r.j41(0,"div",2),r.DNE(1,I,1,1,"ng-container")(2,F,1,2,"span",6),r.k0s()),2&S){const Y=r.XpG(2);r.R7$(),r.vxM(Y.nzIcon?1:2)}}function V(S,R){if(1&S&&(r.qex(0),r.EFF(1),r.bVm()),2&S){const Y=r.XpG(4);r.R7$(),r.JRh(Y.nzMessage)}}function x(S,R){if(1&S&&(r.j41(0,"span",8),r.DNE(1,V,2,1,"ng-container",7),r.k0s()),2&S){const Y=r.XpG(3);r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzMessage)}}function ne(S,R){if(1&S&&(r.qex(0),r.EFF(1),r.bVm()),2&S){const Y=r.XpG(4);r.R7$(),r.JRh(Y.nzDescription)}}function J(S,R){if(1&S&&(r.j41(0,"span",9),r.DNE(1,ne,2,1,"ng-container",7),r.k0s()),2&S){const Y=r.XpG(3);r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzDescription)}}function be(S,R){if(1&S&&(r.j41(0,"div",3),r.DNE(1,x,2,1,"span",8)(2,J,2,1,"span",9),r.k0s()),2&S){const Y=r.XpG(2);r.R7$(),r.vxM(Y.nzMessage?1:-1),r.R7$(),r.vxM(Y.nzDescription?2:-1)}}function Oe(S,R){if(1&S&&(r.qex(0),r.EFF(1),r.bVm()),2&S){const Y=r.XpG(3);r.R7$(),r.JRh(Y.nzAction)}}function he(S,R){if(1&S&&(r.j41(0,"div",4),r.DNE(1,Oe,2,1,"ng-container",7),r.k0s()),2&S){const Y=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzAction)}}function Ie(S,R){if(1&S&&(r.qex(0),r.j41(1,"span",12),r.EFF(2),r.k0s(),r.bVm()),2&S){const Y=r.XpG(4);r.R7$(2),r.JRh(Y.nzCloseText)}}function me(S,R){if(1&S&&r.DNE(0,Ie,3,1,"ng-container",7),2&S){const Y=r.XpG(3);r.Y8G("nzStringTemplateOutlet",Y.nzCloseText)}}function de(S,R){1&S&&r.nrm(0,"span",11)}function H(S,R){if(1&S){const Y=r.RV6();r.j41(0,"button",10),r.bIt("click",function(){r.eBV(Y);const Be=r.XpG(2);return r.Njj(Be.closeAlert())}),r.DNE(1,me,1,1,"ng-container")(2,de,1,0,"span",11),r.k0s()}if(2&S){const Y=r.XpG(2);r.R7$(),r.vxM(Y.nzCloseText?1:2)}}function z(S,R){if(1&S){const Y=r.RV6();r.j41(0,"div",1),r.bIt("@slideAlertMotion.done",function(){r.eBV(Y);const Be=r.XpG();return r.Njj(Be.onFadeAnimationDone())}),r.DNE(1,X,3,1,"div",2)(2,be,3,2,"div",3)(3,he,2,1,"div",4)(4,H,3,1,"button",5),r.k0s()}if(2&S){const Y=r.XpG();r.AVh("ant-alert-rtl","rtl"===Y.dir)("ant-alert-success","success"===Y.nzType)("ant-alert-info","info"===Y.nzType)("ant-alert-warning","warning"===Y.nzType)("ant-alert-error","error"===Y.nzType)("ant-alert-no-icon",!Y.nzShowIcon)("ant-alert-banner",Y.nzBanner)("ant-alert-closable",Y.nzCloseable)("ant-alert-with-description",!!Y.nzDescription),r.Y8G("@.disabled",Y.nzNoAnimation)("@slideAlertMotion",void 0),r.R7$(),r.vxM(Y.nzShowIcon?1:-1),r.R7$(),r.vxM(Y.nzMessage||Y.nzDescription?2:-1),r.R7$(),r.vxM(Y.nzAction?3:-1),r.R7$(),r.vxM(Y.nzCloseable||Y.nzCloseText?4:-1)}}const Z="alert";let pe=(()=>{class S{constructor(Y,se,Be){this.nzConfigService=Y,this.cdr=se,this.directionality=Be,this._nzModuleName=Z,this.nzAction=null,this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzIcon=null,this.nzOnClose=new r.bkB,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new g.B,this.nzConfigService.getConfigChangeEventForComponent(Z).pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(Y=>{this.dir=Y,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(Y){const{nzShowIcon:se,nzDescription:Be,nzType:Pt,nzBanner:vt}=Y;if(se&&(this.isShowIconSet=!0),Pt)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}Be&&(this.iconTheme=this.nzDescription?"outline":"fill"),vt&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(se){return new(se||S)(r.rXU(G.yx),r.rXU(r.gRc),r.rXU(A.dS,8))};static#t=this.\u0275cmp=r.VBU({type:S,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",r.L39],nzShowIcon:[2,"nzShowIcon","nzShowIcon",r.L39],nzBanner:[2,"nzBanner","nzBanner",r.L39],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",r.L39],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],decls:1,vars:1,consts:[[1,"ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],["nz-icon","",3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(se,Be){1&se&&r.DNE(0,z,5,24,"div",0),2&se&&r.vxM(Be.closed?-1:0)},dependencies:[B.Y3,B.Dn,L.C,L.m],encapsulation:2,data:{animation:[M.Sn]},changeDetection:0})}return(0,t.Cg)([(0,G.H4)()],S.prototype,"nzCloseable",void 0),(0,t.Cg)([(0,G.H4)()],S.prototype,"nzShowIcon",void 0),S})(),E=(()=>{class S{static#e=this.\u0275fac=function(se){return new(se||S)};static#t=this.\u0275mod=r.$C({type:S});static#n=this.\u0275inj=r.G2t({imports:[pe]})}return S})()},8928:(Rt,De,c)=>{c.d(De,{jl:()=>Pt});var t=c(3953),r=c(7806),g=c(1413),e=c(6977),M=c(8141),G=c(1986),L=c(5964),B=c(7336),A=c(7987),w=c(6939),I=c(177),F=c(9417),X=c(1011);const V=[[["nz-auto-option"]]],x=["nz-auto-option"];function ne(vt,wt){if(1&vt&&(t.qex(0),t.EFF(1),t.bVm()),2&vt){const Le=t.XpG();t.R7$(),t.JRh(Le.nzLabel)}}let Z=(()=>{class vt{constructor(){}static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275cmp=t.VBU({type:vt,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],standalone:!0,features:[t.aNF],ngContentSelectors:x,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(zt,xt){1&zt&&(t.NAR(V),t.j41(0,"div",0),t.DNE(1,ne,2,1,"ng-container",1),t.k0s(),t.SdG(2)),2&zt&&(t.R7$(),t.Y8G("nzStringTemplateOutlet",xt.nzLabel))},dependencies:[r.C,r.m],encapsulation:2,changeDetection:0})}return vt})();const S={provide:F.kq,useExisting:(0,t.Rfq)(()=>Y),multi:!0};let Y=(()=>{class vt{get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}constructor(Le,zt,xt,st,Ct,It){this.ngZone=Le,this.elementRef=zt,this.overlay=xt,this.viewContainerRef=st,this.nzInputGroupWhitSuffixOrPrefixDirective=Ct,this.document=It,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new g.B,this.overlayRef=null,this.portal=null,this.previousValue=null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,e.Q)(this.destroy$)).subscribe(Le=>{"void"===Le.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(Le){this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setTriggerValue(Le)))}registerOnChange(Le){this.onChange=Le}registerOnTouched(Le){this.onTouched=Le}setDisabledState(Le){this.elementRef.nativeElement.disabled=Le,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(Le){const zt=Le.keyCode,xt=zt===B.i7||zt===B.n6;zt===B._f&&Le.preventDefault(),!this.panelOpen||zt!==B._f&&zt!==B.wn?this.panelOpen&&zt===B.Fm?this.nzAutocomplete.showPanel&&(Le.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&xt&&this.nzAutocomplete.showPanel&&(Le.stopPropagation(),Le.preventDefault(),zt===B.i7?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(Le){const zt=Le.target,xt=this.document;let st=zt.value;"number"===zt.type&&(st=""===st?null:parseFloat(st)),this.previousValue!==st&&(this.previousValue=st,this.onChange(st),this.canOpen()&&xt.activeElement===Le.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,M.M)(()=>this.positionStrategy.reapplyLastPosition()),(0,G.c)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(Le=>{this.setValueAndClose(Le)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,L.p)(Le=>!this.elementRef.nativeElement.contains(Le.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function R(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}();!this.portal&&this.nzAutocomplete.template&&(this.portal=new w.VA(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new A.rR({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const Le=[new A.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new A.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(Le).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const Le=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==Le?(this.nzAutocomplete.setActiveItem(Le),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(Le){const zt=Le.nzValue;this.setTriggerValue(Le.getLabel()),this.onChange(zt),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(Le){const zt=this.nzAutocomplete.getOption(Le),xt=zt?zt.getLabel():Le;this.elementRef.nativeElement.value=xt??"",this.nzAutocomplete.nzBackfill||(this.previousValue=xt)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const Le=this.elementRef.nativeElement;return!Le.readOnly&&!Le.disabled}static#e=this.\u0275fac=function(zt){return new(zt||vt)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(A.hJ),t.rXU(t.c1b),t.rXU(X.vN,8),t.rXU(I.qQ,8))};static#t=this.\u0275dir=t.FsC({type:vt,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(zt,xt){1&zt&&t.bIt("focusin",function(){return xt.handleFocus()})("blur",function(){return xt.handleBlur()})("input",function(Ct){return xt.handleInput(Ct)})("keydown",function(Ct){return xt.handleKeydown(Ct)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],standalone:!0,features:[t.Jv_([S])]})}return vt})(),Pt=(()=>{class vt{static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275mod=t.$C({type:vt});static#n=this.\u0275inj=t.G2t({imports:[Z]})}return vt})()},9438:(Rt,De,c)=>{c.d(De,{PM:()=>F,Yb:()=>V});var t=c(4707),r=c(6860),g=c(3953),e=c(6042),M=c(5103);const G=["textEl"];function L(x,ne){if(1&x&&g.nrm(0,"span",1),2&x){const J=g.XpG();g.Y8G("nzType",J.nzIcon)}}function B(x,ne){if(1&x){const J=g.RV6();g.j41(0,"img",4),g.bIt("error",function(Oe){g.eBV(J);const he=g.XpG();return g.Njj(he.imgError(Oe))}),g.k0s()}if(2&x){const J=g.XpG();g.Y8G("src",J.nzSrc,g.B4B),g.BMQ("srcset",J.nzSrcSet)("alt",J.nzAlt)}}function A(x,ne){if(1&x&&(g.j41(0,"span",3,0),g.EFF(2),g.k0s()),2&x){const J=g.XpG();g.R7$(2),g.JRh(J.nzText)}}let F=(()=>{class x{constructor(J,be,Oe){this.nzConfigService=J,this.elementRef=be,this.cdr=Oe,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new g.bkB,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(J){this.nzError.emit(J),J.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.calcStringSize())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.calcStringSize()}ngAfterViewInit(){this.calcStringSize()}calcStringSize(){if(!this.hasText||!this.textEl)return;const J=this.textEl.nativeElement,be=J.offsetWidth,Oe=this.el.getBoundingClientRect?.().width??0,he=2*this.nzGap{class x{static#e=this.\u0275fac=function(be){return new(be||x)};static#t=this.\u0275mod=g.$C({type:x});static#n=this.\u0275inj=g.G2t({imports:[F]})}return x})()},3146:(Rt,De,c)=>{c.d(De,{KI:()=>Z,W2:()=>pe,dz:()=>z});var t=c(4707),r=c(177),g=c(3953),e=c(1413),M=c(6977),G=c(713),L=c(6042),B=c(7806),A=c(6841),w=c(8203);function I(E,S){if(1&E&&(g.j41(0,"p",3),g.EFF(1),g.k0s()),2&E){const R=S.$implicit,Y=g.XpG(2).$index,se=g.XpG(2);g.AVh("current",R===se.countArray[Y]),g.R7$(),g.SpI(" ",R," ")}}function F(E,S){if(1&E&&g.Z7z(0,I,2,3,"p",2,g.fX1),2&E){const R=g.XpG(3);g.Dyx(R.countSingleArray)}}function X(E,S){if(1&E&&(g.j41(0,"span",1),g.DNE(1,F,2,0),g.k0s()),2&E){const R=S.$index,Y=g.XpG(2);g.xc7("transform","translateY("+100*-Y.countArray[R]+"%)"),g.Y8G("nzNoAnimation",Y.noAnimation),g.R7$(),g.vxM(Y.nzDot||void 0===Y.countArray[R]?-1:1)}}function V(E,S){if(1&E&&g.Z7z(0,X,2,4,"span",0,g.fX1),2&E){const R=g.XpG();g.Dyx(R.maxNumberArray)}}function x(E,S){if(1&E&&g.EFF(0),2&E){const R=g.XpG();g.SpI(" ",R.nzOverflowCount,"+ ")}}const ne=["*"];function J(E,S){if(1&E&&(g.qex(0),g.EFF(1),g.bVm()),2&E){const R=g.XpG(2);g.R7$(),g.JRh(R.nzText)}}function be(E,S){if(1&E&&(g.nrm(0,"span",1),g.j41(1,"span",2),g.DNE(2,J,2,1,"ng-container",0),g.k0s()),2&E){const R=g.XpG();g.ZvI("ant-badge-status-dot ant-badge-status-",R.nzStatus||R.presetColor,""),g.xc7("background",!R.presetColor&&R.nzColor),g.Y8G("ngStyle",R.nzStyle),g.R7$(2),g.Y8G("nzStringTemplateOutlet",R.nzText)}}function Oe(E,S){if(1&E&&g.nrm(0,"nz-badge-sup",3),2&E){const R=g.XpG(2);g.Y8G("nzOffset",R.nzOffset)("nzSize",R.nzSize)("nzTitle",R.nzTitle)("nzStyle",R.nzStyle)("nzDot",R.nzDot)("nzOverflowCount",R.nzOverflowCount)("disableAnimation",!!(R.nzStandalone||R.nzStatus||R.nzColor||null!=R.noAnimation&&R.noAnimation.nzNoAnimation))("nzCount",R.nzCount)("noAnimation",!(null==R.noAnimation||!R.noAnimation.nzNoAnimation))}}function he(E,S){if(1&E&&(g.qex(0),g.DNE(1,Oe,1,9,"nz-badge-sup",3),g.bVm()),2&E){const R=g.XpG();g.R7$(),g.vxM(R.showSup?1:-1)}}function Ie(E,S){if(1&E&&(g.qex(0),g.j41(1,"span",3),g.EFF(2),g.k0s(),g.bVm()),2&E){const R=g.XpG();g.R7$(2),g.JRh(R.nzText)}}let me=(()=>{class E{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.nzSize="default",this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9]}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(R){const{nzOverflowCount:Y,nzCount:se}=R;se&&"number"==typeof se.currentValue&&(this.count=Math.max(0,se.currentValue),this.countArray=this.count.toString().split("").map(Be=>+Be)),Y&&this.generateMaxNumberArray()}static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:17,hostBindings:function(Y,se){2&Y&&(g.zvX("@.disabled",se.disableAnimation)("@zoomBadgeMotion",void 0),g.BMQ("title",null===se.nzTitle?"":se.nzTitle||se.nzCount),g.Aen(se.nzStyle),g.xc7("right",se.nzOffset&&se.nzOffset[0]?-se.nzOffset[0]:null,"px")("margin-top",se.nzOffset&&se.nzOffset[1]?se.nzOffset[1]:null,"px"),g.AVh("ant-badge-count",!se.nzDot)("ant-badge-count-sm","small"===se.nzSize)("ant-badge-dot",se.nzDot)("ant-badge-multiple-words",se.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:[2,"nzOverflowCount","nzOverflowCount",g.Udg],disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize"},exportAs:["nzBadgeSup"],standalone:!0,features:[g.GFd,g.OA$,g.aNF],decls:2,vars:1,consts:[[1,"ant-scroll-number-only",3,"nzNoAnimation","transform"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[1,"ant-scroll-number-only-unit",3,"current"],[1,"ant-scroll-number-only-unit"]],template:function(Y,se){1&Y&&g.DNE(0,V,2,0)(1,x,1,1),2&Y&&g.vxM(se.count<=se.nzOverflowCount?0:1)},dependencies:[A.z],encapsulation:2,data:{animation:[G.bS]},changeDetection:0})}return E})();const de=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let z=(()=>{class E{constructor(R,Y,se,Be,Pt,vt){this.nzConfigService=R,this.renderer=Y,this.cdr=se,this.elementRef=Be,this.directionality=Pt,this.noAnimation=vt,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new e.B,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null,this.nzSize="default"}ngOnInit(){this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(R=>{this.dir=R,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(R){const{nzColor:Y,nzShowDot:se,nzDot:Be,nzCount:Pt,nzShowZero:vt}=R;Y&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null),(se||Be||Pt||vt)&&(this.showSup=this.nzShowDot&&this.nzDot||"number"==typeof this.nzCount&&this.nzCount>0||"number"==typeof this.nzCount&&this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return"rtl"===this.dir}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(L.yx),g.rXU(g.sFG),g.rXU(g.gRc),g.rXU(g.aKT),g.rXU(w.dS,8),g.rXU(A.z,9))};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(Y,se){2&Y&&g.AVh("ant-badge-status",se.nzStatus)("ant-badge-not-a-wrapper",!!(se.nzStandalone||se.nzStatus||se.nzColor))},inputs:{nzShowZero:[2,"nzShowZero","nzShowZero",g.L39],nzShowDot:[2,"nzShowDot","nzShowDot",g.L39],nzStandalone:[2,"nzStandalone","nzStandalone",g.L39],nzDot:[2,"nzDot","nzDot",g.L39],nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],standalone:!0,features:[g.GFd,g.OA$,g.aNF],ngContentSelectors:ne,decls:3,vars:2,consts:[[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(Y,se){1&Y&&(g.NAR(),g.DNE(0,be,3,7),g.SdG(1),g.DNE(2,he,2,1,"ng-container",0)),2&Y&&(g.vxM(se.nzStatus||se.nzColor?0:-1),g.R7$(2),g.Y8G("nzStringTemplateOutlet",se.nzCount))},dependencies:[r.B3,me,B.C,B.m],encapsulation:2,data:{animation:[G.bS]},changeDetection:0})}return(0,t.Cg)([(0,L.H4)()],E.prototype,"nzOverflowCount",void 0),(0,t.Cg)([(0,L.H4)()],E.prototype,"nzColor",void 0),E})(),Z=(()=>{class E{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(R){const{nzColor:Y}=R;Y&&(this.presetColor=this.nzColor&&-1!==de.indexOf(this.nzColor)?this.nzColor:null)}static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],standalone:!0,features:[g.OA$,g.aNF],ngContentSelectors:ne,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(Y,se){1&Y&&(g.NAR(),g.SdG(0),g.j41(1,"div",0),g.DNE(2,Ie,3,1,"ng-container",1),g.nrm(3,"div",2),g.k0s()),2&Y&&(g.R7$(),g.HbH(se.presetColor&&"ant-ribbon-color-"+se.presetColor),g.xc7("background-color",!se.presetColor&&se.nzColor),g.AVh("ant-ribbon-placement-end","end"===se.nzPlacement)("ant-ribbon-placement-start","start"===se.nzPlacement),g.R7$(),g.Y8G("nzStringTemplateOutlet",se.nzText),g.R7$(),g.xc7("color",!se.presetColor&&se.nzColor))},dependencies:[B.C,B.m],encapsulation:2,changeDetection:0})}return E})(),pe=(()=>{class E{static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275mod=g.$C({type:E});static#n=this.\u0275inj=g.G2t({imports:[z,Z]})}return E})()},513:(Rt,De,c)=>{c.d(De,{Zw:()=>Oe,aO:()=>J,dn:()=>be});var t=c(4707),r=c(3953),g=c(1413),e=c(3726),M=c(6977),G=c(9172),L=c(5964),B=c(6042),A=c(5103),w=c(8203),I=c(6389),F=c(5930);const X=["nz-button",""],V=["*"];function x(he,Ie){1&he&&r.nrm(0,"span",0)}let J=(()=>{class he{insertSpan(me,de){me.forEach(H=>{if("#text"===H.nodeName){const z=de.createElement("span"),Z=de.parentNode(H);de.insertBefore(Z,z,H),de.appendChild(z,H)}})}get iconOnly(){const me=Array.from(this.elementRef?.nativeElement?.childNodes||[]),de=me.every(z=>"#text"!==z.nodeName),H=0==me.filter(z=>!("#comment"===z.nodeName||z?.attributes?.getNamedItem("nz-icon"))).length;return!!this.nzIconDirectiveElement&&H&&de}constructor(me,de,H,z,Z,pe){this.ngZone=me,this.elementRef=de,this.cdr=H,this.renderer=z,this.nzConfigService=Z,this.directionality=pe,this._nzModuleName="button",this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new g.B,this.loading$=new g.B,this.nzConfigService.getConfigChangeEventForComponent("button").pipe((0,M.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(me=>{this.dir=me,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click",{capture:!0}).pipe((0,M.Q)(this.destroy$)).subscribe(me=>{(this.disabled&&"A"===me.target?.tagName||this.nzLoading)&&(me.preventDefault(),me.stopImmediatePropagation())})})}ngOnChanges(me){const{nzLoading:de}=me;de&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,G.Z)(this.nzLoading),(0,L.p)(()=>!!this.nzIconDirectiveElement),(0,M.Q)(this.destroy$)).subscribe(me=>{const de=this.nzIconDirectiveElement.nativeElement;me?this.renderer.setStyle(de,"display","none"):this.renderer.removeStyle(de,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(de){return new(de||he)(r.rXU(r.SKi),r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(r.sFG),r.rXU(B.yx),r.rXU(w.dS,8))};static#t=this.\u0275cmp=r.VBU({type:he,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(de,H,z){if(1&de&&r.wni(z,A.Dn,5,r.aKT),2&de){let Z;r.mGM(Z=r.lsd())&&(H.nzIconDirectiveElement=Z.first)}},hostAttrs:[1,"ant-btn"],hostVars:34,hostBindings:function(de,H){2&de&&(r.BMQ("tabindex",H.disabled?-1:null===H.tabIndex?null:H.tabIndex)("disabled",H.disabled||null),r.AVh("ant-btn-default","default"===H.nzType)("ant-btn-primary","primary"===H.nzType)("ant-btn-dashed","dashed"===H.nzType)("ant-btn-link","link"===H.nzType)("ant-btn-text","text"===H.nzType)("ant-btn-circle","circle"===H.nzShape)("ant-btn-round","round"===H.nzShape)("ant-btn-lg","large"===H.nzSize)("ant-btn-sm","small"===H.nzSize)("ant-btn-dangerous",H.nzDanger)("ant-btn-loading",H.nzLoading)("ant-btn-background-ghost",H.nzGhost)("ant-btn-block",H.nzBlock)("ant-input-search-button",H.nzSearch)("ant-btn-rtl","rtl"===H.dir)("ant-btn-icon-only",H.iconOnly))},inputs:{nzBlock:[2,"nzBlock","nzBlock",r.L39],nzGhost:[2,"nzGhost","nzGhost",r.L39],nzSearch:[2,"nzSearch","nzSearch",r.L39],nzLoading:[2,"nzLoading","nzLoading",r.L39],nzDanger:[2,"nzDanger","nzDanger",r.L39],disabled:[2,"disabled","disabled",r.L39],tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],attrs:X,ngContentSelectors:V,decls:2,vars:1,consts:[["nz-icon","","nzType","loading"]],template:function(de,H){1&de&&(r.NAR(),r.DNE(0,x,1,0,"span",0),r.SdG(1)),2&de&&r.vxM(H.nzLoading?0:-1)},dependencies:[A.Y3,A.Dn],encapsulation:2,changeDetection:0})}return(0,t.Cg)([(0,B.H4)()],he.prototype,"nzSize",void 0),he})(),be=(()=>{class he{constructor(me){this.directionality=me,this.nzSize="default",this.dir="ltr",this.destroy$=new g.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(me=>{this.dir=me})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(de){return new(de||he)(r.rXU(w.dS,8))};static#t=this.\u0275cmp=r.VBU({type:he,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(de,H){2&de&&r.AVh("ant-btn-group-lg","large"===H.nzSize)("ant-btn-group-sm","small"===H.nzSize)("ant-btn-group-rtl","rtl"===H.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],standalone:!0,features:[r.aNF],ngContentSelectors:V,decls:1,vars:0,template:function(de,H){1&de&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return he})(),Oe=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=r.$C({type:he});static#n=this.\u0275inj=r.G2t({imports:[J,I.p,F.o7]})}return he})()},5703:(Rt,De,c)=>{c.d(De,{RO:()=>wt,Ti:()=>xt,cK:()=>zt,ls:()=>vt});var t=c(3953),r=c(177),g=c(7806),e=c(4707),M=c(1413),G=c(6977),L=c(6042),B=c(1912),A=c(8203);function w(st,Ct){}function I(st,Ct){if(1&st&&(t.j41(0,"div",0),t.DNE(1,w,0,0,"ng-template",2),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",It.nzAvatar)}}function F(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzTitle)}}function X(st,Ct){if(1&st&&(t.j41(0,"div",3),t.DNE(1,F,2,1,"ng-container",5),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzTitle)}}function V(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzDescription)}}function x(st,Ct){if(1&st&&(t.j41(0,"div",4),t.DNE(1,V,2,1,"ng-container",5),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzDescription)}}function ne(st,Ct){if(1&st&&(t.j41(0,"div",1),t.DNE(1,X,2,1,"div",3)(2,x,2,1,"div",4),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.vxM(It.nzTitle?1:-1),t.R7$(),t.vxM(It.nzDescription?2:-1)}}const J=["*"];function be(st,Ct){1&st&&t.SdG(0)}const Oe=()=>({rows:4});function he(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzTitle)}}function Ie(st,Ct){if(1&st&&(t.j41(0,"div",6),t.DNE(1,he,2,1,"ng-container",9),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzTitle)}}function me(st,Ct){if(1&st&&(t.qex(0),t.EFF(1),t.bVm()),2&st){const It=t.XpG(3);t.R7$(),t.JRh(It.nzExtra)}}function de(st,Ct){if(1&st&&(t.j41(0,"div",7),t.DNE(1,me,2,1,"ng-container",9),t.k0s()),2&st){const It=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzExtra)}}function H(st,Ct){}function z(st,Ct){if(1&st&&t.DNE(0,H,0,0,"ng-template",8),2&st){const It=t.XpG(2);t.Y8G("ngTemplateOutlet",It.listOfNzCardTabComponent.template)}}function Z(st,Ct){if(1&st&&(t.j41(0,"div",0)(1,"div",5),t.DNE(2,Ie,2,1,"div",6)(3,de,2,1,"div",7),t.k0s(),t.DNE(4,z,1,1,null,8),t.k0s()),2&st){const It=t.XpG();t.R7$(2),t.vxM(It.nzTitle?2:-1),t.R7$(),t.vxM(It.nzExtra?3:-1),t.R7$(),t.vxM(It.listOfNzCardTabComponent?4:-1)}}function pe(st,Ct){}function E(st,Ct){if(1&st&&(t.j41(0,"div",1),t.DNE(1,pe,0,0,"ng-template",8),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",It.nzCover)}}function S(st,Ct){1&st&&t.nrm(0,"nz-skeleton",3),2&st&&t.Y8G("nzActive",!0)("nzTitle",!1)("nzParagraph",t.lJ4(3,Oe))}function R(st,Ct){1&st&&t.SdG(0)}function Y(st,Ct){}function se(st,Ct){if(1&st&&(t.j41(0,"li")(1,"span"),t.DNE(2,Y,0,0,"ng-template",8),t.k0s()()),2&st){const It=Ct.$implicit,Tt=t.XpG(2);t.xc7("width",100/Tt.nzActions.length,"%"),t.R7$(2),t.Y8G("ngTemplateOutlet",It)}}function Be(st,Ct){if(1&st&&(t.j41(0,"ul",4),t.Z7z(1,se,3,3,"li",10,t.Vm6),t.k0s()),2&st){const It=t.XpG();t.R7$(),t.Dyx(It.nzActions)}}let Pt=(()=>{class st{constructor(){this.nzHoverable=!0}static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275dir=t.FsC({type:st,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(Tt,en){2&Tt&&t.AVh("ant-card-hoverable",en.nzHoverable)},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",t.L39]},exportAs:["nzCardGrid"],standalone:!0,features:[t.GFd]})}return st})(),vt=(()=>{class st{constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(Tt,en){1&Tt&&t.DNE(0,I,2,1,"div",0)(1,ne,3,2,"div",1),2&Tt&&(t.vxM(en.nzAvatar?0:-1),t.R7$(),t.vxM(en.nzTitle||en.nzDescription?1:-1))},dependencies:[r.T3,g.C,g.m],encapsulation:2,changeDetection:0})}return st})(),wt=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card-tab"]],viewQuery:function(Tt,en){if(1&Tt&&t.GBs(t.C4Q,7),2&Tt){let jt;t.mGM(jt=t.lsd())&&(en.template=jt.first)}},exportAs:["nzCardTab"],standalone:!0,features:[t.aNF],ngContentSelectors:J,decls:1,vars:0,template:function(Tt,en){1&Tt&&(t.NAR(),t.DNE(0,be,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return st})(),zt=(()=>{class st{constructor(It,Tt,en){this.nzConfigService=It,this.cdr=Tt,this.directionality=en,this._nzModuleName="card",this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new M.B,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(It=>{this.dir=It,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(t.rXU(L.yx),t.rXU(t.gRc),t.rXU(A.dS,8))};static#t=this.\u0275cmp=t.VBU({type:st,selectors:[["nz-card"]],contentQueries:function(Tt,en,jt){if(1&Tt&&(t.wni(jt,wt,5),t.wni(jt,Pt,4)),2&Tt){let Vt;t.mGM(Vt=t.lsd())&&(en.listOfNzCardTabComponent=Vt.first),t.mGM(Vt=t.lsd())&&(en.listOfNzCardGridDirective=Vt)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(Tt,en){2&Tt&&t.AVh("ant-card-loading",en.nzLoading)("ant-card-bordered",!1===en.nzBorderless&&en.nzBordered)("ant-card-hoverable",en.nzHoverable)("ant-card-small","small"===en.nzSize)("ant-card-contain-grid",en.listOfNzCardGridDirective&&en.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===en.nzType)("ant-card-contain-tabs",!!en.listOfNzCardTabComponent)("ant-card-rtl","rtl"===en.dir)},inputs:{nzBordered:[2,"nzBordered","nzBordered",t.L39],nzBorderless:[2,"nzBorderless","nzBorderless",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzHoverable:[2,"nzHoverable","nzHoverable",t.L39],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],standalone:!0,features:[t.GFd,t.aNF],ngContentSelectors:J,decls:6,vars:5,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body",3,"ngStyle"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(Tt,en){1&Tt&&(t.NAR(),t.DNE(0,Z,5,3,"div",0)(1,E,2,1,"div",1),t.j41(2,"div",2),t.DNE(3,S,1,4,"nz-skeleton",3)(4,R,1,0),t.k0s(),t.DNE(5,Be,3,0,"ul",4)),2&Tt&&(t.vxM(en.nzTitle||en.nzExtra||en.listOfNzCardTabComponent?0:-1),t.R7$(),t.vxM(en.nzCover?1:-1),t.R7$(),t.Y8G("ngStyle",en.nzBodyStyle),t.R7$(),t.vxM(en.nzLoading?3:4),t.R7$(2),t.vxM(en.nzActions.length?5:-1))},dependencies:[g.C,g.m,r.T3,r.B3,B.i3,B.Bi],encapsulation:2,changeDetection:0})}return(0,e.Cg)([(0,L.H4)()],st.prototype,"nzBordered",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzBorderless",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzHoverable",void 0),(0,e.Cg)([(0,L.H4)()],st.prototype,"nzSize",void 0),st})(),xt=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=t.$C({type:st});static#n=this.\u0275inj=t.G2t({imports:[zt,vt,A.jI]})}return st})()},5979:(Rt,De,c)=>{c.d(De,{xH:()=>G});var t=c(3953),r=c(4085),g=c(1985),e=c(1413);let M=(()=>{class A{create(I){return typeof ResizeObserver>"u"?null:new ResizeObserver(I)}static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275prov=t.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})(),G=(()=>{class A{constructor(I){this.nzResizeObserverFactory=I,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((I,F)=>this.cleanupObserver(F))}observe(I){const F=(0,r.i8)(I);return new g.c(X=>{const x=this.observeElement(F).subscribe(X);return()=>{x.unsubscribe(),this.unobserveElement(F)}})}observeElement(I){if(this.observedElements.has(I))this.observedElements.get(I).count++;else{const F=new e.B,X=this.nzResizeObserverFactory.create(V=>F.next(V));X&&X.observe(I),this.observedElements.set(I,{observer:X,stream:F,count:1})}return this.observedElements.get(I).stream}unobserveElement(I){this.observedElements.has(I)&&(this.observedElements.get(I).count--,this.observedElements.get(I).count||this.cleanupObserver(I))}cleanupObserver(I){if(this.observedElements.has(I)){const{observer:F,stream:X}=this.observedElements.get(I);F&&F.disconnect(),X.complete(),this.observedElements.delete(I)}}static#e=this.\u0275fac=function(F){return new(F||A)(t.KVO(M))};static#t=this.\u0275prov=t.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},2986:(Rt,De,c)=>{c.d(De,{$g:()=>x,IJ:()=>J,Ov:()=>ne,wG:()=>V});var t=c(3953),r=c(9417),g=c(1413),e=c(3726),M=c(6977),G=c(851),L=c(8203),B=c(7891);const A=["*"],w=["inputElement"],I=["nz-checkbox",""],F=(be,Oe)=>Oe.value;function X(be,Oe){if(1&be){const he=t.RV6();t.j41(0,"label",1),t.bIt("nzCheckedChange",function(me){const de=t.eBV(he).$implicit,H=t.XpG();return t.Njj(H.onCheckedChange(de,me))}),t.j41(1,"span"),t.EFF(2),t.k0s()()}if(2&be){const he=Oe.$implicit,Ie=t.XpG();t.Y8G("nzDisabled",he.disabled||Ie.nzDisabled)("nzChecked",he.checked),t.R7$(2),t.JRh(he.label)}}let V=(()=>{class be{constructor(){this.nzOnChange=new t.bkB,this.checkboxList=[]}addCheckbox(he){this.checkboxList.push(he)}removeCheckbox(he){this.checkboxList.splice(this.checkboxList.indexOf(he),1)}onChange(){const he=this.checkboxList.filter(Ie=>Ie.nzChecked).map(Ie=>Ie.nzValue);this.nzOnChange.emit(he)}static#e=this.\u0275fac=function(Ie){return new(Ie||be)};static#t=this.\u0275cmp=t.VBU({type:be,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],standalone:!0,features:[t.aNF],ngContentSelectors:A,decls:1,vars:0,template:function(Ie,me){1&Ie&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return be})(),x=(()=>{class be{innerCheckedChange(he){this.nzDisabled||(this.nzChecked=he,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(he){this.nzChecked=he,this.cdr.markForCheck()}registerOnChange(he){this.onChange=he}registerOnTouched(he){this.onTouched=he}setDisabledState(he){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||he,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(he,Ie,me,de,H,z,Z){this.ngZone=he,this.elementRef=Ie,this.nzCheckboxWrapperComponent=me,this.cdr=de,this.focusMonitor=H,this.directionality=z,this.nzFormStatusService=Z,this.dir="ltr",this.destroy$=new g.B,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new t.bkB,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,M.Q)(this.destroy$)).subscribe(he=>{he||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,M.Q)(this.destroy$)).subscribe(he=>{this.dir=he,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,M.Q)(this.destroy$)).subscribe(he=>{he.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,M.Q)(this.destroy$)).subscribe(he=>he.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ie){return new(Ie||be)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(V,8),t.rXU(t.gRc),t.rXU(G.FN),t.rXU(L.dS,8),t.rXU(B.is,8))};static#t=this.\u0275cmp=t.VBU({type:be,selectors:[["","nz-checkbox",""]],viewQuery:function(Ie,me){if(1&Ie&&t.GBs(w,7),2&Ie){let de;t.mGM(de=t.lsd())&&(me.inputElement=de.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(Ie,me){2&Ie&&t.AVh("ant-checkbox-wrapper-in-form-item",!!me.nzFormStatusService)("ant-checkbox-wrapper-checked",me.nzChecked)("ant-checkbox-rtl","rtl"===me.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",t.L39],nzChecked:[2,"nzChecked","nzChecked",t.L39],nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>be),multi:!0}]),t.GFd,t.aNF],attrs:I,ngContentSelectors:A,decls:6,vars:11,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(Ie,me){if(1&Ie){const de=t.RV6();t.NAR(),t.j41(0,"span",1)(1,"input",2,0),t.bIt("ngModelChange",function(z){return t.eBV(de),t.Njj(me.innerCheckedChange(z))}),t.k0s(),t.nrm(3,"span",3),t.k0s(),t.j41(4,"span"),t.SdG(5),t.k0s()}2&Ie&&(t.AVh("ant-checkbox-checked",me.nzChecked&&!me.nzIndeterminate)("ant-checkbox-disabled",me.nzDisabled)("ant-checkbox-indeterminate",me.nzIndeterminate),t.R7$(),t.Y8G("checked",me.nzChecked)("ngModel",me.nzChecked)("disabled",me.nzDisabled),t.BMQ("autofocus",me.nzAutoFocus?"autofocus":null)("id",me.nzId))},dependencies:[r.YN,r.Zm,r.BC,r.vS],encapsulation:2,changeDetection:0})}return be})(),ne=(()=>{class be{onCheckedChange(he,Ie){he.checked=Ie,this.onChange(this.options)}constructor(he,Ie,me,de){this.elementRef=he,this.focusMonitor=Ie,this.cdr=me,this.directionality=de,this.onChange=()=>{},this.onTouched=()=>{},this.options=[],this.nzDisabled=!1,this.dir="ltr",this.destroy$=new g.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,M.Q)(this.destroy$)).subscribe(he=>{he||Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,M.Q)(this.destroy$)).subscribe(he=>{this.dir=he,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}writeValue(he){this.options=he,this.cdr.markForCheck()}registerOnChange(he){this.onChange=he}registerOnTouched(he){this.onTouched=he}setDisabledState(he){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||he,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#e=this.\u0275fac=function(Ie){return new(Ie||be)(t.rXU(t.aKT),t.rXU(G.FN),t.rXU(t.gRc),t.rXU(L.dS,8))};static#t=this.\u0275cmp=t.VBU({type:be,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(Ie,me){2&Ie&&t.AVh("ant-checkbox-group-rtl","rtl"===me.dir)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",t.L39]},exportAs:["nzCheckboxGroup"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>be),multi:!0}]),t.GFd,t.aNF],decls:2,vars:0,consts:[["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzCheckedChange","nzDisabled","nzChecked"]],template:function(Ie,me){1&Ie&&t.Z7z(0,X,3,3,"label",0,F),2&Ie&&t.Dyx(me.options)},dependencies:[x],encapsulation:2})}return be})(),J=(()=>{class be{static#e=this.\u0275fac=function(Ie){return new(Ie||be)};static#t=this.\u0275mod=t.$C({type:be});static#n=this.\u0275inj=t.G2t({imports:[x,ne]})}return be})()},713:(Rt,De,c)=>{c.d(De,{GE:()=>e,LD:()=>L,Sn:()=>V,U1:()=>X,W4:()=>B,bS:()=>be,eF:()=>x,uX:()=>J});var t=c(9969);let r=(()=>{class Oe{static#e=this.SLOW="0.3s";static#t=this.BASE="0.2s";static#n=this.FAST="0.1s"}return Oe})(),g=(()=>{class Oe{static#e=this.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)";static#t=this.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)";static#n=this.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)";static#i=this.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)";static#o=this.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)";static#r=this.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)";static#s=this.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)";static#a=this.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)";static#c=this.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)";static#l=this.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)";static#u=this.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)";static#d=this.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)";static#h=this.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)";static#p=this.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)"}return Oe})();const e=(0,t.hZ)("collapseMotion",[(0,t.wk)("expanded",(0,t.iF)({height:"*"})),(0,t.wk)("collapsed",(0,t.iF)({height:0,overflow:"hidden"})),(0,t.wk)("hidden",(0,t.iF)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,t.kY)("expanded => collapsed",(0,t.i0)(`150ms ${g.EASE_IN_OUT}`)),(0,t.kY)("expanded => hidden",(0,t.i0)(`150ms ${g.EASE_IN_OUT}`)),(0,t.kY)("collapsed => expanded",(0,t.i0)(`150ms ${g.EASE_IN_OUT}`)),(0,t.kY)("hidden => expanded",(0,t.i0)(`150ms ${g.EASE_IN_OUT}`))]),L=((0,t.hZ)("treeCollapseMotion",[(0,t.kY)("* => *",[(0,t.P)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,t.iF)({overflow:"hidden"}),(0,t.yc)(0,[(0,t.i0)(`150ms ${g.EASE_IN_OUT}`,(0,t.iF)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,t.P)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,t.iF)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,t.yc)(0,[(0,t.i0)(`150ms ${g.EASE_IN_OUT}`,(0,t.iF)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,t.hZ)("drawerMaskMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0}),(0,t.i0)(`${r.SLOW}`,(0,t.iF)({opacity:1}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1}),(0,t.i0)(`${r.SLOW}`,(0,t.iF)({opacity:0}))])]),(0,t.hZ)("fadeMotion",[(0,t.kY)("* => enter",[(0,t.iF)({opacity:0}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({opacity:1}))]),(0,t.kY)("* => leave, :leave",[(0,t.iF)({opacity:1}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({opacity:0}))])])),B=(0,t.hZ)("helpMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0,transform:"translateY(-5px)"}),(0,t.i0)(`${r.SLOW} ${g.EASE_IN_OUT}`,(0,t.iF)({opacity:1,transform:"translateY(0)"}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"translateY(0)"}),(0,t.i0)(`${r.SLOW} ${g.EASE_IN_OUT}`,(0,t.iF)({opacity:0,transform:"translateY(-5px)"}))])]),I=((0,t.hZ)("moveUpMotion",[(0,t.kY)("* => enter",[(0,t.iF)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,t.kY)("* => leave",[(0,t.iF)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),(0,t.hZ)("notificationMotion",[(0,t.wk)("enterRight",(0,t.iF)({opacity:1,transform:"translateX(0)"})),(0,t.kY)("* => enterRight",[(0,t.iF)({opacity:0,transform:"translateX(5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterLeft",(0,t.iF)({opacity:1,transform:"translateX(0)"})),(0,t.kY)("* => enterLeft",[(0,t.iF)({opacity:0,transform:"translateX(-5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterTop",(0,t.iF)({opacity:1,transform:"translateY(0)"})),(0,t.kY)("* => enterTop",[(0,t.iF)({opacity:0,transform:"translateY(-5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterBottom",(0,t.iF)({opacity:1,transform:"translateY(0)"})),(0,t.kY)("* => enterBottom",[(0,t.iF)({opacity:0,transform:"translateY(5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("leave",(0,t.iF)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,t.kY)("* => leave",[(0,t.iF)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.i0)("100ms linear")])]),`${r.BASE} ${g.EASE_OUT_QUINT}`),F=`${r.BASE} ${g.EASE_IN_QUINT}`,X=(0,t.hZ)("slideMotion",[(0,t.wk)("void",(0,t.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,t.wk)("enter",(0,t.iF)({opacity:1,transform:"scaleY(1)"})),(0,t.kY)("void => *",[(0,t.i0)(I)]),(0,t.kY)("* => void",[(0,t.i0)(F)])]),V=(0,t.hZ)("slideAlertMotion",[(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.i0)(`${r.SLOW} ${g.EASE_IN_OUT_CIRC}`,(0,t.iF)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),x=(0,t.hZ)("tabSwitchMotion",[(0,t.wk)("leave",(0,t.iF)({display:"none"})),(0,t.kY)("* => enter",[(0,t.iF)({display:"block",opacity:0}),(0,t.i0)(r.SLOW)]),(0,t.kY)("* => leave, :leave",[(0,t.iF)({position:"absolute",top:0,left:0,width:"100%"}),(0,t.i0)(r.SLOW,(0,t.iF)({opacity:0})),(0,t.iF)({display:"none"})])]),J=((0,t.hZ)("thumbMotion",[(0,t.wk)("from",(0,t.iF)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:0,width:0}}),(0,t.wk)("to",(0,t.iF)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:100,width:0}}),(0,t.kY)("from => to",(0,t.i0)(`300ms ${g.EASE_IN_OUT}`))]),(0,t.hZ)("zoomBigMotion",[(0,t.kY)("void => active",[(0,t.iF)({opacity:0,transform:"scale(0.8)"}),(0,t.i0)(`${r.BASE} ${g.EASE_OUT_CIRC}`,(0,t.iF)({opacity:1,transform:"scale(1)"}))]),(0,t.kY)("active => void",[(0,t.iF)({opacity:1,transform:"scale(1)"}),(0,t.i0)(`${r.BASE} ${g.EASE_IN_OUT_CIRC}`,(0,t.iF)({opacity:0,transform:"scale(0.8)"}))])])),be=(0,t.hZ)("zoomBadgeMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,t.i0)(`${r.SLOW} ${g.EASE_OUT_BACK}`,(0,t.iF)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,t.i0)(`${r.SLOW} ${g.EASE_IN_BACK}`,(0,t.iF)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},6006:(Rt,De,c)=>{c.d(De,{PA:()=>g,cM:()=>Ie,nP:()=>M,uP:()=>G,un:()=>e});var t=c(4709),r=c(4215);const g=["success","processing","error","default","warning"],e=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function M(me){return-1!==e.indexOf(me)}function G(me){return-1!==g.indexOf(me)}const L=2,B=.16,A=.05,w=.05,I=.15,F=5,X=4,V=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function x({r:me,g:de,b:H}){const z=(0,t.wE)(me,de,H);return{h:360*z.h,s:z.s,v:z.v}}function ne({r:me,g:de,b:H}){return`#${(0,t.Ob)(me,de,H,!1)}`}function be(me,de,H){let z;return z=Math.round(me.h)>=60&&Math.round(me.h)<=240?H?Math.round(me.h)-L*de:Math.round(me.h)+L*de:H?Math.round(me.h)+L*de:Math.round(me.h)-L*de,z<0?z+=360:z>=360&&(z-=360),z}function Oe(me,de,H){if(0===me.h&&0===me.s)return me.s;let z;return z=H?me.s-B*de:de===X?me.s+B:me.s+A*de,z>1&&(z=1),H&&de===F&&z>.1&&(z=.1),z<.06&&(z=.06),Number(z.toFixed(2))}function he(me,de,H){let z;return z=H?me.v+w*de:me.v-I*de,z>1&&(z=1),Number(z.toFixed(2))}function Ie(me,de={}){const H=[],z=(0,r.RO)(me);for(let Z=F;Z>0;Z-=1){const pe=x(z),E=ne((0,r.RO)({h:be(pe,Z,!0),s:Oe(pe,Z,!0),v:he(pe,Z,!0)}));H.push(E)}H.push(ne(z));for(let Z=1;Z<=X;Z+=1){const pe=x(z),E=ne((0,r.RO)({h:be(pe,Z),s:Oe(pe,Z),v:he(pe,Z)}));H.push(E)}return"dark"===de.theme?V.map(({index:Z,opacity:pe})=>ne(function J(me,de,H){const z=H/100;return{r:(de.r-me.r)*z+me.r,g:(de.g-me.g)*z+me.g,b:(de.b-me.b)*z+me.b}}((0,r.RO)(de.backgroundColor||"#141414"),(0,r.RO)(H[Z]),100*pe))):H}},6042:(Rt,De,c)=>{c.d(De,{yx:()=>Ie,H4:()=>me});var t=c(3953),r=c(1413),g=c(5964),e=c(3703),M=c(4709),G=c(6681),L=c(4215),B=c(9785),A=function(){function de(H,z){var Z;if(void 0===H&&(H=""),void 0===z&&(z={}),H instanceof de)return H;"number"==typeof H&&(H=(0,M.oS)(H)),this.originalInput=H;var pe=(0,L.RO)(H);this.originalInput=H,this.r=pe.r,this.g=pe.g,this.b=pe.b,this.a=pe.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(Z=z.format)&&void 0!==Z?Z:pe.format,this.gradientType=z.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=pe.ok}return de.prototype.isDark=function(){return this.getBrightness()<128},de.prototype.isLight=function(){return!this.isDark()},de.prototype.getBrightness=function(){var H=this.toRgb();return(299*H.r+587*H.g+114*H.b)/1e3},de.prototype.getLuminance=function(){var H=this.toRgb(),E=H.r/255,S=H.g/255,R=H.b/255;return.2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))+.0722*(R<=.03928?R/12.92:Math.pow((R+.055)/1.055,2.4))},de.prototype.getAlpha=function(){return this.a},de.prototype.setAlpha=function(H){return this.a=(0,B.TV)(H),this.roundA=Math.round(100*this.a)/100,this},de.prototype.isMonochrome=function(){return 0===this.toHsl().s},de.prototype.toHsv=function(){var H=(0,M.wE)(this.r,this.g,this.b);return{h:360*H.h,s:H.s,v:H.v,a:this.a}},de.prototype.toHsvString=function(){var H=(0,M.wE)(this.r,this.g,this.b),z=Math.round(360*H.h),Z=Math.round(100*H.s),pe=Math.round(100*H.v);return 1===this.a?"hsv(".concat(z,", ").concat(Z,"%, ").concat(pe,"%)"):"hsva(".concat(z,", ").concat(Z,"%, ").concat(pe,"%, ").concat(this.roundA,")")},de.prototype.toHsl=function(){var H=(0,M.K6)(this.r,this.g,this.b);return{h:360*H.h,s:H.s,l:H.l,a:this.a}},de.prototype.toHslString=function(){var H=(0,M.K6)(this.r,this.g,this.b),z=Math.round(360*H.h),Z=Math.round(100*H.s),pe=Math.round(100*H.l);return 1===this.a?"hsl(".concat(z,", ").concat(Z,"%, ").concat(pe,"%)"):"hsla(".concat(z,", ").concat(Z,"%, ").concat(pe,"%, ").concat(this.roundA,")")},de.prototype.toHex=function(H){return void 0===H&&(H=!1),(0,M.Ob)(this.r,this.g,this.b,H)},de.prototype.toHexString=function(H){return void 0===H&&(H=!1),"#"+this.toHex(H)},de.prototype.toHex8=function(H){return void 0===H&&(H=!1),(0,M.H)(this.r,this.g,this.b,this.a,H)},de.prototype.toHex8String=function(H){return void 0===H&&(H=!1),"#"+this.toHex8(H)},de.prototype.toHexShortString=function(H){return void 0===H&&(H=!1),1===this.a?this.toHexString(H):this.toHex8String(H)},de.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},de.prototype.toRgbString=function(){var H=Math.round(this.r),z=Math.round(this.g),Z=Math.round(this.b);return 1===this.a?"rgb(".concat(H,", ").concat(z,", ").concat(Z,")"):"rgba(".concat(H,", ").concat(z,", ").concat(Z,", ").concat(this.roundA,")")},de.prototype.toPercentageRgb=function(){var H=function(z){return"".concat(Math.round(100*(0,B.Cg)(z,255)),"%")};return{r:H(this.r),g:H(this.g),b:H(this.b),a:this.a}},de.prototype.toPercentageRgbString=function(){var H=function(z){return Math.round(100*(0,B.Cg)(z,255))};return 1===this.a?"rgb(".concat(H(this.r),"%, ").concat(H(this.g),"%, ").concat(H(this.b),"%)"):"rgba(".concat(H(this.r),"%, ").concat(H(this.g),"%, ").concat(H(this.b),"%, ").concat(this.roundA,")")},de.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var H="#"+(0,M.Ob)(this.r,this.g,this.b,!1),z=0,Z=Object.entries(G.D);z=0&&(H.startsWith("hex")||"name"===H)?"name"===H&&0===this.a?this.toName():this.toRgbString():("rgb"===H&&(Z=this.toRgbString()),"prgb"===H&&(Z=this.toPercentageRgbString()),("hex"===H||"hex6"===H)&&(Z=this.toHexString()),"hex3"===H&&(Z=this.toHexString(!0)),"hex4"===H&&(Z=this.toHex8String(!0)),"hex8"===H&&(Z=this.toHex8String()),"name"===H&&(Z=this.toName()),"hsl"===H&&(Z=this.toHslString()),"hsv"===H&&(Z=this.toHsvString()),Z||this.toHexString())},de.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},de.prototype.clone=function(){return new de(this.toString())},de.prototype.lighten=function(H){void 0===H&&(H=10);var z=this.toHsl();return z.l+=H/100,z.l=(0,B.J$)(z.l),new de(z)},de.prototype.brighten=function(H){void 0===H&&(H=10);var z=this.toRgb();return z.r=Math.max(0,Math.min(255,z.r-Math.round(-H/100*255))),z.g=Math.max(0,Math.min(255,z.g-Math.round(-H/100*255))),z.b=Math.max(0,Math.min(255,z.b-Math.round(-H/100*255))),new de(z)},de.prototype.darken=function(H){void 0===H&&(H=10);var z=this.toHsl();return z.l-=H/100,z.l=(0,B.J$)(z.l),new de(z)},de.prototype.tint=function(H){return void 0===H&&(H=10),this.mix("white",H)},de.prototype.shade=function(H){return void 0===H&&(H=10),this.mix("black",H)},de.prototype.desaturate=function(H){void 0===H&&(H=10);var z=this.toHsl();return z.s-=H/100,z.s=(0,B.J$)(z.s),new de(z)},de.prototype.saturate=function(H){void 0===H&&(H=10);var z=this.toHsl();return z.s+=H/100,z.s=(0,B.J$)(z.s),new de(z)},de.prototype.greyscale=function(){return this.desaturate(100)},de.prototype.spin=function(H){var z=this.toHsl(),Z=(z.h+H)%360;return z.h=Z<0?360+Z:Z,new de(z)},de.prototype.mix=function(H,z){void 0===z&&(z=50);var Z=this.toRgb(),pe=new de(H).toRgb(),E=z/100;return new de({r:(pe.r-Z.r)*E+Z.r,g:(pe.g-Z.g)*E+Z.g,b:(pe.b-Z.b)*E+Z.b,a:(pe.a-Z.a)*E+Z.a})},de.prototype.analogous=function(H,z){void 0===H&&(H=6),void 0===z&&(z=30);var Z=this.toHsl(),pe=360/z,E=[this];for(Z.h=(Z.h-(pe*H>>1)+720)%360;--H;)Z.h=(Z.h+pe)%360,E.push(new de(Z));return E},de.prototype.complement=function(){var H=this.toHsl();return H.h=(H.h+180)%360,new de(H)},de.prototype.monochromatic=function(H){void 0===H&&(H=6);for(var z=this.toHsv(),Z=z.h,pe=z.s,E=z.v,S=[],R=1/H;H--;)S.push(new de({h:Z,s:pe,v:E})),E=(E+R)%1;return S},de.prototype.splitcomplement=function(){var H=this.toHsl(),z=H.h;return[this,new de({h:(z+72)%360,s:H.s,l:H.l}),new de({h:(z+216)%360,s:H.s,l:H.l})]},de.prototype.onBackground=function(H){var z=this.toRgb(),Z=new de(H).toRgb(),pe=z.a+Z.a*(1-z.a);return new de({r:(z.r*z.a+Z.r*Z.a*(1-z.a))/pe,g:(z.g*z.a+Z.g*Z.a*(1-z.a))/pe,b:(z.b*z.a+Z.b*Z.a*(1-z.a))/pe,a:pe})},de.prototype.triad=function(){return this.polyad(3)},de.prototype.tetrad=function(){return this.polyad(4)},de.prototype.polyad=function(H){for(var z=this.toHsl(),Z=z.h,pe=[this],E=360/H,S=1;S{let Y=S.clone();return Y=R?.(Y)||Y,Y.toRgbString()},pe=(S,R)=>{const Y=new A(S),se=(0,I.cM)(Y.toRgbString());z[`${R}-color`]=Z(Y),z[`${R}-color-disabled`]=se[1],z[`${R}-color-hover`]=se[4],z[`${R}-color-active`]=se[7],z[`${R}-color-outline`]=Y.clone().setAlpha(.2).toRgbString(),z[`${R}-color-deprecated-bg`]=se[1],z[`${R}-color-deprecated-border`]=se[3]};if(H.primaryColor){pe(H.primaryColor,"primary");const S=new A(H.primaryColor),R=(0,I.cM)(S.toRgbString());R.forEach((se,Be)=>{z[`primary-${Be+1}`]=se}),z["primary-color-deprecated-l-35"]=Z(S,se=>se.lighten(35)),z["primary-color-deprecated-l-20"]=Z(S,se=>se.lighten(20)),z["primary-color-deprecated-t-20"]=Z(S,se=>se.tint(20)),z["primary-color-deprecated-t-50"]=Z(S,se=>se.tint(50)),z["primary-color-deprecated-f-12"]=Z(S,se=>se.setAlpha(.12*se.getAlpha()));const Y=new A(R[0]);z["primary-color-active-deprecated-f-30"]=Z(Y,se=>se.setAlpha(.3*se.getAlpha())),z["primary-color-active-deprecated-d-02"]=Z(Y,se=>se.darken(2))}return H.successColor&&pe(H.successColor,"success"),H.warningColor&&pe(H.warningColor,"warning"),H.errorColor&&pe(H.errorColor,"error"),H.infoColor&&pe(H.infoColor,"info"),`\n :root {\n ${Object.keys(z).map(S=>`--${de}-${S}: ${z[S]};`).join("\n")}\n }\n `.trim()}(de,H);(0,X.OC)()?(0,X.BD)(Z,`${ne}-dynamic-theme`,{cspNonce:z}):(0,F.R8)("NzConfigService: SSR do not support dynamic theme with css variables.")}const Oe=function(de){return void 0!==de};let Ie=(()=>{class de{constructor(z,Z){this.configUpdated$=new r.B,this.config=z||{},this.cspNonce=Z,this.config.theme&&be(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme,Z)}getConfig(){return this.config}getConfigForComponent(z){return this.config[z]}getConfigChangeEventForComponent(z){return this.configUpdated$.pipe((0,g.p)(Z=>Z===z),(0,e.u)(void 0))}set(z,Z){this.config[z]={...this.config[z],...Z},"theme"===z&&this.config.theme&&be(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme,this.cspNonce),this.configUpdated$.next(z)}static#e=this.\u0275fac=function(Z){return new(Z||de)(t.KVO(V,8),t.KVO(t.BIS,8))};static#t=this.\u0275prov=t.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();function me(){return function(H,z,Z){const pe=`$$__zorroConfigDecorator__${z}`;return Object.defineProperty(H,pe,{configurable:!0,writable:!0,enumerable:!1}),{get(){const E=Z?.get?Z.get.bind(this)():this[pe],S=(this.propertyAssignCounter?.[z]||0)>1,R=this.nzConfigService.getConfigForComponent(this._nzModuleName)?.[z];return S&&Oe(E)?E:Oe(R)?R:E},set(E){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[z]=(this.propertyAssignCounter[z]||0)+1,Z?.set?Z.set.bind(this)(E):this[pe]=E},configurable:!0,enumerable:!0}}}},7891:(Rt,De,c)=>{c.d(De,{J1:()=>I,Xd:()=>w,is:()=>L,n1:()=>B});var t=c(3953),r=c(2771),g=c(4412),e=c(177),M=c(5103);function G(F,X){if(1&F&&t.nrm(0,"span",1),2&F){const V=t.XpG();t.Y8G("nzType",V.iconType)}}let L=(()=>{class F{constructor(){this.formStatusChanges=new r.m(1)}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac})}return F})(),B=(()=>{class F{constructor(){this.noFormStatus=new g.t(!1)}static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac})}return F})();const A={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let w=(()=>{class F{constructor(V){this.cdr=V,this.status="",this.iconType=null}ngOnChanges(V){this.updateIcon()}updateIcon(){this.iconType=this.status?A[this.status]:null,this.cdr.markForCheck()}static#e=this.\u0275fac=function(x){return new(x||F)(t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:F,selectors:[["nz-form-item-feedback-icon"]],hostAttrs:[1,"ant-form-item-feedback-icon"],hostVars:8,hostBindings:function(x,ne){2&x&&t.AVh("ant-form-item-feedback-icon-error","error"===ne.status)("ant-form-item-feedback-icon-warning","warning"===ne.status)("ant-form-item-feedback-icon-success","success"===ne.status)("ant-form-item-feedback-icon-validating","validating"===ne.status)},inputs:{status:"status"},exportAs:["nzFormFeedbackIcon"],features:[t.OA$],decls:1,vars:1,consts:[["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(x,ne){1&x&&t.DNE(0,G,1,1,"span",0),2&x&&t.Y8G("ngIf",ne.iconType)},dependencies:[e.bT,M.Dn],encapsulation:2,changeDetection:0})}return F})(),I=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=t.$C({type:F});static#n=this.\u0275inj=t.G2t({imports:[e.MD,M.Y3]})}return F})()},3451:(Rt,De,c)=>{c.d(De,{H3:()=>e,R8:()=>L});var t=c(3953);const g={},e="[NG-ZORRO]:";const L=(...w)=>function G(w,...I){(0,t.naY)()&&function M(...w){const I=w.reduce((F,X)=>F+X.toString(),"");return!g[I]&&(g[I]=!0,!0)}(...I)&&w(...I)}((...I)=>console.warn(e,...I),...w)},6841:(Rt,De,c)=>{c.d(De,{z:()=>r});var t=c(3953);let r=(()=>{class e{constructor(){this.animationType=(0,t.WQX)(t.bc$,{optional:!0}),this.nzNoAnimation=!1}static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","nzNoAnimation",""]],hostVars:2,hostBindings:function(L,B){2&L&&t.AVh("nz-animate-disabled",B.nzNoAnimation||"NoopAnimations"===B.animationType)},inputs:{nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",t.L39]},exportAs:["nzNoAnimation"],standalone:!0,features:[t.GFd]})}return e})()},7806:(Rt,De,c)=>{c.d(De,{C:()=>e,m:()=>r});var t=c(3953);let r=(()=>{class M{static ngTemplateContextGuard(L,B){return!0}recreateView(){this.viewContainer.clear();const L=this.nzStringTemplateOutlet instanceof t.C4Q;this.embeddedViewRef=this.viewContainer.createEmbeddedView(L?this.nzStringTemplateOutlet:this.templateRef,L?this.nzStringTemplateOutletContext:this.context)}updateContext(){const B=this.nzStringTemplateOutlet instanceof t.C4Q?this.nzStringTemplateOutletContext:this.context,A=this.embeddedViewRef.context;if(B)for(const w of Object.keys(B))A[w]=B[w]}constructor(L,B){this.viewContainer=L,this.templateRef=B,this.embeddedViewRef=null,this.context=new g,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}ngOnChanges(L){const{nzStringTemplateOutletContext:B,nzStringTemplateOutlet:A}=L;A&&(this.context.$implicit=A.currentValue),(()=>{let F=!1;return A&&(F=!!A.firstChange||(A.previousValue instanceof t.C4Q||A.currentValue instanceof t.C4Q)),B&&(x=>{const ne=Object.keys(x.previousValue||{}),J=Object.keys(x.currentValue||{});if(ne.length===J.length){for(const be of J)if(-1===ne.indexOf(be))return!0;return!1}return!0})(B)||F})()?this.recreateView():this.updateContext()}static#e=this.\u0275fac=function(B){return new(B||M)(t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:M,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],standalone:!0,features:[t.OA$]})}return M})();class g{}let e=(()=>{class M{static#e=this.\u0275fac=function(B){return new(B||M)};static#t=this.\u0275mod=t.$C({type:M});static#n=this.\u0275inj=t.G2t({})}return M})()},5463:(Rt,De,c)=>{c.d(De,{$_:()=>V,G5:()=>x,Ib:()=>B,Js:()=>G,MV:()=>A,jj:()=>w,pn:()=>M,vT:()=>X});var t=c(7987),r=c(3953),g=c(6977),e=c(1025);const M={top:new t.uH({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new t.uH({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new t.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new t.uH({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new t.uH({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new t.uH({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new t.uH({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new t.uH({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new t.uH({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new t.uH({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new t.uH({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new t.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},G=[M.top,M.right,M.bottom,M.left],B=[new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],A=[M.bottomLeft,new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function w(ne){for(const J in M)if(ne.connectionPair.originX===M[J].originX&&ne.connectionPair.originY===M[J].originY&&ne.connectionPair.overlayX===M[J].overlayX&&ne.connectionPair.overlayY===M[J].overlayY)return J}new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"},void 0,2),new t.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,-2),new t.uH({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"},void 0,2),new t.uH({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,-2);let X=(()=>{class ne{constructor(be,Oe){this.cdkConnectedOverlay=be,this.nzDestroyService=Oe,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,g.Q)(this.nzDestroyService)).subscribe(he=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(he)})}updateArrowPosition(be){const Oe=this.getOriginRect(),he=w(be);let Ie=0,me=0;"topLeft"===he||"bottomLeft"===he?Ie=Oe.width/2-14:"topRight"===he||"bottomRight"===he?Ie=-(Oe.width/2-14):"leftTop"===he||"rightTop"===he?me=Oe.height/2-10:("leftBottom"===he||"rightBottom"===he)&&(me=-(Oe.height/2-10)),(this.cdkConnectedOverlay.offsetX!==Ie||this.cdkConnectedOverlay.offsetY!==me)&&(this.cdkConnectedOverlay.offsetY=me,this.cdkConnectedOverlay.offsetX=Ie,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof t.$Q?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const be=this.getFlexibleConnectedPositionStrategyOrigin();if(be instanceof r.aKT)return be.nativeElement.getBoundingClientRect();if(be instanceof Element)return be.getBoundingClientRect();const Oe=be.width||0,he=be.height||0;return{top:be.y,bottom:be.y+he,left:be.x,right:be.x+Oe,height:he,width:Oe}}static#e=this.\u0275fac=function(Oe){return new(Oe||ne)(r.rXU(t.WB),r.rXU(e.y4))};static#t=this.\u0275dir=r.FsC({type:ne,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:[2,"nzArrowPointAtCenter","nzArrowPointAtCenter",r.L39]},exportAs:["nzConnectedOverlay"],features:[r.Jv_([e.y4]),r.GFd]})}return ne})(),V=(()=>{class ne{static#e=this.\u0275fac=function(Oe){return new(Oe||ne)};static#t=this.\u0275mod=r.$C({type:ne});static#n=this.\u0275inj=r.G2t({})}return ne})();function x(ne,J){J&&(ne._host.style.zIndex=`${J}`)}},4500:(Rt,De,c)=>{c.d(De,{F:()=>e,j:()=>M});const t=["moz","ms","webkit"];function e(G){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(G);const L=t.filter(B=>`${B}CancelAnimationFrame`in window||`${B}CancelRequestAnimationFrame`in window)[0];return L?(window[`${L}CancelAnimationFrame`]||window[`${L}CancelRequestAnimationFrame`]).call(this,G):clearTimeout(G)}const M=function g(){if(typeof window>"u")return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const G=t.filter(L=>`${L}RequestAnimationFrame`in window)[0];return G?window[`${G}RequestAnimationFrame`]:function r(){let G=0;return function(L){const B=(new Date).getTime(),A=Math.max(0,16-(B-G)),w=window.setTimeout(()=>{L(B+A)},A);return G=B+A,w}}()}()},1025:(Rt,De,c)=>{c.d(De,{cB:()=>X,fe:()=>Ie,jp:()=>de,pt:()=>he,qH:()=>J,y4:()=>H,yY:()=>me});var t=c(3953),r=c(1413),g=c(3798),e=c(980),M=c(6354),G=c(5964),L=c(6977),B=c(9172),A=c(3294),w=c(317),I=c(9327);const F=()=>{};let X=(()=>{class Z{constructor(E,S){this.ngZone=E,this.rendererFactory2=S,this.resizeSource$=new r.B,this.listeners=0,this.disposeHandle=F,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=F}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,g.Z)(16),(0,e.j)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=F)}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(t.SKi),t.KVO(t._9s))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})(),J=(()=>{class Z{constructor(E){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=E.createRenderer(null,null)}requestDraggingSequence(E){return this.handleRegistry.size||this.registerDraggingHandler((0,w.kH)(E)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function ne(Z){const pe=(0,w.q1)(Z);return{x:pe.pageX,y:pe.pageY}}(E),this.currentDraggingSequence=new r.B,this.currentDraggingSequence.pipe((0,M.T)(S=>({x:S.pageX-this.currentStartingPoint.x,y:S.pageY-this.currentStartingPoint.y})),(0,G.p)(S=>Math.abs(S.x)>this.draggingThreshold||Math.abs(S.y)>this.draggingThreshold),(0,e.j)(()=>this.teardownDraggingSequence()))}registerDraggingHandler(E){E?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",S=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(S.touches[0]||S.changedTouches[0])})}),this.handleRegistry.add({teardown:this.renderer.listen("document","touchend",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})})):(this.handleRegistry.add({teardown:this.renderer.listen("document","mousemove",S=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(S)})}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})}))}teardownDraggingSequence(){this.currentDraggingSequence=null}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(t._9s))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})();var he=function(Z){return Z.xxl="xxl",Z.xl="xl",Z.lg="lg",Z.md="md",Z.sm="sm",Z.xs="xs",Z}(he||{});const Ie={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},me={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let de=(()=>{class Z{constructor(E,S){this.resizeService=E,this.mediaMatcher=S,this.destroy$=new r.B,this.resizeService.subscribe().pipe((0,L.Q)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(E,S){if(S){const R=()=>this.matchMedia(E,!0);return this.resizeService.subscribe().pipe((0,M.T)(R),(0,B.Z)(R()),(0,A.F)((Y,se)=>Y[0]===se[0]),(0,M.T)(Y=>Y[1]))}{const R=()=>this.matchMedia(E);return this.resizeService.subscribe().pipe((0,M.T)(R),(0,B.Z)(R()),(0,A.F)())}}matchMedia(E,S){let R=he.md;const Y={};return Object.keys(E).map(se=>{const Be=se,Pt=this.mediaMatcher.matchMedia(Ie[Be]).matches;Y[se]=Pt,Pt&&(R=Be)}),S?[R,Y]:R}static#e=this.\u0275fac=function(S){return new(S||Z)(t.KVO(X),t.KVO(I.DY))};static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})(),H=(()=>{class Z extends r.B{ngOnDestroy(){this.next(),this.complete()}static#e=this.\u0275fac=(()=>{let E;return function(R){return(E||(E=t.xGo(Z)))(R||Z)}})();static#t=this.\u0275prov=t.jDH({token:Z,factory:Z.\u0275fac})}return Z})()},6389:(Rt,De,c)=>{c.d(De,{c:()=>r,p:()=>g});var t=c(3953);let r=(()=>{class e{setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}constructor(G,L){this.elementRef=G,this.renderer=L,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}static#e=this.\u0275fac=function(L){return new(L||e)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},standalone:!0,features:[t.OA$]})}return e})(),g=(()=>{class e{static#e=this.\u0275fac=function(L){return new(L||e)};static#t=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({})}return e})()},317:(Rt,De,c)=>{c.d(De,{BD:()=>ue,BV:()=>xt,CF:()=>se,Fq:()=>zn,G4:()=>ne,LP:()=>te,Mk:()=>pe,OC:()=>kn,OM:()=>Y,Ro:()=>Oe,cG:()=>Wn,cj:()=>J,cz:()=>Ct,gD:()=>F,ho:()=>fn,ij:()=>Tn,j3:()=>he,kH:()=>E,n9:()=>I,nI:()=>st,nS:()=>Kt,q1:()=>S,r1:()=>A,xP:()=>oe,yL:()=>vt});var t=c(3953),r=c(4085),g=c(1413),e=c(4402),M=c(2806),G=c(7673),L=c(6697);function A(q,Xe){if(!q||!Xe||q.length!==Xe.length)return!1;const ht=q.length;for(let at=0;at"u"||null===q}function ne(q){return(0,r.he)(q)}function J(q){return(0,t.Udg)(q,0)}function Oe(q,Xe=0){return(0,r.OE)(q,Xe)}function he(q){return(0,r.a1)(q)}function pe(q){if(!q.getClientRects().length)return{top:0,left:0};const Xe=q.getBoundingClientRect(),ht=q.ownerDocument.defaultView;return{top:Xe.top+ht.pageYOffset,left:Xe.left+ht.pageXOffset}}function E(q){return q.type.startsWith("touch")}function S(q){return E(q)?q.touches[0]||q.changedTouches[0]:q}function Y(q,Xe="@"){if("string"!=typeof q)return[];const ht=function R(q){const Xe=Array.isArray(q)?q:[q];let ht=Xe.join("").replace(/(\$|\^)/g,"\\$1");return Xe.length>1&&(ht=`[${ht}]`),new RegExp(`(\\s|^)(${ht})[^\\s]*`,"g")}(Xe),at=q.match(ht);return null!==at?at.map(St=>St.trim()):[]}function se(q,Xe,ht){if(q.length>Xe)return q;const at=`${function Pt(q,Xe){return Array(q).fill(Xe).join("")}(Xe,ht)}${q}`;return at.slice(at.length-Xe,at.length)}function vt(q){return!!q&&"function"==typeof q.then&&"function"==typeof q.catch}function xt(q){return"number"==typeof q&&isFinite(q)}function st(q,Xe){return Math.round(q*Math.pow(10,Xe))/Math.pow(10,Xe)}function Ct(q,Xe=0){return q.reduce((ht,at)=>ht+at,Xe)}const Tt=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],en=typeof window<"u",jt=en&&null!=window.mozInnerScreenX,Vt=q=>parseInt(q,10);function fn(q,Xe,ht){if(!en)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");const at=ht&&ht.debug||!1;if(at){const gt=document.querySelector("#input-textarea-caret-position-mirror-div");gt&>.parentNode.removeChild(gt)}const St=document.createElement("div");St.id="input-textarea-caret-position-mirror-div",document.body.appendChild(St);const Qe=St.style,Ee=window.getComputedStyle?window.getComputedStyle(q):q.currentStyle,Je="INPUT"===q.nodeName;Qe.whiteSpace="pre-wrap",Je||(Qe.wordWrap="break-word"),Qe.position="absolute",at||(Qe.visibility="hidden"),Tt.forEach(gt=>{Je&&"lineHeight"===gt?Qe.lineHeight=Ee.height:Qe[gt]=Ee[gt]}),jt?q.scrollHeight>Vt(Ee.height)&&(Qe.overflowY="scroll"):Qe.overflow="hidden",St.textContent=q.value.substring(0,Xe),Je&&(St.textContent=St.textContent.replace(/\s/g,"\xa0"));const re=document.createElement("span");re.textContent=q.value.substring(Xe)||".",St.appendChild(re);const ze={top:re.offsetTop+Vt(Ee.borderTopWidth),left:re.offsetLeft+Vt(Ee.borderLeftWidth),height:Vt(Ee.lineHeight)};return at?(re.style.backgroundColor="#eee",function Hn(q,Xe){const ht=getComputedStyle(q).getPropertyValue("font-size"),at=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(at),at.id="DEBUG",at.style.position="absolute",at.style.backgroundColor="red",at.style.height=ht,at.style.width="1px",at.style.top=`${q.getBoundingClientRect().top-q.scrollTop+window.pageYOffset+Xe.top}px`,at.style.left=`${q.getBoundingClientRect().left-q.scrollLeft+window.pageXOffset+Xe.left}px`}(q,ze)):document.body.removeChild(St),ze}function zn(q){if(typeof window<"u"&&window.document&&window.document.documentElement){const Xe=Array.isArray(q)?q:[q],{documentElement:ht}=window.document;return Xe.some(at=>at in ht.style)}return!1}const At=1,Et=3,Ot=8;let Wt;const Ue={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function Ae(q){if(!q)return 0;const Xe=q.match(/^\d*(\.\d*)?/);return Xe?Number(Xe[0]):0}function oe(q,Xe,ht,at,St,Qe=""){Wt||(Wt=document.createElement("div"),Wt.setAttribute("aria-hidden","true"),document.body.appendChild(Wt));const Ee=window.getComputedStyle(q),Je=function ie(q){return Array.prototype.slice.apply(q).map(ht=>`${ht}: ${q.getPropertyValue(ht)};`).join("")}(Ee),re=Ae(Ee.lineHeight),ze=Math.round(re*(Xe+1)+Ae(Ee.paddingTop)+Ae(Ee.paddingBottom));Wt.setAttribute("style",Je),Wt.style.position="fixed",Wt.style.left="0",Wt.style.height="auto",Wt.style.minHeight="auto",Wt.style.maxHeight="auto",Wt.style.top="-999999px",Wt.style.zIndex="-1000",Wt.style.textOverflow="clip",Wt.style.whiteSpace="normal",Wt.style.webkitLineClamp="none";const gt=function _e(q){const Xe=[];return q.forEach(ht=>{const at=Xe[Xe.length-1];at&&ht.nodeType===Et&&at.nodeType===Et?at.data+=ht.data:Xe.push(ht)}),Xe}(ht),Ke=document.createElement("div"),Pe=document.createElement("span"),Re=document.createTextNode(Qe),$=document.createElement("span");function ce(){return Wt.offsetHeight{Pe.appendChild(rn)}),Pe.appendChild(Re),at.forEach(rn=>{$.appendChild(rn.cloneNode(!0))}),Ke.appendChild(Pe),Ke.appendChild($),Wt.appendChild(Ke),ce()){const rn=Wt.innerHTML;return Wt.removeChild(Ke),{contentNodes:ht,text:rn,ellipsis:!1}}const N=Array.prototype.slice.apply(Wt.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(({nodeType:rn})=>rn!==Ot),ke=Array.prototype.slice.apply(Wt.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Wt.removeChild(Ke),Wt.innerHTML="";const ve=document.createElement("span");Wt.appendChild(ve);const K=document.createTextNode(St+Qe);function ge(rn,Cn,Zn=0,jn=Cn.length,Gn=0){const Ti=Math.floor((Zn+jn)/2);if(rn.textContent=Cn.slice(0,Ti),Zn>=jn-1)for(let Oi=jn;Oi>=Zn;Oi-=1){const lo=Cn.slice(0,Oi);if(rn.textContent=lo,ce()||!lo)return Oi===Cn.length?{finished:!1,node:document.createTextNode(Cn)}:{finished:!0,node:document.createTextNode(lo)}}return ce()?ge(rn,Cn,Ti,jn,Ti):ge(rn,Cn,Zn,Ti,Gn)}function qe(rn,Cn){const Zn=rn.nodeType;if(Zn===At)return ce()?{finished:!1,node:gt[Cn]}:(ve.removeChild(rn),{finished:!0,node:null});if(Zn===Et){const jn=rn.textContent||"",Gn=document.createTextNode(jn);return function U(rn){ve.insertBefore(rn,K)}(Gn),ge(Gn,jn)}return{finished:!1,node:null}}ve.appendChild(K),ke.forEach(rn=>{Wt.appendChild(rn)});const rt=[];N.some((rn,Cn)=>{const{finished:Zn,node:jn}=qe(rn,Cn);return jn&&rt.push(jn),Zn});const Ft={contentNodes:rt,text:Wt.innerHTML,ellipsis:!0};for(;Wt.firstChild;)Wt.removeChild(Wt.firstChild);return Ft}let Fe,et;const dt={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function Kt(q="vertical",Xe="ant"){if(typeof document>"u"||typeof window>"u")return 0;const ht="vertical"===q;if(ht&&Fe)return Fe;if(!ht&&et)return et;const at=document.createElement("div");Object.keys(dt).forEach(Qe=>{at.style[Qe]=dt[Qe]}),at.className=`${Xe}-hide-scrollbar scroll-div-append-to-body`,ht?at.style.overflowY="scroll":at.style.overflowX="scroll",document.body.appendChild(at);let St=0;return ht?(St=at.offsetWidth-at.clientWidth,Fe=St):(St=at.offsetHeight-at.clientHeight,et=St),document.body.removeChild(at),St}function Tn(){const q=new g.B;return Promise.resolve().then(()=>q.next()),q.pipe((0,L.s)(1))}function Wn(q){return(0,e.A)(q)?q:vt(q)?(0,M.H)(Promise.resolve(q)):(0,G.of)(q)}function kn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Vn="rc-util-key";function Un({mark:q}={}){return q?q.startsWith("data-")?q:`data-${q}`:Vn}function dn(q){return q.attachTo?q.attachTo:document.querySelector("head")||document.body}function qt(q,Xe={}){if(!kn())return null;const ht=document.createElement("style");Xe.cspNonce&&(ht.nonce=Xe.cspNonce),ht.innerHTML=q;const at=dn(Xe),{firstChild:St}=at;return Xe.prepend&&at.prepend?at.prepend(ht):Xe.prepend&&St?at.insertBefore(ht,St):at.appendChild(ht),ht}const On=new Map;function ue(q,Xe,ht={}){const at=dn(ht);if(!On.has(at)){const Ee=qt("",ht),{parentNode:Je}=Ee;On.set(at,Je),Je.removeChild(Ee)}const St=function Ut(q,Xe={}){const ht=dn(Xe);return Array.from(On.get(ht)?.children||[]).find(at=>"STYLE"===at.tagName&&at.getAttribute(Un(Xe))===q)}(Xe,ht);if(St)return ht.cspNonce&&St.nonce!==ht.cspNonce&&(St.nonce=ht.cspNonce),St.innerHTML!==q&&(St.innerHTML=q),St;const Qe=qt(q,ht);return Qe?.setAttribute(Un(ht),Xe),Qe}function te(q,Xe,ht){return{[`${q}-status-success`]:"success"===Xe,[`${q}-status-warning`]:"warning"===Xe,[`${q}-status-error`]:"error"===Xe,[`${q}-status-validating`]:"validating"===Xe,[`${q}-has-feedback`]:ht}}},5930:(Rt,De,c)=>{c.d(De,{o7:()=>B,p:()=>L});var t=c(6860),r=c(3953);class g{get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}constructor(w,I,F,X,V){this.triggerElement=w,this.ngZone=I,this.insertExtraNode=F,this.platformId=X,this.cspNonce=V,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=x=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===x.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new t.OD(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const w=this.triggerElement,I=this.getWaveColor(w);w.setAttribute(this.waveAttributeName,"true"),!(Date.now(){w.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(w){return!!w&&"#ffffff"!==w&&"rgb(255, 255, 255)"!==w&&this.isNotGrey(w)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(w)&&"transparent"!==w}isNotGrey(w){const I=w.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(I&&I[1]&&I[2]&&I[3]&&I[1]===I[2]&&I[2]===I[3])}getWaveColor(w){const I=getComputedStyle(w);return I.getPropertyValue("border-top-color")||I.getPropertyValue("border-color")||I.getPropertyValue("background-color")}runTimeoutOutsideZone(w,I){this.ngZone.runOutsideAngular(()=>setTimeout(w,I))}}const e={disabled:!1},M=new r.nKC("nz-wave-global-options");function G(A){return(0,r.EmA)([{provide:M,useValue:A}])}let L=(()=>{class A{get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}constructor(I,F,X,V,x,ne){this.ngZone=I,this.elementRef=F,this.config=X,this.animationType=V,this.platformId=x,this.cspNonce=ne,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}isConfigDisabled(){let I=!1;return this.config&&"boolean"==typeof this.config.disabled&&(I=this.config.disabled),"NoopAnimations"===this.animationType&&(I=!0),I}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new g(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId,this.cspNonce))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}static#e=this.\u0275fac=function(F){return new(F||A)(r.rXU(r.SKi),r.rXU(r.aKT),r.rXU(M,8),r.rXU(r.bc$,8),r.rXU(r.Agw),r.rXU(r.BIS,8))};static#t=this.\u0275dir=r.FsC({type:A,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"],standalone:!0})}return A})(),B=(()=>{class A{static#e=this.\u0275fac=function(F){return new(F||A)};static#t=this.\u0275mod=r.$C({type:A});static#n=this.\u0275inj=r.G2t({providers:[G(e)]})}return A})()},2e3:(Rt,De,c)=>{c.d(De,{WF:()=>zn,gr:()=>jt,xA:()=>Hn});var t=c(3953),r=c(1413),g=c(7786),e=c(4707),M=c(177),G=c(6977),L=c(9172),B=c(5558),A=c(3798),w=c(8141),I=c(6042),F=c(3451),X=c(7806),V=c(1025),x=c(8203);const ne=["*"];function J(bt,At){1&bt&&t.SdG(0)}function be(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(3);t.R7$(),t.JRh(Et.nzTitle)}}function Oe(bt,At){if(1&bt&&(t.j41(0,"div",2),t.DNE(1,be,2,1,"ng-container",4),t.k0s()),2&bt){const Et=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.nzTitle)}}function he(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(3);t.R7$(),t.JRh(Et.nzExtra)}}function Ie(bt,At){if(1&bt&&(t.j41(0,"div",3),t.DNE(1,he,2,1,"ng-container",4),t.k0s()),2&bt){const Et=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.nzExtra)}}function me(bt,At){if(1&bt&&(t.j41(0,"div",0),t.DNE(1,Oe,2,1,"div",2)(2,Ie,2,1,"div",3),t.k0s()),2&bt){const Et=t.XpG();t.R7$(),t.vxM(Et.nzTitle?1:-1),t.R7$(),t.vxM(Et.nzExtra?2:-1)}}function de(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function H(bt,At){}function z(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",8),t.DNE(3,de,2,1,"ng-container",4),t.k0s(),t.j41(4,"span",9),t.DNE(5,H,0,0,"ng-template",10),t.k0s()()()),2&bt){const Et=t.XpG().$implicit,Ot=t.XpG(3);t.Y8G("colSpan",Et.span),t.R7$(2),t.AVh("ant-descriptions-item-no-colon",!Ot.nzColon),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title),t.R7$(2),t.Y8G("ngTemplateOutlet",Et.content)}}function Z(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function pe(bt,At){}function E(bt,At){if(1&bt&&(t.j41(0,"td",8),t.DNE(1,Z,2,1,"ng-container",4),t.k0s(),t.j41(2,"td",11),t.DNE(3,pe,0,0,"ng-template",10),t.k0s()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title),t.R7$(),t.Y8G("colSpan",2*Et.span-1),t.R7$(),t.Y8G("ngTemplateOutlet",Et.content)}}function S(bt,At){if(1&bt&&t.DNE(0,z,6,5,"td",6)(1,E,4,3),2&bt){const Et=t.XpG(3);t.vxM(Et.nzBordered?1:0)}}function R(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,S,2,1,null,null,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et)}}function Y(bt,At){if(1&bt&&t.Z7z(0,R,3,0,"tr",5,t.fX1),2&bt){const Et=t.XpG();t.Dyx(Et.itemMatrix)}}function se(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function Be(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",8),t.DNE(3,se,2,1,"ng-container",4),t.k0s()()()),2&bt){const Et=At.$implicit,Ot=t.XpG(4);t.Y8G("colSpan",Et.span),t.R7$(2),t.AVh("ant-descriptions-item-no-colon",!Ot.nzColon),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title)}}function Pt(bt,At){}function vt(bt,At){if(1&bt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",9),t.DNE(3,Pt,0,0,"ng-template",10),t.k0s()()()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(3),t.Y8G("ngTemplateOutlet",Et.content)}}function wt(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,Be,4,4,"td",6,t.fX1),t.k0s(),t.j41(3,"tr",5),t.Z7z(4,vt,4,2,"td",6,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et),t.R7$(3),t.Dyx(Et)}}function Le(bt,At){if(1&bt&&t.Z7z(0,wt,6,0,null,null,t.fX1),2&bt){const Et=t.XpG(2);t.Dyx(Et.itemMatrix)}}function zt(bt,At){if(1&bt&&(t.qex(0),t.EFF(1),t.bVm()),2&bt){const Et=t.XpG().$implicit;t.R7$(),t.SpI(" ",Et.title," ")}}function xt(bt,At){if(1&bt&&(t.j41(0,"td",12),t.DNE(1,zt,2,1,"ng-container",4),t.k0s()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(),t.Y8G("nzStringTemplateOutlet",Et.title)}}function st(bt,At){}function Ct(bt,At){if(1&bt&&(t.j41(0,"td",11),t.DNE(1,st,0,0,"ng-template",10),t.k0s()),2&bt){const Et=At.$implicit;t.Y8G("colSpan",Et.span),t.R7$(),t.Y8G("ngTemplateOutlet",Et.content)}}function It(bt,At){if(1&bt&&(t.j41(0,"tr",5),t.Z7z(1,xt,2,2,"td",12,t.fX1),t.k0s(),t.j41(3,"tr",5),t.Z7z(4,Ct,2,2,"td",11,t.fX1),t.k0s()),2&bt){const Et=At.$implicit;t.R7$(),t.Dyx(Et),t.R7$(3),t.Dyx(Et)}}function Tt(bt,At){if(1&bt&&t.Z7z(0,It,6,0,null,null,t.fX1),2&bt){const Et=t.XpG(2);t.Dyx(Et.itemMatrix)}}function en(bt,At){if(1&bt&&t.DNE(0,Le,2,0)(1,Tt,2,0),2&bt){const Et=t.XpG();t.vxM(Et.nzBordered?1:0)}}let jt=(()=>{class bt{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new r.B}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}static#e=this.\u0275fac=function(Ot){return new(Ot||bt)};static#t=this.\u0275cmp=t.VBU({type:bt,selectors:[["nz-descriptions-item"]],viewQuery:function(Ot,Wt){if(1&Ot&&t.GBs(t.C4Q,7),2&Ot){let Ue;t.mGM(Ue=t.lsd())&&(Wt.content=Ue.first)}},inputs:{nzSpan:[2,"nzSpan","nzSpan",t.Udg],nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:ne,decls:1,vars:0,template:function(Ot,Wt){1&Ot&&(t.NAR(),t.DNE(0,J,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return bt})();const fn={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let Hn=(()=>{class bt{constructor(Et,Ot,Wt,Ue){this.nzConfigService=Et,this.cdr=Ot,this.breakpointService=Wt,this.directionality=Ue,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=fn,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=V.pt.md,this.destroy$=new r.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(Et=>{this.dir=Et})}ngOnChanges(Et){Et.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const Et=this.items.changes.pipe((0,L.Z)(this.items),(0,G.Q)(this.destroy$));(0,g.h)(Et,Et.pipe((0,B.n)(()=>(0,g.h)(...this.items.map(Ot=>Ot.inputChange$)).pipe((0,A.Z)(16)))),this.breakpointService.subscribe(V.fe).pipe((0,w.M)(Ot=>this.breakpoint=Ot))).pipe((0,G.Q)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let Et=[],Ot=0;const Wt=this.realColumn=this.getColumn(),Ue=this.items.toArray(),Ae=Ue.length,ie=[],_e=()=>{ie.push(Et),Et=[],Ot=0};for(let oe=0;oe=Wt?(Ot>Wt&&(0,F.R8)(`"nzColumn" is ${Wt} but we have row length ${Ot}`),Et.push({title:et,content:dt,span:Wt-(Ot-Kt)}),_e()):oe===Ae-1?(Et.push({title:et,content:dt,span:Wt-(Ot-Kt)}),_e()):Et.push({title:et,content:dt,span:Kt})}this.itemMatrix=ie}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}static#e=this.\u0275fac=function(Ot){return new(Ot||bt)(t.rXU(I.yx),t.rXU(t.gRc),t.rXU(V.jp),t.rXU(x.dS,8))};static#t=this.\u0275cmp=t.VBU({type:bt,selectors:[["nz-descriptions"]],contentQueries:function(Ot,Wt,Ue){if(1&Ot&&t.wni(Ue,jt,4),2&Ot){let Ae;t.mGM(Ae=t.lsd())&&(Wt.items=Ae)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(Ot,Wt){2&Ot&&t.AVh("ant-descriptions-bordered",Wt.nzBordered)("ant-descriptions-middle","middle"===Wt.nzSize)("ant-descriptions-small","small"===Wt.nzSize)("ant-descriptions-rtl","rtl"===Wt.dir)},inputs:{nzBordered:[2,"nzBordered","nzBordered",t.L39],nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:[2,"nzColon","nzColon",t.L39]},exportAs:["nzDescriptions"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:6,vars:3,consts:[[1,"ant-descriptions-header"],[1,"ant-descriptions-view"],[1,"ant-descriptions-title"],[1,"ant-descriptions-extra"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-row"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(Ot,Wt){1&Ot&&(t.DNE(0,me,3,2,"div",0),t.j41(1,"div",1)(2,"table")(3,"tbody"),t.DNE(4,Y,2,0)(5,en,2,1),t.k0s()()()),2&Ot&&(t.vxM(Wt.nzTitle||Wt.nzExtra?0:-1),t.R7$(4),t.vxM("horizontal"===Wt.nzLayout?4:-1),t.R7$(),t.vxM("vertical"===Wt.nzLayout?5:-1))},dependencies:[X.C,X.m,M.T3],encapsulation:2,changeDetection:0})}return(0,e.Cg)([(0,I.H4)()],bt.prototype,"nzBordered",void 0),(0,e.Cg)([(0,I.H4)()],bt.prototype,"nzColumn",void 0),(0,e.Cg)([(0,I.H4)()],bt.prototype,"nzSize",void 0),(0,e.Cg)([(0,I.H4)()],bt.prototype,"nzColon",void 0),bt})(),zn=(()=>{class bt{static#e=this.\u0275fac=function(Ot){return new(Ot||bt)};static#t=this.\u0275mod=t.$C({type:bt});static#n=this.\u0275inj=t.G2t({imports:[Hn]})}return bt})()},9448:(Rt,De,c)=>{c.d(De,{g:()=>G,j:()=>M});var t=c(3953),r=c(7806);function g(L,B){if(1&L&&(t.qex(0),t.EFF(1),t.bVm()),2&L){const A=t.XpG(2);t.R7$(),t.JRh(A.nzText)}}function e(L,B){if(1&L&&(t.j41(0,"span",0),t.DNE(1,g,2,1,"ng-container",1),t.k0s()),2&L){const A=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",A.nzText)}}let M=(()=>{class L{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275cmp=t.VBU({type:L,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(w,I){2&w&&t.AVh("ant-divider-horizontal","horizontal"===I.nzType)("ant-divider-vertical","vertical"===I.nzType)("ant-divider-with-text",I.nzText)("ant-divider-plain",I.nzPlain)("ant-divider-with-text-left",I.nzText&&"left"===I.nzOrientation)("ant-divider-with-text-right",I.nzText&&"right"===I.nzOrientation)("ant-divider-with-text-center",I.nzText&&"center"===I.nzOrientation)("ant-divider-dashed",I.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:[2,"nzDashed","nzDashed",t.L39],nzPlain:[2,"nzPlain","nzPlain",t.L39]},exportAs:["nzDivider"],standalone:!0,features:[t.GFd,t.aNF],decls:1,vars:1,consts:[[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(w,I){1&w&&t.DNE(0,e,2,1,"span",0),2&w&&t.vxM(I.nzText?0:-1)},dependencies:[r.C,r.m],encapsulation:2,changeDetection:0})}return L})(),G=(()=>{class L{static#e=this.\u0275fac=function(w){return new(w||L)};static#t=this.\u0275mod=t.$C({type:L});static#n=this.\u0275inj=t.G2t({imports:[M]})}return L})()},2602:(Rt,De,c)=>{c.d(De,{Cu:()=>Le,h4:()=>vt,j3:()=>se,wQ:()=>wt});var t=c(4707),r=c(7336),g=c(6939),e=c(3953),M=c(1413),G=c(4412),L=c(7786),B=c(3726),A=c(983),w=c(4572),I=c(3703),F=c(6354),X=c(5558),V=c(5964),x=c(3798),ne=c(3294),J=c(6977),be=c(6042),Oe=c(5463),he=c(7987),Ie=c(6860),me=c(1868),de=c(513),H=c(177),z=c(713),Z=c(6841),pe=c(8203);const E=["*"];function S(st,Ct){if(1&st){const It=e.RV6();e.j41(0,"div",0),e.bIt("@slideMotion.done",function(en){e.eBV(It);const jt=e.XpG();return e.Njj(jt.onAnimationEvent(en))})("mouseenter",function(){e.eBV(It);const en=e.XpG();return e.Njj(en.setMouseState(!0))})("mouseleave",function(){e.eBV(It);const en=e.XpG();return e.Njj(en.setMouseState(!1))}),e.SdG(1),e.k0s()}if(2&st){const It=e.XpG();e.AVh("ant-dropdown-rtl","rtl"===It.dir),e.Y8G("ngClass",It.nzOverlayClassName)("ngStyle",It.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",!(null==It.noAnimation||!It.noAnimation.nzNoAnimation))("nzNoAnimation",null==It.noAnimation?null:It.noAnimation.nzNoAnimation)}}const Y=[Oe.pn.bottomLeft,Oe.pn.bottomRight,Oe.pn.topRight,Oe.pn.topLeft];let se=(()=>{class st{setDropdownMenuValue(It,Tt){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(It,Tt)}constructor(It,Tt,en,jt,Vt,fn){this.nzConfigService=It,this.elementRef=Tt,this.overlay=en,this.renderer=jt,this.viewContainerRef=Vt,this.platform=fn,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new M.B,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new G.t(!1),this.nzTrigger$=new G.t("hover"),this.overlayClose$=new M.B,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new e.bkB}ngAfterViewInit(){if(this.nzDropdownMenu){const It=this.elementRef.nativeElement,Tt=(0,L.h)((0,B.R)(It,"mouseenter").pipe((0,I.u)(!0)),(0,B.R)(It,"mouseleave").pipe((0,I.u)(!1))),jt=(0,L.h)(this.nzDropdownMenu.mouseState$,Tt),Vt=(0,B.R)(It,"click").pipe((0,F.T)(()=>!this.nzVisible)),fn=this.nzTrigger$.pipe((0,X.n)(At=>"hover"===At?jt:"click"===At?Vt:A.w)),Hn=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,V.p)(()=>this.nzClickHide),(0,I.u)(!1)),zn=(0,L.h)(fn,Hn,this.overlayClose$).pipe((0,V.p)(()=>!this.nzDisabled)),bt=(0,L.h)(this.inputVisible$,zn);(0,w.z)([bt,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,F.T)(([At,Et])=>At||Et),(0,x.Z)(150),(0,ne.F)(),(0,V.p)(()=>this.platform.isBrowser),(0,J.Q)(this.destroy$)).subscribe(At=>{const Ot=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:It).getBoundingClientRect().width;this.nzVisible!==At&&this.nzVisibleChange.emit(At),this.nzVisible=At,At?(this.overlayRef?this.overlayRef.getConfig().minWidth=Ot:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:Ot,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,L.h)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,V.p)(Wt=>!this.elementRef.nativeElement.contains(Wt.target))),this.overlayRef.keydownEvents().pipe((0,V.p)(Wt=>Wt.keyCode===r._f&&!(0,r.rp)(Wt)))).pipe((0,J.Q)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([Oe.pn[this.nzPlacement],...Y]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new g.VA(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,J.Q)(this.destroy$)).subscribe(At=>{"void"===At.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(It){const{nzVisible:Tt,nzDisabled:en,nzOverlayClassName:jt,nzOverlayStyle:Vt,nzTrigger:fn}=It;if(fn&&this.nzTrigger$.next(this.nzTrigger),Tt&&this.inputVisible$.next(this.nzVisible),en){const Hn=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Hn,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Hn,"disabled")}jt&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Vt&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(be.yx),e.rXU(e.aKT),e.rXU(he.hJ),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(Ie.OD))};static#t=this.\u0275dir=e.FsC({type:st,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:[2,"nzBackdrop","nzBackdrop",e.L39],nzClickHide:[2,"nzClickHide","nzClickHide",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzVisible:[2,"nzVisible","nzVisible",e.L39],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],standalone:!0,features:[e.GFd,e.OA$]})}return(0,t.Cg)([(0,be.H4)()],st.prototype,"nzBackdrop",void 0),st})(),Be=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=e.$C({type:st});static#n=this.\u0275inj=e.G2t({})}return st})(),vt=(()=>{class st{constructor(It,Tt,en){this.renderer=It,this.nzButtonGroupComponent=Tt,this.elementRef=en}ngAfterViewInit(){const It=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&It&&this.renderer.addClass(It,"ant-dropdown-button")}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(e.sFG),e.rXU(de.dn,9),e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:st,selectors:[["","nz-button","","nz-dropdown",""]],standalone:!0})}return st})(),wt=(()=>{class st{onAnimationEvent(It){this.animationStateChange$.emit(It)}setMouseState(It){this.mouseState$.next(It)}setValue(It,Tt){this[It]=Tt,this.cdr.markForCheck()}constructor(It,Tt,en,jt,Vt,fn,Hn){this.cdr=It,this.elementRef=Tt,this.renderer=en,this.viewContainerRef=jt,this.nzMenuService=Vt,this.directionality=fn,this.noAnimation=Hn,this.mouseState$=new G.t(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new e.bkB,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new M.B}ngOnInit(){this.directionality.change?.pipe((0,J.Q)(this.destroy$)).subscribe(It=>{this.dir=It,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Tt){return new(Tt||st)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(me.$1),e.rXU(pe.dS,8),e.rXU(Z.z,9))};static#t=this.\u0275cmp=e.VBU({type:st,selectors:[["nz-dropdown-menu"]],viewQuery:function(Tt,en){if(1&Tt&&e.GBs(e.C4Q,7),2&Tt){let jt;e.mGM(jt=e.lsd())&&(en.templateRef=jt.first)}},exportAs:["nzDropdownMenu"],standalone:!0,features:[e.Jv_([me.$1,{provide:me.ek,useValue:!0}]),e.aNF],ngContentSelectors:E,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","ngClass","ngStyle","nzNoAnimation"]],template:function(Tt,en){1&Tt&&(e.NAR(),e.DNE(0,S,2,7,"ng-template"))},dependencies:[H.YU,H.B3,Z.z],encapsulation:2,data:{animation:[z.U1]},changeDetection:0})}return st})(),Le=(()=>{class st{static#e=this.\u0275fac=function(Tt){return new(Tt||st)};static#t=this.\u0275mod=e.$C({type:st});static#n=this.\u0275inj=e.G2t({imports:[Be,me.GP]})}return st})();new he.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new he.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new he.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new he.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},1672:(Rt,De,c)=>{c.d(De,{E8:()=>Be,RW:()=>Y,_v:()=>Pt});var t=c(6939),r=c(3953),g=c(1413),e=c(6977),M=c(9172),G=c(7806),L=c(1377),B=c(6042);function A(vt,wt){if(1&vt&&(r.qex(0),r.nrm(1,"img",4),r.bVm()),2&vt){const Le=r.XpG(2);r.R7$(),r.Y8G("src",Le.nzNotFoundImage,r.B4B)("alt",Le.isContentString?Le.nzNotFoundContent:"empty")}}function w(vt,wt){if(1&vt&&r.DNE(0,A,2,2,"ng-container",3),2&vt){const Le=r.XpG();r.Y8G("nzStringTemplateOutlet",Le.nzNotFoundImage)}}function I(vt,wt){1&vt&&r.nrm(0,"nz-empty-simple")}function F(vt,wt){1&vt&&r.nrm(0,"nz-empty-default")}function X(vt,wt){if(1&vt&&r.DNE(0,I,1,0,"nz-empty-simple")(1,F,1,0,"nz-empty-default"),2&vt){const Le=r.XpG();r.vxM("simple"===Le.nzNotFoundImage?0:1)}}function V(vt,wt){if(1&vt&&(r.qex(0),r.EFF(1),r.bVm()),2&vt){const Le=r.XpG(2);r.R7$(),r.SpI(" ",Le.isContentString?Le.nzNotFoundContent:Le.locale.description," ")}}function x(vt,wt){if(1&vt&&(r.j41(0,"p",1),r.DNE(1,V,2,1,"ng-container",3),r.k0s()),2&vt){const Le=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",Le.nzNotFoundContent)}}function ne(vt,wt){if(1&vt&&(r.qex(0),r.EFF(1),r.bVm()),2&vt){const Le=r.XpG(2);r.R7$(),r.SpI(" ",Le.nzNotFoundFooter," ")}}function J(vt,wt){if(1&vt&&(r.j41(0,"div",2),r.DNE(1,ne,2,1,"ng-container",3),r.k0s()),2&vt){const Le=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",Le.nzNotFoundFooter)}}function be(vt,wt){if(1&vt&&r.EFF(0),2&vt){const Le=r.XpG(2);r.SpI(" ",Le.content," ")}}function Oe(vt,wt){}function he(vt,wt){if(1&vt&&r.DNE(0,Oe,0,0,"ng-template",0),2&vt){const Le=r.XpG(2);r.Y8G("cdkPortalOutlet",Le.contentPortal)}}function Ie(vt,wt){if(1&vt&&r.DNE(0,be,1,1)(1,he,1,1,null,0),2&vt){const Le=r.XpG();r.vxM("string"===Le.contentType?0:1)}}function me(vt,wt){1&vt&&r.nrm(0,"nz-empty",1)}function de(vt,wt){1&vt&&r.nrm(0,"nz-empty",2)}function H(vt,wt){1&vt&&r.nrm(0,"nz-empty")}function z(vt,wt){if(1&vt&&r.DNE(0,me,1,0,"nz-empty",1)(1,de,1,0,"nz-empty",2)(2,H,1,0,"nz-empty"),2&vt){let Le;const zt=r.XpG(2);r.vxM("normal"===(Le=zt.size)?0:"small"===Le?1:2)}}function Z(vt,wt){if(1&vt&&r.DNE(0,z,3,1),2&vt){const Le=r.XpG();r.vxM(null!==Le.specificContent?0:-1)}}const pe=new r.nKC("nz-empty-component-name");let E=(()=>{class vt{static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275cmp=r.VBU({type:vt,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],standalone:!0,features:[r.aNF],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(zt,xt){1&zt&&(r.qSk(),r.j41(0,"svg",0)(1,"g",1)(2,"g",2),r.nrm(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),r.k0s(),r.nrm(8,"path",8),r.j41(9,"g",9),r.nrm(10,"ellipse",10)(11,"path",11),r.k0s()()())},encapsulation:2,changeDetection:0})}return vt})(),S=(()=>{class vt{static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275cmp=r.VBU({type:vt,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],standalone:!0,features:[r.aNF],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(zt,xt){1&zt&&(r.qSk(),r.j41(0,"svg",0)(1,"g",1),r.nrm(2,"ellipse",2),r.j41(3,"g",3),r.nrm(4,"path",4)(5,"path",5),r.k0s()()())},encapsulation:2,changeDetection:0})}return vt})();const R=["default","simple"];let Y=(()=>{class vt{constructor(Le,zt){this.i18n=Le,this.cdr=zt,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new g.B}ngOnChanges(Le){const{nzNotFoundContent:zt,nzNotFoundImage:xt}=Le;if(zt&&(this.isContentString="string"==typeof zt.currentValue),xt){const st=xt.currentValue||"default";this.isImageBuildIn=R.findIndex(Ct=>Ct===st)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(zt){return new(zt||vt)(r.rXU(L.Og),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:vt,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],standalone:!0,features:[r.OA$,r.aNF],decls:5,vars:3,consts:[[1,"ant-empty-image"],[1,"ant-empty-description"],[1,"ant-empty-footer"],[4,"nzStringTemplateOutlet"],[3,"src","alt"]],template:function(zt,xt){1&zt&&(r.j41(0,"div",0),r.DNE(1,w,1,1,"ng-container")(2,X,2,1),r.k0s(),r.DNE(3,x,2,1,"p",1)(4,J,2,1,"div",2)),2&zt&&(r.R7$(),r.vxM(xt.isImageBuildIn?2:1),r.R7$(2),r.vxM(null!==xt.nzNotFoundContent?3:-1),r.R7$(),r.vxM(xt.nzNotFoundFooter?4:-1))},dependencies:[G.C,G.m,E,S],encapsulation:2,changeDetection:0})}return vt})(),Be=(()=>{class vt{constructor(Le,zt,xt,st){this.configService=Le,this.viewContainerRef=zt,this.cdr=xt,this.injector=st,this.contentType="string",this.size="",this.destroy$=new g.B}ngOnChanges(Le){Le.nzComponentName&&(this.size=function se(vt){switch(vt){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(Le.nzComponentName.currentValue)),Le.specificContent&&!Le.specificContent.isFirstChange()&&(this.content=Le.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const Le=this.content;if("string"==typeof Le)this.contentType="string";else if(Le instanceof r.C4Q){const zt={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.VA(Le,this.viewContainerRef,zt)}else if(Le instanceof r.ZUJ){const zt=r.zZn.create({parent:this.injector,providers:[{provide:pe,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.A8(Le,this.viewContainerRef,zt)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,M.Z)(!0),(0,e.Q)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}static#e=this.\u0275fac=function(zt){return new(zt||vt)(r.rXU(B.yx),r.rXU(r.c1b),r.rXU(r.gRc),r.rXU(r.zZn))};static#t=this.\u0275cmp=r.VBU({type:vt,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],standalone:!0,features:[r.OA$,r.aNF],decls:2,vars:1,consts:[[3,"cdkPortalOutlet"],["nzNotFoundImage","simple",1,"ant-empty-normal"],["nzNotFoundImage","simple",1,"ant-empty-small"]],template:function(zt,xt){1&zt&&r.DNE(0,Ie,2,1)(1,Z,1,1),2&zt&&r.vxM(xt.content?0:1)},dependencies:[Y,t.jc,t.I3],encapsulation:2,changeDetection:0})}return vt})(),Pt=(()=>{class vt{static#e=this.\u0275fac=function(zt){return new(zt||vt)};static#t=this.\u0275mod=r.$C({type:vt});static#n=this.\u0275inj=r.G2t({imports:[Y,Be]})}return vt})()},8927:(Rt,De,c)=>{c.d(De,{CA:()=>Pt,Ls:()=>Y,Mo:()=>Le,PQ:()=>st,zS:()=>vt});var t=c(3953),r=c(7529),g=c(177),e=c(9417),M=c(1413),G=c(8359),L=c(5964),B=c(6354),A=c(6977),w=c(9172),I=c(8141),F=c(713),X=c(7891),V=c(7806),x=c(317),ne=c(1377),J=c(4707),be=c(6042),Oe=c(8203),he=c(5103),Ie=c(5154);const me=["*"],de=Ct=>[Ct],H=Ct=>({$implicit:Ct});function z(Ct,It){if(1&Ct&&(t.qex(0),t.EFF(1),t.bVm()),2&Ct){const Tt=t.XpG(2);t.R7$(),t.JRh(Tt.innerTip)}}function Z(Ct,It){if(1&Ct&&(t.j41(0,"div",2)(1,"div",4),t.DNE(2,z,2,1,"ng-container",5),t.k0s()()),2&Ct){const Tt=t.XpG();t.Y8G("@helpMotion",void 0),t.R7$(),t.Y8G("ngClass",t.eq3(4,de,"ant-form-item-explain-"+Tt.status)),t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.innerTip)("nzStringTemplateOutletContext",t.eq3(6,H,Tt.validateControl))}}function pe(Ct,It){if(1&Ct&&(t.qex(0),t.EFF(1),t.bVm()),2&Ct){const Tt=t.XpG(2);t.R7$(),t.JRh(Tt.nzExtra)}}function E(Ct,It){if(1&Ct&&(t.j41(0,"div",3),t.DNE(1,pe,2,1,"ng-container",6),t.k0s()),2&Ct){const Tt=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.nzExtra)}}function S(Ct,It){if(1&Ct&&(t.qex(0),t.nrm(1,"span",2),t.bVm()),2&Ct){const Tt=It.$implicit,en=t.XpG(2);t.R7$(),t.Y8G("nzType",Tt)("nzTheme",en.tooltipIcon.theme)}}function R(Ct,It){if(1&Ct&&(t.j41(0,"span",0),t.DNE(1,S,2,2,"ng-container",1),t.k0s()),2&Ct){const Tt=t.XpG();t.Y8G("nzTooltipTitle",Tt.nzTooltipTitle),t.R7$(),t.Y8G("nzStringTemplateOutlet",Tt.tooltipIcon.type)}}let Y=(()=>{class Ct{setWithHelpViaTips(Tt){this.withHelpClass=Tt,this.cdr.markForCheck()}setStatus(Tt){this.status=Tt,this.cdr.markForCheck()}setHasFeedback(Tt){this.hasFeedback=Tt,this.cdr.markForCheck()}constructor(Tt){this.cdr=Tt,this.status="",this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new M.B}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(en,jt){2&en&&t.AVh("ant-form-item-has-success","success"===jt.status)("ant-form-item-has-warning","warning"===jt.status)("ant-form-item-has-error","error"===jt.status)("ant-form-item-is-validating","validating"===jt.status)("ant-form-item-has-feedback",jt.hasFeedback&&jt.status)("ant-form-item-with-help",jt.withHelpClass)},exportAs:["nzFormItem"],standalone:!0,features:[t.aNF],ngContentSelectors:me,decls:1,vars:0,template:function(en,jt){1&en&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return Ct})();const Be={type:"question-circle",theme:"outline"};let Pt=(()=>{class Ct{getInputObservable(Tt){return this.inputChanges$.pipe((0,L.p)(en=>Tt in en),(0,B.T)(en=>en[Tt]))}constructor(Tt,en){this.nzConfigService=Tt,this.directionality=en,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=Be,this.nzLabelAlign="right",this.nzLabelWrap=!1,this.dir="ltr",this.destroy$=new M.B,this.inputChanges$=new M.B,this.dir=this.directionality.value,this.directionality.change?.pipe((0,A.Q)(this.destroy$)).subscribe(jt=>{this.dir=jt})}ngOnChanges(Tt){this.inputChanges$.next(Tt)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(be.yx),t.rXU(Oe.dS,8))};static#t=this.\u0275dir=t.FsC({type:Ct,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(en,jt){2&en&&t.AVh("ant-form-horizontal","horizontal"===jt.nzLayout)("ant-form-vertical","vertical"===jt.nzLayout)("ant-form-inline","inline"===jt.nzLayout)("ant-form-rtl","rtl"===jt.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:[2,"nzNoColon","nzNoColon",t.L39],nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",t.L39],nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",t.L39]},exportAs:["nzForm"],standalone:!0,features:[t.GFd,t.OA$]})}return(0,J.Cg)([(0,be.H4)()],Ct.prototype,"nzNoColon",void 0),(0,J.Cg)([(0,be.H4)()],Ct.prototype,"nzAutoTips",void 0),(0,J.Cg)([(0,be.H4)()],Ct.prototype,"nzTooltipIcon",void 0),(0,J.Cg)([(0,be.H4)()],Ct.prototype,"nzLabelWrap",void 0),Ct})(),vt=(()=>{class Ct{get disableAutoTips(){return void 0!==this.nzDisableAutoTips?(0,x.G4)(this.nzDisableAutoTips):this.nzFormDirective?.nzDisableAutoTips}set nzHasFeedback(Tt){this._hasFeedback=Tt,this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(Tt){Tt instanceof e.EL||Tt instanceof e.vS?(this.validateControl=Tt,this.validateString=null,this.watchControl()):Tt instanceof e.JD?(this.validateControl=Tt.control,this.validateString=null,this.watchControl()):(this.validateString=Tt,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,w.Z)(null),(0,A.Q)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.innerTip=this.getInnerTip(this.status),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this.nzHasFeedback}),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(Tt){let en;return en="warning"===Tt||this.validateControlStatus("INVALID","warning")?"warning":"error"===Tt||this.validateControlStatus("INVALID")?"error":"validating"===Tt||"pending"===Tt||this.validateControlStatus("PENDING")?"validating":"success"===Tt||this.validateControlStatus("VALID")?"success":"",en}validateControlStatus(Tt,en){if(this.validateControl){const{dirty:jt,touched:Vt,status:fn}=this.validateControl;return(!!jt||!!Vt)&&(en?this.validateControl.hasError(en):fn===Tt)}return!1}getInnerTip(Tt){switch(Tt){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){if(this.validateControl){const Tt=this.validateControl.errors||{};let en="";for(const jt in Tt)if(Tt.hasOwnProperty(jt)&&(en=Tt[jt]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[jt]??this.nzAutoTips.default?.[jt]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[jt]??this.nzFormDirective?.nzAutoTips.default?.[jt]),en)break;this.autoErrorTip=en}}subscribeAutoTips(Tt){Tt?.pipe((0,A.Q)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}constructor(Tt,en,jt,Vt,fn){this.nzFormItemComponent=Tt,this.cdr=en,this.nzFormDirective=Vt,this.nzFormStatusService=fn,this._hasFeedback=!1,this.validateChanges=G.yU.EMPTY,this.validateString=null,this.destroyed$=new M.B,this.status="",this.validateControl=null,this.innerTip=null,this.nzAutoTips={},this.subscribeAutoTips(jt.localeChange.pipe((0,I.M)(Hn=>this.localeId=Hn.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe((0,L.p)(()=>void 0===this.nzDisableAutoTips)))}ngOnChanges(Tt){const{nzDisableAutoTips:en,nzAutoTips:jt,nzSuccessTip:Vt,nzWarningTip:fn,nzErrorTip:Hn,nzValidatingTip:zn}=Tt;en||jt?(this.updateAutoErrorTip(),this.setStatus()):(Vt||fn||Hn||zn)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof e.l_?this.defaultValidateControl.control:this.defaultValidateControl)}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(Y,9),t.rXU(t.gRc),t.rXU(ne.Og),t.rXU(Pt,8),t.rXU(X.is))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-control"]],contentQueries:function(en,jt,Vt){if(1&en&&t.wni(Vt,e.vO,5),2&en){let fn;t.mGM(fn=t.lsd())&&(jt.defaultValidateControl=fn.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",t.L39],nzHasFeedback:[2,"nzHasFeedback","nzHasFeedback",t.L39],nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],standalone:!0,features:[t.Jv_([X.is]),t.GFd,t.OA$,t.aNF],ngContentSelectors:me,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],[1,"ant-form-item-extra"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[4,"nzStringTemplateOutlet"]],template:function(en,jt){1&en&&(t.NAR(),t.j41(0,"div",0)(1,"div",1),t.SdG(2),t.k0s()(),t.DNE(3,Z,3,8,"div",2)(4,E,2,1,"div",3)),2&en&&(t.R7$(3),t.vxM(jt.innerTip?3:-1),t.R7$(),t.vxM(jt.nzExtra?4:-1))},dependencies:[g.YU,V.C,V.m],encapsulation:2,data:{animation:[F.W4]},changeDetection:0})}return Ct})();function wt(Ct){return{...Be,..."string"==typeof Ct?{type:Ct}:Ct}}let Le=(()=>{class Ct{set nzNoColon(Tt){this.noColon=Tt}get nzNoColon(){return"default"!==this.noColon?this.noColon:this.nzFormDirective?.nzNoColon}set nzTooltipIcon(Tt){this._tooltipIcon=wt(Tt)}get tooltipIcon(){return"default"!==this._tooltipIcon?this._tooltipIcon:wt(this.nzFormDirective?.nzTooltipIcon||Be)}set nzLabelAlign(Tt){this.labelAlign=Tt}get nzLabelAlign(){return"default"!==this.labelAlign?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}set nzLabelWrap(Tt){this.labelWrap=Tt}get nzLabelWrap(){return"default"!==this.labelWrap?this.labelWrap:this.nzFormDirective?.nzLabelWrap}constructor(Tt,en){this.cdr=Tt,this.nzFormDirective=en,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.labelAlign="default",this.labelWrap="default",this.destroy$=new M.B,this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,L.p)(()=>"default"===this.noColon),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,L.p)(()=>"default"===this._tooltipIcon),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe((0,L.p)(()=>"default"===this.labelAlign),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe((0,L.p)(()=>"default"===this.labelWrap),(0,A.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(en){return new(en||Ct)(t.rXU(t.gRc),t.rXU(Pt,12))};static#t=this.\u0275cmp=t.VBU({type:Ct,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(en,jt){2&en&&t.AVh("ant-form-item-label-left","left"===jt.nzLabelAlign)("ant-form-item-label-wrap",jt.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:[2,"nzRequired","nzRequired",t.L39],nzNoColon:[2,"nzNoColon","nzNoColon",t.L39],nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",t.L39]},exportAs:["nzFormLabel"],standalone:!0,features:[t.GFd,t.aNF],ngContentSelectors:me,decls:3,vars:6,consts:[["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(en,jt){1&en&&(t.NAR(),t.j41(0,"label"),t.SdG(1),t.DNE(2,R,2,2,"span",0),t.k0s()),2&en&&(t.AVh("ant-form-item-no-colon",jt.nzNoColon)("ant-form-item-required",jt.nzRequired),t.BMQ("for",jt.nzFor),t.R7$(2),t.vxM(jt.nzTooltipTitle?2:-1))},dependencies:[V.C,V.m,Ie.LH,he.Y3,he.Dn],encapsulation:2,changeDetection:0})}return Ct})(),st=(()=>{class Ct{static#e=this.\u0275fac=function(en){return new(en||Ct)};static#t=this.\u0275mod=t.$C({type:Ct});static#n=this.\u0275inj=t.G2t({imports:[Le,vt,r.f3]})}return Ct})()},7529:(Rt,De,c)=>{c.d(De,{Uq:()=>I,e:()=>w,f3:()=>F});var t=c(3953),r=c(2771),g=c(1413),e=c(6977),M=c(1025),G=c(9327),L=c(6860),B=c(8203),A=c(317);let w=(()=>{class X{getGutter(){const x=[null,null],ne=this.nzGutter||0;return(Array.isArray(ne)?ne:[ne,null]).forEach((be,Oe)=>{"object"==typeof be&&null!==be?(x[Oe]=null,Object.keys(M.fe).map(he=>{const Ie=he;this.mediaMatcher.matchMedia(M.fe[Ie]).matches&&be[Ie]&&(x[Oe]=be[Ie])})):x[Oe]=Number(be)||null}),x}setGutterStyle(){const[x,ne]=this.getGutter();this.actualGutter$.next([x,ne]);const J=(be,Oe)=>{null!==Oe&&this.renderer.setStyle(this.elementRef.nativeElement,be,`-${Oe/2}px`)};J("margin-left",x),J("margin-right",x),J("margin-top",ne),J("margin-bottom",ne)}constructor(x,ne,J,be,Oe,he,Ie){this.elementRef=x,this.renderer=ne,this.mediaMatcher=J,this.ngZone=be,this.platform=Oe,this.breakpointService=he,this.directionality=Ie,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new r.m(1),this.dir="ltr",this.destroy$=new g.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(x=>{this.dir=x}),this.setGutterStyle()}ngOnChanges(x){x.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(M.fe).pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(ne){return new(ne||X)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(G.DY),t.rXU(t.SKi),t.rXU(L.OD),t.rXU(M.jp),t.rXU(B.dS,8))};static#t=this.\u0275dir=t.FsC({type:X,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(ne,J){2&ne&&t.AVh("ant-row-top","top"===J.nzAlign)("ant-row-middle","middle"===J.nzAlign)("ant-row-bottom","bottom"===J.nzAlign)("ant-row-start","start"===J.nzJustify)("ant-row-end","end"===J.nzJustify)("ant-row-center","center"===J.nzJustify)("ant-row-space-around","space-around"===J.nzJustify)("ant-row-space-between","space-between"===J.nzJustify)("ant-row-space-evenly","space-evenly"===J.nzJustify)("ant-row-rtl","rtl"===J.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],standalone:!0,features:[t.OA$]})}return X})(),I=(()=>{class X{setHostClassMap(){const x={"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,A.n9)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,A.n9)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,A.n9)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,A.n9)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,A.n9)(this.nzPush),"ant-col-rtl":"rtl"===this.dir,...this.generateClass()};for(const ne in this.classMap)this.classMap.hasOwnProperty(ne)&&this.renderer.removeClass(this.elementRef.nativeElement,ne);this.classMap={...x};for(const ne in this.classMap)this.classMap.hasOwnProperty(ne)&&this.classMap[ne]&&this.renderer.addClass(this.elementRef.nativeElement,ne)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(x){return"number"==typeof x?`${x} ${x} auto`:"string"==typeof x&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(x)?`0 0 ${x}`:x}generateClass(){const ne={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(J=>{const be=J.replace("nz","").toLowerCase();if((0,A.n9)(this[J]))if("number"==typeof this[J]||"string"==typeof this[J])ne[`ant-col-${be}-${this[J]}`]=!0;else{const Oe=this[J];["span","pull","push","offset","order"].forEach(Ie=>{ne[`ant-col-${be}${"span"===Ie?"-":`-${Ie}-`}${Oe[Ie]}`]=Oe&&(0,A.n9)(Oe[Ie])})}}),ne}constructor(x,ne,J,be){this.elementRef=x,this.nzRowDirective=ne,this.renderer=J,this.directionality=be,this.classMap={},this.destroy$=new g.B,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(x=>{this.dir=x,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(x){this.setHostClassMap();const{nzFlex:ne}=x;ne&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,e.Q)(this.destroy$)).subscribe(([x,ne])=>{const J=(be,Oe)=>{null!==Oe&&this.renderer.setStyle(this.elementRef.nativeElement,be,Oe/2+"px")};J("padding-left",x),J("padding-right",x),J("padding-top",ne),J("padding-bottom",ne)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(ne){return new(ne||X)(t.rXU(t.aKT),t.rXU(w,9),t.rXU(t.sFG),t.rXU(B.dS,8))};static#t=this.\u0275dir=t.FsC({type:X,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(ne,J){2&ne&&t.xc7("flex",J.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],standalone:!0,features:[t.OA$]})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=t.$C({type:X});static#n=this.\u0275inj=t.G2t({})}return X})()},1377:(Rt,De,c)=>{c.d(De,{Bh:()=>e,Og:()=>A,Vc:()=>w,_N:()=>G,bP:()=>I});var t=c(3953),r=c(4412),g=c(3451),e={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},TimePicker:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Calendar:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},timePickerLocale:{placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",selectNone:"Clear all data"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Image:{preview:"Preview"},CronExpression:{cronError:"Invalid cron expression",second:"second",minute:"minute",hour:"hour",day:"day",month:"month",week:"week"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},M={locale:"zh-cn",Pagination:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},DatePicker:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeQuarterPlaceholder:["\u5f00\u59cb\u5b63\u5ea6","\u7ed3\u675f\u5b63\u5ea6"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},TimePicker:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},Calendar:{lang:{placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"],locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"},timePickerLocale:{placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},global:{placeholder:"\u8bf7\u9009\u62e9"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7b5b\u9009\u9879\u4e2d\u641c\u7d22",selectNone:"\u6e05\u7a7a\u6240\u6709"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00"},PageHeader:{back:"\u8fd4\u56de"},Image:{preview:"\u9884\u89c8"},CronExpression:{cronError:"cron \u8868\u8fbe\u5f0f\u4e0d\u5408\u6cd5",second:"\u79d2",minute:"\u5206\u949f",hour:"\u5c0f\u65f6",day:"\u65e5",month:"\u6708",week:"\u5468"},QRCode:{expired:"\u4e8c\u7ef4\u7801\u8fc7\u671f",refresh:"\u70b9\u51fb\u5237\u65b0",scanned:"\u5df2\u626b\u63cf"}};const G=new t.nKC("nz-i18n"),B=new t.nKC("nz-date-locale");let A=(()=>{class Qe{get localeChange(){return this._change.asObservable()}constructor(Je,re){this._change=new r.t(this._locale),this.setLocale(Je||M),this.setDateLocale(re||null)}translate(Je,re){let ze=this._getObjectPath(this._locale,Je);return"string"==typeof ze?(re&&Object.keys(re).forEach(gt=>ze=ze.replace(new RegExp(`%${gt}%`,"g"),re[gt])),ze):Je}setLocale(Je){this._locale&&this._locale.locale===Je.locale||(this._locale=Je,this._change.next(Je))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(Je){this.dateLocale=Je}getDateLocale(){return this.dateLocale}getLocaleData(Je,re){const ze=Je?this._getObjectPath(this._locale,Je):this._locale;return!ze&&!re&&(0,g.R8)(`Missing translations for "${Je}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),ze||re||this._getObjectPath(e,Je)||{}}_getObjectPath(Je,re){let ze=Je;const gt=re.split("."),Ke=gt.length;let Pe=0;for(;ze&&Pe{class Qe{constructor(Je){this._locale=Je}transform(Je,re){return this._locale.translate(Je,re)}static#e=this.\u0275fac=function(re){return new(re||Qe)(t.rXU(A,16))};static#t=this.\u0275pipe=t.EJ8({name:"nzI18n",type:Qe,pure:!0,standalone:!0})}return Qe})(),I=(()=>{class Qe{static#e=this.\u0275fac=function(re){return new(re||Qe)};static#t=this.\u0275mod=t.$C({type:Qe});static#n=this.\u0275inj=t.G2t({})}return Qe})();new t.nKC("date-config")},5103:(Rt,De,c)=>{c.d(De,{Dn:()=>Pe,Y3:()=>Re,Rt:()=>ze});var t=c(3953),r=c(1413),g=c(2806),e=c(6977),M=c(4709),G=c(4215),L=2,B=.16,A=.05,w=.05,I=.15,F=5,X=4,V=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function x($){var ve=(0,M.wE)($.r,$.g,$.b);return{h:360*ve.h,s:ve.s,v:ve.v}}function ne($){return"#".concat((0,M.Ob)($.r,$.g,$.b,!1))}function be($,ce,N){var ke;return(ke=Math.round($.h)>=60&&Math.round($.h)<=240?N?Math.round($.h)-L*ce:Math.round($.h)+L*ce:N?Math.round($.h)+L*ce:Math.round($.h)-L*ce)<0?ke+=360:ke>=360&&(ke-=360),ke}function Oe($,ce,N){return 0===$.h&&0===$.s?$.s:((ke=N?$.s-B*ce:ce===X?$.s+B:$.s+A*ce)>1&&(ke=1),N&&ce===F&&ke>.1&&(ke=.1),ke<.06&&(ke=.06),Number(ke.toFixed(2)));var ke}function he($,ce,N){var ke;return(ke=N?$.v+w*ce:$.v-I*ce)>1&&(ke=1),Number(ke.toFixed(2))}function Ie($){for(var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},N=[],ke=(0,G.RO)($),ve=F;ve>0;ve-=1){var K=x(ke),U=ne((0,G.RO)({h:be(K,ve,!0),s:Oe(K,ve,!0),v:he(K,ve,!0)}));N.push(U)}N.push(ne(ke));for(var ge=1;ge<=X;ge+=1){var qe=x(ke),rt=ne((0,G.RO)({h:be(qe,ge),s:Oe(qe,ge),v:he(qe,ge)}));N.push(rt)}return"dark"===ce.theme?V.map(function(Ft){var rn=Ft.index,Cn=Ft.opacity,Zn=ne(function J($,ce,N){var ke=N/100;return{r:(ce.r-$.r)*ke+$.r,g:(ce.g-$.g)*ke+$.g,b:(ce.b-$.b)*ke+$.b}}((0,G.RO)(ce.backgroundColor||"#141414"),(0,G.RO)(N[rn]),100*Cn));return Zn}):N}var me={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},de={},H={};Object.keys(me).forEach(function($){de[$]=Ie(me[$]),de[$].primary=de[$][5],H[$]=Ie(me[$],{theme:"dark",backgroundColor:"#141414"}),H[$].primary=H[$][5]});var xt=c(177),st=c(1626),Ct=c(7673),It=c(1985),Tt=c(6354),en=c(8141),jt=c(980),Vt=c(9437),fn=c(7647),Hn=c(5964),zn=c(6697),bt=c(345);const At="[@ant-design/icons-angular]:";function Ot($){(0,t.naY)()&&console.warn(`${At} ${$}.`)}function Wt($){return Ie($)[0]}function Ue($,ce){switch(ce){case"fill":return`${$}-fill`;case"outline":return`${$}-o`;case"twotone":return`${$}-twotone`;case void 0:return $;default:throw new Error(`${At}Theme "${ce}" is not a recognized theme!`)}}function oe($){return"object"==typeof $&&"string"==typeof $.name&&("string"==typeof $.theme||void 0===$.theme)&&"string"==typeof $.icon}function Kt($){const ce=$.split(":");switch(ce.length){case 1:return[$,""];case 2:return[ce[1],ce[0]];default:throw new Error(`${At}The icon type ${$} is not valid!`)}}function Wn($){return new Error(`${At}the icon ${$} does not exist or is not registered.`)}function Un(){return new Error(`${At} tag not found.`)}const On=new t.nKC("ant_icons");let Ut=(()=>{class ${set twoToneColor({primaryColor:N,secondaryColor:ke}){this._twoToneColorPalette.primaryColor=N,this._twoToneColorPalette.secondaryColor=ke||Wt(N)}get twoToneColor(){return{...this._twoToneColorPalette}}get _disableDynamicLoading(){return!1}constructor(N,ke,ve,K,U){this._rendererFactory=N,this._handler=ke,this._document=ve,this.sanitizer=K,this._antIcons=U,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new r.B,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new st.Qq(this._handler)),this._antIcons&&this.addIcon(...this._antIcons)}useJsonpLoading(){this._enableJsonpLoading?Ot("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=N=>{this._jsonpIconLoad$.next(N)})}changeAssetsSource(N){this._assetsUrlRoot=N.endsWith("/")?N:N+"/"}addIcon(...N){N.forEach(ke=>{this._svgDefinitions.set(Ue(ke.name,ke.theme),ke)})}addIconLiteral(N,ke){const[ve,K]=Kt(N);if(!K)throw function Tn(){return new Error(`${At}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:N,icon:ke})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(N,ke){const ve=oe(N)?N:this._svgDefinitions.get(N)||null;if(!ve&&this._disableDynamicLoading)throw Wn(N);return(ve?(0,Ct.of)(ve):this._loadIconDynamically(N)).pipe((0,Tt.T)(U=>{if(!U)throw Wn(N);return this._loadSVGFromCacheOrCreateNew(U,ke)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(N){if(!this._http&&!this._enableJsonpLoading)return(0,Ct.of)(function kn(){return function Et($){console.error(`${At} ${$}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let ke=this._inProgressFetches.get(N);if(!ke){const[ve,K]=Kt(N),U=K?{name:N,icon:""}:function Fe($){const ce=$.split("-"),N=function ie($){return"o"===$?"outline":$}(ce.splice(ce.length-1,1)[0]);return{name:ce.join("-"),theme:N,icon:""}}(ve),qe=(K?`${this._assetsUrlRoot}assets/${K}/${ve}`:`${this._assetsUrlRoot}assets/${U.theme}/${U.name}`)+(this._enableJsonpLoading?".js":".svg"),rt=this.sanitizer.sanitize(t.WPN.URL,qe);if(!rt)throw function Vn($){return new Error(`${At}The url "${$}" is unsafe.`)}(qe);ke=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(U,rt):this._http.get(rt,{responseType:"text"}).pipe((0,Tt.T)(rn=>({...U,icon:rn})))).pipe((0,en.M)(rn=>this.addIcon(rn)),(0,jt.j)(()=>this._inProgressFetches.delete(N)),(0,Vt.W)(()=>(0,Ct.of)(null)),(0,fn.u)()),this._inProgressFetches.set(N,ke)}return ke}_loadIconDynamicallyWithJsonp(N,ke){return new It.c(ve=>{const K=this._document.createElement("script"),U=setTimeout(()=>{ge(),ve.error(function dn(){return new Error(`${At}Importing timeout error.`)}())},6e3);function ge(){K.parentNode.removeChild(K),clearTimeout(U)}K.src=ke,this._document.body.appendChild(K),this._jsonpIconLoad$.pipe((0,Hn.p)(qe=>qe.name===N.name&&qe.theme===N.theme),(0,zn.s)(1)).subscribe(qe=>{ve.next(qe),ge()})})}_loadSVGFromCacheOrCreateNew(N,ke){let ve;const K=ke||this._twoToneColorPalette.primaryColor,U=Wt(K)||this._twoToneColorPalette.secondaryColor,ge="twotone"===N.theme?function Ae($,ce,N,ke){return`${Ue($,ce)}-${N}-${ke}`}(N.name,N.theme,K,U):void 0===N.theme?N.name:Ue(N.name,N.theme),qe=this._svgRenderedDefinitions.get(ge);return qe?ve=qe.icon:(ve=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function cn($){return""!==Kt($)[1]}(N.name)?N.icon:function dt($){return $.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(N.icon)),"twotone"===N.theme,K,U)),this._svgRenderedDefinitions.set(ge,{...N,icon:ve})),function et($){return $.cloneNode(!0)}(ve)}_createSVGElementFromString(N){const ke=this._document.createElement("div");ke.innerHTML=N;const ve=ke.querySelector("svg");if(!ve)throw Un;return ve}_setSVGAttribute(N){return this._renderer.setAttribute(N,"width","1em"),this._renderer.setAttribute(N,"height","1em"),N}_colorizeSVGIcon(N,ke,ve,K){if(ke){const U=N.childNodes,ge=U.length;for(let qe=0;qe{class ${constructor(N,ke,ve){this._iconService=N,this._elementRef=ke,this._renderer=ve}ngOnChanges(N){(N.type||N.theme||N.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(N=>{if(!this.type)return this._clearSVGElement(),void N(null);const ke=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(ve=>{const K=this._getSelfRenderMeta();!function Ye($,ce){return $.type===ce.type&&$.theme===ce.theme&&$.twoToneColor===ce.twoToneColor}(ke,K)?N(null):(this._setSVGElement(ve),N(ve))})})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(N,ke){if(oe(N))return N;{const[ve,K]=Kt(N);return K?N:function _e($){return $.endsWith("-fill")||$.endsWith("-o")||$.endsWith("-twotone")}(ve)?(ke&&Ot(`'type' ${ve} already gets a theme inside so 'theme' ${ke} would be ignored`),ve):Ue(ve,ke||this._iconService.defaultTheme)}}_setSVGElement(N){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,N)}_clearSVGElement(){const N=this._elementRef.nativeElement,ke=N.childNodes;for(let K=ke.length-1;K>=0;K--){const U=ke[K];"svg"===U.tagName?.toLowerCase()&&this._renderer.removeChild(N,U)}}static#e=this.\u0275fac=function(ke){return new(ke||$)(t.rXU(Ut),t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:$,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[t.OA$]})}return $})();var Xe=c(3451),ht=c(8167),at=c(6042),St=c(6860);const Qe=[ht.XkU,ht.Z1x,ht.iOx,ht.FmF,ht.rHI,ht.SFT,ht.aB7,ht.N$r,ht.HCk,ht.DXx,ht.Hcp,ht.Y6F,ht.XEL,ht.O9N,ht.OgO,ht.lWl,ht.KKJ,ht.rXM,ht.Nk1,ht.MTO,ht.drJ,ht.ekG,ht.U1s,ht.QQ_,ht.$ix,ht.cuh,ht.U97,ht.DT4,ht.gA6,ht.hl9,ht.j4r,ht.Dnx,ht.Hb1,ht.kGj,ht.HSk,ht.eiI,ht.zt9,ht.eiI,ht.eNq,ht.RR4,ht.qZ3,ht.wx$,ht.a5L,ht.XTv,ht.gZ6],Ee=new t.nKC("nz_icons"),re=(new t.nKC("nz_icon_default_twotone_color"),"#1890ff");let ze=(()=>{class $ extends Ut{get _disableDynamicLoading(){return!this.platform.isBrowser}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(N){N.getAttribute("viewBox")||this._renderer.setAttribute(N,"viewBox","0 0 1024 1024"),(!N.getAttribute("width")||!N.getAttribute("height"))&&(this._renderer.setAttribute(N,"width","1em"),this._renderer.setAttribute(N,"height","1em")),N.getAttribute("fill")||this._renderer.setAttribute(N,"fill","currentColor")}fetchFromIconfont(N){const{scriptUrl:ke}=N;if(this._document&&!this.iconfontCache.has(ke)){const ve=this._renderer.createElement("script");this._renderer.setAttribute(ve,"src",ke),this._renderer.setAttribute(ve,"data-namespace",ke.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,ve),this.iconfontCache.add(ke)}}createIconfontIcon(N){return this._createSVGElementFromString(``)}constructor(N,ke,ve,K,U,ge,qe){super(N,U,ge,ke,[...Qe,...qe||[]]),this.nzConfigService=ve,this.platform=K,this.configUpdated$=new r.B,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.configDefaultTwotoneColor(),this.configDefaultTheme()}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const N=this.getConfig();this.defaultTheme=N.nzTheme||"outline"}configDefaultTwotoneColor(){const ke=this.getConfig().nzTwotoneColor||re;let ve=re;ke&&(ke.startsWith("#")?ve=ke:(0,Xe.R8)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:ve}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}static#e=this.\u0275fac=function(ke){return new(ke||$)(t.KVO(t._9s),t.KVO(bt.up),t.KVO(at.yx),t.KVO(St.OD),t.KVO(st.JV,8),t.KVO(xt.qQ,8),t.KVO(Ee,8))};static#t=this.\u0275prov=t.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})();const gt=new t.nKC("nz_icons_patch");let Ke=(()=>{class ${constructor(N,ke){this.extraIcons=N,this.rootIconService=ke,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(N=>this.rootIconService.addIcon(N)),this.patched=!0)}static#e=this.\u0275fac=function(ke){return new(ke||$)(t.KVO(gt,2),t.KVO(ze))};static#t=this.\u0275prov=t.jDH({token:$,factory:$.\u0275fac})}return $})(),Pe=(()=>{class $ extends ue{set nzSpin(N){this.spin=N}set nzType(N){this.type=N}set nzTheme(N){this.theme=N}set nzTwotoneColor(N){this.twoToneColor=N}set nzIconfont(N){this.iconfont=N}constructor(N,ke,ve,K,U,ge){super(K,ve,U),this.ngZone=N,this.changeDetectorRef=ke,this.iconService=K,this.renderer=U,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new r.B,ge&&ge.doPatch(),this.el=ve.nativeElement}ngOnChanges(N){const{nzType:ke,nzTwotoneColor:ve,nzSpin:K,nzTheme:U,nzRotate:ge}=N;ke||ve||K||U?this.changeIcon2():ge?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const N=this.el.children;let ke=N.length;if(!this.type&&N.length)for(;ke--;){const ve=N[ke];"svg"===ve.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(ve)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,g.H)(this._changeIcon()).pipe((0,e.Q)(this.destroy$)).subscribe({next:N=>{this.ngZone.run(()=>{this.changeDetectorRef.detectChanges(),N&&(this.setSVGData(N),this.handleSpin(N),this.handleRotate(N))})},error:Xe.R8})})}handleSpin(N){this.spin||"loading"===this.type?this.renderer.addClass(N,"anticon-spin"):this.renderer.removeClass(N,"anticon-spin")}handleRotate(N){this.nzRotate?this.renderer.setAttribute(N,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(N,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(N){this.renderer.setAttribute(N,"data-icon",this.type),this.renderer.setAttribute(N,"aria-hidden","true")}static#e=this.\u0275fac=function(ke){return new(ke||$)(t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(ze),t.rXU(t.sFG),t.rXU(Ke,8))};static#t=this.\u0275dir=t.FsC({type:$,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(ke,ve){2&ke&&t.AVh("anticon",!0)},inputs:{nzSpin:[2,"nzSpin","nzSpin",t.L39],nzRotate:[2,"nzRotate","nzRotate",t.Udg],nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],standalone:!0,features:[t.GFd,t.Vt3,t.OA$]})}return $})(),Re=(()=>{class ${static forRoot(N){return{ngModule:$,providers:[{provide:Ee,useValue:N}]}}static forChild(N){return{ngModule:$,providers:[Ke,{provide:gt,useValue:N}]}}static#e=this.\u0275fac=function(ke){return new(ke||$)};static#t=this.\u0275mod=t.$C({type:$});static#n=this.\u0275inj=t.G2t({})}return $})()},1011:(Rt,De,c)=>{c.d(De,{Sy:()=>fn,c9:()=>bt,j:()=>Et,tg:()=>zn,vN:()=>Hn});var t=c(177),r=c(3953),g=c(1413),e=c(7786),M=c(3294),G=c(6977),L=c(5964),B=c(9172),A=c(5558),w=c(1397),I=c(6354),F=c(7891),X=c(317),V=c(7806),x=c(5103),ne=c(9417),J=c(8203),be=c(851),Oe=c(6860),he=c(1025);const Ie=["nz-input-group-slot",""],me=["*"];function de(Ot,Wt){if(1&Ot&&r.nrm(0,"span",0),2&Ot){const Ue=r.XpG();r.Y8G("nzType",Ue.icon)}}function H(Ot,Wt){if(1&Ot&&(r.qex(0),r.EFF(1),r.bVm()),2&Ot){const Ue=r.XpG();r.R7$(),r.JRh(Ue.template)}}function z(Ot,Wt){if(1&Ot&&r.nrm(0,"span",3),2&Ot){const Ue=r.XpG(2);r.Y8G("icon",Ue.nzAddOnBeforeIcon)("template",Ue.nzAddOnBefore)}}function Z(Ot,Wt){}function pe(Ot,Wt){if(1&Ot&&(r.j41(0,"span",6),r.DNE(1,Z,0,0,"ng-template",5),r.k0s()),2&Ot){const Ue=r.XpG(2),Ae=r.sdS(3);r.AVh("ant-input-affix-wrapper-disabled",Ue.disabled)("ant-input-affix-wrapper-sm",Ue.isSmall)("ant-input-affix-wrapper-lg",Ue.isLarge)("ant-input-affix-wrapper-focused",Ue.focused),r.Y8G("ngClass",Ue.affixInGroupStatusCls),r.R7$(),r.Y8G("ngTemplateOutlet",Ae)}}function E(Ot,Wt){}function S(Ot,Wt){if(1&Ot&&r.DNE(0,E,0,0,"ng-template",5),2&Ot){r.XpG(2);const Ue=r.sdS(5);r.Y8G("ngTemplateOutlet",Ue)}}function R(Ot,Wt){if(1&Ot&&r.nrm(0,"span",3),2&Ot){const Ue=r.XpG(2);r.Y8G("icon",Ue.nzAddOnAfterIcon)("template",Ue.nzAddOnAfter)}}function Y(Ot,Wt){if(1&Ot&&(r.j41(0,"span",2),r.DNE(1,z,1,2,"span",3)(2,pe,2,10,"span",4)(3,S,1,1,null,5)(4,R,1,2,"span",3),r.k0s()),2&Ot){const Ue=r.XpG();r.R7$(),r.vxM(Ue.nzAddOnBefore||Ue.nzAddOnBeforeIcon?1:-1),r.R7$(),r.vxM(Ue.isAffix||Ue.hasFeedback?2:3),r.R7$(2),r.vxM(Ue.nzAddOnAfter||Ue.nzAddOnAfterIcon?4:-1)}}function se(Ot,Wt){}function Be(Ot,Wt){if(1&Ot&&r.DNE(0,se,0,0,"ng-template",5),2&Ot){r.XpG(2);const Ue=r.sdS(3);r.Y8G("ngTemplateOutlet",Ue)}}function Pt(Ot,Wt){}function vt(Ot,Wt){if(1&Ot&&r.DNE(0,Pt,0,0,"ng-template",5),2&Ot){r.XpG(2);const Ue=r.sdS(5);r.Y8G("ngTemplateOutlet",Ue)}}function wt(Ot,Wt){if(1&Ot&&r.DNE(0,Be,1,1,null,5)(1,vt,1,1,null,5),2&Ot){const Ue=r.XpG();r.vxM(Ue.isAffix?0:1)}}function Le(Ot,Wt){if(1&Ot&&r.nrm(0,"span",7),2&Ot){const Ue=r.XpG(2);r.Y8G("icon",Ue.nzPrefixIcon)("template",Ue.nzPrefix)}}function zt(Ot,Wt){}function xt(Ot,Wt){if(1&Ot&&r.nrm(0,"nz-form-item-feedback-icon",9),2&Ot){const Ue=r.XpG(3);r.Y8G("status",Ue.status)}}function st(Ot,Wt){if(1&Ot&&(r.j41(0,"span",8),r.DNE(1,xt,1,1,"nz-form-item-feedback-icon",9),r.k0s()),2&Ot){const Ue=r.XpG(2);r.Y8G("icon",Ue.nzSuffixIcon)("template",Ue.nzSuffix),r.R7$(),r.vxM(Ue.isFeedback?1:-1)}}function Ct(Ot,Wt){if(1&Ot&&r.DNE(0,Le,1,2,"span",7)(1,zt,0,0,"ng-template",5)(2,st,2,3,"span",8),2&Ot){const Ue=r.XpG(),Ae=r.sdS(5);r.vxM(Ue.nzPrefix||Ue.nzPrefixIcon?0:-1),r.R7$(),r.Y8G("ngTemplateOutlet",Ae),r.R7$(),r.vxM(Ue.nzSuffix||Ue.nzSuffixIcon||Ue.isFeedback?2:-1)}}function It(Ot,Wt){if(1&Ot&&(r.j41(0,"span",10),r.nrm(1,"nz-form-item-feedback-icon",9),r.k0s()),2&Ot){const Ue=r.XpG(2);r.R7$(),r.Y8G("status",Ue.status)}}function Tt(Ot,Wt){if(1&Ot&&(r.SdG(0),r.DNE(1,It,2,1,"span",10)),2&Ot){const Ue=r.XpG();r.R7$(),r.vxM(Ue.isAddOn||Ue.isAffix||!Ue.isFeedback?-1:1)}}let Vt=(()=>{class Ot{constructor(){this.icon=null,this.type=null,this.template=null}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)};static#t=this.\u0275cmp=r.VBU({type:Ot,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(Ae,ie){2&Ae&&r.AVh("ant-input-group-addon","addon"===ie.type)("ant-input-prefix","prefix"===ie.type)("ant-input-suffix","suffix"===ie.type)},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[r.aNF],attrs:Ie,ngContentSelectors:me,decls:3,vars:2,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"]],template:function(Ae,ie){1&Ae&&(r.NAR(),r.DNE(0,de,1,1,"span",0)(1,H,2,1,"ng-container",1),r.SdG(2)),2&Ae&&(r.vxM(ie.icon?0:-1),r.R7$(),r.Y8G("nzStringTemplateOutlet",ie.template))},dependencies:[x.Y3,x.Dn,V.C,V.m],encapsulation:2,changeDetection:0})}return Ot})(),fn=(()=>{class Ot{get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Ue){this._disabled=Ue}constructor(Ue,Ae,ie,_e,oe,Fe,et){this.ngControl=Ue,this.renderer=Ae,this.elementRef=ie,this.hostView=_e,this.directionality=oe,this.nzFormStatusService=Fe,this.nzFormNoStatusService=et,this.nzBorderless=!1,this.nzSize="default",this.nzStepperless=!0,this.nzStatus="",this._disabled=!1,this.disabled$=new g.B,this.dir="ltr",this.prefixCls="ant-input",this.status="",this.statusCls={},this.hasFeedback=!1,this.feedbackRef=null,this.components=[],this.destroy$=new g.B}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,M.F)((Ue,Ae)=>Ue.status===Ae.status&&Ue.hasFeedback===Ae.hasFeedback),(0,G.Q)(this.destroy$)).subscribe(({status:Ue,hasFeedback:Ae})=>{this.setStatusStyles(Ue,Ae)}),this.ngControl&&this.ngControl.statusChanges?.pipe((0,L.p)(()=>null!==this.ngControl.disabled),(0,G.Q)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(Ue=>{this.dir=Ue})}ngOnChanges(Ue){const{disabled:Ae,nzStatus:ie}=Ue;Ae&&this.disabled$.next(this.disabled),ie&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ue,Ae){this.status=Ue,this.hasFeedback=Ae,this.renderFeedbackIcon(),this.statusCls=(0,X.LP)(this.prefixCls,Ue,Ae),Object.keys(this.statusCls).forEach(ie=>{this.statusCls[ie]?this.renderer.addClass(this.elementRef.nativeElement,ie):this.renderer.removeClass(this.elementRef.nativeElement,ie)})}renderFeedbackIcon(){if(!this.status||!this.hasFeedback||this.nzFormNoStatusService)return this.hostView.clear(),void(this.feedbackRef=null);this.feedbackRef=this.feedbackRef||this.hostView.createComponent(F.Xd),this.feedbackRef.location.nativeElement.classList.add("ant-input-suffix"),this.feedbackRef.instance.status=this.status,this.feedbackRef.instance.updateIcon()}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)(r.rXU(ne.vO,10),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(r.c1b),r.rXU(J.dS,8),r.rXU(F.is,8),r.rXU(F.n1,8))};static#t=this.\u0275dir=r.FsC({type:Ot,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostAttrs:[1,"ant-input"],hostVars:13,hostBindings:function(Ae,ie){2&Ae&&(r.BMQ("disabled",ie.disabled||null),r.AVh("ant-input-disabled",ie.disabled)("ant-input-borderless",ie.nzBorderless)("ant-input-lg","large"===ie.nzSize)("ant-input-sm","small"===ie.nzSize)("ant-input-rtl","rtl"===ie.dir)("ant-input-stepperless",ie.nzStepperless))},inputs:{nzBorderless:[2,"nzBorderless","nzBorderless",r.L39],nzSize:"nzSize",nzStepperless:[2,"nzStepperless","nzStepperless",r.L39],nzStatus:"nzStatus",disabled:[2,"disabled","disabled",r.L39]},exportAs:["nzInput"],standalone:!0,features:[r.GFd,r.OA$]})}return Ot})(),Hn=(()=>{class Ot{constructor(Ue){this.elementRef=Ue}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)(r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:Ot,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]],standalone:!0})}return Ot})(),zn=(()=>{class Ot{constructor(Ue,Ae,ie,_e,oe,Fe,et){this.focusMonitor=Ue,this.elementRef=Ae,this.renderer=ie,this.cdr=_e,this.directionality=oe,this.nzFormStatusService=Fe,this.nzFormNoStatusService=et,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new g.B}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(Ue=>Ue.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,M.F)((Ue,Ae)=>Ue.status===Ae.status&&Ue.hasFeedback===Ae.hasFeedback),(0,G.Q)(this.destroy$)).subscribe(({status:Ue,hasFeedback:Ae})=>{this.setStatusStyles(Ue,Ae)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,G.Q)(this.destroy$)).subscribe(Ue=>{this.focused=!!Ue,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(Ue=>{this.dir=Ue})}ngAfterContentInit(){this.updateChildrenInputSize();const Ue=this.listOfNzInputDirective.changes.pipe((0,B.Z)(this.listOfNzInputDirective));Ue.pipe((0,A.n)(Ae=>(0,e.h)(Ue,...Ae.map(ie=>ie.disabled$))),(0,w.Z)(()=>Ue),(0,I.T)(Ae=>Ae.some(ie=>ie.disabled)),(0,G.Q)(this.destroy$)).subscribe(Ae=>{this.disabled=Ae,this.cdr.markForCheck()})}ngOnChanges(Ue){const{nzSize:Ae,nzSuffix:ie,nzPrefix:_e,nzPrefixIcon:oe,nzSuffixIcon:Fe,nzAddOnAfter:et,nzAddOnBefore:dt,nzAddOnAfterIcon:Kt,nzAddOnBeforeIcon:cn,nzStatus:Tn}=Ue;Ae&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(ie||_e||oe||Fe)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(et||dt||Kt||cn)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),Tn&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Ue,Ae){this.status=Ue,this.hasFeedback=Ae,this.isFeedback=!!Ue&&Ae,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&Ae,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,X.LP)(`${this.prefixCls}-affix-wrapper`,Ue,Ae):{},this.cdr.markForCheck(),this.affixStatusCls=(0,X.LP)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":Ue,!this.isAddOn&&Ae),this.groupStatusCls=(0,X.LP)(`${this.prefixCls}-group-wrapper`,this.isAddOn?Ue:"",!!this.isAddOn&&Ae);const _e={...this.affixStatusCls,...this.groupStatusCls};Object.keys(_e).forEach(oe=>{_e[oe]?this.renderer.addClass(this.elementRef.nativeElement,oe):this.renderer.removeClass(this.elementRef.nativeElement,oe)})}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)(r.rXU(be.FN),r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.gRc),r.rXU(J.dS,8),r.rXU(F.is,8),r.rXU(F.n1,8))};static#t=this.\u0275cmp=r.VBU({type:Ot,selectors:[["nz-input-group"]],contentQueries:function(Ae,ie,_e){if(1&Ae&&r.wni(_e,fn,4),2&Ae){let oe;r.mGM(oe=r.lsd())&&(ie.listOfNzInputDirective=oe)}},hostVars:40,hostBindings:function(Ae,ie){2&Ae&&r.AVh("ant-input-group-compact",ie.nzCompact)("ant-input-search-enter-button",ie.nzSearch)("ant-input-search",ie.nzSearch)("ant-input-search-rtl","rtl"===ie.dir)("ant-input-search-sm",ie.nzSearch&&ie.isSmall)("ant-input-search-large",ie.nzSearch&&ie.isLarge)("ant-input-group-wrapper",ie.isAddOn)("ant-input-group-wrapper-rtl","rtl"===ie.dir)("ant-input-group-wrapper-lg",ie.isAddOn&&ie.isLarge)("ant-input-group-wrapper-sm",ie.isAddOn&&ie.isSmall)("ant-input-affix-wrapper",ie.isAffix&&!ie.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===ie.dir)("ant-input-affix-wrapper-focused",ie.isAffix&&ie.focused)("ant-input-affix-wrapper-disabled",ie.isAffix&&ie.disabled)("ant-input-affix-wrapper-lg",ie.isAffix&&!ie.isAddOn&&ie.isLarge)("ant-input-affix-wrapper-sm",ie.isAffix&&!ie.isAddOn&&ie.isSmall)("ant-input-group",!ie.isAffix&&!ie.isAddOn)("ant-input-group-rtl","rtl"===ie.dir)("ant-input-group-lg",!ie.isAffix&&!ie.isAddOn&&ie.isLarge)("ant-input-group-sm",!ie.isAffix&&!ie.isAddOn&&ie.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:[2,"nzSearch","nzSearch",r.L39],nzCompact:[2,"nzCompact","nzCompact",r.L39]},exportAs:["nzInputGroup"],standalone:!0,features:[r.Jv_([F.n1]),r.GFd,r.OA$,r.aNF],ngContentSelectors:me,decls:6,vars:1,consts:[["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper",3,"ant-input-affix-wrapper-disabled","ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg","ant-input-affix-wrapper-focused","ngClass"],[3,"ngTemplateOutlet"],[1,"ant-input-affix-wrapper",3,"ngClass"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"],[3,"status"],["nz-input-group-slot","","type","suffix"]],template:function(Ae,ie){1&Ae&&(r.NAR(),r.DNE(0,Y,5,3,"span",2)(1,wt,2,1)(2,Ct,3,3,"ng-template",null,0,r.C5r)(4,Tt,2,1,"ng-template",null,1,r.C5r)),2&Ae&&r.vxM(ie.isAddOn?0:1)},dependencies:[Vt,t.YU,t.T3,F.J1,F.Xd],encapsulation:2,changeDetection:0})}return Ot})(),bt=(()=>{class Ot{set nzAutosize(Ue){var ie;"string"==typeof Ue||!0===Ue?this.autosize=!0:"string"!=typeof(ie=Ue)&&"boolean"!=typeof ie&&(ie.maxRows||ie.minRows)&&(this.autosize=!0,this.minRows=Ue.minRows,this.maxRows=Ue.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(Ue=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;const Ae=this.el,ie=Ae.value;if(!Ue&&this.minRows===this.previousMinRows&&ie===this.previousValue)return;const _e=Ae.placeholder;Ae.classList.add("nz-textarea-autosize-measuring"),Ae.placeholder="";let oe=Math.round((Ae.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&oe>this.maxHeight&&(oe=this.maxHeight),null!==this.minHeight&&oerequestAnimationFrame(()=>{const{selectionStart:Fe,selectionEnd:et}=Ae;!this.destroy$.isStopped&&document.activeElement===Ae&&Ae.setSelectionRange(Fe,et)})),this.previousValue=ie,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;const Ue=this.el.cloneNode(!1);Ue.rows=1,Ue.style.position="absolute",Ue.style.visibility="hidden",Ue.style.border="none",Ue.style.padding="0",Ue.style.height="",Ue.style.minHeight="",Ue.style.maxHeight="",Ue.style.overflow="hidden",this.el.parentNode.appendChild(Ue),this.cachedLineHeight=Ue.clientHeight-this.inputGap,this.el.parentNode.removeChild(Ue),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){const Ue=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==Ue&&(this.el.style.minHeight=`${Ue}px`),Ue}setMaxHeight(){const Ue=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==Ue&&(this.el.style.maxHeight=`${Ue}px`),Ue}noopInputHandler(){}constructor(Ue,Ae,ie,_e){this.elementRef=Ue,this.ngZone=Ae,this.platform=ie,this.resizeService=_e,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new g.B,this.inputGap=10}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe((0,G.Q)(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(Oe.OD),r.rXU(he.cB))};static#t=this.\u0275dir=r.FsC({type:Ot,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(Ae,ie){1&Ae&&r.bIt("input",function(){return ie.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"],standalone:!0})}return Ot})(),Et=(()=>{class Ot{static#e=this.\u0275fac=function(Ae){return new(Ae||Ot)};static#t=this.\u0275mod=r.$C({type:Ot});static#n=this.\u0275inj=r.G2t({imports:[zn,Vt]})}return Ot})()},2617:(Rt,De,c)=>{c.d(De,{$2:()=>te,MV:()=>Xe,Tc:()=>q,Xo:()=>at,YU:()=>Ut,eE:()=>re,lQ:()=>ze,mf:()=>On,nt:()=>ht,qx:()=>ue,rD:()=>Ke});var t=c(177),r=c(3953),g=c(7806),e=c(9438),M=c(1413),G=c(9030),L=c(7673),B=c(7786),A=c(4412),w=c(1397),I=c(9172),F=c(6977),X=c(1025),V=c(7529),x=c(2983),ne=c(1672),J=c(8203);const be=["*"];function Oe(Pe,Re){if(1&Pe&&r.nrm(0,"nz-avatar",1),2&Pe){const $=r.XpG();r.Y8G("nzSrc",$.nzSrc)}}function he(Pe,Re){1&Pe&&r.SdG(0)}const Ie=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],me=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function de(Pe,Re){if(1&Pe&&r.nrm(0,"nz-list-item-meta-avatar",0),2&Pe){const $=r.XpG();r.Y8G("nzSrc",$.avatarStr)}}function H(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-item-meta-avatar"),r.eu8(1,2),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",$.avatarTpl)}}function z(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(3);r.R7$(),r.JRh($.nzTitle)}}function Z(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-item-meta-title"),r.DNE(1,z,2,1,"ng-container",3),r.k0s()),2&Pe){const $=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",$.nzTitle)}}function pe(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(3);r.R7$(),r.JRh($.nzDescription)}}function E(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-item-meta-description"),r.DNE(1,pe,2,1,"ng-container",3),r.k0s()),2&Pe){const $=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",$.nzDescription)}}function S(Pe,Re){if(1&Pe&&(r.j41(0,"div",1),r.DNE(1,Z,2,1,"nz-list-item-meta-title")(2,E,2,1,"nz-list-item-meta-description"),r.SdG(3,1),r.SdG(4,2),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.vxM($.nzTitle&&!$.titleComponent?1:-1),r.R7$(),r.vxM($.nzDescription&&!$.descriptionComponent?2:-1)}}function R(Pe,Re){1&Pe&&r.SdG(0)}const Y=["nz-list-item-actions",""];function se(Pe,Re){}function Be(Pe,Re){1&Pe&&r.nrm(0,"em",1)}function Pt(Pe,Re){if(1&Pe&&(r.j41(0,"li"),r.DNE(1,se,0,0,"ng-template",0)(2,Be,1,0,"em",1),r.k0s()),2&Pe){const $=Re.$implicit,ce=Re.$index,N=Re.$count;r.R7$(),r.Y8G("ngTemplateOutlet",$),r.R7$(),r.vxM(ce!==N-1?2:-1)}}const vt=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],wt=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"],Le=(Pe,Re)=>({$implicit:Pe,index:Re});function zt(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(2);r.R7$(),r.JRh($.nzHeader)}}function xt(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-header"),r.DNE(1,zt,2,1,"ng-container",6),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",$.nzHeader)}}function st(Pe,Re){1&Pe&&r.nrm(0,"div"),2&Pe&&r.xc7("min-height",53,"px")}function Ct(Pe,Re){}function It(Pe,Re){if(1&Pe&&(r.j41(0,"div",7),r.DNE(1,Ct,0,0,"ng-template",8),r.k0s()),2&Pe){const $=Re.$implicit,ce=Re.$index,N=r.XpG(2);r.Y8G("nzSpan",N.nzGrid.span||null)("nzXs",N.nzGrid.xs||null)("nzSm",N.nzGrid.sm||null)("nzMd",N.nzGrid.md||null)("nzLg",N.nzGrid.lg||null)("nzXl",N.nzGrid.xl||null)("nzXXl",N.nzGrid.xxl||null),r.R7$(),r.Y8G("ngTemplateOutlet",N.nzRenderItem)("ngTemplateOutletContext",r.l_i(9,Le,$,ce))}}function Tt(Pe,Re){if(1&Pe&&(r.j41(0,"div",2),r.Z7z(1,It,2,12,"div",7,r.fX1),r.k0s()),2&Pe){const $=r.XpG();r.Y8G("nzGutter",$.nzGrid.gutter||null),r.R7$(),r.Dyx($.nzDataSource)}}function en(Pe,Re){}function jt(Pe,Re){if(1&Pe&&(r.qex(0),r.DNE(1,en,0,0,"ng-template",8),r.bVm()),2&Pe){const $=Re.$implicit,ce=Re.$index,N=r.XpG(2);r.R7$(),r.Y8G("ngTemplateOutlet",N.nzRenderItem)("ngTemplateOutletContext",r.l_i(2,Le,$,ce))}}function Vt(Pe,Re){if(1&Pe&&(r.j41(0,"div",3),r.Z7z(1,jt,2,5,"ng-container",null,r.fX1),r.SdG(3,4),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Dyx($.nzDataSource)}}function fn(Pe,Re){if(1&Pe&&r.nrm(0,"nz-list-empty",4),2&Pe){const $=r.XpG();r.Y8G("nzNoResult",$.nzNoResult)}}function Hn(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(2);r.R7$(),r.JRh($.nzFooter)}}function zn(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-footer"),r.DNE(1,Hn,2,1,"ng-container",6),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",$.nzFooter)}}function bt(Pe,Re){}function At(Pe,Re){}function Et(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-pagination"),r.DNE(1,At,0,0,"ng-template",5),r.k0s()),2&Pe){const $=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",$.nzPagination)}}const Ot=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Wt=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];function Ue(Pe,Re){if(1&Pe&&r.nrm(0,"ul",3),2&Pe){const $=r.XpG(2);r.Y8G("nzActions",$.nzActions)}}function Ae(Pe,Re){if(1&Pe&&(r.DNE(0,Ue,1,1,"ul",3),r.SdG(1)),2&Pe){const $=r.XpG();r.vxM($.nzActions&&$.nzActions.length>0?0:-1)}}function ie(Pe,Re){if(1&Pe&&(r.qex(0),r.EFF(1),r.bVm()),2&Pe){const $=r.XpG(3);r.R7$(),r.JRh($.nzContent)}}function _e(Pe,Re){if(1&Pe&&r.DNE(0,ie,2,1,"ng-container",4),2&Pe){const $=r.XpG(2);r.Y8G("nzStringTemplateOutlet",$.nzContent)}}function oe(Pe,Re){if(1&Pe&&(r.SdG(0,1),r.SdG(1,2),r.DNE(2,_e,1,1,"ng-container")),2&Pe){const $=r.XpG();r.R7$(2),r.vxM($.nzContent?2:-1)}}function Fe(Pe,Re){1&Pe&&r.SdG(0,3)}function et(Pe,Re){}function dt(Pe,Re){}function Kt(Pe,Re){}function cn(Pe,Re){if(1&Pe&&(r.j41(0,"nz-list-item-extra"),r.DNE(1,Kt,0,0,"ng-template",6),r.k0s()),2&Pe){const $=r.XpG(2);r.R7$(),r.Y8G("ngTemplateOutlet",$.nzExtra)}}function Tn(Pe,Re){}function Wn(Pe,Re){if(1&Pe&&(r.j41(0,"div",5),r.DNE(1,et,0,0,"ng-template",6)(2,dt,0,0,"ng-template",6),r.k0s(),r.DNE(3,cn,2,1,"nz-list-item-extra")(4,Tn,0,0,"ng-template",6)),2&Pe){const $=r.XpG(),ce=r.sdS(1),N=r.sdS(3),ke=r.sdS(5);r.R7$(),r.Y8G("ngTemplateOutlet",N),r.R7$(),r.Y8G("ngTemplateOutlet",ce),r.R7$(),r.vxM($.nzExtra?3:-1),r.R7$(),r.Y8G("ngTemplateOutlet",ke)}}function kn(Pe,Re){}function Vn(Pe,Re){}function Un(Pe,Re){}function dn(Pe,Re){}function qt(Pe,Re){if(1&Pe&&r.DNE(0,kn,0,0,"ng-template",6)(1,Vn,0,0,"ng-template",6)(2,Un,0,0,"ng-template",6)(3,dn,0,0,"ng-template",6),2&Pe){const $=r.XpG(),ce=r.sdS(1),N=r.sdS(3),ke=r.sdS(5);r.Y8G("ngTemplateOutlet",N),r.R7$(),r.Y8G("ngTemplateOutlet",$.nzExtra),r.R7$(),r.Y8G("ngTemplateOutlet",ke),r.R7$(),r.Y8G("ngTemplateOutlet",ce)}}let On=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(ce,N){1&ce&&(r.NAR(),r.j41(0,"h4",0),r.SdG(1),r.k0s())},encapsulation:2,changeDetection:0})}return Pe})(),Ut=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(ce,N){1&ce&&(r.NAR(),r.j41(0,"div",0),r.SdG(1),r.k0s())},encapsulation:2,changeDetection:0})}return Pe})(),Ye=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:3,vars:1,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc"]],template:function(ce,N){1&ce&&(r.NAR(),r.j41(0,"div",0),r.DNE(1,Oe,1,1,"nz-avatar",1)(2,he,1,0),r.k0s()),2&ce&&(r.R7$(),r.vxM(N.nzSrc?1:2))},dependencies:[e.Yb,e.PM],encapsulation:2,changeDetection:0})}return Pe})(),ue=(()=>{class Pe{set nzAvatar($){$ instanceof r.C4Q?(this.avatarStr="",this.avatarTpl=$):this.avatarStr=$}constructor($){this.elementRef=$,this.avatarStr=""}static#e=this.\u0275fac=function(ce){return new(ce||Pe)(r.rXU(r.aKT))};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(ce,N,ke){if(1&ce&&(r.wni(ke,Ut,5),r.wni(ke,On,5)),2&ce){let ve;r.mGM(ve=r.lsd())&&(N.descriptionComponent=ve.first),r.mGM(ve=r.lsd())&&(N.titleComponent=ve.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],standalone:!0,features:[r.aNF],ngContentSelectors:me,decls:4,vars:3,consts:[[3,"nzSrc"],[1,"ant-list-item-meta-content"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"]],template:function(ce,N){1&ce&&(r.NAR(Ie),r.DNE(0,de,1,1,"nz-list-item-meta-avatar",0)(1,H,2,1,"nz-list-item-meta-avatar"),r.SdG(2),r.DNE(3,S,5,2,"div",1)),2&ce&&(r.vxM(N.avatarStr?0:-1),r.R7$(),r.vxM(N.avatarTpl?1:-1),r.R7$(2),r.vxM(N.nzTitle||N.nzDescription||N.descriptionComponent||N.titleComponent?3:-1))},dependencies:[Ye,t.T3,On,g.C,g.m,Ut],encapsulation:2,changeDetection:0})}return Pe})(),te=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Pe})(),q=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item-action"]],viewQuery:function(ce,N){if(1&ce&&r.GBs(r.C4Q,7),2&ce){let ke;r.mGM(ke=r.lsd())&&(N.templateRef=ke.first)}},exportAs:["nzListItemAction"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.DNE(0,R,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return Pe})(),Xe=(()=>{class Pe{constructor($,ce){this.nzActions=[],this.actions=[],this.inputActionChanges$=new M.B,this.contentChildrenChanges$=(0,G.v)(()=>this.nzListItemActions?(0,L.of)(null):this.initialized.pipe((0,w.Z)(()=>this.nzListItemActions.changes.pipe((0,I.Z)(this.nzListItemActions))))),this.initialized=new M.B,(0,B.h)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,F.Q)(ce)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(N=>N.templateRef),$.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngAfterContentInit(){this.initialized.next(),this.initialized.complete()}static#e=this.\u0275fac=function(ce){return new(ce||Pe)(r.rXU(r.gRc),r.rXU(X.y4))};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(ce,N,ke){if(1&ce&&r.wni(ke,q,4),2&ce){let ve;r.mGM(ve=r.lsd())&&(N.nzListItemActions=ve)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],standalone:!0,features:[r.Jv_([X.y4]),r.OA$,r.aNF],attrs:Y,decls:2,vars:0,consts:[[3,"ngTemplateOutlet"],[1,"ant-list-item-action-split"]],template:function(ce,N){1&ce&&r.Z7z(0,Pt,3,2,"li",null,r.fX1),2&ce&&r.Dyx(N.actions)},dependencies:[t.T3],encapsulation:2,changeDetection:0})}return Pe})(),ht=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],standalone:!0,features:[r.aNF],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(ce,N){1&ce&&r.nrm(0,"nz-embed-empty",0),2&ce&&r.Y8G("nzComponentName","list")("specificContent",N.nzNoResult)},dependencies:[ne._v,ne.E8],encapsulation:2,changeDetection:0})}return Pe})(),at=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Pe})(),St=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Pe})(),Qe=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],standalone:!0,features:[r.aNF],ngContentSelectors:be,decls:1,vars:0,template:function(ce,N){1&ce&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Pe})(),Ee=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275dir=r.FsC({type:Pe,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"],standalone:!0})}return Pe})(),re=(()=>{class Pe{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor($){this.directionality=$,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new A.t(this.nzItemLayout),this.destroy$=new M.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe($=>{this.dir=$})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges($){$.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}static#e=this.\u0275fac=function(ce){return new(ce||Pe)(r.rXU(J.dS,8))};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(ce,N,ke){if(1&ce&&(r.wni(ke,St,5),r.wni(ke,Qe,5),r.wni(ke,Ee,5)),2&ce){let ve;r.mGM(ve=r.lsd())&&(N.nzListFooterComponent=ve.first),r.mGM(ve=r.lsd())&&(N.nzListPaginationComponent=ve.first),r.mGM(ve=r.lsd())&&(N.nzListLoadMoreDirective=ve.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(ce,N){2&ce&&r.AVh("ant-list-rtl","rtl"===N.dir)("ant-list-vertical","vertical"===N.nzItemLayout)("ant-list-lg","large"===N.nzSize)("ant-list-sm","small"===N.nzSize)("ant-list-split",N.nzSplit)("ant-list-bordered",N.nzBordered)("ant-list-loading",N.nzLoading)("ant-list-something-after-last-item",N.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:[2,"nzBordered","nzBordered",r.L39],nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:[2,"nzLoading","nzLoading",r.L39],nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:[2,"nzSplit","nzSplit",r.L39],nzNoResult:"nzNoResult"},exportAs:["nzList"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],ngContentSelectors:wt,decls:14,vars:8,consts:[[3,"nzSpinning"],[3,"min-height"],["nz-row","",3,"nzGutter"],[1,"ant-list-items"],[3,"nzNoResult"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(ce,N){1&ce&&(r.NAR(vt),r.DNE(0,xt,2,1,"nz-list-header"),r.SdG(1),r.j41(2,"nz-spin",0),r.qex(3),r.DNE(4,st,1,2,"div",1)(5,Tt,3,1,"div",2)(6,Vt,4,0,"div",3)(7,fn,1,1,"nz-list-empty",4),r.bVm(),r.k0s(),r.DNE(8,zn,2,1,"nz-list-footer"),r.SdG(9,1),r.DNE(10,bt,0,0,"ng-template",5),r.SdG(11,2),r.DNE(12,Et,2,1,"nz-list-pagination"),r.SdG(13,3)),2&ce&&(r.vxM(N.nzHeader?0:-1),r.R7$(2),r.Y8G("nzSpinning",N.nzLoading),r.R7$(2),r.vxM(N.nzLoading&&N.nzDataSource&&0===N.nzDataSource.length?4:-1),r.R7$(),r.vxM(N.nzGrid&&N.nzDataSource?5:6),r.R7$(2),r.vxM(!N.nzLoading&&N.nzDataSource&&0===N.nzDataSource.length?7:-1),r.R7$(),r.vxM(N.nzFooter?8:-1),r.R7$(2),r.Y8G("ngTemplateOutlet",N.nzLoadMore),r.R7$(2),r.vxM(N.nzPagination?12:-1))},dependencies:[t.T3,at,g.C,g.m,x.V,x.a,V.f3,V.Uq,V.e,ht,St,Qe],encapsulation:2,changeDetection:0})}return Pe})(),ze=(()=>{class Pe{get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}constructor($,ce){this.parentComp=$,this.cdr=ce,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe($=>{this.itemLayout=$,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}static#e=this.\u0275fac=function(ce){return new(ce||Pe)(r.rXU(re),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(ce,N,ke){if(1&ce&&r.wni(ke,te,5),2&ce){let ve;r.mGM(ve=r.lsd())&&(N.listItemExtraDirective=ve.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function(ce,N){2&ce&&r.AVh("ant-list-item-no-flex",N.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:[2,"nzNoFlex","nzNoFlex",r.L39]},exportAs:["nzListItem"],standalone:!0,features:[r.GFd,r.aNF],ngContentSelectors:Wt,decls:8,vars:1,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["nz-list-item-actions","",3,"nzActions"],[4,"nzStringTemplateOutlet"],[1,"ant-list-item-main"],[3,"ngTemplateOutlet"]],template:function(ce,N){1&ce&&(r.NAR(Ot),r.DNE(0,Ae,2,1,"ng-template",null,0,r.C5r)(2,oe,3,1,"ng-template",null,1,r.C5r)(4,Fe,1,0,"ng-template",null,2,r.C5r)(6,Wn,5,4)(7,qt,4,4)),2&ce&&(r.R7$(6),r.vxM(N.isVerticalAndExtra?6:7))},dependencies:[Xe,g.C,g.m,t.T3,te],encapsulation:2,changeDetection:0})}return Pe})(),Ke=(()=>{class Pe{static#e=this.\u0275fac=function(ce){return new(ce||Pe)};static#t=this.\u0275mod=r.$C({type:Pe});static#n=this.\u0275inj=r.G2t({imports:[re,ht,ze,ue,Ye]})}return Pe})()},1868:(Rt,De,c)=>{c.d(De,{$1:()=>Ue,CU:()=>ie,GP:()=>dn,WQ:()=>Vn,ek:()=>Ot,jS:()=>Wn,sD:()=>Un});var t=c(3953),r=c(1413),g=c(4412),e=c(7786),M=c(4572),G=c(6354),L=c(1397),B=c(5964),A=c(3703),w=c(3798),I=c(3294),F=c(6977),X=c(9172),V=c(5558),x=c(1188),ne=c(317),J=c(8203),be=c(7987),Oe=c(6841),he=c(5463),Ie=c(177),me=c(713),de=c(7806),H=c(5103),z=c(6860);const Z=["nz-menu-item",""],pe=["*"],E=["nz-submenu-inline-child",""];function S(qt,On){}const R=["nz-submenu-none-inline-child",""];function Y(qt,On){}const se=["nz-submenu-title",""];function Be(qt,On){if(1&qt&&t.nrm(0,"span",0),2&qt){const Ut=t.XpG();t.Y8G("nzType",Ut.nzIcon)}}function Pt(qt,On){if(1&qt&&(t.qex(0),t.j41(1,"span",4),t.EFF(2),t.k0s(),t.bVm()),2&qt){const Ut=t.XpG();t.R7$(2),t.JRh(Ut.nzTitle)}}function vt(qt,On){1&qt&&t.nrm(0,"span",5)}function wt(qt,On){1&qt&&t.nrm(0,"span",6)}function Le(qt,On){if(1&qt&&(t.j41(0,"span",2),t.DNE(1,vt,1,0,"span",5)(2,wt,1,0,"span",6),t.k0s()),2&qt){let Ut;const Ye=t.XpG();t.R7$(),t.vxM("rtl"===(Ut=Ye.dir)?1:2)}}function zt(qt,On){1&qt&&t.nrm(0,"span",3)}const xt=["nz-submenu",""],st=[[["","title",""]],"*"],Ct=["[title]","*"];function It(qt,On){1&qt&&t.SdG(0)}function Tt(qt,On){if(1&qt&&t.nrm(0,"div",3),2&qt){const Ut=t.XpG(),Ye=t.sdS(6);t.Y8G("mode",Ut.mode)("nzOpen",Ut.nzOpen)("@.disabled",!(null==Ut.noAnimation||!Ut.noAnimation.nzNoAnimation))("nzNoAnimation",null==Ut.noAnimation?null:Ut.noAnimation.nzNoAnimation)("menuClass",Ut.nzMenuClassName)("templateOutlet",Ye)}}function en(qt,On){if(1&qt){const Ut=t.RV6();t.j41(0,"div",6),t.bIt("subMenuMouseState",function(ue){t.eBV(Ut);const te=t.XpG(2);return t.Njj(te.setMouseEnterState(ue))}),t.k0s()}if(2&qt){const Ut=t.XpG(2),Ye=t.sdS(6);t.Y8G("theme",Ut.theme)("mode",Ut.mode)("nzOpen",Ut.nzOpen)("position",Ut.position)("nzDisabled",Ut.nzDisabled)("isMenuInsideDropDown",Ut.isMenuInsideDropDown)("templateOutlet",Ye)("menuClass",Ut.nzMenuClassName)("@.disabled",!(null==Ut.noAnimation||!Ut.noAnimation.nzNoAnimation))("nzNoAnimation",null==Ut.noAnimation?null:Ut.noAnimation.nzNoAnimation)}}function jt(qt,On){if(1&qt){const Ut=t.RV6();t.DNE(0,en,1,10,"ng-template",5),t.bIt("positionChange",function(ue){t.eBV(Ut);const te=t.XpG();return t.Njj(te.onPositionChange(ue))})}if(2&qt){const Ut=t.XpG(),Ye=t.sdS(1);t.Y8G("cdkConnectedOverlayPositions",Ut.overlayPositions)("cdkConnectedOverlayOrigin",Ye)("cdkConnectedOverlayWidth",Ut.triggerWidth)("cdkConnectedOverlayOpen",Ut.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function Vt(qt,On){1&qt&&t.SdG(0,1)}const fn=["titleElement"],Hn=["nz-menu-group",""],zn=["*",[["","title",""]]],bt=["*","[title]"];function At(qt,On){if(1&qt&&(t.qex(0),t.EFF(1),t.bVm()),2&qt){const Ut=t.XpG();t.R7$(),t.JRh(Ut.nzTitle)}}function Et(qt,On){1&qt&&t.SdG(0,1)}const Ot=new t.nKC("NzIsInDropDownMenuToken"),Wt=new t.nKC("NzMenuServiceLocalToken");let Ue=(()=>{class qt{constructor(){this.descendantMenuItemClick$=new r.B,this.childMenuItemClick$=new r.B,this.theme$=new g.t("light"),this.mode$=new g.t("vertical"),this.inlineIndent$=new g.t(24),this.isChildSubMenuOpen$=new g.t(!1)}onDescendantMenuItemClick(Ut){this.descendantMenuItemClick$.next(Ut)}onChildMenuItemClick(Ut){this.childMenuItemClick$.next(Ut)}setMode(Ut){this.mode$.next(Ut)}setTheme(Ut){this.theme$.next(Ut)}setInlineIndent(Ut){this.inlineIndent$.next(Ut)}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)};static#t=this.\u0275prov=t.jDH({token:qt,factory:qt.\u0275fac})}return qt})(),Ae=(()=>{class qt{onChildMenuItemClick(Ut){this.childMenuItemClick$.next(Ut)}setOpenStateWithoutDebounce(Ut){this.isCurrentSubMenuOpen$.next(Ut)}setMouseEnterTitleOrOverlayState(Ut){this.isMouseEnterTitleOrOverlay$.next(Ut)}constructor(Ut,Ye,ue){this.nzHostSubmenuService=Ut,this.nzMenuService=Ye,this.isMenuInsideDropDown=ue,this.mode$=this.nzMenuService.mode$.pipe((0,G.T)(ht=>"inline"===ht?"inline":"vertical"===ht||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new g.t(!1),this.isChildSubMenuOpen$=new g.t(!1),this.isMouseEnterTitleOrOverlay$=new r.B,this.childMenuItemClick$=new r.B,this.destroy$=new r.B,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const te=this.childMenuItemClick$.pipe((0,L.Z)(()=>this.mode$),(0,B.p)(ht=>"inline"!==ht||this.isMenuInsideDropDown),(0,A.u)(!1)),q=(0,e.h)(this.isMouseEnterTitleOrOverlay$,te);(0,M.z)([this.isChildSubMenuOpen$,q]).pipe((0,G.T)(([ht,at])=>ht||at),(0,w.Z)(150),(0,I.F)(),(0,F.Q)(this.destroy$)).pipe((0,I.F)()).subscribe(ht=>{this.setOpenStateWithoutDebounce(ht),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(ht):this.nzMenuService.isChildSubMenuOpen$.next(ht)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.KVO(qt,12),t.KVO(Ue),t.KVO(Ot))};static#t=this.\u0275prov=t.jDH({token:qt,factory:qt.\u0275fac})}return qt})(),ie=(()=>{class qt{clickMenuItem(Ut){this.nzDisabled?(Ut.preventDefault(),Ut.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(Ut){this.nzSelected=Ut,this.selected$.next(Ut)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const Ut=this.hasActiveLinks();this.nzSelected!==Ut&&(this.nzSelected=Ut,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const Ut=this.isLinkActive(this.router);return this.routerLink&&Ut(this.routerLink)||this.listOfRouterLink.some(Ut)}isLinkActive(Ut){return Ye=>Ut.isActive(Ye.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(Ut,Ye,ue,te,q,Xe,ht){this.nzMenuService=Ut,this.cdr=Ye,this.nzSubmenuService=ue,this.isMenuInsideDropDown=te,this.directionality=q,this.routerLink=Xe,this.router=ht,this.destroy$=new r.B,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new r.B,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,ht&&this.router.events.pipe((0,F.Q)(this.destroy$),(0,B.p)(at=>at instanceof x.wF)).subscribe(()=>{this.updateRouterActive()})}ngOnInit(){(0,M.z)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Ut,Ye])=>{this.inlinePaddingLeft="inline"===Ut?this.level*Ye:null}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,F.Q)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(Ut){Ut.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(Ue),t.rXU(t.gRc),t.rXU(Ae,8),t.rXU(Ot),t.rXU(J.dS,8),t.rXU(x.Wk,8),t.rXU(x.Ix,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-menu-item",""]],contentQueries:function(Ye,ue,te){if(1&Ye&&t.wni(te,x.Wk,5),2&Ye){let q;t.mGM(q=t.lsd())&&(ue.listOfRouterLink=q)}},hostVars:20,hostBindings:function(Ye,ue){1&Ye&&t.bIt("click",function(q){return ue.clickMenuItem(q)}),2&Ye&&(t.xc7("padding-left","rtl"===ue.dir?null:ue.nzPaddingLeft||ue.inlinePaddingLeft,"px")("padding-right","rtl"===ue.dir?ue.nzPaddingLeft||ue.inlinePaddingLeft:null,"px"),t.AVh("ant-dropdown-menu-item",ue.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",ue.isMenuInsideDropDown&&ue.nzSelected)("ant-dropdown-menu-item-danger",ue.isMenuInsideDropDown&&ue.nzDanger)("ant-dropdown-menu-item-disabled",ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-menu-item",!ue.isMenuInsideDropDown)("ant-menu-item-selected",!ue.isMenuInsideDropDown&&ue.nzSelected)("ant-menu-item-danger",!ue.isMenuInsideDropDown&&ue.nzDanger)("ant-menu-item-disabled",!ue.isMenuInsideDropDown&&ue.nzDisabled))},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",ne.cj],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzSelected:[2,"nzSelected","nzSelected",t.L39],nzDanger:[2,"nzDanger","nzDanger",t.L39],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",t.L39],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",t.L39]},exportAs:["nzMenuItem"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:Z,ngContentSelectors:pe,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(Ye,ue){1&Ye&&(t.NAR(),t.j41(0,"span",0),t.SdG(1),t.k0s())},encapsulation:2,changeDetection:0})}return qt})(),_e=(()=>{class qt{constructor(Ut,Ye,ue){this.elementRef=Ut,this.renderer=Ye,this.directionality=ue,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new r.B}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut})}ngOnChanges(Ut){const{mode:Ye,nzOpen:ue,menuClass:te}=Ut;(Ye||ue)&&this.calcMotionState(),te&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(q=>!!q).forEach(q=>{this.renderer.removeClass(this.elementRef.nativeElement,q)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(q=>!!q).forEach(q=>{this.renderer.addClass(this.elementRef.nativeElement,q)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(Ye,ue){2&Ye&&(t.zvX("@collapseMotion",ue.expandState),t.AVh("ant-menu-rtl","rtl"===ue.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],standalone:!0,features:[t.OA$,t.aNF],attrs:E,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(Ye,ue){1&Ye&&t.DNE(0,S,0,0,"ng-template",0),2&Ye&&t.Y8G("ngTemplateOutlet",ue.templateOutlet)},dependencies:[Ie.T3],encapsulation:2,data:{animation:[me.GE]},changeDetection:0})}return qt})(),oe=(()=>{class qt{constructor(Ut){this.directionality=Ut,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new t.bkB,this.expandState="collapsed",this.dir="ltr",this.destroy$=new r.B}setMouseState(Ut){this.nzDisabled||this.subMenuMouseState.next(Ut)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut})}ngOnChanges(Ut){const{mode:Ye,nzOpen:ue}=Ut;(Ye||ue)&&this.calcMotionState()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(Ye,ue){1&Ye&&t.bIt("mouseenter",function(){return ue.setMouseState(!0)})("mouseleave",function(){return ue.setMouseState(!1)}),2&Ye&&(t.zvX("@slideMotion",ue.expandState)("@zoomBigMotion",ue.expandState),t.AVh("ant-menu-light","light"===ue.theme)("ant-menu-dark","dark"===ue.theme)("ant-menu-submenu-placement-bottom","horizontal"===ue.mode)("ant-menu-submenu-placement-right","vertical"===ue.mode&&"right"===ue.position)("ant-menu-submenu-placement-left","vertical"===ue.mode&&"left"===ue.position)("ant-menu-submenu-rtl","rtl"===ue.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],standalone:!0,features:[t.OA$,t.aNF],attrs:R,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(Ye,ue){1&Ye&&(t.j41(0,"div",0),t.DNE(1,Y,0,0,"ng-template",1),t.k0s()),2&Ye&&(t.AVh("ant-dropdown-menu",ue.isMenuInsideDropDown)("ant-menu",!ue.isMenuInsideDropDown)("ant-dropdown-menu-vertical",ue.isMenuInsideDropDown)("ant-menu-vertical",!ue.isMenuInsideDropDown)("ant-dropdown-menu-sub",ue.isMenuInsideDropDown)("ant-menu-sub",!ue.isMenuInsideDropDown)("ant-menu-rtl","rtl"===ue.dir),t.Y8G("ngClass",ue.menuClass),t.R7$(),t.Y8G("ngTemplateOutlet",ue.templateOutlet))},dependencies:[Ie.YU,Ie.T3],encapsulation:2,data:{animation:[me.uX,me.U1]},changeDetection:0})}return qt})(),Fe=(()=>{class qt{constructor(Ut,Ye){this.cdr=Ut,this.directionality=Ye,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new t.bkB,this.subMenuMouseState=new t.bkB,this.dir="ltr",this.destroy$=new r.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(Ut){this.nzDisabled||this.subMenuMouseState.next(Ut)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(t.gRc),t.rXU(J.dS,8))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(Ye,ue){1&Ye&&t.bIt("click",function(){return ue.clickTitle()})("mouseenter",function(){return ue.setMouseState(!0)})("mouseleave",function(){return ue.setMouseState(!1)}),2&Ye&&(t.xc7("padding-left","rtl"===ue.dir?null:ue.paddingLeft,"px")("padding-right","rtl"===ue.dir?ue.paddingLeft:null,"px"),t.AVh("ant-dropdown-menu-submenu-title",ue.isMenuInsideDropDown)("ant-menu-submenu-title",!ue.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],standalone:!0,features:[t.aNF],attrs:se,ngContentSelectors:pe,decls:5,vars:3,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"]],template:function(Ye,ue){1&Ye&&(t.NAR(),t.DNE(0,Be,1,1,"span",0)(1,Pt,3,1,"ng-container",1),t.SdG(2),t.DNE(3,Le,3,1,"span",2)(4,zt,1,0,"span",3)),2&Ye&&(t.vxM(ue.nzIcon?0:-1),t.R7$(),t.Y8G("nzStringTemplateOutlet",ue.nzTitle),t.R7$(2),t.vxM(ue.isMenuInsideDropDown?3:4))},dependencies:[H.Y3,H.Dn,de.C,de.m],encapsulation:2,changeDetection:0})}return qt})();const et=[he.pn.rightTop,he.pn.right,he.pn.rightBottom,he.pn.leftTop,he.pn.left,he.pn.leftBottom],dt=[he.pn.bottomLeft,he.pn.bottomRight,he.pn.topRight,he.pn.topLeft];let Kt=(()=>{class qt{setOpenStateWithoutDebounce(Ut){this.nzSubmenuService.setOpenStateWithoutDebounce(Ut)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(Ut){this.isActive=Ut,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(Ut)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&"bottomLeft"===this.nzPlacement&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(Ut){const Ye=(0,he.jj)(Ut);"rightTop"===Ye||"rightBottom"===Ye||"right"===Ye?this.position="right":("leftTop"===Ye||"leftBottom"===Ye||"left"===Ye)&&(this.position="left")}constructor(Ut,Ye,ue,te,q,Xe,ht){this.nzMenuService=Ut,this.cdr=Ye,this.nzSubmenuService=ue,this.platform=te,this.isMenuInsideDropDown=q,this.directionality=Xe,this.noAnimation=ht,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzPlacement="bottomLeft",this.nzOpenChange=new t.bkB,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new r.B,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=et,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}ngOnInit(){this.nzMenuService.theme$.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.theme=Ut,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.mode=Ut,"horizontal"===Ut?this.overlayPositions=[he.pn[this.nzPlacement],...dt]:"vertical"===Ut&&(this.overlayPositions=et),this.cdr.markForCheck()}),(0,M.z)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Ut,Ye])=>{this.inlinePaddingLeft="inline"===Ut?this.level*Ye:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.isActive=Ut,Ut!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=Ut,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const Ut=this.listOfNzMenuItemDirective,Ye=Ut.changes,ue=(0,e.h)(Ye,...Ut.map(te=>te.selected$));Ye.pipe((0,X.Z)(Ut),(0,V.n)(()=>ue),(0,X.Z)(!0),(0,G.T)(()=>Ut.some(te=>te.nzSelected)),(0,F.Q)(this.destroy$)).subscribe(te=>{this.isSelected=te,this.cdr.markForCheck()})}ngOnChanges(Ut){const{nzOpen:Ye}=Ut;Ye&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(Ue),t.rXU(t.gRc),t.rXU(Ae),t.rXU(z.OD),t.rXU(Ot),t.rXU(J.dS,8),t.rXU(Oe.z,9))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-submenu",""]],contentQueries:function(Ye,ue,te){if(1&Ye&&(t.wni(te,qt,5),t.wni(te,ie,5)),2&Ye){let q;t.mGM(q=t.lsd())&&(ue.listOfNzSubMenuComponent=q),t.mGM(q=t.lsd())&&(ue.listOfNzMenuItemDirective=q)}},viewQuery:function(Ye,ue){if(1&Ye&&t.GBs(be.$Q,7,t.aKT),2&Ye){let te;t.mGM(te=t.lsd())&&(ue.cdkOverlayOrigin=te.first)}},hostVars:34,hostBindings:function(Ye,ue){2&Ye&&t.AVh("ant-dropdown-menu-submenu",ue.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-dropdown-menu-submenu-open",ue.isMenuInsideDropDown&&ue.nzOpen)("ant-dropdown-menu-submenu-selected",ue.isMenuInsideDropDown&&ue.isSelected)("ant-dropdown-menu-submenu-vertical",ue.isMenuInsideDropDown&&"vertical"===ue.mode)("ant-dropdown-menu-submenu-horizontal",ue.isMenuInsideDropDown&&"horizontal"===ue.mode)("ant-dropdown-menu-submenu-inline",ue.isMenuInsideDropDown&&"inline"===ue.mode)("ant-dropdown-menu-submenu-active",ue.isMenuInsideDropDown&&ue.isActive)("ant-menu-submenu",!ue.isMenuInsideDropDown)("ant-menu-submenu-disabled",!ue.isMenuInsideDropDown&&ue.nzDisabled)("ant-menu-submenu-open",!ue.isMenuInsideDropDown&&ue.nzOpen)("ant-menu-submenu-selected",!ue.isMenuInsideDropDown&&ue.isSelected)("ant-menu-submenu-vertical",!ue.isMenuInsideDropDown&&"vertical"===ue.mode)("ant-menu-submenu-horizontal",!ue.isMenuInsideDropDown&&"horizontal"===ue.mode)("ant-menu-submenu-inline",!ue.isMenuInsideDropDown&&"inline"===ue.mode)("ant-menu-submenu-active",!ue.isMenuInsideDropDown&&ue.isActive)("ant-menu-submenu-rtl","rtl"===ue.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:[2,"nzOpen","nzOpen",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],standalone:!0,features:[t.Jv_([Ae]),t.GFd,t.OA$,t.aNF],attrs:xt,ngContentSelectors:Ct,decls:7,vars:8,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["cdkConnectedOverlay","",3,"positionChange","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation"]],template:function(Ye,ue){if(1&Ye){const te=t.RV6();t.NAR(st),t.j41(0,"div",2,0),t.bIt("subMenuMouseState",function(Xe){return t.eBV(te),t.Njj(ue.setMouseEnterState(Xe))})("toggleSubMenu",function(){return t.eBV(te),t.Njj(ue.toggleSubMenu())}),t.DNE(2,It,1,0),t.k0s(),t.DNE(3,Tt,1,6,"div",3)(4,jt,1,5,null,4)(5,Vt,1,0,"ng-template",null,1,t.C5r)}2&Ye&&(t.Y8G("nzIcon",ue.nzIcon)("nzTitle",ue.nzTitle)("mode",ue.mode)("nzDisabled",ue.nzDisabled)("isMenuInsideDropDown",ue.isMenuInsideDropDown)("paddingLeft",ue.nzPaddingLeft||ue.inlinePaddingLeft),t.R7$(2),t.vxM(ue.nzTitle?-1:2),t.R7$(),t.vxM("inline"===ue.mode?3:4))},dependencies:[Fe,_e,Oe.z,oe,be.z_,be.WB,be.$Q],encapsulation:2,changeDetection:0})}return qt})();function cn(){const qt=(0,t.WQX)(Ue,{skipSelf:!0,optional:!0}),On=(0,t.WQX)(Wt);return qt??On}function Tn(){return(0,t.WQX)(Ot,{skipSelf:!0,optional:!0})??!1}let Wn=(()=>{class qt{setInlineCollapsed(Ut){this.nzInlineCollapsed=Ut,this.inlineCollapsed$.next(Ut)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(Ut=>Ut.nzOpen),this.listOfNzSubMenuComponent.forEach(Ut=>Ut.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(Ut=>Ut.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}constructor(Ut,Ye,ue,te){this.nzMenuService=Ut,this.isMenuInsideDropDown=Ye,this.cdr=ue,this.directionality=te,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new t.bkB,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new g.t(this.nzInlineCollapsed),this.mode$=new g.t(this.nzMode),this.destroy$=new r.B,this.listOfOpenedNzSubMenuComponent=[]}ngOnInit(){(0,M.z)([this.inlineCollapsed$,this.mode$]).pipe((0,F.Q)(this.destroy$)).subscribe(([Ut,Ye])=>{this.actualMode=Ut?"vertical":Ye,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.nzClick.emit(Ut),this.nzSelectable&&!Ut.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(Ye=>Ye.setSelectedState(Ye===Ut))}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,F.Q)(this.destroy$)).subscribe(Ut=>{this.dir=Ut,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,F.Q)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(Ut){const{nzInlineCollapsed:Ye,nzInlineIndent:ue,nzTheme:te,nzMode:q}=Ut;Ye&&this.inlineCollapsed$.next(this.nzInlineCollapsed),ue&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),te&&this.nzMenuService.setTheme(this.nzTheme),q&&(this.mode$.next(this.nzMode),!Ut.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(Xe=>Xe.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(Ue),t.rXU(Ot),t.rXU(t.gRc),t.rXU(J.dS,8))};static#t=this.\u0275dir=t.FsC({type:qt,selectors:[["","nz-menu",""]],contentQueries:function(Ye,ue,te){if(1&Ye&&(t.wni(te,ie,5),t.wni(te,Kt,5)),2&Ye){let q;t.mGM(q=t.lsd())&&(ue.listOfNzMenuItemDirective=q),t.mGM(q=t.lsd())&&(ue.listOfNzSubMenuComponent=q)}},hostVars:34,hostBindings:function(Ye,ue){2&Ye&&t.AVh("ant-dropdown-menu",ue.isMenuInsideDropDown)("ant-dropdown-menu-root",ue.isMenuInsideDropDown)("ant-dropdown-menu-light",ue.isMenuInsideDropDown&&"light"===ue.nzTheme)("ant-dropdown-menu-dark",ue.isMenuInsideDropDown&&"dark"===ue.nzTheme)("ant-dropdown-menu-vertical",ue.isMenuInsideDropDown&&"vertical"===ue.actualMode)("ant-dropdown-menu-horizontal",ue.isMenuInsideDropDown&&"horizontal"===ue.actualMode)("ant-dropdown-menu-inline",ue.isMenuInsideDropDown&&"inline"===ue.actualMode)("ant-dropdown-menu-inline-collapsed",ue.isMenuInsideDropDown&&ue.nzInlineCollapsed)("ant-menu",!ue.isMenuInsideDropDown)("ant-menu-root",!ue.isMenuInsideDropDown)("ant-menu-light",!ue.isMenuInsideDropDown&&"light"===ue.nzTheme)("ant-menu-dark",!ue.isMenuInsideDropDown&&"dark"===ue.nzTheme)("ant-menu-vertical",!ue.isMenuInsideDropDown&&"vertical"===ue.actualMode)("ant-menu-horizontal",!ue.isMenuInsideDropDown&&"horizontal"===ue.actualMode)("ant-menu-inline",!ue.isMenuInsideDropDown&&"inline"===ue.actualMode)("ant-menu-inline-collapsed",!ue.isMenuInsideDropDown&&ue.nzInlineCollapsed)("ant-menu-rtl","rtl"===ue.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",t.L39],nzSelectable:[2,"nzSelectable","nzSelectable",t.L39]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],standalone:!0,features:[t.Jv_([{provide:Wt,useClass:Ue},{provide:Ue,useFactory:cn},{provide:Ot,useFactory:Tn}]),t.GFd,t.OA$]})}return qt})();function kn(){return(0,t.WQX)(Ot,{optional:!0,skipSelf:!0})??!1}let Vn=(()=>{class qt{constructor(Ut,Ye,ue){this.elementRef=Ut,this.renderer=Ye,this.isMenuInsideDropDown=ue,this.renderer.addClass(Ut.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const Ut=this.titleElement.nativeElement.nextElementSibling;Ut&&this.renderer.addClass(Ut,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(Ot))};static#t=this.\u0275cmp=t.VBU({type:qt,selectors:[["","nz-menu-group",""]],viewQuery:function(Ye,ue){if(1&Ye&&t.GBs(fn,5),2&Ye){let te;t.mGM(te=t.lsd())&&(ue.titleElement=te.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],standalone:!0,features:[t.Jv_([{provide:Ot,useFactory:kn}]),t.aNF],attrs:Hn,ngContentSelectors:bt,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(Ye,ue){1&Ye&&(t.NAR(zn),t.j41(0,"div",null,0),t.DNE(2,At,2,1,"ng-container",1)(3,Et,1,0),t.k0s(),t.SdG(4)),2&Ye&&(t.AVh("ant-menu-item-group-title",!ue.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",ue.isMenuInsideDropDown),t.R7$(2),t.Y8G("nzStringTemplateOutlet",ue.nzTitle),t.R7$(),t.vxM(ue.nzTitle?-1:3))},dependencies:[de.C,de.m],encapsulation:2,changeDetection:0})}return qt})(),Un=(()=>{class qt{constructor(Ut){this.elementRef=Ut}static#e=this.\u0275fac=function(Ye){return new(Ye||qt)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:qt,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"],standalone:!0})}return qt})(),dn=(()=>{class qt{static#e=this.\u0275fac=function(Ye){return new(Ye||qt)};static#t=this.\u0275mod=t.$C({type:qt});static#n=this.\u0275inj=t.G2t({imports:[Kt,Vn,Fe]})}return qt})()},2096:(Rt,De,c)=>{c.d(De,{A9:()=>q,F2:()=>at,J9:()=>ue,N_:()=>te,U6:()=>St,or:()=>dt});var t=c(4523),r=c(7987),g=c(6939),e=c(3953),M=c(1413),G=c(3726),L=c(9030),B=c(6977),A=c(5964),w=c(6697),I=c(9172),F=c(3451),X=c(5463),V=c(317),x=c(177),ne=c(513),J=c(7806),be=c(5103),Oe=c(3384),he=c(9969),Ie=c(4500),me=c(851),de=c(6042),H=c(1377),z=c(6389),Z=c(5930),pe=c(1391),E=c(7336),S=c(8203);const R=["nz-modal-close",""];function Y(Ee,Je){if(1&Ee&&(e.qex(0),e.nrm(1,"span",2),e.bVm()),2&Ee){const re=Je.$implicit;e.R7$(),e.Y8G("nzType",re)}}const se=["modalElement"];function Be(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",16),e.bIt("click",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onCloseClick())}),e.k0s()}}function Pt(Ee,Je){if(1&Ee&&(e.qex(0),e.nrm(1,"span",12),e.bVm()),2&Ee){const re=e.XpG();e.R7$(),e.Y8G("innerHTML",re.config.nzTitle,e.npT)}}function vt(Ee,Je){}function wt(Ee,Je){if(1&Ee&&e.nrm(0,"div",12),2&Ee){const re=e.XpG();e.Y8G("innerHTML",re.config.nzContent,e.npT)}}function Le(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onCancel())}),e.EFF(1),e.k0s()}if(2&Ee){const re=e.XpG();e.Y8G("nzLoading",re.config.nzCancelLoading)("disabled",re.config.nzCancelDisabled),e.BMQ("cdkFocusInitial","cancel"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzCancelText||re.locale.cancelText," ")}}function zt(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",18),e.bIt("click",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onOk())}),e.EFF(1),e.k0s()}if(2&Ee){const re=e.XpG();e.Y8G("nzType",re.config.nzOkType)("nzLoading",re.config.nzOkLoading)("disabled",re.config.nzOkDisabled)("nzDanger",re.config.nzOkDanger),e.BMQ("cdkFocusInitial","ok"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzOkText||re.locale.okText," ")}}const xt=["nz-modal-footer",""],st=(Ee,Je)=>({$implicit:Ee,modalRef:Je});function Ct(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",3),e.bIt("click",function(){const gt=e.eBV(re).$implicit,Ke=e.XpG(4);return e.Njj(Ke.onButtonClick(gt))}),e.EFF(1),e.k0s()}if(2&Ee){const re=Je.$implicit,ze=e.XpG(4);e.Y8G("hidden",!ze.getButtonCallableProp(re,"show"))("nzLoading",ze.getButtonCallableProp(re,"loading"))("disabled",ze.getButtonCallableProp(re,"disabled"))("nzType",re.type)("nzDanger",re.danger)("nzShape",re.shape)("nzSize",re.size)("nzGhost",re.ghost),e.R7$(),e.SpI(" ",re.label," ")}}function It(Ee,Je){if(1&Ee&&e.Z7z(0,Ct,2,9,"button",2,e.fX1),2&Ee){const re=e.XpG(3);e.Dyx(re.buttons)}}function Tt(Ee,Je){if(1&Ee&&e.nrm(0,"div",1),2&Ee){const re=e.XpG(3);e.Y8G("innerHTML",re.config.nzFooter,e.npT)}}function en(Ee,Je){if(1&Ee&&(e.qex(0),e.DNE(1,It,2,0)(2,Tt,1,1,"div",1),e.bVm()),2&Ee){const re=e.XpG(2);e.R7$(),e.vxM(re.buttonsFooter?1:2)}}function jt(Ee,Je){if(1&Ee&&e.DNE(0,en,3,1,"ng-container",0),2&Ee){const re=e.XpG();e.Y8G("nzStringTemplateOutlet",re.config.nzFooter)("nzStringTemplateOutletContext",e.l_i(2,st,re.config.nzData,re.modalRef))}}function Vt(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){e.eBV(re);const gt=e.XpG(2);return e.Njj(gt.onCancel())}),e.EFF(1),e.k0s()}if(2&Ee){const re=e.XpG(2);e.Y8G("nzLoading",re.config.nzCancelLoading)("disabled",re.config.nzCancelDisabled),e.BMQ("cdkFocusInitial","cancel"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzCancelText||re.locale.cancelText," ")}}function fn(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(re);const gt=e.XpG(2);return e.Njj(gt.onOk())}),e.EFF(1),e.k0s()}if(2&Ee){const re=e.XpG(2);e.Y8G("nzType",re.config.nzOkType)("nzDanger",re.config.nzOkDanger)("nzLoading",re.config.nzOkLoading)("disabled",re.config.nzOkDisabled),e.BMQ("cdkFocusInitial","ok"===re.config.nzAutofocus||null),e.R7$(),e.SpI(" ",re.config.nzOkText||re.locale.okText," ")}}function Hn(Ee,Je){if(1&Ee&&e.DNE(0,Vt,2,4,"button",4)(1,fn,2,6,"button",5),2&Ee){const re=e.XpG();e.vxM(null!==re.config.nzCancelText?0:-1),e.R7$(),e.vxM(null!==re.config.nzOkText?1:-1)}}const zn=["nz-modal-title",""];function bt(Ee,Je){if(1&Ee&&(e.qex(0),e.nrm(1,"div",2),e.bVm()),2&Ee){const re=e.XpG();e.R7$(),e.Y8G("innerHTML",re.config.nzTitle,e.npT)}}function At(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onCloseClick())}),e.k0s()}}function Et(Ee,Je){if(1&Ee&&e.nrm(0,"div",10),2&Ee){const re=e.XpG();e.xc7("cursor",re.config.nzDraggable?"move":"auto")}}function Ot(Ee,Je){}function Wt(Ee,Je){if(1&Ee&&e.nrm(0,"div",7),2&Ee){const re=e.XpG();e.Y8G("innerHTML",re.config.nzContent,e.npT)}}function Ue(Ee,Je){if(1&Ee){const re=e.RV6();e.j41(0,"div",11),e.bIt("cancelTriggered",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onCloseClick())})("okTriggered",function(){e.eBV(re);const gt=e.XpG();return e.Njj(gt.onOkClick())}),e.k0s()}if(2&Ee){const re=e.XpG();e.Y8G("modalRef",re.modalRef)}}const Ae=()=>{};class ie{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzDraggable=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=Ae,this.nzOnOk=Ae,this.nzIconType="question-circle"}}const Fe="ant-modal-mask",et="modal",dt=new e.nKC("NZ_MODAL_DATA"),Kt={modalContainer:(0,he.hZ)("modalContainer",[(0,he.wk)("void, exit",(0,he.iF)({})),(0,he.wk)("enter",(0,he.iF)({})),(0,he.kY)("* => enter",(0,he.i0)(".24s",(0,he.iF)({}))),(0,he.kY)("* => void, * => exit",(0,he.i0)(".2s",(0,he.iF)({})))])};let cn=(()=>{class Ee{constructor(re){this.config=re}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(ie))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],standalone:!0,features:[e.aNF],attrs:R,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(ze,gt){1&ze&&(e.j41(0,"span",0),e.DNE(1,Y,2,1,"ng-container",1),e.k0s()),2&ze&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",gt.config.nzCloseIcon))},dependencies:[be.Y3,be.Dn,J.C,J.m],encapsulation:2,changeDetection:0})}return Ee})();function Wn(Ee,Je,re){return typeof Ee>"u"?typeof Je>"u"?re:Je:Ee}function kn(Ee){const{nzCentered:Je,nzMask:re,nzMaskClosable:ze,nzClosable:gt,nzOkLoading:Ke,nzOkDisabled:Pe,nzCancelDisabled:Re,nzCancelLoading:$,nzKeyboard:ce,nzNoAnimation:N,nzDraggable:ke,nzContent:ve,nzFooter:K,nzZIndex:U,nzWidth:ge,nzWrapClassName:qe,nzClassName:rt,nzStyle:Ft,nzTitle:rn,nzCloseIcon:Cn,nzMaskStyle:Zn,nzBodyStyle:jn,nzOkText:Gn,nzCancelText:Ti,nzOkType:Oi,nzOkDanger:lo,nzIconType:Zi,nzModalType:Bo,nzOnOk:bo,nzOnCancel:zr,nzAfterOpen:rr,nzAfterClose:lt,nzCloseOnNavigation:Lt,nzAutofocus:$t}=Ee;return{nzCentered:Je,nzMask:re,nzMaskClosable:ze,nzDraggable:ke,nzClosable:gt,nzOkLoading:Ke,nzOkDisabled:Pe,nzCancelDisabled:Re,nzCancelLoading:$,nzKeyboard:ce,nzNoAnimation:N,nzContent:ve,nzFooter:K,nzZIndex:U,nzWidth:ge,nzWrapClassName:qe,nzClassName:rt,nzStyle:Ft,nzTitle:rn,nzCloseIcon:Cn,nzMaskStyle:Zn,nzBodyStyle:jn,nzOkText:Gn,nzCancelText:Ti,nzOkType:Oi,nzOkDanger:lo,nzIconType:Zi,nzModalType:Bo,nzOnOk:bo,nzOnCancel:zr,nzAfterOpen:rr,nzAfterClose:lt,nzCloseOnNavigation:Lt,nzAutofocus:$t}}function Vn(){throw Error("Attempting to attach modal content after content is already attached")}let Un=(()=>{class Ee extends g.lb{get showMask(){const re=this.nzConfigService.getConfigForComponent(et)||{};return!!Wn(this.config.nzMask,re.nzMask,!0)}get maskClosable(){const re=this.nzConfigService.getConfigForComponent(et)||{};return!!Wn(this.config.nzMaskClosable,re.nzMaskClosable,!0)}constructor(re,ze,gt,Ke,Pe,Re,$,ce,N,ke){super(),this.ngZone=re,this.host=ze,this.focusTrapFactory=gt,this.cdr=Ke,this.render=Pe,this.overlayRef=Re,this.nzConfigService=$,this.config=ce,this.animationType=ke,this.animationStateChanged=new e.bkB,this.containerClick=new e.bkB,this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new M.B,this.document=N,this.dir=Re.getDirection(),this.isStringContent="string"==typeof ce.nzContent,this.nzConfigService.getConfigChangeEventForComponent(et).pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}onContainerClick(re){re.target===re.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(re){return this.portalOutlet.hasAttached()&&Vn(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(re)}attachTemplatePortal(re){return this.portalOutlet.hasAttached()&&Vn(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(re)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const re=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const ze=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),gt=(0,V.Mk)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(re,"transform-origin",`${gt.left+ze.width/2-re.offsetLeft}px ${gt.top+ze.height/2-re.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>(0,Ie.j)(()=>this.host.nativeElement.focus())))}trapFocus(){const re=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const ze=this.document.activeElement;ze!==re&&!re.contains(ze)&&re.focus()}}restoreFocus(){const re=this.elementFocusedBeforeModalWasOpened;if(re&&"function"==typeof re.focus){const ze=this.document.activeElement,gt=this.host.nativeElement;(!ze||ze===this.document.body||ze===gt||gt.contains(ze))&&re.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const re=this.modalElementRef.nativeElement,ze=this.overlayRef.backdropElement;re.classList.add("ant-zoom-enter"),re.classList.add("ant-zoom-enter-active"),ze&&(ze.classList.add("ant-fade-enter"),ze.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const re=this.modalElementRef.nativeElement;re.classList.add("ant-zoom-leave"),re.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(re=!1){const ze=this.overlayRef.backdropElement;if(ze){if(this.animationDisabled()||re)return void ze.classList.remove(Fe);ze.classList.add("ant-fade-leave"),ze.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const re=this.overlayRef.backdropElement,ze=this.modalElementRef.nativeElement;re&&(re.classList.remove("ant-fade-enter"),re.classList.remove("ant-fade-enter-active")),ze.classList.remove("ant-zoom-enter"),ze.classList.remove("ant-zoom-enter-active"),ze.classList.remove("ant-zoom-leave"),ze.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const re=this.overlayRef.backdropElement;re&&(0,V.n9)(this.config.nzZIndex)&&this.render.setStyle(re,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const re=this.overlayRef.backdropElement;if(re&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(gt=>{this.render.removeStyle(re,gt)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const ze={...this.config.nzMaskStyle};Object.keys(ze).forEach(gt=>{this.render.setStyle(re,gt,ze[gt])}),this.oldMaskStyle=ze}}updateMaskClassname(){const re=this.overlayRef.backdropElement;re&&(this.showMask?re.classList.add(Fe):re.classList.remove(Fe))}onAnimationDone(re){"enter"===re.toState?this.trapFocus():"exit"===re.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(re)}onAnimationStart(re){"enter"===re.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===re.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(re)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(!0),this.destroy$.complete()}setupMouseListeners(re){this.ngZone.runOutsideAngular(()=>{(0,G.R)(this.host.nativeElement,"mouseup").pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,G.R)(re.nativeElement,"mousedown").pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}static#e=this.\u0275fac=function(ze){e.QTQ()};static#t=this.\u0275dir=e.FsC({type:Ee,features:[e.Vt3]})}return Ee})(),dn=(()=>{class Ee extends Un{constructor(re,ze,gt,Ke,Pe,Re,$,ce,N,ke,ve){super(re,gt,Ke,Pe,Re,$,ce,N,ke,ve),this.i18n=ze,this.config=N,this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(e.SKi),e.rXU(H.Og),e.rXU(e.aKT),e.rXU(me.GX),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(r.yY),e.rXU(de.yx),e.rXU(ie),e.rXU(x.qQ,8),e.rXU(e.bc$,8))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["nz-modal-confirm-container"]],viewQuery:function(ze,gt){if(1&ze&&(e.GBs(g.I3,7),e.GBs(se,7)),2&ze){let Ke;e.mGM(Ke=e.lsd())&&(gt.portalOutlet=Ke.first),e.mGM(Ke=e.lsd())&&(gt.modalElementRef=Ke.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ze,gt){1&ze&&(e.Kam("@modalContainer.start",function(Pe){return gt.onAnimationStart(Pe)})("@modalContainer.done",function(Pe){return gt.onAnimationDone(Pe)}),e.bIt("click",function(Pe){return gt.onContainerClick(Pe)})),2&ze&&(e.zvX("@.disabled",gt.config.nzNoAnimation)("@modalContainer",gt.state),e.HbH(gt.config.nzWrapClassName?"ant-modal-wrap "+gt.config.nzWrapClassName:"ant-modal-wrap"),e.xc7("z-index",gt.config.nzZIndex),e.AVh("ant-modal-wrap-rtl","rtl"===gt.dir)("ant-modal-centered",gt.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],standalone:!0,features:[e.Vt3,e.aNF],decls:17,vars:13,consts:[["modalElement",""],["role","document",1,"ant-modal",3,"ngClass","ngStyle"],[1,"ant-modal-content"],["nz-modal-close",""],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger"],["nz-modal-close","",3,"click"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzLoading","disabled","nzDanger"]],template:function(ze,gt){1&ze&&(e.j41(0,"div",1,0),e.nI1(2,"nzToCssUnit"),e.j41(3,"div",2),e.DNE(4,Be,1,0,"button",3),e.j41(5,"div",4)(6,"div",5)(7,"div",6),e.nrm(8,"span",7),e.j41(9,"span",8),e.DNE(10,Pt,2,1,"ng-container",9),e.k0s(),e.j41(11,"div",10),e.DNE(12,vt,0,0,"ng-template",11)(13,wt,1,1,"div",12),e.k0s()(),e.j41(14,"div",13),e.DNE(15,Le,2,4,"button",14)(16,zt,2,6,"button",15),e.k0s()()()()()),2&ze&&(e.xc7("width",e.bMT(2,11,null==gt.config?null:gt.config.nzWidth)),e.Y8G("ngClass",gt.config.nzClassName)("ngStyle",gt.config.nzStyle),e.R7$(4),e.vxM(gt.config.nzClosable?4:-1),e.R7$(),e.Y8G("ngStyle",gt.config.nzBodyStyle),e.R7$(3),e.Y8G("nzType",gt.config.nzIconType),e.R7$(2),e.Y8G("nzStringTemplateOutlet",gt.config.nzTitle),e.R7$(3),e.vxM(gt.isStringContent?13:-1),e.R7$(2),e.vxM(null!==gt.config.nzCancelText?15:-1),e.R7$(),e.vxM(null!==gt.config.nzOkText?16:-1))},dependencies:[x.YU,x.B3,Oe.Qe,Oe.Zu,be.Y3,be.Dn,cn,J.C,J.m,g.jc,g.I3,ne.Zw,ne.aO,z.c,Z.p],encapsulation:2,data:{animation:[Kt.modalContainer]}})}return Ee})(),qt=(()=>{class Ee{constructor(re,ze){this.i18n=re,this.config=ze,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.destroy$=new M.B,Array.isArray(ze.nzFooter)&&(this.buttonsFooter=!0,this.buttons=ze.nzFooter.map(On)),this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(re,ze){const gt=re[ze],Ke=this.modalRef.getContentComponent();return"function"==typeof gt?gt.apply(re,Ke&&[Ke]):gt}onButtonClick(re){if(!this.getButtonCallableProp(re,"loading")){const gt=this.getButtonCallableProp(re,"onClick");re.autoLoading&&(0,V.yL)(gt)&&(re.loading=!0,gt.then(()=>re.loading=!1).catch(Ke=>{throw re.loading=!1,Ke}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(H.Og),e.rXU(ie))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],standalone:!0,features:[e.aNF],attrs:xt,decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"click","hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzDanger","nzLoading","disabled"]],template:function(ze,gt){1&ze&&e.DNE(0,jt,1,5,"ng-container")(1,Hn,2,2),2&ze&&e.vxM(gt.config.nzFooter?0:1)},dependencies:[J.C,J.m,ne.Zw,ne.aO,z.c,Z.p],encapsulation:2})}return Ee})();function On(Ee){return{type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1,...Ee}}let Ut=(()=>{class Ee{constructor(re){this.config=re}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(ie))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],standalone:!0,features:[e.aNF],attrs:zn,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(ze,gt){1&ze&&(e.j41(0,"div",0),e.DNE(1,bt,2,1,"ng-container",1),e.k0s()),2&ze&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",gt.config.nzTitle))},dependencies:[J.C,J.m],encapsulation:2,changeDetection:0})}return Ee})(),Ye=(()=>{class Ee extends Un{constructor(re,ze,gt,Ke,Pe,Re,$,ce,N,ke){super(re,ze,gt,Ke,Pe,Re,$,ce,N,ke),this.config=ce}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(me.GX),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(r.yY),e.rXU(de.yx),e.rXU(ie),e.rXU(x.qQ,8),e.rXU(e.bc$,8))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["nz-modal-container"]],viewQuery:function(ze,gt){if(1&ze&&(e.GBs(g.I3,7),e.GBs(se,7)),2&ze){let Ke;e.mGM(Ke=e.lsd())&&(gt.portalOutlet=Ke.first),e.mGM(Ke=e.lsd())&&(gt.modalElementRef=Ke.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(ze,gt){1&ze&&(e.Kam("@modalContainer.start",function(Pe){return gt.onAnimationStart(Pe)})("@modalContainer.done",function(Pe){return gt.onAnimationDone(Pe)}),e.bIt("click",function(Pe){return gt.onContainerClick(Pe)})),2&ze&&(e.zvX("@.disabled",gt.config.nzNoAnimation)("@modalContainer",gt.state),e.HbH(gt.config.nzWrapClassName?"ant-modal-wrap "+gt.config.nzWrapClassName:"ant-modal-wrap"),e.xc7("z-index",gt.config.nzZIndex),e.AVh("ant-modal-wrap-rtl","rtl"===gt.dir)("ant-modal-centered",gt.config.nzCentered))},exportAs:["nzModalContainer"],standalone:!0,features:[e.Vt3,e.aNF],decls:10,vars:12,consts:[["modalElement",""],["cdkDrag","","cdkDragBoundary",".cdk-overlay-container","role","document",1,"ant-modal",3,"cdkDragDisabled","ngClass","ngStyle"],[1,"ant-modal-content"],["nz-modal-close",""],["nz-modal-title","","cdkDragHandle","",3,"cursor"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef"],["nz-modal-close","",3,"click"],["nz-modal-title","","cdkDragHandle",""],["nz-modal-footer","",3,"cancelTriggered","okTriggered","modalRef"]],template:function(ze,gt){1&ze&&(e.j41(0,"div",1,0),e.nI1(2,"nzToCssUnit"),e.j41(3,"div",2),e.DNE(4,At,1,0,"button",3)(5,Et,1,2,"div",4),e.j41(6,"div",5),e.DNE(7,Ot,0,0,"ng-template",6)(8,Wt,1,1,"div",7),e.k0s(),e.DNE(9,Ue,1,1,"div",8),e.k0s()()),2&ze&&(e.xc7("width",e.bMT(2,10,null==gt.config?null:gt.config.nzWidth)),e.Y8G("cdkDragDisabled",!gt.config.nzDraggable)("ngClass",gt.config.nzClassName)("ngStyle",gt.config.nzStyle),e.R7$(4),e.vxM(gt.config.nzClosable?4:-1),e.R7$(),e.vxM(gt.config.nzTitle?5:-1),e.R7$(),e.Y8G("ngStyle",gt.config.nzBodyStyle),e.R7$(2),e.vxM(gt.isStringContent?8:-1),e.R7$(),e.vxM(null!==gt.config.nzFooter?9:-1))},dependencies:[x.YU,x.B3,cn,Ut,g.jc,g.I3,qt,Oe.Qe,Oe.Zu,pe.T1,pe.Fb],encapsulation:2,data:{animation:[Kt.modalContainer]}})}return Ee})();class ue{constructor(Je,re,ze){this.overlayRef=Je,this.config=re,this.containerInstance=ze,this.componentInstance=null,this.componentRef=null,this.state=0,this.afterClose=new M.B,this.afterOpen=new M.B,this.destroy$=new M.B,ze.animationStateChanged.pipe((0,A.p)(gt=>"done"===gt.phaseName&&"enter"===gt.toState),(0,w.s)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),re.nzAfterOpen instanceof e.bkB&&re.nzAfterOpen.emit()}),ze.animationStateChanged.pipe((0,A.p)(gt=>"done"===gt.phaseName&&"exit"===gt.toState),(0,w.s)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),ze.containerClick.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),Je.keydownEvents().pipe((0,A.p)(gt=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&>.keyCode===E._f&&!(0,E.rp)(gt))).subscribe(gt=>{gt.preventDefault(),this.trigger("cancel")}),ze.cancelTriggered.pipe((0,B.Q)(this.destroy$)).subscribe(()=>this.trigger("cancel")),ze.okTriggered.pipe((0,B.Q)(this.destroy$)).subscribe(()=>this.trigger("ok")),Je.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),re.nzAfterClose instanceof e.bkB&&re.nzAfterClose.emit(this.result),this.componentInstance=null,this.componentRef=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}getElement(){return this.containerInstance.getNativeElement()}destroy(Je){this.close(Je)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(Je){0===this.state&&(this.result=Je,this.containerInstance.animationStateChanged.pipe((0,A.p)(re=>"start"===re.phaseName),(0,w.s)(1)).subscribe(re=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},re.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(Je){Object.assign(this.config,Je),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(Je){var re=this;return(0,t.A)(function*(){if(1===re.state)return;const ze={ok:re.config.nzOnOk,cancel:re.config.nzOnCancel}[Je],gt={ok:"nzOkLoading",cancel:"nzCancelLoading"}[Je];if(!re.config[gt])if(ze instanceof e.bkB)ze.emit(re.getContentComponent());else if("function"==typeof ze){const Pe=ze(re.getContentComponent());if((0,V.yL)(Pe)){re.config[gt]=!0;let Re=!1;try{Re=yield Pe}finally{re.config[gt]=!1,re.closeWhitResult(Re)}}else re.closeWhitResult(Pe)}})()}closeWhitResult(Je){!1!==Je&&this.close(Je)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let te=(()=>{class Ee{get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const re=this.parentModal;return re?re._afterAllClosed:this.afterAllClosedAtThisLevel}constructor(re,ze,gt,Ke,Pe){this.overlay=re,this.injector=ze,this.nzConfigService=gt,this.parentModal=Ke,this.directionality=Pe,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new M.B,this.afterAllClose=(0,L.v)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,I.Z)(void 0)))}create(re){return this.open(re.nzContent,re)}closeAll(){this.closeModals(this.openModals)}confirm(re={},ze="confirm"){return"nzFooter"in re&&(0,F.R8)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in re||(re.nzWidth=416),"nzMaskClosable"in re||(re.nzMaskClosable=!1),re.nzModalType="confirm",re.nzClassName=`ant-modal-confirm ant-modal-confirm-${ze} ${re.nzClassName||""}`,this.create(re)}info(re={}){return this.confirmFactory(re,"info")}success(re={}){return this.confirmFactory(re,"success")}error(re={}){return this.confirmFactory(re,"error")}warning(re={}){return this.confirmFactory(re,"warning")}open(re,ze){const gt=function Tn(Ee,Je){return{...Je,...Ee}}(ze||{},new ie),Ke=this.createOverlay(gt),Pe=this.attachModalContainer(Ke,gt),Re=this.attachModalContent(re,Pe,Ke,gt);return Pe.modalRef=Re,(0,X.G5)(Ke,ze?.nzZIndex),this.openModals.push(Re),Re.afterClose.subscribe(()=>this.removeOpenModal(Re)),Re}removeOpenModal(re){const ze=this.openModals.indexOf(re);ze>-1&&(this.openModals.splice(ze,1),this.openModals.length||this._afterAllClosed.next())}closeModals(re){let ze=re.length;for(;ze--;)re[ze].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(re){const ze=this.nzConfigService.getConfigForComponent(et)||{},gt=new r.rR({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Wn(re.nzCloseOnNavigation,ze.nzCloseOnNavigation,!0),direction:Wn(re.nzDirection,ze.nzDirection,this.directionality.value)});return Wn(re.nzMask,ze.nzMask,!0)&&(gt.backdropClass=Fe),this.overlay.create(gt)}attachModalContainer(re,ze){const Ke=e.zZn.create({parent:ze&&ze.nzViewContainerRef&&ze.nzViewContainerRef.injector||this.injector,providers:[{provide:r.yY,useValue:re},{provide:ie,useValue:ze}]}),Re=new g.A8("confirm"===ze.nzModalType?dn:Ye,ze.nzViewContainerRef,Ke);return re.attach(Re).instance}attachModalContent(re,ze,gt,Ke){const Pe=new ue(gt,Ke,ze);if(re instanceof e.C4Q)ze.attachTemplatePortal(new g.VA(re,null,{$implicit:Ke.nzData,modalRef:Pe}));else if((0,V.n9)(re)&&"string"!=typeof re){const Re=this.createInjector(Pe,Ke),$=ze.attachComponentPortal(new g.A8(re,Ke.nzViewContainerRef,Re));Pe.componentRef=$,Pe.componentInstance=$.instance}else ze.attachStringContent();return Pe}createInjector(re,ze){return e.zZn.create({parent:ze&&ze.nzViewContainerRef&&ze.nzViewContainerRef.injector||this.injector,providers:[{provide:ue,useValue:re},{provide:dt,useValue:ze.nzData}]})}confirmFactory(re={},ze){return"nzIconType"in re||(re.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[ze]),"nzCancelText"in re||(re.nzCancelText=null),this.confirm(re,ze)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.KVO(r.hJ),e.KVO(e.zZn),e.KVO(de.yx),e.KVO(Ee,12),e.KVO(S.dS,8))};static#t=this.\u0275prov=e.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})(),q=(()=>{class Ee{constructor(re){this.templateRef=re}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Ee,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"],standalone:!0})}return Ee})(),Xe=(()=>{class Ee{constructor(re,ze){this.nzModalRef=re,this.templateRef=ze,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(ue,8),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Ee,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"],standalone:!0})}return Ee})(),ht=(()=>{class Ee{constructor(re,ze){this.nzModalRef=re,this.templateRef=ze,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(ue,8),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Ee,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"],standalone:!0})}return Ee})(),at=(()=>{class Ee{set modalTitle(re){re&&this.setTitleWithTemplate(re)}set modalFooter(re){re&&this.setFooterWithTemplate(re)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(re,ze,gt){this.cdr=re,this.modal=ze,this.viewContainerRef=gt,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzDraggable=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new e.bkB,this.nzOnCancel=new e.bkB,this.nzAfterOpen=new e.bkB,this.nzAfterClose=new e.bkB,this.nzVisibleChange=new e.bkB,this.modalRef=null,this.destroy$=new M.B}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const re=this.getConfig();this.modalRef=this.modal.create(re),this.modalRef.afterClose.asObservable().pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.close()})}}close(re){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(re),this.modalRef=null)}destroy(re){this.close(re)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(re){this.nzTitle=re,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(re){this.nzFooter=re,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const re=kn(this);return re.nzViewContainerRef=this.viewContainerRef,re.nzContent=this.nzContent||this.contentFromContentChild,re}ngOnChanges(re){const{nzVisible:ze,...gt}=re;Object.keys(gt).length&&this.modalRef&&this.modalRef.updateConfig(kn(this)),ze&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){this.modalRef?._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(ze){return new(ze||Ee)(e.rXU(e.gRc),e.rXU(te),e.rXU(e.c1b))};static#t=this.\u0275cmp=e.VBU({type:Ee,selectors:[["nz-modal"]],contentQueries:function(ze,gt,Ke){if(1&ze&&(e.wni(Ke,ht,7,e.C4Q),e.wni(Ke,q,7,e.C4Q),e.wni(Ke,Xe,7,e.C4Q)),2&ze){let Pe;e.mGM(Pe=e.lsd())&&(gt.modalTitle=Pe.first),e.mGM(Pe=e.lsd())&&(gt.contentFromContentChild=Pe.first),e.mGM(Pe=e.lsd())&&(gt.modalFooter=Pe.first)}},inputs:{nzMask:[2,"nzMask","nzMask",e.L39],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",e.L39],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",e.L39],nzVisible:[2,"nzVisible","nzVisible",e.L39],nzClosable:[2,"nzClosable","nzClosable",e.L39],nzOkLoading:[2,"nzOkLoading","nzOkLoading",e.L39],nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",e.L39],nzCancelDisabled:[2,"nzCancelDisabled","nzCancelDisabled",e.L39],nzCancelLoading:[2,"nzCancelLoading","nzCancelLoading",e.L39],nzKeyboard:[2,"nzKeyboard","nzKeyboard",e.L39],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",e.L39],nzCentered:[2,"nzCentered","nzCentered",e.L39],nzDraggable:[2,"nzDraggable","nzDraggable",e.L39],nzContent:"nzContent",nzFooter:"nzFooter",nzZIndex:[2,"nzZIndex","nzZIndex",e.Udg],nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:[2,"nzOkDanger","nzOkDanger",e.L39],nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],standalone:!0,features:[e.GFd,e.OA$,e.aNF],decls:0,vars:0,template:function(ze,gt){},encapsulation:2,changeDetection:0})}return Ee})(),St=(()=>{class Ee{static#e=this.\u0275fac=function(ze){return new(ze||Ee)};static#t=this.\u0275mod=e.$C({type:Ee});static#n=this.\u0275inj=e.G2t({providers:[te],imports:[cn,qt,Ut,Ye,dn]})}return Ee})()},3384:(Rt,De,c)=>{c.d(De,{Qe:()=>F,Zu:()=>G,ec:()=>A});var t=c(3953),r=c(317),g=c(345);class M{static#e=this.formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(V,x=0,ne="B",J){if(!((0,r.BV)(V)&&(0,r.BV)(x)&&x%1==0&&x>=0))return V;let be=V,Oe=ne;for(;"B"!==Oe;)be*=1024,Oe=M.formats[Oe].prev;if(J){const Ie=(0,r.nI)(M.calculateResult(M.formats[J],be),x);return M.formatResult(Ie,J)}for(const he in M.formats)if(M.formats.hasOwnProperty(he)){const Ie=M.formats[he];if(be{class X{transform(x,ne="px"){return"number"==typeof x?`${x}${ne}`:x}static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275pipe=t.EJ8({name:"nzToCssUnit",type:X,pure:!0,standalone:!0})}return X})(),A=(()=>{class X{constructor(x){this.sanitizer=x}transform(x,ne="html"){switch(ne){case"html":return this.sanitizer.bypassSecurityTrustHtml(x);case"style":return this.sanitizer.bypassSecurityTrustStyle(x);case"url":return this.sanitizer.bypassSecurityTrustUrl(x);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(x);default:throw new Error("Invalid safe type specified")}}static#e=this.\u0275fac=function(ne){return new(ne||X)(t.rXU(g.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"nzSanitizer",type:X,pure:!0,standalone:!0})}return X})(),F=(()=>{class X{static#e=this.\u0275fac=function(ne){return new(ne||X)};static#t=this.\u0275mod=t.$C({type:X});static#n=this.\u0275inj=t.G2t({})}return X})()},1236:(Rt,De,c)=>{c.d(De,{L_:()=>J,MC:()=>Oe});var t=c(4707),r=c(7987),g=c(177),e=c(3953),M=c(713),G=c(6042),L=c(6841),B=c(7806),A=c(5463),w=c(5154),I=c(8203);function F(he,Ie){if(1&he&&(e.qex(0),e.EFF(1),e.bVm()),2&he){const me=e.XpG(3);e.R7$(),e.JRh(me.nzTitle)}}function X(he,Ie){if(1&he&&(e.j41(0,"div",7),e.DNE(1,F,2,1,"ng-container",9),e.k0s()),2&he){const me=e.XpG(2);e.R7$(),e.Y8G("nzStringTemplateOutlet",me.nzTitle)}}function V(he,Ie){if(1&he&&(e.qex(0),e.EFF(1),e.bVm()),2&he){const me=e.XpG(2);e.R7$(),e.JRh(me.nzContent)}}function x(he,Ie){if(1&he&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.nrm(3,"span",5),e.k0s(),e.j41(4,"div",6)(5,"div"),e.DNE(6,X,2,1,"div",7),e.j41(7,"div",8),e.DNE(8,V,2,1,"ng-container",9),e.k0s()()()()()),2&he){const me=e.XpG();e.AVh("ant-popover-rtl","rtl"===me.dir),e.Y8G("ngClass",me._classMap)("ngStyle",me.nzOverlayStyle)("@.disabled",!(null==me.noAnimation||!me.noAnimation.nzNoAnimation))("nzNoAnimation",null==me.noAnimation?null:me.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),e.R7$(6),e.vxM(me.nzTitle?6:-1),e.R7$(2),e.Y8G("nzStringTemplateOutlet",me.nzContent)}}let J=(()=>{class he extends w.ME{getProxyPropertyMap(){return{nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop],...super.getProxyPropertyMap()}}constructor(){super(be),this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new e.bkB}static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275dir=e.FsC({type:he,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(de,H){2&de&&e.AVh("ant-popover-open",H.visible)},inputs:{arrowPointAtCenter:[2,"nzPopoverArrowPointAtCenter","arrowPointAtCenter",e.L39],title:[0,"nzPopoverTitle","title"],content:[0,"nzPopoverContent","content"],directiveTitle:[0,"nz-popover","directiveTitle"],trigger:[0,"nzPopoverTrigger","trigger"],placement:[0,"nzPopoverPlacement","placement"],origin:[0,"nzPopoverOrigin","origin"],visible:[0,"nzPopoverVisible","visible"],mouseEnterDelay:[0,"nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopoverOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],standalone:!0,features:[e.GFd,e.Vt3]})}return(0,t.Cg)([(0,G.H4)()],he.prototype,"nzPopoverBackdrop",void 0),he})(),be=(()=>{class he extends w.VJ{constructor(me,de,H){super(me,de,H),this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return(0,w.t)(this.nzTitle)&&(0,w.t)(this.nzContent)}static#e=this.\u0275fac=function(de){return new(de||he)(e.rXU(e.gRc),e.rXU(I.dS,8),e.rXU(L.z,9))};static#t=this.\u0275cmp=e.VBU({type:he,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],standalone:!0,features:[e.Vt3,e.aNF],decls:2,vars:6,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],["role","tooltip",1,"ant-popover-inner"],[1,"ant-popover-title"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"]],template:function(de,H){if(1&de){const z=e.RV6();e.DNE(0,x,9,9,"ng-template",1,0,e.C5r),e.bIt("overlayOutsideClick",function(pe){return e.eBV(z),e.Njj(H.onClickOutside(pe))})("detach",function(){return e.eBV(z),e.Njj(H.hide())})("positionChange",function(pe){return e.eBV(z),e.Njj(H.onPositionChange(pe))})}2&de&&e.Y8G("cdkConnectedOverlayHasBackdrop",H.hasBackdrop)("cdkConnectedOverlayOrigin",H.origin)("cdkConnectedOverlayPositions",H._positions)("cdkConnectedOverlayOpen",H._visible)("cdkConnectedOverlayPush",H.cdkConnectedOverlayPush)("nzArrowPointAtCenter",H.nzArrowPointAtCenter)},dependencies:[r.z_,r.WB,A.$_,A.vT,g.YU,g.B3,L.z,B.C,B.m],encapsulation:2,data:{animation:[M.uX]},changeDetection:0})}return he})(),Oe=(()=>{class he{static#e=this.\u0275fac=function(de){return new(de||he)};static#t=this.\u0275mod=e.$C({type:he});static#n=this.\u0275inj=e.G2t({imports:[be]})}return he})()},3190:(Rt,De,c)=>{c.d(De,{Sw:()=>ne,i3:()=>V,lx:()=>x});var t=c(3953),r=c(9417),g=c(2771),e=c(1413),M=c(3726),G=c(6977),L=c(8203),B=c(851),A=c(7891);const w=["*"],I=["inputElement"],F=["nz-radio",""];let X=(()=>{class J{constructor(){this.selected$=new g.m(1),this.touched$=new e.B,this.disabled$=new g.m(1),this.name$=new g.m(1)}touch(){this.touched$.next()}select(Oe){this.selected$.next(Oe)}setDisabled(Oe){this.disabled$.next(Oe)}setName(Oe){this.name$.next(Oe)}static#e=this.\u0275fac=function(he){return new(he||J)};static#t=this.\u0275prov=t.jDH({token:J,factory:J.\u0275fac})}return J})(),V=(()=>{class J{constructor(Oe,he,Ie){this.cdr=Oe,this.nzRadioService=he,this.directionality=Ie,this.value=null,this.destroy$=new e.B,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.value!==Oe&&(this.value=Oe,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,G.Q)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.dir=Oe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(Oe){const{nzDisabled:he,nzName:Ie}=Oe;he&&this.nzRadioService.setDisabled(this.nzDisabled),Ie&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(Oe){this.value=Oe,this.nzRadioService.select(Oe),this.cdr.markForCheck()}registerOnChange(Oe){this.onChange=Oe}registerOnTouched(Oe){this.onTouched=Oe}setDisabledState(Oe){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static#e=this.\u0275fac=function(he){return new(he||J)(t.rXU(t.gRc),t.rXU(X),t.rXU(L.dS,8))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(he,Ie){2&he&&t.AVh("ant-radio-group-large","large"===Ie.nzSize)("ant-radio-group-small","small"===Ie.nzSize)("ant-radio-group-solid","solid"===Ie.nzButtonStyle)("ant-radio-group-rtl","rtl"===Ie.dir)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],standalone:!0,features:[t.Jv_([X,{provide:r.kq,useExisting:(0,t.Rfq)(()=>J),multi:!0}]),t.GFd,t.OA$,t.aNF],ngContentSelectors:w,decls:1,vars:0,template:function(he,Ie){1&he&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return J})(),x=(()=>{class J{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(Oe,he,Ie,me,de,H,z){this.ngZone=Oe,this.elementRef=he,this.cdr=Ie,this.focusMonitor=me,this.directionality=de,this.nzRadioService=H,this.nzFormStatusService=z,this.isNgModel=!1,this.destroy$=new e.B,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.isRadioButton=!1,this.dir="ltr"}setDisabledState(Oe){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(Oe){this.isChecked=Oe,this.cdr.markForCheck()}registerOnChange(Oe){this.isNgModel=!0,this.onChange=Oe}registerOnTouched(Oe){this.onTouched=Oe}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.name=Oe,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Oe,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{const he=this.isChecked;this.isChecked=this.nzValue===Oe,this.isNgModel&&he!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{Oe||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{this.dir=Oe,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,M.R)(this.elementRef.nativeElement,"click").pipe((0,G.Q)(this.destroy$)).subscribe(Oe=>{Oe.stopPropagation(),Oe.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}static#e=this.\u0275fac=function(he){return new(he||J)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(B.FN),t.rXU(L.dS,8),t.rXU(X,8),t.rXU(A.is,8))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(he,Ie){if(1&he&&t.GBs(I,7),2&he){let me;t.mGM(me=t.lsd())&&(Ie.inputElement=me.first)}},hostVars:18,hostBindings:function(he,Ie){2&he&&t.AVh("ant-radio-wrapper-in-form-item",!!Ie.nzFormStatusService)("ant-radio-wrapper",!Ie.isRadioButton)("ant-radio-button-wrapper",Ie.isRadioButton)("ant-radio-wrapper-checked",Ie.isChecked&&!Ie.isRadioButton)("ant-radio-button-wrapper-checked",Ie.isChecked&&Ie.isRadioButton)("ant-radio-wrapper-disabled",Ie.nzDisabled&&!Ie.isRadioButton)("ant-radio-button-wrapper-disabled",Ie.nzDisabled&&Ie.isRadioButton)("ant-radio-wrapper-rtl",!Ie.isRadioButton&&"rtl"===Ie.dir)("ant-radio-button-wrapper-rtl",Ie.isRadioButton&&"rtl"===Ie.dir)},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],isRadioButton:[2,"nz-radio-button","isRadioButton",t.L39]},exportAs:["nzRadio"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>J),multi:!0}]),t.GFd,t.aNF],attrs:F,ngContentSelectors:w,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(he,Ie){1&he&&(t.NAR(),t.j41(0,"span"),t.nrm(1,"input",1,0)(3,"span"),t.k0s(),t.j41(4,"span"),t.SdG(5),t.k0s()),2&he&&(t.AVh("ant-radio",!Ie.isRadioButton)("ant-radio-checked",Ie.isChecked&&!Ie.isRadioButton)("ant-radio-disabled",Ie.nzDisabled&&!Ie.isRadioButton)("ant-radio-button",Ie.isRadioButton)("ant-radio-button-checked",Ie.isChecked&&Ie.isRadioButton)("ant-radio-button-disabled",Ie.nzDisabled&&Ie.isRadioButton),t.R7$(),t.AVh("ant-radio-input",!Ie.isRadioButton)("ant-radio-button-input",Ie.isRadioButton),t.Y8G("disabled",Ie.nzDisabled)("checked",Ie.isChecked),t.BMQ("autofocus",Ie.nzAutoFocus?"autofocus":null)("name",Ie.name),t.R7$(2),t.AVh("ant-radio-inner",!Ie.isRadioButton)("ant-radio-button-inner",Ie.isRadioButton))},encapsulation:2,changeDetection:0})}return J})(),ne=(()=>{class J{static#e=this.\u0275fac=function(he){return new(he||J)};static#t=this.\u0275mod=t.$C({type:J});static#n=this.\u0275inj=t.G2t({})}return J})()},1997:(Rt,De,c)=>{c.d(De,{DH:()=>ce,WI:()=>$,ld:()=>Qe,uX:()=>Xe});var t=c(3953),r=c(1413),g=c(3726),e=c(4412),M=c(7673),G=c(4572),L=c(7786),B=c(7987),A=c(946),w=c(177),I=c(5463),F=c(1672),X=c(7806),V=c(6977),x=c(9172),ne=c(3294),J=c(3993),be=c(6354),Oe=c(5558),he=c(1025),Ie=c(5103),me=c(4707),de=c(7336),H=c(6860),z=c(9417),Z=c(713),pe=c(6042),E=c(7891),S=c(6841),R=c(4500),Y=c(317),se=c(851),Be=c(8203);const Pt=["*"];function vt(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ve=t.XpG();t.R7$(),t.JRh(ve.nzLabel)}}function wt(N,ke){}function Le(N,ke){if(1&N&&t.DNE(0,wt,0,0,"ng-template",4),2&N){const ve=t.XpG();t.Y8G("ngTemplateOutlet",ve.template)}}function zt(N,ke){if(1&N&&t.EFF(0),2&N){const ve=t.XpG();t.JRh(ve.label)}}function xt(N,ke){1&N&&t.nrm(0,"span",7)}function st(N,ke){if(1&N&&(t.j41(0,"div",5),t.DNE(1,xt,1,0,"span",6),t.k0s()),2&N){const ve=t.XpG();t.R7$(),t.Y8G("ngIf",!ve.icon)("ngIfElse",ve.icon)}}function Ct(N,ke){if(1&N&&(t.j41(0,"div",4),t.nrm(1,"nz-embed-empty",5),t.k0s()),2&N){const ve=t.XpG();t.R7$(),t.Y8G("specificContent",ve.notFoundContent)}}function It(N,ke){if(1&N&&t.nrm(0,"nz-option-item-group",9),2&N){const ve=t.XpG().$implicit;t.Y8G("nzLabel",ve.groupLabel)}}function Tt(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"nz-option-item",10),t.bIt("itemHover",function(U){t.eBV(ve);const ge=t.XpG(2);return t.Njj(ge.onItemHover(U))})("itemClick",function(U){t.eBV(ve);const ge=t.XpG(2);return t.Njj(ge.onItemClick(U))}),t.k0s()}if(2&N){const ve=t.XpG().$implicit,K=t.XpG();t.Y8G("icon",K.menuItemSelectedIcon)("customContent",ve.nzCustomContent)("template",ve.template)("grouped",!!ve.groupLabel)("disabled",ve.nzDisabled||K.isMaxLimitReached&&!K.listOfSelectedValue.includes(ve.nzValue))("showState","tags"===K.mode||"multiple"===K.mode)("title",ve.nzTitle)("label",ve.nzLabel)("compareWith",K.compareWith)("activatedValue",K.activatedValue)("listOfSelectedValue",K.listOfSelectedValue)("value",ve.nzValue)}}function en(N,ke){1&N&&(t.qex(0,6),t.DNE(1,It,1,1,"nz-option-item-group",7)(2,Tt,1,12,"nz-option-item",8),t.bVm()),2&N&&(t.Y8G("ngSwitch",ke.$implicit.type),t.R7$(),t.Y8G("ngSwitchCase","group"),t.R7$(),t.Y8G("ngSwitchCase","item"))}function jt(N,ke){}function Vt(N,ke){1&N&&t.SdG(0)}function fn(N,ke){if(1&N&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.bVm()),2&N){const ve=t.XpG();t.R7$(2),t.Lme("",ve.listOfValue.length," / ",ve.nzMaxMultipleCount,"")}}function Hn(N,ke){1&N&&t.nrm(0,"span",5)}function zn(N,ke){1&N&&t.nrm(0,"span",9)}function bt(N,ke){1&N&&t.nrm(0,"span",10)}function At(N,ke){if(1&N&&(t.qex(0),t.DNE(1,zn,1,0,"span",7)(2,bt,1,0,"span",8),t.bVm()),2&N){const ve=t.XpG(2);t.R7$(),t.Y8G("ngIf",!ve.search),t.R7$(),t.Y8G("ngIf",ve.search)}}function Et(N,ke){if(1&N&&t.nrm(0,"span",12),2&N){const ve=t.XpG().$implicit;t.Y8G("nzType",ve)}}function Ot(N,ke){if(1&N&&(t.qex(0),t.DNE(1,Et,1,1,"span",11),t.bVm()),2&N){const ve=ke.$implicit;t.R7$(),t.Y8G("ngIf",ve)}}function Wt(N,ke){if(1&N&&t.DNE(0,Ot,2,1,"ng-container",4),2&N){const ve=t.XpG(2);t.Y8G("nzStringTemplateOutlet",ve.suffixIcon)}}function Ue(N,ke){if(1&N&&t.DNE(0,At,3,2,"ng-container",6)(1,Wt,1,1,"ng-template",null,1,t.C5r),2&N){const ve=t.sdS(2),K=t.XpG();t.Y8G("ngIf",K.showArrow&&!K.suffixIcon)("ngIfElse",ve)}}function Ae(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ve=t.XpG();t.R7$(),t.JRh(ve.feedbackIcon)}}function ie(N,ke){1&N&&t.nrm(0,"span",1)}const _e=N=>({$implicit:N});function oe(N,ke){if(1&N&&(t.j41(0,"div",4),t.EFF(1),t.k0s()),2&N){const ve=t.XpG(2);t.R7$(),t.JRh(ve.label)}}function Fe(N,ke){if(1&N&&t.EFF(0),2&N){const ve=t.XpG(2);t.JRh(ve.label)}}function et(N,ke){if(1&N&&(t.qex(0),t.DNE(1,oe,2,1,"div",3)(2,Fe,1,1,"ng-template",null,0,t.C5r),t.bVm()),2&N){const ve=t.sdS(3),K=t.XpG();t.R7$(),t.Y8G("ngIf",K.deletable)("ngIfElse",ve)}}function dt(N,ke){1&N&&t.nrm(0,"span",7)}function Kt(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"span",5),t.bIt("click",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onDelete(U))}),t.DNE(1,dt,1,0,"span",6),t.k0s()}if(2&N){const ve=t.XpG();t.R7$(),t.Y8G("ngIf",!ve.removeIcon)("ngIfElse",ve.removeIcon)}}function cn(N,ke){if(1&N&&(t.qex(0),t.EFF(1),t.bVm()),2&N){const ve=t.XpG();t.R7$(),t.SpI(" ",ve.placeholder," ")}}const Tn=["inputElement"],Wn=["mirrorElement"];function kn(N,ke){1&N&&t.nrm(0,"span",4,1)}function Vn(N,ke){if(1&N&&t.nrm(0,"nz-select-item",6),2&N){const ve=t.XpG(2);t.Y8G("deletable",!1)("disabled",!1)("removeIcon",ve.removeIcon)("label",ve.listOfTopItem[0].nzLabel)("contentTemplateOutlet",ve.customTemplate)("contentTemplateOutletContext",ve.listOfTopItem[0])}}function Un(N,ke){if(1&N){const ve=t.RV6();t.qex(0),t.j41(1,"nz-select-search",4),t.bIt("isComposingChange",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.isComposingChange(U))})("valueChange",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onInputValueChange(U))}),t.k0s(),t.DNE(2,Vn,1,6,"nz-select-item",5),t.bVm()}if(2&N){const ve=t.XpG();t.R7$(),t.Y8G("nzId",ve.nzId)("disabled",ve.disabled)("value",ve.inputValue)("showInput",ve.showSearch)("mirrorSync",!1)("autofocus",ve.autofocus)("focusTrigger",ve.open),t.R7$(),t.Y8G("ngIf",ve.isShowSingleLabel)}}function dn(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"nz-select-item",9),t.bIt("delete",function(){const U=t.eBV(ve).$implicit,ge=t.XpG(2);return t.Njj(ge.onDeleteItem(U.contentTemplateOutletContext))}),t.k0s()}if(2&N){const ve=ke.$implicit,K=t.XpG(2);t.Y8G("removeIcon",K.removeIcon)("label",ve.nzLabel)("disabled",ve.nzDisabled||K.disabled)("contentTemplateOutlet",ve.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",ve.contentTemplateOutletContext)}}function qt(N,ke){if(1&N){const ve=t.RV6();t.qex(0),t.DNE(1,dn,1,6,"nz-select-item",7),t.j41(2,"nz-select-search",8),t.bIt("isComposingChange",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.isComposingChange(U))})("valueChange",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onInputValueChange(U))}),t.k0s(),t.bVm()}if(2&N){const ve=t.XpG();t.R7$(),t.Y8G("ngForOf",ve.listOfSlicedItem)("ngForTrackBy",ve.trackValue),t.R7$(),t.Y8G("nzId",ve.nzId)("disabled",ve.disabled)("value",ve.inputValue)("autofocus",ve.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",ve.open)}}function On(N,ke){if(1&N&&t.nrm(0,"nz-select-placeholder",10),2&N){const ve=t.XpG();t.Y8G("placeholder",ve.placeHolder)}}function Ut(N,ke){if(1&N&&t.nrm(0,"nz-form-item-feedback-icon",8),2&N){const ve=t.XpG(3);t.Y8G("status",ve.status)}}function Ye(N,ke){if(1&N&&t.DNE(0,Ut,1,1,"nz-form-item-feedback-icon",7),2&N){const ve=t.XpG(2);t.Y8G("ngIf",ve.hasFeedback&&!!ve.status)}}function ue(N,ke){if(1&N&&(t.j41(0,"nz-select-arrow",6),t.DNE(1,Ye,1,1,"ng-template",null,1,t.C5r),t.k0s()),2&N){const ve=t.sdS(2),K=t.XpG();t.Y8G("showArrow",K.nzShowArrow)("loading",K.nzLoading)("search",K.nzOpen&&K.nzShowSearch)("suffixIcon",K.nzSuffixIcon)("feedbackIcon",ve)("nzMaxMultipleCount",K.nzMaxMultipleCount)("listOfValue",K.listOfValue)("isMaxTagCountSet",K.isMaxTagCountSet)}}function te(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"nz-select-clear",9),t.bIt("clear",function(){t.eBV(ve);const U=t.XpG();return t.Njj(U.onClearSelection())}),t.k0s()}if(2&N){const ve=t.XpG();t.Y8G("clearIcon",ve.nzClearIcon)}}function q(N,ke){if(1&N){const ve=t.RV6();t.j41(0,"nz-option-container",10),t.bIt("keydown",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onKeyDown(U))})("itemClick",function(U){t.eBV(ve);const ge=t.XpG();return t.Njj(ge.onItemClick(U))})("scrollToBottom",function(){t.eBV(ve);const U=t.XpG();return t.Njj(U.nzScrollToBottom.emit())}),t.k0s()}if(2&N){const ve=t.XpG();t.AVh("ant-select-dropdown-placement-bottomLeft","bottomLeft"===ve.dropDownPosition)("ant-select-dropdown-placement-topLeft","topLeft"===ve.dropDownPosition)("ant-select-dropdown-placement-bottomRight","bottomRight"===ve.dropDownPosition)("ant-select-dropdown-placement-topRight","topRight"===ve.dropDownPosition),t.Y8G("ngStyle",ve.nzDropdownStyle)("itemSize",ve.nzOptionHeightPx)("maxItemLength",ve.nzOptionOverflowSize)("matchWidth",ve.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!(null==ve.noAnimation||!ve.noAnimation.nzNoAnimation))("nzNoAnimation",null==ve.noAnimation?null:ve.noAnimation.nzNoAnimation)("listOfContainerItem",ve.listOfContainerItem)("menuItemSelectedIcon",ve.nzMenuItemSelectedIcon)("notFoundContent",ve.nzNotFoundContent)("activatedValue",ve.activatedValue)("listOfSelectedValue",ve.listOfValue)("dropdownRender",ve.nzDropdownRender)("compareWith",ve.compareWith)("mode",ve.nzMode)("isMaxLimitReached",ve.isMaxLimitReached)}}let Xe=(()=>{class N{constructor(){this.nzLabel=null,this.changes=new r.B}ngOnChanges(){this.changes.next()}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],standalone:!0,features:[t.OA$,t.aNF],ngContentSelectors:Pt,decls:1,vars:0,template:function(K,U){1&K&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return N})(),ht=(()=>{class N{constructor(){this.nzLabel=null}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(K,U){1&K&&t.DNE(0,vt,2,1,"ng-container",0),2&K&&t.Y8G("nzStringTemplateOutlet",U.nzLabel)},dependencies:[X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),at=(()=>{class N{constructor(ve,K,U){this.elementRef=ve,this.ngZone=K,this.destroy$=U,this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new t.bkB,this.itemHover=new t.bkB}ngOnChanges(ve){const{value:K,activatedValue:U,listOfSelectedValue:ge}=ve;(K||ge)&&(this.selected=this.listOfSelectedValue.some(qe=>this.compareWith(qe,this.value))),(K||U)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.elementRef.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),(0,g.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})})}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(he.y4))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(K,U){2&K&&(t.BMQ("title",U.title),t.AVh("ant-select-item-option-grouped",U.grouped)("ant-select-item-option-selected",U.selected&&!U.disabled)("ant-select-item-option-disabled",U.disabled)("ant-select-item-option-active",U.activated&&!U.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",title:"title",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},standalone:!0,features:[t.Jv_([he.y4]),t.OA$,t.aNF],decls:5,vars:3,consts:[["noCustomContent",""],[1,"ant-select-item-option-content"],[3,"ngIf","ngIfElse"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(K,U){if(1&K&&(t.j41(0,"div",1),t.DNE(1,Le,1,1,"ng-template",2)(2,zt,1,1,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(4,st,2,2,"div",3)),2&K){const ge=t.sdS(3);t.R7$(),t.Y8G("ngIf",U.customContent)("ngIfElse",ge),t.R7$(3),t.Y8G("ngIf",U.showState&&U.selected)}},dependencies:[w.bT,w.T3,Ie.Y3,Ie.Dn],encapsulation:2,changeDetection:0})}return N})(),St=(()=>{class N{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.isMaxLimitReached=!1,this.listOfContainerItem=[],this.itemClick=new t.bkB,this.scrollToBottom=new t.bkB,this.scrolledIndex=0,this.ngZone=(0,t.WQX)(t.SKi),this.platformId=(0,t.WQX)(t.Agw)}onItemClick(ve){this.itemClick.emit(ve)}onItemHover(ve){this.activatedValue=ve}trackValue(ve,K){return K.key}onScrolledIndexChange(ve){this.scrolledIndex=ve,ve===this.listOfContainerItem.length-this.maxItemLength-1&&this.scrollToBottom.emit()}scrollToActivatedValue(){const ve=this.listOfContainerItem.findIndex(K=>this.compareWith(K.key,this.activatedValue));(ve=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(ve||0)}ngOnChanges(ve){const{listOfContainerItem:K,activatedValue:U}=ve;(K||U)&&this.scrollToActivatedValue()}ngAfterViewInit(){(0,w.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.scrollToActivatedValue()))}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option-container"]],viewQuery:function(K,U){if(1&K&&t.GBs(A.d6,7),2&K){let ge;t.mGM(ge=t.lsd())&&(U.cdkVirtualScrollViewport=ge.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",isMaxLimitReached:"isMaxLimitReached",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],standalone:!0,features:[t.OA$,t.aNF],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"scrolledIndexChange","itemSize","maxBufferPx","minBufferPx"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"itemHover","itemClick","icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"]],template:function(K,U){1&K&&(t.j41(0,"div"),t.DNE(1,Ct,2,1,"div",0),t.j41(2,"cdk-virtual-scroll-viewport",1),t.bIt("scrolledIndexChange",function(qe){return U.onScrolledIndexChange(qe)}),t.DNE(3,en,3,3,"ng-template",2),t.k0s(),t.DNE(4,jt,0,0,"ng-template",3),t.k0s()),2&K&&(t.R7$(),t.Y8G("ngIf",0===U.listOfContainerItem.length),t.R7$(),t.xc7("height",U.listOfContainerItem.length*U.itemSize,"px")("max-height",U.itemSize*U.maxItemLength,"px"),t.AVh("full-width",!U.matchWidth),t.Y8G("itemSize",U.itemSize)("maxBufferPx",U.itemSize*U.maxItemLength)("minBufferPx",U.itemSize*U.maxItemLength),t.R7$(),t.Y8G("cdkVirtualForOf",U.listOfContainerItem)("cdkVirtualForTrackBy",U.trackValue)("cdkVirtualForTemplateCacheSize",0),t.R7$(),t.Y8G("ngTemplateOutlet",U.dropdownRender))},dependencies:[F._v,F.E8,w.bT,w.ux,ht,w.e1,at,w.T3,B.z_,A.yg,A.E$,A.d6,I.$_],encapsulation:2,changeDetection:0})}return N})(),Qe=(()=>{class N{constructor(ve,K){this.nzOptionGroupComponent=ve,this.destroy$=K,this.changes=new r.B,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,x.Z)(!0),(0,V.Q)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(Xe,8),t.rXU(he.y4))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-option"]],viewQuery:function(K,U){if(1&K&&t.GBs(t.C4Q,7),2&K){let ge;t.mGM(ge=t.lsd())&&(U.template=ge.first)}},inputs:{nzTitle:"nzTitle",nzLabel:"nzLabel",nzValue:"nzValue",nzKey:"nzKey",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzHide:[2,"nzHide","nzHide",t.L39],nzCustomContent:[2,"nzCustomContent","nzCustomContent",t.L39]},exportAs:["nzOption"],standalone:!0,features:[t.Jv_([he.y4]),t.GFd,t.OA$,t.aNF],ngContentSelectors:Pt,decls:1,vars:0,template:function(K,U){1&K&&(t.NAR(),t.DNE(0,Vt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return N})(),Ee=(()=>{class N{constructor(){this.listOfValue=[],this.loading=!1,this.search=!1,this.showArrow=!1,this.isMaxTagCountSet=!1,this.suffixIcon=null,this.feedbackIcon=null,this.nzMaxMultipleCount=1/0}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(K,U){2&K&&t.AVh("ant-select-arrow-loading",U.loading)},inputs:{listOfValue:"listOfValue",loading:"loading",search:"search",showArrow:"showArrow",isMaxTagCountSet:"isMaxTagCountSet",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",t.Udg]},standalone:!0,features:[t.GFd,t.aNF],decls:5,vars:4,consts:[["defaultArrow",""],["suffixTemplate",""],[4,"ngIf"],["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(K,U){if(1&K&&t.DNE(0,fn,3,2,"ng-container",2)(1,Hn,1,0,"span",3)(2,Ue,3,2,"ng-template",null,0,t.C5r)(4,Ae,2,1,"ng-container",4),2&K){const ge=t.sdS(3);t.Y8G("ngIf",U.isMaxTagCountSet),t.R7$(),t.Y8G("ngIf",U.loading)("ngIfElse",ge),t.R7$(3),t.Y8G("nzStringTemplateOutlet",U.feedbackIcon)}},dependencies:[Ie.Y3,Ie.Dn,w.bT,X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),Je=(()=>{class N{constructor(){this.clearIcon=null,this.clear=new t.bkB}onClick(ve){ve.preventDefault(),ve.stopPropagation(),this.clear.emit(ve)}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(K,U){1&K&&t.bIt("click",function(qe){return U.onClick(qe)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},standalone:!0,features:[t.aNF],decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(K,U){1&K&&t.DNE(0,ie,1,0,"span",0),2&K&&t.Y8G("ngIf",!U.clearIcon)("ngIfElse",U.clearIcon)},dependencies:[Ie.Y3,Ie.Dn,w.bT],encapsulation:2,changeDetection:0})}return N})(),re=(()=>{class N{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.bkB}onDelete(ve){ve.preventDefault(),ve.stopPropagation(),this.disabled||this.delete.next(ve)}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(K,U){2&K&&(t.BMQ("title",U.label),t.AVh("ant-select-selection-item-disabled",U.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},standalone:!0,features:[t.aNF],decls:2,vars:5,consts:[["labelTemplate",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(K,U){1&K&&t.DNE(0,et,4,2,"ng-container",1)(1,Kt,2,2,"span",2),2&K&&(t.Y8G("nzStringTemplateOutlet",U.contentTemplateOutlet)("nzStringTemplateOutletContext",t.eq3(3,_e,U.contentTemplateOutletContext)),t.R7$(),t.Y8G("ngIf",U.deletable&&!U.disabled))},dependencies:[X.C,X.m,w.bT,Ie.Y3,Ie.Dn],encapsulation:2,changeDetection:0})}return N})(),ze=(()=>{class N{constructor(){this.placeholder=null}static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(K,U){1&K&&t.DNE(0,cn,2,1,"ng-container",0),2&K&&t.Y8G("nzStringTemplateOutlet",U.placeholder)},dependencies:[X.C,X.m],encapsulation:2,changeDetection:0})}return N})(),gt=(()=>{class N{setCompositionState(ve){this.isComposingChange.next(ve)}onValueChange(ve){this.value=ve,this.valueChange.next(ve),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const ve=this.mirrorElement.nativeElement,K=this.elementRef.nativeElement,U=this.inputElement.nativeElement;this.renderer.removeStyle(K,"width"),this.renderer.setProperty(ve,"textContent",`${U.value}\xa0`),this.renderer.setStyle(K,"width",`${ve.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(ve,K,U){this.elementRef=ve,this.renderer=K,this.focusMonitor=U,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.bkB,this.isComposingChange=new t.bkB}ngOnChanges(ve){const K=this.inputElement.nativeElement,{focusTrigger:U,showInput:ge}=ve;ge&&(this.showInput?this.renderer.removeAttribute(K,"readonly"):this.renderer.setAttribute(K,"readonly","readonly")),U&&!0===U.currentValue&&!1===U.previousValue&&K.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(se.FN))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-search"]],viewQuery:function(K,U){if(1&K&&(t.GBs(Tn,7),t.GBs(Wn,5)),2&K){let ge;t.mGM(ge=t.lsd())&&(U.inputElement=ge.first),t.mGM(ge=t.lsd())&&(U.mirrorElement=ge.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},standalone:!0,features:[t.Jv_([{provide:z.mP,useValue:!1}]),t.OA$,t.aNF],decls:3,vars:7,consts:[["inputElement",""],["mirrorElement",""],["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModelChange","compositionstart","compositionend","ngModel","disabled"],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"]],template:function(K,U){if(1&K){const ge=t.RV6();t.j41(0,"input",2,0),t.bIt("ngModelChange",function(rt){return t.eBV(ge),t.Njj(U.onValueChange(rt))})("compositionstart",function(){return t.eBV(ge),t.Njj(U.setCompositionState(!0))})("compositionend",function(){return t.eBV(ge),t.Njj(U.setCompositionState(!1))}),t.k0s(),t.DNE(2,kn,2,0,"span",3)}2&K&&(t.xc7("opacity",U.showInput?null:0),t.Y8G("ngModel",U.value)("disabled",U.disabled),t.BMQ("id",U.nzId)("autofocus",U.autofocus?"autofocus":null),t.R7$(2),t.Y8G("ngIf",U.mirrorSync))},dependencies:[z.YN,z.me,z.BC,z.vS,w.bT],encapsulation:2,changeDetection:0})}return N})(),Ke=(()=>{class N{updateTemplateVariable(){const ve=0===this.listOfTopItem.length;this.isShowPlaceholder=ve&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!ve&&!this.isComposing&&!this.inputValue}isComposingChange(ve){this.isComposing=ve,this.updateTemplateVariable()}onInputValueChange(ve){ve!==this.inputValue&&(this.inputValue=ve,this.updateTemplateVariable(),this.inputValueChange.emit(ve),this.tokenSeparate(ve,this.tokenSeparators))}tokenSeparate(ve,K){if(ve&&ve.length&&K.length&&"default"!==this.mode&&((qe,rt)=>{for(let Ft=0;Ft0)return!0;return!1})(ve,K)){const qe=((qe,rt)=>{const Ft=new RegExp(`[${rt.join()}]`),rn=qe.split(Ft).filter(Cn=>Cn);return[...new Set(rn)]})(ve,K);this.tokenize.next(qe)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(ve,K){return K.nzValue}onDeleteItem(ve){!this.disabled&&!ve.nzDisabled&&this.deleteItem.next(ve)}constructor(ve,K,U){this.elementRef=ve,this.ngZone=K,this.noAnimation=U,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new t.bkB,this.inputValueChange=new t.bkB,this.deleteItem=new t.bkB,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new r.B}ngOnChanges(ve){const{listOfTopItem:K,maxTagCount:U,customTemplate:ge,maxTagPlaceholder:qe}=ve;if(K&&this.updateTemplateVariable(),K||U||ge||qe){const rt=this.listOfTopItem.slice(0,this.maxTagCount).map(Ft=>({nzLabel:Ft.nzLabel,nzValue:Ft.nzValue,nzDisabled:Ft.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:Ft}));if(this.listOfTopItem.length>this.maxTagCount){const Ft=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,rn=this.listOfTopItem.map(Zn=>Zn.nzValue),Cn={nzLabel:Ft,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:rn.slice(this.maxTagCount)};rt.push(Cn)}this.listOfSlicedItem=rt}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.elementRef.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{ve.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,g.R)(this.elementRef.nativeElement,"keydown").pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{ve.target instanceof HTMLInputElement&&ve.keyCode===de.G_&&"default"!==this.mode&&!ve.target.value&&this.listOfTopItem.length>0&&(ve.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))})})}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(S.z,9))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select-top-control"]],viewQuery:function(K,U){if(1&K&&t.GBs(gt,5),2&K){let ge;t.mGM(ge=t.lsd())&&(U.nzSelectSearchComponent=ge.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:[2,"maxTagCount","maxTagCount",t.Udg],autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"isComposingChange","valueChange","nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"isComposingChange","valueChange","nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger"],[3,"delete","removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext"],[3,"placeholder"]],template:function(K,U){1&K&&(t.qex(0,0),t.DNE(1,Un,3,8,"ng-container",1)(2,qt,3,9,"ng-container",2),t.bVm(),t.DNE(3,On,1,1,"nz-select-placeholder",3)),2&K&&(t.Y8G("ngSwitch",U.mode),t.R7$(),t.Y8G("ngSwitchCase","default"),t.R7$(2),t.Y8G("ngIf",U.isShowPlaceholder))},dependencies:[w.ux,gt,w.e1,re,w.bT,w.fG,w.pM,ze],encapsulation:2,changeDetection:0})}return N})();const Pe=(N,ke)=>!(!ke||!ke.nzLabel)&&ke.nzLabel.toString().toLowerCase().indexOf(N.toLowerCase())>-1;let $=(()=>{class N{set nzShowArrow(ve){this._nzShowArrow=ve}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}get isMaxTagCountSet(){return this.nzMaxMultipleCount!==1/0}generateTagItem(ve){return{nzValue:ve,nzLabel:ve,type:"item"}}onItemClick(ve){if(this.activatedValue=ve,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],ve))&&this.updateListOfValue([ve]),this.setOpenState(!1);else{const K=this.listOfValue.findIndex(U=>this.compareWith(U,ve));if(-1!==K){const U=this.listOfValue.filter((ge,qe)=>qe!==K);this.updateListOfValue(U)}else if(this.listOfValue.length!this.compareWith(U,ve.nzValue));this.updateListOfValue(K),this.clearInput()}updateListOfContainerItem(){let ve=this.listOfTagAndTemplateItem.filter(ge=>!ge.nzHide).filter(ge=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,ge));if("tags"===this.nzMode&&this.searchValue){const ge=this.listOfTagAndTemplateItem.find(qe=>qe.nzLabel===this.searchValue);if(ge)this.activatedValue=ge.nzValue;else{const qe=this.generateTagItem(this.searchValue);ve=[qe,...ve],this.activatedValue=qe.nzValue}}const K=ve.find(ge=>ge.nzLabel===this.searchValue)||ve.find(ge=>this.compareWith(ge.nzValue,this.activatedValue))||ve.find(ge=>this.compareWith(ge.nzValue,this.listOfValue[0]))||ve[0];this.activatedValue=K&&K.nzValue||null;let U=[];this.isReactiveDriven?U=[...new Set(this.nzOptions.filter(ge=>ge.groupLabel).map(ge=>ge.groupLabel))]:this.listOfNzOptionGroupComponent&&(U=this.listOfNzOptionGroupComponent.map(ge=>ge.nzLabel)),U.forEach(ge=>{const qe=ve.findIndex(rt=>ge===rt.groupLabel);qe>-1&&ve.splice(qe,0,{groupLabel:ge,type:"group",key:ge})}),this.listOfContainerItem=[...ve],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(ve){const U=((ge,qe)=>"default"===this.nzMode?ge.length>0?ge[0]:null:ge)(ve);this.value!==U&&(this.listOfValue=ve,this.listOfValue$.next(ve),this.value=U,this.onChange(this.value)),this.isMaxLimitReached=this.nzMaxMultipleCount!==1/0&&this.listOfValue.length===this.nzMaxMultipleCount}onTokenSeparate(ve){const K=this.listOfTagAndTemplateItem.filter(U=>-1!==ve.findIndex(ge=>ge===U.nzLabel)).map(U=>U.nzValue).filter(U=>-1===this.listOfValue.findIndex(ge=>this.compareWith(ge,U)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...K]);else if("tags"===this.nzMode){const U=ve.filter(ge=>-1===this.listOfTagAndTemplateItem.findIndex(qe=>qe.nzLabel===ge));this.updateListOfValue([...this.listOfValue,...K,...U])}this.clearInput()}onKeyDown(ve){if(this.nzDisabled)return;const K=this.listOfContainerItem.filter(ge=>"item"===ge.type).filter(ge=>!ge.nzDisabled),U=K.findIndex(ge=>this.compareWith(ge.nzValue,this.activatedValue));switch(ve.keyCode){case de.i7:ve.preventDefault(),this.nzOpen&&K.length>0&&(this.activatedValue=K[U>0?U-1:K.length-1].nzValue);break;case de.n6:ve.preventDefault(),this.nzOpen&&K.length>0?this.activatedValue=K[U{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,ve!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,R.j)(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}constructor(ve,K,U,ge,qe,rt,Ft,rn,Cn,Zn,jn,Gn){this.ngZone=ve,this.destroy$=K,this.nzConfigService=U,this.cdr=ge,this.host=qe,this.renderer=rt,this.platform=Ft,this.focusMonitor=rn,this.directionality=Cn,this.noAnimation=Zn,this.nzFormStatusService=jn,this.nzFormNoStatusService=Gn,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzStatus="",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzPlacement=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=Pe,this.compareWith=(Ti,Oi)=>Ti===Oi,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzSelectOnTab=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new t.bkB,this.nzScrollToBottom=new t.bkB,this.nzOpenChange=new t.bkB,this.nzBlur=new t.bkB,this.nzFocus=new t.bkB,this.listOfValue$=new e.t([]),this.listOfTemplateItem$=new e.t([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottomLeft",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr",this.positions=[],this.isMaxLimitReached=!1,this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1}writeValue(ve){if(this.value!==ve){this.value=ve;const U=((ge,qe)=>null==ge?[]:"default"===this.nzMode?[ge]:ge)(ve);this.listOfValue=U,this.listOfValue$.next(U),this.cdr.markForCheck()}}registerOnChange(ve){this.onChange=ve}registerOnTouched(ve){this.onTouched=ve}setDisabledState(ve){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||ve,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(ve){const{nzOpen:K,nzDisabled:U,nzOptions:ge,nzStatus:qe,nzPlacement:rt}=ve;if(K&&this.onOpenChange(),U&&this.nzDisabled&&this.setOpenState(!1),ge){this.isReactiveDriven=!0;const rn=(this.nzOptions||[]).map(Cn=>({template:Cn.label instanceof t.C4Q?Cn.label:null,nzTitle:this.getTitle(Cn.title,Cn.label),nzLabel:"string"==typeof Cn.label||"number"==typeof Cn.label?Cn.label:null,nzValue:Cn.value,nzDisabled:Cn.disabled||!1,nzHide:Cn.hide||!1,nzCustomContent:Cn.label instanceof t.C4Q,groupLabel:Cn.groupLabel||null,type:"item",key:void 0===Cn.key?Cn.value:Cn.key}));this.listOfTemplateItem$.next(rn)}if(qe&&this.setStatusStyles(this.nzStatus,this.hasFeedback),rt){const{currentValue:Ft}=rt;this.dropDownPosition=Ft;const rn=["bottomLeft","topLeft","bottomRight","topRight"];this.positions=Ft&&rn.includes(Ft)?[I.pn[Ft]]:rn.map(Cn=>I.pn[Cn])}}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,ne.F)((ve,K)=>ve.status===K.status&&ve.hasFeedback===K.hasFeedback),(0,J.E)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,M.of)(!1)),(0,be.T)(([{status:ve,hasFeedback:K},U])=>({status:U?"":ve,hasFeedback:K})),(0,V.Q)(this.destroy$)).subscribe(({status:ve,hasFeedback:K})=>{this.setStatusStyles(ve,K)}),this.focusMonitor.monitor(this.host,!0).pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{ve?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,G.z)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,V.Q)(this.destroy$)).subscribe(([ve,K])=>{const U=ve.filter(()=>"tags"===this.nzMode).filter(ge=>-1===K.findIndex(qe=>this.compareWith(qe.nzValue,ge))).map(ge=>this.listOfTopItem.find(qe=>this.compareWith(qe.nzValue,ge))||this.generateTagItem(ge));this.listOfTagAndTemplateItem=[...K,...U],this.listOfTopItem=this.listOfValue.map(ge=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(qe=>this.compareWith(ge,qe.nzValue))).filter(ge=>!!ge),this.updateListOfContainerItem()}),this.directionality.change?.pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{this.dir=ve,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>(0,g.R)(this.host.nativeElement,"click").pipe((0,V.Q)(this.destroy$)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))})),this.cdkConnectedOverlay.overlayKeydown.pipe((0,V.Q)(this.destroy$)).subscribe(ve=>{ve.keyCode===de._f&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||(0,L.h)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,x.Z)(!0),(0,Oe.n)(()=>(0,L.h)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(ve=>ve.changes),...this.listOfNzOptionGroupComponent.map(ve=>ve.changes)).pipe((0,x.Z)(!0))),(0,V.Q)(this.destroy$)).subscribe(()=>{const ve=this.listOfNzOptionComponent.toArray().map(K=>{const{template:U,nzLabel:ge,nzValue:qe,nzKey:rt,nzDisabled:Ft,nzHide:rn,nzCustomContent:Cn,groupLabel:Zn}=K;return{template:U,nzLabel:ge,nzValue:qe,nzDisabled:Ft,nzHide:rn,nzCustomContent:Cn,groupLabel:Zn,nzTitle:this.getTitle(K.nzTitle,K.nzLabel),type:"item",key:void 0===rt?qe:rt}});this.listOfTemplateItem$.next(ve),this.cdr.markForCheck()})}ngOnDestroy(){(0,R.F)(this.requestId),this.focusMonitor.stopMonitoring(this.host)}setStatusStyles(ve,K){this.status=ve,this.hasFeedback=K,this.cdr.markForCheck(),this.statusCls=(0,Y.LP)(this.prefixCls,ve,K),Object.keys(this.statusCls).forEach(U=>{this.statusCls[U]?this.renderer.addClass(this.host.nativeElement,U):this.renderer.removeClass(this.host.nativeElement,U)})}getTitle(ve,K){let U;return void 0===ve?("string"==typeof K||"number"==typeof K)&&(U=K.toString()):("string"==typeof ve||"number"==typeof ve)&&(U=ve.toString()),U}static#e=this.\u0275fac=function(K){return new(K||N)(t.rXU(t.SKi),t.rXU(he.y4),t.rXU(pe.yx),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(H.OD),t.rXU(se.FN),t.rXU(Be.dS,8),t.rXU(S.z,9),t.rXU(E.is,8),t.rXU(E.n1,8))};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["nz-select"]],contentQueries:function(K,U,ge){if(1&K&&(t.wni(ge,Qe,5),t.wni(ge,Xe,5)),2&K){let qe;t.mGM(qe=t.lsd())&&(U.listOfNzOptionComponent=qe),t.mGM(qe=t.lsd())&&(U.listOfNzOptionGroupComponent=qe)}},viewQuery:function(K,U){if(1&K&&(t.GBs(B.$Q,7,t.aKT),t.GBs(B.WB,7),t.GBs(Ke,7),t.GBs(Xe,7,t.aKT),t.GBs(Ke,7,t.aKT)),2&K){let ge;t.mGM(ge=t.lsd())&&(U.originElement=ge.first),t.mGM(ge=t.lsd())&&(U.cdkConnectedOverlay=ge.first),t.mGM(ge=t.lsd())&&(U.nzSelectTopControlComponent=ge.first),t.mGM(ge=t.lsd())&&(U.nzOptionGroupComponentElement=ge.first),t.mGM(ge=t.lsd())&&(U.nzSelectTopControlComponentElement=ge.first)}},hostAttrs:[1,"ant-select"],hostVars:26,hostBindings:function(K,U){2&K&&t.AVh("ant-select-in-form-item",!!U.nzFormStatusService)("ant-select-lg","large"===U.nzSize)("ant-select-sm","small"===U.nzSize)("ant-select-show-arrow",U.nzShowArrow)("ant-select-disabled",U.nzDisabled)("ant-select-show-search",(U.nzShowSearch||"default"!==U.nzMode)&&!U.nzDisabled)("ant-select-allow-clear",U.nzAllowClear)("ant-select-borderless",U.nzBorderless)("ant-select-open",U.nzOpen)("ant-select-focused",U.nzOpen||U.focused)("ant-select-single","default"===U.nzMode)("ant-select-multiple","default"!==U.nzMode)("ant-select-rtl","rtl"===U.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:[2,"nzAllowClear","nzAllowClear",t.L39],nzBorderless:[2,"nzBorderless","nzBorderless",t.L39],nzShowSearch:[2,"nzShowSearch","nzShowSearch",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],nzAutoClearSearchValue:[2,"nzAutoClearSearchValue","nzAutoClearSearchValue",t.L39],nzServerSearch:[2,"nzServerSearch","nzServerSearch",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzOpen:[2,"nzOpen","nzOpen",t.L39],nzSelectOnTab:[2,"nzSelectOnTab","nzSelectOnTab",t.L39],nzBackdrop:[2,"nzBackdrop","nzBackdrop",t.L39],nzOptions:"nzOptions",nzShowArrow:[2,"nzShowArrow","nzShowArrow",t.L39]},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],standalone:!0,features:[t.Jv_([he.y4,{provide:z.kq,useExisting:(0,t.Rfq)(()=>N),multi:!0}]),t.GFd,t.OA$,t.aNF],decls:5,vars:25,consts:[["origin","cdkOverlayOrigin"],["feedbackIconTpl",""],["cdkOverlayOrigin","",3,"inputValueChange","tokenize","deleteItem","keydown","nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxTagCountSet",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxTagCountSet"],[3,"status",4,"ngIf"],[3,"status"],[3,"clear","clearIcon"],[3,"keydown","itemClick","scrollToBottom","ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","isMaxLimitReached"]],template:function(K,U){if(1&K){const ge=t.RV6();t.j41(0,"nz-select-top-control",2,0),t.bIt("inputValueChange",function(rt){return t.eBV(ge),t.Njj(U.onInputValueChange(rt))})("tokenize",function(rt){return t.eBV(ge),t.Njj(U.onTokenSeparate(rt))})("deleteItem",function(rt){return t.eBV(ge),t.Njj(U.onItemDelete(rt))})("keydown",function(rt){return t.eBV(ge),t.Njj(U.onKeyDown(rt))}),t.k0s(),t.DNE(2,ue,3,8,"nz-select-arrow",3)(3,te,1,1,"nz-select-clear",4)(4,q,1,24,"ng-template",5),t.bIt("overlayOutsideClick",function(rt){return t.eBV(ge),t.Njj(U.onClickOutside(rt))})("detach",function(){return t.eBV(ge),t.Njj(U.setOpenState(!1))})("positionChange",function(rt){return t.eBV(ge),t.Njj(U.onPositionChange(rt))})}if(2&K){const ge=t.sdS(1);t.Y8G("nzId",U.nzId)("open",U.nzOpen)("disabled",U.nzDisabled)("mode",U.nzMode)("@.disabled",!(null==U.noAnimation||!U.noAnimation.nzNoAnimation))("nzNoAnimation",null==U.noAnimation?null:U.noAnimation.nzNoAnimation)("maxTagPlaceholder",U.nzMaxTagPlaceholder)("removeIcon",U.nzRemoveIcon)("placeHolder",U.nzPlaceHolder)("maxTagCount",U.nzMaxTagCount)("customTemplate",U.nzCustomTemplate)("tokenSeparators",U.nzTokenSeparators)("showSearch",U.nzShowSearch)("autofocus",U.nzAutoFocus)("listOfTopItem",U.listOfTopItem),t.R7$(2),t.Y8G("ngIf",U.nzShowArrow||U.hasFeedback&&!!U.status||U.isMaxTagCountSet),t.R7$(),t.Y8G("ngIf",U.nzAllowClear&&!U.nzDisabled&&U.listOfValue.length),t.R7$(),t.Y8G("cdkConnectedOverlayHasBackdrop",U.nzBackdrop)("cdkConnectedOverlayMinWidth",U.nzDropdownMatchSelectWidth?null:U.triggerWidth)("cdkConnectedOverlayWidth",U.nzDropdownMatchSelectWidth?U.triggerWidth:null)("cdkConnectedOverlayOrigin",ge)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",U.nzDropdownClassName)("cdkConnectedOverlayOpen",U.nzOpen)("cdkConnectedOverlayPositions",U.positions)}},dependencies:[Ke,B.$Q,S.z,Ee,w.bT,E.J1,E.Xd,Je,B.WB,I.$_,I.vT,St,w.B3],encapsulation:2,data:{animation:[Z.U1]},changeDetection:0})}return(0,me.Cg)([(0,pe.H4)()],N.prototype,"nzOptionHeightPx",void 0),(0,me.Cg)([(0,pe.H4)()],N.prototype,"nzSuffixIcon",void 0),(0,me.Cg)([(0,pe.H4)()],N.prototype,"nzBorderless",void 0),(0,me.Cg)([(0,pe.H4)()],N.prototype,"nzBackdrop",void 0),N})(),ce=(()=>{class N{static#e=this.\u0275fac=function(K){return new(K||N)};static#t=this.\u0275mod=t.$C({type:N});static#n=this.\u0275inj=t.G2t({imports:[$,St,at,Ke,gt,re,Je,Ee,ze,ht]})}return N})()},1912:(Rt,De,c)=>{c.d(De,{Bi:()=>he,i3:()=>Ie});var t=c(177),r=c(3953),g=c(317);const M=["nzType","avatar"],B=["*"];function A(me,de){if(1&me&&(r.j41(0,"div",5),r.nrm(1,"nz-skeleton-element",6),r.k0s()),2&me){const H=r.XpG(2);r.R7$(),r.Y8G("nzSize",H.avatar.size||"default")("nzShape",H.avatar.shape||"circle")}}function w(me,de){if(1&me&&r.nrm(0,"h3",7),2&me){const H=r.XpG(2);r.xc7("width",H.toCSSUnit(H.title.width))}}function I(me,de){if(1&me&&r.nrm(0,"li"),2&me){const H=de.index,z=r.XpG(3);r.xc7("width",z.toCSSUnit(z.widthList[H]))}}function F(me,de){if(1&me&&(r.j41(0,"ul",8),r.DNE(1,I,1,2,"li",9),r.k0s()),2&me){const H=r.XpG(2);r.R7$(),r.Y8G("ngForOf",H.rowsList)}}function X(me,de){if(1&me&&(r.qex(0),r.DNE(1,A,2,2,"div",1),r.j41(2,"div",2),r.DNE(3,w,1,2,"h3",3)(4,F,2,1,"ul",4),r.k0s(),r.bVm()),2&me){const H=r.XpG();r.R7$(),r.Y8G("ngIf",!!H.nzAvatar),r.R7$(2),r.Y8G("ngIf",!!H.nzTitle),r.R7$(),r.Y8G("ngIf",!!H.nzParagraph)}}function V(me,de){1&me&&(r.qex(0),r.SdG(1),r.bVm())}let x=(()=>{class me{constructor(){this.nzActive=!1,this.nzBlock=!1}static#e=this.\u0275fac=function(z){return new(z||me)};static#t=this.\u0275dir=r.FsC({type:me,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(z,Z){2&z&&r.AVh("ant-skeleton-active",Z.nzActive)("ant-skeleton-block",Z.nzBlock)},inputs:{nzActive:[2,"nzActive","nzActive",r.L39],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",r.L39]},standalone:!0,features:[r.GFd]})}return me})(),J=(()=>{class me{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(H){if(H.nzSize&&"number"==typeof this.nzSize){const z=`${this.nzSize}px`;this.styleMap={width:z,height:z,"line-height":z}}else this.styleMap={}}static#e=this.\u0275fac=function(z){return new(z||me)};static#t=this.\u0275cmp=r.VBU({type:me,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},standalone:!0,features:[r.OA$,r.aNF],attrs:M,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(z,Z){1&z&&r.nrm(0,"span",0),2&z&&(r.AVh("ant-skeleton-avatar-square","square"===Z.nzShape)("ant-skeleton-avatar-circle","circle"===Z.nzShape)("ant-skeleton-avatar-lg","large"===Z.nzSize)("ant-skeleton-avatar-sm","small"===Z.nzSize),r.Y8G("ngStyle",Z.styleMap))},dependencies:[t.B3],encapsulation:2,changeDetection:0})}return me})(),he=(()=>{class me{constructor(H){this.cdr=H,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[]}toCSSUnit(H=""){return(0,g.j3)(H)}getTitleProps(){const H=!!this.nzAvatar,z=!!this.nzParagraph;let Z="";return!H&&z?Z="38%":H&&z&&(Z="50%"),{width:Z,...this.getProps(this.nzTitle)}}getAvatarProps(){return{shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large",...this.getProps(this.nzAvatar)}}getParagraphProps(){const H=!!this.nzAvatar,z=!!this.nzTitle,Z={};return(!H||!z)&&(Z.width="61%"),Z.rows=!H&&z?3:2,{...Z,...this.getProps(this.nzParagraph)}}getProps(H){return H&&"object"==typeof H?H:{}}getWidthList(){const{width:H,rows:z}=this.paragraph;let Z=[];return H&&Array.isArray(H)?Z=H:H&&!Array.isArray(H)&&(Z=[],Z[z-1]=H),Z}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(H){(H.nzTitle||H.nzAvatar||H.nzParagraph)&&this.updateProps()}static#e=this.\u0275fac=function(z){return new(z||me)(r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:me,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(z,Z){2&z&&r.AVh("ant-skeleton-with-avatar",!!Z.nzAvatar)("ant-skeleton-active",Z.nzActive)("ant-skeleton-round",!!Z.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],standalone:!0,features:[r.OA$,r.aNF],ngContentSelectors:B,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(z,Z){1&z&&(r.NAR(),r.DNE(0,X,5,3,"ng-container",0)(1,V,2,0,"ng-container",0)),2&z&&(r.Y8G("ngIf",Z.nzLoading),r.R7$(),r.Y8G("ngIf",!Z.nzLoading))},dependencies:[x,J,t.bT,t.Sq],encapsulation:2,changeDetection:0})}return me})(),Ie=(()=>{class me{static#e=this.\u0275fac=function(z){return new(z||me)};static#t=this.\u0275mod=r.$C({type:me});static#n=this.\u0275inj=r.G2t({})}return me})()},7685:(Rt,De,c)=>{c.d(De,{Dq:()=>F,U5:()=>x,pc:()=>ne});var t=c(3953),r=c(4707),g=c(177),e=c(1413),M=c(6977),G=c(6042);const L=["*"],B=J=>({$implicit:J});function A(J,be){}function w(J,be){if(1&J&&(t.j41(0,"span",4),t.DNE(1,A,0,0,"ng-template",5),t.k0s()),2&J){const Oe=t.XpG(),he=Oe.last,Ie=Oe.index,me=t.XpG();t.xc7("margin-bottom","vertical"===me.nzDirection?he?null:me.spaceSize:null,"px")("margin-right","horizontal"===me.nzDirection?he?null:me.spaceSize:null,"px"),t.R7$(),t.Y8G("ngTemplateOutlet",me.nzSplit)("ngTemplateOutletContext",t.eq3(6,B,Ie))}}function I(J,be){if(1&J&&(t.j41(0,"div",1),t.eu8(1,2),t.k0s(),t.DNE(2,w,2,8,"span",3)),2&J){const Oe=be.$implicit,he=be.last,Ie=t.XpG();t.xc7("margin-bottom","vertical"===Ie.nzDirection?he?null:Ie.spaceSize:null,"px")("margin-right","horizontal"===Ie.nzDirection?he?null:Ie.spaceSize:null,"px"),t.R7$(),t.Y8G("ngTemplateOutlet",Oe),t.R7$(),t.Y8G("ngIf",Ie.nzSplit&&!he)}}let F=(()=>{class J{constructor(){}static#e=this.\u0275fac=function(he){return new(he||J)};static#t=this.\u0275dir=t.FsC({type:J,selectors:[["","nzSpaceItem",""]],standalone:!0})}return J})();const V={small:8,middle:16,large:24};let x=(()=>{class J{constructor(Oe,he){this.nzConfigService=Oe,this.cdr=he,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=V.small,this.destroy$=new e.B}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?V[this.nzSize]:this.nzSize)/(this.nzSplit?2:1),this.cdr.markForCheck()}ngOnChanges(){this.updateSpaceItems(),this.mergedAlign=void 0===this.nzAlign&&"horizontal"===this.nzDirection?"center":this.nzAlign}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,M.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}static#e=this.\u0275fac=function(he){return new(he||J)(t.rXU(G.yx),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:J,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(he,Ie,me){if(1&he&&t.wni(me,F,4,t.C4Q),2&he){let de;t.mGM(de=t.lsd())&&(Ie.items=de)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(he,Ie){2&he&&(t.xc7("flex-wrap",Ie.nzWrap?"wrap":null),t.AVh("ant-space-horizontal","horizontal"===Ie.nzDirection)("ant-space-vertical","vertical"===Ie.nzDirection)("ant-space-align-start","start"===Ie.mergedAlign)("ant-space-align-end","end"===Ie.mergedAlign)("ant-space-align-center","center"===Ie.mergedAlign)("ant-space-align-baseline","baseline"===Ie.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:[2,"nzWrap","nzWrap",t.L39],nzSize:"nzSize"},exportAs:["NzSpace"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:L,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],[1,"ant-space-item"],[3,"ngTemplateOutlet"],["class","ant-space-split",3,"margin-bottom","margin-right",4,"ngIf"],[1,"ant-space-split"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(he,Ie){1&he&&(t.NAR(),t.SdG(0),t.DNE(1,I,3,6,"ng-template",0)),2&he&&(t.R7$(),t.Y8G("ngForOf",Ie.items))},dependencies:[g.T3,g.bT,g.Sq],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,G.H4)()],J.prototype,"nzSize",void 0),J})(),ne=(()=>{class J{static#e=this.\u0275fac=function(he){return new(he||J)};static#t=this.\u0275mod=t.$C({type:J});static#n=this.\u0275inj=t.G2t({})}return J})()},2983:(Rt,De,c)=>{c.d(De,{a:()=>Z,V:()=>pe});var t=c(4707),r=c(177),g=c(3953),e=c(1413),M=c(4412),G=c(2771),L=c(1584),B=c(9172),A=c(3294),w=c(5558),I=c(9974),F=c(5343),X=c(4360),V=c(8750),ne=c(6977),J=c(6042),be=c(8203);const Oe=["*"];function he(E,S){1&E&&(g.j41(0,"span",3),g.nrm(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),g.k0s())}function Ie(E,S){}function me(E,S){if(1&E&&(g.j41(0,"div",8),g.EFF(1),g.k0s()),2&E){const R=g.XpG(2);g.R7$(),g.JRh(R.nzTip)}}function de(E,S){if(1&E&&(g.j41(0,"div")(1,"div",5),g.DNE(2,Ie,0,0,"ng-template",6)(3,me,2,1,"div",7),g.k0s()()),2&E){const R=g.XpG(),Y=g.sdS(1);g.R7$(),g.AVh("ant-spin-rtl","rtl"===R.dir)("ant-spin-spinning",R.isLoading)("ant-spin-lg","large"===R.nzSize)("ant-spin-sm","small"===R.nzSize)("ant-spin-show-text",R.nzTip),g.R7$(),g.Y8G("ngTemplateOutlet",R.nzIndicator||Y),g.R7$(),g.Y8G("ngIf",R.nzTip)}}function H(E,S){if(1&E&&(g.j41(0,"div",9),g.SdG(1),g.k0s()),2&E){const R=g.XpG();g.AVh("ant-spin-blur",R.isLoading)}}const z="spin";let Z=(()=>{class E{constructor(R,Y,se){this.nzConfigService=R,this.cdr=Y,this.directionality=se,this._nzModuleName=z,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new e.B,this.spinning$=new M.t(this.nzSpinning),this.delay$=new G.m(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){this.delay$.pipe((0,B.Z)(this.nzDelay),(0,A.F)(),(0,w.n)(Y=>0===Y?this.spinning$:this.spinning$.pipe(function x(E){return(0,I.N)((S,R)=>{let Y=!1,se=null,Be=null;const Pt=()=>{if(Be?.unsubscribe(),Be=null,Y){Y=!1;const vt=se;se=null,R.next(vt)}};S.subscribe((0,X._)(R,vt=>{Be?.unsubscribe(),Y=!0,se=vt,Be=(0,X._)(R,Pt,F.l),(0,V.Tg)(E(vt)).subscribe(Be)},()=>{Pt(),R.complete()},void 0,()=>{se=Be=null}))})}(se=>(0,L.O)(se?Y:0)))),(0,ne.Q)(this.destroy$)).subscribe(Y=>{this.isLoading=Y,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(z).pipe((0,ne.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change?.pipe((0,ne.Q)(this.destroy$)).subscribe(Y=>{this.dir=Y,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(R){const{nzSpinning:Y,nzDelay:se}=R;Y&&this.spinning$.next(this.nzSpinning),se&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(J.yx),g.rXU(g.gRc),g.rXU(be.dS,8))};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(Y,se){2&Y&&g.AVh("ant-spin-nested-loading",!se.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",g.Udg],nzSimple:[2,"nzSimple","nzSimple",g.L39],nzSpinning:[2,"nzSpinning","nzSpinning",g.L39]},exportAs:["nzSpin"],standalone:!0,features:[g.GFd,g.OA$,g.aNF],ngContentSelectors:Oe,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(Y,se){1&Y&&(g.NAR(),g.DNE(0,he,5,0,"ng-template",null,0,g.C5r)(2,de,4,12,"div",1)(3,H,2,2,"div",2)),2&Y&&(g.R7$(2),g.Y8G("ngIf",se.isLoading),g.R7$(),g.Y8G("ngIf",!se.nzSimple))},dependencies:[r.bT,r.T3],encapsulation:2})}return(0,t.Cg)([(0,J.H4)()],E.prototype,"nzIndicator",void 0),E})(),pe=(()=>{class E{static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275mod=g.$C({type:E});static#n=this.\u0275inj=g.G2t({})}return E})()},9247:(Rt,De,c)=>{c.d(De,{jc:()=>_o,OL:()=>ai,Kg:()=>xn,SO:()=>Ei,CP:()=>Uo,$G:()=>ds,CC:()=>Fo,aj:()=>yr,GM:()=>no,Cc:()=>ao,_4:()=>io,oZ:()=>Fn,IL:()=>Eo,kt:()=>es});var t=c(3953),r=c(4707),g=c(3726),e=c(1413),M=c(2771),G=c(4412),L=c(4572),B=c(7786),A=c(983),w=c(7673),I=c(6977),F=c(6354),X=c(3294),V=c(152),x=c(5245),ne=c(5964),J=c(5558),be=c(9172),Oe=c(1986),he=c(1397),Ie=c(6042),me=c(1025),de=c(2602),H=c(177),z=c(9417),Z=c(513),pe=c(2986),E=c(317),S=c(5103),R=c(3190),Y=c(1377),se=c(1868),Be=c(6389),Pt=c(5930),vt=c(946),wt=c(1672),Le=c(5979),zt=c(6860),xt=c(1997),st=c(8203);const Ct=["nz-pagination-item",""],It=(Ze,An)=>({$implicit:Ze,page:An});function Tt(Ze,An){if(1&Ze&&(t.j41(0,"a"),t.EFF(1),t.k0s()),2&Ze){const fe=t.XpG().page;t.R7$(),t.JRh(fe)}}function en(Ze,An){1&Ze&&t.nrm(0,"span",4)}function jt(Ze,An){1&Ze&&t.nrm(0,"span",5)}function Vt(Ze,An){if(1&Ze&&(t.j41(0,"button",2),t.DNE(1,en,1,0,"span",4)(2,jt,1,0,"span",5),t.k0s()),2&Ze){const fe=t.XpG(2);t.Y8G("disabled",fe.disabled),t.BMQ("title",fe.locale.prev_page),t.R7$(),t.vxM("rtl"===fe.direction?1:2)}}function fn(Ze,An){1&Ze&&t.nrm(0,"span",5)}function Hn(Ze,An){1&Ze&&t.nrm(0,"span",4)}function zn(Ze,An){if(1&Ze&&(t.j41(0,"button",2),t.DNE(1,fn,1,0,"span",5)(2,Hn,1,0,"span",4),t.k0s()),2&Ze){const fe=t.XpG(2);t.Y8G("disabled",fe.disabled),t.BMQ("title",fe.locale.next_page),t.R7$(),t.vxM("rtl"===fe.direction?1:2)}}function bt(Ze,An){1&Ze&&t.nrm(0,"span",8)}function At(Ze,An){1&Ze&&t.nrm(0,"span",9)}function Et(Ze,An){if(1&Ze&&t.DNE(0,bt,1,0,"span",8)(1,At,1,0,"span",9),2&Ze){const fe=t.XpG(3);t.vxM("rtl"===fe.direction?0:1)}}function Ot(Ze,An){1&Ze&&t.nrm(0,"span",9)}function Wt(Ze,An){1&Ze&&t.nrm(0,"span",8)}function Ue(Ze,An){if(1&Ze&&t.DNE(0,Ot,1,0,"span",9)(1,Wt,1,0,"span",8),2&Ze){const fe=t.XpG(3);t.vxM("rtl"===fe.direction?0:1)}}function Ae(Ze,An){if(1&Ze&&(t.j41(0,"a",3)(1,"div",6),t.DNE(2,Et,2,1)(3,Ue,2,1),t.j41(4,"span",7),t.EFF(5,"\u2022\u2022\u2022"),t.k0s()()()),2&Ze){let fe;const We=t.XpG().$implicit;t.R7$(2),t.vxM("prev_5"===(fe=We)?2:"next_5"===fe?3:-1)}}function ie(Ze,An){if(1&Ze&&t.DNE(0,Tt,2,1,"a")(1,Vt,3,3,"button",2)(2,zn,3,3,"button",2)(3,Ae,6,1,"a",3),2&Ze){let fe;t.vxM("page"===(fe=An.$implicit)?0:"prev"===fe?1:"next"===fe?2:3)}}function _e(Ze,An){}const oe=["nz-pagination-options",""],Fe=(Ze,An)=>An.value;function et(Ze,An){if(1&Ze&&t.nrm(0,"nz-option",3),2&Ze){const fe=An.$implicit;t.Y8G("nzLabel",fe.label)("nzValue",fe.value)}}function dt(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"nz-select",2),t.bIt("ngModelChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onPageSizeChange(ct))}),t.Z7z(1,et,1,2,"nz-option",3,Fe),t.k0s()}if(2&Ze){const fe=t.XpG();t.Y8G("nzDisabled",fe.disabled)("nzSize",fe.nzSize)("ngModel",fe.pageSize),t.R7$(),t.Dyx(fe.listOfPageSizeOption)}}function Kt(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"div",1),t.EFF(1),t.j41(2,"input",4),t.bIt("keydown.enter",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.jumpToPageViaInput(ct))}),t.k0s(),t.EFF(3),t.k0s()}if(2&Ze){const fe=t.XpG();t.R7$(),t.SpI(" ",fe.locale.jump_to," "),t.R7$(),t.Y8G("disabled",fe.disabled),t.R7$(),t.SpI(" ",fe.locale.page," ")}}const cn=["containerTemplate"],Tn=(Ze,An)=>({$implicit:Ze,range:An});function Wn(Ze,An){}function kn(Ze,An){if(1&Ze&&(t.j41(0,"li",1),t.DNE(1,Wn,0,0,"ng-template",4),t.k0s()),2&Ze){const fe=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",fe.showTotal)("ngTemplateOutletContext",t.l_i(2,Tn,fe.total,fe.ranges))}}function Vn(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"li",5),t.bIt("gotoIndex",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.jumpPage(ct))})("diffIndex",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.jumpDiff(ct))}),t.k0s()}if(2&Ze){const fe=An.$implicit,We=t.XpG(2);t.Y8G("locale",We.locale)("type",fe.type)("index",fe.index)("disabled",!!fe.disabled)("itemRender",We.itemRender)("active",We.pageIndex===fe.index)("direction",We.dir)}}function Un(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"li",6),t.bIt("pageIndexChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onPageIndexChange(ct))})("pageSizeChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onPageSizeChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG(2);t.Y8G("total",fe.total)("locale",fe.locale)("disabled",fe.disabled)("nzSize",fe.nzSize)("showSizeChanger",fe.showSizeChanger)("showQuickJumper",fe.showQuickJumper)("pageIndex",fe.pageIndex)("pageSize",fe.pageSize)("pageSizeOptions",fe.pageSizeOptions)}}function dn(Ze,An){if(1&Ze&&(t.j41(0,"ul"),t.DNE(1,kn,2,5,"li",1),t.Z7z(2,Vn,1,7,"li",2,t.BUC().trackByPageItem,!0),t.DNE(4,Un,1,9,"li",3),t.k0s()),2&Ze){const fe=t.XpG();t.R7$(),t.vxM(fe.showTotal?1:-1),t.R7$(),t.Dyx(fe.listOfPageItem),t.R7$(2),t.vxM(fe.showQuickJumper||fe.showSizeChanger?4:-1)}}function qt(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"ul")(1,"li",1),t.bIt("click",function(){t.eBV(fe);const ct=t.XpG();return t.Njj(ct.prePage())}),t.k0s(),t.j41(2,"li",2)(3,"input",3),t.bIt("keydown.enter",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.jumpToPageViaInput(ct))}),t.k0s(),t.j41(4,"span",4),t.EFF(5,"/"),t.k0s(),t.EFF(6),t.k0s(),t.j41(7,"li",5),t.bIt("click",function(){t.eBV(fe);const ct=t.XpG();return t.Njj(ct.nextPage())}),t.k0s()()}if(2&Ze){const fe=t.XpG();t.R7$(),t.Y8G("locale",fe.locale)("disabled",fe.isFirstIndex)("direction",fe.dir)("itemRender",fe.itemRender),t.BMQ("title",fe.locale.prev_page),t.R7$(),t.BMQ("title",fe.pageIndex+"/"+fe.lastIndex),t.R7$(),t.Y8G("disabled",fe.disabled)("value",fe.pageIndex),t.R7$(3),t.SpI(" ",fe.lastIndex," "),t.R7$(),t.Y8G("locale",fe.locale)("disabled",fe.isLastIndex)("direction",fe.dir)("itemRender",fe.itemRender),t.BMQ("title",null==fe.locale?null:fe.locale.next_page)}}function On(Ze,An){}function Ut(Ze,An){if(1&Ze&&t.DNE(0,On,0,0,"ng-template",4),2&Ze){t.XpG(2);const fe=t.sdS(2);t.Y8G("ngTemplateOutlet",fe.template)}}function Ye(Ze,An){}function ue(Ze,An){if(1&Ze&&t.DNE(0,Ye,0,0,"ng-template",4),2&Ze){t.XpG(2);const fe=t.sdS(4);t.Y8G("ngTemplateOutlet",fe.template)}}function te(Ze,An){if(1&Ze&&t.DNE(0,Ut,1,1,null,4)(1,ue,1,1,null,4),2&Ze){const fe=t.XpG();t.vxM(fe.nzSimple?0:1)}}let q=(()=>{class Ze{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new t.bkB,this.gotoIndex=new t.bkB,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(fe){const{locale:We,index:ct,type:sn}=fe;(We||ct||sn)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(We,ct){1&We&&t.bIt("click",function(){return ct.clickItem()}),2&We&&(t.BMQ("title",ct.title),t.AVh("ant-pagination-prev","prev"===ct.type)("ant-pagination-next","next"===ct.type)("ant-pagination-item","page"===ct.type)("ant-pagination-jump-prev","prev_5"===ct.type)("ant-pagination-jump-prev-custom-icon","prev_5"===ct.type)("ant-pagination-jump-next","next_5"===ct.type)("ant-pagination-jump-next-custom-icon","next_5"===ct.type)("ant-pagination-disabled",ct.disabled)("ant-pagination-item-active",ct.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},standalone:!0,features:[t.OA$,t.aNF],attrs:Ct,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",1,"ant-pagination-item-link",3,"disabled"],[1,"ant-pagination-item-link"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],[1,"ant-pagination-item-container"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"]],template:function(We,ct){if(1&We&&t.DNE(0,ie,4,1,"ng-template",null,0,t.C5r)(2,_e,0,0,"ng-template",1),2&We){const sn=t.sdS(1);t.R7$(2),t.Y8G("ngTemplateOutlet",ct.itemRender||sn)("ngTemplateOutletContext",t.l_i(2,It,ct.type,ct.index))}},dependencies:[S.Y3,S.Dn,H.T3],encapsulation:2,changeDetection:0})}return Ze})(),Xe=(()=>{class Ze{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new t.bkB,this.pageSizeChange=new t.bkB,this.listOfPageSizeOption=[]}onPageSizeChange(fe){this.pageSize!==fe&&this.pageSizeChange.next(fe)}jumpToPageViaInput(fe){const We=fe.target,ct=Math.floor((0,E.Ro)(We.value,this.pageIndex));this.pageIndexChange.next(ct),We.value=""}ngOnChanges(fe){const{pageSize:We,pageSizeOptions:ct,locale:sn}=fe;(We||ct||sn)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(Bn=>({value:Bn,label:`${Bn} ${this.locale.items_per_page}`})))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["li","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},standalone:!0,features:[t.OA$,t.aNF],attrs:oe,decls:2,vars:2,consts:[[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel"],[1,"ant-pagination-options-quick-jumper"],[1,"ant-pagination-options-size-changer",3,"ngModelChange","nzDisabled","nzSize","ngModel"],[3,"nzLabel","nzValue"],[3,"keydown.enter","disabled"]],template:function(We,ct){1&We&&t.DNE(0,dt,3,3,"nz-select",0)(1,Kt,4,3,"div",1),2&We&&(t.vxM(ct.showSizeChanger?0:-1),t.R7$(),t.vxM(ct.showQuickJumper?1:-1))},dependencies:[xt.DH,xt.ld,xt.WI,z.YN,z.BC,z.vS],encapsulation:2,changeDetection:0})}return Ze})(),ht=(()=>{class Ze{constructor(fe,We,ct,sn){this.cdr=fe,this.renderer=We,this.elementRef=ct,this.directionality=sn,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new t.bkB,this.pageSizeChange=new t.bkB,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new e.B,We.removeChild(We.parentNode(ct.nativeElement),ct.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(fe){this.onPageIndexChange(fe)}jumpDiff(fe){this.jumpPage(this.pageIndex+fe)}trackByPageItem(fe,We){return`${We.type}-${We.index}`}onPageIndexChange(fe){this.pageIndexChange.next(fe)}onPageSizeChange(fe){this.pageSizeChange.next(fe)}getLastIndex(fe,We){return Math.ceil(fe/We)}buildIndexes(){const fe=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,fe)}getListOfPageItem(fe,We){const sn=(Bn,$n)=>{const fi=[];for(let ki=Bn;ki<=$n;ki++)fi.push({index:ki,type:"page"});return fi};return Bn=We<=9?sn(1,We):(($n,fi)=>{let ki=[];const To={type:"prev_5"},di={type:"next_5"},ho=sn(1,1),Oo=sn(We,We);return ki=$n<5?[...sn(2,4===$n?6:5),di]:$n{class Ze{constructor(fe,We,ct,sn){this.cdr=fe,this.renderer=We,this.elementRef=ct,this.directionality=sn,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new t.bkB,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new e.B,We.removeChild(We.parentNode(ct.nativeElement),ct.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(fe){const We=fe.target,ct=(0,E.Ro)(We.value,this.pageIndex);this.onPageIndexChange(ct),We.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(fe){this.pageIndexChange.next(fe)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(fe){const{pageIndex:We,total:ct,pageSize:sn}=fe;(We||ct||sn)&&this.updateBindingValue()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.gRc),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-pagination-simple"]],viewQuery:function(We,ct){if(1&We&&t.GBs(cn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.template=sn.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"click","locale","disabled","direction","itemRender"],[1,"ant-pagination-simple-pager"],["size","3",3,"keydown.enter","disabled","value"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"click","locale","disabled","direction","itemRender"]],template:function(We,ct){1&We&&t.DNE(0,qt,8,14,"ng-template",null,0,t.C5r)},dependencies:[q],encapsulation:2,changeDetection:0})}return Ze})(),Qe=(()=>{class Ze{validatePageIndex(fe,We){return fe>We?We:fe<1?1:fe}onPageIndexChange(fe){const We=this.getLastIndex(this.nzTotal,this.nzPageSize),ct=this.validatePageIndex(fe,We);ct!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=ct,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(fe){this.nzPageSize=fe,this.nzPageSizeChange.emit(fe);const We=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>We&&this.onPageIndexChange(We)}onTotalChange(fe){const We=this.getLastIndex(fe,this.nzPageSize);this.nzPageIndex>We&&Promise.resolve().then(()=>{this.onPageIndexChange(We),this.cdr.markForCheck()})}getLastIndex(fe,We){return Math.ceil(fe/We)}constructor(fe,We,ct,sn,Bn){this.i18n=fe,this.cdr=We,this.breakpointService=ct,this.nzConfigService=sn,this.directionality=Bn,this._nzModuleName="pagination",this.nzPageSizeChange=new t.bkB,this.nzPageIndexChange=new t.bkB,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new e.B,this.total$=new M.m(1)}ngOnInit(){this.i18n.localeChange.pipe((0,I.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.onTotalChange(fe)}),this.breakpointService.subscribe(me.fe).pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.nzResponsive&&(this.size=fe===me.pt.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.dir=fe,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(fe){const{nzHideOnSinglePage:We,nzTotal:ct,nzPageSize:sn,nzSize:Bn}=fe;ct&&this.total$.next(this.nzTotal),(We||ct||sn)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),Bn&&(this.size=Bn.currentValue)}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(Y.Og),t.rXU(t.gRc),t.rXU(me.jp),t.rXU(Ie.yx),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(We,ct){2&We&&t.AVh("ant-pagination-simple",ct.nzSimple)("ant-pagination-disabled",ct.nzDisabled)("ant-pagination-mini",!ct.nzSimple&&"small"===ct.size)("ant-pagination-rtl","rtl"===ct.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",t.L39],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",t.L39],nzSimple:[2,"nzSimple","nzSimple",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzResponsive:[2,"nzResponsive","nzResponsive",t.L39],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",t.L39],nzTotal:[2,"nzTotal","nzTotal",t.Udg],nzPageIndex:[2,"nzPageIndex","nzPageIndex",t.Udg],nzPageSize:[2,"nzPageSize","nzPageSize",t.Udg]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:5,vars:18,consts:[["simplePagination",""],["defaultPagination",""],[3,"pageIndexChange","disabled","itemRender","locale","pageSize","total","pageIndex"],[3,"pageIndexChange","pageSizeChange","nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet"]],template:function(We,ct){if(1&We){const sn=t.RV6();t.DNE(0,te,2,1),t.j41(1,"nz-pagination-simple",2,0),t.bIt("pageIndexChange",function($n){return t.eBV(sn),t.Njj(ct.onPageIndexChange($n))}),t.k0s(),t.j41(3,"nz-pagination-default",3,1),t.bIt("pageIndexChange",function($n){return t.eBV(sn),t.Njj(ct.onPageIndexChange($n))})("pageSizeChange",function($n){return t.eBV(sn),t.Njj(ct.onPageSizeChange($n))}),t.k0s()}2&We&&(t.vxM(ct.showPagination?0:-1),t.R7$(),t.Y8G("disabled",ct.nzDisabled)("itemRender",ct.nzItemRender)("locale",ct.locale)("pageSize",ct.nzPageSize)("total",ct.nzTotal)("pageIndex",ct.nzPageIndex),t.R7$(2),t.Y8G("nzSize",ct.size)("itemRender",ct.nzItemRender)("showTotal",ct.nzShowTotal)("disabled",ct.nzDisabled)("locale",ct.locale)("showSizeChanger",ct.nzShowSizeChanger)("showQuickJumper",ct.nzShowQuickJumper)("total",ct.nzTotal)("pageIndex",ct.nzPageIndex)("pageSize",ct.nzPageSize)("pageSizeOptions",ct.nzPageSizeOptions))},dependencies:[H.T3,at,ht],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzSize",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzPageSizeOptions",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzShowSizeChanger",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzShowQuickJumper",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzSimple",void 0),Ze})(),Ee=(()=>{class Ze{static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275mod=t.$C({type:Ze});static#n=this.\u0275inj=t.G2t({imports:[Qe,at,Xe,q,ht]})}return Ze})();var Je=c(2983),re=c(7806);const ze=["*"],gt=(Ze,An)=>An.value;function Ke(Ze,An){}function Pe(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"label",14),t.bIt("ngModelChange",function(){t.eBV(fe);const ct=t.XpG().$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG().$implicit;t.Y8G("ngModel",fe.checked)}}function Re(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"label",15),t.bIt("ngModelChange",function(){t.eBV(fe);const ct=t.XpG().$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG().$implicit;t.Y8G("ngModel",fe.checked)}}function $(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"li",11),t.bIt("click",function(){const ct=t.eBV(fe).$implicit,sn=t.XpG(2);return t.Njj(sn.check(ct))}),t.DNE(1,Pe,1,1,"label",12)(2,Re,1,1,"label",13),t.j41(3,"span"),t.EFF(4),t.k0s()()}if(2&Ze){const fe=An.$implicit,We=t.XpG(2);t.Y8G("nzSelected",fe.checked),t.R7$(),t.vxM(We.filterMultiple?2:1),t.R7$(3),t.JRh(fe.text)}}function ce(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"nz-filter-trigger",3),t.bIt("nzVisibleChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onVisibleChange(ct))}),t.nrm(1,"span",4),t.k0s(),t.j41(2,"nz-dropdown-menu",null,0)(4,"div",5)(5,"ul",6),t.Z7z(6,$,5,3,"li",7,gt),t.k0s(),t.j41(8,"div",8)(9,"button",9),t.bIt("click",function(){t.eBV(fe);const ct=t.XpG();return t.Njj(ct.reset())}),t.EFF(10),t.k0s(),t.j41(11,"button",10),t.bIt("click",function(){t.eBV(fe);const ct=t.XpG();return t.Njj(ct.confirm())}),t.EFF(12),t.k0s()()()()}if(2&Ze){const fe=t.sdS(3),We=t.XpG();t.Y8G("nzVisible",We.isVisible)("nzActive",We.isChecked)("nzDropdownMenu",fe),t.R7$(6),t.Dyx(We.listOfParsedFilter),t.R7$(3),t.Y8G("disabled",!We.isChecked),t.R7$(),t.SpI(" ",We.locale.filterReset," "),t.R7$(2),t.JRh(We.locale.filterConfirm)}}function N(Ze,An){if(1&Ze&&t.eu8(0,2),2&Ze){const fe=t.XpG();t.Y8G("ngTemplateOutlet",fe.extraTemplate)}}function ke(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"label",3),t.bIt("ngModelChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onCheckedChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG();t.AVh("ant-table-selection-select-all-custom",fe.showRowSelection),t.Y8G("ngModel",fe.checked)("nzDisabled",fe.disabled)("nzIndeterminate",fe.indeterminate),t.BMQ("aria-label",fe.label)}}function ve(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"li",8),t.bIt("click",function(){const ct=t.eBV(fe).$implicit;return t.Njj(ct.onSelect())}),t.EFF(1),t.k0s()}if(2&Ze){const fe=An.$implicit;t.R7$(),t.SpI(" ",fe.text," ")}}function K(Ze,An){if(1&Ze&&(t.j41(0,"div",2)(1,"span",4),t.nrm(2,"span",5),t.k0s(),t.j41(3,"nz-dropdown-menu",null,0)(5,"ul",6),t.Z7z(6,ve,2,1,"li",7,t.fX1),t.k0s()()()),2&Ze){const fe=t.sdS(4),We=t.XpG();t.R7$(),t.Y8G("nzDropdownMenu",fe),t.R7$(5),t.Dyx(We.listOfSelections)}}function U(Ze,An){}function ge(Ze,An){if(1&Ze&&t.nrm(0,"span",6),2&Ze){const fe=t.XpG();t.AVh("active","ascend"===fe.sortOrder)}}function qe(Ze,An){if(1&Ze&&t.nrm(0,"span",7),2&Ze){const fe=t.XpG();t.AVh("active","descend"===fe.sortOrder)}}const rt=["nzChecked",""];function Ft(Ze,An){}function rn(Ze,An){if(1&Ze&&t.DNE(0,Ft,0,0,"ng-template",2),2&Ze){const fe=t.XpG(2);t.Y8G("ngTemplateOutlet",fe.nzExpandIcon)}}function Cn(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"button",4),t.bIt("expandChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onExpandChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG(2);t.Y8G("expand",fe.nzExpand)("spaceMode",!fe.nzShowExpand)}}function Zn(Ze,An){if(1&Ze&&(t.nrm(0,"nz-row-indent",1),t.DNE(1,rn,1,1,null,2)(2,Cn,1,2,"button",3)),2&Ze){const fe=t.XpG();t.Y8G("indentSize",fe.nzIndentSize),t.R7$(),t.vxM(fe.nzExpandIcon?1:2)}}function jn(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"label",5),t.bIt("ngModelChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onCheckedChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG();t.Y8G("nzDisabled",fe.nzDisabled)("ngModel",fe.nzChecked)("nzIndeterminate",fe.nzIndeterminate),t.BMQ("aria-label",fe.nzLabel)}}const Gn=["nzColumnKey",""],Ti=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],Oi=["[nz-th-extra]","nz-filter-trigger","*"];function lo(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"nz-table-filter",6),t.bIt("filterChange",function(ct){t.eBV(fe);const sn=t.XpG();return t.Njj(sn.onFilterValueChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG(),We=t.sdS(3),ct=t.sdS(5);t.Y8G("contentTemplate",We)("extraTemplate",ct)("customFilter",fe.nzCustomFilter)("filterMultiple",fe.nzFilterMultiple)("listOfFilter",fe.nzFilters)}}function Zi(Ze,An){if(1&Ze&&t.eu8(0,5),2&Ze){t.XpG();const fe=t.sdS(3);t.Y8G("ngTemplateOutlet",fe)}}function Bo(Ze,An){}function bo(Ze,An){if(1&Ze&&t.DNE(0,Bo,0,0,"ng-template",5),2&Ze){const fe=t.XpG(),We=t.sdS(7),ct=t.sdS(9);t.Y8G("ngTemplateOutlet",fe.nzShowSort?We:ct)}}function zr(Ze,An){1&Ze&&(t.SdG(0),t.SdG(1,1))}function rr(Ze,An){if(1&Ze&&t.nrm(0,"nz-table-sorters",7),2&Ze){const fe=t.XpG(),We=t.sdS(9);t.Y8G("sortOrder",fe.sortOrder)("sortDirections",fe.sortDirections)("contentTemplate",We)}}function lt(Ze,An){1&Ze&&t.SdG(0,2)}const Lt=["nzSelections",""],$t=["nz-table-content",""];function mn(Ze,An){if(1&Ze&&t.nrm(0,"col"),2&Ze){const fe=An.$implicit;t.xc7("width",fe)("min-width",fe)}}function hn(Ze,An){}function Yn(Ze,An){if(1&Ze&&(t.j41(0,"thead",1),t.DNE(1,hn,0,0,"ng-template",2),t.k0s()),2&Ze){const fe=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",fe.theadTemplate)}}function En(Ze,An){}const Kn=["tdElement"],oi=["nz-table-fixed-row",""];function gi(Ze,An){}function ro(Ze,An){if(1&Ze&&(t.j41(0,"div",5),t.nI1(1,"async"),t.DNE(2,gi,0,0,"ng-template",4),t.k0s()),2&Ze){const fe=t.XpG(),We=t.sdS(6);t.xc7("width",t.bMT(1,3,fe.hostWidth$),"px"),t.R7$(2),t.Y8G("ngTemplateOutlet",We)}}function vi(Ze,An){}function pn(Ze,An){if(1&Ze&&t.DNE(0,vi,0,0,"ng-template",4),2&Ze){t.XpG();const fe=t.sdS(6);t.Y8G("ngTemplateOutlet",fe)}}function $i(Ze,An){1&Ze&&t.SdG(0)}const zi=["nz-table-measure-row",""];function Ni(Ze,An){1&Ze&&t.nrm(0,"td",1,0)}function so(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"tr",2),t.bIt("listOfAutoWidth",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onListOfAutoWidthChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG();t.Y8G("listOfMeasureColumn",fe)}}function Yi(Ze,An){if(1&Ze&&t.DNE(0,so,1,1,"tr",1),2&Ze){const fe=t.XpG();t.vxM(fe.isInsideTable&&An.length?0:-1)}}function Xo(Ze,An){if(1&Ze&&(t.j41(0,"tr",0),t.nrm(1,"nz-embed-empty",3),t.nI1(2,"async"),t.k0s()),2&Ze){const fe=t.XpG();t.R7$(),t.Y8G("specificContent",t.bMT(2,1,fe.noResult$))}}const Ki=["tableHeaderElement"],qo=["tableBodyElement"],pr=(Ze,An)=>({$implicit:Ze,index:An});function fo(Ze,An){if(1&Ze&&(t.j41(0,"div",5,1),t.nrm(2,"table",7),t.k0s()),2&Ze){const fe=t.XpG(2);t.Y8G("ngStyle",fe.bodyStyleMap),t.R7$(2),t.Y8G("scrollX",fe.scrollX)("listOfColWidth",fe.listOfColWidth)("contentTemplate",fe.contentTemplate)}}function po(Ze,An){}function fr(Ze,An){if(1&Ze&&(t.qex(0),t.DNE(1,po,0,0,"ng-template",11),t.bVm()),2&Ze){const fe=An.$implicit,We=An.index,ct=t.XpG(3);t.R7$(),t.Y8G("ngTemplateOutlet",ct.virtualTemplate)("ngTemplateOutletContext",t.l_i(2,pr,fe,We))}}function jo(Ze,An){if(1&Ze&&(t.j41(0,"cdk-virtual-scroll-viewport",8,1)(2,"table",9)(3,"tbody"),t.DNE(4,fr,2,5,"ng-container",10),t.k0s()()()),2&Ze){const fe=t.XpG(2);t.xc7("height",fe.data.length?fe.scrollY:fe.noDataVirtualHeight),t.Y8G("itemSize",fe.virtualItemSize)("maxBufferPx",fe.virtualMaxBufferPx)("minBufferPx",fe.virtualMinBufferPx),t.R7$(2),t.Y8G("scrollX",fe.scrollX)("listOfColWidth",fe.listOfColWidth),t.R7$(2),t.Y8G("cdkVirtualForOf",fe.data)("cdkVirtualForTrackBy",fe.virtualForTrackBy)}}function Lr(Ze,An){if(1&Ze&&(t.j41(0,"div",3,0),t.nrm(2,"table",4),t.k0s(),t.DNE(3,fo,3,4,"div",5)(4,jo,5,9,"cdk-virtual-scroll-viewport",6)),2&Ze){const fe=t.XpG();t.Y8G("ngStyle",fe.headerStyleMap),t.R7$(2),t.Y8G("scrollX",fe.scrollX)("listOfColWidth",fe.listOfColWidth)("theadTemplate",fe.theadTemplate),t.R7$(),t.vxM(fe.virtualTemplate?4:3)}}function qi(Ze,An){if(1&Ze&&(t.j41(0,"div",2,1),t.nrm(2,"table",12),t.k0s()),2&Ze){const fe=t.XpG();t.Y8G("ngStyle",fe.bodyStyleMap),t.R7$(2),t.Y8G("scrollX",fe.scrollX)("listOfColWidth",fe.listOfColWidth)("theadTemplate",fe.theadTemplate)("contentTemplate",fe.contentTemplate)}}function wn(Ze,An){if(1&Ze&&(t.qex(0),t.EFF(1),t.bVm()),2&Ze){const fe=t.XpG();t.R7$(),t.JRh(fe.title)}}function bi(Ze,An){if(1&Ze&&(t.qex(0),t.EFF(1),t.bVm()),2&Ze){const fe=t.XpG();t.R7$(),t.JRh(fe.footer)}}function Mr(Ze,An){}function Ur(Ze,An){if(1&Ze&&t.DNE(0,Mr,0,0,"ng-template",4),2&Ze){t.XpG();const fe=t.sdS(10);t.Y8G("ngTemplateOutlet",fe)}}function Ts(Ze,An){if(1&Ze&&t.nrm(0,"nz-table-title-footer",6),2&Ze){const fe=t.XpG();t.Y8G("title",fe.nzTitle)}}function Qo(Ze,An){if(1&Ze&&t.nrm(0,"nz-table-inner-scroll",7),2&Ze){const fe=t.XpG(),We=t.sdS(3),ct=t.sdS(12);t.Y8G("data",fe.data)("scrollX",fe.scrollX)("scrollY",fe.scrollY)("contentTemplate",ct)("listOfColWidth",fe.listOfAutoColWidth)("theadTemplate",fe.theadTemplate)("verticalScrollBarWidth",fe.verticalScrollBarWidth)("virtualTemplate",fe.nzVirtualScrollDirective?fe.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",fe.nzVirtualItemSize)("virtualMaxBufferPx",fe.nzVirtualMaxBufferPx)("virtualMinBufferPx",fe.nzVirtualMinBufferPx)("tableMainElement",We)("virtualForTrackBy",fe.nzVirtualForTrackBy)("noDataVirtualHeight",fe.noDataVirtualHeight)}}function Gs(Ze,An){if(1&Ze&&t.nrm(0,"nz-table-inner-default",8),2&Ze){const fe=t.XpG(),We=t.sdS(12);t.Y8G("tableLayout",fe.nzTableLayout)("listOfColWidth",fe.listOfManualColWidth)("theadTemplate",fe.theadTemplate)("contentTemplate",We)}}function nt(Ze,An){if(1&Ze&&t.nrm(0,"nz-table-title-footer",9),2&Ze){const fe=t.XpG();t.Y8G("footer",fe.nzFooter)}}function ye(Ze,An){}function Ve(Ze,An){if(1&Ze&&t.DNE(0,ye,0,0,"ng-template",4),2&Ze){t.XpG();const fe=t.sdS(10);t.Y8G("ngTemplateOutlet",fe)}}function tt(Ze,An){if(1&Ze){const fe=t.RV6();t.j41(0,"nz-pagination",11),t.bIt("nzPageSizeChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onPageSizeChange(ct))})("nzPageIndexChange",function(ct){t.eBV(fe);const sn=t.XpG(2);return t.Njj(sn.onPageIndexChange(ct))}),t.k0s()}if(2&Ze){const fe=t.XpG(2);t.Y8G("hidden",!fe.showPagination)("nzShowSizeChanger",fe.nzShowSizeChanger)("nzPageSizeOptions",fe.nzPageSizeOptions)("nzItemRender",fe.nzItemRender)("nzShowQuickJumper",fe.nzShowQuickJumper)("nzHideOnSinglePage",fe.nzHideOnSinglePage)("nzShowTotal",fe.nzShowTotal)("nzSize","small"===fe.nzPaginationType?"small":"default"===fe.nzSize?"default":"small")("nzPageSize",fe.nzPageSize)("nzTotal",fe.nzTotal)("nzSimple",fe.nzSimple)("nzPageIndex",fe.nzPageIndex)}}function Mt(Ze,An){if(1&Ze&&t.DNE(0,tt,1,12,"nz-pagination",10),2&Ze){const fe=t.XpG();t.vxM(fe.nzShowPagination&&fe.data.length?0:-1)}}function Yt(Ze,An){1&Ze&&t.SdG(0)}const tn=["contentTemplate"];function on(Ze,An){1&Ze&&t.SdG(0)}function bn(Ze,An){}function Sn(Ze,An){if(1&Ze&&t.DNE(0,bn,0,0,"ng-template",1),2&Ze){t.XpG();const fe=t.sdS(1);t.Y8G("ngTemplateOutlet",fe)}}let xn=(()=>{class Ze{onVisibleChange(fe){this.nzVisible=fe,this.nzVisibleChange.next(fe)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}constructor(fe,We,ct,sn){this.nzConfigService=fe,this.ngZone=We,this.cdr=ct,this.destroy$=sn,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new t.bkB}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,g.R)(this.nzDropdown.nativeElement,"click").pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{fe.stopPropagation()})})}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(Ie.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(me.y4))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-filter-trigger"]],viewQuery:function(We,ct){if(1&We&&t.GBs(de.j3,7,t.aKT),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.nzDropdown=sn.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:[2,"nzBackdrop","nzBackdrop",t.L39]},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],standalone:!0,features:[t.Jv_([me.y4]),t.GFd,t.aNF],ngContentSelectors:ze,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzVisibleChange","nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"span",0),t.bIt("nzVisibleChange",function(Bn){return ct.onVisibleChange(Bn)}),t.SdG(1),t.k0s()),2&We&&(t.AVh("active",ct.nzActive)("ant-table-filter-open",ct.nzVisible),t.Y8G("nzBackdrop",ct.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",ct.nzDropdownMenu)("nzVisible",ct.nzVisible))},dependencies:[de.Cu,de.j3],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzBackdrop",void 0),Ze})(),Qn=(()=>{class Ze{check(fe){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(We=>We===fe?{...We,checked:!fe.checked}:We),fe.checked=!fe.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(We=>({...We,checked:We===fe})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(fe){this.isVisible=fe,fe?this.listOfChecked=this.listOfParsedFilter.filter(We=>We.checked).map(We=>We.value):this.emitFilterData()}emitFilterData(){const fe=this.listOfParsedFilter.filter(We=>We.checked).map(We=>We.value);(0,E.r1)(this.listOfChecked,fe)||this.filterChange.emit(this.filterMultiple?fe:fe.length>0?fe[0]:null)}parseListOfFilter(fe,We){return fe.map(ct=>({text:ct.text,value:ct.value,checked:!We&&!!ct.byDefault}))}getCheckedStatus(fe){return fe.some(We=>We.checked)}constructor(fe,We){this.cdr=fe,this.i18n=We,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new t.bkB,this.destroy$=new e.B,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}ngOnInit(){this.i18n.localeChange.pipe((0,I.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(fe){const{listOfFilter:We}=fe;We&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.gRc),t.rXU(Y.Og))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[t.OA$,t.aNF],decls:4,vars:2,consts:[["filterMenu","nzDropdownMenu"],[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[3,"nzVisibleChange","nzVisible","nzActive","nzDropdownMenu"],["nz-icon","","nzType","filter","nzTheme","fill"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"click","disabled"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"click","nzSelected"],["nz-radio","",3,"ngModel"],["nz-checkbox","",3,"ngModel"],["nz-radio","",3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"]],template:function(We,ct){1&We&&(t.j41(0,"span",1),t.DNE(1,Ke,0,0,"ng-template",2),t.k0s(),t.DNE(2,ce,13,6)(3,N,1,1,"ng-container",2)),2&We&&(t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate),t.R7$(),t.vxM(ct.customFilter?3:2))},dependencies:[H.T3,xn,S.Y3,S.Dn,de.Cu,se.jS,se.CU,de.wQ,R.lx,pe.IJ,pe.$g,z.YN,z.BC,z.vS,Z.Zw,Z.aO,Be.c,Pt.p],encapsulation:2,changeDetection:0})}return Ze})(),qn=(()=>{class Ze{constructor(){this.expand=!1,this.spaceMode=!1,this.expandChange=new t.bkB}onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(We,ct){1&We&&t.bIt("click",function(){return ct.onHostClick()}),2&We&&(t.Mr5("type","button"),t.AVh("ant-table-row-expand-icon-expanded",!ct.spaceMode&&!0===ct.expand)("ant-table-row-expand-icon-collapsed",!ct.spaceMode&&!1===ct.expand)("ant-table-row-expand-icon-spaced",ct.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"},standalone:!0})}return Ze})(),pi=(()=>{class Ze{constructor(){this.indentSize=0}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(We,ct){2&We&&t.xc7("padding-left",ct.indentSize,"px")},inputs:{indentSize:"indentSize"},standalone:!0})}return Ze})(),ei=(()=>{class Ze{constructor(){this.listOfSelections=[],this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.label=null,this.showCheckbox=!1,this.showRowSelection=!1,this.checkedChange=new t.bkB}onCheckedChange(fe){this.checked=fe,this.checkedChange.emit(fe)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["selectionMenu","nzDropdownMenu"],["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate"],[1,"ant-table-selection-extra"],["nz-checkbox","",3,"ngModelChange","ngModel","nzDisabled","nzIndeterminate"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item",""],["nz-menu-item","",3,"click"]],template:function(We,ct){1&We&&t.DNE(0,ke,1,6,"label",1)(1,K,8,1,"div",2),2&We&&(t.vxM(ct.showCheckbox?0:-1),t.R7$(),t.vxM(ct.showRowSelection?1:-1))},dependencies:[z.YN,z.BC,z.vS,pe.IJ,pe.$g,de.Cu,se.jS,se.CU,de.j3,de.wQ,S.Y3,S.Dn],encapsulation:2,changeDetection:0})}return Ze})(),li=(()=>{class Ze{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(fe){const{sortDirections:We}=fe;We&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},standalone:!0,features:[t.OA$,t.aNF],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up",3,"active"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down",3,"active"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(We,ct){1&We&&(t.j41(0,"span",0),t.DNE(1,U,0,0,"ng-template",1),t.k0s(),t.j41(2,"span",2)(3,"span",3),t.DNE(4,ge,1,2,"span",4)(5,qe,1,2,"span",5),t.k0s()()),2&We&&(t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate),t.R7$(),t.AVh("ant-table-column-sorter-full",ct.isDown&&ct.isUp),t.R7$(2),t.vxM(ct.isUp?4:-1),t.R7$(),t.vxM(ct.isDown?5:-1))},dependencies:[S.Y3,S.Dn,H.T3],encapsulation:2,changeDetection:0})}return Ze})(),ai=(()=>{class Ze{setAutoLeftWidth(fe){this.renderer.setStyle(this.elementRef.nativeElement,"left",fe)}setAutoRightWidth(fe){this.renderer.setStyle(this.elementRef.nativeElement,"right",fe)}setIsFirstRight(fe){this.setFixClass(fe,"ant-table-cell-fix-right-first")}setIsLastLeft(fe){this.setFixClass(fe,"ant-table-cell-fix-left-last")}setFixClass(fe,We){this.renderer.removeClass(this.elementRef.nativeElement,We),fe&&this.renderer.addClass(this.elementRef.nativeElement,We)}constructor(fe,We){this.renderer=fe,this.elementRef=We,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new e.B,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const fe=We=>"string"==typeof We&&""!==We?We:null;this.setAutoLeftWidth(fe(this.nzLeft)),this.setAutoRightWidth(fe(this.nzRight)),this.changes$.next()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(We,ct){2&We&&(t.xc7("position",ct.isFixed?"sticky":null),t.AVh("ant-table-cell-fix-right",ct.isFixedRight)("ant-table-cell-fix-left",ct.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},standalone:!0,features:[t.OA$]})}return Ze})(),mi=(()=>{class Ze{setTheadTemplate(fe){this.theadTemplate$.next(fe)}setHasFixLeft(fe){this.hasFixLeft$.next(fe)}setHasFixRight(fe){this.hasFixRight$.next(fe)}setTableWidthConfig(fe){this.tableWidthConfigPx$.next(fe)}setListOfTh(fe){let We=0;fe.forEach(sn=>{We+=sn.colspan&&+sn.colspan||sn.colSpan&&+sn.colSpan||1});const ct=fe.map(sn=>sn.nzWidth);this.columnCount$.next(We),this.listOfThWidthConfigPx$.next(ct)}setListOfMeasureColumn(fe){const We=[];fe.forEach(ct=>{const sn=ct.colspan&&+ct.colspan||ct.colSpan&&+ct.colSpan||1;for(let Bn=0;Bn`${We}px`))}setShowEmpty(fe){this.showEmpty$.next(fe)}setNoResult(fe){this.noResult$.next(fe)}setScroll(fe,We){const ct=!(!fe&&!We);ct||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(ct)}constructor(){this.theadTemplate$=new M.m(1),this.hasFixLeft$=new M.m(1),this.hasFixRight$=new M.m(1),this.hostWidth$=new M.m(1),this.columnCount$=new M.m(1),this.showEmpty$=new M.m(1),this.noResult$=new M.m(1),this.listOfThWidthConfigPx$=new G.t([]),this.tableWidthConfigPx$=new G.t([]),this.manualWidthConfigPx$=(0,L.z)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,F.T)(([fe,We])=>fe.length?fe:We)),this.listOfAutoWidthPx$=new M.m(1),this.listOfListOfThWidthPx$=(0,B.h)(this.manualWidthConfigPx$,(0,L.z)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,F.T)(([fe,We])=>fe.length===We.length?fe.map((ct,sn)=>"0px"===ct?We[sn]||null:We[sn]||ct):We))),this.listOfMeasureColumn$=new M.m(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,F.T)(fe=>fe.map(We=>parseInt(We,10)))),this.enableAutoMeasure$=new M.m(1)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275prov=t.jDH({token:Ze,factory:Ze.\u0275fac})}return Ze})(),Ei=(()=>{class Ze{constructor(fe){this.isInsideTable=!1,this.isInsideTable=!!fe}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-cell",ct.isInsideTable)},standalone:!0})}return Ze})(),Xi=(()=>{class Ze{updatePageSize(fe){this.pageSize$.next(fe)}updateFrontPagination(fe){this.frontPagination$.next(fe)}updatePageIndex(fe){this.pageIndex$.next(fe)}updateListOfData(fe){this.listOfData$.next(fe)}updateListOfCustomColumn(fe){this.listOfCustomColumn$.next(fe)}constructor(){this.destroy$=new e.B,this.pageIndex$=new G.t(1),this.frontPagination$=new G.t(!0),this.pageSize$=new G.t(10),this.listOfData$=new G.t([]),this.listOfCustomColumn$=new G.t([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,X.F)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,X.F)()),this.listOfCalcOperator$=new G.t([]),this.queryParams$=(0,L.z)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,V.B)(0),(0,x.i)(1),(0,F.T)(([fe,We,ct])=>({pageIndex:fe,pageSize:We,sort:ct.filter(sn=>sn.sortFn).map(sn=>({key:sn.key,value:sn.sortOrder})),filter:ct.filter(sn=>sn.filterFn).map(sn=>({key:sn.key,value:sn.filterValue}))}))),this.listOfDataAfterCalc$=(0,L.z)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,F.T)(([fe,We])=>{let ct=[...fe];const sn=We.filter($n=>{const{filterValue:fi,filterFn:ki}=$n;return!(null==fi||Array.isArray(fi)&&0===fi.length)&&"function"==typeof ki});for(const $n of sn){const{filterFn:fi,filterValue:ki}=$n;ct=ct.filter(To=>fi(ki,To))}const Bn=We.filter($n=>null!==$n.sortOrder&&"function"==typeof $n.sortFn).sort(($n,fi)=>+fi.sortPriority-+$n.sortPriority);return We.length&&ct.sort(($n,fi)=>{for(const ki of Bn){const{sortFn:To,sortOrder:di}=ki;if(To&&di){const ho=To($n,fi,di);if(0!==ho)return"ascend"===di?ho:-ho}}return 0}),ct})),this.listOfFrontEndCurrentPageData$=(0,L.z)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,I.Q)(this.destroy$),(0,ne.p)(fe=>{const[We,ct,sn]=fe;return We<=(Math.ceil(sn.length/ct)||1)}),(0,F.T)(([fe,We,ct])=>ct.slice((fe-1)*We,fe*We))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,J.n)(fe=>fe?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,J.n)(fe=>fe?this.listOfDataAfterCalc$:this.listOfData$),(0,F.T)(fe=>fe.length),(0,X.F)())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275prov=t.jDH({token:Ze,factory:Ze.\u0275fac})}return Ze})(),no=(()=>{class Ze{constructor(){this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzIndentSize=0,this.nzShowExpand=!1,this.nzShowCheckbox=!1,this.nzExpand=!1,this.nzExpandIcon=null,this.nzCheckedChange=new t.bkB,this.nzExpandChange=new t.bkB,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(fe){this.nzChecked=fe,this.nzCheckedChange.emit(fe)}onExpandChange(fe){this.nzExpand=fe,this.nzExpandChange.emit(fe)}ngOnChanges(fe){const We=fi=>fi&&fi.firstChange&&void 0!==fi.currentValue,{nzExpand:ct,nzChecked:sn,nzShowExpand:Bn,nzShowCheckbox:$n}=fe;Bn&&(this.isNzShowExpandChanged=!0),$n&&(this.isNzShowCheckboxChanged=!0),We(ct)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),We(sn)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-cell-with-append",ct.nzShowExpand||ct.nzIndentSize>0)("ant-table-selection-column",ct.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:[2,"nzShowExpand","nzShowExpand",t.L39],nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",t.L39],nzExpand:[2,"nzExpand","nzExpand",t.L39],nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:rt,ngContentSelectors:ze,decls:3,vars:2,consts:[["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate"],[3,"indentSize"],[3,"ngTemplateOutlet"],["nz-row-expand-button","",3,"expand","spaceMode"],["nz-row-expand-button","",3,"expandChange","expand","spaceMode"],["nz-checkbox","",3,"ngModelChange","nzDisabled","ngModel","nzIndeterminate"]],template:function(We,ct){1&We&&(t.NAR(),t.DNE(0,Zn,3,2)(1,jn,1,4,"label",0),t.SdG(2)),2&We&&(t.vxM(ct.nzShowExpand||ct.nzIndentSize>0?0:-1),t.R7$(),t.vxM(ct.nzShowCheckbox?1:-1))},dependencies:[pi,qn,H.T3,pe.IJ,pe.$g,z.YN,z.BC,z.vS],encapsulation:2,changeDetection:0})}return Ze})(),ao=(()=>{class Ze{getNextSortDirection(fe,We){const ct=fe.indexOf(We);return ct===fe.length-1?fe[0]:fe[ct+1]}setSortOrder(fe){this.sortOrderChange$.next(fe)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(fe){this.nzFilterChange.emit(fe),this.nzFilterValue=fe,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}constructor(fe,We,ct,sn){this.host=fe,this.cdr=We,this.ngZone=ct,this.destroy$=sn,this.manualClickOrder$=new e.B,this.calcOperatorChange$=new e.B,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new e.B,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new t.bkB,this.nzSortOrderChange=new t.bkB,this.nzFilterChange=new t.bkB}ngOnInit(){this.ngZone.runOutsideAngular(()=>(0,g.R)(this.host.nativeElement,"click").pipe((0,ne.p)(()=>this.nzShowSort),(0,I.Q)(this.destroy$)).subscribe(()=>{const fe=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(fe),this.manualClickOrder$.next(this)})})),this.sortOrderChange$.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.sortOrder!==fe&&(this.sortOrder=fe,this.nzSortOrderChange.emit(fe)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(fe){const{nzSortDirections:We,nzFilters:ct,nzSortOrder:sn,nzSortFn:Bn,nzFilterFn:$n,nzSortPriority:fi,nzFilterMultiple:ki,nzShowSort:To,nzShowFilter:di}=fe;We&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),sn&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),To&&(this.isNzShowSortChanged=!0),di&&(this.isNzShowFilterChanged=!0);const ho=Oo=>Oo&&Oo.firstChange&&void 0!==Oo.currentValue;if((ho(sn)||ho(Bn))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),ho(ct)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(ct||ki)&&this.nzShowFilter){const Oo=this.nzFilters.filter(ts=>ts.byDefault).map(ts=>ts.value);this.nzFilterValue=this.nzFilterMultiple?Oo:Oo[0]||null}(Bn||$n||fi||ct)&&this.updateCalcOperator()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(t.SKi),t.rXU(me.y4))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-column-has-sorters",ct.nzShowSort)("ant-table-column-sort","descend"===ct.sortOrder||"ascend"===ct.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:[2,"nzShowSort","nzShowSort",t.L39],nzShowFilter:[2,"nzShowFilter","nzShowFilter",t.L39],nzCustomFilter:[2,"nzCustomFilter","nzCustomFilter",t.L39]},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},standalone:!0,features:[t.Jv_([me.y4]),t.GFd,t.OA$,t.aNF],attrs:Gn,ngContentSelectors:Oi,decls:10,vars:1,consts:[["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"ngTemplateOutlet"],[3,"filterChange","contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(We,ct){1&We&&(t.NAR(Ti),t.DNE(0,lo,1,5,"nz-table-filter",4)(1,Zi,1,1,"ng-container",5)(2,bo,1,1,"ng-template",null,0,t.C5r)(4,zr,2,0,"ng-template",null,1,t.C5r)(6,rr,1,3,"ng-template",null,2,t.C5r)(8,lt,1,0,"ng-template",null,3,t.C5r)),2&We&&t.vxM(ct.nzShowFilter||ct.nzCustomFilter?0:1)},dependencies:[Qn,H.T3,li],encapsulation:2,changeDetection:0})}return Ze})(),io=(()=>{class Ze{constructor(fe,We){this.renderer=fe,this.elementRef=We,this.changes$=new e.B,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(fe){const{nzWidth:We,colspan:ct,rowspan:sn,colSpan:Bn,rowSpan:$n}=fe;if(ct||Bn){const fi=this.colspan||this.colSpan;(0,E.gD)(fi)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${fi}`)}if(sn||$n){const fi=this.rowspan||this.rowSpan;(0,E.gD)(fi)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${fi}`)}(We||ct)&&this.changes$.next()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},standalone:!0,features:[t.OA$]})}return Ze})(),Fn=(()=>{class Ze{constructor(){this.nzSelections=[],this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzShowCheckbox=!1,this.nzShowRowSelection=!1,this.nzCheckedChange=new t.bkB,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(fe){this.nzChecked=fe,this.nzCheckedChange.emit(fe)}ngOnChanges(fe){const We=fi=>fi&&fi.firstChange&&void 0!==fi.currentValue,{nzChecked:ct,nzSelections:sn,nzShowExpand:Bn,nzShowCheckbox:$n}=fe;Bn&&(this.isNzShowExpandChanged=!0),$n&&(this.isNzShowCheckboxChanged=!0),We(sn)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),We(ct)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:[2,"nzChecked","nzChecked",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",t.L39],nzShowRowSelection:[2,"nzShowRowSelection","nzShowRowSelection",t.L39]},outputs:{nzCheckedChange:"nzCheckedChange"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:Lt,ngContentSelectors:ze,decls:2,vars:7,consts:[[3,"checkedChange","checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"nz-table-selection",0),t.bIt("checkedChange",function(Bn){return ct.onCheckedChange(Bn)}),t.k0s(),t.SdG(1)),2&We&&t.Y8G("checked",ct.nzChecked)("disabled",ct.nzDisabled)("indeterminate",ct.nzIndeterminate)("label",ct.nzLabel)("listOfSelections",ct.nzSelections)("showCheckbox",ct.nzShowCheckbox)("showRowSelection",ct.nzShowRowSelection)},dependencies:[ei],encapsulation:2,changeDetection:0})}return Ze})(),_o=(()=>{class Ze{constructor(){this.nzAlign=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(We,ct){2&We&&t.xc7("text-align",ct.nzAlign)},inputs:{nzAlign:"nzAlign"},standalone:!0})}return Ze})(),Do=(()=>{class Ze{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(We,ct){2&We&&(t.xc7("table-layout",ct.tableLayout)("width",ct.scrollX)("min-width",ct.scrollX?"100%":null),t.AVh("ant-table-fixed",ct.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},standalone:!0,features:[t.aNF],attrs:$t,ngContentSelectors:ze,decls:5,vars:2,consts:[[3,"width","minWidth"],[1,"ant-table-thead"],[3,"ngTemplateOutlet"]],template:function(We,ct){1&We&&(t.NAR(),t.Z7z(0,mn,1,4,"col",0,t.Vm6),t.DNE(2,Yn,2,1,"thead",1)(3,En,0,0,"ng-template",2),t.SdG(4)),2&We&&(t.Dyx(ct.listOfColWidth),t.R7$(2),t.vxM(ct.theadTemplate?2:-1),t.R7$(),t.Y8G("ngTemplateOutlet",ct.contentTemplate))},dependencies:[H.T3],encapsulation:2,changeDetection:0})}return Ze})(),Jo=(()=>{class Ze{constructor(fe,We){this.nzTableStyleService=fe,this.renderer=We,this.hostWidth$=new G.t(null),this.enableAutoMeasure$=new G.t(!1),this.destroy$=new e.B}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:fe,hostWidth$:We}=this.nzTableStyleService;fe.pipe((0,I.Q)(this.destroy$)).subscribe(this.enableAutoMeasure$),We.pipe((0,I.Q)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,I.Q)(this.destroy$)).subscribe(fe=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${fe}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi),t.rXU(t.sFG))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(We,ct){if(1&We&&t.GBs(Kn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.tdElement=sn.first)}},standalone:!0,features:[t.aNF],attrs:oi,ngContentSelectors:ze,decls:7,vars:3,consts:[["tdElement",""],["contentTemplate",""],[1,"nz-disable-td","ant-table-cell"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden",3,"width"],[3,"ngTemplateOutlet"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"td",2,0),t.DNE(2,ro,3,5,"div",3),t.nI1(3,"async"),t.DNE(4,pn,1,1,null,4),t.k0s(),t.DNE(5,$i,1,0,"ng-template",null,1,t.C5r)),2&We&&(t.R7$(2),t.vxM(t.bMT(3,1,ct.enableAutoMeasure$)?2:4))},dependencies:[H.Jj,H.T3],encapsulation:2,changeDetection:0})}return Ze})(),Sr=(()=>{class Ze{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},standalone:!0,features:[t.aNF],decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(We,ct){1&We&&(t.j41(0,"div",0),t.nrm(1,"table",1),t.k0s()),2&We&&(t.R7$(),t.Y8G("contentTemplate",ct.contentTemplate)("tableLayout",ct.tableLayout)("listOfColWidth",ct.listOfColWidth)("theadTemplate",ct.theadTemplate))},dependencies:[Do],encapsulation:2,changeDetection:0})}return Ze})(),_r=(()=>{class Ze{constructor(fe,We){this.nzResizeObserver=fe,this.ngZone=We,this.listOfMeasureColumn=[],this.listOfAutoWidth=new t.bkB,this.destroy$=new e.B}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,be.Z)(this.listOfTdElement)).pipe((0,J.n)(fe=>(0,L.z)(fe.toArray().map(We=>this.nzResizeObserver.observe(We).pipe((0,F.T)(([ct])=>{const{width:sn}=ct.target.getBoundingClientRect();return Math.floor(sn)}))))),(0,V.B)(16),(0,I.Q)(this.destroy$)).subscribe(fe=>{this.ngZone instanceof t.SKi&&t.SKi.isInAngularZone()?this.listOfAutoWidth.next(fe):this.ngZone.run(()=>this.listOfAutoWidth.next(fe))})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(Le.xH),t.rXU(t.SKi))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(We,ct){if(1&We&&t.GBs(Kn,5),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.listOfTdElement=sn)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},standalone:!0,features:[t.aNF],attrs:zi,decls:2,vars:0,consts:[["tdElement",""],[1,"nz-disable-td",2,"padding","0","border","0","height","0"]],template:function(We,ct){1&We&&t.Z7z(0,Ni,2,0,"td",1,t.Vm6),2&We&&t.Dyx(ct.listOfMeasureColumn)},encapsulation:2,changeDetection:0})}return Ze})(),yr=(()=>{class Ze{constructor(fe){if(this.nzTableStyleService=fe,this.isInsideTable=!1,this.showEmpty$=new G.t(!1),this.noResult$=new G.t(void 0),this.listOfMeasureColumn$=new G.t([]),this.destroy$=new e.B,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:We,noResult$:ct,listOfMeasureColumn$:sn}=this.nzTableStyleService;ct.pipe((0,I.Q)(this.destroy$)).subscribe(this.noResult$),sn.pipe((0,I.Q)(this.destroy$)).subscribe(this.listOfMeasureColumn$),We.pipe((0,I.Q)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(fe){this.nzTableStyleService.setListOfAutoWidth(fe)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["tbody"]],hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-tbody",ct.isInsideTable)},standalone:!0,features:[t.aNF],ngContentSelectors:ze,decls:5,vars:6,consts:[["nz-table-fixed-row","",1,"ant-table-placeholder"],["nz-table-measure-row","",3,"listOfMeasureColumn"],["nz-table-measure-row","",3,"listOfAutoWidth","listOfMeasureColumn"],["nzComponentName","table",3,"specificContent"]],template:function(We,ct){if(1&We&&(t.NAR(),t.DNE(0,Yi,1,1),t.nI1(1,"async"),t.SdG(2),t.DNE(3,Xo,3,3,"tr",0),t.nI1(4,"async")),2&We){let sn;t.vxM((sn=t.bMT(1,2,ct.listOfMeasureColumn$))?0:-1,sn),t.R7$(3),t.vxM(t.bMT(4,4,ct.showEmpty$)?3:-1)}},dependencies:[H.Jj,_r,Jo,wt._v,wt.E8],encapsulation:2,changeDetection:0})}return Ze})(),sr=(()=>{class Ze{setScrollPositionClassName(fe=!1){const{scrollWidth:We,scrollLeft:ct,clientWidth:sn}=this.tableBodyElement.nativeElement,Bn="ant-table-ping-left",$n="ant-table-ping-right";We===sn&&0!==We||fe?(this.renderer.removeClass(this.tableMainElement,Bn),this.renderer.removeClass(this.tableMainElement,$n)):0===ct?(this.renderer.removeClass(this.tableMainElement,Bn),this.renderer.addClass(this.tableMainElement,$n)):We===ct+sn?(this.renderer.removeClass(this.tableMainElement,$n),this.renderer.addClass(this.tableMainElement,Bn)):(this.renderer.addClass(this.tableMainElement,Bn),this.renderer.addClass(this.tableMainElement,$n))}constructor(fe,We,ct,sn){this.renderer=fe,this.ngZone=We,this.platform=ct,this.resizeService=sn,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=Bn=>Bn,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDataVirtualHeight="182px",this.data$=new e.B,this.scroll$=new e.B,this.destroy$=new e.B}ngOnChanges(fe){const{scrollX:We,scrollY:ct,data:sn}=fe;(We||ct)&&(this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&0!==this.verticalScrollBarWidth?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())),sn&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const fe=this.scroll$.pipe((0,be.Z)(null),(0,Oe.c)(0),(0,J.n)(()=>(0,g.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,be.Z)(!0))),(0,I.Q)(this.destroy$)),We=this.resizeService.subscribe().pipe((0,I.Q)(this.destroy$)),ct=this.data$.pipe((0,I.Q)(this.destroy$));(0,B.h)(fe,We,ct,this.scroll$).pipe((0,be.Z)(!0),(0,Oe.c)(0),(0,I.Q)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),fe.pipe((0,ne.p)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.sFG),t.rXU(t.SKi),t.rXU(zt.OD),t.rXU(me.cB))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-inner-scroll"]],viewQuery:function(We,ct){if(1&We&&(t.GBs(Ki,5,t.aKT),t.GBs(qo,5,t.aKT),t.GBs(vt.d6,5,vt.d6)),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.tableHeaderElement=sn.first),t.mGM(sn=t.lsd())&&(ct.tableBodyElement=sn.first),t.mGM(sn=t.lsd())&&(ct.cdkVirtualScrollViewport=sn.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth",noDataVirtualHeight:"noDataVirtualHeight"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:1,consts:[["tableHeaderElement",""],["tableBodyElement",""],[1,"ant-table-content",3,"ngStyle"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],[1,"ant-table-body",3,"ngStyle"],[3,"itemSize","maxBufferPx","minBufferPx","height"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(We,ct){1&We&&t.DNE(0,Lr,5,5)(1,qi,3,5,"div",2),2&We&&t.vxM(ct.scrollY?0:1)},dependencies:[Do,H.B3,vt.E9,vt.yg,vt.E$,vt.d6,H.T3,yr],encapsulation:2,changeDetection:0})}return Ze})(),Fo=(()=>{class Ze{constructor(fe){this.templateRef=fe}static ngTemplateContextGuard(fe,We){return!0}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"],standalone:!0})}return Ze})(),zs=(()=>{class Ze{constructor(){this.title=null,this.footer=null}static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-title",null!==ct.title)("ant-table-footer",null!==ct.footer)},inputs:{title:"title",footer:"footer"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(We,ct){1&We&&t.DNE(0,wn,2,1,"ng-container",0)(1,bi,2,1,"ng-container",0),2&We&&(t.Y8G("nzStringTemplateOutlet",ct.title),t.R7$(),t.Y8G("nzStringTemplateOutlet",ct.footer))},dependencies:[re.C,re.m],encapsulation:2,changeDetection:0})}return Ze})(),Uo=(()=>{class Ze{onPageSizeChange(fe){this.nzTableDataService.updatePageSize(fe)}onPageIndexChange(fe){this.nzTableDataService.updatePageIndex(fe)}constructor(fe,We,ct,sn,Bn,$n,fi){this.elementRef=fe,this.nzResizeObserver=We,this.nzConfigService=ct,this.cdr=sn,this.nzTableStyleService=Bn,this.nzTableDataService=$n,this.directionality=fi,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=ki=>ki,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzCustomColumn=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.noDataVirtualHeight="182px",this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new t.bkB,this.nzPageIndexChange=new t.bkB,this.nzQueryParams=new t.bkB,this.nzCurrentPageDataChange=new t.bkB,this.nzCustomColumnChange=new t.bkB,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new e.B,this.templateMode$=new G.t(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,I.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){const{pageIndexDistinct$:fe,pageSizeDistinct$:We,listOfCurrentPageData$:ct,total$:sn,queryParams$:Bn,listOfCustomColumn$:$n}=this.nzTableDataService,{theadTemplate$:fi,hasFixLeft$:ki,hasFixRight$:To}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.dir=di,this.cdr.detectChanges()}),Bn.pipe((0,I.Q)(this.destroy$)).subscribe(this.nzQueryParams),fe.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{di!==this.nzPageIndex&&(this.nzPageIndex=di,this.nzPageIndexChange.next(di))}),We.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{di!==this.nzPageSize&&(this.nzPageSize=di,this.nzPageSizeChange.next(di))}),sn.pipe((0,I.Q)(this.destroy$),(0,ne.p)(()=>this.nzFrontPagination)).subscribe(di=>{di!==this.nzTotal&&(this.nzTotal=di,this.cdr.markForCheck())}),ct.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.data=di,this.nzCurrentPageDataChange.next(di),this.cdr.markForCheck()}),$n.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.nzCustomColumn=di,this.nzCustomColumnChange.next(di),this.cdr.markForCheck()}),fi.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.theadTemplate=di,this.cdr.markForCheck()}),ki.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.hasFixLeft=di,this.cdr.markForCheck()}),To.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.hasFixRight=di,this.cdr.markForCheck()}),(0,L.z)([sn,this.templateMode$]).pipe((0,F.T)(([di,ho])=>0===di&&!ho),(0,I.Q)(this.destroy$)).subscribe(di=>{this.nzTableStyleService.setShowEmpty(di)}),this.verticalScrollBarWidth=(0,E.nS)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.listOfAutoColWidth=di,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,I.Q)(this.destroy$)).subscribe(di=>{this.listOfManualColWidth=di,this.cdr.markForCheck()})}ngOnChanges(fe){const{nzScroll:We,nzPageIndex:ct,nzPageSize:sn,nzFrontPagination:Bn,nzData:$n,nzCustomColumn:fi,nzWidthConfig:ki,nzNoResult:To,nzTemplateMode:di}=fe;ct&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),sn&&this.nzTableDataService.updatePageSize(this.nzPageSize),$n&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),fi&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),Bn&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),We&&this.setScrollOnChanges(),ki&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),di&&this.templateMode$.next(this.nzTemplateMode),To&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,F.T)(([fe])=>{const{width:We}=fe.target.getBoundingClientRect();return Math.floor(We-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,I.Q)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(Le.xH),t.rXU(Ie.yx),t.rXU(t.gRc),t.rXU(mi),t.rXU(Xi),t.rXU(st.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["nz-table"]],contentQueries:function(We,ct,sn){if(1&We&&t.wni(sn,Fo,5),2&We){let Bn;t.mGM(Bn=t.lsd())&&(ct.nzVirtualScrollDirective=Bn.first)}},viewQuery:function(We,ct){if(1&We&&t.GBs(sr,5),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.nzTableInnerScrollComponent=sn.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-wrapper-rtl","rtl"===ct.dir)("ant-table-custom-column",ct.nzCustomColumn.length)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzCustomColumn:"nzCustomColumn",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",noDataVirtualHeight:"noDataVirtualHeight",nzPaginationType:"nzPaginationType",nzFrontPagination:[2,"nzFrontPagination","nzFrontPagination",t.L39],nzTemplateMode:[2,"nzTemplateMode","nzTemplateMode",t.L39],nzShowPagination:[2,"nzShowPagination","nzShowPagination",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzOuterBordered:[2,"nzOuterBordered","nzOuterBordered",t.L39],nzLoadingIndicator:"nzLoadingIndicator",nzBordered:[2,"nzBordered","nzBordered",t.L39],nzSize:"nzSize",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",t.L39],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",t.L39],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",t.L39],nzSimple:[2,"nzSimple","nzSimple",t.L39]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],standalone:!0,features:[t.Jv_([mi,Xi]),t.GFd,t.OA$,t.aNF],ngContentSelectors:ze,decls:13,vars:26,consts:[["tableMainElement",""],["paginationTemplate",""],["contentTemplate",""],[3,"nzDelay","nzSpinning","nzIndicator"],[3,"ngTemplateOutlet"],[1,"ant-table"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy","noDataVirtualHeight"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"],[1,"ant-table-pagination","ant-table-pagination-right",3,"nzPageSizeChange","nzPageIndexChange","hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"]],template:function(We,ct){1&We&&(t.NAR(),t.j41(0,"nz-spin",3),t.DNE(1,Ur,1,1,null,4),t.j41(2,"div",5,0),t.DNE(4,Ts,1,1,"nz-table-title-footer",6)(5,Qo,1,14,"nz-table-inner-scroll",7)(6,Gs,1,4,"nz-table-inner-default",8)(7,nt,1,1,"nz-table-title-footer",9),t.k0s(),t.DNE(8,Ve,1,1,null,4),t.k0s(),t.DNE(9,Mt,1,1,"ng-template",null,1,t.C5r)(11,Yt,1,0,"ng-template",null,2,t.C5r)),2&We&&(t.Y8G("nzDelay",ct.nzLoadingDelay)("nzSpinning",ct.nzLoading)("nzIndicator",ct.nzLoadingIndicator),t.R7$(),t.vxM("both"===ct.nzPaginationPosition||"top"===ct.nzPaginationPosition?1:-1),t.R7$(),t.AVh("ant-table-rtl","rtl"===ct.dir)("ant-table-fixed-header",ct.nzData.length&&ct.scrollY)("ant-table-fixed-column",ct.scrollX)("ant-table-has-fix-left",ct.hasFixLeft)("ant-table-has-fix-right",ct.hasFixRight)("ant-table-bordered",ct.nzBordered)("nz-table-out-bordered",ct.nzOuterBordered&&!ct.nzBordered)("ant-table-middle","middle"===ct.nzSize)("ant-table-small","small"===ct.nzSize),t.R7$(2),t.vxM(ct.nzTitle?4:-1),t.R7$(),t.vxM(ct.scrollY||ct.scrollX?5:6),t.R7$(2),t.vxM(ct.nzFooter?7:-1),t.R7$(),t.vxM("both"===ct.nzPaginationPosition||"bottom"===ct.nzPaginationPosition?8:-1))},dependencies:[Je.a,H.T3,zs,sr,Sr,Ee,Qe],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzLoadingIndicator",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzBordered",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzSize",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzShowSizeChanger",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzHideOnSinglePage",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzShowQuickJumper",void 0),(0,r.Cg)([(0,Ie.H4)()],Ze.prototype,"nzSimple",void 0),Ze})(),es=(()=>{class Ze{constructor(fe){this.nzTableStyleService=fe,this.destroy$=new e.B,this.listOfFixedColumns$=new M.m(1),this.listOfColumns$=new M.m(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,J.n)(We=>(0,B.h)(this.listOfFixedColumns$,...We.map(ct=>ct.changes$)).pipe((0,he.Z)(()=>this.listOfFixedColumns$))),(0,I.Q)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,F.T)(We=>We.filter(ct=>!1!==ct.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,F.T)(We=>We.filter(ct=>!1!==ct.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,J.n)(We=>(0,B.h)(this.listOfColumns$,...We.map(ct=>ct.changes$)).pipe((0,he.Z)(()=>this.listOfColumns$))),(0,I.Q)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!fe}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,be.Z)(this.listOfCellFixedDirective),(0,I.Q)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,be.Z)(this.listOfNzThDirective),(0,I.Q)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(fe=>{fe.forEach(We=>We.setIsLastLeft(We===fe[fe.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(fe=>{fe.forEach(We=>We.setIsFirstRight(We===fe[0]))}),(0,L.z)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,I.Q)(this.destroy$)).subscribe(([fe,We])=>{We.forEach((ct,sn)=>{if(ct.isAutoLeft){const $n=We.slice(0,sn).reduce((ki,To)=>ki+(To.colspan||To.colSpan||1),0),fi=fe.slice(0,$n).reduce((ki,To)=>ki+To,0);ct.setAutoLeftWidth(`${fi}px`)}})}),(0,L.z)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,I.Q)(this.destroy$)).subscribe(([fe,We])=>{We.forEach((ct,sn)=>{const Bn=We[We.length-sn-1];if(Bn.isAutoRight){const fi=We.slice(We.length-sn,We.length).reduce((To,di)=>To+(di.colspan||di.colSpan||1),0),ki=fe.slice(fe.length-fi,fe.length).reduce((To,di)=>To+di,0);Bn.setAutoRightWidth(`${ki}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(mi,8))};static#t=this.\u0275dir=t.FsC({type:Ze,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(We,ct,sn){if(1&We&&(t.wni(sn,io,4),t.wni(sn,ai,4)),2&We){let Bn;t.mGM(Bn=t.lsd())&&(ct.listOfNzThDirective=Bn),t.mGM(Bn=t.lsd())&&(ct.listOfCellFixedDirective=Bn)}},hostVars:2,hostBindings:function(We,ct){2&We&&t.AVh("ant-table-row",ct.isInsideTable)},standalone:!0})}return Ze})(),Eo=(()=>{class Ze{constructor(fe,We,ct,sn){this.elementRef=fe,this.renderer=We,this.nzTableStyleService=ct,this.nzTableDataService=sn,this.destroy$=new e.B,this.isInsideTable=!1,this.nzSortOrderChange=new t.bkB,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const fe=this.listOfNzTrDirective.changes.pipe((0,be.Z)(this.listOfNzTrDirective),(0,F.T)(Bn=>Bn&&Bn.first)),We=fe.pipe((0,J.n)(Bn=>Bn?Bn.listOfColumnsChanges$:A.w),(0,I.Q)(this.destroy$));We.subscribe(Bn=>this.nzTableStyleService.setListOfTh(Bn)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,J.n)(Bn=>Bn?We:(0,w.of)([]))).pipe((0,I.Q)(this.destroy$)).subscribe(Bn=>this.nzTableStyleService.setListOfMeasureColumn(Bn));const ct=fe.pipe((0,J.n)(Bn=>Bn?Bn.listOfFixedLeftColumnChanges$:A.w),(0,I.Q)(this.destroy$)),sn=fe.pipe((0,J.n)(Bn=>Bn?Bn.listOfFixedRightColumnChanges$:A.w),(0,I.Q)(this.destroy$));ct.subscribe(Bn=>{this.nzTableStyleService.setHasFixLeft(0!==Bn.length)}),sn.subscribe(Bn=>{this.nzTableStyleService.setHasFixRight(0!==Bn.length)})}if(this.nzTableDataService){const fe=this.listOfNzThAddOnComponent.changes.pipe((0,be.Z)(this.listOfNzThAddOnComponent));fe.pipe((0,J.n)(()=>(0,B.h)(...this.listOfNzThAddOnComponent.map(sn=>sn.manualClickOrder$))),(0,I.Q)(this.destroy$)).subscribe(sn=>{this.nzSortOrderChange.emit({key:sn.nzColumnKey,value:sn.sortOrder}),sn.nzSortFn&&!1===sn.nzSortPriority&&this.listOfNzThAddOnComponent.filter($n=>$n!==sn).forEach($n=>$n.clearSortOrder())}),fe.pipe((0,J.n)(sn=>(0,B.h)(fe,...sn.map(Bn=>Bn.calcOperatorChange$)).pipe((0,he.Z)(()=>fe))),(0,F.T)(sn=>sn.filter(Bn=>!!Bn.nzSortFn||!!Bn.nzFilterFn).map(Bn=>{const{nzSortFn:$n,sortOrder:fi,nzFilterFn:ki,nzFilterValue:To,nzSortPriority:di,nzColumnKey:ho}=Bn;return{key:ho,sortFn:$n,sortPriority:di,sortOrder:fi,filterFn:ki,filterValue:To}})),(0,Oe.c)(0),(0,I.Q)(this.destroy$)).subscribe(sn=>{this.nzTableDataService.listOfCalcOperator$.next(sn)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(We){return new(We||Ze)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(mi,8),t.rXU(Xi,8))};static#t=this.\u0275cmp=t.VBU({type:Ze,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(We,ct,sn){if(1&We&&(t.wni(sn,es,5),t.wni(sn,ao,5)),2&We){let Bn;t.mGM(Bn=t.lsd())&&(ct.listOfNzTrDirective=Bn),t.mGM(Bn=t.lsd())&&(ct.listOfNzThAddOnComponent=Bn)}},viewQuery:function(We,ct){if(1&We&&t.GBs(tn,7),2&We){let sn;t.mGM(sn=t.lsd())&&(ct.templateRef=sn.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},standalone:!0,features:[t.aNF],ngContentSelectors:ze,decls:3,vars:1,consts:[["contentTemplate",""],[3,"ngTemplateOutlet"]],template:function(We,ct){1&We&&(t.NAR(),t.DNE(0,on,1,0,"ng-template",null,0,t.C5r)(2,Sn,1,1,null,1)),2&We&&(t.R7$(2),t.vxM(ct.isInsideTable?-1:2))},dependencies:[H.T3],encapsulation:2,changeDetection:0})}return Ze})(),ds=(()=>{class Ze{static#e=this.\u0275fac=function(We){return new(We||Ze)};static#t=this.\u0275mod=t.$C({type:Ze});static#n=this.\u0275inj=t.G2t({imports:[Uo,ao,no,yr,zs,sr,li,Qn,ei,xn,Fn]})}return Ze})()},9541:(Rt,De,c)=>{c.d(De,{JZ:()=>Ee,Tl:()=>q,hM:()=>re,rE:()=>ht,rM:()=>ue,v3:()=>te});var t=c(3953),r=c(7806),g=c(5103),e=c(4500),M=c(851),G=c(4085),L=c(7336),B=c(177),A=c(3726),w=c(8359),I=c(536),F=c(5007),X=c(1413),V=c(7673),x=c(7786),ne=c(6977),J=c(3798),be=c(9172),Oe=c(1594),he=c(5964),Ie=c(1986),me=c(2602),de=c(1868),H=c(946),z=c(5979),Z=c(8203),pe=c(713),E=c(1188),S=c(4707),R=c(6042),Y=c(3451),se=c(317);function Be(ze,gt){if(1&ze&&(t.qex(0),t.nrm(1,"span",1),t.bVm()),2&ze){const Ke=gt.$implicit;t.R7$(),t.Y8G("nzType",Ke)}}const Pt=()=>({minWidth:"46px"}),vt=()=>({visible:!1});function wt(ze,gt){if(1&ze&&(t.qex(0),t.EFF(1),t.bVm()),2&ze){const Ke=t.XpG().$implicit;t.R7$(),t.SpI(" ",Ke.tab.label," ")}}function Le(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"li",8),t.bIt("click",function(){const Re=t.eBV(Ke).$implicit,$=t.XpG(2);return t.Njj($.onSelect(Re))})("contextmenu",function(Re){const $=t.eBV(Ke).$implicit,ce=t.XpG(2);return t.Njj(ce.onContextmenu($,Re))}),t.DNE(1,wt,2,1,"ng-container",9),t.k0s()}if(2&ze){const Ke=gt.$implicit;t.AVh("ant-tabs-dropdown-menu-item-disabled",Ke.disabled),t.Y8G("nzSelected",Ke.active)("nzDisabled",Ke.disabled),t.R7$(),t.Y8G("nzStringTemplateOutlet",Ke.tab.label)("nzStringTemplateOutletContext",t.lJ4(6,vt))}}function zt(ze,gt){if(1&ze&&(t.j41(0,"ul",6),t.DNE(1,Le,2,7,"li",7),t.k0s()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngForOf",Ke.items)}}function xt(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",10),t.bIt("click",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.addClicked.emit())}),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("addIcon",Ke.addIcon)}}const st=["navWarp"],Ct=["navList"],It=["*"];function Tt(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.addClicked.emit())}),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("addIcon",Ke.addIcon),t.BMQ("tabindex",-1)}}function en(ze,gt){}function jt(ze,gt){if(1&ze&&(t.j41(0,"div",9),t.DNE(1,en,0,0,"ng-template",10),t.k0s()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",Ke.extraTemplate)}}const Vt=["nz-tab-body",""];function fn(ze,gt){}function Hn(ze,gt){if(1&ze&&(t.qex(0),t.DNE(1,fn,0,0,"ng-template",1),t.bVm()),2&ze){const Ke=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",Ke.content)}}function zn(ze,gt){if(1&ze&&(t.qex(0),t.nrm(1,"span",1),t.bVm()),2&ze){const Ke=gt.$implicit;t.R7$(),t.Y8G("nzType",Ke)}}const bt=["contentTemplate"],At=[[["","nz-tab-link",""]],"*"],Et=["[nz-tab-link]","*"];function Ot(ze,gt){1&ze&&t.SdG(0)}function Wt(ze,gt){1&ze&&t.SdG(0,1)}const Ue=()=>({visible:!0});function Ae(ze,gt){if(1&ze&&(t.qex(0),t.EFF(1),t.bVm()),2&ze){const Ke=t.XpG().$implicit;t.R7$(),t.JRh(Ke.label)}}function ie(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"button",10),t.bIt("click",function(Re){t.eBV(Ke);const $=t.XpG().index,ce=t.XpG(2);return t.Njj(ce.onClose($,Re))}),t.k0s()}if(2&ze){const Ke=t.XpG().$implicit;t.Y8G("closeIcon",Ke.nzCloseIcon)}}function _e(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"div",6),t.bIt("click",function(Re){const $=t.eBV(Ke),ce=$.$implicit,N=$.index,ke=t.XpG(2);return t.Njj(ke.clickNavItem(ce,N,Re))})("contextmenu",function(Re){const $=t.eBV(Ke).$implicit,ce=t.XpG(2);return t.Njj(ce.contextmenuNavItem($,Re))}),t.j41(1,"button",7),t.DNE(2,Ae,2,1,"ng-container",8)(3,ie,1,1,"button",9),t.k0s()()}if(2&ze){const Ke=gt.$implicit,Pe=gt.index,Re=t.XpG(2);t.xc7("margin-right","horizontal"===Re.position?Re.nzTabBarGutter:null,"px")("margin-bottom","vertical"===Re.position?Re.nzTabBarGutter:null,"px"),t.AVh("ant-tabs-tab-active",Re.nzSelectedIndex===Pe)("ant-tabs-tab-disabled",Ke.nzDisabled),t.R7$(),t.Y8G("id",Re.getTabContentId(Pe))("disabled",Ke.nzDisabled)("tab",Ke)("active",Re.nzSelectedIndex===Pe),t.BMQ("tabIndex",Re.getTabIndex(Ke,Pe))("aria-disabled",Ke.nzDisabled)("aria-selected",Re.nzSelectedIndex===Pe&&!Re.nzHideAll)("aria-controls",Re.getTabContentId(Pe)),t.R7$(),t.Y8G("nzStringTemplateOutlet",Ke.label)("nzStringTemplateOutletContext",t.lJ4(19,Ue)),t.R7$(),t.Y8G("ngIf",Ke.nzClosable&&Re.closable&&!Ke.nzDisabled)}}function oe(ze,gt){if(1&ze){const Ke=t.RV6();t.j41(0,"nz-tabs-nav",4),t.bIt("tabScroll",function(Re){t.eBV(Ke);const $=t.XpG();return t.Njj($.nzTabListScroll.emit(Re))})("selectFocusedIndex",function(Re){t.eBV(Ke);const $=t.XpG();return t.Njj($.setSelectedIndex(Re))})("addClicked",function(){t.eBV(Ke);const Re=t.XpG();return t.Njj(Re.onAdd())}),t.DNE(1,_e,4,20,"div",5),t.k0s()}if(2&ze){const Ke=t.XpG();t.Y8G("ngStyle",Ke.nzTabBarStyle)("selectedIndex",Ke.nzSelectedIndex||0)("inkBarAnimated",Ke.inkBarAnimated)("addable",Ke.addable)("addIcon",Ke.nzAddIcon)("hideBar",Ke.nzHideAll)("position",Ke.position)("extraTemplate",Ke.nzTabBarExtraContent),t.R7$(),t.Y8G("ngForOf",Ke.tabs)}}function Fe(ze,gt){if(1&ze&&t.nrm(0,"div",11),2&ze){const Ke=gt.$implicit,Pe=gt.index,Re=t.XpG();t.Y8G("id",Re.getTabContentId(Pe))("active",Re.nzSelectedIndex===Pe&&!Re.nzHideAll)("content",Ke.content)("forceRender",Ke.nzForceRender)("animated",Re.tabPaneAnimated),t.BMQ("aria-labelledby",Re.getTabContentId(Pe))}}let et=(()=>{class ze{constructor(Ke){this.elementRef=Ke,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Pe,Re){1&Pe&&t.DNE(0,Be,2,1,"ng-container",0),2&Pe&&t.Y8G("nzStringTemplateOutlet",Re.addIcon)},dependencies:[r.C,r.m,g.Y3,g.Dn],encapsulation:2})}return ze})(),dt=(()=>{class ze{get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}constructor(Ke,Pe,Re){this.elementRef=Ke,this.ngZone=Pe,this.animationMode=Re,this.position="horizontal",this.animated=!0}alignToElement(Ke){this.ngZone.runOutsideAngular(()=>{(0,e.j)(()=>this.setStyles(Ke))})}setStyles(Ke){const Pe=this.elementRef.nativeElement;"horizontal"===this.position?(Pe.style.top="",Pe.style.height="",Pe.style.left=this.getLeftPosition(Ke),Pe.style.width=this.getElementWidth(Ke)):(Pe.style.left="",Pe.style.width="",Pe.style.top=this.getTopPosition(Ke),Pe.style.height=this.getElementHeight(Ke))}getLeftPosition(Ke){return Ke?`${Ke.offsetLeft||0}px`:"0"}getElementWidth(Ke){return Ke?`${Ke.offsetWidth||0}px`:"0"}getTopPosition(Ke){return Ke?`${Ke.offsetTop||0}px`:"0"}getElementHeight(Ke){return Ke?`${Ke.offsetHeight||0}px`:"0"}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.bc$,8))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(Pe,Re){2&Pe&&t.AVh("ant-tabs-ink-bar-animated",Re._animated)},inputs:{position:"position",animated:"animated"},standalone:!0})}return ze})(),Kt=(()=>{class ze{constructor(Ke){this.elementRef=Ke,this.disabled=!1,this.active=!1,this.el=Ke.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",t.L39],tab:"tab",active:[2,"active","active",t.L39]},standalone:!0,features:[t.GFd]})}return ze})(),cn=(()=>{class ze{constructor(Ke,Pe){this.cdr=Ke,this.elementRef=Pe,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new t.bkB,this.selected=new t.bkB,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(Ke){Ke.disabled||(Ke.tab.nzClick.emit(),this.selected.emit(Ke))}onContextmenu(Ke,Pe){Ke.disabled||Ke.tab.nzContextmenu.emit(Pe)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(Ke){Ke||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.gRc),t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(Pe,Re){2&Pe&&t.AVh("ant-tabs-nav-operations-hidden",0===Re.items.length)},inputs:{items:"items",addable:[2,"addable","addable",t.L39],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],standalone:!0,features:[t.GFd,t.aNF],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nz-icon","","nzType","ellipsis"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(Pe,Re){if(1&Pe){const $=t.RV6();t.j41(0,"button",2,0),t.bIt("nzVisibleChange",function(N){return t.eBV($),t.Njj(Re.menuVisChange(N))})("mouseenter",function(){return t.eBV($),t.Njj(Re.showItems())}),t.nrm(2,"span",3),t.k0s(),t.j41(3,"nz-dropdown-menu",null,1),t.DNE(5,zt,2,1,"ul",4),t.k0s(),t.DNE(6,xt,1,1,"button",5)}if(2&Pe){const $=t.sdS(4);t.Y8G("nzDropdownMenu",$)("nzOverlayStyle",t.lJ4(5,Pt))("nzMatchWidthElement",null),t.R7$(5),t.Y8G("ngIf",Re.menuOpened),t.R7$(),t.Y8G("ngIf",Re.addable)}},dependencies:[g.Y3,g.Dn,B.bT,B.Sq,r.C,r.m,et,me.wQ,de.GP,de.jS,de.CU,me.j3],encapsulation:2,changeDetection:0})}return ze})();const Vn=.995**20;let Un=(()=>{class ze{constructor(Ke,Pe){this.ngZone=Ke,this.elementRef=Pe,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new t.bkB,this.tabScroll=new t.bkB,this.onTouchEnd=Re=>{if(!this.touchPosition)return;const $=this.lastOffset,ce=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,$){const N=$.x/ce,ke=$.y/ce,ve=Math.abs(N),K=Math.abs(ke);if(Math.max(ve,K)<.1)return;let U=N,ge=ke;this.motion=window.setInterval(()=>{Math.abs(U)<.01&&Math.abs(ge)<.01?window.clearInterval(this.motion):(U*=Vn,ge*=Vn,this.onOffset(20*U,20*ge,Re))},20)}},this.onTouchMove=Re=>{if(!this.touchPosition)return;Re.preventDefault();const{screenX:$,screenY:ce}=Re.touches[0],N=$-this.touchPosition.x,ke=ce-this.touchPosition.y;this.onOffset(N,ke,Re);const ve=Date.now();this.lastTimeDiff=ve-this.lastTimestamp,this.lastTimestamp=ve,this.lastOffset={x:N,y:ke},this.touchPosition={x:$,y:ce}},this.onTouchStart=Re=>{const{screenX:$,screenY:ce}=Re.touches[0];this.touchPosition={x:$,y:ce},window.clearInterval(this.motion)},this.onWheel=Re=>{const{deltaX:$,deltaY:ce}=Re;let N;const ke=Math.abs($),ve=Math.abs(ce);ke===ve?N="x"===this.lastWheelDirection?$:ce:ke>ve?(N=$,this.lastWheelDirection="x"):(N=ce,this.lastWheelDirection="y");const K=Date.now(),U=Math.abs(N);(K-this.lastWheelTimestamp>100||U-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-N,-N,Re),(Re.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=K,this.lastMixedWheel=U}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const Ke=this.elementRef.nativeElement,Pe=(0,A.R)(Ke,"wheel"),Re=(0,A.R)(Ke,"touchstart"),$=(0,A.R)(Ke,"touchmove"),ce=(0,A.R)(Ke,"touchend"),N=new w.yU;return N.add(this.subscribeWrap("wheel",Pe,this.onWheel)),N.add(this.subscribeWrap("touchstart",Re,this.onTouchStart)),N.add(this.subscribeWrap("touchmove",$,this.onTouchMove)),N.add(this.subscribeWrap("touchend",ce,this.onTouchEnd)),()=>{N.unsubscribe()}})}subscribeWrap(Ke,Pe,Re){return Pe.subscribe($=>{this.tabScroll.emit({type:Ke,event:$}),$.defaultPrevented||Re($)})}onOffset(Ke,Pe,Re){this.ngZone.run(()=>{this.offsetChange.emit({x:Ke,y:Pe,event:Re})})}ngOnDestroy(){this.unsubscribe()}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.SKi),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"},standalone:!0})}return ze})();const dn=typeof requestAnimationFrame<"u"?I.X:F.$;let On=(()=>{class ze{get selectedIndex(){return this._selectedIndex}set selectedIndex(Ke){const Pe=(0,G.OE)(Ke);this._selectedIndex!==Pe&&(this._selectedIndex=Ke,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(Ke))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(Ke){!this.isValidIndex(Ke)||this.focusIndex===Ke||!this.keyManager||this.keyManager.setActiveItem(Ke)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}constructor(Ke,Pe,Re,$,ce){this.cdr=Ke,this.ngZone=Pe,this.viewportRuler=Re,this.nzResizeObserver=$,this.dir=ce,this.indexFocused=new t.bkB,this.selectFocusedIndex=new t.bkB,this.addClicked=new t.bkB,this.tabScroll=new t.bkB,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new X.B,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1}ngAfterViewInit(){const Ke=this.dir?this.dir.change.asObservable():(0,V.of)(null),Pe=this.viewportRuler.change(150),Re=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new M.Bu(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),(0,e.j)(Re),(0,x.h)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe((0,ne.Q)(this.destroy$),(0,J.Z)(16,dn)).subscribe(()=>{Re()}),(0,x.h)(Ke,Pe,this.items.changes).pipe((0,ne.Q)(this.destroy$)).subscribe(()=>{Promise.resolve().then(Re),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe((0,ne.Q)(this.destroy$)).subscribe($=>{this.indexFocused.emit($),this.setTabFocus($),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(Ke){const Pe=this.items.toArray().findIndex(Re=>Re===Ke);-1!==Pe&&(this.keyManager.updateActiveItem(Pe),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(Ke)))}onOffsetChange(Ke){if("horizontal"===this.position){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&Ke.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&Ke.x<0))return;Ke.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+Ke.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&Ke.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&Ke.y<0))return;Ke.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+Ke.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(Ke){const Pe=this.navWarpRef.nativeElement.contains(Ke.target);if(!(0,L.rp)(Ke)&&Pe)switch(Ke.keyCode){case L.UQ:case L.i7:case L.LE:case L.n6:this.lockAnimation(),this.keyManager.onKeydown(Ke);break;case L.Fm:case L.t6:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(Ke)}}isValidIndex(Ke){if(!this.items)return!0;const Pe=this.items?this.items.toArray()[Ke]:null;return!!Pe&&!Pe.disabled}scrollToTab(Ke){if(!this.items.find(Re=>Re===Ke))return;const Pe=this.items.toArray();if("horizontal"===this.position){let Re=this.transformX;if("rtl"===this.getLayoutDirection()){const $=Pe[0].left+Pe[0].width-Ke.left-Ke.width;$this.transformX+this.wrapperWidth&&(Re=$+Ke.width-this.wrapperWidth)}else Ke.left<-this.transformX?Re=-Ke.left:Ke.left+Ke.width>-this.transformX+this.wrapperWidth&&(Re=-(Ke.left+Ke.width-this.wrapperWidth));this.transformX=Re,this.transformY=0,this.setTransform(Re,0)}else{let Re=this.transformY;Ke.top<-this.transformY?Re=-Ke.top:Ke.top+Ke.height>-this.transformY+this.wrapperHeight&&(Re=-(Ke.top+Ke.height-this.wrapperHeight)),this.transformY=Re,this.transformX=0,this.setTransform(0,Re)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},150)})}setTransform(Ke,Pe){this.navListRef.nativeElement.style.transform=`translate(${Ke}px, ${Pe}px)`}clampTransformX(Ke){const Pe=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(Pe,Ke),0):Math.min(Math.max(Pe,Ke),0)}clampTransformY(Ke){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,Ke),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){const Ke=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,Pe=Ke?Ke.elementRef.nativeElement:null;Pe&&this.inkBar.alignToElement(Pe.parentElement)}setPingStatus(){const Ke={top:!1,right:!1,bottom:!1,left:!1},Pe=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(Ke.right=this.transformX>0,Ke.left=this.transformX+this.wrapperWidth{const $=`ant-tabs-nav-wrap-ping-${Re}`;Ke[Re]?Pe.classList.add($):Pe.classList.remove($)})}setVisibleRange(){let Ke,Pe,Re,$,ce,N;const ke=this.items.toArray(),ve={width:0,height:0,left:0,top:0,right:0},K=Cn=>{let Zn;return Zn="right"===Pe?ke[0].left+ke[0].width-ke[Cn].left-ke[Cn].width:(ke[Cn]||ve)[Pe],Zn};"horizontal"===this.position?(Ke="width",$=this.wrapperWidth,ce=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),N=this.addButtonWidth,Re=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(Pe="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth$&&(U=$-N),!ke.length)return this.hiddenItems=[],void this.cdr.markForCheck();const ge=ke.length;let qe=ge;for(let Cn=0;CnRe+U){qe=Cn-1;break}let rt=0;for(let Cn=ge-1;Cn>=0;Cn-=1)if(K(Cn){class ze{constructor(){this.content=null,this.active=!1,this.animated=!0,this.forceRender=!1,this.hasBeenActive=!1}ngOnChanges(Ke){const{active:Pe}=Ke;Pe?.currentValue&&(this.hasBeenActive=!0)}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(Pe,Re){2&Pe&&(t.zvX("@tabSwitchMotion",Re.active?"enter":"leave")("@.disabled",!Re.animated),t.BMQ("tabindex",Re.active?0:-1)("aria-hidden",!Re.active),t.xc7("overflow-y",Re.animated?Re.active?null:"none":null),t.AVh("ant-tabs-tabpane-active",Re.active)("ant-tabs-tabpane-hidden",Re.animated?null:!Re.active))},inputs:{content:"content",active:"active",animated:"animated",forceRender:"forceRender"},exportAs:["nzTabBody"],standalone:!0,features:[t.OA$,t.aNF],attrs:Vt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(Pe,Re){1&Pe&&t.DNE(0,Hn,2,1,"ng-container",0),2&Pe&&t.Y8G("ngIf",Re.hasBeenActive||Re.forceRender)},dependencies:[B.bT,B.T3],encapsulation:2,data:{animation:[pe.eF]},changeDetection:0})}return ze})(),Ye=(()=>{class ze{constructor(){this.closeIcon="close"}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Pe,Re){1&Pe&&t.DNE(0,zn,2,1,"ng-container",0),2&Pe&&t.Y8G("nzStringTemplateOutlet",Re.closeIcon)},dependencies:[r.C,r.m,g.Y3,g.Dn],encapsulation:2})}return ze})(),ue=(()=>{class ze{constructor(Ke){this.templateRef=Ke}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.C4Q,1))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"],standalone:!0})}return ze})(),te=(()=>{class ze{constructor(Ke,Pe){this.elementRef=Ke,this.routerLink=Pe}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(t.aKT),t.rXU(E.Wk,10))};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"],standalone:!0})}return ze})(),q=(()=>{class ze{static#e=this.\u0275fac=function(Pe){return new(Pe||ze)};static#t=this.\u0275dir=t.FsC({type:ze,selectors:[["","nz-tab",""]],exportAs:["nzTab"],standalone:!0})}return ze})();const Xe=new t.nKC("NZ_TAB_SET");let ht=(()=>{class ze{get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}constructor(Ke){this.closestTabSet=Ke,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new t.bkB,this.nzDeselect=new t.bkB,this.nzClick=new t.bkB,this.nzContextmenu=new t.bkB,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new X.B}ngOnChanges(Ke){const{nzTitle:Pe,nzDisabled:Re,nzForceRender:$}=Ke;(Pe||Re||$)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(Xe))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tab"]],contentQueries:function(Pe,Re,$){if(1&Pe&&(t.wni($,ue,5),t.wni($,q,5,t.C4Q),t.wni($,te,5)),2&Pe){let ce;t.mGM(ce=t.lsd())&&(Re.nzTabLinkTemplateDirective=ce.first),t.mGM(ce=t.lsd())&&(Re.template=ce.first),t.mGM(ce=t.lsd())&&(Re.linkDirective=ce.first)}},viewQuery:function(Pe,Re){if(1&Pe&&t.GBs(bt,7),2&Pe){let $;t.mGM($=t.lsd())&&(Re.contentTemplate=$.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",t.L39],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzForceRender:[2,"nzForceRender","nzForceRender",t.L39]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:Et,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(Pe,Re){1&Pe&&(t.NAR(At),t.DNE(0,Ot,1,0,"ng-template",null,0,t.C5r)(2,Wt,1,0,"ng-template",null,1,t.C5r))},encapsulation:2,changeDetection:0})}return ze})();class at{}let Qe=0,Ee=(()=>{class ze{get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(Ke){this.indexToSelect=(0,G.OE)(Ke,null)}get position(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}get addable(){return"editable-card"===this.nzType&&!this.nzHideAdd}get closable(){return"editable-card"===this.nzType}get line(){return"line"===this.nzType}get inkBarAnimated(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return"boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane}constructor(Ke,Pe,Re,$,ce){this.nzConfigService=Ke,this.ngZone=Pe,this.cdr=Re,this.directionality=$,this.router=ce,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new t.bkB(!0),this.nzSelectedIndexChange=new t.bkB,this.nzTabListScroll=new t.bkB,this.nzClose=new t.bkB,this.nzAdd=new t.bkB,this.allTabs=new t.rOR,this.tabs=new t.rOR,this.dir="ltr",this.destroy$=new X.B,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=w.yU.EMPTY,this.tabsSubscription=w.yU.EMPTY,this.canDeactivateSubscription=w.yU.EMPTY,this.tabSetId=Qe++}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,ne.Q)(this.destroy$)).subscribe(Ke=>{this.dir=Ke,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){const Pe=this.tabs.toArray();for(let Re=0;Re{this.tabs.forEach((Re,$)=>Re.isActive=$===Ke),Pe||this.nzSelectedIndexChange.emit(Ke)})}this.tabs.forEach((Pe,Re)=>{Pe.position=Re-Ke,null!=this.selectedIndex&&0===Pe.position&&!Pe.origin&&(Pe.origin=Ke-this.selectedIndex)}),this.selectedIndex!==Ke&&(this.selectedIndex=Ke,this.cdr.markForCheck())}onClose(Ke,Pe){Pe.preventDefault(),Pe.stopPropagation(),this.nzClose.emit({index:Ke})}onAdd(){this.nzAdd.emit()}clampTabIndex(Ke){return Math.min(this.tabs.length-1,Math.max(Ke||0,0))}createChangeEvent(Ke){const Pe=new at;return Pe.index=Ke,this.tabs&&this.tabs.length&&(Pe.tab=this.tabs.toArray()[Ke],this.tabs.forEach((Re,$)=>{$!==Ke&&Re.nzDeselect.emit()}),Pe.tab.nzSelect.emit()),Pe}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=(0,x.h)(...this.tabs.map(Ke=>Ke.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe((0,be.Z)(this.allTabs)).subscribe(Ke=>{this.tabs.reset(Ke.filter(Pe=>Pe.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(Ke,Pe){return"function"==typeof this.nzCanDeactivate?(0,se.cG)(this.nzCanDeactivate(Ke,Pe)).pipe((0,Oe.$)(),(0,ne.Q)(this.destroy$)):(0,V.of)(!0)}clickNavItem(Ke,Pe,Re){Ke.nzDisabled||(Ke.nzClick.emit(),this.isRouterLinkClickEvent(Pe,Re)||this.setSelectedIndex(Pe))}isRouterLinkClickEvent(Ke,Pe){const Re=Pe.target;return!!this.nzLinkRouter&&!!this.tabs.toArray()[Ke]?.linkDirective?.elementRef.nativeElement.contains(Re)}contextmenuNavItem(Ke,Pe){Ke.nzDisabled||Ke.nzContextmenu.emit(Pe)}setSelectedIndex(Ke){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,Ke).subscribe(Pe=>{Pe&&(this.nzSelectedIndex=Ke,this.tabNavBarRef.focusIndex=Ke,this.cdr.markForCheck())})}getTabIndex(Ke,Pe){return Ke.nzDisabled?null:this.selectedIndex===Pe?0:-1}getTabContentId(Ke){return`nz-tabs-${this.tabSetId}-tab-${Ke}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${Y.H3} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe((0,ne.Q)(this.destroy$),(0,he.p)(Ke=>Ke instanceof E.wF),(0,be.Z)(!0),(0,Ie.c)(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const Ke=this.findShouldActiveTabIndex();Ke!==this.selectedIndex&&this.setSelectedIndex(Ke),this.nzHideAll=-1===Ke}}findShouldActiveTabIndex(){const Ke=this.tabs.toArray(),Pe=this.isLinkActive(this.router);return Ke.findIndex(Re=>{const $=Re.linkDirective;return!!$&&Pe($.routerLink)})}isLinkActive(Ke){return Pe=>!!Pe&&Ke.isActive(Pe.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}static#e=this.\u0275fac=function(Pe){return new(Pe||ze)(t.rXU(R.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(Z.dS,8),t.rXU(E.Ix,8))};static#t=this.\u0275cmp=t.VBU({type:ze,selectors:[["nz-tabset"]],contentQueries:function(Pe,Re,$){if(1&Pe&&t.wni($,ht,5),2&Pe){let ce;t.mGM(ce=t.lsd())&&(Re.allTabs=ce)}},viewQuery:function(Pe,Re){if(1&Pe&&t.GBs(On,5),2&Pe){let $;t.mGM($=t.lsd())&&(Re.tabNavBarRef=$.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(Pe,Re){2&Pe&&t.AVh("ant-tabs-card","card"===Re.nzType||"editable-card"===Re.nzType)("ant-tabs-editable","editable-card"===Re.nzType)("ant-tabs-editable-card","editable-card"===Re.nzType)("ant-tabs-centered",Re.nzCentered)("ant-tabs-rtl","rtl"===Re.dir)("ant-tabs-top","top"===Re.nzTabPosition)("ant-tabs-bottom","bottom"===Re.nzTabPosition)("ant-tabs-left","left"===Re.nzTabPosition)("ant-tabs-right","right"===Re.nzTabPosition)("ant-tabs-default","default"===Re.nzSize)("ant-tabs-small","small"===Re.nzSize)("ant-tabs-large","large"===Re.nzSize)},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",t.L39],nzCentered:[2,"nzCentered","nzCentered",t.L39],nzHideAll:[2,"nzHideAll","nzHideAll",t.L39],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",t.L39],nzLinkExact:[2,"nzLinkExact","nzLinkExact",t.L39]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],standalone:!0,features:[t.Jv_([{provide:Xe,useExisting:ze}]),t.GFd,t.aNF],decls:4,vars:12,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","animated",4,"ngFor","ngForOf"],[3,"tabScroll","selectFocusedIndex","addClicked","ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","animated"]],template:function(Pe,Re){1&Pe&&(t.DNE(0,oe,2,9,"nz-tabs-nav",0),t.j41(1,"div",1)(2,"div",2),t.DNE(3,Fe,1,6,"div",3),t.k0s()()),2&Pe&&(t.Y8G("ngIf",Re.tabs.length||Re.addable),t.R7$(2),t.AVh("ant-tabs-content-top","top"===Re.nzTabPosition)("ant-tabs-content-bottom","bottom"===Re.nzTabPosition)("ant-tabs-content-left","left"===Re.nzTabPosition)("ant-tabs-content-right","right"===Re.nzTabPosition)("ant-tabs-content-animated",Re.tabPaneAnimated),t.R7$(),t.Y8G("ngForOf",Re.tabs))},dependencies:[On,B.bT,B.B3,B.Sq,Kt,M.Pd,M.vR,r.C,r.m,Ye,Ut],encapsulation:2})}return(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzType",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzSize",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzAnimated",void 0),(0,S.Cg)([(0,R.H4)()],ze.prototype,"nzTabBarGutter",void 0),ze})(),re=(()=>{class ze{static#e=this.\u0275fac=function(Pe){return new(Pe||ze)};static#t=this.\u0275mod=t.$C({type:ze});static#n=this.\u0275inj=t.G2t({imports:[Ee,On,cn,et,Ye]})}return ze})()},5699:(Rt,De,c)=>{c.d(De,{T:()=>I,s:()=>w});var t=c(177),r=c(3953),g=c(1413),e=c(6977),M=c(6006),G=c(5103),L=c(8203);const B=["*"];function A(F,X){if(1&F){const V=r.RV6();r.j41(0,"span",1),r.bIt("click",function(ne){r.eBV(V);const J=r.XpG();return r.Njj(J.closeTag(ne))}),r.k0s()}}let w=(()=>{class F{constructor(V,x,ne,J){this.cdr=V,this.renderer=x,this.elementRef=ne,this.directionality=J,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzBordered=!0,this.nzOnClose=new r.bkB,this.nzCheckedChange=new r.bkB,this.dir="ltr",this.destroy$=new g.B}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(V){this.nzOnClose.emit(V),V.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const V=this.elementRef.nativeElement,x=new RegExp(`(ant-tag-(?:${[...M.un,...M.PA].join("|")}))`,"g"),ne=V.classList.toString(),J=[];let be=x.exec(ne);for(;null!==be;)J.push(be[1]),be=x.exec(ne);V.classList.remove(...J)}setPresetColor(){const V=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,M.nP)(this.nzColor)||(0,M.uP)(this.nzColor)),this.isPresetColor&&V.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(V=>{this.dir=V,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(V){const{nzColor:x}=V;x&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(x){return new(x||F)(r.rXU(r.gRc),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(L.dS,8))};static#t=this.\u0275cmp=r.VBU({type:F,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(x,ne){1&x&&r.bIt("click",function(){return ne.updateCheckedStatus()}),2&x&&(r.xc7("background-color",ne.isPresetColor?"":ne.nzColor),r.AVh("ant-tag-has-color",ne.nzColor&&!ne.isPresetColor)("ant-tag-checkable","checkable"===ne.nzMode)("ant-tag-checkable-checked",ne.nzChecked)("ant-tag-rtl","rtl"===ne.dir)("ant-tag-borderless",!ne.nzBordered))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",r.L39],nzBordered:[2,"nzBordered","nzBordered",r.L39]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],ngContentSelectors:B,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(x,ne){1&x&&(r.NAR(),r.SdG(0),r.DNE(1,A,1,0,"span",0)),2&x&&(r.R7$(),r.Y8G("ngIf","closeable"===ne.nzMode))},dependencies:[G.Y3,G.Dn,t.bT],encapsulation:2,changeDetection:0})}return F})(),I=(()=>{class F{static#e=this.\u0275fac=function(x){return new(x||F)};static#t=this.\u0275mod=r.$C({type:F});static#n=this.\u0275inj=r.G2t({imports:[w]})}return F})()},5154:(Rt,De,c)=>{c.d(De,{LH:()=>z,ME:()=>me,Qt:()=>pe,VJ:()=>Z,t:()=>H});var t=c(7987),r=c(177),g=c(3953),e=c(713),M=c(6006),G=c(6841),L=c(7806),B=c(5463),A=c(6860),w=c(1413),I=c(5007),F=c(3294),X=c(6977),V=c(5964),x=c(1986),ne=c(6042),J=c(317),be=c(8203);const Oe=["overlay"];function he(E,S){if(1&E&&(g.qex(0),g.EFF(1),g.bVm()),2&E){const R=g.XpG(2);g.R7$(),g.JRh(R.nzTitle)}}function Ie(E,S){if(1&E&&(g.j41(0,"div",2)(1,"div",3)(2,"div",4),g.nrm(3,"span",5),g.k0s(),g.j41(4,"div",6),g.DNE(5,he,2,1,"ng-container",7),g.k0s()()()),2&E){const R=g.XpG();g.AVh("ant-tooltip-rtl","rtl"===R.dir),g.Y8G("ngClass",R._classMap)("ngStyle",R.nzOverlayStyle)("@.disabled",!(null==R.noAnimation||!R.noAnimation.nzNoAnimation))("nzNoAnimation",null==R.noAnimation?null:R.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),g.R7$(3),g.Y8G("ngStyle",R._contentStyleMap),g.R7$(),g.Y8G("ngStyle",R._contentStyleMap),g.R7$(),g.Y8G("nzStringTemplateOutlet",R.nzTitle)("nzStringTemplateOutletContext",R.nzTitleContext)}}let me=(()=>{class E{get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return typeof this.trigger<"u"?this.trigger:"hover"}get _placement(){const R=this.placement;return Array.isArray(R)&&R.length>0?R:"string"==typeof R&&R?[R]:["top"]}get _visible(){return(typeof this.visible<"u"?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}constructor(R){this.componentType=R,this.visibleChange=new g.bkB,this.internalVisible=!1,this.destroy$=new w.B,this.triggerDisposables=[],this.elementRef=(0,g.WQX)(g.aKT),this.hostView=(0,g.WQX)(g.c1b),this.renderer=(0,g.WQX)(g.sFG),this.noAnimation=(0,g.WQX)(G.z,{host:!0,optional:!0}),this.nzConfigService=(0,g.WQX)(ne.yx),this.platformId=(0,g.WQX)(g.Agw)}ngAfterViewInit(){(0,r.UE)(this.platformId)&&(this.createComponent(),this.registerTriggers())}ngOnChanges(R){const{trigger:Y}=R;Y&&!Y.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(R)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){this.component?.show()}hide(){this.component?.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const R=this.hostView.createComponent(this.componentType);this.component=R.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),R.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();const Y=this.component.nzVisibleChange.pipe((0,F.F)());Y.pipe((0,X.Q)(this.destroy$)).subscribe(se=>{this.internalVisible=se,this.visibleChange.emit(se)}),Y.pipe((0,V.p)(se=>se),(0,x.c)(0,I.$),(0,V.p)(()=>!!this.component?.overlay?.overlayRef),(0,X.Q)(this.destroy$)).subscribe(()=>{this.component?.updatePosition()})}registerTriggers(){const R=this.elementRef.nativeElement,Y=this.trigger;if(this.removeTriggerListeners(),"hover"===Y){let se;this.triggerDisposables.push(this.renderer.listen(R,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(R,"mouseleave",()=>{this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),this.component?.overlay.overlayRef&&!se&&(se=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(se,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(se,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===Y?(this.triggerDisposables.push(this.renderer.listen(R,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(R,"focusout",()=>this.hide()))):"click"===Y&&this.triggerDisposables.push(this.renderer.listen(R,"click",se=>{se.preventDefault(),this.show()}))}updatePropertiesByChanges(R){this.updatePropertiesByKeys(Object.keys(R))}updatePropertiesByKeys(R){const Y={title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter],cdkConnectedOverlayPush:["cdkConnectedOverlayPush",()=>this.cdkConnectedOverlayPush],...this.getProxyPropertyMap()};(R||Object.keys(Y).filter(se=>!se.startsWith("directive"))).forEach(se=>{if(Y[se]){const[Be,Pt]=Y[se];this.updateComponentValue(Be,Pt())}}),this.component?.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(R,Y){typeof Y<"u"&&(this.component[R]=Y)}delayEnterLeave(R,Y,se=-1){this.delayTimer?this.clearTogglingTimer():se>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,Y?this.show():this.hide()},1e3*se):Y&&R?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(R=>R()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(g.ZUJ))};static#t=this.\u0275dir=g.FsC({type:E,features:[g.OA$]})}return E})(),de=(()=>{class E{set nzVisible(R){const Y=(0,J.G4)(R);this._visible!==Y&&(this._visible=Y,this.nzVisibleChange.next(Y))}get nzVisible(){return this._visible}set nzTrigger(R){this._trigger=R}get nzTrigger(){return this._trigger}set nzPlacement(R){const Y=R.map(se=>B.pn[se]);this._positions=[...Y,...B.Js]}constructor(R,Y,se){this.cdr=R,this.directionality=Y,this.noAnimation=se,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.cdkConnectedOverlayPush=!0,this.nzVisibleChange=new w.B,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...B.Js],this.destroy$=new w.B}ngOnInit(){this.directionality.change?.pipe((0,X.Q)(this.destroy$)).subscribe(R=>{this.dir=R,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(R){this.preferredPlacement=(0,B.jj)(R),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(R){this.origin=R,this.cdr.markForCheck()}onClickOutside(R){const Y=(0,A.Fb)(R);!this.origin.nativeElement.contains(Y)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(g.gRc),g.rXU(be.dS,8),g.rXU(G.z))};static#t=this.\u0275dir=g.FsC({type:E,viewQuery:function(Y,se){if(1&Y&&g.GBs(Oe,5),2&Y){let Be;g.mGM(Be=g.lsd())&&(se.overlay=Be.first)}}})}return E})();function H(E){return!(E instanceof g.C4Q||""!==E&&(0,J.n9)(E))}let z=(()=>{class E extends me{constructor(){super(Z),this.titleContext=null,this.trigger="hover",this.placement="top",this.cdkConnectedOverlayPush=!0,this.visibleChange=new g.bkB}getProxyPropertyMap(){return{...super.getProxyPropertyMap(),nzTooltipColor:["nzColor",()=>this.nzTooltipColor],titleContext:["nzTitleContext",()=>this.titleContext]}}static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275dir=g.FsC({type:E,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(Y,se){2&Y&&g.AVh("ant-tooltip-open",se.visible)},inputs:{title:[0,"nzTooltipTitle","title"],titleContext:[0,"nzTooltipTitleContext","titleContext"],directiveTitle:[0,"nz-tooltip","directiveTitle"],trigger:[0,"nzTooltipTrigger","trigger"],placement:[0,"nzTooltipPlacement","placement"],origin:[0,"nzTooltipOrigin","origin"],visible:[0,"nzTooltipVisible","visible"],mouseEnterDelay:[0,"nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzTooltipOverlayClassName","overlayClassName"],overlayStyle:[0,"nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:[2,"nzTooltipArrowPointAtCenter","arrowPointAtCenter",g.L39],cdkConnectedOverlayPush:[2,"cdkConnectedOverlayPush","cdkConnectedOverlayPush",g.L39],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],standalone:!0,features:[g.GFd,g.Vt3]})}return E})(),Z=(()=>{class E extends de{constructor(R,Y,se){super(R,Y,se),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return H(this.nzTitle)}updateStyles(){const R=this.nzColor&&(0,M.nP)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:R},this._contentStyleMap={backgroundColor:this.nzColor&&!R?this.nzColor:null,"--antd-arrow-background-color":this.nzColor}}static#e=this.\u0275fac=function(Y){return new(Y||E)(g.rXU(g.gRc),g.rXU(be.dS,8),g.rXU(G.z,9))};static#t=this.\u0275cmp=g.VBU({type:E,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],standalone:!0,features:[g.Vt3,g.aNF],decls:2,vars:5,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(Y,se){if(1&Y){const Be=g.RV6();g.DNE(0,Ie,6,11,"ng-template",1,0,g.C5r),g.bIt("overlayOutsideClick",function(vt){return g.eBV(Be),g.Njj(se.onClickOutside(vt))})("detach",function(){return g.eBV(Be),g.Njj(se.hide())})("positionChange",function(vt){return g.eBV(Be),g.Njj(se.onPositionChange(vt))})}2&Y&&g.Y8G("cdkConnectedOverlayOrigin",se.origin)("cdkConnectedOverlayOpen",se._visible)("cdkConnectedOverlayPositions",se._positions)("cdkConnectedOverlayPush",se.cdkConnectedOverlayPush)("nzArrowPointAtCenter",se.nzArrowPointAtCenter)},dependencies:[t.z_,t.WB,r.YU,r.B3,G.z,L.C,L.m,B.$_,B.vT],encapsulation:2,data:{animation:[e.uX]},changeDetection:0})}return E})(),pe=(()=>{class E{static#e=this.\u0275fac=function(Y){return new(Y||E)};static#t=this.\u0275mod=g.$C({type:E});static#n=this.\u0275inj=g.G2t({imports:[Z]})}return E})()},7391:(Rt,De,c)=>{c.d(De,{Di:()=>Wt,kT:()=>Ue});var t=c(3953),r=c(1413),g=c(4412),e=c(1985),M=c(3726),G=c(983),L=c(8359),B=c(6977),A=c(5558),w=c(1594),I=c(7806);let F=(()=>{class Ae{static#e=this.\u0275fac=function(oe){return new(oe||Ae)};static#t=this.\u0275dir=t.FsC({type:Ae,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(oe,Fe){2&oe&&t.xc7("border","0")("background","transparent")("padding","0")("line-height","inherit")},standalone:!0})}return Ae})(),X=(()=>{class Ae{static#e=this.\u0275fac=function(oe){return new(oe||Ae)};static#t=this.\u0275mod=t.$C({type:Ae});static#n=this.\u0275inj=t.G2t({})}return Ae})();var V=c(5103),x=c(5154),ne=c(3801),J=c(1377),be=c(7336),Oe=c(177),he=c(1025),Ie=c(1011),me=c(4707),de=c(6042),H=c(4500),z=c(317),Z=c(6860),pe=c(8203);function E(Ae,ie){if(1&Ae&&(t.qex(0),t.nrm(1,"span",2),t.bVm()),2&Ae){const _e=ie.$implicit;t.R7$(),t.Y8G("nzType",_e)}}const S=["textarea"];function R(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"textarea",3,1),t.bIt("blur",function(){t.eBV(_e);const Fe=t.XpG();return t.Njj(Fe.confirm())}),t.k0s(),t.j41(2,"button",4),t.bIt("click",function(){t.eBV(_e);const Fe=t.XpG();return t.Njj(Fe.confirm())}),t.nrm(3,"span",5),t.k0s()}}function Y(Ae,ie){if(1&Ae&&(t.qex(0),t.nrm(1,"span",8),t.bVm()),2&Ae){const _e=ie.$implicit;t.R7$(),t.Y8G("nzType",_e)}}function se(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"button",6),t.bIt("click",function(){t.eBV(_e);const Fe=t.XpG();return t.Njj(Fe.onClick())}),t.DNE(1,Y,2,1,"ng-container",7),t.k0s()}if(2&Ae){const _e=t.XpG();t.Y8G("nzTooltipTitle",null===_e.tooltip?null:_e.tooltip||(null==_e.locale?null:_e.locale.edit)),t.R7$(),t.Y8G("nzStringTemplateOutlet",_e.icon)}}const Be=["ellipsisContainer"],Pt=["expandable"],vt=["contentTemplate"],wt=["*"],Le=Ae=>({content:Ae});function zt(Ae,ie){1&Ae&&t.SdG(0,0,["*ngIf","!content"])}function xt(Ae,ie){if(1&Ae&&(t.DNE(0,zt,1,0,"ng-content",4),t.EFF(1)),2&Ae){const _e=ie.content;t.Y8G("ngIf",!_e),t.R7$(),t.SpI(" ",_e," ")}}function st(Ae,ie){}function Ct(Ae,ie){if(1&Ae&&(t.qex(0),t.EFF(1),t.bVm()),2&Ae){const _e=t.XpG(3);t.R7$(),t.JRh(_e.nzSuffix)}}function It(Ae,ie){if(1&Ae&&(t.qex(0),t.DNE(1,st,0,0,"ng-template",8)(2,Ct,2,1,"ng-container",4),t.bVm()),2&Ae){const _e=t.XpG(2),oe=t.sdS(1);t.R7$(),t.Y8G("ngTemplateOutlet",oe)("ngTemplateOutletContext",t.eq3(3,Le,_e.nzContent)),t.R7$(),t.Y8G("ngIf",_e.nzSuffix)}}function Tt(Ae,ie){if(1&Ae&&(t.qex(0),t.EFF(1),t.bVm()),2&Ae){const _e=t.XpG(3);t.R7$(),t.JRh(_e.ellipsisStr)}}function en(Ae,ie){if(1&Ae&&(t.qex(0),t.EFF(1),t.bVm()),2&Ae){const _e=t.XpG(3);t.R7$(),t.JRh(_e.nzSuffix)}}function jt(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"a",10,3),t.bIt("click",function(){t.eBV(_e);const Fe=t.XpG(3);return t.Njj(Fe.onExpand())}),t.EFF(2),t.k0s()}if(2&Ae){const _e=t.XpG(3);t.R7$(2),t.SpI(" ",null==_e.locale?null:_e.locale.expand," ")}}function Vt(Ae,ie){if(1&Ae&&(t.nrm(0,"span",null,2),t.DNE(2,Tt,2,1,"ng-container",4)(3,en,2,1,"ng-container",4)(4,jt,3,1,"a",9)),2&Ae){const _e=t.XpG(2);t.R7$(2),t.Y8G("ngIf",_e.isEllipsis),t.R7$(),t.Y8G("ngIf",_e.nzSuffix),t.R7$(),t.Y8G("ngIf",_e.nzExpandable&&_e.isEllipsis)}}function fn(Ae,ie){if(1&Ae&&(t.qex(0),t.DNE(1,It,3,5,"ng-container",7)(2,Vt,5,3,"ng-template",null,1,t.C5r),t.bVm()),2&Ae){const _e=t.sdS(3),oe=t.XpG();t.R7$(),t.Y8G("ngIf",oe.expanded||!oe.hasOperationsWithEllipsis&&1===oe.nzEllipsisRows&&!oe.hasEllipsisObservers||oe.canCssEllipsis||oe.nzSuffix&&oe.expanded)("ngIfElse",_e)}}function Hn(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"nz-text-edit",11),t.bIt("endEditing",function(Fe){t.eBV(_e);const et=t.XpG();return t.Njj(et.onEndEditing(Fe))})("startEditing",function(){t.eBV(_e);const Fe=t.XpG();return t.Njj(Fe.onStartEditing())}),t.k0s()}if(2&Ae){const _e=t.XpG();t.Y8G("text",_e.nzContent)("icon",_e.nzEditIcon)("tooltip",_e.nzEditTooltip)}}function zn(Ae,ie){if(1&Ae){const _e=t.RV6();t.j41(0,"nz-text-copy",12),t.bIt("textCopy",function(Fe){t.eBV(_e);const et=t.XpG();return t.Njj(et.onTextCopy(Fe))}),t.k0s()}if(2&Ae){const _e=t.XpG();t.Y8G("text",_e.copyText)("tooltips",_e.nzCopyTooltips)("icons",_e.nzCopyIcons)}}let bt=(()=>{class Ae{constructor(_e,oe,Fe,et){this.host=_e,this.cdr=oe,this.clipboard=Fe,this.i18n=et,this.copied=!1,this.nativeElement=this.host.nativeElement,this.copyTooltip=null,this.copedTooltip=null,this.copyIcon="copy",this.copedIcon="check",this.destroy$=new r.B,this.icons=["copy","check"],this.textCopy=new t.bkB}ngOnInit(){this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(_e){const{tooltips:oe,icons:Fe}=_e;oe&&this.updateTooltips(),Fe&&this.updateIcons()}ngOnDestroy(){clearTimeout(this.copyId),this.destroy$.next(!0),this.destroy$.complete()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();const _e=this.text;this.textCopy.emit(_e),this.clipboard.copy(_e),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){if(null===this.tooltips)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){const[_e,oe]=this.tooltips;this.copyTooltip=_e||this.locale?.copy,this.copedTooltip=oe||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){const[_e,oe]=this.icons;this.copyIcon=_e,this.copedIcon=oe,this.cdr.markForCheck()}static#e=this.\u0275fac=function(oe){return new(oe||Ae)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(ne.B0),t.rXU(J.Og))};static#t=this.\u0275cmp=t.VBU({type:Ae,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(oe,Fe){1&oe&&(t.j41(0,"button",0),t.bIt("click",function(){return Fe.onClick()}),t.DNE(1,E,2,1,"ng-container",1),t.k0s()),2&oe&&(t.AVh("ant-typography-copy-success",Fe.copied),t.Y8G("nzTooltipTitle",Fe.copied?Fe.copedTooltip:Fe.copyTooltip),t.R7$(),t.Y8G("nzStringTemplateOutlet",Fe.copied?Fe.copedIcon:Fe.copyIcon))},dependencies:[x.Qt,x.LH,X,F,V.Y3,V.Dn,I.C,I.m],encapsulation:2,changeDetection:0})}return Ae})(),At=(()=>{class Ae{set textarea(_e){this.textarea$.next(_e)}constructor(_e,oe,Fe,et,dt){this.ngZone=_e,this.host=oe,this.cdr=Fe,this.i18n=et,this.destroy$=dt,this.editing=!1,this.icon="edit",this.startEditing=new t.bkB,this.endEditing=new t.bkB(!0),this.nativeElement=this.host.nativeElement,this.textarea$=new g.t(null),this.injector=(0,t.WQX)(t.zZn)}ngOnInit(){this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe((0,A.n)(_e=>_e?new e.c(oe=>this.ngZone.runOutsideAngular(()=>(0,M.R)(_e.nativeElement,"keydown").subscribe(oe))):G.w),(0,B.Q)(this.destroy$)).subscribe(_e=>{_e.keyCode!==be._f&&_e.keyCode!==be.Fm||this.ngZone.run(()=>{_e.keyCode===be._f?this.onCancel():this.onEnter(_e),this.cdr.markForCheck()})}),this.textarea$.pipe((0,A.n)(_e=>_e?new e.c(oe=>this.ngZone.runOutsideAngular(()=>(0,M.R)(_e.nativeElement,"input").subscribe(oe))):G.w),(0,B.Q)(this.destroy$)).subscribe(_e=>{this.currentText=_e.target.value})}onClick(){this.beforeText=this.text,this.currentText=this.beforeText,this.editing=!0,this.startEditing.emit(),this.focusAndSetValue()}confirm(){this.editing=!1,this.endEditing.emit(this.currentText)}onEnter(_e){_e.stopPropagation(),_e.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){const{injector:_e}=this;(0,t.mal)(()=>{this.textarea$.pipe((0,w.$)(oe=>null!=oe),(0,B.Q)(this.destroy$)).subscribe(oe=>{oe.nativeElement.focus(),oe.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:_e})}static#e=this.\u0275fac=function(oe){return new(oe||Ae)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(J.Og),t.rXU(he.y4))};static#t=this.\u0275cmp=t.VBU({type:Ae,selectors:[["nz-text-edit"]],viewQuery:function(oe,Fe){if(1&oe&&(t.GBs(S,5),t.GBs(Ie.c9,5)),2&oe){let et;t.mGM(et=t.lsd())&&(Fe.textarea=et.first),t.mGM(et=t.lsd())&&(Fe.autosizeDirective=et.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],standalone:!0,features:[t.Jv_([he.y4]),t.aNF],decls:3,vars:2,consts:[["notEditing",""],["textarea",""],[3,"ngIf","ngIfElse"],["nz-input","","nzAutosize","",3,"blur"],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nz-icon","","nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(oe,Fe){if(1&oe&&t.DNE(0,R,4,0,"ng-template",2)(1,se,2,2,"ng-template",null,0,t.C5r),2&oe){const et=t.sdS(2);t.Y8G("ngIf",Fe.editing)("ngIfElse",et)}},dependencies:[Oe.bT,Ie.j,Ie.Sy,Ie.c9,X,F,V.Y3,V.Dn,x.Qt,x.LH,I.C,I.m],encapsulation:2,changeDetection:0})}return Ae})(),Wt=(()=>{class Ae{get hasEllipsisObservers(){return this.nzOnEllipsis.observers.length>0}get canCssEllipsis(){return this.nzEllipsis&&this.cssEllipsis&&!this.expanded&&!this.hasEllipsisObservers}get hasOperationsWithEllipsis(){return(this.nzCopyable||this.nzEditable||this.nzExpandable)&&this.nzEllipsis}get copyText(){return"string"==typeof this.nzCopyText?this.nzCopyText:this.nzContent}constructor(_e,oe,Fe,et,dt,Kt,cn,Tn,Wn,kn){this.nzConfigService=_e,this.host=oe,this.cdr=Fe,this.viewContainerRef=et,this.renderer=dt,this.platform=Kt,this.i18n=cn,this.resizeService=Wn,this.directionality=kn,this._nzModuleName="typography",this.nzCopyable=!1,this.nzEditable=!1,this.nzDisabled=!1,this.nzExpandable=!1,this.nzEllipsis=!1,this.nzCopyTooltips=void 0,this.nzCopyIcons=["copy","check"],this.nzEditTooltip=void 0,this.nzEditIcon="edit",this.nzEllipsisRows=1,this.nzContentChange=new t.bkB,this.nzCopy=new t.bkB,this.nzExpandChange=new t.bkB,this.nzOnEllipsis=new t.bkB,this.expandableBtnElementCache=null,this.editing=!1,this.cssEllipsis=!1,this.isEllipsis=!0,this.expanded=!1,this.ellipsisStr="...",this.dir="ltr",this.viewInit=!1,this.rfaId=-1,this.destroy$=new r.B,this.windowResizeSubscription=L.yU.EMPTY,this.document=Tn}onTextCopy(_e){this.nzCopy.emit(_e)}onStartEditing(){this.editing=!0}onEndEditing(_e){this.editing=!1,this.nzContentChange.emit(_e),this.nzContent===_e&&this.renderOnNextFrame(),this.cdr.markForCheck()}onExpand(){this.isEllipsis=!1,this.expanded=!0,this.nzExpandChange.emit(),this.nzOnEllipsis.emit(!1)}canUseCSSEllipsis(){return!(this.nzEditable||this.nzCopyable||this.nzExpandable||this.nzSuffix||this.hasEllipsisObservers)&&(0,z.Fq)(1===this.nzEllipsisRows?"textOverflow":"webkitLineClamp")}renderOnNextFrame(){(0,H.F)(this.rfaId),this.viewInit&&this.nzEllipsis&&!(this.nzEllipsisRows<0)&&!this.expanded&&this.platform.isBrowser&&(this.rfaId=(0,H.j)(()=>{this.syncEllipsis()}))}getOriginContentViewRef(){const _e=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return _e.detectChanges(),{viewRef:_e,removeView:()=>{this.viewContainerRef.remove(this.viewContainerRef.indexOf(_e))}}}syncEllipsis(){if(this.cssEllipsis)return;const{viewRef:_e,removeView:oe}=this.getOriginContentViewRef(),Fe=[this.textCopyRef,this.textEditRef].filter(Wn=>Wn&&Wn.nativeElement).map(Wn=>Wn.nativeElement),et=this.getExpandableBtnElement();et&&Fe.push(et);const{contentNodes:dt,text:Kt,ellipsis:cn}=(0,z.xP)(this.host.nativeElement,this.nzEllipsisRows,_e.rootNodes,Fe,this.ellipsisStr,this.nzSuffix);oe(),this.ellipsisText=Kt,cn!==this.isEllipsis&&(this.isEllipsis=cn,this.nzOnEllipsis.emit(cn));const Tn=this.ellipsisContainer.nativeElement;for(;Tn.firstChild;)this.renderer.removeChild(Tn,Tn.firstChild);dt.forEach(Wn=>{this.renderer.appendChild(Tn,Wn.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){const _e=this.locale?this.locale.expand:"",oe=this.expandableBtnElementCache;if(!oe||oe.innerText===_e){const Fe=this.document.createElement("a");Fe.className="ant-typography-expand",Fe.innerText=_e,this.expandableBtnElementCache=Fe}return this.expandableBtnElementCache}return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.subscribe().pipe((0,B.Q)(this.destroy$)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe((0,B.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe((0,B.Q)(this.destroy$)).subscribe(_e=>{this.dir=_e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(_e){const{nzCopyable:oe,nzEditable:Fe,nzExpandable:et,nzEllipsis:dt,nzContent:Kt,nzEllipsisRows:cn,nzSuffix:Tn}=_e;(oe||Fe||et||dt||Kt||cn||Tn)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()}static#e=this.\u0275fac=function(oe){return new(oe||Ae)(t.rXU(de.yx),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(t.c1b),t.rXU(t.sFG),t.rXU(Z.OD),t.rXU(J.Og),t.rXU(Oe.qQ),t.rXU(he.cB),t.rXU(pe.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ae,selectors:[["nz-typography"],["","nz-typography",""],["p","nz-paragraph",""],["span","nz-text",""],["h1","nz-title",""],["h2","nz-title",""],["h3","nz-title",""],["h4","nz-title",""]],viewQuery:function(oe,Fe){if(1&oe&&(t.GBs(At,5),t.GBs(bt,5),t.GBs(Be,5),t.GBs(Pt,5),t.GBs(vt,5)),2&oe){let et;t.mGM(et=t.lsd())&&(Fe.textEditRef=et.first),t.mGM(et=t.lsd())&&(Fe.textCopyRef=et.first),t.mGM(et=t.lsd())&&(Fe.ellipsisContainer=et.first),t.mGM(et=t.lsd())&&(Fe.expandableBtn=et.first),t.mGM(et=t.lsd())&&(Fe.contentTemplate=et.first)}},hostVars:26,hostBindings:function(oe,Fe){2&oe&&(t.xc7("-webkit-line-clamp",Fe.canCssEllipsis&&Fe.nzEllipsisRows>1?Fe.nzEllipsisRows:null),t.AVh("ant-typography",!Fe.editing)("ant-typography-rtl","rtl"===Fe.dir)("ant-typography-edit-content",Fe.editing)("ant-typography-secondary","secondary"===Fe.nzType)("ant-typography-warning","warning"===Fe.nzType)("ant-typography-danger","danger"===Fe.nzType)("ant-typography-success","success"===Fe.nzType)("ant-typography-disabled",Fe.nzDisabled)("ant-typography-ellipsis",Fe.nzEllipsis&&!Fe.expanded)("ant-typography-single-line",Fe.nzEllipsis&&1===Fe.nzEllipsisRows)("ant-typography-ellipsis-single-line",Fe.canCssEllipsis&&1===Fe.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",Fe.canCssEllipsis&&Fe.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",t.L39],nzEditable:[2,"nzEditable","nzEditable",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzExpandable:[2,"nzExpandable","nzExpandable",t.L39],nzEllipsis:[2,"nzEllipsis","nzEllipsis",t.L39],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",t.Udg],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:wt,decls:5,vars:3,consts:[["contentTemplate",""],["jsEllipsis",""],["ellipsisContainer",""],["expandable",""],[4,"ngIf"],[3,"text","icon","tooltip","endEditing","startEditing",4,"ngIf"],[3,"text","tooltips","icons","textCopy",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-typography-expand",3,"click",4,"ngIf"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(oe,Fe){1&oe&&(t.NAR(),t.DNE(0,xt,2,2,"ng-template",null,0,t.C5r)(2,fn,4,2,"ng-container",4)(3,Hn,1,3,"nz-text-edit",5)(4,zn,1,3,"nz-text-copy",6)),2&oe&&(t.R7$(2),t.Y8G("ngIf",!Fe.editing),t.R7$(),t.Y8G("ngIf",Fe.nzEditable),t.R7$(),t.Y8G("ngIf",Fe.nzCopyable&&!Fe.editing))},dependencies:[Oe.bT,Oe.T3,At,bt],encapsulation:2,changeDetection:0})}return(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzCopyTooltips",void 0),(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzCopyIcons",void 0),(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzEditTooltip",void 0),(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzEditIcon",void 0),(0,me.Cg)([(0,de.H4)()],Ae.prototype,"nzEllipsisRows",void 0),Ae})(),Ue=(()=>{class Ae{static#e=this.\u0275fac=function(oe){return new(oe||Ae)};static#t=this.\u0275mod=t.$C({type:Ae});static#n=this.\u0275inj=t.G2t({imports:[Wt,bt,At]})}return Ae})()},776:(Rt,De,c)=>{c.d(De,{J:()=>A,s:()=>w});var t=c(3953),r=c(177);const g=I=>["segment",I],e=(I,F)=>({"segment-main":!0,expandable:I,expanded:F});function M(I,F){1&I&&t.nrm(0,"div",9)}function G(I,F){if(1&I&&(t.j41(0,"span",10),t.EFF(1),t.k0s()),2&I){const X=t.XpG().$implicit;t.R7$(),t.JRh(X.description)}}function L(I,F){if(1&I&&(t.j41(0,"section",11),t.nrm(1,"ngx-json-viewer",12),t.k0s()),2&I){const X=t.XpG().$implicit,V=t.XpG();t.R7$(),t.Y8G("json",X.value)("expanded",V.expanded)("depth",V.depth)("_currentDepth",V._currentDepth+1)}}function B(I,F){if(1&I){const X=t.RV6();t.j41(0,"section",2)(1,"section",3),t.bIt("click",function(){const x=t.eBV(X).$implicit,ne=t.XpG();return t.Njj(ne.toggle(x))}),t.DNE(2,M,1,0,"div",4),t.j41(3,"span",5),t.EFF(4),t.k0s(),t.j41(5,"span",6),t.EFF(6,": "),t.k0s(),t.DNE(7,G,2,1,"span",7),t.k0s(),t.DNE(8,L,2,4,"section",8),t.k0s()}if(2&I){const X=F.$implicit,V=t.XpG();t.Y8G("ngClass",t.eq3(6,g,"segment-type-"+X.type)),t.R7$(),t.Y8G("ngClass",t.l_i(8,e,V.isExpandable(X),X.expanded)),t.R7$(),t.Y8G("ngIf",V.isExpandable(X)),t.R7$(2),t.JRh(X.key),t.R7$(3),t.Y8G("ngIf",!X.expanded||!V.isExpandable(X)),t.R7$(),t.Y8G("ngIf",X.expanded&&V.isExpandable(X))}}let A=(()=>{class I{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(X=>{this.segments.push(this.parseKeyValue(X,this.json[X]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(X){return"object"===X.type||"array"===X.type}toggle(X){this.isExpandable(X)&&(X.expanded=!X.expanded)}parseKeyValue(X,V){const x={key:X,value:V,type:void 0,description:""+V,expanded:this.isExpanded()};switch(typeof x.value){case"number":x.type="number";break;case"boolean":x.type="boolean";break;case"function":x.type="function";break;case"string":x.type="string",x.description='"'+x.value+'"';break;case"undefined":x.type="undefined",x.description="undefined";break;case"object":null===x.value?(x.type="null",x.description="null"):Array.isArray(x.value)?(x.type="array",x.description="Array["+x.value.length+"] "+JSON.stringify(x.value)):x.value instanceof Date?x.type="date":(x.type="object",x.description="Object "+JSON.stringify(x.value))}return x}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(X){const V=new WeakMap;return function x(ne,J){let be,Oe;return"object"!=typeof ne||null===ne||ne instanceof Boolean||ne instanceof Date||ne instanceof Number||ne instanceof RegExp||ne instanceof String?ne:(be=V.get(ne),void 0!==be?{$ref:be}:(V.set(ne,J),Array.isArray(ne)?(Oe=[],ne.forEach(function(he,Ie){Oe[Ie]=x(he,J+"["+Ie+"]")})):(Oe={},Object.keys(ne).forEach(function(he){Oe[he]=x(ne[he],J+"["+JSON.stringify(he)+"]")})),Oe))}(X,"$")}}return I.\u0275fac=function(X){return new(X||I)},I.\u0275cmp=t.VBU({type:I,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[t.OA$],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"click","ngClass"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(X,V){1&X&&(t.j41(0,"section",0),t.DNE(1,B,9,11,"section",1),t.k0s()),2&X&&(t.R7$(),t.Y8G("ngForOf",V.segments))},dependencies:[r.YU,r.Sq,r.bT,I],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),I})(),w=(()=>{class I{}return I.\u0275fac=function(X){return new(X||I)},I.\u0275mod=t.$C({type:I}),I.\u0275inj=t.G2t({imports:[r.MD]}),I})()},2081:(Rt,De,c)=>{c.d(De,{DX:()=>ne,yN:()=>At,LV:()=>Ue});const t=()=>Object.create(null),{forEach:r,slice:g}=Array.prototype,{hasOwnProperty:e}=Object.prototype;class M{constructor(ie=!0,_e=t){this.weakness=ie,this.makeData=_e}lookup(...ie){return this.lookupArray(ie)}lookupArray(ie){let _e=this;return r.call(ie,oe=>_e=_e.getChildTrie(oe)),e.call(_e,"data")?_e.data:_e.data=this.makeData(g.call(ie))}peek(...ie){return this.peekArray(ie)}peekArray(ie){let _e=this;for(let oe=0,Fe=ie.length;_e&&oeie.push(_e)),ie};function E(Ae){const{unsubscribe:ie}=Ae;"function"==typeof ie&&(Ae.unsubscribe=void 0,ie())}const S=[],R=100;function Y(Ae,ie){if(!Ae)throw new Error(ie||"assertion failure")}function se(Ae,ie){const _e=Ae.length;return _e>0&&_e===ie.length&&Ae[_e-1]===ie[_e-1]}function Be(Ae){switch(Ae.length){case 0:throw new Error("unknown value");case 1:return Ae[0];case 2:throw Ae[1]}}function Pt(Ae){return Ae.slice(0)}let vt=(()=>{class Ae{constructor(_e){this.fn=_e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Ae.count}peek(){if(1===this.value.length&&!xt(this))return wt(this),this.value[0]}recompute(_e){return Y(!this.recomputing,"already recomputing"),wt(this),xt(this)?function Le(Ae,ie){return fn(Ae),H.withValue(Ae,zt,[Ae,ie]),function zn(Ae,ie){if("function"==typeof Ae.subscribe)try{E(Ae),Ae.unsubscribe=Ae.subscribe.apply(null,ie)}catch{return Ae.setDirty(),!1}return!0}(Ae,ie)&&function st(Ae){Ae.dirty=!1,!xt(Ae)&&It(Ae)}(Ae),Be(Ae.value)}(this,_e):Be(this.value)}setDirty(){this.dirty||(this.dirty=!0,Ct(this),E(this))}dispose(){this.setDirty(),fn(this),Tt(this,(_e,oe)=>{_e.setDirty(),Hn(_e,this)})}forget(){this.dispose()}dependOn(_e){_e.add(this),this.deps||(this.deps=S.pop()||new Set),this.deps.add(_e)}forgetDeps(){this.deps&&(pe(this.deps).forEach(_e=>_e.delete(this)),this.deps.clear(),S.push(this.deps),this.deps=null)}}return Ae.count=0,Ae})();function wt(Ae){const ie=H.getValue();if(ie)return Ae.parents.add(ie),ie.childValues.has(Ae)||ie.childValues.set(Ae,[]),xt(Ae)?en(ie,Ae):jt(ie,Ae),ie}function zt(Ae,ie){Ae.recomputing=!0;const{normalizeResult:_e}=Ae;let oe;_e&&1===Ae.value.length&&(oe=Pt(Ae.value)),Ae.value.length=0;try{if(Ae.value[0]=Ae.fn.apply(null,ie),_e&&oe&&!se(oe,Ae.value))try{Ae.value[0]=_e(Ae.value[0],oe[0])}catch{}}catch(Fe){Ae.value[1]=Fe}Ae.recomputing=!1}function xt(Ae){return Ae.dirty||!(!Ae.dirtyChildren||!Ae.dirtyChildren.size)}function Ct(Ae){Tt(Ae,en)}function It(Ae){Tt(Ae,jt)}function Tt(Ae,ie){const _e=Ae.parents.size;if(_e){const oe=pe(Ae.parents);for(let Fe=0;Fe<_e;++Fe)ie(oe[Fe],Ae)}}function en(Ae,ie){Y(Ae.childValues.has(ie)),Y(xt(ie));const _e=!xt(Ae);if(Ae.dirtyChildren){if(Ae.dirtyChildren.has(ie))return}else Ae.dirtyChildren=S.pop()||new Set;Ae.dirtyChildren.add(ie),_e&&Ct(Ae)}function jt(Ae,ie){Y(Ae.childValues.has(ie)),Y(!xt(ie));const _e=Ae.childValues.get(ie);0===_e.length?Ae.childValues.set(ie,Pt(ie.value)):se(_e,ie.value)||Ae.setDirty(),Vt(Ae,ie),!xt(Ae)&&It(Ae)}function Vt(Ae,ie){const _e=Ae.dirtyChildren;_e&&(_e.delete(ie),0===_e.size&&(S.length0&&Ae.childValues.forEach((ie,_e)=>{Hn(Ae,_e)}),Ae.forgetDeps(),Y(null===Ae.dirtyChildren)}function Hn(Ae,ie){ie.parents.delete(Ae),Ae.childValues.delete(ie),Vt(Ae,ie)}const bt={setDirty:!0,dispose:!0,forget:!0};function At(Ae){const ie=new Map,_e=Ae&&Ae.subscribe;function oe(Fe){const et=H.getValue();if(et){let dt=ie.get(Fe);dt||ie.set(Fe,dt=new Set),et.dependOn(dt),"function"==typeof _e&&(E(dt),dt.unsubscribe=_e(Fe))}}return oe.dirty=function(et,dt){const Kt=ie.get(et);if(Kt){const cn=dt&&Z.call(bt,dt)?dt:"setDirty";pe(Kt).forEach(Tn=>Tn[cn]()),ie.delete(et),E(Kt)}},oe}let Et;function Ot(...Ae){return(Et||(Et=new M("function"==typeof WeakMap))).lookupArray(Ae)}const Wt=new Set;function Ue(Ae,{max:ie=Math.pow(2,16),keyArgs:_e,makeCacheKey:oe=Ot,normalizeResult:Fe,subscribe:et,cache:dt=L.C}=Object.create(null)){const Kt="function"==typeof dt?new dt(ie,Vn=>Vn.dispose()):dt,cn=function(){const Vn=oe.apply(null,_e?_e.apply(null,arguments):arguments);if(void 0===Vn)return Ae.apply(null,arguments);let Un=Kt.get(Vn);Un||(Kt.set(Vn,Un=new vt(Ae)),Un.normalizeResult=Fe,Un.subscribe=et,Un.forget=()=>Kt.delete(Vn));const dn=Un.recompute(Array.prototype.slice.call(arguments));return Kt.set(Vn,Un),Wt.add(Kt),H.hasValue()||(Wt.forEach(qt=>qt.clean()),Wt.clear()),dn};function Tn(Vn){const Un=Vn&&Kt.get(Vn);Un&&Un.setDirty()}function Wn(Vn){const Un=Vn&&Kt.get(Vn);if(Un)return Un.peek()}function kn(Vn){return!!Vn&&Kt.delete(Vn)}return Object.defineProperty(cn,"size",{get:()=>Kt.size,configurable:!1,enumerable:!1}),Object.freeze(cn.options={max:ie,keyArgs:_e,makeCacheKey:oe,normalizeResult:Fe,subscribe:et,cache:Kt}),cn.dirtyKey=Tn,cn.dirty=function(){Tn(oe.apply(null,arguments))},cn.peekKey=Wn,cn.peek=function(){return Wn(oe.apply(null,arguments))},cn.forgetKey=kn,cn.forget=function(){return kn(oe.apply(null,arguments))},cn.makeCacheKey=oe,cn.getKey=_e?function(){return oe.apply(null,_e.apply(null,arguments))}:oe,Object.freeze(cn)}},7994:(Rt,De,c)=>{function g(z,Z){(null==Z||Z>z.length)&&(Z=z.length);for(var pe=0,E=new Array(Z);peH});var G=function(){return"function"==typeof Symbol},L=function(z){return G()&&!!Symbol[z]},B=function(z){return L(z)?Symbol[z]:"@@"+z};G()&&!L("observable")&&(Symbol.observable=Symbol("observable"));var A=B("iterator"),w=B("observable"),I=B("species");function F(z,Z){var pe=z[Z];if(null!=pe){if("function"!=typeof pe)throw new TypeError(pe+" is not a function");return pe}}function X(z){var Z=z.constructor;return void 0!==Z&&null===(Z=Z[I])&&(Z=void 0),void 0!==Z?Z:H}function x(z){x.log?x.log(z):setTimeout(function(){throw z})}function ne(z){Promise.resolve().then(function(){try{z()}catch(Z){x(Z)}})}function J(z){var Z=z._cleanup;if(void 0!==Z&&(z._cleanup=void 0,Z))try{if("function"==typeof Z)Z();else{var pe=F(Z,"unsubscribe");pe&&pe.call(Z)}}catch(E){x(E)}}function be(z){z._observer=void 0,z._queue=void 0,z._state="closed"}function he(z,Z,pe){z._state="running";var E=z._observer;try{var S=F(E,Z);switch(Z){case"next":S&&S.call(E,pe);break;case"error":if(be(z),!S)throw pe;S.call(E,pe);break;case"complete":be(z),S&&S.call(E)}}catch(R){x(R)}"closed"===z._state?J(z):"running"===z._state&&(z._state="ready")}function Ie(z,Z,pe){if("closed"!==z._state){if("buffering"===z._state)return void z._queue.push({type:Z,value:pe});if("ready"!==z._state)return z._state="buffering",z._queue=[{type:Z,value:pe}],void ne(function(){return function Oe(z){var Z=z._queue;if(Z){z._queue=void 0,z._state="ready";for(var pe=0;pe1,se=!1,Pt=arguments[1];return new R(function(vt){return S.subscribe({next:function(wt){var Le=!se;if(se=!0,!Le||Y)try{Pt=E(Pt,wt)}catch(zt){return vt.error(zt)}else Pt=wt},error:function(wt){vt.error(wt)},complete:function(){if(!se&&!Y)return vt.error(new TypeError("Cannot reduce an empty sequence"));vt.next(Pt),vt.complete()}})})},Z.concat=function(){for(var E=this,S=arguments.length,R=new Array(S),Y=0;Y=0&&se.splice(Le,1),Pt()}});se.push(wt)},error:function(vt){Y.error(vt)},complete:function(){Pt()}});function Pt(){Be.closed&&0===se.length&&Y.complete()}return function(){se.forEach(function(vt){return vt.unsubscribe()}),Be.unsubscribe()}})},Z[w]=function(){return this},z.from=function(E){var S="function"==typeof this?this:z;if(null==E)throw new TypeError(E+" is not an object");var R=F(E,w);if(R){var Y=R.call(E);if(Object(Y)!==Y)throw new TypeError(Y+" is not an object");return function V(z){return z instanceof H}(Y)&&Y.constructor===S?Y:new S(function(se){return Y.subscribe(se)})}if(L("iterator")&&(R=F(E,A)))return new S(function(se){ne(function(){if(!se.closed){for(var Pt,Be=function t(z,Z){var pe=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(pe)return(pe=pe.call(z)).next.bind(pe);if(Array.isArray(z)||(pe=function r(z,Z){if(z){if("string"==typeof z)return g(z,Z);var pe=Object.prototype.toString.call(z).slice(8,-1);if("Object"===pe&&z.constructor&&(pe=z.constructor.name),"Map"===pe||"Set"===pe)return Array.from(z);if("Arguments"===pe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return g(z,Z)}}(z))||Z&&z&&"number"==typeof z.length){pe&&(z=pe);var E=0;return function(){return E>=z.length?{done:!0}:{done:!1,value:z[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(R.call(E));!(Pt=Be()).done;)if(se.next(Pt.value),se.closed)return;se.complete()}})});if(Array.isArray(E))return new S(function(se){ne(function(){if(!se.closed){for(var Be=0;Be{function M(wt,Le,zt,xt){var It,st=arguments.length,Ct=st<3?Le:null===xt?xt=Object.getOwnPropertyDescriptor(Le,zt):xt;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ct=Reflect.decorate(wt,Le,zt,xt);else for(var Tt=wt.length-1;Tt>=0;Tt--)(It=wt[Tt])&&(Ct=(st<3?It(Ct):st>3?It(Le,zt,Ct):It(Le,zt))||Ct);return st>3&&Ct&&Object.defineProperty(Le,zt,Ct),Ct}c.d(De,{Cg:()=>M}),"function"==typeof SuppressedError&&SuppressedError}},Rt=>{Rt(Rt.s=3272)}]); \ No newline at end of file diff --git a/server/public/main.f2bfec3c3e028cf3.js b/server/public/main.f2bfec3c3e028cf3.js new file mode 100644 index 000000000..554fbcff8 --- /dev/null +++ b/server/public/main.f2bfec3c3e028cf3.js @@ -0,0 +1,5964 @@ +"use strict";(self.webpackChunkmain=self.webpackChunkmain||[]).push([[8792],{4709:($t,De,a)=>{a.d(De,{H:()=>k,K6:()=>m,Me:()=>R,Ob:()=>$,YL:()=>z,_:()=>r,g8:()=>Q,n6:()=>P,oS:()=>N,wE:()=>j});var t=a(9785);function r(x,oe,ee){return{r:255*(0,t.Cg)(x,255),g:255*(0,t.Cg)(oe,255),b:255*(0,t.Cg)(ee,255)}}function m(x,oe,ee){x=(0,t.Cg)(x,255),oe=(0,t.Cg)(oe,255),ee=(0,t.Cg)(ee,255);var Ee=Math.max(x,oe,ee),Ie=Math.min(x,oe,ee),ce=0,Pe=0,ve=(Ee+Ie)/2;if(Ee===Ie)Pe=0,ce=0;else{var pe=Ee-Ie;switch(Pe=ve>.5?pe/(2-Ee-Ie):pe/(Ee+Ie),Ee){case x:ce=(oe-ee)/pe+(oe1&&(ee-=1),ee<1/6?x+6*ee*(oe-x):ee<.5?oe:ee<2/3?x+(oe-x)*(2/3-ee)*6:x}function z(x,oe,ee){var Ee,Ie,ce;if(x=(0,t.Cg)(x,360),oe=(0,t.Cg)(oe,100),ee=(0,t.Cg)(ee,100),0===oe)Ie=ee,ce=ee,Ee=ee;else{var Pe=ee<.5?ee*(1+oe):ee+oe-ee*oe,ve=2*ee-Pe;Ee=e(ve,Pe,x+1/3),Ie=e(ve,Pe,x),ce=e(ve,Pe,x-1/3)}return{r:255*Ee,g:255*Ie,b:255*ce}}function j(x,oe,ee){x=(0,t.Cg)(x,255),oe=(0,t.Cg)(oe,255),ee=(0,t.Cg)(ee,255);var Ee=Math.max(x,oe,ee),Ie=Math.min(x,oe,ee),ce=0,Pe=Ee,ve=Ee-Ie,pe=0===Ee?0:ve/Ee;if(Ee===Ie)ce=0;else{switch(Ee){case x:ce=(oe-ee)/ve+(oe>16,g:(65280&x)>>8,b:255&x}}},6681:($t,De,a)=>{a.d(De,{D:()=>t});var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},4215:($t,De,a)=>{a.d(De,{RO:()=>e});var t=a(4709),r=a(6681),m=a(9785);function e(Q){var N={r:0,g:0,b:0},x=1,oe=null,ee=null,Ee=null,Ie=!1,ce=!1;return"string"==typeof Q&&(Q=function w(Q){if(0===(Q=Q.trim().toLowerCase()).length)return!1;var N=!1;if(r.D[Q])Q=r.D[Q],N=!0;else if("transparent"===Q)return{r:0,g:0,b:0,a:0,format:"name"};var x=I.rgb.exec(Q);return x?{r:x[1],g:x[2],b:x[3]}:(x=I.rgba.exec(Q))?{r:x[1],g:x[2],b:x[3],a:x[4]}:(x=I.hsl.exec(Q))?{h:x[1],s:x[2],l:x[3]}:(x=I.hsla.exec(Q))?{h:x[1],s:x[2],l:x[3],a:x[4]}:(x=I.hsv.exec(Q))?{h:x[1],s:x[2],v:x[3]}:(x=I.hsva.exec(Q))?{h:x[1],s:x[2],v:x[3],a:x[4]}:(x=I.hex8.exec(Q))?{r:(0,t.g8)(x[1]),g:(0,t.g8)(x[2]),b:(0,t.g8)(x[3]),a:(0,t.n6)(x[4]),format:N?"name":"hex8"}:(x=I.hex6.exec(Q))?{r:(0,t.g8)(x[1]),g:(0,t.g8)(x[2]),b:(0,t.g8)(x[3]),format:N?"name":"hex"}:(x=I.hex4.exec(Q))?{r:(0,t.g8)(x[1]+x[1]),g:(0,t.g8)(x[2]+x[2]),b:(0,t.g8)(x[3]+x[3]),a:(0,t.n6)(x[4]+x[4]),format:N?"name":"hex8"}:!!(x=I.hex3.exec(Q))&&{r:(0,t.g8)(x[1]+x[1]),g:(0,t.g8)(x[2]+x[2]),b:(0,t.g8)(x[3]+x[3]),format:N?"name":"hex"}}(Q)),"object"==typeof Q&&(P(Q.r)&&P(Q.g)&&P(Q.b)?(N=(0,t._)(Q.r,Q.g,Q.b),Ie=!0,ce="%"===String(Q.r).substr(-1)?"prgb":"rgb"):P(Q.h)&&P(Q.s)&&P(Q.v)?(oe=(0,m.Px)(Q.s),ee=(0,m.Px)(Q.v),N=(0,t.Me)(Q.h,oe,ee),Ie=!0,ce="hsv"):P(Q.h)&&P(Q.s)&&P(Q.l)&&(oe=(0,m.Px)(Q.s),Ee=(0,m.Px)(Q.l),N=(0,t.YL)(Q.h,oe,Ee),Ie=!0,ce="hsl"),Object.prototype.hasOwnProperty.call(Q,"a")&&(x=Q.a)),x=(0,m.TV)(x),{ok:Ie,format:Q.format||ce,r:Math.min(255,Math.max(N.r,0)),g:Math.min(255,Math.max(N.g,0)),b:Math.min(255,Math.max(N.b,0)),a:x}}var R="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),$="[\\s|\\(]+(".concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")\\s*\\)?"),k="[\\s|\\(]+(".concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")[,|\\s]+(").concat(R,")\\s*\\)?"),I={CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+$),rgba:new RegExp("rgba"+k),hsl:new RegExp("hsl"+$),hsla:new RegExp("hsla"+k),hsv:new RegExp("hsv"+$),hsva:new RegExp("hsva"+k),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function P(Q){return!!I.CSS_UNIT.exec(String(Q))}},9785:($t,De,a)=>{function t($,k){(function m($){return"string"==typeof $&&-1!==$.indexOf(".")&&1===parseFloat($)})($)&&($="100%");var I=function e($){return"string"==typeof $&&-1!==$.indexOf("%")}($);return $=360===k?$:Math.min(k,Math.max(0,parseFloat($))),I&&($=parseInt(String($*k),10)/100),Math.abs($-k)<1e-6?1:$=360===k?($<0?$%k+k:$%k)/parseFloat(String(k)):$%k/parseFloat(String(k))}function r($){return Math.min(1,Math.max(0,$))}function z($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function j($){return $<=1?"".concat(100*Number($),"%"):$}function R($){return 1===$.length?"0"+$:String($)}a.d(De,{Cg:()=>t,J$:()=>r,Px:()=>j,TV:()=>z,wl:()=>R})},6726:($t,De,a)=>{a.d(De,{X:()=>T});var t=a(3953),r=a(177),m=a(1188),e=a(5103),z=a(5699),j=a(1236),R=a(9199),$=a(6354),k=a(5964),I=a(9145),w=a(5703),P=a(2e3),Q=a(7679),N=a(1774),x=a(3075);function oe(D,A){if(1&D&&(t.nrm(0,"i",9),t.nI1(1,"entityColor"),t.EFF(2)),2&D){const X=t.XpG().ngIf;t.Y8G("nzTwotoneColor",t.bMT(1,2,"ClinicalTrial")),t.R7$(2),t.SpI(" ",X.nctId," ")}}function ee(D,A){if(1&D&&(t.j41(0,"cvc-link-tag",10),t.EFF(1," View on clinicaltrials.gov "),t.k0s()),2&D){const X=t.XpG().ngIf;t.Y8G("href",X.url)}}function Ee(D,A){if(1&D&&(t.qex(0),t.j41(1,"nz-card",4),t.DNE(2,oe,3,4,"ng-template",null,0,t.C5r)(4,ee,2,1,"ng-template",null,1,t.C5r),t.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),t.EFF(8),t.k0s(),t.j41(9,"nz-descriptions-item",7),t.EFF(10),t.k0s(),t.j41(11,"nz-descriptions-item",8),t.EFF(12),t.k0s()()(),t.bVm()),2&D){const X=A.ngIf,se=t.sdS(3),je=t.sdS(5);t.R7$(),t.Y8G("nzTitle",se)("nzExtra",je),t.R7$(5),t.Y8G("nzColumn",2),t.R7$(2),t.SpI(" ",X.name," "),t.R7$(2),t.SpI(" ",X.sourceCount," "),t.R7$(2),t.SpI(" ",X.evidenceCount," ")}}let Ie=(()=>{class D{constructor(X){this.gql=X}ngOnInit(){if(null==this.clinicalTrialId)throw new Error("cvc-clinical-trial-popover requires valid clinicalTrialId input.");this.clinicalTrial$=this.gql.watch({clinicalTrialId:this.clinicalTrialId}).valueChanges.pipe((0,$.T)(({data:X})=>X?.clinicalTrials.edges[0]?.node),(0,k.p)(R.kP))}static#e=this.\u0275fac=function(se){return new(se||D)(t.rXU(I.hzv))};static#t=this.\u0275cmp=t.VBU({type:D,selectors:[["cvc-clinical-trial-popover"]],inputs:{clinicalTrialId:"clinicalTrialId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2"],["nzTitle","Sources","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"],[3,"href"]],template:function(se,je){1&se&&(t.j41(0,"div",2),t.DNE(1,Ee,13,6,"ng-container",3),t.nI1(2,"ngrxPush"),t.k0s()),2&se&&(t.R7$(),t.Y8G("ngIf",t.bMT(2,1,je.clinicalTrial$)))},dependencies:[r.bT,w.cK,e.Dn,P.xA,P.gr,Q.a,N.L9,x.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return D})();function ce(D,A){}function Pe(D,A){if(1&D&&(t.qex(0),t.j41(1,"a",5),t.DNE(2,ce,0,0,"ng-template",6),t.k0s(),t.bVm()),2&D){const X=t.XpG(),se=t.sdS(2);t.R7$(),t.Y8G("routerLink",X.clinicalTrial.link),t.R7$(),t.Y8G("ngTemplateOutlet",se)}}function ve(D,A){}function pe(D,A){if(1&D&&t.nrm(0,"cvc-clinical-trial-popover",8),2&D){const X=t.XpG(2);t.Y8G("clinicalTrialId",X.clinicalTrial.id)}}function U(D,A){if(1&D&&(t.j41(0,"nz-tag",7),t.DNE(1,ve,0,0,"ng-template",6),t.k0s(),t.DNE(2,pe,1,1,"ng-template",null,3,t.C5r)),2&D){const X=t.sdS(3),se=t.XpG(),je=t.sdS(6);t.Y8G("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",X)("nzPopoverTrigger",se.enablePopover?"hover":null),t.R7$(),t.Y8G("ngTemplateOutlet",je)}}function M(D,A){}function te(D,A){if(1&D&&t.DNE(0,M,0,0,"ng-template",6),2&D){t.XpG();const X=t.sdS(2);t.Y8G("ngTemplateOutlet",X)}}function ge(D,A){if(1&D&&(t.nrm(0,"i",9),t.nI1(1,"entityColor"),t.EFF(2)),2&D){const X=t.XpG();t.Y8G("nzTwotoneColor",t.bMT(1,2,"ClinicalTrial")),t.R7$(2),t.SpI(" ",X.clinicalTrial.nctId,"\n")}}let T=(()=>{class D{set clinicalTrial(X){if(!X)throw new Error("clinical-trial-tag clinicalTrial Input requires LinkableClinicalTrial.");this._clinicalTrial=X}get clinicalTrial(){return this._clinicalTrial}constructor(){this.linked=!0,this.enablePopover=!0}static#e=this.\u0275fac=function(se){return new(se||D)};static#t=this.\u0275cmp=t.VBU({type:D,selectors:[["cvc-clinical-trial-tag"]],inputs:{clinicalTrial:"clinicalTrial",linked:"linked",enablePopover:"enablePopover"},decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["clinicalTrialPopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger"],[3,"clinicalTrialId"],["nz-icon","","nzTheme","twotone","nzType","civic-clinicaltrial",3,"nzTwotoneColor"]],template:function(se,je){if(1&se&&t.DNE(0,Pe,3,2,"ng-container",4)(1,U,4,4,"ng-template",null,0,t.C5r)(3,te,1,1,"ng-template",null,1,t.C5r)(5,ge,3,4,"ng-template",null,2,t.C5r),2&se){const Bt=t.sdS(4);t.Y8G("ngIf",je.linked)("ngIfElse",Bt)}},dependencies:[r.bT,r.T3,m.Wk,e.Dn,z.s,j.L_,Ie,x.R],styles:["[_nghost-%COMP%]{display:block}"]})}return D})()},9619:($t,De,a)=>{a.d(De,{u:()=>P});var t=a(177),r=a(1188),m=a(5699),e=a(1236),z=a(7054),j=a(4917),R=a(5703),$=a(2e3),k=a(5103),I=a(3953);let w=(()=>{class Q{static#e=this.\u0275fac=function(oe){return new(oe||Q)};static#t=this.\u0275mod=I.$C({type:Q});static#n=this.\u0275inj=I.G2t({imports:[t.MD,R.Ti,k.Y3,$.WF,z.L,j.i]})}return Q})(),P=(()=>{class Q{static#e=this.\u0275fac=function(oe){return new(oe||Q)};static#t=this.\u0275mod=I.$C({type:Q});static#n=this.\u0275inj=I.G2t({imports:[t.MD,r.iI,k.Y3,m.T,e.MC,w,j.i]})}return Q})()},1289:($t,De,a)=>{a.d(De,{R:()=>Pe});var t=a(9199),r=a(6354),m=a(5964),e=a(3953),z=a(9145),j=a(177),R=a(5703),$=a(2e3),k=a(5103),I=a(7391),w=a(7679),P=a(1774),Q=a(2287);function N(ve,pe){if(1&ve&&(e.nrm(0,"i",12),e.EFF(1),e.nI1(2,"truncate")),2&ve){const U=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,U.name,50)," ")}}function x(ve,pe){if(1&ve&&(e.j41(0,"cvc-link-tag",14),e.EFF(1),e.k0s()),2&ve){const U=e.XpG(2).ngIf;e.Y8G("href",U.diseaseUrl),e.R7$(),e.SpI(" DOID: ",U.doid," ")}}function oe(ve,pe){if(1&ve&&e.DNE(0,x,2,2,"cvc-link-tag",13),2&ve){const U=e.XpG().ngIf,M=e.sdS(7);e.Y8G("ngIf",U.doid)("ngIfElse",M)}}function ee(ve,pe){1&ve&&(e.j41(0,"span",15),e.EFF(1,"No DOID"),e.k0s())}function Ee(ve,pe){if(1&ve&&(e.j41(0,"nz-descriptions-item",16),e.EFF(1),e.k0s()),2&ve){const U=e.XpG().ngIf;e.R7$(),e.SpI(" ",U.name," ")}}function Ie(ve,pe){if(1&ve&&(e.j41(0,"nz-descriptions-item",17),e.EFF(1),e.k0s()),2&ve){const U=e.XpG().ngIf;e.R7$(),e.SpI(" ",U.diseaseAliases.join(", ")," ")}}function ce(ve,pe){if(1&ve&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,N,3,4,"ng-template",null,0,e.C5r)(4,oe,1,2,"ng-template",null,1,e.C5r)(6,ee,2,0,"ng-template",null,2,e.C5r),e.j41(8,"nz-descriptions",6),e.DNE(9,Ee,2,1,"nz-descriptions-item",7)(10,Ie,2,1,"nz-descriptions-item",8),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.EFF(14),e.k0s(),e.j41(15,"nz-descriptions-item",11),e.EFF(16),e.k0s()()(),e.bVm()),2&ve){const U=pe.ngIf,M=e.sdS(3),te=e.sdS(5);e.R7$(),e.Y8G("nzTitle",M)("nzExtra",te),e.R7$(7),e.Y8G("nzColumn",1),e.R7$(),e.Y8G("ngIf",U.name.length>50),e.R7$(),e.Y8G("ngIf",U.diseaseAliases.length>0),e.R7$(2),e.SpI(" ",U.assertionCount," "),e.R7$(2),e.SpI(" ",U.evidenceItemCount," "),e.R7$(2),e.SpI(" ",U.molecularProfileCount," ")}}let Pe=(()=>{class ve{constructor(U){this.gql=U}ngOnInit(){if(null==this.diseaseId)throw new Error("cvc-disease-popover requires valid diseaseId input.");this.disease$=this.gql.watch({diseaseId:this.diseaseId}).valueChanges.pipe((0,r.T)(({data:U})=>U?.diseasePopover),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(M){return new(M||ve)(e.rXU(z.cs4))};static#t=this.\u0275cmp=e.VBU({type:ve,selectors:[["cvc-disease-popover"]],inputs:{diseaseId:"diseaseId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noDoid",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","1"],["nzTitle","Evidence","nzSpan","1"],["nzTitle","Molecular Profiles","nzSpan","1"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"],["tooltip","View on disease-ontology.org",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on disease-ontology.org",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"]],template:function(M,te){1&M&&(e.j41(0,"div",3),e.DNE(1,ce,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&M&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,te.disease$)))},dependencies:[j.bT,R.cK,$.xA,$.gr,k.Dn,I.Di,w.a,P.L9,Q.H],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return ve})()},8156:($t,De,a)=>{a.d(De,{U:()=>k});var t=a(177),r=a(5703),m=a(2e3),e=a(5103),z=a(7054),j=a(7391),R=a(4917),$=a(3953);let k=(()=>{class I{static#e=this.\u0275fac=function(Q){return new(Q||I)};static#t=this.\u0275mod=$.$C({type:I});static#n=this.\u0275inj=$.G2t({imports:[t.MD,r.Ti,m.WF,e.Y3,j.kT,R.i,z.L]})}return I})()},9861:($t,De,a)=>{a.d(De,{Y:()=>Pe});var t=a(6514),r=a(3953),m=a(177),e=a(1188),z=a(5699),j=a(1236),R=a(5103),$=a(1289),k=a(2287);const I=ve=>({deprecated:ve});function w(ve,pe){}function P(ve,pe){if(1&ve&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,w,0,0,"ng-template",7),r.k0s(),r.bVm()),2&ve){const U=r.XpG(),M=r.sdS(2);r.R7$(),r.Y8G("routerLink",U.disease.link),r.R7$(),r.Y8G("ngTemplateOutlet",M)}}function Q(ve,pe){}function N(ve,pe){if(1&ve&&r.nrm(0,"cvc-disease-popover",9),2&ve){const U=r.XpG(2);r.Y8G("diseaseId",U.disease.id)}}function x(ve,pe){if(1&ve){const U=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(te){r.eBV(U);const ge=r.XpG();return r.Njj(ge.itemClosed(te))}),r.DNE(1,Q,0,0,"ng-template",7),r.k0s(),r.DNE(2,N,1,1,"ng-template",null,3,r.C5r)}if(2&ve){const U=r.sdS(3),M=r.XpG(),te=r.sdS(6);r.Y8G("ngClass",r.eq3(6,I,M.disease.deprecated))("nzPopoverMouseEnterDelay",M.onCloseClicked?0:.5)("nzPopoverContent",U)("nzPopoverTrigger",M.enablePopover?"hover":null)("nzMode",M.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",te)}}function oe(ve,pe){}function ee(ve,pe){if(1&ve&&r.DNE(0,oe,0,0,"ng-template",7),2&ve){r.XpG();const U=r.sdS(2);r.Y8G("ngTemplateOutlet",U)}}function Ee(ve,pe){if(1&ve&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&ve){const U=r.XpG(2);r.R7$(),r.SpI(" ",r.i5U(2,1,U.disease.name,27)," ")}}function Ie(ve,pe){if(1&ve&&r.EFF(0),2&ve){const U=r.XpG(2);r.SpI(" ",U.disease.name," ")}}function ce(ve,pe){if(1&ve&&(r.nrm(0,"i",10),r.DNE(1,Ee,3,4,"ng-container",5)(2,Ie,1,1,"ng-template",null,4,r.C5r)),2&ve){const U=r.sdS(3),M=r.XpG();r.R7$(),r.Y8G("ngIf",M.truncateLongName)("ngIfElse",U)}}let Pe=(()=>{class ve extends t.s{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set disease(U){if(!U)throw new Error("disease-tag disease Input requires LinkableDisease.");this._disease=U}get disease(){return this._disease}idFunction(){return this.disease.id}static#e=this.\u0275fac=(()=>{let U;return function(te){return(U||(U=r.xGo(ve)))(te||ve)}})();static#t=this.\u0275cmp=r.VBU({type:ve,selectors:[["cvc-disease-tag"]],inputs:{disease:"disease",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["diseasePopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"diseaseId"],["nz-icon","","nzType","civic-disease","nzTheme","twotone","nzTwotoneColor","#E62F76"]],template:function(M,te){if(1&M&&r.DNE(0,P,3,2,"ng-container",5)(1,x,4,8,"ng-template",null,0,r.C5r)(3,ee,1,1,"ng-template",null,1,r.C5r)(5,ce,4,2,"ng-template",null,2,r.C5r),2&M){const ge=r.sdS(4);r.Y8G("ngIf",te.linked)("ngIfElse",ge)}},dependencies:[m.YU,m.bT,m.T3,e.Wk,z.s,j.L_,R.Dn,$.R,k.H],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}"],changeDetection:0})}return ve})()},9192:($t,De,a)=>{a.d(De,{J:()=>k});var t=a(177),r=a(1188),m=a(5699),e=a(1236),z=a(5103),j=a(8156),R=a(4917),$=a(3953);let k=(()=>{class I{static#e=this.\u0275fac=function(Q){return new(Q||I)};static#t=this.\u0275mod=$.$C({type:I});static#n=this.\u0275inj=$.G2t({imports:[t.MD,r.iI,m.T,e.MC,z.Y3,R.i,j.U]})}return I})()},8011:($t,De,a)=>{a.d(De,{S:()=>rn});var t=a(6354),r=a(5964),m=a(9199),e=a(3953),z=a(9145),j=a(177),R=a(1188),$=a(5103),k=a(5703),I=a(7529),w=a(2e3),P=a(5699),Q=a(7685),N=a(7391),x=a(9563),oe=a(9861),ee=a(7047),Ee=a(9062),Ie=a(311),ce=a(5473),Pe=a(9973),ve=a(1774),pe=a(1677),U=a(3075);function M(en,Xt){if(1&en&&(e.qex(0),e.nrm(1,"i",18),e.nI1(2,"entityColor"),e.EFF(3),e.bVm()),2&en){const Tn=e.XpG(2).ngIf;e.R7$(),e.Y8G("nzTwotoneColor",e.bMT(2,2,"EvidenceItem")),e.R7$(2),e.SpI(" ",Tn.name," ")}}function te(en,Xt){if(1&en&&e.nrm(0,"cvc-status-tag",19),2&en){const Tn=e.XpG(2).ngIf;e.Y8G("status",Tn.status)}}function ge(en,Xt){1&en&&(e.j41(0,"nz-space"),e.DNE(1,M,4,4,"ng-container",16)(2,te,1,1,"cvc-status-tag",17),e.k0s())}function T(en,Xt){if(1&en&&e.nrm(0,"cvc-molecular-profile-tag",20),2&en){const Tn=e.XpG().ngIf;e.Y8G("molecularProfile",Tn.molecularProfile)("enablePopover",!1)("truncateLongName",!0)}}function D(en,Xt){if(1&en&&(e.qex(0),e.EFF(1),e.bVm()),2&en){const Tn=Xt.ngIf;e.R7$(),e.SpI(" ",Tn," ")}}function A(en,Xt){if(1&en&&(e.j41(0,"nz-descriptions",21)(1,"nz-descriptions-item",22),e.nrm(2,"cvc-mp-tag-name",23),e.k0s(),e.j41(3,"nz-descriptions-item",24),e.nrm(4,"cvc-source-tag",25),e.k0s()()),2&en){const Tn=e.XpG().ngIf;e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("nameSegments",Tn.molecularProfile.parsedName)("enablePopover",!1),e.R7$(2),e.Y8G("source",Tn.source)("enablePopover",!1)}}function X(en,Xt){if(1&en&&(e.qex(0),e.nrm(1,"cvc-disease-tag",35),e.bVm()),2&en){const Tn=e.XpG(2).ngIf;e.R7$(),e.Y8G("enablePopover",!1)("disease",Tn.disease)("truncateLongName",!0)}}function se(en,Xt){1&en&&e.EFF(0," N/A ")}function je(en,Xt){if(1&en&&(e.j41(0,"span"),e.nrm(1,"cvc-therapy-tag",38),e.k0s()),2&en){const Tn=Xt.$implicit;e.R7$(),e.Y8G("enablePopover",!1)("therapy",Tn)("truncateLongName",!0)}}function Bt(en,Xt){if(1&en&&(e.qex(0),e.EFF(1),e.nI1(2,"titlecase"),e.bVm()),2&en){const Tn=e.XpG(3).ngIf;e.R7$(),e.SpI(" ",e.bMT(2,1,Tn.therapyInteractionType)," ")}}function Tt(en,Xt){if(1&en&&(e.j41(0,"nz-descriptions-item",36),e.DNE(1,je,2,3,"span",37)(2,Bt,3,3,"ng-container",5),e.k0s()),2&en){const Tn=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngForOf",Tn.therapies),e.R7$(),e.Y8G("ngIf",Tn.therapies.length>1)}}function Vt(en,Xt){if(1&en&&(e.j41(0,"span"),e.nrm(1,"cvc-phenotype-tag",40),e.k0s()),2&en){const Tn=Xt.$implicit;e.R7$(),e.Y8G("enablePopover",!1)("phenotype",Tn)}}function He(en,Xt){if(1&en&&(e.j41(0,"nz-descriptions-item",39),e.DNE(1,Vt,2,2,"span",37),e.k0s()),2&en){const Tn=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngForOf",Tn.phenotypes)}}function xt(en,Xt){if(1&en&&(e.j41(0,"nz-descriptions",21)(1,"nz-descriptions-item",26),e.EFF(2),e.k0s(),e.j41(3,"nz-descriptions-item",27),e.EFF(4),e.nI1(5,"evidenceEnumDisplay"),e.k0s(),e.j41(6,"nz-descriptions-item",28),e.EFF(7),e.nI1(8,"evidenceEnumDisplay"),e.k0s(),e.j41(9,"nz-descriptions-item",29),e.EFF(10),e.nI1(11,"evidenceEnumDisplay"),e.k0s(),e.j41(12,"nz-descriptions-item",30),e.EFF(13),e.nrm(14,"i",31),e.k0s(),e.j41(15,"nz-descriptions-item",32),e.DNE(16,X,2,3,"ng-container",10)(17,se,1,0,"ng-template",null,3,e.C5r),e.k0s(),e.DNE(19,Tt,3,2,"nz-descriptions-item",33)(20,He,2,1,"nz-descriptions-item",34),e.k0s()),2&en){const Tn=e.sdS(18),Jn=e.XpG().ngIf;e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",Jn.evidenceLevel," "),e.R7$(2),e.SpI(" ",e.bMT(5,10,Jn.evidenceType)," "),e.R7$(3),e.SpI(" ",e.bMT(8,12,Jn.evidenceDirection)," "),e.R7$(3),e.SpI(" ",e.bMT(11,14,Jn.significance)," "),e.R7$(3),e.SpI(" ",Jn.evidenceRating,""),e.R7$(3),e.Y8G("ngIf",Jn.disease)("ngIfElse",Tn),e.R7$(3),e.Y8G("ngIf",Jn.therapies.length>0),e.R7$(),e.Y8G("ngIf",Jn.phenotypes.length>0)}}function Lt(en,Xt){if(1&en&&(e.j41(0,"a",41)(1,"nz-tag",42),e.nrm(2,"i",43),e.EFF(3),e.k0s()()),2&en){const Tn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",Tn.id,"/flags"),e.R7$(3),e.SpI(" Flags (",Tn.flags.totalCount,") ")}}function ft(en,Xt){if(1&en&&(e.j41(0,"a",41)(1,"nz-tag",44),e.nrm(2,"i",45),e.EFF(3),e.k0s()()),2&en){const Tn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",Tn.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",Tn.revisions.totalCount,") ")}}function St(en,Xt){if(1&en&&(e.j41(0,"a",41)(1,"nz-tag",46),e.nrm(2,"i",47),e.EFF(3),e.k0s()()),2&en){const Tn=e.XpG().ngIf;e.Mz_("routerLink","/evidence/",Tn.id,"/comments"),e.R7$(3),e.SpI(" Comments (",Tn.comments.totalCount,") ")}}function kt(en,Xt){if(1&en&&(e.qex(0),e.j41(1,"nz-card",6),e.DNE(2,ge,3,0,"ng-template",null,1,e.C5r)(4,T,1,3,"ng-template",null,2,e.C5r),e.j41(6,"nz-row")(7,"nz-col",7)(8,"div",8)(9,"p",9),e.DNE(10,D,2,1,"ng-container",10),e.k0s()()()(),e.j41(11,"nz-space",11),e.DNE(12,A,5,5,"nz-descriptions",12)(13,xt,21,16,"nz-descriptions",12),e.k0s(),e.j41(14,"nz-row",13)(15,"nz-col",7)(16,"nz-space",14),e.DNE(17,Lt,4,3,"a",15)(18,ft,4,3,"a",15)(19,St,4,3,"a",15),e.k0s()()()(),e.bVm()),2&en){const Tn=Xt.ngIf,Jn=e.sdS(3),Dn=e.sdS(5);e.XpG();const Mt=e.sdS(4);e.R7$(),e.Y8G("nzTitle",Jn)("nzExtra",Dn),e.R7$(8),e.Y8G("nzEllipsisRows",4),e.R7$(),e.Y8G("ngIf",Tn.description)("ngIfElse",Mt)}}function It(en,Xt){1&en&&e.EFF(0," Evidence item has not been provided a description.\n")}let rn=(()=>{class en{constructor(Tn){this.gql=Tn}ngOnInit(){if(null==this.evidenceId)throw new Error("cvc-evidence-popover requires valid evidenceId input.");this.evidence$=this.gql.watch({evidenceId:this.evidenceId}).valueChanges.pipe((0,t.T)(({data:Tn})=>Tn?.evidenceItem),(0,r.p)(m.kP))}static#e=this.\u0275fac=function(Jn){return new(Jn||en)(e.rXU(z.XUB))};static#t=this.\u0275cmp=e.VBU({type:en,selectors:[["cvc-evidence-popover"]],inputs:{evidenceId:"evidenceId"},decls:5,vars:3,consts:[["noDescription",""],["cardTitle",""],["molecularProfile",""],["noDisease",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSpan","24"],[1,"popover-text"],["nz-typography","","nzEllipsis","","nzExpandable","",3,"nzEllipsisRows"],[4,"ngIf","ngIfElse"],["nzDirection","vertical","nzSize","small"],["nzSize","small","nzBordered","true",3,"nzColumn",4,"nzSpaceItem"],["id","entity-child-counts"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],[4,"nzSpaceItem"],["style","font-weight: normal",3,"status",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-evidence",3,"nzTwotoneColor"],[2,"font-weight","normal",3,"status"],[3,"molecularProfile","enablePopover","truncateLongName"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","MP Expression"],[3,"nameSegments","enablePopover"],["nzTitle","Source","nzSpan","2"],[3,"source","enablePopover"],["nzTitle","Level"],["nzTitle","Type"],["nzTitle","Direction"],["nzTitle","Clinical Significance","nzSpan","2"],["nzTitle","Rating"],["nz-icon","","nzType","star","nzTheme","fill"],["nzTitle","Disease"],["nzTitle","Therapies","nzSpan","2",4,"ngIf"],["nzTitle","Phenotypes","nzSpan","2",4,"ngIf"],[3,"enablePopover","disease","truncateLongName"],["nzTitle","Therapies","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"enablePopover","therapy","truncateLongName"],["nzTitle","Phenotypes","nzSpan","2"],[3,"enablePopover","phenotype"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(Jn,Dn){1&Jn&&(e.j41(0,"div",4),e.DNE(1,kt,20,5,"ng-container",5),e.nI1(2,"ngrxPush"),e.k0s(),e.DNE(3,It,1,0,"ng-template",null,0,e.C5r)),2&Jn&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,Dn.evidence$)))},dependencies:[j.Sq,j.bT,R.Wk,$.Dn,k.cK,I.Uq,I.e,w.xA,w.gr,P.s,Q.U5,Q.Dq,N.Di,x.R,oe.Y,ee.A,Ee.D,Ie.g,ce.z,Pe.G,j.PV,ve.L9,pe.pW,U.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return en})()},4666:($t,De,a)=>{a.d(De,{v:()=>Ie});var t=a(177),r=a(5703),m=a(7529),e=a(2e3),z=a(1188),j=a(5699),R=a(9192),$=a(1542),k=a(7685),I=a(5103),w=a(4917),P=a(1209),Q=a(9590),N=a(7391),x=a(1448),oe=a(996),ee=a(9802),Ee=a(3953);let Ie=(()=>{class ce{static#e=this.\u0275fac=function(pe){return new(pe||ce)};static#t=this.\u0275mod=Ee.$C({type:ce});static#n=this.\u0275inj=Ee.G2t({imports:[t.MD,z.iI,I.Y3,r.Ti,m.f3,e.WF,j.T,k.pc,N.kT,w.i,ee._,R.J,$.X,P.k,Q.R,oe.o,x.B]})}return ce})()},1429:($t,De,a)=>{a.d(De,{X:()=>U});var t=a(9199),r=a(6354),m=a(5964),e=a(3953),z=a(9145),j=a(177),R=a(1188),$=a(5703),k=a(7529),I=a(2e3),w=a(5699),P=a(5103),Q=a(7685),N=a(1774),x=a(3075);function oe(M,te){if(1&M&&(e.nrm(0,"i",12),e.nI1(1,"entityColor"),e.EFF(2)),2&M){const ge=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,3,"Feature")),e.R7$(2),e.Lme(" ",ge.featureInstance.__typename," - ",ge.name," ")}}function ee(M,te){if(1&M&&(e.j41(0,"nz-descriptions-item",13),e.EFF(1),e.k0s()),2&M){const ge=e.XpG().ngIf;e.R7$(),e.SpI(" ",ge.fullName," ")}}function Ee(M,te){if(1&M&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&M){const ge=te.$implicit;e.R7$(),e.JRh(ge)}}function Ie(M,te){if(1&M&&(e.j41(0,"nz-descriptions-item",14),e.DNE(1,Ee,2,1,"nz-tag",15),e.k0s()),2&M){const ge=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",ge.featureAliases)}}function ce(M,te){if(1&M&&(e.j41(0,"a",16)(1,"nz-tag",17),e.nrm(2,"i",18),e.EFF(3),e.k0s()()),2&M){const ge=e.XpG().ngIf;e.Mz_("routerLink","/features/",ge.id,"/flags"),e.R7$(3),e.SpI(" Flags (",ge.flags.totalCount,") ")}}function Pe(M,te){if(1&M&&(e.j41(0,"a",16)(1,"nz-tag",19),e.nrm(2,"i",20),e.EFF(3," Revisions "),e.k0s()()),2&M){const ge=e.XpG().ngIf;e.Mz_("routerLink","/features/",ge.id,"/revisions")}}function ve(M,te){if(1&M&&(e.j41(0,"a",16)(1,"nz-tag",21),e.nrm(2,"i",22),e.EFF(3," Comments "),e.k0s()()),2&M){const ge=e.XpG().ngIf;e.Mz_("routerLink","/features/",ge.id,"/comments")}}function pe(M,te){if(1&M&&(e.qex(0),e.j41(1,"nz-card",3),e.DNE(2,oe,3,5,"ng-template",null,0,e.C5r),e.j41(4,"nz-descriptions",4),e.DNE(5,ee,2,1,"nz-descriptions-item",5)(6,Ie,2,1,"nz-descriptions-item",6),e.j41(7,"nz-descriptions-item",7),e.EFF(8),e.k0s()(),e.j41(9,"nz-row",8)(10,"nz-col",9)(11,"nz-space",10),e.DNE(12,ce,4,3,"a",11)(13,Pe,4,2,"a",11)(14,ve,4,2,"a",11),e.k0s()()()(),e.bVm()),2&M){const ge=te.ngIf,T=e.sdS(3);e.R7$(),e.Y8G("nzTitle",T),e.R7$(3),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",ge.fullName),e.R7$(),e.Y8G("ngIf",ge.featureAliases.length>0),e.R7$(2),e.SpI(" ",ge.variants.totalCount," ")}}let U=(()=>{class M{constructor(ge){this.gql=ge}ngOnInit(){if(null==this.featureId)throw new Error("cvc-feature-popover requires valid featureId input.");this.feature$=this.gql.watch({featureId:this.featureId}).valueChanges.pipe((0,r.T)(({data:ge})=>ge?.feature),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(T){return new(T||M)(e.rXU(z.AsH))};static#t=this.\u0275cmp=e.VBU({type:M,selectors:[["cvc-feature-popover"]],inputs:{featureId:"featureId"},decls:3,vars:3,consts:[["cardTitle",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzSpan","2","nzTitle","Full Name",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Variants"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-feature",3,"nzTwotoneColor"],["nzSpan","2","nzTitle","Full Name"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(T,D){1&T&&(e.j41(0,"div",1),e.DNE(1,pe,15,5,"ng-container",2),e.nI1(2,"ngrxPush"),e.k0s()),2&T&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,D.feature$)))},dependencies:[j.Sq,j.bT,R.Wk,$.cK,k.Uq,k.e,I.xA,I.gr,w.s,P.Dn,Q.U5,Q.Dq,N.L9,x.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return M})()},5928:($t,De,a)=>{a.d(De,{o:()=>w});var t=a(177),r=a(1188),m=a(4917),e=a(5703),z=a(2e3),j=a(7529),R=a(5103),$=a(7685),k=a(5699),I=a(3953);let w=(()=>{class P{static#e=this.\u0275fac=function(x){return new(x||P)};static#t=this.\u0275mod=I.$C({type:P});static#n=this.\u0275inj=I.G2t({imports:[t.MD,r.iI,e.Ti,j.f3,z.WF,k.T,R.Y3,$.pc,m.i]})}return P})()},3245:($t,De,a)=>{a.d(De,{_:()=>U});var t=a(6514),r=a(505),m=a(3953),e=a(177),z=a(1188),j=a(5699),R=a(1236),$=a(5103),k=a(1429),I=a(2387),w=a(2287),P=a(3075);const Q=M=>({deprecated:M});function N(M,te){}function x(M,te){if(1&M&&(m.qex(0),m.j41(1,"a",6),m.DNE(2,N,0,0,"ng-template",7),m.k0s(),m.bVm()),2&M){const ge=m.XpG(),T=m.sdS(2);m.R7$(),m.Y8G("routerLink",ge.feature.link),m.R7$(),m.Y8G("ngTemplateOutlet",T)}}function oe(M,te){}function ee(M,te){if(1&M&&m.nrm(0,"cvc-feature-popover",9),2&M){const ge=m.XpG(2);m.Y8G("featureId",ge.feature.id)}}function Ee(M,te){if(1&M){const ge=m.RV6();m.j41(0,"nz-tag",8),m.bIt("nzOnClose",function(D){m.eBV(ge);const A=m.XpG();return m.Njj(A.itemClosed(D))}),m.DNE(1,oe,0,0,"ng-template",7),m.k0s(),m.DNE(2,ee,1,1,"ng-template",null,3,m.C5r)}if(2&M){const ge=m.sdS(3),T=m.XpG(),D=m.sdS(6);m.Y8G("ngClass",m.eq3(6,Q,T.feature.deprecated))("nzPopoverMouseEnterDelay",T.onCloseClicked?0:.5)("nzPopoverContent",ge)("nzPopoverTrigger",T.enablePopover?"hover":null)("nzMode",T.onCloseClicked?"closeable":"default"),m.R7$(),m.Y8G("ngTemplateOutlet",D)}}function Ie(M,te){}function ce(M,te){if(1&M&&m.DNE(0,Ie,0,0,"ng-template",7),2&M){m.XpG();const ge=m.sdS(2);m.Y8G("ngTemplateOutlet",ge)}}function Pe(M,te){if(1&M&&(m.qex(0),m.EFF(1),m.nI1(2,"truncate"),m.bVm()),2&M){const ge=m.XpG(2);m.R7$(),m.SpI(" ",m.i5U(2,1,ge.feature.name,12)," ")}}function ve(M,te){if(1&M&&m.EFF(0),2&M){const ge=m.XpG(2);m.SpI(" ",ge.feature.name," ")}}function pe(M,te){if(1&M&&(m.j41(0,"cvc-icon-badges",10),m.nrm(1,"i",11),m.nI1(2,"entityColor"),m.k0s(),m.DNE(3,Pe,3,4,"ng-container",5)(4,ve,1,1,"ng-template",null,4,m.C5r)),2&M){const ge=m.sdS(5),T=m.XpG();m.Y8G("flagged",T.feature.flagged)("entityColor",T.iconColor),m.R7$(),m.Y8G("nzTwotoneColor",m.bMT(2,5,"Feature")),m.R7$(2),m.Y8G("ngIf",T.truncateLongName)("ngIfElse",ge)}}let U=(()=>{class M extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,r.P)("Gene")}idFunction(){return this.feature.id}ngOnInit(){if(super.ngOnInit(),void 0===this.feature)throw new Error("cvc-feature-tag requires LinkableFeature input, none supplied.")}static#e=this.\u0275fac=function(T){return new(T||M)};static#t=this.\u0275cmp=m.VBU({type:M,selectors:[["cvc-feature-tag"]],inputs:{feature:"feature",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[m.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["featurePopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"featureId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-feature","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(T,D){if(1&T&&m.DNE(0,x,3,2,"ng-container",5)(1,Ee,4,8,"ng-template",null,0,m.C5r)(3,ce,1,1,"ng-template",null,1,m.C5r)(5,pe,6,7,"ng-template",null,2,m.C5r),2&T){const A=m.sdS(4);m.Y8G("ngIf",D.linked)("ngIfElse",A)}},dependencies:[e.YU,e.bT,e.T3,z.Wk,j.s,R.L_,$.Dn,k.X,I.N,w.H,P.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return M})()},6912:($t,De,a)=>{a.d(De,{l:()=>w});var t=a(177),r=a(1188),m=a(5699),e=a(5103),z=a(1236),j=a(4917),R=a(3146),$=a(4994),k=a(5928),I=a(3953);let w=(()=>{class P{static#e=this.\u0275fac=function(x){return new(x||P)};static#t=this.\u0275mod=I.$C({type:P});static#n=this.\u0275inj=I.G2t({imports:[t.MD,r.iI,m.T,z.MC,e.Y3,R.W2,j.i,k.o,$.a]})}return P})()},5761:($t,De,a)=>{a.d(De,{q:()=>ge});var t=a(9199),r=a(6354),m=a(5964),e=a(3953),z=a(9145),j=a(177),R=a(1188),$=a(5703),k=a(7529),I=a(2e3),w=a(5699),P=a(5103),Q=a(7685),N=a(7855),x=a(9973),oe=a(1774);function ee(T,D){if(1&T&&(e.nrm(0,"i",16),e.EFF(1)),2&T){const A=e.XpG().ngIf;e.R7$(),e.SpI(" ",A.name," ")}}function Ee(T,D){if(1&T&&(e.j41(0,"nz-descriptions-item",17),e.EFF(1),e.k0s()),2&T){const A=e.XpG().ngIf;e.R7$(),e.SpI(" ",A.evidenceItems.totalCount," ")}}function Ie(T,D){if(1&T&&(e.j41(0,"nz-descriptions-item",18),e.EFF(1),e.k0s()),2&T){const A=e.XpG().ngIf;e.R7$(),e.SpI(" ",A.assertions.totalCount," ")}}function ce(T,D){if(1&T&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&T){const A=D.$implicit;e.R7$(),e.JRh(A)}}function Pe(T,D){if(1&T&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,ce,2,1,"nz-tag",19),e.k0s(),e.bVm()),2&T){const A=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",A.molecularProfileAliases)}}function ve(T,D){1&T&&(e.j41(0,"span",20),e.EFF(1,"None specified"),e.k0s())}function pe(T,D){if(1&T&&(e.j41(0,"a",21)(1,"nz-tag",22),e.nrm(2,"i",23),e.EFF(3),e.k0s()()),2&T){const A=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",A.id,"/flags"),e.R7$(3),e.SpI(" Flags (",A.flags.totalCount,") ")}}function U(T,D){if(1&T&&(e.j41(0,"a",21)(1,"nz-tag",24),e.nrm(2,"i",25),e.EFF(3),e.k0s()()),2&T){const A=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",A.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",A.revisions.totalCount,") ")}}function M(T,D){if(1&T&&(e.j41(0,"a",21)(1,"nz-tag",26),e.nrm(2,"i",27),e.EFF(3),e.k0s()()),2&T){const A=e.XpG().ngIf;e.Mz_("routerLink","/molecular-profiles/",A.id,"/comments"),e.R7$(3),e.SpI(" Comments (",A.comments.totalCount,") ")}}function te(T,D){if(1&T&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,ee,2,1,"ng-template",null,0,e.C5r),e.j41(4,"nz-descriptions",5)(5,"nz-descriptions-item",6),e.nrm(6,"cvc-mp-tag-name",7),e.k0s(),e.DNE(7,Ee,2,1,"nz-descriptions-item",8)(8,Ie,2,1,"nz-descriptions-item",9),e.j41(9,"nz-descriptions-item",10),e.DNE(10,Pe,3,1,"ng-container",11)(11,ve,2,0,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(13,"nz-row",12)(14,"nz-col",13)(15,"nz-space",14),e.DNE(16,pe,4,3,"a",15)(17,U,4,3,"a",15)(18,M,4,3,"a",15),e.k0s()()()(),e.bVm()),2&T){const A=D.ngIf,X=e.sdS(3),se=e.sdS(12);e.R7$(),e.Y8G("nzTitle",X),e.R7$(3),e.Y8G("nzColumn",2),e.R7$(2),e.Y8G("nameSegments",A.parsedName)("enablePopover",!1),e.R7$(),e.Y8G("ngIf",A.evidenceItems.totalCount>0),e.R7$(),e.Y8G("ngIf",A.assertions.totalCount>0),e.R7$(2),e.Y8G("ngIf",A.molecularProfileAliases.length>0)("ngIfElse",se)}}let ge=(()=>{class T{constructor(A){this.gql=A}ngOnInit(){if(void 0===this.molecularProfileId)throw new Error("Must pass a molecular profile ID into the molecular profile popover component.");this.molecularProfile$=this.gql.watch({molecularProfileId:this.molecularProfileId}).valueChanges.pipe((0,r.T)(({data:A})=>A?.molecularProfile),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(X){return new(X||T)(e.rXU(z.fvu))};static#t=this.\u0275cmp=e.VBU({type:T,selectors:[["cvc-molecular-profile-popover"]],inputs:{molecularProfileId:"molecularProfileId"},decls:3,vars:3,consts:[["cardTitle",""],["noAliases",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","MP Expression","nzSpan","2"],[3,"nameSegments","enablePopover"],["nzTitle","Evidence Items","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2",4,"ngIf"],["nzTitle","Aliases"],[4,"ngIf","ngIfElse"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzType","civic:molecularprofile"],["nzTitle","Evidence Items","nzSpan","2"],["nzTitle","Assertions","nzSpan","2"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(X,se){1&X&&(e.j41(0,"div",2),e.DNE(1,te,19,8,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&X&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,se.molecularProfile$)))},dependencies:[j.Sq,j.bT,R.Wk,$.cK,k.Uq,k.e,I.xA,I.gr,w.s,P.Dn,Q.U5,Q.Dq,N.M,x.G,oe.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return T})()},8052:($t,De,a)=>{a.d(De,{b:()=>N});var t=a(177),r=a(1188),m=a(5703),e=a(7529),z=a(2e3),j=a(5699),R=a(5103),$=a(7685),k=a(7054),I=a(1448),w=a(2142),P=a(6912),Q=a(3953);let N=(()=>{class x{static#e=this.\u0275fac=function(Ee){return new(Ee||x)};static#t=this.\u0275mod=Q.$C({type:x});static#n=this.\u0275inj=Q.G2t({imports:[t.MD,r.iI,m.Ti,e.f3,z.WF,j.T,R.Y3,$.pc,P.l,k.L,w.x,I.B]})}return x})()},9973:($t,De,a)=>{a.d(De,{G:()=>P});var t=a(3953),r=a(177),m=a(3100),e=a(3245),z=a(4247);const j=Q=>[Q];function R(Q,N){if(1&Q&&t.nrm(0,"span",3),2&Q){const x=t.XpG().$implicit;t.Y8G("innerHtml",x.text,t.npT)}}function $(Q,N){if(1&Q&&t.nrm(0,"cvc-feature-tag",6),2&Q){const x=t.XpG().$implicit,oe=t.XpG(3);t.Y8G("feature",x)("enablePopover",oe.enablePopover)}}function k(Q,N){if(1&Q&&(t.qex(0),t.DNE(1,$,1,2,"cvc-feature-tag",5),t.bVm()),2&Q){const x=N.$implicit;t.R7$(),t.Y8G("ngIf","Feature"==x.__typename)}}function I(Q,N){if(1&Q&&(t.qex(0),t.j41(1,"cvc-tag-group"),t.DNE(2,k,2,1,"ng-container",0),t.nrm(3,"cvc-variant-tag",4),t.k0s(),t.bVm()),2&Q){const x=t.XpG(),oe=x.$implicit,ee=x.index,Ee=t.XpG();t.R7$(2),t.Y8G("ngForOf",t.eq3(3,j,Ee.nameSegments[ee-1])),t.R7$(),t.Y8G("variant",oe)("enablePopover",Ee.enablePopover)}}function w(Q,N){if(1&Q&&(t.qex(0),t.DNE(1,R,1,1,"span",1)(2,I,4,5,"ng-container",2),t.bVm()),2&Q){const x=N.$implicit;t.R7$(),t.Y8G("ngIf","MolecularProfileTextSegment"==x.__typename),t.R7$(),t.Y8G("ngIf","Variant"==x.__typename)}}let P=(()=>{class Q{constructor(){this.enablePopover=!0}ngOnInit(){if(void 0===this.nameSegments)throw new Error("Must pass a list of molecular profile name segments into mp name component.")}static#e=this.\u0275fac=function(oe){return new(oe||Q)};static#t=this.\u0275cmp=t.VBU({type:Q,selectors:[["cvc-mp-tag-name"]],inputs:{nameSegments:"nameSegments",enablePopover:"enablePopover"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["class","text-segment",3,"innerHtml",4,"ngIf"],[4,"ngIf"],[1,"text-segment",3,"innerHtml"],[3,"variant","enablePopover"],[3,"feature","enablePopover",4,"ngIf"],[3,"feature","enablePopover"]],template:function(oe,ee){1&oe&&t.DNE(0,w,3,2,"ng-container",0),2&oe&&t.Y8G("ngForOf",ee.nameSegments)},dependencies:[r.Sq,r.bT,m.V,e._,z.L],styles:[".text-segment[_ngcontent-%COMP%]{display:inline-block;margin-right:8px;font-weight:700;color:#0009;font-size:14px;line-height:12px}"]})}return Q})()},1448:($t,De,a)=>{a.d(De,{B:()=>$});var t=a(177),r=a(7051),m=a(5699),e=a(5103),z=a(2502),j=a(6912),R=a(3953);let $=(()=>{class k{static#e=this.\u0275fac=function(P){return new(P||k)};static#t=this.\u0275mod=R.$C({type:k});static#n=this.\u0275inj=R.G2t({imports:[t.MD,m.T,e.Y3,r.U,j.l,z.u]})}return k})()},5473:($t,De,a)=>{a.d(De,{z:()=>T});var t=a(6514),r=a(505),m=a(3953),e=a(177),z=a(1188),j=a(5699),R=a(1236),$=a(5103),k=a(5761),I=a(2387),w=a(2287),P=a(3075);const Q=D=>({deprecated:D});function N(D,A){}function x(D,A){if(1&D&&(m.qex(0),m.j41(1,"a",7),m.DNE(2,N,0,0,"ng-template",8),m.k0s(),m.bVm()),2&D){const X=m.XpG(),se=m.sdS(2);m.R7$(),m.Y8G("routerLink",X.molecularProfile.link),m.R7$(),m.Y8G("ngTemplateOutlet",se)}}function oe(D,A){}function ee(D,A){if(1&D){const X=m.RV6();m.j41(0,"nz-tag",10),m.bIt("nzOnClose",function(je){m.eBV(X);const Bt=m.XpG(2);return m.Njj(Bt.itemClosed(je))}),m.DNE(1,oe,0,0,"ng-template",8),m.k0s()}if(2&D){m.XpG();const X=m.sdS(2),se=m.XpG(),je=m.sdS(8);m.Y8G("ngClass",m.eq3(5,Q,se.molecularProfile.deprecated))("nzPopoverMouseEnterDelay",se.onCloseClicked?0:.5)("nzPopoverContent",X)("nzMode",se.onCloseClicked?"closeable":"default"),m.R7$(),m.Y8G("ngTemplateOutlet",je)}}function Ee(D,A){if(1&D&&m.nrm(0,"cvc-molecular-profile-popover",12),2&D){const X=m.XpG(3);m.Y8G("molecularProfileId",X.molecularProfile.id)}}function Ie(D,A){if(1&D&&m.DNE(0,Ee,1,1,"cvc-molecular-profile-popover",11),2&D){const X=m.XpG(2);m.Y8G("ngIf",X.enablePopover)}}function ce(D,A){if(1&D&&m.DNE(0,ee,2,7,"nz-tag",9)(1,Ie,1,1,"ng-template",null,4,m.C5r),2&D){const X=m.XpG(),se=m.sdS(4);m.Y8G("ngIf",X.enablePopover)("ngIfElse",se)}}function Pe(D,A){}function ve(D,A){if(1&D){const X=m.RV6();m.j41(0,"nz-tag",13),m.bIt("nzOnClose",function(je){m.eBV(X);const Bt=m.XpG();return m.Njj(Bt.itemClosed(je))}),m.DNE(1,Pe,0,0,"ng-template",8),m.k0s()}if(2&D){const X=m.XpG(),se=m.sdS(8);m.Y8G("nzMode",X.onCloseClicked?"closeable":"default")("ngClass",m.eq3(3,Q,X.molecularProfile.deprecated)),m.R7$(),m.Y8G("ngTemplateOutlet",se)}}function pe(D,A){}function U(D,A){if(1&D&&m.DNE(0,pe,0,0,"ng-template",8),2&D){m.XpG();const X=m.sdS(2);m.Y8G("ngTemplateOutlet",X)}}function M(D,A){if(1&D&&(m.qex(0),m.EFF(1),m.nI1(2,"truncate"),m.bVm()),2&D){const X=m.XpG(2);m.R7$(),m.SpI(" ",m.i5U(2,1,X.molecularProfile.name,X.truncationLength)," ")}}function te(D,A){if(1&D&&m.EFF(0),2&D){const X=m.XpG(2);m.SpI(" ",X.molecularProfile.name," ")}}function ge(D,A){if(1&D&&(m.j41(0,"cvc-icon-badges",14),m.nrm(1,"i",15),m.nI1(2,"entityColor"),m.k0s(),m.DNE(3,M,3,4,"ng-container",6)(4,te,1,1,"ng-template",null,5,m.C5r)),2&D){const X=m.sdS(5),se=m.XpG();m.Y8G("flagged",se.molecularProfile.flagged)("entityColor",se.iconColor),m.R7$(),m.Y8G("nzTwotoneColor",m.bMT(2,5,"MolecularProfile")),m.R7$(2),m.Y8G("ngIf",se.truncateLongName)("ngIfElse",X)}}let T=(()=>{class D extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.truncationLength=20,this.iconColor=(0,r.P)("MolecularProfile")}idFunction(){return this.molecularProfile.id}ngOnInit(){if(super.ngOnInit(),void 0===this.molecularProfile)throw new Error("cvc-molecular-profile-tag requires LinkableMolecularProfile input, none supplied.");"number"==typeof this.truncateLongName&&(this.truncationLength=this.truncateLongName),"segments"in this.molecularProfile&&(this.molecularProfile.name=this.molecularProfile.segments.map(X=>"text"in X?X.text:X.name).join(" "))}static#e=this.\u0275fac=function(se){return new(se||D)};static#t=this.\u0275cmp=m.VBU({type:D,selectors:[["cvc-molecular-profile-tag"]],inputs:{molecularProfile:"molecularProfile",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[m.Vt3],decls:9,vars:2,consts:[["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],["popoverContent",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverTrigger","hover",3,"ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode","nzOnClose",4,"ngIf","ngIfElse"],["nz-popover","","nzPopoverTrigger","hover",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzMode"],[3,"molecularProfileId",4,"ngIf"],[3,"molecularProfileId"],[3,"nzOnClose","nzMode","ngClass"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-molecularprofile","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(se,je){if(1&se&&m.DNE(0,x,3,2,"ng-container",6)(1,ce,3,2,"ng-template",null,0,m.C5r)(3,ve,2,5,"ng-template",null,1,m.C5r)(5,U,1,1,"ng-template",null,2,m.C5r)(7,ge,6,7,"ng-template",null,3,m.C5r),2&se){const Bt=m.sdS(6);m.Y8G("ngIf",je.linked)("ngIfElse",Bt)}},dependencies:[e.YU,e.bT,e.T3,z.Wk,j.s,R.L_,$.Dn,k.q,I.N,w.H,P.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return D})()},996:($t,De,a)=>{a.d(De,{o:()=>I});var t=a(177),r=a(1188),m=a(5699),e=a(5103),z=a(1236),j=a(4917),R=a(8052),$=a(4994),k=a(3953);let I=(()=>{class w{static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275mod=k.$C({type:w});static#n=this.\u0275inj=k.G2t({imports:[t.MD,r.iI,m.T,z.MC,e.Y3,j.i,R.b,$.a]})}return w})()},6564:($t,De,a)=>{a.d(De,{F:()=>x});var t=a(9199),r=a(6354),m=a(5964),e=a(3953),z=a(9145),j=a(177),R=a(5103),$=a(5703),k=a(7679),I=a(2e3),w=a(1774);function P(oe,ee){if(1&oe&&(e.nrm(0,"i",9),e.EFF(1)),2&oe){const Ee=e.XpG().ngIf;e.R7$(),e.SpI(" ",Ee.name," ")}}function Q(oe,ee){if(1&oe&&(e.j41(0,"cvc-link-tag",10),e.EFF(1),e.k0s()),2&oe){const Ee=e.XpG().ngIf;e.Y8G("href",Ee.url),e.R7$(),e.SpI(" ",Ee.hpoId," ")}}function N(oe,ee){if(1&oe&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,P,2,1,"ng-template",null,0,e.C5r)(4,Q,2,2,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5)(7,"nz-descriptions-item",6),e.EFF(8),e.k0s(),e.j41(9,"nz-descriptions-item",7),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",8),e.EFF(12),e.k0s()()(),e.bVm()),2&oe){const Ee=ee.ngIf,Ie=e.sdS(3),ce=e.sdS(5);e.R7$(),e.Y8G("nzTitle",Ie)("nzExtra",ce),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",Ee.assertionCount," "),e.R7$(2),e.SpI(" ",Ee.evidenceItemCount," "),e.R7$(2),e.SpI(" ",Ee.molecularProfileCount," ")}}let x=(()=>{class oe{constructor(Ee){this.gql=Ee}ngOnInit(){if(null==this.phenotypeId)throw new Error("cvc-phenotype-popover requires valid phenotypeId input.");this.phenotype$=this.gql.watch({phenotypeId:this.phenotypeId}).valueChanges.pipe((0,r.T)(({data:Ee})=>Ee?.phenotypePopover),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(Ie){return new(Ie||oe)(e.rXU(z.WeE))};static#t=this.\u0275cmp=e.VBU({type:oe,selectors:[["cvc-phenotype-popover"]],inputs:{phenotypeId:"phenotypeId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Molecular Profiles","nzSpan","2"],["nz-icon","","nzType","civic-phenotype","nzTheme","twotone","nzTwotoneColor","#2A63B6"],["tooltip","View in the Human Phenotype Ontology",3,"href"]],template:function(Ie,ce){1&Ie&&(e.j41(0,"div",2),e.DNE(1,N,13,6,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&Ie&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,ce.phenotype$)))},dependencies:[j.bT,R.Dn,$.cK,k.a,I.xA,I.gr,w.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return oe})()},2582:($t,De,a)=>{a.d(De,{y:()=>R});var t=a(177),r=a(5703),m=a(7054),e=a(2e3),z=a(5103),j=a(3953);let R=(()=>{class ${static#e=this.\u0275fac=function(w){return new(w||$)};static#t=this.\u0275mod=j.$C({type:$});static#n=this.\u0275inj=j.G2t({imports:[t.MD,z.Y3,r.Ti,m.L,e.WF]})}return $})()},7047:($t,De,a)=>{a.d(De,{A:()=>ce});var t=a(6514),r=a(3953),m=a(177),e=a(1188),z=a(5699),j=a(1236),R=a(5103),$=a(6564),k=a(3075);function I(Pe,ve){}function w(Pe,ve){if(1&Pe&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,I,0,0,"ng-template",7),r.k0s(),r.bVm()),2&Pe){const pe=r.XpG(),U=r.sdS(2);r.R7$(),r.Y8G("routerLink",pe.phenotype.link),r.R7$(),r.Y8G("ngTemplateOutlet",U)}}function P(Pe,ve){}function Q(Pe,ve){if(1&Pe&&r.nrm(0,"cvc-phenotype-popover",9),2&Pe){const pe=r.XpG(2);r.Y8G("phenotypeId",pe.phenotype.id)}}function N(Pe,ve){if(1&Pe){const pe=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(M){r.eBV(pe);const te=r.XpG();return r.Njj(te.itemClosed(M))}),r.DNE(1,P,0,0,"ng-template",7),r.k0s(),r.DNE(2,Q,1,1,"ng-template",null,4,r.C5r)}if(2&Pe){const pe=r.sdS(3),U=r.XpG(),M=r.sdS(8);r.Y8G("nzPopoverMouseEnterDelay",U.onCloseClicked?0:.5)("nzPopoverContent",pe)("nzPopoverTrigger",U.enablePopover?"hover":null)("nzMode",U.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",M)}}function x(Pe,ve){}function oe(Pe,ve){if(1&Pe){const pe=r.RV6();r.j41(0,"nz-tag",10),r.bIt("nzOnClose",function(M){r.eBV(pe);const te=r.XpG();return r.Njj(te.itemClosed(M))}),r.DNE(1,x,0,0,"ng-template",7),r.k0s()}if(2&Pe){const pe=r.XpG(),U=r.sdS(8);r.Y8G("nzMode",pe.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",U)}}function ee(Pe,ve){}function Ee(Pe,ve){if(1&Pe&&r.DNE(0,ee,0,0,"ng-template",7),2&Pe){r.XpG();const pe=r.sdS(2);r.Y8G("ngTemplateOutlet",pe)}}function Ie(Pe,ve){if(1&Pe&&(r.nrm(0,"i",11),r.nI1(1,"entityColor"),r.EFF(2)),2&Pe){const pe=r.XpG();r.Y8G("nzTwotoneColor",r.bMT(1,2,"Phenotype")),r.R7$(2),r.SpI(" ",pe.phenotype.name,"\n")}}let ce=(()=>{class Pe extends t.s{constructor(){super(...arguments),this.enablePopover=!0}set phenotype(pe){if(!pe)throw new Error("phenotype-tag phentype input requires LinkablePhenotype.");this._phenotype=pe}get phenotype(){return this._phenotype}idFunction(){return this.phenotype.id}static#e=this.\u0275fac=(()=>{let pe;return function(M){return(pe||(pe=r.xGo(Pe)))(M||Pe)}})();static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["cvc-phenotype-tag"]],inputs:{phenotype:"phenotype",enablePopover:"enablePopover"},features:[r.Vt3],decls:9,vars:2,consts:[["tag",""],["noPopover",""],["unlinked",""],["tagContent",""],["phenotypePopover",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"phenotypeId"],[3,"nzOnClose","nzMode"],["nz-icon","","nzTheme","twotone","nzType","civic-phenotype",3,"nzTwotoneColor"]],template:function(U,M){if(1&U&&r.DNE(0,w,3,2,"ng-container",5)(1,N,4,5,"ng-template",null,0,r.C5r)(3,oe,2,2,"ng-template",null,1,r.C5r)(5,Ee,1,1,"ng-template",null,2,r.C5r)(7,Ie,3,4,"ng-template",null,3,r.C5r),2&U){const te=r.sdS(6);r.Y8G("ngIf",M.linked)("ngIfElse",te)}},dependencies:[m.bT,m.T3,e.Wk,z.s,j.L_,R.Dn,$.F,k.R],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return Pe})()},1542:($t,De,a)=>{a.d(De,{X:()=>k});var t=a(177),r=a(1188),m=a(4917),e=a(5103),z=a(1236),j=a(5699),R=a(2582),$=a(3953);let k=(()=>{class I{static#e=this.\u0275fac=function(Q){return new(Q||I)};static#t=this.\u0275mod=$.$C({type:I});static#n=this.\u0275inj=$.G2t({imports:[t.MD,r.iI,j.T,z.MC,e.Y3,R.y,m.i]})}return I})()},2387:($t,De,a)=>{a.d(De,{N:()=>k});var t=a(505),r=a(3953),m=a(177);const e=["*"],z=I=>({background:I});function j(I,w){if(1&I&&r.nrm(0,"div",3),2&I){const P=r.XpG();r.Y8G("ngStyle",r.eq3(1,z,P.flagColor))}}function R(I,w){if(1&I&&r.nrm(0,"div",4),2&I){const P=r.XpG();r.Y8G("ngStyle",r.eq3(1,z,P.entityColor))}}function $(I,w){if(1&I&&r.nrm(0,"div",5),2&I){const P=r.XpG();r.Y8G("ngStyle",r.eq3(1,z,P.entityColor))}}let k=(()=>{class I{constructor(){this.hasRevisions=!1,this.flagged=!1,this.hasComments=!1,this.entityColor="#AAA",this.flagColor=(0,t.P)("Flag")}static#e=this.\u0275fac=function(Q){return new(Q||I)};static#t=this.\u0275cmp=r.VBU({type:I,selectors:[["cvc-icon-badges"]],inputs:{hasRevisions:"hasRevisions",flagged:"flagged",hasComments:"hasComments",entityColor:"entityColor"},ngContentSelectors:e,decls:4,vars:3,consts:[["class","cvc-badge badge-flags",3,"ngStyle",4,"ngIf"],["class","cvc-badge badge-revisions",3,"ngStyle",4,"ngIf"],["class","cvc-badge badge-comments",3,"ngStyle",4,"ngIf"],[1,"cvc-badge","badge-flags",3,"ngStyle"],[1,"cvc-badge","badge-revisions",3,"ngStyle"],[1,"cvc-badge","badge-comments",3,"ngStyle"]],template:function(Q,N){1&Q&&(r.NAR(),r.SdG(0),r.DNE(1,j,1,3,"div",0)(2,R,1,3,"div",1)(3,$,1,3,"div",2)),2&Q&&(r.R7$(),r.Y8G("ngIf",N.flagged),r.R7$(),r.Y8G("ngIf",N.hasRevisions),r.R7$(),r.Y8G("ngIf",N.hasComments))},dependencies:[m.bT,m.B3],styles:["[_nghost-%COMP%]{display:inline-block;position:relative;line-height:1}.cvc-badge[_ngcontent-%COMP%]{position:absolute;z-index:auto;width:4px;min-width:4px;height:4px;border-radius:100%;box-shadow:0 0 0 1px #fff;background:#aaa}.cvc-badge.badge-revisions[_ngcontent-%COMP%]{top:.5px;right:.5px;transform:translate(50%,-50%)}.cvc-badge.badge-flags[_ngcontent-%COMP%]{top:.5px;left:.5px;transform:translate(-50%,-50%)}.cvc-badge.badge-comments[_ngcontent-%COMP%]{bottom:.5px;right:.5px;transform:translate(50%,50%)}"],changeDetection:0})}return I})()},4994:($t,De,a)=>{a.d(De,{a:()=>e});var t=a(177),r=a(4917),m=a(3953);let e=(()=>{class z{static#e=this.\u0275fac=function($){return new($||z)};static#t=this.\u0275mod=m.$C({type:z});static#n=this.\u0275inj=m.G2t({imports:[t.MD,r.i]})}return z})()},7679:($t,De,a)=>{a.d(De,{a:()=>j});var t=a(3953),r=a(5154),m=a(5699),e=a(5103);const z=["*"];let j=(()=>{class R{set href(k){if(!k)throw new Error("link-tag link Input requires string.");this._href=k}get href(){return this._href?this._href:""}static#e=this.\u0275fac=function(I){return new(I||R)};static#t=this.\u0275cmp=t.VBU({type:R,selectors:[["cvc-link-tag"]],inputs:{href:"href",tooltip:"tooltip",iconName:"iconName"},ngContentSelectors:z,decls:4,vars:4,consts:[["target","_blank",3,"href"],["nzColor","default","nz-tooltip","",3,"nzTooltipTitle","nzTooltipTrigger"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(I,w){1&I&&(t.NAR(),t.j41(0,"a",0)(1,"nz-tag",1),t.nrm(2,"i",2),t.SdG(3),t.k0s()()),2&I&&(t.Y8G("href",w.href,t.B4B),t.R7$(),t.Y8G("nzTooltipTitle",w.tooltip)("nzTooltipTrigger",w.tooltip?"hover":null),t.R7$(),t.Y8G("nzType",w.iconName?w.iconName:"link"))},dependencies:[r.LH,m.s,e.Dn],encapsulation:2})}return R})()},7054:($t,De,a)=>{a.d(De,{L:()=>j});var t=a(177),r=a(5154),m=a(5699),e=a(5103),z=a(3953);let j=(()=>{class R{static#e=this.\u0275fac=function(I){return new(I||R)};static#t=this.\u0275mod=z.$C({type:R});static#n=this.\u0275inj=z.G2t({imports:[t.MD,r.Qt,m.T,e.Y3]})}return R})()},9214:($t,De,a)=>{a.d(De,{y:()=>z});var t=a(177),r=a(5103),m=a(5699),e=a(3953);let z=(()=>{class j{static#e=this.\u0275fac=function(k){return new(k||j)};static#t=this.\u0275mod=e.$C({type:j});static#n=this.\u0275inj=e.G2t({imports:[t.MD,m.T,r.Y3]})}return j})()},3296:($t,De,a)=>{a.d(De,{M:()=>I});var t=a(4412),r=a(605),m=a(1594),e=a(3953),z=a(177),j=a(5699),R=a(5103),$=a(1774);function k(w,P){1&w&&(e.j41(0,"nz-tag",1),e.nrm(1,"i",2),e.j41(2,"span"),e.EFF(3,"End of results reached"),e.k0s()())}let I=(()=>{class w{set cvcShowTag(Q){void 0!==Q&&Q&&this.showTag()}constructor(Q){this.cdr=Q,this.showTag$=new t.t(!1)}showTag(){!1===this.showTag$.getValue()&&(this.showTag$.next(!0),(0,r.Y)(3e3).pipe((0,m.$)()).subscribe(()=>{this.showTag$.next(!1),this.cdr.detectChanges()}))}static#e=this.\u0275fac=function(N){return new(N||w)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:w,selectors:[["cvc-no-more-rows"]],inputs:{cvcShowTag:"cvcShowTag"},decls:2,vars:3,consts:[["nzColor","warning",4,"ngIf"],["nzColor","warning"],["nz-icon","","nzType","exclamation-circle"]],template:function(N,x){1&N&&(e.DNE(0,k,4,0,"nz-tag",0),e.nI1(1,"ngrxPush")),2&N&&e.Y8G("ngIf",e.bMT(1,1,x.showTag$))},dependencies:[z.bT,j.s,R.Dn,$.L9],encapsulation:2,changeDetection:0})}return w})()},2143:($t,De,a)=>{a.d(De,{n:()=>ee});var t=a(3953),r=a(177),m=a(5699),e=a(5103),z=a(1236),j=a(2e3),R=a(2617),$=a(7679),k=a(8139);function I(Ee,Ie){1&Ee&&t.nrm(0,"i",5)}function w(Ee,Ie){1&Ee&&t.nrm(0,"i",6)}function P(Ee,Ie){if(1&Ee&&(t.j41(0,"nz-tag",2),t.nI1(1,"titlecase"),t.DNE(2,I,1,0,"i",3)(3,w,1,0,"i",4),t.EFF(4),t.nI1(5,"titlecase"),t.k0s()),2&Ee){const ce=t.XpG(),Pe=t.sdS(2);t.Y8G("nzColor",ce.tagStatus)("nzPopoverMouseEnterDelay",.5)("nzPopoverContent",Pe)("nzPopoverTitle","This Source has been identified by Retraction Watch as status: "+t.bMT(1,8,ce.retractionNature))("nzPopoverTrigger",ce.enablePopover?"hover":null),t.R7$(2),t.Y8G("ngIf","error"==ce.tagStatus),t.R7$(),t.Y8G("ngIf","warning"==ce.tagStatus),t.R7$(),t.SpI(" ",t.bMT(5,10,ce.retractionNature),"\n")}}function Q(Ee,Ie){if(1&Ee&&(t.j41(0,"nz-descriptions-item",13),t.EFF(1),t.nI1(2,"timeAgo"),t.k0s()),2&Ee){const ce=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,ce.retractionDate))}}function N(Ee,Ie){if(1&Ee&&(t.j41(0,"nz-list-item"),t.EFF(1),t.k0s()),2&Ee){const ce=Ie.$implicit;t.R7$(),t.SpI(" ",ce.replace("+","")," ")}}function x(Ee,Ie){if(1&Ee&&(t.j41(0,"nz-descriptions-item",14)(1,"nz-list",15),t.DNE(2,N,2,1,"nz-list-item",16),t.k0s()()),2&Ee){const ce=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",ce.retractionReasons.split(";"))}}function oe(Ee,Ie){if(1&Ee&&(t.j41(0,"nz-descriptions",7),t.DNE(1,Q,3,3,"nz-descriptions-item",8)(2,x,3,1,"nz-descriptions-item",9),t.j41(3,"nz-descriptions-item",10)(4,"cvc-link-tag",11),t.EFF(5," Retraction Watch Homepage "),t.k0s(),t.j41(6,"cvc-link-tag",12),t.EFF(7," Retraction Watch Database "),t.k0s()()()),2&Ee){const ce=t.XpG();t.Y8G("nzColumn",1),t.R7$(),t.Y8G("ngIf",ce.retractionDate),t.R7$(),t.Y8G("ngIf",ce.retractionReasons)}}let ee=(()=>{class Ee{constructor(){this.enablePopover=!0}set retractionNature(ce){this._retractionNature=ce,ce&&("Retraction"==ce?(this.tagStatus="error",this.retracted=!0):(this.tagStatus="warning",this.retracted=!1))}get retractionNature(){return this._retractionNature}ngOnInit(){if(void 0===this.retractionNature)throw new Error("Must pass a valid retractionNature to cvc-status-tag component");if(void 0===this.retractionDate)throw new Error("Must pass a valid retractionDate to cvc-status-tag component");if(void 0===this.retractionReasons)throw new Error("Must pass a valid retractionReasons to cvc-status-tag component")}static#e=this.\u0275fac=function(Pe){return new(Pe||Ee)};static#t=this.\u0275cmp=t.VBU({type:Ee,selectors:[["cvc-retraction-status-tag"]],inputs:{retractionNature:"retractionNature",retractionDate:"retractionDate",retractionReasons:"retractionReasons",enablePopover:"enablePopover"},decls:3,vars:1,consts:[["retractionPopover",""],["nz-popover","","nzPopoverPlacement","left",3,"nzColor","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTitle","nzPopoverTrigger",4,"ngIf"],["nz-popover","","nzPopoverPlacement","left",3,"nzColor","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTitle","nzPopoverTrigger"],["nz-icon","","nzType","close-circle",4,"ngIf"],["nz-icon","","nzType","exclamation-circle",4,"ngIf"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","Date",4,"ngIf"],["nzTitle","Reasons",4,"ngIf"],["nzTitle","Links"],["href","https://retractionwatch.com/"],["href","http://retractiondatabase.org/RetractionSearch.aspx?"],["nzTitle","Date"],["nzTitle","Reasons"],["nzSize","small"],[4,"ngFor","ngForOf"]],template:function(Pe,ve){1&Pe&&t.DNE(0,P,6,12,"nz-tag",1)(1,oe,8,3,"ng-template",null,0,t.C5r),2&Pe&&t.Y8G("ngIf",ve.tagStatus)},dependencies:[r.Sq,r.bT,m.s,e.Dn,z.L_,j.xA,j.gr,R.eE,R.lQ,$.a,r.PV,k.N],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}"]})}return Ee})()},174:($t,De,a)=>{a.d(De,{u:()=>I});var t=a(177),r=a(5699),m=a(5103),e=a(1236),z=a(2e3),j=a(2617),R=a(4917),$=a(7054),k=a(3953);let I=(()=>{class w{static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275mod=k.$C({type:w});static#n=this.\u0275inj=k.G2t({imports:[t.MD,r.T,m.Y3,e.MC,z.WF,j.rD,R.i,$.L]})}return w})()},311:($t,De,a)=>{a.d(De,{g:()=>w});var t=a(3953),r=a(177),m=a(5699),e=a(5103);function z(P,Q){1&P&&t.nrm(0,"i",7)}function j(P,Q){1&P&&t.nrm(0,"i",8)}function R(P,Q){1&P&&t.nrm(0,"i",9)}function $(P,Q){1&P&&t.nrm(0,"i",10)}function k(P,Q){1&P&&t.nrm(0,"i",10)}function I(P,Q){if(1&P&&(t.j41(0,"nz-tag",1),t.qex(1,2),t.DNE(2,z,1,0,"i",3)(3,j,1,0,"i",4)(4,R,1,0,"i",5)(5,$,1,0,"i",6)(6,k,1,0,"i",6),t.bVm(),t.EFF(7),t.nI1(8,"titlecase"),t.k0s()),2&P){const N=t.XpG();t.Y8G("nzColor",N.tagStatus),t.R7$(),t.Y8G("ngSwitch",N.tagStatus),t.R7$(),t.Y8G("ngSwitchCase","success"),t.R7$(),t.Y8G("ngSwitchCase","error"),t.R7$(),t.Y8G("ngSwitchCase","warning"),t.R7$(),t.Y8G("ngSwitchCase","processing"),t.R7$(),t.Y8G("ngSwitchCase","default"),t.R7$(),t.SpI(" ",t.bMT(8,8,N.status),"\n")}}let w=(()=>{class P{constructor(){this.statusColorMap={ACCEPTED:"success",REJECTED:"error",SUBMITTED:"warning",NEW:"processing",SUPERSEDED:"default",OPEN:"error",RESOLVED:"default"}}set status(N){this._status=N,N&&(this.tagStatus=this.statusColorMap[N])}get status(){return this._status}ngOnInit(){if(void 0===this.status)throw new Error("Must pass a valid EvidenceStatus, RevisionStatus, or FlagState to cvc-status-tag component")}static#e=this.\u0275fac=function(x){return new(x||P)};static#t=this.\u0275cmp=t.VBU({type:P,selectors:[["cvc-status-tag"]],inputs:{status:"status"},decls:1,vars:1,consts:[[3,"nzColor",4,"ngIf"],[3,"nzColor"],[3,"ngSwitch"],["nz-icon","","nzType","check-circle",4,"ngSwitchCase"],["nz-icon","","nzType","close-circle",4,"ngSwitchCase"],["nz-icon","","nzType","exclamation-circle",4,"ngSwitchCase"],["nz-icon","",4,"ngSwitchCase"],["nz-icon","","nzType","check-circle"],["nz-icon","","nzType","close-circle"],["nz-icon","","nzType","exclamation-circle"],["nz-icon",""]],template:function(x,oe){1&x&&t.DNE(0,I,9,10,"nz-tag",0),2&x&&t.Y8G("ngIf",oe.tagStatus)},dependencies:[r.bT,r.ux,r.e1,m.s,e.Dn,r.PV],encapsulation:2})}return P})()},9590:($t,De,a)=>{a.d(De,{R:()=>z});var t=a(177),r=a(5699),m=a(5103),e=a(3953);let z=(()=>{class j{static#e=this.\u0275fac=function(k){return new(k||j)};static#t=this.\u0275mod=e.$C({type:j});static#n=this.\u0275inj=e.G2t({imports:[t.MD,r.T,m.Y3]})}return j})()},4247:($t,De,a)=>{a.d(De,{L:()=>m});var t=a(3953);const r=["*"];let m=(()=>{class e{constructor(){}static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-tag-group"]],ngContentSelectors:r,decls:1,vars:0,template:function(R,$){1&R&&(t.NAR(),t.SdG(0))},styles:["[_nghost-%COMP%] >*:first-child nz-tag{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}[_nghost-%COMP%] >*:last-child nz-tag{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px;border-left-color:#e9e9e9}"]})}return e})()},2502:($t,De,a)=>{a.d(De,{u:()=>m});var t=a(177),r=a(3953);let m=(()=>{class e{static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},7855:($t,De,a)=>{a.d(De,{M:()=>m});var t=a(3953);const r=["*"];let m=(()=>{class e{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275cmp=t.VBU({type:e,selectors:[["cvc-tag-list"]],hostVars:4,hostBindings:function(R,$){2&R&&t.AVh("xs","xs"===$.size||!$.size)("sm","sm"===$.size)},inputs:{size:"size"},ngContentSelectors:r,decls:2,vars:0,consts:[[1,"tag-list"]],template:function(R,$){1&R&&(t.NAR(),t.j41(0,"div",0),t.SdG(1),t.k0s())},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{display:inline-block}[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*:last-child{margin-right:-8px}.xs[_nghost-%COMP%]{margin-bottom:-4px}.xs[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:4px}.sm[_nghost-%COMP%]{margin-bottom:-8px}.sm[_nghost-%COMP%] .tag-list[_ngcontent-%COMP%] >*{margin-bottom:8px}"],changeDetection:0})}return e})()},2142:($t,De,a)=>{a.d(De,{x:()=>m});var t=a(177),r=a(3953);let m=(()=>{class e{static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},5652:($t,De,a)=>{a.d(De,{u:()=>ve});var t=a(9199),r=a(6354),m=a(5964),e=a(3953),z=a(9145),j=a(177),R=a(5103),$=a(5703),k=a(2e3),I=a(7679),w=a(7855),P=a(6726),Q=a(2143),N=a(1774);function x(pe,U){if(1&pe&&(e.nrm(0,"i",12),e.EFF(1)),2&pe){const M=e.XpG().ngIf;e.R7$(),e.Lme(" ",M.displayType,":\xa0",M.citation," ")}}function oe(pe,U){if(1&pe&&e.nrm(0,"cvc-retraction-status-tag",15),2&pe){const M=e.XpG(2).ngIf;e.Y8G("retractionNature",M.retractionNature)("retractionDate",M.retractionDate)("retractionReasons",M.retractionReasons)("enablePopover",!1)}}function ee(pe,U){if(1&pe&&(e.j41(0,"cvc-link-tag",13),e.EFF(1),e.k0s(),e.DNE(2,oe,1,4,"cvc-retraction-status-tag",14)),2&pe){const M=e.XpG().ngIf;e.Y8G("href",M.sourceUrl)("tooltip","View on "+M.displayType),e.R7$(),e.SpI(" ",M.displayType+":"+M.citationId," "),e.R7$(),e.Y8G("ngIf",M.retractionNature&&M.retractionDate&&M.retractionReasons)}}function Ee(pe,U){1&pe&&e.nrm(0,"cvc-clinical-trial-tag",17),2&pe&&e.Y8G("clinicalTrial",U.$implicit)("enablePopover",!1)}function Ie(pe,U){if(1&pe&&(e.qex(0),e.j41(1,"cvc-tag-list"),e.DNE(2,Ee,1,2,"cvc-clinical-trial-tag",16),e.k0s(),e.bVm()),2&pe){const M=e.XpG().ngIf;e.R7$(2),e.Y8G("ngForOf",M.clinicalTrials)}}function ce(pe,U){1&pe&&e.EFF(0," -- ")}function Pe(pe,U){if(1&pe&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,x,2,2,"ng-template",null,0,e.C5r)(4,ee,3,4,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",6)(7,"nz-descriptions-item",7),e.EFF(8),e.k0s(),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s(),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.DNE(14,Ie,3,1,"ng-container",11)(15,ce,1,0,"ng-template",null,2,e.C5r),e.k0s()()(),e.bVm()),2&pe){const M=U.ngIf,te=e.sdS(3),ge=e.sdS(5),T=e.sdS(16);e.R7$(),e.Y8G("nzTitle",te)("nzExtra",ge),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(2),e.SpI(" ",M.title," "),e.R7$(2),e.SpI(" ",M.fullJournalTitle," "),e.R7$(2),e.SpI(" ",M.evidenceItemCount," "),e.R7$(2),e.Y8G("ngIf",M.clinicalTrials&&M.clinicalTrials.length>0)("ngIfElse",T)}}let ve=(()=>{class pe{constructor(M){this.gql=M}ngOnInit(){if(null==this.sourceId)throw new Error("cvc-source-popover requires valid sourceId input.");this.source$=this.gql.watch({sourceId:this.sourceId}).valueChanges.pipe((0,r.T)(({data:M})=>M?.sourcePopover),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(te){return new(te||pe)(e.rXU(z.jme))};static#t=this.\u0275cmp=e.VBU({type:pe,selectors:[["cvc-source-popover"]],inputs:{sourceId:"sourceId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noTrials",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Title","nzSpan","2"],["nzTitle","Journal","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Clinical Trials:","nzSpan","2"],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","civic-source","nzTheme","twotone","nzTwotoneColor","#F9BA45"],[3,"href","tooltip"],[3,"retractionNature","retractionDate","retractionReasons","enablePopover",4,"ngIf"],[3,"retractionNature","retractionDate","retractionReasons","enablePopover"],[3,"clinicalTrial","enablePopover",4,"ngFor","ngForOf"],[3,"clinicalTrial","enablePopover"]],template:function(te,ge){1&te&&(e.j41(0,"div",3),e.DNE(1,Pe,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&te&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,ge.source$)))},dependencies:[j.Sq,j.bT,R.Dn,$.cK,k.xA,k.gr,I.a,w.M,P.X,Q.n,N.L9],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return pe})()},7683:($t,De,a)=>{a.d(De,{B:()=>I});var t=a(177),r=a(5703),m=a(7054),e=a(2e3),z=a(2142),j=a(9619),R=a(5103),$=a(174),k=a(3953);let I=(()=>{class w{static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275mod=k.$C({type:w});static#n=this.\u0275inj=k.G2t({imports:[t.MD,R.Y3,r.Ti,e.WF,m.L,z.x,j.u,$.u]})}return w})()},9062:($t,De,a)=>{a.d(De,{D:()=>M});var t=a(6514),r=a(3953),m=a(8335),e=a(177),z=a(1188),j=a(5103),R=a(1236),$=a(5699),k=a(5652),I=a(2287),w=a(3075);const P=te=>({deprecated:te});function Q(te,ge){}function N(te,ge){if(1&te&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,Q,0,0,"ng-template",7),r.k0s(),r.bVm()),2&te){const T=r.XpG(),D=r.sdS(2);r.R7$(),r.Y8G("routerLink",T.source.link),r.R7$(),r.Y8G("ngTemplateOutlet",D)}}function x(te,ge){}function oe(te,ge){if(1&te&&r.nrm(0,"cvc-source-popover",9),2&te){const T=r.XpG(2);r.Y8G("sourceId",T.source.id)}}function ee(te,ge){if(1&te){const T=r.RV6();r.j41(0,"nz-tag",8),r.mxI("nzPopoverVisibleChange",function(A){r.eBV(T);const X=r.XpG();return r.DH7(X.popoverVisible,A)||(X.popoverVisible=A),r.Njj(A)}),r.bIt("nzOnClose",function(A){r.eBV(T);const X=r.XpG();return r.Njj(X.itemClosed(A))}),r.DNE(1,x,0,0,"ng-template",7),r.k0s(),r.DNE(2,oe,1,1,"ng-template",null,3,r.C5r)}if(2&te){const T=r.sdS(3),D=r.XpG(),A=r.sdS(6);r.Y8G("ngClass",r.eq3(7,P,D.source.deprecated))("nzPopoverMouseEnterDelay",D.onCloseClicked?0:.5)("nzPopoverContent",T)("nzPopoverTrigger",D.enablePopover?"hover":null),r.R50("nzPopoverVisible",D.popoverVisible),r.Y8G("nzMode",D.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",A)}}function Ee(te,ge){}function Ie(te,ge){if(1&te&&r.DNE(0,Ee,0,0,"ng-template",7),2&te){r.XpG();const T=r.sdS(2);r.Y8G("ngTemplateOutlet",T)}}function ce(te,ge){if(1&te&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&te){const T=r.XpG(3);r.R7$(),r.SpI(" ",r.i5U(2,1,T.displayName,50)," ")}}function Pe(te,ge){if(1&te&&(r.qex(0),r.EFF(1),r.bVm()),2&te){const T=r.XpG(3);r.R7$(),r.SpI(" ",T.displayName," ")}}function ve(te,ge){if(1&te&&(r.qex(0),r.DNE(1,ce,3,4,"ng-container",11)(2,Pe,2,1,"ng-container",11),r.bVm()),2&te){const T=r.XpG(2);r.R7$(),r.Y8G("ngIf",T.truncateLongName),r.R7$(),r.Y8G("ngIf",!T.truncateLongName)}}function pe(te,ge){if(1&te&&r.EFF(0),2&te){const T=r.XpG(2);r.SpI(" SID:",T.source.id," ")}}function U(te,ge){if(1&te&&(r.nrm(0,"i",10),r.nI1(1,"entityColor"),r.DNE(2,ve,3,2,"ng-container",5)(3,pe,1,1,"ng-template",null,4,r.C5r)),2&te){const T=r.sdS(4),D=r.XpG();r.Y8G("nzTwotoneColor",r.bMT(1,3,"Source")),r.R7$(2),r.Y8G("ngIf","normal"===D.mode)("ngIfElse",T)}}let M=(()=>{class te extends t.s{set source(T){if(!T)throw new Error("source-tag source input requires SourceWithDisplayName or SourceWithCitation.");this._source=T,this.displayName="displayName"in this.source?this.source.displayName:this.sourceTypeDisplay.transform(this.source.sourceType)+": "+this.source.citation}get source(){return this._source}constructor(T){super(),this.sourceTypeDisplay=T,this.enablePopover=!0,this.linked=!0,this.mode="normal",this.truncateLongName=!1}idFunction(){return this.source.id}static#e=this.\u0275fac=function(D){return new(D||te)(r.rXU(m.Q))};static#t=this.\u0275cmp=r.VBU({type:te,selectors:[["cvc-source-tag"]],inputs:{source:"source",enablePopover:"enablePopover",linked:"linked",mode:"mode",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["sourcePopover",""],["concise",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzPopoverVisibleChange","nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzPopoverVisible","nzMode"],[3,"sourceId"],["nz-icon","","nzTheme","twotone","nzType","civic-source",3,"nzTwotoneColor"],[4,"ngIf"]],template:function(D,A){if(1&D&&r.DNE(0,N,3,2,"ng-container",5)(1,ee,4,9,"ng-template",null,0,r.C5r)(3,Ie,1,1,"ng-template",null,1,r.C5r)(5,U,5,5,"ng-template",null,2,r.C5r),2&D){const X=r.sdS(4);r.Y8G("ngIf",A.linked)("ngIfElse",X)}},dependencies:[e.YU,e.bT,e.T3,z.Wk,j.Dn,R.L_,$.s,k.u,I.H,w.R],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return te})()},1209:($t,De,a)=>{a.d(De,{k:()=>k});var t=a(177),r=a(1236),m=a(1188),e=a(7683),z=a(5699),j=a(5103),R=a(4917),$=a(3953);let k=(()=>{class I{static#e=this.\u0275fac=function(Q){return new(Q||I)};static#t=this.\u0275mod=$.$C({type:I});static#n=this.\u0275inj=$.G2t({imports:[t.MD,m.iI,j.Y3,r.MC,z.T,e.B,R.i]})}return I})()},3287:($t,De,a)=>{a.d(De,{a:()=>U});var t=a(6354),r=a(5964),m=a(9199),e=a(3953),z=a(9145),j=a(177),R=a(5703),$=a(2e3),k=a(5103),I=a(7391),w=a(5699),P=a(5154),Q=a(7679),N=a(1774),x=a(2287);function oe(M,te){if(1&M&&(e.nrm(0,"i",12),e.EFF(1),e.nI1(2,"truncate")),2&M){const ge=e.XpG().ngIf;e.R7$(),e.SpI(" ",e.i5U(2,1,ge.name,50)," ")}}function ee(M,te){if(1&M&&(e.j41(0,"cvc-link-tag",14),e.EFF(1),e.k0s()),2&M){const ge=e.XpG(2).ngIf;e.Y8G("href",ge.therapyUrl),e.R7$(),e.SpI(" ",ge.ncitId," ")}}function Ee(M,te){if(1&M&&e.DNE(0,ee,2,2,"cvc-link-tag",13),2&M){const ge=e.XpG().ngIf,T=e.sdS(7);e.Y8G("ngIf",ge.ncitId)("ngIfElse",T)}}function Ie(M,te){1&M&&(e.j41(0,"span",15),e.EFF(1,"No NCIt ID"),e.k0s())}function ce(M,te){if(1&M&&(e.j41(0,"nz-descriptions-item",16),e.EFF(1),e.k0s()),2&M){const ge=e.XpG().ngIf;e.R7$(),e.SpI(" ",ge.name," ")}}function Pe(M,te){if(1&M&&(e.j41(0,"nz-tag",19),e.EFF(1),e.nI1(2,"truncate"),e.k0s()),2&M){const ge=te.$implicit;e.Y8G("nzTooltipTitle",ge),e.R7$(),e.JRh(e.bMT(2,2,ge))}}function ve(M,te){if(1&M&&(e.j41(0,"nz-descriptions-item",17),e.DNE(1,Pe,3,4,"nz-tag",18),e.k0s()),2&M){const ge=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",ge.therapyAliases)}}function pe(M,te){if(1&M&&(e.qex(0),e.j41(1,"nz-card",5),e.DNE(2,oe,3,4,"ng-template",null,0,e.C5r)(4,Ee,1,2,"ng-template",null,1,e.C5r)(6,Ie,2,0,"ng-template",null,2,e.C5r),e.j41(8,"nz-descriptions",6),e.DNE(9,ce,2,1,"nz-descriptions-item",7)(10,ve,2,1,"nz-descriptions-item",8),e.j41(11,"nz-descriptions-item",9),e.EFF(12),e.k0s(),e.j41(13,"nz-descriptions-item",10),e.EFF(14),e.k0s(),e.j41(15,"nz-descriptions-item",11),e.EFF(16),e.k0s()()(),e.bVm()),2&M){const ge=te.ngIf,T=e.sdS(3),D=e.sdS(5);e.R7$(),e.Y8G("nzTitle",T)("nzExtra",D),e.R7$(7),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",ge.name.length>50),e.R7$(),e.Y8G("ngIf",ge.therapyAliases.length>0),e.R7$(2),e.SpI(" ",ge.assertionCount," "),e.R7$(2),e.SpI(" ",ge.evidenceItemCount," "),e.R7$(2),e.SpI(" ",ge.molecularProfileCount," ")}}let U=(()=>{class M{constructor(ge){this.gql=ge}ngOnInit(){if(null==this.therapyId)throw new Error("cvc-therapy-popover requires valid therapyId input.");this.therapy$=this.gql.watch({therapyId:this.therapyId}).valueChanges.pipe((0,t.T)(({data:ge})=>ge?.therapyPopover),(0,r.p)(m.kP))}static#e=this.\u0275fac=function(T){return new(T||M)(e.rXU(z.RQS))};static#t=this.\u0275cmp=e.VBU({type:M,selectors:[["cvc-therapy-popover"]],inputs:{therapyId:"therapyId"},decls:3,vars:3,consts:[["cardTitle",""],["linkout",""],["noNcitId",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Name","nzSpan","2",4,"ngIf"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Assertions","nzSpan","2"],["nzTitle","Evidence","nzSpan","2"],["nzTitle","Molecular Profiles","nzSpan","2"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"],["tooltip","View on NCI Thesaurus",3,"href",4,"ngIf","ngIfElse"],["tooltip","View on NCI Thesaurus",3,"href"],["nz-typography","","nzType","secondary"],["nzTitle","Name","nzSpan","2"],["nzTitle","Aliases","nzSpan","2"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle"]],template:function(T,D){1&T&&(e.j41(0,"div",3),e.DNE(1,pe,17,8,"ng-container",4),e.nI1(2,"ngrxPush"),e.k0s()),2&T&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,D.therapy$)))},dependencies:[j.Sq,j.bT,R.cK,$.xA,$.gr,k.Dn,I.Di,w.s,P.LH,Q.a,N.L9,x.H],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return M})()},3126:($t,De,a)=>{a.d(De,{t:()=>P});var t=a(177),r=a(1188),m=a(5703),e=a(2e3),z=a(7054),j=a(5103),R=a(7391),$=a(4917),k=a(5699),I=a(5154),w=a(3953);let P=(()=>{class Q{static#e=this.\u0275fac=function(oe){return new(oe||Q)};static#t=this.\u0275mod=w.$C({type:Q});static#n=this.\u0275inj=w.G2t({imports:[t.MD,r.iI,m.Ti,e.WF,j.Y3,R.kT,k.T,I.Qt,z.L,$.i]})}return Q})()},9563:($t,De,a)=>{a.d(De,{R:()=>ce});var t=a(6514),r=a(3953),m=a(177),e=a(1188),z=a(5699),j=a(1236),R=a(5103),$=a(3287),k=a(2287);function I(Pe,ve){}function w(Pe,ve){if(1&Pe&&(r.qex(0),r.j41(1,"a",6),r.DNE(2,I,0,0,"ng-template",7),r.k0s(),r.bVm()),2&Pe){const pe=r.XpG(),U=r.sdS(2);r.R7$(),r.Y8G("routerLink",pe.therapy.link),r.R7$(),r.Y8G("ngTemplateOutlet",U)}}function P(Pe,ve){}function Q(Pe,ve){if(1&Pe&&r.nrm(0,"cvc-therapy-popover",9),2&Pe){const pe=r.XpG(2);r.Y8G("therapyId",pe.therapy.id)}}function N(Pe,ve){if(1&Pe){const pe=r.RV6();r.j41(0,"nz-tag",8),r.bIt("nzOnClose",function(M){r.eBV(pe);const te=r.XpG();return r.Njj(te.itemClosed(M))}),r.DNE(1,P,0,0,"ng-template",7),r.k0s(),r.DNE(2,Q,1,1,"ng-template",null,3,r.C5r)}if(2&Pe){const pe=r.sdS(3),U=r.XpG(),M=r.sdS(6);r.Y8G("nzPopoverMouseEnterDelay",U.onCloseClicked?0:.5)("nzPopoverContent",pe)("nzPopoverTrigger",U.enablePopover?"hover":null)("nzMode",U.onCloseClicked?"closeable":"default"),r.R7$(),r.Y8G("ngTemplateOutlet",M)}}function x(Pe,ve){}function oe(Pe,ve){if(1&Pe&&r.DNE(0,x,0,0,"ng-template",7),2&Pe){r.XpG();const pe=r.sdS(2);r.Y8G("ngTemplateOutlet",pe)}}function ee(Pe,ve){if(1&Pe&&(r.qex(0),r.EFF(1),r.nI1(2,"truncate"),r.bVm()),2&Pe){const pe=r.XpG(2);r.R7$(),r.SpI(" ",r.i5U(2,1,pe.therapy.name,21)," ")}}function Ee(Pe,ve){if(1&Pe&&r.EFF(0),2&Pe){const pe=r.XpG(2);r.SpI(" ",pe.therapy.name," ")}}function Ie(Pe,ve){if(1&Pe&&(r.nrm(0,"i",10),r.DNE(1,ee,3,4,"ng-container",5)(2,Ee,1,1,"ng-template",null,4,r.C5r)),2&Pe){const pe=r.sdS(3),U=r.XpG();r.R7$(),r.Y8G("ngIf",U.truncateLongName)("ngIfElse",pe)}}let ce=(()=>{class Pe extends t.s{constructor(){super(...arguments),this.enablePopover=!0,this.truncateLongName=!1}set therapy(pe){if(!pe)throw new Error("therapy-tag Input requires LinkableTherapy.");this._therapy=pe}get therapy(){return this._therapy}idFunction(){return this.therapy.id}static#e=this.\u0275fac=(()=>{let pe;return function(M){return(pe||(pe=r.xGo(Pe)))(M||Pe)}})();static#t=this.\u0275cmp=r.VBU({type:Pe,selectors:[["cvc-therapy-tag"]],inputs:{therapy:"therapy",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[r.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["therapyPopover",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","","nzPopoverPlacement","right",3,"nzOnClose","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"therapyId"],["nz-icon","","nzType","civic-therapy","nzTheme","twotone","nzTwotoneColor","#AC3996"]],template:function(U,M){if(1&U&&r.DNE(0,w,3,2,"ng-container",5)(1,N,4,5,"ng-template",null,0,r.C5r)(3,oe,1,1,"ng-template",null,1,r.C5r)(5,Ie,4,2,"ng-template",null,2,r.C5r),2&U){const te=r.sdS(4);r.Y8G("ngIf",M.linked)("ngIfElse",te)}},dependencies:[m.bT,m.T3,e.Wk,z.s,j.L_,R.Dn,$.a,k.H],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}"],changeDetection:0})}return Pe})()},9802:($t,De,a)=>{a.d(De,{_:()=>k});var t=a(177),r=a(1188),m=a(5699),e=a(1236),z=a(5103),j=a(4917),R=a(3126),$=a(3953);let k=(()=>{class I{static#e=this.\u0275fac=function(Q){return new(Q||I)};static#t=this.\u0275mod=$.$C({type:I});static#n=this.\u0275inj=$.G2t({imports:[t.MD,r.iI,m.T,e.MC,z.Y3,j.i,R.t]})}return I})()},3548:($t,De,a)=>{a.d(De,{A:()=>ge});var t=a(9199),r=a(6354),m=a(5964),e=a(3953),z=a(9145),j=a(177),R=a(1188),$=a(5703),k=a(7529),I=a(2e3),w=a(5699),P=a(5103),Q=a(7685),N=a(3245),x=a(7679),oe=a(1774),ee=a(3075);function Ee(T,D){if(1&T&&(e.nrm(0,"i",13),e.nI1(1,"entityColor"),e.EFF(2)),2&T){const A=e.XpG().ngIf;e.Y8G("nzTwotoneColor",e.bMT(1,2,"Variant")),e.R7$(2),e.SpI(" ",A.name," ")}}function Ie(T,D){if(1&T&&e.nrm(0,"cvc-feature-tag",14),2&T){const A=e.XpG().ngIf;e.Y8G("enablePopover",!1)("feature",A.feature)}}function ce(T,D){if(1&T&&(e.j41(0,"nz-tag"),e.EFF(1),e.k0s()),2&T){const A=D.$implicit;e.R7$(),e.JRh(A)}}function Pe(T,D){if(1&T&&(e.j41(0,"nz-descriptions-item",15),e.DNE(1,ce,2,1,"nz-tag",16),e.k0s()),2&T){const A=e.XpG().ngIf;e.R7$(),e.Y8G("ngForOf",A.variantAliases)}}function ve(T,D){if(1&T&&(e.j41(0,"nz-descriptions-item",17)(1,"cvc-link-tag",18),e.EFF(2),e.k0s()()),2&T){const A=e.XpG().ngIf;e.R7$(),e.Mz_("href","https://reg.genome.network/allele/",A.alleleRegistryId,".html"),e.R7$(),e.SpI(" ",A.alleleRegistryId," ")}}function pe(T,D){if(1&T&&(e.j41(0,"a",19)(1,"nz-tag",20),e.nrm(2,"i",21),e.EFF(3),e.k0s()()),2&T){const A=e.XpG().ngIf;e.Mz_("routerLink","/variants/",A.id,"/flags"),e.R7$(3),e.SpI(" Flags (",A.flags.totalCount,") ")}}function U(T,D){if(1&T&&(e.j41(0,"a",19)(1,"nz-tag",22),e.nrm(2,"i",23),e.EFF(3),e.k0s()()),2&T){const A=e.XpG().ngIf;e.Mz_("routerLink","/variants/",A.id,"/revisions"),e.R7$(3),e.SpI(" Revisions (",A.revisions.totalCount,") ")}}function M(T,D){if(1&T&&(e.j41(0,"a",19)(1,"nz-tag",24),e.nrm(2,"i",25),e.EFF(3),e.k0s()()),2&T){const A=e.XpG().ngIf;e.Mz_("routerLink","/variants/",A.id,"/comments"),e.R7$(3),e.SpI(" Comments (",A.comments.totalCount,") ")}}function te(T,D){if(1&T&&(e.qex(0),e.j41(1,"nz-card",4),e.DNE(2,Ee,3,4,"ng-template",null,0,e.C5r)(4,Ie,1,2,"ng-template",null,1,e.C5r),e.j41(6,"nz-descriptions",5),e.DNE(7,Pe,2,1,"nz-descriptions-item",6)(8,ve,3,3,"nz-descriptions-item",7),e.j41(9,"nz-descriptions-item",8),e.EFF(10),e.k0s()(),e.j41(11,"nz-row",9)(12,"nz-col",10)(13,"nz-space",11),e.DNE(14,pe,4,3,"a",12)(15,U,4,3,"a",12)(16,M,4,3,"a",12),e.k0s()()()(),e.bVm()),2&T){const A=D.ngIf,X=e.sdS(3),se=e.sdS(5);e.R7$(),e.Y8G("nzTitle",X)("nzExtra",se),e.R7$(5),e.Y8G("nzColumn",2),e.R7$(),e.Y8G("ngIf",A.variantAliases.length>0),e.R7$(),e.Y8G("ngIf","GeneVariant"==A.__typename&&A.alleleRegistryId&&"unregistered"!=A.alleleRegistryId),e.R7$(2),e.SpI(" ",A.molecularProfiles.totalCount," ")}}let ge=(()=>{class T{constructor(A){this.gql=A}ngOnInit(){if(void 0===this.variantId)throw new Error("Must pass a variant ID into the variant popover component.");this.variant$=this.gql.watch({variantId:this.variantId}).valueChanges.pipe((0,r.T)(({data:A})=>A?.variant),(0,m.p)(t.kP))}static#e=this.\u0275fac=function(X){return new(X||T)(e.rXU(z.l20))};static#t=this.\u0275cmp=e.VBU({type:T,selectors:[["cvc-variant-popover"]],inputs:{variantId:"variantId"},decls:3,vars:3,consts:[["cardTitle",""],["feature",""],["id","popover-content"],[4,"ngIf"],["nzBordered","false","id","card-content",3,"nzTitle","nzExtra"],["nzSize","small","nzBordered","true",3,"nzColumn"],["nzTitle","Aliases","nzSpan","2",4,"ngIf"],["nzTitle","Allele Registry ID","nzSpan","2",4,"ngIf"],["nzTitle","Molecular Profiles","nzSpan","2"],["id","entity-child-counts"],["nzSpan","24"],["nzSize","small"],[3,"routerLink",4,"nzSpaceItem"],["nz-icon","","nzTheme","twotone","nzType","civic-variant",3,"nzTwotoneColor"],[3,"enablePopover","feature"],["nzTitle","Aliases","nzSpan","2"],[4,"ngFor","ngForOf"],["nzTitle","Allele Registry ID","nzSpan","2"],["tooltip","View on the ClinGen Allele Registry",3,"href"],[3,"routerLink"],["nzColor","red"],["nz-icon","","nzType","civic-flag"],["nzColor","orange"],["nz-icon","","nzType","civic-revision"],["nzColor","blue"],["nz-icon","","nzType","civic-comment"]],template:function(X,se){1&X&&(e.j41(0,"div",2),e.DNE(1,te,17,6,"ng-container",3),e.nI1(2,"ngrxPush"),e.k0s()),2&X&&(e.R7$(),e.Y8G("ngIf",e.bMT(2,1,se.variant$)))},dependencies:[j.Sq,j.bT,R.Wk,$.cK,k.Uq,k.e,I.xA,I.gr,w.s,P.Dn,Q.U5,Q.Dq,N._,x.a,oe.L9,ee.R],styles:["[_nghost-%COMP%]{display:block;margin:-8px -12px}[_nghost-%COMP%] .ant-card-body{padding:0;margin-top:1px}[_nghost-%COMP%] .ant-descriptions-view{border:none}[_nghost-%COMP%] #entity-child-counts{border-top:1px solid #f0f0f0;padding:8px}[_nghost-%COMP%] #entity-child-counts nz-space{width:100%}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child{margin-right:0!important}[_nghost-%COMP%] #entity-child-counts nz-space-item:last-child nz-tag{margin-right:0}.popover-text[_ngcontent-%COMP%]{width:100%;padding:8px;border-bottom:1px solid #f0f0f0}#popover-content[_ngcontent-%COMP%]{min-width:350px;max-width:500px;min-height:125px}"]})}return T})()},6075:($t,De,a)=>{a.d(De,{$:()=>Q});var t=a(177),r=a(1188),m=a(5703),e=a(7529),z=a(2e3),j=a(5699),R=a(5103),$=a(7685),k=a(7054),I=a(4917),w=a(6912),P=a(3953);let Q=(()=>{class N{static#e=this.\u0275fac=function(ee){return new(ee||N)};static#t=this.\u0275mod=P.$C({type:N});static#n=this.\u0275inj=P.G2t({imports:[t.MD,r.iI,m.Ti,e.f3,z.WF,j.T,R.Y3,$.pc,I.i,w.l,k.L]})}return N})()},3100:($t,De,a)=>{a.d(De,{V:()=>U});var t=a(6514),r=a(505),m=a(3953),e=a(177),z=a(1188),j=a(5699),R=a(1236),$=a(5103),k=a(3548),I=a(2387),w=a(2287);const P=M=>({deprecated:M});function Q(M,te){}function N(M,te){if(1&M&&(m.qex(0),m.j41(1,"a",6),m.DNE(2,Q,0,0,"ng-template",7),m.k0s(),m.bVm()),2&M){const ge=m.XpG(),T=m.sdS(2);m.R7$(),m.Y8G("routerLink",ge.variant.link),m.R7$(),m.Y8G("ngTemplateOutlet",T)}}function x(M,te){}function oe(M,te){if(1&M&&m.nrm(0,"cvc-variant-popover",10),2&M){const ge=m.XpG(3);m.Y8G("variantId",ge.variant.id)}}function ee(M,te){if(1&M&&m.DNE(0,oe,1,1,"cvc-variant-popover",9),2&M){const ge=m.XpG(2);m.Y8G("ngIf",ge.enablePopover)}}function Ee(M,te){if(1&M){const ge=m.RV6();m.j41(0,"nz-tag",8),m.bIt("nzOnClose",function(D){m.eBV(ge);const A=m.XpG();return m.Njj(A.itemClosed(D))}),m.DNE(1,x,0,0,"ng-template",7),m.k0s(),m.DNE(2,ee,1,1,"ng-template",null,3,m.C5r)}if(2&M){const ge=m.sdS(3),T=m.XpG(),D=m.sdS(6);m.Y8G("ngClass",m.eq3(6,P,T.variant.deprecated))("nzPopoverMouseEnterDelay",T.onCloseClicked?0:.5)("nzPopoverContent",ge)("nzPopoverTrigger",T.enablePopover?"hover":null)("nzMode",T.onCloseClicked?"closeable":"default"),m.R7$(),m.Y8G("ngTemplateOutlet",D)}}function Ie(M,te){}function ce(M,te){if(1&M&&m.DNE(0,Ie,0,0,"ng-template",7),2&M){m.XpG();const ge=m.sdS(2);m.Y8G("ngTemplateOutlet",ge)}}function Pe(M,te){if(1&M&&(m.qex(0),m.EFF(1),m.nI1(2,"truncate"),m.bVm()),2&M){const ge=m.XpG(2);m.R7$(),m.SpI(" ",m.i5U(2,1,ge.variant.name,20)," ")}}function ve(M,te){if(1&M&&m.EFF(0),2&M){const ge=m.XpG(2);m.SpI(" ",ge.variant.name," ")}}function pe(M,te){if(1&M&&(m.j41(0,"cvc-icon-badges",11),m.nrm(1,"i",12),m.k0s(),m.DNE(2,Pe,3,4,"ng-container",5)(3,ve,1,1,"ng-template",null,4,m.C5r)),2&M){const ge=m.sdS(4),T=m.XpG();m.Y8G("flagged",T.variant.flagged)("entityColor",T.iconColor),m.R7$(),m.Y8G("nzTwotoneColor",T.iconColor),m.R7$(),m.Y8G("ngIf",T.truncateLongName)("ngIfElse",ge)}}let U=(()=>{class M extends t.s{constructor(){super(),this.enablePopover=!0,this.truncateLongName=!1,this.iconColor=(0,r.P)("Variant")}idFunction(){return this.variant.id}ngOnInit(){if(super.ngOnInit(),void 0===this.variant)throw new Error("cvc-variant-tag requires LinkableVariant input, none supplied.")}static#e=this.\u0275fac=function(T){return new(T||M)};static#t=this.\u0275cmp=m.VBU({type:M,selectors:[["cvc-variant-tag"]],inputs:{variant:"variant",enablePopover:"enablePopover",truncateLongName:"truncateLongName"},features:[m.Vt3],decls:7,vars:2,consts:[["tag",""],["unlinked",""],["tagContent",""],["popoverContent",""],["fullName",""],[4,"ngIf","ngIfElse"],[3,"routerLink"],[3,"ngTemplateOutlet"],["nz-popover","",3,"nzOnClose","ngClass","nzPopoverMouseEnterDelay","nzPopoverContent","nzPopoverTrigger","nzMode"],[3,"variantId",4,"ngIf"],[3,"variantId"],[3,"flagged","entityColor"],["nz-icon","","nzType","civic-variant","nzTheme","twotone",3,"nzTwotoneColor"]],template:function(T,D){if(1&T&&m.DNE(0,N,3,2,"ng-container",5)(1,Ee,4,8,"ng-template",null,0,m.C5r)(3,ce,1,1,"ng-template",null,1,m.C5r)(5,pe,5,5,"ng-template",null,2,m.C5r),2&T){const A=m.sdS(4);m.Y8G("ngIf",D.linked)("ngIfElse",A)}},dependencies:[e.YU,e.bT,e.T3,z.Wk,j.s,R.L_,$.Dn,k.A,I.N,w.H],styles:["[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.submitted, [_nghost-%COMP%] nz-tag.accepted, [_nghost-%COMP%] nz-tag.deprecated{border-right-width:2px}[_nghost-%COMP%] nz-tag.rejected, [_nghost-%COMP%] nz-tag.deprecated{border-color:#e6e6e6;background-color:#fff;color:#999999d9}[_nghost-%COMP%] nz-tag.submitted{border-color:#ffe58f}[_nghost-%COMP%] nz-tag.accepted{border-color:#b7eb8f}[_nghost-%COMP%]{display:inline-block}"],changeDetection:0})}return M})()},7051:($t,De,a)=>{a.d(De,{U:()=>I});var t=a(177),r=a(1188),m=a(5699),e=a(5103),z=a(1236),j=a(6075),R=a(4917),$=a(4994),k=a(3953);let I=(()=>{class w{static#e=this.\u0275fac=function(N){return new(N||w)};static#t=this.\u0275mod=k.$C({type:w});static#n=this.\u0275inj=k.G2t({imports:[t.MD,r.iI,m.T,z.MC,e.Y3,R.i,j.$,$.a]})}return w})()},463:($t,De,a)=>{a.d(De,{E:()=>r});var t=a(3953);let r=(()=>{class m{transform(z,j){return z?"verbose"==j?"TIER_I_LEVEL_A"===z?"Tier I - Level A":"TIER_I_LEVEL_B"===z?"Tier I - Level B":"TIER_II_LEVEL_C"===z?"Tier II - Level C":"TIER_II_LEVEL_D"===z?"Tier II - Level D":"TIER_III"===z?"Tier III":"TIER_IV"===z?"Tier IV":"Not Applicable":z.toUpperCase().replace("TIER","").replace("LEVEL","").replace(/ /g,"").replace(/_/g,""):""}static#e=this.\u0275fac=function(j){return new(j||m)};static#t=this.\u0275pipe=t.EJ8({name:"formatAmp",type:m,pure:!0})}return m})()},3075:($t,De,a)=>{a.d(De,{R:()=>m});var t=a(505),r=a(3953);let m=(()=>{class e{transform(j){return(0,t.P)(j)}static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275pipe=r.EJ8({name:"entityColor",type:e,pure:!0})}return e})()},1845:($t,De,a)=>{a.d(De,{f:()=>r});var t=a(3953);let r=(()=>{class m{transform(z){if(z){if("POSITIVE"===z)return"+";if("NEGATIVE"===z)return"-";let R=z.toLowerCase().replace(/_/g," ").split(" ");for(var j=0;j{a.d(De,{pW:()=>j});var t=a(9145),r=a(896),m=a(3953);const e=new Map([[t.iHU.A,"Validated association"],[t.iHU.B,"Clinical evidence"],[t.iHU.C,"Case study"],[t.iHU.D,"Preclinical evidence"],[t.iHU.E,"Inferential association"]]),z=new Map([[1,"One Star"],[2,"Two Stars"],[3,"Three Stars"],[4,"Four Stars"],[5,"Five Stars"]]);let j=(()=>{class R{transform(k,I="display-string"){return null==k?"":"short-string"===I&&1===k.toString().length?"string"==typeof k?k:k.toString():"icon-name"===I?"number"==typeof k?`civic-rating${k}`:1===k.length?`civic-level${k.toLowerCase()}`:`civic-${k.replace(/_/g,"").toLowerCase()}`:"number"==typeof k?z.get(k)||k.toString():1===k.length?e.get(k)||k:(0,r.u)(k)}static#e=this.\u0275fac=function(I){return new(I||R)};static#t=this.\u0275pipe=m.EJ8({name:"evidenceEnumDisplay",type:R,pure:!0})}return R})()},8763:($t,De,a)=>{a.d(De,{k:()=>j});var t=a(9145);const r={evidenceType:{[t.M1P.Diagnostic]:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.M1P.Functional]:"Evidence pertains to a variant that alters biological function from the reference state",[t.M1P.Oncogenic]:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer",[t.M1P.Predictive]:"Evidence pertains to a variant's effect on therapeutic response",[t.M1P.Predisposing]:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.M1P.Prognostic]:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival"},assertionType:{[t.XEW.Diagnostic]:"Assertion pertains to a variant's impact on patient diagnosis (cancer subtype)",[t.XEW.Predictive]:"Assertion pertains to a variant's effect on therapeutic response",[t.XEW.Predisposing]:"Assertion pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations)",[t.XEW.Prognostic]:"Assertion pertains to a variant's impact on disease progression, severity, or patient survival",[t.XEW.Oncogenic]:"Assertion pertains to a somatic variant's role in driving tumor formation, growth, and other processes related to the Hallmarks of Cancer"},variantOrigin:{[t.Kkj.Somatic]:"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring",[t.Kkj.RareGermline]:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item",[t.Kkj.CommonGermline]:"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item",[t.Kkj.Unknown]:"The variant origin is uncertain based on the available evidence",[t.Kkj.Na]:"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin",[t.Kkj.Combined]:"Variants in the Molecular Profile span multiple Origin types."},evidenceLevel:{[t.iHU.A]:"Proven/consensus association in human medicine",[t.iHU.B]:"Clinical trial or other primary patient data supports association",[t.iHU.C]:"Individual case reports from clinical journals",[t.iHU.D]:"In vivo or in vitro models support association",[t.iHU.E]:"Indirect evidence"},evidenceLevelBrief:{[t.iHU.A]:"Validated association",[t.iHU.B]:"Clinical evidence",[t.iHU.C]:"Case Study",[t.iHU.D]:"Preclinical evidence",[t.iHU.E]:"Inferential association"},therapyInteractionType:{[t.qld.Combination]:"The therapies listed were used as part of a combination therapy approach",[t.qld.Sequential]:"The therapies listed were used at separate timepoints in the same treatment plan",[t.qld.Substitutes]:"The therapies listed are often considered to be of the same family, or behave similarly in a treatment setting"},evidenceRating:{1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods"}},m={significance:{PREDICTIVE:{ADVERSE_RESPONSE:{EvidenceItem:"Associated with an adverse response to theraputic treatment",Assertion:"Associated with an adverse response to theraputic treatment"},REDUCED_SENSITIVITY:{EvidenceItem:"Response to treatment is lower than seen in other treatment contexts",Assertion:"Response to treatment is lower than seen in other treatment contexts"},RESISTANCE:{EvidenceItem:"Associated with clinical or preclinical resistance to treatment",Assertion:"Associated with clinical or preclinical resistance to treatment"},SENSITIVITYRESPONSE:{EvidenceItem:"Associated with clinical or preclinical response to treatment",Assertion:"Associated with a clinical or preclinical response to treatment"},NA:{EvidenceItem:"Clinical Significance is not applicable",Assertion:"Clinical Significance is not applicable"}},DIAGNOSTIC:{POSITIVE:{EvidenceItem:"Associated with diagnosis of disease or subtype",Assertion:"Associated with diagnosis of disease or subtype"},NEGATIVE:{EvidenceItem:"Associated with lack of disease or subtype",Assertion:"Associated with lack of disease or subtype"}},PROGNOSTIC:{BETTER_OUTCOME:{EvidenceItem:"Demonstrates better than expected clinical outcome",Assertion:"Demonstrates better than expected clinical outcome"},POOR_OUTCOME:{EvidenceItem:"Demonstrates worse than expected clinical outcome",Assertion:"Demonstrates worse than expected clinical outcome"},Na:{EvidenceItem:"Clinical Significance is not applicable",Assertion:"Clinical Significance is not applicable"}},PREDISPOSING:{PATHOGENIC:{Assertion:"Very strong evidence the variant is pathogenic"},LIKELY_PATHOGENIC:{Assertion:"Strong evidence (>90% certainty) the variant is pathogenic"},BENIGN:{Assertion:"Very strong evidence the variant is benign"},LIKELY_BENIGN:{Assertion:"Not expected to have a major effect on disease"},UNCERTAIN_SIGNIFICANCE:{Assertion:"Does not meet the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"},Na:{EvidenceItem:"Clinical Significance is not applicable"},PREDISPOSITION:{EvidenceItem:"Germline variant has predisposing potential for cancer, and may meet ACMG/AMP criteria supporting pathogenic or benign classification."},PROTECTIVENESS:{EvidenceItem:"Germline variant has properties that protect individuals from acquiring cancer."}},ONCOGENIC:{ONCOGENICITY:{EvidenceItem:"Somatic variant has oncogenic potential for driving cancer, and may meet ClinGen/CGC/VICC criteria supporting pathogenic or benign classification."},PROTECTIVENESS:{EvidenceItem:"Somatic variant has a protective role and minimizes co-occuring driver variants, tumor malignancy, or other oncogenic tumor properties."},ONCOGENIC:{Assertion:"Very strong evidence the variant is oncogenic."},LIKELY_ONCOGENIC:{Assertion:"Strong evidence the variant is oncogenic."},BENIGN:{Assertion:"Very strong evidence the variant does not have oncogenic properties."},LIKELY_BENIGN:{Assertion:"Strong evidence the variant does not have oncogenic properties."},UNCERTAIN_SIGNIFICANCE:{Assertion:"Does not meet guideline criteria for oncogenic/benign, or the evidence is conflicting."}}},evidenceDirection:{PREDICTIVE:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's response to a therapy"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support, or was inconclusive of an interaction between this variant and a therapy"}},DIAGNOSTIC:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's impact on the diagnosis of disease or subtype"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support this variant's impact on diagnosis of disease or subtype"}},PROGNOSTIC:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant's impact on prognostic outcome"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support a prognostic association between variant and outcome"}},PREDISPOSING:{Na:{EvidenceItem:"Evidence Direction is not applicable"},SUPPORTS:{EvidenceItem:"The evidence supports a pathogenic or a protective role for a germline variant in cancer."},DOES_NOT_SUPPORT:{EvidenceItem:"The evidence supports a benign (if Clinical Significance is Predisposition) or lack or protective (if Clinical Significance is Protectiveness) role for a germline variant in cancer."}},FUNCTIONAL:{SUPPORTS:{EvidenceItem:"The experiment or study supports this variant causing alteration or non-alteration of the gene product function"},DOES_NOT_SUPPORT:{EvidenceItem:"The experiment or study does not support this variant causing alteration or non-alteration of the gene product function"}},ONCOGENIC:{NA:{EvidenceItem:"Evidence Direction is not applicable for Oncogenic Evidence Type"},SUPPORTS:{EvidenceItem:"The evidence supports an oncogenic or protective role for a somatic variant"},DOES_NOT_SUPPORT:{EvidenceItem:"The evidence does not support an oncogenic or protective role for a somatic variant"}}},assertionDirection:{PREDICTIVE:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's response to a therapy"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support, or was inconclusive of an interaction between this variant and a therapy"}},DIAGNOSTIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's impact on the diagnosis of disease or subtype"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support this variant's impact on diagnosis of disease or subtype"}},PROGNOSTIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant's impact on prognostic outcome"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support a prognostic association between variant and outcome"}},PREDISPOSING:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support a variant's impact on predisposing outcome"}},FUNCTIONAL:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support this variant causing alteration or non-alteration of the gene product function"},DOES_NOT_SUPPORT:{Assertion:"The Assertion and associated evidence does not support this variant causing alteration or non-alteration of the gene product function"}},ONCOGENIC:{SUPPORTS:{Assertion:"The Assertion and associated Evidence Items support a variant's oncogenic, benign, or uncertain significance"}}}};var z=a(3953);let j=(()=>{class R{transform(k,I,w=void 0,P=void 0){return I&&k?function e(R,$,k,I){let w;return w=k&&I?m[R][k][$][I]:r[R][$],w||""}(I,k,w,P):""}static#e=this.\u0275fac=function(I){return new(I||R)};static#t=this.\u0275pipe=z.EJ8({name:"enumTooltip",type:R,pure:!0})}return R})()},1555:($t,De,a)=>{a.d(De,{M:()=>m});var t=a(3953),r=a(345);let m=(()=>{class e{constructor(j){this.sanitizer=j}transform(j,R){if(!R||""==R)return j;const $=new RegExp(R,"gi"),k=j.match($);if(!k)return j;let I=j.replace($,`${k[0]}`);return this.sanitizer.bypassSecurityTrustHtml(I)}static#e=this.\u0275fac=function(R){return new(R||e)(t.rXU(r.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"highlightTypeahead",type:e,pure:!0})}return e})()},4917:($t,De,a)=>{a.d(De,{i:()=>e});var t=a(177),r=a(8335),m=a(3953);let e=(()=>{class z{static#e=this.\u0275fac=function($){return new($||z)};static#t=this.\u0275mod=m.$C({type:z});static#n=this.\u0275inj=m.G2t({providers:[r.Q],imports:[t.MD]})}return z})()},8335:($t,De,a)=>{a.d(De,{Q:()=>m});var t=a(1427),r=a(3953);let m=(()=>{class e{transform(j){return j?(0,t.A)(j):""}static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275pipe=r.EJ8({name:"sourceTypeDisplay",type:e,pure:!0})}return e})()},8139:($t,De,a)=>{a.d(De,{N:()=>w});var t=a(3953);const m=3600,e=24*m,j=365*e,$=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:void 0,month:"short",day:"numeric"}),I=new Intl.DateTimeFormat("en-US",{weekday:void 0,year:"numeric",month:"short",day:"numeric"});let w=(()=>{class P{transform(N){if(!N)return"--";let x;x="number"==typeof N?N:Date.parse(N);const oe=Date.now(),ee=Math.round(Math.abs(oe-x)/1e3);if(ee>=2592e3&&ee=j){let Pe=new Date(x);return I.format(Pe)}let Ee,Ie;return ee<60?(Ee=Math.round(ee),Ie="second"):ee1?"s":""} ago`}static#e=this.\u0275fac=function(x){return new(x||P)};static#t=this.\u0275pipe=t.EJ8({name:"timeAgo",type:P,pure:!0})}return P})()},2287:($t,De,a)=>{a.d(De,{H:()=>r});var t=a(3953);let r=(()=>{class m{constructor(){}transform(z,j=25){if(z.length>j){let $=z.slice(0,j);var R=$.lastIndexOf(" ");return $.slice(0,R)+"\u2026"}return z}static#e=this.\u0275fac=function(j){return new(j||m)};static#t=this.\u0275pipe=t.EJ8({name:"truncate",type:m,pure:!0})}return m})()},4137:($t,De,a)=>{a.d(De,{o:()=>r});var t=a(3953);let r=(()=>{class m{transform(z){return z?z.endsWith("Variant")?"civic-variant":`civic-${z.replace(/_/g,"").toLowerCase()}`:""}static#e=this.\u0275fac=function(j){return new(j||m)};static#t=this.\u0275pipe=t.EJ8({name:"typenameToIcon",type:m,pure:!0})}return m})()},4222:($t,De,a)=>{a.d(De,{N:()=>m});var t=a(4412),r=a(3953);let m=(()=>{class e{constructor(){this.networkError$=new t.t(void 0)}clearErrors(){this.networkError$.next(void 0)}static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275prov=r.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},1305:($t,De,a)=>{a.d(De,{q:()=>I});var t=a(1635),r=a(9145),m=a(9894),e=a(6354),z=a(9172),j=a(4668),R=a(4608),$=a(3953),k=a(1626);let I=class jf{constructor(P,Q){function N(ce){return!(!ce||ce.role!==r.gG1.Admin)}function x(ce){return!(!ce||ce.role!==r.gG1.Editor&&ce.role!==r.gG1.Admin)}function oe(ce){return!(!ce||ce.role!==r.gG1.Curator)}function ee(ce){return!(!ce||ce.role!==r.gG1.Curator&&ce.role!==r.gG1.Editor&&ce.role!==r.gG1.Admin)}function Ee(ce){return!(!ce||ce.role!==r.gG1.Editor&&ce.role!==r.gG1.Admin||!ce.mostRecentConflictOfInterestStatement||ce.mostRecentConflictOfInterestStatement?.coiStatus!=r.shk.Conflict&&ce.mostRecentConflictOfInterestStatement?.coiStatus!=r.shk.Valid)}function Ie(ce){if(ce.mostRecentOrganizationId)return ce.organizations.find(Pe=>Pe.id===ce.mostRecentOrganizationId)}this.viewerBaseGQL=P,this.http=Q,this.initialViewer={mostRecentOrg:void 0,signedIn:!1,isAdmin:!1,isEditor:!1,isCurator:!1,canCurate:!1,canModerate:!1,invalidCoi:!0},this.queryRef=this.viewerBaseGQL.watch(void 0,{notifyOnNetworkStatusChange:!1}),this.viewer$=this.queryRef.valueChanges.pipe((0,R.E)("data","viewer"),(0,e.T)(ce=>({...ce,signedIn:null!=ce,signedOut:null==ce,canCurate:ee(ce),canModerate:Ee(ce),isAdmin:N(ce),isEditor:x(ce),isCurator:oe(ce),organizations:null==ce?[]:ce.organizations,mostRecentOrg:null==ce?void 0:Ie(ce),invalidCoi:x(ce)&&(!ce.mostRecentConflictOfInterestStatement||ce.mostRecentConflictOfInterestStatement.coiStatus===r.shk.Expired||ce.mostRecentConflictOfInterestStatement.coiStatus===r.shk.Missing)})),(0,z.Z)(this.initialViewer),(0,j.t)(1)),this.signedIn$=this.viewer$.pipe((0,e.T)(ce=>ce.signedIn)),this.signedOut$=this.viewer$.pipe((0,e.T)(ce=>ce.signedOut)),this.isAdmin$=this.viewer$.pipe((0,e.T)(ce=>N(ce))),this.isEditor$=this.viewer$.pipe((0,e.T)(ce=>x(ce))),this.isCurator$=this.viewer$.pipe((0,e.T)(ce=>oe(ce))),this.canCurate$=this.viewer$.pipe((0,e.T)(ce=>ee(ce))),this.canModerate$=this.viewer$.pipe((0,e.T)(ce=>Ee(ce)))}signOut(){this.http.get("/api/sign_out").pipe((0,m.s)(this)).subscribe(()=>this.queryRef.refetch())}refetch(){this.queryRef.refetch()}static#e=this.\u0275fac=function(Q){return new(Q||jf)($.KVO(r.arH),$.KVO(k.Qq))};static#t=this.\u0275prov=$.jDH({token:jf,factory:jf.\u0275fac,providedIn:"root"})};I=(0,t.Cg)([(0,m.d)()],I)},6514:($t,De,a)=>{a.d(De,{s:()=>r});var t=a(3953);let r=(()=>{class m{constructor(){this.linked=!0,this.popoverVisible=!1}ngOnInit(){this.onCloseClicked&&(this.linked=!1)}itemClosed(z){this.popoverVisible=!1,this.onCloseClicked&&this.onCloseClicked(this.idFunction())}static#e=this.\u0275fac=function(j){return new(j||m)};static#t=this.\u0275cmp=t.VBU({type:m,selectors:[["ng-component"]],inputs:{onCloseClicked:"onCloseClicked",linked:"linked"},decls:0,vars:0,template:function(j,R){},encapsulation:2})}return m})()},896:($t,De,a)=>{function t(r){if("number"==typeof r||"boolean"==typeof r)return r;let m;if("NA"===r)m=["Not Applicable"];else if("SENSITIVITYRESPONSE"===r)m=["Sensitivity","/","Response"];else{m=r.toLowerCase().replace(/_/g," ").split(" ");for(var e=0;et})},1427:($t,De,a)=>{function t(r){switch(r){case"ASCO":return"ASCO";case"PUBMED":return"PubMed";case"ASH":return"ASH";default:return r}}a.d(De,{A:()=>t})},505:($t,De,a)=>{a.d(De,{P:()=>r});const t=new Map([["Assertion","#7243b5"],["ClinicalTrial","#ac3996"],["CoordinateSystem","#f68f37"],["Disease","#e62f76"],["Event","#1db8a9"],["EvidenceItem","#2a63b6"],["Feature","#07aff0"],["MolecularProfile","#33b358"],["NccnGuideline","#49566D"],["Phenotype","#1db8a9"],["Source","#f9ba45"],["Therapy","#ac3996"],["Variant","#74d34c"],["GeneVariant","#74d34c"],["FactorVariant","#74d34c"],["FusionVariant","#74d34c"],["VariantGroup","#74d34c"],["VariantType","#74d34c"],["Comment","#44d8ef"],["Event","#ffdb00"],["Flag","#e24759"],["Queue","#666699"],["Revision","#f0673a"],["Curator","#a0d8f5"],["Editor","#58a0c4"],["Admin","#58a0c4"],["Organization","#3d7b99"],["Rejected","#BBBBBB"],["Greyscale","#999999"]]);function r(m){let e="#AAAAAA";if(m){const z=t.get(m);z&&(e=z)}return e}},1226:($t,De,a)=>{a.d(De,{E:()=>z});var t=a(1413),r=a(4412),m=a(6977),e=a(980);class z{constructor(R){this.networkErrorService=R}mutate(R,$,k,I){let w=new t.B,P={isSubmitting$:new r.t(!1),submitSuccess$:new r.t(!1),submitError$:new r.t([]),cleanup:()=>{w.next(),w.complete()}};return P.isSubmitting$.next(!0),R.mutate($,k).pipe((0,m.Q)(w),(0,e.j)(()=>{P.isSubmitting$.next(!1)})).subscribe({next:Q=>{Q.data&&I&&I(Q.data)},error:Q=>{Q.graphQLErrors.length>0?P.submitError$.next(Q.graphQLErrors.map(N=>N.message)):Q.networkError&&this.networkErrorService.networkError$.next(Q.networkError),P.cleanup()},complete:()=>{P.submitError$.next([]),P.submitSuccess$.next(!0),this.networkErrorService.networkError$.next(void 0),P.cleanup()}}),P}}},2242:($t,De,a)=>{a.d(De,{i:()=>m});var t=a(177),r=a(3953);let m=(()=>{class e{static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275mod=r.$C({type:e});static#n=this.\u0275inj=r.G2t({imports:[t.MD]})}return e})()},2033:($t,De,a)=>{a.d(De,{o:()=>Q});var t=a(3953),r=a(177),m=a(5154);function e(N,x){1&N&&(t.qex(0),t.EFF(1," N/A "),t.bVm())}function z(N,x){1&N&&(t.qex(0),t.EFF(1," Not applicable "),t.bVm())}function j(N,x){if(1&N&&(t.j41(0,"span",4),t.qex(1,0),t.DNE(2,e,2,0,"ng-container",5)(3,z,2,0,"ng-container",6),t.bVm(),t.k0s()),2&N){const oe=t.XpG();t.R7$(),t.Y8G("ngSwitch",oe.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}function R(N,x){1&N&&(t.qex(0),t.EFF(1," \u2013\xa0\u2013 "),t.bVm())}function $(N,x){1&N&&(t.qex(0),t.EFF(1,"Not specified"),t.bVm())}function k(N,x){if(1&N&&(t.j41(0,"span",7),t.qex(1,0),t.DNE(2,R,2,0,"ng-container",5)(3,$,2,0,"ng-container",6),t.bVm(),t.k0s()),2&N){const oe=t.XpG();t.R7$(),t.Y8G("ngSwitch",oe.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}function I(N,x){1&N&&(t.qex(0),t.EFF(1,"!?"),t.bVm())}function w(N,x){1&N&&(t.qex(0),t.EFF(1,"Unspecified"),t.bVm())}function P(N,x){if(1&N&&(t.j41(0,"span",8),t.qex(1,0),t.DNE(2,I,2,0,"ng-container",5)(3,w,2,0,"ng-container",6),t.bVm(),t.k0s()),2&N){const oe=t.XpG();t.R7$(),t.Y8G("ngSwitch",oe.cvcDisplayMode),t.R7$(),t.Y8G("ngSwitchCase","small")}}let Q=(()=>{class N{constructor(){this.cvcEmptyCategory="not-applicable",this.cvcDisplayMode="default"}static#e=this.\u0275fac=function(ee){return new(ee||N)};static#t=this.\u0275cmp=t.VBU({type:N,selectors:[["cvc-empty-value"]],inputs:{cvcEmptyCategory:"cvcEmptyCategory",cvcDisplayMode:"cvcDisplayMode"},decls:4,vars:4,consts:[[3,"ngSwitch"],["class","empty-symbol not-applicable","nz-tooltip","","nzTooltipTitle","Value is not applicable",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Unspecified","class","empty-symbol unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","INVALID","class","empty-symbol invalid","nz-tooltip","","nzTooltipTitle","Error: value requires specification",4,"ngSwitchCase"],["nz-tooltip","","nzTooltipTitle","Value is not applicable",1,"empty-symbol","not-applicable"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["nz-tooltip","","nzTooltipTitle","Unspecified","nz-tooltip","","nzTooltipTitle","Value is unspecified",1,"empty-symbol","unspecified"],["nz-tooltip","","nzTooltipTitle","INVALID","nz-tooltip","","nzTooltipTitle","Error: value requires specification",1,"empty-symbol","invalid"]],template:function(ee,Ee){1&ee&&(t.qex(0,0),t.DNE(1,j,4,2,"span",1)(2,k,4,2,"span",2)(3,P,4,2,"span",3),t.bVm()),2&ee&&(t.Y8G("ngSwitch",Ee.cvcEmptyCategory),t.R7$(),t.Y8G("ngSwitchCase","not-applicable"),t.R7$(),t.Y8G("ngSwitchCase","unspecified"),t.R7$(),t.Y8G("ngSwitchCase","invalid"))},dependencies:[r.ux,r.e1,r.fG,m.LH],styles:[".empty-symbol[_ngcontent-%COMP%]{font-style:oblique;display:inline-block;white-space:no-wrap}.empty-symbol.not-applicable[_ngcontent-%COMP%]{color:#ccc;font-weight:500}.empty-symbol.unspecified[_ngcontent-%COMP%]{display:inline-block;color:#ccc;font-weight:500;padding:0 3px}.empty-symbol.invalid[_ngcontent-%COMP%]{display:inline-block;color:#ff4d4f;font-weight:700}"]})}return N})()},7556:($t,De,a)=>{a.d(De,{F:()=>z});var t=a(177),r=a(5103),m=a(5154),e=a(3953);let z=(()=>{class j{static#e=this.\u0275fac=function(k){return new(k||j)};static#t=this.\u0275mod=e.$C({type:j});static#n=this.\u0275inj=e.G2t({imports:[t.MD,m.Qt,r.Y3]})}return j})()},2688:($t,De,a)=>{a.d(De,{b:()=>Qt});var t=a(3953),r=a(1661),m=a(177),e=a(5761),z=a(1289),j=a(5652),R=a(3287),$=a(6564),k=a(8011),I=a(1429),w=a(3548);function P(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-molecular-profile-popover",9),2&Xe){const q=t.XpG();t.Y8G("molecularProfileId",q.entity.entityId)}}function Q(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-disease-popover",10),2&Xe){const q=t.XpG();t.Y8G("diseaseId",q.entity.entityId)}}function N(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-therapy-popover",11),2&Xe){const q=t.XpG();t.Y8G("therapyId",q.entity.entityId)}}function x(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-source-popover",12),2&Xe){const q=t.XpG();t.Y8G("sourceId",q.entity.entityId)}}function oe(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-phenotype-popover",13),2&Xe){const q=t.XpG();t.Y8G("phenotypeId",q.entity.entityId)}}function ee(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-evidence-popover",14),2&Xe){const q=t.XpG();t.Y8G("evidenceId",q.entity.entityId)}}function Ee(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-feature-popover",15),2&Xe){const q=t.XpG();t.Y8G("featureId",q.entity.entityId)}}function Ie(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-variant-popover",16),2&Xe){const q=t.XpG();t.Y8G("variantId",q.entity.entityId)}}const ce=["MolecularProfile","Disease","Therapy","Phenotype","Source","Gene","Variant","EvidenceItem"];let Pe=(()=>{class Xe{ngOnInit(){if(null==this.entity)throw new Error("entity input is required for CvcEntityTagPopoverComponent")}static#e=this.\u0275fac=function(G){return new(G||Xe)};static#t=this.\u0275cmp=t.VBU({type:Xe,selectors:[["cvc-entity-tag-popover"]],inputs:{entity:"entity"},decls:9,vars:9,consts:[[3,"ngSwitch"],[3,"molecularProfileId",4,"ngSwitchCase"],[3,"diseaseId",4,"ngSwitchCase"],[3,"therapyId",4,"ngSwitchCase"],[3,"sourceId",4,"ngSwitchCase"],[3,"phenotypeId",4,"ngSwitchCase"],[3,"evidenceId",4,"ngSwitchCase"],[3,"featureId",4,"ngSwitchCase"],[3,"variantId",4,"ngSwitchCase"],[3,"molecularProfileId"],[3,"diseaseId"],[3,"therapyId"],[3,"sourceId"],[3,"phenotypeId"],[3,"evidenceId"],[3,"featureId"],[3,"variantId"]],template:function(G,H){1&G&&(t.qex(0,0),t.DNE(1,P,1,1,"cvc-molecular-profile-popover",1)(2,Q,1,1,"cvc-disease-popover",2)(3,N,1,1,"cvc-therapy-popover",3)(4,x,1,1,"cvc-source-popover",4)(5,oe,1,1,"cvc-phenotype-popover",5)(6,ee,1,1,"cvc-evidence-popover",6)(7,Ee,1,1,"cvc-feature-popover",7)(8,Ie,1,1,"cvc-variant-popover",8),t.bVm()),2&G&&(t.Y8G("ngSwitch",H.entity.entityType),t.R7$(),t.Y8G("ngSwitchCase","MolecularProfile"),t.R7$(),t.Y8G("ngSwitchCase","Disease"),t.R7$(),t.Y8G("ngSwitchCase","Therapy"),t.R7$(),t.Y8G("ngSwitchCase","Source"),t.R7$(),t.Y8G("ngSwitchCase","Phenotype"),t.R7$(),t.Y8G("ngSwitchCase","EvidenceItem"),t.R7$(),t.Y8G("ngSwitchCase","Feature"),t.R7$(),t.Y8G("ngSwitchCase","Variant"))},dependencies:[m.ux,m.e1,e.q,z.R,j.u,R.a,$.F,k.S,I.X,w.A],encapsulation:2,changeDetection:0})}return Xe})();var ve=a(1188),pe=a(5103),U=a(5699),M=a(5154),te=a(1236),ge=a(1555),T=a(3075),D=a(4137);function A(Xe,ke){}function X(Xe,ke){if(1&Xe){const q=t.RV6();t.j41(0,"span",9)(1,"nz-tag",10),t.bIt("nzCheckedChange",function(){t.eBV(q);const H=t.XpG();return t.Njj(H.cvcTagCheckedChange)})("nzOnClose",function(H){t.eBV(q);const ze=t.XpG();return t.Njj(ze.cvcOnClose.next(H))}),t.j41(2,"span",11),t.DNE(3,A,0,0,"ng-template",12),t.k0s()()()}if(2&Xe){const q=t.XpG(),G=t.sdS(6),H=t.sdS(8);t.R7$(),t.Y8G("nzMode",q.cvcMode)("nzChecked",q.cvcTagChecked),t.R7$(),t.Y8G("nzPopoverContent",q.cvcShowPopover&&q.popoverInput?G:void 0),t.R7$(),t.Y8G("ngTemplateOutlet",H)}}function se(Xe,ke){}function je(Xe,ke){if(1&Xe&&(t.j41(0,"span",16),t.DNE(1,se,0,0,"ng-template",12),t.k0s()),2&Xe){const q=t.XpG(2),G=t.sdS(8);t.Y8G("nzTooltipTitle",q.entity.tooltip),t.R7$(),t.Y8G("ngTemplateOutlet",G)}}function Bt(Xe,ke){if(1&Xe){const q=t.RV6();t.j41(0,"span",13)(1,"nz-tag",14),t.bIt("nzOnClose",function(H){t.eBV(q);const ze=t.XpG();return t.Njj(ze.cvcOnClose.next(H))}),t.DNE(2,je,2,2,"span",15),t.k0s()()}if(2&Xe){const q=t.XpG(),G=t.sdS(4);t.R7$(),t.Y8G("nzMode","closeable"),t.R7$(),t.Y8G("ngIf",q.entity&&q.entity.tooltip)("ngIfElse",G)}}function Tt(Xe,ke){}function Vt(Xe,ke){if(1&Xe&&(t.j41(0,"span",16),t.DNE(1,Tt,0,0,"ng-template",12),t.k0s()),2&Xe){const q=t.XpG(2),G=t.sdS(8);t.Y8G("nzTooltipTitle",q.entity.tooltip),t.R7$(),t.Y8G("ngTemplateOutlet",G)}}function He(Xe,ke){if(1&Xe&&(t.j41(0,"span",17),t.DNE(1,Vt,2,2,"span",15),t.k0s()),2&Xe){const q=t.XpG(),G=t.sdS(4);t.R7$(),t.Y8G("ngIf",q.entity&&q.entity.tooltip)("ngIfElse",G)}}function xt(Xe,ke){}function Lt(Xe,ke){if(1&Xe&&(t.j41(0,"span",11),t.DNE(1,xt,0,0,"ng-template",12),t.k0s()),2&Xe){const q=t.XpG(),G=t.sdS(6),H=t.sdS(8);t.Y8G("nzPopoverContent",q.popoverInput?G:void 0),t.R7$(),t.Y8G("ngTemplateOutlet",H)}}function ft(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-entity-tag-popover",19),2&Xe){const q=t.XpG(2);t.Y8G("entity",q.popoverInput)}}function St(Xe,ke){if(1&Xe&&t.DNE(0,ft,1,1,"cvc-entity-tag-popover",18),2&Xe){const q=t.XpG();t.Y8G("ngIf",q.popoverInput)}}function kt(Xe,ke){if(1&Xe&&(t.j41(0,"span"),t.eu8(1,12),t.k0s()),2&Xe){t.XpG();const q=t.sdS(4);t.R7$(),t.Y8G("ngTemplateOutlet",q)}}function It(Xe,ke){if(1&Xe&&(t.j41(0,"a",23),t.eu8(1,12),t.k0s()),2&Xe){t.XpG();const q=t.sdS(4),G=t.XpG(2);t.Y8G("routerLink",G.entity.link),t.R7$(),t.Y8G("ngTemplateOutlet",q)}}function rn(Xe,ke){if(1&Xe&&(t.nrm(0,"span",26),t.nI1(1,"typenameToIcon"),t.nI1(2,"entityColor")),2&Xe){const q=t.XpG(4);t.Y8G("nzType",t.bMT(1,2,q.typename))("nzTwotoneColor",t.bMT(2,4,q.typename))}}function en(Xe,ke){if(1&Xe&&(t.DNE(0,rn,3,6,"span",24),t.nrm(1,"span",25),t.nI1(2,"highlightTypeahead")),2&Xe){t.XpG(2);const q=t.sdS(4),G=t.XpG();t.Y8G("ngIf",G.typename&&G.cvcShowIcon)("ngIfElse",q),t.R7$(),t.Y8G("innerHtml",t.i5U(2,3,G.entity.name,G.cvcEmphasize),t.npT)}}function Xt(Xe,ke){if(1&Xe&&(t.qex(0),t.DNE(1,kt,2,1,"span",21)(2,It,2,2,"a",22)(3,en,3,6,"ng-template",null,5,t.C5r),t.bVm()),2&Xe){const q=t.XpG(2);t.R7$(),t.Y8G("ngIf",q.cvcDisableLink),t.R7$(),t.Y8G("ngIf",!q.cvcDisableLink)}}function Tn(Xe,ke){}function Jn(Xe,ke){if(1&Xe&&(t.DNE(0,Tn,0,0,"ng-template",12),t.EFF(1)),2&Xe){t.XpG();const q=t.sdS(4),G=t.XpG();t.Y8G("ngTemplateOutlet",q),t.R7$(),t.SpI(" CACHE-MISS (",G.cvcCacheId,") ")}}function Dn(Xe,ke){1&Xe&&t.nrm(0,"span",27)}function Mt(Xe,ke){if(1&Xe&&t.DNE(0,Xt,5,2,"ng-container",20)(1,Jn,2,2,"ng-template",null,3,t.C5r)(3,Dn,1,0,"ng-template",null,4,t.C5r),2&Xe){const q=t.sdS(2),G=t.XpG();t.Y8G("ngIf",G.entity)("ngIfElse",q)}}function Ut(Xe,ke){if(1&Xe&&t.nrm(0,"cvc-entity-tag-popover",19),2&Xe){const q=t.XpG(2);t.Y8G("entity",q.popoverInput)}}function wt(Xe,ke){if(1&Xe&&t.DNE(0,Ut,1,1,"cvc-entity-tag-popover",18),2&Xe){const q=t.XpG();t.Y8G("ngIf",q.popoverInput)}}const Ft=Xe=>void 0!==Xe&&Xe.__typename&&Xe.id&&void 0!==Xe.name;let Qt=(()=>{class Xe{set cvcLinkableEntity(q){q&&this.setLinkableEntity(q)}set cvcCacheId(q){q&&this.setCachedLinkableEntity(q)}constructor(q){this.apollo=q,this.cvcContext="default",this.cvcMode="default",this.cvcDisableLink=!0,this.cvcTagChecked=!1,this.cvcHasTooltip=!1,this.cvcFullWidth=!1,this.cvcShowPopover=!1,this.cvcShowIcon=!0,this.cvcTagCheckedChange=new t.bkB,this.cvcOnClose=new t.bkB}hasPopover(q){return ce.includes(q)}setLinkableEntity(q){Ft(q)&&(this.typename=q.__typename,this.id=q.id,this.entity=q,this.setPopoverInput(q))}setCachedLinkableEntity(q){const[G,H]=q.split(":");if(this.typename=G,this.id=+H,!this.typename||!this.id)return void console.error(`entity-tag received an invalid cacheId: ${q}. Cache IDs must be in the format 'TYPENAME:ID'.`);let ze;ze=this.cvcDisableLink?this.cvcHasTooltip?{id:`${G}:${H}`,fragment:r.J1` + fragment Linkable${G}Entity on ${G} { + id + name + tooltip + } + `}:{id:`${G}:${H}`,fragment:r.J1` + fragment Linkable${G}Entity on ${G} { + id + name + } + `}:{id:`${G}:${H}`,fragment:r.J1` + fragment Linkable${G}Entity on ${G} { + id + name + link + } + `};const Qe=this.apollo.client.readFragment(ze);Ft(Qe)?(this.setPopoverInput(Qe),this.entity=Qe):console.error(`entity-tag could not find cached entity ${q}`)}setPopoverInput(q){Ft(q)&&this.hasPopover(q.__typename)&&(this.popoverInput={entityId:q.id,entityType:q.__typename})}ngOnChanges(q){q.cvcMode&&"checkable"===q.cvcMode.currentValue&&(this.cvcDisableLink=!0),q.cvcContext&&"default"!==q.cvcContext.currentValue&&(this.cvcDisableLink=!0)}static#e=this.\u0275fac=function(G){return new(G||Xe)(t.rXU(r.Ic))};static#t=this.\u0275cmp=t.VBU({type:Xe,selectors:[["cvc-entity-tag"]],hostVars:40,hostBindings:function(G,H){2&G&&t.AVh("full-width",!0===H.cvcFullWidth)("label-max",void 0!==H.cvcTruncateLabel)("label-max-50","50px"===H.cvcTruncateLabel)("label-max-75","75px"===H.cvcTruncateLabel)("label-max-100","100px"===H.cvcTruncateLabel)("label-max-125","125px"===H.cvcTruncateLabel)("label-max-150","150px"===H.cvcTruncateLabel)("label-max-175","175px"===H.cvcTruncateLabel)("label-max-200","200px"===H.cvcTruncateLabel)("label-max-250","250px"===H.cvcTruncateLabel)("label-max-300","300px"===H.cvcTruncateLabel)("label-max-350","350px"===H.cvcTruncateLabel)("label-max-400","400px"===H.cvcTruncateLabel)("label-max-450","450px"===H.cvcTruncateLabel)("label-max-500","500px"===H.cvcTruncateLabel)("rejected","REJECTED"===H.cvcStatus)("accepted","ACCEPTED"===H.cvcStatus)("submitted","SUBMITTED"===H.cvcStatus)("new","NEW"===H.cvcStatus)("superseded","SUPERSEDED"===H.cvcStatus)},inputs:{cvcLinkableEntity:"cvcLinkableEntity",cvcCacheId:"cvcCacheId",cvcStatus:"cvcStatus",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcEmphasize:"cvcEmphasize",cvcDisableLink:"cvcDisableLink",cvcTagChecked:"cvcTagChecked",cvcHasTooltip:"cvcHasTooltip",cvcFullWidth:"cvcFullWidth",cvcShowPopover:"cvcShowPopover",cvcShowIcon:"cvcShowIcon",cvcTruncateLabel:"cvcTruncateLabel"},outputs:{cvcTagCheckedChange:"cvcTagCheckedChange",cvcOnClose:"cvcOnClose"},features:[t.OA$],decls:11,vars:3,consts:[["noTooltip",""],["popoverContent",""],["tagContent",""],["cacheMiss",""],["noIcon",""],["tagLabel",""],["class","default",4,"ngIf"],["class","select-item",4,"ngIf"],["class","multi-select-item",4,"ngIf"],[1,"default"],[3,"nzCheckedChange","nzOnClose","nzMode","nzChecked"],["nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngTemplateOutlet"],[1,"select-item"],[3,"nzOnClose","nzMode"],["nz-tooltip","",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",3,"nzTooltipTitle"],[1,"multi-select-item"],[3,"entity",4,"ngIf"],[3,"entity"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[3,"routerLink",4,"ngIf"],[3,"routerLink"],["nz-icon","","nzTheme","twotone","class","tag-icon",3,"nzType","nzTwotoneColor",4,"ngIf","ngIfElse"],[1,"tag-label",3,"innerHtml"],["nz-icon","","nzTheme","twotone",1,"tag-icon",3,"nzType","nzTwotoneColor"],[1,"tag-no-icon"]],template:function(G,H){1&G&&t.DNE(0,X,4,4,"span",6)(1,Bt,3,3,"span",7)(2,He,2,2,"span",8)(3,Lt,2,2,"ng-template",null,0,t.C5r)(5,St,1,1,"ng-template",null,1,t.C5r)(7,Mt,5,2,"ng-template",null,2,t.C5r)(9,wt,1,1,"ng-template",null,1,t.C5r),2&G&&(t.Y8G("ngIf","default"===H.cvcContext),t.R7$(),t.Y8G("ngIf","select-item"===H.cvcContext),t.R7$(),t.Y8G("ngIf","multi-select-item"===H.cvcContext))},dependencies:[m.bT,m.T3,ve.Wk,pe.Dn,U.s,M.LH,te.L_,Pe,ge.M,T.R,D.o],styles:['.hide-dropdown[_ngcontent-%COMP%]{display:none}.label-max-50[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:50px;overflow:hidden;text-overflow:ellipsis}.label-max-75[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:75px;overflow:hidden;text-overflow:ellipsis}.label-max-100[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:100px;overflow:hidden;text-overflow:ellipsis}.label-max-125[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:125px;overflow:hidden;text-overflow:ellipsis}.label-max-150[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:150px;overflow:hidden;text-overflow:ellipsis}.label-max-175[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:175px;overflow:hidden;text-overflow:ellipsis}.label-max-200[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:200px;overflow:hidden;text-overflow:ellipsis}.label-max-250[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:250px;overflow:hidden;text-overflow:ellipsis}.label-max-300[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:300px;overflow:hidden;text-overflow:ellipsis}.label-max-350[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:350px;overflow:hidden;text-overflow:ellipsis}.label-max-400[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:400px;overflow:hidden;text-overflow:ellipsis}.label-max-450[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:450px;overflow:hidden;text-overflow:ellipsis}.label-max-500[_nghost-%COMP%] .tag-label[_ngcontent-%COMP%]{max-width:500px;overflow:hidden;text-overflow:ellipsis}.rejected[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .submitted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .accepted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .deprecated[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-right-width:2px}.rejected[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%], .deprecated[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#e6e6e6;background-color:#fff;color:#999999d9}.submitted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#ffe58f}.accepted[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{border-color:#b7eb8f}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{width:100%}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{width:100%}nz-tag[_ngcontent-%COMP%]{margin-right:0;margin-inline-end:4px} -checkable{background-color:transparent;cursor:pointer} -checkable:not( -checkable-checked):hover{color:#1890ff} -checkable:active, -checkable-checked{color:#fff} -checkable-checked{background-color:#1890ff} -checkable:active{background-color:#096dd9}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{display:inline-block;padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-no-icon[_ngcontent-%COMP%]{display:inline-block;width:4px}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{display:inline-block;padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-no-icon[_ngcontent-%COMP%]{display:inline-block;width:4px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{padding-right:0}.multi-select-item[_ngcontent-%COMP%]{display:inline-block;margin-top:-3px;margin-bottom:-3px;margin-left:-4px;padding-left:4px}.multi-select-item[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]:after{content:" "}.typeahead-match[_ngcontent-%COMP%]{font-weight:700}a.disabled[_ngcontent-%COMP%]{pointer-events:none}'],changeDetection:0})}return Xe})()},181:($t,De,a)=>{a.d(De,{_:()=>Ie});var t=a(177),r=a(5103),m=a(5699),e=a(4917),z=a(5154),j=a(1188),R=a(3953);let $=(()=>{class ce{static#e=this.\u0275fac=function(pe){return new(pe||ce)};static#t=this.\u0275mod=R.$C({type:ce});static#n=this.\u0275inj=R.G2t({imports:[t.MD]})}return ce})();var k=a(1236),I=a(8156),w=a(4666),P=a(5928),Q=a(8052),N=a(2582),x=a(7683),oe=a(3126),ee=a(6075);let Ee=(()=>{class ce{static#e=this.\u0275fac=function(pe){return new(pe||ce)};static#t=this.\u0275mod=R.$C({type:ce});static#n=this.\u0275inj=R.G2t({imports:[t.MD,Q.b,I.U,x.B,oe.t,N.y,w.v,P.o,ee.$]})}return ce})(),Ie=(()=>{class ce{static#e=this.\u0275fac=function(pe){return new(pe||ce)};static#t=this.\u0275mod=R.$C({type:ce});static#n=this.\u0275inj=R.G2t({imports:[t.MD,j.iI,r.Y3,m.T,z.Qt,k.MC,$,e.i,Ee,$]})}return ce})()},8721:($t,De,a)=>{a.d(De,{G:()=>oe});var t=a(1635),r=a(9894),m=a(3953),e=a(1188),z=a(177),j=a(2983),R=a(3617),$=a(1774);const k=["*"];function I(ee,Ee){if(1&ee&&m.nrm(0,"nz-alert",6),2&ee){m.XpG();const Ie=m.sdS(3),ce=m.XpG();m.Mz_("nzMessage","Error Submitting ",ce.entityType,""),m.Y8G("nzDescription",Ie)}}function w(ee,Ee){if(1&ee&&(m.j41(0,"li"),m.EFF(1),m.k0s()),2&ee){const Ie=Ee.$implicit;m.R7$(),m.SpI(" ",Ie," ")}}function P(ee,Ee){if(1&ee&&(m.j41(0,"ul"),m.DNE(1,w,2,1,"li",7),m.k0s()),2&ee){const Ie=m.XpG().ngIf;m.R7$(),m.Y8G("ngForOf",Ie)}}function Q(ee,Ee){if(1&ee&&(m.qex(0),m.DNE(1,I,1,3,"nz-alert",5)(2,P,2,1,"ng-template",null,1,m.C5r),m.bVm()),2&ee){const Ie=Ee.ngIf;m.R7$(),m.Y8G("ngIf",Ie.length>0)}}function N(ee,Ee){if(1&ee&&(m.qex(0),m.nrm(1,"nz-alert",8),m.bVm()),2&ee){const Ie=m.XpG();m.R7$(),m.Mz_("nzMessage","",Ie.entityType," Submitted"),m.Y8G("nzDescription",Ie.successMessage?Ie.successMessage:null)}}function x(ee,Ee){1&ee&&m.SdG(0)}let oe=class Sm{set mutationState(Ee){this._mutationState=Ee,this.currentTimer&&clearTimeout(this.currentTimer),Ee&&Ee.submitSuccess$.pipe((0,r.s)(this)).subscribe(Ie=>{Ie&&(this.currentTimer=setTimeout(()=>{this.redirectUrl&&this.router.navigateByUrl(this.redirectUrl)},2500))})}get mutationState(){return this._mutationState}constructor(Ee){this.router=Ee}ngOnInit(){}static#e=this.\u0275fac=function(Ie){return new(Ie||Sm)(m.rXU(e.Ix))};static#t=this.\u0275cmp=m.VBU({type:Sm,selectors:[["cvc-form-submission-status-display"]],inputs:{mutationState:"mutationState",entityType:"entityType",successMessage:"successMessage",redirectUrl:"redirectUrl"},ngContentSelectors:k,decls:8,vars:10,consts:[["form",""],["errorList",""],[3,"nzSpinning"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription",4,"ngIf"],["nzType","error","nzShowIcon","",3,"nzMessage","nzDescription"],[4,"ngFor","ngForOf"],["nzType","success","nzShowIcon","",3,"nzMessage","nzDescription"]],template:function(Ie,ce){if(1&Ie&&(m.NAR(),m.j41(0,"nz-spin",2),m.nI1(1,"ngrxPush"),m.DNE(2,Q,4,1,"ng-container",3),m.nI1(3,"ngrxPush"),m.DNE(4,N,2,3,"ng-container",4),m.nI1(5,"ngrxPush"),m.DNE(6,x,1,0,"ng-template",null,0,m.C5r),m.k0s()),2&Ie){const Pe=m.sdS(7);m.Y8G("nzSpinning",m.bMT(1,4,null==ce.mutationState?null:ce.mutationState.isSubmitting$)),m.R7$(2),m.Y8G("ngIf",m.bMT(3,6,null==ce.mutationState?null:ce.mutationState.submitError$)),m.R7$(2),m.Y8G("ngIf",m.bMT(5,8,null==ce.mutationState?null:ce.mutationState.submitSuccess$))("ngIfElse",Pe)}},dependencies:[z.Sq,z.bT,j.a,R.Y,$.L9],encapsulation:2,changeDetection:0})};oe=(0,t.Cg)([(0,r.d)()],oe)},5316:($t,De,a)=>{a.d(De,{P:()=>j});var t=a(177),r=a(3617),m=a(7685),e=a(2983),z=a(3953);let j=(()=>{class R{static#e=this.\u0275fac=function(I){return new(I||R)};static#t=this.\u0275mod=z.$C({type:R});static#n=this.\u0275inj=z.G2t({imports:[t.MD,e.V,r.$,m.pc]})}return R})()},8168:($t,De,a)=>{a.d(De,{m:()=>Xd});var t=a(9417),r=a(1188),m=a(8524),e=a(3953),z=a(177),j=a(8927),R=a(7529);function $(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-form-label",4),e.EFF(2),e.k0s(),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("nzRequired",c.props.required&&!0!==c.props.hideRequiredMarker)("nzFor",c.id),e.R7$(),e.SpI(" ",c.props.label," ")}}function k(u,b){if(1&u&&e.nrm(0,"formly-validation-message",5),2&u){const c=e.XpG();e.Y8G("field",c.field)}}let I=(()=>{class u extends m.cm{get errorState(){return this.showError?"error":""}}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-wrapper-nz-form-field"]],features:[e.Vt3],decls:7,vars:4,consts:[["fieldComponent",""],["errorTpl",""],[4,"ngIf"],[3,"nzValidateStatus","nzErrorTip","nzExtra"],[3,"nzRequired","nzFor"],[3,"field"]],template:function(c,h){if(1&c&&(e.j41(0,"nz-form-item"),e.DNE(1,$,3,3,"ng-container",2),e.j41(2,"nz-form-control",3),e.eu8(3,null,0),e.DNE(5,k,1,1,"ng-template",null,1,e.C5r),e.k0s()()),2&c){const _=e.sdS(6);e.R7$(),e.Y8G("ngIf",h.props.label&&!0!==h.props.hideLabel),e.R7$(),e.Y8G("nzValidateStatus",h.errorState)("nzErrorTip",_)("nzExtra",h.props.description)}},dependencies:[j.Ls,j.Mo,j.zS,m.Nc,R.e,z.bT,R.Uq],encapsulation:2}),u})(),w=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[z.MD,t.X1,j.PQ,m.qy.forChild({wrappers:[{name:"form-field",component:I}]})]]}),u})();var P=a(1011),Q=a(7336),N=a(1413),x=a(3726),oe=a(7786),ee=a(3294),Ee=a(6977),Ie=a(9172),ce=a(5558),Pe=a(1397),ve=a(6354),pe=a(7891),U=a(1025),M=a(317),te=a(5103),ge=a(851),T=a(8203),D=a(7806);const A=["upHandler"],X=["downHandler"],se=["inputElement"];function je(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",10),2&u){const c=e.XpG();e.Y8G("status",c.status)}}const Bt=["nz-input-number-group-slot",""],Tt=["*"];function Vt(u,b){if(1&u&&e.nrm(0,"span",0),2&u){const c=e.XpG();e.Y8G("nzType",c.icon)}}function He(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.JRh(c.template)}}function xt(u,b){if(1&u&&e.nrm(0,"div",3),2&u){const c=e.XpG(2);e.Y8G("icon",c.nzAddOnBeforeIcon)("template",c.nzAddOnBefore)}}function Lt(u,b){}function ft(u,b){if(1&u&&(e.j41(0,"div",6),e.DNE(1,Lt,0,0,"ng-template",5),e.k0s()),2&u){const c=e.XpG(2),h=e.sdS(3);e.AVh("ant-input-number-affix-wrapper-disabled",c.disabled)("ant-input-number-affix-wrapper-sm",c.isSmall)("ant-input-number-affix-wrapper-lg",c.isLarge)("ant-input-number-affix-wrapper-focused",c.focused),e.Y8G("ngClass",c.affixInGroupStatusCls),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function St(u,b){}function kt(u,b){if(1&u&&e.DNE(0,St,0,0,"ng-template",5),2&u){e.XpG(2);const c=e.sdS(5);e.Y8G("ngTemplateOutlet",c)}}function It(u,b){if(1&u&&e.nrm(0,"span",3),2&u){const c=e.XpG(2);e.Y8G("icon",c.nzAddOnAfterIcon)("template",c.nzAddOnAfter)}}function rn(u,b){if(1&u&&(e.j41(0,"span",2),e.DNE(1,xt,1,2,"div",3)(2,ft,2,10,"div",4)(3,kt,1,1,null,5)(4,It,1,2,"span",3),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.vxM(c.nzAddOnBefore||c.nzAddOnBeforeIcon?1:-1),e.R7$(),e.vxM(c.isAffix||c.hasFeedback?2:3),e.R7$(2),e.vxM(c.nzAddOnAfter||c.nzAddOnAfterIcon?4:-1)}}function en(u,b){}function Xt(u,b){if(1&u&&e.DNE(0,en,0,0,"ng-template",5),2&u){e.XpG(2);const c=e.sdS(3);e.Y8G("ngTemplateOutlet",c)}}function Tn(u,b){}function Jn(u,b){if(1&u&&e.DNE(0,Tn,0,0,"ng-template",5),2&u){e.XpG(2);const c=e.sdS(5);e.Y8G("ngTemplateOutlet",c)}}function Dn(u,b){if(1&u&&e.DNE(0,Xt,1,1,null,5)(1,Jn,1,1,null,5),2&u){const c=e.XpG();e.vxM(c.isAffix?0:1)}}function Mt(u,b){if(1&u&&e.nrm(0,"span",7),2&u){const c=e.XpG(2);e.Y8G("icon",c.nzPrefixIcon)("template",c.nzPrefix)}}function Ut(u,b){}function wt(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",9),2&u){const c=e.XpG(3);e.Y8G("status",c.status)}}function Ft(u,b){if(1&u&&(e.j41(0,"span",8),e.DNE(1,wt,1,1,"nz-form-item-feedback-icon",9),e.k0s()),2&u){const c=e.XpG(2);e.Y8G("icon",c.nzSuffixIcon)("template",c.nzSuffix),e.R7$(),e.vxM(c.isFeedback?1:-1)}}function Qt(u,b){if(1&u&&e.DNE(0,Mt,1,2,"span",7)(1,Ut,0,0,"ng-template",5)(2,Ft,2,3,"span",8),2&u){const c=e.XpG(),h=e.sdS(5);e.vxM(c.nzPrefix||c.nzPrefixIcon?0:-1),e.R7$(),e.Y8G("ngTemplateOutlet",h),e.R7$(),e.vxM(c.nzSuffix||c.nzSuffixIcon||c.isFeedback?2:-1)}}function Xe(u,b){if(1&u&&e.nrm(0,"nz-form-item-feedback-icon",9),2&u){const c=e.XpG(3);e.Y8G("status",c.status)}}function ke(u,b){if(1&u&&(e.j41(0,"span",10),e.DNE(1,Xe,1,1,"nz-form-item-feedback-icon",9),e.k0s()),2&u){const c=e.XpG(2);e.R7$(),e.vxM(c.isFeedback?1:-1)}}function q(u,b){if(1&u&&(e.SdG(0),e.DNE(1,ke,2,1,"span",10)),2&u){const c=e.XpG();e.R7$(),e.vxM(c.isAddOn||c.isAffix||!c.isFeedback?-1:1)}}let G=(()=>{class u{onModelChange(c){this.parsedValue=this.nzParser(c),this.inputElement.nativeElement.value=`${this.parsedValue}`;const h=this.getCurrentValidValue(this.parsedValue);this.setValue(h)}getCurrentValidValue(c){let h=c;return h=""===h?"":this.isNotCompleteNumber(h)?this.value:`${this.getValidValue(h)}`,this.toNumber(h)}isNotCompleteNumber(c){return isNaN(c)||""===c||null===c||!(!c||c.toString().indexOf(".")!==c.toString().length-1)}getValidValue(c){let h=parseFloat(c);return isNaN(h)?c:(hthis.nzMax&&(h=this.nzMax),h)}toNumber(c){if(this.isNotCompleteNumber(c))return c;const h=String(c);if(h.indexOf(".")>=0&&(0,M.n9)(this.nzPrecision)){if("function"==typeof this.nzPrecisionMode)return this.nzPrecisionMode(c,this.nzPrecision);if("cut"===this.nzPrecisionMode){const _=h.split(".");return _[1]=_[1].slice(0,this.nzPrecision),Number(_.join("."))}return Number(Number(c).toFixed(this.nzPrecision))}return Number(c)}getRatio(c){let h=1;return c.metaKey||c.ctrlKey?h=.1:c.shiftKey&&(h=10),h}down(c,h){this.isFocused||this.focus(),this.step("down",c,h)}up(c,h){this.isFocused||this.focus(),this.step("up",c,h)}getPrecision(c){const h=c.toString();if(h.indexOf("e-")>=0)return parseInt(h.slice(h.indexOf("e-")+2),10);let _=0;return h.indexOf(".")>=0&&(_=h.length-h.indexOf(".")-1),_}getMaxPrecision(c,h){if((0,M.n9)(this.nzPrecision))return this.nzPrecision;const _=this.getPrecision(h),ne=this.getPrecision(this.nzStep),bt=this.getPrecision(c);return c?Math.max(bt,_+ne):_+ne}getPrecisionFactor(c,h){const _=this.getMaxPrecision(c,h);return Math.pow(10,_)}upStep(c,h){const _=this.getPrecisionFactor(c,h),ne=Math.abs(this.getMaxPrecision(c,h));let bt;return bt="number"==typeof c?((_*c+_*this.nzStep*h)/_).toFixed(ne):this.nzMin===-1/0?this.nzStep:this.nzMin,this.toNumber(bt)}downStep(c,h){const _=this.getPrecisionFactor(c,h),ne=Math.abs(this.getMaxPrecision(c,h));let bt;return bt="number"==typeof c?((_*c-_*this.nzStep*h)/_).toFixed(ne):this.nzMin===-1/0?-this.nzStep:this.nzMin,this.toNumber(bt)}step(c,h,_=1){if(this.stop(),h.preventDefault(),this.nzDisabled)return;const ne=this.getCurrentValidValue(this.parsedValue)||0;let bt=0;"up"===c?bt=this.upStep(ne,_):"down"===c&&(bt=this.downStep(ne,_));const un=bt>this.nzMax||btthis.nzMax?bt=this.nzMax:bt{this[c](h,_)},300))}stop(){this.autoStepTimer&&clearTimeout(this.autoStepTimer)}setValue(c){if(`${this.value}`!=`${c}`&&this.onChange(c),this.value=c,this.parsedValue=c,this.disabledUp=this.disabledDown=!1,c||0===c){const h=Number(c);h>=this.nzMax&&(this.disabledUp=!0),h<=this.nzMin&&(this.disabledDown=!0)}}updateDisplayValue(c){const h=(0,M.n9)(this.nzFormatter(c))?this.nzFormatter(c):"";this.displayValue=h,this.inputElement.nativeElement.value=`${h}`}writeValue(c){this.value=c,this.setValue(c),this.updateDisplayValue(c),this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}setDisabledState(c){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||c,this.isNzDisableFirstChange=!1,this.disabled$.next(this.nzDisabled),this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(c,h,_,ne,bt,un,Wn,Gi,ko){this.ngZone=c,this.elementRef=h,this.cdr=_,this.focusMonitor=ne,this.renderer=bt,this.directionality=un,this.destroy$=Wn,this.nzFormStatusService=Gi,this.nzFormNoStatusService=ko,this.isNzDisableFirstChange=!0,this.isFocused=!1,this.disabled$=new N.B,this.disabledUp=!1,this.disabledDown=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.status="",this.statusCls={},this.hasFeedback=!1,this.onChange=()=>{},this.onTouched=()=>{},this.nzBlur=new e.bkB,this.nzFocus=new e.bkB,this.nzSize="default",this.nzMin=-1/0,this.nzMax=1/0,this.nzParser=cr=>cr.trim().replace(/\u3002/g,".").replace(/[^\w\.-]+/g,""),this.nzPrecisionMode="toFixed",this.nzPlaceHolder="",this.nzStatus="",this.nzStep=1,this.nzInputMode="decimal",this.nzId=null,this.nzDisabled=!1,this.nzReadOnly=!1,this.nzAutoFocus=!1,this.nzBorderless=!1,this.nzFormatter=cr=>cr}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,ee.F)((c,h)=>c.status===h.status&&c.hasFeedback===h.hasFeedback),(0,Ee.Q)(this.destroy$)).subscribe(({status:c,hasFeedback:h})=>{this.setStatusStyles(c,h)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{c?(this.isFocused=!0,this.nzFocus.emit()):(this.isFocused=!1,this.updateDisplayValue(this.value),this.nzBlur.emit(),Promise.resolve().then(()=>this.onTouched()))}),this.dir=this.directionality.value,this.directionality.change.pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.dir=c}),this.setupHandlersListeners(),this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.inputElement.nativeElement,"keyup").pipe((0,Ee.Q)(this.destroy$)).subscribe(()=>this.stop()),(0,x.R)(this.inputElement.nativeElement,"keydown").pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{const{keyCode:h}=c;h!==Q.i7&&h!==Q.n6&&h!==Q.Fm||this.ngZone.run(()=>{if(h===Q.i7){const _=this.getRatio(c);this.up(c,_),this.stop()}else if(h===Q.n6){const _=this.getRatio(c);this.down(c,_),this.stop()}else this.updateDisplayValue(this.value);this.cdr.markForCheck()})})})}ngOnChanges(c){const{nzStatus:h,nzDisabled:_}=c;if(c.nzFormatter&&!c.nzFormatter.isFirstChange()){const ne=this.getCurrentValidValue(this.parsedValue);this.setValue(ne),this.updateDisplayValue(ne)}_&&this.disabled$.next(this.nzDisabled),h&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef)}setupHandlersListeners(){this.ngZone.runOutsideAngular(()=>{(0,oe.h)((0,x.R)(this.upHandler.nativeElement,"mouseup"),(0,x.R)(this.upHandler.nativeElement,"mouseleave"),(0,x.R)(this.downHandler.nativeElement,"mouseup"),(0,x.R)(this.downHandler.nativeElement,"mouseleave")).pipe((0,Ee.Q)(this.destroy$)).subscribe(()=>this.stop())})}setStatusStyles(c,h){this.status=c,this.hasFeedback=h,this.cdr.markForCheck(),this.statusCls=(0,M.LP)(this.prefixCls,c,h),Object.keys(this.statusCls).forEach(_=>{this.statusCls[_]?this.renderer.addClass(this.elementRef.nativeElement,_):this.renderer.removeClass(this.elementRef.nativeElement,_)})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(ge.FN),e.rXU(e.sFG),e.rXU(T.dS,8),e.rXU(U.y4),e.rXU(pe.is,8),e.rXU(pe.n1,8))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-input-number"]],viewQuery:function(h,_){if(1&h&&(e.GBs(A,7),e.GBs(X,7),e.GBs(se,7)),2&h){let ne;e.mGM(ne=e.lsd())&&(_.upHandler=ne.first),e.mGM(ne=e.lsd())&&(_.downHandler=ne.first),e.mGM(ne=e.lsd())&&(_.inputElement=ne.first)}},hostAttrs:[1,"ant-input-number"],hostVars:16,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-in-form-item",!!_.nzFormStatusService)("ant-input-number-focused",_.isFocused)("ant-input-number-lg","large"===_.nzSize)("ant-input-number-sm","small"===_.nzSize)("ant-input-number-disabled",_.nzDisabled)("ant-input-number-readonly",_.nzReadOnly)("ant-input-number-rtl","rtl"===_.dir)("ant-input-number-borderless",_.nzBorderless)},inputs:{nzSize:"nzSize",nzMin:[2,"nzMin","nzMin",e.Udg],nzMax:[2,"nzMax","nzMax",e.Udg],nzParser:"nzParser",nzPrecision:"nzPrecision",nzPrecisionMode:"nzPrecisionMode",nzPlaceHolder:"nzPlaceHolder",nzStatus:"nzStatus",nzStep:[2,"nzStep","nzStep",e.Udg],nzInputMode:"nzInputMode",nzId:"nzId",nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzReadOnly:[2,"nzReadOnly","nzReadOnly",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzBorderless:[2,"nzBorderless","nzBorderless",e.L39],nzFormatter:"nzFormatter"},outputs:{nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzInputNumber"],standalone:!0,features:[e.Jv_([{provide:t.kq,useExisting:(0,e.Rfq)(()=>u),multi:!0},U.y4]),e.GFd,e.OA$,e.aNF],decls:11,vars:15,consts:[["upHandler",""],["downHandler",""],["inputElement",""],[1,"ant-input-number-handler-wrap"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-up",3,"mousedown"],["nz-icon","","nzType","up",1,"ant-input-number-handler-up-inner"],["unselectable","unselectable",1,"ant-input-number-handler","ant-input-number-handler-down",3,"mousedown"],["nz-icon","","nzType","down",1,"ant-input-number-handler-down-inner"],[1,"ant-input-number-input-wrap"],["autocomplete","off",1,"ant-input-number-input",3,"ngModelChange","disabled","placeholder","readOnly","ngModel"],[1,"ant-input-number-suffix",3,"status"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"div",3)(1,"span",4,0),e.bIt("mousedown",function(un){return e.eBV(ne),e.Njj(_.up(un))}),e.nrm(3,"span",5),e.k0s(),e.j41(4,"span",6,1),e.bIt("mousedown",function(un){return e.eBV(ne),e.Njj(_.down(un))}),e.nrm(6,"span",7),e.k0s()(),e.j41(7,"div",8)(8,"input",9,2),e.bIt("ngModelChange",function(un){return e.eBV(ne),e.Njj(_.onModelChange(un))}),e.k0s()(),e.DNE(10,je,1,1,"nz-form-item-feedback-icon",10)}2&h&&(e.R7$(),e.AVh("ant-input-number-handler-up-disabled",_.disabledUp),e.R7$(3),e.AVh("ant-input-number-handler-down-disabled",_.disabledDown),e.R7$(4),e.Y8G("disabled",_.nzDisabled)("placeholder",_.nzPlaceHolder)("readOnly",_.nzReadOnly)("ngModel",_.displayValue),e.BMQ("id",_.nzId)("autofocus",_.nzAutoFocus?"autofocus":null)("min",_.nzMin)("max",_.nzMax)("step",_.nzStep)("inputmode",_.nzInputMode),e.R7$(2),e.vxM(_.hasFeedback&&_.status&&!_.nzFormNoStatusService?10:-1))},dependencies:[te.Y3,te.Dn,t.YN,t.me,t.BC,t.vS,pe.J1,pe.Xd],encapsulation:2,changeDetection:0})}return u})(),H=(()=>{class u{constructor(){this.icon=null,this.type=null,this.template=null}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["","nz-input-number-group-slot",""]],hostVars:6,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-group-addon","addon"===_.type)("ant-input-number-prefix","prefix"===_.type)("ant-input-number-suffix","suffix"===_.type)},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[e.aNF],attrs:Bt,ngContentSelectors:Tt,decls:3,vars:2,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"]],template:function(h,_){1&h&&(e.NAR(),e.DNE(0,Vt,1,1,"span",0)(1,He,2,1,"ng-container",1),e.SdG(2)),2&h&&(e.vxM(_.icon?0:-1),e.R7$(),e.Y8G("nzStringTemplateOutlet",_.template))},dependencies:[te.Y3,te.Dn,D.C,D.m],encapsulation:2,changeDetection:0})}return u})(),Qe=(()=>{class u{constructor(c,h,_,ne,bt,un,Wn){this.focusMonitor=c,this.elementRef=h,this.renderer=_,this.cdr=ne,this.directionality=bt,this.nzFormStatusService=un,this.nzFormNoStatusService=Wn,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input-number",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new N.B}updateChildrenInputSize(){this.listOfNzInputNumberComponent&&this.listOfNzInputNumberComponent.forEach(c=>c.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,ee.F)((c,h)=>c.status===h.status&&c.hasFeedback===h.hasFeedback),(0,Ee.Q)(this.destroy$)).subscribe(({status:c,hasFeedback:h})=>{this.setStatusStyles(c,h)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.focused=!!c,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.dir=c})}ngAfterContentInit(){this.updateChildrenInputSize();const c=this.listOfNzInputNumberComponent.changes.pipe((0,Ie.Z)(this.listOfNzInputNumberComponent));c.pipe((0,ce.n)(h=>(0,oe.h)(c,...h.map(_=>_.disabled$))),(0,Pe.Z)(()=>c),(0,ve.T)(h=>h.some(_=>_.nzDisabled)),(0,Ee.Q)(this.destroy$)).subscribe(h=>{this.disabled=h,this.cdr.markForCheck()})}ngOnChanges(c){const{nzSize:h,nzSuffix:_,nzPrefix:ne,nzPrefixIcon:bt,nzSuffixIcon:un,nzAddOnAfter:Wn,nzAddOnBefore:Gi,nzAddOnAfterIcon:ko,nzAddOnBeforeIcon:cr,nzStatus:ic}=c;h&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(_||ne||bt||un)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Wn||Gi||ko||cr)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),ic&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(c,h){this.status=c,this.hasFeedback=h,this.isFeedback=!!c&&h,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&h,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,M.LP)(`${this.prefixCls}-affix-wrapper`,c,h):{},this.cdr.markForCheck(),this.affixStatusCls=(0,M.LP)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":c,!this.isAddOn&&h),this.groupStatusCls=(0,M.LP)(`${this.prefixCls}-group-wrapper`,this.isAddOn?c:"",!!this.isAddOn&&h);const ne={...this.affixStatusCls,...this.groupStatusCls};Object.keys(ne).forEach(bt=>{ne[bt]?this.renderer.addClass(this.elementRef.nativeElement,bt):this.renderer.removeClass(this.elementRef.nativeElement,bt)})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(ge.FN),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(T.dS,8),e.rXU(pe.is,8),e.rXU(pe.n1,8))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-input-number-group"]],contentQueries:function(h,_,ne){if(1&h&&e.wni(ne,G,5),2&h){let bt;e.mGM(bt=e.lsd())&&(_.listOfNzInputNumberComponent=bt)}},hostVars:24,hostBindings:function(h,_){2&h&&e.AVh("ant-input-number-group",_.nzCompact)("ant-input-number-group-compact",_.nzCompact)("ant-input-number-group-wrapper",_.isAddOn)("ant-input-number-group-wrapper-rtl",_.isAddOn&&"rtl"===_.dir)("ant-input-number-group-wrapper-lg",_.isAddOn&&_.isLarge)("ant-input-number-group-wrapper-sm",_.isAddOn&&_.isSmall)("ant-input-number-affix-wrapper",!_.isAddOn&&_.isAffix)("ant-input-number-affix-wrapper-rtl",!_.isAddOn&&"rtl"===_.dir)("ant-input-number-affix-wrapper-focused",!_.isAddOn&&_.isAffix&&_.focused)("ant-input-number-affix-wrapper-disabled",!_.isAddOn&&_.isAffix&&_.disabled)("ant-input-number-affix-wrapper-lg",!_.isAddOn&&_.isAffix&&_.isLarge)("ant-input-number-affix-wrapper-sm",!_.isAddOn&&_.isAffix&&_.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzCompact:[2,"nzCompact","nzCompact",e.L39]},exportAs:["nzInputNumberGroup"],standalone:!0,features:[e.Jv_([pe.n1]),e.GFd,e.OA$,e.aNF],ngContentSelectors:Tt,decls:6,vars:1,consts:[["affixTemplate",""],["contentTemplate",""],[1,"ant-input-number-wrapper","ant-input-number-group"],["nz-input-number-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-number-affix-wrapper",3,"ant-input-number-affix-wrapper-disabled","ant-input-number-affix-wrapper-sm","ant-input-number-affix-wrapper-lg","ant-input-number-affix-wrapper-focused","ngClass"],[3,"ngTemplateOutlet"],[1,"ant-input-number-affix-wrapper",3,"ngClass"],["nz-input-number-group-slot","","type","prefix",3,"icon","template"],["nz-input-number-group-slot","","type","suffix",3,"icon","template"],[3,"status"],["nz-input-number-group-slot","","type","suffix"]],template:function(h,_){1&h&&(e.NAR(),e.DNE(0,rn,5,3,"span",2)(1,Dn,2,1)(2,Qt,3,3,"ng-template",null,0,e.C5r)(4,q,2,1,"ng-template",null,1,e.C5r)),2&h&&e.vxM(_.isAddOn?0:1)},dependencies:[H,z.YU,z.T3,pe.J1,pe.Xd],encapsulation:2,changeDetection:0})}return u})(),ht=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[G,Qe,H]})}return u})();function Kt(u,b){if(1&u&&e.nrm(0,"input",2),2&u){const c=e.XpG();e.Y8G("formControl",c.formControl)("type",c.props.type||"text")("formlyAttributes",c.field)}}function fn(u,b){if(1&u&&e.nrm(0,"nz-input-number",3),2&u){const c=e.XpG();e.Y8G("formControl",c.formControl)("formlyAttributes",c.field)}}let In=(()=>{class u extends m.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes",4,"ngIf","ngIfElse"],["nz-input","",3,"formControl","type","formlyAttributes"],[3,"formControl","formlyAttributes"]],template:function(c,h){if(1&c&&e.DNE(0,Kt,1,3,"input",1)(1,fn,1,2,"ng-template",null,0,e.C5r),2&c){const _=e.sdS(2);e.Y8G("ngIf","number"!==h.props.type)("ngIfElse",_)}},dependencies:[G,z.bT,P.Sy,t.me,t.BC,t.l_,m.ch],encapsulation:2,changeDetection:0}),u})(),Kn=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[z.MD,t.X1,P.j,ht,w,m.qy.forChild({types:[{name:"input",component:In,wrappers:["form-field"]},{name:"string",extends:"input"},{name:"number",extends:"input",defaultOptions:{props:{type:"number"}}},{name:"integer",extends:"input",defaultOptions:{props:{type:"number"}}}]})]]}),u})(),Gn=(()=>{class u extends m.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.Vt3],decls:1,vars:2,consts:[["nz-input","",3,"formControl","formlyAttributes"]],template:function(c,h){1&c&&e.nrm(0,"textarea",0),2&c&&e.Y8G("formControl",h.formControl)("formlyAttributes",h.field)},dependencies:[P.Sy,t.me,t.BC,t.l_,m.ch],encapsulation:2,changeDetection:0}),u})(),$n=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[z.MD,t.X1,P.j,w,m.qy.forChild({types:[{name:"textarea",component:Gn,wrappers:["form-field"]}]})]]}),u})();var Nn=a(1985),vn=a(4412),Jt=a(5964),An=a(8141);let Yt=(()=>{class u{transform(c,h){return c instanceof Nn.c?this.dispose():c=this.observableOf(c,h),c.pipe((0,ve.T)(_=>this.transformOptions(_,h)))}ngOnDestroy(){this.dispose()}transformOptions(c,h){const _=this.transformSelectProps(h),ne=[],bt={};return c?.forEach(un=>{const Wn=this.transformOption(un,_);if(Wn.group){const Gi=bt[Wn.label];void 0===Gi?bt[Wn.label]=ne.push(Wn)-1:Wn.group.forEach(ko=>ne[Gi].group.push(ko))}else ne.push(Wn)}),ne}transformOption(c,h){const _=h.groupProp(c);return Array.isArray(_)?{label:h.labelProp(c),group:_.map(ne=>this.transformOption(ne,h))}:(c={label:h.labelProp(c),value:h.valueProp(c),disabled:!!h.disabledProp(c)},_?{label:_,group:[c]}:c)}transformSelectProps(c){const h=c?.props||c?.templateOptions||{},_=ne=>"function"==typeof ne?ne:bt=>bt[ne];return{groupProp:_(h.groupProp||"group"),labelProp:_(h.labelProp||"label"),valueProp:_(h.valueProp||"value"),disabledProp:_(h.disabledProp||"disabled")}}dispose(){this._options&&(this._options.complete(),this._options=null),this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)}observableOf(c,h){return this.dispose(),h&&h.options&&h.options.fieldChanges&&(this._subscription=h.options.fieldChanges.pipe((0,Jt.p)(({property:_,type:ne,field:bt})=>"expressionChanges"===ne&&(0===_.indexOf("templateOptions.options")||0===_.indexOf("props.options"))&&bt===h&&Array.isArray(bt.props.options)&&!!this._options),(0,An.M)(()=>this._options.next(h.props.options))).subscribe()),this._options=new vn.t(c),this._options.asObservable()}}return u.\u0275fac=function(c){return new(c||u)},u.\u0275pipe=e.EJ8({name:"formlySelectOptions",type:u,pure:!0}),u})(),Je=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({}),u})();var ae=a(3190);function ie(u,b){if(1&u&&(e.j41(0,"label",2),e.EFF(1),e.k0s()),2&u){const c=b.$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled),e.R7$(),e.SpI(" ",c.label," ")}}let re=(()=>{class u extends m.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-radio"]],features:[e.Vt3],decls:4,vars:7,consts:[[3,"ngModelChange","formControl"],["nz-radio","",3,"nzValue","nzDisabled",4,"ngFor","ngForOf"],["nz-radio","",3,"nzValue","nzDisabled"]],template:function(c,h){1&c&&(e.j41(0,"nz-radio-group",0),e.bIt("ngModelChange",function(ne){return h.props.change&&h.props.change(h.field,ne)}),e.DNE(1,ie,2,3,"label",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&c&&(e.Y8G("formControl",h.formControl),e.R7$(),e.Y8G("ngForOf",e.bMT(3,5,e.i5U(2,2,h.props.options,h.field))))},dependencies:[ae.i3,ae.lx,t.BC,t.l_,z.Sq,z.Jj,Yt],encapsulation:2,changeDetection:0}),u})(),et=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[z.MD,t.X1,ae.Sw,w,Je,m.qy.forChild({types:[{name:"radio",component:re,wrappers:["form-field"]}]})]]}),u})();var _t=a(2986);let mt=(()=>{class u extends m.PU{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(c,h){1&c&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(ne){return h.props.change&&h.props.change(h.field,ne)}),e.EFF(1),e.k0s()),2&c&&(e.Y8G("nzIndeterminate",h.props.indeterminate&&null==h.formControl.value)("formControl",h.formControl)("formlyAttributes",h.field),e.R7$(),e.SpI(" ",h.props.label," "))},dependencies:[_t.$g,t.BC,t.l_,m.ch],encapsulation:2,changeDetection:0}),u})(),Rt=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[z.MD,t.X1,_t.IJ,w,m.qy.forChild({types:[{name:"checkbox",component:mt,wrappers:["form-field"]},{name:"boolean",extends:"checkbox"}]})]]}),u})();var ct=a(1997);function Se(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const c=b.$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled)("nzLabel",c.label)}}function lt(u,b){if(1&u&&(e.j41(0,"nz-option-group",4),e.DNE(1,Se,1,3,"nz-option",5),e.k0s()),2&u){const c=e.XpG().$implicit;e.Y8G("nzLabel",c.label),e.R7$(),e.Y8G("ngForOf",c.group)}}function de(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const c=e.XpG().$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled)("nzLabel",c.label)}}function Oe(u,b){if(1&u&&(e.qex(0),e.DNE(1,lt,2,2,"nz-option-group",2)(2,de,1,3,"nz-option",3),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",c.group),e.R7$(),e.Y8G("ngIf",!c.group)}}let zt=(()=>{class u extends m.PU{}return u.\u0275fac=(()=>{let b;return function(h){return(b||(b=e.xGo(u)))(h||u)}})(),u.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-select"]],features:[e.Vt3],decls:4,vars:12,consts:[[3,"ngModelChange","nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(c,h){1&c&&(e.j41(0,"nz-select",0),e.bIt("ngModelChange",function(ne){return h.props.change&&h.props.change(h.field,ne)}),e.DNE(1,Oe,3,2,"ng-container",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&c&&(e.AVh("ng-dirty",h.showError),e.Y8G("nzPlaceHolder",h.props.placeholder)("formControl",h.formControl)("formlyAttributes",h.field)("nzMode",h.props.multiple?"multiple":"default"),e.R7$(),e.Y8G("ngForOf",e.bMT(3,10,e.i5U(2,7,h.props.options,h.field))))},dependencies:[ct.WI,ct.uX,ct.ld,t.BC,t.l_,m.ch,z.Sq,z.bT,z.Jj,Yt],encapsulation:2,changeDetection:0}),u})(),Ze=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[z.MD,t.X1,ct.DH,w,Je,m.qy.forChild({types:[{name:"select",component:zt,wrappers:["form-field"]},{name:"enum",extends:"select"}]})]]}),u})(),Ne=(()=>{class u{}return u.\u0275fac=function(c){return new(c||u)},u.\u0275mod=e.$C({type:u}),u.\u0275inj=e.G2t({imports:[[w,Kn,$n,et,Rt,Ze]]}),u})();var Le=a(776);function Y(u,b){return(0,ee.F)((c,h)=>b?b(c[u],h[u]):c[u]===h[u])}const le={paramKey:!0};class V{constructor(b){this.route=b,this.unSub$=new N.B}postPopulate(b){if(b.fieldGroup||b.fieldArray||!1===(b.props||{...le}).paramKey||(this.paramKey=this.getParamKey(b),!this.paramKey))return;const h=this.getRouteSub(this.route,b),_=b.hooks?.onDestroy;h&&_&&(b.hooks={...b.hooks,onDestroy:ne=>{h.unsubscribe(),_(ne)}})}getParamKey(b){const c=b.props;if("string"==typeof c.paramKey)return c.paramKey;if(b.key){if("string"==typeof b.key)return b.key;console.warn(`observe-query-param cannot use field key ${JSON.stringify(b.key)} of type ${typeof b.key} to observe a query param. Use prop.paramKey to specify a query param string, or define a string field.key.`)}}getRouteSub(b,c){return b.queryParams.pipe(Y(this.paramKey),(0,Ee.Q)(this.unSub$)).subscribe(h=>{const _=c.formControl,ne=h[this.paramKey];if(!ne)return void this.unSub$.next();let bt;try{bt=JSON.parse(ne)}catch(un){return console.warn(`observe-query-param failed to parse query param ${this.paramKey} for field ${c.id}: ${un}`),console.warn("Note: Query values are parsed as JSON, therefore enum strings must be enclosed in double-quotes, and numeric entity IDs must be bare, unquoted."),void this.unSub$.next()}if(bt)return Object.keys(bt).length>0&&bt.constructor===Object?(console.warn(`observe-query-param may only set primitive types or arrays of primitive types, param ${this.paramKey} is an object: ${JSON.stringify(bt)}`),void this.unSub$.next()):void _.setValue(bt);this.unSub$.next()})}}function Ve(u){return{extensions:[{name:"observeQueryParam",extension:new V(u)}]}}const W={extras:{immutable:!1,lazyRender:!0},validationMessages:[{name:"required",message:"This field is required."},{name:"minLength",message:(u,b)=>`This field has a minimum length of ${b.templateOptions?.minLength}.`},{name:"maxLength",message:(u,b)=>`This field has a maximum length of ${b.templateOptions?.maxLength}.`},{name:"min",message:(u,b)=>`This field has a minimum value of ${b.templateOptions?.min}.`},{name:"max",message:(u,b)=>`This field has a maximum value of ${b.templateOptions?.max}.`},{name:"pattern",message:(u,b)=>`This field's value must fit the pattern ${b.templateOptions?.pattern}.`},{name:"integer",message:(u,b)=>"Value must be an integer."},{name:"nucleotide",message:(u,b)=>"Value must only contain A, C, T, G, and/or /."},{name:"clinvar",message:(u,b)=>"Value must be an integer."}],validators:[{name:"integer",validation:(u,b)=>""===u.value||null==u.value||/^\d+$/.test(u.value)?null:{integer:!0}},{name:"nucleotide",validation:(u,b)=>""===u.value||null==u.value||/^[ACTG\/]+$/.test(u.value)?null:{nucleotide:!0}},{name:"clinvar",validation:(u,b)=>{for(var c of u.value)if(""!==c&&null!=c&&!/^\d+$/.test(c))return{clinvar:!0};return null}}]};var _e=a(4917),it=a(7391),dt=a(8928),Ht=a(181),dn=a(7685),wn=a(3617),si=a(9448);let Cn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(),wn.$,te.Y3,ct.DH,P.j,j.PQ,it.kT,dt.jl,dn.pc,si.g,Ht._,_e.i]})}return u})();var ni=a(5699);let ui=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,te.Y3,ni.T,_e.i]})}return u})();const Ni=(u,b,c,h)=>({disabled:u,error:b,required:c,valid:h}),Eo=(u,b)=>({disabled:u,error:b});function lo(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-form-label",6),e.nrm(2,"span",7),e.k0s(),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(6,Eo,c.props.disabled,c.showError))("nzRequired",c.props.required)("nzFor",c.id)("nzTooltipTitle",c.props.tooltip)("nzNoColon",!0),e.R7$(),e.Y8G("nzContent",c.props.label)}}function $i(u,b){if(1&u&&e.nrm(0,"span",13),2&u){const c=e.XpG(2);e.Y8G("innerHTML",c.props.description,e.npT)}}function Ii(u,b){if(1&u&&e.nrm(0,"span",14),2&u){const c=e.XpG(2);e.Y8G("innerHTML",c.props.description,e.npT)}}function Nr(u,b){if(1&u&&e.nrm(0,"span",15),2&u){const c=e.XpG(2);e.Y8G("innerHTML",c.props.description,e.npT)}}function pr(u,b){if(1&u&&(e.j41(0,"div",8),e.qex(1,9),e.DNE(2,$i,1,1,"span",10)(3,Ii,1,1,"span",11)(4,Nr,1,1,"span",12),e.bVm(),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngSwitch",c.props.extraType),e.R7$(),e.Y8G("ngSwitchCase","prompt"),e.R7$(),e.Y8G("ngSwitchCase","description")}}function vt(u,b){if(1&u&&e.nrm(0,"formly-validation-message",18),2&u){const c=e.XpG(2);e.Y8G("field",c.field)}}function Gt(u,b){if(1&u&&(e.j41(0,"div",16),e.DNE(1,vt,1,1,"formly-validation-message",17),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",c.props.showErrorTip)}}const Pt={};let Mn=(()=>{class u extends m.cm{get errorState(){return this.showError?"error":""}constructor(c){super(),this.cdr=c,this.formLayout="vertical",this.wrapperOptions={...Pt}}ngOnInit(){this.props.showExtra=this.props.showExtra??!0,this.props.extraType=this.props.extraType??"prompt",this.props.showErrorTip=this.props.showErrorTip??!0,this.props.formFieldOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formFieldOptions}),this.options.formState.formLayout&&(this.formLayout=this.options.formState.formLayout)}ngAfterViewInit(){this.cdr.detectChanges()}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-field-wrapper"]],hostVars:6,hostBindings:function(h,_){2&h&&e.AVh("layout-horizontal","horizontal"===_.formLayout)("layout-vertical","vertical"===_.formLayout)("layout-inline","inline"===_.formLayout)},features:[e.Vt3],decls:9,vars:10,consts:[["fieldComponent",""],["descriptionTpl",""],["errorTpl",""],[3,"ngClass"],[4,"ngIf"],[3,"nzExtra","nzValidateStatus","nzErrorTip"],[3,"ngClass","nzRequired","nzFor","nzTooltipTitle","nzNoColon"],["nz-typography","","nzEllipsis","",1,"label",3,"nzContent"],[1,"form-field-description"],[3,"ngSwitch"],["class","extra-prompt",3,"innerHTML",4,"ngSwitchCase"],["class","extra-description",3,"innerHTML",4,"ngSwitchCase"],[3,"innerHTML",4,"ngSwitchDefault"],[1,"extra-prompt",3,"innerHTML"],[1,"extra-description",3,"innerHTML"],[3,"innerHTML"],[1,"cvc-form-field-validation"],[3,"field",4,"ngIf"],[3,"field"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-form-item",3),e.DNE(1,lo,3,9,"ng-container",4),e.j41(2,"nz-form-control",5),e.eu8(3,null,0),e.k0s()(),e.DNE(5,pr,5,3,"ng-template",null,1,e.C5r)(7,Gt,2,1,"ng-template",null,2,e.C5r)),2&h){const ne=e.sdS(6),bt=e.sdS(8);e.Y8G("ngClass",e.ziG(5,Ni,_.props.disabled,_.showError,_.props.required,"VALID"===_.field.formControl.status&&!0===_.field.formControl.touched)),e.R7$(),e.Y8G("ngIf",_.props.label&&!0!==_.props.hideLabel),e.R7$(),e.Y8G("nzExtra",_.props.showExtra&&!_.showError?ne:void 0)("nzValidateStatus",_.errorState)("nzErrorTip",bt)}},dependencies:[z.YU,z.bT,z.ux,z.e1,z.fG,R.Uq,R.e,j.Ls,j.Mo,j.zS,it.Di,m.Nc],styles:['.typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{border-radius:4px;margin-top:8px;margin-bottom:0}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.label[_ngcontent-%COMP%]{color:#096dd9}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.anticon{margin-left:.25em}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] span.anticon path{color:#69c0ff}[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%] .form-row-wrapped[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%], .form-row-wrapped [_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border:1px solid #096dd9;height:1em;content:""}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#096dd9;font-weight:600}[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#40a9ff}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#cf1322}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#cf1322}[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#ff4d4f}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#389e0d}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#389e0d}[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#73d13d}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label:before{border-color:#00000073}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.label{color:#00000073}[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%] > nz-form-label[_ngcontent-%COMP%] label span.anticon path{color:#d9d9d9}.layout-vertical[_nghost-%COMP%] > nz-form-item[_ngcontent-%COMP%]{background-color:#e6f7ff;border:1px solid #e6f7ff;padding:4px 8px}.layout-vertical[_nghost-%COMP%] > nz-form-item.required[_ngcontent-%COMP%]{background-color:#e6f7ff;border:1px solid #69c0ff}.layout-vertical[_nghost-%COMP%] > nz-form-item.error[_ngcontent-%COMP%]{background-color:#fff1f0;border:1px solid #ff7875}.layout-vertical[_nghost-%COMP%] > nz-form-item.valid[_ngcontent-%COMP%]{background-color:#f6ffed;border:1px solid #95de64}.layout-vertical[_nghost-%COMP%] > nz-form-item.disabled[_ngcontent-%COMP%]{background-color:#f5f5f5;border:1px solid #f5f5f5}.cvc-form-field-validation[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%]{min-height:16px;line-height:1.2;margin-top:4px}.cvc-form-field-validation[_ngcontent-%COMP%] .extra-prompt[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%] .extra-prompt[_ngcontent-%COMP%]{font-weight:400}.cvc-form-field-validation[_ngcontent-%COMP%] .extra-description[_ngcontent-%COMP%], .form-field-description[_ngcontent-%COMP%] .extra-description[_ngcontent-%COMP%]{font-style:oblique}.cvc-form-field-validation[_ngcontent-%COMP%]{font-weight:600}'],changeDetection:0})}return u})();var En=a(5154);const ii={wrappers:[{name:"form-field",component:Mn}]};let Pn=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,j.PQ,En.Qt,it.kT,m.qy.forChild(ii)]})}return u})();var Fn=a(513),hi=a(2096),xi=a(1236),Hi=a(896),Mi=a(1635),gn=a(9894),Si=a(4608);function Ei(){let u=class x4 extends m.PU{configureBaseField(){this.field?.options?.fieldChanges?(this.onModelChange$=this.field.options.fieldChanges.pipe((0,Jt.p)(c=>c.field.id===this.field.id),(0,Si.E)("value")),this.formControl.value?(this.onValueChange$=new vn.t(this.formControl.value),Array.isArray(this.formControl.value)?this.field.formControl.value.length>0&&this.formControl.markAsTouched():this.formControl.markAsTouched()):this.onValueChange$=new vn.t(void 0),this.onModelChange$.pipe((0,gn.s)(this)).subscribe(c=>{this.onValueChange$.next(c)}),this.field.options?.formState&&this.field.options.formState.fields&&(this.state=this.field.options.formState,this.autoConfigureStateValueChanges())):console.error(`${this.field.id} could not find its fieldChanges Observable, ensure configureBaseField() is called in this field's AfterViewInit hook.`)}autoConfigureStateValueChanges(){!this.field.key&&"string"==typeof this.field.key&&console.warn(`${this.field.id} cannot auto-configure state value changes, as its field key is not a string. field.key: `,this.field.key);const c=`${this.field.key}$`;this.state&&this.state.fields[c]?(this.stateValueChange$=this.state.fields[c],this.onValueChange$.pipe((0,ve.T)(h=>null===h?void 0:h),(0,gn.s)(this)).subscribe(h=>{this.stateValueChange$&&this.stateValueChange$.next(h)})):console.warn(`${this.field.id} could not find state field ${c} on form state. State: `,this.state)}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(x4)))(_||x4)}})();static#t=this.\u0275prov=e.jDH({token:x4,factory:x4.\u0275fac})};return u=(0,Mi.Cg)([(0,gn.d)()],u),u}var Ki=a(2771),Vi=a(5245),qi=a(3993),Go=a(7673),so=a(2806),tr=a(3226),lr=a(9030),zo=a(9199),Mo=a(4572);function br(...u){let b=u[0],c=u[1];if(0===b.length)return(0,Go.of)(c?c([]):[]);const h=b.slice();return c&&h.push((..._)=>c(_)),Mo.z.apply(null,h)}function Wo(){return function(b){return(()=>{class h extends b{configureEntitySelectField(ne){if(this.typeaheadQuery=ne.typeaheadQuery,this.tagQuery=ne.tagQuery,this.getTypeaheadVars=ne.getTypeaheadVarsFn,this.getTypeahedResults=ne.getTypeaheadResultsFn,this.getTagQueryVars=ne.getTagQueryVarsFn,this.getTagQueryResults=ne.getTagQueryResultsFn,this.getSelectedItemOption=ne.getSelectedItemOptionFn,this.getSelectOptions=ne.getSelectOptionsFn,this.typeaheadParam$=ne.typeaheadParam$,this.typeaheadParamName$=ne.typeaheadParamName$,this.selectOpen$=ne.selectOpen$||new Ki.m,this.selectComponent=ne.selectComponent,this.minSearchStrLength=ne.minSearchStrLength||0,this.cdr=ne.changeDetectorRef,this.onSearch$=new vn.t(void 0),this.isLoading$=new Nn.c,this.result$=new vn.t([]),this.onPopulate$=new N.B,this.onTagClose$=new N.B,this.onOpenChange$=new N.B,this.onCreate$=new N.B,this.selectOption$=new vn.t(void 0),this.response$=this.onSearch$.pipe((0,Vi.i)(1),(0,Jt.p)(zo.kP),(0,Jt.p)(bt=>0===this.minSearchStrLength||bt.length>=this.minSearchStrLength),(0,qi.E)(void 0!==this.typeaheadParam$?this.typeaheadParam$:(0,Go.of)(void 0)),(0,ce.n)(([bt,un])=>{const Wn=this.getTypeaheadVars(bt,un),Gi=cr=>(this.queryRef=this.typeaheadQuery.watch(cr),this.isLoading$=this.queryRef.valueChanges.pipe((0,Si.E)("loading"),(0,ee.F)()),this.queryRef.valueChanges),ko=cr=>(0,so.H)(this.queryRef.refetch(cr));return(0,tr.T)(()=>void 0===this.queryRef,(0,lr.v)(()=>Gi(Wn)),(0,lr.v)(()=>ko(Wn)))})),this.onOpenChange$.subscribe(bt=>{bt&&this.onSearch$.next("")}),this.response$.pipe((0,Jt.p)(bt=>void 0!==bt.data),(0,ve.T)(bt=>this.getTypeahedResults(bt)),(0,gn.s)(this)).subscribe(bt=>{this.result$.next(bt),0===bt.length&&this.selectOption$.next([]),this.cdr.detectChanges()}),this.optionTemplates?this.optionTemplates.changes.pipe((0,qi.E)(this.result$),(0,gn.s)(this)).subscribe(([bt,un])=>{const Wn=this.getSelectOptions(un,bt);this.selectOption$.next(Wn),this.cdr.detectChanges()}):(console.warn(`${this.field.id} could not find reference to optionTemplates ViewChildren, options will only show entity name text.`),this.result$.pipe((0,gn.s)(this)).subscribe(bt=>{this.selectOption$.next(bt.map(un=>({label:un.name,value:un.id})))})),this.onPopulate$.pipe((0,Jt.p)(zo.kP),(0,ce.n)(bt=>br(this.getTagQueries(bt))),(0,ve.T)(bt=>bt.map(un=>this.getTagQueryResults(un))),(0,An.M)(bt=>{this.result$.next(bt)}),(0,gn.s)(this)).subscribe(bt=>{let un;if(this.field.props&&this.field.props.isMultiSelect){const Wn=[];bt.forEach(Gi=>Wn.push(Gi?.id||void 0)),un=Wn}else un=bt[0].id;this.formControl.setValue(un),this.selectOpen$.next(!1)}),this.formControl.value){const bt=this.formControl.value;if(Object.keys(bt).length>0&&bt.constructor===Object)return void console.error(`${this.field.id} prepopulated value must be a primitive or array of primitives, value is an object:`,bt);this.onPopulate$.next(bt)}this.onTagClose$.pipe((0,gn.s)(this)).subscribe(bt=>{this.resetField()})}getTagQueries(ne){return"number"==typeof ne&&(ne=[ne]),ne.map(un=>this.tagQuery.fetch(this.getTagQueryVars(un),{fetchPolicy:"cache-first"}).pipe((0,Jt.p)(Wn=>!!Wn.data)))}resetField(){this.formControl.setValue(void 0),this.result$&&this.result$.next([])}static#e=this.\u0275fac=(()=>{let ne;return function(un){return(ne||(ne=e.xGo(h)))(un||h)}})();static#t=this.\u0275prov=e.jDH({token:h,factory:h.\u0275fac})}return h})()}}const uo=function Zr(u){for(var b=arguments.length,c=new Array(b>1?b-1:0),h=1;h[],Fs=(u,b,c)=>({$implicit:u,createMsg:b,model:c});function st(u,b){1&u&&e.nrm(0,"span",5),2&u&&e.Y8G("nzType","loading")}function Te(u,b){if(1&u&&(e.DNE(0,st,1,1,"span",4),e.qex(1),e.EFF(2),e.bVm()),2&u){const c=e.XpG().ngrxLet;e.Y8G("ngIf",c.showSpinner),e.R7$(2),e.SpI(" ",c.message," ")}}function $e(u,b){if(1&u&&(e.nrm(0,"nz-divider"),e.j41(1,"div",6),e.eu8(2,7),e.k0s()),2&u){const c=e.XpG().ngrxLet,h=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",h.cvcAddEntity)("ngTemplateOutletContext",e.sMw(2,Fs,c.searchStr,c.message,h.cvcAddEntityModel))}}function at(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-select",3),e.bIt("nzOpenChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onOpenChange$.next(_))})("nzOnSearch",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcOnSearch.next(_))})("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcOnModelChange.next(_))}),e.k0s(),e.DNE(2,Te,3,2,"ng-template",null,0,e.C5r)(4,$e,3,6,"ng-template",null,1,e.C5r),e.bVm()}if(2&u){const c=b.ngrxLet,h=e.sdS(3),_=e.sdS(5),ne=e.XpG();e.R7$(),e.AVh("ng-dirty",ne.cvcShowError),e.Y8G("nzDropdownMatchSelectWidth",!0)("formControl",ne.cvcFormControl)("formlyAttributes",ne.cvcFormlyAttributes)("nzMode",ne.cvcSelectMode)("nzPlaceHolder",ne.cvcPlaceholder||"Search "+ne.cvcEntityName.plural)("nzCustomTemplate",ne.cvcCustomTemplate||null)("nzOptionHeightPx",30)("nzDisabled",ne.cvcDisabled)("nzLoading",ne.cvcLoading)("nzAllowClear",ne.cvcAllowClear)("nzBorderless",ne.cvcBorderless)("nzSuffixIcon",ne.cvcSuffixIcon)("nzShowArrow",ne.cvcShowArrow)("nzAutoClearSearchValue",ne.cvcAutoClearSearchValue)("nzOptions",ne.cvcOptions||e.lJ4(20,Ko))("nzDropdownRender",c.showAddForm?_:null)("nzNotFoundContent",h)("nzOpen",ne.cvcSelectOpen)}}const At={search:(u,b,c)=>`Searching ${u} matching "${b}"...`,searchAll:(u,b,c)=>`Listing all ${u}...`,searchParam:(u,b,c)=>`Searching ${c} ${u} matching "${b}"...`,searchParamAll:(u,b,c)=>`Listing all ${c} ${u}...`,searchEnterQuery:(u,b,c,h)=>`Enter at least ${h} characters to search ${c} ${u}`,searchEnterQueryAll:(u,b,c,h)=>`Enter at least least ${h} characters to search ${u}`,empty:(u,b,c)=>`No ${u} found matching "${b}"`,emptyAll:(u,b,c)=>`No ${u} found.`,emptyParam:(u,b,c)=>`No ${c} ${u} found matching "${b}"`,emptyParamAll:(u,b,c)=>`No ${c} ${u} found`};let nn=class Om{constructor(){this.cvcEntityName={singular:"Entity",plural:"Entities"},this.cvcSelectMode="default",this.cvcLoading=!1,this.cvcOptions=void 0,this.cvcShowError=!1,this.cvcDisabled=!1,this.cvcAllowClear=!0,this.cvcBorderless=!1,this.cvcShowArrow=!1,this.cvcAutoClearSearchValue=!0,this.cvcSuffixIcon="search",this.cvcCustomTemplate=null,this.cvcAddEntity=null,this.cvcMinSearchStrLength=0,this.cvcAddEntityBehavior=(b,c)=>b.length>this.cvcMinSearchStrLength&&0===c.length,this.cvcOnOpenChange=new e.bkB,this.cvcOnSearch=(new e.bkB).pipe((0,Tr.c)(300,$r.E,{leading:!1,trailing:!0}),(0,as.t)(1)),this.cvcOnModelChange=new e.bkB,this.cvcSelectComponent=new e.bkB,this.messageOptions=At,this.onParamName$=new vn.t(void 0),this.onOption$=new vn.t([]),this.onOpenChange$=new vn.t(!1),this.onLoading$=new vn.t(!1),this.notFoundDisplay$=new vn.t({searchStr:"",showSpinner:!0,showAddForm:!1,message:`Searching ${this.cvcEntityName.plural}...`}),this.previousIsOpen=!1}ngAfterViewInit(){this.cvcSelectMessages&&(this.messageOptions={...this.messageOptions,...this.cvcSelectMessages}),this.nzSelectComponent?(this.cvcSelectComponent.next(this.nzSelectComponent),this.onOpenChange$.pipe((0,gn.s)(this)).subscribe(b=>{this.cvcOnOpenChange.next(b)}),(0,Mo.z)([this.onOpenChange$,this.cvcOnSearch,this.onParamName$,this.onOption$,this.onLoading$.pipe((0,ee.F)())]).pipe((0,ve.T)(([b,c,h,_,ne])=>{const bt=this.cvcEntityName.plural,un=this.cvcMinSearchStrLength,Wn=null!==this.cvcAddEntity,Gi=!1===this.previousIsOpen&&!0===b;if(this.previousIsOpen=b,Gi)return this.getSelectInitDisplay(bt,un,h);if(ne&&c.length>=un){const ko=this.cvcAddEntityBehavior(c,this.cvcResults||[]);return this.getSelectSearchingDisplay(c,bt,un,h,Wn,ko)}return b&&!ne&&c.length>=un&&0===_.length?this.getSelectEmptyDisplay(c,bt,h,Wn):{searchStr:"",showSpinner:!1,showAddForm:Wn&&this.cvcAddEntityBehavior(c,this.cvcResults||[]),message:""}}),(0,An.M)(b=>{this.notFoundDisplay$.next(b)}),(0,gn.s)(this)).subscribe()):console.error(`${this.cvcEntityName.singular} entity-select could not gain reference to its nzSelectComponent, aborting AfterViewInit()`)}getSelectInitDisplay(b,c,h){let _=this.messageOptions.searchAll,ne=!1;return 0==c?(ne=!0,_=void 0===h?this.messageOptions.searchAll:this.messageOptions.searchParamAll):c>0&&(ne=!1,_=void 0===h?this.messageOptions.searchEnterQueryAll:this.messageOptions.searchEnterQuery),{message:_(b,"",h,c),showSpinner:ne,showAddForm:!1,searchStr:""}}getSelectSearchingDisplay(b,c,h,_,ne,bt=!1){let un=this.messageOptions.searchAll;return un=void 0===_?b.length>0?this.messageOptions.search:this.messageOptions.searchAll:b.length>0?this.messageOptions.searchParam:this.messageOptions.searchParamAll,{message:un(c,b,_),showSpinner:!0,showAddForm:ne&&bt,searchStr:b}}getSelectEmptyDisplay(b,c,h,_){let ne=this.messageOptions.empty;return ne=void 0===h?b.length>0?this.messageOptions.empty:this.messageOptions.emptyAll:b.length>0?this.messageOptions.emptyParam:this.messageOptions.emptyParamAll,{message:ne(c,b,h),showSpinner:!1,showAddForm:_,searchStr:b}}ngOnChanges(b){if(b.cvcParamName&&this.onParamName$.next(b.cvcParamName.currentValue),b.cvcOptions){const c=b.cvcOptions.currentValue;void 0!==c&&this.onOption$.next(c)}if(b.cvcLoading){const c=b.cvcLoading.currentValue;void 0!==c&&this.onLoading$.next(c)}}static#e=this.\u0275fac=function(c){return new(c||Om)};static#t=this.\u0275cmp=e.VBU({type:Om,selectors:[["cvc-entity-select"]],viewQuery:function(c,h){if(1&c&&e.GBs(ct.WI,5),2&c){let _;e.mGM(_=e.lsd())&&(h.nzSelectComponent=_.first)}},inputs:{cvcFormControl:"cvcFormControl",cvcFormlyAttributes:"cvcFormlyAttributes",cvcEntityName:"cvcEntityName",cvcSelectMessages:"cvcSelectMessages",cvcSelectMode:"cvcSelectMode",cvcPlaceholder:"cvcPlaceholder",cvcLoading:"cvcLoading",cvcOptions:"cvcOptions",cvcResults:"cvcResults",cvcShowError:"cvcShowError",cvcDisabled:"cvcDisabled",cvcAllowClear:"cvcAllowClear",cvcBorderless:"cvcBorderless",cvcShowArrow:"cvcShowArrow",cvcAutoClearSearchValue:"cvcAutoClearSearchValue",cvcSuffixIcon:"cvcSuffixIcon",cvcCustomTemplate:"cvcCustomTemplate",cvcParamName:"cvcParamName",cvcAddEntity:"cvcAddEntity",cvcAddEntityModel:"cvcAddEntityModel",cvcMinSearchStrLength:"cvcMinSearchStrLength",cvcAddEntityBehavior:"cvcAddEntityBehavior",cvcSelectOpen:"cvcSelectOpen"},outputs:{cvcOnOpenChange:"cvcOnOpenChange",cvcOnSearch:"cvcOnSearch",cvcOnModelChange:"cvcOnModelChange",cvcSelectComponent:"cvcSelectComponent"},features:[e.OA$],decls:1,vars:1,consts:[["searchMessages",""],["addForm",""],[4,"ngrxLet"],["nzShowSearch","","nzServerSearch","","nzAllowClear","",3,"nzOpenChange","nzOnSearch","ngModelChange","nzDropdownMatchSelectWidth","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzLoading","nzAllowClear","nzBorderless","nzSuffixIcon","nzShowArrow","nzAutoClearSearchValue","nzOptions","nzDropdownRender","nzNotFoundContent","nzOpen"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[1,"add-form-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,h){1&c&&e.DNE(0,at,6,21,"ng-container",2),2&c&&e.Y8G("ngrxLet",h.notFoundDisplay$)},dependencies:[z.bT,z.T3,t.BC,t.l_,Pi.Nj,m.ch,te.Dn,ct.WI,si.j],styles:["nz-divider[_ngcontent-%COMP%]{margin:4px 0 0}.add-form-container[_ngcontent-%COMP%]{padding:4px 8px 8px}"],changeDetection:0})};nn=(0,Mi.Cg)([(0,gn.d)({arrayName:"stateSubscriptions"})],nn);var ln=a(2688);const hn=["optionTemplates"];function xn(u,b){if(1&u&&(e.qex(0),e.j41(1,"em")(2,"span",6),e.EFF(3),e.k0s()(),e.bVm()),2&u){const c=e.XpG(2).$implicit;e.R7$(3),e.JRh(c.description)}}function Rn(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s(),e.j41(2,"span",6),e.DNE(3,xn,4,1,"ng-container",7),e.k0s()),2&u){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.code),e.R7$(2),e.Y8G("ngIf",c.description)}}function Zn(u,b){1&u&&(e.qex(0),e.DNE(1,Rn,4,2,"ng-template",null,1,e.C5r),e.bVm())}function jn(u,b){if(1&u&&(e.qex(0),e.DNE(1,Zn,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function oi(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",8)(1,"cvc-entity-tag",9),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","AcmgCode:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ai=uo(Ei(),Wo());let Ti=(()=>{class u extends ai{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"ACMG/AMP Code",plural:"ACMG/AMP Codes"},isMultiSelect:!1,requireType:!0,tooltip:"If applicable, please provide evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP.",placeholder:"Search ACMG/AMP Codes",requireTypePromptFn:(ne,bt)=>`Select an ${ne} Type to search associated ACMG Code(s)`}},this.placeholder$=new vn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresAcmgCodes$?this.onRequiresAcmgCode$=this.state.requires.requiresAcmgCodes$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresAcmgCodes$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresAcmgCode$&&this.onEntityType$&&(0,Mo.z)([this.onRequiresAcmgCode$,this.onEntityType$]).pipe((0,ee.F)(),(0,gn.s)(this)).subscribe(([c,h])=>{!c&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,Hi.u)(h)} ${this.state.entityName} does not include associated ACMG/AMP Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description='Please provide evidence criteria from the standards and guidelines for interpretation of sequence variants from ACMG/AMP in Richards et. al. 2015. Review all codes and select each one that applies. If a code is not applied, it is inferred to not be met.',this.props.extraType="description"):(!c&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(c){return{code:c}}getTypeaheadResultsFn(c){return c.data.acmgCodesTypeahead}getTagQueryResultsFn(c){return c.data.acmgCode}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.code}}getSelectOptionsFn(c,h){return c.map((_,ne)=>(console.log(_),{label:h.get(ne)||_.code,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.Fd4),e.rXU(Hn.Mvn),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-acmg-code-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(hn,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s(),e.DNE(6,jn,3,3,"ng-container",3)(7,oi,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresAcmgCode$&&!e.bMT(4,18,_.onRequiresAcmgCode$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.Sq,z.bT,Pi.Nj,En.LH,it.Di,ni.s,nn,ln.b,Pi.L9],changeDetection:0})}return u})();const ci={types:[{name:"acmg-code-select",wrappers:["form-field"],component:Ti,defaultOptions:{props:{label:"ACMG/AMP Code"}}},{name:"acmg-code-multi-select",wrappers:["form-field"],component:Ti,defaultOptions:{props:{isMultiSelect:!0,label:"ACMG/AMP Code(s)"}}}]};let yi=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(ci),wn.$,Fn.Zw,ct.DH,xi.MC,hi.U6,te.Y3,P.j,R.f3,En.Qt,dn.pc,j.PQ,dt.jl,it.kT,ni.T,Pn,Cn,_e.i,Ht._,ui]})}return u})(),_i=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(),te.Y3,j.PQ,ct.DH,P.j,_e.i]})}return u})();function Oi(){return function(b){return(()=>{class h extends b{configureEnumSelectField(ne){this.selectOption$=new vn.t([]),this.onTagClose$=new N.B,this.optionEnum$=ne.optionEnum$,this.changeDetectorRef=ne.changeDetectorRef,this.optionTemplate$=ne.optionTemplate$?ne.optionTemplate$:new vn.t([]),this.optionTemplate$.pipe((0,qi.E)(this.optionEnum$),(0,gn.s)(this)).subscribe(bt=>{this.emitSelectOptions(bt)}),this.onTagClose$.pipe((0,gn.s)(this)).subscribe(bt=>{this.resetField()})}emitSelectOptions([ne,bt]){this.selectOption$.next(bt.map((un,Wn)=>({label:ne[Wn]||un,value:un}))),this.changeDetectorRef?this.changeDetectorRef.detectChanges():console.error(`${this.field.id}'s configureEnumTagField() requires valid ChangeDetectorRef option, none detected.`)}resetField(){this.formControl.setValue(this.props.isMultiSelect?[]:void 0)}static#e=this.\u0275fac=(()=>{let ne;return function(un){return(ne||(ne=e.xGo(h)))(un||h)}})();static#t=this.\u0275prov=e.jDH({token:h,factory:h.\u0275fac})}return h})()}}var ki=a(1018);const co=()=>[];let Ai=(()=>{class u{constructor(){this.cvcSelectMode="default",this.cvcPlaceholder="Select an option",this.cvcOptions=[],this.cvcShowError=!1,this.cvcDisabled=!1,this.cvcAllowClear=!0,this.cvcCustomTemplate=null,this.cvcOnFocus=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-enum-select"]],inputs:{cvcFormControl:"cvcFormControl",cvcFormlyAttributes:"cvcFormlyAttributes",cvcSelectMode:"cvcSelectMode",cvcPlaceholder:"cvcPlaceholder",cvcOptions:"cvcOptions",cvcShowError:"cvcShowError",cvcDisabled:"cvcDisabled",cvcAllowClear:"cvcAllowClear",cvcModelChange:"cvcModelChange",cvcCustomTemplate:"cvcCustomTemplate"},outputs:{cvcOnFocus:"cvcOnFocus"},decls:1,vars:12,consts:[[3,"nzFocus","ngModelChange","formControl","formlyAttributes","nzMode","nzPlaceHolder","nzOptions","nzCustomTemplate","nzOptionHeightPx","nzDisabled","nzAllowClear"]],template:function(h,_){1&h&&(e.j41(0,"nz-select",0),e.bIt("nzFocus",function(){return _.cvcOnFocus.next()})("ngModelChange",function(bt){return _.cvcModelChange&&_.cvcModelChange(_.cvcFormlyAttributes,bt)}),e.k0s()),2&h&&(e.AVh("ng-dirty",_.cvcShowError),e.Y8G("formControl",_.cvcFormControl)("formlyAttributes",_.cvcFormlyAttributes)("nzMode",_.cvcSelectMode)("nzPlaceHolder",_.cvcPlaceholder?_.cvcPlaceholder:"Select Value")("nzOptions",_.cvcOptions?_.cvcOptions:e.lJ4(11,co))("nzCustomTemplate",_.cvcCustomTemplate?_.cvcCustomTemplate:null)("nzOptionHeightPx",30)("nzDisabled",_.cvcDisabled)("nzAllowClear",_.cvcAllowClear))},dependencies:[t.BC,t.l_,m.ch,ct.WI],changeDetection:0})}return u})();var go=a(463);const _o=["optionTemplates"];function yo(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.nI1(3,"formatAmp"),e.k0s()(),e.j41(4,"span",4),e.EFF(5),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG();e.R7$(2),e.JRh(e.i5U(3,2,c,"verbose")),e.R7$(3),e.JRh(h.descriptionForCategory(c))}}function Yn(u,b){1&u&&(e.qex(0),e.DNE(1,yo,6,5,"ng-template",null,1,e.C5r),e.bVm())}function wo(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-tag",8),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.nI1(3,"formatAmp"),e.k0s()()}if(2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(e.i5U(3,1,c.nzValue,"verbose"))}}function Xo(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.nI1(2,"formatAmp"),e.bVm()),2&u){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,c.nzValue,"verbose")," ")}}function es(u,b){if(1&u&&(e.j41(0,"div",5),e.DNE(1,wo,4,4,"nz-tag",6)(2,Xo,3,4,"ng-container",7),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",!c.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",c.props.isMultiSelect)}}const Bo=new Map([[Hn.XJ.Na,"Not Applicable"],[Hn.XJ.TierILevelA,"Biomarkers showing therapeutic response to FDA-approved therapy, or therapy included in professional guidelines."],[Hn.XJ.TierILevelB,"Biomarkers showing therapeutic response based on well-powered studies with consensus from experts in the field."],[Hn.XJ.TierIiLevelC,"FDA-approved therapies for different tumor types or investigational therapies, or multiple small published studies with some consensus."],[Hn.XJ.TierIiLevelD,"Biomarkers that show plausible therapeutic significance based on preclinical studies."],[Hn.XJ.TierIii,"Somatic variants in cancer genes reported in the same or different cancer types with unknown clinical significance and variants in cancer genes that have not been reported in any cancers."],[Hn.XJ.TierIv,"Benign or likely benign germline variants observed at significant allele frequencies in the general population or specific subpopulation."]]),nr=uo(Ei(),Oi());let wr=(()=>{class u extends nr{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"AMP/ASCO/CAP Category",required:!1,isMultiSelect:!1,placeholder:"Select AMP/ASCO/CAP Category"}},this.ampCategoryEnum$=new vn.t([])}descriptionForCategory(c){return Bo.get(c)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.ampCategoryEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.configurePlaceholder()}configureStateConnections(){this.props.tooltip="If applicable, please provide the AMP/ASCO/CAP somatic variant classification.",this.ampCategoryEnum$.next((0,ki.KF)(Hn.XJ).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,ve.T)(c=>c.map(h=>h))),this.state&&(this.state.requires.requiresAmpLevel$?this.onRequiresAmpCategory$=this.state.requires.requiresAmpLevel$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresAmpLevel$ subject to attach.`),this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.props.extraType=void 0,this.props.description=Bo.get(c)):this.props.description="Select an Assertion Type to select its AMP Category"}))}configurePlaceholder(){this.placeholder$=new vn.t(this.props.placeholder),this.onRequiresAmpCategory$&&this.onRequiresAmpCategory$.pipe((0,ee.F)(),(0,gn.s)(this)).subscribe(c=>{this.props.extraType=void 0,c?(this.formControl.value||(this.props.extraType="description",this.props.description='Please provide the AMP/ASCO/CAP somatic variant classification.'),this.props.required=!0,this.props.disabled=!1):(this.props.required=!1,this.props.disabled=!0,this.resetField()),this.cdr.markForCheck()})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-amp-category-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(_o,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],["nz-typography","","nzType","secondary"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,Yn,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,es,3,2,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.ampCategoryEnum$))}},dependencies:[z.Sq,z.bT,ni.s,it.Di,Ai,Pi.L9,go.E]})}return u})();const gr={types:[{name:"amp-category-select",wrappers:["form-field"],component:wr},{name:"amp-category-multi-select",wrappers:["form-field"],component:wr,defaultOptions:{props:{label:"AMP/ASCO/CAP Categories",isMultiSelect:!0}}}]};let Er=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(gr),ni.T,it.kT,_e.i,Pn,_i]})}return u})();const vr=uo(Ei()),As={types:[{name:"checkbox",wrappers:["form-field"],component:(()=>{class u extends vr{constructor(){super(...arguments),this.defaultOptions={props:{indeterminate:!0,hideLabel:!0}}}ngAfterViewInit(){console.log(this.props)}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(bt){return _.props.change&&_.props.change(_.field,bt)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,_t.$g,m.ch],changeDetection:0})}return u})()}]};let kr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,_t.IJ,m.qy.forChild(As),Pn]})}return u})();function $o(u,b){if(1&u){const c=e.RV6();e.j41(0,"input",2),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onValueChange$.next(_))}),e.k0s()}if(2&u){const c=e.XpG();e.Y8G("formControl",c.formControl)("type",c.props.type||"text")("formlyAttributes",c.field)}}function cs(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number",3),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onValueChange$.next(_))}),e.k0s()}if(2&u){const c=e.XpG();e.Y8G("formControl",c.formControl)("formlyAttributes",c.field)}}const Ro=uo(Ei());let vs=(()=>{class u extends Ro{constructor(){super()}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-base-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["numberTmp",""],["nz-input","",3,"formControl","type","formlyAttributes","ngModelChange",4,"ngIf","ngIfElse"],["nz-input","",3,"ngModelChange","formControl","type","formlyAttributes"],[3,"ngModelChange","formControl","formlyAttributes"]],template:function(h,_){if(1&h&&e.DNE(0,$o,1,3,"input",1)(1,cs,1,2,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf","number"!==_.props.type)("ngIfElse",ne)}},dependencies:[z.bT,t.me,t.BC,t.l_,P.Sy,G,m.ch],encapsulation:2,changeDetection:0})}return u})(),_s=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,P.j,ht,m.qy.forChild({types:[{name:"base-input",component:vs,wrappers:["form-field"]},{name:"base-string",extends:"base-input"},{name:"base-number",extends:"base-input",defaultOptions:{props:{type:"number"}}},{name:"base-integer",extends:"base-input",defaultOptions:{props:{type:"number"}}}]})]})}return u})();function nt(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const c=b.$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled)("nzLabel",c.label)}}function Un(u,b){if(1&u&&(e.j41(0,"nz-option-group",4),e.DNE(1,nt,1,3,"nz-option",5),e.k0s()),2&u){const c=e.XpG().$implicit;e.Y8G("nzLabel",c.label),e.R7$(),e.Y8G("ngForOf",c.group)}}function me(u,b){if(1&u&&e.nrm(0,"nz-option",6),2&u){const c=e.XpG().$implicit;e.Y8G("nzValue",c.value)("nzDisabled",c.disabled)("nzLabel",c.label)}}function qe(u,b){if(1&u&&(e.qex(0),e.DNE(1,Un,2,2,"nz-option-group",2)(2,me,1,3,"nz-option",3),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",c.group),e.R7$(),e.Y8G("ngIf",!c.group)}}const gt=uo(Ei());let pn=(()=>{class u extends gt{constructor(){super(),this.defaultOptions={props:{isMultiSelect:!1}}}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-base-select"]],features:[e.Vt3],decls:4,vars:12,consts:[[3,"ngModelChange","nzPlaceHolder","formControl","formlyAttributes","nzMode"],[4,"ngFor","ngForOf"],[3,"nzLabel",4,"ngIf"],[3,"nzValue","nzDisabled","nzLabel",4,"ngIf"],[3,"nzLabel"],[3,"nzValue","nzDisabled","nzLabel",4,"ngFor","ngForOf"],[3,"nzValue","nzDisabled","nzLabel"]],template:function(h,_){1&h&&(e.j41(0,"nz-select",0),e.bIt("ngModelChange",function(bt){return _.props.change&&_.props.change(_.field,bt)}),e.DNE(1,qe,3,2,"ng-container",1),e.nI1(2,"formlySelectOptions"),e.nI1(3,"async"),e.k0s()),2&h&&(e.AVh("ng-dirty",_.showError),e.Y8G("nzPlaceHolder",void 0!==_.props.placeholder?_.props.placeholder:null)("formControl",_.formControl)("formlyAttributes",_.field)("nzMode",_.props.isMultiSelect?"multiple":"default"),e.R7$(),e.Y8G("ngForOf",e.bMT(3,10,e.i5U(2,7,_.props.options,_.field))))},dependencies:[z.Sq,z.bT,t.BC,t.l_,ct.ld,ct.WI,ct.uX,m.ch,z.Jj,Yt],encapsulation:2,changeDetection:0})}return u})(),ei=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,ct.DH,w,Je,m.qy.forChild({types:[{name:"base-select",component:pn,wrappers:["form-field"]},{name:"enum",extends:"select"},{name:"base-multi-select",extends:"level-select",defaultOptions:{props:{isMultiSelect:!0}}}]})]})}return u})();const ti=uo(Ei()),Zi={types:[{name:"base-textarea",component:(()=>{class u extends ti{constructor(){super(),this.defaultOptions={props:{autosize:!1}}}ngAfterViewInit(){this.configureBaseField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["formly-field-nz-textarea"]],features:[e.Vt3],decls:1,vars:5,consts:[["nz-input","",3,"nzAutosize","rows","formControl","placeholder","formlyAttributes"]],template:function(h,_){1&h&&e.nrm(0,"textarea",0),2&h&&e.Y8G("nzAutosize",_.props.autosize)("rows",_.props.rows?_.props.rows:2)("formControl",_.formControl)("placeholder",_.props.placeholder)("formlyAttributes",_.field)},dependencies:[t.me,t.BC,t.l_,m.ch,P.Sy,P.c9],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]}]};let No=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(Zi),P.j,Pn]})}return u})();var bi=a(6389),Do=a(5930);const ys={types:[{name:"cvc-cancel-button",component:(()=>{class u extends m.PU{constructor(c){super(),this.location=c}cancelClicked(){this.location.back()}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(z.aZ))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-cancel-button"]],features:[e.Vt3],decls:2,vars:0,consts:[["nz-button","","type","button","nzType","default","nzDanger","",1,"cancel-button",3,"click"]],template:function(h,_){1&h&&(e.j41(0,"button",0),e.bIt("click",function(){return _.cancelClicked()}),e.EFF(1," Cancel\n"),e.k0s())},dependencies:[Fn.aO,bi.c,Do.p],styles:[".cancel-button[_ngcontent-%COMP%]{margin-right:10px}"],changeDetection:0})}return u})()}]};let Be=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(ys),Fn.Zw]})}return u})();const Ke=["optionTemplates"];function be(u,b){if(1&u&&(e.qex(0),e.j41(1,"em")(2,"span",6),e.EFF(3),e.k0s()(),e.bVm()),2&u){const c=e.XpG(2).$implicit;e.R7$(3),e.JRh(c.description)}}function Ct(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s(),e.j41(2,"span",6),e.DNE(3,be,4,1,"ng-container",7),e.k0s()),2&u){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.code),e.R7$(2),e.Y8G("ngIf",c.description)}}function sn(u,b){1&u&&(e.qex(0),e.DNE(1,Ct,4,2,"ng-template",null,1,e.C5r),e.bVm())}function ji(u,b){if(1&u&&(e.qex(0),e.DNE(1,sn,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function ho(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",8)(1,"cvc-entity-tag",9),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcHasTooltip",!0)("cvcCacheId","ClingenCode:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const jo=uo(Ei(),Wo());let Fi=(()=>{class u extends jo{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.exclusiveCodes=new Set,this.exclusiveSelected=!1,this.defaultOptions={props:{entityName:{singular:"ClinGen/CGC/VICC Code",plural:"ClinGen/CGC/VICC Codes"},isMultiSelect:!1,requireType:!0,tooltip:"If applicable, please provide evidence classifications from the Standards for the classification of pathogenicity of somatic variants in cancer (oncogenicity).",placeholder:"Search ClinGen/CGC/VICC Codes",requireTypePromptFn:(ne,bt)=>`Select an ${ne} Type to search associated ClinGen Code(s)`}},this.placeholder$=new vn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent}),this.configurePlaceholders(),this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{if(c&&Array.isArray(c)&&c.length>1){const h=c.find(_=>this.exclusiveCodes.has(_));h?(this.previousDescription=this.props.description,this.previousDescriptionType=this.props.extraType,this.props.description="You have selected N/A which precludes selecting any other codes. Please remove it if you wish to select additional codes.",this.exclusiveSelected=!0,this.formControl.setValue([h])):this.exclusiveSelected=!1}this.previousDescription&&!this.exclusiveSelected&&(this.props.description=this.previousDescription,this.props.extraType=this.previousDescriptionType),this.cdr.detectChanges()})}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresClingenCodes$?this.onRequiresClingenCode$=this.state.requires.requiresClingenCodes$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresClingenCodes$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholders),this.onRequiresClingenCode$&&this.onEntityType$&&(0,Mo.z)([this.onRequiresClingenCode$,this.onEntityType$]).pipe((0,ee.F)(),(0,gn.s)(this)).subscribe(([c,h])=>{!c&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,Hi.u)(h)} ${this.state.entityName} does not include associated ClinGen/CGC/VICC Code(s)`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description='Please provide the evidence classifications from the Standards for the classification of pathogenicity of somatic variants in cancer (oncogenicity) in Horak et. al. 2022.. Review all codes and select each one that applies. If a code is not applied, it is inferred to not be met.',this.props.extraType="description"):(!c&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()})}getTypeaheadVarsFn(c){return{code:c}}getTypeaheadResultsFn(c){return c.data.clingenCodesTypeahead.forEach(h=>{h.exclusive&&this.exclusiveCodes.add(h.id)}),c.data.clingenCodesTypeahead}getTagQueryResultsFn(c){return c.data.clingenCode}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.code}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.code,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.FZ_),e.rXU(Hn.kp0),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-clingen-code-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Ke,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],["nz-typography","","nzType","secondary"],[4,"ngIf"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcHasTooltip","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s(),e.DNE(6,ji,3,3,"ng-container",3)(7,ho,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresClingenCode$&&!e.bMT(4,18,_.onRequiresClingenCode$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.Sq,z.bT,Pi.Nj,En.LH,it.Di,ni.s,nn,ln.b,Pi.L9],changeDetection:0})}return u})();const La={types:[{name:"clingen-code-select",wrappers:["form-field"],component:Fi,defaultOptions:{props:{label:"ClinGen/CGC/VICC Code"}}},{name:"clingen-code-multi-select",wrappers:["form-field"],component:Fi,defaultOptions:{props:{isMultiSelect:!0,label:"ClinGen/CGC/VICC Code(s)"}}}]};let Nc=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(La),wn.$,Fn.Zw,ct.DH,xi.MC,hi.U6,te.Y3,P.j,R.f3,En.Qt,dn.pc,j.PQ,dt.jl,it.kT,ni.T,Pn,Cn,_e.i,Ht._,ui]})}return u})();function Ma(u){return(()=>{class c extends u{configureStringTagField(){this.tagLabel$=new N.B,this.onTagClose$=new N.B,this.onTagClose$.pipe((0,gn.s)(this)).subscribe(_=>{this.formControl.setValue(void 0),this.tagLabel$.next(void 0)})}static#e=this.\u0275fac=(()=>{let _;return function(bt){return(_||(_=e.xGo(c)))(bt||c)}})();static#t=this.\u0275prov=e.jDH({token:c,factory:c.\u0275fac})}return c})()}var Vr=a(5741);const ac=()=>[8,8];function Io(u,b){if(1&u&&(e.j41(0,"label",5),e.EFF(1),e.k0s()),2&u){const c=b.$implicit;e.Y8G("nzValue",c.value)("nzTooltipTitle",c.tooltip),e.R7$(),e.SpI(" ",c.label," ")}}function _a(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",2)(1,"nz-radio-group",3),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.existenceChange$.next(_))}),e.DNE(3,Io,2,3,"label",4),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("ngModel",e.bMT(2,2,c.existenceModel$)),e.R7$(2),e.Y8G("ngForOf",c.selectOptions)}}function ls(u,b){if(1&u&&e.nrm(0,"nz-option",8),2&u){const c=b.$implicit;e.Y8G("nzLabel",c)("nzValue",c)("nzHide",!0)}}function aa(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",2)(1,"nz-select",6),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onValueChange$.next(_))}),e.DNE(2,ls,1,3,"nz-option",7),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("formControl",c.formControl)("formlyAttributes",c.field),e.R7$(),e.Y8G("ngForOf",c.formControl.value)}}const Ba=uo(Ei(),Ma);let Ir=class wm extends Ba{constructor(b){super(),this.cdr=b,this.defaultOptions={modelOptions:{updateOn:"blur"},props:{label:"Enter value",placeholder:"Enter value and hit Return",description:"Specify if Clinvar IDs exist, or if they are not applicable for this variant."}},this.clinvarIds$=new vn.t([]),this.values=new Set,this.showClinvarIdEntry$=new vn.t(!1),this.selectModel=void 0,this.selectOptions=[{value:void 0,label:"Unspecified",tooltip:"Existence of ClinVar IDs for this variant is unspecified."},{value:Vr.cD.NotApplicable,label:"Not Applicable",tooltip:"ClinVar IDs are not applicable to this variant."},{value:Vr.cD.NoneFound,label:"Were Not Found",tooltip:"A search was performed, and no ClinVar IDs were found."},{value:Vr.cD.Found,label:"Were Found",tooltip:"A search was performed, and ClinVar IDs were found (enter IDs below)."}],this.existenceChange$=new N.B,this.existenceModel$=new vn.t(void 0),this.showTagSelect$=new vn.t(!1)}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField(),this.onValueChange$.pipe((0,gn.s)(this)).subscribe(b=>{void 0===b?(this.existenceModel$.next(void 0),this.showTagSelect$.next(!1)):b.includes("NONE FOUND")||b.includes("NA")?(b.includes("NONE FOUND")?this.existenceModel$.next(Vr.cD.NoneFound):b.includes("NA")&&this.existenceModel$.next(Vr.cD.NotApplicable),this.showTagSelect$.next(!1)):(this.existenceModel$.next(Vr.cD.Found),this.showTagSelect$.next(!0))}),this.existenceChange$.pipe((0,ve.T)(b=>{const c=this.formControl.value;void 0===b&&void 0!==this.formControl.value?this.formControl.setValue(void 0):b!==Vr.cD.NoneFound||c.includes("NONE FOUND")?b!==Vr.cD.NotApplicable||c.includes("NA")?b===Vr.cD.Found&&(void 0===c||c.includes("NONE FOUND")||c.includes("NA"))&&this.formControl.setValue([]):this.formControl.setValue(["NA"]):this.formControl.setValue(["NONE FOUND"])}),(0,gn.s)(this)).subscribe()}static#e=this.\u0275fac=function(c){return new(c||wm)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:wm,selectors:[["cvc-clinvar-input"]],features:[e.Vt3],decls:4,vars:6,consts:[[3,"nzGutter"],["nzSpan","24",4,"ngIf"],["nzSpan","24"],["nzName","existence",3,"ngModelChange","ngModel"],["nz-radio-button","","nz-tooltip","",3,"nzValue","nzTooltipTitle",4,"ngFor","ngForOf"],["nz-radio-button","","nz-tooltip","",3,"nzValue","nzTooltipTitle"],["nzMode","tags","nzPlaceHolder","Enter ClinVar IDs","nzAllowClear","","nzDropdownClassName","hide-dropdown",3,"ngModelChange","formControl","formlyAttributes"],[3,"nzLabel","nzValue","nzHide",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue","nzHide"]],template:function(c,h){1&c&&(e.j41(0,"nz-row",0),e.DNE(1,_a,4,4,"nz-col",1)(2,aa,3,3,"nz-col",1),e.nI1(3,"ngrxPush"),e.k0s()),2&c&&(e.Y8G("nzGutter",e.lJ4(5,ac)),e.R7$(),e.Y8G("ngIf",h.props.showExistenceOptions),e.R7$(),e.Y8G("ngIf",e.bMT(3,3,h.showTagSelect$)))},dependencies:[z.Sq,z.bT,t.BC,t.vS,t.l_,m.ch,R.Uq,R.e,ae.lx,ae.i3,ct.ld,ct.WI,En.LH,Pi.L9],changeDetection:0})};Ir=(0,Mi.Cg)([(0,gn.d)()],Ir);const Da={types:[{name:"clinvar-input",wrappers:["form-field"],component:Ir,defaultOptions:{props:{isRepeatItem:!1,showExistenceOptions:!1}}},{name:"clinvar-multi-input",wrappers:["form-field"],component:Ir,defaultOptions:{props:{isRepeatItem:!0,showExistenceOptions:!0}}}]};let Us=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.YN,t.X1,m.qy.forChild(Da),j.PQ,R.f3,P.j,ae.Sw,ct.DH,En.Qt,_e.i]})}return u})();var Es=a(6697);const cc=uo(Ei()),us={types:[{name:"fda-companion-test-checkbox",wrappers:["form-field"],component:(()=>{class u extends cc{constructor(){super(...arguments),this.defaultDescription='Select Yes if an FDA approved companion test exists for the variant and therapy associated with the Assertion (such as tests listed here).',this.defaultOptions={props:{hideLabel:!1,label:"FDA Companion Test",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&(this.state.formReady$?this.state.formReady$.pipe((0,Jt.p)(c=>c),(0,Es.s)(1),(0,gn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField())}configureField(){this.state?.fields.fdaRegulatoryApproval$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.extraType="description",this.props.description=this.defaultDescription,void 0===this.formControl.value&&this.formControl.setValue(!1)):(this.props.disabled=!0,this.props.description="FDA Companion Test only applies when Regulatory Approval is selected",this.formControl.setValue(void 0))})}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-fda-companion-test-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(bt){return _.props.change&&_.props.change(_.field,bt)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,_t.$g,m.ch],changeDetection:0})}return u})()}]};let Ui=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,_t.IJ,m.qy.forChild(us),Pn]})}return u})();const Gs=uo(Ei()),zs={types:[{name:"fda-regulatory-approval-checkbox",wrappers:["form-field"],component:(()=>{class u extends Gs{constructor(){super(...arguments),this.defaultDescription="Check this if the referenced therapy is approved for use by the FDA in the specific disease associated with the Assertion (as in a listing here.)",this.defaultOptions={props:{hideLabel:!1,label:"FDA Regulatory Approval",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&(this.state.formReady$?this.state.formReady$.pipe((0,Jt.p)(c=>c),(0,Es.s)(1),(0,gn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField())}configureField(){this.state?.requires.allowsFdaApproval$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.extraType="description",this.props.description=this.defaultDescription,void 0===this.formControl.value&&this.formControl.setValue(!1)):(this.props.disabled=!0,this.props.description="FDA Regulatory Approval does not apply to this Assertion Type",this.formControl.setValue(void 0))})}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-fda-regulatory-approval-checkbox"]],features:[e.Vt3],decls:2,vars:4,consts:[["nz-checkbox","",3,"ngModelChange","nzIndeterminate","formControl","formlyAttributes"]],template:function(h,_){1&h&&(e.j41(0,"label",0),e.bIt("ngModelChange",function(bt){return _.props.change&&_.props.change(_.field,bt)}),e.EFF(1),e.k0s()),2&h&&(e.Y8G("nzIndeterminate",_.props.indeterminate&&null==_.formControl.value)("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(),e.SpI(" ",_.props.label,"\n"))},dependencies:[t.BC,t.l_,_t.$g,m.ch],changeDetection:0})}return u})()}]};let Ha=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,_t.IJ,m.qy.forChild(zs),Pn]})}return u})(),ds=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,ni.T,te.Y3,En.Qt,_e.i]})}return u})();var Sa=a(1677),hs=a(1555);const pu=u=>({"tag-icon-large":u});function el(u,b){}function fu(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",5)(1,"nz-tag",6),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcOnClose.next(_))}),e.DNE(2,el,0,0,"ng-template",7),e.k0s()()}if(2&u){const c=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode",c.cvcMode)("nzTooltipTitle",c.cvcTooltip)("nzChecked",c.cvcChecked),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Lr(u,b){}function Rs(u,b){if(1&u&&(e.j41(0,"span",8)(1,"nz-tag",9),e.DNE(2,Lr,0,0,"ng-template",7),e.k0s()()),2&u){const c=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode","checkable")("nzChecked",c.cvcChecked),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function ja(u,b){}function Ca(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",10)(1,"nz-tag",11),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcOnClose.next(_))}),e.DNE(2,ja,0,0,"ng-template",7),e.k0s()()}if(2&u){e.XpG();const c=e.sdS(5);e.R7$(),e.Y8G("nzMode","closeable"),e.R7$(),e.Y8G("ngTemplateOutlet",c)}}function kc(u,b){}function Ns(u,b){if(1&u&&(e.j41(0,"span",12)(1,"nz-tag",13),e.DNE(2,kc,0,0,"ng-template",7),e.k0s()()),2&u){const c=e.XpG(),h=e.sdS(5);e.R7$(),e.Y8G("nzMode","default")("nzTooltipTitle",c.cvcTooltip),e.R7$(),e.Y8G("ngTemplateOutlet",h)}}function Ua(u,b){if(1&u&&(e.nrm(0,"i",16),e.nI1(1,"evidenceEnumDisplay")),2&u){const c=e.XpG(2);e.Y8G("nzType",!0===c.cvcShowIcon?e.i5U(1,5,c.cvcAttrValue,"icon-name"):c.cvcShowIcon)("nzTwotoneColor",c.cvcIconColor)("nzTheme",c.cvcIconTheme)("ngClass",e.eq3(8,pu,!0===c.cvcZoomIcon)),e.BMQ("style","color: "+c.cvcIconColor,e.$dS)}}function lc(u,b){if(1&u&&(e.nrm(0,"span",17),e.nI1(1,"evidenceEnumDisplay"),e.nI1(2,"highlightTypeahead")),2&u){const c=e.XpG(2);e.Y8G("innerHtml",e.i5U(2,4,e.i5U(1,1,c.cvcAttrValue,"display-string"===c.cvcShowLabel?c.cvcShowLabel:"short-string"),c.cvcEmphasize),e.npT)}}function eo(u,b){if(1&u&&e.DNE(0,Ua,2,10,"i",14)(1,lc,3,7,"span",15),2&u){const c=e.XpG();e.Y8G("ngIf",c.cvcAttrValue&&c.cvcShowIcon),e.R7$(),e.Y8G("ngIf",c.cvcShowLabel)}}let vo=(()=>{class u{constructor(){this.cvcShowLabel="display-string",this.cvcShowIcon=!0,this.cvcZoomIcon=!1,this.cvcContext="default",this.cvcMode="default",this.cvcChecked=!1,this.cvcIconColor="#797979",this.cvcLabelColor="#434343",this.cvcIconTheme="outline",this.cvcFullWidth=!1,this.cvcOnClose=new e.bkB}ngOnChanges(c){c.cvcContext&&"compact"===c.cvcContext.currentValue&&(this.cvcShowIcon=!0,this.cvcShowLabel=!1,this.cvcZoomIcon=!0)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-attribute-tag"]],hostVars:2,hostBindings:function(h,_){2&h&&e.AVh("full-width",!0===_.cvcFullWidth)},inputs:{cvcAttrValue:"cvcAttrValue",cvcShowLabel:"cvcShowLabel",cvcShowIcon:"cvcShowIcon",cvcZoomIcon:"cvcZoomIcon",cvcTooltip:"cvcTooltip",cvcContext:"cvcContext",cvcMode:"cvcMode",cvcChecked:"cvcChecked",cvcEmphasize:"cvcEmphasize",cvcIconColor:"cvcIconColor",cvcLabelColor:"cvcLabelColor",cvcIconTheme:"cvcIconTheme",cvcFullWidth:"cvcFullWidth"},outputs:{cvcOnClose:"cvcOnClose"},features:[e.OA$],decls:6,vars:4,consts:[["tagContent",""],["class","default",4,"ngIf"],["class","menu-item",4,"ngIf"],["class","select-item",4,"ngIf"],["class","compact",4,"ngIf"],[1,"default"],["nz-tooltip","",3,"nzOnClose","nzMode","nzTooltipTitle","nzChecked"],[3,"ngTemplateOutlet"],[1,"menu-item"],[3,"nzMode","nzChecked"],[1,"select-item"],[3,"nzOnClose","nzMode"],[1,"compact"],["nz-tooltip","",3,"nzMode","nzTooltipTitle"],["nz-icon","","class","tag-icon",3,"nzType","nzTwotoneColor","nzTheme","ngClass",4,"ngIf"],["class","tag-label",3,"innerHtml",4,"ngIf"],["nz-icon","",1,"tag-icon",3,"nzType","nzTwotoneColor","nzTheme","ngClass"],[1,"tag-label",3,"innerHtml"]],template:function(h,_){1&h&&e.DNE(0,fu,3,4,"span",1)(1,Rs,3,3,"span",2)(2,Ca,3,2,"span",3)(3,Ns,3,3,"span",4)(4,eo,2,2,"ng-template",null,0,e.C5r),2&h&&(e.Y8G("ngIf","default"===_.cvcContext),e.R7$(),e.Y8G("ngIf","menu-item"===_.cvcContext),e.R7$(),e.Y8G("ngIf","select-item"===_.cvcContext),e.R7$(),e.Y8G("ngIf","compact"===_.cvcContext))},dependencies:[z.YU,z.bT,z.T3,ni.s,te.Dn,En.LH,Sa.pW,hs.M],styles:['.hide-dropdown[_ngcontent-%COMP%]{display:none}.full-width[_nghost-%COMP%]{width:100%}.full-width[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] nz-tag[_ngcontent-%COMP%]{margin-right:0;margin-inline-end:4px}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.default[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.compact[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.menu-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{background-color:#fff}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable[_ngcontent-%COMP%]{border:1px solid #d9d9d9}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable[_ngcontent-%COMP%]:active{background-color:#e6f7ff}.menu-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]:not(.menu-item nz-tag.ant-tag-checkable-checked)[_ngcontent-%COMP%]:hover{color:#000000d9;border-color:#1890ff}.menu-item[_ngcontent-%COMP%] nz-tag.ant-tag-checkable-checked[_ngcontent-%COMP%]{border:transparent;background-color:#fff;color:#000000d9}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{margin:0;padding:0 2px 0 0;margin-inline-end:4px;max-width:100%}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%], .select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{display:inline-block}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%]{padding:3px 2px 3px 4px;margin:-3px 0}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-icon-large[_ngcontent-%COMP%] svg{transform:scale(1.25)}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] .tag-label[_ngcontent-%COMP%]{display:inline-block;margin:-3px 0 -4px;padding:3px 3px 3px 2px;line-height:1}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%] i.ant-tag-close-icon.anticon-close{transition:none;margin-left:3px}.select-item[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]{background:#f5f5f5;border:1px solid #f0f0f0}.multi-select-item[_ngcontent-%COMP%]{display:inline-block;margin-top:-3px;margin-bottom:-3px;margin-left:-4px;padding-left:4px}.multi-select-item[_ngcontent-%COMP%] .tag-icon[_ngcontent-%COMP%]:after{content:" "}.typeahead-match[_ngcontent-%COMP%]{font-weight:700}'],changeDetection:0})}return u})();const uc=["optionTemplates"];function ba(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function Vc(u,b){1&u&&(e.qex(0),e.DNE(1,ba,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Lc(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ks={Evidence:{PREDICTIVE:{SUPPORTS:"Experiment or study supports the variant's response to a drug",DOES_NOT_SUPPORT:"Experiment or study does not support, or was inconclusive of an interaction between the variant and a drug"},DIAGNOSTIC:{SUPPORTS:"Experiment or study supports the variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"Experiment or study does not support the variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"Experiment or study supports the variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"Experiment or study does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"Suggests a pathogenic or a protective role for a germline variant in cancer",DOES_NOT_SUPPORT:"Supports a benign (for Predisposition) or lack of protective (for Protectiveness) role for a germline variant in cancer."},FUNCTIONAL:{SUPPORTS:"Experiment or study supports the variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"Experiment or study does not support the variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{NA:"Not Applicable for Oncogenic Evidence Type.",SUPPORTS:"Supports an oncogenic or protective role for a somatic variant.",DOES_NOT_SUPPORT:"Supports a benign (for Oncogenicity) or lack of protective (for Protectiveness) role for a somatic variant in cancer."}},Assertion:{PREDICTIVE:{SUPPORTS:"Supports the variant's response to a drug",DOES_NOT_SUPPORT:"Does not support, or was inconclusive of an interaction between the variant and a drug"},DIAGNOSTIC:{SUPPORTS:"Supports the variant's impact on the diagnosis of disease or subtype",DOES_NOT_SUPPORT:"Does not support the variant's impact on diagnosis of disease or subtype"},PROGNOSTIC:{SUPPORTS:"Supports the variant's impact on prognostic outcome",DOES_NOT_SUPPORT:"Does not support a prognostic association between variant and outcome"},PREDISPOSING:{SUPPORTS:"Suggests a pathogenic or a protective role for a germline variant in cancer",DOES_NOT_SUPPORT:"Does not support an association between the variant and disease causation"},FUNCTIONAL:{SUPPORTS:"Supports the variant causing alteration or non-alteration of the gene product function",DOES_NOT_SUPPORT:"Does not support the variant causing alteration or non-alteration of the gene product function"},ONCOGENIC:{SUPPORTS:"Supports an oncogenic or protective role for a somatic variant",DOES_NOT_SUPPORT:"Does not support an association between the variant and disease causation"}}},Ys=uo(Ei(),Oi()),ot={types:[{name:"direction-select",wrappers:["form-field"],component:(()=>{class u extends Ys{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Direction",labelFn:h=>`${h} Direction`,required:!0,isMultiSelect:!1,placeholder:"Select Entity Direction",placeholderFn:(h,_)=>`Select ${_?_+" ":""}${h} Direction`,requireTypePromptFn:h=>`Select ${h} Type to select its Direction`}},this.directionEnum$=new vn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.directionEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void(this.placeholder$=new vn.t("ERROR: Form state not found"));if(this.props.label=this.props.labelFn(this.state.entityName),this.props.tooltip=`An indicator of whether the ${this.state.entityName} statement supports or refutes the clinical significance of an event.`,this.placeholder$=new vn.t(this.props.placeholderFn(this.state.entityName)),!this.state.enums.direction$)return void console.error(`${this.field.id} could not find form state's direction$ to populate select.`);this.state.enums.direction$.pipe((0,gn.s)(this)).subscribe(h=>{this.directionEnum$.next(h)}),this.optionTemplates||console.info(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,ve.T)(h=>h.map(_=>_)));const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?(this.onEntityType$=this.state.fields[c],this.onEntityType$.pipe((0,Vi.i)("add"===this.options.formState.formMode?0:1),(0,gn.s)(this)).subscribe(h=>{h?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName,(0,Hi.u)(h)))):(this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName),this.props.extraType="prompt"),this.formControl.value&&this.formControl.setValue(void 0)}),this.onValueChange$.pipe((0,qi.E)(this.onEntityType$),(0,gn.s)(this)).subscribe(([h,_])=>{!_||!h||!this.state||(this.props.extraType="description",this.props.description=ks[this.state.entityName][_][h],this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's ${c} to populate Direction options.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-direction-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(uc,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,Vc,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Lc,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.directionEnum$))}},dependencies:[z.Sq,Ai,vo,Pi.L9],changeDetection:0})}return u})()}]};let we=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(ot),Pn,_i,ds]})}return u})();var Fe=a(5316),fe=a(1226),rt=a(4222),Ue=a(8721);const Xn=()=>[0,0];function Di(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG();e.JRh(c.successMessage)}}function L(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.SpI(' "',c.model.name,'" ')}}let tt=class Im{set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,c){this.query=b,this.errors=c,this.cvcOnCreate=new e.bkB,this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new N.B,this.searchString$=new vn.t(void 0),this.addDiseaseMutator=new fe.E(this.errors),this.fields=[{key:"doid",type:"base-input",props:{label:"DOID",keydown:(h,_)=>{"Tab"===_.code&&_.stopPropagation()}}},{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,gn.s)(this)).subscribe(h=>{h&&(this.model.name=h)}),this.onSubmit$.pipe((0,gn.s)(this)).subscribe(h=>{console.log("disease-quick-add form model submitted.",h),this.submitDisease(h)})}submitDisease(b){b.name?this.mutationState=this.addDiseaseMutator.mutate(this.query,this.model,{},c=>{console.log("disease-quick-add submit data callback",c),c.addDisease&&(this.successMessage=c.addDisease.new?`New Disease ${c.addDisease.disease.name} added.`:`Existing Disease ${c.addDisease.disease.name} with DOID ${c.addDisease.disease.doid} found. `,setTimeout(()=>{c&&c.addDisease&&this.cvcOnCreate.next(c.addDisease.disease.id)},1e3))}):console.error("disease-quick-add form submitDisease requires model with valid name.")}static#e=this.\u0275fac=function(c){return new(c||Im)(e.rXU(Hn.tas),e.rXU(rt.N))};static#t=this.\u0275cmp=e.VBU({type:Im,selectors:[["cvc-disease-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:11,vars:11,consts:[["success",""],["entityType","Disease",3,"mutationState","successMessage"],["nz-form","","nzLayout","horizontal",3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],[4,"ngIf"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"cvc-form-submission-status-display",1),e.DNE(1,Di,1,1,"ng-template",null,0,e.C5r),e.j41(3,"form",2),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(4,"nz-row",3)(5,"nz-col",4)(6,"formly-form",5),e.bIt("modelChange",function(bt){return e.eBV(_),e.Njj(h.model=bt)}),e.k0s()(),e.j41(7,"nz-col",4)(8,"button",6),e.EFF(9," Add Disease\xa0 "),e.DNE(10,L,2,1,"ng-container",7),e.k0s()()()()()}if(2&c){const _=e.sdS(2);e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,Xn)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("disabled",!h.form.valid),e.R7$(2),e.Y8G("ngIf",h.model.name)}},dependencies:[z.bT,t.qT,t.cb,t.j4,m.aF,Fn.aO,bi.c,Do.p,R.Uq,R.e,j.CA,Ue.G],encapsulation:2,changeDetection:0})};tt=(0,Mi.Cg)([(0,gn.d)()],tt);const ye=["optionTemplates"];function Ge(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"DOID:"),e.k0s(),e.nrm(3,"span",9),e.nI1(4,"highlightTypeahead"),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(3),e.Y8G("innerHtml",e.i5U(4,1,c.doid,h),e.npT)}}function jt(u,b){if(1&u&&(e.qex(0),e.EFF(1," \xa0 "),e.j41(2,"strong"),e.EFF(3,"Aliases: "),e.k0s(),e.j41(4,"em"),e.nrm(5,"span",10),e.nI1(6,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(5),e.Y8G("nzTooltipTitle",c.diseaseAliases.join(", "))("innerHtml",e.i5U(6,2,c.diseaseAliases.join(", "),h),e.npT)}}function _n(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",6),e.j41(1,"span",7),e.DNE(2,Ge,5,4,"ng-container",8)(3,jt,7,5,"ng-container",8),e.EFF(4),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",c.doid),e.R7$(),e.Y8G("ngIf",c.diseaseAliases.length>0),e.R7$(),e.SpI(" ",h," ")}}function Vn(u,b){1&u&&(e.qex(0),e.DNE(1,_n,5,6,"ng-template",null,2,e.C5r),e.bVm())}function pi(u,b){if(1&u&&(e.qex(0),e.DNE(1,Vn,3,0,"ng-container",5),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function po(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",11)(1,"cvc-entity-tag",12),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Disease:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function Yi(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-disease-quick-add-form",13),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()}2&u&&e.Y8G("cvcSearchString",b.$implicit)}const bo=uo(Ei(),Wo());let Qn=(()=>{class u extends bo{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"Disease",plural:"Diseases"},tooltip:"Cancer or cancer subtype that is a result of the described variant",isMultiSelect:!1,requireType:!0,placeholder:"Search Diseases",requireTypePromptFn:(ne,bt)=>`Select an ${ne} Type to select an associated Disease${bt?"(s)":""}`,addFormTitle:"Add a New Disease"}},this.placeholder$=new vn.t(void 0),this.selectOpen$=new Ki.m}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,Jt.p)(c=>c),(0,Es.s)(1),(0,gn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.placeholder$.next(this.props.placeholder),this.configureStateConnections()}configureStateConnections(){if(this.state){if(this.state.requires.requiresDisease$?this.onRequiresDisease$=this.state.requires.requiresDisease$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresDisease$ subject to attach.`),this.props.requireType){const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}!this.onRequiresDisease$||!this.onEntityType$||(0,Mo.z)([this.onRequiresDisease$,this.onEntityType$,this.onValueChange$]).pipe((0,gn.s)(this)).subscribe(([c,h,_])=>{this.onStateUpdates(c,h,_)})}}onStateUpdates(c,h,_){!c&&h&&(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,Hi.u)(h)} ${this.state.entityName} does not include associated diseases`,this.props.extraType="prompt",this.cdr.markForCheck()),this.props.requireType&&!h&&(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"),c&&(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0),(!c&&void 0!==_||this.props.requireType&&!h&&this.formControl.value)&&this.resetField()}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.diseaseTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.disease}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.O3Q),e.rXU(Hn.BOs),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-disease-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(ye,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:12,vars:26,consts:[["selectedTemplate",""],["addDisease",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcAddEntity","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],[3,"innerHtml"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",3),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcSelectComponent",function(un){return e.eBV(ne),e.Njj(_.selectComponent=un)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s(),e.DNE(7,pi,3,3,"ng-container",4)(8,po,2,3,"ng-template",null,0,e.C5r)(10,Yi,1,1,"ng-template",null,1,e.C5r)}if(2&h){const ne=e.sdS(9),bt=e.sdS(11);e.Y8G("cvcAddEntity",bt)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,14,_.placeholder$))("cvcResults",e.bMT(2,16,_.result$))("cvcOptions",e.bMT(3,18,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresDisease$&&!e.bMT(4,20,_.onRequiresDisease$))("cvcLoading",e.bMT(5,22,_.isLoading$))("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.Sq,z.bT,Pi.Nj,En.LH,it.Di,nn,ln.b,tt,Pi.L9,hs.M],changeDetection:0})}return u})();const xo={types:[{name:"disease-select",wrappers:["form-field"],component:Qn,defaultOptions:{props:{label:"Disease"}}},{name:"disease-multi-select",wrappers:["form-field"],component:Qn,defaultOptions:{props:{isMultiSelect:!0,label:"Diseases"}}}]};let Li=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(xo),wn.$,Fn.Zw,ct.DH,xi.MC,hi.U6,te.Y3,P.j,R.f3,En.Qt,dn.pc,j.PQ,dt.jl,it.kT,ni.T,Fe.P,Pn,Cn,_e.i,Ht._]})}return u})();const To=["optionTemplates"];function ur(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function ir(u,b){1&u&&(e.qex(0),e.DNE(1,ur,1,1,"ng-template",null,1,e.C5r),e.bVm())}function xr(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Hr={DIAGNOSTIC:"Evidence pertains to a variant's impact on patient diagnosis (cancer subtype).",PREDICTIVE:"Evidence pertains to a variant's effect on therapeutic response.",PROGNOSTIC:"Evidence pertains to a variant's impact on disease progression, severity, or patient survival.",PREDISPOSING:"Evidence pertains to a germline variant's role in conferring susceptibility to disease (including pathogenicity evaluations).",ONCOGENIC:"Evidence pertains to a somatic variant's involvement in tumor pathogenesis as described by the Hallmarks of Cancer.",FUNCTIONAL:"Evidence pertains to a variant that alters biological function from the reference state."},zr=uo(Ei(),Oi()),ts={types:[{name:"type-select",wrappers:["form-field"],component:(()=>{class u extends zr{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"ENTITY_NAME Type",entityName:{singular:"Entity",plural:"Entities"},placeholder:"Select an ENTITY_NAME Type",isMultiSelect:!1}},this.typeEnums$=new vn.t([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,Jt.p)(c=>c),(0,Es.s)(1),(0,gn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.props.description=Hr[c],this.props.extraType="description",this.field.formControl.markAsTouched()):(this.props.description=void 0,this.props.extraType=void 0)}),this.state?(this.props.placeholder=this.props.placeholder.replace("ENTITY_NAME",this.state.entityName),this.props.label=this.props.label.replace("ENTITY_NAME",this.state.entityName),this.props.tooltip=`Type of clinical outcome associated with the ${this.state.entityName} statement.`,this.state.enums.entityType$?(this.state.enums.entityType$.pipe((0,gn.s)(this)).subscribe(c=>{this.typeEnums$.next(c)}),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,ve.T)(c=>c.map(h=>h))),this.configureEnumSelect()):console.error(`${this.field.id} could not find state's enums.inputEnum$ to populate its select options.`)):console.error(`${this.field.id} requires a form state to configure itself, none was found.`)}configureEnumSelect(){this.configureEnumSelectField({optionEnum$:this.typeEnums$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-type-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(To,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,ir,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,xr,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ne)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.typeEnums$))}},dependencies:[z.Sq,vo,Ai,Pi.L9],changeDetection:0})}return u})()}]};let fr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(ts),Pn,ds,_i]})}return u})();var or=a(9214);let Ms=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,it.kT]})}return u})();var Qo=a(5703),ns=a(2602),fo=a(9247),Ws=a(2816),Yr=a(152),is=a(1661),dc=a(9869);const Ds={isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},ca=u=>void 0!==u.sort,Wr=u=>void 0!==u.filter,Ya={description:Hn.NVO.Description,disease:Hn.NVO.DiseaseName,evidenceDirection:Hn.NVO.EvidenceDirection,evidenceLevel:Hn.NVO.EvidenceLevel,evidenceRating:Hn.NVO.EvidenceRating,evidenceType:Hn.NVO.EvidenceType,id:Hn.NVO.Id,significance:Hn.NVO.Significance,status:Hn.NVO.Status,variantOrigin:Hn.NVO.VariantOrigin},Oa={molecularProfile:"molecularProfileName",disease:"diseaseName",therapies:"therapyName",evidenceItem:"id"},wa=["selected","id"];class tl{constructor(){this.sortStreams=[],this.filterStreams=[],this.config=this.configureColumnStreams([{key:"selected",label:"Select",type:"select",width:"25px",align:"center",fixedLeft:!0,checkbox:{th:{showCheckbox:!1},td:{showCheckbox:!0}}},{hidden:!0,key:"id",label:"ID",type:"default",width:"30px"},{hidden:!0,key:"status",label:"Status",type:"default",width:"50px"},{key:"id",label:"Evidence",type:"entity-tag",width:"95px",context:"evidenceItem",fixedLeft:!0,showStatus:!0,tag:{fullWidth:!0},sort:{default:"ascend"},filter:{inputType:"default",options:[{key:"EID",value:null}],transform:b=>b?+b.toString().replace(/EID/i,""):null}},{key:"molecularProfile",label:"Molecular Profile",type:"entity-tag",width:"240px",sort:{},tag:{truncateLabel:"200px"},filter:{inputType:"default",typename:"MolecularProfile",options:[{key:"Filter Therapy Names",value:null}]}},{key:"disease",type:"entity-tag",label:"Disease",width:"240px",sort:{},tag:{truncateLabel:"200px"},filter:{inputType:"default",typename:"Disease",options:[{key:"Filter Disease Names",value:null}]}},{key:"therapies",label:"Therapies",type:"entity-tag",width:"275px",sort:{disabled:!0},tag:{maxTags:2,truncateLabel:"150px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}},{key:"therapyInteractionType",label:"INT",tooltip:"Therapy Interaction Type",type:"enum-tag",width:"40px",align:"center",emptyValueCategory:"not-applicable",sort:{},filter:{options:this.getAttributeFilters((0,ki.KF)(Hn.qld))}},{key:"description",label:"DSC",tooltip:"Evidence Description",type:"text-tag",width:"40px",align:"center",fixedRight:!0,emptyValueCategory:"unspecified",sort:{},filter:{inputType:"default",options:[{key:"Search Descriptions",value:null}]}},{key:"evidenceType",label:"ET",tooltip:"Evidence Type",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,ki.KF)(Hn.M1P))}},{key:"evidenceLevel",label:"EL",tooltip:"Evidence Level",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,ki.KF)(Hn.iHU))}},{key:"evidenceDirection",label:"ED",tooltip:"Evidence Direction",type:"enum-tag",width:"40px",align:"center",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,ki.KF)(Hn.$Ni))}},{key:"significance",label:"SI",tooltip:"Significance",type:"enum-tag",align:"center",width:"40px",fixedRight:!0,sort:{},filter:{options:this.getAttributeFilters((0,ki.KF)(Hn.Vue))}},{key:"evidenceRating",label:"ER",tooltip:"Evidence Rating",type:"enum-tag",width:"45px",align:"center",fixedRight:!0,tag:{showLabel:"short-string"},sort:{},filter:{options:[1,2,3,4,5].map(b=>({value:b,text:`${b} stars`}))}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(b,c){return b.getValues().map(_=>({text:(0,Hi.u)(_),value:_,byDefault:c===_}))}configureColumnStreams(b){return b.forEach(c=>{const h=c;if(ca(h)&&(h.sort.changes=new vn.t({key:h.key,value:h.sort.default??null}),this.sortStreams.push(h.sort.changes)),Wr(h)){const _=h.filter.options.find(ne=>ne.byDefault)?.value;h.filter.changes=new vn.t({key:h.key,value:_??null}),this.filterStreams.push(h.filter.changes)}}),b}}var Ks=a(2033);const Xs=(u,b,c)=>({$implicit:u,config:b,emphasize:c});function mu(u,b){1&u&&e.eu8(0)}function nl(u,b){if(1&u&&(e.qex(0),e.j41(1,"span",1),e.DNE(2,mu,1,0,"ng-container",2),e.k0s(),e.bVm()),2&u){const c=b.$implicit,h=e.XpG();e.R7$(2),e.Y8G("ngTemplateOutlet",h.cvcTagTemplate)("ngTemplateOutletContext",e.sMw(2,Xs,c,h.config,null==h.config?null:h.config.emphasize))}}let la=class xm{set cvcTagListConfig(b){!b||!b.tagList||!b.tag||(this.config=b,this.setEntities(b.tagList,b.tag))}constructor(){this.entities=[]}setEntities(b,c){this.entities=b&&0!==b.length&&0!==c.maxTags?b:[]}static#e=this.\u0275fac=function(c){return new(c||xm)};static#t=this.\u0275cmp=e.VBU({type:xm,selectors:[["cvc-entity-tag-list"]],inputs:{cvcTagListConfig:"cvcTagListConfig",cvcTagTemplate:"cvcTagTemplate"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"tag-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,h){1&c&&e.DNE(0,nl,3,6,"ng-container",0),2&c&&e.Y8G("ngForOf",h.entities)},dependencies:[z.Sq,z.T3],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]{display:inline-block;margin-bottom:-4px}.tag-container[_ngcontent-%COMP%]{display:inline-block;margin-bottom:4px}"],changeDetection:0})};la=(0,Mi.Cg)([(0,gn.d)()],la);var Ol=a(3075),Wa=a(4137);const il=(u,b,c,h,_)=>({tagList:u,tag:b,showPopover:c,status:h,emphasize:_});function Bc(u,b){if(1&u&&(e.nrm(0,"span",7),e.nI1(1,"typenameToIcon"),e.nI1(2,"entityColor")),2&u){const c=b.$implicit;e.Y8G("nzType",e.bMT(1,2,c.__typename))("nzTwotoneColor",e.bMT(2,4,c.__typename))}}function Ss(u,b){if(1&u&&(e.qex(0),e.DNE(1,Bc,3,6,"span",6),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",c.entities)}}function Ia(u,b){if(1&u&&(e.j41(0,"span",8)(1,"strong"),e.EFF(2),e.k0s()(),e.nrm(3,"span",7),e.nI1(4,"typenameToIcon"),e.nI1(5,"entityColor")),2&u){const c=e.XpG();e.R7$(2),e.JRh(c.entities.length),e.R7$(),e.Y8G("nzType",e.bMT(4,3,c.entities[0].__typename))("nzTwotoneColor",e.bMT(5,5,c.entities[0].__typename))}}function gu(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag-list",11),2&u){const c=e.XpG(2);e.Y8G("cvcTagTemplate",c.cvcTagTemplate)("cvcTagListConfig",e.s1E(2,il,c.entities,c.config.tag,c.config.showPopover,c.config.status,c.config.emphasize))}}function qu(u,b){1&u&&e.EFF(0," Invalid config specified for entity-tag-list. ")}function Vs(u,b){if(1&u&&(e.j41(0,"div",9),e.DNE(1,gu,1,8,"cvc-entity-tag-list",10),e.k0s(),e.DNE(2,qu,1,0,"ng-template",null,2,e.C5r)),2&u){const c=e.sdS(3),h=e.XpG();e.R7$(),e.Y8G("ngIf",h.config)("ngIfElse",c)}}let vu=(()=>{class u{set cvcCollectionTagConfig(c){!c||!c.tagList||!c.tag||(this.setConfig(c),this.setEntities(c.tagList))}constructor(){this.cvcShowMaxIcons=5,this.cvcShowFullLabels=!0,this.entities=[]}setConfig(c){this.config=this.cvcShowFullLabels?{...c,tag:{...c.tag,truncateLabel:void 0}}:c}setEntities(c){this.entities=c&&0!==c.length?c:[]}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-entity-collection-tag"]],inputs:{cvcCollectionTagConfig:"cvcCollectionTagConfig",cvcTagTemplate:"cvcTagTemplate",cvcShowMaxIcons:"cvcShowMaxIcons",cvcShowFullLabels:"cvcShowFullLabels"},decls:9,vars:3,consts:[["showCount",""],["tagListPopover",""],["noConfig",""],["nz-popover","","nzPopoverPlacement","top","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-typography","","nzType","secondary",1,"plus-sign"],[4,"ngIf","ngIfElse"],["class","entity-icon","nz-icon","","nzTheme","twotone",3,"nzType","nzTwotoneColor",4,"ngFor","ngForOf"],["nz-icon","","nzTheme","twotone",1,"entity-icon",3,"nzType","nzTwotoneColor"],["nz-typography","","nzType","secondary",1,"entity-count"],[1,"popover-container"],[3,"cvcTagTemplate","cvcTagListConfig",4,"ngIf","ngIfElse"],[3,"cvcTagTemplate","cvcTagListConfig"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-tag",3)(1,"span",4)(2,"strong"),e.EFF(3,"+"),e.k0s()(),e.DNE(4,Ss,2,1,"ng-container",5)(5,Ia,6,7,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(7,Vs,4,2,"ng-template",null,1,e.C5r)),2&h){const ne=e.sdS(6),bt=e.sdS(8);e.Y8G("nzPopoverContent",bt),e.R7$(4),e.Y8G("ngIf",_.entities.length<=_.cvcShowMaxIcons)("ngIfElse",ne)}},dependencies:[z.Sq,z.bT,ni.s,it.Di,xi.L_,te.Dn,la,Ol.R,Wa.o],styles:["[_nghost-%COMP%]{display:inline-block}.popover-container[_ngcontent-%COMP%]{max-width:300px}nz-tag[_ngcontent-%COMP%]{margin:0;padding:0;margin-inline-end:4px}nz-tag[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block}nz-tag[_ngcontent-%COMP%] .plus-sign[_ngcontent-%COMP%]{padding:3px 3px 3px 4px;margin:-3px 0;line-height:1}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]:first-child{padding-left:2px}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]{margin:-3px 1px -4px -1px;padding:3px 0;line-height:1}nz-tag[_ngcontent-%COMP%] .entity-icon[_ngcontent-%COMP%]:last-child{padding-right:3px}nz-tag[_ngcontent-%COMP%] .entity-count[_ngcontent-%COMP%]{margin-left:-2px;padding-right:4px}"],changeDetection:0})}return u})();var ol=a(3296);function F(u,b){if(1&u&&(e.j41(0,"span",1),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&u){const c=b.ngIf;e.R7$(),e.Lme(" ",e.bMT(2,2,c.edgeCount)," of ",e.bMT(3,4,c.filteredCount)," displayed\n")}}let ue=(()=>{class u{ngOnInit(){this.tableCountsInfo$=this.cvcTableCountsConnection.pipe((0,Jt.p)(c=>null!=c.totalCount||null!=c.filteredCount),(0,ve.T)(c=>{const h=c.filteredCount,_=c.totalCount,ne=c.edges;return null==h&&null==_&&console.log("Need to provide either filtered count or total count in the table counts component"),{edgeCount:ne.length,filteredCount:h??_}}))}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-table-counts2"]],inputs:{cvcTableCountsConnection:"cvcTableCountsConnection"},decls:2,vars:3,consts:[["class","table-counts","nz-typography","","nzType","secondary",4,"ngIf"],["nz-typography","","nzType","secondary",1,"table-counts"]],template:function(h,_){1&h&&(e.DNE(0,F,4,6,"span",0),e.nI1(1,"ngrxPush")),2&h&&e.Y8G("ngIf",e.bMT(1,1,_.tableCountsInfo$))},dependencies:[z.bT,it.Di,z.QX,Pi.L9],styles:[":[_nghost-%COMP%]{border:1px solid red}.table-counts[_ngcontent-%COMP%]{display:inline-block}"],changeDetection:0})}return u})();var B=a(1594),he=a(3946);let Ye=class Pm{set cvcTableScrollerToIndex(b){void 0!==b&&this.scrollToIndex(b)}set cvcTableScrollerToOffset(b){void 0!==b&&this.scrollToIndex(b)}constructor(b){this.host=b,this.cvcTableScrollerOnScroll=new e.bkB,this.cvcTableScrollerOnFetch=new e.bkB,this.cvcTableScrollerTargetHeight=140,this.cvcTableScrollerFetchCount=50,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroller directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,B.$)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,Tr.c)(this.onScrollThrottleTime,$r.E,{leading:!0,trailing:!0}),(0,An.M)(b=>this.cvcTableScrollerOnScroll.next("scroll")),(0,Yr.B)(this.onScrollDebounceTime),(0,gn.s)(this)).subscribe(b=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,ve.T)(b=>this.viewport.measureScrollOffset("bottom")),(0,he.J)(),(0,Jt.p)(([b,c])=>c{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(c){console.error(c)}})}loadMore(b){const c=this.cvcTableScrollerQueryRef;if(!b&&c)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(b&&!c)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(b&&c){const[h,_,ne]=[this.cvcTableScrollerFetchCount,b.hasNextPage,b.endCursor];if(!h||!ne)throw new Error("table-scroll PageInfo invalid.");if(!_)return;this.cvcTableScrollerOnFetch.next({first:h,after:ne})}}scrollToIndex(b){const[c,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!h)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");h.scrollToIndex(b)}scrollToOffset(b){const[c,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!h)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");h.scrollToOffset(b)}static#e=this.\u0275fac=function(c){return new(c||Pm)(e.rXU(fo.CP))};static#t=this.\u0275dir=e.FsC({type:Pm,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}})};function Et(u,b){1&u&&e.nrm(0,"span",8)}function Wt(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",9),e.bIt("click",function(){e.eBV(c),e.XpG(2);const _=e.sdS(3),ne=e.XpG();return _.value="",e.Njj(ne.cvcModelChange.next(null))}),e.k0s()}}function On(u,b){if(1&u&&e.DNE(0,Et,1,0,"span",6)(1,Wt,1,0,"span",7),2&u){e.XpG();const c=e.sdS(3);e.Y8G("ngIf",!c.value),e.R7$(),e.Y8G("ngIf",c.value)}}function yn(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-input-group",4)(2,"input",5,1),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcModelChange.next(_))}),e.k0s()(),e.DNE(4,On,2,2,"ng-template",null,2,e.C5r),e.bVm()}if(2&u){const c=e.sdS(5),h=e.XpG();e.R7$(),e.Y8G("nzSuffix",c),e.R7$(),e.Y8G("placeholder",h.cvcPlaceholder)("ngModel",h.cvcModel)}}function gi(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number-group",10)(1,"nz-input-number",11,1),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcModelChange.next(""===_?null:_))}),e.k0s()()}if(2&u){let c;const h=e.XpG();e.R7$(),e.Y8G("nzPlaceHolder",null!==(c=h.cvcPlaceholder)&&void 0!==c?c:"")("ngModel",h.cvcModel)("nzMin",1)("nzStep",1)}}Ye=(0,Mi.Cg)([(0,gn.d)()],Ye);let Qi=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.bkB,this.cvcInputType="default"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[["numericInput",""],["filterInput",""],["suffixIcon",""],[4,"ngIf","ngIfElse"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"ngModelChange","placeholder","ngModel"],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"]],template:function(h,_){if(1&h&&e.DNE(0,yn,6,3,"ng-container",3)(1,gi,3,4,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf","default"===_.cvcInputType)("ngIfElse",ne)}},dependencies:[z.bT,t.me,t.BC,t.vS,bi.c,te.Dn,P.Sy,P.tg,P.vN,G,Qe],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none} nz-input-group{border-color:#d9d9d9!important}"]})}return u})();var Ji=a(1868);function Yo(u,b){if(1&u){const c=e.RV6();e.j41(0,"li",5),e.bIt("click",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.cvcOptionChange.next({key:ne.cvcColumnKey,value:_.value}))}),e.nrm(1,"cvc-attribute-tag",6),e.k0s()}if(2&u){const c=b.$implicit,h=e.XpG();e.Y8G("nzSelected",(null==h.cvcOption?null:h.cvcOption.value)===c.value),e.R7$(),e.Y8G("cvcFullWidth",!0)("cvcChecked",(null==h.cvcOption?null:h.cvcOption.value)===c.value)("cvcAttrValue",c.value)}}let Os=(()=>{class u{constructor(){this.cvcOptionChange=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-enum-filter-menu"]],inputs:{cvcColumnKey:"cvcColumnKey",cvcFilterOptions:"cvcFilterOptions",cvcOption:"cvcOption"},outputs:{cvcOptionChange:"cvcOptionChange"},decls:6,vars:2,consts:[["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[2,"padding","3px"],["nz-button","","nzType","default","nzBlock","","nzSize","small",3,"click","disabled"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"click","nzSelected"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(h,_){1&h&&(e.j41(0,"ul",0),e.DNE(1,Yo,2,4,"li",1),e.j41(2,"li",2)(3,"button",3),e.bIt("click",function(){return _.cvcOptionChange.next({key:_.cvcColumnKey,value:null})}),e.nrm(4,"span",4),e.EFF(5," Reset "),e.k0s()()()),2&h&&(e.R7$(),e.Y8G("ngForOf",_.cvcFilterOptions),e.R7$(2),e.Y8G("disabled",null===(null==_.cvcOption?null:_.cvcOption.value)))},dependencies:[z.Sq,vo,Fn.aO,bi.c,Do.p,Ji.jS,Ji.CU,te.Dn],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] ul li:hover{background-color:#e6f7ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected{background-color:#1890ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected:active{background-color:#096dd9}"],changeDetection:0})}return u})(),Ur=(()=>{class u{transform(c){return null!=c&&Array.isArray(c)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275pipe=e.EJ8({name:"isArray",type:u,pure:!0})}return u})(),oo=(()=>{class u{transform(c,h){return h(c)?c:void 0}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275pipe=e.EJ8({name:"guardType",type:u,pure:!0})}return u})();const Lo=()=>[],yr=()=>({x:"800px",y:"200px"}),Ta=(u,b,c)=>({$implicit:u,config:b,emphasize:c}),Cr=(u,b,c,h,_)=>({tagList:u,tag:b,showPopover:c,status:h,emphasize:_}),wl=()=>[6,6],Il=u=>({$implicit:u});function xl(u,b){if(1&u&&e.nrm(0,"th",28),2&u){let c;const h=b.ngIf;e.Y8G("nzShowCheckbox",h.checkbox.th.showCheckbox||!1)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function th(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",29),e.nI1(1,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.sort.changes.next({key:ne.key,value:_}))}),e.j41(2,"span",30),e.EFF(3),e.k0s()()}if(2&u){let c,h;const _=b.ngIf;e.Y8G("nzColumnKey",_.key)("nzAlign",null!==(c=_.align)&&void 0!==c?c:"left")("nzWidth",_.width)("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzShowSort",void 0!==_.sort&&!_.sort.disabled)("nzSortFn",!_.sort.disabled)("nzSortOrder",(null==(h=e.bMT(1,10,_.sort.changes))?null:h.value)||null),e.R7$(2),e.Y8G("nzTooltipTitle",_.tooltip),e.R7$(),e.SpI(" ",_.label," ")}}function nh(u,b){if(1&u&&(e.j41(0,"th",31),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Pl(u,b){if(1&u&&(e.j41(0,"th",31),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function U1(u,b){if(1&u&&(e.qex(0),e.DNE(1,xl,1,5,"th",25),e.nI1(2,"guardType"),e.DNE(3,th,4,12,"th",26),e.nI1(4,"guardType"),e.DNE(5,nh,2,7,"th",27),e.nI1(6,"guardType"),e.DNE(7,Pl,2,7,"th",27),e.nI1(8,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,c,h.colGuards.isTextTagCol))}}function rl(u,b){if(1&u&&(e.qex(0),e.DNE(1,U1,9,16,"ng-container",24),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function Zu(u,b){if(1&u&&(e.j41(0,"th",36),e.EFF(1," \xa0 "),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Fl(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-table-filter-input",39),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf,bt=e.XpG().ngIf;return e.Njj(ne.changes.next(ne.transform?{key:bt.key,value:ne.transform(_)}:{key:bt.key,value:_}))}),e.k0s()}if(2&u){const c=e.XpG().ngIf;e.Y8G("cvcInputType",c.filter.inputType)("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function ih(u,b){if(1&u&&(e.j41(0,"th",37),e.DNE(1,Fl,1,3,"cvc-table-filter-input",38),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function _u(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",40,4),e.nI1(2,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.sort.changes.next({key:ne.key,value:_}))}),e.j41(3,"nz-filter-trigger",41,5),e.nI1(5,"ngrxPush"),e.nrm(6,"span",42),e.k0s(),e.j41(7,"nz-dropdown-menu",null,6)(9,"cvc-enum-filter-menu",43),e.nI1(10,"ngrxPush"),e.bIt("cvcOptionChange",function(_){const ne=e.eBV(c).ngIf,bt=e.sdS(4);return ne.filter.changes.next(_),e.Njj(bt.nzVisible=!1)}),e.k0s()()()}if(2&u){let c,h,_;const ne=b.ngIf,bt=e.sdS(8);e.Y8G("nzColumnKey",ne.key)("nzWidth",ne.width)("nzAlign",null!==(c=ne.align)&&void 0!==c?c:"left")("nzLeft",ne.fixedLeft||!1)("nzRight",ne.fixedRight||!1)("nzShowSort",!ne.sort.disabled)("nzSortFn",!ne.sort.disabled)("nzSortOrder",(null==(h=e.bMT(2,15,ne.sort.changes))?null:h.value)||null)("nzShowFilter",void 0!==ne.filter)("nzFilterFn",!0),e.R7$(3),e.Y8G("nzDropdownMenu",bt)("nzActive",null!==(null==(_=e.bMT(5,17,ne.filter.changes))?null:_.value)),e.R7$(6),e.Y8G("cvcColumnKey",ne.key)("cvcFilterOptions",ne.filter.options)("cvcOption",e.bMT(10,19,ne.filter.changes))}}function G1(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",44,4)(2,"nz-filter-trigger",41),e.nI1(3,"ngrxPush"),e.nrm(4,"span",45),e.k0s(),e.j41(5,"nz-dropdown-menu",null,7)(7,"div",46)(8,"div",47)(9,"cvc-table-filter-input",48),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.filter.changes.next({key:ne.key,value:_}))}),e.k0s()()()()()}if(2&u){let c,h;const _=b.ngIf,ne=e.sdS(6);e.Y8G("nzColumnKey",_.key)("nzWidth",_.width)("nzAlign",null!==(c=_.align)&&void 0!==c?c:"left")("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzFilterFn",!0),e.R7$(2),e.Y8G("nzDropdownMenu",ne)("nzActive",null!==(null==(h=e.bMT(3,10,_.filter.changes))?null:h.value)),e.R7$(7),e.Y8G("cvcPlaceholder",_.filter.options[0].key)("cvcModel",_.filter.options[0].value)}}function yu(u,b){if(1&u&&(e.qex(0),e.DNE(1,Zu,2,5,"th",32),e.nI1(2,"guardType"),e.DNE(3,ih,2,6,"th",33),e.nI1(4,"guardType"),e.DNE(5,_u,11,21,"th",34),e.nI1(6,"guardType"),e.DNE(7,G1,10,12,"th",35),e.nI1(8,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,c,h.colGuards.isTextTagCol))}}function e1(u,b){if(1&u&&(e.qex(0),e.DNE(1,yu,9,16,"ng-container",24),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function Cu(u,b){if(1&u&&(e.j41(0,"thead")(1,"tr",21),e.DNE(2,rl,2,1,"ng-container",22),e.k0s(),e.j41(3,"tr",23),e.DNE(4,e1,2,1,"ng-container",22),e.k0s()()),2&u){const c=b.ngrxLet;e.R7$(2),e.Y8G("ngForOf",c),e.R7$(2),e.Y8G("ngForOf",c)}}function Ka(u,b){if(1&u){const c=e.RV6();e.j41(0,"td",53),e.bIt("nzCheckedChange",function(_){e.eBV(c);const ne=e.XpG(3).$implicit,bt=e.XpG(2);return e.Njj(bt.onRowSelected$.next({id:ne.id,selected:_}))}),e.k0s()}if(2&u){let c;const h=b.ngIf,_=e.XpG(3).$implicit;e.Y8G("nzChecked",_.selected)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function t1(u,b){1&u&&e.eu8(0)}function Al(u,b){if(1&u&&(e.qex(0),e.DNE(1,t1,1,0,"ng-container",56),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let c;const h=e.XpG().ngIf,_=e.XpG().ngIf,ne=e.sdS(3),bt=e.sdS(5),un=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,un[h])?ne:bt)("ngTemplateOutletContext",e.sMw(6,Ta,un[h],_,null==(c=e.bMT(3,4,_.filter.changes))?null:c.value))}}function sl(u,b){if(1&u&&(e.qex(0),e.DNE(1,Al,4,10,"ng-container",55),e.bVm()),2&u){const c=b.ngIf;e.XpG();const h=e.sdS(7),_=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngIf",_[c])("ngIfElse",h)}}function n1(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-collection-tag",58),e.bVm()),2&u){const c=e.XpG(2),h=c.$implicit,_=c.config,ne=c.emphasize;e.XpG();const bt=e.sdS(5),un=e.XpG(5);e.R7$(),e.Y8G("cvcCollectionTagConfig",e.s1E(3,Cr,h.slice(_.tag.maxTags,h.length),_.tag,!un.isScrolling,!0===_.showStatus?h.status:void 0,ne))("cvcTagTemplate",bt)("cvcShowFullLabels",!0)}}function Rl(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-tag-list",57),e.DNE(2,n1,2,9,"ng-container",24),e.bVm()),2&u){const c=e.XpG(),h=c.$implicit,_=c.config,ne=c.emphasize;e.XpG();const bt=e.sdS(5),un=e.XpG(5);e.R7$(),e.Y8G("cvcTagTemplate",bt)("cvcTagListConfig",e.s1E(3,Cr,h.slice(0,_.tag.maxTags),_.tag,!un.isScrolling,!0===_.showStatus?h.status:void 0,ne)),e.R7$(),e.Y8G("ngIf",h.slice(_.tag.maxTags,h.length).length>0)}}function al(u,b){if(1&u&&e.DNE(0,Rl,3,9,"ng-container",55),2&u){const c=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",c.length>0)("ngIfElse",h)}}function Ls(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",59),2&u){let c;const h=b.$implicit,_=b.config,ne=b.emphasize,bt=e.XpG(6);e.Y8G("cvcTruncateLabel",null==_.tag?null:_.tag.truncateLabel)("cvcLinkableEntity",h)("cvcEmphasize",ne)("cvcShowPopover",!bt.isScrolling)("cvcStatus",!0===_.showStatus?h.status:void 0)("cvcFullWidth",null!==(c=null==_.tag?null:_.tag.fullWidth)&&void 0!==c&&c)}}function hc(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",60),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"not-applicable")}}function bu(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,sl,2,2,"ng-container",24)(2,al,1,2,"ng-template",null,8,e.C5r)(4,Ls,1,6,"ng-template",null,9,e.C5r)(6,hc,1,1,"ng-template",null,10,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.context||h.key)}}function o1(u,b){if(1&u&&(e.nrm(0,"cvc-attribute-tag",62),e.nI1(1,"evidenceEnumDisplay")),2&u){const c=e.XpG().ngIf,h=e.XpG(3).$implicit,_=e.XpG(2);e.Y8G("cvcFullWidth",!0)("cvcAttrValue",h[c.key])("cvcTooltip",e.bMT(1,3,!_.isScrolling&&h[c.key]))}}function r1(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",63),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function Tu(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,o1,2,5,"cvc-attribute-tag",61)(2,r1,1,1,"ng-template",null,11,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(3),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function pc(u,b){if(1&u&&(e.j41(0,"nz-tag",65),e.nrm(1,"span",66),e.k0s()),2&u){const c=e.XpG().ngIf,h=e.XpG(3).$implicit;e.Y8G("nzTooltipTitle",h[c.key])}}function s1(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",60),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function a1(u,b){if(1&u&&(e.j41(0,"td",54),e.DNE(1,pc,2,1,"nz-tag",64)(2,s1,1,1,"ng-template",null,12,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(3),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function c1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ka,1,4,"td",51),e.nI1(2,"guardType"),e.DNE(3,bu,8,4,"td",52),e.nI1(4,"guardType"),e.DNE(5,Tu,4,5,"td",52),e.nI1(6,"guardType"),e.DNE(7,a1,4,5,"td",52),e.nI1(8,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.i5U(2,4,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,7,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,10,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,13,c,h.colGuards.isTextTagCol))}}function Nl(u,b){if(1&u&&(e.qex(0),e.DNE(1,c1,9,16,"ng-container",24),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function Eu(u,b){if(1&u&&(e.j41(0,"tr",50),e.DNE(1,Nl,2,1,"ng-container",22),e.k0s()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngForOf",c)}}function zu(u,b){1&u&&(e.j41(0,"tbody"),e.DNE(1,Eu,2,1,"ng-template",49),e.k0s())}function $c(u,b){1&u&&e.nrm(0,"span",71)}function fc(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",72),e.bIt("click",function(){e.eBV(c),e.XpG(2);const _=e.sdS(3),ne=e.XpG().filter;return _.value="",e.Njj(ne.changes.next({key:ne.key,value:null}))}),e.k0s()}}function l1(u,b){if(1&u&&e.DNE(0,$c,1,0,"span",69)(1,fc,1,0,"span",70),2&u){e.XpG();const c=e.sdS(3);e.Y8G("ngIf",!c.value),e.R7$(),e.Y8G("ngIf",c.value)}}function u1(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-input-group",67)(2,"input",68,14),e.bIt("nzFilterChange",function(_){e.eBV(c);const ne=e.XpG().filter;return e.Njj(ne.changes.next({key:ne.key,value:_}))}),e.k0s()(),e.DNE(4,l1,2,2,"ng-template",null,15,e.C5r),e.bVm()}if(2&u){const c=e.sdS(5),h=e.XpG().filter;e.R7$(),e.Y8G("nzSuffix",c),e.R7$(),e.Y8G("placeholder",h.placeholder)("ngModel",h.defaultValue)}}function Br(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number-group",73)(1,"nz-input-number",74,14),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG().filter;return e.Njj(ne.changes.next({key:ne.key,value:_}))}),e.k0s()()}if(2&u){const c=e.XpG().filter;e.R7$(),e.Y8G("nzPlaceHolder",c.placeholder)("ngModel",c.defaultValue)("nzMin",1)("nzStep",1)}}function Mu(u,b){if(1&u&&e.DNE(0,u1,6,3,"ng-container",55)(1,Br,3,4,"ng-template",null,13,e.C5r),2&u){const c=b.filter,h=e.sdS(2);e.Y8G("ngIf",void 0===c.inputType||"default"===c.inputType)("ngIfElse",h)}}function Du(u,b){1&u&&(e.j41(0,"nz-row",75)(1,"nz-col")(2,"span"),e.EFF(3,"Use checkboxes to select or deselect EIDs"),e.k0s()()()),2&u&&e.Y8G("nzGutter",e.lJ4(1,wl))}function Hc(u,b){1&u&&(e.j41(0,"nz-tag",85),e.nrm(1,"i",86),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function d1(u,b){if(1&u&&(e.j41(0,"nz-tag",88),e.nrm(1,"span",89),e.j41(2,"span",90),e.EFF(3),e.k0s()()),2&u){e.XpG();const c=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",c)("nzTooltipTitleContext",e.eq3(3,Il,h.query)),e.R7$(),e.SpI(" Query Error",h.query.length>1?"s":""," ")}}function Y1(u,b){if(1&u&&(e.j41(0,"nz-tag",88)(1,"span",90)(2,"span",91)(3,"strong"),e.EFF(4),e.k0s()()()()),2&u){e.XpG();const c=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(),e.Y8G("nzTooltipTitle",c)("nzTooltipTitleContext",e.eq3(3,Il,h.network)),e.R7$(3),e.SpI(" Network Error",h.query.length>1?"s":""," ")}}function W1(u,b){if(1&u&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&u){const c=b.$implicit;e.R7$(),e.SpI(" ",c.message," ")}}function K1(u,b){1&u&&e.DNE(0,W1,2,1,"div",22),2&u&&e.Y8G("ngForOf",b.$implicit)}function X1(u,b){if(1&u&&(e.qex(0),e.DNE(1,d1,4,5,"nz-tag",87)(2,Y1,5,5,"nz-tag",87)(3,K1,1,1,"ng-template",null,17,e.C5r),e.bVm()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",c.query),e.R7$(),e.Y8G("ngIf",c.network)}}function h1(u,b){if(1&u&&(e.qex(0),e.DNE(1,X1,5,2,"ng-container",24),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(),e.Y8G("ngIf",c)}}function kl(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",92)(1,"nz-checkbox-group",93),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onPreferenceChange$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngModel",e.bMT(2,1,c.setPreference$))}}function cl(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-row",75)(1,"nz-col",76),e.DNE(2,Hc,4,0,"nz-tag",77),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nrm(5,"cvc-no-more-rows",78),e.nI1(6,"ngrxPush"),e.k0s(),e.j41(7,"nz-col",76),e.DNE(8,h1,2,1,"ng-container",20),e.k0s(),e.j41(9,"nz-col",76),e.nrm(10,"cvc-table-counts2",79),e.k0s(),e.j41(11,"nz-col",80)(12,"nz-button-group")(13,"button",81),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onResetFilter$.next())}),e.nrm(14,"span",82),e.k0s(),e.j41(15,"button",83),e.nrm(16,"span",84),e.k0s()(),e.DNE(17,kl,3,3,"ng-template",null,16,e.C5r),e.k0s()()}if(2&u){const c=e.sdS(18),h=e.XpG();e.Y8G("nzGutter",8),e.R7$(2),e.Y8G("ngIf",e.bMT(3,7,h.loading$)&&e.bMT(4,9,h.isFetchMore$)),e.R7$(3),e.Y8G("cvcShowTag",e.bMT(6,11,h.noMoreRows$)),e.R7$(3),e.Y8G("ngrxLet",h.queryError$),e.R7$(2),e.Y8G("cvcTableCountsConnection",h.connection$),e.R7$(5),e.Y8G("nzPopoverContent",c)("nzPopoverTrigger","click")}}let Jo=class Fm{constructor(b,c,h){this.queryGQL=b,this.apollo=c,this.cdr=h,this.cvcSelectedIdsChange=new e.bkB,this.isScrolling=!1,this.colGuards=Ds,this.onFetchMore$=new N.B,this.onPreferenceChange$=new vn.t([]),this.onResetFilter$=new N.B,this.onRowSelected$=new N.B,this.onScroll$=new vn.t("stop"),this.onSetSelectedRow$=new vn.t(new Set),this.queryError$=new N.B,this.queryRequest$=new N.B,this.queryResult$=new Ki.m(1),this.isFetchMore$=new vn.t(!1),this.noMoreRows$=new vn.t(!1),this.scrollToIndex$=new N.B,this.tableConfig=new tl;const _=(0,Mo.z)(this.tableConfig.getFilterStreams()),ne=(0,Mo.z)(this.tableConfig.getSortStreams()).pipe((0,Jt.p)(bt=>bt.filter(un=>null!==un.value).length<=1));this.refetch$=(0,Mo.z)([ne,_]).pipe((0,ve.T)(([bt,un])=>({query:"refetch",sort:bt,filter:un}))),this.fetchMore$=this.onFetchMore$.pipe((0,ve.T)(bt=>({query:"fetchMore",fetchMore:{...bt}}))),(0,oe.h)(this.refetch$,this.fetchMore$).pipe((0,Yr.B)(50),(0,gn.s)(this)).subscribe(bt=>{const un=this.getQueryVars(bt);this.queryRef?(this.queryError$.next({}),"refetch"===bt.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(un).then(Wn=>{(Wn.error||Wn.errors)&&this.queryError$.next(this.getRequestErrors(Wn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:un}).then(Wn=>{(Wn.error||Wn.errors)&&this.queryError$.next(this.getRequestErrors(Wn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(un),this.queryRef.valueChanges.pipe((0,gn.s)(this)).subscribe(Wn=>{this.queryResult$.next(Wn),(Wn.error||Wn.errors)&&this.queryError$.next(this.getRequestErrors(Wn))}))}),this.loading$=this.queryResult$.pipe((0,Si.E)("loading"),(0,ee.F)()),this.connection$=this.queryResult$.pipe((0,Si.E)("data","evidenceItems"),(0,Jt.p)(zo.kP)),this.pageInfo$=this.connection$.pipe((0,Si.E)("pageInfo"),(0,Jt.p)(zo.kP)),this.row$=(0,Mo.z)([this.connection$.pipe((0,Si.E)("edges"),(0,Jt.p)(zo.kP),(0,ve.T)(bt=>bt.map(un=>un.node))),this.onSetSelectedRow$]).pipe((0,ve.T)(([bt,un])=>bt.map(Wn=>{if(Wn)return{...Wn,evidenceItem:{__typename:"EvidenceItem",id:Wn.id,name:Wn.name,link:Wn.link,status:Wn.status},selected:un.has(Wn.id)}}))),this.col$=new vn.t(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,ve.T)(bt=>this.getColPrefsFromTableConfig(bt))),this.onPreferenceChange$.pipe((0,qi.E)(this.col$),(0,ve.T)(([bt,un])=>this.getTableConfigFromColPrefs(bt,un)),(0,gn.s)(this)).subscribe(bt=>{this.col$.next(bt)}),this.onSetTableFilter$=new vn.t([]),this.onSetTableFilter$.pipe((0,gn.s)(this)).subscribe(bt=>{const un=this.col$.getValue();bt.forEach(Wn=>{const Gi=un.find(ko=>ko.key===Wn.key);if(void 0!==Gi.filter.inputType){const ko=Gi.filter.options[0];if(null===Wn.value)return Gi.filter.options=[{...ko,value:null}],void Gi.filter.changes.next(Wn);if(Array.isArray(Wn.value)&&0===Wn.value.length)return Gi.filter.options=[{...ko,value:null}],void Gi.filter.changes.next({...Wn,value:null});let cr;Array.isArray(Wn.value)?Wn.value.length>0&&(cr=Wn.value[0]):cr=Wn.value;const ic=Gi.filter.typename;if(!ic||!cr)return void console.error(`evidence-manager requires column config '${Gi.key}' provide a typename for cvcTablePrefs Input to set its filter`);const qc=this.getEntityName(ic,cr);if(!qc)return;Gi.filter.options=[{...ko,value:qc}],Gi.filter.changes.next({...Wn,value:qc})}else Wr(Gi)&&Gi.filter.changes.next(Wn)})}),this.onSetTablePref$=new vn.t([]),this.onSetTablePref$.pipe((0,qi.E)(this.setPreference$),(0,ve.T)(([bt,un])=>{const Wn=[];return bt.forEach(Gi=>{let ko=un.find(cr=>cr.value===Gi.value);ko?Wn.push({...ko,...Gi}):console.warn(`evidence-manager onSetTablePref$ received updated preferences for column '${Gi.value}', but a column with that key could not be found.`)}),Wn}),(0,gn.s)(this)).subscribe(bt=>{this.onPreferenceChange$.next(bt)}),this.onRowSelected$.pipe((0,qi.E)(this.onSetSelectedRow$),(0,gn.s)(this)).subscribe(([bt,un])=>{bt.selected?un.add(bt.id):un.delete(bt.id),this.onSetSelectedRow$.next(un),this.cvcSelectedIdsChange.next(Array.from(un))}),this.onScroll$.pipe((0,ve.T)(bt=>"stop"!==bt),(0,ee.F)(),(0,gn.s)(this)).subscribe(bt=>{this.isScrolling=bt,this.cdr.markForCheck()}),this.onScroll$.pipe((0,Jt.p)(bt=>"bottom"===bt),(0,qi.E)(this.pageInfo$),(0,ve.T)(([bt,un])=>un),(0,gn.s)(this)).subscribe(bt=>{bt.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,qi.E)((0,Go.of)(this.tableConfig.get())),(0,gn.s)(this)).subscribe(([b,c])=>{const h=[];c.forEach(_=>{if(ca(_)&&_.sort.changes&&_.sort.changes.next({key:_.key,value:_.sort.default??null}),Wr(_)){const ne=_.filter.options.find(bt=>1==bt.byDefault)?.value;_.filter.changes&&_.filter.changes.next({key:_.key,value:ne||null})}h.push(_)}),this.col$.next(h)})}getQueryVars(b){const c=this.getQueryFilterParams(b);return{...this.getQuerySortParams(b),...c,...b.fetchMore}}getQuerySortParams(b){if(!b.sort)return;const h=b.sort.find(ne=>null!==ne.value);return h?{sortBy:{column:this.getSortColumnFromColKey(h.key),direction:"ascend"===h.value?Hn.UEL.Asc:Hn.UEL.Desc||void 0}}:void 0}getQueryFilterParams(b){let c={};return b.filter&&b.filter.forEach(h=>{c[Oa[h.key]||h.key]=null===h.value||""===h.value?void 0:h.value}),c}getRequestErrors(b){return{query:b.errors,network:b.error}}getTableConfigFromColPrefs(b,c){return c.forEach(h=>{if(wa.find(ne=>ne===h.key))return;const _=b.find(ne=>ne.value===h.key);_&&(h.hidden=!_?.checked)}),[...c]}getColPrefsFromTableConfig(b){let c=[];return b.forEach(h=>{wa.find(_=>_===h.key)||c.push({label:h.tooltip||h.label,value:h.key,checked:!h.hidden})}),c}getSortColumnFromColKey(b){return Ya[b]}getEntityName(b,c){const h={id:`${b}:${c}`,fragment:dc.J1` + fragment Linkable${b}Entity on ${b} { + id + name + link + }`},_=this.apollo.client.readFragment(h);if(_)return _.name;console.error(`evidence-manager onSetTableFilter$ could not find cached entity ${b}:${c} to populate input filter`)}trackByIndex(b,c){return c?.id}ngOnChanges(b){if(b.cvcTableSettings){const c=b.cvcTableSettings.currentValue;void 0!==c&&this.onSetTableFilter$.next(c.filters)}if(b.cvcSelectedIds){const c=b.cvcSelectedIds.currentValue,h=new Set;void 0!==c&&c.forEach(_=>h.add(_)),this.onSetSelectedRow$.next(h)}}static#e=this.\u0275fac=function(c){return new(c||Fm)(e.rXU(Hn.BaG),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:Fm,selectors:[["cvc-evidence-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.OA$],decls:16,vars:27,consts:[["virtualTable",""],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],["enumTableFilter",""],["enumTagFilterTrigger",""],["enumFilterMenu","nzDropdownMenu"],["textTagFilterMenu","nzDropdownMenu"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],["emptyEnumTagCell",""],["emptyTextTagCell",""],["numericInput",""],["filterInput",""],["suffixIcon",""],["prefsPopover",""],["queryError",""],["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"cvcTableScrollerOnScroll","cvcTableScrollerOnFetch","nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading"],[4,"ngrxLet"],[1,"col-header-row"],[4,"ngFor","ngForOf"],[1,"filter-row"],[4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange",4,"ngIf"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle",4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight"],[3,"nzSortOrderChange","nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder"],["nz-tooltip","",1,"col-header-label",3,"nzTooltipTitle"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],[3,"cvcModelChange","cvcInputType","cvcPlaceholder","cvcModel"],["nzCustomFilter","",1,"attribute-filter",3,"nzSortOrderChange","nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn"],[3,"nzDropdownMenu","nzActive"],["nz-icon","","nzType","filter","nzTheme","fill"],[3,"cvcOptionChange","cvcColumnKey","cvcFilterOptions","cvcOption"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcModelChange","cvcPlaceholder","cvcModel"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzCheckedChange","nzChecked","nzAlign","nzLeft","nzRight"],[3,"nzAlign","nzLeft","nzRight"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"cvcTagTemplate","cvcTagListConfig"],[3,"cvcCollectionTagConfig","cvcTagTemplate","cvcShowFullLabels"],[3,"cvcTruncateLabel","cvcLinkableEntity","cvcEmphasize","cvcShowPopover","cvcStatus","cvcFullWidth"],[3,"cvcEmptyCategory"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip",4,"ngIf","ngIfElse"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["cvcDisplayMode","small",3,"cvcEmptyCategory"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"nzFilterChange","placeholder","ngModel"],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"],[3,"nzGutter"],["nzFlex","auto"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],[3,"cvcTableCountsConnection"],["nzFlex","35px"],["nz-button","","type","button","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-button","","nz-popover","","nzPopoverTitle","Visible Columns","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["nzColor","error",2,"margin-left","12px"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nz-tooltip","",2,"cursor","help",3,"nzTooltipTitle","nzTooltipTitleContext"],["nz-typography",""],[1,"prefs-popover"],[3,"ngModelChange","ngModel"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"nz-card",18)(1,"nz-table",19,0),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.bIt("cvcTableScrollerOnScroll",function(bt){return e.eBV(_),e.Njj(h.onScroll$.next(bt))})("cvcTableScrollerOnFetch",function(bt){return e.eBV(_),e.Njj(h.onFetchMore$.next(bt))}),e.DNE(8,Cu,5,2,"thead",20)(9,zu,2,0,"tbody",20),e.k0s()(),e.DNE(10,Mu,3,2,"ng-template",null,1,e.C5r)(12,Du,4,2,"ng-template",null,2,e.C5r)(14,cl,19,13,"ng-template",null,3,e.C5r)}if(2&c){const _=e.sdS(13),ne=e.sdS(15);e.Y8G("nzTitle",_)("nzExtra",ne),e.R7$(),e.Y8G("nzData",e.bMT(3,15,h.row$)||e.lJ4(25,Lo))("cvcTableScrollerQueryRef",h.queryRef)("cvcTableScrollerPageInfo",e.bMT(4,17,h.pageInfo$))("cvcTableScrollerToIndex",e.bMT(5,19,h.scrollToIndex$))("nzScroll",e.lJ4(26,yr))("nzVirtualForTrackBy",h.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.bMT(6,21,h.loading$)&&!e.bMT(7,23,h.isFetchMore$)),e.R7$(7),e.Y8G("ngrxLet",h.col$),e.R7$(),e.Y8G("ngrxLet",h.col$)}},dependencies:[z.Sq,z.bT,z.T3,vo,Ks.o,vu,la,ln.b,ol.M,ue,t.me,t.BC,t.vS,Pi.Nj,Fn.aO,Fn.dn,bi.c,Do.p,Qo.cK,_t.Ov,ns.wQ,R.Uq,R.e,te.Dn,P.Sy,P.tg,P.vN,G,Qe,xi.L_,fo.CP,fo.Cc,fo.SO,fo._4,fo.GM,fo.IL,fo.aj,fo.kt,fo.CC,fo.OL,fo.Kg,fo.jc,fo.oZ,ni.s,En.LH,it.Di,Ye,Qi,Os,Ur,Sa.pW,oo,Pi.L9],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:6px}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type cvc-entity-tag[_ngcontent-%COMP%]{margin-left:6px}.ant-table-filter-dropdown[_ngcontent-%COMP%]{padding:8px}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label{display:block}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label span{display:inline-block}"],changeDetection:0})};Jo=(0,Mi.Cg)([(0,gn.d)()],Jo);const di=["optionTemplates"],Wi=()=>[6,6],Pr=(u,b)=>({show:u,hide:b});function Qs(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",10)(1,"cvc-evidence-manager",11),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.bIt("cvcSelectedIdsChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("cvcSelectedIds",e.bMT(2,2,c.onEid$))("cvcTableSettings",e.bMT(3,4,c.tableSettingsChange$))}}function Kr(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",13),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h)}}function ps(u,b){1&u&&(e.qex(0),e.DNE(1,Kr,1,3,"ng-template",null,1,e.C5r),e.bVm())}function mc(u,b){if(1&u&&(e.qex(0),e.DNE(1,ps,3,0,"ng-container",12),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function qo(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",14)(1,"cvc-entity-tag",15),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","EvidenceItem:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Fr=uo(Ei(),Wo());let Js=(()=>{class u extends Fr{constructor(c,h,_,ne){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.apollo=ne,this.synchronizedFields$=[],this.synchronizedRequired$=[],this.defaultOptions={props:{label:"Evidence Items",placeholder:"Select Evidence Items",isMultiSelect:!0,description:"Select Evidence by ID, or use the manager to select with filtering",entityName:{singular:"Evidence Item",plural:"Evidence Items"},minSearchStrLength:1}},this.synchronizedFieldToColMap=new Map([["molecularProfileId","molecularProfile"],["diseaseId","disease"],["therapyIds","therapies"]]),this.requiredFieldToColMap=new Map([["disease","requiresDisease$"],["therapies","requiresTherapy$"]]),this.onEid$=new Ki.m,this.onShowMgrClick$=new N.B,this.showMgr$=this.onShowMgrClick$.pipe((0,Ws.S)((bt,un)=>!bt,!1))}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),void 0!==this.formControl.value&&0!==this.formControl.value.length&&this.onEid$.next(this.formControl.value),this.onValueChange$.pipe((0,qi.E)(this.onEid$),(0,gn.s)(this)).subscribe(([c,h])=>{Array.isArray(c)&&this.onEid$.next(c)})}configureStateConnections(){this.state&&(this.synchronizedFieldToColMap.forEach((c,h)=>{const _=this.state.fields[`${h}$`];_&&this.synchronizedFields$.push(_.pipe((0,ve.T)(ne=>({key:h,value:ne??null}))))}),this.requiredFieldToColMap.forEach((c,h)=>{const _=this.state.requires[c];_&&this.synchronizedRequired$.push(_.pipe((0,ve.T)(ne=>({key:h,required:ne}))))}),this.onFieldsChange$=(0,Mo.z)(this.synchronizedFields$).pipe((0,ve.T)(c=>{const h=[];return c.forEach(_=>{const ne=this.synchronizedFieldToColMap.get(_.key);ne&&h.push({key:ne,value:_.value})}),h})),this.onRequiredChange$=(0,Mo.z)(this.synchronizedRequired$).pipe((0,ve.T)(c=>{const h=[];return c.forEach(_=>{h.push({value:_.key,checked:_.required})}),h})),this.tableSettingsChange$=(0,Mo.z)([this.onFieldsChange$,this.onRequiredChange$]).pipe((0,ve.T)(([c,h])=>({filters:c,preferences:h})),(0,Yr.B)(100),(0,as.t)(1)))}getTypeaheadVarsFn(c,h){return{eid:+c.replace(/EID/i,"")}}getTypeaheadResultsFn(c){return c.data.evidenceItems.nodes}getTagQueryVarsFn(c){return{eid:c}}getTagQueryResultsFn(c){return c.data.evidenceItem}getSelectedItemOptionFn(c){return{value:c.id,label:`EID${c.id}`}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||`EID${_.id}`,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.ZLN),e.rXU(Hn.sZm),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-evidence-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(di,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:18,vars:36,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"nzGutter"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcSelectMode","cvcMinSearchStrLength","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading","cvcSelectOpen"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIdsChange","cvcSelectedIds","cvcTableSettings"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"nz-row",2)(1,"nz-col",3)(2,"cvc-entity-select",4),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcSelectComponent",function(un){return e.eBV(ne),e.Njj(_.selectComponent=un)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s()(),e.j41(7,"nz-col",5)(8,"button",6),e.bIt("click",function(){return e.eBV(ne),e.Njj(_.onShowMgrClick$.next())}),e.nrm(9,"span",7),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.EFF(12," Manager "),e.k0s()(),e.DNE(13,Qs,4,6,"nz-col",8),e.nI1(14,"ngrxPush"),e.k0s(),e.DNE(15,mc,3,3,"ng-container",9)(16,qo,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(17);e.Y8G("nzGutter",e.lJ4(32,Wi)),e.R7$(2),e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",_.props.placeholder)("cvcResults",e.bMT(3,18,_.result$))("cvcOptions",e.bMT(4,20,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled)("cvcLoading",e.bMT(5,22,_.isLoading$))("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngClass",e.l_i(33,Pr,e.bMT(10,26,_.showMgr$),!e.bMT(11,28,_.showMgr$)))("nzType","caret-right"),e.R7$(4),e.Y8G("ngIf",e.bMT(14,30,_.showMgr$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.YU,z.Sq,z.bT,nn,ln.b,Pi.Nj,Fn.aO,bi.c,Do.p,R.Uq,R.e,te.Dn,Jo,Pi.L9],styles:[".manager-button[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s linear}.manager-button[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}"],changeDetection:0})}return u})();var to=a(7556);let Xa=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,te.Y3,ni.T,En.Qt,it.kT,_e.i,Ht._]})}return u})(),Vl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,ni.T,it.kT,xi.MC,te.Y3,En.Qt,_e.i,Xa]})}return u})();const gc={types:[{name:"evidence-select",wrappers:["form-field"],component:Js},{name:"evidence-multi-select",wrappers:["form-field"],component:Js,defaultOptions:{props:{label:"Evidence Items",isMultiSelect:!0}}}]};let hr=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,ds,to.F,Vl,Cn,Xa,Ht._,or.y,_e.i,Ms,m.qy.forChild(gc),t.YN,Fn.Zw,Qo.Ti,_t.IJ,ns.Cu,j.PQ,R.f3,te.Y3,P.j,ht,xi.MC,fo.$G,ni.T,En.Qt,it.kT]})}return u})(),ua=class Am{#e;constructor(b,c){this.query=b,this.errors=c,this.onFusionSelected=new e.bkB,this.#e=(0,e.WQX)(hi.J9),this.nzModalData=(0,e.WQX)(hi.or),this.layout="vertical",this.selectOrCreateFusionMutator=new fe.E(c),this.form=new t.J3({}),this.model={fivePrimeGeneId:void 0,threePrimeGeneId:void 0,fivePrimePartnerStatus:Hn.hBv.Known,threePrimePartnerStatus:Hn.hBv.Known},this.options={};const h=[{label:"Known",value:Hn.hBv.Known},{label:"Unknown",value:Hn.hBv.Unknown},{label:"Multiple",value:Hn.hBv.Multiple}];this.config=[{wrappers:["form-layout"],props:{showDevPanel:!1},validators:{partnerStatus:{message:"At least one of 5' or 3' partner status must be Known",expression:_=>{const ne=_.value;return!(!ne||ne.fivePrimePartnerStatus!=Hn.hBv.Known&&ne.threePrimePartnerStatus!=Hn.hBv.Known)},errorPath:"fivePrimePartnerStatus"},sameGene:{message:"5' and 3' Genes must be different",expression:_=>{const ne=_.value;return!(ne&&ne.fivePrimeGeneId&&ne.threePrimeGeneId&&ne.fivePrimeGeneId==ne.threePrimeGeneId)},errorPath:"fivePrimeGeneId"}},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:"New Fusion Feature"}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"fivePrimePartnerStatus",type:"base-select",props:{label:"5' Partner Status",tooltip:"Select Known if the specific 5' Gene partner is known, Unknown if not. Select Multiple if there are multiple potential 5' Gene partners",required:!0,placeholder:"5' Partner Status",options:h,multiple:!1}},{key:"fivePrimeGeneId",type:"feature-select",props:{label:"5' Fusion Partner",placeholder:"Select Gene",tooltip:"Select the 5' Gene partner in the Fusion",canChangeFeatureType:!1,hideFeatureTypeSelect:!0,featureType:Hn.Xiu.Gene},expressions:{"props.disabled":_=>_.model.fivePrimePartnerStatus!=Hn.hBv.Known,"props.required":_=>_.model.fivePrimePartnerStatus==Hn.hBv.Known}}]},{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"threePrimePartnerStatus",type:"base-select",props:{required:!0,placeholder:"3' Partner Status",label:"3' Partner Status",tooltip:"Select Known if the specific 3' Gene partner is known, Unknown if not. Select Multiple if there are multiple potential 3' Gene partners",options:h,multiple:!1}},{key:"threePrimeGeneId",type:"feature-select",props:{label:"3' Fusion Partner",placeholder:"Select Gene",tooltip:"Select the 3' Gene partner in the Fusion",canChangeFeatureType:!1,hideFeatureTypeSelect:!0,featureType:Hn.Xiu.Gene},expressions:{"props.disabled":_=>_.model.threePrimePartnerStatus!=Hn.hBv.Known,"props.required":_=>_.model.threePrimePartnerStatus==Hn.hBv.Known}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Create Fusion",align:"right"}}]}]}]}]}modelChange(b){b&&(this.model.fivePrimePartnerStatus!=Hn.hBv.Known&&(this.model={...this.model,fivePrimeGeneId:void 0}),this.model.threePrimePartnerStatus!=Hn.hBv.Known&&(this.model={...this.model,threePrimeGeneId:void 0}))}submitFusion(b){this.mutationState=this.selectOrCreateFusionMutator.mutate(this.query,b,{},c=>{if(c.createFusionFeature?.feature.id){const h=c.createFusionFeature.feature.id;this.onFusionSelected.next(h),this.#e&&this.#e.destroy({featureId:h})}})}static#t=this.\u0275fac=function(c){return new(c||Am)(e.rXU(Hn.Yd3),e.rXU(rt.N))};static#n=this.\u0275cmp=e.VBU({type:Am,selectors:[["cvc-fusion-select-form"]],outputs:{onFusionSelected:"onFusionSelected"},standalone:!0,features:[e.aNF],decls:2,vars:6,consts:[["nz-form","",3,"ngSubmit","nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(c,h){1&c&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return h.submitFusion(h.model)}),e.j41(1,"formly-form",1),e.bIt("modelChange",function(ne){return h.modelChange(ne)}),e.k0s()()),2&c&&(e.Y8G("nzLayout",h.layout)("formGroup",h.form),e.R7$(),e.Y8G("form",h.form)("fields",h.config)("model",h.model)("options",h.options))},dependencies:[z.MD,t.X1,t.qT,t.cb,t.j4,j.PQ,j.CA,Fn.Zw,wn.$,hi.U6,r.iI,m.qy,m.aF],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})};ua=(0,Mi.Cg)([(0,gn.d)()],ua);const vc=()=>[0,0];function da(u,b){if(1&u&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.k0s(),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(2),e.JRh(c.message)}}function _c(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG(2);e.JRh(c.successMessage)}}function Su(u,b){if(1&u){const c=e.RV6();e.qex(0),e.DNE(1,da,3,1,"ng-container",2),e.j41(2,"cvc-form-submission-status-display",3),e.DNE(3,_c,1,1,"ng-template",null,0,e.C5r),e.j41(5,"form",4),e.bIt("ngSubmit",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onSubmit$.next(_.model))}),e.j41(6,"nz-row",5)(7,"nz-col",6)(8,"formly-form",7),e.bIt("modelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.model=_)}),e.k0s()()()()(),e.bVm()}if(2&u){const c=e.sdS(4),h=e.XpG();e.R7$(),e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",c),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(9,vc)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}}let qs=class Rm{set cvcFeatureType(b){b&&this.featureType$.next(b)}set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,c){this.query=b,this.errors=c,this.cvcOnCreate=new e.bkB,this.showForm$=new vn.t(!1),this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new N.B,this.searchString$=new vn.t(void 0),this.featureType$=new vn.t(void 0),this.formMessageDisplay$=new vn.t({message:"Feature does not exist, create it?"}),this.addFeatureMutator=new fe.E(this.errors),this.minNameLength=3,this.fields=[{key:"featureType",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Add Feature"}}],this.featureType$.pipe((0,gn.s)(this)).subscribe(h=>{Object.values(Hn.iby).includes(h)?(this.model.featureType=h,this.showForm$.next(!0)):this.showForm$.next(!1)}),this.searchString$.pipe((0,gn.s)(this)).subscribe(h=>{this.model.name=h,this.formMessageDisplay$.next(void 0===h||void 0!==h&&h.length{console.log("feature-quick-add form model submitted.",h),this.submitFeature(h)})}submitFeature(b){b.name&&b.featureType?this.mutationState=this.addFeatureMutator.mutate(this.query,{name:b.name,featureType:b.featureType,organizationId:b.organizationId},{},c=>{console.log("feature-quick-add submit data callback",c),c.createFeature&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{c&&c.createFeature&&this.cvcOnCreate.next({id:c.createFeature.feature.id,new:c.createFeature.new})},1e3))}):console.error("feature-quick-add form submitFeature requires model with valid name and featureType.")}ngOnChanges(b){if(b.cvcFeatureType){const c=b.cvcFeatureType.currentValue;this.featureType$.next(c),this.model={...this.model,featureType:c}}}static#e=this.\u0275fac=function(c){return new(c||Rm)(e.rXU(Hn.r$P),e.rXU(rt.N))};static#t=this.\u0275cmp=e.VBU({type:Rm,selectors:[["cvc-feature-quick-add-form"]],inputs:{cvcFeatureType:"cvcFeatureType",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},standalone:!0,features:[e.OA$,e.aNF],decls:2,vars:3,consts:[["success",""],[4,"ngIf"],[4,"ngrxLet"],["entityType","Feature",3,"mutationState","successMessage"],[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"]],template:function(c,h){1&c&&(e.DNE(0,Su,9,10,"ng-container",1),e.nI1(1,"ngrxPush")),2&c&&e.Y8G("ngIf",e.bMT(1,1,h.showForm$))},dependencies:[z.MD,z.bT,t.X1,t.qT,t.cb,t.j4,Fe.P,Ue.G,Pi.Nj,Pi.L9,m.qy,m.aF,R.f3,R.Uq,R.e],encapsulation:2,changeDetection:0})};qs=(0,Mi.Cg)([(0,gn.d)()],qs);const ll=["optionTemplates"],Bs=()=>[6,6];function Bi(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",9)(1,"nz-select",10),e.mxI("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.DH7(ne.selectedFeatureType,_)||(ne.selectedFeatureType=_),e.Njj(_)}),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return ne.onFeatureType$.next(_),e.Njj(ne.formControl.setValue(void 0))}),e.nrm(2,"nz-option",11)(3,"nz-option",12)(4,"nz-option",13),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("disabled",!c.props.canChangeFeatureType),e.R50("ngModel",c.selectedFeatureType)}}function Ll(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",18),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",c.featureAliases.join(", "))("innerHtml",e.i5U(3,2,c.featureAliases.join(", "),h),e.npT)}}function jc(u,b){1&u&&e.EFF(0,"--")}function ha(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",15),e.j41(1,"span",16),e.DNE(2,Ll,4,5,"ng-container",17)(3,jc,1,0,"ng-template",null,3,e.C5r),e.k0s()),2&u){const c=e.sdS(4),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(2),e.Y8G("ngIf",h.featureAliases.length>0)("ngIfElse",c)}}function ul(u,b){1&u&&(e.qex(0),e.DNE(1,ha,5,5,"ng-template",null,2,e.C5r),e.bVm())}function yc(u,b){if(1&u&&(e.qex(0),e.DNE(1,ul,3,0,"ng-container",14),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Dr(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",19)(1,"cvc-entity-tag",20),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Feature:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function dl(u,b){if(1&u&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&u){const c=e.XpG(2).$implicit;e.R7$(),e.SpI("",c," does not match any existing Fusions")}}function Gr(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",26),e.bIt("click",function(){e.eBV(c);const _=e.XpG(3);return e.Njj(_.createFusionModal())}),e.EFF(1," Open Fusion Builder "),e.k0s()}}function os(u,b){1&u&&(e.j41(0,"nz-space",21),e.DNE(1,dl,2,1,"span",23)(2,Gr,2,0,"button",24),e.k0s())}function Bl(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-feature-quick-add-form",27),e.nI1(1,"ngrxPush"),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onSelectOrCreate(_))}),e.k0s()}if(2&u){const c=e.XpG().$implicit,h=e.XpG();e.Y8G("cvcSearchString",c)("cvcFeatureType",e.bMT(1,2,h.onFeatureType$))}}function Qa(u,b){if(1&u&&e.DNE(0,os,3,0,"nz-space",21)(1,Bl,2,4,"cvc-feature-quick-add-form",22),2&u){const c=e.XpG();e.vxM("FUSION"==c.selectedFeatureType?0:1)}}const hl=uo(Ei(),Wo());let Cs=class Nm extends hl{constructor(b,c,h,_){super(),this.taq=b,this.tq=c,this.changeDetectorRef=h,this.modal=_,this.defaultOptions={props:{label:"Feature",placeholder:"Search Features",isMultiSelect:!1,entityName:{singular:"Feature",plural:"Features"},description:"",featureType:Hn.Xiu.Gene,canChangeFeatureType:!0,hideFeatureTypeSelect:!1}},this.selectedFeatureType=this.props.featureType,this.onFeatureType$=new vn.t(void 0),this.instanceTypes=Hn.Xiu}ngAfterViewInit(){this.selectedFeatureType=this.props.featureType,this.props.featureTypeCallback&&(this.onFeatureType$.pipe((0,gn.s)(this)).subscribe(b=>this.props.featureTypeCallback(b)),this.onFeatureType$.next(this.selectedFeatureType)),this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent})}getTypeaheadVarsFn(b){return{queryTerm:b,featureType:this.selectedFeatureType}}getTypeaheadResultsFn(b){return b.data.featureTypeahead}getTagQueryVarsFn(b){return{featureId:b}}getTagQueryResultsFn(b){return b.data.feature}getSelectedItemOptionFn(b){return{value:b.id,label:b.name}}getSelectOptionsFn(b,c){return b.map((h,_)=>({label:c.get(_)||h.name,value:h.id}))}showAddBehavior(b,c){const h=b.toLowerCase();return b.length>=3&&!c.some(_=>_.name.toLowerCase()===h)}onSelectOrCreate(b){this.onPopulate$.next(b.id),this.props.isNewlyCreatedCallback&&this.props.isNewlyCreatedCallback(b.new)}onFusionSelected(b){this.onPopulate$.next(b),this.formControl.setValue(b)}createFusionModal(){const b=this.modal.create({nzTitle:"Add New Fusion Feature",nzContent:ua,nzData:{},nzFooter:null});b.getContentComponent(),b.afterClose.pipe((0,gn.s)(this)).subscribe(c=>{c.featureId&&this.onFusionSelected(c.featureId)})}static#e=this.\u0275fac=function(c){return new(c||Nm)(e.rXU(Hn.kq4),e.rXU(Hn.$TJ),e.rXU(e.gRc),e.rXU(hi.N_))};static#t=this.\u0275cmp=e.VBU({type:Nm,selectors:[["cvc-feature-select"]],viewQuery:function(c,h){if(1&c&&e.GBs(ll,5,e.C4Q),2&c){let _;e.mGM(_=e.lsd())&&(h.optionTemplates=_)}},features:[e.Vt3],decls:12,vars:22,consts:[["selectedTemplate",""],["addFeature",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","100px",4,"ngIf"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnOpenChange","cvcSelectComponent","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcPlaceholder","cvcEntityName","cvcAddEntity","cvcAddEntityBehavior","cvcResults","cvcOptions","cvcShowError","cvcLoading"],[4,"ngrxLet"],["nzFlex","100px"],[3,"ngModelChange","disabled","ngModel"],["nzValue","GENE","nzLabel","Gene"],["nzValue","FACTOR","nzLabel","Factor"],["nzValue","FUSION","nzLabel","Fusion"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],["nzDirection","vertical"],[3,"cvcSearchString","cvcFeatureType"],["nz-typography","",4,"nzSpaceItem"],["nz-button","","nzType","primary",3,"click",4,"nzSpaceItem"],["nz-typography",""],["nz-button","","nzType","primary",3,"click"],[3,"cvcOnCreate","cvcSearchString","cvcFeatureType"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"nz-row",4),e.DNE(1,Bi,5,2,"nz-col",5),e.j41(2,"nz-col",6)(3,"cvc-entity-select",7),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(bt){return e.eBV(_),e.Njj(h.onSearch$.next(bt))})("cvcOnOpenChange",function(bt){return e.eBV(_),e.Njj(h.onOpenChange$?h.onOpenChange$.next(bt):null)})("cvcSelectComponent",function(bt){return e.eBV(_),e.Njj(h.selectComponent=bt)})("cvcOnModelChange",function(bt){return e.eBV(_),e.Njj(h.props.change&&h.props.change(h.field,bt))}),e.k0s()()(),e.DNE(7,yc,3,3,"ng-container",8)(8,Dr,2,3,"ng-template",null,0,e.C5r)(10,Qa,2,1,"ng-template",null,1,e.C5r)}if(2&c){const _=e.sdS(9),ne=e.sdS(11);e.Y8G("nzGutter",e.lJ4(21,Bs)),e.R7$(),e.Y8G("ngIf",!h.props.hideFeatureTypeSelect),e.R7$(2),e.Y8G("cvcSelectMode",h.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",_)("cvcFormControl",h.formControl)("cvcFormlyAttributes",h.field)("cvcPlaceholder",h.props.placeholder)("cvcEntityName",h.props.entityName)("cvcAddEntity",ne)("cvcAddEntityBehavior",h.showAddBehavior)("cvcResults",e.bMT(4,15,h.result$))("cvcOptions",e.bMT(5,17,h.selectOption$))("cvcShowError",h.showError)("cvcLoading",e.bMT(6,19,h.isLoading$)),e.R7$(4),e.Y8G("ngrxLet",h.onSearch$)}},dependencies:[z.Sq,z.bT,t.BC,t.vS,Pi.Nj,Fn.aO,bi.c,Do.p,ct.ld,ct.WI,En.LH,R.Uq,R.e,it.Di,dn.U5,dn.Dq,nn,ln.b,qs,Pi.L9,hs.M],changeDetection:0})};Cs=(0,Mi.Cg)([(0,gn.d)()],Cs);const Uc={types:[{name:"feature-select",wrappers:["form-field"],component:Cs},{name:"feature-multi-select",wrappers:["form-field"],component:Cs,defaultOptions:{props:{label:"Features",isMultiSelect:!0}}}]};let Q1=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,t.YN,m.qy.forChild(Uc),wn.$,Fn.Zw,ct.DH,te.Y3,P.j,En.Qt,j.PQ,dt.jl,it.kT,ni.T,dn.pc,hi.U6,Pn,Cn,_e.i,Ht._,qs,ua]})}return u})();const J1=["optionTemplates"];function $l(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function Ou(u,b){1&u&&(e.qex(0),e.DNE(1,$l,1,1,"ng-template",null,1,e.C5r),e.bVm())}function q1(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Hl={COMBINATION:"Therapies specified were used as part of a combination therapy approach",SEQUENTIAL:"Therapies specified were used at separate timepoints in the same treatment plan",SUBSTITUTES:"Therapies specified are often considered to be of the same family, or behave similarly in a treatment setting"},Z1=uo(Ei(),Oi()),ed={types:[{name:"interaction-select",wrappers:["form-field"],component:(()=>{class u extends Z1{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Therapy Interaction",placeholder:"Select Therapy Interaction",requireMultipleTherapies:!0,requireMultipleTherapiesPromptFn:()=>"A single associated therapy does not have an Interaction type",tooltip:"Characterizes the interaction of a multi-therapy treatment"}},this.interactionEnum$=new vn.t([]),this.placeholder$=new vn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.interactionEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void this.placeholder$.next("ERROR: Form state not found");this.placeholder$.next(this.props.placeholder),this.state.enums.interaction$?(this.state.enums.interaction$.pipe((0,gn.s)(this)).subscribe(c=>{this.interactionEnum$.next(c)}),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,ve.T)(c=>c.map(h=>h))),this.onTherapies$=this.state.fields.therapyIds$,this.optionTemplates||console.warn(`${this.field.id} could not find state's fields.therapyIds$ to handle its required & disabled states.`),this.onTherapies$.pipe((0,gn.s)(this)).subscribe(c=>{c&&0!=c.length?1==c.length?(this.props.description="A single associated therapy does not have an Interaction type",this.props.disabled=!0,this.props.required=!1,void 0!==this.formControl.value&&this.formControl.setValue(void 0)):(this.props.description="Select an Interaction Type",this.props.disabled=!1,this.props.required=!0):(this.props.disabled=!0,this.props.required=!1,this.props.description="Interaction type is not applicable when no therapies are selected.",void 0!==this.formControl.value&&this.formControl.setValue(void 0)),this.cdr.markForCheck()}),this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.props.description=Hl[c],this.props.extraType="description"):(this.props.extraType="prompt",this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's interaction$ to populate select.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-interaction-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(J1,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,Ou,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,q1,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.interactionEnum$))}},dependencies:[z.Sq,Ai,vo,Pi.L9]})}return u})()}]};let td=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(ed),Pn,_i,ds]})}return u})();var nd=a(8763);const id=["optionTemplates"];function od(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.k0s()),2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c),e.R7$(),e.SpI(" - ",e.i5U(4,2,c,"evidenceLevelBrief")," ")}}function rd(u,b){1&u&&(e.qex(0),e.DNE(1,od,5,5,"ng-template",null,1,e.C5r),e.bVm())}function sd(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-tag",7),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.k0s()}if(2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c.nzValue),e.R7$(),e.SpI(" - ",e.i5U(4,2,c.nzValue,"evidenceLevelBrief")," ")}}function ad(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"enumTooltip"),e.bVm()),2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c.nzValue),e.R7$(),e.SpI(" - ",e.i5U(4,2,c.nzValue,"evidenceLevelBrief")," ")}}function cd(u,b){if(1&u&&(e.j41(0,"div",4),e.DNE(1,sd,5,5,"nz-tag",5)(2,ad,5,5,"ng-container",6),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",!c.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",c.props.isMultiSelect)}}const ld=new Map([[Hn.iHU.A,"Evidence shows consensus association in human medicine"],[Hn.iHU.B,"Evidence supports association using clinical trial or other primary patient data"],[Hn.iHU.C,"Evidence supports association using individual case reports from clinical journals"],[Hn.iHU.D,"Evidence supports association using in vivo or in vitro models"],[Hn.iHU.E,"Evidential association is inferential or indirect"]]),wu=uo(Ei(),Oi()),ud={types:[{name:"level-select",wrappers:["form-field"],component:(()=>{class u extends wu{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Evidence Level",required:!1,isMultiSelect:!1,placeholder:"Select Evidence Level",extraType:"description"}},this.levelEnum$=new vn.t([])}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,Jt.p)(c=>c),(0,Es.s)(1),(0,gn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.props.tooltip="Type of study performed to produce the evidence statement",this.levelEnum$.next((0,ki.KF)(Hn.iHU).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,ve.T)(c=>c.map(h=>h))),this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.props.description=ld.get(c),this.field.formControl.markAsTouched()):this.props.description=void 0}),this.configureEnumSelectField({optionEnum$:this.levelEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-level-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(id,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,rd,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,cd,3,2,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ne)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.levelEnum$))}},dependencies:[z.Sq,z.bT,ni.s,Ai,Pi.L9,nd.k],changeDetection:0})}return u})()},{name:"level-multi-select",extends:"level-select",defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let dd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(ud),ni.T,_e.i,Pn,_i]})}return u})();var hd=a(1448),fs=a(2617),jl=a(713);const Iu=/\(/g,Ul=/\)/g,Gl=/AND|OR/i,f1=/^(?NOT\s)?\s*#VID(?\d+)$/i,m1=/\s+/,Yl="EXPR";function Wl(u){return xu(u.replace(Iu," ( ").replace(Ul," ) "))}function xu(u){let c,b=u.split(m1),h=0,_=[],ne=[],bt=[];for(let ia of b)if("("==ia)0!=h&&_.push(ia),h+=1;else if(")"==ia)if(h-=1,0==h){let Va=xu(_.join(" "));if("errorMessage"in Va)return Va;bt.push(Va),ne.push(Yl),_=[]}else _.push(ia);else h>0?_.push(ia):ne.push(ia);const un={errorType:"trailingBoolean",errorMessage:"Expressions may not end with AND / OR boolean operators."},Wn={errorType:"initialBoolean",errorMessage:"Expressions may not start with AND / OR boolean operators."},Gi={errorType:"multipleBoolean",errorMessage:"Multiple boolean operators found."},ko={errorType:"incompleteExpression",errorMessage:"Ensure that parenthetical clauses are closed."};let cr=0;for(let ia of ne){let Va=Gl.test(ia);if(Va&&0==cr)return Wn;if(Va&&cr===b.length-1)return un;if(Va&&!c)c=Gc(ia);else if(Va&&c&&Gc(ia)!==c)return Gi;cr++}let ic=[],qc=ne.join(" ").split(Gl);for(let ia of qc.map(Va=>Va.trim())){let Va=f1.exec(ia);if(null===Va){if(0===ia.length)return ko;if("NOT"===ia||"NOT"===ia.split(" ").pop())return{errorType:"incompleteNOT",errorMessage:"NOT operator must be followed by a valid #VID."};if(ia!==Yl)return{errorType:"invalidToken",errorMessage:`Token '${ia}' does not match the expected format.`}}else ic.push({not:!!Va[1],variantId:parseInt(Va[2])})}return{booleanOperator:c,variantComponents:ic,complexComponents:bt}}function Gc(u){return"AND"==u.toUpperCase()?Hn.l76.And:Hn.l76.Or}var g1=a(9350);function Zs(u,b){const c="object"==typeof b;return new Promise((h,_)=>{let bt,ne=!1;u.subscribe({next:un=>{bt=un,ne=!0},error:_,complete:()=>{ne?h(bt):c?h(b.defaultValue):_(new g1.G)}})})}var Kl=a(1305),Xl=a(9973),Fo=a(1845);let pl=(()=>{class u{constructor(c){this.apollo=c,this.cvcOnSelect=new e.bkB,this.cvcOnVariantSelect=new e.bkB,this.modelChange$=new vn.t(void 0),this.finderState={formLayout:"horizontal",fields:{featureId$:new vn.t(void 0),variantId$:new vn.t(void 0),variantMolecularProfile$:new vn.t(void 0)}},this.form=new t.J3({}),this.model={featureId:void 0,variantId:void 0},this.options={formState:this.finderState},this.config=[{wrappers:["form-row"],props:{formRowOptions:{gutter:[8,0],span:12}},fieldGroup:[{key:"featureId",type:"feature-select",props:{placeholder:"Select MP Feature",hideLabel:!0,showExtra:!1,showErrorTip:!1,required:!0,featureTypeCallback:h=>{this.featureType=h}}},{key:"variantId",type:"variant-select",props:{placeholder:"Select MP Variant",hideLabel:!0,required:!0,showExtra:!1,showErrorTip:!1,requireFeature:!0}}]}]}modelChange(c){if(!c?.variantId)return;const h=this.getSelectedVariant(c.variantId);h&&(this.model={featureId:void 0,variantId:void 0},console.log(h),this.cvcOnSelect.next(h.singleVariantMolecularProfile),this.cvcOnVariantSelect.next(h))}getFragment(c,h){return{id:`${c}Variant:${h}`,fragment:is.J1` + fragment ${c}VariantSelectQuery on ${c}Variant { + id + name + link + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } + } + `}}getSelectedVariant(c){if(!c)return;const h=(new Fo.f).transform(this.featureType);let _;const ne=this.getFragment(h,c);try{_=this.apollo.client.readFragment(ne)}catch(un){console.error(un)}if(_)return _;const bt=this.getFragment("",c);try{_=this.apollo.client.readFragment(bt)}catch(un){console.error(un)}if(_)return _;console.error("MpFinderForm could not resolve its Variant from the cache")}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-mp-finder"]],outputs:{cvcOnSelect:"cvcOnSelect",cvcOnVariantSelect:"cvcOnVariantSelect"},decls:2,vars:6,consts:[["nz-form","",3,"formGroup","nzLayout"],[3,"modelChange","form","fields","model","options"]],template:function(h,_){1&h&&(e.j41(0,"form",0)(1,"formly-form",1),e.bIt("modelChange",function(bt){return _.modelChange(bt)}),e.k0s()()),2&h&&(e.Y8G("formGroup",_.form)("nzLayout",_.finderState.formLayout),e.R7$(),e.Y8G("form",_.form)("fields",_.config)("model",_.model)("options",_.options))},dependencies:[t.qT,t.cb,t.j4,m.aF,j.CA],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return u})();function Cc(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," The expression contains open parentheses. Please ensure that all parenthetical expressions are closed. "),e.k0s(),e.bVm())}function ms(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Complete the expression by appending a "),e.j41(3,"strong"),e.EFF(4,"#VID"),e.k0s(),e.EFF(5," token to the incomplete boolean expression. "),e.k0s(),e.bVm())}function rh(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," MP Expressions may not begin with an "),e.j41(3,"strong"),e.EFF(4,"AND"),e.k0s(),e.EFF(5," or "),e.j41(6,"strong"),e.EFF(7,"OR"),e.k0s(),e.EFF(8," boolean. Ensure the expression begins with a "),e.j41(9,"strong"),e.EFF(10,"#VID"),e.k0s(),e.EFF(11," or "),e.j41(12,"strong"),e.EFF(13,"NOT #VID"),e.k0s(),e.EFF(14," token. "),e.k0s(),e.bVm())}function Ql(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Molecular Profile expressions use a simple domain-specific language to specify complex MPs using boolean expressions to combine variants. These expressions may contain: "),e.k0s(),e.j41(3,"ul")(4,"li"),e.EFF(5," Variant Tokens - "),e.j41(6,"strong"),e.EFF(7,"#VID"),e.k0s(),e.EFF(8," or "),e.j41(9,"strong"),e.EFF(10,"NOT #VID"),e.k0s(),e.EFF(11,'followed by a valid Variant ID, e.g. "#VID123" '),e.k0s(),e.j41(12,"li"),e.EFF(13,"Boolean Tokens - "),e.j41(14,"strong"),e.EFF(15,"AND"),e.k0s(),e.EFF(16,", "),e.j41(17,"strong"),e.EFF(18,"OR"),e.k0s()(),e.j41(19,"li"),e.EFF(20," Parentheses - "),e.j41(21,"strong"),e.EFF(22,"("),e.k0s(),e.EFF(23," or "),e.j41(24,"strong"),e.EFF(25,")"),e.k0s(),e.EFF(26,", for grouping tokens into nested expressions "),e.k0s()(),e.j41(27,"p")(28,"strong"),e.EFF(29,"Invalid Token"),e.k0s(),e.EFF(30," errors occur if the parser encounters any text or token that does not match those listed above. "),e.k0s(),e.bVm())}function Yc(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," A single expression may not include more than one "),e.j41(3,"strong"),e.EFF(4,"AND"),e.k0s(),e.EFF(5," or "),e.j41(6,"strong"),e.EFF(7,"OR"),e.k0s(),e.EFF(8," boolean operator. To construct complex expressions, use parentheses. "),e.k0s(),e.j41(9,"p"),e.EFF(10," For example, the expression "),e.j41(11,"strong"),e.EFF(12,"#VID12 AND #VID2220 OR #VID456"),e.k0s(),e.EFF(13," is invalid, but the expression "),e.j41(14,"strong"),e.EFF(15,"#VID12 AND (#VID2220 OR #VID456)"),e.k0s(),e.EFF(16," is valid. The parentheses create a nested expression independent of the outer expression. "),e.k0s(),e.bVm())}function $s(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," Complete the expression by appending a "),e.j41(3,"strong"),e.EFF(4,"#VID"),e.k0s(),e.EFF(5," token to the incomplete boolean expression. "),e.k0s(),e.bVm())}function pd(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," The expression contains a Variant ID that cannot be matched to any Variant in the CIViC database. Please re-check the Variant ID, or create a new one by following these steps: "),e.k0s(),e.j41(3,"ol")(4,"li"),e.EFF(5,"click the 'Variant' button,"),e.k0s(),e.j41(6,"li"),e.EFF(7,"enter a Gene name, then select a Gene"),e.k0s(),e.j41(8,"li"),e.EFF(9,"enter the Variant name"),e.k0s(),e.j41(10,"li"),e.EFF(11," click the 'Create Variant' button that will appear if name does not match any CIViC Variants "),e.k0s()(),e.bVm())}function Pu(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," An expression may not contain multiple instances of the same Variant. Either remove the variant or change the expression. For example, "),e.j41(3,"strong"),e.EFF(4,"(#VID123 AND #VID456) OR (#VID123 AND #VID789)"),e.k0s(),e.EFF(5,", which is invalid, is logically identical to the valid MP expression "),e.j41(6,"strong"),e.EFF(7,"#VID123 AND (#VID456 OR #VID789)"),e.k0s(),e.EFF(8,". "),e.k0s(),e.bVm())}function sh(u,b){1&u&&(e.qex(0),e.j41(1,"p"),e.EFF(2," The Molecular Profile editor allows the selection or creation of complex Molecular Profiles by writing Molecular Profile Expressions. These expressions are composed with a simple language consisting of Variant tokens, boolean operators, and parentheses. For example: "),e.k0s(),e.j41(3,"blockquote")(4,"strong"),e.EFF(5,"#VID12 AND #VID2220"),e.k0s(),e.nrm(6,"br"),e.j41(7,"strong"),e.EFF(8,"#VID12 OR #VID2220"),e.k0s(),e.nrm(9,"br"),e.j41(10,"strong"),e.EFF(11,"#VID12 AND NOT #VID2220"),e.k0s(),e.nrm(12,"br"),e.j41(13,"strong"),e.EFF(14,"#VID12 AND #VID2220 AND (#VID456 OR #VID123)"),e.k0s(),e.nrm(15,"br"),e.j41(16,"strong"),e.EFF(17,"#VID12 OR #VID2220 OR (NOT #VID456 AND #VID123)"),e.k0s(),e.nrm(18,"br"),e.k0s(),e.j41(19,"p")(20,"strong"),e.EFF(21,"Variant Tokens"),e.k0s(),e.nrm(22,"br"),e.EFF(23," Variant tokens are composed of a CIViC Variant ID prepended with "),e.j41(24,"strong"),e.EFF(25,"#VID"),e.k0s(),e.EFF(26,", and refer to specific CIViC Variants. For example, "),e.j41(27,"strong"),e.EFF(28,"#VID12"),e.k0s(),e.EFF(29," refers to "),e.j41(30,"strong"),e.EFF(31,"BRAF V600E"),e.k0s(),e.EFF(32,"; "),e.j41(33,"strong"),e.EFF(34,"#VID2220"),e.k0s(),e.EFF(35," refers to "),e.j41(36,"strong"),e.EFF(37,"ALK FUSION"),e.k0s(),e.EFF(38,". If you don\u2019t know the CIViC ID of a Variant, you can search for Variants by name using the \u2018Variant\u2019 or \u2018NOT Variant\u2019 buttons below. These interfaces can also be used to add a Variant that\u2019s not yet in CIViC. "),e.k0s(),e.j41(39,"p")(40,"strong"),e.EFF(41,"Boolean Operators"),e.k0s(),e.nrm(42,"br"),e.EFF(43," MP Expressions with more than a single variant must include boolean operators - "),e.j41(44,"strong"),e.EFF(45,"AND"),e.k0s(),e.EFF(46,", "),e.j41(47,"strong"),e.EFF(48,"OR"),e.k0s(),e.EFF(49,", and "),e.j41(50,"strong"),e.EFF(51,"NOT"),e.k0s(),e.EFF(52," - indicating their relationship. For example, the expression "),e.j41(53,"strong"),e.EFF(54,"#VID12 AND #VID2220"),e.k0s(),e.EFF(55," describes a MP that includes both "),e.j41(56,"strong"),e.EFF(57,"BRAF V600E"),e.k0s(),e.EFF(58," and "),e.j41(59,"strong"),e.EFF(60,"ALK FUSION"),e.k0s(),e.EFF(61,". "),e.k0s(),e.j41(62,"p")(63,"strong"),e.EFF(64,"Parentheses"),e.k0s(),e.nrm(65,"br"),e.EFF(66," Expressions cannot have both "),e.j41(67,"strong"),e.EFF(68,"AND"),e.k0s(),e.EFF(69," and "),e.j41(70,"strong"),e.EFF(71,"OR"),e.k0s(),e.EFF(72," operators within the same expression. To construct complex MPs that require multiple operators, one must use parentheses to create embedded expressions. "),e.k0s(),e.j41(73,"p")(74,"strong"),e.EFF(75,"NOTE:"),e.k0s(),e.EFF(76," Be sure to read the help text provided along with every alert message by hovering over 'Syntax Assistance'. "),e.k0s(),e.bVm())}let ea=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-mp-editor-popover-help"]],inputs:{cvcErrorType:"cvcErrorType"},decls:11,vars:9,consts:[[1,"help-content"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(h,_){1&h&&(e.j41(0,"div",0),e.qex(1,1),e.DNE(2,Cc,3,0,"ng-container",2)(3,ms,6,0,"ng-container",2)(4,rh,15,0,"ng-container",2)(5,Ql,31,0,"ng-container",2)(6,Yc,17,0,"ng-container",2)(7,$s,6,0,"ng-container",2)(8,pd,12,0,"ng-container",2)(9,Pu,9,0,"ng-container",2)(10,sh,77,0,"ng-container",3),e.bVm(),e.k0s()),2&h&&(e.R7$(),e.Y8G("ngSwitch",_.cvcErrorType),e.R7$(),e.Y8G("ngSwitchCase","incompleteExpression"),e.R7$(),e.Y8G("ngSwitchCase","incompleteNOT"),e.R7$(),e.Y8G("ngSwitchCase","initialBoolean"),e.R7$(),e.Y8G("ngSwitchCase","invalidToken"),e.R7$(),e.Y8G("ngSwitchCase","multipleBoolean"),e.R7$(),e.Y8G("ngSwitchCase","trailingBoolean"),e.R7$(),e.Y8G("ngSwitchCase","unknownVariant"),e.R7$(),e.Y8G("ngSwitchCase","identicalVariants"))},dependencies:[z.ux,z.e1,z.fG],styles:[".help-content[_ngcontent-%COMP%]{max-width:500px}blockquote[_ngcontent-%COMP%]{margin-left:1em}"]})}return u})();const v1=["expressionEditor"],Jl=()=>[6,8],_1=u=>({active:u}),ta=(u,b)=>({$implicit:u,helpContent:b});function bc(u,b){1&u&&e.EFF(0,"Added new Molecular Profile")}function ql(u,b){if(1&u&&e.nrm(0,"cvc-mp-tag-name",38),2&u){const c=e.XpG().ngrxLet;e.Y8G("nameSegments",c)}}function Zl(u,b){1&u&&(e.j41(0,"span",39),e.EFF(1," Valid Molecular Profile expressions will be previewed here. "),e.k0s())}function Fu(u,b){if(1&u&&(e.qex(0),e.DNE(1,ql,1,1,"cvc-mp-tag-name",36)(2,Zl,2,0,"span",37),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(),e.Y8G("ngIf",c),e.R7$(),e.Y8G("ngIf",!c)}}function pa(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help")}function ro(u,b){if(1&u&&(e.j41(0,"button",41),e.nrm(1,"span",42),e.EFF(2," GETTING STARTED "),e.k0s(),e.DNE(3,pa,1,0,"ng-template",null,7,e.C5r)),2&u){const c=e.sdS(4);e.Y8G("nzPopoverContent",c)}}function eu(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",40),e.DNE(2,ro,5,1,"ng-template",null,6,e.C5r),e.bVm()),2&u){const c=b.ngIf,h=e.sdS(3);e.R7$(),e.Y8G("nzMessage",c)("nzAction",h)}}function tu(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(c);const _=e.XpG(3).ngrxLet,ne=e.XpG();return e.Njj(ne.cvcOnSelect.next(_))}),e.EFF(1," Select this MP "),e.k0s()}}function y1(u,b){if(1&u&&(e.EFF(0," Molecular Profile "),e.j41(1,"strong"),e.EFF(2),e.k0s(),e.EFF(3," found. ")),2&u){const c=e.XpG(3).ngrxLet;e.R7$(2),e.JRh(c.name)}}function fd(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",43),e.DNE(2,tu,2,0,"ng-template",null,8,e.C5r)(4,y1,4,1,"ng-template",null,9,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.sdS(5);e.R7$(),e.Y8G("nzMessage",h)("nzAction",c)}}function C1(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(c);const _=e.XpG(4);return e.Njj(_.onCreateNewMp$.next())}),e.EFF(1," Create New MP "),e.k0s()}}function md(u,b){1&u&&e.EFF(0," Molecular Profile not found, create it? ")}function gd(u,b){if(1&u&&(e.qex(0),e.nrm(1,"nz-alert",43),e.DNE(2,C1,2,0,"ng-template",null,10,e.C5r)(4,md,1,0,"ng-template",null,11,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.sdS(5);e.R7$(),e.Y8G("nzMessage",h)("nzAction",c)}}function b1(u,b){if(1&u&&(e.qex(0),e.DNE(1,fd,6,2,"ng-container",25)(2,gd,6,2,"ng-container",25),e.bVm()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",void 0!==c),e.R7$(),e.Y8G("ngIf",void 0===c)}}function Tc(u,b){if(1&u&&(e.qex(0),e.DNE(1,b1,3,2,"ng-container",25),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",!e.bMT(2,1,c.expressionError$)&&!e.bMT(3,3,c.expressionMessage$))}}function vd(u,b){if(1&u&&(e.j41(0,"button",47),e.nrm(1,"span",42),e.EFF(2," SYNTAX ASSISTANCE "),e.k0s()),2&u){const c=e.XpG().helpContent;e.Y8G("nzPopoverContent",c)}}function _d(u,b){if(1&u&&(e.nrm(0,"nz-alert",46),e.DNE(1,vd,3,1,"ng-template",null,12,e.C5r)),2&u){const c=b.$implicit,h=e.sdS(2);e.Y8G("nzMessage",c.errorMessage)("nzAction",h)}}function yd(u,b){1&u&&e.eu8(0)}function Cd(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",52)}function bd(u,b){if(1&u&&(e.qex(0),e.DNE(1,yd,1,0,"ng-container",51)(2,Cd,1,0,"ng-template",null,13,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,ta,h,c))}}function kn(u,b){1&u&&e.eu8(0)}function Co(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",53)}function T1(u,b){if(1&u&&(e.qex(0),e.DNE(1,kn,1,0,"ng-container",51)(2,Co,1,0,"ng-template",null,14,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,ta,h,c))}}function E1(u,b){1&u&&e.eu8(0)}function Uo(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",54)}function Ec(u,b){if(1&u&&(e.qex(0),e.DNE(1,E1,1,0,"ng-container",51)(2,Uo,1,0,"ng-template",null,15,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,ta,h,c))}}function mi(u,b){1&u&&e.eu8(0)}function rr(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",55)}function zc(u,b){if(1&u&&(e.qex(0),e.DNE(1,mi,1,0,"ng-container",51)(2,rr,1,0,"ng-template",null,16,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,ta,h,c))}}function Wc(u,b){1&u&&e.eu8(0)}function fl(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",56)}function Au(u,b){if(1&u&&(e.qex(0),e.DNE(1,Wc,1,0,"ng-container",51)(2,fl,1,0,"ng-template",null,17,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,ta,h,c))}}function ml(u,b){1&u&&e.eu8(0)}function Ea(u,b){1&u&&e.nrm(0,"cvc-mp-editor-popover-help",57)}function z1(u,b){if(1&u&&(e.qex(0),e.DNE(1,ml,1,0,"ng-container",51)(2,Ea,1,0,"ng-template",null,18,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,ta,h,c))}}function Ru(u,b){1&u&&e.eu8(0)}function bs(u,b){1&u&&(e.qex(0),e.nrm(1,"cvc-mp-editor-popover-help",58),e.bVm())}function za(u,b){1&u&&(e.qex(0),e.nrm(1,"cvc-mp-editor-popover-help",59),e.bVm())}function Nu(u,b){if(1&u&&e.DNE(0,bs,2,0,"ng-container",25)(1,za,2,0,"ng-container",25),2&u){const c=e.XpG(2).ngIf;e.Y8G("ngIf",c.errorMessage.split(" ").includes("multiple")),e.R7$(),e.Y8G("ngIf",c.errorMessage.split(" ").includes("found."))}}function fa(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ru,1,0,"ng-container",51)(2,Nu,2,2,"ng-template",null,19,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG().ngIf;e.XpG();const _=e.sdS(14);e.R7$(),e.Y8G("ngTemplateOutlet",_)("ngTemplateOutletContext",e.l_i(2,ta,h,c))}}function ma(u,b){if(1&u&&(e.qex(0),e.j41(1,"pre"),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.bVm()),2&u){const c=e.XpG().ngIf;e.R7$(2),e.SpI(" ",e.bMT(3,1,c),"\n ")}}function gl(u,b){if(1&u&&(e.qex(0)(1,48),e.DNE(2,bd,4,5,"ng-container",49)(3,T1,4,5,"ng-container",49)(4,Ec,4,5,"ng-container",49)(5,zc,4,5,"ng-container",49)(6,Au,4,5,"ng-container",49)(7,z1,4,5,"ng-container",49)(8,fa,4,5,"ng-container",49)(9,ma,4,3,"ng-container",50),e.bVm()()),2&u){const c=b.ngIf;e.R7$(),e.Y8G("ngSwitch",c.errorType),e.R7$(),e.Y8G("ngSwitchCase","invalidToken"),e.R7$(),e.Y8G("ngSwitchCase","trailingBoolean"),e.R7$(),e.Y8G("ngSwitchCase","initialBoolean"),e.R7$(),e.Y8G("ngSwitchCase","multipleBoolean"),e.R7$(),e.Y8G("ngSwitchCase","incompleteExpression"),e.R7$(),e.Y8G("ngSwitchCase","incompleteNOT"),e.R7$(),e.Y8G("ngSwitchCase","queryError")}}function M1(u,b){1&u&&(e.j41(0,"span",39),e.EFF(1," Append: "),e.k0s())}function no(u,b){if(1&u&&(e.j41(0,"button",60)(1,"strong"),e.EFF(2,"Variant"),e.k0s()()),2&u){e.XpG();const c=e.sdS(37);e.Y8G("nzPopoverContent",c)}}function D1(u,b){if(1&u&&(e.j41(0,"button",61)(1,"strong"),e.EFF(2,"NOT Variant"),e.k0s()()),2&u){e.XpG();const c=e.sdS(39);e.Y8G("nzPopoverContent",c)}}function Mc(u,b){1&u&&(e.j41(0,"span",62),e.EFF(1," | "),e.k0s())}function nu(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onAppendInput$.next("AND"))}),e.j41(1,"strong"),e.EFF(2,"AND"),e.k0s()()}}function Ja(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onAppendInput$.next("OR"))}),e.j41(1,"strong"),e.EFF(2,"OR"),e.k0s()()}}function Kc(u,b){1&u&&(e.j41(0,"span",62),e.EFF(1," | "),e.k0s())}function ws(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onAppendInput$.next("("))}),e.j41(1,"strong"),e.EFF(2,"("),e.k0s()()}}function S1(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",63),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onAppendInput$.next(")"))}),e.j41(1,"strong"),e.EFF(2,")"),e.k0s()()}}function ku(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",64)(1,"nz-row",21)(2,"nz-col",22)(3,"p",65),e.EFF(4," Select a Gene and Variant to append its #VID. "),e.k0s()(),e.j41(5,"nz-col",22)(6,"cvc-mp-finder",66),e.bIt("cvcOnVariantSelect",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onVariantSelect$.next({variant:_,prependNot:!1}))}),e.k0s()()()()}2&u&&(e.R7$(),e.Y8G("nzGutter",e.lJ4(1,Jl)))}function iu(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",64)(1,"nz-row",21)(2,"nz-col",22)(3,"p",65),e.EFF(4," Select a Gene and Variant to append its #VID, prepended with NOT boolean. "),e.k0s()(),e.j41(5,"nz-col",22)(6,"cvc-mp-finder",66),e.bIt("cvcOnVariantSelect",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onVariantSelect$.next({variant:_,prependNot:!0}))}),e.k0s()()()()}2&u&&(e.R7$(),e.Y8G("nzGutter",e.lJ4(1,Jl)))}function vl(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e.nrm(3,"cvc-entity-tag",70),e.k0s(),e.j41(4,"nz-list-item-meta-description"),e.EFF(5),e.k0s()(),e.j41(6,"ul",71)(7,"nz-list-item-action")(8,"button",72),e.bIt("click",function(){const _=e.eBV(c).$implicit,ne=e.XpG(2);return e.Njj(ne.onSelectExample$.next(_))}),e.EFF(9," Select "),e.k0s()()()()}if(2&u){const c=b.$implicit;e.R7$(3),e.Y8G("cvcLinkableEntity",c.mp),e.R7$(2),e.SpI(" ",c.description," ")}}function mr(u,b){if(1&u&&(e.j41(0,"div",67)(1,"nz-list",68),e.DNE(2,vl,10,2,"nz-list-item",69),e.k0s()()),2&u){const c=e.XpG();e.R7$(2),e.Y8G("ngForOf",c.exampleExpressions)}}let Ar=class km{constructor(b,c,h,_,ne){this.previewMpGql=b,this.createMolecularProfileGql=c,this.mpEditorPrepopulate=h,this.networkErrorService=_,this.viewerService=ne,this.cvcOnSelect=new e.bkB,this.expressionMessages={initial:"Use the editor below to construct a molecular profile."},this.exampleExpressions=[{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND EGFR L858R AND EGFR T790M"},expression:"#VID12 AND #VID33 AND #VID34",description:"BRAF V600E, EGFR L858R, and EGFR T790M must all be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND NOT EGFR L858R"},expression:"#VID12 AND NOT #VID33",description:"BRAF V600E must be observed and EGFR L858R must be absent."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E OR EGFR L858R OR EGFR T790M"},expression:"#VID12 OR #VID33 OR #VID34",description:"Either BRAF V600E, or EGFR L858R, or EGFR T790M must be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"BRAF V600E AND (EGFR L858R OR EGFR T790M)"},expression:"#VID12 AND (#VID33 OR #VID34)",description:"BRAF V600E must be observed and either EGFR L858R or EGFR T790M must be observed."},{mp:{__typename:"MolecularProfile",id:9999,name:"NOT KIT D816V"},expression:"NOT #VID4353",description:"KIT D816V must be absent."}],this.createMolecularProfileMutator=new fe.E(this.networkErrorService),this.onInputChange$=new vn.t(void 0),this.onAppendInput$=new N.B,this.onVariantSelect$=new N.B,this.onCreateNewMp$=new N.B,this.onSelectExample$=new N.B,this.inputValue$=new vn.t(""),this.expressionError$=new vn.t(void 0),this.expressionHelp$=new vn.t(void 0),this.expressionMessage$=new vn.t(this.expressionMessages.initial),this.expressionSegment$=new N.B,this.existingMp$=new N.B,this.viewer$=this.viewerService.viewer$,this.mostRecentOrg$=this.viewer$.pipe((0,Si.E)("mostRecentOrg"))}ngAfterViewInit(){this.mostRecentOrg$.pipe((0,gn.s)(this)).subscribe(b=>{this.mostRecentOrgId=b?.id}),this.onInputChange$.pipe((0,Yr.B)(250),(0,An.M)(b=>{b||this.expressionSegment$.next(void 0)}),(0,Jt.p)(zo.kP),(0,An.M)(b=>{0===b.length&&(this.expressionMessage$.next(this.expressionMessages.initial),this.expressionError$.next(void 0))}),(0,Jt.p)(b=>b.length>0),(0,Jt.p)(b=>" "!==b[b.length-1]),(0,ve.T)(b=>{let c=Wl(b);return"errorMessage"in c?c:this.previewQueryRef.refetch({mpStructure:c})}),(0,gn.s)(this)).subscribe(b=>{if(this.isMpParseError(b)){const c=b;this.expressionMessage$.next(void 0),this.expressionError$.next(c),this.expressionSegment$.next(void 0)}else b.then(({data:h,errors:_})=>{if(_)this.expressionMessage$.next(void 0),this.expressionError$.next({errorType:"queryError",errorMessage:_.map(ne=>ne.message).join("\n")}),this.expressionSegment$.next(void 0);else{this.expressionSegment$.next(h.previewMolecularProfileName.segments),this.expressionMessage$.next(void 0),this.expressionError$.next(void 0);this.existingMp$.next(h.previewMolecularProfileName.existingMolecularProfile||void 0)}})}),this.onAppendInput$.pipe((0,gn.s)(this)).subscribe(b=>{if(this.expressionEditor){const c=this.expressionEditor.nativeElement,_=`${c.value}${/\s+$/.test(b)?b:" "+b}`;c.value=_,this.inputValue$.next(_),this.onInputChange$.next(_)}}),this.onSelectExample$.pipe((0,gn.s)(this)).subscribe(b=>{this.expressionEditor&&(this.expressionEditor.nativeElement.value=b.expression,this.inputValue$.next(b.expression),this.onInputChange$.next(b.expression))}),this.onVariantSelect$.pipe((0,qi.E)(this.onInputChange$),(0,ve.T)(([b,c])=>{const h=`${b.prependNot?"NOT ":""}#VID${b.variant.id}`;return c&&0!=c.trim().length?`${c.trim()} ${h}`:h}),(0,gn.s)(this)).subscribe(b=>{this.inputValue$.next(b),this.onInputChange$.next(b)}),this.previewQueryRef=this.previewMpGql.watch({}),this.previewMpName$=this.previewQueryRef.valueChanges.pipe((0,Si.E)("data","previewMolecularProfileName"),(0,Jt.p)(zo.kP),(0,ve.T)(b=>b.segments),(0,gn.s)(this)),this.previewMpAlreadyExists$=this.previewQueryRef.valueChanges.pipe((0,Si.E)("data","previewMolecularProfileName"),(0,Jt.p)(zo.kP),(0,ve.T)(b=>b.existingMolecularProfile),(0,gn.s)(this)),this.previewDeprecatedVariants$=this.previewQueryRef.valueChanges.pipe((0,Si.E)("data","previewMolecularProfileName"),(0,Jt.p)(zo.kP),(0,ve.T)(b=>b.deprecatedVariants),(0,gn.s)(this)),this.onCreateNewMp$.pipe((0,qi.E)(this.onInputChange$),(0,gn.s)(this)).subscribe(([b,c])=>{if(!c||0===c.length)return;let h=Wl(c);"errorMessage"in h||(this.state=this.createMolecularProfileMutator.mutate(this.createMolecularProfileGql,{mpStructure:h,organizationId:this.mostRecentOrgId},{},_=>{setTimeout(()=>{_.createMolecularProfile&&this.cvcOnSelect.next(_.createMolecularProfile.molecularProfile)},1e3)}))})}isMpParseError(b){return void 0!==b.errorMessage}prepopulateMp(b){if(!b)return this.expressionSegment$.next(void 0),this.expressionMessage$.next(this.expressionMessages.initial),void this.inputValue$.next("");Zs(this.mpEditorPrepopulate.fetch({mpId:b},{fetchPolicy:"cache-first"})).then(({data:c})=>{if(!c?.molecularProfile?.id)return void console.error(`MpExpressionEditor could not fetch MolecularProfile:${b} to prepolate editor fields.`);const h=c.molecularProfile.rawName.replace(/#GID(\d+)/g,"").trim();this.inputValue$.next(h),this.onInputChange$.next(h)})}ngOnChanges(b){b.cvcPrepopulateWithId&&this.prepopulateMp(b.cvcPrepopulateWithId.currentValue)}static#e=this.\u0275fac=function(c){return new(c||km)(e.rXU(Hn.xKZ),e.rXU(Hn.Avr),e.rXU(Hn.uXu),e.rXU(rt.N),e.rXU(Kl.q))};static#t=this.\u0275cmp=e.VBU({type:km,selectors:[["cvc-mp-expression-editor"]],viewQuery:function(c,h){if(1&c&&e.GBs(v1,5),2&c){let _;e.mGM(_=e.lsd())&&(h.expressionEditor=_.first)}},inputs:{cvcPrepopulateWithId:"cvcPrepopulateWithId"},outputs:{cvcOnSelect:"cvcOnSelect"},features:[e.OA$],decls:42,vars:23,consts:[["success",""],["errorAlert",""],["expressionEditor",""],["appendVariant",""],["appendNotVariant",""],["expressionExamples",""],["messageAction",""],["gettingStartedHelp",""],["selectAction",""],["foundMessage",""],["createAction",""],["createMessage",""],["errorAction",""],["invalidTokenHelp",""],["trailingBooleanHelp",""],["initialBooleanHelp",""],["multipleBooleanHelp",""],["incompleteExpressionHelp",""],["incompleteNOTHelp",""],["queryErrorHelp",""],["entityType","Molecular Profile",3,"mutationState","successMessage"],[3,"nzGutter"],["nzSpan","24"],[1,"expression-preview",3,"ngClass"],[4,"ngrxLet"],[4,"ngIf"],["nz-input","","rows","1","placeholder","Enter or edit a Molecular Expression here.",2,"width","100%",3,"ngModelChange","ngModel"],[1,"btn-row"],["nzFlex","80px"],["nzBlock","","nz-button","","nzType","primary","nzShape","round","nzSize","small","nz-popover","","nzPopoverTitle","Select a Profile to view its expression","nzPopoverTrigger","click","nzPopoverPlacement","bottomLeft",3,"nzPopoverContent"],["nzFlex","auto",2,"text-align","right"],["nz-typography","","nzType","secondary",4,"nzSpaceItem"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent",4,"nzSpaceItem"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant NOT #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent",4,"nzSpaceItem"],["class","btn-divider",4,"nzSpaceItem"],["type","button","nz-button","","nzType","primary","nzSize","small","nzShape","round",3,"click",4,"nzSpaceItem"],[3,"nameSegments",4,"ngIf"],["nz-typography","","nzType","secondary",4,"ngIf"],[3,"nameSegments"],["nz-typography","","nzType","secondary"],["nzType","info","nzShowIcon","",3,"nzMessage","nzAction"],["type","button","nz-button","","nzType","dashed","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],["nz-icon","","nzType","question-circle","nzTheme","fill"],["nzType","success","nzShowIcon","",3,"nzMessage","nzAction"],["type","button","nz-button","","nzType","primary","nzSize","small","nzBlock","",3,"click"],["type","button","nz-button","","nzSize","small","nzType","primary","nzBlock","",3,"click"],["nzType","error","nzShowIcon","",3,"nzMessage","nzAction"],["nz-button","","nzDanger","","nzType","text","nzSize","small","nzShape","round","nz-popover","","nzPopoverTrigger","hover",3,"nzPopoverContent"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["cvcErrorType","invalidToken"],["cvcErrorType","trailingBoolean"],["cvcErrorType","initialBoolean"],["cvcErrorType","multipleBoolean"],["cvcErrorType","incompleteExpression"],["cvcErrorType","incompleteNOT"],["cvcErrorType","identicalVariants"],["cvcErrorType","unknownVariant"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent"],["type","button","nz-button","","nz-popover","","nzPopoverTitle","Append Variant NOT #VID","nzPopoverTrigger","click","nzSize","small","nzShape","round","nzType","primary","nzPopoverPlacement","bottom",3,"nzPopoverContent"],[1,"btn-divider"],["type","button","nz-button","","nzType","primary","nzSize","small","nzShape","round",3,"click"],[1,"append-popover-contents"],["nz-typography","","nzType","secondary",2,"margin","0","padding-bottom","2px"],[3,"cvcOnVariantSelect"],[2,"min-width","525px","margin","-8px -12px"],["nzSize","small","nzItemLayout","horizontal"],[4,"ngFor","ngForOf"],[3,"cvcLinkableEntity"],["nz-list-item-actions",""],["type","button","nz-button","","nzType","primary","nzSize","small",3,"click"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"cvc-form-submission-status-display",20),e.DNE(1,bc,1,0,"ng-template",null,0,e.C5r),e.j41(3,"nz-row",21)(4,"nz-col",22)(5,"div",23),e.nI1(6,"ngrxPush"),e.DNE(7,Fu,3,2,"ng-container",24),e.nI1(8,"ngrxPush"),e.k0s()(),e.j41(9,"nz-col",22),e.DNE(10,eu,4,2,"ng-container",25),e.nI1(11,"ngrxPush"),e.DNE(12,Tc,4,5,"ng-container",24)(13,_d,3,2,"ng-template",null,1,e.C5r)(15,gl,10,8,"ng-container",25),e.nI1(16,"ngrxPush"),e.k0s(),e.j41(17,"nz-col",22)(18,"textarea",26,2),e.nI1(20,"ngrxPush"),e.bIt("ngModelChange",function(bt){return e.eBV(_),e.Njj(h.onInputChange$.next(bt))}),e.k0s()()(),e.j41(21,"nz-row",27)(22,"nz-col",28)(23,"button",29),e.EFF(24," Examples "),e.k0s()(),e.j41(25,"nz-col",30)(26,"nz-space"),e.DNE(27,M1,2,0,"span",31)(28,no,3,1,"button",32)(29,D1,3,1,"button",33)(30,Mc,2,0,"span",34)(31,nu,3,0,"button",35)(32,Ja,3,0,"button",35)(33,Kc,2,0,"span",34)(34,ws,3,0,"button",35)(35,S1,3,0,"button",35),e.k0s()(),e.DNE(36,ku,7,2,"ng-template",null,3,e.C5r)(38,iu,7,2,"ng-template",null,4,e.C5r)(40,mr,3,1,"ng-template",null,5,e.C5r),e.k0s()()}if(2&c){const _=e.sdS(2),ne=e.sdS(41);e.Y8G("mutationState",h.state)("successMessage",_),e.R7$(3),e.Y8G("nzGutter",e.lJ4(20,Jl)),e.R7$(2),e.Y8G("ngClass",e.eq3(21,_1,void 0!==e.bMT(6,10,h.expressionSegment$))),e.R7$(2),e.Y8G("ngrxLet",e.bMT(8,12,h.expressionSegment$)),e.R7$(3),e.Y8G("ngIf",e.bMT(11,14,h.expressionMessage$)),e.R7$(2),e.Y8G("ngrxLet",h.existingMp$),e.R7$(3),e.Y8G("ngIf",e.bMT(16,16,h.expressionError$)),e.R7$(3),e.Y8G("ngModel",e.bMT(20,18,h.inputValue$)),e.R7$(5),e.Y8G("nzPopoverContent",ne)}},dependencies:[z.YU,z.Sq,z.bT,z.T3,z.ux,z.e1,z.fG,t.me,t.BC,t.vS,Pi.Nj,wn.Y,Fn.aO,bi.c,Do.p,te.Dn,P.Sy,R.Uq,R.e,dn.U5,dn.Dq,it.Di,xi.L_,fs.eE,fs.lQ,fs.qx,fs.mf,fs.YU,fs.MV,fs.Tc,Ue.G,Xl.G,ln.b,pl,ea,z.TG,Pi.L9],styles:["[_nghost-%COMP%]{display:block;background-color:#f6f6f6;border:1px solid #dedede;border-radius:4px;padding:8px}.expression-preview[_ngcontent-%COMP%]{width:100%;padding:8px;border:1px solid #dedede;border-radius:4px}.expression-preview.active[_ngcontent-%COMP%]{background-color:#fff}.append-popover-contents[_ngcontent-%COMP%]{min-width:450px}.help-content[_ngcontent-%COMP%]{max-width:500px}.btn-row[_ngcontent-%COMP%]{margin-top:10px;flex-wrap:nowrap}.btn-row[_ngcontent-%COMP%] .btn-divider[_ngcontent-%COMP%]{color:#aaa}"],changeDetection:0})};Ar=(0,Mi.Cg)([(0,gn.d)()],Ar);const Dc=["optionTemplates"],O1=()=>[8,12],Xr=(u,b)=>({show:u,hide:b});function Sc(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-mp-finder",13),e.bIt("cvcOnSelect",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onMpSelect$.next(_))}),e.k0s()}}function Zo(u,b){1&u&&(e.j41(0,"div",14),e.EFF(1," \xa0 "),e.j41(2,"span",15)(3,"i"),e.EFF(4,"Select or create a Molecular Profile with the expression editor "),e.k0s()()())}function w1(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",16)(1,"div",17)(2,"cvc-entity-select",18),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onSearch$.next(_))})("cvcOnModelChange",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.props.change&&ne.props.change(ne.field,_))}),e.k0s()()()}if(2&u){const c=e.XpG(2),h=e.sdS(13);e.R7$(2),e.Y8G("cvcSelectMode",c.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",h)("cvcFormControl",c.formControl)("cvcFormlyAttributes",c.field)("cvcEntityName",c.props.entityName)("cvcPlaceholder",c.props.placeholder)("cvcResults",e.bMT(3,15,c.result$))("cvcDisabled",c.props.disabled)("cvcAllowClear",!1)("cvcOptions",e.bMT(4,17,c.selectOption$))("cvcShowError",c.showError)("cvcLoading",e.bMT(5,19,c.isLoading$))("cvcBorderless",!0)("cvcSuffixIcon",null)("cvcShowArrow",!1)}}function I1(u,b){if(1&u&&(e.qex(0),e.DNE(1,Sc,1,0,"cvc-mp-finder",10)(2,Zo,5,0,"div",11)(3,w1,6,21,"div",12),e.bVm()),2&u){const c=b.ngrxLet,h=e.XpG();e.R7$(),e.Y8G("ngIf",c.showFinder&&!h.editorOpen),e.R7$(),e.Y8G("ngIf",h.editorOpen),e.R7$(),e.Y8G("ngIf",c.showSelect&&!h.editorOpen)}}function qa(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",19)(1,"cvc-mp-expression-editor",20),e.nI1(2,"ngrxPush"),e.bIt("cvcOnSelect",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onMpSelect$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("cvcPrepopulateWithId",e.bMT(2,1,c.onMpId$))}}function Vu(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",25),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,c.molecularProfileAliases.join(", "),h),e.npT)}}function Oc(u,b){1&u&&e.EFF(0,"--")}function x1(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",22),e.j41(1,"span",23),e.EFF(2," Aliases: "),e.DNE(3,Vu,4,4,"ng-container",24)(4,Oc,1,0,"ng-template",null,2,e.C5r),e.k0s()),2&u){const c=e.sdS(5),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(3),e.Y8G("ngIf",h.molecularProfileAliases.length>0)("ngIfElse",c)}}function Xc(u,b){1&u&&(e.qex(0),e.DNE(1,x1,6,5,"ng-template",null,1,e.C5r),e.bVm())}function Hs(u,b){if(1&u&&(e.qex(0),e.DNE(1,Xc,3,0,"ng-container",21),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Lu(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",26)(1,"cvc-entity-tag",27),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","MolecularProfile:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const _l=uo(Ei(),Wo());let xa=(()=>{class u extends _l{constructor(c,h,_,ne){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.apollo=ne,this.editorOpen=!1,this.defaultOptions={props:{label:"Molecular Profile",placeholder:"Search Molecular Profiles",tooltip:"A single variant (Simple Molecular Profile) or a combination of variants (Complex Molecular Profile) relevant to the curated assertion.",isMultiSelect:!1,description:"Select a Feature and Variant to specify a simple Molecular Profile.",entityName:{singular:"Molecular Profile",plural:"Molecular Profiles"},minSearchStrLength:1}},this.onMpSelect$=new vn.t(void 0),this.onMpId$=new Ki.m,this.onShowExpClick$=new N.B,this.showExp$=this.onShowExpClick$.pipe((0,Ws.S)((bt,un)=>!bt,!1),(0,An.M)(bt=>this.editorOpen=bt)),this.selectDisplay$=new vn.t({showFinder:!0,showSelect:!1})}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.initialDescription=this.props.description,this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{const h=void 0!==c;this.selectDisplay$.next({showFinder:!h,showSelect:h}),this.onMpId$.next(c),this.props.description=c?void 0:this.initialDescription}),this.onMpSelect$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.selectOption$.next([{label:c.name,value:c.id}]),this.editorOpen&&this.onShowExpClick$.next(),this.cdr.detectChanges(),this.field.formControl.setValue(c.id),this.field.formControl.markAsTouched()):this.selectDisplay$.next({showFinder:!0,showSelect:!1})})}configureStateConnections(){}getTypeaheadVarsFn(c,h){return{name:c,geneId:h}}getTypeaheadResultsFn(c){return c.data.molecularProfiles.nodes}getTagQueryVarsFn(c){return{molecularProfileId:c}}getTagQueryResultsFn(c){return c.data.molecularProfile}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.nRJ),e.rXU(Hn.OLK),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["ng-component"]],viewQuery:function(h,_){if(1&h&&e.GBs(Dc,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:14,vars:16,consts:[["selectedTemplate",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","auto"],[4,"ngrxLet"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","","nz-tooltip","","nzTooltipTitle","Add/Edit Complex MP Expression",1,"expression-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24","class","editor-drawer",4,"ngIf"],[3,"cvcOnSelect",4,"ngIf"],["class","editor-message",4,"ngIf"],["class","select-container",4,"ngIf"],[3,"cvcOnSelect"],[1,"editor-message"],["nz-typography","","nzEllipsis","","nzType","secondary"],[1,"select-container"],[1,"limit-select-width"],[3,"cvcOnSearch","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcAllowClear","cvcOptions","cvcShowError","cvcLoading","cvcBorderless","cvcSuffixIcon","cvcShowArrow"],["nzSpan","24",1,"editor-drawer"],[3,"cvcOnSelect","cvcPrepopulateWithId"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"nz-row",3)(1,"nz-col",4),e.DNE(2,I1,4,3,"ng-container",5),e.k0s(),e.j41(3,"nz-col",6)(4,"button",7),e.bIt("click",function(){return e.eBV(ne),e.Njj(_.onShowExpClick$.next())}),e.nrm(5,"span",8),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.EFF(8,"Editor "),e.k0s()(),e.DNE(9,qa,3,3,"nz-col",9),e.nI1(10,"ngrxPush"),e.k0s(),e.DNE(11,Hs,3,3,"ng-container",5)(12,Lu,2,3,"ng-template",null,0,e.C5r)}2&h&&(e.Y8G("nzGutter",e.lJ4(12,O1)),e.R7$(2),e.Y8G("ngrxLet",_.selectDisplay$),e.R7$(3),e.Y8G("ngClass",e.l_i(13,Xr,e.bMT(6,6,_.showExp$),!e.bMT(7,8,_.showExp$)))("nzType","caret-right"),e.R7$(4),e.Y8G("ngIf",e.bMT(10,10,_.showExp$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$))},dependencies:[z.YU,z.Sq,z.bT,Pi.Nj,Fn.aO,bi.c,Do.p,te.Dn,R.Uq,R.e,it.Di,En.LH,nn,ln.b,Ar,pl,Pi.L9,hs.M],styles:["form[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%], .expression-button[_ngcontent-%COMP%] span.hide[_ngcontent-%COMP%]{transform:rotate(0);transition:transform .2s linear}form[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%], .expression-button[_ngcontent-%COMP%] span.show[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .2s linear}.editor-message[_ngcontent-%COMP%]{padding:3px;background-color:#f5f5f5;cursor:default;border-radius:2px}.select-container[_ngcontent-%COMP%]{padding:0;background-color:#fff;cursor:default;border-radius:2px;border:1px solid #d9d9d9}.select-container[_ngcontent-%COMP%] .limit-select-width[_ngcontent-%COMP%]{display:inline-block;margin-top:-1px;margin-bottom:-1px}"],data:{animation:[jl.U1,jl.LD]},changeDetection:0})}return u})();const yl={types:[{name:"molecular-profile-select",wrappers:["form-field"],component:xa},{name:"molecular-profile-multi-select",wrappers:["form-field"],component:xa,defaultOptions:{props:{label:"Molecular Profiles",isMultiSelect:!0}}}]};let Cl=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.YN,t.X1,m.qy.forChild(yl),wn.$,Fn.Zw,ct.DH,hi.U6,te.Y3,P.j,R.f3,dn.pc,j.PQ,dt.jl,it.kT,En.Qt,xi.MC,dn.pc,_t.IJ,fs.rD,Fe.P,hd.B,Pn,Cn,_e.i,Ht._]})}return u})();const Bu=["optionTemplates"];function Pa(u,b){if(1&u&&(e.j41(0,"nz-tag",5),e.EFF(1),e.k0s()),2&u){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.name)}}function Td(u,b){1&u&&(e.qex(0),e.DNE(1,Pa,2,1,"ng-template",null,1,e.C5r),e.bVm())}function Qc(u,b){if(1&u&&(e.qex(0),e.DNE(1,Td,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Fa(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",6)(1,"cvc-entity-tag",7),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcDisableLink",!0)("cvcCacheId","NccnGuideline:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")("cvcShowIcon",!1)}}const Ed=uo(Ei(),Wo());let bl=(()=>{class u extends Ed{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"NCCN Guideline",plural:"NCCN Guidelines"},isMultiSelect:!1,requireType:!1,tooltip:"If applicable, please provide cancer (e.g., Breast Cancer) for the appropriate NCCN guideline.",placeholder:"Search NCCN Guidelines"}},this.placeholder$=new vn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectComponent:this.selectComponent})}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.nccnGuidelinesTypeahead}getTagQueryResultsFn(c){return c.data.nccnGuideline}getTagQueryVarsFn(c){return{id:c}}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.qKP),e.rXU(Hn.ZVN),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-nccn-guideline-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Bu,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:8,vars:20,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],["nz-tooltip",""],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcDisableLink","cvcCacheId","cvcContext","cvcMode","cvcShowIcon"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s(),e.DNE(5,Qc,3,3,"ng-container",3)(6,Fa,2,5,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(7);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",!1)("cvcLoading",e.bMT(4,18,_.isLoading$)),e.R7$(5),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.Sq,Pi.Nj,En.LH,ni.s,nn,ln.b,Pi.L9],changeDetection:0})}return u})();const $u={types:[{name:"nccn-guideline-select",wrappers:["form-field"],component:bl,defaultOptions:{props:{label:"NCCN Guideline"}}},{name:"nccn-guideline-multi-select",wrappers:["form-field"],component:bl,defaultOptions:{props:{isMultiSelect:!0,label:"NCCN Guideline(s)"}}}]};let zd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild($u),wn.$,Fn.Zw,ct.DH,xi.MC,hi.U6,te.Y3,P.j,R.f3,En.Qt,dn.pc,j.PQ,dt.jl,it.kT,ni.T,Pn,Cn,_e.i,Ht._,ui]})}return u})();const Md=uo(Ei()),ah={types:[{name:"nccn-guideline-version-input",component:(()=>{class u extends Md{constructor(c){super(),this.cdr=c,this.defaultDescription="Please enter the version of the NCCN guideline you're referencing in the format Version.Year",this.defaultOptions={validators:{nccnVersionNumber:{expression:h=>{if(h.value){if(/^\d{1,2}\.\d{4}$/.test(h.value)){let _=+h.value.split(".")[1];return _>=2e3&&_<=(new Date).getFullYear()+1}return!1}return!0},message:(h,_)=>`"${_.formControl?.value}" does not fit the format Version.Year`}},props:{label:"NCCN Guideline Version",extraType:"description",description:this.defaultDescription}}}ngAfterViewInit(){this.configureBaseField(),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,Jt.p)(c=>c),(0,Es.s)(1),(0,gn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.state?.fields.nccnGuidelineId$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.props.disabled=!1,this.props.required=!0,this.props.extraType="description",this.props.description=this.defaultDescription):(this.props.disabled=!0,this.props.required=!1,this.props.extraType="prompt",this.props.description="NCCN Guideline Version is only required when NCCN Guideline is specified.",this.formControl.setValue(void 0))})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-nccn-guideline-version-input"]],features:[e.Vt3],decls:1,vars:2,consts:[["nz-input","","placeholder","ex: 1.2023",3,"formControl","formlyAttributes"]],template:function(h,_){1&h&&e.nrm(0,"input",0),2&h&&e.Y8G("formControl",_.formControl)("formlyAttributes",_.field)},dependencies:[t.me,t.BC,t.l_,m.ch,P.Sy],encapsulation:2,changeDetection:0})}return u})(),wrappers:["form-field"]}]};let Hu=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(ah),P.j,Pn]})}return u})();var na=a(9438);let wc=class Vm{constructor(b){this.el=b,this.domChange=new e.bkB,this.changes=new MutationObserver(c=>{(0,so.H)(c).pipe((0,ve.T)(h=>{const _=h.target;return"class"===h.attributeName?{type:"class",change:_.classList.value,key:`${h.attributeName}:${_.classList.value}`}:"disabled"===h.attributeName?{type:"disabled",change:_.disabled,key:`${h.attributeName}:${_.disabled}`}:"hidden"===h.attributeName?{type:"hidden",change:_.hidden,key:`${h.attributeName}:${_.hidden}`}:{type:h.attributeName,change:"unknown change type",key:`${h.attributeName}:unknown-change-type`}}),Y("key"),(0,gn.s)(this)).subscribe(h=>{this.domChange.emit(h)})}),this.changes.observe(this.el.nativeElement,{attributeFilter:["class","disabled","hidden"],attributes:!0,childList:!1,subtree:!1})}ngAfterViewInit(){this.initialClass=this.el.nativeElement.classList.value}ngOnDestroy(){this.changes.disconnect()}static#e=this.\u0275fac=function(c){return new(c||Vm)(e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:Vm,selectors:[["button","cvcOrgSubmitButton",""]],outputs:{domChange:"domChange"}})};wc=(0,Mi.Cg)([(0,gn.d)()],wc);const Za=(u,b,c)=>({"btn-right":u,"btn-left":b,"btn-center":c});function P1(u,b){if(1&u&&(e.j41(0,"button",3),e.EFF(1),e.k0s()),2&u){const c=b.ngrxLet,h=e.XpG();e.Y8G("disabled",!h.form.valid)("nzTooltipTrigger",c?"hover":null)("nzTooltipTitle","For "+(null==c?null:c.name)),e.R7$(),e.SpI(" ",h.props.submitLabel," ")}}let ec=class Lm extends m.PU{constructor(b,c,h){super(),this.viewerService=b,this.cdr=c,this.apollo=h,this.menuSelection$=new N.B,this.baseButtonClass="org-dropdown-btn",this.defaultOptions={props:{submitLabel:"Submit"}},this.viewer$=this.viewerService.viewer$,this.organizations$=this.viewer$.pipe((0,Si.E)("organizations")),this.mostRecentOrg$=this.viewer$.pipe((0,Si.E)("mostRecentOrg")),this.isDisabled$=new N.B,this.isHidden$=new N.B,this.buttonClass$=new vn.t(this.baseButtonClass),this.subscriptions=[]}ngOnInit(){this.menuSelection$.pipe((0,qi.E)(this.viewer$)).subscribe(([_,ne])=>{const bt={id:`User:${ne.id}`,fragment:is.J1` + fragment UserMostRecentOrgId on User { + mostRecentOrganizationId + } + `,data:{mostRecentOrganizationId:_}};this.apollo.client.writeFragment(bt)}),this.formUpdate$=new vn.t(this.form.status);const b=this.form.statusChanges.subscribe(_=>this.formUpdate$.next(_)),c=this.formUpdate$.subscribe(_=>this.cdr.detectChanges()),h=this.mostRecentOrg$.pipe((0,Si.E)("id"),(0,Jt.p)(zo.kP)).subscribe(_=>{this.formControl.setValue(_)});this.subscriptions=this.subscriptions.concat([b,c,h])}ngAfterViewInit(){if(this.button&&this.button.domChange){const b=this.button.domChange.subscribe(c=>{"class"===c.type&&"string"==typeof c.change?this.buttonClass$.next(`${this.baseButtonClass} ${c.change}`):"disabled"===c.type&&"boolean"==typeof c.change?this.isDisabled$.next(c.change):"hidden"===c.type&&"boolean"==typeof c.change&&this.isHidden$.next(c.change)});this.subscriptions.push(b)}}static#e=this.\u0275fac=function(c){return new(c||Lm)(e.rXU(Kl.q),e.rXU(e.gRc),e.rXU(is.Ic))};static#t=this.\u0275cmp=e.VBU({type:Lm,selectors:[["cvc-org-submit-button"]],viewQuery:function(c,h){if(1&c&&e.GBs(wc,5),2&c){let _;e.mGM(_=e.lsd())&&(h.button=_.first)}},features:[e.Vt3],decls:3,vars:8,consts:[["type","hidden",3,"formControl","formlyAttributes"],[1,"btn-aligner",3,"ngClass"],["cvcOrgSubmitButton","","type","submit","nz-button","","nzType","primary","nz-tooltip","",3,"disabled","nzDanger","nzTooltipTrigger","nzTooltipTitle",4,"ngrxLet"],["cvcOrgSubmitButton","","type","submit","nz-button","","nzType","primary","nz-tooltip","",3,"disabled","nzDanger","nzTooltipTrigger","nzTooltipTitle"]],template:function(c,h){1&c&&(e.nrm(0,"input",0),e.j41(1,"div",1),e.DNE(2,P1,2,4,"button",2),e.k0s()),2&c&&(e.Y8G("formControl",h.formControl)("formlyAttributes",h.field),e.R7$(),e.Y8G("ngClass",e.sMw(4,Za,"right"===h.props.align,"left"===h.props.align,"center"===h.props.align)),e.R7$(),e.Y8G("ngrxLet",h.mostRecentOrg$))},dependencies:[z.YU,t.me,t.BC,t.l_,Pi.Nj,m.ch,Fn.aO,bi.c,Do.p,En.LH,wc],styles:[".btn-aligner[_ngcontent-%COMP%]{width:100%}.btn-aligner.btn-right[_ngcontent-%COMP%]{text-align:right}.btn-aligner.btn-left[_ngcontent-%COMP%]{text-align:left}.btn-aligner.btn-center[_ngcontent-%COMP%]{text-align:center}"],changeDetection:0})};ec=(0,Mi.Cg)([(0,gn.d)({arrayName:"subscriptions"})],ec);const g={types:[{name:"org-submit-button",component:ec}]};let ga=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(g),te.Y3,na.Yb,Fn.Zw,ns.Cu,En.Qt]})}return u})();const Ae=["optionTemplates"];function yt(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function Dd(u,b){1&u&&(e.qex(0),e.DNE(1,yt,1,1,"ng-template",null,1,e.C5r),e.bVm())}function F1(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const ch=new Map([[Hn.Kkj.Somatic,"Variant is a mutation, found only in tumor cells, having arisen in a specific tissue (non-germ cell), and is not expected to be inherited or passed to offspring."],[Hn.Kkj.RareGermline,"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in less than 1% of the population relevant to this evidence item."],[Hn.Kkj.CommonGermline,"Variant is found in every cell (not restricted to tumor/diseased cells) and is thought to exist in at least 1% of the population relevant to this evidence item."],[Hn.Kkj.Combined," Variants in the corresponding Complex Molecular Profile have heterogeneous origins."],[Hn.Kkj.Unknown,"The variant origin is uncertain based on the available evidence."],[Hn.Kkj.Na,"The variant type (e.g., expression) is not compatible (or easily classified) with the CIViC concept of variant origin."]]),Aa=uo(Ei(),Oi());let Sd=(()=>{class u extends Aa{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Variant Origin",required:!1,isMultiSelect:!1,placeholder:"Select Variant Origin",tooltip:"Identifies whether the variant is inherited (germline mutation) or acquired (somatic mutation) in the context of the study"}},this.originEnum$=new vn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.originEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr}),this.originEnum$.next(Array.from(ch.keys()))}configureStateConnections(){this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,ve.T)(c=>c.map(h=>h))),this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{c?(this.props.description=ch.get(c),this.props.extraType="description"):(this.props.description=void 0,this.props.extraType="prompt")})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-origin-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Ae,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:6,vars:13,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.DNE(2,Dd,3,0,"ng-container",3),e.nI1(3,"ngrxPush"),e.DNE(4,F1,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(5);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",_.props.placeholder)("cvcCustomTemplate",ne)("cvcOptions",e.bMT(1,9,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(2),e.Y8G("ngForOf",e.bMT(3,11,_.originEnum$))}},dependencies:[z.Sq,Ai,vo,Pi.L9]})}return u})();const ju={types:[{name:"origin-select",wrappers:["form-field"],component:Sd},{name:"origin-multi-select",wrappers:["form-field"],component:Sd,defaultOptions:{props:{label:"Variant Origins",isMultiSelect:!0}}}]};let Od=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(ju),Pn,_i,ds]})}return u})();const wd=["optionTemplates"];function ou(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",8),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,c.hpoId,h),e.npT)}}function A1(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",5),e.j41(1,"span",6),e.DNE(2,ou,4,4,"ng-container",7),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",c.hpoId)}}function Id(u,b){1&u&&(e.qex(0),e.DNE(1,A1,3,4,"ng-template",null,1,e.C5r),e.bVm())}function lh(u,b){if(1&u&&(e.qex(0),e.DNE(1,Id,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function xd(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",9)(1,"cvc-entity-tag",10),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Phenotype:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Pd=uo(Ei(),Wo());let Uu=(()=>{class u extends Pd{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"Phenotype",plural:"Phenotypes"},isMultiSelect:!1,requireType:!0,tooltip:"Phenotype or phenotype combination which interacts with the specified variant",placeholders:{default:"Search Phenotypes",multiDefault:"Select Phenotype(s) (max MULTI_MAX)",requireTypePrompt:"Select an ENTITY_NAME Type to search Phenotypes"},description:'Please provide any HPO phenotypes, including age of onset.',extraType:"prompt"}},this.placeholder$=new vn.t(this.defaultOptions.props.placeholders.default)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){}configurePlaceholders(){}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.phenotypeTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.phenotype}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.Osm),e.rXU(Hn.$UJ),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-phenotype-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(wd,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:9,vars:22,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcDisabled","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s(),e.DNE(6,lh,3,3,"ng-container",3)(7,xd,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(8);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,12,_.placeholder$))("cvcResults",e.bMT(2,14,_.result$))("cvcOptions",e.bMT(3,16,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.onRequiresPhenotype$&&!e.bMT(4,18,_.onRequiresPhenotype$))("cvcLoading",e.bMT(5,20,_.isLoading$)),e.R7$(6),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.Sq,z.bT,Pi.Nj,it.Di,nn,ln.b,Pi.L9,hs.M],changeDetection:0})}return u})();const R1={types:[{name:"phenotype-select",wrappers:["form-field"],component:Uu,defaultOptions:{props:{label:"Phenotype"}}},{name:"phenotype-multi-select",wrappers:["form-field"],component:Uu,defaultOptions:{props:{isMultiSelect:!0,label:"Phenotypes"}}}]};let Gu=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(R1),wn.$,Fn.Zw,ct.DH,xi.MC,hi.U6,te.Y3,P.j,R.f3,En.Qt,dn.pc,j.PQ,dt.jl,it.kT,ni.T,Pn,Cn,_e.i,Ht._]})}return u})();var Ic=a(4707),Fd=a(6042);const Ad=["nz-rate-item",""],uh=u=>({$implicit:u});function ru(u,b){}function Jc(u,b){}function Qr(u,b){1&u&&e.nrm(0,"span",4)}const jh=["ulElement"];function dh(u,b){if(1&u){const c=e.RV6();e.j41(0,"li",2)(1,"div",3),e.bIt("itemHover",function(_){const ne=e.eBV(c).$index,bt=e.XpG();return e.Njj(bt.onItemHover(ne,_))})("itemClick",function(_){const ne=e.eBV(c).$index,bt=e.XpG();return e.Njj(bt.onItemClick(ne,_))}),e.k0s()()}if(2&u){const c=b.$index,h=e.XpG();e.Y8G("ngClass",h.starStyleArray[c]||"")("nzTooltipTitle",h.nzTooltips[c]),e.R7$(),e.Y8G("allowHalf",h.nzAllowHalf)("character",h.nzCharacter)("index",c)}}let Yu=(()=>{class u{constructor(){this.index=0,this.allowHalf=!1,this.itemHover=new e.bkB,this.itemClick=new e.bkB}hoverRate(c){this.itemHover.next(c&&this.allowHalf)}clickRate(c){this.itemClick.next(c&&this.allowHalf)}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["","nz-rate-item",""]],inputs:{character:"character",index:"index",allowHalf:[2,"allowHalf","allowHalf",e.L39]},outputs:{itemHover:"itemHover",itemClick:"itemClick"},exportAs:["nzRateItem"],standalone:!0,features:[e.GFd,e.aNF],attrs:Ad,decls:6,vars:8,consts:[["defaultCharacter",""],[1,"ant-rate-star-second",3,"mouseover","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-rate-star-first",3,"mouseover","click"],["nz-icon","","nzType","star","nzTheme","fill"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"div",1),e.bIt("mouseover",function(un){return e.eBV(ne),_.hoverRate(!1),e.Njj(un.stopPropagation())})("click",function(){return e.eBV(ne),e.Njj(_.clickRate(!1))}),e.DNE(1,ru,0,0,"ng-template",2),e.k0s(),e.j41(2,"div",3),e.bIt("mouseover",function(un){return e.eBV(ne),_.hoverRate(!0),e.Njj(un.stopPropagation())})("click",function(){return e.eBV(ne),e.Njj(_.clickRate(!0))}),e.DNE(3,Jc,0,0,"ng-template",2),e.k0s(),e.DNE(4,Qr,1,0,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",_.character||ne)("ngTemplateOutletContext",e.eq3(4,uh,_.index)),e.R7$(2),e.Y8G("ngTemplateOutlet",_.character||ne)("ngTemplateOutletContext",e.eq3(6,uh,_.index))}},dependencies:[z.T3,te.Y3,te.Dn],encapsulation:2,changeDetection:0})}return u})(),su=(()=>{class u{get nzValue(){return this._value}set nzValue(c){this._value!==c&&(this._value=c,this.hasHalf=!Number.isInteger(c)&&this.nzAllowHalf,this.hoverValue=Math.ceil(c))}constructor(c,h,_,ne,bt,un){this.nzConfigService=c,this.ngZone=h,this.renderer=_,this.cdr=ne,this.directionality=bt,this.destroy$=un,this._nzModuleName="rate",this.nzAllowClear=!0,this.nzAllowHalf=!1,this.nzDisabled=!1,this.nzAutoFocus=!1,this.nzCount=5,this.nzTooltips=[],this.nzOnBlur=new e.bkB,this.nzOnFocus=new e.bkB,this.nzOnHoverChange=new e.bkB,this.nzOnKeyDown=new e.bkB,this.classMap={},this.starArray=[],this.starStyleArray=[],this.dir="ltr",this.hasHalf=!1,this.hoverValue=0,this.isFocused=!1,this._value=0,this.isNzDisableFirstChange=!0,this.onChange=()=>null,this.onTouched=()=>null}ngOnChanges(c){const{nzAutoFocus:h,nzCount:_,nzValue:ne}=c;if(h&&!h.isFirstChange()){const bt=this.ulElement.nativeElement;this.nzAutoFocus&&!this.nzDisabled?this.renderer.setAttribute(bt,"autofocus","autofocus"):this.renderer.removeAttribute(bt,"autofocus")}_&&this.updateStarArray(),ne&&this.updateStarStyle()}ngOnInit(){this.nzConfigService.getConfigChangeEventForComponent("rate").pipe((0,Ee.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change.pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.dir=c,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,x.R)(this.ulElement.nativeElement,"focus").pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.isFocused=!0,this.nzOnFocus.observers.length&&this.ngZone.run(()=>this.nzOnFocus.emit(c))}),(0,x.R)(this.ulElement.nativeElement,"blur").pipe((0,Ee.Q)(this.destroy$)).subscribe(c=>{this.isFocused=!1,this.nzOnBlur.observers.length&&this.ngZone.run(()=>this.nzOnBlur.emit(c))})})}onItemClick(c,h){if(this.nzDisabled)return;this.hoverValue=c+1;const _=h?c+.5:c+1;this.nzValue===_?this.nzAllowClear&&(this.nzValue=0,this.onChange(this.nzValue)):(this.nzValue=_,this.onChange(this.nzValue)),this.updateStarStyle()}onItemHover(c,h){this.nzDisabled||((this.hoverValue!==c+1||h!==this.hasHalf)&&(this.hoverValue=c+1,this.hasHalf=h,this.updateStarStyle()),this.nzOnHoverChange.emit(this.hoverValue))}onRateLeave(){this.hasHalf=!Number.isInteger(this.nzValue),this.hoverValue=Math.ceil(this.nzValue),this.nzOnHoverChange.emit(this.hoverValue),this.updateStarStyle()}focus(){this.ulElement.nativeElement.focus()}blur(){this.ulElement.nativeElement.blur()}onKeyDown(c){const h=this.nzValue;c.keyCode===Q.LE&&this.nzValue0&&(this.nzValue-=this.nzAllowHalf?.5:1),h!==this.nzValue&&(this.onChange(this.nzValue),this.nzOnKeyDown.emit(c),this.updateStarStyle(),this.cdr.markForCheck())}updateStarArray(){this.starArray=Array(this.nzCount).fill(0).map((c,h)=>h),this.updateStarStyle()}updateStarStyle(){this.starStyleArray=this.starArray.map(c=>{const h="ant-rate-star",_=c+1;return{[`${h}-full`]:_this.hoverValue,[`${h}-focused`]:this.hasHalf&&_===this.hoverValue&&this.isFocused}})}writeValue(c){this.nzValue=c||0,this.updateStarArray(),this.cdr.markForCheck()}setDisabledState(c){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||c,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Fd.yx),e.rXU(e.SKi),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(T.dS,8),e.rXU(U.y4))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["nz-rate"]],viewQuery:function(h,_){if(1&h&&e.GBs(jh,7),2&h){let ne;e.mGM(ne=e.lsd())&&(_.ulElement=ne.first)}},inputs:{nzAllowClear:[2,"nzAllowClear","nzAllowClear",e.L39],nzAllowHalf:[2,"nzAllowHalf","nzAllowHalf",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",e.L39],nzCharacter:"nzCharacter",nzCount:[2,"nzCount","nzCount",e.Udg],nzTooltips:"nzTooltips"},outputs:{nzOnBlur:"nzOnBlur",nzOnFocus:"nzOnFocus",nzOnHoverChange:"nzOnHoverChange",nzOnKeyDown:"nzOnKeyDown"},exportAs:["nzRate"],standalone:!0,features:[e.Jv_([U.y4,{provide:t.kq,useExisting:(0,e.Rfq)(()=>u),multi:!0}]),e.GFd,e.OA$,e.aNF],decls:4,vars:6,consts:[["ulElement",""],[1,"ant-rate",3,"keydown","mouseleave","ngClass","tabindex"],["nz-tooltip","",1,"ant-rate-star",3,"ngClass","nzTooltipTitle"],["nz-rate-item","",3,"itemHover","itemClick","allowHalf","character","index"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"ul",1,0),e.bIt("keydown",function(un){return e.eBV(ne),_.onKeyDown(un),e.Njj(un.preventDefault())})("mouseleave",function(un){return e.eBV(ne),_.onRateLeave(),e.Njj(un.stopPropagation())}),e.Z7z(2,dh,2,5,"li",2,e.fX1),e.k0s()}2&h&&(e.AVh("ant-rate-disabled",_.nzDisabled)("ant-rate-rtl","rtl"===_.dir),e.Y8G("ngClass",_.classMap)("tabindex",_.nzDisabled?-1:1),e.R7$(2),e.Dyx(_.starArray))},dependencies:[z.YU,En.Qt,En.LH,Yu],encapsulation:2,changeDetection:0})}return(0,Ic.Cg)([(0,Fd.H4)()],u.prototype,"nzAllowClear",void 0),(0,Ic.Cg)([(0,Fd.H4)()],u.prototype,"nzAllowHalf",void 0),u})(),Wu=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[su,Yu]})}return u})();const Ku={1:"Poor - Claim is not supported well by experimental evidence. Results are not reproducible, or have very small sample size. No follow-up is done to validate novel claims.",2:"Adequate - Evidence is not well supported by experimental data, and little follow-up data is available. Experiments may lack proper controls, have small sample size, or are not statistically convincing.",3:"Average - Evidence is convincing, but not supported by a breadth of experiments. May be smaller scale projects, or novel results without many follow-up experiments. Discrepancies from expected results are explained and not concerning.",4:"Strong - Well supported evidence. Experiments are well controlled, and results are convincing. Any discrepancies from expected results are well-explained and not concerning.",5:"Excellent - Solid, well supported evidence from a lab or journal with respected academic standing. Experiments are well controlled, and results are clean and reproducible across multiple replicates. Evidence confirmed using separate methods."},tc=uo(Ei(),Oi()),N1={types:[{name:"rating",wrappers:["form-field"],component:(()=>{class u extends tc{constructor(){super(),this.defaultOptions={props:{label:"Evidence Rating",count:5,tooltip:"A representation of the curator's confidence in the quality of the summarized evidence",hoverText:[]}},this.rating$=new vn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.formControl.value&&this.rating$.next(this.formControl.value),Object.entries(Ku).map(([c,h])=>{this.props.hoverText.push(h)}),this.rating$.pipe((0,gn.s)(this)).subscribe(c=>{this.formControl.setValue(c)}),this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{c&&0!==c?(this.props.description=Ku[c],this.props.extraType="description"):(this.formControl.setValue(void 0),this.props.description=void 0,this.props.extraType="prompt")})}configureStateConnections(){}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-rating"]],features:[e.Vt3],decls:3,vars:5,consts:[["type","hidden",3,"formControl","formlyAttributes"],[1,"rate-block"],[3,"ngModelChange","ngModel","nzCount","nzTooltips"]],template:function(h,_){1&h&&(e.nrm(0,"input",0),e.j41(1,"div",1)(2,"nz-rate",2),e.bIt("ngModelChange",function(bt){return _.rating$.next(bt)}),e.k0s()()),2&h&&(e.Y8G("formControl",_.formControl)("formlyAttributes",_.field),e.R7$(2),e.Y8G("ngModel",_.formControl.value)("nzCount",_.props.count)("nzTooltips",_.props.hoverText))},dependencies:[t.me,t.BC,t.l_,t.vS,m.ch,su],styles:["[_nghost-%COMP%] .rate-block[_ngcontent-%COMP%]{display:inline-block;background-color:#fff;border-radius:2px;padding:2px 4px;margin-top:-4px}[_nghost-%COMP%] nz-rate .anticon{font-size:160%}"],changeDetection:0})}return u})()}]};let hh=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,t.YN,m.qy.forChild(N1),Wu,_e.i,Pn,_i]})}return u})();const Gh=["optionTemplates"];function np(u,b){if(1&u&&(e.j41(0,"nz-tag")(1,"strong"),e.EFF(2),e.k0s()()),2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c)}}function ip(u,b){1&u&&(e.qex(0),e.DNE(1,np,3,1,"ng-template",null,1,e.C5r),e.bVm())}function sr(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-tag",7),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onTagClose$.next(_))}),e.j41(1,"strong"),e.EFF(2),e.k0s()()}if(2&u){const c=e.XpG().$implicit;e.R7$(2),e.JRh(c.nzValue)}}function Nd(u,b){if(1&u&&(e.qex(0),e.EFF(1),e.bVm()),2&u){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",c.nzValue," ")}}function ph(u,b){if(1&u&&(e.j41(0,"div",4),e.DNE(1,sr,3,1,"nz-tag",5)(2,Nd,2,1,"ng-container",6),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",!c.props.isMultiSelect),e.R7$(),e.Y8G("ngIf",c.props.isMultiSelect)}}const Yh=uo(Ei(),Oi());let fh=(()=>{class u extends Yh{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Reference Build",required:!1,isMultiSelect:!1,description:"Select the human genome reference sequence from which these coordinates are obtained",placeholder:"Select Reference Build"}},this.buildEnum$=new vn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.buildEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){this.placeholder$=new vn.t(this.props.placeholder),this.buildEnum$.next((0,ki.KF)(Hn.KRr).map(c=>c)),this.optionTemplates||console.error(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,ve.T)(c=>c.map(h=>h)))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-reference-build-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Gh,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[1,"ant-select-selection-item-content"],["nzMode","closeable",3,"nzOnClose",4,"ngIf"],[4,"ngIf"],["nzMode","closeable",3,"nzOnClose"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,ip,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,ph,3,2,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.buildEnum$))}},dependencies:[z.Sq,z.bT,ni.s,Ai,Pi.L9]})}return u})();const Wh={types:[{name:"reference-build-select",wrappers:["form-field"],component:fh},{name:"reference-build-multi-select",wrappers:["form-field"],component:fh,defaultOptions:{props:{label:"Levels",isMultiSelect:!0}}}]};let Kh=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(Wh),ni.T,_e.i,Pn,_i]})}return u})();const mh=["optionTemplates"];function rs(u,b){if(1&u&&e.nrm(0,"cvc-attribute-tag",4),2&u){const c=e.XpG().$implicit;e.Y8G("cvcAttrValue",c)}}function op(u,b){1&u&&(e.qex(0),e.DNE(1,rs,1,1,"ng-template",null,1,e.C5r),e.bVm())}function Xh(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",5)(1,"cvc-attribute-tag",6),e.bIt("cvcOnClose",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onTagClose$.next(_))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcAttrValue",c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const rp={Evidence:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PREDISPOSITION:"Germline variant has predisposing potential for cancer, and may meet select ACMG/AMP criteria supporting pathogenic or benign classification.",PROTECTIVENESS:"Germline variant has properties that protect individuals from acquiring cancer."},FUNCTIONAL:{GAIN_OF_FUNCTION:"Sequence variant confers an increase in normal gene function",LOSS_OF_FUNCTION:"Sequence variant confers a diminished or abolished function",UNALTERED_FUNCTION:"Gene product of sequence variant is unchanged",NEOMORPHIC:"Sequence variant creates a novel function",DOMINANT_NEGATIVE:"Sequence variant abrogates function of wildtype allele gene product",UNKNOWN:"Sequence variant that cannot be precisely defined by the other listed categories"},ONCOGENIC:{ONCOGENICITY:"Somatic variant has oncogenic potential for driving cancer, and may meet select ClinGen/CGC/VICC criteria supporting pathogenic or benign classification.",PROTECTIVENESS:"Somatic variant has a protective role against cancer."}},Assertion:{PREDICTIVE:{SENSITIVITYRESPONSE:"Associated with a clinical or preclinical response to treatment",RESISTANCE:"Associated with clinical or preclinical resistance to treatment",ADVERSE_RESPONSE:"Associated with an adverse response to drug treatment",REDUCED_SENSITIVITY:"Response to treatment is lower than seen in other treatment contexts",NA:"Clinical Significance is not applicable."},DIAGNOSTIC:{POSITIVE:"Associated with diagnosis of disease or subtype",NEGATIVE:"Associated with lack of disease or subtype"},PROGNOSTIC:{BETTER_OUTCOME:"Demonstrates better than expected clinical outcome",POOR_OUTCOME:"Demonstrates worse than expected clinical outcome",NA:"Clinical Significance is not applicable."},PREDISPOSING:{PATHOGENIC:"Very strong evidence the variant is pathogenic",LIKELY_PATHOGENIC:"Strong evidence (>90% certainty) the variant is pathogenic.",BENIGN:"Very strong evidence the variant is benign",LIKELY_BENIGN:"Not expected to have a major effect on disease",UNCERTAIN_SIGNIFICANCE:"Does not meet the ACMG/AMP criteria for pathogenic/benign, or the evidence is conflicting"},ONCOGENIC:{ONCOGENIC:"Very strong evidence the variant is oncogenic.",LIKELY_ONCOGENIC:"Strong evidence the variant is oncogenic.",BENIGN:"Very strong evidence the variant does not have oncogenic properties.",LIKELY_BENIGN:"Strong evidence the variant does not have oncogenic properties.",UNCERTAIN_SIGNIFICANCE:"Does not meet guideline criteria for oncogenic/benign, or the evidence is conflicting."}}},gh=uo(Ei(),Oi()),kd={types:[{name:"significance-select",wrappers:["form-field"],component:(()=>{class u extends gh{constructor(c){super(),this.cdr=c,this.defaultOptions={props:{label:"Significance",required:!0,isMultiSelect:!1,placeholder:"Select Significance",placeholderFn:h=>`Select ${h?h+" ":""} Significance`,requireTypePromptFn:h=>`Select ${h} Type to select its Significance`,tooltip:"Clinical impact of the variant"}},this.significanceEnum$=new vn.t([])}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEnumSelectField({optionEnum$:this.significanceEnum$,optionTemplate$:this.optionTemplate$,changeDetectorRef:this.cdr})}configureStateConnections(){if(!this.state)return console.error(`${this.field.id} requires a form state to populate its options, none was found.`),void(this.placeholder$=new vn.t("ERROR: Form state not found"));if(this.placeholder$=new vn.t(this.props.placeholderFn(this.state.entityName)),!this.state.enums.significance$)return void console.error(`${this.field.id} could not find form state's enums.significance$ to populate select.`);this.state.enums.significance$.pipe((0,gn.s)(this)).subscribe(h=>{this.significanceEnum$.next(h)}),this.optionTemplates||console.warn(`${this.field.id} could not find its optionTemplates QueryList to populate its select options, so simple text labels will be displayed.`),this.optionTemplate$=this.optionTemplates?.changes.pipe((0,ve.T)(h=>h.map(_=>_)));const c=`${this.state.entityName.toLowerCase()}Type$`;this.state.fields[c]?(this.onTypeSelect$=this.state.fields[c],this.onTypeSelect$.pipe((0,Vi.i)("add"===this.options.formState.formMode?0:1),(0,gn.s)(this)).subscribe(h=>{h?(this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0,this.placeholder$.next(this.props.placeholderFn(this.state.entityName))):(this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName),this.props.extraType="prompt"),this.formControl.value&&this.formControl.setValue(void 0)}),this.onValueChange$.pipe((0,qi.E)(this.onTypeSelect$),(0,gn.s)(this)).subscribe(([h,_])=>{!_||!h||!this.state||(this.props.description=void 0,this.props.extraType="description",this.props.description=rp[this.state.entityName][_][h],this.field.formControl.markAsTouched())})):console.error(`${this.field.id} could not find form state's ${c} to populate Significance options.`)}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-significance-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(mh,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:7,vars:15,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcFormControl","cvcFormlyAttributes","cvcSelectMode","cvcPlaceholder","cvcCustomTemplate","cvcOptions","cvcShowError","cvcDisabled"],[4,"ngFor","ngForOf"],[3,"cvcAttrValue"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcAttrValue","cvcContext","cvcMode"]],template:function(h,_){if(1&h&&(e.nrm(0,"cvc-enum-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.DNE(3,op,3,0,"ng-container",3),e.nI1(4,"ngrxPush"),e.DNE(5,Xh,2,3,"ng-template",null,0,e.C5r)),2&h){const ne=e.sdS(6);e.Y8G("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcPlaceholder",e.bMT(1,9,_.placeholder$))("cvcCustomTemplate",ne)("cvcOptions",e.bMT(2,11,_.selectOption$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled),e.R7$(3),e.Y8G("ngForOf",e.bMT(4,13,_.significanceEnum$))}},dependencies:[z.Sq,Ai,vo,Pi.L9]})}return u})()}]};let Ra=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(kd),Pn,_i,ds]})}return u})();var au=a(1427);const E=()=>[0,0];function d(u,b){1&u&&e.nrm(0,"span",9),2&u&&e.Y8G("nzType","loading")}function p(u,b){if(1&u&&(e.qex(0),e.DNE(1,d,1,1,"span",8),e.EFF(2,"\xa0 "),e.j41(3,"span"),e.EFF(4),e.k0s(),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(),e.Y8G("ngIf",c.showSpinner),e.R7$(3),e.JRh(c.message)}}function v(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG();e.JRh(c.successMessage)}}function C(u,b){1&u&&(e.j41(0,"button",10),e.EFF(1," Add Source "),e.k0s()),2&u&&e.Y8G("disabled",null===b.ngrxLet.citation)}let S=class Bm{constructor(b,c,h,_,ne){this.checkCitation=b,this.addRemoteCitation=c,this.errors=h,this.apollo=_,this.cdr=ne,this.cvcOnCreate=new e.bkB,this.messageOptions={empty:(bt,un)=>`No ${un} Source with a citation ID of "${bt}"`,searchCitation:(bt,un)=>`Searching ${un} for a citation ID of "${bt}"`,foundCitation:(bt,un,Wn)=>`Found ${un} citation "${Wn}" with ID ${bt}`,noCitation:(bt,un)=>`No ${un} Source with a citation ID of "${bt}" was found`},this.form=new t.J3({}),this.model={citationId:"",sourceType:Hn.tUL.Pubmed},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new N.B,this.citationId$=new vn.t(""),this.sourceType$=new vn.t(Hn.tUL.Pubmed),this.addSourceStubMutator=new fe.E(this.errors),this.fields=[{key:"citationId",props:{hidden:!0}},{key:"sourceType",props:{hidden:!0}}],this.onSubmit$.pipe((0,gn.s)(this)).subscribe(bt=>{console.log("disease-quick-add form model submitted.",bt),this.submitSourceStub()})}ngOnInit(){void 0!==this.model.citationId&&void 0!==this.model.sourceType?(this.queryRef=this.checkCitation.watch({citationId:this.model.citationId,sourceType:this.model.sourceType}),this.checkResult$=this.queryRef.valueChanges.pipe((0,ve.T)(b=>({loading:b.loading,citation:b.data?b.data.remoteCitation:null,model:this.model})),(0,An.M)(b=>{this.citationString=b.citation?b.citation:void 0})),this.citationId$.pipe((0,gn.s)(this)).subscribe(b=>{this.model.sourceType&&this.queryRef.refetch({citationId:b,sourceType:this.model.sourceType})}),this.formMessageDisplay$=this.checkResult$.pipe((0,ve.T)(b=>{const c=b.loading,h=b.citation,_=b.model;return c?{message:this.messageOptions.searchCitation(_.citationId,_.sourceType),showSpinner:!0}:c||null===h?c||null!==h?{message:"UNHANDLED MESSAGE STATE",showSpinner:!1}:{message:this.messageOptions.noCitation(_.citationId,_.sourceType),showSpinner:!1}:{message:this.messageOptions.foundCitation(_.citationId,(0,au.A)(_.sourceType),h),showSpinner:!1}}),(0,Ie.Z)({message:this.messageOptions.searchCitation(this.model.citationId,this.model.sourceType),showSpinner:!0}))):console.error("source-quick-add provided invalid initial model")}submitSourceStub(){void 0!==this.model.citationId&&void 0!==this.model.sourceType&&(this.mutationState=this.addSourceStubMutator.mutate(this.addRemoteCitation,{input:{citationId:this.model.citationId,sourceType:this.model.sourceType}},{},b=>{if(console.log("source-quick-add submit data callback",b),b.addRemoteCitation){this.successMessage=`New Source "${this.citationString}" added.`;const c=b.addRemoteCitation.newSource,h=(0,au.A)(this.model.sourceType),_=this.citationString?this.citationString:"NO CITATION",ne={query:is.J1` + query WriteLocalSource($id: Int!) { + source(id: $id) { + id + name + link + citation + citationId + sourceType + } + } + `,data:{source:{__typename:"Source",id:c.id,name:`${h}: ${_}`,link:`sources/${c.id}`,citation:_,citationId:this.model.citationId,sourceType:this.model.sourceType}},variables:{id:c.id}};this.apollo.client.cache.writeQuery(ne)||console.error("source-quick-add.form Source writeQuery failed.",ne),setTimeout(()=>{const un={id:`Source:${c.id}`,fragment:is.J1` + fragment LinkableSource on Source { + id + name + link + } + `},Wn=this.apollo.client.cache.readFragment(un);null!==Wn&&this.cvcOnCreate.next(Wn.id)},1e3)}}))}ngOnChanges(b){if(b.cvcSourceType){const c=b.cvcSourceType.currentValue;this.sourceType$.next(c),this.model={...this.model,sourceType:c}}if(b.cvcCitationId){const c=b.cvcCitationId.currentValue;this.citationId$.next(c),this.model={...this.model,citationId:c}}}static#e=this.\u0275fac=function(c){return new(c||Bm)(e.rXU(Hn.RMT),e.rXU(Hn.Z3e),e.rXU(rt.N),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:Bm,selectors:[["cvc-source-quick-add"]],inputs:{cvcSourceType:"cvcSourceType",cvcCitationId:"cvcCitationId"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.OA$],decls:10,vars:11,consts:[["success",""],[4,"ngrxLet"],["entityType","Source",3,"mutationState","successMessage"],["nz-form","","nzLayout","horizontal",3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["nz-button","","nzType","primary","nzBlock","",3,"disabled",4,"ngrxLet"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"]],template:function(c,h){if(1&c){const _=e.RV6();e.DNE(0,p,5,2,"ng-container",1),e.j41(1,"cvc-form-submission-status-display",2),e.DNE(2,v,1,1,"ng-template",null,0,e.C5r),e.j41(4,"form",3),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.bIt("modelChange",function(bt){return e.eBV(_),e.Njj(h.model=bt)}),e.k0s()(),e.j41(8,"nz-col",5),e.DNE(9,C,2,1,"button",7),e.k0s()()()()}if(2&c){const _=e.sdS(3);e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(10,E)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("ngrxLet",h.checkResult$)}},dependencies:[z.bT,t.qT,t.cb,t.j4,Pi.Nj,m.aF,Fn.aO,bi.c,Do.p,te.Dn,R.Uq,R.e,j.CA,Ue.G],changeDetection:0})};S=(0,Mi.Cg)([(0,gn.d)()],S);const Z=["optionTemplates"],Me=()=>[6,6];function Re(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",10)(1,"nz-select",11),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.sourceType$.next(_))}),e.nrm(3,"nz-option",12)(4,"nz-option",13)(5,"nz-option",14),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("nzOptionHeightPx",28)("ngModel",e.bMT(2,2,c.sourceType$))}}function ut(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"PMID:"),e.k0s())}function Dt(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"ID:"),e.k0s())}function Nt(u,b){1&u&&(e.j41(0,"div"),e.EFF(1,"doi.org/"),e.k0s())}function Zt(u,b){if(1&u&&(e.j41(0,"nz-col",15),e.qex(1,16),e.nI1(2,"ngrxPush"),e.DNE(3,ut,2,0,"div",17)(4,Dt,2,0,"div",17)(5,Nt,2,0,"div",17),e.bVm(),e.k0s()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngSwitch",e.bMT(2,4,c.sourceType$)),e.R7$(2),e.Y8G("ngSwitchCase","PUBMED"),e.R7$(),e.Y8G("ngSwitchCase","ASCO"),e.R7$(),e.Y8G("ngSwitchCase","ASH")}}function qt(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",19),e.j41(1,"span",20),e.EFF(2," ID: "),e.nrm(3,"span",21),e.nI1(4,"highlightTypeahead"),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(3),e.Y8G("innerHtml",e.i5U(4,4,c.citationId.toString(),h),e.npT)}}function cn(u,b){1&u&&(e.qex(0),e.DNE(1,qt,5,7,"ng-template",null,3,e.C5r),e.bVm())}function an(u,b){if(1&u&&(e.qex(0),e.DNE(1,cn,3,0,"ng-container",18),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function zn(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",22)(1,"cvc-entity-tag",23),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Source:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function Bn(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-source-quick-add",24),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()}if(2&u){const c=b.model;e.Y8G("cvcCitationId",c.citationId)("cvcSourceType",c.sourceType)}}function vi(u,b){1&u&&(e.j41(0,"button",25),e.EFF(1,"Add a New Source"),e.k0s())}const Sn=uo(Ei(),Wo());let li=(()=>{class u extends Sn{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.onModel$=new Nn.c,this.defaultSourceType=Hn.tUL.Pubmed,this.defaultOptions={props:{entityName:{singular:"Source",plural:"Sources"},isMultiSelect:!1,minSearchStrLength:2,tooltip:"PubMed, ASCO, or ASH Abstract Source(s) that support items, statements or descriptions.",placeholders:{default:"Search PubMed, ASCO, and ASH Sources",contextualFn:ne=>`Search ${ne} Sources`},description:"Select Source type, then enter its ID to search Sources"}},this.sourceType$=new vn.t(this.defaultSourceType),this.sourceTypeName$=new vn.t((0,au.A)(this.defaultSourceType)),this.placeholder$=new vn.t(this.defaultOptions.props.placeholders.contextualFn((0,au.A)(this.defaultSourceType))),this.showTypeSelect$=new Nn.c}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:this.sourceType$,typeaheadParamName$:this.sourceTypeName$||void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent,minSearchStrLength:this.field.props.minSearchStrLength}),this.initialDescription=this.props.description,this.showTypeSelect$=this.onValueChange$.pipe((0,ve.T)(c=>!!(!c||c&&Array.isArray(c)))),this.sourceType$.pipe((0,gn.s)(this)).subscribe(c=>{const h=(0,au.A)(c);this.sourceTypeName$.next(h),this.placeholder$.next(this.props.placeholders.contextualFn(h))}),this.onModel$=(0,Mo.z)([this.sourceType$,this.onSearch$]).pipe((0,ve.T)(([c,h])=>({citationId:h,sourceType:c}))),this.onValueChange$.pipe((0,gn.s)(this)).subscribe(c=>{this.props.description=c?void 0:this.initialDescription})}getTypeaheadVarsFn(c,h=Hn.tUL.Pubmed){return{partialCitationId:c,sourceType:h}}getTypeaheadResultsFn(c){return c.data.sourceTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.source}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.txm),e.rXU(Hn.mww),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-source-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Z,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:21,vars:39,consts:[["selectedTemplate",""],["addSource",""],["addSourceBtn",""],["optionTemplates",""],[1,"select-layout",3,"nzGutter"],["nzFlex","80px",4,"ngIf"],["nzFlex","60px","class","prefix",4,"ngIf"],["nzFlex","auto"],[3,"cvcOnSearch","cvcOnModelChange","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcParamName","cvcShowError","cvcDisabled","cvcLoading","cvcAddEntity","cvcAddEntityModel","cvcSelectOpen"],[4,"ngrxLet"],["nzFlex","80px"],["nzSize","default","nzBlock","",3,"ngModelChange","nzOptionHeightPx","ngModel"],["nzValue","PUBMED","nzLabel","PubMed"],["nzValue","ASCO","nzLabel","ASCO"],["nzValue","ASH","nzLabel","ASH"],["nzFlex","60px",1,"prefix"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcCitationId","cvcSourceType"],["type","button"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"nz-row",4),e.DNE(1,Re,6,4,"nz-col",5),e.nI1(2,"ngrxPush"),e.DNE(3,Zt,6,6,"nz-col",6),e.nI1(4,"ngrxPush"),e.j41(5,"nz-col",7)(6,"cvc-entity-select",8),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.nI1(12,"ngrxPush"),e.nI1(13,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s()()(),e.DNE(14,an,3,3,"ng-container",9)(15,zn,2,3,"ng-template",null,0,e.C5r)(17,Bn,1,2,"ng-template",null,1,e.C5r)(19,vi,2,0,"ng-template",null,2,e.C5r)}if(2&h){const ne=e.sdS(16),bt=e.sdS(18);e.Y8G("nzGutter",e.lJ4(38,Me)),e.R7$(),e.Y8G("ngIf",e.bMT(2,20,_.showTypeSelect$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,22,_.showTypeSelect$)),e.R7$(3),e.Y8G("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(7,24,_.placeholder$))("cvcResults",e.bMT(8,26,_.result$))("cvcOptions",e.bMT(9,28,_.selectOption$))("cvcParamName",e.bMT(10,30,_.sourceTypeName$))("cvcShowError",_.showError)("cvcDisabled",_.props.disabled)("cvcLoading",e.bMT(11,32,_.isLoading$))("cvcAddEntity",bt)("cvcAddEntityModel",e.bMT(12,34,_.onModel$))("cvcSelectOpen",e.bMT(13,36,_.selectOpen$)),e.R7$(8),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.Sq,z.bT,z.ux,z.e1,t.BC,t.vS,Pi.Nj,ct.ld,ct.WI,R.Uq,R.e,it.Di,nn,ln.b,S,Pi.L9,hs.M],styles:[".prefix[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:right;line-height:28px;color:#999}.select-layout[_ngcontent-%COMP%]{flex-wrap:nowrap}"],changeDetection:0})}return u})();const ri={types:[{name:"source-select",wrappers:["form-field"],component:li,defaultOptions:{props:{label:"Source"}}},{name:"source-multi-select",wrappers:["form-field"],component:li,defaultOptions:{props:{label:"Sources",isMultiSelect:!0}}}]};let Ri=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.YN,t.X1,m.qy.forChild(ri),wn.$,Fn.Zw,ae.Sw,ct.DH,xi.MC,hi.U6,te.Y3,P.j,R.f3,En.Qt,dn.pc,j.PQ,dt.jl,it.kT,si.g,ni.T,Fe.P,Pn,Cn,_e.i,Ht._]})}return u})();function io(u,b){if(1&u&&e.nrm(0,"nz-option",7),2&u){const c=b.$implicit;e.Y8G("nzLabel",c)("nzValue",c)("nzHide",!0)}}function Sr(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-select",5),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onValueChange$.next(_))}),e.DNE(2,io,1,3,"nz-option",6),e.k0s(),e.bVm()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("formControl",c.formControl)("formlyAttributes",c.field),e.R7$(),e.Y8G("ngForOf",c.formControl.value)}}function Jr(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-tag",10),e.bIt("nzOnClose",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onTagClose$.next(_))}),e.EFF(1),e.k0s()}if(2&u){const c=b.ngIf;e.Y8G("nzMode","closeable"),e.R7$(),e.SpI(" ",c," ")}}function xc(u,b){if(1&u){const c=e.RV6();e.j41(0,"input",12,2),e.bIt("keydown.enter",function(){e.eBV(c);const _=e.sdS(1);return e.Njj(_.blur())}),e.k0s()}if(2&u){const c=e.XpG(3);e.Y8G("formControl",c.formControl)("type",c.props.type||"text")("formlyAttributes",c.field)}}function ss(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number",13,3),e.bIt("keydown.enter",function(){e.eBV(c);const _=e.sdS(1);return e.Njj(_.blur())}),e.k0s()}if(2&u){const c=e.XpG(3);e.Y8G("formControl",c.formControl)("formlyAttributes",c.field)}}function Na(u,b){if(1&u&&(e.qex(0),e.DNE(1,xc,2,3,"input",11)(2,ss,2,2,"ng-template",null,1,e.C5r),e.bVm()),2&u){const c=e.sdS(3),h=e.XpG(2);e.R7$(),e.Y8G("ngIf","number"!==h.props.type)("ngIfElse",c)}}function vh(u,b){if(1&u&&(e.DNE(0,Jr,2,2,"nz-tag",8),e.nI1(1,"ngrxPush"),e.DNE(2,Na,4,2,"ng-container",9),e.nI1(3,"ngrxPush")),2&u){const c=e.XpG();e.Y8G("ngIf",e.bMT(1,2,c.tagLabel$)),e.R7$(2),e.Y8G("ngIf",!e.bMT(3,4,c.tagLabel$))}}const _h=uo(Ei(),Ma);let zi=(()=>{class u extends _h{constructor(){super(),this.defaultOptions={props:{label:"Enter value"}}}ngAfterViewInit(){this.configureBaseField(),this.configureStringTagField()}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-tag-input"]],features:[e.Vt3],decls:3,vars:2,consts:[["singleInputField",""],["numberTmp",""],["baseInputTxt",""],["baseInputNum",""],[4,"ngIf","ngIfElse"],["nzMode","tags","nzPlaceHolder","Please select","nzAllowClear","","nzDropdownClassName","hide-dropdown",3,"ngModelChange","formControl","formlyAttributes"],[3,"nzLabel","nzValue","nzHide",4,"ngFor","ngForOf"],[3,"nzLabel","nzValue","nzHide"],[3,"nzMode","nzOnClose",4,"ngIf"],[4,"ngIf"],[3,"nzOnClose","nzMode"],["nz-input","",3,"formControl","type","formlyAttributes","keydown.enter",4,"ngIf","ngIfElse"],["nz-input","",3,"keydown.enter","formControl","type","formlyAttributes"],[3,"keydown.enter","formControl","formlyAttributes"]],template:function(h,_){if(1&h&&e.DNE(0,Sr,3,3,"ng-container",4)(1,vh,4,6,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf",_.props.isMultiInput)("ngIfElse",ne)}},dependencies:[z.Sq,z.bT,t.me,t.BC,t.l_,m.ch,P.Sy,ct.ld,ct.WI,ni.s,Pi.L9],changeDetection:0})}return u})();const Xi={types:[{name:"tag-input",wrappers:["form-field"],component:zi,defaultOptions:{modelOptions:{updateOn:"blur"}}},{name:"tag-multi-input",wrappers:["form-field"],component:zi,defaultOptions:{props:{isMultiInput:!0}}}]};let ao=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(Xi),j.PQ,P.j,ct.DH,ni.T,ui]})}return u})();const Ao=()=>[0,0];function Ts(u,b){1&u&&e.nrm(0,"span",7)}function Pc(u,b){1&u&&e.nrm(0,"span",8)}const ar={name:void 0};let js=class $m{set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,c){this.query=b,this.errors=c,this.cvcOnCreate=new e.bkB,this.model=ar,this.form=new t.J3({}),this.options={},this.onSubmit$=new N.B,this.searchString$=new vn.t(void 0),this.queryMutator=new fe.E(this.errors),this.isSubmitting$=new vn.t(!1),this.submitSuccess$=new vn.t(!1),this.submitError$=new vn.t([]),this.addTherapyMutator=new fe.E(this.errors),this.fields=[{key:"name",props:{hidden:!0,required:!0}}],this.searchString$.pipe((0,gn.s)(this)).subscribe(h=>{this.model.name=h}),this.onSubmit$.pipe((0,gn.s)(this)).subscribe(h=>{this.submitTherapy(h)})}submitTherapy(b){if(!b.name)return void console.error("therapy-quick-add form submitTherapy requires model with valid name.");let c=this.addTherapyMutator.mutate(this.query,{name:b.name},{},h=>{console.log("therapy-quick-add submit data callback",h),h.addTherapy&&this.cvcOnCreate.next(h.addTherapy.therapy.id)});c.submitSuccess$.pipe((0,gn.s)(this)).subscribe(h=>{console.log("therapy-quick-add submitSuccess$",h),this.submitSuccess$.next(h)}),c.submitError$.pipe((0,gn.s)(this)).subscribe(h=>{console.log("therapy-quick-add submitError$",h),this.submitError$.next(h)}),c.isSubmitting$.pipe((0,gn.s)(this)).subscribe(h=>{this.isSubmitting$.next(h)})}static#e=this.\u0275fac=function(c){return new(c||$m)(e.rXU(Hn.G4Q),e.rXU(rt.N))};static#t=this.\u0275cmp=e.VBU({type:$m,selectors:[["cvc-therapy-quick-add-form"]],inputs:{cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},decls:14,vars:17,consts:[[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"],["nz-button","","nzType","primary","nzBlock","",3,"disabled"],["nz-icon","","nzType","plus-circle","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","loading","nzTheme","outline",4,"ngIf"],["nz-icon","","nzType","plus-circle","nzTheme","outline"],["nz-icon","","nzType","loading","nzTheme","outline"]],template:function(c,h){1&c&&(e.j41(0,"form",0),e.bIt("ngSubmit",function(){return h.onSubmit$.next(h.model)}),e.j41(1,"nz-row",1)(2,"nz-col",2)(3,"formly-form",3),e.bIt("modelChange",function(ne){return h.model=ne}),e.k0s()(),e.j41(4,"nz-col",2)(5,"button",4),e.DNE(6,Ts,1,0,"span",5),e.nI1(7,"ngrxPush"),e.DNE(8,Pc,1,0,"span",6),e.nI1(9,"ngrxPush"),e.EFF(10," Create Therapy\xa0"),e.j41(11,"i"),e.EFF(12),e.nI1(13,"ngrxPush"),e.k0s()()()()()),2&c&&(e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(16,Ao)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options),e.R7$(2),e.Y8G("disabled",!h.form.valid),e.R7$(),e.Y8G("ngIf",!e.bMT(7,10,h.isSubmitting$)),e.R7$(2),e.Y8G("ngIf",e.bMT(9,12,h.isSubmitting$)),e.R7$(4),e.JRh(e.bMT(13,14,h.searchString$)))},dependencies:[z.bT,t.qT,t.cb,t.j4,m.aF,Fn.aO,bi.c,Do.p,te.Dn,R.Uq,R.e,Pi.L9],encapsulation:2,changeDetection:0})};js=(0,Mi.Cg)([(0,gn.d)()],js);const Or=["optionTemplates"];function Vd(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"NCIt Code: "),e.k0s(),e.nrm(3,"span",9),e.nI1(4,"highlightTypeahead"),e.EFF(5,"\xa0 "),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(3),e.Y8G("innerHtml",e.i5U(4,1,c.ncitId,h),e.npT)}}function Qh(u,b){if(1&u&&(e.qex(0),e.j41(1,"strong"),e.EFF(2,"Aliases: "),e.k0s(),e.j41(3,"em"),e.nrm(4,"span",10),e.nI1(5,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(4),e.Y8G("nzTooltipTitle",c.therapyAliases.join(", "))("innerHtml",e.i5U(5,2,c.therapyAliases.join(", "),h),e.npT)}}function gs(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",6),e.j41(1,"span",7),e.DNE(2,Vd,6,4,"ng-container",8)(3,Qh,6,5,"ng-container",8),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",c.ncitId),e.R7$(),e.Y8G("ngIf",c.therapyAliases.length>0)}}function Tl(u,b){1&u&&(e.qex(0),e.DNE(1,gs,4,5,"ng-template",null,2,e.C5r),e.bVm())}function va(u,b){if(1&u&&(e.qex(0),e.DNE(1,Tl,3,0,"ng-container",5),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function k1(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",11)(1,"cvc-entity-tag",12),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Therapy:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function V1(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-therapy-quick-add-form",13),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()}2&u&&e.Y8G("cvcSearchString",b.$implicit)}const F4=uo(Ei(),Wo());let sp=(()=>{class u extends F4{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"Therapy",plural:"Therapies"},isMultiSelect:!1,requireType:!0,tooltip:"Therapy or therapy combination which interacts with the specified variant",placeholder:"Search Therapies",requireTypePromptFn:(ne,bt)=>`Select an ${ne} Type to search associated Therapies`}},this.placeholder$=new vn.t(void 0)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){if(this.state&&(this.stateEntityName=this.state.entityName,this.state.requires.requiresTherapy$?this.onRequiresTherapy$=this.state.requires.requiresTherapy$:console.warn(`${this.field.id} field's form provides a state, but could not find requiresTherapy$ subject to attach.`),this.props.requireType)){const c=`${this.stateEntityName.toLowerCase()}Type$`;this.state.fields[c]?this.onEntityType$=this.state.fields[c]:console.error(`${this.field.id} requireType is true, however form state does not provide Subject ${c}.`)}}configurePlaceholders(){this.placeholder$.next(this.props.placeholder),this.onRequiresTherapy$&&this.onEntityType$&&(0,Mo.z)([this.onRequiresTherapy$,this.onEntityType$]).pipe((0,ee.F)(),(0,gn.s)(this)).subscribe(([c,h])=>{!c&&h?(this.props.required=!1,this.props.disabled=!0,this.props.description=`${(0,Hi.u)(h)} ${this.state.entityName} does not include associated therapies`,this.props.extraType="prompt",this.resetField(),this.cdr.markForCheck()):this.props.requireType&&!h?(this.props.required=!1,this.props.disabled=!0,this.props.description=this.props.requireTypePromptFn(this.state.entityName,this.props.isMultiSelect),this.props.extraType="prompt"):c?(this.props.required=!0,this.props.disabled=!1,this.props.description=void 0,this.props.extraType=void 0):(!c&&this.formControl.value||this.props.requireType&&!h&&this.formControl.value)&&(this.resetField(),console.log("HERE2"))})}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.therapyTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.therapy}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.f9r),e.rXU(Hn.a3n),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-therapy-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(Or,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:12,vars:26,consts:[["selectedTemplate",""],["addTherapy",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcAddEntity","cvcCustomTemplate","cvcDisabled","cvcEntityName","cvcFormControl","cvcFormlyAttributes","cvcLoading","cvcOptions","cvcPlaceholder","cvcResults","cvcSelectMode","cvcShowError","cvcSelectOpen"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],[3,"innerHtml"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],[3,"cvcOnCreate","cvcSearchString"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",3),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s(),e.DNE(7,va,3,3,"ng-container",4)(8,k1,2,3,"ng-template",null,0,e.C5r)(10,V1,1,1,"ng-template",null,1,e.C5r)}if(2&h){const ne=e.sdS(9),bt=e.sdS(11);e.Y8G("cvcAddEntity",bt)("cvcCustomTemplate",ne)("cvcDisabled",_.onRequiresTherapy$&&!e.bMT(1,14,_.onRequiresTherapy$))("cvcEntityName",_.props.entityName)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcLoading",e.bMT(2,16,_.isLoading$))("cvcOptions",e.bMT(3,18,_.selectOption$))("cvcPlaceholder",e.bMT(4,20,_.placeholder$))("cvcResults",e.bMT(5,22,_.result$))("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcShowError",_.showError)("cvcSelectOpen",e.bMT(6,24,_.selectOpen$)),e.R7$(7),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.Sq,z.bT,Pi.Nj,En.LH,it.Di,nn,ln.b,js,Pi.L9,hs.M],changeDetection:0})}return u})();const A4={types:[{name:"therapy-select",wrappers:["form-field"],component:sp,defaultOptions:{props:{label:"Therapy"}}},{name:"therapy-multi-select",wrappers:["form-field"],component:sp,defaultOptions:{props:{label:"Therapies",isMultiSelect:!0}}}]};let R4=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(A4),wn.$,Fn.Zw,ct.DH,xi.MC,hi.U6,te.Y3,P.j,R.f3,En.Qt,dn.pc,j.PQ,dt.jl,it.kT,ni.T,Pn,Cn,_e.i,Ht._]})}return u})();const cp={isDefaultCol:u=>"default"===u.type,isSelectCol:u=>"select"===u.type,isEntityTagCol:u=>"entity-tag"===u.type,isEnumTagCol:u=>"enum-tag"===u.type,isTextTagCol:u=>"text-tag"===u.type},qh=u=>void 0!==u.sort,Zh=u=>void 0!==u.filter,$4={diseases:Hn.wOP.DiseaseName,feature:Hn.wOP.FeatureName,therapies:Hn.wOP.TherapyName,variant:Hn.wOP.VariantName},up={diseases:"diseaseName",therapies:"therapyName",variant:"variantName",feature:"featureName",aliases:"variantAlias"},H4=["selected","id"];class dp{constructor(){this.sortStreams=[],this.filterStreams=[],this.config=this.configureColumnStreams([{key:"selected",label:"Select",type:"select",width:"25px",align:"center",fixedLeft:!0,checkbox:{th:{showCheckbox:!1},td:{showCheckbox:!0}}},{key:"id",label:"ID",hidden:!0,type:"hidden",width:"0px"},{key:"variant",label:"Variant",type:"entity-tag",width:"215px",context:"variant",fixedLeft:!0,showStatus:!0,tag:{fullWidth:!0,truncateLabel:"200px"},sort:{default:"ascend"},filter:{inputType:"default",options:[{key:"Filter Variant Name",value:null}]}},{key:"aliases",label:"Aliases",type:"default",width:"150px",objectKey:"name",sort:{},filter:{inputType:"default",options:[{key:"Filter Aliases",value:null}]}},{key:"feature",label:"Feature",type:"entity-tag",width:"135px",tag:{truncateLabel:"125px"},sort:{},filter:{inputType:"default",options:[{key:"Filter Feature Name",value:null}]}},{key:"diseases",label:"Diseases",type:"entity-tag",width:"250px",sort:{},tag:{maxTags:1,truncateLabel:"175px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}},{key:"therapies",label:"Therapies",type:"entity-tag",width:"275px",sort:{},tag:{maxTags:2,truncateLabel:"150px"},filter:{inputType:"default",typename:"Therapy",options:[{key:"Filter Therapy Names",value:null}]}}])}get(){return this.config}getSortStreams(){return this.sortStreams}getFilterStreams(){return this.filterStreams}getAttributeFilters(b,c){return b.getValues().map(_=>({text:(0,Hi.u)(_),value:_,byDefault:c===_}))}configureColumnStreams(b){return b.forEach(c=>{const h=c;if(qh(h)&&(h.sort.changes=new vn.t({key:h.key,value:h.sort.default??null}),this.sortStreams.push(h.sort.changes)),Zh(h)){const _=h.filter.options.find(ne=>ne.byDefault)?.value;h.filter.changes=new vn.t({key:h.key,value:_??null}),this.filterStreams.push(h.filter.changes)}}),b}}let e2=class Hm{set cvcTableScrollerToIndex(b){void 0!==b&&this.scrollToIndex(b)}set cvcTableScrollerToOffset(b){void 0!==b&&this.scrollToIndex(b)}constructor(b){this.host=b,this.cvcTableScrollerOnScroll=new e.bkB,this.cvcTableScrollerOnFetch=new e.bkB,this.cvcTableScrollerTargetHeight=140,this.cvcTableScrollerFetchCount=50,this.onLoadThrottleTime=500,this.onScrollThrottleTime=250,this.onScrollDebounceTime=300}ngAfterViewInit(){if(!this.host||!this.host.cdkVirtualScrollViewport)throw new Error("cvcTableScroller directive could not obtain reference to host cdkVirtualScrollViewport.");this.viewport=this.host.cdkVirtualScrollViewport,this.scrolled$=this.viewport.elementScrolled(),this.rendered$=this.viewport.renderedRangeStream,this.rendered$.pipe((0,B.$)()).subscribe(()=>this.viewport.checkViewportSize()),this.scrolled$.pipe((0,Tr.c)(this.onScrollThrottleTime,$r.E,{leading:!0,trailing:!0}),(0,An.M)(b=>this.cvcTableScrollerOnScroll.next("scroll")),(0,Yr.B)(this.onScrollDebounceTime),(0,gn.s)(this)).subscribe(b=>{this.cvcTableScrollerOnScroll.next("stop")}),this.scrolled$.pipe((0,ve.T)(b=>this.viewport.measureScrollOffset("bottom")),(0,he.J)(),(0,Jt.p)(([b,c])=>c{this.cvcTableScrollerOnScroll.next("bottom");try{this.loadMore(this.cvcTableScrollerPageInfo)}catch(c){console.error(c)}})}loadMore(b){const c=this.cvcTableScrollerQueryRef;if(!b&&c)throw new Error("table-scroll directive requires PageInfo to use provided QueryRef.");if(b&&!c)throw new Error("table-scroll directive requires valid QueryRef when PageInfo provided.");if(b&&c){const[h,_,ne]=[this.cvcTableScrollerFetchCount,b.hasNextPage,b.endCursor];if(!h||!ne)throw new Error("table-scroll PageInfo invalid.");if(!_)return;this.cvcTableScrollerOnFetch.next({first:h,after:ne})}}scrollToIndex(b){const[c,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!h)throw new Error("table-scroll scrollToIndex() cannot find host viewport.");h.scrollToIndex(b)}scrollToOffset(b){const[c,h]=[this.host,this.host.cdkVirtualScrollViewport];if(!c||!h)throw new Error("table-scroll scrollToOffset() cannot find host viewport.");h.scrollToOffset(b)}static#e=this.\u0275fac=function(c){return new(c||Hm)(e.rXU(fo.CP))};static#t=this.\u0275dir=e.FsC({type:Hm,selectors:[["","cvcTableScroller",""]],inputs:{cvcTableScrollerTargetHeight:"cvcTableScrollerTargetHeight",cvcTableScrollerQueryRef:"cvcTableScrollerQueryRef",cvcTableScrollerPageInfo:"cvcTableScrollerPageInfo",cvcTableScrollerFetchCount:"cvcTableScrollerFetchCount",cvcTableScrollerToIndex:"cvcTableScrollerToIndex",cvcTableScrollerToOffset:"cvcTableScrollerToOffset"},outputs:{cvcTableScrollerOnScroll:"cvcTableScrollerOnScroll",cvcTableScrollerOnFetch:"cvcTableScrollerOnFetch"}})};function j4(u,b){1&u&&e.nrm(0,"span",8)}function Uf(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",9),e.bIt("click",function(){e.eBV(c),e.XpG(2);const _=e.sdS(3),ne=e.XpG();return _.value="",e.Njj(ne.cvcModelChange.next(null))}),e.k0s()}}function U4(u,b){if(1&u&&e.DNE(0,j4,1,0,"span",6)(1,Uf,1,0,"span",7),2&u){e.XpG();const c=e.sdS(3);e.Y8G("ngIf",!c.value),e.R7$(),e.Y8G("ngIf",c.value)}}function hp(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-input-group",4)(2,"input",5,1),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcModelChange.next(_))}),e.k0s()(),e.DNE(4,U4,2,2,"ng-template",null,2,e.C5r),e.bVm()}if(2&u){const c=e.sdS(5),h=e.XpG();e.R7$(),e.Y8G("nzSuffix",c),e.R7$(),e.Y8G("placeholder",h.cvcPlaceholder)("ngModel",h.cvcModel)}}function t2(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number-group",10)(1,"nz-input-number",11,1),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.cvcModelChange.next(""===_?null:_))}),e.k0s()()}if(2&u){let c;const h=e.XpG();e.R7$(),e.Y8G("nzPlaceHolder",null!==(c=h.cvcPlaceholder)&&void 0!==c?c:"")("ngModel",h.cvcModel)("nzMin",1)("nzStep",1)}}e2=(0,Mi.Cg)([(0,gn.d)()],e2);let G4=(()=>{class u{constructor(){this.cvcModel=null,this.cvcModelChange=new e.bkB,this.cvcInputType="default"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-table-filter-input"]],inputs:{cvcModel:"cvcModel",cvcInputType:"cvcInputType",cvcPlaceholder:"cvcPlaceholder"},outputs:{cvcModelChange:"cvcModelChange"},decls:3,vars:2,consts:[["numericInput",""],["filterInput",""],["suffixIcon",""],[4,"ngIf","ngIfElse"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"ngModelChange","placeholder","ngModel"],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"]],template:function(h,_){if(1&h&&e.DNE(0,hp,6,3,"ng-container",3)(1,t2,3,4,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf","default"===_.cvcInputType)("ngIfElse",ne)}},dependencies:[z.bT,t.me,t.BC,t.vS,bi.c,te.Dn,P.Sy,P.tg,P.vN,G,Qe]})}return u})();function cu(u,b){if(1&u){const c=e.RV6();e.j41(0,"li",5),e.bIt("click",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.cvcOptionChange.next({key:ne.cvcColumnKey,value:_.value}))}),e.nrm(1,"cvc-attribute-tag",6),e.k0s()}if(2&u){const c=b.$implicit,h=e.XpG();e.Y8G("nzSelected",(null==h.cvcOption?null:h.cvcOption.value)===c.value),e.R7$(),e.Y8G("cvcFullWidth",!0)("cvcChecked",(null==h.cvcOption?null:h.cvcOption.value)===c.value)("cvcAttrValue",c.value)}}let yh=(()=>{class u{constructor(){this.cvcOptionChange=new e.bkB}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-enum-filter-menu"]],inputs:{cvcColumnKey:"cvcColumnKey",cvcFilterOptions:"cvcFilterOptions",cvcOption:"cvcOption"},outputs:{cvcOptionChange:"cvcOptionChange"},decls:6,vars:2,consts:[["nz-menu",""],["nz-menu-item","",3,"nzSelected","click",4,"ngFor","ngForOf"],[2,"padding","3px"],["nz-button","","nzType","default","nzBlock","","nzSize","small",3,"click","disabled"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-menu-item","",3,"click","nzSelected"],["cvcContext","menu-item",3,"cvcFullWidth","cvcChecked","cvcAttrValue"]],template:function(h,_){1&h&&(e.j41(0,"ul",0),e.DNE(1,cu,2,4,"li",1),e.j41(2,"li",2)(3,"button",3),e.bIt("click",function(){return _.cvcOptionChange.next({key:_.cvcColumnKey,value:null})}),e.nrm(4,"span",4),e.EFF(5," Reset "),e.k0s()()()),2&h&&(e.R7$(),e.Y8G("ngForOf",_.cvcFilterOptions),e.R7$(2),e.Y8G("disabled",null===(null==_.cvcOption?null:_.cvcOption.value)))},dependencies:[z.Sq,vo,Fn.aO,bi.c,Do.p,te.Dn,Ji.jS,Ji.CU],styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] ul li:hover{background-color:#e6f7ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected{background-color:#1890ff}[_nghost-%COMP%] ul li.ant-dropdown-menu-item-selected:active{background-color:#096dd9}"],changeDetection:0})}return u})();const Y4=()=>[],pp=()=>({x:"800px",y:"200px"}),n2=(u,b,c)=>({$implicit:u,config:b,emphasize:c}),W4=(u,b,c,h,_)=>({tagList:u,tag:b,showPopover:c,status:h,emphasize:_}),fp=(u,b)=>({$implicit:u,emphasize:b}),K4=()=>[6,6],mp=u=>({$implicit:u});function X4(u,b){if(1&u&&e.nrm(0,"th",31),2&u){let c;const h=b.ngIf;e.Y8G("nzShowCheckbox",h.checkbox.th.showCheckbox||!1)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function Gf(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",32),e.nI1(1,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.sort.changes.next({key:ne.key,value:_}))}),e.j41(2,"span",33),e.EFF(3),e.k0s()()}if(2&u){let c,h;const _=b.ngIf;e.Y8G("nzColumnKey",_.key)("nzAlign",null!==(c=_.align)&&void 0!==c?c:"left")("nzWidth",_.width)("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzShowSort",void 0!==_.sort)("nzSortFn",!0)("nzSortOrder",(null==(h=e.bMT(1,10,_.sort.changes))?null:h.value)||null),e.R7$(2),e.Y8G("nzTooltipTitle",_.tooltip),e.R7$(),e.SpI(" ",_.label," ")}}function Yf(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Ch(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function Q4(u,b){if(1&u&&(e.j41(0,"th",34),e.EFF(1),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)("nzTooltipTitle",h.tooltip),e.R7$(),e.SpI(" ",h.label," ")}}function o2(u,b){if(1&u&&(e.qex(0),e.DNE(1,X4,1,5,"th",28),e.nI1(2,"guardType"),e.DNE(3,Gf,4,12,"th",29),e.nI1(4,"guardType"),e.DNE(5,Yf,2,7,"th",30),e.nI1(6,"guardType"),e.DNE(7,Ch,2,7,"th",30),e.nI1(8,"guardType"),e.DNE(9,Q4,2,7,"th",30),e.nI1(10,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,c,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,c,h.colGuards.isDefaultCol))}}function r2(u,b){if(1&u&&(e.qex(0),e.DNE(1,o2,11,20,"ng-container",27),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function L1(u,b){if(1&u&&(e.j41(0,"th",39),e.EFF(1," \xa0 "),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzWidth",h.width)("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function bh(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-variant-table-filter-input",42),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf,bt=e.XpG().ngIf;return e.Njj(ne.changes.next({key:bt.key,value:_}))}),e.k0s()}if(2&u){const c=e.XpG().ngIf;e.Y8G("cvcInputType",c.filter.inputType)("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function s2(u,b){if(1&u&&(e.j41(0,"th",40),e.DNE(1,bh,1,3,"cvc-variant-table-filter-input",41),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function Ld(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",43,4),e.nI1(2,"ngrxPush"),e.bIt("nzSortOrderChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.sort.changes.next({key:ne.key,value:_}))}),e.j41(3,"nz-filter-trigger",44,5),e.nI1(5,"ngrxPush"),e.nrm(6,"span",45),e.k0s(),e.j41(7,"nz-dropdown-menu",null,6)(9,"cvc-variant-enum-filter-menu",46),e.nI1(10,"ngrxPush"),e.bIt("cvcOptionChange",function(_){const ne=e.eBV(c).ngIf,bt=e.sdS(4);return ne.filter.changes.next(_),e.Njj(bt.nzVisible=!1)}),e.k0s()()()}if(2&u){let c,h,_;const ne=b.ngIf,bt=e.sdS(8);e.Y8G("nzColumnKey",ne.key)("nzWidth",ne.width)("nzAlign",null!==(c=ne.align)&&void 0!==c?c:"left")("nzLeft",ne.fixedLeft||!1)("nzRight",ne.fixedRight||!1)("nzShowSort",!0)("nzSortFn",!0)("nzSortOrder",(null==(h=e.bMT(2,15,ne.sort.changes))?null:h.value)||null)("nzShowFilter",void 0!==ne.filter)("nzFilterFn",!0),e.R7$(3),e.Y8G("nzDropdownMenu",bt)("nzActive",null!==(null==(_=e.bMT(5,17,ne.filter.changes))?null:_.value)),e.R7$(6),e.Y8G("cvcColumnKey",ne.key)("cvcFilterOptions",ne.filter.options)("cvcOption",e.bMT(10,19,ne.filter.changes))}}function Th(u,b){if(1&u){const c=e.RV6();e.j41(0,"th",47,4)(2,"nz-filter-trigger",44),e.nI1(3,"ngrxPush"),e.nrm(4,"span",48),e.k0s(),e.j41(5,"nz-dropdown-menu",null,7)(7,"div",49)(8,"div",50)(9,"cvc-variant-table-filter-input",51),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf;return e.Njj(ne.filter.changes.next({key:ne.key,value:_}))}),e.k0s()()()()()}if(2&u){let c,h;const _=b.ngIf,ne=e.sdS(6);e.Y8G("nzColumnKey",_.key)("nzWidth",_.width)("nzAlign",null!==(c=_.align)&&void 0!==c?c:"left")("nzLeft",_.fixedLeft||!1)("nzRight",_.fixedRight||!1)("nzFilterFn",!0),e.R7$(2),e.Y8G("nzDropdownMenu",ne)("nzActive",null!==(null==(h=e.bMT(3,10,_.filter.changes))?null:h.value)),e.R7$(7),e.Y8G("cvcPlaceholder",_.filter.options[0].key)("cvcModel",_.filter.options[0].value)}}function B1(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-variant-table-filter-input",51),e.bIt("cvcModelChange",function(_){const ne=e.eBV(c).ngIf,bt=e.XpG().ngIf;return e.Njj(ne.changes.next({key:bt.key,value:_}))}),e.k0s()}if(2&u){const c=e.XpG().ngIf;e.Y8G("cvcPlaceholder",c.filter.options[0].key)("cvcModel",c.filter.options[0].value)}}function a2(u,b){if(1&u&&(e.j41(0,"th",40),e.DNE(1,B1,1,2,"cvc-variant-table-filter-input",52),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzColumnKey",h.key)("nzWidth",h.width)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.filter)}}function Eh(u,b){if(1&u&&(e.qex(0),e.DNE(1,L1,2,5,"th",35),e.nI1(2,"guardType"),e.DNE(3,s2,2,6,"th",36),e.nI1(4,"guardType"),e.DNE(5,Ld,11,21,"th",37),e.nI1(6,"guardType"),e.DNE(7,Th,10,12,"th",38),e.nI1(8,"guardType"),e.DNE(9,a2,2,6,"th",36),e.nI1(10,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,c,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,c,h.colGuards.isDefaultCol))}}function Bd(u,b){if(1&u&&(e.qex(0),e.DNE(1,Eh,11,20,"ng-container",27),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function c2(u,b){if(1&u&&(e.j41(0,"thead")(1,"tr",24),e.DNE(2,r2,2,1,"ng-container",25),e.k0s(),e.j41(3,"tr",26),e.DNE(4,Bd,2,1,"ng-container",25),e.k0s()()),2&u){const c=b.ngrxLet;e.R7$(2),e.Y8G("ngForOf",c),e.R7$(2),e.Y8G("ngForOf",c)}}function Wf(u,b){if(1&u){const c=e.RV6();e.j41(0,"td",58),e.bIt("nzCheckedChange",function(_){e.eBV(c);const ne=e.XpG(3).$implicit,bt=e.XpG(2);return e.Njj(bt.onRowSelected$.next({id:ne.id,selected:_}))}),e.k0s()}if(2&u){let c;const h=b.ngIf,_=e.XpG(3).$implicit;e.Y8G("nzChecked",_.selected)("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1)}}function l2(u,b){1&u&&e.eu8(0)}function $d(u,b){if(1&u&&(e.qex(0),e.DNE(1,l2,1,0,"ng-container",61),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let c;const h=e.XpG().ngIf,_=e.XpG().ngIf,ne=e.sdS(3),bt=e.sdS(5),un=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,un[h])?ne:bt)("ngTemplateOutletContext",e.sMw(6,n2,un[h],_,null==(c=e.bMT(3,4,_.filter.changes))?null:c.value))}}function J4(u,b){if(1&u&&(e.qex(0),e.DNE(1,$d,4,10,"ng-container",60),e.bVm()),2&u){const c=b.ngIf;e.XpG();const h=e.sdS(7),_=e.XpG(3).$implicit;e.R7$(),e.Y8G("ngIf",_[c])("ngIfElse",h)}}function gp(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-collection-tag",63),e.bVm()),2&u){const c=e.XpG(2),h=c.$implicit,_=c.config,ne=c.emphasize;e.XpG();const bt=e.sdS(5),un=e.XpG(5);e.R7$(),e.Y8G("cvcCollectionTagConfig",e.s1E(3,W4,h.slice(_.tag.maxTags,h.length),_.tag,!un.isScrolling,!0===_.showStatus?h.status:void 0,ne))("cvcTagTemplate",bt)("cvcShowFullLabels",!0)}}function q4(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-entity-tag-list",62),e.DNE(2,gp,2,9,"ng-container",27),e.bVm()),2&u){const c=e.XpG(),h=c.$implicit,_=c.config,ne=c.emphasize;e.XpG();const bt=e.sdS(5),un=e.XpG(5);e.R7$(),e.Y8G("cvcTagTemplate",bt)("cvcTagListConfig",e.s1E(3,W4,h.slice(0,_.tag.maxTags),_.tag,!un.isScrolling,!0===_.showStatus?h.status:void 0,ne)),e.R7$(),e.Y8G("ngIf",h.slice(_.tag.maxTags,h.length).length>0)}}function Z4(u,b){if(1&u&&e.DNE(0,q4,3,9,"ng-container",60),2&u){const c=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",c.length>0)("ngIfElse",h)}}function u2(u,b){if(1&u&&e.nrm(0,"cvc-entity-tag",64),2&u){let c;const h=b.$implicit,_=b.config,ne=b.emphasize,bt=e.XpG(6);e.Y8G("cvcTruncateLabel",null==_.tag?null:_.tag.truncateLabel)("cvcLinkableEntity",h)("cvcEmphasize",ne)("cvcShowPopover",!bt.isScrolling)("cvcStatus",!0===_.showStatus?h.status:void 0)("cvcFullWidth",null!==(c=null==_.tag?null:_.tag.fullWidth)&&void 0!==c&&c)}}function vp(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function e0(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,J4,2,2,"ng-container",27)(2,Z4,1,2,"ng-template",null,8,e.C5r)(4,u2,1,6,"ng-template",null,9,e.C5r)(6,vp,1,1,"ng-template",null,10,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",h.context||h.key)}}function t0(u,b){if(1&u&&(e.nrm(0,"cvc-attribute-tag",67),e.nI1(1,"evidenceEnumDisplay")),2&u){const c=e.XpG().ngIf,h=e.XpG(3).$implicit,_=e.XpG(2);e.Y8G("cvcFullWidth",!0)("cvcAttrValue",h[c.key])("cvcTooltip",e.bMT(1,3,!_.isScrolling&&h[c.key]))}}function Hd(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function _p(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,t0,2,5,"cvc-attribute-tag",66)(2,Hd,1,1,"ng-template",null,11,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(3),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function d2(u,b){if(1&u&&(e.j41(0,"nz-tag",69),e.nrm(1,"span",70),e.k0s()),2&u){const c=e.XpG().ngIf,h=e.XpG(3).$implicit;e.Y8G("nzTooltipTitle",h[c.key])}}function n0(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function o0(u,b){if(1&u&&(e.j41(0,"td",59),e.DNE(1,d2,2,1,"nz-tag",68)(2,n0,1,1,"ng-template",null,12,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(3),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function Kf(u,b){1&u&&e.eu8(0)}function jd(u,b){if(1&u&&(e.qex(0),e.DNE(1,Kf,1,0,"ng-container",61),e.nI1(2,"isArray"),e.nI1(3,"ngrxPush"),e.bVm()),2&u){let c;const h=b.ngIf,_=e.XpG().ngIf,ne=e.sdS(3),bt=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",e.bMT(2,2,h)?ne:bt)("ngTemplateOutletContext",e.l_i(6,fp,h,null==(c=e.bMT(3,4,_.filter.changes))?null:c.value))}}function r0(u,b){1&u&&e.eu8(0)}function zh(u,b){1&u&&(e.qex(0),e.EFF(1,", "),e.bVm())}function h2(u,b){if(1&u&&(e.qex(0),e.DNE(1,r0,1,0,"ng-container",61)(2,zh,2,0,"ng-container",27),e.bVm()),2&u){const c=b.$implicit,h=b.last,_=e.XpG(2).emphasize;e.XpG();const ne=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",ne)("ngTemplateOutletContext",e.l_i(3,fp,c,_)),e.R7$(),e.Y8G("ngIf",!h)}}function yp(u,b){if(1&u&&(e.qex(0),e.DNE(1,h2,3,6,"ng-container",25),e.bVm()),2&u){const c=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",c)}}function s0(u,b){if(1&u&&e.DNE(0,yp,2,1,"ng-container",60),2&u){const c=b.$implicit;e.XpG();const h=e.sdS(7);e.Y8G("ngIf",c.length>0)("ngIfElse",h)}}function Cp(u,b){if(1&u&&(e.nrm(0,"span",72),e.nI1(1,"highlightTypeahead")),2&u){const c=b.$implicit,h=b.emphasize,_=e.XpG().ngIf;e.Y8G("innerHtml",e.i5U(1,1,_.objectKey?c[_.objectKey]:c,h),e.npT)}}function p2(u,b){if(1&u&&e.nrm(0,"cvc-empty-value",65),2&u){const c=e.XpG().ngIf;e.Y8G("cvcEmptyCategory",c.emptyValueCategory||"unspecified")}}function bp(u,b){if(1&u&&(e.j41(0,"td",71),e.DNE(1,jd,4,9,"ng-container",60)(2,s0,1,2,"ng-template",null,13,e.C5r)(4,Cp,2,4,"ng-template",null,14,e.C5r)(6,p2,1,1,"ng-template",null,15,e.C5r),e.k0s()),2&u){let c;const h=b.ngIf,_=e.sdS(7),ne=e.XpG(3).$implicit;e.Y8G("nzAlign",null!==(c=h.align)&&void 0!==c?c:"left")("nzLeft",h.fixedLeft||!1)("nzRight",h.fixedRight||!1),e.R7$(),e.Y8G("ngIf",ne[h.key])("ngIfElse",_)}}function Ud(u,b){if(1&u&&(e.qex(0),e.DNE(1,Wf,1,4,"td",55),e.nI1(2,"guardType"),e.DNE(3,e0,8,4,"td",56),e.nI1(4,"guardType"),e.DNE(5,_p,4,5,"td",56),e.nI1(6,"guardType"),e.DNE(7,o0,4,5,"td",56),e.nI1(8,"guardType"),e.DNE(9,bp,8,5,"td",57),e.nI1(10,"guardType"),e.bVm()),2&u){const c=e.XpG().$implicit,h=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.i5U(2,5,c,h.colGuards.isSelectCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(4,8,c,h.colGuards.isEntityTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(6,11,c,h.colGuards.isEnumTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(8,14,c,h.colGuards.isTextTagCol)),e.R7$(2),e.Y8G("ngIf",e.i5U(10,17,c,h.colGuards.isDefaultCol))}}function Tp(u,b){if(1&u&&(e.qex(0),e.DNE(1,Ud,11,20,"ng-container",27),e.bVm()),2&u){const c=b.$implicit;e.R7$(),e.Y8G("ngIf",!c.hidden)}}function Mh(u,b){if(1&u&&(e.j41(0,"tr",54),e.DNE(1,Tp,2,1,"ng-container",25),e.k0s()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngForOf",c)}}function Ep(u,b){1&u&&(e.j41(0,"tbody"),e.DNE(1,Mh,2,1,"ng-template",53),e.k0s())}function zp(u,b){1&u&&e.nrm(0,"span",77)}function Mp(u,b){if(1&u){const c=e.RV6();e.j41(0,"span",78),e.bIt("click",function(){e.eBV(c),e.XpG(2);const _=e.sdS(3),ne=e.XpG().filter;return _.value="",e.Njj(ne.changes.next({key:ne.key,value:null}))}),e.k0s()}}function Dh(u,b){if(1&u&&e.DNE(0,zp,1,0,"span",75)(1,Mp,1,0,"span",76),2&u){e.XpG();const c=e.sdS(3);e.Y8G("ngIf",!c.value),e.R7$(),e.Y8G("ngIf",c.value)}}function f2(u,b){if(1&u){const c=e.RV6();e.qex(0),e.j41(1,"nz-input-group",73)(2,"input",74,17),e.bIt("nzFilterChange",function(_){e.eBV(c);const ne=e.XpG().filter;return e.Njj(ne.changes.next({key:ne.key,value:_}))}),e.k0s()(),e.DNE(4,Dh,2,2,"ng-template",null,18,e.C5r),e.bVm()}if(2&u){const c=e.sdS(5),h=e.XpG().filter;e.R7$(),e.Y8G("nzSuffix",c),e.R7$(),e.Y8G("placeholder",h.placeholder)("ngModel",h.defaultValue)}}function Dp(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-input-number-group",79)(1,"nz-input-number",80,17),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG().filter;return e.Njj(ne.changes.next({key:ne.key,value:_}))}),e.k0s()()}if(2&u){const c=e.XpG().filter;e.R7$(),e.Y8G("nzPlaceHolder",c.placeholder)("ngModel",c.defaultValue)("nzMin",1)("nzStep",1)}}function Sh(u,b){if(1&u&&e.DNE(0,f2,6,3,"ng-container",60)(1,Dp,3,4,"ng-template",null,16,e.C5r),2&u){const c=b.filter,h=e.sdS(2);e.Y8G("ngIf",void 0===c.inputType||"default"===c.inputType)("ngIfElse",h)}}function m2(u,b){1&u&&(e.j41(0,"nz-row",81)(1,"nz-col")(2,"span"),e.EFF(3,"Use checkboxes to select or deselect Variants"),e.k0s()()()),2&u&&e.Y8G("nzGutter",e.lJ4(1,K4))}function $1(u,b){1&u&&(e.j41(0,"nz-tag",91),e.nrm(1,"i",92),e.j41(2,"span"),e.EFF(3,"Loading\u2026"),e.k0s()())}function a0(u,b){if(1&u&&(e.j41(0,"nz-tag",94),e.nrm(1,"span",95),e.j41(2,"span",96),e.EFF(3),e.k0s()()),2&u){e.XpG();const c=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",c)("nzTooltipTitleContext",e.eq3(3,mp,h.query)),e.R7$(),e.SpI(" Query Error",h.query.length>1?"s":""," ")}}function Sp(u,b){if(1&u&&(e.j41(0,"nz-tag",94)(1,"span",96)(2,"span",97)(3,"strong"),e.EFF(4),e.k0s()()()()),2&u){e.XpG();const c=e.sdS(4),h=e.XpG().ngrxLet;e.R7$(),e.Y8G("nzTooltipTitle",c)("nzTooltipTitleContext",e.eq3(3,mp,h.network)),e.R7$(3),e.SpI(" Network Error",h.query.length>1?"s":""," ")}}function Xf(u,b){if(1&u&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&u){const c=b.$implicit;e.R7$(),e.SpI(" ",c.message," ")}}function Oh(u,b){1&u&&e.DNE(0,Xf,2,1,"div",25),2&u&&e.Y8G("ngForOf",b.$implicit)}function g2(u,b){if(1&u&&(e.qex(0),e.DNE(1,a0,4,5,"nz-tag",93)(2,Sp,5,5,"nz-tag",93)(3,Oh,1,1,"ng-template",null,20,e.C5r),e.bVm()),2&u){const c=e.XpG().ngrxLet;e.R7$(),e.Y8G("ngIf",c.query),e.R7$(),e.Y8G("ngIf",c.network)}}function Op(u,b){if(1&u&&(e.qex(0),e.DNE(1,g2,5,2,"ng-container",27),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(),e.Y8G("ngIf",c)}}function wp(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",98)(1,"nz-checkbox-group",99),e.nI1(2,"ngrxPush"),e.bIt("ngModelChange",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onPreferenceChange$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngModel",e.bMT(2,1,c.setPreference$))}}function Ip(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-row",81)(1,"nz-col",82),e.DNE(2,$1,4,0,"nz-tag",83),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nrm(5,"cvc-no-more-rows",84),e.nI1(6,"ngrxPush"),e.k0s(),e.j41(7,"nz-col",82),e.DNE(8,Op,2,1,"ng-container",23),e.k0s(),e.j41(9,"nz-col",82),e.nrm(10,"cvc-table-counts2",85),e.k0s(),e.j41(11,"nz-col",86)(12,"nz-button-group")(13,"button",87),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onResetFilter$.next())}),e.nrm(14,"span",88),e.k0s(),e.j41(15,"button",89),e.nrm(16,"span",90),e.k0s()(),e.DNE(17,wp,3,3,"ng-template",null,19,e.C5r),e.k0s()()}if(2&u){const c=e.sdS(18),h=e.XpG();e.Y8G("nzGutter",8),e.R7$(2),e.Y8G("ngIf",e.bMT(3,7,h.loading$)&&e.bMT(4,9,h.isFetchMore$)),e.R7$(3),e.Y8G("cvcShowTag",e.bMT(6,11,h.noMoreRows$)),e.R7$(3),e.Y8G("ngrxLet",h.queryError$),e.R7$(2),e.Y8G("cvcTableCountsConnection",h.connection$),e.R7$(5),e.Y8G("nzPopoverContent",c)("nzPopoverTrigger","click")}}let El=class jm{constructor(b,c,h){this.queryGQL=b,this.apollo=c,this.cdr=h,this.cvcSelectedIdsChange=new e.bkB,this.isScrolling=!1,this.colGuards=cp,this.onFetchMore$=new N.B,this.onPreferenceChange$=new vn.t([]),this.onResetFilter$=new N.B,this.onRowSelected$=new N.B,this.onScroll$=new vn.t("stop"),this.onSetSelectedRow$=new vn.t(new Set),this.queryError$=new N.B,this.queryRequest$=new N.B,this.queryResult$=new Ki.m(1),this.isFetchMore$=new vn.t(!1),this.noMoreRows$=new vn.t(!1),this.scrollToIndex$=new N.B,this.tableConfig=new dp;const _=(0,Mo.z)(this.tableConfig.getFilterStreams()),ne=(0,Mo.z)(this.tableConfig.getSortStreams()).pipe((0,Jt.p)(bt=>bt.filter(un=>null!==un.value).length<=1));this.refetch$=(0,Mo.z)([ne,_]).pipe((0,ve.T)(([bt,un])=>({query:"refetch",sort:bt,filter:un}))),this.fetchMore$=this.onFetchMore$.pipe((0,ve.T)(bt=>({query:"fetchMore",fetchMore:{...bt}}))),(0,oe.h)(this.refetch$,this.fetchMore$).pipe((0,Yr.B)(50),(0,gn.s)(this)).subscribe(bt=>{const un=this.getQueryVars(bt);this.queryRef?(this.queryError$.next({}),"refetch"===bt.query?(this.isFetchMore$.next(!1),this.queryRef.refetch(un).then(Wn=>{(Wn.error||Wn.errors)&&this.queryError$.next(this.getRequestErrors(Wn))}).then(()=>{this.scrollToIndex$.next(0)})):(this.isFetchMore$.next(!0),this.queryRef.fetchMore({variables:un}).then(Wn=>{(Wn.error||Wn.errors)&&this.queryError$.next(this.getRequestErrors(Wn))}))):(this.isFetchMore$.next(!1),this.queryError$.next({}),this.queryRef=this.queryGQL.watch(un),this.queryRef.valueChanges.pipe((0,gn.s)(this)).subscribe(Wn=>{this.queryResult$.next(Wn),(Wn.error||Wn.errors)&&this.queryError$.next(this.getRequestErrors(Wn))}))}),this.loading$=this.queryResult$.pipe((0,Si.E)("loading"),(0,ee.F)()),this.connection$=this.queryResult$.pipe((0,Si.E)("data","browseVariants"),(0,Jt.p)(zo.kP)),this.pageInfo$=this.connection$.pipe((0,Si.E)("pageInfo"),(0,Jt.p)(zo.kP)),this.row$=(0,Mo.z)([this.connection$.pipe((0,Si.E)("edges"),(0,Jt.p)(zo.kP),(0,ve.T)(bt=>bt.map(un=>un.node))),this.onSetSelectedRow$]).pipe((0,ve.T)(([bt,un])=>bt.map(Wn=>{if(Wn)return{...Wn,variant:{__typename:"Variant",id:Wn.id,name:Wn.name,link:Wn.link},feature:{__typename:"Feature",id:Wn.featureId,name:Wn.featureName,link:Wn.featureLink},selected:un.has(Wn.id)}}))),this.col$=new vn.t(this.tableConfig.get()),this.setPreference$=this.col$.pipe((0,ve.T)(bt=>this.getColPrefsFromTableConfig(bt))),this.onPreferenceChange$.pipe((0,qi.E)(this.col$),(0,ve.T)(([bt,un])=>this.getTableConfigFromColPrefs(bt,un)),(0,gn.s)(this)).subscribe(bt=>{this.col$.next(bt)}),this.onSetTableFilter$=new vn.t([]),this.onSetTableFilter$.pipe((0,gn.s)(this)).subscribe(bt=>{const un=this.col$.getValue();bt.forEach(Wn=>{const Gi=un.find(ko=>ko.key===Wn.key);if(void 0!==Gi.filter.inputType){const ko=Gi.filter.options[0];if(null===Wn.value)return Gi.filter.options=[{...ko,value:null}],void Gi.filter.changes.next(Wn);if(Array.isArray(Wn.value)&&0===Wn.value.length)return Gi.filter.options=[{...ko,value:null}],void Gi.filter.changes.next({...Wn,value:null});let cr;Array.isArray(Wn.value)?Wn.value.length>0&&(cr=Wn.value[0]):cr=Wn.value;const ic=Gi.filter.typename;if(!ic||!cr)return void console.error(`variant-manager requires column config '${Gi.key}' provide a typename for cvcTablePrefs Input to set its filter`);const qc=this.getEntityName(ic,cr);if(!qc)return;Gi.filter.options=[{...ko,value:qc}],Gi.filter.changes.next({...Wn,value:qc})}else Zh(Gi)&&Gi.filter.changes.next(Wn)})}),this.onSetTablePref$=new vn.t([]),this.onSetTablePref$.pipe((0,qi.E)(this.setPreference$),(0,ve.T)(([bt,un])=>{const Wn=[];return bt.forEach(Gi=>{let ko=un.find(cr=>cr.value===Gi.value);ko?Wn.push({...ko,...Gi}):console.warn(`variant-manager onSetTablePref$ received updated preferences for column '${Gi.value}', but a column with that key could not be found.`)}),Wn}),(0,gn.s)(this)).subscribe(bt=>{this.onPreferenceChange$.next(bt)}),this.onRowSelected$.pipe((0,qi.E)(this.onSetSelectedRow$),(0,gn.s)(this)).subscribe(([bt,un])=>{bt.selected?un.add(bt.id):un.delete(bt.id),this.onSetSelectedRow$.next(un),this.cvcSelectedIdsChange.next(Array.from(un))}),this.onScroll$.pipe((0,ve.T)(bt=>"stop"!==bt),(0,ee.F)(),(0,gn.s)(this)).subscribe(bt=>{this.isScrolling=bt,this.cdr.detectChanges()}),this.onScroll$.pipe((0,Jt.p)(bt=>"bottom"===bt),(0,qi.E)(this.pageInfo$),(0,ve.T)(([bt,un])=>un),(0,gn.s)(this)).subscribe(bt=>{bt.hasNextPage||(this.noMoreRows$.next(!0),this.cdr.detectChanges(),setInterval(()=>this.noMoreRows$.next(!1)))})}ngAfterViewInit(){this.onResetFilter$.pipe((0,qi.E)((0,Go.of)(this.tableConfig.get())),(0,gn.s)(this)).subscribe(([b,c])=>{const h=[];c.forEach(_=>{if(qh(_)&&_.sort.changes&&_.sort.changes.next({key:_.key,value:_.sort.default??null}),Zh(_)){const ne=_.filter.options.find(bt=>1==bt.byDefault)?.value;_.filter.changes&&_.filter.changes.next({key:_.key,value:ne||null})}h.push(_)}),this.col$.next(h)})}getQueryVars(b){const c=this.getQueryFilterParams(b);return{...this.getQuerySortParams(b),...c,...b.fetchMore}}getQuerySortParams(b){if(!b.sort)return;const h=b.sort.find(ne=>null!==ne.value);return h?{sortBy:{column:this.getSortColumnFromColKey(h.key),direction:"ascend"===h.value?Hn.UEL.Asc:Hn.UEL.Desc||void 0}}:void 0}getQueryFilterParams(b){let c={};return b.filter&&b.filter.forEach(h=>{c[up[h.key]||h.key]=null===h.value||""===h.value?void 0:h.value}),c}getRequestErrors(b){return{query:b.errors,network:b.error}}getTableConfigFromColPrefs(b,c){return c.forEach(h=>{if(H4.find(ne=>ne===h.key))return;const _=b.find(ne=>ne.value===h.key);_&&(h.hidden=!_?.checked)}),[...c]}getColPrefsFromTableConfig(b){let c=[];return b.forEach(h=>{H4.find(_=>_===h.key)||c.push({label:h.tooltip||h.label,value:h.key,checked:!h.hidden})}),c}getSortColumnFromColKey(b){return $4[b]}getEntityName(b,c){const h={id:`${b}:${c}`,fragment:dc.J1` + fragment Linkable${b}Entity on ${b} { + id + name + link + }`},_=this.apollo.client.readFragment(h);if(_)return _.name;console.error(`variant-manager onSetTableFilter$ could not find cached entity ${b}:${c} to populate input filter`)}trackByIndex(b,c){return c?.id}ngOnChanges(b){if(b.cvcTableSettings){const c=b.cvcTableSettings.currentValue;void 0!==c&&this.onSetTableFilter$.next(c.filters)}if(b.cvcSelectedIds){const c=b.cvcSelectedIds.currentValue,h=new Set;void 0!==c&&c.forEach(_=>h.add(_)),this.onSetSelectedRow$.next(h)}}static#e=this.\u0275fac=function(c){return new(c||jm)(e.rXU(Hn.ngC),e.rXU(is.Ic),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:jm,selectors:[["cvc-variant-manager"]],inputs:{cvcTableSettings:"cvcTableSettings",cvcSelectedIds:"cvcSelectedIds"},outputs:{cvcSelectedIdsChange:"cvcSelectedIdsChange"},features:[e.OA$],decls:16,vars:27,consts:[["virtualTable",""],["columnFilterInput",""],["cardTitle",""],["extraTemplate",""],["enumTableFilter",""],["enumTagFilterTrigger",""],["enumFilterMenu","nzDropdownMenu"],["textTagFilterMenu","nzDropdownMenu"],["entityTagList",""],["entityTag",""],["emptyEntityTagCell",""],["emptyEnumTagCell",""],["emptyTextTagCell",""],["staticList",""],["staticValue",""],["emptyDefaultCell",""],["numericInput",""],["filterInput",""],["suffixIcon",""],["prefsPopover",""],["queryError",""],["nzSize","small",3,"nzTitle","nzExtra"],["cvcTableScroller","",3,"cvcTableScrollerOnScroll","cvcTableScrollerOnFetch","nzData","cvcTableScrollerQueryRef","cvcTableScrollerPageInfo","cvcTableScrollerToIndex","nzScroll","nzVirtualForTrackBy","nzVirtualItemSize","nzSize","nzFrontPagination","nzShowPagination","nzLoading"],[4,"ngrxLet"],[1,"col-header-row"],[4,"ngFor","ngForOf"],[1,"filter-row"],[4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzSortOrderChange",4,"ngIf"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle",4,"ngIf"],[3,"nzShowCheckbox","nzWidth","nzAlign","nzLeft","nzRight"],[3,"nzSortOrderChange","nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder"],["nz-tooltip","",1,"col-header-label",3,"nzTooltipTitle"],["nz-tooltip","",3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight","nzTooltipTitle"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight",4,"ngIf"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn","nzSortOrderChange",4,"ngIf"],["class","attribute-filter","nzCustomFilter","",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn",4,"ngIf"],[3,"nzColumnKey","nzAlign","nzWidth","nzLeft","nzRight"],[3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight"],[3,"cvcInputType","cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],[3,"cvcModelChange","cvcInputType","cvcPlaceholder","cvcModel"],["nzCustomFilter","",1,"attribute-filter",3,"nzSortOrderChange","nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzShowSort","nzSortFn","nzSortOrder","nzShowFilter","nzFilterFn"],[3,"nzDropdownMenu","nzActive"],["nz-icon","","nzType","filter","nzTheme","fill"],[3,"cvcOptionChange","cvcColumnKey","cvcFilterOptions","cvcOption"],["nzCustomFilter","",1,"attribute-filter",3,"nzColumnKey","nzWidth","nzAlign","nzLeft","nzRight","nzFilterFn"],["nz-icon","","nzType","search"],[1,"ant-table-filter-dropdown"],[1,"custom-input-dropdown"],[3,"cvcModelChange","cvcPlaceholder","cvcModel"],[3,"cvcPlaceholder","cvcModel","cvcModelChange",4,"ngIf"],["nz-virtual-scroll",""],[1,"data-row"],[3,"nzChecked","nzAlign","nzLeft","nzRight","nzCheckedChange",4,"ngIf"],[3,"nzAlign","nzLeft","nzRight",4,"ngIf"],["class","default-col-type",3,"nzAlign","nzLeft","nzRight",4,"ngIf"],[3,"nzCheckedChange","nzChecked","nzAlign","nzLeft","nzRight"],[3,"nzAlign","nzLeft","nzRight"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"cvcTagTemplate","cvcTagListConfig"],[3,"cvcCollectionTagConfig","cvcTagTemplate","cvcShowFullLabels"],[3,"cvcTruncateLabel","cvcLinkableEntity","cvcEmphasize","cvcShowPopover","cvcStatus","cvcFullWidth"],[3,"cvcEmptyCategory"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip",4,"ngIf","ngIfElse"],["cvcContext","compact",3,"cvcFullWidth","cvcAttrValue","cvcTooltip"],["nz-tooltip","","style","width: 100%; cursor: help; color: #595959",3,"nzTooltipTitle",4,"ngIf","ngIfElse"],["nz-tooltip","",2,"width","100%","cursor","help","color","#595959",3,"nzTooltipTitle"],["nz-icon","","nzType","align-left","nzTheme","outline"],[1,"default-col-type",3,"nzAlign","nzLeft","nzRight"],[3,"innerHtml"],["nzSize","small",3,"nzSuffix"],["nz-input","",3,"nzFilterChange","placeholder","ngModel"],["nz-icon","","nzType","search","style","color: #ddd",4,"ngIf"],["nz-icon","","class","ant-input-clear-icon","nzTheme","fill","nzType","close-circle",3,"click",4,"ngIf"],["nz-icon","","nzType","search",2,"color","#ddd"],["nz-icon","","nzTheme","fill","nzType","close-circle",1,"ant-input-clear-icon",3,"click"],["nzSize","small"],[2,"width","100%",3,"ngModelChange","nzPlaceHolder","ngModel","nzMin","nzStep"],[3,"nzGutter"],["nzFlex","auto"],["nzColor","processing",4,"ngIf"],[3,"cvcShowTag"],[3,"cvcTableCountsConnection"],["nzFlex","35px"],["nz-button","","type","button","nzType","default","nzSize","small",3,"click"],["nz-icon","","nzType","retweet","nzTheme","outline"],["nz-button","","nz-popover","","nzPopoverTitle","Visible Columns","type","button","nzType","default","nzSize","small",3,"nzPopoverContent","nzPopoverTrigger"],["nz-icon","","nzType","setting","nzTheme","outline"],["nzColor","processing"],["nz-icon","","nzType","sync","nzSpin",""],["nzColor","error","style","margin-left: 12px",4,"ngIf"],["nzColor","error",2,"margin-left","12px"],["nz-icon","","nzType","question-circle","nzTheme","outline"],["nz-tooltip","",2,"cursor","help",3,"nzTooltipTitle","nzTooltipTitleContext"],["nz-typography",""],[1,"prefs-popover"],[3,"ngModelChange","ngModel"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"nz-card",21)(1,"nz-table",22,0),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.bIt("cvcTableScrollerOnScroll",function(bt){return e.eBV(_),e.Njj(h.onScroll$.next(bt))})("cvcTableScrollerOnFetch",function(bt){return e.eBV(_),e.Njj(h.onFetchMore$.next(bt))}),e.DNE(8,c2,5,2,"thead",23)(9,Ep,2,0,"tbody",23),e.k0s()(),e.DNE(10,Sh,3,2,"ng-template",null,1,e.C5r)(12,m2,4,2,"ng-template",null,2,e.C5r)(14,Ip,19,13,"ng-template",null,3,e.C5r)}if(2&c){const _=e.sdS(13),ne=e.sdS(15);e.Y8G("nzTitle",_)("nzExtra",ne),e.R7$(),e.Y8G("nzData",e.bMT(3,15,h.row$)||e.lJ4(25,Y4))("cvcTableScrollerQueryRef",h.queryRef)("cvcTableScrollerPageInfo",e.bMT(4,17,h.pageInfo$))("cvcTableScrollerToIndex",e.bMT(5,19,h.scrollToIndex$))("nzScroll",e.lJ4(26,pp))("nzVirtualForTrackBy",h.trackByIndex)("nzVirtualItemSize",28)("nzSize","small")("nzFrontPagination",!1)("nzShowPagination",!1)("nzLoading",e.bMT(6,21,h.loading$)&&!e.bMT(7,23,h.isFetchMore$)),e.R7$(7),e.Y8G("ngrxLet",h.col$),e.R7$(),e.Y8G("ngrxLet",h.col$)}},dependencies:[z.Sq,z.bT,z.T3,ln.b,ue,la,vo,vu,Ks.o,ol.M,t.me,t.BC,t.vS,Pi.Nj,Fn.aO,Fn.dn,bi.c,Do.p,R.Uq,R.e,te.Dn,P.Sy,P.tg,P.vN,it.Di,Qo.cK,_t.Ov,ns.wQ,G,Qe,xi.L_,fo.CP,fo.Cc,fo.SO,fo._4,fo.GM,fo.IL,fo.aj,fo.kt,fo.CC,fo.OL,fo.Kg,fo.jc,fo.oZ,ni.s,En.LH,e2,G4,yh,Ur,Sa.pW,hs.M,oo,Pi.L9],styles:["[_nghost-%COMP%]{display:block}nz-card[_ngcontent-%COMP%]:first-of-type .ant-card-body{padding:0;margin-top:1px}.table-info[_ngcontent-%COMP%]{margin-left:.5rem}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell.align-right[_ngcontent-%COMP%] .ant-table-column-title{text-align:right}tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%]{padding:3px 4px}tr.filter-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] nz-filter-trigger[_ngcontent-%COMP%] span.ant-dropdown-trigger{margin-left:0;padding-right:12px}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%]{white-space:nowrap}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .anticon.attribute-icon[_ngcontent-%COMP%]{color:#595959}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.overflow-ellipsis[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}tr.data-row[_ngcontent-%COMP%] td.ant-table-cell.button-cell[_ngcontent-%COMP%]{padding:0}tr.data-row[_ngcontent-%COMP%] td.align-right[_ngcontent-%COMP%], tr.col-header-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.data-row[_ngcontent-%COMP%] td.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%], tr.filter-row[_ngcontent-%COMP%] th.ant-table-cell[_ngcontent-%COMP%] .align-right[_ngcontent-%COMP%]{text-align:right}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{padding-left:6px}tr.data-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type cvc-entity-tag[_ngcontent-%COMP%]{margin-left:6px}td.default-col-type[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.ant-table-filter-dropdown[_ngcontent-%COMP%]{padding:8px}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label{display:block}.prefs-popover[_ngcontent-%COMP%] nz-checkbox-group:first-of-type label span{display:inline-block}"],changeDetection:0})};El=(0,Mi.Cg)([(0,gn.d)()],El);const c0=()=>[0,0];function l0(u,b){if(1&u&&(e.qex(0),e.j41(1,"span"),e.EFF(2),e.k0s(),e.bVm()),2&u){const c=b.ngrxLet;e.R7$(2),e.JRh(c.message)}}function xp(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG();e.JRh(c.successMessage)}}let v2=class Um{set cvcFeatureId(b){b&&this.featureId$.next(b)}set cvcFeatureName(b){b&&this.featureName$.next(b)}set cvcSearchString(b){b&&this.searchString$.next(b)}constructor(b,c){this.query=b,this.errors=c,this.cvcOnCreate=new e.bkB,this.form=new t.J3({}),this.model={name:""},this.formLayout="horizontal",this.options={formState:{formLayout:this.formLayout}},this.onSubmit$=new N.B,this.searchString$=new vn.t(void 0),this.featureName$=new vn.t(void 0),this.featureId$=new vn.t(void 0),this.formMessageDisplay$=new vn.t({message:"Variant does not exist, create it?"}),this.queryMutator=new fe.E(this.errors),this.addVariantMutator=new fe.E(this.errors),this.minNameLength=3,this.fields=[{key:"featureId",hide:!0,props:{required:!0}},{key:"name",hide:!0,props:{minLength:this.minNameLength,required:!0}},{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Add Variant"}}],this.featureId$.pipe((0,gn.s)(this)).subscribe(h=>{this.model.featureId=h}),this.searchString$.pipe((0,gn.s)(this)).subscribe(h=>{this.model.name=h,this.formMessageDisplay$.next(void 0===h||void 0!==h&&h.length{console.log("variant-quick-add form model submitted.",h),this.submitVariant(h)})}submitVariant(b){b.name&&b.featureId?this.mutationState=this.addVariantMutator.mutate(this.query,{name:b.name,featureId:b.featureId,organizationId:b.organizationId},{},c=>{console.log("variant-quick-add submit data callback",c),c.createVariant&&(this.formMessageDisplay$.next({message:void 0}),setTimeout(()=>{c&&c.createVariant&&this.cvcOnCreate.next({id:c.createVariant.variant.id,new:c.createVariant.new})},1e3))}):console.error("variant-quick-add form submitVariant requires model with valid name and featureId.")}ngOnChanges(b){if(b.cvcFeatureId){const c=b.cvcFeatureId.currentValue;this.featureId$.next(c),this.model={...this.model,featureId:c}}b.cvcFeatureName&&this.featureName$.next(b.cvcFeatureName.currentValue)}static#e=this.\u0275fac=function(c){return new(c||Um)(e.rXU(Hn.wdL),e.rXU(rt.N))};static#t=this.\u0275cmp=e.VBU({type:Um,selectors:[["cvc-variant-quick-add-form"]],inputs:{cvcFeatureId:"cvcFeatureId",cvcFeatureName:"cvcFeatureName",cvcSearchString:"cvcSearchString"},outputs:{cvcOnCreate:"cvcOnCreate"},features:[e.OA$],decls:8,vars:10,consts:[["success",""],[4,"ngrxLet"],["entityType","Variant",3,"mutationState","successMessage"],[3,"ngSubmit","formGroup"],[3,"nzGutter"],["nzSpan","24"],[3,"modelChange","form","fields","model","options"]],template:function(c,h){if(1&c){const _=e.RV6();e.DNE(0,l0,3,1,"ng-container",1),e.j41(1,"cvc-form-submission-status-display",2),e.DNE(2,xp,1,1,"ng-template",null,0,e.C5r),e.j41(4,"form",3),e.bIt("ngSubmit",function(){return e.eBV(_),e.Njj(h.onSubmit$.next(h.model))}),e.j41(5,"nz-row",4)(6,"nz-col",5)(7,"formly-form",6),e.bIt("modelChange",function(bt){return e.eBV(_),e.Njj(h.model=bt)}),e.k0s()()()()()}if(2&c){const _=e.sdS(3);e.Y8G("ngrxLet",h.formMessageDisplay$),e.R7$(),e.Y8G("mutationState",h.mutationState)("successMessage",_),e.R7$(3),e.Y8G("formGroup",h.form),e.R7$(),e.Y8G("nzGutter",e.lJ4(9,c0)),e.R7$(2),e.Y8G("form",h.form)("fields",h.fields)("model",h.model)("options",h.options)}},dependencies:[Ue.G,m.aF,t.qT,t.cb,Pi.Nj,R.Uq,R.e,t.j4],encapsulation:2,changeDetection:0})};v2=(0,Mi.Cg)([(0,gn.d)()],v2);var u0=a(5676);const zl=["optionTemplates"],H1=()=>[6,6],d0=(u,b)=>({show:u,hide:b});function h0(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",11)(1,"button",12),e.bIt("click",function(){e.eBV(c);const _=e.XpG();return e.Njj(_.onShowMgrClick$.next())}),e.nrm(2,"span",13),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.EFF(5," Manager "),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(2),e.Y8G("ngClass",e.l_i(6,d0,e.bMT(3,2,c.showMgr$),!e.bMT(4,4,c.showMgr$)))("nzType","caret-right")}}function p0(u,b){if(1&u){const c=e.RV6();e.j41(0,"nz-col",14)(1,"cvc-variant-manager",15),e.nI1(2,"ngrxPush"),e.bIt("cvcSelectedIdsChange",function(_){e.eBV(c);const ne=e.XpG();return e.Njj(ne.onPopulate$.next(_))}),e.k0s()()}if(2&u){const c=e.XpG();e.R7$(),e.Y8G("cvcSelectedIds",e.bMT(2,1,c.onVid$))}}function f0(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",20),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("nzTooltipTitle",c.variantAliases.join(", "))("innerHtml",e.i5U(3,2,c.variantAliases.join(", "),h),e.npT)}}function m0(u,b){1&u&&e.EFF(0,"--")}function g0(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",17),e.j41(1,"span",18)(2,"strong"),e.EFF(3,"Aliases:"),e.k0s(),e.DNE(4,f0,4,5,"ng-container",19)(5,m0,1,0,"ng-template",null,3,e.C5r),e.k0s()),2&u){const c=e.sdS(6),h=e.XpG().$implicit,_=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",h.__typename+":"+h.id)("cvcEmphasize",_),e.R7$(4),e.Y8G("ngIf",h.variantAliases.length>0)("ngIfElse",c)}}function Pp(u,b){1&u&&(e.qex(0),e.DNE(1,g0,7,5,"ng-template",null,2,e.C5r),e.bVm())}function v0(u,b){if(1&u&&(e.qex(0),e.DNE(1,Pp,3,0,"ng-container",16),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function _0(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",21)(1,"cvc-entity-tag",22),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","Variant:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}function y0(u,b){if(1&u&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&u){const c=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",c," does not match any existing Variants")}}function C0(u,b){if(1&u){const c=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(c);const _=e.XpG(3);return e.Njj(_.createFusionVariantModal())}),e.EFF(1," Open Fusion Variant Builder "),e.k0s()}}function wh(u,b){1&u&&(e.j41(0,"nz-space",23),e.DNE(1,y0,2,1,"span",25)(2,C0,2,0,"button",26),e.k0s())}function Ml(u,b){if(1&u){const c=e.RV6();e.j41(0,"cvc-variant-quick-add-form",29),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.bIt("cvcOnCreate",function(_){e.eBV(c);const ne=e.XpG(2);return e.Njj(ne.onSelectOrCreate(_))}),e.k0s()}if(2&u){const c=e.XpG().$implicit,h=e.XpG();e.Y8G("cvcSearchString",c)("cvcFeatureId",e.bMT(1,3,h.onFeatureId$))("cvcFeatureName",e.bMT(2,5,h.onFeatureName$))}}function Gd(u,b){if(1&u&&e.DNE(0,wh,3,0,"nz-space",23)(1,Ml,3,7,"cvc-variant-quick-add-form",24),2&u){const c=e.XpG();e.vxM("FUSION"==c.selectedFeatureType?0:1)}}const Fp=uo(Ei(),Wo());let Ih=(()=>{class u extends Fp{constructor(c,h,_,ne,bt){super(),this.taq=c,this.tq=h,this.featureQuery=_,this.changeDetectorRef=ne,this.modal=bt,this.onModel$=new Nn.c,this.defaultOptions={props:{label:"Variant",placeholder:"Search Variants",requireFeature:!0,requireFeaturePlaceholderFn:un=>`Search ${un} Variants`,requireFeaturePrompt:"Select a Feature to search its Variants",isMultiSelect:!1,entityName:{singular:"Variant",plural:"Variants"},showManagerBtn:!1,minSearchStrLength:0}},this.onFeatureName$=new vn.t(void 0),this.onVid$=new Ki.m,this.onShowMgrClick$=new N.B,this.showMgr$=this.onShowMgrClick$.pipe((0,Ws.S)((un,Wn)=>!un,!1))}ngAfterViewInit(){this.configureBaseField(),this.configureEntitySelectField({typeaheadQuery:this.taq,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent,minSearchStrLength:this.field.props.minSearchStrLength}),this.state&&this.state.formReady$?this.state.formReady$.pipe((0,Jt.p)(c=>c),(0,Es.s)(1),(0,gn.s)(this)).subscribe(c=>{this.configureField()}):this.configureField()}configureField(){this.configureStateConnections(),this.onVid$.pipe((0,gn.s)(this)).subscribe(),this.onVid$.next(this.formControl.value),this.onModel$=(0,Mo.z)([this.onFeatureId$,this.onSearch$]).pipe((0,ve.T)(([c,h])=>({featureId:c,name:h}))),this.onValueChange$.pipe((0,qi.E)(this.onVid$),(0,gn.s)(this)).subscribe(([c,h])=>{Array.isArray(c)&&this.onVid$.next(c)})}configureStateConnections(){if(this.state&&this.props.requireFeature){if(!this.state?.fields.featureId$)return void console.error(`${this.field.id} requireFeature is set, but no featureId$ subject found on state.`);this.onFeatureId$=this.state.fields.featureId$,this.onFeatureId$.pipe((0,gn.s)(this)).subscribe(c=>{this.onFeatureId(c)})}}getTypeaheadVarsFn(c){return{name:c,featureId:this.selectedFeatureId}}getTypeaheadResultsFn(c){return c.data.variantsTypeahead}getTagQueryVarsFn(c){return{variantId:c}}getTagQueryResultsFn(c){return c.data.variant}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}showAddBehavior(c,h){const _=c.toLowerCase();return c.length>=3&&!h.some(ne=>ne.name.toLowerCase()===_)}onSelectOrCreate(c){this.onPopulate$.next(c.id),this.formControl.setValue(c.id),this.props.isNewlyCreatedCallback&&this.props.isNewlyCreatedCallback(c.new)}onFeatureId(c){this.selectedFeatureId=c,!c&&this.props.requireFeature?(this.resetField(),this.props.description=this.props.requireFeaturePrompt,this.props.placeholder="Select a Variant",this.props.extraType="prompt",this.onFeatureName$.next(void 0)):c&&(this.props.description=void 0,this.props.extraType=void 0,Zs(this.featureQuery.fetch({featureId:c},{fetchPolicy:"cache-first"})).then(({data:h})=>{h?.feature?.name?(this.selectedFeatureType=h.feature.featureType,this.selectedFeature=h.feature,this.props.placeholder=this.props.requireFeature?this.props.requireFeaturePlaceholderFn(h.feature.name):this.props.placeholder,this.onFeatureName$.next(h.feature.name)):console.error(`${this.field.id} could not fetch feature name for Feature:${c}.`)}))}createFusionVariantModal(){const c=this.modal.create({nzTitle:"Add New Fusion Variant",nzContent:u0.aS,nzData:{feature:this.selectedFeature},nzFooter:null,nzWidth:"60%"});c.getContentComponent(),c.afterClose.pipe((0,gn.s)(this)).subscribe(h=>{h.variantId&&(this.onSelectOrCreate({id:h.variantId,new:!0}),this.onVid$.next(h.variantId))})}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.duD),e.rXU(Hn.y3W),e.rXU(Hn.$TJ),e.rXU(e.gRc),e.rXU(hi.N_))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["ng-component"]],viewQuery:function(h,_){if(1&h&&e.GBs(zl,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:20,vars:41,consts:[["selectedTemplate",""],["addVariant",""],["optionTemplates",""],["noAliases",""],[3,"nzGutter"],["nzFlex","auto"],["nz-tooltip","","nzTooltipTitle","Select a Feature to enable field.",3,"nzTooltipTrigger"],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcAddEntity","cvcAddEntityModel","cvcAddEntityBehavior","cvcMinSearchStrLength","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcDisabled","cvcOptions","cvcSelectOpen","cvcShowError","cvcLoading","cvcParamName"],["nzFlex","50px",4,"ngIf"],["nzSpan","24","class","manager-drawer",4,"ngIf"],[4,"ngrxLet"],["nzFlex","50px"],["type","button","nz-button","","nzBlock","",1,"manager-button",3,"click"],["nz-icon","",3,"ngClass","nzType"],["nzSpan","24",1,"manager-drawer"],[3,"cvcSelectedIdsChange","cvcSelectedIds"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf","ngIfElse"],["nz-typography","","nzType","secondary","nz-tooltip","",3,"nzTooltipTitle","innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"],["nzDirection","vertical"],[3,"cvcSearchString","cvcFeatureId","cvcFeatureName"],["nz-typography","",4,"nzSpaceItem"],["nz-button","","nzType","primary",3,"click",4,"nzSpaceItem"],["nz-typography",""],["nz-button","","nzType","primary",3,"click"],[3,"cvcOnCreate","cvcSearchString","cvcFeatureId","cvcFeatureName"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"nz-row",4)(1,"nz-col",5)(2,"span",6),e.nI1(3,"ngrxPush"),e.j41(4,"cvc-entity-select",7),e.nI1(5,"ngrxPush"),e.nI1(6,"ngrxPush"),e.nI1(7,"ngrxPush"),e.nI1(8,"ngrxPush"),e.nI1(9,"ngrxPush"),e.nI1(10,"ngrxPush"),e.nI1(11,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s()()(),e.DNE(12,h0,6,9,"nz-col",8)(13,p0,3,3,"nz-col",9),e.nI1(14,"ngrxPush"),e.k0s(),e.DNE(15,v0,3,3,"ng-container",10)(16,_0,2,3,"ng-template",null,0,e.C5r)(18,Gd,2,1,"ng-template",null,1,e.C5r)}if(2&h){const ne=e.sdS(17),bt=e.sdS(19);e.Y8G("nzGutter",e.lJ4(40,H1)),e.R7$(2),e.Y8G("nzTooltipTrigger",_.props.requireFeature&&!e.bMT(3,22,_.onFeatureId$)?"hover":null),e.R7$(2),e.Y8G("cvcAddEntity",bt)("cvcAddEntityModel",e.bMT(5,24,_.onModel$))("cvcAddEntityBehavior",_.showAddBehavior)("cvcMinSearchStrLength",_.props.minSearchStrLength)("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",_.props.placeholder)("cvcResults",e.bMT(6,26,_.result$))("cvcDisabled",_.props.requireFeature&&!e.bMT(7,28,_.onFeatureId$))("cvcOptions",e.bMT(8,30,_.selectOption$))("cvcSelectOpen",e.bMT(9,32,_.selectOpen$))("cvcShowError",_.showError)("cvcLoading",e.bMT(10,34,_.isLoading$))("cvcParamName",e.bMT(11,36,_.onFeatureName$)),e.R7$(8),e.Y8G("ngIf",_.props.showManagerBtn),e.R7$(),e.Y8G("ngIf",e.bMT(14,38,_.showMgr$)),e.R7$(2),e.Y8G("ngrxLet",_.onSearch$)}},styles:[".typeahead-match[_ngcontent-%COMP%]{font-weight:700}.hide-dropdown[_ngcontent-%COMP%]{display:none} nz-input-group{border-color:#d9d9d9!important}"],changeDetection:0})}return u})();const Ap={types:[{name:"variant-select",wrappers:["form-field"],component:Ih},{name:"variant-multi-select",wrappers:["form-field"],component:Ih,defaultOptions:{props:{label:"Variants",isMultiSelect:!0}}}]};let Qf=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,Cn,Ht._,Pn,Fe.P,_e.i,Ms,Xa,ds,Vl,to.F,or.y,m.qy.forChild(Ap),t.YN,wn.$,dt.jl,Fn.Zw,j.PQ,R.f3,te.Y3,P.j,hi.U6,ct.DH,it.kT,Fn.Zw,Qo.Ti,_t.IJ,ns.Cu,j.PQ,R.f3,te.Y3,P.j,ht,xi.MC,fo.$G,ni.T,En.Qt,it.kT,hi.U6,dn.pc,t.X1]})}return u})();e.wjB(Ih,function(){return[z.YU,z.Sq,z.bT,nn,ln.b,Pi.Nj,Fn.aO,bi.c,Do.p,R.Uq,R.e,te.Dn,it.Di,En.LH,dn.U5,dn.Dq,El,v2]},function(){return[hs.M,Pi.L9]});const b0=["optionTemplates"];function Jf(u,b){if(1&u&&(e.qex(0),e.j41(1,"em"),e.nrm(2,"span",8),e.nI1(3,"highlightTypeahead"),e.k0s(),e.bVm()),2&u){const c=e.XpG(2).$implicit,h=e.XpG().ngrxLet;e.R7$(2),e.Y8G("innerHtml",e.i5U(3,1,c.soid,h),e.npT)}}function _2(u,b){if(1&u&&(e.nrm(0,"cvc-entity-tag",5),e.j41(1,"span",6),e.DNE(2,Jf,4,4,"ng-container",7),e.k0s()),2&u){const c=e.XpG().$implicit,h=e.XpG().ngrxLet;e.Y8G("cvcDisableLink",!0)("cvcCacheId",c.__typename+":"+c.id)("cvcEmphasize",h),e.R7$(2),e.Y8G("ngIf",c.soid)}}function y2(u,b){1&u&&(e.qex(0),e.DNE(1,_2,3,4,"ng-template",null,1,e.C5r),e.bVm())}function qf(u,b){if(1&u&&(e.qex(0),e.DNE(1,y2,3,0,"ng-container",4),e.nI1(2,"ngrxPush"),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.result$))}}function Zf(u,b){if(1&u){const c=e.RV6();e.j41(0,"div",9)(1,"cvc-entity-tag",10),e.bIt("cvcOnClose",function(){const _=e.eBV(c).$implicit,ne=e.XpG();return e.Njj(ne.onTagClose$.next(_.nzValue))}),e.k0s()()}if(2&u){const c=b.$implicit,h=e.XpG();e.R7$(),e.Y8G("cvcCacheId","VariantType:"+c.nzValue)("cvcContext",h.props.isMultiSelect?"multi-select-item":"select-item")("cvcMode",h.props.isMultiSelect?"default":"closeable")}}const Rp=uo(Ei(),Wo());let Np=(()=>{class u extends Rp{constructor(c,h,_){super(),this.taq=c,this.tq=h,this.changeDetectorRef=_,this.defaultOptions={props:{entityName:{singular:"VariantType",plural:"VariantTypes"},isMultiSelect:!1,placeholders:{default:"Search Variant Types",multiDefault:"Select VariantType(s)"},description:'Add one or more variant types from the Sequence Ontology (e.g., missense, loss-of-function). Be specific as possible, avoid the addition of root concepts, and use the sequence_variant tree of the sequence ontology.'}},this.placeholder$=new vn.t(this.defaultOptions.props.placeholders.default)}ngAfterViewInit(){this.configureBaseField(),this.configureStateConnections(),this.configureEntitySelectField({typeaheadQuery:this.taq,typeaheadParam$:void 0,tagQuery:this.tq,getTypeaheadVarsFn:this.getTypeaheadVarsFn,getTypeaheadResultsFn:this.getTypeaheadResultsFn,getTagQueryVarsFn:this.getTagQueryVarsFn,getTagQueryResultsFn:this.getTagQueryResultsFn,getSelectedItemOptionFn:this.getSelectedItemOptionFn,getSelectOptionsFn:this.getSelectOptionsFn,changeDetectorRef:this.changeDetectorRef,selectOpen$:this.selectOpen$,selectComponent:this.selectComponent}),this.configurePlaceholders()}configureStateConnections(){}configurePlaceholders(){}getTypeaheadVarsFn(c){return{name:c}}getTypeaheadResultsFn(c){return c.data.variantTypeTypeahead}getTagQueryVarsFn(c){return{id:c}}getTagQueryResultsFn(c){return c.data.variantType}getSelectedItemOptionFn(c){return{value:c.id,label:c.name}}getSelectOptionsFn(c,h){return c.map((_,ne)=>({label:h.get(ne)||_.name,value:_.id}))}static#e=this.\u0275fac=function(h){return new(h||u)(e.rXU(Hn.Rqb),e.rXU(Hn.q7o),e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-variant-type-select"]],viewQuery:function(h,_){if(1&h&&e.GBs(b0,5,e.C4Q),2&h){let ne;e.mGM(ne=e.lsd())&&(_.optionTemplates=ne)}},features:[e.Vt3],decls:8,vars:19,consts:[["selectedTemplate",""],["optionTemplates",""],[3,"cvcOnSearch","cvcOnOpenChange","cvcOnModelChange","cvcSelectMode","cvcCustomTemplate","cvcFormControl","cvcFormlyAttributes","cvcEntityName","cvcPlaceholder","cvcResults","cvcOptions","cvcShowError","cvcLoading"],[4,"ngrxLet"],[4,"ngFor","ngForOf"],[3,"cvcDisableLink","cvcCacheId","cvcEmphasize"],["nz-typography","","nzType","secondary"],[4,"ngIf"],["nz-typography","","nzType","secondary",3,"innerHtml"],[1,"ant-select-selection-item-content"],[3,"cvcOnClose","cvcCacheId","cvcContext","cvcMode"]],template:function(h,_){if(1&h){const ne=e.RV6();e.j41(0,"cvc-entity-select",2),e.nI1(1,"ngrxPush"),e.nI1(2,"ngrxPush"),e.nI1(3,"ngrxPush"),e.nI1(4,"ngrxPush"),e.bIt("cvcOnSearch",function(un){return e.eBV(ne),e.Njj(_.onSearch$.next(un))})("cvcOnOpenChange",function(un){return e.eBV(ne),e.Njj(_.onOpenChange$?_.onOpenChange$.next(un):null)})("cvcOnModelChange",function(un){return e.eBV(ne),e.Njj(_.props.change&&_.props.change(_.field,un))}),e.k0s(),e.DNE(5,qf,3,3,"ng-container",3)(6,Zf,2,3,"ng-template",null,0,e.C5r)}if(2&h){const ne=e.sdS(7);e.Y8G("cvcSelectMode",_.props.isMultiSelect?"multiple":"default")("cvcCustomTemplate",ne)("cvcFormControl",_.formControl)("cvcFormlyAttributes",_.field)("cvcEntityName",_.props.entityName)("cvcPlaceholder",e.bMT(1,11,_.placeholder$))("cvcResults",e.bMT(2,13,_.result$))("cvcOptions",e.bMT(3,15,_.selectOption$))("cvcShowError",_.showError)("cvcLoading",e.bMT(4,17,_.isLoading$)),e.R7$(5),e.Y8G("ngrxLet",_.onSearch$)}},dependencies:[z.Sq,z.bT,Pi.Nj,it.Di,nn,ln.b,Pi.L9,hs.M],changeDetection:0})}return u})();const T0={types:[{name:"variant-type-select",wrappers:["form-field"],component:Np,defaultOptions:{props:{label:"Variant Type"}}},{name:"variant-type-multi-select",wrappers:["form-field"],component:Np,defaultOptions:{props:{isMultiSelect:!0,label:"Variant Types"}}}]};let E0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,m.qy.forChild(T0),wn.$,Fn.Zw,ct.DH,xi.MC,hi.U6,te.Y3,P.j,R.f3,En.Qt,dn.pc,j.PQ,dt.jl,it.kT,ni.T,Pn,Cn,_e.i,Ht._]})}return u})(),kp=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,yi,Er,kr,_s,ei,No,Be,Nc,Us,Ui,Ha,we,Li,fr,hr,Q1,td,dd,Cl,zd,Hu,ga,Od,Gu,hh,Kh,Ra,Ri,ao,R4,Qf,E0]})}return u})();const Vp=()=>[6,6];function z0(u,b){if(1&u&&e.EFF(0),2&u){const c=e.XpG();e.SpI(" ",c.props.addFormTitle,"\n")}}let C2=class Gm extends m.cm{constructor(){super(),this.contentTemplate$=new Ki.m}ngAfterViewInit(){this.field.props&&this.field.props.addFormContent?this.contentTemplate$.next(this.field.props.addFormContent):console.error(`${this.field.id} add-entity-form wrapper failed to find parent field's props.addFormContent TemplateRef.`)}static#e=this.\u0275fac=function(c){return new(c||Gm)};static#t=this.\u0275cmp=e.VBU({type:Gm,selectors:[["cvc-add-entity-form-wrapper"]],features:[e.Vt3],decls:10,vars:7,consts:[["fieldComponent",""],["titleTemplate",""],[3,"nzGutter"],["nzFlex","auto"],["nzFlex","20px"],["type","button","nz-button","","nzType","primary","nzSize","default","nzShape","circle","nz-popover","",3,"disabled","nzPopoverTitle","nzPopoverContent"],["nz-icon","","nzType","plus-circle","nzTheme","outline"]],template:function(c,h){if(1&c&&(e.j41(0,"nz-row",2)(1,"nz-col",3),e.eu8(2,null,0),e.k0s(),e.j41(4,"nz-col",4)(5,"button",5),e.nI1(6,"ngrxPush"),e.nrm(7,"span",6),e.k0s()()(),e.DNE(8,z0,1,1,"ng-template",null,1,e.C5r)),2&c){const _=e.sdS(9);e.Y8G("nzGutter",e.lJ4(6,Vp)),e.R7$(5),e.Y8G("disabled",null==h.field.props?null:h.field.props.disabled)("nzPopoverTitle",_)("nzPopoverContent",e.bMT(6,4,h.contentTemplate$))}},dependencies:[Fn.aO,bi.c,Do.p,xi.L_,te.Dn,R.Uq,R.e,Pi.L9],styles:[".add-button[_ngcontent-%COMP%]{font-size:24px;color:#cfcfdf}"],changeDetection:0})};C2=(0,Mi.Cg)([(0,gn.d)()],C2);const e3={wrappers:[{name:"add-entity-form",component:C2}]};let t3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,m.qy.forChild(e3),Fn.Zw,xi.MC,te.Y3,R.f3]})}return u})();function M0(u,b){1&u&&e.nrm(0,"formly-field",2),2&u&&e.Y8G("field",b.$implicit)}const b2={size:"default"},Lp={wrappers:[{name:"form-card",component:(()=>{class u extends m.cm{get errorState(){return this.showError?"error":""}constructor(){super(),this.wrapperOptions={...b2}}ngOnInit(){this.props.formCardOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formCardOptions})}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-card"]],features:[e.Vt3],decls:2,vars:3,consts:[[3,"nzTitle","nzSize"],[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(h,_){if(1&h&&(e.j41(0,"nz-card",0),e.DNE(1,M0,1,1,"formly-field",1),e.k0s()),2&h){let ne;e.Y8G("nzTitle",_.wrapperOptions.title)("nzSize",null!==(ne=_.wrapperOptions.size)&&void 0!==ne?ne:"default"),e.R7$(),e.Y8G("ngForOf",_.field.fieldGroup)}},dependencies:[z.Sq,m.ac,Qo.cK]})}return u})()}]};let i3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.YN,m.qy.forChild(Lp),R.f3,Qo.Ti,_t.IJ]})}return u})();const D0={wrappers:[{name:"form-footer",component:(()=>{class u extends m.cm{ngOnInit(){}static#e=this.\u0275fac=(()=>{let c;return function(_){return(c||(c=e.xGo(u)))(_||u)}})();static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-footer"]],features:[e.Vt3],decls:4,vars:0,consts:[["fieldComponent",""],[1,"form-footer"],["nzSpan","24",1,"submit-col"]],template:function(h,_){1&h&&(e.j41(0,"nz-row",1)(1,"nz-col",2),e.eu8(2,null,0),e.k0s()())},dependencies:[R.Uq,R.e],styles:[".form-footer[_ngcontent-%COMP%]{margin-top:1em;border-radius:8px;background-color:#f0f0f0;padding:1em}.submit-col[_ngcontent-%COMP%]{text-align:right}"],changeDetection:0})}return u})()}]};let Bp=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,R.f3,m.qy.forChild(D0)]})}return u})();var S0=a(2242),$p=a(2e3),T2=a(9541);let r3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,te.Y3,R.f3,Qo.Ti,T2.hM,$p.WF,fs.rD,ni.T,it.kT,Le.s]})}return u})(),s3=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,Fn.Zw,na.Yb,ns.Cu]})}return u})();var O0=a(5312);const Xm={VALID:"success",INVALID:"error",PENDING:"processing",DISABLED:"default"};let a3=(()=>{class u{constructor(){this.tagColor="default"}set cvcFormControlStatus(c){this._status=c,this.tagColor=c?Xm[c]:"default"}get cvcFormControlStatus(){return this._status}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-status-tag"]],inputs:{cvcFormControlStatus:"cvcFormControlStatus"},decls:3,vars:4,consts:[[3,"nzColor"]],template:function(h,_){1&h&&(e.j41(0,"nz-tag",0),e.EFF(1),e.nI1(2,"lowercase"),e.k0s()),2&h&&(e.Y8G("nzColor",_.tagColor),e.R7$(),e.SpI(" ",_.cvcFormControlStatus?e.bMT(2,2,_.cvcFormControlStatus):"UNKNOWN","\n"))},dependencies:[ni.s,z.GH]})}return u})();const Wd=(u,b)=>({key:u,ctrl:b});function c3(u,b){if(1&u&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&u){const c=e.XpG(2).ctrl;e.R7$(),e.SpI(" ",c.value," ")}}function l3(u,b){1&u&&(e.j41(0,"span",9),e.EFF(1," undefined "),e.k0s())}function u3(u,b){if(1&u&&(e.j41(0,"nz-list-item")(1,"nz-list-item-meta")(2,"nz-list-item-meta-title"),e.EFF(3),e.k0s(),e.j41(4,"nz-list-item-meta-description"),e.DNE(5,c3,2,1,"span",6)(6,l3,2,0,"span",7),e.k0s()(),e.j41(7,"nz-list-item-extra"),e.nrm(8,"cvc-form-status-tag",8),e.k0s()()),2&u){const c=e.XpG(),h=c.ctrl,_=c.key;e.R7$(3),e.SpI(" ",_," "),e.R7$(2),e.Y8G("ngIf",h.value),e.R7$(),e.Y8G("ngIf",!h.value),e.R7$(2),e.Y8G("cvcFormControlStatus",h.status)}}function w0(u,b){}function d3(u,b){if(1&u&&e.DNE(0,w0,0,0,"ng-template",12),2&u){const c=b.$implicit;e.XpG(3);const h=e.sdS(3);e.Y8G("ngTemplateOutlet",h)("ngTemplateOutletContext",e.l_i(2,Wd,c.key,c.value))}}function h3(u,b){if(1&u&&(e.j41(0,"strong"),e.EFF(1),e.k0s()),2&u){const c=e.XpG(2).key;e.R7$(),e.JRh(c)}}function p3(u,b){if(1&u&&(e.j41(0,"nz-list-item")(1,"nz-card",10)(2,"nz-list",11),e.DNE(3,d3,1,5,null,5),e.nI1(4,"keyvalue"),e.k0s()(),e.DNE(5,h3,2,1,"ng-template",null,2,e.C5r),e.k0s()),2&u){const c=e.XpG(),h=c.ctrl,_=c.key;e.R7$(),e.Y8G("nzTitle",_),e.R7$(2),e.Y8G("ngForOf",e.bMT(4,2,h.controls))}}function f3(u,b){if(1&u&&e.DNE(0,u3,9,4,"nz-list-item",6)(1,p3,7,4,"nz-list-item",6),2&u){const c=b.ctrl;e.Y8G("ngIf",!c.controls),e.R7$(),e.Y8G("ngIf",c.controls)}}function m3(u,b){}function g3(u,b){if(1&u&&e.DNE(0,m3,0,0,"ng-template",12),2&u){const c=b.$implicit;e.XpG();const h=e.sdS(3);e.Y8G("ngTemplateOutlet",h)("ngTemplateOutletContext",e.l_i(2,Wd,c.key,c.value))}}function Hp(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-list",4),e.DNE(2,f3,2,2,"ng-template",null,1,e.C5r),e.k0s(),e.DNE(4,g3,1,5,null,5),e.nI1(5,"keyvalue"),e.bVm()),2&u){const c=b.ngIf;e.R7$(4),e.Y8G("ngForOf",e.bMT(5,1,c.controls))}}function Qm(u,b){1&u&&e.EFF(0," No AbstractFormControl provided. ")}let Jm=(()=>{class u{set cvcAbstractControl(c){if(!c)throw new Error("cvc-form-debug-field-list requires valid cvcFormControl Input.");this._cvcFormControl=c,this.formControl=c}get cvcFormControl(){return this._cvcFormControl}constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-debug-field-list"]],inputs:{cvcAbstractControl:"cvcAbstractControl"},decls:3,vars:2,consts:[["noFormControl",""],["ctrlTemplateRef",""],["cardExtra",""],[4,"ngIf","ngIfElse"],["nzSize","small"],[4,"ngFor","ngForOf"],[4,"ngIf"],["style","padding: 0px 4px; color: white; background-color: #ccc",4,"ngIf"],[3,"cvcFormControlStatus"],[2,"padding","0px 4px","color","white","background-color","#ccc"],["nzSize","small",2,"width","100%",3,"nzTitle"],["nzSize","small",2,"padding","0"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(h,_){if(1&h&&e.DNE(0,Hp,6,3,"ng-container",3)(1,Qm,1,0,"ng-template",null,0,e.C5r),2&h){const ne=e.sdS(2);e.Y8G("ngIf",_.formControl)("ngIfElse",ne)}},dependencies:[z.Sq,z.bT,z.T3,Qo.cK,fs.eE,fs.lQ,fs.qx,fs.mf,fs.YU,fs.$2,a3,z.lG],styles:["[_nghost-%COMP%] nz-card .ant-card-body{padding:6px 0}"]})}return u})();function jp(u,b){if(1&u&&(e.qex(0),e.nrm(1,"ngx-json-viewer",9),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("json",c.watchModel)}}function qm(u,b){if(1&u&&(e.qex(0),e.j41(1,"nz-descriptions",10)(2,"nz-descriptions-item",11),e.nrm(3,"cvc-form-status-tag",12),e.k0s(),e.j41(4,"nz-descriptions-item",13),e.EFF(5),e.k0s(),e.j41(6,"nz-descriptions-item",14),e.EFF(7),e.k0s(),e.j41(8,"nz-descriptions-item",15),e.EFF(9),e.k0s(),e.j41(10,"nz-descriptions-item",16),e.EFF(11),e.k0s(),e.j41(12,"nz-descriptions-item",17),e.EFF(13),e.k0s()(),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("nzColumn",1),e.R7$(2),e.Y8G("cvcFormControlStatus",null==c.cvcForm?null:c.cvcForm.status),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.pending," "),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.touched," "),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.valid," "),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.dirty," "),e.R7$(2),e.SpI(" ",null==c.cvcForm?null:c.cvcForm.enabled," ")}}function Zm(u,b){if(1&u&&(e.qex(0),e.nrm(1,"cvc-form-debug-field-list",18),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("cvcAbstractControl",c.cvcForm)}}function e8(u,b){1&u&&(e.qex(0),e.EFF(1," State Content "),e.bVm())}function t8(u,b){if(1&u&&(e.j41(0,"nz-row")(1,"nz-col",19),e.EFF(2," Form Details "),e.k0s(),e.j41(3,"nz-col",20),e.nrm(4,"cvc-form-status-tag",12),e.k0s()()),2&u){const c=e.XpG();e.R7$(4),e.Y8G("cvcFormControlStatus",null==c.cvcForm?null:c.cvcForm.status)}}let I0=class Ym{constructor(b){this.cdr=b,this.selectedIndex=0}ngOnInit(){if(!this.cvcForm)throw new Error("cvc-form-debug requires valid cvcForm Input.");this.valueChange$=new vn.t(this.cvcForm.value),this.statusChange$=new vn.t(this.cvcForm.status),this.formChange$=br([this.statusChange$,this.valueChange$]),this.watchModel=this.cvcModel,this.subscriptions=[this.cvcForm.valueChanges.subscribe(b=>{this.watchModel={...this.cvcModel},this.valueChange$.next(b)}),this.cvcForm.statusChanges.subscribe(b=>{this.statusChange$.next(b)}),this.formChange$.subscribe(b=>{this.cdr.detectChanges()})]}static#e=this.\u0275fac=function(c){return new(c||Ym)(e.rXU(e.gRc))};static#t=this.\u0275cmp=e.VBU({type:Ym,selectors:[["cvc-form-debug"]],inputs:{cvcForm:"cvcForm",cvcModel:"cvcModel"},decls:14,vars:7,consts:[["cardTitle",""],["nzSize","small","nzBordered","true",3,"nzTitle"],["nzSize","small",3,"nzSelectedIndexChange","nzSelectedIndex"],["nzTitle","Model"],["nzTitle","Controls"],["nzTitle","State"],["nzTitle","Form Status"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"json"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","status"],[3,"cvcFormControlStatus"],["nzTitle","pending"],["nzTitle","touched"],["nzTitle","valid"],["nzTitle","dirty"],["nzTitle","enabled"],[3,"cvcAbstractControl"],["nzFlex","2"],["nzFlex","3",1,"form-status-col"]],template:function(c,h){if(1&c){const _=e.RV6();e.j41(0,"nz-card",1)(1,"nz-card-tab")(2,"nz-tabset",2),e.mxI("nzSelectedIndexChange",function(bt){return e.eBV(_),e.DH7(h.selectedIndex,bt)||(h.selectedIndex=bt),e.Njj(bt)}),e.nrm(3,"nz-tab",3)(4,"nz-tab",4)(5,"nz-tab",5)(6,"nz-tab",6),e.k0s()(),e.qex(7,7),e.DNE(8,jp,2,1,"ng-container",8)(9,qm,14,7,"ng-container",8)(10,Zm,2,1,"ng-container",8)(11,e8,2,0,"ng-container",8),e.bVm(),e.k0s(),e.DNE(12,t8,5,1,"ng-template",null,0,e.C5r)}if(2&c){const _=e.sdS(13);e.Y8G("nzTitle",_),e.R7$(2),e.R50("nzSelectedIndex",h.selectedIndex),e.R7$(5),e.Y8G("ngSwitch",h.selectedIndex),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",3),e.R7$(),e.Y8G("ngSwitchCase",1),e.R7$(),e.Y8G("ngSwitchCase",2)}},dependencies:[z.ux,z.e1,R.Uq,R.e,Qo.cK,Qo.RO,T2.JZ,T2.rE,$p.xA,$p.gr,Le.J,Jm,a3],styles:["[_nghost-%COMP%]{display:block}.form-status-col[_ngcontent-%COMP%]{text-align:right}.form-status-col[_ngcontent-%COMP%] nz-tag[_ngcontent-%COMP%]:last-child{margin-right:0}"],changeDetection:0})};I0=(0,Mi.Cg)([(0,gn.d)({arrayName:"subscriptions"})],I0);const v3=()=>[8,8];function E2(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"cvc-form-debug",5),e.k0s()),2&u){const c=e.XpG();e.Y8G("nzSpan",8),e.R7$(),e.Y8G("cvcForm",c.form)("cvcModel",c.model)}}let M2=class Wm extends m.cm{constructor(){super()}get errorState(){return this.showError?"error":""}ngOnInit(){this.props.showDevPanel=!O0.c.production&&(this.props.showDevPanel||false)}static#e=this.\u0275fac=function(c){return new(c||Wm)};static#t=this.\u0275cmp=e.VBU({type:Wm,selectors:[["cvc-form-layout-wrapper"]],features:[e.Vt3],decls:5,vars:4,consts:[["fieldComponent",""],[3,"nzGutter"],[1,"form-col",3,"nzSpan"],["class","status-col",3,"nzSpan",4,"ngIf"],[1,"status-col",3,"nzSpan"],[3,"cvcForm","cvcModel"]],template:function(c,h){1&c&&(e.j41(0,"nz-row",1)(1,"nz-col",2),e.eu8(2,null,0),e.k0s(),e.DNE(4,E2,2,3,"nz-col",3),e.k0s()),2&c&&(e.Y8G("nzGutter",e.lJ4(3,v3)),e.R7$(),e.Y8G("nzSpan",h.props.showDevPanel?16:24),e.R7$(3),e.Y8G("ngIf",h.props.showDevPanel))},dependencies:[z.bT,R.Uq,R.e,I0],changeDetection:0})};M2=(0,Mi.Cg)([(0,gn.d)({arrayName:"subscriptions"})],M2);const x0={wrappers:[{name:"form-layout",component:M2}]};let P0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,m.qy.forChild(x0),Fn.Zw,Qo.Ti,te.Y3,ni.T,T2.hM,xi.MC,fs.rD,R.f3,S0.i,s3,r3,Le.s]})}return u})();function F0(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"formly-field",5),e.k0s()),2&u){let c;const h=b.$implicit,_=e.XpG(2);e.Y8G("nzSpan",null!==(c=_.wrapperOptions.span)&&void 0!==c?c:null),e.R7$(),e.Y8G("field",h)}}function _3(u,b){if(1&u&&e.DNE(0,F0,2,2,"nz-col",3),2&u){const c=e.XpG();e.Y8G("ngForOf",c.field.fieldGroup)}}function A0(u,b){if(1&u&&(e.j41(0,"nz-col",8),e.nrm(1,"formly-field",5),e.k0s()),2&u){const c=b.$implicit,h=e.XpG(3);e.Y8G("nzFlex",h.wrapperOptions.flex),e.R7$(),e.Y8G("field",c)}}function Kd(u,b){if(1&u&&(e.qex(0),e.DNE(1,A0,2,2,"nz-col",7),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function nc(u,b){if(1&u&&(e.j41(0,"nz-col",10),e.nrm(1,"formly-field",5),e.k0s()),2&u){let c,h,_,ne,bt,un;const Wn=b.$implicit,Gi=e.XpG(3);e.Y8G("nzXs",null!==(c=Gi.wrapperOptions.responsive.xs)&&void 0!==c?c:null)("nzSm",null!==(h=Gi.wrapperOptions.responsive.sm)&&void 0!==h?h:null)("nzMd",null!==(_=Gi.wrapperOptions.responsive.md)&&void 0!==_?_:null)("nzLg",null!==(ne=Gi.wrapperOptions.responsive.lg)&&void 0!==ne?ne:null)("nzXl",null!==(bt=Gi.wrapperOptions.responsive.xl)&&void 0!==bt?bt:null)("nzXXl",null!==(un=Gi.wrapperOptions.responsive.xxl)&&void 0!==un?un:null),e.R7$(),e.Y8G("field",Wn)}}function ka(u,b){if(1&u&&(e.qex(0),e.DNE(1,nc,2,7,"nz-col",9),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function R0(u,b){if(1&u&&(e.j41(0,"nz-col",4),e.nrm(1,"formly-field",5),e.k0s()),2&u){const c=b.$implicit,h=b.index,_=e.XpG(3);e.Y8G("nzSpan",_.wrapperOptions.spanIndexed[h]),e.R7$(),e.Y8G("field",c)}}function n8(u,b){if(1&u&&(e.qex(0),e.DNE(1,R0,2,2,"nz-col",3),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function y3(u,b){if(1&u&&(e.j41(0,"nz-col",10),e.nrm(1,"formly-field",5),e.k0s()),2&u){let c,h,_,ne,bt,un;const Wn=b.$implicit,Gi=b.index,ko=e.XpG(3);e.Y8G("nzXs",null!==(c=ko.wrapperOptions.responsiveIndexed[Gi].xs)&&void 0!==c?c:null)("nzSm",null!==(h=ko.wrapperOptions.responsiveIndexed[Gi].sm)&&void 0!==h?h:null)("nzMd",null!==(_=ko.wrapperOptions.responsiveIndexed[Gi].md)&&void 0!==_?_:null)("nzLg",null!==(ne=ko.wrapperOptions.responsiveIndexed[Gi].lg)&&void 0!==ne?ne:null)("nzXl",null!==(bt=ko.wrapperOptions.responsiveIndexed[Gi].xl)&&void 0!==bt?bt:null)("nzXXl",null!==(un=ko.wrapperOptions.responsiveIndexed[Gi].xxl)&&void 0!==un?un:null),e.R7$(),e.Y8G("field",Wn)}}function i8(u,b){if(1&u&&(e.qex(0),e.DNE(1,y3,2,7,"nz-col",9),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function o8(u,b){if(1&u&&(e.j41(0,"nz-col",8),e.nrm(1,"formly-field",5),e.k0s()),2&u){const c=b.$implicit,h=b.index,_=e.XpG(3);e.Y8G("nzFlex",_.wrapperOptions.flexIndexed[h]),e.R7$(),e.Y8G("field",c)}}function N0(u,b){if(1&u&&(e.qex(0),e.DNE(1,o8,2,2,"nz-col",7),e.bVm()),2&u){const c=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c.field.fieldGroup)}}function k0(u,b){if(1&u&&(e.qex(0),e.DNE(1,Kd,2,1,"ng-container",6)(2,ka,2,1,"ng-container",6)(3,n8,2,1,"ng-container",6)(4,i8,2,1,"ng-container",6)(5,N0,2,1,"ng-container",6),e.bVm()),2&u){const c=e.XpG();e.R7$(),e.Y8G("ngIf",c.wrapperOptions.flex),e.R7$(),e.Y8G("ngIf",c.wrapperOptions.responsive),e.R7$(),e.Y8G("ngIf",c.wrapperOptions.spanIndexed),e.R7$(),e.Y8G("ngIf",c.wrapperOptions.responsiveIndexed),e.R7$(),e.Y8G("ngIf",c.wrapperOptions.flexIndexed)}}const r8={gutter:[8,8],span:24},Gp={wrappers:[{name:"form-row",component:(()=>{class u extends m.cm{constructor(){super(),this.wrapperOptions={...r8},this.topMargin="0"}ngOnInit(){this.props.formRowOptions&&(this.wrapperOptions={...this.wrapperOptions,...this.props.formRowOptions}),this.topMargin=Array.isArray(this.wrapperOptions.gutter)?this.wrapperOptions.gutter[1]>0?this.wrapperOptions.gutter[1]/2+"px":"0":this.wrapperOptions.gutter&&this.wrapperOptions.gutter>0?this.wrapperOptions.gutter+"px":"0"}static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275cmp=e.VBU({type:u,selectors:[["cvc-form-row"]],features:[e.Vt3],decls:5,vars:4,consts:[["defaultCol",""],[1,"form-row-wrapped",3,"nzGutter"],[4,"ngIf","ngIfElse"],[3,"nzSpan",4,"ngFor","ngForOf"],[3,"nzSpan"],[3,"field"],[4,"ngIf"],[3,"nzFlex",4,"ngFor","ngForOf"],[3,"nzFlex"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl",4,"ngFor","ngForOf"],[3,"nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"]],template:function(h,_){if(1&h&&(e.j41(0,"div")(1,"nz-row",1),e.DNE(2,_3,1,1,"ng-template",null,0,e.C5r)(4,k0,6,5,"ng-container",2),e.k0s()()),2&h){let ne;const bt=e.sdS(3);e.BMQ("style","margin-top: "+_.topMargin,e.$dS),e.R7$(),e.Y8G("nzGutter",null!==(ne=_.wrapperOptions.gutter)&&void 0!==ne?ne:null),e.R7$(3),e.Y8G("ngIf",_.wrapperOptions.flex||_.wrapperOptions.flexIndexed||_.wrapperOptions.spanIndexed||_.wrapperOptions.responsive||_.wrapperOptions.responsiveIndexed)("ngIfElse",bt)}},dependencies:[z.Sq,z.bT,R.Uq,R.e,m.ac],changeDetection:0})}return u})()}]};let Yp=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,t.X1,j.PQ,R.f3,m.qy.forChild(Gp)]})}return u})(),V0=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({imports:[z.MD,P0,i3,Bp,Pn,Yp,t3]})}return u})(),Xd=(()=>{class u{static#e=this.\u0275fac=function(h){return new(h||u)};static#t=this.\u0275mod=e.$C({type:u});static#n=this.\u0275inj=e.G2t({providers:[{provide:m.hL,multi:!0,useFactory:Ve,deps:[r.nX]}],imports:[m.qy.forRoot(W),t.X1,j.PQ,Ne,V0,Le.s,t.X1,m.qy,Ne,j.PQ,V0,kp]})}return u})()},5676:($t,De,a)=>{a.d(De,{UH:()=>oe,aS:()=>Ie,kf:()=>ee,t_:()=>Ee});var t=a(1635),r=a(3953),m=a(9417),e=a(9145),z=a(8524),j=a(177),R=a(8927),$=a(513),k=a(1188),I=a(3617),w=a(9894),P=a(1226),Q=a(2096),N=a(6912),x=a(4222);const oe=[{label:"+",value:e.OP3.Positive},{label:"-",value:e.OP3.Negative}],ee=ce=>!ce.value||/^\d+$/.test(ce.value),Ee=ce=>!ce.value||/ENST\d{11}\.\d{1,2}/.test(ce.value);let Ie=class Km{#e;constructor(Pe,ve){this.query=Pe,this.onVariantSelected=new r.bkB,this.#e=(0,r.WQX)(Q.J9),this.nzModalData=(0,r.WQX)(Q.or),this.layout="vertical",this.selectOrCreateFusionMutator=new P.E(ve),this.form=new m.J3({}),this.model={fivePrimeTranscript:void 0,fivePrimeExonEnd:void 0,fivePrimeOffset:void 0,fivePrimeOffsetDirection:void 0,threePrimeTranscript:void 0,threePrimeExonStart:void 0,threePrimeOffsetDirection:void 0,ensemblVersion:void 0,referenceBuild:void 0,organizationId:void 0},this.options={};let pe=!1,U=!1;if("Fusion"==this.nzModalData.feature?.featureInstance.__typename){const M=this.nzModalData.feature.featureInstance;pe=M.fivePrimePartnerStatus!=e.hBv.Known,U=M.threePrimePartnerStatus!=e.hBv.Known}this.config=[{wrappers:["form-layout"],props:{showDevPanel:!1},fieldGroup:[{wrappers:["form-card"],props:{formCardOptions:{title:`New Fusion Variant for ${this.nzModalData.feature?.name}`}},fieldGroup:[{wrappers:["form-row"],props:{formRowOptions:{span:12}},fieldGroup:[{key:"referenceBuild",type:"reference-build-select",props:{required:!0}},{key:"ensemblVersion",type:"base-input",validators:{nccnVersionNumber:{expression:M=>!M.value||/^\d{2,3}$/.test(M.value),message:(M,te)=>`"${te.formControl?.value}" does not appear to be an Ensembl version number`}},props:{label:"Ensembl Version",description:"Enter a valid Ensembl database version (e.g. 75)",required:!0}}]},{wrappers:["form-row"],props:{formRowOptions:{span:6}},fieldGroup:[{key:"fivePrimeTranscript",type:"base-input",props:{label:"5' Transcript",required:!pe,disabled:pe,tooltip:"Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 5' exon you have selected"},validators:{isTranscriptId:{expression:Ee,message:"5' Transcript must be a valid, human, versioned, Ensembl transcript ID"}}},{key:"fivePrimeExonEnd",type:"base-input",validators:{isNumeric:{expression:ee,message:"5' exon must be numeric"}},props:{label:"5' End Exon",required:!pe,disabled:pe,tooltip:"The exon number counted from the 5\u2019 end of the transcript."}},{key:"fivePrimeOffset",type:"base-input",validators:{isNumeric:{expression:ee,message:"5' exon offset must be numeric"}},props:{label:"5' Exon Offset",tooltip:"A value representing the offset from the segment boundary.",required:!1,disabled:pe}},{key:"fivePrimeOffsetDirection",type:"base-select",props:{label:"5' Exon Offset Direction",tooltip:"Negative values offset towards the 5\u2019 end of the transcript and positive values offset towards the 3\u2019 end of the transcript.",required:!0,placeholder:"5' Offset Direction",options:oe,multiple:!1},expressions:{"props.disabled":M=>!M.model.fivePrimeOffset,"props.required":M=>!!M.model.fivePrimeOffset}}]},{wrappers:["form-row"],props:{formRowOptions:{span:6}},fieldGroup:[{key:"threePrimeTranscript",type:"base-input",props:{required:!U,disabled:U,label:"3' Transcript",tooltip:"Specify a transcript ID, including version number (e.g. ENST00000348159.4) for the 3' exon you have selected"},validators:{isTranscriptId:{expression:Ee,message:"5' Transcript must be a valid, human, versioned, Ensembl transcript ID"}}},{key:"threePrimeExonStart",type:"base-input",validators:{isNumeric:{expression:ee,message:"3' exon must be numeric"}},props:{label:"3' Start Exon",tooltip:"The exon number counted from the 5\u2019 end of the transcript.",required:!U,disabled:U}},{key:"threePrimeOffset",type:"base-input",validators:{isNumeric:{expression:ee,message:"3' exon must be numeric"}},props:{label:"3' Exon Offset",disabled:U,required:!1,tooltip:"A value representing the offset from the segment boundary."}},{key:"threePrimeOffsetDirection",type:"base-select",props:{label:"3' Exon Offset Direction",tooltip:"Negative values offset towards the 5\u2019 end of the transcript and positive values offset towards the 3\u2019 end of the transcript.",required:!0,placeholder:"3' Offset Direction",options:oe,multiple:!1},expressions:{"props.disabled":M=>!M.model.threePrimeOffset,"props.required":M=>!!M.model.threePrimeOffset}}]},{wrappers:["form-row"],props:{formRowOptions:{span:24}},fieldGroup:[{key:"organizationId",type:"org-submit-button",props:{submitLabel:"Create Fusion Variant",align:"right"}}]}]}]}]}modelChange(Pe){Pe&&(this.model.fivePrimeOffset||(this.model={...this.model,fivePrimeOffsetDirection:void 0}),this.model.threePrimeOffset||(this.model={...this.model,threePrimeOffsetDirection:void 0}))}submitFusion(Pe){const ve=U=>{if(U)return+U},pe=this.nzModalData.feature?.id;if(Pe&&pe){const U={fivePrimeTranscript:Pe.fivePrimeTranscript,fivePrimeExonEnd:ve(Pe.fivePrimeExonEnd),fivePrimeOffset:ve(Pe.fivePrimeOffset),fivePrimeOffsetDirection:Pe.fivePrimeOffsetDirection,threePrimeTranscript:Pe.threePrimeTranscript,threePrimeExonStart:ve(Pe.threePrimeExonStart),threePrimeOffset:ve(Pe.threePrimeOffset),threePrimeOffsetDirection:Pe.threePrimeOffsetDirection,referenceBuild:Pe.referenceBuild,ensemblVersion:+Pe.ensemblVersion};this.mutationState=this.selectOrCreateFusionMutator.mutate(this.query,{organizationId:Pe.organizationId,featureId:pe,coordinates:U},{},M=>{if(M.createFusionVariant?.variant.id){const te=M.createFusionVariant.variant.id;this.onVariantSelected.next(te),this.#e&&this.#e.destroy({variantId:te})}})}}static#t=this.\u0275fac=function(ve){return new(ve||Km)(r.rXU(e.j8M),r.rXU(x.N))};static#n=this.\u0275cmp=r.VBU({type:Km,selectors:[["cvc-fusion-variant-select-form"]],outputs:{onVariantSelected:"onVariantSelected"},standalone:!0,features:[r.aNF],decls:2,vars:6,consts:[["nz-form","",3,"ngSubmit","nzLayout","formGroup"],[3,"modelChange","form","fields","model","options"]],template:function(ve,pe){1&ve&&(r.j41(0,"form",0),r.bIt("ngSubmit",function(){return pe.submitFusion(pe.model)}),r.j41(1,"formly-form",1),r.bIt("modelChange",function(M){return pe.modelChange(M)}),r.k0s()()),2&ve&&(r.Y8G("nzLayout",pe.layout)("formGroup",pe.form),r.R7$(),r.Y8G("form",pe.form)("fields",pe.config)("model",pe.model)("options",pe.options))},dependencies:[j.MD,m.X1,m.qT,m.cb,m.j4,R.PQ,R.CA,$.Zw,I.$,Q.U6,k.iI,z.qy,z.aF,N.l],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})};Ie=(0,t.Cg)([(0,w.d)()],Ie)},5741:($t,De,a)=>{function t($){let k={value:void 0,unset:void 0};return $&&$.trim().length>0?k.value=$.trim():k.unset=!0,k}function r($){let k={value:void 0,unset:void 0};return void 0!==$?k.value=$:k.unset=!0,k}function m($){return $?+$:void 0}a.d(De,{Kd:()=>R,cD:()=>e,pz:()=>r,q2:()=>t,tV:()=>m});var e=function($){return $[$.NotApplicable=0]="NotApplicable",$[$.NoneFound=1]="NoneFound",$[$.Found=2]="Found",$}(e||{});const R=[{value:void 0,label:""},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"},{value:"6",label:"6"},{value:"7",label:"7"},{value:"8",label:"8"},{value:"9",label:"9"},{value:"10",label:"10"},{value:"11",label:"11"},{value:"12",label:"12"},{value:"13",label:"13"},{value:"14",label:"14"},{value:"15",label:"15"},{value:"16",label:"16"},{value:"17",label:"17"},{value:"18",label:"18"},{value:"19",label:"19"},{value:"20",label:"20"},{value:"21",label:"21"},{value:"22",label:"22"},{value:"X",label:"X"},{value:"Y",label:"Y"},{value:"MT",label:"MT"}]},9145:($t,De,a)=>{a.d(De,{$Ni:()=>Pe,$Pl:()=>Bi,$TJ:()=>Gc,$UJ:()=>ta,$Vg:()=>Xc,$pU:()=>Xn,$qW:()=>Ou,$rM:()=>Dr,AsH:()=>Ca,Avr:()=>$s,BMV:()=>To,BOs:()=>dd,B_h:()=>Br,BaG:()=>fs,BlQ:()=>Vt,CFE:()=>Lu,Ei5:()=>Sa,En6:()=>wt,FEq:()=>hl,FMZ:()=>ca,FP9:()=>c1,FZ_:()=>rd,Fd4:()=>td,Fll:()=>ll,Fq8:()=>Da,G4Q:()=>fd,GOU:()=>n1,GUs:()=>In,GXf:()=>St,G_G:()=>oe,H1z:()=>Ie,HAY:()=>Bc,HKj:()=>Ea,HLX:()=>nh,HnF:()=>lc,I8L:()=>jt,INr:()=>Ya,IbX:()=>$u,IxG:()=>Uc,J9f:()=>Fe,JCx:()=>Ee,JTF:()=>qo,Jmn:()=>Za,KRr:()=>en,KiN:()=>Ru,Kkj:()=>Kn,LJ9:()=>kr,LXB:()=>kl,M1P:()=>ge,M5K:()=>Al,MAo:()=>ze,Mvn:()=>id,N47:()=>na,NMX:()=>wa,NVO:()=>U,Nac:()=>w1,Nel:()=>fn,O3Q:()=>p1,OLK:()=>pl,OP3:()=>ee,OWv:()=>te,Osm:()=>Jl,Phy:()=>X,Psd:()=>qa,Pw8:()=>Qi,QVS:()=>jc,QWP:()=>Sc,QZR:()=>xo,Qa$:()=>ls,QcR:()=>ba,Qfy:()=>se,Qt1:()=>ce,RA2:()=>oh,RJ$:()=>rn,RKe:()=>kt,RMT:()=>ql,RQS:()=>Oo,RSu:()=>xa,RSy:()=>Ed,Rqb:()=>Ec,SPr:()=>ku,T31:()=>N,Thk:()=>Gn,Tj8:()=>ws,ToY:()=>F,UEL:()=>Jn,UK$:()=>ul,ULh:()=>Mc,UN$:()=>Ns,V1_:()=>Du,V3k:()=>mu,V9U:()=>Qt,VV8:()=>$c,Vl8:()=>O1,Vue:()=>pe,W14:()=>Xt,WAS:()=>U1,WGp:()=>Ta,WSr:()=>qu,WeE:()=>po,WgR:()=>Su,XEW:()=>I,XJ:()=>z,XUB:()=>fu,XWi:()=>Hr,Xiu:()=>A,XxZ:()=>pu,YQp:()=>It,YSN:()=>M,YW4:()=>$,Yd3:()=>Zs,Ye0:()=>Js,Ype:()=>no,Z3e:()=>Fu,ZC5:()=>vl,ZFx:()=>ir,ZLN:()=>Iu,ZVN:()=>ea,_f:()=>Mt,a3n:()=>b1,a4s:()=>gc,aUH:()=>Ms,aX5:()=>Wi,aZy:()=>Qs,arH:()=>Yo,bOY:()=>Bl,bPL:()=>wl,bz7:()=>Ga,c1P:()=>ht,cO8:()=>Tn,cQZ:()=>ye,cs4:()=>$a,d2V:()=>Ui,d52:()=>P,dYH:()=>Xa,dbG:()=>Pa,duD:()=>Co,eHp:()=>Rs,eJL:()=>la,eTd:()=>fa,f9r:()=>md,fQd:()=>gl,fh2:()=>q,fqJ:()=>Au,fvu:()=>Ys,g1E:()=>za,gG1:()=>H,gUZ:()=>Ja,gtA:()=>Gr,gwr:()=>Ia,hBv:()=>Bt,hGs:()=>Es,hj:()=>Lo,hzv:()=>Ba,iHU:()=>ve,iSS:()=>Ha,iby:()=>x,iyz:()=>Tu,j8M:()=>vd,jaV:()=>s1,jme:()=>Po,k1Y:()=>Jo,kBo:()=>yn,kHr:()=>Lc,kKs:()=>Wc,kWO:()=>B,kp0:()=>ad,kq4:()=>Wl,krZ:()=>Wt,kut:()=>ft,l20:()=>Ye,l76:()=>w,lBA:()=>Xe,lD4:()=>je,lEz:()=>ps,l_P:()=>vu,m7j:()=>d1,m9R:()=>ns,mDT:()=>Cl,mRx:()=>Ar,mqi:()=>Ws,mww:()=>tu,nFI:()=>Vr,nRJ:()=>Xl,ngC:()=>yd,npr:()=>Ks,oGI:()=>Lt,oJ_:()=>Io,oKj:()=>k,owd:()=>bo,pCs:()=>Eu,paL:()=>xl,pi3:()=>Ur,q3K:()=>ua,q7o:()=>rr,qKP:()=>Pu,qld:()=>ke,r$P:()=>m1,rCZ:()=>ot,rR2:()=>rt,rUT:()=>Vn,reo:()=>al,s91:()=>Oc,sAe:()=>Md,sZm:()=>Gl,shk:()=>Q,tDA:()=>o1,tUL:()=>Dn,tas:()=>ld,twV:()=>da,txm:()=>ro,uXu:()=>Ql,v8x:()=>hc,w7w:()=>R,wBW:()=>fr,wJE:()=>vo,wJP:()=>G,wOP:()=>$n,wVR:()=>Ut,wdL:()=>bd,wkS:()=>l1,wlK:()=>Nc,xKZ:()=>ms,xNz:()=>L,xPr:()=>jr,y3W:()=>E1,y5X:()=>ya,yLZ:()=>ec,yR6:()=>Ka,yo9:()=>gr,yoY:()=>is,ypY:()=>Qe,ytN:()=>Qc,zNY:()=>Wa,zf1:()=>ah});var t=a(1661),r=a(3953),z=function(g){return g.Na="NA",g.TierIii="TIER_III",g.TierIiLevelC="TIER_II_LEVEL_C",g.TierIiLevelD="TIER_II_LEVEL_D",g.TierIv="TIER_IV",g.TierILevelA="TIER_I_LEVEL_A",g.TierILevelB="TIER_I_LEVEL_B",g}(z||{}),R=function(g){return g.DoesNotSupport="DOES_NOT_SUPPORT",g.Supports="SUPPORTS",g}(R||{}),$=function(g){return g.AdverseResponse="ADVERSE_RESPONSE",g.Benign="BENIGN",g.BetterOutcome="BETTER_OUTCOME",g.LikelyBenign="LIKELY_BENIGN",g.LikelyOncogenic="LIKELY_ONCOGENIC",g.LikelyPathogenic="LIKELY_PATHOGENIC",g.Na="NA",g.Negative="NEGATIVE",g.Oncogenic="ONCOGENIC",g.Pathogenic="PATHOGENIC",g.PoorOutcome="POOR_OUTCOME",g.Positive="POSITIVE",g.ReducedSensitivity="REDUCED_SENSITIVITY",g.Resistance="RESISTANCE",g.Sensitivityresponse="SENSITIVITYRESPONSE",g.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",g}($||{}),k=function(g){return g.AmpLevel="AMP_LEVEL",g.AssertionDirection="ASSERTION_DIRECTION",g.AssertionType="ASSERTION_TYPE",g.DiseaseName="DISEASE_NAME",g.EvidenceItemsCount="EVIDENCE_ITEMS_COUNT",g.Id="ID",g.Significance="SIGNIFICANCE",g.Status="STATUS",g.Summary="SUMMARY",g}(k||{}),I=function(g){return g.Diagnostic="DIAGNOSTIC",g.Oncogenic="ONCOGENIC",g.Predictive="PREDICTIVE",g.Predisposing="PREDISPOSING",g.Prognostic="PROGNOSTIC",g}(I||{}),w=function(g){return g.And="AND",g.Or="OR",g}(w||{}),P=function(g){return g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.Name="NAME",g.NctId="NCT_ID",g.SourceCount="SOURCE_COUNT",g}(P||{}),Q=function(g){return g.Conflict="CONFLICT",g.Expired="EXPIRED",g.Missing="MISSING",g.Valid="VALID",g}(Q||{}),N=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Source="SOURCE",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(N||{}),x=function(g){return g.Factor="FACTOR",g}(x||{}),oe=function(g){return g.Created="CREATED",g.LastModified="LAST_MODIFIED",g}(oe||{}),ee=function(g){return g.Negative="NEGATIVE",g.Positive="POSITIVE",g}(ee||{}),Ee=function(g){return g.AssertionCount="ASSERTION_COUNT",g.Doid="DOID",g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.FeatureCount="FEATURE_COUNT",g.Name="NAME",g.VariantCount="VARIANT_COUNT",g}(Ee||{}),Ie=function(g){return g.Accepted="ACCEPTED",g.AssertionAccepted="ASSERTION_ACCEPTED",g.AssertionRejected="ASSERTION_REJECTED",g.AssertionReverted="ASSERTION_REVERTED",g.AssertionSubmitted="ASSERTION_SUBMITTED",g.Commented="COMMENTED",g.CommentDeleted="COMMENT_DELETED",g.ComplexMolecularProfileCreated="COMPLEX_MOLECULAR_PROFILE_CREATED",g.CuratedSourceSuggestion="CURATED_SOURCE_SUGGESTION",g.DeprecatedFeature="DEPRECATED_FEATURE",g.DeprecatedMolecularProfile="DEPRECATED_MOLECULAR_PROFILE",g.DeprecatedVariant="DEPRECATED_VARIANT",g.FeatureCreated="FEATURE_CREATED",g.Flagged="FLAGGED",g.FlagResolved="FLAG_RESOLVED",g.PublicationSuggested="PUBLICATION_SUGGESTED",g.Rejected="REJECTED",g.RejectedSourceSuggestion="REJECTED_SOURCE_SUGGESTION",g.RequeuedSourceSuggestion="REQUEUED_SOURCE_SUGGESTION",g.Reverted="REVERTED",g.RevisionAccepted="REVISION_ACCEPTED",g.RevisionRejected="REVISION_REJECTED",g.RevisionSuggested="REVISION_SUGGESTED",g.RevisionSuperseded="REVISION_SUPERSEDED",g.Submitted="SUBMITTED",g.VariantCreated="VARIANT_CREATED",g}(Ie||{}),ce=function(g){return g.Organization="ORGANIZATION",g.Subject="SUBJECT",g.Unscoped="UNSCOPED",g.User="USER",g}(ce||{}),Pe=function(g){return g.DoesNotSupport="DOES_NOT_SUPPORT",g.Na="NA",g.Supports="SUPPORTS",g}(Pe||{}),ve=function(g){return g.A="A",g.B="B",g.C="C",g.D="D",g.E="E",g}(ve||{}),pe=function(g){return g.AdverseResponse="ADVERSE_RESPONSE",g.Benign="BENIGN",g.BetterOutcome="BETTER_OUTCOME",g.DominantNegative="DOMINANT_NEGATIVE",g.GainOfFunction="GAIN_OF_FUNCTION",g.LikelyBenign="LIKELY_BENIGN",g.LikelyPathogenic="LIKELY_PATHOGENIC",g.LossOfFunction="LOSS_OF_FUNCTION",g.Na="NA",g.Negative="NEGATIVE",g.Neomorphic="NEOMORPHIC",g.Oncogenicity="ONCOGENICITY",g.Pathogenic="PATHOGENIC",g.PoorOutcome="POOR_OUTCOME",g.Positive="POSITIVE",g.Predisposition="PREDISPOSITION",g.Protectiveness="PROTECTIVENESS",g.ReducedSensitivity="REDUCED_SENSITIVITY",g.Resistance="RESISTANCE",g.Sensitivityresponse="SENSITIVITYRESPONSE",g.UnalteredFunction="UNALTERED_FUNCTION",g.UncertainSignificance="UNCERTAIN_SIGNIFICANCE",g.Unknown="UNKNOWN",g}(pe||{}),U=function(g){return g.Description="DESCRIPTION",g.DiseaseName="DISEASE_NAME",g.EvidenceDirection="EVIDENCE_DIRECTION",g.EvidenceLevel="EVIDENCE_LEVEL",g.EvidenceRating="EVIDENCE_RATING",g.EvidenceType="EVIDENCE_TYPE",g.Id="ID",g.Significance="SIGNIFICANCE",g.Status="STATUS",g.VariantOrigin="VARIANT_ORIGIN",g}(U||{}),M=function(g){return g.Accepted="ACCEPTED",g.Rejected="REJECTED",g.Submitted="SUBMITTED",g}(M||{}),te=function(g){return g.Accepted="ACCEPTED",g.All="ALL",g.NonRejected="NON_REJECTED",g.Rejected="REJECTED",g.Submitted="SUBMITTED",g}(te||{}),ge=function(g){return g.Diagnostic="DIAGNOSTIC",g.Functional="FUNCTIONAL",g.Oncogenic="ONCOGENIC",g.Predictive="PREDICTIVE",g.Predisposing="PREDISPOSING",g.Prognostic="PROGNOSTIC",g}(ge||{}),A=function(g){return g.Factor="FACTOR",g.Fusion="FUSION",g.Gene="GENE",g}(A||{}),X=function(g){return g.AssertionCount="assertionCount",g.DiseaseName="diseaseName",g.EvidenceItemCount="evidenceItemCount",g.FeatureAlias="featureAlias",g.FeatureFullName="featureFullName",g.FeatureName="featureName",g.MolecularProfileCount="molecularProfileCount",g.TherapyName="therapyName",g.VariantCount="variantCount",g}(X||{}),se=function(g){return g.Open="OPEN",g.Resolved="RESOLVED",g}(se||{}),je=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(je||{}),Bt=function(g){return g.Known="KNOWN",g.Multiple="MULTIPLE",g.Unknown="UNKNOWN",g}(Bt||{}),Vt=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.ExonCoordinates="EXON_COORDINATES",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Variant="VARIANT",g.VariantCoordinates="VARIANT_COORDINATES",g.VariantGroup="VARIANT_GROUP",g}(Vt||{}),Lt=function(g){return g.All="ALL",g.WithAccepted="WITH_ACCEPTED",g.WithAcceptedOrSubmitted="WITH_ACCEPTED_OR_SUBMITTED",g.WithSubmitted="WITH_SUBMITTED",g}(Lt||{}),ft=function(g){return g.AssertionCount="assertionCount",g.EvidenceItemCount="evidenceItemCount",g.MolecularProfileScore="molecularProfileScore",g.VariantCount="variantCount",g}(ft||{}),St=function(g){return g.Mention="MENTION",g.Subscription="SUBSCRIPTION",g}(St||{}),kt=function(g){return g.ActivityCount="ACTIVITY_COUNT",g.Id="ID",g.MemberCount="MEMBER_COUNT",g.MostRecentActivityTimestamp="MOST_RECENT_ACTIVITY_TIMESTAMP",g.Name="NAME",g}(kt||{}),It=function(g){return g.AssertionCount="ASSERTION_COUNT",g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.HpoId="HPO_ID",g.Name="NAME",g}(It||{}),rn=function(g){return g.Read="READ",g.Unread="UNREAD",g}(rn||{}),en=function(g){return g.Grch37="GRCH37",g.Grch38="GRCH38",g.Ncbi36="NCBI36",g}(en||{}),Xt=function(g){return g.Accepted="ACCEPTED",g.New="NEW",g.Rejected="REJECTED",g.Superseded="SUPERSEDED",g}(Xt||{}),Tn=function(g){return g.Assertion="ASSERTION",g.Disease="DISEASE",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Revision="REVISION",g.Therapy="THERAPY",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(Tn||{}),Jn=function(g){return g.Asc="ASC",g.Desc="DESC",g}(Jn||{}),Dn=function(g){return g.Asco="ASCO",g.Ash="ASH",g.Pubmed="PUBMED",g}(Dn||{}),Mt=function(g){return g.Curated="CURATED",g.New="NEW",g.Rejected="REJECTED",g}(Mt||{}),Ut=function(g){return g.Citation="CITATION",g.CitationId="CITATION_ID",g.CreatedAt="CREATED_AT",g.DiseaseName="DISEASE_NAME",g.SourceType="SOURCE_TYPE",g.Submitter="SUBMITTER",g}(Ut||{}),wt=function(g){return g.Authors="AUTHORS",g.CitationId="CITATION_ID",g.EvidenceCount="EVIDENCE_COUNT",g.Journal="JOURNAL",g.Name="NAME",g.SourceType="SOURCE_TYPE",g.SuggestionCount="SUGGESTION_COUNT",g.Year="YEAR",g}(wt||{}),Qt=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Revision="REVISION",g.SourceSuggestion="SOURCE_SUGGESTION",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(Qt||{}),Xe=function(g){return g.Assertion="ASSERTION",g.EvidenceItem="EVIDENCE_ITEM",g.Feature="FEATURE",g.MolecularProfile="MOLECULAR_PROFILE",g.Revision="REVISION",g.Role="ROLE",g.Variant="VARIANT",g.VariantGroup="VARIANT_GROUP",g}(Xe||{}),ke=function(g){return g.Combination="COMBINATION",g.Sequential="SEQUENTIAL",g.Substitutes="SUBSTITUTES",g}(ke||{}),q=function(g){return g.AssertionCount="ASSERTION_COUNT",g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.Name="NAME",g.NcitId="NCIT_ID",g}(q||{}),G=function(g){return g.AllTime="ALL_TIME",g.LastMonth="LAST_MONTH",g.LastWeek="LAST_WEEK",g.LastYear="LAST_YEAR",g}(G||{}),H=function(g){return g.Admin="ADMIN",g.Curator="CURATOR",g.Editor="EDITOR",g}(H||{}),ze=function(g){return g.EvidenceCount="EVIDENCE_COUNT",g.Id="ID",g.LastAction="LAST_ACTION",g.Name="NAME",g.RevisionCount="REVISION_COUNT",g.Role="ROLE",g}(ze||{}),Qe=function(g){return g.Factor="FACTOR",g.Fusion="FUSION",g.Gene="GENE",g}(Qe||{}),ht=function(g){return g.FivePrimeFusionCoordinate="FIVE_PRIME_FUSION_COORDINATE",g.GeneVariantCoordinate="GENE_VARIANT_COORDINATE",g.ThreePrimeFusionCoordinate="THREE_PRIME_FUSION_COORDINATE",g}(ht||{}),fn=function(g){return g.EvidenceItemCount="EVIDENCE_ITEM_COUNT",g.GeneNames="GENE_NAMES",g.Name="NAME",g.VariantCount="VARIANT_COUNT",g.VariantNames="VARIANT_NAMES",g}(fn||{}),In=function(g){return g.CoordinateEnd="COORDINATE_END",g.CoordinateStart="COORDINATE_START",g.Name="NAME",g}(In||{}),Kn=function(g){return g.Combined="COMBINED",g.CommonGermline="COMMON_GERMLINE",g.Na="NA",g.RareGermline="RARE_GERMLINE",g.Somatic="SOMATIC",g.Unknown="UNKNOWN",g}(Kn||{}),Gn=function(g){return g.Name="NAME",g.Soid="SOID",g.VariantCount="VARIANT_COUNT",g}(Gn||{}),$n=function(g){return g.DiseaseName="diseaseName",g.FeatureName="featureName",g.TherapyName="therapyName",g.VariantName="variantName",g}($n||{});const Nn=t.J1` + fragment ActivityFeedItemBase on ActivityInterface { + id + verbiage + createdAt + organization { + id + name + } + user { + id + displayName + role + } + subject { + id + name + link + ... on GeneVariant { + feature { + id + name + link + } + } + ... on FactorVariant { + feature { + id + name + link + } + } + } +} + `,vn=t.J1` + fragment commenterFields on User { + id + username + displayName + name + role + profileImagePath(size: 32) + organizations { + id + name + profileImagePath(size: 32) + } +} + `,Jt=t.J1` + fragment parsedCommentFragment on CommentBodySegment { + __typename + ... on CommentTagSegment { + entityId + displayName + tagType + link + revisionSetId + feature { + id + name + link + deprecated + flagged + } + __typename + } + ... on CommentTagSegmentFlagged { + entityId + displayName + tagType + flagged + link + revisionSetId + feature { + id + name + link + deprecated + flagged + } + __typename + } + ... on CommentTagSegmentFlaggedAndWithStatus { + entityId + displayName + tagType + status + flagged + link + revisionSetId + feature { + id + name + link + deprecated + flagged + } + __typename + } + ... on CommentTagSegmentFlaggedAndDeprecated { + entityId + displayName + tagType + flagged + deprecated + link + revisionSetId + feature { + id + name + link + deprecated + flagged + } + __typename + } + ... on CommentTextSegment { + text + } + ... on User { + ...commenterFields + } +} + ${vn}`,An=t.J1` + fragment revisionLinkoutData on LinkoutData { + name + diffValue { + ... on ObjectFieldDiff { + currentObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + addedObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + removedObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + keptObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + suggestedObjects { + id + displayName + displayType + entityType + link + deleted + deprecated + flagged + feature { + link + id + name + deprecated + flagged + } + } + } + ... on ScalarFieldDiff { + left + right + } + } +} + `,Yt=t.J1` + fragment ActivityFeedItemEvents on ActivityInterface { + events { + id + createdAt + action + originatingObject { + id + name + link + } + originatingUser { + id + displayName + } + } +} + `,Je=t.J1` + fragment AcceptRevisionsActivityDetail on AcceptRevisionsActivity { + parsedNote { + ...parsedCommentFragment + } + revisions { + id + name + status + currentValue + suggestedValue + fieldName + link + linkoutData { + ...revisionLinkoutData + } + } + supersededRevisions { + id + link + name + creationActivity { + user { + displayName + profileImagePath(size: 32) + id + role + } + } + fieldName + createdAt + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Jt} +${An} +${Nn} +${Yt}`,ae=t.J1` + fragment commentListNode on Comment { + id + title + comment + createdAt + deleted + deletedAt + commenter { + ...commenterFields + } + parsedComment { + ...parsedCommentFragment + } +} + ${vn} +${Jt}`,ie=t.J1` + fragment CommentActivityDetail on CommentActivity { + comment { + ...commentListNode + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${ae} +${Nn} +${Yt}`,re=t.J1` + fragment CreateComplexMolecularProfileActivityDetail on CreateComplexMolecularProfileActivity { + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Nn} +${Yt}`,et=t.J1` + fragment CreateVariantActivityDetail on CreateVariantActivity { + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Nn} +${Yt}`,_t=t.J1` + fragment DeprecateComplexMolecularProfileActivityDetail on DeprecateComplexMolecularProfileActivity { + parsedNote { + ...parsedCommentFragment + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Jt} +${Nn} +${Yt}`,mt=t.J1` + fragment DeprecateVariantActivityDetail on DeprecateVariantActivity { + parsedNote { + ...parsedCommentFragment + } + molecularProfiles { + id + name + link + deprecated + flagged + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Jt} +${Nn} +${Yt}`,Rt=t.J1` + fragment DeprecateFeatureActivityDetail on DeprecateFeatureActivity { + parsedNote { + ...parsedCommentFragment + } + molecularProfiles { + id + name + link + deprecated + flagged + } + variants { + id + name + link + deprecated + flagged + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Jt} +${Nn} +${Yt}`,ct=t.J1` + fragment FlagEntityActivityDetail on FlagEntityActivity { + ...ActivityFeedItemBase + ...ActivityFeedItemEvents + parsedNote { + ...parsedCommentFragment + } + flag { + id + link + name + } +} + ${Nn} +${Yt} +${Jt}`,Se=t.J1` + fragment ModerateAssertionActivityDetail on ModerateAssertionActivity { + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Nn} +${Yt}`,lt=t.J1` + fragment ModerateEvidenceItemActivityDetail on ModerateEvidenceItemActivity { + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Nn} +${Yt}`,de=t.J1` + fragment RejectRevisionsActivityDetail on RejectRevisionsActivity { + parsedNote { + ...parsedCommentFragment + } + revisions { + id + name + status + currentValue + suggestedValue + fieldName + link + createdAt + linkoutData { + ...revisionLinkoutData + } + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Jt} +${An} +${Nn} +${Yt}`,Oe=t.J1` + fragment ResolveFlagActivityDetail on ResolveFlagActivity { + ...ActivityFeedItemBase + ...ActivityFeedItemEvents + parsedNote { + ...parsedCommentFragment + } +} + ${Nn} +${Yt} +${Jt}`,zt=t.J1` + fragment SubmitAssertionActivityDetail on SubmitAssertionActivity { + ...ActivityFeedItemBase + ...ActivityFeedItemEvents + parsedNote { + ...parsedCommentFragment + } +} + ${Nn} +${Yt} +${Jt}`,Ze=t.J1` + fragment SubmitEvidenceItemActivityDetail on SubmitEvidenceItemActivity { + ...ActivityFeedItemBase + ...ActivityFeedItemEvents + parsedNote { + ...parsedCommentFragment + } +} + ${Nn} +${Yt} +${Jt}`,Ne=t.J1` + fragment SuggestRevisionSetActivityDetail on SuggestRevisionSetActivity { + parsedNote { + ...parsedCommentFragment + } + revisions { + id + name + status + currentValue + suggestedValue + fieldName + link + createdAt + linkoutData { + ...revisionLinkoutData + } + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Jt} +${An} +${Nn} +${Yt}`,Le=t.J1` + fragment SuggestSourceActivityDetail on SuggestSourceActivity { + parsedNote { + ...parsedCommentFragment + } + sourceSuggestion { + id + status + source { + id + name + link + deprecated + } + molecularProfile { + id + name + link + deprecated + } + disease { + id + name + link + deprecated + } + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Jt} +${Nn} +${Yt}`,Y=t.J1` + fragment UpdateSourceSuggestionStatusActivityDetail on UpdateSourceSuggestionStatusActivity { + parsedNote { + ...parsedCommentFragment + } + sourceSuggestion { + status + source { + id + name + link + deprecated + } + molecularProfile { + id + name + link + deprecated + } + disease { + id + name + link + deprecated + } + } + ...ActivityFeedItemBase + ...ActivityFeedItemEvents +} + ${Jt} +${Nn} +${Yt}`,le=t.J1` + fragment ActivityFeedItem on ActivityInterface { + ...ActivityFeedItemBase + ...AcceptRevisionsActivityDetail @include(if: $requestDetails) + ...CommentActivityDetail @include(if: $requestDetails) + ...CreateComplexMolecularProfileActivityDetail @include(if: $requestDetails) + ...CreateVariantActivityDetail @include(if: $requestDetails) + ...DeprecateComplexMolecularProfileActivityDetail @include(if: $requestDetails) + ...DeprecateVariantActivityDetail @include(if: $requestDetails) + ...DeprecateFeatureActivityDetail @include(if: $requestDetails) + ...FlagEntityActivityDetail @include(if: $requestDetails) + ...ModerateAssertionActivityDetail @include(if: $requestDetails) + ...ModerateEvidenceItemActivityDetail @include(if: $requestDetails) + ...RejectRevisionsActivityDetail @include(if: $requestDetails) + ...ResolveFlagActivityDetail @include(if: $requestDetails) + ...SubmitAssertionActivityDetail @include(if: $requestDetails) + ...SubmitEvidenceItemActivityDetail @include(if: $requestDetails) + ...SuggestRevisionSetActivityDetail @include(if: $requestDetails) + ...SuggestSourceActivityDetail @include(if: $requestDetails) + ...UpdateSourceSuggestionStatusActivityDetail @include(if: $requestDetails) +} + ${Nn} +${Je} +${ie} +${re} +${et} +${_t} +${mt} +${Rt} +${ct} +${Se} +${lt} +${de} +${Oe} +${zt} +${Ze} +${Ne} +${Le} +${Y}`,V=t.J1` + fragment ActivitiesConnectionFields on ActivityInterfaceConnection { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + pageCount + totalCount + unfilteredCount + activityTypes @include(if: $showFilters) + uniqueParticipants @include(if: $showFilters) { + id + displayName + role + } + subjectTypes @include(if: $showFilters) + participatingOrganizations @include(if: $showFilters) { + id + name + } + edges { + cursor + node { + ...ActivityFeedItem + } + } +} + ${le}`,Ve=t.J1` + fragment MolecularProfileParsedName on MolecularProfileSegment { + __typename + ... on MolecularProfileTextSegment { + text + } + ... on Feature { + id + name + link + deprecated + flagged + } + ... on Variant { + id + name + link + deprecated + flagged + } +} + `,Ce=t.J1` + fragment assertionPopover on Assertion { + id + name + status + summary + assertionType + assertionDirection + significance + variantOrigin + ampLevel + acmgCodes { + code + description + } + clingenCodes { + code + description + } + nccnGuideline { + id + name + } + regulatoryApproval + regulatoryApprovalLastUpdated + fdaCompanionTest + fdaCompanionTestLastUpdated + therapies { + id + name + link + deprecated + } + therapyInteractionType + disease { + id + name + link + deprecated + } + phenotypes { + id + name + link + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + flagged + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${Ve}`,J=t.J1` + fragment AssertionBrowseFields on Assertion { + id + name + link + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + } + disease { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + therapyInteractionType + summary + assertionType + assertionDirection + significance + ampLevel + evidenceItemsCount + status + flagged +} + ${Ve}`,W=t.J1` + fragment clinicalTrialPopover on BrowseClinicalTrial { + id + name + nctId + url + sourceCount + evidenceCount +} + `,_e=t.J1` + fragment BrowseClinicalTrialsRowFields on BrowseClinicalTrial { + id + name + nctId + evidenceCount + sourceCount + link +} + `,it=t.J1` + fragment commentPopover on Comment { + id + name + createdAt + title + comment + commenter { + id + displayName + role + } + commentable { + id + name + link + ... on Variant { + deprecated + feature { + id + name + link + deprecated + flagged + } + flagged + } + ... on Feature { + deprecated + flagged + } + ... on Source { + deprecated + sourceType + } + ... on Assertion { + flagged + status + } + ... on EvidenceItem { + flagged + status + } + __typename + } +} + `,dt=t.J1` + fragment BrowseDiseaseRowFields on BrowseDisease { + id + name + doid + diseaseUrl + features { + id + name + link + } + assertionCount + evidenceItemCount + variantCount + featureCount + link + deprecated + diseaseAliases +} + `,Ht=t.J1` + fragment eventFeedNode on Event { + id + action + createdAt + organization { + id + name + profileImagePath(size: 32) + } + originatingUser { + id + username + displayName + role + profileImagePath(size: 32) + } + subject { + name + id + link + ... on Source { + citation + sourceType + deprecated + } + ... on EvidenceItem { + status + flagged + } + ... on Assertion { + status + flagged + } + ... on Revision { + revisionSetId + } + ... on VariantInterface { + deprecated + flagged + feature { + id + link + name + deprecated + flagged + } + } + ... on Feature { + deprecated + flagged + id + link + name + } + ... on MolecularProfile { + deprecated + flagged + } + ... on VariantGroup { + flagged + } + __typename + } + originatingObject { + id + name + link + __typename + ... on Revision { + id + revisionSetId + } + ... on Comment { + id + } + ... on Flag { + id + } + } +} + `,dn=t.J1` + fragment eventFeed on EventConnection { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + eventTypes @include(if: $showFilters) + unfilteredCount + uniqueParticipants @include(if: $showFilters) { + id + displayName + role + profileImagePath(size: 32) + } + participatingOrganizations @include(if: $showFilters) { + id + name + profileImagePath(size: 32) + } + edges { + cursor + node { + ...eventFeedNode + } + } +} + ${Ht}`,wn=t.J1` + fragment evidencePopover on EvidenceItem { + id + name + status + description + evidenceLevel + evidenceType + evidenceDirection + significance + variantOrigin + therapies { + id + name + link + deprecated + } + therapyInteractionType + disease { + id + name + link + deprecated + } + phenotypes { + id + name + link + } + evidenceRating + molecularProfile { + id + name + link + deprecated + flagged + parsedName { + ...MolecularProfileParsedName + } + } + source { + id + citation + sourceType + displayType + link + deprecated + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${Ve}`,si=t.J1` + fragment EvidenceGridFields on EvidenceItem { + id + name + link + disease { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + } + status + flagged + therapyInteractionType + description + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin +} + ${Ve}`,Cn=t.J1` + fragment featurePopover on Feature { + id + name + fullName + featureInstance { + __typename + } + featureAliases + variants { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,ni=t.J1` + fragment BrowseFeaturesFields on BrowseFeature { + id + name + fullName + link + deprecated + flagged + featureAliases + diseases { + name + id + link + deprecated + } + therapies { + name + id + link + deprecated + } + variantCount + evidenceItemCount + assertionCount + molecularProfileCount + featureInstanceType +} + `,ui=t.J1` + fragment flag on Flag { + id + state + flaggable { + id + name + link + ... on Variant { + deprecated + } + ... on Feature { + deprecated + } + ... on MolecularProfile { + deprecated + } + } + openActivity { + id + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + id + displayName + role + profileImagePath(size: 32) + } + } + resolutionActivity { + id + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${Jt}`,Ni=t.J1` + fragment flagList on FlagConnection { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + totalCount + unfilteredCountForSubject + uniqueFlaggingUsers { + username + id + profileImagePath(size: 32) + } + uniqueResolvingUsers { + username + id + profileImagePath(size: 32) + } + edges { + node { + ...flag + } + } +} + ${ui}`,Eo=t.J1` + fragment flagPopover on Flag { + id + name + state + flaggingUser { + id + displayName + role + } + flaggable { + id + link + name + ... on VariantInterface { + deprecated + feature { + id + name + link + deprecated + flagged + } + } + ... on Feature { + deprecated + } + ... on EvidenceItem { + status + } + ... on Assertion { + status + } + flagged + } + createdAt + openActivity { + parsedNote { + ...parsedCommentFragment + } + } +} + ${Jt}`,lo=t.J1` + fragment menuFusion on Fusion { + id + name + link + flagged + deprecated +} + `,$i=t.J1` + fragment QuicksearchResult on SearchResult { + id + resultType + name + matchingText +} + `,Ii=t.J1` + fragment molecularProfilePopoverFields on MolecularProfile { + id + name + parsedName { + ...MolecularProfileParsedName + } + molecularProfileAliases + evidenceItems { + totalCount + } + assertions { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + ${Ve}`,Nr=t.J1` + fragment BrowseMolecularProfilesFields on BrowseMolecularProfile { + id + name + evidenceItemCount + molecularProfileScore + assertionCount + variantCount + aliases { + name + } + variants { + id + name + link + matchText + feature { + id + link + name + } + } + therapies { + id + name + link + deprecated + } + diseases { + id + name + link + deprecated + } + link + deprecated +} + `,pr=t.J1` + fragment menuMolecularProfile on MolecularProfile { + id + name + link + flagged + deprecated +} + `,vt=t.J1` + fragment LeaderboardOrganizationFields on LeaderboardOrganization { + id + name + actionCount + rank + profileImagePath(size: 64) +} + `,Gt=t.J1` + fragment orgPopover on Organization { + id + profileImagePath(size: 64) + name + description + url +} + `,Pt=t.J1` + fragment OrganizationBrowseTableRowFields on BrowseOrganization { + id + name + description + url + memberCount + activityCount + mostRecentActivityTimestamp + childOrganizations { + id + name + } +} + `,Mn=t.J1` + fragment PhenotypeBrowseTableRowFields on BrowsePhenotype { + id + name + hpoId + url + assertionCount + evidenceCount + link +} + `,En=t.J1` + fragment validationError on FieldValidationError { + fieldName + error +} + `,ii=t.J1` + fragment revisionPopover on Revision { + id + name + link + status + creationActivity { + user { + id + displayName + role + } + parsedNote { + ...parsedCommentFragment + } + } + subject { + id + link + name + ... on VariantInterface { + deprecated + flagged + feature { + id + name + link + deprecated + flagged + } + } + ... on Feature { + deprecated + flagged + } + ... on Assertion { + flagged + status + } + ... on EvidenceItem { + flagged + status + } + ... on VariantGroup { + flagged + } + } + createdAt + linkoutData { + name + } +} + ${Jt}`,Pn=t.J1` + fragment revision on Revision { + id + revisionSetId + createdAt + fieldName + currentValue + suggestedValue + linkoutData { + ...revisionLinkoutData + } + creationActivity { + createdAt + user { + id + displayName + role + } + parsedNote { + ...parsedCommentFragment + } + organization { + id + name + } + } + resolutionActivity { + createdAt + user { + id + displayName + role + } + parsedNote { + ...parsedCommentFragment + } + } + status +} + ${An} +${Jt}`,Fn=t.J1` + fragment ContributorFields on ContributingUser { + user { + id + profileImagePath(size: 12) + } + uniqueActions { + action + count + } + lastActionDate + totalActionCount +} + `,hi=t.J1` + fragment subscriptionId on Subscription { + id + __typename +} + `,xi=t.J1` + fragment TimepointCount on TimePointCounts { + allTime + newThisMonth + newThisWeek + newThisYear +} + `,Hi=t.J1` + fragment BrowseSourceSuggestionRowFields on SourceSuggestion { + id + molecularProfile { + id + name + link + deprecated + } + disease { + id + name + link + deprecated + } + source { + link + id + citation + citationId + sourceType + sourceUrl + displayType + deprecated + } + user { + id + displayName + role + profileImagePath(size: 32) + } + creationActivity { + parsedNote { + ...parsedCommentFragment + } + } + lastStatusUpdateActivity { + parsedNote { + ...parsedCommentFragment + } + } + status + reason + createdAt +} + ${Jt}`,Mi=t.J1` + fragment sourcePopover on SourcePopover { + id + title + fullJournalTitle + evidenceItemCount + citation + citationId + displayType + sourceUrl + clinicalTrials { + id + nctId + link + } + retractionDate + retractionReasons + retractionNature +} + `,gn=t.J1` + fragment BrowseSourceRowFields on BrowseSource { + id + authors + citationId + evidenceItemCount + sourceSuggestionCount + journal + name + publicationYear + sourceType + citation + displayType + link + openAccess + deprecated +} + `,Si=t.J1` + fragment TherapyBrowseTableRowFields on BrowseTherapy { + id + name + ncitId + therapyUrl + assertionCount + evidenceCount + link + deprecated + therapyAliases +} + `,Ei=t.J1` + fragment LeaderboardUserFields on LeaderboardUser { + id + name + displayName + actionCount + role + rank + profileImagePath(size: 64) +} + `,Ki=t.J1` + fragment popoverUser on User { + id + profileImagePath(size: 64) + displayName + bio + role + organizations { + id + name + } +} + `,Vi=t.J1` + fragment UserBrowseTableRowFields on BrowseUser { + id + name + displayName + username + organizations { + id + name + } + role + evidenceCount + revisionCount + profileImagePath(size: 64) + mostRecentActivityTimestamp +} + `,qi=t.J1` + fragment variantGroupPopoverFields on VariantGroup { + id + name + description + variants { + edges { + node { + id + name + link + deprecated + flagged + feature { + id + name + link + deprecated + flagged + } + } + } + } + sources { + id + citation + sourceType + link + deprecated + } +} + `,Go=t.J1` + fragment BrowseVariantGroupRowFields on BrowseVariantGroup { + id + name + link + featureNames + variantNames + variantCount + evidenceItemCount +} + `,so=t.J1` + fragment variantTypePopover on VariantTypePopover { + id + name + url + soid + variantCount +} + `,tr=t.J1` + fragment VariantTypeBrowseTableRowFields on BrowseVariantType { + id + name + soid + url + variantCount + link +} + `,lr=t.J1` + fragment CoordinateFields on VariantCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + referenceBases + variantBases + coordinateType +} + `,zo=t.J1` + fragment ExonCoordinateFields on ExonCoordinate { + referenceBuild + ensemblVersion + chromosome + representativeTranscript + start + stop + exon + exonOffset + exonOffsetDirection + ensemblId + strand + coordinateType +} + `,Mo=t.J1` + fragment CoordinatesCardFields on VariantInterface { + id + name + ... on GeneVariant { + coordinates { + ...CoordinateFields + } + } + ... on FusionVariant { + fivePrimeCoordinates { + ...CoordinateFields + } + threePrimeCoordinates { + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + } +} + ${lr} +${zo}`,br=t.J1` + fragment variantPopoverFields on VariantInterface { + id + name + variantAliases + ... on GeneVariant { + alleleRegistryId + } + feature { + id + name + link + deprecated + flagged + } + molecularProfiles { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + flags(state: OPEN) { + totalCount + } +} + `,Wo=t.J1` + fragment menuVariantType on BrowseVariantType { + id + name + link +} + `,Zr=t.J1` + fragment menuVariant on VariantInterface { + id + name + link + flagged + deprecated +} + `,uo=t.J1` + fragment BrowseVariantsFields on BrowseVariant { + id + name + link + featureId + featureName + featureLink + category + featureDeprecated + featureFlagged + diseases { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + aliases { + name + } + variantTypes { + id + name + link + } + deprecated + flagged +} + `,Hn=t.J1` + fragment RevisableAssertionFields on Assertion { + id + summary + description + molecularProfile { + id + name + link + } + variantOrigin + significance + disease { + id + doid + name + displayName + link + } + therapies { + id + ncitId + name + link + } + therapyInteractionType + assertionDirection + assertionType + phenotypes { + id + hpoId + name + } + ampLevel + acmgCodes { + id + name + code + description + tooltip + } + clingenCodes { + id + code + description + name + tooltip + exclusive + } + nccnGuideline { + id + name + } + nccnGuidelineVersion + regulatoryApproval + fdaCompanionTest + evidenceItems { + id + name + link + status + } +} + `,Pi=t.J1` + fragment MolecularProfileSelectTypeaheadFields on MolecularProfile { + id + name + link + molecularProfileAliases + deprecated + flagged +} + `,Tr=t.J1` + fragment DiseaseSelectTypeaheadFields on Disease { + id + name + link + displayName + doid + diseaseAliases +} + `,$r=t.J1` + fragment TherapySelectTypeaheadFields on Therapy { + id + name + link + ncitId + therapyAliases +} + `,as=t.J1` + fragment PhenotypeSelectTypeaheadFields on Phenotype { + id + name + link + hpoId +} + `,Ko=t.J1` + fragment SourceSelectTypeaheadFields on Source { + id + name + link + citation + citationId + sourceType + deprecated +} + `,Fs=t.J1` + fragment RevisableEvidenceFields on EvidenceItem { + id + molecularProfile { + ...MolecularProfileSelectTypeaheadFields + } + variantOrigin + description + significance + disease { + ...DiseaseSelectTypeaheadFields + } + therapies { + ...TherapySelectTypeaheadFields + } + therapyInteractionType + evidenceDirection + evidenceLevel + evidenceType + phenotypes { + ...PhenotypeSelectTypeaheadFields + } + evidenceRating + source { + ...SourceSelectTypeaheadFields + } +} + ${Pi} +${Tr} +${$r} +${as} +${Ko}`,st=t.J1` + fragment SubmittableEvidenceFields on EvidenceItem { + id + description + variantOrigin + evidenceType + significance + evidenceLevel + evidenceDirection + evidenceRating + therapyInteractionType + source { + id + citation + sourceType + deprecated + } + phenotypes { + id + name + } + therapies { + id + name + } + disease { + id + name + } +} + `,Te=t.J1` + fragment RevisableFactorFields on Feature { + id + name + fullName + description + sources { + id + sourceType + citation + citationId + } + featureAliases + featureInstance { + ... on Factor { + ncitId + } + } +} + `,$e=t.J1` + fragment RevisableFactorVariantFields on FactorVariant { + name + feature { + id + name + } + variantAliases + variantTypes { + id + name + soid + } + ncitId +} + `,at=t.J1` + fragment RevisableFusionFields on Feature { + id + description + sources { + id + sourceType + citation + citationId + } + featureAliases + featureInstance { + __typename + } +} + `,At=t.J1` + fragment RevisableFusionVariantFields on FusionVariant { + name + feature { + id + name + link + deprecated + flagged + featureInstance { + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } + } + } + variantAliases + variantTypes { + id + name + soid + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } +} + ${zo}`,nn=t.J1` + fragment RevisableGeneFields on Feature { + id + description + sources { + id + sourceType + citation + citationId + } +} + `,ln=t.J1` + fragment RevisableGeneVariantFields on GeneVariant { + name + feature { + id + name + } + variantAliases + alleleRegistryId + clinvarIds + hgvsDescriptions + variantTypes { + id + name + soid + } + coordinates { + ...CoordinateFields + } +} + ${lr}`,hn=t.J1` + fragment RevisableMolecularProfileFields on MolecularProfile { + id + description + sources { + id + sourceType + citation + citationId + } + molecularProfileAliases + isComplex +} + `,xn=t.J1` + fragment VariantGroupRevisableFields on VariantGroup { + id + name + description + variants { + totalCount + edges { + cursor + node { + id + name + link + } + } + nodes { + id + name + link + } + } + sources { + id + name + link + } +} + `,Rn=t.J1` + fragment SubmittableVariantGroupFields on VariantGroup { + id + name + description + variants(first: 50) { + nodes { + id + name + link + singleVariantMolecularProfile { + id + name + link + } + } + } + sources { + id + link + citation + sourceType + } +} + `,Zn=t.J1` + fragment AdvancedSearchPermalink on AdvancedSearchResult { + permalinkId +} + `,jn=t.J1` + fragment AcmgCodeSelectTypeaheadFields on AcmgCode { + id + code + name + description + tooltip +} + `,oi=t.J1` + fragment ClingenCodeSelectTypeaheadFields on ClingenCode { + id + code + name + description + tooltip + exclusive +} + `,ai=t.J1` + fragment QuickAddDiseaseFields on AddDiseasePayload { + new + disease { + ...DiseaseSelectTypeaheadFields + } +} + ${Tr}`,Ti=t.J1` + fragment EvidenceManagerFields on EvidenceItem { + id + name + link + disease { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + } + status + flagged + therapyInteractionType + description + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin +} + ${Ve}`,ci=t.J1` + fragment EvidenceSelectTypeaheadFields on EvidenceItem { + id + name + link + evidenceType + evidenceDirection + evidenceLevel + evidenceRating + significance + variantOrigin + status +} + `,yi=t.J1` + fragment GeneBaseFields on Gene { + id + description + featureAliases + entrezId + deprecated + flagged + name + link + sources { + deprecated + id + citation + link + sourceUrl + displayType + sourceType + } +} + `,_i=t.J1` + fragment GeneSummaryFields on Gene { + ...GeneBaseFields + myGeneInfoDetails +} + ${yi}`,Oi=t.J1` + fragment NcitDetails on NcitDetails { + synonyms { + name + source + } + definitions { + definition + source + } +} + `,ki=t.J1` + fragment FactorSummaryFields on Factor { + id + name + description + featureAliases + ncitId + deprecated + sources { + id + citation + link + sourceUrl + displayType + sourceType + deprecated + } + ncitDetails { + ...NcitDetails + } + creationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + deprecationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } +} + ${Oi}`,co=t.J1` + fragment FusionSummaryFields on Fusion { + id + description + featureAliases + name + sources { + id + citation + link + sourceUrl + displayType + sourceType + deprecated + } + fivePrimeGene { + ...GeneBaseFields + } + threePrimeGene { + ...GeneBaseFields + } + fivePrimePartnerStatus + threePrimePartnerStatus + creationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + deprecationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } +} + ${yi}`,Ai=t.J1` + fragment FeatureSummaryFields on Feature { + id + name + fullName + link + deprecated + flagged + featureInstance { + __typename + ... on Gene { + ...GeneSummaryFields + } + ... on Factor { + ...FactorSummaryFields + } + ... on Fusion { + ...FusionSummaryFields + } + } +} + ${_i} +${ki} +${co}`,go=t.J1` + fragment QuickAddFeatureFields on CreateFeaturePayload { + clientMutationId + new + feature { + ...FeatureSummaryFields + } +} + ${Ai}`,_o=t.J1` + fragment FeatureSelectTypeaheadFields on Feature { + id + name + featureAliases + link + featureType + featureInstance { + __typename + ... on Gene { + entrezId + } + ... on Factor { + ncitId + } + ... on Fusion { + fivePrimePartnerStatus + threePrimePartnerStatus + } + } +} + `,yo=t.J1` + fragment PreviewMpName2 on MolecularProfileSegment { + __typename + ... on MolecularProfileTextSegment { + text + } + ... on Feature { + id + name + link + deprecated + flagged + } + ... on Variant { + id + name + link + deprecated + flagged + } +} + `,Yn=t.J1` + fragment NccnGuidelineSelectTypeaheadFields on NccnGuideline { + id + name +} + `,wo=t.J1` + fragment QuickAddTherapyFields on AddTherapyPayload { + new + therapy { + ...TherapySelectTypeaheadFields + } +} + ${$r}`,Xo=t.J1` + fragment VariantSelectTypeaheadFields on VariantInterface { + id + name + link + deprecated + variantAliases + singleVariantMolecularProfileId + singleVariantMolecularProfile { + id + name + link + molecularProfileAliases + } +} + `,es=t.J1` + fragment CreateFusionVariantFields on CreateFusionVariantPayload { + clientMutationId + new + variant { + ...VariantSelectTypeaheadFields + } +} + ${Xo}`,nr=(t.J1` + fragment VariantManagerFields on BrowseVariant { + id + name + link + featureId + featureName + featureLink + diseases { + id + name + link + deprecated + } + therapies { + id + name + link + deprecated + } + aliases { + name + } +} + `,t.J1` + fragment QuickAddVariantFields on CreateVariantPayload { + clientMutationId + new + variant { + ...VariantSelectTypeaheadFields + } +} + ${Xo}`),wr=t.J1` + fragment VariantTypeSelectTypeaheadFields on VariantType { + id + name + link + soid +} + `,gr=t.J1` + fragment assertionSubmissionActivity on Assertion { + submissionActivity { + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + ...commenterFields + } + } +} + ${Jt} +${vn}`,Er=t.J1` + fragment AssertionDetailFields on Assertion { + id + name + status + submissionEvent { + originatingUser { + id + } + } + molecularProfile { + id + name + link + deprecated + flagged + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + ...assertionSubmissionActivity +} + ${gr}`,vr=t.J1` + fragment AssertionSummaryFields on Assertion { + id + name + summary + description + status + variantOrigin + disease { + id + name + link + deprecated + } + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + flagged + } + assertionType + assertionDirection + significance + therapies { + ncitId + name + link + id + deprecated + } + phenotypes { + id + name + link + } + therapyInteractionType + ampLevel + acmgCodes { + code + description + } + clingenCodes { + id + code + description + } + nccnGuideline { + id + name + } + nccnGuidelineVersion + regulatoryApproval + regulatoryApprovalLastUpdated + fdaCompanionTest + fdaCompanionTestLastUpdated + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + acceptanceEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + ...assertionSubmissionActivity + submissionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + rejectionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${Ve} +${gr}`,Vo=t.J1` + fragment MyDiseaseInfoFields on MyDiseaseInfo { + diseaseOntologyExactSynonyms + diseaseOntologyRelatedSynonyms + mesh + icdo + icd10 + ncit + omim + doDef + doDefCitations + mondoDef + mondoId +} + `,As=t.J1` + fragment DiseasesSummaryFields on Disease { + id + name + doid + diseaseUrl + displayName + diseaseAliases + link + myDiseaseInfo { + ...MyDiseaseInfoFields + } + deprecated +} + ${Vo}`,kr=t.J1` + fragment evidenceSubmissionActivity on EvidenceItem { + submissionActivity { + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + ...commenterFields + } + } +} + ${Jt} +${vn}`,$o=t.J1` + fragment EvidenceDetailFields on EvidenceItem { + id + name + status + submissionEvent { + originatingUser { + id + } + } + molecularProfile { + id + name + link + deprecated + flagged + } + assertions { + id + name + link + flagged + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + ...evidenceSubmissionActivity +} + ${kr}`,cs=t.J1` + fragment EvidenceSummaryFields on EvidenceItem { + id + name + description + status + evidenceLevel + evidenceType + evidenceDirection + significance + variantOrigin + therapies { + id + name + link + deprecated + } + therapyInteractionType + disease { + id + name + link + deprecated + } + phenotypes { + id + name + link + } + source { + id + citation + citationId + sourceType + displayType + sourceUrl + ascoAbstractId + link + clinicalTrials { + nctId + id + link + } + retractionNature + deprecated + } + evidenceRating + molecularProfile { + id + name + link + parsedName { + ...MolecularProfileParsedName + } + deprecated + flagged + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + submissionActivity { + createdAt + parsedNote { + ...parsedCommentFragment + } + user { + displayName + profileImagePath(size: 32) + id + role + } + } + acceptanceEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + submissionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + rejectionEvent { + createdAt + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${Ve} +${Jt}`,Ro=t.J1` + fragment FeatureDetailFields on Feature { + id + name + fullName + deprecated + deprecationReason + deprecationActivity { + parsedNote { + ...parsedCommentFragment + } + } + featureInstance { + __typename + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + ${Jt}`,vs=t.J1` + fragment MolecularProfileDetailFields on MolecularProfile { + id + name + deprecated + deprecationReason + complexMolecularProfileDeprecationActivity { + parsedNote { + ...parsedCommentFragment + } + } + deprecatedVariants { + deprecationReason + deprecationActivity { + parsedNote { + ...parsedCommentFragment + } + } + id + deprecated + flagged + name + link + feature { + id + name + link + deprecated + flagged + } + } + molecularProfileAliases + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + variants { + id + } +} + ${Jt}`,_s=t.J1` + fragment MyVariantInfoFields on MyVariantInfo { + myVariantInfoId + caddConsequence + caddDetail + caddScore + caddPhred + clinvarClinicalSignificance + clinvarHgvsCoding + clinvarHgvsGenomic + clinvarHgvsNonCoding + clinvarHgvsProtein + clinvarId + clinvarOmim + cosmicId + dbnsfpInterproDomain + dbsnpRsid + eglClass + eglHgvs + eglProtein + eglTranscript + exacAlleleCount + exacAlleleFrequency + exacAlleleNumber + fathmmMklPrediction + fathmmMklScore + fathmmPrediction + fathmmScore + fitconsScore + gerp + gnomadExomeAlleleCount + gnomadExomeAlleleFrequency + gnomadExomeAlleleNumber + gnomadExomeFilter + gnomadGenomeAlleleCount + gnomadGenomeAlleleFrequency + gnomadGenomeAlleleNumber + gnomadGenomeFilter + lrtPrediction + lrtScore + metalrPrediction + metalrScore + metasvmPrediction + metasvmScore + mutationassessorPrediction + mutationassessorScore + mutationtasterPrediction + mutationtasterScore + phastcons100way + phastcons30way + phyloP100way + phyloP30way + polyphen2HdivPrediction + polyphen2HdivScore + polyphen2HvarPrediction + polyphen2HvarScore + proveanPrediction + proveanScore + revelScore + siftPrediction + siftScore + siphy + snpeffSnpEffect + snpeffSnpImpact +} + `,nt=t.J1` + fragment GeneVariantSummaryFields on GeneVariant { + alleleRegistryId + openCravatUrl + maneSelectTranscript + hgvsDescriptions + clinvarIds + coordinates { + ...CoordinateFields + } + myVariantInfo { + ...MyVariantInfoFields + } +} + ${lr} +${_s}`,Un=t.J1` + fragment FactorVariantSummaryFields on FactorVariant { + ncitId + ncitDetails { + ...NcitDetails + } +} + ${Oi}`,me=t.J1` + fragment FusionVariantSummaryFields on FusionVariant { + viccCompliantName + fusion { + fivePrimePartnerStatus + fivePrimeGene { + id + name + link + deprecated + flagged + } + threePrimePartnerStatus + threePrimeGene { + id + name + link + deprecated + flagged + } + } + fivePrimeCoordinates { + ...CoordinateFields + } + threePrimeCoordinates { + ...CoordinateFields + } + fivePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + fivePrimeEndExonCoordinates { + ...ExonCoordinateFields + } + threePrimeStartExonCoordinates { + ...ExonCoordinateFields + } + threePrimeEndExonCoordinates { + ...ExonCoordinateFields + } +} + ${lr} +${zo}`,qe=t.J1` + fragment VariantMolecularProfileCardFields on VariantInterface { + id + name + link + deprecated + flagged + feature { + id + name + link + deprecated + flagged + } + molecularProfiles(first: 3) { + totalCount + nodes { + id + link + name + deprecated + flagged + } + } + ... on GeneVariant { + ...GeneVariantSummaryFields + } + ... on FactorVariant { + ...FactorVariantSummaryFields + } + ... on FusionVariant { + ...FusionVariantSummaryFields + } + variantAliases + variantTypes { + id + link + soid + name + } +} + ${nt} +${Un} +${me}`,gt=t.J1` + fragment MolecularProfileSummaryFields on MolecularProfile { + id + name + description + molecularProfileAliases + molecularProfileScore + sources { + id + citation + link + sourceType + deprecated + } + variants { + ...VariantMolecularProfileCardFields + } + parsedName { + ...MolecularProfileParsedName + } + complexMolecularProfileCreationActivity { + createdAt + user { + id + displayName + role + profileImagePath(size: 32) + } + } + variantDeprecationActivity { + createdAt + user { + id + displayName + role + profileImagePath(size: 32) + } + } + complexMolecularProfileDeprecationActivity { + createdAt + user { + id + displayName + role + profileImagePath(size: 32) + } + } +} + ${qe} +${Ve}`,pn=t.J1` + fragment OrganizationDetailFields on Organization { + id + name + url + description + profileImagePath(size: 256) + subGroups { + id + name + profileImagePath(size: 12) + } + orgStatsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + orgAndSuborgsStatsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } + } +} + `,ei=t.J1` + fragment OrganizationGroupsFields on Organization { + id + name + url + description + profileImagePath(size: 128) + subGroups { + id + name + url + } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } + } +} + `,ti=t.J1` + fragment OrganizationMembersFields on BrowseUser { + id + name + displayName + username + profileImagePath(size: 64) + role + url + areaOfExpertise + orcid + twitterHandle + facebookProfile + linkedinProfile + organizations { + id + name + url + } +} + `,wi=t.J1` + fragment Release on DataRelease { + name + geneTsv { + filename + path + } + variantTsv { + filename + path + } + variantGroupTsv { + filename + path + } + evidenceTsv { + filename + path + } + molecularProfileTsv { + filename + path + } + assertionTsv { + filename + path + } + acceptedVariantsVcf { + filename + path + } + acceptedAndSubmittedVariantsVcf { + filename + path + } +} + `,Zi=t.J1` + fragment SourceDetailFields on Source { + id + citation + sourceUrl + displayType + fullyCurated + citationId + comments { + totalCount + } +} + `,No=t.J1` + fragment SourceSummaryFields on Source { + id + citation + displayType + sourceUrl + title + abstract + publicationDate + citationId + fullJournalTitle + pmcId + authorString + ascoAbstractId + clinicalTrials { + nctId + id + link + } + retracted + retractionNature + retractionDate + retractionReasons + deprecated +} + `,bi=t.J1` + fragment MyChemInfoFields on MyChemInfo { + chebiId + chebiDefinition + fdaEpcCodes { + code + description + } + fdaMoaCodes { + code + description + } + firstApproval + chemblMoleculeType + chemblId + pubchemCid + pharmgkbId + rxnorm + inchikey + drugbankId + indications +} + `,Do=t.J1` + fragment TherapiesSummaryFields on Therapy { + id + name + ncitId + therapyUrl + therapyAliases + link + myChemInfo { + ...MyChemInfoFields + } +} + ${bi}`,Ho=t.J1` + fragment UserDetailFields on User { + id + name + displayName + username + email + profileImagePath(size: 128) + role + url + bio + areaOfExpertise + orcid + twitterHandle + facebookProfile + linkedinProfile + organizations { + id + name + url + } + country { + id + name + } + statsHash { + comments + revisions + appliedRevisions + submittedEvidenceItems + acceptedEvidenceItems + suggestedSources + submittedAssertions + acceptedAssertions + } + ranks { + commentsRank { + rank + actionCount + } + moderationRank { + rank + actionCount + } + revisionsRank { + rank + actionCount + } + submissionsRank { + rank + actionCount + } + } + mostRecentConflictOfInterestStatement { + id + coiPresent + coiStatement + coiStatus + createdAt + expiresAt + } +} + `,ys=t.J1` + fragment notificationOrganization on Organization { + id + name +} + `,Be=t.J1` + fragment notificationOriginatingUsers on User { + id + displayName +} + `,Ke=t.J1` + fragment notificationFeedSubjects on EventSubjectWithCount { + subject { + id + __typename + name + } + occuranceCount +} + `,be=t.J1` + fragment notificationNode on Notification { + id + type + event { + ...eventFeedNode + } + seen + subscription { + id + subscribable { + id + name + __typename + } + } +} + ${Ht}`,Ct=t.J1` + fragment subscribable on Subscribable { + id + entityType + __typename +} + `,sn=t.J1` + fragment VariantGroupDetailFields on VariantGroup { + id + name + variants { + totalCount + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } +} + `,ji=t.J1` + fragment VariantGroupSummaryFields on VariantGroup { + id + name + description + sources { + id + link + citation + sourceUrl + displayType + sourceType + deprecated + } +} + `,ho=t.J1` + fragment VariantDetailFields on VariantInterface { + id + name + deprecated + deprecationReason + deprecationActivity { + parsedNote { + ...parsedCommentFragment + } + } + feature { + id + name + link + deprecated + flagged + } + variantAliases + flags(state: OPEN) { + totalCount + } + openRevisionCount + comments { + totalCount + } +} + ${Jt}`,jo=t.J1` + fragment VariantCoordinateIds on VariantInterface { + __typename + ... on GeneVariant { + coordinates { + id + } + } + ... on FusionVariant { + fivePrimeEndExonCoordinates { + id + } + threePrimeStartExonCoordinates { + id + } + } +} + `,Fi=t.J1` + fragment VariantSummaryFields on VariantInterface { + id + name + feature { + __typename + id + name + link + deprecated + flagged + } + variantAliases + variantTypes { + id + link + soid + name + } + flags(state: OPEN) { + totalCount + } + revisions(status: NEW) { + totalCount + } + comments { + totalCount + } + lastSubmittedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + lastAcceptedRevisionEvent { + originatingUser { + id + displayName + role + profileImagePath(size: 32) + } + } + creationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + deprecationActivity { + user { + id + displayName + role + profileImagePath(size: 32) + } + createdAt + } + ... on GeneVariant { + ...GeneVariantSummaryFields + } + ... on FactorVariant { + ...FactorVariantSummaryFields + } + ... on FusionVariant { + ...FusionVariantSummaryFields + } +} + ${nt} +${Un} +${me}`,La=t.J1` + query ActivityFeed($subject: [SubscribableQueryInput!], $first: Int, $last: Int, $before: String, $after: String, $organizationId: [Int!], $userId: [Int!], $activityType: [ActivityTypeInput!], $subjectType: [ActivitySubjectInput!], $includeAutomatedEvents: Boolean, $mode: EventFeedMode, $showFilters: Boolean!, $requestDetails: Boolean!, $occurredAfter: ISO8601DateTime, $occurredBefore: ISO8601DateTime) { + activities( + subject: $subject + first: $first + last: $last + before: $before + after: $after + userId: $userId + includeAutomatedEvents: $includeAutomatedEvents + organizationId: $organizationId + activityType: $activityType + subjectType: $subjectType + mode: $mode + occurredAfter: $occurredAfter + occurredBefore: $occurredBefore + ) { + ...ActivitiesConnectionFields + } +} + ${V}`;let Nc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=La}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ma=t.J1` + query ActivityFeedItem($id: Int!, $requestDetails: Boolean!) { + activity(id: $id) { + ...ActivityFeedItem + note @include(if: $requestDetails) + } +} + ${le}`;let Vr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ma}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ac=t.J1` + query AssertionPopover($assertionId: Int!) { + assertion(id: $assertionId) { + ...assertionPopover + } +} + ${Ce}`;let Io=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ac}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const _a=t.J1` + query AssertionsBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $summary: String, $assertionDirection: EvidenceDirection, $significance: EvidenceSignificance, $assertionType: EvidenceType, $variantId: Int, $molecularProfileId: Int, $evidenceId: Int, $molecularProfileName: String, $sortBy: AssertionSort, $ampLevel: AmpLevel, $organizationId: Int, $userId: Int, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $status: EvidenceStatusFilter) { + assertions( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + therapyName: $therapyName + id: $id + summary: $summary + assertionDirection: $assertionDirection + significance: $significance + assertionType: $assertionType + variantId: $variantId + molecularProfileId: $molecularProfileId + sortBy: $sortBy + ampLevel: $ampLevel + molecularProfileName: $molecularProfileName + evidenceId: $evidenceId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + therapyId: $therapyId + diseaseId: $diseaseId + status: $status + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...AssertionBrowseFields + } + } + } +} + ${J}`;let ls=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_a}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const aa=t.J1` + query ClinicalTrialPopover($clinicalTrialId: Int!) { + clinicalTrials(id: $clinicalTrialId) { + edges { + node { + ...clinicalTrialPopover + } + } + } +} + ${W}`;let Ba=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=aa}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ir=t.J1` + query ClinicalTrialsBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $nctId: String, $sortBy: ClinicalTrialSort) { + clinicalTrials( + first: $first + last: $last + before: $before + after: $after + name: $name + nctId: $nctId + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...BrowseClinicalTrialsRowFields + } + } + } +} + ${_e}`;let Da=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ir}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Us=t.J1` + mutation DeleteComment($input: DeleteCommentInput!) { + deleteComment(input: $input) { + comment { + ...commentListNode + } + } +} + ${ae}`;let Es=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Us}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const cc=t.J1` + query CommentList($first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $mentionedUserId: Int, $mentionedRole: UserRole, $mentionedEntity: TaggableEntityInput, $subject: CommentableInput, $sortBy: DateSort) { + comments( + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + mentionedUserId: $mentionedUserId + mentionedRole: $mentionedRole + mentionedEntity: $mentionedEntity + subject: $subject + sortBy: $sortBy + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + uniqueCommenters { + id + displayName + role + profileImagePath(size: 32) + } + mentionedUsers { + id + displayName + role + profileImagePath(size: 32) + } + mentionedRoles { + displayName + entityId + tagType + link + } + mentionedEntities { + displayName + entityId + tagType + link + } + unfilteredCountForSubject + edges { + cursor + node { + ...commentListNode + } + } + } +} + ${ae}`;let ya=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=cc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const us=t.J1` + query CommentPopover($commentId: Int!) { + comment(id: $commentId) { + ...commentPopover + } +} + ${it}`;let Ui=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=us}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Gs=t.J1` + query DiseasePopover($diseaseId: Int!) { + diseasePopover(id: $diseaseId) { + id + name + displayName + doid + diseaseUrl + diseaseAliases + assertionCount + evidenceItemCount + molecularProfileCount + link + deprecated + } +} + `;let $a=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Gs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const zs=t.J1` + query BrowseDiseases($first: Int, $last: Int, $before: String, $after: String, $sortBy: DiseasesSort, $name: String, $doid: String, $diseaseAlias: String, $featureName: String) { + browseDiseases( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + doid: $doid + diseaseAlias: $diseaseAlias + featureName: $featureName + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + lastUpdated + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseDiseaseRowFields + } + } + } +} + ${dt}`;let Ha=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=zs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ds=t.J1` + query EventFeedCount($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $includeAutomatedEvents: Boolean, $mode: EventFeedMode) { + events( + subject: $subject + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + organizationId: $organizationId + eventType: $eventType + mode: $mode + includeAutomatedEvents: $includeAutomatedEvents + ) { + unfilteredCount + } +} + `;let Sa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ds}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const hs=t.J1` + query EventFeed($subject: SubscribableQueryInput, $first: Int, $last: Int, $before: String, $after: String, $originatingUserId: Int, $organizationId: Int, $eventType: EventAction, $mode: EventFeedMode, $includeAutomatedEvents: Boolean = true, $showFilters: Boolean!) { + events( + subject: $subject + first: $first + last: $last + before: $before + after: $after + originatingUserId: $originatingUserId + organizationId: $organizationId + eventType: $eventType + includeAutomatedEvents: $includeAutomatedEvents + mode: $mode + ) { + ...eventFeed + } +} + ${dn}`;let pu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=hs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const el=t.J1` + query EvidencePopover($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...evidencePopover + } +} + ${wn}`;let fu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=el}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Lr=t.J1` + query EvidenceBrowse($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { + evidenceItems( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + therapyName: $therapyName + id: $id + description: $description + evidenceLevel: $evidenceLevel + evidenceDirection: $evidenceDirection + significance: $significance + evidenceType: $evidenceType + evidenceRating: $rating + variantOrigin: $variantOrigin + variantId: $variantId + molecularProfileId: $molecularProfileId + assertionId: $assertionId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + diseaseId: $diseaseId + therapyId: $therapyId + sourceId: $sourceId + clinicalTrialId: $clinicalTrialId + molecularProfileName: $molecularProfileName + status: $status + sortBy: $sortBy + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...EvidenceGridFields + } + } + } +} + ${si}`;let Rs=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Lr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ja=t.J1` + query FeaturePopover($featureId: Int!) { + feature(id: $featureId) { + ...featurePopover + } +} + ${Cn}`;let Ca=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ja}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const kc=t.J1` + query BrowseFeatures($featureName: String, $featureFullName: String, $therapyName: String, $featureAlias: String, $diseaseName: String, $featureType: FeatureInstanceTypes, $sortBy: FeaturesSort, $first: Int, $last: Int, $before: String, $after: String) { + browseFeatures( + featureName: $featureName + featureFullName: $featureFullName + therapyName: $therapyName + featureAlias: $featureAlias + diseaseName: $diseaseName + featureType: $featureType + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + edges { + cursor + node { + ...BrowseFeaturesFields + } + } + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + lastUpdated + totalCount + filteredCount + pageCount + } +} + ${ni}`;let Ns=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=kc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ua=t.J1` + query FlagList($flaggable: FlaggableInput, $flaggingUserId: Int, $resolvingUserId: Int, $state: FlagState, $sortBy: DateSort, $first: Int, $last: Int, $before: String, $after: String) { + flags( + flaggable: $flaggable + flaggingUserId: $flaggingUserId + resolvingUserId: $resolvingUserId + state: $state + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + ...flagList + } +} + ${Ni}`;let lc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ua}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const eo=t.J1` + query FlagPopover($flagId: Int!) { + flag(id: $flagId) { + ...flagPopover + } +} + ${Eo}`;let vo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=eo}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const uc=t.J1` + query FusionMenu($genePartnerId: Int, $first: Int, $last: Int, $before: String, $after: String) { + fusions( + genePartnerId: $genePartnerId + first: $first + last: $last + before: $before + after: $after + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuFusion + } + } + } +} + ${lo}`;let ba=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=uc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Vc=t.J1` + query Quicksearch($query: String!, $types: [SearchableEntities!], $highlightMatches: Boolean) { + search(query: $query, types: $types, highlightMatches: $highlightMatches) { + ...QuicksearchResult + } +} + ${$i}`;let Lc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Vc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ks=t.J1` + query MolecularProfilePopover($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...molecularProfilePopoverFields + } +} + ${Ii}`;let Ys=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ks}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pt=t.J1` + query BrowseMolecularProfiles($molecularProfileName: String, $variantName: String, $variantId: Int, $featureName: String, $diseaseName: String, $therapyName: String, $molecularProfileAlias: String, $sortBy: MolecularProfilesSort, $first: Int, $last: Int, $before: String, $after: String) { + browseMolecularProfiles( + molecularProfileName: $molecularProfileName + variantName: $variantName + variantId: $variantId + featureName: $featureName + diseaseName: $diseaseName + therapyName: $therapyName + molecularProfileAlias: $molecularProfileAlias + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + ...BrowseMolecularProfilesFields + } + } + lastUpdated + filteredCount + pageCount + } +} + ${Nr}`;let ot=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pt}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const we=t.J1` + query MolecularProfileMenu($geneId: Int, $featureId: Int, $mpName: String, $first: Int, $last: Int, $before: String, $after: String, $evidenceStatusFilter: MolecularProfileDisplayFilter) { + molecularProfiles( + geneId: $geneId + featureId: $featureId + name: $mpName + evidenceStatusFilter: $evidenceStatusFilter + first: $first + last: $last + before: $before + after: $after + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuMolecularProfile + } + } + } +} + ${pr}`;let Fe=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=we}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const fe=t.J1` + query OrganizationCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + commentsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${vt}`;let rt=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=fe}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ue=t.J1` + query OrganizationRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + revisionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${vt}`;let Xn=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ue}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Di=t.J1` + query OrganizationModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + moderationLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${vt}`;let L=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Di}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const tt=t.J1` + query OrganizationSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + organizationLeaderboards { + submissionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardOrganizationFields + } + } + nodes { + ...LeaderboardOrganizationFields + } + } + } +} + ${vt}`;let ye=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=tt}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ge=t.J1` + query OrgPopover($orgId: Int!) { + organization(id: $orgId) { + ...orgPopover + } +} + ${Gt}`;let jt=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ge}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const _n=t.J1` + query OrganizationsBrowse($first: Int, $last: Int, $before: String, $after: String, $id: Int, $orgName: String, $sortBy: OrganizationSort) { + organizations( + first: $first + last: $last + before: $before + after: $after + name: $orgName + id: $id + sortBy: $sortBy + ) { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...OrganizationBrowseTableRowFields + } + } + } +} + ${Pt}`;let Vn=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_n}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pi=t.J1` + query PhenotypePopover($phenotypeId: Int!) { + phenotypePopover(id: $phenotypeId) { + id + name + url + hpoId + assertionCount + evidenceItemCount + molecularProfileCount + link + } +} + `;let po=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pi}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Yi=t.J1` + query PhenotypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $hpoId: String, $sortBy: PhenotypeSort) { + phenotypes( + first: $first + last: $last + before: $before + after: $after + name: $name + hpoId: $hpoId + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...PhenotypeBrowseTableRowFields + } + } + } +} + ${Mn}`;let bo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Yi}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Qn=t.J1` + mutation AcceptRevision($input: AcceptRevisionsInput!) { + acceptRevisions(input: $input) { + revisions { + id + __typename + } + } +} + `;let xo=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Qn}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Li=t.J1` + mutation RejectRevision($input: RejectRevisionsInput!) { + rejectRevisions(input: $input) { + revisions { + id + __typename + } + } +} + `;let To=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Li}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ur=t.J1` + query ValidateRevisionsForAcceptance($ids: [Int!]!) { + validateRevisionsForAcceptance(revisionIds: $ids) { + genericErrors + validationErrors { + ...validationError + } + } +} + ${En}`;let ir=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ur}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const xr=t.J1` + query RevisionPopover($revisionId: Int!) { + revision(id: $revisionId) { + ...revisionPopover + } +} + ${ii}`;let Hr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=xr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const zr=t.J1` + query Revisions($subject: ModeratedInput, $first: Int, $last: Int, $before: String, $after: String, $fieldName: String, $originatingUserId: Int, $resolvingUserId: Int, $revisionSetId: Int, $status: RevisionStatus) { + revisions( + first: $first + last: $last + before: $before + after: $after + fieldName: $fieldName + originatingUserId: $originatingUserId + resolvingUserId: $resolvingUserId + subject: $subject + status: $status + revisionSetId: $revisionSetId + ) { + totalCount + unfilteredCountForSubject + uniqueRevisors { + username + id + profileImagePath(size: 32) + } + uniqueResolvers { + username + id + profileImagePath(size: 32) + } + revisedFieldNames { + name + displayName + } + pageInfo { + hasNextPage + hasPreviousPage + endCursor + startCursor + } + edges { + node { + ...revision + } + } + } +} + ${Pn}`;let jr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=zr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ts=t.J1` + query ContributorAvatars($subscribable: SubscribableInput!) { + contributors(subscribable: $subscribable) { + editors { + ...ContributorFields + } + curators { + ...ContributorFields + } + } +} + ${Fn}`;let fr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ts}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const or=t.J1` + query SubscriptionForEntity($subscribable: SubscribableInput!) { + subscriptionForEntity(subscribable: $subscribable) { + ...subscriptionId + } +} + ${hi}`;let Ms=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=or}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Qo=t.J1` + mutation ModerateEvidenceItem($input: ModerateEvidenceItemInput!) { + moderateEvidenceItem(input: $input) { + evidenceItem { + id + } + } +} + `;let ns=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Qo}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const fo=t.J1` + mutation ModerateAssertion($input: ModerateAssertionInput!) { + moderateAssertion(input: $input) { + assertion { + id + } + } +} + `;let Ws=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=fo}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Yr=t.J1` + query CivicStats { + timepointStats { + assertions { + ...TimepointCount + } + diseases { + ...TimepointCount + } + therapies { + ...TimepointCount + } + evidenceItems { + ...TimepointCount + } + features { + ...TimepointCount + } + revisions { + ...TimepointCount + } + sources { + ...TimepointCount + } + users { + ...TimepointCount + } + variants { + ...TimepointCount + } + comments { + ...TimepointCount + } + molecularProfiles { + ...TimepointCount + } + } +} + ${xi}`;let is=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Yr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const dc=t.J1` + query BrowseSourceSuggestions($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourceSuggestionsSort, $sourceType: SourceSource, $citationId: Int, $sourceId: Int, $molecularProfileName: String, $diseaseName: String, $comment: String, $submitter: String, $citation: String, $submitterId: Int, $status: SourceSuggestionStatus) { + sourceSuggestions( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + sourceType: $sourceType + citationId: $citationId + sourceId: $sourceId + molecularProfileName: $molecularProfileName + diseaseName: $diseaseName + comment: $comment + submitter: $submitter + citation: $citation + submitterId: $submitterId + status: $status + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + pageCount + edges { + cursor + node { + ...BrowseSourceSuggestionRowFields + } + } + } +} + ${Hi}`;let Ga=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=dc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` + mutation UpdateSourceSuggestionStatus($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `;const _r=t.J1` + query SourcePopover($sourceId: Int!) { + sourcePopover(id: $sourceId) { + ...sourcePopover + } +} + ${Mi}`;let Po=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_r}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ds=t.J1` + query BrowseSources($first: Int, $last: Int, $before: String, $after: String, $sortBy: SourcesSort, $name: String, $year: Int, $sourceType: SourceSource, $citationId: Int, $author: String, $journal: String, $clinicalTrialId: Int, $openAccess: Boolean) { + browseSources( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + year: $year + sourceType: $sourceType + citationId: $citationId + author: $author + journal: $journal + clinicalTrialId: $clinicalTrialId + openAccess: $openAccess + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + lastUpdated + pageCount + edges { + cursor + node { + ...BrowseSourceRowFields + } + } + } +} + ${gn}`;let ca=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ds}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Wr=t.J1` + query TherapyPopover($therapyId: Int!) { + therapyPopover(id: $therapyId) { + id + name + therapyUrl + ncitId + therapyAliases + assertionCount + evidenceItemCount + molecularProfileCount + link + deprecated + } +} + `;let Oo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Wr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const dr=t.J1` + query TherapiesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $ncitId: String, $therapyAlias: String, $sortBy: TherapySort) { + therapies( + first: $first + last: $last + before: $before + after: $after + name: $name + ncitId: $ncitId + therapyAlias: $therapyAlias + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...TherapyBrowseTableRowFields + } + } + } +} + ${Si}`;let Ya=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=dr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Oa=t.J1` + query UserCommentsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + commentsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${Ei}`;let wa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Oa}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const tl=t.J1` + query UserRevisionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + revisionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${Ei}`;let Ks=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=tl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Xs=t.J1` + query UserModerationLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + moderationLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${Ei}`;let mu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Xs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const nl=t.J1` + query UserSubmissionsLeaderboard($window: TimeWindow, $first: Int, $last: Int, $before: String, $after: String) { + userLeaderboards { + submissionsLeaderboard( + first: $first + last: $last + before: $before + after: $after + window: $window + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + edges { + cursor + node { + ...LeaderboardUserFields + } + } + nodes { + ...LeaderboardUserFields + } + } + } +} + ${Ei}`;let la=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=nl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ol=t.J1` + query UserPopover($userId: Int!) { + user(id: $userId) { + ...popoverUser + } +} + ${Ki}`;let Wa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ol}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const il=t.J1` + query UsersBrowse($first: Int, $last: Int, $before: String, $after: String, $userName: String, $orgName: OrganizationFilter, $userRole: UserRole, $sortBy: UsersSort) { + users( + first: $first + last: $last + before: $before + after: $after + name: $userName + organization: $orgName + role: $userRole + sortBy: $sortBy + ) { + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } + totalCount + edges { + cursor + node { + ...UserBrowseTableRowFields + } + } + } +} + ${Vi}`;let Bc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=il}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ss=t.J1` + query VariantGroupPopover($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...variantGroupPopoverFields + } +} + ${qi}`;let Ia=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ss}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const gu=t.J1` + query BrowseVariantGroups($first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantGroupsSort, $name: String, $featureNames: String, $variantNames: String) { + browseVariantGroups( + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + name: $name + featureNames: $featureNames + variantNames: $variantNames + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + totalCount + filteredCount + pageCount + lastUpdated + edges { + cursor + node { + ...BrowseVariantGroupRowFields + } + } + } +} + ${Go}`;let qu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=gu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Vs=t.J1` + query VariantTypePopover($variantTypeId: Int!) { + variantTypePopover(id: $variantTypeId) { + ...variantTypePopover + } +} + ${so}`;let vu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Vs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ol=t.J1` + query VariantTypesBrowse($first: Int, $last: Int, $before: String, $after: String, $name: String, $soid: String, $sortBy: VariantTypeSort) { + variantTypes( + first: $first + last: $last + before: $before + after: $after + name: $name + soid: $soid + sortBy: $sortBy + ) { + totalCount + filteredCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...VariantTypeBrowseTableRowFields + } + } + } +} + ${tr}`;let F=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ol}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ue=t.J1` + query CoordinatesCard($variantId: Int!) { + variant(id: $variantId) { + ...CoordinatesCardFields + } +} + ${Mo}`;let B=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ue}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const he=t.J1` + query VariantPopover($variantId: Int!) { + variant(id: $variantId) { + ...variantPopoverFields + } +} + ${br}`;let Ye=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=he}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Et=t.J1` + query VariantsMenu($featureId: Int, $variantName: String, $variantTypeIds: [Int!], $hasNoVariantType: Boolean, $first: Int, $last: Int, $before: String, $after: String, $sortBy: VariantMenuSort) { + variants( + featureId: $featureId + name: $variantName + variantTypeIds: $variantTypeIds + hasNoVariantType: $hasNoVariantType + first: $first + last: $last + before: $before + after: $after + sortBy: $sortBy + ) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + cursor + node { + ...menuVariant + } + } + } +} + ${Zr}`;let Wt=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Et}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const On=t.J1` + query VariantTypesForFeature($featureId: Int) { + variantTypes(featureId: $featureId, first: 50) { + edges { + node { + ...menuVariantType + } + } + } +} + ${Wo}`;let yn=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=On}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const gi=t.J1` + query BrowseVariants($variantName: String, $featureName: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $variantTypeName: String, $hasNoVariantType: Boolean, $variantCategory: VariantCategories, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { + browseVariants( + variantName: $variantName + featureName: $featureName + diseaseName: $diseaseName + therapyName: $therapyName + variantAlias: $variantAlias + variantTypeId: $variantTypeId + variantGroupId: $variantGroupId + variantTypeName: $variantTypeName + hasNoVariantType: $hasNoVariantType + category: $variantCategory + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + ...BrowseVariantsFields + } + } + totalCount + filteredCount + pageCount + lastUpdated + } +} + ${uo}`;let Qi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=gi}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ji=t.J1` + query ViewerBase { + viewer { + id + username + role + displayName + profileImagePath(size: 32) + organizations { + id + name + profileImagePath(size: 32) + } + mostRecentConflictOfInterestStatement { + coiStatus + } + mostRecentOrganizationId + } +} + `;let Yo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ji}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Os=t.J1` + query ViewerNotificationCount { + notifications { + unreadCount + } +} + `;let Ur=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Os}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const oo=t.J1` + mutation AddComment($input: AddCommentInput!) { + addComment(input: $input) { + clientMutationId + comment { + ...commentListNode + } + } +} + ${ae}`;let Lo=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=oo}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const yr=t.J1` + query previewComment($commentText: String!) { + previewCommentText(commentText: $commentText) { + ...parsedCommentFragment + } +} + ${Jt}`;let Ta=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=yr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Cr=t.J1` + query userTypeahead($queryTerm: String!) { + userTypeahead(queryTerm: $queryTerm) { + username + } +} + `;let wl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Cr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Il=t.J1` + query entityTypeahead($queryTerm: String!) { + entityTypeahead(queryTerm: $queryTerm) { + entityId + tagType + displayName + } +} + `;let xl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Il}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const th=t.J1` + mutation DeprecateComplexMolecularProfile($molecularProfileId: Int!, $deprecationReason: MolecularProfileDeprecationReasonMutationInput!, $comment: String!, $organizationId: Int) { + deprecateComplexMolecularProfile( + input: {molecularProfileId: $molecularProfileId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + molecularProfile { + id + name + } + } +} + `;let nh=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=th}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Pl=t.J1` + query EvidenceCountsForMolecularProfile($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + id + name + link + evidenceCountsByStatus { + submittedCount + acceptedCount + } + } +} + `;let U1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Pl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` + query LinkableGene($geneId: Int!) { + gene(id: $geneId) { + id + name + link + } +} + `,t.J1` + query LinkableVariant($variantId: Int!) { + variant(id: $variantId) { + id + name + link + } +} + `,t.J1` + query LinkableTherapy($therapyId: Int!) { + therapy(id: $therapyId) { + id + name + link + } +} + `,t.J1` + query LinkableFeature($featureId: Int!) { + feature(id: $featureId) { + id + name + link + featureType + } +} + `;const Cu=t.J1` + mutation DeprecateFeature($featureId: Int!, $deprecationReason: FeatureDeprecationReason!, $comment: String!, $organizationId: Int) { + deprecateFeature( + input: {featureId: $featureId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + feature { + id + name + } + } +} + `;let Ka=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Cu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const t1=t.J1` + query VariantsForFeature($featureId: Int!) { + variants(featureId: $featureId, first: 50) { + nodes { + id + name + link + deprecated + flagged + } + } +} + `;let Al=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=t1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const sl=t.J1` + mutation FlagEntity($input: FlagEntityInput!) { + flagEntity(input: $input) { + flag { + id + } + } +} + `;let n1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=sl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Rl=t.J1` + mutation ResolveFlag($input: ResolveFlagInput!) { + resolveFlag(input: $input) { + flag { + id + } + } +} + `;let al=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Rl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ls=t.J1` + mutation UpdateSourceSuggestion($input: UpdateSourceSuggestionStatusInput!) { + updateSourceSuggestionStatus(input: $input) { + sourceSuggestion { + id + status + } + } +} + `;let hc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Ls}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const bu=t.J1` + mutation UpdateCoi($input: UpdateCoiInput!) { + updateCoi(input: $input) { + coiStatement { + coiPresent + coiStatus + createdAt + id + } + } +} + `;let o1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=bu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const r1=t.J1` + mutation UpdateUserProfile($input: EditUserInput!) { + editUser(input: $input) { + user { + id + } + } +} + `;let Tu=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=r1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pc=t.J1` + query Countries { + countries { + id + name + } +} + `;let s1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const a1=t.J1` + mutation DeprecateVariant($variantId: Int!, $deprecationReason: VariantDeprecationReason!, $comment: String!, $organizationId: Int) { + deprecateVariant( + input: {variantId: $variantId, deprecationReason: $deprecationReason, comment: $comment, organizationId: $organizationId} + ) { + newlyDeprecatedMolecularProfiles { + id + } + variant { + id + name + } + } +} + `;let c1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=a1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Nl=t.J1` + query MolecularProfilesForVariant($variantId: Int!) { + molecularProfiles(variantId: $variantId, first: 50) { + nodes { + id + name + link + evidenceCountsByStatus { + submittedCount + acceptedCount + } + deprecated + flagged + } + } +} + `;let Eu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Nl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const zu=t.J1` + query AssertionRevisableFields($assertionId: Int!) { + assertion(id: $assertionId) { + ...RevisableAssertionFields + } +} + ${Hn}`;let $c=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=zu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const fc=t.J1` + mutation SuggestAssertionRevision($input: SuggestAssertionRevisionInput!) { + suggestAssertionRevision(input: $input) { + clientMutationId + assertion { + id + } + results { + newlyCreated + } + } +} + `;let l1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=fc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const u1=t.J1` + mutation SubmitAssertion($input: SubmitAssertionInput!) { + submitAssertion(input: $input) { + clientMutationId + assertion { + id + } + } +} + `;let Br=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=u1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Mu=t.J1` + query EvidenceItemRevisableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...RevisableEvidenceFields + } +} + ${Fs}`;let Du=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Mu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Hc=t.J1` + mutation SuggestEvidenceItemRevision($input: SuggestEvidenceItemRevisionInput!) { + suggestEvidenceItemRevision(input: $input) { + clientMutationId + evidenceItem { + id + } + results { + newlyCreated + } + } +} + `;let d1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Hc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` + query EvidenceFieldsFromSourceSuggestion($sourceId: Int, $molecularProfileId: Int, $diseaseId: Int) { + sourceSuggestionValues( + molecularProfileId: $molecularProfileId + diseaseId: $diseaseId + sourceId: $sourceId + ) { + molecularProfile { + id + name + link + } + disease { + id + name + link + } + source { + id + sourceType + citationId + citation + link + deprecated + } + } +} + `,t.J1` + query EvidenceSubmittableFields($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...SubmittableEvidenceFields + } +} + ${st}`;const h1=t.J1` + mutation SubmitEvidenceItem($input: SubmitEvidenceItemInput!) { + submitEvidence(input: $input) { + clientMutationId + evidenceItem { + id + } + } +} + `;let kl=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=h1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const cl=t.J1` + query ExistingEvidenceCount($molecularProfileId: Int!, $sourceId: Int!) { + evidenceItems(molecularProfileId: $molecularProfileId, sourceId: $sourceId) { + totalCount + } +} + `;let Jo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=cl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const di=t.J1` + query FullyCuratedSource($sourceId: Int!) { + source(id: $sourceId) { + fullyCurated + } +} + `;let Wi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=di}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Pr=t.J1` + query FactorRevisableFields($featureId: Int!) { + feature(id: $featureId) { + ...RevisableFactorFields + } +} + ${Te}`;let Qs=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Pr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Kr=t.J1` + mutation SuggestFactorRevision($input: SuggestFactorRevisionInput!) { + suggestFactorRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `;let ps=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Kr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const mc=t.J1` + query FactorVariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + id + ... on FactorVariant { + ...RevisableFactorVariantFields + } + } +} + ${$e}`;let qo=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=mc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Fr=t.J1` + mutation SuggestFactorVariantRevision($input: SuggestFactorVariantRevisionInput!) { + suggestFactorVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} + `;let Js=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Fr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const to=t.J1` + query FusionRevisableFields($featureId: Int!) { + feature(id: $featureId) { + ...RevisableFusionFields + } +} + ${at}`;let Xa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=to}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Vl=t.J1` + mutation SuggestFusionRevision($input: SuggestFusionRevisionInput!) { + suggestFusionRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `;let gc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Vl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const hr=t.J1` + query FusionVariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + id + ... on FusionVariant { + ...RevisableFusionVariantFields + } + } +} + ${At}`;let ua=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=hr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const vc=t.J1` + mutation SuggestFusionVariantRevision($input: SuggestFusionVariantRevisionInput!) { + suggestFusionVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} + `;let da=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=vc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const _c=t.J1` + query GeneRevisableFields($featureId: Int!) { + feature(id: $featureId) { + ...RevisableGeneFields + } +} + ${nn}`;let Su=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_c}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const qs=t.J1` + mutation SuggestGeneRevision($input: SuggestGeneRevisionInput!) { + suggestGeneRevision(input: $input) { + clientMutationId + results { + newlyCreated + id + fieldName + } + } +} + `;let ll=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=qs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Bs=t.J1` + query GeneVariantRevisableFields($variantId: Int!) { + variant(id: $variantId) { + id + ... on GeneVariant { + ...RevisableGeneVariantFields + } + } +} + ${ln}`;let Bi=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Bs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ll=t.J1` + mutation SuggestGeneVariantRevision($input: SuggestGeneVariantRevisionInput!) { + suggestGeneVariantRevision(input: $input) { + clientMutationId + variant { + id + } + results { + id + fieldName + newlyCreated + } + } +} + `;let jc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Ll}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ha=t.J1` + query MolecularProfileRevisableFields($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...RevisableMolecularProfileFields + } +} + ${hn}`;let ul=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ha}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const yc=t.J1` + mutation SuggestMolecularProfileRevision($input: SuggestMolecularProfileRevisionInput!) { + suggestMolecularProfileRevision(input: $input) { + clientMutationId + molecularProfile { + id + } + results { + newlyCreated + id + fieldName + } + } +} + `;let Dr=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=yc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const dl=t.J1` + mutation SubmitSource($input: SuggestSourceInput!) { + suggestSource(input: $input) { + clientMutationId + sourceSuggestion { + id + } + } +} + `;let Gr=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=dl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const os=t.J1` + query SourceSuggestionChecks($sourceId: Int!) { + source(id: $sourceId) { + fullyCurated + } + sourceSuggestions(sourceId: $sourceId) { + filteredCount + } +} + `;let Bl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=os}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Qa=t.J1` + query VariantGroupRevisableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupRevisableFields + } +} + ${xn}`;let hl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Qa}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Cs=t.J1` + mutation SuggestVariantGroupRevision($input: SuggestVariantGroupRevisionInput!) { + suggestVariantGroupRevision(input: $input) { + clientMutationId + variantGroup { + id + } + results { + newlyCreated + id + fieldName + } + } +} + `;let Uc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Cs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` + query VariantGroupSubmittableFields($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...SubmittableVariantGroupFields + } +} + ${Rn}`;const $l=t.J1` + mutation SubmitVariantGroup($input: SubmitVariantGroupInput!) { + submitVariantGroup(input: $input) { + clientMutationId + variantGroup { + id + } + } +} + `;let Ou=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=$l}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();t.J1` + query GeneAdvancedSearch($query: GeneSearchFilter!) { + searchGenes(query: $query, createPermalink: true) { + ...AdvancedSearchPermalink + } +} + ${Zn}`;const Z1=t.J1` + query EntityTagsTest($molecularProfileId: Int!, $geneId: Int!, $variantId: Int!, $therapyId: Int!, $diseaseId: Int!, $eid: Int!) { + evidenceItem(id: $eid) { + id + name + link + } + molecularProfile(id: $molecularProfileId) { + id + name + link + } + gene(id: $geneId) { + id + name + link + } + variant(id: $variantId) { + id + name + link + } + therapy(id: $therapyId) { + id + name + link + } + disease(id: $diseaseId) { + id + name + link + } +} + `;let oh=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Z1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ed=t.J1` + query AcmgCodeSelectTypeahead($code: String!) { + acmgCodesTypeahead(queryTerm: $code) { + ...AcmgCodeSelectTypeaheadFields + } +} + ${jn}`;let td=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ed}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const nd=t.J1` + query AcmgCodeSelectTag($id: Int!) { + acmgCode(id: $id) { + ...AcmgCodeSelectTypeaheadFields + } +} + ${jn}`;let id=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=nd}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const od=t.J1` + query ClingenCodeSelectTypeahead($code: String!) { + clingenCodesTypeahead(queryTerm: $code) { + ...ClingenCodeSelectTypeaheadFields + } +} + ${oi}`;let rd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=od}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const sd=t.J1` + query ClingenCodeSelectTag($id: Int!) { + clingenCode(id: $id) { + ...ClingenCodeSelectTypeaheadFields + } +} + ${oi}`;let ad=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=sd}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const cd=t.J1` + mutation QuickAddDisease($name: String!, $doid: String) { + addDisease(input: {name: $name, doid: $doid}) { + ...QuickAddDiseaseFields + } +} + ${ai}`;let ld=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=cd}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const wu=t.J1` + query DiseaseSelectTypeahead($name: String!) { + diseaseTypeahead(queryTerm: $name) { + ...DiseaseSelectTypeaheadFields + } +} + ${Tr}`;let p1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=wu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ud=t.J1` + query DiseaseSelectTag($id: Int!) { + disease(id: $id) { + ...DiseaseSelectTypeaheadFields + } +} + ${Tr}`;let dd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ud}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const hd=t.J1` + query EvidenceManager($first: Int, $last: Int, $before: String, $after: String, $diseaseName: String, $therapyName: String, $id: Int, $description: String, $evidenceLevel: EvidenceLevel, $evidenceDirection: EvidenceDirection, $significance: EvidenceSignificance, $evidenceType: EvidenceType, $rating: Int, $variantOrigin: VariantOrigin, $variantId: Int, $molecularProfileId: Int, $assertionId: Int, $organizationId: Int, $userId: Int, $sortBy: EvidenceSort, $phenotypeId: Int, $diseaseId: Int, $therapyId: Int, $sourceId: Int, $clinicalTrialId: Int, $molecularProfileName: String, $status: EvidenceStatusFilter) { + evidenceItems( + first: $first + last: $last + before: $before + after: $after + diseaseName: $diseaseName + therapyName: $therapyName + id: $id + description: $description + evidenceLevel: $evidenceLevel + evidenceDirection: $evidenceDirection + significance: $significance + evidenceType: $evidenceType + evidenceRating: $rating + variantOrigin: $variantOrigin + variantId: $variantId + molecularProfileId: $molecularProfileId + assertionId: $assertionId + organizationId: $organizationId + userId: $userId + phenotypeId: $phenotypeId + diseaseId: $diseaseId + therapyId: $therapyId + sourceId: $sourceId + clinicalTrialId: $clinicalTrialId + molecularProfileName: $molecularProfileName + status: $status + sortBy: $sortBy + ) { + totalCount + pageCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...EvidenceManagerFields + } + } + nodes { + ...EvidenceManagerFields + } + } +} + ${Ti}`;let fs=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=hd}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const jl=t.J1` + query EvidenceSelectTypeahead($eid: Int!) { + evidenceItems(id: $eid) { + nodes { + ...EvidenceSelectTypeaheadFields + } + } +} + ${ci}`;let Iu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=jl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Ul=t.J1` + query EvidenceSelectTag($eid: Int!) { + evidenceItem(id: $eid) { + ...EvidenceSelectTypeaheadFields + } +} + ${ci}`;let Gl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Ul}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const f1=t.J1` + mutation QuickAddFeature($name: String!, $organizationId: Int, $featureType: CreateableFeatureTypes!) { + createFeature( + input: {name: $name, organizationId: $organizationId, featureType: $featureType} + ) { + ...QuickAddFeatureFields + } +} + ${go}`;let m1=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=f1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Yl=t.J1` + query FeatureSelectTypeahead($queryTerm: String!, $featureType: FeatureInstanceTypes) { + featureTypeahead(queryTerm: $queryTerm, featureType: $featureType) { + ...FeatureSelectTypeaheadFields + } +} + ${_o}`;let Wl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Yl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const xu=t.J1` + query FeatureSelectTag($featureId: Int!) { + feature(id: $featureId) { + ...FeatureSelectTypeaheadFields + } +} + ${_o}`;let Gc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=xu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const g1=t.J1` + mutation SelectOrCreateFusion($organizationId: Int, $fivePrimeGeneId: Int, $fivePrimePartnerStatus: FusionPartnerStatus!, $threePrimeGeneId: Int, $threePrimePartnerStatus: FusionPartnerStatus!) { + createFusionFeature( + input: {organizationId: $organizationId, fivePrimeGene: {geneId: $fivePrimeGeneId, partnerStatus: $fivePrimePartnerStatus}, threePrimeGene: {geneId: $threePrimeGeneId, partnerStatus: $threePrimePartnerStatus}} + ) { + new + feature { + ...FeatureSummaryFields + } + } +} + ${Ai}`;let Zs=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=g1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Kl=t.J1` + query MolecularProfileSelectTypeahead($name: String!, $geneId: Int) { + molecularProfiles(name: $name, geneId: $geneId, first: 25) { + nodes { + ...MolecularProfileSelectTypeaheadFields + } + } +} + ${Pi}`;let Xl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Kl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Fo=t.J1` + query MolecularProfileSelectTag($molecularProfileId: Int!) { + molecularProfile(id: $molecularProfileId) { + ...MolecularProfileSelectTypeaheadFields + } +} + ${Pi}`;let pl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Fo}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Cc=t.J1` + query PreviewMolecularProfileName2($mpStructure: MolecularProfileComponentInput) { + previewMolecularProfileName(structure: $mpStructure) { + existingMolecularProfile { + id + name + link + deprecated + flagged + } + segments { + ...PreviewMpName2 + } + deprecatedVariants { + id + name + link + deprecated + flagged + } + } +} + ${yo}`;let ms=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Cc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const rh=t.J1` + query MpExpressionEditorPrepopulate($mpId: Int!) { + molecularProfile(id: $mpId) { + id + parsedName { + ...MolecularProfileParsedName + } + rawName + deprecated + flagged + } +} + ${Ve}`;let Ql=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=rh}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Yc=t.J1` + mutation CreateMolecularProfile2($mpStructure: MolecularProfileComponentInput!, $organizationId: Int) { + createMolecularProfile( + input: {structure: $mpStructure, organizationId: $organizationId} + ) { + molecularProfile { + id + name + link + deprecated + flagged + } + } +} + `;let $s=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Yc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pd=t.J1` + query NccnGuidelineSelectTypeahead($name: String!) { + nccnGuidelinesTypeahead(queryTerm: $name) { + ...NccnGuidelineSelectTypeaheadFields + } +} + ${Yn}`;let Pu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pd}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const sh=t.J1` + query NccnGuidelineSelectTag($id: Int!) { + nccnGuideline(id: $id) { + ...NccnGuidelineSelectTypeaheadFields + } +} + ${Yn}`;let ea=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=sh}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const v1=t.J1` + query PhenotypeSelectTypeahead($name: String!) { + phenotypeTypeahead(queryTerm: $name) { + ...PhenotypeSelectTypeaheadFields + } +} + ${as}`;let Jl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=v1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const _1=t.J1` + query PhenotypeSelectTag($id: Int!) { + phenotype(id: $id) { + ...PhenotypeSelectTypeaheadFields + } +} + ${as}`;let ta=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const bc=t.J1` + query QuickAddSourceCheckCitation($sourceType: SourceSource!, $citationId: String!) { + remoteCitation(sourceType: $sourceType, citationId: $citationId) +} + `;let ql=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=bc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Zl=t.J1` + mutation QuickAddSourceRemoteCitation($input: AddRemoteCitationInput!) { + addRemoteCitation(input: $input) { + newSource { + id + citationId + sourceType + } + } +} + `;let Fu=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Zl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const pa=t.J1` + query SourceSelectTypeahead($partialCitationId: String!, $sourceType: SourceSource!) { + sourceTypeahead(citationId: $partialCitationId, sourceType: $sourceType) { + ...SourceSelectTypeaheadFields + } +} + ${Ko}`;let ro=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=pa}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const eu=t.J1` + query SourceSelectTag($id: Int!) { + source(id: $id) { + ...SourceSelectTypeaheadFields + } +} + ${Ko}`;let tu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=eu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const y1=t.J1` + mutation QuickAddTherapy($name: String!, $ncitId: String) { + addTherapy(input: {name: $name, ncitId: $ncitId}) { + ...QuickAddTherapyFields + } +} + ${wo}`;let fd=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=y1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const C1=t.J1` + query TherapySelectTypeahead($name: String!) { + therapyTypeahead(queryTerm: $name) { + ...TherapySelectTypeaheadFields + } +} + ${$r}`;let md=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=C1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const gd=t.J1` + query TherapySelectTag($id: Int!) { + therapy(id: $id) { + ...TherapySelectTypeaheadFields + } +} + ${$r}`;let b1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=gd}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Tc=t.J1` + mutation SelectOrCreateFusionVariant($organizationId: Int, $featureId: Int!, $coordinates: FusionVariantInput!) { + createFusionVariant( + input: {organizationId: $organizationId, featureId: $featureId, coordinates: $coordinates} + ) { + ...CreateFusionVariantFields + } +} + ${es}`;let vd=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Tc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const _d=t.J1` + query VariantManager($variantName: String, $featureName: String, $diseaseName: String, $therapyName: String, $variantAlias: String, $variantTypeId: Int, $variantGroupId: Int, $sortBy: VariantsSort, $first: Int, $last: Int, $before: String, $after: String) { + browseVariants( + variantName: $variantName + featureName: $featureName + diseaseName: $diseaseName + therapyName: $therapyName + variantAlias: $variantAlias + variantTypeId: $variantTypeId + variantGroupId: $variantGroupId + sortBy: $sortBy + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + endCursor + hasNextPage + startCursor + hasPreviousPage + } + edges { + cursor + node { + ...BrowseVariantsFields + } + } + totalCount + filteredCount + pageCount + } +} + ${uo}`;let yd=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_d}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Cd=t.J1` + mutation QuickAddVariant($name: String!, $featureId: Int!, $organizationId: Int) { + createVariant( + input: {name: $name, featureId: $featureId, organizationId: $organizationId} + ) { + ...QuickAddVariantFields + } +} + ${nr}`;let bd=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Cd}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const kn=t.J1` + query VariantSelectTypeahead($name: String!, $featureId: Int) { + variantsTypeahead(queryTerm: $name, featureId: $featureId) { + ...VariantSelectTypeaheadFields + } +} + ${Xo}`;let Co=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=kn}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const T1=t.J1` + query VariantSelectTag($variantId: Int!) { + variant(id: $variantId) { + ... on Variant { + ...VariantSelectTypeaheadFields + } + ... on GeneVariant { + ...VariantSelectTypeaheadFields + } + ... on FactorVariant { + ...VariantSelectTypeaheadFields + } + ... on FusionVariant { + ...VariantSelectTypeaheadFields + } + } +} + ${Xo}`;let E1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=T1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Uo=t.J1` + query VariantTypeSelectTypeahead($name: String!) { + variantTypeTypeahead(queryTerm: $name) { + ...VariantTypeSelectTypeaheadFields + } +} + ${wr}`;let Ec=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Uo}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const mi=t.J1` + query VariantTypeSelectTag($id: Int!) { + variantType(id: $id) { + ...VariantTypeSelectTypeaheadFields + } +} + ${wr}`;let rr=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=mi}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const zc=t.J1` + query AssertionDetail($assertionId: Int!) { + assertion(id: $assertionId) { + ...AssertionDetailFields + } +} + ${Er}`;let Wc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=zc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const fl=t.J1` + query AssertionSummary($assertionId: Int!) { + assertion(id: $assertionId) { + ...AssertionSummaryFields + } +} + ${vr}`;let Au=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=fl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ml=t.J1` + query ClinicalTrialDetail($clinicalTrialId: Int!) { + clinicalTrial(id: $clinicalTrialId) { + id + name + nctId + description + url + link + } +} + `;let Ea=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ml}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const z1=t.J1` + query ClinicalTrialSummary($clinicalTrialId: Int!) { + clinicalTrial(id: $clinicalTrialId) { + id + name + nctId + description + url + link + } +} + `;let Ru=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=z1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const bs=t.J1` + query DiseaseDetail($diseaseId: Int!) { + disease(id: $diseaseId) { + id + name + doid + diseaseUrl + displayName + diseaseAliases + link + deprecated + } +} + `;let za=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=bs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Nu=t.J1` + query DiseasesSummary($diseaseId: Int!) { + disease(id: $diseaseId) { + ...DiseasesSummaryFields + } +} + ${As}`;let fa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Nu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const ma=t.J1` + query EvidenceDetail($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...EvidenceDetailFields + } +} + ${$o}`;let gl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=ma}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const M1=t.J1` + query EvidenceSummary($evidenceId: Int!) { + evidenceItem(id: $evidenceId) { + ...EvidenceSummaryFields + } +} + ${cs}`;let no=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=M1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const D1=t.J1` + query FeatureDetail($featureId: Int!) { + feature(id: $featureId) { + ...FeatureDetailFields + } +} + ${Ro}`;let Mc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=D1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const nu=t.J1` + query FeaturesSummary($featureId: Int!) { + feature(id: $featureId) { + ...FeatureSummaryFields + } +} + ${Ai}`;let Ja=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=nu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Kc=t.J1` + query MolecularProfileDetail($mpId: Int!) { + molecularProfile(id: $mpId) { + ...MolecularProfileDetailFields + } +} + ${vs}`;let ws=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Kc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const S1=t.J1` + query MolecularProfileSummary($mpId: Int!) { + molecularProfile(id: $mpId) { + ...MolecularProfileSummaryFields + } +} + ${gt}`;let ku=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=S1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const iu=t.J1` + query OrganizationDetail($organizationId: Int!) { + organization(id: $organizationId) { + ...OrganizationDetailFields + } +} + ${pn}`;let vl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=iu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const mr=t.J1` + query OrganizationGroups($organizationId: Int!) { + organization(id: $organizationId) { + subGroups { + ...OrganizationGroupsFields + } + } +} + ${ei}`;let Ar=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=mr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Dc=t.J1` + query OrganizationMembers($organizationId: Int!, $first: Int, $last: Int, $before: String, $after: String) { + users( + organization: {id: $organizationId} + first: $first + last: $last + before: $before + after: $after + ) { + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + cursor + node { + ...OrganizationMembersFields + } + } + } +} + ${ti}`;let O1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Dc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Xr=t.J1` + query PhenotypeDetail($phenotypeId: Int!) { + phenotype(id: $phenotypeId) { + id + name + description + hpoId + url + link + } +} + `;let Sc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Xr}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Zo=t.J1` + query DataReleases { + dataReleases { + ...Release + } +} + ${wi}`;let w1=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Zo}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const I1=t.J1` + query SourceDetail($sourceId: Int!) { + source(id: $sourceId) { + ...SourceDetailFields + } +} + ${Zi}`;let qa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=I1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Vu=t.J1` + query SourceSummary($sourceId: Int!) { + source(id: $sourceId) { + ...SourceSummaryFields + } +} + ${No}`;let Oc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Vu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const x1=t.J1` + query TherapyDetail($therapyId: Int!) { + therapy(id: $therapyId) { + id + name + ncitId + therapyUrl + therapyAliases + link + deprecated + } +} + `;let Xc=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=x1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Hs=t.J1` + query TherapiesSummary($therapyId: Int!) { + therapy(id: $therapyId) { + ...TherapiesSummaryFields + } +} + ${Do}`;let Lu=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Hs}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const _l=t.J1` + query UserDetail($userId: Int!) { + user(id: $userId) { + ...UserDetailFields + } +} + ${Ho}`;let xa=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=_l}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const yl=t.J1` + query UserNotifications($first: Int, $last: Int, $before: String, $after: String, $notificationReason: NotificationReason, $subscriptionId: Int, $originatingObject: SubscribableInput, $eventType: EventAction, $originatingUserId: Int, $organizationId: Int, $includeRead: Boolean) { + notifications( + first: $first + last: $last + before: $before + after: $after + notificationReason: $notificationReason + subscriptionId: $subscriptionId + originatingObject: $originatingObject + eventType: $eventType + originatingUserId: $originatingUserId + organizationId: $organizationId + includeRead: $includeRead + ) { + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } + notificationSubjects { + ...notificationFeedSubjects + } + originatingUsers { + ...notificationOriginatingUsers + } + organizations { + ...notificationOrganization + } + eventTypes + edges { + node { + ...notificationNode + } + } + } +} + ${Ke} +${Be} +${ys} +${be}`;let Cl=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=yl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Bu=t.J1` + mutation UpdateNotificationStatus($input: UpdateNotificationStatusInput!) { + updateNotificationStatus(input: $input) { + notifications { + ...notificationNode + } + } +} + ${be}`;let Pa=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Bu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Td=t.J1` + mutation Unsubscribe($input: UnsubscribeInput!) { + unsubscribe(input: $input) { + unsubscribedEntities { + ...subscribable + } + } +} + ${Ct}`;let Qc=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Td}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Fa=t.J1` + mutation Subscribe($input: SubscribeInput!) { + subscribe(input: $input) { + subscriptions { + id + } + } +} + `;let Ed=(()=>{class g extends t.sM{constructor(Ae){super(Ae),this.document=Fa}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const bl=t.J1` + query VariantGroupDetail($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupDetailFields + } +} + ${sn}`;let $u=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=bl}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const zd=t.J1` + query VariantGroupsSummary($variantGroupId: Int!) { + variantGroup(id: $variantGroupId) { + ...VariantGroupSummaryFields + } +} + ${ji}`;let Md=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=zd}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Hh=t.J1` + query VariantTypeDetail($variantTypeId: Int!) { + variantType(id: $variantTypeId) { + id + name + soid + description + url + link + } +} + `;let ah=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Hh}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const Hu=t.J1` + query VariantDetail($variantId: Int!) { + variant(id: $variantId) { + ...VariantDetailFields + } +} + ${ho}`;let na=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=Hu}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const wc=t.J1` + query CoordinateIdsForVariant($variantId: Int!) { + variant(id: $variantId) { + ...VariantCoordinateIds + } +} + ${jo}`;let Za=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=wc}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();const P1=t.J1` + query VariantSummary($variantId: Int!) { + variant(id: $variantId) { + ...VariantSummaryFields + } +} + ${Fi}`;let ec=(()=>{class g extends t.XK{constructor(Ae){super(Ae),this.document=P1}static#e=this.\u0275fac=function(yt){return new(yt||g)(r.KVO(t.Ic))};static#t=this.\u0275prov=r.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})()},5312:($t,De,a)=>{a.d(De,{c:()=>t});const t={production:!0}},5955:($t,De,a)=>{var t=a(345),r=a(3953),m=a(1985),e=a(7707),z=a(7673),j=a(9030),R=a(7786),$=a(5343);const k=new m.c($.l);var w=a(1413),P=a(7468),Q=a(4412),N=a(8359),x=a(4668),oe=a(983),ee=a(8810),Ee=a(8071);class ce{constructor(d,p,v){this.kind=d,this.value=p,this.error=v,this.hasValue="N"===d}observe(d){return Pe(this,d)}do(d,p,v){const{kind:C,value:S,error:Z}=this;return"N"===C?d?.(S):"E"===C?p?.(Z):v?.()}accept(d,p,v){var C;return(0,Ee.T)(null===(C=d)||void 0===C?void 0:C.next)?this.observe(d):this.do(d,p,v)}toObservable(){const{kind:d,value:p,error:v}=this,C="N"===d?(0,z.of)(p):"E"===d?(0,ee.$)(()=>v):"C"===d?oe.w:0;if(!C)throw new TypeError(`Unexpected notification kind ${d}`);return C}static createNext(d){return new ce("N",d)}static createError(d){return new ce("E",void 0,d)}static createComplete(){return ce.completeNotification}}function Pe(E,d){var p,v,C;const{kind:S,value:Z,error:Me}=E;if("string"!=typeof S)throw new TypeError('Invalid notification, missing "kind"');"N"===S?null===(p=d.next)||void 0===p||p.call(d,Z):"E"===S?null===(v=d.error)||void 0===v||v.call(d,Me):null===(C=d.complete)||void 0===C||C.call(d)}ce.completeNotification=new ce("C");var ve=a(9974),pe=a(4360),te=a(3703),ge=function(){},T=ge;function A(E){T=E||ge}var X=console;function se(E){if(E.error&&E.group&&E.groupCollapsed&&E.groupEnd&&E.warn)return E;var p=0;return{error:function(S){for(var Z=arguments.length,Me=new Array(Z>1?Z-1:0),Re=1;Re1?Z-1:0),Re=1;Re1?Z-1:0),Re=1;Re2?Re-2:0),Dt=2;Dt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var C,v=Qt(E);if(d){var S=Qt(this).constructor;C=Reflect.construct(v,arguments,S)}else C=v.apply(this,arguments);return function G(E,d){return!d||"object"!=typeof d&&"function"!=typeof d?q(E):d}(this,C)}}function Qe(E){return function ht(E){if(Array.isArray(E))return Gn(E)}(E)||function fn(E){if(typeof Symbol<"u"&&null!=E[Symbol.iterator]||null!=E["@@iterator"])return Array.from(E)}(E)||Kn(E)||function $n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kn(E,d){if(E){if("string"==typeof E)return Gn(E,d);var p=Object.prototype.toString.call(E).slice(8,-1);if("Object"===p&&E.constructor&&(p=E.constructor.name),"Map"===p||"Set"===p)return Array.from(E);if("Arguments"===p||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return Gn(E,d)}}function Gn(E,d){(null==d||d>E.length)&&(d=E.length);for(var p=0,v=new Array(d);p-1&&(Dt=Dt.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var Nt=Dt.replace(/^\s+/,"").replace(/\(eval code/g,"("),Zt=Nt.match(/ (\((.+):(\d+):(\d+)\)$)/),qt=(Nt=Zt?Nt.replace(Zt[0],""):Nt).split(/\s+/).slice(1),cn=this.extractLocation(Zt?Zt[1]:qt.pop()),an=qt.join(" ")||void 0,zn=["eval",""].indexOf(cn[0])>-1?void 0:cn[0];return new v({functionName:an,fileName:zn,lineNumber:cn[1],columnNumber:cn[2],source:Dt})},this)},parseFFOrSafari:function(Re){return Re.stack.split("\n").filter(function(Dt){return!Dt.match(Z)},this).map(function(Dt){if(Dt.indexOf(" > eval")>-1&&(Dt=Dt.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===Dt.indexOf("@")&&-1===Dt.indexOf(":"))return new v({functionName:Dt});var Nt=/((.*".+"[^@]*)?[^@]*)(?:@)/,Zt=Dt.match(Nt),qt=Zt&&Zt[1]?Zt[1]:void 0,cn=this.extractLocation(Dt.replace(Nt,""));return new v({functionName:qt,fileName:cn[0],lineNumber:cn[1],columnNumber:cn[2],source:Dt})},this)},parseOpera:function(Re){return!Re.stacktrace||Re.message.indexOf("\n")>-1&&Re.message.split("\n").length>Re.stacktrace.split("\n").length?this.parseOpera9(Re):Re.stack?this.parseOpera11(Re):this.parseOpera10(Re)},parseOpera9:function(Re){for(var ut=/Line (\d+).*script (?:in )?(\S+)/i,Dt=Re.message.split("\n"),Nt=[],Zt=2,qt=Dt.length;Zt/,"$2").replace(/\([^)]*\)/g,"")||void 0;qt.match(/\(([^)]*)\)/)&&(an=qt.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var zn=void 0===an||"[arguments not available]"===an?void 0:an.split(",");return new v({functionName:cn,args:zn,fileName:Zt[0],lineNumber:Zt[1],columnNumber:Zt[2],source:Dt})},this)}})}),ie=An(function(E,d){d.getArg=function p(mn,Sn,li){if(Sn in mn)return mn[Sn];if(3===arguments.length)return li;throw new Error('"'+Sn+'" is a required argument.')};var v=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,C=/^data:.+\,.+$/;function S(mn){var Sn=mn.match(v);return Sn?{scheme:Sn[1],auth:Sn[2],host:Sn[3],port:Sn[4],path:Sn[5]}:null}function Z(mn){var Sn="";return mn.scheme&&(Sn+=mn.scheme+":"),Sn+="//",mn.auth&&(Sn+=mn.auth+"@"),mn.host&&(Sn+=mn.host),mn.port&&(Sn+=":"+mn.port),mn.path&&(Sn+=mn.path),Sn}function Me(mn){var Sn=mn,li=S(mn);if(li){if(!li.path)return mn;Sn=li.path}for(var io,ri=d.isAbsolute(Sn),Ri=Sn.split(/\/+/),Sr=0,Jr=Ri.length-1;Jr>=0;Jr--)"."===(io=Ri[Jr])?Ri.splice(Jr,1):".."===io?Sr++:Sr>0&&(""===io?(Ri.splice(Jr+1,Sr),Sr=0):(Ri.splice(Jr,2),Sr--));return""===(Sn=Ri.join("/"))&&(Sn=ri?"/":"."),li?(li.path=Sn,Z(li)):Sn}d.urlParse=S,d.urlGenerate=Z,d.normalize=Me,d.join=function Re(mn,Sn){""===mn&&(mn="."),""===Sn&&(Sn=".");var li=S(Sn),ri=S(mn);if(ri&&(mn=ri.path||"/"),li&&!li.scheme)return ri&&(li.scheme=ri.scheme),Z(li);if(li||Sn.match(C))return Sn;if(ri&&!ri.host&&!ri.path)return ri.host=Sn,Z(ri);var Ri="/"===Sn.charAt(0)?Sn:Me(mn.replace(/\/+$/,"")+"/"+Sn);return ri?(ri.path=Ri,Z(ri)):Ri},d.isAbsolute=function(mn){return"/"===mn.charAt(0)||!!mn.match(v)},d.relative=function ut(mn,Sn){""===mn&&(mn="."),mn=mn.replace(/\/$/,"");for(var li=0;0!==Sn.indexOf(mn+"/");){var ri=mn.lastIndexOf("/");if(ri<0||(mn=mn.slice(0,ri)).match(/^([^\/]+:\/)?\/*$/))return Sn;++li}return Array(li+1).join("../")+Sn.substr(mn.length+1)};var Dt=!("__proto__"in Object.create(null));function Nt(mn){return mn}function cn(mn){if(!mn)return!1;var Sn=mn.length;if(Sn<9||95!==mn.charCodeAt(Sn-1)||95!==mn.charCodeAt(Sn-2)||111!==mn.charCodeAt(Sn-3)||116!==mn.charCodeAt(Sn-4)||111!==mn.charCodeAt(Sn-5)||114!==mn.charCodeAt(Sn-6)||112!==mn.charCodeAt(Sn-7)||95!==mn.charCodeAt(Sn-8)||95!==mn.charCodeAt(Sn-9))return!1;for(var li=Sn-10;li>=0;li--)if(36!==mn.charCodeAt(li))return!1;return!0}function Bn(mn,Sn){return mn===Sn?0:mn>Sn?1:-1}d.toSetString=Dt?Nt:function Zt(mn){return cn(mn)?"$"+mn:mn},d.fromSetString=Dt?Nt:function qt(mn){return cn(mn)?mn.slice(1):mn},d.compareByOriginalPositions=function an(mn,Sn,li){var ri=mn.source-Sn.source;return 0!==ri||0!=(ri=mn.originalLine-Sn.originalLine)||0!=(ri=mn.originalColumn-Sn.originalColumn)||li||0!=(ri=mn.generatedColumn-Sn.generatedColumn)||0!=(ri=mn.generatedLine-Sn.generatedLine)?ri:mn.name-Sn.name},d.compareByGeneratedPositionsDeflated=function zn(mn,Sn,li){var ri=mn.generatedLine-Sn.generatedLine;return 0!==ri||0!=(ri=mn.generatedColumn-Sn.generatedColumn)||li||0!=(ri=mn.source-Sn.source)||0!=(ri=mn.originalLine-Sn.originalLine)||0!=(ri=mn.originalColumn-Sn.originalColumn)?ri:mn.name-Sn.name},d.compareByGeneratedPositionsInflated=function vi(mn,Sn){var li=mn.generatedLine-Sn.generatedLine;return 0!==li||0!=(li=mn.generatedColumn-Sn.generatedColumn)||0!==(li=Bn(mn.source,Sn.source))||0!=(li=mn.originalLine-Sn.originalLine)||0!=(li=mn.originalColumn-Sn.originalColumn)?li:Bn(mn.name,Sn.name)}}),re=An(function(E,d){function p(v,C,S,Z,Me,Re){var ut=Math.floor((C-v)/2)+v,Dt=Me(S,Z[ut],!0);return 0===Dt?ut:Dt>0?C-ut>1?p(ut,C,S,Z,Me,Re):Re==d.LEAST_UPPER_BOUND?C1?p(v,ut,S,Z,Me,Re):Re==d.LEAST_UPPER_BOUND?ut:v<0?-1:v}d.GREATEST_LOWER_BOUND=1,d.LEAST_UPPER_BOUND=2,d.search=function(C,S,Z,Me){if(0===S.length)return-1;var Re=p(-1,S.length,C,S,Z,Me||d.GREATEST_LOWER_BOUND);if(Re<0)return-1;for(;Re-1>=0&&0===Z(S[Re],S[Re-1],!0);)--Re;return Re}}),et=Object.prototype.hasOwnProperty;function _t(){this._array=[],this._set=Object.create(null)}_t.fromArray=function(d,p){for(var v=new _t,C=0,S=d.length;C=0&&d=C)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(Re=de_decode(d.charCodeAt(p++))))throw new Error("Invalid base64 digit: "+d.charAt(p-1));Me=!!(32&Re),S+=(Re&=31)<>1;return 1&~E?p:-p}(S),v.rest=p};function Ce(E,d,p){var v=E[d];E[d]=E[p],E[p]=v}function W(E,d,p,v){if(p=0){var Z=this._originalMappings[S];if(void 0===d.column)for(var Me=Z.originalLine;Z&&Z.originalLine===Me;)C.push({line:ie.getArg(Z,"generatedLine",null),column:ie.getArg(Z,"generatedColumn",null),lastColumn:ie.getArg(Z,"lastGeneratedColumn",null)}),Z=this._originalMappings[++S];else for(var Re=Z.originalColumn;Z&&Z.originalLine===p&&Z.originalColumn==Re;)C.push({line:ie.getArg(Z,"generatedLine",null),column:ie.getArg(Z,"generatedColumn",null),lastColumn:ie.getArg(Z,"lastGeneratedColumn",null)}),Z=this._originalMappings[++S]}return C};var wn=dn;function si(E){var d=E;"string"==typeof E&&(d=JSON.parse(E.replace(/^\)\]\}'/,"")));var p=ie.getArg(d,"version"),v=ie.getArg(d,"sources"),C=ie.getArg(d,"names",[]),S=ie.getArg(d,"sourceRoot",null),Z=ie.getArg(d,"sourcesContent",null),Me=ie.getArg(d,"mappings"),Re=ie.getArg(d,"file",null);if(p!=this._version)throw new Error("Unsupported version: "+p);v=v.map(String).map(ie.normalize).map(function(ut){return S&&ie.isAbsolute(S)&&ie.isAbsolute(ut)?ie.relative(S,ut):ut}),this._names=dt.fromArray(C.map(String),!0),this._sources=dt.fromArray(v,!0),this.sourceRoot=S,this.sourcesContent=Z,this._mappings=Me,this.file=Re}function Cn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}(si.prototype=Object.create(dn.prototype)).consumer=dn,si.fromSourceMap=function(d){var p=Object.create(si.prototype),v=p._names=dt.fromArray(d._names.toArray(),!0),C=p._sources=dt.fromArray(d._sources.toArray(),!0);p.sourceRoot=d._sourceRoot,p.sourcesContent=d._generateSourcesContent(p._sources.toArray(),p.sourceRoot),p.file=d._file;for(var S=d._mappings.toArray().slice(),Z=p.__generatedMappings=[],Me=p.__originalMappings=[],Re=0,ut=S.length;Re1&&(an.source=Me+Bn[1],Me+=Bn[1],an.originalLine=S+Bn[2],S=an.originalLine,an.originalLine+=1,an.originalColumn=Z+Bn[3],Z=an.originalColumn,Bn.length>4&&(an.name=Re+Bn[4],Re+=Bn[4])),cn.push(an),"number"==typeof an.originalLine&&qt.push(an)}Ht(cn,ie.compareByGeneratedPositionsDeflated),this.__generatedMappings=cn,Ht(qt,ie.compareByOriginalPositions),this.__originalMappings=qt},si.prototype._findMapping=function(d,p,v,C,S,Z){if(d[v]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+d[v]);if(d[C]<0)throw new TypeError("Column must be greater than or equal to 0, got "+d[C]);return re.search(d,p,S,Z)},si.prototype.computeColumnSpans=function(){for(var d=0;d=0){var C=this._generatedMappings[v];if(C.generatedLine===p.generatedLine){var S=ie.getArg(C,"source",null);null!==S&&(S=this._sources.at(S),null!=this.sourceRoot&&(S=ie.join(this.sourceRoot,S)));var Z=ie.getArg(C,"name",null);return null!==Z&&(Z=this._names.at(Z)),{source:S,line:ie.getArg(C,"originalLine",null),column:ie.getArg(C,"originalColumn",null),name:Z}}}return{source:null,line:null,column:null,name:null}},si.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(d){return null==d})},si.prototype.sourceContentFor=function(d,p){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(d=ie.relative(this.sourceRoot,d)),this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];var v;if(null!=this.sourceRoot&&(v=ie.urlParse(this.sourceRoot))){var C=d.replace(/^file:\/\//,"");if("file"==v.scheme&&this._sources.has(C))return this.sourcesContent[this._sources.indexOf(C)];if((!v.path||"/"==v.path)&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(p)return null;throw new Error('"'+d+'" is not in the SourceMap.')},si.prototype.generatedPositionFor=function(d){var p=ie.getArg(d,"source");if(null!=this.sourceRoot&&(p=ie.relative(this.sourceRoot,p)),!this._sources.has(p))return{line:null,column:null,lastColumn:null};var v={source:p=this._sources.indexOf(p),originalLine:ie.getArg(d,"line"),originalColumn:ie.getArg(d,"column")},C=this._findMapping(v,this._originalMappings,"originalLine","originalColumn",ie.compareByOriginalPositions,ie.getArg(d,"bias",dn.GREATEST_LOWER_BOUND));if(C>=0){var S=this._originalMappings[C];if(S.source===v.source)return{line:ie.getArg(S,"generatedLine",null),column:ie.getArg(S,"generatedColumn",null),lastColumn:ie.getArg(S,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var ni=si;function ui(E){var d=E;"string"==typeof E&&(d=JSON.parse(E.replace(/^\)\]\}'/,"")));var p=ie.getArg(d,"version"),v=ie.getArg(d,"sections");if(p!=this._version)throw new Error("Unsupported version: "+p);this._sources=new dt,this._names=new dt;var C={line:-1,column:0};this._sections=v.map(function(S){if(S.url)throw new Error("Support for url field in sections not implemented.");var Z=ie.getArg(S,"offset"),Me=ie.getArg(Z,"line"),Re=ie.getArg(Z,"column");if(Me=200&&an.status<300||"file://"===Zt.substr(0,7)&&an.responseText?qt(an.responseText):cn(new Error("HTTP status: "+an.status+" retrieving "+Zt)))},an.send()})}function S(Zt){if(typeof window<"u"&&window.atob)return window.atob(Zt);throw new Error("You must supply a polyfill for window.atob in this environment")}function ut(Zt){if("object"!==Jn(Zt))throw new TypeError("Given StackFrame is not an object");if("string"!=typeof Zt.fileName)throw new TypeError("Given file name is not a String");if("number"!=typeof Zt.lineNumber||Zt.lineNumber%1!=0||Zt.lineNumber<1)throw new TypeError("Given line number must be a positive integer");if("number"!=typeof Zt.columnNumber||Zt.columnNumber%1!=0||Zt.columnNumber<0)throw new TypeError("Given column number must be a non-negative integer");return!0}return function Zt(qt){if(!(this instanceof Zt))return new Zt(qt);this.sourceCache=(qt=qt||{}).sourceCache||{},this.sourceMapConsumerCache=qt.sourceMapConsumerCache||{},this.ajax=qt.ajax||C,this._atob=qt.atob||S,this._get=function(an){return new Promise(function(zn,Bn){var vi="data:"===an.substr(0,5);if(this.sourceCache[an])zn(this.sourceCache[an]);else if(qt.offline&&!vi)Bn(new Error("Cannot make network requests in offline mode"));else if(vi){var Sn=an.match(/^data:application\/json;([\w=:"-]+;)*base64,/);if(Sn){var ri=an.substr(Sn[0].length),Ri=this._atob(ri);this.sourceCache[an]=Ri,zn(Ri)}else Bn(new Error("The encoding of the inline sourcemap is not supported"))}else{var io=this.ajax(an,{method:"get"});this.sourceCache[an]=io,io.then(zn,Bn)}}.bind(this))},this._getSourceMapConsumer=function(an,zn){return new Promise(function(Bn){if(this.sourceMapConsumerCache[an])Bn(this.sourceMapConsumerCache[an]);else{var vi=new Promise(function(mn,Sn){return this._get(an).then(function(li){"string"==typeof li&&(li=function Z(Zt){if(typeof JSON<"u"&&JSON.parse)return JSON.parse(Zt);throw new Error("You must supply a polyfill for JSON.parse in this environment")}(li.replace(/^\)\]\}'/,""))),typeof li.sourceRoot>"u"&&(li.sourceRoot=zn),mn(new p.SourceMapConsumer(li))},Sn)}.bind(this));this.sourceMapConsumerCache[an]=vi,Bn(vi)}}.bind(this))},this.pinpoint=function(an){return new Promise(function(zn,Bn){this.getMappedLocation(an).then(function(vi){function mn(){zn(vi)}this.findFunctionName(vi).then(zn,mn).catch(mn)}.bind(this),Bn)}.bind(this))},this.findFunctionName=function(an){return new Promise(function(zn,Bn){ut(an),this._get(an.fileName).then(function(mn){var Sn=an.lineNumber,li=an.columnNumber,ri=function Me(Zt,qt){for(var cn=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],an=Zt.split("\n"),zn="",Bn=Math.min(qt,20),vi=0;vi=0&&(mn=mn.substr(0,Sn)),mn){zn=mn+zn;for(var li=cn.length,ri=0;ri0&&void 0!==arguments[0]?arguments[0]:{}).sourceMaps,Z=void 0!==S&&S;return Dn(this,p),wt(q(v=d.call(this,"stackTrace")),"sourceCache_",void 0),wt(q(v),"sourceMaps_",void 0),v.sourceCache_={},v.sourceMaps_=Z,v}return Ut(p,[{key:"beforeSubscribe",value:function(C){var S=this,Z=this.getStackFrames_();this.sourceMaps_&&typeof window<"u"&&"file:"!==window.location.protocol?ii(C,{mappedStackTrace:(0,j.v)(function(){var Me=new $i({sourceCache:S.sourceCache_});return Promise.all(Z.map(function(Re){return Me.pinpoint(Re).catch(function(){return Re})}))}).pipe((0,x.t)(1),Ii()),stackTrace:Z}):ii(C,{mappedStackTrace:(0,z.of)(Z).pipe(Ii()),stackTrace:Z})}},{key:"teardown",value:function(){this.sourceCache_={}}},{key:"getStackFrames_",value:function(){try{throw new Error}catch(S){var C=!0;return ae.parse(S).filter(function(Z){var Me=!C;return/coreSubscribe_/.test(Z.functionName||"")&&(C=!1),Me})}}}]),p}(vn),Fn=Symbol("cycleDetected"),hi=Symbol("cycleWarned"),xi=function(E){Ft(p,E);var d=H(p);function p(v,C){var S;return Dn(this,p),wt(q(S=d.call(this,"cycle")),"logger_",void 0),wt(q(S),"nexts_",[]),wt(q(S),"spy_",void 0),S.logger_=se(C),S.spy_=v,S}return Ut(p,[{key:"afterNext",value:function(C,S){this.nexts_.pop()}},{key:"beforeNext",value:function(C,S){var Z=this.logger_,Me=this.nexts_,Re=this.spy_,ut=C.observable,Dt=C.subscription;if(-1!==Me.indexOf(C)&&!Dt[Fn]&&(Dt[Fn]=!0,-1===Me.findIndex(function(cn){return cn.subscription[hi]}))){Dt[hi]=!0;var Nt=Mn(C);0===Nt.length&&Re.warnOnce(console,"Stack tracing is not enabled; add the StackTracePlugin before the CyclePlugin.");var Zt=Nt.length?"; subscribed at\n".concat(Nt.join("\n")):"",qt=xt(ut);Z.warn("Cyclic next detected; type = ".concat(qt,"; value = ").concat(S).concat(Zt))}Me.push(C)}}]),p}(vn),Hi=function(E){Ft(p,E);var d=H(p);function p(v,C){var S;return Dn(this,p),wt(q(S=d.call(this,"debug(".concat(en(v),")"))),"notifications_",void 0),wt(q(S),"matcher_",void 0),S.notifications_=C,S.matcher_=function(Z,Me){return It(Z,v)&&-1!==S.notifications_.indexOf(Me)},S}return Ut(p,[{key:"beforeComplete",value:function(C){(0,this.matcher_)(C,"complete")}},{key:"beforeError",value:function(C,S){(0,this.matcher_)(C,"error")}},{key:"beforeNext",value:function(C,S){(0,this.matcher_)(C,"next")}},{key:"beforeSubscribe",value:function(C){(0,this.matcher_)(C,"subscribe")}},{key:"beforeUnsubscribe",value:function(C){(0,this.matcher_)(C,"unsubscribe")}}]),p}(vn),Mi=Symbol("graphRef");function gn(E){return E[Mi]}var Ei=function(E){Ft(p,E);var d=H(p);function p(){var v,S=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).keptDuration,Z=void 0===S?3e4:S;return Dn(this,p),wt(q(v=d.call(this,"graph")),"flushIntervalId_",void 0),wt(q(v),"flushQueue_",void 0),wt(q(v),"keptDuration_",void 0),wt(q(v),"notifications_",void 0),wt(q(v),"sentinel_",void 0),v.flushIntervalId_=void 0,v.flushQueue_=[],v.keptDuration_=Z,v.notifications_=[],v.sentinel_={depth:0,flattened:!1,flattenings:[],flatteningsFlushed:0,link:void 0,rootSink:void 0,sentinel:void 0,sink:void 0,sources:[],sourcesFlushed:0},v.sentinel_.link=v.sentinel_,v.sentinel_.sentinel=v.sentinel_,v}return Ut(p,[{key:"afterNext",value:function(C,S){this.notifications_.pop()}},{key:"afterSubscribe",value:function(C){this.notifications_.pop()}},{key:"afterUnsubscribe",value:function(C){this.notifications_.pop(),this.flush_(C)}},{key:"beforeNext",value:function(C,S){this.notifications_.push({notification:"next",ref:C})}},{key:"beforeSubscribe",value:function(C){var S=this.notifications_,Z=this.sentinel_,Me=function Si(E,d){return E[Mi]=d,d}(C,{depth:1,flattened:!1,flattenings:[],flatteningsFlushed:0,link:Z,rootSink:void 0,sentinel:Z,sink:void 0,sources:[],sourcesFlushed:0}),Re=S.length;if(Re>0&&"next"===S[Re-1].notification){var ut=S[Re-1].ref,Dt=gn(ut);Dt.flattenings.push(C),Me.link=Dt,Me.flattened=!0,Me.rootSink=Dt.rootSink||ut,Me.sink=ut}else for(var Nt=Re-1;Nt>-1;--Nt)if("subscribe"===S[Nt].notification){var Zt=S[Re-1].ref,qt=gn(Zt);qt.sources.push(C),Me.depth=qt.depth+1,Me.link=qt,Me.rootSink=qt.rootSink||Zt,Me.sink=Zt;break}Me.link===Me.sentinel&&Me.sentinel.sources.push(C),S.push({notification:"subscribe",ref:C})}},{key:"beforeUnsubscribe",value:function(C){this.notifications_.push({notification:"unsubscribe",ref:C})}},{key:"teardown",value:function(){void 0!==this.flushIntervalId_&&(clearInterval(this.flushIntervalId_),this.flushIntervalId_=void 0)}},{key:"flush_",value:function(C){var S=this,Z=gn(C),Re=Z.sources;if(C.unsubscribed&&Z.flattenings.every(function(Zt){return Zt.unsubscribed})&&Re.every(function(Zt){return Zt.unsubscribed})){var ut=this.keptDuration_,Dt=Z.link,Nt=function(){var qt=Dt.flattenings,cn=Dt.sources,an=qt.indexOf(C);-1!==an&&(qt.splice(an,1),++Dt.flatteningsFlushed);var zn=cn.indexOf(C);-1!==zn&&(cn.splice(zn,1),++Dt.sourcesFlushed)};0===ut?Nt():ut>0&&ut<1/0&&(this.flushQueue_.push({due:Date.now()+ut,flush:Nt}),void 0===this.flushIntervalId_&&(this.flushIntervalId_=setInterval(function(){var Zt=Date.now();S.flushQueue_=S.flushQueue_.filter(function(qt){return qt.due>Zt||(qt.flush(),!1)}),0===S.flushQueue_.length&&(clearInterval(S.flushIntervalId_),S.flushIntervalId_=void 0)},ut)))}}}]),p}(vn),Ki=function(E){Ft(p,E);var d=H(p);function p(v,C){var S,Me=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).complete,Re=void 0===Me||Me;return Dn(this,p),wt(q(S=d.call(this,"let(".concat(en(v),")"))),"match_",void 0),wt(q(S),"select_",void 0),S.match_=v,S.select_=Re?C:function(ut){return(0,R.h)(k,C(ut))},S}return Ut(p,[{key:"select",value:function(C){var Z=this.select_;if(It(C,this.match_))return Z}}]),p}(vn),Vi=function(E){Ft(p,E);var d=H(p);function p(v,C){var S;Dn(this,p),wt(q(S=d.call(this,"log(".concat(en(C),")"))),"auditor_",void 0),wt(q(S),"logger_",void 0),wt(q(S),"notificationMatch_",void 0),wt(q(S),"tagMatch_",void 0),S.auditor_=v.auditor,S.tagMatch_=C;var Z=/.+/;switch(arguments.length<=2?0:arguments.length-2){case 0:S.notificationMatch_=Z,S.logger_=se(X);break;case 1:"function"==typeof(arguments.length<=2?void 0:arguments[2])?(S.notificationMatch_=arguments.length<=2?void 0:arguments[2],S.logger_=se(X)):(S.notificationMatch_=Z,S.logger_=se(arguments.length<=2?void 0:arguments[2]));break;default:S.notificationMatch_=arguments.length<=2?void 0:arguments[2],S.logger_=se(arguments.length<=3?void 0:arguments[3])}return S}return Ut(p,[{key:"beforeComplete",value:function(C){this.log_(C,"complete")}},{key:"beforeError",value:function(C,S){this.log_(C,"error",S)}},{key:"beforeNext",value:function(C,S){this.log_(C,"next",S)}},{key:"beforeSubscribe",value:function(C){this.log_(C,"subscribe")}},{key:"beforeUnsubscribe",value:function(C){this.log_(C,"unsubscribe")}},{key:"log_",value:function(C,S,Z){var Me=this,Re=this.auditor_,ut=this.notificationMatch_,Dt=this.tagMatch_;It(C,Dt)&&It(C,ut,S)&&Re.audit(this,function(Nt){var Zt=Me.logger_,qt=C.observable,cn=rn(qt),an=xt(qt),zn="string"==typeof Dt?"":"; matching ".concat(en(Dt)),Bn=0===Nt?"":"; ignored ".concat(Nt),vi=cn?"Tag = ".concat(cn,"; notification = ").concat(S).concat(zn).concat(Bn):"Type = ".concat(an,"; notification = ").concat(S).concat(zn).concat(Bn);switch(S){case"error":Zt.error("".concat(vi,"; error ="),Z);break;case"next":Zt.log("".concat(vi,"; value ="),Z);break;default:Zt.log(vi)}})}}]),p}(vn),qi=function(){function E(d){Dn(this,E),wt(this,"teardown",void 0),wt(this,"match_",void 0),wt(this,"paused_",!0),wt(this,"states_",new Map),wt(this,"stats_",void 0),this.match_=d,this.stats_=new w.B}return Ut(E,[{key:"stats",get:function(){return this.stats_.asObservable()}},{key:"paused",get:function(){return this.paused_}},{key:"clear",value:function(){var p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};this.states_.forEach(function(v){v.notifications_=v.notifications_.filter(function(C){return!p(C)})}),this.broadcast_()}},{key:"log",value:function(){var v=se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:X);v.group("Deck matching ".concat(en(this.match_))),v.log("Paused =",this.paused_),this.states_.forEach(function(C){v.group("Observable; tag = ".concat(C.tag_)),v.log("Notifications =",C.notifications_),v.groupEnd()}),v.groupEnd()}},{key:"pause",value:function(){this.paused_=!0,this.broadcast_()}},{key:"resume",value:function(){this.states_.forEach(function(p){for(;p.notifications_.length>0;)p.subject_.next(p.notifications_.shift())}),this.paused_=!1,this.broadcast_()}},{key:"select",value:function(p){var v=this,C=p.observable;return function(S){var Z=v.states_.get(C);return Z?Z.subscription_.unsubscribe():(Z={notifications_:[],subject_:new w.B,subscription_:void 0,tag_:rn(C)},v.states_.set(C,Z)),Z.subscription_=S.pipe(function U(){return(0,ve.N)((E,d)=>{E.subscribe((0,pe._)(d,p=>{d.next(ce.createNext(p))},()=>{d.next(ce.createComplete()),d.complete()},p=>{d.next(ce.createError(p)),d.complete()}))})}(),Ii()).subscribe({next:function(Re){v.paused_?Z.notifications_.push(Re):Z.subject_.next(Re),v.broadcast_()}}),v.broadcast_(),Z.subject_.asObservable().pipe(function M(){return(0,ve.N)((E,d)=>{E.subscribe((0,pe._)(d,p=>Pe(p,d)))})}())}}},{key:"skip",value:function(){this.states_.forEach(function(p){p.notifications_.length>0&&p.notifications_.shift()}),this.broadcast_()}},{key:"step",value:function(){this.states_.forEach(function(p){p.notifications_.length>0&&p.subject_.next(p.notifications_.shift())}),this.broadcast_()}},{key:"unsubscribe",value:function(){this.states_.forEach(function(p){p.subscription_&&(p.subscription_.unsubscribe(),p.subscription_=void 0)}),this.broadcast_()}},{key:"broadcast_",value:function(){var p=this.paused_,C=this.stats_,S=0;this.states_.forEach(function(Z){return S+=Z.notifications_.length}),C.next({notifications:S,paused:p})}}]),E}(),Go=function(E){Ft(p,E);var d=H(p);function p(v){var C;return Dn(this,p),wt(q(C=d.call(this,"pause(".concat(en(v),")"))),"match_",void 0),wt(q(C),"deck_",void 0),C.deck_=new qi(v),C.match_=v,C}return Ut(p,[{key:"deck",get:function(){return this.deck_}},{key:"match",get:function(){return this.match_}},{key:"select",value:function(C){var S=this.deck_;if(It(C,this.match_))return S.select(C)}},{key:"teardown",value:function(){var C=this.deck_;C&&(C.resume(),C.unsubscribe())}}]),p}(vn),so=Symbol("snapshotRef");function tr(E){return E[so]}function lr(E){var d=[(0,z.of)(null)];return E.forEach(function(v){v.subscriptions?v.subscriptions.forEach(p):p(v)}),(0,P.p)(d).pipe((0,te.u)(void 0),Ii());function p(v){d.push(v.mappedStackTrace),v.rootSink&&d.push(v.rootSink.mappedStackTrace)}}var Mo=function(E){Ft(p,E);var d=H(p);function p(v){var C,Z=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).keptValues,Me=void 0===Z?4:Z;return Dn(this,p),wt(q(C=d.call(this,"snapshot")),"keptValues_",void 0),wt(q(C),"sentinel_",void 0),wt(q(C),"spy_",void 0),C.keptValues_=Me,C.sentinel_=void 0,C.spy_=v,C}return Ut(p,[{key:"afterUnsubscribe",value:function(C){var S=tr(C);S.tick=this.spy_.tick,S.unsubscribed=!0}},{key:"beforeComplete",value:function(C){var S=tr(C);S.tick=this.spy_.tick,S.complete=!0}},{key:"beforeError",value:function(C,S){var Z=tr(C);Z.tick=this.spy_.tick,Z.error=S}},{key:"beforeNext",value:function(C,S){var Z=this.spy_.tick,Me=tr(C);Me.tick=Z,Me.values.push({tick:Z,timestamp:Date.now(),value:S});var ut=Me.values.length-this.keptValues_;ut>0&&(Me.values.splice(0,ut),Me.valuesFlushed+=ut)}},{key:"beforeSubscribe",value:function(C){!function zo(E,d){E[so]=d}(C,{complete:!1,error:void 0,tick:this.spy_.tick,timestamp:Date.now(),unsubscribed:!1,values:[],valuesFlushed:0});var S=gn(C);S?this.sentinel_=S.sentinel:this.spy_.warnOnce(console,"Graphing is not enabled; add the GraphPlugin before the SnapshotPlugin.")}},{key:"snapshotAll",value:function(){var S=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).since,Z=new Map,Me=new Map,Re=new Map,ut=this.getSubscriptionRefs_();return ut.forEach(function(Dt,Nt){var Zt,qt=Nt.observable,cn=Nt.subscriber,an=Nt.subscription,zn=gn(Nt),Bn=zn.flatteningsFlushed,vi=zn.sourcesFlushed,mn=tr(Nt),ri=mn.tick,Ri=mn.timestamp,io=mn.unsubscribed,Sr=mn.values,Jr=mn.valuesFlushed,xc={complete:mn.complete,error:mn.error,flattenings:new Map,flatteningsFlushed:Bn,id:Tt(Nt),mappedStackTrace:Pt(Nt),observable:qt,rootSink:void 0,sink:void 0,sources:new Map,sourcesFlushed:vi,stackTrace:Mn(Nt),subscriber:cn,subscription:an,tick:ri,timestamp:Ri,unsubscribed:io};Re.set(an,xc);var ss=Me.get(cn);ss||(ss={id:Tt(cn),subscriber:cn,subscriptions:new Map,tick:ri,values:[],valuesFlushed:0},Me.set(cn,ss)),ss.subscriptions.set(an,xc),ss.tick=Math.max(ss.tick,ri),(Zt=ss.values).push.apply(Zt,Qe(Sr)),ss.valuesFlushed+=Jr;var Na=Z.get(qt);Na||(Na={id:Tt(qt),observable:qt,path:He(qt),subscriptions:new Map,tag:rn(qt),tick:ri,type:xt(qt)},Z.set(qt,Na)),Na.subscriptions.set(an,xc),Na.tick=Math.max(Na.tick,ri)}),ut.forEach(function(Dt,Nt){var Zt=gn(Nt),qt=Re.get(Nt.subscription);Zt.sink&&(qt.sink=Re.get(Zt.sink.subscription)),Zt.rootSink&&(qt.rootSink=Re.get(Zt.rootSink.subscription)),Zt.flattenings.forEach(function(cn){return qt.flattenings.set(cn.subscription,Re.get(cn.subscription))}),Zt.sources.forEach(function(cn){return qt.sources.set(cn.subscription,Re.get(cn.subscription))})}),Me.forEach(function(Dt){Dt.values.sort(function(Nt,Zt){return Nt.tick-Zt.tick})}),void 0!==S&&(Z.forEach(function(Dt,Nt){Dt.tick<=S.tick&&Z.delete(Nt)}),Me.forEach(function(Dt,Nt){Dt.tick<=S.tick&&Me.delete(Nt)}),Re.forEach(function(Dt,Nt){Dt.tick<=S.tick&&Re.delete(Nt)})),{mapStackTraces:lr,observables:Z,subscribers:Me,subscriptions:Re,tick:this.spy_.tick}}},{key:"snapshotObservable",value:function(C){return this.snapshotAll().observables.get(C.observable)}},{key:"snapshotSubscriber",value:function(C){return this.snapshotAll().subscribers.get(C.subscriber)}},{key:"addSubscriptionRefs_",value:function(C,S){var Z=this;S.set(C,!0);var Me=gn(C);Me.flattenings.forEach(function(Re){return Z.addSubscriptionRefs_(Re,S)}),Me.sources.forEach(function(Re){return Z.addSubscriptionRefs_(Re,S)})}},{key:"getSubscriptionRefs_",value:function(){var C=this,S=this.sentinel_,Z=new Map;return S&&S.sources.forEach(function(Me){return C.addSubscriptionRefs_(Me,Z)}),Z}}]),p}(vn),br=function(E){Ft(p,E);var d=H(p);function p(v){var C;return Dn(this,p),wt(q(C=d.call(this,"stats")),"spy_",void 0),wt(q(C),"stats_",void 0),wt(q(C),"time_",void 0),C.spy_=v,C.stats_={completes:0,errors:0,flattenedSubscribes:0,leafSubscribes:0,maxDepth:0,nexts:0,rootSubscribes:0,subscribes:0,tick:0,timespan:0,totalDepth:0,unsubscribes:0},C.time_=0,C}return Ut(p,[{key:"afterSubscribe",value:function(C){var S=this.stats_,Z=gn(C);if(Z){var Me=Z.depth,Re=Z.flattened,ut=Z.flattenings,Dt=Z.flatteningsFlushed,Zt=Z.sources,qt=Z.sourcesFlushed;Z.rootSink||(S.rootSubscribes+=1),Re&&(S.flattenedSubscribes+=1),ut.length+Dt+Zt.length+qt===0&&(S.maxDepth0&&(this.timeoutId_=setTimeout(function(){for(var Z=Date.now()-v;C.length>0&&C[0].timestamp<=Z;){var Me=C.shift();Me.task(Me.ignored)}p.timeoutId_=void 0,p.wait_()},Math.max(0,C[0].timestamp+v-Date.now())))}}]),E}(),Zr=function(){function E(d){Dn(this,E),wt(this,"detectorRecords_",void 0),wt(this,"snapshotPlugin_",void 0),wt(this,"spy_",void 0),this.detectorRecords_=new Map,this.snapshotPlugin_=d.find(Mo),this.spy_=d}return Ut(E,[{key:"detect",value:function(p){var v=this.detectorRecords_,C=this.snapshotPlugin_,S=this.spy_;if(C){var Z=v.get(p),Me=this.record_(C.snapshotAll());if(Z?Z.snapshotRecords.push(Me):v.set(p,Z={snapshotRecords:[Me]}),Z.snapshotRecords.length>2&&Z.snapshotRecords.shift(),!(Z.snapshotRecords.length<2)){var Re=function ze(E,d){return function Kt(E){if(Array.isArray(E))return E}(E)||function In(E,d){var p=E&&(typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"]);if(null!=p){var Z,Me,v=[],C=!0,S=!1;try{for(p=p.call(E);!(C=(Z=p.next()).done)&&(v.push(Z.value),!d||v.length!==d);C=!0);}catch(Re){S=!0,Me=Re}finally{try{!C&&null!=p.return&&p.return()}finally{if(S)throw Me}}return v}}(E,d)||Kn(E,d)||function Nn(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Z.snapshotRecords,2);return this.compare_(p,Re[0],Re[1])}}else S.warnOnce(console,"Snapshotting is not enabled.")}},{key:"compare_",value:function(p,v,C){var S=[],Z=[],Me=[],Re=[],ut=v.rootSubscriptions,Dt=C.rootSubscriptions;if(ut.forEach(function(Nt,Zt){Dt.has(Zt)||Z.push(Nt)}),Dt.forEach(function(Nt,Zt){var qt=ut.get(Zt);if(qt){var cn=qt.flattenings,an=Nt.flattenings;cn.forEach(function(zn,Bn){an.has(Bn)||Re.push(zn)}),an.forEach(function(zn,Bn){cn.has(Bn)||Me.push(zn)})}else S.push(Nt)}),0!==Me.length||0!==Re.length||0!==S.length||0!==Z.length)return{flatteningSubscriptions:Me,flatteningUnsubscriptions:Re,subscriptions:S.map(function(Nt){return Nt.subscriptionSnapshot}),unsubscriptions:Z.map(function(Nt){return Nt.subscriptionSnapshot})}}},{key:"findFlatteningSubscriptions_",value:function(p,v){var C=v.flattenings,S=v.subscriptionSnapshot;p.subscriptions.forEach(function(Z){Z.rootSink===S&&Z.flattenings.forEach(function(Me){var Re=Me.subscription;Re.closed||C.set(Re,Me)})})}},{key:"findRootSubscriptions_",value:function(p,v){var C=this;p.observables.forEach(function(S){S.subscriptions.forEach(function(Z){var Dt=Z.subscription;if(!(Z.complete||Z.error||Z.sink||Dt.closed)){var Nt={flattenings:new Map,subscriptionSnapshot:Z};C.findFlatteningSubscriptions_(p,Nt),v.set(Dt,Nt)}})})}},{key:"record_",value:function(p){var v=new Map;return this.findRootSubscriptions_(p,v),{rootSubscriptions:v,snapshot:p}}}]),E}();var Pi=m.c.prototype.subscribe,Tr={},$r=function(){function E(){var d=this,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Dn(this,E),wt(this,"auditor_",void 0),wt(this,"defaultLogger_",void 0),wt(this,"maxLogged_",20),wt(this,"plugins_",void 0),wt(this,"pluginsSubject_",void 0),wt(this,"teardown_",void 0),wt(this,"tick_",void 0),wt(this,"undos_",void 0),wt(this,"warned_",void 0),E.spy_)throw new Error("Already spying on Observable.prototype.subscribe.");p.warning&&console.warn("Spying on Observable.prototype.subscribe."),E.spy_=this,m.c.prototype.subscribe=E.coreSubscribe_,this.auditor_=new Wo(p.audit||0),this.defaultLogger_=p.defaultLogger||X,this.plugins_=!1===p.defaultPlugins?[]:[new Pn(p),new Ei(p),new Mo(this,p),new xi(this,this.defaultLogger_),new br(this)],this.pluginsSubject_=new Q.t(this.plugins_),this.tick_=0,this.undos_=[],this.warned_={};var v=new Zr(this);A(function(C){return d.detect_(C,v)}),typeof window<"u"&&[p.global||"spy","rxSpy"].forEach(function(C){window.hasOwnProperty(C)&&(d.defaultLogger_.log("Overwriting window.".concat(C)),Tr[C]=window[C]),window[C]=function Hn(E){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return{deck:function(v){d();var C=E.findAll(Go);if(void 0!==v){var Z=C[v-1];return Z?Z.deck:void 0}var S=se(X);S.group("".concat(C.length," Deck(s)")),C.forEach(function(Me,Re){return S.log("".concat(Re+1," pause(").concat(Me.name,")"))}),S.groupEnd()},debug:function(){d();for(var v=arguments.length,C=new Array(v),S=0;S0&&void 0!==arguments[0]?arguments[0]:"";d(),function D(E){T(E)}(v)},flush:function(){d(),E.flush()},inferPath:He,inferType:xt,let:function(){d();for(var v=arguments.length,C=new Array(v),S=0;S1?v-1:0),S=1;SDt?ut.length-Dt:0;Nt&&ut.splice(Dt,Nt),Re.group("".concat(ut.length+Nt," snapshot(s) found"));var Zt=ut.length>3?"groupCollapsed":"group";ut.forEach(function(qt){var cn=qt.observable;Re[Zt].call(Re,cn.tag?"Tag = ".concat(cn.tag):"Type = ".concat(cn.type)),Re.log("Path =",cn.path);var an=qt.subs,zn=qt.subs.length>3?"groupCollapsed":"group";Re.group("".concat(an.length," subscriber(s)")),an.forEach(function(Bn){var vi=Bn.subscription,mn=Bn.subscriber,Sn=mn.values,li=mn.valuesFlushed;Re[zn].call(Re,"Subscriber"),Re.log("Value count =",Sn.length+li),Sn.length>0&&Re.log("Last value =",Sn[Sn.length-1].value),Ko(Re,vi),Array.from(mn.subscriptions.values()).filter(function(Ri){return Ri!==vi}).forEach(function(Ri){Re.groupCollapsed("Other subscription"),Ko(Re,Ri),Re.groupEnd()}),Re.groupEnd()}),Re.groupEnd(),Re.groupEnd()}),Nt&&Re.log("... another ".concat(Nt," snapshot(s) not logged.")),Re.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"show",value:function(p,v){var C=/.+/;p?"function"==typeof p.log&&(v=p,p=C):p=C;var S=this.find(Mo);if(S){var Z=S.snapshotAll(),Me=Array.from(Z.observables.values()).filter(function(Nt){return It(Nt.observable,p)}),Re=se(v||this.defaultLogger_),ut=this.maxLogged_,Dt=Me.length>ut?Me.length-ut:0;Dt&&Me.splice(ut,Dt),Z.mapStackTraces(Me).subscribe(function(){Re.group("".concat(Me.length+Dt," snapshot(s) matching ").concat(en(p)));var Nt=Me.length>3?"groupCollapsed":"group";Me.forEach(function(Zt){Re[Nt].call(Re,Zt.tag?"Tag = ".concat(Zt.tag):"Type = ".concat(Zt.type)),Re.log("Path =",Zt.path);var qt=Zt.subscriptions,cn=qt.size>3?"groupCollapsed":"group";Re.group("".concat(qt.size," subscriber(s)")),qt.forEach(function(an){var zn=Z.subscribers.get(an.subscriber);if(zn){var Bn=zn.values,vi=zn.valuesFlushed;Re[cn].call(Re,"Subscriber"),Re.log("Value count =",Bn.length+vi),Bn.length>0&&Re.log("Last value =",Bn[Bn.length-1].value),Ko(Re,an),Array.from(zn.subscriptions.values()).filter(function(Sn){return Sn!==an}).forEach(function(Sn){Re.groupCollapsed("Other subscription"),Ko(Re,Sn),Re.groupEnd()}),Re.groupEnd()}else Re.warn("Cannot find subscriber snapshot")}),Re.groupEnd(),Re.groupEnd()}),Dt&&Re.log("... another ".concat(Dt," snapshot(s) not logged.")),Re.groupEnd()})}else this.warnOnce(console,"Snapshotting is not enabled.")}},{key:"stats",value:function(p){var v=this.find(br);if(v){var C=v.stats,S=C.leafSubscribes,Z=C.maxDepth,Me=C.flattenedSubscribes,Re=C.rootSubscribes,ut=C.totalDepth,Dt=se(p||this.defaultLogger_);Dt.group("Stats"),Dt.log("Subscribes =",C.subscribes),Re>0&&Dt.log("Root subscribes =",Re),S>0&&Dt.log("Leaf subscribes =",S),Me>0&&Dt.log("Flattened subscribes =",Me),Dt.log("Unsubscribes =",C.unsubscribes),Dt.log("Nexts =",C.nexts),Dt.log("Errors =",C.errors),Dt.log("Completes =",C.completes),Z>0&&(Dt.log("Max. depth =",Z),Dt.log("Avg. depth =",(ut/S).toFixed(1))),Dt.log("Tick =",C.tick),Dt.log("Timespan =",C.timespan),Dt.groupEnd()}else this.warnOnce(console,"Stats are not enabled.")}},{key:"teardown",value:function(){this.teardown_&&(this.teardown_(),this.teardown_=void 0)}},{key:"unplug",value:function(){for(var p=this,v=arguments.length,C=new Array(v),S=0;S2?C-2:0),Z=2;Z2?S-2:0),Me=2;Me0){this.preSelectSubject||(this.preSelectSubject=new w.B),this.postSelectSubscription&&this.postSelectSubscription.unsubscribe();var zn=this.preSelectSubject.asObservable();an.forEach(function(Bn){return zn=Bn(zn)}),this.postSelectSubscription=zn.pipe(Ii()).subscribe(Nt)}else this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0,this.preSelectSubject=void 0)},next:function(cn){this.preSelectSubject?this.preSelectSubject.next(cn):this.postSelectObserver.next(cn)},postSelectObserver:Nt,postSelectSubscription:void 0,preSelectSubject:void 0,unsubscribe:function(){this.unsubscribed||(this.unsubscribed=!0,!this.completed&&!this.errored&&this.postSelectSubscription&&(this.postSelectSubscription.unsubscribe(),this.postSelectSubscription=void 0))},unsubscribed:!1};return Re.add(v.pluginsSubject_.pipe(Ii()).subscribe({next:function(cn){return Zt.let(cn)}})),Me(function(qt){return qt.beforeSubscribe(ut)},function(){Re.add(Pi.call(p,Zt)),Re.add(function(){return Zt.unsubscribe()})},function(qt){return qt.afterSubscribe(ut)}),Re}}]),E}();function Ko(E,d){var v=d.error,C=d.unsubscribed;E.log("State =",d.complete?"complete":v?"error":"incomplete"),v&&E.error("Error =",v),C&&E.log("Unsubscribed =",!0),function as(E,d){var v=d.rootSink;(v?v.mappedStackTrace:d.mappedStackTrace).subscribe(function(S){return E.log("Root subscribe",S)})}(E,d)}wt($r,"spy_",void 0);var $e=a(177);const at=void 0,nn=["en",[["a","p"],["AM","PM"],at],[["AM","PM"],at,at],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],at,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],at,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",at,"{1} 'at' {0}",at],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function At(E){const p=Math.floor(Math.abs(E)),v=E.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===v?1:5}];var ln=a(1626),hn=a(9969);function Rn(E){return new r.wOt(3e3,!1)}function qe(E){switch(E.length){case 0:return new hn.sf;case 1:return E[0];default:return new hn.ui(E)}}function gt(E,d,p=new Map,v=new Map){const C=[],S=[];let Z=-1,Me=null;if(d.forEach(Re=>{const ut=Re.get("offset"),Dt=ut==Z,Nt=Dt&&Me||new Map;Re.forEach((Zt,qt)=>{let cn=qt,an=Zt;if("offset"!==qt)switch(cn=E.normalizePropertyName(cn,C),an){case hn.FX:an=p.get(qt);break;case hn.kp:an=v.get(qt);break;default:an=E.normalizeStyleValue(qt,cn,an,C)}Nt.set(cn,an)}),Dt||S.push(Nt),Me=Nt,Z=ut}),C.length)throw function Er(E){return new r.wOt(3502,!1)}();return S}function pn(E,d,p,v){switch(d){case"start":E.onStart(()=>v(p&&ei(p,"start",E)));break;case"done":E.onDone(()=>v(p&&ei(p,"done",E)));break;case"destroy":E.onDestroy(()=>v(p&&ei(p,"destroy",E)))}}function ei(E,d,p){const S=ti(E.element,E.triggerName,E.fromState,E.toState,d||E.phaseName,p.totalTime??E.totalTime,!!p.disabled),Z=E._data;return null!=Z&&(S._data=Z),S}function ti(E,d,p,v,C="",S=0,Z){return{element:E,triggerName:d,fromState:p,toState:v,phaseName:C,totalTime:S,disabled:!!Z}}function wi(E,d,p){let v=E.get(d);return v||E.set(d,v=p),v}function Zi(E){const d=E.indexOf(":");return[E.substring(1,d),E.slice(d+1)]}const No=typeof document>"u"?null:document.documentElement;function bi(E){const d=E.parentNode||E.host||null;return d===No?null:d}let Ho=null,ys=!1;function Ct(E,d){for(;d;){if(d===E)return!0;d=bi(d)}return!1}function sn(E,d,p){if(p)return Array.from(E.querySelectorAll(d));const v=E.querySelector(d);return v?[v]:[]}let ho=(()=>{class E{validateStyleProperty(p){return function Be(E){Ho||(Ho=function be(){return typeof document<"u"?document.body:null}()||{},ys=!!Ho.style&&"WebkitAppearance"in Ho.style);let d=!0;return Ho.style&&!function Do(E){return"ebkit"==E.substring(1,6)}(E)&&(d=E in Ho.style,!d&&ys&&(d="Webkit"+E.charAt(0).toUpperCase()+E.slice(1)in Ho.style)),d}(p)}containsElement(p,v){return Ct(p,v)}getParentElement(p){return bi(p)}query(p,v,C){return sn(p,v,C)}computeStyle(p,v,C){return C||""}animate(p,v,C,S,Z,Me=[],Re){return new hn.sf(C,S)}static#e=this.\u0275fac=function(v){return new(v||E)};static#t=this.\u0275prov=r.jDH({token:E,factory:E.\u0275fac})}return E})();class jo{static#e=this.NOOP=new ho}class Fi{}const Nc=1e3,ac="ng-enter",Io="ng-leave",_a="ng-trigger",ls=".ng-trigger",aa="ng-animating",Ba=".ng-animating";function Ir(E){if("number"==typeof E)return E;const d=E.match(/^(-?[\.\d]+)(m?s)/);return!d||d.length<2?0:Da(parseFloat(d[1]),d[2])}function Da(E,d){return"s"===d?E*Nc:E}function Us(E,d,p){return E.hasOwnProperty("duration")?E:function Es(E,d,p){let C,S=0,Z="";if("string"==typeof E){const Me=E.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Me)return d.push(Rn()),{duration:0,delay:0,easing:""};C=Da(parseFloat(Me[1]),Me[2]);const Re=Me[3];null!=Re&&(S=Da(parseFloat(Re),Me[4]));const ut=Me[5];ut&&(Z=ut)}else C=E;if(!p){let Me=!1,Re=d.length;C<0&&(d.push(function Zn(){return new r.wOt(3100,!1)}()),Me=!0),S<0&&(d.push(function jn(){return new r.wOt(3101,!1)}()),Me=!0),Me&&d.splice(Re,0,Rn())}return{duration:C,delay:S,easing:Z}}(E,d,p)}function us(E,d,p){d.forEach((v,C)=>{const S=hs(C);p&&!p.has(C)&&p.set(C,E.style[S]),E.style[S]=v})}function Ui(E,d){d.forEach((p,v)=>{const C=hs(v);E.style[C]=""})}function Gs(E){return Array.isArray(E)?1==E.length?E[0]:(0,hn.K2)(E):E}const zs=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ha(E){let d=[];if("string"==typeof E){let p;for(;p=zs.exec(E);)d.push(p[1]);zs.lastIndex=0}return d}function ds(E,d,p){const v=`${E}`,C=v.replace(zs,(S,Z)=>{let Me=d[Z];return null==Me&&(p.push(function ai(E){return new r.wOt(3003,!1)}()),Me=""),Me.toString()});return C==v?E:C}const Sa=/-+([a-z0-9])/g;function hs(E){return E.replace(Sa,(...d)=>d[1].toUpperCase())}function Lr(E,d,p){switch(d.type){case hn.If.Trigger:return E.visitTrigger(d,p);case hn.If.State:return E.visitState(d,p);case hn.If.Transition:return E.visitTransition(d,p);case hn.If.Sequence:return E.visitSequence(d,p);case hn.If.Group:return E.visitGroup(d,p);case hn.If.Animate:return E.visitAnimate(d,p);case hn.If.Keyframes:return E.visitKeyframes(d,p);case hn.If.Style:return E.visitStyle(d,p);case hn.If.Reference:return E.visitReference(d,p);case hn.If.AnimateChild:return E.visitAnimateChild(d,p);case hn.If.AnimateRef:return E.visitAnimateRef(d,p);case hn.If.Query:return E.visitQuery(d,p);case hn.If.Stagger:return E.visitStagger(d,p);default:throw function Ti(E){return new r.wOt(3004,!1)}()}}function Rs(E,d){return window.getComputedStyle(E)[d]}const ja=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ca extends Fi{normalizePropertyName(d,p){return hs(d)}normalizeStyleValue(d,p,v,C){let S="";const Z=v.toString().trim();if(ja.has(p)&&0!==v&&"0"!==v)if("number"==typeof v)S="px";else{const Me=v.match(/^[+-]?[\d\.]+([a-z]*)$/);Me&&0==Me[1].length&&C.push(function ci(E,d){return new r.wOt(3005,!1)}())}return Z+S}}const uc="*";const ks=new Set(["true","1"]),Ys=new Set(["false","0"]);function pt(E,d){const p=ks.has(E)||Ys.has(E),v=ks.has(d)||Ys.has(d);return(C,S)=>{let Z=E==uc||E==C,Me=d==uc||d==S;return!Z&&p&&"boolean"==typeof C&&(Z=C?ks.has(E):Ys.has(E)),!Me&&v&&"boolean"==typeof S&&(Me=S?ks.has(d):Ys.has(d)),Z&&Me}}const we=new RegExp("s*:selfs*,?","g");function Fe(E,d,p,v){return new rt(E).build(d,p,v)}class rt{constructor(d){this._driver=d}build(d,p,v){const C=new Di(p);return this._resetContextStyleTimingState(C),Lr(this,Gs(d),C)}_resetContextStyleTimingState(d){d.currentQuerySelector="",d.collectedStyles=new Map,d.collectedStyles.set("",new Map),d.currentTime=0}visitTrigger(d,p){let v=p.queryCount=0,C=p.depCount=0;const S=[],Z=[];return"@"==d.name.charAt(0)&&p.errors.push(function yi(){return new r.wOt(3006,!1)}()),d.definitions.forEach(Me=>{if(this._resetContextStyleTimingState(p),Me.type==hn.If.State){const Re=Me,ut=Re.name;ut.toString().split(/\s*,\s*/).forEach(Dt=>{Re.name=Dt,S.push(this.visitState(Re,p))}),Re.name=ut}else if(Me.type==hn.If.Transition){const Re=this.visitTransition(Me,p);v+=Re.queryCount,C+=Re.depCount,Z.push(Re)}else p.errors.push(function _i(){return new r.wOt(3007,!1)}())}),{type:hn.If.Trigger,name:d.name,states:S,transitions:Z,queryCount:v,depCount:C,options:null}}visitState(d,p){const v=this.visitStyle(d.styles,p),C=d.options&&d.options.params||null;if(v.containsDynamicStyles){const S=new Set,Z=C||{};v.styles.forEach(Me=>{Me instanceof Map&&Me.forEach(Re=>{Ha(Re).forEach(ut=>{Z.hasOwnProperty(ut)||S.add(ut)})})}),S.size&&p.errors.push(function Oi(E,d){return new r.wOt(3008,!1)}(0,S.values()))}return{type:hn.If.State,name:d.name,style:v,options:C?{params:C}:null}}visitTransition(d,p){p.queryCount=0,p.depCount=0;const v=Lr(this,Gs(d.animation),p),C=function ba(E,d){const p=[];return"string"==typeof E?E.split(/\s*,\s*/).forEach(v=>function Vc(E,d,p){if(":"==E[0]){const Re=function Lc(E,d){switch(E){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,v)=>parseFloat(v)>parseFloat(p);case":decrement":return(p,v)=>parseFloat(v) *"}}(E,p);if("function"==typeof Re)return void d.push(Re);E=Re}const v=E.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return p.push(function es(E){return new r.wOt(3015,!1)}()),d;const C=v[1],S=v[2],Z=v[3];d.push(pt(C,Z)),"<"==S[0]&&(C!=uc||Z!=uc)&&d.push(pt(Z,C))}(v,p,d)):p.push(E),p}(d.expr,p.errors);return{type:hn.If.Transition,matchers:C,animation:v,queryCount:p.queryCount,depCount:p.depCount,options:ye(d.options)}}visitSequence(d,p){return{type:hn.If.Sequence,steps:d.steps.map(v=>Lr(this,v,p)),options:ye(d.options)}}visitGroup(d,p){const v=p.currentTime;let C=0;const S=d.steps.map(Z=>{p.currentTime=v;const Me=Lr(this,Z,p);return C=Math.max(C,p.currentTime),Me});return p.currentTime=C,{type:hn.If.Group,steps:S,options:ye(d.options)}}visitAnimate(d,p){const v=function tt(E,d){if(E.hasOwnProperty("duration"))return E;if("number"==typeof E)return Ge(Us(E,d).duration,0,"");const p=E;if(p.split(/\s+/).some(S=>"{"==S.charAt(0)&&"{"==S.charAt(1))){const S=Ge(0,0,"");return S.dynamic=!0,S.strValue=p,S}const C=Us(p,d);return Ge(C.duration,C.delay,C.easing)}(d.timings,p.errors);p.currentAnimateTimings=v;let C,S=d.styles?d.styles:(0,hn.iF)({});if(S.type==hn.If.Keyframes)C=this.visitKeyframes(S,p);else{let Z=d.styles,Me=!1;if(!Z){Me=!0;const ut={};v.easing&&(ut.easing=v.easing),Z=(0,hn.iF)(ut)}p.currentTime+=v.duration+v.delay;const Re=this.visitStyle(Z,p);Re.isEmptyStep=Me,C=Re}return p.currentAnimateTimings=null,{type:hn.If.Animate,timings:v,style:C,options:null}}visitStyle(d,p){const v=this._makeStyleAst(d,p);return this._validateStyleAst(v,p),v}_makeStyleAst(d,p){const v=[],C=Array.isArray(d.styles)?d.styles:[d.styles];for(let Me of C)"string"==typeof Me?Me===hn.kp?v.push(Me):p.errors.push(new r.wOt(3002,!1)):v.push(new Map(Object.entries(Me)));let S=!1,Z=null;return v.forEach(Me=>{if(Me instanceof Map&&(Me.has("easing")&&(Z=Me.get("easing"),Me.delete("easing")),!S))for(let Re of Me.values())if(Re.toString().indexOf("{{")>=0){S=!0;break}}),{type:hn.If.Style,styles:v,easing:Z,offset:d.offset,containsDynamicStyles:S,options:null}}_validateStyleAst(d,p){const v=p.currentAnimateTimings;let C=p.currentTime,S=p.currentTime;v&&S>0&&(S-=v.duration+v.delay),d.styles.forEach(Z=>{"string"!=typeof Z&&Z.forEach((Me,Re)=>{const ut=p.collectedStyles.get(p.currentQuerySelector),Dt=ut.get(Re);let Nt=!0;Dt&&(S!=C&&S>=Dt.startTime&&C<=Dt.endTime&&(p.errors.push(function Ai(E,d,p,v,C){return new r.wOt(3010,!1)}()),Nt=!1),S=Dt.startTime),Nt&&ut.set(Re,{startTime:S,endTime:C}),p.options&&function $a(E,d,p){const v=d.params||{},C=Ha(E);C.length&&C.forEach(S=>{v.hasOwnProperty(S)||p.push(function oi(E){return new r.wOt(3001,!1)}())})}(Me,p.options,p.errors)})})}visitKeyframes(d,p){const v={type:hn.If.Keyframes,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push(function go(){return new r.wOt(3011,!1)}()),v;let S=0;const Z=[];let Me=!1,Re=!1,ut=0;const Dt=d.steps.map(Bn=>{const vi=this._makeStyleAst(Bn,p);let mn=null!=vi.offset?vi.offset:function L(E){if("string"==typeof E)return null;let d=null;if(Array.isArray(E))E.forEach(p=>{if(p instanceof Map&&p.has("offset")){const v=p;d=parseFloat(v.get("offset")),v.delete("offset")}});else if(E instanceof Map&&E.has("offset")){const p=E;d=parseFloat(p.get("offset")),p.delete("offset")}return d}(vi.styles),Sn=0;return null!=mn&&(S++,Sn=vi.offset=mn),Re=Re||Sn<0||Sn>1,Me=Me||Sn0&&S{const mn=Zt>0?vi==qt?1:Zt*vi:Z[vi],Sn=mn*zn;p.currentTime=cn+an.delay+Sn,an.duration=Sn,this._validateStyleAst(Bn,p),Bn.offset=mn,v.styles.push(Bn)}),v}visitReference(d,p){return{type:hn.If.Reference,animation:Lr(this,Gs(d.animation),p),options:ye(d.options)}}visitAnimateChild(d,p){return p.depCount++,{type:hn.If.AnimateChild,options:ye(d.options)}}visitAnimateRef(d,p){return{type:hn.If.AnimateRef,animation:this.visitReference(d.animation,p),options:ye(d.options)}}visitQuery(d,p){const v=p.currentQuerySelector,C=d.options||{};p.queryCount++,p.currentQuery=d;const[S,Z]=function Ue(E){const d=!!E.split(/\s*,\s*/).find(p=>":self"==p);return d&&(E=E.replace(we,"")),E=E.replace(/@\*/g,ls).replace(/@\w+/g,p=>ls+"-"+p.slice(1)).replace(/:animating/g,Ba),[E,d]}(d.selector);p.currentQuerySelector=v.length?v+" "+S:S,wi(p.collectedStyles,p.currentQuerySelector,new Map);const Me=Lr(this,Gs(d.animation),p);return p.currentQuery=null,p.currentQuerySelector=v,{type:hn.If.Query,selector:S,limit:C.limit||0,optional:!!C.optional,includeSelf:Z,animation:Me,originalSelector:d.selector,options:ye(d.options)}}visitStagger(d,p){p.currentQuery||p.errors.push(function wo(){return new r.wOt(3013,!1)}());const v="full"===d.timings?{duration:0,delay:0,easing:"full"}:Us(d.timings,p.errors,!0);return{type:hn.If.Stagger,animation:Lr(this,Gs(d.animation),p),timings:v,options:null}}}class Di{constructor(d){this.errors=d,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ye(E){return E?(E={...E}).params&&(E.params=function Xn(E){return E?{...E}:null}(E.params)):E={},E}function Ge(E,d,p){return{duration:E,delay:d,easing:p}}function jt(E,d,p,v,C,S,Z=null,Me=!1){return{type:1,element:E,keyframes:d,preStyleProps:p,postStyleProps:v,duration:C,delay:S,totalTime:C+S,easing:Z,subTimeline:Me}}class _n{constructor(){this._map=new Map}get(d){return this._map.get(d)||[]}append(d,p){let v=this._map.get(d);v||this._map.set(d,v=[]),v.push(...p)}has(d){return this._map.has(d)}clear(){this._map.clear()}}const po=new RegExp(":enter","g"),bo=new RegExp(":leave","g");function Qn(E,d,p,v,C,S=new Map,Z=new Map,Me,Re,ut=[]){return(new xo).buildKeyframes(E,d,p,v,C,S,Z,Me,Re,ut)}class xo{buildKeyframes(d,p,v,C,S,Z,Me,Re,ut,Dt=[]){ut=ut||new _n;const Nt=new To(d,p,ut,C,S,Dt,[]);Nt.options=Re;const Zt=Re.delay?Ir(Re.delay):0;Nt.currentTimeline.delayNextStep(Zt),Nt.currentTimeline.setStyles([Z],null,Nt.errors,Re),Lr(this,v,Nt);const qt=Nt.timelines.filter(cn=>cn.containsAnimation());if(qt.length&&Me.size){let cn;for(let an=qt.length-1;an>=0;an--){const zn=qt[an];if(zn.element===p){cn=zn;break}}cn&&!cn.allowOnlyTimelineStyles()&&cn.setStyles([Me],null,Nt.errors,Re)}return qt.length?qt.map(cn=>cn.buildKeyframes()):[jt(p,[],[],[],0,Zt,"",!1)]}visitTrigger(d,p){}visitState(d,p){}visitTransition(d,p){}visitAnimateChild(d,p){const v=p.subInstructions.get(p.element);if(v){const C=p.createSubContext(d.options),S=p.currentTimeline.currentTime,Z=this._visitSubInstructions(v,C,C.options);S!=Z&&p.transformIntoNewTimeline(Z)}p.previousNode=d}visitAnimateRef(d,p){const v=p.createSubContext(d.options);v.transformIntoNewTimeline(),this._applyAnimationRefDelays([d.options,d.animation.options],p,v),this.visitReference(d.animation,v),p.transformIntoNewTimeline(v.currentTimeline.currentTime),p.previousNode=d}_applyAnimationRefDelays(d,p,v){for(const C of d){const S=C?.delay;if(S){const Z="number"==typeof S?S:Ir(ds(S,C?.params??{},p.errors));v.delayNextStep(Z)}}}_visitSubInstructions(d,p,v){let S=p.currentTimeline.currentTime;const Z=null!=v.duration?Ir(v.duration):null,Me=null!=v.delay?Ir(v.delay):null;return 0!==Z&&d.forEach(Re=>{const ut=p.appendInstructionToTimeline(Re,Z,Me);S=Math.max(S,ut.duration+ut.delay)}),S}visitReference(d,p){p.updateOptions(d.options,!0),Lr(this,d.animation,p),p.previousNode=d}visitSequence(d,p){const v=p.subContextCount;let C=p;const S=d.options;if(S&&(S.params||S.delay)&&(C=p.createSubContext(S),C.transformIntoNewTimeline(),null!=S.delay)){C.previousNode.type==hn.If.Style&&(C.currentTimeline.snapshotCurrentStyles(),C.previousNode=Li);const Z=Ir(S.delay);C.delayNextStep(Z)}d.steps.length&&(d.steps.forEach(Z=>Lr(this,Z,C)),C.currentTimeline.applyStylesToKeyframe(),C.subContextCount>v&&C.transformIntoNewTimeline()),p.previousNode=d}visitGroup(d,p){const v=[];let C=p.currentTimeline.currentTime;const S=d.options&&d.options.delay?Ir(d.options.delay):0;d.steps.forEach(Z=>{const Me=p.createSubContext(d.options);S&&Me.delayNextStep(S),Lr(this,Z,Me),C=Math.max(C,Me.currentTimeline.currentTime),v.push(Me.currentTimeline)}),v.forEach(Z=>p.currentTimeline.mergeTimelineCollectedStyles(Z)),p.transformIntoNewTimeline(C),p.previousNode=d}_visitTiming(d,p){if(d.dynamic){const v=d.strValue;return Us(p.params?ds(v,p.params,p.errors):v,p.errors)}return{duration:d.duration,delay:d.delay,easing:d.easing}}visitAnimate(d,p){const v=p.currentAnimateTimings=this._visitTiming(d.timings,p),C=p.currentTimeline;v.delay&&(p.incrementTime(v.delay),C.snapshotCurrentStyles());const S=d.style;S.type==hn.If.Keyframes?this.visitKeyframes(S,p):(p.incrementTime(v.duration),this.visitStyle(S,p),C.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=d}visitStyle(d,p){const v=p.currentTimeline,C=p.currentAnimateTimings;!C&&v.hasCurrentStyleProperties()&&v.forwardFrame();const S=C&&C.easing||d.easing;d.isEmptyStep?v.applyEmptyStep(S):v.setStyles(d.styles,S,p.errors,p.options),p.previousNode=d}visitKeyframes(d,p){const v=p.currentAnimateTimings,C=p.currentTimeline.duration,S=v.duration,Me=p.createSubContext().currentTimeline;Me.easing=v.easing,d.styles.forEach(Re=>{Me.forwardTime((Re.offset||0)*S),Me.setStyles(Re.styles,Re.easing,p.errors,p.options),Me.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(Me),p.transformIntoNewTimeline(C+S),p.previousNode=d}visitQuery(d,p){const v=p.currentTimeline.currentTime,C=d.options||{},S=C.delay?Ir(C.delay):0;S&&(p.previousNode.type===hn.If.Style||0==v&&p.currentTimeline.hasCurrentStyleProperties())&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=Li);let Z=v;const Me=p.invokeQuery(d.selector,d.originalSelector,d.limit,d.includeSelf,!!C.optional,p.errors);p.currentQueryTotal=Me.length;let Re=null;Me.forEach((ut,Dt)=>{p.currentQueryIndex=Dt;const Nt=p.createSubContext(d.options,ut);S&&Nt.delayNextStep(S),ut===p.element&&(Re=Nt.currentTimeline),Lr(this,d.animation,Nt),Nt.currentTimeline.applyStylesToKeyframe(),Z=Math.max(Z,Nt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Z),Re&&(p.currentTimeline.mergeTimelineCollectedStyles(Re),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=d}visitStagger(d,p){const v=p.parentContext,C=p.currentTimeline,S=d.timings,Z=Math.abs(S.duration),Me=Z*(p.currentQueryTotal-1);let Re=Z*p.currentQueryIndex;switch(S.duration<0?"reverse":S.easing){case"reverse":Re=Me-Re;break;case"full":Re=v.currentStaggerTime}const Dt=p.currentTimeline;Re&&Dt.delayNextStep(Re);const Nt=Dt.currentTime;Lr(this,d.animation,p),p.previousNode=d,v.currentStaggerTime=C.currentTime-Nt+(C.startTime-v.currentTimeline.startTime)}}const Li={};class To{constructor(d,p,v,C,S,Z,Me,Re){this._driver=d,this.element=p,this.subInstructions=v,this._enterClassName=C,this._leaveClassName=S,this.errors=Z,this.timelines=Me,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Re||new ur(this._driver,p,0),Me.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(d,p){if(!d)return;const v=d;let C=this.options;null!=v.duration&&(C.duration=Ir(v.duration)),null!=v.delay&&(C.delay=Ir(v.delay));const S=v.params;if(S){let Z=C.params;Z||(Z=this.options.params={}),Object.keys(S).forEach(Me=>{(!p||!Z.hasOwnProperty(Me))&&(Z[Me]=ds(S[Me],Z,this.errors))})}}_copyOptions(){const d={};if(this.options){const p=this.options.params;if(p){const v=d.params={};Object.keys(p).forEach(C=>{v[C]=p[C]})}}return d}createSubContext(d=null,p,v){const C=p||this.element,S=new To(this._driver,C,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(C,v||0));return S.previousNode=this.previousNode,S.currentAnimateTimings=this.currentAnimateTimings,S.options=this._copyOptions(),S.updateOptions(d),S.currentQueryIndex=this.currentQueryIndex,S.currentQueryTotal=this.currentQueryTotal,S.parentContext=this,this.subContextCount++,S}transformIntoNewTimeline(d){return this.previousNode=Li,this.currentTimeline=this.currentTimeline.fork(this.element,d),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(d,p,v){const C={duration:p??d.duration,delay:this.currentTimeline.currentTime+(v??0)+d.delay,easing:""},S=new ir(this._driver,d.element,d.keyframes,d.preStyleProps,d.postStyleProps,C,d.stretchStartingKeyframe);return this.timelines.push(S),C}incrementTime(d){this.currentTimeline.forwardTime(this.currentTimeline.duration+d)}delayNextStep(d){d>0&&this.currentTimeline.delayNextStep(d)}invokeQuery(d,p,v,C,S,Z){let Me=[];if(C&&Me.push(this.element),d.length>0){d=(d=d.replace(po,"."+this._enterClassName)).replace(bo,"."+this._leaveClassName);let ut=this._driver.query(this.element,d,1!=v);0!==v&&(ut=v<0?ut.slice(ut.length+v,ut.length):ut.slice(0,v)),Me.push(...ut)}return!S&&0==Me.length&&Z.push(function Xo(E){return new r.wOt(3014,!1)}()),Me}}class ur{constructor(d,p,v,C){this._driver=d,this.element=p,this.startTime=v,this._elementTimelineStylesLookup=C,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(d){const p=1===this._keyframes.size&&this._pendingStyles.size;this.duration||p?(this.forwardTime(this.currentTime+d),p&&this.snapshotCurrentStyles()):this.startTime+=d}fork(d,p){return this.applyStylesToKeyframe(),new ur(this._driver,d,p||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(d){this.applyStylesToKeyframe(),this.duration=d,this._loadKeyframe()}_updateStyle(d,p){this._localTimelineStyles.set(d,p),this._globalTimelineStyles.set(d,p),this._styleSummary.set(d,{time:this.currentTime,value:p})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(d){d&&this._previousKeyframe.set("easing",d);for(let[p,v]of this._globalTimelineStyles)this._backFill.set(p,v||hn.kp),this._currentKeyframe.set(p,hn.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(d,p,v,C){p&&this._previousKeyframe.set("easing",p);const S=C&&C.params||{},Z=function Hr(E,d){const p=new Map;let v;return E.forEach(C=>{if("*"===C){v??=d.keys();for(let S of v)p.set(S,hn.kp)}else for(let[S,Z]of C)p.set(S,Z)}),p}(d,this._globalTimelineStyles);for(let[Me,Re]of Z){const ut=ds(Re,S,v);this._pendingStyles.set(Me,ut),this._localTimelineStyles.has(Me)||this._backFill.set(Me,this._globalTimelineStyles.get(Me)??hn.kp),this._updateStyle(Me,ut)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((d,p)=>{this._currentKeyframe.set(p,d)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((d,p)=>{this._currentKeyframe.has(p)||this._currentKeyframe.set(p,d)}))}snapshotCurrentStyles(){for(let[d,p]of this._localTimelineStyles)this._pendingStyles.set(d,p),this._updateStyle(d,p)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const d=[];for(let p in this._currentKeyframe)d.push(p);return d}mergeTimelineCollectedStyles(d){d._styleSummary.forEach((p,v)=>{const C=this._styleSummary.get(v);(!C||p.time>C.time)&&this._updateStyle(v,p.value)})}buildKeyframes(){this.applyStylesToKeyframe();const d=new Set,p=new Set,v=1===this._keyframes.size&&0===this.duration;let C=[];this._keyframes.forEach((Me,Re)=>{const ut=new Map([...this._backFill,...Me]);ut.forEach((Dt,Nt)=>{Dt===hn.FX?d.add(Nt):Dt===hn.kp&&p.add(Nt)}),v||ut.set("offset",Re/this.duration),C.push(ut)});const S=[...d.values()],Z=[...p.values()];if(v){const Me=C[0],Re=new Map(Me);Me.set("offset",0),Re.set("offset",1),C=[Me,Re]}return jt(this.element,C,S,Z,this.duration,this.startTime,this.easing,!1)}}class ir extends ur{constructor(d,p,v,C,S,Z,Me=!1){super(d,p,Z.delay),this.keyframes=v,this.preStyleProps=C,this.postStyleProps=S,this._stretchStartingKeyframe=Me,this.timings={duration:Z.duration,delay:Z.delay,easing:Z.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let d=this.keyframes,{delay:p,duration:v,easing:C}=this.timings;if(this._stretchStartingKeyframe&&p){const S=[],Z=v+p,Me=p/Z,Re=new Map(d[0]);Re.set("offset",0),S.push(Re);const ut=new Map(d[0]);ut.set("offset",xr(Me)),S.push(ut);const Dt=d.length-1;for(let Nt=1;Nt<=Dt;Nt++){let Zt=new Map(d[Nt]);const qt=Zt.get("offset");Zt.set("offset",xr((p+qt*v)/Z)),S.push(Zt)}v=Z,p=0,C="",d=S}return jt(this.element,d,this.preStyleProps,this.postStyleProps,v,p,C,!0)}}function xr(E,d=3){const p=Math.pow(10,d-1);return Math.round(E*p)/p}function zr(E,d,p,v,C,S,Z,Me,Re,ut,Dt,Nt,Zt){return{type:0,element:E,triggerName:d,isRemovalTransition:C,fromState:p,fromStyles:S,toState:v,toStyles:Z,timelines:Me,queriedElements:Re,preStyleProps:ut,postStyleProps:Dt,totalTime:Nt,errors:Zt}}const jr={};class ts{constructor(d,p,v){this._triggerName=d,this.ast=p,this._stateStyles=v}match(d,p,v,C){return function or(E,d,p,v,C){return E.some(S=>S(d,p,v,C))}(this.ast.matchers,d,p,v,C)}buildStyles(d,p,v){let C=this._stateStyles.get("*");return void 0!==d&&(C=this._stateStyles.get(d?.toString())||C),C?C.buildStyles(p,v):new Map}build(d,p,v,C,S,Z,Me,Re,ut,Dt){const Nt=[],Zt=this.ast.options&&this.ast.options.params||jr,cn=this.buildStyles(v,Me&&Me.params||jr,Nt),an=Re&&Re.params||jr,zn=this.buildStyles(C,an,Nt),Bn=new Set,vi=new Map,mn=new Map,Sn="void"===C,li={params:Ms(an,Zt),delay:this.ast.options?.delay},ri=Dt?[]:Qn(d,p,this.ast.animation,S,Z,cn,zn,li,ut,Nt);let Ri=0;return ri.forEach(io=>{Ri=Math.max(io.duration+io.delay,Ri)}),Nt.length?zr(p,this._triggerName,v,C,Sn,cn,zn,[],[],vi,mn,Ri,Nt):(ri.forEach(io=>{const Sr=io.element,Jr=wi(vi,Sr,new Set);io.preStyleProps.forEach(ss=>Jr.add(ss));const xc=wi(mn,Sr,new Set);io.postStyleProps.forEach(ss=>xc.add(ss)),Sr!==p&&Bn.add(Sr)}),zr(p,this._triggerName,v,C,Sn,cn,zn,ri,[...Bn.values()],vi,mn,Ri))}}function Ms(E,d){const p={...d};return Object.entries(E).forEach(([v,C])=>{null!=C&&(p[v]=C)}),p}class Qo{constructor(d,p,v){this.styles=d,this.defaultParams=p,this.normalizer=v}buildStyles(d,p){const v=new Map,C=Ms(d,this.defaultParams);return this.styles.styles.forEach(S=>{"string"!=typeof S&&S.forEach((Z,Me)=>{Z&&(Z=ds(Z,C,p));const Re=this.normalizer.normalizePropertyName(Me,p);Z=this.normalizer.normalizeStyleValue(Me,Re,Z,p),v.set(Me,Z)})}),v}}class fo{constructor(d,p,v){this.name=d,this.ast=p,this._normalizer=v,this.transitionFactories=[],this.states=new Map,p.states.forEach(C=>{this.states.set(C.name,new Qo(C.style,C.options&&C.options.params||{},v))}),Yr(this.states,"true","1"),Yr(this.states,"false","0"),p.transitions.forEach(C=>{this.transitionFactories.push(new ts(d,C,this.states))}),this.fallbackTransition=function Ws(E,d,p){return new ts(E,{type:hn.If.Transition,animation:{type:hn.If.Sequence,steps:[],options:null},matchers:[(Z,Me)=>!0],options:null,queryCount:0,depCount:0},d)}(d,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(d,p,v,C){return this.transitionFactories.find(Z=>Z.match(d,p,v,C))||null}matchStyles(d,p,v){return this.fallbackTransition.buildStyles(d,p,v)}}function Yr(E,d,p){E.has(d)?E.has(p)||E.set(p,E.get(d)):E.has(p)&&E.set(d,E.get(p))}const is=new _n;class dc{constructor(d,p,v){this.bodyNode=d,this._driver=p,this._normalizer=v,this._animations=new Map,this._playersById=new Map,this.players=[]}register(d,p){const v=[],S=Fe(this._driver,p,v,[]);if(v.length)throw function vr(E){return new r.wOt(3503,!1)}();this._animations.set(d,S)}_buildPlayer(d,p,v){const C=d.element,S=gt(this._normalizer,d.keyframes,p,v);return this._driver.animate(C,S,d.duration,d.delay,d.easing,[],!0)}create(d,p,v={}){const C=[],S=this._animations.get(d);let Z;const Me=new Map;if(S?(Z=Qn(this._driver,p,S,ac,Io,new Map,new Map,v,is,C),Z.forEach(Dt=>{const Nt=wi(Me,Dt.element,new Map);Dt.postStyleProps.forEach(Zt=>Nt.set(Zt,null))})):(C.push(function Vo(){return new r.wOt(3300,!1)}()),Z=[]),C.length)throw function As(E){return new r.wOt(3504,!1)}();Me.forEach((Dt,Nt)=>{Dt.forEach((Zt,qt)=>{Dt.set(qt,this._driver.computeStyle(Nt,qt,hn.kp))})});const ut=qe(Z.map(Dt=>{const Nt=Me.get(Dt.element);return this._buildPlayer(Dt,new Map,Nt)}));return this._playersById.set(d,ut),ut.onDestroy(()=>this.destroy(d)),this.players.push(ut),ut}destroy(d){const p=this._getPlayer(d);p.destroy(),this._playersById.delete(d);const v=this.players.indexOf(p);v>=0&&this.players.splice(v,1)}_getPlayer(d){const p=this._playersById.get(d);if(!p)throw function kr(E){return new r.wOt(3301,!1)}();return p}listen(d,p,v,C){const S=ti(p,"","","");return pn(this._getPlayer(d),v,S,C),()=>{}}command(d,p,v,C){if("register"==v)return void this.register(d,C[0]);if("create"==v)return void this.create(d,p,C[0]||{});const S=this._getPlayer(d);switch(v){case"play":S.play();break;case"pause":S.pause();break;case"reset":S.reset();break;case"restart":S.restart();break;case"finish":S.finish();break;case"init":S.init();break;case"setPosition":S.setPosition(parseFloat(C[0]));break;case"destroy":this.destroy(d)}}}const Ga="ng-animate-queued",Mr="ng-animate-disabled",ca=[],Wr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Oo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dr="__ng_removed";class Ya{get params(){return this.options.params}constructor(d,p=""){this.namespaceId=p;const v=d&&d.hasOwnProperty("value");if(this.value=function nl(E){return E??null}(v?d.value:d),v){const{value:S,...Z}=d;this.options=Z}else this.options={};this.options.params||(this.options.params={})}absorbOptions(d){const p=d.params;if(p){const v=this.options.params;Object.keys(p).forEach(C=>{null==v[C]&&(v[C]=p[C])})}}}const Oa="void",wa=new Ya(Oa);class tl{constructor(d,p,v){this.id=d,this.hostElement=p,this._engine=v,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+d,Ss(p,this._hostClassName)}listen(d,p,v,C){if(!this._triggers.has(p))throw function $o(E,d){return new r.wOt(3302,!1)}();if(null==v||0==v.length)throw function cs(E){return new r.wOt(3303,!1)}();if(!function Ol(E){return"start"==E||"done"==E}(v))throw function Ro(E,d){return new r.wOt(3400,!1)}();const S=wi(this._elementListeners,d,[]),Z={name:p,phase:v,callback:C};S.push(Z);const Me=wi(this._engine.statesByElement,d,new Map);return Me.has(p)||(Ss(d,_a),Ss(d,_a+"-"+p),Me.set(p,wa)),()=>{this._engine.afterFlush(()=>{const Re=S.indexOf(Z);Re>=0&&S.splice(Re,1),this._triggers.has(p)||Me.delete(p)})}}register(d,p){return!this._triggers.has(d)&&(this._triggers.set(d,p),!0)}_getTrigger(d){const p=this._triggers.get(d);if(!p)throw function vs(E){return new r.wOt(3401,!1)}();return p}trigger(d,p,v,C=!0){const S=this._getTrigger(p),Z=new Xs(this.id,p,d);let Me=this._engine.statesByElement.get(d);Me||(Ss(d,_a),Ss(d,_a+"-"+p),this._engine.statesByElement.set(d,Me=new Map));let Re=Me.get(p);const ut=new Ya(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Re&&ut.absorbOptions(Re.options),Me.set(p,ut),Re||(Re=wa),ut.value!==Oa&&Re.value===ut.value){if(!function vu(E,d){const p=Object.keys(E),v=Object.keys(d);if(p.length!=v.length)return!1;for(let C=0;C{Ui(d,zn),us(d,Bn)})}return}const Zt=wi(this._engine.playersByElement,d,[]);Zt.forEach(an=>{an.namespaceId==this.id&&an.triggerName==p&&an.queued&&an.destroy()});let qt=S.matchTransition(Re.value,ut.value,d,ut.params),cn=!1;if(!qt){if(!C)return;qt=S.fallbackTransition,cn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:p,transition:qt,fromState:Re,toState:ut,player:Z,isFallbackTransition:cn}),cn||(Ss(d,Ga),Z.onStart(()=>{Ia(d,Ga)})),Z.onDone(()=>{let an=this.players.indexOf(Z);an>=0&&this.players.splice(an,1);const zn=this._engine.playersByElement.get(d);if(zn){let Bn=zn.indexOf(Z);Bn>=0&&zn.splice(Bn,1)}}),this.players.push(Z),Zt.push(Z),Z}deregister(d){this._triggers.delete(d),this._engine.statesByElement.forEach(p=>p.delete(d)),this._elementListeners.forEach((p,v)=>{this._elementListeners.set(v,p.filter(C=>C.name!=d))})}clearElementCache(d){this._engine.statesByElement.delete(d),this._elementListeners.delete(d);const p=this._engine.playersByElement.get(d);p&&(p.forEach(v=>v.destroy()),this._engine.playersByElement.delete(d))}_signalRemovalForInnerTriggers(d,p){const v=this._engine.driver.query(d,ls,!0);v.forEach(C=>{if(C[dr])return;const S=this._engine.fetchNamespacesByElement(C);S.size?S.forEach(Z=>Z.triggerLeaveAnimation(C,p,!1,!0)):this.clearElementCache(C)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(C=>this.clearElementCache(C)))}triggerLeaveAnimation(d,p,v,C){const S=this._engine.statesByElement.get(d),Z=new Map;if(S){const Me=[];if(S.forEach((Re,ut)=>{if(Z.set(ut,Re.value),this._triggers.has(ut)){const Dt=this.trigger(d,ut,Oa,C);Dt&&Me.push(Dt)}}),Me.length)return this._engine.markElementAsRemoved(this.id,d,!0,p,Z),v&&qe(Me).onDone(()=>this._engine.processLeaveNode(d)),!0}return!1}prepareLeaveAnimationListeners(d){const p=this._elementListeners.get(d),v=this._engine.statesByElement.get(d);if(p&&v){const C=new Set;p.forEach(S=>{const Z=S.name;if(C.has(Z))return;C.add(Z);const Re=this._triggers.get(Z).fallbackTransition,ut=v.get(Z)||wa,Dt=new Ya(Oa),Nt=new Xs(this.id,Z,d);this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:Z,transition:Re,fromState:ut,toState:Dt,player:Nt,isFallbackTransition:!0})})}}removeNode(d,p){const v=this._engine;if(d.childElementCount&&this._signalRemovalForInnerTriggers(d,p),this.triggerLeaveAnimation(d,p,!0))return;let C=!1;if(v.totalAnimations){const S=v.players.length?v.playersByQueriedElement.get(d):[];if(S&&S.length)C=!0;else{let Z=d;for(;Z=Z.parentNode;)if(v.statesByElement.get(Z)){C=!0;break}}}if(this.prepareLeaveAnimationListeners(d),C)v.markElementAsRemoved(this.id,d,!1,p);else{const S=d[dr];(!S||S===Wr)&&(v.afterFlush(()=>this.clearElementCache(d)),v.destroyInnerAnimations(d),v._onRemovalComplete(d,p))}}insertNode(d,p){Ss(d,this._hostClassName)}drainQueuedTransitions(d){const p=[];return this._queue.forEach(v=>{const C=v.player;if(C.destroyed)return;const S=v.element,Z=this._elementListeners.get(S);Z&&Z.forEach(Me=>{if(Me.name==v.triggerName){const Re=ti(S,v.triggerName,v.fromState.value,v.toState.value);Re._data=d,pn(v.player,Me.phase,Re,Me.callback)}}),C.markedForDestroy?this._engine.afterFlush(()=>{C.destroy()}):p.push(v)}),this._queue=[],p.sort((v,C)=>{const S=v.transition.ast.depCount,Z=C.transition.ast.depCount;return 0==S||0==Z?S-Z:this._engine.driver.containsElement(v.element,C.element)?1:-1})}destroy(d){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,d)}}class Ks{_onRemovalComplete(d,p){this.onRemovalComplete(d,p)}constructor(d,p,v){this.bodyNode=d,this.driver=p,this._normalizer=v,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(C,S)=>{}}get queuedPlayers(){const d=[];return this._namespaceList.forEach(p=>{p.players.forEach(v=>{v.queued&&d.push(v)})}),d}createNamespace(d,p){const v=new tl(d,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(v,p):(this.newHostElements.set(p,v),this.collectEnterElement(p)),this._namespaceLookup[d]=v}_balanceNamespaceList(d,p){const v=this._namespaceList,C=this.namespacesByHostElement;if(v.length-1>=0){let Z=!1,Me=this.driver.getParentElement(p);for(;Me;){const Re=C.get(Me);if(Re){const ut=v.indexOf(Re);v.splice(ut+1,0,d),Z=!0;break}Me=this.driver.getParentElement(Me)}Z||v.unshift(d)}else v.push(d);return C.set(p,d),d}register(d,p){let v=this._namespaceLookup[d];return v||(v=this.createNamespace(d,p)),v}registerTrigger(d,p,v){let C=this._namespaceLookup[d];C&&C.register(p,v)&&this.totalAnimations++}destroy(d,p){d&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const v=this._fetchNamespace(d);this.namespacesByHostElement.delete(v.hostElement);const C=this._namespaceList.indexOf(v);C>=0&&this._namespaceList.splice(C,1),v.destroy(p),delete this._namespaceLookup[d]}))}_fetchNamespace(d){return this._namespaceLookup[d]}fetchNamespacesByElement(d){const p=new Set,v=this.statesByElement.get(d);if(v)for(let C of v.values())if(C.namespaceId){const S=this._fetchNamespace(C.namespaceId);S&&p.add(S)}return p}trigger(d,p,v,C){if(la(p)){const S=this._fetchNamespace(d);if(S)return S.trigger(p,v,C),!0}return!1}insertNode(d,p,v,C){if(!la(p))return;const S=p[dr];if(S&&S.setForRemoval){S.setForRemoval=!1,S.setForMove=!0;const Z=this.collectedLeaveElements.indexOf(p);Z>=0&&this.collectedLeaveElements.splice(Z,1)}if(d){const Z=this._fetchNamespace(d);Z&&Z.insertNode(p,v)}C&&this.collectEnterElement(p)}collectEnterElement(d){this.collectedEnterElements.push(d)}markElementAsDisabled(d,p){p?this.disabledNodes.has(d)||(this.disabledNodes.add(d),Ss(d,Mr)):this.disabledNodes.has(d)&&(this.disabledNodes.delete(d),Ia(d,Mr))}removeNode(d,p,v){if(la(p)){const C=d?this._fetchNamespace(d):null;C?C.removeNode(p,v):this.markElementAsRemoved(d,p,!1,v);const S=this.namespacesByHostElement.get(p);S&&S.id!==d&&S.removeNode(p,v)}else this._onRemovalComplete(p,v)}markElementAsRemoved(d,p,v,C,S){this.collectedLeaveElements.push(p),p[dr]={namespaceId:d,setForRemoval:C,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:S}}listen(d,p,v,C,S){return la(p)?this._fetchNamespace(d).listen(p,v,C,S):()=>{}}_buildInstruction(d,p,v,C,S){return d.transition.build(this.driver,d.element,d.fromState.value,d.toState.value,v,C,d.fromState.options,d.toState.options,p,S)}destroyInnerAnimations(d){let p=this.driver.query(d,ls,!0);p.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(d,Ba,!0),p.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(d){const p=this.playersByElement.get(d);p&&p.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(d){const p=this.playersByQueriedElement.get(d);p&&p.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(d=>{if(this.players.length)return qe(this.players).onDone(()=>d());d()})}processLeaveNode(d){const p=d[dr];if(p&&p.setForRemoval){if(d[dr]=Wr,p.namespaceId){this.destroyInnerAnimations(d);const v=this._fetchNamespace(p.namespaceId);v&&v.clearElementCache(d)}this._onRemovalComplete(d,p.setForRemoval)}d.classList?.contains(Mr)&&this.markElementAsDisabled(d,!1),this.driver.query(d,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(d=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,C)=>this._balanceNamespaceList(v,C)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],p.length?qe(p).onDone(()=>{v.forEach(C=>C())}):v.forEach(C=>C())}}reportError(d){throw function _s(E){return new r.wOt(3402,!1)}()}_flushAnimations(d,p){const v=new _n,C=[],S=new Map,Z=[],Me=new Map,Re=new Map,ut=new Map,Dt=new Set;this.disabledNodes.forEach(zi=>{Dt.add(zi);const Xi=this.driver.query(zi,".ng-animate-queued",!0);for(let ao=0;ao{const ao=ac+an++;cn.set(Xi,ao),zi.forEach(Ao=>Ss(Ao,ao))});const zn=[],Bn=new Set,vi=new Set;for(let zi=0;ziBn.add(Ao)):vi.add(Xi))}const mn=new Map,Sn=Bc(Zt,Array.from(Bn));Sn.forEach((zi,Xi)=>{const ao=Io+an++;mn.set(Xi,ao),zi.forEach(Ao=>Ss(Ao,ao))}),d.push(()=>{qt.forEach((zi,Xi)=>{const ao=cn.get(Xi);zi.forEach(Ao=>Ia(Ao,ao))}),Sn.forEach((zi,Xi)=>{const ao=mn.get(Xi);zi.forEach(Ao=>Ia(Ao,ao))}),zn.forEach(zi=>{this.processLeaveNode(zi)})});const li=[],ri=[];for(let zi=this._namespaceList.length-1;zi>=0;zi--)this._namespaceList[zi].drainQueuedTransitions(p).forEach(ao=>{const Ao=ao.player,Ts=ao.element;if(li.push(Ao),this.collectedEnterElements.length){const gs=Ts[dr];if(gs&&gs.setForMove){if(gs.previousTriggersValues&&gs.previousTriggersValues.has(ao.triggerName)){const Tl=gs.previousTriggersValues.get(ao.triggerName),va=this.statesByElement.get(ao.element);if(va&&va.has(ao.triggerName)){const k1=va.get(ao.triggerName);k1.value=Tl,va.set(ao.triggerName,k1)}}return void Ao.destroy()}}const Pc=!Nt||!this.driver.containsElement(Nt,Ts),ar=mn.get(Ts),js=cn.get(Ts),Or=this._buildInstruction(ao,v,js,ar,Pc);if(Or.errors&&Or.errors.length)return void ri.push(Or);if(Pc)return Ao.onStart(()=>Ui(Ts,Or.fromStyles)),Ao.onDestroy(()=>us(Ts,Or.toStyles)),void C.push(Ao);if(ao.isFallbackTransition)return Ao.onStart(()=>Ui(Ts,Or.fromStyles)),Ao.onDestroy(()=>us(Ts,Or.toStyles)),void C.push(Ao);const Vd=[];Or.timelines.forEach(gs=>{gs.stretchStartingKeyframe=!0,this.disabledNodes.has(gs.element)||Vd.push(gs)}),Or.timelines=Vd,v.append(Ts,Or.timelines),Z.push({instruction:Or,player:Ao,element:Ts}),Or.queriedElements.forEach(gs=>wi(Me,gs,[]).push(Ao)),Or.preStyleProps.forEach((gs,Tl)=>{if(gs.size){let va=Re.get(Tl);va||Re.set(Tl,va=new Set),gs.forEach((k1,V1)=>va.add(V1))}}),Or.postStyleProps.forEach((gs,Tl)=>{let va=ut.get(Tl);va||ut.set(Tl,va=new Set),gs.forEach((k1,V1)=>va.add(V1))})});if(ri.length){const zi=[];ri.forEach(Xi=>{zi.push(function Un(E,d){return new r.wOt(3505,!1)}())}),li.forEach(Xi=>Xi.destroy()),this.reportError(zi)}const Ri=new Map,io=new Map;Z.forEach(zi=>{const Xi=zi.element;v.has(Xi)&&(io.set(Xi,Xi),this._beforeAnimationBuild(zi.player.namespaceId,zi.instruction,Ri))}),C.forEach(zi=>{const Xi=zi.element;this._getPreviousPlayers(Xi,!1,zi.namespaceId,zi.triggerName,null).forEach(Ao=>{wi(Ri,Xi,[]).push(Ao),Ao.destroy()})});const Sr=zn.filter(zi=>ol(zi,Re,ut)),Jr=new Map;il(Jr,this.driver,vi,ut,hn.kp).forEach(zi=>{ol(zi,Re,ut)&&Sr.push(zi)});const ss=new Map;qt.forEach((zi,Xi)=>{il(ss,this.driver,new Set(zi),Re,hn.FX)}),Sr.forEach(zi=>{const Xi=Jr.get(zi),ao=ss.get(zi);Jr.set(zi,new Map([...Xi?.entries()??[],...ao?.entries()??[]]))});const Na=[],vh=[],_h={};Z.forEach(zi=>{const{element:Xi,player:ao,instruction:Ao}=zi;if(v.has(Xi)){if(Dt.has(Xi))return ao.onDestroy(()=>us(Xi,Ao.toStyles)),ao.disabled=!0,ao.overrideTotalTime(Ao.totalTime),void C.push(ao);let Ts=_h;if(io.size>1){let ar=Xi;const js=[];for(;ar=ar.parentNode;){const Or=io.get(ar);if(Or){Ts=Or;break}js.push(ar)}js.forEach(Or=>io.set(Or,Ts))}const Pc=this._buildAnimation(ao.namespaceId,Ao,Ri,S,ss,Jr);if(ao.setRealPlayer(Pc),Ts===_h)Na.push(ao);else{const ar=this.playersByElement.get(Ts);ar&&ar.length&&(ao.parentPlayer=qe(ar)),C.push(ao)}}else Ui(Xi,Ao.fromStyles),ao.onDestroy(()=>us(Xi,Ao.toStyles)),vh.push(ao),Dt.has(Xi)&&C.push(ao)}),vh.forEach(zi=>{const Xi=S.get(zi.element);if(Xi&&Xi.length){const ao=qe(Xi);zi.setRealPlayer(ao)}}),C.forEach(zi=>{zi.parentPlayer?zi.syncPlayerEvents(zi.parentPlayer):zi.destroy()});for(let zi=0;zi!Pc.destroyed);Ts.length?gu(this,Xi,Ts):this.processLeaveNode(Xi)}return zn.length=0,Na.forEach(zi=>{this.players.push(zi),zi.onDone(()=>{zi.destroy();const Xi=this.players.indexOf(zi);this.players.splice(Xi,1)}),zi.play()}),Na}afterFlush(d){this._flushFns.push(d)}afterFlushAnimationsDone(d){this._whenQuietFns.push(d)}_getPreviousPlayers(d,p,v,C,S){let Z=[];if(p){const Me=this.playersByQueriedElement.get(d);Me&&(Z=Me)}else{const Me=this.playersByElement.get(d);if(Me){const Re=!S||S==Oa;Me.forEach(ut=>{ut.queued||!Re&&ut.triggerName!=C||Z.push(ut)})}}return(v||C)&&(Z=Z.filter(Me=>!(v&&v!=Me.namespaceId||C&&C!=Me.triggerName))),Z}_beforeAnimationBuild(d,p,v){const S=p.element,Z=p.isRemovalTransition?void 0:d,Me=p.isRemovalTransition?void 0:p.triggerName;for(const Re of p.timelines){const ut=Re.element,Dt=ut!==S,Nt=wi(v,ut,[]);this._getPreviousPlayers(ut,Dt,Z,Me,p.toState).forEach(qt=>{const cn=qt.getRealPlayer();cn.beforeDestroy&&cn.beforeDestroy(),qt.destroy(),Nt.push(qt)})}Ui(S,p.fromStyles)}_buildAnimation(d,p,v,C,S,Z){const Me=p.triggerName,Re=p.element,ut=[],Dt=new Set,Nt=new Set,Zt=p.timelines.map(cn=>{const an=cn.element;Dt.add(an);const zn=an[dr];if(zn&&zn.removedBeforeQueried)return new hn.sf(cn.duration,cn.delay);const Bn=an!==Re,vi=function qu(E){const d=[];return Vs(E,d),d}((v.get(an)||ca).map(Ri=>Ri.getRealPlayer())).filter(Ri=>!!Ri.element&&Ri.element===an),mn=S.get(an),Sn=Z.get(an),li=gt(this._normalizer,cn.keyframes,mn,Sn),ri=this._buildPlayer(cn,li,vi);if(cn.subTimeline&&C&&Nt.add(an),Bn){const Ri=new Xs(d,Me,an);Ri.setRealPlayer(ri),ut.push(Ri)}return ri});ut.forEach(cn=>{wi(this.playersByQueriedElement,cn.element,[]).push(cn),cn.onDone(()=>function mu(E,d,p){let v=E.get(d);if(v){if(v.length){const C=v.indexOf(p);v.splice(C,1)}0==v.length&&E.delete(d)}return v}(this.playersByQueriedElement,cn.element,cn))}),Dt.forEach(cn=>Ss(cn,aa));const qt=qe(Zt);return qt.onDestroy(()=>{Dt.forEach(cn=>Ia(cn,aa)),us(Re,p.toStyles)}),Nt.forEach(cn=>{wi(C,cn,[]).push(qt)}),qt}_buildPlayer(d,p,v){return p.length>0?this.driver.animate(d.element,p,d.duration,d.delay,d.easing,v):new hn.sf(d.duration,d.delay)}}class Xs{constructor(d,p,v){this.namespaceId=d,this.triggerName=p,this.element=v,this._player=new hn.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(d){this._containsRealPlayer||(this._player=d,this._queuedCallbacks.forEach((p,v)=>{p.forEach(C=>pn(d,v,void 0,C))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(d.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(d){this.totalTime=d}syncPlayerEvents(d){const p=this._player;p.triggerCallback&&d.onStart(()=>p.triggerCallback("start")),d.onDone(()=>this.finish()),d.onDestroy(()=>this.destroy())}_queueEvent(d,p){wi(this._queuedCallbacks,d,[]).push(p)}onDone(d){this.queued&&this._queueEvent("done",d),this._player.onDone(d)}onStart(d){this.queued&&this._queueEvent("start",d),this._player.onStart(d)}onDestroy(d){this.queued&&this._queueEvent("destroy",d),this._player.onDestroy(d)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(d){this.queued||this._player.setPosition(d)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(d){const p=this._player;p.triggerCallback&&p.triggerCallback(d)}}function la(E){return E&&1===E.nodeType}function Wa(E,d){const p=E.style.display;return E.style.display=d??"none",p}function il(E,d,p,v,C){const S=[];p.forEach(Re=>S.push(Wa(Re)));const Z=[];v.forEach((Re,ut)=>{const Dt=new Map;Re.forEach(Nt=>{const Zt=d.computeStyle(ut,Nt,C);Dt.set(Nt,Zt),(!Zt||0==Zt.length)&&(ut[dr]=Oo,Z.push(ut))}),E.set(ut,Dt)});let Me=0;return p.forEach(Re=>Wa(Re,S[Me++])),Z}function Bc(E,d){const p=new Map;if(E.forEach(Me=>p.set(Me,[])),0==d.length)return p;const C=new Set(d),S=new Map;function Z(Me){if(!Me)return 1;let Re=S.get(Me);if(Re)return Re;const ut=Me.parentNode;return Re=p.has(ut)?ut:C.has(ut)?1:Z(ut),S.set(Me,Re),Re}return d.forEach(Me=>{const Re=Z(Me);1!==Re&&p.get(Re).push(Me)}),p}function Ss(E,d){E.classList?.add(d)}function Ia(E,d){E.classList?.remove(d)}function gu(E,d,p){qe(p).onDone(()=>E.processLeaveNode(d))}function Vs(E,d){for(let p=0;pC.add(S)):d.set(E,v),p.delete(E),!0}class F{constructor(d,p,v){this._driver=p,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(C,S)=>{},this._transitionEngine=new Ks(d.body,p,v),this._timelineEngine=new dc(d.body,p,v),this._transitionEngine.onRemovalComplete=(C,S)=>this.onRemovalComplete(C,S)}registerTrigger(d,p,v,C,S){const Z=d+"-"+C;let Me=this._triggerCache[Z];if(!Me){const Re=[],Dt=Fe(this._driver,S,Re,[]);if(Re.length)throw function gr(E,d){return new r.wOt(3404,!1)}();Me=function ns(E,d,p){return new fo(E,d,p)}(C,Dt,this._normalizer),this._triggerCache[Z]=Me}this._transitionEngine.registerTrigger(p,C,Me)}register(d,p){this._transitionEngine.register(d,p)}destroy(d,p){this._transitionEngine.destroy(d,p)}onInsert(d,p,v,C){this._transitionEngine.insertNode(d,p,v,C)}onRemove(d,p,v){this._transitionEngine.removeNode(d,p,v)}disableAnimations(d,p){this._transitionEngine.markElementAsDisabled(d,p)}process(d,p,v,C){if("@"==v.charAt(0)){const[S,Z]=Zi(v);this._timelineEngine.command(S,p,Z,C)}else this._transitionEngine.trigger(d,p,v,C)}listen(d,p,v,C,S){if("@"==v.charAt(0)){const[Z,Me]=Zi(v);return this._timelineEngine.listen(Z,p,Me,S)}return this._transitionEngine.listen(d,p,v,C,S)}flush(d=-1){this._transitionEngine.flush(d)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(d){this._transitionEngine.afterFlushAnimationsDone(d)}}class B{static#e=this.initialStylesByElement=new WeakMap;constructor(d,p,v){this._element=d,this._startStyles=p,this._endStyles=v,this._state=0;let C=B.initialStylesByElement.get(d);C||B.initialStylesByElement.set(d,C=new Map),this._initialStyles=C}start(){this._state<1&&(this._startStyles&&us(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(us(this._element,this._initialStyles),this._endStyles&&(us(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(B.initialStylesByElement.delete(this._element),this._startStyles&&(Ui(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ui(this._element,this._endStyles),this._endStyles=null),us(this._element,this._initialStyles),this._state=3)}}function he(E){let d=null;return E.forEach((p,v)=>{(function Ye(E){return"display"===E||"position"===E})(v)&&(d=d||new Map,d.set(v,p))}),d}class Et{constructor(d,p,v,C){this.element=d,this.keyframes=p,this.options=v,this._specialStyles=C,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=v.duration,this._delay=v.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const d=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,d,this.options),this._finalKeyframe=d.length?d[d.length-1]:new Map;const p=()=>this._onFinish();this.domPlayer.addEventListener("finish",p),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",p)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(d){const p=[];return d.forEach(v=>{p.push(Object.fromEntries(v))}),p}_triggerWebAnimation(d,p,v){return d.animate(this._convertKeyframesToObject(p),v)}onStart(d){this._originalOnStartFns.push(d),this._onStartFns.push(d)}onDone(d){this._originalOnDoneFns.push(d),this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(d=>d()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(d=>d()),this._onDestroyFns=[])}setPosition(d){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=d*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const d=new Map;this.hasStarted()&&this._finalKeyframe.forEach((v,C)=>{"offset"!==C&&d.set(C,this._finished?v:Rs(this.element,C))}),this.currentSnapshot=d}triggerCallback(d){const p="start"===d?this._onStartFns:this._onDoneFns;p.forEach(v=>v()),p.length=0}}class Wt{validateStyleProperty(d){return!0}validateAnimatableStyleProperty(d){return!0}containsElement(d,p){return Ct(d,p)}getParentElement(d){return bi(d)}query(d,p,v){return sn(d,p,v)}computeStyle(d,p,v){return Rs(d,p)}animate(d,p,v,C,S,Z=[]){const Re={duration:v,delay:C,fill:0==C?"both":"forwards"};S&&(Re.easing=S);const ut=new Map,Dt=Z.filter(qt=>qt instanceof Et);(function el(E,d){return 0===E||0===d})(v,C)&&Dt.forEach(qt=>{qt.currentSnapshot.forEach((cn,an)=>ut.set(an,cn))});let Nt=function cc(E){return E.length?E[0]instanceof Map?E:E.map(d=>new Map(Object.entries(d))):[]}(p).map(qt=>new Map(qt));Nt=function fu(E,d,p){if(p.size&&d.length){let v=d[0],C=[];if(p.forEach((S,Z)=>{v.has(Z)||C.push(Z),v.set(Z,S)}),C.length)for(let S=1;SZ.set(Me,Rs(E,Me)))}}return d}(d,Nt,ut);const Zt=function ue(E,d){let p=null,v=null;return Array.isArray(d)&&d.length?(p=he(d[0]),d.length>1&&(v=he(d[d.length-1]))):d instanceof Map&&(p=he(d)),p||v?new B(E,p,v):null}(d,Nt);return new Et(d,Nt,Re,Zt)}}const Qi="@.disabled";class Ji{constructor(d,p,v,C){this.namespaceId=d,this.delegate=p,this.engine=v,this._onDestroy=C,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(d){this.delegate.destroyNode?.(d)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(d,p){return this.delegate.createElement(d,p)}createComment(d){return this.delegate.createComment(d)}createText(d){return this.delegate.createText(d)}appendChild(d,p){this.delegate.appendChild(d,p),this.engine.onInsert(this.namespaceId,p,d,!1)}insertBefore(d,p,v,C=!0){this.delegate.insertBefore(d,p,v),this.engine.onInsert(this.namespaceId,p,d,C)}removeChild(d,p,v){this.engine.onRemove(this.namespaceId,p,this.delegate)}selectRootElement(d,p){return this.delegate.selectRootElement(d,p)}parentNode(d){return this.delegate.parentNode(d)}nextSibling(d){return this.delegate.nextSibling(d)}setAttribute(d,p,v,C){this.delegate.setAttribute(d,p,v,C)}removeAttribute(d,p,v){this.delegate.removeAttribute(d,p,v)}addClass(d,p){this.delegate.addClass(d,p)}removeClass(d,p){this.delegate.removeClass(d,p)}setStyle(d,p,v,C){this.delegate.setStyle(d,p,v,C)}removeStyle(d,p,v){this.delegate.removeStyle(d,p,v)}setProperty(d,p,v){"@"==p.charAt(0)&&p==Qi?this.disableAnimations(d,!!v):this.delegate.setProperty(d,p,v)}setValue(d,p){this.delegate.setValue(d,p)}listen(d,p,v){return this.delegate.listen(d,p,v)}disableAnimations(d,p){this.engine.disableAnimations(d,p)}}class Yo extends Ji{constructor(d,p,v,C,S){super(p,v,C,S),this.factory=d,this.namespaceId=p}setProperty(d,p,v){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Qi?this.disableAnimations(d,v=void 0===v||!!v):this.engine.process(this.namespaceId,d,p.slice(1),v):this.delegate.setProperty(d,p,v)}listen(d,p,v){if("@"==p.charAt(0)){const C=function Os(E){switch(E){case"body":return document.body;case"document":return document;case"window":return window;default:return E}}(d);let S=p.slice(1),Z="";return"@"!=S.charAt(0)&&([S,Z]=function Ur(E){const d=E.indexOf(".");return[E.substring(0,d),E.slice(d+1)]}(S)),this.engine.listen(this.namespaceId,C,S,Z,Me=>{this.factory.scheduleListenerCallback(Me._data||-1,v,Me)})}return this.delegate.listen(d,p,v)}}class oo{constructor(d,p,v){this.delegate=d,this.engine=p,this._zone=v,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,p.onRemovalComplete=(C,S)=>{const Z=S?.parentNode(C);Z&&S.removeChild(Z,C)}}createRenderer(d,p){const C=this.delegate.createRenderer(d,p);if(!d||!p?.data?.animation){const ut=this._rendererCache;let Dt=ut.get(C);return Dt||(Dt=new Ji("",C,this.engine,()=>ut.delete(C)),ut.set(C,Dt)),Dt}const S=p.id,Z=p.id+"-"+this._currentId;this._currentId++,this.engine.register(Z,d);const Me=ut=>{Array.isArray(ut)?ut.forEach(Me):this.engine.registerTrigger(S,Z,d,ut.name,ut)};return p.data.animation.forEach(Me),new Yo(this,Z,C,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(d,p,v){if(d>=0&&dp(v));const C=this._animationCallbacksBuffer;0==C.length&&queueMicrotask(()=>{this._zone.run(()=>{C.forEach(S=>{const[Z,Me]=S;Z(Me)}),this._animationCallbacksBuffer=[]})}),C.push([p,v])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}let Lo=(()=>{class E extends F{constructor(p,v,C){super(p,v,C)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(v){return new(v||E)(r.KVO($e.qQ),r.KVO(jo),r.KVO(Fi))};static#t=this.\u0275prov=r.jDH({token:E,factory:E.\u0275fac})}return E})();const Cr=[{provide:Fi,useFactory:function yr(){return new Ca}},{provide:F,useClass:Lo},{provide:r._9s,useFactory:function Ta(E,d,p){return new oo(E,d,p)},deps:[t.B7,F,r.SKi]}],wl=[{provide:jo,useFactory:()=>new Wt},{provide:r.bc$,useValue:"BrowserAnimations"},...Cr],Il=[{provide:jo,useClass:ho},{provide:r.bc$,useValue:"NoopAnimations"},...Cr];let xl=(()=>{class E{static withConfig(p){return{ngModule:E,providers:p.disableAnimations?Il:wl}}static#e=this.\u0275fac=function(v){return new(v||E)};static#t=this.\u0275mod=r.$C({type:E});static#n=this.\u0275inj=r.G2t({providers:wl,imports:[t.Bb]})}return E})();a(8167);const pd=[{name:"adminFullcolor",data:''},{name:"assertionFullcolor",data:''},{name:"clinicaltrialFullcolor",data:''},{name:"queueFullcolor",data:''},{name:"commentFullcolor",data:''},{name:"coordinatesystemFullcolor",data:''},{name:"curatorFullcolor",data:''},{name:"diseaseFullcolor",data:''},{name:"editorFullcolor",data:''},{name:"eventFullcolor",data:''},{name:"evidenceitemFullcolor",data:''},{name:"evidenceFullcolor",data:''},{name:"flagFullcolor",data:''},{name:"featureFullcolor",data:''},{name:"therapyFullcolor",data:''},{name:"molecularprofileFullcolor",data:''},{name:"organizationFullcolor",data:''},{name:"phenotypeFullcolor",data:''},{name:"revisionFullcolor",data:''},{name:"sourceFullcolor",data:''},{name:"userFullcolor",data:''},{name:"variant",data:''},{name:"variantgroupFullcolor",data:''},{name:"varianttypeFullcolor",data:''}],Pu=function ea(E){const d=[];return E.forEach(p=>{const v={name:v1(p.name),theme:Jl(p.name),icon:p.data};d.push(v)}),d}([{name:"adminOutline",data:''},{name:"adminTwotone",data:''},{name:"adverseresponseOutline",data:''},{name:"assertionOutline",data:''},{name:"assertionTwotone",data:''},{name:"benignOutline",data:''},{name:"betteroutcomeOutline",data:''},{name:"clinicaltrialOutline",data:''},{name:"clinicaltrialTwotone",data:''},{name:"queueOutline",data:''},{name:"queueTwotone",data:''},{name:"combinationOutline",data:''},{name:"combinedOutline",data:''},{name:"commentOutline",data:''},{name:"commentTwotone",data:''},{name:"commongermlineOutline",data:''},{name:"coordinatesystemOutline",data:''},{name:"coordinatesystemTwotone",data:''},{name:"curatorOutline",data:''},{name:"curatorTwotone",data:''},{name:"diagnosticOutline",data:''},{name:"diseaseOutline",data:''},{name:"diseaseTwotone",data:''},{name:"doesnotsupportOutline",data:''},{name:"dominantnegativeOutline",data:''},{name:"editorOutline",data:''},{name:"editorTwotone",data:''},{name:"eventOutline",data:''},{name:"eventTwotone",data:''},{name:"evidenceOutline",data:''},{name:"evidenceTwotone",data:''},{name:"evidenceitemOutline",data:''},{name:"evidenceitemTwotone",data:''},{name:"flagOutline",data:''},{name:"flagTwotone",data:''},{name:"functionalOutline",data:''},{name:"gainoffunctionOutline",data:''},{name:"featureOutline",data:''},{name:"featureTwotone",data:''},{name:"levelaOutline",data:''},{name:"levelbOutline",data:''},{name:"levelcOutline",data:''},{name:"leveldOutline",data:''},{name:"leveleOutline",data:''},{name:"therapyOutline",data:''},{name:"therapyTwotone",data:''},{name:"likelybenignOutline",data:''},{name:"likelypathogenicOutline",data:''},{name:"lossoffunctionOutline",data:''},{name:"molecularprofileOutline",data:''},{name:"molecularprofileTwotone",data:''},{name:"naOutline",data:''},{name:"negativeOutline",data:''},{name:"neomorphicOutline",data:''},{name:"oncogenicOutline",data:''},{name:"oncogenictypeOutline",data:''},{name:"oncogenicsignificanceOutline",data:''},{name:"oncogenicityOutline",data:''},{name:"orcid",data:''},{name:"organizationOutline",data:''},{name:"organizationTwotone",data:''},{name:"pathogenicOutline",data:''},{name:"phenotypeOutline",data:''},{name:"phenotypeTwotone",data:''},{name:"pooroutcomeOutline",data:''},{name:"positiveOutline",data:''},{name:"predictiveOutline",data:''},{name:"predisposingOutline",data:''},{name:"predispositionOutline",data:''},{name:"prognosticOutline",data:''},{name:"protectivenessOutline",data:''},{name:"raregermlineOutline",data:''},{name:"rating1Outline",data:''},{name:"rating2Outline",data:''},{name:"rating3Outline",data:''},{name:"rating4Outline",data:''},{name:"rating5Outline",data:''},{name:"reducedsensitivityOutline",data:''},{name:"resistanceOutline",data:''},{name:"revisionOutline",data:''},{name:"revisionTwotone",data:''},{name:"sensitivityresponseOutline",data:''},{name:"sequentialOutline",data:''},{name:"somaticOutline",data:''},{name:"sourceOutline",data:''},{name:"sourceTwotone",data:''},{name:"substitutesOutline",data:''},{name:"supportsOutline",data:''},{name:"unalteredfunctionOutline",data:''},{name:"uncertainsignificanceOutline",data:''},{name:"unknownOutline",data:''},{name:"userOutline",data:''},{name:"userTwotone",data:''},{name:"variantOutline",data:''},{name:"variantTwotone",data:''},{name:"variantgroupOutline",data:''},{name:"variantgroupTwotone",data:''},{name:"varianttypeOutline",data:''},{name:"varianttypeTwotone",data:''}]);function v1(E){return"civic-"+function U1(E){return E.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}(E.replace(/Outline|Fill|TwoTone/i,""))}function Jl(E){return E.includes("Twotone")?"twotone":E.includes("Outline")?"outline":E.includes("Fill")?"fill":"outline"}var _1=a(776),ta=a(6914),bc=a(1188);const ql=[{path:"",loadChildren:()=>a.e(1017).then(a.bind(a,1017)).then(E=>E.LayoutModule)}],Zl={paramsInheritanceStrategy:"always",anchorScrolling:"enabled",scrollOffset:[0,64],onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"};let Fu=(()=>{class E{static#e=this.\u0275fac=function(v){return new(v||E)};static#t=this.\u0275mod=r.$C({type:E});static#n=this.\u0275inj=r.G2t({imports:[bc.iI.forRoot(ql,Zl),bc.iI]})}return E})();var pa=a(5312),ro=a(5103),eu=a(4222),tu=a(2096),y1=a(3801),fd=a(3617),C1=a(513),md=a(6389),gd=a(5930),b1=a(1774);const Tc=E=>({error:E});function vd(E,d){if(1&E&&r.EFF(0),2&E){const p=r.XpG().ngIf;r.Lme(" ",p.name," ",p.message," ")}}function _d(E,d){1&E&&r.eu8(0)}function yd(E,d){if(1&E&&r.DNE(0,_d,1,0,"ng-container",8),2&E){const p=r.XpG().ngIf,v=r.sdS(7);r.Y8G("ngTemplateOutlet",v)("ngTemplateOutletContext",r.eq3(2,Tc,p))}}function Cd(E,d){if(1&E){const p=r.RV6();r.j41(0,"button",10),r.bIt("click",function(){r.eBV(p);const C=r.XpG().error;r.XpG();const S=r.sdS(9),Z=r.sdS(11),Me=r.XpG();return r.Njj(Me.showModal("Backtrace for '"+C.message+"'",C.backtrace,Z,S))}),r.EFF(1," View Backtrace "),r.k0s()}}function bd(E,d){if(1&E&&(r.EFF(0),r.DNE(1,Cd,2,0,"button",9)),2&E){const p=d.error;r.SpI(" ",p.message," "),r.R7$(),r.Y8G("ngIf",p.backtrace.length>0)}}function kn(E,d){if(1&E&&(r.j41(0,"pre",11),r.EFF(1),r.k0s()),2&E){const p=d.$implicit;r.R7$(),r.JRh(p.backtrace)}}function Co(E,d){if(1&E){const p=r.RV6();r.j41(0,"button",12),r.bIt("click",function(){r.eBV(p);const C=r.XpG(2);return r.Njj(C.copyToClipboard())}),r.EFF(1," Copy to Clipboard "),r.k0s(),r.j41(2,"button",13),r.bIt("click",function(){const C=r.eBV(p).modalRef,S=r.XpG(2);return r.Njj(S.hideModal(C))}),r.EFF(3," OK "),r.k0s()}}function T1(E,d){if(1&E){const p=r.RV6();r.j41(0,"div",6)(1,"nz-alert",7),r.bIt("nzOnClose",function(){r.eBV(p);const C=r.XpG();return r.Njj(C.onClose())}),r.k0s(),r.DNE(2,vd,1,2,"ng-template",null,0,r.C5r)(4,yd,1,4,"ng-template",null,1,r.C5r)(6,bd,2,2,"ng-template",null,2,r.C5r)(8,kn,2,1,"ng-template",null,3,r.C5r)(10,Co,4,0,"ng-template",null,4,r.C5r),r.k0s()}if(2&E){const p=r.sdS(3),v=r.sdS(5);r.R7$(),r.Y8G("nzMessage",p)("nzDescription",v)}}let E1=(()=>{class E{constructor(p,v,C){this.modal=v,this.clipboard=C,this.modalVisible=!1,this.errors=p}showModal(p,v,C,S){this.modalContent=v.join("\n"),this.modal.create({nzTitle:p,nzFooter:C,nzContent:S,nzWidth:800,nzBodyStyle:{"max-height":"500px",overflow:"hidden","overflow-y":"scroll"},nzClosable:!0,nzOkDisabled:!0,nzCancelDisabled:!0,nzData:{backtrace:this.modalContent}})}hideModal(p){p.destroy()}onClose(){this.errors.clearErrors()}copyToClipboard(){this.clipboard.copy(this.modalContent)}static#e=this.\u0275fac=function(v){return new(v||E)(r.rXU(eu.N),r.rXU(tu.N_),r.rXU(y1.B0))};static#t=this.\u0275cmp=r.VBU({type:E,selectors:[["cvc-network-error-alert"]],decls:2,vars:3,consts:[["alertMessage",""],["alertDescription",""],["errorDisplay",""],["modalContent",""],["modalFooter",""],["class","alert-container",4,"ngIf"],[1,"alert-container"],["nzBanner","","nzType","error","nzCloseable","",3,"nzOnClose","nzMessage","nzDescription"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-button","","nzSize","small","nzType","link",3,"click",4,"ngIf"],["nz-button","","nzSize","small","nzType","link",3,"click"],[2,"white-space","pre-wrap","font-size","80%"],["nz-button","","nzType","default",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(v,C){1&v&&(r.DNE(0,T1,12,2,"div",5),r.nI1(1,"ngrxPush")),2&v&&r.Y8G("ngIf",r.bMT(1,1,C.errors.networkError$))},dependencies:[$e.bT,$e.T3,fd.Y,C1.aO,md.c,gd.p,b1.L9],styles:["[_nghost-%COMP%]{display:block}.alert-container[_ngcontent-%COMP%]{display:block;width:100%;padding:12px 24px}[_nghost-%COMP%] nz-alert .ant-alert-banner{border-radius:8px;border:2px solid #cf1322}.error-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 2em}"],changeDetection:0})}return E})(),Uo=(()=>{class E{constructor(p,v){this.iconService=p,this.router=v,this.addIcons(pd),pa.c.production&&this.router.events.subscribe(C=>{C instanceof bc.wF&>ag("config","UA-60119642-1",{page_path:C.urlAfterRedirects})})}addIcons(p){p.forEach(v=>{const S="civic:"+v.name.replace(/Fullcolor/i,"");this.iconService.addIconLiteral(S,v.data)})}static#e=this.\u0275fac=function(v){return new(v||E)(r.rXU(ro.Rt),r.rXU(bc.Ix))};static#t=this.\u0275cmp=r.VBU({type:E,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"alert-container"],[1,"app-container"]],template:function(v,C){1&v&&(r.j41(0,"div",0),r.nrm(1,"cvc-network-error-alert"),r.k0s(),r.j41(2,"div",1),r.nrm(3,"router-outlet"),r.k0s())},dependencies:[bc.n3,E1],styles:["[_nghost-%COMP%] nz-descriptions[nzLayout=horizontal] .ant-descriptions-item-label{text-align:right}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-label{font-weight:550}[_nghost-%COMP%] nz-descriptions .ant-descriptions-header{margin-top:4px;margin-bottom:4px;padding-left:8px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-title{font-weight:500;color:#00000073;font-size:12px}[_nghost-%COMP%] nz-descriptions .ant-descriptions-item-content p:last-of-type{margin-bottom:0}.alert-container[_ngcontent-%COMP%]{position:absolute;z-index:100;width:100%}.app-container[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;z-index:0;overflow-y:auto}"]})}return E})();var Ec=a(8008),mi=a(4626),rr=a(1404),zc=a(2081),Wc=a(9860),fl=a(6108),Au=a(2151),ml=a(7994),Ea=a(1115),z1=a(9055),Ru=a(8782),bs=a(9471),za=function(){function E(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,zc.LV)(fl.ct,{max:Au.v["cache.fragmentQueryDocuments"]||1e3,cache:z1.l})}return E.prototype.batch=function(d){var C,p=this;return this.performTransaction(function(){return C=d.update(p)},"string"==typeof d.optimistic?d.optimistic:!1===d.optimistic?null:void 0),C},E.prototype.recordOptimisticTransaction=function(d,p){this.performTransaction(d,p)},E.prototype.transformDocument=function(d){return d},E.prototype.transformForLink=function(d){return d},E.prototype.identify=function(d){},E.prototype.gc=function(){return[]},E.prototype.modify=function(d){return!1},E.prototype.readQuery=function(d,p){return void 0===p&&(p=!!d.optimistic),this.read((0,mi.Cl)((0,mi.Cl)({},d),{rootId:d.id||"ROOT_QUERY",optimistic:p}))},E.prototype.watchFragment=function(d){var Nt,p=this,v=d.fragment,C=d.fragmentName,S=d.from,Z=d.optimistic,Me=void 0===Z||Z,Re=(0,mi.Tt)(d,["fragment","fragmentName","from","optimistic"]),ut=this.getFragmentDoc(v,C),Dt=(0,mi.Cl)((0,mi.Cl)({},Re),{returnPartialData:!0,id:"string"==typeof S?S:this.identify(S),query:ut,optimistic:Me});return new ml.c(function(Zt){return p.watch((0,mi.Cl)((0,mi.Cl)({},Dt),{immediate:!0,callback:function(qt){if(!Nt||!(0,bs.a)(ut,{data:Nt?.result},{data:qt.result})){var cn={data:qt.result,complete:!!qt.complete};qt.missing&&(cn.missing=(0,Ea.IM)(qt.missing.map(function(an){return an.missing}))),Nt=qt,Zt.next(cn)}}}))})},E.prototype.readFragment=function(d,p){return void 0===p&&(p=!!d.optimistic),this.read((0,mi.Cl)((0,mi.Cl)({},d),{query:this.getFragmentDoc(d.fragment,d.fragmentName),rootId:d.id,optimistic:p}))},E.prototype.writeQuery=function(d){var p=d.id,v=d.data,C=(0,mi.Tt)(d,["id","data"]);return this.write(Object.assign(C,{dataId:p||"ROOT_QUERY",result:v}))},E.prototype.writeFragment=function(d){var p=d.id,v=d.data,C=d.fragment,S=d.fragmentName,Z=(0,mi.Tt)(d,["id","data","fragment","fragmentName"]);return this.write(Object.assign(Z,{query:this.getFragmentDoc(C,S),dataId:p,result:v}))},E.prototype.updateQuery=function(d,p){return this.batch({update:function(v){var C=v.readQuery(d),S=p(C);return null==S?C:(v.writeQuery((0,mi.Cl)((0,mi.Cl)({},d),{data:S})),S)}})},E.prototype.updateFragment=function(d,p){return this.batch({update:function(v){var C=v.readFragment(d),S=p(C);return null==S?C:(v.writeFragment((0,mi.Cl)((0,mi.Cl)({},d),{data:S})),S)}})},E}();!1!==globalThis.__DEV__&&(za.prototype.getMemoryInternals=Ru.tQ);var Nu=function(E){function d(p,v,C,S){var Z,Me=E.call(this,p)||this;if(Me.message=p,Me.path=v,Me.query=C,Me.variables=S,Array.isArray(Me.path)){Me.missing=Me.message;for(var Re=Me.path.length-1;Re>=0;--Re)Me.missing=((Z={})[Me.path[Re]]=Me.missing,Z)}else Me.missing=Me.path;return Me.__proto__=d.prototype,Me}return(0,mi.C6)(d,E),d}(Error),fa=a(8926),ma=a(1601),gl=a(2130),M1=a(1658),no=a(1367),D1=a(1955),Mc=a(6500),nu=a(120),Ja=a(4229),Kc=a(4183),ws=a(1181);function iu(E){return!1!==globalThis.__DEV__&&function S1(E){var d=new Set([E]);return d.forEach(function(p){(0,ws.U)(p)&&function ku(E){if(!1!==globalThis.__DEV__&&!Object.isFrozen(E))try{Object.freeze(E)}catch(d){if(d instanceof TypeError)return null;throw d}return E}(p)===p&&Object.getOwnPropertyNames(p).forEach(function(v){(0,ws.U)(p[v])&&d.add(p[v])})}),E}(E),E}var vl=a(4420),mr=a(7715),Ar=Object.prototype.hasOwnProperty;function Dc(E){return null==E}function O1(E,d){var p=E.__typename,v=E.id,C=E._id;if("string"==typeof p&&(d&&(d.keyObject=Dc(v)?Dc(C)?void 0:{_id:C}:{id:v}),Dc(v)&&!Dc(C)&&(v=C),!Dc(v)))return"".concat(p,":").concat("number"==typeof v||"string"==typeof v?v:JSON.stringify(v))}var Xr={dataIdFromObject:O1,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Zo(E){var d=E.canonizeResults;return void 0===d?Xr.canonizeResults:d}var I1=/^[_a-z][_0-9a-z]*/i;function qa(E){var d=E.match(I1);return d?d[0]:E}function Vu(E,d,p){return!!(0,ws.U)(d)&&((0,mr.c)(d)?d.every(function(v){return Vu(E,v,p)}):E.selections.every(function(v){if((0,no.dt)(v)&&(0,Kc.MS)(v,p)){var C=(0,no.ue)(v);return Ar.call(d,C)&&(!v.selectionSet||Vu(v.selectionSet,d[C],p))}return!0}))}function Oc(E){return(0,ws.U)(E)&&!(0,no.A_)(E)&&!(0,mr.c)(E)}function Xc(E,d){var p=(0,fl.JG)((0,Ja.zK)(E));return{fragmentMap:p,lookupFragment:function(v){var C=p[v];return!C&&d&&(C=d.lookup(v)),C||null}}}var E,d,Hs=Object.create(null),Lu=function(){return Hs},_l=Object.create(null),xa=function(){function E(d,p){var v=this;this.policies=d,this.group=p,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(C,S){return iu((0,no.A_)(C)?v.get(C.__ref,S):C&&C[S])},this.canRead=function(C){return(0,no.A_)(C)?v.has(C.__ref):"object"==typeof C},this.toReference=function(C,S){if("string"==typeof C)return(0,no.WU)(C);if((0,no.A_)(C))return C;var Z=v.policies.identify(C)[0];if(Z){var Me=(0,no.WU)(Z);return S&&v.merge(Z,C),Me}}}return E.prototype.toObject=function(){return(0,mi.Cl)({},this.data)},E.prototype.has=function(d){return void 0!==this.lookup(d,!0)},E.prototype.get=function(d,p){if(this.group.depend(d,p),Ar.call(this.data,d)){var v=this.data[d];if(v&&Ar.call(v,p))return v[p]}return"__typename"===p&&Ar.call(this.policies.rootTypenamesById,d)?this.policies.rootTypenamesById[d]:this instanceof Pa?this.parent.get(d,p):void 0},E.prototype.lookup=function(d,p){return p&&this.group.depend(d,"__exists"),Ar.call(this.data,d)?this.data[d]:this instanceof Pa?this.parent.lookup(d,p):this.policies.rootTypenamesById[d]?Object.create(null):void 0},E.prototype.merge=function(d,p){var C,v=this;(0,no.A_)(d)&&(d=d.__ref),(0,no.A_)(p)&&(p=p.__ref);var S="string"==typeof d?this.lookup(C=d):d,Z="string"==typeof p?this.lookup(C=p):p;if(Z){(0,rr.V1)("string"==typeof C,1);var Me=new Ea.ZI(Qc).merge(S,Z);if(this.data[C]=Me,Me!==S&&(delete this.refs[C],this.group.caching)){var Re=Object.create(null);S||(Re.__exists=1),Object.keys(Z).forEach(function(ut){if(!S||S[ut]!==Me[ut]){Re[ut]=1;var Dt=qa(ut);Dt!==ut&&!v.policies.hasKeyArgs(Me.__typename,Dt)&&(Re[Dt]=1),void 0===Me[ut]&&!(v instanceof Pa)&&delete Me[ut]}}),Re.__typename&&!(S&&S.__typename)&&this.policies.rootTypenamesById[C]===Me.__typename&&delete Re.__typename,Object.keys(Re).forEach(function(ut){return v.group.dirty(C,ut)})}}},E.prototype.modify=function(d,p){var v=this,C=this.lookup(d);if(C){var S=Object.create(null),Z=!1,Me=!0,Re={DELETE:Hs,INVALIDATE:_l,isReference:no.A_,toReference:this.toReference,canRead:this.canRead,readField:function(ut,Dt){return v.policies.readField("string"==typeof ut?{fieldName:ut,from:Dt||(0,no.WU)(d)}:ut,{store:v})}};if(Object.keys(C).forEach(function(ut){var Dt=qa(ut),Nt=C[ut];if(void 0!==Nt){var Zt="function"==typeof p?p:p[ut]||p[Dt];if(Zt){var qt=Zt===Lu?Hs:Zt(iu(Nt),(0,mi.Cl)((0,mi.Cl)({},Re),{fieldName:Dt,storeFieldName:ut,storage:v.getStorage(d,ut)}));if(qt===_l)v.group.dirty(d,ut);else if(qt===Hs&&(qt=void 0),qt!==Nt&&(S[ut]=qt,Z=!0,Nt=qt,!1!==globalThis.__DEV__)){var cn=function(li){if(void 0===v.lookup(li.__ref))return!1!==globalThis.__DEV__&&rr.V1.warn(2,li),!0};if((0,no.A_)(qt))cn(qt);else if(Array.isArray(qt))for(var an=!1,zn=void 0,Bn=0,vi=qt;Bn0){var p=--this.rootIds[d];return p||delete this.rootIds[d],p}return 0},E.prototype.getRootIdSet=function(d){return void 0===d&&(d=new Set),Object.keys(this.rootIds).forEach(d.add,d),this instanceof Pa?this.parent.getRootIdSet(d):Object.keys(this.policies.rootTypenamesById).forEach(d.add,d),d},E.prototype.gc=function(){var d=this,p=this.getRootIdSet(),v=this.toObject();p.forEach(function(Z){Ar.call(v,Z)&&(Object.keys(d.findChildRefIds(Z)).forEach(p.add,p),delete v[Z])});var C=Object.keys(v);if(C.length){for(var S=this;S instanceof Pa;)S=S.parent;C.forEach(function(Z){return S.delete(Z)})}return C},E.prototype.findChildRefIds=function(d){if(!Ar.call(this.refs,d)){var p=this.refs[d]=Object.create(null),v=this.data[d];if(!v)return p;var C=new Set([v]);C.forEach(function(S){(0,no.A_)(S)&&(p[S.__ref]=!0),(0,ws.U)(S)&&Object.keys(S).forEach(function(Z){var Me=S[Z];(0,ws.U)(Me)&&C.add(Me)})})}return this.refs[d]},E.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},E}(),yl=function(){function E(d,p){void 0===p&&(p=null),this.caching=d,this.parent=p,this.d=null,this.resetCaching()}return E.prototype.resetCaching=function(){this.d=this.caching?(0,zc.yN)():null,this.keyMaker=new vl.b(Mc.et)},E.prototype.depend=function(d,p){if(this.d){this.d(Cl(d,p));var v=qa(p);v!==p&&this.d(Cl(d,v)),this.parent&&this.parent.depend(d,p)}},E.prototype.dirty=function(d,p){this.d&&this.d.dirty(Cl(d,p),"__exists"===p?"forget":"setDirty")},E}();function Cl(E,d){return d+"#"+E}function Bu(E,d){Fa(E)&&E.group.depend(d,"__exists")}d=function(p){function v(C){var Z=C.resultCaching,Re=C.seed,ut=p.call(this,C.policies,new yl(void 0===Z||Z))||this;return ut.stump=new Td(ut),ut.storageTrie=new vl.b(Mc.et),Re&&ut.replace(Re),ut}return(0,mi.C6)(v,p),v.prototype.addLayer=function(C,S){return this.stump.addLayer(C,S)},v.prototype.removeLayer=function(){return this},v.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},v}(E=xa||(xa={})),E.Root=d;var Pa=function(E){function d(p,v,C,S){var Z=E.call(this,v.policies,S)||this;return Z.id=p,Z.parent=v,Z.replay=C,Z.group=S,C(Z),Z}return(0,mi.C6)(d,E),d.prototype.addLayer=function(p,v){return new d(p,this,v,this.group)},d.prototype.removeLayer=function(p){var v=this,C=this.parent.removeLayer(p);return p===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(S){var Z=v.data[S],Me=C.lookup(S);Me?Z?Z!==Me&&Object.keys(Z).forEach(function(Re){(0,Wc.L)(Z[Re],Me[Re])||v.group.dirty(S,Re)}):(v.group.dirty(S,"__exists"),Object.keys(Me).forEach(function(Re){v.group.dirty(S,Re)})):v.delete(S)}),C):C===this.parent?this:C.addLayer(this.id,this.replay)},d.prototype.toObject=function(){return(0,mi.Cl)((0,mi.Cl)({},this.parent.toObject()),this.data)},d.prototype.findChildRefIds=function(p){var v=this.parent.findChildRefIds(p);return Ar.call(this.data,p)?(0,mi.Cl)((0,mi.Cl)({},v),E.prototype.findChildRefIds.call(this,p)):v},d.prototype.getStorage=function(){for(var p=this.parent;p.parent;)p=p.parent;return p.getStorage.apply(p,arguments)},d}(xa),Td=function(E){function d(p){return E.call(this,"EntityStore.Stump",p,function(){},new yl(p.group.caching,p.group))||this}return(0,mi.C6)(d,E),d.prototype.removeLayer=function(){return this},d.prototype.merge=function(p,v){return this.parent.merge(p,v)},d}(Pa);function Qc(E,d,p){var v=E[p],C=d[p];return(0,Wc.L)(v,C)?v:C}function Fa(E){return!!(E instanceof xa&&E.group.caching)}var bl=function(){function E(){this.known=new(Mc.En?WeakSet:Set),this.pool=new vl.b(Mc.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return E.prototype.isKnown=function(d){return(0,ws.U)(d)&&this.known.has(d)},E.prototype.pass=function(d){if((0,ws.U)(d)){var p=function Ed(E){return(0,ws.U)(E)?(0,mr.c)(E)?E.slice(0):(0,mi.Cl)({__proto__:Object.getPrototypeOf(E)},E):E}(d);return this.passes.set(p,d),p}return d},E.prototype.admit=function(d){var p=this;if((0,ws.U)(d)){var v=this.passes.get(d);if(v)return v;switch(Object.getPrototypeOf(d)){case Array.prototype:if(this.known.has(d))return d;var S=d.map(this.admit,this);return(Z=this.pool.lookupArray(S)).array||(this.known.add(Z.array=S),!1!==globalThis.__DEV__&&Object.freeze(S)),Z.array;case null:case Object.prototype:if(this.known.has(d))return d;var Me=Object.getPrototypeOf(d),Re=[Me],ut=this.sortedKeys(d);Re.push(ut.json);var Z,Dt=Re.length;if(ut.sorted.forEach(function(qt){Re.push(p.admit(d[qt]))}),!(Z=this.pool.lookupArray(Re)).object){var Nt=Z.object=Object.create(Me);this.known.add(Nt),ut.sorted.forEach(function(qt,cn){Nt[qt]=Re[Dt+cn]}),!1!==globalThis.__DEV__&&Object.freeze(Nt)}return Z.object}}return d},E.prototype.sortedKeys=function(d){var p=Object.keys(d),v=this.pool.lookupArray(p);if(!v.keys){p.sort();var C=JSON.stringify(p);(v.keys=this.keysByJSON.get(C))||this.keysByJSON.set(C,v.keys={sorted:p,json:C})}return v.keys},E}();function $u(E){return[E.selectionSet,E.objectOrReference,E.context,E.context.canonizeResults]}var zd=function(){function E(d){var p=this;this.knownResults=new(Mc.et?WeakMap:Map),this.config=(0,nu.o)(d,{addTypename:!1!==d.addTypename,canonizeResults:Zo(d)}),this.canon=d.canon||new bl,this.executeSelectionSet=(0,zc.LV)(function(v){var C,S=v.context.canonizeResults,Z=$u(v);Z[3]=!S;var Me=(C=p.executeSelectionSet).peek.apply(C,Z);return Me?S?(0,mi.Cl)((0,mi.Cl)({},Me),{result:p.canon.admit(Me.result)}):Me:(Bu(v.context.store,v.enclosingRef.__ref),p.execSelectionSetImpl(v))},{max:this.config.resultCacheMaxSize||Au.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:$u,makeCacheKey:function(v,C,S,Z){if(Fa(S.store))return S.store.makeCacheKey(v,(0,no.A_)(C)?C.__ref:C,S.varString,Z)}}),this.executeSubSelectedArray=(0,zc.LV)(function(v){return Bu(v.context.store,v.enclosingRef.__ref),p.execSubSelectedArrayImpl(v)},{max:this.config.resultCacheMaxSize||Au.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(v){var C=v.field,S=v.array,Z=v.context;if(Fa(Z.store))return Z.store.makeCacheKey(C,S,Z.varString)}})}return E.prototype.resetCanon=function(){this.canon=new bl},E.prototype.diffQueryAgainstStore=function(d){var p=d.store,v=d.query,C=d.rootId,S=void 0===C?"ROOT_QUERY":C,Z=d.variables,Me=d.returnPartialData,Re=void 0===Me||Me,ut=d.canonizeResults,Dt=void 0===ut?this.config.canonizeResults:ut,Nt=this.config.cache.policies;Z=(0,mi.Cl)((0,mi.Cl)({},(0,Ja.wY)((0,Ja.AT)(v))),Z);var cn,Zt=(0,no.WU)(S),qt=this.executeSelectionSet({selectionSet:(0,Ja.Vn)(v).selectionSet,objectOrReference:Zt,enclosingRef:Zt,context:(0,mi.Cl)({store:p,query:v,policies:Nt,variables:Z,varString:(0,gl.M)(Z),canonizeResults:Dt},Xc(v,this.config.fragments))});if(qt.missing&&(cn=[new Nu(Md(qt.missing),qt.missing,v,Z)],!Re))throw cn[0];return{result:qt.result,complete:!cn,missing:cn}},E.prototype.isFresh=function(d,p,v,C){if(Fa(C.store)&&this.knownResults.get(d)===v){var S=this.executeSelectionSet.peek(v,p,C,this.canon.isKnown(d));if(S&&d===S.result)return!0}return!1},E.prototype.execSelectionSetImpl=function(d){var p=this,v=d.selectionSet,C=d.objectOrReference,S=d.enclosingRef,Z=d.context;if((0,no.A_)(C)&&!Z.policies.rootTypenamesById[C.__ref]&&!Z.store.has(C.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(C.__ref," object")};var Zt,Me=Z.variables,Re=Z.policies,Dt=Z.store.getFieldValue(C,"__typename"),Nt=[],qt=new Ea.ZI;function cn(mn,Sn){var li;return mn.missing&&(Zt=qt.merge(Zt,((li={})[Sn]=mn.missing,li))),mn.result}this.config.addTypename&&"string"==typeof Dt&&!Re.rootIdsByTypename[Dt]&&Nt.push({__typename:Dt});var an=new Set(v.selections);an.forEach(function(mn){var Sn,li;if((0,Kc.MS)(mn,Me))if((0,no.dt)(mn)){var ri=Re.readField({fieldName:mn.name.value,field:mn,variables:Z.variables,from:C},Z),Ri=(0,no.ue)(mn);void 0===ri?ma.XY.added(mn)||(Zt=qt.merge(Zt,((Sn={})[Ri]="Can't find field '".concat(mn.name.value,"' on ").concat((0,no.A_)(C)?C.__ref+" object":"object "+JSON.stringify(C,null,2)),Sn))):(0,mr.c)(ri)?ri.length>0&&(ri=cn(p.executeSubSelectedArray({field:mn,array:ri,enclosingRef:S,context:Z}),Ri)):mn.selectionSet?null!=ri&&(ri=cn(p.executeSelectionSet({selectionSet:mn.selectionSet,objectOrReference:ri,enclosingRef:(0,no.A_)(ri)?ri:S,context:Z}),Ri)):Z.canonizeResults&&(ri=p.canon.pass(ri)),void 0!==ri&&Nt.push(((li={})[Ri]=ri,li))}else{var io=(0,fl.HQ)(mn,Z.lookupFragment);if(!io&&mn.kind===D1.b.FRAGMENT_SPREAD)throw(0,rr.vA)(9,mn.name.value);io&&Re.fragmentMatches(io,Dt)&&io.selectionSet.selections.forEach(an.add,an)}});var Bn={result:(0,Ea.IM)(Nt),missing:Zt},vi=Z.canonizeResults?this.canon.admit(Bn):iu(Bn);return vi.result&&this.knownResults.set(vi.result,v),vi},E.prototype.execSubSelectedArrayImpl=function(d){var Me,p=this,v=d.field,C=d.array,S=d.enclosingRef,Z=d.context,Re=new Ea.ZI;function ut(Dt,Nt){var Zt;return Dt.missing&&(Me=Re.merge(Me,((Zt={})[Nt]=Dt.missing,Zt))),Dt.result}return v.selectionSet&&(C=C.filter(Z.store.canRead)),C=C.map(function(Dt,Nt){return null===Dt?null:(0,mr.c)(Dt)?ut(p.executeSubSelectedArray({field:v,array:Dt,enclosingRef:S,context:Z}),Nt):v.selectionSet?ut(p.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:Dt,enclosingRef:(0,no.A_)(Dt)?Dt:S,context:Z}),Nt):(!1!==globalThis.__DEV__&&function Hh(E,d,p){if(!d.selectionSet){var v=new Set([p]);v.forEach(function(C){(0,ws.U)(C)&&((0,rr.V1)(!(0,no.A_)(C),10,function w1(E,d){return(0,no.A_)(d)?E.get(d.__ref,"__typename"):d&&d.__typename}(E,C),d.name.value),Object.values(C).forEach(v.add,v))})}}(Z.store,v,Dt),Dt)}),{result:Z.canonizeResults?this.canon.admit(C):C,missing:Me}},E}();function Md(E){try{JSON.stringify(E,function(d,p){if("string"==typeof p)throw p;return p})}catch(d){return d}}var ah=a(4246),Hu=a(1687),na=a(4141),wc=Object.create(null);function Za(E){var d=JSON.stringify(E);return wc[d]||(wc[d]=Object.create(null))}function P1(E){var d=Za(E);return d.keyFieldsFn||(d.keyFieldsFn=function(p,v){var C=function(Z,Me){return v.readField(Me,Z)},S=v.keyObject=g(E,function(Z){var Me=yt(v.storeObject,Z,C);return void 0===Me&&p!==v.storeObject&&Ar.call(p,Z[0])&&(Me=yt(p,Z,Ae)),(0,rr.V1)(void 0!==Me,4,Z.join("."),p),Me});return"".concat(v.typename,":").concat(JSON.stringify(S))})}function ec(E){var d=Za(E);return d.keyArgsFn||(d.keyArgsFn=function(p,v){var C=v.field,S=v.variables,Z=v.fieldName,Me=g(E,function(ut){var Dt=ut[0],Nt=Dt.charAt(0);if("@"!==Nt)if("$"!==Nt){if(p)return yt(p,ut)}else{var an=Dt.slice(1);if(S&&Ar.call(S,an)){var zn=ut.slice(0);return zn[0]=an,yt(S,zn)}}else if(C&&(0,mr.E)(C.directives)){var Zt=Dt.slice(1),qt=C.directives.find(function(Bn){return Bn.name.value===Zt}),cn=qt&&(0,no.MB)(qt,S);return cn&&yt(cn,ut.slice(1))}}),Re=JSON.stringify(Me);return(p||"{}"!==Re)&&(Z+=":"+Re),Z})}function g(E,d){var p=new Ea.ZI;return ga(E).reduce(function(v,C){var S,Z=d(C);if(void 0!==Z){for(var Me=C.length-1;Me>=0;--Me)(S={})[C[Me]]=Z,Z=S;v=p.merge(v,Z)}return v},Object.create(null))}function ga(E){var d=Za(E);if(!d.paths){var p=d.paths=[],v=[];E.forEach(function(C,S){(0,mr.c)(C)?(ga(C).forEach(function(Z){return p.push(v.concat(Z))}),v.length=0):(v.push(C),(0,mr.c)(E[S+1])||(p.push(v.slice(0)),v.length=0))})}return d.paths}function Ae(E,d){return E[d]}function yt(E,d,p){return p=p||Ae,Dd(d.reduce(function v(C,S){return(0,mr.c)(C)?C.map(function(Z){return v(Z,S)}):C&&p(C,S)},E))}function Dd(E){return(0,ws.U)(E)?(0,mr.c)(E)?E.map(Dd):g(Object.keys(E).sort(),function(d){return yt(E,d)}):E}function F1(E){return void 0!==E.args?E.args:E.field?(0,no.MB)(E.field,E.variables):null}var ch=function(){},Aa=function(E,d){return d.fieldName},Sd=function(E,d,p){return(0,p.mergeObjects)(E,d)},ju=function(E,d){return d},Od=function(){function E(d){this.config=d,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,mi.Cl)({dataIdFromObject:O1},d),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),d.possibleTypes&&this.addPossibleTypes(d.possibleTypes),d.typePolicies&&this.addTypePolicies(d.typePolicies)}return E.prototype.identify=function(d,p){var v,C=this,S=p&&(p.typename||(null===(v=p.storeObject)||void 0===v?void 0:v.__typename))||d.__typename;if(S===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var Re,Z=p&&p.storeObject||d,Me=(0,mi.Cl)((0,mi.Cl)({},p),{typename:S,storeObject:Z,readField:p&&p.readField||function(){var Zt=ou(arguments,Z);return C.readField(Zt,{store:C.cache.data,variables:Zt.variables})}}),ut=S&&this.getTypePolicy(S),Dt=ut&&ut.keyFn||this.config.dataIdFromObject;Dt;){var Nt=Dt((0,mi.Cl)((0,mi.Cl)({},d),Z),Me);if(!(0,mr.c)(Nt)){Re=Nt;break}Dt=P1(Nt)}return Re=Re?String(Re):void 0,Me.keyObject?[Re,Me.keyObject]:[Re]},E.prototype.addTypePolicies=function(d){var p=this;Object.keys(d).forEach(function(v){var C=d[v],S=C.queryType,Z=C.mutationType,Me=C.subscriptionType,Re=(0,mi.Tt)(C,["queryType","mutationType","subscriptionType"]);S&&p.setRootTypename("Query",v),Z&&p.setRootTypename("Mutation",v),Me&&p.setRootTypename("Subscription",v),Ar.call(p.toBeAdded,v)?p.toBeAdded[v].push(Re):p.toBeAdded[v]=[Re]})},E.prototype.updateTypePolicy=function(d,p){var v=this,C=this.getTypePolicy(d),S=p.keyFields,Z=p.fields;function Me(Re,ut){Re.merge="function"==typeof ut?ut:!0===ut?Sd:!1===ut?ju:Re.merge}Me(C,p.merge),C.keyFn=!1===S?ch:(0,mr.c)(S)?P1(S):"function"==typeof S?S:C.keyFn,Z&&Object.keys(Z).forEach(function(Re){var ut=v.getFieldPolicy(d,Re,!0),Dt=Z[Re];if("function"==typeof Dt)ut.read=Dt;else{var Nt=Dt.keyArgs,Zt=Dt.read,qt=Dt.merge;ut.keyFn=!1===Nt?Aa:(0,mr.c)(Nt)?ec(Nt):"function"==typeof Nt?Nt:ut.keyFn,"function"==typeof Zt&&(ut.read=Zt),Me(ut,qt)}ut.read&&ut.merge&&(ut.keyFn=ut.keyFn||Aa)})},E.prototype.setRootTypename=function(d,p){void 0===p&&(p=d);var v="ROOT_"+d.toUpperCase(),C=this.rootTypenamesById[v];p!==C&&((0,rr.V1)(!C||C===d,5,d),C&&delete this.rootIdsByTypename[C],this.rootIdsByTypename[p]=v,this.rootTypenamesById[v]=p)},E.prototype.addPossibleTypes=function(d){var p=this;this.usingPossibleTypes=!0,Object.keys(d).forEach(function(v){p.getSupertypeSet(v,!0),d[v].forEach(function(C){p.getSupertypeSet(C,!0).add(v);var S=C.match(I1);(!S||S[0]!==C)&&p.fuzzySubtypes.set(C,new RegExp(C))})})},E.prototype.getTypePolicy=function(d){var p=this;if(!Ar.call(this.typePolicies,d)){var v=this.typePolicies[d]=Object.create(null);v.fields=Object.create(null);var C=this.supertypeMap.get(d);!C&&this.fuzzySubtypes.size&&(C=this.getSupertypeSet(d,!0),this.fuzzySubtypes.forEach(function(Z,Me){if(Z.test(d)){var Re=p.supertypeMap.get(Me);Re&&Re.forEach(function(ut){return C.add(ut)})}})),C&&C.size&&C.forEach(function(Z){var Me=p.getTypePolicy(Z),Re=Me.fields,ut=(0,mi.Tt)(Me,["fields"]);Object.assign(v,ut),Object.assign(v.fields,Re)})}var S=this.toBeAdded[d];return S&&S.length&&S.splice(0).forEach(function(Z){p.updateTypePolicy(d,Z)}),this.typePolicies[d]},E.prototype.getFieldPolicy=function(d,p,v){if(d){var C=this.getTypePolicy(d).fields;return C[p]||v&&(C[p]=Object.create(null))}},E.prototype.getSupertypeSet=function(d,p){var v=this.supertypeMap.get(d);return!v&&p&&this.supertypeMap.set(d,v=new Set),v},E.prototype.fragmentMatches=function(d,p,v,C){var S=this;if(!d.typeCondition)return!0;if(!p)return!1;var Z=d.typeCondition.name.value;if(p===Z)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(Z))for(var Me=this.getSupertypeSet(p,!0),Re=[Me],ut=function(cn){var an=S.getSupertypeSet(cn,!1);an&&an.size&&Re.indexOf(an)<0&&Re.push(an)},Dt=!(!v||!this.fuzzySubtypes.size),Nt=!1,Zt=0;Zt1?E[1]:d}:(Z=(0,mi.Cl)({},v),Ar.call(Z,"from")||(Z.from=d)),!1!==globalThis.__DEV__&&void 0===Z.from&&!1!==globalThis.__DEV__&&rr.V1.warn(7,(0,Hu.p)(Array.from(E))),void 0===Z.variables&&(Z.variables=p),Z}function A1(E){return function(p,v){if((0,mr.c)(p)||(0,mr.c)(v))throw(0,rr.vA)(8);if((0,ws.U)(p)&&(0,ws.U)(v)){var C=E.getFieldValue(p,"__typename"),S=E.getFieldValue(v,"__typename");if(C&&S&&C!==S)return v;if((0,no.A_)(p)&&Oc(v))return E.merge(p.__ref,v),p;if(Oc(p)&&(0,no.A_)(v))return E.merge(p,v.__ref),v;if(Oc(p)&&Oc(v))return(0,mi.Cl)((0,mi.Cl)({},p),v)}return v}}function Id(E,d,p){var v="".concat(d).concat(p),C=E.flavors.get(v);return C||E.flavors.set(v,C=E.clientOnly===d&&E.deferred===p?E:(0,mi.Cl)((0,mi.Cl)({},E),{clientOnly:d,deferred:p})),C}var lh=function(){function E(d,p,v){this.cache=d,this.reader=p,this.fragments=v}return E.prototype.writeToStore=function(d,p){var v=this,C=p.query,S=p.result,Z=p.dataId,Me=p.variables,Re=p.overwrite,ut=(0,Ja.Vu)(C),Dt=function x1(){return new Ea.ZI}();Me=(0,mi.Cl)((0,mi.Cl)({},(0,Ja.wY)(ut)),Me);var Nt=(0,mi.Cl)((0,mi.Cl)({store:d,written:Object.create(null),merge:function(qt,cn){return Dt.merge(qt,cn)},variables:Me,varString:(0,gl.M)(Me)},Xc(C,this.fragments)),{overwrite:!!Re,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),Zt=this.processSelectionSet({result:S||Object.create(null),dataId:Z,selectionSet:ut.selectionSet,mergeTree:{map:new Map},context:Nt});if(!(0,no.A_)(Zt))throw(0,rr.vA)(11,S);return Nt.incomingById.forEach(function(qt,cn){var an=qt.storeObject,zn=qt.mergeTree,Bn=qt.fieldNodeSet,vi=(0,no.WU)(cn);if(zn&&zn.map.size){var mn=v.applyMerges(zn,vi,an,Nt);if((0,no.A_)(mn))return;an=mn}if(!1!==globalThis.__DEV__&&!Nt.overwrite){var Sn=Object.create(null);Bn.forEach(function(Ri){Ri.selectionSet&&(Sn[Ri.name.value]=!0)}),Object.keys(an).forEach(function(Ri){(function(Ri){return!0===Sn[qa(Ri)]})(Ri)&&!function(Ri){var io=zn&&zn.map.get(Ri);return!!(io&&io.info&&io.info.merge)}(Ri)&&function Fd(E,d,p,v){var C=function(Nt){var Zt=v.getFieldValue(Nt,p);return"object"==typeof Zt&&Zt},S=C(E);if(S){var Z=C(d);if(Z&&!(0,no.A_)(S)&&!(0,Wc.L)(S,Z)&&!Object.keys(S).every(function(Nt){return void 0!==v.getFieldValue(Z,Nt)})){var Me=v.getFieldValue(E,"__typename")||v.getFieldValue(d,"__typename"),Re=qa(p),ut="".concat(Me,".").concat(Re);if(!Ic.has(ut)){Ic.add(ut);var Dt=[];!(0,mr.c)(S)&&!(0,mr.c)(Z)&&[S,Z].forEach(function(Nt){var Zt=v.getFieldValue(Nt,"__typename");"string"==typeof Zt&&!Dt.includes(Zt)&&Dt.push(Zt)}),!1!==globalThis.__DEV__&&rr.V1.warn(14,Re,Me,Dt.length?"either ensure all objects of type "+Dt.join(" and ")+" have an ID or a custom merge function, or ":"",ut,(0,mi.Cl)({},S),(0,mi.Cl)({},Z))}}}}(vi,an,Ri,Nt.store)})}d.merge(cn,an)}),d.retain(Zt.__ref),Zt},E.prototype.processSelectionSet=function(d){var p=this,v=d.dataId,C=d.result,S=d.selectionSet,Z=d.context,Me=d.mergeTree,Re=this.cache.policies,ut=Object.create(null),Dt=v&&Re.rootTypenamesById[v]||(0,no.D$)(C,S,Z.fragmentMap)||v&&Z.store.get(v,"__typename");"string"==typeof Dt&&(ut.__typename=Dt);var Nt=function(){var mn=ou(arguments,ut,Z.variables);if((0,no.A_)(mn.from)){var Sn=Z.incomingById.get(mn.from.__ref);if(Sn){var li=Re.readField((0,mi.Cl)((0,mi.Cl)({},mn),{from:Sn.storeObject}),Z);if(void 0!==li)return li}}return Re.readField(mn,Z)},Zt=new Set;this.flattenFields(S,C,Z,Dt).forEach(function(mn,Sn){var li,ri=(0,no.ue)(Sn),Ri=C[ri];if(Zt.add(Sn),void 0!==Ri){var io=Re.getStoreFieldName({typename:Dt,fieldName:Sn.name.value,field:Sn,variables:mn.variables}),Sr=Pd(Me,io),Jr=p.processFieldValue(Ri,Sn,Sn.selectionSet?Id(mn,!1,!1):mn,Sr),xc=void 0;Sn.selectionSet&&((0,no.A_)(Jr)||Oc(Jr))&&(xc=Nt("__typename",Jr));var ss=Re.getMergeFunction(Dt,Sn.name.value,xc);ss?Sr.info={field:Sn,typename:Dt,merge:ss}:Gu(Me,io),ut=mn.merge(ut,((li={})[io]=Jr,li))}else!1!==globalThis.__DEV__&&!mn.clientOnly&&!mn.deferred&&!ma.XY.added(Sn)&&!Re.getReadFunction(Dt,Sn.name.value)&&!1!==globalThis.__DEV__&&rr.V1.error(12,(0,no.ue)(Sn),C)});try{var qt=Re.identify(C,{typename:Dt,selectionSet:S,fragmentMap:Z.fragmentMap,storeObject:ut,readField:Nt}),an=qt[1];v=v||qt[0],an&&(ut=Z.merge(ut,an))}catch(mn){if(!v)throw mn}if("string"==typeof v){var zn=(0,no.WU)(v),Bn=Z.written[v]||(Z.written[v]=[]);if(Bn.indexOf(S)>=0||(Bn.push(S),this.reader&&this.reader.isFresh(C,zn,S,Z)))return zn;var vi=Z.incomingById.get(v);return vi?(vi.storeObject=Z.merge(vi.storeObject,ut),vi.mergeTree=Uu(vi.mergeTree,Me),Zt.forEach(function(mn){return vi.fieldNodeSet.add(mn)})):Z.incomingById.set(v,{storeObject:ut,mergeTree:R1(Me)?void 0:Me,fieldNodeSet:Zt}),zn}return ut},E.prototype.processFieldValue=function(d,p,v,C){var S=this;return p.selectionSet&&null!==d?(0,mr.c)(d)?d.map(function(Z,Me){var Re=S.processFieldValue(Z,p,v,Pd(C,Me));return Gu(C,Me),Re}):this.processSelectionSet({result:d,selectionSet:p.selectionSet,context:v,mergeTree:C}):!1!==globalThis.__DEV__?(0,ah.m)(d):d},E.prototype.flattenFields=function(d,p,v,C){void 0===C&&(C=(0,no.D$)(p,d,v.fragmentMap));var S=new Map,Z=this.cache.policies,Me=new vl.b(!1);return function Re(ut,Dt){var Nt=Me.lookup(ut,Dt.clientOnly,Dt.deferred);Nt.visited||(Nt.visited=!0,ut.selections.forEach(function(Zt){if((0,Kc.MS)(Zt,v.variables)){var qt=Dt.clientOnly,cn=Dt.deferred;if(!(qt&&cn)&&(0,mr.E)(Zt.directives)&&Zt.directives.forEach(function(Bn){var vi=Bn.name.value;if("client"===vi&&(qt=!0),"defer"===vi){var mn=(0,no.MB)(Bn,v.variables);(!mn||!1!==mn.if)&&(cn=!0)}}),(0,no.dt)(Zt)){var an=S.get(Zt);an&&(qt=qt&&an.clientOnly,cn=cn&&an.deferred),S.set(Zt,Id(v,qt,cn))}else{var zn=(0,fl.HQ)(Zt,v.lookupFragment);if(!zn&&Zt.kind===D1.b.FRAGMENT_SPREAD)throw(0,rr.vA)(13,Zt.name.value);zn&&Z.fragmentMatches(zn,C,p,v.variables)&&Re(zn.selectionSet,Id(v,qt,cn))}}}))}(d,v),S},E.prototype.applyMerges=function(d,p,v,C,S){var Z,Me=this;if(d.map.size&&!(0,no.A_)(v)){var Re=(0,mr.c)(v)||!(0,no.A_)(p)&&!Oc(p)?void 0:p,ut=v;Re&&!S&&(S=[(0,no.A_)(Re)?Re.__ref:Re]);var Dt,Nt=function(Zt,qt){return(0,mr.c)(Zt)?"number"==typeof qt?Zt[qt]:void 0:C.store.getFieldValue(Zt,String(qt))};d.map.forEach(function(Zt,qt){var cn=Nt(Re,qt),an=Nt(ut,qt);if(void 0!==an){S&&S.push(qt);var zn=Me.applyMerges(Zt,cn,an,C,S);zn!==an&&(Dt=Dt||new Map).set(qt,zn),S&&(0,rr.V1)(S.pop()===qt)}}),Dt&&(v=(0,mr.c)(ut)?ut.slice(0):(0,mi.Cl)({},ut),Dt.forEach(function(Zt,qt){v[qt]=Zt}))}return d.info?this.cache.policies.runMergeFunction(p,v,d.info,C,S&&(Z=C.store).getStorage.apply(Z,S)):v},E}(),xd=[];function Pd(E,d){var p=E.map;return p.has(d)||p.set(d,xd.pop()||{map:new Map}),p.get(d)}function Uu(E,d){if(E===d||!d||R1(d))return E;if(!E||R1(E))return d;var p=E.info&&d.info?(0,mi.Cl)((0,mi.Cl)({},E.info),d.info):E.info||d.info,v=E.map.size&&d.map.size,S={info:p,map:v?new Map:E.map.size?E.map:d.map};if(v){var Z=new Set(d.map.keys());E.map.forEach(function(Me,Re){S.map.set(Re,Uu(Me,d.map.get(Re))),Z.delete(Re)}),Z.forEach(function(Me){S.map.set(Me,Uu(d.map.get(Me),E.map.get(Me)))})}return S}function R1(E){return!E||!(E.info||E.map.size)}function Gu(E,d){var p=E.map,v=p.get(d);v&&R1(v)&&(xd.push(v),p.delete(d))}var Ic=new Set,Ad=function(E){function d(p){void 0===p&&(p={});var v=E.call(this)||this;return v.watches=new Set,v.addTypenameTransform=new fa.c(ma.XY),v.assumeImmutableResults=!0,v.makeVar=na.UT,v.txCount=0,v.config=function Sc(E){return(0,nu.o)(Xr,E)}(p),v.addTypename=!!v.config.addTypename,v.policies=new Od({cache:v,dataIdFromObject:v.config.dataIdFromObject,possibleTypes:v.config.possibleTypes,typePolicies:v.config.typePolicies}),v.init(),v}return(0,mi.C6)(d,E),d.prototype.init=function(){var p=this.data=new xa.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=p.stump,this.resetResultCache()},d.prototype.resetResultCache=function(p){var v=this,C=this.storeReader,S=this.config.fragments;this.storeWriter=new lh(this,this.storeReader=new zd({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Zo(this.config),canon:p?void 0:C&&C.canon,fragments:S}),S),this.maybeBroadcastWatch=(0,zc.LV)(function(Z,Me){return v.broadcastWatch(Z,Me)},{max:this.config.resultCacheMaxSize||Au.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(Z){var Me=Z.optimistic?v.optimisticData:v.data;if(Fa(Me))return Me.makeCacheKey(Z.query,Z.callback,(0,gl.M)({optimistic:Z.optimistic,id:Z.id,variables:Z.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(Z){return Z.resetCaching()})},d.prototype.restore=function(p){return this.init(),p&&this.data.replace(p),this},d.prototype.extract=function(p){return void 0===p&&(p=!1),(p?this.optimisticData:this.data).extract()},d.prototype.read=function(p){var v=p.returnPartialData,C=void 0!==v&&v;try{return this.storeReader.diffQueryAgainstStore((0,mi.Cl)((0,mi.Cl)({},p),{store:p.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:C})).result||null}catch(S){if(S instanceof Nu)return null;throw S}},d.prototype.write=function(p){try{return++this.txCount,this.storeWriter.writeToStore(this.data,p)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.modify=function(p){if(Ar.call(p,"id")&&!p.id)return!1;var v=p.optimistic?this.optimisticData:this.data;try{return++this.txCount,v.modify(p.id||"ROOT_QUERY",p.fields)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.diff=function(p){return this.storeReader.diffQueryAgainstStore((0,mi.Cl)((0,mi.Cl)({},p),{store:p.optimistic?this.optimisticData:this.data,rootId:p.id||"ROOT_QUERY",config:this.config}))},d.prototype.watch=function(p){var v=this;return this.watches.size||(0,na.MS)(this),this.watches.add(p),p.immediate&&this.maybeBroadcastWatch(p),function(){v.watches.delete(p)&&!v.watches.size&&(0,na.WR)(v),v.maybeBroadcastWatch.forget(p)}},d.prototype.gc=function(p){var v;gl.M.reset(),M1.y.reset(),this.addTypenameTransform.resetCache(),null===(v=this.config.fragments)||void 0===v||v.resetCaches();var C=this.optimisticData.gc();return p&&!this.txCount&&(p.resetResultCache?this.resetResultCache(p.resetResultIdentities):p.resetResultIdentities&&this.storeReader.resetCanon()),C},d.prototype.retain=function(p,v){return(v?this.optimisticData:this.data).retain(p)},d.prototype.release=function(p,v){return(v?this.optimisticData:this.data).release(p)},d.prototype.identify=function(p){if((0,no.A_)(p))return p.__ref;try{return this.policies.identify(p)[0]}catch(v){!1!==globalThis.__DEV__&&rr.V1.warn(v)}},d.prototype.evict=function(p){if(!p.id){if(Ar.call(p,"id"))return!1;p=(0,mi.Cl)((0,mi.Cl)({},p),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(p,this.data)}finally{! --this.txCount&&!1!==p.broadcast&&this.broadcastWatches()}},d.prototype.reset=function(p){var v=this;return this.init(),gl.M.reset(),p&&p.discardWatches?(this.watches.forEach(function(C){return v.maybeBroadcastWatch.forget(C)}),this.watches.clear(),(0,na.WR)(this)):this.broadcastWatches(),Promise.resolve()},d.prototype.removeOptimistic=function(p){var v=this.optimisticData.removeLayer(p);v!==this.optimisticData&&(this.optimisticData=v,this.broadcastWatches())},d.prototype.batch=function(p){var ut,v=this,C=p.update,S=p.optimistic,Z=void 0===S||S,Me=p.removeOptimistic,Re=p.onWatchUpdated,Dt=function(Zt){var cn=v.data,an=v.optimisticData;++v.txCount,Zt&&(v.data=v.optimisticData=Zt);try{return ut=C(v)}finally{--v.txCount,v.data=cn,v.optimisticData=an}},Nt=new Set;return Re&&!this.txCount&&this.broadcastWatches((0,mi.Cl)((0,mi.Cl)({},p),{onWatchUpdated:function(Zt){return Nt.add(Zt),!1}})),"string"==typeof Z?this.optimisticData=this.optimisticData.addLayer(Z,Dt):!1===Z?Dt(this.data):Dt(),"string"==typeof Me&&(this.optimisticData=this.optimisticData.removeLayer(Me)),Re&&Nt.size?(this.broadcastWatches((0,mi.Cl)((0,mi.Cl)({},p),{onWatchUpdated:function(Zt,qt){var cn=Re.call(this,Zt,qt);return!1!==cn&&Nt.delete(Zt),cn}})),Nt.size&&Nt.forEach(function(Zt){return v.maybeBroadcastWatch.dirty(Zt)})):this.broadcastWatches(p),ut},d.prototype.performTransaction=function(p,v){return this.batch({update:p,optimistic:v||null!==v})},d.prototype.transformDocument=function(p){return this.addTypenameToDocument(this.addFragmentsToDocument(p))},d.prototype.broadcastWatches=function(p){var v=this;this.txCount||this.watches.forEach(function(C){return v.maybeBroadcastWatch(C,p)})},d.prototype.addFragmentsToDocument=function(p){var v=this.config.fragments;return v?v.transform(p):p},d.prototype.addTypenameToDocument=function(p){return this.addTypename?this.addTypenameTransform.transformDocument(p):p},d.prototype.broadcastWatch=function(p,v){var C=p.lastDiff,S=this.diff(p);v&&(p.optimistic&&"string"==typeof v.optimistic&&(S.fromOptimisticTransaction=!0),v.onWatchUpdated&&!1===v.onWatchUpdated.call(this,p,S,C))||(!C||!(0,Wc.L)(C.result,S.result))&&p.callback(p.lastDiff=S,C)},d}(za);!1!==globalThis.__DEV__&&(Ad.prototype.getMemoryInternals=Ru.cM);const ru={possibleTypes:{ActivityInterface:["AcceptRevisionsActivity","CommentActivity","CreateComplexMolecularProfileActivity","CreateFeatureActivity","CreateVariantActivity","DeleteCommentActivity","DeprecateComplexMolecularProfileActivity","DeprecateFeatureActivity","DeprecateVariantActivity","FlagEntityActivity","ModerateAssertionActivity","ModerateEvidenceItemActivity","RejectRevisionsActivity","ResolveFlagActivity","SubmitAssertionActivity","SubmitEvidenceItemActivity","SuggestRevisionSetActivity","SuggestSourceActivity","UpdateSourceSuggestionStatusActivity"],CommentBodySegment:["CommentTagSegment","CommentTagSegmentFlagged","CommentTagSegmentFlaggedAndDeprecated","CommentTagSegmentFlaggedAndWithStatus","CommentTextSegment","User"],Commentable:["Assertion","EvidenceItem","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","Source","SourcePopover","Variant","VariantGroup"],EventOriginObject:["Assertion","Comment","EvidenceItem","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","SourceSuggestion","Variant"],EventSubject:["Assertion","EvidenceItem","ExonCoordinate","Factor","FactorVariant","Feature","Flag","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Revision","RevisionSet","Source","SourcePopover","SourceSuggestion","Variant","VariantCoordinate","VariantGroup"],FeatureInstance:["Factor","Fusion","Gene"],Flaggable:["Assertion","BrowseFeature","EvidenceItem","Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Variant","VariantGroup"],ModeratedField:["ObjectField","ScalarField"],ModeratedFieldDiff:["ObjectFieldDiff","ScalarFieldDiff"],MolecularProfileComponent:["Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","Variant"],MolecularProfileSegment:["Feature","MolecularProfileTextSegment","Variant"],VariantInterface:["FactorVariant","FusionVariant","GeneVariant","Variant"],WithRevisions:["Assertion","EvidenceItem","Factor","FactorVariant","Feature","Fusion","FusionVariant","Gene","GeneVariant","MolecularProfile","Variant","VariantGroup"]}};var Jc=a(1661),Qr=a(3246),jh=function(){function E(d){var p=d.batchDebounce,v=d.batchInterval,C=d.batchMax,S=d.batchHandler,Z=d.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=p,this.batchInterval=v,this.batchMax=C||0,this.batchHandler=S,this.batchKey=Z||function(){return""}}return E.prototype.enqueueRequest=function(d){var p=this,v=(0,mi.Cl)((0,mi.Cl)({},d),{next:[],error:[],complete:[],subscribers:new Set}),C=this.batchKey(d.operation);return v.observable||(v.observable=new ml.c(function(S){var Z=p.batchesByKey.get(C);Z||p.batchesByKey.set(C,Z=new Set);var Me=0===Z.size,Re=0===v.subscribers.size;return v.subscribers.add(S),Re&&Z.add(v),S.next&&v.next.push(S.next.bind(S)),S.error&&v.error.push(S.error.bind(S)),S.complete&&v.complete.push(S.complete.bind(S)),(Me||p.batchDebounce)&&p.scheduleQueueConsumption(C),Z.size===p.batchMax&&p.consumeQueue(C),function(){var ut;v.subscribers.delete(S)&&v.subscribers.size<1&&Z.delete(v)&&Z.size<1&&(p.consumeQueue(C),null===(ut=Z.subscription)||void 0===ut||ut.unsubscribe())}})),v.observable},E.prototype.consumeQueue=function(d){void 0===d&&(d="");var p=this.batchesByKey.get(d);if(this.batchesByKey.delete(d),p&&p.size){var v=[],C=[],S=[],Z=[],Me=[],Re=[];p.forEach(function(Nt){v.push(Nt.operation),C.push(Nt.forward),S.push(Nt.observable),Z.push(Nt.next),Me.push(Nt.error),Re.push(Nt.complete)});var ut=this.batchHandler(v,C)||ml.c.of(),Dt=function(Nt){Me.forEach(function(Zt){Zt&&Zt.forEach(function(qt){return qt(Nt)})})};return p.subscription=ut.subscribe({next:function(Nt){if(Array.isArray(Nt)||(Nt=[Nt]),Z.length!==Nt.length){var Zt=new Error("server returned results with length ".concat(Nt.length,", expected length of ").concat(Z.length));return Zt.result=Nt,Dt(Zt)}Nt.forEach(function(qt,cn){Z[cn]&&Z[cn].forEach(function(an){return an(qt)})})},error:Dt,complete:function(){Re.forEach(function(Nt){Nt&&Nt.forEach(function(Zt){return Zt()})})}}),S}},E.prototype.scheduleQueueConsumption=function(d){var p=this;clearTimeout(this.scheduledBatchTimerByKey.get(d)),this.scheduledBatchTimerByKey.set(d,setTimeout(function(){p.consumeQueue(d),p.scheduledBatchTimerByKey.delete(d)},this.batchInterval))},E}();!function(E){function d(p){var v=E.call(this)||this,C=p||{},Z=C.batchInterval,Re=C.batchMax,Dt=C.batchHandler,Zt=C.batchKey;return v.batcher=new jh({batchDebounce:C.batchDebounce,batchInterval:void 0===Z?10:Z,batchMax:void 0===Re?0:Re,batchHandler:void 0===Dt?function(){return null}:Dt,batchKey:void 0===Zt?function(){return""}:Zt}),p.batchHandler.length<=1&&(v.request=function(cn){return v.batcher.enqueueRequest({operation:cn})}),v}(0,mi.C6)(d,E),d.prototype.request=function(p,v){return this.batcher.enqueueRequest({operation:p,forward:v})}}(Ec.C);const Ku={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function tc(E,d,p){return function su(...E){return E.find(d=>typeof d<"u")}(E[p],d[p],Ku[p])}class hh extends Ec.C{httpClient;options;requester;print=Qr.y;constructor(d,p){super(),this.httpClient=d,this.options=p,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=v=>new ml.c(C=>{const S=v.getContext();let Z=tc(S,this.options,"method");const Me=tc(S,this.options,"includeQuery"),Re=tc(S,this.options,"includeExtensions"),ut=tc(S,this.options,"uri"),Dt=tc(S,this.options,"withCredentials"),Nt=tc(S,this.options,"useMultipart"),Zt=!0===this.options.useGETForQueries,qt=v.query.definitions.some(Bn=>"OperationDefinition"===Bn.kind&&"query"===Bn.operation);Zt&&qt&&(Z="GET");const cn={method:Z,url:"function"==typeof ut?ut(v):ut,body:{operationName:v.operationName,variables:v.variables},options:{withCredentials:Dt,useMultipart:Nt,headers:this.options.headers}};Re&&(cn.body.extensions=v.extensions),Me&&(cn.body.query=this.print(v.query));const an=function Wu(E){let d=E.headers&&E.headers instanceof ln.Lr?E.headers:new ln.Lr(E.headers);if(E.clientAwareness){const{name:p,version:v}=E.clientAwareness;p&&!d.has("apollographql-client-name")&&(d=d.set("apollographql-client-name",p)),v&&!d.has("apollographql-client-version")&&(d=d.set("apollographql-client-version",v))}return d}(S);cn.options.headers=((E,d)=>E&&d?d.keys().reduce((v,C)=>v.set(C,d.getAll(C)),E):d||E)(cn.options.headers,an);const zn=((E,d,p)=>{const v=-1!==["POST","PUT","PATCH"].indexOf(E.method.toUpperCase()),S=E.body.length;let Me,Z=E.options&&E.options.useMultipart;if(Z){if(S)return new m.c(ut=>ut.error(new Error("File upload is not available when combined with Batching")));if(!v)return new m.c(ut=>ut.error(new Error("File upload is not available when GET is used")));if(!p)return new m.c(ut=>ut.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));Me=p(E.body),Z=!!Me.files.size}let Re={};if(S){if(!v)return new m.c(ut=>ut.error(new Error("Batching is not available for GET requests")));Re={body:E.body}}else Re=v?{body:Z?Me.clone:E.body}:{params:Object.keys(E.body).reduce((Nt,Zt)=>{const qt=E.body[Zt];return Nt[Zt]=-1!==["variables","extensions"].indexOf(Zt.toLowerCase())?JSON.stringify(qt):qt,Nt},{})};if(Z&&v){const ut=new FormData;ut.append("operations",JSON.stringify(Re.body));const Dt={},Nt=Me.files;let Zt=0;Nt.forEach(qt=>{Dt[++Zt]=qt}),ut.append("map",JSON.stringify(Dt)),Zt=0,Nt.forEach((qt,cn)=>{ut.append(++Zt+"",cn,cn.name)}),Re.body=ut}return d.request(E.method,E.url,{observe:"response",responseType:"json",reportProgress:!1,...Re,...E.options})})(cn,this.httpClient,this.options.extractFiles).subscribe({next:Bn=>{v.setContext({response:Bn}),C.next(Bn.body)},error:Bn=>C.error(Bn),complete:()=>C.complete()});return()=>{zn.closed||zn.unsubscribe()}})}request(d){return this.requester(d)}}let Gh=(()=>{class E{httpClient;constructor(p){this.httpClient=p}create(p){return new hh(this.httpClient,p)}static \u0275fac=function(v){return new(v||E)(r.KVO(ln.Qq))};static \u0275prov=r.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function sr(E){return void 0===E&&(E=!1),{keyArgs:E,read:function(d,p){var v=p.canRead,C=p.readField;if(!d)return d;var S=[],Z="",Me="";d.edges.forEach(function(Nt){v(C("node",Nt))&&(S.push(Nt),Nt.cursor&&(Z=Z||Nt.cursor||"",Me=Nt.cursor||Me))}),S.length>1&&Z===Me&&(Z="");var Re=d.pageInfo||{},ut=Re.startCursor,Dt=Re.endCursor;return(0,mi.Cl)((0,mi.Cl)({},Nd(d)),{edges:S,pageInfo:(0,mi.Cl)((0,mi.Cl)({},d.pageInfo),{startCursor:ut||Z,endCursor:Dt||Me})})},merge:function(d,p,v){var C=v.args,S=v.isReference,Z=v.readField;if(d||(d={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!p)return d;var Me=p.edges?p.edges.map(function(io){return S(io=(0,mi.Cl)({},io))&&(io.cursor=Z("cursor",io)),io}):[];if(p.pageInfo){var Re=p.pageInfo,ut=Re.startCursor,Dt=Re.endCursor,Nt=Me[0],Zt=Me[Me.length-1];Nt&&ut&&(Nt.cursor=ut),Zt&&Dt&&(Zt.cursor=Dt);var qt=Nt&&Nt.cursor;qt&&!ut&&(p=(0,Ea.D9)(p,{pageInfo:{startCursor:qt}}));var cn=Zt&&Zt.cursor;cn&&!Dt&&(p=(0,Ea.D9)(p,{pageInfo:{endCursor:cn}}))}var an=d.edges,zn=[];if(C&&C.after)(Bn=an.findIndex(function(io){return io.cursor===C.after}))>=0&&(an=an.slice(0,Bn+1));else if(C&&C.before){var Bn;zn=(Bn=an.findIndex(function(Sr){return Sr.cursor===C.before}))<0?an:an.slice(Bn),an=[]}else p.edges&&(an=[]);var vi=(0,mi.fX)((0,mi.fX)((0,mi.fX)([],an,!0),Me,!0),zn,!0),mn=(0,mi.Cl)((0,mi.Cl)({},p.pageInfo),d.pageInfo);if(p.pageInfo){var Sn=p.pageInfo,li=Sn.hasPreviousPage,ri=Sn.hasNextPage,Ri=(ut=Sn.startCursor,Dt=Sn.endCursor,(0,mi.Tt)(Sn,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(mn,Ri),an.length||(void 0!==li&&(mn.hasPreviousPage=li),void 0!==ut&&(mn.startCursor=ut)),zn.length||(void 0!==ri&&(mn.hasNextPage=ri),void 0!==Dt&&(mn.endCursor=Dt))}return(0,mi.Cl)((0,mi.Cl)((0,mi.Cl)({},Nd(d)),Nd(p)),{edges:vi,pageInfo:mn})}}}var Nd=function(E){return(0,mi.Tt)(E,ph)},ph=["edges","pageInfo"];const fh={Gene:{fields:{comments:sr(),revisions:sr(),events:sr(),variants:sr()}},Query:{fields:{activities:sr(["subject","organizationId","userId","activityType","subjectType"]),browseFeatures:sr(["name","featureType","therapyName","featureAlias","diseaseName","searchScope"]),browseVariants:sr(["variantName","entrezSymbol","diseaseName","therapayName","variantTypeId","variantGroupId","variantCategory"]),browseMolecularProfiles:sr(["variantName","entrezSymbol","diseaseName","therapyName","molecularProfileScore","molecularProfileAlias","variantId"]),browseVariantGroups:sr(["name","geneNames","variantNames","variantId"]),browseSources:sr(["name","year","sourceType","citationId","author","journal","clinicalTrialId","id","openAccess"]),sourceSuggestions:sr(["sourceType","citationId","sourceId","molecularProfileName","diseaseName","comment","submitter","citation","status","submitterId"]),browseDiseases:sr(["name","doid","geneNames","id"]),events:sr(["subject","organizationId","originatingUserId","eventType"]),variants:sr(["featureId","name"]),molecularProfiles:sr(["featureId","name","evidenceStatusFilter"]),comments:sr(["originatingUserId","subject"]),evidenceItems:sr(["diseaseName","therapayName","id","description","evidenceLevel","evidenceDirection","significance","evidenceType","evidenceRating","variantOrigin","variantId","molecularProfileId","assertionId","organizationId","userId","phenotypeId","diseaseId","therapayId","sourceId","geneSymbol","variantName","status","clinicalTrialId"]),assertions:sr(["diseaseName","therapayName","id","name","summary","assertionDirection","significance","assertionType","variantId","molecularProfileId","ampLevel","geneName","variantName","evidenceId","organizationId","userId","phenotypeId","diseaseId","therapayId","status"]),organizations:sr(["name","id"]),flags:sr(["flaggable","flaggingUserId","resolvingUserId","state"]),phenotypes:sr(["hpoId","name","id"]),variantTypes:sr(["soid","name","id"]),therapies:sr(["ncitId","name","id"]),clinicalTrials:sr(["nctId","name","id"]),notifications:sr(["notificationReason","subscriptionId","originatingObject","eventType","originatingUserId","organizationId","includeRead"]),revisions:sr(["subject","status","originatingUserId","fieldName","revisionsetId"]),users:sr(["userName","orgName","userRole"])}}};function Wh(E){return new Ec.C(function(d,p){return new ml.c(function(v){var C,S,Z;try{C=p(d).subscribe({next:function(Me){Me.errors&&(Z=E({graphQLErrors:Me.errors,response:Me,operation:d,forward:p}))?S=Z.subscribe({next:v.next.bind(v),error:v.error.bind(v),complete:v.complete.bind(v)}):v.next(Me)},error:function(Me){(Z=E({operation:d,networkError:Me,graphQLErrors:Me&&Me.result&&Me.result.errors||void 0,forward:p}))?S=Z.subscribe({next:v.next.bind(v),error:v.error.bind(v),complete:v.complete.bind(v)}):v.error(Me)},complete:function(){Z||v.complete.bind(v)()}})}catch(Me){E({networkError:Me,operation:d,forward:p}),v.error(Me)}return function(){C&&C.unsubscribe(),S&&C.unsubscribe()}})})}!function(E){function d(p){var v=E.call(this)||this;return v.link=Wh(p),v}(0,mi.C6)(d,E),d.prototype.request=function(p,v){return this.link.request(p,v)}}(Ec.C);const rs=fh;function op(E){let d=E.create({uri:"/api/graphql",withCredentials:!0});const p=new Ec.C((C,S)=>(C.setContext({headers:{"Civic-Client-Name":"civic-frontend"}}),S(C))),v=Wh(({graphQLErrors:C,networkError:S})=>{C&&console.error("GraphQL Error:",C),S&&console.error("Network Error:",S)});return{link:p.concat(v).concat(d),cache:new Ad({possibleTypes:ru.possibleTypes,typePolicies:rs}),defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",errorPolicy:"none",notifyOnNetworkStatusChange:!0,returnPartialData:!1}}}}let Xh=(()=>{class E{static#e=this.\u0275fac=function(v){return new(v||E)};static#t=this.\u0275mod=r.$C({type:E});static#n=this.\u0275inj=r.G2t({providers:[{provide:Jc.EM,useValue:{useInitialLoading:!0}},{provide:Jc.$Y,useFactory:op,deps:[Gh]}],imports:[Jc._9]})}return E})();var rp=a(7391);let gh=(()=>{class E{static#e=this.\u0275fac=function(v){return new(v||E)};static#t=this.\u0275mod=r.$C({type:E});static#n=this.\u0275inj=r.G2t({imports:[$e.MD,fd.$,C1.Zw,tu.U6,rp.kT]})}return E})(),P4=(()=>{class E{handleError(p){pa.c.production?/Loading chunk [\d]+ failed/.test(p.message)&&confirm("There is an updated version of CiVIC available. Click OK to reload.")&&window.location.reload():console.error(p)}static#e=this.\u0275fac=function(v){return new(v||E)};static#t=this.\u0275prov=r.jDH({token:E,factory:E.\u0275fac})}return E})();var kd=a(8168);function Ra(E){return()=>E.get("/api/status")}(0,$e.EO)(nn);let au=(()=>{class E{static#e=this.\u0275fac=function(v){return new(v||E)};static#t=this.\u0275mod=r.$C({type:E,bootstrap:[Uo]});static#n=this.\u0275inj=r.G2t({providers:[{provide:r.zcH,useClass:P4},{provide:ta._N,useValue:ta.Bh},{provide:r.hnV,useFactory:Ra,deps:[ln.Qq],multi:!0},(0,ln.$R)((0,ln.Sx)(),(0,ln.YH)(),(0,ln.c2)({cookieName:"XSRF-TOKEN"}))],imports:[Fu,xl,t.Bb,Xh,_1.s,ro.Y3.forRoot(Pu),kd.m,gh]})}return E})();if(pa.c.production)(0,r.SmG)();else{const E=function Fs(){return new $r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}();E.unplug(E.find(xi)),E.show(),E.log()}t.sG().bootstrapModule(au).catch(E=>console.error(E))},4319:($t,De,a)=>{a.d(De,{q:()=>r});var t={};function r(){return t}},3511:($t,De,a)=>{function t(r){var m=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return m.setUTCFullYear(r.getFullYear()),r.getTime()-m.getTime()}a.d(De,{A:()=>t})},738:($t,De,a)=>{function t(r,m){if(m.length1?"s":"")+" required, but only "+m.length+" present")}a.d(De,{A:()=>t})},179:($t,De,a)=>{function t(r){if(null===r||!0===r||!1===r)return NaN;var m=Number(r);return isNaN(m)?m:m<0?Math.ceil(m):Math.floor(m)}a.d(De,{A:()=>t})},6746:($t,De,a)=>{a.d(De,{Cg:()=>e,_m:()=>j,s0:()=>z}),Math.pow(10,8);var e=6e4,z=36e5,j=1e3},2777:($t,De,a)=>{a.d(De,{A:()=>m});var t=a(628),r=a(738);function m(e){(0,r.A)(1,arguments);var z=(0,t.A)(e);return Math.floor(z.getMonth()/3)+1}},2764:($t,De,a)=>{a.d(De,{A:()=>z});var t=a(2456),r=a(738),e=a(628);function z(j){if((0,r.A)(1,arguments),!function m(j){return(0,r.A)(1,arguments),j instanceof Date||"object"===(0,t.A)(j)&&"[object Date]"===Object.prototype.toString.call(j)}(j)&&"number"!=typeof j)return!1;var R=(0,e.A)(j);return!isNaN(Number(R))}},9114:($t,De,a)=>{a.d(De,{A:()=>m});var t=a(628),r=a(738);function m(e){(0,r.A)(1,arguments);var z=(0,t.A)(e),j=z.getMonth();return z.setMonth(j-j%3,1),z.setHours(0,0,0,0),z}},6190:($t,De,a)=>{a.d(De,{A:()=>z});var t=a(628),r=a(179),m=a(738),e=a(4319);function z(j,R){var $,k,I,w,P,Q,N,x;(0,m.A)(1,arguments);var oe=(0,e.q)(),ee=(0,r.A)(null!==($=null!==(k=null!==(I=null!==(w=R?.weekStartsOn)&&void 0!==w?w:null==R||null===(P=R.locale)||void 0===P||null===(Q=P.options)||void 0===Q?void 0:Q.weekStartsOn)&&void 0!==I?I:oe.weekStartsOn)&&void 0!==k?k:null===(N=oe.locale)||void 0===N||null===(x=N.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==$?$:0);if(!(ee>=0&&ee<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Ee=(0,t.A)(j),Ie=Ee.getDay(),ce=(Ie{a.d(De,{A:()=>m});var t=a(2456),r=a(738);function m(e){(0,r.A)(1,arguments);var z=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,t.A)(e)&&"[object Date]"===z?new Date(e.getTime()):"number"==typeof e||"[object Number]"===z?new Date(e):(("string"==typeof e||"[object String]"===z)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},9869:($t,De,a)=>{a.d(De,{J1:()=>Ne});var m=function(){return m=Object.assign||function(W){for(var _e,it=1,dt=arguments.length;it=W)break;_e=dt.index+dt[0].length,it+=1}return{line:it,column:W+1-_e}}function je(J,W){const _e=J.locationOffset.column-1,it="".padStart(_e)+J.body,dt=W.line-1,dn=W.line+(J.locationOffset.line-1),si=W.column+(1===W.line?_e:0),Cn=`${J.name}:${dn}:${si}\n`,ni=it.split(/\r\n|[\n\r]/g),ui=ni[dt];if(ui.length>120){const Ni=Math.floor(si/80),Eo=si%80,lo=[];for(let $i=0;$i["|",$i]),["|","^".padStart(Eo)],["|",lo[Ni+1]]])}return Cn+Bt([[dn-1+" |",ni[dt-1]],[`${dn} |`,ui],["|","^".padStart(si)],[`${dn+1} |`,ni[dt+1]]])}function Bt(J){const W=J.filter(([it,dt])=>void 0!==dt),_e=Math.max(...W.map(([it])=>it.length));return W.map(([it,dt])=>it.padStart(_e)+(dt?" "+dt:"")).join("\n")}class Vt extends Error{constructor(W,..._e){var it,dt,Ht;const{nodes:dn,source:wn,positions:si,path:Cn,originalError:ni,extensions:ui}=function Tt(J){const W=J[0];return null==W||"kind"in W||"length"in W?{nodes:W,source:J[1],positions:J[2],path:J[3],originalError:J[4],extensions:J[5]}:W}(_e);super(W),this.name="GraphQLError",this.path=Cn??void 0,this.originalError=ni??void 0,this.nodes=He(Array.isArray(dn)?dn:dn?[dn]:void 0);const Ni=He(null===(it=this.nodes)||void 0===it?void 0:it.map(lo=>lo.loc).filter(lo=>null!=lo));this.source=wn??(null==Ni||null===(dt=Ni[0])||void 0===dt?void 0:dt.source),this.positions=si??Ni?.map(lo=>lo.start),this.locations=si&&wn?si.map(lo=>X(wn,lo)):Ni?.map(lo=>X(lo.source,lo.start));const Eo=function T(J){return"object"==typeof J&&null!==J}(ni?.extensions)?ni?.extensions:void 0;this.extensions=null!==(Ht=ui??Eo)&&void 0!==Ht?Ht:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=ni&&ni.stack?Object.defineProperty(this,"stack",{value:ni.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Vt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let W=this.message;if(this.nodes)for(const _e of this.nodes)_e.loc&&(W+="\n\n"+je((J=_e.loc).source,X(J.source,J.start)));else if(this.source&&this.locations)for(const _e of this.locations)W+="\n\n"+je(this.source,_e);var J;return W}toJSON(){const W={message:this.message};return null!=this.locations&&(W.locations=this.locations),null!=this.path&&(W.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(W.extensions=this.extensions),W}}function He(J){return void 0===J||0===J.length?void 0:J}function ft(J,W,_e){return new Vt(`Syntax Error: ${_e}`,{source:J,positions:[W]})}var St=a(1222),kt=function(J){return J.QUERY="QUERY",J.MUTATION="MUTATION",J.SUBSCRIPTION="SUBSCRIPTION",J.FIELD="FIELD",J.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",J.FRAGMENT_SPREAD="FRAGMENT_SPREAD",J.INLINE_FRAGMENT="INLINE_FRAGMENT",J.VARIABLE_DEFINITION="VARIABLE_DEFINITION",J.SCHEMA="SCHEMA",J.SCALAR="SCALAR",J.OBJECT="OBJECT",J.FIELD_DEFINITION="FIELD_DEFINITION",J.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",J.INTERFACE="INTERFACE",J.UNION="UNION",J.ENUM="ENUM",J.ENUM_VALUE="ENUM_VALUE",J.INPUT_OBJECT="INPUT_OBJECT",J.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",J}(kt||{}),It=a(1955),rn=a(5174),en=a(3725),Xt=function(J){return J.SOF="",J.EOF="",J.BANG="!",J.DOLLAR="$",J.AMP="&",J.PAREN_L="(",J.PAREN_R=")",J.SPREAD="...",J.COLON=":",J.EQUALS="=",J.AT="@",J.BRACKET_L="[",J.BRACKET_R="]",J.BRACE_L="{",J.PIPE="|",J.BRACE_R="}",J.NAME="Name",J.INT="Int",J.FLOAT="Float",J.STRING="String",J.BLOCK_STRING="BlockString",J.COMMENT="Comment",J}(Xt||{});class Tn{constructor(W){const _e=new St.ou(Xt.SOF,0,0,0,0);this.source=W,this.lastToken=_e,this.token=_e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let W=this.token;if(W.kind!==Xt.EOF)do{if(W.next)W=W.next;else{const _e=Xe(this,W.end);W.next=_e,_e.prev=W,W=_e}}while(W.kind===Xt.COMMENT);return W}}function Dn(J){return J>=0&&J<=55295||J>=57344&&J<=1114111}function Mt(J,W){return Ut(J.charCodeAt(W))&&wt(J.charCodeAt(W+1))}function Ut(J){return J>=55296&&J<=56319}function wt(J){return J>=56320&&J<=57343}function Ft(J,W){const _e=J.source.body.codePointAt(W);if(void 0===_e)return Xt.EOF;if(_e>=32&&_e<=126){const it=String.fromCodePoint(_e);return'"'===it?"'\"'":`"${it}"`}return"U+"+_e.toString(16).toUpperCase().padStart(4,"0")}function Qt(J,W,_e,it,dt){return new St.ou(W,_e,it,J.line,1+_e-J.lineStart,dt)}function Xe(J,W){const _e=J.source.body,it=_e.length;let dt=W;for(;dt=48&&J<=57?J-48:J>=65&&J<=70?J-55:J>=97&&J<=102?J-87:-1}function fn(J,W){const _e=J.source.body;switch(_e.charCodeAt(W+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw ft(J.source,W,`Invalid character escape sequence: "${_e.slice(W,W+2)}".`)}function In(J,W){const _e=J.source.body,it=_e.length;let dt=J.lineStart,Ht=W+3,dn=Ht,wn="";const si=[];for(;Ht0||(0,Gn.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,Gn.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class re{constructor(W,_e={}){const it=function An(J){return vn(J,Jt)}(W)?W:new Jt(W);this._lexer=new Tn(it),this._options=_e,this._tokenCounter=0}parseName(){const W=this.expectToken(Xt.NAME);return this.node(W,{kind:It.b.NAME,value:W.value})}parseDocument(){return this.node(this._lexer.token,{kind:It.b.DOCUMENT,definitions:this.many(Xt.SOF,this.parseDefinition,Xt.EOF)})}parseDefinition(){if(this.peek(Xt.BRACE_L))return this.parseOperationDefinition();const W=this.peekDescription(),_e=W?this._lexer.lookahead():this._lexer.token;if(_e.kind===Xt.NAME){switch(_e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(W)throw ft(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(_e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(_e)}parseOperationDefinition(){const W=this._lexer.token;if(this.peek(Xt.BRACE_L))return this.node(W,{kind:It.b.OPERATION_DEFINITION,operation:St.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const _e=this.parseOperationType();let it;return this.peek(Xt.NAME)&&(it=this.parseName()),this.node(W,{kind:It.b.OPERATION_DEFINITION,operation:_e,name:it,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const W=this.expectToken(Xt.NAME);switch(W.value){case"query":return St.cE.QUERY;case"mutation":return St.cE.MUTATION;case"subscription":return St.cE.SUBSCRIPTION}throw this.unexpected(W)}parseVariableDefinitions(){return this.optionalMany(Xt.PAREN_L,this.parseVariableDefinition,Xt.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:It.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Xt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Xt.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const W=this._lexer.token;return this.expectToken(Xt.DOLLAR),this.node(W,{kind:It.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:It.b.SELECTION_SET,selections:this.many(Xt.BRACE_L,this.parseSelection,Xt.BRACE_R)})}parseSelection(){return this.peek(Xt.SPREAD)?this.parseFragment():this.parseField()}parseField(){const W=this._lexer.token,_e=this.parseName();let it,dt;return this.expectOptionalToken(Xt.COLON)?(it=_e,dt=this.parseName()):dt=_e,this.node(W,{kind:It.b.FIELD,alias:it,name:dt,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Xt.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(W){return this.optionalMany(Xt.PAREN_L,W?this.parseConstArgument:this.parseArgument,Xt.PAREN_R)}parseArgument(W=!1){const _e=this._lexer.token,it=this.parseName();return this.expectToken(Xt.COLON),this.node(_e,{kind:It.b.ARGUMENT,name:it,value:this.parseValueLiteral(W)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const W=this._lexer.token;this.expectToken(Xt.SPREAD);const _e=this.expectOptionalKeyword("on");return!_e&&this.peek(Xt.NAME)?this.node(W,{kind:It.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(W,{kind:It.b.INLINE_FRAGMENT,typeCondition:_e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const W=this._lexer.token;return this.expectKeyword("fragment"),this.node(W,!0===this._options.allowLegacyFragmentVariables?{kind:It.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:It.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(W){const _e=this._lexer.token;switch(_e.kind){case Xt.BRACKET_L:return this.parseList(W);case Xt.BRACE_L:return this.parseObject(W);case Xt.INT:return this.advanceLexer(),this.node(_e,{kind:It.b.INT,value:_e.value});case Xt.FLOAT:return this.advanceLexer(),this.node(_e,{kind:It.b.FLOAT,value:_e.value});case Xt.STRING:case Xt.BLOCK_STRING:return this.parseStringLiteral();case Xt.NAME:switch(this.advanceLexer(),_e.value){case"true":return this.node(_e,{kind:It.b.BOOLEAN,value:!0});case"false":return this.node(_e,{kind:It.b.BOOLEAN,value:!1});case"null":return this.node(_e,{kind:It.b.NULL});default:return this.node(_e,{kind:It.b.ENUM,value:_e.value})}case Xt.DOLLAR:if(W){if(this.expectToken(Xt.DOLLAR),this._lexer.token.kind===Xt.NAME)throw ft(this._lexer.source,_e.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(_e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const W=this._lexer.token;return this.advanceLexer(),this.node(W,{kind:It.b.STRING,value:W.value,block:W.kind===Xt.BLOCK_STRING})}parseList(W){return this.node(this._lexer.token,{kind:It.b.LIST,values:this.any(Xt.BRACKET_L,()=>this.parseValueLiteral(W),Xt.BRACKET_R)})}parseObject(W){return this.node(this._lexer.token,{kind:It.b.OBJECT,fields:this.any(Xt.BRACE_L,()=>this.parseObjectField(W),Xt.BRACE_R)})}parseObjectField(W){const _e=this._lexer.token,it=this.parseName();return this.expectToken(Xt.COLON),this.node(_e,{kind:It.b.OBJECT_FIELD,name:it,value:this.parseValueLiteral(W)})}parseDirectives(W){const _e=[];for(;this.peek(Xt.AT);)_e.push(this.parseDirective(W));return _e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(W){const _e=this._lexer.token;return this.expectToken(Xt.AT),this.node(_e,{kind:It.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(W)})}parseTypeReference(){const W=this._lexer.token;let _e;if(this.expectOptionalToken(Xt.BRACKET_L)){const it=this.parseTypeReference();this.expectToken(Xt.BRACKET_R),_e=this.node(W,{kind:It.b.LIST_TYPE,type:it})}else _e=this.parseNamedType();return this.expectOptionalToken(Xt.BANG)?this.node(W,{kind:It.b.NON_NULL_TYPE,type:_e}):_e}parseNamedType(){return this.node(this._lexer.token,{kind:It.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Xt.STRING)||this.peek(Xt.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const W=this._lexer.token,_e=this.parseDescription();this.expectKeyword("schema");const it=this.parseConstDirectives(),dt=this.many(Xt.BRACE_L,this.parseOperationTypeDefinition,Xt.BRACE_R);return this.node(W,{kind:It.b.SCHEMA_DEFINITION,description:_e,directives:it,operationTypes:dt})}parseOperationTypeDefinition(){const W=this._lexer.token,_e=this.parseOperationType();this.expectToken(Xt.COLON);const it=this.parseNamedType();return this.node(W,{kind:It.b.OPERATION_TYPE_DEFINITION,operation:_e,type:it})}parseScalarTypeDefinition(){const W=this._lexer.token,_e=this.parseDescription();this.expectKeyword("scalar");const it=this.parseName(),dt=this.parseConstDirectives();return this.node(W,{kind:It.b.SCALAR_TYPE_DEFINITION,description:_e,name:it,directives:dt})}parseObjectTypeDefinition(){const W=this._lexer.token,_e=this.parseDescription();this.expectKeyword("type");const it=this.parseName(),dt=this.parseImplementsInterfaces(),Ht=this.parseConstDirectives(),dn=this.parseFieldsDefinition();return this.node(W,{kind:It.b.OBJECT_TYPE_DEFINITION,description:_e,name:it,interfaces:dt,directives:Ht,fields:dn})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Xt.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Xt.BRACE_L,this.parseFieldDefinition,Xt.BRACE_R)}parseFieldDefinition(){const W=this._lexer.token,_e=this.parseDescription(),it=this.parseName(),dt=this.parseArgumentDefs();this.expectToken(Xt.COLON);const Ht=this.parseTypeReference(),dn=this.parseConstDirectives();return this.node(W,{kind:It.b.FIELD_DEFINITION,description:_e,name:it,arguments:dt,type:Ht,directives:dn})}parseArgumentDefs(){return this.optionalMany(Xt.PAREN_L,this.parseInputValueDef,Xt.PAREN_R)}parseInputValueDef(){const W=this._lexer.token,_e=this.parseDescription(),it=this.parseName();this.expectToken(Xt.COLON);const dt=this.parseTypeReference();let Ht;this.expectOptionalToken(Xt.EQUALS)&&(Ht=this.parseConstValueLiteral());const dn=this.parseConstDirectives();return this.node(W,{kind:It.b.INPUT_VALUE_DEFINITION,description:_e,name:it,type:dt,defaultValue:Ht,directives:dn})}parseInterfaceTypeDefinition(){const W=this._lexer.token,_e=this.parseDescription();this.expectKeyword("interface");const it=this.parseName(),dt=this.parseImplementsInterfaces(),Ht=this.parseConstDirectives(),dn=this.parseFieldsDefinition();return this.node(W,{kind:It.b.INTERFACE_TYPE_DEFINITION,description:_e,name:it,interfaces:dt,directives:Ht,fields:dn})}parseUnionTypeDefinition(){const W=this._lexer.token,_e=this.parseDescription();this.expectKeyword("union");const it=this.parseName(),dt=this.parseConstDirectives(),Ht=this.parseUnionMemberTypes();return this.node(W,{kind:It.b.UNION_TYPE_DEFINITION,description:_e,name:it,directives:dt,types:Ht})}parseUnionMemberTypes(){return this.expectOptionalToken(Xt.EQUALS)?this.delimitedMany(Xt.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const W=this._lexer.token,_e=this.parseDescription();this.expectKeyword("enum");const it=this.parseName(),dt=this.parseConstDirectives(),Ht=this.parseEnumValuesDefinition();return this.node(W,{kind:It.b.ENUM_TYPE_DEFINITION,description:_e,name:it,directives:dt,values:Ht})}parseEnumValuesDefinition(){return this.optionalMany(Xt.BRACE_L,this.parseEnumValueDefinition,Xt.BRACE_R)}parseEnumValueDefinition(){const W=this._lexer.token,_e=this.parseDescription(),it=this.parseEnumValueName(),dt=this.parseConstDirectives();return this.node(W,{kind:It.b.ENUM_VALUE_DEFINITION,description:_e,name:it,directives:dt})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw ft(this._lexer.source,this._lexer.token.start,`${et(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const W=this._lexer.token,_e=this.parseDescription();this.expectKeyword("input");const it=this.parseName(),dt=this.parseConstDirectives(),Ht=this.parseInputFieldsDefinition();return this.node(W,{kind:It.b.INPUT_OBJECT_TYPE_DEFINITION,description:_e,name:it,directives:dt,fields:Ht})}parseInputFieldsDefinition(){return this.optionalMany(Xt.BRACE_L,this.parseInputValueDef,Xt.BRACE_R)}parseTypeSystemExtension(){const W=this._lexer.lookahead();if(W.kind===Xt.NAME)switch(W.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(W)}parseSchemaExtension(){const W=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const _e=this.parseConstDirectives(),it=this.optionalMany(Xt.BRACE_L,this.parseOperationTypeDefinition,Xt.BRACE_R);if(0===_e.length&&0===it.length)throw this.unexpected();return this.node(W,{kind:It.b.SCHEMA_EXTENSION,directives:_e,operationTypes:it})}parseScalarTypeExtension(){const W=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const _e=this.parseName(),it=this.parseConstDirectives();if(0===it.length)throw this.unexpected();return this.node(W,{kind:It.b.SCALAR_TYPE_EXTENSION,name:_e,directives:it})}parseObjectTypeExtension(){const W=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const _e=this.parseName(),it=this.parseImplementsInterfaces(),dt=this.parseConstDirectives(),Ht=this.parseFieldsDefinition();if(0===it.length&&0===dt.length&&0===Ht.length)throw this.unexpected();return this.node(W,{kind:It.b.OBJECT_TYPE_EXTENSION,name:_e,interfaces:it,directives:dt,fields:Ht})}parseInterfaceTypeExtension(){const W=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const _e=this.parseName(),it=this.parseImplementsInterfaces(),dt=this.parseConstDirectives(),Ht=this.parseFieldsDefinition();if(0===it.length&&0===dt.length&&0===Ht.length)throw this.unexpected();return this.node(W,{kind:It.b.INTERFACE_TYPE_EXTENSION,name:_e,interfaces:it,directives:dt,fields:Ht})}parseUnionTypeExtension(){const W=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const _e=this.parseName(),it=this.parseConstDirectives(),dt=this.parseUnionMemberTypes();if(0===it.length&&0===dt.length)throw this.unexpected();return this.node(W,{kind:It.b.UNION_TYPE_EXTENSION,name:_e,directives:it,types:dt})}parseEnumTypeExtension(){const W=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const _e=this.parseName(),it=this.parseConstDirectives(),dt=this.parseEnumValuesDefinition();if(0===it.length&&0===dt.length)throw this.unexpected();return this.node(W,{kind:It.b.ENUM_TYPE_EXTENSION,name:_e,directives:it,values:dt})}parseInputObjectTypeExtension(){const W=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const _e=this.parseName(),it=this.parseConstDirectives(),dt=this.parseInputFieldsDefinition();if(0===it.length&&0===dt.length)throw this.unexpected();return this.node(W,{kind:It.b.INPUT_OBJECT_TYPE_EXTENSION,name:_e,directives:it,fields:dt})}parseDirectiveDefinition(){const W=this._lexer.token,_e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Xt.AT);const it=this.parseName(),dt=this.parseArgumentDefs(),Ht=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const dn=this.parseDirectiveLocations();return this.node(W,{kind:It.b.DIRECTIVE_DEFINITION,description:_e,name:it,arguments:dt,repeatable:Ht,locations:dn})}parseDirectiveLocations(){return this.delimitedMany(Xt.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const W=this._lexer.token,_e=this.parseName();if(Object.prototype.hasOwnProperty.call(kt,_e.value))return _e;throw this.unexpected(W)}node(W,_e){return!0!==this._options.noLocation&&(_e.loc=new St.aZ(W,this._lexer.lastToken,this._lexer.source)),_e}peek(W){return this._lexer.token.kind===W}expectToken(W){const _e=this._lexer.token;if(_e.kind===W)return this.advanceLexer(),_e;throw ft(this._lexer.source,_e.start,`Expected ${_t(W)}, found ${et(_e)}.`)}expectOptionalToken(W){return this._lexer.token.kind===W&&(this.advanceLexer(),!0)}expectKeyword(W){const _e=this._lexer.token;if(_e.kind!==Xt.NAME||_e.value!==W)throw ft(this._lexer.source,_e.start,`Expected "${W}", found ${et(_e)}.`);this.advanceLexer()}expectOptionalKeyword(W){const _e=this._lexer.token;return _e.kind===Xt.NAME&&_e.value===W&&(this.advanceLexer(),!0)}unexpected(W){const _e=W??this._lexer.token;return ft(this._lexer.source,_e.start,`Unexpected ${et(_e)}.`)}any(W,_e,it){this.expectToken(W);const dt=[];for(;!this.expectOptionalToken(it);)dt.push(_e.call(this));return dt}optionalMany(W,_e,it){if(this.expectOptionalToken(W)){const dt=[];do{dt.push(_e.call(this))}while(!this.expectOptionalToken(it));return dt}return[]}many(W,_e,it){this.expectToken(W);const dt=[];do{dt.push(_e.call(this))}while(!this.expectOptionalToken(it));return dt}delimitedMany(W,_e){this.expectOptionalToken(W);const it=[];do{it.push(_e.call(this))}while(this.expectOptionalToken(W));return it}advanceLexer(){const{maxTokens:W}=this._options,_e=this._lexer.advance();if(void 0!==W&&_e.kind!==Xt.EOF&&(++this._tokenCounter,this._tokenCounter>W))throw ft(this._lexer.source,_e.start,`Document contains more that ${W} tokens. Parsing aborted.`)}}function et(J){const W=J.value;return _t(J.kind)+(null!=W?` "${W}"`:"")}function _t(J){return function Jn(J){return J===Xt.BANG||J===Xt.DOLLAR||J===Xt.AMP||J===Xt.PAREN_L||J===Xt.PAREN_R||J===Xt.SPREAD||J===Xt.COLON||J===Xt.EQUALS||J===Xt.AT||J===Xt.BRACKET_L||J===Xt.BRACKET_R||J===Xt.BRACE_L||J===Xt.PIPE||J===Xt.BRACE_R}(J)?`"${J}"`:J}var mt=new Map,Rt=new Map,ct=!0,Se=!1;function lt(J){return J.replace(/[\s,]+/g," ").trim()}function Ze(J){var W=lt(J);if(!mt.has(W)){var _e=function Yt(J,W){return new re(J,W).parseDocument()}(J,{experimentalFragmentVariables:Se,allowLegacyFragmentVariables:Se});if(!_e||"Document"!==_e.kind)throw new Error("Not a valid GraphQL document.");mt.set(W,function zt(J){var W=new Set(J.definitions);W.forEach(function(it){it.loc&&delete it.loc,Object.keys(it).forEach(function(dt){var Ht=it[dt];Ht&&"object"==typeof Ht&&W.add(Ht)})});var _e=J.loc;return _e&&(delete _e.startToken,delete _e.endToken),J}(function Oe(J){var W=new Set,_e=[];return J.definitions.forEach(function(it){if("FragmentDefinition"===it.kind){var dt=it.name.value,Ht=function de(J){return lt(J.source.body.substring(J.start,J.end))}(it.loc),dn=Rt.get(dt);dn&&!dn.has(Ht)?ct&&console.warn("Warning: fragment with name "+dt+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):dn||Rt.set(dt,dn=new Set),dn.add(Ht),W.has(Ht)||(W.add(Ht),_e.push(it))}else _e.push(it)}),m(m({},J),{definitions:_e})}(_e)))}return mt.get(W)}function Ne(J){for(var W=[],_e=1;_e{a.d(De,{E:()=>r});var t=a(9085);function r(...m){return e=>(0,t.E)(...m)(e)}},9199:($t,De,a)=>{function t(R){return null!=R}a.d(De,{Vq:()=>r,kP:()=>t});const r=t},4412:($t,De,a)=>{a.d(De,{t:()=>r});var t=a(1413);class r extends t.B{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const z=super._subscribe(e);return!z.closed&&e.next(this._value),z}getValue(){const{hasError:e,thrownError:z,_value:j}=this;if(e)throw z;return this._throwIfClosed(),j}next(e){super.next(this._value=e)}}},1985:($t,De,a)=>{a.d(De,{c:()=>$});var t=a(7707),r=a(8359),m=a(3494),e=a(1203),z=a(1026),j=a(8071),R=a(9786);let $=(()=>{class P{constructor(N){N&&(this._subscribe=N)}lift(N){const x=new P;return x.source=this,x.operator=N,x}subscribe(N,x,oe){const ee=function w(P){return P&&P instanceof t.vU||function I(P){return P&&(0,j.T)(P.next)&&(0,j.T)(P.error)&&(0,j.T)(P.complete)}(P)&&(0,r.Uv)(P)}(N)?N:new t.Ms(N,x,oe);return(0,R.Y)(()=>{const{operator:Ee,source:Ie}=this;ee.add(Ee?Ee.call(ee,Ie):Ie?this._subscribe(ee):this._trySubscribe(ee))}),ee}_trySubscribe(N){try{return this._subscribe(N)}catch(x){N.error(x)}}forEach(N,x){return new(x=k(x))((oe,ee)=>{const Ee=new t.Ms({next:Ie=>{try{N(Ie)}catch(ce){ee(ce),Ee.unsubscribe()}},error:ee,complete:oe});this.subscribe(Ee)})}_subscribe(N){var x;return null===(x=this.source)||void 0===x?void 0:x.subscribe(N)}[m.s](){return this}pipe(...N){return(0,e.m)(N)(this)}toPromise(N){return new(N=k(N))((x,oe)=>{let ee;this.subscribe(Ee=>ee=Ee,Ee=>oe(Ee),()=>x(ee))})}}return P.create=Q=>new P(Q),P})();function k(P){var Q;return null!==(Q=P??z.$.Promise)&&void 0!==Q?Q:Promise}},2771:($t,De,a)=>{a.d(De,{m:()=>m});var t=a(1413),r=a(6129);class m extends t.B{constructor(z=1/0,j=1/0,R=r.U){super(),this._bufferSize=z,this._windowTime=j,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=j===1/0,this._bufferSize=Math.max(1,z),this._windowTime=Math.max(1,j)}next(z){const{isStopped:j,_buffer:R,_infiniteTimeWindow:$,_timestampProvider:k,_windowTime:I}=this;j||(R.push(z),!$&&R.push(k.now()+I)),this._trimBuffer(),super.next(z)}_subscribe(z){this._throwIfClosed(),this._trimBuffer();const j=this._innerSubscribe(z),{_infiniteTimeWindow:R,_buffer:$}=this,k=$.slice();for(let I=0;I{a.d(De,{B:()=>R});var t=a(1985),r=a(8359);const e=(0,a(1853).L)(k=>function(){k(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var z=a(7908),j=a(9786);let R=(()=>{class k extends t.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const P=new $(this,this);return P.operator=w,P}_throwIfClosed(){if(this.closed)throw new e}next(w){(0,j.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const P of this.currentObservers)P.next(w)}})}error(w){(0,j.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:P}=this;for(;P.length;)P.shift().error(w)}})}complete(){(0,j.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:P,isStopped:Q,observers:N}=this;return P||Q?r.Kn:(this.currentObservers=null,N.push(w),new r.yU(()=>{this.currentObservers=null,(0,z.o)(N,w)}))}_checkFinalizedStatuses(w){const{hasError:P,thrownError:Q,isStopped:N}=this;P?w.error(Q):N&&w.complete()}asObservable(){const w=new t.c;return w.source=this,w}}return k.create=(I,w)=>new $(I,w),k})();class $ extends R{constructor(I,w){super(),this.destination=I,this.source=w}next(I){var w,P;null===(P=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===P||P.call(w,I)}error(I){var w,P;null===(P=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===P||P.call(w,I)}complete(){var I,w;null===(w=null===(I=this.destination)||void 0===I?void 0:I.complete)||void 0===w||w.call(I)}_subscribe(I){var w,P;return null!==(P=null===(w=this.source)||void 0===w?void 0:w.subscribe(I))&&void 0!==P?P:r.Kn}}},7707:($t,De,a)=>{a.d(De,{Ms:()=>oe,vU:()=>P});var t=a(8071),r=a(8359),m=a(1026),e=a(5334),z=a(5343);const j=k("C",void 0,void 0);function k(Pe,ve,pe){return{kind:Pe,value:ve,error:pe}}var I=a(9270),w=a(9786);class P extends r.yU{constructor(ve){super(),this.isStopped=!1,ve?(this.destination=ve,(0,r.Uv)(ve)&&ve.add(this)):this.destination=ce}static create(ve,pe,U){return new oe(ve,pe,U)}next(ve){this.isStopped?Ie(function $(Pe){return k("N",Pe,void 0)}(ve),this):this._next(ve)}error(ve){this.isStopped?Ie(function R(Pe){return k("E",void 0,Pe)}(ve),this):(this.isStopped=!0,this._error(ve))}complete(){this.isStopped?Ie(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ve){this.destination.next(ve)}_error(ve){try{this.destination.error(ve)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Q=Function.prototype.bind;function N(Pe,ve){return Q.call(Pe,ve)}class x{constructor(ve){this.partialObserver=ve}next(ve){const{partialObserver:pe}=this;if(pe.next)try{pe.next(ve)}catch(U){ee(U)}}error(ve){const{partialObserver:pe}=this;if(pe.error)try{pe.error(ve)}catch(U){ee(U)}else ee(ve)}complete(){const{partialObserver:ve}=this;if(ve.complete)try{ve.complete()}catch(pe){ee(pe)}}}class oe extends P{constructor(ve,pe,U){let M;if(super(),(0,t.T)(ve)||!ve)M={next:ve??void 0,error:pe??void 0,complete:U??void 0};else{let te;this&&m.$.useDeprecatedNextContext?(te=Object.create(ve),te.unsubscribe=()=>this.unsubscribe(),M={next:ve.next&&N(ve.next,te),error:ve.error&&N(ve.error,te),complete:ve.complete&&N(ve.complete,te)}):M=ve}this.destination=new x(M)}}function ee(Pe){m.$.useDeprecatedSynchronousErrorHandling?(0,w.l)(Pe):(0,e.m)(Pe)}function Ie(Pe,ve){const{onStoppedNotification:pe}=m.$;pe&&I.f.setTimeout(()=>pe(Pe,ve))}const ce={closed:!0,next:z.l,error:function Ee(Pe){throw Pe},complete:z.l}},8359:($t,De,a)=>{a.d(De,{Kn:()=>j,yU:()=>z,Uv:()=>R});var t=a(8071);const m=(0,a(1853).L)(k=>function(w){k(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((P,Q)=>`${Q+1}) ${P.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var e=a(7908);class z{constructor(I){this.initialTeardown=I,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let I;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const N of w)N.remove(this);else w.remove(this);const{initialTeardown:P}=this;if((0,t.T)(P))try{P()}catch(N){I=N instanceof m?N.errors:[N]}const{_finalizers:Q}=this;if(Q){this._finalizers=null;for(const N of Q)try{$(N)}catch(x){I=I??[],x instanceof m?I=[...I,...x.errors]:I.push(x)}}if(I)throw new m(I)}}add(I){var w;if(I&&I!==this)if(this.closed)$(I);else{if(I instanceof z){if(I.closed||I._hasParent(this))return;I._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(I)}}_hasParent(I){const{_parentage:w}=this;return w===I||Array.isArray(w)&&w.includes(I)}_addParent(I){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(I),w):w?[w,I]:I}_removeParent(I){const{_parentage:w}=this;w===I?this._parentage=null:Array.isArray(w)&&(0,e.o)(w,I)}remove(I){const{_finalizers:w}=this;w&&(0,e.o)(w,I),I instanceof z&&I._removeParent(this)}}z.EMPTY=(()=>{const k=new z;return k.closed=!0,k})();const j=z.EMPTY;function R(k){return k instanceof z||k&&"closed"in k&&(0,t.T)(k.remove)&&(0,t.T)(k.add)&&(0,t.T)(k.unsubscribe)}function $(k){(0,t.T)(k)?k():k.unsubscribe()}},1026:($t,De,a)=>{a.d(De,{$:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:($t,De,a)=>{a.d(De,{G:()=>j});var t=a(1985),r=a(8359),m=a(9898),e=a(4360),z=a(9974);class j extends t.c{constructor($,k){super(),this.source=$,this.subjectFactory=k,this._subject=null,this._refCount=0,this._connection=null,(0,z.S)($)&&(this.lift=$.lift)}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:$}=this;this._subject=this._connection=null,$?.unsubscribe()}connect(){let $=this._connection;if(!$){$=this._connection=new r.yU;const k=this.getSubject();$.add(this.source.subscribe((0,e._)(k,void 0,()=>{this._teardown(),k.complete()},I=>{this._teardown(),k.error(I)},()=>this._teardown()))),$.closed&&(this._connection=null,$=r.yU.EMPTY)}return $}refCount(){return(0,m.B)()(this)}}},4572:($t,De,a)=>{a.d(De,{z:()=>I});var t=a(1985),r=a(3073),m=a(2806),e=a(3669),z=a(6450),j=a(9326),R=a(8496),$=a(4360),k=a(5225);function I(...Q){const N=(0,j.lI)(Q),x=(0,j.ms)(Q),{args:oe,keys:ee}=(0,r.D)(Q);if(0===oe.length)return(0,m.H)([],N);const Ee=new t.c(function w(Q,N,x=e.D){return oe=>{P(N,()=>{const{length:ee}=Q,Ee=new Array(ee);let Ie=ee,ce=ee;for(let Pe=0;Pe{const ve=(0,m.H)(Q[Pe],N);let pe=!1;ve.subscribe((0,$._)(oe,U=>{Ee[Pe]=U,pe||(pe=!0,ce--),ce||oe.next(x(Ee.slice()))},()=>{--Ie||oe.complete()}))},oe)},oe)}}(oe,N,ee?Ie=>(0,R.e)(ee,Ie):e.D));return x?Ee.pipe((0,z.I)(x)):Ee}function P(Q,N,x){Q?(0,k.N)(x,Q,N):N()}},8793:($t,De,a)=>{a.d(De,{x:()=>z});var t=a(6365),m=a(9326),e=a(2806);function z(...j){return function r(){return(0,t.U)(1)}()((0,e.H)(j,(0,m.lI)(j)))}},9030:($t,De,a)=>{a.d(De,{v:()=>m});var t=a(1985),r=a(8750);function m(e){return new t.c(z=>{(0,r.Tg)(e()).subscribe(z)})}},983:($t,De,a)=>{a.d(De,{w:()=>r});const r=new(a(1985).c)(z=>z.complete())},7468:($t,De,a)=>{a.d(De,{p:()=>$});var t=a(1985),r=a(3073),m=a(8750),e=a(9326),z=a(4360),j=a(6450),R=a(8496);function $(...k){const I=(0,e.ms)(k),{args:w,keys:P}=(0,r.D)(k),Q=new t.c(N=>{const{length:x}=w;if(!x)return void N.complete();const oe=new Array(x);let ee=x,Ee=x;for(let Ie=0;Ie{ce||(ce=!0,Ee--),oe[Ie]=Pe},()=>ee--,void 0,()=>{(!ee||!ce)&&(Ee||N.next(P?(0,R.e)(P,oe):oe),N.complete())}))}});return I?Q.pipe((0,j.I)(I)):Q}},2806:($t,De,a)=>{a.d(De,{H:()=>pe});var t=a(8750),r=a(941),m=a(9974);function e(U,M=0){return(0,m.N)((te,ge)=>{ge.add(U.schedule(()=>te.subscribe(ge),M))})}var R=a(1985),k=a(4761),I=a(8071),w=a(5225);function Q(U,M){if(!U)throw new Error("Iterable cannot be null");return new R.c(te=>{(0,w.N)(te,M,()=>{const ge=U[Symbol.asyncIterator]();(0,w.N)(te,M,()=>{ge.next().then(T=>{T.done?te.complete():te.next(T.value)})},0,!0)})})}var N=a(5055),x=a(9858),oe=a(7441),ee=a(5397),Ee=a(7953),Ie=a(591),ce=a(5196);function pe(U,M){return M?function ve(U,M){if(null!=U){if((0,N.l)(U))return function z(U,M){return(0,t.Tg)(U).pipe(e(M),(0,r.Q)(M))}(U,M);if((0,oe.X)(U))return function $(U,M){return new R.c(te=>{let ge=0;return M.schedule(function(){ge===U.length?te.complete():(te.next(U[ge++]),te.closed||this.schedule())})})}(U,M);if((0,x.y)(U))return function j(U,M){return(0,t.Tg)(U).pipe(e(M),(0,r.Q)(M))}(U,M);if((0,Ee.T)(U))return Q(U,M);if((0,ee.x)(U))return function P(U,M){return new R.c(te=>{let ge;return(0,w.N)(te,M,()=>{ge=U[k.l](),(0,w.N)(te,M,()=>{let T,D;try{({value:T,done:D}=ge.next())}catch(A){return void te.error(A)}D?te.complete():te.next(T)},0,!0)}),()=>(0,I.T)(ge?.return)&&ge.return()})}(U,M);if((0,ce.U)(U))return function Pe(U,M){return Q((0,ce.C)(U),M)}(U,M)}throw(0,Ie.L)(U)}(U,M):(0,t.Tg)(U)}},3726:($t,De,a)=>{a.d(De,{R:()=>I});var t=a(8750),r=a(1985),m=a(1397),e=a(7441),z=a(8071),j=a(6450);const R=["addListener","removeListener"],$=["addEventListener","removeEventListener"],k=["on","off"];function I(x,oe,ee,Ee){if((0,z.T)(ee)&&(Ee=ee,ee=void 0),Ee)return I(x,oe,ee).pipe((0,j.I)(Ee));const[Ie,ce]=function N(x){return(0,z.T)(x.addEventListener)&&(0,z.T)(x.removeEventListener)}(x)?$.map(Pe=>ve=>x[Pe](oe,ve,ee)):function P(x){return(0,z.T)(x.addListener)&&(0,z.T)(x.removeListener)}(x)?R.map(w(x,oe)):function Q(x){return(0,z.T)(x.on)&&(0,z.T)(x.off)}(x)?k.map(w(x,oe)):[];if(!Ie&&(0,e.X)(x))return(0,m.Z)(Pe=>I(Pe,oe,ee))((0,t.Tg)(x));if(!Ie)throw new TypeError("Invalid event target");return new r.c(Pe=>{const ve=(...pe)=>Pe.next(1ce(ve)})}function w(x,oe){return ee=>Ee=>x[ee](oe,Ee)}},3226:($t,De,a)=>{a.d(De,{T:()=>r});var t=a(9030);function r(m,e,z){return(0,t.v)(()=>m()?e:z)}},8750:($t,De,a)=>{a.d(De,{Tg:()=>Q});var t=a(7272),r=a(7441),m=a(9858),e=a(1985),z=a(5055),j=a(7953),R=a(591),$=a(5397),k=a(5196),I=a(8071),w=a(5334),P=a(3494);function Q(Pe){if(Pe instanceof e.c)return Pe;if(null!=Pe){if((0,z.l)(Pe))return function N(Pe){return new e.c(ve=>{const pe=Pe[P.s]();if((0,I.T)(pe.subscribe))return pe.subscribe(ve);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Pe);if((0,r.X)(Pe))return function x(Pe){return new e.c(ve=>{for(let pe=0;pe{Pe.then(pe=>{ve.closed||(ve.next(pe),ve.complete())},pe=>ve.error(pe)).then(null,w.m)})}(Pe);if((0,j.T)(Pe))return Ee(Pe);if((0,$.x)(Pe))return function ee(Pe){return new e.c(ve=>{for(const pe of Pe)if(ve.next(pe),ve.closed)return;ve.complete()})}(Pe);if((0,k.U)(Pe))return function Ie(Pe){return Ee((0,k.C)(Pe))}(Pe)}throw(0,R.L)(Pe)}function Ee(Pe){return new e.c(ve=>{(function ce(Pe,ve){var pe,U,M,te;return(0,t.sH)(this,void 0,void 0,function*(){try{for(pe=(0,t.xN)(Pe);!(U=yield pe.next()).done;)if(ve.next(U.value),ve.closed)return}catch(ge){M={error:ge}}finally{try{U&&!U.done&&(te=pe.return)&&(yield te.call(pe))}finally{if(M)throw M.error}}ve.complete()})})(Pe,ve).catch(pe=>ve.error(pe))})}},605:($t,De,a)=>{a.d(De,{Y:()=>m});var t=a(3236),r=a(1584);function m(e=0,z=t.E){return e<0&&(e=0),(0,r.O)(e,e,z)}},7786:($t,De,a)=>{a.d(De,{h:()=>j});var t=a(6365),r=a(8750),m=a(983),e=a(9326),z=a(2806);function j(...R){const $=(0,e.lI)(R),k=(0,e.R0)(R,1/0),I=R;return I.length?1===I.length?(0,r.Tg)(I[0]):(0,t.U)(k)((0,z.H)(I,$)):m.w}},7673:($t,De,a)=>{a.d(De,{of:()=>m});var t=a(9326),r=a(2806);function m(...e){const z=(0,t.lI)(e);return(0,r.H)(e,z)}},8810:($t,De,a)=>{a.d(De,{$:()=>m});var t=a(1985),r=a(8071);function m(e,z){const j=(0,r.T)(e)?e:()=>e,R=$=>$.error(j());return new t.c(z?$=>z.schedule(R,0,$):R)}},1584:($t,De,a)=>{a.d(De,{O:()=>z});var t=a(1985),r=a(3236),m=a(9470);function z(j=0,R,$=r.b){let k=-1;return null!=R&&((0,m.m)(R)?$=R:k=R),new t.c(I=>{let w=function e(j){return j instanceof Date&&!isNaN(j)}(j)?+j-$.now():j;w<0&&(w=0);let P=0;return $.schedule(function(){I.closed||(I.next(P++),0<=k?this.schedule(void 0,k):I.complete())},w)})}},4360:($t,De,a)=>{a.d(De,{_:()=>r});var t=a(7707);function r(e,z,j,R,$){return new m(e,z,j,R,$)}class m extends t.vU{constructor(z,j,R,$,k,I){super(z),this.onFinalize=k,this.shouldUnsubscribe=I,this._next=j?function(w){try{j(w)}catch(P){z.error(P)}}:super._next,this._error=$?function(w){try{$(w)}catch(P){z.error(P)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch(w){z.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var z;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(z=this.onFinalize)||void 0===z||z.call(this))}}}},3798:($t,De,a)=>{a.d(De,{Z:()=>R});var t=a(3236),r=a(9974),m=a(8750),e=a(4360),j=a(1584);function R($,k=t.E){return function z($){return(0,r.N)((k,I)=>{let w=!1,P=null,Q=null,N=!1;const x=()=>{if(Q?.unsubscribe(),Q=null,w){w=!1;const ee=P;P=null,I.next(ee)}N&&I.complete()},oe=()=>{Q=null,N&&I.complete()};k.subscribe((0,e._)(I,ee=>{w=!0,P=ee,Q||(0,m.Tg)($(ee)).subscribe(Q=(0,e._)(I,x,oe))},()=>{N=!0,(!w||!Q||Q.closed)&&I.complete()}))})}(()=>(0,j.O)($,k))}},9437:($t,De,a)=>{a.d(De,{W:()=>e});var t=a(8750),r=a(4360),m=a(9974);function e(z){return(0,m.N)((j,R)=>{let I,$=null,k=!1;$=j.subscribe((0,r._)(R,void 0,void 0,w=>{I=(0,t.Tg)(z(w,e(z)(j))),$?($.unsubscribe(),$=null,I.subscribe(R)):k=!0})),k&&($.unsubscribe(),$=null,I.subscribe(R))})}},274:($t,De,a)=>{a.d(De,{H:()=>m});var t=a(1397),r=a(8071);function m(e,z){return(0,r.T)(z)?(0,t.Z)(e,z,1):(0,t.Z)(e,1)}},152:($t,De,a)=>{a.d(De,{B:()=>e});var t=a(3236),r=a(9974),m=a(4360);function e(z,j=t.E){return(0,r.N)((R,$)=>{let k=null,I=null,w=null;const P=()=>{if(k){k.unsubscribe(),k=null;const N=I;I=null,$.next(N)}};function Q(){const N=w+z,x=j.now();if(x{I=N,w=j.now(),k||(k=j.schedule(Q,z),$.add(k))},()=>{P(),$.complete()},void 0,()=>{I=k=null}))})}},9901:($t,De,a)=>{a.d(De,{U:()=>m});var t=a(9974),r=a(4360);function m(e){return(0,t.N)((z,j)=>{let R=!1;z.subscribe((0,r._)(j,$=>{R=!0,j.next($)},()=>{R||j.next(e),j.complete()}))})}},1986:($t,De,a)=>{a.d(De,{c:()=>Q});var t=a(3236),r=a(8793),m=a(6697),e=a(9974),z=a(4360),j=a(5343),$=a(3703),k=a(1397),I=a(8750);function w(N,x){return x?oe=>(0,r.x)(x.pipe((0,m.s)(1),function R(){return(0,e.N)((N,x)=>{N.subscribe((0,z._)(x,j.l))})}()),oe.pipe(w(N))):(0,k.Z)((oe,ee)=>(0,I.Tg)(N(oe,ee)).pipe((0,m.s)(1),(0,$.u)(oe)))}var P=a(1584);function Q(N,x=t.E){const oe=(0,P.O)(N,x);return w(()=>oe)}},3294:($t,De,a)=>{a.d(De,{F:()=>e});var t=a(3669),r=a(9974),m=a(4360);function e(j,R=t.D){return j=j??z,(0,r.N)(($,k)=>{let I,w=!0;$.subscribe((0,m._)(k,P=>{const Q=R(P);(w||!j(I,Q))&&(w=!1,I=Q,k.next(P))}))})}function z(j,R){return j===R}},5964:($t,De,a)=>{a.d(De,{p:()=>m});var t=a(9974),r=a(4360);function m(e,z){return(0,t.N)((j,R)=>{let $=0;j.subscribe((0,r._)(R,k=>e.call(z,k,$++)&&R.next(k)))})}},980:($t,De,a)=>{a.d(De,{j:()=>r});var t=a(9974);function r(m){return(0,t.N)((e,z)=>{try{e.subscribe(z)}finally{z.add(m)}})}},1594:($t,De,a)=>{a.d(De,{$:()=>R});var t=a(9350),r=a(5964),m=a(6697),e=a(9901),z=a(3774),j=a(3669);function R($,k){const I=arguments.length>=2;return w=>w.pipe($?(0,r.p)((P,Q)=>$(P,Q,w)):j.D,(0,m.s)(1),I?(0,e.U)(k):(0,z.v)(()=>new t.G))}},6354:($t,De,a)=>{a.d(De,{T:()=>m});var t=a(9974),r=a(4360);function m(e,z){return(0,t.N)((j,R)=>{let $=0;j.subscribe((0,r._)(R,k=>{R.next(e.call(z,k,$++))}))})}},3703:($t,De,a)=>{a.d(De,{u:()=>r});var t=a(6354);function r(m){return(0,t.T)(()=>m)}},6365:($t,De,a)=>{a.d(De,{U:()=>m});var t=a(1397),r=a(3669);function m(e=1/0){return(0,t.Z)(r.D,e)}},1397:($t,De,a)=>{a.d(De,{Z:()=>$});var t=a(6354),r=a(8750),m=a(9974),e=a(5225),z=a(4360),R=a(8071);function $(k,I,w=1/0){return(0,R.T)(I)?$((P,Q)=>(0,t.T)((N,x)=>I(P,N,Q,x))((0,r.Tg)(k(P,Q))),w):("number"==typeof I&&(w=I),(0,m.N)((P,Q)=>function j(k,I,w,P,Q,N,x,oe){const ee=[];let Ee=0,Ie=0,ce=!1;const Pe=()=>{ce&&!ee.length&&!Ee&&I.complete()},ve=U=>Ee{N&&I.next(U),Ee++;let M=!1;(0,r.Tg)(w(U,Ie++)).subscribe((0,z._)(I,te=>{Q?.(te),N?ve(te):I.next(te)},()=>{M=!0},void 0,()=>{if(M)try{for(Ee--;ee.length&&Eepe(te)):pe(te)}Pe()}catch(te){I.error(te)}}))};return k.subscribe((0,z._)(I,ve,()=>{ce=!0,Pe()})),()=>{oe?.()}}(P,Q,k,w)))}},941:($t,De,a)=>{a.d(De,{Q:()=>e});var t=a(5225),r=a(9974),m=a(4360);function e(z,j=0){return(0,r.N)((R,$)=>{R.subscribe((0,m._)($,k=>(0,t.N)($,z,()=>$.next(k),j),()=>(0,t.N)($,z,()=>$.complete(),j),k=>(0,t.N)($,z,()=>$.error(k),j)))})}},3946:($t,De,a)=>{a.d(De,{J:()=>m});var t=a(9974),r=a(4360);function m(){return(0,t.N)((e,z)=>{let j,R=!1;e.subscribe((0,r._)(z,$=>{const k=j;j=$,R&&z.next([k,$]),R=!0}))})}},9085:($t,De,a)=>{a.d(De,{E:()=>r});var t=a(6354);function r(...m){const e=m.length;if(0===e)throw new Error("list of properties cannot be empty.");return(0,t.T)(z=>{let j=z;for(let R=0;R{a.d(De,{B:()=>m});var t=a(9974),r=a(4360);function m(){return(0,t.N)((e,z)=>{let j=null;e._refCount++;const R=(0,r._)(z,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(j=null);const $=e._connection,k=j;j=null,$&&(!k||$===k)&&$.unsubscribe(),z.unsubscribe()});e.subscribe(R),R.closed||(j=e.connect())})}},2816:($t,De,a)=>{a.d(De,{S:()=>e});var t=a(9974),r=a(4360);function e(z,j){return(0,t.N)(function m(z,j,R,$,k){return(I,w)=>{let P=R,Q=j,N=0;I.subscribe((0,r._)(w,x=>{const oe=N++;Q=P?z(Q,x,oe):(P=!0,x),$&&w.next(Q)},k&&(()=>{P&&w.next(Q),w.complete()})))}}(z,j,arguments.length>=2,!0))}},7647:($t,De,a)=>{a.d(De,{u:()=>z});var t=a(8750),r=a(1413),m=a(7707),e=a(9974);function z(R={}){const{connector:$=(()=>new r.B),resetOnError:k=!0,resetOnComplete:I=!0,resetOnRefCountZero:w=!0}=R;return P=>{let Q,N,x,oe=0,ee=!1,Ee=!1;const Ie=()=>{N?.unsubscribe(),N=void 0},ce=()=>{Ie(),Q=x=void 0,ee=Ee=!1},Pe=()=>{const ve=Q;ce(),ve?.unsubscribe()};return(0,e.N)((ve,pe)=>{oe++,!Ee&&!ee&&Ie();const U=x=x??$();pe.add(()=>{oe--,0===oe&&!Ee&&!ee&&(N=j(Pe,w))}),U.subscribe(pe),!Q&&oe>0&&(Q=new m.Ms({next:M=>U.next(M),error:M=>{Ee=!0,Ie(),N=j(ce,k,M),U.error(M)},complete:()=>{ee=!0,Ie(),N=j(ce,I),U.complete()}}),(0,t.Tg)(ve).subscribe(Q))})(P)}}function j(R,$,...k){if(!0===$)return void R();if(!1===$)return;const I=new m.Ms({next:()=>{I.unsubscribe(),R()}});return(0,t.Tg)($(...k)).subscribe(I)}},4668:($t,De,a)=>{a.d(De,{t:()=>m});var t=a(2771),r=a(7647);function m(e,z,j){let R,$=!1;return e&&"object"==typeof e?({bufferSize:R=1/0,windowTime:z=1/0,refCount:$=!1,scheduler:j}=e):R=e??1/0,(0,r.u)({connector:()=>new t.m(R,z,j),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:$})}},5245:($t,De,a)=>{a.d(De,{i:()=>r});var t=a(5964);function r(m){return(0,t.p)((e,z)=>m<=z)}},9172:($t,De,a)=>{a.d(De,{Z:()=>e});var t=a(8793),r=a(9326),m=a(9974);function e(...z){const j=(0,r.lI)(z);return(0,m.N)((R,$)=>{(j?(0,t.x)(z,R,j):(0,t.x)(z,R)).subscribe($)})}},5558:($t,De,a)=>{a.d(De,{n:()=>e});var t=a(8750),r=a(9974),m=a(4360);function e(z,j){return(0,r.N)((R,$)=>{let k=null,I=0,w=!1;const P=()=>w&&!k&&$.complete();R.subscribe((0,m._)($,Q=>{k?.unsubscribe();let N=0;const x=I++;(0,t.Tg)(z(Q,x)).subscribe(k=(0,m._)($,oe=>$.next(j?j(Q,oe,x,N++):oe),()=>{k=null,P()}))},()=>{w=!0,P()}))})}},6697:($t,De,a)=>{a.d(De,{s:()=>e});var t=a(983),r=a(9974),m=a(4360);function e(z){return z<=0?()=>t.w:(0,r.N)((j,R)=>{let $=0;j.subscribe((0,m._)(R,k=>{++$<=z&&(R.next(k),z<=$&&R.complete())}))})}},6977:($t,De,a)=>{a.d(De,{Q:()=>z});var t=a(9974),r=a(4360),m=a(8750),e=a(5343);function z(j){return(0,t.N)((R,$)=>{(0,m.Tg)(j).subscribe((0,r._)($,()=>$.complete(),e.l)),!$.closed&&R.subscribe($)})}},7048:($t,De,a)=>{a.d(De,{v:()=>m});var t=a(9974),r=a(4360);function m(e,z=!1){return(0,t.N)((j,R)=>{let $=0;j.subscribe((0,r._)(R,k=>{const I=e(k,$++);(I||z)&&R.next(k),!I&&R.complete()}))})}},8141:($t,De,a)=>{a.d(De,{M:()=>z});var t=a(8071),r=a(9974),m=a(4360),e=a(3669);function z(j,R,$){const k=(0,t.T)(j)||R||$?{next:j,error:R,complete:$}:j;return k?(0,r.N)((I,w)=>{var P;null===(P=k.subscribe)||void 0===P||P.call(k);let Q=!0;I.subscribe((0,m._)(w,N=>{var x;null===(x=k.next)||void 0===x||x.call(k,N),w.next(N)},()=>{var N;Q=!1,null===(N=k.complete)||void 0===N||N.call(k),w.complete()},N=>{var x;Q=!1,null===(x=k.error)||void 0===x||x.call(k,N),w.error(N)},()=>{var N,x;Q&&(null===(N=k.unsubscribe)||void 0===N||N.call(k)),null===(x=k.finalize)||void 0===x||x.call(k)}))}):e.D}},3386:($t,De,a)=>{a.d(De,{c:()=>R});var t=a(3236),r=a(9974),m=a(4360),e=a(8750),j=a(1584);function R($,k=t.E,I){const w=(0,j.O)($,k);return function z($,k){return(0,r.N)((I,w)=>{const{leading:P=!0,trailing:Q=!1}=k??{};let N=!1,x=null,oe=null,ee=!1;const Ee=()=>{oe?.unsubscribe(),oe=null,Q&&(Pe(),ee&&w.complete())},Ie=()=>{oe=null,ee&&w.complete()},ce=ve=>oe=(0,e.Tg)($(ve)).subscribe((0,m._)(w,Ee,Ie)),Pe=()=>{if(N){N=!1;const ve=x;x=null,w.next(ve),!ee&&ce(ve)}};I.subscribe((0,m._)(w,ve=>{N=!0,x=ve,(!oe||oe.closed)&&(P?Pe():ce(ve))},()=>{ee=!0,(!(Q&&N&&oe)||oe.closed)&&w.complete()}))})}(()=>w,I)}},3774:($t,De,a)=>{a.d(De,{v:()=>e});var t=a(9350),r=a(9974),m=a(4360);function e(j=z){return(0,r.N)((R,$)=>{let k=!1;R.subscribe((0,m._)($,I=>{k=!0,$.next(I)},()=>k?$.complete():$.error(j())))})}function z(){return new t.G}},3993:($t,De,a)=>{a.d(De,{E:()=>R});var t=a(9974),r=a(4360),m=a(8750),e=a(3669),z=a(5343),j=a(9326);function R(...$){const k=(0,j.ms)($);return(0,t.N)((I,w)=>{const P=$.length,Q=new Array(P);let N=$.map(()=>!1),x=!1;for(let oe=0;oe{Q[oe]=ee,!x&&!N[oe]&&(N[oe]=!0,(x=N.every(e.D))&&(N=null))},z.l));I.subscribe((0,r._)(w,oe=>{if(x){const ee=[oe,...Q];w.next(k?k(...ee):ee)}}))})}},6780:($t,De,a)=>{a.d(De,{R:()=>z});var t=a(8359);class r extends t.yU{constructor(R,$){super()}schedule(R,$=0){return this}}const m={setInterval(j,R,...$){const{delegate:k}=m;return k?.setInterval?k.setInterval(j,R,...$):setInterval(j,R,...$)},clearInterval(j){const{delegate:R}=m;return(R?.clearInterval||clearInterval)(j)},delegate:void 0};var e=a(7908);class z extends r{constructor(R,$){super(R,$),this.scheduler=R,this.work=$,this.pending=!1}schedule(R,$=0){var k;if(this.closed)return this;this.state=R;const I=this.id,w=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(w,I,$)),this.pending=!0,this.delay=$,this.id=null!==(k=this.id)&&void 0!==k?k:this.requestAsyncId(w,this.id,$),this}requestAsyncId(R,$,k=0){return m.setInterval(R.flush.bind(R,this),k)}recycleAsyncId(R,$,k=0){if(null!=k&&this.delay===k&&!1===this.pending)return $;null!=$&&m.clearInterval($)}execute(R,$){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const k=this._execute(R,$);if(k)return k;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,$){let I,k=!1;try{this.work(R)}catch(w){k=!0,I=w||new Error("Scheduled action threw falsy error")}if(k)return this.unsubscribe(),I}unsubscribe(){if(!this.closed){const{id:R,scheduler:$}=this,{actions:k}=$;this.work=this.state=this.scheduler=null,this.pending=!1,(0,e.o)(k,this),null!=R&&(this.id=this.recycleAsyncId($,R,null)),this.delay=null,super.unsubscribe()}}}},9687:($t,De,a)=>{a.d(De,{q:()=>m});var t=a(6129);class r{constructor(z,j=r.now){this.schedulerActionCtor=z,this.now=j}schedule(z,j=0,R){return new this.schedulerActionCtor(this,z).schedule(R,j)}}r.now=t.U.now;class m extends r{constructor(z,j=r.now){super(z,j),this.actions=[],this._active=!1}flush(z){const{actions:j}=this;if(this._active)return void j.push(z);let R;this._active=!0;do{if(R=z.execute(z.state,z.delay))break}while(z=j.shift());if(this._active=!1,R){for(;z=j.shift();)z.unsubscribe();throw R}}}},536:($t,De,a)=>{a.d(De,{X:()=>R});var t=a(6780),r=a(8359);const m={schedule(k){let I=requestAnimationFrame,w=cancelAnimationFrame;const{delegate:P}=m;P&&(I=P.requestAnimationFrame,w=P.cancelAnimationFrame);const Q=I(N=>{w=void 0,k(N)});return new r.yU(()=>w?.(Q))},requestAnimationFrame(...k){const{delegate:I}=m;return(I?.requestAnimationFrame||requestAnimationFrame)(...k)},cancelAnimationFrame(...k){const{delegate:I}=m;return(I?.cancelAnimationFrame||cancelAnimationFrame)(...k)},delegate:void 0};var z=a(9687);const R=new class j extends z.q{flush(I){this._active=!0;const w=this._scheduled;this._scheduled=void 0;const{actions:P}=this;let Q;I=I||P.shift();do{if(Q=I.execute(I.state,I.delay))break}while((I=P[0])&&I.id===w&&P.shift());if(this._active=!1,Q){for(;(I=P[0])&&I.id===w&&P.shift();)I.unsubscribe();throw Q}}}(class e extends t.R{constructor(I,w){super(I,w),this.scheduler=I,this.work=w}requestAsyncId(I,w,P=0){return null!==P&&P>0?super.requestAsyncId(I,w,P):(I.actions.push(this),I._scheduled||(I._scheduled=m.requestAnimationFrame(()=>I.flush(void 0))))}recycleAsyncId(I,w,P=0){var Q;if(null!=P?P>0:this.delay>0)return super.recycleAsyncId(I,w,P);const{actions:N}=I;null!=w&&(null===(Q=N[N.length-1])||void 0===Q?void 0:Q.id)!==w&&(m.cancelAnimationFrame(w),I._scheduled=void 0)}})},5007:($t,De,a)=>{a.d(De,{$:()=>N});var t=a(6780);let m,r=1;const e={};function z(oe){return oe in e&&(delete e[oe],!0)}const j={setImmediate(oe){const ee=r++;return e[ee]=!0,m||(m=Promise.resolve()),m.then(()=>z(ee)&&oe()),ee},clearImmediate(oe){z(oe)}},{setImmediate:$,clearImmediate:k}=j,I={setImmediate(...oe){const{delegate:ee}=I;return(ee?.setImmediate||$)(...oe)},clearImmediate(oe){const{delegate:ee}=I;return(ee?.clearImmediate||k)(oe)},delegate:void 0};var P=a(9687);const N=new class Q extends P.q{flush(ee){this._active=!0;const Ee=this._scheduled;this._scheduled=void 0;const{actions:Ie}=this;let ce;ee=ee||Ie.shift();do{if(ce=ee.execute(ee.state,ee.delay))break}while((ee=Ie[0])&&ee.id===Ee&&Ie.shift());if(this._active=!1,ce){for(;(ee=Ie[0])&&ee.id===Ee&&Ie.shift();)ee.unsubscribe();throw ce}}}(class w extends t.R{constructor(ee,Ee){super(ee,Ee),this.scheduler=ee,this.work=Ee}requestAsyncId(ee,Ee,Ie=0){return null!==Ie&&Ie>0?super.requestAsyncId(ee,Ee,Ie):(ee.actions.push(this),ee._scheduled||(ee._scheduled=I.setImmediate(ee.flush.bind(ee,void 0))))}recycleAsyncId(ee,Ee,Ie=0){var ce;if(null!=Ie?Ie>0:this.delay>0)return super.recycleAsyncId(ee,Ee,Ie);const{actions:Pe}=ee;null!=Ee&&(null===(ce=Pe[Pe.length-1])||void 0===ce?void 0:ce.id)!==Ee&&(I.clearImmediate(Ee),ee._scheduled===Ee&&(ee._scheduled=void 0))}})},3236:($t,De,a)=>{a.d(De,{E:()=>m,b:()=>e});var t=a(6780);const m=new(a(9687).q)(t.R),e=m},6129:($t,De,a)=>{a.d(De,{U:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},9270:($t,De,a)=>{a.d(De,{f:()=>t});const t={setTimeout(r,m,...e){const{delegate:z}=t;return z?.setTimeout?z.setTimeout(r,m,...e):setTimeout(r,m,...e)},clearTimeout(r){const{delegate:m}=t;return(m?.clearTimeout||clearTimeout)(r)},delegate:void 0}},4761:($t,De,a)=>{a.d(De,{l:()=>r});const r=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:($t,De,a)=>{a.d(De,{s:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:($t,De,a)=>{a.d(De,{G:()=>r});const r=(0,a(1853).L)(m=>function(){m(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:($t,De,a)=>{a.d(De,{R0:()=>j,lI:()=>z,ms:()=>e});var t=a(8071),r=a(9470);function m(R){return R[R.length-1]}function e(R){return(0,t.T)(m(R))?R.pop():void 0}function z(R){return(0,r.m)(m(R))?R.pop():void 0}function j(R,$){return"number"==typeof m(R)?R.pop():$}},3073:($t,De,a)=>{a.d(De,{D:()=>z});const{isArray:t}=Array,{getPrototypeOf:r,prototype:m,keys:e}=Object;function z(R){if(1===R.length){const $=R[0];if(t($))return{args:$,keys:null};if(function j(R){return R&&"object"==typeof R&&r(R)===m}($)){const k=e($);return{args:k.map(I=>$[I]),keys:k}}}return{args:R,keys:null}}},7908:($t,De,a)=>{function t(r,m){if(r){const e=r.indexOf(m);0<=e&&r.splice(e,1)}}a.d(De,{o:()=>t})},1853:($t,De,a)=>{function t(r){const e=r(z=>{Error.call(z),z.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}a.d(De,{L:()=>t})},8496:($t,De,a)=>{function t(r,m){return r.reduce((e,z,j)=>(e[z]=m[j],e),{})}a.d(De,{e:()=>t})},9786:($t,De,a)=>{a.d(De,{Y:()=>m,l:()=>e});var t=a(1026);let r=null;function m(z){if(t.$.useDeprecatedSynchronousErrorHandling){const j=!r;if(j&&(r={errorThrown:!1,error:null}),z(),j){const{errorThrown:R,error:$}=r;if(r=null,R)throw $}}else z()}function e(z){t.$.useDeprecatedSynchronousErrorHandling&&r&&(r.errorThrown=!0,r.error=z)}},5225:($t,De,a)=>{function t(r,m,e,z=0,j=!1){const R=m.schedule(function(){e(),j?r.add(this.schedule(null,z)):this.unsubscribe()},z);if(r.add(R),!j)return R}a.d(De,{N:()=>t})},3669:($t,De,a)=>{function t(r){return r}a.d(De,{D:()=>t})},7441:($t,De,a)=>{a.d(De,{X:()=>t});const t=r=>r&&"number"==typeof r.length&&"function"!=typeof r},7953:($t,De,a)=>{a.d(De,{T:()=>r});var t=a(8071);function r(m){return Symbol.asyncIterator&&(0,t.T)(m?.[Symbol.asyncIterator])}},8071:($t,De,a)=>{function t(r){return"function"==typeof r}a.d(De,{T:()=>t})},5055:($t,De,a)=>{a.d(De,{l:()=>m});var t=a(3494),r=a(8071);function m(e){return(0,r.T)(e[t.s])}},5397:($t,De,a)=>{a.d(De,{x:()=>m});var t=a(4761),r=a(8071);function m(e){return(0,r.T)(e?.[t.l])}},4402:($t,De,a)=>{a.d(De,{A:()=>m});var t=a(1985),r=a(8071);function m(e){return!!e&&(e instanceof t.c||(0,r.T)(e.lift)&&(0,r.T)(e.subscribe))}},9858:($t,De,a)=>{a.d(De,{y:()=>r});var t=a(8071);function r(m){return(0,t.T)(m?.then)}},5196:($t,De,a)=>{a.d(De,{C:()=>m,U:()=>e});var t=a(7272),r=a(8071);function m(z){return(0,t.AQ)(this,arguments,function*(){const R=z.getReader();try{for(;;){const{value:$,done:k}=yield(0,t.N3)(R.read());if(k)return yield(0,t.N3)(void 0);yield yield(0,t.N3)($)}}finally{R.releaseLock()}})}function e(z){return(0,r.T)(z?.getReader)}},9470:($t,De,a)=>{a.d(De,{m:()=>r});var t=a(8071);function r(m){return m&&(0,t.T)(m.schedule)}},9974:($t,De,a)=>{a.d(De,{N:()=>m,S:()=>r});var t=a(8071);function r(e){return(0,t.T)(e?.lift)}function m(e){return z=>{if(r(z))return z.lift(function(j){try{return e(j,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:($t,De,a)=>{a.d(De,{I:()=>e});var t=a(6354);const{isArray:r}=Array;function e(z){return(0,t.T)(j=>function m(z,j){return r(j)?z(...j):z(j)}(z,j))}},5343:($t,De,a)=>{function t(){}a.d(De,{l:()=>t})},1203:($t,De,a)=>{a.d(De,{F:()=>r,m:()=>m});var t=a(3669);function r(...e){return m(e)}function m(e){return 0===e.length?t.D:1===e.length?e[0]:function(j){return e.reduce((R,$)=>$(R),j)}}},5334:($t,De,a)=>{a.d(De,{m:()=>m});var t=a(1026),r=a(9270);function m(e){r.f.setTimeout(()=>{const{onUnhandledError:z}=t.$;if(!z)throw e;z(e)})}},591:($t,De,a)=>{function t(r){return new TypeError(`You provided ${null!==r&&"object"==typeof r?"an invalid object":`'${r}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(De,{L:()=>t})},1018:($t,De,a)=>{function t(U){return U!==String(parseFloat(U))}a.d(De,{KF:()=>pe});var z=Object.getOwnPropertyNames?function r(U){return Object.getOwnPropertyNames(U).filter(function(M){return U.propertyIsEnumerable(M)&&t(M)})}:Object.keys?function m(U){return Object.keys(U).filter(t)}:function e(U){var M=[];for(var te in U)U.hasOwnProperty(te)&&U.propertyIsEnumerable(te)&&t(te)&&M.push(te);return M},j=function(){function U(M){this.enumObj=M,this.keysList=Object.freeze(z(M));for(var te=this.keysList.length,ge=new Array(te),T=new Map,D=0;D=te.length,value:te.keysList[ge]};return++ge,D}})[Symbol.iterator]=function(){return this},M},U.prototype.values=function(){var M,te=this,ge=0;return(M={next:function(){var D={done:ge>=te.length,value:te.valuesList[ge]};return++ge,D}})[Symbol.iterator]=function(){return this},M},U.prototype.entries=function(){var M,te=this,ge=0;return(M={next:function(){var D={done:ge>=te.length,value:te[ge]};return++ge,D}})[Symbol.iterator]=function(){return this},M},U.prototype[Symbol.iterator]=function(){return this.entries()},U.prototype.forEach=function(M,te){for(var ge=this.length,T=0;T{a.d(De,{C6:()=>r,Cl:()=>m,Tt:()=>e,YH:()=>k,fX:()=>oe,sH:()=>$});var t=function(T,D){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,X){A.__proto__=X}||function(A,X){for(var se in X)Object.prototype.hasOwnProperty.call(X,se)&&(A[se]=X[se])})(T,D)};function r(T,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function A(){this.constructor=T}t(T,D),T.prototype=null===D?Object.create(D):(A.prototype=D.prototype,new A)}var m=function(){return m=Object.assign||function(D){for(var A,X=1,se=arguments.length;X0&&je[je.length-1])&&(6===He[0]||2===He[0])){A=0;continue}if(3===He[0]&&(!je||He[1]>je[0]&&He[1]{function z(T,D,A,X){var Bt,se=arguments.length,je=se<3?D:null===X?X=Object.getOwnPropertyDescriptor(D,A):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)je=Reflect.decorate(T,D,A,X);else for(var Tt=T.length-1;Tt>=0;Tt--)(Bt=T[Tt])&&(je=(se<3?Bt(je):se>3?Bt(D,A,je):Bt(D,A))||je);return se>3&&je&&Object.defineProperty(D,A,je),je}a.d(De,{Cg:()=>z})},7272:($t,De,a)=>{function $(T,D,A,X){return new(A||(A=Promise))(function(je,Bt){function Tt(xt){try{He(X.next(xt))}catch(Lt){Bt(Lt)}}function Vt(xt){try{He(X.throw(xt))}catch(Lt){Bt(Lt)}}function He(xt){xt.done?je(xt.value):function se(je){return je instanceof A?je:new A(function(Bt){Bt(je)})}(xt.value).then(Tt,Vt)}He((X=X.apply(T,D||[])).next())})}function ee(T){return this instanceof ee?(this.v=T,this):new ee(T)}function Ee(T,D,A){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,X=A.apply(T,D||[]),je=[];return se={},Bt("next"),Bt("throw"),Bt("return"),se[Symbol.asyncIterator]=function(){return this},se;function Bt(ft){X[ft]&&(se[ft]=function(St){return new Promise(function(kt,It){je.push([ft,St,kt,It])>1||Tt(ft,St)})})}function Tt(ft,St){try{!function Vt(ft){ft.value instanceof ee?Promise.resolve(ft.value.v).then(He,xt):Lt(je[0][2],ft)}(X[ft](St))}catch(kt){Lt(je[0][3],kt)}}function He(ft){Tt("next",ft)}function xt(ft){Tt("throw",ft)}function Lt(ft,St){ft(St),je.shift(),je.length&&Tt(je[0][0],je[0][1])}}function ce(T){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A,D=T[Symbol.asyncIterator];return D?D.call(T):(T=function P(T){var D="function"==typeof Symbol&&Symbol.iterator,A=D&&T[D],X=0;if(A)return A.call(T);if(T&&"number"==typeof T.length)return{next:function(){return T&&X>=T.length&&(T=void 0),{value:T&&T[X++],done:!T}}};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")}(T),A={},X("next"),X("throw"),X("return"),A[Symbol.asyncIterator]=function(){return this},A);function X(je){A[je]=T[je]&&function(Bt){return new Promise(function(Tt,Vt){!function se(je,Bt,Tt,Vt){Promise.resolve(Vt).then(function(He){je({value:He,done:Tt})},Bt)}(Tt,Vt,(Bt=T[je](Bt)).done,Bt.value)})}}}a.d(De,{AQ:()=>Ee,N3:()=>ee,sH:()=>$,xN:()=>ce})},4523:($t,De,a)=>{function t(m,e,z,j,R,$,k){try{var I=m[$](k),w=I.value}catch(P){return void z(P)}I.done?e(w):Promise.resolve(w).then(j,R)}function r(m){return function(){var e=this,z=arguments;return new Promise(function(j,R){var $=m.apply(e,z);function k(w){t($,j,R,k,I,"next",w)}function I(w){t($,j,R,k,I,"throw",w)}k(void 0)})}}a.d(De,{A:()=>r})},9969:($t,De,a)=>{a.d(De,{FX:()=>te,If:()=>t,K2:()=>j,P:()=>N,hZ:()=>m,i0:()=>e,iF:()=>R,kY:()=>I,kp:()=>r,sf:()=>U,ui:()=>M,wk:()=>$,yc:()=>x});var t=function(ge){return ge[ge.State=0]="State",ge[ge.Transition=1]="Transition",ge[ge.Sequence=2]="Sequence",ge[ge.Group=3]="Group",ge[ge.Animate=4]="Animate",ge[ge.Keyframes=5]="Keyframes",ge[ge.Style=6]="Style",ge[ge.Trigger=7]="Trigger",ge[ge.Reference=8]="Reference",ge[ge.AnimateChild=9]="AnimateChild",ge[ge.AnimateRef=10]="AnimateRef",ge[ge.Query=11]="Query",ge[ge.Stagger=12]="Stagger",ge}(t||{});const r="*";function m(ge,T){return{type:t.Trigger,name:ge,definitions:T,options:{}}}function e(ge,T=null){return{type:t.Animate,styles:T,timings:ge}}function j(ge,T=null){return{type:t.Sequence,steps:ge,options:T}}function R(ge){return{type:t.Style,styles:ge,offset:null}}function $(ge,T,D){return{type:t.State,name:ge,styles:T,options:D}}function I(ge,T,D=null){return{type:t.Transition,expr:ge,animation:T,options:D}}function N(ge,T,D=null){return{type:t.Query,selector:ge,animation:T,options:D}}function x(ge,T){return{type:t.Stagger,timings:ge,animation:T}}class U{constructor(T=0,D=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=T+D}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(T=>T()),this._onDoneFns=[])}onStart(T){this._originalOnStartFns.push(T),this._onStartFns.push(T)}onDone(T){this._originalOnDoneFns.push(T),this._onDoneFns.push(T)}onDestroy(T){this._onDestroyFns.push(T)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(T=>T()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(T=>T()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(T){this._position=this.totalTime?T*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(T){const D="start"==T?this._onStartFns:this._onDoneFns;D.forEach(A=>A()),D.length=0}}class M{constructor(T){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=T;let D=0,A=0,X=0;const se=this.players.length;0==se?queueMicrotask(()=>this._onFinish()):this.players.forEach(je=>{je.onDone(()=>{++D==se&&this._onFinish()}),je.onDestroy(()=>{++A==se&&this._onDestroy()}),je.onStart(()=>{++X==se&&this._onStart()})}),this.totalTime=this.players.reduce((je,Bt)=>Math.max(je,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(T=>T()),this._onDoneFns=[])}init(){this.players.forEach(T=>T.init())}onStart(T){this._onStartFns.push(T)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(T=>T()),this._onStartFns=[])}onDone(T){this._onDoneFns.push(T)}onDestroy(T){this._onDestroyFns.push(T)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(T=>T.play())}pause(){this.players.forEach(T=>T.pause())}restart(){this.players.forEach(T=>T.restart())}finish(){this._onFinish(),this.players.forEach(T=>T.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(T=>T.destroy()),this._onDestroyFns.forEach(T=>T()),this._onDestroyFns=[])}reset(){this.players.forEach(T=>T.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(T){const D=T*this.totalTime;this.players.forEach(A=>{const X=A.totalTime?Math.min(1,D/A.totalTime):1;A.setPosition(X)})}getPosition(){const T=this.players.reduce((D,A)=>null===D||A.totalTime>D.totalTime?A:D,null);return null!=T?T.getPosition():0}beforeDestroy(){this.players.forEach(T=>{T.beforeDestroy&&T.beforeDestroy()})}triggerCallback(T){const D="start"==T?this._onStartFns:this._onDoneFns;D.forEach(A=>A()),D.length=0}}const te="!"},851:($t,De,a)=>{a.d(De,{Pd:()=>ct,vR:()=>ie,kB:()=>Ft,Bu:()=>Vt,FN:()=>ae,GX:()=>wt,_G:()=>H,w6:()=>ze});var t=a(177),r=a(3953),m=a(6860),e=a(1413),z=a(8359),j=a(4412),R=a(7673),$=a(7336),k=a(8141),I=a(152),w=a(5964),P=a(6354),Q=a(5245),N=a(3294),x=a(6977);let ee=(()=>{class Se{create(de){return typeof MutationObserver>"u"?null:new MutationObserver(de)}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)};static#t=this.\u0275prov=r.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})(),ce=(()=>{class Se{static#e=this.\u0275fac=function(Oe){return new(Oe||Se)};static#t=this.\u0275mod=r.$C({type:Se});static#n=this.\u0275inj=r.G2t({providers:[ee]})}return Se})();var Pe=a(4085),ve=a(9327);class Bt{constructor(lt,de){this._items=lt,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new e.B,this._typeaheadSubscription=z.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=Oe=>Oe.disabled,this._pressedLetters=[],this.tabOut=new e.B,this.change=new e.B,lt instanceof r.rOR?this._itemChangesSubscription=lt.changes.subscribe(Oe=>this._itemsChanged(Oe.toArray())):(0,r.Hps)(lt)&&(this._effectRef=(0,r.QZP)(()=>this._itemsChanged(lt()),{injector:de}))}skipPredicate(lt){return this._skipPredicateFn=lt,this}withWrap(lt=!0){return this._wrap=lt,this}withVerticalOrientation(lt=!0){return this._vertical=lt,this}withHorizontalOrientation(lt){return this._horizontal=lt,this}withAllowedModifierKeys(lt){return this._allowedModifierKeys=lt,this}withTypeAhead(lt=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.M)(de=>this._pressedLetters.push(de)),(0,I.B)(lt),(0,w.p)(()=>this._pressedLetters.length>0),(0,P.T)(()=>this._pressedLetters.join(""))).subscribe(de=>{const Oe=this._getItemsArray();for(let zt=1;zt!lt[Ze]||this._allowedModifierKeys.indexOf(Ze)>-1);switch(de){case $.wn:return void this.tabOut.next();case $.n6:if(this._vertical&&zt){this.setNextItemActive();break}return;case $.i7:if(this._vertical&&zt){this.setPreviousItemActive();break}return;case $.LE:if(this._horizontal&&zt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case $.UQ:if(this._horizontal&&zt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case $.yZ:if(this._homeAndEnd&&zt){this.setFirstItemActive();break}return;case $.Kp:if(this._homeAndEnd&&zt){this.setLastItemActive();break}return;case $.w_:if(this._pageUpAndDown.enabled&&zt){const Ze=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Ze>0?Ze:0,1);break}return;case $.dB:if(this._pageUpAndDown.enabled&&zt){const Ze=this._activeItemIndex+this._pageUpAndDown.delta,Ne=this._getItemsArray().length;this._setActiveItemByIndex(Ze=$.A&&de<=$.Z||de>=$.f2&&de<=$.bn)&&this._letterKeyStream.next(String.fromCharCode(de))))}this._pressedLetters=[],lt.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._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(lt){const de=this._getItemsArray(),Oe="number"==typeof lt?lt:de.indexOf(lt);this._activeItem=de[Oe]??null,this._activeItemIndex=Oe}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(lt){this._wrap?this._setActiveInWrapMode(lt):this._setActiveInDefaultMode(lt)}_setActiveInWrapMode(lt){const de=this._getItemsArray();for(let Oe=1;Oe<=de.length;Oe++){const zt=(this._activeItemIndex+lt*Oe+de.length)%de.length;if(!this._skipPredicateFn(de[zt]))return void this.setActiveItem(zt)}}_setActiveInDefaultMode(lt){this._setActiveItemByIndex(this._activeItemIndex+lt,lt)}_setActiveItemByIndex(lt,de){const Oe=this._getItemsArray();if(Oe[lt]){for(;this._skipPredicateFn(Oe[lt]);)if(!Oe[lt+=de])return;this.setActiveItem(lt)}}_getItemsArray(){return(0,r.Hps)(this._items)?this._items():this._items instanceof r.rOR?this._items.toArray():this._items}_itemsChanged(lt){if(this._activeItem){const de=lt.indexOf(this._activeItem);de>-1&&de!==this._activeItemIndex&&(this._activeItemIndex=de)}}}class Vt extends Bt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(lt){return this._origin=lt,this}setActiveItem(lt){super.setActiveItem(lt),this.activeItem&&this.activeItem.focus(this._origin)}}let xt=(()=>{class Se{constructor(de){this._platform=de}isDisabled(de){return de.hasAttribute("disabled")}isVisible(de){return function ft(Se){return!!(Se.offsetWidth||Se.offsetHeight||"function"==typeof Se.getClientRects&&Se.getClientRects().length)}(de)&&"visible"===getComputedStyle(de).visibility}isTabbable(de){if(!this._platform.isBrowser)return!1;const Oe=function Lt(Se){try{return Se.frameElement}catch{return null}}(function Mt(Se){return Se.ownerDocument&&Se.ownerDocument.defaultView||window}(de));if(Oe&&(-1===Tn(Oe)||!this.isVisible(Oe)))return!1;let zt=de.nodeName.toLowerCase(),Ze=Tn(de);return de.hasAttribute("contenteditable")?-1!==Ze:!("iframe"===zt||"object"===zt||this._platform.WEBKIT&&this._platform.IOS&&!function Jn(Se){let lt=Se.nodeName.toLowerCase(),de="input"===lt&&Se.type;return"text"===de||"password"===de||"select"===lt||"textarea"===lt}(de))&&("audio"===zt?!!de.hasAttribute("controls")&&-1!==Ze:"video"===zt?-1!==Ze&&(null!==Ze||this._platform.FIREFOX||de.hasAttribute("controls")):de.tabIndex>=0)}isFocusable(de,Oe){return function Dn(Se){return!function kt(Se){return function rn(Se){return"input"==Se.nodeName.toLowerCase()}(Se)&&"hidden"==Se.type}(Se)&&(function St(Se){let lt=Se.nodeName.toLowerCase();return"input"===lt||"select"===lt||"button"===lt||"textarea"===lt}(Se)||function It(Se){return function en(Se){return"a"==Se.nodeName.toLowerCase()}(Se)&&Se.hasAttribute("href")}(Se)||Se.hasAttribute("contenteditable")||Xt(Se))}(de)&&!this.isDisabled(de)&&(Oe?.ignoreVisibility||this.isVisible(de))}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(r.KVO(m.OD))};static#t=this.\u0275prov=r.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})();function Xt(Se){if(!Se.hasAttribute("tabindex")||void 0===Se.tabIndex)return!1;let lt=Se.getAttribute("tabindex");return!(!lt||isNaN(parseInt(lt,10)))}function Tn(Se){if(!Xt(Se))return null;const lt=parseInt(Se.getAttribute("tabindex")||"",10);return isNaN(lt)?-1:lt}class Ut{get enabled(){return this._enabled}set enabled(lt){this._enabled=lt,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(lt,this._startAnchor),this._toggleAnchorTabIndex(lt,this._endAnchor))}constructor(lt,de,Oe,zt,Ze=!1,Ne){this._element=lt,this._checker=de,this._ngZone=Oe,this._document=zt,this._injector=Ne,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Ze||this.attachAnchors()}destroy(){const lt=this._startAnchor,de=this._endAnchor;lt&&(lt.removeEventListener("focus",this.startAnchorListener),lt.remove()),de&&(de.removeEventListener("focus",this.endAnchorListener),de.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(lt){return new Promise(de=>{this._executeOnStable(()=>de(this.focusInitialElement(lt)))})}focusFirstTabbableElementWhenReady(lt){return new Promise(de=>{this._executeOnStable(()=>de(this.focusFirstTabbableElement(lt)))})}focusLastTabbableElementWhenReady(lt){return new Promise(de=>{this._executeOnStable(()=>de(this.focusLastTabbableElement(lt)))})}_getRegionBoundary(lt){const de=this._element.querySelectorAll(`[cdk-focus-region-${lt}], [cdkFocusRegion${lt}], [cdk-focus-${lt}]`);return"start"==lt?de.length?de[0]:this._getFirstTabbableElement(this._element):de.length?de[de.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(lt){const de=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(de){if(!this._checker.isFocusable(de)){const Oe=this._getFirstTabbableElement(de);return Oe?.focus(lt),!!Oe}return de.focus(lt),!0}return this.focusFirstTabbableElement(lt)}focusFirstTabbableElement(lt){const de=this._getRegionBoundary("start");return de&&de.focus(lt),!!de}focusLastTabbableElement(lt){const de=this._getRegionBoundary("end");return de&&de.focus(lt),!!de}hasAttached(){return this._hasAttached}_getFirstTabbableElement(lt){if(this._checker.isFocusable(lt)&&this._checker.isTabbable(lt))return lt;const de=lt.children;for(let Oe=0;Oe=0;Oe--){const zt=de[Oe].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(de[Oe]):null;if(zt)return zt}return null}_createAnchor(){const lt=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,lt),lt.classList.add("cdk-visually-hidden"),lt.classList.add("cdk-focus-trap-anchor"),lt.setAttribute("aria-hidden","true"),lt}_toggleAnchorTabIndex(lt,de){lt?de.setAttribute("tabindex","0"):de.removeAttribute("tabindex")}toggleAnchors(lt){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(lt,this._startAnchor),this._toggleAnchorTabIndex(lt,this._endAnchor))}_executeOnStable(lt){this._injector?(0,r.mal)(lt,{injector:this._injector}):setTimeout(lt)}}let wt=(()=>{class Se{constructor(de,Oe,zt){this._checker=de,this._ngZone=Oe,this._injector=(0,r.WQX)(r.zZn),this._document=zt}create(de,Oe=!1){return new Ut(de,this._checker,this._ngZone,this._document,Oe,this._injector)}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(r.KVO(xt),r.KVO(r.SKi),r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})(),Ft=(()=>{class Se{get enabled(){return this.focusTrap?.enabled||!1}set enabled(de){this.focusTrap&&(this.focusTrap.enabled=de)}constructor(de,Oe,zt){this._elementRef=de,this._focusTrapFactory=Oe,this._previouslyFocusedElement=null,(0,r.WQX)(m.OD).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(de){const Oe=de.autoCapture;Oe&&!Oe.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,m.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(r.rXU(r.aKT),r.rXU(wt),r.rXU(t.qQ))};static#t=this.\u0275dir=r.FsC({type:Se,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",r.L39],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",r.L39]},exportAs:["cdkTrapFocus"],standalone:!0,features:[r.GFd,r.OA$]})}return Se})();function H(Se){return 0===Se.buttons||0===Se.detail}function ze(Se){const lt=Se.touches&&Se.touches[0]||Se.changedTouches&&Se.changedTouches[0];return!(!lt||-1!==lt.identifier||null!=lt.radiusX&&1!==lt.radiusX||null!=lt.radiusY&&1!==lt.radiusY)}const Qe=new r.nKC("cdk-input-modality-detector-options"),ht={ignoreKeys:[$.A$,$.W3,$.eg,$.Ge,$.FX]},fn=(0,m.BQ)({passive:!0,capture:!0});let In=(()=>{class Se{get mostRecentModality(){return this._modality.value}constructor(de,Oe,zt,Ze){this._platform=de,this._mostRecentTarget=null,this._modality=new j.t(null),this._lastTouchMs=0,this._onKeydown=Ne=>{this._options?.ignoreKeys?.some(Le=>Le===Ne.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,m.Fb)(Ne))},this._onMousedown=Ne=>{Date.now()-this._lastTouchMs<650||(this._modality.next(H(Ne)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.Fb)(Ne))},this._onTouchstart=Ne=>{ze(Ne)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,m.Fb)(Ne))},this._options={...ht,...Ze},this.modalityDetected=this._modality.pipe((0,Q.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,N.F)()),de.isBrowser&&Oe.runOutsideAngular(()=>{zt.addEventListener("keydown",this._onKeydown,fn),zt.addEventListener("mousedown",this._onMousedown,fn),zt.addEventListener("touchstart",this._onTouchstart,fn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fn),document.removeEventListener("mousedown",this._onMousedown,fn),document.removeEventListener("touchstart",this._onTouchstart,fn))}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(r.KVO(m.OD),r.KVO(r.SKi),r.KVO(t.qQ),r.KVO(Qe,8))};static#t=this.\u0275prov=r.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})();var An=function(Se){return Se[Se.IMMEDIATE=0]="IMMEDIATE",Se[Se.EVENTUAL=1]="EVENTUAL",Se}(An||{});const Yt=new r.nKC("cdk-focus-monitor-default-options"),Je=(0,m.BQ)({passive:!0,capture:!0});let ae=(()=>{class Se{constructor(de,Oe,zt,Ze,Ne){this._ngZone=de,this._platform=Oe,this._inputModalityDetector=zt,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 e.B,this._rootNodeFocusAndBlurListener=Le=>{for(let le=(0,m.Fb)(Le);le;le=le.parentElement)"focus"===Le.type?this._onFocus(Le,le):this._onBlur(Le,le)},this._document=Ze,this._detectionMode=Ne?.detectionMode||An.IMMEDIATE}monitor(de,Oe=!1){const zt=(0,Pe.i8)(de);if(!this._platform.isBrowser||1!==zt.nodeType)return(0,R.of)();const Ze=(0,m.KT)(zt)||this._getDocument(),Ne=this._elementInfo.get(zt);if(Ne)return Oe&&(Ne.checkChildren=!0),Ne.subject;const Le={checkChildren:Oe,subject:new e.B,rootNode:Ze};return this._elementInfo.set(zt,Le),this._registerGlobalListeners(Le),Le.subject}stopMonitoring(de){const Oe=(0,Pe.i8)(de),zt=this._elementInfo.get(Oe);zt&&(zt.subject.complete(),this._setClasses(Oe),this._elementInfo.delete(Oe),this._removeGlobalListeners(zt))}focusVia(de,Oe,zt){const Ze=(0,Pe.i8)(de);Ze===this._getDocument().activeElement?this._getClosestElementsInfo(Ze).forEach(([Le,Y])=>this._originChanged(Le,Oe,Y)):(this._setOrigin(Oe),"function"==typeof Ze.focus&&Ze.focus(zt))}ngOnDestroy(){this._elementInfo.forEach((de,Oe)=>this.stopMonitoring(Oe))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(de){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(de)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:de&&this._isLastInteractionFromInputLabel(de)?"mouse":"program"}_shouldBeAttributedToTouch(de){return this._detectionMode===An.EVENTUAL||!!de?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(de,Oe){de.classList.toggle("cdk-focused",!!Oe),de.classList.toggle("cdk-touch-focused","touch"===Oe),de.classList.toggle("cdk-keyboard-focused","keyboard"===Oe),de.classList.toggle("cdk-mouse-focused","mouse"===Oe),de.classList.toggle("cdk-program-focused","program"===Oe)}_setOrigin(de,Oe=!1){this._ngZone.runOutsideAngular(()=>{this._origin=de,this._originFromTouchInteraction="touch"===de&&Oe,this._detectionMode===An.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(de,Oe){const zt=this._elementInfo.get(Oe),Ze=(0,m.Fb)(de);!zt||!zt.checkChildren&&Oe!==Ze||this._originChanged(Oe,this._getFocusOrigin(Ze),zt)}_onBlur(de,Oe){const zt=this._elementInfo.get(Oe);!zt||zt.checkChildren&&de.relatedTarget instanceof Node&&Oe.contains(de.relatedTarget)||(this._setClasses(Oe),this._emitOrigin(zt,null))}_emitOrigin(de,Oe){de.subject.observers.length&&this._ngZone.run(()=>de.subject.next(Oe))}_registerGlobalListeners(de){if(!this._platform.isBrowser)return;const Oe=de.rootNode,zt=this._rootNodeFocusListenerCount.get(Oe)||0;zt||this._ngZone.runOutsideAngular(()=>{Oe.addEventListener("focus",this._rootNodeFocusAndBlurListener,Je),Oe.addEventListener("blur",this._rootNodeFocusAndBlurListener,Je)}),this._rootNodeFocusListenerCount.set(Oe,zt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,x.Q)(this._stopInputModalityDetector)).subscribe(Ze=>{this._setOrigin(Ze,!0)}))}_removeGlobalListeners(de){const Oe=de.rootNode;if(this._rootNodeFocusListenerCount.has(Oe)){const zt=this._rootNodeFocusListenerCount.get(Oe);zt>1?this._rootNodeFocusListenerCount.set(Oe,zt-1):(Oe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Je),Oe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Je),this._rootNodeFocusListenerCount.delete(Oe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(de,Oe,zt){this._setClasses(de,Oe),this._emitOrigin(zt,Oe),this._lastFocusOrigin=Oe}_getClosestElementsInfo(de){const Oe=[];return this._elementInfo.forEach((zt,Ze)=>{(Ze===de||zt.checkChildren&&Ze.contains(de))&&Oe.push([Ze,zt])}),Oe}_isLastInteractionFromInputLabel(de){const{_mostRecentTarget:Oe,mostRecentModality:zt}=this._inputModalityDetector;if("mouse"!==zt||!Oe||Oe===de||"INPUT"!==de.nodeName&&"TEXTAREA"!==de.nodeName||de.disabled)return!1;const Ze=de.labels;if(Ze)for(let Ne=0;Ne{class Se{constructor(de,Oe){this._elementRef=de,this._focusMonitor=Oe,this._focusOrigin=null,this.cdkFocusChange=new r.bkB}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const de=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(de,1===de.nodeType&&de.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Oe=>{this._focusOrigin=Oe,this.cdkFocusChange.emit(Oe)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(r.rXU(r.aKT),r.rXU(ae))};static#t=this.\u0275dir=r.FsC({type:Se,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return Se})();var re=function(Se){return Se[Se.NONE=0]="NONE",Se[Se.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",Se[Se.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",Se}(re||{});const et="cdk-high-contrast-black-on-white",_t="cdk-high-contrast-white-on-black",mt="cdk-high-contrast-active";let Rt=(()=>{class Se{constructor(de,Oe){this._platform=de,this._document=Oe,this._breakpointSubscription=(0,r.WQX)(ve.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return re.NONE;const de=this._document.createElement("div");de.style.backgroundColor="rgb(1,2,3)",de.style.position="absolute",this._document.body.appendChild(de);const Oe=this._document.defaultView||window,zt=Oe&&Oe.getComputedStyle?Oe.getComputedStyle(de):null,Ze=(zt&&zt.backgroundColor||"").replace(/ /g,"");switch(de.remove(),Ze){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return re.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return re.BLACK_ON_WHITE}return re.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const de=this._document.body.classList;de.remove(mt,et,_t),this._hasCheckedHighContrastMode=!0;const Oe=this.getHighContrastMode();Oe===re.BLACK_ON_WHITE?de.add(mt,et):Oe===re.WHITE_ON_BLACK&&de.add(mt,_t)}}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(r.KVO(m.OD),r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})(),ct=(()=>{class Se{constructor(de){de._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(r.KVO(Rt))};static#t=this.\u0275mod=r.$C({type:Se});static#n=this.\u0275inj=r.G2t({imports:[ce]})}return Se})()},8203:($t,De,a)=>{a.d(De,{dS:()=>R,jI:()=>k});var t=a(3953),r=a(177);const m=new t.nKC("cdk-dir-doc",{providedIn:"root",factory:function e(){return(0,t.WQX)(r.qQ)}}),z=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let R=(()=>{class I{constructor(P){this.value="ltr",this.change=new t.bkB,P&&(this.value=function j(I){const w=I?.toLowerCase()||"";return"auto"===w&&typeof navigator<"u"&&navigator?.language?z.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((P.body?P.body.dir:null)||(P.documentElement?P.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(Q){return new(Q||I)(t.KVO(m,8))};static#t=this.\u0275prov=t.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),k=(()=>{class I{static#e=this.\u0275fac=function(Q){return new(Q||I)};static#t=this.\u0275mod=t.$C({type:I});static#n=this.\u0275inj=t.G2t({})}return I})()},3801:($t,De,a)=>{a.d(De,{B0:()=>e});var t=a(177),r=a(3953);class m{constructor(k,I){this._document=I;const w=this._textarea=this._document.createElement("textarea"),P=w.style;P.position="fixed",P.top=P.opacity="0",P.left="-999em",w.setAttribute("aria-hidden","true"),w.value=k,w.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(w)}copy(){const k=this._textarea;let I=!1;try{if(k){const w=this._document.activeElement;k.select(),k.setSelectionRange(0,k.value.length),I=this._document.execCommand("copy"),w&&w.focus()}}catch{}return I}destroy(){const k=this._textarea;k&&(k.remove(),this._textarea=void 0)}}let e=(()=>{class ${constructor(I){this._document=I}copy(I){const w=this.beginCopy(I),P=w.copy();return w.destroy(),P}beginCopy(I){return new m(I,this._document)}static#e=this.\u0275fac=function(w){return new(w||$)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})()},4085:($t,De,a)=>{a.d(De,{FG:()=>z,OE:()=>m,a1:()=>j,he:()=>r,i8:()=>R});var t=a(3953);function r(k){return null!=k&&"false"!=`${k}`}function m(k,I=0){return function e(k){return!isNaN(parseFloat(k))&&!isNaN(Number(k))}(k)?Number(k):I}function z(k){return Array.isArray(k)?k:[k]}function j(k){return null==k?"":"string"==typeof k?k:`${k}px`}function R(k){return k instanceof t.aKT?k.nativeElement:k}},1391:($t,De,a)=>{a.d(De,{Fb:()=>ae,T1:()=>_t});var t=a(3953),r=a(177),m=a(946),e=a(851),z=a(4085),j=a(6860),R=a(1413),$=a(8359),k=a(605),I=a(536),w=a(1985),P=a(7786),Q=a(4412),N=a(6977),x=a(6354),oe=a(6697),ee=a(8141),Ee=a(5558),Ie=a(9172),ce=a(8203);function Pe(Le){const Y=Le.cloneNode(!0),le=Y.querySelectorAll("[id]"),V=Le.nodeName.toLowerCase();Y.removeAttribute("id");for(let Ve=0;Ve=V&&le<=Ve&&Y>=Ce&&Y<=J}function T(Le,Y,le){Le.top+=Y,Le.bottom=Le.top+Le.height,Le.left+=le,Le.right=Le.left+Le.width}function D(Le,Y,le,V){const{top:Ve,right:Ce,bottom:J,left:W,width:_e,height:it}=Le,dt=_e*Y,Ht=it*Y;return V>Ve-Ht&&VW-dt&&le{this.positions.set(le,{scrollPosition:{top:le.scrollTop,left:le.scrollLeft},clientRect:te(le)})})}handleScroll(Y){const le=(0,j.Fb)(Y),V=this.positions.get(le);if(!V)return null;const Ve=V.scrollPosition;let Ce,J;if(le===this._document){const it=this.getViewportScrollPosition();Ce=it.top,J=it.left}else Ce=le.scrollTop,J=le.scrollLeft;const W=Ve.top-Ce,_e=Ve.left-J;return this.positions.forEach((it,dt)=>{it.clientRect&&le!==dt&&le.contains(dt)&&T(it.clientRect,W,_e)}),Ve.top=Ce,Ve.left=J,{top:W,left:_e}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function X(Le,Y){const le=Le.rootNodes;if(1===le.length&&le[0].nodeType===Y.ELEMENT_NODE)return le[0];const V=Y.createElement("div");return le.forEach(Ve=>V.appendChild(Ve)),V}function se(Le,Y,le){for(let V in Y)if(Y.hasOwnProperty(V)){const Ve=Y[V];Ve?Le.setProperty(V,Ve,le?.has(V)?"important":""):Le.removeProperty(V)}return Le}function je(Le,Y){const le=Y?"":"none";se(Le.style,{"touch-action":Y?"":"none","-webkit-user-drag":Y?"":"none","-webkit-tap-highlight-color":Y?"":"transparent","user-select":le,"-ms-user-select":le,"-webkit-user-select":le,"-moz-user-select":le})}function Bt(Le,Y,le){se(Le.style,{position:Y?"":"fixed",top:Y?"":"0",opacity:Y?"":"0",left:Y?"":"-999em"},le)}function Tt(Le,Y){return Y&&"none"!=Y?Le+" "+Y:Le}function Vt(Le,Y){Le.style.width=`${Y.width}px`,Le.style.height=`${Y.height}px`,Le.style.transform=He(Y.left,Y.top)}function He(Le,Y){return`translate3d(${Math.round(Le)}px, ${Math.round(Y)}px, 0)`}function xt(Le){const Y=Le.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Le)*Y}function ft(Le,Y){return Le.getPropertyValue(Y).split(",").map(V=>V.trim())}const St=new Set(["position"]);class kt{get element(){return this._preview}constructor(Y,le,V,Ve,Ce,J,W,_e,it){this._document=Y,this._rootElement=le,this._direction=V,this._initialDomRect=Ve,this._previewTemplate=Ce,this._previewClass=J,this._pickupPositionOnPage=W,this._initialTransform=_e,this._zIndex=it}attach(Y){this._preview=this._createPreview(),Y.appendChild(this._preview),"showPopover"in this._preview&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(Y){this._preview.style.transform=Y}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(Y){this._preview.classList.add(Y)}getTransitionDuration(){return function Lt(Le){const Y=getComputedStyle(Le),le=ft(Y,"transition-property"),V=le.find(W=>"transform"===W||"all"===W);if(!V)return 0;const Ve=le.indexOf(V),Ce=ft(Y,"transition-duration"),J=ft(Y,"transition-delay");return xt(Ce[Ve])+xt(J[Ve])}(this._preview)}addEventListener(Y,le){this._preview.addEventListener(Y,le)}removeEventListener(Y,le){this._preview.removeEventListener(Y,le)}_createPreview(){const Y=this._previewTemplate,le=this._previewClass,V=Y?Y.template:null;let Ve;if(V&&Y){const Ce=Y.matchSize?this._initialDomRect:null,J=Y.viewContainer.createEmbeddedView(V,Y.context);J.detectChanges(),Ve=X(J,this._document),this._previewEmbeddedView=J,Y.matchSize?Vt(Ve,Ce):Ve.style.transform=He(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Ve=Pe(this._rootElement),Vt(Ve,this._initialDomRect),this._initialTransform&&(Ve.style.transform=this._initialTransform);return se(Ve.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},St),je(Ve,!1),Ve.classList.add("cdk-drag-preview"),Ve.setAttribute("popover","manual"),Ve.setAttribute("dir",this._direction),le&&(Array.isArray(le)?le.forEach(Ce=>Ve.classList.add(Ce)):Ve.classList.add(le)),Ve}}const It=(0,j.BQ)({passive:!0}),rn=(0,j.BQ)({passive:!1}),en=(0,j.BQ)({passive:!1,capture:!0}),Tn=new Set(["position"]);class Jn{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Y){Y!==this._disabled&&(this._disabled=Y,this._toggleNativeDragInteractions(),this._handles.forEach(le=>je(le,Y)))}constructor(Y,le,V,Ve,Ce,J){this._config=le,this._document=V,this._ngZone=Ve,this._viewportRuler=Ce,this._dragDropRegistry=J,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=(0,t.vPA)(!1),this._moveEvents=new R.B,this._pointerMoveSubscription=$.yU.EMPTY,this._pointerUpSubscription=$.yU.EMPTY,this._scrollSubscription=$.yU.EMPTY,this._resizeSubscription=$.yU.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new R.B,this.started=new R.B,this.released=new R.B,this.ended=new R.B,this.entered=new R.B,this.exited=new R.B,this.dropped=new R.B,this.moved=this._moveEvents,this._pointerDown=W=>{if(this.beforeStarted.next(),this._handles.length){const _e=this._getTargetHandle(W);_e&&!this._disabledHandles.has(_e)&&!this.disabled&&this._initializeDragSequence(_e,W)}else this.disabled||this._initializeDragSequence(this._rootElement,W)},this._pointerMove=W=>{const _e=this._getPointerPositionOnPage(W);if(!this._hasStartedDragging()){if(Math.abs(_e.x-this._pickupPositionOnPage.x)+Math.abs(_e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const wn=Date.now()>=this._dragStartTime+this._getDragStartDelay(W),si=this._dropContainer;if(!wn)return void this._endDragSequence(W);(!si||!si.isDragging()&&!si.isReceiving())&&(W.cancelable&&W.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(W)))}return}W.cancelable&&W.preventDefault();const it=this._getConstrainedPointerPosition(_e);if(this._hasMoved=!0,this._lastKnownPointerPosition=_e,this._updatePointerDirectionDelta(it),this._dropContainer)this._updateActiveDropContainer(it,_e);else{const dt=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,Ht=this._activeTransform;Ht.x=it.x-dt.x+this._passiveTransform.x,Ht.y=it.y-dt.y+this._passiveTransform.y,this._applyRootElementTransform(Ht.x,Ht.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:it,event:W,distance:this._getDragDistance(it),delta:this._pointerDirectionDelta})})},this._pointerUp=W=>{this._endDragSequence(W)},this._nativeDragStart=W=>{if(this._handles.length){const _e=this._getTargetHandle(W);_e&&!this._disabledHandles.has(_e)&&!this.disabled&&W.preventDefault()}else this.disabled||W.preventDefault()},this.withRootElement(Y).withParent(le.parentDragRef||null),this._parentPositions=new A(V),J.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Y){this._handles=Y.map(V=>(0,z.i8)(V)),this._handles.forEach(V=>je(V,this.disabled)),this._toggleNativeDragInteractions();const le=new Set;return this._disabledHandles.forEach(V=>{this._handles.indexOf(V)>-1&&le.add(V)}),this._disabledHandles=le,this}withPreviewTemplate(Y){return this._previewTemplate=Y,this}withPlaceholderTemplate(Y){return this._placeholderTemplate=Y,this}withRootElement(Y){const le=(0,z.i8)(Y);return le!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{le.addEventListener("mousedown",this._pointerDown,rn),le.addEventListener("touchstart",this._pointerDown,It),le.addEventListener("dragstart",this._nativeDragStart,rn)}),this._initialTransform=void 0,this._rootElement=le),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Y){return this._boundaryElement=Y?(0,z.i8)(Y):null,this._resizeSubscription.unsubscribe(),Y&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Y){return this._parentDragRef=Y,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Y){!this._disabledHandles.has(Y)&&this._handles.indexOf(Y)>-1&&(this._disabledHandles.add(Y),je(Y,!0))}enableHandle(Y){this._disabledHandles.has(Y)&&(this._disabledHandles.delete(Y),je(Y,this.disabled))}withDirection(Y){return this._direction=Y,this}_withDropContainer(Y){this._dropContainer=Y}getFreeDragPosition(){const Y=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Y.x,y:Y.y}}setFreeDragPosition(Y){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Y.x,this._passiveTransform.y=Y.y,this._dropContainer||this._applyRootElementTransform(Y.x,Y.y),this}withPreviewContainer(Y){return this._previewContainer=Y,this}_sortFromLastPointerPosition(){const Y=this._lastKnownPointerPosition;Y&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Y),Y)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",Ut,en)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Y){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging()))if(this.released.next({source:this,event:Y}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Y),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const le=this._getPointerPositionOnPage(Y);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(le),dropPoint:le,event:Y})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Y){Mt(Y)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const le=this._getShadowRoot(),V=this._dropContainer;if(le&&this._ngZone.runOutsideAngular(()=>{le.addEventListener("selectstart",Ut,en)}),V){const Ve=this._rootElement,Ce=Ve.parentNode,J=this._placeholder=this._createPlaceholderElement(),W=this._anchor=this._anchor||this._document.createComment("");Ce.insertBefore(W,Ve),this._initialTransform=Ve.style.transform||"",this._preview=new kt(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(Ce,le)),Bt(Ve,!1,Tn),this._document.body.appendChild(Ce.replaceChild(J,Ve)),this.started.next({source:this,event:Y}),V.start(),this._initialContainer=V,this._initialIndex=V.getItemIndex(this)}else this.started.next({source:this,event:Y}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(V?V.getScrollableParents():[])}_initializeDragSequence(Y,le){this._parentDragRef&&le.stopPropagation();const V=this.isDragging(),Ve=Mt(le),Ce=!Ve&&0!==le.button,J=this._rootElement,W=(0,j.Fb)(le),_e=!Ve&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),it=Ve?(0,e.w6)(le):(0,e._G)(le);if(W&&W.draggable&&"mousedown"===le.type&&le.preventDefault(),V||Ce||_e||it)return;if(this._handles.length){const dn=J.style;this._rootElementTapHighlight=dn.webkitTapHighlightColor||"",dn.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(dn=>this._updateOnScroll(dn)),this._boundaryElement&&(this._boundaryRect=te(this._boundaryElement));const dt=this._previewTemplate;this._pickupPositionInElement=dt&&dt.template&&!dt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,Y,le);const Ht=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(le);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Ht.x,y:Ht.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,le)}_cleanupDragArtifacts(Y){Bt(this._rootElement,!0,Tn),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const le=this._dropContainer,V=le.getItemIndex(this),Ve=this._getPointerPositionOnPage(Y),Ce=this._getDragDistance(Ve),J=le._isOverContainer(Ve.x,Ve.y);this.ended.next({source:this,distance:Ce,dropPoint:Ve,event:Y}),this.dropped.next({item:this,currentIndex:V,previousIndex:this._initialIndex,container:le,previousContainer:this._initialContainer,isPointerOverContainer:J,distance:Ce,dropPoint:Ve,event:Y}),le.drop(this,V,this._initialIndex,this._initialContainer,J,Ce,Ve,Y),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Y,y:le},{x:V,y:Ve}){let Ce=this._initialContainer._getSiblingContainerFromPosition(this,Y,le);!Ce&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Y,le)&&(Ce=this._initialContainer),Ce&&Ce!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Ce,this._dropContainer.enter(this,Y,le,Ce===this._initialContainer&&Ce.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Ce,currentIndex:Ce.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(V,Ve),this._dropContainer._sortItem(this,Y,le,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Y,le):this._applyPreviewTransform(Y-this._pickupPositionInElement.x,le-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Y=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(Y.left,Y.top);const le=this._preview.getTransitionDuration();return 0===le?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(V=>{const Ve=J=>{(!J||this._preview&&(0,j.Fb)(J)===this._preview.element&&"transform"===J.propertyName)&&(this._preview?.removeEventListener("transitionend",Ve),V(),clearTimeout(Ce))},Ce=setTimeout(Ve,1.5*le);this._preview.addEventListener("transitionend",Ve)}))}_createPlaceholderElement(){const Y=this._placeholderTemplate,le=Y?Y.template:null;let V;return le?(this._placeholderRef=Y.viewContainer.createEmbeddedView(le,Y.context),this._placeholderRef.detectChanges(),V=X(this._placeholderRef,this._document)):V=Pe(this._rootElement),V.style.pointerEvents="none",V.classList.add("cdk-drag-placeholder"),V}_getPointerPositionInElement(Y,le,V){const Ve=le===this._rootElement?null:le,Ce=Ve?Ve.getBoundingClientRect():Y,J=Mt(V)?V.targetTouches[0]:V,W=this._getViewportScrollPosition();return{x:Ce.left-Y.left+(J.pageX-Ce.left-W.left),y:Ce.top-Y.top+(J.pageY-Ce.top-W.top)}}_getPointerPositionOnPage(Y){const le=this._getViewportScrollPosition(),V=Mt(Y)?Y.touches[0]||Y.changedTouches[0]||{pageX:0,pageY:0}:Y,Ve=V.pageX-le.left,Ce=V.pageY-le.top;if(this._ownerSVGElement){const J=this._ownerSVGElement.getScreenCTM();if(J){const W=this._ownerSVGElement.createSVGPoint();return W.x=Ve,W.y=Ce,W.matrixTransform(J.inverse())}}return{x:Ve,y:Ce}}_getConstrainedPointerPosition(Y){const le=this._dropContainer?this._dropContainer.lockAxis:null;let{x:V,y:Ve}=this.constrainPosition?this.constrainPosition(Y,this,this._initialDomRect,this._pickupPositionInElement):Y;if("x"===this.lockAxis||"x"===le?Ve=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===le)&&(V=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:Ce,y:J}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,W=this._boundaryRect,{width:_e,height:it}=this._getPreviewRect(),dt=W.top+J,Ht=W.bottom-(it-J);V=Dn(V,W.left+Ce,W.right-(_e-Ce)),Ve=Dn(Ve,dt,Ht)}return{x:V,y:Ve}}_updatePointerDirectionDelta(Y){const{x:le,y:V}=Y,Ve=this._pointerDirectionDelta,Ce=this._pointerPositionAtLastDirectionChange,J=Math.abs(le-Ce.x),W=Math.abs(V-Ce.y);return J>this._config.pointerDirectionChangeThreshold&&(Ve.x=le>Ce.x?1:-1,Ce.x=le),W>this._config.pointerDirectionChangeThreshold&&(Ve.y=V>Ce.y?1:-1,Ce.y=V),Ve}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Y=this._handles.length>0||!this.isDragging();Y!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Y,je(this._rootElement,Y))}_removeRootElementListeners(Y){Y.removeEventListener("mousedown",this._pointerDown,rn),Y.removeEventListener("touchstart",this._pointerDown,It),Y.removeEventListener("dragstart",this._nativeDragStart,rn)}_applyRootElementTransform(Y,le){const V=He(Y,le),Ve=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Ve.transform&&"none"!=Ve.transform?Ve.transform:""),Ve.transform=Tt(V,this._initialTransform)}_applyPreviewTransform(Y,le){const V=this._previewTemplate?.template?void 0:this._initialTransform,Ve=He(Y,le);this._preview.setTransform(Tt(Ve,V))}_getDragDistance(Y){const le=this._pickupPositionOnPage;return le?{x:Y.x-le.x,y:Y.y-le.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Y,y:le}=this._passiveTransform;if(0===Y&&0===le||this.isDragging()||!this._boundaryElement)return;const V=this._rootElement.getBoundingClientRect(),Ve=this._boundaryElement.getBoundingClientRect();if(0===Ve.width&&0===Ve.height||0===V.width&&0===V.height)return;const Ce=Ve.left-V.left,J=V.right-Ve.right,W=Ve.top-V.top,_e=V.bottom-Ve.bottom;Ve.width>V.width?(Ce>0&&(Y+=Ce),J>0&&(Y-=J)):Y=0,Ve.height>V.height?(W>0&&(le+=W),_e>0&&(le-=_e)):le=0,(Y!==this._passiveTransform.x||le!==this._passiveTransform.y)&&this.setFreeDragPosition({y:le,x:Y})}_getDragStartDelay(Y){const le=this.dragStartDelay;return"number"==typeof le?le:Mt(Y)?le.touch:le?le.mouse:0}_updateOnScroll(Y){const le=this._parentPositions.handleScroll(Y);if(le){const V=(0,j.Fb)(Y);this._boundaryRect&&V!==this._boundaryElement&&V.contains(this._boundaryElement)&&T(this._boundaryRect,le.top,le.left),this._pickupPositionOnPage.x+=le.left,this._pickupPositionOnPage.y+=le.top,this._dropContainer||(this._activeTransform.x-=le.left,this._activeTransform.y-=le.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,j.KT)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Y,le){const V=this._previewContainer||"global";if("parent"===V)return Y;if("global"===V){const Ve=this._document;return le||Ve.fullscreenElement||Ve.webkitFullscreenElement||Ve.mozFullScreenElement||Ve.msFullscreenElement||Ve.body}return(0,z.i8)(V)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(Y){return this._handles.find(le=>Y.target&&(Y.target===le||le.contains(Y.target)))}}function Dn(Le,Y,le){return Math.max(Y,Math.min(le,Le))}function Mt(Le){return"t"===Le.type[0]}function Ut(Le){Le.preventDefault()}function wt(Le,Y,le){const V=Xe(Y,Le.length-1),Ve=Xe(le,Le.length-1);if(V===Ve)return;const Ce=Le[V],J=Ve0)return null;const W="horizontal"===this.orientation,_e=Ce.findIndex(ni=>ni.drag===Y),it=Ce[J],Ht=it.clientRect,dn=_e>J?1:-1,wn=this._getItemOffsetPx(Ce[_e].clientRect,Ht,dn),si=this._getSiblingOffsetPx(_e,Ce,dn),Cn=Ce.slice();return wt(Ce,_e,J),Ce.forEach((ni,ui)=>{if(Cn[ui]===ni)return;const Ni=ni.drag===Y,Eo=Ni?wn:si,lo=Ni?Y.getPlaceholderElement():ni.drag.getRootElement();ni.offset+=Eo,W?(lo.style.transform=Tt(`translate3d(${Math.round(ni.offset)}px, 0, 0)`,ni.initialTransform),T(ni.clientRect,0,Eo)):(lo.style.transform=Tt(`translate3d(0, ${Math.round(ni.offset)}px, 0)`,ni.initialTransform),T(ni.clientRect,Eo,0))}),this._previousSwap.overlaps=ge(Ht,le,V),this._previousSwap.drag=it.drag,this._previousSwap.delta=W?Ve.x:Ve.y,{previousIndex:_e,currentIndex:J}}enter(Y,le,V,Ve){const Ce=null==Ve||Ve<0?this._getItemIndexFromPointerPosition(Y,le,V):Ve,J=this._activeDraggables,W=J.indexOf(Y),_e=Y.getPlaceholderElement();let it=J[Ce];if(it===Y&&(it=J[Ce+1]),!it&&(null==Ce||-1===Ce||Ce-1&&J.splice(W,1),it&&!this._dragDropRegistry.isDragging(it)){const dt=it.getRootElement();dt.parentElement.insertBefore(_e,dt),J.splice(Ce,0,Y)}else this._element.appendChild(_e),J.push(Y);_e.style.transform="",this._cacheItemPositions()}withItems(Y){this._activeDraggables=Y.slice(),this._cacheItemPositions()}withSortPredicate(Y){this._sortPredicate=Y}reset(){this._activeDraggables?.forEach(Y=>{const le=Y.getRootElement();if(le){const V=this._itemPositions.find(Ve=>Ve.drag===Y)?.initialTransform;le.style.transform=V||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Y){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(V=>V.drag===Y)}updateOnScroll(Y,le){this._itemPositions.forEach(({clientRect:V})=>{T(V,Y,le)}),this._itemPositions.forEach(({drag:V})=>{this._dragDropRegistry.isDragging(V)&&V._sortFromLastPointerPosition()})}withElementContainer(Y){this._element=Y}_cacheItemPositions(){const Y="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(le=>{const V=le.getVisibleElement();return{drag:le,offset:0,initialTransform:V.style.transform||"",clientRect:te(V)}}).sort((le,V)=>Y?le.clientRect.left-V.clientRect.left:le.clientRect.top-V.clientRect.top)}_getItemOffsetPx(Y,le,V){const Ve="horizontal"===this.orientation;let Ce=Ve?le.left-Y.left:le.top-Y.top;return-1===V&&(Ce+=Ve?le.width-Y.width:le.height-Y.height),Ce}_getSiblingOffsetPx(Y,le,V){const Ve="horizontal"===this.orientation,Ce=le[Y].clientRect,J=le[Y+-1*V];let W=Ce[Ve?"width":"height"]*V;if(J){const _e=Ve?"left":"top",it=Ve?"right":"bottom";-1===V?W-=J.clientRect[_e]-Ce[it]:W+=Ce[_e]-J.clientRect[it]}return W}_shouldEnterAsFirstChild(Y,le){if(!this._activeDraggables.length)return!1;const V=this._itemPositions,Ve="horizontal"===this.orientation;if(V[0].drag!==this._activeDraggables[0]){const J=V[V.length-1].clientRect;return Ve?Y>=J.right:le>=J.bottom}{const J=V[0].clientRect;return Ve?Y<=J.left:le<=J.top}}_getItemIndexFromPointerPosition(Y,le,V,Ve){const Ce="horizontal"===this.orientation,J=this._itemPositions.findIndex(({drag:W,clientRect:_e})=>W!==Y&&((!Ve||W!==this._previousSwap.drag||!this._previousSwap.overlaps||(Ce?Ve.x:Ve.y)!==this._previousSwap.delta)&&(Ce?le>=Math.floor(_e.left)&&le=Math.floor(_e.top)&&V_e?dt.after(it):dt.before(it),wt(this._activeItems,_e,Ce);const Ht=this._getRootNode().elementFromPoint(le,V);return J.deltaX=Ve.x,J.deltaY=Ve.y,J.drag=W,J.overlaps=dt===Ht||dt.contains(Ht),{previousIndex:_e,currentIndex:Ce}}enter(Y,le,V,Ve){let Ce=null==Ve||Ve<0?this._getItemIndexFromPointerPosition(Y,le,V):Ve;-1===Ce&&(Ce=this._getClosestItemIndexToPointer(Y,le,V));const J=this._activeItems[Ce],W=this._activeItems.indexOf(Y);W>-1&&this._activeItems.splice(W,1),J&&!this._dragDropRegistry.isDragging(J)?(this._activeItems.splice(Ce,0,Y),J.getRootElement().before(Y.getPlaceholderElement())):(this._activeItems.push(Y),this._element.appendChild(Y.getPlaceholderElement()))}withItems(Y){this._activeItems=Y.slice()}withSortPredicate(Y){this._sortPredicate=Y}reset(){const Y=this._element,le=this._previousSwap;for(let V=this._relatedNodes.length-1;V>-1;V--){const[Ve,Ce]=this._relatedNodes[V];Ve.parentNode===Y&&Ve.nextSibling!==Ce&&(null===Ce?Y.appendChild(Ve):Ce.parentNode===Y&&Y.insertBefore(Ve,Ce))}this._relatedNodes=[],this._activeItems=[],le.drag=null,le.deltaX=le.deltaY=0,le.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(Y){return this._activeItems.indexOf(Y)}updateOnScroll(){this._activeItems.forEach(Y=>{this._dragDropRegistry.isDragging(Y)&&Y._sortFromLastPointerPosition()})}withElementContainer(Y){Y!==this._element&&(this._element=Y,this._rootNode=void 0)}_getItemIndexFromPointerPosition(Y,le,V){const Ve=this._getRootNode().elementFromPoint(Math.floor(le),Math.floor(V)),Ce=Ve?this._activeItems.findIndex(J=>{const W=J.getRootElement();return Ve===W||W.contains(Ve)}):-1;return-1!==Ce&&this._sortPredicate(Ce,Y)?Ce:-1}_getRootNode(){return this._rootNode||(this._rootNode=(0,j.KT)(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(Y,le,V){if(0===this._activeItems.length)return-1;if(1===this._activeItems.length)return 0;let Ve=1/0,Ce=-1;for(let J=0;J!0,this.sortPredicate=()=>!0,this.beforeStarted=new R.B,this.entered=new R.B,this.exited=new R.B,this.dropped=new R.B,this.sorted=new R.B,this.receivingStarted=new R.B,this.receivingStopped=new R.B,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=$.yU.EMPTY,this._verticalScrollDirection=ze.NONE,this._horizontalScrollDirection=Qe.NONE,this._stopScrollTimers=new R.B,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),(0,k.Y)(0,I.X).pipe((0,N.Q)(this._stopScrollTimers)).subscribe(()=>{const W=this._scrollNode,_e=this.autoScrollStep;this._verticalScrollDirection===ze.UP?W.scrollBy(0,-_e):this._verticalScrollDirection===ze.DOWN&&W.scrollBy(0,_e),this._horizontalScrollDirection===Qe.LEFT?W.scrollBy(-_e,0):this._horizontalScrollDirection===Qe.RIGHT&&W.scrollBy(_e,0)})};const J=this.element=(0,z.i8)(Y);this._document=V,this.withOrientation("vertical").withElementContainer(J),le.registerDropContainer(this),this._parentPositions=new A(V)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Y,le,V,Ve){this._draggingStarted(),null==Ve&&this.sortingDisabled&&(Ve=this._draggables.indexOf(Y)),this._sortStrategy.enter(Y,le,V,Ve),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Y,container:this,currentIndex:this.getItemIndex(Y)})}exit(Y){this._reset(),this.exited.next({item:Y,container:this})}drop(Y,le,V,Ve,Ce,J,W,_e={}){this._reset(),this.dropped.next({item:Y,currentIndex:le,previousIndex:V,container:this,previousContainer:Ve,isPointerOverContainer:Ce,distance:J,dropPoint:W,event:_e})}withItems(Y){const le=this._draggables;return this._draggables=Y,Y.forEach(V=>V._withDropContainer(this)),this.isDragging()&&(le.filter(Ve=>Ve.isDragging()).every(Ve=>-1===Y.indexOf(Ve))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Y){return this._direction=Y,this._sortStrategy instanceof ke&&(this._sortStrategy.direction=Y),this}connectedTo(Y){return this._siblings=Y.slice(),this}withOrientation(Y){if("mixed"===Y)this._sortStrategy=new q(this._document,this._dragDropRegistry);else{const le=new ke(this._dragDropRegistry);le.direction=this._direction,le.orientation=Y,this._sortStrategy=le}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((le,V)=>this.sortPredicate(le,V,this)),this}withScrollableParents(Y){const le=this._container;return this._scrollableElements=-1===Y.indexOf(le)?[le,...Y]:Y.slice(),this}withElementContainer(Y){if(Y===this._container)return this;(0,z.i8)(this.element);const V=this._scrollableElements.indexOf(this._container),Ve=this._scrollableElements.indexOf(Y);return V>-1&&this._scrollableElements.splice(V,1),Ve>-1&&this._scrollableElements.splice(Ve,1),this._sortStrategy&&this._sortStrategy.withElementContainer(Y),this._cachedShadowRoot=null,this._scrollableElements.unshift(Y),this._container=Y,this}getScrollableParents(){return this._scrollableElements}getItemIndex(Y){return this._isDragging?this._sortStrategy.getItemIndex(Y):this._draggables.indexOf(Y)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Y,le,V,Ve){if(this.sortingDisabled||!this._domRect||!D(this._domRect,.05,le,V))return;const Ce=this._sortStrategy.sort(Y,le,V,Ve);Ce&&this.sorted.next({previousIndex:Ce.previousIndex,currentIndex:Ce.currentIndex,container:this,item:Y})}_startScrollingIfNecessary(Y,le){if(this.autoScrollDisabled)return;let V,Ve=ze.NONE,Ce=Qe.NONE;if(this._parentPositions.positions.forEach((J,W)=>{W===this._document||!J.clientRect||V||D(J.clientRect,.05,Y,le)&&([Ve,Ce]=function In(Le,Y,le,V,Ve){const Ce=Kt(Y,Ve),J=fn(Y,V);let W=ze.NONE,_e=Qe.NONE;if(Ce){const it=Le.scrollTop;Ce===ze.UP?it>0&&(W=ze.UP):Le.scrollHeight-it>Le.clientHeight&&(W=ze.DOWN)}if(J){const it=Le.scrollLeft;"rtl"===le?J===Qe.RIGHT?it<0&&(_e=Qe.RIGHT):Le.scrollWidth+it>Le.clientWidth&&(_e=Qe.LEFT):J===Qe.LEFT?it>0&&(_e=Qe.LEFT):Le.scrollWidth-it>Le.clientWidth&&(_e=Qe.RIGHT)}return[W,_e]}(W,J.clientRect,this._direction,Y,le),(Ve||Ce)&&(V=W))}),!Ve&&!Ce){const{width:J,height:W}=this._viewportRuler.getViewportSize(),_e={width:J,height:W,top:0,right:J,bottom:W,left:0};Ve=Kt(_e,le),Ce=fn(_e,Y),V=window}V&&(Ve!==this._verticalScrollDirection||Ce!==this._horizontalScrollDirection||V!==this._scrollNode)&&(this._verticalScrollDirection=Ve,this._horizontalScrollDirection=Ce,this._scrollNode=V,(Ve||Ce)&&V?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Y=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Y.msScrollSnapType||Y.scrollSnapType||"",Y.scrollSnapType=Y.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;const Y=this._container.style;Y.scrollSnapType=Y.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(le=>le._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Y,le){return null!=this._domRect&&ge(this._domRect,Y,le)}_getSiblingContainerFromPosition(Y,le,V){return this._siblings.find(Ve=>Ve._canReceive(Y,le,V))}_canReceive(Y,le,V){if(!this._domRect||!ge(this._domRect,le,V)||!this.enterPredicate(Y,this))return!1;const Ve=this._getShadowRoot().elementFromPoint(le,V);return!!Ve&&(Ve===this._container||this._container.contains(Ve))}_startReceiving(Y,le){const V=this._activeSiblings;!V.has(Y)&&le.every(Ve=>this.enterPredicate(Ve,this)||this._draggables.indexOf(Ve)>-1)&&(V.add(Y),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:Y,receiver:this,items:le}))}_stopReceiving(Y){this._activeSiblings.delete(Y),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:Y,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Y=>{if(this.isDragging()){const le=this._parentPositions.handleScroll(Y);le&&this._sortStrategy.updateOnScroll(le.top,le.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Y=(0,j.KT)(this._container);this._cachedShadowRoot=Y||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Y=this._sortStrategy.getActiveItemsSnapshot().filter(le=>le.isDragging());this._siblings.forEach(le=>le._startReceiving(this,Y))}}function Kt(Le,Y){const{top:le,bottom:V,height:Ve}=Le,Ce=.05*Ve;return Y>=le-Ce&&Y<=le+Ce?ze.UP:Y>=V-Ce&&Y<=V+Ce?ze.DOWN:ze.NONE}function fn(Le,Y){const{left:le,right:V,width:Ve}=Le,Ce=.05*Ve;return Y>=le-Ce&&Y<=le+Ce?Qe.LEFT:Y>=V-Ce&&Y<=V+Ce?Qe.RIGHT:Qe.NONE}const Kn=(0,j.BQ)({passive:!1,capture:!0}),Gn=new Set;let $n=(()=>{class Le{static#e=this.\u0275fac=function(V){return new(V||Le)};static#t=this.\u0275cmp=t.VBU({type:Le,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[t.aNF],decls:0,vars:0,template:function(V,Ve){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}"],encapsulation:2,changeDetection:0})}return Le})(),Nn=(()=>{class Le{constructor(le,V){this._ngZone=le,this._appRef=(0,t.WQX)(t.o8S),this._environmentInjector=(0,t.WQX)(t.uvJ),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=(0,t.vPA)([]),this._globalListeners=new Map,this._draggingPredicate=Ve=>Ve.isDragging(),this.pointerMove=new R.B,this.pointerUp=new R.B,this.scroll=new R.B,this._preventDefaultWhileDragging=Ve=>{this._activeDragInstances().length>0&&Ve.preventDefault()},this._persistentTouchmoveListener=Ve=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&Ve.preventDefault(),this.pointerMove.next(Ve))},this._document=V}registerDropContainer(le){this._dropInstances.has(le)||this._dropInstances.add(le)}registerDragItem(le){this._dragInstances.add(le),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Kn)})}removeDropContainer(le){this._dropInstances.delete(le)}removeDragItem(le){this._dragInstances.delete(le),this.stopDragging(le),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Kn)}startDragging(le,V){if(!(this._activeDragInstances().indexOf(le)>-1)&&(this._loadResets(),this._activeDragInstances.update(Ve=>[...Ve,le]),1===this._activeDragInstances().length)){const Ve=V.type.startsWith("touch");this._globalListeners.set(Ve?"touchend":"mouseup",{handler:Ce=>this.pointerUp.next(Ce),options:!0}).set("scroll",{handler:Ce=>this.scroll.next(Ce),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Kn}),Ve||this._globalListeners.set("mousemove",{handler:Ce=>this.pointerMove.next(Ce),options:Kn}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Ce,J)=>{this._document.addEventListener(J,Ce.handler,Ce.options)})})}}stopDragging(le){this._activeDragInstances.update(V=>{const Ve=V.indexOf(le);return Ve>-1?(V.splice(Ve,1),[...V]):V}),0===this._activeDragInstances().length&&this._clearGlobalListeners()}isDragging(le){return this._activeDragInstances().indexOf(le)>-1}scrolled(le){const V=[this.scroll];return le&&le!==this._document&&V.push(new w.c(Ve=>this._ngZone.runOutsideAngular(()=>{const J=W=>{this._activeDragInstances().length&&Ve.next(W)};return le.addEventListener("scroll",J,!0),()=>{le.removeEventListener("scroll",J,!0)}}))),(0,P.h)(...V)}ngOnDestroy(){this._dragInstances.forEach(le=>this.removeDragItem(le)),this._dropInstances.forEach(le=>this.removeDropContainer(le)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((le,V)=>{this._document.removeEventListener(V,le.handler,le.options)}),this._globalListeners.clear()}_loadResets(){if(!Gn.has(this._appRef)){Gn.add(this._appRef);const le=(0,t.a0P)($n,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{Gn.delete(this._appRef),0===Gn.size&&le.destroy()})}}static#e=this.\u0275fac=function(V){return new(V||Le)(t.KVO(t.SKi),t.KVO(r.qQ))};static#t=this.\u0275prov=t.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}return Le})();const vn={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Jt=(()=>{class Le{constructor(le,V,Ve,Ce){this._document=le,this._ngZone=V,this._viewportRuler=Ve,this._dragDropRegistry=Ce}createDrag(le,V=vn){return new Jn(le,V,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(le){return new ht(le,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(V){return new(V||Le)(t.KVO(r.qQ),t.KVO(t.SKi),t.KVO(m.Xj),t.KVO(Nn))};static#t=this.\u0275prov=t.jDH({token:Le,factory:Le.\u0275fac,providedIn:"root"})}return Le})();const An=new t.nKC("CDK_DRAG_PARENT"),Je=new t.nKC("CdkDragHandle");let ae=(()=>{class Le{get disabled(){return this._disabled}set disabled(le){this._disabled=le,this._stateChanges.next(this)}constructor(le,V){this.element=le,this._parentDrag=V,this._stateChanges=new R.B,this._disabled=!1,V?._addHandle(this)}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static#e=this.\u0275fac=function(V){return new(V||Le)(t.rXU(t.aKT),t.rXU(An,12))};static#t=this.\u0275dir=t.FsC({type:Le,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",t.L39]},standalone:!0,features:[t.Jv_([{provide:Je,useExisting:Le}]),t.GFd]})}return Le})();const ie=new t.nKC("CDK_DRAG_CONFIG"),et=new t.nKC("CdkDropList");let _t=(()=>{class Le{static#e=this._dragInstances=[];get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(le){this._disabled=le,this._dragRef.disabled=this._disabled}constructor(le,V,Ve,Ce,J,W,_e,it,dt,Ht,dn){this.element=le,this.dropContainer=V,this._ngZone=Ce,this._viewContainerRef=J,this._dir=_e,this._changeDetectorRef=dt,this._selfHandle=Ht,this._parentDrag=dn,this._destroyed=new R.B,this._handles=new Q.t([]),this.started=new t.bkB,this.released=new t.bkB,this.ended=new t.bkB,this.entered=new t.bkB,this.exited=new t.bkB,this.dropped=new t.bkB,this.moved=new w.c(wn=>{const si=this._dragRef.moved.pipe((0,x.T)(Cn=>({source:this,pointerPosition:Cn.pointerPosition,event:Cn.event,delta:Cn.delta,distance:Cn.distance}))).subscribe(wn);return()=>{si.unsubscribe()}}),this._injector=(0,t.WQX)(t.zZn),this._dragRef=it.createDrag(le,{dragStartThreshold:W&&null!=W.dragStartThreshold?W.dragStartThreshold:5,pointerDirectionChangeThreshold:W&&null!=W.pointerDirectionChangeThreshold?W.pointerDirectionChangeThreshold:5,zIndex:W?.zIndex}),this._dragRef.data=this,Le._dragInstances.push(this),W&&this._assignDefaults(W),V&&(this._dragRef._withDropContainer(V._dropListRef),V.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(le){this._dragRef.setFreeDragPosition(le)}ngAfterViewInit(){(0,t.mal)(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(le){const V=le.rootElementSelector,Ve=le.freeDragPosition;V&&!V.firstChange&&this._updateRootElement(),Ve&&!Ve.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const le=Le._dragInstances.indexOf(this);le>-1&&Le._dragInstances.splice(le,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(le){const V=this._handles.getValue();V.push(le),this._handles.next(V)}_removeHandle(le){const V=this._handles.getValue(),Ve=V.indexOf(le);Ve>-1&&(V.splice(Ve,1),this._handles.next(V))}_setPreviewTemplate(le){this._previewTemplate=le}_resetPreviewTemplate(le){le===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(le){this._placeholderTemplate=le}_resetPlaceholderTemplate(le){le===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){const le=this.element.nativeElement;let V=le;this.rootElementSelector&&(V=void 0!==le.closest?le.closest(this.rootElementSelector):le.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(V||le)}_getBoundaryElement(){const le=this.boundaryElement;return le?"string"==typeof le?this.element.nativeElement.closest(le):(0,z.i8)(le):null}_syncInputs(le){le.beforeStarted.subscribe(()=>{if(!le.isDragging()){const V=this._dir,Ve=this.dragStartDelay,Ce=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,J=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;le.disabled=this.disabled,le.lockAxis=this.lockAxis,le.dragStartDelay="object"==typeof Ve&&Ve?Ve:(0,z.OE)(Ve),le.constrainPosition=this.constrainPosition,le.previewClass=this.previewClass,le.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Ce).withPreviewTemplate(J).withPreviewContainer(this.previewContainer||"global"),V&&le.withDirection(V.value)}}),le.beforeStarted.pipe((0,oe.s)(1)).subscribe(()=>{if(this._parentDrag)return void le.withParent(this._parentDrag._dragRef);let V=this.element.nativeElement.parentElement;for(;V;){if(V.classList.contains("cdk-drag")){le.withParent(Le._dragInstances.find(Ve=>Ve.element.nativeElement===V)?._dragRef||null);break}V=V.parentElement}})}_handleEvents(le){le.started.subscribe(V=>{this.started.emit({source:this,event:V.event}),this._changeDetectorRef.markForCheck()}),le.released.subscribe(V=>{this.released.emit({source:this,event:V.event})}),le.ended.subscribe(V=>{this.ended.emit({source:this,distance:V.distance,dropPoint:V.dropPoint,event:V.event}),this._changeDetectorRef.markForCheck()}),le.entered.subscribe(V=>{this.entered.emit({container:V.container.data,item:this,currentIndex:V.currentIndex})}),le.exited.subscribe(V=>{this.exited.emit({container:V.container.data,item:this})}),le.dropped.subscribe(V=>{this.dropped.emit({previousIndex:V.previousIndex,currentIndex:V.currentIndex,previousContainer:V.previousContainer.data,container:V.container.data,isPointerOverContainer:V.isPointerOverContainer,item:this,distance:V.distance,dropPoint:V.dropPoint,event:V.event})})}_assignDefaults(le){const{lockAxis:V,dragStartDelay:Ve,constrainPosition:Ce,previewClass:J,boundaryElement:W,draggingDisabled:_e,rootElementSelector:it,previewContainer:dt}=le;this.disabled=_e??!1,this.dragStartDelay=Ve||0,V&&(this.lockAxis=V),Ce&&(this.constrainPosition=Ce),J&&(this.previewClass=J),W&&(this.boundaryElement=W),it&&(this.rootElementSelector=it),dt&&(this.previewContainer=dt)}_setupHandlesListener(){this._handles.pipe((0,ee.M)(le=>{const V=le.map(Ve=>Ve.element);this._selfHandle&&this.rootElementSelector&&V.push(this.element),this._dragRef.withHandles(V)}),(0,Ee.n)(le=>(0,P.h)(...le.map(V=>V._stateChanges.pipe((0,Ie.Z)(V))))),(0,N.Q)(this._destroyed)).subscribe(le=>{const V=this._dragRef,Ve=le.element.nativeElement;le.disabled?V.disableHandle(Ve):V.enableHandle(Ve)})}static#t=this.\u0275fac=function(V){return new(V||Le)(t.rXU(t.aKT),t.rXU(et,12),t.rXU(r.qQ),t.rXU(t.SKi),t.rXU(t.c1b),t.rXU(ie,8),t.rXU(ce.dS,8),t.rXU(Jt),t.rXU(t.gRc),t.rXU(Je,10),t.rXU(An,12))};static#n=this.\u0275dir=t.FsC({type:Le,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(V,Ve){2&V&&t.AVh("cdk-drag-disabled",Ve.disabled)("cdk-drag-dragging",Ve._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",t.L39],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[t.Jv_([{provide:An,useExisting:Le}]),t.GFd,t.OA$]})}return Le})()},7336:($t,De,a)=>{a.d(De,{A:()=>Lt,A$:()=>$,FX:()=>j,Fm:()=>z,G_:()=>r,Ge:()=>In,Kp:()=>x,LE:()=>Ie,UQ:()=>ee,W3:()=>R,Z:()=>fn,_f:()=>w,bn:()=>Bt,dB:()=>N,eg:()=>En,f2:()=>M,i7:()=>Ee,n6:()=>ce,rp:()=>ii,t6:()=>P,w_:()=>Q,wn:()=>m,yZ:()=>oe});const r=8,m=9,z=13,j=16,R=17,$=18,w=27,P=32,Q=33,N=34,x=35,oe=36,ee=37,Ee=38,Ie=39,ce=40,M=48,Bt=57,Lt=65,fn=90,In=91,En=224;function ii(Pn,...Fn){return Fn.length?Fn.some(hi=>Pn[hi]):Pn.altKey||Pn.shiftKey||Pn.ctrlKey||Pn.metaKey}},9327:($t,De,a)=>{a.d(De,{DY:()=>ee,QP:()=>ce});var t=a(3953),r=a(4085),m=a(1413),e=a(4572),z=a(8793),j=a(1985),R=a(6697),$=a(5245),k=a(152),I=a(6354),w=a(9172),P=a(6977),Q=a(6860);const x=new Set;let oe,ee=(()=>{class pe{constructor(M,te){this._platform=M,this._nonce=te,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ie}matchMedia(M){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ee(pe,U){if(!x.has(pe))try{oe||(oe=document.createElement("style"),U&&oe.setAttribute("nonce",U),oe.setAttribute("type","text/css"),document.head.appendChild(oe)),oe.sheet&&(oe.sheet.insertRule(`@media ${pe} {body{ }}`,0),x.add(pe))}catch(M){console.error(M)}}(M,this._nonce),this._matchMedia(M)}static#e=this.\u0275fac=function(te){return new(te||pe)(t.KVO(Q.OD),t.KVO(t.BIS,8))};static#t=this.\u0275prov=t.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})();function Ie(pe){return{matches:"all"===pe||""===pe,media:pe,addListener:()=>{},removeListener:()=>{}}}let ce=(()=>{class pe{constructor(M,te){this._mediaMatcher=M,this._zone=te,this._queries=new Map,this._destroySubject=new m.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(M){return Pe((0,r.FG)(M)).some(ge=>this._registerQuery(ge).mql.matches)}observe(M){const ge=Pe((0,r.FG)(M)).map(D=>this._registerQuery(D).observable);let T=(0,e.z)(ge);return T=(0,z.x)(T.pipe((0,R.s)(1)),T.pipe((0,$.i)(1),(0,k.B)(0))),T.pipe((0,I.T)(D=>{const A={matches:!1,breakpoints:{}};return D.forEach(({matches:X,query:se})=>{A.matches=A.matches||X,A.breakpoints[se]=X}),A}))}_registerQuery(M){if(this._queries.has(M))return this._queries.get(M);const te=this._mediaMatcher.matchMedia(M),T={observable:new j.c(D=>{const A=X=>this._zone.run(()=>D.next(X));return te.addListener(A),()=>{te.removeListener(A)}}).pipe((0,w.Z)(te),(0,I.T)(({matches:D})=>({query:M,matches:D})),(0,P.Q)(this._destroySubject)),mql:te};return this._queries.set(M,T),T}static#e=this.\u0275fac=function(te){return new(te||pe)(t.KVO(ee),t.KVO(t.SKi))};static#t=this.\u0275prov=t.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})();function Pe(pe){return pe.map(U=>U.split(",")).reduce((U,M)=>U.concat(M)).map(U=>U.trim())}},7987:($t,De,a)=>{a.d(De,{$Q:()=>wt,WB:()=>Ft,hJ:()=>Dn,rR:()=>U,uH:()=>M,yY:()=>Tt,z_:()=>ke});var t=a(946),r=a(177),m=a(3953),e=a(4085),z=a(6860),j=a(5964),R=a(6977),$=a(7048),k=a(8203),I=a(6939),w=a(1413),P=a(8359),Q=a(7786),N=a(7336);const x=(0,z.CZ)();class oe{constructor(H,ze){this._viewportRuler=H,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ze}attach(){}enable(){if(this._canBeEnabled()){const H=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=H.style.left||"",this._previousHTMLStyles.top=H.style.top||"",H.style.left=(0,e.a1)(-this._previousScrollPosition.left),H.style.top=(0,e.a1)(-this._previousScrollPosition.top),H.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const H=this._document.documentElement,Qe=H.style,ht=this._document.body.style,Kt=Qe.scrollBehavior||"",fn=ht.scrollBehavior||"";this._isEnabled=!1,Qe.left=this._previousHTMLStyles.left,Qe.top=this._previousHTMLStyles.top,H.classList.remove("cdk-global-scrollblock"),x&&(Qe.scrollBehavior=ht.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),x&&(Qe.scrollBehavior=Kt,ht.scrollBehavior=fn)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ze=this._document.body,Qe=this._viewportRuler.getViewportSize();return ze.scrollHeight>Qe.height||ze.scrollWidth>Qe.width}}class Ee{constructor(H,ze,Qe,ht){this._scrollDispatcher=H,this._ngZone=ze,this._viewportRuler=Qe,this._config=ht,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(H){this._overlayRef=H}enable(){if(this._scrollSubscription)return;const H=this._scrollDispatcher.scrolled(0).pipe((0,j.p)(ze=>!ze||!this._overlayRef.overlayElement.contains(ze.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=H.subscribe(()=>{const ze=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ze-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=H.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Ie{enable(){}disable(){}attach(){}}function ce(G,H){return H.some(ze=>G.bottomze.bottom||G.rightze.right)}function Pe(G,H){return H.some(ze=>G.topze.bottom||G.leftze.right)}class ve{constructor(H,ze,Qe,ht){this._scrollDispatcher=H,this._viewportRuler=ze,this._ngZone=Qe,this._config=ht,this._scrollSubscription=null}attach(H){this._overlayRef=H}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 ze=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Qe,height:ht}=this._viewportRuler.getViewportSize();ce(ze,[{width:Qe,height:ht,bottom:ht,right:Qe,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 pe=(()=>{class G{constructor(ze,Qe,ht,Kt){this._scrollDispatcher=ze,this._viewportRuler=Qe,this._ngZone=ht,this.noop=()=>new Ie,this.close=fn=>new Ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,fn),this.block=()=>new oe(this._viewportRuler,this._document),this.reposition=fn=>new ve(this._scrollDispatcher,this._viewportRuler,this._ngZone,fn),this._document=Kt}static#e=this.\u0275fac=function(Qe){return new(Qe||G)(m.KVO(t.R),m.KVO(t.Xj),m.KVO(m.SKi),m.KVO(r.qQ))};static#t=this.\u0275prov=m.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})();class U{constructor(H){if(this.scrollStrategy=new Ie,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,H){const ze=Object.keys(H);for(const Qe of ze)void 0!==H[Qe]&&(this[Qe]=H[Qe])}}}class M{constructor(H,ze,Qe,ht,Kt){this.offsetX=Qe,this.offsetY=ht,this.panelClass=Kt,this.originX=H.originX,this.originY=H.originY,this.overlayX=ze.overlayX,this.overlayY=ze.overlayY}}class ge{constructor(H,ze){this.connectionPair=H,this.scrollableViewProperties=ze}}let A=(()=>{class G{constructor(ze){this._attachedOverlays=[],this._document=ze}ngOnDestroy(){this.detach()}add(ze){this.remove(ze),this._attachedOverlays.push(ze)}remove(ze){const Qe=this._attachedOverlays.indexOf(ze);Qe>-1&&this._attachedOverlays.splice(Qe,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(Qe){return new(Qe||G)(m.KVO(r.qQ))};static#t=this.\u0275prov=m.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})(),X=(()=>{class G extends A{constructor(ze,Qe){super(ze),this._ngZone=Qe,this._keydownListener=ht=>{const Kt=this._attachedOverlays;for(let fn=Kt.length-1;fn>-1;fn--)if(Kt[fn]._keydownEvents.observers.length>0){const In=Kt[fn]._keydownEvents;this._ngZone?this._ngZone.run(()=>In.next(ht)):In.next(ht);break}}}add(ze){super.add(ze),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)}static#e=this.\u0275fac=function(Qe){return new(Qe||G)(m.KVO(r.qQ),m.KVO(m.SKi,8))};static#t=this.\u0275prov=m.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})(),se=(()=>{class G extends A{constructor(ze,Qe,ht){super(ze),this._platform=Qe,this._ngZone=ht,this._cursorStyleIsSet=!1,this._pointerDownListener=Kt=>{this._pointerDownEventTarget=(0,z.Fb)(Kt)},this._clickListener=Kt=>{const fn=(0,z.Fb)(Kt),In="click"===Kt.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:fn;this._pointerDownEventTarget=null;const Kn=this._attachedOverlays.slice();for(let Gn=Kn.length-1;Gn>-1;Gn--){const $n=Kn[Gn];if($n._outsidePointerEvents.observers.length<1||!$n.hasAttached())continue;if(je($n.overlayElement,fn)||je($n.overlayElement,In))break;const Nn=$n._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Nn.next(Kt)):Nn.next(Kt)}}}add(ze){if(super.add(ze),!this._isAttached){const Qe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Qe)):this._addEventListeners(Qe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Qe.style.cursor,Qe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ze=this._document.body;ze.removeEventListener("pointerdown",this._pointerDownListener,!0),ze.removeEventListener("click",this._clickListener,!0),ze.removeEventListener("auxclick",this._clickListener,!0),ze.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ze.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ze){ze.addEventListener("pointerdown",this._pointerDownListener,!0),ze.addEventListener("click",this._clickListener,!0),ze.addEventListener("auxclick",this._clickListener,!0),ze.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(Qe){return new(Qe||G)(m.KVO(r.qQ),m.KVO(z.OD),m.KVO(m.SKi,8))};static#t=this.\u0275prov=m.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})();function je(G,H){const ze=typeof ShadowRoot<"u"&&ShadowRoot;let Qe=H;for(;Qe;){if(Qe===G)return!0;Qe=ze&&Qe instanceof ShadowRoot?Qe.host:Qe.parentNode}return!1}let Bt=(()=>{class G{constructor(ze,Qe){this._platform=Qe,this._document=ze}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ze="cdk-overlay-container";if(this._platform.isBrowser||(0,z.v8)()){const ht=this._document.querySelectorAll(`.${ze}[platform="server"], .${ze}[platform="test"]`);for(let Kt=0;Ktthis._backdropClick.next(vn),this._backdropTransitionendHandler=vn=>{this._disposeBackdrop(vn.target)},this._keydownEvents=new w.B,this._outsidePointerEvents=new w.B,this._renders=new w.B,ht.scrollStrategy&&(this._scrollStrategy=ht.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ht.positionStrategy,this._afterRenderRef=(0,m.O8t)(()=>(0,m.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(H){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ze=this._portalOutlet.attach(H);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),(0,m.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),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),"function"==typeof ze?.onDestroy&&ze.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ze}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const H=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),H}dispose(){const H=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,H&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.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(H){H!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=H,this.hasAttached()&&(H.attach(this),this.updatePosition()))}updateSize(H){this._config={...this._config,...H},this._updateElementSize()}setDirection(H){this._config={...this._config,direction:H},this._updateElementDirection()}addPanelClass(H){this._pane&&this._toggleClasses(this._pane,H,!0)}removePanelClass(H){this._pane&&this._toggleClasses(this._pane,H,!1)}getDirection(){const H=this._config.direction;return H?"string"==typeof H?H:H.value:"ltr"}updateScrollStrategy(H){H!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=H,this.hasAttached()&&(H.attach(this),H.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const H=this._pane.style;H.width=(0,e.a1)(this._config.width),H.height=(0,e.a1)(this._config.height),H.minWidth=(0,e.a1)(this._config.minWidth),H.minHeight=(0,e.a1)(this._config.minHeight),H.maxWidth=(0,e.a1)(this._config.maxWidth),H.maxHeight=(0,e.a1)(this._config.maxHeight)}_togglePointerEvents(H){this._pane.style.pointerEvents=H?"":"none"}_attachBackdrop(){const H="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(H)})}):this._backdropElement.classList.add(H)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const H=this._backdropElement;if(H){if(this._animationsDisabled)return void this._disposeBackdrop(H);H.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{H.addEventListener("transitionend",this._backdropTransitionendHandler)}),H.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(H)},500))}}_toggleClasses(H,ze,Qe){const ht=(0,e.FG)(ze||[]).filter(Kt=>!!Kt);ht.length&&(Qe?H.classList.add(...ht):H.classList.remove(...ht))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const H=this._renders.pipe((0,R.Q)((0,Q.h)(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()),H.unsubscribe())})})}_disposeScrollStrategy(){const H=this._scrollStrategy;H&&(H.disable(),H.detach&&H.detach())}_disposeBackdrop(H){H&&(H.removeEventListener("click",this._backdropClickHandler),H.removeEventListener("transitionend",this._backdropTransitionendHandler),H.remove(),this._backdropElement===H&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Vt="cdk-overlay-connected-position-bounding-box",He=/([A-Za-z%]+)$/;class xt{get positions(){return this._preferredPositions}constructor(H,ze,Qe,ht,Kt){this._viewportRuler=ze,this._document=Qe,this._platform=ht,this._overlayContainer=Kt,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 w.B,this._resizeSubscription=P.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(H)}attach(H){this._validatePositions(),H.hostElement.classList.add(Vt),this._overlayRef=H,this._boundingBox=H.hostElement,this._pane=H.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 H=this._originRect,ze=this._overlayRect,Qe=this._viewportRect,ht=this._containerRect,Kt=[];let fn;for(let In of this._preferredPositions){let Kn=this._getOriginPoint(H,ht,In),Gn=this._getOverlayPoint(Kn,ze,In),$n=this._getOverlayFit(Gn,ze,Qe,In);if($n.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(In,Kn);this._canFitWithFlexibleDimensions($n,Gn,Qe)?Kt.push({position:In,origin:Kn,overlayRect:ze,boundingBoxRect:this._calculateBoundingBoxRect(Kn,In)}):(!fn||fn.overlayFit.visibleArea<$n.visibleArea)&&(fn={overlayFit:$n,overlayPoint:Gn,originPoint:Kn,position:In,overlayRect:ze})}if(Kt.length){let In=null,Kn=-1;for(const Gn of Kt){const $n=Gn.boundingBoxRect.width*Gn.boundingBoxRect.height*(Gn.position.weight||1);$n>Kn&&(Kn=$n,In=Gn)}return this._isPushed=!1,void this._applyPosition(In.position,In.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(fn.position,fn.originPoint);this._applyPosition(fn.position,fn.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Lt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Vt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const H=this._lastPosition;if(H){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ze=this._getOriginPoint(this._originRect,this._containerRect,H);this._applyPosition(H,ze)}else this.apply()}withScrollableContainers(H){return this._scrollables=H,this}withPositions(H){return this._preferredPositions=H,-1===H.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(H){return this._viewportMargin=H,this}withFlexibleDimensions(H=!0){return this._hasFlexibleDimensions=H,this}withGrowAfterOpen(H=!0){return this._growAfterOpen=H,this}withPush(H=!0){return this._canPush=H,this}withLockedPosition(H=!0){return this._positionLocked=H,this}setOrigin(H){return this._origin=H,this}withDefaultOffsetX(H){return this._offsetX=H,this}withDefaultOffsetY(H){return this._offsetY=H,this}withTransformOriginOn(H){return this._transformOriginSelector=H,this}_getOriginPoint(H,ze,Qe){let ht,Kt;if("center"==Qe.originX)ht=H.left+H.width/2;else{const fn=this._isRtl()?H.right:H.left,In=this._isRtl()?H.left:H.right;ht="start"==Qe.originX?fn:In}return ze.left<0&&(ht-=ze.left),Kt="center"==Qe.originY?H.top+H.height/2:"top"==Qe.originY?H.top:H.bottom,ze.top<0&&(Kt-=ze.top),{x:ht,y:Kt}}_getOverlayPoint(H,ze,Qe){let ht,Kt;return ht="center"==Qe.overlayX?-ze.width/2:"start"===Qe.overlayX?this._isRtl()?-ze.width:0:this._isRtl()?0:-ze.width,Kt="center"==Qe.overlayY?-ze.height/2:"top"==Qe.overlayY?0:-ze.height,{x:H.x+ht,y:H.y+Kt}}_getOverlayFit(H,ze,Qe,ht){const Kt=St(ze);let{x:fn,y:In}=H,Kn=this._getOffset(ht,"x"),Gn=this._getOffset(ht,"y");Kn&&(fn+=Kn),Gn&&(In+=Gn);let vn=0-In,Jt=In+Kt.height-Qe.height,An=this._subtractOverflows(Kt.width,0-fn,fn+Kt.width-Qe.width),Yt=this._subtractOverflows(Kt.height,vn,Jt),Je=An*Yt;return{visibleArea:Je,isCompletelyWithinViewport:Kt.width*Kt.height===Je,fitsInViewportVertically:Yt===Kt.height,fitsInViewportHorizontally:An==Kt.width}}_canFitWithFlexibleDimensions(H,ze,Qe){if(this._hasFlexibleDimensions){const ht=Qe.bottom-ze.y,Kt=Qe.right-ze.x,fn=ft(this._overlayRef.getConfig().minHeight),In=ft(this._overlayRef.getConfig().minWidth);return(H.fitsInViewportVertically||null!=fn&&fn<=ht)&&(H.fitsInViewportHorizontally||null!=In&&In<=Kt)}return!1}_pushOverlayOnScreen(H,ze,Qe){if(this._previousPushAmount&&this._positionLocked)return{x:H.x+this._previousPushAmount.x,y:H.y+this._previousPushAmount.y};const ht=St(ze),Kt=this._viewportRect,fn=Math.max(H.x+ht.width-Kt.width,0),In=Math.max(H.y+ht.height-Kt.height,0),Kn=Math.max(Kt.top-Qe.top-H.y,0),Gn=Math.max(Kt.left-Qe.left-H.x,0);let $n=0,Nn=0;return $n=ht.width<=Kt.width?Gn||-fn:H.xAn&&!this._isInitialRender&&!this._growAfterOpen&&(fn=H.y-An/2)}if("end"===ze.overlayX&&!ht||"start"===ze.overlayX&&ht)vn=Qe.width-H.x+2*this._viewportMargin,$n=H.x-this._viewportMargin;else if("start"===ze.overlayX&&!ht||"end"===ze.overlayX&&ht)Nn=H.x,$n=Qe.right-H.x;else{const Jt=Math.min(Qe.right-H.x+Qe.left,H.x),An=this._lastBoundingBoxSize.width;$n=2*Jt,Nn=H.x-Jt,$n>An&&!this._isInitialRender&&!this._growAfterOpen&&(Nn=H.x-An/2)}return{top:fn,left:Nn,bottom:In,right:vn,width:$n,height:Kt}}_setBoundingBoxStyles(H,ze){const Qe=this._calculateBoundingBoxRect(H,ze);!this._isInitialRender&&!this._growAfterOpen&&(Qe.height=Math.min(Qe.height,this._lastBoundingBoxSize.height),Qe.width=Math.min(Qe.width,this._lastBoundingBoxSize.width));const ht={};if(this._hasExactPosition())ht.top=ht.left="0",ht.bottom=ht.right=ht.maxHeight=ht.maxWidth="",ht.width=ht.height="100%";else{const Kt=this._overlayRef.getConfig().maxHeight,fn=this._overlayRef.getConfig().maxWidth;ht.height=(0,e.a1)(Qe.height),ht.top=(0,e.a1)(Qe.top),ht.bottom=(0,e.a1)(Qe.bottom),ht.width=(0,e.a1)(Qe.width),ht.left=(0,e.a1)(Qe.left),ht.right=(0,e.a1)(Qe.right),ht.alignItems="center"===ze.overlayX?"center":"end"===ze.overlayX?"flex-end":"flex-start",ht.justifyContent="center"===ze.overlayY?"center":"bottom"===ze.overlayY?"flex-end":"flex-start",Kt&&(ht.maxHeight=(0,e.a1)(Kt)),fn&&(ht.maxWidth=(0,e.a1)(fn))}this._lastBoundingBoxSize=Qe,Lt(this._boundingBox.style,ht)}_resetBoundingBoxStyles(){Lt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Lt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(H,ze){const Qe={},ht=this._hasExactPosition(),Kt=this._hasFlexibleDimensions,fn=this._overlayRef.getConfig();if(ht){const $n=this._viewportRuler.getViewportScrollPosition();Lt(Qe,this._getExactOverlayY(ze,H,$n)),Lt(Qe,this._getExactOverlayX(ze,H,$n))}else Qe.position="static";let In="",Kn=this._getOffset(ze,"x"),Gn=this._getOffset(ze,"y");Kn&&(In+=`translateX(${Kn}px) `),Gn&&(In+=`translateY(${Gn}px)`),Qe.transform=In.trim(),fn.maxHeight&&(ht?Qe.maxHeight=(0,e.a1)(fn.maxHeight):Kt&&(Qe.maxHeight="")),fn.maxWidth&&(ht?Qe.maxWidth=(0,e.a1)(fn.maxWidth):Kt&&(Qe.maxWidth="")),Lt(this._pane.style,Qe)}_getExactOverlayY(H,ze,Qe){let ht={top:"",bottom:""},Kt=this._getOverlayPoint(ze,this._overlayRect,H);return this._isPushed&&(Kt=this._pushOverlayOnScreen(Kt,this._overlayRect,Qe)),"bottom"===H.overlayY?ht.bottom=this._document.documentElement.clientHeight-(Kt.y+this._overlayRect.height)+"px":ht.top=(0,e.a1)(Kt.y),ht}_getExactOverlayX(H,ze,Qe){let fn,ht={left:"",right:""},Kt=this._getOverlayPoint(ze,this._overlayRect,H);return this._isPushed&&(Kt=this._pushOverlayOnScreen(Kt,this._overlayRect,Qe)),fn=this._isRtl()?"end"===H.overlayX?"left":"right":"end"===H.overlayX?"right":"left","right"===fn?ht.right=this._document.documentElement.clientWidth-(Kt.x+this._overlayRect.width)+"px":ht.left=(0,e.a1)(Kt.x),ht}_getScrollVisibility(){const H=this._getOriginRect(),ze=this._pane.getBoundingClientRect(),Qe=this._scrollables.map(ht=>ht.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Pe(H,Qe),isOriginOutsideView:ce(H,Qe),isOverlayClipped:Pe(ze,Qe),isOverlayOutsideView:ce(ze,Qe)}}_subtractOverflows(H,...ze){return ze.reduce((Qe,ht)=>Qe-Math.max(ht,0),H)}_getNarrowedViewportRect(){const H=this._document.documentElement.clientWidth,ze=this._document.documentElement.clientHeight,Qe=this._viewportRuler.getViewportScrollPosition();return{top:Qe.top+this._viewportMargin,left:Qe.left+this._viewportMargin,right:Qe.left+H-this._viewportMargin,bottom:Qe.top+ze-this._viewportMargin,width:H-2*this._viewportMargin,height:ze-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(H,ze){return"x"===ze?null==H.offsetX?this._offsetX:H.offsetX:null==H.offsetY?this._offsetY:H.offsetY}_validatePositions(){}_addPanelClasses(H){this._pane&&(0,e.FG)(H).forEach(ze=>{""!==ze&&-1===this._appliedPanelClasses.indexOf(ze)&&(this._appliedPanelClasses.push(ze),this._pane.classList.add(ze))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(H=>{this._pane.classList.remove(H)}),this._appliedPanelClasses=[])}_getOriginRect(){const H=this._origin;if(H instanceof m.aKT)return H.nativeElement.getBoundingClientRect();if(H instanceof Element)return H.getBoundingClientRect();const ze=H.width||0,Qe=H.height||0;return{top:H.y,bottom:H.y+Qe,left:H.x,right:H.x+ze,height:Qe,width:ze}}}function Lt(G,H){for(let ze in H)H.hasOwnProperty(ze)&&(G[ze]=H[ze]);return G}function ft(G){if("number"!=typeof G&&null!=G){const[H,ze]=G.split(He);return ze&&"px"!==ze?null:parseFloat(H)}return G||null}function St(G){return{top:Math.floor(G.top),right:Math.floor(G.right),bottom:Math.floor(G.bottom),left:Math.floor(G.left),width:Math.floor(G.width),height:Math.floor(G.height)}}const en="cdk-global-overlay-wrapper";class Xt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(H){const ze=H.getConfig();this._overlayRef=H,this._width&&!ze.width&&H.updateSize({width:this._width}),this._height&&!ze.height&&H.updateSize({height:this._height}),H.hostElement.classList.add(en),this._isDisposed=!1}top(H=""){return this._bottomOffset="",this._topOffset=H,this._alignItems="flex-start",this}left(H=""){return this._xOffset=H,this._xPosition="left",this}bottom(H=""){return this._topOffset="",this._bottomOffset=H,this._alignItems="flex-end",this}right(H=""){return this._xOffset=H,this._xPosition="right",this}start(H=""){return this._xOffset=H,this._xPosition="start",this}end(H=""){return this._xOffset=H,this._xPosition="end",this}width(H=""){return this._overlayRef?this._overlayRef.updateSize({width:H}):this._width=H,this}height(H=""){return this._overlayRef?this._overlayRef.updateSize({height:H}):this._height=H,this}centerHorizontally(H=""){return this.left(H),this._xPosition="center",this}centerVertically(H=""){return this.top(H),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const H=this._overlayRef.overlayElement.style,ze=this._overlayRef.hostElement.style,Qe=this._overlayRef.getConfig(),{width:ht,height:Kt,maxWidth:fn,maxHeight:In}=Qe,Kn=!("100%"!==ht&&"100vw"!==ht||fn&&"100%"!==fn&&"100vw"!==fn),Gn=!("100%"!==Kt&&"100vh"!==Kt||In&&"100%"!==In&&"100vh"!==In),$n=this._xPosition,Nn=this._xOffset,vn="rtl"===this._overlayRef.getConfig().direction;let Jt="",An="",Yt="";Kn?Yt="flex-start":"center"===$n?(Yt="center",vn?An=Nn:Jt=Nn):vn?"left"===$n||"end"===$n?(Yt="flex-end",Jt=Nn):("right"===$n||"start"===$n)&&(Yt="flex-start",An=Nn):"left"===$n||"start"===$n?(Yt="flex-start",Jt=Nn):("right"===$n||"end"===$n)&&(Yt="flex-end",An=Nn),H.position=this._cssPosition,H.marginLeft=Kn?"0":Jt,H.marginTop=Gn?"0":this._topOffset,H.marginBottom=this._bottomOffset,H.marginRight=Kn?"0":An,ze.justifyContent=Yt,ze.alignItems=Gn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const H=this._overlayRef.overlayElement.style,ze=this._overlayRef.hostElement,Qe=ze.style;ze.classList.remove(en),Qe.justifyContent=Qe.alignItems=H.marginTop=H.marginBottom=H.marginLeft=H.marginRight=H.position="",this._overlayRef=null,this._isDisposed=!0}}let Tn=(()=>{class G{constructor(ze,Qe,ht,Kt){this._viewportRuler=ze,this._document=Qe,this._platform=ht,this._overlayContainer=Kt}global(){return new Xt}flexibleConnectedTo(ze){return new xt(ze,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(Qe){return new(Qe||G)(m.KVO(t.Xj),m.KVO(r.qQ),m.KVO(z.OD),m.KVO(Bt))};static#t=this.\u0275prov=m.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})(),Jn=0,Dn=(()=>{class G{constructor(ze,Qe,ht,Kt,fn,In,Kn,Gn,$n,Nn,vn,Jt){this.scrollStrategies=ze,this._overlayContainer=Qe,this._componentFactoryResolver=ht,this._positionBuilder=Kt,this._keyboardDispatcher=fn,this._injector=In,this._ngZone=Kn,this._document=Gn,this._directionality=$n,this._location=Nn,this._outsideClickDispatcher=vn,this._animationsModuleType=Jt}create(ze){const Qe=this._createHostElement(),ht=this._createPaneElement(Qe),Kt=this._createPortalOutlet(ht),fn=new U(ze);return fn.direction=fn.direction||this._directionality.value,new Tt(Kt,Qe,ht,fn,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(m.uvJ))}position(){return this._positionBuilder}_createPaneElement(ze){const Qe=this._document.createElement("div");return Qe.id="cdk-overlay-"+Jn++,Qe.classList.add("cdk-overlay-pane"),ze.appendChild(Qe),Qe}_createHostElement(){const ze=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ze),ze}_createPortalOutlet(ze){return this._appRef||(this._appRef=this._injector.get(m.o8S)),new I.aI(ze,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(Qe){return new(Qe||G)(m.KVO(pe),m.KVO(Bt),m.KVO(m.OM3),m.KVO(Tn),m.KVO(X),m.KVO(m.zZn),m.KVO(m.SKi),m.KVO(r.qQ),m.KVO(k.dS),m.KVO(r.aZ),m.KVO(se),m.KVO(m.bc$,8))};static#t=this.\u0275prov=m.jDH({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})();const Mt=[{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"}],Ut=new m.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const G=(0,m.WQX)(Dn);return()=>G.scrollStrategies.reposition()}});let wt=(()=>{class G{constructor(ze){this.elementRef=ze}static#e=this.\u0275fac=function(Qe){return new(Qe||G)(m.rXU(m.aKT))};static#t=this.\u0275dir=m.FsC({type:G,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return G})(),Ft=(()=>{class G{get offsetX(){return this._offsetX}set offsetX(ze){this._offsetX=ze,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ze){this._offsetY=ze,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(ze){this._disposeOnNavigation=ze}constructor(ze,Qe,ht,Kt,fn){this._overlay=ze,this._dir=fn,this._backdropSubscription=P.yU.EMPTY,this._attachSubscription=P.yU.EMPTY,this._detachSubscription=P.yU.EMPTY,this._positionSubscription=P.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,m.WQX)(m.SKi),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new m.bkB,this.positionChange=new m.bkB,this.attach=new m.bkB,this.detach=new m.bkB,this.overlayKeydown=new m.bkB,this.overlayOutsideClick=new m.bkB,this._templatePortal=new I.VA(Qe,ht),this._scrollStrategyFactory=Kt,this.scrollStrategy=this._scrollStrategyFactory()}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(ze){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ze.origin&&this.open&&this._position.apply()),ze.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Mt);const ze=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ze.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ze.detachments().subscribe(()=>this.detach.emit()),ze.keydownEvents().subscribe(Qe=>{this.overlayKeydown.next(Qe),Qe.keyCode===N._f&&!this.disableClose&&!(0,N.rp)(Qe)&&(Qe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Qe=>{const ht=this._getOriginElement(),Kt=(0,z.Fb)(Qe);(!ht||ht!==Kt&&!ht.contains(Kt))&&this.overlayOutsideClick.next(Qe)})}_buildConfig(){const ze=this._position=this.positionStrategy||this._createPositionStrategy(),Qe=new U({direction:this._dir,positionStrategy:ze,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(Qe.width=this.width),(this.height||0===this.height)&&(Qe.height=this.height),(this.minWidth||0===this.minWidth)&&(Qe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Qe.minHeight=this.minHeight),this.backdropClass&&(Qe.backdropClass=this.backdropClass),this.panelClass&&(Qe.panelClass=this.panelClass),Qe}_updatePositionStrategy(ze){const Qe=this.positions.map(ht=>({originX:ht.originX,originY:ht.originY,overlayX:ht.overlayX,overlayY:ht.overlayY,offsetX:ht.offsetX||this.offsetX,offsetY:ht.offsetY||this.offsetY,panelClass:ht.panelClass||void 0}));return ze.setOrigin(this._getOrigin()).withPositions(Qe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ze=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(ze),ze}_getOrigin(){return this.origin instanceof wt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof wt?this.origin.elementRef.nativeElement:this.origin instanceof m.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_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(ze=>{this.backdropClick.emit(ze)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,$.v)(()=>this.positionChange.observers.length>0)).subscribe(ze=>{this._ngZone.run(()=>this.positionChange.emit(ze)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(Qe){return new(Qe||G)(m.rXU(Dn),m.rXU(m.C4Q),m.rXU(m.c1b),m.rXU(Ut),m.rXU(k.dS,8))};static#t=this.\u0275dir=m.FsC({type:G,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",m.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",m.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",m.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",m.L39],push:[2,"cdkConnectedOverlayPush","push",m.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",m.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[m.GFd,m.OA$]})}return G})();const Xe={provide:Ut,deps:[Dn],useFactory:function Qt(G){return()=>G.scrollStrategies.reposition()}};let ke=(()=>{class G{static#e=this.\u0275fac=function(Qe){return new(Qe||G)};static#t=this.\u0275mod=m.$C({type:G});static#n=this.\u0275inj=m.G2t({providers:[Dn,Xe],imports:[k.jI,I.jc,t.E9,t.E9]})}return G})()},6860:($t,De,a)=>{a.d(De,{BD:()=>oe,BQ:()=>w,CZ:()=>x,Fb:()=>Pe,IK:()=>z,KT:()=>Ie,OD:()=>e,r5:()=>P,v8:()=>ve,vc:()=>ce});var t=a(3953),r=a(177);let m;try{m=typeof Intl<"u"&&Intl.v8BreakIterator}catch{m=!1}let k,e=(()=>{class pe{constructor(M){this._platformId=M,this.isBrowser=this._platformId?(0,r.UE)(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&&!m)&&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}static#e=this.\u0275fac=function(te){return new(te||pe)(t.KVO(t.Agw))};static#t=this.\u0275prov=t.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})(),z=(()=>{class pe{static#e=this.\u0275fac=function(te){return new(te||pe)};static#t=this.\u0275mod=t.$C({type:pe});static#n=this.\u0275inj=t.G2t({})}return pe})();function w(pe){return function I(){if(null==k&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>k=!0}))}finally{k=k||!1}return k}()?pe:!!pe.capture}var P=function(pe){return pe[pe.NORMAL=0]="NORMAL",pe[pe.NEGATED=1]="NEGATED",pe[pe.INVERTED=2]="INVERTED",pe}(P||{});let Q,N,ee;function x(){if(null==N){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return N=!1,N;if("scrollBehavior"in document.documentElement.style)N=!0;else{const pe=Element.prototype.scrollTo;N=!!pe&&!/\{\s*\[native code\]\s*\}/.test(pe.toString())}}return N}function oe(){if("object"!=typeof document||!document)return P.NORMAL;if(null==Q){const pe=document.createElement("div"),U=pe.style;pe.dir="rtl",U.width="1px",U.overflow="auto",U.visibility="hidden",U.pointerEvents="none",U.position="absolute";const M=document.createElement("div"),te=M.style;te.width="2px",te.height="1px",pe.appendChild(M),document.body.appendChild(pe),Q=P.NORMAL,0===pe.scrollLeft&&(pe.scrollLeft=1,Q=0===pe.scrollLeft?P.NEGATED:P.INVERTED),pe.remove()}return Q}function Ie(pe){if(function Ee(){if(null==ee){const pe=typeof document<"u"?document.head:null;ee=!(!pe||!pe.createShadowRoot&&!pe.attachShadow)}return ee}()){const U=pe.getRootNode?pe.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&U instanceof ShadowRoot)return U}return null}function ce(){let pe=typeof document<"u"&&document?document.activeElement:null;for(;pe&&pe.shadowRoot;){const U=pe.shadowRoot.activeElement;if(U===pe)break;pe=U}return pe}function Pe(pe){return pe.composedPath?pe.composedPath()[0]:pe.target}function ve(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:($t,De,a)=>{a.d(De,{A8:()=>I,I3:()=>Ie,VA:()=>w,aI:()=>x,jc:()=>Pe,lb:()=>Q});var t=a(3953),r=a(177);class k{attach(U){return this._attachedHost=U,U.attach(this)}detach(){let U=this._attachedHost;null!=U&&(this._attachedHost=null,U.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(U){this._attachedHost=U}}class I extends k{constructor(U,M,te,ge,T){super(),this.component=U,this.viewContainerRef=M,this.injector=te,this.componentFactoryResolver=ge,this.projectableNodes=T}}class w extends k{constructor(U,M,te,ge){super(),this.templateRef=U,this.viewContainerRef=M,this.context=te,this.injector=ge}get origin(){return this.templateRef.elementRef}attach(U,M=this.context){return this.context=M,super.attach(U)}detach(){return this.context=void 0,super.detach()}}class P extends k{constructor(U){super(),this.element=U instanceof t.aKT?U.nativeElement:U}}class Q{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(U){return U instanceof I?(this._attachedPortal=U,this.attachComponentPortal(U)):U instanceof w?(this._attachedPortal=U,this.attachTemplatePortal(U)):this.attachDomPortal&&U instanceof P?(this._attachedPortal=U,this.attachDomPortal(U)):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(U){this._disposeFn=U}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class x extends Q{constructor(U,M,te,ge,T){super(),this.outletElement=U,this._componentFactoryResolver=M,this._appRef=te,this._defaultInjector=ge,this.attachDomPortal=D=>{const A=D.element,X=this._document.createComment("dom-portal");A.parentNode.insertBefore(X,A),this.outletElement.appendChild(A),this._attachedPortal=D,super.setDisposeFn(()=>{X.parentNode&&X.parentNode.replaceChild(A,X)})},this._document=T}attachComponentPortal(U){const te=(U.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(U.component);let ge;return U.viewContainerRef?(ge=U.viewContainerRef.createComponent(te,U.viewContainerRef.length,U.injector||U.viewContainerRef.injector,U.projectableNodes||void 0),this.setDisposeFn(()=>ge.destroy())):(ge=te.create(U.injector||this._defaultInjector||t.zZn.NULL),this._appRef.attachView(ge.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ge.hostView),ge.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ge)),this._attachedPortal=U,ge}attachTemplatePortal(U){let M=U.viewContainerRef,te=M.createEmbeddedView(U.templateRef,U.context,{injector:U.injector});return te.rootNodes.forEach(ge=>this.outletElement.appendChild(ge)),te.detectChanges(),this.setDisposeFn(()=>{let ge=M.indexOf(te);-1!==ge&&M.remove(ge)}),this._attachedPortal=U,te}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(U){return U.hostView.rootNodes[0]}}let Ie=(()=>{class pe extends Q{constructor(M,te,ge){super(),this._componentFactoryResolver=M,this._viewContainerRef=te,this._isInitialized=!1,this.attached=new t.bkB,this.attachDomPortal=T=>{const D=T.element,A=this._document.createComment("dom-portal");T.setAttachedHost(this),D.parentNode.insertBefore(A,D),this._getRootNode().appendChild(D),this._attachedPortal=T,super.setDisposeFn(()=>{A.parentNode&&A.parentNode.replaceChild(D,A)})},this._document=ge}get portal(){return this._attachedPortal}set portal(M){this.hasAttached()&&!M&&!this._isInitialized||(this.hasAttached()&&super.detach(),M&&super.attach(M),this._attachedPortal=M||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(M){M.setAttachedHost(this);const te=null!=M.viewContainerRef?M.viewContainerRef:this._viewContainerRef,T=(M.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(M.component),D=te.createComponent(T,te.length,M.injector||te.injector,M.projectableNodes||void 0);return te!==this._viewContainerRef&&this._getRootNode().appendChild(D.hostView.rootNodes[0]),super.setDisposeFn(()=>D.destroy()),this._attachedPortal=M,this._attachedRef=D,this.attached.emit(D),D}attachTemplatePortal(M){M.setAttachedHost(this);const te=this._viewContainerRef.createEmbeddedView(M.templateRef,M.context,{injector:M.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=M,this._attachedRef=te,this.attached.emit(te),te}_getRootNode(){const M=this._viewContainerRef.element.nativeElement;return M.nodeType===M.ELEMENT_NODE?M:M.parentNode}static#e=this.\u0275fac=function(te){return new(te||pe)(t.rXU(t.OM3),t.rXU(t.c1b),t.rXU(r.qQ))};static#t=this.\u0275dir=t.FsC({type:pe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[t.Vt3]})}return pe})(),Pe=(()=>{class pe{static#e=this.\u0275fac=function(te){return new(te||pe)};static#t=this.\u0275mod=t.$C({type:pe});static#n=this.\u0275inj=t.G2t({})}return pe})()},946:($t,De,a)=>{a.d(De,{yg:()=>xt,E$:()=>Mt,d6:()=>Jn,R:()=>ft,E9:()=>Qt,Xj:()=>It});var t=a(4085),r=a(3953),m=a(1413),e=a(7673),z=a(1985),j=a(3726),R=a(536),$=a(5007),k=a(8359),I=a(4402),w=a(3294),P=a(3798),Q=a(5964),N=a(6977),x=a(9172),oe=a(3946),ee=a(5558),Ee=a(4668),Ie=a(6860),ce=a(177),Pe=a(8203),ve=a(17);class pe{}class M extends pe{constructor(ke){super(),this._data=ke}connect(){return(0,I.A)(this._data)?this._data:(0,e.of)(this._data)}disconnect(){}}var te=function(Xe){return Xe[Xe.REPLACED=0]="REPLACED",Xe[Xe.INSERTED=1]="INSERTED",Xe[Xe.MOVED=2]="MOVED",Xe[Xe.REMOVED=3]="REMOVED",Xe}(te||{});const ge=new r.nKC("_ViewRepeater");class D{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ke,q,G,H,ze){ke.forEachOperation((Qe,ht,Kt)=>{let fn,In;null==Qe.previousIndex?(fn=this._insertView(()=>G(Qe,ht,Kt),Kt,q,H(Qe)),In=fn?te.INSERTED:te.REPLACED):null==Kt?(this._detachAndCacheView(ht,q),In=te.REMOVED):(fn=this._moveView(ht,Kt,q,H(Qe)),In=te.MOVED),ze&&ze({context:fn?.context,operation:In,record:Qe})})}detach(){for(const ke of this._viewCache)ke.destroy();this._viewCache=[]}_insertView(ke,q,G,H){const ze=this._insertViewFromCache(q,G);if(ze)return void(ze.context.$implicit=H);const Qe=ke();return G.createEmbeddedView(Qe.templateRef,Qe.context,Qe.index)}_detachAndCacheView(ke,q){const G=q.detach(ke);this._maybeCacheView(G,q)}_moveView(ke,q,G,H){const ze=G.get(ke);return G.move(ze,q),ze.context.$implicit=H,ze}_maybeCacheView(ke,q){if(this._viewCache.length0?ze/this._itemSize:0;if(q.end>H){const Kt=Math.ceil(G/this._itemSize),fn=Math.max(0,Math.min(Qe,H-Kt));Qe!=fn&&(Qe=fn,ze=fn*this._itemSize,q.start=Math.floor(Qe)),q.end=Math.max(0,Math.min(H,q.start+Kt))}const ht=ze-q.start*this._itemSize;if(ht0&&(q.end=Math.min(H,q.end+fn),q.start=Math.max(0,Math.floor(Qe-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(q),this._viewport.setRenderedContentOffset(this._itemSize*q.start),this._scrolledIndexChange.next(Math.floor(Qe))}}function He(Xe){return Xe._scrollStrategy}let xt=(()=>{class Xe{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Vt(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(q){this._itemSize=(0,t.OE)(q)}get minBufferPx(){return this._minBufferPx}set minBufferPx(q){this._minBufferPx=(0,t.OE)(q)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(q){this._maxBufferPx=(0,t.OE)(q)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}static#e=this.\u0275fac=function(G){return new(G||Xe)};static#t=this.\u0275dir=r.FsC({type:Xe,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},standalone:!0,features:[r.Jv_([{provide:Tt,useFactory:He,deps:[(0,r.Rfq)(()=>Xe)]}]),r.OA$]})}return Xe})(),ft=(()=>{class Xe{constructor(q,G,H){this._ngZone=q,this._platform=G,this._scrolled=new m.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=H}register(q){this.scrollContainers.has(q)||this.scrollContainers.set(q,q.elementScrolled().subscribe(()=>this._scrolled.next(q)))}deregister(q){const G=this.scrollContainers.get(q);G&&(G.unsubscribe(),this.scrollContainers.delete(q))}scrolled(q=20){return this._platform.isBrowser?new z.c(G=>{this._globalSubscription||this._addGlobalListener();const H=q>0?this._scrolled.pipe((0,P.Z)(q)).subscribe(G):this._scrolled.subscribe(G);return this._scrolledCount++,()=>{H.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((q,G)=>this.deregister(G)),this._scrolled.complete()}ancestorScrolled(q,G){const H=this.getAncestorScrollContainers(q);return this.scrolled(G).pipe((0,Q.p)(ze=>!ze||H.indexOf(ze)>-1))}getAncestorScrollContainers(q){const G=[];return this.scrollContainers.forEach((H,ze)=>{this._scrollableContainsElement(ze,q)&&G.push(ze)}),G}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(q,G){let H=(0,t.i8)(G),ze=q.getElementRef().nativeElement;do{if(H==ze)return!0}while(H=H.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const q=this._getWindow();return(0,j.R)(q.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(G){return new(G||Xe)(r.KVO(r.SKi),r.KVO(Ie.OD),r.KVO(ce.qQ,8))};static#t=this.\u0275prov=r.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}return Xe})(),St=(()=>{class Xe{constructor(q,G,H,ze){this.elementRef=q,this.scrollDispatcher=G,this.ngZone=H,this.dir=ze,this._destroyed=new m.B,this._elementScrolled=new z.c(Qe=>this.ngZone.runOutsideAngular(()=>(0,j.R)(this.elementRef.nativeElement,"scroll").pipe((0,N.Q)(this._destroyed)).subscribe(Qe)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(q){const G=this.elementRef.nativeElement,H=this.dir&&"rtl"==this.dir.value;null==q.left&&(q.left=H?q.end:q.start),null==q.right&&(q.right=H?q.start:q.end),null!=q.bottom&&(q.top=G.scrollHeight-G.clientHeight-q.bottom),H&&(0,Ie.BD)()!=Ie.r5.NORMAL?(null!=q.left&&(q.right=G.scrollWidth-G.clientWidth-q.left),(0,Ie.BD)()==Ie.r5.INVERTED?q.left=q.right:(0,Ie.BD)()==Ie.r5.NEGATED&&(q.left=q.right?-q.right:q.right)):null!=q.right&&(q.left=G.scrollWidth-G.clientWidth-q.right),this._applyScrollToOptions(q)}_applyScrollToOptions(q){const G=this.elementRef.nativeElement;(0,Ie.CZ)()?G.scrollTo(q):(null!=q.top&&(G.scrollTop=q.top),null!=q.left&&(G.scrollLeft=q.left))}measureScrollOffset(q){const G="left",H="right",ze=this.elementRef.nativeElement;if("top"==q)return ze.scrollTop;if("bottom"==q)return ze.scrollHeight-ze.clientHeight-ze.scrollTop;const Qe=this.dir&&"rtl"==this.dir.value;return"start"==q?q=Qe?H:G:"end"==q&&(q=Qe?G:H),Qe&&(0,Ie.BD)()==Ie.r5.INVERTED?q==G?ze.scrollWidth-ze.clientWidth-ze.scrollLeft:ze.scrollLeft:Qe&&(0,Ie.BD)()==Ie.r5.NEGATED?q==G?ze.scrollLeft+ze.scrollWidth-ze.clientWidth:-ze.scrollLeft:q==G?ze.scrollLeft:ze.scrollWidth-ze.clientWidth-ze.scrollLeft}static#e=this.\u0275fac=function(G){return new(G||Xe)(r.rXU(r.aKT),r.rXU(ft),r.rXU(r.SKi),r.rXU(Pe.dS,8))};static#t=this.\u0275dir=r.FsC({type:Xe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return Xe})(),It=(()=>{class Xe{constructor(q,G,H){this._platform=q,this._change=new m.B,this._changeListener=ze=>{this._change.next(ze)},this._document=H,G.runOutsideAngular(()=>{if(q.isBrowser){const ze=this._getWindow();ze.addEventListener("resize",this._changeListener),ze.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const q=this._getWindow();q.removeEventListener("resize",this._changeListener),q.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const q={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),q}getViewportRect(){const q=this.getViewportScrollPosition(),{width:G,height:H}=this.getViewportSize();return{top:q.top,left:q.left,bottom:q.top+H,right:q.left+G,height:H,width:G}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const q=this._document,G=this._getWindow(),H=q.documentElement,ze=H.getBoundingClientRect();return{top:-ze.top||q.body.scrollTop||G.scrollY||H.scrollTop||0,left:-ze.left||q.body.scrollLeft||G.scrollX||H.scrollLeft||0}}change(q=20){return q>0?this._change.pipe((0,P.Z)(q)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const q=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:q.innerWidth,height:q.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(G){return new(G||Xe)(r.KVO(Ie.OD),r.KVO(r.SKi),r.KVO(ce.qQ,8))};static#t=this.\u0275prov=r.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}return Xe})();const rn=new r.nKC("VIRTUAL_SCROLLABLE");let en=(()=>{class Xe extends St{constructor(q,G,H,ze){super(q,G,H,ze)}measureViewportSize(q){const G=this.elementRef.nativeElement;return"horizontal"===q?G.clientWidth:G.clientHeight}static#e=this.\u0275fac=function(G){return new(G||Xe)(r.rXU(r.aKT),r.rXU(ft),r.rXU(r.SKi),r.rXU(Pe.dS,8))};static#t=this.\u0275dir=r.FsC({type:Xe,features:[r.Vt3]})}return Xe})();const Tn=typeof requestAnimationFrame<"u"?R.X:$.$;let Jn=(()=>{class Xe extends en{get orientation(){return this._orientation}set orientation(q){this._orientation!==q&&(this._orientation=q,this._calculateSpacerSize())}constructor(q,G,H,ze,Qe,ht,Kt,fn){super(q,ht,H,Qe),this.elementRef=q,this._changeDetectorRef=G,this._scrollStrategy=ze,this.scrollable=fn,this._platform=(0,r.WQX)(Ie.OD),this._detachedSubject=new m.B,this._renderedRangeSubject=new m.B,this._orientation="vertical",this.appendOnly=!1,this.scrolledIndexChange=new z.c(In=>this._scrollStrategy.scrolledIndexChange.subscribe(Kn=>Promise.resolve().then(()=>this.ngZone.run(()=>In.next(Kn))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=k.yU.EMPTY,this._injector=(0,r.WQX)(r.zZn),this._isDestroyed=!1,this._viewportChanges=Kt.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}ngOnInit(){this._platform.isBrowser&&(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,x.Z)(null),(0,P.Z)(0,Tn),(0,N.Q)(this._destroyed)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),this._isDestroyed=!0,super.ngOnDestroy()}attach(q){this.ngZone.runOutsideAngular(()=>{this._forOf=q,this._forOf.dataStream.pipe((0,N.Q)(this._detachedSubject)).subscribe(G=>{const H=G.length;H!==this._dataLength&&(this._dataLength=H,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(q){return this.getElementRef().nativeElement.getBoundingClientRect()[q]}setTotalContentSize(q){this._totalContentSize!==q&&(this._totalContentSize=q,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(q){(function Xt(Xe,ke){return Xe.start==ke.start&&Xe.end==ke.end})(this._renderedRange,q)||(this.appendOnly&&(q={start:0,end:Math.max(this._renderedRange.end,q.end)}),this._renderedRangeSubject.next(this._renderedRange=q),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(q,G="to-start"){q=this.appendOnly&&"to-start"===G?0:q;const ze="horizontal"==this.orientation,Qe=ze?"X":"Y";let Kt=`translate${Qe}(${Number((ze&&this.dir&&"rtl"==this.dir.value?-1:1)*q)}px)`;this._renderedContentOffset=q,"to-end"===G&&(Kt+=` translate${Qe}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Kt&&(this._renderedContentTransform=Kt,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(q,G="auto"){const H={behavior:G};"horizontal"===this.orientation?H.start=q:H.top=q,this.scrollable.scrollTo(H)}scrollToIndex(q,G="auto"){this._scrollStrategy.scrollToIndex(q,G)}measureScrollOffset(q){let G;return G=this.scrollable==this?H=>super.measureScrollOffset(H):H=>this.scrollable.measureScrollOffset(H),Math.max(0,G(q??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(q){let G;const H="left",Qe="rtl"==this.dir?.value;G="start"==q?Qe?"right":H:"end"==q?Qe?H:"right":q||("horizontal"===this.orientation?"left":"top");const ht=this.scrollable.measureBoundingClientRectWithScrollOffset(G);return this.elementRef.nativeElement.getBoundingClientRect()[G]-ht}measureRenderedContentSize(){const q=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?q.offsetWidth:q.offsetHeight}measureRangeSize(q){return this._forOf?this._forOf.measureRangeSize(q,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(q){q&&this._runAfterChangeDetection.push(q),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isDestroyed||this.ngZone.run(()=>{this._changeDetectorRef.markForCheck(),this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,(0,r.mal)(()=>{this._isChangeDetectionPending=!1;const q=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const G of q)G()},{injector:this._injector})})}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}static#e=this.\u0275fac=function(G){return new(G||Xe)(r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(r.SKi),r.rXU(Tt,8),r.rXU(Pe.dS,8),r.rXU(ft),r.rXU(It),r.rXU(rn,8))};static#t=this.\u0275cmp=r.VBU({type:Xe,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(G,H){if(1&G&&r.GBs(je,7),2&G){let ze;r.mGM(ze=r.lsd())&&(H._contentWrapper=ze.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(G,H){2&G&&r.AVh("cdk-virtual-scroll-orientation-horizontal","horizontal"===H.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==H.orientation)},inputs:{orientation:"orientation",appendOnly:[2,"appendOnly","appendOnly",r.L39]},outputs:{scrolledIndexChange:"scrolledIndexChange"},standalone:!0,features:[r.Jv_([{provide:St,useFactory:(q,G)=>q||G,deps:[[new r.Xx1,new r.y_5(rn)],Xe]}]),r.GFd,r.Vt3,r.aNF],ngContentSelectors:Bt,decls:4,vars:4,consts:[["contentWrapper",""],[1,"cdk-virtual-scroll-content-wrapper"],[1,"cdk-virtual-scroll-spacer"]],template:function(G,H){1&G&&(r.NAR(),r.j41(0,"div",1,0),r.SdG(2),r.k0s(),r.nrm(3,"div",2)),2&G&&(r.R7$(3),r.xc7("width",H._totalContentWidth)("height",H._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0})}return Xe})();function Dn(Xe,ke,q){if(!q.getBoundingClientRect)return 0;const H=q.getBoundingClientRect();return"horizontal"===Xe?"start"===ke?H.left:H.right:"start"===ke?H.top:H.bottom}let Mt=(()=>{class Xe{get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(q){this._cdkVirtualForOf=q,function U(Xe){return Xe&&"function"==typeof Xe.connect&&!(Xe instanceof ve.G)}(q)?this._dataSourceChanges.next(q):this._dataSourceChanges.next(new M((0,I.A)(q)?q:Array.from(q||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(q){this._needsUpdate=!0,this._cdkVirtualForTrackBy=q?(G,H)=>q(G+(this._renderedRange?this._renderedRange.start:0),H):void 0}set cdkVirtualForTemplate(q){q&&(this._needsUpdate=!0,this._template=q)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(q){this._viewRepeater.viewCacheSize=(0,t.OE)(q)}constructor(q,G,H,ze,Qe,ht){this._viewContainerRef=q,this._template=G,this._differs=H,this._viewRepeater=ze,this._viewport=Qe,this.viewChange=new m.B,this._dataSourceChanges=new m.B,this.dataStream=this._dataSourceChanges.pipe((0,x.Z)(null),(0,oe.J)(),(0,ee.n)(([Kt,fn])=>this._changeDataSource(Kt,fn)),(0,Ee.t)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new m.B,this.dataStream.subscribe(Kt=>{this._data=Kt,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,N.Q)(this._destroyed)).subscribe(Kt=>{this._renderedRange=Kt,this.viewChange.observers.length&&ht.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}measureRangeSize(q,G){if(q.start>=q.end)return 0;const H=q.start-this._renderedRange.start,ze=q.end-q.start;let Qe,ht;for(let Kt=0;Kt-1;Kt--){const fn=this._viewContainerRef.get(Kt+H);if(fn&&fn.rootNodes.length){ht=fn.rootNodes[fn.rootNodes.length-1];break}}return Qe&&ht?Dn(G,"end",ht)-Dn(G,"start",Qe):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const q=this._differ.diff(this._renderedItems);q?this._applyChanges(q):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((q,G)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(q,G):G)),this._needsUpdate=!0)}_changeDataSource(q,G){return q&&q.disconnect(this),this._needsUpdate=!0,G?G.connect(this):(0,e.of)()}_updateContext(){const q=this._data.length;let G=this._viewContainerRef.length;for(;G--;){const H=this._viewContainerRef.get(G);H.context.index=this._renderedRange.start+G,H.context.count=q,this._updateComputedContextProperties(H.context),H.detectChanges()}}_applyChanges(q){this._viewRepeater.applyChanges(q,this._viewContainerRef,(ze,Qe,ht)=>this._getEmbeddedViewArgs(ze,ht),ze=>ze.item),q.forEachIdentityChange(ze=>{this._viewContainerRef.get(ze.currentIndex).context.$implicit=ze.item});const G=this._data.length;let H=this._viewContainerRef.length;for(;H--;){const ze=this._viewContainerRef.get(H);ze.context.index=this._renderedRange.start+H,ze.context.count=G,this._updateComputedContextProperties(ze.context)}}_updateComputedContextProperties(q){q.first=0===q.index,q.last=q.index===q.count-1,q.even=q.index%2==0,q.odd=!q.even}_getEmbeddedViewArgs(q,G){return{templateRef:this._template,context:{$implicit:q.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:G}}static#e=this.\u0275fac=function(G){return new(G||Xe)(r.rXU(r.c1b),r.rXU(r.C4Q),r.rXU(r._q3),r.rXU(ge),r.rXU(Jn,4),r.rXU(r.SKi))};static#t=this.\u0275dir=r.FsC({type:Xe,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},standalone:!0,features:[r.Jv_([{provide:ge,useClass:D}])]})}return Xe})(),Ft=(()=>{class Xe{static#e=this.\u0275fac=function(G){return new(G||Xe)};static#t=this.\u0275mod=r.$C({type:Xe});static#n=this.\u0275inj=r.G2t({})}return Xe})(),Qt=(()=>{class Xe{static#e=this.\u0275fac=function(G){return new(G||Xe)};static#t=this.\u0275mod=r.$C({type:Xe});static#n=this.\u0275inj=r.G2t({imports:[Pe.jI,Ft,Pe.jI,Ft]})}return Xe})()},177:($t,De,a)=>{a.d(De,{AJ:()=>ai,B3:()=>Vi,EO:()=>Eo,GH:()=>Wo,IJ:()=>Ei,Jj:()=>br,MD:()=>oi,N0:()=>go,PV:()=>uo,Pc:()=>Hn,QT:()=>m,QX:()=>nn,Sm:()=>oe,Sq:()=>Pt,T3:()=>qi,TG:()=>Te,UE:()=>ci,VF:()=>z,Vy:()=>yi,WO:()=>Ki,Xr:()=>Oi,YU:()=>Nr,Yq:()=>Kt,ZD:()=>e,_b:()=>lo,a:()=>St,aZ:()=>Ee,bT:()=>ii,cH:()=>ge,e1:()=>Hi,fG:()=>Mi,fw:()=>ee,gz:()=>D,hb:()=>N,hj:()=>k,lG:()=>at,oV:()=>te,pM:()=>Pt,qQ:()=>R,rd:()=>se,ux:()=>xi,vh:()=>as,xv:()=>_i});var t=a(3953);let r=null;function m(){return r}function e(L){r??=L}class z{}const R=new t.nKC("");let $=(()=>{class L{historyGo(ye){throw new Error("")}static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275prov=t.jDH({token:L,factory:()=>(0,t.WQX)(I),providedIn:"platform"})}return L})();const k=new t.nKC("");let I=(()=>{class L extends ${constructor(){super(),this._doc=(0,t.WQX)(R),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(ye){const Ge=m().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("popstate",ye,!1),()=>Ge.removeEventListener("popstate",ye)}onHashChange(ye){const Ge=m().getGlobalEventTarget(this._doc,"window");return Ge.addEventListener("hashchange",ye,!1),()=>Ge.removeEventListener("hashchange",ye)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(ye){this._location.pathname=ye}pushState(ye,Ge,jt){this._history.pushState(ye,Ge,jt)}replaceState(ye,Ge,jt){this._history.replaceState(ye,Ge,jt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ye=0){this._history.go(ye)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275prov=t.jDH({token:L,factory:()=>new L,providedIn:"platform"})}return L})();function w(L,tt){if(0==L.length)return tt;if(0==tt.length)return L;let ye=0;return L.endsWith("/")&&ye++,tt.startsWith("/")&&ye++,2==ye?L+tt.substring(1):1==ye?L+tt:L+"/"+tt}function P(L){const tt=L.match(/#|\?|$/),ye=tt&&tt.index||L.length;return L.slice(0,ye-("/"===L[ye-1]?1:0))+L.slice(ye)}function Q(L){return L&&"?"!==L[0]?"?"+L:L}let N=(()=>{class L{historyGo(ye){throw new Error("")}static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275prov=t.jDH({token:L,factory:()=>(0,t.WQX)(oe),providedIn:"root"})}return L})();const x=new t.nKC("");let oe=(()=>{class L extends N{constructor(ye,Ge){super(),this._platformLocation=ye,this._removeListenerFns=[],this._baseHref=Ge??this._platformLocation.getBaseHrefFromDOM()??(0,t.WQX)(R).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ye){this._removeListenerFns.push(this._platformLocation.onPopState(ye),this._platformLocation.onHashChange(ye))}getBaseHref(){return this._baseHref}prepareExternalUrl(ye){return w(this._baseHref,ye)}path(ye=!1){const Ge=this._platformLocation.pathname+Q(this._platformLocation.search),jt=this._platformLocation.hash;return jt&&ye?`${Ge}${jt}`:Ge}pushState(ye,Ge,jt,_n){const Vn=this.prepareExternalUrl(jt+Q(_n));this._platformLocation.pushState(ye,Ge,Vn)}replaceState(ye,Ge,jt,_n){const Vn=this.prepareExternalUrl(jt+Q(_n));this._platformLocation.replaceState(ye,Ge,Vn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ye=0){this._platformLocation.historyGo?.(ye)}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.KVO($),t.KVO(x,8))};static#t=this.\u0275prov=t.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),ee=(()=>{class L extends N{constructor(ye,Ge){super(),this._platformLocation=ye,this._baseHref="",this._removeListenerFns=[],null!=Ge&&(this._baseHref=Ge)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ye){this._removeListenerFns.push(this._platformLocation.onPopState(ye),this._platformLocation.onHashChange(ye))}getBaseHref(){return this._baseHref}path(ye=!1){const Ge=this._platformLocation.hash??"#";return Ge.length>0?Ge.substring(1):Ge}prepareExternalUrl(ye){const Ge=w(this._baseHref,ye);return Ge.length>0?"#"+Ge:Ge}pushState(ye,Ge,jt,_n){let Vn=this.prepareExternalUrl(jt+Q(_n));0==Vn.length&&(Vn=this._platformLocation.pathname),this._platformLocation.pushState(ye,Ge,Vn)}replaceState(ye,Ge,jt,_n){let Vn=this.prepareExternalUrl(jt+Q(_n));0==Vn.length&&(Vn=this._platformLocation.pathname),this._platformLocation.replaceState(ye,Ge,Vn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ye=0){this._platformLocation.historyGo?.(ye)}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.KVO($),t.KVO(x,8))};static#t=this.\u0275prov=t.jDH({token:L,factory:L.\u0275fac})}return L})(),Ee=(()=>{class L{constructor(ye){this._subject=new t.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ye;const Ge=this._locationStrategy.getBaseHref();this._basePath=function ve(L){if(new RegExp("^(https?:)?//").test(L)){const[,ye]=L.split(/\/\/[^\/]+/);return ye}return L}(P(Pe(Ge))),this._locationStrategy.onPopState(jt=>{this._subject.emit({url:this.path(!0),pop:!0,state:jt.state,type:jt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ye=!1){return this.normalize(this._locationStrategy.path(ye))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ye,Ge=""){return this.path()==this.normalize(ye+Q(Ge))}normalize(ye){return L.stripTrailingSlash(function ce(L,tt){if(!L||!tt.startsWith(L))return tt;const ye=tt.substring(L.length);return""===ye||["/",";","?","#"].includes(ye[0])?ye:tt}(this._basePath,Pe(ye)))}prepareExternalUrl(ye){return ye&&"/"!==ye[0]&&(ye="/"+ye),this._locationStrategy.prepareExternalUrl(ye)}go(ye,Ge="",jt=null){this._locationStrategy.pushState(jt,"",ye,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(ye+Q(Ge)),jt)}replaceState(ye,Ge="",jt=null){this._locationStrategy.replaceState(jt,"",ye,Ge),this._notifyUrlChangeListeners(this.prepareExternalUrl(ye+Q(Ge)),jt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ye=0){this._locationStrategy.historyGo?.(ye)}onUrlChange(ye){return this._urlChangeListeners.push(ye),this._urlChangeSubscription??=this.subscribe(Ge=>{this._notifyUrlChangeListeners(Ge.url,Ge.state)}),()=>{const Ge=this._urlChangeListeners.indexOf(ye);this._urlChangeListeners.splice(Ge,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ye="",Ge){this._urlChangeListeners.forEach(jt=>jt(ye,Ge))}subscribe(ye,Ge,jt){return this._subject.subscribe({next:ye,error:Ge,complete:jt})}static#e=this.normalizeQueryParams=Q;static#t=this.joinWithSlash=w;static#n=this.stripTrailingSlash=P;static#i=this.\u0275fac=function(Ge){return new(Ge||L)(t.KVO(N))};static#o=this.\u0275prov=t.jDH({token:L,factory:()=>function Ie(){return new Ee((0,t.KVO)(N))}(),providedIn:"root"})}return L})();function Pe(L){return L.replace(/\/index.html$/,"")}var U=function(L){return L[L.Decimal=0]="Decimal",L[L.Percent=1]="Percent",L[L.Currency=2]="Currency",L[L.Scientific=3]="Scientific",L}(U||{}),M=function(L){return L[L.Zero=0]="Zero",L[L.One=1]="One",L[L.Two=2]="Two",L[L.Few=3]="Few",L[L.Many=4]="Many",L[L.Other=5]="Other",L}(M||{}),te=function(L){return L[L.Format=0]="Format",L[L.Standalone=1]="Standalone",L}(te||{}),ge=function(L){return L[L.Narrow=0]="Narrow",L[L.Abbreviated=1]="Abbreviated",L[L.Wide=2]="Wide",L[L.Short=3]="Short",L}(ge||{}),T=function(L){return L[L.Short=0]="Short",L[L.Medium=1]="Medium",L[L.Long=2]="Long",L[L.Full=3]="Full",L}(T||{});const D={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function se(L,tt,ye){const Ge=(0,t.H5H)(L),_n=wt([Ge[t.KH2.DayPeriodsFormat],Ge[t.KH2.DayPeriodsStandalone]],tt);return wt(_n,ye)}function xt(L,tt){return wt((0,t.H5H)(L)[t.KH2.DateFormat],tt)}function Lt(L,tt){return wt((0,t.H5H)(L)[t.KH2.TimeFormat],tt)}function ft(L,tt){return wt((0,t.H5H)(L)[t.KH2.DateTimeFormat],tt)}function St(L,tt){const ye=(0,t.H5H)(L),Ge=ye[t.KH2.NumberSymbols][tt];if(typeof Ge>"u"){if(tt===D.CurrencyDecimal)return ye[t.KH2.NumberSymbols][D.Decimal];if(tt===D.CurrencyGroup)return ye[t.KH2.NumberSymbols][D.Group]}return Ge}const Tn=t.mq5;function Jn(L){if(!L[t.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${L[t.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function wt(L,tt){for(let ye=tt;ye>-1;ye--)if(typeof L[ye]<"u")return L[ye];throw new Error("Locale data API: locale data undefined")}function Ft(L){const[tt,ye]=L.split(":");return{hours:+tt,minutes:+ye}}const q=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,G={},H=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ze=function(L){return L[L.Short=0]="Short",L[L.ShortGMT=1]="ShortGMT",L[L.Long=2]="Long",L[L.Extended=3]="Extended",L}(ze||{}),Qe=function(L){return L[L.FullYear=0]="FullYear",L[L.Month=1]="Month",L[L.Date=2]="Date",L[L.Hours=3]="Hours",L[L.Minutes=4]="Minutes",L[L.Seconds=5]="Seconds",L[L.FractionalSeconds=6]="FractionalSeconds",L[L.Day=7]="Day",L}(Qe||{}),ht=function(L){return L[L.DayPeriods=0]="DayPeriods",L[L.Days=1]="Days",L[L.Months=2]="Months",L[L.Eras=3]="Eras",L}(ht||{});function Kt(L,tt,ye,Ge){let jt=function de(L){if(zt(L))return L;if("number"==typeof L&&!isNaN(L))return new Date(L);if("string"==typeof L){if(L=L.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(L)){const[jt,_n=1,Vn=1]=L.split("-").map(pi=>+pi);return fn(jt,_n-1,Vn)}const ye=parseFloat(L);if(!isNaN(L-ye))return new Date(ye);let Ge;if(Ge=L.match(q))return function Oe(L){const tt=new Date(0);let ye=0,Ge=0;const jt=L[8]?tt.setUTCFullYear:tt.setFullYear,_n=L[8]?tt.setUTCHours:tt.setHours;L[9]&&(ye=Number(L[9]+L[10]),Ge=Number(L[9]+L[11])),jt.call(tt,Number(L[1]),Number(L[2])-1,Number(L[3]));const Vn=Number(L[4]||0)-ye,pi=Number(L[5]||0)-Ge,po=Number(L[6]||0),Yi=Math.floor(1e3*parseFloat("0."+(L[7]||0)));return _n.call(tt,Vn,pi,po,Yi),tt}(Ge)}const tt=new Date(L);if(!zt(tt))throw new Error(`Unable to convert "${L}" into a date`);return tt}(L);tt=In(ye,tt)||tt;let pi,Vn=[];for(;tt;){if(pi=H.exec(tt),!pi){Vn.push(tt);break}{Vn=Vn.concat(pi.slice(1));const bo=Vn.pop();if(!bo)break;tt=bo}}let po=jt.getTimezoneOffset();Ge&&(po=ct(Ge,po),jt=function lt(L,tt,ye){const Ge=ye?-1:1,jt=L.getTimezoneOffset();return function Se(L,tt){return(L=new Date(L.getTime())).setMinutes(L.getMinutes()+tt),L}(L,Ge*(ct(tt,jt)-jt))}(jt,Ge,!0));let Yi="";return Vn.forEach(bo=>{const Qn=function Rt(L){if(mt[L])return mt[L];let tt;switch(L){case"G":case"GG":case"GGG":tt=Jt(ht.Eras,ge.Abbreviated);break;case"GGGG":tt=Jt(ht.Eras,ge.Wide);break;case"GGGGG":tt=Jt(ht.Eras,ge.Narrow);break;case"y":tt=Nn(Qe.FullYear,1,0,!1,!0);break;case"yy":tt=Nn(Qe.FullYear,2,0,!0,!0);break;case"yyy":tt=Nn(Qe.FullYear,3,0,!1,!0);break;case"yyyy":tt=Nn(Qe.FullYear,4,0,!1,!0);break;case"Y":tt=_t(1);break;case"YY":tt=_t(2,!0);break;case"YYY":tt=_t(3);break;case"YYYY":tt=_t(4);break;case"M":case"L":tt=Nn(Qe.Month,1,1);break;case"MM":case"LL":tt=Nn(Qe.Month,2,1);break;case"MMM":tt=Jt(ht.Months,ge.Abbreviated);break;case"MMMM":tt=Jt(ht.Months,ge.Wide);break;case"MMMMM":tt=Jt(ht.Months,ge.Narrow);break;case"LLL":tt=Jt(ht.Months,ge.Abbreviated,te.Standalone);break;case"LLLL":tt=Jt(ht.Months,ge.Wide,te.Standalone);break;case"LLLLL":tt=Jt(ht.Months,ge.Narrow,te.Standalone);break;case"w":tt=et(1);break;case"ww":tt=et(2);break;case"W":tt=et(1,!0);break;case"d":tt=Nn(Qe.Date,1);break;case"dd":tt=Nn(Qe.Date,2);break;case"c":case"cc":tt=Nn(Qe.Day,1);break;case"ccc":tt=Jt(ht.Days,ge.Abbreviated,te.Standalone);break;case"cccc":tt=Jt(ht.Days,ge.Wide,te.Standalone);break;case"ccccc":tt=Jt(ht.Days,ge.Narrow,te.Standalone);break;case"cccccc":tt=Jt(ht.Days,ge.Short,te.Standalone);break;case"E":case"EE":case"EEE":tt=Jt(ht.Days,ge.Abbreviated);break;case"EEEE":tt=Jt(ht.Days,ge.Wide);break;case"EEEEE":tt=Jt(ht.Days,ge.Narrow);break;case"EEEEEE":tt=Jt(ht.Days,ge.Short);break;case"a":case"aa":case"aaa":tt=Jt(ht.DayPeriods,ge.Abbreviated);break;case"aaaa":tt=Jt(ht.DayPeriods,ge.Wide);break;case"aaaaa":tt=Jt(ht.DayPeriods,ge.Narrow);break;case"b":case"bb":case"bbb":tt=Jt(ht.DayPeriods,ge.Abbreviated,te.Standalone,!0);break;case"bbbb":tt=Jt(ht.DayPeriods,ge.Wide,te.Standalone,!0);break;case"bbbbb":tt=Jt(ht.DayPeriods,ge.Narrow,te.Standalone,!0);break;case"B":case"BB":case"BBB":tt=Jt(ht.DayPeriods,ge.Abbreviated,te.Format,!0);break;case"BBBB":tt=Jt(ht.DayPeriods,ge.Wide,te.Format,!0);break;case"BBBBB":tt=Jt(ht.DayPeriods,ge.Narrow,te.Format,!0);break;case"h":tt=Nn(Qe.Hours,1,-12);break;case"hh":tt=Nn(Qe.Hours,2,-12);break;case"H":tt=Nn(Qe.Hours,1);break;case"HH":tt=Nn(Qe.Hours,2);break;case"m":tt=Nn(Qe.Minutes,1);break;case"mm":tt=Nn(Qe.Minutes,2);break;case"s":tt=Nn(Qe.Seconds,1);break;case"ss":tt=Nn(Qe.Seconds,2);break;case"S":tt=Nn(Qe.FractionalSeconds,1);break;case"SS":tt=Nn(Qe.FractionalSeconds,2);break;case"SSS":tt=Nn(Qe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":tt=Yt(ze.Short);break;case"ZZZZZ":tt=Yt(ze.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":tt=Yt(ze.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":tt=Yt(ze.Long);break;default:return null}return mt[L]=tt,tt}(bo);Yi+=Qn?Qn(jt,ye,po):"''"===bo?"'":bo.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Yi}function fn(L,tt,ye){const Ge=new Date(0);return Ge.setFullYear(L,tt,ye),Ge.setHours(0,0,0),Ge}function In(L,tt){const ye=function X(L){return(0,t.H5H)(L)[t.KH2.LocaleId]}(L);if(G[ye]??={},G[ye][tt])return G[ye][tt];let Ge="";switch(tt){case"shortDate":Ge=xt(L,T.Short);break;case"mediumDate":Ge=xt(L,T.Medium);break;case"longDate":Ge=xt(L,T.Long);break;case"fullDate":Ge=xt(L,T.Full);break;case"shortTime":Ge=Lt(L,T.Short);break;case"mediumTime":Ge=Lt(L,T.Medium);break;case"longTime":Ge=Lt(L,T.Long);break;case"fullTime":Ge=Lt(L,T.Full);break;case"short":const jt=In(L,"shortTime"),_n=In(L,"shortDate");Ge=Kn(ft(L,T.Short),[jt,_n]);break;case"medium":const Vn=In(L,"mediumTime"),pi=In(L,"mediumDate");Ge=Kn(ft(L,T.Medium),[Vn,pi]);break;case"long":const po=In(L,"longTime"),Yi=In(L,"longDate");Ge=Kn(ft(L,T.Long),[po,Yi]);break;case"full":const bo=In(L,"fullTime"),Qn=In(L,"fullDate");Ge=Kn(ft(L,T.Full),[bo,Qn])}return Ge&&(G[ye][tt]=Ge),Ge}function Kn(L,tt){return tt&&(L=L.replace(/\{([^}]+)}/g,function(ye,Ge){return null!=tt&&Ge in tt?tt[Ge]:ye})),L}function Gn(L,tt,ye="-",Ge,jt){let _n="";(L<0||jt&&L<=0)&&(jt?L=1-L:(L=-L,_n=ye));let Vn=String(L);for(;Vn.length0||pi>-ye)&&(pi+=ye),L===Qe.Hours)0===pi&&-12===ye&&(pi=12);else if(L===Qe.FractionalSeconds)return function $n(L,tt){return Gn(L,3).substring(0,tt)}(pi,tt);const po=St(Vn,D.MinusSign);return Gn(pi,tt,po,Ge,jt)}}function Jt(L,tt,ye=te.Format,Ge=!1){return function(jt,_n){return function An(L,tt,ye,Ge,jt,_n){switch(ye){case ht.Months:return function Bt(L,tt,ye){const Ge=(0,t.H5H)(L),_n=wt([Ge[t.KH2.MonthsFormat],Ge[t.KH2.MonthsStandalone]],tt);return wt(_n,ye)}(tt,jt,Ge)[L.getMonth()];case ht.Days:return function je(L,tt,ye){const Ge=(0,t.H5H)(L),_n=wt([Ge[t.KH2.DaysFormat],Ge[t.KH2.DaysStandalone]],tt);return wt(_n,ye)}(tt,jt,Ge)[L.getDay()];case ht.DayPeriods:const Vn=L.getHours(),pi=L.getMinutes();if(_n){const Yi=function Dn(L){const tt=(0,t.H5H)(L);return Jn(tt),(tt[t.KH2.ExtraData][2]||[]).map(Ge=>"string"==typeof Ge?Ft(Ge):[Ft(Ge[0]),Ft(Ge[1])])}(tt),bo=function Mt(L,tt,ye){const Ge=(0,t.H5H)(L);Jn(Ge);const _n=wt([Ge[t.KH2.ExtraData][0],Ge[t.KH2.ExtraData][1]],tt)||[];return wt(_n,ye)||[]}(tt,jt,Ge),Qn=Yi.findIndex(xo=>{if(Array.isArray(xo)){const[Li,To]=xo,ur=Vn>=Li.hours&&pi>=Li.minutes,ir=Vn0?Math.floor(jt/60):Math.ceil(jt/60);switch(L){case ze.Short:return(jt>=0?"+":"")+Gn(Vn,2,_n)+Gn(Math.abs(jt%60),2,_n);case ze.ShortGMT:return"GMT"+(jt>=0?"+":"")+Gn(Vn,1,_n);case ze.Long:return"GMT"+(jt>=0?"+":"")+Gn(Vn,2,_n)+":"+Gn(Math.abs(jt%60),2,_n);case ze.Extended:return 0===Ge?"Z":(jt>=0?"+":"")+Gn(Vn,2,_n)+":"+Gn(Math.abs(jt%60),2,_n);default:throw new Error(`Unknown zone width "${L}"`)}}}const Je=0,ae=4;function re(L){const tt=L.getDay(),ye=0===tt?-3:ae-tt;return fn(L.getFullYear(),L.getMonth(),L.getDate()+ye)}function et(L,tt=!1){return function(ye,Ge){let jt;if(tt){const _n=new Date(ye.getFullYear(),ye.getMonth(),1).getDay()-1,Vn=ye.getDate();jt=1+Math.floor((Vn+_n)/7)}else{const _n=re(ye),Vn=function ie(L){const tt=fn(L,Je,1).getDay();return fn(L,0,1+(tt<=ae?ae:ae+7)-tt)}(_n.getFullYear()),pi=_n.getTime()-Vn.getTime();jt=1+Math.round(pi/6048e5)}return Gn(jt,L,St(Ge,D.MinusSign))}}function _t(L,tt=!1){return function(ye,Ge){return Gn(re(ye).getFullYear(),L,St(Ge,D.MinusSign),tt)}}const mt={};function ct(L,tt){L=L.replace(/:/g,"");const ye=Date.parse("Jan 01, 1970 00:00:00 "+L)/6e4;return isNaN(ye)?tt:ye}function zt(L){return L instanceof Date&&!isNaN(L.valueOf())}const Ze=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Y="0";function Cn(L){const tt=parseInt(L);if(isNaN(tt))throw new Error("Invalid integer literal when parsing "+L);return tt}let ni=(()=>{class L{static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275prov=t.jDH({token:L,factory:function(Ge){let jt=null;return Ge?jt=new Ge:(_n=t.KVO(t.xe9),jt=new Ni(_n)),jt;var _n},providedIn:"root"})}return L})();let Ni=(()=>{class L extends ni{constructor(ye){super(),this.locale=ye}getPluralCategory(ye,Ge){switch(Tn(Ge||this.locale)(ye)){case M.Zero:return"zero";case M.One:return"one";case M.Two:return"two";case M.Few:return"few";case M.Many:return"many";default:return"other"}}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.KVO(t.xe9))};static#t=this.\u0275prov=t.jDH({token:L,factory:L.\u0275fac})}return L})();function Eo(L,tt,ye){return(0,t.XSP)(L,tt,ye)}function lo(L,tt){tt=encodeURIComponent(tt);for(const ye of L.split(";")){const Ge=ye.indexOf("="),[jt,_n]=-1==Ge?[ye,""]:[ye.slice(0,Ge),ye.slice(Ge+1)];if(jt.trim()===tt)return decodeURIComponent(_n)}return null}const $i=/\s+/,Ii=[];let Nr=(()=>{class L{constructor(ye,Ge){this._ngEl=ye,this._renderer=Ge,this.initialClasses=Ii,this.stateMap=new Map}set klass(ye){this.initialClasses=null!=ye?ye.trim().split($i):Ii}set ngClass(ye){this.rawClass="string"==typeof ye?ye.trim().split($i):ye}ngDoCheck(){for(const Ge of this.initialClasses)this._updateState(Ge,!0);const ye=this.rawClass;if(Array.isArray(ye)||ye instanceof Set)for(const Ge of ye)this._updateState(Ge,!0);else if(null!=ye)for(const Ge of Object.keys(ye))this._updateState(Ge,!!ye[Ge]);this._applyStateDiff()}_updateState(ye,Ge){const jt=this.stateMap.get(ye);void 0!==jt?(jt.enabled!==Ge&&(jt.changed=!0,jt.enabled=Ge),jt.touched=!0):this.stateMap.set(ye,{enabled:Ge,changed:!0,touched:!0})}_applyStateDiff(){for(const ye of this.stateMap){const Ge=ye[0],jt=ye[1];jt.changed?(this._toggleClass(Ge,jt.enabled),jt.changed=!1):jt.touched||(jt.enabled&&this._toggleClass(Ge,!1),this.stateMap.delete(Ge)),jt.touched=!1}}_toggleClass(ye,Ge){(ye=ye.trim()).length>0&&ye.split($i).forEach(jt=>{Ge?this._renderer.addClass(this._ngEl.nativeElement,jt):this._renderer.removeClass(this._ngEl.nativeElement,jt)})}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}return L})();class Gt{constructor(tt,ye,Ge,jt){this.$implicit=tt,this.ngForOf=ye,this.index=Ge,this.count=jt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Pt=(()=>{class L{set ngForOf(ye){this._ngForOf=ye,this._ngForOfDirty=!0}set ngForTrackBy(ye){this._trackByFn=ye}get ngForTrackBy(){return this._trackByFn}constructor(ye,Ge,jt){this._viewContainer=ye,this._template=Ge,this._differs=jt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(ye){ye&&(this._template=ye)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ye=this._ngForOf;!this._differ&&ye&&(this._differ=this._differs.find(ye).create(this.ngForTrackBy))}if(this._differ){const ye=this._differ.diff(this._ngForOf);ye&&this._applyChanges(ye)}}_applyChanges(ye){const Ge=this._viewContainer;ye.forEachOperation((jt,_n,Vn)=>{if(null==jt.previousIndex)Ge.createEmbeddedView(this._template,new Gt(jt.item,this._ngForOf,-1,-1),null===Vn?void 0:Vn);else if(null==Vn)Ge.remove(null===_n?void 0:_n);else if(null!==_n){const pi=Ge.get(_n);Ge.move(pi,Vn),Mn(pi,jt)}});for(let jt=0,_n=Ge.length;jt<_n;jt++){const pi=Ge.get(jt).context;pi.index=jt,pi.count=_n,pi.ngForOf=this._ngForOf}ye.forEachIdentityChange(jt=>{Mn(Ge.get(jt.currentIndex),jt)})}static ngTemplateContextGuard(ye,Ge){return!0}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(t._q3))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return L})();function Mn(L,tt){L.context.$implicit=tt.item}let ii=(()=>{class L{constructor(ye,Ge){this._viewContainer=ye,this._context=new Pn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ge}set ngIf(ye){this._context.$implicit=this._context.ngIf=ye,this._updateView()}set ngIfThen(ye){Fn("ngIfThen",ye),this._thenTemplateRef=ye,this._thenViewRef=null,this._updateView()}set ngIfElse(ye){Fn("ngIfElse",ye),this._elseTemplateRef=ye,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(ye,Ge){return!0}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return L})();class Pn{constructor(){this.$implicit=null,this.ngIf=null}}function Fn(L,tt){if(tt&&!tt.createEmbeddedView)throw new Error(`${L} must be a TemplateRef, but received '${(0,t.Tbb)(tt)}'.`)}class hi{constructor(tt,ye){this._viewContainerRef=tt,this._templateRef=ye,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(tt){tt&&!this._created?this.create():!tt&&this._created&&this.destroy()}}let xi=(()=>{class L{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ye){this._ngSwitch=ye,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ye){this._defaultViews.push(ye)}_matchCase(ye){const Ge=ye===this._ngSwitch;return this._lastCasesMatched||=Ge,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ge}_updateDefaultCases(ye){if(this._defaultViews.length>0&&ye!==this._defaultUsed){this._defaultUsed=ye;for(const Ge of this._defaultViews)Ge.enforceState(ye)}}static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return L})(),Hi=(()=>{class L{constructor(ye,Ge,jt){this.ngSwitch=jt,jt._addCase(),this._view=new hi(ye,Ge)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(xi,9))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return L})(),Mi=(()=>{class L{constructor(ye,Ge,jt){jt._addDefault(new hi(ye,Ge))}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.c1b),t.rXU(t.C4Q),t.rXU(xi,9))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return L})(),Ei=(()=>{class L{constructor(ye){this._localization=ye,this._caseViews={}}set ngPlural(ye){this._updateView(ye)}addCase(ye,Ge){this._caseViews[ye]=Ge}_updateView(ye){this._clearViews();const jt=function ui(L,tt,ye,Ge){let jt=`=${L}`;if(tt.indexOf(jt)>-1||(jt=ye.getPluralCategory(L,Ge),tt.indexOf(jt)>-1))return jt;if(tt.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${L}"`)}(ye,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[jt])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(ye){ye&&(this._activeView=ye,this._activeView.create())}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(ni))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0})}return L})(),Ki=(()=>{class L{constructor(ye,Ge,jt,_n){this.value=ye;const Vn=!isNaN(Number(ye));_n.addCase(Vn?`=${ye}`:ye,new hi(jt,Ge))}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.kS0("ngPluralCase"),t.rXU(t.C4Q),t.rXU(t.c1b),t.rXU(Ei,1))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngPluralCase",""]],standalone:!0})}return L})(),Vi=(()=>{class L{constructor(ye,Ge,jt){this._ngEl=ye,this._differs=Ge,this._renderer=jt,this._ngStyle=null,this._differ=null}set ngStyle(ye){this._ngStyle=ye,!this._differ&&ye&&(this._differ=this._differs.find(ye).create())}ngDoCheck(){if(this._differ){const ye=this._differ.diff(this._ngStyle);ye&&this._applyChanges(ye)}}_setStyle(ye,Ge){const[jt,_n]=ye.split("."),Vn=-1===jt.indexOf("-")?void 0:t.czy.DashCase;null!=Ge?this._renderer.setStyle(this._ngEl.nativeElement,jt,_n?`${Ge}${_n}`:Ge,Vn):this._renderer.removeStyle(this._ngEl.nativeElement,jt,Vn)}_applyChanges(ye){ye.forEachRemovedItem(Ge=>this._setStyle(Ge.key,null)),ye.forEachAddedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue)),ye.forEachChangedItem(Ge=>this._setStyle(Ge.key,Ge.currentValue))}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.aKT),t.rXU(t.MKu),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return L})(),qi=(()=>{class L{constructor(ye){this._viewContainerRef=ye,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(ye){if(this._shouldRecreateView(ye)){const Ge=this._viewContainerRef;if(this._viewRef&&Ge.remove(Ge.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const jt=this._createContextForwardProxy();this._viewRef=Ge.createEmbeddedView(this.ngTemplateOutlet,jt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(ye){return!!ye.ngTemplateOutlet||!!ye.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(ye,Ge,jt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ge,jt),get:(ye,Ge,jt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ge,jt)}})}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.c1b))};static#t=this.\u0275dir=t.FsC({type:L,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.OA$]})}return L})();function so(L,tt){return new t.wOt(2100,!1)}class tr{createSubscription(tt,ye){return(0,t.O8t)(()=>tt.subscribe({next:ye,error:Ge=>{throw Ge}}))}dispose(tt){(0,t.O8t)(()=>tt.unsubscribe())}}class lr{createSubscription(tt,ye){return tt.then(ye,Ge=>{throw Ge})}dispose(tt){}}const zo=new lr,Mo=new tr;let br=(()=>{class L{constructor(ye){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ye}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ye){if(!this._obj){if(ye)try{this.markForCheckOnValueUpdate=!1,this._subscribe(ye)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return ye!==this._obj?(this._dispose(),this.transform(ye)):this._latestValue}_subscribe(ye){this._obj=ye,this._strategy=this._selectStrategy(ye),this._subscription=this._strategy.createSubscription(ye,Ge=>this._updateLatestValue(ye,Ge))}_selectStrategy(ye){if((0,t.jNT)(ye))return zo;if((0,t.zjR)(ye))return Mo;throw so()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ye,Ge){ye===this._obj&&(this._latestValue=Ge,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.gRc,16))};static#t=this.\u0275pipe=t.EJ8({name:"async",type:L,pure:!1,standalone:!0})}return L})(),Wo=(()=>{class L{transform(ye){if(null==ye)return null;if("string"!=typeof ye)throw so();return ye.toLowerCase()}static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275pipe=t.EJ8({name:"lowercase",type:L,pure:!0,standalone:!0})}return L})();const Zr=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let uo=(()=>{class L{transform(ye){if(null==ye)return null;if("string"!=typeof ye)throw so();return ye.replace(Zr,Ge=>Ge[0].toUpperCase()+Ge.slice(1).toLowerCase())}static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275pipe=t.EJ8({name:"titlecase",type:L,pure:!0,standalone:!0})}return L})(),Hn=(()=>{class L{transform(ye){if(null==ye)return null;if("string"!=typeof ye)throw so();return ye.toUpperCase()}static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275pipe=t.EJ8({name:"uppercase",type:L,pure:!0,standalone:!0})}return L})();const Tr=new t.nKC(""),$r=new t.nKC("");let as=(()=>{class L{constructor(ye,Ge,jt){this.locale=ye,this.defaultTimezone=Ge,this.defaultOptions=jt}transform(ye,Ge,jt,_n){if(null==ye||""===ye||ye!=ye)return null;try{return Kt(ye,Ge??this.defaultOptions?.dateFormat??"mediumDate",_n||this.locale,jt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Vn){throw so()}}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.xe9,16),t.rXU(Tr,24),t.rXU($r,24))};static#t=this.\u0275pipe=t.EJ8({name:"date",type:L,pure:!0,standalone:!0})}return L})(),Te=(()=>{class L{transform(ye){return JSON.stringify(ye,null,2)}static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275pipe=t.EJ8({name:"json",type:L,pure:!1,standalone:!0})}return L})(),at=(()=>{class L{constructor(ye){this.differs=ye,this.keyValues=[],this.compareFn=At}transform(ye,Ge=At){if(!ye||!(ye instanceof Map)&&"object"!=typeof ye)return null;this.differ??=this.differs.find(ye).create();const jt=this.differ.diff(ye),_n=Ge!==this.compareFn;return jt&&(this.keyValues=[],jt.forEachItem(Vn=>{this.keyValues.push(function $e(L,tt){return{key:L,value:tt}}(Vn.key,Vn.currentValue))})),(jt||_n)&&(this.keyValues.sort(Ge),this.compareFn=Ge),this.keyValues}static#e=this.\u0275fac=function(Ge){return new(Ge||L)(t.rXU(t.MKu,16))};static#t=this.\u0275pipe=t.EJ8({name:"keyvalue",type:L,pure:!1,standalone:!0})}return L})();function At(L,tt){const ye=L.key,Ge=tt.key;if(ye===Ge)return 0;if(void 0===ye)return 1;if(void 0===Ge)return-1;if(null===ye)return 1;if(null===Ge)return-1;if("string"==typeof ye&&"string"==typeof Ge)return ye{class L{constructor(ye){this._locale=ye}transform(ye,Ge,jt){if(!function xn(L){return!(null==L||""===L||L!=L)}(ye))return null;jt||=this._locale;try{return function dt(L,tt,ye){return function W(L,tt,ye,Ge,jt,_n,Vn=!1){let pi="",po=!1;if(isFinite(L)){let Yi=function wn(L){let Ge,jt,_n,Vn,pi,tt=Math.abs(L)+"",ye=0;for((jt=tt.indexOf("."))>-1&&(tt=tt.replace(".","")),(_n=tt.search(/e/i))>0?(jt<0&&(jt=_n),jt+=+tt.slice(_n+1),tt=tt.substring(0,_n)):jt<0&&(jt=tt.length),_n=0;tt.charAt(_n)===Y;_n++);if(_n===(pi=tt.length))Ge=[0],jt=1;else{for(pi--;tt.charAt(pi)===Y;)pi--;for(jt-=_n,Ge=[],Vn=0;_n<=pi;_n++,Vn++)Ge[Vn]=Number(tt.charAt(_n))}return jt>22&&(Ge=Ge.splice(0,21),ye=jt-1,jt=1),{digits:Ge,exponent:ye,integerLen:jt}}(L);Vn&&(Yi=function dn(L){if(0===L.digits[0])return L;const tt=L.digits.length-L.integerLen;return L.exponent?L.exponent+=2:(0===tt?L.digits.push(0,0):1===tt&&L.digits.push(0),L.integerLen+=2),L}(Yi));let bo=tt.minInt,Qn=tt.minFrac,xo=tt.maxFrac;if(_n){const Hr=_n.match(Ze);if(null===Hr)throw new Error(`${_n} is not a valid digit info`);const zr=Hr[1],jr=Hr[3],ts=Hr[5];null!=zr&&(bo=Cn(zr)),null!=jr&&(Qn=Cn(jr)),null!=ts?xo=Cn(ts):null!=jr&&Qn>xo&&(xo=Qn)}!function si(L,tt,ye){if(tt>ye)throw new Error(`The minimum number of digits after fraction (${tt}) is higher than the maximum (${ye}).`);let Ge=L.digits,jt=Ge.length-L.integerLen;const _n=Math.min(Math.max(tt,jt),ye);let Vn=_n+L.integerLen,pi=Ge[Vn];if(Vn>0){Ge.splice(Math.max(L.integerLen,Vn));for(let Qn=Vn;Qn=5)if(Vn-1<0){for(let Qn=0;Qn>Vn;Qn--)Ge.unshift(0),L.integerLen++;Ge.unshift(1),L.integerLen++}else Ge[Vn-1]++;for(;jt=Yi?To.pop():po=!1),xo>=10?1:0},0);bo&&(Ge.unshift(bo),L.integerLen++)}(Yi,Qn,xo);let Li=Yi.digits,To=Yi.integerLen;const ur=Yi.exponent;let ir=[];for(po=Li.every(Hr=>!Hr);To0?ir=Li.splice(To,Li.length):(ir=Li,Li=[0]);const xr=[];for(Li.length>=tt.lgSize&&xr.unshift(Li.splice(-tt.lgSize,Li.length).join(""));Li.length>tt.gSize;)xr.unshift(Li.splice(-tt.gSize,Li.length).join(""));Li.length&&xr.unshift(Li.join("")),pi=xr.join(St(ye,Ge)),ir.length&&(pi+=St(ye,jt)+ir.join("")),ur&&(pi+=St(ye,D.Exponential)+"+"+ur)}else pi=St(ye,D.Infinity);return pi=L<0&&!po?tt.negPre+pi+tt.negSuf:tt.posPre+pi+tt.posSuf,pi}(L,function Ht(L,tt="-"){const ye={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ge=L.split(";"),jt=Ge[0],_n=Ge[1],Vn=-1!==jt.indexOf(".")?jt.split("."):[jt.substring(0,jt.lastIndexOf(Y)+1),jt.substring(jt.lastIndexOf(Y)+1)],pi=Vn[0],po=Vn[1]||"";ye.posPre=pi.substring(0,pi.indexOf("#"));for(let bo=0;bo{class L{static#e=this.\u0275fac=function(Ge){return new(Ge||L)};static#t=this.\u0275mod=t.$C({type:L});static#n=this.\u0275inj=t.G2t({})}return L})();const ai="browser",Ti="server";function ci(L){return L===ai}function yi(L){return L===Ti}const _i=new t.RxE("18.1.2");let Oi=(()=>{class L{static#e=this.\u0275prov=(0,t.jDH)({token:L,providedIn:"root",factory:()=>ci((0,t.WQX)(t.Agw))?new ki((0,t.WQX)(R),window):new Ai})}return L})();class ki{constructor(tt,ye){this.document=tt,this.window=ye,this.offset=()=>[0,0]}setOffset(tt){this.offset=Array.isArray(tt)?()=>tt:tt}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(tt){this.window.scrollTo(tt[0],tt[1])}scrollToAnchor(tt){const ye=function co(L,tt){const ye=L.getElementById(tt)||L.getElementsByName(tt)[0];if(ye)return ye;if("function"==typeof L.createTreeWalker&&L.body&&"function"==typeof L.body.attachShadow){const Ge=L.createTreeWalker(L.body,NodeFilter.SHOW_ELEMENT);let jt=Ge.currentNode;for(;jt;){const _n=jt.shadowRoot;if(_n){const Vn=_n.getElementById(tt)||_n.querySelector(`[name="${tt}"]`);if(Vn)return Vn}jt=Ge.nextNode()}}return null}(this.document,tt);ye&&(this.scrollToElement(ye),ye.focus())}setHistoryScrollRestoration(tt){this.window.history.scrollRestoration=tt}scrollToElement(tt){const ye=tt.getBoundingClientRect(),Ge=ye.left+this.window.pageXOffset,jt=ye.top+this.window.pageYOffset,_n=this.offset();this.window.scrollTo(Ge-_n[0],jt-_n[1])}}class Ai{setOffset(tt){}getScrollPosition(){return[0,0]}scrollToPosition(tt){}scrollToAnchor(tt){}setHistoryScrollRestoration(tt){}}class go{}},1626:($t,De,a)=>{a.d(De,{$R:()=>lt,JV:()=>Q,Lr:()=>N,Qq:()=>ft,Sx:()=>zt,YH:()=>Le,c2:()=>Ze});var t=a(4523),r=a(3953),m=a(7673),e=a(1985),z=a(2806),j=a(274),R=a(5964),$=a(6354),k=a(980),I=a(5558),w=a(177);class P{}class Q{}class N{constructor(Gt){this.normalizedNames=new Map,this.lazyUpdate=null,Gt?"string"==typeof Gt?this.lazyInit=()=>{this.headers=new Map,Gt.split("\n").forEach(Pt=>{const Mn=Pt.indexOf(":");if(Mn>0){const En=Pt.slice(0,Mn),ii=En.toLowerCase(),Pn=Pt.slice(Mn+1).trim();this.maybeSetNormalizedName(En,ii),this.headers.has(ii)?this.headers.get(ii).push(Pn):this.headers.set(ii,[Pn])}})}:typeof Headers<"u"&&Gt instanceof Headers?(this.headers=new Map,Gt.forEach((Pt,Mn)=>{this.setHeaderEntries(Mn,Pt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Gt).forEach(([Pt,Mn])=>{this.setHeaderEntries(Pt,Mn)})}:this.headers=new Map}has(Gt){return this.init(),this.headers.has(Gt.toLowerCase())}get(Gt){this.init();const Pt=this.headers.get(Gt.toLowerCase());return Pt&&Pt.length>0?Pt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Gt){return this.init(),this.headers.get(Gt.toLowerCase())||null}append(Gt,Pt){return this.clone({name:Gt,value:Pt,op:"a"})}set(Gt,Pt){return this.clone({name:Gt,value:Pt,op:"s"})}delete(Gt,Pt){return this.clone({name:Gt,value:Pt,op:"d"})}maybeSetNormalizedName(Gt,Pt){this.normalizedNames.has(Pt)||this.normalizedNames.set(Pt,Gt)}init(){this.lazyInit&&(this.lazyInit instanceof N?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Gt=>this.applyUpdate(Gt)),this.lazyUpdate=null))}copyFrom(Gt){Gt.init(),Array.from(Gt.headers.keys()).forEach(Pt=>{this.headers.set(Pt,Gt.headers.get(Pt)),this.normalizedNames.set(Pt,Gt.normalizedNames.get(Pt))})}clone(Gt){const Pt=new N;return Pt.lazyInit=this.lazyInit&&this.lazyInit instanceof N?this.lazyInit:this,Pt.lazyUpdate=(this.lazyUpdate||[]).concat([Gt]),Pt}applyUpdate(Gt){const Pt=Gt.name.toLowerCase();switch(Gt.op){case"a":case"s":let Mn=Gt.value;if("string"==typeof Mn&&(Mn=[Mn]),0===Mn.length)return;this.maybeSetNormalizedName(Gt.name,Pt);const En=("a"===Gt.op?this.headers.get(Pt):void 0)||[];En.push(...Mn),this.headers.set(Pt,En);break;case"d":const ii=Gt.value;if(ii){let Pn=this.headers.get(Pt);if(!Pn)return;Pn=Pn.filter(Fn=>-1===ii.indexOf(Fn)),0===Pn.length?(this.headers.delete(Pt),this.normalizedNames.delete(Pt)):this.headers.set(Pt,Pn)}else this.headers.delete(Pt),this.normalizedNames.delete(Pt)}}setHeaderEntries(Gt,Pt){const Mn=(Array.isArray(Pt)?Pt:[Pt]).map(ii=>ii.toString()),En=Gt.toLowerCase();this.headers.set(En,Mn),this.maybeSetNormalizedName(Gt,En)}forEach(Gt){this.init(),Array.from(this.normalizedNames.keys()).forEach(Pt=>Gt(this.normalizedNames.get(Pt),this.headers.get(Pt)))}}class oe{encodeKey(Gt){return ce(Gt)}encodeValue(Gt){return ce(Gt)}decodeKey(Gt){return decodeURIComponent(Gt)}decodeValue(Gt){return decodeURIComponent(Gt)}}const Ee=/%(\d[a-f0-9])/gi,Ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ce(vt){return encodeURIComponent(vt).replace(Ee,(Gt,Pt)=>Ie[Pt]??Gt)}function Pe(vt){return`${vt}`}class ve{constructor(Gt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Gt.encoder||new oe,Gt.fromString){if(Gt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ee(vt,Gt){const Pt=new Map;return vt.length>0&&vt.replace(/^\?/,"").split("&").forEach(En=>{const ii=En.indexOf("="),[Pn,Fn]=-1==ii?[Gt.decodeKey(En),""]:[Gt.decodeKey(En.slice(0,ii)),Gt.decodeValue(En.slice(ii+1))],hi=Pt.get(Pn)||[];hi.push(Fn),Pt.set(Pn,hi)}),Pt}(Gt.fromString,this.encoder)}else Gt.fromObject?(this.map=new Map,Object.keys(Gt.fromObject).forEach(Pt=>{const Mn=Gt.fromObject[Pt],En=Array.isArray(Mn)?Mn.map(Pe):[Pe(Mn)];this.map.set(Pt,En)})):this.map=null}has(Gt){return this.init(),this.map.has(Gt)}get(Gt){this.init();const Pt=this.map.get(Gt);return Pt?Pt[0]:null}getAll(Gt){return this.init(),this.map.get(Gt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Gt,Pt){return this.clone({param:Gt,value:Pt,op:"a"})}appendAll(Gt){const Pt=[];return Object.keys(Gt).forEach(Mn=>{const En=Gt[Mn];Array.isArray(En)?En.forEach(ii=>{Pt.push({param:Mn,value:ii,op:"a"})}):Pt.push({param:Mn,value:En,op:"a"})}),this.clone(Pt)}set(Gt,Pt){return this.clone({param:Gt,value:Pt,op:"s"})}delete(Gt,Pt){return this.clone({param:Gt,value:Pt,op:"d"})}toString(){return this.init(),this.keys().map(Gt=>{const Pt=this.encoder.encodeKey(Gt);return this.map.get(Gt).map(Mn=>Pt+"="+this.encoder.encodeValue(Mn)).join("&")}).filter(Gt=>""!==Gt).join("&")}clone(Gt){const Pt=new ve({encoder:this.encoder});return Pt.cloneFrom=this.cloneFrom||this,Pt.updates=(this.updates||[]).concat(Gt),Pt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Gt=>this.map.set(Gt,this.cloneFrom.map.get(Gt))),this.updates.forEach(Gt=>{switch(Gt.op){case"a":case"s":const Pt=("a"===Gt.op?this.map.get(Gt.param):void 0)||[];Pt.push(Pe(Gt.value)),this.map.set(Gt.param,Pt);break;case"d":if(void 0===Gt.value){this.map.delete(Gt.param);break}{let Mn=this.map.get(Gt.param)||[];const En=Mn.indexOf(Pe(Gt.value));-1!==En&&Mn.splice(En,1),Mn.length>0?this.map.set(Gt.param,Mn):this.map.delete(Gt.param)}}}),this.cloneFrom=this.updates=null)}}class U{constructor(){this.map=new Map}set(Gt,Pt){return this.map.set(Gt,Pt),this}get(Gt){return this.map.has(Gt)||this.map.set(Gt,Gt.defaultValue()),this.map.get(Gt)}delete(Gt){return this.map.delete(Gt),this}has(Gt){return this.map.has(Gt)}keys(){return this.map.keys()}}function te(vt){return typeof ArrayBuffer<"u"&&vt instanceof ArrayBuffer}function ge(vt){return typeof Blob<"u"&&vt instanceof Blob}function T(vt){return typeof FormData<"u"&&vt instanceof FormData}class A{constructor(Gt,Pt,Mn,En){let ii;if(this.url=Pt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Gt.toUpperCase(),function M(vt){switch(vt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||En?(this.body=void 0!==Mn?Mn:null,ii=En):ii=Mn,ii&&(this.reportProgress=!!ii.reportProgress,this.withCredentials=!!ii.withCredentials,ii.responseType&&(this.responseType=ii.responseType),ii.headers&&(this.headers=ii.headers),ii.context&&(this.context=ii.context),ii.params&&(this.params=ii.params),this.transferCache=ii.transferCache),this.headers??=new N,this.context??=new U,this.params){const Pn=this.params.toString();if(0===Pn.length)this.urlWithParams=Pt;else{const Fn=Pt.indexOf("?");this.urlWithParams=Pt+(-1===Fn?"?":Fngn.set(Si,Gt.setHeaders[Si]),xi)),Gt.setParams&&(Hi=Object.keys(Gt.setParams).reduce((gn,Si)=>gn.set(Si,Gt.setParams[Si]),Hi)),new A(Pt,Mn,Pn,{params:Hi,headers:xi,context:Mi,reportProgress:hi,responseType:En,withCredentials:Fn,transferCache:ii})}}var X=function(vt){return vt[vt.Sent=0]="Sent",vt[vt.UploadProgress=1]="UploadProgress",vt[vt.ResponseHeader=2]="ResponseHeader",vt[vt.DownloadProgress=3]="DownloadProgress",vt[vt.Response=4]="Response",vt[vt.User=5]="User",vt}(X||{});class se{constructor(Gt,Pt=200,Mn="OK"){this.headers=Gt.headers||new N,this.status=void 0!==Gt.status?Gt.status:Pt,this.statusText=Gt.statusText||Mn,this.url=Gt.url||null,this.ok=this.status>=200&&this.status<300}}class je extends se{constructor(Gt={}){super(Gt),this.type=X.ResponseHeader}clone(Gt={}){return new je({headers:Gt.headers||this.headers,status:void 0!==Gt.status?Gt.status:this.status,statusText:Gt.statusText||this.statusText,url:Gt.url||this.url||void 0})}}class Bt extends se{constructor(Gt={}){super(Gt),this.type=X.Response,this.body=void 0!==Gt.body?Gt.body:null}clone(Gt={}){return new Bt({body:void 0!==Gt.body?Gt.body:this.body,headers:Gt.headers||this.headers,status:void 0!==Gt.status?Gt.status:this.status,statusText:Gt.statusText||this.statusText,url:Gt.url||this.url||void 0})}}class Tt extends se{constructor(Gt){super(Gt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Gt.url||"(unknown url)"}`:`Http failure response for ${Gt.url||"(unknown url)"}: ${Gt.status} ${Gt.statusText}`,this.error=Gt.error||null}}function Lt(vt,Gt){return{body:Gt,headers:vt.headers,context:vt.context,observe:vt.observe,params:vt.params,reportProgress:vt.reportProgress,responseType:vt.responseType,withCredentials:vt.withCredentials,transferCache:vt.transferCache}}let ft=(()=>{class vt{constructor(Pt){this.handler=Pt}request(Pt,Mn,En={}){let ii;if(Pt instanceof A)ii=Pt;else{let hi,xi;hi=En.headers instanceof N?En.headers:new N(En.headers),En.params&&(xi=En.params instanceof ve?En.params:new ve({fromObject:En.params})),ii=new A(Pt,Mn,void 0!==En.body?En.body:null,{headers:hi,context:En.context,params:xi,reportProgress:En.reportProgress,responseType:En.responseType||"json",withCredentials:En.withCredentials,transferCache:En.transferCache})}const Pn=(0,m.of)(ii).pipe((0,j.H)(hi=>this.handler.handle(hi)));if(Pt instanceof A||"events"===En.observe)return Pn;const Fn=Pn.pipe((0,R.p)(hi=>hi instanceof Bt));switch(En.observe||"body"){case"body":switch(ii.responseType){case"arraybuffer":return Fn.pipe((0,$.T)(hi=>{if(null!==hi.body&&!(hi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return hi.body}));case"blob":return Fn.pipe((0,$.T)(hi=>{if(null!==hi.body&&!(hi.body instanceof Blob))throw new Error("Response is not a Blob.");return hi.body}));case"text":return Fn.pipe((0,$.T)(hi=>{if(null!==hi.body&&"string"!=typeof hi.body)throw new Error("Response is not a string.");return hi.body}));default:return Fn.pipe((0,$.T)(hi=>hi.body))}case"response":return Fn;default:throw new Error(`Unreachable: unhandled observe type ${En.observe}}`)}}delete(Pt,Mn={}){return this.request("DELETE",Pt,Mn)}get(Pt,Mn={}){return this.request("GET",Pt,Mn)}head(Pt,Mn={}){return this.request("HEAD",Pt,Mn)}jsonp(Pt,Mn){return this.request("JSONP",Pt,{params:(new ve).append(Mn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Pt,Mn={}){return this.request("OPTIONS",Pt,Mn)}patch(Pt,Mn,En={}){return this.request("PATCH",Pt,Lt(En,Mn))}post(Pt,Mn,En={}){return this.request("POST",Pt,Lt(En,Mn))}put(Pt,Mn,En={}){return this.request("PUT",Pt,Lt(En,Mn))}static#e=this.\u0275fac=function(Mn){return new(Mn||vt)(r.KVO(P))};static#t=this.\u0275prov=r.jDH({token:vt,factory:vt.\u0275fac})}return vt})();const St=/^\)\]\}',?\n/;function It(vt){if(vt.url)return vt.url;const Gt="X-Request-URL".toLocaleLowerCase();return vt.headers.get(Gt)}let rn=(()=>{class vt{constructor(){this.fetchImpl=(0,r.WQX)(en,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=(0,r.WQX)(r.SKi)}handle(Pt){return new e.c(Mn=>{const En=new AbortController;return this.doRequest(Pt,En.signal,Mn).then(Xt,ii=>Mn.error(new Tt({error:ii}))),()=>En.abort()})}doRequest(Pt,Mn,En){var ii=this;return(0,t.A)(function*(){const Pn=ii.createRequestInit(Pt);let Fn;try{const Ei=ii.ngZone.runOutsideAngular(()=>ii.fetchImpl(Pt.urlWithParams,{signal:Mn,...Pn}));(function Tn(vt){vt.then(Xt,Xt)})(Ei),En.next({type:X.Sent}),Fn=yield Ei}catch(Ei){return void En.error(new Tt({error:Ei,status:Ei.status??0,statusText:Ei.statusText,url:Pt.urlWithParams,headers:Ei.headers}))}const hi=new N(Fn.headers),xi=Fn.statusText,Hi=It(Fn)??Pt.urlWithParams;let Mi=Fn.status,gn=null;if(Pt.reportProgress&&En.next(new je({headers:hi,status:Mi,statusText:xi,url:Hi})),Fn.body){const Ei=Fn.headers.get("content-length"),Ki=[],Vi=Fn.body.getReader();let Go,so,qi=0;const tr=typeof Zone<"u"&&Zone.current;yield ii.ngZone.runOutsideAngular((0,t.A)(function*(){for(;;){const{done:zo,value:Mo}=yield Vi.read();if(zo)break;if(Ki.push(Mo),qi+=Mo.length,Pt.reportProgress){so="text"===Pt.responseType?(so??"")+(Go??=new TextDecoder).decode(Mo,{stream:!0}):void 0;const br=()=>En.next({type:X.DownloadProgress,total:Ei?+Ei:void 0,loaded:qi,partialText:so});tr?tr.run(br):br()}}}));const lr=ii.concatChunks(Ki,qi);try{const zo=Fn.headers.get("Content-Type")??"";gn=ii.parseBody(Pt,lr,zo)}catch(zo){return void En.error(new Tt({error:zo,headers:new N(Fn.headers),status:Fn.status,statusText:Fn.statusText,url:It(Fn)??Pt.urlWithParams}))}}0===Mi&&(Mi=gn?200:0),Mi>=200&&Mi<300?(En.next(new Bt({body:gn,headers:hi,status:Mi,statusText:xi,url:Hi})),En.complete()):En.error(new Tt({error:gn,headers:hi,status:Mi,statusText:xi,url:Hi}))})()}parseBody(Pt,Mn,En){switch(Pt.responseType){case"json":const ii=(new TextDecoder).decode(Mn).replace(St,"");return""===ii?null:JSON.parse(ii);case"text":return(new TextDecoder).decode(Mn);case"blob":return new Blob([Mn],{type:En});case"arraybuffer":return Mn.buffer}}createRequestInit(Pt){const Mn={},En=Pt.withCredentials?"include":void 0;if(Pt.headers.forEach((ii,Pn)=>Mn[ii]=Pn.join(",")),Pt.headers.has("Accept")||(Mn.Accept="application/json, text/plain, */*"),!Pt.headers.has("Content-Type")){const ii=Pt.detectContentTypeHeader();null!==ii&&(Mn["Content-Type"]=ii)}return{body:Pt.serializeBody(),method:Pt.method,headers:Mn,credentials:En}}concatChunks(Pt,Mn){const En=new Uint8Array(Mn);let ii=0;for(const Pn of Pt)En.set(Pn,ii),ii+=Pn.length;return En}static#e=this.\u0275fac=function(Mn){return new(Mn||vt)};static#t=this.\u0275prov=r.jDH({token:vt,factory:vt.\u0275fac})}return vt})();class en{}function Xt(){}function Jn(vt,Gt){return Gt(vt)}function Dn(vt,Gt){return(Pt,Mn)=>Gt.intercept(Pt,{handle:En=>vt(En,Mn)})}const Ut=new r.nKC(""),wt=new r.nKC(""),Ft=new r.nKC(""),Qt=new r.nKC("",{providedIn:"root",factory:()=>!0});function Xe(){let vt=null;return(Gt,Pt)=>{null===vt&&(vt=((0,r.WQX)(Ut,{optional:!0})??[]).reduceRight(Dn,Jn));const Mn=(0,r.WQX)(r.TgB);if((0,r.WQX)(Qt)){const ii=Mn.add();return vt(Gt,Pt).pipe((0,k.j)(()=>Mn.remove(ii)))}return vt(Gt,Pt)}}let ze,G=(()=>{class vt extends P{constructor(Pt,Mn){super(),this.backend=Pt,this.injector=Mn,this.chain=null,this.pendingTasks=(0,r.WQX)(r.TgB),this.contributeToStability=(0,r.WQX)(Qt)}handle(Pt){if(null===this.chain){const Mn=Array.from(new Set([...this.injector.get(wt),...this.injector.get(Ft,[])]));this.chain=Mn.reduceRight((En,ii)=>function Mt(vt,Gt,Pt){return(Mn,En)=>(0,r.N4e)(Pt,()=>Gt(Mn,ii=>vt(ii,En)))}(En,ii,this.injector),Jn)}if(this.contributeToStability){const Mn=this.pendingTasks.add();return this.chain(Pt,En=>this.backend.handle(En)).pipe((0,k.j)(()=>this.pendingTasks.remove(Mn)))}return this.chain(Pt,Mn=>this.backend.handle(Mn))}static#e=this.\u0275fac=function(Mn){return new(Mn||vt)(r.KVO(Q),r.KVO(r.uvJ))};static#t=this.\u0275prov=r.jDH({token:vt,factory:vt.\u0275fac})}return vt})(),H=0;class In{}function Kn(){return"object"==typeof window?window:{}}let Gn=(()=>{class vt{constructor(Pt,Mn){this.callbackMap=Pt,this.document=Mn,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+H++}handle(Pt){if("JSONP"!==Pt.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Pt.responseType)throw new Error("JSONP requests must use Json response type.");if(Pt.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new e.c(Mn=>{const En=this.nextCallback(),ii=Pt.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${En}$1`),Pn=this.document.createElement("script");Pn.src=ii;let Fn=null,hi=!1;this.callbackMap[En]=gn=>{delete this.callbackMap[En],Fn=gn,hi=!0};const xi=()=>{Pn.parentNode&&Pn.parentNode.removeChild(Pn),delete this.callbackMap[En]};return Pn.addEventListener("load",gn=>{this.resolvedPromise.then(()=>{xi(),hi?(Mn.next(new Bt({body:Fn,status:200,statusText:"OK",url:ii})),Mn.complete()):Mn.error(new Tt({url:ii,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),Pn.addEventListener("error",gn=>{xi(),Mn.error(new Tt({error:gn,status:0,statusText:"JSONP Error",url:ii}))}),this.document.body.appendChild(Pn),Mn.next({type:X.Sent}),()=>{hi||this.removeListeners(Pn),xi()}})}removeListeners(Pt){ze??=this.document.implementation.createHTMLDocument(),ze.adoptNode(Pt)}static#e=this.\u0275fac=function(Mn){return new(Mn||vt)(r.KVO(In),r.KVO(w.qQ))};static#t=this.\u0275prov=r.jDH({token:vt,factory:vt.\u0275fac})}return vt})();function $n(vt,Gt){return"JSONP"===vt.method?(0,r.WQX)(Gn).handle(vt):Gt(vt)}const vn=/^\)\]\}',?\n/;let An=(()=>{class vt{constructor(Pt){this.xhrFactory=Pt}handle(Pt){if("JSONP"===Pt.method)throw new r.wOt(-2800,!1);const Mn=this.xhrFactory;return(Mn.\u0275loadImpl?(0,z.H)(Mn.\u0275loadImpl()):(0,m.of)(null)).pipe((0,I.n)(()=>new e.c(ii=>{const Pn=Mn.build();if(Pn.open(Pt.method,Pt.urlWithParams),Pt.withCredentials&&(Pn.withCredentials=!0),Pt.headers.forEach((Ki,Vi)=>Pn.setRequestHeader(Ki,Vi.join(","))),Pt.headers.has("Accept")||Pn.setRequestHeader("Accept","application/json, text/plain, */*"),!Pt.headers.has("Content-Type")){const Ki=Pt.detectContentTypeHeader();null!==Ki&&Pn.setRequestHeader("Content-Type",Ki)}if(Pt.responseType){const Ki=Pt.responseType.toLowerCase();Pn.responseType="json"!==Ki?Ki:"text"}const Fn=Pt.serializeBody();let hi=null;const xi=()=>{if(null!==hi)return hi;const Ki=Pn.statusText||"OK",Vi=new N(Pn.getAllResponseHeaders()),qi=function Jt(vt){return"responseURL"in vt&&vt.responseURL?vt.responseURL:/^X-Request-URL:/m.test(vt.getAllResponseHeaders())?vt.getResponseHeader("X-Request-URL"):null}(Pn)||Pt.url;return hi=new je({headers:Vi,status:Pn.status,statusText:Ki,url:qi}),hi},Hi=()=>{let{headers:Ki,status:Vi,statusText:qi,url:Go}=xi(),so=null;204!==Vi&&(so=typeof Pn.response>"u"?Pn.responseText:Pn.response),0===Vi&&(Vi=so?200:0);let tr=Vi>=200&&Vi<300;if("json"===Pt.responseType&&"string"==typeof so){const lr=so;so=so.replace(vn,"");try{so=""!==so?JSON.parse(so):null}catch(zo){so=lr,tr&&(tr=!1,so={error:zo,text:so})}}tr?(ii.next(new Bt({body:so,headers:Ki,status:Vi,statusText:qi,url:Go||void 0})),ii.complete()):ii.error(new Tt({error:so,headers:Ki,status:Vi,statusText:qi,url:Go||void 0}))},Mi=Ki=>{const{url:Vi}=xi(),qi=new Tt({error:Ki,status:Pn.status||0,statusText:Pn.statusText||"Unknown Error",url:Vi||void 0});ii.error(qi)};let gn=!1;const Si=Ki=>{gn||(ii.next(xi()),gn=!0);let Vi={type:X.DownloadProgress,loaded:Ki.loaded};Ki.lengthComputable&&(Vi.total=Ki.total),"text"===Pt.responseType&&Pn.responseText&&(Vi.partialText=Pn.responseText),ii.next(Vi)},Ei=Ki=>{let Vi={type:X.UploadProgress,loaded:Ki.loaded};Ki.lengthComputable&&(Vi.total=Ki.total),ii.next(Vi)};return Pn.addEventListener("load",Hi),Pn.addEventListener("error",Mi),Pn.addEventListener("timeout",Mi),Pn.addEventListener("abort",Mi),Pt.reportProgress&&(Pn.addEventListener("progress",Si),null!==Fn&&Pn.upload&&Pn.upload.addEventListener("progress",Ei)),Pn.send(Fn),ii.next({type:X.Sent}),()=>{Pn.removeEventListener("error",Mi),Pn.removeEventListener("abort",Mi),Pn.removeEventListener("load",Hi),Pn.removeEventListener("timeout",Mi),Pt.reportProgress&&(Pn.removeEventListener("progress",Si),null!==Fn&&Pn.upload&&Pn.upload.removeEventListener("progress",Ei)),Pn.readyState!==Pn.DONE&&Pn.abort()}})))}static#e=this.\u0275fac=function(Mn){return new(Mn||vt)(r.KVO(w.N0))};static#t=this.\u0275prov=r.jDH({token:vt,factory:vt.\u0275fac})}return vt})();const Yt=new r.nKC(""),ae=new r.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),re=new r.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class et{}let _t=(()=>{class vt{constructor(Pt,Mn,En){this.doc=Pt,this.platform=Mn,this.cookieName=En,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Pt=this.doc.cookie||"";return Pt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w._b)(Pt,this.cookieName),this.lastCookieString=Pt),this.lastToken}static#e=this.\u0275fac=function(Mn){return new(Mn||vt)(r.KVO(w.qQ),r.KVO(r.Agw),r.KVO(ae))};static#t=this.\u0275prov=r.jDH({token:vt,factory:vt.\u0275fac})}return vt})();function mt(vt,Gt){const Pt=vt.url.toLowerCase();if(!(0,r.WQX)(Yt)||"GET"===vt.method||"HEAD"===vt.method||Pt.startsWith("http://")||Pt.startsWith("https://"))return Gt(vt);const Mn=(0,r.WQX)(et).getToken(),En=(0,r.WQX)(re);return null!=Mn&&!vt.headers.has(En)&&(vt=vt.clone({headers:vt.headers.set(En,Mn)})),Gt(vt)}var ct=function(vt){return vt[vt.Interceptors=0]="Interceptors",vt[vt.LegacyInterceptors=1]="LegacyInterceptors",vt[vt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",vt[vt.NoXsrfProtection=3]="NoXsrfProtection",vt[vt.JsonpSupport=4]="JsonpSupport",vt[vt.RequestsMadeViaParent=5]="RequestsMadeViaParent",vt[vt.Fetch=6]="Fetch",vt}(ct||{});function Se(vt,Gt){return{\u0275kind:vt,\u0275providers:Gt}}function lt(...vt){const Gt=[ft,An,G,{provide:P,useExisting:G},{provide:Q,useFactory:()=>(0,r.WQX)(rn,{optional:!0})??(0,r.WQX)(An)},{provide:wt,useValue:mt,multi:!0},{provide:Yt,useValue:!0},{provide:et,useClass:_t}];for(const Pt of vt)Gt.push(...Pt.\u0275providers);return(0,r.EmA)(Gt)}const Oe=new r.nKC("");function zt(){return Se(ct.LegacyInterceptors,[{provide:Oe,useFactory:Xe},{provide:wt,useExisting:Oe,multi:!0}])}function Ze({cookieName:vt,headerName:Gt}){const Pt=[];return void 0!==vt&&Pt.push({provide:ae,useValue:vt}),void 0!==Gt&&Pt.push({provide:re,useValue:Gt}),Se(ct.CustomXsrfConfiguration,Pt)}function Le(){return Se(ct.JsonpSupport,[Gn,{provide:In,useFactory:Kn},{provide:wt,useValue:$n,multi:!0}])}},3953:($t,De,a)=>{function t(n,i){return Object.is(n,i)}a.d(De,{bc$:()=>fp,iLQ:()=>xf,sZ2:()=>yh,hnV:()=>__,Hbi:()=>CM,o8S:()=>hu,BIS:()=>K4,gRc:()=>P_,Ql9:()=>Gz,OM3:()=>a4,rjb:()=>ug,Ocv:()=>Zz,abz:()=>E,Z63:()=>dr,aKT:()=>Nt,uvJ:()=>Ls,zcH:()=>Ra,bkB:()=>zn,y_5:()=>Hr,$GK:()=>pt,nKC:()=>Ui,zZn:()=>rs,_q3:()=>Tm,MKu:()=>Em,xe9:()=>Af,Co$:()=>rv,Vns:()=>Nh,SKi:()=>qr,Xx1:()=>zr,Agw:()=>n2,PLl:()=>pp,rOR:()=>vi,sFG:()=>nC,_9s:()=>Y3,czy:()=>Up,WPN:()=>Yd,FRM:()=>jl,kdw:()=>ts,C4Q:()=>qp,NYb:()=>Lz,giA:()=>g_,ZUJ:()=>Du,RxE:()=>c_,c1b:()=>rf,gXe:()=>Ks,mal:()=>Tg,Tzd:()=>bg,Af3:()=>$c,tdH:()=>rC,L39:()=>tD,EWP:()=>oD,a0P:()=>uD,Ol2:()=>h6,w6W:()=>ib,oH4:()=>O_,QZP:()=>f9,SmG:()=>rM,Rfq:()=>ei,WQX:()=>Qn,hFB:()=>Re,naY:()=>oM,Hps:()=>a6,QuC:()=>Ta,EmA:()=>Pl,Udg:()=>nD,fpN:()=>yM,HJs:()=>dD,N4e:()=>Eu,vPA:()=>$g,O8t:()=>rD,H3F:()=>l_,zAP:()=>o9,H8p:()=>Al,KH2:()=>J2,YHP:()=>Ca,FOc:()=>Z0,TgB:()=>qt,wOt:()=>Yn,WHO:()=>f_,e01:()=>m_,lNU:()=>yo,h9k:()=>n3,$MX:()=>wh,ZF7:()=>H1,Kcf:()=>h0,e5t:()=>g0,UyX:()=>f0,cWb:()=>p0,osQ:()=>m0,H5H:()=>$6,Zy3:()=>wo,xtB:()=>zi,mq5:()=>f5,JZv:()=>Ro,LfX:()=>Ba,plB:()=>Qd,jNT:()=>dm,zjR:()=>v_,XSP:()=>xT,TL$:()=>G4,Tbb:()=>me,rcV:()=>zl,Vt3:()=>l6,GFd:()=>ov,OA$:()=>Ul,Jv_:()=>z7,aNF:()=>M7,R7$:()=>_8,BMQ:()=>M6,HbH:()=>Yv,ZvI:()=>Zv,STu:()=>e5,ee0:()=>t5,AVh:()=>P6,BUC:()=>n5,vxM:()=>s5,wni:()=>X5,SS7:()=>em,VBU:()=>yn,FsC:()=>Os,jDH:()=>Io,G2t:()=>ls,$C:()=>Ji,EJ8:()=>Ur,rXU:()=>S2,nrm:()=>k6,eu8:()=>V6,bVm:()=>bf,qex:()=>Cf,k0s:()=>yf,j41:()=>_f,RV6:()=>p5,xGo:()=>dh,Mr5:()=>L6,KVO:()=>Yi,kS0:()=>Wu,QTQ:()=>C8,bIt:()=>U6,lsd:()=>q5,qSk:()=>w1,XpG:()=>L5,nI1:()=>$7,bMT:()=>H7,i5U:()=>j7,brH:()=>U7,ii3:()=>G7,SdG:()=>$5,NAR:()=>B5,Y8G:()=>w6,FS9:()=>W6,Mz_:()=>Mf,FCK:()=>K6,lJ4:()=>w7,eq3:()=>I7,l_i:()=>x7,sMw:()=>P7,ziG:()=>F7,s1E:()=>A7,l4e:()=>R7,mGM:()=>J5,r8f:()=>T7,sdS:()=>Z5,Dyx:()=>u5,Z7z:()=>l5,fX1:()=>c5,Vm6:()=>a5,Njj:()=>E1,tSv:()=>F0,eBV:()=>T1,npT:()=>o3,$dS:()=>D0,B4B:()=>Bp,n$t:()=>O0,wjB:()=>D7,bH3:()=>b7,Aen:()=>lu,muq:()=>e7,xc7:()=>x6,Kam:()=>G6,zvX:()=>B6,DNE:()=>f6,C5r:()=>Y7,EFF:()=>u7,JRh:()=>Q6,SpI:()=>Df,Lme:()=>J6,DH7:()=>y7,mxI:()=>Z6,R50:()=>q6,GBs:()=>Q5});let r=null,m=!1,e=1;const z=Symbol("SIGNAL");function j(n){const i=r;return r=n,i}function R(){return r}const I={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function w(n){if(m)throw new Error("");if(null===r)return;r.consumerOnSignalRead(n);const i=r.nextProducerIndex++;U(r),in.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function Ie(n){U(n);for(let i=0;i0}function U(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}function M(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}function te(n){return void 0!==n.producerNode}const T=Symbol("UNSET"),D=Symbol("COMPUTING"),A=Symbol("ERRORED"),X={...I,value:T,dirty:!0,error:null,equal:t,producerMustRecompute:n=>n.value===T||n.value===D,producerRecomputeValue(n){if(n.value===D)throw new Error("Detected cycle in computations.");const i=n.value;n.value=D;const o=ee(n);let s;try{s=n.computation()}catch(l){s=A,n.error=l}finally{Ee(n,o)}i!==T&&i!==A&&s!==A&&n.equal(i,s)?n.value=i:(n.value=s,n.version++)}};let je=function se(){throw new Error};function Bt(){je()}let Vt=null;function ft(n,i){x()||Bt(),n.equal(n.value,i)||(n.value=i,function rn(n){n.version++,function P(){e++}(),N(n),Vt?.()}(n))}const It={...I,equal:t,value:void 0};const Xt=()=>{},Tn={...I,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:n=>{null!==n.schedule&&n.schedule(n.ref)},hasRun:!1,cleanupFn:Xt};var Dn=a(4412),Mt=a(1413),Ut=a(8359),wt=a(6354);typeof navigator<"u"&&navigator,typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&navigator;const yo="https://g.co/ng/security#xss";class Yn extends Error{constructor(i,o){super(wo(i,o)),this.code=i}}function wo(n,i){return`NG0${Math.abs(n)}${i?": "+i:""}`}const Xo=Symbol("InputSignalNode#UNSET"),es={...It,transformFn:void 0,applyValueToInputSignal(n,i){ft(n,i)}};function wr(n,i){const o=Object.create(es);function s(){if(w(o),o.value===Xo)throw new Yn(-950,!1);return o.value}return o.value=n,o.transformFn=i?.transform,s[z]=o,s}function gr(n){return{toString:n}.toString()}const vr="__parameters__";function $o(n,i,o){return gr(()=>{const s=function kr(n){return function(...o){if(n){const s=n(...o);for(const l in s)this[l]=s[l]}}}(i);function l(...f){if(this instanceof l)return s.apply(this,f),this;const y=new l(...f);return O.annotation=y,O;function O(K,xe,We){const Ot=K.hasOwnProperty(vr)?K[vr]:Object.defineProperty(K,vr,{value:[]})[vr];for(;Ot.length<=We;)Ot.push(null);return(Ot[We]=Ot[We]||[]).push(y),K}}return o&&(l.prototype=Object.create(o.prototype)),l.prototype.ngMetadataName=n,l.annotationCls=l,l})}const Ro=globalThis;function nt(n){for(let i in n)if(n[i]===nt)return i;throw Error("Could not find renamed property on target object.")}function Un(n,i){for(const o in i)i.hasOwnProperty(o)&&!n.hasOwnProperty(o)&&(n[o]=i[o])}function me(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(me).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const i=n.toString();if(null==i)return""+i;const o=i.indexOf("\n");return-1===o?i:i.substring(0,o)}function qe(n,i){return null==n||""===n?null===i?"":i:null==i||""===i?n:n+" "+i}const pn=nt({__forward_ref__:nt});function ei(n){return n.__forward_ref__=ei,n.toString=function(){return me(this())},n}function ti(n){return wi(n)?n():n}function wi(n){return"function"==typeof n&&n.hasOwnProperty(pn)&&n.__forward_ref__===ei}function Io(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ls(n){return{providers:n.providers||[],imports:n.imports||[]}}function aa(n){return Ir(n,Es)||Ir(n,ya)}function Ba(n){return null!==aa(n)}function Ir(n,i){return n.hasOwnProperty(i)?n[i]:null}function Us(n){return n&&(n.hasOwnProperty(cc)||n.hasOwnProperty(us))?n[cc]:null}const Es=nt({\u0275prov:nt}),cc=nt({\u0275inj:nt}),ya=nt({ngInjectableDef:nt}),us=nt({ngInjectorDef:nt});class Ui{constructor(i,o){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof o?this.__NG_ELEMENT_ID__=o:void 0!==o&&(this.\u0275prov=Io({token:this,providedIn:o.providedIn||"root",factory:o.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Lr(n){return n&&!!n.\u0275providers}const Rs=nt({\u0275cmp:nt}),ja=nt({\u0275dir:nt}),Ca=nt({\u0275pipe:nt}),kc=nt({\u0275mod:nt}),Ns=nt({\u0275fac:nt}),Ua=nt({__NG_ELEMENT_ID__:nt}),lc=nt({__NG_ENV_ID__:nt});function eo(n){return"string"==typeof n?n:null==n?"":String(n)}function Ys(n,i){throw new Yn(-201,!1)}var pt=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(pt||{});let ot;function we(){return ot}function Fe(n){const i=ot;return ot=n,i}function fe(n,i,o){const s=aa(n);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:o&pt.Optional?null:void 0!==i?i:void Ys()}const Xn={},Di="__NG_DI_FLAG__",L="ngTempTokenPath",ye=/\n/gm,jt="__source";let _n;function pi(n){const i=_n;return _n=n,i}function po(n,i=pt.Default){if(void 0===_n)throw new Yn(-203,!1);return null===_n?fe(n,void 0,i):_n.get(n,i&pt.Optional?null:void 0,i)}function Yi(n,i=pt.Default){return(we()||po)(ti(n),i)}function Qn(n,i=pt.Default){return Yi(n,xo(i))}function xo(n){return typeof n>"u"||"number"==typeof n?n:(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Li(n){const i=[];for(let o=0;o({token:n})),-1),zr=To($o("Optional"),8),ts=To($o("SkipSelf"),4);function or(n,i){return n.hasOwnProperty(Ns)?n[Ns]:null}function ns(n,i){n.forEach(o=>Array.isArray(o)?ns(o,i):i(o))}function fo(n,i,o){i>=n.length?n.push(o):n.splice(i,0,o)}function Ws(n,i){return i>=n.length-1?n.pop():n.splice(i,1)[0]}function Mr(n,i,o){let s=Po(n,i);return s>=0?n[1|s]=o:(s=~s,function Ga(n,i,o,s){let l=n.length;if(l==i)n.push(o,s);else if(1===l)n.push(s,n[0]),n[0]=o;else{for(l--,n.push(n[l-1],n[l]);l>i;)n[l]=n[l-2],l--;n[i]=o,n[i+1]=s}}(n,s,i,o)),s}function _r(n,i){const o=Po(n,i);if(o>=0)return n[1|o]}function Po(n,i){return function ca(n,i,o){let s=0,l=n.length>>o;for(;l!==s;){const f=s+(l-s>>1),y=n[f<i?l=f:s=f+1}return~(l<i){y=f-1;break}}}for(;f-1){let f;for(;++lf?"":l[We+1].toLowerCase(),2&s&&xe!==Ot){if(Vs(s))return!1;y=!0}}}}else{if(!y&&!Vs(s)&&!Vs(K))return!1;if(y&&Vs(K))continue;y=!1,s=K|1&s}}return Vs(s)||y}function Vs(n){return!(1&n)}function vu(n,i,o,s){if(null===i)return-1;let l=0;if(s||!o){let f=!1;for(;l-1)for(o++;o0?'="'+O+'"':"")+"]"}else 8&s?l+="."+y:4&s&&(l+=" "+y);else""!==l&&!Vs(y)&&(i+=Ye(f,l),l=""),s=y,f=f||!Vs(s);o++}return""!==l&&(i+=Ye(f,l)),i}function yn(n){return gr(()=>{const i=wl(n),o={...i,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===tl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Ks.Emulated,styles:n.styles||Oo,_:null,schemas:n.schemas||null,tView:null,id:""};Il(o);const s=n.dependencies;return o.directiveDefs=xl(s,!1),o.pipeDefs=xl(s,!0),o.id=function nh(n){let i=0;const o=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const l of o)i=Math.imul(31,i)+l.charCodeAt(0)|0;return i+=2147483648,"c"+i}(o),o})}function gi(n){return oo(n)||Lo(n)}function Qi(n){return null!==n}function Ji(n){return gr(()=>({type:n.type,bootstrap:n.bootstrap||Oo,declarations:n.declarations||Oo,imports:n.imports||Oo,exports:n.exports||Oo,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Yo(n,i){if(null==n)return Wr;const o={};for(const s in n)if(n.hasOwnProperty(s)){const l=n[s];let f,y,O=Xs.None;Array.isArray(l)?(O=l[0],f=l[1],y=l[2]??f):(f=l,y=l),i?(o[f]=O!==Xs.None?[s,O]:s,i[f]=y):o[f]=s}return o}function Os(n){return gr(()=>{const i=wl(n);return Il(i),i})}function Ur(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function oo(n){return n[Rs]||null}function Lo(n){return n[ja]||null}function yr(n){return n[Ca]||null}function Ta(n){const i=oo(n)||Lo(n)||yr(n);return null!==i&&i.standalone}function Cr(n,i){const o=n[kc]||null;if(!o&&!0===i)throw new Error(`Type ${me(n)} does not have '\u0275mod' property.`);return o}function wl(n){const i={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:n.inputs||Wr,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||Oo,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Yo(n.inputs,i),outputs:Yo(n.outputs),debugInfo:null}}function Il(n){n.features?.forEach(i=>i(n))}function xl(n,i){if(!n)return null;const o=i?yr:gi;return()=>("function"==typeof n?n():n).map(s=>o(s)).filter(Qi)}function Pl(n){return{\u0275providers:n}}function U1(...n){return{\u0275providers:rl(0,n),\u0275fromNgModule:!0}}function rl(n,...i){const o=[],s=new Set;let l;const f=y=>{o.push(y)};return ns(i,y=>{const O=y;Fl(O,f,[],s)&&(l||=[],l.push(O))}),void 0!==l&&Zu(l,f),o}function Zu(n,i){for(let o=0;o{i(f,s)})}}function Fl(n,i,o,s){if(!(n=ti(n)))return!1;let l=null,f=Us(n);const y=!f&&oo(n);if(f||y){if(y&&!y.standalone)return!1;l=n}else{const K=n.ngModule;if(f=Us(K),!f)return!1;l=K}const O=s.has(l);if(y){if(O)return!1;if(s.add(l),y.dependencies){const K="function"==typeof y.dependencies?y.dependencies():y.dependencies;for(const xe of K)Fl(xe,i,o,s)}}else{if(!f)return!1;{if(null!=f.imports&&!O){let xe;s.add(l);try{ns(f.imports,We=>{Fl(We,i,o,s)&&(xe||=[],xe.push(We))})}finally{}void 0!==xe&&Zu(xe,i)}if(!O){const xe=or(l)||(()=>new l);i({provide:l,useFactory:xe,deps:Oo},l),i({provide:Oa,useValue:l,multi:!0},l),i({provide:dr,useValue:()=>Yi(l),multi:!0},l)}const K=f.providers;if(null!=K&&!O){const xe=n;_u(K,We=>{i(We,xe)})}}}return l!==n&&void 0!==n.providers}function _u(n,i){for(let o of n)Lr(o)&&(o=o.\u0275providers),Array.isArray(o)?_u(o,i):i(o)}const G1=nt({provide:String,useValue:nt});function yu(n){return null!==n&&"object"==typeof n&&G1 in n}function Ka(n){return"function"==typeof n}const Al=new Ui(""),sl={},n1={};let Rl;function al(){return void 0===Rl&&(Rl=new wa),Rl}class Ls{}class hc extends Ls{get destroyed(){return this._destroyed}constructor(i,o,s,l){super(),this.parent=o,this.source=s,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Nl(i,y=>this.processProvider(y)),this.records.set(Ya,pc(void 0,this)),l.has("environment")&&this.records.set(Ls,pc(void 0,this));const f=this.records.get(Al);null!=f&&"string"==typeof f.value&&this.scopes.add(f.value),this.injectorDefTypes=new Set(this.get(Oa,Oo,pt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const i=j(null);try{for(const s of this._ngOnDestroyHooks)s.ngOnDestroy();const o=this._onDestroyHooks;this._onDestroyHooks=[];for(const s of o)s()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(i)}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const o=pi(this),s=Fe(void 0);try{return i()}finally{pi(o),Fe(s)}}get(i,o=Xn,s=pt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(lc))return i[lc](this);s=xo(s);const f=pi(this),y=Fe(void 0);try{if(!(s&pt.SkipSelf)){let K=this.records.get(i);if(void 0===K){const xe=function c1(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ui}(i)&&aa(i);K=xe&&this.injectableDefInScope(xe)?pc(bu(i),sl):null,this.records.set(i,K)}if(null!=K)return this.hydrate(i,K)}return(s&pt.Self?al():this.parent).get(i,o=s&pt.Optional&&o===Xn?null:o)}catch(O){if("NullInjectorError"===O.name){if((O[L]=O[L]||[]).unshift(me(i)),f)throw O;return function ir(n,i,o,s){const l=n[L];throw i[jt]&&l.unshift(i[jt]),n.message=function xr(n,i,o,s=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let l=me(i);if(Array.isArray(i))l=i.map(me).join(" -> ");else if("object"==typeof i){let f=[];for(let y in i)if(i.hasOwnProperty(y)){let O=i[y];f.push(y+":"+("string"==typeof O?JSON.stringify(O):me(O)))}l=`{${f.join(", ")}}`}return`${o}${s?"("+s+")":""}[${l}]: ${n.replace(ye,"\n ")}`}("\n"+n.message,l,o,s),n.ngTokenPath=l,n[L]=null,n}(O,i,"R3InjectorError",this.source)}throw O}finally{Fe(y),pi(f)}}resolveInjectorInitializers(){const i=j(null),o=pi(this),s=Fe(void 0);try{const f=this.get(dr,Oo,pt.Self);for(const y of f)y()}finally{pi(o),Fe(s),j(i)}}toString(){const i=[],o=this.records;for(const s of o.keys())i.push(me(s));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Yn(205,!1)}processProvider(i){let o=Ka(i=ti(i))?i:ti(i&&i.provide);const s=function r1(n){return yu(n)?pc(void 0,n.useValue):pc(Tu(n),sl)}(i);if(!Ka(i)&&!0===i.multi){let l=this.records.get(o);l||(l=pc(void 0,sl,!0),l.factory=()=>Li(l.multi),this.records.set(o,l)),o=i,l.multi.push(i)}this.records.set(o,s)}hydrate(i,o){const s=j(null);try{return o.value===sl&&(o.value=n1,o.value=o.factory()),"object"==typeof o.value&&o.value&&function a1(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(o.value)&&this._ngOnDestroyHooks.add(o.value),o.value}finally{j(s)}}injectableDefInScope(i){if(!i.providedIn)return!1;const o=ti(i.providedIn);return"string"==typeof o?"any"===o||this.scopes.has(o):this.injectorDefTypes.has(o)}removeOnDestroy(i){const o=this._onDestroyHooks.indexOf(i);-1!==o&&this._onDestroyHooks.splice(o,1)}}function bu(n){const i=aa(n),o=null!==i?i.factory:or(n);if(null!==o)return o;if(n instanceof Ui)throw new Yn(204,!1);if(n instanceof Function)return function o1(n){if(n.length>0)throw new Yn(204,!1);const o=function Da(n){return n&&(n[Es]||n[ya])||null}(n);return null!==o?()=>o.factory(n):()=>new n}(n);throw new Yn(204,!1)}function Tu(n,i,o){let s;if(Ka(n)){const l=ti(n);return or(l)||bu(l)}if(yu(n))s=()=>ti(n.useValue);else if(function Cu(n){return!(!n||!n.useFactory)}(n))s=()=>n.useFactory(...Li(n.deps||[]));else if(function e1(n){return!(!n||!n.useExisting)}(n))s=()=>Yi(ti(n.useExisting));else{const l=ti(n&&(n.useClass||n.provide));if(!function s1(n){return!!n.deps}(n))return or(l)||bu(l);s=()=>new l(...Li(n.deps))}return s}function pc(n,i,o=!1){return{factory:n,value:i,multi:o?[]:void 0}}function Nl(n,i){for(const o of n)Array.isArray(o)?Nl(o,i):o&&Lr(o)?Nl(o.\u0275providers,i):i(o)}function Eu(n,i){n instanceof hc&&n.assertNotDestroyed();const s=pi(n),l=Fe(void 0);try{return i()}finally{pi(s),Fe(l)}}function zu(){return void 0!==we()||null!=function Vn(){return _n}()}function $c(n){if(!zu())throw new Yn(-203,!1)}const Du=Function;const Jo=0,di=1,Wi=2,Pr=3,Qs=4,Kr=5,ps=6,mc=7,qo=8,Fr=9,Js=10,to=11,Xa=12,Vl=13,gc=14,hr=15,ua=16,vc=17,da=18,_c=19,Su=20,qs=21,ll=22,Bs=23,Bi=25,Ll=1,ha=7,yc=9,Dr=10;var dl=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}(dl||{});function Gr(n){return Array.isArray(n)&&"object"==typeof n[Ll]}function os(n){return Array.isArray(n)&&!0===n[Ll]}function Bl(n){return!!(4&n.flags)}function Qa(n){return n.componentOffset>-1}function hl(n){return!(1&~n.flags)}function Cs(n){return!!n.template}function Uc(n){return!!(512&n[Wi])}class jl{constructor(i,o,s){this.previousValue=i,this.currentValue=o,this.firstChange=s}isFirstChange(){return this.firstChange}}function Iu(n,i,o,s){null!==i?i.applyValueToInputSignal(i,s):n[o]=s}function Ul(){return Gl}function Gl(n){return n.type.prototype.ngOnChanges&&(n.setInput=m1),f1}function f1(){const n=Wl(this),i=n?.current;if(i){const o=n.previous;if(o===Wr)n.previous=i;else for(let s in i)o[s]=i[s];n.current=null,this.ngOnChanges(i)}}function m1(n,i,o,s,l){const f=this.declaredInputs[s],y=Wl(n)||function xu(n,i){return n[Yl]=i}(n,{previous:Wr,current:null}),O=y.current||(y.current={}),K=y.previous,xe=K[f];O[f]=new jl(xe&&xe.currentValue,o,K===Wr),Iu(n,i,l,o)}Ul.ngInherit=!0;const Yl="__ngSimpleChanges__";function Wl(n){return n[Yl]||null}const Zs=function(n,i,o){},Kl="svg";function Fo(n){for(;Array.isArray(n);)n=n[Jo];return n}function Cc(n,i){return Fo(i[n])}function ms(n,i){return Fo(i[n.index])}function Ql(n,i){return n.data[i]}function Yc(n,i){return n[i]}function $s(n,i){const o=i[n];return Gr(o)?o:o[Jo]}function Pu(n){return!(128&~n[Wi])}function ea(n,i){return null==i?null:n[i]}function v1(n){n[vc]=0}function Jl(n){1024&n[Wi]||(n[Wi]|=1024,Pu(n)&&ql(n))}function ta(n){return!!(9216&n[Wi]||n[Bs]?.dirty)}function bc(n){n[Js].changeDetectionScheduler?.notify(7),64&n[Wi]&&(n[Wi]|=1024),ta(n)&&ql(n)}function ql(n){n[Js].changeDetectionScheduler?.notify(0);let i=pa(n);for(;null!==i&&!(8192&i[Wi])&&(i[Wi]|=8192,Pu(i));)i=pa(i)}function Zl(n,i){if(!(256&~n[Wi]))throw new Yn(911,!1);null===n[qs]&&(n[qs]=[]),n[qs].push(i)}function pa(n){const i=n[Pr];return os(i)?i[Pr]:i}const ro={lFrame:vl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let y1=!1;function b1(){return ro.bindingsEnabled}function Tc(){return null!==ro.skipHydrationRootTNode}function kn(){return ro.lFrame.lView}function Co(){return ro.lFrame.tView}function T1(n){return ro.lFrame.contextLView=n,n[qo]}function E1(n){return ro.lFrame.contextLView=null,n}function Uo(){let n=Ec();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ec(){return ro.lFrame.currentTNode}function rr(n,i){const o=ro.lFrame;o.currentTNode=n,o.isParent=i}function zc(){return ro.lFrame.isParent}function Wc(){ro.lFrame.isParent=!1}function fl(){return ro.lFrame.contextLView}function z1(){return y1}function Ru(n){y1=n}function bs(){const n=ro.lFrame;let i=n.bindingRootIndex;return-1===i&&(i=n.bindingRootIndex=n.tView.bindingStartIndex),i}function za(){return ro.lFrame.bindingIndex}function fa(){return ro.lFrame.bindingIndex++}function ma(n){const i=ro.lFrame,o=i.bindingIndex;return i.bindingIndex=i.bindingIndex+n,o}function no(n,i){const o=ro.lFrame;o.bindingIndex=o.bindingRootIndex=n,Mc(i)}function Mc(n){ro.lFrame.currentDirectiveIndex=n}function nu(n){const i=ro.lFrame.currentDirectiveIndex;return-1===i?null:n[i]}function Ja(){return ro.lFrame.currentQueryIndex}function Kc(n){ro.lFrame.currentQueryIndex=n}function ws(n){const i=n[di];return 2===i.type?i.declTNode:1===i.type?n[Kr]:null}function S1(n,i,o){if(o&pt.SkipSelf){let l=i,f=n;for(;!(l=l.parent,null!==l||o&pt.Host||(l=ws(f),null===l||(f=f[gc],10&l.type))););if(null===l)return!1;i=l,n=f}const s=ro.lFrame=iu();return s.currentTNode=i,s.lView=n,!0}function ku(n){const i=iu(),o=n[di];ro.lFrame=i,i.currentTNode=o.firstChild,i.lView=n,i.tView=o,i.contextLView=n,i.bindingIndex=o.bindingStartIndex,i.inI18n=!1}function iu(){const n=ro.lFrame,i=null===n?null:n.child;return null===i?vl(n):i}function vl(n){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=i),i}function mr(){const n=ro.lFrame;return ro.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Ar=mr;function Dc(){const n=mr();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Xr(){return ro.lFrame.selectedIndex}function Sc(n){ro.lFrame.selectedIndex=n}function Zo(){const n=ro.lFrame;return Ql(n.tView,n.selectedIndex)}function w1(){ro.lFrame.currentNamespace=Kl}let x1=!0;function Xc(){return x1}function Hs(n){x1=n}function _l(n,i){for(let o=i.directiveStart,s=i.directiveEnd;o=s)break}else i[K]<0&&(n[vc]+=65536),(O>14>16&&(3&n[Wi])===i&&(n[Wi]+=16384,Pa(O,f)):Pa(O,f)}const Qc=-1;class Fa{constructor(i,o,s){this.factory=i,this.resolving=!1,this.canSeeViewProviders=o,this.injectImpl=s}}const Hu={};class na{constructor(i,o){this.injector=i,this.parentInjector=o}get(i,o,s){s=xo(s);const l=this.injector.get(i,Hu,s);return l!==Hu||o===Hu?l:this.parentInjector.get(i,o,s)}}function wc(n){return n!==Qc}function Za(n){return 32767&n}function ec(n,i){let o=function P1(n){return n>>16}(n),s=i;for(;o>0;)s=s[gc],o--;return s}let ga=!0;function Ae(n){const i=ga;return ga=n,i}const Dd=255,F1=5;let ch=0;const Aa={};function ju(n,i){const o=wd(n,i);if(-1!==o)return o;const s=i[di];s.firstCreatePass&&(n.injectorIndex=i.length,Od(s.data,n),Od(i,null),Od(s.blueprint,null));const l=ou(n,i),f=n.injectorIndex;if(wc(l)){const y=Za(l),O=ec(l,i),K=O[di].data;for(let xe=0;xe<8;xe++)i[f+xe]=O[y+xe]|K[y+xe]}return i[f+8]=l,f}function Od(n,i){n.push(0,0,0,0,0,0,0,0,i)}function wd(n,i){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===i[n.injectorIndex+8]?-1:n.injectorIndex}function ou(n,i){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let o=0,s=null,l=i;for(;null!==l;){if(s=su(l),null===s)return Qc;if(o++,l=l[gc],-1!==s.injectorIndex)return s.injectorIndex|o<<16}return Qc}function A1(n,i,o){!function Sd(n,i,o){let s;"string"==typeof o?s=o.charCodeAt(0)||0:o.hasOwnProperty(Ua)&&(s=o[Ua]),null==s&&(s=o[Ua]=ch++);const l=s&Dd;i.data[n+(l>>F1)]|=1<=0?i&Dd:jh:i}(o);if("function"==typeof f){if(!S1(i,n,s))return s&pt.Host?lh(l,0,s):xd(i,o,s,l);try{let y;if(y=f(s),null!=y||s&pt.Optional)return y;Ys()}finally{Ar()}}else if("number"==typeof f){let y=null,O=wd(n,i),K=Qc,xe=s&pt.Host?i[hr][Kr]:null;for((-1===O||s&pt.SkipSelf)&&(K=-1===O?ou(n,i):i[O+8],K!==Qc&&uh(s,!1)?(y=i[di],O=Za(K),i=ec(K,i)):O=-1);-1!==O;){const We=i[di];if(Ad(f,O,We.data)){const Ot=R1(O,i,o,y,s,xe);if(Ot!==Aa)return Ot}K=i[O+8],K!==Qc&&uh(s,i[di].data[O+8]===xe)&&Ad(f,O,i)?(y=We,O=Za(K),i=ec(K,i)):O=-1}}return l}function R1(n,i,o,s,l,f){const y=i[di],O=y.data[n+8],We=Gu(O,y,o,null==s?Qa(O)&&ga:s!=y&&!!(3&O.type),l&pt.Host&&f===O);return null!==We?Ic(i,y,We,O):Aa}function Gu(n,i,o,s,l){const f=n.providerIndexes,y=i.data,O=1048575&f,K=n.directiveStart,We=f>>20,tn=l?O+We:n.directiveEnd;for(let on=s?O:O+We;on=K&&bn.type===o)return on}if(l){const on=y[K];if(on&&Cs(on)&&on.type===o)return K}return null}function Ic(n,i,o,s){let l=n[o];const f=i.data;if(function Ed(n){return n instanceof Fa}(l)){const y=l;y.resolving&&function Vc(n,i){throw i&&i.join(" > "),new Yn(-200,n)}(function vo(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():eo(n)}(f[o]));const O=Ae(y.canSeeViewProviders);y.resolving=!0;const xe=y.injectImpl?Fe(y.injectImpl):null;S1(n,s,pt.Default);try{l=n[o]=y.factory(void 0,f,n,s),i.firstCreatePass&&o>=s.directiveStart&&function Lu(n,i,o){const{ngOnChanges:s,ngOnInit:l,ngDoCheck:f}=i.type.prototype;if(s){const y=Gl(i);(o.preOrderHooks??=[]).push(n,y),(o.preOrderCheckHooks??=[]).push(n,y)}l&&(o.preOrderHooks??=[]).push(0-n,l),f&&((o.preOrderHooks??=[]).push(n,f),(o.preOrderCheckHooks??=[]).push(n,f))}(o,f[o],i)}finally{null!==xe&&Fe(xe),Ae(O),y.resolving=!1,Ar()}}return l}function Ad(n,i,o){return!!(o[i+(n>>F1)]&1<{const i=n.prototype.constructor,o=i[Ns]||Yu(i),s=Object.prototype;let l=Object.getPrototypeOf(n.prototype).constructor;for(;l&&l!==s;){const f=l[Ns]||Yu(l);if(f&&f!==o)return f;l=Object.getPrototypeOf(l)}return f=>new f})}function Yu(n){return wi(n)?()=>{const i=Yu(ti(n));return i&&i()}:or(n)}function su(n){const i=n[di],o=i.type;return 2===o?i.declTNode:1===o?n[Kr]:null}function Wu(n){return function Id(n,i){if("class"===i)return n.classes;if("style"===i)return n.styles;const o=n.attrs;if(o){const s=o.length;let l=0;for(;lYi(Ya)});static#i=this.__NG_ELEMENT_ID__=-1}new Ui("").__NG_ELEMENT_ID__=n=>{const i=Uo();if(null===i)throw new Yn(204,!1);if(2&i.type)return i.value;if(n&pt.Optional)return null;throw new Yn(204,!1)};function kd(n){return n.ngOriginalError}class Ra{constructor(){this._console=console}handleError(i){const o=this._findOriginalError(i);this._console.error("ERROR",i),o&&this._console.error("ORIGINAL ERROR",o)}_findOriginalError(i){let o=i&&kd(i);for(;o&&kd(o);)o=kd(o);return o||null}}const au=new Ui("",{providedIn:"root",factory:()=>Qn(Ra).handleError.bind(void 0)});let E=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=p;static#t=this.__NG_ENV_ID__=o=>o}return n})();class d extends E{constructor(i){super(),this._lView=i}onDestroy(i){return Zl(this._lView,i),()=>function Fu(n,i){if(null===n[qs])return;const o=n[qs].indexOf(i);-1!==o&&n[qs].splice(o,1)}(this._lView,i)}}function p(){return new d(kn())}function Z(n,i){return wr(n,i)}const Re=(Z.required=function Me(n){return wr(Xo,n)},Z);function ut(){return Dt(Uo(),kn())}function Dt(n,i){return new Nt(ms(n,i))}let Nt=(()=>{class n{constructor(o){this.nativeElement=o}static#e=this.__NG_ELEMENT_ID__=ut}return n})();function Zt(n){return n instanceof Nt?n.nativeElement:n}let qt=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Dn.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275prov=Io({token:n,providedIn:"root",factory:()=>new n})}return n})();const zn=class an extends Mt.B{constructor(i=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=i,zu()&&(this.destroyRef=Qn(E,{optional:!0})??void 0,this.pendingTasks=Qn(qt,{optional:!0})??void 0)}emit(i){const o=j(null);try{super.next(i)}finally{j(o)}}subscribe(i,o,s){let l=i,f=o||(()=>null),y=s;if(i&&"object"==typeof i){const K=i;l=K.next?.bind(K),f=K.error?.bind(K),y=K.complete?.bind(K)}this.__isAsync&&(f=this.wrapInTimeout(f),l&&(l=this.wrapInTimeout(l)),y&&(y=this.wrapInTimeout(y)));const O=super.subscribe({next:l,error:f,complete:y});return i instanceof Ut.yU&&i.add(O),O}wrapInTimeout(i){return o=>{const s=this.pendingTasks?.add();setTimeout(()=>{i(o),void 0!==s&&this.pendingTasks?.remove(s)})}}};function Bn(){return this._results[Symbol.iterator]()}class vi{static#e=Symbol.iterator;get changes(){return this._changes??=new zn}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const o=vi.prototype;o[Symbol.iterator]||(o[Symbol.iterator]=Bn)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,o){return this._results.reduce(i,o)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,o){this.dirty=!1;const s=function Qo(n){return n.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function Ms(n,i,o){if(n.length!==i.length)return!1;for(let s=0;s=0){const O=Fo(f[y]),K=Xi(f,y,O);ar(O,K),i=K;break}}}}return i||null}function Xi(n,i,o){return new _h(n[_c],i,o)}const Ao="__ngContext__";function ar(n,i){Gr(i)?(n[Ao]=i[_c],function ss(n){Sr.set(n[_c],n)}(i)):n[Ao]=i}function js(n){const i=n[Ao];return"number"==typeof i?Na(i):i||null}function Vd(n){return n&&n.constructor&&n.constructor.\u0275cmp}function gs(n,i){const o=n[di];for(let s=Bi;sY4}),Y4="ng",pp=new Ui(""),n2=new Ui("",{providedIn:"platform",factory:()=>"unknown"}),fp=new Ui(""),K4=new Ui("",{providedIn:"root",factory:()=>cu().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let gp=()=>null;function u2(n,i,o=!1){return gp(n,i,o)}const zp=new Ui("",{providedIn:"root",factory:()=>!1});let Sh,Oh;function $1(n){return function m2(){if(void 0===Sh&&(Sh=null,Ro.trustedTypes))try{Sh=Ro.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Sh}()?.createHTML(n)||n}function g2(){if(void 0===Oh&&(Oh=null,Ro.trustedTypes))try{Oh=Ro.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Oh}function Op(n){return g2()?.createHTML(n)||n}function Ip(n){return g2()?.createScriptURL(n)||n}class El{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${yo})`}}class c0 extends El{getTypeName(){return"HTML"}}class l0 extends El{getTypeName(){return"Style"}}class xp extends El{getTypeName(){return"Script"}}class v2 extends El{getTypeName(){return"URL"}}class u0 extends El{getTypeName(){return"ResourceURL"}}function zl(n){return n instanceof El?n.changingThisBreaksApplicationSecurity:n}function H1(n,i){const o=function d0(n){return n instanceof El&&n.getTypeName()||null}(n);if(null!=o&&o!==i){if("ResourceURL"===o&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${o} (see ${yo})`)}return o===i}function h0(n){return new c0(n)}function p0(n){return new l0(n)}function f0(n){return new xp(n)}function m0(n){return new v2(n)}function g0(n){return new u0(n)}class v0{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{const o=(new window.DOMParser).parseFromString($1(i),"text/html").body;return null===o?this.inertDocumentHelper.getInertBodyElement(i):(o.removeChild(o.firstChild),o)}catch{return null}}}class _0{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const o=this.inertDocument.createElement("template");return o.innerHTML=$1(i),o}}const C0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function wh(n){return(n=String(n)).match(C0)?n:"unsafe:"+n}function Ml(n){const i={};for(const o of n.split(","))i[o]=!0;return i}function Gd(...n){const i={};for(const o of n)for(const s in o)o.hasOwnProperty(s)&&(i[s]=!0);return i}const Fp=Ml("area,br,col,hr,img,wbr"),Ih=Ml("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ap=Ml("rp,rt"),_2=Gd(Fp,Gd(Ih,Ml("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Gd(Ap,Ml("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Gd(Ap,Ih)),y2=Ml("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Rp=Gd(y2,Ml("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ml("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Np=Ml("script,style,template");class T0{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let o=i.firstChild,s=!0,l=[];for(;o;)if(o.nodeType===Node.ELEMENT_NODE?s=this.startElement(o):o.nodeType===Node.TEXT_NODE?this.chars(o.nodeValue):this.sanitizedSomething=!0,s&&o.firstChild)l.push(o),o=Vp(o);else for(;o;){o.nodeType===Node.ELEMENT_NODE&&this.endElement(o);let f=kp(o);if(f){o=f;break}o=l.pop()}return this.buf.join("")}startElement(i){const o=z0(i).toLowerCase();if(!_2.hasOwnProperty(o))return this.sanitizedSomething=!0,!Np.hasOwnProperty(o);this.buf.push("<"),this.buf.push(o);const s=i.attributes;for(let l=0;l"),!0}endElement(i){const o=z0(i).toLowerCase();_2.hasOwnProperty(o)&&!Fp.hasOwnProperty(o)&&(this.buf.push(""))}chars(i){this.buf.push(M0(i))}}function kp(n){const i=n.nextSibling;if(i&&n!==i.previousSibling)throw C2(i);return i}function Vp(n){const i=n.firstChild;if(i&&function E0(n,i){return(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,i))throw C2(i);return i}function z0(n){const i=n.nodeName;return"string"==typeof i?i:"FORM"}function C2(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const e3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t3=/([^\#-~ |!])/g;function M0(n){return n.replace(/&/g,"&").replace(e3,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(t3,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}let b2;function n3(n,i){let o=null;try{b2=b2||function Pp(n){const i=new _0(n);return function y0(){try{return!!(new window.DOMParser).parseFromString($1(""),"text/html")}catch{return!1}}()?new v0(i):i}(n);let s=i?String(i):"";o=b2.getInertBodyElement(s);let l=5,f=s;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,s=f,f=o.innerHTML,o=b2.getInertBodyElement(s)}while(s!==f);return $1((new T0).sanitizeChildren(Lp(o)||o))}finally{if(o){const s=Lp(o)||o;for(;s.firstChild;)s.removeChild(s.firstChild)}}}function Lp(n){return"content"in n&&function i3(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Yd=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(Yd||{});function o3(n){const i=Wd();return i?Op(i.sanitize(Yd.HTML,n)||""):H1(n,"HTML")?Op(zl(n)):n3(cu(),eo(n))}function D0(n){const i=Wd();return i?i.sanitize(Yd.STYLE,n)||"":H1(n,"Style")?zl(n):eo(n)}function Bp(n){const i=Wd();return i?i.sanitize(Yd.URL,n)||"":H1(n,"URL")?zl(n):wh(eo(n))}function S0(n){const i=Wd();if(i)return Ip(i.sanitize(Yd.RESOURCE_URL,n)||"");if(H1(n,"ResourceURL"))return Ip(zl(n));throw new Yn(904,!1)}function O0(n,i,o){return function s3(n,i){return"src"===i&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===i&&("base"===n||"link"===n)?S0:Bp}(i,o)(n)}function Wd(){const n=kn();return n&&n[Js].sanitizer}const c3=/^>|^->||--!>|)/g,u3="\u200b$1\u200b";function F0(n){return n.ownerDocument.defaultView}function nc(n){return n instanceof Function?n():n}function ka(n){return"browser"===(n??Qn(rs)).get(n2)}var Up=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(Up||{});let Gp;function Yp(n,i){return Gp(n,i)}function Xd(n,i,o,s,l){if(null!=s){let f,y=!1;os(s)?f=s:Gr(s)&&(y=!0,s=s[Jo]);const O=Fo(s);0===n&&null!==o?null==l?a8(i,o,O):xh(i,o,O,l||null,!0):1===n&&null!==o?xh(i,o,O,l||null,!0):2===n?function Wp(n,i,o){const s=B0(n,i);s&&function g9(n,i,o,s){n.removeChild(i,o,s)}(n,s,i,o)}(i,O,y):3===n&&i.destroyNode(O),null!=f&&function y9(n,i,o,s,l){const f=o[ha];f!==Fo(o)&&Xd(i,n,s,f,l);for(let O=Dr;Oi.replace(l3,u3))}(i))}function h(n,i,o){return n.createElement(i,o)}function bt(n,i){i[Js].changeDetectionScheduler?.notify(8),H0(n,i,i[to],2,null,null)}function Gi(n,i){const o=n[yc],s=i[Pr];(Gr(s)||i[hr]!==s[Pr][hr])&&(n[Wi]|=dl.HasTransplantedViews),null===o?n[yc]=[i]:o.push(i)}function ko(n,i){const o=n[yc],s=o.indexOf(i);o.splice(s,1)}function cr(n,i){if(n.length<=Dr)return;const o=Dr+i,s=n[o];if(s){const l=s[ua];null!==l&&l!==n&&ko(l,s),i>0&&(n[o-1][Qs]=s[Qs]);const f=Ws(n,Dr+i);!function _(n,i){bt(n,i),i[Jo]=null,i[Kr]=null}(s[di],s);const y=f[da];null!==y&&y.detachView(f[di]),s[Pr]=null,s[Qs]=null,s[Wi]&=-129}return s}function ic(n,i){if(!(256&i[Wi])){const o=i[to];o.destroyNode&&H0(n,i,o,3,null,null),function un(n){let i=n[Xa];if(!i)return qc(n[di],n);for(;i;){let o=null;if(Gr(i))o=i[Xa];else{const s=i[Dr];s&&(o=s)}if(!o){for(;i&&!i[Qs]&&i!==n;)Gr(i)&&qc(i[di],i),i=i[Pr];null===i&&(i=n),Gr(i)&&qc(i[di],i),o=i&&i[Qs]}i=o}}(i)}}function qc(n,i){if(256&i[Wi])return;const o=j(null);try{i[Wi]&=-129,i[Wi]|=256,i[Bs]&&ce(i[Bs]),function Va(n,i){let o;if(null!=n&&null!=(o=n.destroyHooks))for(let s=0;s=0?s[y]():s[-y].unsubscribe(),f+=2}else o[f].call(s[o[f+1]]);null!==s&&(i[mc]=null);const l=i[qs];if(null!==l){i[qs]=null;for(let f=0;f-1){const{encapsulation:f}=n.data[s.directiveStart+l];if(f===Ks.None||f===Ks.Emulated)return null}return ms(s,o)}}(n,i.parent,o)}function xh(n,i,o,s,l){n.insertBefore(i,o,s,l)}function a8(n,i,o){n.appendChild(i,o)}function c8(n,i,o,s,l){null!==s?xh(n,i,o,s,l):a8(n,i,o)}function B0(n,i){return n.parentNode(i)}function l8(n,i,o){return d8(n,i,o)}let C3,d8=function u8(n,i,o){return 40&n.type?ms(n,o):null};function $0(n,i,o,s){const l=L0(n,s,i),f=i[to],O=l8(s.parent||i[Kr],s,i);if(null!=l)if(Array.isArray(o))for(let K=0;KBi&&y8(n,i,Bi,!1),Zs(y?2:0,l),o(s,l)}finally{Sc(f),Zs(y?3:1,l)}}function z3(n,i,o){if(Bl(i)){const s=j(null);try{const f=i.directiveEnd;for(let y=i.directiveStart;ynull;function M8(n,i,o,s,l){for(let f in i){if(!i.hasOwnProperty(f))continue;const y=i[f];if(void 0===y)continue;s??={};let O,K=Xs.None;Array.isArray(y)?(O=y[0],K=y[1]):O=y;let xe=f;if(null!==l){if(!l.hasOwnProperty(f))continue;xe=l[f]}0===n?D8(s,o,xe,O,K):D8(s,o,xe,O)}return s}function D8(n,i,o,s,l){let f;n.hasOwnProperty(o)?(f=n[o]).push(i,s):f=n[o]=[i,s],void 0!==l&&f.push(l)}function Fc(n,i,o,s,l,f,y,O){const K=ms(i,o);let We,xe=i.inputs;!O&&null!=xe&&(We=xe[s])?(P3(n,o,We,s,l),Qa(i)&&function P9(n,i){const o=$s(i,n);16&o[Wi]||(o[Wi]|=64)}(o,i.index)):3&i.type&&(s=function x9(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(s),l=null!=y?y(l,i.value||"",s):l,f.setProperty(K,s,l))}function O3(n,i,o,s){if(b1()){const l=null===s?null:{"":-1},f=function V9(n,i){const o=n.directiveRegistry;let s=null,l=null;if(o)for(let f=0;f0;){const o=n[--i];if("number"==typeof o&&o<0)return o}return 0})(y)!=O&&y.push(O),y.push(o,s,f)}}(n,i,s,Kp(n,o,l.hostVars,So),l)}function Xu(n,i,o,s,l,f){const y=ms(n,i);!function I3(n,i,o,s,l,f,y){if(null==f)n.removeAttribute(i,l,o);else{const O=null==y?eo(f):y(f,s||"",l);n.setAttribute(i,l,O,o)}}(i[to],y,f,n.value,o,s,l)}function U9(n,i,o,s,l,f){const y=f[i];if(null!==y)for(let O=0;O0&&(o[l-1][Qs]=i),s{ql(n.lView)},consumerOnSignalRead(){this.lView[Bs]=this}},ey={...I,consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{let i=pa(n.lView);for(;i&&!k8(i[di]);)i=pa(i);i&&Jl(i)},consumerOnSignalRead(){this.lView[Bs]=this}};function k8(n){return 2!==n.type}const ty=100;function Y0(n,i=!0,o=0){const s=n[Js],l=s.rendererFactory;l.begin?.();try{!function ny(n,i){const o=z1();try{Ru(!0),R3(n,i);let s=0;for(;ta(n);){if(s===ty)throw new Yn(103,!1);s++,R3(n,1)}}finally{Ru(o)}}(n,o)}catch(y){throw i&&G0(n,y),y}finally{l.end?.(),s.inlineEffectRunner?.flush()}}function iy(n,i,o,s){const l=i[Wi];if(!(256&~l))return;i[Js].inlineEffectRunner?.flush(),ku(i);let O=!0,K=null,xe=null;k8(n)?(xe=function X9(n){return n[Bs]??function Q9(n){const i=N8.pop()??Object.create(q9);return i.lView=n,i}(n)}(i),K=ee(xe)):null===R()?(O=!1,xe=function Z9(n){const i=n[Bs]??Object.create(ey);return i.lView=n,i}(i),K=ee(xe)):i[Bs]&&(ce(i[Bs]),i[Bs]=null);try{v1(i),function Nu(n){return ro.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==o&&T8(n,i,o,2,s);const We=!(3&~l);if(We){const on=n.preOrderCheckHooks;null!==on&&xa(i,on,null)}else{const on=n.preOrderHooks;null!==on&&yl(i,on,0,null),Cl(i,0)}if(function oy(n){for(let i=ap(n);null!==i;i=N4(i)){if(!(i[Wi]&dl.HasTransplantedViews))continue;const o=i[yc];for(let s=0;s-1&&(cr(i,s),Ws(o,s))}this._attachedToViewContainer=!1}ic(this._lView[di],this._lView)}onDestroy(i){Zl(this._lView,i)}markForCheck(){Qp(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Wi]&=-129}reattach(){bc(this._lView),this._lView[Wi]|=128}detectChanges(){this._lView[Wi]|=1024,Y0(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Yn(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const i=Uc(this._lView),o=this._lView[ua];null!==o&&!i&&ko(o,this._lView),bt(this._lView[di],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Yn(902,!1);this._appRef=i;const o=Uc(this._lView),s=this._lView[ua];null!==s&&!o&&Gi(s,this._lView),bc(this._lView)}}let qp=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=cy}return n})();const sy=qp,ay=class extends sy{constructor(i,o,s){super(),this._declarationLView=i,this._declarationTContainer=o,this.elementRef=s}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,o){return this.createEmbeddedViewImpl(i,o)}createEmbeddedViewImpl(i,o,s){const l=O2(this._declarationLView,this._declarationTContainer,i,{embeddedViewInjector:o,dehydratedView:s});return new Jp(l)}};function cy(){return W0(Uo(),kn())}function W0(n,i){return 4&n.type?new ay(i,n,Dt(n,i)):null}let cg=()=>null;function Rh(n,i){return cg(n,i)}class x2{}const s4=new Ui("",{providedIn:"root",factory:()=>!1}),lg=new Ui("");class ug{}class dg{}class tC{resolveComponentFactory(i){throw function eC(n){const i=Error(`No component factory found for ${me(n)}.`);return i.ngComponent=n,i}(i)}}class a4{static#e=this.NULL=new tC}class Y3{}let nC=(()=>{class n{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function iC(){const n=kn(),o=$s(Uo().index,n);return(Gr(o)?o:n)[to]}()}return n})(),oC=(()=>{class n{static#e=this.\u0275prov=Io({token:n,providedIn:"root",factory:()=>null})}return n})();function rC(n,i){if(null!==R())throw new Yn(-602,!1)}const pg=new Set;function oc(n){pg.has(n)||(pg.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function fg(n){let i=!0;return setTimeout(()=>{i&&(i=!1,n())}),"function"==typeof Ro.requestAnimationFrame&&Ro.requestAnimationFrame(()=>{i&&(i=!1,n())}),()=>{i=!1}}function mg(n){let i=!0;return queueMicrotask(()=>{i&&n()}),()=>{i=!1}}function gg(...n){}class qr{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:s=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zn(!1),this.onMicrotaskEmpty=new zn(!1),this.onStable=new zn(!1),this.onError=new zn(!1),typeof Zone>"u")throw new Yn(908,!1);Zone.assertZonePatched();const l=this;l._nesting=0,l._outer=l._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!s&&o,l.shouldCoalesceRunChangeDetection=s,l.callbackScheduled=!1,function cC(n){const i=()=>{!function aC(n){n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,Zone.root.run(()=>{fg(()=>{n.callbackScheduled=!1,K3(n),n.isCheckStableRunning=!0,W3(n),n.isCheckStableRunning=!1})}),K3(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(o,s,l,f,y,O)=>{if(function lC(n){return yg(n,"__ignore_ng_zone__")}(O))return o.invokeTask(l,f,y,O);try{return vg(n),o.invokeTask(l,f,y,O)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===f.type||n.shouldCoalesceRunChangeDetection)&&i(),_g(n)}},onInvoke:(o,s,l,f,y,O,K)=>{try{return vg(n),o.invoke(l,f,y,O,K)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function uC(n){return yg(n,"__scheduler_tick__")}(O)&&i(),_g(n)}},onHasTask:(o,s,l,f)=>{o.hasTask(l,f),s===l&&("microTask"==f.change?(n._hasPendingMicrotasks=f.microTask,K3(n),W3(n)):"macroTask"==f.change&&(n.hasPendingMacrotasks=f.macroTask))},onHandleError:(o,s,l,f)=>(o.handleError(l,f),n.runOutsideAngular(()=>n.onError.emit(f)),!1)})}(l)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qr.isInAngularZone())throw new Yn(909,!1)}static assertNotInAngularZone(){if(qr.isInAngularZone())throw new Yn(909,!1)}run(i,o,s){return this._inner.run(i,o,s)}runTask(i,o,s,l){const f=this._inner,y=f.scheduleEventTask("NgZoneEvent: "+l,i,sC,gg,gg);try{return f.runTask(y,o,s)}finally{f.cancelTask(y)}}runGuarded(i,o,s){return this._inner.runGuarded(i,o,s)}runOutsideAngular(i){return this._outer.run(i)}}const sC={};function W3(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function K3(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function vg(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function _g(n){n._nesting--,W3(n)}class Z0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zn,this.onMicrotaskEmpty=new zn,this.onStable=new zn,this.onError=new zn}run(i,o,s){return i.apply(o,s)}runGuarded(i,o,s){return i.apply(o,s)}runOutsideAngular(i){return i()}runTask(i,o,s,l){return i.apply(o,s)}}function yg(n,i){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[i]}var rc=function(n){return n[n.EarlyRead=0]="EarlyRead",n[n.Write=1]="Write",n[n.MixedReadWrite=2]="MixedReadWrite",n[n.Read=3]="Read",n}(rc||{});const Cg={destroy(){}};function bg(n,i){!i&&$c();const o=i?.injector??Qn(rs);return ka(o)?(oc("NgAfterRender"),Eg(n,o,!1,i?.phase??rc.MixedReadWrite)):Cg}function Tg(n,i){!i&&$c();const o=i?.injector??Qn(rs);return ka(o)?(oc("NgAfterNextRender"),Eg(n,o,!0,i?.phase??rc.MixedReadWrite)):Cg}function Eg(n,i,o,s){const l=function hC(n,i){if(n instanceof Function)switch(i){case rc.EarlyRead:return{earlyRead:n};case rc.Write:return{write:n};case rc.MixedReadWrite:return{mixedReadWrite:n};case rc.Read:return{read:n}}return n}(n,s),f=i.get(ef),y=f.handler??=new fC,O=[],K=[],xe=()=>{for(const on of K)y.unregister(on);We()},We=i.get(E).onDestroy(xe);let Ot=0;const tn=(on,bn)=>{if(!bn)return;const Ln=o?(...Ci)=>(Ot--,Ot<1&&xe(),bn(...Ci)):bn,fi=Eu(i,()=>new pC(on,O,Ln));y.register(fi),K.push(fi),Ot++};return tn(rc.EarlyRead,l.earlyRead),tn(rc.Write,l.write),tn(rc.MixedReadWrite,l.mixedReadWrite),tn(rc.Read,l.read),{destroy:xe}}class pC{constructor(i,o,s){this.phase=i,this.pipelinedArgs=o,this.callbackFn=s,this.zone=Qn(qr),this.errorHandler=Qn(Ra,{optional:!0}),Qn(x2,{optional:!0})?.notify(6)}invoke(){try{const i=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,i)}catch(i){this.errorHandler?.handleError(i)}}}class fC{constructor(){this.executingCallbacks=!1,this.buckets={[rc.EarlyRead]:new Set,[rc.Write]:new Set,[rc.MixedReadWrite]:new Set,[rc.Read]:new Set},this.deferredCallbacks=new Set}register(i){(this.executingCallbacks?this.deferredCallbacks:this.buckets[i.phase]).add(i)}unregister(i){this.buckets[i.phase].delete(i),this.deferredCallbacks.delete(i)}execute(){this.executingCallbacks=!0;for(const i of Object.values(this.buckets))for(const o of i)o.invoke();this.executingCallbacks=!1;for(const i of this.deferredCallbacks)this.buckets[i.phase].add(i);this.deferredCallbacks.clear()}destroy(){for(const i of Object.values(this.buckets))i.clear();this.deferredCallbacks.clear()}}let ef=(()=>{class n{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const s of o)s()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Io({token:n,providedIn:"root",factory:()=>new n})}return n})();function Qd(n){return!!Cr(n)}function nf(n,i,o){let s=o?n.styles:null,l=o?n.classes:null,f=0;if(null!==i)for(let y=0;y0&&g8(n,o,f.join(" "))}}(on,sa,Ln,s),void 0!==o&&function zC(n,i,o){const s=n.projection=[];for(let l=0;l{class n{static#e=this.__NG_ELEMENT_ID__=DC}return n})();function DC(){return Ig(Uo(),kn())}const SC=rf,Og=class extends SC{constructor(i,o,s){super(),this._lContainer=i,this._hostTNode=o,this._hostLView=s}get element(){return Dt(this._hostTNode,this._hostLView)}get injector(){return new Qr(this._hostTNode,this._hostLView)}get parentInjector(){const i=ou(this._hostTNode,this._hostLView);if(wc(i)){const o=ec(i,this._hostLView),s=Za(i);return new Qr(o[di].data[s+8],o)}return new Qr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const o=wg(this._lContainer);return null!==o&&o[i]||null}get length(){return this._lContainer.length-Dr}createEmbeddedView(i,o,s){let l,f;"number"==typeof s?l=s:null!=s&&(l=s.index,f=s.injector);const y=Rh(this._lContainer,i.ssrId),O=i.createEmbeddedViewImpl(o||{},f,y);return this.insertImpl(O,l,Fh(this._hostTNode,y)),O}createComponent(i,o,s,l,f){const y=i&&!function Hc(n){return"function"==typeof n}(i);let O;if(y)O=o;else{const bn=o||{};O=bn.index,s=bn.injector,l=bn.projectableNodes,f=bn.environmentInjector||bn.ngModuleRef}const K=y?i:new u4(oo(i)),xe=s||this.parentInjector;if(!f&&null==K.ngModule){const Ln=(y?xe:this.parentInjector).get(Ls,null);Ln&&(f=Ln)}const We=oo(K.componentType??{}),Ot=Rh(this._lContainer,We?.id??null),on=K.create(xe,l,Ot?.firstChild??null,f);return this.insertImpl(on.hostView,O,Fh(this._hostTNode,Ot)),on}insert(i,o){return this.insertImpl(i,o,!0)}insertImpl(i,o,s){const l=i._lView;if(function sh(n){return os(n[Pr])}(l)){const O=this.indexOf(i);if(-1!==O)this.detach(O);else{const K=l[Pr],xe=new Og(K,K[Kr],K[Pr]);xe.detach(xe.indexOf(i))}}const f=this._adjustIndex(o),y=this._lContainer;return w2(y,l,f,s),i.attachToViewContainerRef(),fo(q3(y),f,i),i}move(i,o){return this.insert(i,o)}indexOf(i){const o=wg(this._lContainer);return null!==o?o.indexOf(i):-1}remove(i){const o=this._adjustIndex(i,-1),s=cr(this._lContainer,o);s&&(Ws(q3(this._lContainer),o),ic(s[di],s))}detach(i){const o=this._adjustIndex(i,-1),s=cr(this._lContainer,o);return s&&null!=Ws(q3(this._lContainer),o)?new Jp(s):null}_adjustIndex(i,o=0){return i??this.length+o}};function wg(n){return n[8]}function q3(n){return n[8]||(n[8]=[])}function Ig(n,i){let o;const s=i[n.index];return os(s)?o=s:(o=w8(s,i,null,n),i[n.index]=o,U0(i,o)),xg(o,i,n,s),new Og(o,n,i)}let xg=function Fg(n,i,o,s){if(n[ha])return;let l;l=8&o.type?Fo(s):function OC(n,i){const o=n[to],s=o.createComment(""),l=ms(i,n);return xh(o,B0(o,l),s,function v9(n,i){return n.nextSibling(i)}(o,l),!1),s}(i,o),n[ha]=l},Z3=()=>!1;class e6{constructor(i){this.queryList=i,this.matches=null}clone(){return new e6(this.queryList)}setDirty(){this.queryList.setDirty()}}class t6{constructor(i=[]){this.queries=i}createEmbeddedView(i){const o=i.queries;if(null!==o){const s=null!==i.contentQueries?i.contentQueries[0]:o.length,l=[];for(let f=0;fi.trim())}(i):i}}class n6{constructor(i=[]){this.queries=i}elementStart(i,o){for(let s=0;s0)s.push(y[O/2]);else{const xe=f[O+1],We=i[-K];for(let Ot=Dr;Ot(w(i),i.value);return o[z]=i,o}(n),s=o[z];return i?.equal&&(s.equal=i.equal),o.set=l=>ft(s,l),o.update=l=>function St(n,i){x()||Bt(),ft(n,i(n.value))}(s,l),o.asReadonly=Hg.bind(o),o}function Hg(){const n=this[z];if(void 0===n.readonlyFn){const i=()=>this();i[z]=n,n.readonlyFn=i}return n.readonlyFn}function jg(n){return a6(n)&&"function"==typeof n.set}function l6(n){let i=function ev(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),o=!0;const s=[n];for(;i;){let l;if(Cs(n))l=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new Yn(903,!1);l=i.\u0275dir}if(l){if(o){s.push(l);const y=n;y.inputs=af(n.inputs),y.inputTransforms=af(n.inputTransforms),y.declaredInputs=af(n.declaredInputs),y.outputs=af(n.outputs);const O=l.hostBindings;O&&JC(n,O);const K=l.viewQuery,xe=l.contentQueries;if(K&&XC(n,K),xe&&QC(n,xe),WC(n,l),Un(n.outputs,l.outputs),Cs(l)&&l.data.animation){const We=n.data;We.animation=(We.animation||[]).concat(l.data.animation)}}const f=l.features;if(f)for(let y=0;y=0;s--){const l=n[s];l.hostVars=i+=l.hostVars,l.hostAttrs=Wa(l.hostAttrs,o=Wa(o,l.hostAttrs))}}(s)}function WC(n,i){for(const o in i.inputs){if(!i.inputs.hasOwnProperty(o)||n.inputs.hasOwnProperty(o))continue;const s=i.inputs[o];if(void 0!==s&&(n.inputs[o]=s,n.declaredInputs[o]=i.declaredInputs[o],null!==i.inputTransforms)){const l=Array.isArray(s)?s[0]:s;if(!i.inputTransforms.hasOwnProperty(l))continue;n.inputTransforms??={},n.inputTransforms[l]=i.inputTransforms[l]}}}function af(n){return n===Wr?{}:n===Oo?[]:n}function XC(n,i){const o=n.viewQuery;n.viewQuery=o?(s,l)=>{i(s,l),o(s,l)}:i}function QC(n,i){const o=n.contentQueries;n.contentQueries=o?(s,l,f)=>{i(s,l,f),o(s,l,f)}:i}function JC(n,i){const o=n.hostBindings;n.hostBindings=o?(s,l)=>{i(s,l),o(s,l)}:i}function ov(n){const i=n.inputConfig,o={};for(const s in i)if(i.hasOwnProperty(s)){const l=i[s];Array.isArray(l)&&l[3]&&(o[s]=l[3])}n.inputTransforms=o}class Nh{}class rv{}function ib(n,i){return new u6(n,i??null,[])}class u6 extends Nh{constructor(i,o,s){super(),this._parent=o,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Dg(this);const l=Cr(i);this._bootstrapComponents=nc(l.bootstrap),this._r3Injector=mh(i,o,[{provide:Nh,useValue:this},{provide:a4,useValue:this.componentFactoryResolver},...s],me(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(o=>o()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class d6 extends rv{constructor(i){super(),this.moduleType=i}create(i){return new u6(this.moduleType,i,[])}}class sv extends Nh{constructor(i){super(),this.componentFactoryResolver=new Dg(this),this.instance=null;const o=new hc([...i.providers,{provide:Nh,useValue:this},{provide:a4,useValue:this.componentFactoryResolver}],i.parent||al(),i.debugName,new Set(["environment"]));this.injector=o,i.runEnvironmentInitializers&&o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function h6(n,i,o=null){return new sv({providers:n,parent:i,debugName:o,runEnvironmentInitializers:!0}).injector}function cf(n){return!!p6(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function p6(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Qu(n,i,o){return n[i]=o}function h4(n,i){return n[i]}function Is(n,i,o){return!Object.is(n[i],o)&&(n[i]=o,!0)}function kh(n,i,o,s){const l=Is(n,i,o);return Is(n,i+1,s)||l}function Dl(n,i,o,s,l,f){const y=kh(n,i,o,s);return kh(n,i+2,l,f)||y}function p4(n,i,o,s,l,f,y,O,K,xe){const We=o+Bi,Ot=i.firstCreatePass?function lb(n,i,o,s,l,f,y,O,K){const xe=i.consts,We=Ph(i,n,4,y||null,O||null);O3(i,o,We,ea(xe,K)),_l(i,We);const Ot=We.tView=S3(2,We,s,l,f,i.directiveRegistry,i.pipeRegistry,null,i.schemas,xe,null);return null!==i.queries&&(i.queries.template(i,We),Ot.queries=i.queries.embeddedTView(We)),We}(We,i,n,s,l,f,y,O,K):i.data[We];rr(Ot,!1);const tn=av(i,n,Ot,o);Xc()&&$0(i,n,tn,Ot),ar(tn,n);const on=w8(tn,n,tn,Ot);return n[We]=on,U0(n,on),function Pg(n,i,o){return Z3(n,i,o)}(on,Ot,n),hl(Ot)&&M3(i,n,Ot),null!=K&&D3(n,Ot,xe),Ot}function f6(n,i,o,s,l,f,y,O){const K=kn(),xe=Co();return p4(K,xe,n,i,o,s,l,ea(xe.consts,f),y,O),f6}let av=function cv(n,i,o,s){return Hs(!0),i[to].createComment("")};function M6(n,i,o,s){const l=kn();return Is(l,fa(),i)&&(Co(),Xu(Zo(),l,n,i,o,s)),M6}function $2(n,i,o,s){return Is(n,fa(),o)?i+eo(o)+s:So}function H2(n,i,o,s,l,f){const O=kh(n,za(),o,l);return ma(2),O?i+eo(o)+s+eo(l)+f:So}function mf(n,i){return n<<17|i<<2}function Zd(n){return n>>17&32767}function D6(n){return 2|n}function Lh(n){return(131068&n)>>2}function S6(n,i){return-131069&n|i<<2}function O6(n){return 1|n}function Lv(n,i,o,s){const l=n[o+1],f=null===i;let y=s?Zd(l):Lh(l),O=!1;for(;0!==y&&(!1===O||f);){const xe=n[y+1];Kb(n[y],i)&&(O=!0,n[y+1]=s?O6(xe):D6(xe)),y=s?Zd(xe):Lh(xe)}O&&(n[o+1]=s?D6(l):O6(l))}function Kb(n,i){return null===n||null==i||(Array.isArray(n)?n[1]:n)===i||!(!Array.isArray(n)||"string"!=typeof i)&&Po(n,i)>=0}const oa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Bv(n){return n.substring(oa.key,oa.keyEnd)}function Xb(n){return n.substring(oa.value,oa.valueEnd)}function $v(n,i){const o=oa.textEnd;return o===i?-1:(i=oa.keyEnd=function qb(n,i,o){for(;i32;)i++;return i}(n,oa.key=i,o),X2(n,i,o))}function Hv(n,i){const o=oa.textEnd;let s=oa.key=X2(n,i,o);return o===s?-1:(s=oa.keyEnd=function Zb(n,i,o){let s;for(;i=65&&(-33&s)<=90||s>=48&&s<=57);)i++;return i}(n,s,o),s=Uv(n,s,o),s=oa.value=X2(n,s,o),s=oa.valueEnd=function eT(n,i,o){let s=-1,l=-1,f=-1,y=i,O=y;for(;y32&&(O=y),f=l,l=s,s=-33&K}return O}(n,s,o),Uv(n,s,o))}function jv(n){oa.key=0,oa.keyEnd=0,oa.value=0,oa.valueEnd=0,oa.textEnd=n.length}function X2(n,i,o){for(;i=0;o=Hv(i,o))Xv(n,Bv(i),Xb(i))}function Yv(n){du(aT,Ju,n,!0)}function Ju(n,i){for(let o=function Qb(n){return jv(n),$v(n,X2(n,0,oa.textEnd))}(i);o>=0;o=$v(i,o))Mr(n,Bv(i),!0)}function uu(n,i,o,s){const l=kn(),f=Co(),y=ma(2);f.firstUpdatePass&&Kv(f,n,y,s),i!==So&&Is(l,y,i)&&Qv(f,f.data[Xr()],l,l[to],n,l[y+1]=function lT(n,i){return null==n||""===n||("string"==typeof i?n+=i:"object"==typeof n&&(n=me(zl(n)))),n}(i,o),s,y)}function du(n,i,o,s){const l=Co(),f=ma(2);l.firstUpdatePass&&Kv(l,null,f,s);const y=kn();if(o!==So&&Is(y,f,o)){const O=l.data[Xr()];if(qv(O,s)&&!Wv(l,f)){let K=s?O.classesWithoutHost:O.stylesWithoutHost;null!==K&&(o=qe(K,o||"")),I6(l,O,y,o,s)}else!function cT(n,i,o,s,l,f,y,O){l===So&&(l=Oo);let K=0,xe=0,We=0=n.expandoStartIndex}function Kv(n,i,o,s){const l=n.data;if(null===l[o+1]){const f=l[Xr()],y=Wv(n,o);qv(f,s)&&null===i&&!y&&(i=!1),i=function nT(n,i,o,s){const l=nu(n);let f=s?i.residualClasses:i.residualStyles;if(null===l)0===(s?i.classBindings:i.styleBindings)&&(o=v4(o=F6(null,n,i,o,s),i.attrs,s),f=null);else{const y=i.directiveStylingLast;if(-1===y||n[y]!==l)if(o=F6(l,n,i,o,s),null===f){let K=function iT(n,i,o){const s=o?i.classBindings:i.styleBindings;if(0!==Lh(s))return n[Zd(s)]}(n,i,s);void 0!==K&&Array.isArray(K)&&(K=F6(null,n,i,K[1],s),K=v4(K,i.attrs,s),function oT(n,i,o,s){n[Zd(o?i.classBindings:i.styleBindings)]=s}(n,i,s,K))}else f=function rT(n,i,o){let s;const l=i.directiveEnd;for(let f=1+i.directiveStylingLast;f0)&&(xe=!0)):We=o,l)if(0!==K){const tn=Zd(n[O+1]);n[s+1]=mf(tn,O),0!==tn&&(n[tn+1]=S6(n[tn+1],s)),n[O+1]=function Ub(n,i){return 131071&n|i<<17}(n[O+1],s)}else n[s+1]=mf(O,0),0!==O&&(n[O+1]=S6(n[O+1],s)),O=s;else n[s+1]=mf(K,0),0===O?O=s:n[K+1]=S6(n[K+1],s),K=s;xe&&(n[s+1]=D6(n[s+1])),Lv(n,We,s,!0),Lv(n,We,s,!1),function Wb(n,i,o,s,l){const f=l?n.residualClasses:n.residualStyles;null!=f&&"string"==typeof i&&Po(f,i)>=0&&(o[s+1]=O6(o[s+1]))}(i,We,n,s,f),y=mf(O,K),f?i.classBindings=y:i.styleBindings=y}(l,f,i,o,y,s)}}function F6(n,i,o,s,l){let f=null;const y=o.directiveEnd;let O=o.directiveStylingLast;for(-1===O?O=o.directiveStart:O++;O0;){const K=n[l],xe=Array.isArray(K),We=xe?K[1]:K,Ot=null===We;let tn=o[l+1];tn===So&&(tn=Ot?Oo:void 0);let on=Ot?_r(tn,s):We===s?tn:void 0;if(xe&&!gf(on)&&(on=_r(K,s)),gf(on)&&(O=on,y))return O;const bn=n[l+1];l=y?Zd(bn):Lh(bn)}if(null!==i){let K=f?i.residualClasses:i.residualStyles;null!=K&&(O=_r(K,s))}return O}function gf(n){return void 0!==n}function qv(n,i){return!!(n.flags&(i?8:16))}function Zv(n,i,o){du(Mr,Ju,$2(kn(),n,i,o),!0)}function e5(n,i,o,s,l){du(Mr,Ju,H2(kn(),n,i,o,s,l),!0)}function t5(n,i,o,s,l,f,y,O,K){du(Mr,Ju,function U2(n,i,o,s,l,f,y,O,K,xe){const Ot=Dl(n,za(),o,l,y,K);return ma(4),Ot?i+eo(o)+s+eo(l)+f+eo(y)+O+eo(K)+xe:So}(kn(),n,i,o,s,l,f,y,O,K),!0)}function n5(){return kn()[hr][qo]}class gT{destroy(i){}updateValue(i,o){}swap(i,o){const s=Math.min(i,o),l=Math.max(i,o),f=this.detach(l);if(l-s>1){const y=this.detach(s);this.attach(s,f),this.attach(l,y)}else this.attach(s,f)}move(i,o){this.attach(o,this.detach(i))}}function A6(n,i,o,s,l){return n===o&&Object.is(i,s)?1:Object.is(l(n,i),l(o,s))?-1:0}function R6(n,i,o,s){return!(void 0===i||!i.has(s)||(n.attach(o,i.get(s)),i.delete(s),0))}function i5(n,i,o,s,l){if(R6(n,i,s,o(s,l)))n.updateValue(s,l);else{const f=n.create(s,l);n.attach(s,f)}}function o5(n,i,o,s){const l=new Set;for(let f=i;f<=o;f++)l.add(s(f,n.at(f)));return l}class r5{constructor(){this.kvMap=new Map,this._vMap=void 0}has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;const o=this.kvMap.get(i);return void 0!==this._vMap&&this._vMap.has(o)?(this.kvMap.set(i,this._vMap.get(o)),this._vMap.delete(o)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,o){if(this.kvMap.has(i)){let s=this.kvMap.get(i);void 0===this._vMap&&(this._vMap=new Map);const l=this._vMap;for(;l.has(s);)s=l.get(s);l.set(s,o)}else this.kvMap.set(i,o)}forEach(i){for(let[o,s]of this.kvMap)if(i(s,o),void 0!==this._vMap){const l=this._vMap;for(;l.has(s);)s=l.get(s),i(s,o)}}}function s5(n,i){oc("NgControlFlow");const o=kn(),s=fa(),l=o[s]!==So?o[s]:-1,f=-1!==l?vf(o,Bi+l):void 0;if(Is(o,s,n)){const O=j(null);try{if(void 0!==f&&A3(f,0),-1!==n){const K=Bi+n,xe=vf(o,K),We=N6(o[di],K),Ot=Rh(xe,We.tView.ssrId);w2(xe,O2(o,We,i,{dehydratedView:Ot}),0,Fh(We,Ot))}}finally{j(O)}}else if(void 0!==f){const O=A8(f,0);void 0!==O&&(O[qo]=i)}}class _T{constructor(i,o,s){this.lContainer=i,this.$implicit=o,this.$index=s}get $count(){return this.lContainer.length-Dr}}function a5(n){return n}function c5(n,i){return i}class yT{constructor(i,o,s){this.hasEmptyBlock=i,this.trackByFn=o,this.liveCollection=s}}function l5(n,i,o,s,l,f,y,O,K,xe,We,Ot,tn){oc("NgControlFlow");const on=kn(),bn=Co(),Ln=void 0!==K,fi=kn(),Ci=O?y.bind(fi[hr][qo]):y,qn=new yT(Ln,Ci);fi[Bi+n]=qn,p4(on,bn,n+1,i,o,s,l,ea(bn.consts,f)),Ln&&p4(on,bn,n+2,K,xe,We,Ot,ea(bn.consts,tn))}class CT extends gT{constructor(i,o,s){super(),this.lContainer=i,this.hostLView=o,this.templateTNode=s,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Dr}at(i){return this.getLView(i)[qo].$implicit}attach(i,o){const s=o[ps];this.needsIndexUpdate||=i!==this.length,w2(this.lContainer,o,i,Fh(this.templateTNode,s))}detach(i){return this.needsIndexUpdate||=i!==this.length-1,function bT(n,i){return cr(n,i)}(this.lContainer,i)}create(i,o){const s=Rh(this.lContainer,this.templateTNode.tView.ssrId),l=O2(this.hostLView,this.templateTNode,new _T(this.lContainer,o,i),{dehydratedView:s});return this.operationsCounter?.recordCreate(),l}destroy(i){ic(i[di],i),this.operationsCounter?.recordDestroy()}updateValue(i,o){this.getLView(i)[qo].$implicit=o}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i{n.destroy(K)})}(K,n,f.trackByFn),K.updateIndexes(),f.hasEmptyBlock){const xe=fa(),We=0===K.length;if(Is(s,xe,We)){const Ot=o+2,tn=vf(s,Ot);if(We){const on=N6(l,Ot),bn=Rh(tn,on.tView.ssrId);w2(tn,O2(s,on,void 0,{dehydratedView:bn}),0,Fh(on,bn))}else A3(tn,0)}}}finally{j(i)}}function vf(n,i){return n[i]}function N6(n,i){return Ql(n,i)}function _f(n,i,o,s){const l=kn(),f=Co(),y=Bi+n,O=l[to],K=f.firstCreatePass?function ET(n,i,o,s,l,f){const y=i.consts,K=Ph(i,n,2,s,ea(y,l));return O3(i,o,K,ea(y,f)),null!==K.attrs&&nf(K,K.attrs,!1),null!==K.mergedAttrs&&nf(K,K.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,K),K}(y,f,l,i,o,s):f.data[y],xe=d5(f,l,K,O,i,n);l[y]=xe;const We=hl(K);return rr(K,!0),v8(O,xe,K),!function F2(n){return!(32&~n.flags)}(K)&&Xc()&&$0(f,l,xe,K),0===function C1(){return ro.lFrame.elementDepthCount}()&&ar(xe,l),function md(){ro.lFrame.elementDepthCount++}(),We&&(M3(f,l,K),z3(f,K,l)),null!==s&&D3(l,K),_f}function yf(){let n=Uo();zc()?Wc():(n=n.parent,rr(n,!1));const i=n;(function vd(n){return ro.skipHydrationRootTNode===n})(i)&&function bd(){ro.skipHydrationRootTNode=null}(),function gd(){ro.lFrame.elementDepthCount--}();const o=Co();return o.firstCreatePass&&(_l(o,n),Bl(n)&&o.queries.elementEnd(n)),null!=i.classesWithoutHost&&function zd(n){return!!(8&n.flags)}(i)&&I6(o,i,kn(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function Md(n){return!!(16&n.flags)}(i)&&I6(o,i,kn(),i.stylesWithoutHost,!1),yf}function k6(n,i,o,s){return _f(n,i,o,s),yf(),k6}let d5=(n,i,o,s,l,f)=>(Hs(!0),h(s,l,function Oc(){return ro.lFrame.currentNamespace}()));function Cf(n,i,o){const s=kn(),l=Co(),f=n+Bi,y=l.firstCreatePass?function DT(n,i,o,s,l){const f=i.consts,y=ea(f,s),O=Ph(i,n,8,"ng-container",y);return null!==y&&nf(O,y,!0),O3(i,o,O,ea(f,l)),null!==i.queries&&i.queries.elementStart(i,O),O}(f,l,s,i,o):l.data[f];rr(y,!0);const O=h5(l,s,y,n);return s[f]=O,Xc()&&$0(l,s,O,y),ar(O,s),hl(y)&&(M3(l,s,y),z3(l,y,s)),null!=o&&D3(s,y),Cf}function bf(){let n=Uo();const i=Co();return zc()?Wc():(n=n.parent,rr(n,!1)),i.firstCreatePass&&(_l(i,n),Bl(n)&&i.queries.elementEnd(n)),bf}function V6(n,i,o){return Cf(n,i,o),bf(),V6}let h5=(n,i,o,s)=>(Hs(!0),c(i[to],""));function p5(){return kn()}function L6(n,i,o){const s=kn();return Is(s,fa(),i)&&Fc(Co(),Zo(),s,n,i,s[to],o,!0),L6}function B6(n,i,o){const s=kn();if(Is(s,fa(),i)){const f=Co(),y=Zo();Fc(f,y,s,n,i,F8(nu(f.data),y,s),o,!0)}return B6}const Bh=void 0;var IT=["en",[["a","p"],["AM","PM"],Bh],[["AM","PM"],Bh,Bh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Bh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Bh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Bh,"{1} 'at' {0}",Bh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function wT(n){const o=Math.floor(Math.abs(n)),s=n.toString().replace(/^[^.]*\.?/,"").length;return 1===o&&0===s?1:5}];let Q2={};function xT(n,i,o){"string"!=typeof i&&(o=i,i=n[J2.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),Q2[i]=n,o&&(Q2[i][J2.ExtraData]=o)}function $6(n){const i=function PT(n){return n.toLowerCase().replace(/_/g,"-")}(n);let o=m5(i);if(o)return o;const s=i.split("-")[0];if(o=m5(s),o)return o;if("en"===s)return IT;throw new Yn(701,!1)}function f5(n){return $6(n)[J2.PluralCase]}function m5(n){return n in Q2||(Q2[n]=Ro.ng&&Ro.ng.common&&Ro.ng.common.locales&&Ro.ng.common.locales[n]),Q2[n]}var J2=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(J2||{});const q2="en-US";let g5=q2;let R5=(n,i,o)=>{};function U6(n,i,o,s){const l=kn(),f=Co(),y=Uo();return Y6(f,l,l[to],y,n,i,s),U6}function G6(n,i){const o=Uo(),s=kn(),l=Co();return Y6(l,s,F8(nu(l.data),o,s),o,n,i),G6}function Y6(n,i,o,s,l,f,y){const O=hl(s),xe=n.firstCreatePass&&P8(n),We=i[qo],Ot=x8(i);let tn=!0;if(3&s.type||y){const Ln=ms(s,i),fi=y?y(Ln):Ln,Ci=Ot.length,qn=y?er=>y(Fo(er[s.index])):s.index;let mo=null;if(!y&&O&&(mo=function yE(n,i,o,s){const l=n.cleanup;if(null!=l)for(let f=0;fK?O[K]:null}"string"==typeof y&&(f+=2)}return null}(n,i,l,s.index)),null!==mo)(mo.__ngLastListenerFn__||mo).__ngNextListenerFn__=f,mo.__ngLastListenerFn__=f,tn=!1;else{f=V5(s,i,We,f),R5(Ln,l,f);const er=o.listen(fi,l,f);Ot.push(f,er),xe&&xe.push(l,qn,Ci,Ci+1)}}else f=V5(s,i,We,f);const on=s.outputs;let bn;if(tn&&null!==on&&(bn=on[l])){const Ln=bn.length;if(Ln)for(let fi=0;fi-1?$s(n.index,i):i,5);let O=k5(i,o,s,f),K=l.__ngNextListenerFn__;for(;K;)O=k5(i,o,K,f)&&O,K=K.__ngNextListenerFn__;return O}}function L5(n=1){return function O1(n){return(ro.lFrame.contextLView=function _1(n,i){for(;n>0;)i=i[gc],n--;return i}(n,ro.lFrame.contextLView))[qo]}(n)}function CE(n,i){let o=null;const s=function F(n){const i=n.attrs;if(null!=i){const o=i.indexOf(5);if(!(1&o))return i[o+1]}return null}(n);for(let l=0;l=n.data.length&&(n.data[o]=null,n.blueprint[o]=null),i[o]=s}function Z5(n){return Yc(fl(),Bi+n)}function e7(n,i,o){lu($2(kn(),n,i,o))}function u7(n,i=""){const o=kn(),s=Co(),l=n+Bi,f=s.firstCreatePass?Ph(s,l,1,i,null):s.data[l],y=d7(s,o,f,i,n);o[l]=y,Xc()&&$0(s,o,y,f),rr(f,!1)}let d7=(n,i,o,s,l)=>(Hs(!0),function u(n,i){return n.createText(i)}(i[to],s));function Q6(n){return Df("",n,""),Q6}function Df(n,i,o){const s=kn(),l=$2(s,n,i,o);return l!==So&&j1(s,Xr(),l),Df}function J6(n,i,o,s,l){const f=kn(),y=H2(f,n,i,o,s,l);return y!==So&&j1(f,Xr(),y),J6}function q6(n,i,o){jg(i)&&(i=i());const s=kn();return Is(s,fa(),i)&&Fc(Co(),Zo(),s,n,i,s[to],o,!1),q6}function y7(n,i){const o=jg(n);return o&&n.set(i),o}function Z6(n,i){const o=kn(),s=Co(),l=Uo();return Y6(s,o,o[to],l,n,i),Z6}const C7={};function em(n){const i=Co(),o=kn(),s=n+Bi;return rr(Ph(i,s,128,null,null),!1),X6(i,o,s,C7),em}function b7(n){return oc("NgLet"),X6(Co(),kn(),Xr(),n),n}function T7(n){const o=Yc(fl(),Bi+n);if(o===C7)throw new Yn(314,!1);return o}function tm(n,i,o,s,l){if(n=ti(n),Array.isArray(n))for(let f=0;f>20;if(Ka(n)||!n.multi){const on=new Fa(xe,l,S2),bn=im(K,i,l?We:We+tn,Ot);-1===bn?(A1(ju(O,y),f,K),nm(f,n,i.length),i.push(K),O.directiveStart++,O.directiveEnd++,l&&(O.providerIndexes+=1048576),o.push(on),y.push(on)):(o[bn]=on,y[bn]=on)}else{const on=im(K,i,We+tn,Ot),bn=im(K,i,We,We+tn),fi=bn>=0&&o[bn];if(l&&!fi||!l&&!(on>=0&&o[on])){A1(ju(O,y),f,K);const Ci=function VE(n,i,o,s,l){const f=new Fa(n,o,S2);return f.multi=[],f.index=i,f.componentProviders=0,E7(f,l,s&&!o),f}(l?kE:NE,o.length,l,s,xe);!l&&fi&&(o[bn].providerFactory=Ci),nm(f,n,i.length,0),i.push(K),O.directiveStart++,O.directiveEnd++,l&&(O.providerIndexes+=1048576),o.push(Ci),y.push(Ci)}else nm(f,n,on>-1?on:bn,E7(o[l?bn:on],xe,!l&&s));!l&&s&&fi&&o[bn].componentProviders++}}}function nm(n,i,o,s){const l=Ka(i),f=function t1(n){return!!n.useClass}(i);if(l||f){const K=(f?ti(i.useClass):i).prototype.ngOnDestroy;if(K){const xe=n.destroyHooks||(n.destroyHooks=[]);if(!l&&i.multi){const We=xe.indexOf(o);-1===We?xe.push(o,[s,K]):xe[We+1].push(s,K)}else xe.push(o,K)}}}function E7(n,i,o){return o&&n.componentProviders++,n.multi.push(i)-1}function im(n,i,o,s){for(let l=o;l{o.providersResolver=(s,l)=>function RE(n,i,o){const s=Co();if(s.firstCreatePass){const l=Cs(n);tm(o,s.data,s.blueprint,l,!0),tm(i,s.data,s.blueprint,l,!1)}}(s,l?l(n):n,i)}}let LE=(()=>{class n{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const s=rl(0,o.type),l=s.length>0?h6([s],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,l)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Io({token:n,providedIn:"environment",factory:()=>new n(Yi(Ls))})}return n})();function M7(n){oc("NgStandalone"),n.getStandaloneInjector=i=>i.get(LE).getOrCreateStandaloneInjector(n)}function D7(n,i,o){const s=n.\u0275cmp;s.directiveDefs=xl(i,!1),s.pipeDefs=xl(o,!0)}function w7(n,i,o){const s=bs()+n,l=kn();return l[s]===So?Qu(l,s,o?i.call(o):i()):h4(l,s)}function I7(n,i,o,s){return N7(kn(),bs(),n,i,o,s)}function x7(n,i,o,s,l){return k7(kn(),bs(),n,i,o,s,l)}function P7(n,i,o,s,l,f){return V7(kn(),bs(),n,i,o,s,l,f)}function F7(n,i,o,s,l,f,y){return L7(kn(),bs(),n,i,o,s,l,f,y)}function A7(n,i,o,s,l,f,y,O){const K=bs()+n,xe=kn(),We=Dl(xe,K,o,s,l,f);return Is(xe,K+4,y)||We?Qu(xe,K+5,O?i.call(O,o,s,l,f,y):i(o,s,l,f,y)):h4(xe,K+5)}function R7(n,i,o,s,l,f,y,O,K){const xe=bs()+n,We=kn(),Ot=Dl(We,xe,o,s,l,f);return kh(We,xe+4,y,O)||Ot?Qu(We,xe+6,K?i.call(K,o,s,l,f,y,O):i(o,s,l,f,y,O)):h4(We,xe+6)}function E4(n,i){const o=n[i];return o===So?void 0:o}function N7(n,i,o,s,l,f){const y=i+o;return Is(n,y,l)?Qu(n,y+1,f?s.call(f,l):s(l)):E4(n,y+1)}function k7(n,i,o,s,l,f,y){const O=i+o;return kh(n,O,l,f)?Qu(n,O+2,y?s.call(y,l,f):s(l,f)):E4(n,O+2)}function V7(n,i,o,s,l,f,y,O){const K=i+o;return function lf(n,i,o,s,l){const f=kh(n,i,o,s);return Is(n,i+2,l)||f}(n,K,l,f,y)?Qu(n,K+3,O?s.call(O,l,f,y):s(l,f,y)):E4(n,K+3)}function L7(n,i,o,s,l,f,y,O,K){const xe=i+o;return Dl(n,xe,l,f,y,O)?Qu(n,xe+4,K?s.call(K,l,f,y,O):s(l,f,y,O)):E4(n,xe+4)}function $7(n,i){const o=Co();let s;const l=n+Bi;o.firstCreatePass?(s=function GE(n,i){if(i)for(let o=i.length-1;o>=0;o--){const s=i[o];if(n===s.name)return s}}(i,o.pipeRegistry),o.data[l]=s,s.onDestroy&&(o.destroyHooks??=[]).push(l,s.onDestroy)):s=o.data[l];const f=s.factory||(s.factory=or(s.type)),O=Fe(S2);try{const K=Ae(!1),xe=f();return Ae(K),X6(o,kn(),l,xe),xe}finally{Fe(O)}}function H7(n,i,o){const s=n+Bi,l=kn(),f=Yc(l,s);return z4(l,s)?N7(l,bs(),i,f.transform,o,f):f.transform(o)}function j7(n,i,o,s){const l=n+Bi,f=kn(),y=Yc(f,l);return z4(f,l)?k7(f,bs(),i,y.transform,o,s,y):y.transform(o,s)}function U7(n,i,o,s,l){const f=n+Bi,y=kn(),O=Yc(y,f);return z4(y,f)?V7(y,bs(),i,O.transform,o,s,l,O):O.transform(o,s,l)}function G7(n,i,o,s,l,f){const y=n+Bi,O=kn(),K=Yc(O,y);return z4(O,y)?L7(O,bs(),i,K.transform,o,s,l,f,K):K.transform(o,s,l,f)}function z4(n,i){return n[di].data[i].pure}function Y7(n,i){return W0(n,i)}class c_{constructor(i){this.full=i;const o=i.split(".");this.major=o[0],this.minor=o[1],this.patch=o.slice(2).join(".")}}let l_=(()=>{class n{log(o){console.log(o)}warn(o){console.warn(o)}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const f_=new Ui(""),m_=new Ui("");let um,Lz=(()=>{class n{constructor(o,s,l){this._ngZone=o,this.registry=s,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,um||(function Bz(n){um=n}(l),l.addToWindow(s)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{qr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(o)||(clearTimeout(s.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,s,l){let f=-1;s&&s>0&&(f=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==f),o()},s)),this._callbacks.push({doneCb:o,timeoutId:f,updateCb:l})}whenStable(o,s,l){if(l&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(o,s,l),this._runCallbacksIfReady()}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,s,l){return[]}static#e=this.\u0275fac=function(s){return new(s||n)(Yi(qr),Yi(g_),Yi(m_))};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac})}return n})(),g_=(()=>{class n{constructor(){this._applications=new Map}registerApplication(o,s){this._applications.set(o,s)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,s=!0){return um?.findTestabilityInTree(this,o,s)??null}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function dm(n){return!!n&&"function"==typeof n.then}function v_(n){return!!n&&"function"==typeof n.subscribe}const __=new Ui("");let hm=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((o,s)=>{this.resolve=o,this.reject=s}),this.appInits=Qn(__,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const o=[];for(const l of this.appInits){const f=l();if(dm(f))o.push(f);else if(v_(f)){const y=new Promise((O,K)=>{f.subscribe({complete:O,error:K})});o.push(y)}}const s=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{s()}).catch(l=>{this.reject(l)}),0===o.length&&s(),this.initialized=!0}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const xf=new Ui("");function b_(n,i){return Array.isArray(i)?i.reduce(b_,n):{...n,...i}}let hu=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Qn(au),this.afterRenderEffectManager=Qn(ef),this.zonelessEnabled=Qn(s4),this.externalTestViews=new Set,this.beforeRender=new Mt.B,this.afterTick=new Mt.B,this.componentTypes=[],this.components=[],this.isStable=Qn(qt).hasPendingTasks.pipe((0,wt.T)(o=>!o)),this._injector=Qn(Ls)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,s){const l=o instanceof dg;if(!this._injector.get(hm).done)throw!l&&Ta(o),new Yn(405,!1);let y;y=l?o:this._injector.get(a4).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const O=function $z(n){return n.isBoundToModule}(y)?void 0:this._injector.get(Nh),xe=y.create(rs.NULL,[],s||y.selector,O),We=xe.location.nativeElement,Ot=xe.injector.get(f_,null);return Ot?.registerApplication(We),xe.onDestroy(()=>{this.detachView(xe.hostView),Pf(this.components,xe),Ot?.unregisterApplication(We)}),this._loadComponent(xe),xe}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new Yn(101,!1);const s=j(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,j(s),this.afterTick.next()}}detectChangesInAttachedViews(o){let s=null;this._injector.destroyed||(s=this._injector.get(Y3,null,{optional:!0}));let l=0;const f=this.afterRenderEffectManager;for(;l<10;){const y=0===l;if(o||!y){this.beforeRender.next(y);for(let{_lView:O,notifyErrorHandler:K}of this._views)jz(O,K,y,this.zonelessEnabled)}else s?.begin?.(),s?.end?.();if(l++,f.executeInternalCallbacks(),!this.allViews.some(({_lView:O})=>ta(O))&&(f.execute(),!this.allViews.some(({_lView:O})=>ta(O))))break}}attachView(o){const s=o;this._views.push(s),s.attachToAppRef(this)}detachView(o){const s=o;Pf(this._views,s),s.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const s=this._injector.get(xf,[]);[...this._bootstrapListeners,...s].forEach(l=>l(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>Pf(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Yn(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Pf(n,i){const o=n.indexOf(i);o>-1&&n.splice(o,1)}function jz(n,i,o,s){(o||ta(n))&&Y0(n,i,o&&!s?0:1)}class Uz{constructor(i,o){this.ngModuleFactory=i,this.componentFactories=o}}let Gz=(()=>{class n{compileModuleSync(o){return new d6(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const s=this.compileModuleSync(o),f=nc(Cr(o).declarations).reduce((y,O)=>{const K=oo(O);return K&&y.push(new u4(K)),y},[]);return new Uz(s,f)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Kz=(()=>{class n{constructor(){this.zone=Qn(qr),this.changeDetectionScheduler=Qn(x2),this.applicationRef=Qn(hu)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function pm({ngZoneFactory:n,ignoreChangesOutsideZone:i}){return n??=()=>new qr(fm()),[{provide:qr,useFactory:n},{provide:dr,multi:!0,useFactory:()=>{const o=Qn(Kz,{optional:!0});return()=>o.initialize()}},{provide:dr,multi:!0,useFactory:()=>{const o=Qn(Jz);return()=>{o.initialize()}}},{provide:au,useFactory:Qz},!0===i?{provide:lg,useValue:!0}:[]]}function Qz(){const n=Qn(qr),i=Qn(Ra);return o=>n.runOutsideAngular(()=>i.handleError(o))}function fm(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}let Jz=(()=>{class n{constructor(){this.subscription=new Ut.yU,this.initialized=!1,this.zone=Qn(qr),this.pendingTasks=Qn(qt)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{qr.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{qr.assertInAngularZone(),o??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),S4=(()=>{class n{constructor(){this.appRef=Qn(hu),this.taskService=Qn(qt),this.ngZone=Qn(qr),this.zonelessEnabled=Qn(s4),this.disableScheduling=Qn(lg,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Ut.yU,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Z0||!this.zoneIsDefined)}notify(o){if(!this.zonelessEnabled&&5===o)return;switch(o){case 3:case 2:case 0:case 4:case 5:case 1:this.shouldRefreshViews=!0}if(!this.shouldScheduleTick())return;const s=this.useMicrotaskScheduler?mg:fg;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=s(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=s(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&qr.isInAngularZone())}tick(o){if(this.runningTick||this.appRef.destroyed)return;const s=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(o)},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(s),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,mg(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(s)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const o=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(o)}}static#e=this.\u0275fac=function(s){return new(s||n)};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Af=new Ui("",{providedIn:"root",factory:()=>Qn(Af,pt.Optional|pt.SkipSelf)||function qz(){return typeof $localize<"u"&&$localize.locale||q2}()}),Zz=new Ui("",{providedIn:"root",factory:()=>"USD"}),gm=new Ui("");let D_=(()=>{class n{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,s){const l=function dC(n="zone.js",i){return"noop"===n?new Z0:"zone.js"===n?new qr(i):n}(s?.ngZone,fm({eventCoalescing:s?.ngZoneEventCoalescing,runCoalescing:s?.ngZoneRunCoalescing}));return l.run(()=>{const f=s?.ignoreChangesOutsideZone,y=function ob(n,i,o){return new u6(n,i,o)}(o.moduleType,this.injector,[...pm({ngZoneFactory:()=>l,ignoreChangesOutsideZone:f}),{provide:x2,useExisting:S4}]),O=y.injector.get(Ra,null);return l.runOutsideAngular(()=>{const K=l.onError.subscribe({next:xe=>{O.handleError(xe)}});y.onDestroy(()=>{Pf(this._modules,y),K.unsubscribe()})}),function C_(n,i,o){try{const s=o();return dm(s)?s.catch(l=>{throw i.runOutsideAngular(()=>n.handleError(l)),l}):s}catch(s){throw i.runOutsideAngular(()=>n.handleError(s)),s}}(O,l,()=>{const K=y.injector.get(hm);return K.runInitializers(),K.donePromise.then(()=>(function v5(n){"string"==typeof n&&(g5=n.toLowerCase().replace(/_/g,"-"))}(y.injector.get(Af,q2)||q2),this._moduleDoBootstrap(y),y))})})}bootstrapModule(o,s=[]){const l=b_({},s);return function Wz(n,i,o){const s=new d6(o);return Promise.resolve(s)}(0,0,o).then(f=>this.bootstrapModuleFactory(f,l))}_moduleDoBootstrap(o){const s=o.injector.get(hu);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(l=>s.bootstrap(l));else{if(!o.instance.ngDoBootstrap)throw new Yn(-403,!1);o.instance.ngDoBootstrap(s)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Yn(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const o=this._injector.get(gm,null);o&&(o.forEach(s=>s()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(s){return new(s||n)(Yi(rs))};static#t=this.\u0275prov=Io({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})(),eh=null;const S_=new Ui("");function O_(n,i,o=[]){const s=`Platform: ${i}`,l=new Ui(s);return(f=[])=>{let y=vm();if(!y||y.injector.get(S_,!1)){const O=[...o,...f,{provide:l,useValue:!0}];n?n(O):function tM(n){if(eh&&!eh.get(S_,!1))throw new Yn(400,!1);(function y_(){!function Tt(n){je=n}(()=>{throw new Yn(600,!1)})})(),eh=n;const i=n.get(D_);(function I_(n){n.get(pp,null)?.forEach(o=>o())})(n)}(function w_(n=[],i){return rs.create({name:i,providers:[{provide:Al,useValue:"platform"},{provide:gm,useValue:new Set([()=>eh=null])},...n]})}(O,s))}return function nM(n){const i=vm();if(!i)throw new Yn(401,!1);return i}()}}function vm(){return eh?.get(D_)??null}function oM(){return!1}function rM(){}let P_=(()=>{class n{static#e=this.__NG_ELEMENT_ID__=sM}return n})();function sM(n){return function aM(n,i,o){if(Qa(n)&&!o){const s=$s(n.index,i);return new Jp(s,s)}return 175&n.type?new Jp(i[hr],i):null}(Uo(),kn(),!(16&~n))}class N_{constructor(){}supports(i){return cf(i)}create(i){return new hM(i)}}const dM=(n,i)=>i;class hM{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||dM}forEachItem(i){let o;for(o=this._itHead;null!==o;o=o._next)i(o)}forEachOperation(i){let o=this._itHead,s=this._removalsHead,l=0,f=null;for(;o||s;){const y=!s||o&&o.currentIndex{y=this._trackByFn(l,O),null!==o&&Object.is(o.trackById,y)?(s&&(o=this._verifyReinsertion(o,O,y,l)),Object.is(o.item,O)||this._addIdentityChange(o,O)):(o=this._mismatch(o,O,y,l),s=!0),o=o._next,l++}),this.length=l;return this._truncate(o),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,o,s,l){let f;return null===i?f=this._itTail:(f=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._reinsertAfter(i,f,l)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(s,l))?(Object.is(i.item,o)||this._addIdentityChange(i,o),this._moveAfter(i,f,l)):i=this._addAfter(new pM(o,s),f,l),i}_verifyReinsertion(i,o,s,l){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null);return null!==f?i=this._reinsertAfter(f,i._prev,l):i.currentIndex!=l&&(i.currentIndex=l,this._addToMoves(i,l)),i}_truncate(i){for(;null!==i;){const o=i._next;this._addToRemovals(this._unlink(i)),i=o}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,o,s){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const l=i._prevRemoved,f=i._nextRemoved;return null===l?this._removalsHead=f:l._nextRemoved=f,null===f?this._removalsTail=l:f._prevRemoved=l,this._insertAfter(i,o,s),this._addToMoves(i,s),i}_moveAfter(i,o,s){return this._unlink(i),this._insertAfter(i,o,s),this._addToMoves(i,s),i}_addAfter(i,o,s){return this._insertAfter(i,o,s),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,o,s){const l=null===o?this._itHead:o._next;return i._next=l,i._prev=o,null===l?this._itTail=i:l._prev=i,null===o?this._itHead=i:o._next=i,null===this._linkedRecords&&(this._linkedRecords=new k_),this._linkedRecords.put(i),i.currentIndex=s,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const o=i._prev,s=i._next;return null===o?this._itHead=s:o._next=s,null===s?this._itTail=o:s._prev=o,i}_addToMoves(i,o){return i.previousIndex===o||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new k_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,o){return i.item=o,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class pM{constructor(i,o){this.item=i,this.trackById=o,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class fM{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,o){let s;for(s=this._head;null!==s;s=s._nextDup)if((null===o||o<=s.currentIndex)&&Object.is(s.trackById,i))return s;return null}remove(i){const o=i._prevDup,s=i._nextDup;return null===o?this._head=s:o._nextDup=s,null===s?this._tail=o:s._prevDup=o,null===this._head}}class k_{constructor(){this.map=new Map}put(i){const o=i.trackById;let s=this.map.get(o);s||(s=new fM,this.map.set(o,s)),s.add(i)}get(i,o){const l=this.map.get(i);return l?l.get(i,o):null}remove(i){const o=i.trackById;return this.map.get(o).remove(i)&&this.map.delete(o),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function V_(n,i,o){const s=n.previousIndex;if(null===s)return s;let l=0;return o&&s{if(o&&o.key===l)this._maybeAddToChanges(o,s),this._appendAfter=o,o=o._next;else{const f=this._getOrCreateRecordForKey(l,s);o=this._insertBeforeOrAppend(o,f)}}),o){o._prev&&(o._prev._next=null),this._removalsHead=o;for(let s=o;null!==s;s=s._nextRemoved)s===this._mapHead&&(this._mapHead=null),this._records.delete(s.key),s._nextRemoved=s._next,s.previousValue=s.currentValue,s.currentValue=null,s._prev=null,s._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,o){if(i){const s=i._prev;return o._next=i,o._prev=s,i._prev=o,s&&(s._next=o),i===this._mapHead&&(this._mapHead=o),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=o,o._prev=this._appendAfter):this._mapHead=o,this._appendAfter=o,null}_getOrCreateRecordForKey(i,o){if(this._records.has(i)){const l=this._records.get(i);this._maybeAddToChanges(l,o);const f=l._prev,y=l._next;return f&&(f._next=y),y&&(y._prev=f),l._next=null,l._prev=null,l}const s=new gM(i);return this._records.set(i,s),s.currentValue=o,this._addToAdditions(s),s}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,o){Object.is(o,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=o,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,o){i instanceof Map?i.forEach(o):Object.keys(i).forEach(s=>o(i[s],s))}}class gM{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function B_(){return new Tm([new N_])}let Tm=(()=>{class n{static#e=this.\u0275prov=Io({token:n,providedIn:"root",factory:B_});constructor(o){this.factories=o}static create(o,s){if(null!=s){const l=s.factories.slice();o=o.concat(l)}return new n(o)}static extend(o){return{provide:n,useFactory:s=>n.create(o,s||B_()),deps:[[n,new ts,new zr]]}}find(o){const s=this.factories.find(l=>l.supports(o));if(null!=s)return s;throw new Yn(901,!1)}}return n})();function $_(){return new Em([new L_])}let Em=(()=>{class n{static#e=this.\u0275prov=Io({token:n,providedIn:"root",factory:$_});constructor(o){this.factories=o}static create(o,s){if(s){const l=s.factories.slice();o=o.concat(l)}return new n(o)}static extend(o){return{provide:n,useFactory:s=>n.create(o,s||$_()),deps:[[n,new ts,new zr]]}}find(o){const s=this.factories.find(l=>l.supports(o));if(s)return s;throw new Yn(901,!1)}}return n})();const yM=O_(null,"core",[]);let CM=(()=>{class n{constructor(o){}static#e=this.\u0275fac=function(s){return new(s||n)(Yi(hu))};static#t=this.\u0275mod=Ji({type:n});static#n=this.\u0275inj=ls({})}return n})();const o9=new Ui("");function tD(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function nD(n,i=NaN){return isNaN(parseFloat(n))||isNaN(Number(n))?i:Number(n)}function oD(n,i){oc("NgSignals");const o=function ge(n){const i=Object.create(X);i.computation=n;const o=()=>{if(Q(i),w(i),i.value===A)throw i.error;return i.value};return o[z]=i,o}(n);return i?.equal&&(o[z].equal=i.equal),o}function rD(n){const i=j(null);try{return n()}finally{j(i)}}const sD=new Ui("",{providedIn:"root",factory:()=>Qn(aD)});let aD=(()=>{class n{static#e=this.\u0275prov=Io({token:n,providedIn:"root",factory:()=>new cD})}return n})();class cD{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Qn(qt),this.taskId=null}scheduleEffect(i){if(this.enqueue(i),null===this.taskId){const o=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(o),this.taskId=null})}}enqueue(i){const o=i.creationZone;this.queues.has(o)||this.queues.set(o,new Set);const s=this.queues.get(o);s.has(i)||(this.queuedEffectCount++,s.add(i))}flush(){for(;this.queuedEffectCount>0;)for(const[i,o]of this.queues)null===i?this.flushQueue(o):i.run(()=>this.flushQueue(o))}flushQueue(i){for(const o of i)i.delete(o),this.queuedEffectCount--,o.run()}}class lD{constructor(i,o,s,l,f,y){this.scheduler=i,this.effectFn=o,this.creationZone=s,this.injector=f,this.watcher=function en(n,i,o){const s=Object.create(Tn);o&&(s.consumerAllowSignalWrites=!0),s.fn=n,s.schedule=i;const l=K=>{s.cleanupFn=K};return s.ref={notify:()=>oe(s),run:()=>{if(null===s.fn)return;if(function $(){return m}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(s.dirty=!1,s.hasRun&&!Ie(s))return;s.hasRun=!0;const K=ee(s);try{s.cleanupFn(),s.cleanupFn=Xt,s.fn(l)}finally{Ee(s,K)}},cleanup:()=>s.cleanupFn(),destroy:()=>function y(K){(function f(K){return null===K.fn&&null===K.schedule})(K)||(ce(K),K.cleanupFn(),K.fn=null,K.schedule=null,K.cleanupFn=Xt)}(s),[z]:s},s.ref}(O=>this.runEffect(O),()=>this.schedule(),y),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(i){try{this.effectFn(i)}catch(o){this.injector.get(Ra,null,{optional:!0})?.handleError(o)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function f9(n,i){oc("NgSignals"),!i?.injector&&$c();const o=i?.injector??Qn(rs),s=!0!==i?.manualCleanup?o.get(E):null,l=new lD(o.get(sD),n,typeof Zone>"u"?null:Zone.current,s,o,i?.allowSignalWrites??!1),f=o.get(P_,null,{optional:!0});return f&&8&f._lView[Wi]?(f._lView[ll]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function uD(n,i){const o=oo(n),s=i.elementInjector||al();return new u4(o).create(s,i.projectableNodes,i.hostElement,i.environmentInjector)}function dD(n){const i=oo(n);if(!i)return null;const o=new u4(i);return{get selector(){return o.selector},get type(){return o.componentType},get inputs(){return o.inputs},get outputs(){return o.outputs},get ngContentSelectors(){return o.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}},9417:($t,De,a)=>{a.d(De,{BC:()=>Qt,EL:()=>le,J3:()=>Ce,JD:()=>ai,MJ:()=>Ki,X1:()=>ys,YN:()=>Ho,YS:()=>vr,Yp:()=>pn,Zm:()=>w,cV:()=>gn,cb:()=>Xe,gE:()=>V,j4:()=>ln,k0:()=>Pe,kq:()=>k,l_:()=>At,mP:()=>N,me:()=>x,qT:()=>Hn,vO:()=>Mt,vS:()=>uo});var t=a(3953),r=a(177),m=a(2806),e=a(7468),z=a(1413),j=a(6354);let R=(()=>{class Be{constructor(be,Ct){this._renderer=be,this._elementRef=Ct,this.onChange=sn=>{},this.onTouched=()=>{}}setProperty(be,Ct){this._renderer.setProperty(this._elementRef.nativeElement,be,Ct)}registerOnTouched(be){this.onTouched=be}registerOnChange(be){this.onChange=be}setDisabledState(be){this.setProperty("disabled",be)}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Be})}return Be})(),$=(()=>{class Be extends R{static#e=this.\u0275fac=(()=>{let be;return function(sn){return(be||(be=t.xGo(Be)))(sn||Be)}})();static#t=this.\u0275dir=t.FsC({type:Be,features:[t.Vt3]})}return Be})();const k=new t.nKC(""),I={provide:k,useExisting:(0,t.Rfq)(()=>w),multi:!0};let w=(()=>{class Be extends ${writeValue(be){this.setProperty("checked",be)}static#e=this.\u0275fac=(()=>{let be;return function(sn){return(be||(be=t.xGo(Be)))(sn||Be)}})();static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Ct,sn){1&Ct&&t.bIt("change",function(ho){return sn.onChange(ho.target.checked)})("blur",function(){return sn.onTouched()})},features:[t.Jv_([I]),t.Vt3]})}return Be})();const P={provide:k,useExisting:(0,t.Rfq)(()=>x),multi:!0},N=new t.nKC("");let x=(()=>{class Be extends R{constructor(be,Ct,sn){super(be,Ct),this._compositionMode=sn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Q(){const Be=(0,r.QT)()?(0,r.QT)().getUserAgent():"";return/android (\d+)/.test(Be.toLowerCase())}())}writeValue(be){this.setProperty("value",be??"")}_handleInput(be){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(be)}_compositionStart(){this._composing=!0}_compositionEnd(be){this._composing=!1,this._compositionMode&&this.onChange(be)}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(N,8))};static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Ct,sn){1&Ct&&t.bIt("input",function(ho){return sn._handleInput(ho.target.value)})("blur",function(){return sn.onTouched()})("compositionstart",function(){return sn._compositionStart()})("compositionend",function(ho){return sn._compositionEnd(ho.target.value)})},features:[t.Jv_([P]),t.Vt3]})}return Be})();function oe(Be){return null==Be||("string"==typeof Be||Array.isArray(Be))&&0===Be.length}function ee(Be){return null!=Be&&"number"==typeof Be.length}const Ee=new t.nKC(""),Ie=new t.nKC(""),ce=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Pe{static min(Ke){return function ve(Be){return Ke=>{if(oe(Ke.value)||oe(Be))return null;const be=parseFloat(Ke.value);return!isNaN(be)&&be{if(oe(Ke.value)||oe(Be))return null;const be=parseFloat(Ke.value);return!isNaN(be)&&be>Be?{max:{max:Be,actual:Ke.value}}:null}}(Ke)}static required(Ke){return U(Ke)}static requiredTrue(Ke){return function M(Be){return!0===Be.value?null:{required:!0}}(Ke)}static email(Ke){return function te(Be){return oe(Be.value)||ce.test(Be.value)?null:{email:!0}}(Ke)}static minLength(Ke){return function ge(Be){return Ke=>oe(Ke.value)||!ee(Ke.value)?null:Ke.value.lengthee(Ke.value)&&Ke.value.length>Be?{maxlength:{requiredLength:Be,actualLength:Ke.value.length}}:null}(Ke)}static pattern(Ke){return function D(Be){if(!Be)return A;let Ke,be;return"string"==typeof Be?(be="","^"!==Be.charAt(0)&&(be+="^"),be+=Be,"$"!==Be.charAt(Be.length-1)&&(be+="$"),Ke=new RegExp(be)):(be=Be.toString(),Ke=Be),Ct=>{if(oe(Ct.value))return null;const sn=Ct.value;return Ke.test(sn)?null:{pattern:{requiredPattern:be,actualValue:sn}}}}(Ke)}static nullValidator(Ke){return null}static compose(Ke){return He(Ke)}static composeAsync(Ke){return Lt(Ke)}}function U(Be){return oe(Be.value)?{required:!0}:null}function A(Be){return null}function X(Be){return null!=Be}function se(Be){return(0,t.jNT)(Be)?(0,m.H)(Be):Be}function je(Be){let Ke={};return Be.forEach(be=>{Ke=null!=be?{...Ke,...be}:Ke}),0===Object.keys(Ke).length?null:Ke}function Bt(Be,Ke){return Ke.map(be=>be(Be))}function Vt(Be){return Be.map(Ke=>function Tt(Be){return!Be.validate}(Ke)?Ke:be=>Ke.validate(be))}function He(Be){if(!Be)return null;const Ke=Be.filter(X);return 0==Ke.length?null:function(be){return je(Bt(be,Ke))}}function xt(Be){return null!=Be?He(Vt(Be)):null}function Lt(Be){if(!Be)return null;const Ke=Be.filter(X);return 0==Ke.length?null:function(be){const Ct=Bt(be,Ke).map(se);return(0,e.p)(Ct).pipe((0,j.T)(je))}}function ft(Be){return null!=Be?Lt(Vt(Be)):null}function St(Be,Ke){return null===Be?[Ke]:Array.isArray(Be)?[...Be,Ke]:[Be,Ke]}function kt(Be){return Be._rawValidators}function It(Be){return Be._rawAsyncValidators}function rn(Be){return Be?Array.isArray(Be)?Be:[Be]:[]}function en(Be,Ke){return Array.isArray(Be)?Be.includes(Ke):Be===Ke}function Xt(Be,Ke){const be=rn(Ke);return rn(Be).forEach(sn=>{en(be,sn)||be.push(sn)}),be}function Tn(Be,Ke){return rn(Ke).filter(be=>!en(Be,be))}class Jn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Ke){this._rawValidators=Ke||[],this._composedValidatorFn=xt(this._rawValidators)}_setAsyncValidators(Ke){this._rawAsyncValidators=Ke||[],this._composedAsyncValidatorFn=ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ke){this._onDestroyCallbacks.push(Ke)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ke=>Ke()),this._onDestroyCallbacks=[]}reset(Ke=void 0){this.control&&this.control.reset(Ke)}hasError(Ke,be){return!!this.control&&this.control.hasError(Ke,be)}getError(Ke,be){return this.control?this.control.getError(Ke,be):null}}class Dn extends Jn{get formDirective(){return null}get path(){return null}}class Mt extends Jn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ut{constructor(Ke){this._cd=Ke}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Qt=(()=>{class Be extends Ut{constructor(be){super(be)}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(Mt,2))};static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ct,sn){2&Ct&&t.AVh("ng-untouched",sn.isUntouched)("ng-touched",sn.isTouched)("ng-pristine",sn.isPristine)("ng-dirty",sn.isDirty)("ng-valid",sn.isValid)("ng-invalid",sn.isInvalid)("ng-pending",sn.isPending)},features:[t.Vt3]})}return Be})(),Xe=(()=>{class Be extends Ut{constructor(be){super(be)}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(Dn,10))};static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ct,sn){2&Ct&&t.AVh("ng-untouched",sn.isUntouched)("ng-touched",sn.isTouched)("ng-pristine",sn.isPristine)("ng-dirty",sn.isDirty)("ng-valid",sn.isValid)("ng-invalid",sn.isInvalid)("ng-pending",sn.isPending)("ng-submitted",sn.isSubmitted)},features:[t.Vt3]})}return Be})();const Je="VALID",ae="INVALID",ie="PENDING",re="DISABLED";class et{}class _t extends et{constructor(Ke,be){super(),this.value=Ke,this.source=be}}class mt extends et{constructor(Ke,be){super(),this.pristine=Ke,this.source=be}}class Rt extends et{constructor(Ke,be){super(),this.touched=Ke,this.source=be}}class ct extends et{constructor(Ke,be){super(),this.status=Ke,this.source=be}}class Se extends et{constructor(Ke){super(),this.source=Ke}}class lt extends et{constructor(Ke){super(),this.source=Ke}}function de(Be){return(Ne(Be)?Be.validators:Be)||null}function zt(Be,Ke){return(Ne(Ke)?Ke.asyncValidators:Be)||null}function Ne(Be){return null!=Be&&!Array.isArray(Be)&&"object"==typeof Be}function Le(Be,Ke,be){const Ct=Be.controls;if(!(Ke?Object.keys(Ct):Ct).length)throw new t.wOt(1e3,"");if(!Ct[be])throw new t.wOt(1001,"")}function Y(Be,Ke,be){Be._forEachChild((Ct,sn)=>{if(void 0===be[sn])throw new t.wOt(1002,"")})}class le{constructor(Ke,be){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,t.EWP)(()=>this.statusReactive()),this.statusReactive=(0,t.vPA)(void 0),this._pristine=(0,t.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,t.vPA)(!0),this._touched=(0,t.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,t.vPA)(!1),this._events=new z.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(Ke),this._assignAsyncValidators(be)}get validator(){return this._composedValidatorFn}set validator(Ke){this._rawValidators=this._composedValidatorFn=Ke}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ke){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ke}get parent(){return this._parent}get status(){return(0,t.O8t)(this.statusReactive)}set status(Ke){(0,t.O8t)(()=>this.statusReactive.set(Ke))}get valid(){return this.status===Je}get invalid(){return this.status===ae}get pending(){return this.status==ie}get disabled(){return this.status===re}get enabled(){return this.status!==re}get pristine(){return(0,t.O8t)(this.pristineReactive)}set pristine(Ke){(0,t.O8t)(()=>this.pristineReactive.set(Ke))}get dirty(){return!this.pristine}get touched(){return(0,t.O8t)(this.touchedReactive)}set touched(Ke){(0,t.O8t)(()=>this.touchedReactive.set(Ke))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ke){this._assignValidators(Ke)}setAsyncValidators(Ke){this._assignAsyncValidators(Ke)}addValidators(Ke){this.setValidators(Xt(Ke,this._rawValidators))}addAsyncValidators(Ke){this.setAsyncValidators(Xt(Ke,this._rawAsyncValidators))}removeValidators(Ke){this.setValidators(Tn(Ke,this._rawValidators))}removeAsyncValidators(Ke){this.setAsyncValidators(Tn(Ke,this._rawAsyncValidators))}hasValidator(Ke){return en(this._rawValidators,Ke)}hasAsyncValidator(Ke){return en(this._rawAsyncValidators,Ke)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ke={}){const be=!1===this.touched;this.touched=!0;const Ct=Ke.sourceControl??this;this._parent&&!Ke.onlySelf&&this._parent.markAsTouched({...Ke,sourceControl:Ct}),be&&!1!==Ke.emitEvent&&this._events.next(new Rt(!0,Ct))}markAllAsTouched(Ke={}){this.markAsTouched({onlySelf:!0,emitEvent:Ke.emitEvent,sourceControl:this}),this._forEachChild(be=>be.markAllAsTouched(Ke))}markAsUntouched(Ke={}){const be=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Ct=Ke.sourceControl??this;this._forEachChild(sn=>{sn.markAsUntouched({onlySelf:!0,emitEvent:Ke.emitEvent,sourceControl:Ct})}),this._parent&&!Ke.onlySelf&&this._parent._updateTouched(Ke,Ct),be&&!1!==Ke.emitEvent&&this._events.next(new Rt(!1,Ct))}markAsDirty(Ke={}){const be=!0===this.pristine;this.pristine=!1;const Ct=Ke.sourceControl??this;this._parent&&!Ke.onlySelf&&this._parent.markAsDirty({...Ke,sourceControl:Ct}),be&&!1!==Ke.emitEvent&&this._events.next(new mt(!1,Ct))}markAsPristine(Ke={}){const be=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Ct=Ke.sourceControl??this;this._forEachChild(sn=>{sn.markAsPristine({onlySelf:!0,emitEvent:Ke.emitEvent})}),this._parent&&!Ke.onlySelf&&this._parent._updatePristine(Ke,Ct),be&&!1!==Ke.emitEvent&&this._events.next(new mt(!0,Ct))}markAsPending(Ke={}){this.status=ie;const be=Ke.sourceControl??this;!1!==Ke.emitEvent&&(this._events.next(new ct(this.status,be)),this.statusChanges.emit(this.status)),this._parent&&!Ke.onlySelf&&this._parent.markAsPending({...Ke,sourceControl:be})}disable(Ke={}){const be=this._parentMarkedDirty(Ke.onlySelf);this.status=re,this.errors=null,this._forEachChild(sn=>{sn.disable({...Ke,onlySelf:!0})}),this._updateValue();const Ct=Ke.sourceControl??this;!1!==Ke.emitEvent&&(this._events.next(new _t(this.value,Ct)),this._events.next(new ct(this.status,Ct)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Ke,skipPristineCheck:be},this),this._onDisabledChange.forEach(sn=>sn(!0))}enable(Ke={}){const be=this._parentMarkedDirty(Ke.onlySelf);this.status=Je,this._forEachChild(Ct=>{Ct.enable({...Ke,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ke.emitEvent}),this._updateAncestors({...Ke,skipPristineCheck:be},this),this._onDisabledChange.forEach(Ct=>Ct(!1))}_updateAncestors(Ke,be){this._parent&&!Ke.onlySelf&&(this._parent.updateValueAndValidity(Ke),Ke.skipPristineCheck||this._parent._updatePristine({},be),this._parent._updateTouched({},be))}setParent(Ke){this._parent=Ke}getRawValue(){return this.value}updateValueAndValidity(Ke={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Ct=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Je||this.status===ie)&&this._runAsyncValidator(Ct,Ke.emitEvent)}const be=Ke.sourceControl??this;!1!==Ke.emitEvent&&(this._events.next(new _t(this.value,be)),this._events.next(new ct(this.status,be)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ke.onlySelf&&this._parent.updateValueAndValidity({...Ke,sourceControl:be})}_updateTreeValidity(Ke={emitEvent:!0}){this._forEachChild(be=>be._updateTreeValidity(Ke)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ke.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?re:Je}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ke,be){if(this.asyncValidator){this.status=ie,this._hasOwnPendingAsyncValidator={emitEvent:!1!==be};const Ct=se(this.asyncValidator(this));this._asyncValidationSubscription=Ct.subscribe(sn=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(sn,{emitEvent:be,shouldHaveEmitted:Ke})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const Ke=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,Ke}return!1}setErrors(Ke,be={}){this.errors=Ke,this._updateControlsErrors(!1!==be.emitEvent,this,be.shouldHaveEmitted)}get(Ke){let be=Ke;return null==be||(Array.isArray(be)||(be=be.split(".")),0===be.length)?null:be.reduce((Ct,sn)=>Ct&&Ct._find(sn),this)}getError(Ke,be){const Ct=be?this.get(be):this;return Ct&&Ct.errors?Ct.errors[Ke]:null}hasError(Ke,be){return!!this.getError(Ke,be)}get root(){let Ke=this;for(;Ke._parent;)Ke=Ke._parent;return Ke}_updateControlsErrors(Ke,be,Ct){this.status=this._calculateStatus(),Ke&&this.statusChanges.emit(this.status),(Ke||Ct)&&this._events.next(new ct(this.status,be)),this._parent&&this._parent._updateControlsErrors(Ke,be,Ct)}_initObservables(){this.valueChanges=new t.bkB,this.statusChanges=new t.bkB}_calculateStatus(){return this._allControlsDisabled()?re:this.errors?ae:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ie)?ie:this._anyControlsHaveStatus(ae)?ae:Je}_anyControlsHaveStatus(Ke){return this._anyControls(be=>be.status===Ke)}_anyControlsDirty(){return this._anyControls(Ke=>Ke.dirty)}_anyControlsTouched(){return this._anyControls(Ke=>Ke.touched)}_updatePristine(Ke,be){const Ct=!this._anyControlsDirty(),sn=this.pristine!==Ct;this.pristine=Ct,this._parent&&!Ke.onlySelf&&this._parent._updatePristine(Ke,be),sn&&this._events.next(new mt(this.pristine,be))}_updateTouched(Ke={},be){this.touched=this._anyControlsTouched(),this._events.next(new Rt(this.touched,be)),this._parent&&!Ke.onlySelf&&this._parent._updateTouched(Ke,be)}_registerOnCollectionChange(Ke){this._onCollectionChange=Ke}_setUpdateStrategy(Ke){Ne(Ke)&&null!=Ke.updateOn&&(this._updateOn=Ke.updateOn)}_parentMarkedDirty(Ke){return!Ke&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Ke){return null}_assignValidators(Ke){this._rawValidators=Array.isArray(Ke)?Ke.slice():Ke,this._composedValidatorFn=function Oe(Be){return Array.isArray(Be)?xt(Be):Be||null}(this._rawValidators)}_assignAsyncValidators(Ke){this._rawAsyncValidators=Array.isArray(Ke)?Ke.slice():Ke,this._composedAsyncValidatorFn=function Ze(Be){return Array.isArray(Be)?ft(Be):Be||null}(this._rawAsyncValidators)}}class V extends le{constructor(Ke,be,Ct){super(de(be),zt(Ct,be)),this.controls=Ke,this._initObservables(),this._setUpdateStrategy(be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ke,be){return this.controls[Ke]?this.controls[Ke]:(this.controls[Ke]=be,be.setParent(this),be._registerOnCollectionChange(this._onCollectionChange),be)}addControl(Ke,be,Ct={}){this.registerControl(Ke,be),this.updateValueAndValidity({emitEvent:Ct.emitEvent}),this._onCollectionChange()}removeControl(Ke,be={}){this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(()=>{}),delete this.controls[Ke],this.updateValueAndValidity({emitEvent:be.emitEvent}),this._onCollectionChange()}setControl(Ke,be,Ct={}){this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(()=>{}),delete this.controls[Ke],be&&this.registerControl(Ke,be),this.updateValueAndValidity({emitEvent:Ct.emitEvent}),this._onCollectionChange()}contains(Ke){return this.controls.hasOwnProperty(Ke)&&this.controls[Ke].enabled}setValue(Ke,be={}){Y(this,0,Ke),Object.keys(Ke).forEach(Ct=>{Le(this,!0,Ct),this.controls[Ct].setValue(Ke[Ct],{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be)}patchValue(Ke,be={}){null!=Ke&&(Object.keys(Ke).forEach(Ct=>{const sn=this.controls[Ct];sn&&sn.patchValue(Ke[Ct],{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be))}reset(Ke={},be={}){this._forEachChild((Ct,sn)=>{Ct.reset(Ke?Ke[sn]:null,{onlySelf:!0,emitEvent:be.emitEvent})}),this._updatePristine(be,this),this._updateTouched(be,this),this.updateValueAndValidity(be)}getRawValue(){return this._reduceChildren({},(Ke,be,Ct)=>(Ke[Ct]=be.getRawValue(),Ke))}_syncPendingControls(){let Ke=this._reduceChildren(!1,(be,Ct)=>!!Ct._syncPendingControls()||be);return Ke&&this.updateValueAndValidity({onlySelf:!0}),Ke}_forEachChild(Ke){Object.keys(this.controls).forEach(be=>{const Ct=this.controls[be];Ct&&Ke(Ct,be)})}_setUpControls(){this._forEachChild(Ke=>{Ke.setParent(this),Ke._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ke){for(const[be,Ct]of Object.entries(this.controls))if(this.contains(be)&&Ke(Ct))return!0;return!1}_reduceValue(){return this._reduceChildren({},(be,Ct,sn)=>((Ct.enabled||this.disabled)&&(be[sn]=Ct.value),be))}_reduceChildren(Ke,be){let Ct=Ke;return this._forEachChild((sn,ji)=>{Ct=be(Ct,sn,ji)}),Ct}_allControlsDisabled(){for(const Ke of Object.keys(this.controls))if(this.controls[Ke].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Ke){return this.controls.hasOwnProperty(Ke)?this.controls[Ke]:null}}const Ce=V,it=new t.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>dt}),dt="always";function Ht(Be,Ke){return[...Ke.path,Be]}function dn(Be,Ke,be=dt){ni(Be,Ke),Ke.valueAccessor.writeValue(Be.value),(Be.disabled||"always"===be)&&Ke.valueAccessor.setDisabledState?.(Be.disabled),function Ni(Be,Ke){Ke.valueAccessor.registerOnChange(be=>{Be._pendingValue=be,Be._pendingChange=!0,Be._pendingDirty=!0,"change"===Be.updateOn&&lo(Be,Ke)})}(Be,Ke),function $i(Be,Ke){const be=(Ct,sn)=>{Ke.valueAccessor.writeValue(Ct),sn&&Ke.viewToModelUpdate(Ct)};Be.registerOnChange(be),Ke._registerOnDestroy(()=>{Be._unregisterOnChange(be)})}(Be,Ke),function Eo(Be,Ke){Ke.valueAccessor.registerOnTouched(()=>{Be._pendingTouched=!0,"blur"===Be.updateOn&&Be._pendingChange&&lo(Be,Ke),"submit"!==Be.updateOn&&Be.markAsTouched()})}(Be,Ke),function Cn(Be,Ke){if(Ke.valueAccessor.setDisabledState){const be=Ct=>{Ke.valueAccessor.setDisabledState(Ct)};Be.registerOnDisabledChange(be),Ke._registerOnDestroy(()=>{Be._unregisterOnDisabledChange(be)})}}(Be,Ke)}function wn(Be,Ke,be=!0){const Ct=()=>{};Ke.valueAccessor&&(Ke.valueAccessor.registerOnChange(Ct),Ke.valueAccessor.registerOnTouched(Ct)),ui(Be,Ke),Be&&(Ke._invokeOnDestroyCallbacks(),Be._registerOnCollectionChange(()=>{}))}function si(Be,Ke){Be.forEach(be=>{be.registerOnValidatorChange&&be.registerOnValidatorChange(Ke)})}function ni(Be,Ke){const be=kt(Be);null!==Ke.validator?Be.setValidators(St(be,Ke.validator)):"function"==typeof be&&Be.setValidators([be]);const Ct=It(Be);null!==Ke.asyncValidator?Be.setAsyncValidators(St(Ct,Ke.asyncValidator)):"function"==typeof Ct&&Be.setAsyncValidators([Ct]);const sn=()=>Be.updateValueAndValidity();si(Ke._rawValidators,sn),si(Ke._rawAsyncValidators,sn)}function ui(Be,Ke){let be=!1;if(null!==Be){if(null!==Ke.validator){const sn=kt(Be);if(Array.isArray(sn)&&sn.length>0){const ji=sn.filter(ho=>ho!==Ke.validator);ji.length!==sn.length&&(be=!0,Be.setValidators(ji))}}if(null!==Ke.asyncValidator){const sn=It(Be);if(Array.isArray(sn)&&sn.length>0){const ji=sn.filter(ho=>ho!==Ke.asyncValidator);ji.length!==sn.length&&(be=!0,Be.setAsyncValidators(ji))}}}const Ct=()=>{};return si(Ke._rawValidators,Ct),si(Ke._rawAsyncValidators,Ct),be}function lo(Be,Ke){Be._pendingDirty&&Be.markAsDirty(),Be.setValue(Be._pendingValue,{emitModelToViewChange:!1}),Ke.viewToModelUpdate(Be._pendingValue),Be._pendingChange=!1}function Ii(Be,Ke){ni(Be,Ke)}function En(Be,Ke){if(!Be.hasOwnProperty("model"))return!1;const be=Be.model;return!!be.isFirstChange()||!Object.is(Ke,be.currentValue)}function Pn(Be,Ke){Be._syncPendingControls(),Ke.forEach(be=>{const Ct=be.control;"submit"===Ct.updateOn&&Ct._pendingChange&&(be.viewToModelUpdate(Ct._pendingValue),Ct._pendingChange=!1)})}function Fn(Be,Ke){if(!Ke)return null;let be,Ct,sn;return Array.isArray(Ke),Ke.forEach(ji=>{ji.constructor===x?be=ji:function ii(Be){return Object.getPrototypeOf(Be.constructor)===$}(ji)?Ct=ji:sn=ji}),sn||Ct||be||null}const Hi={provide:Dn,useExisting:(0,t.Rfq)(()=>gn)},Mi=Promise.resolve();let gn=(()=>{class Be extends Dn{get submitted(){return(0,t.O8t)(this.submittedReactive)}constructor(be,Ct,sn){super(),this.callSetDisabledState=sn,this._submitted=(0,t.EWP)(()=>this.submittedReactive()),this.submittedReactive=(0,t.vPA)(!1),this._directives=new Set,this.ngSubmit=new t.bkB,this.form=new V({},xt(be),ft(Ct))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(be){Mi.then(()=>{const Ct=this._findContainer(be.path);be.control=Ct.registerControl(be.name,be.control),dn(be.control,be,this.callSetDisabledState),be.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(be)})}getControl(be){return this.form.get(be.path)}removeControl(be){Mi.then(()=>{const Ct=this._findContainer(be.path);Ct&&Ct.removeControl(be.name),this._directives.delete(be)})}addFormGroup(be){Mi.then(()=>{const Ct=this._findContainer(be.path),sn=new V({});Ii(sn,be),Ct.registerControl(be.name,sn),sn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(be){Mi.then(()=>{const Ct=this._findContainer(be.path);Ct&&Ct.removeControl(be.name)})}getFormGroup(be){return this.form.get(be.path)}updateModel(be,Ct){Mi.then(()=>{this.form.get(be.path).setValue(Ct)})}setValue(be){this.control.setValue(be)}onSubmit(be){return this.submittedReactive.set(!0),Pn(this.form,this._directives),this.ngSubmit.emit(be),"dialog"===be?.target?.method}onReset(){this.resetForm()}resetForm(be=void 0){this.form.reset(be),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(be){return be.pop(),be.length?this.form.get(be):this.form}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(Ee,10),t.rXU(Ie,10),t.rXU(it,8))};static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ct,sn){1&Ct&&t.bIt("submit",function(ho){return sn.onSubmit(ho)})("reset",function(){return sn.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([Hi]),t.Vt3]})}return Be})();function Si(Be,Ke){const be=Be.indexOf(Ke);be>-1&&Be.splice(be,1)}function Ei(Be){return"object"==typeof Be&&null!==Be&&2===Object.keys(Be).length&&"value"in Be&&"disabled"in Be}const Ki=class extends le{constructor(Ke=null,be,Ct){super(de(be),zt(Ct,be)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ke),this._setUpdateStrategy(be),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ne(be)&&(be.nonNullable||be.initialValueIsDefault)&&(this.defaultValue=Ei(Ke)?Ke.value:Ke)}setValue(Ke,be={}){this.value=this._pendingValue=Ke,this._onChange.length&&!1!==be.emitModelToViewChange&&this._onChange.forEach(Ct=>Ct(this.value,!1!==be.emitViewToModelChange)),this.updateValueAndValidity(be)}patchValue(Ke,be={}){this.setValue(Ke,be)}reset(Ke=this.defaultValue,be={}){this._applyFormState(Ke),this.markAsPristine(be),this.markAsUntouched(be),this.setValue(this.value,be),this._pendingChange=!1}_updateValue(){}_anyControls(Ke){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ke){this._onChange.push(Ke)}_unregisterOnChange(Ke){Si(this._onChange,Ke)}registerOnDisabledChange(Ke){this._onDisabledChange.push(Ke)}_unregisterOnDisabledChange(Ke){Si(this._onDisabledChange,Ke)}_forEachChild(Ke){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Ke){Ei(Ke)?(this.value=this._pendingValue=Ke.value,Ke.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ke}},Wo={provide:Mt,useExisting:(0,t.Rfq)(()=>uo)},Zr=Promise.resolve();let uo=(()=>{class Be extends Mt{constructor(be,Ct,sn,ji,ho,jo){super(),this._changeDetectorRef=ho,this.callSetDisabledState=jo,this.control=new Ki,this._registered=!1,this.name="",this.update=new t.bkB,this._parent=be,this._setValidators(Ct),this._setAsyncValidators(sn),this.valueAccessor=Fn(0,ji)}ngOnChanges(be){if(this._checkForErrors(),!this._registered||"name"in be){if(this._registered&&(this._checkName(),this.formDirective)){const Ct=be.name.previousValue;this.formDirective.removeControl({name:Ct,path:this._getPath(Ct)})}this._setUpControl()}"isDisabled"in be&&this._updateDisabled(be),En(be,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){dn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(be){Zr.then(()=>{this.control.setValue(be,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(be){const Ct=be.isDisabled.currentValue,sn=0!==Ct&&(0,t.L39)(Ct);Zr.then(()=>{sn&&!this.control.disabled?this.control.disable():!sn&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(be){return this._parent?Ht(be,this._parent):[be]}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(Dn,9),t.rXU(Ee,10),t.rXU(Ie,10),t.rXU(k,10),t.rXU(t.gRc,8),t.rXU(it,8))};static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t.Jv_([Wo]),t.Vt3,t.OA$]})}return Be})(),Hn=(()=>{class Be{static#e=this.\u0275fac=function(Ct){return new(Ct||Be)};static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Be})();const $e=new t.nKC(""),at={provide:Mt,useExisting:(0,t.Rfq)(()=>At)};let At=(()=>{class Be extends Mt{set isDisabled(be){}static#e=this._ngModelWarningSentOnce=!1;constructor(be,Ct,sn,ji,ho){super(),this._ngModelWarningConfig=ji,this.callSetDisabledState=ho,this.update=new t.bkB,this._ngModelWarningSent=!1,this._setValidators(be),this._setAsyncValidators(Ct),this.valueAccessor=Fn(0,sn)}ngOnChanges(be){if(this._isControlChanged(be)){const Ct=be.form.previousValue;Ct&&wn(Ct,this,!1),dn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}En(be,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&wn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}_isControlChanged(be){return be.hasOwnProperty("form")}static#t=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(Ee,10),t.rXU(Ie,10),t.rXU(k,10),t.rXU($e,8),t.rXU(it,8))};static#n=this.\u0275dir=t.FsC({type:Be,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t.Jv_([at]),t.Vt3,t.OA$]})}return Be})();const nn={provide:Dn,useExisting:(0,t.Rfq)(()=>ln)};let ln=(()=>{class Be extends Dn{get submitted(){return(0,t.O8t)(this._submittedReactive)}set submitted(be){this._submittedReactive.set(be)}constructor(be,Ct,sn){super(),this.callSetDisabledState=sn,this._submitted=(0,t.EWP)(()=>this._submittedReactive()),this._submittedReactive=(0,t.vPA)(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.bkB,this._setValidators(be),this._setAsyncValidators(Ct)}ngOnChanges(be){this._checkFormPresent(),be.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ui(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(be){const Ct=this.form.get(be.path);return dn(Ct,be,this.callSetDisabledState),Ct.updateValueAndValidity({emitEvent:!1}),this.directives.push(be),Ct}getControl(be){return this.form.get(be.path)}removeControl(be){wn(be.control||null,be,!1),function hi(Be,Ke){const be=Be.indexOf(Ke);be>-1&&Be.splice(be,1)}(this.directives,be)}addFormGroup(be){this._setUpFormContainer(be)}removeFormGroup(be){this._cleanUpFormContainer(be)}getFormGroup(be){return this.form.get(be.path)}addFormArray(be){this._setUpFormContainer(be)}removeFormArray(be){this._cleanUpFormContainer(be)}getFormArray(be){return this.form.get(be.path)}updateModel(be,Ct){this.form.get(be.path).setValue(Ct)}onSubmit(be){return this._submittedReactive.set(!0),Pn(this.form,this.directives),this.ngSubmit.emit(be),this.form._events.next(new Se(this.control)),"dialog"===be?.target?.method}onReset(){this.resetForm()}resetForm(be=void 0){this.form.reset(be),this._submittedReactive.set(!1),this.form._events.next(new lt(this.form))}_updateDomValue(){this.directives.forEach(be=>{const Ct=be.control,sn=this.form.get(be.path);Ct!==sn&&(wn(Ct||null,be),(Be=>Be instanceof Ki)(sn)&&(dn(sn,be,this.callSetDisabledState),be.control=sn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(be){const Ct=this.form.get(be.path);Ii(Ct,be),Ct.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(be){if(this.form){const Ct=this.form.get(be.path);Ct&&function Nr(Be,Ke){return ui(Be,Ke)}(Ct,be)&&Ct.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ni(this.form,this),this._oldForm&&ui(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(Ee,10),t.rXU(Ie,10),t.rXU(it,8))};static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["","formGroup",""]],hostBindings:function(Ct,sn){1&Ct&&t.bIt("submit",function(ho){return sn.onSubmit(ho)})("reset",function(){return sn.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t.Jv_([nn]),t.Vt3,t.OA$]})}return Be})();const oi={provide:Mt,useExisting:(0,t.Rfq)(()=>ai)};let ai=(()=>{class Be extends Mt{set isDisabled(be){}static#e=this._ngModelWarningSentOnce=!1;constructor(be,Ct,sn,ji,ho){super(),this._ngModelWarningConfig=ho,this._added=!1,this.name=null,this.update=new t.bkB,this._ngModelWarningSent=!1,this._parent=be,this._setValidators(Ct),this._setAsyncValidators(sn),this.valueAccessor=Fn(0,ji)}ngOnChanges(be){this._added||this._setUpControl(),En(be,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}get path(){return Ht(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(Ct){return new(Ct||Be)(t.rXU(Dn,13),t.rXU(Ee,10),t.rXU(Ie,10),t.rXU(k,10),t.rXU($e,8))};static#n=this.\u0275dir=t.FsC({type:Be,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[t.Jv_([oi]),t.Vt3,t.OA$]})}return Be})(),Xo=(()=>{class Be{constructor(){this._validator=A}ngOnChanges(be){if(this.inputName in be){const Ct=this.normalizeInput(be[this.inputName].currentValue);this._enabled=this.enabled(Ct),this._validator=this._enabled?this.createValidator(Ct):A,this._onChange&&this._onChange()}}validate(be){return this._validator(be)}registerOnValidatorChange(be){this._onChange=be}enabled(be){return null!=be}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)};static#t=this.\u0275dir=t.FsC({type:Be,features:[t.OA$]})}return Be})();const gr={provide:Ee,useExisting:(0,t.Rfq)(()=>vr),multi:!0};let vr=(()=>{class Be extends Xo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.L39,this.createValidator=be=>U}enabled(be){return be}static#e=this.\u0275fac=(()=>{let be;return function(sn){return(be||(be=t.xGo(Be)))(sn||Be)}})();static#t=this.\u0275dir=t.FsC({type:Be,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ct,sn){2&Ct&&t.BMQ("required",sn._enabled?"":null)},inputs:{required:"required"},features:[t.Jv_([gr]),t.Vt3]})}return Be})(),gt=(()=>{class Be{static#e=this.\u0275fac=function(Ct){return new(Ct||Be)};static#t=this.\u0275mod=t.$C({type:Be});static#n=this.\u0275inj=t.G2t({})}return Be})();class pn extends le{constructor(Ke,be,Ct){super(de(be),zt(Ct,be)),this.controls=Ke,this._initObservables(),this._setUpdateStrategy(be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ke){return this.controls[this._adjustIndex(Ke)]}push(Ke,be={}){this.controls.push(Ke),this._registerControl(Ke),this.updateValueAndValidity({emitEvent:be.emitEvent}),this._onCollectionChange()}insert(Ke,be,Ct={}){this.controls.splice(Ke,0,be),this._registerControl(be),this.updateValueAndValidity({emitEvent:Ct.emitEvent})}removeAt(Ke,be={}){let Ct=this._adjustIndex(Ke);Ct<0&&(Ct=0),this.controls[Ct]&&this.controls[Ct]._registerOnCollectionChange(()=>{}),this.controls.splice(Ct,1),this.updateValueAndValidity({emitEvent:be.emitEvent})}setControl(Ke,be,Ct={}){let sn=this._adjustIndex(Ke);sn<0&&(sn=0),this.controls[sn]&&this.controls[sn]._registerOnCollectionChange(()=>{}),this.controls.splice(sn,1),be&&(this.controls.splice(sn,0,be),this._registerControl(be)),this.updateValueAndValidity({emitEvent:Ct.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ke,be={}){Y(this,0,Ke),Ke.forEach((Ct,sn)=>{Le(this,!1,sn),this.at(sn).setValue(Ct,{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be)}patchValue(Ke,be={}){null!=Ke&&(Ke.forEach((Ct,sn)=>{this.at(sn)&&this.at(sn).patchValue(Ct,{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be))}reset(Ke=[],be={}){this._forEachChild((Ct,sn)=>{Ct.reset(Ke[sn],{onlySelf:!0,emitEvent:be.emitEvent})}),this._updatePristine(be,this),this._updateTouched(be,this),this.updateValueAndValidity(be)}getRawValue(){return this.controls.map(Ke=>Ke.getRawValue())}clear(Ke={}){this.controls.length<1||(this._forEachChild(be=>be._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ke.emitEvent}))}_adjustIndex(Ke){return Ke<0?Ke+this.length:Ke}_syncPendingControls(){let Ke=this.controls.reduce((be,Ct)=>!!Ct._syncPendingControls()||be,!1);return Ke&&this.updateValueAndValidity({onlySelf:!0}),Ke}_forEachChild(Ke){this.controls.forEach((be,Ct)=>{Ke(be,Ct)})}_updateValue(){this.value=this.controls.filter(Ke=>Ke.enabled||this.disabled).map(Ke=>Ke.value)}_anyControls(Ke){return this.controls.some(be=>be.enabled&&Ke(be))}_setUpControls(){this._forEachChild(Ke=>this._registerControl(Ke))}_allControlsDisabled(){for(const Ke of this.controls)if(Ke.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ke){Ke.setParent(this),Ke._registerOnCollectionChange(this._onCollectionChange)}_find(Ke){return this.at(Ke)??null}}let Ho=(()=>{class Be{static withConfig(be){return{ngModule:Be,providers:[{provide:it,useValue:be.callSetDisabledState??dt}]}}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)};static#t=this.\u0275mod=t.$C({type:Be});static#n=this.\u0275inj=t.G2t({imports:[gt]})}return Be})(),ys=(()=>{class Be{static withConfig(be){return{ngModule:Be,providers:[{provide:$e,useValue:be.warnOnNgModelWithFormControl??"always"},{provide:it,useValue:be.callSetDisabledState??dt}]}}static#e=this.\u0275fac=function(Ct){return new(Ct||Be)};static#t=this.\u0275mod=t.$C({type:Be});static#n=this.\u0275inj=t.G2t({imports:[gt]})}return Be})()},345:($t,De,a)=>{a.d(De,{B7:()=>M,Bb:()=>Ut,W8:()=>wt,hE:()=>Qt,sG:()=>Tn,up:()=>Nn});var t=a(177),r=a(3953);class m extends t.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class e extends m{static makeCurrent(){(0,t.ZD)(new e)}onAndCancel(Rt,ct,Se){return Rt.addEventListener(ct,Se),()=>{Rt.removeEventListener(ct,Se)}}dispatchEvent(Rt,ct){Rt.dispatchEvent(ct)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,ct){return(ct=ct||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,ct){return"window"===ct?window:"document"===ct?Rt:"body"===ct?Rt.body:null}getBaseHref(Rt){const ct=function j(){return z=z||document.querySelector("base"),z?z.getAttribute("href"):null}();return null==ct?null:function R(mt){return new URL(mt,document.baseURI).pathname}(ct)}resetBaseElement(){z=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,t._b)(document.cookie,Rt)}}let z=null,k=(()=>{class mt{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Se){return new(Se||mt)};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac})}return mt})();const I=new r.nKC("");let w=(()=>{class mt{constructor(ct,Se){this._zone=Se,this._eventNameToPlugin=new Map,ct.forEach(lt=>{lt.manager=this}),this._plugins=ct.slice().reverse()}addEventListener(ct,Se,lt){return this._findPluginFor(Se).addEventListener(ct,Se,lt)}getZone(){return this._zone}_findPluginFor(ct){let Se=this._eventNameToPlugin.get(ct);if(Se)return Se;if(Se=this._plugins.find(de=>de.supports(ct)),!Se)throw new r.wOt(5101,!1);return this._eventNameToPlugin.set(ct,Se),Se}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(I),r.KVO(r.SKi))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac})}return mt})();class P{constructor(Rt){this._doc=Rt}}const Q="ng-app-id";let N=(()=>{class mt{constructor(ct,Se,lt,de={}){this.doc=ct,this.appId=Se,this.nonce=lt,this.platformId=de,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,t.Vy)(de),this.resetHostNodes()}addStyles(ct){for(const Se of ct)1===this.changeUsageCount(Se,1)&&this.onStyleAdded(Se)}removeStyles(ct){for(const Se of ct)this.changeUsageCount(Se,-1)<=0&&this.onStyleRemoved(Se)}ngOnDestroy(){const ct=this.styleNodesInDOM;ct&&(ct.forEach(Se=>Se.remove()),ct.clear());for(const Se of this.getAllStyles())this.onStyleRemoved(Se);this.resetHostNodes()}addHost(ct){this.hostNodes.add(ct);for(const Se of this.getAllStyles())this.addStyleToHost(ct,Se)}removeHost(ct){this.hostNodes.delete(ct)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ct){for(const Se of this.hostNodes)this.addStyleToHost(Se,ct)}onStyleRemoved(ct){const Se=this.styleRef;Se.get(ct)?.elements?.forEach(lt=>lt.remove()),Se.delete(ct)}collectServerRenderedStyles(){const ct=this.doc.head?.querySelectorAll(`style[${Q}="${this.appId}"]`);if(ct?.length){const Se=new Map;return ct.forEach(lt=>{null!=lt.textContent&&Se.set(lt.textContent,lt)}),Se}return null}changeUsageCount(ct,Se){const lt=this.styleRef;if(lt.has(ct)){const de=lt.get(ct);return de.usage+=Se,de.usage}return lt.set(ct,{usage:Se,elements:[]}),Se}getStyleElement(ct,Se){const lt=this.styleNodesInDOM,de=lt?.get(Se);if(de?.parentNode===ct)return lt.delete(Se),de.removeAttribute(Q),de;{const Oe=this.doc.createElement("style");return this.nonce&&Oe.setAttribute("nonce",this.nonce),Oe.textContent=Se,this.platformIsServer&&Oe.setAttribute(Q,this.appId),ct.appendChild(Oe),Oe}}addStyleToHost(ct,Se){const lt=this.getStyleElement(ct,Se),de=this.styleRef,Oe=de.get(Se)?.elements;Oe?Oe.push(lt):de.set(Se,{elements:[lt],usage:1})}resetHostNodes(){const ct=this.hostNodes;ct.clear(),ct.add(this.doc.head)}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(t.qQ),r.KVO(r.sZ2),r.KVO(r.BIS,8),r.KVO(r.Agw))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac})}return mt})();const x={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},oe=/%COMP%/g,Pe=new r.nKC("",{providedIn:"root",factory:()=>!0});function U(mt,Rt){return Rt.map(ct=>ct.replace(oe,mt))}let M=(()=>{class mt{constructor(ct,Se,lt,de,Oe,zt,Ze,Ne=null){this.eventManager=ct,this.sharedStylesHost=Se,this.appId=lt,this.removeStylesOnCompDestroy=de,this.doc=Oe,this.platformId=zt,this.ngZone=Ze,this.nonce=Ne,this.rendererByCompId=new Map,this.platformIsServer=(0,t.Vy)(zt),this.defaultRenderer=new te(ct,Oe,Ze,this.platformIsServer)}createRenderer(ct,Se){if(!ct||!Se)return this.defaultRenderer;this.platformIsServer&&Se.encapsulation===r.gXe.ShadowDom&&(Se={...Se,encapsulation:r.gXe.Emulated});const lt=this.getOrCreateRenderer(ct,Se);return lt instanceof se?lt.applyToHost(ct):lt instanceof X&<.applyStyles(),lt}getOrCreateRenderer(ct,Se){const lt=this.rendererByCompId;let de=lt.get(Se.id);if(!de){const Oe=this.doc,zt=this.ngZone,Ze=this.eventManager,Ne=this.sharedStylesHost,Le=this.removeStylesOnCompDestroy,Y=this.platformIsServer;switch(Se.encapsulation){case r.gXe.Emulated:de=new se(Ze,Ne,Se,this.appId,Le,Oe,zt,Y);break;case r.gXe.ShadowDom:return new A(Ze,Ne,ct,Se,Oe,zt,this.nonce,Y);default:de=new X(Ze,Ne,Se,Le,Oe,zt,Y)}lt.set(Se.id,de)}return de}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(w),r.KVO(N),r.KVO(r.sZ2),r.KVO(Pe),r.KVO(t.qQ),r.KVO(r.Agw),r.KVO(r.SKi),r.KVO(r.BIS))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac})}return mt})();class te{constructor(Rt,ct,Se,lt){this.eventManager=Rt,this.doc=ct,this.ngZone=Se,this.platformIsServer=lt,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Rt,ct){return ct?this.doc.createElementNS(x[ct]||ct,Rt):this.doc.createElement(Rt)}createComment(Rt){return this.doc.createComment(Rt)}createText(Rt){return this.doc.createTextNode(Rt)}appendChild(Rt,ct){(D(Rt)?Rt.content:Rt).appendChild(ct)}insertBefore(Rt,ct,Se){Rt&&(D(Rt)?Rt.content:Rt).insertBefore(ct,Se)}removeChild(Rt,ct){Rt&&Rt.removeChild(ct)}selectRootElement(Rt,ct){let Se="string"==typeof Rt?this.doc.querySelector(Rt):Rt;if(!Se)throw new r.wOt(-5104,!1);return ct||(Se.textContent=""),Se}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,ct,Se,lt){if(lt){ct=lt+":"+ct;const de=x[lt];de?Rt.setAttributeNS(de,ct,Se):Rt.setAttribute(ct,Se)}else Rt.setAttribute(ct,Se)}removeAttribute(Rt,ct,Se){if(Se){const lt=x[Se];lt?Rt.removeAttributeNS(lt,ct):Rt.removeAttribute(`${Se}:${ct}`)}else Rt.removeAttribute(ct)}addClass(Rt,ct){Rt.classList.add(ct)}removeClass(Rt,ct){Rt.classList.remove(ct)}setStyle(Rt,ct,Se,lt){lt&(r.czy.DashCase|r.czy.Important)?Rt.style.setProperty(ct,Se,lt&r.czy.Important?"important":""):Rt.style[ct]=Se}removeStyle(Rt,ct,Se){Se&r.czy.DashCase?Rt.style.removeProperty(ct):Rt.style[ct]=""}setProperty(Rt,ct,Se){null!=Rt&&(Rt[ct]=Se)}setValue(Rt,ct){Rt.nodeValue=ct}listen(Rt,ct,Se){if("string"==typeof Rt&&!(Rt=(0,t.QT)().getGlobalEventTarget(this.doc,Rt)))throw new Error(`Unsupported event target ${Rt} for event ${ct}`);return this.eventManager.addEventListener(Rt,ct,this.decoratePreventDefault(Se))}decoratePreventDefault(Rt){return ct=>{if("__ngUnwrap__"===ct)return Rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Rt(ct)):Rt(ct))&&ct.preventDefault()}}}function D(mt){return"TEMPLATE"===mt.tagName&&void 0!==mt.content}class A extends te{constructor(Rt,ct,Se,lt,de,Oe,zt,Ze){super(Rt,de,Oe,Ze),this.sharedStylesHost=ct,this.hostEl=Se,this.shadowRoot=Se.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ne=U(lt.id,lt.styles);for(const Le of Ne){const Y=document.createElement("style");zt&&Y.setAttribute("nonce",zt),Y.textContent=Le,this.shadowRoot.appendChild(Y)}}nodeOrShadowRoot(Rt){return Rt===this.hostEl?this.shadowRoot:Rt}appendChild(Rt,ct){return super.appendChild(this.nodeOrShadowRoot(Rt),ct)}insertBefore(Rt,ct,Se){return super.insertBefore(this.nodeOrShadowRoot(Rt),ct,Se)}removeChild(Rt,ct){return super.removeChild(this.nodeOrShadowRoot(Rt),ct)}parentNode(Rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class X extends te{constructor(Rt,ct,Se,lt,de,Oe,zt,Ze){super(Rt,de,Oe,zt),this.sharedStylesHost=ct,this.removeStylesOnCompDestroy=lt,this.styles=Ze?U(Ze,Se.styles):Se.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class se extends X{constructor(Rt,ct,Se,lt,de,Oe,zt,Ze){const Ne=lt+"-"+Se.id;super(Rt,ct,Se,de,Oe,zt,Ze,Ne),this.contentAttr=function ve(mt){return"_ngcontent-%COMP%".replace(oe,mt)}(Ne),this.hostAttr=function pe(mt){return"_nghost-%COMP%".replace(oe,mt)}(Ne)}applyToHost(Rt){this.applyStyles(),this.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,ct){const Se=super.createElement(Rt,ct);return super.setAttribute(Se,this.contentAttr,""),Se}}let je=(()=>{class mt extends P{constructor(ct){super(ct)}supports(ct){return!0}addEventListener(ct,Se,lt){return ct.addEventListener(Se,lt,!1),()=>this.removeEventListener(ct,Se,lt)}removeEventListener(ct,Se,lt){return ct.removeEventListener(Se,lt)}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac})}return mt})(),Bt=(()=>{class mt extends P{constructor(ct){super(ct),this.delegate=(0,r.WQX)(r.zAP,{optional:!0})}supports(ct){return!!this.delegate&&this.delegate.supports(ct)}addEventListener(ct,Se,lt){return this.delegate.addEventListener(ct,Se,lt)}removeEventListener(ct,Se,lt){return this.delegate.removeEventListener(ct,Se,lt)}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac})}return mt})();const Tt=["alt","control","meta","shift"],Vt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},He={alt:mt=>mt.altKey,control:mt=>mt.ctrlKey,meta:mt=>mt.metaKey,shift:mt=>mt.shiftKey};let xt=(()=>{class mt extends P{constructor(ct){super(ct)}supports(ct){return null!=mt.parseEventName(ct)}addEventListener(ct,Se,lt){const de=mt.parseEventName(Se),Oe=mt.eventCallback(de.fullKey,lt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.QT)().onAndCancel(ct,de.domEventName,Oe))}static parseEventName(ct){const Se=ct.toLowerCase().split("."),lt=Se.shift();if(0===Se.length||"keydown"!==lt&&"keyup"!==lt)return null;const de=mt._normalizeKey(Se.pop());let Oe="",zt=Se.indexOf("code");if(zt>-1&&(Se.splice(zt,1),Oe="code."),Tt.forEach(Ne=>{const Le=Se.indexOf(Ne);Le>-1&&(Se.splice(Le,1),Oe+=Ne+".")}),Oe+=de,0!=Se.length||0===de.length)return null;const Ze={};return Ze.domEventName=lt,Ze.fullKey=Oe,Ze}static matchEventFullKeyCode(ct,Se){let lt=Vt[ct.key]||ct.key,de="";return Se.indexOf("code.")>-1&&(lt=ct.code,de="code."),!(null==lt||!lt)&&(lt=lt.toLowerCase()," "===lt?lt="space":"."===lt&&(lt="dot"),Tt.forEach(Oe=>{Oe!==lt&&(0,He[Oe])(ct)&&(de+=Oe+".")}),de+=lt,de===Se)}static eventCallback(ct,Se,lt){return de=>{mt.matchEventFullKeyCode(de,ct)&<.runGuarded(()=>Se(de))}}static _normalizeKey(ct){return"esc"===ct?"escape":ct}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac})}return mt})();const Tn=(0,r.oH4)(r.fpN,"browser",[{provide:r.Agw,useValue:t.AJ},{provide:r.PLl,useValue:function It(){e.makeCurrent()},multi:!0},{provide:t.qQ,useFactory:function en(){return(0,r.TL$)(document),document},deps:[]}]),Jn=new r.nKC(""),Dn=[{provide:r.e01,useClass:class ${addToWindow(Rt){r.JZv.getAngularTestability=(Se,lt=!0)=>{const de=Rt.findTestabilityInTree(Se,lt);if(null==de)throw new r.wOt(5103,!1);return de},r.JZv.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),r.JZv.getAllAngularRootElements=()=>Rt.getAllRootElements(),r.JZv.frameworkStabilizers||(r.JZv.frameworkStabilizers=[]),r.JZv.frameworkStabilizers.push(Se=>{const lt=r.JZv.getAllAngularTestabilities();let de=lt.length;const Oe=function(){de--,0==de&&Se()};lt.forEach(zt=>{zt.whenStable(Oe)})})}findTestabilityInTree(Rt,ct,Se){return null==ct?null:Rt.getTestability(ct)??(Se?(0,t.QT)().isShadowRoot(ct)?this.findTestabilityInTree(Rt,ct.host,!0):this.findTestabilityInTree(Rt,ct.parentElement,!0):null)}},deps:[]},{provide:r.WHO,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]},{provide:r.NYb,useClass:r.NYb,deps:[r.SKi,r.giA,r.e01]}],Mt=[{provide:r.H8p,useValue:"root"},{provide:r.zcH,useFactory:function rn(){return new r.zcH},deps:[]},{provide:I,useClass:je,multi:!0,deps:[t.qQ,r.SKi,r.Agw]},{provide:I,useClass:xt,multi:!0,deps:[t.qQ]},{provide:I,useClass:Bt,multi:!0},M,N,w,{provide:r._9s,useExisting:M},{provide:t.N0,useClass:k,deps:[]},[]];let Ut=(()=>{class mt{constructor(ct){}static withServerTransition(ct){return{ngModule:mt,providers:[{provide:r.sZ2,useValue:ct.appId}]}}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(Jn,12))};static#t=this.\u0275mod=r.$C({type:mt});static#n=this.\u0275inj=r.G2t({providers:[...Mt,...Dn],imports:[t.MD,r.Hbi]})}return mt})(),wt=(()=>{class mt{constructor(ct){this._doc=ct,this._dom=(0,t.QT)()}addTag(ct,Se=!1){return ct?this._getOrCreateElement(ct,Se):null}addTags(ct,Se=!1){return ct?ct.reduce((lt,de)=>(de&<.push(this._getOrCreateElement(de,Se)),lt),[]):[]}getTag(ct){return ct&&this._doc.querySelector(`meta[${ct}]`)||null}getTags(ct){if(!ct)return[];const Se=this._doc.querySelectorAll(`meta[${ct}]`);return Se?[].slice.call(Se):[]}updateTag(ct,Se){if(!ct)return null;Se=Se||this._parseSelector(ct);const lt=this.getTag(Se);return lt?this._setMetaElementAttributes(ct,lt):this._getOrCreateElement(ct,!0)}removeTag(ct){this.removeTagElement(this.getTag(ct))}removeTagElement(ct){ct&&this._dom.remove(ct)}_getOrCreateElement(ct,Se=!1){if(!Se){const Oe=this._parseSelector(ct),zt=this.getTags(Oe).filter(Ze=>this._containsAttributes(ct,Ze))[0];if(void 0!==zt)return zt}const lt=this._dom.createElement("meta");return this._setMetaElementAttributes(ct,lt),this._doc.getElementsByTagName("head")[0].appendChild(lt),lt}_setMetaElementAttributes(ct,Se){return Object.keys(ct).forEach(lt=>Se.setAttribute(this._getMetaKeyMap(lt),ct[lt])),Se}_parseSelector(ct){const Se=ct.name?"name":"property";return`${Se}="${ct[Se]}"`}_containsAttributes(ct,Se){return Object.keys(ct).every(lt=>Se.getAttribute(this._getMetaKeyMap(lt))===ct[lt])}_getMetaKeyMap(ct){return Ft[ct]||ct}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})();const Ft={httpEquiv:"http-equiv"};let Qt=(()=>{class mt{constructor(ct){this._doc=ct}getTitle(){return this._doc.title}setTitle(ct){this._doc.title=ct||""}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})(),Nn=(()=>{class mt{static#e=this.\u0275fac=function(Se){return new(Se||mt)};static#t=this.\u0275prov=r.jDH({token:mt,factory:function(Se){let lt=null;return lt=Se?new(Se||mt):r.KVO(vn),lt},providedIn:"root"})}return mt})(),vn=(()=>{class mt extends Nn{constructor(ct){super(),this._doc=ct}sanitize(ct,Se){if(null==Se)return null;switch(ct){case r.WPN.NONE:return Se;case r.WPN.HTML:return(0,r.ZF7)(Se,"HTML")?(0,r.rcV)(Se):(0,r.h9k)(this._doc,String(Se)).toString();case r.WPN.STYLE:return(0,r.ZF7)(Se,"Style")?(0,r.rcV)(Se):Se;case r.WPN.SCRIPT:if((0,r.ZF7)(Se,"Script"))return(0,r.rcV)(Se);throw new r.wOt(5200,!1);case r.WPN.URL:return(0,r.ZF7)(Se,"URL")?(0,r.rcV)(Se):(0,r.$MX)(String(Se));case r.WPN.RESOURCE_URL:if((0,r.ZF7)(Se,"ResourceURL"))return(0,r.rcV)(Se);throw new r.wOt(5201,!1);default:throw new r.wOt(5202,!1)}}bypassSecurityTrustHtml(ct){return(0,r.Kcf)(ct)}bypassSecurityTrustStyle(ct){return(0,r.cWb)(ct)}bypassSecurityTrustScript(ct){return(0,r.UyX)(ct)}bypassSecurityTrustUrl(ct){return(0,r.osQ)(ct)}bypassSecurityTrustResourceUrl(ct){return(0,r.e5t)(ct)}static#e=this.\u0275fac=function(Se){return new(Se||mt)(r.KVO(t.qQ))};static#t=this.\u0275prov=r.jDH({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})()},1188:($t,De,a)=>{a.d(De,{nX:()=>jn,wF:()=>Mn,Xk:()=>St,Ix:()=>Li,Wk:()=>ir,wQ:()=>xr,iI:()=>mu,n3:()=>co});var t=a(3953),r=a(4402),m=a(2806),e=a(7673),z=a(4412),j=a(4572),R=a(9350),$=a(8793),k=a(9030),I=a(1203),w=a(8810),P=a(983),Q=a(17),N=a(1413),x=a(8359),oe=a(177),ee=a(6354),Ee=a(5558),Ie=a(6697),ce=a(9172),Pe=a(5964),ve=a(1397),pe=a(1594),U=a(274),M=a(8141),te=a(9437),ge=a(2816),T=a(9901),D=a(9974),A=a(4360);function X(F){return F<=0?()=>P.w:(0,D.N)((ue,B)=>{let he=[];ue.subscribe((0,A._)(B,Ye=>{he.push(Ye),F{for(const Ye of he)B.next(Ye);B.complete()},void 0,()=>{he=null}))})}var se=a(3774),je=a(3669),Tt=a(3703),Vt=a(980),He=a(9898),xt=a(6977),Lt=a(6365),ft=a(345);const St="primary",kt=Symbol("RouteTitle");class It{constructor(ue){this.params=ue||{}}has(ue){return Object.prototype.hasOwnProperty.call(this.params,ue)}get(ue){if(this.has(ue)){const B=this.params[ue];return Array.isArray(B)?B[0]:B}return null}getAll(ue){if(this.has(ue)){const B=this.params[ue];return Array.isArray(B)?B:[B]}return[]}get keys(){return Object.keys(this.params)}}function rn(F){return new It(F)}function en(F,ue,B){const he=B.path.split("/");if(he.length>F.length||"full"===B.pathMatch&&(ue.hasChildren()||he.lengthhe[Et]===Ye)}return F===ue}function Mt(F){return F.length>0?F[F.length-1]:null}function Ut(F){return(0,r.A)(F)?F:(0,t.jNT)(F)?(0,m.H)(Promise.resolve(F)):(0,e.of)(F)}const wt={exact:function ke(F,ue,B){if(!In(F.segments,ue.segments)||!ze(F.segments,ue.segments,B)||F.numberOfChildren!==ue.numberOfChildren)return!1;for(const he in ue.children)if(!F.children[he]||!ke(F.children[he],ue.children[he],B))return!1;return!0},subset:G},Ft={exact:function Xe(F,ue){return Tn(F,ue)},subset:function q(F,ue){return Object.keys(ue).length<=Object.keys(F).length&&Object.keys(ue).every(B=>Dn(F[B],ue[B]))},ignored:()=>!0};function Qt(F,ue,B){return wt[B.paths](F.root,ue.root,B.matrixParams)&&Ft[B.queryParams](F.queryParams,ue.queryParams)&&!("exact"===B.fragment&&F.fragment!==ue.fragment)}function G(F,ue,B){return H(F,ue,ue.segments,B)}function H(F,ue,B,he){if(F.segments.length>B.length){const Ye=F.segments.slice(0,B.length);return!(!In(Ye,B)||ue.hasChildren()||!ze(Ye,B,he))}if(F.segments.length===B.length){if(!In(F.segments,B)||!ze(F.segments,B,he))return!1;for(const Ye in ue.children)if(!F.children[Ye]||!G(F.children[Ye],ue.children[Ye],he))return!1;return!0}{const Ye=B.slice(0,F.segments.length),Et=B.slice(F.segments.length);return!!(In(F.segments,Ye)&&ze(F.segments,Ye,he)&&F.children[St])&&H(F.children[St],ue,Et,he)}}function ze(F,ue,B){return ue.every((he,Ye)=>Ft[B](F[Ye].parameters,he.parameters))}class Qe{constructor(ue=new ht([],{}),B={},he=null){this.root=ue,this.queryParams=B,this.fragment=he}get queryParamMap(){return this._queryParamMap??=rn(this.queryParams),this._queryParamMap}toString(){return Nn.serialize(this)}}class ht{constructor(ue,B){this.segments=ue,this.children=B,this.parent=null,Object.values(B).forEach(he=>he.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vn(this)}}class Kt{constructor(ue,B){this.path=ue,this.parameters=B}get parameterMap(){return this._parameterMap??=rn(this.parameters),this._parameterMap}toString(){return et(this)}}function In(F,ue){return F.length===ue.length&&F.every((B,he)=>B.path===ue[he].path)}let Gn=(()=>{class F{static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:()=>new $n,providedIn:"root"})}return F})();class $n{parse(ue){const B=new Ne(ue);return new Qe(B.parseRootSegment(),B.parseQueryParams(),B.parseFragment())}serialize(ue){const B=`/${Jt(ue.root,!0)}`,he=function mt(F){const ue=Object.entries(F).map(([B,he])=>Array.isArray(he)?he.map(Ye=>`${Yt(B)}=${Yt(Ye)}`).join("&"):`${Yt(B)}=${Yt(he)}`).filter(B=>B);return ue.length?`?${ue.join("&")}`:""}(ue.queryParams);return`${B}${he}${"string"==typeof ue.fragment?`#${function Je(F){return encodeURI(F)}(ue.fragment)}`:""}`}}const Nn=new $n;function vn(F){return F.segments.map(ue=>et(ue)).join("/")}function Jt(F,ue){if(!F.hasChildren())return vn(F);if(ue){const B=F.children[St]?Jt(F.children[St],!1):"",he=[];return Object.entries(F.children).forEach(([Ye,Et])=>{Ye!==St&&he.push(`${Ye}:${Jt(Et,!1)}`)}),he.length>0?`${B}(${he.join("//")})`:B}{const B=function Kn(F,ue){let B=[];return Object.entries(F.children).forEach(([he,Ye])=>{he===St&&(B=B.concat(ue(Ye,he)))}),Object.entries(F.children).forEach(([he,Ye])=>{he!==St&&(B=B.concat(ue(Ye,he)))}),B}(F,(he,Ye)=>Ye===St?[Jt(F.children[St],!1)]:[`${Ye}:${Jt(he,!1)}`]);return 1===Object.keys(F.children).length&&null!=F.children[St]?`${vn(F)}/${B[0]}`:`${vn(F)}/(${B.join("//")})`}}function An(F){return encodeURIComponent(F).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yt(F){return An(F).replace(/%3B/gi,";")}function ae(F){return An(F).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ie(F){return decodeURIComponent(F)}function re(F){return ie(F.replace(/\+/g,"%20"))}function et(F){return`${ae(F.path)}${function _t(F){return Object.entries(F).map(([ue,B])=>`;${ae(ue)}=${ae(B)}`).join("")}(F.parameters)}`}const Rt=/^[^\/()?;#]+/;function ct(F){const ue=F.match(Rt);return ue?ue[0]:""}const Se=/^[^\/()?;=#]+/,de=/^[^=?&#]+/,zt=/^[^&#]+/;class Ne{constructor(ue){this.url=ue,this.remaining=ue}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const ue={};if(this.consumeOptional("?"))do{this.parseQueryParam(ue)}while(this.consumeOptional("&"));return ue}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ue=[];for(this.peekStartsWith("(")||ue.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ue.push(this.parseSegment());let B={};this.peekStartsWith("/(")&&(this.capture("/"),B=this.parseParens(!0));let he={};return this.peekStartsWith("(")&&(he=this.parseParens(!1)),(ue.length>0||Object.keys(B).length>0)&&(he[St]=new ht(ue,B)),he}parseSegment(){const ue=ct(this.remaining);if(""===ue&&this.peekStartsWith(";"))throw new t.wOt(4009,!1);return this.capture(ue),new Kt(ie(ue),this.parseMatrixParams())}parseMatrixParams(){const ue={};for(;this.consumeOptional(";");)this.parseParam(ue);return ue}parseParam(ue){const B=function lt(F){const ue=F.match(Se);return ue?ue[0]:""}(this.remaining);if(!B)return;this.capture(B);let he="";if(this.consumeOptional("=")){const Ye=ct(this.remaining);Ye&&(he=Ye,this.capture(he))}ue[ie(B)]=ie(he)}parseQueryParam(ue){const B=function Oe(F){const ue=F.match(de);return ue?ue[0]:""}(this.remaining);if(!B)return;this.capture(B);let he="";if(this.consumeOptional("=")){const Wt=function Ze(F){const ue=F.match(zt);return ue?ue[0]:""}(this.remaining);Wt&&(he=Wt,this.capture(he))}const Ye=re(B),Et=re(he);if(ue.hasOwnProperty(Ye)){let Wt=ue[Ye];Array.isArray(Wt)||(Wt=[Wt],ue[Ye]=Wt),Wt.push(Et)}else ue[Ye]=Et}parseParens(ue){const B={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const he=ct(this.remaining),Ye=this.remaining[he.length];if("/"!==Ye&&")"!==Ye&&";"!==Ye)throw new t.wOt(4010,!1);let Et;he.indexOf(":")>-1?(Et=he.slice(0,he.indexOf(":")),this.capture(Et),this.capture(":")):ue&&(Et=St);const Wt=this.parseChildren();B[Et]=1===Object.keys(Wt).length?Wt[St]:new ht([],Wt),this.consumeOptional("//")}return B}peekStartsWith(ue){return this.remaining.startsWith(ue)}consumeOptional(ue){return!!this.peekStartsWith(ue)&&(this.remaining=this.remaining.substring(ue.length),!0)}capture(ue){if(!this.consumeOptional(ue))throw new t.wOt(4011,!1)}}function Le(F){return F.segments.length>0?new ht([],{[St]:F}):F}function Y(F){const ue={};for(const[he,Ye]of Object.entries(F.children)){const Et=Y(Ye);if(he===St&&0===Et.segments.length&&Et.hasChildren())for(const[Wt,On]of Object.entries(Et.children))ue[Wt]=On;else(Et.segments.length>0||Et.hasChildren())&&(ue[he]=Et)}return function le(F){if(1===F.numberOfChildren&&F.children[St]){const ue=F.children[St];return new ht(F.segments.concat(ue.segments),ue.children)}return F}(new ht(F.segments,ue))}function V(F){return F instanceof Qe}function Ce(F){let ue;const Ye=Le(function B(Et){const Wt={};for(const yn of Et.children){const gi=B(yn);Wt[yn.outlet]=gi}const On=new ht(Et.url,Wt);return Et===F&&(ue=On),On}(F.root));return ue??Ye}function J(F,ue,B,he){let Ye=F;for(;Ye.parent;)Ye=Ye.parent;if(0===ue.length)return it(Ye,Ye,Ye,B,he);const Et=function dn(F){if("string"==typeof F[0]&&1===F.length&&"/"===F[0])return new Ht(!0,0,F);let ue=0,B=!1;const he=F.reduce((Ye,Et,Wt)=>{if("object"==typeof Et&&null!=Et){if(Et.outlets){const On={};return Object.entries(Et.outlets).forEach(([yn,gi])=>{On[yn]="string"==typeof gi?gi.split("/"):gi}),[...Ye,{outlets:On}]}if(Et.segmentPath)return[...Ye,Et.segmentPath]}return"string"!=typeof Et?[...Ye,Et]:0===Wt?(Et.split("/").forEach((On,yn)=>{0==yn&&"."===On||(0==yn&&""===On?B=!0:".."===On?ue++:""!=On&&Ye.push(On))}),Ye):[...Ye,Et]},[]);return new Ht(B,ue,he)}(ue);if(Et.toRoot())return it(Ye,Ye,new ht([],{}),B,he);const Wt=function si(F,ue,B){if(F.isAbsolute)return new wn(ue,!0,0);if(!B)return new wn(ue,!1,NaN);if(null===B.parent)return new wn(B,!0,0);const he=W(F.commands[0])?0:1;return function Cn(F,ue,B){let he=F,Ye=ue,Et=B;for(;Et>Ye;){if(Et-=Ye,he=he.parent,!he)throw new t.wOt(4005,!1);Ye=he.segments.length}return new wn(he,!1,Ye-Et)}(B,B.segments.length-1+he,F.numberOfDoubleDots)}(Et,Ye,F),On=Wt.processChildren?Ni(Wt.segmentGroup,Wt.index,Et.commands):ui(Wt.segmentGroup,Wt.index,Et.commands);return it(Ye,Wt.segmentGroup,On,B,he)}function W(F){return"object"==typeof F&&null!=F&&!F.outlets&&!F.segmentPath}function _e(F){return"object"==typeof F&&null!=F&&F.outlets}function it(F,ue,B,he,Ye){let Wt,Et={};he&&Object.entries(he).forEach(([yn,gi])=>{Et[yn]=Array.isArray(gi)?gi.map(Qi=>`${Qi}`):`${gi}`}),Wt=F===ue?B:dt(F,ue,B);const On=Le(Y(Wt));return new Qe(On,Et,Ye)}function dt(F,ue,B){const he={};return Object.entries(F.children).forEach(([Ye,Et])=>{he[Ye]=Et===ue?B:dt(Et,ue,B)}),new ht(F.segments,he)}class Ht{constructor(ue,B,he){if(this.isAbsolute=ue,this.numberOfDoubleDots=B,this.commands=he,ue&&he.length>0&&W(he[0]))throw new t.wOt(4003,!1);const Ye=he.find(_e);if(Ye&&Ye!==Mt(he))throw new t.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wn{constructor(ue,B,he){this.segmentGroup=ue,this.processChildren=B,this.index=he}}function ui(F,ue,B){if(F??=new ht([],{}),0===F.segments.length&&F.hasChildren())return Ni(F,ue,B);const he=function Eo(F,ue,B){let he=0,Ye=ue;const Et={match:!1,pathIndex:0,commandIndex:0};for(;Ye=B.length)return Et;const Wt=F.segments[Ye],On=B[he];if(_e(On))break;const yn=`${On}`,gi=he0&&void 0===yn)break;if(yn&&gi&&"object"==typeof gi&&void 0===gi.outlets){if(!Nr(yn,gi,Wt))return Et;he+=2}else{if(!Nr(yn,{},Wt))return Et;he++}Ye++}return{match:!0,pathIndex:Ye,commandIndex:he}}(F,ue,B),Ye=B.slice(he.commandIndex);if(he.match&&he.pathIndexEt!==St)&&F.children[St]&&1===F.numberOfChildren&&0===F.children[St].segments.length){const Et=Ni(F.children[St],ue,B);return new ht(F.segments,Et.children)}return Object.entries(he).forEach(([Et,Wt])=>{"string"==typeof Wt&&(Wt=[Wt]),null!==Wt&&(Ye[Et]=ui(F.children[Et],ue,Wt))}),Object.entries(F.children).forEach(([Et,Wt])=>{void 0===he[Et]&&(Ye[Et]=Wt)}),new ht(F.segments,Ye)}}function lo(F,ue,B){const he=F.segments.slice(0,ue);let Ye=0;for(;Ye{"string"==typeof he&&(he=[he]),null!==he&&(ue[B]=lo(new ht([],{}),0,he))}),ue}function Ii(F){const ue={};return Object.entries(F).forEach(([B,he])=>ue[B]=`${he}`),ue}function Nr(F,ue,B){return F==B.path&&Tn(ue,B.parameters)}const pr="imperative";var vt=function(F){return F[F.NavigationStart=0]="NavigationStart",F[F.NavigationEnd=1]="NavigationEnd",F[F.NavigationCancel=2]="NavigationCancel",F[F.NavigationError=3]="NavigationError",F[F.RoutesRecognized=4]="RoutesRecognized",F[F.ResolveStart=5]="ResolveStart",F[F.ResolveEnd=6]="ResolveEnd",F[F.GuardsCheckStart=7]="GuardsCheckStart",F[F.GuardsCheckEnd=8]="GuardsCheckEnd",F[F.RouteConfigLoadStart=9]="RouteConfigLoadStart",F[F.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",F[F.ChildActivationStart=11]="ChildActivationStart",F[F.ChildActivationEnd=12]="ChildActivationEnd",F[F.ActivationStart=13]="ActivationStart",F[F.ActivationEnd=14]="ActivationEnd",F[F.Scroll=15]="Scroll",F[F.NavigationSkipped=16]="NavigationSkipped",F}(vt||{});class Gt{constructor(ue,B){this.id=ue,this.url=B}}class Pt extends Gt{constructor(ue,B,he="imperative",Ye=null){super(ue,B),this.type=vt.NavigationStart,this.navigationTrigger=he,this.restoredState=Ye}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Mn extends Gt{constructor(ue,B,he){super(ue,B),this.urlAfterRedirects=he,this.type=vt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var En=function(F){return F[F.Redirect=0]="Redirect",F[F.SupersededByNewNavigation=1]="SupersededByNewNavigation",F[F.NoDataFromResolver=2]="NoDataFromResolver",F[F.GuardRejected=3]="GuardRejected",F}(En||{}),ii=function(F){return F[F.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",F[F.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",F}(ii||{});class Pn extends Gt{constructor(ue,B,he,Ye){super(ue,B),this.reason=he,this.code=Ye,this.type=vt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fn extends Gt{constructor(ue,B,he,Ye){super(ue,B),this.reason=he,this.code=Ye,this.type=vt.NavigationSkipped}}class hi extends Gt{constructor(ue,B,he,Ye){super(ue,B),this.error=he,this.target=Ye,this.type=vt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class xi extends Gt{constructor(ue,B,he,Ye){super(ue,B),this.urlAfterRedirects=he,this.state=Ye,this.type=vt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hi extends Gt{constructor(ue,B,he,Ye){super(ue,B),this.urlAfterRedirects=he,this.state=Ye,this.type=vt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mi extends Gt{constructor(ue,B,he,Ye,Et){super(ue,B),this.urlAfterRedirects=he,this.state=Ye,this.shouldActivate=Et,this.type=vt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gn extends Gt{constructor(ue,B,he,Ye){super(ue,B),this.urlAfterRedirects=he,this.state=Ye,this.type=vt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Si extends Gt{constructor(ue,B,he,Ye){super(ue,B),this.urlAfterRedirects=he,this.state=Ye,this.type=vt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ei{constructor(ue){this.route=ue,this.type=vt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ki{constructor(ue){this.route=ue,this.type=vt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Vi{constructor(ue){this.snapshot=ue,this.type=vt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qi{constructor(ue){this.snapshot=ue,this.type=vt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Go{constructor(ue){this.snapshot=ue,this.type=vt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class so{constructor(ue){this.snapshot=ue,this.type=vt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tr{constructor(ue,B,he){this.routerEvent=ue,this.position=B,this.anchor=he,this.type=vt.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class lr{}class zo{constructor(ue,B){this.url=ue,this.navigationBehaviorOptions=B}}function Ko(F){return F.outlet||St}function st(F){if(!F)return null;if(F.routeConfig?._injector)return F.routeConfig._injector;for(let ue=F.parent;ue;ue=ue.parent){const B=ue.routeConfig;if(B?._loadedInjector)return B._loadedInjector;if(B?._injector)return B._injector}return null}class Te{get injector(){return st(this.route?.snapshot)??this.rootInjector}set injector(ue){}constructor(ue){this.rootInjector=ue,this.outlet=null,this.route=null,this.children=new $e(this.rootInjector),this.attachRef=null}}let $e=(()=>{class F{constructor(B){this.rootInjector=B,this.contexts=new Map}onChildOutletCreated(B,he){const Ye=this.getOrCreateContext(B);Ye.outlet=he,this.contexts.set(B,Ye)}onChildOutletDestroyed(B){const he=this.getContext(B);he&&(he.outlet=null,he.attachRef=null)}onOutletDeactivated(){const B=this.contexts;return this.contexts=new Map,B}onOutletReAttached(B){this.contexts=B}getOrCreateContext(B){let he=this.getContext(B);return he||(he=new Te(this.rootInjector),this.contexts.set(B,he)),he}getContext(B){return this.contexts.get(B)||null}static#e=this.\u0275fac=function(he){return new(he||F)(t.KVO(t.uvJ))};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();class at{constructor(ue){this._root=ue}get root(){return this._root.value}parent(ue){const B=this.pathFromRoot(ue);return B.length>1?B[B.length-2]:null}children(ue){const B=At(ue,this._root);return B?B.children.map(he=>he.value):[]}firstChild(ue){const B=At(ue,this._root);return B&&B.children.length>0?B.children[0].value:null}siblings(ue){const B=nn(ue,this._root);return B.length<2?[]:B[B.length-2].children.map(Ye=>Ye.value).filter(Ye=>Ye!==ue)}pathFromRoot(ue){return nn(ue,this._root).map(B=>B.value)}}function At(F,ue){if(F===ue.value)return ue;for(const B of ue.children){const he=At(F,B);if(he)return he}return null}function nn(F,ue){if(F===ue.value)return[ue];for(const B of ue.children){const he=nn(F,B);if(he.length)return he.unshift(ue),he}return[]}class ln{constructor(ue,B){this.value=ue,this.children=B}toString(){return`TreeNode(${this.value})`}}function hn(F){const ue={};return F&&F.children.forEach(B=>ue[B.value.outlet]=B),ue}class xn extends at{constructor(ue,B){super(ue),this.snapshot=B,ci(this,ue)}toString(){return this.snapshot.toString()}}function Rn(F){const ue=function Zn(F){const Et=new ai([],{},{},"",{},St,F,null,{});return new Ti("",new ln(Et,[]))}(F),B=new z.t([new Kt("",{})]),he=new z.t({}),Ye=new z.t({}),Et=new z.t({}),Wt=new z.t(""),On=new jn(B,he,Et,Wt,Ye,St,F,ue.root);return On.snapshot=ue.root,new xn(new ln(On,[]),ue)}class jn{constructor(ue,B,he,Ye,Et,Wt,On,yn){this.urlSubject=ue,this.paramsSubject=B,this.queryParamsSubject=he,this.fragmentSubject=Ye,this.dataSubject=Et,this.outlet=Wt,this.component=On,this._futureSnapshot=yn,this.title=this.dataSubject?.pipe((0,ee.T)(gi=>gi[kt]))??(0,e.of)(void 0),this.url=ue,this.params=B,this.queryParams=he,this.fragment=Ye,this.data=Et}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,ee.T)(ue=>rn(ue))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,ee.T)(ue=>rn(ue))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function oi(F,ue,B="emptyOnly"){let he;const{routeConfig:Ye}=F;return he=null===ue||"always"!==B&&""!==Ye?.path&&(ue.component||ue.routeConfig?.loadComponent)?{params:{...F.params},data:{...F.data},resolve:{...F.data,...F._resolvedData??{}}}:{params:{...ue.params,...F.params},data:{...ue.data,...F.data},resolve:{...F.data,...ue.data,...Ye?.data,...F._resolvedData}},Ye&&ki(Ye)&&(he.resolve[kt]=Ye.title),he}class ai{get title(){return this.data?.[kt]}constructor(ue,B,he,Ye,Et,Wt,On,yn,gi){this.url=ue,this.params=B,this.queryParams=he,this.fragment=Ye,this.data=Et,this.outlet=Wt,this.component=On,this.routeConfig=yn,this._resolve=gi}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=rn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=rn(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(he=>he.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ti extends at{constructor(ue,B){super(B),this.url=ue,ci(this,B)}toString(){return yi(this._root)}}function ci(F,ue){ue.value._routerState=F,ue.children.forEach(B=>ci(F,B))}function yi(F){const ue=F.children.length>0?` { ${F.children.map(yi).join(", ")} } `:"";return`${F.value}${ue}`}function _i(F){if(F.snapshot){const ue=F.snapshot,B=F._futureSnapshot;F.snapshot=B,Tn(ue.queryParams,B.queryParams)||F.queryParamsSubject.next(B.queryParams),ue.fragment!==B.fragment&&F.fragmentSubject.next(B.fragment),Tn(ue.params,B.params)||F.paramsSubject.next(B.params),function Xt(F,ue){if(F.length!==ue.length)return!1;for(let B=0;BTn(B.parameters,ue[he].parameters))}(F.url,ue.url);return B&&!(!F.parent!=!ue.parent)&&(!F.parent||Oi(F.parent,ue.parent))}function ki(F){return"string"==typeof F.title||null===F.title}let co=(()=>{class F{constructor(){this.activated=null,this._activatedRoute=null,this.name=St,this.activateEvents=new t.bkB,this.deactivateEvents=new t.bkB,this.attachEvents=new t.bkB,this.detachEvents=new t.bkB,this.parentContexts=(0,t.WQX)($e),this.location=(0,t.WQX)(t.c1b),this.changeDetector=(0,t.WQX)(t.gRc),this.inputBinder=(0,t.WQX)(go,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(B){if(B.name){const{firstChange:he,previousValue:Ye}=B.name;if(he)return;this.isTrackedInParentContexts(Ye)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Ye)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(B){return this.parentContexts.getContext(B)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const B=this.parentContexts.getContext(this.name);B?.route&&(B.attachRef?this.attach(B.attachRef,B.route):this.activateWith(B.route,B.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.wOt(4012,!1);this.location.detach();const B=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(B.instance),B}attach(B,he){this.activated=B,this._activatedRoute=he,this.location.insert(B.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(B.instance)}deactivate(){if(this.activated){const B=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(B)}}activateWith(B,he){if(this.isActivated)throw new t.wOt(4013,!1);this._activatedRoute=B;const Ye=this.location,Wt=B.snapshot.component,On=this.parentContexts.getOrCreateContext(this.name).children,yn=new Ai(B,On,Ye.injector);this.activated=Ye.createComponent(Wt,{index:Ye.length,injector:yn,environmentInjector:he}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275dir=t.FsC({type:F,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.OA$]})}return F})();class Ai{__ngOutletInjector(ue){return new Ai(this.route,this.childContexts,ue)}constructor(ue,B,he){this.route=ue,this.childContexts=B,this.parent=he}get(ue,B){return ue===jn?this.route:ue===$e?this.childContexts:this.parent.get(ue,B)}}const go=new t.nKC("");let _o=(()=>{class F{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(B){this.unsubscribeFromRouteData(B),this.subscribeToRouteData(B)}unsubscribeFromRouteData(B){this.outletDataSubscriptions.get(B)?.unsubscribe(),this.outletDataSubscriptions.delete(B)}subscribeToRouteData(B){const{activatedRoute:he}=B,Ye=(0,j.z)([he.queryParams,he.params,he.data]).pipe((0,Ee.n)(([Et,Wt,On],yn)=>(On={...Et,...Wt,...On},0===yn?(0,e.of)(On):Promise.resolve(On)))).subscribe(Et=>{if(!B.isActivated||!B.activatedComponentRef||B.activatedRoute!==he||null===he.component)return void this.unsubscribeFromRouteData(B);const Wt=(0,t.HJs)(he.component);if(Wt)for(const{templateName:On}of Wt.inputs)B.activatedComponentRef.setInput(On,Et[On]);else this.unsubscribeFromRouteData(B)});this.outletDataSubscriptions.set(B,Ye)}static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac})}return F})();function Yn(F,ue,B){if(B&&F.shouldReuseRoute(ue.value,B.value.snapshot)){const he=B.value;he._futureSnapshot=ue.value;const Ye=function wo(F,ue,B){return ue.children.map(he=>{for(const Ye of B.children)if(F.shouldReuseRoute(he.value,Ye.value.snapshot))return Yn(F,he,Ye);return Yn(F,he)})}(F,ue,B);return new ln(he,Ye)}{if(F.shouldAttach(ue.value)){const Et=F.retrieve(ue.value);if(null!==Et){const Wt=Et.route;return Wt.value._futureSnapshot=ue.value,Wt.children=ue.children.map(On=>Yn(F,On)),Wt}}const he=function Xo(F){return new jn(new z.t(F.url),new z.t(F.params),new z.t(F.queryParams),new z.t(F.fragment),new z.t(F.data),F.outlet,F.component,F)}(ue.value),Ye=ue.children.map(Et=>Yn(F,Et));return new ln(he,Ye)}}class es{constructor(ue,B){this.redirectTo=ue,this.navigationBehaviorOptions=B}}const Bo="ngNavigationCancelingError";function nr(F,ue){const{redirectTo:B,navigationBehaviorOptions:he}=V(ue)?{redirectTo:ue,navigationBehaviorOptions:void 0}:ue,Ye=wr(!1,En.Redirect);return Ye.url=B,Ye.navigationBehaviorOptions=he,Ye}function wr(F,ue){const B=new Error(`NavigationCancelingError: ${F||""}`);return B[Bo]=!0,B.cancellationCode=ue,B}function Er(F){return!!F&&F[Bo]}class As{constructor(ue,B,he,Ye,Et){this.routeReuseStrategy=ue,this.futureState=B,this.currState=he,this.forwardEvent=Ye,this.inputBindingEnabled=Et}activate(ue){const B=this.futureState._root,he=this.currState?this.currState._root:null;this.deactivateChildRoutes(B,he,ue),_i(this.futureState.root),this.activateChildRoutes(B,he,ue)}deactivateChildRoutes(ue,B,he){const Ye=hn(B);ue.children.forEach(Et=>{const Wt=Et.value.outlet;this.deactivateRoutes(Et,Ye[Wt],he),delete Ye[Wt]}),Object.values(Ye).forEach(Et=>{this.deactivateRouteAndItsChildren(Et,he)})}deactivateRoutes(ue,B,he){const Ye=ue.value,Et=B?B.value:null;if(Ye===Et)if(Ye.component){const Wt=he.getContext(Ye.outlet);Wt&&this.deactivateChildRoutes(ue,B,Wt.children)}else this.deactivateChildRoutes(ue,B,he);else Et&&this.deactivateRouteAndItsChildren(B,he)}deactivateRouteAndItsChildren(ue,B){ue.value.component&&this.routeReuseStrategy.shouldDetach(ue.value.snapshot)?this.detachAndStoreRouteSubtree(ue,B):this.deactivateRouteAndOutlet(ue,B)}detachAndStoreRouteSubtree(ue,B){const he=B.getContext(ue.value.outlet),Ye=he&&ue.value.component?he.children:B,Et=hn(ue);for(const Wt of Object.values(Et))this.deactivateRouteAndItsChildren(Wt,Ye);if(he&&he.outlet){const Wt=he.outlet.detach(),On=he.children.onOutletDeactivated();this.routeReuseStrategy.store(ue.value.snapshot,{componentRef:Wt,route:ue,contexts:On})}}deactivateRouteAndOutlet(ue,B){const he=B.getContext(ue.value.outlet),Ye=he&&ue.value.component?he.children:B,Et=hn(ue);for(const Wt of Object.values(Et))this.deactivateRouteAndItsChildren(Wt,Ye);he&&(he.outlet&&(he.outlet.deactivate(),he.children.onOutletDeactivated()),he.attachRef=null,he.route=null)}activateChildRoutes(ue,B,he){const Ye=hn(B);ue.children.forEach(Et=>{this.activateRoutes(Et,Ye[Et.value.outlet],he),this.forwardEvent(new so(Et.value.snapshot))}),ue.children.length&&this.forwardEvent(new qi(ue.value.snapshot))}activateRoutes(ue,B,he){const Ye=ue.value,Et=B?B.value:null;if(_i(Ye),Ye===Et)if(Ye.component){const Wt=he.getOrCreateContext(Ye.outlet);this.activateChildRoutes(ue,B,Wt.children)}else this.activateChildRoutes(ue,B,he);else if(Ye.component){const Wt=he.getOrCreateContext(Ye.outlet);if(this.routeReuseStrategy.shouldAttach(Ye.snapshot)){const On=this.routeReuseStrategy.retrieve(Ye.snapshot);this.routeReuseStrategy.store(Ye.snapshot,null),Wt.children.onOutletReAttached(On.contexts),Wt.attachRef=On.componentRef,Wt.route=On.route.value,Wt.outlet&&Wt.outlet.attach(On.componentRef,On.route.value),_i(On.route.value),this.activateChildRoutes(ue,null,Wt.children)}else Wt.attachRef=null,Wt.route=Ye,Wt.outlet&&Wt.outlet.activateWith(Ye,Wt.injector),this.activateChildRoutes(ue,null,Wt.children)}else this.activateChildRoutes(ue,null,he)}}class kr{constructor(ue){this.path=ue,this.route=this.path[this.path.length-1]}}class $o{constructor(ue,B){this.component=ue,this.route=B}}function cs(F,ue,B){const he=F._root;return _s(he,ue?ue._root:null,B,[he.value])}function vs(F,ue){const B=Symbol(),he=ue.get(F,B);return he===B?"function"!=typeof F||(0,t.LfX)(F)?ue.get(F):F:he}function _s(F,ue,B,he,Ye={canDeactivateChecks:[],canActivateChecks:[]}){const Et=hn(ue);return F.children.forEach(Wt=>{(function nt(F,ue,B,he,Ye={canDeactivateChecks:[],canActivateChecks:[]}){const Et=F.value,Wt=ue?ue.value:null,On=B?B.getContext(F.value.outlet):null;if(Wt&&Et.routeConfig===Wt.routeConfig){const yn=function Un(F,ue,B){if("function"==typeof B)return B(F,ue);switch(B){case"pathParamsChange":return!In(F.url,ue.url);case"pathParamsOrQueryParamsChange":return!In(F.url,ue.url)||!Tn(F.queryParams,ue.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Oi(F,ue)||!Tn(F.queryParams,ue.queryParams);default:return!Oi(F,ue)}}(Wt,Et,Et.routeConfig.runGuardsAndResolvers);yn?Ye.canActivateChecks.push(new kr(he)):(Et.data=Wt.data,Et._resolvedData=Wt._resolvedData),_s(F,ue,Et.component?On?On.children:null:B,he,Ye),yn&&On&&On.outlet&&On.outlet.isActivated&&Ye.canDeactivateChecks.push(new $o(On.outlet.component,Wt))}else Wt&&me(ue,On,Ye),Ye.canActivateChecks.push(new kr(he)),_s(F,null,Et.component?On?On.children:null:B,he,Ye)})(Wt,Et[Wt.value.outlet],B,he.concat([Wt.value]),Ye),delete Et[Wt.value.outlet]}),Object.entries(Et).forEach(([Wt,On])=>me(On,B.getContext(Wt),Ye)),Ye}function me(F,ue,B){const he=hn(F),Ye=F.value;Object.entries(he).forEach(([Et,Wt])=>{me(Wt,Ye.component?ue?ue.children.getContext(Et):null:ue,B)}),B.canDeactivateChecks.push(new $o(Ye.component&&ue&&ue.outlet&&ue.outlet.isActivated?ue.outlet.component:null,Ye))}function qe(F){return"function"==typeof F}function No(F){return F instanceof R.G||"EmptyError"===F?.name}const bi=Symbol("INITIAL_VALUE");function Do(){return(0,Ee.n)(F=>(0,j.z)(F.map(ue=>ue.pipe((0,Ie.s)(1),(0,ce.Z)(bi)))).pipe((0,ee.T)(ue=>{for(const B of ue)if(!0!==B){if(B===bi)return bi;if(!1===B||Ho(B))return B}return!0}),(0,Pe.p)(ue=>ue!==bi),(0,Ie.s)(1)))}function Ho(F){return V(F)||F instanceof es}function Fi(F){return(0,I.F)((0,M.M)(ue=>{if("boolean"!=typeof ue)throw nr(0,ue)}),(0,ee.T)(ue=>!0===ue))}class Nc{constructor(ue){this.segmentGroup=ue||null}}class Ma extends Error{constructor(ue){super(),this.urlTree=ue}}function Vr(F){return(0,w.$)(new Nc(F))}class ls{constructor(ue,B){this.urlSerializer=ue,this.urlTree=B}lineralizeSegments(ue,B){let he=[],Ye=B.root;for(;;){if(he=he.concat(Ye.segments),0===Ye.numberOfChildren)return(0,e.of)(he);if(Ye.numberOfChildren>1||!Ye.children[St])return(0,w.$)(new t.wOt(4e3,!1));Ye=Ye.children[St]}}applyRedirectCommands(ue,B,he,Ye,Et){if("string"!=typeof B){const On=B,{queryParams:yn,fragment:gi,routeConfig:Qi,url:Ji,outlet:Yo,params:Os,data:Ur,title:oo}=Ye,Lo=(0,t.N4e)(Et,()=>On({params:Os,data:Ur,queryParams:yn,fragment:gi,routeConfig:Qi,url:Ji,outlet:Yo,title:oo}));if(Lo instanceof Qe)throw new Ma(Lo);B=Lo}const Wt=this.applyRedirectCreateUrlTree(B,this.urlSerializer.parse(B),ue,he);if("/"===B[0])throw new Ma(Wt);return Wt}applyRedirectCreateUrlTree(ue,B,he,Ye){const Et=this.createSegmentGroup(ue,B.root,he,Ye);return new Qe(Et,this.createQueryParams(B.queryParams,this.urlTree.queryParams),B.fragment)}createQueryParams(ue,B){const he={};return Object.entries(ue).forEach(([Ye,Et])=>{if("string"==typeof Et&&":"===Et[0]){const On=Et.substring(1);he[Ye]=B[On]}else he[Ye]=Et}),he}createSegmentGroup(ue,B,he,Ye){const Et=this.createSegments(ue,B.segments,he,Ye);let Wt={};return Object.entries(B.children).forEach(([On,yn])=>{Wt[On]=this.createSegmentGroup(ue,yn,he,Ye)}),new ht(Et,Wt)}createSegments(ue,B,he,Ye){return B.map(Et=>":"===Et.path[0]?this.findPosParam(ue,Et,Ye):this.findOrReturn(Et,he))}findPosParam(ue,B,he){const Ye=he[B.path.substring(1)];if(!Ye)throw new t.wOt(4001,!1);return Ye}findOrReturn(ue,B){let he=0;for(const Ye of B){if(Ye.path===ue.path)return B.splice(he),Ye;he++}return ue}}const aa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ba(F,ue,B,he,Ye){const Et=Ir(F,ue,B);return Et.matched?(he=function br(F,ue){return F.providers&&!F._injector&&(F._injector=(0,t.Ol2)(F.providers,ue,`Route: ${F.path}`)),F._injector??ue}(ue,he),function La(F,ue,B,he){const Ye=ue.canMatch;if(!Ye||0===Ye.length)return(0,e.of)(!0);const Et=Ye.map(Wt=>{const On=vs(Wt,F);return Ut(function Zi(F){return F&&qe(F.canMatch)}(On)?On.canMatch(ue,B):(0,t.N4e)(F,()=>On(ue,B)))});return(0,e.of)(Et).pipe(Do(),Fi())}(he,ue,B).pipe((0,ee.T)(Wt=>!0===Wt?Et:{...aa}))):(0,e.of)(Et)}function Ir(F,ue,B){if("**"===ue.path)return function Da(F){return{matched:!0,parameters:F.length>0?Mt(F).parameters:{},consumedSegments:F,remainingSegments:[],positionalParamSegments:{}}}(B);if(""===ue.path)return"full"===ue.pathMatch&&(F.hasChildren()||B.length>0)?{...aa}:{matched:!0,consumedSegments:[],remainingSegments:B,parameters:{},positionalParamSegments:{}};const Ye=(ue.matcher||en)(B,F,ue);if(!Ye)return{...aa};const Et={};Object.entries(Ye.posParams??{}).forEach(([On,yn])=>{Et[On]=yn.path});const Wt=Ye.consumed.length>0?{...Et,...Ye.consumed[Ye.consumed.length-1].parameters}:Et;return{matched:!0,consumedSegments:Ye.consumed,remainingSegments:B.slice(Ye.consumed.length),parameters:Wt,positionalParamSegments:Ye.posParams??{}}}function Us(F,ue,B,he){return B.length>0&&function ya(F,ue,B){return B.some(he=>Ui(F,ue,he)&&Ko(he)!==St)}(F,B,he)?{segmentGroup:new ht(ue,cc(he,new ht(B,F.children))),slicedSegments:[]}:0===B.length&&function us(F,ue,B){return B.some(he=>Ui(F,ue,he))}(F,B,he)?{segmentGroup:new ht(F.segments,Es(F,B,he,F.children)),slicedSegments:B}:{segmentGroup:new ht(F.segments,F.children),slicedSegments:B}}function Es(F,ue,B,he){const Ye={};for(const Et of B)if(Ui(F,ue,Et)&&!he[Ko(Et)]){const Wt=new ht([],{});Ye[Ko(Et)]=Wt}return{...he,...Ye}}function cc(F,ue){const B={};B[St]=ue;for(const he of F)if(""===he.path&&Ko(he)!==St){const Ye=new ht([],{});B[Ko(he)]=Ye}return B}function Ui(F,ue,B){return(!(F.hasChildren()||ue.length>0)||"full"!==B.pathMatch)&&""===B.path}class zs{}class Sa{constructor(ue,B,he,Ye,Et,Wt,On){this.injector=ue,this.configLoader=B,this.rootComponentType=he,this.config=Ye,this.urlTree=Et,this.paramsInheritanceStrategy=Wt,this.urlSerializer=On,this.applyRedirects=new ls(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(ue){return new t.wOt(4002,`'${ue.segmentGroup}'`)}recognize(){const ue=Us(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(ue).pipe((0,ee.T)(({children:B,rootSnapshot:he})=>{const Ye=new ln(he,B),Et=new Ti("",Ye),Wt=function Ve(F,ue,B=null,he=null){return J(Ce(F),ue,B,he)}(he,[],this.urlTree.queryParams,this.urlTree.fragment);return Wt.queryParams=this.urlTree.queryParams,Et.url=this.urlSerializer.serialize(Wt),{state:Et,tree:Wt}}))}match(ue){const B=new ai([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),St,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,ue,St,B).pipe((0,ee.T)(he=>({children:he,rootSnapshot:B})),(0,te.W)(he=>{if(he instanceof Ma)return this.urlTree=he.urlTree,this.match(he.urlTree.root);throw he instanceof Nc?this.noMatchError(he):he}))}processSegmentGroup(ue,B,he,Ye,Et){return 0===he.segments.length&&he.hasChildren()?this.processChildren(ue,B,he,Et):this.processSegment(ue,B,he,he.segments,Ye,!0,Et).pipe((0,ee.T)(Wt=>Wt instanceof ln?[Wt]:[]))}processChildren(ue,B,he,Ye){const Et=[];for(const Wt of Object.keys(he.children))"primary"===Wt?Et.unshift(Wt):Et.push(Wt);return(0,m.H)(Et).pipe((0,U.H)(Wt=>{const On=he.children[Wt],yn=function Fs(F,ue){const B=F.filter(he=>Ko(he)===ue);return B.push(...F.filter(he=>Ko(he)!==ue)),B}(B,Wt);return this.processSegmentGroup(ue,yn,On,Wt,Ye)}),(0,ge.S)((Wt,On)=>(Wt.push(...On),Wt)),(0,T.U)(null),function Bt(F,ue){const B=arguments.length>=2;return he=>he.pipe(F?(0,Pe.p)((Ye,Et)=>F(Ye,Et,he)):je.D,X(1),B?(0,T.U)(ue):(0,se.v)(()=>new R.G))}(),(0,ve.Z)(Wt=>{if(null===Wt)return Vr(he);const On=el(Wt);return function hs(F){F.sort((ue,B)=>ue.value.outlet===St?-1:B.value.outlet===St?1:ue.value.outlet.localeCompare(B.value.outlet))}(On),(0,e.of)(On)}))}processSegment(ue,B,he,Ye,Et,Wt,On){return(0,m.H)(B).pipe((0,U.H)(yn=>this.processSegmentAgainstRoute(yn._injector??ue,B,yn,he,Ye,Et,Wt,On).pipe((0,te.W)(gi=>{if(gi instanceof Nc)return(0,e.of)(null);throw gi}))),(0,pe.$)(yn=>!!yn),(0,te.W)(yn=>{if(No(yn))return function $a(F,ue,B){return 0===ue.length&&!F.children[B]}(he,Ye,Et)?(0,e.of)(new zs):Vr(he);throw yn}))}processSegmentAgainstRoute(ue,B,he,Ye,Et,Wt,On,yn){return function Gs(F,ue,B,he){return!!(Ko(F)===he||he!==St&&Ui(ue,B,F))&&Ir(ue,F,B).matched}(he,Ye,Et,Wt)?void 0===he.redirectTo?this.matchSegmentAgainstRoute(ue,Ye,he,Et,Wt,yn):this.allowRedirects&&On?this.expandSegmentAgainstRouteUsingRedirect(ue,Ye,B,he,Et,Wt,yn):Vr(Ye):Vr(Ye)}expandSegmentAgainstRouteUsingRedirect(ue,B,he,Ye,Et,Wt,On){const{matched:yn,parameters:gi,consumedSegments:Qi,positionalParamSegments:Ji,remainingSegments:Yo}=Ir(B,Ye,Et);if(!yn)return Vr(B);"string"==typeof Ye.redirectTo&&"/"===Ye.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Os=new ai(Et,gi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Lr(Ye),Ko(Ye),Ye.component??Ye._loadedComponent??null,Ye,Rs(Ye)),Ur=oi(Os,On,this.paramsInheritanceStrategy);Os.params=Object.freeze(Ur.params),Os.data=Object.freeze(Ur.data);const oo=this.applyRedirects.applyRedirectCommands(Qi,Ye.redirectTo,Ji,Os,ue);return this.applyRedirects.lineralizeSegments(Ye,oo).pipe((0,ve.Z)(Lo=>this.processSegment(ue,he,B,Lo.concat(Yo),Wt,!1,On)))}matchSegmentAgainstRoute(ue,B,he,Ye,Et,Wt){const On=Ba(B,he,Ye,ue);return"**"===he.path&&(B.children={}),On.pipe((0,Ee.n)(yn=>yn.matched?this.getChildConfig(ue=he._injector??ue,he,Ye).pipe((0,Ee.n)(({routes:gi})=>{const Qi=he._loadedInjector??ue,{parameters:Ji,consumedSegments:Yo,remainingSegments:Os}=yn,Ur=new ai(Yo,Ji,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Lr(he),Ko(he),he.component??he._loadedComponent??null,he,Rs(he)),oo=oi(Ur,Wt,this.paramsInheritanceStrategy);Ur.params=Object.freeze(oo.params),Ur.data=Object.freeze(oo.data);const{segmentGroup:Lo,slicedSegments:yr}=Us(B,Yo,Os,gi);if(0===yr.length&&Lo.hasChildren())return this.processChildren(Qi,gi,Lo,Ur).pipe((0,ee.T)(Cr=>new ln(Ur,Cr)));if(0===gi.length&&0===yr.length)return(0,e.of)(new ln(Ur,[]));const Ta=Ko(he)===Et;return this.processSegment(Qi,gi,Lo,yr,Ta?St:Et,!0,Ur).pipe((0,ee.T)(Cr=>new ln(Ur,Cr instanceof ln?[Cr]:[])))})):Vr(B)))}getChildConfig(ue,B,he){return B.children?(0,e.of)({routes:B.children,injector:ue}):B.loadChildren?void 0!==B._loadedRoutes?(0,e.of)({routes:B._loadedRoutes,injector:B._loadedInjector}):function jo(F,ue,B,he){const Ye=ue.canLoad;if(void 0===Ye||0===Ye.length)return(0,e.of)(!0);const Et=Ye.map(Wt=>{const On=vs(Wt,F);return Ut(function pn(F){return F&&qe(F.canLoad)}(On)?On.canLoad(ue,B):(0,t.N4e)(F,()=>On(ue,B)))});return(0,e.of)(Et).pipe(Do(),Fi())}(ue,B,he).pipe((0,ve.Z)(Ye=>Ye?this.configLoader.loadChildren(ue,B).pipe((0,M.M)(Et=>{B._loadedRoutes=Et.routes,B._loadedInjector=Et.injector})):function _a(F){return(0,w.$)(wr(!1,En.GuardRejected))}())):(0,e.of)({routes:[],injector:ue})}}function pu(F){const ue=F.value.routeConfig;return ue&&""===ue.path}function el(F){const ue=[],B=new Set;for(const he of F){if(!pu(he)){ue.push(he);continue}const Ye=ue.find(Et=>he.value.routeConfig===Et.value.routeConfig);void 0!==Ye?(Ye.children.push(...he.children),B.add(Ye)):ue.push(he)}for(const he of B){const Ye=el(he.children);ue.push(new ln(he.value,Ye))}return ue.filter(he=>!B.has(he))}function Lr(F){return F.data||{}}function Rs(F){return F.resolve||{}}function kc(F){const ue=F.children.map(B=>kc(B)).flat();return[F,...ue]}function eo(F){return(0,Ee.n)(ue=>{const B=F(ue);return B?(0,m.H)(B).pipe((0,ee.T)(()=>ue)):(0,e.of)(ue)})}let vo=(()=>{class F{buildTitle(B){let he,Ye=B.root;for(;void 0!==Ye;)he=this.getResolvedTitleForRoute(Ye)??he,Ye=Ye.children.find(Et=>Et.outlet===St);return he}getResolvedTitleForRoute(B){return B.data[kt]}static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:()=>(0,t.WQX)(uc),providedIn:"root"})}return F})(),uc=(()=>{class F extends vo{constructor(B){super(),this.title=B}updateTitle(B){const he=this.buildTitle(B);void 0!==he&&this.title.setTitle(he)}static#e=this.\u0275fac=function(he){return new(he||F)(t.KVO(ft.hE))};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();const ba=new t.nKC("",{providedIn:"root",factory:()=>({})});let Vc=(()=>{class F{static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275cmp=t.VBU({type:F,selectors:[["ng-component"]],standalone:!0,features:[t.aNF],decls:1,vars:0,template:function(he,Ye){1&he&&t.nrm(0,"router-outlet")},dependencies:[co],encapsulation:2})}return F})();function Lc(F){const ue=F.children&&F.children.map(Lc),B=ue?{...F,children:ue}:{...F};return!B.component&&!B.loadComponent&&(ue||B.loadChildren)&&B.outlet&&B.outlet!==St&&(B.component=Vc),B}const ks=new t.nKC("");let Ys=(()=>{class F{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.WQX)(t.Ql9)}loadComponent(B){if(this.componentLoaders.get(B))return this.componentLoaders.get(B);if(B._loadedComponent)return(0,e.of)(B._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(B);const he=Ut(B.loadComponent()).pipe((0,ee.T)(we),(0,M.M)(Et=>{this.onLoadEndListener&&this.onLoadEndListener(B),B._loadedComponent=Et}),(0,Vt.j)(()=>{this.componentLoaders.delete(B)})),Ye=new Q.G(he,()=>new N.B).pipe((0,He.B)());return this.componentLoaders.set(B,Ye),Ye}loadChildren(B,he){if(this.childrenLoaders.get(he))return this.childrenLoaders.get(he);if(he._loadedRoutes)return(0,e.of)({routes:he._loadedRoutes,injector:he._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(he);const Et=function pt(F,ue,B,he){return Ut(F.loadChildren()).pipe((0,ee.T)(we),(0,ve.Z)(Ye=>Ye instanceof t.Co$||Array.isArray(Ye)?(0,e.of)(Ye):(0,m.H)(ue.compileModuleAsync(Ye))),(0,ee.T)(Ye=>{he&&he(F);let Et,Wt,On=!1;return Array.isArray(Ye)?(Wt=Ye,!0):(Et=Ye.create(B).injector,Wt=Et.get(ks,[],{optional:!0,self:!0}).flat()),{routes:Wt.map(Lc),injector:Et}}))}(he,this.compiler,B,this.onLoadEndListener).pipe((0,Vt.j)(()=>{this.childrenLoaders.delete(he)})),Wt=new Q.G(Et,()=>new N.B).pipe((0,He.B)());return this.childrenLoaders.set(he,Wt),Wt}static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();function we(F){return function ot(F){return F&&"object"==typeof F&&"default"in F}(F)?F.default:F}let Fe=(()=>{class F{static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:()=>(0,t.WQX)(fe),providedIn:"root"})}return F})(),fe=(()=>{class F{shouldProcessUrl(B){return!0}extract(B){return B}merge(B,he){return B}static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();const rt=new t.nKC(""),Ue=new t.nKC("");function Xn(F,ue,B){const he=F.get(Ue),Ye=F.get(oe.qQ);return F.get(t.SKi).runOutsideAngular(()=>{if(!Ye.startViewTransition||he.skipNextTransition)return he.skipNextTransition=!1,new Promise(gi=>setTimeout(gi));let Et;const Wt=new Promise(gi=>{Et=gi}),On=Ye.startViewTransition(()=>(Et(),function Di(F){return new Promise(ue=>{(0,t.mal)({read:()=>setTimeout(ue)},{injector:F})})}(F))),{onViewTransitionCreated:yn}=he;return yn&&(0,t.N4e)(F,()=>yn({transition:On,from:ue,to:B})),Wt})}const L=new t.nKC("");let tt=(()=>{class F{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new N.B,this.transitionAbortSubject=new N.B,this.configLoader=(0,t.WQX)(Ys),this.environmentInjector=(0,t.WQX)(t.uvJ),this.urlSerializer=(0,t.WQX)(Gn),this.rootContexts=(0,t.WQX)($e),this.location=(0,t.WQX)(oe.aZ),this.inputBindingEnabled=null!==(0,t.WQX)(go,{optional:!0}),this.titleStrategy=(0,t.WQX)(vo),this.options=(0,t.WQX)(ba,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,t.WQX)(Fe),this.createViewTransition=(0,t.WQX)(rt,{optional:!0}),this.navigationErrorHandler=(0,t.WQX)(L,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,e.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ye=>this.events.next(new Ki(Ye)),this.configLoader.onLoadStartListener=Ye=>this.events.next(new Ei(Ye))}complete(){this.transitions?.complete()}handleNavigationRequest(B){const he=++this.navigationId;this.transitions?.next({...this.transitions.value,...B,id:he})}setupNavigations(B,he,Ye){return this.transitions=new z.t({id:0,currentUrlTree:he,currentRawUrl:he,extractedUrl:this.urlHandlingStrategy.extract(he),urlAfterRedirects:this.urlHandlingStrategy.extract(he),rawUrl:he,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:pr,restoredState:null,currentSnapshot:Ye.snapshot,targetSnapshot:null,currentRouterState:Ye,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Pe.p)(Et=>0!==Et.id),(0,ee.T)(Et=>({...Et,extractedUrl:this.urlHandlingStrategy.extract(Et.rawUrl)})),(0,Ee.n)(Et=>{let Wt=!1,On=!1;return(0,e.of)(Et).pipe((0,Ee.n)(yn=>{if(this.navigationId>Et.id)return this.cancelNavigationTransition(Et,"",En.SupersededByNewNavigation),P.w;this.currentTransition=Et,this.currentNavigation={id:yn.id,initialUrl:yn.rawUrl,extractedUrl:yn.extractedUrl,targetBrowserUrl:"string"==typeof yn.extras.browserUrl?this.urlSerializer.parse(yn.extras.browserUrl):yn.extras.browserUrl,trigger:yn.source,extras:yn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const gi=!B.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!gi&&"reload"!==(yn.extras.onSameUrlNavigation??B.onSameUrlNavigation)){const Ji="";return this.events.next(new Fn(yn.id,this.urlSerializer.serialize(yn.rawUrl),Ji,ii.IgnoredSameUrlNavigation)),yn.resolve(!1),P.w}if(this.urlHandlingStrategy.shouldProcessUrl(yn.rawUrl))return(0,e.of)(yn).pipe((0,Ee.n)(Ji=>{const Yo=this.transitions?.getValue();return this.events.next(new Pt(Ji.id,this.urlSerializer.serialize(Ji.extractedUrl),Ji.source,Ji.restoredState)),Yo!==this.transitions?.getValue()?P.w:Promise.resolve(Ji)}),function ja(F,ue,B,he,Ye,Et){return(0,ve.Z)(Wt=>function Ha(F,ue,B,he,Ye,Et,Wt="emptyOnly"){return new Sa(F,ue,B,he,Ye,Wt,Et).recognize()}(F,ue,B,he,Wt.extractedUrl,Ye,Et).pipe((0,ee.T)(({state:On,tree:yn})=>({...Wt,targetSnapshot:On,urlAfterRedirects:yn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,B.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,M.M)(Ji=>{Et.targetSnapshot=Ji.targetSnapshot,Et.urlAfterRedirects=Ji.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ji.urlAfterRedirects};const Yo=new xi(Ji.id,this.urlSerializer.serialize(Ji.extractedUrl),this.urlSerializer.serialize(Ji.urlAfterRedirects),Ji.targetSnapshot);this.events.next(Yo)}));if(gi&&this.urlHandlingStrategy.shouldProcessUrl(yn.currentRawUrl)){const{id:Ji,extractedUrl:Yo,source:Os,restoredState:Ur,extras:oo}=yn,Lo=new Pt(Ji,this.urlSerializer.serialize(Yo),Os,Ur);this.events.next(Lo);const yr=Rn(this.rootComponentType).snapshot;return this.currentTransition=Et={...yn,targetSnapshot:yr,urlAfterRedirects:Yo,extras:{...oo,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Yo,(0,e.of)(Et)}{const Ji="";return this.events.next(new Fn(yn.id,this.urlSerializer.serialize(yn.extractedUrl),Ji,ii.IgnoredByUrlHandlingStrategy)),yn.resolve(!1),P.w}}),(0,M.M)(yn=>{const gi=new Hi(yn.id,this.urlSerializer.serialize(yn.extractedUrl),this.urlSerializer.serialize(yn.urlAfterRedirects),yn.targetSnapshot);this.events.next(gi)}),(0,ee.T)(yn=>(this.currentTransition=Et={...yn,guards:cs(yn.targetSnapshot,yn.currentSnapshot,this.rootContexts)},Et)),function ys(F,ue){return(0,ve.Z)(B=>{const{targetSnapshot:he,currentSnapshot:Ye,guards:{canActivateChecks:Et,canDeactivateChecks:Wt}}=B;return 0===Wt.length&&0===Et.length?(0,e.of)({...B,guardsResult:!0}):function Be(F,ue,B,he){return(0,m.H)(F).pipe((0,ve.Z)(Ye=>function ho(F,ue,B,he,Ye){const Et=ue&&ue.routeConfig?ue.routeConfig.canDeactivate:null;if(!Et||0===Et.length)return(0,e.of)(!0);const Wt=Et.map(On=>{const yn=st(ue)??Ye,gi=vs(On,yn);return Ut(function wi(F){return F&&qe(F.canDeactivate)}(gi)?gi.canDeactivate(F,ue,B,he):(0,t.N4e)(yn,()=>gi(F,ue,B,he))).pipe((0,pe.$)())});return(0,e.of)(Wt).pipe(Do())}(Ye.component,Ye.route,B,ue,he)),(0,pe.$)(Ye=>!0!==Ye,!0))}(Wt,he,Ye,F).pipe((0,ve.Z)(On=>On&&function gt(F){return"boolean"==typeof F}(On)?function Ke(F,ue,B,he){return(0,m.H)(ue).pipe((0,U.H)(Ye=>(0,$.x)(function Ct(F,ue){return null!==F&&ue&&ue(new Vi(F)),(0,e.of)(!0)}(Ye.route.parent,he),function be(F,ue){return null!==F&&ue&&ue(new Go(F)),(0,e.of)(!0)}(Ye.route,he),function ji(F,ue,B){const he=ue[ue.length-1],Et=ue.slice(0,ue.length-1).reverse().map(Wt=>function Ro(F){const ue=F.routeConfig?F.routeConfig.canActivateChild:null;return ue&&0!==ue.length?{node:F,guards:ue}:null}(Wt)).filter(Wt=>null!==Wt).map(Wt=>(0,k.v)(()=>{const On=Wt.guards.map(yn=>{const gi=st(Wt.node)??B,Qi=vs(yn,gi);return Ut(function ti(F){return F&&qe(F.canActivateChild)}(Qi)?Qi.canActivateChild(he,F):(0,t.N4e)(gi,()=>Qi(he,F))).pipe((0,pe.$)())});return(0,e.of)(On).pipe(Do())}));return(0,e.of)(Et).pipe(Do())}(F,Ye.path,B),function sn(F,ue,B){const he=ue.routeConfig?ue.routeConfig.canActivate:null;if(!he||0===he.length)return(0,e.of)(!0);const Ye=he.map(Et=>(0,k.v)(()=>{const Wt=st(ue)??B,On=vs(Et,Wt);return Ut(function ei(F){return F&&qe(F.canActivate)}(On)?On.canActivate(ue,F):(0,t.N4e)(Wt,()=>On(ue,F))).pipe((0,pe.$)())}));return(0,e.of)(Ye).pipe(Do())}(F,Ye.route,B))),(0,pe.$)(Ye=>!0!==Ye,!0))}(he,Et,F,ue):(0,e.of)(On)),(0,ee.T)(On=>({...B,guardsResult:On})))})}(this.environmentInjector,yn=>this.events.next(yn)),(0,M.M)(yn=>{if(Et.guardsResult=yn.guardsResult,yn.guardsResult&&"boolean"!=typeof yn.guardsResult)throw nr(0,yn.guardsResult);const gi=new Mi(yn.id,this.urlSerializer.serialize(yn.extractedUrl),this.urlSerializer.serialize(yn.urlAfterRedirects),yn.targetSnapshot,!!yn.guardsResult);this.events.next(gi)}),(0,Pe.p)(yn=>!!yn.guardsResult||(this.cancelNavigationTransition(yn,"",En.GuardRejected),!1)),eo(yn=>{if(yn.guards.canActivateChecks.length)return(0,e.of)(yn).pipe((0,M.M)(gi=>{const Qi=new gn(gi.id,this.urlSerializer.serialize(gi.extractedUrl),this.urlSerializer.serialize(gi.urlAfterRedirects),gi.targetSnapshot);this.events.next(Qi)}),(0,Ee.n)(gi=>{let Qi=!1;return(0,e.of)(gi).pipe(function Ca(F,ue){return(0,ve.Z)(B=>{const{targetSnapshot:he,guards:{canActivateChecks:Ye}}=B;if(!Ye.length)return(0,e.of)(B);const Et=new Set(Ye.map(yn=>yn.route)),Wt=new Set;for(const yn of Et)if(!Wt.has(yn))for(const gi of kc(yn))Wt.add(gi);let On=0;return(0,m.H)(Wt).pipe((0,U.H)(yn=>Et.has(yn)?function Ns(F,ue,B,he){const Ye=F.routeConfig,Et=F._resolve;return void 0!==Ye?.title&&!ki(Ye)&&(Et[kt]=Ye.title),function Ua(F,ue,B,he){const Ye=Jn(F);if(0===Ye.length)return(0,e.of)({});const Et={};return(0,m.H)(Ye).pipe((0,ve.Z)(Wt=>function lc(F,ue,B,he){const Ye=st(ue)??he,Et=vs(F,Ye);return Ut(Et.resolve?Et.resolve(ue,B):(0,t.N4e)(Ye,()=>Et(ue,B)))}(F[Wt],ue,B,he).pipe((0,pe.$)(),(0,M.M)(On=>{if(On instanceof es)throw nr(new $n,On);Et[Wt]=On}))),X(1),(0,Tt.u)(Et),(0,te.W)(Wt=>No(Wt)?P.w:(0,w.$)(Wt)))}(Et,F,ue,he).pipe((0,ee.T)(Wt=>(F._resolvedData=Wt,F.data=oi(F,F.parent,B).resolve,null)))}(yn,he,F,ue):(yn.data=oi(yn,yn.parent,F).resolve,(0,e.of)(void 0))),(0,M.M)(()=>On++),X(1),(0,ve.Z)(yn=>On===Wt.size?(0,e.of)(B):P.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,M.M)({next:()=>Qi=!0,complete:()=>{Qi||this.cancelNavigationTransition(gi,"",En.NoDataFromResolver)}}))}),(0,M.M)(gi=>{const Qi=new Si(gi.id,this.urlSerializer.serialize(gi.extractedUrl),this.urlSerializer.serialize(gi.urlAfterRedirects),gi.targetSnapshot);this.events.next(Qi)}))}),eo(yn=>{const gi=Qi=>{const Ji=[];Qi.routeConfig?.loadComponent&&!Qi.routeConfig._loadedComponent&&Ji.push(this.configLoader.loadComponent(Qi.routeConfig).pipe((0,M.M)(Yo=>{Qi.component=Yo}),(0,ee.T)(()=>{})));for(const Yo of Qi.children)Ji.push(...gi(Yo));return Ji};return(0,j.z)(gi(yn.targetSnapshot.root)).pipe((0,T.U)(null),(0,Ie.s)(1))}),eo(()=>this.afterPreactivation()),(0,Ee.n)(()=>{const{currentSnapshot:yn,targetSnapshot:gi}=Et,Qi=this.createViewTransition?.(this.environmentInjector,yn.root,gi.root);return Qi?(0,m.H)(Qi).pipe((0,ee.T)(()=>Et)):(0,e.of)(Et)}),(0,ee.T)(yn=>{const gi=function yo(F,ue,B){const he=Yn(F,ue._root,B?B._root:void 0);return new xn(he,ue)}(B.routeReuseStrategy,yn.targetSnapshot,yn.currentRouterState);return this.currentTransition=Et={...yn,targetRouterState:gi},this.currentNavigation.targetRouterState=gi,Et}),(0,M.M)(()=>{this.events.next(new lr)}),((F,ue,B,he)=>(0,ee.T)(Ye=>(new As(ue,Ye.targetRouterState,Ye.currentRouterState,B,he).activate(F),Ye)))(this.rootContexts,B.routeReuseStrategy,yn=>this.events.next(yn),this.inputBindingEnabled),(0,Ie.s)(1),(0,M.M)({next:yn=>{Wt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Mn(yn.id,this.urlSerializer.serialize(yn.extractedUrl),this.urlSerializer.serialize(yn.urlAfterRedirects))),this.titleStrategy?.updateTitle(yn.targetRouterState.snapshot),yn.resolve(!0)},complete:()=>{Wt=!0}}),(0,xt.Q)(this.transitionAbortSubject.pipe((0,M.M)(yn=>{throw yn}))),(0,Vt.j)(()=>{!Wt&&!On&&this.cancelNavigationTransition(Et,"",En.SupersededByNewNavigation),this.currentTransition?.id===Et.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,te.W)(yn=>{if(On=!0,Er(yn))this.events.next(new Pn(Et.id,this.urlSerializer.serialize(Et.extractedUrl),yn.message,yn.cancellationCode)),function gr(F){return Er(F)&&V(F.url)}(yn)?this.events.next(new zo(yn.url,yn.navigationBehaviorOptions)):Et.resolve(!1);else{const gi=new hi(Et.id,this.urlSerializer.serialize(Et.extractedUrl),yn,Et.targetSnapshot??void 0);try{const Qi=(0,t.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(gi));if(Qi instanceof es){const{message:Ji,cancellationCode:Yo}=nr(0,Qi);this.events.next(new Pn(Et.id,this.urlSerializer.serialize(Et.extractedUrl),Ji,Yo)),this.events.next(new zo(Qi.redirectTo,Qi.navigationBehaviorOptions))}else{this.events.next(gi);const Ji=B.errorHandler(yn);Et.resolve(!!Ji)}}catch(Qi){this.options.resolveNavigationPromiseOnError?Et.resolve(!1):Et.reject(Qi)}}return P.w}))}))}cancelNavigationTransition(B,he,Ye){const Et=new Pn(B.id,this.urlSerializer.serialize(B.extractedUrl),he,Ye);this.events.next(Et),B.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const B=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),he=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return B.toString()!==he?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();function ye(F){return F!==pr}let Ge=(()=>{class F{static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:()=>(0,t.WQX)(_n),providedIn:"root"})}return F})();class jt{shouldDetach(ue){return!1}store(ue,B){}shouldAttach(ue){return!1}retrieve(ue){return null}shouldReuseRoute(ue,B){return ue.routeConfig===B.routeConfig}}let _n=(()=>{class F extends jt{static#e=this.\u0275fac=(()=>{let B;return function(Ye){return(B||(B=t.xGo(F)))(Ye||F)}})();static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})(),Vn=(()=>{class F{static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:()=>(0,t.WQX)(pi),providedIn:"root"})}return F})(),pi=(()=>{class F extends Vn{constructor(){super(...arguments),this.location=(0,t.WQX)(oe.aZ),this.urlSerializer=(0,t.WQX)(Gn),this.options=(0,t.WQX)(ba,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,t.WQX)(Fe),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Qe,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Rn(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(B){return this.location.subscribe(he=>{"popstate"===he.type&&B(he.url,he.state)})}handleRouterEvent(B,he){if(B instanceof Pt)this.stateMemento=this.createStateMemento();else if(B instanceof Fn)this.rawUrlTree=he.initialUrl;else if(B instanceof xi){if("eager"===this.urlUpdateStrategy&&!he.extras.skipLocationChange){const Ye=this.urlHandlingStrategy.merge(he.finalUrl,he.initialUrl);this.setBrowserUrl(he.targetBrowserUrl??Ye,he)}}else B instanceof lr?(this.currentUrlTree=he.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(he.finalUrl,he.initialUrl),this.routerState=he.targetRouterState,"deferred"===this.urlUpdateStrategy&&!he.extras.skipLocationChange&&this.setBrowserUrl(he.targetBrowserUrl??this.rawUrlTree,he)):B instanceof Pn&&(B.code===En.GuardRejected||B.code===En.NoDataFromResolver)?this.restoreHistory(he):B instanceof hi?this.restoreHistory(he,!0):B instanceof Mn&&(this.lastSuccessfulId=B.id,this.currentPageId=this.browserPageId)}setBrowserUrl(B,he){const Ye=B instanceof Qe?this.urlSerializer.serialize(B):B;if(this.location.isCurrentPathEqualTo(Ye)||he.extras.replaceUrl){const Wt={...he.extras.state,...this.generateNgRouterState(he.id,this.browserPageId)};this.location.replaceState(Ye,"",Wt)}else{const Et={...he.extras.state,...this.generateNgRouterState(he.id,this.browserPageId+1)};this.location.go(Ye,"",Et)}}restoreHistory(B,he=!1){if("computed"===this.canceledNavigationResolution){const Et=this.currentPageId-this.browserPageId;0!==Et?this.location.historyGo(Et):this.currentUrlTree===B.finalUrl&&0===Et&&(this.resetState(B),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(he&&this.resetState(B),this.resetUrlToCurrentUrlTree())}resetState(B){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,B.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(B,he){return"computed"===this.canceledNavigationResolution?{navigationId:B,\u0275routerPageId:he}:{navigationId:B}}static#e=this.\u0275fac=(()=>{let B;return function(Ye){return(B||(B=t.xGo(F)))(Ye||F)}})();static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var po=function(F){return F[F.COMPLETE=0]="COMPLETE",F[F.FAILED=1]="FAILED",F[F.REDIRECTING=2]="REDIRECTING",F}(po||{});function Yi(F,ue){F.events.pipe((0,Pe.p)(B=>B instanceof Mn||B instanceof Pn||B instanceof hi||B instanceof Fn),(0,ee.T)(B=>B instanceof Mn||B instanceof Fn?po.COMPLETE:B instanceof Pn&&(B.code===En.Redirect||B.code===En.SupersededByNewNavigation)?po.REDIRECTING:po.FAILED),(0,Pe.p)(B=>B!==po.REDIRECTING),(0,Ie.s)(1)).subscribe(()=>{ue()})}function bo(F){throw F}const Qn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Li=(()=>{class F{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=(0,t.WQX)(t.H3F),this.stateManager=(0,t.WQX)(Vn),this.options=(0,t.WQX)(ba,{optional:!0})||{},this.pendingTasks=(0,t.WQX)(t.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,t.WQX)(tt),this.urlSerializer=(0,t.WQX)(Gn),this.location=(0,t.WQX)(oe.aZ),this.urlHandlingStrategy=(0,t.WQX)(Fe),this._events=new N.B,this.errorHandler=this.options.errorHandler||bo,this.navigated=!1,this.routeReuseStrategy=(0,t.WQX)(Ge),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,t.WQX)(ks,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,t.WQX)(go,{optional:!0}),this.eventsSubscription=new x.yU,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:B=>{this.console.warn(B)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const B=this.navigationTransitions.events.subscribe(he=>{try{const Ye=this.navigationTransitions.currentTransition,Et=this.navigationTransitions.currentNavigation;if(null!==Ye&&null!==Et)if(this.stateManager.handleRouterEvent(he,Et),he instanceof Pn&&he.code!==En.Redirect&&he.code!==En.SupersededByNewNavigation)this.navigated=!0;else if(he instanceof Mn)this.navigated=!0;else if(he instanceof zo){const Wt=he.navigationBehaviorOptions,On=this.urlHandlingStrategy.merge(he.url,Ye.currentRawUrl),yn={browserUrl:Ye.extras.browserUrl,info:Ye.extras.info,skipLocationChange:Ye.extras.skipLocationChange,replaceUrl:Ye.extras.replaceUrl||"eager"===this.urlUpdateStrategy||ye(Ye.source),...Wt};this.scheduleNavigation(On,pr,null,yn,{resolve:Ye.resolve,reject:Ye.reject,promise:Ye.promise})}(function ur(F){return!(F instanceof lr||F instanceof zo)})(he)&&this._events.next(he)}catch(Ye){this.navigationTransitions.transitionAbortSubject.next(Ye)}});this.eventsSubscription.add(B)}resetRootComponentType(B){this.routerState.root.component=B,this.navigationTransitions.rootComponentType=B}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),pr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((B,he)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(B,"popstate",he)},0)})}navigateToSyncWithBrowser(B,he,Ye){const Et={replaceUrl:!0},Wt=Ye?.navigationId?Ye:null;if(Ye){const yn={...Ye};delete yn.navigationId,delete yn.\u0275routerPageId,0!==Object.keys(yn).length&&(Et.state=yn)}const On=this.parseUrl(B);this.scheduleNavigation(On,he,Wt,Et)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(B){this.config=B.map(Lc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(B,he={}){const{relativeTo:Ye,queryParams:Et,fragment:Wt,queryParamsHandling:On,preserveFragment:yn}=he,gi=yn?this.currentUrlTree.fragment:Wt;let Ji,Qi=null;switch(On){case"merge":Qi={...this.currentUrlTree.queryParams,...Et};break;case"preserve":Qi=this.currentUrlTree.queryParams;break;default:Qi=Et||null}null!==Qi&&(Qi=this.removeEmptyProps(Qi));try{Ji=Ce(Ye?Ye.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof B[0]||"/"!==B[0][0])&&(B=[]),Ji=this.currentUrlTree.root}return J(Ji,B,Qi,gi??null)}navigateByUrl(B,he={skipLocationChange:!1}){const Ye=V(B)?B:this.parseUrl(B),Et=this.urlHandlingStrategy.merge(Ye,this.rawUrlTree);return this.scheduleNavigation(Et,pr,null,he)}navigate(B,he={skipLocationChange:!1}){return function To(F){for(let ue=0;ue(null!=Et&&(he[Ye]=Et),he),{})}scheduleNavigation(B,he,Ye,Et,Wt){if(this.disposed)return Promise.resolve(!1);let On,yn,gi;Wt?(On=Wt.resolve,yn=Wt.reject,gi=Wt.promise):gi=new Promise((Ji,Yo)=>{On=Ji,yn=Yo});const Qi=this.pendingTasks.add();return Yi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Qi))}),this.navigationTransitions.handleNavigationRequest({source:he,restoredState:Ye,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:B,extras:Et,resolve:On,reject:yn,promise:gi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),gi.catch(Ji=>Promise.reject(Ji))}static#e=this.\u0275fac=function(he){return new(he||F)};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})(),ir=(()=>{class F{constructor(B,he,Ye,Et,Wt,On){this.router=B,this.route=he,this.tabIndexAttribute=Ye,this.renderer=Et,this.el=Wt,this.locationStrategy=On,this.href=null,this.onChanges=new N.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const yn=Wt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===yn||"area"===yn,this.isAnchorElement?this.subscription=B.events.subscribe(gi=>{gi instanceof Mn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(B){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",B)}ngOnChanges(B){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(B){null==B?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=V(B)||Array.isArray(B)?B:[B],this.setTabIndexIfNotOnNativeEl("0"))}onClick(B,he,Ye,Et,Wt){const On=this.urlTree;return!!(null===On||this.isAnchorElement&&(0!==B||he||Ye||Et||Wt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(On,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const B=this.urlTree;this.href=null!==B&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(B)):null;const he=null===this.href?null:(0,t.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",he)}applyAttributeValue(B,he){const Ye=this.renderer,Et=this.el.nativeElement;null!==he?Ye.setAttribute(Et,B,he):Ye.removeAttribute(Et,B)}get urlTree(){return null===this.routerLinkInput?null:V(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(he){return new(he||F)(t.rXU(Li),t.rXU(jn),t.kS0("tabindex"),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(oe.hb))};static#t=this.\u0275dir=t.FsC({type:F,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(he,Ye){1&he&&t.bIt("click",function(Wt){return Ye.onClick(Wt.button,Wt.ctrlKey,Wt.shiftKey,Wt.altKey,Wt.metaKey)}),2&he&&t.BMQ("target",Ye.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",t.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",t.L39],replaceUrl:[2,"replaceUrl","replaceUrl",t.L39],routerLink:"routerLink"},standalone:!0,features:[t.GFd,t.OA$]})}return F})(),xr=(()=>{class F{get isActive(){return this._isActive}constructor(B,he,Ye,Et,Wt){this.router=B,this.element=he,this.renderer=Ye,this.cdr=Et,this.link=Wt,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.bkB,this.routerEventsSubscription=B.events.subscribe(On=>{On instanceof Mn&&this.update()})}ngAfterContentInit(){(0,e.of)(this.links.changes,(0,e.of)(null)).pipe((0,Lt.U)()).subscribe(B=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const B=[...this.links.toArray(),this.link].filter(he=>!!he).map(he=>he.onChanges);this.linkInputChangesSubscription=(0,m.H)(B).pipe((0,Lt.U)()).subscribe(he=>{this._isActive!==this.isLinkActive(this.router)(he)&&this.update()})}set routerLinkActive(B){const he=Array.isArray(B)?B:B.split(" ");this.classes=he.filter(Ye=>!!Ye)}ngOnChanges(B){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const B=this.hasActiveLinks();this.classes.forEach(he=>{B?this.renderer.addClass(this.element.nativeElement,he):this.renderer.removeClass(this.element.nativeElement,he)}),B&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==B&&(this._isActive=B,this.cdr.markForCheck(),this.isActiveChange.emit(B))})}isLinkActive(B){const he=function Hr(F){return!!F.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Ye=>{const Et=Ye.urlTree;return!!Et&&B.isActive(Et,he)}}hasActiveLinks(){const B=this.isLinkActive(this.router);return this.link&&B(this.link)||this.links.some(B)}static#e=this.\u0275fac=function(he){return new(he||F)(t.rXU(Li),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(t.gRc),t.rXU(ir,8))};static#t=this.\u0275dir=t.FsC({type:F,selectors:[["","routerLinkActive",""]],contentQueries:function(he,Ye,Et){if(1&he&&t.wni(Et,ir,5),2&he){let Wt;t.mGM(Wt=t.lsd())&&(Ye.links=Wt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.OA$]})}return F})();class zr{}let fr=(()=>{class F{constructor(B,he,Ye,Et,Wt){this.router=B,this.injector=Ye,this.preloadingStrategy=Et,this.loader=Wt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Pe.p)(B=>B instanceof Mn),(0,U.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(B,he){const Ye=[];for(const Et of he){Et.providers&&!Et._injector&&(Et._injector=(0,t.Ol2)(Et.providers,B,`Route: ${Et.path}`));const Wt=Et._injector??B,On=Et._loadedInjector??Wt;(Et.loadChildren&&!Et._loadedRoutes&&void 0===Et.canLoad||Et.loadComponent&&!Et._loadedComponent)&&Ye.push(this.preloadConfig(Wt,Et)),(Et.children||Et._loadedRoutes)&&Ye.push(this.processRoutes(On,Et.children??Et._loadedRoutes))}return(0,m.H)(Ye).pipe((0,Lt.U)())}preloadConfig(B,he){return this.preloadingStrategy.preload(he,()=>{let Ye;Ye=he.loadChildren&&void 0===he.canLoad?this.loader.loadChildren(B,he):(0,e.of)(null);const Et=Ye.pipe((0,ve.Z)(Wt=>null===Wt?(0,e.of)(void 0):(he._loadedRoutes=Wt.routes,he._loadedInjector=Wt.injector,this.processRoutes(Wt.injector??B,Wt.routes))));if(he.loadComponent&&!he._loadedComponent){const Wt=this.loader.loadComponent(he);return(0,m.H)([Et,Wt]).pipe((0,Lt.U)())}return Et})}static#e=this.\u0275fac=function(he){return new(he||F)(t.KVO(Li),t.KVO(t.Ql9),t.KVO(t.uvJ),t.KVO(zr),t.KVO(Ys))};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();const or=new t.nKC("");let Ms=(()=>{class F{constructor(B,he,Ye,Et,Wt={}){this.urlSerializer=B,this.transitions=he,this.viewportScroller=Ye,this.zone=Et,this.options=Wt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Wt.scrollPositionRestoration||="disabled",Wt.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(B=>{B instanceof Pt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=B.navigationTrigger,this.restoredId=B.restoredState?B.restoredState.navigationId:0):B instanceof Mn?(this.lastId=B.id,this.scheduleScrollEvent(B,this.urlSerializer.parse(B.urlAfterRedirects).fragment)):B instanceof Fn&&B.code===ii.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(B,this.urlSerializer.parse(B.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(B=>{B instanceof tr&&(B.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(B.position):B.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(B.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(B,he){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new tr(B,"popstate"===this.lastSource?this.store[this.restoredId]:null,he))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(he){t.QTQ()};static#t=this.\u0275prov=t.jDH({token:F,factory:F.\u0275fac})}return F})();function fo(F,ue){return{\u0275kind:F,\u0275providers:ue}}function Ga(){const F=(0,t.WQX)(t.zZn);return ue=>{const B=F.get(t.o8S);if(ue!==B.components[0])return;const he=F.get(Li),Ye=F.get(Sl);1===F.get(Mr)&&he.initialNavigation(),F.get(ca,null,t.$GK.Optional)?.setUpPreloading(),F.get(or,null,t.$GK.Optional)?.init(),he.resetRootComponentType(B.componentTypes[0]),Ye.closed||(Ye.next(),Ye.complete(),Ye.unsubscribe())}}const Sl=new t.nKC("",{factory:()=>new N.B}),Mr=new t.nKC("",{providedIn:"root",factory:()=>1}),ca=new t.nKC("");function Wr(F){return fo(0,[{provide:ca,useExisting:fr},{provide:zr,useExisting:F}])}function wa(F){return fo(9,[{provide:rt,useValue:Xn},{provide:Ue,useValue:{skipNextTransition:!!F?.skipInitialTransition,...F}}])}const Ks=new t.nKC("ROUTER_FORROOT_GUARD"),Xs=[oe.aZ,{provide:Gn,useClass:$n},Li,$e,{provide:jn,useFactory:function ns(F){return F.routerState.root},deps:[Li]},Ys,[]];let mu=(()=>{class F{constructor(B){}static forRoot(B,he){return{ngModule:F,providers:[Xs,[],{provide:ks,multi:!0,useValue:B},{provide:Ks,useFactory:Wa,deps:[[Li,new t.Xx1,new t.kdw]]},{provide:ba,useValue:he||{}},he?.useHash?{provide:oe.hb,useClass:oe.fw}:{provide:oe.hb,useClass:oe.Sm},{provide:or,useFactory:()=>{const F=(0,t.WQX)(oe.Xr),ue=(0,t.WQX)(t.SKi),B=(0,t.WQX)(ba),he=(0,t.WQX)(tt),Ye=(0,t.WQX)(Gn);return B.scrollOffset&&F.setOffset(B.scrollOffset),new Ms(Ye,he,F,ue,B)}},he?.preloadingStrategy?Wr(he.preloadingStrategy).\u0275providers:[],he?.initialNavigation?il(he):[],he?.bindToComponentInputs?fo(8,[_o,{provide:go,useExisting:_o}]).\u0275providers:[],he?.enableViewTransitions?wa().\u0275providers:[],[{provide:Bc,useFactory:Ga},{provide:t.iLQ,multi:!0,useExisting:Bc}]]}}static forChild(B){return{ngModule:F,providers:[{provide:ks,multi:!0,useValue:B}]}}static#e=this.\u0275fac=function(he){return new(he||F)(t.KVO(Ks,8))};static#t=this.\u0275mod=t.$C({type:F});static#n=this.\u0275inj=t.G2t({})}return F})();function Wa(F){return"guarded"}function il(F){return["disabled"===F.initialNavigation?fo(3,[{provide:t.hnV,multi:!0,useFactory:()=>{const ue=(0,t.WQX)(Li);return()=>{ue.setUpLocationChangeListener()}}},{provide:Mr,useValue:2}]).\u0275providers:[],"enabledBlocking"===F.initialNavigation?fo(2,[{provide:Mr,useValue:0},{provide:t.hnV,multi:!0,deps:[t.zZn],useFactory:ue=>{const B=ue.get(oe.hj,Promise.resolve());return()=>B.then(()=>new Promise(he=>{const Ye=ue.get(Li),Et=ue.get(Sl);Yi(Ye,()=>{he(!0)}),ue.get(tt).afterPreactivation=()=>(he(!0),Et.closed?(0,e.of)(void 0):Et),Ye.initialNavigation()}))}}]).\u0275providers:[]]}const Bc=new t.nKC("")},8167:($t,De,a)=>{a.d(De,{$ix:()=>Yr,DT4:()=>Bi,DXx:()=>Ki,Dnx:()=>Za,FmF:()=>dn,HCk:()=>Ei,HSk:()=>Sp,Hb1:()=>N1,Hcp:()=>Hi,KKJ:()=>ac,MTO:()=>ds,MxV:()=>Cc,N$r:()=>ni,Nk1:()=>hs,O9N:()=>_o,OgO:()=>_s,PR6:()=>Xl,QQ_:()=>jr,R9X:()=>Os,RR4:()=>xp,SFT:()=>J,U1s:()=>Ue,U97:()=>to,XEL:()=>gn,XTv:()=>b0,XkU:()=>Xt,Y6F:()=>ya,Z1x:()=>Oe,a5L:()=>B4,aB7:()=>Cn,cuh:()=>gu,drJ:()=>lc,eNq:()=>Vp,eiI:()=>gs,ekG:()=>da,f0d:()=>Fi,gA6:()=>Hl,gZ6:()=>kp,hl9:()=>Gc,iOx:()=>Ht,j4r:()=>Co,kGj:()=>Ku,lWl:()=>Vr,qZ3:()=>o0,rHI:()=>Ce,rXM:()=>Ba,wx$:()=>lp,zt9:()=>ut});const Xt={name:"bars",theme:"outline",icon:''},Oe={name:"calendar",theme:"outline",icon:''},Ce={name:"caret-down",theme:"fill",icon:''},J={name:"caret-down",theme:"outline",icon:''},Ht={name:"caret-up",theme:"fill",icon:''},dn={name:"caret-up",theme:"outline",icon:''},Cn={name:"check-circle",theme:"fill",icon:''},ni={name:"check-circle",theme:"outline",icon:''},Hi={name:"close-circle",theme:"outline",icon:''},gn={name:"close",theme:"outline",icon:''},Ei={name:"check",theme:"outline",icon:''},Ki={name:"clock-circle",theme:"outline",icon:''},_o={name:"copy",theme:"outline",icon:''},_s={name:"delete",theme:"outline",icon:''},Fi={name:"dashboard",theme:"outline",icon:''},Vr={name:"double-left",theme:"outline",icon:''},ac={name:"double-right",theme:"outline",icon:''},Ba={name:"down",theme:"outline",icon:''},ya={name:"close-circle",theme:"fill",icon:''},ds={name:"ellipsis",theme:"outline",icon:''},hs={name:"edit",theme:"outline",icon:''},lc={name:"exclamation-circle",theme:"fill",icon:''},Ue={name:"eye",theme:"outline",icon:''},jr={name:"file",theme:"fill",icon:''},Yr={name:"file",theme:"outline",icon:''},gu={name:"filter",theme:"fill",icon:''},Os={name:"form",theme:"outline",icon:''},to={name:"info-circle",theme:"fill",icon:''},da={name:"exclamation-circle",theme:"outline",icon:''},Bi={name:"info-circle",theme:"outline",icon:''},Hl={name:"left",theme:"outline",icon:''},Gc={name:"loading",theme:"outline",icon:''},Xl={name:"menu-fold",theme:"outline",icon:''},Cc={name:"menu-unfold",theme:"outline",icon:''},Co={name:"paper-clip",theme:"outline",icon:''},Za={name:"question-circle",theme:"outline",icon:''},Ku={name:"rotate-right",theme:"outline",icon:''},N1={name:"right",theme:"outline",icon:''},ut={name:"search",theme:"outline",icon:''},gs={name:"star",theme:"fill",icon:''},lp={name:"swap",theme:"outline",icon:''},B4={name:"swap-right",theme:"outline",icon:''},o0={name:"up",theme:"outline",icon:''},Sp={name:"rotate-left",theme:"outline",icon:''},xp={name:"vertical-align-top",theme:"outline",icon:''},b0={name:"zoom-in",theme:"outline",icon:''},kp={name:"zoom-out",theme:"outline",icon:''},Vp={name:"upload",theme:"outline",icon:''}},4141:($t,De,a)=>{a.d(De,{MS:()=>j,UT:()=>R,WR:()=>z,bl:()=>r});var t=a(2081),r=new t.DX,m=new WeakMap;function e(k){var I=m.get(k);return I||m.set(k,I={vars:new Set,dep:(0,t.yN)()}),I}function z(k){e(k).vars.forEach(function(I){return I.forgetCache(k)})}function j(k){e(k).vars.forEach(function(I){return I.attachCache(k)})}function R(k){var I=new Set,w=new Set,P=function(N){if(arguments.length>0){if(k!==N){k=N,I.forEach(function(ee){e(ee).dep.dirty(P),function $(k){k.broadcastWatches&&k.broadcastWatches()}(ee)});var x=Array.from(w);w.clear(),x.forEach(function(ee){return ee(k)})}}else{var oe=r.getValue();oe&&(Q(oe),e(oe).dep(P))}return k};P.onNextChange=function(N){return w.add(N),function(){w.delete(N)}};var Q=P.attachCache=function(N){return I.add(N),e(N).vars.add(P),P};return P.forgetCache=function(N){return I.delete(N)},P}},9471:($t,De,a)=>{a.d(De,{a:()=>R});var t=a(4626),r=a(9860),m=a(4229),e=a(6108),z=a(4183),j=a(1367);function R(w,P,Q,N){var x=P.data,oe=(0,t.Tt)(P,["data"]),ee=Q.data,Ee=(0,t.Tt)(Q,["data"]);return(0,r.A)(oe,Ee)&&$((0,m.Vn)(w).selectionSet,x,ee,{fragmentMap:(0,e.JG)((0,m.zK)(w)),variables:N})}function $(w,P,Q,N){if(P===Q)return!0;var x=new Set;return w.selections.every(function(oe){if(x.has(oe)||(x.add(oe),!(0,z.MS)(oe,N.variables))||k(oe))return!0;if((0,j.dt)(oe)){var ee=(0,j.ue)(oe),Ee=P&&P[ee],Ie=Q&&Q[ee],ce=oe.selectionSet;if(!ce)return(0,r.A)(Ee,Ie);var Pe=Array.isArray(Ee),ve=Array.isArray(Ie);if(Pe!==ve)return!1;if(Pe&&ve){var pe=Ee.length;if(Ie.length!==pe)return!1;for(var U=0;U{a.d(De,{C:()=>w});var t=a(1404),r=a(7994),m=a(4626),z=a(4229);function $(P,Q){return Q?Q(P):r.c.of()}function k(P){return"function"==typeof P?new w(P):P}function I(P){return P.request.length<=1}var w=function(){function P(Q){Q&&(this.request=Q)}return P.empty=function(){return new P(function(){return r.c.of()})},P.from=function(Q){return 0===Q.length?P.empty():Q.map(k).reduce(function(N,x){return N.concat(x)})},P.split=function(Q,N,x){var Ee,oe=k(N),ee=k(x||new P($));return Ee=I(oe)&&I(ee)?new P(function(Ie){return Q(Ie)?oe.request(Ie)||r.c.of():ee.request(Ie)||r.c.of()}):new P(function(Ie,ce){return Q(Ie)?oe.request(Ie,ce)||r.c.of():ee.request(Ie,ce)||r.c.of()}),Object.assign(Ee,{left:oe,right:ee})},P.execute=function(Q,N){return Q.request(function e(P,Q){var N=(0,m.Cl)({},P);return Object.defineProperty(Q,"setContext",{enumerable:!1,value:function(ee){N=(0,m.Cl)((0,m.Cl)({},N),"function"==typeof ee?ee(N):ee)}}),Object.defineProperty(Q,"getContext",{enumerable:!1,value:function(){return(0,m.Cl)({},N)}}),Q}(N.context,function j(P){var Q={variables:P.variables||{},extensions:P.extensions||{},operationName:P.operationName,query:P.query};return Q.operationName||(Q.operationName="string"!=typeof Q.query?(0,z.n4)(Q.query)||void 0:""),Q}(function R(P){for(var Q=["query","operationName","variables","extensions","context"],N=0,x=Object.keys(P);N{a.d(De,{A:()=>z,V:()=>j});var t=a(9055),r=a(6476),m=new WeakSet;function e(R){R.size<=(R.max||-1)||m.has(R)||(m.add(R),setTimeout(function(){R.clean(),m.delete(R)},100))}var z=function(R,$){var k=new t.l(R,$);return k.set=function(I,w){var P=t.l.prototype.set.call(this,I,w);return e(this),P},k},j=function(R,$){var k=new r.C(R,$);return k.set=function(I,w){var P=r.C.prototype.set.call(this,I,w);return e(this),P},k}},8782:($t,De,a)=>{a.d(De,{D_:()=>e,cM:()=>j,ep:()=>z,tQ:()=>R});var t=a(4626),r=a(2151),m={};function e(Ee,Ie){m[Ee]=Ie}var z=!1!==globalThis.__DEV__?function k(){var Ee,Ie,ce,Pe,ve;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(Ie){var ce=Ie[0];return[ce,r.v[ce]||Ie[1]]})),sizes:(0,t.Cl)({print:null===(Ee=m.print)||void 0===Ee?void 0:Ee.call(m),parser:null===(Ie=m.parser)||void 0===Ie?void 0:Ie.call(m),canonicalStringify:null===(ce=m.canonicalStringify)||void 0===ce?void 0:ce.call(m),links:ee(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:x(this.queryManager.documentTransform)}},null===(ve=(Pe=this.cache).getMemoryInternals)||void 0===ve?void 0:ve.call(Pe))}}:void 0,j=!1!==globalThis.__DEV__?function w(){var Ee=this.config.fragments;return(0,t.Cl)((0,t.Cl)({},I.apply(this)),{addTypenameDocumentTransform:x(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Q(this.storeReader.executeSelectionSet),executeSubSelectedArray:Q(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Q(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Q(Ee?.findFragmentSpreads),lookup:Q(Ee?.lookup),transform:Q(Ee?.transform)}})}:void 0,R=!1!==globalThis.__DEV__?I:void 0;function I(){return{cache:{fragmentQueryDocuments:Q(this.getFragmentDoc)}}}function Q(Ee){return function P(Ee){return!!Ee&&"dirtyKey"in Ee}(Ee)?Ee.size:void 0}function N(Ee){return null!=Ee}function x(Ee){return oe(Ee).map(function(Ie){return{cache:Ie}})}function oe(Ee){return Ee?(0,t.fX)((0,t.fX)([Q(Ee?.performWork)],oe(Ee?.left),!0),oe(Ee?.right),!0).filter(N):[]}function ee(Ee){var Ie;return Ee?(0,t.fX)((0,t.fX)([null===(Ie=Ee?.getMemoryInternals)||void 0===Ie?void 0:Ie.call(Ee)],ee(Ee?.left),!0),ee(Ee?.right),!0).filter(N):[]}},2151:($t,De,a)=>{a.d(De,{v:()=>e});var t=a(4626),r=a(1404),m=Symbol.for("apollo.cacheSize"),e=(0,t.Cl)({},r.Sf[m])},7715:($t,De,a)=>{a.d(De,{E:()=>r,c:()=>t});var t=Array.isArray;function r(m){return Array.isArray(m)&&m.length>0}},6500:($t,De,a)=>{a.d(De,{En:()=>e,et:()=>m,ol:()=>z,uJ:()=>j});var t=a(1404),r="ReactNative"==(0,t.no)(function(){return navigator.product}),m="function"==typeof WeakMap&&!(r&&!global.HermesInternal),e="function"==typeof WeakSet,z="function"==typeof Symbol&&"function"==typeof Symbol.for,j=z&&Symbol.asyncIterator;(0,t.no)(function(){return window.document.createElement}),(0,t.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},2130:($t,De,a)=>{a.d(De,{M:()=>e});var z,t=a(2170),r=a(2151),m=a(8782),e=Object.assign(function(k){return JSON.stringify(k,j)},{reset:function(){z=new t.V(r.v.canonicalStringify||1e3)}});function j($,k){if(k&&"object"==typeof k){var I=Object.getPrototypeOf(k);if(I===Object.prototype||null===I){var w=Object.keys(k);if(w.every(R))return k;var P=JSON.stringify(w),Q=z.get(P);if(!Q){w.sort();var N=JSON.stringify(w);Q=z.get(N)||w,z.set(P,Q),z.set(N,Q)}var x=Object.create(I);return Q.forEach(function(oe){x[oe]=k[oe]}),x}}return k}function R($,k,I){return 0===k||I[k-1]<=$}!1!==globalThis.__DEV__&&(0,m.D_)("canonicalStringify",function(){return z.size}),e.reset()},4246:($t,De,a)=>{a.d(De,{m:()=>r});var t=Object.prototype.toString;function r(e){return m(e)}function m(e,z){switch(t.call(e)){case"[object Array]":if((z=z||new Map).has(e))return z.get(e);var j=e.slice(0);return z.set(e,j),j.forEach(function($,k){j[k]=m($,z)}),j;case"[object Object]":if((z=z||new Map).has(e))return z.get(e);var R=Object.create(Object.getPrototypeOf(e));return z.set(e,R),Object.keys(e).forEach(function($){R[$]=m(e[$],z)}),R;default:return e}}},120:($t,De,a)=>{function t(){for(var r=[],m=0;mt})},9977:($t,De,a)=>{a.d(De,{v:()=>r});var t=new Map;function r(m){var e=t.get(m)||1;return t.set(m,e+1),"".concat(m,":").concat(e,":").concat(Math.random().toString(36).slice(2))}},1115:($t,De,a)=>{a.d(De,{D9:()=>e,IM:()=>z,ZI:()=>R});var t=a(4626),r=a(1181),m=Object.prototype.hasOwnProperty;function e(){for(var $=[],k=0;k1)for(var w=new R,P=1;P{function t(m){return null!==m&&"object"==typeof m}a.d(De,{U:()=>t})},1687:($t,De,a)=>{a.d(De,{p:()=>r});var t=a(9977);function r(m,e){void 0===e&&(e=0);var z=(0,t.v)("stringifyForDisplay");return JSON.stringify(m,function(j,R){return void 0===R?z:R},e).split(JSON.stringify(z)).join("")}},1404:($t,De,a)=>{a.d(De,{Sf:()=>ft,V1:()=>It,no:()=>Lt,vA:()=>rn});var t=function(Mt,Ut){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(wt,Ft){wt.__proto__=Ft}||function(wt,Ft){for(var Qt in Ft)Object.prototype.hasOwnProperty.call(Ft,Qt)&&(wt[Qt]=Ft[Qt])})(Mt,Ut)},T="Invariant Violation",D=Object.setPrototypeOf,A=void 0===D?function(Mt,Ut){return Mt.__proto__=Ut,Mt}:D,X=function(Mt){function Ut(wt){void 0===wt&&(wt=T);var Ft=Mt.call(this,"number"==typeof wt?T+": "+wt+" (see https://github.com/apollographql/invariant-packages)":wt)||this;return Ft.framesToPop=1,Ft.name=T,A(Ft,Ut.prototype),Ft}return function r(Mt,Ut){if("function"!=typeof Ut&&null!==Ut)throw new TypeError("Class extends value "+String(Ut)+" is not a constructor or null");function wt(){this.constructor=Mt}t(Mt,Ut),Mt.prototype=null===Ut?Object.create(Ut):(wt.prototype=Ut.prototype,new wt)}(Ut,Mt),Ut}(Error);function se(Mt,Ut){if(!Mt)throw new X(Ut)}var Mt,je=["debug","log","warn","error","silent"],Bt=je.indexOf("log");function Tt(Mt){return function(){if(je.indexOf(Mt)>=Bt)return(console[Mt]||console.log).apply(console,arguments)}}(Mt=se||(se={})).debug=Tt("debug"),Mt.log=Tt("log"),Mt.warn=Tt("warn"),Mt.error=Tt("error");var xt=a(560);function Lt(Mt){try{return Mt()}catch{}}const ft=Lt(function(){return globalThis})||Lt(function(){return window})||Lt(function(){return self})||Lt(function(){return global})||Lt(function(){return Lt.constructor("return this")()});var St=a(1687);function kt(Mt){return function(Ut){for(var wt=[],Ft=1;Ft"}}function Tn(Mt,Ut){if(void 0===Ut&&(Ut=[]),Mt)return ft[en]&&ft[en](Mt,Ut.map(Xt))}function Jn(Mt,Ut){if(void 0===Ut&&(Ut=[]),Mt)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:xt.r,message:Mt,args:Ut.map(Xt)})))}globalThis},8926:($t,De,a)=>{a.d(De,{c:()=>k});var t=a(4420),r=a(6500),m=a(4229),e=a(1404),z=a(9055),j=a(2081),R=a(2151);function $(I){return I}var k=function(){function I(w,P){void 0===P&&(P=Object.create(null)),this.resultCache=r.En?new WeakSet:new Set,this.transform=w,P.getCacheKey&&(this.getCacheKey=P.getCacheKey),this.cached=!1!==P.cache,this.resetCache()}return I.prototype.getCacheKey=function(w){return[w]},I.identity=function(){return new I($,{cache:!1})},I.split=function(w,P,Q){return void 0===Q&&(Q=I.identity()),Object.assign(new I(function(N){return(w(N)?P:Q).transformDocument(N)},{cache:!1}),{left:P,right:Q})},I.prototype.resetCache=function(){var w=this;if(this.cached){var P=new t.b(r.et);this.performWork=(0,j.LV)(I.prototype.performWork.bind(this),{makeCacheKey:function(Q){var N=w.getCacheKey(Q);if(N)return(0,e.V1)(Array.isArray(N),68),P.lookupArray(N)},max:R.v["documentTransform.cache"],cache:z.l})}},I.prototype.performWork=function(w){return(0,m.sw)(w),this.transform(w)},I.prototype.transformDocument=function(w){if(this.resultCache.has(w))return w;var P=this.performWork(w);return this.resultCache.add(P),P},I.prototype.concat=function(w){var P=this;return Object.assign(new I(function(Q){return w.transformDocument(P.transformDocument(Q))},{cache:!1}),{left:this,right:w})},I}()},4183:($t,De,a)=>{a.d(De,{MS:()=>m,d8:()=>R,f2:()=>$});var t=a(1404),r=a(8540);function m(w,P){var Q=w.directives;return!Q||!Q.length||function I(w){var P=[];return w&&w.length&&w.forEach(function(Q){if(function k(w){var P=w.name.value;return"skip"===P||"include"===P}(Q)){var N=Q.arguments,x=Q.name.value;(0,t.V1)(N&&1===N.length,70,x);var oe=N[0];(0,t.V1)(oe.name&&"if"===oe.name.value,71,x);var ee=oe.value;(0,t.V1)(ee&&("Variable"===ee.kind||"BooleanValue"===ee.kind),72,x),P.push({directive:Q,ifArgument:oe})}}),P}(Q).every(function(N){var x=N.directive,oe=N.ifArgument,ee=!1;return"Variable"===oe.value.kind?(0,t.V1)(void 0!==(ee=P&&P[oe.value.name.value]),69,x.name.value):ee=oe.value.value,"skip"===x.name.value?!ee:ee})}function R(w,P,Q){var N=new Set(w),x=N.size;return(0,r.YR)(P,{Directive:function(oe){if(N.delete(oe.name.value)&&(!Q||!N.size))return r.sP}}),Q?!N.size:N.size{a.d(De,{HQ:()=>z,JG:()=>e,ct:()=>m});var t=a(4626),r=a(1404);function m(j,R){var $=R,k=[];return j.definitions.forEach(function(w){if("OperationDefinition"===w.kind)throw(0,r.vA)(73,w.operation,w.name?" named '".concat(w.name.value,"'"):"");"FragmentDefinition"===w.kind&&k.push(w)}),typeof $>"u"&&((0,r.V1)(1===k.length,74,k.length),$=k[0].name.value),(0,t.Cl)((0,t.Cl)({},j),{definitions:(0,t.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:$}}]}}],j.definitions,!0)})}function e(j){void 0===j&&(j=[]);var R={};return j.forEach(function($){R[$.name.value]=$}),R}function z(j,R){switch(j.kind){case"InlineFragment":return j;case"FragmentSpread":var $=j.name.value;if("function"==typeof R)return R($);var k=R&&R[$];return(0,r.V1)(k,75,$),k||null;default:return null}}},4229:($t,De,a)=>{a.d(De,{AT:()=>R,E4:()=>$,Vn:()=>k,Vu:()=>e,n4:()=>z,sw:()=>m,wY:()=>I,zK:()=>j});var t=a(1404),r=a(1367);function m(w){(0,t.V1)(w&&"Document"===w.kind,76);var P=w.definitions.filter(function(Q){return"FragmentDefinition"!==Q.kind}).map(function(Q){if("OperationDefinition"!==Q.kind)throw(0,t.vA)(77,Q.kind);return Q});return(0,t.V1)(P.length<=1,78,P.length),w}function e(w){return m(w),w.definitions.filter(function(P){return"OperationDefinition"===P.kind})[0]}function z(w){return w.definitions.filter(function(P){return"OperationDefinition"===P.kind&&!!P.name}).map(function(P){return P.name.value})[0]||null}function j(w){return w.definitions.filter(function(P){return"FragmentDefinition"===P.kind})}function R(w){var P=e(w);return(0,t.V1)(P&&"query"===P.operation,79),P}function $(w){(0,t.V1)("Document"===w.kind,80),(0,t.V1)(w.definitions.length<=1,81);var P=w.definitions[0];return(0,t.V1)("FragmentDefinition"===P.kind,82),P}function k(w){m(w);for(var P,Q=0,N=w.definitions;Q{a.d(De,{y:()=>j});var z,t=a(3246),r=a(2170),m=a(2151),e=a(8782),j=Object.assign(function(R){var $=z.get(R);return $||($=(0,t.y)(R),z.set(R,$)),$},{reset:function(){z=new r.A(m.v.print||2e3)}});j.reset(),!1!==globalThis.__DEV__&&(0,e.D_)("print",function(){return z?z.size:0})},1367:($t,De,a)=>{a.d(De,{A_:()=>j,D$:()=>U,Ii:()=>Ee,J:()=>ee,Kc:()=>R,MB:()=>ve,WU:()=>z,dt:()=>M,kd:()=>te,o5:()=>Pe,ue:()=>pe});var t=a(1404),r=a(1181),m=a(6108),e=a(2130);function z(ge){return{__ref:String(ge)}}function j(ge){return!(!ge||"object"!=typeof ge||"string"!=typeof ge.__ref)}function R(ge){return(0,r.U)(ge)&&"Document"===ge.kind&&Array.isArray(ge.definitions)}function ee(ge,T,D,A){if(function I(ge){return"IntValue"===ge.kind}(D)||function w(ge){return"FloatValue"===ge.kind}(D))ge[T.value]=Number(D.value);else if(function k(ge){return"BooleanValue"===ge.kind}(D)||function $(ge){return"StringValue"===ge.kind}(D))ge[T.value]=D.value;else if(function Q(ge){return"ObjectValue"===ge.kind}(D)){var X={};D.fields.map(function(je){return ee(X,je.name,je.value,A)}),ge[T.value]=X}else if(function P(ge){return"Variable"===ge.kind}(D))ge[T.value]=(A||{})[D.name.value];else if(function N(ge){return"ListValue"===ge.kind}(D))ge[T.value]=D.values.map(function(je){var Bt={};return ee(Bt,T,je,A),Bt[T.value]});else if(function x(ge){return"EnumValue"===ge.kind}(D))ge[T.value]=D.value;else{if(!function oe(ge){return"NullValue"===ge.kind}(D))throw(0,t.vA)(84,T.value,D.kind);ge[T.value]=null}}function Ee(ge,T){var D=null;ge.directives&&(D={},ge.directives.forEach(function(X){D[X.name.value]={},X.arguments&&X.arguments.forEach(function(se){return ee(D[X.name.value],se.name,se.value,T)})}));var A=null;return ge.arguments&&ge.arguments.length&&(A={},ge.arguments.forEach(function(X){return ee(A,X.name,X.value,T)})),Pe(ge.name.value,A,D)}var Ie=["connection","include","skip","client","rest","export","nonreactive"],ce=e.M,Pe=Object.assign(function(ge,T,D){if(T&&D&&D.connection&&D.connection.key){if(D.connection.filter&&D.connection.filter.length>0){var A=D.connection.filter?D.connection.filter:[];A.sort();var X={};return A.forEach(function(Bt){X[Bt]=T[Bt]}),"".concat(D.connection.key,"(").concat(ce(X),")")}return D.connection.key}var se=ge;if(T){var je=ce(T);se+="(".concat(je,")")}return D&&Object.keys(D).forEach(function(Bt){-1===Ie.indexOf(Bt)&&(D[Bt]&&Object.keys(D[Bt]).length?se+="@".concat(Bt,"(").concat(ce(D[Bt]),")"):se+="@".concat(Bt))}),se},{setStringify:function(ge){var T=ce;return ce=ge,T}});function ve(ge,T){if(ge.arguments&&ge.arguments.length){var D={};return ge.arguments.forEach(function(A){return ee(D,A.name,A.value,T)}),D}return null}function pe(ge){return ge.alias?ge.alias.value:ge.name.value}function U(ge,T,D){for(var A,X=0,se=T.selections;X{a.d(De,{XY:()=>x,er:()=>U,iz:()=>N,zc:()=>pe});var t=a(4626),r=a(1404),m=a(1955),e=a(8540),z=a(4229),j=a(1367),R=a(6108),$=a(7715),k={kind:m.b.FIELD,name:{kind:m.b.NAME,value:"__typename"}};function I(M,te){return!M||M.selectionSet.selections.every(function(ge){return ge.kind===m.b.FRAGMENT_SPREAD&&I(te[ge.name.value],te)})}function w(M){return I((0,z.Vu)(M)||(0,z.E4)(M),(0,R.JG)((0,z.zK)(M)))?null:M}function Q(M){var te=new Map;return function(T){void 0===T&&(T=M);var D=te.get(T);return D||te.set(T,D={variables:new Set,fragmentSpreads:new Set}),D}}function N(M,te){(0,z.sw)(te);for(var ge=Q(""),T=Q(""),D=function(kt){for(var It=0,rn=void 0;It=0;--X)te.definitions[X].kind===m.b.OPERATION_DEFINITION&&++A;var se=function P(M){var te=new Map,ge=new Map;return M.forEach(function(T){T&&(T.name?te.set(T.name,T):T.test&&ge.set(T.test,T))}),function(T){var D=te.get(T.name.value);return!D&&ge.size&&ge.forEach(function(A,X){X(T)&&(D=A)}),D}}(M),je=function(kt){return(0,$.E)(kt)&&kt.map(se).some(function(It){return It&&It.remove})},Bt=new Map,Tt=!1,Vt={enter:function(kt){if(je(kt.directives))return Tt=!0,null}},He=(0,e.YR)(te,{Field:Vt,InlineFragment:Vt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(kt,It,rn,en,Xt){var Tn=D(Xt);Tn&&Tn.variables.add(kt.name.value)}},FragmentSpread:{enter:function(kt,It,rn,en,Xt){if(je(kt.directives))return Tt=!0,null;var Tn=D(Xt);Tn&&Tn.fragmentSpreads.add(kt.name.value)}},FragmentDefinition:{enter:function(kt,It,rn,en){Bt.set(JSON.stringify(en),kt)},leave:function(kt,It,rn,en){return kt===Bt.get(JSON.stringify(en))?kt:A>0&&kt.selectionSet.selections.every(function(Tn){return Tn.kind===m.b.FIELD&&"__typename"===Tn.name.value})?(T(kt.name.value).removed=!0,Tt=!0,null):void 0}},Directive:{leave:function(kt){if(se(kt))return Tt=!0,null}}});if(!Tt)return te;var xt=function(kt){return kt.transitiveVars||(kt.transitiveVars=new Set(kt.variables),kt.removed||kt.fragmentSpreads.forEach(function(It){xt(T(It)).transitiveVars.forEach(function(rn){kt.transitiveVars.add(rn)})})),kt},Lt=new Set;He.definitions.forEach(function(kt){kt.kind===m.b.OPERATION_DEFINITION?xt(ge(kt.name&&kt.name.value)).fragmentSpreads.forEach(function(It){Lt.add(It)}):kt.kind===m.b.FRAGMENT_DEFINITION&&0===A&&!T(kt.name.value).removed&&Lt.add(kt.name.value)}),Lt.forEach(function(kt){xt(T(kt)).fragmentSpreads.forEach(function(It){Lt.add(It)})});var St={enter:function(kt){if(function(kt){return!(Lt.has(kt)&&!T(kt).removed)}(kt.name.value))return null}};return w((0,e.YR)(He,{FragmentSpread:St,FragmentDefinition:St,OperationDefinition:{leave:function(kt){if(kt.variableDefinitions){var It=xt(ge(kt.name&&kt.name.value)).transitiveVars;if(It.size{a.d(De,{r:()=>t});var t="3.11.1"},9894:($t,De,a)=>{a.d(De,{d:()=>Pe,s:()=>A});var t=a(1413),r=a(8359),m=a(2806),e=a(983),z=a(3953),j=a(1397),R=a(6977);const $=z.YHP,I=Symbol("__destroy"),w=Symbol("__decoratorApplied");function P(se){return"string"==typeof se?Symbol(`__destroy__${se}`):I}function N(se,je){se[je]||(se[je]=new t.B)}function x(se,je){se[je]&&(se[je].next(),se[je].complete(),se[je]=null)}function oe(se){se instanceof r.yU&&se.unsubscribe()}function Ee(se,je){return function(){if(se&&se.call(this),x(this,P()),je.arrayName&&function ee(se){Array.isArray(se)&&se.forEach(oe)}(this[je.arrayName]),je.checkProperties)for(const Bt in this)je.blackList?.includes(Bt)||oe(this[Bt])}}function Pe(se={}){return je=>{!function k(se){return!!se[$]}(je)?function Ie(se,je){se.prototype.ngOnDestroy=Ee(se.prototype.ngOnDestroy,je)}(je,se):function ce(se,je){const Bt=se.\u0275pipe;Bt.onDestroy=Ee(Bt.onDestroy,je)}(je,se),function Q(se){se.prototype[w]=!0}(je)}}const ve=7,pe=Symbol("CheckerHasBeenSet");function te(se){const je=z.JZv.Zone;return je&&"function"==typeof je.root?.run?je.root.run(se):se()}const T=!1;function A(se,je){return Bt=>{const Tt=P(je);"string"==typeof je?function D(se,je,Bt){const Tt=se[je];if(T&&"function"!=typeof Tt)throw new Error(`${se.constructor.name} is using untilDestroyed but doesn't implement ${je}`);N(se,Bt),se[je]=function(){Tt.apply(this,arguments),x(this,Bt),se[je]=Tt}}(se,je,Tt):(T&&function X(se){const je=Object.getPrototypeOf(se);if(!(w in je))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(se),N(se,Tt));const Vt=se[Tt];return T&&function U(se,je){se[pe]||function M(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha||typeof process<"u"&&"[object process]"===Object.prototype.toString.call(process)}()||(te(()=>(0,m.H)(Promise.resolve()).pipe((0,j.Z)(()=>{let Bt;try{Bt=(0,z.xtB)(se)}catch{Bt=null}const Tt=Bt?.lView;if(null==Tt)return e.w;const Vt=Tt[ve]||(Tt[ve]=[]),He=new t.B;return Vt.push(function(){te(()=>{He.next(),He.complete()})}),He}),(0,j.Z)(()=>Promise.resolve())).subscribe(()=>{(je.observed??je.observers.length>0)&&console.warn(function ge(se){return`\n The ${se.constructor.name} still has subscriptions that haven't been unsubscribed.\n This may happen if the class extends another class decorated with @UntilDestroy().\n The child class implements its own ngOnDestroy() method but doesn't call super.ngOnDestroy().\n Let's look at the following example:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {}\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n }\n }\n The BaseDirective.ngOnDestroy() will not be called since Angular will call ngOnDestroy()\n on the ConcreteComponent, but not on the BaseDirective.\n One of the solutions is to declare an empty ngOnDestroy method on the BaseDirective:\n @UntilDestroy()\n @Directive()\n export abstract class BaseDirective {\n ngOnDestroy(): void {}\n }\n @Component({ template: '' })\n export class ConcreteComponent extends BaseDirective implements OnDestroy {\n constructor() {\n super();\n someObservable$.pipe(untilDestroyed(this)).subscribe();\n }\n ngOnDestroy(): void {\n // Some logic here...\n super.ngOnDestroy();\n }\n }\n `}(se))})),se[pe]=!0)}(se,Vt),Bt.pipe((0,R.Q)(Vt))}}},1774:($t,De,a)=>{a.d(De,{L9:()=>T,Nj:()=>ge});var t=a(3953),r=a(4402),m=a(4572),e=a(2806),z=a(1985),j=a(2771),R=a(1203),$=a(8359),k=a(3294),I=a(8141),w=a(5558);let Q=(()=>{class D{static#e=this.\u0275fac=function(se){return new(se||D)};static#t=this.\u0275prov=t.jDH({token:D,factory:()=>function P(D){return D instanceof t.SKi}((0,t.WQX)(t.SKi))?new x:(0,t.WQX)(N),providedIn:"root"})}return D})(),N=(()=>{class D extends Q{constructor(X){super(),this.appRef=X,this.isScheduled=!1}schedule(){this.isScheduled||(this.isScheduled=!0,requestAnimationFrame(()=>{this.appRef.tick(),this.isScheduled=!1}))}static#e=this.\u0275fac=function(se){return new(se||D)(t.KVO(t.o8S))};static#t=this.\u0275prov=t.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})();class x extends Q{schedule(){}}let oe=(()=>{class D{constructor(X,se){this.cdRef=X,this.tickScheduler=se}schedule(){this.cdRef.markForCheck(),this.tickScheduler.schedule()}static#e=this.\u0275fac=function(se){return new(se||D)(t.KVO(t.gRc),t.KVO(Q))};static#t=this.\u0275prov=t.jDH({token:D,factory:D.\u0275fac})}return D})();function U(D){const A=function Ee(D){return A=>D[A.type]?.(A)}(D),X=new j.m(1);return{nextPotentialObservable(se){X.next(se)},handlePotentialObservableChanges:()=>X.pipe((0,k.F)(),function M(){return(0,R.F)((0,w.n)(D=>{const A=function Ie(D){return(0,r.A)(D)?D:function Pe(D){return function ve(D){return!!D&&"object"==typeof D&&!Array.isArray(D)}(D)&&Object.keys(D).length>0&&Object.values(D).every(r.A)}(D)?(0,m.z)(function pe(D){return Object.keys(D).reduce((A,X)=>({...A,[X]:D[X].pipe((0,k.F)())}),{})}(D)):function ce(D){return"function"==typeof D?.then}(D)?(0,e.H)(D):new z.c(A=>{A.next(D)})}(D);let X=!0,se=!0;return new z.c(je=>{const Bt=(0,t.O8t)(()=>A.subscribe({next(Tt){je.next({type:"next",value:Tt,reset:X,synchronous:se}),X=!1},error(Tt){je.next({type:"error",error:Tt,reset:X,synchronous:se}),X=!1},complete(){je.next({type:"complete",reset:X,synchronous:se}),X=!1}}));return X&&(je.next({type:"suspense",reset:X,synchronous:!0}),X=!1),se=!1,Bt})}))}(),(0,k.F)(te),(0,I.M)(A))}}function te(D,A){return D.type===A.type&&D.reset===A.reset&&("next"===A.type?D.value===A.value:"error"!==A.type||D.error===A.error)}let ge=(()=>{class D{set ngrxLet(X){this.renderEventManager.nextPotentialObservable(X)}constructor(X,se,je,Bt){this.mainTemplateRef=X,this.viewContainerRef=se,this.errorHandler=je,this.renderScheduler=Bt,this.isMainViewCreated=!1,this.isSuspenseViewCreated=!1,this.viewContext={$implicit:void 0,ngrxLet:void 0,error:void 0,complete:!1},this.renderEventManager=U({suspense:()=>{this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0,this.viewContext.complete=!1,this.renderSuspenseView()},next:Tt=>{this.viewContext.$implicit=Tt.value,this.viewContext.ngrxLet=Tt.value,Tt.reset&&(this.viewContext.error=void 0,this.viewContext.complete=!1),this.renderMainView(Tt.synchronous)},error:Tt=>{this.viewContext.error=Tt.error,Tt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.complete=!1),this.renderMainView(Tt.synchronous),this.errorHandler.handleError(Tt.error)},complete:Tt=>{this.viewContext.complete=!0,Tt.reset&&(this.viewContext.$implicit=void 0,this.viewContext.ngrxLet=void 0,this.viewContext.error=void 0),this.renderMainView(Tt.synchronous)}}),this.subscription=new $.yU}static ngTemplateContextGuard(X,se){return!0}ngOnInit(){this.subscription.add(this.renderEventManager.handlePotentialObservableChanges().subscribe())}ngOnDestroy(){this.subscription.unsubscribe()}renderMainView(X){this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!1,this.viewContainerRef.clear()),this.isMainViewCreated||(this.isMainViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.mainTemplateRef,this.viewContext)),X||this.renderScheduler.schedule()}renderSuspenseView(){this.isMainViewCreated&&(this.isMainViewCreated=!1,this.viewContainerRef.clear()),this.suspenseTemplateRef&&!this.isSuspenseViewCreated&&(this.isSuspenseViewCreated=!0,this.viewContainerRef.createEmbeddedView(this.suspenseTemplateRef))}static#e=this.\u0275fac=function(se){return new(se||D)(t.rXU(t.C4Q),t.rXU(t.c1b),t.rXU(t.zcH),t.rXU(oe))};static#t=this.\u0275dir=t.FsC({type:D,selectors:[["","ngrxLet",""]],inputs:{ngrxLet:"ngrxLet",suspenseTemplateRef:[0,"ngrxLetSuspenseTpl","suspenseTemplateRef"]},standalone:!0,features:[t.Jv_([oe])]})}return D})(),T=(()=>{class D{constructor(X){this.errorHandler=X,this.renderScheduler=function ee(){return new oe((0,t.WQX)(t.gRc),(0,t.WQX)(Q))}(),this.renderEventManager=U({suspense:se=>this.setRenderedValue(void 0,se.synchronous),next:se=>this.setRenderedValue(se.value,se.synchronous),error:se=>{se.reset&&this.setRenderedValue(void 0,se.synchronous),this.errorHandler.handleError(se.error)},complete:se=>{se.reset&&this.setRenderedValue(void 0,se.synchronous)}}),this.subscription=this.renderEventManager.handlePotentialObservableChanges().subscribe()}transform(X){return this.renderEventManager.nextPotentialObservable(X),this.renderedValue}ngOnDestroy(){this.subscription.unsubscribe()}setRenderedValue(X,se){X!==this.renderedValue&&(this.renderedValue=X,se||this.renderScheduler.schedule())}static#e=this.\u0275fac=function(se){return new(se||D)(t.rXU(t.zcH,16))};static#t=this.\u0275pipe=t.EJ8({name:"ngrxPush",type:D,pure:!1,standalone:!0})}return D})()},8524:($t,De,a)=>{a.d(De,{Nc:()=>ht,PU:()=>ze,aF:()=>G,ac:()=>q,ch:()=>H,cm:()=>fn,hL:()=>Tn,qy:()=>Yt});var t=a(3953),r=a(9417),m=a(4402),e=a(7673),z=a(7786),j=a(1985),R=a(1413),$=a(3294),k=a(6354),I=a(9172),w=a(152),P=a(5964),Q=a(5558),N=a(6697),x=a(8141),oe=a(177),ee=a(345);const Ee=["container"];function Ie(Je,ae){}const ce=["*"];function Pe(Je,ae){1&Je&&t.nrm(0,"formly-field",1),2&Je&&t.Y8G("field",ae.$implicit)}const ve=["fieldComponent"];function U(Je,ae,ie){if(ae.id)return ae.id;let re=ae.type;return!re&&ae.template&&(re="template"),re instanceof t.ZUJ&&(re=re.prototype.constructor.name),[Je,re,ae.key,ie].join("_")}function M(Je){return!se(Je.key)&&""!==Je.key&&(!Array.isArray(Je.key)||Je.key.length>0)}function te(Je){if(!M(Je))return[];if(Je._keyPath?.key!==Je.key){let ae=[];if("string"==typeof Je.key){const ie=-1===Je.key.indexOf("[")?Je.key:Je.key.replace(/\[(\w+)\]/g,".$1");ae=-1!==ie.indexOf(".")?ie.split("."):[ie]}else ae=Array.isArray(Je.key)?Je.key.slice(0):[`${Je.key}`];ft(Je,"_keyPath",{key:Je.key,path:ae})}return Je._keyPath.path.slice(0)}const ge=["required","pattern","minLength","maxLength","min","max"];function T(Je,ae){let ie=te(Je);if(0===ie.length)return;let re=Je;for(;re.parent;)re=re.parent,ie=[...te(re),...ie];if(void 0===ae&&Je.resetOnHide){const et=ie.pop();delete ie.reduce((mt,Rt)=>mt[Rt]||{},re.model)[et]}else!function D(Je,ae,ie){for(let re=0;re{for(const re in ie)se(Je[re])||Bt(Je[re])?Je[re]=Lt(ie[re]):Vt(Je[re],ie[re])&&X(Je[re],ie[re])}),Je}function se(Je){return null==Je}function je(Je){return void 0===Je}function Bt(Je){return""===Je}function Tt(Je){return"function"==typeof Je}function Vt(Je,ae){return He(Je)&&He(ae)&&Object.getPrototypeOf(Je)===Object.getPrototypeOf(ae)&&!(Array.isArray(Je)||Array.isArray(ae))}function He(Je){return null!=Je&&"object"==typeof Je}function Lt(Je){if(!He(Je)||(0,m.A)(Je)||Je instanceof t.C4Q||Je.changingThisBreaksApplicationSecurity||-1!==["RegExp","FileList","File","Blob"].indexOf(Je.constructor.name))return Je;if(Je instanceof Set)return new Set(Je);if(Je instanceof Map)return new Map(Je);if(Je instanceof Uint8Array)return new Uint8Array(Je);if(Je instanceof Uint16Array)return new Uint16Array(Je);if(Je instanceof Uint32Array)return new Uint32Array(Je);if(Je._isAMomentObject&&Tt(Je.clone))return Je.clone();if(Je instanceof r.EL)return null;if(Je instanceof Date)return new Date(Je.getTime());if(Array.isArray(Je))return Je.slice(0).map(re=>Lt(re));const ae=Object.getPrototypeOf(Je);let ie=Object.create(ae);return ie=Object.setPrototypeOf(ie,ae),Object.keys(Je).reduce((re,et)=>{const _t=Object.getOwnPropertyDescriptor(Je,et);return _t.get?Object.defineProperty(re,et,_t):re[et]=Lt(Je[et]),re},ie)}function ft(Je,ae,ie){Object.defineProperty(Je,ae,{enumerable:!1,writable:!0,configurable:!0}),Je[ae]=ie}function St(Je,ae,ie){let re=[];const et=()=>{re.forEach(mt=>mt()),re=[]},_t=kt(Je,ae,({firstChange:mt,currentValue:Rt})=>{!mt&&ie(),et(),He(Rt)&&"Object"===Rt.constructor.name&&Object.keys(Rt).forEach(ct=>{re.push(St(Je,[...ae,ct],ie))})});return()=>{_t.unsubscribe(),et()}}function kt(Je,ae,ie){Je._observers||ft(Je,"_observers",{});let re=Je;for(let Rt=0;Rt=1&&He(re))){const{enumerable:Rt}=Object.getOwnPropertyDescriptor(re,et)||{enumerable:!0};Object.defineProperty(re,et,{enumerable:Rt,configurable:!0,get:()=>mt.value,set:ct=>{if(ct!==mt.value){const Se=mt.value;mt.value=ct,mt.onChange.forEach(lt=>lt({previousValue:Se,currentValue:ct,firstChange:!1}))}}})}return{setValue(Rt,ct=!0){if(Rt===mt.value)return;const Se=mt.value;mt.value=Rt,mt.onChange.forEach(lt=>{lt!==ie&&ct&<({previousValue:Se,currentValue:Rt,firstChange:!1})})},unsubscribe(){mt.onChange=mt.onChange.filter(Rt=>Rt!==ie),0===mt.onChange.length&&delete Je._observers[_t]}}}function It(Je,ae){if(ae=Array.isArray(ae)?ae.join("."):ae,Je.fieldGroup)for(let ie=0,re=Je.fieldGroup.length;ie{ae instanceof t.rjb?ae.injector.get(t.gRc).markForCheck():ae.markForCheck()})}function Xt(Je){const ae=re=>re.hide||re.expressions?.hide||re.hideExpression;let ie=!Je.resetOnHide||!ae(Je);if(!ae(Je)&&Je.resetOnHide){let re=Je.parent;for(;re&&!ae(re);)re=re.parent;ie=!re||!ae(re)}return!ie}const Tn=new t.nKC("FORMLY_CONFIG");let Jn=(()=>{class Je{constructor(){this.types={},this.validators={},this.wrappers={},this.messages={},this.extras={checkExpressionOn:"modelChange",lazyRender:!0,resetFieldOnHide:!0,renderFormlyFieldElement:!0,showError:ie=>ie.formControl?.invalid&&(ie.formControl?.touched||ie.options.parentForm?.submitted||!!ie.field.validation?.show)},this.extensions={},this.presets={},this.extensionsByPriority={}}addConfig(ie){ie.types&&ie.types.forEach(re=>this.setType(re)),ie.validators&&ie.validators.forEach(re=>this.setValidator(re)),ie.wrappers&&ie.wrappers.forEach(re=>this.setWrapper(re)),ie.validationMessages&&ie.validationMessages.forEach(re=>this.addValidatorMessage(re.name,re.message)),ie.extensions&&this.setSortedExtensions(ie.extensions),ie.extras&&(this.extras={...this.extras,...ie.extras}),ie.presets&&(this.presets={...this.presets,...ie.presets.reduce((re,et)=>({...re,[et.name]:et.config}),{})})}setType(ie){Array.isArray(ie)?ie.forEach(re=>this.setType(re)):(this.types[ie.name]||(this.types[ie.name]={name:ie.name}),["component","extends","defaultOptions","wrappers"].forEach(re=>{ie.hasOwnProperty(re)&&(this.types[ie.name][re]=ie[re])}))}getType(ie,re=!1){if(ie instanceof t.ZUJ)return{component:ie,name:ie.prototype.constructor.name};if(!this.types[ie]){if(re)throw new Error(`[Formly Error] The type "${ie}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return null}return this.mergeExtendedType(ie),this.types[ie]}getMergedField(ie={}){const re=this.getType(ie.type);if(!re)return;re.defaultOptions&&X(ie,re.defaultOptions);const et=re.extends&&this.getType(re.extends).defaultOptions;et&&X(ie,et),ie?.optionsTypes&&ie.optionsTypes.forEach(mt=>{const Rt=this.getType(mt).defaultOptions;Rt&&X(ie,Rt)});const _t=this.resolveFieldTypeRef(ie);_t?.instance?.defaultOptions&&X(ie,_t.instance.defaultOptions),!ie.wrappers&&re.wrappers&&(ie.wrappers=[...re.wrappers])}resolveFieldTypeRef(ie={}){const re=this.getType(ie.type);if(!re)return null;if(!re.component||re._componentRef)return re._componentRef;const{_viewContainerRef:et,_injector:_t}=ie.options;if(!et||!_t)return null;const mt=et.createComponent(re.component,{injector:_t});ft(re,"_componentRef",mt);try{mt.destroy()}catch(Rt){console.error(`An error occurred while destroying the Formly component type "${ie.type}"`,Rt)}return re._componentRef}setWrapper(ie){this.wrappers[ie.name]=ie,ie.types&&ie.types.forEach(re=>{this.setTypeWrapper(re,ie.name)})}getWrapper(ie){if(ie instanceof t.ZUJ)return{component:ie,name:ie.prototype.constructor.name};if(!this.wrappers[ie])throw new Error(`[Formly Error] The wrapper "${ie}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.wrappers[ie]}setTypeWrapper(ie,re){this.types[ie]||(this.types[ie]={}),this.types[ie].wrappers||(this.types[ie].wrappers=[]),-1===this.types[ie].wrappers.indexOf(re)&&this.types[ie].wrappers.push(re)}setValidator(ie){this.validators[ie.name]=ie}getValidator(ie){if(!this.validators[ie])throw new Error(`[Formly Error] The validator "${ie}" could not be found. Please make sure that is registered through the FormlyModule declaration.`);return this.validators[ie]}addValidatorMessage(ie,re){this.messages[ie]=re}getValidatorMessage(ie){return this.messages[ie]}setSortedExtensions(ie){ie.forEach(re=>{const et=re.priority??1;this.extensionsByPriority[et]={...this.extensionsByPriority[et],[re.name]:re.extension}}),this.extensions=Object.keys(this.extensionsByPriority).map(Number).sort((re,et)=>re-et).reduce((re,et)=>({...re,...this.extensionsByPriority[et]}),{})}mergeExtendedType(ie){if(!this.types[ie].extends)return;const re=this.getType(this.types[ie].extends);this.types[ie].component||(this.types[ie].component=re.component),this.types[ie].wrappers||(this.types[ie].wrappers=re.wrappers)}}return Je.\u0275fac=function(ie){return new(ie||Je)},Je.\u0275prov=t.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})(),Dn=(()=>{class Je{constructor(ie,re,et,_t){this.config=ie,this.injector=re,this.viewContainerRef=et,this.parentForm=_t}buildForm(ie,re=[],et,_t){this.build({fieldGroup:re,model:et,form:ie,options:_t})}build(ie){if(!this.config.extensions.core)throw new Error("NgxFormly: missing `forRoot()` call. use `forRoot()` when registering the `FormlyModule`.");ie.parent||this._setOptions(ie),function pe(Je,ae){const ie=Je._updateTreeValidity.bind(Je);Je._updateTreeValidity=()=>{},ae(),Je._updateTreeValidity=ie}(ie.form,()=>{if(this._build(ie),!ie.parent||ie.fieldArray){const re=ie.options;ie.parent&&Xt(ie)&&re._hiddenFieldsForCheck?.push(ie),re.checkExpressions?.(ie,!0),re._detectChanges?.(ie)}})}_build(ie){if(!ie)return;const re=Object.values(this.config.extensions);re.forEach(et=>et.prePopulate?.(ie)),re.forEach(et=>et.onPopulate?.(ie)),ie.fieldGroup?.forEach(et=>this._build(et)),re.forEach(et=>et.postPopulate?.(ie))}_setOptions(ie){ie.form=ie.form||new r.gE({}),ie.model=ie.model||{},ie.options=ie.options||{};const re=ie.options;re._viewContainerRef||ft(re,"_viewContainerRef",this.viewContainerRef),re._injector||ft(re,"_injector",this.injector),re.build||(re._buildForm=()=>{console.warn("Formly: 'options._buildForm' is deprecated since v6.0, use 'options.build' instead."),this.build(ie)},re.build=(et=ie)=>(this.build(et),et)),!re.parentForm&&this.parentForm&&(ft(re,"parentForm",this.parentForm),kt(re,["parentForm","submitted"],({firstChange:et})=>{et||re.detectChanges(ie)}))}}return Je.\u0275fac=function(ie){return new(ie||Je)(t.KVO(Jn),t.KVO(t.zZn),t.KVO(t.c1b,8),t.KVO(r.j4,8))},Je.\u0275prov=t.jDH({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();function wt(Je,ae,ie=!1){if((ae=ae||Je.formControl)._fields||ft(ae,"_fields",[]),-1===ae._fields.indexOf(Je)&&ae._fields.push(Je),!Je.formControl&&ae){ft(Je,"formControl",ae),ae.setValidators(null),ae.setAsyncValidators(null),Je.props.disabled=!!Je.props.disabled;const Rt=kt(Je,["props","disabled"],({firstChange:ct,currentValue:Se})=>{ct||(Se?Je.formControl.disable():Je.formControl.enable())});ae instanceof r.MJ&&ae.registerOnDisabledChange(Rt.setValue)}if(!Je.form||!M(Je))return;let re=Je.form;const et=te(Je),_t=A(Je);(!se(ae.value)||!se(_t))&&ae.value!==_t&&ae instanceof r.MJ&&ae.patchValue(_t);for(let Rt=0;RtQt(ae))}let Xe=(()=>{class Je{constructor(ie){this.ref=ie}ngOnChanges(){this.name=this.name||"formly-group"}}return Je.\u0275fac=function(ie){return new(ie||Je)(t.rXU(t.C4Q))},Je.\u0275dir=t.FsC({type:Je,selectors:[["","formlyTemplate",""]],inputs:{name:[0,"formlyTemplate","name"]},features:[t.OA$]}),Je})(),ke=(()=>{class Je{}return Je.\u0275fac=function(ie){return new(ie||Je)},Je.\u0275prov=t.jDH({token:Je,factory:Je.\u0275fac}),Je})(),q=(()=>{class Je{constructor(ie,re,et,_t,mt){this.config=ie,this.renderer=re,this._elementRef=et,this.hostContainerRef=_t,this.form=mt,this.hostObservers=[],this.componentRefs=[],this.hooksObservers=[],this.detectFieldBuild=!1,this.valueChangesUnsubscribe=()=>{}}get containerRef(){return this.config.extras.renderFormlyFieldElement?this.viewContainerRef:this.hostContainerRef}get elementRef(){return this.config.extras.renderFormlyFieldElement?this._elementRef:this.componentRefs?.[0]instanceof t.rjb?this.componentRefs[0].location:null}ngAfterContentInit(){this.triggerHook("afterContentInit")}ngAfterViewInit(){this.triggerHook("afterViewInit")}ngDoCheck(){this.detectFieldBuild&&this.field&&this.field.options&&this.render()}ngOnInit(){this.triggerHook("onInit")}ngOnChanges(ie){this.triggerHook("onChanges",ie)}ngOnDestroy(){this.resetRefs(this.field),this.hostObservers.forEach(ie=>ie.unsubscribe()),this.hooksObservers.forEach(ie=>ie()),this.valueChangesUnsubscribe(),this.triggerHook("onDestroy")}renderField(ie,re,et=[]){if(this.containerRef===ie&&(this.resetRefs(this.field),this.containerRef.clear(),et=this.field?.wrappers),et?.length>0){const[_t,...mt]=et,{component:Rt}=this.config.getWrapper(_t),ct=ie.createComponent(Rt);this.attachComponentRef(ct,re),kt(ct.instance,["fieldComponent"],({currentValue:Se,previousValue:lt,firstChange:de})=>{if(Se){if(lt&<._lContainer===Se._lContainer)return;const Oe=lt?lt.detach():null;Oe&&!Oe.destroyed?Se.insert(Oe):this.renderField(Se,re,mt),!de&&ct.changeDetectorRef.detectChanges()}})}else if(re?.type){const _t=this.form?.templates?.find(Rt=>Rt.name===re.type);let mt;if(_t)mt=ie.createEmbeddedView(_t.ref,{$implicit:re});else{const{component:Rt}=this.config.getType(re.type,!0);mt=ie.createComponent(Rt)}this.attachComponentRef(mt,re)}}triggerHook(ie,re){if(("onInit"===ie||"onChanges"===ie&&re.field&&!re.field.firstChange)&&(this.valueChangesUnsubscribe(),this.valueChangesUnsubscribe=this.fieldChanges(this.field)),this.field?.hooks?.[ie]&&(!re||re.field)){const et=this.field.hooks[ie](this.field);if((0,m.A)(et)&&-1!==["onInit","afterContentInit","afterViewInit"].indexOf(ie)){const _t=et.subscribe();this.hooksObservers.push(()=>_t.unsubscribe())}}"onChanges"===ie&&re.field&&(this.resetRefs(re.field.previousValue),this.render())}attachComponentRef(ie,re){this.componentRefs.push(ie),re._componentRefs.push(ie),ie instanceof t.rjb&&Object.assign(ie.instance,{field:re})}render(){if(this.field)if(this.field.options)if(this.detectFieldBuild=!1,this.hostObservers.forEach(re=>re.unsubscribe()),this.hostObservers=[kt(this.field,["hide"],({firstChange:re,currentValue:et})=>{const _t=this.containerRef;!1===this.config.extras.lazyRender?(re&&this.renderField(_t,this.field),(!re||re&&et)&&this.elementRef&&this.renderer.setStyle(this.elementRef.nativeElement,"display",et?"none":"")):et?(_t.clear(),this.field.className&&this.renderer.removeAttribute(this.elementRef.nativeElement,"class")):(this.renderField(_t,this.field),this.field.className&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",this.field.className)),!re&&this.field.options.detectChanges(this.field)}),kt(this.field,["className"],({firstChange:re,currentValue:et})=>{(!re||re&&et)&&(!this.config.extras.lazyRender||!0!==this.field.hide)&&this.elementRef&&this.renderer.setAttribute(this.elementRef.nativeElement,"class",et)})],+oe.xv.major>=18&&+oe.xv.minor>=1){if(this.field.formControl){const re=this.field.formControl.statusChanges.pipe((0,$.F)()).subscribe(()=>rn(this.field));this.hostObservers.push(re)}}else["touched","pristine","status"].forEach(re=>this.hostObservers.push(kt(this.field,["formControl",re],({firstChange:et})=>!et&&rn(this.field))));else this.detectFieldBuild=!0}resetRefs(ie){ie&&(ie._localFields?ie._localFields=[]:ft(this.field,"_localFields",[]),ie._componentRefs?ie._componentRefs=ie._componentRefs.filter(re=>-1===this.componentRefs.indexOf(re)):ft(this.field,"_componentRefs",[])),this.componentRefs=[]}fieldChanges(ie){if(!ie)return()=>{};const re=[St(ie,["props"],()=>ie.options.detectChanges(ie))];ie.options&&re.push(St(ie.options,["formState"],()=>ie.options.detectChanges(ie)));for(const _t of Object.keys(ie._expressions||{})){const mt=kt(ie,["_expressions",_t],({currentValue:Rt,previousValue:ct})=>{ct?.subscription&&(ct.subscription.unsubscribe(),ct.subscription=null),(0,m.A)(Rt.value$)&&(Rt.subscription=Rt.value$.subscribe())});re.push(()=>{ie._expressions[_t]?.subscription&&ie._expressions[_t].subscription.unsubscribe(),mt.unsubscribe()})}for(const _t of[["focus"],["template"],["fieldGroupClassName"],["validation","show"]]){const mt=kt(ie,_t,({firstChange:Rt})=>!Rt&&ie.options.detectChanges(ie));re.push(()=>mt.unsubscribe())}if(ie.formControl&&!ie.fieldGroup){const _t=ie.formControl;let mt=_t.valueChanges.pipe((0,k.T)(lt=>(ie.parsers?.map(de=>lt=de(lt,ie)),Object.is(lt,ie.formControl.value)||ie.formControl.setValue(lt),lt)),(0,$.F)((lt,de)=>!(lt!==de||Array.isArray(lt)||He(lt))));_t.value!==A(ie)&&(mt=mt.pipe((0,I.Z)(_t.value)));const{updateOn:Rt,debounce:ct}=ie.modelOptions;(!Rt||"change"===Rt)&&ct?.default>0&&(mt=_t.valueChanges.pipe((0,w.B)(ct.default)));const Se=mt.subscribe(lt=>{_t._fields?.length>1&&_t instanceof r.MJ&&_t.patchValue(lt,{emitEvent:!1,onlySelf:!0}),M(ie)&&T(ie,lt),ie.options.fieldChanges.next({value:lt,field:ie,type:"valueChanges"})});re.push(()=>Se.unsubscribe())}let et=[];return kt(ie,["_localFields"],({currentValue:_t})=>{et.forEach(mt=>mt()),et=(_t||[]).map(mt=>this.fieldChanges(mt))}),()=>{re.forEach(_t=>_t()),et.forEach(_t=>_t())}}}return Je.\u0275fac=function(ie){return new(ie||Je)(t.rXU(Jn),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(t.c1b),t.rXU(ke,8))},Je.\u0275cmp=t.VBU({type:Je,selectors:[["formly-field"]],viewQuery:function(ie,re){if(1&ie&&t.GBs(Ee,7,t.c1b),2&ie){let et;t.mGM(et=t.lsd())&&(re.viewContainerRef=et.first)}},inputs:{field:"field"},features:[t.OA$],decls:2,vars:0,consts:[["container",""]],template:function(ie,re){1&ie&&t.DNE(0,Ie,0,0,"ng-template",null,0,t.C5r)},styles:["[_nghost-%COMP%]:empty{display:none}"]}),Je})(),G=(()=>{class Je{constructor(ie,re,et,_t){this.builder=ie,this.config=re,this.ngZone=et,this.fieldTemplates=_t,this.modelChange=new t.bkB,this.field={type:"formly-group"},this._modelChangeValue={},this.valueChangesUnsubscribe=()=>{}}set form(ie){this.field.form=ie}get form(){return this.field.form}set model(ie){this.config.extras.immutable&&this._modelChangeValue===ie||this.setField({model:ie})}get model(){return this.field.model}set fields(ie){this.setField({fieldGroup:ie})}get fields(){return this.field.fieldGroup}set options(ie){this.setField({options:ie})}get options(){return this.field.options}set templates(ie){this.fieldTemplates.templates=ie}ngDoCheck(){"changeDetectionCheck"===this.config.extras.checkExpressionOn&&this.checkExpressionChange()}ngOnChanges(ie){ie.fields&&this.form&&Qt(this.form),(ie.fields||ie.form||ie.model&&this._modelChangeValue!==ie.model.currentValue)&&(this.valueChangesUnsubscribe(),this.builder.build(this.field),this.valueChangesUnsubscribe=this.valueChanges())}ngOnDestroy(){this.valueChangesUnsubscribe()}checkExpressionChange(){this.field.options.checkExpressions?.(this.field)}valueChanges(){this.valueChangesUnsubscribe();const ie=this.field.options.fieldChanges.pipe((0,P.p)(({field:re,type:et})=>M(re)&&"valueChanges"===et),(0,Q.n)(()=>function en(Je){return Je instanceof t.FOc}(this.ngZone)?(0,e.of)(null):this.ngZone.onStable.asObservable().pipe((0,N.s)(1)))).subscribe(()=>this.ngZone.runGuarded(()=>{this.checkExpressionChange(),this.modelChange.emit(this._modelChangeValue=Lt(this.model))}));return()=>ie.unsubscribe()}setField(ie){this.config.extras.immutable?this.field={...this.field,...Lt(ie)}:Object.keys(ie).forEach(re=>this.field[re]=ie[re])}}return Je.\u0275fac=function(ie){return new(ie||Je)(t.rXU(Dn),t.rXU(Jn),t.rXU(t.SKi),t.rXU(ke))},Je.\u0275cmp=t.VBU({type:Je,selectors:[["formly-form"]],contentQueries:function(ie,re,et){if(1&ie&&t.wni(et,Xe,4),2&ie){let _t;t.mGM(_t=t.lsd())&&(re.templates=_t)}},inputs:{form:"form",model:"model",fields:"fields",options:"options"},outputs:{modelChange:"modelChange"},features:[t.Jv_([Dn,ke]),t.OA$],decls:1,vars:1,consts:[[3,"field"]],template:function(ie,re){1&ie&&t.nrm(0,"formly-field",0),2&ie&&t.Y8G("field",re.field)},dependencies:[q],encapsulation:2,changeDetection:0}),Je})(),H=(()=>{class Je{constructor(ie,re,et){this.renderer=ie,this.elementRef=re,this.uiAttributesCache={},this.uiEvents={listeners:[],events:["click","keyup","keydown","keypress","focus","blur","change"],callback:(_t,mt)=>{switch(_t){case"focus":return this.onFocus(mt);case"blur":return this.onBlur(mt);case"change":return this.onChange(mt);default:return this.props[_t](this.field,mt)}}},this.document=et}get props(){return this.field.props||{}}get fieldAttrElements(){return this.field?._elementRefs||[]}ngOnChanges(ie){ie.field&&(this.field.name&&this.setAttribute("name",this.field.name),this.uiEvents.listeners.forEach(re=>re()),this.uiEvents.events.forEach(re=>{(this.props?.[re]||-1!==["focus","blur","change"].indexOf(re))&&this.uiEvents.listeners.push(this.renderer.listen(this.elementRef.nativeElement,re,et=>this.uiEvents.callback(re,et)))}),this.props?.attributes&&kt(this.field,["props","attributes"],({currentValue:re,previousValue:et})=>{et&&Object.keys(et).forEach(_t=>this.removeAttribute(_t)),re&&Object.keys(re).forEach(_t=>{null!=re[_t]&&this.setAttribute(_t,re[_t])})}),this.detachElementRef(ie.field.previousValue),this.attachElementRef(ie.field.currentValue),1===this.fieldAttrElements.length&&(!this.id&&this.field.id&&this.setAttribute("id",this.field.id),this.focusObserver=kt(this.field,["focus"],({currentValue:re})=>{this.toggleFocus(re)}))),ie.id&&this.setAttribute("id",this.id)}ngDoCheck(){if(!this.uiAttributes){const ie=this.elementRef.nativeElement;this.uiAttributes=[...ge,"tabindex","placeholder","readonly","disabled","step"].filter(re=>!ie.hasAttribute||!ie.hasAttribute(re))}for(let ie=0;ieie()),this.detachElementRef(this.field),this.focusObserver?.unsubscribe()}toggleFocus(ie){const re=this.fieldAttrElements?this.fieldAttrElements[0]:null;if(!re||!re.nativeElement.focus)return;const et=!!this.document.activeElement&&this.fieldAttrElements.some(({nativeElement:_t})=>this.document.activeElement===_t||_t.contains(this.document.activeElement));ie&&!et?Promise.resolve().then(()=>re.nativeElement.focus()):!ie&&et&&Promise.resolve().then(()=>re.nativeElement.blur())}onFocus(ie){this.focusObserver?.setValue(!0),this.props.focus?.(this.field,ie)}onBlur(ie){this.focusObserver?.setValue(!1),this.props.blur?.(this.field,ie)}onHostChange(ie){ie instanceof Event||this.onChange(ie)}onChange(ie){this.props.change?.(this.field,ie),this.field.formControl?.markAsDirty()}attachElementRef(ie){ie&&(-1===ie._elementRefs?.indexOf(this.elementRef)?ie._elementRefs.push(this.elementRef):ft(ie,"_elementRefs",[this.elementRef]))}detachElementRef(ie){const re=ie?._elementRefs?this.fieldAttrElements.indexOf(this.elementRef):-1;-1!==re&&ie._elementRefs.splice(re,1)}setAttribute(ie,re){this.renderer.setAttribute(this.elementRef.nativeElement,ie,re)}removeAttribute(ie){this.renderer.removeAttribute(this.elementRef.nativeElement,ie)}}return Je.\u0275fac=function(ie){return new(ie||Je)(t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(oe.qQ))},Je.\u0275dir=t.FsC({type:Je,selectors:[["","formlyAttributes",""]],hostBindings:function(ie,re){1&ie&&t.bIt("change",function(_t){return re.onHostChange(_t)})},inputs:{field:[0,"formlyAttributes","field"],id:"id"},features:[t.OA$]}),Je})(),ze=(()=>{class Je{constructor(){this.field={}}set _formlyControls(ie){this.field._localFields=ie.map(et=>et.control._fields||[]).flat().filter(et=>et.formControl!==this.field.formControl)}get model(){return this.field.model}get form(){return this.field.form}get options(){return this.field.options}get key(){return this.field.key}get formControl(){return this.field.formControl}get props(){return this.field.props||{}}get to(){return this.props}get showError(){return this.options.showError(this)}get id(){return this.field.id}get formState(){return this.options?.formState||{}}}return Je.\u0275fac=function(ie){return new(ie||Je)},Je.\u0275dir=t.FsC({type:Je,viewQuery:function(ie,re){if(1&ie&&t.GBs(r.vO,5),2&ie){let et;t.mGM(et=t.lsd())&&(re._formlyControls=et)}},inputs:{field:"field"}}),Je})(),Qe=(()=>{class Je extends ze{}return Je.\u0275fac=(()=>{let ae;return function(re){return(ae||(ae=t.xGo(Je)))(re||Je)}})(),Je.\u0275cmp=t.VBU({type:Je,selectors:[["formly-group"]],hostVars:2,hostBindings:function(ie,re){2&ie&&t.HbH(re.field.fieldGroupClassName||"")},features:[t.Vt3],ngContentSelectors:ce,decls:2,vars:1,consts:[[3,"field",4,"ngFor","ngForOf"],[3,"field"]],template:function(ie,re){1&ie&&(t.NAR(),t.DNE(0,Pe,1,1,"formly-field",0),t.SdG(1)),2&ie&&t.Y8G("ngForOf",re.field.fieldGroup)},dependencies:[q,oe.Sq],encapsulation:2,changeDetection:0}),Je})(),ht=(()=>{class Je{constructor(ie){this.config=ie}ngOnChanges(){const ie=ge.map(re=>`templateOptions.${re}`);this.errorMessage$=(0,z.h)(this.field.formControl.statusChanges,this.field.options?this.field.options.fieldChanges.pipe((0,P.p)(({field:re,type:et,property:_t})=>re===this.field&&"expressionChanges"===et&&(-1!==_t.indexOf("validation")||-1!==ie.indexOf(_t)))):(0,e.of)(null)).pipe((0,I.Z)(null),(0,Q.n)(()=>(0,m.A)(this.errorMessage)?this.errorMessage:(0,e.of)(this.errorMessage)))}get errorMessage(){const ie=this.field.formControl;for(const re in ie.errors)if(ie.errors.hasOwnProperty(re)){let et=this.config.getValidatorMessage(re);if(He(ie.errors[re])){if(ie.errors[re].errorPath)return;ie.errors[re].message&&(et=ie.errors[re].message)}return this.field.validation?.messages?.[re]&&(et=this.field.validation.messages[re]),this.field.validators?.[re]?.message&&(et=this.field.validators[re].message),this.field.asyncValidators?.[re]?.message&&(et=this.field.asyncValidators[re].message),"function"==typeof et?et(ie.errors[re],this.field):et}}}return Je.\u0275fac=function(ie){return new(ie||Je)(t.rXU(Jn))},Je.\u0275cmp=t.VBU({type:Je,selectors:[["formly-validation-message"]],inputs:{field:"field"},features:[t.OA$],decls:2,vars:3,template:function(ie,re){1&ie&&(t.EFF(0),t.nI1(1,"async")),2&ie&&t.JRh(t.bMT(1,1,re.errorMessage$))},dependencies:[oe.Jj],encapsulation:2,changeDetection:0}),Je})(),fn=(()=>{class Je extends ze{set _formlyControls(ie){}set _staticContent(ie){this.fieldComponent=ie}}return Je.\u0275fac=(()=>{let ae;return function(re){return(ae||(ae=t.xGo(Je)))(re||Je)}})(),Je.\u0275dir=t.FsC({type:Je,viewQuery:function(ie,re){if(1&ie&&(t.GBs(ve,5,t.c1b),t.GBs(ve,7,t.c1b)),2&ie){let et;t.mGM(et=t.lsd())&&(re.fieldComponent=et.first),t.mGM(et=t.lsd())&&(re._staticContent=et.first)}},features:[t.Vt3]}),Je})(),In=(()=>{class Je extends ze{constructor(ie){super(),this.sanitizer=ie,this.innerHtml={}}get template(){return this.field&&this.field.template!==this.innerHtml.template&&(this.innerHtml={template:this.field.template,content:this.props.safeHtml?this.sanitizer.bypassSecurityTrustHtml(this.field.template):this.field.template}),this.innerHtml.content}}return Je.\u0275fac=function(ie){return new(ie||Je)(t.rXU(ee.up))},Je.\u0275cmp=t.VBU({type:Je,selectors:[["formly-template"]],features:[t.Vt3],decls:1,vars:1,consts:[[3,"innerHtml"]],template:function(ie,re){1&ie&&t.nrm(0,"div",0),2&ie&&t.Y8G("innerHtml",re.template,t.npT)},encapsulation:2,changeDetection:0}),Je})();class $n{onPopulate(ae){if(ae._expressions)return;ft(ae,"_expressions",{}),kt(ae,["hide"],({currentValue:re,firstChange:et})=>{ft(ae,"_hide",!!re),(!et||et&&!0===re)&&(ae.props.hidden=re,ae.options._hiddenFieldsForCheck.push(ae))}),ae.hideExpression&&kt(ae,["hideExpression"],({currentValue:re})=>{ae._expressions.hide=this.parseExpressions(ae,"hide","boolean"==typeof re?()=>re:re)});const ie=(re,et)=>{"string"==typeof et||Tt(et)?ae._expressions[re]=this.parseExpressions(ae,re,et):et instanceof j.c&&(ae._expressions[re]={value$:et.pipe((0,x.M)(_t=>{this.evalExpr(ae,re,_t),ae.options._detectChanges(ae)}))})};ae.expressions=ae.expressions||{};for(const re of Object.keys(ae.expressions))kt(ae,["expressions",re],({currentValue:et})=>{ie(re,Tt(et)?(..._t)=>et(ae,_t[3]):et)});ae.expressionProperties=ae.expressionProperties||{};for(const re of Object.keys(ae.expressionProperties))kt(ae,["expressionProperties",re],({currentValue:et})=>ie(re,et))}postPopulate(ae){if(!ae.parent&&!ae.options.checkExpressions){let ie=!1;ae.options.checkExpressions=(re,et)=>{if(ie)return;ie=!0;const _t=this.checkExpressions(re,et),mt=ae.options;mt._hiddenFieldsForCheck.sort(Rt=>Rt.hide?-1:1).forEach(Rt=>this.changeHideState(Rt,Rt.hide,!et)),mt._hiddenFieldsForCheck=[],_t&&this.checkExpressions(ae),ie=!1},ae.options._checkField=(re,et)=>{console.warn("Formly: 'options._checkField' is deprecated since v6.0, use 'options.checkExpressions' instead."),ae.options.checkExpressions(re,et)}}}parseExpressions(ae,ie,re){let et,_t;if(ae.parent&&["hide","props.disabled"].includes(ie)){const mt=Rt=>"hide"===ie?Rt.hide:Rt.props.disabled;et=()=>{let Rt=ae.parent;for(;Rt.parent&&!mt(Rt);)Rt=Rt.parent;return mt(Rt)}}return"string"==typeof(re=re||(()=>!1))&&(re=function Kn(Je,ae){try{return Function(...ae,`return ${Je};`)}catch(ie){console.error(ie)}}(re,["model","formState","field"])),{callback:mt=>{try{const Rt=function Gn(Je,ae,ie){return"function"==typeof Je?Je.apply(ae,ie):!!Je}(et?(...ct)=>et(ae)||re(...ct):re,{field:ae},[ae.model,ae.options.formState,ae,mt]);return!(!mt&&(_t===Rt||He(Rt)&&!(0,m.A)(Rt)&&JSON.stringify(Rt)===JSON.stringify(_t))||(_t=Rt,this.evalExpr(ae,ie,Rt),0))}catch(Rt){throw Rt.message=`[Formly Error] [Expression "${ie}"] ${Rt.message}`,Rt}}}}checkExpressions(ae,ie=!1){if(!ae)return!1;let re=!1;if(ae._expressions)for(const et of Object.keys(ae._expressions))ae._expressions[et].callback?.(ie)&&(re=!0);return ae.fieldGroup?.forEach(et=>this.checkExpressions(et,ie)&&(re=!0)),re}changeDisabledState(ae,ie){ae.fieldGroup&&ae.fieldGroup.filter(re=>!re._expressions.hasOwnProperty("props.disabled")).forEach(re=>this.changeDisabledState(re,ie)),M(ae)&&ae.props.disabled!==ie&&(ae.props.disabled=ie)}changeHideState(ae,ie,re){if(ae.fieldGroup&&ae.fieldGroup.filter(et=>et&&!et._expressions.hide).forEach(et=>this.changeHideState(et,ie,re)),ae.formControl&&M(ae)){ft(ae,"_hide",!(!ie&&!ae.hide));const et=ae.formControl;et._fields?.length>1&&Ft(et),!0!==ie||et._fields&&!et._fields.every(_t=>!!_t._hide)?!1===ie&&(ae.resetOnHide&&!je(ae.defaultValue)&&je(A(ae))&&T(ae,ae.defaultValue),wt(ae,void 0,!0),ae.resetOnHide&&ae.fieldArray&&ae.fieldGroup?.length!==ae.model?.length&&ae.options.build(ae)):(function Mt(Je,ae=!1){const ie=Je.formControl,re=ie._fields?ie._fields.indexOf(Je):-1;-1!==re&&ie._fields.splice(re,1);const et=ie.parent;if(!et)return;const _t={emitEvent:ae};if(et instanceof r.Yp){const mt=et.controls.findIndex(Rt=>Rt===ie);-1!==mt&&et.removeAt(mt,_t)}else if(et instanceof r.gE){const mt=te(Je),Rt=mt[mt.length-1];et.get([Rt])===ie&&et.removeControl(Rt,_t)}ie.setParent(null)}(ae,!0),re&&ae.resetOnHide&&(T(ae,void 0),ae.formControl.reset({value:void 0,disabled:ae.formControl.disabled}),ae.options.fieldChanges.next({value:void 0,field:ae,type:"valueChanges"}),ae.fieldGroup&&ae.formControl instanceof r.Yp&&(ae.fieldGroup.length=0)))}ae.options.fieldChanges&&ae.options.fieldChanges.next({field:ae,type:"hidden",value:ie})}evalExpr(ae,ie,re){if(0===ie.indexOf("model.")){const et=ie.replace(/^model\./,""),_t=ae.fieldGroup?ae:ae.parent;let mt=ae?.key===et?ae.formControl:ae.form.get(et);!mt&&ae.get(et)&&(mt=ae.get(et).formControl),T({key:et,parent:_t,model:ae.model},re),mt&&(!se(mt.value)||!se(re))&&mt.value!==re&&mt.patchValue(re)}else{try{let et=ae;const _t=this._evalExpressionPath(ae,ie),mt=_t.length-1;for(let Rt=0;Rtet).forEach(et=>{const _t=et.match(/['|"](.*?)['|"]/);_t?re.push(_t[1]):re.push(...et.split(".").filter(mt=>mt))}),ae._expressions[ie]&&(ae._expressions[ie].paths=re),re}}class Nn{constructor(ae){this.config=ae}onPopulate(ae){this.initFieldValidation(ae,"validators"),this.initFieldValidation(ae,"asyncValidators")}initFieldValidation(ae,ie){const re=[];if("validators"===ie&&!(ae.hasOwnProperty("fieldGroup")&&!M(ae))&&re.push(this.getPredefinedFieldValidation(ae)),ae[ie])for(const et of Object.keys(ae[ie]))"validation"===et?re.push(...ae[ie].validation.map(_t=>this.wrapNgValidatorFn(ae,_t))):re.push(this.wrapNgValidatorFn(ae,ae[ie][et],et));ft(ae,"_"+ie,re)}getPredefinedFieldValidation(ae){let ie=[];return ge.forEach(re=>kt(ae,["props",re],({currentValue:et,firstChange:_t})=>{ie=ie.filter(mt=>mt!==re),"required"===re&&null!=et&&"boolean"!=typeof et&&console.warn(`Formly: Invalid prop 'required' of type '${typeof et}', expected 'boolean' (Field:${ae.key}).`),null!=et&&!1!==et&&ie.push(re),!_t&&ae.formControl&&Ft(ae.formControl)})),re=>0===ie.length?null:r.k0.compose(ie.map(et=>()=>{const _t=ae.props[et];switch(et){case"required":return r.k0.required(re);case"pattern":return r.k0.pattern(_t)(re);case"minLength":const mt=r.k0.minLength(_t)(re),Rt=this.config.getValidatorMessage("minlength")||ae.validation?.messages?.minlength?"minlength":"minLength";return mt?{[Rt]:mt.minlength}:null;case"maxLength":const ct=r.k0.maxLength(_t)(re),Se=this.config.getValidatorMessage("maxlength")||ae.validation?.messages?.maxlength?"maxlength":"maxLength";return ct?{[Se]:ct.maxlength}:null;case"min":return r.k0.min(_t)(re);case"max":return r.k0.max(_t)(re);default:return null}}))(re)}wrapNgValidatorFn(ae,ie,re){let et;if("string"==typeof ie&&(et=Lt(this.config.getValidator(ie))),"object"==typeof ie&&ie.name&&(et=Lt(this.config.getValidator(ie.name)),ie.options&&(et.options=ie.options)),"object"==typeof ie&&ie.expression){const{expression:_t,...mt}=ie;et={name:re,validation:_t,options:Object.keys(mt).length>0?mt:null}}return"function"==typeof ie&&(et={name:re,validation:ie}),_t=>{const mt=et.validation(_t,ae,et.options);return function xt(Je){return!!Je&&"function"==typeof Je.then}(mt)?mt.then(Rt=>this.handleResult(ae,re?!!Rt:Rt,et)):(0,m.A)(mt)?mt.pipe((0,k.T)(Rt=>this.handleResult(ae,re?!!Rt:Rt,et))):this.handleResult(ae,re?!!mt:mt,et)}}handleResult(ae,ie,{name:re,options:et}){"boolean"==typeof ie&&(ie=ie?null:{[re]:et||!0});const _t=ae.formControl;return _t?._childrenErrors?.[re]?.(),He(ie)&&Object.keys(ie).forEach(mt=>{const Rt=ie[mt].errorPath?ie[mt].errorPath:et?.errorPath,ct=Rt?ae.formControl.get(Rt):null;if(ct){const{errorPath:Se,...lt}=ie[mt];ct.setErrors({...ct.errors||{},[mt]:lt}),!_t._childrenErrors&&ft(_t,"_childrenErrors",{}),_t._childrenErrors[mt]=()=>{const{[mt]:de,...Oe}=ct.errors||{};ct.setErrors(0===Object.keys(Oe).length?null:Oe)}}}),ie}}class vn{prePopulate(ae){this.root||(this.root=ae),ae.parent&&Object.defineProperty(ae,"form",{get:()=>ae.parent.formControl,configurable:!0})}onPopulate(ae){ae.hasOwnProperty("fieldGroup")&&!M(ae)?ft(ae,"formControl",ae.form):this.addFormControl(ae)}postPopulate(ae){if(this.root===ae&&(this.root=null,this.setValidators(ae)&&ae.parent)){let re=ae.parent;for(;re;)(M(re)||!re.parent)&&Ft(re.formControl,!0),re=re.parent}}addFormControl(ae){let ie=function Ut(Je){return Je.formControl?Je.formControl:!1===Je.shareFormControl?null:Je.form?.get(te(Je))}(ae);if(!ae.fieldArray){if(ie){if(ie instanceof r.MJ){const re=M(ae)?A(ae):ae.defaultValue;ie.defaultValue=re}}else{const re={updateOn:ae.modelOptions.updateOn};if(ae.fieldGroup)ie=new r.gE({},re);else{const et=M(ae)?A(ae):ae.defaultValue;ie=new r.MJ({value:et,disabled:!!ae.props.disabled},{...re,initialValueIsDefault:!0})}}wt(ae,ie)}}setValidators(ae,ie=!1){!1===ie&&M(ae)&&ae.props?.disabled&&(ie=!0);let re=!1;if(ae.fieldGroup?.forEach(et=>et&&this.setValidators(et,ie)&&(re=!0)),M(ae)||!ae.parent||!M(ae)&&!ae.fieldGroup){const{formControl:et}=ae;if(et&&(M(ae)&&et instanceof r.MJ&&(ie&&et.enabled&&(et.disable({emitEvent:!1,onlySelf:!0}),re=!0),!ie&&et.disabled&&(et.enable({emitEvent:!1,onlySelf:!0}),re=!0)),null===et.validator&&this.hasValidators(ae,"_validators")&&(et.setValidators(()=>{const _t=r.k0.compose(this.mergeValidators(ae,"_validators"));return _t?_t(et):null}),re=!0),null===et.asyncValidator&&this.hasValidators(ae,"_asyncValidators")&&(et.setAsyncValidators(()=>{const _t=r.k0.composeAsync(this.mergeValidators(ae,"_asyncValidators"));return _t?_t(et):(0,e.of)(null)}),re=!0),re)){Ft(et,!0);let _t=et.parent;for(let mt=1;mt1&&re._fields.some(et=>et[ie].length>0)||ae[ie].length>0)||ae.fieldGroup?.some(et=>et?.fieldGroup&&!M(et)&&this.hasValidators(et,ie))}mergeValidators(ae,ie){const re=[],et=ae.formControl;return et?._fields?.length>1?et._fields.filter(_t=>!_t._hide).forEach(_t=>re.push(..._t[ie])):ae[ie]&&re.push(...ae[ie]),ae.fieldGroup&&ae.fieldGroup.filter(_t=>_t?.fieldGroup&&!M(_t)).forEach(_t=>re.push(...this.mergeValidators(_t,ie))),re}}class Jt{constructor(ae){this.config=ae,this.formId=0}prePopulate(ae){const ie=ae.parent;this.initRootOptions(ae),this.initFieldProps(ae),ie&&(Object.defineProperty(ae,"options",{get:()=>ie.options,configurable:!0}),Object.defineProperty(ae,"model",{get:()=>M(ae)&&ae.fieldGroup?A(ae):ie.model,configurable:!0})),Object.defineProperty(ae,"get",{value:re=>It(ae,re),configurable:!0}),this.getFieldComponentInstance(ae).prePopulate?.(ae)}onPopulate(ae){this.initFieldOptions(ae),this.getFieldComponentInstance(ae).onPopulate?.(ae),ae.fieldGroup&&ae.fieldGroup.forEach((ie,re)=>{ie&&(Object.defineProperty(ie,"parent",{get:()=>ae,configurable:!0}),Object.defineProperty(ie,"index",{get:()=>re,configurable:!0})),this.formId++})}postPopulate(ae){this.getFieldComponentInstance(ae).postPopulate?.(ae)}initFieldProps(ae){ae.props??(ae.props=ae.templateOptions),Object.defineProperty(ae,"templateOptions",{get:()=>ae.props,set:ie=>ae.props=ie,configurable:!0})}initRootOptions(ae){if(ae.parent)return;const ie=ae.options;ae.options.formState=ae.options.formState||{},ie.showError||(ie.showError=this.config.extras.showError),ie.fieldChanges||ft(ie,"fieldChanges",new R.B),ie._hiddenFieldsForCheck||(ie._hiddenFieldsForCheck=[]),ie._markForCheck=re=>{console.warn("Formly: 'options._markForCheck' is deprecated since v6.0, use 'options.detectChanges' instead."),ie.detectChanges(re)},ie._detectChanges=re=>{re._componentRefs&&rn(re),re.fieldGroup?.forEach(et=>et&&ie._detectChanges(et))},ie.detectChanges=re=>{re.options.checkExpressions?.(re),ie._detectChanges(re)},ie.resetModel=re=>{re=Lt(re??ie._initialModel),ae.model&&(Object.keys(ae.model).forEach(et=>delete ae.model[et]),Object.assign(ae.model,re||{})),kt(ie,["parentForm","submitted"]).setValue(!1,!1),ie.build(ae),ae.form.reset(ae.model)},ie.updateInitialValue=re=>ie._initialModel=Lt(re??ae.model),ae.options.updateInitialValue()}initFieldOptions(ae){X(ae,{id:U(`formly_${this.formId}`,ae,ae.index),hooks:{},modelOptions:{},validation:{messages:{}},props:ae.type&&M(ae)?{label:"",placeholder:"",disabled:!1}:{}}),this.config.extras.resetFieldOnHide&&!1!==ae.resetOnHide&&(ae.resetOnHide=!0),"formly-template"!==ae.type&&(ae.template||ae.expressions?.template||ae.expressionProperties?.template)&&(ae.type="formly-template"),!ae.type&&ae.fieldGroup&&(ae.type="formly-group"),ae.type&&this.config.getMergedField(ae),M(ae)&&!je(ae.defaultValue)&&je(A(ae))&&!Xt(ae)&&T(ae,ae.defaultValue),ae.wrappers=ae.wrappers||[]}getFieldComponentInstance(ae){const ie=()=>{let re=this.config.resolveFieldTypeRef(ae);const et=ae._componentRefs?.slice(-1)[0];return et instanceof t.rjb&&et?.componentType===re?.componentType&&(re=et),re?.instance};return ae._proxyInstance||ft(ae,"_proxyInstance",new Proxy({},{get:(re,et)=>ie()?.[et],set:(re,et,_t)=>ie()[et]=_t})),ae._proxyInstance}}function An(Je){return{types:[{name:"formly-group",component:Qe},{name:"formly-template",component:In}],extensions:[{name:"core",extension:new Jt(Je),priority:-250},{name:"field-validation",extension:new Nn(Je),priority:-200},{name:"field-form",extension:new vn,priority:-150},{name:"field-expression",extension:new $n,priority:-100}]}}let Yt=(()=>{class Je{constructor(ie,re=[]){re&&re.forEach(et=>ie.addConfig(et))}static forRoot(ie={}){return{ngModule:Je,providers:[{provide:Tn,multi:!0,useFactory:An,deps:[Jn]},{provide:Tn,useValue:ie,multi:!0},Jn,Dn]}}static forChild(ie={}){return{ngModule:Je,providers:[{provide:Tn,multi:!0,useFactory:An,deps:[Jn]},{provide:Tn,useValue:ie,multi:!0},Dn]}}}return Je.\u0275fac=function(ie){return new(ie||Je)(t.KVO(Jn),t.KVO(Tn,8))},Je.\u0275mod=t.$C({type:Je}),Je.\u0275inj=t.G2t({imports:[[oe.MD]]}),Je})()},6476:($t,De,a)=>{function t(){}a.d(De,{C:()=>r});class r{constructor(e=1/0,z=t){this.max=e,this.dispose=z,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const z=this.getNode(e);return z&&z.value}get size(){return this.map.size}getNode(e){const z=this.map.get(e);if(z&&z!==this.newest){const{older:j,newer:R}=z;R&&(R.older=j),j&&(j.newer=R),z.older=this.newest,z.older.newer=z,z.newer=null,this.newest=z,z===this.oldest&&(this.oldest=R)}return z}set(e,z){let j=this.getNode(e);return j?j.value=z:(j={key:e,value:z,newer:null,older:this.newest},this.newest&&(this.newest.newer=j),this.newest=j,this.oldest=this.oldest||j,this.map.set(e,j),j.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const z=this.map.get(e);return!!z&&(z===this.newest&&(this.newest=z.older),z===this.oldest&&(this.oldest=z.newer),z.newer&&(z.newer.older=z.older),z.older&&(z.older.newer=z.newer),this.map.delete(e),this.dispose(z.value,e),!0)}}},9055:($t,De,a)=>{function t(){}a.d(De,{l:()=>R});const r=t,m=typeof WeakRef<"u"?WeakRef:function($){return{deref:()=>$}},e=typeof WeakMap<"u"?WeakMap:Map,z=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:t,unregister:t}};class R{constructor(k=1/0,I=r){this.max=k,this.dispose=I,this.map=new e,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const w=this.unfinalizedNodes.values();for(let P=0;P<10024;P++){const Q=w.next().value;if(!Q)break;this.unfinalizedNodes.delete(Q);const N=Q.key;delete Q.key,Q.keyRef=new m(N),this.registry.register(N,Q,Q)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new z(this.deleteNode.bind(this))}has(k){return this.map.has(k)}get(k){const I=this.getNode(k);return I&&I.value}getNode(k){const I=this.map.get(k);if(I&&I!==this.newest){const{older:w,newer:P}=I;P&&(P.older=w),w&&(w.newer=P),I.older=this.newest,I.older.newer=I,I.newer=null,this.newest=I,I===this.oldest&&(this.oldest=P)}return I}set(k,I){let w=this.getNode(k);return w?w.value=I:(w={key:k,value:I,newer:null,older:this.newest},this.newest&&(this.newest.newer=w),this.newest=w,this.oldest=this.oldest||w,this.scheduleFinalization(w),this.map.set(k,w),this.size++,w.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(k){k===this.newest&&(this.newest=k.older),k===this.oldest&&(this.oldest=k.newer),k.newer&&(k.newer.older=k.older),k.older&&(k.older.newer=k.newer),this.size--;const I=k.key||k.keyRef&&k.keyRef.deref();this.dispose(k.value,I),k.keyRef?this.registry.unregister(k):this.unfinalizedNodes.delete(k),I&&this.map.delete(I)}delete(k){const I=this.map.get(k);return!!I&&(this.deleteNode(I),!0)}scheduleFinalization(k){this.unfinalizedNodes.add(k),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},9860:($t,De,a)=>{a.d(De,{A:()=>j,L:()=>z});const{toString:t,hasOwnProperty:r}=Object.prototype,m=Function.prototype.toString,e=new Map;function z(Q,N){try{return R(Q,N)}finally{e.clear()}}const j=z;function R(Q,N){if(Q===N)return!0;const x=t.call(Q);if(x!==t.call(N))return!1;switch(x){case"[object Array]":if(Q.length!==N.length)return!1;case"[object Object]":{if(P(Q,N))return!0;const ee=$(Q),Ee=$(N),Ie=ee.length;if(Ie!==Ee.length)return!1;for(let ce=0;ce=0&&Q.indexOf(N,x)===x}(ee,I)}}return!1}function $(Q){return Object.keys(Q).filter(k,Q)}function k(Q){return void 0!==this[Q]}const I="{ [native code] }";function P(Q,N){let x=e.get(Q);if(x){if(x.has(N))return!0}else e.set(Q,x=new Set);return x.add(N),!1}},4420:($t,De,a)=>{a.d(De,{b:()=>z});const t=()=>Object.create(null),{forEach:r,slice:m}=Array.prototype,{hasOwnProperty:e}=Object.prototype;class z{constructor($=!0,k=t){this.weakness=$,this.makeData=k}lookup(){return this.lookupArray(arguments)}lookupArray($){let k=this;return r.call($,I=>k=k.getChildTrie(I)),e.call(k,"data")?k.data:k.data=this.makeData(m.call($))}peek(){return this.peekArray(arguments)}peekArray($){let k=this;for(let I=0,w=$.length;k&&I{a.d(De,{EM:()=>lr,$Y:()=>zo,Ic:()=>Wo,_9:()=>Hn,sM:()=>Tr,XK:()=>Pi,J1:()=>Ko});var t=a(3953),r=a(1985),m=a(6780),z=a(9687);const R=new class j extends z.q{}(class e extends m.R{constructor(Te,$e){super(Te,$e),this.scheduler=Te,this.work=$e}schedule(Te,$e=0){return $e>0?super.schedule(Te,$e):(this.delay=$e,this.state=Te,this.scheduler.flush(this),this)}execute(Te,$e){return $e>0||this.closed?super.execute(Te,$e):this._execute(Te,$e)}requestAsyncId(Te,$e,at=0){return null!=at&&at>0||null==at&&this.delay>0?super.requestAsyncId(Te,$e,at):(Te.flush(this),0)}});var k=a(3494),I=a(2806),w=function(st){return st[st.loading=1]="loading",st[st.setVariables=2]="setVariables",st[st.fetchMore=3]="fetchMore",st[st.refetch=4]="refetch",st[st.poll=6]="poll",st[st.ready=7]="ready",st[st.error=8]="error",st}(w||{});function P(st){return!!st&&st<7}var N=a(4626),x=a(1404),oe=a(8008),ee=oe.C.execute,Ee=a(560),Ie=a(4183),ce=a(7994),Pe=function(st,Te){var $e;try{$e=JSON.stringify(st)}catch(At){var at=(0,x.vA)(39,Te,At.message);throw at.parseError=At,at}return $e},pe=a(6500);function ge(st){var Te={next:function(){return st.read()}};return pe.uJ&&(Te[Symbol.asyncIterator]=function(){return this}),Te}function Bt(st){var Te=st;if(function T(st){return!!st.body}(st)&&(Te=st.body),function A(st){return!(!pe.uJ||!st[Symbol.asyncIterator])}(Te))return function U(st){var Te,$e=st[Symbol.asyncIterator]();return(Te={next:function(){return $e.next()}})[Symbol.asyncIterator]=function(){return this},Te}(Te);if(function D(st){return!!st.getReader}(Te))return ge(Te.getReader());if(function X(st){return!!st.stream}(Te))return ge(Te.stream().getReader());if(function se(st){return!!st.arrayBuffer}(Te))return function te(st){var Te=!1,$e={next:function(){return Te?Promise.resolve({value:void 0,done:!0}):(Te=!0,new Promise(function(at,At){st.then(function(nn){at({value:nn,done:!1})}).catch(At)}))}};return pe.uJ&&($e[Symbol.asyncIterator]=function(){return this}),$e}(Te.arrayBuffer());if(function je(st){return!!st.pipe}(Te))return function M(st){var Te=null,$e=null,at=!1,At=[],nn=[];function ln(jn){if(!$e){if(nn.length){var oi=nn.shift();if(Array.isArray(oi)&&oi[0])return oi[0]({value:jn,done:!1})}At.push(jn)}}function hn(jn){$e=jn,nn.slice().forEach(function(ai){ai[1](jn)}),!Te||Te()}function xn(){at=!0,nn.slice().forEach(function(oi){oi[0]({value:void 0,done:!0})}),!Te||Te()}Te=function(){Te=null,st.removeListener("data",ln),st.removeListener("error",hn),st.removeListener("end",xn),st.removeListener("finish",xn),st.removeListener("close",xn)},st.on("data",ln),st.on("error",hn),st.on("end",xn),st.on("finish",xn),st.on("close",xn);var Zn={next:function(){return function Rn(){return new Promise(function(jn,oi){return $e?oi($e):At.length?jn({value:At.shift(),done:!1}):at?jn({value:void 0,done:!0}):void nn.push([jn,oi])})}()}};return pe.uJ&&(Zn[Symbol.asyncIterator]=function(){return this}),Zn}(Te);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Tt=function(st,Te,$e){var at=new Error($e);throw at.name="ServerError",at.response=st,at.statusCode=st.status,at.result=Te,at},Vt=a(1181),He=Symbol(),St=function(st){function Te($e){var at=$e.graphQLErrors,At=$e.protocolErrors,nn=$e.clientErrors,ln=$e.networkError,hn=$e.errorMessage,xn=$e.extraInfo,Rn=st.call(this,hn)||this;return Rn.name="ApolloError",Rn.graphQLErrors=at||[],Rn.protocolErrors=At||[],Rn.clientErrors=nn||[],Rn.networkError=ln||null,Rn.message=hn||function(st){var Te=(0,N.fX)((0,N.fX)((0,N.fX)([],st.graphQLErrors,!0),st.clientErrors,!0),st.protocolErrors,!0);return st.networkError&&Te.push(st.networkError),Te.map(function($e){return(0,Vt.U)($e)&&$e.message||"Error message not found."}).join("\n")}(Rn),Rn.extraInfo=xn,Rn.cause=(0,N.fX)((0,N.fX)((0,N.fX)([ln],at||[],!0),At||[],!0),nn||[],!0).find(function(Zn){return!!Zn})||null,Rn.__proto__=Te.prototype,Rn}return(0,N.C6)(Te,st),Te}(Error),kt=a(7715),It=a(1115);function rn(st){return"incremental"in st}function Tn(st){return(0,Vt.U)(st)&&"payload"in st}function Jn(st,Te){var $e=st,at=new It.ZI;return rn(Te)&&(0,kt.E)(Te.incremental)&&Te.incremental.forEach(function(At){for(var nn=At.data,ln=At.path,hn=ln.length-1;hn>=0;--hn){var xn=ln[hn],Zn=isNaN(+xn)?{}:[];Zn[xn]=nn,nn=Zn}$e=at.merge($e,nn)}),$e}var Dn=Object.prototype.hasOwnProperty;function Ut(st){var Te={};return st.split("\n").forEach(function($e){var at=$e.indexOf(":");if(at>-1){var At=$e.slice(0,at).trim().toLowerCase(),nn=$e.slice(at+1).trim();Te[At]=nn}}),Te}function wt(st,Te){st.status>=300&&Tt(st,function(){try{return JSON.parse(Te)}catch{return Te}}(),"Response not successful: Received status code ".concat(st.status));try{return JSON.parse(Te)}catch(At){var at=At;throw at.name="ServerParseError",at.response=st,at.statusCode=st.status,at.bodyText=Te,at}}var ke=a(1658),ze={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Qe=function(st,Te){return Te(st)};function Kn(st){return new ce.c(function(Te){Te.error(st)})}var Gn=a(8540),Nn=a(1601),vn=a(4229),Jt=(0,x.no)(function(){return fetch}),An=function(st){void 0===st&&(st={});var Te=st.uri,$e=void 0===Te?"/graphql":Te,at=st.fetch,At=st.print,nn=void 0===At?Qe:At,ln=st.includeExtensions,hn=st.preserveHeaderCase,xn=st.useGETForQueries,Rn=st.includeUnusedVariables,Zn=void 0!==Rn&&Rn,jn=(0,N.Tt)(st,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(st){if(!st&&typeof fetch>"u")throw(0,x.vA)(37)}(at||Jt);var oi={http:{includeExtensions:ln,preserveHeaderCase:hn},options:jn.fetchOptions,credentials:jn.credentials,headers:jn.headers};return new oe.C(function(ai){var Ti=function(st,Te){return st.getContext().uri||("function"==typeof Te?Te(st):Te||"/graphql")}(ai,$e),ci=ai.getContext(),yi={};if(ci.clientAwareness){var _i=ci.clientAwareness,Oi=_i.name,ki=_i.version;Oi&&(yi["apollographql-client-name"]=Oi),ki&&(yi["apollographql-client-version"]=ki)}var co=(0,N.Cl)((0,N.Cl)({},yi),ci.headers),Ai={http:ci.http,options:ci.fetchOptions,credentials:ci.credentials,headers:co};if((0,Ie.d8)(["client"],ai.query)){var go=(0,Nn.er)(ai.query);if(!go)return Kn(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));ai.query=go}var wo,_o=function Kt(st,Te){for(var $e=[],at=2;at-1;){if(yi=void 0,_o=[hn.slice(0,ci),hn.slice(ci+ln.length)],hn=_o[1],_i=(yi=_o[0]).indexOf("\r\n\r\n"),Oi=Ut(yi.slice(0,_i)),(ki=Oi["content-type"])&&-1===ki.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(co=yi.slice(_i))if(Ai=wt(st,co),Object.keys(Ai).length>1||"data"in Ai||"incremental"in Ai||"errors"in Ai||"payload"in Ai)if(Tn(Ai)){if(go={},"payload"in Ai){if(1===Object.keys(Ai).length&&null===Ai.payload)return[2];go=(0,N.Cl)({},Ai.payload)}"errors"in Ai&&(go=(0,N.Cl)((0,N.Cl)({},go),{extensions:(0,N.Cl)((0,N.Cl)({},"extensions"in go?go.extensions:null),(yo={},yo[He]=Ai.errors,yo))})),Te(go)}else Te(Ai);else if(1===Object.keys(Ai).length&&"hasNext"in Ai&&!Ai.hasNext)return[2];ci=hn.indexOf(ln)}return[3,1];case 3:return[2]}})})}($o,kr):function Qt(st){return function(Te){return Te.text().then(function($e){return wt(Te,$e)}).then(function($e){return!Array.isArray($e)&&!Dn.call($e,"data")&&!Dn.call($e,"errors")&&Tt(Te,$e,"Server response was missing for query '".concat(Array.isArray(st)?st.map(function(at){return at.operationName}):st.operationName,"'.")),$e})}}(ai)($o).then(kr)}).then(function(){wo=void 0,Vo.complete()}).catch(function($o){wo=void 0,function Ft(st,Te){st.result&&st.result.errors&&st.result.data&&Te.next(st.result),Te.error(st)}($o,Vo)}),function(){wo&&wo.abort()}})})},Yt=function(st){function Te($e){void 0===$e&&($e={});var at=st.call(this,An($e).request)||this;return at.options=$e,at}return(0,N.C6)(Te,st),Te}(oe.C),Je=a(9860),ae=a(2130),ie=a(8926);function re(st,Te,$e){return new ce.c(function(at){var At={then:function(xn){return new Promise(function(Rn){return Rn(xn())})}};function nn(xn,Rn){return function(Zn){if(xn){var jn=function(){return at.closed?0:xn(Zn)};At=At.then(jn,jn).then(function(oi){return at.next(oi)},function(oi){return at.error(oi)})}else at[Rn](Zn)}}var ln={next:nn(Te,"next"),error:nn($e,"error"),complete:function(){At.then(function(){return at.complete()})}},hn=st.subscribe(ln);return function(){return hn.unsubscribe()}})}function et(st){var Te=_t(st);return(0,kt.E)(Te)}function _t(st){var Te=(0,kt.E)(st.errors)?st.errors.slice(0):[];return rn(st)&&(0,kt.E)(st.incremental)&&st.incremental.forEach(function($e){$e.errors&&Te.push.apply(Te,$e.errors)}),Te}var mt=a(1367),Rt=a(9977);function ct(st,Te,$e){var at=[];st.forEach(function(At){return At[Te]&&at.push(At)}),at.forEach(function(At){return At[Te]($e)})}function Se(st){function Te($e){Object.defineProperty(st,$e,{value:ce.c})}return pe.ol&&Symbol.species&&Te(Symbol.species),Te("@@species"),st}function lt(st){return st&&"function"==typeof st.then}var de=function(st){function Te($e){var at=st.call(this,function(At){return at.addObserver(At),function(){return at.removeObserver(At)}})||this;return at.observers=new Set,at.promise=new Promise(function(At,nn){at.resolve=At,at.reject=nn}),at.handlers={next:function(At){null!==at.sub&&(at.latest=["next",At],at.notify("next",At),ct(at.observers,"next",At))},error:function(At){var nn=at.sub;null!==nn&&(nn&&setTimeout(function(){return nn.unsubscribe()}),at.sub=null,at.latest=["error",At],at.reject(At),at.notify("error",At),ct(at.observers,"error",At))},complete:function(){var nn=at.sub,ln=at.sources;if(null!==nn){var xn=(void 0===ln?[]:ln).shift();xn?lt(xn)?xn.then(function(Rn){return at.sub=Rn.subscribe(at.handlers)},at.handlers.error):at.sub=xn.subscribe(at.handlers):(nn&&setTimeout(function(){return nn.unsubscribe()}),at.sub=null,at.latest&&"next"===at.latest[0]?at.resolve(at.latest[1]):at.resolve(),at.notify("complete"),ct(at.observers,"complete"))}}},at.nextResultListeners=new Set,at.cancel=function(At){at.reject(At),at.sources=[],at.handlers.complete()},at.promise.catch(function(At){}),"function"==typeof $e&&($e=[new ce.c($e)]),lt($e)?$e.then(function(At){return at.start(At)},at.handlers.error):at.start($e),at}return(0,N.C6)(Te,st),Te.prototype.start=function($e){void 0===this.sub&&(this.sources=Array.from($e),this.handlers.complete())},Te.prototype.deliverLastMessage=function($e){if(this.latest){var at=this.latest[0],At=$e[at];At&&At.call($e,this.latest[1]),null===this.sub&&"next"===at&&$e.complete&&$e.complete()}},Te.prototype.addObserver=function($e){this.observers.has($e)||(this.deliverLastMessage($e),this.observers.add($e))},Te.prototype.removeObserver=function($e){this.observers.delete($e)&&this.observers.size<1&&this.handlers.complete()},Te.prototype.notify=function($e,at){var At=this.nextResultListeners;At.size&&(this.nextResultListeners=new Set,At.forEach(function(nn){return nn($e,at)}))},Te.prototype.beforeNext=function($e){var at=!1;this.nextResultListeners.add(function(At,nn){at||(at=!0,$e(At,nn))})},Te}(ce.c);Se(de);var Oe=a(120),zt=a(4246),Ze=a(9471),Ne=Object.assign,Le=Object.hasOwnProperty,Y=function(st){function Te($e){var at=$e.queryManager,At=$e.queryInfo,nn=$e.options,ln=st.call(this,function(yi){try{var _i=yi._subscription._observer;_i&&!_i.error&&(_i.error=V)}catch{}var Oi=!ln.observers.size;ln.observers.add(yi);var ki=ln.last;return ki&&ki.error?yi.error&&yi.error(ki.error):ki&&ki.result&&yi.next&&yi.next(ki.result),Oi&&ln.reobserve().catch(function(){}),function(){ln.observers.delete(yi)&&!ln.observers.size&&ln.tearDownQuery()}})||this;ln.observers=new Set,ln.subscriptions=new Set,ln.queryInfo=At,ln.queryManager=at,ln.waitForOwnResult=Ce(nn.fetchPolicy),ln.isTornDown=!1,ln.subscribeToMore=ln.subscribeToMore.bind(ln);var hn=at.defaultOptions.watchQuery,Rn=(void 0===hn?{}:hn).fetchPolicy,Zn=void 0===Rn?"cache-first":Rn,jn=nn.fetchPolicy,oi=void 0===jn?Zn:jn,ai=nn.initialFetchPolicy,Ti=void 0===ai?"standby"===oi?Zn:oi:ai;ln.options=(0,N.Cl)((0,N.Cl)({},nn),{initialFetchPolicy:Ti,fetchPolicy:oi}),ln.queryId=At.queryId||at.generateQueryId();var ci=(0,vn.Vu)(ln.query);return ln.queryName=ci&&ci.name&&ci.name.value,ln}return(0,N.C6)(Te,st),Object.defineProperty(Te.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),Te.prototype.result=function(){var $e=this;return new Promise(function(at,At){var nn={next:function(hn){at(hn),$e.observers.delete(nn),$e.observers.size||$e.queryManager.removeQuery($e.queryId),setTimeout(function(){ln.unsubscribe()},0)},error:At},ln=$e.subscribe(nn)})},Te.prototype.resetDiff=function(){this.queryInfo.resetDiff()},Te.prototype.getCurrentResult=function($e){void 0===$e&&($e=!0);var at=this.getLastResult(!0),At=this.queryInfo.networkStatus||at&&at.networkStatus||w.ready,nn=(0,N.Cl)((0,N.Cl)({},at),{loading:P(At),networkStatus:At}),ln=this.options.fetchPolicy,hn=void 0===ln?"cache-first":ln;if(!Ce(hn)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var xn=this.queryInfo.getDiff();(xn.complete||this.options.returnPartialData)&&(nn.data=xn.result),(0,Je.L)(nn.data,{})&&(nn.data=void 0),xn.complete?(delete nn.partial,xn.complete&&nn.networkStatus===w.loading&&("cache-first"===hn||"cache-only"===hn)&&(nn.networkStatus=w.ready,nn.loading=!1)):nn.partial=!0,!1!==globalThis.__DEV__&&!xn.complete&&!this.options.partialRefetch&&!nn.loading&&!nn.data&&!nn.error&&Ve(xn.missing)}return $e&&this.updateLastResult(nn),nn},Te.prototype.isDifferentFromLastResult=function($e,at){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,Ze.a)(this.query,this.last.result,$e,this.variables):!(0,Je.L)(this.last.result,$e))||at&&!(0,Je.L)(this.last.variables,at)},Te.prototype.getLast=function($e,at){var At=this.last;if(At&&At[$e]&&(!at||(0,Je.L)(At.variables,this.variables)))return At[$e]},Te.prototype.getLastResult=function($e){return this.getLast("result",$e)},Te.prototype.getLastError=function($e){return this.getLast("error",$e)},Te.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},Te.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},Te.prototype.refetch=function($e){var at,At={pollInterval:0},nn=this.options.fetchPolicy;if(At.fetchPolicy="cache-and-network"===nn?nn:"no-cache"===nn?"no-cache":"network-only",!1!==globalThis.__DEV__&&$e&&Le.call($e,"variables")){var ln=(0,vn.AT)(this.query),hn=ln.variableDefinitions;(!hn||!hn.some(function(xn){return"variables"===xn.variable.name.value}))&&!1!==globalThis.__DEV__&&x.V1.warn(20,$e,(null===(at=ln.name)||void 0===at?void 0:at.value)||ln)}return $e&&!(0,Je.L)(this.options.variables,$e)&&(At.variables=this.options.variables=(0,N.Cl)((0,N.Cl)({},this.options.variables),$e)),this.queryInfo.resetLastWrite(),this.reobserve(At,w.refetch)},Te.prototype.fetchMore=function($e){var at=this,At=(0,N.Cl)((0,N.Cl)({},$e.query?$e:(0,N.Cl)((0,N.Cl)((0,N.Cl)((0,N.Cl)({},this.options),{query:this.options.query}),$e),{variables:(0,N.Cl)((0,N.Cl)({},this.options.variables),$e.variables)})),{fetchPolicy:"no-cache"});At.query=this.transformDocument(At.query);var nn=this.queryManager.generateQueryId();this.lastQuery=$e.query?this.transformDocument(this.options.query):At.query;var ln=this.queryInfo,hn=ln.networkStatus;ln.networkStatus=w.fetchMore,At.notifyOnNetworkStatusChange&&this.observe();var xn=new Set;return this.queryManager.fetchQuery(nn,At,w.fetchMore).then(function(Rn){return at.queryManager.removeQuery(nn),ln.networkStatus===w.fetchMore&&(ln.networkStatus=hn),at.queryManager.cache.batch({update:function(Zn){var jn=$e.updateQuery;jn?Zn.updateQuery({query:at.query,variables:at.variables,returnPartialData:!0,optimistic:!1},function(oi){return jn(oi,{fetchMoreResult:Rn.data,variables:At.variables})}):Zn.writeQuery({query:At.query,variables:At.variables,data:Rn.data})},onWatchUpdated:function(Zn){xn.add(Zn.query)}}),Rn}).finally(function(){xn.has(at.query)||le(at)})},Te.prototype.subscribeToMore=function($e){var at=this,At=this.queryManager.startGraphQLSubscription({query:$e.document,variables:$e.variables,context:$e.context}).subscribe({next:function(nn){var ln=$e.updateQuery;ln&&at.updateQuery(function(hn,xn){return ln(hn,{subscriptionData:nn,variables:xn.variables})})},error:function(nn){$e.onError?$e.onError(nn):!1!==globalThis.__DEV__&&x.V1.error(21,nn)}});return this.subscriptions.add(At),function(){at.subscriptions.delete(At)&&At.unsubscribe()}},Te.prototype.setOptions=function($e){return this.reobserve($e)},Te.prototype.silentSetOptions=function($e){var at=(0,Oe.o)(this.options,$e||{});Ne(this.options,at)},Te.prototype.setVariables=function($e){return(0,Je.L)(this.variables,$e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=$e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:$e},w.setVariables):Promise.resolve())},Te.prototype.updateQuery=function($e){var at=this.queryManager,nn=$e(at.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});nn&&(at.cache.writeQuery({query:this.options.query,data:nn,variables:this.variables}),at.broadcastQueries())},Te.prototype.startPolling=function($e){this.options.pollInterval=$e,this.updatePolling()},Te.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},Te.prototype.applyNextFetchPolicy=function($e,at){if(at.nextFetchPolicy){var At=at.fetchPolicy,nn=void 0===At?"cache-first":At,ln=at.initialFetchPolicy,hn=void 0===ln?nn:ln;"standby"===nn||(at.fetchPolicy="function"==typeof at.nextFetchPolicy?at.nextFetchPolicy(nn,{reason:$e,options:at,observable:this,initialFetchPolicy:hn}):"variables-changed"===$e?hn:at.nextFetchPolicy)}return at.fetchPolicy},Te.prototype.fetch=function($e,at,At){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,$e,at,At)},Te.prototype.updatePolling=function(){var $e=this;if(!this.queryManager.ssrMode){var At=this.pollingInfo,nn=this.options.pollInterval;if(!nn||!this.hasObservers())return void(At&&(clearTimeout(At.timeout),delete this.pollingInfo));if(!At||At.interval!==nn){(0,x.V1)(nn,22),(At||(this.pollingInfo={})).interval=nn;var hn=function(){var Rn,Zn;$e.pollingInfo&&(P($e.queryInfo.networkStatus)||null!==(Zn=(Rn=$e.options).skipPollAttempt)&&void 0!==Zn&&Zn.call(Rn)?xn():$e.reobserve({fetchPolicy:"no-cache"===$e.options.initialFetchPolicy?"no-cache":"network-only"},w.poll).then(xn,xn))},xn=function(){var Rn=$e.pollingInfo;Rn&&(clearTimeout(Rn.timeout),Rn.timeout=setTimeout(hn,Rn.interval))};xn()}}},Te.prototype.updateLastResult=function($e,at){void 0===at&&(at=this.variables);var At=this.getLastError();return At&&this.last&&!(0,Je.L)(at,this.last.variables)&&(At=void 0),this.last=(0,N.Cl)({result:this.queryManager.assumeImmutableResults?$e:(0,zt.m)($e),variables:at},At?{error:At}:null)},Te.prototype.reobserveAsConcast=function($e,at){var At=this;this.isTornDown=!1;var nn=at===w.refetch||at===w.fetchMore||at===w.poll,ln=this.options.variables,hn=this.options.fetchPolicy,xn=(0,Oe.o)(this.options,$e||{}),Rn=nn?xn:Ne(this.options,xn),Zn=this.transformDocument(Rn.query);this.lastQuery=Zn,nn||(this.updatePolling(),$e&&$e.variables&&!(0,Je.L)($e.variables,ln)&&"standby"!==Rn.fetchPolicy&&(Rn.fetchPolicy===hn||"function"==typeof Rn.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",Rn),void 0===at&&(at=w.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Ce(Rn.fetchPolicy));var jn=function(){At.concast===Ti&&(At.waitForOwnResult=!1)},oi=Rn.variables&&(0,N.Cl)({},Rn.variables),ai=this.fetch(Rn,at,Zn),Ti=ai.concast,yi={next:function(_i){(0,Je.L)(At.variables,oi)&&(jn(),At.reportResult(_i,oi))},error:function(_i){(0,Je.L)(At.variables,oi)&&(jn(),At.reportError(_i,oi))}};return!nn&&(ai.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=Ti,this.observer=yi),Ti.addObserver(yi),Ti},Te.prototype.reobserve=function($e,at){return this.reobserveAsConcast($e,at).promise},Te.prototype.resubscribeAfterError=function(){for(var $e=[],at=0;at0},Te.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function($e){return $e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},Te.prototype.transformDocument=function($e){return this.queryManager.transform($e)},Te}(ce.c);function le(st){var Te=st.options,$e=Te.fetchPolicy,at=Te.nextFetchPolicy;return"cache-and-network"===$e||"network-only"===$e?st.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(At,nn){return this.nextFetchPolicy=at,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(At,nn):$e}}):st.reobserve()}function V(st){!1!==globalThis.__DEV__&&x.V1.error(23,st.message,st.stack)}function Ve(st){!1!==globalThis.__DEV__&&st&&!1!==globalThis.__DEV__&&x.V1.debug(24,st)}function Ce(st){return"network-only"===st||"no-cache"===st||"standby"===st}Se(Y);var J=new(pe.et?WeakMap:Map);function W(st,Te){var $e=st[Te];"function"==typeof $e&&(st[Te]=function(){return J.set(st,(J.get(st)+1)%1e15),$e.apply(this,arguments)})}function _e(st){st.notifyTimeout&&(clearTimeout(st.notifyTimeout),st.notifyTimeout=void 0)}var it=function(){function st(Te,$e){void 0===$e&&($e=Te.generateQueryId()),this.queryId=$e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var at=this.cache=Te.cache;J.has(at)||(J.set(at,0),W(at,"evict"),W(at,"modify"),W(at,"reset"))}return st.prototype.init=function(Te){var $e=Te.networkStatus||w.loading;return this.variables&&this.networkStatus!==w.loading&&!(0,Je.L)(this.variables,Te.variables)&&($e=w.setVariables),(0,Je.L)(Te.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:Te.document,variables:Te.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:$e}),Te.observableQuery&&this.setObservableQuery(Te.observableQuery),Te.lastRequestId&&(this.lastRequestId=Te.lastRequestId),this},st.prototype.reset=function(){_e(this),this.dirty=!1},st.prototype.resetDiff=function(){this.lastDiff=void 0},st.prototype.getDiff=function(){var Te=this.getDiffOptions();if(this.lastDiff&&(0,Je.L)(Te,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var $e=this.observableQuery;if($e&&"no-cache"===$e.options.fetchPolicy)return{complete:!1};var at=this.cache.diff(Te);return this.updateLastDiff(at,Te),at},st.prototype.updateLastDiff=function(Te,$e){this.lastDiff=Te?{diff:Te,options:$e||this.getDiffOptions()}:void 0},st.prototype.getDiffOptions=function(Te){var $e;return void 0===Te&&(Te=this.variables),{query:this.document,variables:Te,returnPartialData:!0,optimistic:!0,canonizeResults:null===($e=this.observableQuery)||void 0===$e?void 0:$e.options.canonizeResults}},st.prototype.setDiff=function(Te){var at,$e=this,At=this.lastDiff&&this.lastDiff.diff;Te&&!Te.complete&&null!==(at=this.observableQuery)&&void 0!==at&&at.getLastError()||(this.updateLastDiff(Te),!this.dirty&&!(0,Je.L)(At&&At.result,Te&&Te.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return $e.notify()},0))))},st.prototype.setObservableQuery=function(Te){var $e=this;Te!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=Te,Te?(Te.queryInfo=this,this.listeners.add(this.oqListener=function(){$e.getDiff().fromOptimisticTransaction?Te.observe():le(Te)})):delete this.oqListener)},st.prototype.notify=function(){var Te=this;_e(this),this.shouldNotify()&&this.listeners.forEach(function($e){return $e(Te)}),this.dirty=!1},st.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(P(this.networkStatus)&&this.observableQuery){var Te=this.observableQuery.options.fetchPolicy;if("cache-only"!==Te&&"cache-and-network"!==Te)return!1}return!0},st.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=st.prototype.cancel;var Te=this.observableQuery;Te&&Te.stopPolling()}},st.prototype.cancel=function(){},st.prototype.updateWatch=function(Te){var $e=this;void 0===Te&&(Te=this.variables);var at=this.observableQuery;if(!at||"no-cache"!==at.options.fetchPolicy){var At=(0,N.Cl)((0,N.Cl)({},this.getDiffOptions(Te)),{watcher:this,callback:function(nn){return $e.setDiff(nn)}});(!this.lastWatch||!(0,Je.L)(At,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=At))}},st.prototype.resetLastWrite=function(){this.lastWrite=void 0},st.prototype.shouldWrite=function(Te,$e){var at=this.lastWrite;return!(at&&at.dmCount===J.get(this.cache)&&(0,Je.L)($e,at.variables)&&(0,Je.L)(Te.data,at.result.data))},st.prototype.markResult=function(Te,$e,at,At){var nn=this,ln=new It.ZI,hn=(0,kt.E)(Te.errors)?Te.errors.slice(0):[];if(this.reset(),"incremental"in Te&&(0,kt.E)(Te.incremental)){var xn=Jn(this.getDiff().result,Te);Te.data=xn}else if("hasNext"in Te&&Te.hasNext){var Rn=this.getDiff();Te.data=ln.merge(Rn.result,Te.data)}this.graphQLErrors=hn,"no-cache"===at.fetchPolicy?this.updateLastDiff({result:Te.data,complete:!0},this.getDiffOptions(at.variables)):0!==At&&(dt(Te,at.errorPolicy)?this.cache.performTransaction(function(Zn){if(nn.shouldWrite(Te,at.variables))Zn.writeQuery({query:$e,data:Te.data,variables:at.variables,overwrite:1===At}),nn.lastWrite={result:Te,variables:at.variables,dmCount:J.get(nn.cache)};else if(nn.lastDiff&&nn.lastDiff.diff.complete)return void(Te.data=nn.lastDiff.diff.result);var jn=nn.getDiffOptions(at.variables),oi=Zn.diff(jn);!nn.stopped&&(0,Je.L)(nn.variables,at.variables)&&nn.updateWatch(at.variables),nn.updateLastDiff(oi,jn),oi.complete&&(Te.data=oi.result)}):this.lastWrite=void 0)},st.prototype.markReady=function(){return this.networkError=null,this.networkStatus=w.ready},st.prototype.markError=function(Te){return this.networkStatus=w.error,this.lastWrite=void 0,this.reset(),Te.graphQLErrors&&(this.graphQLErrors=Te.graphQLErrors),Te.networkError&&(this.networkError=Te.networkError),Te},st}();function dt(st,Te){void 0===Te&&(Te="none");var $e="ignore"===Te||"all"===Te,at=!et(st);return!at&&$e&&st.data&&(at=!0),at}var Ht=a(4420),dn=a(2170),wn=a(2151),si=Object.prototype.hasOwnProperty,Cn=Object.create(null),ni=function(){function st(Te){var $e=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new dn.A(wn.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Ht.b(!1);var at=new ie.c(function(nn){return $e.cache.transformDocument(nn)},{cache:!1});this.cache=Te.cache,this.link=Te.link,this.defaultOptions=Te.defaultOptions,this.queryDeduplication=Te.queryDeduplication,this.clientAwareness=Te.clientAwareness,this.localState=Te.localState,this.ssrMode=Te.ssrMode,this.assumeImmutableResults=Te.assumeImmutableResults;var At=Te.documentTransform;this.documentTransform=At?at.concat(At).concat(at):at,this.defaultContext=Te.defaultContext||Object.create(null),(this.onBroadcast=Te.onBroadcast)&&(this.mutationStore=Object.create(null))}return st.prototype.stop=function(){var Te=this;this.queries.forEach(function($e,at){Te.stopQueryNoBroadcast(at)}),this.cancelPendingFetches((0,x.vA)(25))},st.prototype.cancelPendingFetches=function(Te){this.fetchCancelFns.forEach(function($e){return $e(Te)}),this.fetchCancelFns.clear()},st.prototype.mutate=function(Te){return(0,N.sH)(this,arguments,void 0,function($e){var at,At,nn,ln,hn,xn,Rn,Zn=$e.mutation,jn=$e.variables,oi=$e.optimisticResponse,ai=$e.updateQueries,Ti=$e.refetchQueries,ci=void 0===Ti?[]:Ti,yi=$e.awaitRefetchQueries,_i=void 0!==yi&&yi,Oi=$e.update,ki=$e.onQueryUpdated,co=$e.fetchPolicy,Ai=void 0===co?(null===(xn=this.defaultOptions.mutate)||void 0===xn?void 0:xn.fetchPolicy)||"network-only":co,go=$e.errorPolicy,_o=void 0===go?(null===(Rn=this.defaultOptions.mutate)||void 0===Rn?void 0:Rn.errorPolicy)||"none":go,yo=$e.keepRootFields,Yn=$e.context;return(0,N.YH)(this,function(wo){switch(wo.label){case 0:return(0,x.V1)(Zn,26),(0,x.V1)("network-only"===Ai||"no-cache"===Ai,27),at=this.generateMutationId(),Zn=this.cache.transformForLink(this.transform(Zn)),At=this.getDocumentInfo(Zn).hasClientExports,jn=this.getVariables(Zn,jn),At?[4,this.localState.addExportedVariables(Zn,jn,Yn)]:[3,2];case 1:jn=wo.sent(),wo.label=2;case 2:return nn=this.mutationStore&&(this.mutationStore[at]={mutation:Zn,variables:jn,loading:!0,error:null}),ln=oi&&this.markMutationOptimistic(oi,{mutationId:at,document:Zn,variables:jn,fetchPolicy:Ai,errorPolicy:_o,context:Yn,updateQueries:ai,update:Oi,keepRootFields:yo}),this.broadcastQueries(),hn=this,[2,new Promise(function(Xo,es){return re(hn.getObservableFromLink(Zn,(0,N.Cl)((0,N.Cl)({},Yn),{optimisticResponse:ln?oi:void 0}),jn,{},!1),function(Bo){if(et(Bo)&&"none"===_o)throw new St({graphQLErrors:_t(Bo)});nn&&(nn.loading=!1,nn.error=null);var nr=(0,N.Cl)({},Bo);return"function"==typeof ci&&(ci=ci(nr)),"ignore"===_o&&et(nr)&&delete nr.errors,hn.markMutationResult({mutationId:at,result:nr,document:Zn,variables:jn,fetchPolicy:Ai,errorPolicy:_o,context:Yn,update:Oi,updateQueries:ai,awaitRefetchQueries:_i,refetchQueries:ci,removeOptimistic:ln?at:void 0,onQueryUpdated:ki,keepRootFields:yo})}).subscribe({next:function(Bo){hn.broadcastQueries(),(!("hasNext"in Bo)||!1===Bo.hasNext)&&Xo(Bo)},error:function(Bo){nn&&(nn.loading=!1,nn.error=Bo),ln&&hn.cache.removeOptimistic(at),hn.broadcastQueries(),es(Bo instanceof St?Bo:new St({networkError:Bo}))}})})]}})})},st.prototype.markMutationResult=function(Te,$e){var at=this;void 0===$e&&($e=this.cache);var At=Te.result,nn=[],ln="no-cache"===Te.fetchPolicy;if(!ln&&dt(At,Te.errorPolicy)){if(rn(At)||nn.push({result:At.data,dataId:"ROOT_MUTATION",query:Te.document,variables:Te.variables}),rn(At)&&(0,kt.E)(At.incremental)){var hn=$e.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(Te.document).asQuery,variables:Te.variables,optimistic:!1,returnPartialData:!0}),xn=void 0;hn.result&&(xn=Jn(hn.result,At)),typeof xn<"u"&&(At.data=xn,nn.push({result:xn,dataId:"ROOT_MUTATION",query:Te.document,variables:Te.variables}))}var Rn=Te.updateQueries;Rn&&this.queries.forEach(function(jn,oi){var ai=jn.observableQuery,Ti=ai&&ai.queryName;if(Ti&&si.call(Rn,Ti)){var ci=Rn[Ti],yi=at.queries.get(oi),_i=yi.document,Oi=yi.variables,ki=$e.diff({query:_i,variables:Oi,returnPartialData:!0,optimistic:!1}),co=ki.result;if(ki.complete&&co){var go=ci(co,{mutationResult:At,queryName:_i&&(0,vn.n4)(_i)||void 0,queryVariables:Oi});go&&nn.push({result:go,dataId:"ROOT_QUERY",query:_i,variables:Oi})}}})}if(nn.length>0||(Te.refetchQueries||"").length>0||Te.update||Te.onQueryUpdated||Te.removeOptimistic){var Zn=[];if(this.refetchQueries({updateCache:function(jn){ln||nn.forEach(function(ci){return jn.write(ci)});var oi=Te.update,ai=!function Xt(st){return rn(st)||function en(st){return"hasNext"in st&&"data"in st}(st)}(At)||rn(At)&&!At.hasNext;if(oi){if(!ln){var Ti=jn.diff({id:"ROOT_MUTATION",query:at.getDocumentInfo(Te.document).asQuery,variables:Te.variables,optimistic:!1,returnPartialData:!0});Ti.complete&&("incremental"in(At=(0,N.Cl)((0,N.Cl)({},At),{data:Ti.result}))&&delete At.incremental,"hasNext"in At&&delete At.hasNext)}ai&&oi(jn,At,{context:Te.context,variables:Te.variables})}!ln&&!Te.keepRootFields&&ai&&jn.modify({id:"ROOT_MUTATION",fields:function(ci,yi){return"__typename"===yi.fieldName?ci:yi.DELETE}})},include:Te.refetchQueries,optimistic:!1,removeOptimistic:Te.removeOptimistic,onQueryUpdated:Te.onQueryUpdated||null}).forEach(function(jn){return Zn.push(jn)}),Te.awaitRefetchQueries||Te.onQueryUpdated)return Promise.all(Zn).then(function(){return At})}return Promise.resolve(At)},st.prototype.markMutationOptimistic=function(Te,$e){var at=this,At="function"==typeof Te?Te($e.variables,{IGNORE:Cn}):Te;return At!==Cn&&(this.cache.recordOptimisticTransaction(function(nn){try{at.markMutationResult((0,N.Cl)((0,N.Cl)({},$e),{result:{data:At}}),nn)}catch(ln){!1!==globalThis.__DEV__&&x.V1.error(ln)}},$e.mutationId),!0)},st.prototype.fetchQuery=function(Te,$e,at){return this.fetchConcastWithInfo(Te,$e,at).concast.promise},st.prototype.getQueryStore=function(){var Te=Object.create(null);return this.queries.forEach(function($e,at){Te[at]={variables:$e.variables,networkStatus:$e.networkStatus,networkError:$e.networkError,graphQLErrors:$e.graphQLErrors}}),Te},st.prototype.resetErrors=function(Te){var $e=this.queries.get(Te);$e&&($e.networkError=void 0,$e.graphQLErrors=[])},st.prototype.transform=function(Te){return this.documentTransform.transformDocument(Te)},st.prototype.getDocumentInfo=function(Te){var $e=this.transformCache;if(!$e.has(Te)){var at={hasClientExports:(0,Ie.f2)(Te),hasForcedResolvers:this.localState.shouldForceResolvers(Te),hasNonreactiveDirective:(0,Ie.d8)(["nonreactive"],Te),clientQuery:this.localState.clientQuery(Te),serverQuery:(0,Nn.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],Te),defaultVars:(0,vn.wY)((0,vn.Vu)(Te)),asQuery:(0,N.Cl)((0,N.Cl)({},Te),{definitions:Te.definitions.map(function(At){return"OperationDefinition"===At.kind&&"query"!==At.operation?(0,N.Cl)((0,N.Cl)({},At),{operation:"query"}):At})})};$e.set(Te,at)}return $e.get(Te)},st.prototype.getVariables=function(Te,$e){return(0,N.Cl)((0,N.Cl)({},this.getDocumentInfo(Te).defaultVars),$e)},st.prototype.watchQuery=function(Te){var $e=this.transform(Te.query);typeof(Te=(0,N.Cl)((0,N.Cl)({},Te),{variables:this.getVariables($e,Te.variables)})).notifyOnNetworkStatusChange>"u"&&(Te.notifyOnNetworkStatusChange=!1);var at=new it(this),At=new Y({queryManager:this,queryInfo:at,options:Te});return At.lastQuery=$e,this.queries.set(At.queryId,at),at.init({document:$e,observableQuery:At,variables:At.variables}),At},st.prototype.query=function(Te,$e){var at=this;return void 0===$e&&($e=this.generateQueryId()),(0,x.V1)(Te.query,28),(0,x.V1)("Document"===Te.query.kind,29),(0,x.V1)(!Te.returnPartialData,30),(0,x.V1)(!Te.pollInterval,31),this.fetchQuery($e,(0,N.Cl)((0,N.Cl)({},Te),{query:this.transform(Te.query)})).finally(function(){return at.stopQuery($e)})},st.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},st.prototype.generateRequestId=function(){return this.requestIdCounter++},st.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},st.prototype.stopQueryInStore=function(Te){this.stopQueryInStoreNoBroadcast(Te),this.broadcastQueries()},st.prototype.stopQueryInStoreNoBroadcast=function(Te){var $e=this.queries.get(Te);$e&&$e.stop()},st.prototype.clearStore=function(Te){return void 0===Te&&(Te={discardWatches:!0}),this.cancelPendingFetches((0,x.vA)(32)),this.queries.forEach(function($e){$e.observableQuery?$e.networkStatus=w.loading:$e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(Te)},st.prototype.getObservableQueries=function(Te){var $e=this;void 0===Te&&(Te="active");var at=new Map,At=new Map,nn=new Set;return Array.isArray(Te)&&Te.forEach(function(ln){"string"==typeof ln?At.set(ln,!1):(0,mt.Kc)(ln)?At.set($e.transform(ln),!1):(0,Vt.U)(ln)&&ln.query&&nn.add(ln)}),this.queries.forEach(function(ln,hn){var xn=ln.observableQuery,Rn=ln.document;if(xn){if("all"===Te)return void at.set(hn,xn);var Zn=xn.queryName;if("standby"===xn.options.fetchPolicy||"active"===Te&&!xn.hasObservers())return;("active"===Te||Zn&&At.has(Zn)||Rn&&At.has(Rn))&&(at.set(hn,xn),Zn&&At.set(Zn,!0),Rn&&At.set(Rn,!0))}}),nn.size&&nn.forEach(function(ln){var hn=(0,Rt.v)("legacyOneTimeQuery"),xn=$e.getQuery(hn).init({document:ln.query,variables:ln.variables}),Rn=new Y({queryManager:$e,queryInfo:xn,options:(0,N.Cl)((0,N.Cl)({},ln),{fetchPolicy:"network-only"})});(0,x.V1)(Rn.queryId===hn),xn.setObservableQuery(Rn),at.set(hn,Rn)}),!1!==globalThis.__DEV__&&At.size&&At.forEach(function(ln,hn){ln||!1!==globalThis.__DEV__&&x.V1.warn("string"==typeof hn?33:34,hn)}),at},st.prototype.reFetchObservableQueries=function(Te){var $e=this;void 0===Te&&(Te=!1);var at=[];return this.getObservableQueries(Te?"all":"active").forEach(function(At,nn){var ln=At.options.fetchPolicy;At.resetLastResults(),(Te||"standby"!==ln&&"cache-only"!==ln)&&at.push(At.refetch()),$e.getQuery(nn).setDiff(null)}),this.broadcastQueries(),Promise.all(at)},st.prototype.setObservableQuery=function(Te){this.getQuery(Te.queryId).setObservableQuery(Te)},st.prototype.startGraphQLSubscription=function(Te){var $e=this,at=Te.query,At=Te.fetchPolicy,nn=Te.errorPolicy,ln=void 0===nn?"none":nn,hn=Te.variables,xn=Te.context,Rn=void 0===xn?{}:xn,Zn=Te.extensions,jn=void 0===Zn?{}:Zn;at=this.transform(at),hn=this.getVariables(at,hn);var oi=function(Ti){return $e.getObservableFromLink(at,Rn,Ti,jn).map(function(ci){"no-cache"!==At&&(dt(ci,ln)&&$e.cache.write({query:at,result:ci.data,dataId:"ROOT_SUBSCRIPTION",variables:Ti}),$e.broadcastQueries());var yi=et(ci),_i=function xt(st){return!!st.extensions&&Array.isArray(st.extensions[He])}(ci);if(yi||_i){var Oi={};if(yi&&(Oi.graphQLErrors=ci.errors),_i&&(Oi.protocolErrors=ci.extensions[He]),"none"===ln||_i)throw new St(Oi)}return"ignore"===ln&&delete ci.errors,ci})};if(this.getDocumentInfo(at).hasClientExports){var ai=this.localState.addExportedVariables(at,hn,Rn).then(oi);return new ce.c(function(Ti){var ci=null;return ai.then(function(yi){return ci=yi.subscribe(Ti)},Ti.error),function(){return ci&&ci.unsubscribe()}})}return oi(hn)},st.prototype.stopQuery=function(Te){this.stopQueryNoBroadcast(Te),this.broadcastQueries()},st.prototype.stopQueryNoBroadcast=function(Te){this.stopQueryInStoreNoBroadcast(Te),this.removeQuery(Te)},st.prototype.removeQuery=function(Te){this.fetchCancelFns.delete(Te),this.queries.has(Te)&&(this.getQuery(Te).stop(),this.queries.delete(Te))},st.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(Te){return Te.notify()})},st.prototype.getLocalState=function(){return this.localState},st.prototype.getObservableFromLink=function(Te,$e,at,At,nn){var hn,ln=this;void 0===nn&&(nn=null!==(hn=$e?.queryDeduplication)&&void 0!==hn?hn:this.queryDeduplication);var xn,Rn=this.getDocumentInfo(Te),Zn=Rn.serverQuery,jn=Rn.clientQuery;if(Zn){var ai=this.inFlightLinkObservables,Ti=this.link,ci={query:Zn,variables:at,operationName:(0,vn.n4)(Zn)||void 0,context:this.prepareContext((0,N.Cl)((0,N.Cl)({},$e),{forceFetch:!nn})),extensions:At};if($e=ci.context,nn){var yi=(0,ke.y)(Zn),_i=(0,ae.M)(at),Oi=ai.lookup(yi,_i);if(!(xn=Oi.observable)){var ki=new de([ee(Ti,ci)]);xn=Oi.observable=ki,ki.beforeNext(function(){ai.remove(yi,_i)})}}else xn=new de([ee(Ti,ci)])}else xn=new de([ce.c.of({data:{}})]),$e=this.prepareContext($e);return jn&&(xn=re(xn,function(co){return ln.localState.runResolvers({document:jn,remoteResult:co,context:$e,variables:at})})),xn},st.prototype.getResultsFromLink=function(Te,$e,at){var At=Te.lastRequestId=this.generateRequestId(),nn=this.cache.transformForLink(at.query);return re(this.getObservableFromLink(nn,at.context,at.variables),function(ln){var hn=_t(ln),xn=hn.length>0;if(At>=Te.lastRequestId){if(xn&&"none"===at.errorPolicy)throw Te.markError(new St({graphQLErrors:hn}));Te.markResult(ln,nn,at,$e),Te.markReady()}var Rn={data:ln.data,loading:!1,networkStatus:w.ready};return xn&&"ignore"!==at.errorPolicy&&(Rn.errors=hn,Rn.networkStatus=w.error),Rn},function(ln){var hn=function Lt(st){return st.hasOwnProperty("graphQLErrors")}(ln)?ln:new St({networkError:ln});throw At>=Te.lastRequestId&&Te.markError(hn),hn})},st.prototype.fetchConcastWithInfo=function(Te,$e,at,At){var nn=this;void 0===at&&(at=w.loading),void 0===At&&(At=$e.query);var go,_o,ln=this.getVariables(At,$e.variables),hn=this.getQuery(Te),xn=this.defaultOptions.watchQuery,Rn=$e.fetchPolicy,jn=$e.errorPolicy,ai=$e.returnPartialData,ci=$e.notifyOnNetworkStatusChange,_i=$e.context,ki=Object.assign({},$e,{query:At,variables:ln,fetchPolicy:void 0===Rn?xn&&xn.fetchPolicy||"cache-first":Rn,errorPolicy:void 0===jn?xn&&xn.errorPolicy||"none":jn,returnPartialData:void 0!==ai&&ai,notifyOnNetworkStatusChange:void 0!==ci&&ci,context:void 0===_i?{}:_i}),co=function(Yn){ki.variables=Yn;var wo=nn.fetchQueryByPolicy(hn,ki,at);return"standby"!==ki.fetchPolicy&&wo.sources.length>0&&hn.observableQuery&&hn.observableQuery.applyNextFetchPolicy("after-fetch",$e),wo},Ai=function(){return nn.fetchCancelFns.delete(Te)};if(this.fetchCancelFns.set(Te,function(Yn){Ai(),setTimeout(function(){return go.cancel(Yn)})}),this.getDocumentInfo(ki.query).hasClientExports)go=new de(this.localState.addExportedVariables(ki.query,ki.variables,ki.context).then(co).then(function(Yn){return Yn.sources})),_o=!0;else{var yo=co(ki.variables);_o=yo.fromLink,go=new de(yo.sources)}return go.promise.then(Ai,Ai),{concast:go,fromLink:_o}},st.prototype.refetchQueries=function(Te){var $e=this,at=Te.updateCache,At=Te.include,nn=Te.optimistic,ln=void 0!==nn&&nn,hn=Te.removeOptimistic,xn=void 0===hn?ln?(0,Rt.v)("refetchQueries"):void 0:hn,Rn=Te.onQueryUpdated,Zn=new Map;At&&this.getObservableQueries(At).forEach(function(oi,ai){Zn.set(ai,{oq:oi,lastDiff:$e.getQuery(ai).getDiff()})});var jn=new Map;return at&&this.cache.batch({update:at,optimistic:ln&&xn||!1,removeOptimistic:xn,onWatchUpdated:function(oi,ai,Ti){var ci=oi.watcher instanceof it&&oi.watcher.observableQuery;if(ci){if(Rn){Zn.delete(ci.queryId);var yi=Rn(ci,ai,Ti);return!0===yi&&(yi=ci.refetch()),!1!==yi&&jn.set(ci,yi),yi}null!==Rn&&Zn.set(ci.queryId,{oq:ci,lastDiff:Ti,diff:ai})}}}),Zn.size&&Zn.forEach(function(oi,ai){var _i,Ti=oi.oq,ci=oi.lastDiff,yi=oi.diff;if(Rn){if(!yi){var Oi=Ti.queryInfo;Oi.reset(),yi=Oi.getDiff()}_i=Rn(Ti,yi,ci)}(!Rn||!0===_i)&&(_i=Ti.refetch()),!1!==_i&&jn.set(Ti,_i),ai.indexOf("legacyOneTimeQuery")>=0&&$e.stopQueryNoBroadcast(ai)}),xn&&this.cache.removeOptimistic(xn),jn},st.prototype.fetchQueryByPolicy=function(Te,$e,at){var At=this,nn=$e.query,ln=$e.variables,hn=$e.fetchPolicy,xn=$e.refetchWritePolicy,Rn=$e.errorPolicy,Zn=$e.returnPartialData,jn=$e.context,oi=$e.notifyOnNetworkStatusChange,ai=Te.networkStatus;Te.init({document:nn,variables:ln,networkStatus:at});var Ti=function(){return Te.getDiff()},ci=function(co,Ai){void 0===Ai&&(Ai=Te.networkStatus||w.loading);var go=co.result;!1!==globalThis.__DEV__&&!Zn&&!(0,Je.L)(go,{})&&Ve(co.missing);var _o=function(yo){return ce.c.of((0,N.Cl)({data:yo,loading:P(Ai),networkStatus:Ai},co.complete?null:{partial:!0}))};return go&&At.getDocumentInfo(nn).hasForcedResolvers?At.localState.runResolvers({document:nn,remoteResult:{data:go},context:jn,variables:ln,onlyRunForcedResolvers:!0}).then(function(yo){return _o(yo.data||void 0)}):"none"===Rn&&Ai===w.refetch&&Array.isArray(co.missing)?_o(void 0):_o(go)},yi="no-cache"===hn?0:at===w.refetch&&"merge"!==xn?1:2,_i=function(){return At.getResultsFromLink(Te,yi,{query:nn,variables:ln,context:jn,fetchPolicy:hn,errorPolicy:Rn})},Oi=oi&&"number"==typeof ai&&ai!==at&&P(at);switch(hn){default:case"cache-first":return(ki=Ti()).complete?{fromLink:!1,sources:[ci(ki,Te.markReady())]}:Zn||Oi?{fromLink:!0,sources:[ci(ki),_i()]}:{fromLink:!0,sources:[_i()]};case"cache-and-network":var ki;return(ki=Ti()).complete||Zn||Oi?{fromLink:!0,sources:[ci(ki),_i()]}:{fromLink:!0,sources:[_i()]};case"cache-only":return{fromLink:!1,sources:[ci(Ti(),Te.markReady())]};case"network-only":return Oi?{fromLink:!0,sources:[ci(Ti()),_i()]}:{fromLink:!0,sources:[_i()]};case"no-cache":return Oi?{fromLink:!0,sources:[ci(Te.getDiff()),_i()]}:{fromLink:!0,sources:[_i()]};case"standby":return{fromLink:!1,sources:[]}}},st.prototype.getQuery=function(Te){return Te&&!this.queries.has(Te)&&this.queries.set(Te,new it(this,Te)),this.queries.get(Te)},st.prototype.prepareContext=function(Te){void 0===Te&&(Te={});var $e=this.localState.prepareContext(Te);return(0,N.Cl)((0,N.Cl)((0,N.Cl)({},this.defaultContext),$e),{clientAwareness:this.clientAwareness})},st}(),ui=a(1955);function lo(st){return st.kind===ui.b.FIELD||st.kind===ui.b.FRAGMENT_SPREAD||st.kind===ui.b.INLINE_FRAGMENT}var Mn=a(6108),En=a(4141),ii=function(){function st(Te){var $e=Te.cache,at=Te.client,At=Te.resolvers,nn=Te.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=$e,at&&(this.client=at),At&&this.addResolvers(At),nn&&this.setFragmentMatcher(nn)}return st.prototype.addResolvers=function(Te){var $e=this;this.resolvers=this.resolvers||{},Array.isArray(Te)?Te.forEach(function(at){$e.resolvers=(0,It.D9)($e.resolvers,at)}):this.resolvers=(0,It.D9)(this.resolvers,Te)},st.prototype.setResolvers=function(Te){this.resolvers={},this.addResolvers(Te)},st.prototype.getResolvers=function(){return this.resolvers||{}},st.prototype.runResolvers=function(Te){return(0,N.sH)(this,arguments,void 0,function($e){var at=$e.document,At=$e.remoteResult,nn=$e.context,ln=$e.variables,hn=$e.onlyRunForcedResolvers,xn=void 0!==hn&&hn;return(0,N.YH)(this,function(Rn){return at?[2,this.resolveDocument(at,At.data,nn,ln,this.fragmentMatcher,xn).then(function(Zn){return(0,N.Cl)((0,N.Cl)({},At),{data:Zn.result})})]:[2,At]})})},st.prototype.setFragmentMatcher=function(Te){this.fragmentMatcher=Te},st.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},st.prototype.clientQuery=function(Te){return(0,Ie.d8)(["client"],Te)&&this.resolvers?Te:null},st.prototype.serverQuery=function(Te){return(0,Nn.er)(Te)},st.prototype.prepareContext=function(Te){var $e=this.cache;return(0,N.Cl)((0,N.Cl)({},Te),{cache:$e,getCacheKey:function(at){return $e.identify(at)}})},st.prototype.addExportedVariables=function(Te){return(0,N.sH)(this,arguments,void 0,function($e,at,At){return void 0===at&&(at={}),void 0===At&&(At={}),(0,N.YH)(this,function(nn){return $e?[2,this.resolveDocument($e,this.buildRootValueFromCache($e,at)||{},this.prepareContext(At),at).then(function(ln){return(0,N.Cl)((0,N.Cl)({},at),ln.exportedVariables)})]:[2,(0,N.Cl)({},at)]})})},st.prototype.shouldForceResolvers=function(Te){var $e=!1;return(0,Gn.YR)(Te,{Directive:{enter:function(at){if("client"===at.name.value&&at.arguments&&($e=at.arguments.some(function(At){return"always"===At.name.value&&"BooleanValue"===At.value.kind&&!0===At.value.value})))return Gn.sP}}}),$e},st.prototype.buildRootValueFromCache=function(Te,$e){return this.cache.diff({query:(0,Nn.zc)(Te),variables:$e,returnPartialData:!0,optimistic:!1}).result},st.prototype.resolveDocument=function(Te,$e){return(0,N.sH)(this,arguments,void 0,function(at,At,nn,ln,hn,xn){var Rn,Zn,jn,oi,ai,Ti,ci,yi,_i,Oi;return void 0===nn&&(nn={}),void 0===ln&&(ln={}),void 0===hn&&(hn=function(){return!0}),void 0===xn&&(xn=!1),(0,N.YH)(this,function(co){return Rn=(0,vn.Vn)(at),Zn=(0,vn.zK)(at),jn=(0,Mn.JG)(Zn),oi=this.collectSelectionsToResolve(Rn,jn),Ti=(ai=Rn.operation)?ai.charAt(0).toUpperCase()+ai.slice(1):"Query",yi=(ci=this).cache,_i=ci.client,Oi={fragmentMap:jn,context:(0,N.Cl)((0,N.Cl)({},nn),{cache:yi,client:_i}),variables:ln,fragmentMatcher:hn,defaultOperationType:Ti,exportedVariables:{},selectionsToResolve:oi,onlyRunForcedResolvers:xn},[2,this.resolveSelectionSet(Rn.selectionSet,!1,At,Oi).then(function(Ai){return{result:Ai,exportedVariables:Oi.exportedVariables}})]})})},st.prototype.resolveSelectionSet=function(Te,$e,at,At){return(0,N.sH)(this,void 0,void 0,function(){var nn,ln,hn,xn,Zn=this;return(0,N.YH)(this,function(jn){return nn=At.fragmentMap,ln=At.context,hn=At.variables,xn=[at],[2,Promise.all(Te.selections.map(function(oi){return(0,N.sH)(Zn,void 0,void 0,function(){var ai;return(0,N.YH)(this,function(ci){return($e||At.selectionsToResolve.has(oi))&&(0,Ie.MS)(oi,hn)?(0,mt.dt)(oi)?[2,this.resolveField(oi,$e,at,At).then(function(yi){var _i;typeof yi<"u"&&xn.push(((_i={})[(0,mt.ue)(oi)]=yi,_i))})]:((0,mt.kd)(oi)?ai=oi:(0,x.V1)(ai=nn[oi.name.value],18,oi.name.value),ai&&ai.typeCondition&&At.fragmentMatcher(at,ai.typeCondition.name.value,ln)?[2,this.resolveSelectionSet(ai.selectionSet,$e,at,At).then(function(yi){xn.push(yi)})]:[2]):[2]})})})).then(function(){return(0,It.IM)(xn)})]})})},st.prototype.resolveField=function(Te,$e,at,At){return(0,N.sH)(this,void 0,void 0,function(){var nn,ln,hn,xn,Rn,Zn,jn,oi,ai,Ti=this;return(0,N.YH)(this,function(ci){return at?(nn=At.variables,ln=Te.name.value,hn=(0,mt.ue)(Te),xn=ln!==hn,Rn=at[hn]||at[ln],Zn=Promise.resolve(Rn),(!At.onlyRunForcedResolvers||this.shouldForceResolvers(Te))&&(jn=at.__typename||At.defaultOperationType,(oi=this.resolvers&&this.resolvers[jn])&&(ai=oi[xn?ln:hn])&&(Zn=Promise.resolve(En.bl.withValue(this.cache,ai,[at,(0,mt.MB)(Te,nn),At.context,{field:Te,fragmentMap:At.fragmentMap}])))),[2,Zn.then(function(yi){var _i,Oi;if(void 0===yi&&(yi=Rn),Te.directives&&Te.directives.forEach(function(co){"export"===co.name.value&&co.arguments&&co.arguments.forEach(function(Ai){"as"===Ai.name.value&&"StringValue"===Ai.value.kind&&(At.exportedVariables[Ai.value.value]=yi)})}),!Te.selectionSet||null==yi)return yi;var ki=null!==(Oi=null===(_i=Te.directives)||void 0===_i?void 0:_i.some(function(co){return"client"===co.name.value}))&&void 0!==Oi&&Oi;return Array.isArray(yi)?Ti.resolveSubSelectedArray(Te,$e||ki,yi,At):Te.selectionSet?Ti.resolveSelectionSet(Te.selectionSet,$e||ki,yi,At):void 0})]):[2,null]})})},st.prototype.resolveSubSelectedArray=function(Te,$e,at,At){var nn=this;return Promise.all(at.map(function(ln){return null===ln?null:Array.isArray(ln)?nn.resolveSubSelectedArray(Te,$e,ln,At):Te.selectionSet?nn.resolveSelectionSet(Te.selectionSet,$e,ln,At):void 0}))},st.prototype.collectSelectionsToResolve=function(Te,$e){var at=function(ln){return!Array.isArray(ln)},At=this.selectionsToResolveCache;return function nn(ln){if(!At.has(ln)){var hn=new Set;At.set(ln,hn),(0,Gn.YR)(ln,{Directive:function(xn,Rn,Zn,jn,oi){"client"===xn.name.value&&oi.forEach(function(ai){at(ai)&&lo(ai)&&hn.add(ai)})},FragmentSpread:function(xn,Rn,Zn,jn,oi){var ai=$e[xn.name.value];(0,x.V1)(ai,19,xn.name.value);var Ti=nn(ai);Ti.size>0&&(oi.forEach(function(ci){at(ci)&&lo(ci)&&hn.add(ci)}),hn.add(xn),Ti.forEach(function(ci){hn.add(ci)}))}})}return At.get(ln)}(Te)},st}();function Pn(st,Te){return(0,Oe.o)(st,Te,Te.variables&&{variables:(0,Oe.o)((0,N.Cl)((0,N.Cl)({},st&&st.variables),Te.variables))})}var Fn=a(8782),hi=!1,xi=function(){function st(Te){var $e=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!Te.cache)throw(0,x.vA)(15);var at=Te.uri,ln=Te.cache,hn=Te.documentTransform,xn=Te.ssrMode,Rn=void 0!==xn&&xn,Zn=Te.ssrForceFetchDelay,jn=void 0===Zn?0:Zn,oi=Te.connectToDevTools,ai=Te.queryDeduplication,Ti=void 0===ai||ai,ci=Te.defaultOptions,yi=Te.defaultContext,_i=Te.assumeImmutableResults,Oi=void 0===_i?ln.assumeImmutableResults:_i,ki=Te.resolvers,co=Te.typeDefs,Ai=Te.fragmentMatcher,go=Te.name,_o=Te.version,yo=Te.devtools,Yn=Te.link;Yn||(Yn=at?new Yt({uri:at,credentials:Te.credentials,headers:Te.headers}):oe.C.empty()),this.link=Yn,this.cache=ln,this.disableNetworkFetches=Rn||jn>0,this.queryDeduplication=Ti,this.defaultOptions=ci||Object.create(null),this.typeDefs=co,this.devtoolsConfig=(0,N.Cl)((0,N.Cl)({},yo),{enabled:yo?.enabled||oi}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),jn&&setTimeout(function(){return $e.disableNetworkFetches=!1},jn),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Ee.r,this.localState=new ii({cache:ln,client:this,resolvers:ki,fragmentMatcher:Ai}),this.queryManager=new ni({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:yi,documentTransform:hn,queryDeduplication:Ti,ssrMode:Rn,clientAwareness:{name:go,version:_o},localState:this.localState,assumeImmutableResults:Oi,onBroadcast:this.devtoolsConfig.enabled?function(){$e.devToolsHookCb&&$e.devToolsHookCb({action:{},state:{queries:$e.queryManager.getQueryStore(),mutations:$e.queryManager.mutationStore||{}},dataWithOptimisticResults:$e.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return st.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var Te=window,$e=Symbol.for("apollo.devtools");(Te[$e]=Te[$e]||[]).push(this),Te.__APOLLO_CLIENT__=this,!hi&&!1!==globalThis.__DEV__&&(hi=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var at=window.navigator,At=at&&at.userAgent,nn=void 0;"string"==typeof At&&(At.indexOf("Chrome/")>-1?nn="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":At.indexOf("Firefox/")>-1&&(nn="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),nn&&!1!==globalThis.__DEV__&&x.V1.log("Download the Apollo DevTools for a better development experience: %s",nn)}},1e4))}},Object.defineProperty(st.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),st.prototype.stop=function(){this.queryManager.stop()},st.prototype.watchQuery=function(Te){return this.defaultOptions.watchQuery&&(Te=Pn(this.defaultOptions.watchQuery,Te)),this.disableNetworkFetches&&("network-only"===Te.fetchPolicy||"cache-and-network"===Te.fetchPolicy)&&(Te=(0,N.Cl)((0,N.Cl)({},Te),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(Te)},st.prototype.query=function(Te){return this.defaultOptions.query&&(Te=Pn(this.defaultOptions.query,Te)),(0,x.V1)("cache-and-network"!==Te.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===Te.fetchPolicy&&(Te=(0,N.Cl)((0,N.Cl)({},Te),{fetchPolicy:"cache-first"})),this.queryManager.query(Te)},st.prototype.mutate=function(Te){return this.defaultOptions.mutate&&(Te=Pn(this.defaultOptions.mutate,Te)),this.queryManager.mutate(Te)},st.prototype.subscribe=function(Te){return this.queryManager.startGraphQLSubscription(Te)},st.prototype.readQuery=function(Te,$e){return void 0===$e&&($e=!1),this.cache.readQuery(Te,$e)},st.prototype.watchFragment=function(Te){return this.cache.watchFragment(Te)},st.prototype.readFragment=function(Te,$e){return void 0===$e&&($e=!1),this.cache.readFragment(Te,$e)},st.prototype.writeQuery=function(Te){var $e=this.cache.writeQuery(Te);return!1!==Te.broadcast&&this.queryManager.broadcastQueries(),$e},st.prototype.writeFragment=function(Te){var $e=this.cache.writeFragment(Te);return!1!==Te.broadcast&&this.queryManager.broadcastQueries(),$e},st.prototype.__actionHookForDevTools=function(Te){this.devToolsHookCb=Te},st.prototype.__requestRaw=function(Te){return ee(this.link,Te)},st.prototype.resetStore=function(){var Te=this;return Promise.resolve().then(function(){return Te.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(Te.resetStoreCallbacks.map(function($e){return $e()}))}).then(function(){return Te.reFetchObservableQueries()})},st.prototype.clearStore=function(){var Te=this;return Promise.resolve().then(function(){return Te.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(Te.clearStoreCallbacks.map(function($e){return $e()}))})},st.prototype.onResetStore=function(Te){var $e=this;return this.resetStoreCallbacks.push(Te),function(){$e.resetStoreCallbacks=$e.resetStoreCallbacks.filter(function(at){return at!==Te})}},st.prototype.onClearStore=function(Te){var $e=this;return this.clearStoreCallbacks.push(Te),function(){$e.clearStoreCallbacks=$e.clearStoreCallbacks.filter(function(at){return at!==Te})}},st.prototype.reFetchObservableQueries=function(Te){return this.queryManager.reFetchObservableQueries(Te)},st.prototype.refetchQueries=function(Te){var $e=this.queryManager.refetchQueries(Te),at=[],At=[];$e.forEach(function(ln,hn){at.push(hn),At.push(ln)});var nn=Promise.all(At);return nn.queries=at,nn.results=At,nn.catch(function(ln){!1!==globalThis.__DEV__&&x.V1.debug(17,ln)}),nn},st.prototype.getObservableQueries=function(Te){return void 0===Te&&(Te="active"),this.queryManager.getObservableQueries(Te)},st.prototype.extract=function(Te){return this.cache.extract(Te)},st.prototype.restore=function(Te){return this.cache.restore(Te)},st.prototype.addResolvers=function(Te){this.localState.addResolvers(Te)},st.prototype.setResolvers=function(Te){this.localState.setResolvers(Te)},st.prototype.getResolvers=function(){return this.localState.getResolvers()},st.prototype.setLocalStateFragmentMatcher=function(Te){this.localState.setFragmentMatcher(Te)},st.prototype.setLink=function(Te){this.link=this.queryManager.link=Te},Object.defineProperty(st.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),st}();!1!==globalThis.__DEV__&&(xi.prototype.getMemoryInternals=Fn.ep);var Hi=a(9869),Mi=a(6354),gn=a(9172),Si=a(941);function Ei(st){return new r.c(Te=>(st().then($e=>{Te.closed||(Te.next($e),Te.complete())},$e=>{Te.closed||Te.error($e)}),()=>Te.unsubscribe()))}class Vi{zone;constructor(Te){this.zone=Te}now=Date.now?Date.now:()=>+new Date;schedule(Te,$e=0,at){return this.zone.run(()=>R.schedule(Te,$e,at))}}function qi(st){return st[k.s]=()=>st,st}function Go(st,Te){return st.pipe((0,Si.Q)(new Vi(Te)))}class tr{obsQuery;valueChanges;queryId;constructor(Te,$e,at){this.obsQuery=Te;const At=Go((0,I.H)(qi(this.obsQuery)),$e);this.valueChanges=at.useInitialLoading?At.pipe(function so(st){return function($e){return new r.c(function(At){const nn=st.getCurrentResult(),{loading:ln,errors:hn,error:xn,partial:Rn,data:Zn}=nn,{partialRefetch:jn,fetchPolicy:oi}=st.options,ai=hn||xn;return jn&&Rn&&(!Zn||0===Object.keys(Zn).length)&&"cache-only"!==oi&&!ln&&!ai&&At.next({...nn,loading:!0,networkStatus:w.loading}),$e.subscribe(At)})}}(this.obsQuery)):At,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(Te){return this.obsQuery.refetch(Te)}fetchMore(Te){return this.obsQuery.fetchMore(Te)}subscribeToMore(Te){return this.obsQuery.subscribeToMore(Te)}updateQuery(Te){return this.obsQuery.updateQuery(Te)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(Te){return this.obsQuery.startPolling(Te)}setOptions(Te){return this.obsQuery.setOptions(Te)}setVariables(Te){return this.obsQuery.setVariables(Te)}}const lr=new t.nKC("APOLLO_FLAGS"),zo=new t.nKC("APOLLO_OPTIONS"),Mo=new t.nKC("APOLLO_NAMED_OPTIONS");class br{ngZone;flags;_client;useInitialLoading;useMutationLoading;constructor(Te,$e,at){this.ngZone=Te,this.flags=$e,this._client=at,this.useInitialLoading=$e?.useInitialLoading??!1,this.useMutationLoading=$e?.useMutationLoading??!1}watchQuery(Te){return new tr(this.ensureClient().watchQuery({...Te}),this.ngZone,{useInitialLoading:this.useInitialLoading,...Te})}query(Te){return Ei(()=>this.ensureClient().query({...Te}))}mutate(Te){return function Ki(st,Te){return Te?st.pipe((0,gn.Z)({loading:!0}),(0,Mi.T)($e=>({...$e,loading:!!$e.loading}))):st.pipe((0,Mi.T)($e=>({...$e,loading:!1})))}(Ei(()=>this.ensureClient().mutate({...Te})),Te.useMutationLoading??this.useMutationLoading)}subscribe(Te,$e){const at=(0,I.H)(qi(this.ensureClient().subscribe({...Te})));return $e&&!0!==$e.useZone?at:Go(at,this.ngZone)}get client(){return this.ensureClient()}set client(Te){if(this._client)throw new Error("Client has been already defined");this._client=Te}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}}let Wo=(()=>{class st extends br{map=new Map;constructor($e,at,At,nn){if(super($e,nn),at&&this.createDefault(at),At&&"object"==typeof At)for(let ln in At)At.hasOwnProperty(ln)&&this.create(At[ln],ln)}create($e,at){Zr(at)?this.createNamed(at,$e):this.createDefault($e)}default(){return this}use($e){return Zr($e)?this.map.get($e):this.default()}createDefault($e){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new xi($e))}createNamed($e,at){if(this.map.has($e))throw new Error(`Client ${$e} has been already created`);this.map.set($e,new br(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new xi(at))))}removeClient($e){Zr($e)?this.map.delete($e):this._client=void 0}static \u0275fac=function(at){return new(at||st)(t.KVO(t.SKi),t.KVO(zo,8),t.KVO(Mo,8),t.KVO(lr,8))};static \u0275prov=t.jDH({token:st,factory:st.\u0275fac})}return st})();function Zr(st){return!!st&&"default"!==st}const uo=[Wo];let Hn=(()=>{class st{static \u0275fac=function(at){return new(at||st)};static \u0275mod=t.$C({type:st});static \u0275inj=t.G2t({providers:uo})}return st})(),Pi=(()=>{class st{apollo;client="default";constructor($e){this.apollo=$e}watch($e,at){return this.apollo.use(this.client).watchQuery({...at,variables:$e,query:this.document})}fetch($e,at){return this.apollo.use(this.client).query({...at,variables:$e,query:this.document})}static \u0275fac=function(at){return new(at||st)(t.KVO(Wo))};static \u0275prov=t.jDH({token:st,factory:st.\u0275fac})}return st})(),Tr=(()=>{class st{apollo;client="default";constructor($e){this.apollo=$e}mutate($e,at){return this.apollo.use(this.client).mutate({...at,variables:$e,mutation:this.document})}static \u0275fac=function(at){return new(at||st)(t.KVO(Wo))};static \u0275prov=t.jDH({token:st,factory:st.\u0275fac})}return st})();const Ko=function as(st,...Te){return(0,Hi.J1)(st,...Te)}},6005:($t,De,a)=>{function t(r,m){if(!r)throw new Error(m)}a.d(De,{U:()=>t})},7250:($t,De,a)=>{a.d(De,{N:()=>m});const t=10,r=2;function m(I){return e(I,[])}function e(I,w){switch(typeof I){case"string":return JSON.stringify(I);case"function":return I.name?`[function ${I.name}]`:"[function]";case"object":return function z(I,w){if(null===I)return"null";if(w.includes(I))return"[Circular]";const P=[...w,I];if(function j(I){return"function"==typeof I.toJSON}(I)){const Q=I.toJSON();if(Q!==I)return"string"==typeof Q?Q:e(Q,P)}else if(Array.isArray(I))return function $(I,w){if(0===I.length)return"[]";if(w.length>r)return"[Array]";const P=Math.min(t,I.length),Q=I.length-P,N=[];for(let x=0;x1&&N.push(`... ${Q} more items`),"["+N.join(", ")+"]"}(I,P);return function R(I,w){const P=Object.entries(I);return 0===P.length?"{}":w.length>r?"["+function k(I){const w=Object.prototype.toString.call(I).replace(/^\[object /,"").replace(/]$/,"");if("Object"===w&&"function"==typeof I.constructor){const P=I.constructor.name;if("string"==typeof P&&""!==P)return P}return w}(I)+"]":"{ "+P.map(([N,x])=>N+": "+e(x,w)).join(", ")+" }"}(I,P)}(I,w);default:return String(I)}}},1222:($t,De,a)=>{a.d(De,{Ll:()=>z,aD:()=>m,aZ:()=>t,cE:()=>j,ou:()=>r});class t{constructor($,k,I){this.start=$.start,this.end=k.end,this.startToken=$,this.endToken=k,this.source=I}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class r{constructor($,k,I,w,P,Q){this.kind=$,this.start=k,this.end=I,this.line=w,this.column=P,this.value=Q,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const m={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},e=new Set(Object.keys(m));function z(R){const $=R?.kind;return"string"==typeof $&&e.has($)}var j=function(R){return R.QUERY="query",R.MUTATION="mutation",R.SUBSCRIPTION="subscription",R}(j||{})},5174:($t,De,a)=>{a.d(De,{OC:()=>r,yo:()=>z});var t=a(3725);function r(j){var R;let $=Number.MAX_SAFE_INTEGER,k=null,I=-1;for(let P=0;P0===Q?P:P.slice($)).slice(null!==(R=k)&&void 0!==R?R:0,I+1)}function m(j){let R=0;for(;R1&&k.slice(1).every(Ie=>0===Ie.length||(0,t.i0)(Ie.charCodeAt(0))),P=$.endsWith('\\"""'),Q=j.endsWith('"')&&!P,N=j.endsWith("\\"),x=Q||N,oe=!(null!=R&&R.minimize)&&(!I||j.length>70||x||w||P);let ee="";const Ee=I&&(0,t.i0)(j.charCodeAt(0));return(oe&&!Ee||w)&&(ee+="\n"),ee+=$,(oe||x)&&(ee+="\n"),'"""'+ee+'"""'}},3725:($t,De,a)=>{function t(j){return 9===j||32===j}function r(j){return j>=48&&j<=57}function m(j){return j>=97&&j<=122||j>=65&&j<=90}function e(j){return m(j)||95===j}function z(j){return m(j)||r(j)||95===j}a.d(De,{i0:()=>t,un:()=>e,xr:()=>z,yp:()=>r})},1955:($t,De,a)=>{a.d(De,{b:()=>t});var t=function(r){return r.NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r}(t||{})},3246:($t,De,a)=>{a.d(De,{y:()=>R});var t=a(5174);const m=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function e(x){return z[x.charCodeAt(0)]}const z=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var j=a(8540);function R(x){return(0,j.YR)(x,k)}const k={Name:{leave:x=>x.value},Variable:{leave:x=>"$"+x.name},Document:{leave:x=>I(x.definitions,"\n\n")},OperationDefinition:{leave(x){const oe=P("(",I(x.variableDefinitions,", "),")"),ee=I([x.operation,I([x.name,oe]),I(x.directives," ")]," ");return("query"===ee?"":ee+" ")+x.selectionSet}},VariableDefinition:{leave:({variable:x,type:oe,defaultValue:ee,directives:Ee})=>x+": "+oe+P(" = ",ee)+P(" ",I(Ee," "))},SelectionSet:{leave:({selections:x})=>w(x)},Field:{leave({alias:x,name:oe,arguments:ee,directives:Ee,selectionSet:Ie}){const ce=P("",x,": ")+oe;let Pe=ce+P("(",I(ee,", "),")");return Pe.length>80&&(Pe=ce+P("(\n",Q(I(ee,"\n")),"\n)")),I([Pe,I(Ee," "),Ie]," ")}},Argument:{leave:({name:x,value:oe})=>x+": "+oe},FragmentSpread:{leave:({name:x,directives:oe})=>"..."+x+P(" ",I(oe," "))},InlineFragment:{leave:({typeCondition:x,directives:oe,selectionSet:ee})=>I(["...",P("on ",x),I(oe," "),ee]," ")},FragmentDefinition:{leave:({name:x,typeCondition:oe,variableDefinitions:ee,directives:Ee,selectionSet:Ie})=>`fragment ${x}${P("(",I(ee,", "),")")} on ${oe} ${P("",I(Ee," ")," ")}`+Ie},IntValue:{leave:({value:x})=>x},FloatValue:{leave:({value:x})=>x},StringValue:{leave:({value:x,block:oe})=>oe?(0,t.yo)(x):function r(x){return`"${x.replace(m,e)}"`}(x)},BooleanValue:{leave:({value:x})=>x?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:x})=>x},ListValue:{leave:({values:x})=>"["+I(x,", ")+"]"},ObjectValue:{leave:({fields:x})=>"{"+I(x,", ")+"}"},ObjectField:{leave:({name:x,value:oe})=>x+": "+oe},Directive:{leave:({name:x,arguments:oe})=>"@"+x+P("(",I(oe,", "),")")},NamedType:{leave:({name:x})=>x},ListType:{leave:({type:x})=>"["+x+"]"},NonNullType:{leave:({type:x})=>x+"!"},SchemaDefinition:{leave:({description:x,directives:oe,operationTypes:ee})=>P("",x,"\n")+I(["schema",I(oe," "),w(ee)]," ")},OperationTypeDefinition:{leave:({operation:x,type:oe})=>x+": "+oe},ScalarTypeDefinition:{leave:({description:x,name:oe,directives:ee})=>P("",x,"\n")+I(["scalar",oe,I(ee," ")]," ")},ObjectTypeDefinition:{leave:({description:x,name:oe,interfaces:ee,directives:Ee,fields:Ie})=>P("",x,"\n")+I(["type",oe,P("implements ",I(ee," & ")),I(Ee," "),w(Ie)]," ")},FieldDefinition:{leave:({description:x,name:oe,arguments:ee,type:Ee,directives:Ie})=>P("",x,"\n")+oe+(N(ee)?P("(\n",Q(I(ee,"\n")),"\n)"):P("(",I(ee,", "),")"))+": "+Ee+P(" ",I(Ie," "))},InputValueDefinition:{leave:({description:x,name:oe,type:ee,defaultValue:Ee,directives:Ie})=>P("",x,"\n")+I([oe+": "+ee,P("= ",Ee),I(Ie," ")]," ")},InterfaceTypeDefinition:{leave:({description:x,name:oe,interfaces:ee,directives:Ee,fields:Ie})=>P("",x,"\n")+I(["interface",oe,P("implements ",I(ee," & ")),I(Ee," "),w(Ie)]," ")},UnionTypeDefinition:{leave:({description:x,name:oe,directives:ee,types:Ee})=>P("",x,"\n")+I(["union",oe,I(ee," "),P("= ",I(Ee," | "))]," ")},EnumTypeDefinition:{leave:({description:x,name:oe,directives:ee,values:Ee})=>P("",x,"\n")+I(["enum",oe,I(ee," "),w(Ee)]," ")},EnumValueDefinition:{leave:({description:x,name:oe,directives:ee})=>P("",x,"\n")+I([oe,I(ee," ")]," ")},InputObjectTypeDefinition:{leave:({description:x,name:oe,directives:ee,fields:Ee})=>P("",x,"\n")+I(["input",oe,I(ee," "),w(Ee)]," ")},DirectiveDefinition:{leave:({description:x,name:oe,arguments:ee,repeatable:Ee,locations:Ie})=>P("",x,"\n")+"directive @"+oe+(N(ee)?P("(\n",Q(I(ee,"\n")),"\n)"):P("(",I(ee,", "),")"))+(Ee?" repeatable":"")+" on "+I(Ie," | ")},SchemaExtension:{leave:({directives:x,operationTypes:oe})=>I(["extend schema",I(x," "),w(oe)]," ")},ScalarTypeExtension:{leave:({name:x,directives:oe})=>I(["extend scalar",x,I(oe," ")]," ")},ObjectTypeExtension:{leave:({name:x,interfaces:oe,directives:ee,fields:Ee})=>I(["extend type",x,P("implements ",I(oe," & ")),I(ee," "),w(Ee)]," ")},InterfaceTypeExtension:{leave:({name:x,interfaces:oe,directives:ee,fields:Ee})=>I(["extend interface",x,P("implements ",I(oe," & ")),I(ee," "),w(Ee)]," ")},UnionTypeExtension:{leave:({name:x,directives:oe,types:ee})=>I(["extend union",x,I(oe," "),P("= ",I(ee," | "))]," ")},EnumTypeExtension:{leave:({name:x,directives:oe,values:ee})=>I(["extend enum",x,I(oe," "),w(ee)]," ")},InputObjectTypeExtension:{leave:({name:x,directives:oe,fields:ee})=>I(["extend input",x,I(oe," "),w(ee)]," ")}};function I(x,oe=""){var ee;return null!==(ee=x?.filter(Ee=>Ee).join(oe))&&void 0!==ee?ee:""}function w(x){return P("{\n",Q(I(x,"\n")),"\n}")}function P(x,oe,ee=""){return null!=oe&&""!==oe?x+oe+ee:""}function Q(x){return P(" ",x.replace(/\n/g,"\n "))}function N(x){var oe;return null!==(oe=x?.some(ee=>ee.includes("\n")))&&void 0!==oe&&oe}},8540:($t,De,a)=>{a.d(De,{YR:()=>j,sP:()=>z});var t=a(6005),r=a(7250),m=a(1222),e=a(1955);const z=Object.freeze({});function j(I,w,P=m.aD){const Q=new Map;for(const ge of Object.values(e.b))Q.set(ge,$(w,ge));let N,ce,Pe,x=Array.isArray(I),oe=[I],ee=-1,Ee=[],Ie=I;const ve=[],pe=[];do{ee++;const ge=ee===oe.length,T=ge&&0!==Ee.length;if(ge){if(ce=0===pe.length?void 0:ve[ve.length-1],Ie=Pe,Pe=pe.pop(),T)if(x){Ie=Ie.slice();let A=0;for(const[X,se]of Ee){const je=X-A;null===se?(Ie.splice(je,1),A++):Ie[je]=se}}else{Ie=Object.defineProperties({},Object.getOwnPropertyDescriptors(Ie));for(const[A,X]of Ee)Ie[A]=X}ee=N.index,oe=N.keys,Ee=N.edits,x=N.inArray,N=N.prev}else if(Pe){if(ce=x?ee:oe[ee],Ie=Pe[ce],null==Ie)continue;ve.push(ce)}let D;if(!Array.isArray(Ie)){var U,M;(0,m.Ll)(Ie)||(0,t.U)(!1,`Invalid AST Node: ${(0,r.N)(Ie)}.`);const A=ge?null===(U=Q.get(Ie.kind))||void 0===U?void 0:U.leave:null===(M=Q.get(Ie.kind))||void 0===M?void 0:M.enter;if(D=A?.call(w,Ie,ce,Pe,ve,pe),D===z)break;if(!1===D){if(!ge){ve.pop();continue}}else if(void 0!==D&&(Ee.push([ce,D]),!ge)){if(!(0,m.Ll)(D)){ve.pop();continue}Ie=D}}var te;void 0===D&&T&&Ee.push([ce,Ie]),ge?ve.pop():(N={inArray:x,index:ee,keys:oe,edits:Ee,prev:N},x=Array.isArray(Ie),oe=x?Ie:null!==(te=P[Ie.kind])&&void 0!==te?te:[],ee=-1,Ee=[],Pe&&pe.push(Pe),Pe=Ie)}while(void 0!==N);return 0!==Ee.length?Ee[Ee.length-1][1]:I}function $(I,w){const P=I[w];return"object"==typeof P?P:"function"==typeof P?{enter:P,leave:void 0}:{enter:I.enter,leave:I.leave}}},3617:($t,De,a)=>{a.d(De,{$:()=>T,Y:()=>ge});var t=a(4707),r=a(3953),m=a(1413),e=a(6977),z=a(713),j=a(6042),R=a(7806),$=a(5103),k=a(8203);function I(D,A){1&D&&r.eu8(0)}function w(D,A){if(1&D&&r.DNE(0,I,1,0,"ng-container",7),2&D){const X=r.XpG(3);r.Y8G("nzStringTemplateOutlet",X.nzIcon)}}function P(D,A){if(1&D&&r.nrm(0,"span",6),2&D){const X=r.XpG(3);r.Y8G("nzType",X.nzIconType||X.inferredIconType)("nzTheme",X.iconTheme)}}function Q(D,A){if(1&D&&(r.j41(0,"div",2),r.DNE(1,w,1,1,"ng-container")(2,P,1,2,"span",6),r.k0s()),2&D){const X=r.XpG(2);r.R7$(),r.vxM(X.nzIcon?1:2)}}function N(D,A){if(1&D&&(r.qex(0),r.EFF(1),r.bVm()),2&D){const X=r.XpG(4);r.R7$(),r.JRh(X.nzMessage)}}function x(D,A){if(1&D&&(r.j41(0,"span",8),r.DNE(1,N,2,1,"ng-container",7),r.k0s()),2&D){const X=r.XpG(3);r.R7$(),r.Y8G("nzStringTemplateOutlet",X.nzMessage)}}function oe(D,A){if(1&D&&(r.qex(0),r.EFF(1),r.bVm()),2&D){const X=r.XpG(4);r.R7$(),r.JRh(X.nzDescription)}}function ee(D,A){if(1&D&&(r.j41(0,"span",9),r.DNE(1,oe,2,1,"ng-container",7),r.k0s()),2&D){const X=r.XpG(3);r.R7$(),r.Y8G("nzStringTemplateOutlet",X.nzDescription)}}function Ee(D,A){if(1&D&&(r.j41(0,"div",3),r.DNE(1,x,2,1,"span",8)(2,ee,2,1,"span",9),r.k0s()),2&D){const X=r.XpG(2);r.R7$(),r.vxM(X.nzMessage?1:-1),r.R7$(),r.vxM(X.nzDescription?2:-1)}}function Ie(D,A){if(1&D&&(r.qex(0),r.EFF(1),r.bVm()),2&D){const X=r.XpG(3);r.R7$(),r.JRh(X.nzAction)}}function ce(D,A){if(1&D&&(r.j41(0,"div",4),r.DNE(1,Ie,2,1,"ng-container",7),r.k0s()),2&D){const X=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",X.nzAction)}}function Pe(D,A){if(1&D&&(r.qex(0),r.j41(1,"span",12),r.EFF(2),r.k0s(),r.bVm()),2&D){const X=r.XpG(4);r.R7$(2),r.JRh(X.nzCloseText)}}function ve(D,A){if(1&D&&r.DNE(0,Pe,3,1,"ng-container",7),2&D){const X=r.XpG(3);r.Y8G("nzStringTemplateOutlet",X.nzCloseText)}}function pe(D,A){1&D&&r.nrm(0,"span",11)}function U(D,A){if(1&D){const X=r.RV6();r.j41(0,"button",10),r.bIt("click",function(){r.eBV(X);const je=r.XpG(2);return r.Njj(je.closeAlert())}),r.DNE(1,ve,1,1,"ng-container")(2,pe,1,0,"span",11),r.k0s()}if(2&D){const X=r.XpG(2);r.R7$(),r.vxM(X.nzCloseText?1:2)}}function M(D,A){if(1&D){const X=r.RV6();r.j41(0,"div",1),r.bIt("@slideAlertMotion.done",function(){r.eBV(X);const je=r.XpG();return r.Njj(je.onFadeAnimationDone())}),r.DNE(1,Q,3,1,"div",2)(2,Ee,3,2,"div",3)(3,ce,2,1,"div",4)(4,U,3,1,"button",5),r.k0s()}if(2&D){const X=r.XpG();r.AVh("ant-alert-rtl","rtl"===X.dir)("ant-alert-success","success"===X.nzType)("ant-alert-info","info"===X.nzType)("ant-alert-warning","warning"===X.nzType)("ant-alert-error","error"===X.nzType)("ant-alert-no-icon",!X.nzShowIcon)("ant-alert-banner",X.nzBanner)("ant-alert-closable",X.nzCloseable)("ant-alert-with-description",!!X.nzDescription),r.Y8G("@.disabled",X.nzNoAnimation)("@slideAlertMotion",void 0),r.R7$(),r.vxM(X.nzShowIcon?1:-1),r.R7$(),r.vxM(X.nzMessage||X.nzDescription?2:-1),r.R7$(),r.vxM(X.nzAction?3:-1),r.R7$(),r.vxM(X.nzCloseable||X.nzCloseText?4:-1)}}let ge=(()=>{class D{constructor(X,se,je){this.nzConfigService=X,this.cdr=se,this.directionality=je,this._nzModuleName="alert",this.nzAction=null,this.nzCloseText=null,this.nzIconType=null,this.nzMessage=null,this.nzDescription=null,this.nzType="info",this.nzCloseable=!1,this.nzShowIcon=!1,this.nzBanner=!1,this.nzNoAnimation=!1,this.nzIcon=null,this.nzOnClose=new r.bkB,this.closed=!1,this.iconTheme="fill",this.inferredIconType="info-circle",this.dir="ltr",this.isTypeSet=!1,this.isShowIconSet=!1,this.destroy$=new m.B,this.nzConfigService.getConfigChangeEventForComponent("alert").pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(X=>{this.dir=X,this.cdr.detectChanges()}),this.dir=this.directionality.value}closeAlert(){this.closed=!0}onFadeAnimationDone(){this.closed&&this.nzOnClose.emit(!0)}ngOnChanges(X){const{nzShowIcon:se,nzDescription:je,nzType:Bt,nzBanner:Tt}=X;if(se&&(this.isShowIconSet=!0),Bt)switch(this.isTypeSet=!0,this.nzType){case"error":this.inferredIconType="close-circle";break;case"success":this.inferredIconType="check-circle";break;case"info":this.inferredIconType="info-circle";break;case"warning":this.inferredIconType="exclamation-circle"}je&&(this.iconTheme=this.nzDescription?"outline":"fill"),Tt&&(this.isTypeSet||(this.nzType="warning"),this.isShowIconSet||(this.nzShowIcon=!0))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(se){return new(se||D)(r.rXU(j.yx),r.rXU(r.gRc),r.rXU(k.dS,8))};static#t=this.\u0275cmp=r.VBU({type:D,selectors:[["nz-alert"]],inputs:{nzAction:"nzAction",nzCloseText:"nzCloseText",nzIconType:"nzIconType",nzMessage:"nzMessage",nzDescription:"nzDescription",nzType:"nzType",nzCloseable:[2,"nzCloseable","nzCloseable",r.L39],nzShowIcon:[2,"nzShowIcon","nzShowIcon",r.L39],nzBanner:[2,"nzBanner","nzBanner",r.L39],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",r.L39],nzIcon:"nzIcon"},outputs:{nzOnClose:"nzOnClose"},exportAs:["nzAlert"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],decls:1,vars:1,consts:[[1,"ant-alert",3,"ant-alert-rtl","ant-alert-success","ant-alert-info","ant-alert-warning","ant-alert-error","ant-alert-no-icon","ant-alert-banner","ant-alert-closable","ant-alert-with-description"],[1,"ant-alert"],[1,"ant-alert-icon"],[1,"ant-alert-content"],[1,"ant-alert-action"],["type","button","tabindex","0",1,"ant-alert-close-icon"],["nz-icon","",3,"nzType","nzTheme"],[4,"nzStringTemplateOutlet"],[1,"ant-alert-message"],[1,"ant-alert-description"],["type","button","tabindex","0",1,"ant-alert-close-icon",3,"click"],["nz-icon","","nzType","close"],[1,"ant-alert-close-text"]],template:function(se,je){1&se&&r.DNE(0,M,5,24,"div",0),2&se&&r.vxM(je.closed?-1:0)},dependencies:[$.Y3,$.Dn,R.C,R.m],encapsulation:2,data:{animation:[z.Sn]},changeDetection:0})}return(0,t.Cg)([(0,j.H4)()],D.prototype,"nzCloseable",void 0),(0,t.Cg)([(0,j.H4)()],D.prototype,"nzShowIcon",void 0),D})(),T=(()=>{class D{static#e=this.\u0275fac=function(se){return new(se||D)};static#t=this.\u0275mod=r.$C({type:D});static#n=this.\u0275inj=r.G2t({imports:[ge]})}return D})()},8928:($t,De,a)=>{a.d(De,{jl:()=>Bt});var t=a(3953),r=a(7806),m=a(1413),e=a(6977),z=a(8141),j=a(1986),R=a(5964),$=a(7336),k=a(7987),I=a(6939),w=a(177),P=a(9417),Q=a(1011);const N=[[["nz-auto-option"]]],x=["nz-auto-option"];function oe(Tt,Vt){if(1&Tt&&(t.qex(0),t.EFF(1),t.bVm()),2&Tt){const He=t.XpG();t.R7$(),t.JRh(He.nzLabel)}}let te=(()=>{class Tt{constructor(){}static#e=this.\u0275fac=function(xt){return new(xt||Tt)};static#t=this.\u0275cmp=t.VBU({type:Tt,selectors:[["nz-auto-optgroup"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzAutoOptgroup"],standalone:!0,features:[t.aNF],ngContentSelectors:x,decls:3,vars:1,consts:[[1,"ant-select-item","ant-select-item-group"],[4,"nzStringTemplateOutlet"]],template:function(xt,Lt){1&xt&&(t.NAR(N),t.j41(0,"div",0),t.DNE(1,oe,2,1,"ng-container",1),t.k0s(),t.SdG(2)),2&xt&&(t.R7$(),t.Y8G("nzStringTemplateOutlet",Lt.nzLabel))},dependencies:[r.C,r.m],encapsulation:2,changeDetection:0})}return Tt})();const D={provide:P.kq,useExisting:(0,t.Rfq)(()=>X),multi:!0};let X=(()=>{class Tt{get activeOption(){return this.nzAutocomplete&&this.nzAutocomplete.options.length?this.nzAutocomplete.activeItem:null}constructor(He,xt,Lt,ft,St,kt){this.ngZone=He,this.elementRef=xt,this.overlay=Lt,this.viewContainerRef=ft,this.nzInputGroupWhitSuffixOrPrefixDirective=St,this.document=kt,this.onChange=()=>{},this.onTouched=()=>{},this.panelOpen=!1,this.destroy$=new m.B,this.overlayRef=null,this.portal=null,this.previousValue=null}ngAfterViewInit(){this.nzAutocomplete&&this.nzAutocomplete.animationStateChange.pipe((0,e.Q)(this.destroy$)).subscribe(He=>{"void"===He.toState&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.destroyPanel()}writeValue(He){this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setTriggerValue(He)))}registerOnChange(He){this.onChange=He}registerOnTouched(He){this.onTouched=He}setDisabledState(He){this.elementRef.nativeElement.disabled=He,this.closePanel()}openPanel(){this.previousValue=this.elementRef.nativeElement.value,this.attachOverlay(),this.updateStatus()}closePanel(){this.panelOpen&&(this.nzAutocomplete.isOpen=this.panelOpen=!1,this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.selectionChangeSubscription.unsubscribe(),this.overlayOutsideClickSubscription.unsubscribe(),this.optionsChangeSubscription.unsubscribe(),this.portal=null))}handleKeydown(He){const xt=He.keyCode,Lt=xt===$.i7||xt===$.n6;xt===$._f&&He.preventDefault(),!this.panelOpen||xt!==$._f&&xt!==$.wn?this.panelOpen&&xt===$.Fm?this.nzAutocomplete.showPanel&&(He.preventDefault(),this.activeOption?this.activeOption.selectViaInteraction():this.closePanel()):this.panelOpen&&Lt&&this.nzAutocomplete.showPanel&&(He.stopPropagation(),He.preventDefault(),xt===$.i7?this.nzAutocomplete.setPreviousItemActive():this.nzAutocomplete.setNextItemActive(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded(),this.doBackfill()):(this.activeOption&&this.activeOption.getLabel()!==this.previousValue&&this.setTriggerValue(this.previousValue),this.closePanel())}handleInput(He){const xt=He.target,Lt=this.document;let ft=xt.value;"number"===xt.type&&(ft=""===ft?null:parseFloat(ft)),this.previousValue!==ft&&(this.previousValue=ft,this.onChange(ft),this.canOpen()&&Lt.activeElement===He.target&&this.openPanel())}handleFocus(){this.canOpen()&&this.openPanel()}handleBlur(){this.onTouched()}subscribeOptionsChange(){return this.nzAutocomplete.options.changes.pipe((0,z.M)(()=>this.positionStrategy.reapplyLastPosition()),(0,j.c)(0)).subscribe(()=>{this.resetActiveItem(),this.panelOpen&&this.overlayRef.updatePosition()})}subscribeSelectionChange(){return this.nzAutocomplete.selectionChange.subscribe(He=>{this.setValueAndClose(He)})}subscribeOverlayOutsideClick(){return this.overlayRef.outsidePointerEvents().pipe((0,R.p)(He=>!this.elementRef.nativeElement.contains(He.target))).subscribe(()=>{this.closePanel()})}attachOverlay(){if(!this.nzAutocomplete)throw function A(){return Error("Attempting to open an undefined instance of `nz-autocomplete`. Make sure that the id passed to the `nzAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}();!this.portal&&this.nzAutocomplete.template&&(this.portal=new I.VA(this.nzAutocomplete.template,this.viewContainerRef)),this.overlayRef||(this.overlayRef=this.overlay.create(this.getOverlayConfig())),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.selectionChangeSubscription=this.subscribeSelectionChange(),this.optionsChangeSubscription=this.subscribeOptionsChange(),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick(),this.overlayRef.detachments().pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.closePanel()})),this.nzAutocomplete.isOpen=this.panelOpen=!0}updateStatus(){this.overlayRef&&this.overlayRef.updateSize({width:this.nzAutocomplete.nzWidth||this.getHostWidth()}),this.nzAutocomplete.setVisibility(),this.resetActiveItem(),this.activeOption&&this.activeOption.scrollIntoViewIfNeeded()}destroyPanel(){this.overlayRef&&this.closePanel()}getOverlayConfig(){return new k.rR({positionStrategy:this.getOverlayPosition(),disposeOnNavigation:!0,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:this.nzAutocomplete.nzWidth||this.getHostWidth()})}getConnectedElement(){return this.nzInputGroupWhitSuffixOrPrefixDirective?this.nzInputGroupWhitSuffixOrPrefixDirective.elementRef:this.elementRef}getHostWidth(){return this.getConnectedElement().nativeElement.getBoundingClientRect().width}getOverlayPosition(){const He=[new k.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new k.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})];return this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.getConnectedElement()).withFlexibleDimensions(!1).withPush(!1).withPositions(He).withTransformOriginOn(".ant-select-dropdown"),this.positionStrategy}resetActiveItem(){const He=this.nzAutocomplete.getOptionIndex(this.previousValue);this.nzAutocomplete.clearSelectedOptions(null,!0),-1!==He?(this.nzAutocomplete.setActiveItem(He),this.nzAutocomplete.activeItem.select(!1)):this.nzAutocomplete.setActiveItem(this.nzAutocomplete.nzDefaultActiveFirstOption?0:-1)}setValueAndClose(He){const xt=He.nzValue;this.setTriggerValue(He.getLabel()),this.onChange(xt),this.elementRef.nativeElement.focus(),this.closePanel()}setTriggerValue(He){const xt=this.nzAutocomplete.getOption(He),Lt=xt?xt.getLabel():He;this.elementRef.nativeElement.value=Lt??"",this.nzAutocomplete.nzBackfill||(this.previousValue=Lt)}doBackfill(){this.nzAutocomplete.nzBackfill&&this.nzAutocomplete.activeItem&&this.setTriggerValue(this.nzAutocomplete.activeItem.getLabel())}canOpen(){const He=this.elementRef.nativeElement;return!He.readOnly&&!He.disabled}static#e=this.\u0275fac=function(xt){return new(xt||Tt)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(k.hJ),t.rXU(t.c1b),t.rXU(Q.vN,8),t.rXU(w.qQ,8))};static#t=this.\u0275dir=t.FsC({type:Tt,selectors:[["input","nzAutocomplete",""],["textarea","nzAutocomplete",""]],hostAttrs:["autocomplete","off","aria-autocomplete","list"],hostBindings:function(xt,Lt){1&xt&&t.bIt("focusin",function(){return Lt.handleFocus()})("blur",function(){return Lt.handleBlur()})("input",function(St){return Lt.handleInput(St)})("keydown",function(St){return Lt.handleKeydown(St)})},inputs:{nzAutocomplete:"nzAutocomplete"},exportAs:["nzAutocompleteTrigger"],standalone:!0,features:[t.Jv_([D])]})}return Tt})(),Bt=(()=>{class Tt{static#e=this.\u0275fac=function(xt){return new(xt||Tt)};static#t=this.\u0275mod=t.$C({type:Tt});static#n=this.\u0275inj=t.G2t({imports:[te]})}return Tt})()},9438:($t,De,a)=>{a.d(De,{PM:()=>P,Yb:()=>N});var t=a(4707),r=a(6860),m=a(3953),e=a(6042),z=a(5103);const j=["textEl"];function R(x,oe){if(1&x&&m.nrm(0,"span",1),2&x){const ee=m.XpG();m.Y8G("nzType",ee.nzIcon)}}function $(x,oe){if(1&x){const ee=m.RV6();m.j41(0,"img",4),m.bIt("error",function(Ie){m.eBV(ee);const ce=m.XpG();return m.Njj(ce.imgError(Ie))}),m.k0s()}if(2&x){const ee=m.XpG();m.Y8G("src",ee.nzSrc,m.B4B),m.BMQ("srcset",ee.nzSrcSet)("alt",ee.nzAlt)}}function k(x,oe){if(1&x&&(m.j41(0,"span",3,0),m.EFF(2),m.k0s()),2&x){const ee=m.XpG();m.R7$(2),m.JRh(ee.nzText)}}let P=(()=>{class x{constructor(ee,Ee,Ie){this.nzConfigService=ee,this.elementRef=Ee,this.cdr=Ie,this._nzModuleName="avatar",this.nzShape="circle",this.nzSize="default",this.nzGap=4,this.nzError=new m.bkB,this.hasText=!1,this.hasSrc=!0,this.hasIcon=!1,this.classMap={},this.customSize=null,this.el=this.elementRef.nativeElement}imgError(ee){this.nzError.emit(ee),ee.defaultPrevented||(this.hasSrc=!1,this.hasIcon=!1,this.hasText=!1,this.nzIcon?this.hasIcon=!0:this.nzText&&(this.hasText=!0),this.cdr.detectChanges(),this.setSizeStyle(),this.calcStringSize())}ngOnChanges(){this.hasText=!this.nzSrc&&!!this.nzText,this.hasIcon=!this.nzSrc&&!!this.nzIcon,this.hasSrc=!!this.nzSrc,this.setSizeStyle(),this.calcStringSize()}ngAfterViewInit(){this.calcStringSize()}calcStringSize(){if(!this.hasText||!this.textEl)return;const ee=this.textEl.nativeElement,Ee=ee.offsetWidth,Ie=this.el.getBoundingClientRect?.().width??0,ce=2*this.nzGap{class x{static#e=this.\u0275fac=function(Ee){return new(Ee||x)};static#t=this.\u0275mod=m.$C({type:x});static#n=this.\u0275inj=m.G2t({imports:[P]})}return x})()},3146:($t,De,a)=>{a.d(De,{KI:()=>te,W2:()=>ge,dz:()=>M});var t=a(4707),r=a(177),m=a(3953),e=a(1413),z=a(6977),j=a(713),R=a(6042),$=a(7806),k=a(6841),I=a(8203);function w(T,D){if(1&T&&(m.j41(0,"p",3),m.EFF(1),m.k0s()),2&T){const A=D.$implicit,X=m.XpG(2).$index,se=m.XpG(2);m.AVh("current",A===se.countArray[X]),m.R7$(),m.SpI(" ",A," ")}}function P(T,D){if(1&T&&m.Z7z(0,w,2,3,"p",2,m.fX1),2&T){const A=m.XpG(3);m.Dyx(A.countSingleArray)}}function Q(T,D){if(1&T&&(m.j41(0,"span",1),m.DNE(1,P,2,0),m.k0s()),2&T){const A=D.$index,X=m.XpG(2);m.xc7("transform","translateY("+100*-X.countArray[A]+"%)"),m.Y8G("nzNoAnimation",X.noAnimation),m.R7$(),m.vxM(X.nzDot||void 0===X.countArray[A]?-1:1)}}function N(T,D){if(1&T&&m.Z7z(0,Q,2,4,"span",0,m.fX1),2&T){const A=m.XpG();m.Dyx(A.maxNumberArray)}}function x(T,D){if(1&T&&m.EFF(0),2&T){const A=m.XpG();m.SpI(" ",A.nzOverflowCount,"+ ")}}const oe=["*"];function ee(T,D){if(1&T&&(m.qex(0),m.EFF(1),m.bVm()),2&T){const A=m.XpG(2);m.R7$(),m.JRh(A.nzText)}}function Ee(T,D){if(1&T&&(m.nrm(0,"span",1),m.j41(1,"span",2),m.DNE(2,ee,2,1,"ng-container",0),m.k0s()),2&T){const A=m.XpG();m.ZvI("ant-badge-status-dot ant-badge-status-",A.nzStatus||A.presetColor,""),m.xc7("background",!A.presetColor&&A.nzColor),m.Y8G("ngStyle",A.nzStyle),m.R7$(2),m.Y8G("nzStringTemplateOutlet",A.nzText)}}function Ie(T,D){if(1&T&&m.nrm(0,"nz-badge-sup",3),2&T){const A=m.XpG(2);m.Y8G("nzOffset",A.nzOffset)("nzSize",A.nzSize)("nzTitle",A.nzTitle)("nzStyle",A.nzStyle)("nzDot",A.nzDot)("nzOverflowCount",A.nzOverflowCount)("disableAnimation",!!(A.nzStandalone||A.nzStatus||A.nzColor||null!=A.noAnimation&&A.noAnimation.nzNoAnimation))("nzCount",A.nzCount)("noAnimation",!(null==A.noAnimation||!A.noAnimation.nzNoAnimation))}}function ce(T,D){if(1&T&&(m.qex(0),m.DNE(1,Ie,1,9,"nz-badge-sup",3),m.bVm()),2&T){const A=m.XpG();m.R7$(),m.vxM(A.showSup?1:-1)}}function Pe(T,D){if(1&T&&(m.qex(0),m.j41(1,"span",3),m.EFF(2),m.k0s(),m.bVm()),2&T){const A=m.XpG();m.R7$(2),m.JRh(A.nzText)}}let ve=(()=>{class T{constructor(){this.nzStyle=null,this.nzDot=!1,this.nzOverflowCount=99,this.disableAnimation=!1,this.noAnimation=!1,this.nzSize="default",this.maxNumberArray=[],this.countArray=[],this.count=0,this.countSingleArray=[0,1,2,3,4,5,6,7,8,9]}generateMaxNumberArray(){this.maxNumberArray=this.nzOverflowCount.toString().split("")}ngOnInit(){this.generateMaxNumberArray()}ngOnChanges(A){const{nzOverflowCount:X,nzCount:se}=A;se&&"number"==typeof se.currentValue&&(this.count=Math.max(0,se.currentValue),this.countArray=this.count.toString().split("").map(je=>+je)),X&&this.generateMaxNumberArray()}static#e=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275cmp=m.VBU({type:T,selectors:[["nz-badge-sup"]],hostAttrs:[1,"ant-scroll-number"],hostVars:17,hostBindings:function(X,se){2&X&&(m.zvX("@.disabled",se.disableAnimation)("@zoomBadgeMotion",void 0),m.BMQ("title",null===se.nzTitle?"":se.nzTitle||se.nzCount),m.Aen(se.nzStyle),m.xc7("right",se.nzOffset&&se.nzOffset[0]?-se.nzOffset[0]:null,"px")("margin-top",se.nzOffset&&se.nzOffset[1]?se.nzOffset[1]:null,"px"),m.AVh("ant-badge-count",!se.nzDot)("ant-badge-count-sm","small"===se.nzSize)("ant-badge-dot",se.nzDot)("ant-badge-multiple-words",se.countArray.length>=2))},inputs:{nzOffset:"nzOffset",nzTitle:"nzTitle",nzStyle:"nzStyle",nzDot:"nzDot",nzOverflowCount:[2,"nzOverflowCount","nzOverflowCount",m.Udg],disableAnimation:"disableAnimation",nzCount:"nzCount",noAnimation:"noAnimation",nzSize:"nzSize"},exportAs:["nzBadgeSup"],standalone:!0,features:[m.GFd,m.OA$,m.aNF],decls:2,vars:1,consts:[[1,"ant-scroll-number-only",3,"nzNoAnimation","transform"],[1,"ant-scroll-number-only",3,"nzNoAnimation"],[1,"ant-scroll-number-only-unit",3,"current"],[1,"ant-scroll-number-only-unit"]],template:function(X,se){1&X&&m.DNE(0,N,2,0)(1,x,1,1),2&X&&m.vxM(se.count<=se.nzOverflowCount?0:1)},dependencies:[k.z],encapsulation:2,data:{animation:[j.bS]},changeDetection:0})}return T})();const pe=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];let M=(()=>{class T{constructor(A,X,se,je,Bt,Tt){this.nzConfigService=A,this.renderer=X,this.cdr=se,this.elementRef=je,this.directionality=Bt,this.noAnimation=Tt,this._nzModuleName="badge",this.showSup=!1,this.presetColor=null,this.dir="ltr",this.destroy$=new e.B,this.nzShowZero=!1,this.nzShowDot=!0,this.nzStandalone=!1,this.nzDot=!1,this.nzOverflowCount=99,this.nzColor=void 0,this.nzStyle=null,this.nzText=null,this.nzSize="default"}ngOnInit(){this.directionality.change?.pipe((0,z.Q)(this.destroy$)).subscribe(A=>{this.dir=A,this.prepareBadgeForRtl(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.prepareBadgeForRtl()}ngOnChanges(A){const{nzColor:X,nzShowDot:se,nzDot:je,nzCount:Bt,nzShowZero:Tt}=A;X&&(this.presetColor=this.nzColor&&-1!==pe.indexOf(this.nzColor)?this.nzColor:null),(se||je||Bt||Tt)&&(this.showSup=this.nzShowDot&&this.nzDot||"number"==typeof this.nzCount&&this.nzCount>0||"number"==typeof this.nzCount&&this.nzCount<=0&&this.nzShowZero)}prepareBadgeForRtl(){this.isRtlLayout?this.renderer.addClass(this.elementRef.nativeElement,"ant-badge-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-badge-rtl")}get isRtlLayout(){return"rtl"===this.dir}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(X){return new(X||T)(m.rXU(R.yx),m.rXU(m.sFG),m.rXU(m.gRc),m.rXU(m.aKT),m.rXU(I.dS,8),m.rXU(k.z,9))};static#t=this.\u0275cmp=m.VBU({type:T,selectors:[["nz-badge"]],hostAttrs:[1,"ant-badge"],hostVars:4,hostBindings:function(X,se){2&X&&m.AVh("ant-badge-status",se.nzStatus)("ant-badge-not-a-wrapper",!!(se.nzStandalone||se.nzStatus||se.nzColor))},inputs:{nzShowZero:[2,"nzShowZero","nzShowZero",m.L39],nzShowDot:[2,"nzShowDot","nzShowDot",m.L39],nzStandalone:[2,"nzStandalone","nzStandalone",m.L39],nzDot:[2,"nzDot","nzDot",m.L39],nzOverflowCount:"nzOverflowCount",nzColor:"nzColor",nzStyle:"nzStyle",nzText:"nzText",nzTitle:"nzTitle",nzStatus:"nzStatus",nzCount:"nzCount",nzOffset:"nzOffset",nzSize:"nzSize"},exportAs:["nzBadge"],standalone:!0,features:[m.GFd,m.OA$,m.aNF],ngContentSelectors:oe,decls:3,vars:2,consts:[[4,"nzStringTemplateOutlet"],[3,"ngStyle"],[1,"ant-badge-status-text"],[3,"nzOffset","nzSize","nzTitle","nzStyle","nzDot","nzOverflowCount","disableAnimation","nzCount","noAnimation"]],template:function(X,se){1&X&&(m.NAR(),m.DNE(0,Ee,3,7),m.SdG(1),m.DNE(2,ce,2,1,"ng-container",0)),2&X&&(m.vxM(se.nzStatus||se.nzColor?0:-1),m.R7$(2),m.Y8G("nzStringTemplateOutlet",se.nzCount))},dependencies:[r.B3,ve,$.C,$.m],encapsulation:2,data:{animation:[j.bS]},changeDetection:0})}return(0,t.Cg)([(0,R.H4)()],T.prototype,"nzOverflowCount",void 0),(0,t.Cg)([(0,R.H4)()],T.prototype,"nzColor",void 0),T})(),te=(()=>{class T{constructor(){this.nzPlacement="end",this.nzText=null,this.presetColor=null}ngOnChanges(A){const{nzColor:X}=A;X&&(this.presetColor=this.nzColor&&-1!==pe.indexOf(this.nzColor)?this.nzColor:null)}static#e=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275cmp=m.VBU({type:T,selectors:[["nz-ribbon"]],hostAttrs:[1,"ant-ribbon-wrapper"],inputs:{nzColor:"nzColor",nzPlacement:"nzPlacement",nzText:"nzText"},exportAs:["nzRibbon"],standalone:!0,features:[m.OA$,m.aNF],ngContentSelectors:oe,decls:4,vars:11,consts:[[1,"ant-ribbon"],[4,"nzStringTemplateOutlet"],[1,"ant-ribbon-corner"],[1,"ant-ribbon-text"]],template:function(X,se){1&X&&(m.NAR(),m.SdG(0),m.j41(1,"div",0),m.DNE(2,Pe,3,1,"ng-container",1),m.nrm(3,"div",2),m.k0s()),2&X&&(m.R7$(),m.HbH(se.presetColor&&"ant-ribbon-color-"+se.presetColor),m.xc7("background-color",!se.presetColor&&se.nzColor),m.AVh("ant-ribbon-placement-end","end"===se.nzPlacement)("ant-ribbon-placement-start","start"===se.nzPlacement),m.R7$(),m.Y8G("nzStringTemplateOutlet",se.nzText),m.R7$(),m.xc7("color",!se.presetColor&&se.nzColor))},dependencies:[$.C,$.m],encapsulation:2,changeDetection:0})}return T})(),ge=(()=>{class T{static#e=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275mod=m.$C({type:T});static#n=this.\u0275inj=m.G2t({imports:[M,te]})}return T})()},513:($t,De,a)=>{a.d(De,{Zw:()=>Ie,aO:()=>ee,dn:()=>Ee});var t=a(4707),r=a(3953),m=a(1413),e=a(3726),z=a(6977),j=a(9172),R=a(5964),$=a(6042),k=a(5103),I=a(8203),w=a(6389),P=a(5930);const Q=["nz-button",""],N=["*"];function x(ce,Pe){1&ce&&r.nrm(0,"span",0)}let ee=(()=>{class ce{insertSpan(ve,pe){ve.forEach(U=>{if("#text"===U.nodeName){const M=pe.createElement("span"),te=pe.parentNode(U);pe.insertBefore(te,M,U),pe.appendChild(M,U)}})}get iconOnly(){const ve=Array.from(this.elementRef?.nativeElement?.childNodes||[]),pe=ve.every(M=>"#text"!==M.nodeName),U=0==ve.filter(M=>!("#comment"===M.nodeName||M?.attributes?.getNamedItem("nz-icon"))).length;return!!this.nzIconDirectiveElement&&U&&pe}constructor(ve,pe,U,M,te,ge){this.ngZone=ve,this.elementRef=pe,this.cdr=U,this.renderer=M,this.nzConfigService=te,this.directionality=ge,this._nzModuleName="button",this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new m.B,this.loading$=new m.B,this.nzConfigService.getConfigChangeEventForComponent("button").pipe((0,z.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,z.Q)(this.destroy$)).subscribe(ve=>{this.dir=ve,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click",{capture:!0}).pipe((0,z.Q)(this.destroy$)).subscribe(ve=>{(this.disabled&&"A"===ve.target?.tagName||this.nzLoading)&&(ve.preventDefault(),ve.stopImmediatePropagation())})})}ngOnChanges(ve){const{nzLoading:pe}=ve;pe&&this.loading$.next(this.nzLoading)}ngAfterViewInit(){this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}ngAfterContentInit(){this.loading$.pipe((0,j.Z)(this.nzLoading),(0,R.p)(()=>!!this.nzIconDirectiveElement),(0,z.Q)(this.destroy$)).subscribe(ve=>{const pe=this.nzIconDirectiveElement.nativeElement;ve?this.renderer.setStyle(pe,"display","none"):this.renderer.removeStyle(pe,"display")})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(pe){return new(pe||ce)(r.rXU(r.SKi),r.rXU(r.aKT),r.rXU(r.gRc),r.rXU(r.sFG),r.rXU($.yx),r.rXU(I.dS,8))};static#t=this.\u0275cmp=r.VBU({type:ce,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(pe,U,M){if(1&pe&&r.wni(M,k.Dn,5,r.aKT),2&pe){let te;r.mGM(te=r.lsd())&&(U.nzIconDirectiveElement=te.first)}},hostAttrs:[1,"ant-btn"],hostVars:34,hostBindings:function(pe,U){2&pe&&(r.BMQ("tabindex",U.disabled?-1:null===U.tabIndex?null:U.tabIndex)("disabled",U.disabled||null),r.AVh("ant-btn-default","default"===U.nzType)("ant-btn-primary","primary"===U.nzType)("ant-btn-dashed","dashed"===U.nzType)("ant-btn-link","link"===U.nzType)("ant-btn-text","text"===U.nzType)("ant-btn-circle","circle"===U.nzShape)("ant-btn-round","round"===U.nzShape)("ant-btn-lg","large"===U.nzSize)("ant-btn-sm","small"===U.nzSize)("ant-btn-dangerous",U.nzDanger)("ant-btn-loading",U.nzLoading)("ant-btn-background-ghost",U.nzGhost)("ant-btn-block",U.nzBlock)("ant-input-search-button",U.nzSearch)("ant-btn-rtl","rtl"===U.dir)("ant-btn-icon-only",U.iconOnly))},inputs:{nzBlock:[2,"nzBlock","nzBlock",r.L39],nzGhost:[2,"nzGhost","nzGhost",r.L39],nzSearch:[2,"nzSearch","nzSearch",r.L39],nzLoading:[2,"nzLoading","nzLoading",r.L39],nzDanger:[2,"nzDanger","nzDanger",r.L39],disabled:[2,"disabled","disabled",r.L39],tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],attrs:Q,ngContentSelectors:N,decls:2,vars:1,consts:[["nz-icon","","nzType","loading"]],template:function(pe,U){1&pe&&(r.NAR(),r.DNE(0,x,1,0,"span",0),r.SdG(1)),2&pe&&r.vxM(U.nzLoading?0:-1)},dependencies:[k.Y3,k.Dn],encapsulation:2,changeDetection:0})}return(0,t.Cg)([(0,$.H4)()],ce.prototype,"nzSize",void 0),ce})(),Ee=(()=>{class ce{constructor(ve){this.directionality=ve,this.nzSize="default",this.dir="ltr",this.destroy$=new m.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,z.Q)(this.destroy$)).subscribe(ve=>{this.dir=ve})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(pe){return new(pe||ce)(r.rXU(I.dS,8))};static#t=this.\u0275cmp=r.VBU({type:ce,selectors:[["nz-button-group"]],hostAttrs:[1,"ant-btn-group"],hostVars:6,hostBindings:function(pe,U){2&pe&&r.AVh("ant-btn-group-lg","large"===U.nzSize)("ant-btn-group-sm","small"===U.nzSize)("ant-btn-group-rtl","rtl"===U.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],standalone:!0,features:[r.aNF],ngContentSelectors:N,decls:1,vars:0,template:function(pe,U){1&pe&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return ce})(),Ie=(()=>{class ce{static#e=this.\u0275fac=function(pe){return new(pe||ce)};static#t=this.\u0275mod=r.$C({type:ce});static#n=this.\u0275inj=r.G2t({imports:[ee,w.p,P.o7]})}return ce})()},5703:($t,De,a)=>{a.d(De,{RO:()=>Vt,Ti:()=>Lt,cK:()=>xt,ls:()=>Tt});var t=a(3953),r=a(177),m=a(7806),e=a(4707),z=a(1413),j=a(6977),R=a(6042),$=a(1912),k=a(8203);function I(ft,St){}function w(ft,St){if(1&ft&&(t.j41(0,"div",0),t.DNE(1,I,0,0,"ng-template",2),t.k0s()),2&ft){const kt=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",kt.nzAvatar)}}function P(ft,St){if(1&ft&&(t.qex(0),t.EFF(1),t.bVm()),2&ft){const kt=t.XpG(3);t.R7$(),t.JRh(kt.nzTitle)}}function Q(ft,St){if(1&ft&&(t.j41(0,"div",3),t.DNE(1,P,2,1,"ng-container",5),t.k0s()),2&ft){const kt=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",kt.nzTitle)}}function N(ft,St){if(1&ft&&(t.qex(0),t.EFF(1),t.bVm()),2&ft){const kt=t.XpG(3);t.R7$(),t.JRh(kt.nzDescription)}}function x(ft,St){if(1&ft&&(t.j41(0,"div",4),t.DNE(1,N,2,1,"ng-container",5),t.k0s()),2&ft){const kt=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",kt.nzDescription)}}function oe(ft,St){if(1&ft&&(t.j41(0,"div",1),t.DNE(1,Q,2,1,"div",3)(2,x,2,1,"div",4),t.k0s()),2&ft){const kt=t.XpG();t.R7$(),t.vxM(kt.nzTitle?1:-1),t.R7$(),t.vxM(kt.nzDescription?2:-1)}}const ee=["*"];function Ee(ft,St){1&ft&&t.SdG(0)}const Ie=()=>({rows:4});function ce(ft,St){if(1&ft&&(t.qex(0),t.EFF(1),t.bVm()),2&ft){const kt=t.XpG(3);t.R7$(),t.JRh(kt.nzTitle)}}function Pe(ft,St){if(1&ft&&(t.j41(0,"div",6),t.DNE(1,ce,2,1,"ng-container",9),t.k0s()),2&ft){const kt=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",kt.nzTitle)}}function ve(ft,St){if(1&ft&&(t.qex(0),t.EFF(1),t.bVm()),2&ft){const kt=t.XpG(3);t.R7$(),t.JRh(kt.nzExtra)}}function pe(ft,St){if(1&ft&&(t.j41(0,"div",7),t.DNE(1,ve,2,1,"ng-container",9),t.k0s()),2&ft){const kt=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",kt.nzExtra)}}function U(ft,St){}function M(ft,St){if(1&ft&&t.DNE(0,U,0,0,"ng-template",8),2&ft){const kt=t.XpG(2);t.Y8G("ngTemplateOutlet",kt.listOfNzCardTabComponent.template)}}function te(ft,St){if(1&ft&&(t.j41(0,"div",0)(1,"div",5),t.DNE(2,Pe,2,1,"div",6)(3,pe,2,1,"div",7),t.k0s(),t.DNE(4,M,1,1,null,8),t.k0s()),2&ft){const kt=t.XpG();t.R7$(2),t.vxM(kt.nzTitle?2:-1),t.R7$(),t.vxM(kt.nzExtra?3:-1),t.R7$(),t.vxM(kt.listOfNzCardTabComponent?4:-1)}}function ge(ft,St){}function T(ft,St){if(1&ft&&(t.j41(0,"div",1),t.DNE(1,ge,0,0,"ng-template",8),t.k0s()),2&ft){const kt=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",kt.nzCover)}}function D(ft,St){1&ft&&t.nrm(0,"nz-skeleton",3),2&ft&&t.Y8G("nzActive",!0)("nzTitle",!1)("nzParagraph",t.lJ4(3,Ie))}function A(ft,St){1&ft&&t.SdG(0)}function X(ft,St){}function se(ft,St){if(1&ft&&(t.j41(0,"li")(1,"span"),t.DNE(2,X,0,0,"ng-template",8),t.k0s()()),2&ft){const kt=St.$implicit,It=t.XpG(2);t.xc7("width",100/It.nzActions.length,"%"),t.R7$(2),t.Y8G("ngTemplateOutlet",kt)}}function je(ft,St){if(1&ft&&(t.j41(0,"ul",4),t.Z7z(1,se,3,3,"li",10,t.Vm6),t.k0s()),2&ft){const kt=t.XpG();t.R7$(),t.Dyx(kt.nzActions)}}let Bt=(()=>{class ft{constructor(){this.nzHoverable=!0}static#e=this.\u0275fac=function(It){return new(It||ft)};static#t=this.\u0275dir=t.FsC({type:ft,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(It,rn){2&It&&t.AVh("ant-card-hoverable",rn.nzHoverable)},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",t.L39]},exportAs:["nzCardGrid"],standalone:!0,features:[t.GFd]})}return ft})(),Tt=(()=>{class ft{constructor(){this.nzTitle=null,this.nzDescription=null,this.nzAvatar=null}static#e=this.\u0275fac=function(It){return new(It||ft)};static#t=this.\u0275cmp=t.VBU({type:ft,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(It,rn){1&It&&t.DNE(0,w,2,1,"div",0)(1,oe,3,2,"div",1),2&It&&(t.vxM(rn.nzAvatar?0:-1),t.R7$(),t.vxM(rn.nzTitle||rn.nzDescription?1:-1))},dependencies:[r.T3,m.C,m.m],encapsulation:2,changeDetection:0})}return ft})(),Vt=(()=>{class ft{static#e=this.\u0275fac=function(It){return new(It||ft)};static#t=this.\u0275cmp=t.VBU({type:ft,selectors:[["nz-card-tab"]],viewQuery:function(It,rn){if(1&It&&t.GBs(t.C4Q,7),2&It){let en;t.mGM(en=t.lsd())&&(rn.template=en.first)}},exportAs:["nzCardTab"],standalone:!0,features:[t.aNF],ngContentSelectors:ee,decls:1,vars:0,template:function(It,rn){1&It&&(t.NAR(),t.DNE(0,Ee,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return ft})(),xt=(()=>{class ft{constructor(kt,It,rn){this.nzConfigService=kt,this.cdr=It,this.directionality=rn,this._nzModuleName="card",this.nzBordered=!0,this.nzBorderless=!1,this.nzLoading=!1,this.nzHoverable=!1,this.nzBodyStyle=null,this.nzActions=[],this.nzType=null,this.nzSize="default",this.dir="ltr",this.destroy$=new z.B,this.nzConfigService.getConfigChangeEventForComponent("card").pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){this.directionality.change?.pipe((0,j.Q)(this.destroy$)).subscribe(kt=>{this.dir=kt,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(It){return new(It||ft)(t.rXU(R.yx),t.rXU(t.gRc),t.rXU(k.dS,8))};static#t=this.\u0275cmp=t.VBU({type:ft,selectors:[["nz-card"]],contentQueries:function(It,rn,en){if(1&It&&(t.wni(en,Vt,5),t.wni(en,Bt,4)),2&It){let Xt;t.mGM(Xt=t.lsd())&&(rn.listOfNzCardTabComponent=Xt.first),t.mGM(Xt=t.lsd())&&(rn.listOfNzCardGridDirective=Xt)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(It,rn){2&It&&t.AVh("ant-card-loading",rn.nzLoading)("ant-card-bordered",!1===rn.nzBorderless&&rn.nzBordered)("ant-card-hoverable",rn.nzHoverable)("ant-card-small","small"===rn.nzSize)("ant-card-contain-grid",rn.listOfNzCardGridDirective&&rn.listOfNzCardGridDirective.length)("ant-card-type-inner","inner"===rn.nzType)("ant-card-contain-tabs",!!rn.listOfNzCardTabComponent)("ant-card-rtl","rtl"===rn.dir)},inputs:{nzBordered:[2,"nzBordered","nzBordered",t.L39],nzBorderless:[2,"nzBorderless","nzBorderless",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzHoverable:[2,"nzHoverable","nzHoverable",t.L39],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],standalone:!0,features:[t.GFd,t.aNF],ngContentSelectors:ee,decls:6,vars:5,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body",3,"ngStyle"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(It,rn){1&It&&(t.NAR(),t.DNE(0,te,5,3,"div",0)(1,T,2,1,"div",1),t.j41(2,"div",2),t.DNE(3,D,1,4,"nz-skeleton",3)(4,A,1,0),t.k0s(),t.DNE(5,je,3,0,"ul",4)),2&It&&(t.vxM(rn.nzTitle||rn.nzExtra||rn.listOfNzCardTabComponent?0:-1),t.R7$(),t.vxM(rn.nzCover?1:-1),t.R7$(),t.Y8G("ngStyle",rn.nzBodyStyle),t.R7$(),t.vxM(rn.nzLoading?3:4),t.R7$(2),t.vxM(rn.nzActions.length?5:-1))},dependencies:[m.C,m.m,r.T3,r.B3,$.i3,$.Bi],encapsulation:2,changeDetection:0})}return(0,e.Cg)([(0,R.H4)()],ft.prototype,"nzBordered",void 0),(0,e.Cg)([(0,R.H4)()],ft.prototype,"nzBorderless",void 0),(0,e.Cg)([(0,R.H4)()],ft.prototype,"nzHoverable",void 0),(0,e.Cg)([(0,R.H4)()],ft.prototype,"nzSize",void 0),ft})(),Lt=(()=>{class ft{static#e=this.\u0275fac=function(It){return new(It||ft)};static#t=this.\u0275mod=t.$C({type:ft});static#n=this.\u0275inj=t.G2t({imports:[xt,Tt,k.jI]})}return ft})()},5979:($t,De,a)=>{a.d(De,{xH:()=>j});var t=a(3953),r=a(4085),m=a(1985),e=a(1413);let z=(()=>{class k{create(w){return typeof ResizeObserver>"u"?null:new ResizeObserver(w)}static#e=this.\u0275fac=function(P){return new(P||k)};static#t=this.\u0275prov=t.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),j=(()=>{class k{constructor(w){this.nzResizeObserverFactory=w,this.observedElements=new Map}ngOnDestroy(){this.observedElements.forEach((w,P)=>this.cleanupObserver(P))}observe(w){const P=(0,r.i8)(w);return new m.c(Q=>{const x=this.observeElement(P).subscribe(Q);return()=>{x.unsubscribe(),this.unobserveElement(P)}})}observeElement(w){if(this.observedElements.has(w))this.observedElements.get(w).count++;else{const P=new e.B,Q=this.nzResizeObserverFactory.create(N=>P.next(N));Q&&Q.observe(w),this.observedElements.set(w,{observer:Q,stream:P,count:1})}return this.observedElements.get(w).stream}unobserveElement(w){this.observedElements.has(w)&&(this.observedElements.get(w).count--,this.observedElements.get(w).count||this.cleanupObserver(w))}cleanupObserver(w){if(this.observedElements.has(w)){const{observer:P,stream:Q}=this.observedElements.get(w);P&&P.disconnect(),Q.complete(),this.observedElements.delete(w)}}static#e=this.\u0275fac=function(P){return new(P||k)(t.KVO(z))};static#t=this.\u0275prov=t.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},2986:($t,De,a)=>{a.d(De,{$g:()=>x,IJ:()=>ee,Ov:()=>oe,wG:()=>N});var t=a(3953),r=a(9417),m=a(1413),e=a(3726),z=a(6977),j=a(851),R=a(8203),$=a(7891);const k=["*"],I=["inputElement"],w=["nz-checkbox",""],P=(Ee,Ie)=>Ie.value;function Q(Ee,Ie){if(1&Ee){const ce=t.RV6();t.j41(0,"label",1),t.bIt("nzCheckedChange",function(ve){const pe=t.eBV(ce).$implicit,U=t.XpG();return t.Njj(U.onCheckedChange(pe,ve))}),t.j41(1,"span"),t.EFF(2),t.k0s()()}if(2&Ee){const ce=Ie.$implicit,Pe=t.XpG();t.Y8G("nzDisabled",ce.disabled||Pe.nzDisabled)("nzChecked",ce.checked),t.R7$(2),t.JRh(ce.label)}}let N=(()=>{class Ee{constructor(){this.nzOnChange=new t.bkB,this.checkboxList=[]}addCheckbox(ce){this.checkboxList.push(ce)}removeCheckbox(ce){this.checkboxList.splice(this.checkboxList.indexOf(ce),1)}onChange(){const ce=this.checkboxList.filter(Pe=>Pe.nzChecked).map(Pe=>Pe.nzValue);this.nzOnChange.emit(ce)}static#e=this.\u0275fac=function(Pe){return new(Pe||Ee)};static#t=this.\u0275cmp=t.VBU({type:Ee,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],standalone:!0,features:[t.aNF],ngContentSelectors:k,decls:1,vars:0,template:function(Pe,ve){1&Pe&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return Ee})(),x=(()=>{class Ee{innerCheckedChange(ce){this.nzDisabled||(this.nzChecked=ce,this.onChange(this.nzChecked),this.nzCheckedChange.emit(this.nzChecked),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.onChange())}writeValue(ce){this.nzChecked=ce,this.cdr.markForCheck()}registerOnChange(ce){this.onChange=ce}registerOnTouched(ce){this.onTouched=ce}setDisabledState(ce){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||ce,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(ce,Pe,ve,pe,U,M,te){this.ngZone=ce,this.elementRef=Pe,this.nzCheckboxWrapperComponent=ve,this.cdr=pe,this.focusMonitor=U,this.directionality=M,this.nzFormStatusService=te,this.dir="ltr",this.destroy$=new m.B,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzCheckedChange=new t.bkB,this.nzValue=null,this.nzAutoFocus=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzChecked=!1,this.nzId=null}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,z.Q)(this.destroy$)).subscribe(ce=>{ce||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.addCheckbox(this),this.directionality.change.pipe((0,z.Q)(this.destroy$)).subscribe(ce=>{this.dir=ce,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>{(0,e.R)(this.elementRef.nativeElement,"click").pipe((0,z.Q)(this.destroy$)).subscribe(ce=>{ce.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),(0,e.R)(this.inputElement.nativeElement,"click").pipe((0,z.Q)(this.destroy$)).subscribe(ce=>ce.stopPropagation())})}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent&&this.nzCheckboxWrapperComponent.removeCheckbox(this),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Pe){return new(Pe||Ee)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(N,8),t.rXU(t.gRc),t.rXU(j.FN),t.rXU(R.dS,8),t.rXU($.is,8))};static#t=this.\u0275cmp=t.VBU({type:Ee,selectors:[["","nz-checkbox",""]],viewQuery:function(Pe,ve){if(1&Pe&&t.GBs(I,7),2&Pe){let pe;t.mGM(pe=t.lsd())&&(ve.inputElement=pe.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:6,hostBindings:function(Pe,ve){2&Pe&&t.AVh("ant-checkbox-wrapper-in-form-item",!!ve.nzFormStatusService)("ant-checkbox-wrapper-checked",ve.nzChecked)("ant-checkbox-rtl","rtl"===ve.dir)},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",t.L39],nzChecked:[2,"nzChecked","nzChecked",t.L39],nzId:"nzId"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>Ee),multi:!0}]),t.GFd,t.aNF],attrs:w,ngContentSelectors:k,decls:6,vars:11,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(Pe,ve){if(1&Pe){const pe=t.RV6();t.NAR(),t.j41(0,"span",1)(1,"input",2,0),t.bIt("ngModelChange",function(M){return t.eBV(pe),t.Njj(ve.innerCheckedChange(M))}),t.k0s(),t.nrm(3,"span",3),t.k0s(),t.j41(4,"span"),t.SdG(5),t.k0s()}2&Pe&&(t.AVh("ant-checkbox-checked",ve.nzChecked&&!ve.nzIndeterminate)("ant-checkbox-disabled",ve.nzDisabled)("ant-checkbox-indeterminate",ve.nzIndeterminate),t.R7$(),t.Y8G("checked",ve.nzChecked)("ngModel",ve.nzChecked)("disabled",ve.nzDisabled),t.BMQ("autofocus",ve.nzAutoFocus?"autofocus":null)("id",ve.nzId))},dependencies:[r.YN,r.Zm,r.BC,r.vS],encapsulation:2,changeDetection:0})}return Ee})(),oe=(()=>{class Ee{onCheckedChange(ce,Pe){ce.checked=Pe,this.onChange(this.options)}constructor(ce,Pe,ve,pe){this.elementRef=ce,this.focusMonitor=Pe,this.cdr=ve,this.directionality=pe,this.onChange=()=>{},this.onTouched=()=>{},this.options=[],this.nzDisabled=!1,this.dir="ltr",this.destroy$=new m.B,this.isNzDisableFirstChange=!0}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe((0,z.Q)(this.destroy$)).subscribe(ce=>{ce||Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,z.Q)(this.destroy$)).subscribe(ce=>{this.dir=ce,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}writeValue(ce){this.options=ce,this.cdr.markForCheck()}registerOnChange(ce){this.onChange=ce}registerOnTouched(ce){this.onTouched=ce}setDisabledState(ce){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||ce,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}static#e=this.\u0275fac=function(Pe){return new(Pe||Ee)(t.rXU(t.aKT),t.rXU(j.FN),t.rXU(t.gRc),t.rXU(R.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Ee,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(Pe,ve){2&Pe&&t.AVh("ant-checkbox-group-rtl","rtl"===ve.dir)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",t.L39]},exportAs:["nzCheckboxGroup"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>Ee),multi:!0}]),t.GFd,t.aNF],decls:2,vars:0,consts:[["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzDisabled","nzChecked"],["nz-checkbox","",1,"ant-checkbox-group-item",3,"nzCheckedChange","nzDisabled","nzChecked"]],template:function(Pe,ve){1&Pe&&t.Z7z(0,Q,3,3,"label",0,P),2&Pe&&t.Dyx(ve.options)},dependencies:[x],encapsulation:2})}return Ee})(),ee=(()=>{class Ee{static#e=this.\u0275fac=function(Pe){return new(Pe||Ee)};static#t=this.\u0275mod=t.$C({type:Ee});static#n=this.\u0275inj=t.G2t({imports:[x,oe]})}return Ee})()},713:($t,De,a)=>{a.d(De,{GE:()=>e,LD:()=>R,Sn:()=>N,U1:()=>Q,W4:()=>$,bS:()=>Ee,eF:()=>x,uX:()=>ee});var t=a(9969);let r=(()=>{class Ie{static#e=this.SLOW="0.3s";static#t=this.BASE="0.2s";static#n=this.FAST="0.1s"}return Ie})(),m=(()=>{class Ie{static#e=this.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)";static#t=this.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)";static#n=this.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)";static#i=this.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)";static#o=this.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)";static#r=this.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)";static#s=this.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)";static#a=this.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)";static#c=this.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)";static#l=this.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)";static#u=this.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)";static#d=this.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)";static#h=this.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)";static#p=this.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)"}return Ie})();const e=(0,t.hZ)("collapseMotion",[(0,t.wk)("expanded",(0,t.iF)({height:"*"})),(0,t.wk)("collapsed",(0,t.iF)({height:0,overflow:"hidden"})),(0,t.wk)("hidden",(0,t.iF)({height:0,overflow:"hidden",borderTopWidth:"0"})),(0,t.kY)("expanded => collapsed",(0,t.i0)(`150ms ${m.EASE_IN_OUT}`)),(0,t.kY)("expanded => hidden",(0,t.i0)(`150ms ${m.EASE_IN_OUT}`)),(0,t.kY)("collapsed => expanded",(0,t.i0)(`150ms ${m.EASE_IN_OUT}`)),(0,t.kY)("hidden => expanded",(0,t.i0)(`150ms ${m.EASE_IN_OUT}`))]),R=((0,t.hZ)("treeCollapseMotion",[(0,t.kY)("* => *",[(0,t.P)("nz-tree-node:leave,nz-tree-builtin-node:leave",[(0,t.iF)({overflow:"hidden"}),(0,t.yc)(0,[(0,t.i0)(`150ms ${m.EASE_IN_OUT}`,(0,t.iF)({height:0,opacity:0,"padding-bottom":0}))])],{optional:!0}),(0,t.P)("nz-tree-node:enter,nz-tree-builtin-node:enter",[(0,t.iF)({overflow:"hidden",height:0,opacity:0,"padding-bottom":0}),(0,t.yc)(0,[(0,t.i0)(`150ms ${m.EASE_IN_OUT}`,(0,t.iF)({overflow:"hidden",height:"*",opacity:"*","padding-bottom":"*"}))])],{optional:!0})])]),(0,t.hZ)("drawerMaskMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0}),(0,t.i0)(`${r.SLOW}`,(0,t.iF)({opacity:1}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1}),(0,t.i0)(`${r.SLOW}`,(0,t.iF)({opacity:0}))])]),(0,t.hZ)("fadeMotion",[(0,t.kY)("* => enter",[(0,t.iF)({opacity:0}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({opacity:1}))]),(0,t.kY)("* => leave, :leave",[(0,t.iF)({opacity:1}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({opacity:0}))])])),$=(0,t.hZ)("helpMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0,transform:"translateY(-5px)"}),(0,t.i0)(`${r.SLOW} ${m.EASE_IN_OUT}`,(0,t.iF)({opacity:1,transform:"translateY(0)"}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"translateY(0)"}),(0,t.i0)(`${r.SLOW} ${m.EASE_IN_OUT}`,(0,t.iF)({opacity:0,transform:"translateY(-5px)"}))])]),w=((0,t.hZ)("moveUpMotion",[(0,t.kY)("* => enter",[(0,t.iF)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),(0,t.kY)("* => leave",[(0,t.iF)({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),(0,t.i0)(`${r.BASE}`,(0,t.iF)({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),(0,t.hZ)("notificationMotion",[(0,t.wk)("enterRight",(0,t.iF)({opacity:1,transform:"translateX(0)"})),(0,t.kY)("* => enterRight",[(0,t.iF)({opacity:0,transform:"translateX(5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterLeft",(0,t.iF)({opacity:1,transform:"translateX(0)"})),(0,t.kY)("* => enterLeft",[(0,t.iF)({opacity:0,transform:"translateX(-5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterTop",(0,t.iF)({opacity:1,transform:"translateY(0)"})),(0,t.kY)("* => enterTop",[(0,t.iF)({opacity:0,transform:"translateY(-5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("enterBottom",(0,t.iF)({opacity:1,transform:"translateY(0)"})),(0,t.kY)("* => enterBottom",[(0,t.iF)({opacity:0,transform:"translateY(5%)"}),(0,t.i0)("100ms linear")]),(0,t.wk)("leave",(0,t.iF)({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),(0,t.kY)("* => leave",[(0,t.iF)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.i0)("100ms linear")])]),`${r.BASE} ${m.EASE_OUT_QUINT}`),P=`${r.BASE} ${m.EASE_IN_QUINT}`,Q=(0,t.hZ)("slideMotion",[(0,t.wk)("void",(0,t.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,t.wk)("enter",(0,t.iF)({opacity:1,transform:"scaleY(1)"})),(0,t.kY)("void => *",[(0,t.i0)(w)]),(0,t.kY)("* => void",[(0,t.i0)(P)])]),N=(0,t.hZ)("slideAlertMotion",[(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),(0,t.i0)(`${r.SLOW} ${m.EASE_IN_OUT_CIRC}`,(0,t.iF)({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),x=(0,t.hZ)("tabSwitchMotion",[(0,t.wk)("leave",(0,t.iF)({display:"none"})),(0,t.kY)("* => enter",[(0,t.iF)({display:"block",opacity:0}),(0,t.i0)(r.SLOW)]),(0,t.kY)("* => leave, :leave",[(0,t.iF)({position:"absolute",top:0,left:0,width:"100%"}),(0,t.i0)(r.SLOW,(0,t.iF)({opacity:0})),(0,t.iF)({display:"none"})])]),ee=((0,t.hZ)("thumbMotion",[(0,t.wk)("from",(0,t.iF)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:0,width:0}}),(0,t.wk)("to",(0,t.iF)({transform:"translateX({{ transform }}px)",width:"{{ width }}px"}),{params:{transform:100,width:0}}),(0,t.kY)("from => to",(0,t.i0)(`300ms ${m.EASE_IN_OUT}`))]),(0,t.hZ)("zoomBigMotion",[(0,t.kY)("void => active",[(0,t.iF)({opacity:0,transform:"scale(0.8)"}),(0,t.i0)(`${r.BASE} ${m.EASE_OUT_CIRC}`,(0,t.iF)({opacity:1,transform:"scale(1)"}))]),(0,t.kY)("active => void",[(0,t.iF)({opacity:1,transform:"scale(1)"}),(0,t.i0)(`${r.BASE} ${m.EASE_IN_OUT_CIRC}`,(0,t.iF)({opacity:0,transform:"scale(0.8)"}))])])),Ee=(0,t.hZ)("zoomBadgeMotion",[(0,t.kY)(":enter",[(0,t.iF)({opacity:0,transform:"scale(0) translate(50%, -50%)"}),(0,t.i0)(`${r.SLOW} ${m.EASE_OUT_BACK}`,(0,t.iF)({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),(0,t.kY)(":leave",[(0,t.iF)({opacity:1,transform:"scale(1) translate(50%, -50%)"}),(0,t.i0)(`${r.SLOW} ${m.EASE_IN_BACK}`,(0,t.iF)({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])])},6006:($t,De,a)=>{a.d(De,{PA:()=>m,cM:()=>Pe,nP:()=>z,uP:()=>j,un:()=>e});var t=a(4709),r=a(4215);const m=["success","processing","error","default","warning"],e=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"];function z(ve){return-1!==e.indexOf(ve)}function j(ve){return-1!==m.indexOf(ve)}const R=2,$=.16,k=.05,I=.05,w=.15,P=5,Q=4,N=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function x({r:ve,g:pe,b:U}){const M=(0,t.wE)(ve,pe,U);return{h:360*M.h,s:M.s,v:M.v}}function oe({r:ve,g:pe,b:U}){return`#${(0,t.Ob)(ve,pe,U,!1)}`}function Ee(ve,pe,U){let M;return M=Math.round(ve.h)>=60&&Math.round(ve.h)<=240?U?Math.round(ve.h)-R*pe:Math.round(ve.h)+R*pe:U?Math.round(ve.h)+R*pe:Math.round(ve.h)-R*pe,M<0?M+=360:M>=360&&(M-=360),M}function Ie(ve,pe,U){if(0===ve.h&&0===ve.s)return ve.s;let M;return M=U?ve.s-$*pe:pe===Q?ve.s+$:ve.s+k*pe,M>1&&(M=1),U&&pe===P&&M>.1&&(M=.1),M<.06&&(M=.06),Number(M.toFixed(2))}function ce(ve,pe,U){let M;return M=U?ve.v+I*pe:ve.v-w*pe,M>1&&(M=1),Number(M.toFixed(2))}function Pe(ve,pe={}){const U=[],M=(0,r.RO)(ve);for(let te=P;te>0;te-=1){const ge=x(M),T=oe((0,r.RO)({h:Ee(ge,te,!0),s:Ie(ge,te,!0),v:ce(ge,te,!0)}));U.push(T)}U.push(oe(M));for(let te=1;te<=Q;te+=1){const ge=x(M),T=oe((0,r.RO)({h:Ee(ge,te),s:Ie(ge,te),v:ce(ge,te)}));U.push(T)}return"dark"===pe.theme?N.map(({index:te,opacity:ge})=>oe(function ee(ve,pe,U){const M=U/100;return{r:(pe.r-ve.r)*M+ve.r,g:(pe.g-ve.g)*M+ve.g,b:(pe.b-ve.b)*M+ve.b}}((0,r.RO)(pe.backgroundColor||"#141414"),(0,r.RO)(U[te]),100*ge))):U}},6042:($t,De,a)=>{a.d(De,{yx:()=>Pe,H4:()=>ve});var t=a(3953),r=a(1413),m=a(5964),e=a(3703),z=a(4709),j=a(6681),R=a(4215),$=a(9785),k=function(){function pe(U,M){var te;if(void 0===U&&(U=""),void 0===M&&(M={}),U instanceof pe)return U;"number"==typeof U&&(U=(0,z.oS)(U)),this.originalInput=U;var ge=(0,R.RO)(U);this.originalInput=U,this.r=ge.r,this.g=ge.g,this.b=ge.b,this.a=ge.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(te=M.format)&&void 0!==te?te:ge.format,this.gradientType=M.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=ge.ok}return pe.prototype.isDark=function(){return this.getBrightness()<128},pe.prototype.isLight=function(){return!this.isDark()},pe.prototype.getBrightness=function(){var U=this.toRgb();return(299*U.r+587*U.g+114*U.b)/1e3},pe.prototype.getLuminance=function(){var U=this.toRgb(),T=U.r/255,D=U.g/255,A=U.b/255;return.2126*(T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4))+.7152*(D<=.03928?D/12.92:Math.pow((D+.055)/1.055,2.4))+.0722*(A<=.03928?A/12.92:Math.pow((A+.055)/1.055,2.4))},pe.prototype.getAlpha=function(){return this.a},pe.prototype.setAlpha=function(U){return this.a=(0,$.TV)(U),this.roundA=Math.round(100*this.a)/100,this},pe.prototype.isMonochrome=function(){return 0===this.toHsl().s},pe.prototype.toHsv=function(){var U=(0,z.wE)(this.r,this.g,this.b);return{h:360*U.h,s:U.s,v:U.v,a:this.a}},pe.prototype.toHsvString=function(){var U=(0,z.wE)(this.r,this.g,this.b),M=Math.round(360*U.h),te=Math.round(100*U.s),ge=Math.round(100*U.v);return 1===this.a?"hsv(".concat(M,", ").concat(te,"%, ").concat(ge,"%)"):"hsva(".concat(M,", ").concat(te,"%, ").concat(ge,"%, ").concat(this.roundA,")")},pe.prototype.toHsl=function(){var U=(0,z.K6)(this.r,this.g,this.b);return{h:360*U.h,s:U.s,l:U.l,a:this.a}},pe.prototype.toHslString=function(){var U=(0,z.K6)(this.r,this.g,this.b),M=Math.round(360*U.h),te=Math.round(100*U.s),ge=Math.round(100*U.l);return 1===this.a?"hsl(".concat(M,", ").concat(te,"%, ").concat(ge,"%)"):"hsla(".concat(M,", ").concat(te,"%, ").concat(ge,"%, ").concat(this.roundA,")")},pe.prototype.toHex=function(U){return void 0===U&&(U=!1),(0,z.Ob)(this.r,this.g,this.b,U)},pe.prototype.toHexString=function(U){return void 0===U&&(U=!1),"#"+this.toHex(U)},pe.prototype.toHex8=function(U){return void 0===U&&(U=!1),(0,z.H)(this.r,this.g,this.b,this.a,U)},pe.prototype.toHex8String=function(U){return void 0===U&&(U=!1),"#"+this.toHex8(U)},pe.prototype.toHexShortString=function(U){return void 0===U&&(U=!1),1===this.a?this.toHexString(U):this.toHex8String(U)},pe.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},pe.prototype.toRgbString=function(){var U=Math.round(this.r),M=Math.round(this.g),te=Math.round(this.b);return 1===this.a?"rgb(".concat(U,", ").concat(M,", ").concat(te,")"):"rgba(".concat(U,", ").concat(M,", ").concat(te,", ").concat(this.roundA,")")},pe.prototype.toPercentageRgb=function(){var U=function(M){return"".concat(Math.round(100*(0,$.Cg)(M,255)),"%")};return{r:U(this.r),g:U(this.g),b:U(this.b),a:this.a}},pe.prototype.toPercentageRgbString=function(){var U=function(M){return Math.round(100*(0,$.Cg)(M,255))};return 1===this.a?"rgb(".concat(U(this.r),"%, ").concat(U(this.g),"%, ").concat(U(this.b),"%)"):"rgba(".concat(U(this.r),"%, ").concat(U(this.g),"%, ").concat(U(this.b),"%, ").concat(this.roundA,")")},pe.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var U="#"+(0,z.Ob)(this.r,this.g,this.b,!1),M=0,te=Object.entries(j.D);M=0&&(U.startsWith("hex")||"name"===U)?"name"===U&&0===this.a?this.toName():this.toRgbString():("rgb"===U&&(te=this.toRgbString()),"prgb"===U&&(te=this.toPercentageRgbString()),("hex"===U||"hex6"===U)&&(te=this.toHexString()),"hex3"===U&&(te=this.toHexString(!0)),"hex4"===U&&(te=this.toHex8String(!0)),"hex8"===U&&(te=this.toHex8String()),"name"===U&&(te=this.toName()),"hsl"===U&&(te=this.toHslString()),"hsv"===U&&(te=this.toHsvString()),te||this.toHexString())},pe.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},pe.prototype.clone=function(){return new pe(this.toString())},pe.prototype.lighten=function(U){void 0===U&&(U=10);var M=this.toHsl();return M.l+=U/100,M.l=(0,$.J$)(M.l),new pe(M)},pe.prototype.brighten=function(U){void 0===U&&(U=10);var M=this.toRgb();return M.r=Math.max(0,Math.min(255,M.r-Math.round(-U/100*255))),M.g=Math.max(0,Math.min(255,M.g-Math.round(-U/100*255))),M.b=Math.max(0,Math.min(255,M.b-Math.round(-U/100*255))),new pe(M)},pe.prototype.darken=function(U){void 0===U&&(U=10);var M=this.toHsl();return M.l-=U/100,M.l=(0,$.J$)(M.l),new pe(M)},pe.prototype.tint=function(U){return void 0===U&&(U=10),this.mix("white",U)},pe.prototype.shade=function(U){return void 0===U&&(U=10),this.mix("black",U)},pe.prototype.desaturate=function(U){void 0===U&&(U=10);var M=this.toHsl();return M.s-=U/100,M.s=(0,$.J$)(M.s),new pe(M)},pe.prototype.saturate=function(U){void 0===U&&(U=10);var M=this.toHsl();return M.s+=U/100,M.s=(0,$.J$)(M.s),new pe(M)},pe.prototype.greyscale=function(){return this.desaturate(100)},pe.prototype.spin=function(U){var M=this.toHsl(),te=(M.h+U)%360;return M.h=te<0?360+te:te,new pe(M)},pe.prototype.mix=function(U,M){void 0===M&&(M=50);var te=this.toRgb(),ge=new pe(U).toRgb(),T=M/100;return new pe({r:(ge.r-te.r)*T+te.r,g:(ge.g-te.g)*T+te.g,b:(ge.b-te.b)*T+te.b,a:(ge.a-te.a)*T+te.a})},pe.prototype.analogous=function(U,M){void 0===U&&(U=6),void 0===M&&(M=30);var te=this.toHsl(),ge=360/M,T=[this];for(te.h=(te.h-(ge*U>>1)+720)%360;--U;)te.h=(te.h+ge)%360,T.push(new pe(te));return T},pe.prototype.complement=function(){var U=this.toHsl();return U.h=(U.h+180)%360,new pe(U)},pe.prototype.monochromatic=function(U){void 0===U&&(U=6);for(var M=this.toHsv(),te=M.h,ge=M.s,T=M.v,D=[],A=1/U;U--;)D.push(new pe({h:te,s:ge,v:T})),T=(T+A)%1;return D},pe.prototype.splitcomplement=function(){var U=this.toHsl(),M=U.h;return[this,new pe({h:(M+72)%360,s:U.s,l:U.l}),new pe({h:(M+216)%360,s:U.s,l:U.l})]},pe.prototype.onBackground=function(U){var M=this.toRgb(),te=new pe(U).toRgb(),ge=M.a+te.a*(1-M.a);return new pe({r:(M.r*M.a+te.r*te.a*(1-M.a))/ge,g:(M.g*M.a+te.g*te.a*(1-M.a))/ge,b:(M.b*M.a+te.b*te.a*(1-M.a))/ge,a:ge})},pe.prototype.triad=function(){return this.polyad(3)},pe.prototype.tetrad=function(){return this.polyad(4)},pe.prototype.polyad=function(U){for(var M=this.toHsl(),te=M.h,ge=[this],T=360/U,D=1;D{let X=D.clone();return X=A?.(X)||X,X.toRgbString()},ge=(D,A)=>{const X=new k(D),se=(0,w.cM)(X.toRgbString());M[`${A}-color`]=te(X),M[`${A}-color-disabled`]=se[1],M[`${A}-color-hover`]=se[4],M[`${A}-color-active`]=se[7],M[`${A}-color-outline`]=X.clone().setAlpha(.2).toRgbString(),M[`${A}-color-deprecated-bg`]=se[1],M[`${A}-color-deprecated-border`]=se[3]};if(U.primaryColor){ge(U.primaryColor,"primary");const D=new k(U.primaryColor),A=(0,w.cM)(D.toRgbString());A.forEach((se,je)=>{M[`primary-${je+1}`]=se}),M["primary-color-deprecated-l-35"]=te(D,se=>se.lighten(35)),M["primary-color-deprecated-l-20"]=te(D,se=>se.lighten(20)),M["primary-color-deprecated-t-20"]=te(D,se=>se.tint(20)),M["primary-color-deprecated-t-50"]=te(D,se=>se.tint(50)),M["primary-color-deprecated-f-12"]=te(D,se=>se.setAlpha(.12*se.getAlpha()));const X=new k(A[0]);M["primary-color-active-deprecated-f-30"]=te(X,se=>se.setAlpha(.3*se.getAlpha())),M["primary-color-active-deprecated-d-02"]=te(X,se=>se.darken(2))}return U.successColor&&ge(U.successColor,"success"),U.warningColor&&ge(U.warningColor,"warning"),U.errorColor&&ge(U.errorColor,"error"),U.infoColor&&ge(U.infoColor,"info"),`\n :root {\n ${Object.keys(M).map(D=>`--${pe}-${D}: ${M[D]};`).join("\n")}\n }\n `.trim()}(pe,U);(0,Q.OC)()?(0,Q.BD)(te,`${oe}-dynamic-theme`,{cspNonce:M}):(0,P.R8)("NzConfigService: SSR do not support dynamic theme with css variables.")}const Ie=function(pe){return void 0!==pe};let Pe=(()=>{class pe{constructor(M,te){this.configUpdated$=new r.B,this.config=M||{},this.cspNonce=te,this.config.theme&&Ee(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme,te)}getConfig(){return this.config}getConfigForComponent(M){return this.config[M]}getConfigChangeEventForComponent(M){return this.configUpdated$.pipe((0,m.p)(te=>te===M),(0,e.u)(void 0))}set(M,te){this.config[M]={...this.config[M],...te},"theme"===M&&this.config.theme&&Ee(this.getConfig().prefixCls?.prefixCls||"ant",this.config.theme,this.cspNonce),this.configUpdated$.next(M)}static#e=this.\u0275fac=function(te){return new(te||pe)(t.KVO(N,8),t.KVO(t.BIS,8))};static#t=this.\u0275prov=t.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})();function ve(){return function(U,M,te){const ge=`$$__zorroConfigDecorator__${M}`;return Object.defineProperty(U,ge,{configurable:!0,writable:!0,enumerable:!1}),{get(){const T=te?.get?te.get.bind(this)():this[ge],D=(this.propertyAssignCounter?.[M]||0)>1,A=this.nzConfigService.getConfigForComponent(this._nzModuleName)?.[M];return D&&Ie(T)?T:Ie(A)?A:T},set(T){this.propertyAssignCounter=this.propertyAssignCounter||{},this.propertyAssignCounter[M]=(this.propertyAssignCounter[M]||0)+1,te?.set?te.set.bind(this)(T):this[ge]=T},configurable:!0,enumerable:!0}}}},7891:($t,De,a)=>{a.d(De,{J1:()=>w,Xd:()=>I,is:()=>R,n1:()=>$});var t=a(3953),r=a(2771),m=a(4412),e=a(177),z=a(5103);function j(P,Q){if(1&P&&t.nrm(0,"span",1),2&P){const N=t.XpG();t.Y8G("nzType",N.iconType)}}let R=(()=>{class P{constructor(){this.formStatusChanges=new r.m(1)}static#e=this.\u0275fac=function(x){return new(x||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac})}return P})(),$=(()=>{class P{constructor(){this.noFormStatus=new m.t(!1)}static#e=this.\u0275fac=function(x){return new(x||P)};static#t=this.\u0275prov=t.jDH({token:P,factory:P.\u0275fac})}return P})();const k={error:"close-circle-fill",validating:"loading",success:"check-circle-fill",warning:"exclamation-circle-fill"};let I=(()=>{class P{constructor(N){this.cdr=N,this.status="",this.iconType=null}ngOnChanges(N){this.updateIcon()}updateIcon(){this.iconType=this.status?k[this.status]:null,this.cdr.markForCheck()}static#e=this.\u0275fac=function(x){return new(x||P)(t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:P,selectors:[["nz-form-item-feedback-icon"]],hostAttrs:[1,"ant-form-item-feedback-icon"],hostVars:8,hostBindings:function(x,oe){2&x&&t.AVh("ant-form-item-feedback-icon-error","error"===oe.status)("ant-form-item-feedback-icon-warning","warning"===oe.status)("ant-form-item-feedback-icon-success","success"===oe.status)("ant-form-item-feedback-icon-validating","validating"===oe.status)},inputs:{status:"status"},exportAs:["nzFormFeedbackIcon"],features:[t.OA$],decls:1,vars:1,consts:[["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(x,oe){1&x&&t.DNE(0,j,1,1,"span",0),2&x&&t.Y8G("ngIf",oe.iconType)},dependencies:[e.bT,z.Dn],encapsulation:2,changeDetection:0})}return P})(),w=(()=>{class P{static#e=this.\u0275fac=function(x){return new(x||P)};static#t=this.\u0275mod=t.$C({type:P});static#n=this.\u0275inj=t.G2t({imports:[e.MD,z.Y3]})}return P})()},3451:($t,De,a)=>{a.d(De,{H3:()=>e,R8:()=>R});var t=a(3953);const m={},e="[NG-ZORRO]:";const R=(...I)=>function j(I,...w){(0,t.naY)()&&function z(...I){const w=I.reduce((P,Q)=>P+Q.toString(),"");return!m[w]&&(m[w]=!0,!0)}(...w)&&I(...w)}((...w)=>console.warn(e,...w),...I)},6841:($t,De,a)=>{a.d(De,{z:()=>r});var t=a(3953);let r=(()=>{class e{constructor(){this.animationType=(0,t.WQX)(t.bc$,{optional:!0}),this.nzNoAnimation=!1}static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","nzNoAnimation",""]],hostVars:2,hostBindings:function(R,$){2&R&&t.AVh("nz-animate-disabled",$.nzNoAnimation||"NoopAnimations"===$.animationType)},inputs:{nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",t.L39]},exportAs:["nzNoAnimation"],standalone:!0,features:[t.GFd]})}return e})()},7806:($t,De,a)=>{a.d(De,{C:()=>e,m:()=>r});var t=a(3953);let r=(()=>{class z{static ngTemplateContextGuard(R,$){return!0}recreateView(){this.viewContainer.clear();const R=this.nzStringTemplateOutlet instanceof t.C4Q;this.embeddedViewRef=this.viewContainer.createEmbeddedView(R?this.nzStringTemplateOutlet:this.templateRef,R?this.nzStringTemplateOutletContext:this.context)}updateContext(){const $=this.nzStringTemplateOutlet instanceof t.C4Q?this.nzStringTemplateOutletContext:this.context,k=this.embeddedViewRef.context;if($)for(const I of Object.keys($))k[I]=$[I]}constructor(R,$){this.viewContainer=R,this.templateRef=$,this.embeddedViewRef=null,this.context=new m,this.nzStringTemplateOutletContext=null,this.nzStringTemplateOutlet=null}ngOnChanges(R){const{nzStringTemplateOutletContext:$,nzStringTemplateOutlet:k}=R;k&&(this.context.$implicit=k.currentValue),(()=>{let P=!1;return k&&(P=!!k.firstChange||(k.previousValue instanceof t.C4Q||k.currentValue instanceof t.C4Q)),$&&(x=>{const oe=Object.keys(x.previousValue||{}),ee=Object.keys(x.currentValue||{});if(oe.length===ee.length){for(const Ee of ee)if(-1===oe.indexOf(Ee))return!0;return!1}return!0})($)||P})()?this.recreateView():this.updateContext()}static#e=this.\u0275fac=function($){return new($||z)(t.rXU(t.c1b),t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:z,selectors:[["","nzStringTemplateOutlet",""]],inputs:{nzStringTemplateOutletContext:"nzStringTemplateOutletContext",nzStringTemplateOutlet:"nzStringTemplateOutlet"},exportAs:["nzStringTemplateOutlet"],standalone:!0,features:[t.OA$]})}return z})();class m{}let e=(()=>{class z{static#e=this.\u0275fac=function($){return new($||z)};static#t=this.\u0275mod=t.$C({type:z});static#n=this.\u0275inj=t.G2t({})}return z})()},5463:($t,De,a)=>{a.d(De,{$_:()=>N,DN:()=>P,G5:()=>x,Ib:()=>$,Js:()=>j,MV:()=>k,jj:()=>I,l$:()=>w,pn:()=>z,vT:()=>Q});var t=a(7987),r=a(3953),m=a(6977),e=a(1025);const z={top:new t.uH({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new t.uH({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new t.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new t.uH({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new t.uH({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new t.uH({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new t.uH({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new t.uH({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new t.uH({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new t.uH({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new t.uH({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new t.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},j=[z.top,z.right,z.bottom,z.left],$=[new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})],k=[z.bottomLeft,new t.uH({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"top"})];function I(oe){for(const ee in z)if(oe.connectionPair.originX===z[ee].originX&&oe.connectionPair.originY===z[ee].originY&&oe.connectionPair.overlayX===z[ee].overlayX&&oe.connectionPair.overlayY===z[ee].overlayY)return ee}const w={bottomLeft:new t.uH({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"},void 0,2),topLeft:new t.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"},void 0,-2),bottomRight:new t.uH({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"},void 0,2),topRight:new t.uH({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"},void 0,-2)},P=[w.bottomLeft,w.topLeft,w.bottomRight,w.topRight];let Q=(()=>{class oe{constructor(Ee,Ie){this.cdkConnectedOverlay=Ee,this.nzDestroyService=Ie,this.nzArrowPointAtCenter=!1,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop",this.cdkConnectedOverlay.positionChange.pipe((0,m.Q)(this.nzDestroyService)).subscribe(ce=>{this.nzArrowPointAtCenter&&this.updateArrowPosition(ce)})}updateArrowPosition(Ee){const Ie=this.getOriginRect(),ce=I(Ee);let Pe=0,ve=0;"topLeft"===ce||"bottomLeft"===ce?Pe=Ie.width/2-14:"topRight"===ce||"bottomRight"===ce?Pe=-(Ie.width/2-14):"leftTop"===ce||"rightTop"===ce?ve=Ie.height/2-10:("leftBottom"===ce||"rightBottom"===ce)&&(ve=-(Ie.height/2-10)),(this.cdkConnectedOverlay.offsetX!==Pe||this.cdkConnectedOverlay.offsetY!==ve)&&(this.cdkConnectedOverlay.offsetY=ve,this.cdkConnectedOverlay.offsetX=Pe,this.cdkConnectedOverlay.overlayRef.updatePosition())}getFlexibleConnectedPositionStrategyOrigin(){return this.cdkConnectedOverlay.origin instanceof t.$Q?this.cdkConnectedOverlay.origin.elementRef:this.cdkConnectedOverlay.origin}getOriginRect(){const Ee=this.getFlexibleConnectedPositionStrategyOrigin();if(Ee instanceof r.aKT)return Ee.nativeElement.getBoundingClientRect();if(Ee instanceof Element)return Ee.getBoundingClientRect();const Ie=Ee.width||0,ce=Ee.height||0;return{top:Ee.y,bottom:Ee.y+ce,left:Ee.x,right:Ee.x+Ie,height:ce,width:Ie}}static#e=this.\u0275fac=function(Ie){return new(Ie||oe)(r.rXU(t.WB),r.rXU(e.y4))};static#t=this.\u0275dir=r.FsC({type:oe,selectors:[["","cdkConnectedOverlay","","nzConnectedOverlay",""]],inputs:{nzArrowPointAtCenter:[2,"nzArrowPointAtCenter","nzArrowPointAtCenter",r.L39]},exportAs:["nzConnectedOverlay"],features:[r.Jv_([e.y4]),r.GFd]})}return oe})(),N=(()=>{class oe{static#e=this.\u0275fac=function(Ie){return new(Ie||oe)};static#t=this.\u0275mod=r.$C({type:oe});static#n=this.\u0275inj=r.G2t({})}return oe})();function x(oe,ee){ee&&(oe._host.style.zIndex=`${ee}`)}},4500:($t,De,a)=>{a.d(De,{F:()=>e,j:()=>z});const t=["moz","ms","webkit"];function e(j){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(j);const R=t.filter($=>`${$}CancelAnimationFrame`in window||`${$}CancelRequestAnimationFrame`in window)[0];return R?(window[`${R}CancelAnimationFrame`]||window[`${R}CancelRequestAnimationFrame`]).call(this,j):clearTimeout(j)}const z=function m(){if(typeof window>"u")return()=>0;if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);const j=t.filter(R=>`${R}RequestAnimationFrame`in window)[0];return j?window[`${j}RequestAnimationFrame`]:function r(){let j=0;return function(R){const $=(new Date).getTime(),k=Math.max(0,16-($-j)),I=window.setTimeout(()=>{R($+k)},k);return j=$+k,I}}()}()},1025:($t,De,a)=>{a.d(De,{cB:()=>Q,fe:()=>Pe,jp:()=>pe,pt:()=>ce,qH:()=>ee,y4:()=>U,yY:()=>ve});var t=a(3953),r=a(1413),m=a(3798),e=a(980),z=a(6354),j=a(5964),R=a(6977),$=a(9172),k=a(3294),I=a(317),w=a(9327);const P=()=>{};let Q=(()=>{class te{constructor(T,D){this.ngZone=T,this.rendererFactory2=D,this.resizeSource$=new r.B,this.listeners=0,this.disposeHandle=P,this.handler=()=>{this.ngZone.run(()=>{this.resizeSource$.next()})},this.renderer=this.rendererFactory2.createRenderer(null,null)}ngOnDestroy(){this.handler=P}subscribe(){return this.registerListener(),this.resizeSource$.pipe((0,m.Z)(16),(0,e.j)(()=>this.unregisterListener()))}unsubscribe(){this.unregisterListener()}registerListener(){0===this.listeners&&this.ngZone.runOutsideAngular(()=>{this.disposeHandle=this.renderer.listen("window","resize",this.handler)}),this.listeners+=1}unregisterListener(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=P)}static#e=this.\u0275fac=function(D){return new(D||te)(t.KVO(t.SKi),t.KVO(t._9s))};static#t=this.\u0275prov=t.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})(),ee=(()=>{class te{constructor(T){this.draggingThreshold=5,this.currentDraggingSequence=null,this.currentStartingPoint=null,this.handleRegistry=new Set,this.renderer=T.createRenderer(null,null)}requestDraggingSequence(T){return this.handleRegistry.size||this.registerDraggingHandler((0,I.kH)(T)),this.currentDraggingSequence&&this.currentDraggingSequence.complete(),this.currentStartingPoint=function oe(te){const ge=(0,I.q1)(te);return{x:ge.pageX,y:ge.pageY}}(T),this.currentDraggingSequence=new r.B,this.currentDraggingSequence.pipe((0,z.T)(D=>({x:D.pageX-this.currentStartingPoint.x,y:D.pageY-this.currentStartingPoint.y})),(0,j.p)(D=>Math.abs(D.x)>this.draggingThreshold||Math.abs(D.y)>this.draggingThreshold),(0,e.j)(()=>this.teardownDraggingSequence()))}registerDraggingHandler(T){T?(this.handleRegistry.add({teardown:this.renderer.listen("document","touchmove",D=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(D.touches[0]||D.changedTouches[0])})}),this.handleRegistry.add({teardown:this.renderer.listen("document","touchend",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})})):(this.handleRegistry.add({teardown:this.renderer.listen("document","mousemove",D=>{this.currentDraggingSequence&&this.currentDraggingSequence.next(D)})}),this.handleRegistry.add({teardown:this.renderer.listen("document","mouseup",()=>{this.currentDraggingSequence&&this.currentDraggingSequence.complete()})}))}teardownDraggingSequence(){this.currentDraggingSequence=null}static#e=this.\u0275fac=function(D){return new(D||te)(t.KVO(t._9s))};static#t=this.\u0275prov=t.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})();var ce=function(te){return te.xxl="xxl",te.xl="xl",te.lg="lg",te.md="md",te.sm="sm",te.xs="xs",te}(ce||{});const Pe={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},ve={xs:"(max-width: 479.98px)",sm:"(max-width: 575.98px)",md:"(max-width: 767.98px)",lg:"(max-width: 991.98px)",xl:"(max-width: 1199.98px)",xxl:"(max-width: 1599.98px)"};let pe=(()=>{class te{constructor(T,D){this.resizeService=T,this.mediaMatcher=D,this.destroy$=new r.B,this.resizeService.subscribe().pipe((0,R.Q)(this.destroy$)).subscribe(()=>{})}ngOnDestroy(){this.destroy$.next()}subscribe(T,D){if(D){const A=()=>this.matchMedia(T,!0);return this.resizeService.subscribe().pipe((0,z.T)(A),(0,$.Z)(A()),(0,k.F)((X,se)=>X[0]===se[0]),(0,z.T)(X=>X[1]))}{const A=()=>this.matchMedia(T);return this.resizeService.subscribe().pipe((0,z.T)(A),(0,$.Z)(A()),(0,k.F)())}}matchMedia(T,D){let A=ce.md;const X={};return Object.keys(T).map(se=>{const je=se,Bt=this.mediaMatcher.matchMedia(Pe[je]).matches;X[se]=Bt,Bt&&(A=je)}),D?[A,X]:A}static#e=this.\u0275fac=function(D){return new(D||te)(t.KVO(Q),t.KVO(w.DY))};static#t=this.\u0275prov=t.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})(),U=(()=>{class te extends r.B{ngOnDestroy(){this.next(),this.complete()}static#e=this.\u0275fac=(()=>{let T;return function(A){return(T||(T=t.xGo(te)))(A||te)}})();static#t=this.\u0275prov=t.jDH({token:te,factory:te.\u0275fac})}return te})()},5203:($t,De,a)=>{a.d(De,{KV:()=>Qt,ad:()=>Ft,aV:()=>wt,F7:()=>Xe,yZ:()=>Ut,Tb:()=>ke});var t=a(6190),r=a(628),m=a(738),z=a(179);function R(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,z.A)(G);if(isNaN(ze))return new Date(NaN);if(!ze)return H;var Qe=H.getDate(),ht=new Date(H.getTime());return ht.setMonth(H.getMonth()+ze+1,0),Qe>=ht.getDate()?ht:(H.setFullYear(ht.getFullYear(),ht.getMonth(),Qe),H)}function I(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,z.A)(G),Qe=H.getFullYear(),ht=H.getDate(),Kt=new Date(0);Kt.setFullYear(Qe,ze,15),Kt.setHours(0,0,0,0);var fn=function k(q){(0,m.A)(1,arguments);var G=(0,r.A)(q),H=G.getFullYear(),ze=G.getMonth(),Qe=new Date(0);return Qe.setFullYear(H,ze+1,0),Qe.setHours(0,0,0,0),Qe.getDate()}(Kt);return H.setMonth(ze,Math.min(ht,fn)),H}var P=a(4319);var N=a(2777);function oe(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,r.A)(G);return H.getFullYear()===ze.getFullYear()}var ee=a(9114);function Ee(q,G){(0,m.A)(2,arguments);var H=(0,ee.A)(q),ze=(0,ee.A)(G);return H.getTime()===ze.getTime()}function Ie(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,r.A)(G);return H.getFullYear()===ze.getFullYear()&&H.getMonth()===ze.getMonth()}function ce(q){(0,m.A)(1,arguments);var G=(0,r.A)(q);return G.setHours(0,0,0,0),G}function Pe(q,G){(0,m.A)(2,arguments);var H=ce(q),ze=ce(G);return H.getTime()===ze.getTime()}function ve(q){(0,m.A)(1,arguments);var G=(0,r.A)(q);return G.setMinutes(0,0,0),G}function pe(q,G){(0,m.A)(2,arguments);var H=ve(q),ze=ve(G);return H.getTime()===ze.getTime()}function U(q){(0,m.A)(1,arguments);var G=(0,r.A)(q);return G.setSeconds(0,0),G}function M(q,G){(0,m.A)(2,arguments);var H=U(q),ze=U(G);return H.getTime()===ze.getTime()}function te(q){(0,m.A)(1,arguments);var G=(0,r.A)(q);return G.setMilliseconds(0),G}function ge(q,G){(0,m.A)(2,arguments);var H=te(q),ze=te(G);return H.getTime()===ze.getTime()}function T(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,r.A)(G);return H.getFullYear()-ze.getFullYear()}function D(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,r.A)(G);return 4*(H.getFullYear()-ze.getFullYear())+((0,N.A)(H)-(0,N.A)(ze))}function A(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,r.A)(G);return 12*(H.getFullYear()-ze.getFullYear())+(H.getMonth()-ze.getMonth())}var X=a(3511);function je(q,G){(0,m.A)(2,arguments);var H=ce(q),ze=ce(G),Qe=H.getTime()-(0,X.A)(H),ht=ze.getTime()-(0,X.A)(ze);return Math.round((Qe-ht)/864e5)}var Bt=a(6746);function Tt(q,G){return(0,m.A)(2,arguments),(0,r.A)(q).getTime()-(0,r.A)(G).getTime()}var Vt={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(G){return G<0?Math.ceil(G):Math.floor(G)}},He="trunc";function xt(q){return q?Vt[q]:Vt[He]}function Lt(q,G,H){(0,m.A)(2,arguments);var ze=Tt(q,G)/Bt.s0;return xt(H?.roundingMethod)(ze)}function ft(q,G,H){(0,m.A)(2,arguments);var ze=Tt(q,G)/Bt.Cg;return xt(H?.roundingMethod)(ze)}function St(q,G,H){(0,m.A)(2,arguments);var ze=Tt(q,G)/1e3;return xt(H?.roundingMethod)(ze)}var It=a(2764);var Jn=a(3451),Dn=a(177),Mt=a(317);function Ut(q){const[G,H]=q;return!!G&&!!H&&H.isBeforeDay(G)}function wt(q,G,H="month",ze="left"){const[Qe,ht]=q;let Kt=Qe||new Qt,fn=ht||(G?Kt:Kt.add(1,H));return Qe&&!ht?(Kt=Qe,fn=G?Qe:Qe.add(1,H)):!Qe&&ht?(Kt=G?ht:ht.add(-1,H),fn=ht):Qe&&ht&&!G&&(Qe.isSame(ht,H)||"left"===ze?fn=Kt.add(1,H):Kt=fn.add(-1,H)),[Kt,fn]}function Ft(q){return Array.isArray(q)?q.map(G=>G instanceof Qt?G.clone():null):q instanceof Qt?q.clone():null}class Qt{constructor(G){if(G)if(G instanceof Date)this.nativeDate=G;else{if("string"!=typeof G&&"number"!=typeof G)throw new Error('The input date type is not supported ("Date" is now recommended)');(0,Jn.R8)('The string type is not recommended for date-picker, use "Date" type'),this.nativeDate=new Date(G)}else this.nativeDate=new Date}calendarStart(G){return new Qt((0,t.A)(function e(q){(0,m.A)(1,arguments);var G=(0,r.A)(q);return G.setDate(1),G.setHours(0,0,0,0),G}(this.nativeDate),G))}getYear(){return this.nativeDate.getFullYear()}getMonth(){return this.nativeDate.getMonth()}getDay(){return this.nativeDate.getDay()}getTime(){return this.nativeDate.getTime()}getDate(){return this.nativeDate.getDate()}getHours(){return this.nativeDate.getHours()}getMinutes(){return this.nativeDate.getMinutes()}getSeconds(){return this.nativeDate.getSeconds()}getMilliseconds(){return this.nativeDate.getMilliseconds()}clone(){return new Qt(new Date(this.nativeDate))}setHms(G,H,ze){const Qe=new Date(this.nativeDate.setHours(G,H,ze));return new Qt(Qe)}setYear(G){return new Qt(function j(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,z.A)(G);return isNaN(H.getTime())?new Date(NaN):(H.setFullYear(ze),H)}(this.nativeDate,G))}addYears(G){return new Qt(function $(q,G){return(0,m.A)(2,arguments),R(q,12*(0,z.A)(G))}(this.nativeDate,G))}setMonth(G){return new Qt(I(this.nativeDate,G))}addMonths(G){return new Qt(R(this.nativeDate,G))}setDay(G,H){return new Qt(function Q(q,G,H){var ze,Qe,ht,Kt,fn,In,Kn,Gn;(0,m.A)(2,arguments);var $n=(0,P.q)(),Nn=(0,z.A)(null!==(ze=null!==(Qe=null!==(ht=null!==(Kt=H?.weekStartsOn)&&void 0!==Kt?Kt:null==H||null===(fn=H.locale)||void 0===fn||null===(In=fn.options)||void 0===In?void 0:In.weekStartsOn)&&void 0!==ht?ht:$n.weekStartsOn)&&void 0!==Qe?Qe:null===(Kn=$n.locale)||void 0===Kn||null===(Gn=Kn.options)||void 0===Gn?void 0:Gn.weekStartsOn)&&void 0!==ze?ze:0);if(!(Nn>=0&&Nn<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var vn=(0,r.A)(q),Jt=(0,z.A)(G),An=vn.getDay(),ae=7-Nn;return function w(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ze=(0,z.A)(G);return isNaN(ze)?new Date(NaN):(ze&&H.setDate(H.getDate()+ze),H)}(vn,Jt<0||Jt>6?Jt-(An+ae)%7:((Jt%7+7)%7+ae)%7-(An+ae)%7)}(this.nativeDate,G,H))}setDate(G){const H=new Date(this.nativeDate);return H.setDate(G),new Qt(H)}getQuarter(){return(0,N.A)(this.nativeDate)}setQuarter(G){return new Qt(function x(q,G){(0,m.A)(2,arguments);var H=(0,r.A)(q),ht=(0,z.A)(G)-(Math.floor(H.getMonth()/3)+1);return I(H,H.getMonth()+3*ht)}(this.nativeDate,G))}addDays(G){return this.setDate(this.getDate()+G)}add(G,H){switch(H){case"decade":return this.addYears(10*G);case"year":return this.addYears(G);default:return this.addMonths(G)}}isSame(G,H="day"){let ze;switch(H){case"decade":ze=(Qe,ht)=>Math.abs(Qe.getFullYear()-ht.getFullYear())<11;break;case"year":ze=oe;break;case"quarter":ze=Ee;break;case"month":ze=Ie;break;case"day":default:ze=Pe;break;case"hour":ze=pe;break;case"minute":ze=M;break;case"second":ze=ge}return ze(this.nativeDate,this.toNativeDate(G))}isSameYear(G){return this.isSame(G,"year")}isSameQuarter(G){return this.isSame(G,"quarter")}isSameMonth(G){return this.isSame(G,"month")}isSameDay(G){return this.isSame(G,"day")}isSameHour(G){return this.isSame(G,"hour")}isSameMinute(G){return this.isSame(G,"minute")}isSameSecond(G){return this.isSame(G,"second")}isBefore(G,H="day"){if(null===G)return!1;let ze;switch(H){case"year":ze=T;break;case"quarter":ze=D;break;case"month":ze=A;break;case"day":default:ze=je;break;case"hour":ze=Lt;break;case"minute":ze=ft;break;case"second":ze=St}return ze(this.nativeDate,this.toNativeDate(G))<0}isBeforeYear(G){return this.isBefore(G,"year")}isBeforeQuarter(G){return this.isBefore(G,"quarter")}isBeforeMonth(G){return this.isBefore(G,"month")}isBeforeDay(G){return this.isBefore(G,"day")}isToday(){return function kt(q){return(0,m.A)(1,arguments),Pe(q,Date.now())}(this.nativeDate)}isValid(){return(0,It.A)(this.nativeDate)}isFirstDayOfMonth(){return function rn(q){return(0,m.A)(1,arguments),1===(0,r.A)(q).getDate()}(this.nativeDate)}isLastDayOfMonth(){return function Tn(q){(0,m.A)(1,arguments);var G=(0,r.A)(q);return function en(q){(0,m.A)(1,arguments);var G=(0,r.A)(q);return G.setHours(23,59,59,999),G}(G).getTime()===function Xt(q){(0,m.A)(1,arguments);var G=(0,r.A)(q),H=G.getMonth();return G.setFullYear(G.getFullYear(),H+1,0),G.setHours(23,59,59,999),G}(G).getTime()}(this.nativeDate)}toNativeDate(G){return G instanceof Qt?G.nativeDate:G}}const Xe=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];class ke{constructor(G,H){this.format=G,this.localeId=H,this.regex=null,this.matchMap={hour:null,minute:null,second:null,periodNarrow:null,periodWide:null,periodAbbreviated:null},this.genRegexp()}toDate(G){const H=this.getTimeResult(G),ze=new Date;return(0,Mt.n9)(H?.hour)&&ze.setHours(H.hour),(0,Mt.n9)(H?.minute)&&ze.setMinutes(H.minute),(0,Mt.n9)(H?.second)&&ze.setSeconds(H.second),1===H?.period&&ze.getHours()<12&&ze.setHours(ze.getHours()+12),ze}getTimeResult(G){const H=this.regex.exec(G);let ze=null;return H?((0,Mt.n9)(this.matchMap.periodNarrow)&&(ze=(0,Dn.rd)(this.localeId,Dn.oV.Format,Dn.cH.Narrow).indexOf(H[this.matchMap.periodNarrow+1])),(0,Mt.n9)(this.matchMap.periodWide)&&(ze=(0,Dn.rd)(this.localeId,Dn.oV.Format,Dn.cH.Wide).indexOf(H[this.matchMap.periodWide+1])),(0,Mt.n9)(this.matchMap.periodAbbreviated)&&(ze=(0,Dn.rd)(this.localeId,Dn.oV.Format,Dn.cH.Abbreviated).indexOf(H[this.matchMap.periodAbbreviated+1])),{hour:(0,Mt.n9)(this.matchMap.hour)?Number.parseInt(H[this.matchMap.hour+1],10):null,minute:(0,Mt.n9)(this.matchMap.minute)?Number.parseInt(H[this.matchMap.minute+1],10):null,second:(0,Mt.n9)(this.matchMap.second)?Number.parseInt(H[this.matchMap.second+1],10):null,period:ze}):null}genRegexp(){let G=this.format.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$&");const H=/h{1,2}/i,ze=/m{1,2}/,Qe=/s{1,2}/,ht=/aaaaa/,Kt=/aaaa/,fn=/a{1,3}/,In=H.exec(this.format),Kn=ze.exec(this.format),Gn=Qe.exec(this.format),$n=ht.exec(this.format);let Nn=null,vn=null;$n||(Nn=Kt.exec(this.format)),!Nn&&!$n&&(vn=fn.exec(this.format)),[In,Kn,Gn,$n,Nn,vn].filter(An=>!!An).sort((An,Yt)=>An.index-Yt.index).forEach((An,Yt)=>{switch(An){case In:this.matchMap.hour=Yt,G=G.replace(H,"(\\d{1,2})");break;case Kn:this.matchMap.minute=Yt,G=G.replace(ze,"(\\d{1,2})");break;case Gn:this.matchMap.second=Yt,G=G.replace(Qe,"(\\d{1,2})");break;case $n:this.matchMap.periodNarrow=Yt;const Je=(0,Dn.rd)(this.localeId,Dn.oV.Format,Dn.cH.Narrow).join("|");G=G.replace(ht,`(${Je})`);break;case Nn:this.matchMap.periodWide=Yt;const ae=(0,Dn.rd)(this.localeId,Dn.oV.Format,Dn.cH.Wide).join("|");G=G.replace(Kt,`(${ae})`);break;case vn:this.matchMap.periodAbbreviated=Yt;const ie=(0,Dn.rd)(this.localeId,Dn.oV.Format,Dn.cH.Abbreviated).join("|");G=G.replace(fn,`(${ie})`)}}),this.regex=new RegExp(G)}}},6389:($t,De,a)=>{a.d(De,{c:()=>r,p:()=>m});var t=a(3953);let r=(()=>{class e{setHiddenAttribute(){this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","string"==typeof this.hidden?this.hidden:""):this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden")}constructor(j,R){this.elementRef=j,this.renderer=R,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}ngOnChanges(){this.setHiddenAttribute()}ngAfterViewInit(){this.setHiddenAttribute()}static#e=this.\u0275fac=function(R){return new(R||e)(t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:e,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},standalone:!0,features:[t.OA$]})}return e})(),m=(()=>{class e{static#e=this.\u0275fac=function(R){return new(R||e)};static#t=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({})}return e})()},317:($t,De,a)=>{a.d(De,{BD:()=>ae,BV:()=>Lt,CF:()=>se,Fq:()=>Dn,G4:()=>oe,LP:()=>ie,Mk:()=>ge,OC:()=>Gn,OM:()=>X,Ro:()=>Ie,XQ:()=>Pe,cG:()=>Kn,cj:()=>ee,cz:()=>St,gD:()=>P,ho:()=>Tn,ij:()=>In,j3:()=>ce,kH:()=>T,my:()=>x,n9:()=>w,nI:()=>ft,nS:()=>Kt,q1:()=>D,r1:()=>k,uI:()=>N,xP:()=>H,yL:()=>Tt});var t=a(3953),r=a(4085),m=a(1413),e=a(4402),z=a(2806),j=a(7673),R=a(6697);function k(re,et){if(!re||!et||re.length!==et.length)return!1;const _t=re.length;for(let mt=0;mt<_t;mt++)if(re[mt]!==et[mt])return!1;return!0}function w(re){return typeof re<"u"&&null!==re}function P(re){return typeof re>"u"||null===re}function N(re){return"string"==typeof re&&""!==re}function x(re){return re instanceof t.C4Q}function oe(re){return(0,r.he)(re)}function ee(re){return(0,t.Udg)(re,0)}function Ie(re,et=0){return(0,r.OE)(re,et)}function ce(re){return(0,r.a1)(re)}function Pe(re,...et){return"function"==typeof re?re(...et):re}function ge(re){if(!re.getClientRects().length)return{top:0,left:0};const et=re.getBoundingClientRect(),_t=re.ownerDocument.defaultView;return{top:et.top+_t.pageYOffset,left:et.left+_t.pageXOffset}}function T(re){return re.type.startsWith("touch")}function D(re){return T(re)?re.touches[0]||re.changedTouches[0]:re}function X(re,et="@"){if("string"!=typeof re)return[];const _t=function A(re){const et=Array.isArray(re)?re:[re];let _t=et.join("").replace(/(\$|\^)/g,"\\$1");return et.length>1&&(_t=`[${_t}]`),new RegExp(`(\\s|^)(${_t})[^\\s]*`,"g")}(et),mt=re.match(_t);return null!==mt?mt.map(Rt=>Rt.trim()):[]}function se(re,et,_t){if(re.length>et)return re;const mt=`${function Bt(re,et){return Array(re).fill(et).join("")}(et,_t)}${re}`;return mt.slice(mt.length-et,mt.length)}function Tt(re){return!!re&&"function"==typeof re.then&&"function"==typeof re.catch}function Lt(re){return"number"==typeof re&&isFinite(re)}function ft(re,et){return Math.round(re*Math.pow(10,et))/Math.pow(10,et)}function St(re,et=0){return re.reduce((_t,mt)=>_t+mt,et)}const It=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],rn=typeof window<"u",en=rn&&null!=window.mozInnerScreenX,Xt=re=>parseInt(re,10);function Tn(re,et,_t){if(!rn)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");const mt=_t&&_t.debug||!1;if(mt){const zt=document.querySelector("#input-textarea-caret-position-mirror-div");zt&&zt.parentNode.removeChild(zt)}const Rt=document.createElement("div");Rt.id="input-textarea-caret-position-mirror-div",document.body.appendChild(Rt);const ct=Rt.style,Se=window.getComputedStyle?window.getComputedStyle(re):re.currentStyle,lt="INPUT"===re.nodeName;ct.whiteSpace="pre-wrap",lt||(ct.wordWrap="break-word"),ct.position="absolute",mt||(ct.visibility="hidden"),It.forEach(zt=>{lt&&"lineHeight"===zt?ct.lineHeight=Se.height:ct[zt]=Se[zt]}),en?re.scrollHeight>Xt(Se.height)&&(ct.overflowY="scroll"):ct.overflow="hidden",Rt.textContent=re.value.substring(0,et),lt&&(Rt.textContent=Rt.textContent.replace(/\s/g,"\xa0"));const de=document.createElement("span");de.textContent=re.value.substring(et)||".",Rt.appendChild(de);const Oe={top:de.offsetTop+Xt(Se.borderTopWidth),left:de.offsetLeft+Xt(Se.borderLeftWidth),height:Xt(Se.lineHeight)};return mt?(de.style.backgroundColor="#eee",function Jn(re,et){const _t=getComputedStyle(re).getPropertyValue("font-size"),mt=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(mt),mt.id="DEBUG",mt.style.position="absolute",mt.style.backgroundColor="red",mt.style.height=_t,mt.style.width="1px",mt.style.top=`${re.getBoundingClientRect().top-re.scrollTop+window.pageYOffset+et.top}px`,mt.style.left=`${re.getBoundingClientRect().left-re.scrollLeft+window.pageXOffset+et.left}px`}(re,Oe)):document.body.removeChild(Rt),Oe}function Dn(re){if(typeof window<"u"&&window.document&&window.document.documentElement){const et=Array.isArray(re)?re:[re],{documentElement:_t}=window.document;return et.some(mt=>mt in _t.style)}return!1}const Ut=1,wt=3,Ft=8;let Qt;const Xe={padding:"0",margin:"0",display:"inline",lineHeight:"inherit"};function ke(re){if(!re)return 0;const et=re.match(/^\d*(\.\d*)?/);return et?Number(et[0]):0}function H(re,et,_t,mt,Rt,ct=""){Qt||(Qt=document.createElement("div"),Qt.setAttribute("aria-hidden","true"),document.body.appendChild(Qt));const Se=window.getComputedStyle(re),lt=function q(re){return Array.prototype.slice.apply(re).map(_t=>`${_t}: ${re.getPropertyValue(_t)};`).join("")}(Se),de=ke(Se.lineHeight),Oe=Math.round(de*(et+1)+ke(Se.paddingTop)+ke(Se.paddingBottom));Qt.setAttribute("style",lt),Qt.style.position="fixed",Qt.style.left="0",Qt.style.height="auto",Qt.style.minHeight="auto",Qt.style.maxHeight="auto",Qt.style.top="-999999px",Qt.style.zIndex="-1000",Qt.style.textOverflow="clip",Qt.style.whiteSpace="normal",Qt.style.webkitLineClamp="none";const zt=function G(re){const et=[];return re.forEach(_t=>{const mt=et[et.length-1];mt&&_t.nodeType===wt&&mt.nodeType===wt?mt.data+=_t.data:et.push(_t)}),et}(_t),Ze=document.createElement("div"),Ne=document.createElement("span"),Le=document.createTextNode(ct),Y=document.createElement("span");function le(){return Qt.offsetHeight{Ne.appendChild(dn)}),Ne.appendChild(Le),mt.forEach(dn=>{Y.appendChild(dn.cloneNode(!0))}),Ze.appendChild(Ne),Ze.appendChild(Y),Qt.appendChild(Ze),le()){const dn=Qt.innerHTML;return Qt.removeChild(Ze),{contentNodes:_t,text:dn,ellipsis:!1}}const V=Array.prototype.slice.apply(Qt.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(({nodeType:dn})=>dn!==Ft),Ve=Array.prototype.slice.apply(Qt.childNodes[0].childNodes[1].cloneNode(!0).childNodes);Qt.removeChild(Ze),Qt.innerHTML="";const Ce=document.createElement("span");Qt.appendChild(Ce);const J=document.createTextNode(Rt+ct);function _e(dn,wn,si=0,Cn=wn.length,ni=0){const ui=Math.floor((si+Cn)/2);if(dn.textContent=wn.slice(0,ui),si>=Cn-1)for(let Ni=Cn;Ni>=si;Ni-=1){const Eo=wn.slice(0,Ni);if(dn.textContent=Eo,le()||!Eo)return Ni===wn.length?{finished:!1,node:document.createTextNode(wn)}:{finished:!0,node:document.createTextNode(Eo)}}return le()?_e(dn,wn,ui,Cn,ui):_e(dn,wn,si,ui,ni)}function it(dn,wn){const si=dn.nodeType;if(si===Ut)return le()?{finished:!1,node:zt[wn]}:(Ce.removeChild(dn),{finished:!0,node:null});if(si===wt){const Cn=dn.textContent||"",ni=document.createTextNode(Cn);return function W(dn){Ce.insertBefore(dn,J)}(ni),_e(ni,Cn)}return{finished:!1,node:null}}Ce.appendChild(J),Ve.forEach(dn=>{Qt.appendChild(dn)});const dt=[];V.some((dn,wn)=>{const{finished:si,node:Cn}=it(dn,wn);return Cn&&dt.push(Cn),si});const Ht={contentNodes:dt,text:Qt.innerHTML,ellipsis:!0};for(;Qt.firstChild;)Qt.removeChild(Qt.firstChild);return Ht}let ze,Qe;const ht={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function Kt(re="vertical",et="ant"){if(typeof document>"u"||typeof window>"u")return 0;const _t="vertical"===re;if(_t&&ze)return ze;if(!_t&&Qe)return Qe;const mt=document.createElement("div");Object.keys(ht).forEach(ct=>{mt.style[ct]=ht[ct]}),mt.className=`${et}-hide-scrollbar scroll-div-append-to-body`,_t?mt.style.overflowY="scroll":mt.style.overflowX="scroll",document.body.appendChild(mt);let Rt=0;return _t?(Rt=mt.offsetWidth-mt.clientWidth,ze=Rt):(Rt=mt.offsetHeight-mt.clientHeight,Qe=Rt),document.body.removeChild(mt),Rt}function In(){const re=new m.B;return Promise.resolve().then(()=>re.next()),re.pipe((0,R.s)(1))}function Kn(re){return(0,e.A)(re)?re:Tt(re)?(0,z.H)(Promise.resolve(re)):(0,j.of)(re)}function Gn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const $n="rc-util-key";function Nn({mark:re}={}){return re?re.startsWith("data-")?re:`data-${re}`:$n}function vn(re){return re.attachTo?re.attachTo:document.querySelector("head")||document.body}function Jt(re,et={}){if(!Gn())return null;const _t=document.createElement("style");et.cspNonce&&(_t.nonce=et.cspNonce),_t.innerHTML=re;const mt=vn(et),{firstChild:Rt}=mt;return et.prepend&&mt.prepend?mt.prepend(_t):et.prepend&&Rt?mt.insertBefore(_t,Rt):mt.appendChild(_t),_t}const An=new Map;function ae(re,et,_t={}){const mt=vn(_t);if(!An.has(mt)){const Se=Jt("",_t),{parentNode:lt}=Se;An.set(mt,lt),lt.removeChild(Se)}const Rt=function Yt(re,et={}){const _t=vn(et);return Array.from(An.get(_t)?.children||[]).find(mt=>"STYLE"===mt.tagName&&mt.getAttribute(Nn(et))===re)}(et,_t);if(Rt)return _t.cspNonce&&Rt.nonce!==_t.cspNonce&&(Rt.nonce=_t.cspNonce),Rt.innerHTML!==re&&(Rt.innerHTML=re),Rt;const ct=Jt(re,_t);return ct?.setAttribute(Nn(_t),et),ct}function ie(re,et,_t){return{[`${re}-status-success`]:"success"===et,[`${re}-status-warning`]:"warning"===et,[`${re}-status-error`]:"error"===et,[`${re}-status-validating`]:"validating"===et,[`${re}-has-feedback`]:_t}}},5930:($t,De,a)=>{a.d(De,{o7:()=>$,p:()=>R});var t=a(6860),r=a(3953);class m{get waveAttributeName(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}constructor(I,w,P,Q,N){this.triggerElement=I,this.ngZone=w,this.insertExtraNode=P,this.platformId=Q,this.cspNonce=N,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=x=>{!this.triggerElement||!this.triggerElement.getAttribute||this.triggerElement.getAttribute("disabled")||"INPUT"===x.target.tagName||this.triggerElement.className.indexOf("disabled")>=0||this.fadeOutWave()},this.platform=new t.OD(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}bindTriggerEvent(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{this.removeTriggerEvent(),this.triggerElement&&this.triggerElement.addEventListener("click",this.clickHandler,!0)})}removeTriggerEvent(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}removeStyleAndExtraNode(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}destroy(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}fadeOutWave(){const I=this.triggerElement,w=this.getWaveColor(I);I.setAttribute(this.waveAttributeName,"true"),!(Date.now(){I.removeAttribute(this.waveAttributeName),this.removeStyleAndExtraNode()},this.waveTransitionDuration))}isValidColor(I){return!!I&&"#ffffff"!==I&&"rgb(255, 255, 255)"!==I&&this.isNotGrey(I)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(I)&&"transparent"!==I}isNotGrey(I){const w=I.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(w&&w[1]&&w[2]&&w[3]&&w[1]===w[2]&&w[2]===w[3])}getWaveColor(I){const w=getComputedStyle(I);return w.getPropertyValue("border-top-color")||w.getPropertyValue("border-color")||w.getPropertyValue("background-color")}runTimeoutOutsideZone(I,w){this.ngZone.runOutsideAngular(()=>setTimeout(I,w))}}const e={disabled:!1},z=new r.nKC("nz-wave-global-options");function j(k){return(0,r.EmA)([{provide:z,useValue:k}])}let R=(()=>{class k{get disabled(){return this.waveDisabled}get rendererRef(){return this.waveRenderer}constructor(w,P,Q,N,x,oe){this.ngZone=w,this.elementRef=P,this.config=Q,this.animationType=N,this.platformId=x,this.cspNonce=oe,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}isConfigDisabled(){let w=!1;return this.config&&"boolean"==typeof this.config.disabled&&(w=this.config.disabled),"NoopAnimations"===this.animationType&&(w=!0),w}ngOnDestroy(){this.waveRenderer&&this.waveRenderer.destroy()}ngOnInit(){this.renderWaveIfEnabled()}renderWaveIfEnabled(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new m(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId,this.cspNonce))}disable(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}enable(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}static#e=this.\u0275fac=function(P){return new(P||k)(r.rXU(r.SKi),r.rXU(r.aKT),r.rXU(z,8),r.rXU(r.bc$,8),r.rXU(r.Agw),r.rXU(r.BIS,8))};static#t=this.\u0275dir=r.FsC({type:k,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"],standalone:!0})}return k})(),$=(()=>{class k{static#e=this.\u0275fac=function(P){return new(P||k)};static#t=this.\u0275mod=r.$C({type:k});static#n=this.\u0275inj=r.G2t({providers:[j(e)]})}return k})()},2e3:($t,De,a)=>{a.d(De,{WF:()=>Dn,gr:()=>en,xA:()=>Jn});var t=a(3953),r=a(1413),m=a(7786),e=a(4707),z=a(177),j=a(6977),R=a(9172),$=a(5558),k=a(3798),I=a(8141),w=a(6042),P=a(3451),Q=a(7806),N=a(1025),x=a(8203);const oe=["*"];function ee(Mt,Ut){1&Mt&&t.SdG(0)}function Ee(Mt,Ut){if(1&Mt&&(t.qex(0),t.EFF(1),t.bVm()),2&Mt){const wt=t.XpG(3);t.R7$(),t.JRh(wt.nzTitle)}}function Ie(Mt,Ut){if(1&Mt&&(t.j41(0,"div",2),t.DNE(1,Ee,2,1,"ng-container",4),t.k0s()),2&Mt){const wt=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",wt.nzTitle)}}function ce(Mt,Ut){if(1&Mt&&(t.qex(0),t.EFF(1),t.bVm()),2&Mt){const wt=t.XpG(3);t.R7$(),t.JRh(wt.nzExtra)}}function Pe(Mt,Ut){if(1&Mt&&(t.j41(0,"div",3),t.DNE(1,ce,2,1,"ng-container",4),t.k0s()),2&Mt){const wt=t.XpG(2);t.R7$(),t.Y8G("nzStringTemplateOutlet",wt.nzExtra)}}function ve(Mt,Ut){if(1&Mt&&(t.j41(0,"div",0),t.DNE(1,Ie,2,1,"div",2)(2,Pe,2,1,"div",3),t.k0s()),2&Mt){const wt=t.XpG();t.R7$(),t.vxM(wt.nzTitle?1:-1),t.R7$(),t.vxM(wt.nzExtra?2:-1)}}function pe(Mt,Ut){if(1&Mt&&(t.qex(0),t.EFF(1),t.bVm()),2&Mt){const wt=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",wt.title," ")}}function U(Mt,Ut){}function M(Mt,Ut){if(1&Mt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",8),t.DNE(3,pe,2,1,"ng-container",4),t.k0s(),t.j41(4,"span",9),t.DNE(5,U,0,0,"ng-template",10),t.k0s()()()),2&Mt){const wt=t.XpG().$implicit,Ft=t.XpG(3);t.Y8G("colSpan",wt.span),t.R7$(2),t.AVh("ant-descriptions-item-no-colon",!Ft.nzColon),t.R7$(),t.Y8G("nzStringTemplateOutlet",wt.title),t.R7$(2),t.Y8G("ngTemplateOutlet",wt.content)}}function te(Mt,Ut){if(1&Mt&&(t.qex(0),t.EFF(1),t.bVm()),2&Mt){const wt=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",wt.title," ")}}function ge(Mt,Ut){}function T(Mt,Ut){if(1&Mt&&(t.j41(0,"td",8),t.DNE(1,te,2,1,"ng-container",4),t.k0s(),t.j41(2,"td",11),t.DNE(3,ge,0,0,"ng-template",10),t.k0s()),2&Mt){const wt=t.XpG().$implicit;t.R7$(),t.Y8G("nzStringTemplateOutlet",wt.title),t.R7$(),t.Y8G("colSpan",2*wt.span-1),t.R7$(),t.Y8G("ngTemplateOutlet",wt.content)}}function D(Mt,Ut){if(1&Mt&&t.DNE(0,M,6,5,"td",6)(1,T,4,3),2&Mt){const wt=t.XpG(3);t.vxM(wt.nzBordered?1:0)}}function A(Mt,Ut){if(1&Mt&&(t.j41(0,"tr",5),t.Z7z(1,D,2,1,null,null,t.fX1),t.k0s()),2&Mt){const wt=Ut.$implicit;t.R7$(),t.Dyx(wt)}}function X(Mt,Ut){if(1&Mt&&t.Z7z(0,A,3,0,"tr",5,t.fX1),2&Mt){const wt=t.XpG();t.Dyx(wt.itemMatrix)}}function se(Mt,Ut){if(1&Mt&&(t.qex(0),t.EFF(1),t.bVm()),2&Mt){const wt=t.XpG().$implicit;t.R7$(),t.SpI(" ",wt.title," ")}}function je(Mt,Ut){if(1&Mt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",8),t.DNE(3,se,2,1,"ng-container",4),t.k0s()()()),2&Mt){const wt=Ut.$implicit,Ft=t.XpG(4);t.Y8G("colSpan",wt.span),t.R7$(2),t.AVh("ant-descriptions-item-no-colon",!Ft.nzColon),t.R7$(),t.Y8G("nzStringTemplateOutlet",wt.title)}}function Bt(Mt,Ut){}function Tt(Mt,Ut){if(1&Mt&&(t.j41(0,"td",6)(1,"div",7)(2,"span",9),t.DNE(3,Bt,0,0,"ng-template",10),t.k0s()()()),2&Mt){const wt=Ut.$implicit;t.Y8G("colSpan",wt.span),t.R7$(3),t.Y8G("ngTemplateOutlet",wt.content)}}function Vt(Mt,Ut){if(1&Mt&&(t.j41(0,"tr",5),t.Z7z(1,je,4,4,"td",6,t.fX1),t.k0s(),t.j41(3,"tr",5),t.Z7z(4,Tt,4,2,"td",6,t.fX1),t.k0s()),2&Mt){const wt=Ut.$implicit;t.R7$(),t.Dyx(wt),t.R7$(3),t.Dyx(wt)}}function He(Mt,Ut){if(1&Mt&&t.Z7z(0,Vt,6,0,null,null,t.fX1),2&Mt){const wt=t.XpG(2);t.Dyx(wt.itemMatrix)}}function xt(Mt,Ut){if(1&Mt&&(t.qex(0),t.EFF(1),t.bVm()),2&Mt){const wt=t.XpG().$implicit;t.R7$(),t.SpI(" ",wt.title," ")}}function Lt(Mt,Ut){if(1&Mt&&(t.j41(0,"td",12),t.DNE(1,xt,2,1,"ng-container",4),t.k0s()),2&Mt){const wt=Ut.$implicit;t.Y8G("colSpan",wt.span),t.R7$(),t.Y8G("nzStringTemplateOutlet",wt.title)}}function ft(Mt,Ut){}function St(Mt,Ut){if(1&Mt&&(t.j41(0,"td",11),t.DNE(1,ft,0,0,"ng-template",10),t.k0s()),2&Mt){const wt=Ut.$implicit;t.Y8G("colSpan",wt.span),t.R7$(),t.Y8G("ngTemplateOutlet",wt.content)}}function kt(Mt,Ut){if(1&Mt&&(t.j41(0,"tr",5),t.Z7z(1,Lt,2,2,"td",12,t.fX1),t.k0s(),t.j41(3,"tr",5),t.Z7z(4,St,2,2,"td",11,t.fX1),t.k0s()),2&Mt){const wt=Ut.$implicit;t.R7$(),t.Dyx(wt),t.R7$(3),t.Dyx(wt)}}function It(Mt,Ut){if(1&Mt&&t.Z7z(0,kt,6,0,null,null,t.fX1),2&Mt){const wt=t.XpG(2);t.Dyx(wt.itemMatrix)}}function rn(Mt,Ut){if(1&Mt&&t.DNE(0,He,2,0)(1,It,2,0),2&Mt){const wt=t.XpG();t.vxM(wt.nzBordered?1:0)}}let en=(()=>{class Mt{constructor(){this.nzSpan=1,this.nzTitle="",this.inputChange$=new r.B}ngOnChanges(){this.inputChange$.next()}ngOnDestroy(){this.inputChange$.complete()}static#e=this.\u0275fac=function(Ft){return new(Ft||Mt)};static#t=this.\u0275cmp=t.VBU({type:Mt,selectors:[["nz-descriptions-item"]],viewQuery:function(Ft,Qt){if(1&Ft&&t.GBs(t.C4Q,7),2&Ft){let Xe;t.mGM(Xe=t.lsd())&&(Qt.content=Xe.first)}},inputs:{nzSpan:[2,"nzSpan","nzSpan",t.Udg],nzTitle:"nzTitle"},exportAs:["nzDescriptionsItem"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:oe,decls:1,vars:0,template:function(Ft,Qt){1&Ft&&(t.NAR(),t.DNE(0,ee,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return Mt})();const Tn={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};let Jn=(()=>{class Mt{constructor(wt,Ft,Qt,Xe){this.nzConfigService=wt,this.cdr=Ft,this.breakpointService=Qt,this.directionality=Xe,this._nzModuleName="descriptions",this.nzBordered=!1,this.nzLayout="horizontal",this.nzColumn=Tn,this.nzSize="default",this.nzTitle="",this.nzColon=!0,this.itemMatrix=[],this.realColumn=3,this.dir="ltr",this.breakpoint=N.pt.md,this.destroy$=new r.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,j.Q)(this.destroy$)).subscribe(wt=>{this.dir=wt})}ngOnChanges(wt){wt.nzColumn&&this.prepareMatrix()}ngAfterContentInit(){const wt=this.items.changes.pipe((0,R.Z)(this.items),(0,j.Q)(this.destroy$));(0,m.h)(wt,wt.pipe((0,$.n)(()=>(0,m.h)(...this.items.map(Ft=>Ft.inputChange$)).pipe((0,k.Z)(16)))),this.breakpointService.subscribe(N.fe).pipe((0,I.M)(Ft=>this.breakpoint=Ft))).pipe((0,j.Q)(this.destroy$)).subscribe(()=>{this.prepareMatrix(),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}prepareMatrix(){if(!this.items)return;let wt=[],Ft=0;const Qt=this.realColumn=this.getColumn(),Xe=this.items.toArray(),ke=Xe.length,q=[],G=()=>{q.push(wt),wt=[],Ft=0};for(let H=0;H=Qt?(Ft>Qt&&(0,P.R8)(`"nzColumn" is ${Qt} but we have row length ${Ft}`),wt.push({title:Qe,content:ht,span:Qt-(Ft-Kt)}),G()):H===ke-1?(wt.push({title:Qe,content:ht,span:Qt-(Ft-Kt)}),G()):wt.push({title:Qe,content:ht,span:Kt})}this.itemMatrix=q}getColumn(){return"number"!=typeof this.nzColumn?this.nzColumn[this.breakpoint]:this.nzColumn}static#e=this.\u0275fac=function(Ft){return new(Ft||Mt)(t.rXU(w.yx),t.rXU(t.gRc),t.rXU(N.jp),t.rXU(x.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Mt,selectors:[["nz-descriptions"]],contentQueries:function(Ft,Qt,Xe){if(1&Ft&&t.wni(Xe,en,4),2&Ft){let ke;t.mGM(ke=t.lsd())&&(Qt.items=ke)}},hostAttrs:[1,"ant-descriptions"],hostVars:8,hostBindings:function(Ft,Qt){2&Ft&&t.AVh("ant-descriptions-bordered",Qt.nzBordered)("ant-descriptions-middle","middle"===Qt.nzSize)("ant-descriptions-small","small"===Qt.nzSize)("ant-descriptions-rtl","rtl"===Qt.dir)},inputs:{nzBordered:[2,"nzBordered","nzBordered",t.L39],nzLayout:"nzLayout",nzColumn:"nzColumn",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra",nzColon:[2,"nzColon","nzColon",t.L39]},exportAs:["nzDescriptions"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:6,vars:3,consts:[[1,"ant-descriptions-header"],[1,"ant-descriptions-view"],[1,"ant-descriptions-title"],[1,"ant-descriptions-extra"],[4,"nzStringTemplateOutlet"],[1,"ant-descriptions-row"],[1,"ant-descriptions-item",3,"colSpan"],[1,"ant-descriptions-item-container"],[1,"ant-descriptions-item-label"],[1,"ant-descriptions-item-content"],[3,"ngTemplateOutlet"],[1,"ant-descriptions-item-content",3,"colSpan"],[1,"ant-descriptions-item-label",3,"colSpan"]],template:function(Ft,Qt){1&Ft&&(t.DNE(0,ve,3,2,"div",0),t.j41(1,"div",1)(2,"table")(3,"tbody"),t.DNE(4,X,2,0)(5,rn,2,1),t.k0s()()()),2&Ft&&(t.vxM(Qt.nzTitle||Qt.nzExtra?0:-1),t.R7$(4),t.vxM("horizontal"===Qt.nzLayout?4:-1),t.R7$(),t.vxM("vertical"===Qt.nzLayout?5:-1))},dependencies:[Q.C,Q.m,z.T3],encapsulation:2,changeDetection:0})}return(0,e.Cg)([(0,w.H4)()],Mt.prototype,"nzBordered",void 0),(0,e.Cg)([(0,w.H4)()],Mt.prototype,"nzColumn",void 0),(0,e.Cg)([(0,w.H4)()],Mt.prototype,"nzSize",void 0),(0,e.Cg)([(0,w.H4)()],Mt.prototype,"nzColon",void 0),Mt})(),Dn=(()=>{class Mt{static#e=this.\u0275fac=function(Ft){return new(Ft||Mt)};static#t=this.\u0275mod=t.$C({type:Mt});static#n=this.\u0275inj=t.G2t({imports:[Jn]})}return Mt})()},9448:($t,De,a)=>{a.d(De,{g:()=>j,j:()=>z});var t=a(3953),r=a(7806);function m(R,$){if(1&R&&(t.qex(0),t.EFF(1),t.bVm()),2&R){const k=t.XpG(2);t.R7$(),t.JRh(k.nzText)}}function e(R,$){if(1&R&&(t.j41(0,"span",0),t.DNE(1,m,2,1,"ng-container",1),t.k0s()),2&R){const k=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",k.nzText)}}let z=(()=>{class R{constructor(){this.nzType="horizontal",this.nzOrientation="center",this.nzDashed=!1,this.nzPlain=!1}static#e=this.\u0275fac=function(I){return new(I||R)};static#t=this.\u0275cmp=t.VBU({type:R,selectors:[["nz-divider"]],hostAttrs:[1,"ant-divider"],hostVars:16,hostBindings:function(I,w){2&I&&t.AVh("ant-divider-horizontal","horizontal"===w.nzType)("ant-divider-vertical","vertical"===w.nzType)("ant-divider-with-text",w.nzText)("ant-divider-plain",w.nzPlain)("ant-divider-with-text-left",w.nzText&&"left"===w.nzOrientation)("ant-divider-with-text-right",w.nzText&&"right"===w.nzOrientation)("ant-divider-with-text-center",w.nzText&&"center"===w.nzOrientation)("ant-divider-dashed",w.nzDashed)},inputs:{nzText:"nzText",nzType:"nzType",nzOrientation:"nzOrientation",nzDashed:[2,"nzDashed","nzDashed",t.L39],nzPlain:[2,"nzPlain","nzPlain",t.L39]},exportAs:["nzDivider"],standalone:!0,features:[t.GFd,t.aNF],decls:1,vars:1,consts:[[1,"ant-divider-inner-text"],[4,"nzStringTemplateOutlet"]],template:function(I,w){1&I&&t.DNE(0,e,2,1,"span",0),2&I&&t.vxM(w.nzText?0:-1)},dependencies:[r.C,r.m],encapsulation:2,changeDetection:0})}return R})(),j=(()=>{class R{static#e=this.\u0275fac=function(I){return new(I||R)};static#t=this.\u0275mod=t.$C({type:R});static#n=this.\u0275inj=t.G2t({imports:[z]})}return R})()},2602:($t,De,a)=>{a.d(De,{Cu:()=>He,h4:()=>Tt,j3:()=>se,wQ:()=>Vt});var t=a(4707),r=a(7336),m=a(6939),e=a(3953),z=a(1413),j=a(4412),R=a(7786),$=a(3726),k=a(983),I=a(4572),w=a(3703),P=a(6354),Q=a(5558),N=a(5964),x=a(3798),oe=a(3294),ee=a(6977),Ee=a(6042),Ie=a(5463),ce=a(7987),Pe=a(6860),ve=a(1868),pe=a(513),U=a(177),M=a(713),te=a(6841),ge=a(8203);const T=["*"];function D(ft,St){if(1&ft){const kt=e.RV6();e.j41(0,"div",0),e.bIt("@slideMotion.done",function(rn){e.eBV(kt);const en=e.XpG();return e.Njj(en.onAnimationEvent(rn))})("mouseenter",function(){e.eBV(kt);const rn=e.XpG();return e.Njj(rn.setMouseState(!0))})("mouseleave",function(){e.eBV(kt);const rn=e.XpG();return e.Njj(rn.setMouseState(!1))}),e.SdG(1),e.k0s()}if(2&ft){const kt=e.XpG();e.AVh("ant-dropdown-rtl","rtl"===kt.dir),e.Y8G("ngClass",kt.nzOverlayClassName)("ngStyle",kt.nzOverlayStyle)("@slideMotion",void 0)("@.disabled",!(null==kt.noAnimation||!kt.noAnimation.nzNoAnimation))("nzNoAnimation",null==kt.noAnimation?null:kt.noAnimation.nzNoAnimation)}}const X=[Ie.pn.bottomLeft,Ie.pn.bottomRight,Ie.pn.topRight,Ie.pn.topLeft];let se=(()=>{class ft{setDropdownMenuValue(kt,It){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(kt,It)}constructor(kt,It,rn,en,Xt,Tn){this.nzConfigService=kt,this.elementRef=It,this.overlay=rn,this.renderer=en,this.viewContainerRef=Xt,this.platform=Tn,this._nzModuleName="dropDown",this.overlayRef=null,this.destroy$=new z.B,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new j.t(!1),this.nzTrigger$=new j.t("hover"),this.overlayClose$=new z.B,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new e.bkB}ngAfterViewInit(){if(this.nzDropdownMenu){const kt=this.elementRef.nativeElement,It=(0,R.h)((0,$.R)(kt,"mouseenter").pipe((0,w.u)(!0)),(0,$.R)(kt,"mouseleave").pipe((0,w.u)(!1))),en=(0,R.h)(this.nzDropdownMenu.mouseState$,It),Xt=(0,$.R)(kt,"click").pipe((0,P.T)(()=>!this.nzVisible)),Tn=this.nzTrigger$.pipe((0,Q.n)(Ut=>"hover"===Ut?en:"click"===Ut?Xt:k.w)),Jn=this.nzDropdownMenu.descendantMenuItemClick$.pipe((0,N.p)(()=>this.nzClickHide),(0,w.u)(!1)),Dn=(0,R.h)(Tn,Jn,this.overlayClose$).pipe((0,N.p)(()=>!this.nzDisabled)),Mt=(0,R.h)(this.inputVisible$,Dn);(0,I.z)([Mt,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe((0,P.T)(([Ut,wt])=>Ut||wt),(0,x.Z)(150),(0,oe.F)(),(0,N.p)(()=>this.platform.isBrowser),(0,ee.Q)(this.destroy$)).subscribe(Ut=>{const Ft=(this.nzMatchWidthElement?this.nzMatchWidthElement.nativeElement:kt).getBoundingClientRect().width;this.nzVisible!==Ut&&this.nzVisibleChange.emit(Ut),this.nzVisible=Ut,Ut?(this.overlayRef?this.overlayRef.getConfig().minWidth=Ft:(this.overlayRef=this.overlay.create({positionStrategy:this.positionStrategy,minWidth:Ft,disposeOnNavigation:!0,hasBackdrop:this.nzBackdrop&&"click"===this.nzTrigger,scrollStrategy:this.overlay.scrollStrategies.reposition()}),(0,R.h)(this.overlayRef.backdropClick(),this.overlayRef.detachments(),this.overlayRef.outsidePointerEvents().pipe((0,N.p)(Qt=>!this.elementRef.nativeElement.contains(Qt.target))),this.overlayRef.keydownEvents().pipe((0,N.p)(Qt=>Qt.keyCode===r._f&&!(0,r.rp)(Qt)))).pipe((0,ee.Q)(this.destroy$)).subscribe(()=>{this.overlayClose$.next(!1)})),this.positionStrategy.withPositions([Ie.pn[this.nzPlacement],...X]),(!this.portal||this.portal.templateRef!==this.nzDropdownMenu.templateRef)&&(this.portal=new m.VA(this.nzDropdownMenu.templateRef,this.viewContainerRef)),this.overlayRef.attach(this.portal)):this.overlayRef&&this.overlayRef.detach()}),this.nzDropdownMenu.animationStateChange$.pipe((0,ee.Q)(this.destroy$)).subscribe(Ut=>{"void"===Ut.toState&&(this.overlayRef&&this.overlayRef.dispose(),this.overlayRef=null)})}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}ngOnChanges(kt){const{nzVisible:It,nzDisabled:rn,nzOverlayClassName:en,nzOverlayStyle:Xt,nzTrigger:Tn}=kt;if(Tn&&this.nzTrigger$.next(this.nzTrigger),It&&this.inputVisible$.next(this.nzVisible),rn){const Jn=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(Jn,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(Jn,"disabled")}en&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),Xt&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle)}static#e=this.\u0275fac=function(It){return new(It||ft)(e.rXU(Ee.yx),e.rXU(e.aKT),e.rXU(ce.hJ),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(Pe.OD))};static#t=this.\u0275dir=e.FsC({type:ft,selectors:[["","nz-dropdown",""]],hostAttrs:[1,"ant-dropdown-trigger"],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:[2,"nzBackdrop","nzBackdrop",e.L39],nzClickHide:[2,"nzClickHide","nzClickHide",e.L39],nzDisabled:[2,"nzDisabled","nzDisabled",e.L39],nzVisible:[2,"nzVisible","nzVisible",e.L39],nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],standalone:!0,features:[e.GFd,e.OA$]})}return(0,t.Cg)([(0,Ee.H4)()],ft.prototype,"nzBackdrop",void 0),ft})(),je=(()=>{class ft{static#e=this.\u0275fac=function(It){return new(It||ft)};static#t=this.\u0275mod=e.$C({type:ft});static#n=this.\u0275inj=e.G2t({})}return ft})(),Tt=(()=>{class ft{constructor(kt,It,rn){this.renderer=kt,this.nzButtonGroupComponent=It,this.elementRef=rn}ngAfterViewInit(){const kt=this.renderer.parentNode(this.elementRef.nativeElement);this.nzButtonGroupComponent&&kt&&this.renderer.addClass(kt,"ant-dropdown-button")}static#e=this.\u0275fac=function(It){return new(It||ft)(e.rXU(e.sFG),e.rXU(pe.dn,9),e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:ft,selectors:[["","nz-button","","nz-dropdown",""]],standalone:!0})}return ft})(),Vt=(()=>{class ft{onAnimationEvent(kt){this.animationStateChange$.emit(kt)}setMouseState(kt){this.mouseState$.next(kt)}setValue(kt,It){this[kt]=It,this.cdr.markForCheck()}constructor(kt,It,rn,en,Xt,Tn,Jn){this.cdr=kt,this.elementRef=It,this.renderer=rn,this.viewContainerRef=en,this.nzMenuService=Xt,this.directionality=Tn,this.noAnimation=Jn,this.mouseState$=new j.t(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.animationStateChange$=new e.bkB,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new z.B}ngOnInit(){this.directionality.change?.pipe((0,ee.Q)(this.destroy$)).subscribe(kt=>{this.dir=kt,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterContentInit(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(It){return new(It||ft)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(ve.$1),e.rXU(ge.dS,8),e.rXU(te.z,9))};static#t=this.\u0275cmp=e.VBU({type:ft,selectors:[["nz-dropdown-menu"]],viewQuery:function(It,rn){if(1&It&&e.GBs(e.C4Q,7),2&It){let en;e.mGM(en=e.lsd())&&(rn.templateRef=en.first)}},exportAs:["nzDropdownMenu"],standalone:!0,features:[e.Jv_([ve.$1,{provide:ve.ek,useValue:!0}]),e.aNF],ngContentSelectors:T,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"mouseenter","mouseleave","ngClass","ngStyle","nzNoAnimation"]],template:function(It,rn){1&It&&(e.NAR(),e.DNE(0,D,2,7,"ng-template"))},dependencies:[U.YU,U.B3,te.z],encapsulation:2,data:{animation:[M.U1]},changeDetection:0})}return ft})(),He=(()=>{class ft{static#e=this.\u0275fac=function(It){return new(It||ft)};static#t=this.\u0275mod=e.$C({type:ft});static#n=this.\u0275inj=e.G2t({imports:[je,ve.GP]})}return ft})();new ce.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new ce.uH({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new ce.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new ce.uH({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},1672:($t,De,a)=>{a.d(De,{E8:()=>je,RW:()=>X,_v:()=>Bt});var t=a(6939),r=a(3953),m=a(1413),e=a(6977),z=a(9172),j=a(7806),R=a(6914),$=a(6042);function k(Tt,Vt){if(1&Tt&&(r.qex(0),r.nrm(1,"img",4),r.bVm()),2&Tt){const He=r.XpG(2);r.R7$(),r.Y8G("src",He.nzNotFoundImage,r.B4B)("alt",He.isContentString?He.nzNotFoundContent:"empty")}}function I(Tt,Vt){if(1&Tt&&r.DNE(0,k,2,2,"ng-container",3),2&Tt){const He=r.XpG();r.Y8G("nzStringTemplateOutlet",He.nzNotFoundImage)}}function w(Tt,Vt){1&Tt&&r.nrm(0,"nz-empty-simple")}function P(Tt,Vt){1&Tt&&r.nrm(0,"nz-empty-default")}function Q(Tt,Vt){if(1&Tt&&r.DNE(0,w,1,0,"nz-empty-simple")(1,P,1,0,"nz-empty-default"),2&Tt){const He=r.XpG();r.vxM("simple"===He.nzNotFoundImage?0:1)}}function N(Tt,Vt){if(1&Tt&&(r.qex(0),r.EFF(1),r.bVm()),2&Tt){const He=r.XpG(2);r.R7$(),r.SpI(" ",He.isContentString?He.nzNotFoundContent:He.locale.description," ")}}function x(Tt,Vt){if(1&Tt&&(r.j41(0,"p",1),r.DNE(1,N,2,1,"ng-container",3),r.k0s()),2&Tt){const He=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",He.nzNotFoundContent)}}function oe(Tt,Vt){if(1&Tt&&(r.qex(0),r.EFF(1),r.bVm()),2&Tt){const He=r.XpG(2);r.R7$(),r.SpI(" ",He.nzNotFoundFooter," ")}}function ee(Tt,Vt){if(1&Tt&&(r.j41(0,"div",2),r.DNE(1,oe,2,1,"ng-container",3),r.k0s()),2&Tt){const He=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",He.nzNotFoundFooter)}}function Ee(Tt,Vt){if(1&Tt&&r.EFF(0),2&Tt){const He=r.XpG(2);r.SpI(" ",He.content," ")}}function Ie(Tt,Vt){}function ce(Tt,Vt){if(1&Tt&&r.DNE(0,Ie,0,0,"ng-template",0),2&Tt){const He=r.XpG(2);r.Y8G("cdkPortalOutlet",He.contentPortal)}}function Pe(Tt,Vt){if(1&Tt&&r.DNE(0,Ee,1,1)(1,ce,1,1,null,0),2&Tt){const He=r.XpG();r.vxM("string"===He.contentType?0:1)}}function ve(Tt,Vt){1&Tt&&r.nrm(0,"nz-empty",1)}function pe(Tt,Vt){1&Tt&&r.nrm(0,"nz-empty",2)}function U(Tt,Vt){1&Tt&&r.nrm(0,"nz-empty")}function M(Tt,Vt){if(1&Tt&&r.DNE(0,ve,1,0,"nz-empty",1)(1,pe,1,0,"nz-empty",2)(2,U,1,0,"nz-empty"),2&Tt){let He;const xt=r.XpG(2);r.vxM("normal"===(He=xt.size)?0:"small"===He?1:2)}}function te(Tt,Vt){if(1&Tt&&r.DNE(0,M,3,1),2&Tt){const He=r.XpG();r.vxM(null!==He.specificContent?0:-1)}}const ge=new r.nKC("nz-empty-component-name");let T=(()=>{class Tt{static#e=this.\u0275fac=function(xt){return new(xt||Tt)};static#t=this.\u0275cmp=r.VBU({type:Tt,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],standalone:!0,features:[r.aNF],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(xt,Lt){1&xt&&(r.qSk(),r.j41(0,"svg",0)(1,"g",1)(2,"g",2),r.nrm(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),r.k0s(),r.nrm(8,"path",8),r.j41(9,"g",9),r.nrm(10,"ellipse",10)(11,"path",11),r.k0s()()())},encapsulation:2,changeDetection:0})}return Tt})(),D=(()=>{class Tt{static#e=this.\u0275fac=function(xt){return new(xt||Tt)};static#t=this.\u0275cmp=r.VBU({type:Tt,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],standalone:!0,features:[r.aNF],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(xt,Lt){1&xt&&(r.qSk(),r.j41(0,"svg",0)(1,"g",1),r.nrm(2,"ellipse",2),r.j41(3,"g",3),r.nrm(4,"path",4)(5,"path",5),r.k0s()()())},encapsulation:2,changeDetection:0})}return Tt})();const A=["default","simple"];let X=(()=>{class Tt{constructor(He,xt){this.i18n=He,this.cdr=xt,this.nzNotFoundImage="default",this.isContentString=!1,this.isImageBuildIn=!0,this.destroy$=new m.B}ngOnChanges(He){const{nzNotFoundContent:xt,nzNotFoundImage:Lt}=He;if(xt&&(this.isContentString="string"==typeof xt.currentValue),Lt){const ft=Lt.currentValue||"default";this.isImageBuildIn=A.findIndex(St=>St===ft)>-1}}ngOnInit(){this.i18n.localeChange.pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(xt){return new(xt||Tt)(r.rXU(R.Og),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:Tt,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],standalone:!0,features:[r.OA$,r.aNF],decls:5,vars:3,consts:[[1,"ant-empty-image"],[1,"ant-empty-description"],[1,"ant-empty-footer"],[4,"nzStringTemplateOutlet"],[3,"src","alt"]],template:function(xt,Lt){1&xt&&(r.j41(0,"div",0),r.DNE(1,I,1,1,"ng-container")(2,Q,2,1),r.k0s(),r.DNE(3,x,2,1,"p",1)(4,ee,2,1,"div",2)),2&xt&&(r.R7$(),r.vxM(Lt.isImageBuildIn?2:1),r.R7$(2),r.vxM(null!==Lt.nzNotFoundContent?3:-1),r.R7$(),r.vxM(Lt.nzNotFoundFooter?4:-1))},dependencies:[j.C,j.m,T,D],encapsulation:2,changeDetection:0})}return Tt})(),je=(()=>{class Tt{constructor(He,xt,Lt,ft){this.configService=He,this.viewContainerRef=xt,this.cdr=Lt,this.injector=ft,this.contentType="string",this.size="",this.destroy$=new m.B}ngOnChanges(He){He.nzComponentName&&(this.size=function se(Tt){switch(Tt){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}(He.nzComponentName.currentValue)),He.specificContent&&!He.specificContent.isFirstChange()&&(this.content=He.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.subscribeDefaultEmptyContentChange()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}renderEmpty(){const He=this.content;if("string"==typeof He)this.contentType="string";else if(He instanceof r.C4Q){const xt={$implicit:this.nzComponentName};this.contentType="template",this.contentPortal=new t.VA(He,this.viewContainerRef,xt)}else if(He instanceof r.ZUJ){const xt=r.zZn.create({parent:this.injector,providers:[{provide:ge,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new t.A8(He,this.viewContainerRef,xt)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}subscribeDefaultEmptyContentChange(){this.configService.getConfigChangeEventForComponent("empty").pipe((0,z.Z)(!0),(0,e.Q)(this.destroy$)).subscribe(()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}static#e=this.\u0275fac=function(xt){return new(xt||Tt)(r.rXU($.yx),r.rXU(r.c1b),r.rXU(r.gRc),r.rXU(r.zZn))};static#t=this.\u0275cmp=r.VBU({type:Tt,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],standalone:!0,features:[r.OA$,r.aNF],decls:2,vars:1,consts:[[3,"cdkPortalOutlet"],["nzNotFoundImage","simple",1,"ant-empty-normal"],["nzNotFoundImage","simple",1,"ant-empty-small"]],template:function(xt,Lt){1&xt&&r.DNE(0,Pe,2,1)(1,te,1,1),2&xt&&r.vxM(Lt.content?0:1)},dependencies:[X,t.jc,t.I3],encapsulation:2,changeDetection:0})}return Tt})(),Bt=(()=>{class Tt{static#e=this.\u0275fac=function(xt){return new(xt||Tt)};static#t=this.\u0275mod=r.$C({type:Tt});static#n=this.\u0275inj=r.G2t({imports:[X,je]})}return Tt})()},8927:($t,De,a)=>{a.d(De,{CA:()=>Bt,Ls:()=>X,Mo:()=>He,PQ:()=>ft,zS:()=>Tt});var t=a(3953),r=a(7529),m=a(177),e=a(9417),z=a(1413),j=a(8359),R=a(5964),$=a(6354),k=a(6977),I=a(9172),w=a(8141),P=a(713),Q=a(7891),N=a(7806),x=a(317),oe=a(6914),ee=a(4707),Ee=a(6042),Ie=a(8203),ce=a(5103),Pe=a(5154);const ve=["*"],pe=St=>[St],U=St=>({$implicit:St});function M(St,kt){if(1&St&&(t.qex(0),t.EFF(1),t.bVm()),2&St){const It=t.XpG(2);t.R7$(),t.JRh(It.innerTip)}}function te(St,kt){if(1&St&&(t.j41(0,"div",2)(1,"div",4),t.DNE(2,M,2,1,"ng-container",5),t.k0s()()),2&St){const It=t.XpG();t.Y8G("@helpMotion",void 0),t.R7$(),t.Y8G("ngClass",t.eq3(4,pe,"ant-form-item-explain-"+It.status)),t.R7$(),t.Y8G("nzStringTemplateOutlet",It.innerTip)("nzStringTemplateOutletContext",t.eq3(6,U,It.validateControl))}}function ge(St,kt){if(1&St&&(t.qex(0),t.EFF(1),t.bVm()),2&St){const It=t.XpG(2);t.R7$(),t.JRh(It.nzExtra)}}function T(St,kt){if(1&St&&(t.j41(0,"div",3),t.DNE(1,ge,2,1,"ng-container",6),t.k0s()),2&St){const It=t.XpG();t.R7$(),t.Y8G("nzStringTemplateOutlet",It.nzExtra)}}function D(St,kt){if(1&St&&(t.qex(0),t.nrm(1,"span",2),t.bVm()),2&St){const It=kt.$implicit,rn=t.XpG(2);t.R7$(),t.Y8G("nzType",It)("nzTheme",rn.tooltipIcon.theme)}}function A(St,kt){if(1&St&&(t.j41(0,"span",0),t.DNE(1,D,2,2,"ng-container",1),t.k0s()),2&St){const It=t.XpG();t.Y8G("nzTooltipTitle",It.nzTooltipTitle),t.R7$(),t.Y8G("nzStringTemplateOutlet",It.tooltipIcon.type)}}let X=(()=>{class St{setWithHelpViaTips(It){this.withHelpClass=It,this.cdr.markForCheck()}setStatus(It){this.status=It,this.cdr.markForCheck()}setHasFeedback(It){this.hasFeedback=It,this.cdr.markForCheck()}constructor(It){this.cdr=It,this.status="",this.hasFeedback=!1,this.withHelpClass=!1,this.destroy$=new z.B}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(rn){return new(rn||St)(t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:St,selectors:[["nz-form-item"]],hostAttrs:[1,"ant-form-item"],hostVars:12,hostBindings:function(rn,en){2&rn&&t.AVh("ant-form-item-has-success","success"===en.status)("ant-form-item-has-warning","warning"===en.status)("ant-form-item-has-error","error"===en.status)("ant-form-item-is-validating","validating"===en.status)("ant-form-item-has-feedback",en.hasFeedback&&en.status)("ant-form-item-with-help",en.withHelpClass)},exportAs:["nzFormItem"],standalone:!0,features:[t.aNF],ngContentSelectors:ve,decls:1,vars:0,template:function(rn,en){1&rn&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return St})();const je={type:"question-circle",theme:"outline"};let Bt=(()=>{class St{getInputObservable(It){return this.inputChanges$.pipe((0,R.p)(rn=>It in rn),(0,$.T)(rn=>rn[It]))}constructor(It,rn){this.nzConfigService=It,this.directionality=rn,this._nzModuleName="form",this.nzLayout="horizontal",this.nzNoColon=!1,this.nzAutoTips={},this.nzDisableAutoTips=!1,this.nzTooltipIcon=je,this.nzLabelAlign="right",this.nzLabelWrap=!1,this.dir="ltr",this.destroy$=new z.B,this.inputChanges$=new z.B,this.dir=this.directionality.value,this.directionality.change?.pipe((0,k.Q)(this.destroy$)).subscribe(en=>{this.dir=en})}ngOnChanges(It){this.inputChanges$.next(It)}ngOnDestroy(){this.inputChanges$.complete(),this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(rn){return new(rn||St)(t.rXU(Ee.yx),t.rXU(Ie.dS,8))};static#t=this.\u0275dir=t.FsC({type:St,selectors:[["","nz-form",""]],hostAttrs:[1,"ant-form"],hostVars:8,hostBindings:function(rn,en){2&rn&&t.AVh("ant-form-horizontal","horizontal"===en.nzLayout)("ant-form-vertical","vertical"===en.nzLayout)("ant-form-inline","inline"===en.nzLayout)("ant-form-rtl","rtl"===en.dir)},inputs:{nzLayout:"nzLayout",nzNoColon:[2,"nzNoColon","nzNoColon",t.L39],nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",t.L39],nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",t.L39]},exportAs:["nzForm"],standalone:!0,features:[t.GFd,t.OA$]})}return(0,ee.Cg)([(0,Ee.H4)()],St.prototype,"nzNoColon",void 0),(0,ee.Cg)([(0,Ee.H4)()],St.prototype,"nzAutoTips",void 0),(0,ee.Cg)([(0,Ee.H4)()],St.prototype,"nzTooltipIcon",void 0),(0,ee.Cg)([(0,Ee.H4)()],St.prototype,"nzLabelWrap",void 0),St})(),Tt=(()=>{class St{get disableAutoTips(){return void 0!==this.nzDisableAutoTips?(0,x.G4)(this.nzDisableAutoTips):this.nzFormDirective?.nzDisableAutoTips}set nzHasFeedback(It){this._hasFeedback=It,this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this._hasFeedback}),this.nzFormItemComponent&&this.nzFormItemComponent.setHasFeedback(this._hasFeedback)}get nzHasFeedback(){return this._hasFeedback}set nzValidateStatus(It){It instanceof e.EL||It instanceof e.vS?(this.validateControl=It,this.validateString=null,this.watchControl()):It instanceof e.JD?(this.validateControl=It.control,this.validateString=null,this.watchControl()):(this.validateString=It,this.validateControl=null,this.setStatus())}watchControl(){this.validateChanges.unsubscribe(),this.validateControl&&this.validateControl.statusChanges&&(this.validateChanges=this.validateControl.statusChanges.pipe((0,I.Z)(null),(0,k.Q)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck()}))}setStatus(){this.status=this.getControlStatus(this.validateString),this.innerTip=this.getInnerTip(this.status),this.nzFormStatusService.formStatusChanges.next({status:this.status,hasFeedback:this.nzHasFeedback}),this.nzFormItemComponent&&(this.nzFormItemComponent.setWithHelpViaTips(!!this.innerTip),this.nzFormItemComponent.setStatus(this.status))}getControlStatus(It){let rn;return rn="warning"===It||this.validateControlStatus("INVALID","warning")?"warning":"error"===It||this.validateControlStatus("INVALID")?"error":"validating"===It||"pending"===It||this.validateControlStatus("PENDING")?"validating":"success"===It||this.validateControlStatus("VALID")?"success":"",rn}validateControlStatus(It,rn){if(this.validateControl){const{dirty:en,touched:Xt,status:Tn}=this.validateControl;return(!!en||!!Xt)&&(rn?this.validateControl.hasError(rn):Tn===It)}return!1}getInnerTip(It){switch(It){case"error":return!this.disableAutoTips&&this.autoErrorTip||this.nzErrorTip||null;case"validating":return this.nzValidatingTip||null;case"success":return this.nzSuccessTip||null;case"warning":return this.nzWarningTip||null;default:return null}}updateAutoErrorTip(){if(this.validateControl){const It=this.validateControl.errors||{};let rn="";for(const en in It)if(It.hasOwnProperty(en)&&(rn=It[en]?.[this.localeId]??this.nzAutoTips?.[this.localeId]?.[en]??this.nzAutoTips.default?.[en]??this.nzFormDirective?.nzAutoTips?.[this.localeId]?.[en]??this.nzFormDirective?.nzAutoTips.default?.[en]),rn)break;this.autoErrorTip=rn}}subscribeAutoTips(It){It?.pipe((0,k.Q)(this.destroyed$)).subscribe(()=>{this.disableAutoTips||(this.updateAutoErrorTip(),this.setStatus(),this.cdr.markForCheck())})}constructor(It,rn,en,Xt,Tn){this.nzFormItemComponent=It,this.cdr=rn,this.nzFormDirective=Xt,this.nzFormStatusService=Tn,this._hasFeedback=!1,this.validateChanges=j.yU.EMPTY,this.validateString=null,this.destroyed$=new z.B,this.status="",this.validateControl=null,this.innerTip=null,this.nzAutoTips={},this.subscribeAutoTips(en.localeChange.pipe((0,w.M)(Jn=>this.localeId=Jn.locale))),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzAutoTips")),this.subscribeAutoTips(this.nzFormDirective?.getInputObservable("nzDisableAutoTips").pipe((0,R.p)(()=>void 0===this.nzDisableAutoTips)))}ngOnChanges(It){const{nzDisableAutoTips:rn,nzAutoTips:en,nzSuccessTip:Xt,nzWarningTip:Tn,nzErrorTip:Jn,nzValidatingTip:Dn}=It;rn||en?(this.updateAutoErrorTip(),this.setStatus()):(Xt||Tn||Jn||Dn)&&this.setStatus()}ngOnInit(){this.setStatus()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}ngAfterContentInit(){!this.validateControl&&!this.validateString&&(this.nzValidateStatus=this.defaultValidateControl instanceof e.l_?this.defaultValidateControl.control:this.defaultValidateControl)}static#e=this.\u0275fac=function(rn){return new(rn||St)(t.rXU(X,9),t.rXU(t.gRc),t.rXU(oe.Og),t.rXU(Bt,8),t.rXU(Q.is))};static#t=this.\u0275cmp=t.VBU({type:St,selectors:[["nz-form-control"]],contentQueries:function(rn,en,Xt){if(1&rn&&t.wni(Xt,e.vO,5),2&rn){let Tn;t.mGM(Tn=t.lsd())&&(en.defaultValidateControl=Tn.first)}},hostAttrs:[1,"ant-form-item-control"],inputs:{nzSuccessTip:"nzSuccessTip",nzWarningTip:"nzWarningTip",nzErrorTip:"nzErrorTip",nzValidatingTip:"nzValidatingTip",nzExtra:"nzExtra",nzAutoTips:"nzAutoTips",nzDisableAutoTips:[2,"nzDisableAutoTips","nzDisableAutoTips",t.L39],nzHasFeedback:[2,"nzHasFeedback","nzHasFeedback",t.L39],nzValidateStatus:"nzValidateStatus"},exportAs:["nzFormControl"],standalone:!0,features:[t.Jv_([Q.is]),t.GFd,t.OA$,t.aNF],ngContentSelectors:ve,decls:5,vars:2,consts:[[1,"ant-form-item-control-input"],[1,"ant-form-item-control-input-content"],[1,"ant-form-item-explain","ant-form-item-explain-connected"],[1,"ant-form-item-extra"],["role","alert",3,"ngClass"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[4,"nzStringTemplateOutlet"]],template:function(rn,en){1&rn&&(t.NAR(),t.j41(0,"div",0)(1,"div",1),t.SdG(2),t.k0s()(),t.DNE(3,te,3,8,"div",2)(4,T,2,1,"div",3)),2&rn&&(t.R7$(3),t.vxM(en.innerTip?3:-1),t.R7$(),t.vxM(en.nzExtra?4:-1))},dependencies:[m.YU,N.C,N.m],encapsulation:2,data:{animation:[P.W4]},changeDetection:0})}return St})();function Vt(St){return{...je,..."string"==typeof St?{type:St}:St}}let He=(()=>{class St{set nzNoColon(It){this.noColon=It}get nzNoColon(){return"default"!==this.noColon?this.noColon:this.nzFormDirective?.nzNoColon}set nzTooltipIcon(It){this._tooltipIcon=Vt(It)}get tooltipIcon(){return"default"!==this._tooltipIcon?this._tooltipIcon:Vt(this.nzFormDirective?.nzTooltipIcon||je)}set nzLabelAlign(It){this.labelAlign=It}get nzLabelAlign(){return"default"!==this.labelAlign?this.labelAlign:this.nzFormDirective?.nzLabelAlign||"right"}set nzLabelWrap(It){this.labelWrap=It}get nzLabelWrap(){return"default"!==this.labelWrap?this.labelWrap:this.nzFormDirective?.nzLabelWrap}constructor(It,rn){this.cdr=It,this.nzFormDirective=rn,this.nzRequired=!1,this.noColon="default",this._tooltipIcon="default",this.labelAlign="default",this.labelWrap="default",this.destroy$=new z.B,this.nzFormDirective&&(this.nzFormDirective.getInputObservable("nzNoColon").pipe((0,R.p)(()=>"default"===this.noColon),(0,k.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzTooltipIcon").pipe((0,R.p)(()=>"default"===this._tooltipIcon),(0,k.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelAlign").pipe((0,R.p)(()=>"default"===this.labelAlign),(0,k.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.nzFormDirective.getInputObservable("nzLabelWrap").pipe((0,R.p)(()=>"default"===this.labelWrap),(0,k.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(rn){return new(rn||St)(t.rXU(t.gRc),t.rXU(Bt,12))};static#t=this.\u0275cmp=t.VBU({type:St,selectors:[["nz-form-label"]],hostAttrs:[1,"ant-form-item-label"],hostVars:4,hostBindings:function(rn,en){2&rn&&t.AVh("ant-form-item-label-left","left"===en.nzLabelAlign)("ant-form-item-label-wrap",en.nzLabelWrap)},inputs:{nzFor:"nzFor",nzRequired:[2,"nzRequired","nzRequired",t.L39],nzNoColon:[2,"nzNoColon","nzNoColon",t.L39],nzTooltipTitle:"nzTooltipTitle",nzTooltipIcon:"nzTooltipIcon",nzLabelAlign:"nzLabelAlign",nzLabelWrap:[2,"nzLabelWrap","nzLabelWrap",t.L39]},exportAs:["nzFormLabel"],standalone:!0,features:[t.GFd,t.aNF],ngContentSelectors:ve,decls:3,vars:6,consts:[["nz-tooltip","",1,"ant-form-item-tooltip",3,"nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType","nzTheme"]],template:function(rn,en){1&rn&&(t.NAR(),t.j41(0,"label"),t.SdG(1),t.DNE(2,A,2,2,"span",0),t.k0s()),2&rn&&(t.AVh("ant-form-item-no-colon",en.nzNoColon)("ant-form-item-required",en.nzRequired),t.BMQ("for",en.nzFor),t.R7$(2),t.vxM(en.nzTooltipTitle?2:-1))},dependencies:[N.C,N.m,Pe.LH,ce.Y3,ce.Dn],encapsulation:2,changeDetection:0})}return St})(),ft=(()=>{class St{static#e=this.\u0275fac=function(rn){return new(rn||St)};static#t=this.\u0275mod=t.$C({type:St});static#n=this.\u0275inj=t.G2t({imports:[He,Tt,r.f3]})}return St})()},7529:($t,De,a)=>{a.d(De,{Uq:()=>w,e:()=>I,f3:()=>P});var t=a(3953),r=a(2771),m=a(1413),e=a(6977),z=a(1025),j=a(9327),R=a(6860),$=a(8203),k=a(317);let I=(()=>{class Q{getGutter(){const x=[null,null],oe=this.nzGutter||0;return(Array.isArray(oe)?oe:[oe,null]).forEach((Ee,Ie)=>{"object"==typeof Ee&&null!==Ee?(x[Ie]=null,Object.keys(z.fe).map(ce=>{const Pe=ce;this.mediaMatcher.matchMedia(z.fe[Pe]).matches&&Ee[Pe]&&(x[Ie]=Ee[Pe])})):x[Ie]=Number(Ee)||null}),x}setGutterStyle(){const[x,oe]=this.getGutter();this.actualGutter$.next([x,oe]);const ee=(Ee,Ie)=>{null!==Ie&&this.renderer.setStyle(this.elementRef.nativeElement,Ee,`-${Ie/2}px`)};ee("margin-left",x),ee("margin-right",x),ee("margin-top",oe),ee("margin-bottom",oe)}constructor(x,oe,ee,Ee,Ie,ce,Pe){this.elementRef=x,this.renderer=oe,this.mediaMatcher=ee,this.ngZone=Ee,this.platform=Ie,this.breakpointService=ce,this.directionality=Pe,this.nzAlign=null,this.nzJustify=null,this.nzGutter=null,this.actualGutter$=new r.m(1),this.dir="ltr",this.destroy$=new m.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(x=>{this.dir=x}),this.setGutterStyle()}ngOnChanges(x){x.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(z.fe).pipe((0,e.Q)(this.destroy$)).subscribe(()=>{this.setGutterStyle()})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(oe){return new(oe||Q)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(j.DY),t.rXU(t.SKi),t.rXU(R.OD),t.rXU(z.jp),t.rXU($.dS,8))};static#t=this.\u0275dir=t.FsC({type:Q,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(oe,ee){2&oe&&t.AVh("ant-row-top","top"===ee.nzAlign)("ant-row-middle","middle"===ee.nzAlign)("ant-row-bottom","bottom"===ee.nzAlign)("ant-row-start","start"===ee.nzJustify)("ant-row-end","end"===ee.nzJustify)("ant-row-center","center"===ee.nzJustify)("ant-row-space-around","space-around"===ee.nzJustify)("ant-row-space-between","space-between"===ee.nzJustify)("ant-row-space-evenly","space-evenly"===ee.nzJustify)("ant-row-rtl","rtl"===ee.dir)},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],standalone:!0,features:[t.OA$]})}return Q})(),w=(()=>{class Q{setHostClassMap(){const x={"ant-col":!0,[`ant-col-${this.nzSpan}`]:(0,k.n9)(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:(0,k.n9)(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:(0,k.n9)(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:(0,k.n9)(this.nzPull),[`ant-col-push-${this.nzPush}`]:(0,k.n9)(this.nzPush),"ant-col-rtl":"rtl"===this.dir,...this.generateClass()};for(const oe in this.classMap)this.classMap.hasOwnProperty(oe)&&this.renderer.removeClass(this.elementRef.nativeElement,oe);this.classMap={...x};for(const oe in this.classMap)this.classMap.hasOwnProperty(oe)&&this.classMap[oe]&&this.renderer.addClass(this.elementRef.nativeElement,oe)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(x){return"number"==typeof x?`${x} ${x} auto`:"string"==typeof x&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(x)?`0 0 ${x}`:x}generateClass(){const oe={};return["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"].forEach(ee=>{const Ee=ee.replace("nz","").toLowerCase();if((0,k.n9)(this[ee]))if("number"==typeof this[ee]||"string"==typeof this[ee])oe[`ant-col-${Ee}-${this[ee]}`]=!0;else{const Ie=this[ee];["span","pull","push","offset","order"].forEach(Pe=>{oe[`ant-col-${Ee}${"span"===Pe?"-":`-${Pe}-`}${Ie[Pe]}`]=Ie&&(0,k.n9)(Ie[Pe])})}}),oe}constructor(x,oe,ee,Ee){this.elementRef=x,this.nzRowDirective=oe,this.renderer=ee,this.directionality=Ee,this.classMap={},this.destroy$=new m.B,this.hostFlexStyle=null,this.dir="ltr",this.nzFlex=null,this.nzSpan=null,this.nzOrder=null,this.nzOffset=null,this.nzPush=null,this.nzPull=null,this.nzXs=null,this.nzSm=null,this.nzMd=null,this.nzLg=null,this.nzXl=null,this.nzXXl=null}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(x=>{this.dir=x,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(x){this.setHostClassMap();const{nzFlex:oe}=x;oe&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe((0,e.Q)(this.destroy$)).subscribe(([x,oe])=>{const ee=(Ee,Ie)=>{null!==Ie&&this.renderer.setStyle(this.elementRef.nativeElement,Ee,Ie/2+"px")};ee("padding-left",x),ee("padding-right",x),ee("padding-top",oe),ee("padding-bottom",oe)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(oe){return new(oe||Q)(t.rXU(t.aKT),t.rXU(I,9),t.rXU(t.sFG),t.rXU($.dS,8))};static#t=this.\u0275dir=t.FsC({type:Q,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(oe,ee){2&oe&&t.xc7("flex",ee.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],standalone:!0,features:[t.OA$]})}return Q})(),P=(()=>{class Q{static#e=this.\u0275fac=function(oe){return new(oe||Q)};static#t=this.\u0275mod=t.$C({type:Q});static#n=this.\u0275inj=t.G2t({})}return Q})()},6914:($t,De,a)=>{a.d(De,{cr:()=>me,_N:()=>Vo,bP:()=>Ro,Vc:()=>cs,Og:()=>$o,Bh:()=>Er});var t=a(3953),r=a(4412),m=a(3451),e=a(177),z=a(628),j=a(6190),R=a(738);function $(pt){return(0,R.A)(1,arguments),(0,j.A)(pt,{weekStartsOn:1})}var Q=a(2764),N=a(179);function oe(pt,ot){return(0,R.A)(2,arguments),function x(pt,ot){(0,R.A)(2,arguments);var we=(0,z.A)(pt).getTime(),Fe=(0,N.A)(ot);return new Date(we+Fe)}(pt,-(0,N.A)(ot))}function Ie(pt){(0,R.A)(1,arguments);var we=(0,z.A)(pt),Fe=we.getUTCDay(),fe=(Fe<1?7:0)+Fe-1;return we.setUTCDate(we.getUTCDate()-fe),we.setUTCHours(0,0,0,0),we}function ce(pt){(0,R.A)(1,arguments);var ot=(0,z.A)(pt),we=ot.getUTCFullYear(),Fe=new Date(0);Fe.setUTCFullYear(we+1,0,4),Fe.setUTCHours(0,0,0,0);var fe=Ie(Fe),rt=new Date(0);rt.setUTCFullYear(we,0,4),rt.setUTCHours(0,0,0,0);var Ue=Ie(rt);return ot.getTime()>=fe.getTime()?we+1:ot.getTime()>=Ue.getTime()?we:we-1}function pe(pt){(0,R.A)(1,arguments);var ot=(0,z.A)(pt),we=Ie(ot).getTime()-function Pe(pt){(0,R.A)(1,arguments);var ot=ce(pt),we=new Date(0);return we.setUTCFullYear(ot,0,4),we.setUTCHours(0,0,0,0),Ie(we)}(ot).getTime();return Math.round(we/6048e5)+1}var U=a(4319);function M(pt,ot){var we,Fe,fe,rt,Ue,Xn,Di,L;(0,R.A)(1,arguments);var tt=(0,U.q)(),ye=(0,N.A)(null!==(we=null!==(Fe=null!==(fe=null!==(rt=ot?.weekStartsOn)&&void 0!==rt?rt:null==ot||null===(Ue=ot.locale)||void 0===Ue||null===(Xn=Ue.options)||void 0===Xn?void 0:Xn.weekStartsOn)&&void 0!==fe?fe:tt.weekStartsOn)&&void 0!==Fe?Fe:null===(Di=tt.locale)||void 0===Di||null===(L=Di.options)||void 0===L?void 0:L.weekStartsOn)&&void 0!==we?we:0);if(!(ye>=0&&ye<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Ge=(0,z.A)(pt),jt=Ge.getUTCDay(),_n=(jt=1&&jt<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _n=new Date(0);_n.setUTCFullYear(ye+1,0,jt),_n.setUTCHours(0,0,0,0);var Vn=M(_n,ot),pi=new Date(0);pi.setUTCFullYear(ye,0,jt),pi.setUTCHours(0,0,0,0);var po=M(pi,ot);return tt.getTime()>=Vn.getTime()?ye+1:tt.getTime()>=po.getTime()?ye:ye-1}function D(pt,ot){(0,R.A)(1,arguments);var we=(0,z.A)(pt),Fe=M(we,ot).getTime()-function ge(pt,ot){var we,Fe,fe,rt,Ue,Xn,Di,L;(0,R.A)(1,arguments);var tt=(0,U.q)(),ye=(0,N.A)(null!==(we=null!==(Fe=null!==(fe=null!==(rt=ot?.firstWeekContainsDate)&&void 0!==rt?rt:null==ot||null===(Ue=ot.locale)||void 0===Ue||null===(Xn=Ue.options)||void 0===Xn?void 0:Xn.firstWeekContainsDate)&&void 0!==fe?fe:tt.firstWeekContainsDate)&&void 0!==Fe?Fe:null===(Di=tt.locale)||void 0===Di||null===(L=Di.options)||void 0===L?void 0:L.firstWeekContainsDate)&&void 0!==we?we:1),Ge=te(pt,ot),jt=new Date(0);return jt.setUTCFullYear(Ge,0,ye),jt.setUTCHours(0,0,0,0),M(jt,ot)}(we,ot).getTime();return Math.round(Fe/6048e5)+1}function A(pt,ot){for(var we=pt<0?"-":"",Fe=Math.abs(pt).toString();Fe.length0?Fe:1-Fe;return A("yy"===we?fe%100:fe,we.length)},se_M=function(ot,we){var Fe=ot.getUTCMonth();return"M"===we?String(Fe+1):A(Fe+1,2)},se_d=function(ot,we){return A(ot.getUTCDate(),we.length)},se_h=function(ot,we){return A(ot.getUTCHours()%12||12,we.length)},se_H=function(ot,we){return A(ot.getUTCHours(),we.length)},se_m=function(ot,we){return A(ot.getUTCMinutes(),we.length)},se_s=function(ot,we){return A(ot.getUTCSeconds(),we.length)},se_S=function(ot,we){var Fe=we.length,fe=ot.getUTCMilliseconds();return A(Math.floor(fe*Math.pow(10,Fe-3)),we.length)};function Tt(pt,ot){var we=pt>0?"-":"+",Fe=Math.abs(pt),fe=Math.floor(Fe/60),rt=Fe%60;if(0===rt)return we+String(fe);var Ue=ot||"";return we+String(fe)+Ue+A(rt,2)}function Vt(pt,ot){return pt%60==0?(pt>0?"-":"+")+A(Math.abs(pt)/60,2):He(pt,ot)}function He(pt,ot){var we=ot||"",Fe=pt>0?"-":"+",fe=Math.abs(pt);return Fe+A(Math.floor(fe/60),2)+we+A(fe%60,2)}const xt={G:function(ot,we,Fe){var fe=ot.getUTCFullYear()>0?1:0;switch(we){case"G":case"GG":case"GGG":return Fe.era(fe,{width:"abbreviated"});case"GGGGG":return Fe.era(fe,{width:"narrow"});default:return Fe.era(fe,{width:"wide"})}},y:function(ot,we,Fe){if("yo"===we){var fe=ot.getUTCFullYear();return Fe.ordinalNumber(fe>0?fe:1-fe,{unit:"year"})}return se_y(ot,we)},Y:function(ot,we,Fe,fe){var rt=te(ot,fe),Ue=rt>0?rt:1-rt;return"YY"===we?A(Ue%100,2):"Yo"===we?Fe.ordinalNumber(Ue,{unit:"year"}):A(Ue,we.length)},R:function(ot,we){return A(ce(ot),we.length)},u:function(ot,we){return A(ot.getUTCFullYear(),we.length)},Q:function(ot,we,Fe){var fe=Math.ceil((ot.getUTCMonth()+1)/3);switch(we){case"Q":return String(fe);case"QQ":return A(fe,2);case"Qo":return Fe.ordinalNumber(fe,{unit:"quarter"});case"QQQ":return Fe.quarter(fe,{width:"abbreviated",context:"formatting"});case"QQQQQ":return Fe.quarter(fe,{width:"narrow",context:"formatting"});default:return Fe.quarter(fe,{width:"wide",context:"formatting"})}},q:function(ot,we,Fe){var fe=Math.ceil((ot.getUTCMonth()+1)/3);switch(we){case"q":return String(fe);case"qq":return A(fe,2);case"qo":return Fe.ordinalNumber(fe,{unit:"quarter"});case"qqq":return Fe.quarter(fe,{width:"abbreviated",context:"standalone"});case"qqqqq":return Fe.quarter(fe,{width:"narrow",context:"standalone"});default:return Fe.quarter(fe,{width:"wide",context:"standalone"})}},M:function(ot,we,Fe){var fe=ot.getUTCMonth();switch(we){case"M":case"MM":return se_M(ot,we);case"Mo":return Fe.ordinalNumber(fe+1,{unit:"month"});case"MMM":return Fe.month(fe,{width:"abbreviated",context:"formatting"});case"MMMMM":return Fe.month(fe,{width:"narrow",context:"formatting"});default:return Fe.month(fe,{width:"wide",context:"formatting"})}},L:function(ot,we,Fe){var fe=ot.getUTCMonth();switch(we){case"L":return String(fe+1);case"LL":return A(fe+1,2);case"Lo":return Fe.ordinalNumber(fe+1,{unit:"month"});case"LLL":return Fe.month(fe,{width:"abbreviated",context:"standalone"});case"LLLLL":return Fe.month(fe,{width:"narrow",context:"standalone"});default:return Fe.month(fe,{width:"wide",context:"standalone"})}},w:function(ot,we,Fe,fe){var rt=D(ot,fe);return"wo"===we?Fe.ordinalNumber(rt,{unit:"week"}):A(rt,we.length)},I:function(ot,we,Fe){var fe=pe(ot);return"Io"===we?Fe.ordinalNumber(fe,{unit:"week"}):A(fe,we.length)},d:function(ot,we,Fe){return"do"===we?Fe.ordinalNumber(ot.getUTCDate(),{unit:"date"}):se_d(ot,we)},D:function(ot,we,Fe){var fe=function Ee(pt){(0,R.A)(1,arguments);var ot=(0,z.A)(pt),we=ot.getTime();ot.setUTCMonth(0,1),ot.setUTCHours(0,0,0,0);var Fe=ot.getTime();return Math.floor((we-Fe)/864e5)+1}(ot);return"Do"===we?Fe.ordinalNumber(fe,{unit:"dayOfYear"}):A(fe,we.length)},E:function(ot,we,Fe){var fe=ot.getUTCDay();switch(we){case"E":case"EE":case"EEE":return Fe.day(fe,{width:"abbreviated",context:"formatting"});case"EEEEE":return Fe.day(fe,{width:"narrow",context:"formatting"});case"EEEEEE":return Fe.day(fe,{width:"short",context:"formatting"});default:return Fe.day(fe,{width:"wide",context:"formatting"})}},e:function(ot,we,Fe,fe){var rt=ot.getUTCDay(),Ue=(rt-fe.weekStartsOn+8)%7||7;switch(we){case"e":return String(Ue);case"ee":return A(Ue,2);case"eo":return Fe.ordinalNumber(Ue,{unit:"day"});case"eee":return Fe.day(rt,{width:"abbreviated",context:"formatting"});case"eeeee":return Fe.day(rt,{width:"narrow",context:"formatting"});case"eeeeee":return Fe.day(rt,{width:"short",context:"formatting"});default:return Fe.day(rt,{width:"wide",context:"formatting"})}},c:function(ot,we,Fe,fe){var rt=ot.getUTCDay(),Ue=(rt-fe.weekStartsOn+8)%7||7;switch(we){case"c":return String(Ue);case"cc":return A(Ue,we.length);case"co":return Fe.ordinalNumber(Ue,{unit:"day"});case"ccc":return Fe.day(rt,{width:"abbreviated",context:"standalone"});case"ccccc":return Fe.day(rt,{width:"narrow",context:"standalone"});case"cccccc":return Fe.day(rt,{width:"short",context:"standalone"});default:return Fe.day(rt,{width:"wide",context:"standalone"})}},i:function(ot,we,Fe){var fe=ot.getUTCDay(),rt=0===fe?7:fe;switch(we){case"i":return String(rt);case"ii":return A(rt,we.length);case"io":return Fe.ordinalNumber(rt,{unit:"day"});case"iii":return Fe.day(fe,{width:"abbreviated",context:"formatting"});case"iiiii":return Fe.day(fe,{width:"narrow",context:"formatting"});case"iiiiii":return Fe.day(fe,{width:"short",context:"formatting"});default:return Fe.day(fe,{width:"wide",context:"formatting"})}},a:function(ot,we,Fe){var rt=ot.getUTCHours()/12>=1?"pm":"am";switch(we){case"a":case"aa":return Fe.dayPeriod(rt,{width:"abbreviated",context:"formatting"});case"aaa":return Fe.dayPeriod(rt,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return Fe.dayPeriod(rt,{width:"narrow",context:"formatting"});default:return Fe.dayPeriod(rt,{width:"wide",context:"formatting"})}},b:function(ot,we,Fe){var rt,fe=ot.getUTCHours();switch(rt=12===fe?"noon":0===fe?"midnight":fe/12>=1?"pm":"am",we){case"b":case"bb":return Fe.dayPeriod(rt,{width:"abbreviated",context:"formatting"});case"bbb":return Fe.dayPeriod(rt,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return Fe.dayPeriod(rt,{width:"narrow",context:"formatting"});default:return Fe.dayPeriod(rt,{width:"wide",context:"formatting"})}},B:function(ot,we,Fe){var rt,fe=ot.getUTCHours();switch(rt=fe>=17?"evening":fe>=12?"afternoon":fe>=4?"morning":"night",we){case"B":case"BB":case"BBB":return Fe.dayPeriod(rt,{width:"abbreviated",context:"formatting"});case"BBBBB":return Fe.dayPeriod(rt,{width:"narrow",context:"formatting"});default:return Fe.dayPeriod(rt,{width:"wide",context:"formatting"})}},h:function(ot,we,Fe){if("ho"===we){var fe=ot.getUTCHours()%12;return 0===fe&&(fe=12),Fe.ordinalNumber(fe,{unit:"hour"})}return se_h(ot,we)},H:function(ot,we,Fe){return"Ho"===we?Fe.ordinalNumber(ot.getUTCHours(),{unit:"hour"}):se_H(ot,we)},K:function(ot,we,Fe){var fe=ot.getUTCHours()%12;return"Ko"===we?Fe.ordinalNumber(fe,{unit:"hour"}):A(fe,we.length)},k:function(ot,we,Fe){var fe=ot.getUTCHours();return 0===fe&&(fe=24),"ko"===we?Fe.ordinalNumber(fe,{unit:"hour"}):A(fe,we.length)},m:function(ot,we,Fe){return"mo"===we?Fe.ordinalNumber(ot.getUTCMinutes(),{unit:"minute"}):se_m(ot,we)},s:function(ot,we,Fe){return"so"===we?Fe.ordinalNumber(ot.getUTCSeconds(),{unit:"second"}):se_s(ot,we)},S:function(ot,we){return se_S(ot,we)},X:function(ot,we,Fe,fe){var Ue=(fe._originalDate||ot).getTimezoneOffset();if(0===Ue)return"Z";switch(we){case"X":return Vt(Ue);case"XXXX":case"XX":return He(Ue);default:return He(Ue,":")}},x:function(ot,we,Fe,fe){var Ue=(fe._originalDate||ot).getTimezoneOffset();switch(we){case"x":return Vt(Ue);case"xxxx":case"xx":return He(Ue);default:return He(Ue,":")}},O:function(ot,we,Fe,fe){var Ue=(fe._originalDate||ot).getTimezoneOffset();switch(we){case"O":case"OO":case"OOO":return"GMT"+Tt(Ue,":");default:return"GMT"+He(Ue,":")}},z:function(ot,we,Fe,fe){var Ue=(fe._originalDate||ot).getTimezoneOffset();switch(we){case"z":case"zz":case"zzz":return"GMT"+Tt(Ue,":");default:return"GMT"+He(Ue,":")}},t:function(ot,we,Fe,fe){return A(Math.floor((fe._originalDate||ot).getTime()/1e3),we.length)},T:function(ot,we,Fe,fe){return A((fe._originalDate||ot).getTime(),we.length)}};var Lt=function(ot,we){switch(ot){case"P":return we.date({width:"short"});case"PP":return we.date({width:"medium"});case"PPP":return we.date({width:"long"});default:return we.date({width:"full"})}},ft=function(ot,we){switch(ot){case"p":return we.time({width:"short"});case"pp":return we.time({width:"medium"});case"ppp":return we.time({width:"long"});default:return we.time({width:"full"})}};const It={p:ft,P:function(ot,we){var Ue,Fe=ot.match(/(P+)(p+)?/)||[],fe=Fe[1],rt=Fe[2];if(!rt)return Lt(ot,we);switch(fe){case"P":Ue=we.dateTime({width:"short"});break;case"PP":Ue=we.dateTime({width:"medium"});break;case"PPP":Ue=we.dateTime({width:"long"});break;default:Ue=we.dateTime({width:"full"})}return Ue.replace("{{date}}",Lt(fe,we)).replace("{{time}}",ft(rt,we))}};var rn=a(3511),en=["D","DD"],Xt=["YY","YYYY"];function Tn(pt){return-1!==en.indexOf(pt)}function Jn(pt){return-1!==Xt.indexOf(pt)}function Dn(pt,ot,we){if("YYYY"===pt)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(ot,"`) for formatting years to the input `").concat(we,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===pt)throw new RangeError("Use `yy` instead of `YY` (in `".concat(ot,"`) for formatting years to the input `").concat(we,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===pt)throw new RangeError("Use `d` instead of `D` (in `".concat(ot,"`) for formatting days of the month to the input `").concat(we,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===pt)throw new RangeError("Use `dd` instead of `DD` (in `".concat(ot,"`) for formatting days of the month to the input `").concat(we,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Mt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Ft(pt){return function(){var ot=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},we=ot.width?String(ot.width):pt.defaultWidth;return pt.formats[we]||pt.formats[pt.defaultWidth]}}var q={date:Ft({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ft({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Ft({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},H={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ht(pt){return function(ot,we){var fe;if("formatting"===(null!=we&&we.context?String(we.context):"standalone")&&pt.formattingValues){var rt=pt.defaultFormattingWidth||pt.defaultWidth,Ue=null!=we&&we.width?String(we.width):rt;fe=pt.formattingValues[Ue]||pt.formattingValues[rt]}else{var Xn=pt.defaultWidth,Di=null!=we&&we.width?String(we.width):pt.defaultWidth;fe=pt.values[Di]||pt.values[Xn]}return fe[pt.argumentCallback?pt.argumentCallback(ot):ot]}}function An(pt){return function(ot){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Fe=we.width,rt=ot.match(Fe&&pt.matchPatterns[Fe]||pt.matchPatterns[pt.defaultMatchWidth]);if(!rt)return null;var L,Ue=rt[0],Xn=Fe&&pt.parsePatterns[Fe]||pt.parsePatterns[pt.defaultParseWidth],Di=Array.isArray(Xn)?function Je(pt,ot){for(var we=0;we0?"in "+fe:fe+" ago":fe},formatLong:q,formatRelative:function(ot,we,Fe,fe){return H[ot]},localize:{ordinalNumber:function(ot,we){var Fe=Number(ot),fe=Fe%100;if(fe>20||fe<10)switch(fe%10){case 1:return Fe+"st";case 2:return Fe+"nd";case 3:return Fe+"rd"}return Fe+"th"},era:ht({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ht({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(ot){return ot-1}}),month:ht({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ht({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ht({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function ae(pt){return function(ot){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Fe=ot.match(pt.matchPattern);if(!Fe)return null;var fe=Fe[0],rt=ot.match(pt.parsePattern);if(!rt)return null;var Ue=pt.valueCallback?pt.valueCallback(rt[0]):rt[0];return{value:Ue=we.valueCallback?we.valueCallback(Ue):Ue,rest:ot.slice(fe.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(ot){return parseInt(ot,10)}}),era:An({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:An({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(ot){return ot+1}}),month:An({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:An({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:An({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var V=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ve=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ce=/^'([^]*?)'?$/,J=/''/g,W=/[a-zA-Z]/;var dt=a(2456);function Ht(pt,ot){(null==ot||ot>pt.length)&&(ot=pt.length);for(var we=0,Fe=new Array(ot);we=pt.length?{done:!0}:{done:!1,value:pt[Fe++]}},e:function(L){throw L},f:fe}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Xn,rt=!0,Ue=!1;return{s:function(){we=we.call(pt)},n:function(){var L=we.next();return rt=L.done,L},e:function(L){Ue=!0,Xn=L},f:function(){try{!rt&&null!=we.return&&we.return()}finally{if(Ue)throw Xn}}}}function si(pt,ot){if(null==pt)throw new TypeError("assign requires that input parameter not be null or undefined");for(var we in ot)Object.prototype.hasOwnProperty.call(ot,we)&&(pt[we]=ot[we]);return pt}function Cn(pt){if(void 0===pt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pt}function ni(pt,ot){return(ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Fe,fe){return Fe.__proto__=fe,Fe})(pt,ot)}function ui(pt,ot){if("function"!=typeof ot&&null!==ot)throw new TypeError("Super expression must either be null or a function");pt.prototype=Object.create(ot&&ot.prototype,{constructor:{value:pt,writable:!0,configurable:!0}}),Object.defineProperty(pt,"prototype",{writable:!1}),ot&&ni(pt,ot)}function Ni(pt){return(Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(we){return we.__proto__||Object.getPrototypeOf(we)})(pt)}function Eo(){try{var pt=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Eo=function(){return!!pt})()}function $i(pt){var ot=Eo();return function(){var fe,Fe=Ni(pt);if(ot){var rt=Ni(this).constructor;fe=Reflect.construct(Fe,arguments,rt)}else fe=Fe.apply(this,arguments);return function lo(pt,ot){if(ot&&("object"===(0,dt.A)(ot)||"function"==typeof ot))return ot;if(void 0!==ot)throw new TypeError("Derived constructors may only return object or undefined");return Cn(pt)}(this,fe)}}function Ii(pt,ot){if(!(pt instanceof ot))throw new TypeError("Cannot call a class as a function")}function pr(pt){var ot=function Nr(pt,ot){if("object"!=(0,dt.A)(pt)||!pt)return pt;var we=pt[Symbol.toPrimitive];if(void 0!==we){var Fe=we.call(pt,ot||"default");if("object"!=(0,dt.A)(Fe))return Fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ot?String:Number)(pt)}(pt,"string");return"symbol"==(0,dt.A)(ot)?ot:String(ot)}function vt(pt,ot){for(var we=0;we0,Fe=we?ot:1-ot;if(Fe<=50)fe=pt||100;else{var rt=Fe+50;fe=pt+100*Math.floor(rt/100)-(pt>=rt%100?100:0)}return we?fe:1-fe}function tr(pt){return pt%400==0||pt%4==0&&pt%100!=0}var lr=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue0}},{key:"set",value:function(fe,rt,Ue){var Xn=fe.getUTCFullYear();if(Ue.isTwoDigitYear){var Di=so(Ue.year,Xn);return fe.setUTCFullYear(Di,0,1),fe.setUTCHours(0,0,0,0),fe}return fe.setUTCFullYear("era"in rt&&1!==rt.era?1-Ue.year:Ue.year,0,1),fe.setUTCHours(0,0,0,0),fe}}]),we}(Fn),zo=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue0}},{key:"set",value:function(fe,rt,Ue,Xn){var Di=te(fe,Xn);if(Ue.isTwoDigitYear){var L=so(Ue.year,Di);return fe.setUTCFullYear(L,0,Xn.firstWeekContainsDate),fe.setUTCHours(0,0,0,0),M(fe,Xn)}return fe.setUTCFullYear("era"in rt&&1!==rt.era?1-Ue.year:Ue.year,0,Xn.firstWeekContainsDate),fe.setUTCHours(0,0,0,0),M(fe,Xn)}}]),we}(Fn),Mo=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=4}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCMonth(3*(Ue-1),1),fe.setUTCHours(0,0,0,0),fe}}]),we}(Fn),Zr=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=4}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCMonth(3*(Ue-1),1),fe.setUTCHours(0,0,0,0),fe}}]),we}(Fn),uo=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=0&&rt<=11}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCMonth(Ue,1),fe.setUTCHours(0,0,0,0),fe}}]),we}(Fn),Hn=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=0&&rt<=11}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCMonth(Ue,1),fe.setUTCHours(0,0,0,0),fe}}]),we}(Fn),Tr=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=53}},{key:"set",value:function(fe,rt,Ue,Xn){return M(function Pi(pt,ot,we){(0,R.A)(2,arguments);var Fe=(0,z.A)(pt),fe=(0,N.A)(ot),rt=D(Fe,we)-fe;return Fe.setUTCDate(Fe.getUTCDate()-7*rt),Fe}(fe,Ue,Xn),Xn)}}]),we}(Fn),as=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=53}},{key:"set",value:function(fe,rt,Ue){return Ie(function $r(pt,ot){(0,R.A)(2,arguments);var we=(0,z.A)(pt),Fe=(0,N.A)(ot),fe=pe(we)-Fe;return we.setUTCDate(we.getUTCDate()-7*fe),we}(fe,Ue))}}]),we}(Fn),Ko=[31,28,31,30,31,30,31,31,30,31,30,31],Fs=[31,29,31,30,31,30,31,31,30,31,30,31],st=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=Fs[Di]:rt>=1&&rt<=Ko[Di]}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCDate(Ue),fe.setUTCHours(0,0,0,0),fe}}]),we}(Fn),Te=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=366:rt>=1&&rt<=365}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCMonth(0,Ue),fe.setUTCHours(0,0,0,0),fe}}]),we}(Fn);function $e(pt,ot,we){var Fe,fe,rt,Ue,Xn,Di,L,tt;(0,R.A)(2,arguments);var ye=(0,U.q)(),Ge=(0,N.A)(null!==(Fe=null!==(fe=null!==(rt=null!==(Ue=we?.weekStartsOn)&&void 0!==Ue?Ue:null==we||null===(Xn=we.locale)||void 0===Xn||null===(Di=Xn.options)||void 0===Di?void 0:Di.weekStartsOn)&&void 0!==rt?rt:ye.weekStartsOn)&&void 0!==fe?fe:null===(L=ye.locale)||void 0===L||null===(tt=L.options)||void 0===tt?void 0:tt.weekStartsOn)&&void 0!==Fe?Fe:0);if(!(Ge>=0&&Ge<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var jt=(0,z.A)(pt),_n=(0,N.A)(ot),Yi=((_n%7+7)%7=0&&rt<=6}},{key:"set",value:function(fe,rt,Ue,Xn){return(fe=$e(fe,Ue,Xn)).setUTCHours(0,0,0,0),fe}}]),we}(Fn),At=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=0&&rt<=6}},{key:"set",value:function(fe,rt,Ue,Xn){return(fe=$e(fe,Ue,Xn)).setUTCHours(0,0,0,0),fe}}]),we}(Fn),nn=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=0&&rt<=6}},{key:"set",value:function(fe,rt,Ue,Xn){return(fe=$e(fe,Ue,Xn)).setUTCHours(0,0,0,0),fe}}]),we}(Fn),hn=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=7}},{key:"set",value:function(fe,rt,Ue){return fe=function ln(pt,ot){(0,R.A)(2,arguments);var we=(0,N.A)(ot);we%7==0&&(we-=7);var fe=(0,z.A)(pt),Di=((we%7+7)%7<1?7:0)+we-fe.getUTCDay();return fe.setUTCDate(fe.getUTCDate()+Di),fe}(fe,Ue),fe.setUTCHours(0,0,0,0),fe}}]),we}(Fn),xn=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=12}},{key:"set",value:function(fe,rt,Ue){var Xn=fe.getUTCHours()>=12;return fe.setUTCHours(Xn&&Ue<12?Ue+12:Xn||12!==Ue?Ue:0,0,0,0),fe}}]),we}(Fn),oi=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=0&&rt<=23}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCHours(Ue,0,0,0),fe}}]),we}(Fn),ai=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=0&&rt<=11}},{key:"set",value:function(fe,rt,Ue){var Xn=fe.getUTCHours()>=12;return fe.setUTCHours(Xn&&Ue<12?Ue+12:Ue,0,0,0),fe}}]),we}(Fn),Ti=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=1&&rt<=24}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCHours(Ue<=24?Ue%24:Ue,0,0,0),fe}}]),we}(Fn),ci=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=0&&rt<=59}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCMinutes(Ue,0,0),fe}}]),we}(Fn),yi=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue=0&&rt<=59}},{key:"set",value:function(fe,rt,Ue){return fe.setUTCSeconds(Ue,0),fe}}]),we}(Fn),_i=function(pt){ui(we,pt);var ot=$i(we);function we(){var Fe;Ii(this,we);for(var fe=arguments.length,rt=new Array(fe),Ue=0;Ue{class pt{get localeChange(){return this._change.asObservable()}constructor(we,Fe){this._change=new r.t(this._locale),this.setLocale(we||vr),this.setDateLocale(Fe||null)}translate(we,Fe){let fe=this._getObjectPath(this._locale,we);return"string"==typeof fe?(Fe&&Object.keys(Fe).forEach(rt=>fe=fe.replace(new RegExp(`%${rt}%`,"g"),Fe[rt])),fe):we}setLocale(we){this._locale&&this._locale.locale===we.locale||(this._locale=we,this._change.next(we))}getLocale(){return this._locale}getLocaleId(){return this._locale?this._locale.locale:""}setDateLocale(we){this.dateLocale=we}getDateLocale(){return this.dateLocale}getLocaleData(we,Fe){const fe=we?this._getObjectPath(this._locale,we):this._locale;return!fe&&!Fe&&(0,m.R8)(`Missing translations for "${we}" in language "${this._locale.locale}".\nYou can use "NzI18nService.setLocale" as a temporary fix.\nWelcome to submit a pull request to help us optimize the translations!\nhttps://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md`),fe||Fe||this._getObjectPath(Er,we)||{}}_getObjectPath(we,Fe){let fe=we;const rt=Fe.split("."),Ue=rt.length;let Xn=0;for(;fe&&Xn{class pt{constructor(we){this._locale=we}transform(we,Fe){return this._locale.translate(we,Fe)}static#e=this.\u0275fac=function(Fe){return new(Fe||pt)(t.rXU($o,16))};static#t=this.\u0275pipe=t.EJ8({name:"nzI18n",type:pt,pure:!0,standalone:!0})}return pt})(),Ro=(()=>{class pt{static#e=this.\u0275fac=function(Fe){return new(Fe||pt)};static#t=this.\u0275mod=t.$C({type:pt});static#n=this.\u0275inj=t.G2t({})}return pt})();const vs=new t.nKC("date-config"),_s={firstDayOfWeek:void 0};let me=(()=>{class pt{constructor(we,Fe){this.i18n=we,this.config=function nt(pt){return{..._s,...pt}}(Fe)}static#e=this.\u0275fac=function(Fe){return new(Fe||pt)(t.KVO($o),t.KVO(vs,8))};static#t=this.\u0275prov=t.jDH({token:pt,factory:()=>function Un(){const pt=(0,t.WQX)($o),ot=(0,t.WQX)(vs,{optional:!0});return pt.getDateLocale()?new qe(pt,ot):new gt(pt,ot)}(),providedIn:"root"})}return pt})();class qe extends me{getISOWeek(ot){return function P(pt){(0,R.A)(1,arguments);var ot=(0,z.A)(pt),we=$(ot).getTime()-function I(pt){(0,R.A)(1,arguments);var ot=function k(pt){(0,R.A)(1,arguments);var ot=(0,z.A)(pt),we=ot.getFullYear(),Fe=new Date(0);Fe.setFullYear(we+1,0,4),Fe.setHours(0,0,0,0);var fe=$(Fe),rt=new Date(0);rt.setFullYear(we,0,4),rt.setHours(0,0,0,0);var Ue=$(rt);return ot.getTime()>=fe.getTime()?we+1:ot.getTime()>=Ue.getTime()?we:we-1}(pt),we=new Date(0);return we.setFullYear(ot,0,4),we.setHours(0,0,0,0),$(we)}(ot).getTime();return Math.round(we/6048e5)+1}(ot)}getFirstDayOfWeek(){let ot;try{ot=this.i18n.getDateLocale().options.weekStartsOn}catch{ot=1}return null==this.config.firstDayOfWeek?ot:this.config.firstDayOfWeek}format(ot,we){return ot?function _e(pt,ot,we){var Fe,fe,rt,Ue,Xn,Di,L,tt,ye,Ge,jt,_n,Vn,pi,po,Yi,bo,Qn;(0,R.A)(2,arguments);var xo=String(ot),Li=(0,U.q)(),To=null!==(Fe=null!==(fe=we?.locale)&&void 0!==fe?fe:Li.locale)&&void 0!==Fe?Fe:le,ur=(0,N.A)(null!==(rt=null!==(Ue=null!==(Xn=null!==(Di=we?.firstWeekContainsDate)&&void 0!==Di?Di:null==we||null===(L=we.locale)||void 0===L||null===(tt=L.options)||void 0===tt?void 0:tt.firstWeekContainsDate)&&void 0!==Xn?Xn:Li.firstWeekContainsDate)&&void 0!==Ue?Ue:null===(ye=Li.locale)||void 0===ye||null===(Ge=ye.options)||void 0===Ge?void 0:Ge.firstWeekContainsDate)&&void 0!==rt?rt:1);if(!(ur>=1&&ur<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ir=(0,N.A)(null!==(jt=null!==(_n=null!==(Vn=null!==(pi=we?.weekStartsOn)&&void 0!==pi?pi:null==we||null===(po=we.locale)||void 0===po||null===(Yi=po.options)||void 0===Yi?void 0:Yi.weekStartsOn)&&void 0!==Vn?Vn:Li.weekStartsOn)&&void 0!==_n?_n:null===(bo=Li.locale)||void 0===bo||null===(Qn=bo.options)||void 0===Qn?void 0:Qn.weekStartsOn)&&void 0!==jt?jt:0);if(!(ir>=0&&ir<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!To.localize)throw new RangeError("locale must contain localize property");if(!To.formatLong)throw new RangeError("locale must contain formatLong property");var xr=(0,z.A)(pt);if(!(0,Q.A)(xr))throw new RangeError("Invalid time value");var zr=oe(xr,(0,rn.A)(xr)),jr={firstWeekContainsDate:ur,weekStartsOn:ir,locale:To,_originalDate:xr},ts=xo.match(Ve).map(function(fr){var or=fr[0];return"p"===or||"P"===or?(0,It[or])(fr,To.formatLong):fr}).join("").match(V).map(function(fr){if("''"===fr)return"'";var or=fr[0];if("'"===or)return function it(pt){var ot=pt.match(Ce);return ot?ot[1].replace(J,"'"):pt}(fr);var Ms=xt[or];if(Ms)return!(null!=we&&we.useAdditionalWeekYearTokens)&&Jn(fr)&&Dn(fr,ot,String(pt)),!(null!=we&&we.useAdditionalDayOfYearTokens)&&Tn(fr)&&Dn(fr,ot,String(pt)),Ms(zr,fr,To.localize,jr);if(or.match(W))throw new RangeError("Format string contains an unescaped latin alphabet character `"+or+"`");return fr}).join("");return ts}(ot,we,{locale:this.i18n.getDateLocale()}):""}parseDate(ot,we){return function Bo(pt,ot,we,Fe){var fe,rt,Ue,Xn,Di,L,tt,ye,Ge,jt,_n,Vn,pi,po,Yi,bo,Qn,xo;(0,R.A)(3,arguments);var Li=String(pt),To=String(ot),ur=(0,U.q)(),ir=null!==(fe=null!==(rt=Fe?.locale)&&void 0!==rt?rt:ur.locale)&&void 0!==fe?fe:le;if(!ir.match)throw new RangeError("locale must contain match property");var xr=(0,N.A)(null!==(Ue=null!==(Xn=null!==(Di=null!==(L=Fe?.firstWeekContainsDate)&&void 0!==L?L:null==Fe||null===(tt=Fe.locale)||void 0===tt||null===(ye=tt.options)||void 0===ye?void 0:ye.firstWeekContainsDate)&&void 0!==Di?Di:ur.firstWeekContainsDate)&&void 0!==Xn?Xn:null===(Ge=ur.locale)||void 0===Ge||null===(jt=Ge.options)||void 0===jt?void 0:jt.firstWeekContainsDate)&&void 0!==Ue?Ue:1);if(!(xr>=1&&xr<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Hr=(0,N.A)(null!==(_n=null!==(Vn=null!==(pi=null!==(po=Fe?.weekStartsOn)&&void 0!==po?po:null==Fe||null===(Yi=Fe.locale)||void 0===Yi||null===(bo=Yi.options)||void 0===bo?void 0:bo.weekStartsOn)&&void 0!==pi?pi:ur.weekStartsOn)&&void 0!==Vn?Vn:null===(Qn=ur.locale)||void 0===Qn||null===(xo=Qn.options)||void 0===xo?void 0:xo.weekStartsOn)&&void 0!==_n?_n:0);if(!(Hr>=0&&Hr<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===To)return""===Li?(0,z.A)(we):new Date(NaN);var Ms,zr={firstWeekContainsDate:xr,weekStartsOn:Hr,locale:ir},jr=[new Pn],ts=To.match(yo).map(function(_r){var Po=_r[0];return Po in It?(0,It[Po])(_r,ir.formatLong):_r}).join("").match(_o),fr=[],or=wn(ts);try{var Qo=function(){var Po=Ms.value;!(null!=Fe&&Fe.useAdditionalWeekYearTokens)&&Jn(Po)&&Dn(Po,To,pt),(null==Fe||!Fe.useAdditionalDayOfYearTokens)&&Tn(Po)&&Dn(Po,To,pt);var Ds=Po[0],ca=go[Ds];if(ca){var Wr=ca.incompatibleTokens;if(Array.isArray(Wr)){var Oo=fr.find(function(Ya){return Wr.includes(Ya.token)||Ya.token===Ds});if(Oo)throw new RangeError("The format string mustn't contain `".concat(Oo.fullToken,"` and `").concat(Po,"` at the same time"))}else if("*"===ca.incompatibleTokens&&fr.length>0)throw new RangeError("The format string mustn't contain `".concat(Po,"` and any other token at the same time"));fr.push({token:Ds,fullToken:Po});var dr=ca.run(Li,Po,ir.match,zr);if(!dr)return{v:new Date(NaN)};jr.push(dr.setter),Li=dr.rest}else{if(Ds.match(es))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ds+"`");if("''"===Po?Po="'":"'"===Ds&&(Po=function nr(pt){return pt.match(Yn)[1].replace(wo,"'")}(Po)),0!==Li.indexOf(Po))return{v:new Date(NaN)};Li=Li.slice(Po.length)}};for(or.s();!(Ms=or.n()).done;){var ns=Qo();if("object"===(0,dt.A)(ns))return ns.v}}catch(_r){or.e(_r)}finally{or.f()}if(Li.length>0&&Xo.test(Li))return new Date(NaN);var fo=jr.map(function(_r){return _r.priority}).sort(function(_r,Po){return Po-_r}).filter(function(_r,Po,Ds){return Ds.indexOf(_r)===Po}).map(function(_r){return jr.filter(function(Po){return Po.priority===_r}).sort(function(Po,Ds){return Ds.subPriority-Po.subPriority})}).map(function(_r){return _r[0]}),Ws=(0,z.A)(we);if(isNaN(Ws.getTime()))return new Date(NaN);var Ga,Yr=oe(Ws,(0,rn.A)(Ws)),is={},dc=wn(fo);try{for(dc.s();!(Ga=dc.n()).done;){var Sl=Ga.value;if(!Sl.validate(Yr,zr))return new Date(NaN);var Mr=Sl.set(Yr,is,zr);Array.isArray(Mr)?(Yr=Mr[0],si(is,Mr[1])):Yr=Mr}}catch(_r){dc.e(_r)}finally{dc.f()}return Yr}(ot,we,new Date,{locale:this.i18n.getDateLocale(),weekStartsOn:this.getFirstDayOfWeek()})}parseTime(ot,we){return this.parseDate(ot,we)}}class gt extends me{getISOWeek(ot){return+this.format(ot,"w")}getFirstDayOfWeek(){if(void 0===this.config.firstDayOfWeek){const ot=this.i18n.getLocaleId();return ot&&["zh-cn","zh-tw"].indexOf(ot.toLowerCase())>-1?1:0}return this.config.firstDayOfWeek}format(ot,we){return ot?this.replaceQuarter((0,e.Yq)(ot,we,this.i18n.getLocaleId()),ot):""}parseDate(ot){return new Date(ot)}parseTime(ot,we){return new gr.Tb(we,this.i18n.getLocaleId()).toDate(ot)}replaceQuarter(ot,we){const Fe=(0,wr.A)(we).toString(),fe={Q:Fe,QQ:`0${Fe}`,QQQ:`Q${Fe}`};return ot.replace(/Q+(?![^\[]*])/g,rt=>fe[rt]??Fe).replace(/\[(Q+)]/g,"$1")}}},5103:($t,De,a)=>{a.d(De,{Dn:()=>Ne,Y3:()=>Le,Rt:()=>Oe});var t=a(3953),r=a(1413),m=a(2806),e=a(6977),z=a(4709),j=a(4215),R=2,$=.16,k=.05,I=.05,w=.15,P=5,Q=4,N=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function x(Y){var Ce=(0,z.wE)(Y.r,Y.g,Y.b);return{h:360*Ce.h,s:Ce.s,v:Ce.v}}function oe(Y){return"#".concat((0,z.Ob)(Y.r,Y.g,Y.b,!1))}function Ee(Y,le,V){var Ve;return(Ve=Math.round(Y.h)>=60&&Math.round(Y.h)<=240?V?Math.round(Y.h)-R*le:Math.round(Y.h)+R*le:V?Math.round(Y.h)+R*le:Math.round(Y.h)-R*le)<0?Ve+=360:Ve>=360&&(Ve-=360),Ve}function Ie(Y,le,V){return 0===Y.h&&0===Y.s?Y.s:((Ve=V?Y.s-$*le:le===Q?Y.s+$:Y.s+k*le)>1&&(Ve=1),V&&le===P&&Ve>.1&&(Ve=.1),Ve<.06&&(Ve=.06),Number(Ve.toFixed(2)));var Ve}function ce(Y,le,V){var Ve;return(Ve=V?Y.v+I*le:Y.v-w*le)>1&&(Ve=1),Number(Ve.toFixed(2))}function Pe(Y){for(var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},V=[],Ve=(0,j.RO)(Y),Ce=P;Ce>0;Ce-=1){var J=x(Ve),W=oe((0,j.RO)({h:Ee(J,Ce,!0),s:Ie(J,Ce,!0),v:ce(J,Ce,!0)}));V.push(W)}V.push(oe(Ve));for(var _e=1;_e<=Q;_e+=1){var it=x(Ve),dt=oe((0,j.RO)({h:Ee(it,_e),s:Ie(it,_e),v:ce(it,_e)}));V.push(dt)}return"dark"===le.theme?N.map(function(Ht){var dn=Ht.index,wn=Ht.opacity,si=oe(function ee(Y,le,V){var Ve=V/100;return{r:(le.r-Y.r)*Ve+Y.r,g:(le.g-Y.g)*Ve+Y.g,b:(le.b-Y.b)*Ve+Y.b}}((0,j.RO)(le.backgroundColor||"#141414"),(0,j.RO)(V[dn]),100*wn));return si}):V}var ve={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},pe={},U={};Object.keys(ve).forEach(function(Y){pe[Y]=Pe(ve[Y]),pe[Y].primary=pe[Y][5],U[Y]=Pe(ve[Y],{theme:"dark",backgroundColor:"#141414"}),U[Y].primary=U[Y][5]});var Lt=a(177),ft=a(1626),St=a(7673),kt=a(1985),It=a(6354),rn=a(8141),en=a(980),Xt=a(9437),Tn=a(7647),Jn=a(5964),Dn=a(6697),Mt=a(345);const Ut="[@ant-design/icons-angular]:";function Ft(Y){(0,t.naY)()&&console.warn(`${Ut} ${Y}.`)}function Qt(Y){return Pe(Y)[0]}function Xe(Y,le){switch(le){case"fill":return`${Y}-fill`;case"outline":return`${Y}-o`;case"twotone":return`${Y}-twotone`;case void 0:return Y;default:throw new Error(`${Ut}Theme "${le}" is not a recognized theme!`)}}function H(Y){return"object"==typeof Y&&"string"==typeof Y.name&&("string"==typeof Y.theme||void 0===Y.theme)&&"string"==typeof Y.icon}function Kt(Y){const le=Y.split(":");switch(le.length){case 1:return[Y,""];case 2:return[le[1],le[0]];default:throw new Error(`${Ut}The icon type ${Y} is not valid!`)}}function Kn(Y){return new Error(`${Ut}the icon ${Y} does not exist or is not registered.`)}function Nn(){return new Error(`${Ut} tag not found.`)}const An=new t.nKC("ant_icons");let Yt=(()=>{class Y{set twoToneColor({primaryColor:V,secondaryColor:Ve}){this._twoToneColorPalette.primaryColor=V,this._twoToneColorPalette.secondaryColor=Ve||Qt(V)}get twoToneColor(){return{...this._twoToneColorPalette}}get _disableDynamicLoading(){return!1}constructor(V,Ve,Ce,J,W){this._rendererFactory=V,this._handler=Ve,this._document=Ce,this.sanitizer=J,this._antIcons=W,this.defaultTheme="outline",this._svgDefinitions=new Map,this._svgRenderedDefinitions=new Map,this._inProgressFetches=new Map,this._assetsUrlRoot="",this._twoToneColorPalette={primaryColor:"#333333",secondaryColor:"#E6E6E6"},this._enableJsonpLoading=!1,this._jsonpIconLoad$=new r.B,this._renderer=this._rendererFactory.createRenderer(null,null),this._handler&&(this._http=new ft.Qq(this._handler)),this._antIcons&&this.addIcon(...this._antIcons)}useJsonpLoading(){this._enableJsonpLoading?Ft("You are already using jsonp loading."):(this._enableJsonpLoading=!0,window.__ant_icon_load=V=>{this._jsonpIconLoad$.next(V)})}changeAssetsSource(V){this._assetsUrlRoot=V.endsWith("/")?V:V+"/"}addIcon(...V){V.forEach(Ve=>{this._svgDefinitions.set(Xe(Ve.name,Ve.theme),Ve)})}addIconLiteral(V,Ve){const[Ce,J]=Kt(V);if(!J)throw function In(){return new Error(`${Ut}Type should have a namespace. Try "namespace:${name}".`)}();this.addIcon({name:V,icon:Ve})}clear(){this._svgDefinitions.clear(),this._svgRenderedDefinitions.clear()}getRenderedContent(V,Ve){const Ce=H(V)?V:this._svgDefinitions.get(V)||null;if(!Ce&&this._disableDynamicLoading)throw Kn(V);return(Ce?(0,St.of)(Ce):this._loadIconDynamically(V)).pipe((0,It.T)(W=>{if(!W)throw Kn(V);return this._loadSVGFromCacheOrCreateNew(W,Ve)}))}getCachedIcons(){return this._svgDefinitions}_loadIconDynamically(V){if(!this._http&&!this._enableJsonpLoading)return(0,St.of)(function Gn(){return function wt(Y){console.error(`${Ut} ${Y}.`)}('you need to import "HttpClientModule" to use dynamic importing.'),null}());let Ve=this._inProgressFetches.get(V);if(!Ve){const[Ce,J]=Kt(V),W=J?{name:V,icon:""}:function ze(Y){const le=Y.split("-"),V=function q(Y){return"o"===Y?"outline":Y}(le.splice(le.length-1,1)[0]);return{name:le.join("-"),theme:V,icon:""}}(Ce),it=(J?`${this._assetsUrlRoot}assets/${J}/${Ce}`:`${this._assetsUrlRoot}assets/${W.theme}/${W.name}`)+(this._enableJsonpLoading?".js":".svg"),dt=this.sanitizer.sanitize(t.WPN.URL,it);if(!dt)throw function $n(Y){return new Error(`${Ut}The url "${Y}" is unsafe.`)}(it);Ve=(this._enableJsonpLoading?this._loadIconDynamicallyWithJsonp(W,dt):this._http.get(dt,{responseType:"text"}).pipe((0,It.T)(dn=>({...W,icon:dn})))).pipe((0,rn.M)(dn=>this.addIcon(dn)),(0,en.j)(()=>this._inProgressFetches.delete(V)),(0,Xt.W)(()=>(0,St.of)(null)),(0,Tn.u)()),this._inProgressFetches.set(V,Ve)}return Ve}_loadIconDynamicallyWithJsonp(V,Ve){return new kt.c(Ce=>{const J=this._document.createElement("script"),W=setTimeout(()=>{_e(),Ce.error(function vn(){return new Error(`${Ut}Importing timeout error.`)}())},6e3);function _e(){J.parentNode.removeChild(J),clearTimeout(W)}J.src=Ve,this._document.body.appendChild(J),this._jsonpIconLoad$.pipe((0,Jn.p)(it=>it.name===V.name&&it.theme===V.theme),(0,Dn.s)(1)).subscribe(it=>{Ce.next(it),_e()})})}_loadSVGFromCacheOrCreateNew(V,Ve){let Ce;const J=Ve||this._twoToneColorPalette.primaryColor,W=Qt(J)||this._twoToneColorPalette.secondaryColor,_e="twotone"===V.theme?function ke(Y,le,V,Ve){return`${Xe(Y,le)}-${V}-${Ve}`}(V.name,V.theme,J,W):void 0===V.theme?V.name:Xe(V.name,V.theme),it=this._svgRenderedDefinitions.get(_e);return it?Ce=it.icon:(Ce=this._setSVGAttribute(this._colorizeSVGIcon(this._createSVGElementFromString(function fn(Y){return""!==Kt(Y)[1]}(V.name)?V.icon:function ht(Y){return Y.replace(/['"]#333['"]/g,'"primaryColor"').replace(/['"]#E6E6E6['"]/g,'"secondaryColor"').replace(/['"]#D9D9D9['"]/g,'"secondaryColor"').replace(/['"]#D8D8D8['"]/g,'"secondaryColor"')}(V.icon)),"twotone"===V.theme,J,W)),this._svgRenderedDefinitions.set(_e,{...V,icon:Ce})),function Qe(Y){return Y.cloneNode(!0)}(Ce)}_createSVGElementFromString(V){const Ve=this._document.createElement("div");Ve.innerHTML=V;const Ce=Ve.querySelector("svg");if(!Ce)throw Nn;return Ce}_setSVGAttribute(V){return this._renderer.setAttribute(V,"width","1em"),this._renderer.setAttribute(V,"height","1em"),V}_colorizeSVGIcon(V,Ve,Ce,J){if(Ve){const W=V.childNodes,_e=W.length;for(let it=0;it<_e;it++){const dt=W[it];"secondaryColor"===dt.getAttribute("fill")?this._renderer.setAttribute(dt,"fill",J):this._renderer.setAttribute(dt,"fill",Ce)}}return this._renderer.setAttribute(V,"fill","currentColor"),V}static#e=this.\u0275fac=function(Ve){return new(Ve||Y)(t.KVO(t._9s),t.KVO(ft.JV,8),t.KVO(Lt.qQ,8),t.KVO(Mt.up),t.KVO(An,8))};static#t=this.\u0275prov=t.jDH({token:Y,factory:Y.\u0275fac})}return Y})(),ae=(()=>{class Y{constructor(V,Ve,Ce){this._iconService=V,this._elementRef=Ve,this._renderer=Ce}ngOnChanges(V){(V.type||V.theme||V.twoToneColor)&&this._changeIcon()}_changeIcon(){return new Promise(V=>{if(!this.type)return this._clearSVGElement(),void V(null);const Ve=this._getSelfRenderMeta();this._iconService.getRenderedContent(this._parseIconType(this.type,this.theme),this.twoToneColor).subscribe(Ce=>{const J=this._getSelfRenderMeta();!function Je(Y,le){return Y.type===le.type&&Y.theme===le.theme&&Y.twoToneColor===le.twoToneColor}(Ve,J)?V(null):(this._setSVGElement(Ce),V(Ce))})})}_getSelfRenderMeta(){return{type:this.type,theme:this.theme,twoToneColor:this.twoToneColor}}_parseIconType(V,Ve){if(H(V))return V;{const[Ce,J]=Kt(V);return J?V:function G(Y){return Y.endsWith("-fill")||Y.endsWith("-o")||Y.endsWith("-twotone")}(Ce)?(Ve&&Ft(`'type' ${Ce} already gets a theme inside so 'theme' ${Ve} would be ignored`),Ce):Xe(Ce,Ve||this._iconService.defaultTheme)}}_setSVGElement(V){this._clearSVGElement(),this._renderer.appendChild(this._elementRef.nativeElement,V)}_clearSVGElement(){const V=this._elementRef.nativeElement,Ve=V.childNodes;for(let J=Ve.length-1;J>=0;J--){const W=Ve[J];"svg"===W.tagName?.toLowerCase()&&this._renderer.removeChild(V,W)}}static#e=this.\u0275fac=function(Ve){return new(Ve||Y)(t.rXU(Yt),t.rXU(t.aKT),t.rXU(t.sFG))};static#t=this.\u0275dir=t.FsC({type:Y,selectors:[["","antIcon",""]],inputs:{type:"type",theme:"theme",twoToneColor:"twoToneColor"},features:[t.OA$]})}return Y})();var et=a(3451),_t=a(8167),mt=a(6042),Rt=a(6860);const ct=[_t.XkU,_t.Z1x,_t.iOx,_t.FmF,_t.rHI,_t.SFT,_t.aB7,_t.N$r,_t.HCk,_t.DXx,_t.Hcp,_t.Y6F,_t.XEL,_t.O9N,_t.OgO,_t.lWl,_t.KKJ,_t.rXM,_t.Nk1,_t.MTO,_t.drJ,_t.ekG,_t.U1s,_t.QQ_,_t.$ix,_t.cuh,_t.U97,_t.DT4,_t.gA6,_t.hl9,_t.j4r,_t.Dnx,_t.Hb1,_t.kGj,_t.HSk,_t.eiI,_t.zt9,_t.eiI,_t.eNq,_t.RR4,_t.qZ3,_t.wx$,_t.a5L,_t.XTv,_t.gZ6],Se=new t.nKC("nz_icons"),de=(new t.nKC("nz_icon_default_twotone_color"),"#1890ff");let Oe=(()=>{class Y extends Yt{get _disableDynamicLoading(){return!this.platform.isBrowser}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}normalizeSvgElement(V){V.getAttribute("viewBox")||this._renderer.setAttribute(V,"viewBox","0 0 1024 1024"),(!V.getAttribute("width")||!V.getAttribute("height"))&&(this._renderer.setAttribute(V,"width","1em"),this._renderer.setAttribute(V,"height","1em")),V.getAttribute("fill")||this._renderer.setAttribute(V,"fill","currentColor")}fetchFromIconfont(V){const{scriptUrl:Ve}=V;if(this._document&&!this.iconfontCache.has(Ve)){const Ce=this._renderer.createElement("script");this._renderer.setAttribute(Ce,"src",Ve),this._renderer.setAttribute(Ce,"data-namespace",Ve.replace(/^(https?|http):/g,"")),this._renderer.appendChild(this._document.body,Ce),this.iconfontCache.add(Ve)}}createIconfontIcon(V){return this._createSVGElementFromString(``)}constructor(V,Ve,Ce,J,W,_e,it){super(V,W,_e,Ve,[...ct,...it||[]]),this.nzConfigService=Ce,this.platform=J,this.configUpdated$=new r.B,this.iconfontCache=new Set,this.subscription=null,this.onConfigChange(),this.configDefaultTwotoneColor(),this.configDefaultTheme()}onConfigChange(){this.subscription=this.nzConfigService.getConfigChangeEventForComponent("icon").subscribe(()=>{this.configDefaultTwotoneColor(),this.configDefaultTheme(),this.configUpdated$.next()})}configDefaultTheme(){const V=this.getConfig();this.defaultTheme=V.nzTheme||"outline"}configDefaultTwotoneColor(){const Ve=this.getConfig().nzTwotoneColor||de;let Ce=de;Ve&&(Ve.startsWith("#")?Ce=Ve:(0,et.R8)("Twotone color must be a hex color!")),this.twoToneColor={primaryColor:Ce}}getConfig(){return this.nzConfigService.getConfigForComponent("icon")||{}}static#e=this.\u0275fac=function(Ve){return new(Ve||Y)(t.KVO(t._9s),t.KVO(Mt.up),t.KVO(mt.yx),t.KVO(Rt.OD),t.KVO(ft.JV,8),t.KVO(Lt.qQ,8),t.KVO(Se,8))};static#t=this.\u0275prov=t.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})();const zt=new t.nKC("nz_icons_patch");let Ze=(()=>{class Y{constructor(V,Ve){this.extraIcons=V,this.rootIconService=Ve,this.patched=!1}doPatch(){this.patched||(this.extraIcons.forEach(V=>this.rootIconService.addIcon(V)),this.patched=!0)}static#e=this.\u0275fac=function(Ve){return new(Ve||Y)(t.KVO(zt,2),t.KVO(Oe))};static#t=this.\u0275prov=t.jDH({token:Y,factory:Y.\u0275fac})}return Y})(),Ne=(()=>{class Y extends ae{set nzSpin(V){this.spin=V}set nzType(V){this.type=V}set nzTheme(V){this.theme=V}set nzTwotoneColor(V){this.twoToneColor=V}set nzIconfont(V){this.iconfont=V}constructor(V,Ve,Ce,J,W,_e){super(J,Ce,W),this.ngZone=V,this.changeDetectorRef=Ve,this.iconService=J,this.renderer=W,this.cacheClassName=null,this.nzRotate=0,this.spin=!1,this.destroy$=new r.B,_e&&_e.doPatch(),this.el=Ce.nativeElement}ngOnChanges(V){const{nzType:Ve,nzTwotoneColor:Ce,nzSpin:J,nzTheme:W,nzRotate:_e}=V;Ve||Ce||J||W?this.changeIcon2():_e?this.handleRotate(this.el.firstChild):this._setSVGElement(this.iconService.createIconfontIcon(`#${this.iconfont}`))}ngOnInit(){this.renderer.setAttribute(this.el,"class",`anticon ${this.el.className}`.trim())}ngAfterContentChecked(){if(!this.type){const V=this.el.children;let Ve=V.length;if(!this.type&&V.length)for(;Ve--;){const Ce=V[Ve];"svg"===Ce.tagName.toLowerCase()&&this.iconService.normalizeSvgElement(Ce)}}}ngOnDestroy(){this.destroy$.next()}changeIcon2(){this.setClassName(),this.ngZone.runOutsideAngular(()=>{(0,m.H)(this._changeIcon()).pipe((0,e.Q)(this.destroy$)).subscribe({next:V=>{this.ngZone.run(()=>{this.changeDetectorRef.detectChanges(),V&&(this.setSVGData(V),this.handleSpin(V),this.handleRotate(V))})},error:et.R8})})}handleSpin(V){this.spin||"loading"===this.type?this.renderer.addClass(V,"anticon-spin"):this.renderer.removeClass(V,"anticon-spin")}handleRotate(V){this.nzRotate?this.renderer.setAttribute(V,"style",`transform: rotate(${this.nzRotate}deg)`):this.renderer.removeAttribute(V,"style")}setClassName(){this.cacheClassName&&this.renderer.removeClass(this.el,this.cacheClassName),this.cacheClassName=`anticon-${this.type}`,this.renderer.addClass(this.el,this.cacheClassName)}setSVGData(V){this.renderer.setAttribute(V,"data-icon",this.type),this.renderer.setAttribute(V,"aria-hidden","true")}static#e=this.\u0275fac=function(Ve){return new(Ve||Y)(t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(Oe),t.rXU(t.sFG),t.rXU(Ze,8))};static#t=this.\u0275dir=t.FsC({type:Y,selectors:[["","nz-icon",""]],hostVars:2,hostBindings:function(Ve,Ce){2&Ve&&t.AVh("anticon",!0)},inputs:{nzSpin:[2,"nzSpin","nzSpin",t.L39],nzRotate:[2,"nzRotate","nzRotate",t.Udg],nzType:"nzType",nzTheme:"nzTheme",nzTwotoneColor:"nzTwotoneColor",nzIconfont:"nzIconfont"},exportAs:["nzIcon"],standalone:!0,features:[t.GFd,t.Vt3,t.OA$]})}return Y})(),Le=(()=>{class Y{static forRoot(V){return{ngModule:Y,providers:[{provide:Se,useValue:V}]}}static forChild(V){return{ngModule:Y,providers:[Ze,{provide:zt,useValue:V}]}}static#e=this.\u0275fac=function(Ve){return new(Ve||Y)};static#t=this.\u0275mod=t.$C({type:Y});static#n=this.\u0275inj=t.G2t({})}return Y})()},1011:($t,De,a)=>{a.d(De,{Sy:()=>Tn,c9:()=>Mt,j:()=>wt,tg:()=>Dn,vN:()=>Jn});var t=a(177),r=a(3953),m=a(1413),e=a(7786),z=a(3294),j=a(6977),R=a(5964),$=a(9172),k=a(5558),I=a(1397),w=a(6354),P=a(7891),Q=a(317),N=a(7806),x=a(5103),oe=a(9417),ee=a(8203),Ee=a(851),Ie=a(6860),ce=a(1025);const Pe=["nz-input-group-slot",""],ve=["*"];function pe(Ft,Qt){if(1&Ft&&r.nrm(0,"span",0),2&Ft){const Xe=r.XpG();r.Y8G("nzType",Xe.icon)}}function U(Ft,Qt){if(1&Ft&&(r.qex(0),r.EFF(1),r.bVm()),2&Ft){const Xe=r.XpG();r.R7$(),r.JRh(Xe.template)}}function M(Ft,Qt){if(1&Ft&&r.nrm(0,"span",3),2&Ft){const Xe=r.XpG(2);r.Y8G("icon",Xe.nzAddOnBeforeIcon)("template",Xe.nzAddOnBefore)}}function te(Ft,Qt){}function ge(Ft,Qt){if(1&Ft&&(r.j41(0,"span",6),r.DNE(1,te,0,0,"ng-template",5),r.k0s()),2&Ft){const Xe=r.XpG(2),ke=r.sdS(3);r.AVh("ant-input-affix-wrapper-disabled",Xe.disabled)("ant-input-affix-wrapper-sm",Xe.isSmall)("ant-input-affix-wrapper-lg",Xe.isLarge)("ant-input-affix-wrapper-focused",Xe.focused),r.Y8G("ngClass",Xe.affixInGroupStatusCls),r.R7$(),r.Y8G("ngTemplateOutlet",ke)}}function T(Ft,Qt){}function D(Ft,Qt){if(1&Ft&&r.DNE(0,T,0,0,"ng-template",5),2&Ft){r.XpG(2);const Xe=r.sdS(5);r.Y8G("ngTemplateOutlet",Xe)}}function A(Ft,Qt){if(1&Ft&&r.nrm(0,"span",3),2&Ft){const Xe=r.XpG(2);r.Y8G("icon",Xe.nzAddOnAfterIcon)("template",Xe.nzAddOnAfter)}}function X(Ft,Qt){if(1&Ft&&(r.j41(0,"span",2),r.DNE(1,M,1,2,"span",3)(2,ge,2,10,"span",4)(3,D,1,1,null,5)(4,A,1,2,"span",3),r.k0s()),2&Ft){const Xe=r.XpG();r.R7$(),r.vxM(Xe.nzAddOnBefore||Xe.nzAddOnBeforeIcon?1:-1),r.R7$(),r.vxM(Xe.isAffix||Xe.hasFeedback?2:3),r.R7$(2),r.vxM(Xe.nzAddOnAfter||Xe.nzAddOnAfterIcon?4:-1)}}function se(Ft,Qt){}function je(Ft,Qt){if(1&Ft&&r.DNE(0,se,0,0,"ng-template",5),2&Ft){r.XpG(2);const Xe=r.sdS(3);r.Y8G("ngTemplateOutlet",Xe)}}function Bt(Ft,Qt){}function Tt(Ft,Qt){if(1&Ft&&r.DNE(0,Bt,0,0,"ng-template",5),2&Ft){r.XpG(2);const Xe=r.sdS(5);r.Y8G("ngTemplateOutlet",Xe)}}function Vt(Ft,Qt){if(1&Ft&&r.DNE(0,je,1,1,null,5)(1,Tt,1,1,null,5),2&Ft){const Xe=r.XpG();r.vxM(Xe.isAffix?0:1)}}function He(Ft,Qt){if(1&Ft&&r.nrm(0,"span",7),2&Ft){const Xe=r.XpG(2);r.Y8G("icon",Xe.nzPrefixIcon)("template",Xe.nzPrefix)}}function xt(Ft,Qt){}function Lt(Ft,Qt){if(1&Ft&&r.nrm(0,"nz-form-item-feedback-icon",9),2&Ft){const Xe=r.XpG(3);r.Y8G("status",Xe.status)}}function ft(Ft,Qt){if(1&Ft&&(r.j41(0,"span",8),r.DNE(1,Lt,1,1,"nz-form-item-feedback-icon",9),r.k0s()),2&Ft){const Xe=r.XpG(2);r.Y8G("icon",Xe.nzSuffixIcon)("template",Xe.nzSuffix),r.R7$(),r.vxM(Xe.isFeedback?1:-1)}}function St(Ft,Qt){if(1&Ft&&r.DNE(0,He,1,2,"span",7)(1,xt,0,0,"ng-template",5)(2,ft,2,3,"span",8),2&Ft){const Xe=r.XpG(),ke=r.sdS(5);r.vxM(Xe.nzPrefix||Xe.nzPrefixIcon?0:-1),r.R7$(),r.Y8G("ngTemplateOutlet",ke),r.R7$(),r.vxM(Xe.nzSuffix||Xe.nzSuffixIcon||Xe.isFeedback?2:-1)}}function kt(Ft,Qt){if(1&Ft&&(r.j41(0,"span",10),r.nrm(1,"nz-form-item-feedback-icon",9),r.k0s()),2&Ft){const Xe=r.XpG(2);r.R7$(),r.Y8G("status",Xe.status)}}function It(Ft,Qt){if(1&Ft&&(r.SdG(0),r.DNE(1,kt,2,1,"span",10)),2&Ft){const Xe=r.XpG();r.R7$(),r.vxM(Xe.isAddOn||Xe.isAffix||!Xe.isFeedback?-1:1)}}let Xt=(()=>{class Ft{constructor(){this.icon=null,this.type=null,this.template=null}static#e=this.\u0275fac=function(ke){return new(ke||Ft)};static#t=this.\u0275cmp=r.VBU({type:Ft,selectors:[["","nz-input-group-slot",""]],hostVars:6,hostBindings:function(ke,q){2&ke&&r.AVh("ant-input-group-addon","addon"===q.type)("ant-input-prefix","prefix"===q.type)("ant-input-suffix","suffix"===q.type)},inputs:{icon:"icon",type:"type",template:"template"},standalone:!0,features:[r.aNF],attrs:Pe,ngContentSelectors:ve,decls:3,vars:2,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"]],template:function(ke,q){1&ke&&(r.NAR(),r.DNE(0,pe,1,1,"span",0)(1,U,2,1,"ng-container",1),r.SdG(2)),2&ke&&(r.vxM(q.icon?0:-1),r.R7$(),r.Y8G("nzStringTemplateOutlet",q.template))},dependencies:[x.Y3,x.Dn,N.C,N.m],encapsulation:2,changeDetection:0})}return Ft})(),Tn=(()=>{class Ft{get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Xe){this._disabled=Xe}constructor(Xe,ke,q,G,H,ze,Qe){this.ngControl=Xe,this.renderer=ke,this.elementRef=q,this.hostView=G,this.directionality=H,this.nzFormStatusService=ze,this.nzFormNoStatusService=Qe,this.nzBorderless=!1,this.nzSize="default",this.nzStepperless=!0,this.nzStatus="",this._disabled=!1,this.disabled$=new m.B,this.dir="ltr",this.prefixCls="ant-input",this.status="",this.statusCls={},this.hasFeedback=!1,this.feedbackRef=null,this.components=[],this.destroy$=new m.B}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,z.F)((Xe,ke)=>Xe.status===ke.status&&Xe.hasFeedback===ke.hasFeedback),(0,j.Q)(this.destroy$)).subscribe(({status:Xe,hasFeedback:ke})=>{this.setStatusStyles(Xe,ke)}),this.ngControl&&this.ngControl.statusChanges?.pipe((0,R.p)(()=>null!==this.ngControl.disabled),(0,j.Q)(this.destroy$)).subscribe(()=>{this.disabled$.next(this.ngControl.disabled)}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,j.Q)(this.destroy$)).subscribe(Xe=>{this.dir=Xe})}ngOnChanges(Xe){const{disabled:ke,nzStatus:q}=Xe;ke&&this.disabled$.next(this.disabled),q&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Xe,ke){this.status=Xe,this.hasFeedback=ke,this.renderFeedbackIcon(),this.statusCls=(0,Q.LP)(this.prefixCls,Xe,ke),Object.keys(this.statusCls).forEach(q=>{this.statusCls[q]?this.renderer.addClass(this.elementRef.nativeElement,q):this.renderer.removeClass(this.elementRef.nativeElement,q)})}renderFeedbackIcon(){if(!this.status||!this.hasFeedback||this.nzFormNoStatusService)return this.hostView.clear(),void(this.feedbackRef=null);this.feedbackRef=this.feedbackRef||this.hostView.createComponent(P.Xd),this.feedbackRef.location.nativeElement.classList.add("ant-input-suffix"),this.feedbackRef.instance.status=this.status,this.feedbackRef.instance.updateIcon()}static#e=this.\u0275fac=function(ke){return new(ke||Ft)(r.rXU(oe.vO,10),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(r.c1b),r.rXU(ee.dS,8),r.rXU(P.is,8),r.rXU(P.n1,8))};static#t=this.\u0275dir=r.FsC({type:Ft,selectors:[["input","nz-input",""],["textarea","nz-input",""]],hostAttrs:[1,"ant-input"],hostVars:13,hostBindings:function(ke,q){2&ke&&(r.BMQ("disabled",q.disabled||null),r.AVh("ant-input-disabled",q.disabled)("ant-input-borderless",q.nzBorderless)("ant-input-lg","large"===q.nzSize)("ant-input-sm","small"===q.nzSize)("ant-input-rtl","rtl"===q.dir)("ant-input-stepperless",q.nzStepperless))},inputs:{nzBorderless:[2,"nzBorderless","nzBorderless",r.L39],nzSize:"nzSize",nzStepperless:[2,"nzStepperless","nzStepperless",r.L39],nzStatus:"nzStatus",disabled:[2,"disabled","disabled",r.L39]},exportAs:["nzInput"],standalone:!0,features:[r.GFd,r.OA$]})}return Ft})(),Jn=(()=>{class Ft{constructor(Xe){this.elementRef=Xe}static#e=this.\u0275fac=function(ke){return new(ke||Ft)(r.rXU(r.aKT))};static#t=this.\u0275dir=r.FsC({type:Ft,selectors:[["nz-input-group","nzSuffix",""],["nz-input-group","nzPrefix",""]],standalone:!0})}return Ft})(),Dn=(()=>{class Ft{constructor(Xe,ke,q,G,H,ze,Qe){this.focusMonitor=Xe,this.elementRef=ke,this.renderer=q,this.cdr=G,this.directionality=H,this.nzFormStatusService=ze,this.nzFormNoStatusService=Qe,this.nzAddOnBeforeIcon=null,this.nzAddOnAfterIcon=null,this.nzPrefixIcon=null,this.nzSuffixIcon=null,this.nzStatus="",this.nzSize="default",this.nzSearch=!1,this.nzCompact=!1,this.isLarge=!1,this.isSmall=!1,this.isAffix=!1,this.isAddOn=!1,this.isFeedback=!1,this.focused=!1,this.disabled=!1,this.dir="ltr",this.prefixCls="ant-input",this.affixStatusCls={},this.groupStatusCls={},this.affixInGroupStatusCls={},this.status="",this.hasFeedback=!1,this.destroy$=new m.B}updateChildrenInputSize(){this.listOfNzInputDirective&&this.listOfNzInputDirective.forEach(Xe=>Xe.nzSize=this.nzSize)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,z.F)((Xe,ke)=>Xe.status===ke.status&&Xe.hasFeedback===ke.hasFeedback),(0,j.Q)(this.destroy$)).subscribe(({status:Xe,hasFeedback:ke})=>{this.setStatusStyles(Xe,ke)}),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,j.Q)(this.destroy$)).subscribe(Xe=>{this.focused=!!Xe,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,j.Q)(this.destroy$)).subscribe(Xe=>{this.dir=Xe})}ngAfterContentInit(){this.updateChildrenInputSize();const Xe=this.listOfNzInputDirective.changes.pipe((0,$.Z)(this.listOfNzInputDirective));Xe.pipe((0,k.n)(ke=>(0,e.h)(Xe,...ke.map(q=>q.disabled$))),(0,I.Z)(()=>Xe),(0,w.T)(ke=>ke.some(q=>q.disabled)),(0,j.Q)(this.destroy$)).subscribe(ke=>{this.disabled=ke,this.cdr.markForCheck()})}ngOnChanges(Xe){const{nzSize:ke,nzSuffix:q,nzPrefix:G,nzPrefixIcon:H,nzSuffixIcon:ze,nzAddOnAfter:Qe,nzAddOnBefore:ht,nzAddOnAfterIcon:Kt,nzAddOnBeforeIcon:fn,nzStatus:In}=Xe;ke&&(this.updateChildrenInputSize(),this.isLarge="large"===this.nzSize,this.isSmall="small"===this.nzSize),(q||G||H||ze)&&(this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)),(Qe||ht||Kt||fn)&&(this.isAddOn=!!(this.nzAddOnAfter||this.nzAddOnBefore||this.nzAddOnAfterIcon||this.nzAddOnBeforeIcon),this.nzFormNoStatusService?.noFormStatus?.next(this.isAddOn)),In&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngOnDestroy(){this.focusMonitor.stopMonitoring(this.elementRef),this.destroy$.next(),this.destroy$.complete()}setStatusStyles(Xe,ke){this.status=Xe,this.hasFeedback=ke,this.isFeedback=!!Xe&&ke,this.isAffix=!!(this.nzSuffix||this.nzPrefix||this.nzPrefixIcon||this.nzSuffixIcon)||!this.isAddOn&&ke,this.affixInGroupStatusCls=this.isAffix||this.isFeedback?this.affixStatusCls=(0,Q.LP)(`${this.prefixCls}-affix-wrapper`,Xe,ke):{},this.cdr.markForCheck(),this.affixStatusCls=(0,Q.LP)(`${this.prefixCls}-affix-wrapper`,this.isAddOn?"":Xe,!this.isAddOn&&ke),this.groupStatusCls=(0,Q.LP)(`${this.prefixCls}-group-wrapper`,this.isAddOn?Xe:"",!!this.isAddOn&&ke);const G={...this.affixStatusCls,...this.groupStatusCls};Object.keys(G).forEach(H=>{G[H]?this.renderer.addClass(this.elementRef.nativeElement,H):this.renderer.removeClass(this.elementRef.nativeElement,H)})}static#e=this.\u0275fac=function(ke){return new(ke||Ft)(r.rXU(Ee.FN),r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.gRc),r.rXU(ee.dS,8),r.rXU(P.is,8),r.rXU(P.n1,8))};static#t=this.\u0275cmp=r.VBU({type:Ft,selectors:[["nz-input-group"]],contentQueries:function(ke,q,G){if(1&ke&&r.wni(G,Tn,4),2&ke){let H;r.mGM(H=r.lsd())&&(q.listOfNzInputDirective=H)}},hostVars:40,hostBindings:function(ke,q){2&ke&&r.AVh("ant-input-group-compact",q.nzCompact)("ant-input-search-enter-button",q.nzSearch)("ant-input-search",q.nzSearch)("ant-input-search-rtl","rtl"===q.dir)("ant-input-search-sm",q.nzSearch&&q.isSmall)("ant-input-search-large",q.nzSearch&&q.isLarge)("ant-input-group-wrapper",q.isAddOn)("ant-input-group-wrapper-rtl","rtl"===q.dir)("ant-input-group-wrapper-lg",q.isAddOn&&q.isLarge)("ant-input-group-wrapper-sm",q.isAddOn&&q.isSmall)("ant-input-affix-wrapper",q.isAffix&&!q.isAddOn)("ant-input-affix-wrapper-rtl","rtl"===q.dir)("ant-input-affix-wrapper-focused",q.isAffix&&q.focused)("ant-input-affix-wrapper-disabled",q.isAffix&&q.disabled)("ant-input-affix-wrapper-lg",q.isAffix&&!q.isAddOn&&q.isLarge)("ant-input-affix-wrapper-sm",q.isAffix&&!q.isAddOn&&q.isSmall)("ant-input-group",!q.isAffix&&!q.isAddOn)("ant-input-group-rtl","rtl"===q.dir)("ant-input-group-lg",!q.isAffix&&!q.isAddOn&&q.isLarge)("ant-input-group-sm",!q.isAffix&&!q.isAddOn&&q.isSmall)},inputs:{nzAddOnBeforeIcon:"nzAddOnBeforeIcon",nzAddOnAfterIcon:"nzAddOnAfterIcon",nzPrefixIcon:"nzPrefixIcon",nzSuffixIcon:"nzSuffixIcon",nzAddOnBefore:"nzAddOnBefore",nzAddOnAfter:"nzAddOnAfter",nzPrefix:"nzPrefix",nzStatus:"nzStatus",nzSuffix:"nzSuffix",nzSize:"nzSize",nzSearch:[2,"nzSearch","nzSearch",r.L39],nzCompact:[2,"nzCompact","nzCompact",r.L39]},exportAs:["nzInputGroup"],standalone:!0,features:[r.Jv_([P.n1]),r.GFd,r.OA$,r.aNF],ngContentSelectors:ve,decls:6,vars:1,consts:[["affixTemplate",""],["contentTemplate",""],[1,"ant-input-wrapper","ant-input-group"],["nz-input-group-slot","","type","addon",3,"icon","template"],[1,"ant-input-affix-wrapper",3,"ant-input-affix-wrapper-disabled","ant-input-affix-wrapper-sm","ant-input-affix-wrapper-lg","ant-input-affix-wrapper-focused","ngClass"],[3,"ngTemplateOutlet"],[1,"ant-input-affix-wrapper",3,"ngClass"],["nz-input-group-slot","","type","prefix",3,"icon","template"],["nz-input-group-slot","","type","suffix",3,"icon","template"],[3,"status"],["nz-input-group-slot","","type","suffix"]],template:function(ke,q){1&ke&&(r.NAR(),r.DNE(0,X,5,3,"span",2)(1,Vt,2,1)(2,St,3,3,"ng-template",null,0,r.C5r)(4,It,2,1,"ng-template",null,1,r.C5r)),2&ke&&r.vxM(q.isAddOn?0:1)},dependencies:[Xt,t.YU,t.T3,P.J1,P.Xd],encapsulation:2,changeDetection:0})}return Ft})(),Mt=(()=>{class Ft{set nzAutosize(Xe){var q;"string"==typeof Xe||!0===Xe?this.autosize=!0:"string"!=typeof(q=Xe)&&"boolean"!=typeof q&&(q.maxRows||q.minRows)&&(this.autosize=!0,this.minRows=Xe.minRows,this.maxRows=Xe.maxRows,this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight())}resizeToFitContent(Xe=!1){if(this.cacheTextareaLineHeight(),!this.cachedLineHeight)return;const ke=this.el,q=ke.value;if(!Xe&&this.minRows===this.previousMinRows&&q===this.previousValue)return;const G=ke.placeholder;ke.classList.add("nz-textarea-autosize-measuring"),ke.placeholder="";let H=Math.round((ke.scrollHeight-this.inputGap)/this.cachedLineHeight)*this.cachedLineHeight+this.inputGap;null!==this.maxHeight&&H>this.maxHeight&&(H=this.maxHeight),null!==this.minHeight&&HrequestAnimationFrame(()=>{const{selectionStart:ze,selectionEnd:Qe}=ke;!this.destroy$.isStopped&&document.activeElement===ke&&ke.setSelectionRange(ze,Qe)})),this.previousValue=q,this.previousMinRows=this.minRows}cacheTextareaLineHeight(){if(this.cachedLineHeight>=0||!this.el.parentNode)return;const Xe=this.el.cloneNode(!1);Xe.rows=1,Xe.style.position="absolute",Xe.style.visibility="hidden",Xe.style.border="none",Xe.style.padding="0",Xe.style.height="",Xe.style.minHeight="",Xe.style.maxHeight="",Xe.style.overflow="hidden",this.el.parentNode.appendChild(Xe),this.cachedLineHeight=Xe.clientHeight-this.inputGap,this.el.parentNode.removeChild(Xe),this.maxHeight=this.setMaxHeight(),this.minHeight=this.setMinHeight()}setMinHeight(){const Xe=this.minRows&&this.cachedLineHeight?this.minRows*this.cachedLineHeight+this.inputGap:null;return null!==Xe&&(this.el.style.minHeight=`${Xe}px`),Xe}setMaxHeight(){const Xe=this.maxRows&&this.cachedLineHeight?this.maxRows*this.cachedLineHeight+this.inputGap:null;return null!==Xe&&(this.el.style.maxHeight=`${Xe}px`),Xe}noopInputHandler(){}constructor(Xe,ke,q,G){this.elementRef=Xe,this.ngZone=ke,this.platform=q,this.resizeService=G,this.autosize=!1,this.el=this.elementRef.nativeElement,this.maxHeight=null,this.minHeight=null,this.destroy$=new m.B,this.inputGap=10}ngAfterViewInit(){this.autosize&&this.platform.isBrowser&&(this.resizeToFitContent(),this.resizeService.subscribe().pipe((0,j.Q)(this.destroy$)).subscribe(()=>this.resizeToFitContent(!0)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngDoCheck(){this.autosize&&this.platform.isBrowser&&this.resizeToFitContent()}static#e=this.\u0275fac=function(ke){return new(ke||Ft)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(Ie.OD),r.rXU(ce.cB))};static#t=this.\u0275dir=r.FsC({type:Ft,selectors:[["textarea","nzAutosize",""]],hostAttrs:["rows","1"],hostBindings:function(ke,q){1&ke&&r.bIt("input",function(){return q.noopInputHandler()})},inputs:{nzAutosize:"nzAutosize"},exportAs:["nzAutosize"],standalone:!0})}return Ft})(),wt=(()=>{class Ft{static#e=this.\u0275fac=function(ke){return new(ke||Ft)};static#t=this.\u0275mod=r.$C({type:Ft});static#n=this.\u0275inj=r.G2t({imports:[Dn,Xt]})}return Ft})()},2617:($t,De,a)=>{a.d(De,{$2:()=>ie,MV:()=>et,Tc:()=>re,Xo:()=>mt,YU:()=>Yt,eE:()=>de,lQ:()=>Oe,mf:()=>An,nt:()=>_t,qx:()=>ae,rD:()=>Ze});var t=a(177),r=a(3953),m=a(7806),e=a(9438),z=a(1413),j=a(9030),R=a(7673),$=a(7786),k=a(4412),I=a(1397),w=a(9172),P=a(6977),Q=a(1025),N=a(7529),x=a(2983),oe=a(1672),ee=a(8203);const Ee=["*"];function Ie(Ne,Le){if(1&Ne&&r.nrm(0,"nz-avatar",1),2&Ne){const Y=r.XpG();r.Y8G("nzSrc",Y.nzSrc)}}function ce(Ne,Le){1&Ne&&r.SdG(0)}const Pe=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],ve=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function pe(Ne,Le){if(1&Ne&&r.nrm(0,"nz-list-item-meta-avatar",0),2&Ne){const Y=r.XpG();r.Y8G("nzSrc",Y.avatarStr)}}function U(Ne,Le){if(1&Ne&&(r.j41(0,"nz-list-item-meta-avatar"),r.eu8(1,2),r.k0s()),2&Ne){const Y=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",Y.avatarTpl)}}function M(Ne,Le){if(1&Ne&&(r.qex(0),r.EFF(1),r.bVm()),2&Ne){const Y=r.XpG(3);r.R7$(),r.JRh(Y.nzTitle)}}function te(Ne,Le){if(1&Ne&&(r.j41(0,"nz-list-item-meta-title"),r.DNE(1,M,2,1,"ng-container",3),r.k0s()),2&Ne){const Y=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzTitle)}}function ge(Ne,Le){if(1&Ne&&(r.qex(0),r.EFF(1),r.bVm()),2&Ne){const Y=r.XpG(3);r.R7$(),r.JRh(Y.nzDescription)}}function T(Ne,Le){if(1&Ne&&(r.j41(0,"nz-list-item-meta-description"),r.DNE(1,ge,2,1,"ng-container",3),r.k0s()),2&Ne){const Y=r.XpG(2);r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzDescription)}}function D(Ne,Le){if(1&Ne&&(r.j41(0,"div",1),r.DNE(1,te,2,1,"nz-list-item-meta-title")(2,T,2,1,"nz-list-item-meta-description"),r.SdG(3,1),r.SdG(4,2),r.k0s()),2&Ne){const Y=r.XpG();r.R7$(),r.vxM(Y.nzTitle&&!Y.titleComponent?1:-1),r.R7$(),r.vxM(Y.nzDescription&&!Y.descriptionComponent?2:-1)}}function A(Ne,Le){1&Ne&&r.SdG(0)}const X=["nz-list-item-actions",""];function se(Ne,Le){}function je(Ne,Le){1&Ne&&r.nrm(0,"em",1)}function Bt(Ne,Le){if(1&Ne&&(r.j41(0,"li"),r.DNE(1,se,0,0,"ng-template",0)(2,je,1,0,"em",1),r.k0s()),2&Ne){const Y=Le.$implicit,le=Le.$index,V=Le.$count;r.R7$(),r.Y8G("ngTemplateOutlet",Y),r.R7$(),r.vxM(le!==V-1?2:-1)}}const Tt=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],Vt=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"],He=(Ne,Le)=>({$implicit:Ne,index:Le});function xt(Ne,Le){if(1&Ne&&(r.qex(0),r.EFF(1),r.bVm()),2&Ne){const Y=r.XpG(2);r.R7$(),r.JRh(Y.nzHeader)}}function Lt(Ne,Le){if(1&Ne&&(r.j41(0,"nz-list-header"),r.DNE(1,xt,2,1,"ng-container",6),r.k0s()),2&Ne){const Y=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzHeader)}}function ft(Ne,Le){1&Ne&&r.nrm(0,"div"),2&Ne&&r.xc7("min-height",53,"px")}function St(Ne,Le){}function kt(Ne,Le){if(1&Ne&&(r.j41(0,"div",7),r.DNE(1,St,0,0,"ng-template",8),r.k0s()),2&Ne){const Y=Le.$implicit,le=Le.$index,V=r.XpG(2);r.Y8G("nzSpan",V.nzGrid.span||null)("nzXs",V.nzGrid.xs||null)("nzSm",V.nzGrid.sm||null)("nzMd",V.nzGrid.md||null)("nzLg",V.nzGrid.lg||null)("nzXl",V.nzGrid.xl||null)("nzXXl",V.nzGrid.xxl||null),r.R7$(),r.Y8G("ngTemplateOutlet",V.nzRenderItem)("ngTemplateOutletContext",r.l_i(9,He,Y,le))}}function It(Ne,Le){if(1&Ne&&(r.j41(0,"div",2),r.Z7z(1,kt,2,12,"div",7,r.fX1),r.k0s()),2&Ne){const Y=r.XpG();r.Y8G("nzGutter",Y.nzGrid.gutter||null),r.R7$(),r.Dyx(Y.nzDataSource)}}function rn(Ne,Le){}function en(Ne,Le){if(1&Ne&&(r.qex(0),r.DNE(1,rn,0,0,"ng-template",8),r.bVm()),2&Ne){const Y=Le.$implicit,le=Le.$index,V=r.XpG(2);r.R7$(),r.Y8G("ngTemplateOutlet",V.nzRenderItem)("ngTemplateOutletContext",r.l_i(2,He,Y,le))}}function Xt(Ne,Le){if(1&Ne&&(r.j41(0,"div",3),r.Z7z(1,en,2,5,"ng-container",null,r.fX1),r.SdG(3,4),r.k0s()),2&Ne){const Y=r.XpG();r.R7$(),r.Dyx(Y.nzDataSource)}}function Tn(Ne,Le){if(1&Ne&&r.nrm(0,"nz-list-empty",4),2&Ne){const Y=r.XpG();r.Y8G("nzNoResult",Y.nzNoResult)}}function Jn(Ne,Le){if(1&Ne&&(r.qex(0),r.EFF(1),r.bVm()),2&Ne){const Y=r.XpG(2);r.R7$(),r.JRh(Y.nzFooter)}}function Dn(Ne,Le){if(1&Ne&&(r.j41(0,"nz-list-footer"),r.DNE(1,Jn,2,1,"ng-container",6),r.k0s()),2&Ne){const Y=r.XpG();r.R7$(),r.Y8G("nzStringTemplateOutlet",Y.nzFooter)}}function Mt(Ne,Le){}function Ut(Ne,Le){}function wt(Ne,Le){if(1&Ne&&(r.j41(0,"nz-list-pagination"),r.DNE(1,Ut,0,0,"ng-template",5),r.k0s()),2&Ne){const Y=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",Y.nzPagination)}}const Ft=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Qt=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];function Xe(Ne,Le){if(1&Ne&&r.nrm(0,"ul",3),2&Ne){const Y=r.XpG(2);r.Y8G("nzActions",Y.nzActions)}}function ke(Ne,Le){if(1&Ne&&(r.DNE(0,Xe,1,1,"ul",3),r.SdG(1)),2&Ne){const Y=r.XpG();r.vxM(Y.nzActions&&Y.nzActions.length>0?0:-1)}}function q(Ne,Le){if(1&Ne&&(r.qex(0),r.EFF(1),r.bVm()),2&Ne){const Y=r.XpG(3);r.R7$(),r.JRh(Y.nzContent)}}function G(Ne,Le){if(1&Ne&&r.DNE(0,q,2,1,"ng-container",4),2&Ne){const Y=r.XpG(2);r.Y8G("nzStringTemplateOutlet",Y.nzContent)}}function H(Ne,Le){if(1&Ne&&(r.SdG(0,1),r.SdG(1,2),r.DNE(2,G,1,1,"ng-container")),2&Ne){const Y=r.XpG();r.R7$(2),r.vxM(Y.nzContent?2:-1)}}function ze(Ne,Le){1&Ne&&r.SdG(0,3)}function Qe(Ne,Le){}function ht(Ne,Le){}function Kt(Ne,Le){}function fn(Ne,Le){if(1&Ne&&(r.j41(0,"nz-list-item-extra"),r.DNE(1,Kt,0,0,"ng-template",6),r.k0s()),2&Ne){const Y=r.XpG(2);r.R7$(),r.Y8G("ngTemplateOutlet",Y.nzExtra)}}function In(Ne,Le){}function Kn(Ne,Le){if(1&Ne&&(r.j41(0,"div",5),r.DNE(1,Qe,0,0,"ng-template",6)(2,ht,0,0,"ng-template",6),r.k0s(),r.DNE(3,fn,2,1,"nz-list-item-extra")(4,In,0,0,"ng-template",6)),2&Ne){const Y=r.XpG(),le=r.sdS(1),V=r.sdS(3),Ve=r.sdS(5);r.R7$(),r.Y8G("ngTemplateOutlet",V),r.R7$(),r.Y8G("ngTemplateOutlet",le),r.R7$(),r.vxM(Y.nzExtra?3:-1),r.R7$(),r.Y8G("ngTemplateOutlet",Ve)}}function Gn(Ne,Le){}function $n(Ne,Le){}function Nn(Ne,Le){}function vn(Ne,Le){}function Jt(Ne,Le){if(1&Ne&&r.DNE(0,Gn,0,0,"ng-template",6)(1,$n,0,0,"ng-template",6)(2,Nn,0,0,"ng-template",6)(3,vn,0,0,"ng-template",6),2&Ne){const Y=r.XpG(),le=r.sdS(1),V=r.sdS(3),Ve=r.sdS(5);r.Y8G("ngTemplateOutlet",V),r.R7$(),r.Y8G("ngTemplateOutlet",Y.nzExtra),r.R7$(),r.Y8G("ngTemplateOutlet",Ve),r.R7$(),r.Y8G("ngTemplateOutlet",le)}}let An=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],standalone:!0,features:[r.aNF],ngContentSelectors:Ee,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(le,V){1&le&&(r.NAR(),r.j41(0,"h4",0),r.SdG(1),r.k0s())},encapsulation:2,changeDetection:0})}return Ne})(),Yt=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],standalone:!0,features:[r.aNF],ngContentSelectors:Ee,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(le,V){1&le&&(r.NAR(),r.j41(0,"div",0),r.SdG(1),r.k0s())},encapsulation:2,changeDetection:0})}return Ne})(),Je=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],standalone:!0,features:[r.aNF],ngContentSelectors:Ee,decls:3,vars:1,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc"]],template:function(le,V){1&le&&(r.NAR(),r.j41(0,"div",0),r.DNE(1,Ie,1,1,"nz-avatar",1)(2,ce,1,0),r.k0s()),2&le&&(r.R7$(),r.vxM(V.nzSrc?1:2))},dependencies:[e.Yb,e.PM],encapsulation:2,changeDetection:0})}return Ne})(),ae=(()=>{class Ne{set nzAvatar(Y){Y instanceof r.C4Q?(this.avatarStr="",this.avatarTpl=Y):this.avatarStr=Y}constructor(Y){this.elementRef=Y,this.avatarStr=""}static#e=this.\u0275fac=function(le){return new(le||Ne)(r.rXU(r.aKT))};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(le,V,Ve){if(1&le&&(r.wni(Ve,Yt,5),r.wni(Ve,An,5)),2&le){let Ce;r.mGM(Ce=r.lsd())&&(V.descriptionComponent=Ce.first),r.mGM(Ce=r.lsd())&&(V.titleComponent=Ce.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],standalone:!0,features:[r.aNF],ngContentSelectors:ve,decls:4,vars:3,consts:[[3,"nzSrc"],[1,"ant-list-item-meta-content"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"]],template:function(le,V){1&le&&(r.NAR(Pe),r.DNE(0,pe,1,1,"nz-list-item-meta-avatar",0)(1,U,2,1,"nz-list-item-meta-avatar"),r.SdG(2),r.DNE(3,D,5,2,"div",1)),2&le&&(r.vxM(V.avatarStr?0:-1),r.R7$(),r.vxM(V.avatarTpl?1:-1),r.R7$(2),r.vxM(V.nzTitle||V.nzDescription||V.descriptionComponent||V.titleComponent?3:-1))},dependencies:[Je,t.T3,An,m.C,m.m,Yt],encapsulation:2,changeDetection:0})}return Ne})(),ie=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],standalone:!0,features:[r.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(le,V){1&le&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Ne})(),re=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-item-action"]],viewQuery:function(le,V){if(1&le&&r.GBs(r.C4Q,7),2&le){let Ve;r.mGM(Ve=r.lsd())&&(V.templateRef=Ve.first)}},exportAs:["nzListItemAction"],standalone:!0,features:[r.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(le,V){1&le&&(r.NAR(),r.DNE(0,A,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return Ne})(),et=(()=>{class Ne{constructor(Y,le){this.nzActions=[],this.actions=[],this.inputActionChanges$=new z.B,this.contentChildrenChanges$=(0,j.v)(()=>this.nzListItemActions?(0,R.of)(null):this.initialized.pipe((0,I.Z)(()=>this.nzListItemActions.changes.pipe((0,w.Z)(this.nzListItemActions))))),this.initialized=new z.B,(0,$.h)(this.contentChildrenChanges$,this.inputActionChanges$).pipe((0,P.Q)(le)).subscribe(()=>{this.actions=this.nzActions.length?this.nzActions:this.nzListItemActions.map(V=>V.templateRef),Y.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngAfterContentInit(){this.initialized.next(),this.initialized.complete()}static#e=this.\u0275fac=function(le){return new(le||Ne)(r.rXU(r.gRc),r.rXU(Q.y4))};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(le,V,Ve){if(1&le&&r.wni(Ve,re,4),2&le){let Ce;r.mGM(Ce=r.lsd())&&(V.nzListItemActions=Ce)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],standalone:!0,features:[r.Jv_([Q.y4]),r.OA$,r.aNF],attrs:X,decls:2,vars:0,consts:[[3,"ngTemplateOutlet"],[1,"ant-list-item-action-split"]],template:function(le,V){1&le&&r.Z7z(0,Bt,3,2,"li",null,r.fX1),2&le&&r.Dyx(V.actions)},dependencies:[t.T3],encapsulation:2,changeDetection:0})}return Ne})(),_t=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],standalone:!0,features:[r.aNF],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(le,V){1&le&&r.nrm(0,"nz-embed-empty",0),2&le&&r.Y8G("nzComponentName","list")("specificContent",V.nzNoResult)},dependencies:[oe._v,oe.E8],encapsulation:2,changeDetection:0})}return Ne})(),mt=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],standalone:!0,features:[r.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(le,V){1&le&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Ne})(),Rt=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],standalone:!0,features:[r.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(le,V){1&le&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Ne})(),ct=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],standalone:!0,features:[r.aNF],ngContentSelectors:Ee,decls:1,vars:0,template:function(le,V){1&le&&(r.NAR(),r.SdG(0))},encapsulation:2,changeDetection:0})}return Ne})(),Se=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275dir=r.FsC({type:Ne,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"],standalone:!0})}return Ne})(),de=(()=>{class Ne{get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor(Y){this.directionality=Y,this.nzBordered=!1,this.nzGrid="",this.nzItemLayout="horizontal",this.nzRenderItem=null,this.nzLoading=!1,this.nzLoadMore=null,this.nzSize="default",this.nzSplit=!0,this.hasSomethingAfterLastItem=!1,this.dir="ltr",this.itemLayoutNotifySource=new k.t(this.nzItemLayout),this.destroy$=new z.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(Y=>{this.dir=Y})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(Y){Y.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngOnDestroy(){this.itemLayoutNotifySource.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}static#e=this.\u0275fac=function(le){return new(le||Ne)(r.rXU(ee.dS,8))};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(le,V,Ve){if(1&le&&(r.wni(Ve,Rt,5),r.wni(Ve,ct,5),r.wni(Ve,Se,5)),2&le){let Ce;r.mGM(Ce=r.lsd())&&(V.nzListFooterComponent=Ce.first),r.mGM(Ce=r.lsd())&&(V.nzListPaginationComponent=Ce.first),r.mGM(Ce=r.lsd())&&(V.nzListLoadMoreDirective=Ce.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(le,V){2&le&&r.AVh("ant-list-rtl","rtl"===V.dir)("ant-list-vertical","vertical"===V.nzItemLayout)("ant-list-lg","large"===V.nzSize)("ant-list-sm","small"===V.nzSize)("ant-list-split",V.nzSplit)("ant-list-bordered",V.nzBordered)("ant-list-loading",V.nzLoading)("ant-list-something-after-last-item",V.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:[2,"nzBordered","nzBordered",r.L39],nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:[2,"nzLoading","nzLoading",r.L39],nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:[2,"nzSplit","nzSplit",r.L39],nzNoResult:"nzNoResult"},exportAs:["nzList"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],ngContentSelectors:Vt,decls:14,vars:8,consts:[[3,"nzSpinning"],[3,"min-height"],["nz-row","",3,"nzGutter"],[1,"ant-list-items"],[3,"nzNoResult"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(le,V){1&le&&(r.NAR(Tt),r.DNE(0,Lt,2,1,"nz-list-header"),r.SdG(1),r.j41(2,"nz-spin",0),r.qex(3),r.DNE(4,ft,1,2,"div",1)(5,It,3,1,"div",2)(6,Xt,4,0,"div",3)(7,Tn,1,1,"nz-list-empty",4),r.bVm(),r.k0s(),r.DNE(8,Dn,2,1,"nz-list-footer"),r.SdG(9,1),r.DNE(10,Mt,0,0,"ng-template",5),r.SdG(11,2),r.DNE(12,wt,2,1,"nz-list-pagination"),r.SdG(13,3)),2&le&&(r.vxM(V.nzHeader?0:-1),r.R7$(2),r.Y8G("nzSpinning",V.nzLoading),r.R7$(2),r.vxM(V.nzLoading&&V.nzDataSource&&0===V.nzDataSource.length?4:-1),r.R7$(),r.vxM(V.nzGrid&&V.nzDataSource?5:6),r.R7$(2),r.vxM(!V.nzLoading&&V.nzDataSource&&0===V.nzDataSource.length?7:-1),r.R7$(),r.vxM(V.nzFooter?8:-1),r.R7$(2),r.Y8G("ngTemplateOutlet",V.nzLoadMore),r.R7$(2),r.vxM(V.nzPagination?12:-1))},dependencies:[t.T3,mt,m.C,m.m,x.V,x.a,N.f3,N.Uq,N.e,_t,Rt,ct],encapsulation:2,changeDetection:0})}return Ne})(),Oe=(()=>{class Ne{get isVerticalAndExtra(){return!("vertical"!==this.itemLayout||!this.listItemExtraDirective&&!this.nzExtra)}constructor(Y,le){this.parentComp=Y,this.cdr=le,this.nzActions=[],this.nzExtra=null,this.nzNoFlex=!1}ngAfterViewInit(){this.itemLayout$=this.parentComp.itemLayoutNotify$.subscribe(Y=>{this.itemLayout=Y,this.cdr.detectChanges()})}ngOnDestroy(){this.itemLayout$&&this.itemLayout$.unsubscribe()}static#e=this.\u0275fac=function(le){return new(le||Ne)(r.rXU(de),r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:Ne,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(le,V,Ve){if(1&le&&r.wni(Ve,ie,5),2&le){let Ce;r.mGM(Ce=r.lsd())&&(V.listItemExtraDirective=Ce.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function(le,V){2&le&&r.AVh("ant-list-item-no-flex",V.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:[2,"nzNoFlex","nzNoFlex",r.L39]},exportAs:["nzListItem"],standalone:!0,features:[r.GFd,r.aNF],ngContentSelectors:Qt,decls:8,vars:1,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["nz-list-item-actions","",3,"nzActions"],[4,"nzStringTemplateOutlet"],[1,"ant-list-item-main"],[3,"ngTemplateOutlet"]],template:function(le,V){1&le&&(r.NAR(Ft),r.DNE(0,ke,2,1,"ng-template",null,0,r.C5r)(2,H,3,1,"ng-template",null,1,r.C5r)(4,ze,1,0,"ng-template",null,2,r.C5r)(6,Kn,5,4)(7,Jt,4,4)),2&le&&(r.R7$(6),r.vxM(V.isVerticalAndExtra?6:7))},dependencies:[et,m.C,m.m,t.T3,ie],encapsulation:2,changeDetection:0})}return Ne})(),Ze=(()=>{class Ne{static#e=this.\u0275fac=function(le){return new(le||Ne)};static#t=this.\u0275mod=r.$C({type:Ne});static#n=this.\u0275inj=r.G2t({imports:[de,_t,Oe,ae,Je]})}return Ne})()},1868:($t,De,a)=>{a.d(De,{$1:()=>Xe,CU:()=>q,GP:()=>vn,WQ:()=>$n,ek:()=>Ft,jS:()=>Kn,sD:()=>Nn});var t=a(3953),r=a(1413),m=a(4412),e=a(7786),z=a(4572),j=a(6354),R=a(1397),$=a(5964),k=a(3703),I=a(3798),w=a(3294),P=a(6977),Q=a(9172),N=a(5558),x=a(1188),oe=a(317),ee=a(8203),Ee=a(7987),Ie=a(6841),ce=a(5463),Pe=a(177),ve=a(713),pe=a(7806),U=a(5103),M=a(6860);const te=["nz-menu-item",""],ge=["*"],T=["nz-submenu-inline-child",""];function D(Jt,An){}const A=["nz-submenu-none-inline-child",""];function X(Jt,An){}const se=["nz-submenu-title",""];function je(Jt,An){if(1&Jt&&t.nrm(0,"span",0),2&Jt){const Yt=t.XpG();t.Y8G("nzType",Yt.nzIcon)}}function Bt(Jt,An){if(1&Jt&&(t.qex(0),t.j41(1,"span",4),t.EFF(2),t.k0s(),t.bVm()),2&Jt){const Yt=t.XpG();t.R7$(2),t.JRh(Yt.nzTitle)}}function Tt(Jt,An){1&Jt&&t.nrm(0,"span",5)}function Vt(Jt,An){1&Jt&&t.nrm(0,"span",6)}function He(Jt,An){if(1&Jt&&(t.j41(0,"span",2),t.DNE(1,Tt,1,0,"span",5)(2,Vt,1,0,"span",6),t.k0s()),2&Jt){let Yt;const Je=t.XpG();t.R7$(),t.vxM("rtl"===(Yt=Je.dir)?1:2)}}function xt(Jt,An){1&Jt&&t.nrm(0,"span",3)}const Lt=["nz-submenu",""],ft=[[["","title",""]],"*"],St=["[title]","*"];function kt(Jt,An){1&Jt&&t.SdG(0)}function It(Jt,An){if(1&Jt&&t.nrm(0,"div",3),2&Jt){const Yt=t.XpG(),Je=t.sdS(6);t.Y8G("mode",Yt.mode)("nzOpen",Yt.nzOpen)("@.disabled",!(null==Yt.noAnimation||!Yt.noAnimation.nzNoAnimation))("nzNoAnimation",null==Yt.noAnimation?null:Yt.noAnimation.nzNoAnimation)("menuClass",Yt.nzMenuClassName)("templateOutlet",Je)}}function rn(Jt,An){if(1&Jt){const Yt=t.RV6();t.j41(0,"div",6),t.bIt("subMenuMouseState",function(ae){t.eBV(Yt);const ie=t.XpG(2);return t.Njj(ie.setMouseEnterState(ae))}),t.k0s()}if(2&Jt){const Yt=t.XpG(2),Je=t.sdS(6);t.Y8G("theme",Yt.theme)("mode",Yt.mode)("nzOpen",Yt.nzOpen)("position",Yt.position)("nzDisabled",Yt.nzDisabled)("isMenuInsideDropDown",Yt.isMenuInsideDropDown)("templateOutlet",Je)("menuClass",Yt.nzMenuClassName)("@.disabled",!(null==Yt.noAnimation||!Yt.noAnimation.nzNoAnimation))("nzNoAnimation",null==Yt.noAnimation?null:Yt.noAnimation.nzNoAnimation)}}function en(Jt,An){if(1&Jt){const Yt=t.RV6();t.DNE(0,rn,1,10,"ng-template",5),t.bIt("positionChange",function(ae){t.eBV(Yt);const ie=t.XpG();return t.Njj(ie.onPositionChange(ae))})}if(2&Jt){const Yt=t.XpG(),Je=t.sdS(1);t.Y8G("cdkConnectedOverlayPositions",Yt.overlayPositions)("cdkConnectedOverlayOrigin",Je)("cdkConnectedOverlayWidth",Yt.triggerWidth)("cdkConnectedOverlayOpen",Yt.nzOpen)("cdkConnectedOverlayTransformOriginOn",".ant-menu-submenu")}}function Xt(Jt,An){1&Jt&&t.SdG(0,1)}const Tn=["titleElement"],Jn=["nz-menu-group",""],Dn=["*",[["","title",""]]],Mt=["*","[title]"];function Ut(Jt,An){if(1&Jt&&(t.qex(0),t.EFF(1),t.bVm()),2&Jt){const Yt=t.XpG();t.R7$(),t.JRh(Yt.nzTitle)}}function wt(Jt,An){1&Jt&&t.SdG(0,1)}const Ft=new t.nKC("NzIsInDropDownMenuToken"),Qt=new t.nKC("NzMenuServiceLocalToken");let Xe=(()=>{class Jt{constructor(){this.descendantMenuItemClick$=new r.B,this.childMenuItemClick$=new r.B,this.theme$=new m.t("light"),this.mode$=new m.t("vertical"),this.inlineIndent$=new m.t(24),this.isChildSubMenuOpen$=new m.t(!1)}onDescendantMenuItemClick(Yt){this.descendantMenuItemClick$.next(Yt)}onChildMenuItemClick(Yt){this.childMenuItemClick$.next(Yt)}setMode(Yt){this.mode$.next(Yt)}setTheme(Yt){this.theme$.next(Yt)}setInlineIndent(Yt){this.inlineIndent$.next(Yt)}static#e=this.\u0275fac=function(Je){return new(Je||Jt)};static#t=this.\u0275prov=t.jDH({token:Jt,factory:Jt.\u0275fac})}return Jt})(),ke=(()=>{class Jt{onChildMenuItemClick(Yt){this.childMenuItemClick$.next(Yt)}setOpenStateWithoutDebounce(Yt){this.isCurrentSubMenuOpen$.next(Yt)}setMouseEnterTitleOrOverlayState(Yt){this.isMouseEnterTitleOrOverlay$.next(Yt)}constructor(Yt,Je,ae){this.nzHostSubmenuService=Yt,this.nzMenuService=Je,this.isMenuInsideDropDown=ae,this.mode$=this.nzMenuService.mode$.pipe((0,j.T)(_t=>"inline"===_t?"inline":"vertical"===_t||this.nzHostSubmenuService?"vertical":"horizontal")),this.level=1,this.isCurrentSubMenuOpen$=new m.t(!1),this.isChildSubMenuOpen$=new m.t(!1),this.isMouseEnterTitleOrOverlay$=new r.B,this.childMenuItemClick$=new r.B,this.destroy$=new r.B,this.nzHostSubmenuService&&(this.level=this.nzHostSubmenuService.level+1);const ie=this.childMenuItemClick$.pipe((0,R.Z)(()=>this.mode$),(0,$.p)(_t=>"inline"!==_t||this.isMenuInsideDropDown),(0,k.u)(!1)),re=(0,e.h)(this.isMouseEnterTitleOrOverlay$,ie);(0,z.z)([this.isChildSubMenuOpen$,re]).pipe((0,j.T)(([_t,mt])=>_t||mt),(0,I.Z)(150),(0,w.F)(),(0,P.Q)(this.destroy$)).pipe((0,w.F)()).subscribe(_t=>{this.setOpenStateWithoutDebounce(_t),this.nzHostSubmenuService?this.nzHostSubmenuService.isChildSubMenuOpen$.next(_t):this.nzMenuService.isChildSubMenuOpen$.next(_t)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.KVO(Jt,12),t.KVO(Xe),t.KVO(Ft))};static#t=this.\u0275prov=t.jDH({token:Jt,factory:Jt.\u0275fac})}return Jt})(),q=(()=>{class Jt{clickMenuItem(Yt){this.nzDisabled?(Yt.preventDefault(),Yt.stopPropagation()):(this.nzMenuService.onDescendantMenuItemClick(this),this.nzSubmenuService?this.nzSubmenuService.onChildMenuItemClick(this):this.nzMenuService.onChildMenuItemClick(this))}setSelectedState(Yt){this.nzSelected=Yt,this.selected$.next(Yt)}updateRouterActive(){!this.listOfRouterLink||!this.router||!this.router.navigated||!this.nzMatchRouter||Promise.resolve().then(()=>{const Yt=this.hasActiveLinks();this.nzSelected!==Yt&&(this.nzSelected=Yt,this.setSelectedState(this.nzSelected),this.cdr.markForCheck())})}hasActiveLinks(){const Yt=this.isLinkActive(this.router);return this.routerLink&&Yt(this.routerLink)||this.listOfRouterLink.some(Yt)}isLinkActive(Yt){return Je=>Yt.isActive(Je.urlTree||"",{paths:this.nzMatchRouterExact?"exact":"subset",queryParams:this.nzMatchRouterExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}constructor(Yt,Je,ae,ie,re,et,_t){this.nzMenuService=Yt,this.cdr=Je,this.nzSubmenuService=ae,this.isMenuInsideDropDown=ie,this.directionality=re,this.routerLink=et,this.router=_t,this.destroy$=new r.B,this.level=this.nzSubmenuService?this.nzSubmenuService.level+1:1,this.selected$=new r.B,this.inlinePaddingLeft=null,this.dir="ltr",this.nzDisabled=!1,this.nzSelected=!1,this.nzDanger=!1,this.nzMatchRouterExact=!1,this.nzMatchRouter=!1,_t&&this.router.events.pipe((0,P.Q)(this.destroy$),(0,$.p)(mt=>mt instanceof x.wF)).subscribe(()=>{this.updateRouterActive()})}ngOnInit(){(0,z.z)([this.nzMenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,P.Q)(this.destroy$)).subscribe(([Yt,Je])=>{this.inlinePaddingLeft="inline"===Yt?this.level*Je:null}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.dir=Yt})}ngAfterContentInit(){this.listOfRouterLink.changes.pipe((0,P.Q)(this.destroy$)).subscribe(()=>this.updateRouterActive()),this.updateRouterActive()}ngOnChanges(Yt){Yt.nzSelected&&this.setSelectedState(this.nzSelected)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.rXU(Xe),t.rXU(t.gRc),t.rXU(ke,8),t.rXU(Ft),t.rXU(ee.dS,8),t.rXU(x.Wk,8),t.rXU(x.Ix,8))};static#t=this.\u0275cmp=t.VBU({type:Jt,selectors:[["","nz-menu-item",""]],contentQueries:function(Je,ae,ie){if(1&Je&&t.wni(ie,x.Wk,5),2&Je){let re;t.mGM(re=t.lsd())&&(ae.listOfRouterLink=re)}},hostVars:20,hostBindings:function(Je,ae){1&Je&&t.bIt("click",function(re){return ae.clickMenuItem(re)}),2&Je&&(t.xc7("padding-left","rtl"===ae.dir?null:ae.nzPaddingLeft||ae.inlinePaddingLeft,"px")("padding-right","rtl"===ae.dir?ae.nzPaddingLeft||ae.inlinePaddingLeft:null,"px"),t.AVh("ant-dropdown-menu-item",ae.isMenuInsideDropDown)("ant-dropdown-menu-item-selected",ae.isMenuInsideDropDown&&ae.nzSelected)("ant-dropdown-menu-item-danger",ae.isMenuInsideDropDown&&ae.nzDanger)("ant-dropdown-menu-item-disabled",ae.isMenuInsideDropDown&&ae.nzDisabled)("ant-menu-item",!ae.isMenuInsideDropDown)("ant-menu-item-selected",!ae.isMenuInsideDropDown&&ae.nzSelected)("ant-menu-item-danger",!ae.isMenuInsideDropDown&&ae.nzDanger)("ant-menu-item-disabled",!ae.isMenuInsideDropDown&&ae.nzDisabled))},inputs:{nzPaddingLeft:[2,"nzPaddingLeft","nzPaddingLeft",oe.cj],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzSelected:[2,"nzSelected","nzSelected",t.L39],nzDanger:[2,"nzDanger","nzDanger",t.L39],nzMatchRouterExact:[2,"nzMatchRouterExact","nzMatchRouterExact",t.L39],nzMatchRouter:[2,"nzMatchRouter","nzMatchRouter",t.L39]},exportAs:["nzMenuItem"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:te,ngContentSelectors:ge,decls:2,vars:0,consts:[[1,"ant-menu-title-content"]],template:function(Je,ae){1&Je&&(t.NAR(),t.j41(0,"span",0),t.SdG(1),t.k0s())},encapsulation:2,changeDetection:0})}return Jt})(),G=(()=>{class Jt{constructor(Yt,Je,ae){this.elementRef=Yt,this.renderer=Je,this.directionality=ae,this.templateOutlet=null,this.menuClass="",this.mode="vertical",this.nzOpen=!1,this.listOfCacheClassName=[],this.expandState="collapsed",this.dir="ltr",this.destroy$=new r.B}calcMotionState(){this.expandState=this.nzOpen?"expanded":"collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.dir=Yt})}ngOnChanges(Yt){const{mode:Je,nzOpen:ae,menuClass:ie}=Yt;(Je||ae)&&this.calcMotionState(),ie&&(this.listOfCacheClassName.length&&this.listOfCacheClassName.filter(re=>!!re).forEach(re=>{this.renderer.removeClass(this.elementRef.nativeElement,re)}),this.menuClass&&(this.listOfCacheClassName=this.menuClass.split(" "),this.listOfCacheClassName.filter(re=>!!re).forEach(re=>{this.renderer.addClass(this.elementRef.nativeElement,re)})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(ee.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Jt,selectors:[["","nz-submenu-inline-child",""]],hostAttrs:[1,"ant-menu","ant-menu-inline","ant-menu-sub"],hostVars:3,hostBindings:function(Je,ae){2&Je&&(t.zvX("@collapseMotion",ae.expandState),t.AVh("ant-menu-rtl","rtl"===ae.dir))},inputs:{templateOutlet:"templateOutlet",menuClass:"menuClass",mode:"mode",nzOpen:"nzOpen"},exportAs:["nzSubmenuInlineChild"],standalone:!0,features:[t.OA$,t.aNF],attrs:T,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(Je,ae){1&Je&&t.DNE(0,D,0,0,"ng-template",0),2&Je&&t.Y8G("ngTemplateOutlet",ae.templateOutlet)},dependencies:[Pe.T3],encapsulation:2,data:{animation:[ve.GE]},changeDetection:0})}return Jt})(),H=(()=>{class Jt{constructor(Yt){this.directionality=Yt,this.menuClass="",this.theme="light",this.templateOutlet=null,this.isMenuInsideDropDown=!1,this.mode="vertical",this.position="right",this.nzDisabled=!1,this.nzOpen=!1,this.subMenuMouseState=new t.bkB,this.expandState="collapsed",this.dir="ltr",this.destroy$=new r.B}setMouseState(Yt){this.nzDisabled||this.subMenuMouseState.next(Yt)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}calcMotionState(){this.nzOpen?"horizontal"===this.mode?this.expandState="bottom":"vertical"===this.mode&&(this.expandState="active"):this.expandState="collapsed"}ngOnInit(){this.calcMotionState(),this.dir=this.directionality.value,this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.dir=Yt})}ngOnChanges(Yt){const{mode:Je,nzOpen:ae}=Yt;(Je||ae)&&this.calcMotionState()}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.rXU(ee.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Jt,selectors:[["","nz-submenu-none-inline-child",""]],hostAttrs:[1,"ant-menu-submenu","ant-menu-submenu-popup"],hostVars:14,hostBindings:function(Je,ae){1&Je&&t.bIt("mouseenter",function(){return ae.setMouseState(!0)})("mouseleave",function(){return ae.setMouseState(!1)}),2&Je&&(t.zvX("@slideMotion",ae.expandState)("@zoomBigMotion",ae.expandState),t.AVh("ant-menu-light","light"===ae.theme)("ant-menu-dark","dark"===ae.theme)("ant-menu-submenu-placement-bottom","horizontal"===ae.mode)("ant-menu-submenu-placement-right","vertical"===ae.mode&&"right"===ae.position)("ant-menu-submenu-placement-left","vertical"===ae.mode&&"left"===ae.position)("ant-menu-submenu-rtl","rtl"===ae.dir))},inputs:{menuClass:"menuClass",theme:"theme",templateOutlet:"templateOutlet",isMenuInsideDropDown:"isMenuInsideDropDown",mode:"mode",position:"position",nzDisabled:"nzDisabled",nzOpen:"nzOpen"},outputs:{subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuNoneInlineChild"],standalone:!0,features:[t.OA$,t.aNF],attrs:A,decls:2,vars:16,consts:[[3,"ngClass"],[3,"ngTemplateOutlet"]],template:function(Je,ae){1&Je&&(t.j41(0,"div",0),t.DNE(1,X,0,0,"ng-template",1),t.k0s()),2&Je&&(t.AVh("ant-dropdown-menu",ae.isMenuInsideDropDown)("ant-menu",!ae.isMenuInsideDropDown)("ant-dropdown-menu-vertical",ae.isMenuInsideDropDown)("ant-menu-vertical",!ae.isMenuInsideDropDown)("ant-dropdown-menu-sub",ae.isMenuInsideDropDown)("ant-menu-sub",!ae.isMenuInsideDropDown)("ant-menu-rtl","rtl"===ae.dir),t.Y8G("ngClass",ae.menuClass),t.R7$(),t.Y8G("ngTemplateOutlet",ae.templateOutlet))},dependencies:[Pe.YU,Pe.T3],encapsulation:2,data:{animation:[ve.uX,ve.U1]},changeDetection:0})}return Jt})(),ze=(()=>{class Jt{constructor(Yt,Je){this.cdr=Yt,this.directionality=Je,this.nzIcon=null,this.nzTitle=null,this.isMenuInsideDropDown=!1,this.nzDisabled=!1,this.paddingLeft=null,this.mode="vertical",this.toggleSubMenu=new t.bkB,this.subMenuMouseState=new t.bkB,this.dir="ltr",this.destroy$=new r.B}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.dir=Yt,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setMouseState(Yt){this.nzDisabled||this.subMenuMouseState.next(Yt)}clickTitle(){"inline"===this.mode&&!this.nzDisabled&&this.toggleSubMenu.emit()}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.rXU(t.gRc),t.rXU(ee.dS,8))};static#t=this.\u0275cmp=t.VBU({type:Jt,selectors:[["","nz-submenu-title",""]],hostVars:8,hostBindings:function(Je,ae){1&Je&&t.bIt("click",function(){return ae.clickTitle()})("mouseenter",function(){return ae.setMouseState(!0)})("mouseleave",function(){return ae.setMouseState(!1)}),2&Je&&(t.xc7("padding-left","rtl"===ae.dir?null:ae.paddingLeft,"px")("padding-right","rtl"===ae.dir?ae.paddingLeft:null,"px"),t.AVh("ant-dropdown-menu-submenu-title",ae.isMenuInsideDropDown)("ant-menu-submenu-title",!ae.isMenuInsideDropDown))},inputs:{nzIcon:"nzIcon",nzTitle:"nzTitle",isMenuInsideDropDown:"isMenuInsideDropDown",nzDisabled:"nzDisabled",paddingLeft:"paddingLeft",mode:"mode"},outputs:{toggleSubMenu:"toggleSubMenu",subMenuMouseState:"subMenuMouseState"},exportAs:["nzSubmenuTitle"],standalone:!0,features:[t.aNF],attrs:se,ngContentSelectors:ge,decls:5,vars:3,consts:[["nz-icon","",3,"nzType"],[4,"nzStringTemplateOutlet"],[1,"ant-dropdown-menu-submenu-expand-icon"],[1,"ant-menu-submenu-arrow"],[1,"ant-menu-title-content"],["nz-icon","","nzType","left",1,"ant-dropdown-menu-submenu-arrow-icon"],["nz-icon","","nzType","right",1,"ant-dropdown-menu-submenu-arrow-icon"]],template:function(Je,ae){1&Je&&(t.NAR(),t.DNE(0,je,1,1,"span",0)(1,Bt,3,1,"ng-container",1),t.SdG(2),t.DNE(3,He,3,1,"span",2)(4,xt,1,0,"span",3)),2&Je&&(t.vxM(ae.nzIcon?0:-1),t.R7$(),t.Y8G("nzStringTemplateOutlet",ae.nzTitle),t.R7$(2),t.vxM(ae.isMenuInsideDropDown?3:4))},dependencies:[U.Y3,U.Dn,pe.C,pe.m],encapsulation:2,changeDetection:0})}return Jt})();const Qe=[ce.pn.rightTop,ce.pn.right,ce.pn.rightBottom,ce.pn.leftTop,ce.pn.left,ce.pn.leftBottom],ht=[ce.pn.bottomLeft,ce.pn.bottomRight,ce.pn.topRight,ce.pn.topLeft];let Kt=(()=>{class Jt{setOpenStateWithoutDebounce(Yt){this.nzSubmenuService.setOpenStateWithoutDebounce(Yt)}toggleSubMenu(){this.setOpenStateWithoutDebounce(!this.nzOpen)}setMouseEnterState(Yt){this.isActive=Yt,"inline"!==this.mode&&this.nzSubmenuService.setMouseEnterTitleOrOverlayState(Yt)}setTriggerWidth(){"horizontal"===this.mode&&this.platform.isBrowser&&this.cdkOverlayOrigin&&"bottomLeft"===this.nzPlacement&&(this.triggerWidth=this.cdkOverlayOrigin.nativeElement.getBoundingClientRect().width)}onPositionChange(Yt){const Je=(0,ce.jj)(Yt);"rightTop"===Je||"rightBottom"===Je||"right"===Je?this.position="right":("leftTop"===Je||"leftBottom"===Je||"left"===Je)&&(this.position="left")}constructor(Yt,Je,ae,ie,re,et,_t){this.nzMenuService=Yt,this.cdr=Je,this.nzSubmenuService=ae,this.platform=ie,this.isMenuInsideDropDown=re,this.directionality=et,this.noAnimation=_t,this.nzMenuClassName="",this.nzPaddingLeft=null,this.nzTitle=null,this.nzIcon=null,this.nzOpen=!1,this.nzDisabled=!1,this.nzPlacement="bottomLeft",this.nzOpenChange=new t.bkB,this.cdkOverlayOrigin=null,this.listOfNzSubMenuComponent=null,this.listOfNzMenuItemDirective=null,this.level=this.nzSubmenuService.level,this.destroy$=new r.B,this.position="right",this.triggerWidth=null,this.theme="light",this.mode="vertical",this.inlinePaddingLeft=null,this.overlayPositions=Qe,this.isSelected=!1,this.isActive=!1,this.dir="ltr"}ngOnInit(){this.nzMenuService.theme$.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.theme=Yt,this.cdr.markForCheck()}),this.nzSubmenuService.mode$.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.mode=Yt,"horizontal"===Yt?this.overlayPositions=[ce.pn[this.nzPlacement],...ht]:"vertical"===Yt&&(this.overlayPositions=Qe),this.cdr.markForCheck()}),(0,z.z)([this.nzSubmenuService.mode$,this.nzMenuService.inlineIndent$]).pipe((0,P.Q)(this.destroy$)).subscribe(([Yt,Je])=>{this.inlinePaddingLeft="inline"===Yt?this.level*Je:null,this.cdr.markForCheck()}),this.nzSubmenuService.isCurrentSubMenuOpen$.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.isActive=Yt,Yt!==this.nzOpen&&(this.setTriggerWidth(),this.nzOpen=Yt,this.nzOpenChange.emit(this.nzOpen),this.cdr.markForCheck())}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.dir=Yt,this.cdr.markForCheck()})}ngAfterContentInit(){this.setTriggerWidth();const Yt=this.listOfNzMenuItemDirective,Je=Yt.changes,ae=(0,e.h)(Je,...Yt.map(ie=>ie.selected$));Je.pipe((0,Q.Z)(Yt),(0,N.n)(()=>ae),(0,Q.Z)(!0),(0,j.T)(()=>Yt.some(ie=>ie.nzSelected)),(0,P.Q)(this.destroy$)).subscribe(ie=>{this.isSelected=ie,this.cdr.markForCheck()})}ngOnChanges(Yt){const{nzOpen:Je}=Yt;Je&&(this.nzSubmenuService.setOpenStateWithoutDebounce(this.nzOpen),this.setTriggerWidth())}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.rXU(Xe),t.rXU(t.gRc),t.rXU(ke),t.rXU(M.OD),t.rXU(Ft),t.rXU(ee.dS,8),t.rXU(Ie.z,9))};static#t=this.\u0275cmp=t.VBU({type:Jt,selectors:[["","nz-submenu",""]],contentQueries:function(Je,ae,ie){if(1&Je&&(t.wni(ie,Jt,5),t.wni(ie,q,5)),2&Je){let re;t.mGM(re=t.lsd())&&(ae.listOfNzSubMenuComponent=re),t.mGM(re=t.lsd())&&(ae.listOfNzMenuItemDirective=re)}},viewQuery:function(Je,ae){if(1&Je&&t.GBs(Ee.$Q,7,t.aKT),2&Je){let ie;t.mGM(ie=t.lsd())&&(ae.cdkOverlayOrigin=ie.first)}},hostVars:34,hostBindings:function(Je,ae){2&Je&&t.AVh("ant-dropdown-menu-submenu",ae.isMenuInsideDropDown)("ant-dropdown-menu-submenu-disabled",ae.isMenuInsideDropDown&&ae.nzDisabled)("ant-dropdown-menu-submenu-open",ae.isMenuInsideDropDown&&ae.nzOpen)("ant-dropdown-menu-submenu-selected",ae.isMenuInsideDropDown&&ae.isSelected)("ant-dropdown-menu-submenu-vertical",ae.isMenuInsideDropDown&&"vertical"===ae.mode)("ant-dropdown-menu-submenu-horizontal",ae.isMenuInsideDropDown&&"horizontal"===ae.mode)("ant-dropdown-menu-submenu-inline",ae.isMenuInsideDropDown&&"inline"===ae.mode)("ant-dropdown-menu-submenu-active",ae.isMenuInsideDropDown&&ae.isActive)("ant-menu-submenu",!ae.isMenuInsideDropDown)("ant-menu-submenu-disabled",!ae.isMenuInsideDropDown&&ae.nzDisabled)("ant-menu-submenu-open",!ae.isMenuInsideDropDown&&ae.nzOpen)("ant-menu-submenu-selected",!ae.isMenuInsideDropDown&&ae.isSelected)("ant-menu-submenu-vertical",!ae.isMenuInsideDropDown&&"vertical"===ae.mode)("ant-menu-submenu-horizontal",!ae.isMenuInsideDropDown&&"horizontal"===ae.mode)("ant-menu-submenu-inline",!ae.isMenuInsideDropDown&&"inline"===ae.mode)("ant-menu-submenu-active",!ae.isMenuInsideDropDown&&ae.isActive)("ant-menu-submenu-rtl","rtl"===ae.dir)},inputs:{nzMenuClassName:"nzMenuClassName",nzPaddingLeft:"nzPaddingLeft",nzTitle:"nzTitle",nzIcon:"nzIcon",nzOpen:[2,"nzOpen","nzOpen",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzPlacement:"nzPlacement"},outputs:{nzOpenChange:"nzOpenChange"},exportAs:["nzSubmenu"],standalone:!0,features:[t.Jv_([ke]),t.GFd,t.OA$,t.aNF],attrs:Lt,ngContentSelectors:St,decls:7,vars:8,consts:[["origin","cdkOverlayOrigin"],["subMenuTemplate",""],["nz-submenu-title","","cdkOverlayOrigin","",3,"subMenuMouseState","toggleSubMenu","nzIcon","nzTitle","mode","nzDisabled","isMenuInsideDropDown","paddingLeft"],["nz-submenu-inline-child","",3,"mode","nzOpen","nzNoAnimation","menuClass","templateOutlet"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["cdkConnectedOverlay","",3,"positionChange","cdkConnectedOverlayPositions","cdkConnectedOverlayOrigin","cdkConnectedOverlayWidth","cdkConnectedOverlayOpen","cdkConnectedOverlayTransformOriginOn"],["nz-submenu-none-inline-child","",3,"subMenuMouseState","theme","mode","nzOpen","position","nzDisabled","isMenuInsideDropDown","templateOutlet","menuClass","nzNoAnimation"]],template:function(Je,ae){if(1&Je){const ie=t.RV6();t.NAR(ft),t.j41(0,"div",2,0),t.bIt("subMenuMouseState",function(et){return t.eBV(ie),t.Njj(ae.setMouseEnterState(et))})("toggleSubMenu",function(){return t.eBV(ie),t.Njj(ae.toggleSubMenu())}),t.DNE(2,kt,1,0),t.k0s(),t.DNE(3,It,1,6,"div",3)(4,en,1,5,null,4)(5,Xt,1,0,"ng-template",null,1,t.C5r)}2&Je&&(t.Y8G("nzIcon",ae.nzIcon)("nzTitle",ae.nzTitle)("mode",ae.mode)("nzDisabled",ae.nzDisabled)("isMenuInsideDropDown",ae.isMenuInsideDropDown)("paddingLeft",ae.nzPaddingLeft||ae.inlinePaddingLeft),t.R7$(2),t.vxM(ae.nzTitle?-1:2),t.R7$(),t.vxM("inline"===ae.mode?3:4))},dependencies:[ze,G,Ie.z,H,Ee.z_,Ee.WB,Ee.$Q],encapsulation:2,changeDetection:0})}return Jt})();function fn(){const Jt=(0,t.WQX)(Xe,{skipSelf:!0,optional:!0}),An=(0,t.WQX)(Qt);return Jt??An}function In(){return(0,t.WQX)(Ft,{skipSelf:!0,optional:!0})??!1}let Kn=(()=>{class Jt{setInlineCollapsed(Yt){this.nzInlineCollapsed=Yt,this.inlineCollapsed$.next(Yt)}updateInlineCollapse(){this.listOfNzMenuItemDirective&&(this.nzInlineCollapsed?(this.listOfOpenedNzSubMenuComponent=this.listOfNzSubMenuComponent.filter(Yt=>Yt.nzOpen),this.listOfNzSubMenuComponent.forEach(Yt=>Yt.setOpenStateWithoutDebounce(!1))):(this.listOfOpenedNzSubMenuComponent.forEach(Yt=>Yt.setOpenStateWithoutDebounce(!0)),this.listOfOpenedNzSubMenuComponent=[]))}constructor(Yt,Je,ae,ie){this.nzMenuService=Yt,this.isMenuInsideDropDown=Je,this.cdr=ae,this.directionality=ie,this.nzInlineIndent=24,this.nzTheme="light",this.nzMode="vertical",this.nzInlineCollapsed=!1,this.nzSelectable=!this.isMenuInsideDropDown,this.nzClick=new t.bkB,this.actualMode="vertical",this.dir="ltr",this.inlineCollapsed$=new m.t(this.nzInlineCollapsed),this.mode$=new m.t(this.nzMode),this.destroy$=new r.B,this.listOfOpenedNzSubMenuComponent=[]}ngOnInit(){(0,z.z)([this.inlineCollapsed$,this.mode$]).pipe((0,P.Q)(this.destroy$)).subscribe(([Yt,Je])=>{this.actualMode=Yt?"vertical":Je,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()}),this.nzMenuService.descendantMenuItemClick$.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.nzClick.emit(Yt),this.nzSelectable&&!Yt.nzMatchRouter&&this.listOfNzMenuItemDirective.forEach(Je=>Je.setSelectedState(Je===Yt))}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,P.Q)(this.destroy$)).subscribe(Yt=>{this.dir=Yt,this.nzMenuService.setMode(this.actualMode),this.cdr.markForCheck()})}ngAfterContentInit(){this.inlineCollapsed$.pipe((0,P.Q)(this.destroy$)).subscribe(()=>{this.updateInlineCollapse(),this.cdr.markForCheck()})}ngOnChanges(Yt){const{nzInlineCollapsed:Je,nzInlineIndent:ae,nzTheme:ie,nzMode:re}=Yt;Je&&this.inlineCollapsed$.next(this.nzInlineCollapsed),ae&&this.nzMenuService.setInlineIndent(this.nzInlineIndent),ie&&this.nzMenuService.setTheme(this.nzTheme),re&&(this.mode$.next(this.nzMode),!Yt.nzMode.isFirstChange()&&this.listOfNzSubMenuComponent&&this.listOfNzSubMenuComponent.forEach(et=>et.setOpenStateWithoutDebounce(!1)))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.rXU(Xe),t.rXU(Ft),t.rXU(t.gRc),t.rXU(ee.dS,8))};static#t=this.\u0275dir=t.FsC({type:Jt,selectors:[["","nz-menu",""]],contentQueries:function(Je,ae,ie){if(1&Je&&(t.wni(ie,q,5),t.wni(ie,Kt,5)),2&Je){let re;t.mGM(re=t.lsd())&&(ae.listOfNzMenuItemDirective=re),t.mGM(re=t.lsd())&&(ae.listOfNzSubMenuComponent=re)}},hostVars:34,hostBindings:function(Je,ae){2&Je&&t.AVh("ant-dropdown-menu",ae.isMenuInsideDropDown)("ant-dropdown-menu-root",ae.isMenuInsideDropDown)("ant-dropdown-menu-light",ae.isMenuInsideDropDown&&"light"===ae.nzTheme)("ant-dropdown-menu-dark",ae.isMenuInsideDropDown&&"dark"===ae.nzTheme)("ant-dropdown-menu-vertical",ae.isMenuInsideDropDown&&"vertical"===ae.actualMode)("ant-dropdown-menu-horizontal",ae.isMenuInsideDropDown&&"horizontal"===ae.actualMode)("ant-dropdown-menu-inline",ae.isMenuInsideDropDown&&"inline"===ae.actualMode)("ant-dropdown-menu-inline-collapsed",ae.isMenuInsideDropDown&&ae.nzInlineCollapsed)("ant-menu",!ae.isMenuInsideDropDown)("ant-menu-root",!ae.isMenuInsideDropDown)("ant-menu-light",!ae.isMenuInsideDropDown&&"light"===ae.nzTheme)("ant-menu-dark",!ae.isMenuInsideDropDown&&"dark"===ae.nzTheme)("ant-menu-vertical",!ae.isMenuInsideDropDown&&"vertical"===ae.actualMode)("ant-menu-horizontal",!ae.isMenuInsideDropDown&&"horizontal"===ae.actualMode)("ant-menu-inline",!ae.isMenuInsideDropDown&&"inline"===ae.actualMode)("ant-menu-inline-collapsed",!ae.isMenuInsideDropDown&&ae.nzInlineCollapsed)("ant-menu-rtl","rtl"===ae.dir)},inputs:{nzInlineIndent:"nzInlineIndent",nzTheme:"nzTheme",nzMode:"nzMode",nzInlineCollapsed:[2,"nzInlineCollapsed","nzInlineCollapsed",t.L39],nzSelectable:[2,"nzSelectable","nzSelectable",t.L39]},outputs:{nzClick:"nzClick"},exportAs:["nzMenu"],standalone:!0,features:[t.Jv_([{provide:Qt,useClass:Xe},{provide:Xe,useFactory:fn},{provide:Ft,useFactory:In}]),t.GFd,t.OA$]})}return Jt})();function Gn(){return(0,t.WQX)(Ft,{optional:!0,skipSelf:!0})??!1}let $n=(()=>{class Jt{constructor(Yt,Je,ae){this.elementRef=Yt,this.renderer=Je,this.isMenuInsideDropDown=ae,this.renderer.addClass(Yt.nativeElement,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group":"ant-menu-item-group")}ngAfterViewInit(){const Yt=this.titleElement.nativeElement.nextElementSibling;Yt&&this.renderer.addClass(Yt,this.isMenuInsideDropDown?"ant-dropdown-menu-item-group-list":"ant-menu-item-group-list")}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(Ft))};static#t=this.\u0275cmp=t.VBU({type:Jt,selectors:[["","nz-menu-group",""]],viewQuery:function(Je,ae){if(1&Je&&t.GBs(Tn,5),2&Je){let ie;t.mGM(ie=t.lsd())&&(ae.titleElement=ie.first)}},inputs:{nzTitle:"nzTitle"},exportAs:["nzMenuGroup"],standalone:!0,features:[t.Jv_([{provide:Ft,useFactory:Gn}]),t.aNF],attrs:Jn,ngContentSelectors:Mt,decls:5,vars:6,consts:[["titleElement",""],[4,"nzStringTemplateOutlet"]],template:function(Je,ae){1&Je&&(t.NAR(Dn),t.j41(0,"div",null,0),t.DNE(2,Ut,2,1,"ng-container",1)(3,wt,1,0),t.k0s(),t.SdG(4)),2&Je&&(t.AVh("ant-menu-item-group-title",!ae.isMenuInsideDropDown)("ant-dropdown-menu-item-group-title",ae.isMenuInsideDropDown),t.R7$(2),t.Y8G("nzStringTemplateOutlet",ae.nzTitle),t.R7$(),t.vxM(ae.nzTitle?-1:3))},dependencies:[pe.C,pe.m],encapsulation:2,changeDetection:0})}return Jt})(),Nn=(()=>{class Jt{constructor(Yt){this.elementRef=Yt}static#e=this.\u0275fac=function(Je){return new(Je||Jt)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Jt,selectors:[["","nz-menu-divider",""]],hostAttrs:[1,"ant-dropdown-menu-item-divider"],exportAs:["nzMenuDivider"],standalone:!0})}return Jt})(),vn=(()=>{class Jt{static#e=this.\u0275fac=function(Je){return new(Je||Jt)};static#t=this.\u0275mod=t.$C({type:Jt});static#n=this.\u0275inj=t.G2t({imports:[Kt,$n,ze]})}return Jt})()},2096:($t,De,a)=>{a.d(De,{A9:()=>re,F2:()=>mt,J9:()=>ae,N_:()=>ie,U6:()=>Rt,or:()=>ht});var t=a(4523),r=a(7987),m=a(6939),e=a(3953),z=a(1413),j=a(3726),R=a(9030),$=a(6977),k=a(5964),I=a(6697),w=a(9172),P=a(3451),Q=a(5463),N=a(317),x=a(177),oe=a(513),ee=a(7806),Ee=a(5103),Ie=a(3384),ce=a(9969),Pe=a(4500),ve=a(851),pe=a(6042),U=a(6914),M=a(6389),te=a(5930),ge=a(1391),T=a(7336),D=a(8203);const A=["nz-modal-close",""];function X(Se,lt){if(1&Se&&(e.qex(0),e.nrm(1,"span",2),e.bVm()),2&Se){const de=lt.$implicit;e.R7$(),e.Y8G("nzType",de)}}const se=["modalElement"];function je(Se,lt){if(1&Se){const de=e.RV6();e.j41(0,"button",16),e.bIt("click",function(){e.eBV(de);const zt=e.XpG();return e.Njj(zt.onCloseClick())}),e.k0s()}}function Bt(Se,lt){if(1&Se&&(e.qex(0),e.nrm(1,"span",12),e.bVm()),2&Se){const de=e.XpG();e.R7$(),e.Y8G("innerHTML",de.config.nzTitle,e.npT)}}function Tt(Se,lt){}function Vt(Se,lt){if(1&Se&&e.nrm(0,"div",12),2&Se){const de=e.XpG();e.Y8G("innerHTML",de.config.nzContent,e.npT)}}function He(Se,lt){if(1&Se){const de=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(de);const zt=e.XpG();return e.Njj(zt.onCancel())}),e.EFF(1),e.k0s()}if(2&Se){const de=e.XpG();e.Y8G("nzLoading",de.config.nzCancelLoading)("disabled",de.config.nzCancelDisabled),e.BMQ("cdkFocusInitial","cancel"===de.config.nzAutofocus||null),e.R7$(),e.SpI(" ",de.config.nzCancelText||de.locale.cancelText," ")}}function xt(Se,lt){if(1&Se){const de=e.RV6();e.j41(0,"button",18),e.bIt("click",function(){e.eBV(de);const zt=e.XpG();return e.Njj(zt.onOk())}),e.EFF(1),e.k0s()}if(2&Se){const de=e.XpG();e.Y8G("nzType",de.config.nzOkType)("nzLoading",de.config.nzOkLoading)("disabled",de.config.nzOkDisabled)("nzDanger",de.config.nzOkDanger),e.BMQ("cdkFocusInitial","ok"===de.config.nzAutofocus||null),e.R7$(),e.SpI(" ",de.config.nzOkText||de.locale.okText," ")}}const Lt=["nz-modal-footer",""],ft=(Se,lt)=>({$implicit:Se,modalRef:lt});function St(Se,lt){if(1&Se){const de=e.RV6();e.j41(0,"button",3),e.bIt("click",function(){const zt=e.eBV(de).$implicit,Ze=e.XpG(4);return e.Njj(Ze.onButtonClick(zt))}),e.EFF(1),e.k0s()}if(2&Se){const de=lt.$implicit,Oe=e.XpG(4);e.Y8G("hidden",!Oe.getButtonCallableProp(de,"show"))("nzLoading",Oe.getButtonCallableProp(de,"loading"))("disabled",Oe.getButtonCallableProp(de,"disabled"))("nzType",de.type)("nzDanger",de.danger)("nzShape",de.shape)("nzSize",de.size)("nzGhost",de.ghost),e.R7$(),e.SpI(" ",de.label," ")}}function kt(Se,lt){if(1&Se&&e.Z7z(0,St,2,9,"button",2,e.fX1),2&Se){const de=e.XpG(3);e.Dyx(de.buttons)}}function It(Se,lt){if(1&Se&&e.nrm(0,"div",1),2&Se){const de=e.XpG(3);e.Y8G("innerHTML",de.config.nzFooter,e.npT)}}function rn(Se,lt){if(1&Se&&(e.qex(0),e.DNE(1,kt,2,0)(2,It,1,1,"div",1),e.bVm()),2&Se){const de=e.XpG(2);e.R7$(),e.vxM(de.buttonsFooter?1:2)}}function en(Se,lt){if(1&Se&&e.DNE(0,rn,3,1,"ng-container",0),2&Se){const de=e.XpG();e.Y8G("nzStringTemplateOutlet",de.config.nzFooter)("nzStringTemplateOutletContext",e.l_i(2,ft,de.config.nzData,de.modalRef))}}function Xt(Se,lt){if(1&Se){const de=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){e.eBV(de);const zt=e.XpG(2);return e.Njj(zt.onCancel())}),e.EFF(1),e.k0s()}if(2&Se){const de=e.XpG(2);e.Y8G("nzLoading",de.config.nzCancelLoading)("disabled",de.config.nzCancelDisabled),e.BMQ("cdkFocusInitial","cancel"===de.config.nzAutofocus||null),e.R7$(),e.SpI(" ",de.config.nzCancelText||de.locale.cancelText," ")}}function Tn(Se,lt){if(1&Se){const de=e.RV6();e.j41(0,"button",7),e.bIt("click",function(){e.eBV(de);const zt=e.XpG(2);return e.Njj(zt.onOk())}),e.EFF(1),e.k0s()}if(2&Se){const de=e.XpG(2);e.Y8G("nzType",de.config.nzOkType)("nzDanger",de.config.nzOkDanger)("nzLoading",de.config.nzOkLoading)("disabled",de.config.nzOkDisabled),e.BMQ("cdkFocusInitial","ok"===de.config.nzAutofocus||null),e.R7$(),e.SpI(" ",de.config.nzOkText||de.locale.okText," ")}}function Jn(Se,lt){if(1&Se&&e.DNE(0,Xt,2,4,"button",4)(1,Tn,2,6,"button",5),2&Se){const de=e.XpG();e.vxM(null!==de.config.nzCancelText?0:-1),e.R7$(),e.vxM(null!==de.config.nzOkText?1:-1)}}const Dn=["nz-modal-title",""];function Mt(Se,lt){if(1&Se&&(e.qex(0),e.nrm(1,"div",2),e.bVm()),2&Se){const de=e.XpG();e.R7$(),e.Y8G("innerHTML",de.config.nzTitle,e.npT)}}function Ut(Se,lt){if(1&Se){const de=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(de);const zt=e.XpG();return e.Njj(zt.onCloseClick())}),e.k0s()}}function wt(Se,lt){if(1&Se&&e.nrm(0,"div",10),2&Se){const de=e.XpG();e.xc7("cursor",de.config.nzDraggable?"move":"auto")}}function Ft(Se,lt){}function Qt(Se,lt){if(1&Se&&e.nrm(0,"div",7),2&Se){const de=e.XpG();e.Y8G("innerHTML",de.config.nzContent,e.npT)}}function Xe(Se,lt){if(1&Se){const de=e.RV6();e.j41(0,"div",11),e.bIt("cancelTriggered",function(){e.eBV(de);const zt=e.XpG();return e.Njj(zt.onCloseClick())})("okTriggered",function(){e.eBV(de);const zt=e.XpG();return e.Njj(zt.onOkClick())}),e.k0s()}if(2&Se){const de=e.XpG();e.Y8G("modalRef",de.modalRef)}}const ke=()=>{};class q{constructor(){this.nzCentered=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzDraggable=!1,this.nzNoAnimation=!1,this.nzAutofocus="auto",this.nzKeyboard=!0,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzModalType="default",this.nzOnCancel=ke,this.nzOnOk=ke,this.nzIconType="question-circle"}}const ze="ant-modal-mask",Qe="modal",ht=new e.nKC("NZ_MODAL_DATA"),Kt={modalContainer:(0,ce.hZ)("modalContainer",[(0,ce.wk)("void, exit",(0,ce.iF)({})),(0,ce.wk)("enter",(0,ce.iF)({})),(0,ce.kY)("* => enter",(0,ce.i0)(".24s",(0,ce.iF)({}))),(0,ce.kY)("* => void, * => exit",(0,ce.i0)(".2s",(0,ce.iF)({})))])};let fn=(()=>{class Se{constructor(de){this.config=de}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(q))};static#t=this.\u0275cmp=e.VBU({type:Se,selectors:[["button","nz-modal-close",""]],hostAttrs:["aria-label","Close",1,"ant-modal-close"],exportAs:["NzModalCloseBuiltin"],standalone:!0,features:[e.aNF],attrs:A,decls:2,vars:1,consts:[[1,"ant-modal-close-x"],[4,"nzStringTemplateOutlet"],["nz-icon","",1,"ant-modal-close-icon",3,"nzType"]],template:function(Oe,zt){1&Oe&&(e.j41(0,"span",0),e.DNE(1,X,2,1,"ng-container",1),e.k0s()),2&Oe&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",zt.config.nzCloseIcon))},dependencies:[Ee.Y3,Ee.Dn,ee.C,ee.m],encapsulation:2,changeDetection:0})}return Se})();function Kn(Se,lt,de){return typeof Se>"u"?typeof lt>"u"?de:lt:Se}function Gn(Se){const{nzCentered:lt,nzMask:de,nzMaskClosable:Oe,nzClosable:zt,nzOkLoading:Ze,nzOkDisabled:Ne,nzCancelDisabled:Le,nzCancelLoading:Y,nzKeyboard:le,nzNoAnimation:V,nzDraggable:Ve,nzContent:Ce,nzFooter:J,nzZIndex:W,nzWidth:_e,nzWrapClassName:it,nzClassName:dt,nzStyle:Ht,nzTitle:dn,nzCloseIcon:wn,nzMaskStyle:si,nzBodyStyle:Cn,nzOkText:ni,nzCancelText:ui,nzOkType:Ni,nzOkDanger:Eo,nzIconType:lo,nzModalType:$i,nzOnOk:Ii,nzOnCancel:Nr,nzAfterOpen:pr,nzAfterClose:vt,nzCloseOnNavigation:Gt,nzAutofocus:Pt}=Se;return{nzCentered:lt,nzMask:de,nzMaskClosable:Oe,nzDraggable:Ve,nzClosable:zt,nzOkLoading:Ze,nzOkDisabled:Ne,nzCancelDisabled:Le,nzCancelLoading:Y,nzKeyboard:le,nzNoAnimation:V,nzContent:Ce,nzFooter:J,nzZIndex:W,nzWidth:_e,nzWrapClassName:it,nzClassName:dt,nzStyle:Ht,nzTitle:dn,nzCloseIcon:wn,nzMaskStyle:si,nzBodyStyle:Cn,nzOkText:ni,nzCancelText:ui,nzOkType:Ni,nzOkDanger:Eo,nzIconType:lo,nzModalType:$i,nzOnOk:Ii,nzOnCancel:Nr,nzAfterOpen:pr,nzAfterClose:vt,nzCloseOnNavigation:Gt,nzAutofocus:Pt}}function $n(){throw Error("Attempting to attach modal content after content is already attached")}let Nn=(()=>{class Se extends m.lb{get showMask(){const de=this.nzConfigService.getConfigForComponent(Qe)||{};return!!Kn(this.config.nzMask,de.nzMask,!0)}get maskClosable(){const de=this.nzConfigService.getConfigForComponent(Qe)||{};return!!Kn(this.config.nzMaskClosable,de.nzMaskClosable,!0)}constructor(de,Oe,zt,Ze,Ne,Le,Y,le,V,Ve){super(),this.ngZone=de,this.host=Oe,this.focusTrapFactory=zt,this.cdr=Ze,this.render=Ne,this.overlayRef=Le,this.nzConfigService=Y,this.config=le,this.animationType=Ve,this.animationStateChanged=new e.bkB,this.containerClick=new e.bkB,this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.state="enter",this.isStringContent=!1,this.dir="ltr",this.elementFocusedBeforeModalWasOpened=null,this.mouseDown=!1,this.oldMaskStyle=null,this.destroy$=new z.B,this.document=V,this.dir=Le.getDirection(),this.isStringContent="string"==typeof le.nzContent,this.nzConfigService.getConfigChangeEventForComponent(Qe).pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.updateMaskClassname()})}onContainerClick(de){de.target===de.currentTarget&&!this.mouseDown&&this.showMask&&this.maskClosable&&this.containerClick.emit()}onCloseClick(){this.cancelTriggered.emit()}onOkClick(){this.okTriggered.emit()}attachComponentPortal(de){return this.portalOutlet.hasAttached()&&$n(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachComponentPortal(de)}attachTemplatePortal(de){return this.portalOutlet.hasAttached()&&$n(),this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop(),this.portalOutlet.attachTemplatePortal(de)}attachStringContent(){this.savePreviouslyFocusedElement(),this.setZIndexForBackdrop()}getNativeElement(){return this.host.nativeElement}animationDisabled(){return this.config.nzNoAnimation||"NoopAnimations"===this.animationType}setModalTransformOrigin(){const de=this.modalElementRef.nativeElement;if(this.elementFocusedBeforeModalWasOpened){const Oe=this.elementFocusedBeforeModalWasOpened.getBoundingClientRect(),zt=(0,N.Mk)(this.elementFocusedBeforeModalWasOpened);this.render.setStyle(de,"transform-origin",`${zt.left+Oe.width/2-de.offsetLeft}px ${zt.top+Oe.height/2-de.offsetTop}px 0px`)}}savePreviouslyFocusedElement(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.host.nativeElement)),this.document&&(this.elementFocusedBeforeModalWasOpened=this.document.activeElement,this.host.nativeElement.focus&&this.ngZone.runOutsideAngular(()=>(0,Pe.j)(()=>this.host.nativeElement.focus())))}trapFocus(){const de=this.host.nativeElement;if(this.config.nzAutofocus)this.focusTrap.focusInitialElementWhenReady();else{const Oe=this.document.activeElement;Oe!==de&&!de.contains(Oe)&&de.focus()}}restoreFocus(){const de=this.elementFocusedBeforeModalWasOpened;if(de&&"function"==typeof de.focus){const Oe=this.document.activeElement,zt=this.host.nativeElement;(!Oe||Oe===this.document.body||Oe===zt||zt.contains(Oe))&&de.focus()}this.focusTrap&&this.focusTrap.destroy()}setEnterAnimationClass(){if(this.animationDisabled())return;this.setModalTransformOrigin();const de=this.modalElementRef.nativeElement,Oe=this.overlayRef.backdropElement;de.classList.add("ant-zoom-enter"),de.classList.add("ant-zoom-enter-active"),Oe&&(Oe.classList.add("ant-fade-enter"),Oe.classList.add("ant-fade-enter-active"))}setExitAnimationClass(){const de=this.modalElementRef.nativeElement;de.classList.add("ant-zoom-leave"),de.classList.add("ant-zoom-leave-active"),this.setMaskExitAnimationClass()}setMaskExitAnimationClass(de=!1){const Oe=this.overlayRef.backdropElement;if(Oe){if(this.animationDisabled()||de)return void Oe.classList.remove(ze);Oe.classList.add("ant-fade-leave"),Oe.classList.add("ant-fade-leave-active")}}cleanAnimationClass(){if(this.animationDisabled())return;const de=this.overlayRef.backdropElement,Oe=this.modalElementRef.nativeElement;de&&(de.classList.remove("ant-fade-enter"),de.classList.remove("ant-fade-enter-active")),Oe.classList.remove("ant-zoom-enter"),Oe.classList.remove("ant-zoom-enter-active"),Oe.classList.remove("ant-zoom-leave"),Oe.classList.remove("ant-zoom-leave-active")}setZIndexForBackdrop(){const de=this.overlayRef.backdropElement;de&&(0,N.n9)(this.config.nzZIndex)&&this.render.setStyle(de,"z-index",this.config.nzZIndex)}bindBackdropStyle(){const de=this.overlayRef.backdropElement;if(de&&(this.oldMaskStyle&&(Object.keys(this.oldMaskStyle).forEach(zt=>{this.render.removeStyle(de,zt)}),this.oldMaskStyle=null),this.setZIndexForBackdrop(),"object"==typeof this.config.nzMaskStyle&&Object.keys(this.config.nzMaskStyle).length)){const Oe={...this.config.nzMaskStyle};Object.keys(Oe).forEach(zt=>{this.render.setStyle(de,zt,Oe[zt])}),this.oldMaskStyle=Oe}}updateMaskClassname(){const de=this.overlayRef.backdropElement;de&&(this.showMask?de.classList.add(ze):de.classList.remove(ze))}onAnimationDone(de){"enter"===de.toState?this.trapFocus():"exit"===de.toState&&this.restoreFocus(),this.cleanAnimationClass(),this.animationStateChanged.emit(de)}onAnimationStart(de){"enter"===de.toState?(this.setEnterAnimationClass(),this.bindBackdropStyle()):"exit"===de.toState&&this.setExitAnimationClass(),this.animationStateChanged.emit(de)}startExitAnimation(){this.state="exit",this.cdr.markForCheck()}ngOnDestroy(){this.setMaskExitAnimationClass(!0),this.destroy$.next(!0),this.destroy$.complete()}setupMouseListeners(de){this.ngZone.runOutsideAngular(()=>{(0,j.R)(this.host.nativeElement,"mouseup").pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.mouseDown&&setTimeout(()=>{this.mouseDown=!1})}),(0,j.R)(de.nativeElement,"mousedown").pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.mouseDown=!0})})}static#e=this.\u0275fac=function(Oe){e.QTQ()};static#t=this.\u0275dir=e.FsC({type:Se,features:[e.Vt3]})}return Se})(),vn=(()=>{class Se extends Nn{constructor(de,Oe,zt,Ze,Ne,Le,Y,le,V,Ve,Ce){super(de,zt,Ze,Ne,Le,Y,le,V,Ve,Ce),this.i18n=Oe,this.config=V,this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.i18n.localeChange.pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(e.SKi),e.rXU(U.Og),e.rXU(e.aKT),e.rXU(ve.GX),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(r.yY),e.rXU(pe.yx),e.rXU(q),e.rXU(x.qQ,8),e.rXU(e.bc$,8))};static#t=this.\u0275cmp=e.VBU({type:Se,selectors:[["nz-modal-confirm-container"]],viewQuery:function(Oe,zt){if(1&Oe&&(e.GBs(m.I3,7),e.GBs(se,7)),2&Oe){let Ze;e.mGM(Ze=e.lsd())&&(zt.portalOutlet=Ze.first),e.mGM(Ze=e.lsd())&&(zt.modalElementRef=Ze.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(Oe,zt){1&Oe&&(e.Kam("@modalContainer.start",function(Ne){return zt.onAnimationStart(Ne)})("@modalContainer.done",function(Ne){return zt.onAnimationDone(Ne)}),e.bIt("click",function(Ne){return zt.onContainerClick(Ne)})),2&Oe&&(e.zvX("@.disabled",zt.config.nzNoAnimation)("@modalContainer",zt.state),e.HbH(zt.config.nzWrapClassName?"ant-modal-wrap "+zt.config.nzWrapClassName:"ant-modal-wrap"),e.xc7("z-index",zt.config.nzZIndex),e.AVh("ant-modal-wrap-rtl","rtl"===zt.dir)("ant-modal-centered",zt.config.nzCentered))},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["nzModalConfirmContainer"],standalone:!0,features:[e.Vt3,e.aNF],decls:17,vars:13,consts:[["modalElement",""],["role","document",1,"ant-modal",3,"ngClass","ngStyle"],[1,"ant-modal-content"],["nz-modal-close",""],[1,"ant-modal-body",3,"ngStyle"],[1,"ant-modal-confirm-body-wrapper"],[1,"ant-modal-confirm-body"],["nz-icon","",3,"nzType"],[1,"ant-modal-confirm-title"],[4,"nzStringTemplateOutlet"],[1,"ant-modal-confirm-content"],["cdkPortalOutlet",""],[3,"innerHTML"],[1,"ant-modal-confirm-btns"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzLoading","disabled","nzDanger"],["nz-modal-close","",3,"click"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzLoading","disabled","nzDanger"]],template:function(Oe,zt){1&Oe&&(e.j41(0,"div",1,0),e.nI1(2,"nzToCssUnit"),e.j41(3,"div",2),e.DNE(4,je,1,0,"button",3),e.j41(5,"div",4)(6,"div",5)(7,"div",6),e.nrm(8,"span",7),e.j41(9,"span",8),e.DNE(10,Bt,2,1,"ng-container",9),e.k0s(),e.j41(11,"div",10),e.DNE(12,Tt,0,0,"ng-template",11)(13,Vt,1,1,"div",12),e.k0s()(),e.j41(14,"div",13),e.DNE(15,He,2,4,"button",14)(16,xt,2,6,"button",15),e.k0s()()()()()),2&Oe&&(e.xc7("width",e.bMT(2,11,null==zt.config?null:zt.config.nzWidth)),e.Y8G("ngClass",zt.config.nzClassName)("ngStyle",zt.config.nzStyle),e.R7$(4),e.vxM(zt.config.nzClosable?4:-1),e.R7$(),e.Y8G("ngStyle",zt.config.nzBodyStyle),e.R7$(3),e.Y8G("nzType",zt.config.nzIconType),e.R7$(2),e.Y8G("nzStringTemplateOutlet",zt.config.nzTitle),e.R7$(3),e.vxM(zt.isStringContent?13:-1),e.R7$(2),e.vxM(null!==zt.config.nzCancelText?15:-1),e.R7$(),e.vxM(null!==zt.config.nzOkText?16:-1))},dependencies:[x.YU,x.B3,Ie.Qe,Ie.Zu,Ee.Y3,Ee.Dn,fn,ee.C,ee.m,m.jc,m.I3,oe.Zw,oe.aO,M.c,te.p],encapsulation:2,data:{animation:[Kt.modalContainer]}})}return Se})(),Jt=(()=>{class Se{constructor(de,Oe){this.i18n=de,this.config=Oe,this.buttonsFooter=!1,this.buttons=[],this.cancelTriggered=new e.bkB,this.okTriggered=new e.bkB,this.destroy$=new z.B,Array.isArray(Oe.nzFooter)&&(this.buttonsFooter=!0,this.buttons=Oe.nzFooter.map(An)),this.i18n.localeChange.pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Modal")})}onCancel(){this.cancelTriggered.emit()}onOk(){this.okTriggered.emit()}getButtonCallableProp(de,Oe){const zt=de[Oe],Ze=this.modalRef.getContentComponent();return"function"==typeof zt?zt.apply(de,Ze&&[Ze]):zt}onButtonClick(de){if(!this.getButtonCallableProp(de,"loading")){const zt=this.getButtonCallableProp(de,"onClick");de.autoLoading&&(0,N.yL)(zt)&&(de.loading=!0,zt.then(()=>de.loading=!1).catch(Ze=>{throw de.loading=!1,Ze}))}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(U.Og),e.rXU(q))};static#t=this.\u0275cmp=e.VBU({type:Se,selectors:[["div","nz-modal-footer",""]],hostAttrs:[1,"ant-modal-footer"],inputs:{modalRef:"modalRef"},outputs:{cancelTriggered:"cancelTriggered",okTriggered:"okTriggered"},exportAs:["NzModalFooterBuiltin"],standalone:!0,features:[e.aNF],attrs:Lt,decls:2,vars:1,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[3,"innerHTML"],["nz-button","",3,"hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"click","hidden","nzLoading","disabled","nzType","nzDanger","nzShape","nzSize","nzGhost"],["nz-button","",3,"nzLoading","disabled"],["nz-button","",3,"nzType","nzDanger","nzLoading","disabled"],["nz-button","",3,"click","nzLoading","disabled"],["nz-button","",3,"click","nzType","nzDanger","nzLoading","disabled"]],template:function(Oe,zt){1&Oe&&e.DNE(0,en,1,5,"ng-container")(1,Jn,2,2),2&Oe&&e.vxM(zt.config.nzFooter?0:1)},dependencies:[ee.C,ee.m,oe.Zw,oe.aO,M.c,te.p],encapsulation:2})}return Se})();function An(Se){return{type:null,size:"default",autoLoading:!0,show:!0,loading:!1,disabled:!1,...Se}}let Yt=(()=>{class Se{constructor(de){this.config=de}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(q))};static#t=this.\u0275cmp=e.VBU({type:Se,selectors:[["div","nz-modal-title",""]],hostAttrs:[1,"ant-modal-header"],exportAs:["NzModalTitleBuiltin"],standalone:!0,features:[e.aNF],attrs:Dn,decls:2,vars:1,consts:[[1,"ant-modal-title"],[4,"nzStringTemplateOutlet"],[3,"innerHTML"]],template:function(Oe,zt){1&Oe&&(e.j41(0,"div",0),e.DNE(1,Mt,2,1,"ng-container",1),e.k0s()),2&Oe&&(e.R7$(),e.Y8G("nzStringTemplateOutlet",zt.config.nzTitle))},dependencies:[ee.C,ee.m],encapsulation:2,changeDetection:0})}return Se})(),Je=(()=>{class Se extends Nn{constructor(de,Oe,zt,Ze,Ne,Le,Y,le,V,Ve){super(de,Oe,zt,Ze,Ne,Le,Y,le,V,Ve),this.config=le}ngOnInit(){this.setupMouseListeners(this.modalElementRef)}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(e.SKi),e.rXU(e.aKT),e.rXU(ve.GX),e.rXU(e.gRc),e.rXU(e.sFG),e.rXU(r.yY),e.rXU(pe.yx),e.rXU(q),e.rXU(x.qQ,8),e.rXU(e.bc$,8))};static#t=this.\u0275cmp=e.VBU({type:Se,selectors:[["nz-modal-container"]],viewQuery:function(Oe,zt){if(1&Oe&&(e.GBs(m.I3,7),e.GBs(se,7)),2&Oe){let Ze;e.mGM(Ze=e.lsd())&&(zt.portalOutlet=Ze.first),e.mGM(Ze=e.lsd())&&(zt.modalElementRef=Ze.first)}},hostAttrs:["tabindex","-1","role","dialog"],hostVars:10,hostBindings:function(Oe,zt){1&Oe&&(e.Kam("@modalContainer.start",function(Ne){return zt.onAnimationStart(Ne)})("@modalContainer.done",function(Ne){return zt.onAnimationDone(Ne)}),e.bIt("click",function(Ne){return zt.onContainerClick(Ne)})),2&Oe&&(e.zvX("@.disabled",zt.config.nzNoAnimation)("@modalContainer",zt.state),e.HbH(zt.config.nzWrapClassName?"ant-modal-wrap "+zt.config.nzWrapClassName:"ant-modal-wrap"),e.xc7("z-index",zt.config.nzZIndex),e.AVh("ant-modal-wrap-rtl","rtl"===zt.dir)("ant-modal-centered",zt.config.nzCentered))},exportAs:["nzModalContainer"],standalone:!0,features:[e.Vt3,e.aNF],decls:10,vars:12,consts:[["modalElement",""],["cdkDrag","","cdkDragBoundary",".cdk-overlay-container","role","document",1,"ant-modal",3,"cdkDragDisabled","ngClass","ngStyle"],[1,"ant-modal-content"],["nz-modal-close",""],["nz-modal-title","","cdkDragHandle","",3,"cursor"],[1,"ant-modal-body",3,"ngStyle"],["cdkPortalOutlet",""],[3,"innerHTML"],["nz-modal-footer","",3,"modalRef"],["nz-modal-close","",3,"click"],["nz-modal-title","","cdkDragHandle",""],["nz-modal-footer","",3,"cancelTriggered","okTriggered","modalRef"]],template:function(Oe,zt){1&Oe&&(e.j41(0,"div",1,0),e.nI1(2,"nzToCssUnit"),e.j41(3,"div",2),e.DNE(4,Ut,1,0,"button",3)(5,wt,1,2,"div",4),e.j41(6,"div",5),e.DNE(7,Ft,0,0,"ng-template",6)(8,Qt,1,1,"div",7),e.k0s(),e.DNE(9,Xe,1,1,"div",8),e.k0s()()),2&Oe&&(e.xc7("width",e.bMT(2,10,null==zt.config?null:zt.config.nzWidth)),e.Y8G("cdkDragDisabled",!zt.config.nzDraggable)("ngClass",zt.config.nzClassName)("ngStyle",zt.config.nzStyle),e.R7$(4),e.vxM(zt.config.nzClosable?4:-1),e.R7$(),e.vxM(zt.config.nzTitle?5:-1),e.R7$(),e.Y8G("ngStyle",zt.config.nzBodyStyle),e.R7$(2),e.vxM(zt.isStringContent?8:-1),e.R7$(),e.vxM(null!==zt.config.nzFooter?9:-1))},dependencies:[x.YU,x.B3,fn,Yt,m.jc,m.I3,Jt,Ie.Qe,Ie.Zu,ge.T1,ge.Fb],encapsulation:2,data:{animation:[Kt.modalContainer]}})}return Se})();class ae{constructor(lt,de,Oe){this.overlayRef=lt,this.config=de,this.containerInstance=Oe,this.componentInstance=null,this.componentRef=null,this.state=0,this.afterClose=new z.B,this.afterOpen=new z.B,this.destroy$=new z.B,Oe.animationStateChanged.pipe((0,k.p)(zt=>"done"===zt.phaseName&&"enter"===zt.toState),(0,I.s)(1)).subscribe(()=>{this.afterOpen.next(),this.afterOpen.complete(),de.nzAfterOpen instanceof e.bkB&&de.nzAfterOpen.emit()}),Oe.animationStateChanged.pipe((0,k.p)(zt=>"done"===zt.phaseName&&"exit"===zt.toState),(0,I.s)(1)).subscribe(()=>{clearTimeout(this.closeTimeout),this._finishDialogClose()}),Oe.containerClick.pipe((0,$.Q)(this.destroy$)).subscribe(()=>{!this.config.nzCancelLoading&&!this.config.nzOkLoading&&this.trigger("cancel")}),lt.keydownEvents().pipe((0,k.p)(zt=>this.config.nzKeyboard&&!this.config.nzCancelLoading&&!this.config.nzOkLoading&&zt.keyCode===T._f&&!(0,T.rp)(zt))).subscribe(zt=>{zt.preventDefault(),this.trigger("cancel")}),Oe.cancelTriggered.pipe((0,$.Q)(this.destroy$)).subscribe(()=>this.trigger("cancel")),Oe.okTriggered.pipe((0,$.Q)(this.destroy$)).subscribe(()=>this.trigger("ok")),lt.detachments().subscribe(()=>{this.afterClose.next(this.result),this.afterClose.complete(),de.nzAfterClose instanceof e.bkB&&de.nzAfterClose.emit(this.result),this.componentInstance=null,this.componentRef=null,this.overlayRef.dispose()})}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}getElement(){return this.containerInstance.getNativeElement()}destroy(lt){this.close(lt)}triggerOk(){return this.trigger("ok")}triggerCancel(){return this.trigger("cancel")}close(lt){0===this.state&&(this.result=lt,this.containerInstance.animationStateChanged.pipe((0,k.p)(de=>"start"===de.phaseName),(0,I.s)(1)).subscribe(de=>{this.overlayRef.detachBackdrop(),this.closeTimeout=setTimeout(()=>{this._finishDialogClose()},de.totalTime+100)}),this.containerInstance.startExitAnimation(),this.state=1)}updateConfig(lt){Object.assign(this.config,lt),this.containerInstance.bindBackdropStyle(),this.containerInstance.cdr.markForCheck()}getState(){return this.state}getConfig(){return this.config}getBackdropElement(){return this.overlayRef.backdropElement}trigger(lt){var de=this;return(0,t.A)(function*(){if(1===de.state)return;const Oe={ok:de.config.nzOnOk,cancel:de.config.nzOnCancel}[lt],zt={ok:"nzOkLoading",cancel:"nzCancelLoading"}[lt];if(!de.config[zt])if(Oe instanceof e.bkB)Oe.emit(de.getContentComponent());else if("function"==typeof Oe){const Ne=Oe(de.getContentComponent());if((0,N.yL)(Ne)){de.config[zt]=!0;let Le=!1;try{Le=yield Ne}finally{de.config[zt]=!1,de.closeWhitResult(Le)}}else de.closeWhitResult(Ne)}})()}closeWhitResult(lt){!1!==lt&&this.close(lt)}_finishDialogClose(){this.state=2,this.overlayRef.dispose(),this.destroy$.next()}}let ie=(()=>{class Se{get openModals(){return this.parentModal?this.parentModal.openModals:this.openModalsAtThisLevel}get _afterAllClosed(){const de=this.parentModal;return de?de._afterAllClosed:this.afterAllClosedAtThisLevel}constructor(de,Oe,zt,Ze,Ne){this.overlay=de,this.injector=Oe,this.nzConfigService=zt,this.parentModal=Ze,this.directionality=Ne,this.openModalsAtThisLevel=[],this.afterAllClosedAtThisLevel=new z.B,this.afterAllClose=(0,R.v)(()=>this.openModals.length?this._afterAllClosed:this._afterAllClosed.pipe((0,w.Z)(void 0)))}create(de){return this.open(de.nzContent,de)}closeAll(){this.closeModals(this.openModals)}confirm(de={},Oe="confirm"){return"nzFooter"in de&&(0,P.R8)('The Confirm-Modal doesn\'t support "nzFooter", this property will be ignored.'),"nzWidth"in de||(de.nzWidth=416),"nzMaskClosable"in de||(de.nzMaskClosable=!1),de.nzModalType="confirm",de.nzClassName=`ant-modal-confirm ant-modal-confirm-${Oe} ${de.nzClassName||""}`,this.create(de)}info(de={}){return this.confirmFactory(de,"info")}success(de={}){return this.confirmFactory(de,"success")}error(de={}){return this.confirmFactory(de,"error")}warning(de={}){return this.confirmFactory(de,"warning")}open(de,Oe){const zt=function In(Se,lt){return{...lt,...Se}}(Oe||{},new q),Ze=this.createOverlay(zt),Ne=this.attachModalContainer(Ze,zt),Le=this.attachModalContent(de,Ne,Ze,zt);return Ne.modalRef=Le,(0,Q.G5)(Ze,Oe?.nzZIndex),this.openModals.push(Le),Le.afterClose.subscribe(()=>this.removeOpenModal(Le)),Le}removeOpenModal(de){const Oe=this.openModals.indexOf(de);Oe>-1&&(this.openModals.splice(Oe,1),this.openModals.length||this._afterAllClosed.next())}closeModals(de){let Oe=de.length;for(;Oe--;)de[Oe].close(),this.openModals.length||this._afterAllClosed.next()}createOverlay(de){const Oe=this.nzConfigService.getConfigForComponent(Qe)||{},zt=new r.rR({hasBackdrop:!0,scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global(),disposeOnNavigation:Kn(de.nzCloseOnNavigation,Oe.nzCloseOnNavigation,!0),direction:Kn(de.nzDirection,Oe.nzDirection,this.directionality.value)});return Kn(de.nzMask,Oe.nzMask,!0)&&(zt.backdropClass=ze),this.overlay.create(zt)}attachModalContainer(de,Oe){const Ze=e.zZn.create({parent:Oe&&Oe.nzViewContainerRef&&Oe.nzViewContainerRef.injector||this.injector,providers:[{provide:r.yY,useValue:de},{provide:q,useValue:Oe}]}),Le=new m.A8("confirm"===Oe.nzModalType?vn:Je,Oe.nzViewContainerRef,Ze);return de.attach(Le).instance}attachModalContent(de,Oe,zt,Ze){const Ne=new ae(zt,Ze,Oe);if(de instanceof e.C4Q)Oe.attachTemplatePortal(new m.VA(de,null,{$implicit:Ze.nzData,modalRef:Ne}));else if((0,N.n9)(de)&&"string"!=typeof de){const Le=this.createInjector(Ne,Ze),Y=Oe.attachComponentPortal(new m.A8(de,Ze.nzViewContainerRef,Le));Ne.componentRef=Y,Ne.componentInstance=Y.instance}else Oe.attachStringContent();return Ne}createInjector(de,Oe){return e.zZn.create({parent:Oe&&Oe.nzViewContainerRef&&Oe.nzViewContainerRef.injector||this.injector,providers:[{provide:ae,useValue:de},{provide:ht,useValue:Oe.nzData}]})}confirmFactory(de={},Oe){return"nzIconType"in de||(de.nzIconType={info:"info-circle",success:"check-circle",error:"close-circle",warning:"exclamation-circle"}[Oe]),"nzCancelText"in de||(de.nzCancelText=null),this.confirm(de,Oe)}ngOnDestroy(){this.closeModals(this.openModalsAtThisLevel),this.afterAllClosedAtThisLevel.complete()}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.KVO(r.hJ),e.KVO(e.zZn),e.KVO(pe.yx),e.KVO(Se,12),e.KVO(D.dS,8))};static#t=this.\u0275prov=e.jDH({token:Se,factory:Se.\u0275fac})}return Se})(),re=(()=>{class Se{constructor(de){this.templateRef=de}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Se,selectors:[["","nzModalContent",""]],exportAs:["nzModalContent"],standalone:!0})}return Se})(),et=(()=>{class Se{constructor(de,Oe){this.nzModalRef=de,this.templateRef=Oe,this.nzModalRef&&this.nzModalRef.updateConfig({nzFooter:this.templateRef})}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(ae,8),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Se,selectors:[["","nzModalFooter",""]],exportAs:["nzModalFooter"],standalone:!0})}return Se})(),_t=(()=>{class Se{constructor(de,Oe){this.nzModalRef=de,this.templateRef=Oe,this.nzModalRef&&this.nzModalRef.updateConfig({nzTitle:this.templateRef})}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(ae,8),e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:Se,selectors:[["","nzModalTitle",""]],exportAs:["nzModalTitle"],standalone:!0})}return Se})(),mt=(()=>{class Se{set modalTitle(de){de&&this.setTitleWithTemplate(de)}set modalFooter(de){de&&this.setFooterWithTemplate(de)}get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}constructor(de,Oe,zt){this.cdr=de,this.modal=Oe,this.viewContainerRef=zt,this.nzVisible=!1,this.nzClosable=!0,this.nzOkLoading=!1,this.nzOkDisabled=!1,this.nzCancelDisabled=!1,this.nzCancelLoading=!1,this.nzKeyboard=!0,this.nzNoAnimation=!1,this.nzCentered=!1,this.nzDraggable=!1,this.nzZIndex=1e3,this.nzWidth=520,this.nzCloseIcon="close",this.nzOkType="primary",this.nzOkDanger=!1,this.nzIconType="question-circle",this.nzModalType="default",this.nzAutofocus="auto",this.nzOnOk=new e.bkB,this.nzOnCancel=new e.bkB,this.nzAfterOpen=new e.bkB,this.nzAfterClose=new e.bkB,this.nzVisibleChange=new e.bkB,this.modalRef=null,this.destroy$=new z.B}open(){if(this.nzVisible||(this.nzVisible=!0,this.nzVisibleChange.emit(!0)),!this.modalRef){const de=this.getConfig();this.modalRef=this.modal.create(de),this.modalRef.afterClose.asObservable().pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.close()})}}close(de){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.emit(!1)),this.modalRef&&(this.modalRef.close(de),this.modalRef=null)}destroy(de){this.close(de)}triggerOk(){this.modalRef?.triggerOk()}triggerCancel(){this.modalRef?.triggerCancel()}getContentComponent(){return this.modalRef?.getContentComponent()}getElement(){return this.modalRef?.getElement()}getModalRef(){return this.modalRef}setTitleWithTemplate(de){this.nzTitle=de,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzTitle:this.nzTitle})})}setFooterWithTemplate(de){this.nzFooter=de,this.modalRef&&Promise.resolve().then(()=>{this.modalRef.updateConfig({nzFooter:this.nzFooter})}),this.cdr.markForCheck()}getConfig(){const de=Gn(this);return de.nzViewContainerRef=this.viewContainerRef,de.nzContent=this.nzContent||this.contentFromContentChild,de}ngOnChanges(de){const{nzVisible:Oe,...zt}=de;Object.keys(zt).length&&this.modalRef&&this.modalRef.updateConfig(Gn(this)),Oe&&(this.nzVisible?this.open():this.close())}ngOnDestroy(){this.modalRef?._finishDialogClose(),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(Oe){return new(Oe||Se)(e.rXU(e.gRc),e.rXU(ie),e.rXU(e.c1b))};static#t=this.\u0275cmp=e.VBU({type:Se,selectors:[["nz-modal"]],contentQueries:function(Oe,zt,Ze){if(1&Oe&&(e.wni(Ze,_t,7,e.C4Q),e.wni(Ze,re,7,e.C4Q),e.wni(Ze,et,7,e.C4Q)),2&Oe){let Ne;e.mGM(Ne=e.lsd())&&(zt.modalTitle=Ne.first),e.mGM(Ne=e.lsd())&&(zt.contentFromContentChild=Ne.first),e.mGM(Ne=e.lsd())&&(zt.modalFooter=Ne.first)}},inputs:{nzMask:[2,"nzMask","nzMask",e.L39],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",e.L39],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",e.L39],nzVisible:[2,"nzVisible","nzVisible",e.L39],nzClosable:[2,"nzClosable","nzClosable",e.L39],nzOkLoading:[2,"nzOkLoading","nzOkLoading",e.L39],nzOkDisabled:[2,"nzOkDisabled","nzOkDisabled",e.L39],nzCancelDisabled:[2,"nzCancelDisabled","nzCancelDisabled",e.L39],nzCancelLoading:[2,"nzCancelLoading","nzCancelLoading",e.L39],nzKeyboard:[2,"nzKeyboard","nzKeyboard",e.L39],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",e.L39],nzCentered:[2,"nzCentered","nzCentered",e.L39],nzDraggable:[2,"nzDraggable","nzDraggable",e.L39],nzContent:"nzContent",nzFooter:"nzFooter",nzZIndex:[2,"nzZIndex","nzZIndex",e.Udg],nzWidth:"nzWidth",nzWrapClassName:"nzWrapClassName",nzClassName:"nzClassName",nzStyle:"nzStyle",nzTitle:"nzTitle",nzCloseIcon:"nzCloseIcon",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzOkText:"nzOkText",nzCancelText:"nzCancelText",nzOkType:"nzOkType",nzOkDanger:[2,"nzOkDanger","nzOkDanger",e.L39],nzIconType:"nzIconType",nzModalType:"nzModalType",nzAutofocus:"nzAutofocus",nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel"},outputs:{nzOnOk:"nzOnOk",nzOnCancel:"nzOnCancel",nzAfterOpen:"nzAfterOpen",nzAfterClose:"nzAfterClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzModal"],standalone:!0,features:[e.GFd,e.OA$,e.aNF],decls:0,vars:0,template:function(Oe,zt){},encapsulation:2,changeDetection:0})}return Se})(),Rt=(()=>{class Se{static#e=this.\u0275fac=function(Oe){return new(Oe||Se)};static#t=this.\u0275mod=e.$C({type:Se});static#n=this.\u0275inj=e.G2t({providers:[ie],imports:[fn,Jt,Yt,Je,vn]})}return Se})()},3384:($t,De,a)=>{a.d(De,{Qe:()=>P,Zu:()=>j,ec:()=>k});var t=a(3953),r=a(317),m=a(345);class z{static#e=this.formats={B:{max:1024},kB:{max:Math.pow(1024,2),prev:"B"},KB:{max:Math.pow(1024,2),prev:"B"},MB:{max:Math.pow(1024,3),prev:"kB"},GB:{max:Math.pow(1024,4),prev:"MB"},TB:{max:Number.MAX_SAFE_INTEGER,prev:"GB"}};transform(N,x=0,oe="B",ee){if(!((0,r.BV)(N)&&(0,r.BV)(x)&&x%1==0&&x>=0))return N;let Ee=N,Ie=oe;for(;"B"!==Ie;)Ee*=1024,Ie=z.formats[Ie].prev;if(ee){const Pe=(0,r.nI)(z.calculateResult(z.formats[ee],Ee),x);return z.formatResult(Pe,ee)}for(const ce in z.formats)if(z.formats.hasOwnProperty(ce)){const Pe=z.formats[ce];if(Ee{class Q{transform(x,oe="px"){return"number"==typeof x?`${x}${oe}`:x}static#e=this.\u0275fac=function(oe){return new(oe||Q)};static#t=this.\u0275pipe=t.EJ8({name:"nzToCssUnit",type:Q,pure:!0,standalone:!0})}return Q})(),k=(()=>{class Q{constructor(x){this.sanitizer=x}transform(x,oe="html"){switch(oe){case"html":return this.sanitizer.bypassSecurityTrustHtml(x);case"style":return this.sanitizer.bypassSecurityTrustStyle(x);case"url":return this.sanitizer.bypassSecurityTrustUrl(x);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(x);default:throw new Error("Invalid safe type specified")}}static#e=this.\u0275fac=function(oe){return new(oe||Q)(t.rXU(m.up,16))};static#t=this.\u0275pipe=t.EJ8({name:"nzSanitizer",type:Q,pure:!0,standalone:!0})}return Q})(),P=(()=>{class Q{static#e=this.\u0275fac=function(oe){return new(oe||Q)};static#t=this.\u0275mod=t.$C({type:Q});static#n=this.\u0275inj=t.G2t({})}return Q})()},1236:($t,De,a)=>{a.d(De,{L_:()=>ee,MC:()=>Ie});var t=a(4707),r=a(7987),m=a(177),e=a(3953),z=a(713),j=a(6042),R=a(6841),$=a(7806),k=a(5463),I=a(5154),w=a(8203);function P(ce,Pe){if(1&ce&&(e.qex(0),e.EFF(1),e.bVm()),2&ce){const ve=e.XpG(3);e.R7$(),e.JRh(ve.nzTitle)}}function Q(ce,Pe){if(1&ce&&(e.j41(0,"div",7),e.DNE(1,P,2,1,"ng-container",9),e.k0s()),2&ce){const ve=e.XpG(2);e.R7$(),e.Y8G("nzStringTemplateOutlet",ve.nzTitle)}}function N(ce,Pe){if(1&ce&&(e.qex(0),e.EFF(1),e.bVm()),2&ce){const ve=e.XpG(2);e.R7$(),e.JRh(ve.nzContent)}}function x(ce,Pe){if(1&ce&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4),e.nrm(3,"span",5),e.k0s(),e.j41(4,"div",6)(5,"div"),e.DNE(6,Q,2,1,"div",7),e.j41(7,"div",8),e.DNE(8,N,2,1,"ng-container",9),e.k0s()()()()()),2&ce){const ve=e.XpG();e.AVh("ant-popover-rtl","rtl"===ve.dir),e.Y8G("ngClass",ve._classMap)("ngStyle",ve.nzOverlayStyle)("@.disabled",!(null==ve.noAnimation||!ve.noAnimation.nzNoAnimation))("nzNoAnimation",null==ve.noAnimation?null:ve.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),e.R7$(6),e.vxM(ve.nzTitle?6:-1),e.R7$(2),e.Y8G("nzStringTemplateOutlet",ve.nzContent)}}let ee=(()=>{class ce extends I.ME{getProxyPropertyMap(){return{nzPopoverBackdrop:["nzBackdrop",()=>this.nzPopoverBackdrop],...super.getProxyPropertyMap()}}constructor(){super(Ee),this._nzModuleName="popover",this.trigger="hover",this.placement="top",this.nzPopoverBackdrop=!1,this.visibleChange=new e.bkB}static#e=this.\u0275fac=function(pe){return new(pe||ce)};static#t=this.\u0275dir=e.FsC({type:ce,selectors:[["","nz-popover",""]],hostVars:2,hostBindings:function(pe,U){2&pe&&e.AVh("ant-popover-open",U.visible)},inputs:{arrowPointAtCenter:[2,"nzPopoverArrowPointAtCenter","arrowPointAtCenter",e.L39],title:[0,"nzPopoverTitle","title"],content:[0,"nzPopoverContent","content"],directiveTitle:[0,"nz-popover","directiveTitle"],trigger:[0,"nzPopoverTrigger","trigger"],placement:[0,"nzPopoverPlacement","placement"],origin:[0,"nzPopoverOrigin","origin"],visible:[0,"nzPopoverVisible","visible"],mouseEnterDelay:[0,"nzPopoverMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzPopoverMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzPopoverOverlayClassName","overlayClassName"],overlayStyle:[0,"nzPopoverOverlayStyle","overlayStyle"],nzPopoverBackdrop:"nzPopoverBackdrop"},outputs:{visibleChange:"nzPopoverVisibleChange"},exportAs:["nzPopover"],standalone:!0,features:[e.GFd,e.Vt3]})}return(0,t.Cg)([(0,j.H4)()],ce.prototype,"nzPopoverBackdrop",void 0),ce})(),Ee=(()=>{class ce extends I.VJ{constructor(ve,pe,U){super(ve,pe,U),this._prefix="ant-popover"}get hasBackdrop(){return"click"===this.nzTrigger&&this.nzBackdrop}isEmpty(){return(0,I.t)(this.nzTitle)&&(0,I.t)(this.nzContent)}static#e=this.\u0275fac=function(pe){return new(pe||ce)(e.rXU(e.gRc),e.rXU(w.dS,8),e.rXU(R.z,9))};static#t=this.\u0275cmp=e.VBU({type:ce,selectors:[["nz-popover"]],exportAs:["nzPopoverComponent"],standalone:!0,features:[e.Vt3,e.aNF],decls:2,vars:6,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayOpen","cdkConnectedOverlayPush","nzArrowPointAtCenter"],[1,"ant-popover",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-popover-content"],[1,"ant-popover-arrow"],[1,"ant-popover-arrow-content"],["role","tooltip",1,"ant-popover-inner"],[1,"ant-popover-title"],[1,"ant-popover-inner-content"],[4,"nzStringTemplateOutlet"]],template:function(pe,U){if(1&pe){const M=e.RV6();e.DNE(0,x,9,9,"ng-template",1,0,e.C5r),e.bIt("overlayOutsideClick",function(ge){return e.eBV(M),e.Njj(U.onClickOutside(ge))})("detach",function(){return e.eBV(M),e.Njj(U.hide())})("positionChange",function(ge){return e.eBV(M),e.Njj(U.onPositionChange(ge))})}2&pe&&e.Y8G("cdkConnectedOverlayHasBackdrop",U.hasBackdrop)("cdkConnectedOverlayOrigin",U.origin)("cdkConnectedOverlayPositions",U._positions)("cdkConnectedOverlayOpen",U._visible)("cdkConnectedOverlayPush",U.cdkConnectedOverlayPush)("nzArrowPointAtCenter",U.nzArrowPointAtCenter)},dependencies:[r.z_,r.WB,k.$_,k.vT,m.YU,m.B3,R.z,$.C,$.m],encapsulation:2,data:{animation:[z.uX]},changeDetection:0})}return ce})(),Ie=(()=>{class ce{static#e=this.\u0275fac=function(pe){return new(pe||ce)};static#t=this.\u0275mod=e.$C({type:ce});static#n=this.\u0275inj=e.G2t({imports:[Ee]})}return ce})()},3190:($t,De,a)=>{a.d(De,{Sw:()=>oe,i3:()=>N,lx:()=>x});var t=a(3953),r=a(9417),m=a(2771),e=a(1413),z=a(3726),j=a(6977),R=a(8203),$=a(851),k=a(7891);const I=["*"],w=["inputElement"],P=["nz-radio",""];let Q=(()=>{class ee{constructor(){this.selected$=new m.m(1),this.touched$=new e.B,this.disabled$=new m.m(1),this.name$=new m.m(1)}touch(){this.touched$.next()}select(Ie){this.selected$.next(Ie)}setDisabled(Ie){this.disabled$.next(Ie)}setName(Ie){this.name$.next(Ie)}static#e=this.\u0275fac=function(ce){return new(ce||ee)};static#t=this.\u0275prov=t.jDH({token:ee,factory:ee.\u0275fac})}return ee})(),N=(()=>{class ee{constructor(Ie,ce,Pe){this.cdr=Ie,this.nzRadioService=ce,this.directionality=Pe,this.value=null,this.destroy$=new e.B,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.nzDisabled=!1,this.nzButtonStyle="outline",this.nzSize="default",this.nzName=null,this.dir="ltr"}ngOnInit(){this.nzRadioService.selected$.pipe((0,j.Q)(this.destroy$)).subscribe(Ie=>{this.value!==Ie&&(this.value=Ie,this.onChange(this.value))}),this.nzRadioService.touched$.pipe((0,j.Q)(this.destroy$)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe((0,j.Q)(this.destroy$)).subscribe(Ie=>{this.dir=Ie,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(Ie){const{nzDisabled:ce,nzName:Pe}=Ie;ce&&this.nzRadioService.setDisabled(this.nzDisabled),Pe&&this.nzRadioService.setName(this.nzName)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}writeValue(Ie){this.value=Ie,this.nzRadioService.select(Ie),this.cdr.markForCheck()}registerOnChange(Ie){this.onChange=Ie}registerOnTouched(Ie){this.onTouched=Ie}setDisabledState(Ie){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Ie,this.isNzDisableFirstChange=!1,this.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static#e=this.\u0275fac=function(ce){return new(ce||ee)(t.rXU(t.gRc),t.rXU(Q),t.rXU(R.dS,8))};static#t=this.\u0275cmp=t.VBU({type:ee,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(ce,Pe){2&ce&&t.AVh("ant-radio-group-large","large"===Pe.nzSize)("ant-radio-group-small","small"===Pe.nzSize)("ant-radio-group-solid","solid"===Pe.nzButtonStyle)("ant-radio-group-rtl","rtl"===Pe.dir)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],standalone:!0,features:[t.Jv_([Q,{provide:r.kq,useExisting:(0,t.Rfq)(()=>ee),multi:!0}]),t.GFd,t.OA$,t.aNF],ngContentSelectors:I,decls:1,vars:0,template:function(ce,Pe){1&ce&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return ee})(),x=(()=>{class ee{focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(Ie,ce,Pe,ve,pe,U,M){this.ngZone=Ie,this.elementRef=ce,this.cdr=Pe,this.focusMonitor=ve,this.directionality=pe,this.nzRadioService=U,this.nzFormStatusService=M,this.isNgModel=!1,this.destroy$=new e.B,this.isNzDisableFirstChange=!0,this.isChecked=!1,this.name=null,this.onChange=()=>{},this.onTouched=()=>{},this.nzValue=null,this.nzDisabled=!1,this.nzAutoFocus=!1,this.isRadioButton=!1,this.dir="ltr"}setDisabledState(Ie){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Ie,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(Ie){this.isChecked=Ie,this.cdr.markForCheck()}registerOnChange(Ie){this.isNgModel=!0,this.onChange=Ie}registerOnTouched(Ie){this.onTouched=Ie}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe((0,j.Q)(this.destroy$)).subscribe(Ie=>{this.name=Ie,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe((0,j.Q)(this.destroy$)).subscribe(Ie=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Ie,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe((0,j.Q)(this.destroy$)).subscribe(Ie=>{const ce=this.isChecked;this.isChecked=this.nzValue===Ie,this.isNgModel&&ce!==this.isChecked&&!1===this.isChecked&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe((0,j.Q)(this.destroy$)).subscribe(Ie=>{Ie||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe((0,j.Q)(this.destroy$)).subscribe(Ie=>{this.dir=Ie,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.focusMonitor.stopMonitoring(this.elementRef)}setupClickListener(){this.ngZone.runOutsideAngular(()=>{(0,z.R)(this.elementRef.nativeElement,"click").pipe((0,j.Q)(this.destroy$)).subscribe(Ie=>{Ie.stopPropagation(),Ie.preventDefault(),!this.nzDisabled&&!this.isChecked&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})})}static#e=this.\u0275fac=function(ce){return new(ce||ee)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU($.FN),t.rXU(R.dS,8),t.rXU(Q,8),t.rXU(k.is,8))};static#t=this.\u0275cmp=t.VBU({type:ee,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(ce,Pe){if(1&ce&&t.GBs(w,7),2&ce){let ve;t.mGM(ve=t.lsd())&&(Pe.inputElement=ve.first)}},hostVars:18,hostBindings:function(ce,Pe){2&ce&&t.AVh("ant-radio-wrapper-in-form-item",!!Pe.nzFormStatusService)("ant-radio-wrapper",!Pe.isRadioButton)("ant-radio-button-wrapper",Pe.isRadioButton)("ant-radio-wrapper-checked",Pe.isChecked&&!Pe.isRadioButton)("ant-radio-button-wrapper-checked",Pe.isChecked&&Pe.isRadioButton)("ant-radio-wrapper-disabled",Pe.nzDisabled&&!Pe.isRadioButton)("ant-radio-button-wrapper-disabled",Pe.nzDisabled&&Pe.isRadioButton)("ant-radio-wrapper-rtl",!Pe.isRadioButton&&"rtl"===Pe.dir)("ant-radio-button-wrapper-rtl",Pe.isRadioButton&&"rtl"===Pe.dir)},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],isRadioButton:[2,"nz-radio-button","isRadioButton",t.L39]},exportAs:["nzRadio"],standalone:!0,features:[t.Jv_([{provide:r.kq,useExisting:(0,t.Rfq)(()=>ee),multi:!0}]),t.GFd,t.aNF],attrs:P,ngContentSelectors:I,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(ce,Pe){1&ce&&(t.NAR(),t.j41(0,"span"),t.nrm(1,"input",1,0)(3,"span"),t.k0s(),t.j41(4,"span"),t.SdG(5),t.k0s()),2&ce&&(t.AVh("ant-radio",!Pe.isRadioButton)("ant-radio-checked",Pe.isChecked&&!Pe.isRadioButton)("ant-radio-disabled",Pe.nzDisabled&&!Pe.isRadioButton)("ant-radio-button",Pe.isRadioButton)("ant-radio-button-checked",Pe.isChecked&&Pe.isRadioButton)("ant-radio-button-disabled",Pe.nzDisabled&&Pe.isRadioButton),t.R7$(),t.AVh("ant-radio-input",!Pe.isRadioButton)("ant-radio-button-input",Pe.isRadioButton),t.Y8G("disabled",Pe.nzDisabled)("checked",Pe.isChecked),t.BMQ("autofocus",Pe.nzAutoFocus?"autofocus":null)("name",Pe.name),t.R7$(2),t.AVh("ant-radio-inner",!Pe.isRadioButton)("ant-radio-button-inner",Pe.isRadioButton))},encapsulation:2,changeDetection:0})}return ee})(),oe=(()=>{class ee{static#e=this.\u0275fac=function(ce){return new(ce||ee)};static#t=this.\u0275mod=t.$C({type:ee});static#n=this.\u0275inj=t.G2t({})}return ee})()},1997:($t,De,a)=>{a.d(De,{DH:()=>le,WI:()=>Y,ld:()=>ct,uX:()=>et});var t=a(3953),r=a(1413),m=a(3726),e=a(4412),z=a(7673),j=a(4572),R=a(7786),$=a(7987),k=a(946),I=a(177),w=a(5463),P=a(1672),Q=a(7806),N=a(6977),x=a(9172),oe=a(3294),ee=a(3993),Ee=a(6354),Ie=a(5558),ce=a(1025),Pe=a(5103),ve=a(4707),pe=a(7336),U=a(6860),M=a(9417),te=a(713),ge=a(6042),T=a(7891),D=a(6841),A=a(4500),X=a(317),se=a(851),je=a(8203);const Bt=["*"];function Tt(V,Ve){if(1&V&&(t.qex(0),t.EFF(1),t.bVm()),2&V){const Ce=t.XpG();t.R7$(),t.JRh(Ce.nzLabel)}}function Vt(V,Ve){}function He(V,Ve){if(1&V&&t.DNE(0,Vt,0,0,"ng-template",4),2&V){const Ce=t.XpG();t.Y8G("ngTemplateOutlet",Ce.template)}}function xt(V,Ve){if(1&V&&t.EFF(0),2&V){const Ce=t.XpG();t.JRh(Ce.label)}}function Lt(V,Ve){1&V&&t.nrm(0,"span",7)}function ft(V,Ve){if(1&V&&(t.j41(0,"div",5),t.DNE(1,Lt,1,0,"span",6),t.k0s()),2&V){const Ce=t.XpG();t.R7$(),t.Y8G("ngIf",!Ce.icon)("ngIfElse",Ce.icon)}}function St(V,Ve){if(1&V&&(t.j41(0,"div",4),t.nrm(1,"nz-embed-empty",5),t.k0s()),2&V){const Ce=t.XpG();t.R7$(),t.Y8G("specificContent",Ce.notFoundContent)}}function kt(V,Ve){if(1&V&&t.nrm(0,"nz-option-item-group",9),2&V){const Ce=t.XpG().$implicit;t.Y8G("nzLabel",Ce.groupLabel)}}function It(V,Ve){if(1&V){const Ce=t.RV6();t.j41(0,"nz-option-item",10),t.bIt("itemHover",function(W){t.eBV(Ce);const _e=t.XpG(2);return t.Njj(_e.onItemHover(W))})("itemClick",function(W){t.eBV(Ce);const _e=t.XpG(2);return t.Njj(_e.onItemClick(W))}),t.k0s()}if(2&V){const Ce=t.XpG().$implicit,J=t.XpG();t.Y8G("icon",J.menuItemSelectedIcon)("customContent",Ce.nzCustomContent)("template",Ce.template)("grouped",!!Ce.groupLabel)("disabled",Ce.nzDisabled||J.isMaxLimitReached&&!J.listOfSelectedValue.includes(Ce.nzValue))("showState","tags"===J.mode||"multiple"===J.mode)("title",Ce.nzTitle)("label",Ce.nzLabel)("compareWith",J.compareWith)("activatedValue",J.activatedValue)("listOfSelectedValue",J.listOfSelectedValue)("value",Ce.nzValue)}}function rn(V,Ve){1&V&&(t.qex(0,6),t.DNE(1,kt,1,1,"nz-option-item-group",7)(2,It,1,12,"nz-option-item",8),t.bVm()),2&V&&(t.Y8G("ngSwitch",Ve.$implicit.type),t.R7$(),t.Y8G("ngSwitchCase","group"),t.R7$(),t.Y8G("ngSwitchCase","item"))}function en(V,Ve){}function Xt(V,Ve){1&V&&t.SdG(0)}function Tn(V,Ve){if(1&V&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.k0s(),t.bVm()),2&V){const Ce=t.XpG();t.R7$(2),t.Lme("",Ce.listOfValue.length," / ",Ce.nzMaxMultipleCount,"")}}function Jn(V,Ve){1&V&&t.nrm(0,"span",5)}function Dn(V,Ve){1&V&&t.nrm(0,"span",9)}function Mt(V,Ve){1&V&&t.nrm(0,"span",10)}function Ut(V,Ve){if(1&V&&(t.qex(0),t.DNE(1,Dn,1,0,"span",7)(2,Mt,1,0,"span",8),t.bVm()),2&V){const Ce=t.XpG(2);t.R7$(),t.Y8G("ngIf",!Ce.search),t.R7$(),t.Y8G("ngIf",Ce.search)}}function wt(V,Ve){if(1&V&&t.nrm(0,"span",12),2&V){const Ce=t.XpG().$implicit;t.Y8G("nzType",Ce)}}function Ft(V,Ve){if(1&V&&(t.qex(0),t.DNE(1,wt,1,1,"span",11),t.bVm()),2&V){const Ce=Ve.$implicit;t.R7$(),t.Y8G("ngIf",Ce)}}function Qt(V,Ve){if(1&V&&t.DNE(0,Ft,2,1,"ng-container",4),2&V){const Ce=t.XpG(2);t.Y8G("nzStringTemplateOutlet",Ce.suffixIcon)}}function Xe(V,Ve){if(1&V&&t.DNE(0,Ut,3,2,"ng-container",6)(1,Qt,1,1,"ng-template",null,1,t.C5r),2&V){const Ce=t.sdS(2),J=t.XpG();t.Y8G("ngIf",J.showArrow&&!J.suffixIcon)("ngIfElse",Ce)}}function ke(V,Ve){if(1&V&&(t.qex(0),t.EFF(1),t.bVm()),2&V){const Ce=t.XpG();t.R7$(),t.JRh(Ce.feedbackIcon)}}function q(V,Ve){1&V&&t.nrm(0,"span",1)}const G=V=>({$implicit:V});function H(V,Ve){if(1&V&&(t.j41(0,"div",4),t.EFF(1),t.k0s()),2&V){const Ce=t.XpG(2);t.R7$(),t.JRh(Ce.label)}}function ze(V,Ve){if(1&V&&t.EFF(0),2&V){const Ce=t.XpG(2);t.JRh(Ce.label)}}function Qe(V,Ve){if(1&V&&(t.qex(0),t.DNE(1,H,2,1,"div",3)(2,ze,1,1,"ng-template",null,0,t.C5r),t.bVm()),2&V){const Ce=t.sdS(3),J=t.XpG();t.R7$(),t.Y8G("ngIf",J.deletable)("ngIfElse",Ce)}}function ht(V,Ve){1&V&&t.nrm(0,"span",7)}function Kt(V,Ve){if(1&V){const Ce=t.RV6();t.j41(0,"span",5),t.bIt("click",function(W){t.eBV(Ce);const _e=t.XpG();return t.Njj(_e.onDelete(W))}),t.DNE(1,ht,1,0,"span",6),t.k0s()}if(2&V){const Ce=t.XpG();t.R7$(),t.Y8G("ngIf",!Ce.removeIcon)("ngIfElse",Ce.removeIcon)}}function fn(V,Ve){if(1&V&&(t.qex(0),t.EFF(1),t.bVm()),2&V){const Ce=t.XpG();t.R7$(),t.SpI(" ",Ce.placeholder," ")}}const In=["inputElement"],Kn=["mirrorElement"];function Gn(V,Ve){1&V&&t.nrm(0,"span",4,1)}function $n(V,Ve){if(1&V&&t.nrm(0,"nz-select-item",6),2&V){const Ce=t.XpG(2);t.Y8G("deletable",!1)("disabled",!1)("removeIcon",Ce.removeIcon)("label",Ce.listOfTopItem[0].nzLabel)("contentTemplateOutlet",Ce.customTemplate)("contentTemplateOutletContext",Ce.listOfTopItem[0])}}function Nn(V,Ve){if(1&V){const Ce=t.RV6();t.qex(0),t.j41(1,"nz-select-search",4),t.bIt("isComposingChange",function(W){t.eBV(Ce);const _e=t.XpG();return t.Njj(_e.isComposingChange(W))})("valueChange",function(W){t.eBV(Ce);const _e=t.XpG();return t.Njj(_e.onInputValueChange(W))}),t.k0s(),t.DNE(2,$n,1,6,"nz-select-item",5),t.bVm()}if(2&V){const Ce=t.XpG();t.R7$(),t.Y8G("nzId",Ce.nzId)("disabled",Ce.disabled)("value",Ce.inputValue)("showInput",Ce.showSearch)("mirrorSync",!1)("autofocus",Ce.autofocus)("focusTrigger",Ce.open),t.R7$(),t.Y8G("ngIf",Ce.isShowSingleLabel)}}function vn(V,Ve){if(1&V){const Ce=t.RV6();t.j41(0,"nz-select-item",9),t.bIt("delete",function(){const W=t.eBV(Ce).$implicit,_e=t.XpG(2);return t.Njj(_e.onDeleteItem(W.contentTemplateOutletContext))}),t.k0s()}if(2&V){const Ce=Ve.$implicit,J=t.XpG(2);t.Y8G("removeIcon",J.removeIcon)("label",Ce.nzLabel)("disabled",Ce.nzDisabled||J.disabled)("contentTemplateOutlet",Ce.contentTemplateOutlet)("deletable",!0)("contentTemplateOutletContext",Ce.contentTemplateOutletContext)}}function Jt(V,Ve){if(1&V){const Ce=t.RV6();t.qex(0),t.DNE(1,vn,1,6,"nz-select-item",7),t.j41(2,"nz-select-search",8),t.bIt("isComposingChange",function(W){t.eBV(Ce);const _e=t.XpG();return t.Njj(_e.isComposingChange(W))})("valueChange",function(W){t.eBV(Ce);const _e=t.XpG();return t.Njj(_e.onInputValueChange(W))}),t.k0s(),t.bVm()}if(2&V){const Ce=t.XpG();t.R7$(),t.Y8G("ngForOf",Ce.listOfSlicedItem)("ngForTrackBy",Ce.trackValue),t.R7$(),t.Y8G("nzId",Ce.nzId)("disabled",Ce.disabled)("value",Ce.inputValue)("autofocus",Ce.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",Ce.open)}}function An(V,Ve){if(1&V&&t.nrm(0,"nz-select-placeholder",10),2&V){const Ce=t.XpG();t.Y8G("placeholder",Ce.placeHolder)}}function Yt(V,Ve){if(1&V&&t.nrm(0,"nz-form-item-feedback-icon",8),2&V){const Ce=t.XpG(3);t.Y8G("status",Ce.status)}}function Je(V,Ve){if(1&V&&t.DNE(0,Yt,1,1,"nz-form-item-feedback-icon",7),2&V){const Ce=t.XpG(2);t.Y8G("ngIf",Ce.hasFeedback&&!!Ce.status)}}function ae(V,Ve){if(1&V&&(t.j41(0,"nz-select-arrow",6),t.DNE(1,Je,1,1,"ng-template",null,1,t.C5r),t.k0s()),2&V){const Ce=t.sdS(2),J=t.XpG();t.Y8G("showArrow",J.nzShowArrow)("loading",J.nzLoading)("search",J.nzOpen&&J.nzShowSearch)("suffixIcon",J.nzSuffixIcon)("feedbackIcon",Ce)("nzMaxMultipleCount",J.nzMaxMultipleCount)("listOfValue",J.listOfValue)("isMaxTagCountSet",J.isMaxTagCountSet)}}function ie(V,Ve){if(1&V){const Ce=t.RV6();t.j41(0,"nz-select-clear",9),t.bIt("clear",function(){t.eBV(Ce);const W=t.XpG();return t.Njj(W.onClearSelection())}),t.k0s()}if(2&V){const Ce=t.XpG();t.Y8G("clearIcon",Ce.nzClearIcon)}}function re(V,Ve){if(1&V){const Ce=t.RV6();t.j41(0,"nz-option-container",10),t.bIt("keydown",function(W){t.eBV(Ce);const _e=t.XpG();return t.Njj(_e.onKeyDown(W))})("itemClick",function(W){t.eBV(Ce);const _e=t.XpG();return t.Njj(_e.onItemClick(W))})("scrollToBottom",function(){t.eBV(Ce);const W=t.XpG();return t.Njj(W.nzScrollToBottom.emit())}),t.k0s()}if(2&V){const Ce=t.XpG();t.AVh("ant-select-dropdown-placement-bottomLeft","bottomLeft"===Ce.dropDownPosition)("ant-select-dropdown-placement-topLeft","topLeft"===Ce.dropDownPosition)("ant-select-dropdown-placement-bottomRight","bottomRight"===Ce.dropDownPosition)("ant-select-dropdown-placement-topRight","topRight"===Ce.dropDownPosition),t.Y8G("ngStyle",Ce.nzDropdownStyle)("itemSize",Ce.nzOptionHeightPx)("maxItemLength",Ce.nzOptionOverflowSize)("matchWidth",Ce.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!(null==Ce.noAnimation||!Ce.noAnimation.nzNoAnimation))("nzNoAnimation",null==Ce.noAnimation?null:Ce.noAnimation.nzNoAnimation)("listOfContainerItem",Ce.listOfContainerItem)("menuItemSelectedIcon",Ce.nzMenuItemSelectedIcon)("notFoundContent",Ce.nzNotFoundContent)("activatedValue",Ce.activatedValue)("listOfSelectedValue",Ce.listOfValue)("dropdownRender",Ce.nzDropdownRender)("compareWith",Ce.compareWith)("mode",Ce.nzMode)("isMaxLimitReached",Ce.isMaxLimitReached)}}let et=(()=>{class V{constructor(){this.nzLabel=null,this.changes=new r.B}ngOnChanges(){this.changes.next()}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],standalone:!0,features:[t.OA$,t.aNF],ngContentSelectors:Bt,decls:1,vars:0,template:function(J,W){1&J&&(t.NAR(),t.SdG(0))},encapsulation:2,changeDetection:0})}return V})(),_t=(()=>{class V{constructor(){this.nzLabel=null}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(J,W){1&J&&t.DNE(0,Tt,2,1,"ng-container",0),2&J&&t.Y8G("nzStringTemplateOutlet",W.nzLabel)},dependencies:[Q.C,Q.m],encapsulation:2,changeDetection:0})}return V})(),mt=(()=>{class V{constructor(Ce,J,W){this.elementRef=Ce,this.ngZone=J,this.destroy$=W,this.selected=!1,this.activated=!1,this.grouped=!1,this.customContent=!1,this.template=null,this.disabled=!1,this.showState=!1,this.label=null,this.value=null,this.activatedValue=null,this.listOfSelectedValue=[],this.icon=null,this.itemClick=new t.bkB,this.itemHover=new t.bkB}ngOnChanges(Ce){const{value:J,activatedValue:W,listOfSelectedValue:_e}=Ce;(J||_e)&&(this.selected=this.listOfSelectedValue.some(it=>this.compareWith(it,this.value))),(J||W)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.elementRef.nativeElement,"click").pipe((0,N.Q)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),(0,m.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,N.Q)(this.destroy$)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})})}static#e=this.\u0275fac=function(J){return new(J||V)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(ce.y4))};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(J,W){2&J&&(t.BMQ("title",W.title),t.AVh("ant-select-item-option-grouped",W.grouped)("ant-select-item-option-selected",W.selected&&!W.disabled)("ant-select-item-option-disabled",W.disabled)("ant-select-item-option-active",W.activated&&!W.disabled))},inputs:{grouped:"grouped",customContent:"customContent",template:"template",disabled:"disabled",showState:"showState",title:"title",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},standalone:!0,features:[t.Jv_([ce.y4]),t.OA$,t.aNF],decls:5,vars:3,consts:[["noCustomContent",""],[1,"ant-select-item-option-content"],[3,"ngIf","ngIfElse"],["class","ant-select-item-option-state","style","user-select: none","unselectable","on",4,"ngIf"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state",2,"user-select","none"],["nz-icon","","nzType","check","class","ant-select-selected-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","check",1,"ant-select-selected-icon"]],template:function(J,W){if(1&J&&(t.j41(0,"div",1),t.DNE(1,He,1,1,"ng-template",2)(2,xt,1,1,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(4,ft,2,2,"div",3)),2&J){const _e=t.sdS(3);t.R7$(),t.Y8G("ngIf",W.customContent)("ngIfElse",_e),t.R7$(3),t.Y8G("ngIf",W.showState&&W.selected)}},dependencies:[I.bT,I.T3,Pe.Y3,Pe.Dn],encapsulation:2,changeDetection:0})}return V})(),Rt=(()=>{class V{constructor(){this.notFoundContent=void 0,this.menuItemSelectedIcon=null,this.dropdownRender=null,this.activatedValue=null,this.listOfSelectedValue=[],this.mode="default",this.matchWidth=!0,this.itemSize=32,this.maxItemLength=8,this.isMaxLimitReached=!1,this.listOfContainerItem=[],this.itemClick=new t.bkB,this.scrollToBottom=new t.bkB,this.scrolledIndex=0,this.ngZone=(0,t.WQX)(t.SKi),this.platformId=(0,t.WQX)(t.Agw)}onItemClick(Ce){this.itemClick.emit(Ce)}onItemHover(Ce){this.activatedValue=Ce}trackValue(Ce,J){return J.key}onScrolledIndexChange(Ce){this.scrolledIndex=Ce,Ce===this.listOfContainerItem.length-this.maxItemLength-1&&this.scrollToBottom.emit()}scrollToActivatedValue(){const Ce=this.listOfContainerItem.findIndex(J=>this.compareWith(J.key,this.activatedValue));(Ce=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(Ce||0)}ngOnChanges(Ce){const{listOfContainerItem:J,activatedValue:W}=Ce;(J||W)&&this.scrollToActivatedValue()}ngAfterViewInit(){(0,I.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.scrollToActivatedValue()))}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-option-container"]],viewQuery:function(J,W){if(1&J&&t.GBs(k.d6,7),2&J){let _e;t.mGM(_e=t.lsd())&&(W.cdkVirtualScrollViewport=_e.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",isMaxLimitReached:"isMaxLimitReached",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],standalone:!0,features:[t.OA$,t.aNF],decls:5,vars:14,consts:[["class","ant-select-item-empty",4,"ngIf"],[3,"scrolledIndexChange","itemSize","maxBufferPx","minBufferPx"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],[1,"ant-select-item-empty"],["nzComponentName","select",3,"specificContent"],[3,"ngSwitch"],[3,"nzLabel",4,"ngSwitchCase"],[3,"icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value","itemHover","itemClick",4,"ngSwitchCase"],[3,"nzLabel"],[3,"itemHover","itemClick","icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"]],template:function(J,W){1&J&&(t.j41(0,"div"),t.DNE(1,St,2,1,"div",0),t.j41(2,"cdk-virtual-scroll-viewport",1),t.bIt("scrolledIndexChange",function(it){return W.onScrolledIndexChange(it)}),t.DNE(3,rn,3,3,"ng-template",2),t.k0s(),t.DNE(4,en,0,0,"ng-template",3),t.k0s()),2&J&&(t.R7$(),t.Y8G("ngIf",0===W.listOfContainerItem.length),t.R7$(),t.xc7("height",W.listOfContainerItem.length*W.itemSize,"px")("max-height",W.itemSize*W.maxItemLength,"px"),t.AVh("full-width",!W.matchWidth),t.Y8G("itemSize",W.itemSize)("maxBufferPx",W.itemSize*W.maxItemLength)("minBufferPx",W.itemSize*W.maxItemLength),t.R7$(),t.Y8G("cdkVirtualForOf",W.listOfContainerItem)("cdkVirtualForTrackBy",W.trackValue)("cdkVirtualForTemplateCacheSize",0),t.R7$(),t.Y8G("ngTemplateOutlet",W.dropdownRender))},dependencies:[P._v,P.E8,I.bT,I.ux,_t,I.e1,mt,I.T3,$.z_,k.yg,k.E$,k.d6,w.$_],encapsulation:2,changeDetection:0})}return V})(),ct=(()=>{class V{constructor(Ce,J){this.nzOptionGroupComponent=Ce,this.destroy$=J,this.changes=new r.B,this.groupLabel=null,this.nzLabel=null,this.nzValue=null,this.nzDisabled=!1,this.nzHide=!1,this.nzCustomContent=!1}ngOnInit(){this.nzOptionGroupComponent&&this.nzOptionGroupComponent.changes.pipe((0,x.Z)(!0),(0,N.Q)(this.destroy$)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent.nzLabel})}ngOnChanges(){this.changes.next()}static#e=this.\u0275fac=function(J){return new(J||V)(t.rXU(et,8),t.rXU(ce.y4))};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-option"]],viewQuery:function(J,W){if(1&J&&t.GBs(t.C4Q,7),2&J){let _e;t.mGM(_e=t.lsd())&&(W.template=_e.first)}},inputs:{nzTitle:"nzTitle",nzLabel:"nzLabel",nzValue:"nzValue",nzKey:"nzKey",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzHide:[2,"nzHide","nzHide",t.L39],nzCustomContent:[2,"nzCustomContent","nzCustomContent",t.L39]},exportAs:["nzOption"],standalone:!0,features:[t.Jv_([ce.y4]),t.GFd,t.OA$,t.aNF],ngContentSelectors:Bt,decls:1,vars:0,template:function(J,W){1&J&&(t.NAR(),t.DNE(0,Xt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return V})(),Se=(()=>{class V{constructor(){this.listOfValue=[],this.loading=!1,this.search=!1,this.showArrow=!1,this.isMaxTagCountSet=!1,this.suffixIcon=null,this.feedbackIcon=null,this.nzMaxMultipleCount=1/0}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(J,W){2&J&&t.AVh("ant-select-arrow-loading",W.loading)},inputs:{listOfValue:"listOfValue",loading:"loading",search:"search",showArrow:"showArrow",isMaxTagCountSet:"isMaxTagCountSet",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",t.Udg]},standalone:!0,features:[t.GFd,t.aNF],decls:5,vars:4,consts:[["defaultArrow",""],["suffixTemplate",""],[4,"ngIf"],["nz-icon","","nzType","loading",4,"ngIf","ngIfElse"],[4,"nzStringTemplateOutlet"],["nz-icon","","nzType","loading"],[4,"ngIf","ngIfElse"],["nz-icon","","nzType","down",4,"ngIf"],["nz-icon","","nzType","search",4,"ngIf"],["nz-icon","","nzType","down"],["nz-icon","","nzType","search"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"]],template:function(J,W){if(1&J&&t.DNE(0,Tn,3,2,"ng-container",2)(1,Jn,1,0,"span",3)(2,Xe,3,2,"ng-template",null,0,t.C5r)(4,ke,2,1,"ng-container",4),2&J){const _e=t.sdS(3);t.Y8G("ngIf",W.isMaxTagCountSet),t.R7$(),t.Y8G("ngIf",W.loading)("ngIfElse",_e),t.R7$(3),t.Y8G("nzStringTemplateOutlet",W.feedbackIcon)}},dependencies:[Pe.Y3,Pe.Dn,I.bT,Q.C,Q.m],encapsulation:2,changeDetection:0})}return V})(),lt=(()=>{class V{constructor(){this.clearIcon=null,this.clear=new t.bkB}onClick(Ce){Ce.preventDefault(),Ce.stopPropagation(),this.clear.emit(Ce)}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(J,W){1&J&&t.bIt("click",function(it){return W.onClick(it)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},standalone:!0,features:[t.aNF],decls:1,vars:2,consts:[["nz-icon","","nzType","close-circle","nzTheme","fill","class","ant-select-close-icon",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(J,W){1&J&&t.DNE(0,q,1,0,"span",0),2&J&&t.Y8G("ngIf",!W.clearIcon)("ngIfElse",W.clearIcon)},dependencies:[Pe.Y3,Pe.Dn,I.bT],encapsulation:2,changeDetection:0})}return V})(),de=(()=>{class V{constructor(){this.disabled=!1,this.label=null,this.deletable=!1,this.removeIcon=null,this.contentTemplateOutletContext=null,this.contentTemplateOutlet=null,this.delete=new t.bkB}onDelete(Ce){Ce.preventDefault(),Ce.stopPropagation(),this.disabled||this.delete.next(Ce)}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(J,W){2&J&&(t.BMQ("title",W.label),t.AVh("ant-select-selection-item-disabled",W.disabled))},inputs:{disabled:"disabled",label:"label",deletable:"deletable",removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},standalone:!0,features:[t.aNF],decls:2,vars:5,consts:[["labelTemplate",""],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["class","ant-select-selection-item-remove",3,"click",4,"ngIf"],["class","ant-select-selection-item-content",4,"ngIf","ngIfElse"],[1,"ant-select-selection-item-content"],[1,"ant-select-selection-item-remove",3,"click"],["nz-icon","","nzType","close",4,"ngIf","ngIfElse"],["nz-icon","","nzType","close"]],template:function(J,W){1&J&&t.DNE(0,Qe,4,2,"ng-container",1)(1,Kt,2,2,"span",2),2&J&&(t.Y8G("nzStringTemplateOutlet",W.contentTemplateOutlet)("nzStringTemplateOutletContext",t.eq3(3,G,W.contentTemplateOutletContext)),t.R7$(),t.Y8G("ngIf",W.deletable&&!W.disabled))},dependencies:[Q.C,Q.m,I.bT,Pe.Y3,Pe.Dn],encapsulation:2,changeDetection:0})}return V})(),Oe=(()=>{class V{constructor(){this.placeholder=null}static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(J,W){1&J&&t.DNE(0,fn,2,1,"ng-container",0),2&J&&t.Y8G("nzStringTemplateOutlet",W.placeholder)},dependencies:[Q.C,Q.m],encapsulation:2,changeDetection:0})}return V})(),zt=(()=>{class V{setCompositionState(Ce){this.isComposingChange.next(Ce)}onValueChange(Ce){this.value=Ce,this.valueChange.next(Ce),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){this.inputElement.nativeElement.value="",this.onValueChange("")}syncMirrorWidth(){const Ce=this.mirrorElement.nativeElement,J=this.elementRef.nativeElement,W=this.inputElement.nativeElement;this.renderer.removeStyle(J,"width"),this.renderer.setProperty(Ce,"textContent",`${W.value}\xa0`),this.renderer.setStyle(J,"width",`${Ce.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(Ce,J,W){this.elementRef=Ce,this.renderer=J,this.focusMonitor=W,this.nzId=null,this.disabled=!1,this.mirrorSync=!1,this.showInput=!0,this.focusTrigger=!1,this.value="",this.autofocus=!1,this.valueChange=new t.bkB,this.isComposingChange=new t.bkB}ngOnChanges(Ce){const J=this.inputElement.nativeElement,{focusTrigger:W,showInput:_e}=Ce;_e&&(this.showInput?this.renderer.removeAttribute(J,"readonly"):this.renderer.setAttribute(J,"readonly","readonly")),W&&!0===W.currentValue&&!1===W.previousValue&&J.focus()}ngAfterViewInit(){this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()}static#e=this.\u0275fac=function(J){return new(J||V)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(se.FN))};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-select-search"]],viewQuery:function(J,W){if(1&J&&(t.GBs(In,7),t.GBs(Kn,5)),2&J){let _e;t.mGM(_e=t.lsd())&&(W.inputElement=_e.first),t.mGM(_e=t.lsd())&&(W.mirrorElement=_e.first)}},hostAttrs:[1,"ant-select-selection-search"],inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},standalone:!0,features:[t.Jv_([{provide:M.mP,useValue:!1}]),t.OA$,t.aNF],decls:3,vars:7,consts:[["inputElement",""],["mirrorElement",""],["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModelChange","compositionstart","compositionend","ngModel","disabled"],["class","ant-select-selection-search-mirror",4,"ngIf"],[1,"ant-select-selection-search-mirror"]],template:function(J,W){if(1&J){const _e=t.RV6();t.j41(0,"input",2,0),t.bIt("ngModelChange",function(dt){return t.eBV(_e),t.Njj(W.onValueChange(dt))})("compositionstart",function(){return t.eBV(_e),t.Njj(W.setCompositionState(!0))})("compositionend",function(){return t.eBV(_e),t.Njj(W.setCompositionState(!1))}),t.k0s(),t.DNE(2,Gn,2,0,"span",3)}2&J&&(t.xc7("opacity",W.showInput?null:0),t.Y8G("ngModel",W.value)("disabled",W.disabled),t.BMQ("id",W.nzId)("autofocus",W.autofocus?"autofocus":null),t.R7$(2),t.Y8G("ngIf",W.mirrorSync))},dependencies:[M.YN,M.me,M.BC,M.vS,I.bT],encapsulation:2,changeDetection:0})}return V})(),Ze=(()=>{class V{updateTemplateVariable(){const Ce=0===this.listOfTopItem.length;this.isShowPlaceholder=Ce&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!Ce&&!this.isComposing&&!this.inputValue}isComposingChange(Ce){this.isComposing=Ce,this.updateTemplateVariable()}onInputValueChange(Ce){Ce!==this.inputValue&&(this.inputValue=Ce,this.updateTemplateVariable(),this.inputValueChange.emit(Ce),this.tokenSeparate(Ce,this.tokenSeparators))}tokenSeparate(Ce,J){if(Ce&&Ce.length&&J.length&&"default"!==this.mode&&((it,dt)=>{for(let Ht=0;Ht0)return!0;return!1})(Ce,J)){const it=((it,dt)=>{const Ht=new RegExp(`[${dt.join()}]`),dn=it.split(Ht).filter(wn=>wn);return[...new Set(dn)]})(Ce,J);this.tokenize.next(it)}}clearInputValue(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.clearInputValue()}focus(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.focus()}blur(){this.nzSelectSearchComponent&&this.nzSelectSearchComponent.blur()}trackValue(Ce,J){return J.nzValue}onDeleteItem(Ce){!this.disabled&&!Ce.nzDisabled&&this.deleteItem.next(Ce)}constructor(Ce,J,W){this.elementRef=Ce,this.ngZone=J,this.noAnimation=W,this.nzId=null,this.showSearch=!1,this.placeHolder=null,this.open=!1,this.maxTagCount=1/0,this.autofocus=!1,this.disabled=!1,this.mode="default",this.customTemplate=null,this.maxTagPlaceholder=null,this.removeIcon=null,this.listOfTopItem=[],this.tokenSeparators=[],this.tokenize=new t.bkB,this.inputValueChange=new t.bkB,this.deleteItem=new t.bkB,this.listOfSlicedItem=[],this.isShowPlaceholder=!0,this.isShowSingleLabel=!1,this.isComposing=!1,this.inputValue=null,this.destroy$=new r.B}ngOnChanges(Ce){const{listOfTopItem:J,maxTagCount:W,customTemplate:_e,maxTagPlaceholder:it}=Ce;if(J&&this.updateTemplateVariable(),J||W||_e||it){const dt=this.listOfTopItem.slice(0,this.maxTagCount).map(Ht=>({nzLabel:Ht.nzLabel,nzValue:Ht.nzValue,nzDisabled:Ht.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:Ht}));if(this.listOfTopItem.length>this.maxTagCount){const Ht=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,dn=this.listOfTopItem.map(si=>si.nzValue),wn={nzLabel:Ht,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:dn.slice(this.maxTagCount)};dt.push(wn)}this.listOfSlicedItem=dt}}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.elementRef.nativeElement,"click").pipe((0,N.Q)(this.destroy$)).subscribe(Ce=>{Ce.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),(0,m.R)(this.elementRef.nativeElement,"keydown").pipe((0,N.Q)(this.destroy$)).subscribe(Ce=>{Ce.target instanceof HTMLInputElement&&Ce.keyCode===pe.G_&&"default"!==this.mode&&!Ce.target.value&&this.listOfTopItem.length>0&&(Ce.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))})})}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(J){return new(J||V)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(D.z,9))};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-select-top-control"]],viewQuery:function(J,W){if(1&J&&t.GBs(zt,5),2&J){let _e;t.mGM(_e=t.lsd())&&(W.nzSelectSearchComponent=_e.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:[2,"maxTagCount","maxTagCount",t.Udg],autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"placeholder",4,"ngIf"],[3,"isComposingChange","valueChange","nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext",4,"ngIf"],[3,"deletable","disabled","removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[3,"removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext","delete",4,"ngFor","ngForOf","ngForTrackBy"],[3,"isComposingChange","valueChange","nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger"],[3,"delete","removeIcon","label","disabled","contentTemplateOutlet","deletable","contentTemplateOutletContext"],[3,"placeholder"]],template:function(J,W){1&J&&(t.qex(0,0),t.DNE(1,Nn,3,8,"ng-container",1)(2,Jt,3,9,"ng-container",2),t.bVm(),t.DNE(3,An,1,1,"nz-select-placeholder",3)),2&J&&(t.Y8G("ngSwitch",W.mode),t.R7$(),t.Y8G("ngSwitchCase","default"),t.R7$(2),t.Y8G("ngIf",W.isShowPlaceholder))},dependencies:[I.ux,zt,I.e1,de,I.bT,I.fG,I.pM,Oe],encapsulation:2,changeDetection:0})}return V})();const Ne=(V,Ve)=>!(!Ve||!Ve.nzLabel)&&Ve.nzLabel.toString().toLowerCase().indexOf(V.toLowerCase())>-1;let Y=(()=>{class V{set nzShowArrow(Ce){this._nzShowArrow=Ce}get nzShowArrow(){return void 0===this._nzShowArrow?"default"===this.nzMode:this._nzShowArrow}get isMaxTagCountSet(){return this.nzMaxMultipleCount!==1/0}generateTagItem(Ce){return{nzValue:Ce,nzLabel:Ce,type:"item"}}onItemClick(Ce){if(this.activatedValue=Ce,"default"===this.nzMode)(0===this.listOfValue.length||!this.compareWith(this.listOfValue[0],Ce))&&this.updateListOfValue([Ce]),this.setOpenState(!1);else{const J=this.listOfValue.findIndex(W=>this.compareWith(W,Ce));if(-1!==J){const W=this.listOfValue.filter((_e,it)=>it!==J);this.updateListOfValue(W)}else if(this.listOfValue.length!this.compareWith(W,Ce.nzValue));this.updateListOfValue(J),this.clearInput()}updateListOfContainerItem(){let Ce=this.listOfTagAndTemplateItem.filter(_e=>!_e.nzHide).filter(_e=>!(!this.nzServerSearch&&this.searchValue)||this.nzFilterOption(this.searchValue,_e));if("tags"===this.nzMode&&this.searchValue){const _e=this.listOfTagAndTemplateItem.find(it=>it.nzLabel===this.searchValue);if(_e)this.activatedValue=_e.nzValue;else{const it=this.generateTagItem(this.searchValue);Ce=[it,...Ce],this.activatedValue=it.nzValue}}const J=Ce.find(_e=>_e.nzLabel===this.searchValue)||Ce.find(_e=>this.compareWith(_e.nzValue,this.activatedValue))||Ce.find(_e=>this.compareWith(_e.nzValue,this.listOfValue[0]))||Ce[0];this.activatedValue=J&&J.nzValue||null;let W=[];this.isReactiveDriven?W=[...new Set(this.nzOptions.filter(_e=>_e.groupLabel).map(_e=>_e.groupLabel))]:this.listOfNzOptionGroupComponent&&(W=this.listOfNzOptionGroupComponent.map(_e=>_e.nzLabel)),W.forEach(_e=>{const it=Ce.findIndex(dt=>_e===dt.groupLabel);it>-1&&Ce.splice(it,0,{groupLabel:_e,type:"group",key:_e})}),this.listOfContainerItem=[...Ce],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(Ce){const W=((_e,it)=>"default"===this.nzMode?_e.length>0?_e[0]:null:_e)(Ce);this.value!==W&&(this.listOfValue=Ce,this.listOfValue$.next(Ce),this.value=W,this.onChange(this.value)),this.isMaxLimitReached=this.nzMaxMultipleCount!==1/0&&this.listOfValue.length===this.nzMaxMultipleCount}onTokenSeparate(Ce){const J=this.listOfTagAndTemplateItem.filter(W=>-1!==Ce.findIndex(_e=>_e===W.nzLabel)).map(W=>W.nzValue).filter(W=>-1===this.listOfValue.findIndex(_e=>this.compareWith(_e,W)));if("multiple"===this.nzMode)this.updateListOfValue([...this.listOfValue,...J]);else if("tags"===this.nzMode){const W=Ce.filter(_e=>-1===this.listOfTagAndTemplateItem.findIndex(it=>it.nzLabel===_e));this.updateListOfValue([...this.listOfValue,...J,...W])}this.clearInput()}onKeyDown(Ce){if(this.nzDisabled)return;const J=this.listOfContainerItem.filter(_e=>"item"===_e.type).filter(_e=>!_e.nzDisabled),W=J.findIndex(_e=>this.compareWith(_e.nzValue,this.activatedValue));switch(Ce.keyCode){case pe.i7:Ce.preventDefault(),this.nzOpen&&J.length>0&&(this.activatedValue=J[W>0?W-1:J.length-1].nzValue);break;case pe.n6:Ce.preventDefault(),this.nzOpen&&J.length>0?this.activatedValue=J[W{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,Ce!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){(0,A.j)(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}constructor(Ce,J,W,_e,it,dt,Ht,dn,wn,si,Cn,ni){this.ngZone=Ce,this.destroy$=J,this.nzConfigService=W,this.cdr=_e,this.host=it,this.renderer=dt,this.platform=Ht,this.focusMonitor=dn,this.directionality=wn,this.noAnimation=si,this.nzFormStatusService=Cn,this.nzFormNoStatusService=ni,this._nzModuleName="select",this.nzId=null,this.nzSize="default",this.nzStatus="",this.nzOptionHeightPx=32,this.nzOptionOverflowSize=8,this.nzDropdownClassName=null,this.nzDropdownMatchSelectWidth=!0,this.nzDropdownStyle=null,this.nzNotFoundContent=void 0,this.nzPlaceHolder=null,this.nzPlacement=null,this.nzMaxTagCount=1/0,this.nzDropdownRender=null,this.nzCustomTemplate=null,this.nzSuffixIcon=null,this.nzClearIcon=null,this.nzRemoveIcon=null,this.nzMenuItemSelectedIcon=null,this.nzTokenSeparators=[],this.nzMaxTagPlaceholder=null,this.nzMaxMultipleCount=1/0,this.nzMode="default",this.nzFilterOption=Ne,this.compareWith=(ui,Ni)=>ui===Ni,this.nzAllowClear=!1,this.nzBorderless=!1,this.nzShowSearch=!1,this.nzLoading=!1,this.nzAutoFocus=!1,this.nzAutoClearSearchValue=!0,this.nzServerSearch=!1,this.nzDisabled=!1,this.nzOpen=!1,this.nzSelectOnTab=!1,this.nzBackdrop=!1,this.nzOptions=[],this.nzOnSearch=new t.bkB,this.nzScrollToBottom=new t.bkB,this.nzOpenChange=new t.bkB,this.nzBlur=new t.bkB,this.nzFocus=new t.bkB,this.listOfValue$=new e.t([]),this.listOfTemplateItem$=new e.t([]),this.listOfTagAndTemplateItem=[],this.searchValue="",this.isReactiveDriven=!1,this.requestId=-1,this.isNzDisableFirstChange=!0,this.onChange=()=>{},this.onTouched=()=>{},this.dropDownPosition="bottomLeft",this.triggerWidth=null,this.listOfContainerItem=[],this.listOfTopItem=[],this.activatedValue=null,this.listOfValue=[],this.focused=!1,this.dir="ltr",this.positions=[],this.isMaxLimitReached=!1,this.prefixCls="ant-select",this.statusCls={},this.status="",this.hasFeedback=!1}writeValue(Ce){if(this.value!==Ce){this.value=Ce;const W=((_e,it)=>null==_e?[]:"default"===this.nzMode?[_e]:_e)(Ce);this.listOfValue=W,this.listOfValue$.next(W),this.cdr.markForCheck()}}registerOnChange(Ce){this.onChange=Ce}registerOnTouched(Ce){this.onTouched=Ce}setDisabledState(Ce){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||Ce,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges(Ce){const{nzOpen:J,nzDisabled:W,nzOptions:_e,nzStatus:it,nzPlacement:dt}=Ce;if(J&&this.onOpenChange(),W&&this.nzDisabled&&this.setOpenState(!1),_e){this.isReactiveDriven=!0;const dn=(this.nzOptions||[]).map(wn=>({template:wn.label instanceof t.C4Q?wn.label:null,nzTitle:this.getTitle(wn.title,wn.label),nzLabel:"string"==typeof wn.label||"number"==typeof wn.label?wn.label:null,nzValue:wn.value,nzDisabled:wn.disabled||!1,nzHide:wn.hide||!1,nzCustomContent:wn.label instanceof t.C4Q,groupLabel:wn.groupLabel||null,type:"item",key:void 0===wn.key?wn.value:wn.key}));this.listOfTemplateItem$.next(dn)}if(it&&this.setStatusStyles(this.nzStatus,this.hasFeedback),dt){const{currentValue:Ht}=dt;this.dropDownPosition=Ht;const dn=["bottomLeft","topLeft","bottomRight","topRight"];this.positions=Ht&&dn.includes(Ht)?[w.pn[Ht]]:dn.map(wn=>w.pn[wn])}}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe((0,oe.F)((Ce,J)=>Ce.status===J.status&&Ce.hasFeedback===J.hasFeedback),(0,ee.E)(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:(0,z.of)(!1)),(0,Ee.T)(([{status:Ce,hasFeedback:J},W])=>({status:W?"":Ce,hasFeedback:J})),(0,N.Q)(this.destroy$)).subscribe(({status:Ce,hasFeedback:J})=>{this.setStatusStyles(Ce,J)}),this.focusMonitor.monitor(this.host,!0).pipe((0,N.Q)(this.destroy$)).subscribe(Ce=>{Ce?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),(0,j.z)([this.listOfValue$,this.listOfTemplateItem$]).pipe((0,N.Q)(this.destroy$)).subscribe(([Ce,J])=>{const W=Ce.filter(()=>"tags"===this.nzMode).filter(_e=>-1===J.findIndex(it=>this.compareWith(it.nzValue,_e))).map(_e=>this.listOfTopItem.find(it=>this.compareWith(it.nzValue,_e))||this.generateTagItem(_e));this.listOfTagAndTemplateItem=[...J,...W],this.listOfTopItem=this.listOfValue.map(_e=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(it=>this.compareWith(_e,it.nzValue))).filter(_e=>!!_e),this.updateListOfContainerItem()}),this.directionality.change?.pipe((0,N.Q)(this.destroy$)).subscribe(Ce=>{this.dir=Ce,this.cdr.detectChanges()}),this.nzConfigService.getConfigChangeEventForComponent("select").pipe((0,N.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()}),this.dir=this.directionality.value,this.ngZone.runOutsideAngular(()=>(0,m.R)(this.host.nativeElement,"click").pipe((0,N.Q)(this.destroy$)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))})),this.cdkConnectedOverlay.overlayKeydown.pipe((0,N.Q)(this.destroy$)).subscribe(Ce=>{Ce.keyCode===pe._f&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||(0,R.h)(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe((0,x.Z)(!0),(0,Ie.n)(()=>(0,R.h)(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(Ce=>Ce.changes),...this.listOfNzOptionGroupComponent.map(Ce=>Ce.changes)).pipe((0,x.Z)(!0))),(0,N.Q)(this.destroy$)).subscribe(()=>{const Ce=this.listOfNzOptionComponent.toArray().map(J=>{const{template:W,nzLabel:_e,nzValue:it,nzKey:dt,nzDisabled:Ht,nzHide:dn,nzCustomContent:wn,groupLabel:si}=J;return{template:W,nzLabel:_e,nzValue:it,nzDisabled:Ht,nzHide:dn,nzCustomContent:wn,groupLabel:si,nzTitle:this.getTitle(J.nzTitle,J.nzLabel),type:"item",key:void 0===dt?it:dt}});this.listOfTemplateItem$.next(Ce),this.cdr.markForCheck()})}ngOnDestroy(){(0,A.F)(this.requestId),this.focusMonitor.stopMonitoring(this.host)}setStatusStyles(Ce,J){this.status=Ce,this.hasFeedback=J,this.cdr.markForCheck(),this.statusCls=(0,X.LP)(this.prefixCls,Ce,J),Object.keys(this.statusCls).forEach(W=>{this.statusCls[W]?this.renderer.addClass(this.host.nativeElement,W):this.renderer.removeClass(this.host.nativeElement,W)})}getTitle(Ce,J){let W;return void 0===Ce?("string"==typeof J||"number"==typeof J)&&(W=J.toString()):("string"==typeof Ce||"number"==typeof Ce)&&(W=Ce.toString()),W}static#e=this.\u0275fac=function(J){return new(J||V)(t.rXU(t.SKi),t.rXU(ce.y4),t.rXU(ge.yx),t.rXU(t.gRc),t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(U.OD),t.rXU(se.FN),t.rXU(je.dS,8),t.rXU(D.z,9),t.rXU(T.is,8),t.rXU(T.n1,8))};static#t=this.\u0275cmp=t.VBU({type:V,selectors:[["nz-select"]],contentQueries:function(J,W,_e){if(1&J&&(t.wni(_e,ct,5),t.wni(_e,et,5)),2&J){let it;t.mGM(it=t.lsd())&&(W.listOfNzOptionComponent=it),t.mGM(it=t.lsd())&&(W.listOfNzOptionGroupComponent=it)}},viewQuery:function(J,W){if(1&J&&(t.GBs($.$Q,7,t.aKT),t.GBs($.WB,7),t.GBs(Ze,7),t.GBs(et,7,t.aKT),t.GBs(Ze,7,t.aKT)),2&J){let _e;t.mGM(_e=t.lsd())&&(W.originElement=_e.first),t.mGM(_e=t.lsd())&&(W.cdkConnectedOverlay=_e.first),t.mGM(_e=t.lsd())&&(W.nzSelectTopControlComponent=_e.first),t.mGM(_e=t.lsd())&&(W.nzOptionGroupComponentElement=_e.first),t.mGM(_e=t.lsd())&&(W.nzSelectTopControlComponentElement=_e.first)}},hostAttrs:[1,"ant-select"],hostVars:26,hostBindings:function(J,W){2&J&&t.AVh("ant-select-in-form-item",!!W.nzFormStatusService)("ant-select-lg","large"===W.nzSize)("ant-select-sm","small"===W.nzSize)("ant-select-show-arrow",W.nzShowArrow)("ant-select-disabled",W.nzDisabled)("ant-select-show-search",(W.nzShowSearch||"default"!==W.nzMode)&&!W.nzDisabled)("ant-select-allow-clear",W.nzAllowClear)("ant-select-borderless",W.nzBorderless)("ant-select-open",W.nzOpen)("ant-select-focused",W.nzOpen||W.focused)("ant-select-single","default"===W.nzMode)("ant-select-multiple","default"!==W.nzMode)("ant-select-rtl","rtl"===W.dir)},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:"nzMaxMultipleCount",nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:[2,"nzAllowClear","nzAllowClear",t.L39],nzBorderless:[2,"nzBorderless","nzBorderless",t.L39],nzShowSearch:[2,"nzShowSearch","nzShowSearch",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",t.L39],nzAutoClearSearchValue:[2,"nzAutoClearSearchValue","nzAutoClearSearchValue",t.L39],nzServerSearch:[2,"nzServerSearch","nzServerSearch",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzOpen:[2,"nzOpen","nzOpen",t.L39],nzSelectOnTab:[2,"nzSelectOnTab","nzSelectOnTab",t.L39],nzBackdrop:[2,"nzBackdrop","nzBackdrop",t.L39],nzOptions:"nzOptions",nzShowArrow:[2,"nzShowArrow","nzShowArrow",t.L39]},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus"},exportAs:["nzSelect"],standalone:!0,features:[t.Jv_([ce.y4,{provide:M.kq,useExisting:(0,t.Rfq)(()=>V),multi:!0}]),t.GFd,t.OA$,t.aNF],decls:5,vars:25,consts:[["origin","cdkOverlayOrigin"],["feedbackIconTpl",""],["cdkOverlayOrigin","",3,"inputValueChange","tokenize","deleteItem","keydown","nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxTagCountSet",4,"ngIf"],[3,"clearIcon","clear",4,"ngIf"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxTagCountSet"],[3,"status",4,"ngIf"],[3,"status"],[3,"clear","clearIcon"],[3,"keydown","itemClick","scrollToBottom","ngStyle","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","isMaxLimitReached"]],template:function(J,W){if(1&J){const _e=t.RV6();t.j41(0,"nz-select-top-control",2,0),t.bIt("inputValueChange",function(dt){return t.eBV(_e),t.Njj(W.onInputValueChange(dt))})("tokenize",function(dt){return t.eBV(_e),t.Njj(W.onTokenSeparate(dt))})("deleteItem",function(dt){return t.eBV(_e),t.Njj(W.onItemDelete(dt))})("keydown",function(dt){return t.eBV(_e),t.Njj(W.onKeyDown(dt))}),t.k0s(),t.DNE(2,ae,3,8,"nz-select-arrow",3)(3,ie,1,1,"nz-select-clear",4)(4,re,1,24,"ng-template",5),t.bIt("overlayOutsideClick",function(dt){return t.eBV(_e),t.Njj(W.onClickOutside(dt))})("detach",function(){return t.eBV(_e),t.Njj(W.setOpenState(!1))})("positionChange",function(dt){return t.eBV(_e),t.Njj(W.onPositionChange(dt))})}if(2&J){const _e=t.sdS(1);t.Y8G("nzId",W.nzId)("open",W.nzOpen)("disabled",W.nzDisabled)("mode",W.nzMode)("@.disabled",!(null==W.noAnimation||!W.noAnimation.nzNoAnimation))("nzNoAnimation",null==W.noAnimation?null:W.noAnimation.nzNoAnimation)("maxTagPlaceholder",W.nzMaxTagPlaceholder)("removeIcon",W.nzRemoveIcon)("placeHolder",W.nzPlaceHolder)("maxTagCount",W.nzMaxTagCount)("customTemplate",W.nzCustomTemplate)("tokenSeparators",W.nzTokenSeparators)("showSearch",W.nzShowSearch)("autofocus",W.nzAutoFocus)("listOfTopItem",W.listOfTopItem),t.R7$(2),t.Y8G("ngIf",W.nzShowArrow||W.hasFeedback&&!!W.status||W.isMaxTagCountSet),t.R7$(),t.Y8G("ngIf",W.nzAllowClear&&!W.nzDisabled&&W.listOfValue.length),t.R7$(),t.Y8G("cdkConnectedOverlayHasBackdrop",W.nzBackdrop)("cdkConnectedOverlayMinWidth",W.nzDropdownMatchSelectWidth?null:W.triggerWidth)("cdkConnectedOverlayWidth",W.nzDropdownMatchSelectWidth?W.triggerWidth:null)("cdkConnectedOverlayOrigin",_e)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",W.nzDropdownClassName)("cdkConnectedOverlayOpen",W.nzOpen)("cdkConnectedOverlayPositions",W.positions)}},dependencies:[Ze,$.$Q,D.z,Se,I.bT,T.J1,T.Xd,lt,$.WB,w.$_,w.vT,Rt,I.B3],encapsulation:2,data:{animation:[te.U1]},changeDetection:0})}return(0,ve.Cg)([(0,ge.H4)()],V.prototype,"nzOptionHeightPx",void 0),(0,ve.Cg)([(0,ge.H4)()],V.prototype,"nzSuffixIcon",void 0),(0,ve.Cg)([(0,ge.H4)()],V.prototype,"nzBorderless",void 0),(0,ve.Cg)([(0,ge.H4)()],V.prototype,"nzBackdrop",void 0),V})(),le=(()=>{class V{static#e=this.\u0275fac=function(J){return new(J||V)};static#t=this.\u0275mod=t.$C({type:V});static#n=this.\u0275inj=t.G2t({imports:[Y,Rt,mt,Ze,zt,de,lt,Se,Oe,_t]})}return V})()},1912:($t,De,a)=>{a.d(De,{Bi:()=>ce,i3:()=>Pe});var t=a(177),r=a(3953),m=a(317);const z=["nzType","avatar"],$=["*"];function k(ve,pe){if(1&ve&&(r.j41(0,"div",5),r.nrm(1,"nz-skeleton-element",6),r.k0s()),2&ve){const U=r.XpG(2);r.R7$(),r.Y8G("nzSize",U.avatar.size||"default")("nzShape",U.avatar.shape||"circle")}}function I(ve,pe){if(1&ve&&r.nrm(0,"h3",7),2&ve){const U=r.XpG(2);r.xc7("width",U.toCSSUnit(U.title.width))}}function w(ve,pe){if(1&ve&&r.nrm(0,"li"),2&ve){const U=pe.index,M=r.XpG(3);r.xc7("width",M.toCSSUnit(M.widthList[U]))}}function P(ve,pe){if(1&ve&&(r.j41(0,"ul",8),r.DNE(1,w,1,2,"li",9),r.k0s()),2&ve){const U=r.XpG(2);r.R7$(),r.Y8G("ngForOf",U.rowsList)}}function Q(ve,pe){if(1&ve&&(r.qex(0),r.DNE(1,k,2,2,"div",1),r.j41(2,"div",2),r.DNE(3,I,1,2,"h3",3)(4,P,2,1,"ul",4),r.k0s(),r.bVm()),2&ve){const U=r.XpG();r.R7$(),r.Y8G("ngIf",!!U.nzAvatar),r.R7$(2),r.Y8G("ngIf",!!U.nzTitle),r.R7$(),r.Y8G("ngIf",!!U.nzParagraph)}}function N(ve,pe){1&ve&&(r.qex(0),r.SdG(1),r.bVm())}let x=(()=>{class ve{constructor(){this.nzActive=!1,this.nzBlock=!1}static#e=this.\u0275fac=function(M){return new(M||ve)};static#t=this.\u0275dir=r.FsC({type:ve,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(M,te){2&M&&r.AVh("ant-skeleton-active",te.nzActive)("ant-skeleton-block",te.nzBlock)},inputs:{nzActive:[2,"nzActive","nzActive",r.L39],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",r.L39]},standalone:!0,features:[r.GFd]})}return ve})(),ee=(()=>{class ve{constructor(){this.nzShape="circle",this.nzSize="default",this.styleMap={}}ngOnChanges(U){if(U.nzSize&&"number"==typeof this.nzSize){const M=`${this.nzSize}px`;this.styleMap={width:M,height:M,"line-height":M}}else this.styleMap={}}static#e=this.\u0275fac=function(M){return new(M||ve)};static#t=this.\u0275cmp=r.VBU({type:ve,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},standalone:!0,features:[r.OA$,r.aNF],attrs:z,decls:1,vars:9,consts:[[1,"ant-skeleton-avatar",3,"ngStyle"]],template:function(M,te){1&M&&r.nrm(0,"span",0),2&M&&(r.AVh("ant-skeleton-avatar-square","square"===te.nzShape)("ant-skeleton-avatar-circle","circle"===te.nzShape)("ant-skeleton-avatar-lg","large"===te.nzSize)("ant-skeleton-avatar-sm","small"===te.nzSize),r.Y8G("ngStyle",te.styleMap))},dependencies:[t.B3],encapsulation:2,changeDetection:0})}return ve})(),ce=(()=>{class ve{constructor(U){this.cdr=U,this.nzActive=!1,this.nzLoading=!0,this.nzRound=!1,this.nzTitle=!0,this.nzAvatar=!1,this.nzParagraph=!0,this.rowsList=[],this.widthList=[]}toCSSUnit(U=""){return(0,m.j3)(U)}getTitleProps(){const U=!!this.nzAvatar,M=!!this.nzParagraph;let te="";return!U&&M?te="38%":U&&M&&(te="50%"),{width:te,...this.getProps(this.nzTitle)}}getAvatarProps(){return{shape:this.nzTitle&&!this.nzParagraph?"square":"circle",size:"large",...this.getProps(this.nzAvatar)}}getParagraphProps(){const U=!!this.nzAvatar,M=!!this.nzTitle,te={};return(!U||!M)&&(te.width="61%"),te.rows=!U&&M?3:2,{...te,...this.getProps(this.nzParagraph)}}getProps(U){return U&&"object"==typeof U?U:{}}getWidthList(){const{width:U,rows:M}=this.paragraph;let te=[];return U&&Array.isArray(U)?te=U:U&&!Array.isArray(U)&&(te=[],te[M-1]=U),te}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(U){(U.nzTitle||U.nzAvatar||U.nzParagraph)&&this.updateProps()}static#e=this.\u0275fac=function(M){return new(M||ve)(r.rXU(r.gRc))};static#t=this.\u0275cmp=r.VBU({type:ve,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(M,te){2&M&&r.AVh("ant-skeleton-with-avatar",!!te.nzAvatar)("ant-skeleton-active",te.nzActive)("ant-skeleton-round",!!te.nzRound)},inputs:{nzActive:"nzActive",nzLoading:"nzLoading",nzRound:"nzRound",nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],standalone:!0,features:[r.OA$,r.aNF],ngContentSelectors:$,decls:2,vars:2,consts:[[4,"ngIf"],["class","ant-skeleton-header",4,"ngIf"],[1,"ant-skeleton-content"],["class","ant-skeleton-title",3,"width",4,"ngIf"],["class","ant-skeleton-paragraph",4,"ngIf"],[1,"ant-skeleton-header"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[1,"ant-skeleton-paragraph"],[3,"width",4,"ngFor","ngForOf"]],template:function(M,te){1&M&&(r.NAR(),r.DNE(0,Q,5,3,"ng-container",0)(1,N,2,0,"ng-container",0)),2&M&&(r.Y8G("ngIf",te.nzLoading),r.R7$(),r.Y8G("ngIf",!te.nzLoading))},dependencies:[x,ee,t.bT,t.Sq],encapsulation:2,changeDetection:0})}return ve})(),Pe=(()=>{class ve{static#e=this.\u0275fac=function(M){return new(M||ve)};static#t=this.\u0275mod=r.$C({type:ve});static#n=this.\u0275inj=r.G2t({})}return ve})()},7685:($t,De,a)=>{a.d(De,{Dq:()=>P,U5:()=>x,pc:()=>oe});var t=a(3953),r=a(4707),m=a(177),e=a(1413),z=a(6977),j=a(6042);const R=["*"],$=ee=>({$implicit:ee});function k(ee,Ee){}function I(ee,Ee){if(1&ee&&(t.j41(0,"span",4),t.DNE(1,k,0,0,"ng-template",5),t.k0s()),2&ee){const Ie=t.XpG(),ce=Ie.last,Pe=Ie.index,ve=t.XpG();t.xc7("margin-bottom","vertical"===ve.nzDirection?ce?null:ve.spaceSize:null,"px")("margin-right","horizontal"===ve.nzDirection?ce?null:ve.spaceSize:null,"px"),t.R7$(),t.Y8G("ngTemplateOutlet",ve.nzSplit)("ngTemplateOutletContext",t.eq3(6,$,Pe))}}function w(ee,Ee){if(1&ee&&(t.j41(0,"div",1),t.eu8(1,2),t.k0s(),t.DNE(2,I,2,8,"span",3)),2&ee){const Ie=Ee.$implicit,ce=Ee.last,Pe=t.XpG();t.xc7("margin-bottom","vertical"===Pe.nzDirection?ce?null:Pe.spaceSize:null,"px")("margin-right","horizontal"===Pe.nzDirection?ce?null:Pe.spaceSize:null,"px"),t.R7$(),t.Y8G("ngTemplateOutlet",Ie),t.R7$(),t.Y8G("ngIf",Pe.nzSplit&&!ce)}}let P=(()=>{class ee{constructor(){}static#e=this.\u0275fac=function(ce){return new(ce||ee)};static#t=this.\u0275dir=t.FsC({type:ee,selectors:[["","nzSpaceItem",""]],standalone:!0})}return ee})();const N={small:8,middle:16,large:24};let x=(()=>{class ee{constructor(Ie,ce){this.nzConfigService=Ie,this.cdr=ce,this._nzModuleName="space",this.nzDirection="horizontal",this.nzSplit=null,this.nzWrap=!1,this.nzSize="small",this.spaceSize=N.small,this.destroy$=new e.B}updateSpaceItems(){this.spaceSize=("string"==typeof this.nzSize?N[this.nzSize]:this.nzSize)/(this.nzSplit?2:1),this.cdr.markForCheck()}ngOnChanges(){this.updateSpaceItems(),this.mergedAlign=void 0===this.nzAlign&&"horizontal"===this.nzDirection?"center":this.nzAlign}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngAfterContentInit(){this.updateSpaceItems(),this.items.changes.pipe((0,z.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}static#e=this.\u0275fac=function(ce){return new(ce||ee)(t.rXU(j.yx),t.rXU(t.gRc))};static#t=this.\u0275cmp=t.VBU({type:ee,selectors:[["nz-space"],["","nz-space",""]],contentQueries:function(ce,Pe,ve){if(1&ce&&t.wni(ve,P,4,t.C4Q),2&ce){let pe;t.mGM(pe=t.lsd())&&(Pe.items=pe)}},hostAttrs:[1,"ant-space"],hostVars:14,hostBindings:function(ce,Pe){2&ce&&(t.xc7("flex-wrap",Pe.nzWrap?"wrap":null),t.AVh("ant-space-horizontal","horizontal"===Pe.nzDirection)("ant-space-vertical","vertical"===Pe.nzDirection)("ant-space-align-start","start"===Pe.mergedAlign)("ant-space-align-end","end"===Pe.mergedAlign)("ant-space-align-center","center"===Pe.mergedAlign)("ant-space-align-baseline","baseline"===Pe.mergedAlign))},inputs:{nzDirection:"nzDirection",nzAlign:"nzAlign",nzSplit:"nzSplit",nzWrap:[2,"nzWrap","nzWrap",t.L39],nzSize:"nzSize"},exportAs:["NzSpace"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:R,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],[1,"ant-space-item"],[3,"ngTemplateOutlet"],["class","ant-space-split",3,"margin-bottom","margin-right",4,"ngIf"],[1,"ant-space-split"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(ce,Pe){1&ce&&(t.NAR(),t.SdG(0),t.DNE(1,w,3,6,"ng-template",0)),2&ce&&(t.R7$(),t.Y8G("ngForOf",Pe.items))},dependencies:[m.T3,m.bT,m.Sq],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,j.H4)()],ee.prototype,"nzSize",void 0),ee})(),oe=(()=>{class ee{static#e=this.\u0275fac=function(ce){return new(ce||ee)};static#t=this.\u0275mod=t.$C({type:ee});static#n=this.\u0275inj=t.G2t({})}return ee})()},2983:($t,De,a)=>{a.d(De,{a:()=>te,V:()=>ge});var t=a(4707),r=a(177),m=a(3953),e=a(1413),z=a(4412),j=a(2771),R=a(1584),$=a(9172),k=a(3294),I=a(5558),w=a(9974),P=a(5343),Q=a(4360),N=a(8750),oe=a(6977),ee=a(6042),Ee=a(8203);const Ie=["*"];function ce(T,D){1&T&&(m.j41(0,"span",3),m.nrm(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),m.k0s())}function Pe(T,D){}function ve(T,D){if(1&T&&(m.j41(0,"div",8),m.EFF(1),m.k0s()),2&T){const A=m.XpG(2);m.R7$(),m.JRh(A.nzTip)}}function pe(T,D){if(1&T&&(m.j41(0,"div")(1,"div",5),m.DNE(2,Pe,0,0,"ng-template",6)(3,ve,2,1,"div",7),m.k0s()()),2&T){const A=m.XpG(),X=m.sdS(1);m.R7$(),m.AVh("ant-spin-rtl","rtl"===A.dir)("ant-spin-spinning",A.isLoading)("ant-spin-lg","large"===A.nzSize)("ant-spin-sm","small"===A.nzSize)("ant-spin-show-text",A.nzTip),m.R7$(),m.Y8G("ngTemplateOutlet",A.nzIndicator||X),m.R7$(),m.Y8G("ngIf",A.nzTip)}}function U(T,D){if(1&T&&(m.j41(0,"div",9),m.SdG(1),m.k0s()),2&T){const A=m.XpG();m.AVh("ant-spin-blur",A.isLoading)}}const M="spin";let te=(()=>{class T{constructor(A,X,se){this.nzConfigService=A,this.cdr=X,this.directionality=se,this._nzModuleName=M,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new e.B,this.spinning$=new z.t(this.nzSpinning),this.delay$=new j.m(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){this.delay$.pipe((0,$.Z)(this.nzDelay),(0,k.F)(),(0,I.n)(X=>0===X?this.spinning$:this.spinning$.pipe(function x(T){return(0,w.N)((D,A)=>{let X=!1,se=null,je=null;const Bt=()=>{if(je?.unsubscribe(),je=null,X){X=!1;const Tt=se;se=null,A.next(Tt)}};D.subscribe((0,Q._)(A,Tt=>{je?.unsubscribe(),X=!0,se=Tt,je=(0,Q._)(A,Bt,P.l),(0,N.Tg)(T(Tt)).subscribe(je)},()=>{Bt(),A.complete()},void 0,()=>{se=je=null}))})}(se=>(0,R.O)(se?X:0)))),(0,oe.Q)(this.destroy$)).subscribe(X=>{this.isLoading=X,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(M).pipe((0,oe.Q)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),this.directionality.change?.pipe((0,oe.Q)(this.destroy$)).subscribe(X=>{this.dir=X,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(A){const{nzSpinning:X,nzDelay:se}=A;X&&this.spinning$.next(this.nzSpinning),se&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(X){return new(X||T)(m.rXU(ee.yx),m.rXU(m.gRc),m.rXU(Ee.dS,8))};static#t=this.\u0275cmp=m.VBU({type:T,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(X,se){2&X&&m.AVh("ant-spin-nested-loading",!se.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",m.Udg],nzSimple:[2,"nzSimple","nzSimple",m.L39],nzSpinning:[2,"nzSpinning","nzSpinning",m.L39]},exportAs:["nzSpin"],standalone:!0,features:[m.GFd,m.OA$,m.aNF],ngContentSelectors:Ie,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(X,se){1&X&&(m.NAR(),m.DNE(0,ce,5,0,"ng-template",null,0,m.C5r)(2,pe,4,12,"div",1)(3,U,2,2,"div",2)),2&X&&(m.R7$(2),m.Y8G("ngIf",se.isLoading),m.R7$(),m.Y8G("ngIf",!se.nzSimple))},dependencies:[r.bT,r.T3],encapsulation:2})}return(0,t.Cg)([(0,ee.H4)()],T.prototype,"nzIndicator",void 0),T})(),ge=(()=>{class T{static#e=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275mod=m.$C({type:T});static#n=this.\u0275inj=m.G2t({})}return T})()},9247:($t,De,a)=>{a.d(De,{jc:()=>wo,OL:()=>_i,Kg:()=>jn,SO:()=>ki,CP:()=>$o,$G:()=>_s,CC:()=>Vo,aj:()=>Er,GM:()=>go,Cc:()=>_o,_4:()=>yo,oZ:()=>Yn,IL:()=>Ro,kt:()=>cs});var t=a(3953),r=a(4707),m=a(3726),e=a(1413),z=a(2771),j=a(4412),R=a(4572),$=a(7786),k=a(983),I=a(7673),w=a(6977),P=a(6354),Q=a(3294),N=a(152),x=a(5245),oe=a(5964),ee=a(5558),Ee=a(9172),Ie=a(1986),ce=a(1397),Pe=a(6042),ve=a(1025),pe=a(2602),U=a(177),M=a(9417),te=a(513),ge=a(2986),T=a(317),D=a(5103),A=a(3190),X=a(6914),se=a(1868),je=a(6389),Bt=a(5930),Tt=a(946),Vt=a(1672),He=a(5979),xt=a(6860),Lt=a(1997),ft=a(8203);const St=["nz-pagination-item",""],kt=(nt,Un)=>({$implicit:nt,page:Un});function It(nt,Un){if(1&nt&&(t.j41(0,"a"),t.EFF(1),t.k0s()),2&nt){const me=t.XpG().page;t.R7$(),t.JRh(me)}}function rn(nt,Un){1&nt&&t.nrm(0,"span",4)}function en(nt,Un){1&nt&&t.nrm(0,"span",5)}function Xt(nt,Un){if(1&nt&&(t.j41(0,"button",2),t.DNE(1,rn,1,0,"span",4)(2,en,1,0,"span",5),t.k0s()),2&nt){const me=t.XpG(2);t.Y8G("disabled",me.disabled),t.BMQ("title",me.locale.prev_page),t.R7$(),t.vxM("rtl"===me.direction?1:2)}}function Tn(nt,Un){1&nt&&t.nrm(0,"span",5)}function Jn(nt,Un){1&nt&&t.nrm(0,"span",4)}function Dn(nt,Un){if(1&nt&&(t.j41(0,"button",2),t.DNE(1,Tn,1,0,"span",5)(2,Jn,1,0,"span",4),t.k0s()),2&nt){const me=t.XpG(2);t.Y8G("disabled",me.disabled),t.BMQ("title",me.locale.next_page),t.R7$(),t.vxM("rtl"===me.direction?1:2)}}function Mt(nt,Un){1&nt&&t.nrm(0,"span",8)}function Ut(nt,Un){1&nt&&t.nrm(0,"span",9)}function wt(nt,Un){if(1&nt&&t.DNE(0,Mt,1,0,"span",8)(1,Ut,1,0,"span",9),2&nt){const me=t.XpG(3);t.vxM("rtl"===me.direction?0:1)}}function Ft(nt,Un){1&nt&&t.nrm(0,"span",9)}function Qt(nt,Un){1&nt&&t.nrm(0,"span",8)}function Xe(nt,Un){if(1&nt&&t.DNE(0,Ft,1,0,"span",9)(1,Qt,1,0,"span",8),2&nt){const me=t.XpG(3);t.vxM("rtl"===me.direction?0:1)}}function ke(nt,Un){if(1&nt&&(t.j41(0,"a",3)(1,"div",6),t.DNE(2,wt,2,1)(3,Xe,2,1),t.j41(4,"span",7),t.EFF(5,"\u2022\u2022\u2022"),t.k0s()()()),2&nt){let me;const qe=t.XpG().$implicit;t.R7$(2),t.vxM("prev_5"===(me=qe)?2:"next_5"===me?3:-1)}}function q(nt,Un){if(1&nt&&t.DNE(0,It,2,1,"a")(1,Xt,3,3,"button",2)(2,Dn,3,3,"button",2)(3,ke,6,1,"a",3),2&nt){let me;t.vxM("page"===(me=Un.$implicit)?0:"prev"===me?1:"next"===me?2:3)}}function G(nt,Un){}const H=["nz-pagination-options",""],ze=(nt,Un)=>Un.value;function Qe(nt,Un){if(1&nt&&t.nrm(0,"nz-option",3),2&nt){const me=Un.$implicit;t.Y8G("nzLabel",me.label)("nzValue",me.value)}}function ht(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"nz-select",2),t.bIt("ngModelChange",function(gt){t.eBV(me);const pn=t.XpG();return t.Njj(pn.onPageSizeChange(gt))}),t.Z7z(1,Qe,1,2,"nz-option",3,ze),t.k0s()}if(2&nt){const me=t.XpG();t.Y8G("nzDisabled",me.disabled)("nzSize",me.nzSize)("ngModel",me.pageSize),t.R7$(),t.Dyx(me.listOfPageSizeOption)}}function Kt(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"div",1),t.EFF(1),t.j41(2,"input",4),t.bIt("keydown.enter",function(gt){t.eBV(me);const pn=t.XpG();return t.Njj(pn.jumpToPageViaInput(gt))}),t.k0s(),t.EFF(3),t.k0s()}if(2&nt){const me=t.XpG();t.R7$(),t.SpI(" ",me.locale.jump_to," "),t.R7$(),t.Y8G("disabled",me.disabled),t.R7$(),t.SpI(" ",me.locale.page," ")}}const fn=["containerTemplate"],In=(nt,Un)=>({$implicit:nt,range:Un});function Kn(nt,Un){}function Gn(nt,Un){if(1&nt&&(t.j41(0,"li",1),t.DNE(1,Kn,0,0,"ng-template",4),t.k0s()),2&nt){const me=t.XpG(2);t.R7$(),t.Y8G("ngTemplateOutlet",me.showTotal)("ngTemplateOutletContext",t.l_i(2,In,me.total,me.ranges))}}function $n(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"li",5),t.bIt("gotoIndex",function(gt){t.eBV(me);const pn=t.XpG(2);return t.Njj(pn.jumpPage(gt))})("diffIndex",function(gt){t.eBV(me);const pn=t.XpG(2);return t.Njj(pn.jumpDiff(gt))}),t.k0s()}if(2&nt){const me=Un.$implicit,qe=t.XpG(2);t.Y8G("locale",qe.locale)("type",me.type)("index",me.index)("disabled",!!me.disabled)("itemRender",qe.itemRender)("active",qe.pageIndex===me.index)("direction",qe.dir)}}function Nn(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"li",6),t.bIt("pageIndexChange",function(gt){t.eBV(me);const pn=t.XpG(2);return t.Njj(pn.onPageIndexChange(gt))})("pageSizeChange",function(gt){t.eBV(me);const pn=t.XpG(2);return t.Njj(pn.onPageSizeChange(gt))}),t.k0s()}if(2&nt){const me=t.XpG(2);t.Y8G("total",me.total)("locale",me.locale)("disabled",me.disabled)("nzSize",me.nzSize)("showSizeChanger",me.showSizeChanger)("showQuickJumper",me.showQuickJumper)("pageIndex",me.pageIndex)("pageSize",me.pageSize)("pageSizeOptions",me.pageSizeOptions)}}function vn(nt,Un){if(1&nt&&(t.j41(0,"ul"),t.DNE(1,Gn,2,5,"li",1),t.Z7z(2,$n,1,7,"li",2,t.BUC().trackByPageItem,!0),t.DNE(4,Nn,1,9,"li",3),t.k0s()),2&nt){const me=t.XpG();t.R7$(),t.vxM(me.showTotal?1:-1),t.R7$(),t.Dyx(me.listOfPageItem),t.R7$(2),t.vxM(me.showQuickJumper||me.showSizeChanger?4:-1)}}function Jt(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"ul")(1,"li",1),t.bIt("click",function(){t.eBV(me);const gt=t.XpG();return t.Njj(gt.prePage())}),t.k0s(),t.j41(2,"li",2)(3,"input",3),t.bIt("keydown.enter",function(gt){t.eBV(me);const pn=t.XpG();return t.Njj(pn.jumpToPageViaInput(gt))}),t.k0s(),t.j41(4,"span",4),t.EFF(5,"/"),t.k0s(),t.EFF(6),t.k0s(),t.j41(7,"li",5),t.bIt("click",function(){t.eBV(me);const gt=t.XpG();return t.Njj(gt.nextPage())}),t.k0s()()}if(2&nt){const me=t.XpG();t.R7$(),t.Y8G("locale",me.locale)("disabled",me.isFirstIndex)("direction",me.dir)("itemRender",me.itemRender),t.BMQ("title",me.locale.prev_page),t.R7$(),t.BMQ("title",me.pageIndex+"/"+me.lastIndex),t.R7$(),t.Y8G("disabled",me.disabled)("value",me.pageIndex),t.R7$(3),t.SpI(" ",me.lastIndex," "),t.R7$(),t.Y8G("locale",me.locale)("disabled",me.isLastIndex)("direction",me.dir)("itemRender",me.itemRender),t.BMQ("title",null==me.locale?null:me.locale.next_page)}}function An(nt,Un){}function Yt(nt,Un){if(1&nt&&t.DNE(0,An,0,0,"ng-template",4),2&nt){t.XpG(2);const me=t.sdS(2);t.Y8G("ngTemplateOutlet",me.template)}}function Je(nt,Un){}function ae(nt,Un){if(1&nt&&t.DNE(0,Je,0,0,"ng-template",4),2&nt){t.XpG(2);const me=t.sdS(4);t.Y8G("ngTemplateOutlet",me.template)}}function ie(nt,Un){if(1&nt&&t.DNE(0,Yt,1,1,null,4)(1,ae,1,1,null,4),2&nt){const me=t.XpG();t.vxM(me.nzSimple?0:1)}}let re=(()=>{class nt{constructor(){this.active=!1,this.index=null,this.disabled=!1,this.direction="ltr",this.type=null,this.itemRender=null,this.diffIndex=new t.bkB,this.gotoIndex=new t.bkB,this.title=null}clickItem(){this.disabled||("page"===this.type?this.gotoIndex.emit(this.index):this.diffIndex.emit({next:1,prev:-1,prev_5:-5,next_5:5}[this.type]))}ngOnChanges(me){const{locale:qe,index:gt,type:pn}=me;(qe||gt||pn)&&(this.title={page:`${this.index}`,next:this.locale?.next_page,prev:this.locale?.prev_page,prev_5:this.locale?.prev_5,next_5:this.locale?.next_5}[this.type])}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["li","nz-pagination-item",""]],hostVars:19,hostBindings:function(qe,gt){1&qe&&t.bIt("click",function(){return gt.clickItem()}),2&qe&&(t.BMQ("title",gt.title),t.AVh("ant-pagination-prev","prev"===gt.type)("ant-pagination-next","next"===gt.type)("ant-pagination-item","page"===gt.type)("ant-pagination-jump-prev","prev_5"===gt.type)("ant-pagination-jump-prev-custom-icon","prev_5"===gt.type)("ant-pagination-jump-next","next_5"===gt.type)("ant-pagination-jump-next-custom-icon","next_5"===gt.type)("ant-pagination-disabled",gt.disabled)("ant-pagination-item-active",gt.active))},inputs:{active:"active",locale:"locale",index:"index",disabled:"disabled",direction:"direction",type:"type",itemRender:"itemRender"},outputs:{diffIndex:"diffIndex",gotoIndex:"gotoIndex"},standalone:!0,features:[t.OA$,t.aNF],attrs:St,decls:3,vars:5,consts:[["renderItemTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",1,"ant-pagination-item-link",3,"disabled"],[1,"ant-pagination-item-link"],["nz-icon","","nzType","right"],["nz-icon","","nzType","left"],[1,"ant-pagination-item-container"],[1,"ant-pagination-item-ellipsis"],["nz-icon","","nzType","double-right",1,"ant-pagination-item-link-icon"],["nz-icon","","nzType","double-left",1,"ant-pagination-item-link-icon"]],template:function(qe,gt){if(1&qe&&t.DNE(0,q,4,1,"ng-template",null,0,t.C5r)(2,G,0,0,"ng-template",1),2&qe){const pn=t.sdS(1);t.R7$(2),t.Y8G("ngTemplateOutlet",gt.itemRender||pn)("ngTemplateOutletContext",t.l_i(2,kt,gt.type,gt.index))}},dependencies:[D.Y3,D.Dn,U.T3],encapsulation:2,changeDetection:0})}return nt})(),et=(()=>{class nt{constructor(){this.nzSize="default",this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[],this.pageIndexChange=new t.bkB,this.pageSizeChange=new t.bkB,this.listOfPageSizeOption=[]}onPageSizeChange(me){this.pageSize!==me&&this.pageSizeChange.next(me)}jumpToPageViaInput(me){const qe=me.target,gt=Math.floor((0,T.Ro)(qe.value,this.pageIndex));this.pageIndexChange.next(gt),qe.value=""}ngOnChanges(me){const{pageSize:qe,pageSizeOptions:gt,locale:pn}=me;(qe||gt||pn)&&(this.listOfPageSizeOption=[...new Set([...this.pageSizeOptions,this.pageSize])].map(ei=>({value:ei,label:`${ei} ${this.locale.items_per_page}`})))}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["li","nz-pagination-options",""]],hostAttrs:[1,"ant-pagination-options"],inputs:{nzSize:"nzSize",disabled:"disabled",showSizeChanger:"showSizeChanger",showQuickJumper:"showQuickJumper",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},standalone:!0,features:[t.OA$,t.aNF],attrs:H,decls:2,vars:2,consts:[[1,"ant-pagination-options-size-changer",3,"nzDisabled","nzSize","ngModel"],[1,"ant-pagination-options-quick-jumper"],[1,"ant-pagination-options-size-changer",3,"ngModelChange","nzDisabled","nzSize","ngModel"],[3,"nzLabel","nzValue"],[3,"keydown.enter","disabled"]],template:function(qe,gt){1&qe&&t.DNE(0,ht,3,3,"nz-select",0)(1,Kt,4,3,"div",1),2&qe&&(t.vxM(gt.showSizeChanger?0:-1),t.R7$(),t.vxM(gt.showQuickJumper?1:-1))},dependencies:[Lt.DH,Lt.ld,Lt.WI,M.YN,M.BC,M.vS],encapsulation:2,changeDetection:0})}return nt})(),_t=(()=>{class nt{constructor(me,qe,gt,pn){this.cdr=me,this.renderer=qe,this.elementRef=gt,this.directionality=pn,this.nzSize="default",this.itemRender=null,this.showTotal=null,this.disabled=!1,this.showSizeChanger=!1,this.showQuickJumper=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageSizeOptions=[10,20,30,40],this.pageIndexChange=new t.bkB,this.pageSizeChange=new t.bkB,this.ranges=[0,0],this.listOfPageItem=[],this.dir="ltr",this.destroy$=new e.B,qe.removeChild(qe.parentNode(gt.nativeElement),gt.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,w.Q)(this.destroy$)).subscribe(me=>{this.dir=me,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpPage(me){this.onPageIndexChange(me)}jumpDiff(me){this.jumpPage(this.pageIndex+me)}trackByPageItem(me,qe){return`${qe.type}-${qe.index}`}onPageIndexChange(me){this.pageIndexChange.next(me)}onPageSizeChange(me){this.pageSizeChange.next(me)}getLastIndex(me,qe){return Math.ceil(me/qe)}buildIndexes(){const me=this.getLastIndex(this.total,this.pageSize);this.listOfPageItem=this.getListOfPageItem(this.pageIndex,me)}getListOfPageItem(me,qe){const pn=(ei,ti)=>{const wi=[];for(let Zi=ei;Zi<=ti;Zi++)wi.push({index:Zi,type:"page"});return wi};return ei=qe<=9?pn(1,qe):((ti,wi)=>{let Zi=[];const No={type:"prev_5"},bi={type:"next_5"},Do=pn(1,1),Ho=pn(qe,qe);return Zi=ti<5?[...pn(2,4===ti?6:5),bi]:ti{class nt{constructor(me,qe,gt,pn){this.cdr=me,this.renderer=qe,this.elementRef=gt,this.directionality=pn,this.itemRender=null,this.disabled=!1,this.total=0,this.pageIndex=1,this.pageSize=10,this.pageIndexChange=new t.bkB,this.lastIndex=0,this.isFirstIndex=!1,this.isLastIndex=!1,this.dir="ltr",this.destroy$=new e.B,qe.removeChild(qe.parentNode(gt.nativeElement),gt.nativeElement)}ngOnInit(){this.directionality.change?.pipe((0,w.Q)(this.destroy$)).subscribe(me=>{this.dir=me,this.updateRtlStyle(),this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateRtlStyle()}updateRtlStyle(){"rtl"===this.dir?this.renderer.addClass(this.elementRef.nativeElement,"ant-pagination-rtl"):this.renderer.removeClass(this.elementRef.nativeElement,"ant-pagination-rtl")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}jumpToPageViaInput(me){const qe=me.target,gt=(0,T.Ro)(qe.value,this.pageIndex);this.onPageIndexChange(gt),qe.value=`${this.pageIndex}`}prePage(){this.onPageIndexChange(this.pageIndex-1)}nextPage(){this.onPageIndexChange(this.pageIndex+1)}onPageIndexChange(me){this.pageIndexChange.next(me)}updateBindingValue(){this.lastIndex=Math.ceil(this.total/this.pageSize),this.isFirstIndex=1===this.pageIndex,this.isLastIndex=this.pageIndex===this.lastIndex}ngOnChanges(me){const{pageIndex:qe,total:gt,pageSize:pn}=me;(qe||gt||pn)&&this.updateBindingValue()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.gRc),t.rXU(t.sFG),t.rXU(t.aKT),t.rXU(ft.dS,8))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-pagination-simple"]],viewQuery:function(qe,gt){if(1&qe&&t.GBs(fn,7),2&qe){let pn;t.mGM(pn=t.lsd())&&(gt.template=pn.first)}},inputs:{itemRender:"itemRender",disabled:"disabled",locale:"locale",total:"total",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:0,consts:[["containerTemplate",""],["nz-pagination-item","","type","prev",3,"click","locale","disabled","direction","itemRender"],[1,"ant-pagination-simple-pager"],["size","3",3,"keydown.enter","disabled","value"],[1,"ant-pagination-slash"],["nz-pagination-item","","type","next",3,"click","locale","disabled","direction","itemRender"]],template:function(qe,gt){1&qe&&t.DNE(0,Jt,8,14,"ng-template",null,0,t.C5r)},dependencies:[re],encapsulation:2,changeDetection:0})}return nt})(),ct=(()=>{class nt{validatePageIndex(me,qe){return me>qe?qe:me<1?1:me}onPageIndexChange(me){const qe=this.getLastIndex(this.nzTotal,this.nzPageSize),gt=this.validatePageIndex(me,qe);gt!==this.nzPageIndex&&!this.nzDisabled&&(this.nzPageIndex=gt,this.nzPageIndexChange.emit(this.nzPageIndex))}onPageSizeChange(me){this.nzPageSize=me,this.nzPageSizeChange.emit(me);const qe=this.getLastIndex(this.nzTotal,this.nzPageSize);this.nzPageIndex>qe&&this.onPageIndexChange(qe)}onTotalChange(me){const qe=this.getLastIndex(me,this.nzPageSize);this.nzPageIndex>qe&&Promise.resolve().then(()=>{this.onPageIndexChange(qe),this.cdr.markForCheck()})}getLastIndex(me,qe){return Math.ceil(me/qe)}constructor(me,qe,gt,pn,ei){this.i18n=me,this.cdr=qe,this.breakpointService=gt,this.nzConfigService=pn,this.directionality=ei,this._nzModuleName="pagination",this.nzPageSizeChange=new t.bkB,this.nzPageIndexChange=new t.bkB,this.nzShowTotal=null,this.nzItemRender=null,this.nzSize="default",this.nzPageSizeOptions=[10,20,30,40],this.nzShowSizeChanger=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzDisabled=!1,this.nzResponsive=!1,this.nzHideOnSinglePage=!1,this.nzTotal=0,this.nzPageIndex=1,this.nzPageSize=10,this.showPagination=!0,this.size="default",this.dir="ltr",this.destroy$=new e.B,this.total$=new z.m(1)}ngOnInit(){this.i18n.localeChange.pipe((0,w.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Pagination"),this.cdr.markForCheck()}),this.total$.pipe((0,w.Q)(this.destroy$)).subscribe(me=>{this.onTotalChange(me)}),this.breakpointService.subscribe(ve.fe).pipe((0,w.Q)(this.destroy$)).subscribe(me=>{this.nzResponsive&&(this.size=me===ve.pt.xs?"small":"default",this.cdr.markForCheck())}),this.directionality.change?.pipe((0,w.Q)(this.destroy$)).subscribe(me=>{this.dir=me,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(me){const{nzHideOnSinglePage:qe,nzTotal:gt,nzPageSize:pn,nzSize:ei}=me;gt&&this.total$.next(this.nzTotal),(qe||gt||pn)&&(this.showPagination=this.nzHideOnSinglePage&&this.nzTotal>this.nzPageSize||this.nzTotal>0&&!this.nzHideOnSinglePage),ei&&(this.size=ei.currentValue)}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(X.Og),t.rXU(t.gRc),t.rXU(ve.jp),t.rXU(Pe.yx),t.rXU(ft.dS,8))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-pagination"]],hostAttrs:[1,"ant-pagination"],hostVars:8,hostBindings:function(qe,gt){2&qe&&t.AVh("ant-pagination-simple",gt.nzSimple)("ant-pagination-disabled",gt.nzDisabled)("ant-pagination-mini",!gt.nzSimple&&"small"===gt.size)("ant-pagination-rtl","rtl"===gt.dir)},inputs:{nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzSize:"nzSize",nzPageSizeOptions:"nzPageSizeOptions",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",t.L39],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",t.L39],nzSimple:[2,"nzSimple","nzSimple",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzResponsive:[2,"nzResponsive","nzResponsive",t.L39],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",t.L39],nzTotal:[2,"nzTotal","nzTotal",t.Udg],nzPageIndex:[2,"nzPageIndex","nzPageIndex",t.Udg],nzPageSize:[2,"nzPageSize","nzPageSize",t.Udg]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange"},exportAs:["nzPagination"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],decls:5,vars:18,consts:[["simplePagination",""],["defaultPagination",""],[3,"pageIndexChange","disabled","itemRender","locale","pageSize","total","pageIndex"],[3,"pageIndexChange","pageSizeChange","nzSize","itemRender","showTotal","disabled","locale","showSizeChanger","showQuickJumper","total","pageIndex","pageSize","pageSizeOptions"],[3,"ngTemplateOutlet"]],template:function(qe,gt){if(1&qe){const pn=t.RV6();t.DNE(0,ie,2,1),t.j41(1,"nz-pagination-simple",2,0),t.bIt("pageIndexChange",function(ti){return t.eBV(pn),t.Njj(gt.onPageIndexChange(ti))}),t.k0s(),t.j41(3,"nz-pagination-default",3,1),t.bIt("pageIndexChange",function(ti){return t.eBV(pn),t.Njj(gt.onPageIndexChange(ti))})("pageSizeChange",function(ti){return t.eBV(pn),t.Njj(gt.onPageSizeChange(ti))}),t.k0s()}2&qe&&(t.vxM(gt.showPagination?0:-1),t.R7$(),t.Y8G("disabled",gt.nzDisabled)("itemRender",gt.nzItemRender)("locale",gt.locale)("pageSize",gt.nzPageSize)("total",gt.nzTotal)("pageIndex",gt.nzPageIndex),t.R7$(2),t.Y8G("nzSize",gt.size)("itemRender",gt.nzItemRender)("showTotal",gt.nzShowTotal)("disabled",gt.nzDisabled)("locale",gt.locale)("showSizeChanger",gt.nzShowSizeChanger)("showQuickJumper",gt.nzShowQuickJumper)("total",gt.nzTotal)("pageIndex",gt.nzPageIndex)("pageSize",gt.nzPageSize)("pageSizeOptions",gt.nzPageSizeOptions))},dependencies:[U.T3,mt,_t],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzSize",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzPageSizeOptions",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzShowSizeChanger",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzShowQuickJumper",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzSimple",void 0),nt})(),Se=(()=>{class nt{static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275mod=t.$C({type:nt});static#n=this.\u0275inj=t.G2t({imports:[ct,mt,et,re,_t]})}return nt})();var lt=a(2983),de=a(7806);const Oe=["*"],zt=(nt,Un)=>Un.value;function Ze(nt,Un){}function Ne(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"label",14),t.bIt("ngModelChange",function(){t.eBV(me);const gt=t.XpG().$implicit,pn=t.XpG(2);return t.Njj(pn.check(gt))}),t.k0s()}if(2&nt){const me=t.XpG().$implicit;t.Y8G("ngModel",me.checked)}}function Le(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"label",15),t.bIt("ngModelChange",function(){t.eBV(me);const gt=t.XpG().$implicit,pn=t.XpG(2);return t.Njj(pn.check(gt))}),t.k0s()}if(2&nt){const me=t.XpG().$implicit;t.Y8G("ngModel",me.checked)}}function Y(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"li",11),t.bIt("click",function(){const gt=t.eBV(me).$implicit,pn=t.XpG(2);return t.Njj(pn.check(gt))}),t.DNE(1,Ne,1,1,"label",12)(2,Le,1,1,"label",13),t.j41(3,"span"),t.EFF(4),t.k0s()()}if(2&nt){const me=Un.$implicit,qe=t.XpG(2);t.Y8G("nzSelected",me.checked),t.R7$(),t.vxM(qe.filterMultiple?2:1),t.R7$(3),t.JRh(me.text)}}function le(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"nz-filter-trigger",3),t.bIt("nzVisibleChange",function(gt){t.eBV(me);const pn=t.XpG();return t.Njj(pn.onVisibleChange(gt))}),t.nrm(1,"span",4),t.k0s(),t.j41(2,"nz-dropdown-menu",null,0)(4,"div",5)(5,"ul",6),t.Z7z(6,Y,5,3,"li",7,zt),t.k0s(),t.j41(8,"div",8)(9,"button",9),t.bIt("click",function(){t.eBV(me);const gt=t.XpG();return t.Njj(gt.reset())}),t.EFF(10),t.k0s(),t.j41(11,"button",10),t.bIt("click",function(){t.eBV(me);const gt=t.XpG();return t.Njj(gt.confirm())}),t.EFF(12),t.k0s()()()()}if(2&nt){const me=t.sdS(3),qe=t.XpG();t.Y8G("nzVisible",qe.isVisible)("nzActive",qe.isChecked)("nzDropdownMenu",me),t.R7$(6),t.Dyx(qe.listOfParsedFilter),t.R7$(3),t.Y8G("disabled",!qe.isChecked),t.R7$(),t.SpI(" ",qe.locale.filterReset," "),t.R7$(2),t.JRh(qe.locale.filterConfirm)}}function V(nt,Un){if(1&nt&&t.eu8(0,2),2&nt){const me=t.XpG();t.Y8G("ngTemplateOutlet",me.extraTemplate)}}function Ve(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"label",3),t.bIt("ngModelChange",function(gt){t.eBV(me);const pn=t.XpG();return t.Njj(pn.onCheckedChange(gt))}),t.k0s()}if(2&nt){const me=t.XpG();t.AVh("ant-table-selection-select-all-custom",me.showRowSelection),t.Y8G("ngModel",me.checked)("nzDisabled",me.disabled)("nzIndeterminate",me.indeterminate),t.BMQ("aria-label",me.label)}}function Ce(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"li",8),t.bIt("click",function(){const gt=t.eBV(me).$implicit;return t.Njj(gt.onSelect())}),t.EFF(1),t.k0s()}if(2&nt){const me=Un.$implicit;t.R7$(),t.SpI(" ",me.text," ")}}function J(nt,Un){if(1&nt&&(t.j41(0,"div",2)(1,"span",4),t.nrm(2,"span",5),t.k0s(),t.j41(3,"nz-dropdown-menu",null,0)(5,"ul",6),t.Z7z(6,Ce,2,1,"li",7,t.fX1),t.k0s()()()),2&nt){const me=t.sdS(4),qe=t.XpG();t.R7$(),t.Y8G("nzDropdownMenu",me),t.R7$(5),t.Dyx(qe.listOfSelections)}}function W(nt,Un){}function _e(nt,Un){if(1&nt&&t.nrm(0,"span",6),2&nt){const me=t.XpG();t.AVh("active","ascend"===me.sortOrder)}}function it(nt,Un){if(1&nt&&t.nrm(0,"span",7),2&nt){const me=t.XpG();t.AVh("active","descend"===me.sortOrder)}}const dt=["nzChecked",""];function Ht(nt,Un){}function dn(nt,Un){if(1&nt&&t.DNE(0,Ht,0,0,"ng-template",2),2&nt){const me=t.XpG(2);t.Y8G("ngTemplateOutlet",me.nzExpandIcon)}}function wn(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"button",4),t.bIt("expandChange",function(gt){t.eBV(me);const pn=t.XpG(2);return t.Njj(pn.onExpandChange(gt))}),t.k0s()}if(2&nt){const me=t.XpG(2);t.Y8G("expand",me.nzExpand)("spaceMode",!me.nzShowExpand)}}function si(nt,Un){if(1&nt&&(t.nrm(0,"nz-row-indent",1),t.DNE(1,dn,1,1,null,2)(2,wn,1,2,"button",3)),2&nt){const me=t.XpG();t.Y8G("indentSize",me.nzIndentSize),t.R7$(),t.vxM(me.nzExpandIcon?1:2)}}function Cn(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"label",5),t.bIt("ngModelChange",function(gt){t.eBV(me);const pn=t.XpG();return t.Njj(pn.onCheckedChange(gt))}),t.k0s()}if(2&nt){const me=t.XpG();t.Y8G("nzDisabled",me.nzDisabled)("ngModel",me.nzChecked)("nzIndeterminate",me.nzIndeterminate),t.BMQ("aria-label",me.nzLabel)}}const ni=["nzColumnKey",""],ui=[[["","nz-th-extra",""]],[["nz-filter-trigger"]],"*"],Ni=["[nz-th-extra]","nz-filter-trigger","*"];function Eo(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"nz-table-filter",6),t.bIt("filterChange",function(gt){t.eBV(me);const pn=t.XpG();return t.Njj(pn.onFilterValueChange(gt))}),t.k0s()}if(2&nt){const me=t.XpG(),qe=t.sdS(3),gt=t.sdS(5);t.Y8G("contentTemplate",qe)("extraTemplate",gt)("customFilter",me.nzCustomFilter)("filterMultiple",me.nzFilterMultiple)("listOfFilter",me.nzFilters)}}function lo(nt,Un){if(1&nt&&t.eu8(0,5),2&nt){t.XpG();const me=t.sdS(3);t.Y8G("ngTemplateOutlet",me)}}function $i(nt,Un){}function Ii(nt,Un){if(1&nt&&t.DNE(0,$i,0,0,"ng-template",5),2&nt){const me=t.XpG(),qe=t.sdS(7),gt=t.sdS(9);t.Y8G("ngTemplateOutlet",me.nzShowSort?qe:gt)}}function Nr(nt,Un){1&nt&&(t.SdG(0),t.SdG(1,1))}function pr(nt,Un){if(1&nt&&t.nrm(0,"nz-table-sorters",7),2&nt){const me=t.XpG(),qe=t.sdS(9);t.Y8G("sortOrder",me.sortOrder)("sortDirections",me.sortDirections)("contentTemplate",qe)}}function vt(nt,Un){1&nt&&t.SdG(0,2)}const Gt=["nzSelections",""],Pt=["nz-table-content",""];function Mn(nt,Un){if(1&nt&&t.nrm(0,"col"),2&nt){const me=Un.$implicit;t.xc7("width",me)("min-width",me)}}function En(nt,Un){}function ii(nt,Un){if(1&nt&&(t.j41(0,"thead",1),t.DNE(1,En,0,0,"ng-template",2),t.k0s()),2&nt){const me=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",me.theadTemplate)}}function Pn(nt,Un){}const Fn=["tdElement"],hi=["nz-table-fixed-row",""];function xi(nt,Un){}function Hi(nt,Un){if(1&nt&&(t.j41(0,"div",5),t.nI1(1,"async"),t.DNE(2,xi,0,0,"ng-template",4),t.k0s()),2&nt){const me=t.XpG(),qe=t.sdS(6);t.xc7("width",t.bMT(1,3,me.hostWidth$),"px"),t.R7$(2),t.Y8G("ngTemplateOutlet",qe)}}function Mi(nt,Un){}function gn(nt,Un){if(1&nt&&t.DNE(0,Mi,0,0,"ng-template",4),2&nt){t.XpG();const me=t.sdS(6);t.Y8G("ngTemplateOutlet",me)}}function Si(nt,Un){1&nt&&t.SdG(0)}const Ei=["nz-table-measure-row",""];function Ki(nt,Un){1&nt&&t.nrm(0,"td",1,0)}function Vi(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"tr",2),t.bIt("listOfAutoWidth",function(gt){t.eBV(me);const pn=t.XpG(2);return t.Njj(pn.onListOfAutoWidthChange(gt))}),t.k0s()}if(2&nt){const me=t.XpG();t.Y8G("listOfMeasureColumn",me)}}function qi(nt,Un){if(1&nt&&t.DNE(0,Vi,1,1,"tr",1),2&nt){const me=t.XpG();t.vxM(me.isInsideTable&&Un.length?0:-1)}}function Go(nt,Un){if(1&nt&&(t.j41(0,"tr",0),t.nrm(1,"nz-embed-empty",3),t.nI1(2,"async"),t.k0s()),2&nt){const me=t.XpG();t.R7$(),t.Y8G("specificContent",t.bMT(2,1,me.noResult$))}}const so=["tableHeaderElement"],tr=["tableBodyElement"],lr=(nt,Un)=>({$implicit:nt,index:Un});function zo(nt,Un){if(1&nt&&(t.j41(0,"div",5,1),t.nrm(2,"table",7),t.k0s()),2&nt){const me=t.XpG(2);t.Y8G("ngStyle",me.bodyStyleMap),t.R7$(2),t.Y8G("scrollX",me.scrollX)("listOfColWidth",me.listOfColWidth)("contentTemplate",me.contentTemplate)}}function Mo(nt,Un){}function br(nt,Un){if(1&nt&&(t.qex(0),t.DNE(1,Mo,0,0,"ng-template",11),t.bVm()),2&nt){const me=Un.$implicit,qe=Un.index,gt=t.XpG(3);t.R7$(),t.Y8G("ngTemplateOutlet",gt.virtualTemplate)("ngTemplateOutletContext",t.l_i(2,lr,me,qe))}}function Wo(nt,Un){if(1&nt&&(t.j41(0,"cdk-virtual-scroll-viewport",8,1)(2,"table",9)(3,"tbody"),t.DNE(4,br,2,5,"ng-container",10),t.k0s()()()),2&nt){const me=t.XpG(2);t.xc7("height",me.data.length?me.scrollY:me.noDataVirtualHeight),t.Y8G("itemSize",me.virtualItemSize)("maxBufferPx",me.virtualMaxBufferPx)("minBufferPx",me.virtualMinBufferPx),t.R7$(2),t.Y8G("scrollX",me.scrollX)("listOfColWidth",me.listOfColWidth),t.R7$(2),t.Y8G("cdkVirtualForOf",me.data)("cdkVirtualForTrackBy",me.virtualForTrackBy)}}function Zr(nt,Un){if(1&nt&&(t.j41(0,"div",3,0),t.nrm(2,"table",4),t.k0s(),t.DNE(3,zo,3,4,"div",5)(4,Wo,5,9,"cdk-virtual-scroll-viewport",6)),2&nt){const me=t.XpG();t.Y8G("ngStyle",me.headerStyleMap),t.R7$(2),t.Y8G("scrollX",me.scrollX)("listOfColWidth",me.listOfColWidth)("theadTemplate",me.theadTemplate),t.R7$(),t.vxM(me.virtualTemplate?4:3)}}function uo(nt,Un){if(1&nt&&(t.j41(0,"div",2,1),t.nrm(2,"table",12),t.k0s()),2&nt){const me=t.XpG();t.Y8G("ngStyle",me.bodyStyleMap),t.R7$(2),t.Y8G("scrollX",me.scrollX)("listOfColWidth",me.listOfColWidth)("theadTemplate",me.theadTemplate)("contentTemplate",me.contentTemplate)}}function Hn(nt,Un){if(1&nt&&(t.qex(0),t.EFF(1),t.bVm()),2&nt){const me=t.XpG();t.R7$(),t.JRh(me.title)}}function Pi(nt,Un){if(1&nt&&(t.qex(0),t.EFF(1),t.bVm()),2&nt){const me=t.XpG();t.R7$(),t.JRh(me.footer)}}function Tr(nt,Un){}function $r(nt,Un){if(1&nt&&t.DNE(0,Tr,0,0,"ng-template",4),2&nt){t.XpG();const me=t.sdS(10);t.Y8G("ngTemplateOutlet",me)}}function as(nt,Un){if(1&nt&&t.nrm(0,"nz-table-title-footer",6),2&nt){const me=t.XpG();t.Y8G("title",me.nzTitle)}}function Ko(nt,Un){if(1&nt&&t.nrm(0,"nz-table-inner-scroll",7),2&nt){const me=t.XpG(),qe=t.sdS(3),gt=t.sdS(12);t.Y8G("data",me.data)("scrollX",me.scrollX)("scrollY",me.scrollY)("contentTemplate",gt)("listOfColWidth",me.listOfAutoColWidth)("theadTemplate",me.theadTemplate)("verticalScrollBarWidth",me.verticalScrollBarWidth)("virtualTemplate",me.nzVirtualScrollDirective?me.nzVirtualScrollDirective.templateRef:null)("virtualItemSize",me.nzVirtualItemSize)("virtualMaxBufferPx",me.nzVirtualMaxBufferPx)("virtualMinBufferPx",me.nzVirtualMinBufferPx)("tableMainElement",qe)("virtualForTrackBy",me.nzVirtualForTrackBy)("noDataVirtualHeight",me.noDataVirtualHeight)}}function Fs(nt,Un){if(1&nt&&t.nrm(0,"nz-table-inner-default",8),2&nt){const me=t.XpG(),qe=t.sdS(12);t.Y8G("tableLayout",me.nzTableLayout)("listOfColWidth",me.listOfManualColWidth)("theadTemplate",me.theadTemplate)("contentTemplate",qe)}}function st(nt,Un){if(1&nt&&t.nrm(0,"nz-table-title-footer",9),2&nt){const me=t.XpG();t.Y8G("footer",me.nzFooter)}}function Te(nt,Un){}function $e(nt,Un){if(1&nt&&t.DNE(0,Te,0,0,"ng-template",4),2&nt){t.XpG();const me=t.sdS(10);t.Y8G("ngTemplateOutlet",me)}}function at(nt,Un){if(1&nt){const me=t.RV6();t.j41(0,"nz-pagination",11),t.bIt("nzPageSizeChange",function(gt){t.eBV(me);const pn=t.XpG(2);return t.Njj(pn.onPageSizeChange(gt))})("nzPageIndexChange",function(gt){t.eBV(me);const pn=t.XpG(2);return t.Njj(pn.onPageIndexChange(gt))}),t.k0s()}if(2&nt){const me=t.XpG(2);t.Y8G("hidden",!me.showPagination)("nzShowSizeChanger",me.nzShowSizeChanger)("nzPageSizeOptions",me.nzPageSizeOptions)("nzItemRender",me.nzItemRender)("nzShowQuickJumper",me.nzShowQuickJumper)("nzHideOnSinglePage",me.nzHideOnSinglePage)("nzShowTotal",me.nzShowTotal)("nzSize","small"===me.nzPaginationType?"small":"default"===me.nzSize?"default":"small")("nzPageSize",me.nzPageSize)("nzTotal",me.nzTotal)("nzSimple",me.nzSimple)("nzPageIndex",me.nzPageIndex)}}function At(nt,Un){if(1&nt&&t.DNE(0,at,1,12,"nz-pagination",10),2&nt){const me=t.XpG();t.vxM(me.nzShowPagination&&me.data.length?0:-1)}}function nn(nt,Un){1&nt&&t.SdG(0)}const ln=["contentTemplate"];function hn(nt,Un){1&nt&&t.SdG(0)}function xn(nt,Un){}function Rn(nt,Un){if(1&nt&&t.DNE(0,xn,0,0,"ng-template",1),2&nt){t.XpG();const me=t.sdS(1);t.Y8G("ngTemplateOutlet",me)}}let jn=(()=>{class nt{onVisibleChange(me){this.nzVisible=me,this.nzVisibleChange.next(me)}hide(){this.nzVisible=!1,this.cdr.markForCheck()}show(){this.nzVisible=!0,this.cdr.markForCheck()}constructor(me,qe,gt,pn){this.nzConfigService=me,this.ngZone=qe,this.cdr=gt,this.destroy$=pn,this._nzModuleName="filterTrigger",this.nzActive=!1,this.nzVisible=!1,this.nzBackdrop=!1,this.nzVisibleChange=new t.bkB}ngOnInit(){this.ngZone.runOutsideAngular(()=>{(0,m.R)(this.nzDropdown.nativeElement,"click").pipe((0,w.Q)(this.destroy$)).subscribe(me=>{me.stopPropagation()})})}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(Pe.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(ve.y4))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-filter-trigger"]],viewQuery:function(qe,gt){if(1&qe&&t.GBs(pe.j3,7,t.aKT),2&qe){let pn;t.mGM(pn=t.lsd())&&(gt.nzDropdown=pn.first)}},inputs:{nzActive:"nzActive",nzDropdownMenu:"nzDropdownMenu",nzVisible:"nzVisible",nzBackdrop:[2,"nzBackdrop","nzBackdrop",t.L39]},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzFilterTrigger"],standalone:!0,features:[t.Jv_([ve.y4]),t.GFd,t.aNF],ngContentSelectors:Oe,decls:2,vars:8,consts:[["nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",1,"ant-table-filter-trigger",3,"nzVisibleChange","nzBackdrop","nzClickHide","nzDropdownMenu","nzVisible"]],template:function(qe,gt){1&qe&&(t.NAR(),t.j41(0,"span",0),t.bIt("nzVisibleChange",function(ei){return gt.onVisibleChange(ei)}),t.SdG(1),t.k0s()),2&qe&&(t.AVh("active",gt.nzActive)("ant-table-filter-open",gt.nzVisible),t.Y8G("nzBackdrop",gt.nzBackdrop)("nzClickHide",!1)("nzDropdownMenu",gt.nzDropdownMenu)("nzVisible",gt.nzVisible))},dependencies:[pe.Cu,pe.j3],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzBackdrop",void 0),nt})(),oi=(()=>{class nt{check(me){this.filterMultiple?(this.listOfParsedFilter=this.listOfParsedFilter.map(qe=>qe===me?{...qe,checked:!me.checked}:qe),me.checked=!me.checked):this.listOfParsedFilter=this.listOfParsedFilter.map(qe=>({...qe,checked:qe===me})),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter)}confirm(){this.isVisible=!1,this.emitFilterData()}reset(){this.isVisible=!1,this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter,!0),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter),this.emitFilterData()}onVisibleChange(me){this.isVisible=me,me?this.listOfChecked=this.listOfParsedFilter.filter(qe=>qe.checked).map(qe=>qe.value):this.emitFilterData()}emitFilterData(){const me=this.listOfParsedFilter.filter(qe=>qe.checked).map(qe=>qe.value);(0,T.r1)(this.listOfChecked,me)||this.filterChange.emit(this.filterMultiple?me:me.length>0?me[0]:null)}parseListOfFilter(me,qe){return me.map(gt=>({text:gt.text,value:gt.value,checked:!qe&&!!gt.byDefault}))}getCheckedStatus(me){return me.some(qe=>qe.checked)}constructor(me,qe){this.cdr=me,this.i18n=qe,this.contentTemplate=null,this.customFilter=!1,this.extraTemplate=null,this.filterMultiple=!0,this.listOfFilter=[],this.filterChange=new t.bkB,this.destroy$=new e.B,this.isChecked=!1,this.isVisible=!1,this.listOfParsedFilter=[],this.listOfChecked=[]}ngOnInit(){this.i18n.localeChange.pipe((0,w.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Table"),this.cdr.markForCheck()})}ngOnChanges(me){const{listOfFilter:qe}=me;qe&&this.listOfFilter&&this.listOfFilter.length&&(this.listOfParsedFilter=this.parseListOfFilter(this.listOfFilter),this.isChecked=this.getCheckedStatus(this.listOfParsedFilter))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.gRc),t.rXU(X.Og))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-table-filter"]],hostAttrs:[1,"ant-table-filter-column"],inputs:{contentTemplate:"contentTemplate",customFilter:"customFilter",extraTemplate:"extraTemplate",filterMultiple:"filterMultiple",listOfFilter:"listOfFilter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[t.OA$,t.aNF],decls:4,vars:2,consts:[["filterMenu","nzDropdownMenu"],[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[3,"nzVisibleChange","nzVisible","nzActive","nzDropdownMenu"],["nz-icon","","nzType","filter","nzTheme","fill"],[1,"ant-table-filter-dropdown"],["nz-menu",""],["nz-menu-item","",3,"nzSelected"],[1,"ant-table-filter-dropdown-btns"],["nz-button","","nzType","link","nzSize","small",3,"click","disabled"],["nz-button","","nzType","primary","nzSize","small",3,"click"],["nz-menu-item","",3,"click","nzSelected"],["nz-radio","",3,"ngModel"],["nz-checkbox","",3,"ngModel"],["nz-radio","",3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel"]],template:function(qe,gt){1&qe&&(t.j41(0,"span",1),t.DNE(1,Ze,0,0,"ng-template",2),t.k0s(),t.DNE(2,le,13,6)(3,V,1,1,"ng-container",2)),2&qe&&(t.R7$(),t.Y8G("ngTemplateOutlet",gt.contentTemplate),t.R7$(),t.vxM(gt.customFilter?3:2))},dependencies:[U.T3,jn,D.Y3,D.Dn,pe.Cu,se.jS,se.CU,pe.wQ,A.lx,ge.IJ,ge.$g,M.YN,M.BC,M.vS,te.Zw,te.aO,je.c,Bt.p],encapsulation:2,changeDetection:0})}return nt})(),ai=(()=>{class nt{constructor(){this.expand=!1,this.spaceMode=!1,this.expandChange=new t.bkB}onHostClick(){this.spaceMode||(this.expand=!this.expand,this.expandChange.next(this.expand))}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275dir=t.FsC({type:nt,selectors:[["button","nz-row-expand-button",""]],hostAttrs:[1,"ant-table-row-expand-icon"],hostVars:7,hostBindings:function(qe,gt){1&qe&&t.bIt("click",function(){return gt.onHostClick()}),2&qe&&(t.Mr5("type","button"),t.AVh("ant-table-row-expand-icon-expanded",!gt.spaceMode&&!0===gt.expand)("ant-table-row-expand-icon-collapsed",!gt.spaceMode&&!1===gt.expand)("ant-table-row-expand-icon-spaced",gt.spaceMode))},inputs:{expand:"expand",spaceMode:"spaceMode"},outputs:{expandChange:"expandChange"},standalone:!0})}return nt})(),Ti=(()=>{class nt{constructor(){this.indentSize=0}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275dir=t.FsC({type:nt,selectors:[["nz-row-indent"]],hostAttrs:[1,"ant-table-row-indent"],hostVars:2,hostBindings:function(qe,gt){2&qe&&t.xc7("padding-left",gt.indentSize,"px")},inputs:{indentSize:"indentSize"},standalone:!0})}return nt})(),ci=(()=>{class nt{constructor(){this.listOfSelections=[],this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.label=null,this.showCheckbox=!1,this.showRowSelection=!1,this.checkedChange=new t.bkB}onCheckedChange(me){this.checked=me,this.checkedChange.emit(me)}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-table-selection"]],hostAttrs:[1,"ant-table-selection"],inputs:{listOfSelections:"listOfSelections",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",label:"label",showCheckbox:"showCheckbox",showRowSelection:"showRowSelection"},outputs:{checkedChange:"checkedChange"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[["selectionMenu","nzDropdownMenu"],["nz-checkbox","",3,"ant-table-selection-select-all-custom","ngModel","nzDisabled","nzIndeterminate"],[1,"ant-table-selection-extra"],["nz-checkbox","",3,"ngModelChange","ngModel","nzDisabled","nzIndeterminate"],["nz-dropdown","","nzPlacement","bottomLeft",1,"ant-table-selection-down",3,"nzDropdownMenu"],["nz-icon","","nzType","down"],["nz-menu","",1,"ant-table-selection-menu"],["nz-menu-item",""],["nz-menu-item","",3,"click"]],template:function(qe,gt){1&qe&&t.DNE(0,Ve,1,6,"label",1)(1,J,8,1,"div",2),2&qe&&(t.vxM(gt.showCheckbox?0:-1),t.R7$(),t.vxM(gt.showRowSelection?1:-1))},dependencies:[M.YN,M.BC,M.vS,ge.IJ,ge.$g,pe.Cu,se.jS,se.CU,pe.j3,pe.wQ,D.Y3,D.Dn],encapsulation:2,changeDetection:0})}return nt})(),yi=(()=>{class nt{constructor(){this.sortDirections=["ascend","descend",null],this.sortOrder=null,this.contentTemplate=null,this.isUp=!1,this.isDown=!1}ngOnChanges(me){const{sortDirections:qe}=me;qe&&(this.isUp=-1!==this.sortDirections.indexOf("ascend"),this.isDown=-1!==this.sortDirections.indexOf("descend"))}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-table-sorters"]],hostAttrs:[1,"ant-table-column-sorters"],inputs:{sortDirections:"sortDirections",sortOrder:"sortOrder",contentTemplate:"contentTemplate"},standalone:!0,features:[t.OA$,t.aNF],decls:6,vars:5,consts:[[1,"ant-table-column-title"],[3,"ngTemplateOutlet"],[1,"ant-table-column-sorter"],[1,"ant-table-column-sorter-inner"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up",3,"active"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down",3,"active"],["nz-icon","","nzType","caret-up",1,"ant-table-column-sorter-up"],["nz-icon","","nzType","caret-down",1,"ant-table-column-sorter-down"]],template:function(qe,gt){1&qe&&(t.j41(0,"span",0),t.DNE(1,W,0,0,"ng-template",1),t.k0s(),t.j41(2,"span",2)(3,"span",3),t.DNE(4,_e,1,2,"span",4)(5,it,1,2,"span",5),t.k0s()()),2&qe&&(t.R7$(),t.Y8G("ngTemplateOutlet",gt.contentTemplate),t.R7$(),t.AVh("ant-table-column-sorter-full",gt.isDown&>.isUp),t.R7$(2),t.vxM(gt.isUp?4:-1),t.R7$(),t.vxM(gt.isDown?5:-1))},dependencies:[D.Y3,D.Dn,U.T3],encapsulation:2,changeDetection:0})}return nt})(),_i=(()=>{class nt{setAutoLeftWidth(me){this.renderer.setStyle(this.elementRef.nativeElement,"left",me)}setAutoRightWidth(me){this.renderer.setStyle(this.elementRef.nativeElement,"right",me)}setIsFirstRight(me){this.setFixClass(me,"ant-table-cell-fix-right-first")}setIsLastLeft(me){this.setFixClass(me,"ant-table-cell-fix-left-last")}setFixClass(me,qe){this.renderer.removeClass(this.elementRef.nativeElement,qe),me&&this.renderer.addClass(this.elementRef.nativeElement,qe)}constructor(me,qe){this.renderer=me,this.elementRef=qe,this.nzRight=!1,this.nzLeft=!1,this.colspan=null,this.colSpan=null,this.changes$=new e.B,this.isAutoLeft=!1,this.isAutoRight=!1,this.isFixedLeft=!1,this.isFixedRight=!1,this.isFixed=!1}ngOnChanges(){this.setIsFirstRight(!1),this.setIsLastLeft(!1),this.isAutoLeft=""===this.nzLeft||!0===this.nzLeft,this.isAutoRight=""===this.nzRight||!0===this.nzRight,this.isFixedLeft=!1!==this.nzLeft,this.isFixedRight=!1!==this.nzRight,this.isFixed=this.isFixedLeft||this.isFixedRight;const me=qe=>"string"==typeof qe&&""!==qe?qe:null;this.setAutoLeftWidth(me(this.nzLeft)),this.setAutoRightWidth(me(this.nzRight)),this.changes$.next()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:nt,selectors:[["td","nzRight",""],["th","nzRight",""],["td","nzLeft",""],["th","nzLeft",""]],hostVars:6,hostBindings:function(qe,gt){2&qe&&(t.xc7("position",gt.isFixed?"sticky":null),t.AVh("ant-table-cell-fix-right",gt.isFixedRight)("ant-table-cell-fix-left",gt.isFixedLeft))},inputs:{nzRight:"nzRight",nzLeft:"nzLeft",colspan:"colspan",colSpan:"colSpan"},standalone:!0,features:[t.OA$]})}return nt})(),Oi=(()=>{class nt{setTheadTemplate(me){this.theadTemplate$.next(me)}setHasFixLeft(me){this.hasFixLeft$.next(me)}setHasFixRight(me){this.hasFixRight$.next(me)}setTableWidthConfig(me){this.tableWidthConfigPx$.next(me)}setListOfTh(me){let qe=0;me.forEach(pn=>{qe+=pn.colspan&&+pn.colspan||pn.colSpan&&+pn.colSpan||1});const gt=me.map(pn=>pn.nzWidth);this.columnCount$.next(qe),this.listOfThWidthConfigPx$.next(gt)}setListOfMeasureColumn(me){const qe=[];me.forEach(gt=>{const pn=gt.colspan&&+gt.colspan||gt.colSpan&&+gt.colSpan||1;for(let ei=0;ei`${qe}px`))}setShowEmpty(me){this.showEmpty$.next(me)}setNoResult(me){this.noResult$.next(me)}setScroll(me,qe){const gt=!(!me&&!qe);gt||this.setListOfAutoWidth([]),this.enableAutoMeasure$.next(gt)}constructor(){this.theadTemplate$=new z.m(1),this.hasFixLeft$=new z.m(1),this.hasFixRight$=new z.m(1),this.hostWidth$=new z.m(1),this.columnCount$=new z.m(1),this.showEmpty$=new z.m(1),this.noResult$=new z.m(1),this.listOfThWidthConfigPx$=new j.t([]),this.tableWidthConfigPx$=new j.t([]),this.manualWidthConfigPx$=(0,R.z)([this.tableWidthConfigPx$,this.listOfThWidthConfigPx$]).pipe((0,P.T)(([me,qe])=>me.length?me:qe)),this.listOfAutoWidthPx$=new z.m(1),this.listOfListOfThWidthPx$=(0,$.h)(this.manualWidthConfigPx$,(0,R.z)([this.listOfAutoWidthPx$,this.manualWidthConfigPx$]).pipe((0,P.T)(([me,qe])=>me.length===qe.length?me.map((gt,pn)=>"0px"===gt?qe[pn]||null:qe[pn]||gt):qe))),this.listOfMeasureColumn$=new z.m(1),this.listOfListOfThWidth$=this.listOfAutoWidthPx$.pipe((0,P.T)(me=>me.map(qe=>parseInt(qe,10)))),this.enableAutoMeasure$=new z.m(1)}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275prov=t.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),ki=(()=>{class nt{constructor(me){this.isInsideTable=!1,this.isInsideTable=!!me}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(Oi,8))};static#t=this.\u0275dir=t.FsC({type:nt,selectors:[["th",9,"nz-disable-th",3,"mat-cell",""],["td",9,"nz-disable-td",3,"mat-cell",""]],hostVars:2,hostBindings:function(qe,gt){2&qe&&t.AVh("ant-table-cell",gt.isInsideTable)},standalone:!0})}return nt})(),co=(()=>{class nt{updatePageSize(me){this.pageSize$.next(me)}updateFrontPagination(me){this.frontPagination$.next(me)}updatePageIndex(me){this.pageIndex$.next(me)}updateListOfData(me){this.listOfData$.next(me)}updateListOfCustomColumn(me){this.listOfCustomColumn$.next(me)}constructor(){this.destroy$=new e.B,this.pageIndex$=new j.t(1),this.frontPagination$=new j.t(!0),this.pageSize$=new j.t(10),this.listOfData$=new j.t([]),this.listOfCustomColumn$=new j.t([]),this.pageIndexDistinct$=this.pageIndex$.pipe((0,Q.F)()),this.pageSizeDistinct$=this.pageSize$.pipe((0,Q.F)()),this.listOfCalcOperator$=new j.t([]),this.queryParams$=(0,R.z)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfCalcOperator$]).pipe((0,N.B)(0),(0,x.i)(1),(0,P.T)(([me,qe,gt])=>({pageIndex:me,pageSize:qe,sort:gt.filter(pn=>pn.sortFn).map(pn=>({key:pn.key,value:pn.sortOrder})),filter:gt.filter(pn=>pn.filterFn).map(pn=>({key:pn.key,value:pn.filterValue}))}))),this.listOfDataAfterCalc$=(0,R.z)([this.listOfData$,this.listOfCalcOperator$]).pipe((0,P.T)(([me,qe])=>{let gt=[...me];const pn=qe.filter(ti=>{const{filterValue:wi,filterFn:Zi}=ti;return!(null==wi||Array.isArray(wi)&&0===wi.length)&&"function"==typeof Zi});for(const ti of pn){const{filterFn:wi,filterValue:Zi}=ti;gt=gt.filter(No=>wi(Zi,No))}const ei=qe.filter(ti=>null!==ti.sortOrder&&"function"==typeof ti.sortFn).sort((ti,wi)=>+wi.sortPriority-+ti.sortPriority);return qe.length&>.sort((ti,wi)=>{for(const Zi of ei){const{sortFn:No,sortOrder:bi}=Zi;if(No&&bi){const Do=No(ti,wi,bi);if(0!==Do)return"ascend"===bi?Do:-Do}}return 0}),gt})),this.listOfFrontEndCurrentPageData$=(0,R.z)([this.pageIndexDistinct$,this.pageSizeDistinct$,this.listOfDataAfterCalc$]).pipe((0,w.Q)(this.destroy$),(0,oe.p)(me=>{const[qe,gt,pn]=me;return qe<=(Math.ceil(pn.length/gt)||1)}),(0,P.T)(([me,qe,gt])=>gt.slice((me-1)*qe,me*qe))),this.listOfCurrentPageData$=this.frontPagination$.pipe((0,ee.n)(me=>me?this.listOfFrontEndCurrentPageData$:this.listOfDataAfterCalc$)),this.total$=this.frontPagination$.pipe((0,ee.n)(me=>me?this.listOfDataAfterCalc$:this.listOfData$),(0,P.T)(me=>me.length),(0,Q.F)())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275prov=t.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),go=(()=>{class nt{constructor(){this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzIndentSize=0,this.nzShowExpand=!1,this.nzShowCheckbox=!1,this.nzExpand=!1,this.nzExpandIcon=null,this.nzCheckedChange=new t.bkB,this.nzExpandChange=new t.bkB,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(me){this.nzChecked=me,this.nzCheckedChange.emit(me)}onExpandChange(me){this.nzExpand=me,this.nzExpandChange.emit(me)}ngOnChanges(me){const qe=wi=>wi&&wi.firstChange&&void 0!==wi.currentValue,{nzExpand:gt,nzChecked:pn,nzShowExpand:ei,nzShowCheckbox:ti}=me;ei&&(this.isNzShowExpandChanged=!0),ti&&(this.isNzShowCheckboxChanged=!0),qe(gt)&&!this.isNzShowExpandChanged&&(this.nzShowExpand=!0),qe(pn)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["td","nzChecked",""],["td","nzDisabled",""],["td","nzIndeterminate",""],["td","nzIndentSize",""],["td","nzExpand",""],["td","nzShowExpand",""],["td","nzShowCheckbox",""]],hostVars:4,hostBindings:function(qe,gt){2&qe&&t.AVh("ant-table-cell-with-append",gt.nzShowExpand||gt.nzIndentSize>0)("ant-table-selection-column",gt.nzShowCheckbox)},inputs:{nzChecked:"nzChecked",nzDisabled:"nzDisabled",nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzIndentSize:"nzIndentSize",nzShowExpand:[2,"nzShowExpand","nzShowExpand",t.L39],nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",t.L39],nzExpand:[2,"nzExpand","nzExpand",t.L39],nzExpandIcon:"nzExpandIcon"},outputs:{nzCheckedChange:"nzCheckedChange",nzExpandChange:"nzExpandChange"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:dt,ngContentSelectors:Oe,decls:3,vars:2,consts:[["nz-checkbox","",3,"nzDisabled","ngModel","nzIndeterminate"],[3,"indentSize"],[3,"ngTemplateOutlet"],["nz-row-expand-button","",3,"expand","spaceMode"],["nz-row-expand-button","",3,"expandChange","expand","spaceMode"],["nz-checkbox","",3,"ngModelChange","nzDisabled","ngModel","nzIndeterminate"]],template:function(qe,gt){1&qe&&(t.NAR(),t.DNE(0,si,3,2)(1,Cn,1,4,"label",0),t.SdG(2)),2&qe&&(t.vxM(gt.nzShowExpand||gt.nzIndentSize>0?0:-1),t.R7$(),t.vxM(gt.nzShowCheckbox?1:-1))},dependencies:[Ti,ai,U.T3,ge.IJ,ge.$g,M.YN,M.BC,M.vS],encapsulation:2,changeDetection:0})}return nt})(),_o=(()=>{class nt{getNextSortDirection(me,qe){const gt=me.indexOf(qe);return gt===me.length-1?me[0]:me[gt+1]}setSortOrder(me){this.sortOrderChange$.next(me)}clearSortOrder(){null!==this.sortOrder&&this.setSortOrder(null)}onFilterValueChange(me){this.nzFilterChange.emit(me),this.nzFilterValue=me,this.updateCalcOperator()}updateCalcOperator(){this.calcOperatorChange$.next()}constructor(me,qe,gt,pn){this.host=me,this.cdr=qe,this.ngZone=gt,this.destroy$=pn,this.manualClickOrder$=new e.B,this.calcOperatorChange$=new e.B,this.nzFilterValue=null,this.sortOrder=null,this.sortDirections=["ascend","descend",null],this.sortOrderChange$=new e.B,this.isNzShowSortChanged=!1,this.isNzShowFilterChanged=!1,this.nzFilterMultiple=!0,this.nzSortOrder=null,this.nzSortPriority=!1,this.nzSortDirections=["ascend","descend",null],this.nzFilters=[],this.nzSortFn=null,this.nzFilterFn=null,this.nzShowSort=!1,this.nzShowFilter=!1,this.nzCustomFilter=!1,this.nzCheckedChange=new t.bkB,this.nzSortOrderChange=new t.bkB,this.nzFilterChange=new t.bkB}ngOnInit(){this.ngZone.runOutsideAngular(()=>(0,m.R)(this.host.nativeElement,"click").pipe((0,oe.p)(()=>this.nzShowSort),(0,w.Q)(this.destroy$)).subscribe(()=>{const me=this.getNextSortDirection(this.sortDirections,this.sortOrder);this.ngZone.run(()=>{this.setSortOrder(me),this.manualClickOrder$.next(this)})})),this.sortOrderChange$.pipe((0,w.Q)(this.destroy$)).subscribe(me=>{this.sortOrder!==me&&(this.sortOrder=me,this.nzSortOrderChange.emit(me)),this.updateCalcOperator(),this.cdr.markForCheck()})}ngOnChanges(me){const{nzSortDirections:qe,nzFilters:gt,nzSortOrder:pn,nzSortFn:ei,nzFilterFn:ti,nzSortPriority:wi,nzFilterMultiple:Zi,nzShowSort:No,nzShowFilter:bi}=me;qe&&this.nzSortDirections&&this.nzSortDirections.length&&(this.sortDirections=this.nzSortDirections),pn&&(this.sortOrder=this.nzSortOrder,this.setSortOrder(this.nzSortOrder)),No&&(this.isNzShowSortChanged=!0),bi&&(this.isNzShowFilterChanged=!0);const Do=Ho=>Ho&&Ho.firstChange&&void 0!==Ho.currentValue;if((Do(pn)||Do(ei))&&!this.isNzShowSortChanged&&(this.nzShowSort=!0),Do(gt)&&!this.isNzShowFilterChanged&&(this.nzShowFilter=!0),(gt||Zi)&&this.nzShowFilter){const Ho=this.nzFilters.filter(ys=>ys.byDefault).map(ys=>ys.value);this.nzFilterValue=this.nzFilterMultiple?Ho:Ho[0]||null}(ei||ti||wi||gt)&&this.updateCalcOperator()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(t.SKi),t.rXU(ve.y4))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["th","nzColumnKey",""],["th","nzSortFn",""],["th","nzSortOrder",""],["th","nzFilters",""],["th","nzShowSort",""],["th","nzShowFilter",""],["th","nzCustomFilter",""]],hostVars:4,hostBindings:function(qe,gt){2&qe&&t.AVh("ant-table-column-has-sorters",gt.nzShowSort)("ant-table-column-sort","descend"===gt.sortOrder||"ascend"===gt.sortOrder)},inputs:{nzColumnKey:"nzColumnKey",nzFilterMultiple:"nzFilterMultiple",nzSortOrder:"nzSortOrder",nzSortPriority:"nzSortPriority",nzSortDirections:"nzSortDirections",nzFilters:"nzFilters",nzSortFn:"nzSortFn",nzFilterFn:"nzFilterFn",nzShowSort:[2,"nzShowSort","nzShowSort",t.L39],nzShowFilter:[2,"nzShowFilter","nzShowFilter",t.L39],nzCustomFilter:[2,"nzCustomFilter","nzCustomFilter",t.L39]},outputs:{nzCheckedChange:"nzCheckedChange",nzSortOrderChange:"nzSortOrderChange",nzFilterChange:"nzFilterChange"},standalone:!0,features:[t.Jv_([ve.y4]),t.GFd,t.OA$,t.aNF],attrs:ni,ngContentSelectors:Ni,decls:10,vars:1,consts:[["notFilterTemplate",""],["extraTemplate",""],["sortTemplate",""],["contentTemplate",""],[3,"contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"ngTemplateOutlet"],[3,"filterChange","contentTemplate","extraTemplate","customFilter","filterMultiple","listOfFilter"],[3,"sortOrder","sortDirections","contentTemplate"]],template:function(qe,gt){1&qe&&(t.NAR(ui),t.DNE(0,Eo,1,5,"nz-table-filter",4)(1,lo,1,1,"ng-container",5)(2,Ii,1,1,"ng-template",null,0,t.C5r)(4,Nr,2,0,"ng-template",null,1,t.C5r)(6,pr,1,3,"ng-template",null,2,t.C5r)(8,vt,1,0,"ng-template",null,3,t.C5r)),2&qe&&t.vxM(gt.nzShowFilter||gt.nzCustomFilter?0:1)},dependencies:[oi,U.T3,yi],encapsulation:2,changeDetection:0})}return nt})(),yo=(()=>{class nt{constructor(me,qe){this.renderer=me,this.elementRef=qe,this.changes$=new e.B,this.nzWidth=null,this.colspan=null,this.colSpan=null,this.rowspan=null,this.rowSpan=null}ngOnChanges(me){const{nzWidth:qe,colspan:gt,rowspan:pn,colSpan:ei,rowSpan:ti}=me;if(gt||ei){const wi=this.colspan||this.colSpan;(0,T.gD)(wi)?this.renderer.removeAttribute(this.elementRef.nativeElement,"colspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"colspan",`${wi}`)}if(pn||ti){const wi=this.rowspan||this.rowSpan;(0,T.gD)(wi)?this.renderer.removeAttribute(this.elementRef.nativeElement,"rowspan"):this.renderer.setAttribute(this.elementRef.nativeElement,"rowspan",`${wi}`)}(qe||gt)&&this.changes$.next()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.sFG),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:nt,selectors:[["th"]],inputs:{nzWidth:"nzWidth",colspan:"colspan",colSpan:"colSpan",rowspan:"rowspan",rowSpan:"rowSpan"},standalone:!0,features:[t.OA$]})}return nt})(),Yn=(()=>{class nt{constructor(){this.nzSelections=[],this.nzChecked=!1,this.nzDisabled=!1,this.nzIndeterminate=!1,this.nzLabel=null,this.nzShowCheckbox=!1,this.nzShowRowSelection=!1,this.nzCheckedChange=new t.bkB,this.isNzShowExpandChanged=!1,this.isNzShowCheckboxChanged=!1}onCheckedChange(me){this.nzChecked=me,this.nzCheckedChange.emit(me)}ngOnChanges(me){const qe=wi=>wi&&wi.firstChange&&void 0!==wi.currentValue,{nzChecked:gt,nzSelections:pn,nzShowExpand:ei,nzShowCheckbox:ti}=me;ei&&(this.isNzShowExpandChanged=!0),ti&&(this.isNzShowCheckboxChanged=!0),qe(pn)&&!this.isNzShowExpandChanged&&(this.nzShowRowSelection=!0),qe(gt)&&!this.isNzShowCheckboxChanged&&(this.nzShowCheckbox=!0)}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["th","nzSelections",""],["th","nzChecked",""],["th","nzShowCheckbox",""],["th","nzShowRowSelection",""]],hostAttrs:[1,"ant-table-selection-column"],inputs:{nzSelections:"nzSelections",nzChecked:[2,"nzChecked","nzChecked",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzIndeterminate:"nzIndeterminate",nzLabel:"nzLabel",nzShowCheckbox:[2,"nzShowCheckbox","nzShowCheckbox",t.L39],nzShowRowSelection:[2,"nzShowRowSelection","nzShowRowSelection",t.L39]},outputs:{nzCheckedChange:"nzCheckedChange"},standalone:!0,features:[t.GFd,t.OA$,t.aNF],attrs:Gt,ngContentSelectors:Oe,decls:2,vars:7,consts:[[3,"checkedChange","checked","disabled","indeterminate","label","listOfSelections","showCheckbox","showRowSelection"]],template:function(qe,gt){1&qe&&(t.NAR(),t.j41(0,"nz-table-selection",0),t.bIt("checkedChange",function(ei){return gt.onCheckedChange(ei)}),t.k0s(),t.SdG(1)),2&qe&&t.Y8G("checked",gt.nzChecked)("disabled",gt.nzDisabled)("indeterminate",gt.nzIndeterminate)("label",gt.nzLabel)("listOfSelections",gt.nzSelections)("showCheckbox",gt.nzShowCheckbox)("showRowSelection",gt.nzShowRowSelection)},dependencies:[ci],encapsulation:2,changeDetection:0})}return nt})(),wo=(()=>{class nt{constructor(){this.nzAlign=null}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275dir=t.FsC({type:nt,selectors:[["th","nzAlign",""],["td","nzAlign",""]],hostVars:2,hostBindings:function(qe,gt){2&qe&&t.xc7("text-align",gt.nzAlign)},inputs:{nzAlign:"nzAlign"},standalone:!0})}return nt})(),Bo=(()=>{class nt{constructor(){this.tableLayout="auto",this.theadTemplate=null,this.contentTemplate=null,this.listOfColWidth=[],this.scrollX=null}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["table","nz-table-content",""]],hostVars:8,hostBindings:function(qe,gt){2&qe&&(t.xc7("table-layout",gt.tableLayout)("width",gt.scrollX)("min-width",gt.scrollX?"100%":null),t.AVh("ant-table-fixed",gt.scrollX))},inputs:{tableLayout:"tableLayout",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate",listOfColWidth:"listOfColWidth",scrollX:"scrollX"},standalone:!0,features:[t.aNF],attrs:Pt,ngContentSelectors:Oe,decls:5,vars:2,consts:[[3,"width","minWidth"],[1,"ant-table-thead"],[3,"ngTemplateOutlet"]],template:function(qe,gt){1&qe&&(t.NAR(),t.Z7z(0,Mn,1,4,"col",0,t.Vm6),t.DNE(2,ii,2,1,"thead",1)(3,Pn,0,0,"ng-template",2),t.SdG(4)),2&qe&&(t.Dyx(gt.listOfColWidth),t.R7$(2),t.vxM(gt.theadTemplate?2:-1),t.R7$(),t.Y8G("ngTemplateOutlet",gt.contentTemplate))},dependencies:[U.T3],encapsulation:2,changeDetection:0})}return nt})(),nr=(()=>{class nt{constructor(me,qe){this.nzTableStyleService=me,this.renderer=qe,this.hostWidth$=new j.t(null),this.enableAutoMeasure$=new j.t(!1),this.destroy$=new e.B}ngOnInit(){if(this.nzTableStyleService){const{enableAutoMeasure$:me,hostWidth$:qe}=this.nzTableStyleService;me.pipe((0,w.Q)(this.destroy$)).subscribe(this.enableAutoMeasure$),qe.pipe((0,w.Q)(this.destroy$)).subscribe(this.hostWidth$)}}ngAfterViewInit(){this.nzTableStyleService.columnCount$.pipe((0,w.Q)(this.destroy$)).subscribe(me=>{this.renderer.setAttribute(this.tdElement.nativeElement,"colspan",`${me}`)})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(Oi),t.rXU(t.sFG))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["tr","nz-table-fixed-row",""],["tr","nzExpand",""]],viewQuery:function(qe,gt){if(1&qe&&t.GBs(Fn,7),2&qe){let pn;t.mGM(pn=t.lsd())&&(gt.tdElement=pn.first)}},standalone:!0,features:[t.aNF],attrs:hi,ngContentSelectors:Oe,decls:7,vars:3,consts:[["tdElement",""],["contentTemplate",""],[1,"nz-disable-td","ant-table-cell"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden",3,"width"],[3,"ngTemplateOutlet"],[1,"ant-table-expanded-row-fixed",2,"position","sticky","left","0","overflow","hidden"]],template:function(qe,gt){1&qe&&(t.NAR(),t.j41(0,"td",2,0),t.DNE(2,Hi,3,5,"div",3),t.nI1(3,"async"),t.DNE(4,gn,1,1,null,4),t.k0s(),t.DNE(5,Si,1,0,"ng-template",null,1,t.C5r)),2&qe&&(t.R7$(2),t.vxM(t.bMT(3,1,gt.enableAutoMeasure$)?2:4))},dependencies:[U.Jj,U.T3],encapsulation:2,changeDetection:0})}return nt})(),wr=(()=>{class nt{constructor(){this.tableLayout="auto",this.listOfColWidth=[],this.theadTemplate=null,this.contentTemplate=null}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-table-inner-default"]],hostAttrs:[1,"ant-table-container"],inputs:{tableLayout:"tableLayout",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",contentTemplate:"contentTemplate"},standalone:!0,features:[t.aNF],decls:2,vars:4,consts:[[1,"ant-table-content"],["nz-table-content","",3,"contentTemplate","tableLayout","listOfColWidth","theadTemplate"]],template:function(qe,gt){1&qe&&(t.j41(0,"div",0),t.nrm(1,"table",1),t.k0s()),2&qe&&(t.R7$(),t.Y8G("contentTemplate",gt.contentTemplate)("tableLayout",gt.tableLayout)("listOfColWidth",gt.listOfColWidth)("theadTemplate",gt.theadTemplate))},dependencies:[Bo],encapsulation:2,changeDetection:0})}return nt})(),gr=(()=>{class nt{constructor(me,qe){this.nzResizeObserver=me,this.ngZone=qe,this.listOfMeasureColumn=[],this.listOfAutoWidth=new t.bkB,this.destroy$=new e.B}ngAfterViewInit(){this.listOfTdElement.changes.pipe((0,Ee.Z)(this.listOfTdElement)).pipe((0,ee.n)(me=>(0,R.z)(me.toArray().map(qe=>this.nzResizeObserver.observe(qe).pipe((0,P.T)(([gt])=>{const{width:pn}=gt.target.getBoundingClientRect();return Math.floor(pn)}))))),(0,N.B)(16),(0,w.Q)(this.destroy$)).subscribe(me=>{this.ngZone instanceof t.SKi&&t.SKi.isInAngularZone()?this.listOfAutoWidth.next(me):this.ngZone.run(()=>this.listOfAutoWidth.next(me))})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(He.xH),t.rXU(t.SKi))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["tr","nz-table-measure-row",""]],viewQuery:function(qe,gt){if(1&qe&&t.GBs(Fn,5),2&qe){let pn;t.mGM(pn=t.lsd())&&(gt.listOfTdElement=pn)}},hostAttrs:[1,"ant-table-measure-now"],inputs:{listOfMeasureColumn:"listOfMeasureColumn"},outputs:{listOfAutoWidth:"listOfAutoWidth"},standalone:!0,features:[t.aNF],attrs:Ei,decls:2,vars:0,consts:[["tdElement",""],[1,"nz-disable-td",2,"padding","0","border","0","height","0"]],template:function(qe,gt){1&qe&&t.Z7z(0,Ki,2,0,"td",1,t.Vm6),2&qe&&t.Dyx(gt.listOfMeasureColumn)},encapsulation:2,changeDetection:0})}return nt})(),Er=(()=>{class nt{constructor(me){if(this.nzTableStyleService=me,this.isInsideTable=!1,this.showEmpty$=new j.t(!1),this.noResult$=new j.t(void 0),this.listOfMeasureColumn$=new j.t([]),this.destroy$=new e.B,this.isInsideTable=!!this.nzTableStyleService,this.nzTableStyleService){const{showEmpty$:qe,noResult$:gt,listOfMeasureColumn$:pn}=this.nzTableStyleService;gt.pipe((0,w.Q)(this.destroy$)).subscribe(this.noResult$),pn.pipe((0,w.Q)(this.destroy$)).subscribe(this.listOfMeasureColumn$),qe.pipe((0,w.Q)(this.destroy$)).subscribe(this.showEmpty$)}}onListOfAutoWidthChange(me){this.nzTableStyleService.setListOfAutoWidth(me)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(Oi,8))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["tbody"]],hostVars:2,hostBindings:function(qe,gt){2&qe&&t.AVh("ant-table-tbody",gt.isInsideTable)},standalone:!0,features:[t.aNF],ngContentSelectors:Oe,decls:5,vars:6,consts:[["nz-table-fixed-row","",1,"ant-table-placeholder"],["nz-table-measure-row","",3,"listOfMeasureColumn"],["nz-table-measure-row","",3,"listOfAutoWidth","listOfMeasureColumn"],["nzComponentName","table",3,"specificContent"]],template:function(qe,gt){if(1&qe&&(t.NAR(),t.DNE(0,qi,1,1),t.nI1(1,"async"),t.SdG(2),t.DNE(3,Go,3,3,"tr",0),t.nI1(4,"async")),2&qe){let pn;t.vxM((pn=t.bMT(1,2,gt.listOfMeasureColumn$))?0:-1,pn),t.R7$(3),t.vxM(t.bMT(4,4,gt.showEmpty$)?3:-1)}},dependencies:[U.Jj,gr,nr,Vt._v,Vt.E8],encapsulation:2,changeDetection:0})}return nt})(),vr=(()=>{class nt{setScrollPositionClassName(me=!1){const{scrollWidth:qe,scrollLeft:gt,clientWidth:pn}=this.tableBodyElement.nativeElement,ei="ant-table-ping-left",ti="ant-table-ping-right";qe===pn&&0!==qe||me?(this.renderer.removeClass(this.tableMainElement,ei),this.renderer.removeClass(this.tableMainElement,ti)):0===gt?(this.renderer.removeClass(this.tableMainElement,ei),this.renderer.addClass(this.tableMainElement,ti)):qe===gt+pn?(this.renderer.removeClass(this.tableMainElement,ti),this.renderer.addClass(this.tableMainElement,ei)):(this.renderer.addClass(this.tableMainElement,ei),this.renderer.addClass(this.tableMainElement,ti))}constructor(me,qe,gt,pn){this.renderer=me,this.ngZone=qe,this.platform=gt,this.resizeService=pn,this.data=[],this.scrollX=null,this.scrollY=null,this.contentTemplate=null,this.widthConfig=[],this.listOfColWidth=[],this.theadTemplate=null,this.virtualTemplate=null,this.virtualItemSize=0,this.virtualMaxBufferPx=200,this.virtualMinBufferPx=100,this.virtualForTrackBy=ei=>ei,this.headerStyleMap={},this.bodyStyleMap={},this.verticalScrollBarWidth=0,this.noDataVirtualHeight="182px",this.data$=new e.B,this.scroll$=new e.B,this.destroy$=new e.B}ngOnChanges(me){const{scrollX:qe,scrollY:gt,data:pn}=me;(qe||gt)&&(this.headerStyleMap={overflowX:"hidden",overflowY:this.scrollY&&0!==this.verticalScrollBarWidth?"scroll":"hidden"},this.bodyStyleMap={overflowY:this.scrollY?"scroll":"hidden",overflowX:this.scrollX?"auto":null,maxHeight:this.scrollY},this.ngZone.runOutsideAngular(()=>this.scroll$.next())),pn&&this.ngZone.runOutsideAngular(()=>this.data$.next())}ngAfterViewInit(){this.platform.isBrowser&&this.ngZone.runOutsideAngular(()=>{const me=this.scroll$.pipe((0,Ee.Z)(null),(0,Ie.c)(0),(0,ee.n)(()=>(0,m.R)(this.tableBodyElement.nativeElement,"scroll").pipe((0,Ee.Z)(!0))),(0,w.Q)(this.destroy$)),qe=this.resizeService.subscribe().pipe((0,w.Q)(this.destroy$)),gt=this.data$.pipe((0,w.Q)(this.destroy$));(0,$.h)(me,qe,gt,this.scroll$).pipe((0,Ee.Z)(!0),(0,Ie.c)(0),(0,w.Q)(this.destroy$)).subscribe(()=>this.setScrollPositionClassName()),me.pipe((0,oe.p)(()=>!!this.scrollY)).subscribe(()=>this.tableHeaderElement.nativeElement.scrollLeft=this.tableBodyElement.nativeElement.scrollLeft)})}ngOnDestroy(){this.setScrollPositionClassName(!0),this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.sFG),t.rXU(t.SKi),t.rXU(xt.OD),t.rXU(ve.cB))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-table-inner-scroll"]],viewQuery:function(qe,gt){if(1&qe&&(t.GBs(so,5,t.aKT),t.GBs(tr,5,t.aKT),t.GBs(Tt.d6,5,Tt.d6)),2&qe){let pn;t.mGM(pn=t.lsd())&&(gt.tableHeaderElement=pn.first),t.mGM(pn=t.lsd())&&(gt.tableBodyElement=pn.first),t.mGM(pn=t.lsd())&&(gt.cdkVirtualScrollViewport=pn.first)}},hostAttrs:[1,"ant-table-container"],inputs:{data:"data",scrollX:"scrollX",scrollY:"scrollY",contentTemplate:"contentTemplate",widthConfig:"widthConfig",listOfColWidth:"listOfColWidth",theadTemplate:"theadTemplate",virtualTemplate:"virtualTemplate",virtualItemSize:"virtualItemSize",virtualMaxBufferPx:"virtualMaxBufferPx",virtualMinBufferPx:"virtualMinBufferPx",tableMainElement:"tableMainElement",virtualForTrackBy:"virtualForTrackBy",verticalScrollBarWidth:"verticalScrollBarWidth",noDataVirtualHeight:"noDataVirtualHeight"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:1,consts:[["tableHeaderElement",""],["tableBodyElement",""],[1,"ant-table-content",3,"ngStyle"],[1,"ant-table-header","nz-table-hide-scrollbar",3,"ngStyle"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate"],[1,"ant-table-body",3,"ngStyle"],[3,"itemSize","maxBufferPx","minBufferPx","height"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","contentTemplate"],[3,"itemSize","maxBufferPx","minBufferPx"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["nz-table-content","","tableLayout","fixed",3,"scrollX","listOfColWidth","theadTemplate","contentTemplate"]],template:function(qe,gt){1&qe&&t.DNE(0,Zr,5,5)(1,uo,3,5,"div",2),2&qe&&t.vxM(gt.scrollY?0:1)},dependencies:[Bo,U.B3,Tt.E9,Tt.yg,Tt.E$,Tt.d6,U.T3,Er],encapsulation:2,changeDetection:0})}return nt})(),Vo=(()=>{class nt{constructor(me){this.templateRef=me}static ngTemplateContextGuard(me,qe){return!0}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.C4Q))};static#t=this.\u0275dir=t.FsC({type:nt,selectors:[["","nz-virtual-scroll",""]],exportAs:["nzVirtualScroll"],standalone:!0})}return nt})(),As=(()=>{class nt{constructor(){this.title=null,this.footer=null}static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-table-title-footer"]],hostVars:4,hostBindings:function(qe,gt){2&qe&&t.AVh("ant-table-title",null!==gt.title)("ant-table-footer",null!==gt.footer)},inputs:{title:"title",footer:"footer"},standalone:!0,features:[t.aNF],decls:2,vars:2,consts:[[4,"nzStringTemplateOutlet"]],template:function(qe,gt){1&qe&&t.DNE(0,Hn,2,1,"ng-container",0)(1,Pi,2,1,"ng-container",0),2&qe&&(t.Y8G("nzStringTemplateOutlet",gt.title),t.R7$(),t.Y8G("nzStringTemplateOutlet",gt.footer))},dependencies:[de.C,de.m],encapsulation:2,changeDetection:0})}return nt})(),$o=(()=>{class nt{onPageSizeChange(me){this.nzTableDataService.updatePageSize(me)}onPageIndexChange(me){this.nzTableDataService.updatePageIndex(me)}constructor(me,qe,gt,pn,ei,ti,wi){this.elementRef=me,this.nzResizeObserver=qe,this.nzConfigService=gt,this.cdr=pn,this.nzTableStyleService=ei,this.nzTableDataService=ti,this.directionality=wi,this._nzModuleName="table",this.nzTableLayout="auto",this.nzShowTotal=null,this.nzItemRender=null,this.nzTitle=null,this.nzFooter=null,this.nzNoResult=void 0,this.nzPageSizeOptions=[10,20,30,40,50],this.nzVirtualItemSize=0,this.nzVirtualMaxBufferPx=200,this.nzVirtualMinBufferPx=100,this.nzVirtualForTrackBy=Zi=>Zi,this.nzLoadingDelay=0,this.nzPageIndex=1,this.nzPageSize=10,this.nzTotal=0,this.nzWidthConfig=[],this.nzData=[],this.nzCustomColumn=[],this.nzPaginationPosition="bottom",this.nzScroll={x:null,y:null},this.noDataVirtualHeight="182px",this.nzPaginationType="default",this.nzFrontPagination=!0,this.nzTemplateMode=!1,this.nzShowPagination=!0,this.nzLoading=!1,this.nzOuterBordered=!1,this.nzLoadingIndicator=null,this.nzBordered=!1,this.nzSize="default",this.nzShowSizeChanger=!1,this.nzHideOnSinglePage=!1,this.nzShowQuickJumper=!1,this.nzSimple=!1,this.nzPageSizeChange=new t.bkB,this.nzPageIndexChange=new t.bkB,this.nzQueryParams=new t.bkB,this.nzCurrentPageDataChange=new t.bkB,this.nzCustomColumnChange=new t.bkB,this.data=[],this.scrollX=null,this.scrollY=null,this.theadTemplate=null,this.listOfAutoColWidth=[],this.listOfManualColWidth=[],this.hasFixLeft=!1,this.hasFixRight=!1,this.showPagination=!0,this.destroy$=new e.B,this.templateMode$=new j.t(!1),this.dir="ltr",this.verticalScrollBarWidth=0,this.nzConfigService.getConfigChangeEventForComponent("table").pipe((0,w.Q)(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}ngOnInit(){const{pageIndexDistinct$:me,pageSizeDistinct$:qe,listOfCurrentPageData$:gt,total$:pn,queryParams$:ei,listOfCustomColumn$:ti}=this.nzTableDataService,{theadTemplate$:wi,hasFixLeft$:Zi,hasFixRight$:No}=this.nzTableStyleService;this.dir=this.directionality.value,this.directionality.change?.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{this.dir=bi,this.cdr.detectChanges()}),ei.pipe((0,w.Q)(this.destroy$)).subscribe(this.nzQueryParams),me.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{bi!==this.nzPageIndex&&(this.nzPageIndex=bi,this.nzPageIndexChange.next(bi))}),qe.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{bi!==this.nzPageSize&&(this.nzPageSize=bi,this.nzPageSizeChange.next(bi))}),pn.pipe((0,w.Q)(this.destroy$),(0,oe.p)(()=>this.nzFrontPagination)).subscribe(bi=>{bi!==this.nzTotal&&(this.nzTotal=bi,this.cdr.markForCheck())}),gt.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{this.data=bi,this.nzCurrentPageDataChange.next(bi),this.cdr.markForCheck()}),ti.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{this.nzCustomColumn=bi,this.nzCustomColumnChange.next(bi),this.cdr.markForCheck()}),wi.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{this.theadTemplate=bi,this.cdr.markForCheck()}),Zi.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{this.hasFixLeft=bi,this.cdr.markForCheck()}),No.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{this.hasFixRight=bi,this.cdr.markForCheck()}),(0,R.z)([pn,this.templateMode$]).pipe((0,P.T)(([bi,Do])=>0===bi&&!Do),(0,w.Q)(this.destroy$)).subscribe(bi=>{this.nzTableStyleService.setShowEmpty(bi)}),this.verticalScrollBarWidth=(0,T.nS)("vertical"),this.nzTableStyleService.listOfListOfThWidthPx$.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{this.listOfAutoColWidth=bi,this.cdr.markForCheck()}),this.nzTableStyleService.manualWidthConfigPx$.pipe((0,w.Q)(this.destroy$)).subscribe(bi=>{this.listOfManualColWidth=bi,this.cdr.markForCheck()})}ngOnChanges(me){const{nzScroll:qe,nzPageIndex:gt,nzPageSize:pn,nzFrontPagination:ei,nzData:ti,nzCustomColumn:wi,nzWidthConfig:Zi,nzNoResult:No,nzTemplateMode:bi}=me;gt&&this.nzTableDataService.updatePageIndex(this.nzPageIndex),pn&&this.nzTableDataService.updatePageSize(this.nzPageSize),ti&&(this.nzData=this.nzData||[],this.nzTableDataService.updateListOfData(this.nzData)),wi&&(this.nzCustomColumn=this.nzCustomColumn||[],this.nzTableDataService.updateListOfCustomColumn(this.nzCustomColumn)),ei&&this.nzTableDataService.updateFrontPagination(this.nzFrontPagination),qe&&this.setScrollOnChanges(),Zi&&this.nzTableStyleService.setTableWidthConfig(this.nzWidthConfig),bi&&this.templateMode$.next(this.nzTemplateMode),No&&this.nzTableStyleService.setNoResult(this.nzNoResult),this.updateShowPagination()}ngAfterViewInit(){this.nzResizeObserver.observe(this.elementRef).pipe((0,P.T)(([me])=>{const{width:qe}=me.target.getBoundingClientRect();return Math.floor(qe-(this.scrollY?this.verticalScrollBarWidth:0))}),(0,w.Q)(this.destroy$)).subscribe(this.nzTableStyleService.hostWidth$),this.nzTableInnerScrollComponent&&this.nzTableInnerScrollComponent.cdkVirtualScrollViewport&&(this.cdkVirtualScrollViewport=this.nzTableInnerScrollComponent.cdkVirtualScrollViewport)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setScrollOnChanges(){this.scrollX=this.nzScroll&&this.nzScroll.x||null,this.scrollY=this.nzScroll&&this.nzScroll.y||null,this.nzTableStyleService.setScroll(this.scrollX,this.scrollY)}updateShowPagination(){this.showPagination=this.nzHideOnSinglePage&&this.nzData.length>this.nzPageSize||this.nzData.length>0&&!this.nzHideOnSinglePage||!this.nzFrontPagination&&this.nzTotal>this.nzPageSize}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.aKT),t.rXU(He.xH),t.rXU(Pe.yx),t.rXU(t.gRc),t.rXU(Oi),t.rXU(co),t.rXU(ft.dS,8))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["nz-table"]],contentQueries:function(qe,gt,pn){if(1&qe&&t.wni(pn,Vo,5),2&qe){let ei;t.mGM(ei=t.lsd())&&(gt.nzVirtualScrollDirective=ei.first)}},viewQuery:function(qe,gt){if(1&qe&&t.GBs(vr,5),2&qe){let pn;t.mGM(pn=t.lsd())&&(gt.nzTableInnerScrollComponent=pn.first)}},hostAttrs:[1,"ant-table-wrapper"],hostVars:4,hostBindings:function(qe,gt){2&qe&&t.AVh("ant-table-wrapper-rtl","rtl"===gt.dir)("ant-table-custom-column",gt.nzCustomColumn.length)},inputs:{nzTableLayout:"nzTableLayout",nzShowTotal:"nzShowTotal",nzItemRender:"nzItemRender",nzTitle:"nzTitle",nzFooter:"nzFooter",nzNoResult:"nzNoResult",nzPageSizeOptions:"nzPageSizeOptions",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualForTrackBy:"nzVirtualForTrackBy",nzLoadingDelay:"nzLoadingDelay",nzPageIndex:"nzPageIndex",nzPageSize:"nzPageSize",nzTotal:"nzTotal",nzWidthConfig:"nzWidthConfig",nzData:"nzData",nzCustomColumn:"nzCustomColumn",nzPaginationPosition:"nzPaginationPosition",nzScroll:"nzScroll",noDataVirtualHeight:"noDataVirtualHeight",nzPaginationType:"nzPaginationType",nzFrontPagination:[2,"nzFrontPagination","nzFrontPagination",t.L39],nzTemplateMode:[2,"nzTemplateMode","nzTemplateMode",t.L39],nzShowPagination:[2,"nzShowPagination","nzShowPagination",t.L39],nzLoading:[2,"nzLoading","nzLoading",t.L39],nzOuterBordered:[2,"nzOuterBordered","nzOuterBordered",t.L39],nzLoadingIndicator:"nzLoadingIndicator",nzBordered:[2,"nzBordered","nzBordered",t.L39],nzSize:"nzSize",nzShowSizeChanger:[2,"nzShowSizeChanger","nzShowSizeChanger",t.L39],nzHideOnSinglePage:[2,"nzHideOnSinglePage","nzHideOnSinglePage",t.L39],nzShowQuickJumper:[2,"nzShowQuickJumper","nzShowQuickJumper",t.L39],nzSimple:[2,"nzSimple","nzSimple",t.L39]},outputs:{nzPageSizeChange:"nzPageSizeChange",nzPageIndexChange:"nzPageIndexChange",nzQueryParams:"nzQueryParams",nzCurrentPageDataChange:"nzCurrentPageDataChange",nzCustomColumnChange:"nzCustomColumnChange"},exportAs:["nzTable"],standalone:!0,features:[t.Jv_([Oi,co]),t.GFd,t.OA$,t.aNF],ngContentSelectors:Oe,decls:13,vars:26,consts:[["tableMainElement",""],["paginationTemplate",""],["contentTemplate",""],[3,"nzDelay","nzSpinning","nzIndicator"],[3,"ngTemplateOutlet"],[1,"ant-table"],[3,"title"],[3,"data","scrollX","scrollY","contentTemplate","listOfColWidth","theadTemplate","verticalScrollBarWidth","virtualTemplate","virtualItemSize","virtualMaxBufferPx","virtualMinBufferPx","tableMainElement","virtualForTrackBy","noDataVirtualHeight"],[3,"tableLayout","listOfColWidth","theadTemplate","contentTemplate"],[3,"footer"],[1,"ant-table-pagination","ant-table-pagination-right",3,"hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"],[1,"ant-table-pagination","ant-table-pagination-right",3,"nzPageSizeChange","nzPageIndexChange","hidden","nzShowSizeChanger","nzPageSizeOptions","nzItemRender","nzShowQuickJumper","nzHideOnSinglePage","nzShowTotal","nzSize","nzPageSize","nzTotal","nzSimple","nzPageIndex"]],template:function(qe,gt){1&qe&&(t.NAR(),t.j41(0,"nz-spin",3),t.DNE(1,$r,1,1,null,4),t.j41(2,"div",5,0),t.DNE(4,as,1,1,"nz-table-title-footer",6)(5,Ko,1,14,"nz-table-inner-scroll",7)(6,Fs,1,4,"nz-table-inner-default",8)(7,st,1,1,"nz-table-title-footer",9),t.k0s(),t.DNE(8,$e,1,1,null,4),t.k0s(),t.DNE(9,At,1,1,"ng-template",null,1,t.C5r)(11,nn,1,0,"ng-template",null,2,t.C5r)),2&qe&&(t.Y8G("nzDelay",gt.nzLoadingDelay)("nzSpinning",gt.nzLoading)("nzIndicator",gt.nzLoadingIndicator),t.R7$(),t.vxM("both"===gt.nzPaginationPosition||"top"===gt.nzPaginationPosition?1:-1),t.R7$(),t.AVh("ant-table-rtl","rtl"===gt.dir)("ant-table-fixed-header",gt.nzData.length&>.scrollY)("ant-table-fixed-column",gt.scrollX)("ant-table-has-fix-left",gt.hasFixLeft)("ant-table-has-fix-right",gt.hasFixRight)("ant-table-bordered",gt.nzBordered)("nz-table-out-bordered",gt.nzOuterBordered&&!gt.nzBordered)("ant-table-middle","middle"===gt.nzSize)("ant-table-small","small"===gt.nzSize),t.R7$(2),t.vxM(gt.nzTitle?4:-1),t.R7$(),t.vxM(gt.scrollY||gt.scrollX?5:6),t.R7$(2),t.vxM(gt.nzFooter?7:-1),t.R7$(),t.vxM("both"===gt.nzPaginationPosition||"bottom"===gt.nzPaginationPosition?8:-1))},dependencies:[lt.a,U.T3,As,vr,wr,Se,ct],encapsulation:2,changeDetection:0})}return(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzLoadingIndicator",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzBordered",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzSize",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzShowSizeChanger",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzHideOnSinglePage",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzShowQuickJumper",void 0),(0,r.Cg)([(0,Pe.H4)()],nt.prototype,"nzSimple",void 0),nt})(),cs=(()=>{class nt{constructor(me){this.nzTableStyleService=me,this.destroy$=new e.B,this.listOfFixedColumns$=new z.m(1),this.listOfColumns$=new z.m(1),this.listOfFixedColumnsChanges$=this.listOfFixedColumns$.pipe((0,ee.n)(qe=>(0,$.h)(this.listOfFixedColumns$,...qe.map(gt=>gt.changes$)).pipe((0,ce.Z)(()=>this.listOfFixedColumns$))),(0,w.Q)(this.destroy$)),this.listOfFixedLeftColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,P.T)(qe=>qe.filter(gt=>!1!==gt.nzLeft))),this.listOfFixedRightColumnChanges$=this.listOfFixedColumnsChanges$.pipe((0,P.T)(qe=>qe.filter(gt=>!1!==gt.nzRight))),this.listOfColumnsChanges$=this.listOfColumns$.pipe((0,ee.n)(qe=>(0,$.h)(this.listOfColumns$,...qe.map(gt=>gt.changes$)).pipe((0,ce.Z)(()=>this.listOfColumns$))),(0,w.Q)(this.destroy$)),this.isInsideTable=!1,this.isInsideTable=!!me}ngAfterContentInit(){this.nzTableStyleService&&(this.listOfCellFixedDirective.changes.pipe((0,Ee.Z)(this.listOfCellFixedDirective),(0,w.Q)(this.destroy$)).subscribe(this.listOfFixedColumns$),this.listOfNzThDirective.changes.pipe((0,Ee.Z)(this.listOfNzThDirective),(0,w.Q)(this.destroy$)).subscribe(this.listOfColumns$),this.listOfFixedLeftColumnChanges$.subscribe(me=>{me.forEach(qe=>qe.setIsLastLeft(qe===me[me.length-1]))}),this.listOfFixedRightColumnChanges$.subscribe(me=>{me.forEach(qe=>qe.setIsFirstRight(qe===me[0]))}),(0,R.z)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedLeftColumnChanges$]).pipe((0,w.Q)(this.destroy$)).subscribe(([me,qe])=>{qe.forEach((gt,pn)=>{if(gt.isAutoLeft){const ti=qe.slice(0,pn).reduce((Zi,No)=>Zi+(No.colspan||No.colSpan||1),0),wi=me.slice(0,ti).reduce((Zi,No)=>Zi+No,0);gt.setAutoLeftWidth(`${wi}px`)}})}),(0,R.z)([this.nzTableStyleService.listOfListOfThWidth$,this.listOfFixedRightColumnChanges$]).pipe((0,w.Q)(this.destroy$)).subscribe(([me,qe])=>{qe.forEach((gt,pn)=>{const ei=qe[qe.length-pn-1];if(ei.isAutoRight){const wi=qe.slice(qe.length-pn,qe.length).reduce((No,bi)=>No+(bi.colspan||bi.colSpan||1),0),Zi=me.slice(me.length-wi,me.length).reduce((No,bi)=>No+bi,0);ei.setAutoRightWidth(`${Zi}px`)}})}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(Oi,8))};static#t=this.\u0275dir=t.FsC({type:nt,selectors:[["tr",3,"mat-row","",3,"mat-header-row","",3,"nz-table-measure-row","",3,"nzExpand","",3,"nz-table-fixed-row",""]],contentQueries:function(qe,gt,pn){if(1&qe&&(t.wni(pn,yo,4),t.wni(pn,_i,4)),2&qe){let ei;t.mGM(ei=t.lsd())&&(gt.listOfNzThDirective=ei),t.mGM(ei=t.lsd())&&(gt.listOfCellFixedDirective=ei)}},hostVars:2,hostBindings:function(qe,gt){2&qe&&t.AVh("ant-table-row",gt.isInsideTable)},standalone:!0})}return nt})(),Ro=(()=>{class nt{constructor(me,qe,gt,pn){this.elementRef=me,this.renderer=qe,this.nzTableStyleService=gt,this.nzTableDataService=pn,this.destroy$=new e.B,this.isInsideTable=!1,this.nzSortOrderChange=new t.bkB,this.isInsideTable=!!this.nzTableStyleService}ngOnInit(){this.nzTableStyleService&&this.nzTableStyleService.setTheadTemplate(this.templateRef)}ngAfterContentInit(){if(this.nzTableStyleService){const me=this.listOfNzTrDirective.changes.pipe((0,Ee.Z)(this.listOfNzTrDirective),(0,P.T)(ei=>ei&&ei.first)),qe=me.pipe((0,ee.n)(ei=>ei?ei.listOfColumnsChanges$:k.w),(0,w.Q)(this.destroy$));qe.subscribe(ei=>this.nzTableStyleService.setListOfTh(ei)),this.nzTableStyleService.enableAutoMeasure$.pipe((0,ee.n)(ei=>ei?qe:(0,I.of)([]))).pipe((0,w.Q)(this.destroy$)).subscribe(ei=>this.nzTableStyleService.setListOfMeasureColumn(ei));const gt=me.pipe((0,ee.n)(ei=>ei?ei.listOfFixedLeftColumnChanges$:k.w),(0,w.Q)(this.destroy$)),pn=me.pipe((0,ee.n)(ei=>ei?ei.listOfFixedRightColumnChanges$:k.w),(0,w.Q)(this.destroy$));gt.subscribe(ei=>{this.nzTableStyleService.setHasFixLeft(0!==ei.length)}),pn.subscribe(ei=>{this.nzTableStyleService.setHasFixRight(0!==ei.length)})}if(this.nzTableDataService){const me=this.listOfNzThAddOnComponent.changes.pipe((0,Ee.Z)(this.listOfNzThAddOnComponent));me.pipe((0,ee.n)(()=>(0,$.h)(...this.listOfNzThAddOnComponent.map(pn=>pn.manualClickOrder$))),(0,w.Q)(this.destroy$)).subscribe(pn=>{this.nzSortOrderChange.emit({key:pn.nzColumnKey,value:pn.sortOrder}),pn.nzSortFn&&!1===pn.nzSortPriority&&this.listOfNzThAddOnComponent.filter(ti=>ti!==pn).forEach(ti=>ti.clearSortOrder())}),me.pipe((0,ee.n)(pn=>(0,$.h)(me,...pn.map(ei=>ei.calcOperatorChange$)).pipe((0,ce.Z)(()=>me))),(0,P.T)(pn=>pn.filter(ei=>!!ei.nzSortFn||!!ei.nzFilterFn).map(ei=>{const{nzSortFn:ti,sortOrder:wi,nzFilterFn:Zi,nzFilterValue:No,nzSortPriority:bi,nzColumnKey:Do}=ei;return{key:Do,sortFn:ti,sortPriority:bi,sortOrder:wi,filterFn:Zi,filterValue:No}})),(0,Ie.c)(0),(0,w.Q)(this.destroy$)).subscribe(pn=>{this.nzTableDataService.listOfCalcOperator$.next(pn)})}}ngAfterViewInit(){this.nzTableStyleService&&this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(qe){return new(qe||nt)(t.rXU(t.aKT),t.rXU(t.sFG),t.rXU(Oi,8),t.rXU(co,8))};static#t=this.\u0275cmp=t.VBU({type:nt,selectors:[["thead",9,"ant-table-thead"]],contentQueries:function(qe,gt,pn){if(1&qe&&(t.wni(pn,cs,5),t.wni(pn,_o,5)),2&qe){let ei;t.mGM(ei=t.lsd())&&(gt.listOfNzTrDirective=ei),t.mGM(ei=t.lsd())&&(gt.listOfNzThAddOnComponent=ei)}},viewQuery:function(qe,gt){if(1&qe&&t.GBs(ln,7),2&qe){let pn;t.mGM(pn=t.lsd())&&(gt.templateRef=pn.first)}},outputs:{nzSortOrderChange:"nzSortOrderChange"},standalone:!0,features:[t.aNF],ngContentSelectors:Oe,decls:3,vars:1,consts:[["contentTemplate",""],[3,"ngTemplateOutlet"]],template:function(qe,gt){1&qe&&(t.NAR(),t.DNE(0,hn,1,0,"ng-template",null,0,t.C5r)(2,Rn,1,1,null,1)),2&qe&&(t.R7$(2),t.vxM(gt.isInsideTable?-1:2))},dependencies:[U.T3],encapsulation:2,changeDetection:0})}return nt})(),_s=(()=>{class nt{static#e=this.\u0275fac=function(qe){return new(qe||nt)};static#t=this.\u0275mod=t.$C({type:nt});static#n=this.\u0275inj=t.G2t({imports:[$o,_o,go,Er,As,vr,yi,oi,ci,jn,Yn]})}return nt})()},9541:($t,De,a)=>{a.d(De,{JZ:()=>Se,Tl:()=>re,hM:()=>de,rE:()=>_t,rM:()=>ae,v3:()=>ie});var t=a(3953),r=a(7806),m=a(5103),e=a(4500),z=a(851),j=a(4085),R=a(7336),$=a(177),k=a(3726),I=a(8359),w=a(536),P=a(5007),Q=a(1413),N=a(7673),x=a(7786),oe=a(6977),ee=a(3798),Ee=a(9172),Ie=a(1594),ce=a(5964),Pe=a(1986),ve=a(2602),pe=a(1868),U=a(946),M=a(5979),te=a(8203),ge=a(713),T=a(1188),D=a(4707),A=a(6042),X=a(3451),se=a(317);function je(Oe,zt){if(1&Oe&&(t.qex(0),t.nrm(1,"span",1),t.bVm()),2&Oe){const Ze=zt.$implicit;t.R7$(),t.Y8G("nzType",Ze)}}const Bt=()=>({minWidth:"46px"}),Tt=()=>({visible:!1});function Vt(Oe,zt){if(1&Oe&&(t.qex(0),t.EFF(1),t.bVm()),2&Oe){const Ze=t.XpG().$implicit;t.R7$(),t.SpI(" ",Ze.tab.label," ")}}function He(Oe,zt){if(1&Oe){const Ze=t.RV6();t.j41(0,"li",8),t.bIt("click",function(){const Le=t.eBV(Ze).$implicit,Y=t.XpG(2);return t.Njj(Y.onSelect(Le))})("contextmenu",function(Le){const Y=t.eBV(Ze).$implicit,le=t.XpG(2);return t.Njj(le.onContextmenu(Y,Le))}),t.DNE(1,Vt,2,1,"ng-container",9),t.k0s()}if(2&Oe){const Ze=zt.$implicit;t.AVh("ant-tabs-dropdown-menu-item-disabled",Ze.disabled),t.Y8G("nzSelected",Ze.active)("nzDisabled",Ze.disabled),t.R7$(),t.Y8G("nzStringTemplateOutlet",Ze.tab.label)("nzStringTemplateOutletContext",t.lJ4(6,Tt))}}function xt(Oe,zt){if(1&Oe&&(t.j41(0,"ul",6),t.DNE(1,He,2,7,"li",7),t.k0s()),2&Oe){const Ze=t.XpG();t.R7$(),t.Y8G("ngForOf",Ze.items)}}function Lt(Oe,zt){if(1&Oe){const Ze=t.RV6();t.j41(0,"button",10),t.bIt("click",function(){t.eBV(Ze);const Le=t.XpG();return t.Njj(Le.addClicked.emit())}),t.k0s()}if(2&Oe){const Ze=t.XpG();t.Y8G("addIcon",Ze.addIcon)}}const ft=["navWarp"],St=["navList"],kt=["*"];function It(Oe,zt){if(1&Oe){const Ze=t.RV6();t.j41(0,"button",8),t.bIt("click",function(){t.eBV(Ze);const Le=t.XpG();return t.Njj(Le.addClicked.emit())}),t.k0s()}if(2&Oe){const Ze=t.XpG();t.Y8G("addIcon",Ze.addIcon),t.BMQ("tabindex",-1)}}function rn(Oe,zt){}function en(Oe,zt){if(1&Oe&&(t.j41(0,"div",9),t.DNE(1,rn,0,0,"ng-template",10),t.k0s()),2&Oe){const Ze=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",Ze.extraTemplate)}}const Xt=["nz-tab-body",""];function Tn(Oe,zt){}function Jn(Oe,zt){if(1&Oe&&(t.qex(0),t.DNE(1,Tn,0,0,"ng-template",1),t.bVm()),2&Oe){const Ze=t.XpG();t.R7$(),t.Y8G("ngTemplateOutlet",Ze.content)}}function Dn(Oe,zt){if(1&Oe&&(t.qex(0),t.nrm(1,"span",1),t.bVm()),2&Oe){const Ze=zt.$implicit;t.R7$(),t.Y8G("nzType",Ze)}}const Mt=["contentTemplate"],Ut=[[["","nz-tab-link",""]],"*"],wt=["[nz-tab-link]","*"];function Ft(Oe,zt){1&Oe&&t.SdG(0)}function Qt(Oe,zt){1&Oe&&t.SdG(0,1)}const Xe=()=>({visible:!0});function ke(Oe,zt){if(1&Oe&&(t.qex(0),t.EFF(1),t.bVm()),2&Oe){const Ze=t.XpG().$implicit;t.R7$(),t.JRh(Ze.label)}}function q(Oe,zt){if(1&Oe){const Ze=t.RV6();t.j41(0,"button",10),t.bIt("click",function(Le){t.eBV(Ze);const Y=t.XpG().index,le=t.XpG(2);return t.Njj(le.onClose(Y,Le))}),t.k0s()}if(2&Oe){const Ze=t.XpG().$implicit;t.Y8G("closeIcon",Ze.nzCloseIcon)}}function G(Oe,zt){if(1&Oe){const Ze=t.RV6();t.j41(0,"div",6),t.bIt("click",function(Le){const Y=t.eBV(Ze),le=Y.$implicit,V=Y.index,Ve=t.XpG(2);return t.Njj(Ve.clickNavItem(le,V,Le))})("contextmenu",function(Le){const Y=t.eBV(Ze).$implicit,le=t.XpG(2);return t.Njj(le.contextmenuNavItem(Y,Le))}),t.j41(1,"button",7),t.DNE(2,ke,2,1,"ng-container",8)(3,q,1,1,"button",9),t.k0s()()}if(2&Oe){const Ze=zt.$implicit,Ne=zt.index,Le=t.XpG(2);t.xc7("margin-right","horizontal"===Le.position?Le.nzTabBarGutter:null,"px")("margin-bottom","vertical"===Le.position?Le.nzTabBarGutter:null,"px"),t.AVh("ant-tabs-tab-active",Le.nzSelectedIndex===Ne)("ant-tabs-tab-disabled",Ze.nzDisabled),t.R7$(),t.Y8G("id",Le.getTabContentId(Ne))("disabled",Ze.nzDisabled)("tab",Ze)("active",Le.nzSelectedIndex===Ne),t.BMQ("tabIndex",Le.getTabIndex(Ze,Ne))("aria-disabled",Ze.nzDisabled)("aria-selected",Le.nzSelectedIndex===Ne&&!Le.nzHideAll)("aria-controls",Le.getTabContentId(Ne)),t.R7$(),t.Y8G("nzStringTemplateOutlet",Ze.label)("nzStringTemplateOutletContext",t.lJ4(19,Xe)),t.R7$(),t.Y8G("ngIf",Ze.nzClosable&&Le.closable&&!Ze.nzDisabled)}}function H(Oe,zt){if(1&Oe){const Ze=t.RV6();t.j41(0,"nz-tabs-nav",4),t.bIt("tabScroll",function(Le){t.eBV(Ze);const Y=t.XpG();return t.Njj(Y.nzTabListScroll.emit(Le))})("selectFocusedIndex",function(Le){t.eBV(Ze);const Y=t.XpG();return t.Njj(Y.setSelectedIndex(Le))})("addClicked",function(){t.eBV(Ze);const Le=t.XpG();return t.Njj(Le.onAdd())}),t.DNE(1,G,4,20,"div",5),t.k0s()}if(2&Oe){const Ze=t.XpG();t.Y8G("ngStyle",Ze.nzTabBarStyle)("selectedIndex",Ze.nzSelectedIndex||0)("inkBarAnimated",Ze.inkBarAnimated)("addable",Ze.addable)("addIcon",Ze.nzAddIcon)("hideBar",Ze.nzHideAll)("position",Ze.position)("extraTemplate",Ze.nzTabBarExtraContent),t.R7$(),t.Y8G("ngForOf",Ze.tabs)}}function ze(Oe,zt){if(1&Oe&&t.nrm(0,"div",11),2&Oe){const Ze=zt.$implicit,Ne=zt.index,Le=t.XpG();t.Y8G("id",Le.getTabContentId(Ne))("active",Le.nzSelectedIndex===Ne&&!Le.nzHideAll)("content",Ze.content)("forceRender",Ze.nzForceRender)("animated",Le.tabPaneAnimated),t.BMQ("aria-labelledby",Le.getTabContentId(Ne))}}let Qe=(()=>{class Oe{constructor(Ze){this.elementRef=Ze,this.addIcon="plus",this.element=this.elementRef.nativeElement}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({type:Oe,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Ne,Le){1&Ne&&t.DNE(0,je,2,1,"ng-container",0),2&Ne&&t.Y8G("nzStringTemplateOutlet",Le.addIcon)},dependencies:[r.C,r.m,m.Y3,m.Dn],encapsulation:2})}return Oe})(),ht=(()=>{class Oe{get _animated(){return"NoopAnimations"!==this.animationMode&&this.animated}constructor(Ze,Ne,Le){this.elementRef=Ze,this.ngZone=Ne,this.animationMode=Le,this.position="horizontal",this.animated=!0}alignToElement(Ze){this.ngZone.runOutsideAngular(()=>{(0,e.j)(()=>this.setStyles(Ze))})}setStyles(Ze){const Ne=this.elementRef.nativeElement;"horizontal"===this.position?(Ne.style.top="",Ne.style.height="",Ne.style.left=this.getLeftPosition(Ze),Ne.style.width=this.getElementWidth(Ze)):(Ne.style.left="",Ne.style.width="",Ne.style.top=this.getTopPosition(Ze),Ne.style.height=this.getElementHeight(Ze))}getLeftPosition(Ze){return Ze?`${Ze.offsetLeft||0}px`:"0"}getElementWidth(Ze){return Ze?`${Ze.offsetWidth||0}px`:"0"}getTopPosition(Ze){return Ze?`${Ze.offsetTop||0}px`:"0"}getElementHeight(Ze){return Ze?`${Ze.offsetHeight||0}px`:"0"}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(t.aKT),t.rXU(t.SKi),t.rXU(t.bc$,8))};static#t=this.\u0275dir=t.FsC({type:Oe,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(Ne,Le){2&Ne&&t.AVh("ant-tabs-ink-bar-animated",Le._animated)},inputs:{position:"position",animated:"animated"},standalone:!0})}return Oe})(),Kt=(()=>{class Oe{constructor(Ze){this.elementRef=Ze,this.disabled=!1,this.active=!1,this.el=Ze.nativeElement,this.parentElement=this.el.parentElement}focus(){this.el.focus()}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Oe,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",t.L39],tab:"tab",active:[2,"active","active",t.L39]},standalone:!0,features:[t.GFd]})}return Oe})(),fn=(()=>{class Oe{constructor(Ze,Ne){this.cdr=Ze,this.elementRef=Ne,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new t.bkB,this.selected=new t.bkB,this.menuOpened=!1,this.element=this.elementRef.nativeElement}onSelect(Ze){Ze.disabled||(Ze.tab.nzClick.emit(),this.selected.emit(Ze))}onContextmenu(Ze,Ne){Ze.disabled||Ze.tab.nzContextmenu.emit(Ne)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(Ze){Ze||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(t.gRc),t.rXU(t.aKT))};static#t=this.\u0275cmp=t.VBU({type:Oe,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(Ne,Le){2&Ne&&t.AVh("ant-tabs-nav-operations-hidden",0===Le.items.length)},inputs:{items:"items",addable:[2,"addable","addable",t.L39],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],standalone:!0,features:[t.GFd,t.aNF],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nz-icon","","nzType","ellipsis"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(Ne,Le){if(1&Ne){const Y=t.RV6();t.j41(0,"button",2,0),t.bIt("nzVisibleChange",function(V){return t.eBV(Y),t.Njj(Le.menuVisChange(V))})("mouseenter",function(){return t.eBV(Y),t.Njj(Le.showItems())}),t.nrm(2,"span",3),t.k0s(),t.j41(3,"nz-dropdown-menu",null,1),t.DNE(5,xt,2,1,"ul",4),t.k0s(),t.DNE(6,Lt,1,1,"button",5)}if(2&Ne){const Y=t.sdS(4);t.Y8G("nzDropdownMenu",Y)("nzOverlayStyle",t.lJ4(5,Bt))("nzMatchWidthElement",null),t.R7$(5),t.Y8G("ngIf",Le.menuOpened),t.R7$(),t.Y8G("ngIf",Le.addable)}},dependencies:[m.Y3,m.Dn,$.bT,$.Sq,r.C,r.m,Qe,ve.wQ,pe.GP,pe.jS,pe.CU,ve.j3],encapsulation:2,changeDetection:0})}return Oe})();const $n=.995**20;let Nn=(()=>{class Oe{constructor(Ze,Ne){this.ngZone=Ze,this.elementRef=Ne,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=()=>{},this.offsetChange=new t.bkB,this.tabScroll=new t.bkB,this.onTouchEnd=Le=>{if(!this.touchPosition)return;const Y=this.lastOffset,le=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,Y){const V=Y.x/le,Ve=Y.y/le,Ce=Math.abs(V),J=Math.abs(Ve);if(Math.max(Ce,J)<.1)return;let W=V,_e=Ve;this.motion=window.setInterval(()=>{Math.abs(W)<.01&&Math.abs(_e)<.01?window.clearInterval(this.motion):(W*=$n,_e*=$n,this.onOffset(20*W,20*_e,Le))},20)}},this.onTouchMove=Le=>{if(!this.touchPosition)return;Le.preventDefault();const{screenX:Y,screenY:le}=Le.touches[0],V=Y-this.touchPosition.x,Ve=le-this.touchPosition.y;this.onOffset(V,Ve,Le);const Ce=Date.now();this.lastTimeDiff=Ce-this.lastTimestamp,this.lastTimestamp=Ce,this.lastOffset={x:V,y:Ve},this.touchPosition={x:Y,y:le}},this.onTouchStart=Le=>{const{screenX:Y,screenY:le}=Le.touches[0];this.touchPosition={x:Y,y:le},window.clearInterval(this.motion)},this.onWheel=Le=>{const{deltaX:Y,deltaY:le}=Le;let V;const Ve=Math.abs(Y),Ce=Math.abs(le);Ve===Ce?V="x"===this.lastWheelDirection?Y:le:Ve>Ce?(V=Y,this.lastWheelDirection="x"):(V=le,this.lastWheelDirection="y");const J=Date.now(),W=Math.abs(V);(J-this.lastWheelTimestamp>100||W-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-V,-V,Le),(Le.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=J,this.lastMixedWheel=W}}ngOnInit(){this.unsubscribe=this.ngZone.runOutsideAngular(()=>{const Ze=this.elementRef.nativeElement,Ne=(0,k.R)(Ze,"wheel"),Le=(0,k.R)(Ze,"touchstart"),Y=(0,k.R)(Ze,"touchmove"),le=(0,k.R)(Ze,"touchend"),V=new I.yU;return V.add(this.subscribeWrap("wheel",Ne,this.onWheel)),V.add(this.subscribeWrap("touchstart",Le,this.onTouchStart)),V.add(this.subscribeWrap("touchmove",Y,this.onTouchMove)),V.add(this.subscribeWrap("touchend",le,this.onTouchEnd)),()=>{V.unsubscribe()}})}subscribeWrap(Ze,Ne,Le){return Ne.subscribe(Y=>{this.tabScroll.emit({type:Ze,event:Y}),Y.defaultPrevented||Le(Y)})}onOffset(Ze,Ne,Le){this.ngZone.run(()=>{this.offsetChange.emit({x:Ze,y:Ne,event:Le})})}ngOnDestroy(){this.unsubscribe()}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(t.SKi),t.rXU(t.aKT))};static#t=this.\u0275dir=t.FsC({type:Oe,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"},standalone:!0})}return Oe})();const vn=typeof requestAnimationFrame<"u"?w.X:P.$;let An=(()=>{class Oe{get selectedIndex(){return this._selectedIndex}set selectedIndex(Ze){const Ne=(0,j.OE)(Ze);this._selectedIndex!==Ne&&(this._selectedIndex=Ze,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(Ze))}get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(Ze){!this.isValidIndex(Ze)||this.focusIndex===Ze||!this.keyManager||this.keyManager.setActiveItem(Ze)}get showAddButton(){return 0===this.hiddenItems.length&&this.addable}constructor(Ze,Ne,Le,Y,le){this.cdr=Ze,this.ngZone=Ne,this.viewportRuler=Le,this.nzResizeObserver=Y,this.dir=le,this.indexFocused=new t.bkB,this.selectFocusedIndex=new t.bkB,this.addClicked=new t.bkB,this.tabScroll=new t.bkB,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new Q.B,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1}ngAfterViewInit(){const Ze=this.dir?this.dir.change.asObservable():(0,N.of)(null),Ne=this.viewportRuler.change(150),Le=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new z.Bu(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),(0,e.j)(Le),(0,x.h)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe((0,oe.Q)(this.destroy$),(0,ee.Z)(16,vn)).subscribe(()=>{Le()}),(0,x.h)(Ze,Ne,this.items.changes).pipe((0,oe.Q)(this.destroy$)).subscribe(()=>{Promise.resolve().then(Le),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe((0,oe.Q)(this.destroy$)).subscribe(Y=>{this.indexFocused.emit(Y),this.setTabFocus(Y),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}ngOnDestroy(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}onSelectedFromMenu(Ze){const Ne=this.items.toArray().findIndex(Le=>Le===Ze);-1!==Ne&&(this.keyManager.updateActiveItem(Ne),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(Ze)))}onOffsetChange(Ze){if("horizontal"===this.position){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&Ze.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&Ze.x<0))return;Ze.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+Ze.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&Ze.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&Ze.y<0))return;Ze.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+Ze.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(Ze){const Ne=this.navWarpRef.nativeElement.contains(Ze.target);if(!(0,R.rp)(Ze)&&Ne)switch(Ze.keyCode){case R.UQ:case R.i7:case R.LE:case R.n6:this.lockAnimation(),this.keyManager.onKeydown(Ze);break;case R.Fm:case R.t6:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(Ze)}}isValidIndex(Ze){if(!this.items)return!0;const Ne=this.items?this.items.toArray()[Ze]:null;return!!Ne&&!Ne.disabled}scrollToTab(Ze){if(!this.items.find(Le=>Le===Ze))return;const Ne=this.items.toArray();if("horizontal"===this.position){let Le=this.transformX;if("rtl"===this.getLayoutDirection()){const Y=Ne[0].left+Ne[0].width-Ze.left-Ze.width;Ythis.transformX+this.wrapperWidth&&(Le=Y+Ze.width-this.wrapperWidth)}else Ze.left<-this.transformX?Le=-Ze.left:Ze.left+Ze.width>-this.transformX+this.wrapperWidth&&(Le=-(Ze.left+Ze.width-this.wrapperWidth));this.transformX=Le,this.transformY=0,this.setTransform(Le,0)}else{let Le=this.transformY;Ze.top<-this.transformY?Le=-Ze.top:Ze.top+Ze.height>-this.transformY+this.wrapperHeight&&(Le=-(Ze.top+Ze.height-this.wrapperHeight)),this.transformY=Le,this.transformX=0,this.setTransform(0,Le)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},150)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},150)})}setTransform(Ze,Ne){this.navListRef.nativeElement.style.transform=`translate(${Ze}px, ${Ne}px)`}clampTransformX(Ze){const Ne=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(Ne,Ze),0):Math.min(Math.max(Ne,Ze),0)}clampTransformY(Ze){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,Ze),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){const Ze=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,Ne=Ze?Ze.elementRef.nativeElement:null;Ne&&this.inkBar.alignToElement(Ne.parentElement)}setPingStatus(){const Ze={top:!1,right:!1,bottom:!1,left:!1},Ne=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(Ze.right=this.transformX>0,Ze.left=this.transformX+this.wrapperWidth{const Y=`ant-tabs-nav-wrap-ping-${Le}`;Ze[Le]?Ne.classList.add(Y):Ne.classList.remove(Y)})}setVisibleRange(){let Ze,Ne,Le,Y,le,V;const Ve=this.items.toArray(),Ce={width:0,height:0,left:0,top:0,right:0},J=wn=>{let si;return si="right"===Ne?Ve[0].left+Ve[0].width-Ve[wn].left-Ve[wn].width:(Ve[wn]||Ce)[Ne],si};"horizontal"===this.position?(Ze="width",Y=this.wrapperWidth,le=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),V=this.addButtonWidth,Le=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(Ne="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidthY&&(W=Y-V),!Ve.length)return this.hiddenItems=[],void this.cdr.markForCheck();const _e=Ve.length;let it=_e;for(let wn=0;wn<_e;wn+=1)if(J(wn)+(Ve[wn]||Ce)[Ze]>Le+W){it=wn-1;break}let dt=0;for(let wn=_e-1;wn>=0;wn-=1)if(J(wn){class Oe{constructor(){this.content=null,this.active=!1,this.animated=!0,this.forceRender=!1,this.hasBeenActive=!1}ngOnChanges(Ze){const{active:Ne}=Ze;Ne?.currentValue&&(this.hasBeenActive=!0)}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)};static#t=this.\u0275cmp=t.VBU({type:Oe,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(Ne,Le){2&Ne&&(t.zvX("@tabSwitchMotion",Le.active?"enter":"leave")("@.disabled",!Le.animated),t.BMQ("tabindex",Le.active?0:-1)("aria-hidden",!Le.active),t.xc7("overflow-y",Le.animated?Le.active?null:"none":null),t.AVh("ant-tabs-tabpane-active",Le.active)("ant-tabs-tabpane-hidden",Le.animated?null:!Le.active))},inputs:{content:"content",active:"active",animated:"animated",forceRender:"forceRender"},exportAs:["nzTabBody"],standalone:!0,features:[t.OA$,t.aNF],attrs:Xt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(Ne,Le){1&Ne&&t.DNE(0,Jn,2,1,"ng-container",0),2&Ne&&t.Y8G("ngIf",Le.hasBeenActive||Le.forceRender)},dependencies:[$.bT,$.T3],encapsulation:2,data:{animation:[ge.eF]},changeDetection:0})}return Oe})(),Je=(()=>{class Oe{constructor(){this.closeIcon="close"}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)};static#t=this.\u0275cmp=t.VBU({type:Oe,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(Ne,Le){1&Ne&&t.DNE(0,Dn,2,1,"ng-container",0),2&Ne&&t.Y8G("nzStringTemplateOutlet",Le.closeIcon)},dependencies:[r.C,r.m,m.Y3,m.Dn],encapsulation:2})}return Oe})(),ae=(()=>{class Oe{constructor(Ze){this.templateRef=Ze}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(t.C4Q,1))};static#t=this.\u0275dir=t.FsC({type:Oe,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"],standalone:!0})}return Oe})(),ie=(()=>{class Oe{constructor(Ze,Ne){this.elementRef=Ze,this.routerLink=Ne}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(t.aKT),t.rXU(T.Wk,10))};static#t=this.\u0275dir=t.FsC({type:Oe,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"],standalone:!0})}return Oe})(),re=(()=>{class Oe{static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)};static#t=this.\u0275dir=t.FsC({type:Oe,selectors:[["","nz-tab",""]],exportAs:["nzTab"],standalone:!0})}return Oe})();const et=new t.nKC("NZ_TAB_SET");let _t=(()=>{class Oe{get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}constructor(Ze){this.closestTabSet=Ze,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new t.bkB,this.nzDeselect=new t.bkB,this.nzClick=new t.bkB,this.nzContextmenu=new t.bkB,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new Q.B}ngOnChanges(Ze){const{nzTitle:Ne,nzDisabled:Le,nzForceRender:Y}=Ze;(Ne||Le||Y)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(et))};static#t=this.\u0275cmp=t.VBU({type:Oe,selectors:[["nz-tab"]],contentQueries:function(Ne,Le,Y){if(1&Ne&&(t.wni(Y,ae,5),t.wni(Y,re,5,t.C4Q),t.wni(Y,ie,5)),2&Ne){let le;t.mGM(le=t.lsd())&&(Le.nzTabLinkTemplateDirective=le.first),t.mGM(le=t.lsd())&&(Le.template=le.first),t.mGM(le=t.lsd())&&(Le.linkDirective=le.first)}},viewQuery:function(Ne,Le){if(1&Ne&&t.GBs(Mt,7),2&Ne){let Y;t.mGM(Y=t.lsd())&&(Le.contentTemplate=Y.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",t.L39],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzForceRender:[2,"nzForceRender","nzForceRender",t.L39]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:wt,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(Ne,Le){1&Ne&&(t.NAR(Ut),t.DNE(0,Ft,1,0,"ng-template",null,0,t.C5r)(2,Qt,1,0,"ng-template",null,1,t.C5r))},encapsulation:2,changeDetection:0})}return Oe})();class mt{}let ct=0,Se=(()=>{class Oe{get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(Ze){this.indexToSelect=(0,j.OE)(Ze,null)}get position(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}get addable(){return"editable-card"===this.nzType&&!this.nzHideAdd}get closable(){return"editable-card"===this.nzType}get line(){return"line"===this.nzType}get inkBarAnimated(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return"boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane}constructor(Ze,Ne,Le,Y,le){this.nzConfigService=Ze,this.ngZone=Ne,this.cdr=Le,this.directionality=Y,this.router=le,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new t.bkB(!0),this.nzSelectedIndexChange=new t.bkB,this.nzTabListScroll=new t.bkB,this.nzClose=new t.bkB,this.nzAdd=new t.bkB,this.allTabs=new t.rOR,this.tabs=new t.rOR,this.dir="ltr",this.destroy$=new Q.B,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=I.yU.EMPTY,this.tabsSubscription=I.yU.EMPTY,this.canDeactivateSubscription=I.yU.EMPTY,this.tabSetId=ct++}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe((0,oe.Q)(this.destroy$)).subscribe(Ze=>{this.dir=Ze,this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){const Ne=this.tabs.toArray();for(let Le=0;Le{this.tabs.forEach((Le,Y)=>Le.isActive=Y===Ze),Ne||this.nzSelectedIndexChange.emit(Ze)})}this.tabs.forEach((Ne,Le)=>{Ne.position=Le-Ze,null!=this.selectedIndex&&0===Ne.position&&!Ne.origin&&(Ne.origin=Ze-this.selectedIndex)}),this.selectedIndex!==Ze&&(this.selectedIndex=Ze,this.cdr.markForCheck())}onClose(Ze,Ne){Ne.preventDefault(),Ne.stopPropagation(),this.nzClose.emit({index:Ze})}onAdd(){this.nzAdd.emit()}clampTabIndex(Ze){return Math.min(this.tabs.length-1,Math.max(Ze||0,0))}createChangeEvent(Ze){const Ne=new mt;return Ne.index=Ze,this.tabs&&this.tabs.length&&(Ne.tab=this.tabs.toArray()[Ze],this.tabs.forEach((Le,Y)=>{Y!==Ze&&Le.nzDeselect.emit()}),Ne.tab.nzSelect.emit()),Ne}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=(0,x.h)(...this.tabs.map(Ze=>Ze.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe((0,Ee.Z)(this.allTabs)).subscribe(Ze=>{this.tabs.reset(Ze.filter(Ne=>Ne.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(Ze,Ne){return"function"==typeof this.nzCanDeactivate?(0,se.cG)(this.nzCanDeactivate(Ze,Ne)).pipe((0,Ie.$)(),(0,oe.Q)(this.destroy$)):(0,N.of)(!0)}clickNavItem(Ze,Ne,Le){Ze.nzDisabled||(Ze.nzClick.emit(),this.isRouterLinkClickEvent(Ne,Le)||this.setSelectedIndex(Ne))}isRouterLinkClickEvent(Ze,Ne){const Le=Ne.target;return!!this.nzLinkRouter&&!!this.tabs.toArray()[Ze]?.linkDirective?.elementRef.nativeElement.contains(Le)}contextmenuNavItem(Ze,Ne){Ze.nzDisabled||Ze.nzContextmenu.emit(Ne)}setSelectedIndex(Ze){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,Ze).subscribe(Ne=>{Ne&&(this.nzSelectedIndex=Ze,this.tabNavBarRef.focusIndex=Ze,this.cdr.markForCheck())})}getTabIndex(Ze,Ne){return Ze.nzDisabled?null:this.selectedIndex===Ne?0:-1}getTabContentId(Ze){return`nz-tabs-${this.tabSetId}-tab-${Ze}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${X.H3} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);this.router.events.pipe((0,oe.Q)(this.destroy$),(0,ce.p)(Ze=>Ze instanceof T.wF),(0,Ee.Z)(!0),(0,Pe.c)(0)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router.navigated){const Ze=this.findShouldActiveTabIndex();Ze!==this.selectedIndex&&this.setSelectedIndex(Ze),this.nzHideAll=-1===Ze}}findShouldActiveTabIndex(){const Ze=this.tabs.toArray(),Ne=this.isLinkActive(this.router);return Ze.findIndex(Le=>{const Y=Le.linkDirective;return!!Y&&Ne(Y.routerLink)})}isLinkActive(Ze){return Ne=>!!Ne&&Ze.isActive(Ne.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"})}static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)(t.rXU(A.yx),t.rXU(t.SKi),t.rXU(t.gRc),t.rXU(te.dS,8),t.rXU(T.Ix,8))};static#t=this.\u0275cmp=t.VBU({type:Oe,selectors:[["nz-tabset"]],contentQueries:function(Ne,Le,Y){if(1&Ne&&t.wni(Y,_t,5),2&Ne){let le;t.mGM(le=t.lsd())&&(Le.allTabs=le)}},viewQuery:function(Ne,Le){if(1&Ne&&t.GBs(An,5),2&Ne){let Y;t.mGM(Y=t.lsd())&&(Le.tabNavBarRef=Y.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(Ne,Le){2&Ne&&t.AVh("ant-tabs-card","card"===Le.nzType||"editable-card"===Le.nzType)("ant-tabs-editable","editable-card"===Le.nzType)("ant-tabs-editable-card","editable-card"===Le.nzType)("ant-tabs-centered",Le.nzCentered)("ant-tabs-rtl","rtl"===Le.dir)("ant-tabs-top","top"===Le.nzTabPosition)("ant-tabs-bottom","bottom"===Le.nzTabPosition)("ant-tabs-left","left"===Le.nzTabPosition)("ant-tabs-right","right"===Le.nzTabPosition)("ant-tabs-default","default"===Le.nzSize)("ant-tabs-small","small"===Le.nzSize)("ant-tabs-large","large"===Le.nzSize)},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",t.L39],nzCentered:[2,"nzCentered","nzCentered",t.L39],nzHideAll:[2,"nzHideAll","nzHideAll",t.L39],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",t.L39],nzLinkExact:[2,"nzLinkExact","nzLinkExact",t.L39]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],standalone:!0,features:[t.Jv_([{provide:et,useExisting:Oe}]),t.GFd,t.aNF],decls:4,vars:12,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","animated",4,"ngFor","ngForOf"],[3,"tabScroll","selectFocusedIndex","addClicked","ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],["role","tabpanel","nz-tab-body","",3,"id","active","content","forceRender","animated"]],template:function(Ne,Le){1&Ne&&(t.DNE(0,H,2,9,"nz-tabs-nav",0),t.j41(1,"div",1)(2,"div",2),t.DNE(3,ze,1,6,"div",3),t.k0s()()),2&Ne&&(t.Y8G("ngIf",Le.tabs.length||Le.addable),t.R7$(2),t.AVh("ant-tabs-content-top","top"===Le.nzTabPosition)("ant-tabs-content-bottom","bottom"===Le.nzTabPosition)("ant-tabs-content-left","left"===Le.nzTabPosition)("ant-tabs-content-right","right"===Le.nzTabPosition)("ant-tabs-content-animated",Le.tabPaneAnimated),t.R7$(),t.Y8G("ngForOf",Le.tabs))},dependencies:[An,$.bT,$.B3,$.Sq,Kt,z.Pd,z.vR,r.C,r.m,Je,Yt],encapsulation:2})}return(0,D.Cg)([(0,A.H4)()],Oe.prototype,"nzType",void 0),(0,D.Cg)([(0,A.H4)()],Oe.prototype,"nzSize",void 0),(0,D.Cg)([(0,A.H4)()],Oe.prototype,"nzAnimated",void 0),(0,D.Cg)([(0,A.H4)()],Oe.prototype,"nzTabBarGutter",void 0),Oe})(),de=(()=>{class Oe{static#e=this.\u0275fac=function(Ne){return new(Ne||Oe)};static#t=this.\u0275mod=t.$C({type:Oe});static#n=this.\u0275inj=t.G2t({imports:[Se,An,fn,Qe,Je]})}return Oe})()},5699:($t,De,a)=>{a.d(De,{T:()=>w,s:()=>I});var t=a(177),r=a(3953),m=a(1413),e=a(6977),z=a(6006),j=a(5103),R=a(8203);const $=["*"];function k(P,Q){if(1&P){const N=r.RV6();r.j41(0,"span",1),r.bIt("click",function(oe){r.eBV(N);const ee=r.XpG();return r.Njj(ee.closeTag(oe))}),r.k0s()}}let I=(()=>{class P{constructor(N,x,oe,ee){this.cdr=N,this.renderer=x,this.elementRef=oe,this.directionality=ee,this.isPresetColor=!1,this.nzMode="default",this.nzChecked=!1,this.nzBordered=!0,this.nzOnClose=new r.bkB,this.nzCheckedChange=new r.bkB,this.dir="ltr",this.destroy$=new m.B}updateCheckedStatus(){"checkable"===this.nzMode&&(this.nzChecked=!this.nzChecked,this.nzCheckedChange.emit(this.nzChecked))}closeTag(N){this.nzOnClose.emit(N),N.defaultPrevented||this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}clearPresetColor(){const N=this.elementRef.nativeElement,x=new RegExp(`(ant-tag-(?:${[...z.un,...z.PA].join("|")}))`,"g"),oe=N.classList.toString(),ee=[];let Ee=x.exec(oe);for(;null!==Ee;)ee.push(Ee[1]),Ee=x.exec(oe);N.classList.remove(...ee)}setPresetColor(){const N=this.elementRef.nativeElement;this.clearPresetColor(),this.isPresetColor=!!this.nzColor&&((0,z.nP)(this.nzColor)||(0,z.uP)(this.nzColor)),this.isPresetColor&&N.classList.add(`ant-tag-${this.nzColor}`)}ngOnInit(){this.directionality.change?.pipe((0,e.Q)(this.destroy$)).subscribe(N=>{this.dir=N,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(N){const{nzColor:x}=N;x&&this.setPresetColor()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static#e=this.\u0275fac=function(x){return new(x||P)(r.rXU(r.gRc),r.rXU(r.sFG),r.rXU(r.aKT),r.rXU(R.dS,8))};static#t=this.\u0275cmp=r.VBU({type:P,selectors:[["nz-tag"]],hostAttrs:[1,"ant-tag"],hostVars:12,hostBindings:function(x,oe){1&x&&r.bIt("click",function(){return oe.updateCheckedStatus()}),2&x&&(r.xc7("background-color",oe.isPresetColor?"":oe.nzColor),r.AVh("ant-tag-has-color",oe.nzColor&&!oe.isPresetColor)("ant-tag-checkable","checkable"===oe.nzMode)("ant-tag-checkable-checked",oe.nzChecked)("ant-tag-rtl","rtl"===oe.dir)("ant-tag-borderless",!oe.nzBordered))},inputs:{nzMode:"nzMode",nzColor:"nzColor",nzChecked:[2,"nzChecked","nzChecked",r.L39],nzBordered:[2,"nzBordered","nzBordered",r.L39]},outputs:{nzOnClose:"nzOnClose",nzCheckedChange:"nzCheckedChange"},exportAs:["nzTag"],standalone:!0,features:[r.GFd,r.OA$,r.aNF],ngContentSelectors:$,decls:2,vars:1,consts:[["nz-icon","","nzType","close","class","ant-tag-close-icon","tabindex","-1",3,"click",4,"ngIf"],["nz-icon","","nzType","close","tabindex","-1",1,"ant-tag-close-icon",3,"click"]],template:function(x,oe){1&x&&(r.NAR(),r.SdG(0),r.DNE(1,k,1,0,"span",0)),2&x&&(r.R7$(),r.Y8G("ngIf","closeable"===oe.nzMode))},dependencies:[j.Y3,j.Dn,t.bT],encapsulation:2,changeDetection:0})}return P})(),w=(()=>{class P{static#e=this.\u0275fac=function(x){return new(x||P)};static#t=this.\u0275mod=r.$C({type:P});static#n=this.\u0275inj=r.G2t({imports:[I]})}return P})()},5154:($t,De,a)=>{a.d(De,{LH:()=>M,ME:()=>ve,Qt:()=>ge,VJ:()=>te,t:()=>U});var t=a(7987),r=a(177),m=a(3953),e=a(713),z=a(6006),j=a(6841),R=a(7806),$=a(5463),k=a(6860),I=a(1413),w=a(5007),P=a(3294),Q=a(6977),N=a(5964),x=a(1986),oe=a(6042),ee=a(317),Ee=a(8203);const Ie=["overlay"];function ce(T,D){if(1&T&&(m.qex(0),m.EFF(1),m.bVm()),2&T){const A=m.XpG(2);m.R7$(),m.JRh(A.nzTitle)}}function Pe(T,D){if(1&T&&(m.j41(0,"div",2)(1,"div",3)(2,"div",4),m.nrm(3,"span",5),m.k0s(),m.j41(4,"div",6),m.DNE(5,ce,2,1,"ng-container",7),m.k0s()()()),2&T){const A=m.XpG();m.AVh("ant-tooltip-rtl","rtl"===A.dir),m.Y8G("ngClass",A._classMap)("ngStyle",A.nzOverlayStyle)("@.disabled",!(null==A.noAnimation||!A.noAnimation.nzNoAnimation))("nzNoAnimation",null==A.noAnimation?null:A.noAnimation.nzNoAnimation)("@zoomBigMotion","active"),m.R7$(3),m.Y8G("ngStyle",A._contentStyleMap),m.R7$(),m.Y8G("ngStyle",A._contentStyleMap),m.R7$(),m.Y8G("nzStringTemplateOutlet",A.nzTitle)("nzStringTemplateOutletContext",A.nzTitleContext)}}let ve=(()=>{class T{get _title(){return this.title||this.directiveTitle||null}get _content(){return this.content||this.directiveContent||null}get _trigger(){return typeof this.trigger<"u"?this.trigger:"hover"}get _placement(){const A=this.placement;return Array.isArray(A)&&A.length>0?A:"string"==typeof A&&A?[A]:["top"]}get _visible(){return(typeof this.visible<"u"?this.visible:this.internalVisible)||!1}get _mouseEnterDelay(){return this.mouseEnterDelay||.15}get _mouseLeaveDelay(){return this.mouseLeaveDelay||.1}get _overlayClassName(){return this.overlayClassName||null}get _overlayStyle(){return this.overlayStyle||null}getProxyPropertyMap(){return{noAnimation:["noAnimation",()=>!!this.noAnimation]}}constructor(A){this.componentType=A,this.visibleChange=new m.bkB,this.internalVisible=!1,this.destroy$=new I.B,this.triggerDisposables=[],this.elementRef=(0,m.WQX)(m.aKT),this.hostView=(0,m.WQX)(m.c1b),this.renderer=(0,m.WQX)(m.sFG),this.noAnimation=(0,m.WQX)(j.z,{host:!0,optional:!0}),this.nzConfigService=(0,m.WQX)(oe.yx),this.platformId=(0,m.WQX)(m.Agw)}ngAfterViewInit(){(0,r.UE)(this.platformId)&&(this.createComponent(),this.registerTriggers())}ngOnChanges(A){const{trigger:X}=A;X&&!X.isFirstChange()&&this.registerTriggers(),this.component&&this.updatePropertiesByChanges(A)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.clearTogglingTimer(),this.removeTriggerListeners()}show(){this.component?.show()}hide(){this.component?.hide()}updatePosition(){this.component&&this.component.updatePosition()}createComponent(){const A=this.hostView.createComponent(this.componentType);this.component=A.instance,this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),A.location.nativeElement),this.component.setOverlayOrigin(this.origin||this.elementRef),this.initProperties();const X=this.component.nzVisibleChange.pipe((0,P.F)());X.pipe((0,Q.Q)(this.destroy$)).subscribe(se=>{this.internalVisible=se,this.visibleChange.emit(se)}),X.pipe((0,N.p)(se=>se),(0,x.c)(0,w.$),(0,N.p)(()=>!!this.component?.overlay?.overlayRef),(0,Q.Q)(this.destroy$)).subscribe(()=>{this.component?.updatePosition()})}registerTriggers(){const A=this.elementRef.nativeElement,X=this.trigger;if(this.removeTriggerListeners(),"hover"===X){let se;this.triggerDisposables.push(this.renderer.listen(A,"mouseenter",()=>{this.delayEnterLeave(!0,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(A,"mouseleave",()=>{this.delayEnterLeave(!0,!1,this._mouseLeaveDelay),this.component?.overlay.overlayRef&&!se&&(se=this.component.overlay.overlayRef.overlayElement,this.triggerDisposables.push(this.renderer.listen(se,"mouseenter",()=>{this.delayEnterLeave(!1,!0,this._mouseEnterDelay)})),this.triggerDisposables.push(this.renderer.listen(se,"mouseleave",()=>{this.delayEnterLeave(!1,!1,this._mouseLeaveDelay)})))}))}else"focus"===X?(this.triggerDisposables.push(this.renderer.listen(A,"focusin",()=>this.show())),this.triggerDisposables.push(this.renderer.listen(A,"focusout",()=>this.hide()))):"click"===X&&this.triggerDisposables.push(this.renderer.listen(A,"click",se=>{se.preventDefault(),this.show()}))}updatePropertiesByChanges(A){this.updatePropertiesByKeys(Object.keys(A))}updatePropertiesByKeys(A){const X={title:["nzTitle",()=>this._title],directiveTitle:["nzTitle",()=>this._title],content:["nzContent",()=>this._content],directiveContent:["nzContent",()=>this._content],trigger:["nzTrigger",()=>this._trigger],placement:["nzPlacement",()=>this._placement],visible:["nzVisible",()=>this._visible],mouseEnterDelay:["nzMouseEnterDelay",()=>this._mouseEnterDelay],mouseLeaveDelay:["nzMouseLeaveDelay",()=>this._mouseLeaveDelay],overlayClassName:["nzOverlayClassName",()=>this._overlayClassName],overlayStyle:["nzOverlayStyle",()=>this._overlayStyle],arrowPointAtCenter:["nzArrowPointAtCenter",()=>this.arrowPointAtCenter],cdkConnectedOverlayPush:["cdkConnectedOverlayPush",()=>this.cdkConnectedOverlayPush],...this.getProxyPropertyMap()};(A||Object.keys(X).filter(se=>!se.startsWith("directive"))).forEach(se=>{if(X[se]){const[je,Bt]=X[se];this.updateComponentValue(je,Bt())}}),this.component?.updateByDirective()}initProperties(){this.updatePropertiesByKeys()}updateComponentValue(A,X){typeof X<"u"&&(this.component[A]=X)}delayEnterLeave(A,X,se=-1){this.delayTimer?this.clearTogglingTimer():se>0?this.delayTimer=setTimeout(()=>{this.delayTimer=void 0,X?this.show():this.hide()},1e3*se):X&&A?this.show():this.hide()}removeTriggerListeners(){this.triggerDisposables.forEach(A=>A()),this.triggerDisposables.length=0}clearTogglingTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=void 0)}static#e=this.\u0275fac=function(X){return new(X||T)(m.rXU(m.ZUJ))};static#t=this.\u0275dir=m.FsC({type:T,features:[m.OA$]})}return T})(),pe=(()=>{class T{set nzVisible(A){const X=(0,ee.G4)(A);this._visible!==X&&(this._visible=X,this.nzVisibleChange.next(X))}get nzVisible(){return this._visible}set nzTrigger(A){this._trigger=A}get nzTrigger(){return this._trigger}set nzPlacement(A){const X=A.map(se=>$.pn[se]);this._positions=[...X,...$.Js]}constructor(A,X,se){this.cdr=A,this.directionality=X,this.noAnimation=se,this.nzTitle=null,this.nzContent=null,this.nzArrowPointAtCenter=!1,this.nzOverlayStyle={},this.nzBackdrop=!1,this.cdkConnectedOverlayPush=!0,this.nzVisibleChange=new I.B,this._visible=!1,this._trigger="hover",this.preferredPlacement="top",this.dir="ltr",this._classMap={},this._prefix="ant-tooltip",this._positions=[...$.Js],this.destroy$=new I.B}ngOnInit(){this.directionality.change?.pipe((0,Q.Q)(this.destroy$)).subscribe(A=>{this.dir=A,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnDestroy(){this.nzVisibleChange.complete(),this.destroy$.next(),this.destroy$.complete()}show(){this.nzVisible||(this.isEmpty()||(this.nzVisible=!0,this.nzVisibleChange.next(!0),this.cdr.detectChanges()),this.origin&&this.overlay&&this.overlay.overlayRef&&"rtl"===this.overlay.overlayRef.getDirection()&&this.overlay.overlayRef.setDirection("ltr"))}hide(){this.nzVisible&&(this.nzVisible=!1,this.nzVisibleChange.next(!1),this.cdr.detectChanges())}updateByDirective(){this.updateStyles(),this.cdr.detectChanges(),Promise.resolve().then(()=>{this.updatePosition(),this.updateVisibilityByTitle()})}updatePosition(){this.origin&&this.overlay&&this.overlay.overlayRef&&this.overlay.overlayRef.updatePosition()}onPositionChange(A){this.preferredPlacement=(0,$.jj)(A),this.updateStyles(),this.cdr.detectChanges()}setOverlayOrigin(A){this.origin=A,this.cdr.markForCheck()}onClickOutside(A){const X=(0,k.Fb)(A);!this.origin.nativeElement.contains(X)&&null!==this.nzTrigger&&this.hide()}updateVisibilityByTitle(){this.isEmpty()&&this.hide()}updateStyles(){this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0}}static#e=this.\u0275fac=function(X){return new(X||T)(m.rXU(m.gRc),m.rXU(Ee.dS,8),m.rXU(j.z))};static#t=this.\u0275dir=m.FsC({type:T,viewQuery:function(X,se){if(1&X&&m.GBs(Ie,5),2&X){let je;m.mGM(je=m.lsd())&&(se.overlay=je.first)}}})}return T})();function U(T){return!(T instanceof m.C4Q||""!==T&&(0,ee.n9)(T))}let M=(()=>{class T extends ve{constructor(){super(te),this.titleContext=null,this.trigger="hover",this.placement="top",this.cdkConnectedOverlayPush=!0,this.visibleChange=new m.bkB}getProxyPropertyMap(){return{...super.getProxyPropertyMap(),nzTooltipColor:["nzColor",()=>this.nzTooltipColor],titleContext:["nzTitleContext",()=>this.titleContext]}}static#e=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275dir=m.FsC({type:T,selectors:[["","nz-tooltip",""]],hostVars:2,hostBindings:function(X,se){2&X&&m.AVh("ant-tooltip-open",se.visible)},inputs:{title:[0,"nzTooltipTitle","title"],titleContext:[0,"nzTooltipTitleContext","titleContext"],directiveTitle:[0,"nz-tooltip","directiveTitle"],trigger:[0,"nzTooltipTrigger","trigger"],placement:[0,"nzTooltipPlacement","placement"],origin:[0,"nzTooltipOrigin","origin"],visible:[0,"nzTooltipVisible","visible"],mouseEnterDelay:[0,"nzTooltipMouseEnterDelay","mouseEnterDelay"],mouseLeaveDelay:[0,"nzTooltipMouseLeaveDelay","mouseLeaveDelay"],overlayClassName:[0,"nzTooltipOverlayClassName","overlayClassName"],overlayStyle:[0,"nzTooltipOverlayStyle","overlayStyle"],arrowPointAtCenter:[2,"nzTooltipArrowPointAtCenter","arrowPointAtCenter",m.L39],cdkConnectedOverlayPush:[2,"cdkConnectedOverlayPush","cdkConnectedOverlayPush",m.L39],nzTooltipColor:"nzTooltipColor"},outputs:{visibleChange:"nzTooltipVisibleChange"},exportAs:["nzTooltip"],standalone:!0,features:[m.GFd,m.Vt3]})}return T})(),te=(()=>{class T extends pe{constructor(A,X,se){super(A,X,se),this.nzTitle=null,this.nzTitleContext=null,this._contentStyleMap={}}isEmpty(){return U(this.nzTitle)}updateStyles(){const A=this.nzColor&&(0,z.nP)(this.nzColor);this._classMap={[this.nzOverlayClassName]:!0,[`${this._prefix}-placement-${this.preferredPlacement}`]:!0,[`${this._prefix}-${this.nzColor}`]:A},this._contentStyleMap={backgroundColor:this.nzColor&&!A?this.nzColor:null,"--antd-arrow-background-color":this.nzColor}}static#e=this.\u0275fac=function(X){return new(X||T)(m.rXU(m.gRc),m.rXU(Ee.dS,8),m.rXU(j.z,9))};static#t=this.\u0275cmp=m.VBU({type:T,selectors:[["nz-tooltip"]],exportAs:["nzTooltipComponent"],standalone:!0,features:[m.Vt3,m.aNF],decls:2,vars:5,consts:[["overlay","cdkConnectedOverlay"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","nzArrowPointAtCenter"],[1,"ant-tooltip",3,"ngClass","ngStyle","nzNoAnimation"],[1,"ant-tooltip-content"],[1,"ant-tooltip-arrow"],[1,"ant-tooltip-arrow-content",3,"ngStyle"],[1,"ant-tooltip-inner",3,"ngStyle"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"]],template:function(X,se){if(1&X){const je=m.RV6();m.DNE(0,Pe,6,11,"ng-template",1,0,m.C5r),m.bIt("overlayOutsideClick",function(Tt){return m.eBV(je),m.Njj(se.onClickOutside(Tt))})("detach",function(){return m.eBV(je),m.Njj(se.hide())})("positionChange",function(Tt){return m.eBV(je),m.Njj(se.onPositionChange(Tt))})}2&X&&m.Y8G("cdkConnectedOverlayOrigin",se.origin)("cdkConnectedOverlayOpen",se._visible)("cdkConnectedOverlayPositions",se._positions)("cdkConnectedOverlayPush",se.cdkConnectedOverlayPush)("nzArrowPointAtCenter",se.nzArrowPointAtCenter)},dependencies:[t.z_,t.WB,r.YU,r.B3,j.z,R.C,R.m,$.$_,$.vT],encapsulation:2,data:{animation:[e.uX]},changeDetection:0})}return T})(),ge=(()=>{class T{static#e=this.\u0275fac=function(X){return new(X||T)};static#t=this.\u0275mod=m.$C({type:T});static#n=this.\u0275inj=m.G2t({imports:[te]})}return T})()},7391:($t,De,a)=>{a.d(De,{Di:()=>Qt,kT:()=>Xe});var t=a(3953),r=a(1413),m=a(4412),e=a(1985),z=a(3726),j=a(983),R=a(8359),$=a(6977),k=a(5558),I=a(1594),w=a(7806);let P=(()=>{class ke{static#e=this.\u0275fac=function(H){return new(H||ke)};static#t=this.\u0275dir=t.FsC({type:ke,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(H,ze){2&H&&t.xc7("border","0")("background","transparent")("padding","0")("line-height","inherit")},standalone:!0})}return ke})(),Q=(()=>{class ke{static#e=this.\u0275fac=function(H){return new(H||ke)};static#t=this.\u0275mod=t.$C({type:ke});static#n=this.\u0275inj=t.G2t({})}return ke})();var N=a(5103),x=a(5154),oe=a(3801),ee=a(6914),Ee=a(7336),Ie=a(177),ce=a(1025),Pe=a(1011),ve=a(4707),pe=a(6042),U=a(4500),M=a(317),te=a(6860),ge=a(8203);function T(ke,q){if(1&ke&&(t.qex(0),t.nrm(1,"span",2),t.bVm()),2&ke){const G=q.$implicit;t.R7$(),t.Y8G("nzType",G)}}const D=["textarea"];function A(ke,q){if(1&ke){const G=t.RV6();t.j41(0,"textarea",3,1),t.bIt("blur",function(){t.eBV(G);const ze=t.XpG();return t.Njj(ze.confirm())}),t.k0s(),t.j41(2,"button",4),t.bIt("click",function(){t.eBV(G);const ze=t.XpG();return t.Njj(ze.confirm())}),t.nrm(3,"span",5),t.k0s()}}function X(ke,q){if(1&ke&&(t.qex(0),t.nrm(1,"span",8),t.bVm()),2&ke){const G=q.$implicit;t.R7$(),t.Y8G("nzType",G)}}function se(ke,q){if(1&ke){const G=t.RV6();t.j41(0,"button",6),t.bIt("click",function(){t.eBV(G);const ze=t.XpG();return t.Njj(ze.onClick())}),t.DNE(1,X,2,1,"ng-container",7),t.k0s()}if(2&ke){const G=t.XpG();t.Y8G("nzTooltipTitle",null===G.tooltip?null:G.tooltip||(null==G.locale?null:G.locale.edit)),t.R7$(),t.Y8G("nzStringTemplateOutlet",G.icon)}}const je=["ellipsisContainer"],Bt=["expandable"],Tt=["contentTemplate"],Vt=["*"],He=ke=>({content:ke});function xt(ke,q){1&ke&&t.SdG(0,0,["*ngIf","!content"])}function Lt(ke,q){if(1&ke&&(t.DNE(0,xt,1,0,"ng-content",4),t.EFF(1)),2&ke){const G=q.content;t.Y8G("ngIf",!G),t.R7$(),t.SpI(" ",G," ")}}function ft(ke,q){}function St(ke,q){if(1&ke&&(t.qex(0),t.EFF(1),t.bVm()),2&ke){const G=t.XpG(3);t.R7$(),t.JRh(G.nzSuffix)}}function kt(ke,q){if(1&ke&&(t.qex(0),t.DNE(1,ft,0,0,"ng-template",8)(2,St,2,1,"ng-container",4),t.bVm()),2&ke){const G=t.XpG(2),H=t.sdS(1);t.R7$(),t.Y8G("ngTemplateOutlet",H)("ngTemplateOutletContext",t.eq3(3,He,G.nzContent)),t.R7$(),t.Y8G("ngIf",G.nzSuffix)}}function It(ke,q){if(1&ke&&(t.qex(0),t.EFF(1),t.bVm()),2&ke){const G=t.XpG(3);t.R7$(),t.JRh(G.ellipsisStr)}}function rn(ke,q){if(1&ke&&(t.qex(0),t.EFF(1),t.bVm()),2&ke){const G=t.XpG(3);t.R7$(),t.JRh(G.nzSuffix)}}function en(ke,q){if(1&ke){const G=t.RV6();t.j41(0,"a",10,3),t.bIt("click",function(){t.eBV(G);const ze=t.XpG(3);return t.Njj(ze.onExpand())}),t.EFF(2),t.k0s()}if(2&ke){const G=t.XpG(3);t.R7$(2),t.SpI(" ",null==G.locale?null:G.locale.expand," ")}}function Xt(ke,q){if(1&ke&&(t.nrm(0,"span",null,2),t.DNE(2,It,2,1,"ng-container",4)(3,rn,2,1,"ng-container",4)(4,en,3,1,"a",9)),2&ke){const G=t.XpG(2);t.R7$(2),t.Y8G("ngIf",G.isEllipsis),t.R7$(),t.Y8G("ngIf",G.nzSuffix),t.R7$(),t.Y8G("ngIf",G.nzExpandable&&G.isEllipsis)}}function Tn(ke,q){if(1&ke&&(t.qex(0),t.DNE(1,kt,3,5,"ng-container",7)(2,Xt,5,3,"ng-template",null,1,t.C5r),t.bVm()),2&ke){const G=t.sdS(3),H=t.XpG();t.R7$(),t.Y8G("ngIf",H.expanded||!H.hasOperationsWithEllipsis&&1===H.nzEllipsisRows&&!H.hasEllipsisObservers||H.canCssEllipsis||H.nzSuffix&&H.expanded)("ngIfElse",G)}}function Jn(ke,q){if(1&ke){const G=t.RV6();t.j41(0,"nz-text-edit",11),t.bIt("endEditing",function(ze){t.eBV(G);const Qe=t.XpG();return t.Njj(Qe.onEndEditing(ze))})("startEditing",function(){t.eBV(G);const ze=t.XpG();return t.Njj(ze.onStartEditing())}),t.k0s()}if(2&ke){const G=t.XpG();t.Y8G("text",G.nzContent)("icon",G.nzEditIcon)("tooltip",G.nzEditTooltip)}}function Dn(ke,q){if(1&ke){const G=t.RV6();t.j41(0,"nz-text-copy",12),t.bIt("textCopy",function(ze){t.eBV(G);const Qe=t.XpG();return t.Njj(Qe.onTextCopy(ze))}),t.k0s()}if(2&ke){const G=t.XpG();t.Y8G("text",G.copyText)("tooltips",G.nzCopyTooltips)("icons",G.nzCopyIcons)}}let Mt=(()=>{class ke{constructor(G,H,ze,Qe){this.host=G,this.cdr=H,this.clipboard=ze,this.i18n=Qe,this.copied=!1,this.nativeElement=this.host.nativeElement,this.copyTooltip=null,this.copedTooltip=null,this.copyIcon="copy",this.copedIcon="check",this.destroy$=new r.B,this.icons=["copy","check"],this.textCopy=new t.bkB}ngOnInit(){this.i18n.localeChange.pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(G){const{tooltips:H,icons:ze}=G;H&&this.updateTooltips(),ze&&this.updateIcons()}ngOnDestroy(){clearTimeout(this.copyId),this.destroy$.next(!0),this.destroy$.complete()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();const G=this.text;this.textCopy.emit(G),this.clipboard.copy(G),this.onCopied()}onCopied(){clearTimeout(this.copyId),this.copyId=setTimeout(()=>{this.copied=!1,this.cdr.detectChanges()},3e3)}updateTooltips(){if(null===this.tooltips)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){const[G,H]=this.tooltips;this.copyTooltip=G||this.locale?.copy,this.copedTooltip=H||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){const[G,H]=this.icons;this.copyIcon=G,this.copedIcon=H,this.cdr.markForCheck()}static#e=this.\u0275fac=function(H){return new(H||ke)(t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(oe.B0),t.rXU(ee.Og))};static#t=this.\u0275cmp=t.VBU({type:ke,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(H,ze){1&H&&(t.j41(0,"button",0),t.bIt("click",function(){return ze.onClick()}),t.DNE(1,T,2,1,"ng-container",1),t.k0s()),2&H&&(t.AVh("ant-typography-copy-success",ze.copied),t.Y8G("nzTooltipTitle",ze.copied?ze.copedTooltip:ze.copyTooltip),t.R7$(),t.Y8G("nzStringTemplateOutlet",ze.copied?ze.copedIcon:ze.copyIcon))},dependencies:[x.Qt,x.LH,Q,P,N.Y3,N.Dn,w.C,w.m],encapsulation:2,changeDetection:0})}return ke})(),Ut=(()=>{class ke{set textarea(G){this.textarea$.next(G)}constructor(G,H,ze,Qe,ht){this.ngZone=G,this.host=H,this.cdr=ze,this.i18n=Qe,this.destroy$=ht,this.editing=!1,this.icon="edit",this.startEditing=new t.bkB,this.endEditing=new t.bkB(!0),this.nativeElement=this.host.nativeElement,this.textarea$=new m.t(null),this.injector=(0,t.WQX)(t.zZn)}ngOnInit(){this.i18n.localeChange.pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe((0,k.n)(G=>G?new e.c(H=>this.ngZone.runOutsideAngular(()=>(0,z.R)(G.nativeElement,"keydown").subscribe(H))):j.w),(0,$.Q)(this.destroy$)).subscribe(G=>{G.keyCode!==Ee._f&&G.keyCode!==Ee.Fm||this.ngZone.run(()=>{G.keyCode===Ee._f?this.onCancel():this.onEnter(G),this.cdr.markForCheck()})}),this.textarea$.pipe((0,k.n)(G=>G?new e.c(H=>this.ngZone.runOutsideAngular(()=>(0,z.R)(G.nativeElement,"input").subscribe(H))):j.w),(0,$.Q)(this.destroy$)).subscribe(G=>{this.currentText=G.target.value})}onClick(){this.beforeText=this.text,this.currentText=this.beforeText,this.editing=!0,this.startEditing.emit(),this.focusAndSetValue()}confirm(){this.editing=!1,this.endEditing.emit(this.currentText)}onEnter(G){G.stopPropagation(),G.preventDefault(),this.confirm()}onCancel(){this.currentText=this.beforeText,this.confirm()}focusAndSetValue(){const{injector:G}=this;(0,t.mal)(()=>{this.textarea$.pipe((0,I.$)(H=>null!=H),(0,$.Q)(this.destroy$)).subscribe(H=>{H.nativeElement.focus(),H.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:G})}static#e=this.\u0275fac=function(H){return new(H||ke)(t.rXU(t.SKi),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(ee.Og),t.rXU(ce.y4))};static#t=this.\u0275cmp=t.VBU({type:ke,selectors:[["nz-text-edit"]],viewQuery:function(H,ze){if(1&H&&(t.GBs(D,5),t.GBs(Pe.c9,5)),2&H){let Qe;t.mGM(Qe=t.lsd())&&(ze.textarea=Qe.first),t.mGM(Qe=t.lsd())&&(ze.autosizeDirective=Qe.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],standalone:!0,features:[t.Jv_([ce.y4]),t.aNF],decls:3,vars:2,consts:[["notEditing",""],["textarea",""],[3,"ngIf","ngIfElse"],["nz-input","","nzAutosize","",3,"blur"],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nz-icon","","nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],["nz-icon","",3,"nzType"]],template:function(H,ze){if(1&H&&t.DNE(0,A,4,0,"ng-template",2)(1,se,2,2,"ng-template",null,0,t.C5r),2&H){const Qe=t.sdS(2);t.Y8G("ngIf",ze.editing)("ngIfElse",Qe)}},dependencies:[Ie.bT,Pe.j,Pe.Sy,Pe.c9,Q,P,N.Y3,N.Dn,x.Qt,x.LH,w.C,w.m],encapsulation:2,changeDetection:0})}return ke})(),Qt=(()=>{class ke{get hasEllipsisObservers(){return this.nzOnEllipsis.observers.length>0}get canCssEllipsis(){return this.nzEllipsis&&this.cssEllipsis&&!this.expanded&&!this.hasEllipsisObservers}get hasOperationsWithEllipsis(){return(this.nzCopyable||this.nzEditable||this.nzExpandable)&&this.nzEllipsis}get copyText(){return"string"==typeof this.nzCopyText?this.nzCopyText:this.nzContent}constructor(G,H,ze,Qe,ht,Kt,fn,In,Kn,Gn){this.nzConfigService=G,this.host=H,this.cdr=ze,this.viewContainerRef=Qe,this.renderer=ht,this.platform=Kt,this.i18n=fn,this.resizeService=Kn,this.directionality=Gn,this._nzModuleName="typography",this.nzCopyable=!1,this.nzEditable=!1,this.nzDisabled=!1,this.nzExpandable=!1,this.nzEllipsis=!1,this.nzCopyTooltips=void 0,this.nzCopyIcons=["copy","check"],this.nzEditTooltip=void 0,this.nzEditIcon="edit",this.nzEllipsisRows=1,this.nzContentChange=new t.bkB,this.nzCopy=new t.bkB,this.nzExpandChange=new t.bkB,this.nzOnEllipsis=new t.bkB,this.expandableBtnElementCache=null,this.editing=!1,this.cssEllipsis=!1,this.isEllipsis=!0,this.expanded=!1,this.ellipsisStr="...",this.dir="ltr",this.viewInit=!1,this.rfaId=-1,this.destroy$=new r.B,this.windowResizeSubscription=R.yU.EMPTY,this.document=In}onTextCopy(G){this.nzCopy.emit(G)}onStartEditing(){this.editing=!0}onEndEditing(G){this.editing=!1,this.nzContentChange.emit(G),this.nzContent===G&&this.renderOnNextFrame(),this.cdr.markForCheck()}onExpand(){this.isEllipsis=!1,this.expanded=!0,this.nzExpandChange.emit(),this.nzOnEllipsis.emit(!1)}canUseCSSEllipsis(){return!(this.nzEditable||this.nzCopyable||this.nzExpandable||this.nzSuffix||this.hasEllipsisObservers)&&(0,M.Fq)(1===this.nzEllipsisRows?"textOverflow":"webkitLineClamp")}renderOnNextFrame(){(0,U.F)(this.rfaId),this.viewInit&&this.nzEllipsis&&!(this.nzEllipsisRows<0)&&!this.expanded&&this.platform.isBrowser&&(this.rfaId=(0,U.j)(()=>{this.syncEllipsis()}))}getOriginContentViewRef(){const G=this.viewContainerRef.createEmbeddedView(this.contentTemplate,{content:this.nzContent});return G.detectChanges(),{viewRef:G,removeView:()=>{this.viewContainerRef.remove(this.viewContainerRef.indexOf(G))}}}syncEllipsis(){if(this.cssEllipsis)return;const{viewRef:G,removeView:H}=this.getOriginContentViewRef(),ze=[this.textCopyRef,this.textEditRef].filter(Kn=>Kn&&Kn.nativeElement).map(Kn=>Kn.nativeElement),Qe=this.getExpandableBtnElement();Qe&&ze.push(Qe);const{contentNodes:ht,text:Kt,ellipsis:fn}=(0,M.xP)(this.host.nativeElement,this.nzEllipsisRows,G.rootNodes,ze,this.ellipsisStr,this.nzSuffix);H(),this.ellipsisText=Kt,fn!==this.isEllipsis&&(this.isEllipsis=fn,this.nzOnEllipsis.emit(fn));const In=this.ellipsisContainer.nativeElement;for(;In.firstChild;)this.renderer.removeChild(In,In.firstChild);ht.forEach(Kn=>{this.renderer.appendChild(In,Kn.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){const G=this.locale?this.locale.expand:"",H=this.expandableBtnElementCache;if(!H||H.innerText===G){const ze=this.document.createElement("a");ze.className="ant-typography-expand",ze.innerText=G,this.expandableBtnElementCache=ze}return this.expandableBtnElementCache}return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.subscribe().pipe((0,$.Q)(this.destroy$)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe((0,$.Q)(this.destroy$)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe((0,$.Q)(this.destroy$)).subscribe(G=>{this.dir=G,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(G){const{nzCopyable:H,nzEditable:ze,nzExpandable:Qe,nzEllipsis:ht,nzContent:Kt,nzEllipsisRows:fn,nzSuffix:In}=G;(H||ze||Qe||ht||Kt||fn||In)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete(),this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()}static#e=this.\u0275fac=function(H){return new(H||ke)(t.rXU(pe.yx),t.rXU(t.aKT),t.rXU(t.gRc),t.rXU(t.c1b),t.rXU(t.sFG),t.rXU(te.OD),t.rXU(ee.Og),t.rXU(Ie.qQ),t.rXU(ce.cB),t.rXU(ge.dS,8))};static#t=this.\u0275cmp=t.VBU({type:ke,selectors:[["nz-typography"],["","nz-typography",""],["p","nz-paragraph",""],["span","nz-text",""],["h1","nz-title",""],["h2","nz-title",""],["h3","nz-title",""],["h4","nz-title",""]],viewQuery:function(H,ze){if(1&H&&(t.GBs(Ut,5),t.GBs(Mt,5),t.GBs(je,5),t.GBs(Bt,5),t.GBs(Tt,5)),2&H){let Qe;t.mGM(Qe=t.lsd())&&(ze.textEditRef=Qe.first),t.mGM(Qe=t.lsd())&&(ze.textCopyRef=Qe.first),t.mGM(Qe=t.lsd())&&(ze.ellipsisContainer=Qe.first),t.mGM(Qe=t.lsd())&&(ze.expandableBtn=Qe.first),t.mGM(Qe=t.lsd())&&(ze.contentTemplate=Qe.first)}},hostVars:26,hostBindings:function(H,ze){2&H&&(t.xc7("-webkit-line-clamp",ze.canCssEllipsis&&ze.nzEllipsisRows>1?ze.nzEllipsisRows:null),t.AVh("ant-typography",!ze.editing)("ant-typography-rtl","rtl"===ze.dir)("ant-typography-edit-content",ze.editing)("ant-typography-secondary","secondary"===ze.nzType)("ant-typography-warning","warning"===ze.nzType)("ant-typography-danger","danger"===ze.nzType)("ant-typography-success","success"===ze.nzType)("ant-typography-disabled",ze.nzDisabled)("ant-typography-ellipsis",ze.nzEllipsis&&!ze.expanded)("ant-typography-single-line",ze.nzEllipsis&&1===ze.nzEllipsisRows)("ant-typography-ellipsis-single-line",ze.canCssEllipsis&&1===ze.nzEllipsisRows)("ant-typography-ellipsis-multiple-line",ze.canCssEllipsis&&ze.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",t.L39],nzEditable:[2,"nzEditable","nzEditable",t.L39],nzDisabled:[2,"nzDisabled","nzDisabled",t.L39],nzExpandable:[2,"nzExpandable","nzExpandable",t.L39],nzEllipsis:[2,"nzEllipsis","nzEllipsis",t.L39],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",t.Udg],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],standalone:!0,features:[t.GFd,t.OA$,t.aNF],ngContentSelectors:Vt,decls:5,vars:3,consts:[["contentTemplate",""],["jsEllipsis",""],["ellipsisContainer",""],["expandable",""],[4,"ngIf"],[3,"text","icon","tooltip","endEditing","startEditing",4,"ngIf"],[3,"text","tooltips","icons","textCopy",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ant-typography-expand",3,"click",4,"ngIf"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(H,ze){1&H&&(t.NAR(),t.DNE(0,Lt,2,2,"ng-template",null,0,t.C5r)(2,Tn,4,2,"ng-container",4)(3,Jn,1,3,"nz-text-edit",5)(4,Dn,1,3,"nz-text-copy",6)),2&H&&(t.R7$(2),t.Y8G("ngIf",!ze.editing),t.R7$(),t.Y8G("ngIf",ze.nzEditable),t.R7$(),t.Y8G("ngIf",ze.nzCopyable&&!ze.editing))},dependencies:[Ie.bT,Ie.T3,Ut,Mt],encapsulation:2,changeDetection:0})}return(0,ve.Cg)([(0,pe.H4)()],ke.prototype,"nzCopyTooltips",void 0),(0,ve.Cg)([(0,pe.H4)()],ke.prototype,"nzCopyIcons",void 0),(0,ve.Cg)([(0,pe.H4)()],ke.prototype,"nzEditTooltip",void 0),(0,ve.Cg)([(0,pe.H4)()],ke.prototype,"nzEditIcon",void 0),(0,ve.Cg)([(0,pe.H4)()],ke.prototype,"nzEllipsisRows",void 0),ke})(),Xe=(()=>{class ke{static#e=this.\u0275fac=function(H){return new(H||ke)};static#t=this.\u0275mod=t.$C({type:ke});static#n=this.\u0275inj=t.G2t({imports:[Qt,Mt,Ut]})}return ke})()},776:($t,De,a)=>{a.d(De,{J:()=>k,s:()=>I});var t=a(3953),r=a(177);const m=w=>["segment",w],e=(w,P)=>({"segment-main":!0,expandable:w,expanded:P});function z(w,P){1&w&&t.nrm(0,"div",9)}function j(w,P){if(1&w&&(t.j41(0,"span",10),t.EFF(1),t.k0s()),2&w){const Q=t.XpG().$implicit;t.R7$(),t.JRh(Q.description)}}function R(w,P){if(1&w&&(t.j41(0,"section",11),t.nrm(1,"ngx-json-viewer",12),t.k0s()),2&w){const Q=t.XpG().$implicit,N=t.XpG();t.R7$(),t.Y8G("json",Q.value)("expanded",N.expanded)("depth",N.depth)("_currentDepth",N._currentDepth+1)}}function $(w,P){if(1&w){const Q=t.RV6();t.j41(0,"section",2)(1,"section",3),t.bIt("click",function(){const x=t.eBV(Q).$implicit,oe=t.XpG();return t.Njj(oe.toggle(x))}),t.DNE(2,z,1,0,"div",4),t.j41(3,"span",5),t.EFF(4),t.k0s(),t.j41(5,"span",6),t.EFF(6,": "),t.k0s(),t.DNE(7,j,2,1,"span",7),t.k0s(),t.DNE(8,R,2,4,"section",8),t.k0s()}if(2&w){const Q=P.$implicit,N=t.XpG();t.Y8G("ngClass",t.eq3(6,m,"segment-type-"+Q.type)),t.R7$(),t.Y8G("ngClass",t.l_i(8,e,N.isExpandable(Q),Q.expanded)),t.R7$(),t.Y8G("ngIf",N.isExpandable(Q)),t.R7$(2),t.JRh(Q.key),t.R7$(3),t.Y8G("ngIf",!Q.expanded||!N.isExpandable(Q)),t.R7$(),t.Y8G("ngIf",Q.expanded&&N.isExpandable(Q))}}let k=(()=>{class w{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(Q=>{this.segments.push(this.parseKeyValue(Q,this.json[Q]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(Q){return"object"===Q.type||"array"===Q.type}toggle(Q){this.isExpandable(Q)&&(Q.expanded=!Q.expanded)}parseKeyValue(Q,N){const x={key:Q,value:N,type:void 0,description:""+N,expanded:this.isExpanded()};switch(typeof x.value){case"number":x.type="number";break;case"boolean":x.type="boolean";break;case"function":x.type="function";break;case"string":x.type="string",x.description='"'+x.value+'"';break;case"undefined":x.type="undefined",x.description="undefined";break;case"object":null===x.value?(x.type="null",x.description="null"):Array.isArray(x.value)?(x.type="array",x.description="Array["+x.value.length+"] "+JSON.stringify(x.value)):x.value instanceof Date?x.type="date":(x.type="object",x.description="Object "+JSON.stringify(x.value))}return x}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(Q){const N=new WeakMap;return function x(oe,ee){let Ee,Ie;return"object"!=typeof oe||null===oe||oe instanceof Boolean||oe instanceof Date||oe instanceof Number||oe instanceof RegExp||oe instanceof String?oe:(Ee=N.get(oe),void 0!==Ee?{$ref:Ee}:(N.set(oe,ee),Array.isArray(oe)?(Ie=[],oe.forEach(function(ce,Pe){Ie[Pe]=x(ce,ee+"["+Pe+"]")})):(Ie={},Object.keys(oe).forEach(function(ce){Ie[ce]=x(oe[ce],ee+"["+JSON.stringify(ce)+"]")})),Ie))}(Q,"$")}}return w.\u0275fac=function(Q){return new(Q||w)},w.\u0275cmp=t.VBU({type:w,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[t.OA$],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"click","ngClass"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(Q,N){1&Q&&(t.j41(0,"section",0),t.DNE(1,$,9,11,"section",1),t.k0s()),2&Q&&(t.R7$(),t.Y8G("ngForOf",N.segments))},dependencies:[r.YU,r.Sq,r.bT,w],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #000)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),w})(),I=(()=>{class w{}return w.\u0275fac=function(Q){return new(Q||w)},w.\u0275mod=t.$C({type:w}),w.\u0275inj=t.G2t({imports:[r.MD]}),w})()},2081:($t,De,a)=>{a.d(De,{DX:()=>oe,yN:()=>Ut,LV:()=>Xe});const t=()=>Object.create(null),{forEach:r,slice:m}=Array.prototype,{hasOwnProperty:e}=Object.prototype;class z{constructor(q=!0,G=t){this.weakness=q,this.makeData=G}lookup(...q){return this.lookupArray(q)}lookupArray(q){let G=this;return r.call(q,H=>G=G.getChildTrie(H)),e.call(G,"data")?G.data:G.data=this.makeData(m.call(q))}peek(...q){return this.peekArray(q)}peekArray(q){let G=this;for(let H=0,ze=q.length;G&&Hq.push(G)),q};function T(ke){const{unsubscribe:q}=ke;"function"==typeof q&&(ke.unsubscribe=void 0,q())}const D=[],A=100;function X(ke,q){if(!ke)throw new Error(q||"assertion failure")}function se(ke,q){const G=ke.length;return G>0&&G===q.length&&ke[G-1]===q[G-1]}function je(ke){switch(ke.length){case 0:throw new Error("unknown value");case 1:return ke[0];case 2:throw ke[1]}}function Bt(ke){return ke.slice(0)}let Tt=(()=>{class ke{constructor(G){this.fn=G,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++ke.count}peek(){if(1===this.value.length&&!Lt(this))return Vt(this),this.value[0]}recompute(G){return X(!this.recomputing,"already recomputing"),Vt(this),Lt(this)?function He(ke,q){return Tn(ke),U.withValue(ke,xt,[ke,q]),function Dn(ke,q){if("function"==typeof ke.subscribe)try{T(ke),ke.unsubscribe=ke.subscribe.apply(null,q)}catch{return ke.setDirty(),!1}return!0}(ke,q)&&function ft(ke){ke.dirty=!1,!Lt(ke)&&kt(ke)}(ke),je(ke.value)}(this,G):je(this.value)}setDirty(){this.dirty||(this.dirty=!0,St(this),T(this))}dispose(){this.setDirty(),Tn(this),It(this,(G,H)=>{G.setDirty(),Jn(G,this)})}forget(){this.dispose()}dependOn(G){G.add(this),this.deps||(this.deps=D.pop()||new Set),this.deps.add(G)}forgetDeps(){this.deps&&(ge(this.deps).forEach(G=>G.delete(this)),this.deps.clear(),D.push(this.deps),this.deps=null)}}return ke.count=0,ke})();function Vt(ke){const q=U.getValue();if(q)return ke.parents.add(q),q.childValues.has(ke)||q.childValues.set(ke,[]),Lt(ke)?rn(q,ke):en(q,ke),q}function xt(ke,q){ke.recomputing=!0;const{normalizeResult:G}=ke;let H;G&&1===ke.value.length&&(H=Bt(ke.value)),ke.value.length=0;try{if(ke.value[0]=ke.fn.apply(null,q),G&&H&&!se(H,ke.value))try{ke.value[0]=G(ke.value[0],H[0])}catch{}}catch(ze){ke.value[1]=ze}ke.recomputing=!1}function Lt(ke){return ke.dirty||!(!ke.dirtyChildren||!ke.dirtyChildren.size)}function St(ke){It(ke,rn)}function kt(ke){It(ke,en)}function It(ke,q){const G=ke.parents.size;if(G){const H=ge(ke.parents);for(let ze=0;ze0&&ke.childValues.forEach((q,G)=>{Jn(ke,G)}),ke.forgetDeps(),X(null===ke.dirtyChildren)}function Jn(ke,q){q.parents.delete(ke),ke.childValues.delete(q),Xt(ke,q)}const Mt={setDirty:!0,dispose:!0,forget:!0};function Ut(ke){const q=new Map,G=ke&&ke.subscribe;function H(ze){const Qe=U.getValue();if(Qe){let ht=q.get(ze);ht||q.set(ze,ht=new Set),Qe.dependOn(ht),"function"==typeof G&&(T(ht),ht.unsubscribe=G(ze))}}return H.dirty=function(Qe,ht){const Kt=q.get(Qe);if(Kt){const fn=ht&&te.call(Mt,ht)?ht:"setDirty";ge(Kt).forEach(In=>In[fn]()),q.delete(Qe),T(Kt)}},H}let wt;function Ft(...ke){return(wt||(wt=new z("function"==typeof WeakMap))).lookupArray(ke)}const Qt=new Set;function Xe(ke,{max:q=Math.pow(2,16),keyArgs:G,makeCacheKey:H=Ft,normalizeResult:ze,subscribe:Qe,cache:ht=R.C}=Object.create(null)){const Kt="function"==typeof ht?new ht(q,$n=>$n.dispose()):ht,fn=function(){const $n=H.apply(null,G?G.apply(null,arguments):arguments);if(void 0===$n)return ke.apply(null,arguments);let Nn=Kt.get($n);Nn||(Kt.set($n,Nn=new Tt(ke)),Nn.normalizeResult=ze,Nn.subscribe=Qe,Nn.forget=()=>Kt.delete($n));const vn=Nn.recompute(Array.prototype.slice.call(arguments));return Kt.set($n,Nn),Qt.add(Kt),U.hasValue()||(Qt.forEach(Jt=>Jt.clean()),Qt.clear()),vn};function In($n){const Nn=$n&&Kt.get($n);Nn&&Nn.setDirty()}function Kn($n){const Nn=$n&&Kt.get($n);if(Nn)return Nn.peek()}function Gn($n){return!!$n&&Kt.delete($n)}return Object.defineProperty(fn,"size",{get:()=>Kt.size,configurable:!1,enumerable:!1}),Object.freeze(fn.options={max:q,keyArgs:G,makeCacheKey:H,normalizeResult:ze,subscribe:Qe,cache:Kt}),fn.dirtyKey=In,fn.dirty=function(){In(H.apply(null,arguments))},fn.peekKey=Kn,fn.peek=function(){return Kn(H.apply(null,arguments))},fn.forgetKey=Gn,fn.forget=function(){return Gn(H.apply(null,arguments))},fn.makeCacheKey=H,fn.getKey=G?function(){return H.apply(null,G.apply(null,arguments))}:H,Object.freeze(fn)}},7994:($t,De,a)=>{function m(M,te){(null==te||te>M.length)&&(te=M.length);for(var ge=0,T=new Array(te);geU});var j=function(){return"function"==typeof Symbol},R=function(M){return j()&&!!Symbol[M]},$=function(M){return R(M)?Symbol[M]:"@@"+M};j()&&!R("observable")&&(Symbol.observable=Symbol("observable"));var k=$("iterator"),I=$("observable"),w=$("species");function P(M,te){var ge=M[te];if(null!=ge){if("function"!=typeof ge)throw new TypeError(ge+" is not a function");return ge}}function Q(M){var te=M.constructor;return void 0!==te&&null===(te=te[w])&&(te=void 0),void 0!==te?te:U}function x(M){x.log?x.log(M):setTimeout(function(){throw M})}function oe(M){Promise.resolve().then(function(){try{M()}catch(te){x(te)}})}function ee(M){var te=M._cleanup;if(void 0!==te&&(M._cleanup=void 0,te))try{if("function"==typeof te)te();else{var ge=P(te,"unsubscribe");ge&&ge.call(te)}}catch(T){x(T)}}function Ee(M){M._observer=void 0,M._queue=void 0,M._state="closed"}function ce(M,te,ge){M._state="running";var T=M._observer;try{var D=P(T,te);switch(te){case"next":D&&D.call(T,ge);break;case"error":if(Ee(M),!D)throw ge;D.call(T,ge);break;case"complete":Ee(M),D&&D.call(T)}}catch(A){x(A)}"closed"===M._state?ee(M):"running"===M._state&&(M._state="ready")}function Pe(M,te,ge){if("closed"!==M._state){if("buffering"===M._state)return void M._queue.push({type:te,value:ge});if("ready"!==M._state)return M._state="buffering",M._queue=[{type:te,value:ge}],void oe(function(){return function Ie(M){var te=M._queue;if(te){M._queue=void 0,M._state="ready";for(var ge=0;ge1,se=!1,Bt=arguments[1];return new A(function(Tt){return D.subscribe({next:function(Vt){var He=!se;if(se=!0,!He||X)try{Bt=T(Bt,Vt)}catch(xt){return Tt.error(xt)}else Bt=Vt},error:function(Vt){Tt.error(Vt)},complete:function(){if(!se&&!X)return Tt.error(new TypeError("Cannot reduce an empty sequence"));Tt.next(Bt),Tt.complete()}})})},te.concat=function(){for(var T=this,D=arguments.length,A=new Array(D),X=0;X=0&&se.splice(He,1),Bt()}});se.push(Vt)},error:function(Tt){X.error(Tt)},complete:function(){Bt()}});function Bt(){je.closed&&0===se.length&&X.complete()}return function(){se.forEach(function(Tt){return Tt.unsubscribe()}),je.unsubscribe()}})},te[I]=function(){return this},M.from=function(T){var D="function"==typeof this?this:M;if(null==T)throw new TypeError(T+" is not an object");var A=P(T,I);if(A){var X=A.call(T);if(Object(X)!==X)throw new TypeError(X+" is not an object");return function N(M){return M instanceof U}(X)&&X.constructor===D?X:new D(function(se){return X.subscribe(se)})}if(R("iterator")&&(A=P(T,k)))return new D(function(se){oe(function(){if(!se.closed){for(var Bt,je=function t(M,te){var ge=typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(ge)return(ge=ge.call(M)).next.bind(ge);if(Array.isArray(M)||(ge=function r(M,te){if(M){if("string"==typeof M)return m(M,te);var ge=Object.prototype.toString.call(M).slice(8,-1);if("Object"===ge&&M.constructor&&(ge=M.constructor.name),"Map"===ge||"Set"===ge)return Array.from(M);if("Arguments"===ge||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ge))return m(M,te)}}(M))||te&&M&&"number"==typeof M.length){ge&&(M=ge);var T=0;return function(){return T>=M.length?{done:!0}:{done:!1,value:M[T++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(A.call(T));!(Bt=je()).done;)if(se.next(Bt.value),se.closed)return;se.complete()}})});if(Array.isArray(T))return new D(function(se){oe(function(){if(!se.closed){for(var je=0;je{function t(r){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(r)}a.d(De,{A:()=>t})},1635:($t,De,a)=>{a.d(De,{C6:()=>r,Cg:()=>z,Cl:()=>m,Ju:()=>oe,fX:()=>ce,zs:()=>ee});var t=function(Vt,He){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Lt){xt.__proto__=Lt}||function(xt,Lt){for(var ft in Lt)Object.prototype.hasOwnProperty.call(Lt,ft)&&(xt[ft]=Lt[ft])})(Vt,He)};function r(Vt,He){if("function"!=typeof He&&null!==He)throw new TypeError("Class extends value "+String(He)+" is not a constructor or null");function xt(){this.constructor=Vt}t(Vt,He),Vt.prototype=null===He?Object.create(He):(xt.prototype=He.prototype,new xt)}var m=function(){return m=Object.assign||function(He){for(var xt,Lt=1,ft=arguments.length;Lt=0;It--)(kt=Vt[It])&&(St=(ft<3?kt(St):ft>3?kt(He,xt,St):kt(He,xt))||St);return ft>3&&St&&Object.defineProperty(He,xt,St),St}function oe(Vt){var He="function"==typeof Symbol&&Symbol.iterator,xt=He&&Vt[He],Lt=0;if(xt)return xt.call(Vt);if(Vt&&"number"==typeof Vt.length)return{next:function(){return Vt&&Lt>=Vt.length&&(Vt=void 0),{value:Vt&&Vt[Lt++],done:!Vt}}};throw new TypeError(He?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(Vt,He){var xt="function"==typeof Symbol&&Vt[Symbol.iterator];if(!xt)return Vt;var ft,kt,Lt=xt.call(Vt),St=[];try{for(;(void 0===He||He-- >0)&&!(ft=Lt.next()).done;)St.push(ft.value)}catch(It){kt={error:It}}finally{try{ft&&!ft.done&&(xt=Lt.return)&&xt.call(Lt)}finally{if(kt)throw kt.error}}return St}function ce(Vt,He,xt){if(xt||2===arguments.length)for(var St,Lt=0,ft=He.length;Lt{$t($t.s=5955)}]); \ No newline at end of file diff --git a/server/public/runtime.2a53a9bb7585f6ea.js b/server/public/runtime.2a53a9bb7585f6ea.js deleted file mode 100644 index 24c125b8d..000000000 --- a/server/public/runtime.2a53a9bb7585f6ea.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var d=m[e]={exports:{}};return v[e](d,d.exports,a),d.exports}a.m=v,e=[],a.O=(t,d,c,b)=>{if(!d){var r=1/0;for(f=0;f=b)&&Object.keys(a.O).every(p=>a.O[p](d[n]))?d.splice(n--,1):(u=!1,b0&&e[f-1][2]>b;f--)e[f]=e[f-1];e[f]=[d,c,b]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var d in t)a.o(t,d)&&!a.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:t[d]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,d)=>(a.f[d](e,t),t),[])),a.u=e=>(2076===e?"common":e)+"."+{262:"84b17d4caba014bf",326:"0f2f111f3db5a3fd",394:"52d47ba056af62ef",424:"acb6891de8df93dd",445:"0c27ca3df1eab994",863:"1bc41fd372b9f778",1110:"7b52c463f194aaaa",1136:"bfedce7cea07aeba",1234:"0175203b1807da01",1250:"7756c9d578470c45",1778:"26829d77868bc4e7",1781:"59c44933bf424ffb",2076:"421f2e2f96784e20",2553:"5b65a8e1a951c61a",2971:"c61f992b790e48cb",3023:"31d21676d630e8fb",3118:"9952f68334417347",3232:"48f4d793b40ba3aa",3236:"208b28fc63a25c38",3428:"eeb00a3f80b3d9a5",3967:"22bbfdd34bbdd00f",4009:"eea4f50908983d43",4021:"1bd5b451e923b91d",4178:"66d6bc4365e46b51",4334:"52627fc5ad707ed5",4391:"9ca93707540c2116",4514:"ef370664c4d41745",4705:"f3d30f81278ccfa3",4712:"87afb00358a3ec56",5076:"92a5de69b080b4be",5231:"50ca04a47aafec5f",5384:"c698918596b093b6",5399:"bd6342aebeaba60b",5439:"6ebe3bb6b34df19f",5514:"93eccc1ac8358eda",5528:"2bc117ecfc08ac24",5615:"eb9a848847a2a17d",5627:"603ab01f65c98827",5716:"66a3312fd2ee17e4",5813:"2754cd76fca31059",5827:"b8ec7796a12e1d9f",5892:"804bee8cc1360cb5",5958:"50527ae55cd0fe6e",6024:"2cf87d0897668d31",6148:"069dfef439190e01",6161:"5ccd616390bbce6a",6508:"366bb09b77b4d0ac",6618:"1122c81efe8fd01c",7038:"ff8a7202cc6f84c1",7240:"fd39301c3de5112e",7732:"16b892f1b795df30",8191:"7e7c5c5efad7b93e",8414:"2326e76d85377afd",8584:"fa76254f1fc877d6",8696:"e163a7f5de3d179b",8733:"72f4f037f4e2a419",9034:"558479e1ac1c528e",9373:"1426b85d2fdfe1ad",9452:"273b315fa5f5db6a",9611:"3aa036277a3e0516"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(d,c,b,f)=>{if(e[d])e[d].push(c);else{var r,u;if(void 0!==b)for(var n=document.getElementsByTagName("script"),o=0;o{r.onerror=r.onload=null,clearTimeout(s);var _=e[d];if(delete e[d],r.parentNode&&r.parentNode.removeChild(r),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=l.bind(null,r.onerror),r.onload=l.bind(null,r.onload),u&&document.head.appendChild(r)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:t=>t},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={9121:0};a.f.j=(c,b)=>{var f=a.o(e,c)?e[c]:void 0;if(0!==f)if(f)b.push(f[2]);else if(9121!=c){var r=new Promise((i,l)=>f=e[c]=[i,l]);b.push(f[2]=r);var u=a.p+a.u(c),n=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(f=e[c])&&(e[c]=void 0),f)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;n.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",n.name="ChunkLoadError",n.type=l,n.request=s,f[1](n)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,b)=>{var n,o,[f,r,u]=b,i=0;if(f.some(s=>0!==e[s])){for(n in r)a.o(r,n)&&(a.m[n]=r[n]);if(u)var l=u(a)}for(c&&c(b);i{"use strict";var e,v={},m={};function a(e){var t=m[e];if(void 0!==t)return t.exports;var r=m[e]={exports:{}};return v[e](r,r.exports,a),r.exports}a.m=v,e=[],a.O=(t,r,c,n)=>{if(!r){var d=1/0;for(f=0;f=n)&&Object.keys(a.O).every(p=>a.O[p](r[b]))?r.splice(b--,1):(u=!1,n0&&e[f-1][2]>n;f--)e[f]=e[f-1];e[f]=[r,c,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,r)=>(a.f[r](e,t),t),[])),a.u=e=>(2076===e?"common":e)+"."+{262:"627eb2792fc46b22",394:"52d47ba056af62ef",424:"acb6891de8df93dd",445:"cf7e1aa17e07900a",553:"105f1f81ea5829f4",863:"1bc41fd372b9f778",1017:"4583c440f01471f4",1059:"7b58b6858d8382fc",1110:"7b52c463f194aaaa",1234:"0175203b1807da01",1250:"7756c9d578470c45",1781:"e7beca05e7242acb",2076:"421f2e2f96784e20",2385:"aa07b4d54c16b6a1",2664:"7b8be85bc1082b05",2846:"9eaf774601de294c",2971:"3394aab5de992892",3023:"31d21676d630e8fb",3118:"9952f68334417347",3205:"7704ed840c79bad4",3232:"48f4d793b40ba3aa",3236:"208b28fc63a25c38",3643:"4eed00d0788c015a",3967:"22bbfdd34bbdd00f",4009:"eea4f50908983d43",4334:"af438669d5b4934a",4362:"740b04a85c379343",4391:"8685baf9f4ad861a",4439:"0b7444603de5e5cf",4514:"ef370664c4d41745",4705:"aca7ab06cd8de743",5076:"92a5de69b080b4be",5179:"0550196ba2229852",5231:"50ca04a47aafec5f",5353:"cbbce88cf1693aa4",5384:"e3e673860d12574b",5399:"bd6342aebeaba60b",5514:"93eccc1ac8358eda",5528:"3894fe5d6e5a40c5",5615:"eb9a848847a2a17d",5627:"81a39cf55446ab02",5716:"66a3312fd2ee17e4",5827:"b8ec7796a12e1d9f",5957:"95c2cc4a75611a4d",6024:"993db6c47ef3c530",6161:"5ccd616390bbce6a",6618:"553dce5a4245d39e",6903:"1cdb46eba27161be",7240:"fd39301c3de5112e",7732:"16b892f1b795df30",8191:"7e7c5c5efad7b93e",8313:"b5c7716c51db818d",8414:"2326e76d85377afd",8580:"1078d0af0d71065a",8584:"3f3829d1fb4ec6b8",8606:"1a613946cd13d47a",8696:"e163a7f5de3d179b",9034:"9cf5b4682c5b40ad",9373:"b424d3334e601db6",9452:"273b315fa5f5db6a",9611:"3aa036277a3e0516"}[e]+".js",a.miniCssF=e=>{},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="main:";a.l=(r,c,n,f)=>{if(e[r])e[r].push(c);else{var d,u;if(void 0!==n)for(var b=document.getElementsByTagName("script"),o=0;o{d.onerror=d.onload=null,clearTimeout(s);var _=e[r];if(delete e[r],d.parentNode&&d.parentNode.removeChild(d),_&&_.forEach(h=>h(p)),g)return g(p)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=l.bind(null,d.onerror),d.onload=l.bind(null,d.onload),u&&document.head.appendChild(d)}}})(),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.tt=()=>(void 0===e&&(e={createScriptURL:t=>t},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),a.tu=e=>a.tt().createScriptURL(e),a.p="",(()=>{var e={9121:0};a.f.j=(c,n)=>{var f=a.o(e,c)?e[c]:void 0;if(0!==f)if(f)n.push(f[2]);else if(9121!=c){var d=new Promise((i,l)=>f=e[c]=[i,l]);n.push(f[2]=d);var u=a.p+a.u(c),b=new Error;a.l(u,i=>{if(a.o(e,c)&&(0!==(f=e[c])&&(e[c]=void 0),f)){var l=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;b.message="Loading chunk "+c+" failed.\n("+l+": "+s+")",b.name="ChunkLoadError",b.type=l,b.request=s,f[1](b)}},"chunk-"+c,c)}else e[c]=0},a.O.j=c=>0===e[c];var t=(c,n)=>{var b,o,[f,d,u]=n,i=0;if(f.some(s=>0!==e[s])){for(b in d)a.o(d,b)&&(a.m[b]=d[b]);if(u)var l=u(a)}for(c&&c(n);i