PageSourceSearch

https://preview-8232-ng-zorro-antd.surge.sh/2259.c478220bdd9282b3.js

js preview-8232-ng-zorro-antd.surge.sh collected 2026-10-03 14:57:26 UTC 49,586 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkng_zorro_antd_doc=self.webpackChunkng_zorro_antd_doc||[]).push([[2259],{1076:(I,b,u)=>{u.d(b,{C:()=>M,U:()=>D});var E=u(9212),m=u(6814);const C=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,e=/([^\#-~ |!])/g;let D=(()=>{class S{constructor(){this.UNIQUE_WRAPPERS=["##==-open_tag-==##","##==-close_tag-==##"]}transform(T,k,f,a){if(!k)return T;const s=new RegExp(k.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$&"),f);return function x(S){return S.replace(/&/g,"&amp;").replace(C,_=>`&#${1024*(_.charCodeAt(0)-55296)+(_.charCodeAt(1)-56320)+65536};`).replace(e,_=>`&#${_.charCodeAt(0)};`).replace(/</g,"&lt;").replace(/>/g,"&gt;")}(T.replace(s,`${this.UNIQUE_WRAPPERS[0]}$&${this.UNIQUE_WRAPPERS[1]}`)).replace(new RegExp(this.UNIQUE_WRAPPERS[0],"g"),a?`<span class="${a}">`:"<span>").replace(new RegExp(this.UNIQUE_WRAPPERS[1],"g"),"</span>")}static#e=this.\u0275fac=function(k){return new(k||S)};static#t=this.\u0275pipe=E.Yjl({name:"nzHighlight",type:S,pure:!0})}return S})(),M=(()=>{class S{static#e=this.\u0275fac=function(k){return new(k||S)};static#t=this.\u0275mod=E.oAB({type:S});static#n=this.\u0275inj=E.cJS({imports:[m.ez]})}return S})()},9094:(I,b,u)=>{u.d(b,{Zr:()=>C,fP:()=>k,g2:()=>T,kW:()=>_,oH:()=>S});var E=u(9212),m=u(5619);class C{get treeService(){return this.service||this.parentNode&&this.parentNode.treeService}constructor(a,s=null,o=null){if(this._title="",this.level=0,this.parentNode=null,this._icon="",this._children=[],this._isLeaf=!1,this._isChecked=!1,this._isSelectable=!1,this._isDisabled=!1,this._isDisableCheckbox=!1,this._isExpanded=!1,this._isHalfChecked=!1,this._isSelected=!1,this._isLoading=!1,this.canHide=!1,this.isMatched=!1,this.service=null,a instanceof C)return a;this.service=o||null,this.origin=a,this.key=a.key,this.parentNode=s,this._title=a.title||"---",this._icon=a.icon||"",this._isLeaf=a.isLeaf||!1,this._children=[],this._isChecked=a.checked||!1,this._isSelectable=a.disabled||!1!==a.selectable,this._isDisabled=a.disabled||!1,this._isDisableCheckbox=a.disableCheckbox||!1,this._isExpanded=!a.isLeaf&&(a.expanded||!1),this._isHalfChecked=!1,this._isSelected=!a.disabled&&a.selected||!1,this._isLoading=!1,this.isMatched=!1,this.level=s?s.level+1:0,typeof a.children<"u"&&null!==a.children&&a.children.forEach(c=>{const d=this.treeService;d&&!d.isCheckStrictly&&a.checked&&!a.disabled&&!c.disabled&&!c.disableCheckbox&&(c.checked=a.checked),this._children.push(new C(c,this))})}get title(){return this._title}set title(a){this._title=a,this.update()}get icon(){return this._icon}set icon(a){this._icon=a,this.update()}get children(){return this._children}set children(a){this._children=a,this.update()}get isLeaf(){return this._isLeaf}set isLeaf(a){this._isLeaf=a,this.update()}get isChecked(){return this._isChecked}set isChecked(a){this._isChecked=a,this.origin.checked=a,this.afterValueChange("isChecked")}get isHalfChecked(){return this._isHalfChecked}set isHalfChecked(a){this._isHalfChecked=a,this.afterValueChange("isHalfChecked")}get isSelectable(){return this._isSelectable}set isSelectable(a){this._isSelectable=a,this.update()}get isDisabled(){return this._isDisabled}set isDisabled(a){this._isDisabled=a,this.update()}get isDisableCheckbox(){return this._isDisableCheckbox}set isDisableCheckbox(a){this._isDisableCheckbox=a,this.update()}get isExpanded(){return this._isExpanded}set isExpanded(a){this._isExpanded=a,this.origin.expanded=a,this.afterValueChange("isExpanded"),this.afterValueChange("reRender")}get isSelected(){return this._isSelected}set isSelected(a){this._isSelected=a,this.origin.selected=a,this.afterValueChange("isSelected")}get isLoading(){return this._isLoading}set isLoading(a){this._isLoading=a,this.update()}setSyncChecked(a=!1,s=!1){this.setChecked(a,s),this.treeService&&!this.treeService.isCheckStrictly&&this.treeService.conduct(this)}setChecked(a=!1,s=!1){this.origin.checked=a,this.isChecked=a,this.isHalfChecked=s}setExpanded(a){this._isExpanded=a,this.origin.expanded=a,this.afterValueChange("isExpanded")}getParentNode(){return this.parentNode}getChildren(){return this.children}
1addChildren(a,s=-1){this.isLeaf||(a.forEach(o=>{const c=l=>{l.getChildren().forEach(g=>{g.level=g.getParentNode().level+1,g.origin.level=g.level,c(g)})};let d=o;d instanceof C?d.parentNode=this:d=new C(o,this),d.level=this.level+1,d.origin.level=d.level,c(d);try{-1===s?this.children.push(d):this.children.splice(s,0,d)}catch{}}),this.origin.children=this.getChildren().map(o=>o.origin),this.isLoading=!1),this.afterValueChange("addChildren"),this.afterValueChange("reRender")}clearChildren(){this.afterValueChange("clearChildren"),this.children=[],this.origin.children=[],this.afterValueChange("reRender")}remove(){const a=this.getParentNode();a&&(a.children=a.getChildren().filter(s=>s.key!==this.key),a.origin.children=a.origin.children.filter(s=>s.key!==this.key),this.afterValueChange("remove"),this.afterValueChange("reRender"))}afterValueChange(a){if(this.treeService)switch(a){case"isChecked":this.treeService.setCheckedNodeList(this);break;case"isHalfChecked":this.treeService.setHalfCheckedNodeList(this);break;case"isExpanded":this.treeService.setExpandedNodeList(this);break;case"isSelected":this.treeService.setNodeActive(this);break;case"clearChildren":this.treeService.afterRemove(this.getChildren());break;case"remove":this.treeService.afterRemove([this]);break;case"reRender":this.treeService.flattenTreeData(this.treeService.rootNodes,this.treeService.getExpandedNodeList().map(s=>s.key))}this.update()}update(){this.component&&this.component.markForCheck()}}function e(f){const{isDisabled:a,isDisableCheckbox:s}=f;return!(!a&&!s)}function x(f,a){return a.length>0&&a.indexOf(f)>-1}function S(f=[],a=[]){const s=new Set(!0===a?[]:a),o=[];return function c(d,l=null){return d.map((g,N)=>{const L=function D(f,a){return`${f}-${a}`}(l?l.pos:"0",N),w=function M(f,a){return f??a}(g.key,L);g.isStart=[...l?l.isStart:[],0===N],g.isEnd=[...l?l.isEnd:[],N===d.length-1];const y={parent:l,pos:L,children:[],data:g,isStart:[...l?l.isStart:[],0===N],isEnd:[...l?l.isEnd:[],N===d.length-1]};return o.push(y),y.children=!0===a||s.has(w)||g.isExpanded?c(g.children||[],y):[],y})}(f),o}let _=(()=>{class f{constructor(){this.DRAG_SIDE_RANGE=.25,this.DRAG_MIN_GAP=2,this.isCheckStrictly=!1,this.isMultiple=!1,this.rootNodes=[],this.flattenNodes$=new m.X([]),this.selectedNodeList=[],this.expandedNodeList=[],this.checkedNodeList=[],this.halfCheckedNodeList=[],this.matchedNodeList=[]}initTree(s){this.rootNodes=s,this.expandedNodeList=[],this.selectedNodeList=[],this.halfCheckedNodeList=[],this.checkedNodeList=[],this.matchedNodeList=[]}flattenTreeData(s,o=[]){this.flattenNodes$.next(S(s,o).map(c=>c.data))}getSelectedNode(){return this.selectedNode}getSelectedNodeList(){return this.conductNodeState("select")}getCheckedNodeKeys(){const s=[],o=this.getCheckedNodeList(),c=d=>{d.forEach(l=>{s.push(l.key),!(l.children.length<1)&&c(l.children)})};return c(o),s}getCheckedNodeList(){return this.conductNodeState("check")}getHalfCheckedNodeList(){return this.conductNodeState("halfCheck")}getExpandedNodeList(){return this.conductNodeState("expand")}getMatchedNodeList(){return this.conductNodeState("match")}isArrayOfNzTreeNode(s){return s.every(o=>o instanceof C)}setSelectedNode(s){this.selectedNode=s}setNodeActive(s){!this.isMultiple&&s.isSelected&&(this.selectedNodeList.forEach(o=>{s.key!==o.key&&(o.isSelected=!1)}),this.selectedNodeList=[]),this.setSelectedNodeList(s,this.isMultiple)}setSelectedNodeList(s,o=!1){const c=this.getIndexOfArray(this.selectedNodeList,s.key);o?s.isSelected&&-1===c&&this.selectedNodeList.push(s):s.isSelected&&-1===c&&(this.selectedNodeList=[s]),s.isSelected||(this.selectedNodeList=this.selectedNodeList.filter(d=>d.key!==s.key))}setHalfCheckedNodeList(s){const o=this.getIndexOfArray(this.halfCheckedNodeList,s.key);s.isHalfChecked&&-1===o?this.halfCheckedNodeList.push(s):!s.isHalfChecked&&o>-1&&(this.halfCheckedNodeList=this.halfCheckedNodeList.filter(c=>s.key!==c.key))}setCheckedNodeList(s){const o=this.getIndexOfArray(this.checkedNodeList,s.key);s.isChecked&&-1===o?this.checkedNodeList.push(s):!s.isChecked&&o>-1&&(this.checkedNodeList=this.checkedNodeList.filter(c=>s.key!==c.key))}conductNodeState(s="check"){let o=[];switch(s){case"select":o=this.selectedNodeList;break;case"expand":o=this.expandedNodeList;break;case"match":o=this.matchedNodeList;break;case"check":o=this.checkedNodeList;const c=d=>{const l=d.getParentNode();return!!l&&(this.checkedNodeList.findIndex(g=>
1g.key===l.key)>-1||c(l))};this.isCheckStrictly||(o=this.checkedNodeList.filter(d=>!c(d)));break;case"halfCheck":this.isCheckStrictly||(o=this.halfCheckedNodeList)}return o}setExpandedNodeList(s){if(s.isLeaf)return;const o=this.getIndexOfArray(this.expandedNodeList,s.key);s.isExpanded&&-1===o?this.expandedNodeList.push(s):!s.isExpanded&&o>-1&&this.expandedNodeList.splice(o,1)}setMatchedNodeList(s){const o=this.getIndexOfArray(this.matchedNodeList,s.key);s.isMatched&&-1===o?this.matchedNodeList.push(s):!s.isMatched&&o>-1&&this.matchedNodeList.splice(o,1)}refreshCheckState(s=!1){s||this.checkedNodeList.forEach(o=>{this.conduct(o,s)})}conduct(s,o=!1){const c=s.isChecked;s&&!o&&(this.conductUp(s),this.conductDown(s,c))}conductUp(s){const o=s.getParentNode();o&&(e(o)||(o.children.every(c=>e(c)||!c.isHalfChecked&&c.isChecked)?(o.isChecked=!0,o.isHalfChecked=!1):o.children.some(c=>c.isHalfChecked||c.isChecked)?(o.isChecked=!1,o.isHalfChecked=!0):(o.isChecked=!1,o.isHalfChecked=!1)),this.setCheckedNodeList(o),this.setHalfCheckedNodeList(o),this.conductUp(o))}conductDown(s,o){e(s)||(s.isChecked=o,s.isHalfChecked=!1,this.setCheckedNodeList(s),this.setHalfCheckedNodeList(s),s.children.forEach(c=>{this.conductDown(c,o)}))}afterRemove(s){const o=c=>{this.selectedNodeList=this.selectedNodeList.filter(d=>d.key!==c.key),this.expandedNodeList=this.expandedNodeList.filter(d=>d.key!==c.key),this.checkedNodeList=this.checkedNodeList.filter(d=>d.key!==c.key),c.children&&c.children.forEach(d=>{o(d)})};s.forEach(c=>{o(c)}),this.refreshCheckState(this.isCheckStrictly)}refreshDragNode(s){0===s.children.length?this.conductUp(s):s.children.forEach(o=>{this.refreshDragNode(o)})}resetNodeLevel(s){const o=s.getParentNode();s.level=o?o.level+1:0;for(const c of s.children)this.resetNodeLevel(c)}calcDropPosition(s){const{clientY:o}=s,{top:c,bottom:d,height:l}=s.target.getBoundingClientRect(),g=Math.max(l*this.DRAG_SIDE_RANGE,this.DRAG_MIN_GAP);return o<=c+g?-1:o>=d-g?1:0}dropAndApply(s,o=-1){if(!s||o>1)return;const c=s.treeService,d=s.getParentNode(),l=this.selectedNode.getParentNode();switch(l?l.children=l.children.filter(g=>g.key!==this.selectedNode.key):this.rootNodes=this.rootNodes.filter(g=>g.key!==this.selectedNode.key),o){case 0:s.addChildren([this.selectedNode]),this.resetNodeLevel(s);break;case-1:case 1:const g=1===o?1:0;if(d){d.addChildren([this.selectedNode],d.children.indexOf(s)+g);const N=this.selectedNode.getParentNode();N&&this.resetNodeLevel(N)}else{const N=this.rootNodes.indexOf(s)+g;this.rootNodes.splice(N,0,this.selectedNode),this.rootNodes[N].parentNode=null,this.resetNodeLevel(this.rootNodes[N])}}this.rootNodes.forEach(g=>{g.treeService||(g.service=c),this.refreshDragNode(g)})}formatEvent(s,o,c){const d={eventName:s,node:o,event:c};switch(s){case"dragstart":case"dragenter":case"dragover":case"dragleave":case"drop":case"dragend":Object.assign(d,{dragNode:this.getSelectedNode()});break;case"click":case"dblclick":Object.assign(d,{selectedKeys:this.selectedNodeList}),Object.assign(d,{nodes:this.selectedNodeList}),Object.assign(d,{keys:this.selectedNodeList.map(g=>g.key)});break;case"check":const l=this.getCheckedNodeList();Object.assign(d,{checkedKeys:l}),Object.assign(d,{nodes:l}),Object.assign(d,{keys:l.map(g=>g.key)});break;case"search":Object.assign(d,{matchedKeys:this.getMatchedNodeList()}),Object.assign(d,{nodes:this.getMatchedNodeList()}),Object.assign(d,{keys:this.getMatchedNodeList().map(g=>g.key)});break;case"expand":Object.assign(d,{nodes:this.expandedNodeList}),Object.assign(d,{keys:this.expandedNodeList.map(g=>g.key)})}return d}getIndexOfArray(s,o){return s.findIndex(c=>c.key===o)}conductCheck(s,o){this.checkedNodeList=[],this.halfCheckedNodeList=[];const c=d=>{d.forEach(l=>{null===s?l.isChecked=!!l.origin.checked:x(l.key,s||[])?(l.isChecked=!0,l.isHalfChecked=!1):(l.isChecked=!1,l.isHalfChecked=!1),l.children.length>0&&c(l.children)})};c(this.rootNodes),this.refreshCheckState(o)}conductExpandedKeys(s=[]){const o=new Set(!0===s?[]:s);this.expandedNodeList=[];const c=d=>{d.forEach(l=>{l.setExpanded(!0===s||o.has(l.key)||!0===l.isExpanded),l.isExpanded&&this.setExpandedNodeList(l),l.children.length>0&&c(l.children)})};c(this.rootNodes)}conductSelectedKeys(s,o){this.selectedNodeList.forEach(d=>d.isSelected=!1),this.selectedNodeList=[];const c=d=>d.every(l=>
1{if(x(l.key,s)){if(l.isSelected=!0,this.setSelectedNodeList(l),!o)return!1}else l.isSelected=!1;return!(l.children.length>0)||c(l.children)});c(this.rootNodes)}expandNodeAllParentBySearch(s){const o=c=>{if(c&&(c.canHide=!1,c.setExpanded(!0),this.setExpandedNodeList(c),c.getParentNode()))return o(c.getParentNode())};o(s.getParentNode())}static#e=this.\u0275fac=function(o){return new(o||f)};static#t=this.\u0275prov=E.Yz7({token:f,factory:f.\u0275fac})}return f})();const T=new E.OlP("NzTreeHigherOrder");class k{constructor(a){this.nzTreeService=a}coerceTreeNodes(a){let s=[];return s=this.nzTreeService.isArrayOfNzTreeNode(a)?a.map(o=>(o.service=this.nzTreeService,o)):a.map(o=>new C(o,null,this.nzTreeService)),s}getTreeNodes(){return this.nzTreeService.rootNodes}getTreeNodeByKey(a){const s=[],o=c=>{s.push(c),c.getChildren().forEach(d=>{o(d)})};return this.getTreeNodes().forEach(c=>{o(c)}),s.find(c=>c.key===a)||null}getCheckedNodeList(){return this.nzTreeService.getCheckedNodeList()}getSelectedNodeList(){return this.nzTreeService.getSelectedNodeList()}getHalfCheckedNodeList(){return this.nzTreeService.getHalfCheckedNodeList()}getExpandedNodeList(){return this.nzTreeService.getExpandedNodeList()}getMatchedNodeList(){return this.nzTreeService.getMatchedNodeList()}}},2259:(I,b,u)=>{u.d(b,{Hc:()=>pe,vO:()=>fe});var E=u(9388),m=u(3584),C=u(6814),e=u(9212),x=u(1076),D=u(8381),M=u(2755),S=u(227),_=u(7582),T=u(8645),k=u(2438),f=u(9773),a=u(6700),s=u(9094),o=u(6223),c=u(8923),d=u(2196);function l(r,p){if(1&r&&e._UZ(0,"span"),2&r){const t=p.index,i=e.oxw();e.ekj("ant-tree-indent-unit",!i.nzSelectMode)("ant-select-tree-indent-unit",i.nzSelectMode)("ant-select-tree-indent-unit-start",i.nzSelectMode&&i.nzIsStart[t])("ant-tree-indent-unit-start",!i.nzSelectMode&&i.nzIsStart[t])("ant-select-tree-indent-unit-end",
1i.nzSelectMode&&i.nzIsEnd[t])("ant-tree-indent-unit-end",!i.nzSelectMode&&i.nzIsEnd[t])}}const g=["builtin",""];function N(r,p){if(1&r&&(e.ynx(0),e._UZ(1,"span",4),e.BQk()),2&r){const t=e.oxw(3);e.xp6(1),e.ekj("ant-select-tree-switcher-icon",t.nzSelectMode)("ant-tree-switcher-icon",!t.nzSelectMode)}}const L=(r,p)=>({$implicit:r,origin:p});function w(r,p){if(1&r&&(e.ynx(0),e.YNc(1,N,2,4,"ng-container",3),e.BQk()),2&r){const t=e.oxw(2);e.xp6(1),e.Q6J("nzStringTemplateOutlet",t.nzExpandedIcon)("nzStringTemplateOutletContext",e.WLB(2,L,t.context,t.context.origin))}}function y(r,p){if(1&r&&(e.ynx(0),e.YNc(1,w,2,5,"ng-container",2),e.BQk()),2&r){const t=e.oxw(),i=e.MAs(3);e.xp6(1),e.Q6J("ngIf",!t.isLoading)("ngIfElse",i)}}function K(r,p){if(1&r&&e._UZ(0,"span",7),2&r){const t=e.oxw(4);e.Q6J("nzType",t.isSwitcherOpen?"minus-square":"plus-square")}}function R(r,p){1&r&&e._UZ(0,"span",8)}function V(r,p){if(1&r&&(e.ynx(0),e.YNc(1,K,1,1,"span",5)(2,R,1,0,"span",6),e.BQk()),2&r){const t=e.oxw(3);e.xp6(1),e.Q6J("ngIf",t.isShowLineIcon),e.xp6(1),e.Q6J("ngIf",!t.isShowLineIcon)}}function F(r,p){if(1&r&&(e.ynx(0),e.YNc(1,V,3,2,"ng-container",3),e.BQk()),2&r){const t=e.oxw(2);e.xp6(1),e.Q6J("nzStringTemplateOutlet",t.nzExpandedIcon)("nzStringTemplateOutletContext",e.WLB(2,L,t.context,t.context.origin))}}function U(r,p){if(1&r&&(e.ynx(0),e.YNc(1,F,2,5,"ng-container",2),e.BQk()),2&r){const t=e.oxw(),i=e.MAs(3);e.xp6(1),e.Q6J("ngIf",!t.isLoading)("ngIfElse",i)}}function Q(r,p){1&r&&e._UZ(0,"span",9),2&r&&e.Q6J("nzSpin",!0)}function J(r,p){}function Z(r,p){if(1&r&&e._UZ(0,"span",6),2&r){const t=e.oxw(3);e.Q6J("nzType",t.icon)}}function $(r,p){if(1&r&&(e.TgZ(0,"span")(1,"span"),e.YNc(2,Z,1,1,"span",5),e.qZA()()),2&r){const t=e.oxw(2);e.ekj("ant-tree-icon__open",t.isSwitcherOpen)("ant-tree-icon__close",t.isSwitcherClose)("ant-tree-icon_loading",t.isLoading)("ant-select-tree-iconEle",t.selectMode)("ant-tree-iconEle",!t.selectMode),e.xp6(1),e.ekj("ant-select-tree-iconEle",t.selectMode)("ant-select-tree-icon__customize",t.selectMode)("ant-tree-iconEle",!t.selectMode)("ant-tree-icon__customize",!t.selectMode),e.xp6(1),e.Q6J("ngIf",t.icon)}}function Y(r,p){if(1&r&&(e.ynx(0),e.YNc(1,$,3,19,"span",3),e._UZ(2,"span",4),e.ALo(3,"nzHighlight"),e.BQk()),2&r){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.icon&&t.showIcon),e.xp6(1),e.Q6J("innerHTML",e.gM2(3,2,t.title,t.matchedValue,"i","font-highlight"),e.oJD)}}function j(r,p){if(1&r&&e._UZ(0,"nz-tree-drop-indicator",7),2&r){const t=e.oxw();e.Q6J("dropPosition",t.dragPosition)("level",t.context.level)}}function W(r,p){if(1&r){const t=e.EpF();e.TgZ(0,"nz-tree-node-switcher",4),e.NdJ("click",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.clickExpand(n))}),e.qZA()}if(2&r){const t=e.oxw();e.Q6J("nzShowExpand",t.nzShowExpand)("nzShowLine",t.nzShowLine)("nzExpandedIcon",t.nzExpandedIcon)("nzSelectMode",t.nzSelectMode)("context",t.nzTreeNode)("isLeaf",t.isLeaf)("isExpanded",t.isExpanded)("isLoading",t.isLoading)}}function G(r,p){if(1&r){const t=e.EpF();e.TgZ(0,"nz-tree-node-checkbox",5),e.NdJ("click",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.clickCheckBox(n))}),e.qZA()}if(2&r){const t=e.oxw();e.Q6J("nzSelectMode",t.nzSelectMode)("isChecked",t.isChecked)("isHalfChecked",t.isHalfChecked)("isDisabled",t.isDisabled)("isDisableCheckbox",t.isDisableCheckbox)}}const X=["nzTreeTemplate"];function q(r,p){}const P=r=>({$implicit:r});function ee(r,p){if(1&r&&(e.ynx(0),e.YNc(1,q,0,0,"ng-template",10),e.BQk()),2&r){const t=p.$implicit;e.oxw(2);const i=e.MAs(9);e.xp6(1),e.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",e.VKq(2,P,t))}}function te(r,p){if(1&r&&(e.TgZ(0,"cdk-virtual-scroll-viewport",8),e.YNc(1,ee,2,4,"ng-container",9),e.qZA()),2&r){const t=e.oxw();e.Udp("height",t.nzVirtualHeight),e.ekj("ant-select-tree-list-holder-inner",t.nzSelectMode)("ant-tree-list-holder-inner",!t.nzSelectMode),e.Q6J("itemSize",t.nzVirtualItemSize)("minBufferPx",t.nzVirtualMinBufferPx)("maxBufferPx",t.nzVirtualMaxBufferPx),e.xp6(1),e.Q6J("cdkVirtualForOf",t.nzFlattenNodes)("cdkVirtualForTrackBy",t.trackByFlattenNode)}}function ne(r,p){}function ie(r,p){if(1&r&&(e.ynx(0),e.YNc(1,ne,0,0,"ng-template",10),e.BQk()),2&r){const t=p.$implicit;e.oxw(2);const i=e.MAs(9);e.xp6(1),e.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",e.VKq(2,P,t))}}function se(r,p){if(1&r&&(e.TgZ(0,"div",11),e.YNc(1,ie,2,4,"ng-container",12),e.qZA()),2&r){const t=e.oxw();e.ekj("ant-select-tree-list-holder-inner",t.nzSelectMode)("ant-tree-list-holder-inner",!t.nzSelectMode),e.Q6J("@.disabled",t.beforeInit||!(null==t.noAnimation||!t.noAnimation.nzNoAnimation))("nzNoAnimation",null==t.noAnimation?null:t.noAnimation.nzNoAnimation)("@treeCollapseMotion",t.nzFlattenNodes.length),e.xp6(1),e.Q6J("ngForOf",t.nzFlattenNodes)("ngForTrackBy",t.trackByFlattenNode)}}function re(r,p){if(1&r){const t=e.EpF();e.TgZ(0,"nz-tree-node",13),e.NdJ("nzExpandChange",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzClick",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzDblClick",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzContextMenu",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzCheckBoxChange",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzOnDragStart",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzOnDragEnter",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzOnDragOver",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzOnDragLeave",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzOnDragEnd",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))})("nzOnDrop",function(n){e.CHM(t);const h=e.oxw();return e.KtG(h.eventTriggerChanged(n))}),e.qZA()}if(2&r){const t=p.$implicit,i=e.oxw();e.Q6J("icon",t.icon)("title",t.title)("isLoading",t.isLoading)("isSelected",t.isSelected)("isDisabled",t.isDisabled)("isMatched",t.isMatched)("isExpanded",t.isExpanded)("isLeaf",t.isLeaf)("isStart",t.isStart)("isEnd",t.isEnd)("isChecked",t.isChecked)("isHalfChecked",t.isHalfChecked)("isDisableCheckbox",t.isDisableCheckbox)("isSelectable",t.isSelectable)("canHide",t.canHide)("nzTreeNode",t)("nzSelectMode",i.nzSelectMode)("nzShowLine",i.nzShowLine)("nzExpandedIcon",i.nzExpandedIcon)("nzDraggable",i.nzDraggable)("nzCheckable",i.nzCheckable)("nzShowExpand",i.nzShowExpand)("nzAsyncData",i.nzAsyncData)("nzSearchValue",i.nzSearchValue)("nzHideUnMatched",i.nzHideUnMatched)("nzBeforeDrop",i.nzBeforeDrop)("nzShowIcon",i.nzShowIcon)("nzTreeTemplate",i.nzTreeTemplate||i.nzTreeTemplateChild)}}let ae=(()=>
1{class r{constructor(t){this.cdr=t,this.level=1,this.direction="ltr",this.style={}}ngOnChanges(t){this.renderIndicator(this.dropPosition,this.direction)}renderIndicator(t,i="ltr"){const h="ltr"===i?"left":"right",v={[h]:"4px",["ltr"===i?"right":"left"]:"0px"};switch(t){case-1:v.top="-3px";break;case 1:v.bottom="-3px";break;case 0:v.bottom="-3px",v[h]="28px";break;default:v.display="none"}this.style=v,this.cdr.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||r)(e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["nz-tree-drop-indicator"]],hostVars:4,hostBindings:function(i,n){2&i&&(e.Akn(n.style),e.ekj("ant-tree-drop-indicator",!0))},inputs:{dropPosition:"dropPosition",level:"level",direction:"direction"},exportAs:["NzTreeDropIndicator"],features:[e.TTD],decls:0,vars:0,template:function(i,n){},encapsulation:2,changeDetection:0})}return r})(),oe=(()=>{class r{constructor(){this.nzTreeLevel=0,this.nzIsStart=[],this.nzIsEnd=[],this.nzSelectMode=!1,this.listOfUnit=[]}ngOnChanges(t){const{nzTreeLevel:i}=t;i&&(this.listOfUnit=[...new Array(i.currentValue||0)])}static#e=this.\u0275fac=function(i){return new(i||r)};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["nz-tree-indent"]],hostVars:5,hostBindings:function(i,n){2&i&&(e.uIk("aria-hidden",!0),e.ekj("ant-tree-indent",!n.nzSelectMode)("ant-select-tree-indent",n.nzSelectMode))},inputs:{nzTreeLevel:"nzTreeLevel",nzIsStart:"nzIsStart",nzIsEnd:"nzIsEnd",nzSelectMode:"nzSelectMode"},exportAs:["nzTreeIndent"],features:[e.TTD],decls:1,vars:1,consts:[[3,"ant-tree-indent-unit","ant-select-tree-indent-unit","ant-select-tree-indent-unit-start","ant-tree-indent-unit-start","ant-select-tree-indent-unit-end","ant-tree-indent-unit-end",4,"ngFor","ngForOf"]],template:function(i,n){1&i&&e.YNc(0,l,1,12,"span",0),2&i&&e.Q6J("ngForOf",n.listOfUnit)},dependencies:[C.sg],encapsulation:2,changeDetection:0})}return r})(),ce=(()=>{class r{constructor(){this.nzSelectMode=!1}static#e=this.\u0275fac=function(i){return new(i||r)};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["nz-tree-node-checkbox","builtin",""]],hostVars:16,hostBindings:function(i,n){2&i&&e.ekj("ant-select-tree-checkbox",n.nzSelectMode)("ant-select-tree-checkbox-checked",n.nzSelectMode&&n.isChecked)("ant-select-tree-checkbox-indeterminate",n.nzSelectMode&&n.isHalfChecked)("ant-select-tree-checkbox-disabled",n.nzSelectMode&&(n.isDisabled||n.isDisableCheckbox))("ant-tree-checkbox",!n.nzSelectMode)("ant-tree-checkbox-checked",!n.nzSelectMode&&n.isChecked)("ant-tree-checkbox-indeterminate",!n.nzSelectMode&&n.isHalfChecked)("ant-tree-checkbox-disabled",!n.nzSelectMode&&(n.isDisabled||n.isDisableCheckbox))},inputs:{nzSelectMode:"nzSelectMode",isChecked:"isChecked",isHalfChecked:"isHalfChecked",isDisabled:"isDisabled",isDisableCheckbox:"isDisableCheckbox"},attrs:g,decls:1,vars:4,template:function(i,n){1&i&&e._UZ(0,"span"),2&i&&e.ekj("ant-tree-checkbox-inner",!n.nzSelectMode)("ant-select-tree-checkbox-inner",n.nzSelectMode)},encapsulation:2,changeDetection:0})}return r})(),de=(()=>{class r{constructor(){this.nzSelectMode=!1}get isShowLineIcon(){return!this.isLeaf&&!!this.nzShowLine}get isShowSwitchIcon(){return!this.isLeaf&&!this.nzShowLine}get isSwitcherOpen(){return!!this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}static#e=this.\u0275fac=function(i){return new(i||r)};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["nz-tree-node-switcher"]],hostVars:16,hostBindings:function(i,n){2&i&&e.ekj("ant-select-tree-switcher",n.nzSelectMode)("ant-select-tree-switcher-noop",n.nzSelectMode&&n.isLeaf)("ant-select-tree-switcher_open",n.nzSelectMode&&n.isSwitcherOpen)("ant-select-tree-switcher_close",n.nzSelectMode&&n.isSwitcherClose)("ant-tree-switcher",!n.nzSelectMode)("ant-tree-switcher-noop",!n.nzSelectMode&&n.isLeaf)("ant-tree-switcher_open",!n.nzSelectMode&&n.isSwitcherOpen)("ant-tree-switcher_close",!n.nzSelectMode&&n.isSwitcherClose)},inputs:{nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzExpandedIcon:"nzExpandedIcon",nzSelectMode:"nzSelectMode",context:"context",isLeaf:"isLeaf",isLoading:"isLoading",isExpanded:"isExpanded"},decls:4,vars:2,consts:[[4,"ngIf"],["loadingTemplate",""],[4,"ngIf","ngIfElse"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-icon","","nzType","caret-down"],["nz-icon","","class","ant-tree-switcher-line-icon",3,"nzType",4,"ngIf"],["nz-icon","","nzType","file","class","ant-tree-switcher-line-icon",4,"ngIf"],["nz-icon","",1,"ant-tree-switcher-line-icon",3,"nzType"],["nz-icon","","nzType","file",1,"ant-tree-switcher-line-icon"],["nz-icon","","nzType","loading",1,"ant-tree-switcher-loading-icon",3,"nzSpin"]],template:function(i,n){1&i&&e.YNc(0,y,2,2,"ng-container",0)(1,U,2,2,"ng-container",0)(2,Q,1,1,"ng-template",null,1,e.W1O),2&i&&(e.Q6J("ngIf",n.isShowSwitchIcon),e.xp6(1),e.Q6J("ngIf",n.nzShowLine))},dependencies:[C.O5,M.f,S.Ls],encapsulation:2,changeDetection:0})}return r})(),le=(()=>{class r{get canDraggable(){return!(!this.draggable||this.isDisabled)||null}get matchedValue(){return this.isMatched?this.searchValue:""}get isSwitcherOpen(){return this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}constructor(t){this.cdr=t,this.treeTemplate=null,this.selectMode=!1,this.showIndicator=!0}ngOnChanges(t){const{showIndicator:i,dragPosition:n}=t;(i||n)&&this.cdr.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||r)(e.Y36(e.sBO))};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["nz-tree-node-title"]],hostVars:21,hostBindings:function(i,n){2&i&&(e.uIk("title",n.title)("draggable",n.canDraggable)("aria-grabbed",n.canDraggable),e.ekj("draggable",n.canDraggable)("ant-select-tree-node-content-wrapper",n.selectMode)("ant-select-tree-node-content-wrapper-open",n.selectMode&&n.isSwitcherOpen)("ant-select-tree-node-content-wrapper-close",n.selectMode&&n.isSwitcherClose)("ant-select-tree-node-selected",n.selectMode&&n.isSelected)("ant-tree-node-content-wrapper",!n.selectMode)("ant-tree-node-content-wrapper-open",!n.selectMode&&n.isSwitcherOpen)("ant-tree-node-content-wrapper-close",!n.selectMode&&n.isSwitcherClose)("ant-tree-node-selected",!n.selectMode&&n.isSelected))},inputs:{searchValue:"searchValue",treeTemplate:"treeTemplate",draggable:"draggable",showIcon:"showIcon",selectMode:"selectMode",context:"context",icon:"icon",title:"title",isLoading:"isLoading",isSelected:"isSelected",isDisabled:"isDisabled",isMatched:"isMatched",isExpanded:"isExpanded",isLeaf:"isLeaf",showIndicator:"showIndicator",dragPosition:"dragPosition"},features:[e.TTD],decls:3,vars:7,consts:[[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"dropPosition","level",4,"ngIf"],[3,"ant-tree-icon__open","ant-tree-icon__close","ant-tree-icon_loading","ant-select-tree-iconEle","ant-tree-iconEle",4,"ngIf"],[1,"ant-tree-title",3,"innerHTML"],["nz-icon","",3,"nzType",4,"ngIf"],["nz-icon","",3,"nzType"],[3,"dropPosition","level"]],template:function(i,n){1&i&&e.YNc(0,J,0,0,"ng-template",0)(1,Y,4,7,"ng-container",1)(2,j,1,2,"nz-tree-drop-indicator",2),2&i&&(e.Q6J("ngTemplateOutlet",n.treeTemplate)("ngTemplateOutletContext",e.WLB(4,L,n.context,n.context.origin)),e.xp6(1),e.Q6J("ngIf",!n.treeTemplate),e.xp6(1),e.Q6J("ngIf",n.showIndicator))},dependencies:[C.O5,C.tP,S.Ls,ae,x.U],encapsulation:2,changeDetection:0})}return r})(),he=(()=>{class r{get displayStyle(){return this.nzSearchValue&&this.nzHideUnMatched&&!this.isMatched&&!this.isExpanded&&this.canHide?"none":""}get isSwitcherOpen(){return this.isExpanded&&!this.isLeaf}get isSwitcherClose(){return!this.isExpanded&&!this.isLeaf}clickExpand(t){t.preventDefault(),!this.isLoading&&!this.isLeaf&&(this.nzAsyncData&&0===this.nzTreeNode.children.length&&!this.isExpanded&&(this.nzTreeNode.isLoading=!0),this.nzTreeNode.setExpanded(!this.isExpanded)),this.nzTreeService.setExpandedNodeList(this.nzTreeNode);const i=this.nzTreeService.formatEvent("expand",this.nzTreeNode,t);this.nzExpandChange.emit(i)}clickSelect(t){t.preventDefault(),this.isSelectable&&!this.isDisabled&&(this.nzTreeNode.isSelected=!this.nzTreeNode.isSelected),this.nzTreeService.setSelectedNodeList(this.nzTreeNode);const i=this.nzTreeService.formatEvent("click",this.nzTreeNode,t);this.nzClick.emit(i)}dblClick(t){t.preventDefault();const i=this.nzTreeService.formatEvent("dblclick",this.nzTreeNode,t);this.nzDblClick.emit(i)}contextMenu(t){t.preventDefault();const i=this.nzTreeService.formatEvent("contextmenu",this.nzTreeNode,t);this.nzContextMenu.emit(i)}clickCheckBox(t){if(t.preventDefault(),this.isDisabled||this.isDisableCheckbox)return;this.nzTreeNode.isChecked=!this.nzTreeNode.isChecked,this.nzTreeNode.isHalfChecked=!1,this.nzTreeService.setCheckedNodeList(this.nzTreeNode);const i=this.nzTreeService.formatEvent("check",this.nzTreeNode,t);this.nzCheckBoxChange.emit(i)}clearDragClass(){["drag-over-gap-top","drag-over-gap-bottom","drag-over","drop-target"].forEach(i=>
1{this.renderer.removeClass(this.elementRef.nativeElement,i)})}handleDragStart(t){try{t.dataTransfer.setData("text/plain",this.nzTreeNode.key)}catch{}this.nzTreeService.setSelectedNode(this.nzTreeNode),this.draggingKey=this.nzTreeNode.key;const i=this.nzTreeService.formatEvent("dragstart",this.nzTreeNode,t);this.nzOnDragStart.emit(i)}handleDragEnter(t){t.preventDefault(),this.showIndicator=this.nzTreeNode.key!==this.nzTreeService.getSelectedNode()?.key,this.renderIndicator(2),this.ngZone.run(()=>{const i=this.nzTreeService.formatEvent("dragenter",this.nzTreeNode,t);this.nzOnDragEnter.emit(i)})}handleDragOver(t){t.preventDefault();const i=this.nzTreeService.calcDropPosition(t);this.dragPos!==i&&(this.clearDragClass(),this.renderIndicator(i),0===this.dragPos&&this.isLeaf||(this.renderer.addClass(this.elementRef.nativeElement,this.dragPosClass[this.dragPos]),this.renderer.addClass(this.elementRef.nativeElement,"drop-target")));const n=this.nzTreeService.formatEvent("dragover",this.nzTreeNode,t);this.nzOnDragOver.emit(n)}handleDragLeave(t){t.preventDefault(),this.renderIndicator(2),this.clearDragClass();const i=this.nzTreeService.formatEvent("dragleave",this.nzTreeNode,t);this.nzOnDragLeave.emit(i)}handleDragDrop(t){t.preventDefault(),t.stopPropagation(),this.ngZone.run(()=>{this.showIndicator=!1,this.clearDragClass();const i=this.nzTreeService.getSelectedNode();if(!i||i&&i.key===this.nzTreeNode.key||0===this.dragPos&&this.isLeaf)return;const n=this.nzTreeService.formatEvent("drop",this.nzTreeNode,t),h=this.nzTreeService.formatEvent("dragend",this.nzTreeNode,t);this.nzBeforeDrop?this.nzBeforeDrop({dragNode:this.nzTreeService.getSelectedNode(),node:this.nzTreeNode,pos:this.dragPos}).subscribe(z=>{z&&this.nzTreeService.dropAndApply(this.nzTreeNode,this.dragPos),this.nzOnDrop.emit(n),this.nzOnDragEnd.emit(h)}):this.nzTreeNode&&(this.nzTreeService.dropAndApply(this.nzTreeNode,this.dragPos),this.nzOnDrop.emit(n))})}handleDragEnd(t){t.preventDefault(),this.ngZone.run(()=>{if(this.nzBeforeDrop)this.draggingKey=null,this.markForCheck();else{this.draggingKey=null;const i=this.nzTreeService.formatEvent("dragend",this.nzTreeNode,t);this.nzOnDragEnd.emit(i)}})}handDragEvent(){this.ngZone.runOutsideAngular(()=>{if(this.nzDraggable){const t=this.elementRef.nativeElement;this.destroy$=new T.x,(0,k.R)(t,"dragstart").pipe((0,f.R)(this.destroy$)).subscribe(i=>this.handleDragStart(i)),(0,k.R)(t,"dragenter").pipe((0,f.R)(this.destroy$)).subscribe(i=>this.handleDragEnter(i)),(0,k.R)(t,"dragover").pipe((0,f.R)(this.destroy$)).subscribe(i=>this.handleDragOver(i)),(0,k.R)(t,"dragleave").pipe((0,f.R)(this.destroy$)).subscribe(i=>this.handleDragLeave(i)),(0,k.R)(t,"drop").pipe((0,f.R)(this.destroy$)).subscribe(i=>this.handleDragDrop(i)),(0,k.R)(t,"dragend").pipe((0,f.R)(this.destroy$)).subscribe(i=>this.handleDragEnd(i))}else this.destroy$.next(!0),this.destroy$.complete()})}markForCheck(){this.cdr.markForCheck()}constructor(t,i,n,h,z,v){this.nzTreeService=t,this.ngZone=i,this.renderer=n,this.elementRef=h,this.cdr=z,this.noAnimation=v,this.icon="",this.title="",this.isLoading=!1,this.isSelected=!1,this.isDisabled=!1,this.isMatched=!1,this.isStart=[],this.isEnd=[],this.nzHideUnMatched=!1,this.nzNoAnimation=!1,this.nzSelectMode=!1,this.nzShowIcon=!1,this.nzTreeTemplate=null,this.nzSearchValue="",this.nzDraggable=!1,this.nzClick=new e.vpe,this.nzDblClick=new e.vpe,this.nzContextMenu=new e.vpe,this.nzCheckBoxChange=new e.vpe,this.nzExpandChange=new e.vpe,this.nzOnDragStart=new e.vpe,this.nzOnDragEnter=new e.vpe,this.nzOnDragOver=new e.vpe,this.nzOnDragLeave=new e.vpe,this.nzOnDrop=new e.vpe,this.nzOnDragEnd=new e.vpe,this.destroy$=new T.x,this.dragPos=2,this.dragPosClass={0:"drag-over",1:"drag-over-gap-bottom","-1":"drag-over-gap-top"},this.draggingKey=null,this.showIndicator=!1}ngOnInit(){this.nzTreeNode.component=this,this.ngZone.runOutsideAngular(()=>{(0,k.R)(this.elementRef.nativeElement,"mousedown").pipe((0,f.R)(this.destroy$)).subscribe(t=>{this.nzSelectMode&&t.preventDefault()})})}ngOnChanges(t){const{nzDraggable:i}=t;i&&this.handDragEvent()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}renderIndicator(t){this.ngZone.run(()=>{this.showIndicator=2!==t,!(this.nzTreeNode.key===this.nzTreeService.getSelectedNode()?.key||0===t&&this.isLeaf)&&(this.dragPos=t,this.cdr.markForCheck())})}static#e=this.\u0275fac=function(i){return new(i||r)(e.Y36(s.kW),e.Y36(e.R0b),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(D.P,9))};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["nz-tree-node","builtin",""]],hostVars:36,hostBindings:function(i,n){2&i&&(e.Udp("display",n.displayStyle),e.ekj("ant-select-tree-treenode",n.nzSelectMode)("ant-select-tree-treenode-disabled",n.nzSelectMode&&n.isDisabled)("ant-select-tree-treenode-switcher-open",n.nzSelectMode&&n.isSwitcherOpen)("ant-select-tree-treenode-switcher-close",n.nzSelectMode&&n.isSwitcherClose)("ant-select-tree-treenode-checkbox-checked",n.nzSelectMode&&n.isChecked)("ant-select-tree-treenode-checkbox-indeterminate",n.nzSelectMode&&n.isH
1alfChecked)("ant-select-tree-treenode-selected",n.nzSelectMode&&n.isSelected)("ant-select-tree-treenode-loading",n.nzSelectMode&&n.isLoading)("ant-tree-treenode",!n.nzSelectMode)("ant-tree-treenode-disabled",!n.nzSelectMode&&n.isDisabled)("ant-tree-treenode-switcher-open",!n.nzSelectMode&&n.isSwitcherOpen)("ant-tree-treenode-switcher-close",!n.nzSelectMode&&n.isSwitcherClose)("ant-tree-treenode-checkbox-checked",!n.nzSelectMode&&n.isChecked)("ant-tree-treenode-checkbox-indeterminate",!n.nzSelectMode&&n.isHalfChecked)("ant-tree-treenode-selected",!n.nzSelectMode&&n.isSelected)("ant-tree-treenode-loading",!n.nzSelectMode&&n.isLoading)("dragging",n.draggingKey===n.nzTreeNode.key))},inputs:{icon:"icon",title:"title",isLoading:"isLoading",isSelected:"isSelected",isDisabled:"isDisabled",isMatched:"isMatched",isExpanded:"isExpanded",isLeaf:"isLeaf",isChecked:"isChecked",isHalfChecked:"isHalfChecked",isDisableCheckbox:"isDisableCheckbox",isSelectable:"isSelectable",canHide:"canHide",isStart:"isStart",isEnd:"isEnd",nzTreeNode:"nzTreeNode",nzShowLine:"nzShowLine",nzShowExpand:"nzShowExpand",nzCheckable:"nzCheckable",nzAsyncData:"nzAsyncData",nzHideUnMatched:"nzHideUnMatched",nzNoAnimation:"nzNoAnimation",nzSelectMode:"nzSelectMode",nzShowIcon:"nzShowIcon",nzExpandedIcon:"nzExpandedIcon",nzTreeTemplate:"nzTreeTemplate",nzBeforeDrop:"nzBeforeDrop",nzSearchValue:"nzSearchValue",nzDraggable:"nzDraggable"},outputs:{nzClick:"nzClick",nzDblClick:"nzDblClick",nzContextMenu:"nzContextMenu",nzCheckBoxChange:"nzCheckBoxChange",nzExpandChange:"nzExpandChange",nzOnDragStart:"nzOnDragStart",nzOnDragEnter:"nzOnDragEnter",nzOnDragOver:"nzOnDragOver",nzOnDragLeave:"nzOnDragLeave",nzOnDrop:"nzOnDrop",nzOnDragEnd:"nzOnDragEnd"},exportAs:["nzTreeBuiltinNode"],features:[e.TTD],attrs:g,decls:4,vars:22,consts:[[3,"nzTreeLevel","nzSelectMode","nzIsStart","nzIsEnd"],[3,"nzShowExpand","nzShowLine","nzExpandedIcon","nzSelectMode","context","isLeaf","isExpanded","isLoading","click",4,"ngIf"],["builtin","",3,"nzSelectMode","isChecked","isHalfChecked","isDisabled","isDisableCheckbox","click",4,"ngIf"],[3,"icon","title","isLoading","isSelected","isDisabled","isMatched","isExpanded","isLeaf","searchValue","treeTemplate","draggable","showIcon","selectMode","context","showIndicator","dragPosition","dblclick","click","contextmenu"],[3,"nzShowExpand","nzShowLine","nzExpandedIcon","nzSelectMode","context","isLeaf","isExpanded","isLoading","click"],["builtin","",3,"nzSelectMode","isChecked","isHalfChecked","isDisabled","isDisableCheckbox","click"]],template:function(i,n){1&i&&(e._UZ(0,"nz-tree-indent",0),e.YNc(1,W,1,8,"nz-tree-node-switcher",1)(2,G,1,5,"nz-tree-node-checkbox",2),e.TgZ(3,"nz-tree-node-title",3),e.NdJ("dblclick",function(z){return n.dblClick(z)})("click",function(z){return n.clickSelect(z)})("contextmenu",function(z){return n.contextMenu(z)}),e.qZA()),2&i&&(e.Q6J("nzTreeLevel",n.nzTreeNode.level)("nzSelectMode",n.nzSelectMode)("nzIsStart",n.isStart)("nzIsEnd",n.isEnd),e.xp6(1),e.Q6J("ngIf",n.nzShowExpand),e.xp6(1),e.Q6J("ngIf",n.nzCheckable),e.xp6(1),e.Q6J("icon",n.icon)("title",n.title)("isLoading",n.isLoading)("isSelected",n.isSelected)("isDisabled",n.isDisabled)("isMatched",n.isMatched)("isExpanded",n.isExpanded)("isLeaf",n.isLeaf)("searchValue",n.nzSearchValue)("treeTemplate",n.nzTreeTemplate)("draggable",n.nzDraggable)("showIcon",n.nzShowIcon)("selectMode",n.nzSelectMode)("context",n.nzTreeNode)("showIndicator",n.showIndicator)("dragPosition",n.dragPos))},dependencies:[C.O5,oe,de,ce,le],encapsulation:2,changeDetection:0})}return(0,_.gn)([(0,a.yF)()],r.prototype,"nzShowLine",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzShowExpand",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzCheckable",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzAsyncData",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzHideUnMatched",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzNoAnimation",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzSelectMode",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzShowIcon",void 0),r})(),B=(()=>{class r extends s.kW{constructor(){super()}static#e=this.\u0275fac=function(i){return new(i||r)};static#t=this.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac})}return r})();function ge(){const r=(0,e.f3M)(s.g2,{skipSelf:!0,optional:!0}),p=(0,e.f3M)(B);return r??p}let pe=(()=>{class r extends s.fP{writeValue(t){this.handleNzData(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}renderTreeProperties(t){let i=!1,n=!1;const{nzData:h,nzExpandedKeys:z,nzSelectedKeys:v,nzCheckedKeys:_e,nzCheckStrictly:A,nzExpandAll:H,nzMultiple:ue,nzSearchValue:O}=t;H&&(i=!0,n=this.nzExpandAll),ue&&(this.nzTreeService.isMultiple=this.nzMultiple),A&&(this.nzTreeService.isCheckStrictly=this.nzCheckStrictly),h&&this.handleNzData(this.nzData),_e&&this.handleCheckedKeys(this.nzCheckedKeys),A&&this.handleCheckedKeys(null),(z||H)&&(i=!0,this.handleExpandedKeys(n||this.nzExpandedKeys)),v&&this.handleSelectedKeys(this.nzSelectedKeys,this.nzMultiple),O&&(O.firstChange&&!this.nzSearchValue||(i=!1,this.handleSearchValue(O.currentValue,this.nzSearchFunc),this.nzSearchValueChange.emit(this.nzTreeService.formatEvent("search",null,null))));const Ce=this.getExpandedNodeList().map(ke=>ke.key);this.handleFlattenNodes(this.nzTreeService.rootNodes,i?n||this.nzExpandedKeys:Ce)}trackByFlattenNode(t,i){return i.key}handleNzData(t){if(Array.isArray(t)){const i=this.coerceTreeNodes(t);this.nzTreeService.initTree(i)}}handleFlattenNodes(t,i=[]){this.nzTreeService.flattenTreeData(t,i)}handleCheckedKeys(t){this.nzTreeService.conductCheck(t,this.nzCheckStrictly)}handleExpandedKeys(t=[]){this.nzTreeService.conductExpandedKeys(t)}handleSelectedKeys(t,i){this.nzTreeService.conductSelectedKeys(t,i)}handleSearchValue(t,i){(0,s.oH)(this.nzTreeService.rootNodes,!0).map(z=>
1z.data).forEach(z=>{z.isMatched=(z=>i?i(z.origin):!(!t||!z.title.toLowerCase().includes(t.toLowerCase())))(z),z.canHide=!z.isMatched,z.isMatched?this.nzTreeService.expandNodeAllParentBySearch(z):(z.setExpanded(!1),this.nzTreeService.setExpandedNodeList(z)),this.nzTreeService.setMatchedNodeList(z)})}eventTriggerChanged(t){const i=t.node;switch(t.eventName){case"expand":this.renderTree(),this.nzExpandChange.emit(t);break;case"click":this.nzClick.emit(t);break;case"dblclick":this.nzDblClick.emit(t);break;case"contextmenu":this.nzContextMenu.emit(t);break;case"check":this.nzTreeService.setCheckedNodeList(i),this.nzCheckStrictly||this.nzTreeService.conduct(i);const n=this.nzTreeService.formatEvent("check",i,t.event);this.nzCheckBoxChange.emit(n);const h=this.nzTreeService.getCheckedNodeKeys();this.nzCheckedKeysChange.emit(h);break;case"dragstart":i.isExpanded&&(i.setExpanded(!i.isExpanded),this.renderTree()),this.nzOnDragStart.emit(t);break;case"dragenter":const z=this.nzTreeService.getSelectedNode();z&&z.key!==i.key&&!i.isExpanded&&!i.isLeaf&&(i.setExpanded(!0),this.renderTree()),this.nzOnDragEnter.emit(t);break;case"dragover":this.nzOnDragOver.emit(t);break;case"dragleave":this.nzOnDragLeave.emit(t);break;case"dragend":this.nzOnDragEnd.emit(t);break;case"drop":this.renderTree(),this.nzOnDrop.emit(t)}}renderTree(){this.handleFlattenNodes(this.nzTreeService.rootNodes,this.getExpandedNodeList().map(t=>t.key)),this.cdr.markForCheck()}constructor(t,i,n,h,z){super(t),this.nzConfigService=i,this.cdr=n,this.directionality=h,this.noAnimation=z,this._nzModuleName="tree",this.nzShowIcon=!1,this.nzHideUnMatched=!1,this.nzBlockNode=!1,this.nzExpandAll=!1,this.nzSelectMode=!1,this.nzCheckStrictly=!1,this.nzShowExpand=!0,this.nzShowLine=!1,this.nzCheckable=!1,this.nzAsyncData=!1,this.nzDraggable=!1,this.nzMultiple=!1,this.nzVirtualItemSize=28,this.nzVirtualMaxBufferPx=500,this.nzVirtualMinBufferPx=28,this.nzVirtualHeight=null,this.nzData=[],this.nzExpandedKeys=[],this.nzSelectedKeys=[],this.nzCheckedKeys=[],this.nzSearchValue="",this.nzFlattenNodes=[],this.beforeInit=!0,this.dir="ltr",this.nzExpandedKeysChange=new e.vpe,this.nzSelectedKeysChange=new e.vpe,this.nzCheckedKeysChange=new e.vpe,this.nzSearchValueChange=new e.vpe,this.nzClick=new e.vpe,this.nzDblClick=new e.vpe,this.nzContextMenu=new e.vpe,this.nzCheckBoxChange=new e.vpe,this.nzExpandChange=new e.vpe,this.nzOnDragStart=new e.vpe,this.nzOnDragEnter=new e.vpe,this.nzOnDragOver=new e.vpe,this.nzOnDragLeave=new e.vpe,this.nzOnDrop=new e.vpe,this.nzOnDragEnd=new e.vpe,this.HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},this.HIDDEN_NODE_STYLE={position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"},this.destroy$=new T.x,this.onChange=()=>null,this.onTouched=()=>null}ngOnInit(){this.nzTreeService.flattenNodes$.pipe((0,f.R)(this.destroy$)).subscribe(t=>{this.nzFlattenNodes=this.nzVirtualHeight&&this.nzHideUnMatched&&this.nzSearchValue?.length>0?t.filter(i=>!i.canHide):t,this.cdr.markForCheck()}),this.dir=this.directionality.value,this.directionality.change?.pipe((0,f.R)(this.destroy$)).subscribe(t=>{this.dir=t,this.cdr.detectChanges()})}ngOnChanges(t){this.renderTreeProperties(t)}ngAfterViewInit(){this.beforeInit=!1}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static#e=this.\u0275fac=function(i){return new(i||r)(e.Y36(s.kW),e.Y36(d.jY),e.Y36(e.sBO),e.Y36(E.Is,8),e.Y36(D.P,9))};static#t=this.\u0275cmp=e.Xpm({type:r,selectors:[["nz-tree"]],contentQueries:function(i,n,h){if(1&i&&e.Suo(h,X,7),2&i){let z;e.iGM(z=e.CRH())&&(n.nzTreeTemplateChild=z.first)}},viewQuery:function(i,n){if(1&i&&e.Gf(m.N7,5,m.N7),2&i){let h;e.iGM(h=e.CRH())&&(n.cdkVirtualScrollViewport=h.first)}},hostVars:20,hostBindings:function(i,n){2&i&&e.ekj("ant-select-tree",n.nzSelectMode)("ant-select-tree-show-line",n.nzSelectMode&&n.nzShowLine)("ant-select-tree-icon-hide",n.nzSelectMode&&!n.nzShowIcon)("ant-select-tree-block-node",n.nzSelectMode&&n.nzBlockNode)("ant-tree",!n.nzSelectMode)("ant-tree-rtl","rtl"===n.dir)("ant-tree-show-line",!n.nzSelectMode&&n.nzShowLine)("ant-tree-icon-hide",!n.nzSelectMode&&!n.nzShowIcon)("ant-tree-block-node",!n.nzSelectMode&&n.nzBlockNode)("draggable-tree",n.nzDraggable)},inputs:{nzShowIcon:"nzShowIcon",nzHideUnMatched:"nzHideUnMatched",nzBlockNode:"nzBlockNode",nzExpandAll:"nzExpandAll",nzSelectMode:"nzSelectMode",nzCheckStrictly:"nzCheckStrictly",nzShowExpand:"nzShowExpand",nzShowLine:"nzShowLine",nzCheckable:"nzCheckable",nzAsyncData:"nzAsyncData",nzDraggable:"nzDraggable",nzMultiple:"nzMultiple",nzExpandedIcon:"nzExpandedIcon",nzVirtualItemSize:"nzVirtualItemSize",nzVirtualMaxBufferPx:"nzVirtualMaxBufferPx",nzVirtualMinBufferPx:"nzVirtualMinBufferPx",nzVirtualHeight:"nzVirtualHeight",nzTreeTemplate:"nzTreeTemplate",nzBeforeDrop:"nzBeforeDrop",nzData:"nzData",nzExpandedKeys:"nzExpandedKeys",nzSelectedKeys:"nzSelectedKeys",nzCheckedKeys:"nzCheckedKeys",nzSearchValue:"nzSearchValue",nzSearchFunc:"nzSearchFunc"},outputs:{nzExpandedKeysChange:"nzExpandedKeysChange",nzSelectedKeysChange:"nzSelectedKeysChange",nzCheckedKeysChange:"nzCheckedKeysChange",nzSearchValueChange:"nzSearchValueChange",nzClick:"nzClick",nzDblClick:"nzDblClick",nzContextMenu:"nzContextMenu",nzCheckBoxChange:"nzCheckBoxChange",nzExpandChange:"nzExpandChange",nzOnDragStart:"nzOnDragStart",nzOnDragEnter:"nzOnDragEnter",nzOnDragOver:"nzOnDragOver",nzOnDragLeave:"nzOnDragLeave",nzOnDrop:"nzOnDrop",nzOnDragEnd:"nzOnDragEnd"},exportAs:["nzTree"],features:[e._Bn([B,{provide:s.kW,useFactory:ge},{provide:o.JU,useExisting:(0,e.Gpc)(()=>r),multi:!0}]),e.qOj,e.TTD],decls:10,vars:6,consts:[[3,"ngStyle"],[1,"ant-tree-treenode",3,"ngStyle"],[1,"ant-tree-indent"],[1,"ant-tree-indent-unit"],[1,"ant-tree-list",2,"position","relative"],[3,"ant-select-tree-list-holder-inner","ant-tree-list-holder-inner","itemSize","minBufferPx","maxBufferPx","height",4,"ngIf"],[3,"ant-select-tree-list-holder-inner","ant-tree-list-holder-inner","nzNoAnimation",4,"ngIf"],["nodeTemplate",""],[3,"itemSize","minBufferPx","maxBufferPx"],[4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"nzNoAnimation"],[4,"ngFor","ngForOf","ngForTrackBy"],["builtin","",3,"icon","title","isLoading","isSelected","isDisabled","isMatched","isExpanded","isLeaf","isStart","isEnd","isChecked","isHalfChecked","isDisableCheckbox","isSelectable","canHide","nzTreeNode","nzSelectMode","nzShowLine","nzExpandedIcon","nzDraggable","nzCheckable","nzShowExpand","nzAsyncData","nzSearchValue","nzHideUnMatched","nzBeforeDrop","nzShowIcon","nzTreeTemplate","nzExpandChange","nzClick","nzDblClick","nzContextMenu","nzCheckBoxChange","nzOnDragStart","nzOnDragEnter","nzOnDragOver","nzOnDragLeave","nzOnDragEnd","nzOnDrop"]],template:function(i,n){1&i&&(e.TgZ(0,"div"),e._UZ(1,"input",0),e.qZA(),e.TgZ(2,"div",1)(3,"div",2),e._UZ(4,"div",3),e.qZA()(),e.TgZ(5,"div",4),e.YNc(6,te,2,11,"cdk-virtual-scroll-viewport",5)(7,se,2,9,"div",6),e.qZA(),e.YNc(8,re,1,28,"ng-template",null,7,e.W1O)),2&i&&(e.xp6(1),e.Q6J("ngStyle",n.HIDDEN_STYLE),e.xp6(1),e.Q6J("ngStyle",n.HIDDEN_NODE_STYLE),e.xp6(3),e.ekj("ant-select-tree-list",n.nzSelectMode),e.xp6(1),e.Q6J("ngIf",n.nzVirtualHeight),e.xp6(1),e.Q6J("ngIf",!n.nzVirtualHeight))},dependencies:[C.sg,C.O5,C.tP,C.PC,D.P,m.xd,m.x0,m.N7,he],encapsulation:2,data:{animation:[c.lx]},changeDetection:0})}return(0,_.gn)([(0,a.yF)(),(0,d.oS)()],r.prototype,"nzShowIcon",void 0),(0,_.gn)([(0,a.yF)(),(0,d.oS)()],r.prototype,"nzHideUnMatched",void 0),(0,_.gn)([(0,a.yF)(),(0,d.oS)()],r.prototype,"nzBlockNode",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzExpandAll",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzSelectMode",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzCheckStrictly",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzShowExpand",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzShowLine",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzCheckable",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzAsyncData",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzDraggable",void 0),(0,_.gn)([(0,a.yF)()],r.prototype,"nzMultiple",void 0),r})(),fe=(()=>{class r{static#e=this.\u0275fac=function(i){return new(i||r)};static#t=this.\u0275mod=e.oAB({type:r});static#n=this.\u0275inj=e.cJS({imports:[E.vT,C.ez,M.T,S.PV,D.g,x.C,m.Cl]})}return r})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.