@yinuo-ngm/server 1.0.12 → 1.0.13

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 (62) hide show
  1. package/lib/app.js +3 -1
  2. package/lib/plugins/error-handler.plugin.js +14 -0
  3. package/lib/plugins/static.plugin.js +4 -12
  4. package/lib/plugins/ws/topics/index.d.ts +2 -0
  5. package/lib/plugins/ws/topics/index.js +2 -0
  6. package/lib/plugins/ws/topics/svn.ws.d.ts +9 -0
  7. package/lib/plugins/ws/topics/svn.ws.js +46 -0
  8. package/lib/plugins/ws/ws.plugin.js +27 -11
  9. package/lib/routes/index.js +6 -0
  10. package/lib/routes/project.routes.js +15 -1
  11. package/lib/routes/sprite-browse.routes.d.ts +2 -0
  12. package/lib/routes/sprite-browse.routes.js +107 -0
  13. package/lib/routes/sprite.routes.js +40 -61
  14. package/lib/routes/static-files.routes.d.ts +2 -0
  15. package/lib/routes/static-files.routes.js +83 -0
  16. package/lib/routes/svn.routes.d.ts +2 -0
  17. package/lib/routes/svn.routes.js +53 -0
  18. package/package.json +6 -5
  19. package/www/3rdpartylicenses.txt +26 -0
  20. package/www/browser/{chunk-DJJC6FPO.js → chunk-25RT7L2O.js} +1 -1
  21. package/www/browser/{chunk-EP45FT55.js → chunk-2P5WKSWB.js} +2 -2
  22. package/www/browser/{chunk-FNLA2MNI.js → chunk-2XZHN52E.js} +1 -1
  23. package/www/browser/chunk-3MBM5AMR.js +1 -0
  24. package/www/browser/{chunk-AZV6AWGC.js → chunk-3V5PIKHE.js} +1 -1
  25. package/www/browser/{chunk-EC33AXSR.js → chunk-42JVTVYH.js} +1 -1
  26. package/www/browser/chunk-4IQIZX7Y.js +1 -0
  27. package/www/browser/{chunk-3MAJTMXX.js → chunk-4UAHOL42.js} +1 -1
  28. package/www/browser/{chunk-YVSVIACA.js → chunk-56SDBJDG.js} +1 -1
  29. package/www/browser/{chunk-IMQG3SAE.js → chunk-5DD65JMJ.js} +1 -1
  30. package/www/browser/{chunk-PTMJ422K.js → chunk-5EQOKH7G.js} +6 -6
  31. package/www/browser/chunk-6JH45SUC.js +1 -0
  32. package/www/browser/{chunk-G73D24UX.js → chunk-6X6PEDE5.js} +1 -1
  33. package/www/browser/{chunk-CO7S3LZV.js → chunk-AI6SNMEH.js} +1 -1
  34. package/www/browser/chunk-AMXCOT2F.js +1 -0
  35. package/www/browser/{chunk-J2JNFWJN.js → chunk-DP3VTELD.js} +1 -1
  36. package/www/browser/chunk-E6LF4XBJ.js +3 -0
  37. package/www/browser/chunk-EMK65RIU.js +1 -0
  38. package/www/browser/chunk-EYGWZTTT.js +1 -0
  39. package/www/browser/{chunk-CJISJEP3.js → chunk-GKY4LJF4.js} +1 -1
  40. package/www/browser/{chunk-V27A2EK4.js → chunk-HJC5MNP5.js} +1 -1
  41. package/www/browser/chunk-ITXWAN4J.js +1 -0
  42. package/www/browser/{chunk-GCKL62DR.js → chunk-IZNTCWTR.js} +1 -1
  43. package/www/browser/{chunk-CPA2B3DD.js → chunk-KN3WZJH7.js} +1 -1
  44. package/www/browser/chunk-KPO75P5E.js +1 -0
  45. package/www/browser/chunk-LWBZC6ZL.js +2 -0
  46. package/www/browser/{chunk-HCBKQAGF.js → chunk-NYXWJKSW.js} +1 -1
  47. package/www/browser/{chunk-ROB7EMN5.js → chunk-OC62FHHS.js} +1 -1
  48. package/www/browser/{chunk-POZS3PD3.js → chunk-QM5ROT66.js} +1 -1
  49. package/www/browser/{chunk-35COW2FA.js → chunk-W633D3VG.js} +1 -1
  50. package/www/browser/{chunk-53YRDYLS.js → chunk-X3HFJACM.js} +2 -2
  51. package/www/browser/chunk-YFAKNLWB.js +2 -0
  52. package/www/browser/{chunk-3PWCJ3D5.js → chunk-ZSPNEYSK.js} +1 -1
  53. package/www/browser/images/placeholder.png +0 -0
  54. package/www/browser/index.html +1 -1
  55. package/www/browser/main-O5GAJRDW.js +34 -0
  56. package/www/browser/chunk-37KQ3UTB.js +0 -1
  57. package/www/browser/chunk-3LDMO67C.js +0 -1
  58. package/www/browser/chunk-MD6RDGU4.js +0 -1
  59. package/www/browser/chunk-OUE23ZE4.js +0 -2
  60. package/www/browser/chunk-W6TCGG53.js +0 -1
  61. package/www/browser/chunk-XN5C33GH.js +0 -3
  62. package/www/browser/main-V3VSEZ7K.js +0 -29
@@ -1 +1 @@
1
- import{c as Te}from"./chunk-35COW2FA.js";import{j as ue,l as fe,o as be,p as ze,r as _e}from"./chunk-EP45FT55.js";import{F as re,H as K,M as mt,Ma as pe,N as pt,O as J,P as tt,Xa as ut,a as kt,b as oe,ba as le,c as Dt,ga as de,ha as ce,ia as he,la as me,u as se,w as U,x as At,z as L}from"./chunk-PTMJ422K.js";import{d as ht,v as ne,y as ie,z as ae}from"./chunk-53YRDYLS.js";import{$b as st,Ac as Zt,Ca as et,Cc as Ut,Dc as Z,Eb as O,Ec as xt,Fb as qt,Fc as M,Gb as W,Gc as Kt,Ic as It,Kb as S,Kc as St,L as X,Lb as Gt,M as Ft,N as Pt,Oa as vt,Ra as P,Sa as nt,T as Ht,Tb as q,Uc as Jt,Vb as N,Vc as lt,W as Vt,Xa as Yt,Xb as k,Zb as at,_b as ot,ac as u,ad as dt,bc as g,ca as Ct,cc as C,dc as V,f as _t,fd as wt,g as Tt,hc as G,ic as j,jd as te,kc as B,l as Lt,la as $t,ld as Nt,mb as f,mc as jt,na as Qt,o as Ot,od as ee,p as Wt,pa as Xt,qc as A,r as Q,ra as h,rb as z,rd as ct,s as R,sb as Y,tc as c,u as gt,uc as yt,vb as it,vc as rt,vd as y,wc as H,xa as _,xc as F,ya as T,yc as x,zc as I}from"./chunk-SJG2JCPL.js";function Me(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Le=["nz-tab-body",""];function Oe(e,d){}function We(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Fe=()=>({minWidth:"46px"}),Pe=()=>({visible:!1});function He(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.tab.label," ")}}function Ve(e,d){if(e&1){let t=B();g(0,"li",7),A("click",function(){let i=_(t).$implicit,a=c(2);return T(a.onSelect(i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.onContextmenu(a,i))}),S(1,He,2,1,"ng-container",8),C()}if(e&2){let t=d.$implicit;M("ant-tabs-dropdown-menu-item-disabled",t.disabled),u("nzSelected",t.active)("nzDisabled",t.disabled),f(),u("nzStringTemplateOutlet",t.tab.label)("nzStringTemplateOutletContext",lt(6,Pe))}}function $e(e,d){if(e&1&&(g(0,"ul",4),ot(1,Ve,2,7,"li",6,at),C()),e&2){let t=c();f(),st(t.items)}}function Qe(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon)}}var Xe=["navWrap"],Ye=["navList"],qe=["*"];function Ge(e,d){}function je(e,d){if(e&1&&(g(0,"div",2),S(1,Ge,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.startExtraContent().templateRef)}}function Ze(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon),q("tabindex",-1)}}function Ue(e,d){}function Ke(e,d){if(e&1&&(g(0,"div",2),S(1,Ue,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.endExtraContent().templateRef)}}function Je(e,d){}function tn(e,d){if(e&1&&(g(0,"div",2),S(1,Je,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.extraTemplate)}}var en=["contentTemplate"],nn=[[["","nz-tab-link",""]],"*"],an=["[nz-tab-link]","*"];function on(e,d){e&1&&rt(0)}function sn(e,d){e&1&&rt(0,1)}var rn=()=>({visible:!0});function ln(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.label," ")}}function dn(e,d){if(e&1){let t=B();g(0,"button",10),A("click",function(i){_(t);let a=c().$index,l=c(2);return T(l.onClose(a,i))}),C()}if(e&2){let t=c().$implicit;u("closeIcon",t.nzCloseIcon)}}function cn(e,d){if(e&1){let t=B();g(0,"div",6),A("click",function(i){let a=_(t),l=a.$implicit,p=a.$index,b=c(2);return T(b.clickNavItem(l,p,i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.contextmenuNavItem(a,i))}),g(1,"button",7),S(2,ln,2,1,"ng-container",8),N(3,dn,1,1,"button",9),C()()}if(e&2){let t=d.$implicit,n=d.$index,i=c(2);xt("margin-right",i.position==="horizontal"?i.nzTabBarGutter:null,"px")("margin-bottom",i.position==="vertical"?i.nzTabBarGutter:null,"px"),M("ant-tabs-tab-active",i.nzSelectedIndex===n)("ant-tabs-tab-disabled",t.nzDisabled),f(),u("id",i.getTabContentId(n))("disabled",t.nzDisabled)("tab",t)("active",i.nzSelectedIndex===n),q("tabIndex",i.getTabIndex(t,n))("aria-disabled",t.nzDisabled)("aria-selected",i.nzSelectedIndex===n&&!i.nzHideAll)("aria-controls",i.getTabContentId(n)),f(),u("nzStringTemplateOutlet",t.label)("nzStringTemplateOutletContext",lt(19,rn)),f(),k(t.nzClosable&&i.closable&&!t.nzDisabled?3:-1)}}function hn(e,d){if(e&1){let t=B();g(0,"nz-tabs-nav",4),A("tabScroll",function(i){_(t);let a=c();return T(a.nzTabListScroll.emit(i))})("selectFocusedIndex",function(i){_(t);let a=c();return T(a.setSelectedIndex(i))})("addClicked",function(){_(t);let i=c();return T(i.onAdd())}),ot(1,cn,4,20,"div",5,at),C()}if(e&2){let t=c();Kt(t.nzTabBarStyle),u("selectedIndex",t.nzSelectedIndex||0)("inkBarAnimated",t.inkBarAnimated)("addable",t.addable)("addIcon",t.nzAddIcon)("hideBar",t.nzHideAll)("position",t.position)("extraTemplate",t.nzTabBarExtraContent)("extraContents",t.extraContents()),f(),st(t.tabs)}}function mn(e,d){}function pn(e,d){if(e&1&&S(0,mn,0,0,"ng-template",11),e&2){c();let t=Z(4);u("ngTemplateOutlet",t)}}function un(e,d){}function fn(e,d){if(e&1&&S(0,un,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function bn(e,d){if(e&1&&N(0,fn,1,1,null,11),e&2){let t=c().$index,n=c(2);k(n.nzSelectedIndex===t?0:-1)}}function zn(e,d){}function _n(e,d){if(e&1&&S(0,zn,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function Tn(e,d){if(e&1&&N(0,_n,1,1,null,11),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);k(a.nzSelectedIndex===i||n.hasBeenActive?0:-1)}}function gn(e,d){if(e&1&&V(0,"div",12),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);u("id",a.getTabContentId(i))("active",a.nzSelectedIndex===i)("content",n.content)("animated",a.tabPaneAnimated),q("aria-labelledby",a.getTabContentId(i))}}function Cn(e,d){if(e&1&&(N(0,pn,1,1,null,11)(1,bn,1,1)(2,Tn,1,1),S(3,gn,1,5,"ng-template",null,0,dt)),e&2){let t=d.$implicit,n=c(2);k(t.nzForceRender?0:n.nzDestroyInactiveTabPane?1:2)}}function vn(e,d){if(e&1&&ot(0,Cn,5,1,null,null,at),e&2){let t=c();st(t.tabs)}}var Et=class{index;tab},bt=(()=>{class e{addIcon="plus";element=h(P).nativeElement;getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,Me,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.addIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),ge=(()=>{class e{position=Nt("end",{alias:"nzTabBarExtraContent"});templateRef=h(it);static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabBarExtraContent","",5,"nz-tabset",5,"nz-tabs"]],inputs:{position:[1,"nzTabBarExtraContent","position"]}})}return e})(),yn=(()=>{class e{content=null;active=!1;animated=!0;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(n,i){n&2&&(jt("@tabSwitchMotion",i.active?"enter":"leave")("@.disabled",!i.animated),q("tabindex",i.active?0:-1)("aria-hidden",!i.active),xt("overflow-y",i.animated?i.active?null:"none":null),M("ant-tabs-tabpane-active",i.active)("ant-tabs-tabpane-hidden",i.animated?null:!i.active))},inputs:{content:"content",active:"active",animated:"animated"},exportAs:["nzTabBody"],attrs:Le,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&S(0,Oe,0,0,"ng-template",0),n&2&&u("ngTemplateOutlet",i.content)},dependencies:[ht],encapsulation:2,data:{animation:[pe]},changeDetection:0})}return e})(),Ie=(()=>{class e{closeIcon="close";static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,We,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.closeIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),xn=(()=>{class e{templateRef=h(it,{host:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]})}return e})(),Se=(()=>{class e{elementRef=h(P);routerLink=h(ae,{self:!0,optional:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]})}return e})(),we=(()=>{class e{disabled=!1;tab;active=!1;elementRef=h(P);el=this.elementRef.nativeElement;parentElement=this.el.parentElement;focus(){this.el.focus({preventScroll:!0})}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",y],tab:"tab",active:[2,"active","active",y]}})}return e})(),Rt=(()=>{class e{items=[];addable=!1;addIcon="plus";addClicked=new z;selected=new z;closeAnimationWaitTimeoutId;menuOpened=!1;cdr=h(ct);element=h(P).nativeElement;onSelect(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}onContextmenu(t,n){t.disabled||t.tab.nzContextmenu.emit(n)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(t){t||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-nav-operations-hidden",i.items.length===0)},inputs:{items:"items",addable:[2,"addable","addable",y],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nzType","ellipsis"],["nz-menu",""],["nz-tab-add-button","",3,"addIcon"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();g(0,"button",2,0),A("nzVisibleChange",function(p){return _(a),T(i.menuVisChange(p))})("mouseenter",function(){return _(a),T(i.showItems())}),V(2,"nz-icon",3),C(),g(3,"nz-dropdown-menu",null,1),N(5,$e,3,0,"ul",4),C(),N(6,Qe,1,1,"button",5)}if(n&2){let a=Z(4);u("nzDropdownMenu",a)("nzOverlayStyle",lt(5,Fe))("nzMatchWidthElement",null),f(5),k(i.menuOpened?5:-1),f(),k(i.addable?6:-1)}},dependencies:[pt,mt,tt,J,bt,_e,be,fe,ue,ze],encapsulation:2,changeDetection:0})}return e})(),In=.1,Ce=.01,ft=20,ve=.995**ft,Sn=(()=>{class e{ngZone=h(Y);destroyRef=h(et);el=h(P).nativeElement;lastWheelDirection=null;lastWheelTimestamp=0;lastTimestamp=0;lastTimeDiff=0;lastMixedWheel=0;lastWheelPrevent=!1;touchPosition=null;lastOffset=null;motion=-1;offsetChange=new z;tabScroll=new z;ngOnInit(){let t=U(this.el,"wheel"),n=U(this.el,"touchstart"),i=U(this.el,"touchmove"),a=U(this.el,"touchend");this.subscribeWrap("wheel",t,this.onWheel),this.subscribeWrap("touchstart",n,this.onTouchStart),this.subscribeWrap("touchmove",i,this.onTouchMove),this.subscribeWrap("touchend",a,this.onTouchEnd)}subscribeWrap(t,n,i){return n.pipe(L(this.destroyRef)).subscribe(a=>{this.tabScroll.emit({type:t,event:a}),a.defaultPrevented||i(a)})}onTouchEnd=t=>{if(!this.touchPosition)return;let n=this.lastOffset,i=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,n){let a=n.x/i,l=n.y/i,p=Math.abs(a),b=Math.abs(l);if(Math.max(p,b)<In)return;let w=a,E=l;this.motion=window.setInterval(()=>{if(Math.abs(w)<Ce&&Math.abs(E)<Ce){window.clearInterval(this.motion);return}w*=ve,E*=ve,this.onOffset(w*ft,E*ft,t)},ft)}};onTouchMove=t=>{if(!this.touchPosition)return;t.preventDefault();let{screenX:n,screenY:i}=t.touches[0],a=n-this.touchPosition.x,l=i-this.touchPosition.y;this.onOffset(a,l,t);let p=Date.now();this.lastTimeDiff=p-this.lastTimestamp,this.lastTimestamp=p,this.lastOffset={x:a,y:l},this.touchPosition={x:n,y:i}};onTouchStart=t=>{let{screenX:n,screenY:i}=t.touches[0];this.touchPosition={x:n,y:i},window.clearInterval(this.motion)};onWheel=t=>{let{deltaX:n,deltaY:i}=t,a,l=Math.abs(n),p=Math.abs(i);l===p?a=this.lastWheelDirection==="x"?n:i:l>p?(a=n,this.lastWheelDirection="x"):(a=i,this.lastWheelDirection="y");let b=Date.now(),w=Math.abs(a);(b-this.lastWheelTimestamp>100||w-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-a,-a,t),(t.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=b,this.lastMixedWheel=w};onOffset(t,n,i){this.offsetChange.observers.length&&this.ngZone.run(()=>{this.offsetChange.emit({x:t,y:n,event:i})})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}})}return e})(),ye=(()=>{class e{ngZone=h(Y);el=h(P).nativeElement;position="horizontal";animated=!0;animationMode=h(Yt,{optional:!0});get _animated(){return this.animationMode!=="NoopAnimations"&&this.animated}alignToElement(t){this.ngZone.runOutsideAngular(()=>{ut(()=>this.setStyles(t))})}setStyles(t){this.position==="horizontal"?(this.el.style.top="",this.el.style.height="",this.el.style.left=this.getLeftPosition(t),this.el.style.width=this.getElementWidth(t)):(this.el.style.left="",this.el.style.width="",this.el.style.top=this.getTopPosition(t),this.el.style.height=this.getElementHeight(t))}getLeftPosition(t){return t?`${t.offsetLeft||0}px`:"0"}getElementWidth(t){return t?`${t.offsetWidth||0}px`:"0"}getTopPosition(t){return t?`${t.offsetTop||0}px`:"0"}getElementHeight(t){return t?`${t.offsetHeight||0}px`:"0"}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-ink-bar-animated",i._animated)},inputs:{position:"position",animated:"animated"}})}return e})(),wn=typeof ut<"u"?Wt:Ot,xe=150,Bt=(()=>{class e{cdr=h(ct);ngZone=h(Y);viewportRuler=h(me);nzResizeObserver=h(Te);dir=h(At);destroyRef=h(et);indexFocused=new z;selectFocusedIndex=new z;addClicked=new z;tabScroll=new z;position="horizontal";addable=!1;hideBar=!1;addIcon="plus";inkBarAnimated=!0;extraTemplate;extraContents=Nt.required();startExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="start"));endExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="end"));get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=Dt(t);this._selectedIndex!==n&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}navWrapRef;navListRef;operationRef;addBtnRef;inkBar;items;get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(t){!this.isValidIndex(t)||this.focusIndex===t||!this.keyManager||this.keyManager.setActiveItem(t)}get showAddButton(){return this.hiddenItems.length===0&&this.addable}translate=null;transformX=0;transformY=0;pingLeft=!1;pingRight=!1;pingTop=!1;pingBottom=!1;hiddenItems=[];keyManager;_selectedIndex=0;wrapperWidth=0;wrapperHeight=0;scrollListWidth=0;scrollListHeight=0;operationWidth=0;operationHeight=0;addButtonWidth=0;addButtonHeight=0;selectedIndexChanged=!1;lockAnimationTimeoutId;cssTransformTimeWaitingId;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId)})}ngAfterViewInit(){let t=this.dir?this.dir.change.asObservable():gt(null),n=this.viewportRuler.change(150),i=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new he(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),ut(i),X(this.nzResizeObserver.observe(this.navWrapRef),this.nzResizeObserver.observe(this.navListRef)).pipe(L(this.destroyRef),Pt(16,wn)).subscribe(()=>{i()}),X(t,n,this.items.changes).pipe(L(this.destroyRef)).subscribe(()=>{Promise.resolve().then(i),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe(L(this.destroyRef)).subscribe(a=>{this.indexFocused.emit(a),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}onSelectedFromMenu(t){let n=this.items.toArray().findIndex(i=>i===t);n!==-1&&(this.keyManager.updateActiveItem(n),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}onOffsetChange(t){if(this.position==="horizontal"){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&t.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0))return;t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&t.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0))return;t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(t){let n=this.navWrapRef.nativeElement.contains(t.target);if(!(ce(t)||!n))switch(t.keyCode){case 37:case 38:case 39:case 40:this.lockAnimation(),this.keyManager.onKeydown(t);break;case 13:case 32:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}}isValidIndex(t){if(!this.items)return!0;let n=this.items?this.items.toArray()[t]:null;return!!n&&!n.disabled}scrollToTab(t){if(!this.items.find(i=>i===t))return;let n=this.items.toArray();if(this.position==="horizontal"){let i=this.transformX;if(this.getLayoutDirection()==="rtl"){let a=n[0].left+n[0].width-t.left-t.width;a<this.transformX?i=a:a+t.width>this.transformX+this.wrapperWidth&&(i=a+t.width-this.wrapperWidth)}else t.left<-this.transformX?i=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(i=-(t.left+t.width-this.wrapperWidth));this.transformX=i,this.transformY=0,this.setTransform(i,0)}else{let i=this.transformY;t.top<-this.transformY?i=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(i=-(t.top+t.height-this.wrapperHeight)),this.transformY=i,this.transformX=0,this.setTransform(0,i)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},xe)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},xe)})}setTransform(t,n){this.navListRef.nativeElement.style.transform=`translate(${t}px, ${n}px)`}clampTransformX(t){let n=this.wrapperWidth-this.scrollListWidth;return this.getLayoutDirection()==="rtl"?Math.max(Math.min(n,t),0):Math.min(Math.max(n,t),0)}clampTransformY(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWrapRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWrapRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){let t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n&&this.inkBar.alignToElement(n.parentElement)}setPingStatus(){let t={top:!1,right:!1,bottom:!1,left:!1},n=this.navWrapRef.nativeElement;this.position==="horizontal"?this.getLayoutDirection()==="rtl"?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach(i=>{let a=`ant-tabs-nav-wrap-ping-${i}`;t[i]?n.classList.add(a):n.classList.remove(a)})}setVisibleRange(){let t,n,i,a,l,p,b=this.items.toArray(),w={width:0,height:0,left:0,top:0,right:0},E=m=>{let D,zt=b[m]||w;return n==="right"?D=b[0].left+b[0].width-b[m].left-b[m].width:D=zt[n],D};this.position==="horizontal"?(t="width",a=this.wrapperWidth,l=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),p=this.addButtonWidth,i=Math.abs(this.transformX),this.getLayoutDirection()==="rtl"?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,n="left")):(t="height",a=this.wrapperHeight,l=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),p=this.addButtonHeight,n="top",i=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let $=a;if(l+p>a&&($=a-p),!b.length){this.hiddenItems=[],this.cdr.markForCheck();return}let v=b.length,Mt=v;for(let m=0;m<v;m+=1){let D=E(m),zt=b[m]||w;if(D+zt[t]>i+$){Mt=m-1;break}}let s=0;for(let m=v-1;m>=0;m-=1)if(E(m)<i){s=m+1;break}let o=b.slice(0,s),r=b.slice(Mt+1);this.hiddenItems=[...o,...r],this.cdr.markForCheck()}getLayoutDirection(){return this.dir&&this.dir.value==="rtl"?"rtl":"ltr"}ngOnChanges(t){let{position:n}=t;n&&!n.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tabs-nav"]],contentQueries:function(n,i,a){if(n&1&&H(a,we,5),n&2){let l;x(l=I())&&(i.items=l)}},viewQuery:function(n,i){if(n&1&&(F(Xe,7),F(Ye,7),F(Rt,7),F(bt,5),F(ye,7)),n&2){let a;x(a=I())&&(i.navWrapRef=a.first),x(a=I())&&(i.navListRef=a.first),x(a=I())&&(i.operationRef=a.first),x(a=I())&&(i.addBtnRef=a.first),x(a=I())&&(i.inkBar=a.first)}},hostAttrs:[1,"ant-tabs-nav"],hostBindings:function(n,i){n&1&&A("keydown",function(l){return i.handleKeydown(l)})},inputs:{position:"position",addable:[2,"addable","addable",y],hideBar:[2,"hideBar","hideBar",y],addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",extraTemplate:"extraTemplate",extraContents:[1,"extraContents"],selectedIndex:"selectedIndex"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],features:[vt],ngContentSelectors:qe,decls:11,vars:17,consts:[["navWrap",""],["navList",""],[1,"ant-tabs-extra-content"],[1,"ant-tabs-nav-wrap"],["nzTabScrollList","","role","tablist",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["role","tab","nz-tab-add-button","",3,"addIcon"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addClicked","selected","addIcon","addable","items"],[3,"ngTemplateOutlet"],["role","tab","nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();yt(),N(0,je,2,1,"div",2),g(1,"div",3,0)(3,"div",4,1),A("offsetChange",function(p){return _(a),T(i.onOffsetChange(p))})("tabScroll",function(p){return _(a),T(i.tabScroll.emit(p))}),rt(5),N(6,Ze,1,2,"button",5),V(7,"div",6),C()(),g(8,"nz-tab-nav-operation",7),A("addClicked",function(){return _(a),T(i.addClicked.emit())})("selected",function(p){return _(a),T(i.onSelectedFromMenu(p))}),C(),N(9,Ke,2,1,"div",2)(10,tn,2,1,"div",2)}n&2&&(k(i.startExtraContent()?0:-1),f(),M("ant-tabs-nav-wrap-ping-left",i.pingLeft)("ant-tabs-nav-wrap-ping-right",i.pingRight)("ant-tabs-nav-wrap-ping-top",i.pingTop)("ant-tabs-nav-wrap-ping-bottom",i.pingBottom),f(5),k(i.showAddButton?6:-1),f(),u("hidden",i.hideBar)("position",i.position)("animated",i.inkBarAnimated),f(),u("addIcon",i.addIcon)("addable",i.addable)("items",i.hiddenItems),f(),k(i.endExtraContent()?9:i.extraTemplate?10:-1))},dependencies:[Sn,bt,ye,Rt,ht],encapsulation:2,changeDetection:0})}return e})(),Nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nz-tab",""]],exportAs:["nzTab"]})}return e})(),Ne=new Xt(""),kn=(()=>{class e{nzTitle="";nzClosable=!1;nzCloseIcon="close";nzDisabled=!1;nzForceRender=!1;nzSelect=new z;nzDeselect=new z;nzClick=new z;nzContextmenu=new z;nzTabLinkTemplateDirective;template=null;linkDirective;contentTemplate;isActive=!1;hasBeenActive=!1;position=null;origin=null;closestTabSet=h(Ne);stateChanges=new Lt;get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}ngOnChanges(t){let{nzTitle:n,nzDisabled:i,nzForceRender:a}=t;(n||i||a)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}setActive(t){this.isActive=t,t&&(this.hasBeenActive=!0)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab"]],contentQueries:function(n,i,a){if(n&1&&(H(a,xn,5),H(a,Nn,5,it),H(a,Se,5)),n&2){let l;x(l=I())&&(i.nzTabLinkTemplateDirective=l.first),x(l=I())&&(i.template=l.first),x(l=I())&&(i.linkDirective=l.first)}},viewQuery:function(n,i){if(n&1&&F(en,7),n&2){let a;x(a=I())&&(i.contentTemplate=a.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",y],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",y],nzForceRender:[2,"nzForceRender","nzForceRender",y]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[vt],ngContentSelectors:an,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(n,i){n&1&&(yt(nn),Gt(0,on,1,0,"ng-template",null,0,dt)(2,sn,1,0,"ng-template",null,1,dt))},encapsulation:2,changeDetection:0})}return e})(),Dn="tabs",An=0,En=(()=>{var v;let e,d=[],t=[],n,i=[],a=[],l,p=[],b=[],w,E=[],$=[];return v=class{_nzModuleName=Dn;nzConfigService=h(re);ngZone=h(Y);cdr=h(ct);directionality=h(At);destroyRef=h(et);get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(s){this.indexToSelect=Dt(s,null)}nzTabPosition="top";nzTabBarExtraContent;nzCanDeactivate=null;nzAddIcon="plus";nzTabBarStyle=null;nzType=R(this,d,"line");nzSize=(R(this,t),R(this,i,"default"));nzAnimated=(R(this,a),R(this,p,!0));nzTabBarGutter=(R(this,b),R(this,E,void 0));nzHideAdd=(R(this,$),!1);nzCentered=!1;nzHideAll=!1;nzLinkRouter=!1;nzLinkExact=!0;nzDestroyInactiveTabPane=!1;nzSelectChange=new z(!0);nzSelectedIndexChange=new z;nzTabListScroll=new z;nzClose=new z;nzAdd=new z;get position(){return["top","bottom"].indexOf(this.nzTabPosition)===-1?"vertical":"horizontal"}get addable(){return this.nzType==="editable-card"&&!this.nzHideAdd}get closable(){return this.nzType==="editable-card"}get line(){return this.nzType==="line"}get inkBarAnimated(){return this.line&&(typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.tabPane}allTabs=new nt;tabLinks=new nt;tabNavBarRef;tabs=new nt;extraContents=ee(ge);dir="ltr";tabSetId;indexToSelect=0;selectedIndex=null;tabLabelSubscription=Tt.EMPTY;canDeactivateSubscription=Tt.EMPTY;router=h(ie,{optional:!0});constructor(){this.tabSetId=An++,h(te)==="nz-tabset"&&oe(`${kt} <nz-tabset> is deprecated, please use <nz-tabs> instead.`),this.destroyRef.onDestroy(()=>{this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()})}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(L(this.destroyRef)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()})}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabs.changes.pipe(L(this.destroyRef)).subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){let o=this.tabs.toArray();for(let r=0;r<o.length;r++)if(o[r].isActive){this.indexToSelect=this.selectedIndex=r;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()})}ngAfterContentChecked(){let s=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==s){let o=this.selectedIndex==null;o||this.nzSelectChange.emit(this.createChangeEvent(s)),Promise.resolve().then(()=>{this.tabs.forEach((r,m)=>r.setActive(m===s)),o||this.nzSelectedIndexChange.emit(s)})}this.tabs.forEach((o,r)=>{o.position=r-s,this.selectedIndex!=null&&o.position===0&&!o.origin&&(o.origin=s-this.selectedIndex)}),this.selectedIndex!==s&&(this.selectedIndex=s,this.cdr.markForCheck())}onClose(s,o){o.preventDefault(),o.stopPropagation(),this.nzClose.emit({index:s})}onAdd(){this.nzAdd.emit()}clampTabIndex(s){return Math.min(this.tabs.length-1,Math.max(s||0,0))}createChangeEvent(s){let o=new Et;return o.index=s,this.tabs&&this.tabs.length&&(o.tab=this.tabs.toArray()[s],this.tabs.forEach((r,m)=>{m!==s&&r.nzDeselect.emit()}),o.tab.nzSelect.emit()),o}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=X(...this.tabs.map(s=>s.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(Ct(this.allTabs)).subscribe(s=>{this.tabs.reset(s.filter(o=>o.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(s,o){return typeof this.nzCanDeactivate=="function"?se(this.nzCanDeactivate(s,o)).pipe(Vt(),L(this.destroyRef)):gt(!0)}clickNavItem(s,o,r){s.nzDisabled||(s.nzClick.emit(),this.isRouterLinkClickEvent(o,r)||this.setSelectedIndex(o))}isRouterLinkClickEvent(s,o){let r=o.target;return this.nzLinkRouter?!!this.tabs.toArray()[s]?.linkDirective?.elementRef.nativeElement.contains(r):!1}contextmenuNavItem(s,o){s.nzDisabled||s.nzContextmenu.emit(o)}setSelectedIndex(s){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,s).subscribe(o=>{o&&(this.nzSelectedIndex=s,this.tabNavBarRef.focusIndex=s,this.cdr.markForCheck())})}getTabIndex(s,o){return s.nzDisabled?null:this.selectedIndex===o?0:-1}getTabContentId(s){return`nz-tabs-${this.tabSetId}-tab-${s}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${kt} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);X(this.router.events.pipe(Ft(s=>s instanceof ne)),this.tabLinks.changes).pipe(Ct(!0),Ht(0),L(this.destroyRef)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router?.navigated){let s=this.findShouldActiveTabIndex();s!==this.selectedIndex&&this.setSelectedIndex(s),Promise.resolve().then(()=>this.nzHideAll=s===-1)}}findShouldActiveTabIndex(){let s=this.tabs.toArray(),o=this.isLinkActive(this.router);return s.findIndex(r=>{let m=r.linkDirective;return m?o(m.routerLink):!1})}isLinkActive(s){return o=>o?!!s?.isActive(o.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"}):!1}},(()=>{let s=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[K()],n=[K()],l=[K()],w=[K()],Q(null,null,e,{kind:"field",name:"nzType",static:!1,private:!1,access:{has:o=>"nzType"in o,get:o=>o.nzType,set:(o,r)=>{o.nzType=r}},metadata:s},d,t),Q(null,null,n,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:o=>"nzSize"in o,get:o=>o.nzSize,set:(o,r)=>{o.nzSize=r}},metadata:s},i,a),Q(null,null,l,{kind:"field",name:"nzAnimated",static:!1,private:!1,access:{has:o=>"nzAnimated"in o,get:o=>o.nzAnimated,set:(o,r)=>{o.nzAnimated=r}},metadata:s},p,b),Q(null,null,w,{kind:"field",name:"nzTabBarGutter",static:!1,private:!1,access:{has:o=>"nzTabBarGutter"in o,get:o=>o.nzTabBarGutter,set:(o,r)=>{o.nzTabBarGutter=r}},metadata:s},E,$),s&&Object.defineProperty(v,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),_t(v,"\u0275fac",function(o){return new(o||v)}),_t(v,"\u0275cmp",O({type:v,selectors:[["nz-tabs"],["nz-tabset"]],contentQueries:function(o,r,m){if(o&1&&(Zt(m,r.extraContents,ge,4),H(m,kn,5),H(m,Se,5)),o&2){Ut();let D;x(D=I())&&(r.allTabs=D),x(D=I())&&(r.tabLinks=D)}},viewQuery:function(o,r){if(o&1&&F(Bt,5),o&2){let m;x(m=I())&&(r.tabNavBarRef=m.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(o,r){o&2&&M("ant-tabs-card",r.nzType==="card"||r.nzType==="editable-card")("ant-tabs-editable",r.nzType==="editable-card")("ant-tabs-editable-card",r.nzType==="editable-card")("ant-tabs-centered",r.nzCentered)("ant-tabs-rtl",r.dir==="rtl")("ant-tabs-top",r.nzTabPosition==="top")("ant-tabs-bottom",r.nzTabPosition==="bottom")("ant-tabs-left",r.nzTabPosition==="left")("ant-tabs-right",r.nzTabPosition==="right")("ant-tabs-default",r.nzSize==="default")("ant-tabs-small",r.nzSize==="small")("ant-tabs-large",r.nzSize==="large")},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",y],nzCentered:[2,"nzCentered","nzCentered",y],nzHideAll:[2,"nzHideAll","nzHideAll",y],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",y],nzLinkExact:[2,"nzLinkExact","nzLinkExact",y],nzDestroyInactiveTabPane:[2,"nzDestroyInactiveTabPane","nzDestroyInactiveTabPane",y]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabs"],features:[Jt([{provide:Ne,useExisting:$t(()=>v)}])],decls:4,vars:12,consts:[["tabpaneTmpl",""],[3,"style","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],[3,"tabScroll","selectFocusedIndex","addClicked","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled"],[1,"ant-tabs-tab",3,"click","contextmenu"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],[3,"ngTemplateOutlet"],["role","tabpanel","nz-tab-body","",3,"id","active","content","animated"]],template:function(o,r){o&1&&(N(0,hn,3,10,"nz-tabs-nav",1),g(1,"div",2)(2,"div",3),N(3,vn,2,0),C()()),o&2&&(k(r.tabs.length||r.addable?0:-1),f(2),M("ant-tabs-content-top",r.nzTabPosition==="top")("ant-tabs-content-bottom",r.nzTabPosition==="bottom")("ant-tabs-content-left",r.nzTabPosition==="left")("ant-tabs-content-right",r.nzTabPosition==="right")("ant-tabs-content-animated",r.tabPaneAnimated),f(),k(r.nzHideAll?-1:3))},dependencies:[Bt,ht,we,de,le,tt,J,Ie,yn],encapsulation:2})),v})();var bi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=qt({type:e});static \u0275inj=Qt({imports:[En,Bt,Rt,bt,Ie]})}return e})();export{Nn as a,kn as b,En as c,bi as d};
1
+ import{c as Te}from"./chunk-W633D3VG.js";import{j as ue,l as fe,o as be,p as ze,r as _e}from"./chunk-2P5WKSWB.js";import{F as re,H as K,M as mt,N as pt,Na as pe,O as J,P as tt,Ya as ut,a as kt,b as oe,ba as le,c as Dt,ga as de,ha as ce,ia as he,la as me,u as se,w as U,x as At,z as L}from"./chunk-5EQOKH7G.js";import{A as ae,e as ht,w as ne,z as ie}from"./chunk-X3HFJACM.js";import{$b as st,Ac as Zt,Ca as et,Cc as Ut,Dc as Z,Eb as O,Ec as xt,Fb as qt,Fc as M,Gb as W,Gc as Kt,Ic as It,Kb as S,Kc as St,L as X,Lb as Gt,M as Ft,N as Pt,Oa as vt,Ra as P,Sa as nt,T as Ht,Tb as q,Uc as Jt,Vb as N,Vc as lt,W as Vt,Xa as Yt,Xb as k,Zb as at,_b as ot,ac as u,ad as dt,bc as g,ca as Ct,cc as C,dc as V,f as _t,fd as wt,g as Tt,hc as G,ic as j,jd as te,kc as B,l as Lt,la as $t,ld as Nt,mb as f,mc as jt,na as Qt,o as Ot,od as ee,p as Wt,pa as Xt,qc as A,r as Q,ra as h,rb as z,rd as ct,s as R,sb as Y,tc as c,u as gt,uc as yt,vb as it,vc as rt,vd as y,wc as H,xa as _,xc as F,ya as T,yc as x,zc as I}from"./chunk-SJG2JCPL.js";function Me(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Le=["nz-tab-body",""];function Oe(e,d){}function We(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Fe=()=>({minWidth:"46px"}),Pe=()=>({visible:!1});function He(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.tab.label," ")}}function Ve(e,d){if(e&1){let t=B();g(0,"li",7),A("click",function(){let i=_(t).$implicit,a=c(2);return T(a.onSelect(i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.onContextmenu(a,i))}),S(1,He,2,1,"ng-container",8),C()}if(e&2){let t=d.$implicit;M("ant-tabs-dropdown-menu-item-disabled",t.disabled),u("nzSelected",t.active)("nzDisabled",t.disabled),f(),u("nzStringTemplateOutlet",t.tab.label)("nzStringTemplateOutletContext",lt(6,Pe))}}function $e(e,d){if(e&1&&(g(0,"ul",4),ot(1,Ve,2,7,"li",6,at),C()),e&2){let t=c();f(),st(t.items)}}function Qe(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon)}}var Xe=["navWrap"],Ye=["navList"],qe=["*"];function Ge(e,d){}function je(e,d){if(e&1&&(g(0,"div",2),S(1,Ge,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.startExtraContent().templateRef)}}function Ze(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon),q("tabindex",-1)}}function Ue(e,d){}function Ke(e,d){if(e&1&&(g(0,"div",2),S(1,Ue,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.endExtraContent().templateRef)}}function Je(e,d){}function tn(e,d){if(e&1&&(g(0,"div",2),S(1,Je,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.extraTemplate)}}var en=["contentTemplate"],nn=[[["","nz-tab-link",""]],"*"],an=["[nz-tab-link]","*"];function on(e,d){e&1&&rt(0)}function sn(e,d){e&1&&rt(0,1)}var rn=()=>({visible:!0});function ln(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.label," ")}}function dn(e,d){if(e&1){let t=B();g(0,"button",10),A("click",function(i){_(t);let a=c().$index,l=c(2);return T(l.onClose(a,i))}),C()}if(e&2){let t=c().$implicit;u("closeIcon",t.nzCloseIcon)}}function cn(e,d){if(e&1){let t=B();g(0,"div",6),A("click",function(i){let a=_(t),l=a.$implicit,p=a.$index,b=c(2);return T(b.clickNavItem(l,p,i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.contextmenuNavItem(a,i))}),g(1,"button",7),S(2,ln,2,1,"ng-container",8),N(3,dn,1,1,"button",9),C()()}if(e&2){let t=d.$implicit,n=d.$index,i=c(2);xt("margin-right",i.position==="horizontal"?i.nzTabBarGutter:null,"px")("margin-bottom",i.position==="vertical"?i.nzTabBarGutter:null,"px"),M("ant-tabs-tab-active",i.nzSelectedIndex===n)("ant-tabs-tab-disabled",t.nzDisabled),f(),u("id",i.getTabContentId(n))("disabled",t.nzDisabled)("tab",t)("active",i.nzSelectedIndex===n),q("tabIndex",i.getTabIndex(t,n))("aria-disabled",t.nzDisabled)("aria-selected",i.nzSelectedIndex===n&&!i.nzHideAll)("aria-controls",i.getTabContentId(n)),f(),u("nzStringTemplateOutlet",t.label)("nzStringTemplateOutletContext",lt(19,rn)),f(),k(t.nzClosable&&i.closable&&!t.nzDisabled?3:-1)}}function hn(e,d){if(e&1){let t=B();g(0,"nz-tabs-nav",4),A("tabScroll",function(i){_(t);let a=c();return T(a.nzTabListScroll.emit(i))})("selectFocusedIndex",function(i){_(t);let a=c();return T(a.setSelectedIndex(i))})("addClicked",function(){_(t);let i=c();return T(i.onAdd())}),ot(1,cn,4,20,"div",5,at),C()}if(e&2){let t=c();Kt(t.nzTabBarStyle),u("selectedIndex",t.nzSelectedIndex||0)("inkBarAnimated",t.inkBarAnimated)("addable",t.addable)("addIcon",t.nzAddIcon)("hideBar",t.nzHideAll)("position",t.position)("extraTemplate",t.nzTabBarExtraContent)("extraContents",t.extraContents()),f(),st(t.tabs)}}function mn(e,d){}function pn(e,d){if(e&1&&S(0,mn,0,0,"ng-template",11),e&2){c();let t=Z(4);u("ngTemplateOutlet",t)}}function un(e,d){}function fn(e,d){if(e&1&&S(0,un,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function bn(e,d){if(e&1&&N(0,fn,1,1,null,11),e&2){let t=c().$index,n=c(2);k(n.nzSelectedIndex===t?0:-1)}}function zn(e,d){}function _n(e,d){if(e&1&&S(0,zn,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function Tn(e,d){if(e&1&&N(0,_n,1,1,null,11),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);k(a.nzSelectedIndex===i||n.hasBeenActive?0:-1)}}function gn(e,d){if(e&1&&V(0,"div",12),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);u("id",a.getTabContentId(i))("active",a.nzSelectedIndex===i)("content",n.content)("animated",a.tabPaneAnimated),q("aria-labelledby",a.getTabContentId(i))}}function Cn(e,d){if(e&1&&(N(0,pn,1,1,null,11)(1,bn,1,1)(2,Tn,1,1),S(3,gn,1,5,"ng-template",null,0,dt)),e&2){let t=d.$implicit,n=c(2);k(t.nzForceRender?0:n.nzDestroyInactiveTabPane?1:2)}}function vn(e,d){if(e&1&&ot(0,Cn,5,1,null,null,at),e&2){let t=c();st(t.tabs)}}var Et=class{index;tab},bt=(()=>{class e{addIcon="plus";element=h(P).nativeElement;getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,Me,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.addIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),ge=(()=>{class e{position=Nt("end",{alias:"nzTabBarExtraContent"});templateRef=h(it);static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabBarExtraContent","",5,"nz-tabset",5,"nz-tabs"]],inputs:{position:[1,"nzTabBarExtraContent","position"]}})}return e})(),yn=(()=>{class e{content=null;active=!1;animated=!0;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(n,i){n&2&&(jt("@tabSwitchMotion",i.active?"enter":"leave")("@.disabled",!i.animated),q("tabindex",i.active?0:-1)("aria-hidden",!i.active),xt("overflow-y",i.animated?i.active?null:"none":null),M("ant-tabs-tabpane-active",i.active)("ant-tabs-tabpane-hidden",i.animated?null:!i.active))},inputs:{content:"content",active:"active",animated:"animated"},exportAs:["nzTabBody"],attrs:Le,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&S(0,Oe,0,0,"ng-template",0),n&2&&u("ngTemplateOutlet",i.content)},dependencies:[ht],encapsulation:2,data:{animation:[pe]},changeDetection:0})}return e})(),Ie=(()=>{class e{closeIcon="close";static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,We,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.closeIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),xn=(()=>{class e{templateRef=h(it,{host:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]})}return e})(),Se=(()=>{class e{elementRef=h(P);routerLink=h(ae,{self:!0,optional:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]})}return e})(),we=(()=>{class e{disabled=!1;tab;active=!1;elementRef=h(P);el=this.elementRef.nativeElement;parentElement=this.el.parentElement;focus(){this.el.focus({preventScroll:!0})}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",y],tab:"tab",active:[2,"active","active",y]}})}return e})(),Rt=(()=>{class e{items=[];addable=!1;addIcon="plus";addClicked=new z;selected=new z;closeAnimationWaitTimeoutId;menuOpened=!1;cdr=h(ct);element=h(P).nativeElement;onSelect(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}onContextmenu(t,n){t.disabled||t.tab.nzContextmenu.emit(n)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(t){t||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-nav-operations-hidden",i.items.length===0)},inputs:{items:"items",addable:[2,"addable","addable",y],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nzType","ellipsis"],["nz-menu",""],["nz-tab-add-button","",3,"addIcon"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();g(0,"button",2,0),A("nzVisibleChange",function(p){return _(a),T(i.menuVisChange(p))})("mouseenter",function(){return _(a),T(i.showItems())}),V(2,"nz-icon",3),C(),g(3,"nz-dropdown-menu",null,1),N(5,$e,3,0,"ul",4),C(),N(6,Qe,1,1,"button",5)}if(n&2){let a=Z(4);u("nzDropdownMenu",a)("nzOverlayStyle",lt(5,Fe))("nzMatchWidthElement",null),f(5),k(i.menuOpened?5:-1),f(),k(i.addable?6:-1)}},dependencies:[pt,mt,tt,J,bt,_e,be,fe,ue,ze],encapsulation:2,changeDetection:0})}return e})(),In=.1,Ce=.01,ft=20,ve=.995**ft,Sn=(()=>{class e{ngZone=h(Y);destroyRef=h(et);el=h(P).nativeElement;lastWheelDirection=null;lastWheelTimestamp=0;lastTimestamp=0;lastTimeDiff=0;lastMixedWheel=0;lastWheelPrevent=!1;touchPosition=null;lastOffset=null;motion=-1;offsetChange=new z;tabScroll=new z;ngOnInit(){let t=U(this.el,"wheel"),n=U(this.el,"touchstart"),i=U(this.el,"touchmove"),a=U(this.el,"touchend");this.subscribeWrap("wheel",t,this.onWheel),this.subscribeWrap("touchstart",n,this.onTouchStart),this.subscribeWrap("touchmove",i,this.onTouchMove),this.subscribeWrap("touchend",a,this.onTouchEnd)}subscribeWrap(t,n,i){return n.pipe(L(this.destroyRef)).subscribe(a=>{this.tabScroll.emit({type:t,event:a}),a.defaultPrevented||i(a)})}onTouchEnd=t=>{if(!this.touchPosition)return;let n=this.lastOffset,i=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,n){let a=n.x/i,l=n.y/i,p=Math.abs(a),b=Math.abs(l);if(Math.max(p,b)<In)return;let w=a,E=l;this.motion=window.setInterval(()=>{if(Math.abs(w)<Ce&&Math.abs(E)<Ce){window.clearInterval(this.motion);return}w*=ve,E*=ve,this.onOffset(w*ft,E*ft,t)},ft)}};onTouchMove=t=>{if(!this.touchPosition)return;t.preventDefault();let{screenX:n,screenY:i}=t.touches[0],a=n-this.touchPosition.x,l=i-this.touchPosition.y;this.onOffset(a,l,t);let p=Date.now();this.lastTimeDiff=p-this.lastTimestamp,this.lastTimestamp=p,this.lastOffset={x:a,y:l},this.touchPosition={x:n,y:i}};onTouchStart=t=>{let{screenX:n,screenY:i}=t.touches[0];this.touchPosition={x:n,y:i},window.clearInterval(this.motion)};onWheel=t=>{let{deltaX:n,deltaY:i}=t,a,l=Math.abs(n),p=Math.abs(i);l===p?a=this.lastWheelDirection==="x"?n:i:l>p?(a=n,this.lastWheelDirection="x"):(a=i,this.lastWheelDirection="y");let b=Date.now(),w=Math.abs(a);(b-this.lastWheelTimestamp>100||w-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-a,-a,t),(t.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=b,this.lastMixedWheel=w};onOffset(t,n,i){this.offsetChange.observers.length&&this.ngZone.run(()=>{this.offsetChange.emit({x:t,y:n,event:i})})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}})}return e})(),ye=(()=>{class e{ngZone=h(Y);el=h(P).nativeElement;position="horizontal";animated=!0;animationMode=h(Yt,{optional:!0});get _animated(){return this.animationMode!=="NoopAnimations"&&this.animated}alignToElement(t){this.ngZone.runOutsideAngular(()=>{ut(()=>this.setStyles(t))})}setStyles(t){this.position==="horizontal"?(this.el.style.top="",this.el.style.height="",this.el.style.left=this.getLeftPosition(t),this.el.style.width=this.getElementWidth(t)):(this.el.style.left="",this.el.style.width="",this.el.style.top=this.getTopPosition(t),this.el.style.height=this.getElementHeight(t))}getLeftPosition(t){return t?`${t.offsetLeft||0}px`:"0"}getElementWidth(t){return t?`${t.offsetWidth||0}px`:"0"}getTopPosition(t){return t?`${t.offsetTop||0}px`:"0"}getElementHeight(t){return t?`${t.offsetHeight||0}px`:"0"}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-ink-bar-animated",i._animated)},inputs:{position:"position",animated:"animated"}})}return e})(),wn=typeof ut<"u"?Wt:Ot,xe=150,Bt=(()=>{class e{cdr=h(ct);ngZone=h(Y);viewportRuler=h(me);nzResizeObserver=h(Te);dir=h(At);destroyRef=h(et);indexFocused=new z;selectFocusedIndex=new z;addClicked=new z;tabScroll=new z;position="horizontal";addable=!1;hideBar=!1;addIcon="plus";inkBarAnimated=!0;extraTemplate;extraContents=Nt.required();startExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="start"));endExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="end"));get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=Dt(t);this._selectedIndex!==n&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}navWrapRef;navListRef;operationRef;addBtnRef;inkBar;items;get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(t){!this.isValidIndex(t)||this.focusIndex===t||!this.keyManager||this.keyManager.setActiveItem(t)}get showAddButton(){return this.hiddenItems.length===0&&this.addable}translate=null;transformX=0;transformY=0;pingLeft=!1;pingRight=!1;pingTop=!1;pingBottom=!1;hiddenItems=[];keyManager;_selectedIndex=0;wrapperWidth=0;wrapperHeight=0;scrollListWidth=0;scrollListHeight=0;operationWidth=0;operationHeight=0;addButtonWidth=0;addButtonHeight=0;selectedIndexChanged=!1;lockAnimationTimeoutId;cssTransformTimeWaitingId;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId)})}ngAfterViewInit(){let t=this.dir?this.dir.change.asObservable():gt(null),n=this.viewportRuler.change(150),i=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new he(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),ut(i),X(this.nzResizeObserver.observe(this.navWrapRef),this.nzResizeObserver.observe(this.navListRef)).pipe(L(this.destroyRef),Pt(16,wn)).subscribe(()=>{i()}),X(t,n,this.items.changes).pipe(L(this.destroyRef)).subscribe(()=>{Promise.resolve().then(i),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe(L(this.destroyRef)).subscribe(a=>{this.indexFocused.emit(a),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}onSelectedFromMenu(t){let n=this.items.toArray().findIndex(i=>i===t);n!==-1&&(this.keyManager.updateActiveItem(n),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}onOffsetChange(t){if(this.position==="horizontal"){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&t.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0))return;t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&t.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0))return;t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(t){let n=this.navWrapRef.nativeElement.contains(t.target);if(!(ce(t)||!n))switch(t.keyCode){case 37:case 38:case 39:case 40:this.lockAnimation(),this.keyManager.onKeydown(t);break;case 13:case 32:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}}isValidIndex(t){if(!this.items)return!0;let n=this.items?this.items.toArray()[t]:null;return!!n&&!n.disabled}scrollToTab(t){if(!this.items.find(i=>i===t))return;let n=this.items.toArray();if(this.position==="horizontal"){let i=this.transformX;if(this.getLayoutDirection()==="rtl"){let a=n[0].left+n[0].width-t.left-t.width;a<this.transformX?i=a:a+t.width>this.transformX+this.wrapperWidth&&(i=a+t.width-this.wrapperWidth)}else t.left<-this.transformX?i=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(i=-(t.left+t.width-this.wrapperWidth));this.transformX=i,this.transformY=0,this.setTransform(i,0)}else{let i=this.transformY;t.top<-this.transformY?i=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(i=-(t.top+t.height-this.wrapperHeight)),this.transformY=i,this.transformX=0,this.setTransform(0,i)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},xe)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},xe)})}setTransform(t,n){this.navListRef.nativeElement.style.transform=`translate(${t}px, ${n}px)`}clampTransformX(t){let n=this.wrapperWidth-this.scrollListWidth;return this.getLayoutDirection()==="rtl"?Math.max(Math.min(n,t),0):Math.min(Math.max(n,t),0)}clampTransformY(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWrapRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWrapRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){let t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n&&this.inkBar.alignToElement(n.parentElement)}setPingStatus(){let t={top:!1,right:!1,bottom:!1,left:!1},n=this.navWrapRef.nativeElement;this.position==="horizontal"?this.getLayoutDirection()==="rtl"?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach(i=>{let a=`ant-tabs-nav-wrap-ping-${i}`;t[i]?n.classList.add(a):n.classList.remove(a)})}setVisibleRange(){let t,n,i,a,l,p,b=this.items.toArray(),w={width:0,height:0,left:0,top:0,right:0},E=m=>{let D,zt=b[m]||w;return n==="right"?D=b[0].left+b[0].width-b[m].left-b[m].width:D=zt[n],D};this.position==="horizontal"?(t="width",a=this.wrapperWidth,l=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),p=this.addButtonWidth,i=Math.abs(this.transformX),this.getLayoutDirection()==="rtl"?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,n="left")):(t="height",a=this.wrapperHeight,l=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),p=this.addButtonHeight,n="top",i=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let $=a;if(l+p>a&&($=a-p),!b.length){this.hiddenItems=[],this.cdr.markForCheck();return}let v=b.length,Mt=v;for(let m=0;m<v;m+=1){let D=E(m),zt=b[m]||w;if(D+zt[t]>i+$){Mt=m-1;break}}let s=0;for(let m=v-1;m>=0;m-=1)if(E(m)<i){s=m+1;break}let o=b.slice(0,s),r=b.slice(Mt+1);this.hiddenItems=[...o,...r],this.cdr.markForCheck()}getLayoutDirection(){return this.dir&&this.dir.value==="rtl"?"rtl":"ltr"}ngOnChanges(t){let{position:n}=t;n&&!n.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tabs-nav"]],contentQueries:function(n,i,a){if(n&1&&H(a,we,5),n&2){let l;x(l=I())&&(i.items=l)}},viewQuery:function(n,i){if(n&1&&(F(Xe,7),F(Ye,7),F(Rt,7),F(bt,5),F(ye,7)),n&2){let a;x(a=I())&&(i.navWrapRef=a.first),x(a=I())&&(i.navListRef=a.first),x(a=I())&&(i.operationRef=a.first),x(a=I())&&(i.addBtnRef=a.first),x(a=I())&&(i.inkBar=a.first)}},hostAttrs:[1,"ant-tabs-nav"],hostBindings:function(n,i){n&1&&A("keydown",function(l){return i.handleKeydown(l)})},inputs:{position:"position",addable:[2,"addable","addable",y],hideBar:[2,"hideBar","hideBar",y],addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",extraTemplate:"extraTemplate",extraContents:[1,"extraContents"],selectedIndex:"selectedIndex"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],features:[vt],ngContentSelectors:qe,decls:11,vars:17,consts:[["navWrap",""],["navList",""],[1,"ant-tabs-extra-content"],[1,"ant-tabs-nav-wrap"],["nzTabScrollList","","role","tablist",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["role","tab","nz-tab-add-button","",3,"addIcon"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addClicked","selected","addIcon","addable","items"],[3,"ngTemplateOutlet"],["role","tab","nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();yt(),N(0,je,2,1,"div",2),g(1,"div",3,0)(3,"div",4,1),A("offsetChange",function(p){return _(a),T(i.onOffsetChange(p))})("tabScroll",function(p){return _(a),T(i.tabScroll.emit(p))}),rt(5),N(6,Ze,1,2,"button",5),V(7,"div",6),C()(),g(8,"nz-tab-nav-operation",7),A("addClicked",function(){return _(a),T(i.addClicked.emit())})("selected",function(p){return _(a),T(i.onSelectedFromMenu(p))}),C(),N(9,Ke,2,1,"div",2)(10,tn,2,1,"div",2)}n&2&&(k(i.startExtraContent()?0:-1),f(),M("ant-tabs-nav-wrap-ping-left",i.pingLeft)("ant-tabs-nav-wrap-ping-right",i.pingRight)("ant-tabs-nav-wrap-ping-top",i.pingTop)("ant-tabs-nav-wrap-ping-bottom",i.pingBottom),f(5),k(i.showAddButton?6:-1),f(),u("hidden",i.hideBar)("position",i.position)("animated",i.inkBarAnimated),f(),u("addIcon",i.addIcon)("addable",i.addable)("items",i.hiddenItems),f(),k(i.endExtraContent()?9:i.extraTemplate?10:-1))},dependencies:[Sn,bt,ye,Rt,ht],encapsulation:2,changeDetection:0})}return e})(),Nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nz-tab",""]],exportAs:["nzTab"]})}return e})(),Ne=new Xt(""),kn=(()=>{class e{nzTitle="";nzClosable=!1;nzCloseIcon="close";nzDisabled=!1;nzForceRender=!1;nzSelect=new z;nzDeselect=new z;nzClick=new z;nzContextmenu=new z;nzTabLinkTemplateDirective;template=null;linkDirective;contentTemplate;isActive=!1;hasBeenActive=!1;position=null;origin=null;closestTabSet=h(Ne);stateChanges=new Lt;get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}ngOnChanges(t){let{nzTitle:n,nzDisabled:i,nzForceRender:a}=t;(n||i||a)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}setActive(t){this.isActive=t,t&&(this.hasBeenActive=!0)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab"]],contentQueries:function(n,i,a){if(n&1&&(H(a,xn,5),H(a,Nn,5,it),H(a,Se,5)),n&2){let l;x(l=I())&&(i.nzTabLinkTemplateDirective=l.first),x(l=I())&&(i.template=l.first),x(l=I())&&(i.linkDirective=l.first)}},viewQuery:function(n,i){if(n&1&&F(en,7),n&2){let a;x(a=I())&&(i.contentTemplate=a.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",y],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",y],nzForceRender:[2,"nzForceRender","nzForceRender",y]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[vt],ngContentSelectors:an,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(n,i){n&1&&(yt(nn),Gt(0,on,1,0,"ng-template",null,0,dt)(2,sn,1,0,"ng-template",null,1,dt))},encapsulation:2,changeDetection:0})}return e})(),Dn="tabs",An=0,En=(()=>{var v;let e,d=[],t=[],n,i=[],a=[],l,p=[],b=[],w,E=[],$=[];return v=class{_nzModuleName=Dn;nzConfigService=h(re);ngZone=h(Y);cdr=h(ct);directionality=h(At);destroyRef=h(et);get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(s){this.indexToSelect=Dt(s,null)}nzTabPosition="top";nzTabBarExtraContent;nzCanDeactivate=null;nzAddIcon="plus";nzTabBarStyle=null;nzType=R(this,d,"line");nzSize=(R(this,t),R(this,i,"default"));nzAnimated=(R(this,a),R(this,p,!0));nzTabBarGutter=(R(this,b),R(this,E,void 0));nzHideAdd=(R(this,$),!1);nzCentered=!1;nzHideAll=!1;nzLinkRouter=!1;nzLinkExact=!0;nzDestroyInactiveTabPane=!1;nzSelectChange=new z(!0);nzSelectedIndexChange=new z;nzTabListScroll=new z;nzClose=new z;nzAdd=new z;get position(){return["top","bottom"].indexOf(this.nzTabPosition)===-1?"vertical":"horizontal"}get addable(){return this.nzType==="editable-card"&&!this.nzHideAdd}get closable(){return this.nzType==="editable-card"}get line(){return this.nzType==="line"}get inkBarAnimated(){return this.line&&(typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.tabPane}allTabs=new nt;tabLinks=new nt;tabNavBarRef;tabs=new nt;extraContents=ee(ge);dir="ltr";tabSetId;indexToSelect=0;selectedIndex=null;tabLabelSubscription=Tt.EMPTY;canDeactivateSubscription=Tt.EMPTY;router=h(ie,{optional:!0});constructor(){this.tabSetId=An++,h(te)==="nz-tabset"&&oe(`${kt} <nz-tabset> is deprecated, please use <nz-tabs> instead.`),this.destroyRef.onDestroy(()=>{this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()})}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(L(this.destroyRef)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()})}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabs.changes.pipe(L(this.destroyRef)).subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){let o=this.tabs.toArray();for(let r=0;r<o.length;r++)if(o[r].isActive){this.indexToSelect=this.selectedIndex=r;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()})}ngAfterContentChecked(){let s=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==s){let o=this.selectedIndex==null;o||this.nzSelectChange.emit(this.createChangeEvent(s)),Promise.resolve().then(()=>{this.tabs.forEach((r,m)=>r.setActive(m===s)),o||this.nzSelectedIndexChange.emit(s)})}this.tabs.forEach((o,r)=>{o.position=r-s,this.selectedIndex!=null&&o.position===0&&!o.origin&&(o.origin=s-this.selectedIndex)}),this.selectedIndex!==s&&(this.selectedIndex=s,this.cdr.markForCheck())}onClose(s,o){o.preventDefault(),o.stopPropagation(),this.nzClose.emit({index:s})}onAdd(){this.nzAdd.emit()}clampTabIndex(s){return Math.min(this.tabs.length-1,Math.max(s||0,0))}createChangeEvent(s){let o=new Et;return o.index=s,this.tabs&&this.tabs.length&&(o.tab=this.tabs.toArray()[s],this.tabs.forEach((r,m)=>{m!==s&&r.nzDeselect.emit()}),o.tab.nzSelect.emit()),o}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=X(...this.tabs.map(s=>s.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(Ct(this.allTabs)).subscribe(s=>{this.tabs.reset(s.filter(o=>o.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(s,o){return typeof this.nzCanDeactivate=="function"?se(this.nzCanDeactivate(s,o)).pipe(Vt(),L(this.destroyRef)):gt(!0)}clickNavItem(s,o,r){s.nzDisabled||(s.nzClick.emit(),this.isRouterLinkClickEvent(o,r)||this.setSelectedIndex(o))}isRouterLinkClickEvent(s,o){let r=o.target;return this.nzLinkRouter?!!this.tabs.toArray()[s]?.linkDirective?.elementRef.nativeElement.contains(r):!1}contextmenuNavItem(s,o){s.nzDisabled||s.nzContextmenu.emit(o)}setSelectedIndex(s){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,s).subscribe(o=>{o&&(this.nzSelectedIndex=s,this.tabNavBarRef.focusIndex=s,this.cdr.markForCheck())})}getTabIndex(s,o){return s.nzDisabled?null:this.selectedIndex===o?0:-1}getTabContentId(s){return`nz-tabs-${this.tabSetId}-tab-${s}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${kt} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);X(this.router.events.pipe(Ft(s=>s instanceof ne)),this.tabLinks.changes).pipe(Ct(!0),Ht(0),L(this.destroyRef)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router?.navigated){let s=this.findShouldActiveTabIndex();s!==this.selectedIndex&&this.setSelectedIndex(s),Promise.resolve().then(()=>this.nzHideAll=s===-1)}}findShouldActiveTabIndex(){let s=this.tabs.toArray(),o=this.isLinkActive(this.router);return s.findIndex(r=>{let m=r.linkDirective;return m?o(m.routerLink):!1})}isLinkActive(s){return o=>o?!!s?.isActive(o.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"}):!1}},(()=>{let s=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[K()],n=[K()],l=[K()],w=[K()],Q(null,null,e,{kind:"field",name:"nzType",static:!1,private:!1,access:{has:o=>"nzType"in o,get:o=>o.nzType,set:(o,r)=>{o.nzType=r}},metadata:s},d,t),Q(null,null,n,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:o=>"nzSize"in o,get:o=>o.nzSize,set:(o,r)=>{o.nzSize=r}},metadata:s},i,a),Q(null,null,l,{kind:"field",name:"nzAnimated",static:!1,private:!1,access:{has:o=>"nzAnimated"in o,get:o=>o.nzAnimated,set:(o,r)=>{o.nzAnimated=r}},metadata:s},p,b),Q(null,null,w,{kind:"field",name:"nzTabBarGutter",static:!1,private:!1,access:{has:o=>"nzTabBarGutter"in o,get:o=>o.nzTabBarGutter,set:(o,r)=>{o.nzTabBarGutter=r}},metadata:s},E,$),s&&Object.defineProperty(v,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),_t(v,"\u0275fac",function(o){return new(o||v)}),_t(v,"\u0275cmp",O({type:v,selectors:[["nz-tabs"],["nz-tabset"]],contentQueries:function(o,r,m){if(o&1&&(Zt(m,r.extraContents,ge,4),H(m,kn,5),H(m,Se,5)),o&2){Ut();let D;x(D=I())&&(r.allTabs=D),x(D=I())&&(r.tabLinks=D)}},viewQuery:function(o,r){if(o&1&&F(Bt,5),o&2){let m;x(m=I())&&(r.tabNavBarRef=m.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(o,r){o&2&&M("ant-tabs-card",r.nzType==="card"||r.nzType==="editable-card")("ant-tabs-editable",r.nzType==="editable-card")("ant-tabs-editable-card",r.nzType==="editable-card")("ant-tabs-centered",r.nzCentered)("ant-tabs-rtl",r.dir==="rtl")("ant-tabs-top",r.nzTabPosition==="top")("ant-tabs-bottom",r.nzTabPosition==="bottom")("ant-tabs-left",r.nzTabPosition==="left")("ant-tabs-right",r.nzTabPosition==="right")("ant-tabs-default",r.nzSize==="default")("ant-tabs-small",r.nzSize==="small")("ant-tabs-large",r.nzSize==="large")},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",y],nzCentered:[2,"nzCentered","nzCentered",y],nzHideAll:[2,"nzHideAll","nzHideAll",y],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",y],nzLinkExact:[2,"nzLinkExact","nzLinkExact",y],nzDestroyInactiveTabPane:[2,"nzDestroyInactiveTabPane","nzDestroyInactiveTabPane",y]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabs"],features:[Jt([{provide:Ne,useExisting:$t(()=>v)}])],decls:4,vars:12,consts:[["tabpaneTmpl",""],[3,"style","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],[3,"tabScroll","selectFocusedIndex","addClicked","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled"],[1,"ant-tabs-tab",3,"click","contextmenu"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],[3,"ngTemplateOutlet"],["role","tabpanel","nz-tab-body","",3,"id","active","content","animated"]],template:function(o,r){o&1&&(N(0,hn,3,10,"nz-tabs-nav",1),g(1,"div",2)(2,"div",3),N(3,vn,2,0),C()()),o&2&&(k(r.tabs.length||r.addable?0:-1),f(2),M("ant-tabs-content-top",r.nzTabPosition==="top")("ant-tabs-content-bottom",r.nzTabPosition==="bottom")("ant-tabs-content-left",r.nzTabPosition==="left")("ant-tabs-content-right",r.nzTabPosition==="right")("ant-tabs-content-animated",r.tabPaneAnimated),f(),k(r.nzHideAll?-1:3))},dependencies:[Bt,ht,we,de,le,tt,J,Ie,yn],encapsulation:2})),v})();var bi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=qt({type:e});static \u0275inj=Qt({imports:[En,Bt,Rt,bt,Ie]})}return e})();export{Nn as a,kn as b,En as c,bi as d};
@@ -1,4 +1,4 @@
1
- import{Cb as jr,Db as Gr,Ea as $r,Eb as ts,Fa as Kr,Gb as Jr,H as Rr,I as Lr,M as Tr,N as Ar,Na as Ur,O as Or,P as zr,Pa as Vr,Ua as qr,V as Nr,Va as Yr,W as Ir,Y as Hr,Z as Wr,ab as hi,cb as Xr,da as Fr,f as Ge,x as es,z as Dt}from"./chunk-PTMJ422K.js";import{i as ai}from"./chunk-53YRDYLS.js";import{Ca as Vi,Dc as Dr,Eb as Ye,Ec as ni,Fb as ti,Fc as je,Gb as kt,Gc as Mr,Hc as Br,Ib as ji,Ic as Pe,Kb as pt,Kc as Et,Oa as qi,Pa as Sr,Ra as Yi,Vb as ii,Wc as Qi,Xb as si,a as Be,ac as Ne,ad as oi,bc as le,cc as pe,dc as gt,ea as vr,f as Ki,gc as yr,ha as mr,hc as Gi,i as _r,ic as Ji,kc as ri,l as fr,mb as xe,n as pr,na as Qt,qc as xt,r as gr,ra as fe,rb as ei,s as Ui,sb as wr,tc as Xe,uc as Cr,vc as Zi,vd as Pr,xa as nt,xb as Xi,xc as kr,ya as ot,yb as br,yc as xr,zc as Er}from"./chunk-SJG2JCPL.js";var is=(()=>{class e{elementRef=fe(Yi);renderer=fe(Xi);mediaMatcher=fe(Fr);platform=fe(Lr);breakpointService=fe(Xr);directionality=fe(es);destroyRef=fe(Vi);nzAlign=null;nzJustify=null;nzGutter=null;actualGutter$=new pr(1);dir="ltr";getGutter(){let i=[null,null],s=this.nzGutter||0;return(Array.isArray(s)?s:[s,null]).forEach((n,o)=>{typeof n=="object"&&n!==null?(i[o]=null,Object.keys(hi).map(a=>{let l=a;this.mediaMatcher.matchMedia(hi[l]).matches&&n[l]&&(i[o]=n[l])})):i[o]=Number(n)||null}),i}setGutterStyle(){let[i,s]=this.getGutter();this.actualGutter$.next([i,s]);let r=(n,o)=>{let a=this.elementRef.nativeElement;o!==null&&this.renderer.setStyle(a,n,`-${o/2}px`)};r("margin-left",i),r("margin-right",i),r("margin-top",s),r("margin-bottom",s)}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(Dt(this.destroyRef)).subscribe(i=>{this.dir=i}),this.setGutterStyle()}ngOnChanges(i){i.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(hi).pipe(Dt(this.destroyRef)).subscribe(()=>{this.setGutterStyle()})}static \u0275fac=function(s){return new(s||e)};static \u0275dir=kt({type:e,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(s,r){s&2&&je("ant-row-top",r.nzAlign==="top")("ant-row-middle",r.nzAlign==="middle")("ant-row-bottom",r.nzAlign==="bottom")("ant-row-start",r.nzJustify==="start")("ant-row-end",r.nzJustify==="end")("ant-row-center",r.nzJustify==="center")("ant-row-space-around",r.nzJustify==="space-around")("ant-row-space-between",r.nzJustify==="space-between")("ant-row-space-evenly",r.nzJustify==="space-evenly")("ant-row-rtl",r.dir==="rtl")},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[qi]})}return e})(),Zr=(()=>{class e{elementRef=fe(Yi);renderer=fe(Xi);directionality=fe(es);destroyRef=fe(Vi);classMap={};hostFlexStyle=null;dir="ltr";nzFlex=null;nzSpan=null;nzOrder=null;nzOffset=null;nzPush=null;nzPull=null;nzXs=null;nzSm=null;nzMd=null;nzLg=null;nzXl=null;nzXXl=null;setHostClassMap(){let i=Be({"ant-col":!0,[`ant-col-${this.nzSpan}`]:Ge(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:Ge(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:Ge(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:Ge(this.nzPull),[`ant-col-push-${this.nzPush}`]:Ge(this.nzPush),"ant-col-rtl":this.dir==="rtl"},this.generateClass());for(let s in this.classMap)this.classMap.hasOwnProperty(s)&&this.renderer.removeClass(this.elementRef.nativeElement,s);this.classMap=Be({},i);for(let s in this.classMap)this.classMap.hasOwnProperty(s)&&this.classMap[s]&&this.renderer.addClass(this.elementRef.nativeElement,s)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(i){return typeof i=="number"?`${i} ${i} auto`:typeof i=="string"&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(i)?`0 0 ${i}`:i}generateClass(){let i=["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],s={};return i.forEach(r=>{let n=r.replace("nz","").toLowerCase();if(Ge(this[r]))if(typeof this[r]=="number"||typeof this[r]=="string")s[`ant-col-${n}-${this[r]}`]=!0;else{let o=this[r];["span","pull","push","offset","order"].forEach(l=>{let h=l==="span"?"-":`-${l}-`;s[`ant-col-${n}${h}${o[l]}`]=o&&Ge(o[l])})}}),s}nzRowDirective=fe(is,{host:!0,optional:!0});ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(Dt(this.destroyRef)).subscribe(i=>{this.dir=i,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(i){this.setHostClassMap();let{nzFlex:s}=i;s&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe(Dt(this.destroyRef)).subscribe(([i,s])=>{let r=(n,o)=>{let a=this.elementRef.nativeElement;o!==null&&this.renderer.setStyle(a,n,`${o/2}px`)};r("padding-left",i),r("padding-right",i),r("padding-top",s),r("padding-bottom",s)})}static \u0275fac=function(s){return new(s||e)};static \u0275dir=kt({type:e,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(s,r){s&2&&ni("flex",r.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[qi]})}return e})(),Qr=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=ti({type:e});static \u0275inj=Qt({})}return e})();var ua=[[["actions"]],"*"],_a=["actions","*"];function fa(e,t){e&1&&gt(0,"nz-icon",3)}var en=class e{loading=!1;title="";isFullscreen=!1;isOverflowYAuto=!0;static \u0275fac=function(i){return new(i||e)};static \u0275cmp=Ye({type:e,selectors:[["app-page-layout"]],hostVars:2,hostBindings:function(i,s){i&2&&je("page-layout",!0)},inputs:{loading:"loading",title:"title",isFullscreen:"isFullscreen",isOverflowYAuto:"isOverflowYAuto"},ngContentSelectors:_a,decls:11,vars:11,consts:[["nz-row","","nzAlign","middle","nzJustify","space-between",1,"page-header"],["nz-col",""],[1,"title"],["nzType","loading","nzTheme","outline"],[1,"actions"],["nz-row","","nzJustify","center",1,"page-content"],["nz-col","","nzXs","24","nzSm","24",3,"nzMd","nzLg","nzXl"]],template:function(i,s){i&1&&(Cr(ua),le(0,"div",0)(1,"div",1)(2,"div",2),Pe(3),ii(4,fa,1,0,"nz-icon",3),pe()(),le(5,"div",1)(6,"div",4),Zi(7),pe()()(),le(8,"div",5)(9,"div",6),Zi(10,1),pe()()),i&2&&(xe(3),Et(" ",s.title," "),xe(),si(s.loading?4:-1),xe(4),je("fullscreen",s.isFullscreen)("overflow-y-auto",s.isOverflowYAuto),xe(),ni("height",s.isOverflowYAuto?null:100,"%"),Ne("nzMd",s.isFullscreen?24:18)("nzLg",s.isFullscreen?24:12)("nzXl",s.isFullscreen?24:12))},dependencies:[ai,Qr,Zr,is,Ar,Tr,jr],styles:[".page-layout[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%]{height:64px;padding:0 16px;flex:0 0 auto;box-shadow:0 1px 4px #00152914}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[nz-button][_ngcontent-%COMP%]{border-radius:18px}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:220px;border-radius:18px}.page-layout[_nghost-%COMP%] .page-content[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;height:0}.page-layout[_nghost-%COMP%] .page-content.overflow-y-auto[_ngcontent-%COMP%]{overflow-y:auto}.page-layout[_nghost-%COMP%] .page-content[_ngcontent-%COMP%]:not(.fullscreen){padding:16px 0}"]})};var oo=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,ga=(e,t)=>{for(var i in t)oo(e,i,{get:t[i],enumerable:!0})},V=(e,t,i,s)=>{for(var r=s>1?void 0:s?pa(t,i):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&oo(t,i,r),r},y=(e,t)=>(i,s)=>t(i,s,e),sn="Terminal input",Ss={get:()=>sn,set:e=>sn=e},rn="Too much output to announce, navigate to rows manually to read",ws={get:()=>rn,set:e=>rn=e};function va(e){return e.replace(/\r?\n/g,"\r")}function ma(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function Sa(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function wa(e,t,i,s){if(e.stopPropagation(),e.clipboardData){let r=e.clipboardData.getData("text/plain");ao(r,t,i,s)}}function ao(e,t,i,s){e=va(e),e=ma(e,i.decPrivateModes.bracketedPasteMode&&s.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=""}function ho(e,t,i){let s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}function nn(e,t,i,s,r){ho(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}function tt(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function Ai(e,t=0,i=e.length){let s="";for(let r=t;r<i;++r){let n=e[r];n>65535?(n-=65536,s+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):s+=String.fromCharCode(n)}return s}var ba=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){let n=e.charCodeAt(r++);56320<=n&&n<=57343?t[s++]=(this._interim-55296)*1024+n-56320+65536:(t[s++]=this._interim,t[s++]=n),this._interim=0}for(let n=r;n<i;++n){let o=e.charCodeAt(n);if(55296<=o&&o<=56319){if(++n>=i)return this._interim=o,s;let a=e.charCodeAt(n);56320<=a&&a<=57343?t[s++]=(o-55296)*1024+a-56320+65536:(t[s++]=o,t[s++]=a);continue}o!==65279&&(t[s++]=o)}return s}},ya=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r,n,o,a,l=0,h=0;if(this.interim[0]){let _=!1,f=this.interim[0];f&=(f&224)===192?31:(f&240)===224?15:7;let u=0,p;for(;(p=this.interim[++u]&63)&&u<4;)f<<=6,f|=p;let C=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,D=C-u;for(;h<D;){if(h>=i)return 0;if(p=e[h++],(p&192)!==128){h--,_=!0;break}else this.interim[u++]=p,f<<=6,f|=p&63}_||(C===2?f<128?h--:t[s++]=f:C===3?f<2048||f>=55296&&f<=57343||f===65279||(t[s++]=f):f<65536||f>1114111||(t[s++]=f)),this.interim.fill(0)}let d=i-4,c=h;for(;c<i;){for(;c<d&&!((r=e[c])&128)&&!((n=e[c+1])&128)&&!((o=e[c+2])&128)&&!((a=e[c+3])&128);)t[s++]=r,t[s++]=n,t[s++]=o,t[s++]=a,c+=4;if(r=e[c++],r<128)t[s++]=r;else if((r&224)===192){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(l=(r&31)<<6|n&63,l<128){c--;continue}t[s++]=l}else if((r&240)===224){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(l=(r&15)<<12|(n&63)<<6|o&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[s++]=l}else if((r&248)===240){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,this.interim[2]=o,s;if(a=e[c++],(a&192)!==128){c--;continue}if(l=(r&7)<<18|(n&63)<<12|(o&63)<<6|a&63,l<65536||l>1114111)continue;t[s++]=l}}return s}},lo="",it=" ",Yt=class co{constructor(){this.fg=0,this.bg=0,this.extended=new xi}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new co;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},xi=class uo{constructor(t=0,i=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=i}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new uo(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Ce=class _o extends Yt{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new xi,this.combinedData=""}static fromCharData(t){let i=new _o;return i.setFromCharData(t),i}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?tt(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let i=!1;if(t[1].length>2)i=!0;else if(t[1].length===2){let s=t[1].charCodeAt(0);if(55296<=s&&s<=56319){let r=t[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(s-55296)*1024+r-56320+65536|t[2]<<22:i=!0}else i=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;i&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},on="di$target",bs="di$dependencies",ss=new Map;function Ca(e){return e[bs]||[]}function se(e){if(ss.has(e))return ss.get(e);let t=function(i,s,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ka(t,i,r)};return t._id=e,ss.set(e,t),t}function ka(e,t,i){t[on]===t?t[bs].push({id:e,index:i}):(t[bs]=[{id:e,index:i}],t[on]=t)}var de=se("BufferService"),fo=se("CoreMouseService"),ft=se("CoreService"),xa=se("CharsetService"),sr=se("InstantiationService"),po=se("LogService"),ue=se("OptionsService"),go=se("OscLinkService"),Ea=se("UnicodeService"),Xt=se("DecorationService"),ys=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){let i=this._bufferService.buffer.lines.get(e-1);if(!i){t(void 0);return}let s=[],r=this._optionsService.rawOptions.linkHandler,n=new Ce,o=i.getTrimmedLength(),a=-1,l=-1,h=!1;for(let d=0;d<o;d++)if(!(l===-1&&!i.hasContent(d))){if(i.loadCell(d,n),n.hasExtendedAttrs()&&n.extended.urlId)if(l===-1){l=d,a=n.extended.urlId;continue}else h=n.extended.urlId!==a;else l!==-1&&(h=!0);if(h||l!==-1&&d===o-1){let c=this._oscLinkService.getLinkData(a)?.uri;if(c){let _={start:{x:l+1,y:e},end:{x:d+(!h&&d===o-1?1:0),y:e}},f=!1;if(!r?.allowNonHttpProtocols)try{let u=new URL(c);["http:","https:"].includes(u.protocol)||(f=!0)}catch{f=!0}f||s.push({text:c,range:_,activate:(u,p)=>r?r.activate(u,p,_):Da(u,p),hover:(u,p)=>r?.hover?.(u,p,_),leave:(u,p)=>r?.leave?.(u,p,_)})}h=!1,n.hasExtendedAttrs()&&n.extended.urlId?(l=d,a=n.extended.urlId):(l=-1,a=-1)}}t(s)}};ys=V([y(0,de),y(1,ue),y(2,go)],ys);function Da(e,t){if(confirm(`Do you want to navigate to ${t}?
1
+ import{Ea as $r,Eb as jr,Fa as Kr,Fb as Gr,Gb as ts,H as Rr,I as Lr,Ib as Jr,M as Tr,N as Ar,O as Or,Oa as Ur,P as zr,Qa as Vr,V as Nr,Va as qr,W as Ir,Wa as Yr,Y as Hr,Z as Wr,bb as hi,da as Fr,db as Xr,f as Ge,x as es,z as Dt}from"./chunk-5EQOKH7G.js";import{j as ai}from"./chunk-X3HFJACM.js";import{Ca as Vi,Dc as Dr,Eb as Ye,Ec as ni,Fb as ti,Fc as je,Gb as kt,Gc as Mr,Hc as Br,Ib as ji,Ic as Pe,Kb as pt,Kc as Et,Oa as qi,Pa as Sr,Ra as Yi,Vb as ii,Wc as Qi,Xb as si,a as Be,ac as Ne,ad as oi,bc as le,cc as pe,dc as gt,ea as vr,f as Ki,gc as yr,ha as mr,hc as Gi,i as _r,ic as Ji,kc as ri,l as fr,mb as xe,n as pr,na as Qt,qc as xt,r as gr,ra as fe,rb as ei,s as Ui,sb as wr,tc as Xe,uc as Cr,vc as Zi,vd as Pr,xa as nt,xb as Xi,xc as kr,ya as ot,yb as br,yc as xr,zc as Er}from"./chunk-SJG2JCPL.js";var is=(()=>{class e{elementRef=fe(Yi);renderer=fe(Xi);mediaMatcher=fe(Fr);platform=fe(Lr);breakpointService=fe(Xr);directionality=fe(es);destroyRef=fe(Vi);nzAlign=null;nzJustify=null;nzGutter=null;actualGutter$=new pr(1);dir="ltr";getGutter(){let i=[null,null],s=this.nzGutter||0;return(Array.isArray(s)?s:[s,null]).forEach((n,o)=>{typeof n=="object"&&n!==null?(i[o]=null,Object.keys(hi).map(a=>{let l=a;this.mediaMatcher.matchMedia(hi[l]).matches&&n[l]&&(i[o]=n[l])})):i[o]=Number(n)||null}),i}setGutterStyle(){let[i,s]=this.getGutter();this.actualGutter$.next([i,s]);let r=(n,o)=>{let a=this.elementRef.nativeElement;o!==null&&this.renderer.setStyle(a,n,`-${o/2}px`)};r("margin-left",i),r("margin-right",i),r("margin-top",s),r("margin-bottom",s)}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(Dt(this.destroyRef)).subscribe(i=>{this.dir=i}),this.setGutterStyle()}ngOnChanges(i){i.nzGutter&&this.setGutterStyle()}ngAfterViewInit(){this.platform.isBrowser&&this.breakpointService.subscribe(hi).pipe(Dt(this.destroyRef)).subscribe(()=>{this.setGutterStyle()})}static \u0275fac=function(s){return new(s||e)};static \u0275dir=kt({type:e,selectors:[["","nz-row",""],["nz-row"],["nz-form-item"]],hostAttrs:[1,"ant-row"],hostVars:20,hostBindings:function(s,r){s&2&&je("ant-row-top",r.nzAlign==="top")("ant-row-middle",r.nzAlign==="middle")("ant-row-bottom",r.nzAlign==="bottom")("ant-row-start",r.nzJustify==="start")("ant-row-end",r.nzJustify==="end")("ant-row-center",r.nzJustify==="center")("ant-row-space-around",r.nzJustify==="space-around")("ant-row-space-between",r.nzJustify==="space-between")("ant-row-space-evenly",r.nzJustify==="space-evenly")("ant-row-rtl",r.dir==="rtl")},inputs:{nzAlign:"nzAlign",nzJustify:"nzJustify",nzGutter:"nzGutter"},exportAs:["nzRow"],features:[qi]})}return e})(),Zr=(()=>{class e{elementRef=fe(Yi);renderer=fe(Xi);directionality=fe(es);destroyRef=fe(Vi);classMap={};hostFlexStyle=null;dir="ltr";nzFlex=null;nzSpan=null;nzOrder=null;nzOffset=null;nzPush=null;nzPull=null;nzXs=null;nzSm=null;nzMd=null;nzLg=null;nzXl=null;nzXXl=null;setHostClassMap(){let i=Be({"ant-col":!0,[`ant-col-${this.nzSpan}`]:Ge(this.nzSpan),[`ant-col-order-${this.nzOrder}`]:Ge(this.nzOrder),[`ant-col-offset-${this.nzOffset}`]:Ge(this.nzOffset),[`ant-col-pull-${this.nzPull}`]:Ge(this.nzPull),[`ant-col-push-${this.nzPush}`]:Ge(this.nzPush),"ant-col-rtl":this.dir==="rtl"},this.generateClass());for(let s in this.classMap)this.classMap.hasOwnProperty(s)&&this.renderer.removeClass(this.elementRef.nativeElement,s);this.classMap=Be({},i);for(let s in this.classMap)this.classMap.hasOwnProperty(s)&&this.classMap[s]&&this.renderer.addClass(this.elementRef.nativeElement,s)}setHostFlexStyle(){this.hostFlexStyle=this.parseFlex(this.nzFlex)}parseFlex(i){return typeof i=="number"?`${i} ${i} auto`:typeof i=="string"&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(i)?`0 0 ${i}`:i}generateClass(){let i=["nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],s={};return i.forEach(r=>{let n=r.replace("nz","").toLowerCase();if(Ge(this[r]))if(typeof this[r]=="number"||typeof this[r]=="string")s[`ant-col-${n}-${this[r]}`]=!0;else{let o=this[r];["span","pull","push","offset","order"].forEach(l=>{let h=l==="span"?"-":`-${l}-`;s[`ant-col-${n}${h}${o[l]}`]=o&&Ge(o[l])})}}),s}nzRowDirective=fe(is,{host:!0,optional:!0});ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(Dt(this.destroyRef)).subscribe(i=>{this.dir=i,this.setHostClassMap()}),this.setHostClassMap(),this.setHostFlexStyle()}ngOnChanges(i){this.setHostClassMap();let{nzFlex:s}=i;s&&this.setHostFlexStyle()}ngAfterViewInit(){this.nzRowDirective&&this.nzRowDirective.actualGutter$.pipe(Dt(this.destroyRef)).subscribe(([i,s])=>{let r=(n,o)=>{let a=this.elementRef.nativeElement;o!==null&&this.renderer.setStyle(a,n,`${o/2}px`)};r("padding-left",i),r("padding-right",i),r("padding-top",s),r("padding-bottom",s)})}static \u0275fac=function(s){return new(s||e)};static \u0275dir=kt({type:e,selectors:[["","nz-col",""],["nz-col"],["nz-form-control"],["nz-form-label"]],hostVars:2,hostBindings:function(s,r){s&2&&ni("flex",r.hostFlexStyle)},inputs:{nzFlex:"nzFlex",nzSpan:"nzSpan",nzOrder:"nzOrder",nzOffset:"nzOffset",nzPush:"nzPush",nzPull:"nzPull",nzXs:"nzXs",nzSm:"nzSm",nzMd:"nzMd",nzLg:"nzLg",nzXl:"nzXl",nzXXl:"nzXXl"},exportAs:["nzCol"],features:[qi]})}return e})(),Qr=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=ti({type:e});static \u0275inj=Qt({})}return e})();var ua=[[["actions"]],"*"],_a=["actions","*"];function fa(e,t){e&1&&gt(0,"nz-icon",3)}var en=class e{loading=!1;title="";isFullscreen=!1;isOverflowYAuto=!0;static \u0275fac=function(i){return new(i||e)};static \u0275cmp=Ye({type:e,selectors:[["app-page-layout"]],hostVars:2,hostBindings:function(i,s){i&2&&je("page-layout",!0)},inputs:{loading:"loading",title:"title",isFullscreen:"isFullscreen",isOverflowYAuto:"isOverflowYAuto"},ngContentSelectors:_a,decls:11,vars:11,consts:[["nz-row","","nzAlign","middle","nzJustify","space-between",1,"page-header"],["nz-col",""],[1,"title"],["nzType","loading","nzTheme","outline"],[1,"actions"],["nz-row","","nzJustify","center",1,"page-content"],["nz-col","","nzXs","24","nzSm","24",3,"nzMd","nzLg","nzXl"]],template:function(i,s){i&1&&(Cr(ua),le(0,"div",0)(1,"div",1)(2,"div",2),Pe(3),ii(4,fa,1,0,"nz-icon",3),pe()(),le(5,"div",1)(6,"div",4),Zi(7),pe()()(),le(8,"div",5)(9,"div",6),Zi(10,1),pe()()),i&2&&(xe(3),Et(" ",s.title," "),xe(),si(s.loading?4:-1),xe(4),je("fullscreen",s.isFullscreen)("overflow-y-auto",s.isOverflowYAuto),xe(),ni("height",s.isOverflowYAuto?null:100,"%"),Ne("nzMd",s.isFullscreen?24:18)("nzLg",s.isFullscreen?24:12)("nzXl",s.isFullscreen?24:12))},dependencies:[ai,Qr,Zr,is,Ar,Tr,jr],styles:[".page-layout[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%]{height:64px;padding:0 16px;flex:0 0 auto;box-shadow:0 1px 4px #00152914}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:24px;font-weight:600}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[nz-button][_ngcontent-%COMP%]{border-radius:18px}.page-layout[_nghost-%COMP%] .page-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:220px;border-radius:18px}.page-layout[_nghost-%COMP%] .page-content[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;height:0}.page-layout[_nghost-%COMP%] .page-content.overflow-y-auto[_ngcontent-%COMP%]{overflow-y:auto}.page-layout[_nghost-%COMP%] .page-content[_ngcontent-%COMP%]:not(.fullscreen){padding:16px 0}"]})};var oo=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,ga=(e,t)=>{for(var i in t)oo(e,i,{get:t[i],enumerable:!0})},V=(e,t,i,s)=>{for(var r=s>1?void 0:s?pa(t,i):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&oo(t,i,r),r},y=(e,t)=>(i,s)=>t(i,s,e),sn="Terminal input",Ss={get:()=>sn,set:e=>sn=e},rn="Too much output to announce, navigate to rows manually to read",ws={get:()=>rn,set:e=>rn=e};function va(e){return e.replace(/\r?\n/g,"\r")}function ma(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function Sa(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function wa(e,t,i,s){if(e.stopPropagation(),e.clipboardData){let r=e.clipboardData.getData("text/plain");ao(r,t,i,s)}}function ao(e,t,i,s){e=va(e),e=ma(e,i.decPrivateModes.bracketedPasteMode&&s.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=""}function ho(e,t,i){let s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}function nn(e,t,i,s,r){ho(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}function tt(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function Ai(e,t=0,i=e.length){let s="";for(let r=t;r<i;++r){let n=e[r];n>65535?(n-=65536,s+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):s+=String.fromCharCode(n)}return s}var ba=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){let n=e.charCodeAt(r++);56320<=n&&n<=57343?t[s++]=(this._interim-55296)*1024+n-56320+65536:(t[s++]=this._interim,t[s++]=n),this._interim=0}for(let n=r;n<i;++n){let o=e.charCodeAt(n);if(55296<=o&&o<=56319){if(++n>=i)return this._interim=o,s;let a=e.charCodeAt(n);56320<=a&&a<=57343?t[s++]=(o-55296)*1024+a-56320+65536:(t[s++]=o,t[s++]=a);continue}o!==65279&&(t[s++]=o)}return s}},ya=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r,n,o,a,l=0,h=0;if(this.interim[0]){let _=!1,f=this.interim[0];f&=(f&224)===192?31:(f&240)===224?15:7;let u=0,p;for(;(p=this.interim[++u]&63)&&u<4;)f<<=6,f|=p;let C=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,D=C-u;for(;h<D;){if(h>=i)return 0;if(p=e[h++],(p&192)!==128){h--,_=!0;break}else this.interim[u++]=p,f<<=6,f|=p&63}_||(C===2?f<128?h--:t[s++]=f:C===3?f<2048||f>=55296&&f<=57343||f===65279||(t[s++]=f):f<65536||f>1114111||(t[s++]=f)),this.interim.fill(0)}let d=i-4,c=h;for(;c<i;){for(;c<d&&!((r=e[c])&128)&&!((n=e[c+1])&128)&&!((o=e[c+2])&128)&&!((a=e[c+3])&128);)t[s++]=r,t[s++]=n,t[s++]=o,t[s++]=a,c+=4;if(r=e[c++],r<128)t[s++]=r;else if((r&224)===192){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(l=(r&31)<<6|n&63,l<128){c--;continue}t[s++]=l}else if((r&240)===224){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(l=(r&15)<<12|(n&63)<<6|o&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[s++]=l}else if((r&248)===240){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,this.interim[2]=o,s;if(a=e[c++],(a&192)!==128){c--;continue}if(l=(r&7)<<18|(n&63)<<12|(o&63)<<6|a&63,l<65536||l>1114111)continue;t[s++]=l}}return s}},lo="",it=" ",Yt=class co{constructor(){this.fg=0,this.bg=0,this.extended=new xi}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new co;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},xi=class uo{constructor(t=0,i=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=i}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new uo(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},Ce=class _o extends Yt{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new xi,this.combinedData=""}static fromCharData(t){let i=new _o;return i.setFromCharData(t),i}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?tt(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let i=!1;if(t[1].length>2)i=!0;else if(t[1].length===2){let s=t[1].charCodeAt(0);if(55296<=s&&s<=56319){let r=t[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(s-55296)*1024+r-56320+65536|t[2]<<22:i=!0}else i=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;i&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},on="di$target",bs="di$dependencies",ss=new Map;function Ca(e){return e[bs]||[]}function se(e){if(ss.has(e))return ss.get(e);let t=function(i,s,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ka(t,i,r)};return t._id=e,ss.set(e,t),t}function ka(e,t,i){t[on]===t?t[bs].push({id:e,index:i}):(t[bs]=[{id:e,index:i}],t[on]=t)}var de=se("BufferService"),fo=se("CoreMouseService"),ft=se("CoreService"),xa=se("CharsetService"),sr=se("InstantiationService"),po=se("LogService"),ue=se("OptionsService"),go=se("OscLinkService"),Ea=se("UnicodeService"),Xt=se("DecorationService"),ys=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){let i=this._bufferService.buffer.lines.get(e-1);if(!i){t(void 0);return}let s=[],r=this._optionsService.rawOptions.linkHandler,n=new Ce,o=i.getTrimmedLength(),a=-1,l=-1,h=!1;for(let d=0;d<o;d++)if(!(l===-1&&!i.hasContent(d))){if(i.loadCell(d,n),n.hasExtendedAttrs()&&n.extended.urlId)if(l===-1){l=d,a=n.extended.urlId;continue}else h=n.extended.urlId!==a;else l!==-1&&(h=!0);if(h||l!==-1&&d===o-1){let c=this._oscLinkService.getLinkData(a)?.uri;if(c){let _={start:{x:l+1,y:e},end:{x:d+(!h&&d===o-1?1:0),y:e}},f=!1;if(!r?.allowNonHttpProtocols)try{let u=new URL(c);["http:","https:"].includes(u.protocol)||(f=!0)}catch{f=!0}f||s.push({text:c,range:_,activate:(u,p)=>r?r.activate(u,p,_):Da(u,p),hover:(u,p)=>r?.hover?.(u,p,_),leave:(u,p)=>r?.leave?.(u,p,_)})}h=!1,n.hasExtendedAttrs()&&n.extended.urlId?(l=d,a=n.extended.urlId):(l=-1,a=-1)}}t(s)}};ys=V([y(0,de),y(1,ue),y(2,go)],ys);function Da(e,t){if(confirm(`Do you want to navigate to ${t}?
2
2
 
3
3
  WARNING: This link could potentially be dangerous`)){let i=window.open();if(i){try{i.opener=null}catch{}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}var Oi=se("CharSizeService"),$e=se("CoreBrowserService"),rr=se("MouseService"),Ke=se("RenderService"),Ma=se("SelectionService"),vo=se("CharacterJoinerService"),wt=se("ThemeService"),mo=se("LinkProviderService"),Ba=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?an.isErrorNoTelemetry(e)?new an(e.message+`
4
4
 
@@ -1 +1 @@
1
- import{G as H,H as Z,x as G,z as C}from"./chunk-PTMJ422K.js";import{d as W}from"./chunk-53YRDYLS.js";import{Ca as M,Dc as k,Eb as w,Fb as E,Fc as z,Ha as O,Ic as A,Jc as P,Kb as S,Oa as j,U as I,Vb as d,Xb as m,ac as R,ad as B,bc as s,ca as N,cc as p,da as _,dc as F,f,i as y,m as v,mb as l,n as x,na as T,r as b,ra as c,rd as U,s as g,tc as u,u as D,uc as L,vc as $,vd as h,wd as V}from"./chunk-SJG2JCPL.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};
1
+ import{G as H,H as Z,x as G,z as C}from"./chunk-5EQOKH7G.js";import{e as W}from"./chunk-X3HFJACM.js";import{Ca as M,Dc as k,Eb as w,Fb as E,Fc as z,Ha as O,Ic as A,Jc as P,Kb as S,Oa as j,U as I,Vb as d,Xb as m,ac as R,ad as B,bc as s,ca as N,cc as p,da as _,dc as F,f,i as y,m as v,mb as l,n as x,na as T,r as b,ra as c,rd as U,s as g,tc as u,u as D,uc as L,vc as $,vd as h,wd as V}from"./chunk-SJG2JCPL.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};
@@ -1 +1 @@
1
- import{A as re,aa as T,d as se,db as ce,gb as S,hb as ae,lb as ue,pb as de,vb as le,w,x as I,z as a}from"./chunk-PTMJ422K.js";import{$b as U,Ba as L,Ca as l,Eb as g,Fb as p,Fc as y,Ha as W,Ic as J,Kc as ee,Ra as C,Tb as H,Uc as D,_b as Q,ac as E,bc as z,cc as b,dc as $,ed as F,fd as te,gd as ne,hd as ie,i as G,kc as K,l as f,la as m,ld as x,ma as u,mb as _,na as d,pa as O,qc as R,ra as s,rb as h,rd as oe,sb as M,tc as N,ub as Z,uc as v,vc as k,vd as c,xa as P,xc as Y,ya as B,yc as q,zc as X}from"./chunk-SJG2JCPL.js";var A=["*"],me=["inputElement"],Ce=["nz-checkbox",""],ge=(n,o)=>o.value;function ze(n,o){if(n&1&&(z(0,"label",0),J(1),b()),n&2){let e=o.$implicit,t=N(2);E("nzValue",e.value)("nzName",t.nzName())("nzDisabled",e.disabled||t.finalDisabled()),_(),ee(" ",e.label," ")}}function ve(n,o){if(n&1&&Q(0,ze,2,4,"label",0,ge),n&2){let e=N();U(e.normalizedOptions())}}var ke=(()=>{class n{nzOnChange=new h;checkboxList=[];addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){let e=this.checkboxList.filter(t=>t.nzChecked).map(t=>t.nzValue);this.nzOnChange.emit(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=g({type:n,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:A,decls:1,vars:0,template:function(t,i){t&1&&(v(),k(0))},encapsulation:2,changeDetection:0})}return n})(),pe=new O(""),be=(()=>{class n{ngZone=s(M);elementRef=s(C);cdr=s(oe);focusMonitor=s(T);directionality=s(I);destroyRef=s(l);checkboxGroupComponent=s(pe,{optional:!0});nzFormStatusService=s(ce,{optional:!0});nzCheckboxWrapperComponent=s(ke,{optional:!0});dir="ltr";destroy$=new f;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new h;nzValue=null;nzAutoFocus=!1;nzDisabled=!1;nzIndeterminate=!1;nzChecked=!1;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),this.nzCheckboxWrapperComponent?.onChange(),this.checkboxGroupComponent?.onCheckedChange(this.nzValue,e))}writeValue(e){this.nzChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent?.removeCheckbox(this)}),this.checkboxGroupComponent&&ne(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck()})}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(a(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent?.addCheckbox(this),this.directionality.change.pipe(a(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,w(this.elementRef.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),w(this.inputElement.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>e.stopPropagation())}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setValue(e){this.nzChecked=e,this.onChange(e),this.nzCheckedChange.emit(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=g({type:n,selectors:[["","nz-checkbox",""]],viewQuery:function(t,i){if(t&1&&Y(me,7),t&2){let r;q(r=X())&&(i.inputElement=r.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(t,i){t&2&&y("ant-checkbox-group-item",!!i.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!i.nzFormStatusService)("ant-checkbox-wrapper-checked",i.nzChecked)("ant-checkbox-wrapper-disabled",i.nzDisabled||(i.checkboxGroupComponent==null?null:i.checkboxGroupComponent.finalDisabled()))("ant-checkbox-rtl",i.dir==="rtl")},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",c],nzDisabled:[2,"nzDisabled","nzDisabled",c],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",c],nzChecked:[2,"nzChecked","nzChecked",c],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[D([{provide:S,useExisting:m(()=>n),multi:!0}])],attrs:Ce,ngContentSelectors:A,decls:6,vars:12,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(t,i){if(t&1){let r=K();v(),z(0,"span",1)(1,"input",2,0),R("ngModelChange",function(fe){return P(r),B(i.innerCheckedChange(fe))}),b(),$(3,"span",3),b(),z(4,"span"),k(5),b()}t&2&&(y("ant-checkbox-checked",i.nzChecked&&!i.nzIndeterminate)("ant-checkbox-disabled",i.nzDisabled||(i.checkboxGroupComponent==null?null:i.checkboxGroupComponent.finalDisabled()))("ant-checkbox-indeterminate",i.nzIndeterminate),_(),E("checked",i.nzChecked)("ngModel",i.nzChecked)("disabled",i.nzDisabled||((i.checkboxGroupComponent==null?null:i.checkboxGroupComponent.finalDisabled())??!1)),H("autofocus",i.nzAutoFocus?"autofocus":null)("id",i.nzId)("name",i.nzName||(i.checkboxGroupComponent==null?null:i.checkboxGroupComponent.nzName())))},dependencies:[le,ae,ue,de],encapsulation:2,changeDetection:0})}return n})(),ye=(()=>{class n{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=!0;directionality=s(I);nzName=x(null);nzDisabled=x(!1,{transform:c});nzOptions=x([]);value=W(null);finalDisabled=ie(()=>this.nzDisabled());dir=re(this.directionality.change,{initialValue:this.directionality.value});normalizedOptions=te(()=>De(this.nzOptions()));constructor(){let e=s(C),t=s(T),i=s(l);Z(()=>{t.monitor(e,!0).pipe(a(i)).subscribe(r=>{r||this.onTouched()}),i.onDestroy(()=>{t.stopMonitoring(e)})})}writeValue(e){F(()=>{this.value.set(e)})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){F(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e)}),this.isDisabledFirstChange=!1}onCheckedChange(e,t){this.finalDisabled()||(this.value.update(i=>t?i?.concat(e)||[e]:i?.filter(r=>r!==e)||[]),this.onChange(this.value()))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=g({type:n,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(t,i){t&2&&y("ant-checkbox-group-rtl",i.dir()==="rtl")},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[D([{provide:S,useExisting:m(()=>n),multi:!0},{provide:pe,useExisting:m(()=>n)}])],ngContentSelectors:A,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(t,i){t&1&&(v(),k(0,0,null,ve,2,0))},dependencies:[be],encapsulation:2,changeDetection:0})}return n})();function De(n){return n.map(o=>typeof o=="string"||typeof o=="number"?{label:`${o}`,value:o}:o)}var Le=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=p({type:n});static \u0275inj=d({imports:[be,ye]})}return n})();var Oe=(()=>{class n{create(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Je=(()=>{class n{nzResizeObserverFactory=s(Oe);destroyRef=s(l);observedElements=new Map;constructor(){this.destroyRef.onDestroy(()=>this.observedElements.forEach((e,t)=>this.cleanupObserver(t)))}observe(e){let t=se(e);return new G(i=>{let V=this.observeElement(t).subscribe(i);return()=>{V.unsubscribe(),this.unobserveElement(t)}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{let t=new f,i=this.nzResizeObserverFactory.create(r=>t.next(r));i&&i.observe(e),this.observedElements.set(e,{observer:i,stream:t,count:1})}return this.observedElements.get(e).stream}unobserveElement(e){this.observedElements.has(e)&&(this.observedElements.get(e).count--,this.observedElements.get(e).count||this.cleanupObserver(e))}cleanupObserver(e){if(this.observedElements.has(e)){let{observer:t,stream:i}=this.observedElements.get(e);t&&t.disconnect(),i.complete(),this.observedElements.delete(e)}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var j=class{_document;_textarea;constructor(o,e){this._document=e;let t=this._textarea=this._document.createElement("textarea"),i=t.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",t.setAttribute("aria-hidden","true"),t.value=o,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){let o=this._textarea,e=!1;try{if(o){let t=this._document.activeElement;o.select(),o.setSelectionRange(0,o.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){let o=this._textarea;o&&(o.remove(),this._textarea=void 0)}},ct=(()=>{class n{_document=s(L);constructor(){}copy(e){let t=this.beginCopy(e),i=t.copy();return t.destroy(),i}beginCopy(e){return new j(e,this._document)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var at=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=p({type:n});static \u0275inj=d({})}return n})();export{be as a,Le as b,Je as c,ct as d,at as e};
1
+ import{A as re,aa as T,d as se,eb as ce,hb as S,ib as ae,mb as ue,qb as de,w,x as I,xb as le,z as a}from"./chunk-5EQOKH7G.js";import{$b as U,Ba as L,Ca as l,Eb as g,Fb as p,Fc as y,Ha as W,Ic as J,Kc as ee,Ra as C,Tb as H,Uc as D,_b as Q,ac as E,bc as z,cc as b,dc as $,ed as F,fd as te,gd as ne,hd as ie,i as G,kc as K,l as f,la as m,ld as x,ma as u,mb as _,na as d,pa as O,qc as R,ra as s,rb as h,rd as oe,sb as M,tc as N,ub as Z,uc as v,vc as k,vd as c,xa as P,xc as Y,ya as B,yc as q,zc as X}from"./chunk-SJG2JCPL.js";var A=["*"],me=["inputElement"],Ce=["nz-checkbox",""],ge=(n,o)=>o.value;function ze(n,o){if(n&1&&(z(0,"label",0),J(1),b()),n&2){let e=o.$implicit,t=N(2);E("nzValue",e.value)("nzName",t.nzName())("nzDisabled",e.disabled||t.finalDisabled()),_(),ee(" ",e.label," ")}}function ve(n,o){if(n&1&&Q(0,ze,2,4,"label",0,ge),n&2){let e=N();U(e.normalizedOptions())}}var ke=(()=>{class n{nzOnChange=new h;checkboxList=[];addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){let e=this.checkboxList.filter(t=>t.nzChecked).map(t=>t.nzValue);this.nzOnChange.emit(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=g({type:n,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:A,decls:1,vars:0,template:function(t,i){t&1&&(v(),k(0))},encapsulation:2,changeDetection:0})}return n})(),pe=new O(""),be=(()=>{class n{ngZone=s(M);elementRef=s(C);cdr=s(oe);focusMonitor=s(T);directionality=s(I);destroyRef=s(l);checkboxGroupComponent=s(pe,{optional:!0});nzFormStatusService=s(ce,{optional:!0});nzCheckboxWrapperComponent=s(ke,{optional:!0});dir="ltr";destroy$=new f;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new h;nzValue=null;nzAutoFocus=!1;nzDisabled=!1;nzIndeterminate=!1;nzChecked=!1;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),this.nzCheckboxWrapperComponent?.onChange(),this.checkboxGroupComponent?.onCheckedChange(this.nzValue,e))}writeValue(e){this.nzChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent?.removeCheckbox(this)}),this.checkboxGroupComponent&&ne(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck()})}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(a(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent?.addCheckbox(this),this.directionality.change.pipe(a(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,w(this.elementRef.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),w(this.inputElement.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>e.stopPropagation())}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setValue(e){this.nzChecked=e,this.onChange(e),this.nzCheckedChange.emit(e)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=g({type:n,selectors:[["","nz-checkbox",""]],viewQuery:function(t,i){if(t&1&&Y(me,7),t&2){let r;q(r=X())&&(i.inputElement=r.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(t,i){t&2&&y("ant-checkbox-group-item",!!i.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!i.nzFormStatusService)("ant-checkbox-wrapper-checked",i.nzChecked)("ant-checkbox-wrapper-disabled",i.nzDisabled||(i.checkboxGroupComponent==null?null:i.checkboxGroupComponent.finalDisabled()))("ant-checkbox-rtl",i.dir==="rtl")},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",c],nzDisabled:[2,"nzDisabled","nzDisabled",c],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",c],nzChecked:[2,"nzChecked","nzChecked",c],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[D([{provide:S,useExisting:m(()=>n),multi:!0}])],attrs:Ce,ngContentSelectors:A,decls:6,vars:12,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(t,i){if(t&1){let r=K();v(),z(0,"span",1)(1,"input",2,0),R("ngModelChange",function(fe){return P(r),B(i.innerCheckedChange(fe))}),b(),$(3,"span",3),b(),z(4,"span"),k(5),b()}t&2&&(y("ant-checkbox-checked",i.nzChecked&&!i.nzIndeterminate)("ant-checkbox-disabled",i.nzDisabled||(i.checkboxGroupComponent==null?null:i.checkboxGroupComponent.finalDisabled()))("ant-checkbox-indeterminate",i.nzIndeterminate),_(),E("checked",i.nzChecked)("ngModel",i.nzChecked)("disabled",i.nzDisabled||((i.checkboxGroupComponent==null?null:i.checkboxGroupComponent.finalDisabled())??!1)),H("autofocus",i.nzAutoFocus?"autofocus":null)("id",i.nzId)("name",i.nzName||(i.checkboxGroupComponent==null?null:i.checkboxGroupComponent.nzName())))},dependencies:[le,ae,ue,de],encapsulation:2,changeDetection:0})}return n})(),ye=(()=>{class n{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=!0;directionality=s(I);nzName=x(null);nzDisabled=x(!1,{transform:c});nzOptions=x([]);value=W(null);finalDisabled=ie(()=>this.nzDisabled());dir=re(this.directionality.change,{initialValue:this.directionality.value});normalizedOptions=te(()=>De(this.nzOptions()));constructor(){let e=s(C),t=s(T),i=s(l);Z(()=>{t.monitor(e,!0).pipe(a(i)).subscribe(r=>{r||this.onTouched()}),i.onDestroy(()=>{t.stopMonitoring(e)})})}writeValue(e){F(()=>{this.value.set(e)})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){F(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e)}),this.isDisabledFirstChange=!1}onCheckedChange(e,t){this.finalDisabled()||(this.value.update(i=>t?i?.concat(e)||[e]:i?.filter(r=>r!==e)||[]),this.onChange(this.value()))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=g({type:n,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(t,i){t&2&&y("ant-checkbox-group-rtl",i.dir()==="rtl")},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[D([{provide:S,useExisting:m(()=>n),multi:!0},{provide:pe,useExisting:m(()=>n)}])],ngContentSelectors:A,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(t,i){t&1&&(v(),k(0,0,null,ve,2,0))},dependencies:[be],encapsulation:2,changeDetection:0})}return n})();function De(n){return n.map(o=>typeof o=="string"||typeof o=="number"?{label:`${o}`,value:o}:o)}var Le=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=p({type:n});static \u0275inj=d({imports:[be,ye]})}return n})();var Oe=(()=>{class n{create(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Je=(()=>{class n{nzResizeObserverFactory=s(Oe);destroyRef=s(l);observedElements=new Map;constructor(){this.destroyRef.onDestroy(()=>this.observedElements.forEach((e,t)=>this.cleanupObserver(t)))}observe(e){let t=se(e);return new G(i=>{let V=this.observeElement(t).subscribe(i);return()=>{V.unsubscribe(),this.unobserveElement(t)}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{let t=new f,i=this.nzResizeObserverFactory.create(r=>t.next(r));i&&i.observe(e),this.observedElements.set(e,{observer:i,stream:t,count:1})}return this.observedElements.get(e).stream}unobserveElement(e){this.observedElements.has(e)&&(this.observedElements.get(e).count--,this.observedElements.get(e).count||this.cleanupObserver(e))}cleanupObserver(e){if(this.observedElements.has(e)){let{observer:t,stream:i}=this.observedElements.get(e);t&&t.disconnect(),i.complete(),this.observedElements.delete(e)}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var j=class{_document;_textarea;constructor(o,e){this._document=e;let t=this._textarea=this._document.createElement("textarea"),i=t.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",t.setAttribute("aria-hidden","true"),t.value=o,t.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(t)}copy(){let o=this._textarea,e=!1;try{if(o){let t=this._document.activeElement;o.select(),o.setSelectionRange(0,o.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){let o=this._textarea;o&&(o.remove(),this._textarea=void 0)}},ct=(()=>{class n{_document=s(L);constructor(){}copy(e){let t=this.beginCopy(e),i=t.copy();return t.destroy(),i}beginCopy(e){return new j(e,this._document)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var at=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=p({type:n});static \u0275inj=d({})}return n})();export{be as a,Le as b,Je as c,ct as d,at as e};