@yinuo-ngm/server 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/LICENSE +15 -0
  2. package/lib/plugins/error-handler.plugin.js +2 -0
  3. package/lib/routes/api-client/collection.routes.js +18 -2
  4. package/lib/routes/dashboard.routes.js +5 -1
  5. package/package.json +2 -2
  6. package/www/browser/{chunk-V6LX42JA.js → chunk-37KQ3UTB.js} +1 -1
  7. package/www/browser/chunk-3LDMO67C.js +1 -0
  8. package/www/browser/{chunk-FL6BUQ4M.js → chunk-3MAJTMXX.js} +1 -1
  9. package/www/browser/{chunk-PYGKDDJK.js → chunk-3PWCJ3D5.js} +1 -1
  10. package/www/browser/{chunk-UWKUE7CZ.js → chunk-AZV6AWGC.js} +1 -1
  11. package/www/browser/{chunk-DV7BEQJD.js → chunk-CO7S3LZV.js} +1 -1
  12. package/www/browser/{chunk-DUC7XBYN.js → chunk-DJJC6FPO.js} +1 -1
  13. package/www/browser/{chunk-FPDGZ3ZC.js → chunk-EP45FT55.js} +3 -3
  14. package/www/browser/{chunk-7U5ZOE34.js → chunk-FNLA2MNI.js} +1 -1
  15. package/www/browser/{chunk-IXHH6ENJ.js → chunk-G73D24UX.js} +1 -1
  16. package/www/browser/{chunk-5IUYSJVD.js → chunk-GCKL62DR.js} +1 -1
  17. package/www/browser/{chunk-MN4WB67T.js → chunk-HCBKQAGF.js} +1 -1
  18. package/www/browser/{chunk-EAYGWAZB.js → chunk-IMQG3SAE.js} +1 -1
  19. package/www/browser/{chunk-3N7T4ZJF.js → chunk-J2JNFWJN.js} +1 -1
  20. package/www/browser/{chunk-TLFV3T3W.js → chunk-MD6RDGU4.js} +1 -1
  21. package/www/browser/{chunk-5MHC25IS.js → chunk-OUE23ZE4.js} +1 -1
  22. package/www/browser/{chunk-A2SBXP7A.js → chunk-W6TCGG53.js} +1 -1
  23. package/www/browser/{chunk-KKLLU6U7.js → chunk-XN5C33GH.js} +1 -1
  24. package/www/browser/chunk-YVSVIACA.js +4 -0
  25. package/www/browser/index.html +1 -1
  26. package/www/browser/main-V3VSEZ7K.js +29 -0
  27. package/www/browser/chunk-2PBA7FNM.js +0 -4
  28. package/www/browser/chunk-U7FBNFSB.js +0 -1
  29. package/www/browser/main-IIW5QQA5.js +0 -29
@@ -1,4 +1,4 @@
1
- import{a as an}from"./chunk-7U5ZOE34.js";import{f as on}from"./chunk-DV7BEQJD.js";import{e as sn}from"./chunk-IXHH6ENJ.js";import"./chunk-CJISJEP3.js";import{d as rn}from"./chunk-35COW2FA.js";import"./chunk-POZS3PD3.js";import{a as yn}from"./chunk-HZ73CM45.js";import{d as Se,e as Ne,f as Ie}from"./chunk-DUC7XBYN.js";import{e as Wt,g as qt,h as Ut}from"./chunk-ROB7EMN5.js";import{A as Xt,B as Yt,C as en,D as De,G as tn,I as nn,c as ze,g as Zt,q as Ht,x as Kt,y as Jt,z as Gt}from"./chunk-FPDGZ3ZC.js";import{Ab as ce,Bb as Qt,Cb as Z,F as Vt,Fb as nt,H as ae,Hb as me,I as kt,M as ee,N as $,O as et,P as tt,T as Ft,U as Rt,V as ve,W as Ee,Xa as jt,Y as be,Ya as Bt,Z as Te,Za as $t,jb as Me,lb as re,pb as se,q as Xe,r as Ot,vb as le,w as Ye,wb as At,x as Pt,xb as we,yb as Lt,z as B}from"./chunk-PTMJ422K.js";import"./chunk-HFZLJHYR.js";import{B as Ge,d as It,i as O}from"./chunk-53YRDYLS.js";import{$b as N,Aa as Ct,Ab as xt,Ba as gt,Ca as _e,Dc as Mt,Eb as w,Ec as ye,Fb as Q,Fc as de,Gb as zt,Ha as I,Ic as m,Jc as V,Kb as J,Kc as F,Mc as Ze,Nc as He,Oa as Ue,Oc as Ke,Ra as he,Tb as vt,Vb as y,Vc as Y,W as ut,Wc as wt,Xb as x,Yb as Et,_b as S,a as H,ac as f,ad as Dt,b as K,bc as s,cc as l,da as qe,dc as T,e as hn,f as We,fd as j,g as dt,gd as St,hc as G,ic as X,kc as v,ld as Je,m as mt,ma as ft,mb as p,na as L,qc as C,r as ie,ra as u,rb as b,rd as xe,s as P,sb as _t,tc as r,ub as ht,uc as bt,vc as Tt,vd as oe,wd as Nt,xa as _,xb as yt,xc as W,ya as h,yc as q,z as ge,zc as U}from"./chunk-SJG2JCPL.js";var it=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=zt({type:t,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(i,o){i&2&&ye("border","0")("background","transparent")("padding","0")("line-height","inherit")}})}return t})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({})}return t})();function vn(t,n){if(t&1&&(G(0),T(1,"nz-icon",2),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}var En=["textarea"];function bn(t,n){if(t&1){let e=v();s(0,"textarea",2,0),C("blur",function(){_(e);let o=r();return h(o.confirm())}),l(),s(2,"button",3),C("click",function(){_(e);let o=r();return h(o.confirm())}),T(3,"nz-icon",4),l()}}function Tn(t,n){if(t&1&&(G(0),T(1,"nz-icon",7),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}function Mn(t,n){if(t&1){let e=v();s(0,"button",5),C("click",function(){_(e);let o=r();return h(o.onClick())}),J(1,Tn,2,1,"ng-container",6),l()}if(t&2){let e=r();f("nzTooltipTitle",e.tooltip===null?null:e.tooltip||(e.locale==null?null:e.locale.edit)),p(),f("nzStringTemplateOutlet",e.icon)}}var wn=["ellipsisContainer"],Dn=["expandable"],Sn=["contentTemplate"],Nn=["*"],In=t=>({content:t});function On(t,n){t&1&&Tt(0)}function Pn(t,n){if(t&1&&(y(0,On,1,0),m(1)),t&2){let e=n.content;x(e?-1:0),p(),F(" ",e," ")}}function Vn(t,n){}function kn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Fn(t,n){if(t&1&&(J(0,Vn,0,0,"ng-template",5),y(1,kn,1,1)),t&2){let e=r(2),i=Mt(1);f("ngTemplateOutlet",i)("ngTemplateOutletContext",wt(3,In,e.nzContent)),p(),x(e.nzSuffix?1:-1)}}function Rn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.ellipsisStr," ")}}function jn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Bn(t,n){if(t&1){let e=v();s(0,"a",7,2),C("click",function(){_(e);let o=r(3);return h(o.onExpand())}),m(2),l()}if(t&2){let e=r(3);p(2),F(" ",e.locale==null?null:e.locale.expand," ")}}function $n(t,n){if(t&1&&(T(0,"span",null,1),y(2,Rn,1,1),y(3,jn,1,1),y(4,Bn,3,1,"a",6)),t&2){let e=r(2);p(2),x(e.isEllipsis?2:-1),p(),x(e.nzSuffix?3:-1),p(),x(e.nzExpandable&&e.isEllipsis?4:-1)}}function An(t,n){if(t&1&&y(0,Fn,2,5)(1,$n,5,3),t&2){let e=r();x(e.expanded||!e.hasOperationsWithEllipsis&&e.nzEllipsisRows===1&&!e.hasEllipsisObservers||e.canCssEllipsis||e.nzSuffix&&e.expanded?0:1)}}function Ln(t,n){if(t&1){let e=v();s(0,"nz-text-edit",8),C("endEditing",function(o){_(e);let a=r();return h(a.onEndEditing(o))})("startEditing",function(){_(e);let o=r();return h(o.onStartEditing())}),l()}if(t&2){let e=r();f("text",e.nzContent)("icon",e.nzEditIcon)("tooltip",e.nzEditTooltip)}}function Qn(t,n){if(t&1){let e=v();s(0,"nz-text-copy",9),C("textCopy",function(o){_(e);let a=r();return h(a.onTextCopy(o))}),l()}if(t&2){let e=r();f("text",e.copyText)("tooltips",e.nzCopyTooltips)("icons",e.nzCopyIcons)}}var at=(()=>{class t{cdr=u(xe);clipboard=u(rn);i18n=u(ze);destroyRef=u(_e);copied=!1;copyId;locale;nativeElement=u(he).nativeElement;copyTooltip=null;copedTooltip=null;copyIcon="copy";copedIcon="check";text;tooltips;icons=["copy","check"];textCopy=new b;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.copyId)})}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(e){let{tooltips:i,icons:o}=e;i&&this.updateTooltips(),o&&this.updateIcons()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();let 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(this.tooltips===null)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){let[e,i]=this.tooltips;this.copyTooltip=e||this.locale?.copy,this.copedTooltip=i||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){let[e,i]=this.icons;this.copyIcon=e,this.copedIcon=i,this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[Ue],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&(s(0,"button",0),C("click",function(){return o.onClick()}),J(1,vn,2,1,"ng-container",1),l()),i&2&&(de("ant-typography-copy-success",o.copied),f("nzTooltipTitle",o.copied?o.copedTooltip:o.copyTooltip),p(),f("nzStringTemplateOutlet",o.copied?o.copedIcon:o.copyIcon))},dependencies:[me,nt,ot,it,$,ee,tt,et],encapsulation:2,changeDetection:0})}return t})(),rt=(()=>{class t{ngZone=u(_t);cdr=u(xe);i18n=u(ze);destroyRef=u(_e);editing=!1;locale;text;icon="edit";tooltip;startEditing=new b;endEditing=new b(!0);set textarea(e){this.textarea$.next(e)}autosizeDirective;beforeText;currentText;nativeElement=u(he).nativeElement;textarea$=new mt(null);injector=u(Ct);ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"keydown")),B(this.destroyRef)).subscribe(e=>{e.keyCode!==27&&e.keyCode!==13||this.ngZone.run(()=>{e.keyCode===27?this.onCancel():this.onEnter(e),this.cdr.markForCheck()})}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"input")),B(this.destroyRef)).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(){let{injector:e}=this;ht(()=>{this.textarea$.pipe(ut(i=>i!=null),B(this.destroyRef)).subscribe(i=>{i.nativeElement.focus(),i.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:e})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-edit"]],viewQuery:function(i,o){if(i&1&&(W(En,5),W(we,5)),i&2){let a;q(a=U())&&(o.textarea=a.first),q(a=U())&&(o.autosizeDirective=a.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],decls:2,vars:1,consts:[["textarea",""],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle"],["nz-input","","nzAutosize","",3,"blur"],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&y(0,bn,4,0)(1,Mn,2,2,"button",1),i&2&&x(o.editing?0:1)},dependencies:[Z,ce,we,ot,it,$,ee,me,nt,tt,et],encapsulation:2,changeDetection:0})}return t})(),Wn="typography",qn="ant-typography-expand",Un=(()=>{var k;let t,n=[],e=[],i,o=[],a=[],E,D=[],z=[],R,fe=[],Ce=[],lt,ct=[],pt=[];return k=class{_nzModuleName=Wn;nzConfigService=u(Vt);el=u(he).nativeElement;cdr=u(xe);viewContainerRef=u(xt);renderer=u(yt);platform=u(kt);i18n=u(ze);resizeService=u($t);directionality=u(Pt);document=u(gt);destroyRef=u(_e);nzCopyable=!1;nzEditable=!1;nzDisabled=!1;nzExpandable=!1;nzEllipsis=!1;nzCopyTooltips=P(this,n,void 0);nzCopyIcons=(P(this,e),P(this,o,["copy","check"]));nzEditTooltip=(P(this,a),P(this,D,void 0));nzEditIcon=(P(this,z),P(this,fe,"edit"));nzContent=P(this,Ce);nzEllipsisRows=P(this,ct,1);nzType=P(this,pt);nzCopyText;nzSuffix;nzContentChange=new b;nzCopy=new b;nzExpandChange=new b;nzOnEllipsis=new b;textEditRef;textCopyRef;ellipsisContainer;expandableBtn;contentTemplate;locale;expandableBtnElementCache=null;editing=!1;ellipsisText;cssEllipsis=!1;isEllipsis=!0;expanded=!1;ellipsisStr="...";dir="ltr";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}viewInit=!1;requestId=-1;windowResizeSubscription=dt.EMPTY;get copyText(){return typeof this.nzCopyText=="string"?this.nzCopyText:this.nzContent}constructor(){this.destroyRef.onDestroy(()=>{this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()})}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?!1:this.nzEllipsisRows===1?Xe("textOverflow"):Xe("webkitLineClamp")}renderOnNextFrame(){Bt(this.requestId),!(!this.viewInit||!this.nzEllipsis||this.nzEllipsisRows<0||this.expanded||!this.platform.isBrowser)&&(this.requestId=jt(()=>this.syncEllipsis()))}getOriginContentViewRef(){let 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;let{viewRef:g,removeView:d}=this.getOriginContentViewRef(),c=[this.textCopyRef,this.textEditRef].filter(ne=>ne&&ne.nativeElement).map(ne=>ne.nativeElement),M=this.getExpandableBtnElement();M&&c.push(M);let{contentNodes:Le,text:Qe,ellipsis:pe}=Ot(this.el,this.nzEllipsisRows,g.rootNodes,c,this.ellipsisStr,this.nzSuffix);d(),this.ellipsisText=Qe,pe!==this.isEllipsis&&(this.isEllipsis=pe,this.nzOnEllipsis.emit(pe));let te=this.ellipsisContainer.nativeElement;for(;te.firstChild;)this.renderer.removeChild(te,te.firstChild);Le.forEach(ne=>{this.renderer.appendChild(te,ne.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){let g=this.locale?this.locale.expand:"",d=this.expandableBtnElementCache;if(!d||d.innerText===g){let c=this.document.createElement("a");c.className=qn,c.innerText=g,this.expandableBtnElementCache=c}return this.expandableBtnElementCache}else return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.connect().pipe(B(this.destroyRef)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe(B(this.destroyRef)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(g){let{nzCopyable:d,nzEditable:c,nzExpandable:M,nzEllipsis:Le,nzContent:Qe,nzEllipsisRows:pe,nzSuffix:te}=g;(d||c||M||Le||Qe||pe||te)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}},(()=>{let g=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ae()],i=[ae()],E=[ae()],R=[ae()],lt=[ae()],ie(null,null,t,{kind:"field",name:"nzCopyTooltips",static:!1,private:!1,access:{has:d=>"nzCopyTooltips"in d,get:d=>d.nzCopyTooltips,set:(d,c)=>{d.nzCopyTooltips=c}},metadata:g},n,e),ie(null,null,i,{kind:"field",name:"nzCopyIcons",static:!1,private:!1,access:{has:d=>"nzCopyIcons"in d,get:d=>d.nzCopyIcons,set:(d,c)=>{d.nzCopyIcons=c}},metadata:g},o,a),ie(null,null,E,{kind:"field",name:"nzEditTooltip",static:!1,private:!1,access:{has:d=>"nzEditTooltip"in d,get:d=>d.nzEditTooltip,set:(d,c)=>{d.nzEditTooltip=c}},metadata:g},D,z),ie(null,null,R,{kind:"field",name:"nzEditIcon",static:!1,private:!1,access:{has:d=>"nzEditIcon"in d,get:d=>d.nzEditIcon,set:(d,c)=>{d.nzEditIcon=c}},metadata:g},fe,Ce),ie(null,null,lt,{kind:"field",name:"nzEllipsisRows",static:!1,private:!1,access:{has:d=>"nzEllipsisRows"in d,get:d=>d.nzEllipsisRows,set:(d,c)=>{d.nzEllipsisRows=c}},metadata:g},ct,pt),g&&Object.defineProperty(k,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g})})(),We(k,"\u0275fac",function(d){return new(d||k)}),We(k,"\u0275cmp",w({type:k,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(d,c){if(d&1&&(W(rt,5),W(at,5),W(wn,5),W(Dn,5),W(Sn,5)),d&2){let M;q(M=U())&&(c.textEditRef=M.first),q(M=U())&&(c.textCopyRef=M.first),q(M=U())&&(c.ellipsisContainer=M.first),q(M=U())&&(c.expandableBtn=M.first),q(M=U())&&(c.contentTemplate=M.first)}},hostVars:26,hostBindings:function(d,c){d&2&&(ye("-webkit-line-clamp",c.canCssEllipsis&&c.nzEllipsisRows>1?c.nzEllipsisRows:null),de("ant-typography",!c.editing)("ant-typography-rtl",c.dir==="rtl")("ant-typography-edit-content",c.editing)("ant-typography-secondary",c.nzType==="secondary")("ant-typography-warning",c.nzType==="warning")("ant-typography-danger",c.nzType==="danger")("ant-typography-success",c.nzType==="success")("ant-typography-disabled",c.nzDisabled)("ant-typography-ellipsis",c.nzEllipsis&&!c.expanded)("ant-typography-single-line",c.nzEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-single-line",c.canCssEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-multiple-line",c.canCssEllipsis&&c.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",oe],nzEditable:[2,"nzEditable","nzEditable",oe],nzDisabled:[2,"nzDisabled","nzDisabled",oe],nzExpandable:[2,"nzExpandable","nzExpandable",oe],nzEllipsis:[2,"nzEllipsis","nzEllipsis",oe],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",Nt],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],features:[Ue],ngContentSelectors:Nn,decls:5,vars:3,consts:[["contentTemplate",""],["ellipsisContainer",""],["expandable",""],[3,"text","icon","tooltip"],[3,"text","tooltips","icons"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-typography-expand"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(d,c){d&1&&(bt(),J(0,Pn,2,2,"ng-template",null,0,Dt),y(2,An,2,1),y(3,Ln,1,3,"nz-text-edit",3),y(4,Qn,1,3,"nz-text-copy",4)),d&2&&(p(2),x(c.editing?-1:2),p(),x(c.nzEditable?3:-1),p(),x(c.nzCopyable&&!c.editing?4:-1))},dependencies:[It,rt,at],encapsulation:2,changeDetection:0})),k})(),pn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[Un,at,rt]})}return t})();var ue=hn(yn());function Jn(t,n){if(t&1){let e=v();s(0,"div",0)(1,"span",1),m(2,"\u6709\u672A\u4FDD\u5B58\u66F4\u6539"),l(),s(3,"button",2),C("click",function(){_(e);let o=r();return h(o.diff.emit())}),m(4,"Diff"),l(),s(5,"button",2),C("click",function(){_(e);let o=r();return h(o.reset.emit())}),m(6,"\u91CD\u7F6E"),l(),s(7,"button",3),C("click",function(){_(e);let o=r();return h(o.save.emit())}),m(8,"\u4FDD\u5B58"),l()()}}var Oe=class t{dirty=!1;diff=new b;reset=new b;save=new b;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-change-bar-component"]],inputs:{dirty:"dirty"},outputs:{diff:"diff",reset:"reset",save:"save"},decls:1,vars:1,consts:[[1,"change-bar"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(e,i){e&1&&y(0,Jn,9,0,"div",0),e&2&&x(i.dirty?0:-1)},dependencies:[O,Te,be,ve,Ee],styles:[".change-bar[_ngcontent-%COMP%]{width:100%;padding:10px 20px;display:flex;justify-content:flex-end;align-items:center;gap:10px;box-shadow:0 -2px 8px #0000000f;background:var(--app-component-bg);border:1px solid var(--app-border-color)}.hint[_ngcontent-%COMP%]{margin-right:auto;opacity:.75}"]})};var Gn=(t,n)=>n.id;function Xn(t,n){if(t&1){let e=v();s(0,"div",6),C("click",function(){let o=_(e).$implicit,a=r();return h(a.selectDomain(o))}),s(1,"div",7)(2,"div",8),T(3,"nz-icon",9),l(),s(4,"div",10)(5,"div",11),m(6),l(),s(7,"div",12),m(8),l()()()()}if(t&2){let e=n.$implicit,i=r();de("active",e.id===i.activeDomainId()),p(3),f("nzType",e.icon||"setting"),p(3),V(e.label),p(2),V(e.description)}}var Ve=class t{keyword=I("");nodes=Je([]);activeDomainId=Je("");domainSelect=new b;selectDomain(n){this.domainSelect.emit(n.id)}filtered=j(()=>{let n=this.keyword().trim().toLowerCase();return n?this.nodes().map(e=>K(H({},e),{children:(e.children??[]).filter(i=>(i.label??"").toLowerCase().includes(n)||(i.relPath??"").toLowerCase().includes(n))})).filter(e=>(e.children?.length??0)>0):this.nodes()});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-nav-component"]],inputs:{nodes:[1,"nodes"],activeDomainId:[1,"activeDomainId"]},outputs:{domainSelect:"domainSelect"},decls:8,vars:1,consts:[[1,"list"],[1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","",3,"ngModelChange","ngModel"],[1,"items"],[1,"item",3,"active"],[1,"item",3,"click"],[1,"row"],[1,"icon"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],[1,"info"],[1,"name"],[1,"description"]],template:function(e,i){e&1&&(s(0,"div",0)(1,"div",1)(2,"nz-input-wrapper"),T(3,"nz-icon",2),s(4,"input",3),C("ngModelChange",function(a){return i.keyword.set(a)}),l()()(),s(5,"div",4),S(6,Xn,9,5,"div",5,Gn),l()()),e&2&&(p(4),f("ngModel",i.keyword()),p(2),N(i.filtered()))},dependencies:[O,le,Me,re,se,Z,ce,Qt,Lt,$,ee],styles:[".list[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:100%;border-radius:18px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;height:0;display:flex;flex-direction:column;gap:8px;padding:8px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-radius:3px;padding:10px;cursor:pointer}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item.active[_ngcontent-%COMP%]{background:var(--app-primary-2)}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;overflow:hidden;justify-content:space-between}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:42px;flex:0 0 auto;position:relative}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;overflow:hidden}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:13px;color:var(--app-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})};function ke(t,n){return n.split(".").reduce((e,i)=>e?e[i]:void 0,t)}function mn(t,n,e){let i=n.split("."),o=i.pop(),a=t;for(let E of i)a[E]??={},a=a[E];a[o]=e}function un(t){return t.sort((n,e)=>(n.domain?.nav?.order??0)-(e.domain?.nav?.order??0)).map(n=>({id:n.domain.id,type:"domain",label:n.domain.label,icon:n.domain.icon,description:n.domain.description,children:(n.docs??[]).map(e=>({id:e.spec.id,type:"doc",label:e.spec.title,docId:e.spec.id,relPath:e.chosen?.relPath,codec:e.chosen?.codec,exists:e.exists}))}))}var fn=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);function Fe(t,n,e,i=""){if(e===void 0)return[];if(!fn(e))return[{scope:t,target:n,path:i||"/",value:e}];let o=[],a=Object.keys(e);if(a.length===0)return o.push({scope:t,target:n,path:i||"/",value:{}}),o;for(let E of a){let D=i?`${i}.${E}`:E,z=e[E];fn(z)?o.push(...Fe(t,n,z,D)):o.push({scope:t,target:n,path:D,value:z})}return o}var Cn=(t,n)=>n.value,ei=(t,n)=>n.key;function ti(t,n){if(t&1&&(s(0,"div",3),m(1),l()),t&2){let e=r();p(),F(" ",e.item.desc," ")}}function ni(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function ii(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function oi(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r();p(),V(e.value)}}function ai(t,n){if(t&1&&(s(0,"nz-space",6),T(1,"nz-icon",9),s(2,"span"),m(3),l()()),t&2){let e=r();p(3),V(e.value)}}function ri(t,n){if(t&1){let e=v();s(0,"nz-switch",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function si(t,n){if(t&1&&T(0,"nz-option",11),t&2){let e=n.$implicit;f("nzValue",e.value)("nzLabel",e.label)}}function li(t,n){if(t&1){let e=v();s(0,"nz-select",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),S(1,si,1,2,"nz-option",11,Cn),l()}if(t&2){let e=r();f("ngModel",e.value),p(),N(e.options)}}function ci(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r().$index;p(),V(e+1)}}function pi(t,n){t&1&&T(0,"nz-icon",12)}function di(t,n){if(t&1&&(T(0,"nz-icon",9),s(1,"span"),m(2),l(),y(3,pi,1,0,"nz-icon",12)),t&2){let e=n.$implicit,i=r().$implicit,o=r(3);p(2),F(" ",i==null?null:i[e.key]," "),p(),x(e!==o.arrayFields()[o.arrayFields().length-1]?3:-1)}}function mi(t,n){if(t&1&&(s(0,"nz-space"),y(1,ci,2,1,"span"),S(2,di,4,2,null,null,ei),l()),t&2){let e=r(3);p(),x(e.arrayValue().length>1?1:-1),p(),N(e.arrayFields())}}function ui(t,n){if(t&1&&S(0,mi,4,1,"nz-space",null,Et),t&2){let e=r(2);N(e.arrayValue())}}function fi(t,n){t&1&&(s(0,"span"),m(1,"\u6570\u7EC4\u7C7B\u578B\u914D\u7F6E\u9879\uFF0C\u6682\u4E0D\u652F\u6301\u8868\u5355\u7F16\u8F91"),l())}function Ci(t,n){if(t&1&&y(0,ui,2,0)(1,fi,2,0,"span"),t&2){let e=r();x(e.isArrayObjectEditor()?0:1)}}function gi(t,n){if(t&1&&(s(0,"nz-space")(1,"span",2),m(2),l(),s(3,"span",14),m(4),l()()),t&2){let e=n.$implicit;p(2),F("",e.label,":"),p(2),V(e.value)}}function _i(t,n){if(t&1&&(s(0,"div",13),S(1,gi,5,2,"nz-space",null,Cn),l()),t&2){let e=r(2);p(),N(e.objectKv())}}function hi(t,n){if(t&1&&y(0,_i,3,0,"div",13),t&2){let e=r();x(e.isObjectEditor()?0:-1)}}var Re=class t{item;value;valueChange=new b;options=[];emit(n){this.valueChange.emit(n)}isObjectEditor(){return this.item?.type==="object"}objectKv(){let n=this.value??{};return Object.values(n).map((e,i)=>typeof e=="string"?{label:Object.keys(n)[i],value:e}:{label:Object.keys(n)[i],value:JSON.stringify(e)})}isArrayObjectEditor(){return this.item?.type==="array"&&this.item?.item?.type==="object"&&Array.isArray(this.item?.item?.fields)&&this.item.item.fields.length>0}arrayFields(){return this.item?.item?.fields??[]}arrayValue(){return Array.isArray(this.value)?this.value:[]}addRow(){let n=this.arrayFields(),e={};for(let o of n)o.key&&(e[o.key]=o.default??"");let i=[...this.arrayValue(),e];this.emit(i)}removeRow(n){let i=this.arrayValue().filter((o,a)=>a!==n);this.emit(i)}updateCell(n,e,i){let a=this.arrayValue().map((E,D)=>D!==n?E:K(H({},E??{}),{[e]:i}));this.emit(a)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-item-component"]],inputs:{item:"item",value:"value",options:"options"},outputs:{valueChange:"valueChange"},decls:14,vars:3,consts:[[1,"config-item"],[1,"meta"],[1,"label"],[1,"desc"],[1,"control"],["nz-input","",3,"ngModel"],["nzAlign","center"],[3,"ngModel"],["nz-input","",3,"ngModelChange","ngModel"],["nzType","file","nzTheme","fill"],[3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["nzType","arrow-right","nzTheme","outline"],[1,"kv"],[1,"value"]],template:function(e,i){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),m(3),l(),y(4,ti,2,1,"div",3),l(),s(5,"div",4),y(6,ni,1,1,"input",5)(7,ii,1,1,"input",5)(8,oi,2,1,"span")(9,ai,4,1,"nz-space",6)(10,ri,1,1,"nz-switch",7)(11,li,3,1,"nz-select",7)(12,Ci,2,1)(13,hi,1,1),l()()),e&2){let o;p(3),V(i.item.label),p(),x(i.item.desc?4:-1),p(2),x((o=i.item.type)==="input"?6:o==="path"?7:o==="string"?8:o==="file"?9:o==="boolean"?10:o==="select"?11:o==="array"?12:o==="object"?13:-1)}},dependencies:[O,le,Me,re,se,$,ee,De,en,Z,ce,Ie,Se,Ne,Rt,Ft,an],styles:[".config-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px}.config-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-2)}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;opacity:.75}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;margin-top:4px;opacity:.55}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%]{min-width:200px;max-width:600px;width:60%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] input[nz-input][_ngcontent-%COMP%], .config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%]{width:100%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] .kv[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;width:100%}"]})};var st=()=>[],yi=(t,n)=>n.id,gn=(t,n)=>n.key;function xi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(5);return h(E.onValueChange(o,a))}),l()}if(t&2){let e=n.$implicit,i=r(2).$implicit,o=r(3);f("item",e)("options",e.options||o.options[e.optionsRef==null?null:e.optionsRef.key]||Y(3,st))("value",o.getChild(e,i))}}function zi(t,n){if(t&1&&S(0,xi,1,4,"app-config-item-component",4,gn),t&2){let e=r().$implicit;N(e.children)}}function vi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(3);return h(E.onValueChange(o,a))}),l(),y(1,zi,2,0)}if(t&2){let e=n.$implicit,i=r(3);f("item",e)("options",e.options||i.options[e.optionsRef==null?null:e.optionsRef.key]||Y(4,st))("value",i.get(e)),p(),x(e.children!=null&&e.children.length?1:-1)}}function Ei(t,n){if(t&1&&(s(0,"section",1)(1,"h3",2),m(2),l(),S(3,vi,2,5,null,null,gn),l()),t&2){let e=n.$implicit;vt("id",e.id),p(2),V(e.label),p(),N(e.items)}}function bi(t,n){if(t&1&&S(0,Ei,5,2,"section",1,yi),t&2){let e=r().schema.sections||Y(0,st);N(e)}}function Ti(t,n){t&1&&(s(0,"div",0),m(1," \u8BE5\u914D\u7F6E\u6682\u4E0D\u652F\u6301\u8868\u5355\u6A21\u5F0F\uFF08\u53EF\u5207\u6362 Raw / \u6216\u7A0D\u540E\u5B9E\u73B0 provider\uFF09 "),l())}var je=class t{schema;vm;options={};vmChange=new b;get(n){let e=ke(this.vm,n.key);return e??n.default}getChild(n,e){let i=this.get(e);if(i==null||i==="")return n.default;let o=this.resolveDynamicPath(n.key,e.key,i),a=ke(this.vm,o);return a??n.default}onValueChange(n,e){let i=this.resolvePathForWrite(e);this.update(i,n)}resolvePathForWrite(n){let e=n.key||"",i=e.match(/<([^>]+)>/);if(!i)return e;let o=i[1],a=ke(this.vm,o);return this.resolveDynamicPath(e,o,a)}resolveDynamicPath(n,e,i){let o=`<${e}>`;return n.replace(o,String(i??""))}update(n,e){let i=structuredClone(this.vm);mn(i,n,e),this.vmChange.emit(i)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-section-component"]],inputs:{schema:"schema",vm:"vm",options:"options"},outputs:{vmChange:"vmChange"},decls:2,vars:1,consts:[[1,"empty"],[1,"section"],[1,"section-title"],[3,"valueChange","item","options","value"],[3,"item","options","value"]],template:function(e,i){e&1&&y(0,bi,2,1)(1,Ti,2,0,"div",0),e&2&&x(i.schema?0:1)},dependencies:[O,Re],styles:[".section[_ngcontent-%COMP%]{padding:0}.section[_ngcontent-%COMP%]:last-child{border-bottom:none}.section-title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:24px;opacity:.85;font-weight:500;padding:0 16px}.empty[_ngcontent-%COMP%]{padding:12px 14px}"]})};var Be=class t{api=u(Zt);getCatalog(n){return this.api.get(`/api/config/catalog/${n}`)}openInEditor(n,e){return this.api.post(`/api/config/openInEditor/${n}/${encodeURIComponent(e)}`,{})}writeDomainSchema(n,e,i){return this.api.post(`/api/config/writeSchema/${n}/${e}`,{vm:i})}getDomainSchemas(n,e){return this.api.get(`/api/config/getDomainSchema/${n}/${e}`)}diffDomainSchema(n,e,i){return this.api.post(`/api/config/diffSchema/${n}/${e}`,{vm:i})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"})};var Mi=["class","component"],wi=()=>({}),Di=()=>[],Si=(t,n)=>n.docId;function Ni(t,n){if(t&1&&T(0,"nz-option",13),t&2){let e=n.$implicit;f("nzLabel",e.title)("nzValue",e.docId)}}function Ii(t,n){if(t&1){let e=v();G(0),s(1,"div",11)(2,"label"),m(3,"\u9009\u62E9\u914D\u7F6E\u6587\u4EF6"),l(),s(4,"nz-select",12),Ke("ngModelChange",function(o){_(e);let a=r();return He(a.selectedDocId,o)||(a.selectedDocId=o),h(o)}),S(5,Ni,1,2,"nz-option",13,Si),l()(),X()}if(t&2){let e=r();p(4),Ze("ngModel",e.selectedDocId),p(),N(e.activeDocsMeta()||Y(1,Di))}}function Oi(t,n){if(t&1){let e=v();G(0),s(1,"button",14),C("click",function(){_(e);let o=r();return h(o.openConfig())}),m(2," \u6253\u5F00\u914D\u7F6E\u6587\u4EF6 "),l(),X()}if(t&2){let e=r();p(),f("disabled",!e.selectedDocId())}}var $e=class t{api=u(Be);projectState=u(nn);msg=u(tn);modal=u(Kt);projectId=j(()=>this.projectState.currentProjectId()||"");loading=I(!1);isModalVisible=I(!1);catalog=I(null);navNodes=j(()=>un(this.catalog()??[]));activeDomainId=I(null);selectedDocId=I(null);docStates=I({});domainSchema=I(null);domainVM=I(null);baselineDomainVM=I(null);activeDomain=j(()=>{let n=this.activeDomainId();return(this.catalog()??[]).find(e=>e.domain.id===n)??null});activeDocs=j(()=>this.activeDomain()?.docs??[]);activeDocsMeta=j(()=>{let n=this.activeDomain();return n?(n.docs??[]).map(e=>({docId:e.spec.id,title:e.spec.title,exists:e.exists,relPath:e.chosen?.relPath,codec:e.chosen?.codec})):[]});domainDirty=j(()=>{let n=this.baselineDomainVM(),e=this.domainVM();return!n||!e?!1:!ue.isEqual(n,e)});constructor(){St(()=>{this.projectId()&&this.getCatalog()})}getCatalog(){let n=this.projectId();n&&(this.loading.set(!0),this.api.getCatalog(n).subscribe({next:e=>{this.catalog.set(e);let i=e[0]?.domain?.id??"";i&&(this.activeDomainId.set(i),this.loadDomainSchema(i))},error:e=>{console.error(e),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u76EE\u5F55\u5931\u8D25")},complete:()=>this.loading.set(!1)}))}onDomainSelect(n){this.activeDomainId.set(n),n==="angular"?this.loadDomainSchema(n):this.domainVM.set(null)}async loadDomainSchema(n){let e=this.projectId();if(e){this.loading.set(!0);try{let i=await ge(this.api.getDomainSchemas(e,n));this.domainSchema.set(i),this.domainVM.set(i.vm),this.baselineDomainVM.set(ue.cloneDeep(i.vm))}catch(i){console.error(i),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u6A21\u578B\u5931\u8D25"),this.domainVM.set(null),this.baselineDomainVM.set(null)}finally{this.loading.set(!1)}}}async onDiff(){let n=this.projectId(),e=this.activeDomainId(),i=this.domainVM();if(!(!n||!e||!i)){this.loading.set(!0);try{let o=await ge(this.api.diffDomainSchema(n,e,i)),a=o?.docPatch??{},E=o?.filePatch??[],D=[];for(let[z,R]of Object.entries(a))D.push(...Fe("doc",z,R));for(let z of E)D.push(...Fe("file",z.relPath,z.patch));if(D.length===0){this.msg.info("\u6CA1\u6709\u53EF\u5199\u56DE\u7684\u53D8\u66F4");return}D.sort((z,R)=>{if(z.scope!==R.scope)return z.scope.localeCompare(R.scope);let fe=`${z.target}:${z.path}`,Ce=`${R.target}:${R.path}`;return fe.localeCompare(Ce)}),this.modal.create({nzTitle:"\u53D8\u66F4",nzContent:`
1
+ import{a as an}from"./chunk-FNLA2MNI.js";import{f as on}from"./chunk-CO7S3LZV.js";import{e as sn}from"./chunk-G73D24UX.js";import"./chunk-CJISJEP3.js";import{d as rn}from"./chunk-35COW2FA.js";import"./chunk-POZS3PD3.js";import{a as yn}from"./chunk-HZ73CM45.js";import{d as Se,e as Ne,f as Ie}from"./chunk-DJJC6FPO.js";import{e as Wt,g as qt,h as Ut}from"./chunk-ROB7EMN5.js";import{A as en,B as De,E as tn,G as nn,c as ze,g as Zt,o as Ht,v as Kt,w as Jt,x as Gt,y as Xt,z as Yt}from"./chunk-EP45FT55.js";import{Ab as ce,Bb as Qt,Cb as Z,F as Vt,Fb as nt,H as ae,Hb as me,I as kt,M as ee,N as $,O as et,P as tt,T as Ft,U as Rt,V as ve,W as Ee,Xa as jt,Y as be,Ya as Bt,Z as Te,Za as $t,jb as Me,lb as re,pb as se,q as Xe,r as Ot,vb as le,w as Ye,wb as At,x as Pt,xb as we,yb as Lt,z as B}from"./chunk-PTMJ422K.js";import"./chunk-HFZLJHYR.js";import{B as Ge,d as It,i as O}from"./chunk-53YRDYLS.js";import{$b as N,Aa as Ct,Ab as xt,Ba as gt,Ca as _e,Dc as Mt,Eb as w,Ec as ye,Fb as Q,Fc as de,Gb as zt,Ha as I,Ic as m,Jc as V,Kb as J,Kc as F,Mc as Ze,Nc as He,Oa as Ue,Oc as Ke,Ra as he,Tb as vt,Vb as y,Vc as Y,W as ut,Wc as wt,Xb as x,Yb as Et,_b as S,a as H,ac as f,ad as Dt,b as K,bc as s,cc as l,da as qe,dc as T,e as hn,f as We,fd as j,g as dt,gd as St,hc as G,ic as X,kc as v,ld as Je,m as mt,ma as ft,mb as p,na as L,qc as C,r as ie,ra as u,rb as b,rd as xe,s as P,sb as _t,tc as r,ub as ht,uc as bt,vc as Tt,vd as oe,wd as Nt,xa as _,xb as yt,xc as W,ya as h,yc as q,z as ge,zc as U}from"./chunk-SJG2JCPL.js";var it=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=zt({type:t,selectors:[["button","nz-trans-button",""]],hostVars:8,hostBindings:function(i,o){i&2&&ye("border","0")("background","transparent")("padding","0")("line-height","inherit")}})}return t})(),ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({})}return t})();function vn(t,n){if(t&1&&(G(0),T(1,"nz-icon",2),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}var En=["textarea"];function bn(t,n){if(t&1){let e=v();s(0,"textarea",2,0),C("blur",function(){_(e);let o=r();return h(o.confirm())}),l(),s(2,"button",3),C("click",function(){_(e);let o=r();return h(o.confirm())}),T(3,"nz-icon",4),l()}}function Tn(t,n){if(t&1&&(G(0),T(1,"nz-icon",7),X()),t&2){let e=n.$implicit;p(),f("nzType",e)}}function Mn(t,n){if(t&1){let e=v();s(0,"button",5),C("click",function(){_(e);let o=r();return h(o.onClick())}),J(1,Tn,2,1,"ng-container",6),l()}if(t&2){let e=r();f("nzTooltipTitle",e.tooltip===null?null:e.tooltip||(e.locale==null?null:e.locale.edit)),p(),f("nzStringTemplateOutlet",e.icon)}}var wn=["ellipsisContainer"],Dn=["expandable"],Sn=["contentTemplate"],Nn=["*"],In=t=>({content:t});function On(t,n){t&1&&Tt(0)}function Pn(t,n){if(t&1&&(y(0,On,1,0),m(1)),t&2){let e=n.content;x(e?-1:0),p(),F(" ",e," ")}}function Vn(t,n){}function kn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Fn(t,n){if(t&1&&(J(0,Vn,0,0,"ng-template",5),y(1,kn,1,1)),t&2){let e=r(2),i=Mt(1);f("ngTemplateOutlet",i)("ngTemplateOutletContext",wt(3,In,e.nzContent)),p(),x(e.nzSuffix?1:-1)}}function Rn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.ellipsisStr," ")}}function jn(t,n){if(t&1&&m(0),t&2){let e=r(3);F(" ",e.nzSuffix," ")}}function Bn(t,n){if(t&1){let e=v();s(0,"a",7,2),C("click",function(){_(e);let o=r(3);return h(o.onExpand())}),m(2),l()}if(t&2){let e=r(3);p(2),F(" ",e.locale==null?null:e.locale.expand," ")}}function $n(t,n){if(t&1&&(T(0,"span",null,1),y(2,Rn,1,1),y(3,jn,1,1),y(4,Bn,3,1,"a",6)),t&2){let e=r(2);p(2),x(e.isEllipsis?2:-1),p(),x(e.nzSuffix?3:-1),p(),x(e.nzExpandable&&e.isEllipsis?4:-1)}}function An(t,n){if(t&1&&y(0,Fn,2,5)(1,$n,5,3),t&2){let e=r();x(e.expanded||!e.hasOperationsWithEllipsis&&e.nzEllipsisRows===1&&!e.hasEllipsisObservers||e.canCssEllipsis||e.nzSuffix&&e.expanded?0:1)}}function Ln(t,n){if(t&1){let e=v();s(0,"nz-text-edit",8),C("endEditing",function(o){_(e);let a=r();return h(a.onEndEditing(o))})("startEditing",function(){_(e);let o=r();return h(o.onStartEditing())}),l()}if(t&2){let e=r();f("text",e.nzContent)("icon",e.nzEditIcon)("tooltip",e.nzEditTooltip)}}function Qn(t,n){if(t&1){let e=v();s(0,"nz-text-copy",9),C("textCopy",function(o){_(e);let a=r();return h(a.onTextCopy(o))}),l()}if(t&2){let e=r();f("text",e.copyText)("tooltips",e.nzCopyTooltips)("icons",e.nzCopyIcons)}}var at=(()=>{class t{cdr=u(xe);clipboard=u(rn);i18n=u(ze);destroyRef=u(_e);copied=!1;copyId;locale;nativeElement=u(he).nativeElement;copyTooltip=null;copedTooltip=null;copyIcon="copy";copedIcon="check";text;tooltips;icons=["copy","check"];textCopy=new b;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.copyId)})}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.updateTooltips(),this.cdr.markForCheck()})}ngOnChanges(e){let{tooltips:i,icons:o}=e;i&&this.updateTooltips(),o&&this.updateIcons()}onClick(){if(this.copied)return;this.copied=!0,this.cdr.detectChanges();let 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(this.tooltips===null)this.copedTooltip=null,this.copyTooltip=null;else if(Array.isArray(this.tooltips)){let[e,i]=this.tooltips;this.copyTooltip=e||this.locale?.copy,this.copedTooltip=i||this.locale?.copied}else this.copyTooltip=this.locale?.copy,this.copedTooltip=this.locale?.copied;this.cdr.markForCheck()}updateIcons(){let[e,i]=this.icons;this.copyIcon=e,this.copedIcon=i,this.cdr.markForCheck()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-copy"]],inputs:{text:"text",tooltips:"tooltips",icons:"icons"},outputs:{textCopy:"textCopy"},exportAs:["nzTextCopy"],features:[Ue],decls:2,vars:4,consts:[["type","button","nz-tooltip","","nz-trans-button","",1,"ant-typography-copy",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&(s(0,"button",0),C("click",function(){return o.onClick()}),J(1,vn,2,1,"ng-container",1),l()),i&2&&(de("ant-typography-copy-success",o.copied),f("nzTooltipTitle",o.copied?o.copedTooltip:o.copyTooltip),p(),f("nzStringTemplateOutlet",o.copied?o.copedIcon:o.copyIcon))},dependencies:[me,nt,ot,it,$,ee,tt,et],encapsulation:2,changeDetection:0})}return t})(),rt=(()=>{class t{ngZone=u(_t);cdr=u(xe);i18n=u(ze);destroyRef=u(_e);editing=!1;locale;text;icon="edit";tooltip;startEditing=new b;endEditing=new b(!0);set textarea(e){this.textarea$.next(e)}autosizeDirective;beforeText;currentText;nativeElement=u(he).nativeElement;textarea$=new mt(null);injector=u(Ct);ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"keydown")),B(this.destroyRef)).subscribe(e=>{e.keyCode!==27&&e.keyCode!==13||this.ngZone.run(()=>{e.keyCode===27?this.onCancel():this.onEnter(e),this.cdr.markForCheck()})}),this.textarea$.pipe(qe(e=>Ye(e?.nativeElement,"input")),B(this.destroyRef)).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(){let{injector:e}=this;ht(()=>{this.textarea$.pipe(ut(i=>i!=null),B(this.destroyRef)).subscribe(i=>{i.nativeElement.focus(),i.nativeElement.value=this.currentText||"",this.autosizeDirective.resizeToFitContent(),this.cdr.markForCheck()})},{injector:e})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["nz-text-edit"]],viewQuery:function(i,o){if(i&1&&(W(En,5),W(we,5)),i&2){let a;q(a=U())&&(o.textarea=a.first),q(a=U())&&(o.autosizeDirective=a.first)}},inputs:{text:"text",icon:"icon",tooltip:"tooltip"},outputs:{startEditing:"startEditing",endEditing:"endEditing"},exportAs:["nzTextEdit"],decls:2,vars:1,consts:[["textarea",""],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"nzTooltipTitle"],["nz-input","","nzAutosize","",3,"blur"],["nz-trans-button","",1,"ant-typography-edit-content-confirm",3,"click"],["nzType","enter"],["nz-tooltip","","nz-trans-button","",1,"ant-typography-edit",3,"click","nzTooltipTitle"],[4,"nzStringTemplateOutlet"],[3,"nzType"]],template:function(i,o){i&1&&y(0,bn,4,0)(1,Mn,2,2,"button",1),i&2&&x(o.editing?0:1)},dependencies:[Z,ce,we,ot,it,$,ee,me,nt,tt,et],encapsulation:2,changeDetection:0})}return t})(),Wn="typography",qn="ant-typography-expand",Un=(()=>{var k;let t,n=[],e=[],i,o=[],a=[],E,D=[],z=[],R,fe=[],Ce=[],lt,ct=[],pt=[];return k=class{_nzModuleName=Wn;nzConfigService=u(Vt);el=u(he).nativeElement;cdr=u(xe);viewContainerRef=u(xt);renderer=u(yt);platform=u(kt);i18n=u(ze);resizeService=u($t);directionality=u(Pt);document=u(gt);destroyRef=u(_e);nzCopyable=!1;nzEditable=!1;nzDisabled=!1;nzExpandable=!1;nzEllipsis=!1;nzCopyTooltips=P(this,n,void 0);nzCopyIcons=(P(this,e),P(this,o,["copy","check"]));nzEditTooltip=(P(this,a),P(this,D,void 0));nzEditIcon=(P(this,z),P(this,fe,"edit"));nzContent=P(this,Ce);nzEllipsisRows=P(this,ct,1);nzType=P(this,pt);nzCopyText;nzSuffix;nzContentChange=new b;nzCopy=new b;nzExpandChange=new b;nzOnEllipsis=new b;textEditRef;textCopyRef;ellipsisContainer;expandableBtn;contentTemplate;locale;expandableBtnElementCache=null;editing=!1;ellipsisText;cssEllipsis=!1;isEllipsis=!0;expanded=!1;ellipsisStr="...";dir="ltr";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}viewInit=!1;requestId=-1;windowResizeSubscription=dt.EMPTY;get copyText(){return typeof this.nzCopyText=="string"?this.nzCopyText:this.nzContent}constructor(){this.destroyRef.onDestroy(()=>{this.expandableBtnElementCache=null,this.windowResizeSubscription.unsubscribe()})}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?!1:this.nzEllipsisRows===1?Xe("textOverflow"):Xe("webkitLineClamp")}renderOnNextFrame(){Bt(this.requestId),!(!this.viewInit||!this.nzEllipsis||this.nzEllipsisRows<0||this.expanded||!this.platform.isBrowser)&&(this.requestId=jt(()=>this.syncEllipsis()))}getOriginContentViewRef(){let 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;let{viewRef:g,removeView:d}=this.getOriginContentViewRef(),c=[this.textCopyRef,this.textEditRef].filter(ne=>ne&&ne.nativeElement).map(ne=>ne.nativeElement),M=this.getExpandableBtnElement();M&&c.push(M);let{contentNodes:Le,text:Qe,ellipsis:pe}=Ot(this.el,this.nzEllipsisRows,g.rootNodes,c,this.ellipsisStr,this.nzSuffix);d(),this.ellipsisText=Qe,pe!==this.isEllipsis&&(this.isEllipsis=pe,this.nzOnEllipsis.emit(pe));let te=this.ellipsisContainer.nativeElement;for(;te.firstChild;)this.renderer.removeChild(te,te.firstChild);Le.forEach(ne=>{this.renderer.appendChild(te,ne.cloneNode(!0))}),this.cdr.markForCheck()}getExpandableBtnElement(){if(this.nzExpandable){let g=this.locale?this.locale.expand:"",d=this.expandableBtnElementCache;if(!d||d.innerText===g){let c=this.document.createElement("a");c.className=qn,c.innerText=g,this.expandableBtnElementCache=c}return this.expandableBtnElementCache}else return this.expandableBtnElementCache=null,null}renderAndSubscribeWindowResize(){this.platform.isBrowser&&(this.windowResizeSubscription.unsubscribe(),this.cssEllipsis=this.canUseCSSEllipsis(),this.renderOnNextFrame(),this.windowResizeSubscription=this.resizeService.connect().pipe(B(this.destroyRef)).subscribe(()=>this.renderOnNextFrame()))}ngOnInit(){this.i18n.localeChange.pipe(B(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Text"),this.cdr.markForCheck()}),this.directionality.change?.pipe(B(this.destroyRef)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngAfterViewInit(){this.viewInit=!0,this.renderAndSubscribeWindowResize()}ngOnChanges(g){let{nzCopyable:d,nzEditable:c,nzExpandable:M,nzEllipsis:Le,nzContent:Qe,nzEllipsisRows:pe,nzSuffix:te}=g;(d||c||M||Le||Qe||pe||te)&&this.nzEllipsis&&(this.expanded?this.windowResizeSubscription.unsubscribe():this.renderAndSubscribeWindowResize())}},(()=>{let g=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[ae()],i=[ae()],E=[ae()],R=[ae()],lt=[ae()],ie(null,null,t,{kind:"field",name:"nzCopyTooltips",static:!1,private:!1,access:{has:d=>"nzCopyTooltips"in d,get:d=>d.nzCopyTooltips,set:(d,c)=>{d.nzCopyTooltips=c}},metadata:g},n,e),ie(null,null,i,{kind:"field",name:"nzCopyIcons",static:!1,private:!1,access:{has:d=>"nzCopyIcons"in d,get:d=>d.nzCopyIcons,set:(d,c)=>{d.nzCopyIcons=c}},metadata:g},o,a),ie(null,null,E,{kind:"field",name:"nzEditTooltip",static:!1,private:!1,access:{has:d=>"nzEditTooltip"in d,get:d=>d.nzEditTooltip,set:(d,c)=>{d.nzEditTooltip=c}},metadata:g},D,z),ie(null,null,R,{kind:"field",name:"nzEditIcon",static:!1,private:!1,access:{has:d=>"nzEditIcon"in d,get:d=>d.nzEditIcon,set:(d,c)=>{d.nzEditIcon=c}},metadata:g},fe,Ce),ie(null,null,lt,{kind:"field",name:"nzEllipsisRows",static:!1,private:!1,access:{has:d=>"nzEllipsisRows"in d,get:d=>d.nzEllipsisRows,set:(d,c)=>{d.nzEllipsisRows=c}},metadata:g},ct,pt),g&&Object.defineProperty(k,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g})})(),We(k,"\u0275fac",function(d){return new(d||k)}),We(k,"\u0275cmp",w({type:k,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(d,c){if(d&1&&(W(rt,5),W(at,5),W(wn,5),W(Dn,5),W(Sn,5)),d&2){let M;q(M=U())&&(c.textEditRef=M.first),q(M=U())&&(c.textCopyRef=M.first),q(M=U())&&(c.ellipsisContainer=M.first),q(M=U())&&(c.expandableBtn=M.first),q(M=U())&&(c.contentTemplate=M.first)}},hostVars:26,hostBindings:function(d,c){d&2&&(ye("-webkit-line-clamp",c.canCssEllipsis&&c.nzEllipsisRows>1?c.nzEllipsisRows:null),de("ant-typography",!c.editing)("ant-typography-rtl",c.dir==="rtl")("ant-typography-edit-content",c.editing)("ant-typography-secondary",c.nzType==="secondary")("ant-typography-warning",c.nzType==="warning")("ant-typography-danger",c.nzType==="danger")("ant-typography-success",c.nzType==="success")("ant-typography-disabled",c.nzDisabled)("ant-typography-ellipsis",c.nzEllipsis&&!c.expanded)("ant-typography-single-line",c.nzEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-single-line",c.canCssEllipsis&&c.nzEllipsisRows===1)("ant-typography-ellipsis-multiple-line",c.canCssEllipsis&&c.nzEllipsisRows>1))},inputs:{nzCopyable:[2,"nzCopyable","nzCopyable",oe],nzEditable:[2,"nzEditable","nzEditable",oe],nzDisabled:[2,"nzDisabled","nzDisabled",oe],nzExpandable:[2,"nzExpandable","nzExpandable",oe],nzEllipsis:[2,"nzEllipsis","nzEllipsis",oe],nzCopyTooltips:"nzCopyTooltips",nzCopyIcons:"nzCopyIcons",nzEditTooltip:"nzEditTooltip",nzEditIcon:"nzEditIcon",nzContent:"nzContent",nzEllipsisRows:[2,"nzEllipsisRows","nzEllipsisRows",Nt],nzType:"nzType",nzCopyText:"nzCopyText",nzSuffix:"nzSuffix"},outputs:{nzContentChange:"nzContentChange",nzCopy:"nzCopy",nzExpandChange:"nzExpandChange",nzOnEllipsis:"nzOnEllipsis"},exportAs:["nzTypography"],features:[Ue],ngContentSelectors:Nn,decls:5,vars:3,consts:[["contentTemplate",""],["ellipsisContainer",""],["expandable",""],[3,"text","icon","tooltip"],[3,"text","tooltips","icons"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-typography-expand"],[1,"ant-typography-expand",3,"click"],[3,"endEditing","startEditing","text","icon","tooltip"],[3,"textCopy","text","tooltips","icons"]],template:function(d,c){d&1&&(bt(),J(0,Pn,2,2,"ng-template",null,0,Dt),y(2,An,2,1),y(3,Ln,1,3,"nz-text-edit",3),y(4,Qn,1,3,"nz-text-copy",4)),d&2&&(p(2),x(c.editing?-1:2),p(),x(c.nzEditable?3:-1),p(),x(c.nzCopyable&&!c.editing?4:-1))},dependencies:[It,rt,at],encapsulation:2,changeDetection:0})),k})(),pn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=L({imports:[Un,at,rt]})}return t})();var ue=hn(yn());function Jn(t,n){if(t&1){let e=v();s(0,"div",0)(1,"span",1),m(2,"\u6709\u672A\u4FDD\u5B58\u66F4\u6539"),l(),s(3,"button",2),C("click",function(){_(e);let o=r();return h(o.diff.emit())}),m(4,"Diff"),l(),s(5,"button",2),C("click",function(){_(e);let o=r();return h(o.reset.emit())}),m(6,"\u91CD\u7F6E"),l(),s(7,"button",3),C("click",function(){_(e);let o=r();return h(o.save.emit())}),m(8,"\u4FDD\u5B58"),l()()}}var Oe=class t{dirty=!1;diff=new b;reset=new b;save=new b;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-change-bar-component"]],inputs:{dirty:"dirty"},outputs:{diff:"diff",reset:"reset",save:"save"},decls:1,vars:1,consts:[[1,"change-bar"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click"]],template:function(e,i){e&1&&y(0,Jn,9,0,"div",0),e&2&&x(i.dirty?0:-1)},dependencies:[O,Te,be,ve,Ee],styles:[".change-bar[_ngcontent-%COMP%]{width:100%;padding:10px 20px;display:flex;justify-content:flex-end;align-items:center;gap:10px;box-shadow:0 -2px 8px #0000000f;background:var(--app-component-bg);border:1px solid var(--app-border-color)}.hint[_ngcontent-%COMP%]{margin-right:auto;opacity:.75}"]})};var Gn=(t,n)=>n.id;function Xn(t,n){if(t&1){let e=v();s(0,"div",6),C("click",function(){let o=_(e).$implicit,a=r();return h(a.selectDomain(o))}),s(1,"div",7)(2,"div",8),T(3,"nz-icon",9),l(),s(4,"div",10)(5,"div",11),m(6),l(),s(7,"div",12),m(8),l()()()()}if(t&2){let e=n.$implicit,i=r();de("active",e.id===i.activeDomainId()),p(3),f("nzType",e.icon||"setting"),p(3),V(e.label),p(2),V(e.description)}}var Ve=class t{keyword=I("");nodes=Je([]);activeDomainId=Je("");domainSelect=new b;selectDomain(n){this.domainSelect.emit(n.id)}filtered=j(()=>{let n=this.keyword().trim().toLowerCase();return n?this.nodes().map(e=>K(H({},e),{children:(e.children??[]).filter(i=>(i.label??"").toLowerCase().includes(n)||(i.relPath??"").toLowerCase().includes(n))})).filter(e=>(e.children?.length??0)>0):this.nodes()});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-nav-component"]],inputs:{nodes:[1,"nodes"],activeDomainId:[1,"activeDomainId"]},outputs:{domainSelect:"domainSelect"},decls:8,vars:1,consts:[[1,"list"],[1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","",3,"ngModelChange","ngModel"],[1,"items"],[1,"item",3,"active"],[1,"item",3,"click"],[1,"row"],[1,"icon"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],[1,"info"],[1,"name"],[1,"description"]],template:function(e,i){e&1&&(s(0,"div",0)(1,"div",1)(2,"nz-input-wrapper"),T(3,"nz-icon",2),s(4,"input",3),C("ngModelChange",function(a){return i.keyword.set(a)}),l()()(),s(5,"div",4),S(6,Xn,9,5,"div",5,Gn),l()()),e&2&&(p(4),f("ngModel",i.keyword()),p(2),N(i.filtered()))},dependencies:[O,le,Me,re,se,Z,ce,Qt,Lt,$,ee],styles:[".list[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:10px 16px}.list[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:100%;border-radius:18px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;height:0;display:flex;flex-direction:column;gap:8px;padding:8px}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border-radius:3px;padding:10px;cursor:pointer}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover, .list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item.active[_ngcontent-%COMP%]{background:var(--app-primary-2)}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;gap:10px;align-items:center;overflow:hidden;justify-content:space-between}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:42px;flex:0 0 auto;position:relative}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;overflow:hidden}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list[_ngcontent-%COMP%] .items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:13px;color:var(--app-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})};function ke(t,n){return n.split(".").reduce((e,i)=>e?e[i]:void 0,t)}function mn(t,n,e){let i=n.split("."),o=i.pop(),a=t;for(let E of i)a[E]??={},a=a[E];a[o]=e}function un(t){return t.sort((n,e)=>(n.domain?.nav?.order??0)-(e.domain?.nav?.order??0)).map(n=>({id:n.domain.id,type:"domain",label:n.domain.label,icon:n.domain.icon,description:n.domain.description,children:(n.docs??[]).map(e=>({id:e.spec.id,type:"doc",label:e.spec.title,docId:e.spec.id,relPath:e.chosen?.relPath,codec:e.chosen?.codec,exists:e.exists}))}))}var fn=t=>t!=null&&typeof t=="object"&&!Array.isArray(t);function Fe(t,n,e,i=""){if(e===void 0)return[];if(!fn(e))return[{scope:t,target:n,path:i||"/",value:e}];let o=[],a=Object.keys(e);if(a.length===0)return o.push({scope:t,target:n,path:i||"/",value:{}}),o;for(let E of a){let D=i?`${i}.${E}`:E,z=e[E];fn(z)?o.push(...Fe(t,n,z,D)):o.push({scope:t,target:n,path:D,value:z})}return o}var Cn=(t,n)=>n.value,ei=(t,n)=>n.key;function ti(t,n){if(t&1&&(s(0,"div",3),m(1),l()),t&2){let e=r();p(),F(" ",e.item.desc," ")}}function ni(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function ii(t,n){if(t&1){let e=v();s(0,"input",8),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function oi(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r();p(),V(e.value)}}function ai(t,n){if(t&1&&(s(0,"nz-space",6),T(1,"nz-icon",9),s(2,"span"),m(3),l()()),t&2){let e=r();p(3),V(e.value)}}function ri(t,n){if(t&1){let e=v();s(0,"nz-switch",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),l()}if(t&2){let e=r();f("ngModel",e.value)}}function si(t,n){if(t&1&&T(0,"nz-option",11),t&2){let e=n.$implicit;f("nzValue",e.value)("nzLabel",e.label)}}function li(t,n){if(t&1){let e=v();s(0,"nz-select",10),C("ngModelChange",function(o){_(e);let a=r();return h(a.emit(o))}),S(1,si,1,2,"nz-option",11,Cn),l()}if(t&2){let e=r();f("ngModel",e.value),p(),N(e.options)}}function ci(t,n){if(t&1&&(s(0,"span"),m(1),l()),t&2){let e=r().$index;p(),V(e+1)}}function pi(t,n){t&1&&T(0,"nz-icon",12)}function di(t,n){if(t&1&&(T(0,"nz-icon",9),s(1,"span"),m(2),l(),y(3,pi,1,0,"nz-icon",12)),t&2){let e=n.$implicit,i=r().$implicit,o=r(3);p(2),F(" ",i==null?null:i[e.key]," "),p(),x(e!==o.arrayFields()[o.arrayFields().length-1]?3:-1)}}function mi(t,n){if(t&1&&(s(0,"nz-space"),y(1,ci,2,1,"span"),S(2,di,4,2,null,null,ei),l()),t&2){let e=r(3);p(),x(e.arrayValue().length>1?1:-1),p(),N(e.arrayFields())}}function ui(t,n){if(t&1&&S(0,mi,4,1,"nz-space",null,Et),t&2){let e=r(2);N(e.arrayValue())}}function fi(t,n){t&1&&(s(0,"span"),m(1,"\u6570\u7EC4\u7C7B\u578B\u914D\u7F6E\u9879\uFF0C\u6682\u4E0D\u652F\u6301\u8868\u5355\u7F16\u8F91"),l())}function Ci(t,n){if(t&1&&y(0,ui,2,0)(1,fi,2,0,"span"),t&2){let e=r();x(e.isArrayObjectEditor()?0:1)}}function gi(t,n){if(t&1&&(s(0,"nz-space")(1,"span",2),m(2),l(),s(3,"span",14),m(4),l()()),t&2){let e=n.$implicit;p(2),F("",e.label,":"),p(2),V(e.value)}}function _i(t,n){if(t&1&&(s(0,"div",13),S(1,gi,5,2,"nz-space",null,Cn),l()),t&2){let e=r(2);p(),N(e.objectKv())}}function hi(t,n){if(t&1&&y(0,_i,3,0,"div",13),t&2){let e=r();x(e.isObjectEditor()?0:-1)}}var Re=class t{item;value;valueChange=new b;options=[];emit(n){this.valueChange.emit(n)}isObjectEditor(){return this.item?.type==="object"}objectKv(){let n=this.value??{};return Object.values(n).map((e,i)=>typeof e=="string"?{label:Object.keys(n)[i],value:e}:{label:Object.keys(n)[i],value:JSON.stringify(e)})}isArrayObjectEditor(){return this.item?.type==="array"&&this.item?.item?.type==="object"&&Array.isArray(this.item?.item?.fields)&&this.item.item.fields.length>0}arrayFields(){return this.item?.item?.fields??[]}arrayValue(){return Array.isArray(this.value)?this.value:[]}addRow(){let n=this.arrayFields(),e={};for(let o of n)o.key&&(e[o.key]=o.default??"");let i=[...this.arrayValue(),e];this.emit(i)}removeRow(n){let i=this.arrayValue().filter((o,a)=>a!==n);this.emit(i)}updateCell(n,e,i){let a=this.arrayValue().map((E,D)=>D!==n?E:K(H({},E??{}),{[e]:i}));this.emit(a)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-item-component"]],inputs:{item:"item",value:"value",options:"options"},outputs:{valueChange:"valueChange"},decls:14,vars:3,consts:[[1,"config-item"],[1,"meta"],[1,"label"],[1,"desc"],[1,"control"],["nz-input","",3,"ngModel"],["nzAlign","center"],[3,"ngModel"],["nz-input","",3,"ngModelChange","ngModel"],["nzType","file","nzTheme","fill"],[3,"ngModelChange","ngModel"],[3,"nzValue","nzLabel"],["nzType","arrow-right","nzTheme","outline"],[1,"kv"],[1,"value"]],template:function(e,i){if(e&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),m(3),l(),y(4,ti,2,1,"div",3),l(),s(5,"div",4),y(6,ni,1,1,"input",5)(7,ii,1,1,"input",5)(8,oi,2,1,"span")(9,ai,4,1,"nz-space",6)(10,ri,1,1,"nz-switch",7)(11,li,3,1,"nz-select",7)(12,Ci,2,1)(13,hi,1,1),l()()),e&2){let o;p(3),V(i.item.label),p(),x(i.item.desc?4:-1),p(2),x((o=i.item.type)==="input"?6:o==="path"?7:o==="string"?8:o==="file"?9:o==="boolean"?10:o==="select"?11:o==="array"?12:o==="object"?13:-1)}},dependencies:[O,le,Me,re,se,$,ee,De,en,Z,ce,Ie,Se,Ne,Rt,Ft,an],styles:[".config-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px}.config-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-2)}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;opacity:.75}.config-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:14px;margin-top:4px;opacity:.55}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%]{min-width:200px;max-width:600px;width:60%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] input[nz-input][_ngcontent-%COMP%], .config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] nz-select[_ngcontent-%COMP%]{width:100%}.config-item[_ngcontent-%COMP%] .control[_ngcontent-%COMP%] .kv[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px;width:100%}"]})};var st=()=>[],yi=(t,n)=>n.id,gn=(t,n)=>n.key;function xi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(5);return h(E.onValueChange(o,a))}),l()}if(t&2){let e=n.$implicit,i=r(2).$implicit,o=r(3);f("item",e)("options",e.options||o.options[e.optionsRef==null?null:e.optionsRef.key]||Y(3,st))("value",o.getChild(e,i))}}function zi(t,n){if(t&1&&S(0,xi,1,4,"app-config-item-component",4,gn),t&2){let e=r().$implicit;N(e.children)}}function vi(t,n){if(t&1){let e=v();s(0,"app-config-item-component",3),C("valueChange",function(o){let a=_(e).$implicit,E=r(3);return h(E.onValueChange(o,a))}),l(),y(1,zi,2,0)}if(t&2){let e=n.$implicit,i=r(3);f("item",e)("options",e.options||i.options[e.optionsRef==null?null:e.optionsRef.key]||Y(4,st))("value",i.get(e)),p(),x(e.children!=null&&e.children.length?1:-1)}}function Ei(t,n){if(t&1&&(s(0,"section",1)(1,"h3",2),m(2),l(),S(3,vi,2,5,null,null,gn),l()),t&2){let e=n.$implicit;vt("id",e.id),p(2),V(e.label),p(),N(e.items)}}function bi(t,n){if(t&1&&S(0,Ei,5,2,"section",1,yi),t&2){let e=r().schema.sections||Y(0,st);N(e)}}function Ti(t,n){t&1&&(s(0,"div",0),m(1," \u8BE5\u914D\u7F6E\u6682\u4E0D\u652F\u6301\u8868\u5355\u6A21\u5F0F\uFF08\u53EF\u5207\u6362 Raw / \u6216\u7A0D\u540E\u5B9E\u73B0 provider\uFF09 "),l())}var je=class t{schema;vm;options={};vmChange=new b;get(n){let e=ke(this.vm,n.key);return e??n.default}getChild(n,e){let i=this.get(e);if(i==null||i==="")return n.default;let o=this.resolveDynamicPath(n.key,e.key,i),a=ke(this.vm,o);return a??n.default}onValueChange(n,e){let i=this.resolvePathForWrite(e);this.update(i,n)}resolvePathForWrite(n){let e=n.key||"",i=e.match(/<([^>]+)>/);if(!i)return e;let o=i[1],a=ke(this.vm,o);return this.resolveDynamicPath(e,o,a)}resolveDynamicPath(n,e,i){let o=`<${e}>`;return n.replace(o,String(i??""))}update(n,e){let i=structuredClone(this.vm);mn(i,n,e),this.vmChange.emit(i)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=w({type:t,selectors:[["app-config-section-component"]],inputs:{schema:"schema",vm:"vm",options:"options"},outputs:{vmChange:"vmChange"},decls:2,vars:1,consts:[[1,"empty"],[1,"section"],[1,"section-title"],[3,"valueChange","item","options","value"],[3,"item","options","value"]],template:function(e,i){e&1&&y(0,bi,2,1)(1,Ti,2,0,"div",0),e&2&&x(i.schema?0:1)},dependencies:[O,Re],styles:[".section[_ngcontent-%COMP%]{padding:0}.section[_ngcontent-%COMP%]:last-child{border-bottom:none}.section-title[_ngcontent-%COMP%]{margin:0 0 10px;font-size:24px;opacity:.85;font-weight:500;padding:0 16px}.empty[_ngcontent-%COMP%]{padding:12px 14px}"]})};var Be=class t{api=u(Zt);getCatalog(n){return this.api.get(`/api/config/catalog/${n}`)}openInEditor(n,e){return this.api.post(`/api/config/openInEditor/${n}/${encodeURIComponent(e)}`,{})}writeDomainSchema(n,e,i){return this.api.post(`/api/config/writeSchema/${n}/${e}`,{vm:i})}getDomainSchemas(n,e){return this.api.get(`/api/config/getDomainSchema/${n}/${e}`)}diffDomainSchema(n,e,i){return this.api.post(`/api/config/diffSchema/${n}/${e}`,{vm:i})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"})};var Mi=["class","component"],wi=()=>({}),Di=()=>[],Si=(t,n)=>n.docId;function Ni(t,n){if(t&1&&T(0,"nz-option",13),t&2){let e=n.$implicit;f("nzLabel",e.title)("nzValue",e.docId)}}function Ii(t,n){if(t&1){let e=v();G(0),s(1,"div",11)(2,"label"),m(3,"\u9009\u62E9\u914D\u7F6E\u6587\u4EF6"),l(),s(4,"nz-select",12),Ke("ngModelChange",function(o){_(e);let a=r();return He(a.selectedDocId,o)||(a.selectedDocId=o),h(o)}),S(5,Ni,1,2,"nz-option",13,Si),l()(),X()}if(t&2){let e=r();p(4),Ze("ngModel",e.selectedDocId),p(),N(e.activeDocsMeta()||Y(1,Di))}}function Oi(t,n){if(t&1){let e=v();G(0),s(1,"button",14),C("click",function(){_(e);let o=r();return h(o.openConfig())}),m(2," \u6253\u5F00\u914D\u7F6E\u6587\u4EF6 "),l(),X()}if(t&2){let e=r();p(),f("disabled",!e.selectedDocId())}}var $e=class t{api=u(Be);projectState=u(nn);msg=u(tn);modal=u(Kt);projectId=j(()=>this.projectState.currentProjectId()||"");loading=I(!1);isModalVisible=I(!1);catalog=I(null);navNodes=j(()=>un(this.catalog()??[]));activeDomainId=I(null);selectedDocId=I(null);docStates=I({});domainSchema=I(null);domainVM=I(null);baselineDomainVM=I(null);activeDomain=j(()=>{let n=this.activeDomainId();return(this.catalog()??[]).find(e=>e.domain.id===n)??null});activeDocs=j(()=>this.activeDomain()?.docs??[]);activeDocsMeta=j(()=>{let n=this.activeDomain();return n?(n.docs??[]).map(e=>({docId:e.spec.id,title:e.spec.title,exists:e.exists,relPath:e.chosen?.relPath,codec:e.chosen?.codec})):[]});domainDirty=j(()=>{let n=this.baselineDomainVM(),e=this.domainVM();return!n||!e?!1:!ue.isEqual(n,e)});constructor(){St(()=>{this.projectId()&&this.getCatalog()})}getCatalog(){let n=this.projectId();n&&(this.loading.set(!0),this.api.getCatalog(n).subscribe({next:e=>{this.catalog.set(e);let i=e[0]?.domain?.id??"";i&&(this.activeDomainId.set(i),this.loadDomainSchema(i))},error:e=>{console.error(e),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u76EE\u5F55\u5931\u8D25")},complete:()=>this.loading.set(!1)}))}onDomainSelect(n){this.activeDomainId.set(n),n==="angular"?this.loadDomainSchema(n):this.domainVM.set(null)}async loadDomainSchema(n){let e=this.projectId();if(e){this.loading.set(!0);try{let i=await ge(this.api.getDomainSchemas(e,n));this.domainSchema.set(i),this.domainVM.set(i.vm),this.baselineDomainVM.set(ue.cloneDeep(i.vm))}catch(i){console.error(i),this.msg.error("\u52A0\u8F7D\u914D\u7F6E\u6A21\u578B\u5931\u8D25"),this.domainVM.set(null),this.baselineDomainVM.set(null)}finally{this.loading.set(!1)}}}async onDiff(){let n=this.projectId(),e=this.activeDomainId(),i=this.domainVM();if(!(!n||!e||!i)){this.loading.set(!0);try{let o=await ge(this.api.diffDomainSchema(n,e,i)),a=o?.docPatch??{},E=o?.filePatch??[],D=[];for(let[z,R]of Object.entries(a))D.push(...Fe("doc",z,R));for(let z of E)D.push(...Fe("file",z.relPath,z.patch));if(D.length===0){this.msg.info("\u6CA1\u6709\u53EF\u5199\u56DE\u7684\u53D8\u66F4");return}D.sort((z,R)=>{if(z.scope!==R.scope)return z.scope.localeCompare(R.scope);let fe=`${z.target}:${z.path}`,Ce=`${R.target}:${R.path}`;return fe.localeCompare(Ce)}),this.modal.create({nzTitle:"\u53D8\u66F4",nzContent:`
2
2
  <div style="max-height:60vh; overflow:auto;">
3
3
  ${D.map(z=>`
4
4
  <div style="padding:8px 0; border-bottom:1px solid #f0f0f0;">
@@ -1 +1 @@
1
- import{n as G}from"./chunk-FPDGZ3ZC.js";import{I as H,M as L,N as q,bb as $,cb as U,l as Q,t as E,x as V,z as W}from"./chunk-PTMJ422K.js";import{d as I}from"./chunk-53YRDYLS.js";import{Ca as y,Dc as M,Eb as l,Ec as B,Fb as P,Fc as C,Kb as m,Oa as _,Vb as z,Xb as u,ac as s,ad as x,bc as S,cc as N,dc as f,kc as F,mb as v,na as A,qc as O,ra as a,rb as Z,rd as j,tc as r,uc as d,vc as p,vd as T,wc as k,xa as R,ya as b,yc as w,zc as D}from"./chunk-SJG2JCPL.js";var h=["*"],X=["nz-sider-trigger",""];function Y(e,o){}function ee(e,o){if(e&1&&m(0,Y,0,0,"ng-template",2),e&2){let n=r(),t=M(5);s("ngTemplateOutlet",n.nzZeroTrigger||t)}}function te(e,o){}function ne(e,o){if(e&1&&m(0,te,0,0,"ng-template",2),e&2){let n=r(),t=M(3);s("ngTemplateOutlet",n.nzTrigger||t)}}function ie(e,o){if(e&1&&f(0,"nz-icon",3),e&2){let n=r(2);s("nzType",n.nzCollapsed?"left":"right")}}function oe(e,o){if(e&1&&f(0,"nz-icon",3),e&2){let n=r(2);s("nzType",n.nzCollapsed?"right":"left")}}function re(e,o){if(e&1&&z(0,ie,1,1,"nz-icon",3)(1,oe,1,1,"nz-icon",3),e&2){let n=r();u(n.nzReverseArrow?0:1)}}function ae(e,o){e&1&&f(0,"nz-icon",4)}function le(e,o){if(e&1){let n=F();S(0,"div",2),O("click",function(){R(n);let i=r();return b(i.setCollapsed(!i.nzCollapsed))}),N()}if(e&2){let n=r();s("matchBreakPoint",n.matchBreakPoint)("nzCollapsedWidth",n.nzCollapsedWidth)("nzCollapsed",n.nzCollapsed)("nzBreakpoint",n.nzBreakpoint)("nzReverseArrow",n.nzReverseArrow)("nzTrigger",n.nzTrigger)("nzZeroTrigger",n.nzZeroTrigger)("siderWidth",n.widthSetting)}}var De=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-content"]],hostAttrs:[1,"ant-layout-content"],exportAs:["nzContent"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),Me=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-footer"]],hostAttrs:[1,"ant-layout-footer"],exportAs:["nzFooter"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),Be=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-header"]],hostAttrs:[1,"ant-layout-header"],exportAs:["nzHeader"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),J=(()=>{class e{nzCollapsed=!1;nzReverseArrow=!1;nzZeroTrigger=null;nzTrigger=void 0;matchBreakPoint=!1;nzCollapsedWidth=null;siderWidth=null;nzBreakpoint=null;isZeroTrigger=!1;isNormalTrigger=!1;updateTriggerType(){this.isZeroTrigger=this.nzCollapsedWidth===0&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=this.nzCollapsedWidth!==0}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(t,i){t&2&&(B("width",i.isNormalTrigger?i.siderWidth:null),C("ant-layout-sider-trigger",i.isNormalTrigger)("ant-layout-sider-zero-width-trigger",i.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",i.isZeroTrigger&&i.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",i.isZeroTrigger&&!i.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[_],attrs:X,decls:6,vars:2,consts:[["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],[3,"nzType"],["nzType","bars"]],template:function(t,i){t&1&&(z(0,ee,1,1,null,2),z(1,ne,1,1,null,2),m(2,re,2,1,"ng-template",null,0,x)(4,ae,1,0,"ng-template",null,1,x)),t&2&&(u(i.isZeroTrigger?0:-1),v(),u(i.isNormalTrigger?1:-1))},dependencies:[I,q,L],encapsulation:2,changeDetection:0})}return e})(),K=(()=>{class e{destroyRef=a(y);platform=a(H);cdr=a(j);breakpointService=a(U);nzMenuDirective=null;nzCollapsedChange=new Z;nzWidth=200;nzTheme="dark";nzCollapsedWidth=80;nzBreakpoint=null;nzZeroTrigger=null;nzTrigger=void 0;nzReverseArrow=!1;nzCollapsible=!1;nzCollapsed=!1;matchBreakPoint=!1;flexSetting=null;widthSetting=null;updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:Q(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&this.nzMenuDirective.nzMode==="inline"&&this.nzCollapsedWidth!==0&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(n){n!==this.nzCollapsed&&(this.nzCollapsed=n,this.nzCollapsedChange.emit(n),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe($,!0).pipe(W(this.destroyRef)).subscribe(n=>{let t=this.nzBreakpoint;t&&E().subscribe(()=>{this.matchBreakPoint=!n[t],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(n){let{nzCollapsed:t,nzCollapsedWidth:i,nzWidth:c}=n;(t||i||c)&&this.updateStyleMap(),t&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-sider"]],contentQueries:function(t,i,c){if(t&1&&k(c,G,5),t&2){let g;w(g=D())&&(i.nzMenuDirective=g.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(t,i){t&2&&(B("flex",i.flexSetting)("max-width",i.widthSetting)("min-width",i.widthSetting)("width",i.widthSetting),C("ant-layout-sider-zero-width",i.nzCollapsed&&i.nzCollapsedWidth===0)("ant-layout-sider-light",i.nzTheme==="light")("ant-layout-sider-dark",i.nzTheme==="dark")("ant-layout-sider-collapsed",i.nzCollapsed)("ant-layout-sider-has-trigger",i.nzCollapsible&&i.nzTrigger!==null))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:[2,"nzReverseArrow","nzReverseArrow",T],nzCollapsible:[2,"nzCollapsible","nzCollapsible",T],nzCollapsed:[2,"nzCollapsed","nzCollapsed",T]},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[_],ngContentSelectors:h,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(t,i){t&1&&(d(),S(0,"div",0),p(1),N(),z(2,le,1,8,"div",1)),t&2&&(v(2),u(i.nzCollapsible&&i.nzTrigger!==null?2:-1))},dependencies:[J],encapsulation:2,changeDetection:0})}return e})(),xe=(()=>{class e{destroyRef=a(y);directionality=a(V);listOfNzSiderComponent;dir="ltr";ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(W(this.destroyRef)).subscribe(n=>{this.dir=n})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-layout"]],contentQueries:function(t,i,c){if(t&1&&k(c,K,4),t&2){let g;w(g=D())&&(i.listOfNzSiderComponent=g)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(t,i){t&2&&C("ant-layout-rtl",i.dir==="rtl")("ant-layout-has-sider",i.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),We=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=P({type:e});static \u0275inj=A({imports:[K,J]})}return e})();export{De as a,Me as b,Be as c,K as d,xe as e,We as f};
1
+ import{l as G}from"./chunk-EP45FT55.js";import{I as H,M as L,N as q,bb as $,cb as U,l as Q,t as E,x as V,z as W}from"./chunk-PTMJ422K.js";import{d as I}from"./chunk-53YRDYLS.js";import{Ca as y,Dc as M,Eb as l,Ec as B,Fb as P,Fc as C,Kb as m,Oa as _,Vb as z,Xb as u,ac as s,ad as x,bc as S,cc as N,dc as f,kc as F,mb as v,na as A,qc as O,ra as a,rb as Z,rd as j,tc as r,uc as d,vc as p,vd as T,wc as k,xa as R,ya as b,yc as w,zc as D}from"./chunk-SJG2JCPL.js";var h=["*"],X=["nz-sider-trigger",""];function Y(e,o){}function ee(e,o){if(e&1&&m(0,Y,0,0,"ng-template",2),e&2){let n=r(),t=M(5);s("ngTemplateOutlet",n.nzZeroTrigger||t)}}function te(e,o){}function ne(e,o){if(e&1&&m(0,te,0,0,"ng-template",2),e&2){let n=r(),t=M(3);s("ngTemplateOutlet",n.nzTrigger||t)}}function ie(e,o){if(e&1&&f(0,"nz-icon",3),e&2){let n=r(2);s("nzType",n.nzCollapsed?"left":"right")}}function oe(e,o){if(e&1&&f(0,"nz-icon",3),e&2){let n=r(2);s("nzType",n.nzCollapsed?"right":"left")}}function re(e,o){if(e&1&&z(0,ie,1,1,"nz-icon",3)(1,oe,1,1,"nz-icon",3),e&2){let n=r();u(n.nzReverseArrow?0:1)}}function ae(e,o){e&1&&f(0,"nz-icon",4)}function le(e,o){if(e&1){let n=F();S(0,"div",2),O("click",function(){R(n);let i=r();return b(i.setCollapsed(!i.nzCollapsed))}),N()}if(e&2){let n=r();s("matchBreakPoint",n.matchBreakPoint)("nzCollapsedWidth",n.nzCollapsedWidth)("nzCollapsed",n.nzCollapsed)("nzBreakpoint",n.nzBreakpoint)("nzReverseArrow",n.nzReverseArrow)("nzTrigger",n.nzTrigger)("nzZeroTrigger",n.nzZeroTrigger)("siderWidth",n.widthSetting)}}var De=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-content"]],hostAttrs:[1,"ant-layout-content"],exportAs:["nzContent"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),Me=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-footer"]],hostAttrs:[1,"ant-layout-footer"],exportAs:["nzFooter"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),Be=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-header"]],hostAttrs:[1,"ant-layout-header"],exportAs:["nzHeader"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),J=(()=>{class e{nzCollapsed=!1;nzReverseArrow=!1;nzZeroTrigger=null;nzTrigger=void 0;matchBreakPoint=!1;nzCollapsedWidth=null;siderWidth=null;nzBreakpoint=null;isZeroTrigger=!1;isNormalTrigger=!1;updateTriggerType(){this.isZeroTrigger=this.nzCollapsedWidth===0&&(this.nzBreakpoint&&this.matchBreakPoint||!this.nzBreakpoint),this.isNormalTrigger=this.nzCollapsedWidth!==0}ngOnInit(){this.updateTriggerType()}ngOnChanges(){this.updateTriggerType()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["","nz-sider-trigger",""]],hostVars:10,hostBindings:function(t,i){t&2&&(B("width",i.isNormalTrigger?i.siderWidth:null),C("ant-layout-sider-trigger",i.isNormalTrigger)("ant-layout-sider-zero-width-trigger",i.isZeroTrigger)("ant-layout-sider-zero-width-trigger-right",i.isZeroTrigger&&i.nzReverseArrow)("ant-layout-sider-zero-width-trigger-left",i.isZeroTrigger&&!i.nzReverseArrow))},inputs:{nzCollapsed:"nzCollapsed",nzReverseArrow:"nzReverseArrow",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",matchBreakPoint:"matchBreakPoint",nzCollapsedWidth:"nzCollapsedWidth",siderWidth:"siderWidth",nzBreakpoint:"nzBreakpoint"},exportAs:["nzSiderTrigger"],features:[_],attrs:X,decls:6,vars:2,consts:[["defaultTrigger",""],["defaultZeroTrigger",""],[3,"ngTemplateOutlet"],[3,"nzType"],["nzType","bars"]],template:function(t,i){t&1&&(z(0,ee,1,1,null,2),z(1,ne,1,1,null,2),m(2,re,2,1,"ng-template",null,0,x)(4,ae,1,0,"ng-template",null,1,x)),t&2&&(u(i.isZeroTrigger?0:-1),v(),u(i.isNormalTrigger?1:-1))},dependencies:[I,q,L],encapsulation:2,changeDetection:0})}return e})(),K=(()=>{class e{destroyRef=a(y);platform=a(H);cdr=a(j);breakpointService=a(U);nzMenuDirective=null;nzCollapsedChange=new Z;nzWidth=200;nzTheme="dark";nzCollapsedWidth=80;nzBreakpoint=null;nzZeroTrigger=null;nzTrigger=void 0;nzReverseArrow=!1;nzCollapsible=!1;nzCollapsed=!1;matchBreakPoint=!1;flexSetting=null;widthSetting=null;updateStyleMap(){this.widthSetting=this.nzCollapsed?`${this.nzCollapsedWidth}px`:Q(this.nzWidth),this.flexSetting=`0 0 ${this.widthSetting}`,this.cdr.markForCheck()}updateMenuInlineCollapsed(){this.nzMenuDirective&&this.nzMenuDirective.nzMode==="inline"&&this.nzCollapsedWidth!==0&&this.nzMenuDirective.setInlineCollapsed(this.nzCollapsed)}setCollapsed(n){n!==this.nzCollapsed&&(this.nzCollapsed=n,this.nzCollapsedChange.emit(n),this.updateMenuInlineCollapsed(),this.updateStyleMap(),this.cdr.markForCheck())}ngOnInit(){this.updateStyleMap(),this.platform.isBrowser&&this.breakpointService.subscribe($,!0).pipe(W(this.destroyRef)).subscribe(n=>{let t=this.nzBreakpoint;t&&E().subscribe(()=>{this.matchBreakPoint=!n[t],this.setCollapsed(this.matchBreakPoint),this.cdr.markForCheck()})})}ngOnChanges(n){let{nzCollapsed:t,nzCollapsedWidth:i,nzWidth:c}=n;(t||i||c)&&this.updateStyleMap(),t&&this.updateMenuInlineCollapsed()}ngAfterContentInit(){this.updateMenuInlineCollapsed()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-sider"]],contentQueries:function(t,i,c){if(t&1&&k(c,G,5),t&2){let g;w(g=D())&&(i.nzMenuDirective=g.first)}},hostAttrs:[1,"ant-layout-sider"],hostVars:18,hostBindings:function(t,i){t&2&&(B("flex",i.flexSetting)("max-width",i.widthSetting)("min-width",i.widthSetting)("width",i.widthSetting),C("ant-layout-sider-zero-width",i.nzCollapsed&&i.nzCollapsedWidth===0)("ant-layout-sider-light",i.nzTheme==="light")("ant-layout-sider-dark",i.nzTheme==="dark")("ant-layout-sider-collapsed",i.nzCollapsed)("ant-layout-sider-has-trigger",i.nzCollapsible&&i.nzTrigger!==null))},inputs:{nzWidth:"nzWidth",nzTheme:"nzTheme",nzCollapsedWidth:"nzCollapsedWidth",nzBreakpoint:"nzBreakpoint",nzZeroTrigger:"nzZeroTrigger",nzTrigger:"nzTrigger",nzReverseArrow:[2,"nzReverseArrow","nzReverseArrow",T],nzCollapsible:[2,"nzCollapsible","nzCollapsible",T],nzCollapsed:[2,"nzCollapsed","nzCollapsed",T]},outputs:{nzCollapsedChange:"nzCollapsedChange"},exportAs:["nzSider"],features:[_],ngContentSelectors:h,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(t,i){t&1&&(d(),S(0,"div",0),p(1),N(),z(2,le,1,8,"div",1)),t&2&&(v(2),u(i.nzCollapsible&&i.nzTrigger!==null?2:-1))},dependencies:[J],encapsulation:2,changeDetection:0})}return e})(),xe=(()=>{class e{destroyRef=a(y);directionality=a(V);listOfNzSiderComponent;dir="ltr";ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(W(this.destroyRef)).subscribe(n=>{this.dir=n})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=l({type:e,selectors:[["nz-layout"]],contentQueries:function(t,i,c){if(t&1&&k(c,K,4),t&2){let g;w(g=D())&&(i.listOfNzSiderComponent=g)}},hostAttrs:[1,"ant-layout"],hostVars:4,hostBindings:function(t,i){t&2&&C("ant-layout-rtl",i.dir==="rtl")("ant-layout-has-sider",i.listOfNzSiderComponent.length>0)},exportAs:["nzLayout"],ngContentSelectors:h,decls:1,vars:0,template:function(t,i){t&1&&(d(),p(0))},encapsulation:2,changeDetection:0})}return e})(),We=(()=>{class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=P({type:e});static \u0275inj=A({imports:[K,J]})}return e})();export{De as a,Me as b,Be as c,K as d,xe as e,We as f};
@@ -1 +1 @@
1
- import{c as xt}from"./chunk-FPDGZ3ZC.js";import{Da as Le,Ea as Pe,F as It,Fa as Lt,G as _e,H as oe,I as wt,K as Vt,Ka as Pt,M as ce,N as pe,O as $,P as q,Pa as Se,Q as bt,Qa as Re,R as Nt,S as Mt,Sa as Rt,Ua as Bt,Va as Be,Xa as He,Ya as We,aa as Ae,db as Ht,eb as Wt,f as De,fb as $t,gb as Qt,ib as Gt,j as Fe,ja as kt,jb as jt,lb as qt,ma as ge,na as Et,pa as Dt,pb as Zt,sa as Ft,ta as At,v as vt,vb as Ut,w as ie,x as Tt,z as N}from"./chunk-PTMJ422K.js";import{d as re,k as yt}from"./chunk-53YRDYLS.js";import{$b as ft,Aa as we,Ab as pt,B as Ye,C as Je,Ca as Z,Dc as ke,Eb as w,Ec as ze,Fb as fe,Fc as G,Gc as ht,Ha as ot,Ic as L,Jb as mt,Jc as U,Kb as x,Kc as ne,L as Te,Lb as dt,Lc as Ct,Na as lt,Oa as B,Ra as j,Tb as he,U as Xe,Uc as Ee,Vb as h,Wa as at,Wc as zt,Xb as C,_b as ut,a as Ue,ac as u,ad as _t,bc as z,ca as de,cc as _,da as et,dc as y,ec as ae,f as ye,fc as Ce,fd as gt,gc as te,hc as F,ia as tt,ic as A,jb as st,kb as rt,kc as W,kd as St,l as ve,la as nt,m as xe,mb as d,na as ue,pa as it,qc as M,r as X,ra as f,rb as V,rd as se,s as R,sb as le,tc as c,u as Ke,ub as ct,uc as be,vb as ee,vc as Ne,vd as T,wc as Me,wd as Ot,xa as S,xb as Ve,xc as H,ya as O,yc as k,za as Ie,zc as E}from"./chunk-SJG2JCPL.js";function mn(t,r){if(t&1&&(F(0),y(1,"img",4),A()),t&2){let e=c(2);d(),u("src",e.nzNotFoundImage,rt)("alt",e.isContentString?e.nzNotFoundContent:"empty")}}function dn(t,r){if(t&1&&x(0,mn,2,2,"ng-container",3),t&2){let e=c();u("nzStringTemplateOutlet",e.nzNotFoundImage)}}function un(t,r){t&1&&y(0,"nz-empty-simple")}function fn(t,r){t&1&&y(0,"nz-empty-default")}function hn(t,r){if(t&1&&h(0,un,1,0,"nz-empty-simple")(1,fn,1,0,"nz-empty-default"),t&2){let e=c();C(e.nzNotFoundImage==="simple"?0:1)}}function Cn(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),ne(" ",e.isContentString?e.nzNotFoundContent:e.locale.description," ")}}function zn(t,r){if(t&1&&(z(0,"p",1),x(1,Cn,2,1,"ng-container",3),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.nzNotFoundContent)}}function _n(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),ne(" ",e.nzNotFoundFooter," ")}}function gn(t,r){if(t&1&&(z(0,"div",2),x(1,_n,2,1,"ng-container",3),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.nzNotFoundFooter)}}var Sn=t=>({$implicit:t});function On(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(3);d(),U(e.content)}}function yn(t,r){if(t&1&&x(0,On,2,1,"ng-container",1),t&2){let e=c(2);u("nzStringTemplateOutlet",e.content)("nzStringTemplateOutletContext",zt(2,Sn,e.nzComponentName))}}function vn(t,r){}function xn(t,r){if(t&1&&x(0,vn,0,0,"ng-template",0),t&2){let e=c(2);u("cdkPortalOutlet",e.contentPortal)}}function Tn(t,r){if(t&1&&h(0,yn,1,4,"ng-container")(1,xn,1,1,null,0),t&2){let e=c();C(e.contentType==="template"||e.contentType==="string"?0:1)}}function In(t,r){t&1&&y(0,"nz-empty",2)}function wn(t,r){t&1&&y(0,"nz-empty",3)}function Vn(t,r){t&1&&y(0,"nz-empty")}function bn(t,r){if(t&1&&h(0,In,1,0,"nz-empty",2)(1,wn,1,0,"nz-empty",3)(2,Vn,1,0,"nz-empty"),t&2){let e,n=c(2);C((e=n.size)==="normal"?0:e==="small"?1:2)}}function Nn(t,r){if(t&1&&h(0,bn,3,1),t&2){let e=c();C(e.specificContent!==null?0:-1)}}var Mn=new it(""),kn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],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(n,i){n&1&&(Ie(),ae(0,"svg",0)(1,"g",1)(2,"g",2),te(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),Ce(),te(8,"path",8),ae(9,"g",9),te(10,"ellipse",10)(11,"path",11),Ce()()())},encapsulation:2,changeDetection:0})}return t})(),En=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],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(n,i){n&1&&(Ie(),ae(0,"svg",0)(1,"g",1),te(2,"ellipse",2),ae(3,"g",3),te(4,"path",4)(5,"path",5),Ce()()())},encapsulation:2,changeDetection:0})}return t})(),Dn=["default","simple"],Kt=(()=>{class t{i18n=f(xt);cdr=f(se);destroyRef=f(Z);nzNotFoundImage="default";nzNotFoundContent;nzNotFoundFooter;isContentString=!1;isImageBuildIn=!0;locale;ngOnChanges(e){let{nzNotFoundContent:n,nzNotFoundImage:i}=e;if(n){let p=n.currentValue;this.isContentString=typeof p=="string"}if(i){let p=i.currentValue||"default";this.isImageBuildIn=Dn.findIndex(v=>v===p)>-1}}ngOnInit(){this.i18n.localeChange.pipe(N(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[B],decls:5,vars:3,consts:[[1,"ant-empty-image"],[1,"ant-empty-description"],[1,"ant-empty-footer"],[4,"nzStringTemplateOutlet"],[3,"src","alt"]],template:function(n,i){n&1&&(z(0,"div",0),h(1,dn,1,1,"ng-container")(2,hn,2,1),_(),h(3,zn,2,1,"p",1),h(4,gn,2,1,"div",2)),n&2&&(d(),C(i.isImageBuildIn?2:1),d(2),C(i.nzNotFoundContent!==null?3:-1),d(),C(i.nzNotFoundFooter?4:-1))},dependencies:[q,$,kn,En],encapsulation:2,changeDetection:0})}return t})();function Fn(t){switch(t){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}var $e=(()=>{class t{configService=f(It);viewContainerRef=f(pt);cdr=f(se);injector=f(we);nzComponentName;specificContent;content;contentType="string";contentPortal;size="";constructor(){_e("empty",()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}ngOnChanges(e){e.nzComponentName&&(this.size=Fn(e.nzComponentName.currentValue)),e.specificContent&&!e.specificContent.isFirstChange()&&(this.content=e.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()}renderEmpty(){let e=this.content;if(typeof e=="string")this.contentType="string";else if(e instanceof ee)this.contentType="template",this.contentPortal=void 0;else if(e instanceof lt){let n=we.create({parent:this.injector,providers:[{provide:Mn,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new Dt(e,this.viewContainerRef,n)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[B],decls:2,vars:1,consts:[[3,"cdkPortalOutlet"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nzNotFoundImage","simple",1,"ant-empty-normal"],["nzNotFoundImage","simple",1,"ant-empty-small"]],template:function(n,i){n&1&&h(0,Tn,2,1)(1,Nn,1,1),n&2&&C(i.content?0:1)},dependencies:[Kt,At,Ft,q,$],encapsulation:2,changeDetection:0})}return t})(),Yt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=fe({type:t});static \u0275inj=ue({imports:[Kt,$e]})}return t})();var Xt=["*"];function Pn(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),U(e.nzLabel)}}function Rn(t,r){}function Bn(t,r){if(t&1&&x(0,Rn,0,0,"ng-template",1),t&2){let e=c();u("ngTemplateOutlet",e.template)}}function Hn(t,r){if(t&1&&L(0),t&2){let e=c();ne(" ",e.label," ")}}function Wn(t,r){t&1&&y(0,"nz-icon",3)}function $n(t,r){}function Qn(t,r){if(t&1&&x(0,$n,0,0,"ng-template",1),t&2){let e=c(2);u("ngTemplateOutlet",e.icon)}}function Gn(t,r){if(t&1&&(z(0,"div",2),h(1,Wn,1,0,"nz-icon",3)(2,Qn,1,1,null,1),_()),t&2){let e=c();d(),C(e.icon?2:1)}}function jn(t,r){if(t&1&&(z(0,"div",0),y(1,"nz-embed-empty",4),_()),t&2){let e=c();d(),u("specificContent",e.notFoundContent)}}function qn(t,r){if(t&1&&y(0,"nz-option-item-group",5),t&2){let e=c().$implicit;u("nzLabel",e.groupLabel??null)}}function Zn(t,r){if(t&1){let e=W();z(0,"nz-option-item",7),M("itemHover",function(i){S(e);let p=c(2);return O(p.onItemHover(i))})("itemClick",function(i){S(e);let p=c(2);return O(p.onItemClick(i))}),_()}if(t&2){let e=c().$implicit,n=c();u("icon",n.menuItemSelectedIcon)("customContent",e.nzCustomContent)("template",e.template??null)("grouped",!!e.groupLabel)("disabled",e.nzDisabled||n.isMaxMultipleCountReached&&!n.listOfSelectedValue.includes(e.nzValue))("showState",n.mode==="tags"||n.mode==="multiple")("title",e.nzTitle)("label",e.nzLabel)("compareWith",n.compareWith)("activatedValue",n.activatedValue)("listOfSelectedValue",n.listOfSelectedValue)("value",e.nzValue)}}function Un(t,r){if(t&1&&h(0,qn,1,1,"nz-option-item-group",5)(1,Zn,1,12,"nz-option-item",6),t&2){let e,n=r.$implicit;C((e=n.type)==="group"?0:e==="item"?1:-1)}}function Kn(t,r){}function Yn(t,r){t&1&&Ne(0)}function Jn(t,r){if(t&1&&(z(0,"span"),L(1),_()),t&2){let e=c();d(),Ct("",e.listOfValue.length," / ",e.nzMaxMultipleCount)}}function Xn(t,r){t&1&&y(0,"nz-icon",0)}function ei(t,r){t&1&&y(0,"nz-icon",2)}function ti(t,r){t&1&&y(0,"nz-icon",3)}function ni(t,r){if(t&1&&h(0,ei,1,0,"nz-icon",2)(1,ti,1,0,"nz-icon",3),t&2){let e=c(2);C(e.search?0:1)}}function ii(t,r){if(t&1&&(F(0),y(1,"nz-icon",4),A()),t&2){let e=r.$implicit;d(),u("nzType",e)}}function oi(t,r){if(t&1&&x(0,ii,2,1,"ng-container",1),t&2){let e=c(2);u("nzStringTemplateOutlet",e.suffixIcon)}}function li(t,r){if(t&1&&h(0,ni,2,1)(1,oi,1,1,"ng-container"),t&2){let e=c();C(e.showArrow&&!e.suffixIcon?0:1)}}function ai(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),U(e.feedbackIcon)}}function si(t,r){}function ri(t,r){if(t&1&&x(0,si,0,0,"ng-template",0),t&2){let e=c();u("ngTemplateOutlet",e.clearIcon)}}function ci(t,r){t&1&&y(0,"nz-icon",1)}function pi(t,r){if(t&1&&y(0,"span",4),t&2){let e=c(2);G("ant-select-selection-item-content",e.deletable),u("innerHTML",e.label,st)}}function mi(t,r){if(t&1&&(z(0,"span"),L(1),_()),t&2){let e=c(2);G("ant-select-selection-item-content",e.deletable),d(),U(e.label)}}function di(t,r){if(t&1&&(F(0),h(1,pi,1,3,"span",2)(2,mi,2,3,"span",3),A()),t&2){let e=c();d(),C(e.displayLabelInHtml?1:2)}}function ui(t,r){t&1&&y(0,"nz-icon",6)}function fi(t,r){}function hi(t,r){if(t&1&&x(0,fi,0,0,"ng-template",7),t&2){let e=c(2);u("ngTemplateOutlet",e.removeIcon)}}function Ci(t,r){if(t&1){let e=W();z(0,"span",5),M("click",function(i){S(e);let p=c();return O(p.onDelete(i))}),h(1,ui,1,0,"nz-icon",6)(2,hi,1,1,null,7),_()}if(t&2){let e=c();d(),C(e.removeIcon?2:1)}}function zi(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),ne(" ",e.placeholder," ")}}var _i=["inputElement"],gi=["mirrorElement"];function Si(t,r){t&1&&y(0,"span",3,1)}var Oi=(t,r)=>r.nzValue;function yi(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),U(e.prefix)}}function vi(t,r){if(t&1&&(z(0,"div",0),x(1,yi,2,1,"ng-container",4),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.prefix)}}function xi(t,r){if(t&1&&y(0,"nz-select-item",6),t&2){let e=c(2);u("removeIcon",e.removeIcon)("label",e.listOfTopItem[0].nzLabel)("contentTemplateOutlet",e.customTemplate)("contentTemplateOutletContext",e.listOfTopItem[0])}}function Ti(t,r){if(t&1){let e=W();z(0,"nz-select-search",5),M("isComposingChange",function(i){S(e);let p=c();return O(p.isComposingChange(i))})("valueChange",function(i){S(e);let p=c();return O(p.onInputValueChange(i))}),_(),h(1,xi,1,4,"nz-select-item",6)}if(t&2){let e=c();u("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("showInput",e.showSearch)("mirrorSync",!1)("autofocus",e.autofocus)("focusTrigger",e.open),d(),C(e.isShowSingleLabel?1:-1)}}function Ii(t,r){if(t&1){let e=W();z(0,"div",7)(1,"nz-select-item",10),M("delete",function(){let i=S(e).$implicit,p=c(2);return O(p.onDeleteItem(i.contentTemplateOutletContext))}),_()()}if(t&2){let e=r.$implicit,n=c(2);d(),u("removeIcon",n.removeIcon)("label",e.nzLabel)("disabled",e.nzDisabled||n.disabled)("contentTemplateOutlet",e.contentTemplateOutlet)("contentTemplateOutletContext",e.contentTemplateOutletContext)}}function wi(t,r){if(t&1){let e=W();z(0,"div",2),ut(1,Ii,2,5,"div",7,Oi),z(3,"div",8)(4,"nz-select-search",9),M("isComposingChange",function(i){S(e);let p=c();return O(p.isComposingChange(i))})("valueChange",function(i){S(e);let p=c();return O(p.onInputValueChange(i))}),_()()()}if(t&2){let e=c();d(),ft(e.listOfSlicedItem),d(3),u("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("autofocus",e.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",e.open)}}function Vi(t,r){if(t&1&&y(0,"nz-select-placeholder",3),t&2){let e=c();u("placeholder",e.placeHolder)}}function bi(t,r){if(t&1&&y(0,"nz-form-item-feedback-icon",6),t&2){let e=c(3);u("status",e.status)}}function Ni(t,r){if(t&1&&h(0,bi,1,1,"nz-form-item-feedback-icon",6),t&2){let e=c(2);C(e.hasFeedback&&e.status?0:-1)}}function Mi(t,r){if(t&1&&(z(0,"nz-select-arrow",3),x(1,Ni,1,1,"ng-template",null,1,_t),_()),t&2){let e=ke(2),n=c();u("showArrow",n.nzShowArrow)("loading",n.nzLoading)("search",n.nzOpen&&n.nzShowSearch)("suffixIcon",n.nzSuffixIcon)("feedbackIcon",e)("nzMaxMultipleCount",n.nzMaxMultipleCount)("listOfValue",n.listOfValue)("isMaxMultipleCountSet",n.isMaxMultipleCountSet)}}function ki(t,r){if(t&1){let e=W();z(0,"nz-select-clear",7),M("clear",function(){S(e);let i=c();return O(i.onClearSelection())}),_()}if(t&2){let e=c();u("clearIcon",e.nzClearIcon)}}function Ei(t,r){if(t&1){let e=W();z(0,"nz-option-container",8),M("keydown",function(i){S(e);let p=c();return O(p.onKeyDown(i))})("itemClick",function(i){S(e);let p=c();return O(p.onItemClick(i))})("scrollToBottom",function(){S(e);let i=c();return O(i.nzScrollToBottom.emit())}),_()}if(t&2){let e=c();ht(e.nzDropdownStyle),G("ant-select-dropdown-placement-bottomLeft",e.dropdownPosition==="bottomLeft")("ant-select-dropdown-placement-topLeft",e.dropdownPosition==="topLeft")("ant-select-dropdown-placement-bottomRight",e.dropdownPosition==="bottomRight")("ant-select-dropdown-placement-topRight",e.dropdownPosition==="topRight"),u("itemSize",e.nzOptionHeightPx)("maxItemLength",e.nzOptionOverflowSize)("matchWidth",e.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("listOfContainerItem",e.listOfContainerItem)("menuItemSelectedIcon",e.nzMenuItemSelectedIcon)("notFoundContent",e.nzNotFoundContent)("activatedValue",e.activatedValue)("listOfSelectedValue",e.listOfValue)("dropdownRender",e.nzDropdownRender)("compareWith",e.compareWith)("mode",e.nzMode)("isMaxMultipleCountReached",e.isMaxMultipleCountReached)}}var Qe=(()=>{class t{nzLabel=null;changes=new ve;ngOnChanges(){this.changes.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[B],ngContentSelectors:Xt,decls:1,vars:0,template:function(n,i){n&1&&(be(),Ne(0))},encapsulation:2,changeDetection:0})}return t})(),en=(()=>{class t{nzLabel=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&x(0,Pn,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.nzLabel)},dependencies:[q,$],encapsulation:2,changeDetection:0})}return t})(),tn=(()=>{class t{el=f(j).nativeElement;ngZone=f(le);destroyRef=f(Z);selected=!1;activated=!1;grouped=!1;customContent=!1;template=null;disabled=!1;showState=!1;title;label=null;value=null;activatedValue=null;listOfSelectedValue=[];icon=null;compareWith;itemClick=new V;itemHover=new V;ngOnChanges(e){let{value:n,activatedValue:i,listOfSelectedValue:p}=e;(n||p)&&(this.selected=this.listOfSelectedValue.some(v=>this.compareWith(v,this.value))),(n||i)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){ie(this.el,"click").pipe(N(this.destroyRef)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),ie(this.el,"mouseenter").pipe(N(this.destroyRef)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(n,i){n&2&&(he("title",i.title),G("ant-select-item-option-grouped",i.grouped)("ant-select-item-option-selected",i.selected&&!i.disabled)("ant-select-item-option-disabled",i.disabled)("ant-select-item-option-active",i.activated&&!i.disabled))},inputs:{grouped:"grouped",customContent:[2,"customContent","customContent",T],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"},features:[B],decls:4,vars:2,consts:[[1,"ant-select-item-option-content"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state"],["nzType","check",1,"ant-select-selected-icon"]],template:function(n,i){n&1&&(z(0,"div",0),h(1,Bn,1,1,null,1)(2,Hn,1,1),_(),h(3,Gn,3,1,"div",2)),n&2&&(d(),C(i.customContent?1:2),d(2),C(i.showState&&i.selected?3:-1))},dependencies:[re,pe,ce],encapsulation:2,changeDetection:0})}return t})(),nn=(()=>{class t{ngZone=f(le);platformId=f(at);notFoundContent=void 0;menuItemSelectedIcon=null;dropdownRender=null;activatedValue=null;listOfSelectedValue=[];compareWith;mode="default";matchWidth=!0;itemSize=32;maxItemLength=8;isMaxMultipleCountReached=!1;listOfContainerItem=[];itemClick=new V;scrollToBottom=new V;cdkVirtualScrollViewport;scrolledIndex=0;onItemClick(e){this.itemClick.emit(e)}onItemHover(e){this.activatedValue=e}trackValue(e,n){return n.key}onScrolledIndexChange(e){this.scrolledIndex=e,e===this.listOfContainerItem.length-this.maxItemLength-1&&this.scrollToBottom.emit()}scrollToActivatedValue(){let e=this.listOfContainerItem.findIndex(n=>this.compareWith(n.key,this.activatedValue));(e<this.scrolledIndex||e>=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(e||0)}ngOnChanges(e){let{listOfContainerItem:n,activatedValue:i}=e;(n||i)&&this.scrollToActivatedValue()}ngAfterViewInit(){yt(this.platformId)&&this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.scrollToActivatedValue()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-container"]],viewQuery:function(n,i){if(n&1&&H(ge,7),n&2){let p;k(p=E())&&(i.cdkVirtualScrollViewport=p.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",isMaxMultipleCountReached:"isMaxMultipleCountReached",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[B],decls:5,vars:14,consts:[[1,"ant-select-item-empty"],[3,"scrolledIndexChange","itemSize","maxBufferPx","minBufferPx"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],["nzComponentName","select",3,"specificContent"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"],[3,"itemHover","itemClick","icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"]],template:function(n,i){n&1&&(z(0,"div"),h(1,jn,2,1,"div",0),z(2,"cdk-virtual-scroll-viewport",1),M("scrolledIndexChange",function(v){return i.onScrolledIndexChange(v)}),x(3,Un,2,1,"ng-template",2),_(),x(4,Kn,0,0,"ng-template",3),_()),n&2&&(d(),C(i.listOfContainerItem.length===0?1:-1),d(),ze("height",i.listOfContainerItem.length*i.itemSize,"px")("max-height",i.itemSize*i.maxItemLength,"px"),G("full-width",!i.matchWidth),u("itemSize",i.itemSize)("maxBufferPx",i.itemSize*i.maxItemLength)("minBufferPx",i.itemSize*i.maxItemLength),d(),u("cdkVirtualForOf",i.listOfContainerItem)("cdkVirtualForTrackBy",i.trackValue)("cdkVirtualForTemplateCacheSize",0),d(),u("ngTemplateOutlet",i.dropdownRender))},dependencies:[Yt,$e,en,tn,re,Lt,kt,Et,ge,Be],encapsulation:2,changeDetection:0})}return t})(),Di=(()=>{class t{destroyRef=f(Z);nzOptionGroupComponent=f(Qe,{optional:!0});changes=new ve;groupLabel=null;template;nzTitle;nzLabel=null;nzValue=null;nzKey;nzDisabled=!1;nzHide=!1;nzCustomContent=!1;ngOnInit(){this.nzOptionGroupComponent?.changes.pipe(de(!0),N(this.destroyRef)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent?.nzLabel})}ngOnChanges(){this.changes.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option"]],viewQuery:function(n,i){if(n&1&&H(ee,7),n&2){let p;k(p=E())&&(i.template=p.first)}},inputs:{nzTitle:"nzTitle",nzLabel:"nzLabel",nzValue:"nzValue",nzKey:"nzKey",nzDisabled:[2,"nzDisabled","nzDisabled",T],nzHide:[2,"nzHide","nzHide",T],nzCustomContent:[2,"nzCustomContent","nzCustomContent",T]},exportAs:["nzOption"],features:[B],ngContentSelectors:Xt,decls:1,vars:0,template:function(n,i){n&1&&(be(),dt(0,Yn,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),on=(()=>{class t{listOfValue=[];loading=!1;search=!1;showArrow=!1;isMaxMultipleCountSet=!1;suffixIcon=null;feedbackIcon=null;nzMaxMultipleCount=1/0;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(n,i){n&2&&G("ant-select-arrow-loading",i.loading)},inputs:{listOfValue:"listOfValue",loading:"loading",search:"search",showArrow:"showArrow",isMaxMultipleCountSet:"isMaxMultipleCountSet",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",Fe]},decls:4,vars:3,consts:[["nzType","loading"],[4,"nzStringTemplateOutlet"],["nzType","search"],["nzType","down"],[3,"nzType"]],template:function(n,i){n&1&&(h(0,Jn,2,2,"span"),h(1,Xn,1,0,"nz-icon",0)(2,li,2,1),x(3,ai,2,1,"ng-container",1)),n&2&&(C(i.isMaxMultipleCountSet?0:-1),d(),C(i.loading?1:2),d(2),u("nzStringTemplateOutlet",i.feedbackIcon))},dependencies:[pe,ce,q,$],encapsulation:2,changeDetection:0})}return t})(),ln=(()=>{class t{clearIcon=null;clear=new V;onClick(e){e.preventDefault(),e.stopPropagation(),this.clear.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(n,i){n&1&&M("click",function(v){return i.onClick(v)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:2,vars:1,consts:[[3,"ngTemplateOutlet"],["nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(n,i){n&1&&h(0,ri,1,1,null,0)(1,ci,1,0,"nz-icon",1),n&2&&C(i.clearIcon?0:1)},dependencies:[re,pe,ce],encapsulation:2,changeDetection:0})}return t})(),an=(()=>{class t{disabled=!1;label=null;displayLabelInHtml=!1;deletable=!1;removeIcon=null;contentTemplateOutletContext=null;contentTemplateOutlet=null;delete=new V;get templateOutletContext(){return Ue({$implicit:this.contentTemplateOutletContext},this.contentTemplateOutletContext)}onDelete(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.delete.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(n,i){n&2&&(he("title",i.label),G("ant-select-selection-item-disabled",i.disabled))},inputs:{disabled:[2,"disabled","disabled",T],label:"label",displayLabelInHtml:[2,"displayLabelInHtml","displayLabelInHtml",T],deletable:[2,"deletable","deletable",T],removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:3,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-select-selection-item-remove"],[3,"ant-select-selection-item-content","innerHTML"],[3,"ant-select-selection-item-content"],[3,"innerHTML"],[1,"ant-select-selection-item-remove",3,"click"],["nzType","close"],[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&(x(0,di,3,1,"ng-container",0),h(1,Ci,3,1,"span",1)),n&2&&(u("nzStringTemplateOutlet",i.contentTemplateOutlet)("nzStringTemplateOutletContext",i.templateOutletContext),d(),C(i.deletable&&!i.disabled?1:-1))},dependencies:[re,q,$,pe,ce],encapsulation:2,changeDetection:0})}return t})(),sn=(()=>{class t{placeholder=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&x(0,zi,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.placeholder)},dependencies:[q,$],encapsulation:2,changeDetection:0})}return t})(),Ge=(()=>{class t{elementRef=f(j);renderer=f(Ve);focusMonitor=f(Ae);nzId=null;disabled=!1;mirrorSync=!1;showInput=!0;focusTrigger=!1;value="";autofocus=!1;valueChange=new V;isComposingChange=new V;inputElement;mirrorElement;constructor(){ct(()=>{this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()})}setCompositionState(e){this.isComposingChange.next(e)}onValueChange(e){this.value=e,this.valueChange.next(e),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){let e=this.inputElement.nativeElement;e.value="",this.onValueChange("")}syncMirrorWidth(){let e=this.mirrorElement.nativeElement,n=this.elementRef.nativeElement,i=this.inputElement.nativeElement;this.renderer.removeStyle(n,"width"),this.renderer.setProperty(e,"textContent",`${i.value}\xA0`),this.renderer.setStyle(n,"width",`${e.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(e){let n=this.inputElement.nativeElement,{focusTrigger:i,showInput:p}=e;p&&(this.showInput?this.renderer.removeAttribute(n,"readonly"):this.renderer.setAttribute(n,"readonly","readonly")),i&&i.currentValue===!0&&i.previousValue===!1&&n.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-search"]],viewQuery:function(n,i){if(n&1&&(H(_i,7),H(gi,5)),n&2){let p;k(p=E())&&(i.inputElement=p.first),k(p=E())&&(i.mirrorElement=p.first)}},hostAttrs:[1,"ant-select-selection-search"],hostVars:2,hostBindings:function(n,i){n&2&&ze("width",i.mirrorSync?0:null,"px")},inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[Ee([{provide:Gt,useValue:!1}]),B],decls:3,vars:7,consts:[["inputElement",""],["mirrorElement",""],["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModelChange","compositionstart","compositionend","ngModel","disabled"],[1,"ant-select-selection-search-mirror"]],template:function(n,i){if(n&1){let p=W();z(0,"input",2,0),M("ngModelChange",function(D){return S(p),O(i.onValueChange(D))})("compositionstart",function(){return S(p),O(i.setCompositionState(!0))})("compositionend",function(){return S(p),O(i.setCompositionState(!1))}),_(),h(2,Si,2,0,"span",3)}n&2&&(ze("opacity",i.showInput?null:0),u("ngModel",i.value)("disabled",i.disabled),he("id",i.nzId)("autofocus",i.autofocus?"autofocus":null),d(2),C(i.mirrorSync?2:-1))},dependencies:[Ut,jt,qt,Zt],encapsulation:2,changeDetection:0})}return t})(),Oe=(()=>{class t{destroyRef=f(Z);elementRef=f(j);ngZone=f(le);noAnimation=f(Se,{host:!0,optional:!0});nzId=null;showSearch=!1;placeHolder=null;open=!1;maxTagCount=1/0;autofocus=!1;disabled=!1;mode="default";customTemplate=null;maxTagPlaceholder=null;removeIcon=null;listOfTopItem=[];tokenSeparators=[];prefix=null;tokenize=new V;inputValueChange=new V;deleteItem=new V;nzSelectSearchComponent;listOfSlicedItem=[];isShowPlaceholder=!0;isShowSingleLabel=!1;isComposing=!1;inputValue=null;updateTemplateVariable(){let e=this.listOfTopItem.length===0;this.isShowPlaceholder=e&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!e&&!this.isComposing&&!this.inputValue}isComposingChange(e){this.isComposing=e,this.updateTemplateVariable()}onInputValueChange(e){e!==this.inputValue&&(this.inputValue=e,this.updateTemplateVariable(),this.inputValueChange.emit(e),this.tokenSeparate(e,this.tokenSeparators))}tokenSeparate(e,n){let i=(v,D)=>{for(let b=0;b<D.length;++b)if(v.lastIndexOf(D[b])>0)return!0;return!1},p=(v,D)=>{let b=new RegExp(`[${D.join()}]`),K=v.split(b).filter(Y=>Y);return[...new Set(K)]};if(e&&e.length&&n.length&&this.mode!=="default"&&i(e,n)){let v=p(e,n);this.tokenize.next(v)}}clearInputValue(){this.nzSelectSearchComponent?.clearInputValue()}focus(){this.nzSelectSearchComponent?.focus()}blur(){this.nzSelectSearchComponent?.blur()}onDeleteItem(e){!this.disabled&&!e.nzDisabled&&this.deleteItem.next(e)}ngOnChanges(e){let{listOfTopItem:n,maxTagCount:i,customTemplate:p,maxTagPlaceholder:v}=e;if(n&&this.updateTemplateVariable(),n||i||p||v){let D=this.listOfTopItem.slice(0,this.maxTagCount).map(b=>({nzLabel:b.nzLabel,nzValue:b.nzValue,nzDisabled:b.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:b}));if(this.listOfTopItem.length>this.maxTagCount){let b=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,K=this.listOfTopItem.map(me=>me.nzValue),Y={nzLabel:b,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:K.slice(this.maxTagCount)};D.push(Y)}this.listOfSlicedItem=D}}ngOnInit(){ie(this.elementRef.nativeElement,"click").pipe(N(this.destroyRef)).subscribe(e=>{e.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),ie(this.elementRef.nativeElement,"keydown").pipe(N(this.destroyRef)).subscribe(e=>{if(e.target instanceof HTMLInputElement){let n=e.target.value;e.keyCode===8&&this.mode!=="default"&&!n&&this.listOfTopItem.length>0&&(e.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-top-control"]],viewQuery:function(n,i){if(n&1&&H(Ge,5),n&2){let p;k(p=E())&&(i.nzSelectSearchComponent=p.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:[2,"maxTagCount","maxTagCount",Ot],autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators",prefix:"prefix"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[B],decls:5,vars:3,consts:[[1,"ant-select-prefix"],[1,"ant-select-selection-wrap"],[1,"ant-select-selection-overflow"],[3,"placeholder"],[4,"nzStringTemplateOutlet"],[3,"isComposingChange","valueChange","nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger"],[3,"removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[1,"ant-select-selection-overflow-item"],[1,"ant-select-selection-overflow-item","ant-select-selection-overflow-item-suffix"],[3,"isComposingChange","valueChange","nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger"],["deletable","",3,"delete","removeIcon","label","disabled","contentTemplateOutlet","contentTemplateOutletContext"]],template:function(n,i){if(n&1&&(h(0,vi,2,1,"div",0),z(1,"span",1),h(2,Ti,2,8)(3,wi,5,7,"div",2),h(4,Vi,1,1,"nz-select-placeholder",3),_()),n&2){let p;C(i.prefix?0:-1),d(2),C((p=i.mode)==="default"?2:3),d(2),C(i.isShowPlaceholder?4:-1)}},dependencies:[Ge,an,sn,$],encapsulation:2,changeDetection:0})}return t})(),Fi=(t,r)=>r&&r.nzLabel?r.nzLabel.toString().toLowerCase().indexOf(t.toLowerCase())>-1:!1,Jt="select",Ai=(()=>{var P;let t,r=[],e=[],n,i=[],p=[],v,D=[],b=[],K,Y=[],me=[],je,qe=[],Ze=[];return P=class{_nzModuleName=Jt;ngZone=f(le);cdr=f(se);host=f(j);renderer=f(Ve);platform=f(wt);focusMonitor=f(Ae);directionality=f(Tt);destroyRef=f(Z);nzId=null;nzSize="default";nzStatus="";nzVariant=R(this,r,"outlined");nzOptionHeightPx=(R(this,e),R(this,i,32));nzOptionOverflowSize=(R(this,p),8);nzDropdownClassName=null;nzDropdownMatchSelectWidth=!0;nzDropdownStyle=null;nzNotFoundContent=void 0;nzPlaceHolder=null;nzPlacement=null;nzMaxTagCount=1/0;nzDropdownRender=null;nzCustomTemplate=null;nzPrefix=null;nzSuffixIcon=R(this,D,null);nzClearIcon=(R(this,b),null);nzRemoveIcon=null;nzMenuItemSelectedIcon=null;nzTokenSeparators=[];nzMaxTagPlaceholder=null;nzMaxMultipleCount=1/0;nzMode="default";nzFilterOption=Fi;compareWith=(l,a)=>l===a;nzAllowClear=!1;nzBorderless=R(this,Y,!1);nzShowSearch=(R(this,me),!1);nzLoading=!1;nzAutoFocus=!1;nzAutoClearSearchValue=!0;nzServerSearch=!1;nzDisabled=!1;nzOpen=!1;nzSelectOnTab=!1;nzBackdrop=R(this,qe,!1);nzOptions=(R(this,Ze),[]);nzShowArrow=!0;get showArrow(){return this.nzShowArrow||!!this.nzSuffixIcon}get isMultiple(){return this.nzMode==="multiple"||this.nzMode==="tags"}get isMaxMultipleCountSet(){return this.isMultiple&&this.nzMaxMultipleCount!==1/0}get isMaxMultipleCountReached(){return this.nzMaxMultipleCount!==1/0&&this.listOfValue.length===this.nzMaxMultipleCount}nzOnSearch=new V;nzScrollToBottom=new V;nzOpenChange=new V;nzBlur=new V;nzFocus=new V;nzOnClear=St();originElement;cdkConnectedOverlay;nzSelectTopControlComponent;listOfNzOptionComponent;listOfNzOptionGroupComponent;nzOptionGroupComponentElement;nzSelectTopControlComponentElement;finalSize=gt(()=>this.compactSize?this.compactSize():this.size());size=ot(this.nzSize);compactSize=f(bt,{optional:!0});listOfValue$=new xe([]);listOfTemplateItem$=new xe([]);listOfTagAndTemplateItem=[];searchValue="";isReactiveDriven=!1;value;requestId=-1;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};dropdownPosition="bottomLeft";triggerWidth=null;listOfContainerItem=[];listOfTopItem=[];activatedValue=null;listOfValue=[];focused=!1;dir="ltr";positions=[];prefixCls="ant-select";statusCls={};status="";hasFeedback=!1;generateTagItem(l){return{nzValue:l,nzLabel:l,type:"item"}}onItemClick(l){if(this.activatedValue=l,this.nzMode==="default")(this.listOfValue.length===0||!this.compareWith(this.listOfValue[0],l))&&this.updateListOfValue([l]),this.setOpenState(!1);else{let a=this.listOfValue.findIndex(o=>this.compareWith(o,l));if(a!==-1){let o=this.listOfValue.filter((s,m)=>m!==a);this.updateListOfValue(o)}else if(this.listOfValue.length<this.nzMaxMultipleCount){let o=[...this.listOfValue,l];this.updateListOfValue(o)}this.focus(),this.nzAutoClearSearchValue&&this.clearInput()}}onItemDelete(l){let a=this.listOfValue.filter(o=>!this.compareWith(o,l.nzValue));this.updateListOfValue(a),this.clearInput()}updateListOfContainerItem(){let l=this.listOfTagAndTemplateItem.filter(s=>!s.nzHide).filter(s=>!this.nzServerSearch&&this.searchValue?this.nzFilterOption(this.searchValue,s):!0);if(this.nzMode==="tags"&&this.searchValue){let s=this.listOfTagAndTemplateItem.find(m=>m.nzLabel===this.searchValue);if(s)this.activatedValue=s.nzValue;else{let m=this.generateTagItem(this.searchValue);l=[m,...l],this.activatedValue=m.nzValue}}let a=l.find(s=>s.nzLabel===this.searchValue)||l.find(s=>this.compareWith(s.nzValue,this.activatedValue))||l.find(s=>this.compareWith(s.nzValue,this.listOfValue[0]))||l[0];this.activatedValue=a&&a.nzValue||null;let o=[];this.isReactiveDriven?o=[...new Set(this.nzOptions.filter(s=>s.groupLabel).map(s=>s.groupLabel))]:this.listOfNzOptionGroupComponent&&(o=this.listOfNzOptionGroupComponent.map(s=>s.nzLabel)),o.forEach(s=>{let m=l.findIndex(g=>s===g.groupLabel);if(m>-1){let g={groupLabel:s,type:"group",key:s};l.splice(m,0,g)}}),this.listOfContainerItem=[...l],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(l){let o=((s,m)=>m==="default"?s.length>0?s[0]:null:s)(l,this.nzMode);this.value!==o&&(this.listOfValue=l,this.listOfValue$.next(l),this.value=o,this.onChange(this.value))}onTokenSeparate(l){let a=this.listOfTagAndTemplateItem.filter(s=>l.findIndex(m=>m===s.nzLabel)!==-1).map(s=>s.nzValue).filter(s=>this.listOfValue.findIndex(m=>this.compareWith(m,s))===-1),o=s=>this.isMaxMultipleCountSet?s.slice(0,this.nzMaxMultipleCount):s;if(this.nzMode==="multiple"){let s=o([...this.listOfValue,...a]);this.updateListOfValue(s)}else if(this.nzMode==="tags"){let s=l.filter(g=>this.listOfTagAndTemplateItem.findIndex(Q=>Q.nzLabel===g)===-1),m=o([...this.listOfValue,...a,...s]);this.updateListOfValue(m)}this.clearInput()}onKeyDown(l){if(this.nzDisabled)return;let a=this.listOfContainerItem.filter(s=>s.type==="item").filter(s=>!s.nzDisabled),o=a.findIndex(s=>this.compareWith(s.nzValue,this.activatedValue));switch(l.keyCode){case 38:if(l.preventDefault(),this.nzOpen&&a.length>0){let s=o>0?o-1:a.length-1;this.activatedValue=a[s].nzValue}break;case 40:if(l.preventDefault(),this.nzOpen&&a.length>0){let s=o<a.length-1?o+1:0;this.activatedValue=a[s].nzValue}else this.setOpenState(!0);break;case 13:l.preventDefault(),this.nzOpen?De(this.activatedValue)&&o!==-1&&this.onItemClick(this.activatedValue):this.setOpenState(!0);break;case 32:this.nzOpen||(this.setOpenState(!0),l.preventDefault());break;case 9:this.nzSelectOnTab?this.nzOpen&&(l.preventDefault(),De(this.activatedValue)&&this.onItemClick(this.activatedValue)):this.setOpenState(!1);break;case 27:break;default:this.nzOpen||this.setOpenState(!0)}}setOpenState(l){this.nzOpen!==l&&(this.nzOpen=l,this.nzOpenChange.emit(l),this.onOpenChange(),this.cdr.markForCheck())}onOpenChange(){this.updateCdkConnectedOverlayStatus(),this.nzAutoClearSearchValue&&this.clearInput()}onInputValueChange(l){this.searchValue=l,this.updateListOfContainerItem(),this.nzOnSearch.emit(l),this.updateCdkConnectedOverlayPositions()}onClearSelection(){this.updateListOfValue([]),this.nzOnClear.emit()}onClickOutside(l){let a=Vt(l);this.host.nativeElement.contains(a)||this.setOpenState(!1)}focus(){this.nzSelectTopControlComponent.focus()}blur(){this.nzSelectTopControlComponent.blur()}onPositionChange(l){let a=Rt(l);this.dropdownPosition=a}updateCdkConnectedOverlayStatus(){if(this.platform.isBrowser&&this.originElement.nativeElement){let l=this.triggerWidth;We(this.requestId),this.requestId=He(()=>{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,l!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){He(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}noAnimation=f(Se,{host:!0,optional:!0});nzFormStatusService=f(Ht,{optional:!0});nzFormNoStatusService=f(Wt,{optional:!0});constructor(){this.destroyRef.onDestroy(()=>{We(this.requestId),this.focusMonitor.stopMonitoring(this.host)}),_e(Jt,()=>{this.size.set(this.nzSize),this.cdr.markForCheck()})}writeValue(l){if(this.value!==l){this.value=l;let o=((s,m)=>s==null?[]:m==="default"?[s]:s)(l,this.nzMode);this.listOfValue=o,this.listOfValue$.next(o),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.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges({nzOpen:l,nzDisabled:a,nzOptions:o,nzStatus:s,nzPlacement:m,nzSize:g}){if(l&&this.onOpenChange(),a&&this.nzDisabled&&this.setOpenState(!1),o){this.isReactiveDriven=!0;let J=(this.nzOptions||[]).map(I=>({template:I.label instanceof ee?I.label:null,nzTitle:this.getTitle(I.title,I.label),nzLabel:typeof I.label=="string"||typeof I.label=="number"?I.label:null,nzValue:I.value,nzDisabled:I.disabled||!1,nzHide:I.hide||!1,nzCustomContent:I.label instanceof ee,groupLabel:I.groupLabel||null,type:"item",key:I.key===void 0?I.value:I.key}));this.listOfTemplateItem$.next(J)}if(s&&this.setStatusStyles(this.nzStatus,this.hasFeedback),m){let{currentValue:Q}=m;this.dropdownPosition=Q;let J=["bottomLeft","topLeft","bottomRight","topRight"];Q&&J.includes(Q)?this.positions=[Re[Q]]:this.positions=J.map(I=>Re[I])}g&&this.size.set(g.currentValue)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Xe((l,a)=>l.status===a.status&&l.hasFeedback===a.hasFeedback),tt(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:Ke(!1)),Ye(([{status:l,hasFeedback:a},o])=>({status:o?"":l,hasFeedback:a})),N(this.destroyRef)).subscribe(({status:l,hasFeedback:a})=>{this.setStatusStyles(l,a)}),this.focusMonitor.monitor(this.host,!0).pipe(N(this.destroyRef)).subscribe(l=>{l?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),Je([this.listOfValue$,this.listOfTemplateItem$]).pipe(N(this.destroyRef)).subscribe(([l,a])=>{let o=l.filter(()=>this.nzMode==="tags").filter(s=>a.findIndex(m=>this.compareWith(m.nzValue,s))===-1).map(s=>this.listOfTopItem.find(m=>this.compareWith(m.nzValue,s))||this.generateTagItem(s));this.listOfTagAndTemplateItem=[...a,...o],this.listOfTopItem=this.listOfValue.map(s=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(m=>this.compareWith(s,m.nzValue))).filter(s=>!!s),this.updateListOfContainerItem()}),this.directionality.change?.pipe(N(this.destroyRef)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value,ie(this.host.nativeElement,"click").pipe(N(this.destroyRef)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))}),this.cdkConnectedOverlay.overlayKeydown.pipe(N(this.destroyRef)).subscribe(l=>{l.keyCode===27&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||Te(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe(de(!0),et(()=>Te(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(l=>l.changes),...this.listOfNzOptionGroupComponent.map(l=>l.changes)).pipe(de(!0))),N(this.destroyRef)).subscribe(()=>{let l=this.listOfNzOptionComponent.toArray().map(a=>{let{template:o,nzLabel:s,nzValue:m,nzKey:g,nzDisabled:Q,nzHide:J,nzCustomContent:I,groupLabel:rn}=a;return{template:o,nzLabel:s,nzValue:m,nzDisabled:Q,nzHide:J,nzCustomContent:I,groupLabel:rn,nzTitle:this.getTitle(a.nzTitle,a.nzLabel),type:"item",key:g===void 0?m:g}});this.listOfTemplateItem$.next(l),this.cdr.markForCheck()})}setStatusStyles(l,a){this.status=l,this.hasFeedback=a,this.cdr.markForCheck(),this.statusCls=vt(this.prefixCls,l,a),Object.keys(this.statusCls).forEach(o=>{this.statusCls[o]?this.renderer.addClass(this.host.nativeElement,o):this.renderer.removeClass(this.host.nativeElement,o)})}getTitle(l,a){let o;return l===void 0?(typeof a=="string"||typeof a=="number")&&(o=a.toString()):(typeof l=="string"||typeof l=="number")&&(o=l.toString()),o}},(()=>{let l=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[oe()],n=[oe()],v=[oe()],K=[oe()],je=[oe()],X(null,null,t,{kind:"field",name:"nzVariant",static:!1,private:!1,access:{has:a=>"nzVariant"in a,get:a=>a.nzVariant,set:(a,o)=>{a.nzVariant=o}},metadata:l},r,e),X(null,null,n,{kind:"field",name:"nzOptionHeightPx",static:!1,private:!1,access:{has:a=>"nzOptionHeightPx"in a,get:a=>a.nzOptionHeightPx,set:(a,o)=>{a.nzOptionHeightPx=o}},metadata:l},i,p),X(null,null,v,{kind:"field",name:"nzSuffixIcon",static:!1,private:!1,access:{has:a=>"nzSuffixIcon"in a,get:a=>a.nzSuffixIcon,set:(a,o)=>{a.nzSuffixIcon=o}},metadata:l},D,b),X(null,null,K,{kind:"field",name:"nzBorderless",static:!1,private:!1,access:{has:a=>"nzBorderless"in a,get:a=>a.nzBorderless,set:(a,o)=>{a.nzBorderless=o}},metadata:l},Y,me),X(null,null,je,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:a=>"nzBackdrop"in a,get:a=>a.nzBackdrop,set:(a,o)=>{a.nzBackdrop=o}},metadata:l},qe,Ze),l&&Object.defineProperty(P,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})(),ye(P,"\u0275fac",function(a){return new(a||P)}),ye(P,"\u0275cmp",w({type:P,selectors:[["nz-select"]],contentQueries:function(a,o,s){if(a&1&&(Me(s,Di,5),Me(s,Qe,5)),a&2){let m;k(m=E())&&(o.listOfNzOptionComponent=m),k(m=E())&&(o.listOfNzOptionGroupComponent=m)}},viewQuery:function(a,o){if(a&1&&(H(Le,7,j),H(Pe,7),H(Oe,7),H(Qe,7,j),H(Oe,7,j)),a&2){let s;k(s=E())&&(o.originElement=s.first),k(s=E())&&(o.cdkConnectedOverlay=s.first),k(s=E())&&(o.nzSelectTopControlComponent=s.first),k(s=E())&&(o.nzOptionGroupComponentElement=s.first),k(s=E())&&(o.nzSelectTopControlComponentElement=s.first)}},hostAttrs:[1,"ant-select"],hostVars:30,hostBindings:function(a,o){a&2&&G("ant-select-in-form-item",!!o.nzFormStatusService)("ant-select-lg",o.finalSize()==="large")("ant-select-sm",o.finalSize()==="small")("ant-select-show-arrow",o.showArrow)("ant-select-disabled",o.nzDisabled)("ant-select-show-search",(o.nzShowSearch||o.nzMode!=="default")&&!o.nzDisabled)("ant-select-allow-clear",o.nzAllowClear)("ant-select-borderless",o.nzVariant==="borderless"||o.nzVariant==="outlined"&&o.nzBorderless)("ant-select-filled",o.nzVariant==="filled")("ant-select-underlined",o.nzVariant==="underlined")("ant-select-open",o.nzOpen)("ant-select-focused",o.nzOpen||o.focused)("ant-select-single",o.nzMode==="default")("ant-select-multiple",o.nzMode!=="default")("ant-select-rtl",o.dir==="rtl")},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzVariant:"nzVariant",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzPrefix:"nzPrefix",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",Fe],nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:[2,"nzAllowClear","nzAllowClear",T],nzBorderless:[2,"nzBorderless","nzBorderless",T],nzShowSearch:[2,"nzShowSearch","nzShowSearch",T],nzLoading:[2,"nzLoading","nzLoading",T],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",T],nzAutoClearSearchValue:[2,"nzAutoClearSearchValue","nzAutoClearSearchValue",T],nzServerSearch:[2,"nzServerSearch","nzServerSearch",T],nzDisabled:[2,"nzDisabled","nzDisabled",T],nzOpen:[2,"nzOpen","nzOpen",T],nzSelectOnTab:[2,"nzSelectOnTab","nzSelectOnTab",T],nzBackdrop:[2,"nzBackdrop","nzBackdrop",T],nzOptions:"nzOptions",nzShowArrow:[2,"nzShowArrow","nzShowArrow",T]},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus",nzOnClear:"nzOnClear"},exportAs:["nzSelect"],features:[Ee([{provide:Qt,useExisting:nt(()=>P),multi:!0},{provide:Nt,useValue:"select"}]),mt([Mt]),B],decls:5,vars:26,consts:[["origin","cdkOverlayOrigin"],["feedbackIconTpl",""],["cdkOverlayOrigin","",3,"inputValueChange","tokenize","deleteItem","keydown","nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","prefix"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxMultipleCountSet"],[3,"clearIcon"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],[3,"status"],[3,"clear","clearIcon"],[3,"keydown","itemClick","scrollToBottom","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","isMaxMultipleCountReached"]],template:function(a,o){if(a&1){let s=W();z(0,"nz-select-top-control",2,0),M("inputValueChange",function(g){return S(s),O(o.onInputValueChange(g))})("tokenize",function(g){return S(s),O(o.onTokenSeparate(g))})("deleteItem",function(g){return S(s),O(o.onItemDelete(g))})("keydown",function(g){return S(s),O(o.onKeyDown(g))}),_(),h(2,Mi,3,8,"nz-select-arrow",3),h(3,ki,1,1,"nz-select-clear",4),x(4,Ei,1,25,"ng-template",5),M("overlayOutsideClick",function(g){return S(s),O(o.onClickOutside(g))})("detach",function(){return S(s),O(o.setOpenState(!1))})("positionChange",function(g){return S(s),O(o.onPositionChange(g))})}if(a&2){let s=ke(1);u("nzId",o.nzId)("open",o.nzOpen)("disabled",o.nzDisabled)("mode",o.nzMode)("@.disabled",!!(o.noAnimation!=null&&o.noAnimation.nzNoAnimation))("nzNoAnimation",o.noAnimation==null?null:o.noAnimation.nzNoAnimation)("maxTagPlaceholder",o.nzMaxTagPlaceholder)("removeIcon",o.nzRemoveIcon)("placeHolder",o.nzPlaceHolder)("maxTagCount",o.nzMaxTagCount)("customTemplate",o.nzCustomTemplate)("tokenSeparators",o.nzTokenSeparators)("showSearch",o.nzShowSearch)("autofocus",o.nzAutoFocus)("listOfTopItem",o.listOfTopItem)("prefix",o.nzPrefix),d(2),C(o.showArrow||o.hasFeedback&&o.status||o.isMaxMultipleCountSet?2:-1),d(),C(o.nzAllowClear&&!o.nzDisabled&&o.listOfValue.length?3:-1),d(),u("cdkConnectedOverlayHasBackdrop",o.nzBackdrop)("cdkConnectedOverlayMinWidth",o.nzDropdownMatchSelectWidth?null:o.triggerWidth)("cdkConnectedOverlayWidth",o.nzDropdownMatchSelectWidth?o.triggerWidth:null)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",o.nzDropdownClassName)("cdkConnectedOverlayOpen",o.nzOpen)("cdkConnectedOverlayPositions",o.positions)}},dependencies:[Oe,Le,Se,on,$t,ln,Pe,Be,Bt,nn],encapsulation:2,data:{animation:[Pt]},changeDetection:0})),P})(),Ro=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=fe({type:t});static \u0275inj=ue({imports:[Ai,nn,tn,Oe,Ge,an,ln,on,sn,en]})}return t})();export{Kt as a,$e as b,Yt as c,Di as d,Ai as e,Ro as f};
1
+ import{c as xt}from"./chunk-EP45FT55.js";import{Da as Le,Ea as Pe,F as It,Fa as Lt,G as _e,H as oe,I as wt,K as Vt,Ka as Pt,M as ce,N as pe,O as $,P as q,Pa as Se,Q as bt,Qa as Re,R as Nt,S as Mt,Sa as Rt,Ua as Bt,Va as Be,Xa as He,Ya as We,aa as Ae,db as Ht,eb as Wt,f as De,fb as $t,gb as Qt,ib as Gt,j as Fe,ja as kt,jb as jt,lb as qt,ma as ge,na as Et,pa as Dt,pb as Zt,sa as Ft,ta as At,v as vt,vb as Ut,w as ie,x as Tt,z as N}from"./chunk-PTMJ422K.js";import{d as re,k as yt}from"./chunk-53YRDYLS.js";import{$b as ft,Aa as we,Ab as pt,B as Ye,C as Je,Ca as Z,Dc as ke,Eb as w,Ec as ze,Fb as fe,Fc as G,Gc as ht,Ha as ot,Ic as L,Jb as mt,Jc as U,Kb as x,Kc as ne,L as Te,Lb as dt,Lc as Ct,Na as lt,Oa as B,Ra as j,Tb as he,U as Xe,Uc as Ee,Vb as h,Wa as at,Wc as zt,Xb as C,_b as ut,a as Ue,ac as u,ad as _t,bc as z,ca as de,cc as _,da as et,dc as y,ec as ae,f as ye,fc as Ce,fd as gt,gc as te,hc as F,ia as tt,ic as A,jb as st,kb as rt,kc as W,kd as St,l as ve,la as nt,m as xe,mb as d,na as ue,pa as it,qc as M,r as X,ra as f,rb as V,rd as se,s as R,sb as le,tc as c,u as Ke,ub as ct,uc as be,vb as ee,vc as Ne,vd as T,wc as Me,wd as Ot,xa as S,xb as Ve,xc as H,ya as O,yc as k,za as Ie,zc as E}from"./chunk-SJG2JCPL.js";function mn(t,r){if(t&1&&(F(0),y(1,"img",4),A()),t&2){let e=c(2);d(),u("src",e.nzNotFoundImage,rt)("alt",e.isContentString?e.nzNotFoundContent:"empty")}}function dn(t,r){if(t&1&&x(0,mn,2,2,"ng-container",3),t&2){let e=c();u("nzStringTemplateOutlet",e.nzNotFoundImage)}}function un(t,r){t&1&&y(0,"nz-empty-simple")}function fn(t,r){t&1&&y(0,"nz-empty-default")}function hn(t,r){if(t&1&&h(0,un,1,0,"nz-empty-simple")(1,fn,1,0,"nz-empty-default"),t&2){let e=c();C(e.nzNotFoundImage==="simple"?0:1)}}function Cn(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),ne(" ",e.isContentString?e.nzNotFoundContent:e.locale.description," ")}}function zn(t,r){if(t&1&&(z(0,"p",1),x(1,Cn,2,1,"ng-container",3),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.nzNotFoundContent)}}function _n(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),ne(" ",e.nzNotFoundFooter," ")}}function gn(t,r){if(t&1&&(z(0,"div",2),x(1,_n,2,1,"ng-container",3),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.nzNotFoundFooter)}}var Sn=t=>({$implicit:t});function On(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(3);d(),U(e.content)}}function yn(t,r){if(t&1&&x(0,On,2,1,"ng-container",1),t&2){let e=c(2);u("nzStringTemplateOutlet",e.content)("nzStringTemplateOutletContext",zt(2,Sn,e.nzComponentName))}}function vn(t,r){}function xn(t,r){if(t&1&&x(0,vn,0,0,"ng-template",0),t&2){let e=c(2);u("cdkPortalOutlet",e.contentPortal)}}function Tn(t,r){if(t&1&&h(0,yn,1,4,"ng-container")(1,xn,1,1,null,0),t&2){let e=c();C(e.contentType==="template"||e.contentType==="string"?0:1)}}function In(t,r){t&1&&y(0,"nz-empty",2)}function wn(t,r){t&1&&y(0,"nz-empty",3)}function Vn(t,r){t&1&&y(0,"nz-empty")}function bn(t,r){if(t&1&&h(0,In,1,0,"nz-empty",2)(1,wn,1,0,"nz-empty",3)(2,Vn,1,0,"nz-empty"),t&2){let e,n=c(2);C((e=n.size)==="normal"?0:e==="small"?1:2)}}function Nn(t,r){if(t&1&&h(0,bn,3,1),t&2){let e=c();C(e.specificContent!==null?0:-1)}}var Mn=new it(""),kn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],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(n,i){n&1&&(Ie(),ae(0,"svg",0)(1,"g",1)(2,"g",2),te(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),Ce(),te(8,"path",8),ae(9,"g",9),te(10,"ellipse",10)(11,"path",11),Ce()()())},encapsulation:2,changeDetection:0})}return t})(),En=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],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(n,i){n&1&&(Ie(),ae(0,"svg",0)(1,"g",1),te(2,"ellipse",2),ae(3,"g",3),te(4,"path",4)(5,"path",5),Ce()()())},encapsulation:2,changeDetection:0})}return t})(),Dn=["default","simple"],Kt=(()=>{class t{i18n=f(xt);cdr=f(se);destroyRef=f(Z);nzNotFoundImage="default";nzNotFoundContent;nzNotFoundFooter;isContentString=!1;isImageBuildIn=!0;locale;ngOnChanges(e){let{nzNotFoundContent:n,nzNotFoundImage:i}=e;if(n){let p=n.currentValue;this.isContentString=typeof p=="string"}if(i){let p=i.currentValue||"default";this.isImageBuildIn=Dn.findIndex(v=>v===p)>-1}}ngOnInit(){this.i18n.localeChange.pipe(N(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[B],decls:5,vars:3,consts:[[1,"ant-empty-image"],[1,"ant-empty-description"],[1,"ant-empty-footer"],[4,"nzStringTemplateOutlet"],[3,"src","alt"]],template:function(n,i){n&1&&(z(0,"div",0),h(1,dn,1,1,"ng-container")(2,hn,2,1),_(),h(3,zn,2,1,"p",1),h(4,gn,2,1,"div",2)),n&2&&(d(),C(i.isImageBuildIn?2:1),d(2),C(i.nzNotFoundContent!==null?3:-1),d(),C(i.nzNotFoundFooter?4:-1))},dependencies:[q,$,kn,En],encapsulation:2,changeDetection:0})}return t})();function Fn(t){switch(t){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}var $e=(()=>{class t{configService=f(It);viewContainerRef=f(pt);cdr=f(se);injector=f(we);nzComponentName;specificContent;content;contentType="string";contentPortal;size="";constructor(){_e("empty",()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}ngOnChanges(e){e.nzComponentName&&(this.size=Fn(e.nzComponentName.currentValue)),e.specificContent&&!e.specificContent.isFirstChange()&&(this.content=e.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()}renderEmpty(){let e=this.content;if(typeof e=="string")this.contentType="string";else if(e instanceof ee)this.contentType="template",this.contentPortal=void 0;else if(e instanceof lt){let n=we.create({parent:this.injector,providers:[{provide:Mn,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new Dt(e,this.viewContainerRef,n)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[B],decls:2,vars:1,consts:[[3,"cdkPortalOutlet"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nzNotFoundImage","simple",1,"ant-empty-normal"],["nzNotFoundImage","simple",1,"ant-empty-small"]],template:function(n,i){n&1&&h(0,Tn,2,1)(1,Nn,1,1),n&2&&C(i.content?0:1)},dependencies:[Kt,At,Ft,q,$],encapsulation:2,changeDetection:0})}return t})(),Yt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=fe({type:t});static \u0275inj=ue({imports:[Kt,$e]})}return t})();var Xt=["*"];function Pn(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),U(e.nzLabel)}}function Rn(t,r){}function Bn(t,r){if(t&1&&x(0,Rn,0,0,"ng-template",1),t&2){let e=c();u("ngTemplateOutlet",e.template)}}function Hn(t,r){if(t&1&&L(0),t&2){let e=c();ne(" ",e.label," ")}}function Wn(t,r){t&1&&y(0,"nz-icon",3)}function $n(t,r){}function Qn(t,r){if(t&1&&x(0,$n,0,0,"ng-template",1),t&2){let e=c(2);u("ngTemplateOutlet",e.icon)}}function Gn(t,r){if(t&1&&(z(0,"div",2),h(1,Wn,1,0,"nz-icon",3)(2,Qn,1,1,null,1),_()),t&2){let e=c();d(),C(e.icon?2:1)}}function jn(t,r){if(t&1&&(z(0,"div",0),y(1,"nz-embed-empty",4),_()),t&2){let e=c();d(),u("specificContent",e.notFoundContent)}}function qn(t,r){if(t&1&&y(0,"nz-option-item-group",5),t&2){let e=c().$implicit;u("nzLabel",e.groupLabel??null)}}function Zn(t,r){if(t&1){let e=W();z(0,"nz-option-item",7),M("itemHover",function(i){S(e);let p=c(2);return O(p.onItemHover(i))})("itemClick",function(i){S(e);let p=c(2);return O(p.onItemClick(i))}),_()}if(t&2){let e=c().$implicit,n=c();u("icon",n.menuItemSelectedIcon)("customContent",e.nzCustomContent)("template",e.template??null)("grouped",!!e.groupLabel)("disabled",e.nzDisabled||n.isMaxMultipleCountReached&&!n.listOfSelectedValue.includes(e.nzValue))("showState",n.mode==="tags"||n.mode==="multiple")("title",e.nzTitle)("label",e.nzLabel)("compareWith",n.compareWith)("activatedValue",n.activatedValue)("listOfSelectedValue",n.listOfSelectedValue)("value",e.nzValue)}}function Un(t,r){if(t&1&&h(0,qn,1,1,"nz-option-item-group",5)(1,Zn,1,12,"nz-option-item",6),t&2){let e,n=r.$implicit;C((e=n.type)==="group"?0:e==="item"?1:-1)}}function Kn(t,r){}function Yn(t,r){t&1&&Ne(0)}function Jn(t,r){if(t&1&&(z(0,"span"),L(1),_()),t&2){let e=c();d(),Ct("",e.listOfValue.length," / ",e.nzMaxMultipleCount)}}function Xn(t,r){t&1&&y(0,"nz-icon",0)}function ei(t,r){t&1&&y(0,"nz-icon",2)}function ti(t,r){t&1&&y(0,"nz-icon",3)}function ni(t,r){if(t&1&&h(0,ei,1,0,"nz-icon",2)(1,ti,1,0,"nz-icon",3),t&2){let e=c(2);C(e.search?0:1)}}function ii(t,r){if(t&1&&(F(0),y(1,"nz-icon",4),A()),t&2){let e=r.$implicit;d(),u("nzType",e)}}function oi(t,r){if(t&1&&x(0,ii,2,1,"ng-container",1),t&2){let e=c(2);u("nzStringTemplateOutlet",e.suffixIcon)}}function li(t,r){if(t&1&&h(0,ni,2,1)(1,oi,1,1,"ng-container"),t&2){let e=c();C(e.showArrow&&!e.suffixIcon?0:1)}}function ai(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),U(e.feedbackIcon)}}function si(t,r){}function ri(t,r){if(t&1&&x(0,si,0,0,"ng-template",0),t&2){let e=c();u("ngTemplateOutlet",e.clearIcon)}}function ci(t,r){t&1&&y(0,"nz-icon",1)}function pi(t,r){if(t&1&&y(0,"span",4),t&2){let e=c(2);G("ant-select-selection-item-content",e.deletable),u("innerHTML",e.label,st)}}function mi(t,r){if(t&1&&(z(0,"span"),L(1),_()),t&2){let e=c(2);G("ant-select-selection-item-content",e.deletable),d(),U(e.label)}}function di(t,r){if(t&1&&(F(0),h(1,pi,1,3,"span",2)(2,mi,2,3,"span",3),A()),t&2){let e=c();d(),C(e.displayLabelInHtml?1:2)}}function ui(t,r){t&1&&y(0,"nz-icon",6)}function fi(t,r){}function hi(t,r){if(t&1&&x(0,fi,0,0,"ng-template",7),t&2){let e=c(2);u("ngTemplateOutlet",e.removeIcon)}}function Ci(t,r){if(t&1){let e=W();z(0,"span",5),M("click",function(i){S(e);let p=c();return O(p.onDelete(i))}),h(1,ui,1,0,"nz-icon",6)(2,hi,1,1,null,7),_()}if(t&2){let e=c();d(),C(e.removeIcon?2:1)}}function zi(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),ne(" ",e.placeholder," ")}}var _i=["inputElement"],gi=["mirrorElement"];function Si(t,r){t&1&&y(0,"span",3,1)}var Oi=(t,r)=>r.nzValue;function yi(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),U(e.prefix)}}function vi(t,r){if(t&1&&(z(0,"div",0),x(1,yi,2,1,"ng-container",4),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.prefix)}}function xi(t,r){if(t&1&&y(0,"nz-select-item",6),t&2){let e=c(2);u("removeIcon",e.removeIcon)("label",e.listOfTopItem[0].nzLabel)("contentTemplateOutlet",e.customTemplate)("contentTemplateOutletContext",e.listOfTopItem[0])}}function Ti(t,r){if(t&1){let e=W();z(0,"nz-select-search",5),M("isComposingChange",function(i){S(e);let p=c();return O(p.isComposingChange(i))})("valueChange",function(i){S(e);let p=c();return O(p.onInputValueChange(i))}),_(),h(1,xi,1,4,"nz-select-item",6)}if(t&2){let e=c();u("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("showInput",e.showSearch)("mirrorSync",!1)("autofocus",e.autofocus)("focusTrigger",e.open),d(),C(e.isShowSingleLabel?1:-1)}}function Ii(t,r){if(t&1){let e=W();z(0,"div",7)(1,"nz-select-item",10),M("delete",function(){let i=S(e).$implicit,p=c(2);return O(p.onDeleteItem(i.contentTemplateOutletContext))}),_()()}if(t&2){let e=r.$implicit,n=c(2);d(),u("removeIcon",n.removeIcon)("label",e.nzLabel)("disabled",e.nzDisabled||n.disabled)("contentTemplateOutlet",e.contentTemplateOutlet)("contentTemplateOutletContext",e.contentTemplateOutletContext)}}function wi(t,r){if(t&1){let e=W();z(0,"div",2),ut(1,Ii,2,5,"div",7,Oi),z(3,"div",8)(4,"nz-select-search",9),M("isComposingChange",function(i){S(e);let p=c();return O(p.isComposingChange(i))})("valueChange",function(i){S(e);let p=c();return O(p.onInputValueChange(i))}),_()()()}if(t&2){let e=c();d(),ft(e.listOfSlicedItem),d(3),u("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("autofocus",e.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",e.open)}}function Vi(t,r){if(t&1&&y(0,"nz-select-placeholder",3),t&2){let e=c();u("placeholder",e.placeHolder)}}function bi(t,r){if(t&1&&y(0,"nz-form-item-feedback-icon",6),t&2){let e=c(3);u("status",e.status)}}function Ni(t,r){if(t&1&&h(0,bi,1,1,"nz-form-item-feedback-icon",6),t&2){let e=c(2);C(e.hasFeedback&&e.status?0:-1)}}function Mi(t,r){if(t&1&&(z(0,"nz-select-arrow",3),x(1,Ni,1,1,"ng-template",null,1,_t),_()),t&2){let e=ke(2),n=c();u("showArrow",n.nzShowArrow)("loading",n.nzLoading)("search",n.nzOpen&&n.nzShowSearch)("suffixIcon",n.nzSuffixIcon)("feedbackIcon",e)("nzMaxMultipleCount",n.nzMaxMultipleCount)("listOfValue",n.listOfValue)("isMaxMultipleCountSet",n.isMaxMultipleCountSet)}}function ki(t,r){if(t&1){let e=W();z(0,"nz-select-clear",7),M("clear",function(){S(e);let i=c();return O(i.onClearSelection())}),_()}if(t&2){let e=c();u("clearIcon",e.nzClearIcon)}}function Ei(t,r){if(t&1){let e=W();z(0,"nz-option-container",8),M("keydown",function(i){S(e);let p=c();return O(p.onKeyDown(i))})("itemClick",function(i){S(e);let p=c();return O(p.onItemClick(i))})("scrollToBottom",function(){S(e);let i=c();return O(i.nzScrollToBottom.emit())}),_()}if(t&2){let e=c();ht(e.nzDropdownStyle),G("ant-select-dropdown-placement-bottomLeft",e.dropdownPosition==="bottomLeft")("ant-select-dropdown-placement-topLeft",e.dropdownPosition==="topLeft")("ant-select-dropdown-placement-bottomRight",e.dropdownPosition==="bottomRight")("ant-select-dropdown-placement-topRight",e.dropdownPosition==="topRight"),u("itemSize",e.nzOptionHeightPx)("maxItemLength",e.nzOptionOverflowSize)("matchWidth",e.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("listOfContainerItem",e.listOfContainerItem)("menuItemSelectedIcon",e.nzMenuItemSelectedIcon)("notFoundContent",e.nzNotFoundContent)("activatedValue",e.activatedValue)("listOfSelectedValue",e.listOfValue)("dropdownRender",e.nzDropdownRender)("compareWith",e.compareWith)("mode",e.nzMode)("isMaxMultipleCountReached",e.isMaxMultipleCountReached)}}var Qe=(()=>{class t{nzLabel=null;changes=new ve;ngOnChanges(){this.changes.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[B],ngContentSelectors:Xt,decls:1,vars:0,template:function(n,i){n&1&&(be(),Ne(0))},encapsulation:2,changeDetection:0})}return t})(),en=(()=>{class t{nzLabel=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&x(0,Pn,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.nzLabel)},dependencies:[q,$],encapsulation:2,changeDetection:0})}return t})(),tn=(()=>{class t{el=f(j).nativeElement;ngZone=f(le);destroyRef=f(Z);selected=!1;activated=!1;grouped=!1;customContent=!1;template=null;disabled=!1;showState=!1;title;label=null;value=null;activatedValue=null;listOfSelectedValue=[];icon=null;compareWith;itemClick=new V;itemHover=new V;ngOnChanges(e){let{value:n,activatedValue:i,listOfSelectedValue:p}=e;(n||p)&&(this.selected=this.listOfSelectedValue.some(v=>this.compareWith(v,this.value))),(n||i)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){ie(this.el,"click").pipe(N(this.destroyRef)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),ie(this.el,"mouseenter").pipe(N(this.destroyRef)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(n,i){n&2&&(he("title",i.title),G("ant-select-item-option-grouped",i.grouped)("ant-select-item-option-selected",i.selected&&!i.disabled)("ant-select-item-option-disabled",i.disabled)("ant-select-item-option-active",i.activated&&!i.disabled))},inputs:{grouped:"grouped",customContent:[2,"customContent","customContent",T],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"},features:[B],decls:4,vars:2,consts:[[1,"ant-select-item-option-content"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state"],["nzType","check",1,"ant-select-selected-icon"]],template:function(n,i){n&1&&(z(0,"div",0),h(1,Bn,1,1,null,1)(2,Hn,1,1),_(),h(3,Gn,3,1,"div",2)),n&2&&(d(),C(i.customContent?1:2),d(2),C(i.showState&&i.selected?3:-1))},dependencies:[re,pe,ce],encapsulation:2,changeDetection:0})}return t})(),nn=(()=>{class t{ngZone=f(le);platformId=f(at);notFoundContent=void 0;menuItemSelectedIcon=null;dropdownRender=null;activatedValue=null;listOfSelectedValue=[];compareWith;mode="default";matchWidth=!0;itemSize=32;maxItemLength=8;isMaxMultipleCountReached=!1;listOfContainerItem=[];itemClick=new V;scrollToBottom=new V;cdkVirtualScrollViewport;scrolledIndex=0;onItemClick(e){this.itemClick.emit(e)}onItemHover(e){this.activatedValue=e}trackValue(e,n){return n.key}onScrolledIndexChange(e){this.scrolledIndex=e,e===this.listOfContainerItem.length-this.maxItemLength-1&&this.scrollToBottom.emit()}scrollToActivatedValue(){let e=this.listOfContainerItem.findIndex(n=>this.compareWith(n.key,this.activatedValue));(e<this.scrolledIndex||e>=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(e||0)}ngOnChanges(e){let{listOfContainerItem:n,activatedValue:i}=e;(n||i)&&this.scrollToActivatedValue()}ngAfterViewInit(){yt(this.platformId)&&this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.scrollToActivatedValue()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-container"]],viewQuery:function(n,i){if(n&1&&H(ge,7),n&2){let p;k(p=E())&&(i.cdkVirtualScrollViewport=p.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",isMaxMultipleCountReached:"isMaxMultipleCountReached",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[B],decls:5,vars:14,consts:[[1,"ant-select-item-empty"],[3,"scrolledIndexChange","itemSize","maxBufferPx","minBufferPx"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],["nzComponentName","select",3,"specificContent"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"],[3,"itemHover","itemClick","icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"]],template:function(n,i){n&1&&(z(0,"div"),h(1,jn,2,1,"div",0),z(2,"cdk-virtual-scroll-viewport",1),M("scrolledIndexChange",function(v){return i.onScrolledIndexChange(v)}),x(3,Un,2,1,"ng-template",2),_(),x(4,Kn,0,0,"ng-template",3),_()),n&2&&(d(),C(i.listOfContainerItem.length===0?1:-1),d(),ze("height",i.listOfContainerItem.length*i.itemSize,"px")("max-height",i.itemSize*i.maxItemLength,"px"),G("full-width",!i.matchWidth),u("itemSize",i.itemSize)("maxBufferPx",i.itemSize*i.maxItemLength)("minBufferPx",i.itemSize*i.maxItemLength),d(),u("cdkVirtualForOf",i.listOfContainerItem)("cdkVirtualForTrackBy",i.trackValue)("cdkVirtualForTemplateCacheSize",0),d(),u("ngTemplateOutlet",i.dropdownRender))},dependencies:[Yt,$e,en,tn,re,Lt,kt,Et,ge,Be],encapsulation:2,changeDetection:0})}return t})(),Di=(()=>{class t{destroyRef=f(Z);nzOptionGroupComponent=f(Qe,{optional:!0});changes=new ve;groupLabel=null;template;nzTitle;nzLabel=null;nzValue=null;nzKey;nzDisabled=!1;nzHide=!1;nzCustomContent=!1;ngOnInit(){this.nzOptionGroupComponent?.changes.pipe(de(!0),N(this.destroyRef)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent?.nzLabel})}ngOnChanges(){this.changes.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option"]],viewQuery:function(n,i){if(n&1&&H(ee,7),n&2){let p;k(p=E())&&(i.template=p.first)}},inputs:{nzTitle:"nzTitle",nzLabel:"nzLabel",nzValue:"nzValue",nzKey:"nzKey",nzDisabled:[2,"nzDisabled","nzDisabled",T],nzHide:[2,"nzHide","nzHide",T],nzCustomContent:[2,"nzCustomContent","nzCustomContent",T]},exportAs:["nzOption"],features:[B],ngContentSelectors:Xt,decls:1,vars:0,template:function(n,i){n&1&&(be(),dt(0,Yn,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),on=(()=>{class t{listOfValue=[];loading=!1;search=!1;showArrow=!1;isMaxMultipleCountSet=!1;suffixIcon=null;feedbackIcon=null;nzMaxMultipleCount=1/0;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(n,i){n&2&&G("ant-select-arrow-loading",i.loading)},inputs:{listOfValue:"listOfValue",loading:"loading",search:"search",showArrow:"showArrow",isMaxMultipleCountSet:"isMaxMultipleCountSet",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",Fe]},decls:4,vars:3,consts:[["nzType","loading"],[4,"nzStringTemplateOutlet"],["nzType","search"],["nzType","down"],[3,"nzType"]],template:function(n,i){n&1&&(h(0,Jn,2,2,"span"),h(1,Xn,1,0,"nz-icon",0)(2,li,2,1),x(3,ai,2,1,"ng-container",1)),n&2&&(C(i.isMaxMultipleCountSet?0:-1),d(),C(i.loading?1:2),d(2),u("nzStringTemplateOutlet",i.feedbackIcon))},dependencies:[pe,ce,q,$],encapsulation:2,changeDetection:0})}return t})(),ln=(()=>{class t{clearIcon=null;clear=new V;onClick(e){e.preventDefault(),e.stopPropagation(),this.clear.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(n,i){n&1&&M("click",function(v){return i.onClick(v)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:2,vars:1,consts:[[3,"ngTemplateOutlet"],["nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(n,i){n&1&&h(0,ri,1,1,null,0)(1,ci,1,0,"nz-icon",1),n&2&&C(i.clearIcon?0:1)},dependencies:[re,pe,ce],encapsulation:2,changeDetection:0})}return t})(),an=(()=>{class t{disabled=!1;label=null;displayLabelInHtml=!1;deletable=!1;removeIcon=null;contentTemplateOutletContext=null;contentTemplateOutlet=null;delete=new V;get templateOutletContext(){return Ue({$implicit:this.contentTemplateOutletContext},this.contentTemplateOutletContext)}onDelete(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.delete.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(n,i){n&2&&(he("title",i.label),G("ant-select-selection-item-disabled",i.disabled))},inputs:{disabled:[2,"disabled","disabled",T],label:"label",displayLabelInHtml:[2,"displayLabelInHtml","displayLabelInHtml",T],deletable:[2,"deletable","deletable",T],removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:3,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-select-selection-item-remove"],[3,"ant-select-selection-item-content","innerHTML"],[3,"ant-select-selection-item-content"],[3,"innerHTML"],[1,"ant-select-selection-item-remove",3,"click"],["nzType","close"],[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&(x(0,di,3,1,"ng-container",0),h(1,Ci,3,1,"span",1)),n&2&&(u("nzStringTemplateOutlet",i.contentTemplateOutlet)("nzStringTemplateOutletContext",i.templateOutletContext),d(),C(i.deletable&&!i.disabled?1:-1))},dependencies:[re,q,$,pe,ce],encapsulation:2,changeDetection:0})}return t})(),sn=(()=>{class t{placeholder=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&x(0,zi,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.placeholder)},dependencies:[q,$],encapsulation:2,changeDetection:0})}return t})(),Ge=(()=>{class t{elementRef=f(j);renderer=f(Ve);focusMonitor=f(Ae);nzId=null;disabled=!1;mirrorSync=!1;showInput=!0;focusTrigger=!1;value="";autofocus=!1;valueChange=new V;isComposingChange=new V;inputElement;mirrorElement;constructor(){ct(()=>{this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()})}setCompositionState(e){this.isComposingChange.next(e)}onValueChange(e){this.value=e,this.valueChange.next(e),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){let e=this.inputElement.nativeElement;e.value="",this.onValueChange("")}syncMirrorWidth(){let e=this.mirrorElement.nativeElement,n=this.elementRef.nativeElement,i=this.inputElement.nativeElement;this.renderer.removeStyle(n,"width"),this.renderer.setProperty(e,"textContent",`${i.value}\xA0`),this.renderer.setStyle(n,"width",`${e.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(e){let n=this.inputElement.nativeElement,{focusTrigger:i,showInput:p}=e;p&&(this.showInput?this.renderer.removeAttribute(n,"readonly"):this.renderer.setAttribute(n,"readonly","readonly")),i&&i.currentValue===!0&&i.previousValue===!1&&n.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-search"]],viewQuery:function(n,i){if(n&1&&(H(_i,7),H(gi,5)),n&2){let p;k(p=E())&&(i.inputElement=p.first),k(p=E())&&(i.mirrorElement=p.first)}},hostAttrs:[1,"ant-select-selection-search"],hostVars:2,hostBindings:function(n,i){n&2&&ze("width",i.mirrorSync?0:null,"px")},inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[Ee([{provide:Gt,useValue:!1}]),B],decls:3,vars:7,consts:[["inputElement",""],["mirrorElement",""],["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModelChange","compositionstart","compositionend","ngModel","disabled"],[1,"ant-select-selection-search-mirror"]],template:function(n,i){if(n&1){let p=W();z(0,"input",2,0),M("ngModelChange",function(D){return S(p),O(i.onValueChange(D))})("compositionstart",function(){return S(p),O(i.setCompositionState(!0))})("compositionend",function(){return S(p),O(i.setCompositionState(!1))}),_(),h(2,Si,2,0,"span",3)}n&2&&(ze("opacity",i.showInput?null:0),u("ngModel",i.value)("disabled",i.disabled),he("id",i.nzId)("autofocus",i.autofocus?"autofocus":null),d(2),C(i.mirrorSync?2:-1))},dependencies:[Ut,jt,qt,Zt],encapsulation:2,changeDetection:0})}return t})(),Oe=(()=>{class t{destroyRef=f(Z);elementRef=f(j);ngZone=f(le);noAnimation=f(Se,{host:!0,optional:!0});nzId=null;showSearch=!1;placeHolder=null;open=!1;maxTagCount=1/0;autofocus=!1;disabled=!1;mode="default";customTemplate=null;maxTagPlaceholder=null;removeIcon=null;listOfTopItem=[];tokenSeparators=[];prefix=null;tokenize=new V;inputValueChange=new V;deleteItem=new V;nzSelectSearchComponent;listOfSlicedItem=[];isShowPlaceholder=!0;isShowSingleLabel=!1;isComposing=!1;inputValue=null;updateTemplateVariable(){let e=this.listOfTopItem.length===0;this.isShowPlaceholder=e&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!e&&!this.isComposing&&!this.inputValue}isComposingChange(e){this.isComposing=e,this.updateTemplateVariable()}onInputValueChange(e){e!==this.inputValue&&(this.inputValue=e,this.updateTemplateVariable(),this.inputValueChange.emit(e),this.tokenSeparate(e,this.tokenSeparators))}tokenSeparate(e,n){let i=(v,D)=>{for(let b=0;b<D.length;++b)if(v.lastIndexOf(D[b])>0)return!0;return!1},p=(v,D)=>{let b=new RegExp(`[${D.join()}]`),K=v.split(b).filter(Y=>Y);return[...new Set(K)]};if(e&&e.length&&n.length&&this.mode!=="default"&&i(e,n)){let v=p(e,n);this.tokenize.next(v)}}clearInputValue(){this.nzSelectSearchComponent?.clearInputValue()}focus(){this.nzSelectSearchComponent?.focus()}blur(){this.nzSelectSearchComponent?.blur()}onDeleteItem(e){!this.disabled&&!e.nzDisabled&&this.deleteItem.next(e)}ngOnChanges(e){let{listOfTopItem:n,maxTagCount:i,customTemplate:p,maxTagPlaceholder:v}=e;if(n&&this.updateTemplateVariable(),n||i||p||v){let D=this.listOfTopItem.slice(0,this.maxTagCount).map(b=>({nzLabel:b.nzLabel,nzValue:b.nzValue,nzDisabled:b.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:b}));if(this.listOfTopItem.length>this.maxTagCount){let b=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,K=this.listOfTopItem.map(me=>me.nzValue),Y={nzLabel:b,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:K.slice(this.maxTagCount)};D.push(Y)}this.listOfSlicedItem=D}}ngOnInit(){ie(this.elementRef.nativeElement,"click").pipe(N(this.destroyRef)).subscribe(e=>{e.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),ie(this.elementRef.nativeElement,"keydown").pipe(N(this.destroyRef)).subscribe(e=>{if(e.target instanceof HTMLInputElement){let n=e.target.value;e.keyCode===8&&this.mode!=="default"&&!n&&this.listOfTopItem.length>0&&(e.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-top-control"]],viewQuery:function(n,i){if(n&1&&H(Ge,5),n&2){let p;k(p=E())&&(i.nzSelectSearchComponent=p.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:[2,"maxTagCount","maxTagCount",Ot],autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators",prefix:"prefix"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[B],decls:5,vars:3,consts:[[1,"ant-select-prefix"],[1,"ant-select-selection-wrap"],[1,"ant-select-selection-overflow"],[3,"placeholder"],[4,"nzStringTemplateOutlet"],[3,"isComposingChange","valueChange","nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger"],[3,"removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[1,"ant-select-selection-overflow-item"],[1,"ant-select-selection-overflow-item","ant-select-selection-overflow-item-suffix"],[3,"isComposingChange","valueChange","nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger"],["deletable","",3,"delete","removeIcon","label","disabled","contentTemplateOutlet","contentTemplateOutletContext"]],template:function(n,i){if(n&1&&(h(0,vi,2,1,"div",0),z(1,"span",1),h(2,Ti,2,8)(3,wi,5,7,"div",2),h(4,Vi,1,1,"nz-select-placeholder",3),_()),n&2){let p;C(i.prefix?0:-1),d(2),C((p=i.mode)==="default"?2:3),d(2),C(i.isShowPlaceholder?4:-1)}},dependencies:[Ge,an,sn,$],encapsulation:2,changeDetection:0})}return t})(),Fi=(t,r)=>r&&r.nzLabel?r.nzLabel.toString().toLowerCase().indexOf(t.toLowerCase())>-1:!1,Jt="select",Ai=(()=>{var P;let t,r=[],e=[],n,i=[],p=[],v,D=[],b=[],K,Y=[],me=[],je,qe=[],Ze=[];return P=class{_nzModuleName=Jt;ngZone=f(le);cdr=f(se);host=f(j);renderer=f(Ve);platform=f(wt);focusMonitor=f(Ae);directionality=f(Tt);destroyRef=f(Z);nzId=null;nzSize="default";nzStatus="";nzVariant=R(this,r,"outlined");nzOptionHeightPx=(R(this,e),R(this,i,32));nzOptionOverflowSize=(R(this,p),8);nzDropdownClassName=null;nzDropdownMatchSelectWidth=!0;nzDropdownStyle=null;nzNotFoundContent=void 0;nzPlaceHolder=null;nzPlacement=null;nzMaxTagCount=1/0;nzDropdownRender=null;nzCustomTemplate=null;nzPrefix=null;nzSuffixIcon=R(this,D,null);nzClearIcon=(R(this,b),null);nzRemoveIcon=null;nzMenuItemSelectedIcon=null;nzTokenSeparators=[];nzMaxTagPlaceholder=null;nzMaxMultipleCount=1/0;nzMode="default";nzFilterOption=Fi;compareWith=(l,a)=>l===a;nzAllowClear=!1;nzBorderless=R(this,Y,!1);nzShowSearch=(R(this,me),!1);nzLoading=!1;nzAutoFocus=!1;nzAutoClearSearchValue=!0;nzServerSearch=!1;nzDisabled=!1;nzOpen=!1;nzSelectOnTab=!1;nzBackdrop=R(this,qe,!1);nzOptions=(R(this,Ze),[]);nzShowArrow=!0;get showArrow(){return this.nzShowArrow||!!this.nzSuffixIcon}get isMultiple(){return this.nzMode==="multiple"||this.nzMode==="tags"}get isMaxMultipleCountSet(){return this.isMultiple&&this.nzMaxMultipleCount!==1/0}get isMaxMultipleCountReached(){return this.nzMaxMultipleCount!==1/0&&this.listOfValue.length===this.nzMaxMultipleCount}nzOnSearch=new V;nzScrollToBottom=new V;nzOpenChange=new V;nzBlur=new V;nzFocus=new V;nzOnClear=St();originElement;cdkConnectedOverlay;nzSelectTopControlComponent;listOfNzOptionComponent;listOfNzOptionGroupComponent;nzOptionGroupComponentElement;nzSelectTopControlComponentElement;finalSize=gt(()=>this.compactSize?this.compactSize():this.size());size=ot(this.nzSize);compactSize=f(bt,{optional:!0});listOfValue$=new xe([]);listOfTemplateItem$=new xe([]);listOfTagAndTemplateItem=[];searchValue="";isReactiveDriven=!1;value;requestId=-1;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};dropdownPosition="bottomLeft";triggerWidth=null;listOfContainerItem=[];listOfTopItem=[];activatedValue=null;listOfValue=[];focused=!1;dir="ltr";positions=[];prefixCls="ant-select";statusCls={};status="";hasFeedback=!1;generateTagItem(l){return{nzValue:l,nzLabel:l,type:"item"}}onItemClick(l){if(this.activatedValue=l,this.nzMode==="default")(this.listOfValue.length===0||!this.compareWith(this.listOfValue[0],l))&&this.updateListOfValue([l]),this.setOpenState(!1);else{let a=this.listOfValue.findIndex(o=>this.compareWith(o,l));if(a!==-1){let o=this.listOfValue.filter((s,m)=>m!==a);this.updateListOfValue(o)}else if(this.listOfValue.length<this.nzMaxMultipleCount){let o=[...this.listOfValue,l];this.updateListOfValue(o)}this.focus(),this.nzAutoClearSearchValue&&this.clearInput()}}onItemDelete(l){let a=this.listOfValue.filter(o=>!this.compareWith(o,l.nzValue));this.updateListOfValue(a),this.clearInput()}updateListOfContainerItem(){let l=this.listOfTagAndTemplateItem.filter(s=>!s.nzHide).filter(s=>!this.nzServerSearch&&this.searchValue?this.nzFilterOption(this.searchValue,s):!0);if(this.nzMode==="tags"&&this.searchValue){let s=this.listOfTagAndTemplateItem.find(m=>m.nzLabel===this.searchValue);if(s)this.activatedValue=s.nzValue;else{let m=this.generateTagItem(this.searchValue);l=[m,...l],this.activatedValue=m.nzValue}}let a=l.find(s=>s.nzLabel===this.searchValue)||l.find(s=>this.compareWith(s.nzValue,this.activatedValue))||l.find(s=>this.compareWith(s.nzValue,this.listOfValue[0]))||l[0];this.activatedValue=a&&a.nzValue||null;let o=[];this.isReactiveDriven?o=[...new Set(this.nzOptions.filter(s=>s.groupLabel).map(s=>s.groupLabel))]:this.listOfNzOptionGroupComponent&&(o=this.listOfNzOptionGroupComponent.map(s=>s.nzLabel)),o.forEach(s=>{let m=l.findIndex(g=>s===g.groupLabel);if(m>-1){let g={groupLabel:s,type:"group",key:s};l.splice(m,0,g)}}),this.listOfContainerItem=[...l],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(l){let o=((s,m)=>m==="default"?s.length>0?s[0]:null:s)(l,this.nzMode);this.value!==o&&(this.listOfValue=l,this.listOfValue$.next(l),this.value=o,this.onChange(this.value))}onTokenSeparate(l){let a=this.listOfTagAndTemplateItem.filter(s=>l.findIndex(m=>m===s.nzLabel)!==-1).map(s=>s.nzValue).filter(s=>this.listOfValue.findIndex(m=>this.compareWith(m,s))===-1),o=s=>this.isMaxMultipleCountSet?s.slice(0,this.nzMaxMultipleCount):s;if(this.nzMode==="multiple"){let s=o([...this.listOfValue,...a]);this.updateListOfValue(s)}else if(this.nzMode==="tags"){let s=l.filter(g=>this.listOfTagAndTemplateItem.findIndex(Q=>Q.nzLabel===g)===-1),m=o([...this.listOfValue,...a,...s]);this.updateListOfValue(m)}this.clearInput()}onKeyDown(l){if(this.nzDisabled)return;let a=this.listOfContainerItem.filter(s=>s.type==="item").filter(s=>!s.nzDisabled),o=a.findIndex(s=>this.compareWith(s.nzValue,this.activatedValue));switch(l.keyCode){case 38:if(l.preventDefault(),this.nzOpen&&a.length>0){let s=o>0?o-1:a.length-1;this.activatedValue=a[s].nzValue}break;case 40:if(l.preventDefault(),this.nzOpen&&a.length>0){let s=o<a.length-1?o+1:0;this.activatedValue=a[s].nzValue}else this.setOpenState(!0);break;case 13:l.preventDefault(),this.nzOpen?De(this.activatedValue)&&o!==-1&&this.onItemClick(this.activatedValue):this.setOpenState(!0);break;case 32:this.nzOpen||(this.setOpenState(!0),l.preventDefault());break;case 9:this.nzSelectOnTab?this.nzOpen&&(l.preventDefault(),De(this.activatedValue)&&this.onItemClick(this.activatedValue)):this.setOpenState(!1);break;case 27:break;default:this.nzOpen||this.setOpenState(!0)}}setOpenState(l){this.nzOpen!==l&&(this.nzOpen=l,this.nzOpenChange.emit(l),this.onOpenChange(),this.cdr.markForCheck())}onOpenChange(){this.updateCdkConnectedOverlayStatus(),this.nzAutoClearSearchValue&&this.clearInput()}onInputValueChange(l){this.searchValue=l,this.updateListOfContainerItem(),this.nzOnSearch.emit(l),this.updateCdkConnectedOverlayPositions()}onClearSelection(){this.updateListOfValue([]),this.nzOnClear.emit()}onClickOutside(l){let a=Vt(l);this.host.nativeElement.contains(a)||this.setOpenState(!1)}focus(){this.nzSelectTopControlComponent.focus()}blur(){this.nzSelectTopControlComponent.blur()}onPositionChange(l){let a=Rt(l);this.dropdownPosition=a}updateCdkConnectedOverlayStatus(){if(this.platform.isBrowser&&this.originElement.nativeElement){let l=this.triggerWidth;We(this.requestId),this.requestId=He(()=>{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,l!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){He(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}noAnimation=f(Se,{host:!0,optional:!0});nzFormStatusService=f(Ht,{optional:!0});nzFormNoStatusService=f(Wt,{optional:!0});constructor(){this.destroyRef.onDestroy(()=>{We(this.requestId),this.focusMonitor.stopMonitoring(this.host)}),_e(Jt,()=>{this.size.set(this.nzSize),this.cdr.markForCheck()})}writeValue(l){if(this.value!==l){this.value=l;let o=((s,m)=>s==null?[]:m==="default"?[s]:s)(l,this.nzMode);this.listOfValue=o,this.listOfValue$.next(o),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.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges({nzOpen:l,nzDisabled:a,nzOptions:o,nzStatus:s,nzPlacement:m,nzSize:g}){if(l&&this.onOpenChange(),a&&this.nzDisabled&&this.setOpenState(!1),o){this.isReactiveDriven=!0;let J=(this.nzOptions||[]).map(I=>({template:I.label instanceof ee?I.label:null,nzTitle:this.getTitle(I.title,I.label),nzLabel:typeof I.label=="string"||typeof I.label=="number"?I.label:null,nzValue:I.value,nzDisabled:I.disabled||!1,nzHide:I.hide||!1,nzCustomContent:I.label instanceof ee,groupLabel:I.groupLabel||null,type:"item",key:I.key===void 0?I.value:I.key}));this.listOfTemplateItem$.next(J)}if(s&&this.setStatusStyles(this.nzStatus,this.hasFeedback),m){let{currentValue:Q}=m;this.dropdownPosition=Q;let J=["bottomLeft","topLeft","bottomRight","topRight"];Q&&J.includes(Q)?this.positions=[Re[Q]]:this.positions=J.map(I=>Re[I])}g&&this.size.set(g.currentValue)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Xe((l,a)=>l.status===a.status&&l.hasFeedback===a.hasFeedback),tt(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:Ke(!1)),Ye(([{status:l,hasFeedback:a},o])=>({status:o?"":l,hasFeedback:a})),N(this.destroyRef)).subscribe(({status:l,hasFeedback:a})=>{this.setStatusStyles(l,a)}),this.focusMonitor.monitor(this.host,!0).pipe(N(this.destroyRef)).subscribe(l=>{l?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),Je([this.listOfValue$,this.listOfTemplateItem$]).pipe(N(this.destroyRef)).subscribe(([l,a])=>{let o=l.filter(()=>this.nzMode==="tags").filter(s=>a.findIndex(m=>this.compareWith(m.nzValue,s))===-1).map(s=>this.listOfTopItem.find(m=>this.compareWith(m.nzValue,s))||this.generateTagItem(s));this.listOfTagAndTemplateItem=[...a,...o],this.listOfTopItem=this.listOfValue.map(s=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(m=>this.compareWith(s,m.nzValue))).filter(s=>!!s),this.updateListOfContainerItem()}),this.directionality.change?.pipe(N(this.destroyRef)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value,ie(this.host.nativeElement,"click").pipe(N(this.destroyRef)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))}),this.cdkConnectedOverlay.overlayKeydown.pipe(N(this.destroyRef)).subscribe(l=>{l.keyCode===27&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||Te(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe(de(!0),et(()=>Te(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(l=>l.changes),...this.listOfNzOptionGroupComponent.map(l=>l.changes)).pipe(de(!0))),N(this.destroyRef)).subscribe(()=>{let l=this.listOfNzOptionComponent.toArray().map(a=>{let{template:o,nzLabel:s,nzValue:m,nzKey:g,nzDisabled:Q,nzHide:J,nzCustomContent:I,groupLabel:rn}=a;return{template:o,nzLabel:s,nzValue:m,nzDisabled:Q,nzHide:J,nzCustomContent:I,groupLabel:rn,nzTitle:this.getTitle(a.nzTitle,a.nzLabel),type:"item",key:g===void 0?m:g}});this.listOfTemplateItem$.next(l),this.cdr.markForCheck()})}setStatusStyles(l,a){this.status=l,this.hasFeedback=a,this.cdr.markForCheck(),this.statusCls=vt(this.prefixCls,l,a),Object.keys(this.statusCls).forEach(o=>{this.statusCls[o]?this.renderer.addClass(this.host.nativeElement,o):this.renderer.removeClass(this.host.nativeElement,o)})}getTitle(l,a){let o;return l===void 0?(typeof a=="string"||typeof a=="number")&&(o=a.toString()):(typeof l=="string"||typeof l=="number")&&(o=l.toString()),o}},(()=>{let l=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[oe()],n=[oe()],v=[oe()],K=[oe()],je=[oe()],X(null,null,t,{kind:"field",name:"nzVariant",static:!1,private:!1,access:{has:a=>"nzVariant"in a,get:a=>a.nzVariant,set:(a,o)=>{a.nzVariant=o}},metadata:l},r,e),X(null,null,n,{kind:"field",name:"nzOptionHeightPx",static:!1,private:!1,access:{has:a=>"nzOptionHeightPx"in a,get:a=>a.nzOptionHeightPx,set:(a,o)=>{a.nzOptionHeightPx=o}},metadata:l},i,p),X(null,null,v,{kind:"field",name:"nzSuffixIcon",static:!1,private:!1,access:{has:a=>"nzSuffixIcon"in a,get:a=>a.nzSuffixIcon,set:(a,o)=>{a.nzSuffixIcon=o}},metadata:l},D,b),X(null,null,K,{kind:"field",name:"nzBorderless",static:!1,private:!1,access:{has:a=>"nzBorderless"in a,get:a=>a.nzBorderless,set:(a,o)=>{a.nzBorderless=o}},metadata:l},Y,me),X(null,null,je,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:a=>"nzBackdrop"in a,get:a=>a.nzBackdrop,set:(a,o)=>{a.nzBackdrop=o}},metadata:l},qe,Ze),l&&Object.defineProperty(P,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})(),ye(P,"\u0275fac",function(a){return new(a||P)}),ye(P,"\u0275cmp",w({type:P,selectors:[["nz-select"]],contentQueries:function(a,o,s){if(a&1&&(Me(s,Di,5),Me(s,Qe,5)),a&2){let m;k(m=E())&&(o.listOfNzOptionComponent=m),k(m=E())&&(o.listOfNzOptionGroupComponent=m)}},viewQuery:function(a,o){if(a&1&&(H(Le,7,j),H(Pe,7),H(Oe,7),H(Qe,7,j),H(Oe,7,j)),a&2){let s;k(s=E())&&(o.originElement=s.first),k(s=E())&&(o.cdkConnectedOverlay=s.first),k(s=E())&&(o.nzSelectTopControlComponent=s.first),k(s=E())&&(o.nzOptionGroupComponentElement=s.first),k(s=E())&&(o.nzSelectTopControlComponentElement=s.first)}},hostAttrs:[1,"ant-select"],hostVars:30,hostBindings:function(a,o){a&2&&G("ant-select-in-form-item",!!o.nzFormStatusService)("ant-select-lg",o.finalSize()==="large")("ant-select-sm",o.finalSize()==="small")("ant-select-show-arrow",o.showArrow)("ant-select-disabled",o.nzDisabled)("ant-select-show-search",(o.nzShowSearch||o.nzMode!=="default")&&!o.nzDisabled)("ant-select-allow-clear",o.nzAllowClear)("ant-select-borderless",o.nzVariant==="borderless"||o.nzVariant==="outlined"&&o.nzBorderless)("ant-select-filled",o.nzVariant==="filled")("ant-select-underlined",o.nzVariant==="underlined")("ant-select-open",o.nzOpen)("ant-select-focused",o.nzOpen||o.focused)("ant-select-single",o.nzMode==="default")("ant-select-multiple",o.nzMode!=="default")("ant-select-rtl",o.dir==="rtl")},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzVariant:"nzVariant",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzPrefix:"nzPrefix",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",Fe],nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:[2,"nzAllowClear","nzAllowClear",T],nzBorderless:[2,"nzBorderless","nzBorderless",T],nzShowSearch:[2,"nzShowSearch","nzShowSearch",T],nzLoading:[2,"nzLoading","nzLoading",T],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",T],nzAutoClearSearchValue:[2,"nzAutoClearSearchValue","nzAutoClearSearchValue",T],nzServerSearch:[2,"nzServerSearch","nzServerSearch",T],nzDisabled:[2,"nzDisabled","nzDisabled",T],nzOpen:[2,"nzOpen","nzOpen",T],nzSelectOnTab:[2,"nzSelectOnTab","nzSelectOnTab",T],nzBackdrop:[2,"nzBackdrop","nzBackdrop",T],nzOptions:"nzOptions",nzShowArrow:[2,"nzShowArrow","nzShowArrow",T]},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus",nzOnClear:"nzOnClear"},exportAs:["nzSelect"],features:[Ee([{provide:Qt,useExisting:nt(()=>P),multi:!0},{provide:Nt,useValue:"select"}]),mt([Mt]),B],decls:5,vars:26,consts:[["origin","cdkOverlayOrigin"],["feedbackIconTpl",""],["cdkOverlayOrigin","",3,"inputValueChange","tokenize","deleteItem","keydown","nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","prefix"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxMultipleCountSet"],[3,"clearIcon"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],[3,"status"],[3,"clear","clearIcon"],[3,"keydown","itemClick","scrollToBottom","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","isMaxMultipleCountReached"]],template:function(a,o){if(a&1){let s=W();z(0,"nz-select-top-control",2,0),M("inputValueChange",function(g){return S(s),O(o.onInputValueChange(g))})("tokenize",function(g){return S(s),O(o.onTokenSeparate(g))})("deleteItem",function(g){return S(s),O(o.onItemDelete(g))})("keydown",function(g){return S(s),O(o.onKeyDown(g))}),_(),h(2,Mi,3,8,"nz-select-arrow",3),h(3,ki,1,1,"nz-select-clear",4),x(4,Ei,1,25,"ng-template",5),M("overlayOutsideClick",function(g){return S(s),O(o.onClickOutside(g))})("detach",function(){return S(s),O(o.setOpenState(!1))})("positionChange",function(g){return S(s),O(o.onPositionChange(g))})}if(a&2){let s=ke(1);u("nzId",o.nzId)("open",o.nzOpen)("disabled",o.nzDisabled)("mode",o.nzMode)("@.disabled",!!(o.noAnimation!=null&&o.noAnimation.nzNoAnimation))("nzNoAnimation",o.noAnimation==null?null:o.noAnimation.nzNoAnimation)("maxTagPlaceholder",o.nzMaxTagPlaceholder)("removeIcon",o.nzRemoveIcon)("placeHolder",o.nzPlaceHolder)("maxTagCount",o.nzMaxTagCount)("customTemplate",o.nzCustomTemplate)("tokenSeparators",o.nzTokenSeparators)("showSearch",o.nzShowSearch)("autofocus",o.nzAutoFocus)("listOfTopItem",o.listOfTopItem)("prefix",o.nzPrefix),d(2),C(o.showArrow||o.hasFeedback&&o.status||o.isMaxMultipleCountSet?2:-1),d(),C(o.nzAllowClear&&!o.nzDisabled&&o.listOfValue.length?3:-1),d(),u("cdkConnectedOverlayHasBackdrop",o.nzBackdrop)("cdkConnectedOverlayMinWidth",o.nzDropdownMatchSelectWidth?null:o.triggerWidth)("cdkConnectedOverlayWidth",o.nzDropdownMatchSelectWidth?o.triggerWidth:null)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",o.nzDropdownClassName)("cdkConnectedOverlayOpen",o.nzOpen)("cdkConnectedOverlayPositions",o.positions)}},dependencies:[Oe,Le,Se,on,$t,ln,Pe,Be,Bt,nn],encapsulation:2,data:{animation:[Pt]},changeDetection:0})),P})(),Ro=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=fe({type:t});static \u0275inj=ue({imports:[Ai,nn,tn,Oe,Ge,an,ln,on,sn,en]})}return t})();export{Kt as a,$e as b,Yt as c,Di as d,Ai as e,Ro as f};