balkan-orgchart-js-community 9.1.74 → 9.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/orgchart.js +1 -1
- package/orgchart.mjs +1 -1
- package/package.json +1 -1
package/orgchart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,OrgChart=function(e,t){var i=this;Object.defineProperty(this,"element",{get:()=>e?e.querySelector("[data-boc-content]"):null,set(e){i.mainElement=e}}),Object.defineProperty(this,"mainElement",{get:()=>e,set(t){(e=t)&&(e.innerHTML="\n <style> \n .boc-dark, .boc-light{ display: flex; }\n [data-boc-left]{ display: none; }\n [data-boc-right]{ height: 100%; position: relative; overflow:hidden; flex-grow: 1; }\n [data-boc-content]{ height: 100%; width: 100%; }\n @media screen and (max-width: 500px) {\n .boc-dark, .boc-light{ flex-direction: column; }\n [data-boc-left]{ order: 2; height: 50vh; }\n [data-boc-right]{ order: 1; }\n }\n </style>\n <div data-boc-left></div>\n <div data-boc-right>\n <div data-boc-content></div>\n </div>")}}),Object.defineProperty(this,"leftElement",{get:()=>e.querySelector("[data-boc-left]")}),i.init(e,t)};OrgChart.prototype.init=function(e,t){if(e&&!this._initCalled){this._initCalled=!0,("string"==typeof e||e instanceof String)&&(e=document.querySelector(e)),this.element=e;var i=this;if(this.config=OrgChart.mergeDeep(OrgChart._defaultConfig(t),t),this._layoutConfigs={base:{orientation:this.config.orientation,levelSeparation:this.config.levelSeparation,mixedHierarchyNodesSeparation:this.config.mixedHierarchyNodesSeparation,assistantSeparation:this.config.assistantSeparation,subtreeSeparation:this.config.subtreeSeparation,siblingSeparation:this.config.siblingSeparation,layout:this.config.layout,columns:this.config.columns,collapse:this.config.collapse,partnerNodeSeparation:this.config.partnerNodeSeparation}},this.config.tags)for(var n in this.config.tags){var o=this.config.tags[n];null!=o.subTreeConfig&&(this._layoutConfigs[n]={orientation:null!=o.subTreeConfig.orientation?o.subTreeConfig.orientation:this.config.orientation,levelSeparation:null!=o.subTreeConfig.levelSeparation?o.subTreeConfig.levelSeparation:this.config.levelSeparation,mixedHierarchyNodesSeparation:null!=o.subTreeConfig.mixedHierarchyNodesSeparation?o.subTreeConfig.mixedHierarchyNodesSeparation:this.config.mixedHierarchyNodesSeparation,assistantSeparation:null!=o.subTreeConfig.assistantSeparation?o.subTreeConfig.assistantSeparation:this.config.assistantSeparation,subtreeSeparation:null!=o.subTreeConfig.subtreeSeparation?o.subTreeConfig.subtreeSeparation:this.config.subtreeSeparation,siblingSeparation:null!=o.subTreeConfig.siblingSeparation?o.subTreeConfig.siblingSeparation:this.config.siblingSeparation,layout:null!=o.subTreeConfig.layout?o.subTreeConfig.layout:this.config.layout,columns:null!=o.subTreeConfig.columns?o.subTreeConfig.columns:this.config.columns,collapse:null!=o.subTreeConfig.collapse?o.subTreeConfig.collapse:this.config.collapse,partnerNodeSeparation:null!=o.subTreeConfig.partnerNodeSeparation?o.subTreeConfig.partnerNodeSeparation:this.config.partnerNodeSeparation,template:o.subTreeConfig.template})}this._event_id=OrgChart._guid(),OrgChart._validateConfig(this.config)&&(this._vScroll={},this.config.ui||(this.ui=OrgChart.ui),this.config.editUI?this.editUI=this.config.editUI:this.editUI=new OrgChart.editUI,this.editUI.init(this),this.config.filterUI?this.filterUI=this.config.filterUI:this.filterUI=new OrgChart.filterUI,this.filterUI.init(this),this.manager=new OrgChart.manager(this),this._ai=new OrgChart._ai(this),this.config.searchUI?this.searchUI=this.config.searchUI:this.searchUI=new OrgChart.searchUI,this.config.aiUI?this.aiUI=this.config.aiUI:this.aiUI=new OrgChart.aiUI,this.config.orgScribeUI?this.orgScribeUI=this.config.orgScribeUI:this.orgScribeUI=new OrgChart.orgScribeUI,this.config.powerPointPreviewUI?this.powerPointPreviewUI=this.config.powerPointPreviewUI:this.powerPointPreviewUI=new OrgChart.exportUI("pptx"),this.config.pdfPreviewUI?this.pdfPreviewUI=this.config.pdfPreviewUI:this.pdfPreviewUI=new OrgChart.exportUI("pdf"),this.config.svgPreviewUI?this.svgPreviewUI=this.config.svgPreviewUI:this.svgPreviewUI=new OrgChart.exportUI("svg"),this.config.pngPreviewUI?this.pngPreviewUI=this.config.pngPreviewUI:this.pngPreviewUI=new OrgChart.exportUI("png"),this.config.nodeMenuUI?this.nodeMenuUI=this.config.nodeMenuUI:this.nodeMenuUI=new OrgChart.menuUI,this.nodeMenuUI.init(this,this.config.nodeMenu),this.config.nodeCircleMenuUI?this.nodeCircleMenuUI=this.config.nodeCircleMenuUI:this.nodeCircleMenuUI=new OrgChart.circleMenuUI,this.nodeCircleMenuUI.init(this,this.config.nodeCircleMenu),this.config.nodeContextMenuUI?this.nodeContextMenuUI=this.config.nodeContextMenuUI:this.nodeContextMenuUI=new OrgChart.menuUI,this.nodeContextMenuUI.init(this,this.config.nodeContextMenu),this.config.controlsUI?this.controlsUI=this.config.controlsUI:this.controlsUI=new OrgChart.controlsUI,this.config.toolbarUI?this.toolbarUI=this.config.toolbarUI:this.toolbarUI=new OrgChart.toolbarUI,this.config.notifierUI?this.notifierUI=this.config.notifierUI:this.notifierUI=new OrgChart.notifierUI,this.notifierUI.init(this),this.config.menuUI?this.menuUI=this.config.menuUI:this.menuUI=new OrgChart.menuUI,this.menuUI.init(this,this.config.menu),this.config.xScrollUI||(this.xScrollUI=new OrgChart.xScrollUI(this.element,this.config,function(){return{boundary:i.response.boundary,scale:i.getScale(),viewBox:i.getViewBox(),padding:i.config.padding}},function(e){i.setViewBox(e)},function(){i._draw(!0,OrgChart.action.xScroll)})),this.config.yScrollUI||(this.yScrollUI=new OrgChart.yScrollUI(this.element,this.config,function(){return{boundary:i.response.boundary,scale:i.getScale(),viewBox:i.getViewBox(),padding:i.config.padding}},function(e){i.setViewBox(e)},function(){i._draw(!0,OrgChart.action.xScroll)})),this.config.undoRedoUI?this.undoRedoUI=this.config.undoRedoUI:this.undoRedoUI=new OrgChart.undoRedoUI,this.mainElement.classList.add("boc-"+this.config.mode),this._gragStartedId=null,this._timeout=null,this._touch=null,this._initialized=!1,this._loaded=!1,this._moveInterval=null,this._movePosition=null,this.response=null,this.nodes=null,this.isVisible=null,this._connectorLines={x:{},y:{}},OrgChart._intersectionObserver(this.element,function(e){i.isVisible=e,!1!==OrgChart.events.publish("visibility-change",[i])&&OrgChart.LAZY_LOADING&&i.isVisible&&(i._loaded?i._draw(!1,OrgChart.action.update):(i._setInitialSizeIfNotSet(),i._draw(!1,OrgChart.action.init)))}),this._resizeObserver=new ResizeObserver(e=>{for(let t of e){const{width:e,height:n}=t.contentRect;i._resizeHandler(e,n)}}),this._resizeObserver.observe(this.element))}},OrgChart.prototype.load=function(e,t){var i=this;return this.config.nodes=e,this._draw(!1,OrgChart.action.init,void 0,function(){i.filterUI.update(),t&&t()}),this},OrgChart.prototype.loadXML=function(e,t){var i=OrgChart._xml2json(e);return this.load(i,t)},OrgChart.prototype.getXML=function(){return OrgChart._json2xml(this.config.nodes)},OrgChart.prototype.on=function(e,t){return OrgChart.events.on(e,t,this._event_id),this},OrgChart.prototype.removeListener=function(e,t){return OrgChart.events.remove(e,t,this._event_id)},OrgChart.prototype.draw=function(e,t,i){null==e&&(e=OrgChart.action.update),this._draw(!1,e,t,i)},OrgChart.prototype._draw=function(e,t,i,n){var o=this;if(!OrgChart.LAZY_LOADING||this.isVisible)if(OrgChart.LAZY_LOADING||this._initialized||(this._setInitialSizeIfNotSet(),0!=this.width()&&0!=this.height())){this._hideBeforeAnimationCompleted=!1;var r=t==OrgChart.action.init?null:this.getViewBox();this.manager.read(e,this.width(),this.height(),r,t,i,function(e){if(!o.notifierUI.show(e.notif)){t!=OrgChart.action.exporting&&(o.nodes=e.nodes,o.visibleNodeIds=e.visibleNodeIds,o.roots=e.roots),o._connectorLines={x:{},y:{}},o.editUI.fields=e.allFields;var r={defs:""};OrgChart.events.publish("renderdefs",[o,r]);var a=o.ui.defs(r.defs),l=o.getScale(e.viewBox);a+=o.ui.pointer(o.config,t,l);var s=o.getViewBox(),c=e.viewBox;r={content:a,res:e};OrgChart.events.publish("prerender",[o,r]),a=r.content;var d=[];if(OrgChart.RENDER_LINKS_BEFORE_NODES)for(var h=0;h<e.visibleNodeIds.length;h++){var p=e.nodes[e.visibleNodeIds[h]];OrgChart.getRootOf(p).stParent?d.push(p.id):a+=o.ui.link(p,o,l,e.bordersByRootIdAndLevel,e.nodes,t)}for(h=0;h<e.visibleNodeIds.length;h++){p=e.nodes[e.visibleNodeIds[h]];var u=o._get(p.id);if(OrgChart.RENDER_LINKS_BEFORE_NODES&&d.includes(p.id)&&(a+=o.ui.link(p,o,l,e.bordersByRootIdAndLevel,e.nodes,t)),p.isTreeListItem||(a+=o.ui.node(p,u,e.animations,o.config,void 0,void 0,void 0,t,l,o)),!p.min&&p.treeList){var renderTreeListIterate=function(i){if(!p.treeList.pinnedIds.includes(i.id)){var n=o._get(i.id);a+=o.ui.node(i,n,e.animations,o.config,void 0,void 0,void 0,t,l,o),a+=o.ui.expandCollapseBtn(o,i,n,o.config,o._layoutConfigs,t,l)}for(var r of i.children)renderTreeListIterate(r)},f=OrgChart.randomId();for(var g of(a+=`<clipPath id="treelist_${f}">\n <rect rx="10" ry="10" x="${p.x+p.padding[3]}" y="${p.y+p.padding[0]}" width="${p.w-p.padding[1]-p.padding[3]}" height="${p.h-p.padding[2]-p.padding[0]}">\n </clipPath><g clip-path="url(#treelist_${f})"><g data-treelist-content="${p.id}" transform="matrix(1,0,0,1,0,-${p.treeList.scrollTop})">`,p.stChildren))renderTreeListIterate(g);for(var m of p.treeList.pinnedIds){var x=o.getNode(m),b=o._get(m);a+=o.ui.node(x,b,e.animations,o.config,void 0,void 0,void 0,t,l,o,!0),a+=o.ui.expandCollapseBtn(o,x,b,o.config,o._layoutConfigs,t,l)}var{thumbHeight:y,thumbPosition:v,scrollBarDisplay:_}=OrgChart._treeListGetTumbPositionFromScrollTop(p);a+=`</g>\n\n \n <rect style="display: ${_}" data-treelist-scroll="${p.id}" class="boc-scroll" x="${p.x+p.w-p.padding[1]-OrgChart.TREELIST_SCROLLBAR_WIDTH}" y="${p.y+p.padding[0]}" width="${OrgChart.TREELIST_SCROLLBAR_WIDTH}" height="${p.h-p.padding[2]-p.padding[0]}"></rect>\n <rect style="display: ${_}" data-treelist-thumb="${p.id}" class="boc-scroll-thumb" x="${p.x+p.w-p.padding[1]-OrgChart.TREELIST_SCROLLBAR_WIDTH}" y="${v}" width="${OrgChart.TREELIST_SCROLLBAR_WIDTH}" height="${y}"></rect>\n\n </g>`}}for(h=0;h<e.visibleNodeIds.length;h++){p=e.nodes[e.visibleNodeIds[h]],u=o._get(p.id);p.isTreeListItem||(OrgChart.RENDER_LINKS_BEFORE_NODES||(a+=o.ui.link(p,o,l,e.bordersByRootIdAndLevel,e.nodes,t)),a+=o.ui.expandCollapseBtn(o,p,u,o.config,o._layoutConfigs,t,l))}r={content:a,res:e};if(OrgChart.events.publish("render",[o,r]),a=r.content,e=r.res,a+=o.ui.lonely(o.config),t!==OrgChart.action.exporting){t!==OrgChart.action.centernode&&t!==OrgChart.action.insert&&t!==OrgChart.action.expand&&t!==OrgChart.action.collapse&&t!==OrgChart.action.update||(c=s),t===OrgChart.action.init&&null!=s&&(c=s),t===OrgChart.action.centerNode&&null!=s&&(c=s),o.response=e,o._lastSize={width:o.width(),height:o.height()};A=o.ui.svg("100%","100%",c,o.config,a);if(o._initialized){var w=o.getSvg(),I=w.parentNode;I.removeChild(w),I.insertAdjacentHTML("afterbegin",A),o._attachEventHandlers(),o.xScrollUI.addListener(o.getSvg()),o.yScrollUI.addListener(o.getSvg()),o.xScrollUI.setPosition(),o.yScrollUI.setPosition()}else o.element.innerHTML=o.ui.css()+A+o.ui.menuButton(o.config)+o.ui.aiButton(o.config),o._attachEventHandlers(),o.xScrollUI.create(o.width(),o.config.padding),o.xScrollUI.setPosition(),o.xScrollUI.addListener(o.getSvg()),o.yScrollUI.create(o.height(),o.config.padding),o.yScrollUI.setPosition(),o.yScrollUI.addListener(o.getSvg()),o.config.enableSearch&&o.searchUI.init(o),o.aiUI.init(o),o.orgScribeUI.init(o),o.powerPointPreviewUI.init(o),o.pdfPreviewUI.init(o),o.svgPreviewUI.init(o),o.pngPreviewUI.init(o),o.toolbarUI.init(o,o.config.toolbar),o.undoRedoUI.init(o),o.controlsUI.init(o);var k=!1,C=o.response.animations;if(C[0].length>0){o._hideBeforeAnimation(C[0].length);for(h=0;h<C[0].length;h++)C[0][h]=o.getNodeElement(C[0][h]);OrgChart.animate(C[0],C[1],C[2],o.config.anim.duration,o.config.anim.func,function(){k||(n&&n.call(o),OrgChart.events.publish("redraw",[o]),o._showAfterAnimation(),k=!0)})}t===OrgChart.action.centerNode?OrgChart.animate(o.getSvg(),{viewbox:s},{viewbox:o.response.viewBox},o.config.anim.duration,o.config.anim.func,function(){o.ripple(i.options.rippleId),k||(n&&n.call(o),OrgChart.events.publish("redraw",[o]),o._showAfterAnimation(),k=!0)},function(){o.xScrollUI.setPosition(),o.yScrollUI.setPosition()}):!s||!o.response||s[0]==o.response.viewBox[0]&&s[1]==o.response.viewBox[1]&&s[2]==o.response.viewBox[2]&&s[3]==o.response.viewBox[3]||t!==OrgChart.action.insert&&t!==OrgChart.action.expand&&t!==OrgChart.action.collapse&&t!==OrgChart.action.update&&t!==OrgChart.action.init?0==C[0].length&&(k||(n&&n.call(o),OrgChart.events.publish("redraw",[o]),k=!0)):OrgChart.animate(o.getSvg(),{viewbox:s},{viewbox:o.response.viewBox},2*o.config.anim.duration,o.config.anim.func,function(){o.xScrollUI.setPosition(),o.yScrollUI.setPosition(),k||(n&&n.call(o),OrgChart.events.publish("redraw",[o]),k=!0)}),o._initialized||(o._initialized=!0,o.filterUI.update(),o._ai.setContext(),OrgChart.events.publish("init",[o])),!o._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(o._loaded=!0)}else{var L=e.boundary,S=L.maxX-L.minX,N=L.maxY-L.minY,A=o.ui.svg(S,N,[L.minX,L.minY,S,N],o.config,a,l);n.call(o,A,e)}}},function(e){OrgChart.events.publish("ready",[o,e])})}else console.error("Cannot load the chart with size 0! If you are using the OrgChart within tabs set OrgChart.LAZY_LOADING to true! ")},OrgChart.prototype._setInitialSizeIfNotSet=function(){this.mainElement.style.overflow="hidden",this.mainElement.style.position="relative",0==this.mainElement.offsetHeight&&(this.mainElement.style.height="100%",0==this.mainElement.offsetHeight&&(this.mainElement.style.height="700px")),0==this.mainElement.offsetWidth&&(this.mainElement.style.width="100%",0==this.mainElement.offsetWidth&&(this.mainElement.style.width="700px"))},OrgChart.prototype.width=function(){return this.element.offsetWidth},OrgChart.prototype.height=function(){return this.element.offsetHeight},OrgChart.prototype.getViewBox=function(){var e=this.getSvg();return OrgChart._getViewBox(e)},OrgChart.prototype.setViewBox=function(e){this.getSvg().setAttribute("viewBox",e.toString())},OrgChart.prototype.getScale=function(e){return e||(e=this.getViewBox()),OrgChart.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},OrgChart.prototype.setScale=function(e){e>this.config.scaleMax&&(e=this.config.scaleMax),e<this.config.scaleMin&&(e=this.config.scaleMin);var t=this.getViewBox().slice(0),i=this.width(),n=this.height(),o=i/t[2],r=n/t[3],a=o>r?r:o,l=t,s=t[2],c=t[3];return t[2]=t[2]/(e/a),t[3]=t[3]/(e/a),t[0]=l[0]-(t[2]-s)/2,t[1]=l[1]-(t[3]-c)/2,this.setViewBox(t),OrgChart.events.publish("redraw",[this]),e},OrgChart.prototype.ripple=function(e,t,i){var n=this.getNode(e);if(null!=n){var o=this.getNodeElement(e);if(null!=o){var r=this.getScale(),a=n.w/2,l=n.h/2;if(void 0!==t&&void 0!==i){var s=o.getBoundingClientRect();a=t/r-s.left/r,l=i/r-s.top/r}var c=n.w,d=n.h,h=c-a>a?c-a:a,p=d-l>l?d-l:l,u=h>p?h:p,f=document.createElementNS("http://www.w3.org/2000/svg","g"),g=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),m=document.createElementNS("http://www.w3.org/2000/svg","rect"),x=document.createElementNS("http://www.w3.org/2000/svg","circle"),b=OrgChart.randomId();g.setAttribute("id",b);var y={ripple:OrgChart.t(n.templateName,n.min,this.getScale()).ripple,node:n};OrgChart.events.publish("ripple",[this,y]),m.setAttribute("x",y.ripple.rect?y.ripple.rect.x:0),m.setAttribute("y",y.ripple.rect?y.ripple.rect.y:0),m.setAttribute("width",y.ripple.rect?y.ripple.rect.width:n.w),m.setAttribute("height",y.ripple.rect?y.ripple.rect.height:n.h),m.setAttribute("rx",y.ripple.radius),m.setAttribute("ry",y.ripple.radius),x.setAttribute("clip-path","url(#"+b+")"),x.setAttribute("cx",a),x.setAttribute("cy",l),x.setAttribute("r",0),x.setAttribute("fill",y.ripple.color),x.setAttribute("class","boc-ripple"),g.appendChild(m),f.appendChild(g),f.appendChild(x),o.appendChild(f),OrgChart.animate(x,{r:0,opacity:1},{r:u,opacity:0},500,OrgChart.anim.outPow,function(){o.removeChild(f)})}}},OrgChart.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var i=this;this._centerInNodesTimeout=OrgChart.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){i.draw(OrgChart.action.update,null,function(){e&&e.call(i)})})}},OrgChart.prototype.centerInNodes=function(e,t){var i=this.getViewBox();this._centerInNodes||(this._centerInNodes=JSON.stringify(i));var n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;for(var l of e)l.y<n&&(n=l.y),l.y+l.h>o&&(o=l.y+l.h),l.x<r&&(r=l.x),l.x+l.w>a&&(a=l.x+l.w);var s=a-r,c=o-n,d=(h=s/(s+2*this.config.padding))>(p=c/(c+2*this.config.padding))?p:h;d>this.config.scaleMax&&(d=this.config.scaleMax),d<this.config.scaleMin&&(d=this.config.scaleMin);var h,p,u=[50,50],f=this.width(),g=this.height(),m=(h=f/i[2])>(p=g/i[3])?p:h,x=i,b=i[2],y=i[3];i[2]=i[2]/(d/m),i[3]=i[3]/(d/m),i[0]=x[0]-(i[2]-b)/(100/u[0]),i[1]=x[1]-(i[3]-y)/(100/u[1]),i[0]=r-(f/d-s)/2,i[1]=n-(g/d-c)/2;var v=this;this._centerInNodesTimeout&&(clearTimeout(this._centerInNodesTimeout),this._centerInNodesTimeout=null),this._centerInNodesTimeout=OrgChart.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:i},300,this.config.anim.func,function(){v.draw(OrgChart.action.update,null,function(){t&&t.call(v)})})},OrgChart.prototype.center=function(e,t,i){var n,o,r=e,a=!0,l=!0;t&&null!=t.parentState&&(n=t.parentState),t&&null!=t.childrenState&&(o=t.childrenState),t&&null!=t.rippleId&&(r=t.rippleId),t&&null!=t.vertical&&(a=t.vertical),t&&null!=t.horizontal&&(l=t.horizontal);var s={parentState:n,childrenState:o,rippleId:r,vertical:a,horizontal:l};this._draw(!1,OrgChart.action.centerNode,{id:e,options:s},i)},OrgChart.prototype.fit=function(e){this.config.scaleInitial=OrgChart.match.boundary,this._draw(!0,OrgChart.action.init,{method:"fit"},e)},OrgChart.prototype.fitIfOutside=function(e){this.config.scaleInitial=OrgChart.match.boundaryIfOutside,this._draw(!0,OrgChart.action.init,{method:"fit"},e)},OrgChart.prototype.toggleFullScreen=function(){var e=document.querySelector("["+OrgChart.attr.tlbr+"r='fullScreen']");document.fullscreenElement==this.element||document.webkitFullscreenElement==this.element||document.mozFullScreenElement==this.element||document.msFullscreenElement==this.element?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),e&&(e.innerHTML=OrgChart.toolbarUI.openFullScreenIcon)):(this.element.requestFullscreen?this.element.requestFullscreen():this.element.mozRequestFullScreen?this.element.mozRequestFullScreen():this.element.webkitRequestFullscreen?this.element.webkitRequestFullscreen():this.element.msRequestFullscreen&&this.element.msRequestFullscreen(),e&&(e.innerHTML=OrgChart.toolbarUI.closeFullScreenIcon))},OrgChart.prototype.getNode=function(e){return this.nodes[e]},OrgChart.prototype.setLayout=function(e,t){t||(t="base"),this._layoutConfigs[t].layout=e,"base"==t&&(this.config.layout=e),this._draw(!1,OrgChart.action.update)},OrgChart.prototype.setOrientation=function(e,t,i){var n=this;t||(t="base"),this._layoutConfigs[t].orientation=e,"base"==t&&(this.config.orientation=e),this._draw(!1,OrgChart.action.update,void 0,function(){n.getScale(),OrgChart._moveToBoundaryArea(n.getSvg(),n.getViewBox(),n.response.boundary,function(){n._draw(!0,OrgChart.action.pan),i&&i()})})},OrgChart.prototype.search=function(e,t,i){return OrgChart.isNEU(t)&&(t=this.searchUI._searchFields),OrgChart.isNEU(i)&&(i=t),OrgChart._search.search(this.config.nodes,e,t,i,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},OrgChart.prototype._hideBeforeAnimation=function(e){if(1!=this._hideBeforeAnimationCompleted&&!(e&&e<OrgChart.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName("text");if(t.length>OrgChart.TEXT_THRESHOLD)for(var i=0;i<t.length;i++)t[i].style.display="none";var n=this.element.getElementsByTagName("image");if(n.length>OrgChart.IMAGES_THRESHOLD)for(i=0;i<n.length;i++)n[i].style.display="none";var o=this.element.querySelectorAll("["+OrgChart.attr.link_id+"]");if(o.length>OrgChart.LINKS_THRESHOLD)for(i=0;i<o.length;i++)o[i].style.display="none";var r=this.element.querySelectorAll("["+OrgChart.attr.control_expcoll_id+"]");if(r.length>OrgChart.BUTTONS_THRESHOLD)for(i=0;i<r.length;i++)r[i].style.display="none";var a=this.element.querySelectorAll("["+OrgChart.attr.control_up_id+"]");if(a.length>OrgChart.BUTTONS_THRESHOLD)for(i=0;i<a.length;i++)a[i].style.display="none";this._hideBeforeAnimationCompleted=!0}},OrgChart.prototype._showAfterAnimation=function(){for(var e=this.element.getElementsByTagName("text"),t=0;t<e.length;t++)e[t].style.display="";var i=this.element.getElementsByTagName("image");for(t=0;t<i.length;t++)i[t].style.display="";var n=this.element.querySelectorAll("["+OrgChart.attr.link_id+"]");for(t=0;t<n.length;t++)n[t].style.display="";var o=this.element.querySelectorAll("["+OrgChart.attr.control_expcoll_id+"]");for(t=0;t<o.length;t++)o[t].style.display="";var r=this.element.querySelectorAll("["+OrgChart.attr.control_up_id+"]");for(t=0;t<r.length;t++)r[t].style.display="";this._hideBeforeAnimationCompleted=!1},OrgChart.prototype.isChild=function(e,t){for(var i=this.getNode(t);i;){if(i.id==e)return!0;i=i.parent?i.parent:i.stParent}return!1},OrgChart.prototype.getCollapsedIds=function(e){for(var t=[],i=0;i<e.childrenIds.length;i++){var n=this.getNode(e.childrenIds[i]);1==n.collapsed&&t.push(n.id)}return t},OrgChart.prototype.stateToUrl=function(){if(this.manager.state){var e={};return e.exp=this.manager.state.exp.join("*"),e.min=this.manager.state.min.join("*"),e.adjustify=this.manager.state.adjustify.x+"*"+this.manager.state.adjustify.y,e.scale=this.manager.state.scale,e.y=this.manager.state.x,e.x=this.manager.state.y,new URLSearchParams(e).toString()}return""},OrgChart.prototype.generateId=function(){for(;;){var e="_"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);if(null==this.nodes||!this.nodes.hasOwnProperty(e))return e}},OrgChart.prototype.moveNodesToVisibleArea=function(e,t){for(var i=this,n=this.roots[0],o=this.getSvg(),r=this.getViewBox(),a=null,l=null,s=null,c=null,d=0;d<e.length;d++){var h=this.nodes[e[d]];null!=h.x&&null!=h.y&&((null===a||a<h.x+h.w)&&(a=h.x+h.w),(null===l||l<h.y+h.h)&&(l=h.y+h.h),(null===s||s>h.x)&&(s=h.x),(null===c||c>h.y)&&(c=h.y))}if(null!=a&&null!=l&&null!=s&&null!=c){var p=this.width(),u=this.height(),f=p/(y=a-s+2*this.config.padding),g=u/(v=l-c+2*this.config.padding),m=f>g?g:f,x=Math.ceil(p/m),b=Math.ceil(u/m),y=0,v=0;if(x-2*this.config.padding>=a-s)y=(a+s)/2-x/2;else switch(y=n.x-x/2+OrgChart.manager._getNodeWidth(n,this.config)/2,this.config.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:(y=-(x/2-(s-a)/2))<this.config.padding-x&&(y=this.config.padding-x);break;case OrgChart.orientation.left:case OrgChart.orientation.bottom_left:case OrgChart.orientation.top_left:case OrgChart.orientation.left_top:(y=-(x/2-(a-s)/2))>-this.config.padding&&(y=-this.config.padding)}if(b-2*this.config.padding>=l-c)v=(l+c)/2-b/2;else switch((v=-(b/2-(l-c)/2))>-this.config.padding&&(v=-this.config.padding),this.config.orientation){case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:(v=-(b/2-(c-l)/2))<this.config.padding-b&&(v=this.config.padding-b);break;case OrgChart.orientation.left:case OrgChart.orientation.right:v=n.y-b/2+OrgChart.manager._getNodeWidth(n,this.config)/2}var _=[y,v,x,b];r[0]!==_[0]||r[1]!==_[1]?OrgChart.animate(o,{viewBox:r},{viewBox:_},this.config.anim.duration,this.config.anim.func,function(){i.draw(OrgChart.action.update,void 0,t)}):t&&t()}},OrgChart.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!OrgChart.isNEU(e.pid)&&this.getNode(e.pid)},OrgChart.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),OrgChart.events.removeForEventId(this._event_id),this.element.innerHTML=null},OrgChart.prototype.canUpdateLink=function(e,t){if(null==t||null==t)return!1;if(null==e||null==e)return!1;if(e==t)return!1;var i=this.getNode(t),n=this.getNode(e);return!(i&&n&&(i.isPartner||i.hasPartners&&n.isAssistant||i.hasAssistants&&n.isPartner))&&!this.isChild(e,t)},OrgChart.prototype._canUpdateLink=OrgChart.prototype.canUpdateLink,OrgChart.prototype.updateNode=function(e,t,i,n){if(e){var o=this,r=this.get(e.id);if(!0===i&&!1===OrgChart.events.publish("update",[this,r,e]))return!1;this.update(e),this._ai.setContext(),OrgChart.events.publish("updated",[this]),this.filterUI.update();var a=this.getNode(e.id),l=a.pid;null==l&&(l=a.stpid),this._draw(!1,OrgChart.action.update,{id:l},function(){n||o.ripple(e.id),t&&t()})}},OrgChart.prototype.update=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e.id){this._putInUndoStack(),this.clearRedo(),this.config.nodes[t]=e;break}return this},OrgChart.prototype.removeNode=function(e,t,i){if(!this.canRemove(e))return!1;var n=this._getNewPidsAndStpidsForIds(e);return(!0!==i||!1!==OrgChart.events.publish("remove",[this,e,n]))&&(this.remove(e),this._ai.setContext(),OrgChart.events.publish("updated",[this]),this.filterUI.update(),this._draw(!1,OrgChart.action.update,null,function(){t&&t()}),!0)},OrgChart.prototype.remove=function(e){var t=this.get(e);if(t){this._putInUndoStack(),this.clearRedo();for(var i=this.config.nodes.length-1;i>=0;i--)this.config.nodes[i].pid!=e&&this.config.nodes[i].stpid!=e||(this.config.nodes[i].pid=t.pid,this.config.nodes[i].stpid=t.stpid),this.config.nodes[i].id==e&&this.config.nodes.splice(i,1)}return this},OrgChart.prototype._getNewPidsAndStpidsForIds=function(e){var t=this.get(e),i={},n={};if(t)for(var o=this.config.nodes.length-1;o>=0;o--)this.config.nodes[o].pid==e?i[this.config.nodes[o].id]=t.pid:this.config.nodes[o].stpid==e&&(n[this.config.nodes[o].id]=t.stpid);return{newPidsForIds:i,newStpidsForIds:n}},OrgChart.prototype.addNode=function(e,t,i){var n=this;if(!0===i&&!1===OrgChart.events.publish("add",[this,e]))return!1;this.add(e),this._ai.setContext(),OrgChart.events.publish("updated",[this]),this.filterUI.update(),n._draw(!1,OrgChart.action.insert,{id:e.pid,insertedNodeId:e.id},function(){n.ripple(e.id),t&&t()})},OrgChart.prototype.add=function(e){if(null==e.id&&console.error("Call addNode without id"),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!OrgChart.isNEU(e.pid)){var t=this._get(e.pid);t&&(null!=t.movex&&(e.movex=t.movex),null!=t.movey&&(e.movey=t.movey))}return this.config.nodes.push(e),this},OrgChart.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,OrgChart.action.update,void 0,t)},OrgChart.prototype._replaceIds=function(e){for(var replaceSecondLinksIds=function(t){for(var i=0;i<t.length;i++){var n=t[i];for(var o in e){var r=e[o];n.from==o&&(n.from=r),n.to==o&&(n.to=r)}}},t=0;t<this.config.nodes.length;t++){var i=this.config.nodes[t];for(var n in e){var o=e[n];i.id==n&&(i.id=o),i.pid==n&&(i.pid=o),i.stpid==n&&(i.stpid=o),i.ppid==n&&(i.ppid=o)}}if(Array.isArray(this.config.roots))for(t=0;t<this.config.roots.length;t++)OrgChart.isNEU(e[this.config.roots[t]])||(this.config.roots[t]=e[this.config.roots[t]]);if(this.nodes)for(var r in this.nodes)if(!OrgChart.isNEU(e[r])){o=e[r];(a=this.nodes[r]).id=o,this.nodes[o]=a}if(this.manager.oldNodes)for(var r in this.manager.oldNodes)if(!OrgChart.isNEU(e[r])){o=e[r];(a=this.manager.oldNodes[r]).id=o,this.manager.oldNodes[o]=a}if(this.roots)for(var r in this.roots)if(!OrgChart.isNEU(e[r])){var a;o=e[r];(a=this.roots[r]).id=o,this.roots[o]=a}replaceSecondLinksIds(this.config.clinks),replaceSecondLinksIds(this.config.slinks),replaceSecondLinksIds(this.config.groupDottedLines),replaceSecondLinksIds(this.config.dottedLines)},OrgChart.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!OrgChart.isNEU(e)&&"string"==typeof e&&(-1!=e.indexOf("balkan_group_dotted_")||-1!=e.indexOf("balkan_dotted_"))){var i=(e=(e=e.replace("balkan_group_dotted_","")).replace("balkan_dotted_","")).indexOf("_balkan_id_");if(e=e.substring(i+11),t=this.__get(e))return t}return null},OrgChart.prototype.__get=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e)return this.config.nodes[t];return null},OrgChart.prototype.get=function(e){var t=this._get(e);return null==t?null:JSON.parse(JSON.stringify(t))},OrgChart.prototype.canRemove=function(e){var t=this.getNode(e);return!!t&&(!t.hasPartners&&!t.hasAssistants)},void 0===OrgChart&&(OrgChart={}),OrgChart.animate=function(e,t,i,n,o,r,a){var l,s=10,c=1,d=n/s+1;return document.getElementsByTagName("g"),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]),l=setInterval(function(){for(var h=0;h<e.length;h++)for(var p in i[h]){var u=OrgChart._arrayContains(["top","left","right","bottom","width","height"],p.toLowerCase())?"px":"";switch(p.toLowerCase()){case"d":var f=o((c*s-s)/n)*(i[h][p][0]-t[h][p][0])+t[h][p][0],g=o((c*s-s)/n)*(i[h][p][1]-t[h][p][1])+t[h][p][1];e[h].setAttribute("d",e[h].getAttribute("d")+" L"+f+" "+g);break;case"r":var m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("r",m);break;case"x1":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("x1",m);break;case"x2":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("x2",m);break;case"y1":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("y1",m);break;case"y2":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("y2",m);break;case"scrolltop":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].scrollTop=m;break;case"rotate3d":if(i[h][p]){var x=t[h][p],b=i[h][p],y=[0,0,0,0];for(var v in x)y[v]=o((c*s-s)/n)*(b[v]-x[v])+x[v];e[h].style.transform="rotate3d("+y.toString()+"deg)"}break;case"transform":if(i[h][p]){x=t[h][p],b=i[h][p],y=[0,0,0,0,0,0];for(var v in x)y[v]=o((c*s-s)/n)*(b[v]-x[v])+x[v];e[h].hasAttribute("transform")?e[h].setAttribute("transform","matrix("+y.toString()+")"):e[h].style.transform="matrix("+y.toString()+")"}break;case"viewbox":if(i[h][p]){x=t[h][p],b=i[h][p],y=[0,0,0,0];for(var v in x)y[v]=o((c*s-s)/n)*(b[v]-x[v])+x[v];e[h].setAttribute("viewBox",y.toString())}break;case"margin":if(i[h][p]){x=t[h][p],b=i[h][p],y=[0,0,0,0];for(var v in x)y[v]=o((c*s-s)/n)*(b[v]-x[v])+x[v];var _="";for(v=0;v<y.length;v++)_+=parseInt(y[v])+"px ";e[h]&&e[h].style&&(e[h].style[p]=_)}break;case"scrolly":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].scrollTo(0,m);break;default:m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h]&&e[h].style&&(e[h].style[p]=m+u)}}if(a){m=o((c*s-s)/n);a(m)}(c+=1)>d+1&&(clearInterval(l),r&&r(e))},s)},OrgChart.anim={},OrgChart.anim.inPow=function(e){return e<0?0:e>1?1:Math.pow(e,2)},OrgChart.anim.outPow=function(e){if(e<0)return 0;if(e>1)return 1;return-1*(Math.pow(e-1,2)+-1)},OrgChart.anim.inOutPow=function(e){if(e<0)return 0;if(e>1)return 1;if((e*=2)<1)return OrgChart.anim.inPow(e,2)/2;return-.5*(Math.pow(e-2,2)+-2)},OrgChart.anim.inSin=function(e){return e<0?0:e>1?1:1-Math.cos(e*(Math.PI/2))},OrgChart.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(e*(Math.PI/2))},OrgChart.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},OrgChart.anim.inExp=function(e){return e<0?0:e>1?1:Math.pow(2,10*(e-1))},OrgChart.anim.outExp=function(e){return e<0?0:e>1?1:1-Math.pow(2,-10*e)},OrgChart.anim.inOutExp=function(e){return e<0?0:e>1?1:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,10*(-2*e+1)))},OrgChart.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},OrgChart.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},OrgChart.anim.inOutCirc=function(e){return e<0?0:e>1?1:e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(2*e-2)*(2*e-2))+1)},OrgChart.anim.rebound=function(e){return e<0?0:e>1?1:e<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-1.5/2.75)*(e-1.5/2.75)+.75):e<2.5/2.75?1-(7.5625*(e-2.25/2.75)*(e-2.25/2.75)+.9375):1-(7.5625*(e-2.625/2.75)*(e-2.625/2.75)+.984375)},OrgChart.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},OrgChart.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},OrgChart.anim.inOutBack=function(e){return e<0?0:e>1?1:e<.5?4*e*e*(7.1898*e-2.5949)*.5:.5*((2*e-2)*(2*e-2)*(3.5949*(2*e-2)+2.5949)+2)},OrgChart.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},OrgChart.anim.expPulse=function(e){return Math.exp(-2*Math.pow(e,2))},void 0===OrgChart&&(OrgChart={}),OrgChart.prototype._attachEventHandlers=function(e){if(this.config.interactive){e=this.getSvg();var t=this;e.addEventListener("touchstart",function(e){e.preventDefault(),t._globalMouseDownHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener("mousedown",function(e){t._globalMouseDownHandler.apply(t,[this,e])},{passive:!0}),e.addEventListener("contextmenu",function(e){t._globalContextHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener("dblclick",function(e){t._globalDbClickHandler.apply(t,[this,e])},{passive:!0}),this.config.mouseScrool!=OrgChart.action.none&&e.addEventListener("wheel",function(e){t._mouseScrollHandler.apply(t,[this,e])},{passive:!1});var i=this.getMenuButton();i&&i.addEventListener("click",function(e){t._menuClickHandler.apply(t,[this,e])})}},void 0===OrgChart&&(OrgChart={}),OrgChart.VERSION="9.1.74",OrgChart.orientation={},OrgChart.orientation.top=0,OrgChart.orientation.bottom=1,OrgChart.orientation.right=2,OrgChart.orientation.left=3,OrgChart.orientation.top_left=4,OrgChart.orientation.bottom_left=5,OrgChart.orientation.right_top=6,OrgChart.orientation.left_top=7,OrgChart.anchor={top_right:"top_right",right_top:"right_top",bottom_right:"bottom_right",right_bottom:"right_bottom",top_left:"top_left",left_top:"left_top",bottom_left:"bottom_left",left_bottom:"left_bottom",top:"top",bottom:"bottom",left:"left",right:"right"},OrgChart.align={},OrgChart.align.center=OrgChart.CENTER=8,OrgChart.align.orientation=OrgChart.ORIENTATION=9,OrgChart.attr={},OrgChart.attr.l="data-l",OrgChart.attr.id="data-id",OrgChart.attr.sl="data-sl",OrgChart.attr.lbl="data-lbl",OrgChart.attr.val="data-val",OrgChart.attr.tlbr="data-tlbr",OrgChart.attr.item="data-item",OrgChart.attr.layout="data-layout",OrgChart.attr.node_id="data-n-id",OrgChart.attr.link_id="data-l-id",OrgChart.attr.field_name="data-f-name",OrgChart.attr.c_link_to="data-c-l-to",OrgChart.attr.c_link_from="data-c-l-from",OrgChart.attr.s_link_to="data-s-l-to",OrgChart.attr.s_link_from="data-s-l-from",OrgChart.attr.control_add="data-ctrl-add",OrgChart.attr.control_expcoll_id="data-ctrl-ec-id",OrgChart.attr.control_up_id="data-ctrl-up-id",OrgChart.attr.control_export_menu="data-ctrl-menu",OrgChart.attr.control_node_menu_id="data-ctrl-n-menu-id",OrgChart.attr.control_node_circle_menu_id="data-ctrl-n-c-menu-id",OrgChart.attr.control_node_circle_menu_name="data-ctrl-n-c-menu-name",OrgChart.attr.control_node_circle_menu_wrraper_id="data-ctrl-n-c-menu-wrapper-id",OrgChart.attr.width="data-width",OrgChart.attr.text_overflow="data-text-overflow",OrgChart.ID="id",OrgChart.PID="pid",OrgChart.STPID="stpid",OrgChart.TAGS="tags",OrgChart.NODES="nodes",OrgChart.ELASTIC="elastic",OrgChart.ASSISTANT="Assistant",OrgChart.action={},OrgChart.action.expand=0,OrgChart.action.collapse=1,OrgChart.action.maximize=101,OrgChart.action.minimize=102,OrgChart.action.expandCollapse=501,OrgChart.action.edit=1,OrgChart.action.zoom=2,OrgChart.action.ctrlZoom=22,OrgChart.action.scroll=41,OrgChart.action.xScroll=3,OrgChart.action.yScroll=4,OrgChart.action.none=5,OrgChart.action.init=6,OrgChart.action.update=7,OrgChart.action.move=70,OrgChart.action.pan=8,OrgChart.action.centerNode=9,OrgChart.action.resize=10,OrgChart.action.insert=11,OrgChart.action.insertfirst=12,OrgChart.action.details=13,OrgChart.action.exporting=14,OrgChart.none=400001,OrgChart.scroll={},OrgChart.scroll.visible=!0,OrgChart.scroll.smooth=12,OrgChart.scroll.speed=120,OrgChart.scroll.safari={smooth:12,speed:250},OrgChart.match={},OrgChart.match.height=100001,OrgChart.match.width=100002,OrgChart.match.boundary=100003,OrgChart.match.boundaryIfOutside=100004,OrgChart.match.none=1,OrgChart.movable={},OrgChart.movable.node="node",OrgChart.movable.tree="tree",OrgChart.movable.detachTree="detachTree",OrgChart.layout={},OrgChart.layout.normal=OrgChart.normal=0,OrgChart.layout.mixed=OrgChart.mixed=1,OrgChart.layout.tree=OrgChart.tree=2,OrgChart.layout.treeLeftOffset=OrgChart.treeLeftOffset=3,OrgChart.layout.treeRightOffset=OrgChart.treeRightOffset=4,OrgChart.layout.treeLeft=5,OrgChart.layout.treeRight=6,OrgChart.layout.grid=-1,OrgChart.layout.treeList=-2,OrgChart.nodeOpenTag="<g "+OrgChart.attr.node_id+'="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" '+OrgChart.attr.sl+'="{sl}" '+OrgChart.attr.l+'="{level}" {lcn}>',OrgChart.linkOpenTag="<g "+OrgChart.attr.link_id+'="[{id}][{child-id}]" class="{class}">',OrgChart.expcollOpenTag="<g "+OrgChart.attr.control_expcoll_id+'="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">',OrgChart.upOpenTag="<g "+OrgChart.attr.control_up_id+'="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">',OrgChart.linkFieldsOpenTag='<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">',OrgChart.grCloseTag="</g>",OrgChart.A5={width:420,height:595},OrgChart.A4={width:595,height:842},OrgChart.A3={width:842,height:1191},OrgChart.A2={width:1191,height:1684},OrgChart.A1={width:1684,height:2384},OrgChart.Letter={width:612,height:791},OrgChart.Legal={width:612,height:1009},OrgChart.Legal={width:612,height:1009},OrgChart.Widescreen={width:720,height:1280},OrgChart.Standard={width:720,height:960},OrgChart.COLLAPSE_PARENT_NEIGHBORS=1,OrgChart.COLLAPSE_SUB_CHILDRENS=2,OrgChart.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,OrgChart.TEXT_THRESHOLD=4e3,OrgChart.IMAGES_THRESHOLD=1e3,OrgChart.LINKS_THRESHOLD=2e3,OrgChart.BUTTONS_THRESHOLD=700,OrgChart.ANIM_THRESHOLD=500,OrgChart.IT_IS_LONELY_HERE='<g transform="translate(-100, 0)" style="cursor:pointer;" '+OrgChart.attr.control_add+'="control-add"><text fill="#039be5">{link}</text></g>',OrgChart.RES={},OrgChart.IT_IS_LONELY_HERE_LINK=OrgChart.RES.IT_IS_LONELY_HERE_LINK="It's lonely here, add your first node",OrgChart.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,OrgChart.STRING_TAGS=!1,OrgChart.MAX_NODES_MESS="The trial has expired or 200 nodes limit was reached! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>",OrgChart.OFFLINE_MESS="The evaluation version requires internet connection! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>",OrgChart.SEARCH_PLACEHOLDER="Search... type ? to get help.",OrgChart.SEARCH_HELP_SYMBOL="?",OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,OrgChart.SEARCH_RESULT_LIMIT=10,OrgChart.IMPORT_MESSAGE="Choose the columns (fields) in your data file that contain the required information.",OrgChart.FIXED_POSITION_ON_CLICK=!1,OrgChart.RENDER_LINKS_BEFORE_NODES=!1,OrgChart.RENDER_CLINKS_BEFORE_NODES=!1,OrgChart.MIXED_LAYOUT_ALL_NODES=!1,OrgChart.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,OrgChart.LINK_ROUNDED_CORNERS=5,OrgChart.MOVE_STEP=5,OrgChart.CLINK_CURVE=1,OrgChart.MAX_DEPTH=200,OrgChart.SCALE_FACTOR=1.44,OrgChart.LAZY_LOADING_FACTOR="auto",OrgChart.LAZY_LOADING=!0,OrgChart.ARRAY_FIELDS=["tags"],OrgChart.CSV_DELIMITER=",",OrgChart.EDITFORM_CLOSE_BTN='<svg data-edit-from-close class="boc-edit-form-close"><path style="fill:#ffffff;" d="M21.205,5.007c-0.429-0.444-1.143-0.444-1.587,0c-0.429,0.429-0.429,1.143,0,1.571l8.047,8.047H1.111 C0.492,14.626,0,15.118,0,15.737c0,0.619,0.492,1.127,1.111,1.127h26.554l-8.047,8.032c-0.429,0.444-0.429,1.159,0,1.587 c0.444,0.444,1.159,0.444,1.587,0l9.952-9.952c0.444-0.429,0.444-1.143,0-1.571L21.205,5.007z"></path></svg>',OrgChart.ESCAPE_HTML=!1,OrgChart.VERTICAL_CHILDREN_ASSISTANT=!1,OrgChart.EXPORT_PAGES_CUT_NODES=!1,OrgChart.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,OrgChart.FILTER_ALPHABETICALLY=!0,OrgChart.SERVER_PREFIX=".azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs",OrgChart.FUNC_URL_NAME="func-url-orgchartjs",OrgChart.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,OrgChart.AI_SYSTEM_MESSAGES=[],OrgChart.ORGSCRIBE_OFFSET=" ",OrgChart.TREELIST_WHEEL_STEP="auto",OrgChart.TREELIST_SCROLLBAR_WIDTH=10,OrgChart.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,OrgChart.REQUEST_CUSTOM_HEADERS={},OrgChart.SLINK_GAP=7,OrgChart._intersects=function(e,t,i){var n=e.x-i.siblingSeparation/4,o=e.y,r=e.x+e.w+i.siblingSeparation/4,a=e.y;switch(i.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:n=e.x,o=e.y-i.siblingSeparation/4,r=e.x,a=e.y+e.h+i.siblingSeparation/4}var l,s,c=t.p,d=t.q,h=t.r,p=t.s,u=(r-n)*(p-d)-(h-c)*(a-o);return 0!==u&&(l=((o-a)*(h-n)+(r-n)*(p-o))/u,0<(s=((p-d)*(h-n)+(c-h)*(p-o))/u)&&s<1&&0<l&&l<1)},OrgChart._addPoint=function(e,t,i,n,o){switch(i.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:return OrgChart._addPointTop(e,t,i,n,o);case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return OrgChart._addPointBottom(e,t,i,n,o);case OrgChart.orientation.left:case OrgChart.orientation.left_top:return OrgChart._addPointLeft(e,t,i,n,o);case OrgChart.orientation.right:case OrgChart.orientation.right_top:return OrgChart._addPointRight(e,t,i,n,o)}},OrgChart._addPointTop=function(e,t,i,n,o){var r,a,l;return"left"==o?r=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-i.siblingSeparation/2:"right"==o&&(r=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+i.siblingSeparation/2),t.push([r,t[t.length-1][1]]),t.push([r,e.y-i.levelSeparation/3]),a=t[t.length-1][1],l=r,n.p=r,n.q=a,n.r=l,n},OrgChart._addPointBottom=function(e,t,i,n,o){var r,a,l;return"left"==o?r=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-i.siblingSeparation/2:"right"==o&&(r=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+i.siblingSeparation/2),t.push([r,t[t.length-1][1]]),t.push([r,e.y+e.h+i.levelSeparation/3]),a=t[t.length-1][1],l=r,n.p=r,n.q=a,n.r=l,n},OrgChart._addPointLeft=function(e,t,i,n,o){var r,a=t[t.length-1][0];"bottom"==o?r=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+i.siblingSeparation/2:"top"==o&&(r=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-i.siblingSeparation/2),t.push([t[t.length-1][0],r]),t.push([e.x-i.levelSeparation/3,r]),a=t[t.length-1][0];var l=r;return n.p=a,n.q=r,n.s=l,n},OrgChart._addPointRight=function(e,t,i,n,o){var r,a=t[t.length-1][0];"bottom"==o?r=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+i.siblingSeparation/2:"top"==o&&(r=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-i.siblingSeparation/2),t.push([t[t.length-1][0],r]),t.push([e.x+e.w+i.levelSeparation/3,r]),a=t[t.length-1][0];var l=r;return n.p=a,n.q=r,n.s=l,n},OrgChart._addConnectorLines=function(e,t){OrgChart._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),OrgChart._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),OrgChart._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},OrgChart._addConnectorLine=function(e,t){if(t.x1==t.x2){if(e.x[t.x1]||(e.x[t.x1]=[]),t.y1>t.y2){var i=t.y1;t.y1=t.y2,t.y2=i}e.x[t.x1].push({y1:t.y1,y2:t.y2})}if(t.y1==t.y2){if(e.y[t.y1]||(e.y[t.y1]=[]),t.x1>t.x2){var n=t.x1;t.x1=t.x2,t.x2=n}e.y[t.y1].push({x1:t.x1,x2:t.x2})}},OrgChart._addLineToPath=function(e,t,i){return OrgChart._avoidOverlapping(t,i),e.push([i.x1,i.y1]),e.push([i.x2,i.y2]),OrgChart._addConnectorLine(t,i),i},OrgChart._slinkRemoveUnusedPoints=function(e){for(var t=e.length-2;t>=1;t--){var i=e[t-1],n=e[t],o=e[t+1];(n[0]==i[0]&&n[0]==o[0]||n[1]==i[1]&&n[1]==o[1])&&e.splice(t,1)}},OrgChart._slinkAvoidOverlaping=function(e,t,i,n){for(var o=1;o<t.length;o++){var r=t[o-1],a=t[o];if(r[0]==a[0]){for(var l=e.x[a[0]];l;){var s=!0;for(var c of l)if(c.y1<=r[1]&&c.y2>=r[1]||c.y1<=a[1]&&c.y2>=a[1]){n==OrgChart.orientation.top||n==OrgChart.orientation.top_left?"left"==i?a[0]-=OrgChart.SLINK_GAP:"right"==i&&(a[0]+=OrgChart.SLINK_GAP):n!=OrgChart.orientation.bottom&&n!=OrgChart.orientation.bottom_left||("right"==i?a[0]+=OrgChart.SLINK_GAP:"left"==i&&(a[0]-=OrgChart.SLINK_GAP)),s=!1;break}if(s)break;l=e.x[a[0]]}r[0]=a[0]}var d=!0;if(r[1]==a[1]&&r[0]>=a[0]&&(d=!1),d&&r[1]==a[1]){for(l=e.y[a[1]];l;){s=!0;for(var c of l)if(c.x1<=r[0]&&c.x2>=r[0]||c.x1<=a[0]&&c.x2>=a[0]){r[0]>=a[0]||(n==OrgChart.orientation.top||n==OrgChart.orientation.top_left?a[1]-=OrgChart.SLINK_GAP:n!=OrgChart.orientation.bottom&&n!=OrgChart.orientation.bottom_left||(a[1]+=OrgChart.SLINK_GAP),s=!1);break}if(s)break;l=e.y[a[1]]}r[1]=a[1]}d&&OrgChart._addConnectorLine(e,{x1:r[0],y1:r[1],x2:a[0],y2:a[1]})}},OrgChart._slinkAvoidOverlapingSecond=function(e,t,i){for(var n=1;n<t.length;n++){var o=t[n-1],r=t[n],a=!1;if(o[1]==r[1]){for(var l=e.y[r[1]];l;){var s=!0;for(var c of l)if(c.x1<=o[0]&&c.x2>=o[0]||c.x1<=r[0]&&c.x2>=r[0]){o[0]>=r[0]?(i==OrgChart.orientation.top||i==OrgChart.orientation.top_left?r[1]-=OrgChart.SLINK_GAP:i!=OrgChart.orientation.bottom&&i!=OrgChart.orientation.bottom_left||(r[1]+=OrgChart.SLINK_GAP),s=!1):a=!0;break}if(s)break;l=e.y[r[1]]}o[1]=r[1]}a||OrgChart._addConnectorLine(e,{x1:o[0],y1:o[1],x2:r[0],y2:r[1]})}},OrgChart._slinkAvoidOverlaping2=function(e,t,i,n){for(var o=1;o<t.length;o++){var r=t[o-1],a=t[o];if(r[1]==a[1]){for(var l=e.y[a[1]];l;){var s=!0;for(var c of l)if(c.x1<=r[0]&&c.x2>=r[0]||c.x1<=a[0]&&c.x2>=a[0]){n==OrgChart.orientation.left||n==OrgChart.orientation.left_top?"top"==i?a[1]-=OrgChart.SLINK_GAP:"bottom"==i&&(a[1]+=OrgChart.SLINK_GAP):n!=OrgChart.orientation.right&&n!=OrgChart.orientation.right_top||("bottom"==i?a[1]+=OrgChart.SLINK_GAP:"top"==i&&(a[1]-=OrgChart.SLINK_GAP)),s=!1;break}if(s)break;l=e.y[a[1]]}r[1]=a[1]}var d=!0;if(r[0]==a[0]&&r[1]>=a[1]&&(d=!1),d&&r[0]==a[0]){for(l=e.x[a[0]];l;){s=!0;for(var c of l)if(c.y1<=r[1]&&c.y2>=r[1]||c.y1<=a[1]&&c.y2>=a[1]){r[1]>=a[1]||(n==OrgChart.orientation.left||n==OrgChart.orientation.left_top?a[0]-=OrgChart.SLINK_GAP:n!=OrgChart.orientation.right&&n!=OrgChart.orientation.right_top||(a[0]+=OrgChart.SLINK_GAP),s=!1);break}if(s)break;l=e.x[a[0]]}r[0]=a[0]}d&&OrgChart._addConnectorLine(e,{x1:r[0],y1:r[1],x2:a[0],y2:a[1]})}},OrgChart._slinkAvoidOverlapingSecond2=function(e,t,i){for(var n=1;n<t.length;n++){var o=t[n-1],r=t[n],a=!1;if(o[0]==r[0]){for(var l=e.x[r[0]];l;){var s=!0;for(var c of l)if(c.y1<=o[1]&&c.y2>=o[1]||c.y1<=r[1]&&c.y2>=r[1]){o[1]>=r[1]?(i==OrgChart.orientation.left||i==OrgChart.orientation.left_top?r[0]-=OrgChart.SLINK_GAP:i!=OrgChart.orientation.right&&i!=OrgChart.orientation.right_top||(r[0]+=OrgChart.SLINK_GAP),s=!1):a=!0;break}if(s)break;l=e.x[r[0]]}o[0]=r[0]}a||OrgChart._addConnectorLine(e,{x1:o[0],y1:o[1],x2:r[0],y2:r[1]})}},OrgChart.prototype.getSvg=function(){return this.element.querySelector("svg")},OrgChart.prototype.getPointerElement=function(){return this.element.querySelector("g[data-pointer]")},OrgChart.prototype.getNodeElement=function(e){return this.element.querySelector("["+OrgChart.attr.node_id+"='"+e+"']")},OrgChart.prototype.getMenuButton=function(){return this.element.querySelector("["+OrgChart.attr.control_export_menu+"]")},OrgChart.notifierUI=function(){},OrgChart.notifierUI.prototype.init=function(e){this.obj=e},OrgChart.notifierUI.prototype.show=function(e,t){if(null==e)return!1;1==e&&(e=OrgChart.MAX_NODES_MESS,t="#FFCA28"),2==e&&(e=OrgChart.OFFLINE_MESS,t="#FFCA28");var i=document.createElement("div");i.innerHTML=e,Object.assign(i.style,{position:"absolute","background-color":t,color:"#ffffff",padding:"15px","border-radius":"40px",opacity:0,overflow:"hidden","white-space":"nowrap","text-align":"center"}),this.obj.element.appendChild(i);var n=this.obj.width()/2-i.offsetWidth/2,o=this.obj.height()/2-i.offsetHeight/2;i.style.left=n+"px",i.style.top=o+"px";var r=i.offsetWidth;return i.style.width="20px",OrgChart.animate(i,{opacity:0,width:10},{opacity:1,width:r},this.obj.config.anim.duration,this.obj.config.anim.func),!0},void 0===OrgChart&&(OrgChart={}),OrgChart.icon={},OrgChart.icon.png_export=OrgChart.icon.png_preview=OrgChart.icon.pngpreview=OrgChart.icon.png=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${n}" y="${o}">\n <path fill="${i}" d="M146.747,276.708c0-13.998-9.711-22.352-26.887-22.352c-6.99,0-11.726,0.675-14.204,1.355v44.927 c2.932,0.676,6.539,0.896,11.52,0.896C135.449,301.546,146.747,292.28,146.747,276.708z"/>\n <path fill="${i}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M234.344,335.86v45.831h-31.601V229.524h40.184 l31.611,55.759c9.025,16.031,18.064,34.983,24.825,52.154h0.675c-2.257-20.103-2.933-40.643-2.933-63.44v-44.473h31.614v152.167 h-36.117l-32.516-58.703c-9.049-16.253-18.971-35.892-26.438-53.727l-0.665,0.222C233.906,289.58,234.344,311.027,234.344,335.86z M71.556,381.691V231.56c10.613-1.804,25.516-3.159,46.506-3.159c21.215,0,36.353,4.061,46.509,12.192 c9.698,7.673,16.255,20.313,16.255,35.219c0,14.897-4.959,27.549-13.999,36.123c-11.738,11.063-29.123,16.031-49.441,16.031 c-4.522,0-8.593-0.231-11.736-0.675v54.411H71.556V381.691z M453.601,523.353H97.2V419.302h356.4V523.353z M485.652,374.688 c-10.61,3.607-30.713,8.585-50.805,8.585c-27.759,0-47.872-7.003-61.857-20.545c-13.995-13.1-21.684-32.97-21.452-55.318 c0.222-50.569,37.03-79.463,86.917-79.463c19.644,0,34.783,3.829,42.219,7.446l-7.214,27.543c-8.369-3.617-18.752-6.55-35.458-6.55 c-28.656,0-50.341,16.256-50.341,49.22c0,31.382,19.649,49.892,47.872,49.892c7.895,0,14.218-0.901,16.934-2.257v-31.835h-23.493 v-26.869h56.679V374.688z"/>\n </svg>`},OrgChart.icon.pdf_export=OrgChart.icon.pdf_preview=OrgChart.icon.pdfpreview=OrgChart.icon.pdf=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${n}" y="${o}">\n <path fill="${i}" d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"/>\n <path fill="${i}" d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"/>\n <path fill="${i}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"/>\n </svg>`},OrgChart.icon.svg_export=OrgChart.icon.svg_preview=OrgChart.icon.svg=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${n}" y="${o}">\n <path fill="${i}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M338.871,225.672L284.545,386.96h-42.591 l-51.69-161.288h39.967l19.617,68.196c5.508,19.143,10.531,37.567,14.36,57.67h0.717c4.061-19.385,9.089-38.527,14.592-56.953 l20.585-68.918h38.77V225.672z M68.458,379.54l7.415-30.153c9.811,5.021,24.888,10.051,40.439,10.051 c16.751,0,25.607-6.935,25.607-17.465c0-10.052-7.662-15.795-27.05-22.734c-26.8-9.328-44.263-24.168-44.263-47.611 c0-27.524,22.971-48.579,61.014-48.579c18.188,0,31.591,3.823,41.159,8.131l-8.126,29.437c-6.465-3.116-17.945-7.657-33.745-7.657 c-15.791,0-23.454,7.183-23.454,15.552c0,10.296,9.089,14.842,29.917,22.731c28.468,10.536,41.871,25.365,41.871,48.094 c0,27.042-20.812,50.013-65.09,50.013C95.731,389.349,77.538,384.571,68.458,379.54z M453.601,523.353H97.2V419.302h356.4V523.353z M488.911,379.54c-11.243,3.823-32.537,9.103-53.831,9.103c-29.437,0-50.73-7.426-65.57-21.779 c-14.839-13.875-22.971-34.942-22.738-58.625c0.253-53.604,39.255-84.235,92.137-84.235c20.81,0,36.852,4.073,44.74,7.896 l-7.657,29.202c-8.859-3.829-19.849-6.95-37.567-6.95c-30.396,0-53.357,17.233-53.357,52.173c0,33.265,20.81,52.882,50.73,52.882 c8.375,0,15.072-0.96,17.94-2.395v-33.745h-24.875v-28.471h60.049V379.54L488.911,379.54z" />\n </svg>`},OrgChart.icon.csv_export=OrgChart.icon.csv=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 548.29 548.291" x="${n}" y="${o}">'\n <path fill="${i}" d="M486.2,196.121h-13.164V132.59c0-0.399-0.064-0.795-0.116-1.2c-0.021-2.52-0.824-5-2.551-6.96L364.656,3.677 c-0.031-0.034-0.064-0.044-0.085-0.075c-0.629-0.707-1.364-1.292-2.141-1.796c-0.231-0.157-0.462-0.286-0.704-0.419 c-0.672-0.365-1.386-0.672-2.121-0.893c-0.199-0.052-0.377-0.134-0.576-0.188C358.229,0.118,357.4,0,356.562,0H96.757 C84.893,0,75.256,9.649,75.256,21.502v174.613H62.093c-16.972,0-30.733,13.756-30.733,30.73v159.81 c0,16.966,13.761,30.736,30.733,30.736h13.163V526.79c0,11.854,9.637,21.501,21.501,21.501h354.777 c11.853,0,21.502-9.647,21.502-21.501V417.392H486.2c16.966,0,30.729-13.764,30.729-30.731v-159.81 C516.93,209.872,503.166,196.121,486.2,196.121z M96.757,21.502h249.053v110.006c0,5.94,4.818,10.751,10.751,10.751h94.973v53.861 H96.757V21.502z M258.618,313.18c-26.68-9.291-44.063-24.053-44.063-47.389c0-27.404,22.861-48.368,60.733-48.368 c18.107,0,31.447,3.811,40.968,8.107l-8.09,29.3c-6.43-3.107-17.862-7.632-33.59-7.632c-15.717,0-23.339,7.149-23.339,15.485 c0,10.247,9.047,14.769,29.78,22.632c28.341,10.479,41.681,25.239,41.681,47.874c0,26.909-20.721,49.786-64.792,49.786 c-18.338,0-36.449-4.776-45.497-9.77l7.38-30.016c9.772,5.014,24.775,10.006,40.264,10.006c16.671,0,25.488-6.908,25.488-17.396 C285.536,325.789,277.909,320.078,258.618,313.18z M69.474,302.692c0-54.781,39.074-85.269,87.654-85.269 c18.822,0,33.113,3.811,39.549,7.149l-7.392,28.816c-7.38-3.084-17.632-5.939-30.491-5.939c-28.822,0-51.206,17.375-51.206,53.099 c0,32.158,19.051,52.4,51.456,52.4c10.947,0,23.097-2.378,30.241-5.238l5.483,28.346c-6.672,3.34-21.674,6.919-41.208,6.919 C98.06,382.976,69.474,348.424,69.474,302.692z M451.534,520.962H96.757v-103.57h354.777V520.962z M427.518,380.583h-42.399 l-51.45-160.536h39.787l19.526,67.894c5.479,19.046,10.479,37.386,14.299,57.397h0.709c4.048-19.298,9.045-38.352,14.526-56.693 l20.487-68.598h38.599L427.518,380.583z" />'\n </svg>`},OrgChart.icon.json_export=OrgChart.icon.json=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 32 32" x="${n}" y="${o}">\n <polygon fill="${i}" points="31 11 31 21 29 21 27 15 27 21 25 21 25 11 27 11 29 17 29 11 31 11"/>\n <path fill="${i}" d="M21.3335,21h-2.667A1.6684,1.6684,0,0,1,17,19.3335v-6.667A1.6684,1.6684,0,0,1,18.6665,11h2.667A1.6684,1.6684,0,0,1,23,12.6665v6.667A1.6684,1.6684,0,0,1,21.3335,21ZM19,19h2V13H19Z"/>\n <path fill="${i}" d="M13.3335,21H9V19h4V17H11a2.002,2.002,0,0,1-2-2V12.6665A1.6684,1.6684,0,0,1,10.6665,11H15v2H11v2h2a2.002,2.002,0,0,1,2,2v2.3335A1.6684,1.6684,0,0,1,13.3335,21Z"/>\n <path fill="${i}" d="M5.3335,21H2.6665A1.6684,1.6684,0,0,1,1,19.3335V17H3v2H5V11H7v8.3335A1.6684,1.6684,0,0,1,5.3335,21Z"/>\n <rect fill="${i}" id="_Transparent_Rectangle_" data-name="<Transparent Rectangle>" style="fill: none;" width="32" height="32"/>'\n </svg>`},OrgChart.icon.excel=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${n}" y="${o}">\n <path fill="${i}" d="M9.29289 1.29289C9.48043 1.10536 9.73478 1 10 1H18C19.6569 1 21 2.34315 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V4C19 3.44772 18.5523 3 18 3H11V8C11 8.55228 10.5523 9 10 9H5V20C5 20.5523 5.44772 21 6 21H7C7.55228 21 8 21.4477 8 22C8 22.5523 7.55228 23 7 23H6C4.34315 23 3 21.6569 3 20V8C3 7.73478 3.10536 7.48043 3.29289 7.29289L9.29289 1.29289ZM6.41421 7H9V4.41421L6.41421 7ZM19 12C19.5523 12 20 12.4477 20 13V19H23C23.5523 19 24 19.4477 24 20C24 20.5523 23.5523 21 23 21H19C18.4477 21 18 20.5523 18 20V13C18 12.4477 18.4477 12 19 12ZM11.8137 12.4188C11.4927 11.9693 10.8682 11.8653 10.4188 12.1863C9.96935 12.5073 9.86526 13.1318 10.1863 13.5812L12.2711 16.5L10.1863 19.4188C9.86526 19.8682 9.96935 20.4927 10.4188 20.8137C10.8682 21.1347 11.4927 21.0307 11.8137 20.5812L13.5 18.2205L15.1863 20.5812C15.5073 21.0307 16.1318 21.1347 16.5812 20.8137C17.0307 20.4927 17.1347 19.8682 16.8137 19.4188L14.7289 16.5L16.8137 13.5812C17.1347 13.1318 17.0307 12.5073 16.5812 12.1863C16.1318 11.8653 15.5073 11.9693 15.1863 12.4188L13.5 14.7795L11.8137 12.4188Z" fill="#000000"/>\n </svg>`},OrgChart.icon.pp_export=OrgChart.icon.pp_preview=OrgChart.icon.pppreview=OrgChart.icon.powerpoint=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${n}" y="${o}">\n <path fill="${i}" d="M10 1C9.73478 1 9.48043 1.10536 9.29289 1.29289L3.29289 7.29289C3.10536 7.48043 3 7.73478 3 8V20C3 21.6569 4.34315 23 6 23H11C11.5523 23 12 22.5523 12 22C12 21.4477 11.5523 21 11 21H6C5.44772 21 5 20.5523 5 20V9H10C10.5523 9 11 8.55228 11 8V3H18C18.5523 3 19 3.44772 19 4V9C19 9.55228 19.4477 10 20 10C20.5523 10 21 9.55228 21 9V4C21 2.34315 19.6569 1 18 1H10ZM9 7H6.41421L9 4.41421V7ZM15 12C14.4477 12 14 12.4477 14 13V17V20C14 20.5523 14.4477 21 15 21C15.5523 21 16 20.5523 16 20V18H19C20.6569 18 22 16.6569 22 15C22 13.3431 20.6569 12 19 12H15ZM19 16H16V14H19C19.5523 14 20 14.4477 20 15C20 15.5523 19.5523 16 19 16Z" fill="#000000"/>\n </svg>`},OrgChart.icon.edit=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 528.899 528.899" x="${n}" y="${o}">\n <path fill="${i}" d="M328.883,89.125l107.59,107.589l-272.34,272.34L56.604,361.465L328.883,89.125z M518.113,63.177l-47.981-47.981 c-18.543-18.543-48.653-18.543-67.259,0l-45.961,45.961l107.59,107.59l53.611-53.611 C532.495,100.753,532.495,77.559,518.113,63.177z M0.3,512.69c-1.958,8.812,5.998,16.708,14.811,14.565l119.891-29.069 L27.473,390.597L0.3,512.69z" />'\n </svg>`},OrgChart.icon.details=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${n}" y="${o}">\n <path fill="${i}" d="M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008 C350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237 h333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931 l50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278 c-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239 h66.527V486.763z"/>\n <path fill="${i}" d="M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z"/>\n <path fill="${i}" d="M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z"/>\n <path fill="${i}" d="M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z"/>\n <path fill="${i}" d="M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256 c6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z"/>\n </svg>`},OrgChart.icon.remove=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 900.5 900.5" x="${n}" y="${o}">\n <path fill="${i}" d="M176.415,880.5c0,11.046,8.954,20,20,20h507.67c11.046,0,20-8.954,20-20V232.487h-547.67V880.5L176.415,880.5z M562.75,342.766h75v436.029h-75V342.766z M412.75,342.766h75v436.029h-75V342.766z M262.75,342.766h75v436.029h-75V342.766z"/>\n <path fill="${i}" d="M618.825,91.911V20c0-11.046-8.954-20-20-20h-297.15c-11.046,0-20,8.954-20,20v71.911v12.5v12.5H141.874 c-11.046,0-20,8.954-20,20v50.576c0,11.045,8.954,20,20,20h34.541h547.67h34.541c11.046,0,20-8.955,20-20v-50.576 c0-11.046-8.954-20-20-20H618.825v-12.5V91.911z M543.825,112.799h-187.15v-8.389v-12.5V75h187.15v16.911v12.5V112.799z"/>\n </svg>`},OrgChart.icon.add=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 922 922" x="${n}" y="${o}">\n <path fill="${i}" d="M922,453V81c0-11.046-8.954-20-20-20H410c-11.045,0-20,8.954-20,20v149h318c24.812,0,45,20.187,45,45v198h149 C913.046,473.001,922,464.046,922,453z" />\n <path fill="${i}" d="M557,667.001h151c11.046,0,20-8.954,20-20v-174v-198c0-11.046-8.954-20-20-20H390H216c-11.045,0-20,8.954-20,20v149h194 h122c24.812,0,45,20.187,45,45v4V667.001z" />\n <path fill="${i}" d="M0,469v372c0,11.046,8.955,20,20,20h492c11.046,0,20-8.954,20-20V692v-12.501V667V473v-4c0-11.046-8.954-20-20-20H390H196 h-12.5H171H20C8.955,449,0,457.955,0,469z" />\n </svg>`},OrgChart.icon.search=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 485.213 485.213" x="${n}" y="${o}">\n <path fill="${i}" d="M471.882,407.567L360.567,296.243c-16.586,25.795-38.536,47.734-64.331,64.321l111.324,111.324 c17.772,17.768,46.587,17.768,64.321,0C489.654,454.149,489.654,425.334,471.882,407.567z" />\n <path fill="${i}" d="M363.909,181.955C363.909,81.473,282.44,0,181.956,0C81.474,0,0.001,81.473,0.001,181.955s81.473,181.951,181.955,181.951 C282.44,363.906,363.909,282.437,363.909,181.955z M181.956,318.416c-75.252,0-136.465-61.208-136.465-136.46 c0-75.252,61.213-136.465,136.465-136.465c75.25,0,136.468,61.213,136.468,136.465 C318.424,257.208,257.206,318.416,181.956,318.416z" />\n <path fill="${i}" d="M75.817,181.955h30.322c0-41.803,34.014-75.814,75.816-75.814V75.816C123.438,75.816,75.817,123.437,75.817,181.955z" />\n </svg>`},OrgChart.icon.xml_export=OrgChart.icon.xml=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${n}" y="${o}">\n <path fill="${i}" d="M488.426,197.019H475.2v-63.816c0-0.401-0.063-0.799-0.116-1.205c-0.021-2.534-0.827-5.023-2.562-6.992L366.325,3.691 c-0.032-0.031-0.063-0.042-0.085-0.073c-0.633-0.707-1.371-1.298-2.151-1.804c-0.231-0.158-0.464-0.287-0.706-0.422 c-0.676-0.366-1.393-0.675-2.131-0.896c-0.2-0.053-0.38-0.135-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.87v160.542 c0,17.044,13.824,30.876,30.873,30.876h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87V227.89C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.51c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M369.531,374.53h-32.058l-2.156-55.519 c-0.644-17.434-1.298-38.518-1.298-59.611h-0.633c-4.514,18.516-10.547,39.166-16.137,56.162l-17.645,56.601h-25.618 l-15.494-56.157c-4.725-16.996-9.671-37.658-13.123-56.6h-0.43c-0.854,19.585-1.508,41.961-2.586,60.038l-2.576,55.086h-30.343 l9.26-145.035h43.677l14.207,48.421c4.517,16.774,9.041,34.847,12.258,51.843h0.654c4.081-16.77,9.038-35.923,13.774-52.064 l15.493-48.199h42.82L369.531,374.53z M69.992,374.53l41.955-73.385l-40.444-71.65h37.655l12.688,26.465 c4.316,8.828,7.533,15.928,10.99,24.092h0.422c3.438-9.242,6.23-15.694,9.893-24.092l12.274-26.465h37.434l-40.89,70.796 l43.044,74.239h-37.866l-13.134-26.257c-5.376-10.108-8.817-17.639-12.909-26.04h-0.433c-3.009,8.401-6.674,15.932-11.19,26.04 l-12.042,26.257H69.992z M453.601,523.353H97.2V419.302h356.4V523.353z M485.325,374.53h-90.608V229.495h32.933v117.497h57.682 v27.538H485.325z"/>\n </svg>`},OrgChart.icon.visio_export=OrgChart.icon.visio=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${n}" y="${o}">\n <path fill="${i}" d="M24 7.609v9.556q0 .424-.302.726-.303.303-.726.303h-5.19q-.072 1.149-.556 2.135-.484.986-1.264 1.717-.78.732-1.803 1.15-1.022.417-2.159.417-1.016 0-1.96-.35-.943-.352-1.705-.969-.762-.617-1.295-1.47-.532-.852-.713-1.856H1.028q-.423 0-.726-.303Q0 18.363 0 17.94V7.609q0-.424.302-.726.303-.302.726-.302h5.238q-.072-.182-.072-.387 0-.424.302-.726L11.274.69q.303-.303.726-.303t.726.303l4.778 4.778q.302.302.302.726 0 .205-.072.387h5.238q.423 0 .726.302.302.302.302.726zM12 2.153l-4.04 4.04.387.388h3.012q.423 0 .726.302.302.302.302.726v2.238l3.653-3.653zM7.161 16.84l3.085-8.13H8.238q-.508 1.489-1.028 2.952-.52 1.464-1.004 2.964-.496-1.488-.992-2.958-.496-1.47-1.004-2.957H2.153l3.037 8.129zM12 22.065q.883 0 1.657-.333t1.355-.913q.58-.581.913-1.355.333-.774.333-1.658 0-.81-.302-1.548-.303-.738-.823-1.318-.52-.581-1.228-.944-.707-.363-1.518-.423v4.367q0 .423-.302.725-.303.303-.726.303H7.923q.206.677.593 1.246.387.568.92.98.532.41 1.185.64.653.23 1.379.23zm10.452-5.42V8.13h-6.158q-.133.133-.441.454-.309.32-.714.725-.405.406-.847.853-.441.448-.828.823-.387.375-.684.641-.296.266-.393.302v.097q.968.036 1.845.411t1.578.998q.702.623 1.186 1.446t.677 1.766Z"/>\n </svg>`},OrgChart.icon.link=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 512.092 512.092" x="${n}" y="${o}">\n <path fill="${i}" d="M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859 c-31.697-0.059-62.106,12.535-84.48,34.987L34.949,308.23c-22.336,22.379-34.89,52.7-34.91,84.318 c-0.042,65.98,53.41,119.501,119.39,119.543c31.648,0.11,62.029-12.424,84.395-34.816l89.6-89.6 c1.628-1.614,2.537-3.816,2.524-6.108c-0.027-4.713-3.87-8.511-8.583-8.484h-3.413c-18.72,0.066-37.273-3.529-54.613-10.581 c-3.195-1.315-6.867-0.573-9.301,1.877l-64.427,64.512c-20.006,20.006-52.442,20.006-72.448,0 c-20.006-20.006-20.006-52.442,0-72.448l108.971-108.885c19.99-19.965,52.373-19.965,72.363,0 c13.472,12.679,34.486,12.679,47.957,0c5.796-5.801,9.31-13.495,9.899-21.675C322.976,216.108,319.371,206.535,312.453,199.601z" />\n <path fill="${i}" d="M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387 c1.359,3.211,4.535,5.272,8.021,5.205h3.157c18.698-0.034,37.221,3.589,54.528,10.667c3.195,1.315,6.867,0.573,9.301-1.877 l64.256-64.171c20.006-20.006,52.442-20.006,72.448,0c20.006,20.006,20.006,52.442,0,72.448l-80.043,79.957l-0.683,0.768 l-27.989,27.819c-19.99,19.965-52.373,19.965-72.363,0c-13.472-12.679-34.486-12.679-47.957,0 c-5.833,5.845-9.35,13.606-9.899,21.845c-0.624,9.775,2.981,19.348,9.899,26.283c9.877,9.919,21.433,18.008,34.133,23.893 c1.792,0.853,3.584,1.536,5.376,2.304c1.792,0.768,3.669,1.365,5.461,2.048c1.792,0.683,3.669,1.28,5.461,1.792l5.035,1.365 c3.413,0.853,6.827,1.536,10.325,2.133c4.214,0.626,8.458,1.025,12.715,1.195h5.973h0.512l5.12-0.597 c1.877-0.085,3.84-0.512,6.059-0.512h2.901l5.888-0.853l2.731-0.512l4.949-1.024h0.939c20.961-5.265,40.101-16.118,55.381-31.403 l108.629-108.629C523.718,157.296,523.718,81.65,477.061,34.993z" />\n </svg>`},OrgChart.icon.happy=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${n}" y="${o}">\n <path fill="${i}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>\n <path fill="${i}" d="M176,176c17.673,0,32,14.327,32,32h32c0-35.346-28.654-64-64-64c-35.346,0-64,28.654-64,64h32 C144,190.327,158.327,176,176,176z"/>\n <path fill="${i}" d="M336,144c-35.346,0-64,28.654-64,64h32c0-17.673,14.327-32,32-32c17.673,0,32,14.327,32,32h32 C400,172.654,371.346,144,336,144z"/>\n <path fill="${i}" d="M256,368c-53.019,0-96-42.981-96-96h-32c0,70.692,57.308,128,128,128s128-57.308,128-128h-32 C352,325.019,309.019,368,256,368z"/>\n </svg>`},OrgChart.icon.sad=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${n}" y="${o}">\n <path fill="${i}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>\n <path fill="${i}" d="M336,192c-17.673,0-32-14.327-32-32h-32c0,35.346,28.654,64,64,64c35.346,0,64-28.654,64-64h-32 C368,177.673,353.673,192,336,192z"/>\n <path fill="${i}" d="M176,224c35.346,0,64-28.654,64-64h-32c0,17.673-14.327,32-32,32s-32-14.327-32-32h-32C112,195.346,140.654,224,176,224z "/>\n <path fill="${i}" d="M256,256c-70.692,0-128,57.308-128,128h32c0-53.019,42.981-96,96-96s96,42.981,96,96h32C384,313.308,326.692,256,256,256 z"/>\n </svg>`},OrgChart.icon.share=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 512 512">\n <path fill="${i}" d="M406,332c-29.641,0-55.761,14.581-72.167,36.755L191.99,296.124c2.355-8.027,4.01-16.346,4.01-25.124\n c0-11.906-2.441-23.225-6.658-33.636l148.445-89.328C354.307,167.424,378.589,180,406,180c49.629,0,90-40.371,90-90\n c0-49.629-40.371-90-90-90c-49.629,0-90,40.371-90,90c0,11.437,2.355,22.286,6.262,32.358l-148.887,89.59\n C156.869,193.136,132.937,181,106,181c-49.629,0-90,40.371-90,90c0,49.629,40.371,90,90,90c30.13,0,56.691-15.009,73.035-37.806\n l141.376,72.395C317.807,403.995,316,412.75,316,422c0,49.629,40.371,90,90,90c49.629,0,90-40.371,90-90\n C496,372.371,455.629,332,406,332z"/>\n </svg>`},OrgChart.icon.user=function(e,t,i,n,o){return OrgChart.isNEU(n)&&(n=0),OrgChart.isNEU(o)&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24">\n <path fill="${i}" d="M12 11.796C14.7189 11.796 16.9231 9.60308 16.9231 6.89801C16.9231 4.19294 14.7189 2.00005 12 2.00005C9.28106 2.00005 7.07692 4.19294 7.07692 6.89801C7.07692 9.60308 9.28106 11.796 12 11.796Z" fill="#030D45"/>\n <path fill="${i}" d="M14.5641 13.8369H9.4359C6.46154 13.8369 4 16.2859 4 19.245C4 19.9593 4.30769 20.5716 4.92308 20.8777C5.84615 21.3879 7.89744 22.0001 12 22.0001C16.1026 22.0001 18.1538 21.3879 19.0769 20.8777C19.5897 20.5716 20 19.9593 20 19.245C20 16.1838 17.5385 13.8369 14.5641 13.8369Z" fill="#030D45"/>\n </svg>`},OrgChart.icon.close=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 512 512">\n <path fill="${i}" d="m256 0c-141.49 0-256 114.5-256 256 0 141.49 114.5 256 256 256 141.49 0 256-114.5 256-256 0-141.49-114.5-256-256-256zm-12.284 317.397-58.121 58.132c-6.565 6.553-15.283 10.166-24.557 10.166-19.196 0-34.734-15.526-34.734-34.734 0-9.274 3.612-17.992 10.166-24.557l58.132-58.121c6.785-6.784 6.785-17.783 0-24.568l-58.132-58.121c-6.553-6.565-10.166-15.283-10.166-24.557 0-19.196 15.526-34.734 34.734-34.734 9.274 0 17.992 3.613 24.557 10.166l58.121 58.132c6.785 6.773 17.784 6.773 24.568 0l58.121-58.132c6.565-6.553 15.283-10.166 24.557-10.166 19.196 0 34.734 15.526 34.734 34.734 0 9.274-3.612 17.992-10.166 24.557l-58.132 58.121c-6.785 6.784-6.785 17.783 0 24.568l58.132 58.121c6.553 6.565 10.166 15.283 10.166 24.557 0 19.196-15.526 34.734-34.734 34.734-9.274 0-17.992-3.613-24.557-10.166l-58.121-58.132c-6.784-6.784-17.784-6.773-24.568 0z"/>\n </svg>`},OrgChart.icon.undo=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24">\n <path fill-rule="evenodd" clip-rule="evenodd" fill="${i}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM9.25871 7.97395C9.56308 7.693 9.58205 7.21851 9.3011 6.91414C9.02015 6.60978 8.54565 6.5908 8.24129 6.87175L5.99129 8.94867C5.83748 9.09065 5.75 9.29045 5.75 9.49977C5.75 9.7091 5.83748 9.9089 5.99129 10.0509L8.24129 12.1278C8.54565 12.4088 9.02015 12.3898 9.3011 12.0854C9.58205 11.781 9.56308 11.3065 9.25871 11.0256L8.41824 10.2498H14.0385C14.7376 10.2498 15.2069 10.2506 15.5652 10.2862C15.9116 10.3205 16.0724 10.3813 16.1787 10.4501C16.3272 10.5461 16.4537 10.6726 16.5497 10.8211C16.6184 10.9274 16.6793 11.0882 16.7136 11.4345C16.7491 11.7929 16.75 12.2622 16.75 12.9613C16.75 13.6604 16.7491 14.1298 16.7136 14.4881C16.6793 14.8344 16.6185 14.9952 16.5497 15.1015C16.4537 15.2501 16.3272 15.3765 16.1787 15.4726C16.0724 15.5413 15.9116 15.6021 15.5652 15.6365C15.2069 15.672 14.7376 15.6729 14.0385 15.6729H9.5C9.08579 15.6729 8.75 16.0086 8.75 16.4229C8.75 16.8371 9.08579 17.1729 9.5 17.1729H14.0758C14.7279 17.1729 15.2721 17.1729 15.7133 17.1291C16.1748 17.0834 16.6038 16.9839 16.9931 16.7322C17.3199 16.5209 17.5981 16.2427 17.8094 15.916C18.0611 15.5266 18.1605 15.0976 18.2063 14.6361C18.25 14.195 18.25 13.6508 18.25 12.9987V12.924C18.25 12.2718 18.25 11.7276 18.2063 11.2865C18.1605 10.825 18.0611 10.396 17.8093 10.0067C17.5981 9.6799 17.3199 9.40169 16.9931 9.19042C16.6038 8.9387 16.1748 8.83927 15.7133 8.7935C15.2721 8.74975 14.7279 8.74976 14.0758 8.74977L8.41824 8.74977L9.25871 7.97395Z" />\n <rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect>\n </svg>`},OrgChart.icon.redo=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24" >\n <path fill="#f9f9f9" fill-rule="evenodd" clip-rule="evenodd" fill="${i}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM15.7587 6.87273C15.4543 6.59177 14.9799 6.61075 14.6989 6.91512C14.4179 7.21948 14.4369 7.69398 14.7413 7.97493L15.5818 8.75075H9.96155C7.63558 8.75075 5.75 10.6363 5.75 12.9623C5.75 15.2883 7.63557 17.1738 9.96154 17.1738H14.5C14.9142 17.1738 15.25 16.838 15.25 16.4238C15.25 16.0096 14.9142 15.6738 14.5 15.6738H9.96154C8.464 15.6738 7.25 14.4598 7.25 12.9623C7.25 11.4647 8.464 10.2508 9.96155 10.2508H15.5818L14.7413 11.0266C14.4369 11.3075 14.4179 11.782 14.6989 12.0864C14.9799 12.3908 15.4543 12.4097 15.7587 12.1288L18.0087 10.0519C18.1625 9.90987 18.25 9.71007 18.25 9.50075C18.25 9.29143 18.1625 9.09163 18.0087 8.94965L15.7587 6.87273Z"/>\n <rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect> \n </svg>`},OrgChart.icon.send=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24" >\n <path fill="none" stroke="${i}" stroke-width="2" d="M10.3009 13.6949L20.102 3.89742M10.5795 14.1355L12.8019 18.5804C13.339 19.6545 13.6075 20.1916 13.9458 20.3356C14.2394 20.4606 14.575 20.4379 14.8492 20.2747C15.1651 20.0866 15.3591 19.5183 15.7472 18.3818L19.9463 6.08434C20.2845 5.09409 20.4535 4.59896 20.3378 4.27142C20.2371 3.98648 20.013 3.76234 19.7281 3.66167C19.4005 3.54595 18.9054 3.71502 17.9151 4.05315L5.61763 8.2523C4.48114 8.64037 3.91289 8.83441 3.72478 9.15032C3.56153 9.42447 3.53891 9.76007 3.66389 10.0536C3.80791 10.3919 4.34498 10.6605 5.41912 11.1975L9.86397 13.42C10.041 13.5085 10.1295 13.5527 10.2061 13.6118C10.2742 13.6643 10.3352 13.7253 10.3876 13.7933C10.4468 13.87 10.491 13.9585 10.5795 14.1355Z" />\n </svg>`},OrgChart.icon.x=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24">\n <line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${i}"></line>\n <line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${i}"></line>\n </svg>`},OrgChart.icon.x=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24">\n <line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${i}"></line>\n <line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${i}"></line>\n </svg>`},OrgChart.icon.fit=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 128 128">\n <path fill="${i}" d="M 58.1875 4.90625 C 29.957889 4.90625 6.9375 27.957888 6.9375 56.1875 C 6.9375 84.417111 29.957889 107.4375 58.1875 107.4375 C 69.752492 107.4375 80.436703 103.56785 89.03125 97.0625 L 108.59375 120.4375 A 7.0007 7.0007 0 1 0 119.3125 111.4375 L 98.96875 87.15625 C 105.53731 78.538312 109.4375 67.814416 109.4375 56.1875 C 109.4375 27.957888 86.417111 4.90625 58.1875 4.90625 z M 58.1875 18.875 C 78.850949 18.875 95.4375 35.52405 95.4375 56.1875 C 95.4375 76.850949 78.850949 93.4375 58.1875 93.4375 C 37.524051 93.4375 20.9375 76.850949 20.9375 56.1875 C 20.9375 35.52405 37.524051 18.875 58.1875 18.875 z M 33.125 31.09375 L 33.125 36.40625 L 33.125 75.90625 L 33.125 81.21875 L 38.4375 81.21875 L 77.9375 81.21875 L 83.25 81.21875 L 83.25 75.90625 L 83.25 36.40625 L 83.25 31.09375 L 77.9375 31.09375 L 38.4375 31.09375 L 33.125 31.09375 z M 43.78125 41.75 L 72.59375 41.75 L 72.59375 70.5625 L 43.78125 70.5625 L 43.78125 41.75 z "/>\n</svg>`},OrgChart.icon.expand_all=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 32 32">\n <path fill="${i}" d="M13.816 5.989l-7.785 0.046 0.003 7.735 2.59-2.591 3.454 3.454 2.665-2.665-3.453-3.454 2.526-2.525zM12.079 17.35l-3.454 3.455-2.59-2.592-0.003 7.799 7.785-0.018-2.526-2.525 3.454-3.453-2.666-2.666zM19.922 14.633l3.453-3.454 2.59 2.591 0.004-7.735-7.785-0.046 2.526 2.525-3.454 3.454 2.666 2.665zM23.375 20.805l-3.453-3.455-2.666 2.666 3.454 3.453-2.526 2.525 7.785 0.018-0.004-7.799-2.59 2.592z"></path>\n</svg>`},OrgChart.icon.full_screen=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 48 48">\n<rect width="48" height="48" fill="${i}" fill-opacity="0.01"/>\n<path fill="none" d="M16 40H6C4.89543 40 4 39.1046 4 38V10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V16" stroke="${i}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>\n<rect x="24" y="24" width="20" height="16" rx="2" fill="none" stroke="${i}" stroke-width="4" stroke-linejoin="round"/>\n</svg>`},OrgChart.icon.zoom_in=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 32 32" >\n <g sketch:type="MSLayerGroup" transform="translate(-362.000000, -1037.000000)" fill="${i}">\n <path d="M390,1049 L382,1049 L382,1041 C382,1038.79 380.209,1037 378,1037 C375.791,1037 374,1038.79 374,1041 L374,1049 L366,1049 C363.791,1049 362,1050.79 362,1053 C362,1055.21 363.791,1057 366,1057 L374,1057 L374,1065 C374,1067.21 375.791,1069 378,1069 C380.209,1069 382,1067.21 382,1065 L382,1057 L390,1057 C392.209,1057 394,1055.21 394,1053 C394,1050.79 392.209,1049 390,1049" id="plus" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>`},OrgChart.icon.zoom_out=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 -12 32 32" >\n <g id="Icon-Set-Filled" sketch:type="MSLayerGroup" transform="translate(-414.000000, -1049.000000)" fill="${i}">\n <path d="M442,1049 L418,1049 C415.791,1049 414,1050.79 414,1053 C414,1055.21 415.791,1057 418,1057 L442,1057 C444.209,1057 446,1055.21 446,1053 C446,1050.79 444.209,1049 442,1049" id="minus" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>`},OrgChart.icon.layout_normal=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="41" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="35" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="35" y2="41" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="35" y2="41" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_right_offset=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="40" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="40" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="60" x2="35" y1="35" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="35" x2="35" y1="35" y2="86" stroke-width="1"></line>\n <line stroke="${i}" x1="35" x2="40" y1="86" y2="86" stroke-width="1"></line>\n <line stroke="${i}" x1="35" x2="40" y1="54" y2="54" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_left_offset=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="30" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="30" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="60" x2="85" y1="35" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="85" x2="85" y1="35" y2="86" stroke-width="1"></line>\n <line stroke="${i}" x1="80" x2="85" y1="86" y2="86" stroke-width="1"></line>\n <line stroke="${i}" x1="80" x2="85" y1="54" y2="54" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_mixed=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="35" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="35" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="41" stroke-width="1"></line>\n <line stroke="${i}" x1="60" x2="60" y1="68" y2="73" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_tree=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="35" y="73" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="41" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="57" x2="63" y1="54" y2="54" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_grid=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="73" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_grid=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="73" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>\n </svg>`},OrgChart.icon.cursor=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 16 16" >\n <path d="M8 3V0H6V3H8Z" fill="${i}"/>\n <path d="M0.792893 2.20711L3.29289 4.70711L4.70711 3.29289L2.20711 0.792893L0.792893 2.20711Z" fill="${i}"/>\n <path d="M6 5L5 6.00001L8 15H10L10.7172 12.1314L14.2929 15.7071L15.7071 14.2929L12.1314 10.7172L15 10V8L6 5Z" fill="${i}"/>\n <path d="M0 6H3V8H0V6Z" fill="${i}"/>\n </svg>`},void 0===OrgChart&&(OrgChart={}),OrgChart.events=(e={},{on:function(t,i,n){Array.isArray(e[t])||(e[t]=[]),e[t].push({listener:i,event_id:n})},removeAll:function(t){Array.isArray(e[t])||(e[t]=[]),e[t]=[]},remove:function(t,i,n){var o=!1;if(e[t]&&Array.isArray(e[t])&&e[t].length>0)for(var r=e[t].length-1;r>=0;r--)(!OrgChart.isNEU(n)&&!OrgChart.isNEU(i)&&e[t][r].event_id==n&&e[t][r].listener==i||!OrgChart.isNEU(n)&&OrgChart.isNEU(i)&&e[t][r].event_id==n||OrgChart.isNEU(n)&&!OrgChart.isNEU(i)&&e[t][r].listener==i||OrgChart.isNEU(n)&&OrgChart.isNEU(i))&&(e[t].splice(r,1),o=!0);return o},has:function(t,i){if(e[t]&&Array.isArray(e[t])&&e[t].length>0){if(OrgChart.isNEU(i))return!0;for(var n=0;n<e[t].length;n++)if(e[t][n].event_id==i)return!0}return!1},removeForEventId:function(t){for(var i in e)if(Array.isArray(e[i]))for(var n=e[i].length-1;n>=0;n--)e[i][n].event_id==t&&e[i].splice(n,1)},publish:function(t,i){if(e[t]){for(var n=[],o=0;o<e[t].length;o++){var r=e[t][o];null!=r.event_id&&r.event_id!=i[0]._event_id||n.push(r.listener)}if(n.length>0){var a=!0;for(o=0;o<n.length&&(1==i.length?a=n[o](i[0])&&a:2==i.length?a=n[o](i[0],i[1])&&a:3==i.length?a=n[o](i[0],i[1],i[2])&&a:4==i.length?a=n[o](i[0],i[1],i[2],i[3])&&a:5==i.length&&(a=n[o](i[0],i[1],i[2],i[3],i[4])&&a),!1!==a);o++);return a}}}}),OrgChart.prototype.expand=function(e,t,i){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var n={id:e,ids:t};this._draw(!1,OrgChart.action.expand,n,i)},OrgChart.prototype.collapse=function(e,t,i){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var n={id:e,ids:t};this._draw(!1,OrgChart.action.collapse,n,i)},OrgChart.prototype.expandCollapse=function(e,t,i,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes(),Array.isArray(t)||(t=[]),Array.isArray(i)||(i=[]);var o={id:e,expandIds:t,collapseIds:i,ids:t.concat(i)};this._draw(!1,OrgChart.action.collapse,o,n)},OrgChart.prototype.changeRoots=function(e,t,i){this.config.roots=t;var n={id:e,changeRoots:t};this._draw(!1,OrgChart.action.update,n,i)},OrgChart.prototype._resetMovableNodes=function(){if(OrgChart.RESET_MOVABLE_ONEXPANDCOLLAPSE&&null!=this.config.movable){for(var e=!1,t=0;t<this.config.nodes.length;t++){var i=this.config.nodes[t];null!=i.movex&&(i.movex=0,e=!0),null!=i.movey&&(i.movey=0,e=!0)}e&&(this._ai.setContext(),OrgChart.events.publish("updated",[this]))}},OrgChart.prototype.maximize=function(e,t,i,n){var o=this,r={id:e,options:{}};OrgChart.isNEU(r.id)&&(r.id=this.roots[0].id,r.all=!0),r.options.horizontal=!1,r.options.vertical=!1,t&&(r.options.horizontal=t),i&&(r.options.vertical=i),this._draw(!1,OrgChart.action.maximize,r,function(){o.ripple(e),n&&n()})},OrgChart.prototype.minimize=function(e,t){var i=this,n={id:e};OrgChart.isNEU(n.id)&&(n.id=this.roots[0].id,n.all=!0),this._draw(!1,OrgChart.action.minimize,n,function(){i.ripple(e),t&&t()})},OrgChart.prototype._expCollHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this.getNode(e),i=this.getCollapsedIds(t);if(i.length){if(!1===OrgChart.events.publish("expcollclick",[this,!1,e,i]))return!1;this.expand(e,i,!1)}else{if(!1===OrgChart.events.publish("expcollclick",[this,!0,e,t.childrenIds]))return!1;this.collapse(e,t.childrenIds,!1)}},OrgChart.prototype._upHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this._upHandlerCreateArgs(e);if(!1===OrgChart.events.publish("up-click",[this,t]))return!1;this.changeRoots(t.id,t.roots,!1)},OrgChart.prototype._upHandlerCreateArgs=function(e){var t,i=this.getNode(e),n=Object.assign([],this.config.roots),o=this.getNode(i.pid);if(o&&(t=o),t){if(Array.isArray(n)){var r=n.indexOf(i.id);-1!=r&&n.splice(r,1)}else n=[];n.push(t.id)}return{id:i.id,roots:n}},String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e,"g"),t)}),String.prototype.endsWith||(String.prototype.endsWith=function(e){return-1!==this.indexOf(e,this.length-e.length)}),String.prototype.splice||(String.prototype.splice=function(e,t,i){return this.slice(0,e)+i+this.slice(e+Math.abs(t))}),String.prototype.insert||(String.prototype.insert=function(e,t){return e>0?this.substring(0,e)+t+this.substr(e):t+this}),Array.prototype.unique||Object.defineProperty(Array.prototype,"unique",{value:function(){for(var e=this.concat(),t=0;t<e.length;++t)for(var i=t+1;i<e.length;++i)e[t]===e[i]&&e.splice(i--,1);return e},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.has||Object.defineProperty(Array.prototype,"has",{value:function(e){for(var t=0;t<this.length;t++)if(this[t]==e)return!0;return!1},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.compare||Object.defineProperty(Array.prototype,"compare",{value:function(e){if(this.length!=e.length)return!1;for(var t=0;t<this.length;t++)if(!e.has(this[t]))return!1;return!0},writable:!0,configurable:!0,enumerable:!1}),Object.assign||Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r])}return i},writable:!0,configurable:!0}),OrgChart.prototype._globalMouseDownHandler=function(e,t){var i={move:"mousemove",up:"mouseup",leave:"mouseleave"};-1!=t.type.indexOf("touch")&&(1==t.touches.length?this._touch={x:t.touches[0].clientX,y:t.touches[0].clientY}:this._touch=null,i={move:"touchmove",up:"touchend",touchstart:"touchstart"}),this._treeListUpdateInterval&&(clearInterval(this._treeListUpdateInterval),this._treeListUpdateInterval=null);for(var n=null,o=t.target;o!=e&&!o.hasAttribute(OrgChart.attr.control_node_menu_id)&&!o.hasAttribute(OrgChart.attr.control_node_circle_menu_id);){if(o.hasAttribute){var r=null;o.hasAttribute(OrgChart.attr.node_id)?r=this.getNode(o.getAttribute(OrgChart.attr.node_id)):o.hasAttribute(OrgChart.attr.control_expcoll_id)?r=this.getNode(o.getAttribute(OrgChart.attr.control_expcoll_id)):(o.hasAttribute(OrgChart.attr.control_node_menu_id)||o.hasAttribute(OrgChart.attr.control_node_menu_id))&&(r=this.getNode(o.getAttribute(OrgChart.attr.control_node_menu_id))),n||(n=OrgChart._getScrollableTreeListNodeInTouchEnabledDevice(r))}if(o.hasAttribute(OrgChart.attr.node_id)&&!n&&(this.config.enableDragDrop||this.config.movable)){if(null==t.touches||t.touches.length<=1)return void this._nodeMouseDownHandler(o,t,i)}else if(o.hasAttribute(OrgChart.attr.control_node_circle_menu_name)){if(t.stopPropagation(),null==t.touches||t.touches.length<=1)return void this._nodeCircleNodeMenuItemMouseDownHandler(e,o,t,i)}else if(o.hasAttribute("data-treelist-thumb")&&(t.stopPropagation(),null==t.touches||t.touches.length<=1))return void this._treeListThumbMouseDownHandler(o,t,i);o=o.parentNode}t.stopPropagation(),this._mouseDownHandler(e,t,i,n)},OrgChart.prototype._globalContextHandler=function(e,t){for(var i=t.target;i!=e;){if(i.hasAttribute(OrgChart.attr.node_id)){var n=i.getAttribute(OrgChart.attr.node_id),o=this.getNode(n);return void this._nodeContextHandler(o.id,t)}i=i.parentNode}},OrgChart.prototype._nodeContextHandler=function(e,t){t.preventDefault(),OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var i=this.get(e),n=null;if(null!=i&&Array.isArray(i.tags))for(var o=0;o<i.tags.length;o++){var r=i.tags[o];this.config.tags[r]&&this.config.tags[r].nodeContextMenu&&(n=this.config.tags[r].nodeContextMenu)}var a=this.element.getBoundingClientRect(),l=t.clientX-a.left,s=t.clientY-a.top;this.nodeContextMenuUI.show(l,s,e,null,n)},OrgChart.prototype._globalDbClickHandler=function(e,t){for(var i=t.target;i!=e;){if(i.hasAttribute(OrgChart.attr.node_id)){var n=i.getAttribute(OrgChart.attr.node_id),o=this.getNode(n);return void this._nodeDbClickHandler(o.id,t)}i=i.parentNode}},OrgChart.prototype._mouseScrollHandler=function(e,t){for(var i=!1,n=t.target,o=null;n&&n.hasAttribute&&!n.hasAttribute("data-n-id")&&!n.hasAttribute("data-ctrl-ec-id");)n=n.parentNode;if(n.hasAttribute&&n.hasAttribute("data-n-id")){var r=n.getAttribute("data-n-id");(o=this.getNode(r)).isTreeListItem&&(i=!0)}if(n.hasAttribute&&n.hasAttribute("data-ctrl-ec-id")){r=n.getAttribute("data-ctrl-ec-id");(o=this.getNode(r)).isTreeListItem&&(i=!0)}t.ctrlKey&&(i=!1),i?this.__mouseScrollHandlerTreeList(o,t):this.__mouseScrollHandler(this.getSvg(),t)},OrgChart.prototype.__mouseScrollHandler=function(e,t){if(t.ctrlKey){if(this.config.mouseScrool==OrgChart.action.zoom)return}else{if(this.config.mouseScrool==OrgChart.action.ctrlZoom)return;if(this.config.mouseScrool!=OrgChart.action.zoom)return}if(t.preventDefault(),!navigator.hardwareConcurrency||navigator.hardwareConcurrency<9){let n=t.deltaY/1e3;n=Math.abs(n)<.1?.1*t.deltaY/Math.abs(t.deltaY):n;var i=OrgChart._centerPointInPercent(e,t.clientX,t.clientY);this.zoom(1-n,i)}else{var n=this,o=!1,r=this.config.zoom.speed,a=this.config.zoom.smooth,l=0,s=this.getScale();i=OrgChart._centerPointInPercent(e,t.clientX,t.clientY);var c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)};t.preventDefault();var d=t.delta||t.wheelDelta;void 0===d&&(d=-t.detail),d=Math.max(-1,Math.min(1,d)),l+=-d*r,o||function update(){o=!0;var e=(l-s)/a;e>0?e++:e--,s+=e,n.zoom(1-e/12/50,i),parseInt(s)==parseInt(l)?o=!1:c(update)}()}},OrgChart.prototype._nodeCircleNodeMenuItemMouseDownHandler=function(e,t,i,n){var o=t.parentNode.getAttribute(OrgChart.attr.control_node_circle_menu_wrraper_id),r=t.getAttribute(OrgChart.attr.control_node_circle_menu_name),a=this.nodeCircleMenuUI._menu[r];if(a.draggable){var l=this,s=OrgChart._getClientXY(i),c=this.getNode(o);t._dragEventFired=!1;var d=l.getScale(),h=null,p=null;document.body.style.mozUserSelect=document.body.style.webkitUserSelect=document.body.style.userSelect="none";var u=this.getSvg(),f={x:s.x,y:s.y},g=t.cloneNode(!0);u.insertBefore(g,u.firstChild);var m=OrgChart._getTransform(g),x=m[4],b=m[5],y=function(e){for(;e&&!e.hasAttribute(OrgChart.attr.control_node_circle_menu_wrraper_id);)e=e.parentNode;if(e){var t=OrgChart._getTransform(e);return{x:t[4],y:t[5]}}console.error("cannot find parent"+OrgChart.attr.control_node_circle_menu_wrraper_id)}(t);g.setAttribute("transform","matrix(1,0,0,1,"+(x+y.x)+","+(b+y.y)+")"),g.style.opacity=.7;var removeOpacity=function(e,t){if(null!=e){t.classList.remove("boc-drag-over");for(var i=OrgChart.getStParentNodes(l.getNode(h)),n=0;n<i.length;n++){var o=l.getNodeElement(i[n].id);o&&(o.style.opacity=1)}}},moveHandler=function(e){if(f){var i=OrgChart._getClientXY(e),n=e.target;OrgChart.isMobile()&&(n=document.elementFromPoint(i.x,i.y)),i.x+=y.x*d,i.y+=y.y*d;var o=OrgChart._getOffsetXY(l.element,e),s={left:l.width()-(o.x+l.config.padding)<0,right:o.x-l.config.padding<0,up:l.height()-(o.y+l.config.padding)<0,down:o.y-l.config.padding<0};if(s.left||s.right||s.up||s.down){u.classList&&(u.classList.remove("boc-cursor-grab"),u.classList.add("boc-cursor-move"),u.classList.remove("boc-cursor-nodrop"),u.classList.remove("boc-cursor-copy"));var c=m[4],v=m[5],_=f.x,w=f.y,I=i.x,k=i.y;l.moveStart(s,function(e){m[4]=c+e.x,m[5]=v+e.y,f.x=_-e.xWithoutScale,f.y=w-e.yWithoutScale,i.x=I-e.xWithoutScale,i.y=k-e.yWithoutScale,g.setAttribute("transform","matrix("+m.toString()+")")})}else{for(l.moveEnd(),u.classList&&(u.classList.add("boc-cursor-grab"),u.classList.remove("boc-cursor-move"),u.classList.remove("boc-cursor-nodrop"),u.classList.remove("boc-cursor-copy")),removeOpacity(h,p),h=null,p=null;null!=n&&n!=u;){if(n.hasAttribute&&n.hasAttribute(OrgChart.attr.node_id)){var C=n.getAttribute(OrgChart.attr.node_id);h=C,p=n;break}n=n.parentNode}if(null!=h){p.classList.add("boc-drag-over");for(var L=l.getNode(h),S=OrgChart.getStParentNodes(L),N=0;N<S.length;N++){var A=l.getNodeElement(S[N].id);A&&(A.style.opacity=.1)}u.classList.remove("boc-cursor-grab"),u.classList.remove("boc-cursor-move"),u.classList.add("boc-cursor-copy"),u.classList.remove("boc-cursor-nodrop")}var E=(i.x-f.x)/d,M=(i.y-f.y)/d;m[4]=x+E,m[5]=b+M,!t._dragEventFired&&(Math.abs(i.x-f.x)>OrgChart.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(i.y-f.y)>OrgChart.FIRE_DRAG_NOT_CLICK_IF_MOVE)&&(l._gragStartedId=t.parentNode.getAttribute(OrgChart.attr.control_node_circle_menu_wrraper_id),!1===OrgChart.events.publish("drag",[l.nodeCircleMenuUI,{from:C,menuItem:a,menuItemName:r}])&&leaveHandler(),t._dragEventFired=!0),g.setAttribute("transform","matrix("+m.toString()+")")}}},leaveHandler=function(e){if(l.moveEnd(),u.classList&&(u.classList.remove("boc-cursor-grab"),u.classList.remove("boc-cursor-move"),u.classList.remove("boc-cursor-nodrop"),u.classList.remove("boc-cursor-copy")),u.removeEventListener(n.move,moveHandler),u.removeEventListener(n.up,leaveHandler),n.leave&&u.removeEventListener(n.leave,leaveHandler),c.id==h||null==h)return u.removeChild(g),l._gragStartedId=null,void(t._dragEventFired&&OrgChart.events.publish("drop",[l.nodeCircleMenuUI,{from:c.id,menuItemName:r,menuItem:a,event:e}]));var i=l.getNode(h);OrgChart.events.publish("drop",[l.nodeCircleMenuUI,{from:c.id,to:i.id,menuItem:a,menuItemName:r,event:e}]),removeOpacity(h,p),u.removeChild(g),l._gragStartedId=null};u.addEventListener(n.move,moveHandler),u.addEventListener(n.up,leaveHandler),n.leave&&u.addEventListener(n.leave,leaveHandler)}else this._clickHandler(e,i)},OrgChart.prototype._nodeMouseDownHandler=function(e,t,i){var n=e.getAttribute(OrgChart.attr.node_id),o=this.getNode(n);this.config.movable&&!OrgChart.getRootOf(o).stParent?this._movableHandler(e,t,i):this.config.enableDragDrop&&this._dragDropHandler(e,t,i)},OrgChart.prototype._resizeHandler=function(e,t){if(this.isVisible&&0!=e&&0!=t){var i=this.getViewBox();if(i){var n=e/(i=i.slice(0))[2],o=t/i[3];Math.abs(this._lastSize.width-e)>Math.abs(this._lastSize.height-t)?i[3]=t/n:i[2]=e/o,this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),this.setViewBox(i),this.xScrollUI.create(e),this.yScrollUI.create(t),this._draw(!0,OrgChart.action.resize)}}},OrgChart.prototype._nodeDbClickHandler=function(e,t){if(!1===OrgChart.events.publish("dbclick",[this,this.get(e)]))return!1;this._commonClickHandler(e,t,this.config.nodeMouseDbClick)},OrgChart.prototype._nodeClickHandler=function(e,t){if(!1===OrgChart.events.publish("click",[this,{node:this.getNode(e),event:t}]))return!1;if(this.powerPointPreviewUI.isVisible()&&null!=this.powerPointPreviewUI.selectedPage)return this.powerPointPreviewUI.selectedPage.content=void 0,this.powerPointPreviewUI.selectedPage.nodeId=e,this.powerPointPreviewUI.refresh(e),void this.ripple(e,t.clientX,t.clientY);if(this.pdfPreviewUI.isVisible()&&null!=this.pdfPreviewUI.selectedPage)return this.pdfPreviewUI.selectedPage.content=void 0,this.pdfPreviewUI.selectedPage.nodeId=e,this.pdfPreviewUI.refresh(e),void this.ripple(e,t.clientX,t.clientY);if(this.svgPreviewUI.isVisible()&&null!=this.svgPreviewUI.selectedPage)return this.svgPreviewUI.selectedPage.content=void 0,this.svgPreviewUI.selectedPage.nodeId=e,this.svgPreviewUI.refresh(e),void this.ripple(e,t.clientX,t.clientY);if(this.pngPreviewUI.isVisible()&&null!=this.pngPreviewUI.selectedPage)return this.pngPreviewUI.selectedPage.content=void 0,this.pngPreviewUI.selectedPage.nodeId=e,this.pngPreviewUI.refresh(e),void this.ripple(e,t.clientX,t.clientY);var i=this.getNodeElement(e);i&&i._dragEventFired?i._dragEventFired=!1:this._commonClickHandler(e,t,this.config.nodeMouseClick)},OrgChart.prototype._nodeCircleMenuItemClickHandler=function(e,t){var i=e.parentNode.getAttribute(OrgChart.attr.control_node_circle_menu_wrraper_id),n=e.getAttribute(OrgChart.attr.control_node_circle_menu_name),o=this.nodeCircleMenuUI._menu[n];OrgChart.events.publish("click",[this.nodeCircleMenuUI,{nodeId:i,menuItemName:n,menuItem:o,event:t}])},OrgChart.prototype._nodeCircleMenuClickHandler=function(e){if(OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.menuUI.hide(),this.nodeContextMenuUI.isVisible())this.nodeContextMenuUI.hide();else{var t=this.getNode(e),i=null;if(Array.isArray(t.tags))for(var n=0;n<t.tags.length;n++){var o=t.tags[n];this.config.tags[o]&&this.config.tags[o].nodeCircleMenu&&(i=this.config.tags[o].nodeCircleMenu)}this.nodeCircleMenuUI.show(e,i)}},OrgChart.prototype._commonClickHandler=function(e,t,i){var n;(OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),i==OrgChart.action.expandCollapse&&this.toggleExpandCollapse(e,t),i==OrgChart.action.edit)&&((n=this.getNode(e))&&(this.editUI.show(n.id),this.ripple(n.id,t.clientX,t.clientY)));i==OrgChart.action.details&&((n=this.getNode(e))&&(this.editUI.show(n.id,!0),this.ripple(n.id,t.clientX,t.clientY)))},OrgChart.prototype._menuHandlerMouseDownHandler=function(e,t){t.stopPropagation(),t.preventDefault()},OrgChart.prototype._nodeMenuClickHandler=function(e,t,i){OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var n=this.getNode(e),o=null;if(Array.isArray(n.tags))for(var r=0;r<n.tags.length;r++){var a=n.tags[r];this.config.tags[a]&&this.config.tags[a].nodeMenu&&(o=this.config.tags[a].nodeMenu)}this.nodeMenuUI.showStickIn(t,e,null,o)},OrgChart.prototype._menuClickHandler=function(e,t){t.stopPropagation(),t.preventDefault(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.show(e.offsetLeft,e.offsetTop)},OrgChart.prototype._lonelyButtonHandler=function(){var e={id:this.generateId()};!1!==this.addNode(e,null,!0)&&this.center(e.id)},OrgChart.prototype.toggleExpandCollapse=function(e,t){var i=this.getNode(e),n=this.getCollapsedIds(i);if(n.length){if(!1===OrgChart.events.publish("expcollclick",[this,!1,e,n]))return!1;this.expand(e,n,!1)}else{if(!1===OrgChart.events.publish("expcollclick",[this,!0,e,i.childrenIds]))return!1;this.collapse(e,i.childrenIds,!1)}t&&this.ripple(i.id,t.clientX,t.clientY)},OrgChart.prototype._clickHandler=function(e,t){if(!(t.button>0)){for(var i=t.target;i!=e;){if(i.hasAttribute(OrgChart.attr.control_expcoll_id)){var n=i.getAttribute(OrgChart.attr.control_expcoll_id),o=this.getNode(n);return void this._expCollHandler(o.id)}if(i.hasAttribute(OrgChart.attr.node_id)){n=i.getAttribute(OrgChart.attr.node_id),o=this.getNode(n);return void this._nodeClickHandler(o.id,t)}if(i.hasAttribute(OrgChart.attr.control_node_menu_id)){t.stopPropagation(),t.preventDefault();n=i.getAttribute(OrgChart.attr.control_node_menu_id),o=this.getNode(n);return void this._nodeMenuClickHandler(o.id,i,t)}if(i.hasAttribute(OrgChart.attr.control_node_circle_menu_id)){t.stopPropagation(),t.preventDefault();n=i.getAttribute(OrgChart.attr.control_node_circle_menu_id);return void this._nodeCircleMenuClickHandler(n)}if(i.hasAttribute(OrgChart.attr.control_node_circle_menu_name))return t.stopPropagation(),void this._nodeCircleMenuItemClickHandler(i,t);if(i.hasAttribute(OrgChart.attr.control_add))return void this._lonelyButtonHandler();if(i.hasAttribute(OrgChart.attr.control_up_id)){n=i.getAttribute(OrgChart.attr.control_up_id);return t.stopPropagation(),t.preventDefault(),void this._upHandler(n)}if(i.hasAttribute(OrgChart.attr.c_link_from))return void OrgChart.events.publish("clink-click",[this,{from:i.getAttribute(OrgChart.attr.c_link_from),to:i.getAttribute(OrgChart.attr.c_link_to),event:t}]);if(i.hasAttribute(OrgChart.attr.s_link_from))return void OrgChart.events.publish("slink-click",[this,{from:i.getAttribute(OrgChart.attr.s_link_from),to:i.getAttribute(OrgChart.attr.s_link_to),event:t}]);if(i.hasAttribute("data-ctrl-n-dotted-close")){n=i.getAttribute("data-ctrl-n-dotted-close");return void this.minimize(n)}if(i.hasAttribute("data-ctrl-n-dotted-open")){n=i.getAttribute("data-ctrl-n-dotted-open");return void this.maximize(n)}i=i.parentNode}OrgChart.events.publish("canvas-click",[this,{event:t}])}},OrgChart.prototype._mouseDownHandler=function(e,t,i,n){var o=this;OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide();var r=this.getViewBox(),a=this.getScale(),l=OrgChart._getClientTouchesXY(t,0),s=OrgChart._getClientTouchesXY(t,1),c={diffX:0,diffY:0,x0:l.x,y0:l.y,type:this.config.enablePan?"pan":"pan-not-enabled",viewBoxLeft:r[0],viewBoxTop:r[1],time:Date.now()};t.touches&&t.touches.length>1&&(c.type="pinch",c.dist=Math.sqrt((l.x-s.x)*(l.x-s.x)+(l.y-s.y)*(l.y-s.y)));var d=null;if(n){var h=n.stChildren[0].lcn?n.stChildren[0].lcn:"base";d=o.manager.layoutConfigs[h],c.scrollTop=n.treeList.scrollTop}var p=0,moveHandler=function(e){var t=OrgChart._getClientTouchesXY(e,0);if(c&&"pan"==c.type){clearTimeout(o._timeout),c.diffX=t.x-c.x0,c.diffY=t.y-c.y0,p=Math.max(Math.abs(c.diffY),Math.abs(c.diffX));var i=-c.diffY/a+c.viewBoxTop,l=-c.diffX/a+c.viewBoxLeft;p>3&&(n?(n.treeList.scrollTop=c.scrollTop-c.diffY/a,o._treeListUpdateInterval&&(clearInterval(o._treeListUpdateInterval),o._treeListUpdateInterval=null),o._treeListUpdate(n,d)):(o._hideBeforeAnimation(),o._changeCursorOnPanStart(r,a,e),o._move(i,l,r)))}else if(c&&"pinch"==c.type){var s=OrgChart._getClientTouchesXY(e,1),h=Math.sqrt((t.x-s.x)*(t.x-s.x)+(t.y-s.y)*(t.y-s.y)),u=1+(h-c.dist)/(c.dist/100)/100;c.dist=h;var f=OrgChart._pinchMiddlePointInPercent(o.element,o.width(),o.height(),e);o.zoom(u,f)}},leaveHandler=function(t){if(p<3&&"pinch"!=c.type&&(null==t.touches||t.touches.length<=1))o._clickHandler(e,t);else if("pan"==c.type&&n){var r=Date.now()-c.time,a=Math.abs(p/r);if(a>.5){var l=(h=n.treeList.scrollTop)+400*a*(c.diffY>0?-1:1),s=n.stChildren[0].h;(l=Math.round(l/s)*s)!=h&&(o._treeListUpdateInterval&&(clearInterval(o._treeListUpdateInterval),o._treeListUpdateInterval=null),o._treeListUpdateInterval=OrgChart.animate(null,{},{},1500,OrgChart.anim.outExp,function(){},function(e){n.treeList.scrollTop=e*(l-h)+h,o._treeListUpdate(n,d.orientation)}))}else{var h=n.treeList.scrollTop;s=n.stChildren[0].h;(l=Math.round(n.treeList.scrollTop/s)*s)!=h&&(o._treeListUpdateInterval&&(clearInterval(o._treeListUpdateInterval),o._treeListUpdateInterval=null),o._treeListUpdateInterval=OrgChart.animate(null,{},{},200,OrgChart.anim.outSin,function(){},function(e){n.treeList.scrollTop=e*(l-h)+h,o._treeListUpdate(n,d.orientation)}))}}else"pan"==c.type&&!n&&p>10&&o._draw(!0,OrgChart.action.pan);"pan"!=c.type||n||o._changeCursorOnPanEnd(),c=null,e.removeEventListener(i.move,moveHandler),e.removeEventListener(i.up,leaveHandler),i.leave&&e.removeEventListener(i.leave,leaveHandler),i.touchstart&&e.removeEventListener(i.touchstart,leaveHandler)};e.addEventListener(i.move,moveHandler,{passive:!0}),e.addEventListener(i.up,leaveHandler),i.leave&&e.addEventListener(i.leave,leaveHandler),i.touchstart&&e.addEventListener(i.touchstart,leaveHandler,{passive:!0})},OrgChart.prototype._changeCursorOnPanStart=function(e,t,i){var n=this.getPointerElement();if(n){var o=OrgChart._getOffsetXY(this.element,i),r=o.x/t+e[0]-16/t,a=o.y/t+e[1]-16/t;n.style.display="inherit",n.setAttribute("transform","matrix(0,0,0,0,"+r+","+a+")"),OrgChart.animate(n,{transform:[0,0,0,0,r,a],opacity:0},{transform:[1/t,0,0,1/t,r,a],opacity:1},300,OrgChart.anim.outBack)}else this.element.style.cursor="move"},OrgChart.prototype._changeCursorOnPanEnd=function(){var e=this.getPointerElement();e?e.style.display="none":this.element.style.cursor="initial"},OrgChart.prototype._move=function(e,t,i){i[0]=t,i[1]=e,this.setViewBox(i),this.xScrollUI.setPosition(),this.yScrollUI.setPosition()},OrgChart.prototype.moveStart=function(e,t,i,n){if(e){if(!this._moveInterval){var o=this,r=this.getViewBox().slice(0),a=this.getScale(),l=0,s=0,c=1;OrgChart.isNEU(i)&&(i=OrgChart.anim.inSin),OrgChart.isNEU(n)&&(n=3e3),this._moveInterval=setInterval(function(){var d={x:0,y:0,xWithoutScale:0,yWithoutScale:0};e.left?(l++,d.x=l*OrgChart.MOVE_STEP/a,d.xWithoutScale=l*OrgChart.MOVE_STEP):e.right&&(l++,d.x=-l*OrgChart.MOVE_STEP/a,d.xWithoutScale=-l*OrgChart.MOVE_STEP),e.up?(s++,d.y=s*OrgChart.MOVE_STEP/a,d.yWithoutScale=s*OrgChart.MOVE_STEP):e.down&&(s++,d.y=-s*OrgChart.MOVE_STEP/a,d.yWithoutScale=-s*OrgChart.MOVE_STEP);var h=i((10*c-10)/n);d.x=d.x*h,d.xWithoutScale=d.xWithoutScale*h,d.y=d.y*h,d.yWithoutScale=d.yWithoutScale*h,o.setViewBox([r[0]+d.x,r[1]+d.y,r[2],r[3]]),t&&t(d),c+=1},10)}}else console.error("movePosition parameter not defined")},OrgChart.prototype.moveEnd=function(){this._moveInterval&&(clearInterval(this._moveInterval),this._moveInterval=null)},void 0===OrgChart&&(OrgChart={}),OrgChart.node=function(e,t,i,n){this.templateName=n,this.id=e,this.pid=t,this.children=[],this.childrenIds=[],this.parent=null,this.stpid=null,this.stParent=null,this.stChildren=[],this.stChildrenIds=[],this.tags=i,this.childCount=0,this.collapsedChildCount=0,this.deepCollapsedChildCount=0,this.deepChildCount=0,this.tags||(this.tags=[])},void 0===OrgChart&&(OrgChart={}),OrgChart.idb={version:1,dbName:"BALKAN",tableName:"orgchart-js",keyPath:"id"},OrgChart.idb.db=null,OrgChart.idb._open=function(e){if(OrgChart._browser().msie)e&&e(!1);else if((navigator.userAgent.toLowerCase().indexOf("safari")>0||navigator.userAgent.toLowerCase().indexOf("firefox")>0)&&window.location!==window.parent.location)e&&e(!1);else{if(!window.indexedDB)return console.error("Your browser doesn't support a stable version of IndexedDB."),void(e&&e(!1));if(null==OrgChart.idb.db){var t=indexedDB.open(OrgChart.idb.dbName,OrgChart.idb.version);t.onerror=function(t){console.error("Cannot open database!"),e&&e(!1)},t.onsuccess=function(t){OrgChart.idb.db=t.target.result,e&&e(!0)},t.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(OrgChart.idb.tableName)&&t.deleteObjectStore(OrgChart.idb.tableName),t.createObjectStore(OrgChart.idb.tableName,{keyPath:OrgChart.idb.keyPath})}}else e&&e(!0)}},OrgChart.idb.read=function(e,t){OrgChart.idb._open(function(i){if(i){var n=OrgChart.idb.db.transaction([OrgChart.idb.tableName]).objectStore(OrgChart.idb.tableName).get(e);n.onerror=function(e){console.error("Unable to retrieve data from database!"),t&&t(!1)},n.onsuccess=function(e){n.result?t&&t(!0,n.result):t&&t(null)}}else t&&t(!1)})},OrgChart.idb.write=function(e,t){OrgChart.idb.read(e.id,function(i){if(null==i){var n=OrgChart.idb.db.transaction([OrgChart.idb.tableName],"readwrite").objectStore(OrgChart.idb.tableName).add(e);n.onerror=function(e){console.error("Unable to add data to database!"),t&&t(!1)},n.onsuccess=function(e){t&&t(!0)}}else t&&t(i)})},OrgChart.idb.put=function(e,t){OrgChart.idb._open(function(i){if(i){var n=OrgChart.idb.db.transaction([OrgChart.idb.tableName],"readwrite").objectStore(OrgChart.idb.tableName).put(e);n.onerror=function(e){console.error("Unable to put data to database!"),t&&t(!1)},n.onsuccess=function(e){t&&t(!0)}}else t&&t(!1)})},OrgChart.idb.delete=function(e,t){OrgChart.idb._open(function(i){if(i){var n=OrgChart.idb.db.transaction([OrgChart.idb.tableName],"readwrite").objectStore(OrgChart.idb.tableName).delete(e);n.onerror=function(e){console.error("Unable to retrieve data from database!"),t&&t(!1)},n.onsuccess=function(e){n.error?t&&t(!1):t&&t(!0)}}else t&&t(!1)})},void 0===OrgChart&&(OrgChart={}),OrgChart.manager=function(e){this.config=e.config,this.layoutConfigs=e._layoutConfigs,this.visibleNodeIds=[],this.viewBox=null,this.action=null,this.actionParams=null,this.nodes={},this.oldNodes={},this.maxX=null,this.maxY=null,this.minX=null,this.minY=null,this.bordersByRootIdAndLevel=null,this.roots=null,this.state=null,this.vbIsInitializedFromState=!1,this.rootList=[],this.instance=e,this._fixAdjustForExport={x:0,y:0}},OrgChart.manager.prototype.read=function(e,t,i,n,o,r,a,l){var s=this;OrgChart.state._get(this.config.state,t,i,function(c){s.state=c,s.action=o,s.actionParams=r,o!=OrgChart.action.init||!s.state||r&&r.method&&"fit"==r.method?(s.viewBox=n,s.vbIsInitializedFromState=!1):(s.viewBox=s.state.vb,s.vbIsInitializedFromState=!0,Array.isArray(s.state.roots)&&(s.config.roots=s.state.roots));var d=s.maxX,h=s.maxY,p=s.minX,u=s.minY,f=s.bordersByRootIdAndLevel,g=s.roots,m=s.nodes;if(e){var x=OrgChart.manager._getResponse(t,i,s.visibleNodeIds,s.config,d,h,p,u,s.viewBox,g,s.action,s.actionParams,m,s.oldNodes,s.vbIsInitializedFromState);o!=OrgChart.action.exporting&&(s.maxX=d,s.maxY=h,s.minX=p,s.minY=u,s.roots=g,s.nodes=m,s.visibleNodeIds=x.visibleNodeIds),x.bordersByRootIdAndLevel=f,x.roots=g,x.adjustify={x:0,y:0},s.state&&(x.adjustify=s.state.adjustify),a(x)}else s.oldNodes=m||null,s._read(function(e){d=e.maxX,h=e.maxY,p=e.minX,u=e.minY,f=e.bordersByRootIdAndLevel,g=e.roots,m=e.nodes;var n=OrgChart.manager._getResponse(t,i,s.visibleNodeIds,s.config,d,h,p,u,s.viewBox,g,s.action,s.actionParams,m,s.oldNodes,s.vbIsInitializedFromState);n.notif=e.limit,n.roots=g,n.bordersByRootIdAndLevel=f,n.adjustify=e.adjustify,o!=OrgChart.action.exporting&&(s.maxX=d,s.maxY=h,s.minX=p,s.minY=u,s.roots=g,s.nodes=m,s.visibleNodeIds=n.visibleNodeIds,s.bordersByRootIdAndLevel=f,s.rootList=e.rootList),a(n)},l)})},OrgChart.manager.prototype._read=function(e,t){var i=this,n=OrgChart.manager._createNodes(this.instance);t(n);var o=n.nodes,r=n.roots,a=OrgChart.remote;null==a&&(a=OrgChart.local),a._setPositions(r,i.layoutConfigs,function(t){var a=OrgChart.manager._doNotChangePositionOfClickedNodeIfAny(r,o,i.action,i.actionParams,i.oldNodes,i.config.orientation);i.state&&i.action==OrgChart.action.init&&(a=i.state.adjustify),i.action==OrgChart.action.exporting?a=i._fixAdjustForExport:i._fixAdjustForExport=a;for(var l={minX:null,minY:null,maxX:null,maxY:null},s={},c=[],d=0;d<r.length;d++)OrgChart.manager._setMinMaxXYAdjustifyIterate(r[d],r[d],l,0,s,a,i.config.orientation,c);for(d=0;d<r.length;d++)OrgChart.manager._setChildCountPropsIterate(r[d],o);for(var h in c)for(var p in c[h]){var u=s[h][p],f=c[h][p];null==u.minX&&null==u.minY&&null==u.maxX&&null==u.maxY&&OrgChart._setMinMaxXY(f,u,!0)}e({minX:l.minX,minY:l.minY,maxX:l.maxX,maxY:l.maxY,bordersByRootIdAndLevel:s,nodes:o,roots:r,rootList:n.rootList,limit:t,adjustify:a})},o)},void 0===OrgChart&&(OrgChart={}),OrgChart.manager._initDinamicNode=function(e,t,i){t&&(e.lcn=t),i&&(e.isAssistant=!0);var n=OrgChart.t(e.templateName);e.w=n&&n.size?n.size[0]:0,e.h=n&&n.size?n.size[1]:0,e.isSplit="split"==e.templateName,e.isMirror="mirror"==e.templateName,e.isSubLevel="subLevel"==e.templateName},OrgChart.manager._setCollpasedProperty=function(e,t,i,n,o,r,a,l){if(null==e.collapsed&&t.collapse&&t.collapse.allChildren?e.collapsed=!0:null==e.collapsed&&(e.collapsed=!1),o==OrgChart.action.expand&&-1!=i.ids.indexOf(e.id)&&(e.collapsed=!1),o==OrgChart.action.collapse&&(i.expandIds||i.collapseIds)?i.expandIds&&-1!=i.expandIds.indexOf(e.id)?e.collapsed=!1:i.collapseIds&&-1!=i.collapseIds.indexOf(e.id)&&(e.collapsed=!0):o==OrgChart.action.collapse&&-1!=i.ids.indexOf(e.id)&&(e.collapsed=!0),o==OrgChart.action.expand&&"all"==i.ids&&(e.collapsed=!1),o!=OrgChart.action.exporting||OrgChart.isNEU(i.parentLevels)&&OrgChart.isNEU(i.childLevels)||null==i.id)o==OrgChart.action.exporting&&i.expandChildren&&(e.collapsed=!1);else if(!(null==i.id||OrgChart.isNEU(i.parentLevels)&&OrgChart.isNEU(i.childLevels))){var s=l[i.id];if(s==e)e.collapsed=!1;else{for(var c=!1,d=-1,h=!1,p=-1;s;){if(d++,s==e){c=!0;break}s=l[s.pid]}s=l[i.id];for(var u=l[e.id];u;){if(p++,u==s){h=!0;break}u=l[u.pid]}null!=i.parentLevels&&c&&d<=i.parentLevels||null!=i.childLevels&&h&&p<=i.childLevels||h&&i.expandChildren?e.collapsed=!1:e.collapsed=!0}}o==OrgChart.action.init&&null!=a?e.collapsed=!a.exp.has(e.id):o==OrgChart.action.init?-1!=e.tags.indexOf("left-partner")||-1!=e.tags.indexOf("right-partner")||-1!=e.tags.indexOf("partner")||e.parentPartner?e.collapsed=t.collapse&&r>=t.collapse.level&&-1==n.indexOf(e.id):e.collapsed=t.collapse&&r>=t.collapse.level-1&&-1==n.indexOf(e.id):o==OrgChart.action.centerNode||o==OrgChart.action.insert||o==OrgChart.action.expand||o==OrgChart.action.collapse?n.has(e.id)&&(e.collapsed=!1):o==OrgChart.action.update&&i&&i.changeRoots&&i.changeRoots.has(e.id)&&(e.collapsed=!1)},OrgChart.manager._initNode=function(e,t,i,n,o,r,a){var l=a.manager.config,s=a.manager.layoutConfigs,c=a.manager.action,d=a.manager.actionParams,h=a.manager.state,p=s[i||"base"];null==e.parent&&OrgChart.manager._setCollpasedProperty(e,p,d,o,c,n-1,h,t);for(var u=0;u<e.childrenIds.length;u++){var f=t[e.childrenIds[u]];if(OrgChart.manager._setCollpasedProperty(f,p,d,o,c,n,h,t),f.collapsed)e.collapsedChildCount++;else{if(f.parent=e,null!=f.ppid){var g=t[f.ppid];g&&(f.parentPartner=g)}(-1!=f.tags.indexOf("left-partner")||-1!=f.tags.indexOf("right-partner")||-1!=f.tags.indexOf("partner")||f.parentPartner)&&-1==r.indexOf(e.id)&&r.push(e.id),e.children.push(f)}}if(c!=OrgChart.action.minimize||e.min?c==OrgChart.action.maximize&&!0===e.min?(d.all||d.id==e.id)&&(e.min=!1):c==OrgChart.action.exporting&&!1===d.min?e.min=!1:c==OrgChart.action.init&&null!=h&&(e.min=h.min.has(e.id)):(d.all||d.id==e.id)&&(e.min=!0),!(e.min||e.tags&&e.tags.has("filter")))for(u=0;u<e.stChildrenIds.length;u++){(f=t[e.stChildrenIds[u]]).stParent=e,e.stChildren.push(f)}null!=n&&(e.level=n),i&&(e.lcn=i);var m=OrgChart._getSubLevels(e.tags,l.tags);m>0&&(e.subLevels=m),-1!=e.tags.indexOf("assistant")&&null!=e.parent&&(e.isAssistant=!0),p.layout==OrgChart.layout.treeList&&(e.isTreeListItem=!0),p.template&&l.template==e.templateName&&(e.templateName=p.template);var x=OrgChart.t(e.templateName,e.min);if(e.w=x&&x.size?x.size[0]:0,e.h=x&&x.size?x.size[1]:0,e.padding=x&&x.padding?x.padding:[0,0,0,0],e.isTreeListItem&&e.stParent&&null==e.stParent.treeList){var b=OrgChart.t(e.stParent.templateName,e.stParent.min);e.stParent.treeList={pinnedIds:[],scrollTop:0,scrollTopMax:0,maxHeight:b.treeListMaxHeight}}var y={node:e};OrgChart.events.publish("node-initialized",[a,y])},OrgChart.manager._iterate=function(e,t,i,n,o,r,a,l,s,c,d,h){var p=h.manager.layoutConfigs;if(OrgChart.manager._initNode(t,i,s,n,c,d,h),t.isAssistant&&(r[t.pid]||(r[t.pid]=[]),r[t.pid].push(t.id)),t.subLevels>0&&a.push(t.id),OrgChart.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN&&!t.isAssistant&&t.parent){if(t.parent&&t.parent.children.length&&t.parent.children[t.parent.children.length-1]==t){for(var u=[],f=0,g=0,m=0;m<t.parent.children.length;m++){-1==(x=t.parent.children[m]).tags.indexOf("partner")&&-1==x.tags.indexOf("left-partner")&&-1==x.tags.indexOf("right-partner")&&-1==x.tags.indexOf("assistant")&&0==x.children.length?u.push(x.id):-1!=x.tags.indexOf("assistant")?f++:-1==x.tags.indexOf("partner")&&-1==x.tags.indexOf("left-partner")&&-1==x.tags.indexOf("right-partner")||g++}(OrgChart.MIXED_LAYOUT_ALL_NODES&&u.length>1&&u.length==t.parent.children.length-f-g||!OrgChart.MIXED_LAYOUT_ALL_NODES&&u.length>1)&&(l[t.pid]=u)}}else if(!t.isAssistant&&0==t.childrenIds.length&&t.parent&&!l[t.pid]){for(u=[],f=0,g=0,m=0;m<t.parent.children.length;m++){var x;-1==(x=t.parent.children[m]).tags.indexOf("partner")&&-1==x.tags.indexOf("left-partner")&&-1==x.tags.indexOf("right-partner")&&-1==x.tags.indexOf("assistant")&&0==x.childrenIds.length?u.push(x.id):-1!=x.tags.indexOf("assistant")?f++:-1==x.tags.indexOf("partner")&&-1==x.tags.indexOf("left-partner")&&-1==x.tags.indexOf("right-partner")||g++}(OrgChart.MIXED_LAYOUT_ALL_NODES&&u.length>OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&u.length==t.parent.childrenIds.length-f-g||!OrgChart.MIXED_LAYOUT_ALL_NODES&&u.length>OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)&&(l[t.pid]=u)}t.stChildren.length&&(e.stContainerNodes||(e.stContainerNodes=[]),e.stContainerNodes.push(t));for(var b=0;b<t.stChildren.length;b++){var y="";for(m=0;m<t.tags.length;m++)if(p[t.tags[m]]){y=t.tags[m];break}o.push(t.stChildren[b].id),OrgChart.manager._iterate(e,t.stChildren[b],i,0,o,r,a,l,y,c,d,h)}n++;for(b=0;b<t.children.length;b++)t.isTreeListItem&&(t.children[b].isTreeListItem=t.isTreeListItem),OrgChart.manager._iterate(e,t.children[b],i,n,o,r,a,l,s,c,d,h)},OrgChart.manager.__createNodes=function(e,t,i,n,o,r,a,l){for(var s=[],c=OrgChart._addDottedLines(i),d=0;d<c.length;d++){var h,p=c[d];h=OrgChart.STRING_TAGS?p.tags?p.tags.split(","):[]:Array.isArray(p.tags)?p.tags.slice(0):[],l.filterUI.addFilterTag(p)&&h.unshift("filter");var u=l.searchUI.addMatchTag(p.id);!0===u?h.unshift("match"):!1===u&&h.unshift("no-match");var f=OrgChart._getTemplate(h,i.tags,i.template),g=new OrgChart.node(p.id,p.pid,h,f);OrgChart.isNEU(p.ppid)||(g.ppid=p.ppid),OrgChart.isNEU(p.stpid)||(g.stpid=p.stpid),null!=p.movex&&(g.movex=p.movex),null!=p.movey&&(g.movey=p.movey),e[p.id]=g,s.push(p.id)}if(null!=i.orderBy){var m=OrgChart.manager._getOrderSortArray(i.orderBy);s.sort(function(e,t){var i,n;for(var o of c)if(o.id==e&&(i=o),o.id==t&&(n=o),i&&n)break;for(var r=0;r<m.length;r++){var a=i[m[r].field],l=n[m[r].field],s=a,d=l;if(null==s&&(s=""),null==d&&(d=""),"string"==typeof s&&"string"==typeof d){var h=s.localeCompare(d);if(m[r].desc&&(h*=-1),0!==h)return h}else{h=a<l?-1:a>l?1:0;if(m[r].desc&&(h*=-1),0!==h)return h}}})}for(d=0;d<s.length;d++){var x=s[d],b=(g=e[x],r?r[x]:null),y=e[g.stpid],v=e[g.pid];if(y||(g.stpid=null),v||(g.pid=null),y){var _=r?r[y.id]:null;_&&(y.min=_.min),y.stChildrenIds.push(g.id)}else v?(b&&(g.collapsed=b.collapsed,g.min=b.min,g.treeList=b.treeList),v.childrenIds.push(g.id)):(b&&(g.collapsed=b.collapsed,g.min=b.min,g.treeList=b.treeList),t.push(g),a.push(g.id));n==OrgChart.action.init&&(g.min=OrgChart._getMin(g,i))}},OrgChart.manager._createNodes=function(e){var t=e.manager.config,i=e.manager.layoutConfigs,n=e.manager.action,o=e.manager.actionParams,r=e.manager.oldNodes,a=e.manager.state,l={},s=[],c=[];if(OrgChart.manager.__createNodes(l,s,t,n,o,r,c,e),null!=t.roots){s=[];for(var d=0;d<t.roots.length;d++){var h=l[t.roots[d]];if(h&&n==OrgChart.action.centerNode){for(var p=h;null!=p.pid||null!=p.stpid;)p=null==p.pid&&null!=p.stpid?l[p.stpid]:l[p.pid];for(var u=l[o.id];(null!=u.pid||null!=u.stpid)&&u!=h;)u=null==u.pid&&null!=u.stpid?l[u.stpid]:l[u.pid];p==u&&(h=p)}if(h){for(var f=!1,g=0;g<s.length;g++)if(s[g].id==h.id){f=!0;break}if(!f){if(!OrgChart.isNEU(h.pid))(me=(m=l[h.pid]).childrenIds.indexOf(h.id))>-1&&m.childrenIds.splice(me,1);s.push(h)}}}t.roots=[];for(d=0;d<s.length;d++)t.roots.push(s[d].id)}if(n==OrgChart.action.exporting&&null!=o.id)if(o.parentLevels){for(var m=l[o.id],x=0;x<o.parentLevels&&l[m.pid];)x++,m=l[m.pid];m.pid=null,s=[m]}else{(y=l[o.id])&&(y.pid=null,s=[y])}var b=[];if(n==OrgChart.action.init&&t.expand&&t.expand.nodes&&null==a)for(d=0;d<t.expand.nodes.length;d++){var y=l[t.expand.nodes[d]];for(!0===t.expand.allChildren&&OrgChart.manager._addExpandedNodeIdsIterate(y,l,b);y;)b.push(y.id),null==y.pid&&null!=y.stpid?(y=l[y.stpid]).min=!1:y=l[y.pid]}else if(n==OrgChart.action.expand&&o.ids&&"all"!=o.ids||n==OrgChart.action.collapse&&o&&o.expandIds){oe=n==OrgChart.action.expand?o.ids:o.expandIds;for(d=0;d<oe.length;d++)for(m=l[(y=l[oe[d]]).pid];m;)b.push(m.id),null==m.pid&&null!=m.stpid?(m=l[m.stpid]).min=!1:m=l[m.pid]}else if(n==OrgChart.action.centerNode){for(var v=OrgChart._getCenterNodeFromParams(l,o);v;){if(b.push(v.id),o.options.parentState===OrgChart.COLLAPSE_PARENT_NEIGHBORS&&v)for(d=0;d<v.childrenIds.length;d++){(z=l[v.childrenIds[d]]).collapsed=!0}if(null==v.pid&&null!=v.stpid){if((v=l[v.stpid]).min=!1,v.tags)-1!=(me=v.tags.indexOf("filter"))&&(v.tags.splice(me,1),e.filterUI._removeFilter(v.id))}else v=l[v.pid]}if(v=OrgChart._getCenterNodeFromParams(l,o),o.options.childrenState===OrgChart.COLLAPSE_SUB_CHILDRENS)for(d=0;d<v.childrenIds.length;d++){(w=l[v.childrenIds[d]]).collapsed=!1;for(var _=0;_<w.childrenIds.length;_++){l[w.childrenIds[_]].collapsed=!0}}if(o.options.parentState===OrgChart.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED)if(m=l[v.pid])for(d=0;d<m.childrenIds.length;d++){var w;if((w=l[m.childrenIds[d]])!=v){w.collapsed=!1;for(_=0;_<w.childrenIds.length;_++){l[w.childrenIds[_]].collapsed=!0}}}}else if(n==OrgChart.action.insert)for(y=l[o.insertedNodeId];y;)b.push(y.id),null==y.pid&&null!=y.stpid?(y=l[y.stpid]).min=!1:y=l[y.pid];var I=[],k={},C=[],L={},S=[];for(d=0;d<s.length;d++)OrgChart.manager._iterate(s[d],s[d],l,0,I,k,C,L,"",b,S,e);if(n==OrgChart.action.collapse&&o&&Array.isArray(o.expandIds)&&Array.isArray(o.collapseIds))for(d=0;d<o.ids.length;d++)if(o.expandIds.has(o.collapseIds[d]))console.error(`id ${o.collapseIds[d]} exist in both collapseIds and expandIds`);else{(y=l[o.collapseIds[d]])&&(y.collapsed=!0)}for(d=s.length-1;d>=0;d--)s[d].collapsed&&s.splice(d,1);for(d=0;d<S.length;d++){y=l[S[d]];var N=[],A=[],E=[],M={},$=0,U=0,T=0,P=[],O=[];for(_=0;_<y.children.length;_++){(z=y.children[_]).isAssistant?N.push(z.id):-1!=z.tags.indexOf("right-partner")?(z.isPartner=1,z.children=[],A.push(z.id)):-1!=z.tags.indexOf("left-partner")?(z.isPartner=2,z.children=[],E.push(z.id)):-1==z.tags.indexOf("partner")||$%2?-1!=z.tags.indexOf("partner")&&$%2?(z.isPartner=2,z.children=[],E.push(z.id),$++):z.parentPartner?(M[z.parentPartner.id]||(M[z.parentPartner.id]=[]),M[z.parentPartner.id].push(z.id)):N.push(z.id):(z.isPartner=1,z.children=[],A.push(z.id),$++)}y.children=[];var B=[];for(_=0;_<A.length;_++){M[(z=l[A[_]]).id]?y.children.push(z):y.children.splice(0,0,z);for(var R=0;R<z.childrenIds.length;R++)B.push(z.childrenIds[R])}var H=[];for(_=0;_<E.length;_++){M[(z=l[E[_]]).id]?y.children.push(z):y.children.splice(0,0,z);for(R=0;R<z.childrenIds.length;R++)H.push(z.childrenIds[R])}for(_=0;_<H.length;_++){(z=l[H[_]]).collapsed||(z.parentPartner=z.parent,z.parent=y,z.isChildOfPartner=!0,y.children.push(z))}for(_=E.length-1;_>=0;_--)if(M[E[_]])for(g=0;g<M[E[_]].length;g++)y.children.push(l[M[E[_]][g]]),U++,-1==O.indexOf(E[_])&&O.push(E[_]);for(_=0;_<N.length;_++){var z=l[N[_]];y.children.push(z)}for(_=0;_<A.length;_++)if(M[A[_]])for(g=0;g<M[A[_]].length;g++)y.children.push(l[M[A[_]][g]]),T++,-1==P.indexOf(A[_])&&P.push(A[_]);for(_=0;_<B.length;_++){(z=l[B[_]]).collapsed||(z.parentPartner=z.parent,z.parent=y,z.isChildOfPartner=!0,y.children.push(z))}y.partnerSeparation=Math.max(O.length,P.length)*t.partnerChildrenSplitSeparation+t.minPartnerSeparation,N.length||!U||T?N.length||U||!T?N.length||1!=U||1!=T?N.length||U||T?!N.length||U||T?N.length&&(U||T)?y.hasPartners=7:y.hasPartners=1:y.hasPartners=6:y.hasPartners=5:y.hasPartners=4:y.hasPartners=3:y.hasPartners=2}for(d=0;d<C.length;d++){var F=i[(y=l[C[d]]).lcn?y.lcn:"base"];for(_=0;_<y.subLevels;_++){var D=new OrgChart.node(y.id+"_sub_level_index_"+_,y.pid,[],"subLevel");if(OrgChart.manager._initDinamicNode(D,y.lcn),m=y.parent)null!=y.movex&&(D.movex=y.movex),null!=y.movey&&(D.movey=y.movey),(me=m.children.indexOf(y))>-1&&(m.children.splice(me,1),m.children.splice(me,0,D)),D.children.push(y),D.parent=m,y.parent=D,l[D.id]=D}}for(var V in k){(m=l[V]).hasAssistants=!0;D=new OrgChart.node(m.id+"_split_assitant_0",m.id,["assistant"],"split");null!=m.movex&&(D.movex=m.movex),null!=m.movey&&(D.movey=m.movey),OrgChart.manager._initDinamicNode(D,m.lcn,!0),l[D.id]=D;var Y=[];for(_=m.children.length-1;_>=0;_--){(z=m.children[_]).isAssistant?(z.parent=null,m.children.splice(_,1),Y.splice(0,0,z.id)):z.isPartner||(z.parent&&L[z.parent.id]&&D&&z.parent.id!=D.id&&(Object.defineProperty(L,D.id,Object.getOwnPropertyDescriptor(L,z.parent.id)),delete L[z.parent.id]),z.parent=D,D.children.unshift(z),m.children.splice(_,1))}if(Y.length%2){var j=l[Y[Y.length-1]],X=new OrgChart.node(j.id+"_mirror",m.pid,[],"mirror");OrgChart.manager._initDinamicNode(X,j.lcn,!0),X.isAssistant=!0,X.w=j.w,X.h=j.h,l[X.id]=X,Y.splice(Y.length-1,0,X.id)}var G=1;for(_=Y.length-1;_>=0;_--)if(_%2&&_!=Y.length-1){var q=new OrgChart.node(m.id+"_split_assitant_"+G,m.pid,[],"split");OrgChart.manager._initDinamicNode(q,m.lcn,!0),null!=m.movex&&(q.movex=m.movex),null!=m.movey&&(q.movey=m.movey),l[q.id]=q,Y.splice(_,0,q.id),G++}else _%2&&Y.splice(_,0,D.id);for(_=0;_<Y.length;_+=3){var W=null;W=0==_?m:l[Y[_-2]];var K=l[Y[_]],Z=l[Y[_+1]],J=l[Y[_+2]];K.parent=W,Z.parent=W,J.parent=W,W.children.push(K),W.children.push(Z),W.children.push(J)}}var Q=!1;for(var ee in i){if(0!=(F=i[ee]).layout){Q=!0;break}}var te=OrgChart.events.has("node-layout",e._event_id);if(Q||te){var ie={nodes:l,config:t,action:n,actionParams:o};if(C.length){var ne=!1;for(var V in L){var oe=L[V];for(d=0;d<oe.length;d++){if((y=l[oe[d]]).subLevels){ne=!0;break}}if(ne)break}if(ne){var re={},ae={},le={};for(var V in L){oe=L[V];var se=!1,ce=null;for(d=0;d<oe.length;d++){var de=oe[d];(null===ce||C.has(de))&&(ce=l[de].parent.id,se||OrgChart.isNEU(l[de].subLevels)||(se=l[de].subLevels>0)),re[ce]||(re[ce]=[]),re[ce].push(de),se&&(le[ce]=V,ae[ce]||(ae[ce]=[]),ae[ce].push(de))}}for(var V in L={},ae)if(ae[V].length>OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN){var he=le[V];for(d=l[he].children.length-1;d>=0;d--){z=l[he].children[d];ae[V].has(z.id)&&l[he].children.splice(d,1)}}for(var V in re)re[V].length>OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&(L[V]=re[V])}}for(var V in L){for(var pe=m=l[V];pe.isSplit;)pe=l[pe.pid];for(;pe.isSubLevel;)pe=l[pe.pid];if(0!=(F=i[m.lcn?m.lcn:"base"]).layout||te){ie.pnode=m,ie.layout=F.layout,ie.layoutGridColumns=t.layoutGridColumns,ie.childrenIds=L[V],ie.lastChildrenPidIds=L,ie.subLevels=0,ie.layouts=[],OrgChart.events.publish("node-layout",[e,ie]),OrgChart.events.publish("layout",[ie]),ie.layouts.length||ie.layouts.push({layout:ie.layout,childrenIds:ie.childrenIds,subLevels:ie.subLevels,layoutGridColumns:ie.layoutGridColumns});for(var ue=0;ue<ie.layouts.length;ue++){var fe=ie.layouts[ue];for(OrgChart.isNEU(fe.subLevels)&&(fe.subLevels=0),OrgChart.isNEU(fe.layout)&&(fe.layout=F.layout),pe=m=l[V];pe.isSplit;)pe=l[pe.pid];for(;pe.isSubLevel;)pe=l[pe.pid];var ge=m;for(_=0;_<fe.subLevels;_++){D=new OrgChart.node(ue+"_sublevel_layout_"+_,ge.id,[],"subLevel");OrgChart.manager._initDinamicNode(D,ge.lcn),D.parent=ge,ge.children.push(D),l[D.id]=D,ge=D}if(fe.subLevels){for(_=0;_<fe.childrenIds.length;_++){var me;z=l[fe.childrenIds[_]];-1!=(me=m.children.indexOf(z))&&m.children.splice(me,1),z.parent=ge,ge.children.push(z)}m=ge}if(fe.layout==OrgChart.layout.grid&&fe.childrenIds.length>2){"dynamic"==fe.layoutGridColumns&&(fe.layoutGridColumns=OrgChart._getDynamicGridCoulumns(fe.childrenIds.length));var xe=m.id;for(d=m.children.length-1;d>=0;d--)for(_=0;_<fe.childrenIds.length;_++){de=fe.childrenIds[_];if(m.children[d].id==de){m.children.splice(d,1);break}}var be=fe.layoutGridColumns;be%2!=0&&be>2&&be--;for(d=0;d<fe.childrenIds.length;d+=be){var ye=null;for(_=0;_<be;_++){var ve=d+be>=fe.childrenIds.length;if(fe.childrenIds.length-1<d+_)break;(z=l[de=fe.childrenIds[d+_]]).parent=l[xe],l[xe].children.push(z),ve||(be/2-1==_&&(ye=new OrgChart.node(fe.childrenIds[d+_-1]+"_grid_pseudo_node_"+fe.childrenIds[d+_+1],xe,[],"subLevel"),OrgChart.manager._initDinamicNode(ye,m.lcn),ye.parent=l[xe],l[xe].children.push(ye),l[ye.id]=ye),be-1==_&&(xe=ye.id))}}}if(fe.layout==OrgChart.layout.mixed){var _e=fe.childrenIds;for(d=_e.length-1;d>=0;d--){m=(z=l[_e[d]]).parent,z.layout=OrgChart.layout.mixed;for(_=m.children.length-1;_>=0;_--)if(z.id==m.children[_].id){m.children.splice(_,1);break}if(d>0){var we=l[_e[d-1]];z.parent=we,z.layout=OrgChart.layout.mixed,we.children.push(z)}else m.children.push(z)}}else if(fe.layout>1){D=new OrgChart.node(ue+"_"+m.id+"_split_0",pe.id,[],"split");null!=m.movex&&(D.movex=m.movex),null!=m.movey&&(D.movey=m.movey),OrgChart.manager._initDinamicNode(D,m.lcn),l[D.id]=D,D.layout=fe.layout;var Ie=[];for(d=fe.childrenIds.length-1;d>=0;d--){for(z=l[fe.childrenIds[d]],_=0;_<m.children.length;_++)m.children[_].id==z.id&&m.children.splice(_,1);if(z.parent=null,z.layout=fe.layout,fe.layout!=OrgChart.layout.treeRightOffset&&fe.layout!=OrgChart.layout.treeRight||Ie.splice(0,0,z.id),fe.layout>2){var ke=new OrgChart.node(ue+"_"+z.id+"_mirror",pe.id,[],"mirror");OrgChart.manager._initDinamicNode(ke,z.lcn),ke.layout=fe.layout,l[ke.id]=ke,Ie.splice(0,0,ke.id)}fe.layout!=OrgChart.layout.treeRightOffset&&fe.layout!=OrgChart.layout.treeRight&&Ie.splice(0,0,z.id)}for(G=1,_=Ie.length-1;_>=0;_--)if(_%2&&_!=Ie.length-1){q=new OrgChart.node(ue+"_"+m.id+"_split_"+G,pe.id,[],"split");OrgChart.manager._initDinamicNode(q,m.lcn),null!=m.movex&&(q.movex=m.movex),null!=m.movey&&(q.movey=m.movey),q.layout=fe.layout,l[q.id]=q,Ie.splice(_,0,q.id),G++}else _%2&&Ie.splice(_,0,D.id);for(_=0;_<Ie.length;_+=3){W=null;0==_&&(W=m);K=l[Ie[_]],Z=l[Ie[_+1]],J=l[Ie[_+2]];0!=_&&(W=l[Ie[_-3]]),0==_||Z||(W=l[Ie[_-2]]),K.parent=W,W.children.push(K),Z&&(0!=_&&(W=l[Ie[_-2]]),Z.parent=W,W.children.push(Z)),J&&(0!=_&&(W=l[Ie[_-1]]),J.parent=W,W.children.push(J))}}}}}}if(OrgChart.VERTICAL_CHILDREN_ASSISTANT)for(d=0;d<s.length;d++)OrgChart.manager._verticalAssistantIterate(s[d],l);ie={nodes:l,roots:s};return OrgChart.events.publish("nodes-initialized",[e,ie]),{nodes:ie.nodes,roots:ie.roots,rootList:c}},OrgChart.manager._getOrderSortArray=function(e){if("string"==typeof e)return[{field:e,desc:!1}];if(Array.isArray(e)){var t=[];for(var i of e)"string"==typeof i?t.push({field:i,desc:!1}):e instanceof Object?t.push(i):console.error("Unseported orderBy value!");return t}if(e instanceof Object)return[e];console.error("Unseported orderBy value!")},OrgChart.manager._getNodeWidth=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h}return 0},OrgChart.manager._isVisible=function(e,t,i,n,o,r,a){var l=0;if("auto"==OrgChart.LAZY_LOADING_FACTOR){var s=r/o*2,c=a/o*2;l=s>c?Math.ceil(s):Math.ceil(c)}else l=OrgChart.LAZY_LOADING_FACTOR/o;if(null!=e.x&&null!=e.y){if(OrgChart._getLazyLoading(t)&&n!==OrgChart.action.exporting){function is_vizible(e,t){var i=e.x,n=e.y,o=e.w,r=e.h,a=t[0]-l,s=t[2]+l+t[0],c=t[1]-l,d=t[3]+l+t[1],h=i+o>a&&s>i;return h&&(h=n+r>c&&d>n),h}if(is_vizible(e,i))return!0;for(var d=0;d<e.children.length;d++)if(is_vizible(e.children[d],i))return!0;return!1}return!0}},OrgChart.manager.getAllFields=function(e){var t=[OrgChart.TAGS];for(var i in e.nodeBinding)t.push(e.nodeBinding[i]);for(i=0;i<e.nodes.length;i++)for(var n in e.nodes[i])n!==OrgChart.ID&&n!==OrgChart.TAGS&&n!==OrgChart.NODES&&n!==OrgChart.PID&&n!==OrgChart.STPID&&"movex"!==n&&"movey"!==n&&(e.nodeBinding[n]||t.has(n)||t.push(n));return t},OrgChart.manager._getMostDeepChild=function(e){if(e){var t=e;return function getMostDeepChild(e){e.sl>t.sl&&(t=e);for(var i=0;i<e.children.length;i++)getMostDeepChild(e.children[i])}(e),t}},OrgChart.manager._getResponse=function(e,t,i,n,o,r,a,l,s,c,d,h,p,u,f){var g=c[0],m=[],x={top:null,left:null,bottom:null,right:null,minX:null,maxX:null,minY:null,maxY:null},b=[[],[],[]],y=o-a+2*n.padding,v=r-l+2*n.padding,_=OrgChart.getScale(s,e,t,n.scaleInitial,n.scaleMax,n.scaleMin,y,v);if(x.top=l-n.padding,x.left=a-n.padding,x.bottom=r+n.padding-t/_,x.right=o+n.padding-e/_,x.maxX=o,x.minX=a,x.maxY=r,x.minY=l,0==c.length||null==s&&!f&&n.align==OrgChart.CENTER){var w=Math.ceil(e/_),I=Math.ceil(t/_),k=0,C=0;if(w-2*n.padding>=o-a)switch(k=(o+a)/2-w/2,n.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:k=(a-o)/2-w/2}else switch(k=g.x-w/2+OrgChart.manager._getNodeWidth(g,n)/2,n.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:(k=-(w/2-(a-o)/2))<n.padding-w&&(k=n.padding-w);break;case OrgChart.orientation.left:case OrgChart.orientation.bottom_left:case OrgChart.orientation.top_left:case OrgChart.orientation.left_top:(k=-(w/2-(o-a)/2))>-n.padding&&(k=-n.padding)}if(I-2*n.padding>=r-l)switch(C=(r+l)/2-I/2,n.orientation){case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:C=(l-r)/2-I/2}else switch((C=-(I/2-(r-l)/2))>-n.padding&&(C=-n.padding),n.orientation){case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:(C=-(I/2-(l-r)/2))<n.padding-I&&(C=n.padding-I);break;case OrgChart.orientation.left:case OrgChart.orientation.right:C=g.y-I/2+OrgChart.manager._getNodeWidth(g,n)/2}s=[k,C,w,I]}else if(null==s&&!f&&n.align==OrgChart.ORIENTATION){w=Math.ceil(e/_),I=Math.ceil(t/_),k=0,C=0;switch(n.orientation){case OrgChart.orientation.top:k=g.x-w/2+OrgChart.manager._getNodeWidth(g,n)/2,C=-n.padding;break;case OrgChart.orientation.bottom:k=g.x-w/2+OrgChart.manager._getNodeWidth(g,n)/2,C=n.padding-I;break;case OrgChart.orientation.left:k=-n.padding,C=g.y-I/2+OrgChart.manager._getNodeWidth(g,n)/2;break;case OrgChart.orientation.right:k=n.padding-w,C=g.y-I/2+OrgChart.manager._getNodeWidth(g,n)/2;break;case OrgChart.orientation.top_left:k=-n.padding,C=-n.padding;break;case OrgChart.orientation.right_top:k=n.padding-w,C=-n.padding;break;case OrgChart.orientation.left_top:k=-n.padding,C=-n.padding;break;case OrgChart.orientation.bottom_left:k=-n.padding,C=n.padding-I}s=[k,C,w,I]}if(d==OrgChart.action.centerNode||d==OrgChart.action.maximize){var L=OrgChart._getCenterNodeFromParams(p,h);1==h.options.horizontal&&(s[0]=L.x+L.w/2-s[2]/2),1==h.options.vertical&&(s[1]=L.y+L.h/2-s[3]/2)}if(d==OrgChart.action.insert||d==OrgChart.action.expand||d==OrgChart.action.collapse||d==OrgChart.action.update||d==OrgChart.action.centerNode){var S=null;if(d==OrgChart.action.insert&&h&&null!=h.insertedNodeId&&null!=h.insertedNodeId)S=p[h.insertedNodeId];else if(d==OrgChart.action.update&&h&&null!=h.visId&&null!=h.visId)S=p[h.visId];else if(d!=OrgChart.action.expand&&d!=OrgChart.action.collapse||!h||null==h.id||null==h.id){if(d==OrgChart.action.centerNode){switch(n.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:h.options.vertical||(S=p[h.id]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:h.options.horizontal||(S=p[h.id])}S&&(S=OrgChart.manager._getMostDeepChild(S))}}else S=p[h.id],S=OrgChart.manager._getMostDeepChild(S);if(!OrgChart.FIXED_POSITION_ON_CLICK&&S){if(S.isTreeListItem){for(;!S.stParent;)S=S.parent;S=S.stParent}switch(n.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:var N=S.y+S.h-s[3]+n.padding;s[1]<N&&(s[1]=N);break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:N=S.y-n.padding;s[1]>N&&(s[1]=N);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:N=S.x-n.padding;s[0]>N&&(s[0]=N);break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:N=S.x+S.w-s[2]+n.padding;s[0]<N&&(s[0]=N)}}}for(var A=0;A<c.length;A++)OrgChart.manager._iterate2(c[A],p,n,s,d,h,m,u,i,b,_,e,t);return{animations:b,boundary:x,viewBox:s,visibleNodeIds:m,nodes:p,allFields:OrgChart.manager.getAllFields(n)}},OrgChart.manager._iterate2=function(e,t,i,n,o,r,a,l,s,c,d,h,p){if(OrgChart.manager._isVisible(e,i,n,o,d,h,p)){a.push(e.id);var u=null;if((o==OrgChart.action.expand||o==OrgChart.action.collapse||o==OrgChart.action.maximize)&&l&&l[e.id]&&"expandCollapseToLevel"==r.method){if(u={x:(x=l[e.id]).x,y:x.y},x){u={x:x.x,y:x.y};for(var f=e,g=null;null!=f;)l[f.id]&&l[f.id].collapsed&&(g=f),f=f.parent;g&&g.parent&&(u={x:g.parent.x,y:g.parent.y})}if(b=t[r.id]){for(f=e.parent;null!=f;)f=f.parent;f&&(u={x:b.x+b.w/2-e.w/2,y:b.y+b.h/2-e.h/2})}}else if((o==OrgChart.action.expand||o==OrgChart.action.collapse)&&l&&l[e.id]){if(u={x:(x=l[e.id]).x,y:x.y},"all"==r.ids&&x){u={x:x.x,y:x.y};for(f=e,g=null;null!=f;)l[f.id]&&l[f.id].collapsed&&(g=f),f=f.parent;g&&g.parent&&(u={x:g.parent.x,y:g.parent.y})}if(b=t[r.id]){for(f=e.parent;null!=f&&-1==r.ids.indexOf(e.id)&&-1==r.ids.indexOf(f.id);)f=f.parent;f&&(u={x:b.x+b.w/2-e.w/2,y:b.y+b.h/2-e.h/2})}}else if(o==OrgChart.action.centerNode&&l&&l[e.id]){if(null!=(x=l[e.id]).x&&null!=x.y&&(u={x:x.x,y:x.y}),(m=OrgChart._getCenterNodeFromParams(t,r))&&m==e)(f=e.parent)&&f.id==r.id&&(u={x:m.x+m.w/2-e.w/2,y:m.y+m.h/2-e.h/2})}else if(o==OrgChart.action.maximize&&l&&l[e.id]){var m;if(null!=(x=l[e.id]).x&&null!=x.y&&(u={x:x.x,y:x.y}),(m=OrgChart._getCenterNodeFromParams(t,r))&&m==e)(f=e.parent)&&f.id==r.id&&(u={x:m.x+m.w/2-e.w/2,y:m.y+m.h/2-e.h/2})}else if(o==OrgChart.action.minimize&&l&&l[e.id]){u={x:(x=l[e.id]).x,y:x.y}}else if(o==OrgChart.action.insert&&r&&r.insertedNodeId==e.id&&e.parent)u={x:e.parent.x,y:e.parent.y};else if(o!=OrgChart.action.update&&o!=OrgChart.action.insert||!l)o!==OrgChart.action.exporting&&o!==OrgChart.action.init&&-1==s.indexOf(e.id)&&(c[0].push(e.id),c[1].push({opacity:0}),c[2].push({opacity:1}));else{var x,b;if((!(x=l[e.id])||OrgChart.isNEU(x.x)&&OrgChart.isNEU(x.y))&&r){if(b=t[r.id]){for(f=b;f&&f.id==e.id;)f=f.parent;f&&(u={x:b.x,y:b.y})}}else x&&(u={x:x.x,y:x.y})}null!=u&&null!=u.x&&null!=u.y&&(u.x==e.x&&u.y==e.y||r&&r.dragNodeIdList&&-1!=r.dragNodeIdList.indexOf(e.id)||e.isSplit||(c[0].push(e.id),c[1].push({transform:[1,0,0,1,u.x,u.y]}),c[2].push({transform:[1,0,0,1,e.x,e.y]})))}for(var y=0;y<e.stChildren.length;y++)OrgChart.manager._iterate2(e.stChildren[y],t,i,n,o,r,a,l,s,c,d,h,p);for(y=0;y<e.children.length;y++)OrgChart.manager._iterate2(e.children[y],t,i,n,o,r,a,l,s,c,d,h,p)},OrgChart.manager._addExpandedNodeIdsIterate=function(e,t,i){for(var n=0;n<e.childrenIds.length;n++)i.push(e.childrenIds[n]),OrgChart.manager._addExpandedNodeIdsIterate(t[e.childrenIds[n]],t,i)},OrgChart.manager._setChildCountPropsIterate=function(e,t){void 0===e.w&&(e.collapsedChildCount=e.childrenIds.length),e.deepChildCount=e.childCount=e.childrenIds.length,e.deepCollapsedChildCount=e.collapsedChildCount;for(var i=t[e.pid];i;)i.deepCollapsedChildCount+=e.collapsedChildCount,i.deepChildCount+=e.childCount,i=t[i.pid];for(var n of e.stChildrenIds)OrgChart.manager._setChildCountPropsIterate(t[n],t);for(var n of e.childrenIds)OrgChart.manager._setChildCountPropsIterate(t[n],t)},OrgChart.manager._setMinMaxXYAdjustifyIterate=function(e,t,i,n,o,r,a,l){for(var s of(e.x+=r.x,e.y+=r.y,e.stChildren))OrgChart.manager._setMinMaxXYAdjustifyIterate(s,s,i,0,o,r,a,l);for(var s of(e.isPartner?e.sl=n-1:e.sl=n,null==o[t.id]&&(o[t.id]={}),null==o[t.id][e.sl]&&(o[t.id][e.sl]={minX:null,minY:null,maxX:null,maxY:null}),e.layout?(null==l[t.id]&&(l[t.id]={}),null==l[t.id][e.sl]&&(l[t.id][e.sl]=e)):OrgChart._setMinMaxXY(e,o[t.id][e.sl],!0),null!=e.movex&&(e.x+=e.movex),null!=e.movey&&(e.y+=e.movey),OrgChart._setMinMaxXY(e,i,!0),n++,e.children))OrgChart.manager._setMinMaxXYAdjustifyIterate(s,t,i,n,o,r,a,l)},OrgChart.manager._doNotChangePositionOfClickedNodeIfAny=function(e,t,i,n,o,r){if(i!=OrgChart.action.expand&&i!=OrgChart.action.collapse&&i!=OrgChart.action.minimize&&i!=OrgChart.action.maximize&&i!=OrgChart.action.centerNode&&i!=OrgChart.action.update&&i!=OrgChart.action.insert)return{x:0,y:0};if(i==OrgChart.action.update&&(!n||null==n.id)){if(!e||!e.length)return{x:0,y:0};n={id:e[0].id}}if(null==n.id)return{x:0,y:0};var a=n.id;(i==OrgChart.action.minimize&&t[a].parent||i==OrgChart.action.maximize&&t[a].parent)&&(a=t[a].pid);var l=t[a],s=o[a];if(!s)return{x:0,y:0};var c=null!=s.movex?s.movex:0,d=null!=s.movey?s.movey:0,h={x:(s.x?s.x-c:0)-l.x,y:(s.y?s.y-d:0)-l.y};return l&&l.isTreeListItem?{x:0,y:0}:h},OrgChart.manager._verticalAssistantIterate=function(e,t){for(var i=0;i<e.stChildren.length;i++)OrgChart.manager._verticalAssistantIterate(e.stChildren[i],t);if(3==e.children.length)OrgChart.manager._verticalAssistantIterate(e.children[0],t),OrgChart.manager._verticalAssistantIterate(e.children[2],t),OrgChart.manager._verticalAssistantIterate(e.children[1],t);else for(i=0;i<e.children.length;i++)OrgChart.manager._verticalAssistantIterate(e.children[i],t);if(e.isAssistant&&e.isSplit&&e.children.length){for(var n=e.parent.children[0],o=e.parent.children[2],r=e.parent;!r.hasAssistants;)r=r.parent;var a={max:0},l={max:0};OrgChart.manager._verticalAssistantLevelCountIterate(n,0,a),OrgChart.manager._verticalAssistantLevelCountIterate(o,0,l);var s=Math.max(a.max,l.max),c=[];for(i=0;i<s;i++){var d=new OrgChart.node(e.parent.id+"_split_assitant_level_"+i,e.pid,[],"subLevel");OrgChart.manager._initDinamicNode(d,e.lcn,!0),null!=r.movex&&(d.movex=r.movex),null!=r.movey&&(d.movey=r.movey),i>0&&(c[i-1].children.push(d),d.parent=c[i-1]),t[d.id]=d,c.push(d)}if(c.length){for(var h=c[c.length-1],p=c[0],u=e.children.length-1;u>=0;u--){var f=e.children[u];h.children.unshift(f),f.parent=h,e.children.splice(u,1)}e.children.push(p),p.parent=e}}},OrgChart.manager._verticalAssistantLevelCountIterate=function(e,t,i){i.max<t&&(i.max=t),t++;for(var n=0;n<e.children.length;n++)OrgChart.manager._verticalAssistantLevelCountIterate(e.children[n],t,i)},OrgChart._addDottedLines=function(e){var t=e.nodes;if((e.groupDottedLines.length||e.dottedLines.length)&&(t=JSON.parse(JSON.stringify(t))),e.groupDottedLines.length)for(var i=[],n=0;n<e.groupDottedLines.length;n++){var o=e.groupDottedLines[n];null==o.rootId&&(o.rootId=o.to);var r=`balkan_group_dotted_${o.rootId}`;if(!i.has(r))for(var a=0;a<t.length;a++)if(t[a].id==o.rootId){(d=JSON.parse(JSON.stringify(t[a]))).id=`balkan_group_dotted_${o.rootId}_balkan_id_${t[a].id}`,d.pid=void 0,d.stpid=t[a].id,t.push(d),i.push(r),t[a].tags||(t[a].tags=[]),t[a].tags.push("group-dotted-lines"),t[a].tags.push("group-dotted-lines-"+r);break}for(a=0;a<t.length;a++)if(t[a].id==o.from){if((d=JSON.parse(JSON.stringify(t[a]))).id=`balkan_group_dotted_${o.rootId}_balkan_id_${t[a].id}`,d.pid=`balkan_group_dotted_${o.rootId}_balkan_id_${o.to}`,d.tags){var l=d.tags.indexOf("group-dotted-lines");-1!=l&&d.tags.splice(l,1)}if(d.tags||(d.tags=[]),d.tags.push("boc-dotted-connector"),o.tags)for(var s=0;s<o.tags.length;s++)d.tags.push(o.tags[s]);t.push(d);break}}if(e.dottedLines.length)for(n=0;n<e.dottedLines.length;n++){var c=e.dottedLines[n];null==c.rootId&&(c.rootId=c.to);for(a=0;a<t.length;a++)if(t[a].id==c.from){var d;if((d=JSON.parse(JSON.stringify(t[a]))).id=`balkan_dotted_${c.rootId}_balkan_id_${t[a].id}`,c.rootId==c.to?d.pid=c.to:d.pid=`balkan_dotted_${c.rootId}_balkan_id_${c.to}`,d.tags||(d.tags=[]),d.tags.push("boc-dotted-connector"),c.tags)for(s=0;s<c.tags.length;s++)d.tags.push(c.tags[s]);t.push(d);break}}return t},void 0===OrgChart&&(OrgChart={}),OrgChart.templates={},OrgChart.templates.base={defs:"",size:[250,120],expandCollapseSize:30,linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:"#e6e6e6",rect:null},assistanseLink:'<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="2px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} {xd},{yd} L{xe},{ye}"/>',svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>',link:'<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>',node:'<rect x="0" y="0" height="120" width="250" fill="none" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>',plus:function(e,t,i,n,o){var r="dark"==n.mode?"#1E1E1E":"#ffffff";return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="${r}" stroke="#aeaeae" stroke-width="1"></circle>\n <text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,i,n,o){var r="dark"==n.mode?"#1E1E1E":"#ffffff";return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="${r}" stroke="#aeaeae" stroke-width="1"></circle>\n <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},nodeMenuButton:'<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,105)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>',menuButton:'<div style="user-select:none;position:absolute;right:{p}px;top:{p}px; width:30px;height:50px;cursor:pointer;" '+OrgChart.attr.control_export_menu+'=""><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"></div>',img_0:'<clipPath id="{randId}"><circle cx="60" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="20" y="20" width="80" height="80"></image>',link_field_0:'<text text-anchor="middle" fill="#aeaeae" '+OrgChart.attr.width+'="290" x="0" y="0" style="font-size:10px;">{val}</text>',editFormHeaderColor:"#039BE5",treeListMaxHeight:500},OrgChart.templates.ana={defs:"",size:[250,120],linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:"#e6e6e6",rect:null},expandCollapseSize:30,svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>',link:'<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />',assistanseLink:'<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="2px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} {xd},{yd} L{xe},{ye}"/>',node:function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},plus:function(e,t,i,n,o){var r="dark"==n.mode?"#1E1E1E":"#ffffff";return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="${r}" stroke="#aeaeae" stroke-width="1"></circle>\n <text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,i,n,o){var r="dark"==n.mode?"#1E1E1E":"#ffffff";return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="${r}" stroke="#aeaeae" stroke-width="1"></circle>\n <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},up:'<rect x="20" y="-25" width="30" height="17" fill="#aeaeae" rx="3" ry="3"></rect><line x1="35" x2="35" y1="0" y2="-8" stroke="#aeaeae" stroke-width="1"></line>',nodeMenuButton:function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},menuButton:OrgChart.templates.base.menuButton,img_0:function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><circle cx="50" cy="30" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="10" y="-10" width="80" height="80" ></image>`},link_field_0:'<text text-anchor="middle" fill="#aeaeae" '+OrgChart.attr.width+'="290" x="0" y="0" style="font-size:10px;">{val}</text>',field_0:function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="${e.h-25}" text-anchor="middle"></text>`,e.w-20,1)},field_1:function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w-20}" y="30" text-anchor="end"></text>`,e.w-120,3)},padding:[75,5,50,5],editFormHeaderColor:"#039BE5",treeListMaxHeight:500},OrgChart.templates.split=Object.assign({},OrgChart.templates.ana),OrgChart.templates.split.size=[10,10],OrgChart.templates.split.node='<circle cx="5" cy="5" r="5" fill="none" stroke-width="1" stroke="#aeaeae"></circle>',OrgChart.templates.split.field_0="",OrgChart.templates.split.field_1="",OrgChart.templates.split.img_0="",OrgChart.templates.dot=Object.assign({},OrgChart.templates.split),OrgChart.templates.group=Object.assign({},OrgChart.templates.ana),OrgChart.templates.group.size=[250,120],OrgChart.templates.group.padding=[50,20,35,20],OrgChart.templates.group.node='<rect rx="50" ry="50" x="0" y="0" height="{h}" width="{w}" fill="#f2f2f2" stroke-width="0"></rect>',OrgChart.templates.group.link='<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>',OrgChart.templates.group.nodeMenuButton='<g style="cursor:pointer;" transform="matrix(1,0,0,1,{ew},25)"><g transform="matrix(1,0,0,1,-22,-8)"><rect x="0" y="0" fill="red" fill-opacity="0" width="18" height="22"></rect><line x1="0" y1="2" x2="9" y2="2" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="9" x2="18" y2="9" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="16" x2="22" y2="16" stroke="#aeaeae" stroke-width="1"></line></g></g>',OrgChart.templates.group.field_0="<text "+OrgChart.attr.width+'="230" style="font-size: 18px;" fill="#aeaeae" x="{cw}" y="30" text-anchor="middle">{val}</text>',OrgChart.templates.group.field_1="",OrgChart.templates.group.ripple={radius:50,color:"#aeaeae"},OrgChart.templates.invisibleGroup=Object.assign({},OrgChart.templates.group),OrgChart.templates.invisibleGroup.node="",OrgChart.templates.invisibleGroup.padding=[0,0,0,0],OrgChart.templates.invisibleGroup.field_0="",OrgChart.templates.invisibleGroup.nodeMenuButton="",OrgChart.templates.mirror={linkAdjuster:{},link:"",node:"",nodeMenuButton:"",size:[0,0]},OrgChart.templates.ula=Object.assign({},OrgChart.templates.ana),OrgChart.templates.ula.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text style="font-size: 18px;" fill="#039BE5" x="100" y="55"></text>',e.w-105,1)},OrgChart.templates.ula.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text data-text-overflow="multiline" style="font-size: 14px;" fill="#afafaf" x="100" y="76"></text>',e.w-105,3)},OrgChart.templates.ula.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#aeaeae"></rect><line x1="0" y1="0" x2="${e.w}" y2="0" stroke-width="2" stroke="#039BE5"></line>`},OrgChart.templates.ula.img_0=function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><circle cx="50" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="10" y="20" width="80" height="80" ></image>`},OrgChart.templates.ula.menu='<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,12)" '+OrgChart.attr.control_node_menu_id+'="{id}"><rect x="-4" y="-10" fill="#ffffff" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#039BE5"></circle><circle cx="7" cy="0" r="2" fill="#039BE5"></circle><circle cx="14" cy="0" r="2" fill="#039BE5"></circle></g>',OrgChart.templates.ula.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},OrgChart.templates.ula.padding=[110,1,1,1],OrgChart.templates.olivia=Object.assign({},OrgChart.templates.ana),OrgChart.templates.olivia.defs='<style>\n #olivia_gradient {\n --color-stop-1: #ffffff;\n --color-stop-2: #eeeeee;\n --opacity-stop: 1;\n }\n .olivia-f0{\n font-size: 18px;\n fill: #757575;\n }\n .olivia-f1{\n font-size: 14px;\n fill: #757575;\n }\n .boc-dark .olivia-f0,.boc-dark .olivia-f1{\n fill: #aeaeae;\n }\n .boc-dark #olivia_gradient {\n --color-stop-1: #646464;\n --color-stop-2: #363636;\n --opacity-stop: 1;\n }\n </style>\n <linearGradient id="olivia_gradient" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="var(--color-stop-1)" stop-opacity="var(--opacity-stop)"/><stop offset="100%" stop-color="var(--color-stop-2)" stop-opacity="var(--opacity-stop)" /></linearGradient>',OrgChart.templates.olivia.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text class="olivia-f0" x="100" y="55"></text>',e.w-105,1)},OrgChart.templates.olivia.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text class="olivia-f1" x="100" y="76"></text>',e.w-105,3)},OrgChart.templates.olivia.node=function(e,t,i,n){return`<rect fill="url(#olivia_gradient)" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},OrgChart.templates.olivia.img_0='<clipPath id="{randId}"><circle cx="50" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="10" y="20" width="80" height="80" ></image>',OrgChart.templates.olivia.nodeMenuButton=function(e,t,i,n){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},OrgChart.templates.olivia.padding=[110,15,30,15],OrgChart.templates.belinda=Object.assign({},OrgChart.templates.ana),OrgChart.templates.belinda.size=[180,180],OrgChart.templates.belinda.ripple={radius:90,color:"#e6e6e6",rect:null},OrgChart.templates.belinda.node=function(e,t,i,n){return`<circle cx="${e.w/2}" cy="${e.h/2}" r="${e.w/2}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></circle>`},OrgChart.templates.belinda.img_0=function(e,t,i,n,o){var r=e.w/2,a=OrgChart.randomId();return`<clipPath id="${a}"><circle cx="${r}" cy="45" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${o}" x="${r-40}" y="5" width="80" height="80" ></image>`},OrgChart.templates.belinda.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+15}"></text>`,e.w-10,1)},OrgChart.templates.belinda.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+35}"></text>`,e.w-20,2)},OrgChart.templates.belinda.link='<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>',OrgChart.templates.belinda.nodeMenuButton=function(e,t,i,n){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w/2-11},5)"><rect x="0" y="0" fill="#000000" fill-opacity="0" width="22" height="22"></rect><line stroke-width="2" stroke="#000" x1="0" y1="3" x2="22" y2="3"></line><line stroke-width="2" stroke="#000" x1="0" y1="9" x2="22" y2="9"></line><line stroke-width="2" stroke="#000" x1="0" y1="15" x2="22" y2="15"></line></g>`},OrgChart.templates.rony=Object.assign({},OrgChart.templates.ana),OrgChart.templates.rony.svg='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="background-color:#E8E8E8;display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>',OrgChart.templates.rony.defs='<filter id="{randId}" x="0" y="0" width="200%" height="200%"><feOffset result="offOut" in="SourceAlpha" dx="5" dy="5"></feOffset><feGaussianBlur result="blurOut" in="offOut" stdDeviation="5"></feGaussianBlur><feBlend in="SourceGraphic" in2="blurOut" mode="normal"></feBlend></filter>',OrgChart.templates.rony.size=[180,250],OrgChart.templates.rony.ripple={color:"#F57C00",radius:5,rect:null},OrgChart.templates.rony.padding=[250,0,30,0],OrgChart.templates.rony.img_0=function(e,t,i,n,o){var r=e.w/2,a=OrgChart.randomId();return`<clipPath id="${a}"><circle cx="${r}" cy="160" r="60"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${o}" x="${r-60}" y="100" width="120" height="120" ></image>`},OrgChart.templates.rony.node=function(e,t,i,n){return`<rect filter="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="0" rx="10" ry="10"></rect>'`},OrgChart.templates.rony.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="40" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.rony.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#F57C00" x="${e.w/2}" y="60" text-anchor="middle"></text>`,e.w-15,3)},OrgChart.templates.rony.field_2=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#FFCA28" x="${e.w/2}" y="80" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.rony.link='<path stroke="#039BE5" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>',OrgChart.templates.rony.plus=function(e,t,i,n,o){return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line></g>`},OrgChart.templates.rony.minus=function(e,t,i,n,o){return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line></g>`},OrgChart.templates.rony.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},OrgChart.templates.mery=Object.assign({},OrgChart.templates.ana),OrgChart.templates.mery.ripple={color:"#e6e6e6",radius:50,rect:null},OrgChart.templates.mery.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#686868" rx="50" ry="50"></rect><rect x="0" y="${e.h/2-15}" height="30" width="${e.w}" fill="#039BE5" stroke-width="1"></rect>`},OrgChart.templates.mery.link='<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />',OrgChart.templates.mery.img_0=function(e,t,i,n,o){var r=e.w/2,a=e.h/2,l=OrgChart.randomId();return`<clipPath id="${l}"><circle cx="${r}" cy="${a}" r="24"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${l})" xlink:href="${o}" x="${r-24}" y="${a-24}" width="48" height="48" ></image>`},OrgChart.templates.mery.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2-30}" text-anchor="middle"></text>`,e.w-30,1)},OrgChart.templates.mery.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2+40}" text-anchor="middle"></text>`,e.w-30,1)},OrgChart.templates.mery.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h/2})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.polina=Object.assign({},OrgChart.templates.ana),OrgChart.templates.polina.size=[300,80],OrgChart.templates.polina.padding=[80,15,30,15],OrgChart.templates.polina.ripple={color:"#e6e6e6",radius:40,rect:null},OrgChart.templates.polina.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="40" ry="40"></rect>`},OrgChart.templates.polina.img_0='<clipPath id="{randId}"><circle cx="40" cy="40" r="35"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="0" y="0" width="80" height="80"></image>',OrgChart.templates.polina.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text style="font-size: 18px;" fill="#ffffff" x="80" y="30" text-anchor="start"></text>',e.w-90,1)},OrgChart.templates.polina.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text style="font-size: 14px;" fill="#ffffff" x="80" y="55" text-anchor="start"></text>',e.w-90,1)},OrgChart.templates.polina.link='<path stroke="#686868" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />',OrgChart.templates.polina.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-15},33)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="0" cy="7" r="2" fill="#ffffff"></circle><circle cx="0" cy="14" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.mila=Object.assign({},OrgChart.templates.ana),OrgChart.templates.mila.padding=[60,15,120,15],OrgChart.templates.mila.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></rect><rect x="-5" y="${e.h-50}" height="30" width="${e.w+10}" fill="#ffffff" stroke-width="1" stroke="#039BE5"></rect><line x1="-5" x2="0" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/><line x1="${e.w+5}" x2="${e.w}" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/>`},OrgChart.templates.mila.img_0=function(e,t,i,n,o){return`<image preserveAspectRatio="xMidYMid slice" xlink:href="${o}" x="20" y="${e.h-115}" width="64" height="64"></image>`},OrgChart.templates.mila.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h-28}" text-anchor="middle"></text>`,e.w-10,1)},OrgChart.templates.mila.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-10})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.diva=Object.assign({},OrgChart.templates.ana),OrgChart.templates.diva.size=[200,170],OrgChart.templates.diva.padding=[160,10,30,10],OrgChart.templates.diva.node=function(e,t,i,n){return`<rect x="0" y="80" height="${e.h-80}" width="${e.w}" fill="#039BE5"></rect><circle cx="${e.w/2}" cy="50" fill="#ffffff" r="50" stroke="#039BE5" stroke-width="2"></circle>`},OrgChart.templates.diva.img_0=function(e,t,i,n,o){var r=e.w/2,a=OrgChart.randomId();return`<clipPath id="${a}"><circle cx="${r}" cy="50" r="45"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${o}" x="${r-45}" y="5" width="90" height="90" ></image>`},OrgChart.templates.diva.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="125" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.diva.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w/2}" y="145" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.diva.pointer='<g data-pointer="pointer" transform="matrix(0,0,0,0,100,100)"><radialGradient id="pointerGradient"><stop stop-color="#ffffff" offset="0" /><stop stop-color="#039BE5" offset="1" /></radialGradient><circle cx="16" cy="16" r="16" stroke-width="1" stroke="#acacac" fill="url(#pointerGradient)"></circle></g>',OrgChart.templates.diva.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-30}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.luba=Object.assign({},OrgChart.templates.ana),OrgChart.templates.luba.svg='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;background-color: #2E2E2E;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>',OrgChart.templates.luba.defs='<linearGradient id="{randId}" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#646464;stop-opacity:1" /><stop offset="100%" style="stop-color:#363636;stop-opacity:1" /></linearGradient>',OrgChart.templates.luba.node=function(e,t,i,n){return`<rect fill="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},OrgChart.templates.luba.padding=[70,10,60,10],OrgChart.templates.luba.img_0=function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><circle cx="50" cy="25" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="10" y="-15" width="80" height="80" ></image>`},OrgChart.templates.luba.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#aeaeae"></circle><circle cx="7" cy="0" r="2" fill="#aeaeae"></circle><circle cx="14" cy="0" r="2" fill="#aeaeae"></circle></g>`},OrgChart.templates.luba.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#aeaeae" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.luba.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#aeaeae" x="${e.w-10}" y="30" text-anchor="end"></text>`,e.w-110,1)},OrgChart.templates.luba.plus='<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line><line x1="18" y1="4" x2="18" y2="32" stroke-width="1" stroke="#aeaeae"></line>',OrgChart.templates.luba.minus='<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line>',OrgChart.templates.luba.expandCollapseSize=36,OrgChart.templates.isla=Object.assign({},OrgChart.templates.ana),OrgChart.templates.isla.defs='<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="isla-shadow"><feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1" /><feGaussianBlur stdDeviation="10" in="shadowOffsetOuter1" result="shadowBlurOuter1" /><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1" /><feMerge><feMergeNode in="shadowMatrixOuter1" /><feMergeNode in="SourceGraphic" /></feMerge></filter>',OrgChart.templates.isla.size=[180,120],OrgChart.templates.isla.padding=[70,1,60,1],OrgChart.templates.isla.node=function(e,t,i,n){return`<rect filter="url(#isla-shadow)" x="0" y="20" rx="10" ry="10" height="${e.h-20}" width="${e.w}" fill="#FFF" stroke-width="1" stroke="#039BE5" ></rect><rect x="25" y="${e.h-45}" rx="10" ry="10" height="20" width="${e.w-50}" fill="#039BE5" stroke-width="3" stroke="#039BE5"></rect><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect><circle stroke="#FFCA28" stroke-width="3" fill="none" cx="${e.w/2}" cy="12" r="8"></circle><path d="M${e.w/2-15},34 C${e.w/2-15},17 ${e.w/2+15},17 ${e.w/2+15},34" stroke="#FFCA28" stroke-width="3" fill="none"></path>`},OrgChart.templates.isla.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 12px;" fill="#fff" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-60,1)},OrgChart.templates.isla.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 13px;" fill="#039BE5" x="${e.w/2}" y="64" text-anchor="middle"></text>`,e.w-20,1)},OrgChart.templates.isla.img_0="",OrgChart.templates.isla.img_0=function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><rect filter="url(#isla-shadow)" fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="${e.w/2-20}" y="0" width="40" height="40"></image>`},OrgChart.templates.isla.minus='<circle cx="15" cy="15" r="15" fill="#F57C00" stroke="#F57C00" stroke-width="1"></circle><line x1="8" y1="15" x2="22" y2="15" stroke-width="1" stroke="#ffffff"></line>',OrgChart.templates.isla.plus='<circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line>',OrgChart.templates.isla.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w/2-7},45)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},OrgChart.templates.isla.ripple={radius:0,color:"#F57C00",rect:{x:0,y:20,width:180,height:100}},OrgChart.templates.deborah=Object.assign({},OrgChart.templates.polina),OrgChart.templates.deborah.size=[150,150],OrgChart.templates.deborah.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="15" ry="15"></rect>`},OrgChart.templates.deborah.img_0=function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="5" y="5" rx="15" ry="15" width="${e.w-10}" height="${e.h-10}"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="5" y="5" width="${e.w-10}" height="${e.h-10}"></image><rect x="3" y="5" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect><rect x="3" y="${e.h-35}" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect>`},OrgChart.templates.deborah.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text style="font-size: 18px;" fill="#ffffff" x="15" y="25" text-anchor="start"></text>',e.w-25,1)},OrgChart.templates.deborah.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 11px;" fill="#ffffff" x="15" y="${e.h-15}" text-anchor="start"></text>`,e.w-45,1)},OrgChart.templates.deborah.nodeMenuButton=function(e,t,i,n){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-20})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.subLevel=Object.assign({},OrgChart.templates.base),OrgChart.templates.subLevel.size=[0,0],OrgChart.templates.subLevel.node="",OrgChart.templates.subLevel.plus="",OrgChart.templates.subLevel.minus="",OrgChart.templates.subLevel.nodeMenuButton="",OrgChart.templates.group_dotted_lines=Object.assign({},OrgChart.templates.group),OrgChart.templates.group_dotted_lines.size=[250,120],OrgChart.templates.group_dotted_lines.padding=[50,20,35,20],OrgChart.templates.group_dotted_lines.link='<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />',OrgChart.templates.group_dotted_lines.node='<rect rx="5" ry="5" x="0" y="0" height="{h}" width="{w}" fill="#e5e5e5" stroke-width="0"></rect>',OrgChart.templates.group_dotted_lines.nodeGroupDottedCloseButton='<g transform="matrix(1,0,0,1,{ew},0)"><circle cx="0.5" cy="21.5" r="12" fill="#F57C00"></circle>'+OrgChart.icon.close(25,25,"#fff",-13,8)+"</g>",OrgChart.templates.group_dotted_lines.field_0='<text data-width="230" style="font-size: 18px;" fill="#F57C00" x="20" y="30" text-anchor="start">Dotted Lines</text>',OrgChart.templates.group_dotted_lines.field_1="",OrgChart.templates.group_dotted_lines.img_0="",OrgChart.templates.group_dotted_lines.ripple.radius=5,OrgChart.templates.group_dotted_lines.min=Object.assign({},OrgChart.templates.olivia),OrgChart.templates.group_dotted_lines.min.nodeGroupDottedOpenButton='<g transform="matrix(1,0,0,1,220,10)"><rect x="0" y="0" width="22" height="22" stroke="#aeaeae" stroke-width="1" fill="#ffffff" rx="5" ry="5"></rect><text x="11" y="16" text-anchor="middle" style="font-size: 14px;" fill="#2A292E">{children-total-count}</text><rect x="0" y="0" width="22" height="22" style="opacity: 0" stroke="#aeaeae" stroke-width="1" fill="red" rx="5" ry="5"></rect></g>',OrgChart.templates.clara=Object.assign({},OrgChart.templates.ana),OrgChart.templates.clara.size=[180,210],OrgChart.templates.clara.padding=[80,7,7,7],OrgChart.templates.clara.img_0=function(e,t,i,n,o){var r=50,a=30,l=40;e.stChildren.length||(l=60,r=e.w/2,a=70);var s=OrgChart.randomId();return`<clipPath id="${s}"><circle cx="${r}" cy="${a}" r="${l}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${s})" xlink:href="${o}" x="${r-l}" y="${a-l}" width="${2*l}" height="${2*l}" ></image>`},OrgChart.templates.clara.treeListMaxHeight=387,OrgChart.templates.clara.field_0=function(e,t,i,n,o){var r=65,a=e.w/2,l="middle",s=e.w-100;return e.stChildren.length||(l="middle",a=e.w/2,r=160,s=e.w-20),OrgChart.wrapText(o,`<text style="font-size: 20px;" fill="#ffffff" x="${a}" y="${r}" text-anchor="${l}"></text>`,s,1)},OrgChart.templates.clara.field_1=function(e,t,i,n,o){var r=35,a=e.w-15,l="end",s=e.w-100;return e.stChildren.length||(l="middle",a=e.w/2,r=180,s=e.w-20),OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#ffffff" x="${a}" y="${r}" text-anchor="${l}"></text>`,s,1)},OrgChart.templates.clara.nodeMenuButton=function(e,t,i,n){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-35}, 2)">\n <rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>\n <circle cy="13" cx="6" r="2" fill="#fff"></circle>\n <circle cy="13" cx="13" r="2" fill="#fff"></circle>\n <circle cy="13" cx="20" r="2" fill="#fff"></circle>\n </g>`},OrgChart.templates.clara.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},OrgChart.templates.treeListItem=Object.assign({},OrgChart.templates.ana),OrgChart.templates.treeListItem.size=[350,60],OrgChart.templates.treeListItem.field_0=function(e,t,i,n,o){var r=e.level*i.expandCollapseSize+45,a="dark"==n.mode?"#ccc":"#757575";return OrgChart.wrapText(o,`<text fill="${a}" x="${r}" y="27" style="font-size:16px;"></text>`,e.w-r-70,1)},OrgChart.templates.treeListItem.field_1=function(e,t,i,n,o){var r=e.level*i.expandCollapseSize+45,a="dark"==n.mode?"#ccc":"#757575";return OrgChart.wrapText(o,`<text fill="${a}" x="${r}" y="47" style="font-size:12px;"></text>`,e.w-r-70,1)},OrgChart.templates.treeListItem.img_0=function(e,t,i,n,o){var r=e.w-55,a=e.h/2,l=e.h/2-4,s=OrgChart.randomId();return`<clipPath id="${s}"><circle cx="${r}" cy="${a}" r="${l}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${s})" xlink:href="${o}" x="${r-l}" y="${a-l}" width="${2*l}" height="${2*l}" ></image>`},OrgChart.templates.treeListItem.expandCollapseSize=24,OrgChart.templates.treeListItem.plus=function(e,t,i,n){var o=i.expandCollapseSize/2+e.level*i.expandCollapseSize,r=e.h/2;r-=i.expandCollapseSize/2;var a="dark"==n.mode?"#ccc":"#757575";return`<g transform="matrix(1,0,0,1,${o},${r})"><text x="6" style="font-size: 10px;" fill="${a}" y="15.5" text-anchor="end">${e.deepCollapsedChildCount}</text><path fill="${a}" d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},OrgChart.templates.treeListItem.minus=function(e,t,i,n){var o=i.expandCollapseSize/2+e.level*i.expandCollapseSize,r=e.h/2;return`<g transform="matrix(1,0,0,1,${o},${r-=i.expandCollapseSize/2})"><path fill="${"dark"==n.mode?"#ccc":"#757575"}" d="M7.42,8.59L12,13.17L16.59,8.59L18,10L12,16L6,10L7.42,8.59Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},OrgChart.templates.treeListItem.nodeMenuButton=function(e,t,i,n){var o="dark"==n.mode?"#ccc":"#757575";return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-36}, ${e.h/2-13})">\n <rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>\n <circle cx="13" cy="6" r="2" fill="${o}"></circle>\n <circle cx="13" cy="13" r="2" fill="${o}"></circle>\n <circle cx="13" cy="20" r="2" fill="${o}"></circle>\n </g>`},OrgChart.templates.treeListItem.node=function(e,t,i,n){var o="",r="#FFFFFF";if(e.isTreeListItem&&!e.stParent||e.isTreeListItem&&e.stParent&&e.stParent.stChildren[0]!=e){var a="#E0E0E0";"dark"==n.mode&&(a="#444444"),o=`<line stroke="${a}" stroke-width="1" x1="0" x2="${e.w}" y1="0" y2="0"></line>`}return"dark"==n.mode&&(r="#252526"),`<rect fill="${r}" x="0" y="0" height="${e.h}" width="${e.w}" rx="0" ry="0" ></rect>${o}`},OrgChart.ui={_defsIds:{},defs:function(e){var t="";for(var i in OrgChart.templates){var n=OrgChart.templates[i];n.defs&&(OrgChart.ui._defsIds[i]=OrgChart.randomId(),t+=n.defs.replaceAll("{randId}",OrgChart.ui._defsIds[i]))}return"<defs>"+t+e+"</defs>"},lonely:function(e){return e.nodes&&e.nodes.length?"":OrgChart.IT_IS_LONELY_HERE.replace("{link}",OrgChart.RES.IT_IS_LONELY_HERE_LINK)},pointer:function(e,t,i){if(t===OrgChart.action.exporting)return"";var n=OrgChart.t(e.template,!1,i).pointer;return n||(n=""),n},aiButton:function(e){return e.enableAI?'<div data-boc-ai-button class="boc-ai-button">AI</div>':""},node:function(e,t,i,n,o,r,a,l,s,c,d){var h=OrgChart.t(e.templateName,e.min,s),p="";"function"==typeof h.node?p=h.node(e,t,h,n):OrgChart.isNEU(h.node)||(p=h.node)&&(p=p.replaceAll("{w}",e.w).replaceAll("{h}",e.h)),h.defs&&(p=p.replaceAll("{randId}",OrgChart.ui._defsIds[e.templateName])),null==a&&(a=n.nodeBinding);var u={node:e,data:t};for(var f in a){var g,m=a[f];t&&(g=t[m]),null==g&&(g=e[m]),u.element=h[f],u.value=g;var x=!1;"function"==typeof u.element&&(x=!0,u.element=u.element(e,t,h,n,u.value));var b=OrgChart._lblIsImg(n,f);if(u.name=m,u.field=f,!1!==OrgChart.events.publish("field",[c,u])&&null!=u.value&&null!=u.value&&null!=u.element)if(x)p+=u.element;else if(!b||b&&!OrgChart.isNEU(u.value)){if(!b&&"string"==typeof u.value){var y=u.element;y&&(y=y.replaceAll("{ew}",e.w-(e.padding?e.padding[1]:0)).replaceAll("{cw}",e.w/2)),u.value=OrgChart.wrapText(u.value,y)}var v=u.element.replace("{val}",u.value);p+=v=v.replaceAll("{ew}",e.w-(e.padding?e.padding[1]:0)).replaceAll("{cw}",e.w/2).replaceAll("{randId}",OrgChart.randomId()).replaceAll("{randId2}",OrgChart.randomId())}}var _=OrgChart._getPosition(i,e,o,r),w="node";Array.isArray(e.tags)&&e.tags.length&&(w+=" "+e.tags.join(" ")),e.layout&&(w+=" tree-layout"),d&&(w+=" treelist-pinned");var I="";e.lcn&&(I='lcn="'+e.lcn+'"');var k=OrgChart.nodeOpenTag.replace("{lcn}",I).replace("{id}",e.id).replace("{class}",w).replace("{sl}",e.sl).replace("{level}",e.level).replace("{x}",_.x).replace("{y}",_.y),C=OrgChart._getOpacity(i,e);return p=(k=k.replace("{opacity}",C))+(p+=OrgChart.ui.nodeBtns(n,e,t,l,h,c))+OrgChart.grCloseTag},nodeBtns:function(e,t,i,n,o,r){var a="";return null==e.nodeMenu||t.isSplit||n===OrgChart.action.exporting||("function"==typeof o.nodeMenuButton?a+=o.nodeMenuButton(t,i,o,e):OrgChart.isNEU(o.nodeMenuButton)||(a+=o.nodeMenuButton.replace("{id}",t.id).replace("{cw}",t.w/2).replace("{ch}",t.h/2).replace("{ew}",t.w-(t.padding?t.padding[1]:0)).replace("{eh}",t.h-(t.padding?t.padding[2]:0)))),a&&(a=`<g style="cursor:pointer;" ${OrgChart.attr.control_node_menu_id}="${t.id}">${a}</g>`),null==e.nodeCircleMenu||t.isSplit||n===OrgChart.action.exporting||OrgChart.isNEU(o.nodeCircleMenuButton)||(a+='<g style="cursor:pointer;" transform="matrix(1,0,0,1,'+o.nodeCircleMenuButton.x+","+o.nodeCircleMenuButton.y+')" '+OrgChart.attr.control_node_circle_menu_id+'="'+t.id+'"><circle cx="0" cy="0" fill="'+o.nodeCircleMenuButton.color+'" r="'+o.nodeCircleMenuButton.radius+'" stroke-width="1" stroke="'+o.nodeCircleMenuButton.stroke+'"></circle><line x1="-'+o.nodeCircleMenuButton.radius/2+'" y1="-6" x2="'+o.nodeCircleMenuButton.radius/2+'" y2="-6" stroke-width="2" stroke="'+o.nodeCircleMenuButton.stroke+'"></line><line x1="-'+o.nodeCircleMenuButton.radius/2+'" y1="0" x2="'+o.nodeCircleMenuButton.radius/2+'" y2="0" stroke-width="2" stroke="'+o.nodeCircleMenuButton.stroke+'"></line><line x1="-'+o.nodeCircleMenuButton.radius/2+'" y1="6" x2="'+o.nodeCircleMenuButton.radius/2+'" y2="6" stroke-width="2" stroke="'+o.nodeCircleMenuButton.stroke+'"></line></g>'),a},expandCollapseBtn:function(e,t,i,n,o,r,a){var l="";if(r!==OrgChart.action.exporting&&!t.isSplit){var s=o[t.lcn?t.lcn:"base"],c=OrgChart.t(t.templateName,t.min,a);if(t.childrenIds.length>0){if(t.hasPartners){for(var d=!1,h=0;h<t.childrenIds.length;h++){var p=e.getNode(t.childrenIds[h]);!p||p.parentPartner||p.isPartner||(d=!0)}if(!d)return""}var u=OrgChart._getDefailtPositionForExpandCollpase(s,t),f={x:u.x+t.x-c.expandCollapseSize/2,y:u.y+t.y-c.expandCollapseSize/2},g=e.getCollapsedIds(t);g.length?("function"==typeof c.plus?(l+=OrgChart.expcollOpenTag.replace("{id}",t.id).replace("{x}",t.x).replace("{y}",t.y),l+=c.plus(t,i,c,n,u)):(l+=OrgChart.expcollOpenTag.replace("{id}",t.id).replace("{x}",f.x).replace("{y}",f.y),l+=c.plus),l+=OrgChart.grCloseTag):("function"==typeof c.minus?(l+=OrgChart.expcollOpenTag.replace("{id}",t.id).replace("{x}",t.x).replace("{y}",t.y),l+=c.minus(t,i,c,n,u)):(l+=OrgChart.expcollOpenTag.replace("{id}",t.id).replace("{x}",f.x).replace("{y}",f.y),l+=c.minus),l+=OrgChart.grCloseTag),(g.length&&"function"!=typeof c.plus||!g.length&&"function"!=typeof c.minus)&&(-1!=l.indexOf("{collapsed-children-count}")&&(l=l.replace("{collapsed-children-count}",t.collapsedChildCount)),-1!=l.indexOf("{collapsed-children-total-count}")&&(l=l.replace("{collapsed-children-total-count}",t.deepCollapsedChildCount)),-1!=l.indexOf("{children-count}")&&(l=l.replace("{children-count}",t.childCount)),-1!=l.indexOf("{children-total-count}")&&(l=l.replace("{children-total-count}",t.deepChildCount)))}e._nodeHasHiddenParent(t)&&(l+=OrgChart.upOpenTag.replace("{id}",t.id).replace("{x}",t.x).replace("{y}",t.y),l+=c.up,l+=OrgChart.grCloseTag)}var m={html:l,node:t};return OrgChart.events.publish("renderbuttons",[e,m]),m.html},link:function(e,t,i,n,o,r,a){var l=e.lcn?e.lcn:"base",s=t._layoutConfigs[l],c=OrgChart.t(e.templateName,e.min,i),d=[],h=[],p=s.levelSeparation/2;e.layout>0&&(p=s.mixedHierarchyNodesSeparation/2);var u=0,f=OrgChart.getRootOf(e).id,g=n[f][e.sl],m=void 0;if(e.hasPartners){m={ids:[],indexes:{},ppnodes:{},lastLeft:null,firstRight:null,maxSidePartnersWithChildren:0,rightIds:[],leftIds:[],partnerChildrenSplitSeparation:t.config.partnerChildrenSplitSeparation};for(var x=0;x<e.children.length;x++){(y=e.children[x]).parentPartner?(m.ppnodes[y.id]=y.parentPartner,m.ids.push(y.id),1==y.parentPartner.isPartner?(-1==m.rightIds.indexOf(y.parentPartner.id)&&m.rightIds.push(y.parentPartner.id),m.indexes[y.id]=m.rightIds.indexOf(y.parentPartner.id),m.firstRight||(m.firstRight=y)):2==y.parentPartner.isPartner&&(-1==m.leftIds.indexOf(y.parentPartner.id)&&m.leftIds.push(y.parentPartner.id),m.indexes[y.id]=m.leftIds.indexOf(y.parentPartner.id),m.lastLeft=y)):y.isPartner||(m.lastLeft=y,m.firstRight||(m.firstRight=y))}m.maxSidePartnersWithChildren=Math.max(m.leftIds.length,m.rightIds.length),u=0==m.maxSidePartnersWithChildren?t.config.minPartnerSeparation/2:t.config.minPartnerSeparation/2+m.partnerChildrenSplitSeparation*m.maxSidePartnersWithChildren+m.partnerChildrenSplitSeparation/2}for(x=0;x<e.children.length;x++){var b,y=e.children[x],v=n[f][y.sl],_={xa:0,ya:0,xb:0,yb:0,xc:0,yc:0,xd:0,yd:0,x:0,y:0,rotate:0},w=(c=OrgChart.t(y.templateName,y.min,i)).link;if(y.isChildOfPartner)switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:var I=1==y.layout?void 0:v.minY-(v.minY-g.maxY)/2;_=OrgChart.ui._linkTopToBottom(y.parentPartner,y,c,p,I,t);break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:I=1==y.layout?void 0:v.maxY-(v.maxY-g.minY)/2;_=OrgChart.ui._linkBottomToTop(y.parentPartner,y,c,p,I,t);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:I=1==y.layout?void 0:v.maxX-(v.maxX-g.minX)/2;_=OrgChart.ui._linkRightToLeft(y.parentPartner,y,c,p,I,t);break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:I=1==y.layout?void 0:v.minX-(v.minX-g.maxX)/2;_=OrgChart.ui._linkLeftToRight(y.parentPartner,y,c,p,I,t)}else if(m&&-1!=m.ids.indexOf(y.id))switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:_=OrgChart.ui._linkPpTop(m,e,y,v,g,c);break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:_=OrgChart.ui._linkPpBottom(m,e,y,v,g,c);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:_=OrgChart.ui._linkPpRight(m,e,y,v,g,c);break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:_=OrgChart.ui._linkPpLeft(m,e,y,v,g,c)}else{var k=y.isAssistant&&y.rightNeighbor&&y.rightNeighbor.isAssistant&&y.parent==y.rightNeighbor.parent,C=y.isAssistant&&y.leftNeighbor&&y.leftNeighbor.isAssistant&&y.parent==y.leftNeighbor.parent;if((k||y.layout>1)&&y.rightNeighbor&&y.rightNeighbor.isSplit)switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:_=OrgChart.ui._linkRightToLeft(y.rightNeighbor,y,c,p);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:_=OrgChart.ui._linkBottomToTop(y.rightNeighbor,y,c,p)}else if((C||y.layout>1)&&y.leftNeighbor&&y.leftNeighbor.isSplit)switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:_=OrgChart.ui._linkLeftToRight(y.leftNeighbor,y,c,p,t);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:_=OrgChart.ui._linkTopToBottom(y.leftNeighbor,y,c,p,t)}else switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:if(1==y.isPartner)_=OrgChart.ui._linkLeftToRight(e,y,c,u);else if(2==y.isPartner)_=OrgChart.ui._linkRightToLeft(e,y,c,u);else{I=1==y.layout?void 0:v.minY-(v.minY-g.maxY)/2;_=OrgChart.ui._linkTopToBottom(e,y,c,p,I,t)}break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:if(1==y.isPartner)_=OrgChart.ui._linkLeftToRight(e,y,c,u);else if(2==y.isPartner)_=OrgChart.ui._linkRightToLeft(e,y,c,u);else{I=1==y.layout?void 0:v.maxY-(v.maxY-g.minY)/2;_=OrgChart.ui._linkBottomToTop(e,y,c,p,I,t)}break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:if(1==y.isPartner)_=OrgChart.ui._linkTopToBottom(e,y,c,u);else if(2==y.isPartner)_=OrgChart.ui._linkBottomToTop(e,y,c,u);else{I=1==y.layout?void 0:v.maxX-(v.maxX-g.minX)/2;_=OrgChart.ui._linkRightToLeft(e,y,c,p,I,t)}break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:if(1==y.isPartner)_=OrgChart.ui._linkTopToBottom(e,y,c,u);else if(2==y.isPartner)_=OrgChart.ui._linkBottomToTop(e,y,c,u);else{I=1==y.layout?void 0:v.minX-(v.minX-g.maxX)/2;_=OrgChart.ui._linkLeftToRight(e,y,c,p,I,t)}}}var L=OrgChart.ui._draggableLinkPath(t,e,y,_,p,s.orientation);if(L)b=L,w=w.replaceAll("{rounded}",L).replaceAll("{edge}",L).replaceAll("{curve}",b);else if(-1!=w.indexOf("{rounded}"))if(_.xa==_.xb&&_.xa==_.xc&&_.xa==_.xd||_.ya==_.yb&&_.ya==_.yc&&_.ya==_.yd)b="M"+_.xa+","+_.ya+" L"+_.xd+","+_.yd,w=w.replaceAll("{rounded}",b);else if(Math.abs(_.xa-_.xd)<=OrgChart.LINK_ROUNDED_CORNERS&&Math.abs(_.xa-_.xc)<=OrgChart.LINK_ROUNDED_CORNERS&&Math.abs(_.xa-_.xb)<=OrgChart.LINK_ROUNDED_CORNERS)b="M"+_.xa+","+_.ya+" L"+_.xa+","+_.yd,w=w.replaceAll("{rounded}",b);else if(Math.abs(_.ya-_.yd)<=OrgChart.LINK_ROUNDED_CORNERS&&Math.abs(_.ya-_.yc)<=OrgChart.LINK_ROUNDED_CORNERS&&Math.abs(_.ya-_.yb)<=OrgChart.LINK_ROUNDED_CORNERS)b="M"+_.xa+","+_.ya+" L"+_.xd+","+_.ya,w=w.replaceAll("{rounded}",b);else{var S=OrgChart.ui._roundedEdge(_.xa,_.ya,_.xb,_.yb,_.xc,_.yc),N=OrgChart.ui._roundedEdge(_.xb,_.yb,_.xc,_.yc,_.xd,_.yd);b="M"+S.x1+","+S.y1+" "+S.x2+","+S.y2+" Q"+S.qx1+","+S.qy1+" "+S.qx2+","+S.qy2+" L"+N.x2+","+N.y2+" Q"+N.qx1+","+N.qy1+" "+N.qx2+","+N.qy2+" L"+N.x3+","+N.y3,w=w.replaceAll("{rounded}",b)}else-1!=w.indexOf("{edge}")?(b="M"+_.xa+","+_.ya+" "+_.xb+","+_.yb+" "+_.xc+","+_.yc+" L"+_.xd+","+_.yd,w=w.replaceAll("{edge}",b)):-1!=w.indexOf("{curve}")?(b="M"+_.xa+","+_.ya+" C"+_.xb+","+_.yb+" "+_.xc+","+_.yc+" "+_.xd+","+_.yd,w=w.replaceAll("{curve}",b)):(b=w.replaceAll("{xa}",_.xa).replaceAll("{ya}",_.ya).replaceAll("{xb}",_.xb).replaceAll("{yb}",_.yb).replaceAll("{xc}",_.xc).replaceAll("{yc}",_.yc).replaceAll("{xd}",_.xd).replaceAll("{yd}",_.yd),w=b);d.push(OrgChart.linkOpenTag.replaceAll("{id}",e.id).replaceAll("{class}","link "+y.tags.join(" ")).replaceAll("{child-id}",y.id));var A={node:e,cnode:y,p:_,html:w,action:r};OrgChart.events.publish("render-link",[t,A]),d.push(A.html),a&&h.push({id:e.id,childId:y.id,html:A.html});var E="";for(var M in t.config.linkBinding){var $=t.config.linkBinding[M],U=t._get(y.id);U&&(A.value=U[$],A.element=c[M],A.name=$,!1!==OrgChart.events.publish("label",[t,A])&&(OrgChart.isNEU(A.value)||OrgChart.isNEU(A.element)||(E+=A.element.replace("{val}",A.value))))}if(""!=E){var T=_.x,P=_.y;null!=y.movey&&(P+=y.movey),E=OrgChart.linkFieldsOpenTag.replace("{x}",T).replace("{y}",P).replace("{rotate}",0)+E+OrgChart.grCloseTag,d.push(E)}d.push(OrgChart.grCloseTag)}return a?h:d.join("")},svg:function(e,t,i,n,o,r){return OrgChart.t(n.template,!1,r).svg.replace("{w}",e).replace("{h}",t).replace("{viewBox}",i).replace("{randId}",OrgChart.ui._defsIds[n.template]).replace("{mode}",n.mode).replace("{template}",n.template).replace("{content}",function(){return o})},menuButton:function(e){return null==e.menu?"":OrgChart.t(e.template,!1).menuButton.replaceAll("{p}",e.padding)},_roundedEdge:function(e,t,i,n,o,r){var a,l,s,c=OrgChart.LINK_ROUNDED_CORNERS,d=0;return e==i&&e==o||t==n&&t==r?(a=s=i,l=d=n):(e!=o&&i==o&&(a=s=i,l=n,t<r?d=n+c:t>r&&(d=n-c)),e<o&&i==o?i-=c:e>o&&i==o&&(i+=c),t!=r&&n==r&&(a=i,l=d=n,e<o?s=i+c:e>o&&(s=i-c)),t<r&&n==r?n-=c:t>r&&n==r&&(n+=c)),{x1:e,y1:t,x2:i,y2:n,x3:o,y3:r,qx1:a,qy1:l,qx2:s,qy2:d}},_linkTopToBottom:function(e,t,i,n,o,r){var a,l,s,c,d,h=0;a=e.x+e.w/2+i.linkAdjuster.toX,l=e.y+e.h+i.linkAdjuster.toY,c=s=t.x+t.w/2+i.linkAdjuster.fromX,d=t.y+i.linkAdjuster.fromY;var p={xa:a,ya:l,xb:a,yb:h=e.rightNeighbor&&e.rightNeighbor.isAssistant&&"split"==t.templateName?e.rightNeighbor.y+e.rightNeighbor.h+n:"split"==e.templateName&&(t.isAssistant||t.layout>1)?d:"split"==t.templateName?l+n:null!=o?o:d-n,xc:s,yc:h,xd:c,yd:d,x:s,y:OrgChart.isNEU(t.parentPartner)?h+16:h,rotate:0};return r&&OrgChart._addConnectorLines(r._connectorLines,p),p},_linkBottomToTop:function(e,t,i,n,o,r){var a,l,s,c,d,h=0;a=e.x+e.w/2+i.linkAdjuster.toX,l=e.y+i.linkAdjuster.toY,c=s=t.x+t.w/2+i.linkAdjuster.fromX,d=t.y+t.h+i.linkAdjuster.fromY;var p={xa:a,ya:l,xb:a,yb:h=e.rightNeighbor&&e.rightNeighbor.isAssistant&&"split"==t.templateName?e.rightNeighbor.y-n:"split"==e.templateName&&(t.isAssistant||t.layout>1)?d:"split"==t.templateName?l-n:null!=o?o:d+n,xc:s,yc:h,xd:c,yd:d,x:s,y:h-14,rotate:0};return r&&OrgChart._addConnectorLines(r._connectorLines,p),p},_linkRightToLeft:function(e,t,i,n,o,r){var a,l,s,c,d,h,p=0;a=e.x+i.linkAdjuster.toX,l=e.y+e.h/2+i.linkAdjuster.toY,d=t.x+t.w+i.linkAdjuster.fromX,h=c=t.y+t.h/2+i.linkAdjuster.fromY,s=l;var u={xa:a,ya:l,xb:p=e.rightNeighbor&&e.rightNeighbor.isAssistant&&"split"==t.templateName?e.rightNeighbor.x-n:"split"==e.templateName&&(t.isAssistant||t.layout>1)?d:"split"==t.templateName?a-n:null!=o?o:d+n,yb:s,xc:p,yc:c,xd:d,yd:h,x:p-16,y:c,rotate:90};return r&&OrgChart._addConnectorLines(r._connectorLines,u),u},_linkLeftToRight:function(e,t,i,n,o,r){var a,l,s,c,d,h,p=0;a=e.x+e.w+i.linkAdjuster.toX,l=e.y+e.h/2+i.linkAdjuster.toY,d=t.x+i.linkAdjuster.fromX,h=c=t.y+t.h/2+i.linkAdjuster.fromY,s=l;var u={xa:a,ya:l,xb:p=e.rightNeighbor&&e.rightNeighbor.isAssistant&&"split"==t.templateName?e.rightNeighbor.x+e.rightNeighbor.w+n:"split"==e.templateName&&(t.isAssistant||t.layout>1)?d:"split"==t.templateName?a+n:null!=o?o:d-n,yb:s,xc:p,yc:c,xd:d,yd:h,x:p+14,y:c,rotate:270};return r&&OrgChart._addConnectorLines(r._connectorLines,u),u},_linkPpTop:function(e,t,i,n,o,r){var a=e.ppnodes[i.id],l=a.y+a.h/2,s=n.minY-(n.minY-o.maxY)/2,c=(n.minY-o.maxY)/e.maxSidePartnersWithChildren/4,d=OrgChart.ui.__linkPpBottomTop(e,t,i,s,c,a),h=d.x;return s=d.mid,OrgChart.ui._linkTopToBottom({x:h,y:l,w:0,h:0},i,r,0,s)},_linkPpBottom:function(e,t,i,n,o,r){var a=e.ppnodes[i.id],l=a.y+a.h/2,s=n.maxY-(n.maxY-o.minY)/2,c=(n.maxY-o.minY)/e.maxSidePartnersWithChildren/4,d=OrgChart.ui.__linkPpBottomTop(e,t,i,s,c,a),h=d.x;return s=d.mid,OrgChart.ui._linkBottomToTop({x:h,y:l,w:0,h:0},i,r,0,s)},_linkPpLeft:function(e,t,i,n,o,r){var a=e.ppnodes[i.id],l=n.minX-(n.minX-o.maxX)/2,s=(n.minX-o.maxX)/e.maxSidePartnersWithChildren/4,c=a.x+a.w/2,d=OrgChart.ui.__linkPpLeftRight(e,t,i,l,s,a),h=d.y;return l=d.mid,OrgChart.ui._linkLeftToRight({x:c,y:h,w:0,h:0},i,r,0,l)},_linkPpRight:function(e,t,i,n,o,r){var a=e.ppnodes[i.id],l=n.maxX-(n.maxX-o.minX)/2,s=(n.maxX-o.minX)/e.maxSidePartnersWithChildren/4,c=a.x+a.w/2,d=OrgChart.ui.__linkPpLeftRight(e,t,i,l,s,a),h=d.y;return l=d.mid,OrgChart.ui._linkRightToLeft({x:c,y:h,w:0,h:0},i,r,0,l)},__linkPpBottomTop:function(e,t,i,n,o,r){var a=0;return 1==r.isPartner?(a=r.x-t.partnerSeparation/2+e.indexes[i.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&a<e.lastLeft.x+e.lastLeft.w/2?a<i.x+i.w/2?n-=(e.indexes[i.id]+1)*o:n-=(e.rightIds.length-e.indexes[i.id])*o:a<i.x+i.w/2?n+=(e.rightIds.length-e.indexes[i.id])*o:n+=(e.indexes[i.id]+1)*o):2==r.isPartner&&(a=r.x+r.w+t.partnerSeparation/2+e.indexes[i.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&a>e.firstRight.x+e.firstRight.w/2?a<i.x+i.w/2?n-=(e.indexes[i.id]+1)*o:n-=(e.leftIds.length-e.indexes[i.id])*o:a<i.x+i.w/2?n+=(e.leftIds.length-e.indexes[i.id])*o:n+=(e.indexes[i.id]+1)*o),{x:a,mid:n}},__linkPpLeftRight:function(e,t,i,n,o,r){var a=0;return 1==r.isPartner?(a=r.y-t.partnerSeparation/2+e.indexes[i.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&a<e.lastLeft.y+e.lastLeft.h/2?a<i.y+i.h/2?n-=(e.indexes[i.id]+1)*o:n-=(e.rightIds.length-e.indexes[i.id])*o:a<i.y+i.h/2?n+=(e.rightIds.length-e.indexes[i.id])*o:n+=(e.indexes[i.id]+1)*o):2==r.isPartner&&(a=r.y+r.h+t.partnerSeparation/2+e.indexes[i.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&a>e.firstRight.y+e.firstRight.h/2?a<i.y+i.h/2?n-=(e.indexes[i.id]+1)*o:n-=(e.leftIds.length-e.indexes[i.id])*o:a<i.y+i.h/2?n+=(e.leftIds.length-e.indexes[i.id])*o:n+=(e.indexes[i.id]+1)*o),{y:a,mid:n}},_draggableLinkPath:function(e,t,i,n,o,r){if(i.isSubLevel)return null;if(t.isSubLevel)return null;if(i.leftNeighbor&&i.leftNeighbor.isSplit||i.rightNeighbor&&i.rightNeighbor.isSplit)return null;if(i.isPartner)return null;if(i.isAssistant)return null;if(OrgChart._isMoved(i)&&!OrgChart._isMoved(t)){var a=[];switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:if(n.yb+o/2<n.yd)return null;s=n.xa<n.xd?i.x-o/2:i.x+i.w+o/2,c=i.y-o/2;break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:if(n.yb-o/2>n.yd)return null;s=n.xa<n.xd?i.x-o/2:i.x+i.w+o/2,c=i.y+i.h+o/2;break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:if(n.xb-o/2>n.xd)return null;c=n.ya<n.yd?i.y-o/2:i.y+i.h+o/2,s=i.x+i.w+o/2;break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:if(n.xb+o/2<n.xd)return null;c=n.ya<n.yd?i.y-o/2:i.y+i.h+o/2,s=i.x-o/2}switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:a.push(["M",n.xa,n.ya]),a.push(["L",n.xb,n.yb]),a.push(["L",s,n.yb]),a.push(["L",s,c]),a.push(["L",n.xd,c]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:(a=[]).push(["M",n.xa,n.ya]),a.push(["L",n.xb,n.yb]),a.push(["L",n.xb,c]),a.push(["L",s,c]),a.push(["L",s,n.yd]),a.push(["L",n.xd,n.yd])}return OrgChart.roundPathCorners(a,OrgChart.LINK_ROUNDED_CORNERS,!1)}if(!OrgChart._isMoved(i)&&OrgChart._isMoved(t)){var l=!1;a=[];switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:if(n.ya+o/2>n.yb)l=!0,s=n.xa<n.xd?t.x+t.w+o/2:t.x-o/2,c=t.y+t.h+o;else{if(n.yb+o/2<n.yd)return null;s=n.xa<n.xd?i.x-o/2:i.x+i.w+o/2,c=i.y-o/2}break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:if(n.ya-o/2<n.yb)l=!0,s=n.xa<n.xd?t.x+t.w+o/2:t.x-o/2,c=t.y-o;else{if(n.yb-o/2>n.yd)return null;s=n.xa<n.xd?i.x-o/2:i.x+i.w+o/2,c=i.y+i.h+o/2}break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:if(n.xa-o/2<n.xb)l=!0,c=n.ya<n.yd?t.y+t.h+o/2:t.y-o/2,s=t.x-o;else{if(n.xb-o/2>n.xd)return null;c=n.ya<n.yd?i.y-o/2:i.y+i.h+o/2,s=i.x+i.w+o/2}break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:if(n.xa+o/2>n.xb)l=!0,c=n.ya<n.yd?t.y+t.h+o/2:t.y-o/2,s=t.x+t.w+o;else{if(n.xb+o/2<n.xd)return null;c=n.ya<n.yd?i.y-o/2:i.y+i.h+o/2,s=i.x-o/2}}if(l)switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,c]),a.push(["L",s,c]),a.push(["L",s,n.yc]),a.push(["L",n.xc,n.yc]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:a.push(["M",n.xa,n.ya]),a.push(["L",s,n.ya]),a.push(["L",s,c]),a.push(["L",n.xc,c]),a.push(["L",n.xc,n.yc]),a.push(["L",n.xd,n.yd])}else switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:a.push(["M",n.xa,n.ya]),a.push(["L",n.xb,n.yb]),a.push(["L",s,n.yb]),a.push(["L",s,c]),a.push(["L",n.xd,c]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:a.push(["M",n.xa,n.ya]),a.push(["L",n.xb,n.yb]),a.push(["L",n.xb,c]),a.push(["L",s,c]),a.push(["L",s,n.yd]),a.push(["L",n.xd,n.yd])}return OrgChart.roundPathCorners(a,OrgChart.LINK_ROUNDED_CORNERS,!1)}if(OrgChart._isMoved(i)&&OrgChart._isMoved(t)){a=[];switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:if(n.ya+o>n.yd){var s=n.xa<n.xd?t.x+t.w+o/2:t.x-o/2,c=t.y+t.h+o,d=i.y-o;a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,c]),a.push(["L",s,c]),a.push(["L",s,d]),a.push(["L",n.xc,d]),a.push(["L",n.xd,n.yd])}else a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,t.y+t.h+o]),a.push(["L",n.xc,t.y+t.h+o]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:if(n.ya-o<n.yd){s=n.xa<n.xd?t.x+t.w+o/2:t.x-o/2,c=t.y-o,d=i.y+i.h+o;a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,c]),a.push(["L",s,c]),a.push(["L",s,d]),a.push(["L",n.xc,d]),a.push(["L",n.xd,n.yd])}else a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,t.y-o]),a.push(["L",n.xc,t.y-o]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:if(n.xa-o<n.xd){c=n.ya<n.yd?t.y+t.h+o/2:t.y-o/2,s=t.x-o;var h=i.x+i.w+o;a.push(["M",n.xa,n.ya]),a.push(["L",s,n.ya]),a.push(["L",s,c]),a.push(["L",h,c]),a.push(["L",h,n.yc]),a.push(["L",n.xd,n.yd])}else a.push(["M",n.xa,n.ya]),a.push(["L",t.x-o,n.ya]),a.push(["L",t.x-o,n.yc]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:if(n.xa+o>n.xd){c=n.ya<n.yd?t.y+t.h+o/2:t.y-o/2,s=t.x+t.w+o,h=i.x-o;a.push(["M",n.xa,n.ya]),a.push(["L",s,n.ya]),a.push(["L",s,c]),a.push(["L",h,c]),a.push(["L",h,n.yc]),a.push(["L",n.xd,n.yd])}else a.push(["M",n.xa,n.ya]),a.push(["L",t.x+t.w+o,n.ya]),a.push(["L",t.x+t.w+o,n.yc]),a.push(["L",n.xd,n.yd])}return OrgChart.roundPathCorners(a,OrgChart.LINK_ROUNDED_CORNERS,!1)}return null}},void 0===OrgChart&&(OrgChart={}),OrgChart._validateConfig=function(e){return!!e||(console.error("config is not defined"),!1)},OrgChart._arrayContains=function(e,t){if(e&&Array.isArray(e))for(var i=e.length;i--;)if(e[i]===t)return!0;return!1},OrgChart._interceptions=function(e,t){if(!e)return[];if(!t)return[];var i=[];if(Array.isArray(e)&&Array.isArray(t))for(var n in e)for(var o in t)e[n]==t[o]&&i.push(e[n]);else if(Array.isArray(e)&&!Array.isArray(t))for(var n in e)for(var o in t)e[n]==o&&i.push(e[n]);else if(!Array.isArray(e)&&Array.isArray(t))for(var n in e)for(var o in t)n==t[o]&&i.push(t[o]);return i},OrgChart._getTags=function(e){return e.tags&&!Array.isArray(e.tags)?e.tags.split(","):e.tags&&Array.isArray(e.tags)?e.tags:[]},OrgChart._centerPointInPercent=function(e,t,i){var n=e.getBoundingClientRect(),o=t-n.left,r=i-n.top;return[o/(n.width/100),r/(n.height/100)]},OrgChart._trim=function(e){return e.replace(/^\s+|\s+$/g,"")},OrgChart._getTransform=function(e){var t=e.getAttribute("transform");return t=t.replace("matrix","").replace("(","").replace(")",""),OrgChart._browser().msie&&(t=t.replace(/ /g,",")),t="["+(t=OrgChart._trim(t))+"]",t=JSON.parse(t)},OrgChart.getScale=function(e,t,i,n,o,r,a,l){var s=1;if(e||n!==OrgChart.match.boundary&&n!==OrgChart.match.boundaryIfOutside)if(e||n!==OrgChart.match.width)if(e||n!==OrgChart.match.height)if(e){var c,d;s=(c=t/e[2])>(d=i/e[3])?d:c}else s=n;else s=i/l;else s=t/a;else s=(c=t/a)>(d=i/l)?d:c,n===OrgChart.match.boundaryIfOutside&&s>1&&(s=1);return s&&s>o&&(s=o),s&&s<r&&(s=r),s},OrgChart.isObject=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&null!==e&&e.constructor&&"object"==e.constructor.name.toLowerCase()},OrgChart.fileUploadDialog=function(e){var t=document.createElement("INPUT");t.setAttribute("type","file"),t.style.display="none",t.onchange=function(){var t=this.files[0];e(t)},document.body.appendChild(t),t.click()},OrgChart.mergeDeep=function(e,t){if(OrgChart.isObject(e)&&OrgChart.isObject(t))for(var i in t)OrgChart.isObject(t[i])?(e[i]||Object.assign(e,{[i]:{}}),OrgChart.mergeDeep(e[i],t[i])):Object.assign(e,{[i]:t[i]});return e},OrgChart._lblIsImg=function(e,t){return!(!e.nodeBinding||"string"!=typeof t||-1==t.indexOf("img")||!e.nodeBinding[t])},OrgChart._getFistImgField=function(e){if(e.nodeBinding)for(var t in e.nodeBinding)if(-1!=t.indexOf("img"))return e.nodeBinding[t];return!1},OrgChart._fieldIsImg=function(e,t){if(e.nodeBinding)for(var i in e.nodeBinding)if(e.nodeBinding[i]==t)return OrgChart._lblIsImg(e,i);return!1},OrgChart._guid=function(){function s4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return s4()+s4()+"-"+s4()+"-"+s4()+"-"+s4()+"-"+s4()+s4()+s4()},OrgChart.htmlRipple=function(e){var t=document.createElement("style");t.type="text/css",t.innerHTML=" .boc-ripple-container {position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .boc-ripple-container span {transform: scale(0);border-radius:100%;position:absolute;opacity:0.75;background-color:#fff;animation: boc-ripple 1000ms; }@-moz-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-webkit-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-o-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}",document.head.appendChild(t);var i,n,o,r=document.createElement("div");r.className="boc-ripple-container",e.addEventListener("mousedown",function(t){var i,n,o,r=document.createElement("span"),a=this.offsetWidth;return i=this.getBoundingClientRect(),o=t.pageX-i.left-a/2,n="top:"+(t.pageY-i.top-a/2)+"px; left: "+o+"px; height: "+a+"px; width: "+a+"px;",e.rippleContainer.appendChild(r),r.setAttribute("style",n)}),e.addEventListener("mouseup",(i=function(){for(;this.rippleContainer.firstChild;)this.rippleContainer.removeChild(this.rippleContainer.firstChild)},n=2e3,o=void 0,function(){var e,t=this;return e=arguments,clearTimeout(o),o=setTimeout(function(){return i.apply(t,e)},n)})),e.rippleContainer=r,e.appendChild(r)},OrgChart._moveToBoundaryArea=function(e,t,i,n){var o=t.slice(0);t[0]<i.left&&t[0]<i.right&&(o[0]=i.left>i.right?i.right:i.left),t[0]>i.right&&t[0]>i.left&&(o[0]=i.left>i.right?i.left:i.right),t[1]<i.top&&t[1]<i.bottom&&(o[1]=i.top>i.bottom?i.bottom:i.top),t[1]>i.bottom&&t[1]>i.top&&(o[1]=i.top>i.bottom?i.top:i.bottom),t[0]!==o[0]||t[1]!==o[1]?OrgChart.animate(e,{viewBox:t},{viewBox:o},300,OrgChart.anim.outPow,function(){n&&n()}):n&&n()},OrgChart.randomId=function(){return"_"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)},OrgChart._getClientXY=function(e){return-1==e.type.indexOf("touch")?{x:e.clientX,y:e.clientY}:e.changedTouches.length?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:void 0},OrgChart._getClientTouchesXY=function(e,t){return-1!=e.type.indexOf("touch")?e.touches.length<t+1?{x:null,y:null}:{x:e.touches[t].clientX,y:e.touches[t].clientY}:{x:e.clientX,y:e.clientY}},OrgChart._getOffset=function(e,t){e&&(t.x+=e.offsetLeft,t.y+=e.offsetTop,OrgChart._getOffset(e.offsetParent,t))},OrgChart._getTopLeft=function(e){var t={x:0,y:0};return OrgChart._getOffset(e,t),t},OrgChart._getOffsetXY=function(e,t){if(-1==t.type.indexOf("touch"))return{x:t.offsetX,y:t.offsetY};if(t.touches.length){var i=OrgChart._getTopLeft(e);return{x:t.touches[0].pageX-i.x,y:t.touches[0].pageY-i.y}}if(t.changedTouches.length){i=OrgChart._getTopLeft(e);return isNaN(i.x)||isNaN(i.y)?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.changedTouches[0].pageX-i.x,y:t.changedTouches[0].pageY-i.y}}},OrgChart._pinchMiddlePointInPercent=function(e,t,i,n){var o=OrgChart._getTopLeft(e),r=n.touches[0].pageX-o.x,a=n.touches[0].pageY-o.y,l=n.touches[1].pageX-o.x,s=n.touches[1].pageY-o.y;return[((r-l)/2+l)/(t/100),((a-s)/2+s)/(i/100)]},OrgChart._browser=function(){var e=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,t="undefined"!=typeof InstallTrigger,i=/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||void 0!==window.safari&&safari.pushNotification).toString(),n=!!document.documentMode,o=!n&&!!window.StyleMedia,r=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime);return{opera:e,firefox:t,safari:i,msie:n,edge:o,chrome:r,blink:(r||e)&&!!window.CSS}},OrgChart._menuPosition=function(e,t,i){var n=e.getBoundingClientRect(),o=i.getBoundingClientRect(),r=t.getBoundingClientRect(),a=n.left-o.left,l=n.top-o.top;return n.top+r.height>o.top+o.height&&(l-=r.height),n.left-r.width<o.left&&(a+=r.width),{x:a,y:l}},OrgChart._getTemplate=function(e,t,i){if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=t[e[n]];if(o&&o.template)return o.template}return i},OrgChart._getMin=function(e,t){if(e.tags&&e.tags.length&&t.tags)for(var i=0;i<e.tags.length;i++){var n=t.tags[e.tags[i]];if(n&&!0===n.min)return!0}return t.min},OrgChart._getSubLevels=function(e,t){if(e&&e.length)for(var i=0;i<e.length;i++){var n=t[e[i]];if(n&&n.subLevels)return n.subLevels}return 0},OrgChart._isHTML=function(e){var t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(e=>1===e.nodeType)},OrgChart._getTestDiv=function(){var e=document.getElementById("orgchart_js_test_div");return e||((e=document.createElement("div")).id="orgchart_js_test_div",e.style.position="fixed",e.style.top="-10000px",e.style.left="-10000px",document.body.appendChild(e)),e},OrgChart._getLabelSize=function(e){var t=OrgChart._getTestDiv();return t.innerHTML="<svg>"+e+"</svg>",t.querySelector("text").getBoundingClientRect()},OrgChart.wrapText=function(e,t,i,n){if(null!=i&&null!=n)return OrgChart._lineClamp(t,e,i,n);var o=t,r=o.toLowerCase();if(-1==r.indexOf("<text"))return OrgChart._escapeHtml(e);if(-1==r.indexOf(OrgChart.attr.width))return OrgChart._escapeHtml(e);if(-1!=r.indexOf("foreignobject"))return OrgChart._escapeHtml(e);if(-1==o.indexOf(OrgChart.attr.width))return OrgChart._escapeHtml(e);if(OrgChart.ESCAPE_HTML&&"string"==typeof str&&OrgChart._isHTML(e))return OrgChart._escapeHtml(e);if(!OrgChart.ESCAPE_HTML&&OrgChart._isHTML(e))return e;var a=OrgChart._getTestDiv();o=o.replaceAll("{cw}",0),a.innerHTML="<svg>"+o+"</svg>";var l,s=(new DOMParser).parseFromString(o,"text/xml").getElementsByTagName("text")[0],c=parseFloat(s.getAttribute("x")),d=parseFloat(s.getAttribute("y")),h=s.getAttribute("text-anchor"),p=(i=s.getAttribute(OrgChart.attr.width),s.getAttribute(OrgChart.attr.text_overflow)),u="http://www.w3.org/2000/svg",f=a.getElementsByTagName("svg")[0].getElementsByTagName("text")[0];p||(p="ellipsis");var g=p.split("-");if(g.length>1&&(n=parseInt(p.split("-")[1]),g.length>2&&"ellipsis"==g[2]&&(l=!0)),!i)return OrgChart._escapeHtml(e);if(i=parseFloat(i),c||(c=0),d||(d=0),c||(h="start"),"ellipsis"==p){f.removeChild(f.firstChild),f.textContent=e;for(var m=f.getComputedTextLength(),x=2;m>i;)f.textContent=e.substring(0,e.length-x),f.textContent+="...",m=f.getComputedTextLength(),x++;return x>2?`<title>${OrgChart._escapeHtml(e)}</title>${f.textContent}`:OrgChart._escapeHtml(e)}if(-1!=p.indexOf("multiline")){var b=e.split(" "),y=f.getBBox().height;f.textContent="";var v=document.createElementNS(u,"tspan"),_=document.createTextNode(b[0]);v.setAttributeNS(null,"x",c),v.setAttributeNS(null,"y",d),v.setAttributeNS(null,"text-anchor",h),v.appendChild(_),f.appendChild(v);x=1;for(var w=1,I=!1,k=1;k<b.length;k++){var C=v.firstChild.data.length;if(v.firstChild.data+=" "+b[k],v.getComputedTextLength()>i){if(v.firstChild.data=v.firstChild.data.slice(0,C),w++,n&&w>n){if(l&&f.children.length==n){var L=f.children[n-1].textContent;f.children[n-1].textContent=L.substring(0,L.length-3)+"...",I=!0}break}(v=document.createElementNS(u,"tspan")).setAttributeNS(null,"x",c),v.setAttributeNS(null,"y",d+y*x),v.setAttributeNS(null,"text-anchor",h),_=document.createTextNode(b[k]),v.appendChild(_),f.appendChild(v),x++}}var S="";if(null!=f.innerHTML)S=f.innerHTML,f.innerHTML="";else{var N="";for(k=f.childNodes.length-1;k>=0;k--)N=XMLSerializer().serializeToString(f.childNodes[k])+N,f.removeChild(f.childNodes[k]);S=N}return I?`<title>${OrgChart._escapeHtml(e)}</title>${S}`:S}},OrgChart._downloadFile=function(e,t,i,n,o){var r=new Blob([t],{type:e});if(1==n){var a=URL.createObjectURL(r);window.open(a,"_blank").focus()}else if(navigator.msSaveBlob)navigator.msSaveBlob(r,i);else{var l=document.createElement("a");if(void 0!==l.download){a=URL.createObjectURL(r);l.setAttribute("href",a);var s=i;s.toLowerCase().endsWith(o.toLowerCase())||(s=s+"."+o),l.setAttribute("download",s),l.style.visibility="hidden",document.body.appendChild(l),l.click(),document.body.removeChild(l)}}},OrgChart._getPosition=function(e,t,i,n){var o={x:t.x,y:t.y};if(null!=i&&(o.x=i),null!=n&&(o.y=i),e&&3==e.length){var r=e[0].indexOf(t.id);-1!=r&&null!=e[1][r].transform&&(null==i&&(o.x=e[1][r].transform[4]),null==n&&(o.y=e[1][r].transform[5]))}return o},OrgChart._getOpacity=function(e,t){var i=1;if(e&&3==e.length){var n=e[0].indexOf(t.id);-1!=n&&null!=e[1][n].opacity&&(i=e[1][n].opacity)}return i},OrgChart.t=function(e,t,i){var n=OrgChart.templates[e];null==n&&console.error(`Template "${e}" does not exist!`);var o=null;if(null!=i&&n.scaleLessThen){var r=[];for(var a in n.scaleLessThen){var l=parseFloat(a);i<l&&r.push(l)}if(r.length>0){r.sort(function(e,t){return e-t});var s=n.scaleLessThen[r[0]];for(var c in s)null==o&&(o=Object.assign({},n)),o[c]=s[c]}}return t?null==o?n.min?n.min:n:o.min?o.min:o:null==o?n:o},OrgChart.setNodeSize=function(e){var t=OrgChart.t(e.templateName,e.min);e.w=t&&t.size?t.size[0]:0,e.h=t&&t.size?t.size[1]:0},OrgChart._imgs2base64=function(e,t,i,n){var o=e.getElementsByTagName(t),r=o.length;0==r&&n();for(var a=0;a<r;a++)(function(){var e=a,t=o[e];OrgChart._getDataUri(t.getAttribute(i),function(o){o.success&&t.setAttribute(i,o.result),e==r-1&&n()})})()},OrgChart._getDataUri=function(e,t){if(-1!=e.indexOf("base64"))t({success:!1});else{var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){200===i.status?n.readAsDataURL(i.response):404===i.status&&t({success:!1,result:i.status})};var n=new FileReader;n.onloadend=function(){t({success:!0,result:n.result})},i.send()}},OrgChart._convertStringToArray=function(e,t){return-1!=OrgChart.ARRAY_FIELDS.indexOf(e)?OrgChart.isNEU(t)?[]:t.split(","):t},OrgChart._convertArrayToString=function(e){return!OrgChart.isNEU(e)&&Array.isArray(e)?e.join():e},OrgChart._csvToArray=function(e,t){t=t||OrgChart.CSV_DELIMITER;for(var i=new RegExp("(\\"+t+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+t+"\\r\\n]*))","gi"),n=[[]],o=null;o=i.exec(e);){var r,a=o[1];a.length&&a!==t&&n.push([]),r=o[2]?o[2].replace(new RegExp('""',"g"),'"'):o[3],n[n.length-1].push(r)}return n},OrgChart._json2xml=function(e){for(var t=document.implementation.createDocument("","",null),i=t.createElement("nodes"),n=0;n<e.length;n++){var o=t.createElement("node"),r=e[n];for(var a in r){var l=r[a];o.setAttribute(a,OrgChart._convertArrayToString(l))}i.appendChild(o)}return t.appendChild(i),'<?xml version="1.0" encoding="utf-8" ?>'+(new XMLSerializer).serializeToString(t.documentElement)},OrgChart._xml2json=function(e){for(var t=(new DOMParser).parseFromString(e,"text/xml").getElementsByTagName("node"),i=[],n=0;n<t.length;n++){for(var o=t[n],r={},a=0;a<o.attributes.length;a++){var l=o.attributes[a];r[l.name]=OrgChart._convertStringToArray(l.name,l.value)}i.push(r)}return i},OrgChart.convertNodesToCsv=function(e){return OrgChart._json2csv(e)},OrgChart._json2csv=function(e){for(var t=[],processNode=function(e){for(var i="",n=0;n<t.length;n++){var o;(o="reportsTo"==t[n]?null:null==e[t[n]]?"":e[t[n]])instanceof Date&&(o=o.toLocaleString());var r=(o=null===o?"":o.toString()).replace(/"/g,'""'),a=new RegExp('("|;|\n)',"g");r.search(a)>=0&&(r='"'+r+'"'),n>0&&(i+=OrgChart.CSV_DELIMITER),i+=r}return i+"\n"},i="",n=0;n<e.length;n++)for(var o in e[n])OrgChart._arrayContains(t,o)||(t.push(o),i+=o+OrgChart.CSV_DELIMITER);i=i.substring(0,i.length-1),i+="\n";for(n=0;n<e.length;n++)i+=processNode(e[n]);return i=i.substring(0,i.length-1)},OrgChart.accentFold=function(e){return(e=e.toString().toLowerCase()).replace(/([àáâãäå])|([ç])|([èéêë])|([ìíîï])|([ñ])|([òóôõöø])|([ß])|([ùúûü])|([ÿ])|([æ])/g,function(e,t,i,n,o,r,a,l,s,c,d){return t?"a":i?"c":n?"e":o?"i":r?"n":a?"o":l?"s":s?"u":c?"y":d?"ae":void 0})},OrgChart.copy=function(e){if(null===e||"object"!=typeof e||"isActiveClone"in e)return e;if(e instanceof Date)var t=new e.constructor;else t=e.constructor();for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e.isActiveClone=null,t[i]=OrgChart.copy(e[i]),delete e.isActiveClone);return t},OrgChart._getScrollSensitivity=function(){var e=OrgChart._browser();return e.msie&&OrgChart.scroll.ie?OrgChart.scroll.ie:e.edge&&OrgChart.scroll.edge?OrgChart.scroll.edge:e.safari&&OrgChart.scroll.safari?OrgChart.scroll.safari:e.chrome&&OrgChart.scroll.chrome?OrgChart.scroll.chrome:e.firefox&&OrgChart.scroll.firefox?OrgChart.scroll.firefox:e.opera&&OrgChart.scroll.opera?OrgChart.scroll.opera:{smooth:OrgChart.scroll.smooth,speed:OrgChart.scroll.speed}},OrgChart.isMobile=function(){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return t||i},OrgChart._isTouchDevice=function(){return navigator.maxTouchPoints>0},OrgChart.isTrial=function(){return void 0!==OrgChart.remote},OrgChart.childrenCount=function(e,t){for(var i=0,n=0;n<t.childrenIds.length;n++)e.nodes[t.childrenIds[n]]&&i++;return i},OrgChart.childrenTotalCount=function(e,t){for(var i=0,n=0;n<t.childrenIds.length;n++){var o=e.nodes[t.childrenIds[n]];o&&(i++,i+=OrgChart.childrenTotalCount(e,o))}return i},OrgChart.collapsedChildrenCount=function(e,t){for(var i=0,n=0;n<t.childrenIds.length;n++){var o=e.nodes[t.childrenIds[n]];o&&!0===o.collapsed&&i++}return i},OrgChart.collapsedChildrenTotalCount=function(e,t,i){for(var n=0,o=0;o<t.childrenIds.length;o++){var r=e.nodes[t.childrenIds[o]];r&&((i||!0===r.collapsed)&&n++,n+=OrgChart.collapsedChildrenTotalCount(e,r,!0))}return n},OrgChart._setMinMaxXY=function(e,t,i){i&&e.isTreeListItem||((null==t.minX||null!=e.x&&e.x<t.minX)&&(t.minX=e.x),(null==t.minY||null!=e.y&&e.y<t.minY)&&(t.minY=e.y),(null==t.maxX||null!=e.x&&e.x+e.w>t.maxX)&&(t.maxX=e.x+e.w),(null==t.maxY||null!=e.y&&e.y+e.h>t.maxY)&&(t.maxY=e.y+e.h))},OrgChart.getStParentNodes=function(e,t){for(t||(t=[]);e.parent;)e=e.parent;return e.stParent&&(t.push(e.stParent),OrgChart.getStParentNodes(e.stParent,t)),t},OrgChart.getRootOf=function(e){for(;e&&e.parent;)e=e.parent;return e},OrgChart._getViewBox=function(e){var t=null;return e?(t=(t="["+(t=e.getAttribute("viewBox"))+"]").replace(/\ /g,","),t=JSON.parse(t)):null},OrgChart.isNEU=function(e){return null==e||""===e},OrgChart.gradientCircleForDefs=function(e,t,i,n){function polarToCartesian(e,t,i,n){var o=(n-90)*Math.PI/180;return{x:e+i*Math.cos(o),y:t+i*Math.sin(o)}}function describeArc(e,t,i,n,o){var r=polarToCartesian(e,t,i,o),a=polarToCartesian(e,t,i,n),l=o-n<=180?"0":"1";return["M",r.x,r.y,"A",i,i,0,l,0,a.x,a.y].join(" ")}return Array.isArray(t)||(t=[t,t,t,t,t,t]),`<linearGradient id="${e}_linearColors1" x1="0" y1="0" x2="1" y2="1">\n <stop offset="0%" stop-color="${t[0]}"></stop>\n <stop offset="100%" stop-color="${t[1]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors2" x1="0.5" y1="0" x2="0.5" y2="1">\n <stop offset="0%" stop-color="${t[1]}"></stop>\n <stop offset="100%" stop-color="${t[2]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors3" x1="1" y1="0" x2="0" y2="1">\n <stop offset="0%" stop-color="${t[2]}"></stop>\n <stop offset="100%" stop-color="${t[3]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors4" x1="1" y1="1" x2="0" y2="0">\n <stop offset="0%" stop-color="${t[3]}"></stop>\n <stop offset="100%" stop-color="${t[4]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors5" x1="0.5" y1="1" x2="0.5" y2="0">\n <stop offset="0%" stop-color="${t[4]}"></stop>\n <stop offset="100%" stop-color="${t[5]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors6" x1="0" y1="1" x2="1" y2="0">\n <stop offset="0%" stop-color="${t[5]}"></stop>\n <stop offset="100%" stop-color="${t[0]}"></stop>\n </linearGradient> \n <g id="${e}">\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors1)" d="${describeArc(i,i,i,1,60)}" />\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors2)" d="${describeArc(i,i,i,60,120)}"/>\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors3)" d="${describeArc(i,i,i,120,180)}" />\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors4)" d="${describeArc(i,i,i,180,240)}" />\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors5)" d="${describeArc(i,i,i,240,300)}" />\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors6)" d="${describeArc(i,i,i,300,1)}"/>\n </g>`},OrgChart._intersectionObserver=function(e,t){"function"==typeof IntersectionObserver?new IntersectionObserver(function(e,i){e.forEach(function(e){var i=e.intersectionRatio>0;0==e.intersectionRatio&&(i=e.isIntersecting),t(i)})}).observe(e):t(!0)},OrgChart.convertCsvToNodes=function(e){for(var t=OrgChart._csvToArray(e),i=t[0],n=[],o=1;o<t.length;o++){for(var r={},a=0;a<t[o].length;a++){var l=i[a],s=t[o][a];r[i[a]]=OrgChart._convertStringToArray(l,s)}""!=r.id.trim()&&n.push(r)}return n},OrgChart._escapeHtml=function(e){return OrgChart.ESCAPE_HTML&&"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e},OrgChart._escapeDoubleQuotes=function(e){return"string"==typeof e?e.replace(/"/g,"""):e},OrgChart._escapeGreaterLessSign=function(e){return"string"==typeof e?e.replace(/</g,"<").replace(/>/g,">"):e},OrgChart.roundPathCorners=function(e,t,i){function moveTowardsLength(e,t,i){var n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);return moveTowardsFractional(e,t,Math.min(1,i/r))}function moveTowardsFractional(e,t,i){return{x:e.x+(t.x-e.x)*i,y:e.y+(t.y-e.y)*i}}function adjustCommand(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function pointForCommand(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}Array.isArray(e)||(e=(e=e.split(/[,\s]/).reduce(function(e,t){var i=t.match("([a-zA-Z])(.+)");return i?(e.push(i[1]),e.push(i[2])):e.push(t),e},[])).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]));var n=[];if(e.length>1){var o=pointForCommand(e[0]),r=null;"Z"==e[e.length-1][0]&&e[0].length>2&&(r=["L",o.x,o.y],e[e.length-1]=r),n.push(e[0]);for(var a=1;a<e.length;a++){var l=n[n.length-1],s=e[a],c=s==r?e[1]:e[a+1];if(c&&l&&l.length>2&&"L"==s[0]&&c.length>2&&"L"==c[0]){var d,h,p=pointForCommand(l),u=pointForCommand(s),f=pointForCommand(c);i?(d=moveTowardsFractional(u,l.origPoint||p,t),h=moveTowardsFractional(u,c.origPoint||f,t)):(d=moveTowardsLength(u,p,t),h=moveTowardsLength(u,f,t)),adjustCommand(s,d),s.origPoint=u,n.push(s);var g=moveTowardsFractional(d,u,.5),m=moveTowardsFractional(u,h,.5),x=["C",g.x,g.y,m.x,m.y,h.x,h.y];x.origPoint=u,n.push(x)}else n.push(s)}if(r){var b=pointForCommand(n[n.length-1]);n.push(["Z"]),adjustCommand(n[0],b)}}else n=e;return n.reduce(function(e,t){return e+t.join(" ")+" "},"")},OrgChart._isMoved=function(e){return null!=e.movex||null!=e.movey},OrgChart._getDynamicGridCoulumns=function(e){for(var t=1;t<e&&!(e/t-t<=0);t++);return t%2!=0&&t>2&&t--,t},OrgChart._getLazyLoading=function(e){var t=e.lazyLoading;return"auto"==t&&(t=!!(e&&e.nodes&&e.nodes.length>700)),t},OrgChart._getSvgAttributes=function(e){const t=e.match(/width="([\d.]+)"/),i=e.match(/height="([\d.]+)"/),n=e.match(/x="([\d.]+)"/),o=e.match(/y="([\d.]+)"/),r=e.match(/viewBox="([^"]+)"/),a=t?parseFloat(t[1]):0,l=i?parseFloat(i[1]):0,s=n?parseFloat(n[1]):0,c=o?parseFloat(o[1]):0;let d=[0,0,0,0];return r&&(d=r[1],d=JSON.parse(`[${d}]`)),{width:a,height:l,viewBox:d,x:s,y:c}},OrgChart._setSvgAttributes=function(e,t){var i=t.x,n=t.y,o=t.width,r=t.height,a=t.viewBox.join(",");const l=e.match(/<svg\s+([^>]*?)>/);if(!l)return e;let s=l[0],c=l[1];const updateAttribute=(e,t,i)=>{if(null==i)return e;const n=new RegExp(`\\s*${t}="[^"]*"`,"i"),o=` ${t}="${i}"`;return e.match(n)?e.replace(n,o):e+o};c=updateAttribute(c,"x",i),c=updateAttribute(c,"y",n),c=updateAttribute(c,"width",o),c=updateAttribute(c,"height",r),c=updateAttribute(c,"viewBox",a);const d=`<svg ${c}>`;return e.replace(s,d)},OrgChart._convertTextToNodes=function(e,t){const i=e.split(/\r?\n/).filter(e=>""!==e.trim()),n=[];let o=1;const r=[];for(let a of i){let e=0;for(;a.startsWith(t);)a=a.slice(t.length),e++;if(a=a.trim(),!a)continue;const i=a.match(/^\[([^\]]+)](.*)$/);if(i){const e=i[1].trim(),t=i[2].trim();r.length>0&&(r[r.length-1][e]=t);continue}const l=a.match(/^([^\(]+)\(([^)]+)\)$/);let s,c=[];l?(s=l[1].trim(),c=l[2].split(",").map(e=>e.trim())):s=a;const d={id:o++,pid:0===e?null:r[e-1].id,name:s,tags:c};r[e]=d,r.length=e+1,n.push(d)}return n},OrgChart._convertFromNodesToText=function(e,t){const i={},n=[];function render(e,i){const n=t.repeat(i);let o=n+e.name;Array.isArray(e.tags)&&e.tags.length>0&&(o+="("+e.tags.join(",")+")"),o+="\n";for(const t of Object.keys(e))["id","pid","name","children","tags"].includes(t)||(o+=n+"["+t+"]"+e[t]+"\n");for(const t of e.children)o+=render(t,i+1);return o}return e.forEach(e=>{i[e.id]={...e,children:[]}}),e.forEach(e=>{e.pid&&i[e.pid]?i[e.pid].children.push(i[e.id]):n.push(i[e.id])}),n.map(e=>render(e,0)).join("").trim()},OrgChart._onClickHandler=function(e,t,i,n,o){var r;if(void 0===i)if("add"===t){var a={id:e.generateId(),pid:n};e.addNode(a,null,!0)}else if("edit"===t){var l=e.getNode(n);e.editUI.show(l.id)}else if("details"===t){l=e.getNode(n);e.editUI.show(l.id,!0)}else if("remove"===t)e.removeNode(n,null,!0);else if("svg_export"===t||"svg"===t){var s={};OrgChart.isNEU(n)||(s.pages=[{nodeId:n}]),e.exportToSVG(s)}else if("pdf_export"===t||"pdf"===t){s={};OrgChart.isNEU(n)||(s.pages=[{nodeId:n}]),e.exportToPDF(s)}else if("png_export"===t||"png"===t){s={};OrgChart.isNEU(n)||(s.pages=[{nodeId:n}]),e.exportToPNG(s)}else if("visio_export"===t||"visio"===t)e.exportToVisio({nodeId:n});else if("pp_export"===t||"powerpoint"===t)e.exportToPowerPoint();else if("pp_preview"===t||"pppreview"===t){s={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};null!=n&&(s.expandChildren=!1,s.pages[0].nodeId=n),e.powerPointPreviewUI.show(s)}else if("pdf_preview"===t||"pdfpreview"===t){s={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};null!=n&&(s.expandChildren=!1,s.pages[0].nodeId=n),e.pdfPreviewUI.show(s)}else if("svg_preview"===t||"svgpreview"===t){s={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};null!=n&&(s.expandChildren=!1,s.pages[0].nodeId=n),e.svgPreviewUI.show(s)}else if("png_preview"===t||"pngpreview"===t){s={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};null!=n&&(s.expandChildren=!1,s.pages[0].nodeId=n),e.pngPreviewUI.show(s)}else"csv_export"===t||"csv"===t?e.exportToCSV({nodeId:n}):"xml_export"===t||"xml"===t?e.exportToXML({nodeId:n}):"json_export"===t||"json"===t?e.exportToJSON({nodeId:n}):"fit"===t?e.fit():"expand_all"===t?e.expand(null,"all"):"full_screen"===t?e.toggleFullScreen():"zoom_in"===t?e.zoom(!0,null,!0):"zoom_out"===t||"zoom_out"===t?e.zoom(!1,null,!0):"layout_mixed"===t?e.setLayout(OrgChart.layout.mixed):"layout_normal"===t?e.setLayout(OrgChart.layout.normal):"layout_right_offset"===t?e.setLayout(OrgChart.layout.treeRightOffset):"layout_left_offset"===t?e.setLayout(OrgChart.layout.treeLeftOffset):"layout_tree"===t?e.setLayout(OrgChart.layout.tree):"layout_grid"===t&&e.setLayout(OrgChart.layout.grid);else r=i.call(e,n,o);return r},OrgChart._isSVG=function(e){if("string"!=typeof e)return!1;const t=e.trim();if(!t.startsWith("<svg")||!t.endsWith("</svg>"))return!1;try{const e=(new DOMParser).parseFromString(t,"image/svg+xml");return!e.querySelector("parsererror")&&"svg"===e.documentElement.nodeName.toLowerCase()}catch{return!1}},OrgChart._treeListAdjustToSTNodePostition=function(e,t){for(var i of e)i.y+=t.y+t.padding[0],i.x+=t.x+t.padding[3],OrgChart._treeListAdjustToSTNodePostition(i.children,t)},OrgChart._treeListSetProps=function(e,t){var i=-e.treeList.scrollTop,n={nodesByLevels:[],lastNode:null,y:0};e.treeList.pinnedIds=[],OrgChart._treeListIterate(e.stChildren,n,-1);var o=n.lastNode.y+n.lastNode.h-0-(e.treeList.maxHeight-e.padding[0]-e.padding[2]);i>0||o<0?i=0:0!=i&&-1*i>o&&(i=-o);for(var r=n.nodesByLevels.length-1;r>=0;r--)for(var a=n.nodesByLevels[r],l=a.length-1;l>=0;l--){for(var s=(g=a[l]).y,c=0,d=g.parent;d&&(c+=d.h,d.parent);)d=d.parent;if(g.children.length&&g.y+i<=c){s=-i+c;var h=a[l+1];if(h&&h.y<s+g.h&&(s=h.y-g.h),d){var p=e.stChildren.indexOf(d);if(e.stChildren.length>p+1){var u=e.stChildren[p+1];u.y<s+g.h&&(s=u.y-g.h)}}}g.y!=s&&e.treeList.pinnedIds.push(g.id),g.y=s,g.x=0}if(t==OrgChart.orientation.bottom){var f=n.lastNode.y+n.lastNode.h;for(var r of n.nodesByLevels)for(var g of r)g.y=f-g.y-g.h}e.treeList.scrollTop=-i,e.treeList.scrollTopMax=o},OrgChart._treeListIterate=function(e,t,i){for(var n of(i++,e))n.y=t.y,t.y+=n.h,t.nodesByLevels[i]||(t.nodesByLevels[i]=[]),t.nodesByLevels[i].push(n),t.lastNode=n,OrgChart._treeListIterate(n.children,t,i)},OrgChart._treeListGetTumbPositionFromScrollTop=function(e){var t=e.h-e.padding[0]-e.padding[2],i=t/((e.treeList.scrollTopMax+t)/100),n=t/100*i,o=t-n,r=-e.treeList.scrollTop/(e.treeList.scrollTopMax/100),a=e.y+e.padding[0]+r*(o/-100),l="initial";return(isNaN(n)||isNaN(a)||n<0||i>100)&&(l="none",n=0,a=0),{thumbHeight:n,thumbPosition:a,scrollBarDisplay:l}},OrgChart._treeListGetScrollTopFromTumbPosition=function(e,t,i){var n=e.h-e.padding[0]-e.padding[2]-t,o=(i-(e.y+e.padding[0]))/n*100/100*e.treeList.scrollTopMax;return(isNaN(o)||o<0)&&(o=0),o>e.treeList.scrollTopMax&&(o=e.treeList.scrollTopMax),o},OrgChart._getCenterNodeFromParams=function(e,t){var i=e[t.id];if(i){if(i.isTreeListItem){for(;!i.stParent;)i=i.parent;i=i.stParent}return i}return null},OrgChart._getScrollTopForNode=function(e,t){var i={nodesByLevels:[],lastNode:null,y:0};OrgChart._treeListIterate(e.stChildren,i,-1);var n=null;for(var o of i.nodesByLevels){for(var r of o)if(r.id==t){n=r;break}if(n)break}if(!n)return e.treeList.scrollTop;for(var a=0,l=n.parent;l&&(a+=l.h,l.parent);)l=l.parent;var s=e.padding[0],c=e.padding[2],d=e.treeList.maxHeight-s-c,h=i.lastNode.y+i.lastNode.h-d;h<0&&(h=0);var p=e.treeList.scrollTop,u=n.y-a,f=n.y+n.h-d,g=p;return n.y<p+a?g=u:n.y+n.h>p+d&&(g=n.h>d-a?u:f),g<0?g=0:g>h&&(g=h),g},OrgChart._getDefailtPositionForExpandCollpase=function(e,t){var i={x:0,y:0};switch(e.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:i.x=t.w/2,i.y=t.h;break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:i.x=t.w/2,i.y=0;break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:i.x=0,i.y=t.h/2;break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:i.x=t.w,i.y=t.h/2}return i},OrgChart._measureCache={svg:null,text:null},OrgChart._getMeasureElement=function(){if(OrgChart._measureCache.svg)return OrgChart._measureCache.text;const e="http://www.w3.org/2000/svg";return OrgChart._measureCache.svg=document.createElementNS(e,"svg"),OrgChart._measureCache.svg.id="orgchart_js_test__measure",OrgChart._measureCache.svg.style.cssText="position:absolute;top:-9999px;visibility:hidden;white-space:pre;",OrgChart._measureCache.text=document.createElementNS(e,"text"),OrgChart._measureCache.svg.appendChild(OrgChart._measureCache.text),document.body.appendChild(OrgChart._measureCache.svg),OrgChart._measureCache.text},OrgChart._lineClamp=function(e,t,i,n){if(void 0===t||null==t)return"";"string"!=typeof t&&(t=t.toString()),t=OrgChart._escapeHtml(t);const o=/(\w+(?:-\w+)?)="([^"]*)"/g,r={};let a;for(;null!==(a=o.exec(e));)r[a[1]]=a[2];const l=OrgChart._getMeasureElement();l.textContent="";for(const[g,m]of Object.entries(r))"x"!==g&&"y"!==g&&l.setAttribute(g,m);const getWidth=e=>(l.textContent=e,l.getComputedTextLength()),s=t.split(" "),c=[];let d="",h=0;for(;h<s.length&&c.length<n;){const e=s[h],t=d?d+" "+e:e;if(getWidth(t)<=i)d=t,h++;else if(""===d){let t=0,n=e.length,o=1;for(;t<=n;){let r=t+n>>1;getWidth(e.slice(0,r))<=i?(o=r,t=r+1):n=r-1}c.push(e.slice(0,o)),s[h]=e.slice(o)}else c.push(d),d=""}d&&c.length<n&&c.push(d);let p=h<s.length||h===s.length&&""===s[h-1]&&t.endsWith(" ");if(p&&c.length>0){let e=c[c.length-1],t=0,n=e.length,o="";for(;t<=n;){let r=Math.floor((t+n)/2),a=e.substring(0,r)+"...";getWidth(a)<=i?(o=a,t=r+1):n=r-1}c[c.length-1]=o}const u=` x="${r.x||"0"}"`,f=1===c.length?c[0]:c.map((e,t)=>`<tspan${u} dy="${0===t?0:"1.2em"}">${e}</tspan>`).join("");return`<text${Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("")}>${p?`<title>${t}</title>`:""}${f}</text>`},OrgChart._getScrollableTreeListNodeInTouchEnabledDevice=function(e){if(!e||!e.isTreeListItem||!OrgChart._isTouchDevice())return null;var t=OrgChart.getRootOf(e).stParent,{thumbHeight:i,thumbPosition:n,scrollBarDisplay:o}=OrgChart._treeListGetTumbPositionFromScrollTop(t);return"none"==o?null:t},OrgChart._convertImagesToBase64=async function(e){const t=new DOMParser;return await Promise.all(e.map(async e=>{const i=t.parseFromString(e,"image/svg+xml"),n=i.querySelectorAll("image");for(const t of n){const e=t.getAttribute("href")||t.getAttribute("xlink:href");if(e&&!e.startsWith("data:"))try{const i=parseFloat(t.getAttribute("width"))||0,n=parseFloat(t.getAttribute("height"))||0;if(i>0&&n>0){const o=await OrgChart._resizeAndConvert(e,i,n);t.setAttribute("href",o),t.removeAttributeNS("http://www.w3.org/1999/xlink","href")}}catch(o){console.error("Failed to process image:",e,o)}}return(new XMLSerializer).serializeToString(i)}))},OrgChart._resizeAndConvert=function(e,t,i){return new Promise((n,o)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{const e=document.createElement("canvas"),o=e.getContext("2d"),a=Math.min(t/r.width,i/r.height),l=r.width*a,s=r.height*a;e.width=l,e.height=s,o.drawImage(r,0,0,l,s),n(e.toDataURL("image/png"))},r.onerror=o,r.src=e})},OrgChart.prototype.zoom=function(e,t,i,n){var o=this.getViewBox().slice(0),r=o,a=o[2],l=o[3];!0===e?(o[2]=o[2]/OrgChart.SCALE_FACTOR,o[3]=o[3]/OrgChart.SCALE_FACTOR):!1===e?(o[2]=o[2]*OrgChart.SCALE_FACTOR,o[3]=o[3]*OrgChart.SCALE_FACTOR):(o[2]=o[2]/e,o[3]=o[3]/e),t||(t=[50,50]),o[0]=r[0]-(o[2]-a)/(100/t[0]),o[1]=r[1]-(o[3]-l)/(100/t[1]);var s=this.getScale(o);if(o[2]=this.width()/s,o[3]=this.height()/s,!0===e&&s<this.config.scaleMax||!1===e&&s>this.config.scaleMin||0!=e&&1!=e&&s<this.config.scaleMax&&s>this.config.scaleMin){this._hideBeforeAnimation();var c=this;i?(clearTimeout(c._timeout),OrgChart.animate(this.getSvg(),{viewbox:this.getViewBox()},{viewbox:o},this.config.anim.duration,this.config.anim.func,function(){clearTimeout(c._timeout),c._timeout=setTimeout(function(){c._draw(!0,OrgChart.action.zoom,null,n)},500)})):(this.setViewBox(o),clearTimeout(c._timeout),c._timeout=setTimeout(function(){c._draw(!0,OrgChart.action.zoom,null,n)},500))}},OrgChart._ai=function(e){this.instance=e,this.sessionId=null},OrgChart._ai.prototype.prompt=function(e,t){var i=this;(e=e.trim())&&(this.sessionId?i._prompt([{Role:"user",Text:e}],t):this.setContext(function(){i._prompt([{Role:"user",Text:e}],t)}))},OrgChart._ai.prototype._prompt=function(e,t){var i=this,n=[];for(var o of OrgChart.AI_SYSTEM_MESSAGES)n.push({Role:"system",Text:o});var r=this.instance.config.serverUrl+`/OrgChartJSAI/Prompt?client_messages=${encodeURIComponent(JSON.stringify(e))}&system_messages=${encodeURIComponent(JSON.stringify(n))}&sessionId=${this.sessionId}`;const a=new EventSource(r);a.onmessage=function(e){var n=JSON.parse(e.data);"end"==n.kind&&a.close(),"text"==n.kind&&(n.text,t&&t(n.text)),"assistant-message-with-tools"==n.kind?i.toolCalls(n.message,t):"error"==n.kind&&console.error(n.text)},a.onerror=function(e){console.error(e),a.close()}},OrgChart._ai.prototype.setContext=function(e){if(this.instance&&this.instance.config.enableAI&&this.instance.aiUI.canSetContext){this.sessionId=this.instance._event_id;var t=this.instance.config.serverUrl+"/OrgChartJSAI/SetContext",i=this.instance.config.aiChatTools.slice();for(var n of i)null==n.functionParameters&&(n.functionParameters=null),n.functionParameters=JSON.stringify(n.functionParameters);fetch(t,{method:"post",headers:{"Content-Type":"application/json","x-request-type":"ajax"},body:JSON.stringify({context:this.instance.config.nodes,sessionId:this.sessionId,chatTools:i})}).then(function(){e&&e()}).catch(function(e){console.error(e)})}},OrgChart._ai.prototype.toolCalls=function(e,t){var i=this,n={toolCalls:e.ToolCalls};OrgChart.events.publish("ai-tool-calls",[this.instance,n]);var o=[],r=[],a=[],l=[],s=[],c=null,d=null,h=null,p=null,u=null;for(var f of n.toolCalls)null==f.FunctionResult&&("removeNode"==f.FunctionName?o.push(f):"addNode"==f.FunctionName?r.push(f):"updateNode"==f.FunctionName?a.push(f):"select"==f.FunctionName?l.push(f):"deselect"==f.FunctionName?s.push(f):"exportToPDF"==f.FunctionName?c=f:"changeTemplate"==f.FunctionName?d=f:"addSlink"==f.FunctionName?h=f:"removeSlink"==f.FunctionName?p=f:"fit"==f.FunctionName&&(u=f));var g=!1;if(d&&(g=!0,f.FunctionResult="ok",this.instance.config.template=f.FunctionArguments.templateName),h){var m=this.instance.getNode(f.FunctionArguments.employeeId1),x=this.instance.getNode(f.FunctionArguments.employeeId2);m&&x&&m!=x?(g=!0,this.instance.addSlink(m.id,x.id),f.FunctionResult="ok"):f.FunctionResult=`Cannot add link between ${f.FunctionArguments.employeeId1} and ${f.FunctionArguments.employeeId2}`}if(p){m=this.instance.getNode(f.FunctionArguments.employeeId1),x=this.instance.getNode(f.FunctionArguments.employeeId2);m&&x&&m!=x?(g=!0,this.instance.removeSlink(m.id,x.id),f.FunctionResult="ok"):f.FunctionResult=`Cannot remove link between ${f.FunctionArguments.employeeId1} and ${f.FunctionArguments.employeeId2}`}for(var f of(u&&(this.instance.fit(),g=!1),o))g=!0,f.FunctionResult="ok",this.instance.remove(f.FunctionArguments.id);for(var f of r){g=!0,f.FunctionResult="ok",(b=JSON.parse(JSON.stringify(f.FunctionArguments))).isAssistant&&(b.tags=["assistant"]),delete b.isAssistant,OrgChart.isNEU(b.id)&&(b.id=this.instance.generateId()),this.instance.add(b)}for(var f of a){g=!0,f.FunctionResult="ok";var b=this.instance.get(f.FunctionArguments.id);for(var y in f.FunctionArguments)"id"!=y&&null!=f.FunctionArguments[y]&&(b[y]=f.FunctionArguments[y]);this.instance.update(b)}for(var f of l)for(var v of(f.FunctionResult="ok",f.FunctionArguments.ids)){var _=f.FunctionArguments.color;_||(_="#FFCA28");var w=this.instance.getNodeElement(v).firstChild;w&&(w.style.stroke=f.FunctionArguments.color,w.style.strokeWidth=5)}var deselect=function(){for(var e of s)if(e.FunctionResult="ok",e.FunctionArguments.ids)for(var t of e.FunctionArguments.ids){var n=i.instance.getNodeElement(t).firstChild;n&&(n.style.stroke="#aeaeae",n.style.strokeWidth=1)}else g=!0};g?(this.setContext(),this.instance.draw(OrgChart.action.update,void 0,deselect)):deselect();var prompt=function(){var e=[];for(var o of n.toolCalls)e.push({Role:"tool",Text:o.FunctionResult,Id:o.Id});i._prompt(e,t)};c?this.chartInstance.exportToPDF({},function(){f.FunctionResult="ok",OrgChart._downloadFile("application/pdf",response,"OrgChart.pdf",!1,"pdf"),prompt()}):prompt()},OrgChart.aiUI=function(){this.instance=null,this.interval=null,this.canSetContext=!1,this.element=null,this.inputElement=null,this.btnSendElement=null,this.messagesElement=null,Object.defineProperty(this,"width",{get(){return this.isVisible()?this.element.offsetWidth:0}})},OrgChart.aiUI.title="AI for OrgChart JS",OrgChart.aiUI.prototype.init=function(e){this.instance=e;var t=this,i=this.instance.element.querySelector("[data-boc-ai-button]");i&&i.addEventListener("click",function(e){t.show()})},OrgChart.aiUI.prototype.isVisible=function(){return!(!this.element||"none"==this.element.style.display)},OrgChart.aiUI.prototype.show=function(e,t){this.instance.pdfPreviewUI.hide(),this.instance.svgPreviewUI.hide(),this.instance.pngPreviewUI.hide(),this.instance.powerPointPreviewUI.hide(),this.instance.aiUI.hide(),this.instance.orgScribeUI.hide(),this._create(),this.element.style.display="",this.canSetContext||(this.canSetContext=!0,this.instance._ai.setContext());var i=this;t||(this.timeout&&clearInterval(this.interval),this.interval=OrgChart.animate(this.element,{opacity:0},{opacity:1},300,OrgChart.anim.outSin,function(){e||i.inputElement.focus()}))},OrgChart.aiUI.prototype._create=function(){if(!this.element){var e=this,t="inp_"+this.instance.generateId();this.element=document.createElement("div"),this.element.setAttribute("data-boc-ai-form",""),this.element.style.opacity=0,this.element.classList.add("boc-ai-form"),this.element.classList.add(this.instance.config.mode),this.element.innerHTML=`<div class="boc-ai-container">\n <div data-boc-ai-close class="boc-ai-close">${OrgChart.icon.x(20,20,"#aeaeae")}</div>\n <div class="boc-ai-middle boc-ai-start">\n <div data-boc-ai-messages class="boc-ai-messages">\n <img src="https://orgchartjs.balkan.app/logo.svg"> \n <span>\n ${OrgChart.aiUI.title}\n </span>\n </div> \n </div>\n <div>\n <div class="boc-input" data-boc-input="">\n <label for="${t}">Message OrgChart</label>\n <input maxlength="256" id="${t}" name="${t}" type="text" value="" autocomplete="off"> \n <div data-boc-ai-send class="boc-ai-send">\n ${OrgChart.icon.send(20,20,"#aeaeae")}\n </div> \n </div>\n \n </div>\n </div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display="block",OrgChart.input.init(this.element);var i=this.instance.leftElement.querySelector("[data-boc-ai-close] svg");i&&i.addEventListener("click",function(t){e.hide()}),this.inputElement=this.element.querySelector("#"+t),this.btnSendElement=this.inputElement.parentNode.querySelector("[data-boc-ai-send]"),this.messagesElement=this.element.querySelector("[data-boc-ai-messages]"),this.inputElement.addEventListener("input",function(e){this.value?this.parentNode.querySelector(".boc-ai-send").classList.add("boc-ai-send-cansend"):this.parentNode.querySelector(".boc-ai-send").classList.remove("boc-ai-send-cansend")}),this.element.querySelector("[data-boc-ai-send]").addEventListener("click",function(t){e.sendUserInput()}),this.inputElement.addEventListener("keyup",function(t){var i=window.event?window.event:t;switch(e.canSetContext||(e.canSetContext=!0,e.instance._ai.setContext()),i.key){case"Enter":e.sendUserInput();break;case"ArrowUp":if((n=OrgChart.aiUI._getSuggestions()).length)-1==(o=n.indexOf(e.inputElement.value))?o=n.length-1:o--,-1==o&&(o=n.length-1),e.inputElement.value=n[o];break;case"ArrowDown":var n,o;if((n=OrgChart.aiUI._getSuggestions()).length)-1==(o=n.indexOf(e.inputElement.value))?o=0:o++,o==n.length&&(o=0),e.inputElement.value=n[o]}})}},OrgChart.aiUI.prototype.addUserMessage=function(e){this.btnSendElement.classList.remove("boc-ai-send-cansend");var t=this.element.querySelector(".boc-ai-start");t&&(t.classList.remove("boc-ai-start"),this.messagesElement.innerHTML="");var i=document.createElement("div");i.classList.add("boc-ai-user-message"),i.innerHTML=`<span class="boc-inner-user-message">${e}</span>`,this.messagesElement.appendChild(i)},OrgChart.aiUI.prototype.hide=function(){this.instance.leftElement.style.display="none",this.element&&(this.element.parentNode.removeChild(this.element),this.element=null)},OrgChart.aiUI.prototype.sendUserInput=function(){var e=this;OrgChart.aiUI._addSuggestion(this.inputElement.value),this.addUserMessage(this.inputElement.value);var t=document.createElement("div");t.classList.add("boc-ai-assistant-message");var i=document.createElement("span");i.classList.add("boc-inner-assistant-message"),t.appendChild(i),this.messagesElement.appendChild(t);var n="";this.instance._ai.prompt(this.inputElement.value,function(t){n+=t,i.innerHTML=marked.parse(n);var o=e.element.querySelector(".boc-ai-middle");o.scrollTo(0,o.scrollHeight)}),this.inputElement.value=""},OrgChart.aiUI._addSuggestion=function(e){e=e.trim();var t=OrgChart.aiUI._getSuggestions(),i=t.indexOf(e);-1!=i&&t.splice(i,1),t.push(e),localStorage.setItem("suggestions",JSON.stringify(t))},OrgChart.aiUI._getSuggestions=function(){var e=localStorage.getItem("suggestions");return e=e?JSON.parse(e):[]},void 0===OrgChart&&(OrgChart={}),OrgChart.events.on("init",function(e,t){if(e.config.keyNavigation&&(window.addEventListener("keydown",function(){e._windowKeyDownHandler.apply(e,[this,arguments[0]])}),OrgChart.isNEU(e._keyNavigationActiveNodeId)&&e.roots&&e.roots.length)){var i=e.roots[0].id;OrgChart.isNEU(e.config.keyNavigation.focusId)||(i=e.config.keyNavigation.focusId),e._keyNavigationActiveNodeId=i,e.center(e._keyNavigationActiveNodeId)}}),OrgChart.prototype._windowKeyDownHandler=function(e,t){for(var i=t.target,n=null;i&&i!=this.element;){if(i.hasAttribute&&i.hasAttribute(OrgChart.attr.node_id)){n=i.getAttribute(OrgChart.attr.node_id);break}i=i.parentNode}if(i){var o=n?this.getNode(n):null,r={node:o,data:n?this.get(n):null,event:t};if(!1!==OrgChart.events.publish("key-down",[this,r])&&o)if("KeyF"==t.code)this.searchUI.find("");else if("ArrowRight"==t.code||o.isAssistant&&"ArrowDown"==t.code||o.isPartner&&"ArrowDown"==t.code){if(s=this.getNode(o.pid)){var a=s.childrenIds.indexOf(o.id);if(++a<s.childrenIds.length){var l=s.childrenIds[a];this._keyNavigationActiveNodeId=l,this.center(l)}}}else if("ArrowLeft"==t.code){if(s=this.getNode(o.pid)){a=s.childrenIds.indexOf(o.id);if(--a>=0){l=s.childrenIds[a];this._keyNavigationActiveNodeId=l,this.center(l)}}}else if("ArrowUp"==t.code){var s;if(s=this.getNode(o.pid)){l=s.id;if(o.isAssistant||s.hasAssistants||o.isPartner||s.hasPartners){a=s.childrenIds.indexOf(o.id);--a>=0&&(l=s.childrenIds[a])}this._keyNavigationActiveNodeId=l,this.center(l)}}else if("ArrowDown"==t.code)o.childrenIds.length&&(this._keyNavigationActiveNodeId=o.childrenIds[0],this.center(o.childrenIds[0]));else if("Space"==t.code){var c=i.getAttribute(OrgChart.attr.node_id);return void this.toggleExpandCollapse(c,t)}}},OrgChart.events.on("redraw",function(e,t){e.config.keyNavigation&&OrgChart._keyNavigation(e)}),OrgChart.events.on("click",function(e,t){e.config&&e.config.keyNavigation&&(e._keyNavigationActiveNodeId=t.node.id,e.center(t.node.id))}),OrgChart._keyNavigation=function(e){var t=e.element.querySelector(":focus");if(t&&t.parentElement&&t.parentElement.hasAttribute(OrgChart.attr.node_id)){var i=t.parentElement;(o=(n=t).querySelector("title"))&&o.parentNode.removeChild(o),n.removeAttribute("tabindex")}if(!OrgChart.isNEU(e._keyNavigationActiveNodeId)&&((i=e.getNodeElement(e._keyNavigationActiveNodeId))&&i.children.length)){var n;(n=i.children[0]).setAttribute("tabindex",2);var o,r={text:"",id:e._keyNavigationActiveNodeId};if(OrgChart.events.publish("screen-reader-text",[e,r]),!OrgChart.isNEU(r.text))(o=document.createElementNS("http://www.w3.org/2000/svg","title")).innerHTML=r.text,n.appendChild(o);OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&e.searchUI.hide(),n.focus()}},OrgChart.ui.css=function(){return'<style data-boc-styles>.boc-ai-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-ai-form{color:#aeaeae}.boc-light .boc-ai-form{color:#757575}.boc-ai-messages{font-size:16px}@media screen and (max-width:500px){.boc-ai-form{width:100%}}.boc-dark .boc-ai-form{background-color:#252526}.boc-light .boc-ai-form{background-color:#fff}.boc-ai-button{font-size:32px;position:absolute;top:20px;left:20px;cursor:pointer;padding:12px;border-radius:50%;user-select:none}.boc-dark .boc-ai-button{color:#aeaeae}.boc-light .boc-ai-button{color:#757575}.boc-ai-button:hover{color:#fff;background-color:#039be5}.boc-ai-container{padding:0 14px;display:grid;grid-template-rows:40px auto 80px;gap:10px;height:100%}.boc-ai-container .boc-input input{padding-right:50px}.boc-ai-close{text-align:end;margin-top:20px}.boc-ai-close svg{cursor:pointer}.boc-ai-start{text-align:center;display:flex;justify-content:center;align-items:center;user-select:none}.boc-ai-start span{font-weight:700;font-size:32px;font:"Segoe UI",Arial,sans-serif;background:linear-gradient(90deg,#039be5 28%,#f57c00,#ffca28);color:transparent!important;background-clip:text;display:inline-block;padding:10px 0}.boc-ai-send.boc-ai-send-cansend{cursor:pointer;background-color:#039be5}.boc-ai-send.boc-ai-send-cansend:hover{background-color:#f57c00}.boc-ai-send.boc-ai-send-cansend:active{background-color:#ffca28}.boc-ai-send{background-color:transparent;position:absolute;right:7px;top:7px;width:38px;height:38px;border-radius:50%;text-align:center;background-repeat:no-repeat;background-position:center;background-size:20px 20px}.boc-ai-send svg{display:block;margin:auto;height:100%}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.boc-ai-middle{overflow-y:auto}.boc-ai-middle::-webkit-scrollbar{display:none}.boc-button{background-color:#039be5;cursor:pointer;width:calc(100%);height:50px;color:#fff;padding-top:5px;padding-left:7px;padding-right:7px;text-align:center;text-transform:uppercase;border:1px solid #3fc0ff;display:inline-block;border-radius:5px}.boc-button.orange{background-color:#f57c00;border:1px solid #ffa03e}.boc-button.yellow{background-color:#ffca28;border:1px solid #ffdf7c}.boc-button.lower{text-transform:unset}.boc-button.transparent{background-color:transparent}.boc-button:hover{background-color:#35afea}.boc-button.orange:hover{background-color:#f79632}.boc-button.yellow:hover{background-color:#ffd452}.boc-button:active{transform:matrix(.98,0,0,.98,0,0)}.boc-button-icon{text-align:initial;cursor:pointer;margin-bottom:15px;color:#039be5}.boc-dark .boc-button-icon:hover{background-color:#2d2d2d}.boc-light .boc-button-icon:hover{background-color:#ececec}.boc-button-icon>img{height:24px;width:24px;vertical-align:middle;padding:7px}.boc-button:focus{outline:0}.boc-button-icon>img{filter:invert(46%) sepia(66%) saturate(2530%) hue-rotate(171deg) brightness(95%) contrast(98%)}.boc-light .boc-button.transparent{color:#039be5}.boc-light .boc-button.transparent:hover{color:#fff}.boc-button-loading{background-color:transparent;cursor:pointer;width:calc(100% - 2px);height:50px;color:#fff;text-align:center;text-transform:uppercase;border:1px solid #027cb7;display:inline-block;display:flex;justify-content:center;align-items:center;display:none}.boc-button-loading .boc-loading-dots div{margin:0 10px}.boc-link-boc-button{position:absolute;right:10px;top:-1px}@media screen and (max-width:1000px){.boc-link-boc-button{right:50px}}[data-boc-input-disabled] .boc-link-boc-button{display:none}[dir=rtl] .boc-link-boc-button{left:10px;right:unset}.boc-img-button{width:48px;height:48px;cursor:pointer;border-radius:50%;background-color:#039be5;background-repeat:no-repeat;background-size:24px 24px;background-position:center center;margin:3px;display:inline-block}.boc-img-button:hover{background-color:#f57c00}.boc-checkbox{display:block;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.boc-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.boc-checkbox-checkmark{position:absolute;top:0;left:0;height:25px;width:25px;border-radius:5px}.boc-dark [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-dark [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark,.boc-light [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-light [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#aeaeae!important}[data-boc-input-disabled].boc-checkbox{cursor:default}[dir=rtl] .boc-checkbox-checkmark{right:0}[dir=rtl] .boc-checkbox{padding-left:unset;padding-right:35px}.boc-dark .boc-checkbox-checkmark{background-color:#333;border:1px solid #5b5b5b}.boc-light .boc-checkbox-checkmark{background-color:#fff;border:1px solid #c7c7c7}.boc-dark .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#3c3c3c}.boc-light .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#f8f9f9}.boc-dark .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-light .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-checkbox-checkmark:after{content:"";position:absolute;display:none}.boc-checkbox input:checked~.boc-checkbox-checkmark:after{display:block}.boc-checkbox .boc-checkbox-checkmark:after{left:9px;top:5px;width:5px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.boc-controls{display:flex;gap:7px;position:absolute}.boc-controls-top{left:unset;top:15px;right:50%;bottom:unset;transform:translateX(50%);flex-direction:row}.boc-controls-bottom{left:unset;top:unset;right:50%;bottom:15px;transform:translateX(50%);flex-direction:row}.boc-controls-left{left:15px;top:50%;right:unset;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-right{left:unset;top:50%;right:15px;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-bottom_right,.boc-controls-right_bottom{left:unset;top:unset;right:15px;bottom:15px;flex-direction:row}.boc-controls-right_bottom{flex-direction:column}.boc-controls-right_top,.boc-controls-top_right{left:unset;top:15px;right:15px;bottom:unset;flex-direction:row}.boc-controls-right_top{flex-direction:column}.boc-controls-bottom_left,.boc-controls-left_bottom{left:15px;top:unset;right:unset;bottom:15px;flex-direction:row}.boc-controls-left_bottom{flex-direction:column}.boc-controls-left_top,.boc-controls-top_left{left:15px;top:15px;right:unset;bottom:unset;flex-direction:row}.boc-controls-left_top{flex-direction:column}.boc-controls [data-control-id] svg{display:block;margin:0 auto}.boc-controls [data-control-id]{display:flex;align-items:center;cursor:pointer;width:60px;height:60px;border-radius:30px;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.boc-light .boc-controls [data-control-id]{background:rgba(255,255,255,.2);border:1px solid #c7c7c7}.boc-dark .boc-controls [data-control-id]{background:rgba(30,30,30,.2);border:1px solid #5b5b5b}.boc-controls [data-control-id]:hover{background-color:#0074e8}.boc-controls [data-control-id]:hover svg{filter:brightness(0) invert(1)}.boc-controls [data-control-id].boc-control-selected{background-color:#0074e8}.boc-controls [data-control-id].boc-control-selected svg{filter:brightness(0) invert(1)}.boc-filter{user-select:none}.boc-light .boc-filter{color:#757575}.boc-dark .boc-filter{color:#ccc}.boc-filter>div>div{display:inline-block;padding:3px 10px;cursor:pointer}.boc-filter-menu fieldset,.boc-filter>div,.filter-field-selected{border-radius:5px}.boc-filter-menu fieldset{overflow-y:auto;max-height:300px}.boc-filter>div.boc-filter-menu{padding:10px}.boc-light .boc-filter>div.boc-filter-menu,.boc-light .filter-field-selected{background-color:#f8f9f9}.boc-dark .boc-filter>div.boc-filter-menu,.boc-dark .filter-field-selected{background-color:#3c3c3c}.boc-light .boc-filter>div{background-color:#eee}.boc-dark .boc-filter>div{background-color:#333}.boc-form-perspective{transform-style:preserve-3d;perspective:500px;position:absolute;top:32px}.boc-form{box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;padding:14px;transform-origin:top center;user-select:none;display:none;position:relative;max-height:calc(100vh - 100px);overflow-y:auto;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.boc-form-bottom{border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:5px;border-top-right-radius:5px}.boc-form .separator{margin:0 10px}@media screen and (max-width:1000px){.boc-form-perspective{min-width:100%;max-height:calc(100% - 32px);left:unset!important;right:unset!important;transform:none!important}.boc-form .set{max-height:calc(100vh - 74px)}.boc-form-fieldset{max-width:unset!important}}.boc-light .boc-form .separator{border-bottom:1px solid #c7c7c7}.boc-dark .boc-form .separator{border-bottom:1px solid #5b5b5b}.boc-light .boc-form{background-color:#fff}.boc-dark .boc-form{background-color:#252526}.boc-item{padding:6px 12px 6px 12px;display:flex;flex-direction:row}.boc-light .boc-form .boc-item.selected,.boc-light .boc-form .boc-item:hover{background-color:#0074e8;color:#fff}.boc-dark .boc-form .boc-item.selected,.boc-dark .boc-form .boc-item:hover{background-color:#094771;color:#fff}.boc-item.selected img,.boc-item:hover img{filter:invert(100%)}.boc-item.selected img{visibility:visible!important}.boc-form-fieldset{display:flex;flex-wrap:wrap;margin:0!important}.boc-form-field{flex:1 0 21%;margin:3px;min-width:200px}.boc-form-field-100{flex:1 0 96%;margin:3px;min-width:200px}.boc-input{position:relative}.boc-input>input,.boc-input>select{height:50px;padding:18px 10px 2px 9px;width:100%;box-sizing:border-box;border-style:solid;border-width:1px}.boc-input select{height:50px;padding:20px 5px 4px 5px}[data-boc-input-disabled].boc-input>input,[data-boc-input-disabled].boc-input>select{border-color:transparent!important}.boc-light [data-boc-input-disabled]>input,.boc-light [data-boc-input-disabled]>select{background-color:#fff!important}.boc-dark [data-boc-input-disabled]>input,.boc-dark [data-boc-input-disabled]>select{background-color:#252526!important}[data-boc-input-disabled]>select{appearance:none;padding-left:8px}.boc-input>label{display:inline-block;position:absolute;padding-left:10px;padding-right:10px;color:#acacac;cursor:text;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-ms-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1 ease-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:initial;text-align:initial;white-space:nowrap}.boc-input>label{top:12px;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 14px)}.boc-input>label.focused,.boc-input>label.hasval{top:-1px}.boc-input>input,.boc-input>select{outline:0;border-radius:5px}.boc-dark .boc-input>label.focused,.boc-light .boc-input>label.focused{color:#039be5}.boc-dark .boc-input>input,.boc-dark .boc-input>select{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-input>input,.boc-light .boc-input>select{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-light .boc-input>input:focus,.boc-light .boc-input>select:focus{border-color:#039be5;background-color:#f8f9f9}.boc-dark .boc-input>input:focus,.boc-dark .boc-input>select:focus{border-color:#039be5;background-color:#3c3c3c}.boc-dark .boc-input>input.boc-validation-error,.boc-dark .boc-input>select.boc-validation-error,.boc-light .boc-input>input.boc-validation-error,.boc-light .boc-input>select.boc-validation-error{border-color:#ca2a2a}.boc-dark .boc-validation-error-message,.boc-light .boc-validation-error-message{color:#ca2a2a}.boc-input select.multiple{height:initial}.boc-link{color:#039be5;cursor:pointer;text-decoration:underline}.boc-link:hover{color:#f57c00}.boc-dark ::-webkit-scrollbar,.boc-light ::-webkit-scrollbar{width:15px;height:15px}.boc-dark ::-webkit-scrollbar-corner{background:#1e1e1e}.boc-dark ::-webkit-scrollbar-track{background:#1e1e1e;border-left:1px solid #333;border-top:1px solid #333}.boc-dark ::-webkit-scrollbar-thumb{background:#424242}.boc-dark ::-webkit-scrollbar-thumb:hover{background:#4f4f4f}.boc-dark ::-webkit-scrollbar-thumb:active{background:#5e5e5e}.boc-light ::-webkit-scrollbar-corner{background:#fff}.boc-light ::-webkit-scrollbar-track{background:#fff;border-left:1px solid #ddd;border-top:1px solid #ddd}.boc-light ::-webkit-scrollbar-thumb{background:#c1c1c1}.boc-light ::-webkit-scrollbar-thumb:hover{background:#929292}.boc-light ::-webkit-scrollbar-thumb:active{background:#666}.boc-edit-form{position:fixed;top:0;right:0;height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:1000px){.boc-edit-form{width:100%}}.boc-dark .boc-edit-form{background-color:#252526}.boc-light .boc-edit-form{background-color:#fff}.boc-edit-form-header{height:200px;text-align:center;border-radius:10px}.export-service .boc-edit-form-header{border-radius:unset}.boc-edit-form-title{color:#fff;margin:0;padding:14px 17px 7px 17px}.boc-edit-form-avatar{border-radius:50%;width:150px;height:150px;position:absolute;top:75px;border:5px solid #fff;left:50%;transform:translateX(-50%);background-color:#cacaca;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0}.boc-edit-form-close{position:absolute;right:14px;top:14px;width:34px;height:34px;cursor:pointer}.boc-edit-form-fields{flex-grow:1;overflow-y:auto;overflow-x:hidden}.boc-edit-form-fields-inner{margin:0 7px 20px 7px}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.dark .boc-inner-user-message{background-color:#333}.light .boc-inner-user-message{background-color:#f9f9f9}.boc-export-form{box-shadow:rgba(0,0,0,.2) 0 -6px 6px 0,rgba(0,0,0,.19) 0 -13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-export-form{color:#aeaeae;background-color:#252526}.boc-light .boc-export-form{color:#757575;background-color:#eee}@media screen and (max-width:500px){.boc-export-form{width:100%}}.boc-export-container{display:grid;grid-template-rows:40px auto;gap:10px;height:100%}.boc-export-page{width:100%;border:1px solid #aeaeae;display:flex;justify-content:center;align-items:center;user-select:none;position:relative}.boc-export-selected{border:1px solid #ffca28}.boc-export-middle{overflow-y:auto;overflow-x:hidden;padding:0 3px 0 0;margin-bottom:10px}.boc-export-btns-inner{padding-top:14px;display:flex;justify-content:space-between}.boc-export-left{justify-content:flex-start}.boc-export-right{justify-content:flex-end}.boc-export-left,.boc-export-right{user-select:none}.boc-export-select{position:absolute;top:0;left:0;text-align:center;width:100%}.boc-export-child-buttons{position:absolute;bottom:7px;left:7px;display:none}.boc-export-page:hover .boc-export-child-buttons{display:initial}.boc-export-parent-buttons{position:absolute;top:7px;left:7px;display:none}.boc-export-page:hover .boc-export-parent-buttons{display:initial}.boc-export-remove-buttons{position:absolute;bottom:7px;right:7px;display:none}.boc-export-page:hover .boc-export-remove-buttons{display:initial}.boc-export-child-buttons button,.boc-export-parent-buttons button{width:23px}.boc-export-profiletree-buttons{position:absolute;top:7px;right:7px;display:none}.boc-export-page:hover .boc-export-profiletree-buttons{display:initial}.boc-export-middle-inner{display:grid;gap:10px;margin:0 10px}.boc-export-btns-inner{margin:0 10px}.boc-chart-menu{opacity:0;display:inline-block;position:absolute;text-align:left;user-select:none;min-width:270px;box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif;border-radius:10px}.boc-chart-menu>div:hover img{filter:invert(100%)}.boc-chart-menu [data-item]{text-align:start;padding:7px 10px}.boc-dark .boc-chart-menu [data-item]{background-color:#252526;color:#acacac;border-bottom:1px solid #333}.boc-dark .boc-chart-menu [data-item]:hover{background-color:#094771!important;color:#fff!important}.boc-dark .boc-chart-menu [data-item]:hover svg{filter:brightness(0) invert(1)}.boc-light .boc-chart-menu [data-item]{background-color:#fff;color:#333;border-bottom:1px solid #c7c7c7}.boc-light .boc-chart-menu [data-item]:hover{background-color:#0074e8!important;color:#fff!important}.boc-light .boc-chart-menu [data-item]:hover svg{filter:brightness(0) invert(1)}.boc-chart-menu [data-item] svg{vertical-align:middle}.boc-chart-menu [data-item]:first-child{border-top-left-radius:7px;border-top-right-radius:7px}.boc-chart-menu [data-item]:last-child{border-bottom-width:0;border-bottom-style:none;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.boc-orgscribe-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:500px){.boc-orgscribe-form{width:100%}}.boc-dark .boc-orgscribe-form{background-color:#252526}.boc-light .boc-orgscribe-form{background-color:#fff}.boc-orgscribe-container{padding:0 14px;display:grid;grid-template-rows:40px auto 10px;gap:10px;height:100%}.boc-orgscribe-container .boc-input input{padding-right:50px}.boc-orgscribe-close{text-align:end;margin-top:20px}.boc-orgscribe-close svg{cursor:pointer}.boc-orgscribe-txt{width:100%;height:100%;box-sizing:border-box;border-style:solid;border-width:1px;outline:0;border-radius:5px;font-size:24px}.boc-dark .boc-orgscribe-txt{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-orgscribe-txt{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-search{position:absolute}@media screen and (max-width:500px){.boc-search{width:calc(100% - 30px);left:15px}}.boc-search .boc-input{margin-bottom:0}.boc-search-input{color:#7a7a7a;width:100%;border:none;outline:0;padding-top:10px;padding-right:47px}.boc-search-image-td{width:43px}.boc-search-text-td{padding-inline-end:7px;line-height:15px;text-align:start}.boc-search table{box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;margin:0 3.5px 0 3.5px;width:calc(100% - 7px);border-radius:7px}.boc-search table tr:first-child td:first-child{border-top-left-radius:7px}.boc-search table tr:first-child td:last-child{border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:first-child{border-top-left-radius:unset;border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:last-child{border-top-right-radius:unset;border-top-left-radius:7px}.boc-search table tr:last-child td:first-child{border-bottom-left-radius:7px}.boc-search table tr:last-child td:last-child{border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:first-child{border-bottom-left-radius:unset;border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:last-child{border-bottom-right-radius:unset;border-bottom-left-radius:7px}.boc-dark .boc-search table{background-color:#252526;color:#acacac}.boc-search [data-search-item-id]{cursor:pointer}.boc-search-photo{margin:7px 7px 0 7px;width:32px;height:32px;background-size:cover;background-position:top center;border-radius:50%;display:inline-block;border:1px solid #8c8c8c}.boc-search [data-search-item-id]:hover .boc-link{color:#ffca28}.boc-search [data-search-item-id]:hover .boc-link:hover{color:#f57c00}.boc-dark .boc-search [data-search-item-id] td{border-top:1px solid #333}.boc-dark .boc-search [data-search-item-id]:hover,.boc-dark .boc-search [data-selected=yes]{background-color:#094771;color:#fff}.boc-light .boc-search table{background-color:#fff;color:#333}.boc-light .boc-search [data-search-item-id] td{border-top:1px solid #c7c7c7}.boc-light .boc-search [data-search-item-id]:hover,.boc-light .boc-search [data-selected=yes]{background-color:#0074e8;color:#fff}.boc-search [data-search-item-id]:first-child td{border-top:unset}.boc-ripple-container{position:absolute;top:0;right:0;bottom:0;left:0}.boc-drag-over rect{opacity:.5}.boc-ripple-container span{transform:scale(0);border-radius:100%;position:absolute;opacity:.75;background-color:#fff;animation:boc-ripple 1s}@-moz-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-webkit-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-o-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@keyframes boc-ripple{to{opacity:0;transform:scale(2)}}.boc-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.boc-slider:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.boc-slider.round{border-radius:24px}.boc-slider.round:before{border-radius:50%}svg text:hover{cursor:default}svg.boc-cursor-grab,svg.boc-cursor-grab text:hover{cursor:grab}svg.boc-cursor-nodrop,svg.boc-cursor-nodrop text:hover{cursor:no-drop}svg.boc-cursor-copy,svg.boc-cursor-copy text:hover{cursor:copy}svg.boc-cursor-move,svg.boc-cursor-move text:hover{cursor:move}#boc-close-btn:focus,#boc-close-btn:hover{color:#000;text-decoration:none;cursor:pointer}#boc-id-select:focus{outline:.5px solid #aeaeae}#boc-sampleDialog #title:hover{cursor:default;background:gray}.boc-light{background-color:#fff;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark{background-color:#1e1e1e;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark input,.boc-dark select,.boc-light input,.boc-light select{font:16px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark h1,.boc-light h1{font-size:30px;line-height:1}.boc-light [data-boc-content]::backdrop{background-color:#fff}.boc-dark [data-boc-content]::backdrop{background-color:#1e1e1e}.boc-dark text,.boc-light text{user-select:none}.boc-edit-form{position:absolute;border-radius:10px}.export-service .boc-edit-form{border-radius:unset}.boc-dark .boc-edit-form{color:#acacac}.boc-light .boc-edit-form{color:#333}.boc-dark ::-webkit-calendar-picker-indicator{filter:invert(70%)}.boc-light ::-webkit-calendar-picker-indicator{filter:invert(50%)}.boc-edit-form-instruments{margin:42px 10px 0 10px;text-align:center;min-height:70px}.boc-img-button svg{position:relative;top:12px}.boc-light .boc-toolbar-container svg circle,.boc-light .boc-toolbar-container svg line,.boc-light .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg circle,.boc-dark .boc-toolbar-container svg line,.boc-dark .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg rect{fill:#252526!important}.boc-dark .boc-toolbar-container [data-tlbr=minus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-bottom:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr=plus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-top:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr]>svg{border:1px solid #5b5b5b!important;background-color:#252526!important}.boc-toolbar-layout{height:123px;padding-top:20px;position:absolute;width:100%;left:"0";bottom:"-145px"}.boc-light .boc-toolbar-layout{border-top:1px solid #c7c7c7;background-color:#f9f9f9}.boc-dark .boc-toolbar-layout{border-top:1px solid #5b5b5b;background-color:#2b2b2b}.boc-dotted-connector path{stroke-dasharray:7}.boc-undo-redo{position:absolute;top:23px;left:23px}@media screen and (max-width:500px){.boc-undo-redo{position:absolute;top:83px;left:23px}}.boc-light .boc-undo-redo path{fill:#cacaca}.boc-dark .boc-undo-redo path{fill:#5b5b5b}.boc-light .boc-undo-redo .boc-ur-clickable path{fill:#9c9c9c}.boc-dark .boc-undo-redo .boc-ur-clickable path{fill:#8c8c8c}.boc-undo-redo .boc-ur-clickable rect{cursor:pointer}.boc-undo-redo>span{position:relative;display:inline-block;user-select:none}.boc-undo-redo .boc-undo-i{left:-6px;top:-6px}.boc-undo-redo .boc-redo-i{right:-6px;bottom:6px}.boc-undo-redo>span>span{color:#fff;position:absolute;display:inline-block;min-width:20px;min-height:20px;border-radius:50%;line-height:20px;text-align:center;padding:1px;user-select:none;cursor:pointer}.boc-light .boc-undo-redo>span>span{background-color:#9c9c9c}.boc-dark .boc-undo-redo>span>span{background-color:#8c8c8c}.boc-dark .treelist-pinned{filter:brightness(1.2)}.boc-light .treelist-pinned{filter:brightness(.9)}.boc-light .boc-scroll{fill:#fff}.boc-light .boc-scroll-thumb{fill:#c1c1c1}.boc-light .boc-scroll-thumb:hover{fill:#929292}.boc-dark .boc-scroll{fill:#1e1e1e}.boc-dark .boc-scroll-thumb{fill:#424242}.boc-dark .boc-scroll-thumb:hover{fill:#4f4f4f}</style>'},OrgChart.input={},OrgChart.input._timeout=null,OrgChart.input.initWithTimeout=function(){OrgChart.input._timeout&&(clearTimeout(OrgChart.input._timeout),OrgChart.input._timeout=null),OrgChart.input._timeout=setTimeout(OrgChart.input.init,200)},OrgChart.input.init=function(e){var t;t=e?e.querySelectorAll("[data-boc-input]"):document.querySelectorAll("[data-boc-input]");for(var i=0;i<t.length;i++){var n=t[i],o=null;n.type&&"hidden"==n.type.toLowerCase()&&(o=n),o||(o=n.querySelector("input")),o||(o=n.querySelector("select"));var r=n.querySelector("label");r&&(o.value||"select-one"==o.type&&o.selectedOptions&&o.selectedOptions.length&&""==o.selectedOptions[0].value&&o.selectedOptions[0].innerHTML)&&r.classList.add("hasval"),"checkbox"!=o.type.toLowerCase()&&o.addEventListener("focus",function(){this.classList.remove("boc-validation-error");var e=this.parentNode.querySelector("label");e.classList.add("focused");var t=e.querySelector(".boc-validation-error-message");t&&t.parentNode.removeChild(t)}),"checkbox"!=o.type.toLowerCase()&&o.addEventListener("blur",function(){OrgChart.input.blurHandler(this)})}},OrgChart.input.blurHandler=function(e){var t=e.parentNode.querySelector("label");t.classList.remove("focused"),e.value||"date"==e.type?t.classList.add("hasval"):t.classList.remove("hasval")},OrgChart.input.validate=function(e){var t=null;e.type&&"hidden"==e.type.toLowerCase()&&(t=e),t||(t=e.querySelector("input")),t||(t=e.querySelector("select"));var i=e.querySelector("label");if(t.classList.remove("boc-validation-error"),i){var n=i.querySelector(".boc-validation-error-message");n&&n.parentNode.removeChild(n)}!t.selectedOptions&&t.value&&(t.value=t.value.trim());var o=e.getAttribute("data-v-required"),r=e.getAttribute("data-v-password"),a=e.getAttribute("data-v-email"),l=e.getAttribute("data-v-emails");return o&&""==t.value?(i.innerHTML+='<span class="boc-validation-error-message"> '+o+"</span>",t.classList.add("boc-validation-error"),!1):r&&!OrgChart.input.validatePassword(t.value)?(i.innerHTML+='<span class="boc-validation-error-message"> '+r+"</span>",t.classList.add("boc-validation-error"),!1):a&&!OrgChart.input.isValidEmail(t.value)?(i.innerHTML+='<span class="boc-validation-error-message"> '+a+"</span>",t.classList.add("boc-validation-error"),!1):!(l&&!OrgChart.input.isValidEmails(t.value))||(i.innerHTML+='<span class="boc-validation-error-message"> '+l+"</span>",t.classList.add("boc-validation-error"),!1)},OrgChart.input.validateAndGetData=function(e){for(var t=e.querySelectorAll("[data-boc-input]"),i=!0,n=0;n<t.length;n++){var o=t[n];OrgChart.input.validate(o)||(i=!1)}return!!i&&OrgChart.input.getData(e)},OrgChart.input.getData=function(e){for(var t=e.querySelectorAll("[data-binding]"),i={},n=0;n<t.length;n++){var o=t[n],r=o.getAttribute("data-binding");if("checkbox"==o.type.toLowerCase())i[r]=o.checked;else if(o.selectedOptions&&o.hasAttribute("multiple")){var a=o.selectedOptions;i[r]=Array.from(a).map(({value:e})=>e)}else i[r]=o.value}return i},OrgChart.input.validatePassword=function(e){return e&&(e=e.trim()),!(e.length<5)&&(!(e.length>18)&&-1==e.indexOf(" "))},OrgChart.input.isValidEmails=function(e){if(e)for(var t=e.split(","),i=0;i<t.length;i++){var n=t[i].trim();if(!OrgChart.input.isValidEmail(n))return!1}return!0},OrgChart.input.isValidEmail=function(e){return e&&(e=e.trim()),/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},void 0===OrgChart&&(OrgChart={}),OrgChart.prototype.onField=function(e){return this.on("field",function(t,i){return e.call(t,i)})},OrgChart.prototype.onInit=function(e){return this.on("init",function(t){return e.call(t)})},OrgChart.prototype.onRedraw=function(e){return this.on("redraw",function(t){return e.call(t)})},OrgChart.prototype.onUpdateNode=function(e){return this.on("update",function(t,i,n){var o={oldData:i,newData:n};return e.call(t,o)})},OrgChart.prototype.onUpdated=function(e){return this.on("updated",function(t){return e.call(t)})},OrgChart.prototype.onRemoveNode=function(e){return this.on("remove",function(t,i,n){var o={id:i,newPidsAndStpidsForIds:n};return e.call(t,o)})},OrgChart.prototype.onAddNode=function(e){return this.on("add",function(t,i){var n={data:i};return e.call(t,n)})},OrgChart.prototype.onDrop=function(e){return this.on("drop",function(t,i,n,o,r){var a={dragId:i,dropId:n,dragNodeElement:o,event:r};return e.call(t,a)})},OrgChart.prototype.onDrag=function(e){return this.on("drag",function(t,i,n,o){var r={dragId:i,event:n,nodeIds:o};return e.call(t,r)})},OrgChart.prototype.onExpandCollapseButtonClick=OrgChart.prototype.onExpandCollpaseButtonClick=function(e){return this.on("expcollclick",function(t,i,n,o){var r={collapsing:i,id:n,ids:o};return e.call(t,r)})},OrgChart.prototype.onExportStart=function(e){return this.on("exportstart",function(t,i){return e.call(t,i)})},OrgChart.prototype.onExportEnd=function(e){return this.on("exportend",function(t,i){return e.call(t,i)})},OrgChart.prototype.onNodeClick=function(e){return this.on("click",function(t,i){return e.call(t,i)})},OrgChart.prototype.onCanvasClick=function(e){return this.on("canvas-click",function(t,i){return e.call(t,i)})},OrgChart.prototype.onNodeDoubleClick=function(e){return this.on("dbclick",function(t,i){var n={data:i};return e.call(t,n)})},OrgChart.prototype.onAIToolCalls=function(e){return this.on("ai-tool-calls",function(t,i){return e.call(t,i)})},OrgChart.prototype._dragDropHandler=function(e,t,i){},OrgChart.prototype._movableHandler=function(e,t,i){},void 0===OrgChart&&(OrgChart={}),OrgChart._communityMessages=[],OrgChart._communityAlert=function(){var e=[];for(var t of OrgChart._communityMessages)e.includes(t)||e.push(t);if(e.length){var i=`The following methods and options are not supported in Community Edition:\n\n${e.join("\n")} \n\nDownload the Trial Edition if you want to use the features above.`;alert(i)}},OrgChart._communityMethod=function(e){OrgChart._communityMessages.push(e+" [method]")},OrgChart.manager._community_createNodes=OrgChart.manager._createNodes,OrgChart.manager._createNodes=function(e){var t=e.manager.config,i=e.manager.layoutConfigs;return OrgChart._checkForUnsuportedFeatures(t,i),OrgChart.manager._community_createNodes(e)},OrgChart._checkForUnsuportedFeatures=function(e,t){for(var i of e.nodes){if(i.tags){var n=i.tags.indexOf("assistant");n>-1&&(OrgChart._communityMessages.push("assistant [tag]"),i.tags.splice(n,1)),(n=i.tags.indexOf("partner"))>-1&&(OrgChart._communityMessages.push("partner [tag]"),i.tags.splice(n,1)),(n=i.tags.indexOf("left-partner"))>-1&&(OrgChart._communityMessages.push("left-partner [tag]"),i.tags.splice(n,1)),(n=i.tags.indexOf("right-partner"))>-1&&(OrgChart._communityMessages.push("right-partner [tag]"),i.tags.splice(n,1))}OrgChart.isNEU(i.stpid)||(OrgChart._communityMessages.push("stpid [property]"),i.stpid=void 0)}for(var o in e.slinks&&e.slinks.length&&(OrgChart._communityMessages.push("slinks [option]"),e.slinks=[]),e.clinks&&e.clinks.length&&(OrgChart._communityMessages.push("clinks [option]"),e.clinks=[]),t){var r=t[o];r.layout!=OrgChart.layout.normal&&(OrgChart._communityMessages.push("layout [option]"),r.layout=OrgChart.layout.normal)}},OrgChart.events.on("init",function(e,t){setTimeout(OrgChart._communityAlert,500)}),OrgChart._defaultConfig=function(e){for(var t of["enableDragDrop","enableSearch","enableAI","keyNavigation","miniMap","controls","nodeMenu","nodeCircleMenu","nodeContextMenu","menu","toolbar","showXScroll","showYScroll","searchFields","searchDisplayField","searchFieldsWeight","searchFieldsAbbreviation","movable","serverUrl","state","editForm","showYScroll","showYScroll","filterBy","undoRedoStorageName"])e[t]&&OrgChart._communityMessages.push(t+" [option]");return{interactive:!0,mode:"light",lazyLoading:"auto",enableDragDrop:!1,enableSearch:!1,enableAI:!1,enablePan:!0,keyNavigation:!1,miniMap:!1,controls:null,nodeMenu:null,nodeCircleMenu:null,nodeContextMenu:null,menu:null,toolbar:!1,nodeMouseClick:OrgChart.action.none,nodeMouseDbClick:OrgChart.action.none,mouseScrool:OrgChart.action.ctrlZoom,showXScroll:!1,showYScroll:!1,template:"ana",tags:{},min:!1,nodeBinding:{},linkBinding:{},searchFields:null,searchDisplayField:null,searchFieldsWeight:null,searchFieldsAbbreviation:null,nodes:[],clinks:[],slinks:[],backdrops:[],groupDottedLines:[],dottedLines:[],undoRedoStorageName:null,levelSeparation:60,siblingSeparation:20,subtreeSeparation:40,backdropSeparation:15,mixedHierarchyNodesSeparation:15,assistantSeparation:100,minPartnerSeparation:50,partnerChildrenSplitSeparation:20,partnerNodeSeparation:15,columns:10,padding:30,orientation:OrgChart.orientation.top,layout:OrgChart.layout.normal,layoutGridColumns:"dynamic",scaleInitial:OrgChart.match.boundaryIfOutside,movable:null,scaleMin:.1,scaleMax:5,orderBy:null,editUI:null,aiUI:null,orgScribeUI:null,powerPointPreviewUI:null,pdfPreviewUI:null,svgPreviewUI:null,pngPreviewUI:null,filterUI:null,searchUI:null,xScrollUI:null,yScrollUI:null,nodeMenuUI:null,controlsUI:null,nodeCircleMenuUI:null,nodeContextMenuUI:null,toolbarUI:null,notifierUI:null,menuUI:null,undoRedoUI:null,exportUrl:null,serverUrl:null,aiChatTools:[],collapse:{},expand:{},align:OrgChart.CENTER,UI:null,anim:{func:OrgChart.anim.outPow,duration:200},zoom:{speed:120,smooth:12},roots:null,state:null,editForm:null}},OrgChart.prototype.__mouseScrollHandlerTreeList=function(){},OrgChart.prototype._treeListUpdate=function(){},OrgChart.prototype._treeListIterate2=function(){},OrgChart.prototype._treeListSetPositions=function(){},OrgChart.prototype._treeListThumbMouseDownHandler=function(){},OrgChart.prototype._treeListExpandCollapseHandler=function(e){},void 0===OrgChart&&(OrgChart={}),OrgChart.local={},OrgChart.local._setPositions=function(e,t,i){OrgChart.local._walk(e,t),i()},OrgChart.local._walk=function(e,t){for(var i={minX:null,minY:null,maxX:null,maxY:null},n=[],o=[],r=0;r<e.length;r++){var a=OrgChart.local._getConfig(e[r],t);OrgChart.local._firstWalk(e[r],0,n,o,a)}for(r=0;r<e.length;r++){a=OrgChart.local._getConfig(e[r],t);OrgChart.local._secondWalk(e[r],0,0,0,n,i,a)}},OrgChart.local._firstWalk=function(e,t,i,n,o){var r=null;if(e.x=0,e.y=0,e._prelim=0,e._modifier=0,e.leftNeighbor=null,e.rightNeighbor=null,OrgChart.local._setLevelMaxNodeHeight(e,t,i,o),OrgChart.local._setNeighbors(e,t,n),OrgChart.local._hasChildren(e)&&t!=OrgChart.MAX_DEPTH){for(var a of e.children)OrgChart.local._firstWalk(a,t+1,i,n,o);var l=OrgChart.local._fChild(e),s=e.children[e.children.length-1],c=l._prelim+(s._prelim-l._prelim)/2+OrgChart.local._leftMidPoint(s,o);if(c-=OrgChart.local._mid(e,o),null!=(r=OrgChart.local._getLeftSibling(e))){d=o.siblingSeparation;e._prelim=r._prelim+OrgChart.local._nodeWithPartnersSize(r,o)+d,e._modifier=e._prelim-c,OrgChart.local._apportion(e,t,i,o)}else o.orientation<=3?e._prelim=c:e._prelim=0}else if(null!=(r=OrgChart.local._getLeftSibling(e))){var d=o.siblingSeparation;e._prelim=r._prelim+OrgChart.local._nodeWithPartnersSize(r,o)+d}else e._prelim=0},OrgChart.local._secondWalk=function(e,t,i,n,o,r,a){if(t<=OrgChart.MAX_DEPTH){var l,s,c=e._prelim+i,d=n;switch(l=o[t],s=OrgChart.local._getNodeHeight(e,a),e.x=c,e.y=d,a.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:var h=e.x;e.x=e.y,e.y=h}switch(a.orientation){case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:e.y=-e.y-s;break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:e.x=-e.x-s}if(OrgChart._setMinMaxXY(e,r,!0),0!=e.children){var p=a.levelSeparation;OrgChart.local._secondWalk(e.children[0],t+1,i+e._modifier,n+l+p,o,r,a)}var u=OrgChart.local._getRightSibling(e);null!=u&&OrgChart.local._secondWalk(u,t,i,n,o,r,a)}},OrgChart.local._lastWalk=function(e,t,i,n,o){for(var r of(e.x+=t+o[3]-n.minX,e.y+=i+o[0]-n.minY,e.children))OrgChart.local._lastWalk(r,t,i,n,o)},OrgChart.local._apportion=function(e,t,i,n){for(var o=OrgChart.local._fChild(e),r=o.leftNeighbor,a=1,l=OrgChart.MAX_DEPTH-t;null!=o&&null!=r&&a<=l;){for(var s=0,c=0,d=o,h=r,p=0;p<a;p++)d=d.parent,h=h.parent,s+=d._modifier,c+=h._modifier;var u=n.subtreeSeparation;e.leftNeighbor&&e.parent==e.leftNeighbor.parent&&"string"==typeof e.leftNeighbor.id&&-1!=e.leftNeighbor.id.indexOf("_sublevel_layout_")&&(u=n.subtreeSeparation);var f=r._prelim+c+OrgChart.local._nodeWithPartnersSize(r,n)+u-(o._prelim+s);if(f>0){for(var g=e,m=0;null!=g&&g!=h;g=OrgChart.local._getLeftSibling(g))m++;if(null!=g){var x=e,b=f/m;for("string"==typeof x.id&&-1!=x.id.indexOf("_grid_pseudo_node_")&&(b=0);x!=h;x=OrgChart.local._getLeftSibling(x))x._prelim+=f,x._modifier+=f,f-=b}}a++,null!=(o=OrgChart.local._hasChildren(o)?OrgChart.local._fChild(o):OrgChart.local._getLeftmost(e,0,a))&&(r=o.leftNeighbor)}},OrgChart.local._mixedTreeHeight=function(e){e.size+=OrgChart.local._getNodeHeight(e.node,e.config)+e.config.mixedHierarchyNodesSeparation;for(var t=0;t<e.node.children.length;t++)e.node=e.node.children[t],OrgChart.local._mixedTreeHeight(e)},OrgChart.local._setLevelMaxNodeHeight=function(e,t,i,n){null==i[t]&&(i[t]=0);var o=OrgChart.local._getNodeHeight(e,n);i[t]<o&&(i[t]=o)},OrgChart.local._setNeighbors=function(e,t,i){i[t]&&i[t].id===e.id||(e.leftNeighbor=i[t],null!=e.leftNeighbor&&(e.leftNeighbor.rightNeighbor=e),i[t]=e)},OrgChart.local._nodeWithPartnersSize=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h}return 0},OrgChart.local._size=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h}return 0},OrgChart.local._leftMidPoint=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w/2;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h/2}return 0},OrgChart.local._rightMidPoint=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w/2;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h/2}return 0},OrgChart.local._mid=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w/2;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h/2}return 0},OrgChart.local._getNodeHeight=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.h;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.w}return 0},OrgChart.local._getLeftSibling=function(e){return null!=e.leftNeighbor&&e.leftNeighbor.parent==e.parent?e.leftNeighbor:null},OrgChart.local._getRightSibling=function(e){return null!=e.rightNeighbor&&e.rightNeighbor.parent==e.parent?e.rightNeighbor:null},OrgChart.local._getLeftmost=function(e,t,i){if(t>=i)return e;if(!OrgChart.local._hasChildren(e))return null;for(var n of e.children){var o=OrgChart.local._getLeftmost(n,t+1,i);if(null!=o)return o}return null},OrgChart.local._fChild=function(e){return e.children[0]},OrgChart.local._hasChildren=function(e){for(var t=0;t<e.children.length;t++)return!0;return!1},OrgChart.local._getConfig=function(e,t){return t[e.lcn?e.lcn:"base"]},OrgChart.editUI=function(){},OrgChart.editUI.prototype.init=function(){},OrgChart.editUI.prototype.on=function(e,t){return OrgChart._communityMethod("editUI.on"),this},OrgChart.editUI.prototype.show=function(e,t,i){OrgChart._communityMethod("editUI.show")},OrgChart.editUI.prototype.setAvatar=function(e){OrgChart._communityMethod("editUI.setAvatar")},OrgChart.editUI.prototype.hide=function(e){},OrgChart.menuUI=function(){},OrgChart.menuUI.prototype.init=function(){},OrgChart.menuUI.prototype.showStickIn=function(){OrgChart._communityMethod("menuUI.showStickIn")},OrgChart.menuUI.prototype.show=function(){OrgChart._communityMethod("menuUI.show")},OrgChart.menuUI.prototype.isVisible=function(){OrgChart._communityMethod("menuUI.isVisible")},OrgChart.menuUI.prototype.hide=function(){},OrgChart.menuUI.prototype.on=function(){OrgChart._communityMethod("menuUI.on")},OrgChart.controlsUI=function(){},OrgChart.controlsUI.prototype.init=function(){},OrgChart.controlsUI.prototype.show=function(){OrgChart._communityMethod("controlsUI.show")},OrgChart.controlsUI.prototype.hide=function(){OrgChart._communityMethod("controlsUI.hide")},OrgChart.circleMenuUI=function(){},OrgChart.circleMenuUI.prototype.init=function(){},OrgChart.circleMenuUI.prototype.show=function(){OrgChart._communityMethod("circleMenuUI.show")},OrgChart.circleMenuUI.prototype.isVisible=function(){OrgChart._communityMethod("circleMenuUI.isVisible")},OrgChart.circleMenuUI.prototype.hide=function(){},OrgChart.circleMenuUI.prototype.on=function(){return OrgChart._communityMethod("circleMenuUI.on"),this},OrgChart.toolbarUI=function(){},OrgChart.toolbarUI.expandAllIcon="",OrgChart.toolbarUI.fitIcon="",OrgChart.toolbarUI.openFullScreenIcon="",OrgChart.toolbarUI.closeFullScreenIcon="",OrgChart.toolbarUI.zoomInIcon="",OrgChart.toolbarUI.zoomOutIcon="",OrgChart.toolbarUI.layoutIcon="",OrgChart.toolbarUI.prototype.init=function(){},OrgChart.toolbarUI.prototype.showLayout=function(){},OrgChart.toolbarUI.prototype.hideLayout=function(){},OrgChart.prototype.importCSV=function(){OrgChart._communityMethod("importCSV")},OrgChart.prototype.importXML=function(){OrgChart._communityMethod("importXML")},OrgChart.searchUI=function(){},OrgChart.searchUI.prototype.init=function(e){},OrgChart.searchUI.prototype._enterHandler=function(){OrgChart._communityMethod("searchUI._enterHandler")},OrgChart.searchUI.prototype.find=function(e){OrgChart._communityMethod("searchUI.find")},OrgChart.searchUI.prototype.addMatchTag=function(e){},OrgChart.searchUI.prototype.__search=function(){},OrgChart.searchUI.prototype._search=function(){},OrgChart.searchUI.prototype.helpView=function(){OrgChart._communityMethod("searchUI.helpView")},OrgChart.searchUI.createItem=function(e,t,i,n){OrgChart._communityMethod("searchUI.createItem")},OrgChart.searchUI.prototype.hide=function(){OrgChart._communityMethod("searchUI.hide")},OrgChart.searchUI.prototype.on=function(e,t){return OrgChart._communityMethod("searchUI.on"),this},OrgChart.xScrollUI=function(e,t,i,n,o){this.config=t},OrgChart.xScrollUI.prototype.addListener=function(e){},OrgChart.xScrollUI.prototype.create=function(e){},OrgChart.xScrollUI.prototype.setPosition=function(){},OrgChart.yScrollUI=function(e,t,i,n,o){this.config=t},OrgChart.yScrollUI.prototype.addListener=function(e){},OrgChart.yScrollUI.prototype.create=function(e){},OrgChart.yScrollUI.prototype.setPosition=function(){},void 0===OrgChart&&(OrgChart={}),OrgChart.clinkLabelPosition=function(){},OrgChart.clinkCurve=function(){},OrgChart.prototype.addClink=function(){return OrgChart._communityMethod("addClink"),this},OrgChart.prototype.removeClink=function(){return OrgChart._communityMethod("removeClink"),this},OrgChart.clinkTemplates={},OrgChart.clinkTemplates.orange={defs:"",link:"",label:""},OrgChart.clinkTemplates.blue={defs:"",link:"",label:""},OrgChart.clinkTemplates.yellow={defs:"",link:"",label:""},void 0===OrgChart&&(OrgChart={}),OrgChart.prototype._slinks=function(){OrgChart._communityMethod("_slinks")},OrgChart.prototype.addSlink=function(){return OrgChart._communityMethod("addSlink"),this};OrgChart.prototype.removeSlink=function(e,t){return OrgChart._communityMethod("removeSlink"),this},OrgChart.slinkTemplates={},OrgChart.slinkTemplates.orange={defs:"",link:"",label:"",labelPosition:""},OrgChart.slinkTemplates.blue={defs:"",link:"",label:"",labelPosition:""},OrgChart.slinkTemplates.yellow={defs:"",link:"",label:"",labelPosition:""},OrgChart.orgScribeUI=function(){},OrgChart.orgScribeUI.prototype.init=function(e){},OrgChart.orgScribeUI.prototype.isVisible=function(){OrgChart._communityMethod("orgScribeUI.isVisible")},OrgChart.orgScribeUI.prototype.show=function(e,t){OrgChart._communityMethod("orgScribeUI.show")},OrgChart.orgScribeUI.prototype.hide=function(){OrgChart._communityMethod("orgScribeUI.hide")},void 0===OrgChart&&(OrgChart={}),OrgChart.prototype.undo=function(e){OrgChart._communityMethod("undo")},OrgChart.prototype.redo=function(e){OrgChart._communityMethod("redo")},OrgChart.prototype.clearRedo=function(){},OrgChart.prototype.clearUndo=function(){OrgChart._communityMethod("clearUndo")},OrgChart.prototype.undoStepsCount=function(){OrgChart._communityMethod("undoStepsCount")},OrgChart.prototype.redoStepsCount=function(){OrgChart._communityMethod("redoStepsCount")},OrgChart.prototype._putInUndoStack=function(){},OrgChart.prototype._putInRedoStack=function(){},void 0===OrgChart&&(OrgChart={}),OrgChart.undoRedoUI=function(){},OrgChart.undoRedoUI.prototype.init=function(e){},OrgChart.undoRedoUI.prototype.refresh=function(){OrgChart._communityMethod("undoRedoUI.refresh")},OrgChart.undoRedoUI.prototype.on=function(e,t){return OrgChart._communityMethod("undoRedoUI.on"),this},OrgChart.undoRedoUI.prototype.onChange=function(e){OrgChart._communityMethod("undoRedoUI.onChange")},OrgChart.miniMap={},OrgChart.miniMap.colors=[],OrgChart.miniMap.selectorBackgroundColor="",OrgChart.miniMap.backgroundColor="",OrgChart.miniMap.focusStroke="",OrgChart.miniMap.opacity=0,OrgChart.miniMap.border="",OrgChart.miniMap.width=0,OrgChart.miniMap.height=0,OrgChart.miniMap.padding=0,OrgChart.miniMap.position={top:void 0,left:void 0,right:void 0,bottom:void 0},OrgChart.miniMap.draggable=!0,OrgChart.state={},OrgChart.state._buildStateNames=function(e){return{paramScale:e+"-scale",paramX:e+"-x",paramY:e+"-y",paramExp:e+"-exp",paramMin:e+"-min",paramRoots:e+"-roots",paramAdjustify:e+"-adjustify"}},OrgChart.state._put=function(e,t,i,n,o,r,a,l){},OrgChart.state._get=function(e,t,i,n){n(null)},OrgChart.state.clear=function(e){},OrgChart._search={},OrgChart._search.search=function(){OrgChart._communityMethod("searchUI.search")},OrgChart._search.addNodeToResult=function(){OrgChart._communityMethod("searchUI.addNodeToResult")},OrgChart._search.searchAndComputeScore=function(){OrgChart._communityMethod("searchUI.searchAndComputeScore")},OrgChart._search.searchIndexesOf=function(){OrgChart._communityMethod("searchUI.searchIndexesOf")},OrgChart.filterUI=function(){},OrgChart.filterUI.prototype.init=function(e){},OrgChart.filterUI.prototype.addFilterTag=function(e){},OrgChart.filterUI.prototype.show=function(e){OrgChart._communityMethod("filterUI.show")},OrgChart.filterUI.prototype.hide=function(){},OrgChart.filterUI.prototype._removeFilter=function(e){},OrgChart.filterUI.prototype.update=function(){},OrgChart.filterUI.prototype.on=function(e,t){OrgChart._communityMethod("filterUI.on")},OrgChart.filterUI.textFilterBy="",OrgChart.filterUI.all="",OrgChart.prototype.exportToPDFProfile=function(){OrgChart._communityMethod("exportToPDFProfile")},OrgChart.prototype.exportToVisio=function(){OrgChart._communityMethod("exportToVisio")},OrgChart.prototype.exportToPDF=function(){OrgChart._communityMethod("exportToPDF")},OrgChart.prototype.exportToPNG=function(){OrgChart._communityMethod("exportToPNG")},OrgChart.prototype.exportToSVG=function(){OrgChart._communityMethod("exportToSVG")},OrgChart.prototype.exportToPowerPoint=function(){OrgChart._communityMethod("exportToPowerPoint")},OrgChart.exportUI=function(){},OrgChart.exportUI.prototype.init=function(){},OrgChart.exportUI.prototype.show=function(e){OrgChart._communityMethod("exportUI.show")},OrgChart.exportUI.prototype.isVisible=function(){OrgChart._communityMethod("exportUI.isVisible")},OrgChart.exportUI.prototype.hide=function(){},OrgChart.exportUI.prototype.refresh=function(){OrgChart._communityMethod("exportUI.refresh")},OrgChart.exportUI.prototype.toggleLanscape=function(){OrgChart._communityMethod("exportUI.toggleLanscape")},OrgChart.exportUI.prototype.addPage=function(){OrgChart._communityMethod("exportUI.addPage")},OrgChart.exportUI.prototype.removePage=function(){OrgChart._communityMethod("exportUI.removePage")},OrgChart.exportUI.prototype.toggelePrintTreeOrProfile=function(){OrgChart._communityMethod("exportUI.toggelePrintTreeOrProfile")},OrgChart.exportUI.prototype.selectPage=function(e){OrgChart._communityMethod("exportUI.selectPage")};var t=OrgChart;module.exports=t;
|
|
1
|
+
var e,OrgChart=function(e,t){var i=this;Object.defineProperty(this,"element",{get:()=>e?e.querySelector("[data-boc-content]"):null,set(e){i.mainElement=e}}),Object.defineProperty(this,"mainElement",{get:()=>e,set(t){(e=t)&&(e.innerHTML="\n <style> \n .boc-dark, .boc-light{ display: flex; }\n [data-boc-left]{ display: none; }\n [data-boc-right]{ height: 100%; position: relative; overflow:hidden; flex-grow: 1; }\n [data-boc-content]{ height: 100%; width: 100%; }\n @media screen and (max-width: 500px) {\n .boc-dark, .boc-light{ flex-direction: column; }\n [data-boc-left]{ order: 2; height: 50vh; }\n [data-boc-right]{ order: 1; }\n }\n </style>\n <div data-boc-left></div>\n <div data-boc-right>\n <div data-boc-content></div>\n </div>")}}),Object.defineProperty(this,"leftElement",{get:()=>e.querySelector("[data-boc-left]")}),i.init(e,t)};OrgChart.prototype.init=function(e,t){if(e&&!this._initCalled){this._initCalled=!0,("string"==typeof e||e instanceof String)&&(e=document.querySelector(e)),this.element=e;var i=this;if(this.config=OrgChart.mergeDeep(OrgChart._defaultConfig(t),t),this._layoutConfigs={base:{orientation:this.config.orientation,levelSeparation:this.config.levelSeparation,mixedHierarchyNodesSeparation:this.config.mixedHierarchyNodesSeparation,assistantSeparation:this.config.assistantSeparation,subtreeSeparation:this.config.subtreeSeparation,siblingSeparation:this.config.siblingSeparation,layout:this.config.layout,columns:this.config.columns,collapse:this.config.collapse,partnerNodeSeparation:this.config.partnerNodeSeparation}},this.config.tags)for(var n in this.config.tags){var o=this.config.tags[n];null!=o.subTreeConfig&&(this._layoutConfigs[n]={orientation:null!=o.subTreeConfig.orientation?o.subTreeConfig.orientation:this.config.orientation,levelSeparation:null!=o.subTreeConfig.levelSeparation?o.subTreeConfig.levelSeparation:this.config.levelSeparation,mixedHierarchyNodesSeparation:null!=o.subTreeConfig.mixedHierarchyNodesSeparation?o.subTreeConfig.mixedHierarchyNodesSeparation:this.config.mixedHierarchyNodesSeparation,assistantSeparation:null!=o.subTreeConfig.assistantSeparation?o.subTreeConfig.assistantSeparation:this.config.assistantSeparation,subtreeSeparation:null!=o.subTreeConfig.subtreeSeparation?o.subTreeConfig.subtreeSeparation:this.config.subtreeSeparation,siblingSeparation:null!=o.subTreeConfig.siblingSeparation?o.subTreeConfig.siblingSeparation:this.config.siblingSeparation,layout:null!=o.subTreeConfig.layout?o.subTreeConfig.layout:this.config.layout,columns:null!=o.subTreeConfig.columns?o.subTreeConfig.columns:this.config.columns,collapse:null!=o.subTreeConfig.collapse?o.subTreeConfig.collapse:this.config.collapse,partnerNodeSeparation:null!=o.subTreeConfig.partnerNodeSeparation?o.subTreeConfig.partnerNodeSeparation:this.config.partnerNodeSeparation,template:o.subTreeConfig.template})}this._event_id=OrgChart._guid(),OrgChart._validateConfig(this.config)&&(this._vScroll={},this.config.ui||(this.ui=OrgChart.ui),this.config.editUI?this.editUI=this.config.editUI:this.editUI=new OrgChart.editUI,this.editUI.init(this),this.config.filterUI?this.filterUI=this.config.filterUI:this.filterUI=new OrgChart.filterUI,this.filterUI.init(this),this.manager=new OrgChart.manager(this),this._ai=new OrgChart._ai(this),this.config.searchUI?this.searchUI=this.config.searchUI:this.searchUI=new OrgChart.searchUI,this.config.aiUI?this.aiUI=this.config.aiUI:this.aiUI=new OrgChart.aiUI,this.config.orgScribeUI?this.orgScribeUI=this.config.orgScribeUI:this.orgScribeUI=new OrgChart.orgScribeUI,this.config.powerPointPreviewUI?this.powerPointPreviewUI=this.config.powerPointPreviewUI:this.powerPointPreviewUI=new OrgChart.exportUI("pptx"),this.config.pdfPreviewUI?this.pdfPreviewUI=this.config.pdfPreviewUI:this.pdfPreviewUI=new OrgChart.exportUI("pdf"),this.config.svgPreviewUI?this.svgPreviewUI=this.config.svgPreviewUI:this.svgPreviewUI=new OrgChart.exportUI("svg"),this.config.pngPreviewUI?this.pngPreviewUI=this.config.pngPreviewUI:this.pngPreviewUI=new OrgChart.exportUI("png"),this.config.nodeMenuUI?this.nodeMenuUI=this.config.nodeMenuUI:this.nodeMenuUI=new OrgChart.menuUI,this.nodeMenuUI.init(this,this.config.nodeMenu),this.config.nodeCircleMenuUI?this.nodeCircleMenuUI=this.config.nodeCircleMenuUI:this.nodeCircleMenuUI=new OrgChart.circleMenuUI,this.nodeCircleMenuUI.init(this,this.config.nodeCircleMenu),this.config.nodeContextMenuUI?this.nodeContextMenuUI=this.config.nodeContextMenuUI:this.nodeContextMenuUI=new OrgChart.menuUI,this.nodeContextMenuUI.init(this,this.config.nodeContextMenu),this.config.controlsUI?this.controlsUI=this.config.controlsUI:this.controlsUI=new OrgChart.controlsUI,this.config.toolbarUI?this.toolbarUI=this.config.toolbarUI:this.toolbarUI=new OrgChart.toolbarUI,this.config.notifierUI?this.notifierUI=this.config.notifierUI:this.notifierUI=new OrgChart.notifierUI,this.notifierUI.init(this),this.config.menuUI?this.menuUI=this.config.menuUI:this.menuUI=new OrgChart.menuUI,this.menuUI.init(this,this.config.menu),this.config.xScrollUI||(this.xScrollUI=new OrgChart.xScrollUI(this.element,this.config,function(){return{boundary:i.response.boundary,scale:i.getScale(),viewBox:i.getViewBox(),padding:i.config.padding}},function(e){i.setViewBox(e)},function(){i._draw(!0,OrgChart.action.xScroll)})),this.config.yScrollUI||(this.yScrollUI=new OrgChart.yScrollUI(this.element,this.config,function(){return{boundary:i.response.boundary,scale:i.getScale(),viewBox:i.getViewBox(),padding:i.config.padding}},function(e){i.setViewBox(e)},function(){i._draw(!0,OrgChart.action.xScroll)})),this.config.undoRedoUI?this.undoRedoUI=this.config.undoRedoUI:this.undoRedoUI=new OrgChart.undoRedoUI,this.mainElement.classList.add("boc-"+this.config.mode),this._gragStartedId=null,this._timeout=null,this._touch=null,this._initialized=!1,this._loaded=!1,this._moveInterval=null,this._movePosition=null,this.response=null,this.nodes=null,this.isVisible=null,this._connectorLines={x:{},y:{}},OrgChart._intersectionObserver(this.element,function(e){i.isVisible=e,!1!==OrgChart.events.publish("visibility-change",[i])&&OrgChart.LAZY_LOADING&&i.isVisible&&(i._loaded?i._draw(!1,OrgChart.action.update):(i._setInitialSizeIfNotSet(),i._draw(!1,OrgChart.action.init)))}),this._resizeObserver=new ResizeObserver(e=>{for(let t of e){const{width:e,height:n}=t.contentRect;i._resizeHandler(e,n)}}),this._resizeObserver.observe(this.element))}},OrgChart.prototype.load=function(e,t){var i=this;return this.config.nodes=e,this._draw(!1,OrgChart.action.init,void 0,function(){i.filterUI.update(),t&&t()}),this},OrgChart.prototype.loadXML=function(e,t){var i=OrgChart._xml2json(e);return this.load(i,t)},OrgChart.prototype.getXML=function(){return OrgChart._json2xml(this.config.nodes)},OrgChart.prototype.on=function(e,t){return OrgChart.events.on(e,t,this._event_id),this},OrgChart.prototype.removeListener=function(e,t){return OrgChart.events.remove(e,t,this._event_id)},OrgChart.prototype.draw=function(e,t,i){null==e&&(e=OrgChart.action.update),this._draw(!1,e,t,i)},OrgChart.prototype._draw=function(e,t,i,n){var o=this;if(!OrgChart.LAZY_LOADING||this.isVisible)if(OrgChart.LAZY_LOADING||this._initialized||(this._setInitialSizeIfNotSet(),0!=this.width()&&0!=this.height())){this._hideBeforeAnimationCompleted=!1;var r=t==OrgChart.action.init?null:this.getViewBox();this.manager.read(e,this.width(),this.height(),r,t,i,function(e){if(!o.notifierUI.show(e.notif)){t!=OrgChart.action.exporting&&(o.nodes=e.nodes,o.visibleNodeIds=e.visibleNodeIds,o.roots=e.roots),o._connectorLines={x:{},y:{}},o.editUI.fields=e.allFields;var r={defs:""};OrgChart.events.publish("renderdefs",[o,r]);var a=o.ui.defs(r.defs),l=o.getScale(e.viewBox);a+=o.ui.pointer(o.config,t,l);var s=o.getViewBox(),c=e.viewBox;r={content:a,res:e};OrgChart.events.publish("prerender",[o,r]),a=r.content;var d=[];if(OrgChart.RENDER_LINKS_BEFORE_NODES)for(var h=0;h<e.visibleNodeIds.length;h++){var p=e.nodes[e.visibleNodeIds[h]];OrgChart.getRootOf(p).stParent?d.push(p.id):a+=o.ui.link(p,o,l,e.bordersByRootIdAndLevel,e.nodes,t)}for(h=0;h<e.visibleNodeIds.length;h++){p=e.nodes[e.visibleNodeIds[h]];var u=o._get(p.id);if(OrgChart.RENDER_LINKS_BEFORE_NODES&&d.includes(p.id)&&(a+=o.ui.link(p,o,l,e.bordersByRootIdAndLevel,e.nodes,t)),p.isTreeListItem||(a+=o.ui.node(p,u,e.animations,o.config,void 0,void 0,void 0,t,l,o)),!p.min&&p.treeList){var renderTreeListIterate=function(i){if(!p.treeList.pinnedIds.includes(i.id)){var n=o._get(i.id);a+=o.ui.node(i,n,e.animations,o.config,void 0,void 0,void 0,t,l,o),a+=o.ui.expandCollapseBtn(o,i,n,o.config,o._layoutConfigs,t,l)}for(var r of i.children)renderTreeListIterate(r)},f=OrgChart.randomId();for(var g of(a+=`<clipPath id="treelist_${f}">\n <rect rx="10" ry="10" x="${p.x+p.padding[3]}" y="${p.y+p.padding[0]}" width="${p.w-p.padding[1]-p.padding[3]}" height="${p.h-p.padding[2]-p.padding[0]}">\n </clipPath><g clip-path="url(#treelist_${f})"><g data-treelist-content="${p.id}" transform="matrix(1,0,0,1,0,-${p.treeList.scrollTop})">`,p.stChildren))renderTreeListIterate(g);for(var m of p.treeList.pinnedIds){var x=o.getNode(m),b=o._get(m);a+=o.ui.node(x,b,e.animations,o.config,void 0,void 0,void 0,t,l,o,!0),a+=o.ui.expandCollapseBtn(o,x,b,o.config,o._layoutConfigs,t,l)}var{thumbHeight:y,thumbPosition:v,scrollBarDisplay:_}=OrgChart._treeListGetTumbPositionFromScrollTop(p);a+=`</g>\n\n \n <rect style="display: ${_}" data-treelist-scroll="${p.id}" class="boc-scroll" x="${p.x+p.w-p.padding[1]-OrgChart.TREELIST_SCROLLBAR_WIDTH}" y="${p.y+p.padding[0]}" width="${OrgChart.TREELIST_SCROLLBAR_WIDTH}" height="${p.h-p.padding[2]-p.padding[0]}"></rect>\n <rect style="display: ${_}" data-treelist-thumb="${p.id}" class="boc-scroll-thumb" x="${p.x+p.w-p.padding[1]-OrgChart.TREELIST_SCROLLBAR_WIDTH}" y="${v}" width="${OrgChart.TREELIST_SCROLLBAR_WIDTH}" height="${y}"></rect>\n\n </g>`}}for(h=0;h<e.visibleNodeIds.length;h++){p=e.nodes[e.visibleNodeIds[h]],u=o._get(p.id);p.isTreeListItem||(OrgChart.RENDER_LINKS_BEFORE_NODES||(a+=o.ui.link(p,o,l,e.bordersByRootIdAndLevel,e.nodes,t)),a+=o.ui.expandCollapseBtn(o,p,u,o.config,o._layoutConfigs,t,l))}r={content:a,res:e};if(OrgChart.events.publish("render",[o,r]),a=r.content,e=r.res,a+=o.ui.lonely(o.config),t!==OrgChart.action.exporting){t!==OrgChart.action.centernode&&t!==OrgChart.action.insert&&t!==OrgChart.action.expand&&t!==OrgChart.action.collapse&&t!==OrgChart.action.update||(c=s),t===OrgChart.action.init&&null!=s&&(c=s),t===OrgChart.action.centerNode&&null!=s&&(c=s),o.response=e,o._lastSize={width:o.width(),height:o.height()};A=o.ui.svg("100%","100%",c,o.config,a);if(o._initialized){var w=o.getSvg(),I=w.parentNode;I.removeChild(w),I.insertAdjacentHTML("afterbegin",A),o._attachEventHandlers(),o.xScrollUI.addListener(o.getSvg()),o.yScrollUI.addListener(o.getSvg()),o.xScrollUI.setPosition(),o.yScrollUI.setPosition()}else o.element.innerHTML=o.ui.css()+A+o.ui.menuButton(o.config)+o.ui.aiButton(o.config),o._attachEventHandlers(),o.xScrollUI.create(o.width(),o.config.padding),o.xScrollUI.setPosition(),o.xScrollUI.addListener(o.getSvg()),o.yScrollUI.create(o.height(),o.config.padding),o.yScrollUI.setPosition(),o.yScrollUI.addListener(o.getSvg()),o.config.enableSearch&&o.searchUI.init(o),o.aiUI.init(o),o.orgScribeUI.init(o),o.powerPointPreviewUI.init(o),o.pdfPreviewUI.init(o),o.svgPreviewUI.init(o),o.pngPreviewUI.init(o),o.toolbarUI.init(o,o.config.toolbar),o.undoRedoUI.init(o),o.controlsUI.init(o);var k=!1,C=o.response.animations;if(C[0].length>0){o._hideBeforeAnimation(C[0].length);for(h=0;h<C[0].length;h++)C[0][h]=o.getNodeElement(C[0][h]);OrgChart.animate(C[0],C[1],C[2],o.config.anim.duration,o.config.anim.func,function(){k||(n&&n.call(o),OrgChart.events.publish("redraw",[o]),o._showAfterAnimation(),k=!0)})}t===OrgChart.action.centerNode?OrgChart.animate(o.getSvg(),{viewbox:s},{viewbox:o.response.viewBox},o.config.anim.duration,o.config.anim.func,function(){o.ripple(i.options.rippleId),k||(n&&n.call(o),OrgChart.events.publish("redraw",[o]),o._showAfterAnimation(),k=!0)},function(){o.xScrollUI.setPosition(),o.yScrollUI.setPosition()}):!s||!o.response||s[0]==o.response.viewBox[0]&&s[1]==o.response.viewBox[1]&&s[2]==o.response.viewBox[2]&&s[3]==o.response.viewBox[3]||t!==OrgChart.action.insert&&t!==OrgChart.action.expand&&t!==OrgChart.action.collapse&&t!==OrgChart.action.update&&t!==OrgChart.action.init?0==C[0].length&&(k||(n&&n.call(o),OrgChart.events.publish("redraw",[o]),k=!0)):OrgChart.animate(o.getSvg(),{viewbox:s},{viewbox:o.response.viewBox},2*o.config.anim.duration,o.config.anim.func,function(){o.xScrollUI.setPosition(),o.yScrollUI.setPosition(),k||(n&&n.call(o),OrgChart.events.publish("redraw",[o]),k=!0)}),o._initialized||(o._initialized=!0,o.filterUI.update(),o._ai.setContext(),OrgChart.events.publish("init",[o])),!o._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(o._loaded=!0)}else{var L=e.boundary,S=L.maxX-L.minX,N=L.maxY-L.minY,A=o.ui.svg(S,N,[L.minX,L.minY,S,N],o.config,a,l);n.call(o,A,e)}}},function(e){OrgChart.events.publish("ready",[o,e])})}else console.error("Cannot load the chart with size 0! If you are using the OrgChart within tabs set OrgChart.LAZY_LOADING to true! ")},OrgChart.prototype._setInitialSizeIfNotSet=function(){this.mainElement.style.overflow="hidden",this.mainElement.style.position="relative",0==this.mainElement.offsetHeight&&(this.mainElement.style.height="100%",0==this.mainElement.offsetHeight&&(this.mainElement.style.height="700px")),0==this.mainElement.offsetWidth&&(this.mainElement.style.width="100%",0==this.mainElement.offsetWidth&&(this.mainElement.style.width="700px"))},OrgChart.prototype.width=function(){return this.element.offsetWidth},OrgChart.prototype.height=function(){return this.element.offsetHeight},OrgChart.prototype.getViewBox=function(){var e=this.getSvg();return OrgChart._getViewBox(e)},OrgChart.prototype.setViewBox=function(e){this.getSvg().setAttribute("viewBox",e.toString())},OrgChart.prototype.getScale=function(e){return e||(e=this.getViewBox()),OrgChart.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},OrgChart.prototype.setScale=function(e){e>this.config.scaleMax&&(e=this.config.scaleMax),e<this.config.scaleMin&&(e=this.config.scaleMin);var t=this.getViewBox().slice(0),i=this.width(),n=this.height(),o=i/t[2],r=n/t[3],a=o>r?r:o,l=t,s=t[2],c=t[3];return t[2]=t[2]/(e/a),t[3]=t[3]/(e/a),t[0]=l[0]-(t[2]-s)/2,t[1]=l[1]-(t[3]-c)/2,this.setViewBox(t),OrgChart.events.publish("redraw",[this]),e},OrgChart.prototype.ripple=function(e,t,i){var n=this.getNode(e);if(null!=n){var o=this.getNodeElement(e);if(null!=o){var r=this.getScale(),a=n.w/2,l=n.h/2;if(void 0!==t&&void 0!==i){var s=o.getBoundingClientRect();a=t/r-s.left/r,l=i/r-s.top/r}var c=n.w,d=n.h,h=c-a>a?c-a:a,p=d-l>l?d-l:l,u=h>p?h:p,f=document.createElementNS("http://www.w3.org/2000/svg","g"),g=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),m=document.createElementNS("http://www.w3.org/2000/svg","rect"),x=document.createElementNS("http://www.w3.org/2000/svg","circle"),b=OrgChart.randomId();g.setAttribute("id",b);var y={ripple:OrgChart.t(n.templateName,n.min,this.getScale()).ripple,node:n};OrgChart.events.publish("ripple",[this,y]),m.setAttribute("x",y.ripple.rect?y.ripple.rect.x:0),m.setAttribute("y",y.ripple.rect?y.ripple.rect.y:0),m.setAttribute("width",y.ripple.rect?y.ripple.rect.width:n.w),m.setAttribute("height",y.ripple.rect?y.ripple.rect.height:n.h),m.setAttribute("rx",y.ripple.radius),m.setAttribute("ry",y.ripple.radius),x.setAttribute("clip-path","url(#"+b+")"),x.setAttribute("cx",a),x.setAttribute("cy",l),x.setAttribute("r",0),x.setAttribute("fill",y.ripple.color),x.setAttribute("class","boc-ripple"),g.appendChild(m),f.appendChild(g),f.appendChild(x),o.appendChild(f),OrgChart.animate(x,{r:0,opacity:1},{r:u,opacity:0},500,OrgChart.anim.outPow,function(){o.removeChild(f)})}}},OrgChart.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var i=this;this._centerInNodesTimeout=OrgChart.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){i.draw(OrgChart.action.update,null,function(){e&&e.call(i)})})}},OrgChart.prototype.centerInNodes=function(e,t){var i=this.getViewBox();this._centerInNodes||(this._centerInNodes=JSON.stringify(i));var n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;for(var l of e)l.y<n&&(n=l.y),l.y+l.h>o&&(o=l.y+l.h),l.x<r&&(r=l.x),l.x+l.w>a&&(a=l.x+l.w);var s=a-r,c=o-n,d=(h=s/(s+2*this.config.padding))>(p=c/(c+2*this.config.padding))?p:h;d>this.config.scaleMax&&(d=this.config.scaleMax),d<this.config.scaleMin&&(d=this.config.scaleMin);var h,p,u=[50,50],f=this.width(),g=this.height(),m=(h=f/i[2])>(p=g/i[3])?p:h,x=i,b=i[2],y=i[3];i[2]=i[2]/(d/m),i[3]=i[3]/(d/m),i[0]=x[0]-(i[2]-b)/(100/u[0]),i[1]=x[1]-(i[3]-y)/(100/u[1]),i[0]=r-(f/d-s)/2,i[1]=n-(g/d-c)/2;var v=this;this._centerInNodesTimeout&&(clearTimeout(this._centerInNodesTimeout),this._centerInNodesTimeout=null),this._centerInNodesTimeout=OrgChart.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:i},300,this.config.anim.func,function(){v.draw(OrgChart.action.update,null,function(){t&&t.call(v)})})},OrgChart.prototype.center=function(e,t,i){var n,o,r=e,a=!0,l=!0;t&&null!=t.parentState&&(n=t.parentState),t&&null!=t.childrenState&&(o=t.childrenState),t&&null!=t.rippleId&&(r=t.rippleId),t&&null!=t.vertical&&(a=t.vertical),t&&null!=t.horizontal&&(l=t.horizontal);var s={parentState:n,childrenState:o,rippleId:r,vertical:a,horizontal:l};this._draw(!1,OrgChart.action.centerNode,{id:e,options:s},i)},OrgChart.prototype.fit=function(e){this.config.scaleInitial=OrgChart.match.boundary,this._draw(!0,OrgChart.action.init,{method:"fit"},e)},OrgChart.prototype.fitIfOutside=function(e){this.config.scaleInitial=OrgChart.match.boundaryIfOutside,this._draw(!0,OrgChart.action.init,{method:"fit"},e)},OrgChart.prototype.toggleFullScreen=function(){var e=document.querySelector("["+OrgChart.attr.tlbr+"r='fullScreen']");document.fullscreenElement==this.element||document.webkitFullscreenElement==this.element||document.mozFullScreenElement==this.element||document.msFullscreenElement==this.element?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),e&&(e.innerHTML=OrgChart.toolbarUI.openFullScreenIcon)):(this.element.requestFullscreen?this.element.requestFullscreen():this.element.mozRequestFullScreen?this.element.mozRequestFullScreen():this.element.webkitRequestFullscreen?this.element.webkitRequestFullscreen():this.element.msRequestFullscreen&&this.element.msRequestFullscreen(),e&&(e.innerHTML=OrgChart.toolbarUI.closeFullScreenIcon))},OrgChart.prototype.getNode=function(e){return this.nodes[e]},OrgChart.prototype.setLayout=function(e,t){t||(t="base"),this._layoutConfigs[t].layout=e,"base"==t&&(this.config.layout=e),this._draw(!1,OrgChart.action.update)},OrgChart.prototype.setOrientation=function(e,t,i){var n=this;t||(t="base"),this._layoutConfigs[t].orientation=e,"base"==t&&(this.config.orientation=e),this._draw(!1,OrgChart.action.update,void 0,function(){n.getScale(),OrgChart._moveToBoundaryArea(n.getSvg(),n.getViewBox(),n.response.boundary,function(){n._draw(!0,OrgChart.action.pan),i&&i()})})},OrgChart.prototype.search=function(e,t,i){return OrgChart.isNEU(t)&&(t=this.searchUI._searchFields),OrgChart.isNEU(i)&&(i=t),OrgChart._search.search(this.config.nodes,e,t,i,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},OrgChart.prototype._hideBeforeAnimation=function(e){if(1!=this._hideBeforeAnimationCompleted&&!(e&&e<OrgChart.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName("text");if(t.length>OrgChart.TEXT_THRESHOLD)for(var i=0;i<t.length;i++)t[i].style.display="none";var n=this.element.getElementsByTagName("image");if(n.length>OrgChart.IMAGES_THRESHOLD)for(i=0;i<n.length;i++)n[i].style.display="none";var o=this.element.querySelectorAll("["+OrgChart.attr.link_id+"]");if(o.length>OrgChart.LINKS_THRESHOLD)for(i=0;i<o.length;i++)o[i].style.display="none";var r=this.element.querySelectorAll("["+OrgChart.attr.control_expcoll_id+"]");if(r.length>OrgChart.BUTTONS_THRESHOLD)for(i=0;i<r.length;i++)r[i].style.display="none";var a=this.element.querySelectorAll("["+OrgChart.attr.control_up_id+"]");if(a.length>OrgChart.BUTTONS_THRESHOLD)for(i=0;i<a.length;i++)a[i].style.display="none";this._hideBeforeAnimationCompleted=!0}},OrgChart.prototype._showAfterAnimation=function(){for(var e=this.element.getElementsByTagName("text"),t=0;t<e.length;t++)e[t].style.display="";var i=this.element.getElementsByTagName("image");for(t=0;t<i.length;t++)i[t].style.display="";var n=this.element.querySelectorAll("["+OrgChart.attr.link_id+"]");for(t=0;t<n.length;t++)n[t].style.display="";var o=this.element.querySelectorAll("["+OrgChart.attr.control_expcoll_id+"]");for(t=0;t<o.length;t++)o[t].style.display="";var r=this.element.querySelectorAll("["+OrgChart.attr.control_up_id+"]");for(t=0;t<r.length;t++)r[t].style.display="";this._hideBeforeAnimationCompleted=!1},OrgChart.prototype.isChild=function(e,t){for(var i=this.getNode(t);i;){if(i.id==e)return!0;i=i.parent?i.parent:i.stParent}return!1},OrgChart.prototype.getCollapsedIds=function(e){for(var t=[],i=0;i<e.childrenIds.length;i++){var n=this.getNode(e.childrenIds[i]);1==n.collapsed&&t.push(n.id)}return t},OrgChart.prototype.stateToUrl=function(){if(this.manager.state){var e={};return e.exp=this.manager.state.exp.join("*"),e.min=this.manager.state.min.join("*"),e.adjustify=this.manager.state.adjustify.x+"*"+this.manager.state.adjustify.y,e.scale=this.manager.state.scale,e.y=this.manager.state.x,e.x=this.manager.state.y,new URLSearchParams(e).toString()}return""},OrgChart.prototype.generateId=function(){for(;;){var e="_"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);if(null==this.nodes||!this.nodes.hasOwnProperty(e))return e}},OrgChart.prototype.moveNodesToVisibleArea=function(e,t){for(var i=this,n=this.roots[0],o=this.getSvg(),r=this.getViewBox(),a=null,l=null,s=null,c=null,d=0;d<e.length;d++){var h=this.nodes[e[d]];null!=h.x&&null!=h.y&&((null===a||a<h.x+h.w)&&(a=h.x+h.w),(null===l||l<h.y+h.h)&&(l=h.y+h.h),(null===s||s>h.x)&&(s=h.x),(null===c||c>h.y)&&(c=h.y))}if(null!=a&&null!=l&&null!=s&&null!=c){var p=this.width(),u=this.height(),f=p/(y=a-s+2*this.config.padding),g=u/(v=l-c+2*this.config.padding),m=f>g?g:f,x=Math.ceil(p/m),b=Math.ceil(u/m),y=0,v=0;if(x-2*this.config.padding>=a-s)y=(a+s)/2-x/2;else switch(y=n.x-x/2+OrgChart.manager._getNodeWidth(n,this.config)/2,this.config.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:(y=-(x/2-(s-a)/2))<this.config.padding-x&&(y=this.config.padding-x);break;case OrgChart.orientation.left:case OrgChart.orientation.bottom_left:case OrgChart.orientation.top_left:case OrgChart.orientation.left_top:(y=-(x/2-(a-s)/2))>-this.config.padding&&(y=-this.config.padding)}if(b-2*this.config.padding>=l-c)v=(l+c)/2-b/2;else switch((v=-(b/2-(l-c)/2))>-this.config.padding&&(v=-this.config.padding),this.config.orientation){case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:(v=-(b/2-(c-l)/2))<this.config.padding-b&&(v=this.config.padding-b);break;case OrgChart.orientation.left:case OrgChart.orientation.right:v=n.y-b/2+OrgChart.manager._getNodeWidth(n,this.config)/2}var _=[y,v,x,b];r[0]!==_[0]||r[1]!==_[1]?OrgChart.animate(o,{viewBox:r},{viewBox:_},this.config.anim.duration,this.config.anim.func,function(){i.draw(OrgChart.action.update,void 0,t)}):t&&t()}},OrgChart.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!OrgChart.isNEU(e.pid)&&this.getNode(e.pid)},OrgChart.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),OrgChart.events.removeForEventId(this._event_id),this.element.innerHTML=null},OrgChart.prototype.canUpdateLink=function(e,t){if(null==t||null==t)return!1;if(null==e||null==e)return!1;if(e==t)return!1;var i=this.getNode(t),n=this.getNode(e);return!(i&&n&&(i.isPartner||i.hasPartners&&n.isAssistant||i.hasAssistants&&n.isPartner))&&!this.isChild(e,t)},OrgChart.prototype._canUpdateLink=OrgChart.prototype.canUpdateLink,OrgChart.prototype.updateNode=function(e,t,i,n){if(e){var o=this,r=this.get(e.id);if(!0===i&&!1===OrgChart.events.publish("update",[this,r,e]))return!1;this.update(e),this._ai.setContext(),OrgChart.events.publish("updated",[this]),this.filterUI.update();var a=this.getNode(e.id),l=a.pid;null==l&&(l=a.stpid),this._draw(!1,OrgChart.action.update,{id:l},function(){n||o.ripple(e.id),t&&t()})}},OrgChart.prototype.update=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e.id){this._putInUndoStack(),this.clearRedo(),this.config.nodes[t]=e;break}return this},OrgChart.prototype.removeNode=function(e,t,i){if(!this.canRemove(e))return!1;var n=this._getNewPidsAndStpidsForIds(e);return(!0!==i||!1!==OrgChart.events.publish("remove",[this,e,n]))&&(this.remove(e),this._ai.setContext(),OrgChart.events.publish("updated",[this]),this.filterUI.update(),this._draw(!1,OrgChart.action.update,null,function(){t&&t()}),!0)},OrgChart.prototype.remove=function(e){var t=this.get(e);if(t){this._putInUndoStack(),this.clearRedo();for(var i=this.config.nodes.length-1;i>=0;i--)this.config.nodes[i].pid!=e&&this.config.nodes[i].stpid!=e||(this.config.nodes[i].pid=t.pid,this.config.nodes[i].stpid=t.stpid),this.config.nodes[i].id==e&&this.config.nodes.splice(i,1)}return this},OrgChart.prototype._getNewPidsAndStpidsForIds=function(e){var t=this.get(e),i={},n={};if(t)for(var o=this.config.nodes.length-1;o>=0;o--)this.config.nodes[o].pid==e?i[this.config.nodes[o].id]=t.pid:this.config.nodes[o].stpid==e&&(n[this.config.nodes[o].id]=t.stpid);return{newPidsForIds:i,newStpidsForIds:n}},OrgChart.prototype.addNode=function(e,t,i){var n=this;if(!0===i&&!1===OrgChart.events.publish("add",[this,e]))return!1;this.add(e),this._ai.setContext(),OrgChart.events.publish("updated",[this]),this.filterUI.update(),n._draw(!1,OrgChart.action.insert,{id:e.pid,insertedNodeId:e.id},function(){n.ripple(e.id),t&&t()})},OrgChart.prototype.add=function(e){if(null==e.id&&console.error("Call addNode without id"),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!OrgChart.isNEU(e.pid)){var t=this._get(e.pid);t&&(null!=t.movex&&(e.movex=t.movex),null!=t.movey&&(e.movey=t.movey))}return this.config.nodes.push(e),this},OrgChart.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,OrgChart.action.update,void 0,t)},OrgChart.prototype._replaceIds=function(e){for(var replaceSecondLinksIds=function(t){for(var i=0;i<t.length;i++){var n=t[i];for(var o in e){var r=e[o];n.from==o&&(n.from=r),n.to==o&&(n.to=r)}}},t=0;t<this.config.nodes.length;t++){var i=this.config.nodes[t];for(var n in e){var o=e[n];i.id==n&&(i.id=o),i.pid==n&&(i.pid=o),i.stpid==n&&(i.stpid=o),i.ppid==n&&(i.ppid=o)}}if(Array.isArray(this.config.roots))for(t=0;t<this.config.roots.length;t++)OrgChart.isNEU(e[this.config.roots[t]])||(this.config.roots[t]=e[this.config.roots[t]]);if(this.nodes)for(var r in this.nodes)if(!OrgChart.isNEU(e[r])){o=e[r];(a=this.nodes[r]).id=o,this.nodes[o]=a}if(this.manager.oldNodes)for(var r in this.manager.oldNodes)if(!OrgChart.isNEU(e[r])){o=e[r];(a=this.manager.oldNodes[r]).id=o,this.manager.oldNodes[o]=a}if(this.roots)for(var r in this.roots)if(!OrgChart.isNEU(e[r])){var a;o=e[r];(a=this.roots[r]).id=o,this.roots[o]=a}replaceSecondLinksIds(this.config.clinks),replaceSecondLinksIds(this.config.slinks),replaceSecondLinksIds(this.config.groupDottedLines),replaceSecondLinksIds(this.config.dottedLines)},OrgChart.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!OrgChart.isNEU(e)&&"string"==typeof e&&(-1!=e.indexOf("balkan_group_dotted_")||-1!=e.indexOf("balkan_dotted_"))){var i=(e=(e=e.replace("balkan_group_dotted_","")).replace("balkan_dotted_","")).indexOf("_balkan_id_");if(e=e.substring(i+11),t=this.__get(e))return t}return null},OrgChart.prototype.__get=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e)return this.config.nodes[t];return null},OrgChart.prototype.get=function(e){var t=this._get(e);return null==t?null:JSON.parse(JSON.stringify(t))},OrgChart.prototype.canRemove=function(e){var t=this.getNode(e);return!!t&&(!t.hasPartners&&!t.hasAssistants)},void 0===OrgChart&&(OrgChart={}),OrgChart.animate=function(e,t,i,n,o,r,a){var l,s=10,c=1,d=n/s+1;return document.getElementsByTagName("g"),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(i)||(i=[i]),l=setInterval(function(){for(var h=0;h<e.length;h++)for(var p in i[h]){var u=OrgChart._arrayContains(["top","left","right","bottom","width","height"],p.toLowerCase())?"px":"";switch(p.toLowerCase()){case"d":var f=o((c*s-s)/n)*(i[h][p][0]-t[h][p][0])+t[h][p][0],g=o((c*s-s)/n)*(i[h][p][1]-t[h][p][1])+t[h][p][1];e[h].setAttribute("d",e[h].getAttribute("d")+" L"+f+" "+g);break;case"r":var m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("r",m);break;case"x1":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("x1",m);break;case"x2":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("x2",m);break;case"y1":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("y1",m);break;case"y2":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].setAttribute("y2",m);break;case"scrolltop":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].scrollTop=m;break;case"rotate3d":if(i[h][p]){var x=t[h][p],b=i[h][p],y=[0,0,0,0];for(var v in x)y[v]=o((c*s-s)/n)*(b[v]-x[v])+x[v];e[h].style.transform="rotate3d("+y.toString()+"deg)"}break;case"transform":if(i[h][p]){x=t[h][p],b=i[h][p],y=[0,0,0,0,0,0];for(var v in x)y[v]=o((c*s-s)/n)*(b[v]-x[v])+x[v];e[h].hasAttribute("transform")?e[h].setAttribute("transform","matrix("+y.toString()+")"):e[h].style.transform="matrix("+y.toString()+")"}break;case"viewbox":if(i[h][p]){x=t[h][p],b=i[h][p],y=[0,0,0,0];for(var v in x)y[v]=o((c*s-s)/n)*(b[v]-x[v])+x[v];e[h].setAttribute("viewBox",y.toString())}break;case"margin":if(i[h][p]){x=t[h][p],b=i[h][p],y=[0,0,0,0];for(var v in x)y[v]=o((c*s-s)/n)*(b[v]-x[v])+x[v];var _="";for(v=0;v<y.length;v++)_+=parseInt(y[v])+"px ";e[h]&&e[h].style&&(e[h].style[p]=_)}break;case"scrolly":m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h].scrollTo(0,m);break;default:m=o((c*s-s)/n)*(i[h][p]-t[h][p])+t[h][p];e[h]&&e[h].style&&(e[h].style[p]=m+u)}}if(a){m=o((c*s-s)/n);a(m)}(c+=1)>d+1&&(clearInterval(l),r&&r(e))},s)},OrgChart.anim={},OrgChart.anim.inPow=function(e){return e<0?0:e>1?1:Math.pow(e,2)},OrgChart.anim.outPow=function(e){if(e<0)return 0;if(e>1)return 1;return-1*(Math.pow(e-1,2)+-1)},OrgChart.anim.inOutPow=function(e){if(e<0)return 0;if(e>1)return 1;if((e*=2)<1)return OrgChart.anim.inPow(e,2)/2;return-.5*(Math.pow(e-2,2)+-2)},OrgChart.anim.inSin=function(e){return e<0?0:e>1?1:1-Math.cos(e*(Math.PI/2))},OrgChart.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(e*(Math.PI/2))},OrgChart.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},OrgChart.anim.inExp=function(e){return e<0?0:e>1?1:Math.pow(2,10*(e-1))},OrgChart.anim.outExp=function(e){return e<0?0:e>1?1:1-Math.pow(2,-10*e)},OrgChart.anim.inOutExp=function(e){return e<0?0:e>1?1:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,10*(-2*e+1)))},OrgChart.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},OrgChart.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},OrgChart.anim.inOutCirc=function(e){return e<0?0:e>1?1:e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(2*e-2)*(2*e-2))+1)},OrgChart.anim.rebound=function(e){return e<0?0:e>1?1:e<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-1.5/2.75)*(e-1.5/2.75)+.75):e<2.5/2.75?1-(7.5625*(e-2.25/2.75)*(e-2.25/2.75)+.9375):1-(7.5625*(e-2.625/2.75)*(e-2.625/2.75)+.984375)},OrgChart.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},OrgChart.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},OrgChart.anim.inOutBack=function(e){return e<0?0:e>1?1:e<.5?4*e*e*(7.1898*e-2.5949)*.5:.5*((2*e-2)*(2*e-2)*(3.5949*(2*e-2)+2.5949)+2)},OrgChart.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},OrgChart.anim.expPulse=function(e){return Math.exp(-2*Math.pow(e,2))},void 0===OrgChart&&(OrgChart={}),OrgChart.prototype._attachEventHandlers=function(e){if(this.config.interactive){e=this.getSvg();var t=this;e.addEventListener("touchstart",function(e){e.preventDefault(),t._globalMouseDownHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener("mousedown",function(e){t._globalMouseDownHandler.apply(t,[this,e])},{passive:!0}),e.addEventListener("contextmenu",function(e){t._globalContextHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener("dblclick",function(e){t._globalDbClickHandler.apply(t,[this,e])},{passive:!0}),this.config.mouseScrool!=OrgChart.action.none&&e.addEventListener("wheel",function(e){t._mouseScrollHandler.apply(t,[this,e])},{passive:!1});var i=this.getMenuButton();i&&i.addEventListener("click",function(e){t._menuClickHandler.apply(t,[this,e])})}},void 0===OrgChart&&(OrgChart={}),OrgChart.VERSION="9.1.75",OrgChart.orientation={},OrgChart.orientation.top=0,OrgChart.orientation.bottom=1,OrgChart.orientation.right=2,OrgChart.orientation.left=3,OrgChart.orientation.top_left=4,OrgChart.orientation.bottom_left=5,OrgChart.orientation.right_top=6,OrgChart.orientation.left_top=7,OrgChart.anchor={top_right:"top_right",right_top:"right_top",bottom_right:"bottom_right",right_bottom:"right_bottom",top_left:"top_left",left_top:"left_top",bottom_left:"bottom_left",left_bottom:"left_bottom",top:"top",bottom:"bottom",left:"left",right:"right"},OrgChart.align={},OrgChart.align.center=OrgChart.CENTER=8,OrgChart.align.orientation=OrgChart.ORIENTATION=9,OrgChart.attr={},OrgChart.attr.l="data-l",OrgChart.attr.id="data-id",OrgChart.attr.sl="data-sl",OrgChart.attr.lbl="data-lbl",OrgChart.attr.val="data-val",OrgChart.attr.tlbr="data-tlbr",OrgChart.attr.item="data-item",OrgChart.attr.layout="data-layout",OrgChart.attr.node_id="data-n-id",OrgChart.attr.link_id="data-l-id",OrgChart.attr.field_name="data-f-name",OrgChart.attr.c_link_to="data-c-l-to",OrgChart.attr.c_link_from="data-c-l-from",OrgChart.attr.s_link_to="data-s-l-to",OrgChart.attr.s_link_from="data-s-l-from",OrgChart.attr.control_add="data-ctrl-add",OrgChart.attr.control_expcoll_id="data-ctrl-ec-id",OrgChart.attr.control_up_id="data-ctrl-up-id",OrgChart.attr.control_export_menu="data-ctrl-menu",OrgChart.attr.control_node_menu_id="data-ctrl-n-menu-id",OrgChart.attr.control_node_circle_menu_id="data-ctrl-n-c-menu-id",OrgChart.attr.control_node_circle_menu_name="data-ctrl-n-c-menu-name",OrgChart.attr.control_node_circle_menu_wrraper_id="data-ctrl-n-c-menu-wrapper-id",OrgChart.attr.width="data-width",OrgChart.attr.text_overflow="data-text-overflow",OrgChart.ID="id",OrgChart.PID="pid",OrgChart.STPID="stpid",OrgChart.TAGS="tags",OrgChart.NODES="nodes",OrgChart.ELASTIC="elastic",OrgChart.ASSISTANT="Assistant",OrgChart.action={},OrgChart.action.expand=0,OrgChart.action.collapse=1,OrgChart.action.maximize=101,OrgChart.action.minimize=102,OrgChart.action.expandCollapse=501,OrgChart.action.edit=1,OrgChart.action.zoom=2,OrgChart.action.ctrlZoom=22,OrgChart.action.scroll=41,OrgChart.action.xScroll=3,OrgChart.action.yScroll=4,OrgChart.action.none=5,OrgChart.action.init=6,OrgChart.action.update=7,OrgChart.action.move=70,OrgChart.action.pan=8,OrgChart.action.centerNode=9,OrgChart.action.resize=10,OrgChart.action.insert=11,OrgChart.action.insertfirst=12,OrgChart.action.details=13,OrgChart.action.exporting=14,OrgChart.none=400001,OrgChart.scroll={},OrgChart.scroll.visible=!0,OrgChart.scroll.smooth=12,OrgChart.scroll.speed=120,OrgChart.scroll.safari={smooth:12,speed:250},OrgChart.match={},OrgChart.match.height=100001,OrgChart.match.width=100002,OrgChart.match.boundary=100003,OrgChart.match.boundaryIfOutside=100004,OrgChart.match.none=1,OrgChart.movable={},OrgChart.movable.node="node",OrgChart.movable.tree="tree",OrgChart.movable.detachTree="detachTree",OrgChart.layout={},OrgChart.layout.normal=OrgChart.normal=0,OrgChart.layout.mixed=OrgChart.mixed=1,OrgChart.layout.tree=OrgChart.tree=2,OrgChart.layout.treeLeftOffset=OrgChart.treeLeftOffset=3,OrgChart.layout.treeRightOffset=OrgChart.treeRightOffset=4,OrgChart.layout.treeLeft=5,OrgChart.layout.treeRight=6,OrgChart.layout.grid=-1,OrgChart.layout.treeList=-2,OrgChart.nodeOpenTag="<g "+OrgChart.attr.node_id+'="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" '+OrgChart.attr.sl+'="{sl}" '+OrgChart.attr.l+'="{level}" {lcn}>',OrgChart.linkOpenTag="<g "+OrgChart.attr.link_id+'="[{id}][{child-id}]" class="{class}">',OrgChart.expcollOpenTag="<g "+OrgChart.attr.control_expcoll_id+'="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">',OrgChart.upOpenTag="<g "+OrgChart.attr.control_up_id+'="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">',OrgChart.linkFieldsOpenTag='<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">',OrgChart.grCloseTag="</g>",OrgChart.A5={width:420,height:595},OrgChart.A4={width:595,height:842},OrgChart.A3={width:842,height:1191},OrgChart.A2={width:1191,height:1684},OrgChart.A1={width:1684,height:2384},OrgChart.Letter={width:612,height:791},OrgChart.Legal={width:612,height:1009},OrgChart.Legal={width:612,height:1009},OrgChart.Widescreen={width:720,height:1280},OrgChart.Standard={width:720,height:960},OrgChart.COLLAPSE_PARENT_NEIGHBORS=1,OrgChart.COLLAPSE_SUB_CHILDRENS=2,OrgChart.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,OrgChart.TEXT_THRESHOLD=4e3,OrgChart.IMAGES_THRESHOLD=1e3,OrgChart.LINKS_THRESHOLD=2e3,OrgChart.BUTTONS_THRESHOLD=700,OrgChart.ANIM_THRESHOLD=500,OrgChart.IT_IS_LONELY_HERE='<g transform="translate(-100, 0)" style="cursor:pointer;" '+OrgChart.attr.control_add+'="control-add"><text fill="#039be5">{link}</text></g>',OrgChart.RES={},OrgChart.IT_IS_LONELY_HERE_LINK=OrgChart.RES.IT_IS_LONELY_HERE_LINK="It's lonely here, add your first node",OrgChart.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,OrgChart.STRING_TAGS=!1,OrgChart.MAX_NODES_MESS="The trial has expired or 200 nodes limit was reached! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>",OrgChart.OFFLINE_MESS="The evaluation version requires internet connection! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>",OrgChart.SEARCH_PLACEHOLDER="Search... type ? to get help.",OrgChart.SEARCH_HELP_SYMBOL="?",OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,OrgChart.SEARCH_RESULT_LIMIT=10,OrgChart.IMPORT_MESSAGE="Choose the columns (fields) in your data file that contain the required information.",OrgChart.FIXED_POSITION_ON_CLICK=!1,OrgChart.RENDER_LINKS_BEFORE_NODES=!1,OrgChart.RENDER_CLINKS_BEFORE_NODES=!1,OrgChart.MIXED_LAYOUT_ALL_NODES=!1,OrgChart.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,OrgChart.LINK_ROUNDED_CORNERS=5,OrgChart.MOVE_STEP=5,OrgChart.CLINK_CURVE=1,OrgChart.MAX_DEPTH=200,OrgChart.SCALE_FACTOR=1.44,OrgChart.LAZY_LOADING_FACTOR="auto",OrgChart.LAZY_LOADING=!0,OrgChart.ARRAY_FIELDS=["tags"],OrgChart.CSV_DELIMITER=",",OrgChart.EDITFORM_CLOSE_BTN='<svg data-edit-from-close class="boc-edit-form-close"><path style="fill:#ffffff;" d="M21.205,5.007c-0.429-0.444-1.143-0.444-1.587,0c-0.429,0.429-0.429,1.143,0,1.571l8.047,8.047H1.111 C0.492,14.626,0,15.118,0,15.737c0,0.619,0.492,1.127,1.111,1.127h26.554l-8.047,8.032c-0.429,0.444-0.429,1.159,0,1.587 c0.444,0.444,1.159,0.444,1.587,0l9.952-9.952c0.444-0.429,0.444-1.143,0-1.571L21.205,5.007z"></path></svg>',OrgChart.ESCAPE_HTML=!1,OrgChart.VERTICAL_CHILDREN_ASSISTANT=!1,OrgChart.EXPORT_PAGES_CUT_NODES=!1,OrgChart.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,OrgChart.FILTER_ALPHABETICALLY=!0,OrgChart.SERVER_PREFIX=".azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs",OrgChart.FUNC_URL_NAME="func-url-orgchartjs",OrgChart.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,OrgChart.AI_SYSTEM_MESSAGES=[],OrgChart.ORGSCRIBE_OFFSET=" ",OrgChart.TREELIST_WHEEL_STEP="auto",OrgChart.TREELIST_SCROLLBAR_WIDTH=10,OrgChart.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,OrgChart.REQUEST_CUSTOM_HEADERS={},OrgChart.SLINK_GAP=7,OrgChart._intersects=function(e,t,i){var n=e.x-i.siblingSeparation/4,o=e.y,r=e.x+e.w+i.siblingSeparation/4,a=e.y;switch(i.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:n=e.x,o=e.y-i.siblingSeparation/4,r=e.x,a=e.y+e.h+i.siblingSeparation/4}var l,s,c=t.p,d=t.q,h=t.r,p=t.s,u=(r-n)*(p-d)-(h-c)*(a-o);return 0!==u&&(l=((o-a)*(h-n)+(r-n)*(p-o))/u,0<(s=((p-d)*(h-n)+(c-h)*(p-o))/u)&&s<1&&0<l&&l<1)},OrgChart._addPoint=function(e,t,i,n,o){switch(i.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:return OrgChart._addPointTop(e,t,i,n,o);case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return OrgChart._addPointBottom(e,t,i,n,o);case OrgChart.orientation.left:case OrgChart.orientation.left_top:return OrgChart._addPointLeft(e,t,i,n,o);case OrgChart.orientation.right:case OrgChart.orientation.right_top:return OrgChart._addPointRight(e,t,i,n,o)}},OrgChart._addPointTop=function(e,t,i,n,o){var r,a,l;return"left"==o?r=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-i.siblingSeparation/2:"right"==o&&(r=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+i.siblingSeparation/2),t.push([r,t[t.length-1][1]]),t.push([r,e.y-i.levelSeparation/3]),a=t[t.length-1][1],l=r,n.p=r,n.q=a,n.r=l,n},OrgChart._addPointBottom=function(e,t,i,n,o){var r,a,l;return"left"==o?r=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-i.siblingSeparation/2:"right"==o&&(r=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+i.siblingSeparation/2),t.push([r,t[t.length-1][1]]),t.push([r,e.y+e.h+i.levelSeparation/3]),a=t[t.length-1][1],l=r,n.p=r,n.q=a,n.r=l,n},OrgChart._addPointLeft=function(e,t,i,n,o){var r,a=t[t.length-1][0];"bottom"==o?r=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+i.siblingSeparation/2:"top"==o&&(r=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-i.siblingSeparation/2),t.push([t[t.length-1][0],r]),t.push([e.x-i.levelSeparation/3,r]),a=t[t.length-1][0];var l=r;return n.p=a,n.q=r,n.s=l,n},OrgChart._addPointRight=function(e,t,i,n,o){var r,a=t[t.length-1][0];"bottom"==o?r=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+i.siblingSeparation/2:"top"==o&&(r=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-i.siblingSeparation/2),t.push([t[t.length-1][0],r]),t.push([e.x+e.w+i.levelSeparation/3,r]),a=t[t.length-1][0];var l=r;return n.p=a,n.q=r,n.s=l,n},OrgChart._addConnectorLines=function(e,t){OrgChart._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),OrgChart._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),OrgChart._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},OrgChart._addConnectorLine=function(e,t){if(t.x1==t.x2){if(e.x[t.x1]||(e.x[t.x1]=[]),t.y1>t.y2){var i=t.y1;t.y1=t.y2,t.y2=i}e.x[t.x1].push({y1:t.y1,y2:t.y2})}if(t.y1==t.y2){if(e.y[t.y1]||(e.y[t.y1]=[]),t.x1>t.x2){var n=t.x1;t.x1=t.x2,t.x2=n}e.y[t.y1].push({x1:t.x1,x2:t.x2})}},OrgChart._addLineToPath=function(e,t,i){return OrgChart._avoidOverlapping(t,i),e.push([i.x1,i.y1]),e.push([i.x2,i.y2]),OrgChart._addConnectorLine(t,i),i},OrgChart._slinkRemoveUnusedPoints=function(e){for(var t=e.length-2;t>=1;t--){var i=e[t-1],n=e[t],o=e[t+1];(n[0]==i[0]&&n[0]==o[0]||n[1]==i[1]&&n[1]==o[1])&&e.splice(t,1)}},OrgChart._slinkAvoidOverlaping=function(e,t,i,n){for(var o=1;o<t.length;o++){var r=t[o-1],a=t[o];if(r[0]==a[0]){for(var l=e.x[a[0]];l;){var s=!0;for(var c of l)if(c.y1<=r[1]&&c.y2>=r[1]||c.y1<=a[1]&&c.y2>=a[1]){n==OrgChart.orientation.top||n==OrgChart.orientation.top_left?"left"==i?a[0]-=OrgChart.SLINK_GAP:"right"==i&&(a[0]+=OrgChart.SLINK_GAP):n!=OrgChart.orientation.bottom&&n!=OrgChart.orientation.bottom_left||("right"==i?a[0]+=OrgChart.SLINK_GAP:"left"==i&&(a[0]-=OrgChart.SLINK_GAP)),s=!1;break}if(s)break;l=e.x[a[0]]}r[0]=a[0]}var d=!0;if(r[1]==a[1]&&r[0]>=a[0]&&(d=!1),d&&r[1]==a[1]){for(l=e.y[a[1]];l;){s=!0;for(var c of l)if(c.x1<=r[0]&&c.x2>=r[0]||c.x1<=a[0]&&c.x2>=a[0]){r[0]>=a[0]||(n==OrgChart.orientation.top||n==OrgChart.orientation.top_left?a[1]-=OrgChart.SLINK_GAP:n!=OrgChart.orientation.bottom&&n!=OrgChart.orientation.bottom_left||(a[1]+=OrgChart.SLINK_GAP),s=!1);break}if(s)break;l=e.y[a[1]]}r[1]=a[1]}d&&OrgChart._addConnectorLine(e,{x1:r[0],y1:r[1],x2:a[0],y2:a[1]})}},OrgChart._slinkAvoidOverlapingSecond=function(e,t,i){for(var n=1;n<t.length;n++){var o=t[n-1],r=t[n],a=!1;if(o[1]==r[1]){for(var l=e.y[r[1]];l;){var s=!0;for(var c of l)if(c.x1<=o[0]&&c.x2>=o[0]||c.x1<=r[0]&&c.x2>=r[0]){o[0]>=r[0]?(i==OrgChart.orientation.top||i==OrgChart.orientation.top_left?r[1]-=OrgChart.SLINK_GAP:i!=OrgChart.orientation.bottom&&i!=OrgChart.orientation.bottom_left||(r[1]+=OrgChart.SLINK_GAP),s=!1):a=!0;break}if(s)break;l=e.y[r[1]]}o[1]=r[1]}a||OrgChart._addConnectorLine(e,{x1:o[0],y1:o[1],x2:r[0],y2:r[1]})}},OrgChart._slinkAvoidOverlaping2=function(e,t,i,n){for(var o=1;o<t.length;o++){var r=t[o-1],a=t[o];if(r[1]==a[1]){for(var l=e.y[a[1]];l;){var s=!0;for(var c of l)if(c.x1<=r[0]&&c.x2>=r[0]||c.x1<=a[0]&&c.x2>=a[0]){n==OrgChart.orientation.left||n==OrgChart.orientation.left_top?"top"==i?a[1]-=OrgChart.SLINK_GAP:"bottom"==i&&(a[1]+=OrgChart.SLINK_GAP):n!=OrgChart.orientation.right&&n!=OrgChart.orientation.right_top||("bottom"==i?a[1]+=OrgChart.SLINK_GAP:"top"==i&&(a[1]-=OrgChart.SLINK_GAP)),s=!1;break}if(s)break;l=e.y[a[1]]}r[1]=a[1]}var d=!0;if(r[0]==a[0]&&r[1]>=a[1]&&(d=!1),d&&r[0]==a[0]){for(l=e.x[a[0]];l;){s=!0;for(var c of l)if(c.y1<=r[1]&&c.y2>=r[1]||c.y1<=a[1]&&c.y2>=a[1]){r[1]>=a[1]||(n==OrgChart.orientation.left||n==OrgChart.orientation.left_top?a[0]-=OrgChart.SLINK_GAP:n!=OrgChart.orientation.right&&n!=OrgChart.orientation.right_top||(a[0]+=OrgChart.SLINK_GAP),s=!1);break}if(s)break;l=e.x[a[0]]}r[0]=a[0]}d&&OrgChart._addConnectorLine(e,{x1:r[0],y1:r[1],x2:a[0],y2:a[1]})}},OrgChart._slinkAvoidOverlapingSecond2=function(e,t,i){for(var n=1;n<t.length;n++){var o=t[n-1],r=t[n],a=!1;if(o[0]==r[0]){for(var l=e.x[r[0]];l;){var s=!0;for(var c of l)if(c.y1<=o[1]&&c.y2>=o[1]||c.y1<=r[1]&&c.y2>=r[1]){o[1]>=r[1]?(i==OrgChart.orientation.left||i==OrgChart.orientation.left_top?r[0]-=OrgChart.SLINK_GAP:i!=OrgChart.orientation.right&&i!=OrgChart.orientation.right_top||(r[0]+=OrgChart.SLINK_GAP),s=!1):a=!0;break}if(s)break;l=e.x[r[0]]}o[0]=r[0]}a||OrgChart._addConnectorLine(e,{x1:o[0],y1:o[1],x2:r[0],y2:r[1]})}},OrgChart.prototype.getSvg=function(){return this.element.querySelector("svg")},OrgChart.prototype.getPointerElement=function(){return this.element.querySelector("g[data-pointer]")},OrgChart.prototype.getNodeElement=function(e){return this.element.querySelector("["+OrgChart.attr.node_id+"='"+e+"']")},OrgChart.prototype.getMenuButton=function(){return this.element.querySelector("["+OrgChart.attr.control_export_menu+"]")},OrgChart.notifierUI=function(){},OrgChart.notifierUI.prototype.init=function(e){this.obj=e},OrgChart.notifierUI.prototype.show=function(e,t){if(null==e)return!1;1==e&&(e=OrgChart.MAX_NODES_MESS,t="#FFCA28"),2==e&&(e=OrgChart.OFFLINE_MESS,t="#FFCA28");var i=document.createElement("div");i.innerHTML=e,Object.assign(i.style,{position:"absolute","background-color":t,color:"#ffffff",padding:"15px","border-radius":"40px",opacity:0,overflow:"hidden","white-space":"nowrap","text-align":"center"}),this.obj.element.appendChild(i);var n=this.obj.width()/2-i.offsetWidth/2,o=this.obj.height()/2-i.offsetHeight/2;i.style.left=n+"px",i.style.top=o+"px";var r=i.offsetWidth;return i.style.width="20px",OrgChart.animate(i,{opacity:0,width:10},{opacity:1,width:r},this.obj.config.anim.duration,this.obj.config.anim.func),!0},void 0===OrgChart&&(OrgChart={}),OrgChart.icon={},OrgChart.icon.png_export=OrgChart.icon.png_preview=OrgChart.icon.pngpreview=OrgChart.icon.png=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${n}" y="${o}">\n <path fill="${i}" d="M146.747,276.708c0-13.998-9.711-22.352-26.887-22.352c-6.99,0-11.726,0.675-14.204,1.355v44.927 c2.932,0.676,6.539,0.896,11.52,0.896C135.449,301.546,146.747,292.28,146.747,276.708z"/>\n <path fill="${i}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M234.344,335.86v45.831h-31.601V229.524h40.184 l31.611,55.759c9.025,16.031,18.064,34.983,24.825,52.154h0.675c-2.257-20.103-2.933-40.643-2.933-63.44v-44.473h31.614v152.167 h-36.117l-32.516-58.703c-9.049-16.253-18.971-35.892-26.438-53.727l-0.665,0.222C233.906,289.58,234.344,311.027,234.344,335.86z M71.556,381.691V231.56c10.613-1.804,25.516-3.159,46.506-3.159c21.215,0,36.353,4.061,46.509,12.192 c9.698,7.673,16.255,20.313,16.255,35.219c0,14.897-4.959,27.549-13.999,36.123c-11.738,11.063-29.123,16.031-49.441,16.031 c-4.522,0-8.593-0.231-11.736-0.675v54.411H71.556V381.691z M453.601,523.353H97.2V419.302h356.4V523.353z M485.652,374.688 c-10.61,3.607-30.713,8.585-50.805,8.585c-27.759,0-47.872-7.003-61.857-20.545c-13.995-13.1-21.684-32.97-21.452-55.318 c0.222-50.569,37.03-79.463,86.917-79.463c19.644,0,34.783,3.829,42.219,7.446l-7.214,27.543c-8.369-3.617-18.752-6.55-35.458-6.55 c-28.656,0-50.341,16.256-50.341,49.22c0,31.382,19.649,49.892,47.872,49.892c7.895,0,14.218-0.901,16.934-2.257v-31.835h-23.493 v-26.869h56.679V374.688z"/>\n </svg>`},OrgChart.icon.pdf_export=OrgChart.icon.pdf_preview=OrgChart.icon.pdfpreview=OrgChart.icon.pdf=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${n}" y="${o}">\n <path fill="${i}" d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"/>\n <path fill="${i}" d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"/>\n <path fill="${i}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"/>\n </svg>`},OrgChart.icon.svg_export=OrgChart.icon.svg_preview=OrgChart.icon.svg=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${n}" y="${o}">\n <path fill="${i}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M338.871,225.672L284.545,386.96h-42.591 l-51.69-161.288h39.967l19.617,68.196c5.508,19.143,10.531,37.567,14.36,57.67h0.717c4.061-19.385,9.089-38.527,14.592-56.953 l20.585-68.918h38.77V225.672z M68.458,379.54l7.415-30.153c9.811,5.021,24.888,10.051,40.439,10.051 c16.751,0,25.607-6.935,25.607-17.465c0-10.052-7.662-15.795-27.05-22.734c-26.8-9.328-44.263-24.168-44.263-47.611 c0-27.524,22.971-48.579,61.014-48.579c18.188,0,31.591,3.823,41.159,8.131l-8.126,29.437c-6.465-3.116-17.945-7.657-33.745-7.657 c-15.791,0-23.454,7.183-23.454,15.552c0,10.296,9.089,14.842,29.917,22.731c28.468,10.536,41.871,25.365,41.871,48.094 c0,27.042-20.812,50.013-65.09,50.013C95.731,389.349,77.538,384.571,68.458,379.54z M453.601,523.353H97.2V419.302h356.4V523.353z M488.911,379.54c-11.243,3.823-32.537,9.103-53.831,9.103c-29.437,0-50.73-7.426-65.57-21.779 c-14.839-13.875-22.971-34.942-22.738-58.625c0.253-53.604,39.255-84.235,92.137-84.235c20.81,0,36.852,4.073,44.74,7.896 l-7.657,29.202c-8.859-3.829-19.849-6.95-37.567-6.95c-30.396,0-53.357,17.233-53.357,52.173c0,33.265,20.81,52.882,50.73,52.882 c8.375,0,15.072-0.96,17.94-2.395v-33.745h-24.875v-28.471h60.049V379.54L488.911,379.54z" />\n </svg>`},OrgChart.icon.csv_export=OrgChart.icon.csv=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 548.29 548.291" x="${n}" y="${o}">'\n <path fill="${i}" d="M486.2,196.121h-13.164V132.59c0-0.399-0.064-0.795-0.116-1.2c-0.021-2.52-0.824-5-2.551-6.96L364.656,3.677 c-0.031-0.034-0.064-0.044-0.085-0.075c-0.629-0.707-1.364-1.292-2.141-1.796c-0.231-0.157-0.462-0.286-0.704-0.419 c-0.672-0.365-1.386-0.672-2.121-0.893c-0.199-0.052-0.377-0.134-0.576-0.188C358.229,0.118,357.4,0,356.562,0H96.757 C84.893,0,75.256,9.649,75.256,21.502v174.613H62.093c-16.972,0-30.733,13.756-30.733,30.73v159.81 c0,16.966,13.761,30.736,30.733,30.736h13.163V526.79c0,11.854,9.637,21.501,21.501,21.501h354.777 c11.853,0,21.502-9.647,21.502-21.501V417.392H486.2c16.966,0,30.729-13.764,30.729-30.731v-159.81 C516.93,209.872,503.166,196.121,486.2,196.121z M96.757,21.502h249.053v110.006c0,5.94,4.818,10.751,10.751,10.751h94.973v53.861 H96.757V21.502z M258.618,313.18c-26.68-9.291-44.063-24.053-44.063-47.389c0-27.404,22.861-48.368,60.733-48.368 c18.107,0,31.447,3.811,40.968,8.107l-8.09,29.3c-6.43-3.107-17.862-7.632-33.59-7.632c-15.717,0-23.339,7.149-23.339,15.485 c0,10.247,9.047,14.769,29.78,22.632c28.341,10.479,41.681,25.239,41.681,47.874c0,26.909-20.721,49.786-64.792,49.786 c-18.338,0-36.449-4.776-45.497-9.77l7.38-30.016c9.772,5.014,24.775,10.006,40.264,10.006c16.671,0,25.488-6.908,25.488-17.396 C285.536,325.789,277.909,320.078,258.618,313.18z M69.474,302.692c0-54.781,39.074-85.269,87.654-85.269 c18.822,0,33.113,3.811,39.549,7.149l-7.392,28.816c-7.38-3.084-17.632-5.939-30.491-5.939c-28.822,0-51.206,17.375-51.206,53.099 c0,32.158,19.051,52.4,51.456,52.4c10.947,0,23.097-2.378,30.241-5.238l5.483,28.346c-6.672,3.34-21.674,6.919-41.208,6.919 C98.06,382.976,69.474,348.424,69.474,302.692z M451.534,520.962H96.757v-103.57h354.777V520.962z M427.518,380.583h-42.399 l-51.45-160.536h39.787l19.526,67.894c5.479,19.046,10.479,37.386,14.299,57.397h0.709c4.048-19.298,9.045-38.352,14.526-56.693 l20.487-68.598h38.599L427.518,380.583z" />'\n </svg>`},OrgChart.icon.json_export=OrgChart.icon.json=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 32 32" x="${n}" y="${o}">\n <polygon fill="${i}" points="31 11 31 21 29 21 27 15 27 21 25 21 25 11 27 11 29 17 29 11 31 11"/>\n <path fill="${i}" d="M21.3335,21h-2.667A1.6684,1.6684,0,0,1,17,19.3335v-6.667A1.6684,1.6684,0,0,1,18.6665,11h2.667A1.6684,1.6684,0,0,1,23,12.6665v6.667A1.6684,1.6684,0,0,1,21.3335,21ZM19,19h2V13H19Z"/>\n <path fill="${i}" d="M13.3335,21H9V19h4V17H11a2.002,2.002,0,0,1-2-2V12.6665A1.6684,1.6684,0,0,1,10.6665,11H15v2H11v2h2a2.002,2.002,0,0,1,2,2v2.3335A1.6684,1.6684,0,0,1,13.3335,21Z"/>\n <path fill="${i}" d="M5.3335,21H2.6665A1.6684,1.6684,0,0,1,1,19.3335V17H3v2H5V11H7v8.3335A1.6684,1.6684,0,0,1,5.3335,21Z"/>\n <rect fill="${i}" id="_Transparent_Rectangle_" data-name="<Transparent Rectangle>" style="fill: none;" width="32" height="32"/>'\n </svg>`},OrgChart.icon.excel=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${n}" y="${o}">\n <path fill="${i}" d="M9.29289 1.29289C9.48043 1.10536 9.73478 1 10 1H18C19.6569 1 21 2.34315 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V4C19 3.44772 18.5523 3 18 3H11V8C11 8.55228 10.5523 9 10 9H5V20C5 20.5523 5.44772 21 6 21H7C7.55228 21 8 21.4477 8 22C8 22.5523 7.55228 23 7 23H6C4.34315 23 3 21.6569 3 20V8C3 7.73478 3.10536 7.48043 3.29289 7.29289L9.29289 1.29289ZM6.41421 7H9V4.41421L6.41421 7ZM19 12C19.5523 12 20 12.4477 20 13V19H23C23.5523 19 24 19.4477 24 20C24 20.5523 23.5523 21 23 21H19C18.4477 21 18 20.5523 18 20V13C18 12.4477 18.4477 12 19 12ZM11.8137 12.4188C11.4927 11.9693 10.8682 11.8653 10.4188 12.1863C9.96935 12.5073 9.86526 13.1318 10.1863 13.5812L12.2711 16.5L10.1863 19.4188C9.86526 19.8682 9.96935 20.4927 10.4188 20.8137C10.8682 21.1347 11.4927 21.0307 11.8137 20.5812L13.5 18.2205L15.1863 20.5812C15.5073 21.0307 16.1318 21.1347 16.5812 20.8137C17.0307 20.4927 17.1347 19.8682 16.8137 19.4188L14.7289 16.5L16.8137 13.5812C17.1347 13.1318 17.0307 12.5073 16.5812 12.1863C16.1318 11.8653 15.5073 11.9693 15.1863 12.4188L13.5 14.7795L11.8137 12.4188Z" fill="#000000"/>\n </svg>`},OrgChart.icon.pp_export=OrgChart.icon.pp_preview=OrgChart.icon.pppreview=OrgChart.icon.powerpoint=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${n}" y="${o}">\n <path fill="${i}" d="M10 1C9.73478 1 9.48043 1.10536 9.29289 1.29289L3.29289 7.29289C3.10536 7.48043 3 7.73478 3 8V20C3 21.6569 4.34315 23 6 23H11C11.5523 23 12 22.5523 12 22C12 21.4477 11.5523 21 11 21H6C5.44772 21 5 20.5523 5 20V9H10C10.5523 9 11 8.55228 11 8V3H18C18.5523 3 19 3.44772 19 4V9C19 9.55228 19.4477 10 20 10C20.5523 10 21 9.55228 21 9V4C21 2.34315 19.6569 1 18 1H10ZM9 7H6.41421L9 4.41421V7ZM15 12C14.4477 12 14 12.4477 14 13V17V20C14 20.5523 14.4477 21 15 21C15.5523 21 16 20.5523 16 20V18H19C20.6569 18 22 16.6569 22 15C22 13.3431 20.6569 12 19 12H15ZM19 16H16V14H19C19.5523 14 20 14.4477 20 15C20 15.5523 19.5523 16 19 16Z" fill="#000000"/>\n </svg>`},OrgChart.icon.edit=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 528.899 528.899" x="${n}" y="${o}">\n <path fill="${i}" d="M328.883,89.125l107.59,107.589l-272.34,272.34L56.604,361.465L328.883,89.125z M518.113,63.177l-47.981-47.981 c-18.543-18.543-48.653-18.543-67.259,0l-45.961,45.961l107.59,107.59l53.611-53.611 C532.495,100.753,532.495,77.559,518.113,63.177z M0.3,512.69c-1.958,8.812,5.998,16.708,14.811,14.565l119.891-29.069 L27.473,390.597L0.3,512.69z" />'\n </svg>`},OrgChart.icon.details=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${n}" y="${o}">\n <path fill="${i}" d="M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008 C350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237 h333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931 l50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278 c-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239 h66.527V486.763z"/>\n <path fill="${i}" d="M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z"/>\n <path fill="${i}" d="M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z"/>\n <path fill="${i}" d="M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z"/>\n <path fill="${i}" d="M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256 c6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z"/>\n </svg>`},OrgChart.icon.remove=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 900.5 900.5" x="${n}" y="${o}">\n <path fill="${i}" d="M176.415,880.5c0,11.046,8.954,20,20,20h507.67c11.046,0,20-8.954,20-20V232.487h-547.67V880.5L176.415,880.5z M562.75,342.766h75v436.029h-75V342.766z M412.75,342.766h75v436.029h-75V342.766z M262.75,342.766h75v436.029h-75V342.766z"/>\n <path fill="${i}" d="M618.825,91.911V20c0-11.046-8.954-20-20-20h-297.15c-11.046,0-20,8.954-20,20v71.911v12.5v12.5H141.874 c-11.046,0-20,8.954-20,20v50.576c0,11.045,8.954,20,20,20h34.541h547.67h34.541c11.046,0,20-8.955,20-20v-50.576 c0-11.046-8.954-20-20-20H618.825v-12.5V91.911z M543.825,112.799h-187.15v-8.389v-12.5V75h187.15v16.911v12.5V112.799z"/>\n </svg>`},OrgChart.icon.add=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 922 922" x="${n}" y="${o}">\n <path fill="${i}" d="M922,453V81c0-11.046-8.954-20-20-20H410c-11.045,0-20,8.954-20,20v149h318c24.812,0,45,20.187,45,45v198h149 C913.046,473.001,922,464.046,922,453z" />\n <path fill="${i}" d="M557,667.001h151c11.046,0,20-8.954,20-20v-174v-198c0-11.046-8.954-20-20-20H390H216c-11.045,0-20,8.954-20,20v149h194 h122c24.812,0,45,20.187,45,45v4V667.001z" />\n <path fill="${i}" d="M0,469v372c0,11.046,8.955,20,20,20h492c11.046,0,20-8.954,20-20V692v-12.501V667V473v-4c0-11.046-8.954-20-20-20H390H196 h-12.5H171H20C8.955,449,0,457.955,0,469z" />\n </svg>`},OrgChart.icon.search=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 485.213 485.213" x="${n}" y="${o}">\n <path fill="${i}" d="M471.882,407.567L360.567,296.243c-16.586,25.795-38.536,47.734-64.331,64.321l111.324,111.324 c17.772,17.768,46.587,17.768,64.321,0C489.654,454.149,489.654,425.334,471.882,407.567z" />\n <path fill="${i}" d="M363.909,181.955C363.909,81.473,282.44,0,181.956,0C81.474,0,0.001,81.473,0.001,181.955s81.473,181.951,181.955,181.951 C282.44,363.906,363.909,282.437,363.909,181.955z M181.956,318.416c-75.252,0-136.465-61.208-136.465-136.46 c0-75.252,61.213-136.465,136.465-136.465c75.25,0,136.468,61.213,136.468,136.465 C318.424,257.208,257.206,318.416,181.956,318.416z" />\n <path fill="${i}" d="M75.817,181.955h30.322c0-41.803,34.014-75.814,75.816-75.814V75.816C123.438,75.816,75.817,123.437,75.817,181.955z" />\n </svg>`},OrgChart.icon.xml_export=OrgChart.icon.xml=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${n}" y="${o}">\n <path fill="${i}" d="M488.426,197.019H475.2v-63.816c0-0.401-0.063-0.799-0.116-1.205c-0.021-2.534-0.827-5.023-2.562-6.992L366.325,3.691 c-0.032-0.031-0.063-0.042-0.085-0.073c-0.633-0.707-1.371-1.298-2.151-1.804c-0.231-0.158-0.464-0.287-0.706-0.422 c-0.676-0.366-1.393-0.675-2.131-0.896c-0.2-0.053-0.38-0.135-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.87v160.542 c0,17.044,13.824,30.876,30.873,30.876h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87V227.89C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.51c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M369.531,374.53h-32.058l-2.156-55.519 c-0.644-17.434-1.298-38.518-1.298-59.611h-0.633c-4.514,18.516-10.547,39.166-16.137,56.162l-17.645,56.601h-25.618 l-15.494-56.157c-4.725-16.996-9.671-37.658-13.123-56.6h-0.43c-0.854,19.585-1.508,41.961-2.586,60.038l-2.576,55.086h-30.343 l9.26-145.035h43.677l14.207,48.421c4.517,16.774,9.041,34.847,12.258,51.843h0.654c4.081-16.77,9.038-35.923,13.774-52.064 l15.493-48.199h42.82L369.531,374.53z M69.992,374.53l41.955-73.385l-40.444-71.65h37.655l12.688,26.465 c4.316,8.828,7.533,15.928,10.99,24.092h0.422c3.438-9.242,6.23-15.694,9.893-24.092l12.274-26.465h37.434l-40.89,70.796 l43.044,74.239h-37.866l-13.134-26.257c-5.376-10.108-8.817-17.639-12.909-26.04h-0.433c-3.009,8.401-6.674,15.932-11.19,26.04 l-12.042,26.257H69.992z M453.601,523.353H97.2V419.302h356.4V523.353z M485.325,374.53h-90.608V229.495h32.933v117.497h57.682 v27.538H485.325z"/>\n </svg>`},OrgChart.icon.visio_export=OrgChart.icon.visio=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${n}" y="${o}">\n <path fill="${i}" d="M24 7.609v9.556q0 .424-.302.726-.303.303-.726.303h-5.19q-.072 1.149-.556 2.135-.484.986-1.264 1.717-.78.732-1.803 1.15-1.022.417-2.159.417-1.016 0-1.96-.35-.943-.352-1.705-.969-.762-.617-1.295-1.47-.532-.852-.713-1.856H1.028q-.423 0-.726-.303Q0 18.363 0 17.94V7.609q0-.424.302-.726.303-.302.726-.302h5.238q-.072-.182-.072-.387 0-.424.302-.726L11.274.69q.303-.303.726-.303t.726.303l4.778 4.778q.302.302.302.726 0 .205-.072.387h5.238q.423 0 .726.302.302.302.302.726zM12 2.153l-4.04 4.04.387.388h3.012q.423 0 .726.302.302.302.302.726v2.238l3.653-3.653zM7.161 16.84l3.085-8.13H8.238q-.508 1.489-1.028 2.952-.52 1.464-1.004 2.964-.496-1.488-.992-2.958-.496-1.47-1.004-2.957H2.153l3.037 8.129zM12 22.065q.883 0 1.657-.333t1.355-.913q.58-.581.913-1.355.333-.774.333-1.658 0-.81-.302-1.548-.303-.738-.823-1.318-.52-.581-1.228-.944-.707-.363-1.518-.423v4.367q0 .423-.302.725-.303.303-.726.303H7.923q.206.677.593 1.246.387.568.92.98.532.41 1.185.64.653.23 1.379.23zm10.452-5.42V8.13h-6.158q-.133.133-.441.454-.309.32-.714.725-.405.406-.847.853-.441.448-.828.823-.387.375-.684.641-.296.266-.393.302v.097q.968.036 1.845.411t1.578.998q.702.623 1.186 1.446t.677 1.766Z"/>\n </svg>`},OrgChart.icon.link=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 512.092 512.092" x="${n}" y="${o}">\n <path fill="${i}" d="M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859 c-31.697-0.059-62.106,12.535-84.48,34.987L34.949,308.23c-22.336,22.379-34.89,52.7-34.91,84.318 c-0.042,65.98,53.41,119.501,119.39,119.543c31.648,0.11,62.029-12.424,84.395-34.816l89.6-89.6 c1.628-1.614,2.537-3.816,2.524-6.108c-0.027-4.713-3.87-8.511-8.583-8.484h-3.413c-18.72,0.066-37.273-3.529-54.613-10.581 c-3.195-1.315-6.867-0.573-9.301,1.877l-64.427,64.512c-20.006,20.006-52.442,20.006-72.448,0 c-20.006-20.006-20.006-52.442,0-72.448l108.971-108.885c19.99-19.965,52.373-19.965,72.363,0 c13.472,12.679,34.486,12.679,47.957,0c5.796-5.801,9.31-13.495,9.899-21.675C322.976,216.108,319.371,206.535,312.453,199.601z" />\n <path fill="${i}" d="M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387 c1.359,3.211,4.535,5.272,8.021,5.205h3.157c18.698-0.034,37.221,3.589,54.528,10.667c3.195,1.315,6.867,0.573,9.301-1.877 l64.256-64.171c20.006-20.006,52.442-20.006,72.448,0c20.006,20.006,20.006,52.442,0,72.448l-80.043,79.957l-0.683,0.768 l-27.989,27.819c-19.99,19.965-52.373,19.965-72.363,0c-13.472-12.679-34.486-12.679-47.957,0 c-5.833,5.845-9.35,13.606-9.899,21.845c-0.624,9.775,2.981,19.348,9.899,26.283c9.877,9.919,21.433,18.008,34.133,23.893 c1.792,0.853,3.584,1.536,5.376,2.304c1.792,0.768,3.669,1.365,5.461,2.048c1.792,0.683,3.669,1.28,5.461,1.792l5.035,1.365 c3.413,0.853,6.827,1.536,10.325,2.133c4.214,0.626,8.458,1.025,12.715,1.195h5.973h0.512l5.12-0.597 c1.877-0.085,3.84-0.512,6.059-0.512h2.901l5.888-0.853l2.731-0.512l4.949-1.024h0.939c20.961-5.265,40.101-16.118,55.381-31.403 l108.629-108.629C523.718,157.296,523.718,81.65,477.061,34.993z" />\n </svg>`},OrgChart.icon.happy=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${n}" y="${o}">\n <path fill="${i}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>\n <path fill="${i}" d="M176,176c17.673,0,32,14.327,32,32h32c0-35.346-28.654-64-64-64c-35.346,0-64,28.654-64,64h32 C144,190.327,158.327,176,176,176z"/>\n <path fill="${i}" d="M336,144c-35.346,0-64,28.654-64,64h32c0-17.673,14.327-32,32-32c17.673,0,32,14.327,32,32h32 C400,172.654,371.346,144,336,144z"/>\n <path fill="${i}" d="M256,368c-53.019,0-96-42.981-96-96h-32c0,70.692,57.308,128,128,128s128-57.308,128-128h-32 C352,325.019,309.019,368,256,368z"/>\n </svg>`},OrgChart.icon.sad=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${n}" y="${o}">\n <path fill="${i}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>\n <path fill="${i}" d="M336,192c-17.673,0-32-14.327-32-32h-32c0,35.346,28.654,64,64,64c35.346,0,64-28.654,64-64h-32 C368,177.673,353.673,192,336,192z"/>\n <path fill="${i}" d="M176,224c35.346,0,64-28.654,64-64h-32c0,17.673-14.327,32-32,32s-32-14.327-32-32h-32C112,195.346,140.654,224,176,224z "/>\n <path fill="${i}" d="M256,256c-70.692,0-128,57.308-128,128h32c0-53.019,42.981-96,96-96s96,42.981,96,96h32C384,313.308,326.692,256,256,256 z"/>\n </svg>`},OrgChart.icon.share=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 512 512">\n <path fill="${i}" d="M406,332c-29.641,0-55.761,14.581-72.167,36.755L191.99,296.124c2.355-8.027,4.01-16.346,4.01-25.124\n c0-11.906-2.441-23.225-6.658-33.636l148.445-89.328C354.307,167.424,378.589,180,406,180c49.629,0,90-40.371,90-90\n c0-49.629-40.371-90-90-90c-49.629,0-90,40.371-90,90c0,11.437,2.355,22.286,6.262,32.358l-148.887,89.59\n C156.869,193.136,132.937,181,106,181c-49.629,0-90,40.371-90,90c0,49.629,40.371,90,90,90c30.13,0,56.691-15.009,73.035-37.806\n l141.376,72.395C317.807,403.995,316,412.75,316,422c0,49.629,40.371,90,90,90c49.629,0,90-40.371,90-90\n C496,372.371,455.629,332,406,332z"/>\n </svg>`},OrgChart.icon.user=function(e,t,i,n,o){return OrgChart.isNEU(n)&&(n=0),OrgChart.isNEU(o)&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24">\n <path fill="${i}" d="M12 11.796C14.7189 11.796 16.9231 9.60308 16.9231 6.89801C16.9231 4.19294 14.7189 2.00005 12 2.00005C9.28106 2.00005 7.07692 4.19294 7.07692 6.89801C7.07692 9.60308 9.28106 11.796 12 11.796Z" fill="#030D45"/>\n <path fill="${i}" d="M14.5641 13.8369H9.4359C6.46154 13.8369 4 16.2859 4 19.245C4 19.9593 4.30769 20.5716 4.92308 20.8777C5.84615 21.3879 7.89744 22.0001 12 22.0001C16.1026 22.0001 18.1538 21.3879 19.0769 20.8777C19.5897 20.5716 20 19.9593 20 19.245C20 16.1838 17.5385 13.8369 14.5641 13.8369Z" fill="#030D45"/>\n </svg>`},OrgChart.icon.close=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 512 512">\n <path fill="${i}" d="m256 0c-141.49 0-256 114.5-256 256 0 141.49 114.5 256 256 256 141.49 0 256-114.5 256-256 0-141.49-114.5-256-256-256zm-12.284 317.397-58.121 58.132c-6.565 6.553-15.283 10.166-24.557 10.166-19.196 0-34.734-15.526-34.734-34.734 0-9.274 3.612-17.992 10.166-24.557l58.132-58.121c6.785-6.784 6.785-17.783 0-24.568l-58.132-58.121c-6.553-6.565-10.166-15.283-10.166-24.557 0-19.196 15.526-34.734 34.734-34.734 9.274 0 17.992 3.613 24.557 10.166l58.121 58.132c6.785 6.773 17.784 6.773 24.568 0l58.121-58.132c6.565-6.553 15.283-10.166 24.557-10.166 19.196 0 34.734 15.526 34.734 34.734 0 9.274-3.612 17.992-10.166 24.557l-58.132 58.121c-6.785 6.784-6.785 17.783 0 24.568l58.132 58.121c6.553 6.565 10.166 15.283 10.166 24.557 0 19.196-15.526 34.734-34.734 34.734-9.274 0-17.992-3.613-24.557-10.166l-58.121-58.132c-6.784-6.784-17.784-6.773-24.568 0z"/>\n </svg>`},OrgChart.icon.undo=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24">\n <path fill-rule="evenodd" clip-rule="evenodd" fill="${i}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM9.25871 7.97395C9.56308 7.693 9.58205 7.21851 9.3011 6.91414C9.02015 6.60978 8.54565 6.5908 8.24129 6.87175L5.99129 8.94867C5.83748 9.09065 5.75 9.29045 5.75 9.49977C5.75 9.7091 5.83748 9.9089 5.99129 10.0509L8.24129 12.1278C8.54565 12.4088 9.02015 12.3898 9.3011 12.0854C9.58205 11.781 9.56308 11.3065 9.25871 11.0256L8.41824 10.2498H14.0385C14.7376 10.2498 15.2069 10.2506 15.5652 10.2862C15.9116 10.3205 16.0724 10.3813 16.1787 10.4501C16.3272 10.5461 16.4537 10.6726 16.5497 10.8211C16.6184 10.9274 16.6793 11.0882 16.7136 11.4345C16.7491 11.7929 16.75 12.2622 16.75 12.9613C16.75 13.6604 16.7491 14.1298 16.7136 14.4881C16.6793 14.8344 16.6185 14.9952 16.5497 15.1015C16.4537 15.2501 16.3272 15.3765 16.1787 15.4726C16.0724 15.5413 15.9116 15.6021 15.5652 15.6365C15.2069 15.672 14.7376 15.6729 14.0385 15.6729H9.5C9.08579 15.6729 8.75 16.0086 8.75 16.4229C8.75 16.8371 9.08579 17.1729 9.5 17.1729H14.0758C14.7279 17.1729 15.2721 17.1729 15.7133 17.1291C16.1748 17.0834 16.6038 16.9839 16.9931 16.7322C17.3199 16.5209 17.5981 16.2427 17.8094 15.916C18.0611 15.5266 18.1605 15.0976 18.2063 14.6361C18.25 14.195 18.25 13.6508 18.25 12.9987V12.924C18.25 12.2718 18.25 11.7276 18.2063 11.2865C18.1605 10.825 18.0611 10.396 17.8093 10.0067C17.5981 9.6799 17.3199 9.40169 16.9931 9.19042C16.6038 8.9387 16.1748 8.83927 15.7133 8.7935C15.2721 8.74975 14.7279 8.74976 14.0758 8.74977L8.41824 8.74977L9.25871 7.97395Z" />\n <rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect>\n </svg>`},OrgChart.icon.redo=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24" >\n <path fill="#f9f9f9" fill-rule="evenodd" clip-rule="evenodd" fill="${i}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM15.7587 6.87273C15.4543 6.59177 14.9799 6.61075 14.6989 6.91512C14.4179 7.21948 14.4369 7.69398 14.7413 7.97493L15.5818 8.75075H9.96155C7.63558 8.75075 5.75 10.6363 5.75 12.9623C5.75 15.2883 7.63557 17.1738 9.96154 17.1738H14.5C14.9142 17.1738 15.25 16.838 15.25 16.4238C15.25 16.0096 14.9142 15.6738 14.5 15.6738H9.96154C8.464 15.6738 7.25 14.4598 7.25 12.9623C7.25 11.4647 8.464 10.2508 9.96155 10.2508H15.5818L14.7413 11.0266C14.4369 11.3075 14.4179 11.782 14.6989 12.0864C14.9799 12.3908 15.4543 12.4097 15.7587 12.1288L18.0087 10.0519C18.1625 9.90987 18.25 9.71007 18.25 9.50075C18.25 9.29143 18.1625 9.09163 18.0087 8.94965L15.7587 6.87273Z"/>\n <rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect> \n </svg>`},OrgChart.icon.send=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24" >\n <path fill="none" stroke="${i}" stroke-width="2" d="M10.3009 13.6949L20.102 3.89742M10.5795 14.1355L12.8019 18.5804C13.339 19.6545 13.6075 20.1916 13.9458 20.3356C14.2394 20.4606 14.575 20.4379 14.8492 20.2747C15.1651 20.0866 15.3591 19.5183 15.7472 18.3818L19.9463 6.08434C20.2845 5.09409 20.4535 4.59896 20.3378 4.27142C20.2371 3.98648 20.013 3.76234 19.7281 3.66167C19.4005 3.54595 18.9054 3.71502 17.9151 4.05315L5.61763 8.2523C4.48114 8.64037 3.91289 8.83441 3.72478 9.15032C3.56153 9.42447 3.53891 9.76007 3.66389 10.0536C3.80791 10.3919 4.34498 10.6605 5.41912 11.1975L9.86397 13.42C10.041 13.5085 10.1295 13.5527 10.2061 13.6118C10.2742 13.6643 10.3352 13.7253 10.3876 13.7933C10.4468 13.87 10.491 13.9585 10.5795 14.1355Z" />\n </svg>`},OrgChart.icon.x=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24">\n <line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${i}"></line>\n <line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${i}"></line>\n </svg>`},OrgChart.icon.x=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 24 24">\n <line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${i}"></line>\n <line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${i}"></line>\n </svg>`},OrgChart.icon.fit=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 128 128">\n <path fill="${i}" d="M 58.1875 4.90625 C 29.957889 4.90625 6.9375 27.957888 6.9375 56.1875 C 6.9375 84.417111 29.957889 107.4375 58.1875 107.4375 C 69.752492 107.4375 80.436703 103.56785 89.03125 97.0625 L 108.59375 120.4375 A 7.0007 7.0007 0 1 0 119.3125 111.4375 L 98.96875 87.15625 C 105.53731 78.538312 109.4375 67.814416 109.4375 56.1875 C 109.4375 27.957888 86.417111 4.90625 58.1875 4.90625 z M 58.1875 18.875 C 78.850949 18.875 95.4375 35.52405 95.4375 56.1875 C 95.4375 76.850949 78.850949 93.4375 58.1875 93.4375 C 37.524051 93.4375 20.9375 76.850949 20.9375 56.1875 C 20.9375 35.52405 37.524051 18.875 58.1875 18.875 z M 33.125 31.09375 L 33.125 36.40625 L 33.125 75.90625 L 33.125 81.21875 L 38.4375 81.21875 L 77.9375 81.21875 L 83.25 81.21875 L 83.25 75.90625 L 83.25 36.40625 L 83.25 31.09375 L 77.9375 31.09375 L 38.4375 31.09375 L 33.125 31.09375 z M 43.78125 41.75 L 72.59375 41.75 L 72.59375 70.5625 L 43.78125 70.5625 L 43.78125 41.75 z "/>\n</svg>`},OrgChart.icon.expand_all=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 32 32">\n <path fill="${i}" d="M13.816 5.989l-7.785 0.046 0.003 7.735 2.59-2.591 3.454 3.454 2.665-2.665-3.453-3.454 2.526-2.525zM12.079 17.35l-3.454 3.455-2.59-2.592-0.003 7.799 7.785-0.018-2.526-2.525 3.454-3.453-2.666-2.666zM19.922 14.633l3.453-3.454 2.59 2.591 0.004-7.735-7.785-0.046 2.526 2.525-3.454 3.454 2.666 2.665zM23.375 20.805l-3.453-3.455-2.666 2.666 3.454 3.453-2.526 2.525 7.785 0.018-0.004-7.799-2.59 2.592z"></path>\n</svg>`},OrgChart.icon.full_screen=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 48 48">\n<rect width="48" height="48" fill="${i}" fill-opacity="0.01"/>\n<path fill="none" d="M16 40H6C4.89543 40 4 39.1046 4 38V10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V16" stroke="${i}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>\n<rect x="24" y="24" width="20" height="16" rx="2" fill="none" stroke="${i}" stroke-width="4" stroke-linejoin="round"/>\n</svg>`},OrgChart.icon.zoom_in=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 32 32" >\n <g sketch:type="MSLayerGroup" transform="translate(-362.000000, -1037.000000)" fill="${i}">\n <path d="M390,1049 L382,1049 L382,1041 C382,1038.79 380.209,1037 378,1037 C375.791,1037 374,1038.79 374,1041 L374,1049 L366,1049 C363.791,1049 362,1050.79 362,1053 C362,1055.21 363.791,1057 366,1057 L374,1057 L374,1065 C374,1067.21 375.791,1069 378,1069 C380.209,1069 382,1067.21 382,1065 L382,1057 L390,1057 C392.209,1057 394,1055.21 394,1053 C394,1050.79 392.209,1049 390,1049" id="plus" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>`},OrgChart.icon.zoom_out=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 -12 32 32" >\n <g id="Icon-Set-Filled" sketch:type="MSLayerGroup" transform="translate(-414.000000, -1049.000000)" fill="${i}">\n <path d="M442,1049 L418,1049 C415.791,1049 414,1050.79 414,1053 C414,1055.21 415.791,1057 418,1057 L442,1057 C444.209,1057 446,1055.21 446,1053 C446,1050.79 444.209,1049 442,1049" id="minus" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>`},OrgChart.icon.layout_normal=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="41" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="35" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="35" y2="41" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="35" y2="41" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_right_offset=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="40" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="40" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="60" x2="35" y1="35" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="35" x2="35" y1="35" y2="86" stroke-width="1"></line>\n <line stroke="${i}" x1="35" x2="40" y1="86" y2="86" stroke-width="1"></line>\n <line stroke="${i}" x1="35" x2="40" y1="54" y2="54" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_left_offset=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="30" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="30" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="60" x2="85" y1="35" y2="35" stroke-width="1"></line>\n <line stroke="${i}" x1="85" x2="85" y1="35" y2="86" stroke-width="1"></line>\n <line stroke="${i}" x1="80" x2="85" y1="86" y2="86" stroke-width="1"></line>\n <line stroke="${i}" x1="80" x2="85" y1="54" y2="54" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_mixed=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="35" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="35" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="41" stroke-width="1"></line>\n <line stroke="${i}" x1="60" x2="60" y1="68" y2="73" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_tree=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="35" y="73" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="41" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="57" x2="63" y1="54" y2="54" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_grid=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="73" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>\n </svg>`},OrgChart.icon.layout_grid=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 110 100">\n <rect fill="${i}" x="35" y="0" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="7" y="73" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="41" width="50" height="27"></rect>\n <rect fill="${i}" x="63" y="73" width="50" height="27"></rect>\n <line stroke="${i}" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>\n <line stroke="${i}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>\n <line stroke="${i}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>\n </svg>`},OrgChart.icon.cursor=function(e,t,i,n,o){return null==n&&(n=0),null==o&&(o=0),`<svg width="${e}" height="${t}" x="${n}" y="${o}" viewBox="0 0 16 16" >\n <path d="M8 3V0H6V3H8Z" fill="${i}"/>\n <path d="M0.792893 2.20711L3.29289 4.70711L4.70711 3.29289L2.20711 0.792893L0.792893 2.20711Z" fill="${i}"/>\n <path d="M6 5L5 6.00001L8 15H10L10.7172 12.1314L14.2929 15.7071L15.7071 14.2929L12.1314 10.7172L15 10V8L6 5Z" fill="${i}"/>\n <path d="M0 6H3V8H0V6Z" fill="${i}"/>\n </svg>`},void 0===OrgChart&&(OrgChart={}),OrgChart.events=(e={},{on:function(t,i,n){Array.isArray(e[t])||(e[t]=[]),e[t].push({listener:i,event_id:n})},removeAll:function(t){Array.isArray(e[t])||(e[t]=[]),e[t]=[]},remove:function(t,i,n){var o=!1;if(e[t]&&Array.isArray(e[t])&&e[t].length>0)for(var r=e[t].length-1;r>=0;r--)(!OrgChart.isNEU(n)&&!OrgChart.isNEU(i)&&e[t][r].event_id==n&&e[t][r].listener==i||!OrgChart.isNEU(n)&&OrgChart.isNEU(i)&&e[t][r].event_id==n||OrgChart.isNEU(n)&&!OrgChart.isNEU(i)&&e[t][r].listener==i||OrgChart.isNEU(n)&&OrgChart.isNEU(i))&&(e[t].splice(r,1),o=!0);return o},has:function(t,i){if(e[t]&&Array.isArray(e[t])&&e[t].length>0){if(OrgChart.isNEU(i))return!0;for(var n=0;n<e[t].length;n++)if(e[t][n].event_id==i)return!0}return!1},removeForEventId:function(t){for(var i in e)if(Array.isArray(e[i]))for(var n=e[i].length-1;n>=0;n--)e[i][n].event_id==t&&e[i].splice(n,1)},publish:function(t,i){if(e[t]){for(var n=[],o=0;o<e[t].length;o++){var r=e[t][o];null!=r.event_id&&r.event_id!=i[0]._event_id||n.push(r.listener)}if(n.length>0){var a=!0;for(o=0;o<n.length&&(1==i.length?a=n[o](i[0])&&a:2==i.length?a=n[o](i[0],i[1])&&a:3==i.length?a=n[o](i[0],i[1],i[2])&&a:4==i.length?a=n[o](i[0],i[1],i[2],i[3])&&a:5==i.length&&(a=n[o](i[0],i[1],i[2],i[3],i[4])&&a),!1!==a);o++);return a}}}}),OrgChart.prototype.expand=function(e,t,i){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var n={id:e,ids:t};this._draw(!1,OrgChart.action.expand,n,i)},OrgChart.prototype.collapse=function(e,t,i){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var n={id:e,ids:t};this._draw(!1,OrgChart.action.collapse,n,i)},OrgChart.prototype.expandCollapse=function(e,t,i,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes(),Array.isArray(t)||(t=[]),Array.isArray(i)||(i=[]);var o={id:e,expandIds:t,collapseIds:i,ids:t.concat(i)};this._draw(!1,OrgChart.action.collapse,o,n)},OrgChart.prototype.changeRoots=function(e,t,i){this.config.roots=t;var n={id:e,changeRoots:t};this._draw(!1,OrgChart.action.update,n,i)},OrgChart.prototype._resetMovableNodes=function(){if(OrgChart.RESET_MOVABLE_ONEXPANDCOLLAPSE&&null!=this.config.movable){for(var e=!1,t=0;t<this.config.nodes.length;t++){var i=this.config.nodes[t];null!=i.movex&&(i.movex=0,e=!0),null!=i.movey&&(i.movey=0,e=!0)}e&&(this._ai.setContext(),OrgChart.events.publish("updated",[this]))}},OrgChart.prototype.maximize=function(e,t,i,n){var o=this,r={id:e,options:{}};OrgChart.isNEU(r.id)&&(r.id=this.roots[0].id,r.all=!0),r.options.horizontal=!1,r.options.vertical=!1,t&&(r.options.horizontal=t),i&&(r.options.vertical=i),this._draw(!1,OrgChart.action.maximize,r,function(){o.ripple(e),n&&n()})},OrgChart.prototype.minimize=function(e,t){var i=this,n={id:e};OrgChart.isNEU(n.id)&&(n.id=this.roots[0].id,n.all=!0),this._draw(!1,OrgChart.action.minimize,n,function(){i.ripple(e),t&&t()})},OrgChart.prototype._expCollHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this.getNode(e),i=this.getCollapsedIds(t);if(i.length){if(!1===OrgChart.events.publish("expcollclick",[this,!1,e,i]))return!1;this.expand(e,i,!1)}else{if(!1===OrgChart.events.publish("expcollclick",[this,!0,e,t.childrenIds]))return!1;this.collapse(e,t.childrenIds,!1)}},OrgChart.prototype._upHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this._upHandlerCreateArgs(e);if(!1===OrgChart.events.publish("up-click",[this,t]))return!1;this.changeRoots(t.id,t.roots,!1)},OrgChart.prototype._upHandlerCreateArgs=function(e){var t,i=this.getNode(e),n=Object.assign([],this.config.roots),o=this.getNode(i.pid);if(o&&(t=o),t){if(Array.isArray(n)){var r=n.indexOf(i.id);-1!=r&&n.splice(r,1)}else n=[];n.push(t.id)}return{id:i.id,roots:n}},String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e,"g"),t)}),String.prototype.endsWith||(String.prototype.endsWith=function(e){return-1!==this.indexOf(e,this.length-e.length)}),String.prototype.splice||(String.prototype.splice=function(e,t,i){return this.slice(0,e)+i+this.slice(e+Math.abs(t))}),String.prototype.insert||(String.prototype.insert=function(e,t){return e>0?this.substring(0,e)+t+this.substr(e):t+this}),Array.prototype.unique||Object.defineProperty(Array.prototype,"unique",{value:function(){for(var e=this.concat(),t=0;t<e.length;++t)for(var i=t+1;i<e.length;++i)e[t]===e[i]&&e.splice(i--,1);return e},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.has||Object.defineProperty(Array.prototype,"has",{value:function(e){for(var t=0;t<this.length;t++)if(this[t]==e)return!0;return!1},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.compare||Object.defineProperty(Array.prototype,"compare",{value:function(e){if(this.length!=e.length)return!1;for(var t=0;t<this.length;t++)if(!e.has(this[t]))return!1;return!0},writable:!0,configurable:!0,enumerable:!1}),Object.assign||Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(i[r]=o[r])}return i},writable:!0,configurable:!0}),OrgChart.prototype._globalMouseDownHandler=function(e,t){var i={move:"mousemove",up:"mouseup",leave:"mouseleave"};-1!=t.type.indexOf("touch")&&(1==t.touches.length?this._touch={x:t.touches[0].clientX,y:t.touches[0].clientY}:this._touch=null,i={move:"touchmove",up:"touchend",touchstart:"touchstart"}),this._treeListUpdateInterval&&(clearInterval(this._treeListUpdateInterval),this._treeListUpdateInterval=null);for(var n=null,o=t.target;o!=e&&!o.hasAttribute(OrgChart.attr.control_node_menu_id)&&!o.hasAttribute(OrgChart.attr.control_node_circle_menu_id);){if(o.hasAttribute){var r=null;o.hasAttribute(OrgChart.attr.node_id)?r=this.getNode(o.getAttribute(OrgChart.attr.node_id)):o.hasAttribute(OrgChart.attr.control_expcoll_id)?r=this.getNode(o.getAttribute(OrgChart.attr.control_expcoll_id)):(o.hasAttribute(OrgChart.attr.control_node_menu_id)||o.hasAttribute(OrgChart.attr.control_node_menu_id))&&(r=this.getNode(o.getAttribute(OrgChart.attr.control_node_menu_id))),n||(n=OrgChart._getScrollableTreeListNodeInTouchEnabledDevice(r))}if(o.hasAttribute(OrgChart.attr.node_id)&&!n&&(this.config.enableDragDrop||this.config.movable)){if(null==t.touches||t.touches.length<=1)return void this._nodeMouseDownHandler(o,t,i)}else if(o.hasAttribute(OrgChart.attr.control_node_circle_menu_name)){if(t.stopPropagation(),null==t.touches||t.touches.length<=1)return void this._nodeCircleNodeMenuItemMouseDownHandler(e,o,t,i)}else if(o.hasAttribute("data-treelist-thumb")&&(t.stopPropagation(),null==t.touches||t.touches.length<=1))return void this._treeListThumbMouseDownHandler(o,t,i);o=o.parentNode}t.stopPropagation(),this._mouseDownHandler(e,t,i,n)},OrgChart.prototype._globalContextHandler=function(e,t){for(var i=t.target;i!=e;){if(i.hasAttribute(OrgChart.attr.node_id)){var n=i.getAttribute(OrgChart.attr.node_id),o=this.getNode(n);return void this._nodeContextHandler(o.id,t)}i=i.parentNode}},OrgChart.prototype._nodeContextHandler=function(e,t){t.preventDefault(),OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var i=this.get(e),n=null;if(null!=i&&Array.isArray(i.tags))for(var o=0;o<i.tags.length;o++){var r=i.tags[o];this.config.tags[r]&&this.config.tags[r].nodeContextMenu&&(n=this.config.tags[r].nodeContextMenu)}var a=this.element.getBoundingClientRect(),l=t.clientX-a.left,s=t.clientY-a.top;this.nodeContextMenuUI.show(l,s,e,null,n)},OrgChart.prototype._globalDbClickHandler=function(e,t){for(var i=t.target;i!=e;){if(i.hasAttribute(OrgChart.attr.node_id)){var n=i.getAttribute(OrgChart.attr.node_id),o=this.getNode(n);return void this._nodeDbClickHandler(o.id,t)}i=i.parentNode}},OrgChart.prototype._mouseScrollHandler=function(e,t){for(var i=!1,n=t.target,o=null;n&&n.hasAttribute&&!n.hasAttribute("data-n-id")&&!n.hasAttribute("data-ctrl-ec-id");)n=n.parentNode;if(n.hasAttribute&&n.hasAttribute("data-n-id")){var r=n.getAttribute("data-n-id");(o=this.getNode(r)).isTreeListItem&&(i=!0)}if(n.hasAttribute&&n.hasAttribute("data-ctrl-ec-id")){r=n.getAttribute("data-ctrl-ec-id");(o=this.getNode(r)).isTreeListItem&&(i=!0)}t.ctrlKey&&(i=!1),i?this.__mouseScrollHandlerTreeList(o,t):this.__mouseScrollHandler(this.getSvg(),t)},OrgChart.prototype.__mouseScrollHandler=function(e,t){if(t.ctrlKey){if(this.config.mouseScrool==OrgChart.action.zoom)return}else{if(this.config.mouseScrool==OrgChart.action.ctrlZoom)return;if(this.config.mouseScrool!=OrgChart.action.zoom)return}if(t.preventDefault(),!navigator.hardwareConcurrency||navigator.hardwareConcurrency<9){let n=t.deltaY/1e3;n=Math.abs(n)<.1?.1*t.deltaY/Math.abs(t.deltaY):n;var i=OrgChart._centerPointInPercent(e,t.clientX,t.clientY);this.zoom(1-n,i)}else{var n=this,o=!1,r=this.config.zoom.speed,a=this.config.zoom.smooth,l=0,s=this.getScale();i=OrgChart._centerPointInPercent(e,t.clientX,t.clientY);var c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)};t.preventDefault();var d=t.delta||t.wheelDelta;void 0===d&&(d=-t.detail),d=Math.max(-1,Math.min(1,d)),l+=-d*r,o||function update(){o=!0;var e=(l-s)/a;e>0?e++:e--,s+=e,n.zoom(1-e/12/50,i),parseInt(s)==parseInt(l)?o=!1:c(update)}()}},OrgChart.prototype._nodeCircleNodeMenuItemMouseDownHandler=function(e,t,i,n){var o=t.parentNode.getAttribute(OrgChart.attr.control_node_circle_menu_wrraper_id),r=t.getAttribute(OrgChart.attr.control_node_circle_menu_name),a=this.nodeCircleMenuUI._menu[r];if(a.draggable){var l=this,s=OrgChart._getClientXY(i),c=this.getNode(o);t._dragEventFired=!1;var d=l.getScale(),h=null,p=null;document.body.style.mozUserSelect=document.body.style.webkitUserSelect=document.body.style.userSelect="none";var u=this.getSvg(),f={x:s.x,y:s.y},g=t.cloneNode(!0);u.insertBefore(g,u.firstChild);var m=OrgChart._getTransform(g),x=m[4],b=m[5],y=function(e){for(;e&&!e.hasAttribute(OrgChart.attr.control_node_circle_menu_wrraper_id);)e=e.parentNode;if(e){var t=OrgChart._getTransform(e);return{x:t[4],y:t[5]}}console.error("cannot find parent"+OrgChart.attr.control_node_circle_menu_wrraper_id)}(t);g.setAttribute("transform","matrix(1,0,0,1,"+(x+y.x)+","+(b+y.y)+")"),g.style.opacity=.7;var removeOpacity=function(e,t){if(null!=e){t.classList.remove("boc-drag-over");for(var i=OrgChart.getStParentNodes(l.getNode(h)),n=0;n<i.length;n++){var o=l.getNodeElement(i[n].id);o&&(o.style.opacity=1)}}},moveHandler=function(e){if(f){var i=OrgChart._getClientXY(e),n=e.target;OrgChart.isMobile()&&(n=document.elementFromPoint(i.x,i.y)),i.x+=y.x*d,i.y+=y.y*d;var o=OrgChart._getOffsetXY(l.element,e),s={left:l.width()-(o.x+l.config.padding)<0,right:o.x-l.config.padding<0,up:l.height()-(o.y+l.config.padding)<0,down:o.y-l.config.padding<0};if(s.left||s.right||s.up||s.down){u.classList&&(u.classList.remove("boc-cursor-grab"),u.classList.add("boc-cursor-move"),u.classList.remove("boc-cursor-nodrop"),u.classList.remove("boc-cursor-copy"));var c=m[4],v=m[5],_=f.x,w=f.y,I=i.x,k=i.y;l.moveStart(s,function(e){m[4]=c+e.x,m[5]=v+e.y,f.x=_-e.xWithoutScale,f.y=w-e.yWithoutScale,i.x=I-e.xWithoutScale,i.y=k-e.yWithoutScale,g.setAttribute("transform","matrix("+m.toString()+")")})}else{for(l.moveEnd(),u.classList&&(u.classList.add("boc-cursor-grab"),u.classList.remove("boc-cursor-move"),u.classList.remove("boc-cursor-nodrop"),u.classList.remove("boc-cursor-copy")),removeOpacity(h,p),h=null,p=null;null!=n&&n!=u;){if(n.hasAttribute&&n.hasAttribute(OrgChart.attr.node_id)){var C=n.getAttribute(OrgChart.attr.node_id);h=C,p=n;break}n=n.parentNode}if(null!=h){p.classList.add("boc-drag-over");for(var L=l.getNode(h),S=OrgChart.getStParentNodes(L),N=0;N<S.length;N++){var A=l.getNodeElement(S[N].id);A&&(A.style.opacity=.1)}u.classList.remove("boc-cursor-grab"),u.classList.remove("boc-cursor-move"),u.classList.add("boc-cursor-copy"),u.classList.remove("boc-cursor-nodrop")}var E=(i.x-f.x)/d,M=(i.y-f.y)/d;m[4]=x+E,m[5]=b+M,!t._dragEventFired&&(Math.abs(i.x-f.x)>OrgChart.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(i.y-f.y)>OrgChart.FIRE_DRAG_NOT_CLICK_IF_MOVE)&&(l._gragStartedId=t.parentNode.getAttribute(OrgChart.attr.control_node_circle_menu_wrraper_id),!1===OrgChart.events.publish("drag",[l.nodeCircleMenuUI,{from:C,menuItem:a,menuItemName:r}])&&leaveHandler(),t._dragEventFired=!0),g.setAttribute("transform","matrix("+m.toString()+")")}}},leaveHandler=function(e){if(l.moveEnd(),u.classList&&(u.classList.remove("boc-cursor-grab"),u.classList.remove("boc-cursor-move"),u.classList.remove("boc-cursor-nodrop"),u.classList.remove("boc-cursor-copy")),u.removeEventListener(n.move,moveHandler),u.removeEventListener(n.up,leaveHandler),n.leave&&u.removeEventListener(n.leave,leaveHandler),c.id==h||null==h)return u.removeChild(g),l._gragStartedId=null,void(t._dragEventFired&&OrgChart.events.publish("drop",[l.nodeCircleMenuUI,{from:c.id,menuItemName:r,menuItem:a,event:e}]));var i=l.getNode(h);OrgChart.events.publish("drop",[l.nodeCircleMenuUI,{from:c.id,to:i.id,menuItem:a,menuItemName:r,event:e}]),removeOpacity(h,p),u.removeChild(g),l._gragStartedId=null};u.addEventListener(n.move,moveHandler),u.addEventListener(n.up,leaveHandler),n.leave&&u.addEventListener(n.leave,leaveHandler)}else this._clickHandler(e,i)},OrgChart.prototype._nodeMouseDownHandler=function(e,t,i){var n=e.getAttribute(OrgChart.attr.node_id),o=this.getNode(n);this.config.movable&&!OrgChart.getRootOf(o).stParent?this._movableHandler(e,t,i):this.config.enableDragDrop&&this._dragDropHandler(e,t,i)},OrgChart.prototype._resizeHandler=function(e,t){if(this.isVisible&&0!=e&&0!=t){var i=this.getViewBox();if(i){var n=e/(i=i.slice(0))[2],o=t/i[3];Math.abs(this._lastSize.width-e)>Math.abs(this._lastSize.height-t)?i[3]=t/n:i[2]=e/o,this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),this.setViewBox(i),this.xScrollUI.create(e),this.yScrollUI.create(t),this._draw(!0,OrgChart.action.resize)}}},OrgChart.prototype._nodeDbClickHandler=function(e,t){if(!1===OrgChart.events.publish("dbclick",[this,this.get(e)]))return!1;this._commonClickHandler(e,t,this.config.nodeMouseDbClick)},OrgChart.prototype._nodeClickHandler=function(e,t){if(!1===OrgChart.events.publish("click",[this,{node:this.getNode(e),event:t}]))return!1;if(this.powerPointPreviewUI.isVisible()&&null!=this.powerPointPreviewUI.selectedPage)return this.powerPointPreviewUI.selectedPage.content=void 0,this.powerPointPreviewUI.selectedPage.nodeId=e,this.powerPointPreviewUI.refresh(e),void this.ripple(e,t.clientX,t.clientY);if(this.pdfPreviewUI.isVisible()&&null!=this.pdfPreviewUI.selectedPage)return this.pdfPreviewUI.selectedPage.content=void 0,this.pdfPreviewUI.selectedPage.nodeId=e,this.pdfPreviewUI.refresh(e),void this.ripple(e,t.clientX,t.clientY);if(this.svgPreviewUI.isVisible()&&null!=this.svgPreviewUI.selectedPage)return this.svgPreviewUI.selectedPage.content=void 0,this.svgPreviewUI.selectedPage.nodeId=e,this.svgPreviewUI.refresh(e),void this.ripple(e,t.clientX,t.clientY);if(this.pngPreviewUI.isVisible()&&null!=this.pngPreviewUI.selectedPage)return this.pngPreviewUI.selectedPage.content=void 0,this.pngPreviewUI.selectedPage.nodeId=e,this.pngPreviewUI.refresh(e),void this.ripple(e,t.clientX,t.clientY);var i=this.getNodeElement(e);i&&i._dragEventFired?i._dragEventFired=!1:this._commonClickHandler(e,t,this.config.nodeMouseClick)},OrgChart.prototype._nodeCircleMenuItemClickHandler=function(e,t){var i=e.parentNode.getAttribute(OrgChart.attr.control_node_circle_menu_wrraper_id),n=e.getAttribute(OrgChart.attr.control_node_circle_menu_name),o=this.nodeCircleMenuUI._menu[n];OrgChart.events.publish("click",[this.nodeCircleMenuUI,{nodeId:i,menuItemName:n,menuItem:o,event:t}])},OrgChart.prototype._nodeCircleMenuClickHandler=function(e){if(OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.menuUI.hide(),this.nodeContextMenuUI.isVisible())this.nodeContextMenuUI.hide();else{var t=this.getNode(e),i=null;if(Array.isArray(t.tags))for(var n=0;n<t.tags.length;n++){var o=t.tags[n];this.config.tags[o]&&this.config.tags[o].nodeCircleMenu&&(i=this.config.tags[o].nodeCircleMenu)}this.nodeCircleMenuUI.show(e,i)}},OrgChart.prototype._commonClickHandler=function(e,t,i){var n;(OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),i==OrgChart.action.expandCollapse&&this.toggleExpandCollapse(e,t),i==OrgChart.action.edit)&&((n=this.getNode(e))&&(this.editUI.show(n.id),this.ripple(n.id,t.clientX,t.clientY)));i==OrgChart.action.details&&((n=this.getNode(e))&&(this.editUI.show(n.id,!0),this.ripple(n.id,t.clientX,t.clientY)))},OrgChart.prototype._menuHandlerMouseDownHandler=function(e,t){t.stopPropagation(),t.preventDefault()},OrgChart.prototype._nodeMenuClickHandler=function(e,t,i){OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var n=this.getNode(e),o=null;if(Array.isArray(n.tags))for(var r=0;r<n.tags.length;r++){var a=n.tags[r];this.config.tags[a]&&this.config.tags[a].nodeMenu&&(o=this.config.tags[a].nodeMenu)}this.nodeMenuUI.showStickIn(t,e,null,o)},OrgChart.prototype._menuClickHandler=function(e,t){t.stopPropagation(),t.preventDefault(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.show(e.offsetLeft,e.offsetTop)},OrgChart.prototype._lonelyButtonHandler=function(){var e={id:this.generateId()};!1!==this.addNode(e,null,!0)&&this.center(e.id)},OrgChart.prototype.toggleExpandCollapse=function(e,t){var i=this.getNode(e),n=this.getCollapsedIds(i);if(n.length){if(!1===OrgChart.events.publish("expcollclick",[this,!1,e,n]))return!1;this.expand(e,n,!1)}else{if(!1===OrgChart.events.publish("expcollclick",[this,!0,e,i.childrenIds]))return!1;this.collapse(e,i.childrenIds,!1)}t&&this.ripple(i.id,t.clientX,t.clientY)},OrgChart.prototype._clickHandler=function(e,t){if(!(t.button>0)){for(var i=t.target;i!=e;){if(i.hasAttribute(OrgChart.attr.control_expcoll_id)){var n=i.getAttribute(OrgChart.attr.control_expcoll_id),o=this.getNode(n);return void this._expCollHandler(o.id)}if(i.hasAttribute(OrgChart.attr.node_id)){n=i.getAttribute(OrgChart.attr.node_id),o=this.getNode(n);return void this._nodeClickHandler(o.id,t)}if(i.hasAttribute(OrgChart.attr.control_node_menu_id)){t.stopPropagation(),t.preventDefault();n=i.getAttribute(OrgChart.attr.control_node_menu_id),o=this.getNode(n);return void this._nodeMenuClickHandler(o.id,i,t)}if(i.hasAttribute(OrgChart.attr.control_node_circle_menu_id)){t.stopPropagation(),t.preventDefault();n=i.getAttribute(OrgChart.attr.control_node_circle_menu_id);return void this._nodeCircleMenuClickHandler(n)}if(i.hasAttribute(OrgChart.attr.control_node_circle_menu_name))return t.stopPropagation(),void this._nodeCircleMenuItemClickHandler(i,t);if(i.hasAttribute(OrgChart.attr.control_add))return void this._lonelyButtonHandler();if(i.hasAttribute(OrgChart.attr.control_up_id)){n=i.getAttribute(OrgChart.attr.control_up_id);return t.stopPropagation(),t.preventDefault(),void this._upHandler(n)}if(i.hasAttribute(OrgChart.attr.c_link_from))return void OrgChart.events.publish("clink-click",[this,{from:i.getAttribute(OrgChart.attr.c_link_from),to:i.getAttribute(OrgChart.attr.c_link_to),event:t}]);if(i.hasAttribute(OrgChart.attr.s_link_from))return void OrgChart.events.publish("slink-click",[this,{from:i.getAttribute(OrgChart.attr.s_link_from),to:i.getAttribute(OrgChart.attr.s_link_to),event:t}]);if(i.hasAttribute("data-ctrl-n-dotted-close")){n=i.getAttribute("data-ctrl-n-dotted-close");return void this.minimize(n)}if(i.hasAttribute("data-ctrl-n-dotted-open")){n=i.getAttribute("data-ctrl-n-dotted-open");return void this.maximize(n)}i=i.parentNode}OrgChart.events.publish("canvas-click",[this,{event:t}])}},OrgChart.prototype._mouseDownHandler=function(e,t,i,n){var o=this;OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide();var r=this.getViewBox(),a=this.getScale(),l=OrgChart._getClientTouchesXY(t,0),s=OrgChart._getClientTouchesXY(t,1),c={diffX:0,diffY:0,x0:l.x,y0:l.y,type:this.config.enablePan?"pan":"pan-not-enabled",viewBoxLeft:r[0],viewBoxTop:r[1],time:Date.now()};t.touches&&t.touches.length>1&&(c.type="pinch",c.dist=Math.sqrt((l.x-s.x)*(l.x-s.x)+(l.y-s.y)*(l.y-s.y)));var d=null;if(n){var h=n.stChildren[0].lcn?n.stChildren[0].lcn:"base";d=o.manager.layoutConfigs[h],c.scrollTop=n.treeList.scrollTop}var p=0,moveHandler=function(e){var t=OrgChart._getClientTouchesXY(e,0);if(c&&"pan"==c.type){clearTimeout(o._timeout),c.diffX=t.x-c.x0,c.diffY=t.y-c.y0,p=Math.max(Math.abs(c.diffY),Math.abs(c.diffX));var i=-c.diffY/a+c.viewBoxTop,l=-c.diffX/a+c.viewBoxLeft;p>3&&(n?(n.treeList.scrollTop=c.scrollTop-c.diffY/a,o._treeListUpdateInterval&&(clearInterval(o._treeListUpdateInterval),o._treeListUpdateInterval=null),o._treeListUpdate(n,d)):(o._hideBeforeAnimation(),o._changeCursorOnPanStart(r,a,e),o._move(i,l,r)))}else if(c&&"pinch"==c.type){var s=OrgChart._getClientTouchesXY(e,1),h=Math.sqrt((t.x-s.x)*(t.x-s.x)+(t.y-s.y)*(t.y-s.y)),u=1+(h-c.dist)/(c.dist/100)/100;c.dist=h;var f=OrgChart._pinchMiddlePointInPercent(o.element,o.width(),o.height(),e);o.zoom(u,f)}},leaveHandler=function(t){if(p<3&&"pinch"!=c.type&&(null==t.touches||t.touches.length<=1))o._clickHandler(e,t);else if("pan"==c.type&&n){var r=Date.now()-c.time,a=Math.abs(p/r);if(a>.5){var l=(h=n.treeList.scrollTop)+400*a*(c.diffY>0?-1:1),s=n.stChildren[0].h;(l=Math.round(l/s)*s)!=h&&(o._treeListUpdateInterval&&(clearInterval(o._treeListUpdateInterval),o._treeListUpdateInterval=null),o._treeListUpdateInterval=OrgChart.animate(null,{},{},1500,OrgChart.anim.outExp,function(){},function(e){n.treeList.scrollTop=e*(l-h)+h,o._treeListUpdate(n,d.orientation)}))}else{var h=n.treeList.scrollTop;s=n.stChildren[0].h;(l=Math.round(n.treeList.scrollTop/s)*s)!=h&&(o._treeListUpdateInterval&&(clearInterval(o._treeListUpdateInterval),o._treeListUpdateInterval=null),o._treeListUpdateInterval=OrgChart.animate(null,{},{},200,OrgChart.anim.outSin,function(){},function(e){n.treeList.scrollTop=e*(l-h)+h,o._treeListUpdate(n,d.orientation)}))}}else"pan"==c.type&&!n&&p>10&&o._draw(!0,OrgChart.action.pan);"pan"!=c.type||n||o._changeCursorOnPanEnd(),c=null,e.removeEventListener(i.move,moveHandler),e.removeEventListener(i.up,leaveHandler),i.leave&&e.removeEventListener(i.leave,leaveHandler),i.touchstart&&e.removeEventListener(i.touchstart,leaveHandler)};e.addEventListener(i.move,moveHandler,{passive:!0}),e.addEventListener(i.up,leaveHandler),i.leave&&e.addEventListener(i.leave,leaveHandler),i.touchstart&&e.addEventListener(i.touchstart,leaveHandler,{passive:!0})},OrgChart.prototype._changeCursorOnPanStart=function(e,t,i){var n=this.getPointerElement();if(n){var o=OrgChart._getOffsetXY(this.element,i),r=o.x/t+e[0]-16/t,a=o.y/t+e[1]-16/t;n.style.display="inherit",n.setAttribute("transform","matrix(0,0,0,0,"+r+","+a+")"),OrgChart.animate(n,{transform:[0,0,0,0,r,a],opacity:0},{transform:[1/t,0,0,1/t,r,a],opacity:1},300,OrgChart.anim.outBack)}else this.element.style.cursor="move"},OrgChart.prototype._changeCursorOnPanEnd=function(){var e=this.getPointerElement();e?e.style.display="none":this.element.style.cursor="initial"},OrgChart.prototype._move=function(e,t,i){i[0]=t,i[1]=e,this.setViewBox(i),this.xScrollUI.setPosition(),this.yScrollUI.setPosition()},OrgChart.prototype.moveStart=function(e,t,i,n){if(e){if(!this._moveInterval){var o=this,r=this.getViewBox().slice(0),a=this.getScale(),l=0,s=0,c=1;OrgChart.isNEU(i)&&(i=OrgChart.anim.inSin),OrgChart.isNEU(n)&&(n=3e3),this._moveInterval=setInterval(function(){var d={x:0,y:0,xWithoutScale:0,yWithoutScale:0};e.left?(l++,d.x=l*OrgChart.MOVE_STEP/a,d.xWithoutScale=l*OrgChart.MOVE_STEP):e.right&&(l++,d.x=-l*OrgChart.MOVE_STEP/a,d.xWithoutScale=-l*OrgChart.MOVE_STEP),e.up?(s++,d.y=s*OrgChart.MOVE_STEP/a,d.yWithoutScale=s*OrgChart.MOVE_STEP):e.down&&(s++,d.y=-s*OrgChart.MOVE_STEP/a,d.yWithoutScale=-s*OrgChart.MOVE_STEP);var h=i((10*c-10)/n);d.x=d.x*h,d.xWithoutScale=d.xWithoutScale*h,d.y=d.y*h,d.yWithoutScale=d.yWithoutScale*h,o.setViewBox([r[0]+d.x,r[1]+d.y,r[2],r[3]]),t&&t(d),c+=1},10)}}else console.error("movePosition parameter not defined")},OrgChart.prototype.moveEnd=function(){this._moveInterval&&(clearInterval(this._moveInterval),this._moveInterval=null)},void 0===OrgChart&&(OrgChart={}),OrgChart.node=function(e,t,i,n){this.templateName=n,this.id=e,this.pid=t,this.children=[],this.childrenIds=[],this.parent=null,this.stpid=null,this.stParent=null,this.stChildren=[],this.stChildrenIds=[],this.tags=i,this.childCount=0,this.collapsedChildCount=0,this.deepCollapsedChildCount=0,this.deepChildCount=0,this.tags||(this.tags=[])},void 0===OrgChart&&(OrgChart={}),OrgChart.idb={version:1,dbName:"BALKAN",tableName:"orgchart-js",keyPath:"id"},OrgChart.idb.db=null,OrgChart.idb._open=function(e){if(OrgChart._browser().msie)e&&e(!1);else if((navigator.userAgent.toLowerCase().indexOf("safari")>0||navigator.userAgent.toLowerCase().indexOf("firefox")>0)&&window.location!==window.parent.location)e&&e(!1);else{if(!window.indexedDB)return console.error("Your browser doesn't support a stable version of IndexedDB."),void(e&&e(!1));if(null==OrgChart.idb.db){var t=indexedDB.open(OrgChart.idb.dbName,OrgChart.idb.version);t.onerror=function(t){console.error("Cannot open database!"),e&&e(!1)},t.onsuccess=function(t){OrgChart.idb.db=t.target.result,e&&e(!0)},t.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(OrgChart.idb.tableName)&&t.deleteObjectStore(OrgChart.idb.tableName),t.createObjectStore(OrgChart.idb.tableName,{keyPath:OrgChart.idb.keyPath})}}else e&&e(!0)}},OrgChart.idb.read=function(e,t){OrgChart.idb._open(function(i){if(i){var n=OrgChart.idb.db.transaction([OrgChart.idb.tableName]).objectStore(OrgChart.idb.tableName).get(e);n.onerror=function(e){console.error("Unable to retrieve data from database!"),t&&t(!1)},n.onsuccess=function(e){n.result?t&&t(!0,n.result):t&&t(null)}}else t&&t(!1)})},OrgChart.idb.write=function(e,t){OrgChart.idb.read(e.id,function(i){if(null==i){var n=OrgChart.idb.db.transaction([OrgChart.idb.tableName],"readwrite").objectStore(OrgChart.idb.tableName).add(e);n.onerror=function(e){console.error("Unable to add data to database!"),t&&t(!1)},n.onsuccess=function(e){t&&t(!0)}}else t&&t(i)})},OrgChart.idb.put=function(e,t){OrgChart.idb._open(function(i){if(i){var n=OrgChart.idb.db.transaction([OrgChart.idb.tableName],"readwrite").objectStore(OrgChart.idb.tableName).put(e);n.onerror=function(e){console.error("Unable to put data to database!"),t&&t(!1)},n.onsuccess=function(e){t&&t(!0)}}else t&&t(!1)})},OrgChart.idb.delete=function(e,t){OrgChart.idb._open(function(i){if(i){var n=OrgChart.idb.db.transaction([OrgChart.idb.tableName],"readwrite").objectStore(OrgChart.idb.tableName).delete(e);n.onerror=function(e){console.error("Unable to retrieve data from database!"),t&&t(!1)},n.onsuccess=function(e){n.error?t&&t(!1):t&&t(!0)}}else t&&t(!1)})},void 0===OrgChart&&(OrgChart={}),OrgChart.manager=function(e){this.config=e.config,this.layoutConfigs=e._layoutConfigs,this.visibleNodeIds=[],this.viewBox=null,this.action=null,this.actionParams=null,this.nodes={},this.oldNodes={},this.maxX=null,this.maxY=null,this.minX=null,this.minY=null,this.bordersByRootIdAndLevel=null,this.roots=null,this.state=null,this.vbIsInitializedFromState=!1,this.rootList=[],this.instance=e,this._fixAdjustForExport={x:0,y:0}},OrgChart.manager.prototype.read=function(e,t,i,n,o,r,a,l){var s=this;OrgChart.state._get(this.config.state,t,i,function(c){s.state=c,s.action=o,s.actionParams=r,o!=OrgChart.action.init||!s.state||r&&r.method&&"fit"==r.method?(s.viewBox=n,s.vbIsInitializedFromState=!1):(s.viewBox=s.state.vb,s.vbIsInitializedFromState=!0,Array.isArray(s.state.roots)&&(s.config.roots=s.state.roots));var d=s.maxX,h=s.maxY,p=s.minX,u=s.minY,f=s.bordersByRootIdAndLevel,g=s.roots,m=s.nodes;if(e){var x=OrgChart.manager._getResponse(t,i,s.visibleNodeIds,s.config,d,h,p,u,s.viewBox,g,s.action,s.actionParams,m,s.oldNodes,s.vbIsInitializedFromState);o!=OrgChart.action.exporting&&(s.maxX=d,s.maxY=h,s.minX=p,s.minY=u,s.roots=g,s.nodes=m,s.visibleNodeIds=x.visibleNodeIds),x.bordersByRootIdAndLevel=f,x.roots=g,x.adjustify={x:0,y:0},s.state&&(x.adjustify=s.state.adjustify),a(x)}else s.oldNodes=m||null,s._read(function(e){d=e.maxX,h=e.maxY,p=e.minX,u=e.minY,f=e.bordersByRootIdAndLevel,g=e.roots,m=e.nodes;var n=OrgChart.manager._getResponse(t,i,s.visibleNodeIds,s.config,d,h,p,u,s.viewBox,g,s.action,s.actionParams,m,s.oldNodes,s.vbIsInitializedFromState);n.notif=e.limit,n.roots=g,n.bordersByRootIdAndLevel=f,n.adjustify=e.adjustify,o!=OrgChart.action.exporting&&(s.maxX=d,s.maxY=h,s.minX=p,s.minY=u,s.roots=g,s.nodes=m,s.visibleNodeIds=n.visibleNodeIds,s.bordersByRootIdAndLevel=f,s.rootList=e.rootList),a(n)},l)})},OrgChart.manager.prototype._read=function(e,t){var i=this,n=OrgChart.manager._createNodes(this.instance);t(n);var o=n.nodes,r=n.roots,a=OrgChart.remote;null==a&&(a=OrgChart.local),a._setPositions(r,i.layoutConfigs,function(t){var a=OrgChart.manager._doNotChangePositionOfClickedNodeIfAny(r,o,i.action,i.actionParams,i.oldNodes,i.config.orientation);i.state&&i.action==OrgChart.action.init&&(a=i.state.adjustify),i.action==OrgChart.action.exporting?a=i._fixAdjustForExport:i._fixAdjustForExport=a;for(var l={minX:null,minY:null,maxX:null,maxY:null},s={},c=[],d=0;d<r.length;d++)OrgChart.manager._setMinMaxXYAdjustifyIterate(r[d],r[d],l,0,s,a,i.config.orientation,c);for(d=0;d<r.length;d++)OrgChart.manager._setChildCountPropsIterate(r[d],o);for(var h in c)for(var p in c[h]){var u=s[h][p],f=c[h][p];null==u.minX&&null==u.minY&&null==u.maxX&&null==u.maxY&&OrgChart._setMinMaxXY(f,u,!0)}e({minX:l.minX,minY:l.minY,maxX:l.maxX,maxY:l.maxY,bordersByRootIdAndLevel:s,nodes:o,roots:r,rootList:n.rootList,limit:t,adjustify:a})},o)},void 0===OrgChart&&(OrgChart={}),OrgChart.manager._initDinamicNode=function(e,t,i){t&&(e.lcn=t),i&&(e.isAssistant=!0);var n=OrgChart.t(e.templateName);e.w=n&&n.size?n.size[0]:0,e.h=n&&n.size?n.size[1]:0,e.isSplit="split"==e.templateName,e.isMirror="mirror"==e.templateName,e.isSubLevel="subLevel"==e.templateName},OrgChart.manager._setCollpasedProperty=function(e,t,i,n,o,r,a,l){if(null==e.collapsed&&t.collapse&&t.collapse.allChildren?e.collapsed=!0:null==e.collapsed&&(e.collapsed=!1),o==OrgChart.action.expand&&-1!=i.ids.indexOf(e.id)&&(e.collapsed=!1),o==OrgChart.action.collapse&&(i.expandIds||i.collapseIds)?i.expandIds&&-1!=i.expandIds.indexOf(e.id)?e.collapsed=!1:i.collapseIds&&-1!=i.collapseIds.indexOf(e.id)&&(e.collapsed=!0):o==OrgChart.action.collapse&&-1!=i.ids.indexOf(e.id)&&(e.collapsed=!0),o==OrgChart.action.expand&&"all"==i.ids&&(e.collapsed=!1),o!=OrgChart.action.exporting||OrgChart.isNEU(i.parentLevels)&&OrgChart.isNEU(i.childLevels)||null==i.id)o==OrgChart.action.exporting&&i.expandChildren&&(e.collapsed=!1);else if(!(null==i.id||OrgChart.isNEU(i.parentLevels)&&OrgChart.isNEU(i.childLevels))){var s=l[i.id];if(s==e)e.collapsed=!1;else{for(var c=!1,d=-1,h=!1,p=-1;s;){if(d++,s==e){c=!0;break}s=l[s.pid]}s=l[i.id];for(var u=l[e.id];u;){if(p++,u==s){h=!0;break}u=l[u.pid]}null!=i.parentLevels&&c&&d<=i.parentLevels||null!=i.childLevels&&h&&p<=i.childLevels||h&&i.expandChildren?e.collapsed=!1:e.collapsed=!0}}o==OrgChart.action.init&&null!=a?e.collapsed=!a.exp.has(e.id):o==OrgChart.action.init?-1!=e.tags.indexOf("left-partner")||-1!=e.tags.indexOf("right-partner")||-1!=e.tags.indexOf("partner")||e.parentPartner?e.collapsed=t.collapse&&r>=t.collapse.level&&-1==n.indexOf(e.id):e.collapsed=t.collapse&&r>=t.collapse.level-1&&-1==n.indexOf(e.id):o==OrgChart.action.centerNode||o==OrgChart.action.insert||o==OrgChart.action.expand||o==OrgChart.action.collapse?n.has(e.id)&&(e.collapsed=!1):o==OrgChart.action.update&&i&&i.changeRoots&&i.changeRoots.has(e.id)&&(e.collapsed=!1)},OrgChart.manager._initNode=function(e,t,i,n,o,r,a){var l=a.manager.config,s=a.manager.layoutConfigs,c=a.manager.action,d=a.manager.actionParams,h=a.manager.state,p=s[i||"base"];null==e.parent&&OrgChart.manager._setCollpasedProperty(e,p,d,o,c,n-1,h,t);for(var u=0;u<e.childrenIds.length;u++){var f=t[e.childrenIds[u]];if(OrgChart.manager._setCollpasedProperty(f,p,d,o,c,n,h,t),f.collapsed)e.collapsedChildCount++;else{if(f.parent=e,null!=f.ppid){var g=t[f.ppid];g&&(f.parentPartner=g)}(-1!=f.tags.indexOf("left-partner")||-1!=f.tags.indexOf("right-partner")||-1!=f.tags.indexOf("partner")||f.parentPartner)&&-1==r.indexOf(e.id)&&r.push(e.id),e.children.push(f)}}if(c!=OrgChart.action.minimize||e.min?c==OrgChart.action.maximize&&!0===e.min?(d.all||d.id==e.id)&&(e.min=!1):c==OrgChart.action.exporting&&!1===d.min?e.min=!1:c==OrgChart.action.init&&null!=h&&(e.min=h.min.has(e.id)):(d.all||d.id==e.id)&&(e.min=!0),!(e.min||e.tags&&e.tags.has("filter")))for(u=0;u<e.stChildrenIds.length;u++){(f=t[e.stChildrenIds[u]]).stParent=e,e.stChildren.push(f)}null!=n&&(e.level=n),i&&(e.lcn=i);var m=OrgChart._getSubLevels(e.tags,l.tags);m>0&&(e.subLevels=m),-1!=e.tags.indexOf("assistant")&&null!=e.parent&&(e.isAssistant=!0),p.layout==OrgChart.layout.treeList&&(e.isTreeListItem=!0),p.template&&l.template==e.templateName&&(e.templateName=p.template);var x=OrgChart.t(e.templateName,e.min);if(e.w=x&&x.size?x.size[0]:0,e.h=x&&x.size?x.size[1]:0,e.padding=x&&x.padding?x.padding:[0,0,0,0],e.isTreeListItem&&e.stParent&&null==e.stParent.treeList){var b=OrgChart.t(e.stParent.templateName,e.stParent.min);e.stParent.treeList={pinnedIds:[],scrollTop:0,scrollTopMax:0,maxHeight:b.treeListMaxHeight}}var y={node:e};OrgChart.events.publish("node-initialized",[a,y])},OrgChart.manager._iterate=function(e,t,i,n,o,r,a,l,s,c,d,h){var p=h.manager.layoutConfigs;if(OrgChart.manager._initNode(t,i,s,n,c,d,h),t.isAssistant&&(r[t.pid]||(r[t.pid]=[]),r[t.pid].push(t.id)),t.subLevels>0&&a.push(t.id),OrgChart.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN&&!t.isAssistant&&t.parent){if(t.parent&&t.parent.children.length&&t.parent.children[t.parent.children.length-1]==t){for(var u=[],f=0,g=0,m=0;m<t.parent.children.length;m++){-1==(x=t.parent.children[m]).tags.indexOf("partner")&&-1==x.tags.indexOf("left-partner")&&-1==x.tags.indexOf("right-partner")&&-1==x.tags.indexOf("assistant")&&0==x.children.length?u.push(x.id):-1!=x.tags.indexOf("assistant")?f++:-1==x.tags.indexOf("partner")&&-1==x.tags.indexOf("left-partner")&&-1==x.tags.indexOf("right-partner")||g++}(OrgChart.MIXED_LAYOUT_ALL_NODES&&u.length>1&&u.length==t.parent.children.length-f-g||!OrgChart.MIXED_LAYOUT_ALL_NODES&&u.length>1)&&(l[t.pid]=u)}}else if(!t.isAssistant&&0==t.childrenIds.length&&t.parent&&!l[t.pid]){for(u=[],f=0,g=0,m=0;m<t.parent.children.length;m++){var x;-1==(x=t.parent.children[m]).tags.indexOf("partner")&&-1==x.tags.indexOf("left-partner")&&-1==x.tags.indexOf("right-partner")&&-1==x.tags.indexOf("assistant")&&0==x.childrenIds.length?u.push(x.id):-1!=x.tags.indexOf("assistant")?f++:-1==x.tags.indexOf("partner")&&-1==x.tags.indexOf("left-partner")&&-1==x.tags.indexOf("right-partner")||g++}(OrgChart.MIXED_LAYOUT_ALL_NODES&&u.length>OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&u.length==t.parent.childrenIds.length-f-g||!OrgChart.MIXED_LAYOUT_ALL_NODES&&u.length>OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)&&(l[t.pid]=u)}t.stChildren.length&&(e.stContainerNodes||(e.stContainerNodes=[]),e.stContainerNodes.push(t));for(var b=0;b<t.stChildren.length;b++){var y="";for(m=0;m<t.tags.length;m++)if(p[t.tags[m]]){y=t.tags[m];break}o.push(t.stChildren[b].id),OrgChart.manager._iterate(e,t.stChildren[b],i,0,o,r,a,l,y,c,d,h)}n++;for(b=0;b<t.children.length;b++)t.isTreeListItem&&(t.children[b].isTreeListItem=t.isTreeListItem),OrgChart.manager._iterate(e,t.children[b],i,n,o,r,a,l,s,c,d,h)},OrgChart.manager.__createNodes=function(e,t,i,n,o,r,a,l){for(var s=[],c=OrgChart._addDottedLines(i),d=0;d<c.length;d++){var h,p=c[d];h=OrgChart.STRING_TAGS?p.tags?p.tags.split(","):[]:Array.isArray(p.tags)?p.tags.slice(0):[],l.filterUI.addFilterTag(p)&&h.unshift("filter");var u=l.searchUI.addMatchTag(p.id);!0===u?h.unshift("match"):!1===u&&h.unshift("no-match");var f=OrgChart._getTemplate(h,i.tags,i.template),g=new OrgChart.node(p.id,p.pid,h,f);OrgChart.isNEU(p.ppid)||(g.ppid=p.ppid),OrgChart.isNEU(p.stpid)||(g.stpid=p.stpid),null!=p.movex&&(g.movex=p.movex),null!=p.movey&&(g.movey=p.movey),e[p.id]=g,s.push(p.id)}if(null!=i.orderBy){var m=OrgChart.manager._getOrderSortArray(i.orderBy);s.sort(function(e,t){var i,n;for(var o of c)if(o.id==e&&(i=o),o.id==t&&(n=o),i&&n)break;for(var r=0;r<m.length;r++){var a=i[m[r].field],l=n[m[r].field],s=a,d=l;if(null==s&&(s=""),null==d&&(d=""),"string"==typeof s&&"string"==typeof d){var h=s.localeCompare(d);if(m[r].desc&&(h*=-1),0!==h)return h}else{h=a<l?-1:a>l?1:0;if(m[r].desc&&(h*=-1),0!==h)return h}}})}for(d=0;d<s.length;d++){var x=s[d],b=(g=e[x],r?r[x]:null),y=e[g.stpid],v=e[g.pid];if(y||(g.stpid=null),v||(g.pid=null),y){var _=r?r[y.id]:null;_&&(y.min=_.min),y.stChildrenIds.push(g.id)}else v?(b&&(g.collapsed=b.collapsed,g.min=b.min,g.treeList=b.treeList),v.childrenIds.push(g.id)):(b&&(g.collapsed=b.collapsed,g.min=b.min,g.treeList=b.treeList),t.push(g),a.push(g.id));n==OrgChart.action.init&&(g.min=OrgChart._getMin(g,i))}},OrgChart.manager._createNodes=function(e){var t=e.manager.config,i=e.manager.layoutConfigs,n=e.manager.action,o=e.manager.actionParams,r=e.manager.oldNodes,a=e.manager.state,l={},s=[],c=[];if(OrgChart.manager.__createNodes(l,s,t,n,o,r,c,e),null!=t.roots){s=[];for(var d=0;d<t.roots.length;d++){var h=l[t.roots[d]];if(h&&n==OrgChart.action.centerNode){for(var p=h;null!=p.pid||null!=p.stpid;)p=null==p.pid&&null!=p.stpid?l[p.stpid]:l[p.pid];for(var u=l[o.id];(null!=u.pid||null!=u.stpid)&&u!=h;)u=null==u.pid&&null!=u.stpid?l[u.stpid]:l[u.pid];p==u&&(h=p)}if(h){for(var f=!1,g=0;g<s.length;g++)if(s[g].id==h.id){f=!0;break}if(!f){if(!OrgChart.isNEU(h.pid))(me=(m=l[h.pid]).childrenIds.indexOf(h.id))>-1&&m.childrenIds.splice(me,1);s.push(h)}}}t.roots=[];for(d=0;d<s.length;d++)t.roots.push(s[d].id)}if(n==OrgChart.action.exporting&&null!=o.id)if(o.parentLevels){for(var m=l[o.id],x=0;x<o.parentLevels&&l[m.pid];)x++,m=l[m.pid];m.pid=null,s=[m]}else{(y=l[o.id])&&(y.pid=null,s=[y])}var b=[];if(n==OrgChart.action.init&&t.expand&&t.expand.nodes&&null==a)for(d=0;d<t.expand.nodes.length;d++){var y=l[t.expand.nodes[d]];for(!0===t.expand.allChildren&&OrgChart.manager._addExpandedNodeIdsIterate(y,l,b);y;)b.push(y.id),null==y.pid&&null!=y.stpid?(y=l[y.stpid]).min=!1:y=l[y.pid]}else if(n==OrgChart.action.expand&&o.ids&&"all"!=o.ids||n==OrgChart.action.collapse&&o&&o.expandIds){oe=n==OrgChart.action.expand?o.ids:o.expandIds;for(d=0;d<oe.length;d++)for(m=l[(y=l[oe[d]]).pid];m;)b.push(m.id),null==m.pid&&null!=m.stpid?(m=l[m.stpid]).min=!1:m=l[m.pid]}else if(n==OrgChart.action.centerNode){for(var v=OrgChart._getCenterNodeFromParams(l,o);v;){if(b.push(v.id),o.options.parentState===OrgChart.COLLAPSE_PARENT_NEIGHBORS&&v)for(d=0;d<v.childrenIds.length;d++){(z=l[v.childrenIds[d]]).collapsed=!0}if(null==v.pid&&null!=v.stpid){if((v=l[v.stpid]).min=!1,v.tags)-1!=(me=v.tags.indexOf("filter"))&&(v.tags.splice(me,1),e.filterUI._removeFilter(v.id))}else v=l[v.pid]}if(v=OrgChart._getCenterNodeFromParams(l,o),o.options.childrenState===OrgChart.COLLAPSE_SUB_CHILDRENS)for(d=0;d<v.childrenIds.length;d++){(w=l[v.childrenIds[d]]).collapsed=!1;for(var _=0;_<w.childrenIds.length;_++){l[w.childrenIds[_]].collapsed=!0}}if(o.options.parentState===OrgChart.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED)if(m=l[v.pid])for(d=0;d<m.childrenIds.length;d++){var w;if((w=l[m.childrenIds[d]])!=v){w.collapsed=!1;for(_=0;_<w.childrenIds.length;_++){l[w.childrenIds[_]].collapsed=!0}}}}else if(n==OrgChart.action.insert)for(y=l[o.insertedNodeId];y;)b.push(y.id),null==y.pid&&null!=y.stpid?(y=l[y.stpid]).min=!1:y=l[y.pid];var I=[],k={},C=[],L={},S=[];for(d=0;d<s.length;d++)OrgChart.manager._iterate(s[d],s[d],l,0,I,k,C,L,"",b,S,e);if(n==OrgChart.action.collapse&&o&&Array.isArray(o.expandIds)&&Array.isArray(o.collapseIds))for(d=0;d<o.ids.length;d++)if(o.expandIds.has(o.collapseIds[d]))console.error(`id ${o.collapseIds[d]} exist in both collapseIds and expandIds`);else{(y=l[o.collapseIds[d]])&&(y.collapsed=!0)}for(d=s.length-1;d>=0;d--)s[d].collapsed&&s.splice(d,1);for(d=0;d<S.length;d++){y=l[S[d]];var N=[],A=[],E=[],M={},$=0,U=0,T=0,P=[],O=[];for(_=0;_<y.children.length;_++){(z=y.children[_]).isAssistant?N.push(z.id):-1!=z.tags.indexOf("right-partner")?(z.isPartner=1,z.children=[],A.push(z.id)):-1!=z.tags.indexOf("left-partner")?(z.isPartner=2,z.children=[],E.push(z.id)):-1==z.tags.indexOf("partner")||$%2?-1!=z.tags.indexOf("partner")&&$%2?(z.isPartner=2,z.children=[],E.push(z.id),$++):z.parentPartner?(M[z.parentPartner.id]||(M[z.parentPartner.id]=[]),M[z.parentPartner.id].push(z.id)):N.push(z.id):(z.isPartner=1,z.children=[],A.push(z.id),$++)}y.children=[];var B=[];for(_=0;_<A.length;_++){M[(z=l[A[_]]).id]?y.children.push(z):y.children.splice(0,0,z);for(var R=0;R<z.childrenIds.length;R++)B.push(z.childrenIds[R])}var H=[];for(_=0;_<E.length;_++){M[(z=l[E[_]]).id]?y.children.push(z):y.children.splice(0,0,z);for(R=0;R<z.childrenIds.length;R++)H.push(z.childrenIds[R])}for(_=0;_<H.length;_++){(z=l[H[_]]).collapsed||(z.parentPartner=z.parent,z.parent=y,z.isChildOfPartner=!0,y.children.push(z))}for(_=E.length-1;_>=0;_--)if(M[E[_]])for(g=0;g<M[E[_]].length;g++)y.children.push(l[M[E[_]][g]]),U++,-1==O.indexOf(E[_])&&O.push(E[_]);for(_=0;_<N.length;_++){var z=l[N[_]];y.children.push(z)}for(_=0;_<A.length;_++)if(M[A[_]])for(g=0;g<M[A[_]].length;g++)y.children.push(l[M[A[_]][g]]),T++,-1==P.indexOf(A[_])&&P.push(A[_]);for(_=0;_<B.length;_++){(z=l[B[_]]).collapsed||(z.parentPartner=z.parent,z.parent=y,z.isChildOfPartner=!0,y.children.push(z))}y.partnerSeparation=Math.max(O.length,P.length)*t.partnerChildrenSplitSeparation+t.minPartnerSeparation,N.length||!U||T?N.length||U||!T?N.length||1!=U||1!=T?N.length||U||T?!N.length||U||T?N.length&&(U||T)?y.hasPartners=7:y.hasPartners=1:y.hasPartners=6:y.hasPartners=5:y.hasPartners=4:y.hasPartners=3:y.hasPartners=2}for(d=0;d<C.length;d++){var F=i[(y=l[C[d]]).lcn?y.lcn:"base"];for(_=0;_<y.subLevels;_++){var D=new OrgChart.node(y.id+"_sub_level_index_"+_,y.pid,[],"subLevel");if(OrgChart.manager._initDinamicNode(D,y.lcn),m=y.parent)null!=y.movex&&(D.movex=y.movex),null!=y.movey&&(D.movey=y.movey),(me=m.children.indexOf(y))>-1&&(m.children.splice(me,1),m.children.splice(me,0,D)),D.children.push(y),D.parent=m,y.parent=D,l[D.id]=D}}for(var V in k){(m=l[V]).hasAssistants=!0;D=new OrgChart.node(m.id+"_split_assitant_0",m.id,["assistant"],"split");null!=m.movex&&(D.movex=m.movex),null!=m.movey&&(D.movey=m.movey),OrgChart.manager._initDinamicNode(D,m.lcn,!0),l[D.id]=D;var Y=[];for(_=m.children.length-1;_>=0;_--){(z=m.children[_]).isAssistant?(z.parent=null,m.children.splice(_,1),Y.splice(0,0,z.id)):z.isPartner||(z.parent&&L[z.parent.id]&&D&&z.parent.id!=D.id&&(Object.defineProperty(L,D.id,Object.getOwnPropertyDescriptor(L,z.parent.id)),delete L[z.parent.id]),z.parent=D,D.children.unshift(z),m.children.splice(_,1))}if(Y.length%2){var j=l[Y[Y.length-1]],X=new OrgChart.node(j.id+"_mirror",m.pid,[],"mirror");OrgChart.manager._initDinamicNode(X,j.lcn,!0),X.isAssistant=!0,X.w=j.w,X.h=j.h,l[X.id]=X,Y.splice(Y.length-1,0,X.id)}var G=1;for(_=Y.length-1;_>=0;_--)if(_%2&&_!=Y.length-1){var q=new OrgChart.node(m.id+"_split_assitant_"+G,m.pid,[],"split");OrgChart.manager._initDinamicNode(q,m.lcn,!0),null!=m.movex&&(q.movex=m.movex),null!=m.movey&&(q.movey=m.movey),l[q.id]=q,Y.splice(_,0,q.id),G++}else _%2&&Y.splice(_,0,D.id);for(_=0;_<Y.length;_+=3){var W=null;W=0==_?m:l[Y[_-2]];var K=l[Y[_]],Z=l[Y[_+1]],J=l[Y[_+2]];K.parent=W,Z.parent=W,J.parent=W,W.children.push(K),W.children.push(Z),W.children.push(J)}}var Q=!1;for(var ee in i){if(0!=(F=i[ee]).layout){Q=!0;break}}var te=OrgChart.events.has("node-layout",e._event_id);if(Q||te){var ie={nodes:l,config:t,action:n,actionParams:o};if(C.length){var ne=!1;for(var V in L){var oe=L[V];for(d=0;d<oe.length;d++){if((y=l[oe[d]]).subLevels){ne=!0;break}}if(ne)break}if(ne){var re={},ae={},le={};for(var V in L){oe=L[V];var se=!1,ce=null;for(d=0;d<oe.length;d++){var de=oe[d];(null===ce||C.has(de))&&(ce=l[de].parent.id,se||OrgChart.isNEU(l[de].subLevels)||(se=l[de].subLevels>0)),re[ce]||(re[ce]=[]),re[ce].push(de),se&&(le[ce]=V,ae[ce]||(ae[ce]=[]),ae[ce].push(de))}}for(var V in L={},ae)if(ae[V].length>OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN){var he=le[V];for(d=l[he].children.length-1;d>=0;d--){z=l[he].children[d];ae[V].has(z.id)&&l[he].children.splice(d,1)}}for(var V in re)re[V].length>OrgChart.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&(L[V]=re[V])}}for(var V in L){for(var pe=m=l[V];pe.isSplit;)pe=l[pe.pid];for(;pe.isSubLevel;)pe=l[pe.pid];if(0!=(F=i[m.lcn?m.lcn:"base"]).layout||te){ie.pnode=m,ie.layout=F.layout,ie.layoutGridColumns=t.layoutGridColumns,ie.childrenIds=L[V],ie.lastChildrenPidIds=L,ie.subLevels=0,ie.layouts=[],OrgChart.events.publish("node-layout",[e,ie]),OrgChart.events.publish("layout",[ie]),ie.layouts.length||ie.layouts.push({layout:ie.layout,childrenIds:ie.childrenIds,subLevels:ie.subLevels,layoutGridColumns:ie.layoutGridColumns});for(var ue=0;ue<ie.layouts.length;ue++){var fe=ie.layouts[ue];for(OrgChart.isNEU(fe.subLevels)&&(fe.subLevels=0),OrgChart.isNEU(fe.layout)&&(fe.layout=F.layout),pe=m=l[V];pe.isSplit;)pe=l[pe.pid];for(;pe.isSubLevel;)pe=l[pe.pid];var ge=m;for(_=0;_<fe.subLevels;_++){D=new OrgChart.node(ue+"_sublevel_layout_"+_,ge.id,[],"subLevel");OrgChart.manager._initDinamicNode(D,ge.lcn),D.parent=ge,ge.children.push(D),l[D.id]=D,ge=D}if(fe.subLevels){for(_=0;_<fe.childrenIds.length;_++){var me;z=l[fe.childrenIds[_]];-1!=(me=m.children.indexOf(z))&&m.children.splice(me,1),z.parent=ge,ge.children.push(z)}m=ge}if(fe.layout==OrgChart.layout.grid&&fe.childrenIds.length>2){"dynamic"==fe.layoutGridColumns&&(fe.layoutGridColumns=OrgChart._getDynamicGridCoulumns(fe.childrenIds.length));var xe=m.id;for(d=m.children.length-1;d>=0;d--)for(_=0;_<fe.childrenIds.length;_++){de=fe.childrenIds[_];if(m.children[d].id==de){m.children.splice(d,1);break}}var be=fe.layoutGridColumns;be%2!=0&&be>2&&be--;for(d=0;d<fe.childrenIds.length;d+=be){var ye=null;for(_=0;_<be;_++){var ve=d+be>=fe.childrenIds.length;if(fe.childrenIds.length-1<d+_)break;(z=l[de=fe.childrenIds[d+_]]).parent=l[xe],l[xe].children.push(z),ve||(be/2-1==_&&(ye=new OrgChart.node(fe.childrenIds[d+_-1]+"_grid_pseudo_node_"+fe.childrenIds[d+_+1],xe,[],"subLevel"),OrgChart.manager._initDinamicNode(ye,m.lcn),ye.parent=l[xe],l[xe].children.push(ye),l[ye.id]=ye),be-1==_&&(xe=ye.id))}}}if(fe.layout==OrgChart.layout.mixed){var _e=fe.childrenIds;for(d=_e.length-1;d>=0;d--){m=(z=l[_e[d]]).parent,z.layout=OrgChart.layout.mixed;for(_=m.children.length-1;_>=0;_--)if(z.id==m.children[_].id){m.children.splice(_,1);break}if(d>0){var we=l[_e[d-1]];z.parent=we,z.layout=OrgChart.layout.mixed,we.children.push(z)}else m.children.push(z)}}else if(fe.layout>1){D=new OrgChart.node(ue+"_"+m.id+"_split_0",pe.id,[],"split");null!=m.movex&&(D.movex=m.movex),null!=m.movey&&(D.movey=m.movey),OrgChart.manager._initDinamicNode(D,m.lcn),l[D.id]=D,D.layout=fe.layout;var Ie=[];for(d=fe.childrenIds.length-1;d>=0;d--){for(z=l[fe.childrenIds[d]],_=0;_<m.children.length;_++)m.children[_].id==z.id&&m.children.splice(_,1);if(z.parent=null,z.layout=fe.layout,fe.layout!=OrgChart.layout.treeRightOffset&&fe.layout!=OrgChart.layout.treeRight||Ie.splice(0,0,z.id),fe.layout>2){var ke=new OrgChart.node(ue+"_"+z.id+"_mirror",pe.id,[],"mirror");OrgChart.manager._initDinamicNode(ke,z.lcn),ke.layout=fe.layout,l[ke.id]=ke,Ie.splice(0,0,ke.id)}fe.layout!=OrgChart.layout.treeRightOffset&&fe.layout!=OrgChart.layout.treeRight&&Ie.splice(0,0,z.id)}for(G=1,_=Ie.length-1;_>=0;_--)if(_%2&&_!=Ie.length-1){q=new OrgChart.node(ue+"_"+m.id+"_split_"+G,pe.id,[],"split");OrgChart.manager._initDinamicNode(q,m.lcn),null!=m.movex&&(q.movex=m.movex),null!=m.movey&&(q.movey=m.movey),q.layout=fe.layout,l[q.id]=q,Ie.splice(_,0,q.id),G++}else _%2&&Ie.splice(_,0,D.id);for(_=0;_<Ie.length;_+=3){W=null;0==_&&(W=m);K=l[Ie[_]],Z=l[Ie[_+1]],J=l[Ie[_+2]];0!=_&&(W=l[Ie[_-3]]),0==_||Z||(W=l[Ie[_-2]]),K.parent=W,W.children.push(K),Z&&(0!=_&&(W=l[Ie[_-2]]),Z.parent=W,W.children.push(Z)),J&&(0!=_&&(W=l[Ie[_-1]]),J.parent=W,W.children.push(J))}}}}}}if(OrgChart.VERTICAL_CHILDREN_ASSISTANT)for(d=0;d<s.length;d++)OrgChart.manager._verticalAssistantIterate(s[d],l);ie={nodes:l,roots:s};return OrgChart.events.publish("nodes-initialized",[e,ie]),{nodes:ie.nodes,roots:ie.roots,rootList:c}},OrgChart.manager._getOrderSortArray=function(e){if("string"==typeof e)return[{field:e,desc:!1}];if(Array.isArray(e)){var t=[];for(var i of e)"string"==typeof i?t.push({field:i,desc:!1}):e instanceof Object?t.push(i):console.error("Unseported orderBy value!");return t}if(e instanceof Object)return[e];console.error("Unseported orderBy value!")},OrgChart.manager._getNodeWidth=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h}return 0},OrgChart.manager._isVisible=function(e,t,i,n,o,r,a){var l=0;if("auto"==OrgChart.LAZY_LOADING_FACTOR){var s=r/o*2,c=a/o*2;l=s>c?Math.ceil(s):Math.ceil(c)}else l=OrgChart.LAZY_LOADING_FACTOR/o;if(null!=e.x&&null!=e.y){if(OrgChart._getLazyLoading(t)&&n!==OrgChart.action.exporting){function is_vizible(e,t){var i=e.x,n=e.y,o=e.w,r=e.h,a=t[0]-l,s=t[2]+l+t[0],c=t[1]-l,d=t[3]+l+t[1],h=i+o>a&&s>i;return h&&(h=n+r>c&&d>n),h}if(is_vizible(e,i))return!0;for(var d=0;d<e.children.length;d++)if(is_vizible(e.children[d],i))return!0;return!1}return!0}},OrgChart.manager.getAllFields=function(e){var t=[OrgChart.TAGS];for(var i in e.nodeBinding)t.push(e.nodeBinding[i]);for(i=0;i<e.nodes.length;i++)for(var n in e.nodes[i])n!==OrgChart.ID&&n!==OrgChart.TAGS&&n!==OrgChart.NODES&&n!==OrgChart.PID&&n!==OrgChart.STPID&&"movex"!==n&&"movey"!==n&&(e.nodeBinding[n]||t.has(n)||t.push(n));return t},OrgChart.manager._getMostDeepChild=function(e){if(e){var t=e;return function getMostDeepChild(e){e.sl>t.sl&&(t=e);for(var i=0;i<e.children.length;i++)getMostDeepChild(e.children[i])}(e),t}},OrgChart.manager._getResponse=function(e,t,i,n,o,r,a,l,s,c,d,h,p,u,f){var g=c[0],m=[],x={top:null,left:null,bottom:null,right:null,minX:null,maxX:null,minY:null,maxY:null},b=[[],[],[]],y=o-a+2*n.padding,v=r-l+2*n.padding,_=OrgChart.getScale(s,e,t,n.scaleInitial,n.scaleMax,n.scaleMin,y,v);if(x.top=l-n.padding,x.left=a-n.padding,x.bottom=r+n.padding-t/_,x.right=o+n.padding-e/_,x.maxX=o,x.minX=a,x.maxY=r,x.minY=l,0==c.length||null==s&&!f&&n.align==OrgChart.CENTER){var w=Math.ceil(e/_),I=Math.ceil(t/_),k=0,C=0;if(w-2*n.padding>=o-a)switch(k=(o+a)/2-w/2,n.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:k=(a-o)/2-w/2}else switch(k=g.x-w/2+OrgChart.manager._getNodeWidth(g,n)/2,n.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:(k=-(w/2-(a-o)/2))<n.padding-w&&(k=n.padding-w);break;case OrgChart.orientation.left:case OrgChart.orientation.bottom_left:case OrgChart.orientation.top_left:case OrgChart.orientation.left_top:(k=-(w/2-(o-a)/2))>-n.padding&&(k=-n.padding)}if(I-2*n.padding>=r-l)switch(C=(r+l)/2-I/2,n.orientation){case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:C=(l-r)/2-I/2}else switch((C=-(I/2-(r-l)/2))>-n.padding&&(C=-n.padding),n.orientation){case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:(C=-(I/2-(l-r)/2))<n.padding-I&&(C=n.padding-I);break;case OrgChart.orientation.left:case OrgChart.orientation.right:C=g.y-I/2+OrgChart.manager._getNodeWidth(g,n)/2}s=[k,C,w,I]}else if(null==s&&!f&&n.align==OrgChart.ORIENTATION){w=Math.ceil(e/_),I=Math.ceil(t/_),k=0,C=0;switch(n.orientation){case OrgChart.orientation.top:k=g.x-w/2+OrgChart.manager._getNodeWidth(g,n)/2,C=-n.padding;break;case OrgChart.orientation.bottom:k=g.x-w/2+OrgChart.manager._getNodeWidth(g,n)/2,C=n.padding-I;break;case OrgChart.orientation.left:k=-n.padding,C=g.y-I/2+OrgChart.manager._getNodeWidth(g,n)/2;break;case OrgChart.orientation.right:k=n.padding-w,C=g.y-I/2+OrgChart.manager._getNodeWidth(g,n)/2;break;case OrgChart.orientation.top_left:k=-n.padding,C=-n.padding;break;case OrgChart.orientation.right_top:k=n.padding-w,C=-n.padding;break;case OrgChart.orientation.left_top:k=-n.padding,C=-n.padding;break;case OrgChart.orientation.bottom_left:k=-n.padding,C=n.padding-I}s=[k,C,w,I]}if(d==OrgChart.action.centerNode||d==OrgChart.action.maximize){var L=OrgChart._getCenterNodeFromParams(p,h);1==h.options.horizontal&&(s[0]=L.x+L.w/2-s[2]/2),1==h.options.vertical&&(s[1]=L.y+L.h/2-s[3]/2)}if(d==OrgChart.action.insert||d==OrgChart.action.expand||d==OrgChart.action.collapse||d==OrgChart.action.update||d==OrgChart.action.centerNode){var S=null;if(d==OrgChart.action.insert&&h&&null!=h.insertedNodeId&&null!=h.insertedNodeId)S=p[h.insertedNodeId];else if(d==OrgChart.action.update&&h&&null!=h.visId&&null!=h.visId)S=p[h.visId];else if(d!=OrgChart.action.expand&&d!=OrgChart.action.collapse||!h||null==h.id||null==h.id){if(d==OrgChart.action.centerNode){switch(n.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:h.options.vertical||(S=p[h.id]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:h.options.horizontal||(S=p[h.id])}S&&(S=OrgChart.manager._getMostDeepChild(S))}}else S=p[h.id],S=OrgChart.manager._getMostDeepChild(S);if(!OrgChart.FIXED_POSITION_ON_CLICK&&S){if(S.isTreeListItem){for(;!S.stParent;)S=S.parent;S=S.stParent}switch(n.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:var N=S.y+S.h-s[3]+n.padding;s[1]<N&&(s[1]=N);break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:N=S.y-n.padding;s[1]>N&&(s[1]=N);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:N=S.x-n.padding;s[0]>N&&(s[0]=N);break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:N=S.x+S.w-s[2]+n.padding;s[0]<N&&(s[0]=N)}}}for(var A=0;A<c.length;A++)OrgChart.manager._iterate2(c[A],p,n,s,d,h,m,u,i,b,_,e,t);return{animations:b,boundary:x,viewBox:s,visibleNodeIds:m,nodes:p,allFields:OrgChart.manager.getAllFields(n)}},OrgChart.manager._iterate2=function(e,t,i,n,o,r,a,l,s,c,d,h,p){if(OrgChart.manager._isVisible(e,i,n,o,d,h,p)){a.push(e.id);var u=null;if((o==OrgChart.action.expand||o==OrgChart.action.collapse||o==OrgChart.action.maximize)&&l&&l[e.id]&&"expandCollapseToLevel"==r.method){if(u={x:(x=l[e.id]).x,y:x.y},x){u={x:x.x,y:x.y};for(var f=e,g=null;null!=f;)l[f.id]&&l[f.id].collapsed&&(g=f),f=f.parent;g&&g.parent&&(u={x:g.parent.x,y:g.parent.y})}if(b=t[r.id]){for(f=e.parent;null!=f;)f=f.parent;f&&(u={x:b.x+b.w/2-e.w/2,y:b.y+b.h/2-e.h/2})}}else if((o==OrgChart.action.expand||o==OrgChart.action.collapse)&&l&&l[e.id]){if(u={x:(x=l[e.id]).x,y:x.y},"all"==r.ids&&x){u={x:x.x,y:x.y};for(f=e,g=null;null!=f;)l[f.id]&&l[f.id].collapsed&&(g=f),f=f.parent;g&&g.parent&&(u={x:g.parent.x,y:g.parent.y})}if(b=t[r.id]){for(f=e.parent;null!=f&&-1==r.ids.indexOf(e.id)&&-1==r.ids.indexOf(f.id);)f=f.parent;f&&(u={x:b.x+b.w/2-e.w/2,y:b.y+b.h/2-e.h/2})}}else if(o==OrgChart.action.centerNode&&l&&l[e.id]){if(null!=(x=l[e.id]).x&&null!=x.y&&(u={x:x.x,y:x.y}),(m=OrgChart._getCenterNodeFromParams(t,r))&&m==e)(f=e.parent)&&f.id==r.id&&(u={x:m.x+m.w/2-e.w/2,y:m.y+m.h/2-e.h/2})}else if(o==OrgChart.action.maximize&&l&&l[e.id]){var m;if(null!=(x=l[e.id]).x&&null!=x.y&&(u={x:x.x,y:x.y}),(m=OrgChart._getCenterNodeFromParams(t,r))&&m==e)(f=e.parent)&&f.id==r.id&&(u={x:m.x+m.w/2-e.w/2,y:m.y+m.h/2-e.h/2})}else if(o==OrgChart.action.minimize&&l&&l[e.id]){u={x:(x=l[e.id]).x,y:x.y}}else if(o==OrgChart.action.insert&&r&&r.insertedNodeId==e.id&&e.parent)u={x:e.parent.x,y:e.parent.y};else if(o!=OrgChart.action.update&&o!=OrgChart.action.insert||!l)o!==OrgChart.action.exporting&&o!==OrgChart.action.init&&-1==s.indexOf(e.id)&&(c[0].push(e.id),c[1].push({opacity:0}),c[2].push({opacity:1}));else{var x,b;if((!(x=l[e.id])||OrgChart.isNEU(x.x)&&OrgChart.isNEU(x.y))&&r){if(b=t[r.id]){for(f=b;f&&f.id==e.id;)f=f.parent;f&&(u={x:b.x,y:b.y})}}else x&&(u={x:x.x,y:x.y})}null!=u&&null!=u.x&&null!=u.y&&(u.x==e.x&&u.y==e.y||r&&r.dragNodeIdList&&-1!=r.dragNodeIdList.indexOf(e.id)||e.isSplit||(c[0].push(e.id),c[1].push({transform:[1,0,0,1,u.x,u.y]}),c[2].push({transform:[1,0,0,1,e.x,e.y]})))}for(var y=0;y<e.stChildren.length;y++)OrgChart.manager._iterate2(e.stChildren[y],t,i,n,o,r,a,l,s,c,d,h,p);for(y=0;y<e.children.length;y++)OrgChart.manager._iterate2(e.children[y],t,i,n,o,r,a,l,s,c,d,h,p)},OrgChart.manager._addExpandedNodeIdsIterate=function(e,t,i){for(var n=0;n<e.childrenIds.length;n++)i.push(e.childrenIds[n]),OrgChart.manager._addExpandedNodeIdsIterate(t[e.childrenIds[n]],t,i)},OrgChart.manager._setChildCountPropsIterate=function(e,t){void 0===e.w&&(e.collapsedChildCount=e.childrenIds.length),e.deepChildCount=e.childCount=e.childrenIds.length,e.deepCollapsedChildCount=e.collapsedChildCount;for(var i=t[e.pid];i;)i.deepCollapsedChildCount+=e.collapsedChildCount,i.deepChildCount+=e.childCount,i=t[i.pid];for(var n of e.stChildrenIds)OrgChart.manager._setChildCountPropsIterate(t[n],t);for(var n of e.childrenIds)OrgChart.manager._setChildCountPropsIterate(t[n],t)},OrgChart.manager._setMinMaxXYAdjustifyIterate=function(e,t,i,n,o,r,a,l){for(var s of(e.x+=r.x,e.y+=r.y,e.stChildren))OrgChart.manager._setMinMaxXYAdjustifyIterate(s,s,i,0,o,r,a,l);for(var s of(e.isPartner?e.sl=n-1:e.sl=n,null==o[t.id]&&(o[t.id]={}),null==o[t.id][e.sl]&&(o[t.id][e.sl]={minX:null,minY:null,maxX:null,maxY:null}),e.layout?(null==l[t.id]&&(l[t.id]={}),null==l[t.id][e.sl]&&(l[t.id][e.sl]=e)):OrgChart._setMinMaxXY(e,o[t.id][e.sl],!0),null!=e.movex&&(e.x+=e.movex),null!=e.movey&&(e.y+=e.movey),OrgChart._setMinMaxXY(e,i,!0),n++,e.children))OrgChart.manager._setMinMaxXYAdjustifyIterate(s,t,i,n,o,r,a,l)},OrgChart.manager._doNotChangePositionOfClickedNodeIfAny=function(e,t,i,n,o,r){if(i!=OrgChart.action.expand&&i!=OrgChart.action.collapse&&i!=OrgChart.action.minimize&&i!=OrgChart.action.maximize&&i!=OrgChart.action.centerNode&&i!=OrgChart.action.update&&i!=OrgChart.action.insert)return{x:0,y:0};if(i==OrgChart.action.update&&(!n||null==n.id)){if(!e||!e.length)return{x:0,y:0};n={id:e[0].id}}if(null==n.id)return{x:0,y:0};var a=n.id;(i==OrgChart.action.minimize&&t[a].parent||i==OrgChart.action.maximize&&t[a].parent)&&(a=t[a].pid);var l=t[a],s=o[a];if(!s)return{x:0,y:0};var c=null!=s.movex?s.movex:0,d=null!=s.movey?s.movey:0,h={x:(s.x?s.x-c:0)-l.x,y:(s.y?s.y-d:0)-l.y};return l&&l.isTreeListItem?{x:0,y:0}:h},OrgChart.manager._verticalAssistantIterate=function(e,t){for(var i=0;i<e.stChildren.length;i++)OrgChart.manager._verticalAssistantIterate(e.stChildren[i],t);if(3==e.children.length)OrgChart.manager._verticalAssistantIterate(e.children[0],t),OrgChart.manager._verticalAssistantIterate(e.children[2],t),OrgChart.manager._verticalAssistantIterate(e.children[1],t);else for(i=0;i<e.children.length;i++)OrgChart.manager._verticalAssistantIterate(e.children[i],t);if(e.isAssistant&&e.isSplit&&e.children.length){for(var n=e.parent.children[0],o=e.parent.children[2],r=e.parent;!r.hasAssistants;)r=r.parent;var a={max:0},l={max:0};OrgChart.manager._verticalAssistantLevelCountIterate(n,0,a),OrgChart.manager._verticalAssistantLevelCountIterate(o,0,l);var s=Math.max(a.max,l.max),c=[];for(i=0;i<s;i++){var d=new OrgChart.node(e.parent.id+"_split_assitant_level_"+i,e.pid,[],"subLevel");OrgChart.manager._initDinamicNode(d,e.lcn,!0),null!=r.movex&&(d.movex=r.movex),null!=r.movey&&(d.movey=r.movey),i>0&&(c[i-1].children.push(d),d.parent=c[i-1]),t[d.id]=d,c.push(d)}if(c.length){for(var h=c[c.length-1],p=c[0],u=e.children.length-1;u>=0;u--){var f=e.children[u];h.children.unshift(f),f.parent=h,e.children.splice(u,1)}e.children.push(p),p.parent=e}}},OrgChart.manager._verticalAssistantLevelCountIterate=function(e,t,i){i.max<t&&(i.max=t),t++;for(var n=0;n<e.children.length;n++)OrgChart.manager._verticalAssistantLevelCountIterate(e.children[n],t,i)},OrgChart._addDottedLines=function(e){var t=e.nodes;if((e.groupDottedLines.length||e.dottedLines.length)&&(t=JSON.parse(JSON.stringify(t))),e.groupDottedLines.length)for(var i=[],n=0;n<e.groupDottedLines.length;n++){var o=e.groupDottedLines[n];null==o.rootId&&(o.rootId=o.to);var r=`balkan_group_dotted_${o.rootId}`;if(!i.has(r))for(var a=0;a<t.length;a++)if(t[a].id==o.rootId){(d=JSON.parse(JSON.stringify(t[a]))).id=`balkan_group_dotted_${o.rootId}_balkan_id_${t[a].id}`,d.pid=void 0,d.stpid=t[a].id,t.push(d),i.push(r),t[a].tags||(t[a].tags=[]),t[a].tags.push("group-dotted-lines"),t[a].tags.push("group-dotted-lines-"+r);break}for(a=0;a<t.length;a++)if(t[a].id==o.from){if((d=JSON.parse(JSON.stringify(t[a]))).id=`balkan_group_dotted_${o.rootId}_balkan_id_${t[a].id}`,d.pid=`balkan_group_dotted_${o.rootId}_balkan_id_${o.to}`,d.tags){var l=d.tags.indexOf("group-dotted-lines");-1!=l&&d.tags.splice(l,1)}if(d.tags||(d.tags=[]),d.tags.push("boc-dotted-connector"),o.tags)for(var s=0;s<o.tags.length;s++)d.tags.push(o.tags[s]);t.push(d);break}}if(e.dottedLines.length)for(n=0;n<e.dottedLines.length;n++){var c=e.dottedLines[n];null==c.rootId&&(c.rootId=c.to);for(a=0;a<t.length;a++)if(t[a].id==c.from){var d;if((d=JSON.parse(JSON.stringify(t[a]))).id=`balkan_dotted_${c.rootId}_balkan_id_${t[a].id}`,c.rootId==c.to?d.pid=c.to:d.pid=`balkan_dotted_${c.rootId}_balkan_id_${c.to}`,d.tags||(d.tags=[]),d.tags.push("boc-dotted-connector"),c.tags)for(s=0;s<c.tags.length;s++)d.tags.push(c.tags[s]);t.push(d);break}}return t},void 0===OrgChart&&(OrgChart={}),OrgChart.templates={},OrgChart.templates.base={defs:"",size:[250,120],expandCollapseSize:30,linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:"#e6e6e6",rect:null},assistanseLink:'<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="2px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} {xd},{yd} L{xe},{ye}"/>',svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>',link:'<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>',node:'<rect x="0" y="0" height="120" width="250" fill="none" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>',plus:function(e,t,i,n,o){var r="dark"==n.mode?"#1E1E1E":"#ffffff";return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="${r}" stroke="#aeaeae" stroke-width="1"></circle>\n <text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,i,n,o){var r="dark"==n.mode?"#1E1E1E":"#ffffff";return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="${r}" stroke="#aeaeae" stroke-width="1"></circle>\n <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},nodeMenuButton:'<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,105)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>',menuButton:'<div style="user-select:none;position:absolute;right:{p}px;top:{p}px; width:30px;height:50px;cursor:pointer;" '+OrgChart.attr.control_export_menu+'=""><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"></div>',img_0:'<clipPath id="{randId}"><circle cx="60" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="20" y="20" width="80" height="80"></image>',link_field_0:'<text text-anchor="middle" fill="#aeaeae" '+OrgChart.attr.width+'="290" x="0" y="0" style="font-size:10px;">{val}</text>',editFormHeaderColor:"#039BE5",treeListMaxHeight:500},OrgChart.templates.ana={defs:"",size:[250,120],linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:"#e6e6e6",rect:null},expandCollapseSize:30,svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>',link:'<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />',assistanseLink:'<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="2px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} {xd},{yd} L{xe},{ye}"/>',node:function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},plus:function(e,t,i,n,o){var r="dark"==n.mode?"#1E1E1E":"#ffffff";return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="${r}" stroke="#aeaeae" stroke-width="1"></circle>\n <text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,i,n,o){var r="dark"==n.mode?"#1E1E1E":"#ffffff";return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="${r}" stroke="#aeaeae" stroke-width="1"></circle>\n <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},up:'<rect x="20" y="-25" width="30" height="17" fill="#aeaeae" rx="3" ry="3"></rect><line x1="35" x2="35" y1="0" y2="-8" stroke="#aeaeae" stroke-width="1"></line>',nodeMenuButton:function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},menuButton:OrgChart.templates.base.menuButton,img_0:function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><circle cx="50" cy="30" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="10" y="-10" width="80" height="80" ></image>`},link_field_0:'<text text-anchor="middle" fill="#aeaeae" '+OrgChart.attr.width+'="290" x="0" y="0" style="font-size:10px;">{val}</text>',field_0:function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="${e.h-25}" text-anchor="middle"></text>`,e.w-20,1)},field_1:function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w-20}" y="30" text-anchor="end"></text>`,e.w-120,3)},padding:[75,5,50,5],editFormHeaderColor:"#039BE5",treeListMaxHeight:500},OrgChart.templates.split=Object.assign({},OrgChart.templates.ana),OrgChart.templates.split.size=[10,10],OrgChart.templates.split.node='<circle cx="5" cy="5" r="5" fill="none" stroke-width="1" stroke="#aeaeae"></circle>',OrgChart.templates.split.field_0="",OrgChart.templates.split.field_1="",OrgChart.templates.split.img_0="",OrgChart.templates.dot=Object.assign({},OrgChart.templates.split),OrgChart.templates.group=Object.assign({},OrgChart.templates.ana),OrgChart.templates.group.size=[250,120],OrgChart.templates.group.padding=[50,20,35,20],OrgChart.templates.group.node='<rect rx="50" ry="50" x="0" y="0" height="{h}" width="{w}" fill="#f2f2f2" stroke-width="0"></rect>',OrgChart.templates.group.link='<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>',OrgChart.templates.group.nodeMenuButton='<g style="cursor:pointer;" transform="matrix(1,0,0,1,{ew},25)"><g transform="matrix(1,0,0,1,-22,-8)"><rect x="0" y="0" fill="red" fill-opacity="0" width="18" height="22"></rect><line x1="0" y1="2" x2="9" y2="2" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="9" x2="18" y2="9" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="16" x2="22" y2="16" stroke="#aeaeae" stroke-width="1"></line></g></g>',OrgChart.templates.group.field_0="<text "+OrgChart.attr.width+'="230" style="font-size: 18px;" fill="#aeaeae" x="{cw}" y="30" text-anchor="middle">{val}</text>',OrgChart.templates.group.field_1="",OrgChart.templates.group.ripple={radius:50,color:"#aeaeae"},OrgChart.templates.invisibleGroup=Object.assign({},OrgChart.templates.group),OrgChart.templates.invisibleGroup.node="",OrgChart.templates.invisibleGroup.padding=[0,0,0,0],OrgChart.templates.invisibleGroup.field_0="",OrgChart.templates.invisibleGroup.nodeMenuButton="",OrgChart.templates.mirror={linkAdjuster:{},link:"",node:"",nodeMenuButton:"",size:[0,0]},OrgChart.templates.ula=Object.assign({},OrgChart.templates.ana),OrgChart.templates.ula.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text style="font-size: 18px;" fill="#039BE5" x="100" y="55"></text>',e.w-105,1)},OrgChart.templates.ula.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text data-text-overflow="multiline" style="font-size: 14px;" fill="#afafaf" x="100" y="76"></text>',e.w-105,3)},OrgChart.templates.ula.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#aeaeae"></rect><line x1="0" y1="0" x2="${e.w}" y2="0" stroke-width="2" stroke="#039BE5"></line>`},OrgChart.templates.ula.img_0=function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><circle cx="50" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="10" y="20" width="80" height="80" ></image>`},OrgChart.templates.ula.menu='<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,12)" '+OrgChart.attr.control_node_menu_id+'="{id}"><rect x="-4" y="-10" fill="#ffffff" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#039BE5"></circle><circle cx="7" cy="0" r="2" fill="#039BE5"></circle><circle cx="14" cy="0" r="2" fill="#039BE5"></circle></g>',OrgChart.templates.ula.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},OrgChart.templates.ula.padding=[110,1,1,1],OrgChart.templates.olivia=Object.assign({},OrgChart.templates.ana),OrgChart.templates.olivia.defs='<style>\n #olivia_gradient {\n --color-stop-1: #ffffff;\n --color-stop-2: #eeeeee;\n --opacity-stop: 1;\n }\n .olivia-f0{\n font-size: 18px;\n fill: #757575;\n }\n .olivia-f1{\n font-size: 14px;\n fill: #757575;\n }\n .boc-dark .olivia-f0,.boc-dark .olivia-f1{\n fill: #aeaeae;\n }\n .boc-dark #olivia_gradient {\n --color-stop-1: #646464;\n --color-stop-2: #363636;\n --opacity-stop: 1;\n }\n </style>\n <linearGradient id="olivia_gradient" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="var(--color-stop-1)" stop-opacity="var(--opacity-stop)"/><stop offset="100%" stop-color="var(--color-stop-2)" stop-opacity="var(--opacity-stop)" /></linearGradient>',OrgChart.templates.olivia.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text class="olivia-f0" x="100" y="55"></text>',e.w-105,1)},OrgChart.templates.olivia.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text class="olivia-f1" x="100" y="76"></text>',e.w-105,3)},OrgChart.templates.olivia.node=function(e,t,i,n){return`<rect fill="url(#olivia_gradient)" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},OrgChart.templates.olivia.img_0='<clipPath id="{randId}"><circle cx="50" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="10" y="20" width="80" height="80" ></image>',OrgChart.templates.olivia.nodeMenuButton=function(e,t,i,n){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},OrgChart.templates.olivia.padding=[110,15,30,15],OrgChart.templates.belinda=Object.assign({},OrgChart.templates.ana),OrgChart.templates.belinda.size=[180,180],OrgChart.templates.belinda.ripple={radius:90,color:"#e6e6e6",rect:null},OrgChart.templates.belinda.node=function(e,t,i,n){return`<circle cx="${e.w/2}" cy="${e.h/2}" r="${e.w/2}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></circle>`},OrgChart.templates.belinda.img_0=function(e,t,i,n,o){var r=e.w/2,a=OrgChart.randomId();return`<clipPath id="${a}"><circle cx="${r}" cy="45" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${o}" x="${r-40}" y="5" width="80" height="80" ></image>`},OrgChart.templates.belinda.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+15}"></text>`,e.w-10,1)},OrgChart.templates.belinda.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+35}"></text>`,e.w-20,2)},OrgChart.templates.belinda.link='<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>',OrgChart.templates.belinda.nodeMenuButton=function(e,t,i,n){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w/2-11},5)"><rect x="0" y="0" fill="#000000" fill-opacity="0" width="22" height="22"></rect><line stroke-width="2" stroke="#000" x1="0" y1="3" x2="22" y2="3"></line><line stroke-width="2" stroke="#000" x1="0" y1="9" x2="22" y2="9"></line><line stroke-width="2" stroke="#000" x1="0" y1="15" x2="22" y2="15"></line></g>`},OrgChart.templates.rony=Object.assign({},OrgChart.templates.ana),OrgChart.templates.rony.svg='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="background-color:#E8E8E8;display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>',OrgChart.templates.rony.defs='<filter id="{randId}" x="0" y="0" width="200%" height="200%"><feOffset result="offOut" in="SourceAlpha" dx="5" dy="5"></feOffset><feGaussianBlur result="blurOut" in="offOut" stdDeviation="5"></feGaussianBlur><feBlend in="SourceGraphic" in2="blurOut" mode="normal"></feBlend></filter>',OrgChart.templates.rony.size=[180,250],OrgChart.templates.rony.ripple={color:"#F57C00",radius:5,rect:null},OrgChart.templates.rony.padding=[250,0,30,0],OrgChart.templates.rony.img_0=function(e,t,i,n,o){var r=e.w/2,a=OrgChart.randomId();return`<clipPath id="${a}"><circle cx="${r}" cy="160" r="60"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${o}" x="${r-60}" y="100" width="120" height="120" ></image>`},OrgChart.templates.rony.node=function(e,t,i,n){return`<rect filter="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="0" rx="10" ry="10"></rect>'`},OrgChart.templates.rony.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="40" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.rony.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#F57C00" x="${e.w/2}" y="60" text-anchor="middle"></text>`,e.w-15,3)},OrgChart.templates.rony.field_2=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#FFCA28" x="${e.w/2}" y="80" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.rony.link='<path stroke="#039BE5" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>',OrgChart.templates.rony.plus=function(e,t,i,n,o){return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line></g>`},OrgChart.templates.rony.minus=function(e,t,i,n,o){return`<g transform="matrix(1,0,0,1,${o.x-15},${o.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line></g>`},OrgChart.templates.rony.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},OrgChart.templates.mery=Object.assign({},OrgChart.templates.ana),OrgChart.templates.mery.ripple={color:"#e6e6e6",radius:50,rect:null},OrgChart.templates.mery.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#686868" rx="50" ry="50"></rect><rect x="0" y="${e.h/2-15}" height="30" width="${e.w}" fill="#039BE5" stroke-width="1"></rect>`},OrgChart.templates.mery.link='<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />',OrgChart.templates.mery.img_0=function(e,t,i,n,o){var r=e.w/2,a=e.h/2,l=OrgChart.randomId();return`<clipPath id="${l}"><circle cx="${r}" cy="${a}" r="24"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${l})" xlink:href="${o}" x="${r-24}" y="${a-24}" width="48" height="48" ></image>`},OrgChart.templates.mery.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2-30}" text-anchor="middle"></text>`,e.w-30,1)},OrgChart.templates.mery.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2+40}" text-anchor="middle"></text>`,e.w-30,1)},OrgChart.templates.mery.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h/2})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.polina=Object.assign({},OrgChart.templates.ana),OrgChart.templates.polina.size=[300,80],OrgChart.templates.polina.padding=[80,15,30,15],OrgChart.templates.polina.ripple={color:"#e6e6e6",radius:40,rect:null},OrgChart.templates.polina.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="40" ry="40"></rect>`},OrgChart.templates.polina.img_0='<clipPath id="{randId}"><circle cx="40" cy="40" r="35"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="0" y="0" width="80" height="80"></image>',OrgChart.templates.polina.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text style="font-size: 18px;" fill="#ffffff" x="80" y="30" text-anchor="start"></text>',e.w-90,1)},OrgChart.templates.polina.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text style="font-size: 14px;" fill="#ffffff" x="80" y="55" text-anchor="start"></text>',e.w-90,1)},OrgChart.templates.polina.link='<path stroke="#686868" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />',OrgChart.templates.polina.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-15},33)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="0" cy="7" r="2" fill="#ffffff"></circle><circle cx="0" cy="14" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.mila=Object.assign({},OrgChart.templates.ana),OrgChart.templates.mila.padding=[60,15,120,15],OrgChart.templates.mila.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></rect><rect x="-5" y="${e.h-50}" height="30" width="${e.w+10}" fill="#ffffff" stroke-width="1" stroke="#039BE5"></rect><line x1="-5" x2="0" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/><line x1="${e.w+5}" x2="${e.w}" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/>`},OrgChart.templates.mila.img_0=function(e,t,i,n,o){return`<image preserveAspectRatio="xMidYMid slice" xlink:href="${o}" x="20" y="${e.h-115}" width="64" height="64"></image>`},OrgChart.templates.mila.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h-28}" text-anchor="middle"></text>`,e.w-10,1)},OrgChart.templates.mila.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-10})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.diva=Object.assign({},OrgChart.templates.ana),OrgChart.templates.diva.size=[200,170],OrgChart.templates.diva.padding=[160,10,30,10],OrgChart.templates.diva.node=function(e,t,i,n){return`<rect x="0" y="80" height="${e.h-80}" width="${e.w}" fill="#039BE5"></rect><circle cx="${e.w/2}" cy="50" fill="#ffffff" r="50" stroke="#039BE5" stroke-width="2"></circle>`},OrgChart.templates.diva.img_0=function(e,t,i,n,o){var r=e.w/2,a=OrgChart.randomId();return`<clipPath id="${a}"><circle cx="${r}" cy="50" r="45"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${o}" x="${r-45}" y="5" width="90" height="90" ></image>`},OrgChart.templates.diva.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="125" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.diva.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w/2}" y="145" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.diva.pointer='<g data-pointer="pointer" transform="matrix(0,0,0,0,100,100)"><radialGradient id="pointerGradient"><stop stop-color="#ffffff" offset="0" /><stop stop-color="#039BE5" offset="1" /></radialGradient><circle cx="16" cy="16" r="16" stroke-width="1" stroke="#acacac" fill="url(#pointerGradient)"></circle></g>',OrgChart.templates.diva.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-30}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.luba=Object.assign({},OrgChart.templates.ana),OrgChart.templates.luba.svg='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;background-color: #2E2E2E;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>',OrgChart.templates.luba.defs='<linearGradient id="{randId}" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#646464;stop-opacity:1" /><stop offset="100%" style="stop-color:#363636;stop-opacity:1" /></linearGradient>',OrgChart.templates.luba.node=function(e,t,i,n){return`<rect fill="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},OrgChart.templates.luba.padding=[70,10,60,10],OrgChart.templates.luba.img_0=function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><circle cx="50" cy="25" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="10" y="-15" width="80" height="80" ></image>`},OrgChart.templates.luba.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#aeaeae"></circle><circle cx="7" cy="0" r="2" fill="#aeaeae"></circle><circle cx="14" cy="0" r="2" fill="#aeaeae"></circle></g>`},OrgChart.templates.luba.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 18px;" fill="#aeaeae" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-15,1)},OrgChart.templates.luba.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#aeaeae" x="${e.w-10}" y="30" text-anchor="end"></text>`,e.w-110,1)},OrgChart.templates.luba.plus='<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line><line x1="18" y1="4" x2="18" y2="32" stroke-width="1" stroke="#aeaeae"></line>',OrgChart.templates.luba.minus='<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line>',OrgChart.templates.luba.expandCollapseSize=36,OrgChart.templates.isla=Object.assign({},OrgChart.templates.ana),OrgChart.templates.isla.defs='<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="isla-shadow"><feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1" /><feGaussianBlur stdDeviation="10" in="shadowOffsetOuter1" result="shadowBlurOuter1" /><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1" /><feMerge><feMergeNode in="shadowMatrixOuter1" /><feMergeNode in="SourceGraphic" /></feMerge></filter>',OrgChart.templates.isla.size=[180,120],OrgChart.templates.isla.padding=[70,1,60,1],OrgChart.templates.isla.node=function(e,t,i,n){return`<rect filter="url(#isla-shadow)" x="0" y="20" rx="10" ry="10" height="${e.h-20}" width="${e.w}" fill="#FFF" stroke-width="1" stroke="#039BE5" ></rect><rect x="25" y="${e.h-45}" rx="10" ry="10" height="20" width="${e.w-50}" fill="#039BE5" stroke-width="3" stroke="#039BE5"></rect><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect><circle stroke="#FFCA28" stroke-width="3" fill="none" cx="${e.w/2}" cy="12" r="8"></circle><path d="M${e.w/2-15},34 C${e.w/2-15},17 ${e.w/2+15},17 ${e.w/2+15},34" stroke="#FFCA28" stroke-width="3" fill="none"></path>`},OrgChart.templates.isla.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 12px;" fill="#fff" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-60,1)},OrgChart.templates.isla.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 13px;" fill="#039BE5" x="${e.w/2}" y="64" text-anchor="middle"></text>`,e.w-20,1)},OrgChart.templates.isla.img_0="",OrgChart.templates.isla.img_0=function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><rect filter="url(#isla-shadow)" fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="${e.w/2-20}" y="0" width="40" height="40"></image>`},OrgChart.templates.isla.minus='<circle cx="15" cy="15" r="15" fill="#F57C00" stroke="#F57C00" stroke-width="1"></circle><line x1="8" y1="15" x2="22" y2="15" stroke-width="1" stroke="#ffffff"></line>',OrgChart.templates.isla.plus='<circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line>',OrgChart.templates.isla.nodeMenuButton=function(e,t,i,n){return`<g transform="matrix(1,0,0,1,${e.w/2-7},45)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},OrgChart.templates.isla.ripple={radius:0,color:"#F57C00",rect:{x:0,y:20,width:180,height:100}},OrgChart.templates.deborah=Object.assign({},OrgChart.templates.polina),OrgChart.templates.deborah.size=[150,150],OrgChart.templates.deborah.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="15" ry="15"></rect>`},OrgChart.templates.deborah.img_0=function(e,t,i,n,o){var r=OrgChart.randomId();return`<clipPath id="${r}"><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="5" y="5" rx="15" ry="15" width="${e.w-10}" height="${e.h-10}"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${r})" xlink:href="${o}" x="5" y="5" width="${e.w-10}" height="${e.h-10}"></image><rect x="3" y="5" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect><rect x="3" y="${e.h-35}" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect>`},OrgChart.templates.deborah.field_0=function(e,t,i,n,o){return OrgChart.wrapText(o,'<text style="font-size: 18px;" fill="#ffffff" x="15" y="25" text-anchor="start"></text>',e.w-25,1)},OrgChart.templates.deborah.field_1=function(e,t,i,n,o){return OrgChart.wrapText(o,`<text style="font-size: 11px;" fill="#ffffff" x="15" y="${e.h-15}" text-anchor="start"></text>`,e.w-45,1)},OrgChart.templates.deborah.nodeMenuButton=function(e,t,i,n){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-20})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},OrgChart.templates.subLevel=Object.assign({},OrgChart.templates.base),OrgChart.templates.subLevel.size=[0,0],OrgChart.templates.subLevel.node="",OrgChart.templates.subLevel.plus="",OrgChart.templates.subLevel.minus="",OrgChart.templates.subLevel.nodeMenuButton="",OrgChart.templates.group_dotted_lines=Object.assign({},OrgChart.templates.group),OrgChart.templates.group_dotted_lines.size=[250,120],OrgChart.templates.group_dotted_lines.padding=[50,20,35,20],OrgChart.templates.group_dotted_lines.link='<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />',OrgChart.templates.group_dotted_lines.node='<rect rx="5" ry="5" x="0" y="0" height="{h}" width="{w}" fill="#e5e5e5" stroke-width="0"></rect>',OrgChart.templates.group_dotted_lines.nodeGroupDottedCloseButton='<g transform="matrix(1,0,0,1,{ew},0)"><circle cx="0.5" cy="21.5" r="12" fill="#F57C00"></circle>'+OrgChart.icon.close(25,25,"#fff",-13,8)+"</g>",OrgChart.templates.group_dotted_lines.field_0='<text data-width="230" style="font-size: 18px;" fill="#F57C00" x="20" y="30" text-anchor="start">Dotted Lines</text>',OrgChart.templates.group_dotted_lines.field_1="",OrgChart.templates.group_dotted_lines.img_0="",OrgChart.templates.group_dotted_lines.ripple.radius=5,OrgChart.templates.group_dotted_lines.min=Object.assign({},OrgChart.templates.olivia),OrgChart.templates.group_dotted_lines.min.nodeGroupDottedOpenButton='<g transform="matrix(1,0,0,1,220,10)"><rect x="0" y="0" width="22" height="22" stroke="#aeaeae" stroke-width="1" fill="#ffffff" rx="5" ry="5"></rect><text x="11" y="16" text-anchor="middle" style="font-size: 14px;" fill="#2A292E">{children-total-count}</text><rect x="0" y="0" width="22" height="22" style="opacity: 0" stroke="#aeaeae" stroke-width="1" fill="red" rx="5" ry="5"></rect></g>',OrgChart.templates.clara=Object.assign({},OrgChart.templates.ana),OrgChart.templates.clara.size=[180,210],OrgChart.templates.clara.padding=[80,7,7,7],OrgChart.templates.clara.img_0=function(e,t,i,n,o){var r=50,a=30,l=40;e.stChildren.length||(l=60,r=e.w/2,a=70);var s=OrgChart.randomId();return`<clipPath id="${s}"><circle cx="${r}" cy="${a}" r="${l}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${s})" xlink:href="${o}" x="${r-l}" y="${a-l}" width="${2*l}" height="${2*l}" ></image>`},OrgChart.templates.clara.treeListMaxHeight=387,OrgChart.templates.clara.field_0=function(e,t,i,n,o){var r=65,a=e.w/2,l="middle",s=e.w-100;return e.stChildren.length||(l="middle",a=e.w/2,r=160,s=e.w-20),OrgChart.wrapText(o,`<text style="font-size: 20px;" fill="#ffffff" x="${a}" y="${r}" text-anchor="${l}"></text>`,s,1)},OrgChart.templates.clara.field_1=function(e,t,i,n,o){var r=35,a=e.w-15,l="end",s=e.w-100;return e.stChildren.length||(l="middle",a=e.w/2,r=180,s=e.w-20),OrgChart.wrapText(o,`<text style="font-size: 14px;" fill="#ffffff" x="${a}" y="${r}" text-anchor="${l}"></text>`,s,1)},OrgChart.templates.clara.nodeMenuButton=function(e,t,i,n){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-35}, 2)">\n <rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>\n <circle cy="13" cx="6" r="2" fill="#fff"></circle>\n <circle cy="13" cx="13" r="2" fill="#fff"></circle>\n <circle cy="13" cx="20" r="2" fill="#fff"></circle>\n </g>`},OrgChart.templates.clara.node=function(e,t,i,n){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},OrgChart.templates.treeListItem=Object.assign({},OrgChart.templates.ana),OrgChart.templates.treeListItem.size=[350,60],OrgChart.templates.treeListItem.field_0=function(e,t,i,n,o){var r=e.level*i.expandCollapseSize+45,a="dark"==n.mode?"#ccc":"#757575";return OrgChart.wrapText(o,`<text fill="${a}" x="${r}" y="27" style="font-size:16px;"></text>`,e.w-r-70,1)},OrgChart.templates.treeListItem.field_1=function(e,t,i,n,o){var r=e.level*i.expandCollapseSize+45,a="dark"==n.mode?"#ccc":"#757575";return OrgChart.wrapText(o,`<text fill="${a}" x="${r}" y="47" style="font-size:12px;"></text>`,e.w-r-70,1)},OrgChart.templates.treeListItem.img_0=function(e,t,i,n,o){var r=e.w-55,a=e.h/2,l=e.h/2-4,s=OrgChart.randomId();return`<clipPath id="${s}"><circle cx="${r}" cy="${a}" r="${l}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${s})" xlink:href="${o}" x="${r-l}" y="${a-l}" width="${2*l}" height="${2*l}" ></image>`},OrgChart.templates.treeListItem.expandCollapseSize=24,OrgChart.templates.treeListItem.plus=function(e,t,i,n){var o=i.expandCollapseSize/2+e.level*i.expandCollapseSize,r=e.h/2;r-=i.expandCollapseSize/2;var a="dark"==n.mode?"#ccc":"#757575";return`<g transform="matrix(1,0,0,1,${o},${r})"><text x="6" style="font-size: 10px;" fill="${a}" y="15.5" text-anchor="end">${e.deepCollapsedChildCount}</text><path fill="${a}" d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},OrgChart.templates.treeListItem.minus=function(e,t,i,n){var o=i.expandCollapseSize/2+e.level*i.expandCollapseSize,r=e.h/2;return`<g transform="matrix(1,0,0,1,${o},${r-=i.expandCollapseSize/2})"><path fill="${"dark"==n.mode?"#ccc":"#757575"}" d="M7.42,8.59L12,13.17L16.59,8.59L18,10L12,16L6,10L7.42,8.59Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},OrgChart.templates.treeListItem.nodeMenuButton=function(e,t,i,n){var o="dark"==n.mode?"#ccc":"#757575";return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-36}, ${e.h/2-13})">\n <rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>\n <circle cx="13" cy="6" r="2" fill="${o}"></circle>\n <circle cx="13" cy="13" r="2" fill="${o}"></circle>\n <circle cx="13" cy="20" r="2" fill="${o}"></circle>\n </g>`},OrgChart.templates.treeListItem.node=function(e,t,i,n){var o="",r="#FFFFFF";if(e.isTreeListItem&&!e.stParent||e.isTreeListItem&&e.stParent&&e.stParent.stChildren[0]!=e){var a="#E0E0E0";"dark"==n.mode&&(a="#444444"),o=`<line stroke="${a}" stroke-width="1" x1="0" x2="${e.w}" y1="0" y2="0"></line>`}return"dark"==n.mode&&(r="#252526"),`<rect fill="${r}" x="0" y="0" height="${e.h}" width="${e.w}" rx="0" ry="0" ></rect>${o}`},OrgChart.ui={_defsIds:{},defs:function(e){var t="";for(var i in OrgChart.templates){var n=OrgChart.templates[i];n.defs&&(OrgChart.ui._defsIds[i]=OrgChart.randomId(),t+=n.defs.replaceAll("{randId}",OrgChart.ui._defsIds[i]))}return"<defs>"+t+e+"</defs>"},lonely:function(e){return e.nodes&&e.nodes.length?"":OrgChart.IT_IS_LONELY_HERE.replace("{link}",OrgChart.RES.IT_IS_LONELY_HERE_LINK)},pointer:function(e,t,i){if(t===OrgChart.action.exporting)return"";var n=OrgChart.t(e.template,!1,i).pointer;return n||(n=""),n},aiButton:function(e){return e.enableAI?'<div data-boc-ai-button class="boc-ai-button">AI</div>':""},node:function(e,t,i,n,o,r,a,l,s,c,d){var h=OrgChart.t(e.templateName,e.min,s),p="";"function"==typeof h.node?p=h.node(e,t,h,n):OrgChart.isNEU(h.node)||(p=h.node)&&(p=p.replaceAll("{w}",e.w).replaceAll("{h}",e.h)),h.defs&&(p=p.replaceAll("{randId}",OrgChart.ui._defsIds[e.templateName])),null==a&&(a=n.nodeBinding);var u={node:e,data:t};for(var f in a){var g,m=a[f];t&&(g=t[m]),null==g&&(g=e[m]),u.element=h[f],u.value=g;var x=!1;"function"==typeof u.element&&(x=!0,u.element=u.element(e,t,h,n,u.value));var b=OrgChart._lblIsImg(n,f);if(u.name=m,u.field=f,!1!==OrgChart.events.publish("field",[c,u])&&null!=u.value&&null!=u.value&&null!=u.element)if(x)p+=u.element;else if(!b||b&&!OrgChart.isNEU(u.value)){if(!b&&"string"==typeof u.value){var y=u.element;y&&(y=y.replaceAll("{ew}",e.w-(e.padding?e.padding[1]:0)).replaceAll("{cw}",e.w/2)),u.value=OrgChart.wrapText(u.value,y)}var v=u.element.replace("{val}",u.value);p+=v=v.replaceAll("{ew}",e.w-(e.padding?e.padding[1]:0)).replaceAll("{cw}",e.w/2).replaceAll("{randId}",OrgChart.randomId()).replaceAll("{randId2}",OrgChart.randomId())}}var _=OrgChart._getPosition(i,e,o,r),w="node";Array.isArray(e.tags)&&e.tags.length&&(w+=" "+e.tags.join(" ")),e.layout&&(w+=" tree-layout"),d&&(w+=" treelist-pinned");var I="";e.lcn&&(I='lcn="'+e.lcn+'"');var k=OrgChart.nodeOpenTag.replace("{lcn}",I).replace("{id}",e.id).replace("{class}",w).replace("{sl}",e.sl).replace("{level}",e.level).replace("{x}",_.x).replace("{y}",_.y),C=OrgChart._getOpacity(i,e);return p=(k=k.replace("{opacity}",C))+(p+=OrgChart.ui.nodeBtns(n,e,t,l,h,c))+OrgChart.grCloseTag},nodeBtns:function(e,t,i,n,o,r){var a="";return null==e.nodeMenu||t.isSplit||n===OrgChart.action.exporting||("function"==typeof o.nodeMenuButton?a+=o.nodeMenuButton(t,i,o,e):OrgChart.isNEU(o.nodeMenuButton)||(a+=o.nodeMenuButton.replace("{id}",t.id).replace("{cw}",t.w/2).replace("{ch}",t.h/2).replace("{ew}",t.w-(t.padding?t.padding[1]:0)).replace("{eh}",t.h-(t.padding?t.padding[2]:0)))),a&&(a=`<g style="cursor:pointer;" ${OrgChart.attr.control_node_menu_id}="${t.id}">${a}</g>`),null==e.nodeCircleMenu||t.isSplit||n===OrgChart.action.exporting||OrgChart.isNEU(o.nodeCircleMenuButton)||(a+='<g style="cursor:pointer;" transform="matrix(1,0,0,1,'+o.nodeCircleMenuButton.x+","+o.nodeCircleMenuButton.y+')" '+OrgChart.attr.control_node_circle_menu_id+'="'+t.id+'"><circle cx="0" cy="0" fill="'+o.nodeCircleMenuButton.color+'" r="'+o.nodeCircleMenuButton.radius+'" stroke-width="1" stroke="'+o.nodeCircleMenuButton.stroke+'"></circle><line x1="-'+o.nodeCircleMenuButton.radius/2+'" y1="-6" x2="'+o.nodeCircleMenuButton.radius/2+'" y2="-6" stroke-width="2" stroke="'+o.nodeCircleMenuButton.stroke+'"></line><line x1="-'+o.nodeCircleMenuButton.radius/2+'" y1="0" x2="'+o.nodeCircleMenuButton.radius/2+'" y2="0" stroke-width="2" stroke="'+o.nodeCircleMenuButton.stroke+'"></line><line x1="-'+o.nodeCircleMenuButton.radius/2+'" y1="6" x2="'+o.nodeCircleMenuButton.radius/2+'" y2="6" stroke-width="2" stroke="'+o.nodeCircleMenuButton.stroke+'"></line></g>'),a},expandCollapseBtn:function(e,t,i,n,o,r,a){var l="";if(r!==OrgChart.action.exporting&&!t.isSplit){var s=o[t.lcn?t.lcn:"base"],c=OrgChart.t(t.templateName,t.min,a);if(t.childrenIds.length>0){if(t.hasPartners){for(var d=!1,h=0;h<t.childrenIds.length;h++){var p=e.getNode(t.childrenIds[h]);!p||p.parentPartner||p.isPartner||(d=!0)}if(!d)return""}var u=OrgChart._getDefailtPositionForExpandCollpase(s,t),f={x:u.x+t.x-c.expandCollapseSize/2,y:u.y+t.y-c.expandCollapseSize/2},g=e.getCollapsedIds(t);g.length?("function"==typeof c.plus?(l+=OrgChart.expcollOpenTag.replace("{id}",t.id).replace("{x}",t.x).replace("{y}",t.y),l+=c.plus(t,i,c,n,u)):(l+=OrgChart.expcollOpenTag.replace("{id}",t.id).replace("{x}",f.x).replace("{y}",f.y),l+=c.plus),l+=OrgChart.grCloseTag):("function"==typeof c.minus?(l+=OrgChart.expcollOpenTag.replace("{id}",t.id).replace("{x}",t.x).replace("{y}",t.y),l+=c.minus(t,i,c,n,u)):(l+=OrgChart.expcollOpenTag.replace("{id}",t.id).replace("{x}",f.x).replace("{y}",f.y),l+=c.minus),l+=OrgChart.grCloseTag),(g.length&&"function"!=typeof c.plus||!g.length&&"function"!=typeof c.minus)&&(-1!=l.indexOf("{collapsed-children-count}")&&(l=l.replace("{collapsed-children-count}",t.collapsedChildCount)),-1!=l.indexOf("{collapsed-children-total-count}")&&(l=l.replace("{collapsed-children-total-count}",t.deepCollapsedChildCount)),-1!=l.indexOf("{children-count}")&&(l=l.replace("{children-count}",t.childCount)),-1!=l.indexOf("{children-total-count}")&&(l=l.replace("{children-total-count}",t.deepChildCount)))}e._nodeHasHiddenParent(t)&&(l+=OrgChart.upOpenTag.replace("{id}",t.id).replace("{x}",t.x).replace("{y}",t.y),l+=c.up,l+=OrgChart.grCloseTag)}var m={html:l,node:t};return OrgChart.events.publish("renderbuttons",[e,m]),m.html},link:function(e,t,i,n,o,r,a){var l=e.lcn?e.lcn:"base",s=t._layoutConfigs[l],c=OrgChart.t(e.templateName,e.min,i),d=[],h=[],p=s.levelSeparation/2;e.layout>0&&(p=s.mixedHierarchyNodesSeparation/2);var u=0,f=OrgChart.getRootOf(e).id,g=n[f][e.sl],m=void 0;if(e.hasPartners){m={ids:[],indexes:{},ppnodes:{},lastLeft:null,firstRight:null,maxSidePartnersWithChildren:0,rightIds:[],leftIds:[],partnerChildrenSplitSeparation:t.config.partnerChildrenSplitSeparation};for(var x=0;x<e.children.length;x++){(y=e.children[x]).parentPartner?(m.ppnodes[y.id]=y.parentPartner,m.ids.push(y.id),1==y.parentPartner.isPartner?(-1==m.rightIds.indexOf(y.parentPartner.id)&&m.rightIds.push(y.parentPartner.id),m.indexes[y.id]=m.rightIds.indexOf(y.parentPartner.id),m.firstRight||(m.firstRight=y)):2==y.parentPartner.isPartner&&(-1==m.leftIds.indexOf(y.parentPartner.id)&&m.leftIds.push(y.parentPartner.id),m.indexes[y.id]=m.leftIds.indexOf(y.parentPartner.id),m.lastLeft=y)):y.isPartner||(m.lastLeft=y,m.firstRight||(m.firstRight=y))}m.maxSidePartnersWithChildren=Math.max(m.leftIds.length,m.rightIds.length),u=0==m.maxSidePartnersWithChildren?t.config.minPartnerSeparation/2:t.config.minPartnerSeparation/2+m.partnerChildrenSplitSeparation*m.maxSidePartnersWithChildren+m.partnerChildrenSplitSeparation/2}for(x=0;x<e.children.length;x++){var b,y=e.children[x],v=n[f][y.sl],_={xa:0,ya:0,xb:0,yb:0,xc:0,yc:0,xd:0,yd:0,x:0,y:0,rotate:0},w=(c=OrgChart.t(y.templateName,y.min,i)).link;if(y.isChildOfPartner)switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:var I=1==y.layout?void 0:v.minY-(v.minY-g.maxY)/2;_=OrgChart.ui._linkTopToBottom(y.parentPartner,y,c,p,I,t);break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:I=1==y.layout?void 0:v.maxY-(v.maxY-g.minY)/2;_=OrgChart.ui._linkBottomToTop(y.parentPartner,y,c,p,I,t);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:I=1==y.layout?void 0:v.maxX-(v.maxX-g.minX)/2;_=OrgChart.ui._linkRightToLeft(y.parentPartner,y,c,p,I,t);break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:I=1==y.layout?void 0:v.minX-(v.minX-g.maxX)/2;_=OrgChart.ui._linkLeftToRight(y.parentPartner,y,c,p,I,t)}else if(m&&-1!=m.ids.indexOf(y.id))switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:_=OrgChart.ui._linkPpTop(m,e,y,v,g,c);break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:_=OrgChart.ui._linkPpBottom(m,e,y,v,g,c);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:_=OrgChart.ui._linkPpRight(m,e,y,v,g,c);break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:_=OrgChart.ui._linkPpLeft(m,e,y,v,g,c)}else{var k=y.isAssistant&&y.rightNeighbor&&y.rightNeighbor.isAssistant&&y.parent==y.rightNeighbor.parent,C=y.isAssistant&&y.leftNeighbor&&y.leftNeighbor.isAssistant&&y.parent==y.leftNeighbor.parent;if((k||y.layout>1)&&y.rightNeighbor&&y.rightNeighbor.isSplit)switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:_=OrgChart.ui._linkRightToLeft(y.rightNeighbor,y,c,p);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:_=OrgChart.ui._linkBottomToTop(y.rightNeighbor,y,c,p)}else if((C||y.layout>1)&&y.leftNeighbor&&y.leftNeighbor.isSplit)switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:_=OrgChart.ui._linkLeftToRight(y.leftNeighbor,y,c,p,t);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:_=OrgChart.ui._linkTopToBottom(y.leftNeighbor,y,c,p,t)}else switch(s.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:if(1==y.isPartner)_=OrgChart.ui._linkLeftToRight(e,y,c,u);else if(2==y.isPartner)_=OrgChart.ui._linkRightToLeft(e,y,c,u);else{I=1==y.layout?void 0:v.minY-(v.minY-g.maxY)/2;_=OrgChart.ui._linkTopToBottom(e,y,c,p,I,t)}break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:if(1==y.isPartner)_=OrgChart.ui._linkLeftToRight(e,y,c,u);else if(2==y.isPartner)_=OrgChart.ui._linkRightToLeft(e,y,c,u);else{I=1==y.layout?void 0:v.maxY-(v.maxY-g.minY)/2;_=OrgChart.ui._linkBottomToTop(e,y,c,p,I,t)}break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:if(1==y.isPartner)_=OrgChart.ui._linkTopToBottom(e,y,c,u);else if(2==y.isPartner)_=OrgChart.ui._linkBottomToTop(e,y,c,u);else{I=1==y.layout?void 0:v.maxX-(v.maxX-g.minX)/2;_=OrgChart.ui._linkRightToLeft(e,y,c,p,I,t)}break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:if(1==y.isPartner)_=OrgChart.ui._linkTopToBottom(e,y,c,u);else if(2==y.isPartner)_=OrgChart.ui._linkBottomToTop(e,y,c,u);else{I=1==y.layout?void 0:v.minX-(v.minX-g.maxX)/2;_=OrgChart.ui._linkLeftToRight(e,y,c,p,I,t)}}}var L=OrgChart.ui._draggableLinkPath(t,e,y,_,p,s.orientation);if(L)b=L,w=w.replaceAll("{rounded}",L).replaceAll("{edge}",L).replaceAll("{curve}",b);else if(-1!=w.indexOf("{rounded}"))if(_.xa==_.xb&&_.xa==_.xc&&_.xa==_.xd||_.ya==_.yb&&_.ya==_.yc&&_.ya==_.yd)b="M"+_.xa+","+_.ya+" L"+_.xd+","+_.yd,w=w.replaceAll("{rounded}",b);else if(Math.abs(_.xa-_.xd)<=OrgChart.LINK_ROUNDED_CORNERS&&Math.abs(_.xa-_.xc)<=OrgChart.LINK_ROUNDED_CORNERS&&Math.abs(_.xa-_.xb)<=OrgChart.LINK_ROUNDED_CORNERS)b="M"+_.xa+","+_.ya+" L"+_.xa+","+_.yd,w=w.replaceAll("{rounded}",b);else if(Math.abs(_.ya-_.yd)<=OrgChart.LINK_ROUNDED_CORNERS&&Math.abs(_.ya-_.yc)<=OrgChart.LINK_ROUNDED_CORNERS&&Math.abs(_.ya-_.yb)<=OrgChart.LINK_ROUNDED_CORNERS)b="M"+_.xa+","+_.ya+" L"+_.xd+","+_.ya,w=w.replaceAll("{rounded}",b);else{var S=OrgChart.ui._roundedEdge(_.xa,_.ya,_.xb,_.yb,_.xc,_.yc),N=OrgChart.ui._roundedEdge(_.xb,_.yb,_.xc,_.yc,_.xd,_.yd);b="M"+S.x1+","+S.y1+" "+S.x2+","+S.y2+" Q"+S.qx1+","+S.qy1+" "+S.qx2+","+S.qy2+" L"+N.x2+","+N.y2+" Q"+N.qx1+","+N.qy1+" "+N.qx2+","+N.qy2+" L"+N.x3+","+N.y3,w=w.replaceAll("{rounded}",b)}else-1!=w.indexOf("{edge}")?(b="M"+_.xa+","+_.ya+" "+_.xb+","+_.yb+" "+_.xc+","+_.yc+" L"+_.xd+","+_.yd,w=w.replaceAll("{edge}",b)):-1!=w.indexOf("{curve}")?(b="M"+_.xa+","+_.ya+" C"+_.xb+","+_.yb+" "+_.xc+","+_.yc+" "+_.xd+","+_.yd,w=w.replaceAll("{curve}",b)):(b=w.replaceAll("{xa}",_.xa).replaceAll("{ya}",_.ya).replaceAll("{xb}",_.xb).replaceAll("{yb}",_.yb).replaceAll("{xc}",_.xc).replaceAll("{yc}",_.yc).replaceAll("{xd}",_.xd).replaceAll("{yd}",_.yd),w=b);d.push(OrgChart.linkOpenTag.replaceAll("{id}",e.id).replaceAll("{class}","link "+y.tags.join(" ")).replaceAll("{child-id}",y.id));var A={node:e,cnode:y,p:_,html:w,action:r};OrgChart.events.publish("render-link",[t,A]),d.push(A.html),a&&h.push({id:e.id,childId:y.id,html:A.html});var E="";for(var M in t.config.linkBinding){var $=t.config.linkBinding[M],U=t._get(y.id);U&&(A.value=U[$],A.element=c[M],A.name=$,!1!==OrgChart.events.publish("label",[t,A])&&(OrgChart.isNEU(A.value)||OrgChart.isNEU(A.element)||(E+=A.element.replace("{val}",A.value))))}if(""!=E){var T=_.x,P=_.y;null!=y.movey&&(P+=y.movey),E=OrgChart.linkFieldsOpenTag.replace("{x}",T).replace("{y}",P).replace("{rotate}",0)+E+OrgChart.grCloseTag,d.push(E)}d.push(OrgChart.grCloseTag)}return a?h:d.join("")},svg:function(e,t,i,n,o,r){return OrgChart.t(n.template,!1,r).svg.replace("{w}",e).replace("{h}",t).replace("{viewBox}",i).replace("{randId}",OrgChart.ui._defsIds[n.template]).replace("{mode}",n.mode).replace("{template}",n.template).replace("{content}",function(){return o})},menuButton:function(e){return null==e.menu?"":OrgChart.t(e.template,!1).menuButton.replaceAll("{p}",e.padding)},_roundedEdge:function(e,t,i,n,o,r){var a,l,s,c=OrgChart.LINK_ROUNDED_CORNERS,d=0;return e==i&&e==o||t==n&&t==r?(a=s=i,l=d=n):(e!=o&&i==o&&(a=s=i,l=n,t<r?d=n+c:t>r&&(d=n-c)),e<o&&i==o?i-=c:e>o&&i==o&&(i+=c),t!=r&&n==r&&(a=i,l=d=n,e<o?s=i+c:e>o&&(s=i-c)),t<r&&n==r?n-=c:t>r&&n==r&&(n+=c)),{x1:e,y1:t,x2:i,y2:n,x3:o,y3:r,qx1:a,qy1:l,qx2:s,qy2:d}},_linkTopToBottom:function(e,t,i,n,o,r){var a,l,s,c,d,h=0;a=e.x+e.w/2+i.linkAdjuster.toX,l=e.y+e.h+i.linkAdjuster.toY,c=s=t.x+t.w/2+i.linkAdjuster.fromX,d=t.y+i.linkAdjuster.fromY;var p={xa:a,ya:l,xb:a,yb:h=e.rightNeighbor&&e.rightNeighbor.isAssistant&&"split"==t.templateName?e.rightNeighbor.y+e.rightNeighbor.h+n:"split"==e.templateName&&(t.isAssistant||t.layout>1)?d:"split"==t.templateName?l+n:null!=o?o:d-n,xc:s,yc:h,xd:c,yd:d,x:s,y:OrgChart.isNEU(t.parentPartner)?h+16:h,rotate:0};return r&&OrgChart._addConnectorLines(r._connectorLines,p),p},_linkBottomToTop:function(e,t,i,n,o,r){var a,l,s,c,d,h=0;a=e.x+e.w/2+i.linkAdjuster.toX,l=e.y+i.linkAdjuster.toY,c=s=t.x+t.w/2+i.linkAdjuster.fromX,d=t.y+t.h+i.linkAdjuster.fromY;var p={xa:a,ya:l,xb:a,yb:h=e.rightNeighbor&&e.rightNeighbor.isAssistant&&"split"==t.templateName?e.rightNeighbor.y-n:"split"==e.templateName&&(t.isAssistant||t.layout>1)?d:"split"==t.templateName?l-n:null!=o?o:d+n,xc:s,yc:h,xd:c,yd:d,x:s,y:h-14,rotate:0};return r&&OrgChart._addConnectorLines(r._connectorLines,p),p},_linkRightToLeft:function(e,t,i,n,o,r){var a,l,s,c,d,h,p=0;a=e.x+i.linkAdjuster.toX,l=e.y+e.h/2+i.linkAdjuster.toY,d=t.x+t.w+i.linkAdjuster.fromX,h=c=t.y+t.h/2+i.linkAdjuster.fromY,s=l;var u={xa:a,ya:l,xb:p=e.rightNeighbor&&e.rightNeighbor.isAssistant&&"split"==t.templateName?e.rightNeighbor.x-n:"split"==e.templateName&&(t.isAssistant||t.layout>1)?d:"split"==t.templateName?a-n:null!=o?o:d+n,yb:s,xc:p,yc:c,xd:d,yd:h,x:p-16,y:c,rotate:90};return r&&OrgChart._addConnectorLines(r._connectorLines,u),u},_linkLeftToRight:function(e,t,i,n,o,r){var a,l,s,c,d,h,p=0;a=e.x+e.w+i.linkAdjuster.toX,l=e.y+e.h/2+i.linkAdjuster.toY,d=t.x+i.linkAdjuster.fromX,h=c=t.y+t.h/2+i.linkAdjuster.fromY,s=l;var u={xa:a,ya:l,xb:p=e.rightNeighbor&&e.rightNeighbor.isAssistant&&"split"==t.templateName?e.rightNeighbor.x+e.rightNeighbor.w+n:"split"==e.templateName&&(t.isAssistant||t.layout>1)?d:"split"==t.templateName?a+n:null!=o?o:d-n,yb:s,xc:p,yc:c,xd:d,yd:h,x:p+14,y:c,rotate:270};return r&&OrgChart._addConnectorLines(r._connectorLines,u),u},_linkPpTop:function(e,t,i,n,o,r){var a=e.ppnodes[i.id],l=a.y+a.h/2,s=n.minY-(n.minY-o.maxY)/2,c=(n.minY-o.maxY)/e.maxSidePartnersWithChildren/4,d=OrgChart.ui.__linkPpBottomTop(e,t,i,s,c,a),h=d.x;return s=d.mid,OrgChart.ui._linkTopToBottom({x:h,y:l,w:0,h:0},i,r,0,s)},_linkPpBottom:function(e,t,i,n,o,r){var a=e.ppnodes[i.id],l=a.y+a.h/2,s=n.maxY-(n.maxY-o.minY)/2,c=(n.maxY-o.minY)/e.maxSidePartnersWithChildren/4,d=OrgChart.ui.__linkPpBottomTop(e,t,i,s,c,a),h=d.x;return s=d.mid,OrgChart.ui._linkBottomToTop({x:h,y:l,w:0,h:0},i,r,0,s)},_linkPpLeft:function(e,t,i,n,o,r){var a=e.ppnodes[i.id],l=n.minX-(n.minX-o.maxX)/2,s=(n.minX-o.maxX)/e.maxSidePartnersWithChildren/4,c=a.x+a.w/2,d=OrgChart.ui.__linkPpLeftRight(e,t,i,l,s,a),h=d.y;return l=d.mid,OrgChart.ui._linkLeftToRight({x:c,y:h,w:0,h:0},i,r,0,l)},_linkPpRight:function(e,t,i,n,o,r){var a=e.ppnodes[i.id],l=n.maxX-(n.maxX-o.minX)/2,s=(n.maxX-o.minX)/e.maxSidePartnersWithChildren/4,c=a.x+a.w/2,d=OrgChart.ui.__linkPpLeftRight(e,t,i,l,s,a),h=d.y;return l=d.mid,OrgChart.ui._linkRightToLeft({x:c,y:h,w:0,h:0},i,r,0,l)},__linkPpBottomTop:function(e,t,i,n,o,r){var a=0;return 1==r.isPartner?(a=r.x-t.partnerSeparation/2+e.indexes[i.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&a<e.lastLeft.x+e.lastLeft.w/2?a<i.x+i.w/2?n-=(e.indexes[i.id]+1)*o:n-=(e.rightIds.length-e.indexes[i.id])*o:a<i.x+i.w/2?n+=(e.rightIds.length-e.indexes[i.id])*o:n+=(e.indexes[i.id]+1)*o):2==r.isPartner&&(a=r.x+r.w+t.partnerSeparation/2+e.indexes[i.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&a>e.firstRight.x+e.firstRight.w/2?a<i.x+i.w/2?n-=(e.indexes[i.id]+1)*o:n-=(e.leftIds.length-e.indexes[i.id])*o:a<i.x+i.w/2?n+=(e.leftIds.length-e.indexes[i.id])*o:n+=(e.indexes[i.id]+1)*o),{x:a,mid:n}},__linkPpLeftRight:function(e,t,i,n,o,r){var a=0;return 1==r.isPartner?(a=r.y-t.partnerSeparation/2+e.indexes[i.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&a<e.lastLeft.y+e.lastLeft.h/2?a<i.y+i.h/2?n-=(e.indexes[i.id]+1)*o:n-=(e.rightIds.length-e.indexes[i.id])*o:a<i.y+i.h/2?n+=(e.rightIds.length-e.indexes[i.id])*o:n+=(e.indexes[i.id]+1)*o):2==r.isPartner&&(a=r.y+r.h+t.partnerSeparation/2+e.indexes[i.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&a>e.firstRight.y+e.firstRight.h/2?a<i.y+i.h/2?n-=(e.indexes[i.id]+1)*o:n-=(e.leftIds.length-e.indexes[i.id])*o:a<i.y+i.h/2?n+=(e.leftIds.length-e.indexes[i.id])*o:n+=(e.indexes[i.id]+1)*o),{y:a,mid:n}},_draggableLinkPath:function(e,t,i,n,o,r){if(i.isSubLevel)return null;if(t.isSubLevel)return null;if(i.leftNeighbor&&i.leftNeighbor.isSplit||i.rightNeighbor&&i.rightNeighbor.isSplit)return null;if(i.isPartner)return null;if(i.isAssistant)return null;if(OrgChart._isMoved(i)&&!OrgChart._isMoved(t)){var a=[];switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:if(n.yb+o/2<n.yd)return null;s=n.xa<n.xd?i.x-o/2:i.x+i.w+o/2,c=i.y-o/2;break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:if(n.yb-o/2>n.yd)return null;s=n.xa<n.xd?i.x-o/2:i.x+i.w+o/2,c=i.y+i.h+o/2;break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:if(n.xb-o/2>n.xd)return null;c=n.ya<n.yd?i.y-o/2:i.y+i.h+o/2,s=i.x+i.w+o/2;break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:if(n.xb+o/2<n.xd)return null;c=n.ya<n.yd?i.y-o/2:i.y+i.h+o/2,s=i.x-o/2}switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:a.push(["M",n.xa,n.ya]),a.push(["L",n.xb,n.yb]),a.push(["L",s,n.yb]),a.push(["L",s,c]),a.push(["L",n.xd,c]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:(a=[]).push(["M",n.xa,n.ya]),a.push(["L",n.xb,n.yb]),a.push(["L",n.xb,c]),a.push(["L",s,c]),a.push(["L",s,n.yd]),a.push(["L",n.xd,n.yd])}return OrgChart.roundPathCorners(a,OrgChart.LINK_ROUNDED_CORNERS,!1)}if(!OrgChart._isMoved(i)&&OrgChart._isMoved(t)){var l=!1;a=[];switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:if(n.ya+o/2>n.yb)l=!0,s=n.xa<n.xd?t.x+t.w+o/2:t.x-o/2,c=t.y+t.h+o;else{if(n.yb+o/2<n.yd)return null;s=n.xa<n.xd?i.x-o/2:i.x+i.w+o/2,c=i.y-o/2}break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:if(n.ya-o/2<n.yb)l=!0,s=n.xa<n.xd?t.x+t.w+o/2:t.x-o/2,c=t.y-o;else{if(n.yb-o/2>n.yd)return null;s=n.xa<n.xd?i.x-o/2:i.x+i.w+o/2,c=i.y+i.h+o/2}break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:if(n.xa-o/2<n.xb)l=!0,c=n.ya<n.yd?t.y+t.h+o/2:t.y-o/2,s=t.x-o;else{if(n.xb-o/2>n.xd)return null;c=n.ya<n.yd?i.y-o/2:i.y+i.h+o/2,s=i.x+i.w+o/2}break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:if(n.xa+o/2>n.xb)l=!0,c=n.ya<n.yd?t.y+t.h+o/2:t.y-o/2,s=t.x+t.w+o;else{if(n.xb+o/2<n.xd)return null;c=n.ya<n.yd?i.y-o/2:i.y+i.h+o/2,s=i.x-o/2}}if(l)switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,c]),a.push(["L",s,c]),a.push(["L",s,n.yc]),a.push(["L",n.xc,n.yc]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:a.push(["M",n.xa,n.ya]),a.push(["L",s,n.ya]),a.push(["L",s,c]),a.push(["L",n.xc,c]),a.push(["L",n.xc,n.yc]),a.push(["L",n.xd,n.yd])}else switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:a.push(["M",n.xa,n.ya]),a.push(["L",n.xb,n.yb]),a.push(["L",s,n.yb]),a.push(["L",s,c]),a.push(["L",n.xd,c]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:a.push(["M",n.xa,n.ya]),a.push(["L",n.xb,n.yb]),a.push(["L",n.xb,c]),a.push(["L",s,c]),a.push(["L",s,n.yd]),a.push(["L",n.xd,n.yd])}return OrgChart.roundPathCorners(a,OrgChart.LINK_ROUNDED_CORNERS,!1)}if(OrgChart._isMoved(i)&&OrgChart._isMoved(t)){a=[];switch(r){case OrgChart.orientation.top:case OrgChart.orientation.top_left:if(n.ya+o>n.yd){var s=n.xa<n.xd?t.x+t.w+o/2:t.x-o/2,c=t.y+t.h+o,d=i.y-o;a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,c]),a.push(["L",s,c]),a.push(["L",s,d]),a.push(["L",n.xc,d]),a.push(["L",n.xd,n.yd])}else a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,t.y+t.h+o]),a.push(["L",n.xc,t.y+t.h+o]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:if(n.ya-o<n.yd){s=n.xa<n.xd?t.x+t.w+o/2:t.x-o/2,c=t.y-o,d=i.y+i.h+o;a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,c]),a.push(["L",s,c]),a.push(["L",s,d]),a.push(["L",n.xc,d]),a.push(["L",n.xd,n.yd])}else a.push(["M",n.xa,n.ya]),a.push(["L",n.xa,t.y-o]),a.push(["L",n.xc,t.y-o]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:if(n.xa-o<n.xd){c=n.ya<n.yd?t.y+t.h+o/2:t.y-o/2,s=t.x-o;var h=i.x+i.w+o;a.push(["M",n.xa,n.ya]),a.push(["L",s,n.ya]),a.push(["L",s,c]),a.push(["L",h,c]),a.push(["L",h,n.yc]),a.push(["L",n.xd,n.yd])}else a.push(["M",n.xa,n.ya]),a.push(["L",t.x-o,n.ya]),a.push(["L",t.x-o,n.yc]),a.push(["L",n.xd,n.yd]);break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:if(n.xa+o>n.xd){c=n.ya<n.yd?t.y+t.h+o/2:t.y-o/2,s=t.x+t.w+o,h=i.x-o;a.push(["M",n.xa,n.ya]),a.push(["L",s,n.ya]),a.push(["L",s,c]),a.push(["L",h,c]),a.push(["L",h,n.yc]),a.push(["L",n.xd,n.yd])}else a.push(["M",n.xa,n.ya]),a.push(["L",t.x+t.w+o,n.ya]),a.push(["L",t.x+t.w+o,n.yc]),a.push(["L",n.xd,n.yd])}return OrgChart.roundPathCorners(a,OrgChart.LINK_ROUNDED_CORNERS,!1)}return null}},void 0===OrgChart&&(OrgChart={}),OrgChart._validateConfig=function(e){return!!e||(console.error("config is not defined"),!1)},OrgChart._arrayContains=function(e,t){if(e&&Array.isArray(e))for(var i=e.length;i--;)if(e[i]===t)return!0;return!1},OrgChart._interceptions=function(e,t){if(!e)return[];if(!t)return[];var i=[];if(Array.isArray(e)&&Array.isArray(t))for(var n in e)for(var o in t)e[n]==t[o]&&i.push(e[n]);else if(Array.isArray(e)&&!Array.isArray(t))for(var n in e)for(var o in t)e[n]==o&&i.push(e[n]);else if(!Array.isArray(e)&&Array.isArray(t))for(var n in e)for(var o in t)n==t[o]&&i.push(t[o]);return i},OrgChart._getTags=function(e){return e.tags&&!Array.isArray(e.tags)?e.tags.split(","):e.tags&&Array.isArray(e.tags)?e.tags:[]},OrgChart._centerPointInPercent=function(e,t,i){var n=e.getBoundingClientRect(),o=t-n.left,r=i-n.top;return[o/(n.width/100),r/(n.height/100)]},OrgChart._trim=function(e){return e.replace(/^\s+|\s+$/g,"")},OrgChart._getTransform=function(e){var t=e.getAttribute("transform");return t=t.replace("matrix","").replace("(","").replace(")",""),OrgChart._browser().msie&&(t=t.replace(/ /g,",")),t="["+(t=OrgChart._trim(t))+"]",t=JSON.parse(t)},OrgChart.getScale=function(e,t,i,n,o,r,a,l){var s=1;if(e||n!==OrgChart.match.boundary&&n!==OrgChart.match.boundaryIfOutside)if(e||n!==OrgChart.match.width)if(e||n!==OrgChart.match.height)if(e){var c,d;s=(c=t/e[2])>(d=i/e[3])?d:c}else s=n;else s=i/l;else s=t/a;else s=(c=t/a)>(d=i/l)?d:c,n===OrgChart.match.boundaryIfOutside&&s>1&&(s=1);return s&&s>o&&(s=o),s&&s<r&&(s=r),s},OrgChart.isObject=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&null!==e&&e.constructor&&"object"==e.constructor.name.toLowerCase()},OrgChart.fileUploadDialog=function(e){var t=document.createElement("INPUT");t.setAttribute("type","file"),t.style.display="none",t.onchange=function(){var t=this.files[0];e(t)},document.body.appendChild(t),t.click()},OrgChart.mergeDeep=function(e,t){if(OrgChart.isObject(e)&&OrgChart.isObject(t))for(var i in t)OrgChart.isObject(t[i])?(e[i]||Object.assign(e,{[i]:{}}),OrgChart.mergeDeep(e[i],t[i])):Object.assign(e,{[i]:t[i]});return e},OrgChart._lblIsImg=function(e,t){return!(!e.nodeBinding||"string"!=typeof t||-1==t.indexOf("img")||!e.nodeBinding[t])},OrgChart._getFistImgField=function(e){if(e.nodeBinding)for(var t in e.nodeBinding)if(-1!=t.indexOf("img"))return e.nodeBinding[t];return!1},OrgChart._fieldIsImg=function(e,t){if(e.nodeBinding)for(var i in e.nodeBinding)if(e.nodeBinding[i]==t)return OrgChart._lblIsImg(e,i);return!1},OrgChart._guid=function(){function s4(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return s4()+s4()+"-"+s4()+"-"+s4()+"-"+s4()+"-"+s4()+s4()+s4()},OrgChart.htmlRipple=function(e){var t=document.createElement("style");t.type="text/css",t.innerHTML=" .boc-ripple-container {position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .boc-ripple-container span {transform: scale(0);border-radius:100%;position:absolute;opacity:0.75;background-color:#fff;animation: boc-ripple 1000ms; }@-moz-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-webkit-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-o-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}",document.head.appendChild(t);var i,n,o,r=document.createElement("div");r.className="boc-ripple-container",e.addEventListener("mousedown",function(t){var i,n,o,r=document.createElement("span"),a=this.offsetWidth;return i=this.getBoundingClientRect(),o=t.pageX-i.left-a/2,n="top:"+(t.pageY-i.top-a/2)+"px; left: "+o+"px; height: "+a+"px; width: "+a+"px;",e.rippleContainer.appendChild(r),r.setAttribute("style",n)}),e.addEventListener("mouseup",(i=function(){for(;this.rippleContainer.firstChild;)this.rippleContainer.removeChild(this.rippleContainer.firstChild)},n=2e3,o=void 0,function(){var e,t=this;return e=arguments,clearTimeout(o),o=setTimeout(function(){return i.apply(t,e)},n)})),e.rippleContainer=r,e.appendChild(r)},OrgChart._moveToBoundaryArea=function(e,t,i,n){var o=t.slice(0);t[0]<i.left&&t[0]<i.right&&(o[0]=i.left>i.right?i.right:i.left),t[0]>i.right&&t[0]>i.left&&(o[0]=i.left>i.right?i.left:i.right),t[1]<i.top&&t[1]<i.bottom&&(o[1]=i.top>i.bottom?i.bottom:i.top),t[1]>i.bottom&&t[1]>i.top&&(o[1]=i.top>i.bottom?i.top:i.bottom),t[0]!==o[0]||t[1]!==o[1]?OrgChart.animate(e,{viewBox:t},{viewBox:o},300,OrgChart.anim.outPow,function(){n&&n()}):n&&n()},OrgChart.randomId=function(){return"_"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)},OrgChart._getClientXY=function(e){return-1==e.type.indexOf("touch")?{x:e.clientX,y:e.clientY}:e.changedTouches.length?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:void 0},OrgChart._getClientTouchesXY=function(e,t){return-1!=e.type.indexOf("touch")?e.touches.length<t+1?{x:null,y:null}:{x:e.touches[t].clientX,y:e.touches[t].clientY}:{x:e.clientX,y:e.clientY}},OrgChart._getOffset=function(e,t){e&&(t.x+=e.offsetLeft,t.y+=e.offsetTop,OrgChart._getOffset(e.offsetParent,t))},OrgChart._getTopLeft=function(e){var t={x:0,y:0};return OrgChart._getOffset(e,t),t},OrgChart._getOffsetXY=function(e,t){if(-1==t.type.indexOf("touch"))return{x:t.offsetX,y:t.offsetY};if(t.touches.length){var i=OrgChart._getTopLeft(e);return{x:t.touches[0].pageX-i.x,y:t.touches[0].pageY-i.y}}if(t.changedTouches.length){i=OrgChart._getTopLeft(e);return isNaN(i.x)||isNaN(i.y)?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.changedTouches[0].pageX-i.x,y:t.changedTouches[0].pageY-i.y}}},OrgChart._pinchMiddlePointInPercent=function(e,t,i,n){var o=OrgChart._getTopLeft(e),r=n.touches[0].pageX-o.x,a=n.touches[0].pageY-o.y,l=n.touches[1].pageX-o.x,s=n.touches[1].pageY-o.y;return[((r-l)/2+l)/(t/100),((a-s)/2+s)/(i/100)]},OrgChart._browser=function(){var e=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,t="undefined"!=typeof InstallTrigger,i=/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||void 0!==window.safari&&safari.pushNotification).toString(),n=!!document.documentMode,o=!n&&!!window.StyleMedia,r=!(!window.chrome||!window.chrome.webstore&&!window.chrome.runtime);return{opera:e,firefox:t,safari:i,msie:n,edge:o,chrome:r,blink:(r||e)&&!!window.CSS}},OrgChart._menuPosition=function(e,t,i){var n=e.getBoundingClientRect(),o=i.getBoundingClientRect(),r=t.getBoundingClientRect(),a=n.left-o.left,l=n.top-o.top;return n.top+r.height>o.top+o.height&&(l-=r.height),n.left-r.width<o.left&&(a+=r.width),{x:a,y:l}},OrgChart._getTemplate=function(e,t,i){if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=t[e[n]];if(o&&o.template)return o.template}return i},OrgChart._getMin=function(e,t){if(e.tags&&e.tags.length&&t.tags)for(var i=0;i<e.tags.length;i++){var n=t.tags[e.tags[i]];if(n&&!0===n.min)return!0}return t.min},OrgChart._getSubLevels=function(e,t){if(e&&e.length)for(var i=0;i<e.length;i++){var n=t[e[i]];if(n&&n.subLevels)return n.subLevels}return 0},OrgChart._isHTML=function(e){var t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.childNodes).some(e=>1===e.nodeType)},OrgChart._getTestDiv=function(){var e=document.getElementById("orgchart_js_test_div");return e||((e=document.createElement("div")).id="orgchart_js_test_div",e.style.position="fixed",e.style.top="-10000px",e.style.left="-10000px",document.body.appendChild(e)),e},OrgChart._getLabelSize=function(e){var t=OrgChart._getTestDiv();return t.innerHTML="<svg>"+e+"</svg>",t.querySelector("text").getBoundingClientRect()},OrgChart.wrapText=function(e,t,i,n){if(null!=i&&null!=n)return OrgChart._lineClamp(t,e,i,n);var o=t,r=o.toLowerCase();if(-1==r.indexOf("<text"))return OrgChart._escapeHtml(e);if(-1==r.indexOf(OrgChart.attr.width))return OrgChart._escapeHtml(e);if(-1!=r.indexOf("foreignobject"))return OrgChart._escapeHtml(e);if(-1==o.indexOf(OrgChart.attr.width))return OrgChart._escapeHtml(e);if(OrgChart.ESCAPE_HTML&&"string"==typeof str&&OrgChart._isHTML(e))return OrgChart._escapeHtml(e);if(!OrgChart.ESCAPE_HTML&&OrgChart._isHTML(e))return e;var a=OrgChart._getTestDiv();o=o.replaceAll("{cw}",0),a.innerHTML="<svg>"+o+"</svg>";var l,s=(new DOMParser).parseFromString(o,"text/xml").getElementsByTagName("text")[0],c=parseFloat(s.getAttribute("x")),d=parseFloat(s.getAttribute("y")),h=s.getAttribute("text-anchor"),p=(i=s.getAttribute(OrgChart.attr.width),s.getAttribute(OrgChart.attr.text_overflow)),u="http://www.w3.org/2000/svg",f=a.getElementsByTagName("svg")[0].getElementsByTagName("text")[0];p||(p="ellipsis");var g=p.split("-");if(g.length>1&&(n=parseInt(p.split("-")[1]),g.length>2&&"ellipsis"==g[2]&&(l=!0)),!i)return OrgChart._escapeHtml(e);if(i=parseFloat(i),c||(c=0),d||(d=0),c||(h="start"),"ellipsis"==p){f.removeChild(f.firstChild),f.textContent=e;for(var m=f.getComputedTextLength(),x=2;m>i;)f.textContent=e.substring(0,e.length-x),f.textContent+="...",m=f.getComputedTextLength(),x++;return x>2?`<title>${OrgChart._escapeHtml(e)}</title>${f.textContent}`:OrgChart._escapeHtml(e)}if(-1!=p.indexOf("multiline")){var b=e.split(" "),y=f.getBBox().height;f.textContent="";var v=document.createElementNS(u,"tspan"),_=document.createTextNode(b[0]);v.setAttributeNS(null,"x",c),v.setAttributeNS(null,"y",d),v.setAttributeNS(null,"text-anchor",h),v.appendChild(_),f.appendChild(v);x=1;for(var w=1,I=!1,k=1;k<b.length;k++){var C=v.firstChild.data.length;if(v.firstChild.data+=" "+b[k],v.getComputedTextLength()>i){if(v.firstChild.data=v.firstChild.data.slice(0,C),w++,n&&w>n){if(l&&f.children.length==n){var L=f.children[n-1].textContent;f.children[n-1].textContent=L.substring(0,L.length-3)+"...",I=!0}break}(v=document.createElementNS(u,"tspan")).setAttributeNS(null,"x",c),v.setAttributeNS(null,"y",d+y*x),v.setAttributeNS(null,"text-anchor",h),_=document.createTextNode(b[k]),v.appendChild(_),f.appendChild(v),x++}}var S="";if(null!=f.innerHTML)S=f.innerHTML,f.innerHTML="";else{var N="";for(k=f.childNodes.length-1;k>=0;k--)N=XMLSerializer().serializeToString(f.childNodes[k])+N,f.removeChild(f.childNodes[k]);S=N}return I?`<title>${OrgChart._escapeHtml(e)}</title>${S}`:S}},OrgChart._downloadFile=function(e,t,i,n,o){var r=new Blob([t],{type:e});if(1==n){var a=URL.createObjectURL(r);window.open(a,"_blank").focus()}else if(navigator.msSaveBlob)navigator.msSaveBlob(r,i);else{var l=document.createElement("a");if(void 0!==l.download){a=URL.createObjectURL(r);l.setAttribute("href",a);var s=i;s.toLowerCase().endsWith(o.toLowerCase())||(s=s+"."+o),l.setAttribute("download",s),l.style.visibility="hidden",document.body.appendChild(l),l.click(),document.body.removeChild(l)}}},OrgChart._getPosition=function(e,t,i,n){var o={x:t.x,y:t.y};if(null!=i&&(o.x=i),null!=n&&(o.y=i),e&&3==e.length){var r=e[0].indexOf(t.id);-1!=r&&null!=e[1][r].transform&&(null==i&&(o.x=e[1][r].transform[4]),null==n&&(o.y=e[1][r].transform[5]))}return o},OrgChart._getOpacity=function(e,t){var i=1;if(e&&3==e.length){var n=e[0].indexOf(t.id);-1!=n&&null!=e[1][n].opacity&&(i=e[1][n].opacity)}return i},OrgChart.t=function(e,t,i){var n=OrgChart.templates[e];null==n&&console.error(`Template "${e}" does not exist!`);var o=null;if(null!=i&&n.scaleLessThen){var r=[];for(var a in n.scaleLessThen){var l=parseFloat(a);i<l&&r.push(l)}if(r.length>0){r.sort(function(e,t){return e-t});var s=n.scaleLessThen[r[0]];for(var c in s)null==o&&(o=Object.assign({},n)),o[c]=s[c]}}return t?null==o?n.min?n.min:n:o.min?o.min:o:null==o?n:o},OrgChart.setNodeSize=function(e){var t=OrgChart.t(e.templateName,e.min);e.w=t&&t.size?t.size[0]:0,e.h=t&&t.size?t.size[1]:0},OrgChart._imgs2base64=function(e,t,i,n){var o=e.getElementsByTagName(t),r=o.length;0==r&&n();for(var a=0;a<r;a++)(function(){var e=a,t=o[e];OrgChart._getDataUri(t.getAttribute(i),function(o){o.success&&t.setAttribute(i,o.result),e==r-1&&n()})})()},OrgChart._getDataUri=function(e,t){if(-1!=e.indexOf("base64"))t({success:!1});else{var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){200===i.status?n.readAsDataURL(i.response):404===i.status&&t({success:!1,result:i.status})};var n=new FileReader;n.onloadend=function(){t({success:!0,result:n.result})},i.send()}},OrgChart._convertStringToArray=function(e,t){return-1!=OrgChart.ARRAY_FIELDS.indexOf(e)?OrgChart.isNEU(t)?[]:t.split(","):t},OrgChart._convertArrayToString=function(e){return!OrgChart.isNEU(e)&&Array.isArray(e)?e.join():e},OrgChart._csvToArray=function(e,t){t=t||OrgChart.CSV_DELIMITER;for(var i=new RegExp("(\\"+t+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+t+"\\r\\n]*))","gi"),n=[[]],o=null;o=i.exec(e);){var r,a=o[1];a.length&&a!==t&&n.push([]),r=o[2]?o[2].replace(new RegExp('""',"g"),'"'):o[3],n[n.length-1].push(r)}return n},OrgChart._json2xml=function(e){for(var t=document.implementation.createDocument("","",null),i=t.createElement("nodes"),n=0;n<e.length;n++){var o=t.createElement("node"),r=e[n];for(var a in r){var l=r[a];o.setAttribute(a,OrgChart._convertArrayToString(l))}i.appendChild(o)}return t.appendChild(i),'<?xml version="1.0" encoding="utf-8" ?>'+(new XMLSerializer).serializeToString(t.documentElement)},OrgChart._xml2json=function(e){for(var t=(new DOMParser).parseFromString(e,"text/xml").getElementsByTagName("node"),i=[],n=0;n<t.length;n++){for(var o=t[n],r={},a=0;a<o.attributes.length;a++){var l=o.attributes[a];r[l.name]=OrgChart._convertStringToArray(l.name,l.value)}i.push(r)}return i},OrgChart.convertNodesToCsv=function(e){return OrgChart._json2csv(e)},OrgChart._json2csv=function(e){for(var t=[],processNode=function(e){for(var i="",n=0;n<t.length;n++){var o;(o="reportsTo"==t[n]?null:null==e[t[n]]?"":e[t[n]])instanceof Date&&(o=o.toLocaleString());var r=(o=null===o?"":o.toString()).replace(/"/g,'""'),a=new RegExp('("|;|\n)',"g");r.search(a)>=0&&(r='"'+r+'"'),n>0&&(i+=OrgChart.CSV_DELIMITER),i+=r}return i+"\n"},i="",n=0;n<e.length;n++)for(var o in e[n])OrgChart._arrayContains(t,o)||(t.push(o),i+=o+OrgChart.CSV_DELIMITER);i=i.substring(0,i.length-1),i+="\n";for(n=0;n<e.length;n++)i+=processNode(e[n]);return i=i.substring(0,i.length-1)},OrgChart.accentFold=function(e){return(e=e.toString().toLowerCase()).replace(/([àáâãäå])|([ç])|([èéêë])|([ìíîï])|([ñ])|([òóôõöø])|([ß])|([ùúûü])|([ÿ])|([æ])/g,function(e,t,i,n,o,r,a,l,s,c,d){return t?"a":i?"c":n?"e":o?"i":r?"n":a?"o":l?"s":s?"u":c?"y":d?"ae":void 0})},OrgChart.copy=function(e){if(null===e||"object"!=typeof e||"isActiveClone"in e)return e;if(e instanceof Date)var t=new e.constructor;else t=e.constructor();for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e.isActiveClone=null,t[i]=OrgChart.copy(e[i]),delete e.isActiveClone);return t},OrgChart._getScrollSensitivity=function(){var e=OrgChart._browser();return e.msie&&OrgChart.scroll.ie?OrgChart.scroll.ie:e.edge&&OrgChart.scroll.edge?OrgChart.scroll.edge:e.safari&&OrgChart.scroll.safari?OrgChart.scroll.safari:e.chrome&&OrgChart.scroll.chrome?OrgChart.scroll.chrome:e.firefox&&OrgChart.scroll.firefox?OrgChart.scroll.firefox:e.opera&&OrgChart.scroll.opera?OrgChart.scroll.opera:{smooth:OrgChart.scroll.smooth,speed:OrgChart.scroll.speed}},OrgChart.isMobile=function(){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return t||i},OrgChart._isTouchDevice=function(){return navigator.maxTouchPoints>0},OrgChart.isTrial=function(){return void 0!==OrgChart.remote},OrgChart.childrenCount=function(e,t){for(var i=0,n=0;n<t.childrenIds.length;n++)e.nodes[t.childrenIds[n]]&&i++;return i},OrgChart.childrenTotalCount=function(e,t){for(var i=0,n=0;n<t.childrenIds.length;n++){var o=e.nodes[t.childrenIds[n]];o&&(i++,i+=OrgChart.childrenTotalCount(e,o))}return i},OrgChart.collapsedChildrenCount=function(e,t){for(var i=0,n=0;n<t.childrenIds.length;n++){var o=e.nodes[t.childrenIds[n]];o&&!0===o.collapsed&&i++}return i},OrgChart.collapsedChildrenTotalCount=function(e,t,i){for(var n=0,o=0;o<t.childrenIds.length;o++){var r=e.nodes[t.childrenIds[o]];r&&((i||!0===r.collapsed)&&n++,n+=OrgChart.collapsedChildrenTotalCount(e,r,!0))}return n},OrgChart._setMinMaxXY=function(e,t,i){i&&e.isTreeListItem||((null==t.minX||null!=e.x&&e.x<t.minX)&&(t.minX=e.x),(null==t.minY||null!=e.y&&e.y<t.minY)&&(t.minY=e.y),(null==t.maxX||null!=e.x&&e.x+e.w>t.maxX)&&(t.maxX=e.x+e.w),(null==t.maxY||null!=e.y&&e.y+e.h>t.maxY)&&(t.maxY=e.y+e.h))},OrgChart.getStParentNodes=function(e,t){for(t||(t=[]);e.parent;)e=e.parent;return e.stParent&&(t.push(e.stParent),OrgChart.getStParentNodes(e.stParent,t)),t},OrgChart.getRootOf=function(e){for(;e&&e.parent;)e=e.parent;return e},OrgChart._getViewBox=function(e){var t=null;return e?(t=(t="["+(t=e.getAttribute("viewBox"))+"]").replace(/\ /g,","),t=JSON.parse(t)):null},OrgChart.isNEU=function(e){return null==e||""===e},OrgChart.gradientCircleForDefs=function(e,t,i,n){function polarToCartesian(e,t,i,n){var o=(n-90)*Math.PI/180;return{x:e+i*Math.cos(o),y:t+i*Math.sin(o)}}function describeArc(e,t,i,n,o){var r=polarToCartesian(e,t,i,o),a=polarToCartesian(e,t,i,n),l=o-n<=180?"0":"1";return["M",r.x,r.y,"A",i,i,0,l,0,a.x,a.y].join(" ")}return Array.isArray(t)||(t=[t,t,t,t,t,t]),`<linearGradient id="${e}_linearColors1" x1="0" y1="0" x2="1" y2="1">\n <stop offset="0%" stop-color="${t[0]}"></stop>\n <stop offset="100%" stop-color="${t[1]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors2" x1="0.5" y1="0" x2="0.5" y2="1">\n <stop offset="0%" stop-color="${t[1]}"></stop>\n <stop offset="100%" stop-color="${t[2]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors3" x1="1" y1="0" x2="0" y2="1">\n <stop offset="0%" stop-color="${t[2]}"></stop>\n <stop offset="100%" stop-color="${t[3]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors4" x1="1" y1="1" x2="0" y2="0">\n <stop offset="0%" stop-color="${t[3]}"></stop>\n <stop offset="100%" stop-color="${t[4]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors5" x1="0.5" y1="1" x2="0.5" y2="0">\n <stop offset="0%" stop-color="${t[4]}"></stop>\n <stop offset="100%" stop-color="${t[5]}"></stop>\n </linearGradient>\n <linearGradient id="${e}_linearColors6" x1="0" y1="1" x2="1" y2="0">\n <stop offset="0%" stop-color="${t[5]}"></stop>\n <stop offset="100%" stop-color="${t[0]}"></stop>\n </linearGradient> \n <g id="${e}">\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors1)" d="${describeArc(i,i,i,1,60)}" />\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors2)" d="${describeArc(i,i,i,60,120)}"/>\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors3)" d="${describeArc(i,i,i,120,180)}" />\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors4)" d="${describeArc(i,i,i,180,240)}" />\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors5)" d="${describeArc(i,i,i,240,300)}" />\n <path stroke-width="${n}" fill="none" stroke="url(#${e}_linearColors6)" d="${describeArc(i,i,i,300,1)}"/>\n </g>`},OrgChart._intersectionObserver=function(e,t){"function"==typeof IntersectionObserver?new IntersectionObserver(function(e,i){e.forEach(function(e){var i=e.intersectionRatio>0;0==e.intersectionRatio&&(i=e.isIntersecting),t(i)})}).observe(e):t(!0)},OrgChart.convertCsvToNodes=function(e){for(var t=OrgChart._csvToArray(e),i=t[0],n=[],o=1;o<t.length;o++){for(var r={},a=0;a<t[o].length;a++){var l=i[a],s=t[o][a];r[i[a]]=OrgChart._convertStringToArray(l,s)}""!=r.id.trim()&&n.push(r)}return n},OrgChart._escapeHtml=function(e){return OrgChart.ESCAPE_HTML&&"string"==typeof e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):e},OrgChart._escapeDoubleQuotes=function(e){return"string"==typeof e?e.replace(/"/g,"""):e},OrgChart._escapeGreaterLessSign=function(e){return"string"==typeof e?e.replace(/</g,"<").replace(/>/g,">"):e},OrgChart.roundPathCorners=function(e,t,i){function moveTowardsLength(e,t,i){var n=t.x-e.x,o=t.y-e.y,r=Math.sqrt(n*n+o*o);return moveTowardsFractional(e,t,Math.min(1,i/r))}function moveTowardsFractional(e,t,i){return{x:e.x+(t.x-e.x)*i,y:e.y+(t.y-e.y)*i}}function adjustCommand(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function pointForCommand(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}Array.isArray(e)||(e=(e=e.split(/[,\s]/).reduce(function(e,t){var i=t.match("([a-zA-Z])(.+)");return i?(e.push(i[1]),e.push(i[2])):e.push(t),e},[])).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]));var n=[];if(e.length>1){var o=pointForCommand(e[0]),r=null;"Z"==e[e.length-1][0]&&e[0].length>2&&(r=["L",o.x,o.y],e[e.length-1]=r),n.push(e[0]);for(var a=1;a<e.length;a++){var l=n[n.length-1],s=e[a],c=s==r?e[1]:e[a+1];if(c&&l&&l.length>2&&"L"==s[0]&&c.length>2&&"L"==c[0]){var d,h,p=pointForCommand(l),u=pointForCommand(s),f=pointForCommand(c);i?(d=moveTowardsFractional(u,l.origPoint||p,t),h=moveTowardsFractional(u,c.origPoint||f,t)):(d=moveTowardsLength(u,p,t),h=moveTowardsLength(u,f,t)),adjustCommand(s,d),s.origPoint=u,n.push(s);var g=moveTowardsFractional(d,u,.5),m=moveTowardsFractional(u,h,.5),x=["C",g.x,g.y,m.x,m.y,h.x,h.y];x.origPoint=u,n.push(x)}else n.push(s)}if(r){var b=pointForCommand(n[n.length-1]);n.push(["Z"]),adjustCommand(n[0],b)}}else n=e;return n.reduce(function(e,t){return e+t.join(" ")+" "},"")},OrgChart._isMoved=function(e){return null!=e.movex||null!=e.movey},OrgChart._getDynamicGridCoulumns=function(e){for(var t=1;t<e&&!(e/t-t<=0);t++);return t%2!=0&&t>2&&t--,t},OrgChart._getLazyLoading=function(e){var t=e.lazyLoading;return"auto"==t&&(t=!!(e&&e.nodes&&e.nodes.length>700)),t},OrgChart._getSvgAttributes=function(e){const t=e.match(/width="([\d.]+)"/),i=e.match(/height="([\d.]+)"/),n=e.match(/x="([\d.]+)"/),o=e.match(/y="([\d.]+)"/),r=e.match(/viewBox="([^"]+)"/),a=t?parseFloat(t[1]):0,l=i?parseFloat(i[1]):0,s=n?parseFloat(n[1]):0,c=o?parseFloat(o[1]):0;let d=[0,0,0,0];return r&&(d=r[1],d=JSON.parse(`[${d}]`)),{width:a,height:l,viewBox:d,x:s,y:c}},OrgChart._setSvgAttributes=function(e,t){var i=t.x,n=t.y,o=t.width,r=t.height,a=t.viewBox.join(",");const l=e.match(/<svg\s+([^>]*?)>/);if(!l)return e;let s=l[0],c=l[1];const updateAttribute=(e,t,i)=>{if(null==i)return e;const n=new RegExp(`\\s*${t}="[^"]*"`,"i"),o=` ${t}="${i}"`;return e.match(n)?e.replace(n,o):e+o};c=updateAttribute(c,"x",i),c=updateAttribute(c,"y",n),c=updateAttribute(c,"width",o),c=updateAttribute(c,"height",r),c=updateAttribute(c,"viewBox",a);const d=`<svg ${c}>`;return e.replace(s,d)},OrgChart._convertTextToNodes=function(e,t){const i=e.split(/\r?\n/).filter(e=>""!==e.trim()),n=[];let o=1;const r=[];for(let a of i){let e=0;for(;a.startsWith(t);)a=a.slice(t.length),e++;if(a=a.trim(),!a)continue;const i=a.match(/^\[([^\]]+)](.*)$/);if(i){const e=i[1].trim(),t=i[2].trim();r.length>0&&(r[r.length-1][e]=t);continue}const l=a.match(/^([^\(]+)\(([^)]+)\)$/);let s,c=[];l?(s=l[1].trim(),c=l[2].split(",").map(e=>e.trim())):s=a;const d={id:o++,pid:0===e?null:r[e-1].id,name:s,tags:c};r[e]=d,r.length=e+1,n.push(d)}return n},OrgChart._convertFromNodesToText=function(e,t){const i={},n=[];function render(e,i){const n=t.repeat(i);let o=n+e.name;Array.isArray(e.tags)&&e.tags.length>0&&(o+="("+e.tags.join(",")+")"),o+="\n";for(const t of Object.keys(e))["id","pid","name","children","tags"].includes(t)||(o+=n+"["+t+"]"+e[t]+"\n");for(const t of e.children)o+=render(t,i+1);return o}return e.forEach(e=>{i[e.id]={...e,children:[]}}),e.forEach(e=>{e.pid&&i[e.pid]?i[e.pid].children.push(i[e.id]):n.push(i[e.id])}),n.map(e=>render(e,0)).join("").trim()},OrgChart._onClickHandler=function(e,t,i,n,o){var r;if(void 0===i)if("add"===t){var a={id:e.generateId(),pid:n};e.addNode(a,null,!0)}else if("edit"===t){var l=e.getNode(n);e.editUI.show(l.id)}else if("details"===t){l=e.getNode(n);e.editUI.show(l.id,!0)}else if("remove"===t)e.removeNode(n,null,!0);else if("svg_export"===t||"svg"===t){var s={};OrgChart.isNEU(n)||(s.pages=[{nodeId:n}]),e.exportToSVG(s)}else if("pdf_export"===t||"pdf"===t){s={};OrgChart.isNEU(n)||(s.pages=[{nodeId:n}]),e.exportToPDF(s)}else if("png_export"===t||"png"===t){s={};OrgChart.isNEU(n)||(s.pages=[{nodeId:n}]),e.exportToPNG(s)}else if("visio_export"===t||"visio"===t)e.exportToVisio({nodeId:n});else if("pp_export"===t||"powerpoint"===t)e.exportToPowerPoint();else if("pp_preview"===t||"pppreview"===t){s={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};null!=n&&(s.expandChildren=!1,s.pages[0].nodeId=n),e.powerPointPreviewUI.show(s)}else if("pdf_preview"===t||"pdfpreview"===t){s={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};null!=n&&(s.expandChildren=!1,s.pages[0].nodeId=n),e.pdfPreviewUI.show(s)}else if("svg_preview"===t||"svgpreview"===t){s={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};null!=n&&(s.expandChildren=!1,s.pages[0].nodeId=n),e.svgPreviewUI.show(s)}else if("png_preview"===t||"pngpreview"===t){s={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};null!=n&&(s.expandChildren=!1,s.pages[0].nodeId=n),e.pngPreviewUI.show(s)}else"csv_export"===t||"csv"===t?e.exportToCSV({nodeId:n}):"xml_export"===t||"xml"===t?e.exportToXML({nodeId:n}):"json_export"===t||"json"===t?e.exportToJSON({nodeId:n}):"fit"===t?e.fit():"expand_all"===t?e.expand(null,"all"):"full_screen"===t?e.toggleFullScreen():"zoom_in"===t?e.zoom(!0,null,!0):"zoom_out"===t||"zoom_out"===t?e.zoom(!1,null,!0):"layout_mixed"===t?e.setLayout(OrgChart.layout.mixed):"layout_normal"===t?e.setLayout(OrgChart.layout.normal):"layout_right_offset"===t?e.setLayout(OrgChart.layout.treeRightOffset):"layout_left_offset"===t?e.setLayout(OrgChart.layout.treeLeftOffset):"layout_tree"===t?e.setLayout(OrgChart.layout.tree):"layout_grid"===t&&e.setLayout(OrgChart.layout.grid);else r=i.call(e,n,o);return r},OrgChart._isSVG=function(e){if("string"!=typeof e)return!1;const t=e.trim();if(!t.startsWith("<svg")||!t.endsWith("</svg>"))return!1;try{const e=(new DOMParser).parseFromString(t,"image/svg+xml");return!e.querySelector("parsererror")&&"svg"===e.documentElement.nodeName.toLowerCase()}catch{return!1}},OrgChart._treeListAdjustToSTNodePostition=function(e,t){for(var i of e)i.y+=t.y+t.padding[0],i.x+=t.x+t.padding[3],OrgChart._treeListAdjustToSTNodePostition(i.children,t)},OrgChart._treeListSetProps=function(e,t){var i=-e.treeList.scrollTop,n={nodesByLevels:[],lastNode:null,y:0};e.treeList.pinnedIds=[],OrgChart._treeListIterate(e.stChildren,n,-1);var o=n.lastNode.y+n.lastNode.h-0-(e.treeList.maxHeight-e.padding[0]-e.padding[2]);i>0||o<0?i=0:0!=i&&-1*i>o&&(i=-o);for(var r=n.nodesByLevels.length-1;r>=0;r--)for(var a=n.nodesByLevels[r],l=a.length-1;l>=0;l--){for(var s=(g=a[l]).y,c=0,d=g.parent;d&&(c+=d.h,d.parent);)d=d.parent;if(g.children.length&&g.y+i<=c){s=-i+c;var h=a[l+1];if(h&&h.y<s+g.h&&(s=h.y-g.h),d){var p=e.stChildren.indexOf(d);if(e.stChildren.length>p+1){var u=e.stChildren[p+1];u.y<s+g.h&&(s=u.y-g.h)}}}g.y!=s&&e.treeList.pinnedIds.push(g.id),g.y=s,g.x=0}if(t==OrgChart.orientation.bottom){var f=n.lastNode.y+n.lastNode.h;for(var r of n.nodesByLevels)for(var g of r)g.y=f-g.y-g.h}e.treeList.scrollTop=-i,e.treeList.scrollTopMax=o},OrgChart._treeListIterate=function(e,t,i){for(var n of(i++,e))n.y=t.y,t.y+=n.h,t.nodesByLevels[i]||(t.nodesByLevels[i]=[]),t.nodesByLevels[i].push(n),t.lastNode=n,OrgChart._treeListIterate(n.children,t,i)},OrgChart._treeListGetTumbPositionFromScrollTop=function(e){var t=e.h-e.padding[0]-e.padding[2],i=t/((e.treeList.scrollTopMax+t)/100),n=t/100*i,o=t-n,r=-e.treeList.scrollTop/(e.treeList.scrollTopMax/100),a=e.y+e.padding[0]+r*(o/-100),l="initial";return(isNaN(n)||isNaN(a)||n<0||i>100)&&(l="none",n=0,a=0),{thumbHeight:n,thumbPosition:a,scrollBarDisplay:l}},OrgChart._treeListGetScrollTopFromTumbPosition=function(e,t,i){var n=e.h-e.padding[0]-e.padding[2]-t,o=(i-(e.y+e.padding[0]))/n*100/100*e.treeList.scrollTopMax;return(isNaN(o)||o<0)&&(o=0),o>e.treeList.scrollTopMax&&(o=e.treeList.scrollTopMax),o},OrgChart._getCenterNodeFromParams=function(e,t){var i=e[t.id];if(i){if(i.isTreeListItem){for(;!i.stParent;)i=i.parent;i=i.stParent}return i}return null},OrgChart._getScrollTopForNode=function(e,t){var i={nodesByLevels:[],lastNode:null,y:0};OrgChart._treeListIterate(e.stChildren,i,-1);var n=null;for(var o of i.nodesByLevels){for(var r of o)if(r.id==t){n=r;break}if(n)break}if(!n)return e.treeList.scrollTop;for(var a=0,l=n.parent;l&&(a+=l.h,l.parent);)l=l.parent;var s=e.padding[0],c=e.padding[2],d=e.treeList.maxHeight-s-c,h=i.lastNode.y+i.lastNode.h-d;h<0&&(h=0);var p=e.treeList.scrollTop,u=n.y-a,f=n.y+n.h-d,g=p;return n.y<p+a?g=u:n.y+n.h>p+d&&(g=n.h>d-a?u:f),g<0?g=0:g>h&&(g=h),g},OrgChart._getDefailtPositionForExpandCollpase=function(e,t){var i={x:0,y:0};switch(e.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:i.x=t.w/2,i.y=t.h;break;case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:i.x=t.w/2,i.y=0;break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:i.x=0,i.y=t.h/2;break;case OrgChart.orientation.left:case OrgChart.orientation.left_top:i.x=t.w,i.y=t.h/2}return i},OrgChart._measureCache={svg:null,text:null},OrgChart._getMeasureElement=function(){if(OrgChart._measureCache.svg)return OrgChart._measureCache.text;const e="http://www.w3.org/2000/svg";return OrgChart._measureCache.svg=document.createElementNS(e,"svg"),OrgChart._measureCache.svg.id="orgchart_js_test__measure",OrgChart._measureCache.svg.style.cssText="position:absolute;top:-9999px;visibility:hidden;white-space:pre;",OrgChart._measureCache.text=document.createElementNS(e,"text"),OrgChart._measureCache.svg.appendChild(OrgChart._measureCache.text),document.body.appendChild(OrgChart._measureCache.svg),OrgChart._measureCache.text},OrgChart._lineClamp=function(e,t,i,n){if(void 0===t||null==t)return"";"string"!=typeof t&&(t=t.toString()),t=OrgChart._escapeHtml(t);const o=/(\w+(?:-\w+)?)="([^"]*)"/g,r={};let a;for(;null!==(a=o.exec(e));)r[a[1]]=a[2];const l=OrgChart._getMeasureElement();l.textContent="";for(const[g,m]of Object.entries(r))"x"!==g&&"y"!==g&&l.setAttribute(g,m);const getWidth=e=>(l.textContent=e,l.getComputedTextLength()),s=t.split(" "),c=[];let d="",h=0;for(;h<s.length&&c.length<n;){const e=s[h],t=d?d+" "+e:e;if(getWidth(t)<=i)d=t,h++;else if(""===d){let t=0,n=e.length,o=1;for(;t<=n;){let r=t+n>>1;getWidth(e.slice(0,r))<=i?(o=r,t=r+1):n=r-1}c.push(e.slice(0,o)),s[h]=e.slice(o)}else c.push(d),d=""}d&&c.length<n&&c.push(d);let p=h<s.length||h===s.length&&""===s[h-1]&&t.endsWith(" ");if(p&&c.length>0){let e=c[c.length-1],t=0,n=e.length,o="";for(;t<=n;){let r=Math.floor((t+n)/2),a=e.substring(0,r)+"...";getWidth(a)<=i?(o=a,t=r+1):n=r-1}c[c.length-1]=o}const u=` x="${r.x||"0"}"`,f=1===c.length?c[0]:c.map((e,t)=>`<tspan${u} dy="${0===t?0:"1.2em"}">${e}</tspan>`).join("");return`<text${Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("")}>${p?`<title>${t}</title>`:""}${f}</text>`},OrgChart._getScrollableTreeListNodeInTouchEnabledDevice=function(e){if(!e||!e.isTreeListItem||!OrgChart._isTouchDevice())return null;var t=OrgChart.getRootOf(e).stParent,{thumbHeight:i,thumbPosition:n,scrollBarDisplay:o}=OrgChart._treeListGetTumbPositionFromScrollTop(t);return"none"==o?null:t},OrgChart._convertImagesToBase64=async function(e){const t=new DOMParser;return await Promise.all(e.map(async e=>{const i=t.parseFromString(e,"image/svg+xml"),n=i.querySelectorAll("image");for(const t of n){const e=t.getAttribute("href")||t.getAttribute("xlink:href");if(e&&!e.startsWith("data:"))try{const i=parseFloat(t.getAttribute("width"))||0,n=parseFloat(t.getAttribute("height"))||0;if(i>0&&n>0){const o=await OrgChart._resizeAndConvert(e,i,n);t.setAttribute("href",o),t.removeAttributeNS("http://www.w3.org/1999/xlink","href")}}catch(o){console.error("Failed to process image:",e,o)}}return(new XMLSerializer).serializeToString(i)}))},OrgChart._resizeAndConvert=function(e,t,i){return new Promise((n,o)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{const e=document.createElement("canvas"),o=e.getContext("2d"),a=Math.min(t/r.width,i/r.height),l=r.width*a,s=r.height*a;e.width=l,e.height=s,o.drawImage(r,0,0,l,s),n(e.toDataURL("image/png"))},r.onerror=o,r.src=e})},OrgChart.prototype.zoom=function(e,t,i,n){var o=this.getViewBox().slice(0),r=o,a=o[2],l=o[3];!0===e?(o[2]=o[2]/OrgChart.SCALE_FACTOR,o[3]=o[3]/OrgChart.SCALE_FACTOR):!1===e?(o[2]=o[2]*OrgChart.SCALE_FACTOR,o[3]=o[3]*OrgChart.SCALE_FACTOR):(o[2]=o[2]/e,o[3]=o[3]/e),t||(t=[50,50]),o[0]=r[0]-(o[2]-a)/(100/t[0]),o[1]=r[1]-(o[3]-l)/(100/t[1]);var s=this.getScale(o);if(o[2]=this.width()/s,o[3]=this.height()/s,!0===e&&s<this.config.scaleMax||!1===e&&s>this.config.scaleMin||0!=e&&1!=e&&s<this.config.scaleMax&&s>this.config.scaleMin){this._hideBeforeAnimation();var c=this;i?(clearTimeout(c._timeout),OrgChart.animate(this.getSvg(),{viewbox:this.getViewBox()},{viewbox:o},this.config.anim.duration,this.config.anim.func,function(){clearTimeout(c._timeout),c._timeout=setTimeout(function(){c._draw(!0,OrgChart.action.zoom,null,n)},500)})):(this.setViewBox(o),clearTimeout(c._timeout),c._timeout=setTimeout(function(){c._draw(!0,OrgChart.action.zoom,null,n)},500))}},OrgChart._ai=function(e){this.instance=e,this.sessionId=null},OrgChart._ai.prototype.prompt=function(e,t){var i=this;(e=e.trim())&&(this.sessionId?i._prompt([{Role:"user",Text:e}],t):this.setContext(function(){i._prompt([{Role:"user",Text:e}],t)}))},OrgChart._ai.prototype._prompt=function(e,t){var i=this,n=[];for(var o of OrgChart.AI_SYSTEM_MESSAGES)n.push({Role:"system",Text:o});var r=this.instance.config.serverUrl+`/OrgChartJSAI/Prompt?client_messages=${encodeURIComponent(JSON.stringify(e))}&system_messages=${encodeURIComponent(JSON.stringify(n))}&sessionId=${this.sessionId}`;const a=new EventSource(r);a.onmessage=function(e){var n=JSON.parse(e.data);"end"==n.kind&&a.close(),"text"==n.kind&&(n.text,t&&t(n.text)),"assistant-message-with-tools"==n.kind?i.toolCalls(n.message,t):"error"==n.kind&&console.error(n.text)},a.onerror=function(e){console.error(e),a.close()}},OrgChart._ai.prototype.setContext=function(e){if(this.instance&&this.instance.config.enableAI&&this.instance.aiUI.canSetContext){this.sessionId=this.instance._event_id;var t=this.instance.config.serverUrl+"/OrgChartJSAI/SetContext",i=this.instance.config.aiChatTools.slice();for(var n of i)null==n.functionParameters&&(n.functionParameters=null),n.functionParameters=JSON.stringify(n.functionParameters);fetch(t,{method:"post",headers:{"Content-Type":"application/json","x-request-type":"ajax"},body:JSON.stringify({context:this.instance.config.nodes,sessionId:this.sessionId,chatTools:i})}).then(function(){e&&e()}).catch(function(e){console.error(e)})}},OrgChart._ai.prototype.toolCalls=function(e,t){var i=this,n={toolCalls:e.ToolCalls};OrgChart.events.publish("ai-tool-calls",[this.instance,n]);var o=[],r=[],a=[],l=[],s=[],c=null,d=null,h=null,p=null,u=null;for(var f of n.toolCalls)null==f.FunctionResult&&("removeNode"==f.FunctionName?o.push(f):"addNode"==f.FunctionName?r.push(f):"updateNode"==f.FunctionName?a.push(f):"select"==f.FunctionName?l.push(f):"deselect"==f.FunctionName?s.push(f):"exportToPDF"==f.FunctionName?c=f:"changeTemplate"==f.FunctionName?d=f:"addSlink"==f.FunctionName?h=f:"removeSlink"==f.FunctionName?p=f:"fit"==f.FunctionName&&(u=f));var g=!1;if(d&&(g=!0,f.FunctionResult="ok",this.instance.config.template=f.FunctionArguments.templateName),h){var m=this.instance.getNode(f.FunctionArguments.employeeId1),x=this.instance.getNode(f.FunctionArguments.employeeId2);m&&x&&m!=x?(g=!0,this.instance.addSlink(m.id,x.id),f.FunctionResult="ok"):f.FunctionResult=`Cannot add link between ${f.FunctionArguments.employeeId1} and ${f.FunctionArguments.employeeId2}`}if(p){m=this.instance.getNode(f.FunctionArguments.employeeId1),x=this.instance.getNode(f.FunctionArguments.employeeId2);m&&x&&m!=x?(g=!0,this.instance.removeSlink(m.id,x.id),f.FunctionResult="ok"):f.FunctionResult=`Cannot remove link between ${f.FunctionArguments.employeeId1} and ${f.FunctionArguments.employeeId2}`}for(var f of(u&&(this.instance.fit(),g=!1),o))g=!0,f.FunctionResult="ok",this.instance.remove(f.FunctionArguments.id);for(var f of r){g=!0,f.FunctionResult="ok",(b=JSON.parse(JSON.stringify(f.FunctionArguments))).isAssistant&&(b.tags=["assistant"]),delete b.isAssistant,OrgChart.isNEU(b.id)&&(b.id=this.instance.generateId()),this.instance.add(b)}for(var f of a){g=!0,f.FunctionResult="ok";var b=this.instance.get(f.FunctionArguments.id);for(var y in f.FunctionArguments)"id"!=y&&null!=f.FunctionArguments[y]&&(b[y]=f.FunctionArguments[y]);this.instance.update(b)}for(var f of l)for(var v of(f.FunctionResult="ok",f.FunctionArguments.ids)){var _=f.FunctionArguments.color;_||(_="#FFCA28");var w=this.instance.getNodeElement(v).firstChild;w&&(w.style.stroke=f.FunctionArguments.color,w.style.strokeWidth=5)}var deselect=function(){for(var e of s)if(e.FunctionResult="ok",e.FunctionArguments.ids)for(var t of e.FunctionArguments.ids){var n=i.instance.getNodeElement(t).firstChild;n&&(n.style.stroke="#aeaeae",n.style.strokeWidth=1)}else g=!0};g?(this.setContext(),this.instance.draw(OrgChart.action.update,void 0,deselect)):deselect();var prompt=function(){var e=[];for(var o of n.toolCalls)e.push({Role:"tool",Text:o.FunctionResult,Id:o.Id});i._prompt(e,t)};c?this.chartInstance.exportToPDF({},function(){f.FunctionResult="ok",OrgChart._downloadFile("application/pdf",response,"OrgChart.pdf",!1,"pdf"),prompt()}):prompt()},OrgChart.aiUI=function(){this.instance=null,this.interval=null,this.canSetContext=!1,this.element=null,this.inputElement=null,this.btnSendElement=null,this.messagesElement=null,Object.defineProperty(this,"width",{get(){return this.isVisible()?this.element.offsetWidth:0}})},OrgChart.aiUI.title="AI for OrgChart JS",OrgChart.aiUI.prototype.init=function(e){this.instance=e;var t=this,i=this.instance.element.querySelector("[data-boc-ai-button]");i&&i.addEventListener("click",function(e){t.show()})},OrgChart.aiUI.prototype.isVisible=function(){return!(!this.element||"none"==this.element.style.display)},OrgChart.aiUI.prototype.show=function(e,t){this.instance.pdfPreviewUI.hide(),this.instance.svgPreviewUI.hide(),this.instance.pngPreviewUI.hide(),this.instance.powerPointPreviewUI.hide(),this.instance.aiUI.hide(),this.instance.orgScribeUI.hide(),this._create(),this.element.style.display="",this.canSetContext||(this.canSetContext=!0,this.instance._ai.setContext());var i=this;t||(this.timeout&&clearInterval(this.interval),this.interval=OrgChart.animate(this.element,{opacity:0},{opacity:1},300,OrgChart.anim.outSin,function(){e||i.inputElement.focus()}))},OrgChart.aiUI.prototype._create=function(){if(!this.element){var e=this,t="inp_"+this.instance.generateId();this.element=document.createElement("div"),this.element.setAttribute("data-boc-ai-form",""),this.element.style.opacity=0,this.element.classList.add("boc-ai-form"),this.element.classList.add(this.instance.config.mode),this.element.innerHTML=`<div class="boc-ai-container">\n <div data-boc-ai-close class="boc-ai-close">${OrgChart.icon.x(20,20,"#aeaeae")}</div>\n <div class="boc-ai-middle boc-ai-start">\n <div data-boc-ai-messages class="boc-ai-messages">\n <img src="https://orgchartjs.balkan.app/logo.svg"> \n <span>\n ${OrgChart.aiUI.title}\n </span>\n </div> \n </div>\n <div>\n <div class="boc-input" data-boc-input="">\n <label for="${t}">Message OrgChart</label>\n <input maxlength="256" id="${t}" name="${t}" type="text" value="" autocomplete="off"> \n <div data-boc-ai-send class="boc-ai-send">\n ${OrgChart.icon.send(20,20,"#aeaeae")}\n </div> \n </div>\n \n </div>\n </div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display="block",OrgChart.input.init(this.element);var i=this.instance.leftElement.querySelector("[data-boc-ai-close] svg");i&&i.addEventListener("click",function(t){e.hide()}),this.inputElement=this.element.querySelector("#"+t),this.btnSendElement=this.inputElement.parentNode.querySelector("[data-boc-ai-send]"),this.messagesElement=this.element.querySelector("[data-boc-ai-messages]"),this.inputElement.addEventListener("input",function(e){this.value?this.parentNode.querySelector(".boc-ai-send").classList.add("boc-ai-send-cansend"):this.parentNode.querySelector(".boc-ai-send").classList.remove("boc-ai-send-cansend")}),this.element.querySelector("[data-boc-ai-send]").addEventListener("click",function(t){e.sendUserInput()}),this.inputElement.addEventListener("keyup",function(t){var i=window.event?window.event:t;switch(e.canSetContext||(e.canSetContext=!0,e.instance._ai.setContext()),i.key){case"Enter":e.sendUserInput();break;case"ArrowUp":if((n=OrgChart.aiUI._getSuggestions()).length)-1==(o=n.indexOf(e.inputElement.value))?o=n.length-1:o--,-1==o&&(o=n.length-1),e.inputElement.value=n[o];break;case"ArrowDown":var n,o;if((n=OrgChart.aiUI._getSuggestions()).length)-1==(o=n.indexOf(e.inputElement.value))?o=0:o++,o==n.length&&(o=0),e.inputElement.value=n[o]}})}},OrgChart.aiUI.prototype.addUserMessage=function(e){this.btnSendElement.classList.remove("boc-ai-send-cansend");var t=this.element.querySelector(".boc-ai-start");t&&(t.classList.remove("boc-ai-start"),this.messagesElement.innerHTML="");var i=document.createElement("div");i.classList.add("boc-ai-user-message"),i.innerHTML=`<span class="boc-inner-user-message">${e}</span>`,this.messagesElement.appendChild(i)},OrgChart.aiUI.prototype.hide=function(){this.instance.leftElement.style.display="none",this.element&&(this.element.parentNode.removeChild(this.element),this.element=null)},OrgChart.aiUI.prototype.sendUserInput=function(){var e=this;OrgChart.aiUI._addSuggestion(this.inputElement.value),this.addUserMessage(this.inputElement.value);var t=document.createElement("div");t.classList.add("boc-ai-assistant-message");var i=document.createElement("span");i.classList.add("boc-inner-assistant-message"),t.appendChild(i),this.messagesElement.appendChild(t);var n="";this.instance._ai.prompt(this.inputElement.value,function(t){n+=t,i.innerHTML=marked.parse(n);var o=e.element.querySelector(".boc-ai-middle");o.scrollTo(0,o.scrollHeight)}),this.inputElement.value=""},OrgChart.aiUI._addSuggestion=function(e){e=e.trim();var t=OrgChart.aiUI._getSuggestions(),i=t.indexOf(e);-1!=i&&t.splice(i,1),t.push(e),localStorage.setItem("suggestions",JSON.stringify(t))},OrgChart.aiUI._getSuggestions=function(){var e=localStorage.getItem("suggestions");return e=e?JSON.parse(e):[]},void 0===OrgChart&&(OrgChart={}),OrgChart.events.on("init",function(e,t){if(e.config.keyNavigation&&(window.addEventListener("keydown",function(){e._windowKeyDownHandler.apply(e,[this,arguments[0]])}),OrgChart.isNEU(e._keyNavigationActiveNodeId)&&e.roots&&e.roots.length)){var i=e.roots[0].id;OrgChart.isNEU(e.config.keyNavigation.focusId)||(i=e.config.keyNavigation.focusId),e._keyNavigationActiveNodeId=i,e.center(e._keyNavigationActiveNodeId)}}),OrgChart.prototype._windowKeyDownHandler=function(e,t){for(var i=t.target,n=null;i&&i!=this.element;){if(i.hasAttribute&&i.hasAttribute(OrgChart.attr.node_id)){n=i.getAttribute(OrgChart.attr.node_id);break}i=i.parentNode}if(i){var o=n?this.getNode(n):null,r={node:o,data:n?this.get(n):null,event:t};if(!1!==OrgChart.events.publish("key-down",[this,r])&&o)if("KeyF"==t.code)this.searchUI.find("");else if("ArrowRight"==t.code||o.isAssistant&&"ArrowDown"==t.code||o.isPartner&&"ArrowDown"==t.code){if(s=this.getNode(o.pid)){var a=s.childrenIds.indexOf(o.id);if(++a<s.childrenIds.length){var l=s.childrenIds[a];this._keyNavigationActiveNodeId=l,this.center(l)}}}else if("ArrowLeft"==t.code){if(s=this.getNode(o.pid)){a=s.childrenIds.indexOf(o.id);if(--a>=0){l=s.childrenIds[a];this._keyNavigationActiveNodeId=l,this.center(l)}}}else if("ArrowUp"==t.code){var s;if(s=this.getNode(o.pid)){l=s.id;if(o.isAssistant||s.hasAssistants||o.isPartner||s.hasPartners){a=s.childrenIds.indexOf(o.id);--a>=0&&(l=s.childrenIds[a])}this._keyNavigationActiveNodeId=l,this.center(l)}}else if("ArrowDown"==t.code)o.childrenIds.length&&(this._keyNavigationActiveNodeId=o.childrenIds[0],this.center(o.childrenIds[0]));else if("Space"==t.code){var c=i.getAttribute(OrgChart.attr.node_id);return void this.toggleExpandCollapse(c,t)}}},OrgChart.events.on("redraw",function(e,t){e.config.keyNavigation&&OrgChart._keyNavigation(e)}),OrgChart.events.on("click",function(e,t){e.config&&e.config.keyNavigation&&(e._keyNavigationActiveNodeId=t.node.id,e.center(t.node.id))}),OrgChart._keyNavigation=function(e){var t=e.element.querySelector(":focus");if(t&&t.parentElement&&t.parentElement.hasAttribute(OrgChart.attr.node_id)){var i=t.parentElement;(o=(n=t).querySelector("title"))&&o.parentNode.removeChild(o),n.removeAttribute("tabindex")}if(!OrgChart.isNEU(e._keyNavigationActiveNodeId)&&((i=e.getNodeElement(e._keyNavigationActiveNodeId))&&i.children.length)){var n;(n=i.children[0]).setAttribute("tabindex",2);var o,r={text:"",id:e._keyNavigationActiveNodeId};if(OrgChart.events.publish("screen-reader-text",[e,r]),!OrgChart.isNEU(r.text))(o=document.createElementNS("http://www.w3.org/2000/svg","title")).innerHTML=r.text,n.appendChild(o);OrgChart.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&e.searchUI.hide(),n.focus()}},OrgChart.ui.css=function(){return'<style data-boc-styles>.boc-ai-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-ai-form{color:#aeaeae}.boc-light .boc-ai-form{color:#757575}.boc-ai-messages{font-size:16px}@media screen and (max-width:500px){.boc-ai-form{width:100%}}.boc-dark .boc-ai-form{background-color:#252526}.boc-light .boc-ai-form{background-color:#fff}.boc-ai-button{font-size:32px;position:absolute;top:20px;left:20px;cursor:pointer;padding:12px;border-radius:50%;user-select:none}.boc-dark .boc-ai-button{color:#aeaeae}.boc-light .boc-ai-button{color:#757575}.boc-ai-button:hover{color:#fff;background-color:#039be5}.boc-ai-container{padding:0 14px;display:grid;grid-template-rows:40px auto 80px;gap:10px;height:100%}.boc-ai-container .boc-input input{padding-right:50px}.boc-ai-close{text-align:end;margin-top:20px}.boc-ai-close svg{cursor:pointer}.boc-ai-start{text-align:center;display:flex;justify-content:center;align-items:center;user-select:none}.boc-ai-start span{font-weight:700;font-size:32px;font:"Segoe UI",Arial,sans-serif;background:linear-gradient(90deg,#039be5 28%,#f57c00,#ffca28);color:transparent!important;background-clip:text;display:inline-block;padding:10px 0}.boc-ai-send.boc-ai-send-cansend{cursor:pointer;background-color:#039be5}.boc-ai-send.boc-ai-send-cansend:hover{background-color:#f57c00}.boc-ai-send.boc-ai-send-cansend:active{background-color:#ffca28}.boc-ai-send{background-color:transparent;position:absolute;right:7px;top:7px;width:38px;height:38px;border-radius:50%;text-align:center;background-repeat:no-repeat;background-position:center;background-size:20px 20px}.boc-ai-send svg{display:block;margin:auto;height:100%}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.boc-ai-middle{overflow-y:auto}.boc-ai-middle::-webkit-scrollbar{display:none}.boc-button{background-color:#039be5;cursor:pointer;width:calc(100%);height:50px;color:#fff;padding-top:5px;padding-left:7px;padding-right:7px;text-align:center;text-transform:uppercase;border:1px solid #3fc0ff;display:inline-block;border-radius:5px}.boc-button.orange{background-color:#f57c00;border:1px solid #ffa03e}.boc-button.yellow{background-color:#ffca28;border:1px solid #ffdf7c}.boc-button.lower{text-transform:unset}.boc-button.transparent{background-color:transparent}.boc-button:hover{background-color:#35afea}.boc-button.orange:hover{background-color:#f79632}.boc-button.yellow:hover{background-color:#ffd452}.boc-button:active{transform:matrix(.98,0,0,.98,0,0)}.boc-button-icon{text-align:initial;cursor:pointer;margin-bottom:15px;color:#039be5}.boc-dark .boc-button-icon:hover{background-color:#2d2d2d}.boc-light .boc-button-icon:hover{background-color:#ececec}.boc-button-icon>img{height:24px;width:24px;vertical-align:middle;padding:7px}.boc-button:focus{outline:0}.boc-button-icon>img{filter:invert(46%) sepia(66%) saturate(2530%) hue-rotate(171deg) brightness(95%) contrast(98%)}.boc-light .boc-button.transparent{color:#039be5}.boc-light .boc-button.transparent:hover{color:#fff}.boc-button-loading{background-color:transparent;cursor:pointer;width:calc(100% - 2px);height:50px;color:#fff;text-align:center;text-transform:uppercase;border:1px solid #027cb7;display:inline-block;display:flex;justify-content:center;align-items:center;display:none}.boc-button-loading .boc-loading-dots div{margin:0 10px}.boc-link-boc-button{position:absolute;right:10px;top:-1px}@media screen and (max-width:1000px){.boc-link-boc-button{right:50px}}[data-boc-input-disabled] .boc-link-boc-button{display:none}[dir=rtl] .boc-link-boc-button{left:10px;right:unset}.boc-img-button{width:48px;height:48px;cursor:pointer;border-radius:50%;background-color:#039be5;background-repeat:no-repeat;background-size:24px 24px;background-position:center center;margin:3px;display:inline-block}.boc-img-button:hover{background-color:#f57c00}.boc-checkbox{display:block;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.boc-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.boc-checkbox-checkmark{position:absolute;top:0;left:0;height:25px;width:25px;border-radius:5px}.boc-dark [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-dark [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark,.boc-light [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-light [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#aeaeae!important}[data-boc-input-disabled].boc-checkbox{cursor:default}[dir=rtl] .boc-checkbox-checkmark{right:0}[dir=rtl] .boc-checkbox{padding-left:unset;padding-right:35px}.boc-dark .boc-checkbox-checkmark{background-color:#333;border:1px solid #5b5b5b}.boc-light .boc-checkbox-checkmark{background-color:#fff;border:1px solid #c7c7c7}.boc-dark .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#3c3c3c}.boc-light .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#f8f9f9}.boc-dark .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-light .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-checkbox-checkmark:after{content:"";position:absolute;display:none}.boc-checkbox input:checked~.boc-checkbox-checkmark:after{display:block}.boc-checkbox .boc-checkbox-checkmark:after{left:9px;top:5px;width:5px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.boc-controls{display:flex;gap:7px;position:absolute}.boc-controls-top{left:unset;top:15px;right:50%;bottom:unset;transform:translateX(50%);flex-direction:row}.boc-controls-bottom{left:unset;top:unset;right:50%;bottom:15px;transform:translateX(50%);flex-direction:row}.boc-controls-left{left:15px;top:50%;right:unset;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-right{left:unset;top:50%;right:15px;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-bottom_right,.boc-controls-right_bottom{left:unset;top:unset;right:15px;bottom:15px;flex-direction:row}.boc-controls-right_bottom{flex-direction:column}.boc-controls-right_top,.boc-controls-top_right{left:unset;top:15px;right:15px;bottom:unset;flex-direction:row}.boc-controls-right_top{flex-direction:column}.boc-controls-bottom_left,.boc-controls-left_bottom{left:15px;top:unset;right:unset;bottom:15px;flex-direction:row}.boc-controls-left_bottom{flex-direction:column}.boc-controls-left_top,.boc-controls-top_left{left:15px;top:15px;right:unset;bottom:unset;flex-direction:row}.boc-controls-left_top{flex-direction:column}.boc-controls [data-control-id] svg{display:block;margin:0 auto}.boc-controls [data-control-id]{display:flex;align-items:center;cursor:pointer;width:60px;height:60px;border-radius:30px;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.boc-light .boc-controls [data-control-id]{background:rgba(255,255,255,.2);border:1px solid #c7c7c7}.boc-dark .boc-controls [data-control-id]{background:rgba(30,30,30,.2);border:1px solid #5b5b5b}.boc-controls [data-control-id]:hover{background-color:#0074e8}.boc-controls [data-control-id]:hover svg{filter:brightness(0) invert(1)}.boc-controls [data-control-id].boc-control-selected{background-color:#0074e8}.boc-controls [data-control-id].boc-control-selected svg{filter:brightness(0) invert(1)}.boc-filter{user-select:none}.boc-light .boc-filter{color:#757575}.boc-dark .boc-filter{color:#ccc}.boc-filter>div>div{display:inline-block;padding:3px 10px;cursor:pointer}.boc-filter-menu fieldset,.boc-filter>div,.filter-field-selected{border-radius:5px}.boc-filter-menu fieldset{overflow-y:auto;max-height:300px}.boc-filter>div.boc-filter-menu{padding:10px}.boc-light .boc-filter>div.boc-filter-menu,.boc-light .filter-field-selected{background-color:#f8f9f9}.boc-dark .boc-filter>div.boc-filter-menu,.boc-dark .filter-field-selected{background-color:#3c3c3c}.boc-light .boc-filter>div{background-color:#eee}.boc-dark .boc-filter>div{background-color:#333}.boc-form-perspective{transform-style:preserve-3d;perspective:500px;position:absolute;top:32px}.boc-form{box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;padding:14px;transform-origin:top center;user-select:none;display:none;position:relative;max-height:calc(100vh - 100px);overflow-y:auto;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.boc-form-bottom{border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:5px;border-top-right-radius:5px}.boc-form .separator{margin:0 10px}@media screen and (max-width:1000px){.boc-form-perspective{min-width:100%;max-height:calc(100% - 32px);left:unset!important;right:unset!important;transform:none!important}.boc-form .set{max-height:calc(100vh - 74px)}.boc-form-fieldset{max-width:unset!important}}.boc-light .boc-form .separator{border-bottom:1px solid #c7c7c7}.boc-dark .boc-form .separator{border-bottom:1px solid #5b5b5b}.boc-light .boc-form{background-color:#fff}.boc-dark .boc-form{background-color:#252526}.boc-item{padding:6px 12px 6px 12px;display:flex;flex-direction:row}.boc-light .boc-form .boc-item.selected,.boc-light .boc-form .boc-item:hover{background-color:#0074e8;color:#fff}.boc-dark .boc-form .boc-item.selected,.boc-dark .boc-form .boc-item:hover{background-color:#094771;color:#fff}.boc-item.selected img,.boc-item:hover img{filter:invert(100%)}.boc-item.selected img{visibility:visible!important}.boc-form-fieldset{display:flex;flex-wrap:wrap;margin:0!important}.boc-form-field{flex:1 0 21%;margin:3px;min-width:200px}.boc-form-field-100{flex:1 0 96%;margin:3px;min-width:200px}.boc-input{position:relative}.boc-input>input,.boc-input>select{height:50px;padding:18px 10px 2px 9px;width:100%;box-sizing:border-box;border-style:solid;border-width:1px}.boc-input select{height:50px;padding:20px 5px 4px 5px}[data-boc-input-disabled].boc-input>input,[data-boc-input-disabled].boc-input>select{border-color:transparent!important}.boc-light [data-boc-input-disabled]>input,.boc-light [data-boc-input-disabled]>select{background-color:#fff!important}.boc-dark [data-boc-input-disabled]>input,.boc-dark [data-boc-input-disabled]>select{background-color:#252526!important}[data-boc-input-disabled]>select{appearance:none;padding-left:8px}.boc-input>label{display:inline-block;position:absolute;padding-left:10px;padding-right:10px;color:#acacac;cursor:text;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-ms-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1 ease-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:initial;text-align:initial;white-space:nowrap}.boc-input>label{top:12px;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 14px)}.boc-input>label.focused,.boc-input>label.hasval{top:-1px}.boc-input>input,.boc-input>select{outline:0;border-radius:5px}.boc-dark .boc-input>label.focused,.boc-light .boc-input>label.focused{color:#039be5}.boc-dark .boc-input>input,.boc-dark .boc-input>select{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-input>input,.boc-light .boc-input>select{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-light .boc-input>input:focus,.boc-light .boc-input>select:focus{border-color:#039be5;background-color:#f8f9f9}.boc-dark .boc-input>input:focus,.boc-dark .boc-input>select:focus{border-color:#039be5;background-color:#3c3c3c}.boc-dark .boc-input>input.boc-validation-error,.boc-dark .boc-input>select.boc-validation-error,.boc-light .boc-input>input.boc-validation-error,.boc-light .boc-input>select.boc-validation-error{border-color:#ca2a2a}.boc-dark .boc-validation-error-message,.boc-light .boc-validation-error-message{color:#ca2a2a}.boc-input select.multiple{height:initial}.boc-link{color:#039be5;cursor:pointer;text-decoration:underline}.boc-link:hover{color:#f57c00}.boc-dark ::-webkit-scrollbar,.boc-light ::-webkit-scrollbar{width:15px;height:15px}.boc-dark ::-webkit-scrollbar-corner{background:#1e1e1e}.boc-dark ::-webkit-scrollbar-track{background:#1e1e1e;border-left:1px solid #333;border-top:1px solid #333}.boc-dark ::-webkit-scrollbar-thumb{background:#424242}.boc-dark ::-webkit-scrollbar-thumb:hover{background:#4f4f4f}.boc-dark ::-webkit-scrollbar-thumb:active{background:#5e5e5e}.boc-light ::-webkit-scrollbar-corner{background:#fff}.boc-light ::-webkit-scrollbar-track{background:#fff;border-left:1px solid #ddd;border-top:1px solid #ddd}.boc-light ::-webkit-scrollbar-thumb{background:#c1c1c1}.boc-light ::-webkit-scrollbar-thumb:hover{background:#929292}.boc-light ::-webkit-scrollbar-thumb:active{background:#666}.boc-edit-form{position:fixed;top:0;right:0;height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:1000px){.boc-edit-form{width:100%}}.boc-dark .boc-edit-form{background-color:#252526}.boc-light .boc-edit-form{background-color:#fff}.boc-edit-form-header{height:200px;text-align:center;border-radius:10px}.export-service .boc-edit-form-header{border-radius:unset}.boc-edit-form-title{color:#fff;margin:0;padding:14px 17px 7px 17px}.boc-edit-form-avatar{border-radius:50%;width:150px;height:150px;position:absolute;top:75px;border:5px solid #fff;left:50%;transform:translateX(-50%);background-color:#cacaca;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0}.boc-edit-form-close{position:absolute;right:14px;top:14px;width:34px;height:34px;cursor:pointer}.boc-edit-form-fields{flex-grow:1;overflow-y:auto;overflow-x:hidden}.boc-edit-form-fields-inner{margin:0 7px 20px 7px}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.dark .boc-inner-user-message{background-color:#333}.light .boc-inner-user-message{background-color:#f9f9f9}.boc-export-form{box-shadow:rgba(0,0,0,.2) 0 -6px 6px 0,rgba(0,0,0,.19) 0 -13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-export-form{color:#aeaeae;background-color:#252526}.boc-light .boc-export-form{color:#757575;background-color:#eee}@media screen and (max-width:500px){.boc-export-form{width:100%}}.boc-export-container{display:grid;grid-template-rows:40px auto;gap:10px;height:100%}.boc-export-page{width:100%;border:1px solid #aeaeae;display:flex;justify-content:center;align-items:center;user-select:none;position:relative}.boc-export-selected{border:1px solid #ffca28}.boc-export-middle{overflow-y:auto;overflow-x:hidden;padding:0 3px 0 0;margin-bottom:10px}.boc-export-btns-inner{padding-top:14px;display:flex;justify-content:space-between}.boc-export-left{justify-content:flex-start}.boc-export-right{justify-content:flex-end}.boc-export-left,.boc-export-right{user-select:none}.boc-export-select{position:absolute;top:0;left:0;text-align:center;width:100%}.boc-export-child-buttons{position:absolute;bottom:7px;left:7px;display:none}.boc-export-page:hover .boc-export-child-buttons{display:initial}.boc-export-parent-buttons{position:absolute;top:7px;left:7px;display:none}.boc-export-page:hover .boc-export-parent-buttons{display:initial}.boc-export-remove-buttons{position:absolute;bottom:7px;right:7px;display:none}.boc-export-page:hover .boc-export-remove-buttons{display:initial}.boc-export-child-buttons button,.boc-export-parent-buttons button{width:23px}.boc-export-profiletree-buttons{position:absolute;top:7px;right:7px;display:none}.boc-export-page:hover .boc-export-profiletree-buttons{display:initial}.boc-export-middle-inner{display:grid;gap:10px;margin:0 10px}.boc-export-btns-inner{margin:0 10px}.boc-chart-menu{opacity:0;display:inline-block;position:absolute;text-align:left;user-select:none;min-width:270px;box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif;border-radius:10px}.boc-chart-menu>div:hover img{filter:invert(100%)}.boc-chart-menu [data-item]{text-align:start;padding:7px 10px}.boc-dark .boc-chart-menu [data-item]{background-color:#252526;color:#acacac;border-bottom:1px solid #333}.boc-dark .boc-chart-menu [data-item]:hover{background-color:#094771!important;color:#fff!important}.boc-dark .boc-chart-menu [data-item]:hover svg{filter:brightness(0) invert(1)}.boc-light .boc-chart-menu [data-item]{background-color:#fff;color:#333;border-bottom:1px solid #c7c7c7}.boc-light .boc-chart-menu [data-item]:hover{background-color:#0074e8!important;color:#fff!important}.boc-light .boc-chart-menu [data-item]:hover svg{filter:brightness(0) invert(1)}.boc-chart-menu [data-item] svg{vertical-align:middle}.boc-chart-menu [data-item]:first-child{border-top-left-radius:7px;border-top-right-radius:7px}.boc-chart-menu [data-item]:last-child{border-bottom-width:0;border-bottom-style:none;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.boc-orgscribe-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:500px){.boc-orgscribe-form{width:100%}}.boc-dark .boc-orgscribe-form{background-color:#252526}.boc-light .boc-orgscribe-form{background-color:#fff}.boc-orgscribe-container{padding:0 14px;display:grid;grid-template-rows:40px auto 10px;gap:10px;height:100%}.boc-orgscribe-container .boc-input input{padding-right:50px}.boc-orgscribe-close{text-align:end;margin-top:20px}.boc-orgscribe-close svg{cursor:pointer}.boc-orgscribe-txt{width:100%;height:100%;box-sizing:border-box;border-style:solid;border-width:1px;outline:0;border-radius:5px;font-size:24px}.boc-dark .boc-orgscribe-txt{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-orgscribe-txt{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-search{position:absolute}@media screen and (max-width:500px){.boc-search{width:calc(100% - 30px);left:15px}}.boc-search .boc-input{margin-bottom:0}.boc-search-input{color:#7a7a7a;width:100%;border:none;outline:0;padding-top:10px;padding-right:47px}.boc-search-image-td{width:43px}.boc-search-text-td{padding-inline-end:7px;line-height:15px;text-align:start}.boc-search table{box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;margin:0 3.5px 0 3.5px;width:calc(100% - 7px);border-radius:7px}.boc-search table tr:first-child td:first-child{border-top-left-radius:7px}.boc-search table tr:first-child td:last-child{border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:first-child{border-top-left-radius:unset;border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:last-child{border-top-right-radius:unset;border-top-left-radius:7px}.boc-search table tr:last-child td:first-child{border-bottom-left-radius:7px}.boc-search table tr:last-child td:last-child{border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:first-child{border-bottom-left-radius:unset;border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:last-child{border-bottom-right-radius:unset;border-bottom-left-radius:7px}.boc-dark .boc-search table{background-color:#252526;color:#acacac}.boc-search [data-search-item-id]{cursor:pointer}.boc-search-photo{margin:7px 7px 0 7px;width:32px;height:32px;background-size:cover;background-position:top center;border-radius:50%;display:inline-block;border:1px solid #8c8c8c}.boc-search [data-search-item-id]:hover .boc-link{color:#ffca28}.boc-search [data-search-item-id]:hover .boc-link:hover{color:#f57c00}.boc-dark .boc-search [data-search-item-id] td{border-top:1px solid #333}.boc-dark .boc-search [data-search-item-id]:hover,.boc-dark .boc-search [data-selected=yes]{background-color:#094771;color:#fff}.boc-light .boc-search table{background-color:#fff;color:#333}.boc-light .boc-search [data-search-item-id] td{border-top:1px solid #c7c7c7}.boc-light .boc-search [data-search-item-id]:hover,.boc-light .boc-search [data-selected=yes]{background-color:#0074e8;color:#fff}.boc-search [data-search-item-id]:first-child td{border-top:unset}.boc-ripple-container{position:absolute;top:0;right:0;bottom:0;left:0}.boc-drag-over rect{opacity:.5}.boc-ripple-container span{transform:scale(0);border-radius:100%;position:absolute;opacity:.75;background-color:#fff;animation:boc-ripple 1s}@-moz-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-webkit-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-o-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@keyframes boc-ripple{to{opacity:0;transform:scale(2)}}.boc-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.boc-slider:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.boc-slider.round{border-radius:24px}.boc-slider.round:before{border-radius:50%}svg text:hover{cursor:default}svg.boc-cursor-grab,svg.boc-cursor-grab text:hover{cursor:grab}svg.boc-cursor-nodrop,svg.boc-cursor-nodrop text:hover{cursor:no-drop}svg.boc-cursor-copy,svg.boc-cursor-copy text:hover{cursor:copy}svg.boc-cursor-move,svg.boc-cursor-move text:hover{cursor:move}#boc-close-btn:focus,#boc-close-btn:hover{color:#000;text-decoration:none;cursor:pointer}#boc-id-select:focus{outline:.5px solid #aeaeae}#boc-sampleDialog #title:hover{cursor:default;background:gray}.boc-light{background-color:#fff;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark{background-color:#1e1e1e;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark input,.boc-dark select,.boc-light input,.boc-light select{font:16px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark h1,.boc-light h1{font-size:30px;line-height:1}.boc-light [data-boc-content]::backdrop{background-color:#fff}.boc-dark [data-boc-content]::backdrop{background-color:#1e1e1e}.boc-dark text,.boc-light text{user-select:none}.boc-edit-form{position:absolute;border-radius:10px}.export-service .boc-edit-form{border-radius:unset}.boc-dark .boc-edit-form{color:#acacac}.boc-light .boc-edit-form{color:#333}.boc-dark ::-webkit-calendar-picker-indicator{filter:invert(70%)}.boc-light ::-webkit-calendar-picker-indicator{filter:invert(50%)}.boc-edit-form-instruments{margin:42px 10px 0 10px;text-align:center;min-height:70px}.boc-img-button svg{position:relative;top:12px}.boc-light .boc-toolbar-container svg circle,.boc-light .boc-toolbar-container svg line,.boc-light .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg circle,.boc-dark .boc-toolbar-container svg line,.boc-dark .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg rect{fill:#252526!important}.boc-dark .boc-toolbar-container [data-tlbr=minus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-bottom:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr=plus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-top:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr]>svg{border:1px solid #5b5b5b!important;background-color:#252526!important}.boc-toolbar-layout{height:123px;padding-top:20px;position:absolute;width:100%;left:"0";bottom:"-145px"}.boc-light .boc-toolbar-layout{border-top:1px solid #c7c7c7;background-color:#f9f9f9}.boc-dark .boc-toolbar-layout{border-top:1px solid #5b5b5b;background-color:#2b2b2b}.boc-dotted-connector path{stroke-dasharray:7}.boc-undo-redo{position:absolute;top:23px;left:23px}@media screen and (max-width:500px){.boc-undo-redo{position:absolute;top:83px;left:23px}}.boc-light .boc-undo-redo path{fill:#cacaca}.boc-dark .boc-undo-redo path{fill:#5b5b5b}.boc-light .boc-undo-redo .boc-ur-clickable path{fill:#9c9c9c}.boc-dark .boc-undo-redo .boc-ur-clickable path{fill:#8c8c8c}.boc-undo-redo .boc-ur-clickable rect{cursor:pointer}.boc-undo-redo>span{position:relative;display:inline-block;user-select:none}.boc-undo-redo .boc-undo-i{left:-6px;top:-6px}.boc-undo-redo .boc-redo-i{right:-6px;bottom:6px}.boc-undo-redo>span>span{color:#fff;position:absolute;display:inline-block;min-width:20px;min-height:20px;border-radius:50%;line-height:20px;text-align:center;padding:1px;user-select:none;cursor:pointer}.boc-light .boc-undo-redo>span>span{background-color:#9c9c9c}.boc-dark .boc-undo-redo>span>span{background-color:#8c8c8c}.boc-dark .treelist-pinned{filter:brightness(1.2)}.boc-light .treelist-pinned{filter:brightness(.9)}.boc-light .boc-scroll{fill:#fff}.boc-light .boc-scroll-thumb{fill:#c1c1c1}.boc-light .boc-scroll-thumb:hover{fill:#929292}.boc-dark .boc-scroll{fill:#1e1e1e}.boc-dark .boc-scroll-thumb{fill:#424242}.boc-dark .boc-scroll-thumb:hover{fill:#4f4f4f}</style>'},OrgChart.input={},OrgChart.input._timeout=null,OrgChart.input.initWithTimeout=function(){OrgChart.input._timeout&&(clearTimeout(OrgChart.input._timeout),OrgChart.input._timeout=null),OrgChart.input._timeout=setTimeout(OrgChart.input.init,200)},OrgChart.input.init=function(e){var t;t=e?e.querySelectorAll("[data-boc-input]"):document.querySelectorAll("[data-boc-input]");for(var i=0;i<t.length;i++){var n=t[i],o=null;n.type&&"hidden"==n.type.toLowerCase()&&(o=n),o||(o=n.querySelector("input")),o||(o=n.querySelector("select"));var r=n.querySelector("label");r&&(o.value||"select-one"==o.type&&o.selectedOptions&&o.selectedOptions.length&&""==o.selectedOptions[0].value&&o.selectedOptions[0].innerHTML)&&r.classList.add("hasval"),"checkbox"!=o.type.toLowerCase()&&o.addEventListener("focus",function(){this.classList.remove("boc-validation-error");var e=this.parentNode.querySelector("label");e.classList.add("focused");var t=e.querySelector(".boc-validation-error-message");t&&t.parentNode.removeChild(t)}),"checkbox"!=o.type.toLowerCase()&&o.addEventListener("blur",function(){OrgChart.input.blurHandler(this)})}},OrgChart.input.blurHandler=function(e){var t=e.parentNode.querySelector("label");t.classList.remove("focused"),e.value||"date"==e.type?t.classList.add("hasval"):t.classList.remove("hasval")},OrgChart.input.validate=function(e){var t=null;e.type&&"hidden"==e.type.toLowerCase()&&(t=e),t||(t=e.querySelector("input")),t||(t=e.querySelector("select"));var i=e.querySelector("label");if(t.classList.remove("boc-validation-error"),i){var n=i.querySelector(".boc-validation-error-message");n&&n.parentNode.removeChild(n)}!t.selectedOptions&&t.value&&(t.value=t.value.trim());var o=e.getAttribute("data-v-required"),r=e.getAttribute("data-v-password"),a=e.getAttribute("data-v-email"),l=e.getAttribute("data-v-emails");return o&&""==t.value?(i.innerHTML+='<span class="boc-validation-error-message"> '+o+"</span>",t.classList.add("boc-validation-error"),!1):r&&!OrgChart.input.validatePassword(t.value)?(i.innerHTML+='<span class="boc-validation-error-message"> '+r+"</span>",t.classList.add("boc-validation-error"),!1):a&&!OrgChart.input.isValidEmail(t.value)?(i.innerHTML+='<span class="boc-validation-error-message"> '+a+"</span>",t.classList.add("boc-validation-error"),!1):!(l&&!OrgChart.input.isValidEmails(t.value))||(i.innerHTML+='<span class="boc-validation-error-message"> '+l+"</span>",t.classList.add("boc-validation-error"),!1)},OrgChart.input.validateAndGetData=function(e){for(var t=e.querySelectorAll("[data-boc-input]"),i=!0,n=0;n<t.length;n++){var o=t[n];OrgChart.input.validate(o)||(i=!1)}return!!i&&OrgChart.input.getData(e)},OrgChart.input.getData=function(e){for(var t=e.querySelectorAll("[data-binding]"),i={},n=0;n<t.length;n++){var o=t[n],r=o.getAttribute("data-binding");if("checkbox"==o.type.toLowerCase())i[r]=o.checked;else if(o.selectedOptions&&o.hasAttribute("multiple")){var a=o.selectedOptions;i[r]=Array.from(a).map(({value:e})=>e)}else i[r]=o.value}return i},OrgChart.input.validatePassword=function(e){return e&&(e=e.trim()),!(e.length<5)&&(!(e.length>18)&&-1==e.indexOf(" "))},OrgChart.input.isValidEmails=function(e){if(e)for(var t=e.split(","),i=0;i<t.length;i++){var n=t[i].trim();if(!OrgChart.input.isValidEmail(n))return!1}return!0},OrgChart.input.isValidEmail=function(e){return e&&(e=e.trim()),/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},void 0===OrgChart&&(OrgChart={}),OrgChart.prototype.onField=function(e){return this.on("field",function(t,i){return e.call(t,i)})},OrgChart.prototype.onInit=function(e){return this.on("init",function(t){return e.call(t)})},OrgChart.prototype.onRedraw=function(e){return this.on("redraw",function(t){return e.call(t)})},OrgChart.prototype.onUpdateNode=function(e){return this.on("update",function(t,i,n){var o={oldData:i,newData:n};return e.call(t,o)})},OrgChart.prototype.onUpdated=function(e){return this.on("updated",function(t){return e.call(t)})},OrgChart.prototype.onRemoveNode=function(e){return this.on("remove",function(t,i,n){var o={id:i,newPidsAndStpidsForIds:n};return e.call(t,o)})},OrgChart.prototype.onAddNode=function(e){return this.on("add",function(t,i){var n={data:i};return e.call(t,n)})},OrgChart.prototype.onDrop=function(e){return this.on("drop",function(t,i,n,o,r){var a={dragId:i,dropId:n,dragNodeElement:o,event:r};return e.call(t,a)})},OrgChart.prototype.onDrag=function(e){return this.on("drag",function(t,i,n,o){var r={dragId:i,event:n,nodeIds:o};return e.call(t,r)})},OrgChart.prototype.onExpandCollapseButtonClick=OrgChart.prototype.onExpandCollpaseButtonClick=function(e){return this.on("expcollclick",function(t,i,n,o){var r={collapsing:i,id:n,ids:o};return e.call(t,r)})},OrgChart.prototype.onExportStart=function(e){return this.on("exportstart",function(t,i){return e.call(t,i)})},OrgChart.prototype.onExportEnd=function(e){return this.on("exportend",function(t,i){return e.call(t,i)})},OrgChart.prototype.onNodeClick=function(e){return this.on("click",function(t,i){return e.call(t,i)})},OrgChart.prototype.onCanvasClick=function(e){return this.on("canvas-click",function(t,i){return e.call(t,i)})},OrgChart.prototype.onNodeDoubleClick=function(e){return this.on("dbclick",function(t,i){var n={data:i};return e.call(t,n)})},OrgChart.prototype.onAIToolCalls=function(e){return this.on("ai-tool-calls",function(t,i){return e.call(t,i)})},OrgChart.prototype._dragDropHandler=function(e,t,i){},OrgChart.prototype._movableHandler=function(e,t,i){},void 0===OrgChart&&(OrgChart={}),OrgChart._communityMessages=[],OrgChart._communityAlert=function(){var e=[];for(var t of OrgChart._communityMessages)e.includes(t)||e.push(t);if(e.length){var i=`The following methods and options are not supported in Community Edition:\n\n${e.join("\n")} \n\nDownload the Trial Edition if you want to use the features above.`;alert(i)}},OrgChart._communityMethod=function(e){OrgChart._communityMessages.push(e+" [method]")},OrgChart.manager._community_createNodes=OrgChart.manager._createNodes,OrgChart.manager._createNodes=function(e){var t=e.manager.config,i=e.manager.layoutConfigs;return OrgChart._checkForUnsuportedFeatures(t,i),OrgChart.manager._community_createNodes(e)},OrgChart._checkForUnsuportedFeatures=function(e,t){for(var i of e.nodes){if(i.tags){var n=i.tags.indexOf("assistant");n>-1&&(OrgChart._communityMessages.push("assistant [tag]"),i.tags.splice(n,1)),(n=i.tags.indexOf("partner"))>-1&&(OrgChart._communityMessages.push("partner [tag]"),i.tags.splice(n,1)),(n=i.tags.indexOf("left-partner"))>-1&&(OrgChart._communityMessages.push("left-partner [tag]"),i.tags.splice(n,1)),(n=i.tags.indexOf("right-partner"))>-1&&(OrgChart._communityMessages.push("right-partner [tag]"),i.tags.splice(n,1))}OrgChart.isNEU(i.stpid)||(OrgChart._communityMessages.push("stpid [property]"),i.stpid=void 0)}for(var o in e.slinks&&e.slinks.length&&(OrgChart._communityMessages.push("slinks [option]"),e.slinks=[]),e.clinks&&e.clinks.length&&(OrgChart._communityMessages.push("clinks [option]"),e.clinks=[]),t){var r=t[o];r.layout!=OrgChart.layout.normal&&(OrgChart._communityMessages.push("layout [option]"),r.layout=OrgChart.layout.normal)}},OrgChart.events.on("init",function(e,t){setTimeout(OrgChart._communityAlert,500)}),OrgChart._defaultConfig=function(e){for(var t of["enableDragDrop","enableSearch","enableAI","keyNavigation","miniMap","controls","nodeMenu","nodeCircleMenu","nodeContextMenu","menu","toolbar","showXScroll","showYScroll","searchFields","searchDisplayField","searchFieldsWeight","searchFieldsAbbreviation","movable","serverUrl","state","editForm","showYScroll","showYScroll","filterBy","undoRedoStorageName"])e[t]&&OrgChart._communityMessages.push(t+" [option]");return{interactive:!0,mode:"light",lazyLoading:"auto",enableDragDrop:!1,enableSearch:!1,enableAI:!1,enablePan:!0,keyNavigation:!1,miniMap:!1,controls:null,nodeMenu:null,nodeCircleMenu:null,nodeContextMenu:null,menu:null,toolbar:!1,nodeMouseClick:OrgChart.action.none,nodeMouseDbClick:OrgChart.action.none,mouseScrool:OrgChart.action.ctrlZoom,showXScroll:!1,showYScroll:!1,template:"ana",tags:{},min:!1,nodeBinding:{},linkBinding:{},searchFields:null,searchDisplayField:null,searchFieldsWeight:null,searchFieldsAbbreviation:null,nodes:[],clinks:[],slinks:[],backdrops:[],groupDottedLines:[],dottedLines:[],undoRedoStorageName:null,levelSeparation:60,siblingSeparation:20,subtreeSeparation:40,backdropSeparation:15,mixedHierarchyNodesSeparation:15,assistantSeparation:100,minPartnerSeparation:50,partnerChildrenSplitSeparation:20,partnerNodeSeparation:15,columns:10,padding:30,orientation:OrgChart.orientation.top,layout:OrgChart.layout.normal,layoutGridColumns:"dynamic",scaleInitial:OrgChart.match.boundaryIfOutside,movable:null,scaleMin:.1,scaleMax:5,orderBy:null,editUI:null,aiUI:null,orgScribeUI:null,powerPointPreviewUI:null,pdfPreviewUI:null,svgPreviewUI:null,pngPreviewUI:null,filterUI:null,searchUI:null,xScrollUI:null,yScrollUI:null,nodeMenuUI:null,controlsUI:null,nodeCircleMenuUI:null,nodeContextMenuUI:null,toolbarUI:null,notifierUI:null,menuUI:null,undoRedoUI:null,exportUrl:null,serverUrl:null,aiChatTools:[],collapse:{},expand:{},align:OrgChart.CENTER,UI:null,anim:{func:OrgChart.anim.outPow,duration:200},zoom:{speed:120,smooth:12},roots:null,state:null,editForm:null}},OrgChart.prototype.__mouseScrollHandlerTreeList=function(){},OrgChart.prototype._treeListUpdate=function(){},OrgChart.prototype._treeListIterate2=function(){},OrgChart.prototype._treeListSetPositions=function(){},OrgChart.prototype._treeListThumbMouseDownHandler=function(){},OrgChart.prototype._treeListExpandCollapseHandler=function(e){},void 0===OrgChart&&(OrgChart={}),OrgChart.local={},OrgChart.local._setPositions=function(e,t,i){OrgChart.local._walk(e,t),i()},OrgChart.local._walk=function(e,t){for(var i={minX:null,minY:null,maxX:null,maxY:null},n=[],o=[],r=0;r<e.length;r++){var a=OrgChart.local._getConfig(e[r],t);OrgChart.local._firstWalk(e[r],0,n,o,a)}for(r=0;r<e.length;r++){a=OrgChart.local._getConfig(e[r],t);OrgChart.local._secondWalk(e[r],0,0,0,n,i,a)}},OrgChart.local._firstWalk=function(e,t,i,n,o){var r=null;if(e.x=0,e.y=0,e._prelim=0,e._modifier=0,e.leftNeighbor=null,e.rightNeighbor=null,OrgChart.local._setLevelMaxNodeHeight(e,t,i,o),OrgChart.local._setNeighbors(e,t,n),OrgChart.local._hasChildren(e)&&t!=OrgChart.MAX_DEPTH){for(var a of e.children)OrgChart.local._firstWalk(a,t+1,i,n,o);var l=OrgChart.local._fChild(e),s=e.children[e.children.length-1],c=l._prelim+(s._prelim-l._prelim)/2+OrgChart.local._leftMidPoint(s,o);if(c-=OrgChart.local._mid(e,o),null!=(r=OrgChart.local._getLeftSibling(e))){d=o.siblingSeparation;e._prelim=r._prelim+OrgChart.local._nodeWithPartnersSize(r,o)+d,e._modifier=e._prelim-c,OrgChart.local._apportion(e,t,i,o)}else o.orientation<=3?e._prelim=c:e._prelim=0}else if(null!=(r=OrgChart.local._getLeftSibling(e))){var d=o.siblingSeparation;e._prelim=r._prelim+OrgChart.local._nodeWithPartnersSize(r,o)+d}else e._prelim=0},OrgChart.local._secondWalk=function(e,t,i,n,o,r,a){if(t<=OrgChart.MAX_DEPTH){var l,s,c=e._prelim+i,d=n;switch(l=o[t],s=OrgChart.local._getNodeHeight(e,a),e.x=c,e.y=d,a.orientation){case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:var h=e.x;e.x=e.y,e.y=h}switch(a.orientation){case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:e.y=-e.y-s;break;case OrgChart.orientation.right:case OrgChart.orientation.right_top:e.x=-e.x-s}if(OrgChart._setMinMaxXY(e,r,!0),0!=e.children){var p=a.levelSeparation;OrgChart.local._secondWalk(e.children[0],t+1,i+e._modifier,n+l+p,o,r,a)}var u=OrgChart.local._getRightSibling(e);null!=u&&OrgChart.local._secondWalk(u,t,i,n,o,r,a)}},OrgChart.local._lastWalk=function(e,t,i,n,o){for(var r of(e.x+=t+o[3]-n.minX,e.y+=i+o[0]-n.minY,e.children))OrgChart.local._lastWalk(r,t,i,n,o)},OrgChart.local._apportion=function(e,t,i,n){for(var o=OrgChart.local._fChild(e),r=o.leftNeighbor,a=1,l=OrgChart.MAX_DEPTH-t;null!=o&&null!=r&&a<=l;){for(var s=0,c=0,d=o,h=r,p=0;p<a;p++)d=d.parent,h=h.parent,s+=d._modifier,c+=h._modifier;var u=n.subtreeSeparation;e.leftNeighbor&&e.parent==e.leftNeighbor.parent&&"string"==typeof e.leftNeighbor.id&&-1!=e.leftNeighbor.id.indexOf("_sublevel_layout_")&&(u=n.subtreeSeparation);var f=r._prelim+c+OrgChart.local._nodeWithPartnersSize(r,n)+u-(o._prelim+s);if(f>0){for(var g=e,m=0;null!=g&&g!=h;g=OrgChart.local._getLeftSibling(g))m++;if(null!=g){var x=e,b=f/m;for("string"==typeof x.id&&-1!=x.id.indexOf("_grid_pseudo_node_")&&(b=0);x!=h;x=OrgChart.local._getLeftSibling(x))x._prelim+=f,x._modifier+=f,f-=b}}a++,null!=(o=OrgChart.local._hasChildren(o)?OrgChart.local._fChild(o):OrgChart.local._getLeftmost(e,0,a))&&(r=o.leftNeighbor)}},OrgChart.local._mixedTreeHeight=function(e){e.size+=OrgChart.local._getNodeHeight(e.node,e.config)+e.config.mixedHierarchyNodesSeparation;for(var t=0;t<e.node.children.length;t++)e.node=e.node.children[t],OrgChart.local._mixedTreeHeight(e)},OrgChart.local._setLevelMaxNodeHeight=function(e,t,i,n){null==i[t]&&(i[t]=0);var o=OrgChart.local._getNodeHeight(e,n);i[t]<o&&(i[t]=o)},OrgChart.local._setNeighbors=function(e,t,i){i[t]&&i[t].id===e.id||(e.leftNeighbor=i[t],null!=e.leftNeighbor&&(e.leftNeighbor.rightNeighbor=e),i[t]=e)},OrgChart.local._nodeWithPartnersSize=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h}return 0},OrgChart.local._size=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h}return 0},OrgChart.local._leftMidPoint=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w/2;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h/2}return 0},OrgChart.local._rightMidPoint=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w/2;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h/2}return 0},OrgChart.local._mid=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.w/2;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.h/2}return 0},OrgChart.local._getNodeHeight=function(e,t){switch(t.orientation){case OrgChart.orientation.top:case OrgChart.orientation.top_left:case OrgChart.orientation.bottom:case OrgChart.orientation.bottom_left:return e.h;case OrgChart.orientation.right:case OrgChart.orientation.right_top:case OrgChart.orientation.left:case OrgChart.orientation.left_top:return e.w}return 0},OrgChart.local._getLeftSibling=function(e){return null!=e.leftNeighbor&&e.leftNeighbor.parent==e.parent?e.leftNeighbor:null},OrgChart.local._getRightSibling=function(e){return null!=e.rightNeighbor&&e.rightNeighbor.parent==e.parent?e.rightNeighbor:null},OrgChart.local._getLeftmost=function(e,t,i){if(t>=i)return e;if(!OrgChart.local._hasChildren(e))return null;for(var n of e.children){var o=OrgChart.local._getLeftmost(n,t+1,i);if(null!=o)return o}return null},OrgChart.local._fChild=function(e){return e.children[0]},OrgChart.local._hasChildren=function(e){for(var t=0;t<e.children.length;t++)return!0;return!1},OrgChart.local._getConfig=function(e,t){return t[e.lcn?e.lcn:"base"]},OrgChart.editUI=function(){},OrgChart.editUI.prototype.init=function(){},OrgChart.editUI.prototype.on=function(e,t){return OrgChart._communityMethod("editUI.on"),this},OrgChart.editUI.prototype.show=function(e,t,i){OrgChart._communityMethod("editUI.show")},OrgChart.editUI.prototype.setAvatar=function(e){OrgChart._communityMethod("editUI.setAvatar")},OrgChart.editUI.prototype.hide=function(e){},OrgChart.menuUI=function(){},OrgChart.menuUI.prototype.init=function(){},OrgChart.menuUI.prototype.showStickIn=function(){OrgChart._communityMethod("menuUI.showStickIn")},OrgChart.menuUI.prototype.show=function(){OrgChart._communityMethod("menuUI.show")},OrgChart.menuUI.prototype.isVisible=function(){OrgChart._communityMethod("menuUI.isVisible")},OrgChart.menuUI.prototype.hide=function(){},OrgChart.menuUI.prototype.on=function(){OrgChart._communityMethod("menuUI.on")},OrgChart.controlsUI=function(){},OrgChart.controlsUI.prototype.init=function(){},OrgChart.controlsUI.prototype.show=function(){OrgChart._communityMethod("controlsUI.show")},OrgChart.controlsUI.prototype.hide=function(){OrgChart._communityMethod("controlsUI.hide")},OrgChart.circleMenuUI=function(){},OrgChart.circleMenuUI.prototype.init=function(){},OrgChart.circleMenuUI.prototype.show=function(){OrgChart._communityMethod("circleMenuUI.show")},OrgChart.circleMenuUI.prototype.isVisible=function(){OrgChart._communityMethod("circleMenuUI.isVisible")},OrgChart.circleMenuUI.prototype.hide=function(){},OrgChart.circleMenuUI.prototype.on=function(){return OrgChart._communityMethod("circleMenuUI.on"),this},OrgChart.toolbarUI=function(){},OrgChart.toolbarUI.expandAllIcon="",OrgChart.toolbarUI.fitIcon="",OrgChart.toolbarUI.openFullScreenIcon="",OrgChart.toolbarUI.closeFullScreenIcon="",OrgChart.toolbarUI.zoomInIcon="",OrgChart.toolbarUI.zoomOutIcon="",OrgChart.toolbarUI.layoutIcon="",OrgChart.toolbarUI.prototype.init=function(){},OrgChart.toolbarUI.prototype.showLayout=function(){},OrgChart.toolbarUI.prototype.hideLayout=function(){},OrgChart.prototype.importCSV=function(){OrgChart._communityMethod("importCSV")},OrgChart.prototype.importXML=function(){OrgChart._communityMethod("importXML")},OrgChart.searchUI=function(){},OrgChart.searchUI.prototype.init=function(e){},OrgChart.searchUI.prototype._enterHandler=function(){OrgChart._communityMethod("searchUI._enterHandler")},OrgChart.searchUI.prototype.find=function(e){OrgChart._communityMethod("searchUI.find")},OrgChart.searchUI.prototype.addMatchTag=function(e){},OrgChart.searchUI.prototype.__search=function(){},OrgChart.searchUI.prototype._search=function(){},OrgChart.searchUI.prototype.helpView=function(){OrgChart._communityMethod("searchUI.helpView")},OrgChart.searchUI.createItem=function(e,t,i,n){OrgChart._communityMethod("searchUI.createItem")},OrgChart.searchUI.prototype.hide=function(){OrgChart._communityMethod("searchUI.hide")},OrgChart.searchUI.prototype.on=function(e,t){return OrgChart._communityMethod("searchUI.on"),this},OrgChart.xScrollUI=function(e,t,i,n,o){this.config=t},OrgChart.xScrollUI.prototype.addListener=function(e){},OrgChart.xScrollUI.prototype.create=function(e){},OrgChart.xScrollUI.prototype.setPosition=function(){},OrgChart.yScrollUI=function(e,t,i,n,o){this.config=t},OrgChart.yScrollUI.prototype.addListener=function(e){},OrgChart.yScrollUI.prototype.create=function(e){},OrgChart.yScrollUI.prototype.setPosition=function(){},void 0===OrgChart&&(OrgChart={}),OrgChart.clinkLabelPosition=function(){},OrgChart.clinkCurve=function(){},OrgChart.prototype.addClink=function(){return OrgChart._communityMethod("addClink"),this},OrgChart.prototype.removeClink=function(){return OrgChart._communityMethod("removeClink"),this},OrgChart.clinkTemplates={},OrgChart.clinkTemplates.orange={defs:"",link:"",label:""},OrgChart.clinkTemplates.blue={defs:"",link:"",label:""},OrgChart.clinkTemplates.yellow={defs:"",link:"",label:""},void 0===OrgChart&&(OrgChart={}),OrgChart.prototype._slinks=function(){OrgChart._communityMethod("_slinks")},OrgChart.prototype.addSlink=function(){return OrgChart._communityMethod("addSlink"),this};OrgChart.prototype.removeSlink=function(e,t){return OrgChart._communityMethod("removeSlink"),this},OrgChart.slinkTemplates={},OrgChart.slinkTemplates.orange={defs:"",link:"",label:"",labelPosition:""},OrgChart.slinkTemplates.blue={defs:"",link:"",label:"",labelPosition:""},OrgChart.slinkTemplates.yellow={defs:"",link:"",label:"",labelPosition:""},OrgChart.orgScribeUI=function(){},OrgChart.orgScribeUI.prototype.init=function(e){},OrgChart.orgScribeUI.prototype.isVisible=function(){OrgChart._communityMethod("orgScribeUI.isVisible")},OrgChart.orgScribeUI.prototype.show=function(e,t){OrgChart._communityMethod("orgScribeUI.show")},OrgChart.orgScribeUI.prototype.hide=function(){OrgChart._communityMethod("orgScribeUI.hide")},void 0===OrgChart&&(OrgChart={}),OrgChart.prototype.undo=function(e){OrgChart._communityMethod("undo")},OrgChart.prototype.redo=function(e){OrgChart._communityMethod("redo")},OrgChart.prototype.clearRedo=function(){},OrgChart.prototype.clearUndo=function(){OrgChart._communityMethod("clearUndo")},OrgChart.prototype.undoStepsCount=function(){OrgChart._communityMethod("undoStepsCount")},OrgChart.prototype.redoStepsCount=function(){OrgChart._communityMethod("redoStepsCount")},OrgChart.prototype._putInUndoStack=function(){},OrgChart.prototype._putInRedoStack=function(){},void 0===OrgChart&&(OrgChart={}),OrgChart.undoRedoUI=function(){},OrgChart.undoRedoUI.prototype.init=function(e){},OrgChart.undoRedoUI.prototype.refresh=function(){OrgChart._communityMethod("undoRedoUI.refresh")},OrgChart.undoRedoUI.prototype.on=function(e,t){return OrgChart._communityMethod("undoRedoUI.on"),this},OrgChart.undoRedoUI.prototype.onChange=function(e){OrgChart._communityMethod("undoRedoUI.onChange")},OrgChart.miniMap={},OrgChart.miniMap.colors=[],OrgChart.miniMap.selectorBackgroundColor="",OrgChart.miniMap.backgroundColor="",OrgChart.miniMap.focusStroke="",OrgChart.miniMap.opacity=0,OrgChart.miniMap.border="",OrgChart.miniMap.width=0,OrgChart.miniMap.height=0,OrgChart.miniMap.padding=0,OrgChart.miniMap.position={top:void 0,left:void 0,right:void 0,bottom:void 0},OrgChart.miniMap.draggable=!0,OrgChart.state={},OrgChart.state._buildStateNames=function(e){return{paramScale:e+"-scale",paramX:e+"-x",paramY:e+"-y",paramExp:e+"-exp",paramMin:e+"-min",paramRoots:e+"-roots",paramAdjustify:e+"-adjustify"}},OrgChart.state._put=function(e,t,i,n,o,r,a,l){},OrgChart.state._get=function(e,t,i,n){n(null)},OrgChart.state.clear=function(e){},OrgChart._search={},OrgChart._search.search=function(){OrgChart._communityMethod("searchUI.search")},OrgChart._search.addNodeToResult=function(){OrgChart._communityMethod("searchUI.addNodeToResult")},OrgChart._search.searchAndComputeScore=function(){OrgChart._communityMethod("searchUI.searchAndComputeScore")},OrgChart._search.searchIndexesOf=function(){OrgChart._communityMethod("searchUI.searchIndexesOf")},OrgChart.filterUI=function(){},OrgChart.filterUI.prototype.init=function(e){},OrgChart.filterUI.prototype.addFilterTag=function(e){},OrgChart.filterUI.prototype.show=function(e){OrgChart._communityMethod("filterUI.show")},OrgChart.filterUI.prototype.hide=function(){},OrgChart.filterUI.prototype._removeFilter=function(e){},OrgChart.filterUI.prototype.update=function(){},OrgChart.filterUI.prototype.on=function(e,t){OrgChart._communityMethod("filterUI.on")},OrgChart.filterUI.textFilterBy="",OrgChart.filterUI.all="",OrgChart.prototype.exportToPDFProfile=function(){OrgChart._communityMethod("exportToPDFProfile")},OrgChart.prototype.exportToVisio=function(){OrgChart._communityMethod("exportToVisio")},OrgChart.prototype.exportToPDF=function(){OrgChart._communityMethod("exportToPDF")},OrgChart.prototype.exportToPNG=function(){OrgChart._communityMethod("exportToPNG")},OrgChart.prototype.exportToSVG=function(){OrgChart._communityMethod("exportToSVG")},OrgChart.prototype.exportToPowerPoint=function(){OrgChart._communityMethod("exportToPowerPoint")},OrgChart.exportUI=function(){},OrgChart.exportUI.prototype.init=function(){},OrgChart.exportUI.prototype.show=function(e){OrgChart._communityMethod("exportUI.show")},OrgChart.exportUI.prototype.isVisible=function(){OrgChart._communityMethod("exportUI.isVisible")},OrgChart.exportUI.prototype.hide=function(){},OrgChart.exportUI.prototype.refresh=function(){OrgChart._communityMethod("exportUI.refresh")},OrgChart.exportUI.prototype.toggleLanscape=function(){OrgChart._communityMethod("exportUI.toggleLanscape")},OrgChart.exportUI.prototype.addPage=function(){OrgChart._communityMethod("exportUI.addPage")},OrgChart.exportUI.prototype.removePage=function(){OrgChart._communityMethod("exportUI.removePage")},OrgChart.exportUI.prototype.toggelePrintTreeOrProfile=function(){OrgChart._communityMethod("exportUI.toggelePrintTreeOrProfile")},OrgChart.exportUI.prototype.selectPage=function(e){OrgChart._communityMethod("exportUI.selectPage")};var t=OrgChart;module.exports=t;
|