balkan-orgchart-react-community 9.1.103 → 9.1.104

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/index.es.js CHANGED
@@ -15922,7 +15922,7 @@ u.prototype.init = function(e, t) {
15922
15922
  t._menuClickHandler.apply(t, [this, e]);
15923
15923
  });
15924
15924
  }
15925
- }, u === void 0 && (u = {}), u.VERSION = "9.1.103", u.orientation = {}, u.orientation.top = 0, u.orientation.bottom = 1, u.orientation.right = 2, u.orientation.left = 3, u.orientation.top_left = 4, u.orientation.bottom_left = 5, u.orientation.right_top = 6, u.orientation.left_top = 7, u.anchor = {
15925
+ }, u === void 0 && (u = {}), u.VERSION = "9.1.104", u.orientation = {}, u.orientation.top = 0, u.orientation.bottom = 1, u.orientation.right = 2, u.orientation.left = 3, u.orientation.top_left = 4, u.orientation.bottom_left = 5, u.orientation.right_top = 6, u.orientation.left_top = 7, u.anchor = {
15926
15926
  top_right: "top_right",
15927
15927
  right_top: "right_top",
15928
15928
  bottom_right: "bottom_right",
package/index.umd.js CHANGED
@@ -209,7 +209,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
209
209
  <rect style="display: ${C}" data-treelist-scroll="${f.id}" class="boc-scroll" x="${f.x+f.w-f.padding[1]-h.TREELIST_SCROLLBAR_WIDTH}" y="${f.y+f.padding[0]}" width="${h.TREELIST_SCROLLBAR_WIDTH}" height="${f.h-f.padding[2]-f.padding[0]}"></rect>
210
210
  <rect style="display: ${C}" data-treelist-thumb="${f.id}" class="boc-scroll-thumb" x="${f.x+f.w-f.padding[1]-h.TREELIST_SCROLLBAR_WIDTH}" y="${S}" width="${h.TREELIST_SCROLLBAR_WIDTH}" height="${x}"></rect>
211
211
 
212
- </g>`}}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);f.isTreeListItem||(h.RENDER_LINKS_BEFORE_NODES||(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),o+=i.ui.expandCollapseBtn(i,f,p,i.config,i._layoutConfigs,t,s))}var a={content:o,res:e};if(h.events.publish(`render`,[i,a]),o=a.content,e=a.res,o+=i.ui.lonely(i.config),t===h.action.exporting){var w=e.boundary,T=w.maxX-w.minX,E=w.maxY-w.minY,D=i.ui.svg(T,E,[w.minX,w.minY,T,E],i.config,o,s);r.call(i,D,e);return}(t===h.action.centernode||t===h.action.insert||t===h.action.expand||t===h.action.collapse||t===h.action.update)&&(l=c),t===h.action.init&&c!=null&&(l=c),t===h.action.centerNode&&c!=null&&(l=c),i.response=e,i._lastSize={width:i.width(),height:i.height()};var D=i.ui.svg(`100%`,`100%`,l,i.config,o);if(!i._initialized)i.element.innerHTML=i.ui.css()+D+i.ui.menuButton(i.config)+i.ui.aiButton(i.config),i._attachEventHandlers(),i.xScrollUI.create(i.width(),i.config.padding),i.xScrollUI.setPosition(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.create(i.height(),i.config.padding),i.yScrollUI.setPosition(),i.yScrollUI.addListener(i.getSvg()),i.config.enableSearch&&i.searchUI.init(i),i.aiUI.init(i),i.orgScribeUI.init(i),i.powerPointPreviewUI.init(i),i.pdfPreviewUI.init(i),i.svgPreviewUI.init(i),i.pngPreviewUI.init(i),i.toolbarUI.init(i,i.config.toolbar),i.undoRedoUI.init(i),i.controlsUI.init(i);else{var O=i.getSvg(),k=O.parentNode;k.removeChild(O),k.insertAdjacentHTML(`afterbegin`,D),i._attachEventHandlers(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.addListener(i.getSvg()),i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}var A=!1,j=i.response.animations;if(j[0].length>0){i._hideBeforeAnimation(j[0].length);for(var d=0;d<j[0].length;d++)j[0][d]=i.getNodeElement(j[0][d]);h.animate(j[0],j[1],j[2],i.config.anim.duration,i.config.anim.func,function(){A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)})}t===h.action.centerNode?h.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration,i.config.anim.func,function(){i.ripple(n.options.rippleId),A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)},function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}):c&&i.response&&(c[0]!=i.response.viewBox[0]||c[1]!=i.response.viewBox[1]||c[2]!=i.response.viewBox[2]||c[3]!=i.response.viewBox[3])&&(t===h.action.insert||t===h.action.expand||t===h.action.collapse||t===h.action.update||t===h.action.init)?h.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration*2,i.config.anim.func,function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition(),A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),!0)}):j[0].length==0&&(A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),!0)),i._initialized||(i._initialized=!0,i.filterUI.update(),i._ai.setContext(),h.events.publish(`init`,[i])),!i._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(i._loaded=!0)}},function(e){h.events.publish(`ready`,[i,e])})}},h.prototype._setInitialSizeIfNotSet=function(){this.mainElement.style.overflow=`hidden`,this.mainElement.style.position=`relative`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`100%`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`700px`)),this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`100%`,this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`700px`))},h.prototype.width=function(){return this.element.offsetWidth},h.prototype.height=function(){return this.element.offsetHeight},h.prototype.getViewBox=function(){var e=this.getSvg();return h._getViewBox(e)},h.prototype.setViewBox=function(e){this.getSvg().setAttribute(`viewBox`,e.toString())},h.prototype.getScale=function(e){return e||=this.getViewBox(),h.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},h.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),n=this.width(),r=this.height(),i=n/t[2],a=r/t[3],o=i>a?a:i,s=t,c=t[2],l=t[3];return t[2]/=e/o,t[3]/=e/o,t[0]=s[0]-(t[2]-c)/2,t[1]=s[1]-(t[3]-l)/2,this.setViewBox(t),h.events.publish(`redraw`,[this]),e},h.prototype.ripple=function(e,t,n){var r=this.getNode(e);if(r!=null){var i=this.getNodeElement(e);if(i!=null){var a=this.getScale(),o=r.w/2,s=r.h/2;if(t!==void 0&&n!==void 0){var c=i.getBoundingClientRect();o=t/a-c.left/a,s=n/a-c.top/a}var l=r.w,u=r.h,d=l-o>o?l-o:o,f=u-s>s?u-s:s;d=d,f=f;var p=d>f?d:f,m=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),g=document.createElementNS(`http://www.w3.org/2000/svg`,`clipPath`),_=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`),v=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`),y=h.randomId();g.setAttribute(`id`,y);var b={ripple:h.t(r.templateName,r.min,this.getScale()).ripple,node:r};h.events.publish(`ripple`,[this,b]),_.setAttribute(`x`,b.ripple.rect?b.ripple.rect.x:0),_.setAttribute(`y`,b.ripple.rect?b.ripple.rect.y:0),_.setAttribute(`width`,b.ripple.rect?b.ripple.rect.width:r.w),_.setAttribute(`height`,b.ripple.rect?b.ripple.rect.height:r.h),_.setAttribute(`rx`,b.ripple.radius),_.setAttribute(`ry`,b.ripple.radius),v.setAttribute(`clip-path`,`url(#`+y+`)`),v.setAttribute(`cx`,o),v.setAttribute(`cy`,s),v.setAttribute(`r`,0),v.setAttribute(`fill`,b.ripple.color),v.setAttribute(`class`,`boc-ripple`),g.appendChild(_),m.appendChild(g),m.appendChild(v),i.appendChild(m),h.animate(v,{r:0,opacity:1},{r:p,opacity:0},500,h.anim.outPow,function(){i.removeChild(m)})}}},h.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var n=this;this._centerInNodesTimeout=h.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){n.draw(h.action.update,null,function(){e&&e.call(n)})})}},h.prototype.centerInNodes=function(e,t){var n=this.getViewBox();this._centerInNodes||=JSON.stringify(n);var r=2**53-1,i=-(2**53-1),a=2**53-1,o=-(2**53-1);for(var s of e)s.y<r&&(r=s.y),s.y+s.h>i&&(i=s.y+s.h),s.x<a&&(a=s.x),s.x+s.w>o&&(o=s.x+s.w);var c=o-a,l=i-r,u=c/(c+this.config.padding*2),d=l/(l+this.config.padding*2),f=u>d?d:u;f>this.config.scaleMax&&(f=this.config.scaleMax),f<this.config.scaleMin&&(f=this.config.scaleMin);var p=[50,50],m=this.width(),g=this.height(),u=m/n[2],d=g/n[3],_=u>d?d:u,v=n,y=n[2],b=n[3];n[2]/=f/_,n[3]/=f/_,n[0]=v[0]-(n[2]-y)/(100/p[0]),n[1]=v[1]-(n[3]-b)/(100/p[1]),n[0]=a-(m/f-c)/2,n[1]=r-(g/f-l)/2;var x=this;this._centerInNodesTimeout&&=(clearTimeout(this._centerInNodesTimeout),null),this._centerInNodesTimeout=h.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:n},300,this.config.anim.func,function(){x.draw(h.action.update,null,function(){t&&t.call(x)})})},h.prototype.center=function(e,t,n){var r,i,a=e,o=!0,s=!0;t&&t.parentState!=null&&(r=t.parentState),t&&t.childrenState!=null&&(i=t.childrenState),t&&t.rippleId!=null&&(a=t.rippleId),t&&t.vertical!=null&&(o=t.vertical),t&&t.horizontal!=null&&(s=t.horizontal);var c={parentState:r,childrenState:i,rippleId:a,vertical:o,horizontal:s};this._draw(!1,h.action.centerNode,{id:e,options:c},n)},h.prototype.fit=function(e){this.config.scaleInitial=h.match.boundary,this._draw(!0,h.action.init,{method:`fit`},e)},h.prototype.fitIfOutside=function(e){this.config.scaleInitial=h.match.boundaryIfOutside,this._draw(!0,h.action.init,{method:`fit`},e)},h.prototype.toggleFullScreen=function(){var e=document.querySelector(`[`+h.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=h.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=h.toolbarUI.closeFullScreenIcon))},h.prototype.getNode=function(e){return this.nodes[e]},h.prototype.setLayout=function(e,t){t||=`base`,this._layoutConfigs[t].layout=e,t==`base`&&(this.config.layout=e),this._draw(!1,h.action.update)},h.prototype.setOrientation=function(e,t,n){var r=this;t||=`base`,this._layoutConfigs[t].orientation=e,t==`base`&&(this.config.orientation=e),this._draw(!1,h.action.update,void 0,function(){r.getScale(),h._moveToBoundaryArea(r.getSvg(),r.getViewBox(),r.response.boundary,function(){r._draw(!0,h.action.pan),n&&n()})})},h.prototype.search=function(e,t,n){return h.isNEU(t)&&(t=this.searchUI._searchFields),h.isNEU(n)&&(n=t),h._search.search(this.config.nodes,e,t,n,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},h.prototype._hideBeforeAnimation=function(e){if(this._hideBeforeAnimationCompleted!=1&&!(e&&e<h.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName(`text`);if(t.length>h.TEXT_THRESHOLD)for(var n=0;n<t.length;n++)t[n].style.display=`none`;var r=this.element.getElementsByTagName(`image`);if(r.length>h.IMAGES_THRESHOLD)for(var n=0;n<r.length;n++)r[n].style.display=`none`;var i=this.element.querySelectorAll(`[`+h.attr.link_id+`]`);if(i.length>h.LINKS_THRESHOLD)for(var n=0;n<i.length;n++)i[n].style.display=`none`;var a=this.element.querySelectorAll(`[`+h.attr.control_expcoll_id+`]`);if(a.length>h.BUTTONS_THRESHOLD)for(var n=0;n<a.length;n++)a[n].style.display=`none`;var o=this.element.querySelectorAll(`[`+h.attr.control_up_id+`]`);if(o.length>h.BUTTONS_THRESHOLD)for(var n=0;n<o.length;n++)o[n].style.display=`none`;this._hideBeforeAnimationCompleted=!0}},h.prototype._showAfterAnimation=function(){for(var e=this.element.getElementsByTagName(`text`),t=0;t<e.length;t++)e[t].style.display=``;for(var n=this.element.getElementsByTagName(`image`),t=0;t<n.length;t++)n[t].style.display=``;for(var r=this.element.querySelectorAll(`[`+h.attr.link_id+`]`),t=0;t<r.length;t++)r[t].style.display=``;for(var i=this.element.querySelectorAll(`[`+h.attr.control_expcoll_id+`]`),t=0;t<i.length;t++)i[t].style.display=``;for(var a=this.element.querySelectorAll(`[`+h.attr.control_up_id+`]`),t=0;t<a.length;t++)a[t].style.display=``;this._hideBeforeAnimationCompleted=!1},h.prototype.isChild=function(e,t){for(var n=this.getNode(t);n;){if(n.id==e)return!0;n=n.parent?n.parent:n.stParent}return!1},h.prototype.getCollapsedIds=function(e){for(var t=[],n=0;n<e.childrenIds.length;n++){var r=this.getNode(e.childrenIds[n]);r.collapsed==1&&t.push(r.id)}return t},h.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``},h.prototype.generateId=function(){for(;;){var e=`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4);if(this.nodes==null||!this.nodes.hasOwnProperty(e))return e}},h.prototype.moveNodesToVisibleArea=function(e,t){for(var n=this,r=this.roots[0],i=this.getSvg(),a=this.getViewBox(),o=null,s=null,c=null,l=null,u=0;u<e.length;u++){var d=this.nodes[e[u]];d.x!=null&&d.y!=null&&((o===null||o<d.x+d.w)&&(o=d.x+d.w),(s===null||s<d.y+d.h)&&(s=d.y+d.h),(c===null||c>d.x)&&(c=d.x),(l===null||l>d.y)&&(l=d.y))}if(!(o==null||s==null||c==null||l==null)){var f=this.width(),p=this.height(),m=o-c+this.config.padding*2,g=s-l+this.config.padding*2,_=f/m,v=p/g,y=_>v?v:_,b=Math.ceil(f/y),x=Math.ceil(p/y),m=0,g=0;if(b-this.config.padding*2>=o-c)m=(o+c)/2-b/2;else switch(m=r.x-b/2+h.manager._getNodeWidth(r,this.config)/2,this.config.orientation){case h.orientation.right:case h.orientation.right_top:m=-(b/2-(c-o)/2),m<this.config.padding-b&&(m=this.config.padding-b);break;case h.orientation.left:case h.orientation.bottom_left:case h.orientation.top_left:case h.orientation.left_top:m=-(b/2-(o-c)/2),m>-this.config.padding&&(m=-this.config.padding);break}if(x-this.config.padding*2>=s-l)g=(s+l)/2-x/2;else switch(g=-(x/2-(s-l)/2),g>-this.config.padding&&(g=-this.config.padding),this.config.orientation){case h.orientation.bottom:case h.orientation.bottom_left:g=-(x/2-(l-s)/2),g<this.config.padding-x&&(g=this.config.padding-x);break;case h.orientation.left:case h.orientation.right:g=r.y-x/2+h.manager._getNodeWidth(r,this.config)/2;break}var S=[m,g,b,x];a[0]!==S[0]||a[1]!==S[1]?h.animate(i,{viewBox:a},{viewBox:S},this.config.anim.duration,this.config.anim.func,function(){n.draw(h.action.update,void 0,t)}):t&&t()}},h.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!h.isNEU(e.pid)&&this.getNode(e.pid)},h.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),h.events.removeForEventId(this._event_id),this.element.innerHTML=null},h.prototype.canUpdateLink=function(e,t){if(t==null||t==null||e==null||e==null||e==t)return!1;var n=this.getNode(t),r=this.getNode(e);return n&&r&&(n.isPartner||n.hasPartners&&r.isAssistant||n.hasAssistants&&r.isPartner)?!1:!this.isChild(e,t)},h.prototype._canUpdateLink=h.prototype.canUpdateLink,h.prototype.updateNode=function(e,t,n,r){if(e){var i=this,a=this.get(e.id);if(n===!0&&h.events.publish(`update`,[this,a,e])===!1)return!1;this.update(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update();var o=this.getNode(e.id),s=o.pid;s??=o.stpid,this._draw(!1,h.action.update,{id:s},function(){r||i.ripple(e.id),t&&t()})}},h.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},h.prototype.removeNode=function(e,t,n){if(!this.canRemove(e))return!1;var r=this._getNewPidsAndStpidsForIds(e);return n===!0&&h.events.publish(`remove`,[this,e,r])===!1?!1:(this.remove(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update(),this._draw(!1,h.action.update,null,function(){t&&t()}),!0)},h.prototype.remove=function(e){var t=this.get(e);if(t){this._putInUndoStack(),this.clearRedo();for(var n=this.config.nodes.length-1;n>=0;n--)(this.config.nodes[n].pid==e||this.config.nodes[n].stpid==e)&&(this.config.nodes[n].pid=t.pid,this.config.nodes[n].stpid=t.stpid),this.config.nodes[n].id==e&&this.config.nodes.splice(n,1)}return this},h.prototype._getNewPidsAndStpidsForIds=function(e){var t=this.get(e),n={},r={};if(t)for(var i=this.config.nodes.length-1;i>=0;i--)this.config.nodes[i].pid==e?n[this.config.nodes[i].id]=t.pid:this.config.nodes[i].stpid==e&&(r[this.config.nodes[i].id]=t.stpid);return{newPidsForIds:n,newStpidsForIds:r}},h.prototype.addNode=function(e,t,n){var r=this;if(n===!0&&h.events.publish(`add`,[this,e])===!1)return!1;this.add(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update(),r._draw(!1,h.action.insert,{id:e.pid,insertedNodeId:e.id},function(){r.ripple(e.id),t&&t()})},h.prototype.add=function(e){if(e.id??console.error(`Call addNode without id`),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!h.isNEU(e.pid)){var t=this._get(e.pid);t&&(t.movex!=null&&(e.movex=t.movex),t.movey!=null&&(e.movey=t.movey))}return this.config.nodes.push(e),this},h.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,h.action.update,void 0,t)},h.prototype._replaceIds=function(e){for(var t=function(t){for(var n=0;n<t.length;n++){var r=t[n];for(var i in e){var a=e[i];r.from==i&&(r.from=a),r.to==i&&(r.to=a)}}},n=0;n<this.config.nodes.length;n++){var r=this.config.nodes[n];for(var i in e){var a=e[i];r.id==i&&(r.id=a),r.pid==i&&(r.pid=a),r.stpid==i&&(r.stpid=a),r.ppid==i&&(r.ppid=a)}}if(Array.isArray(this.config.roots))for(var n=0;n<this.config.roots.length;n++)h.isNEU(e[this.config.roots[n]])||(this.config.roots[n]=e[this.config.roots[n]]);if(this.nodes){for(var o in this.nodes)if(!h.isNEU(e[o])){var a=e[o],s=this.nodes[o];s.id=a,this.nodes[a]=s}}if(this.manager.oldNodes){for(var o in this.manager.oldNodes)if(!h.isNEU(e[o])){var a=e[o],s=this.manager.oldNodes[o];s.id=a,this.manager.oldNodes[a]=s}}if(this.roots){for(var o in this.roots)if(!h.isNEU(e[o])){var a=e[o],s=this.roots[o];s.id=a,this.roots[a]=s}}t(this.config.clinks),t(this.config.slinks),t(this.config.groupDottedLines),t(this.config.dottedLines)},h.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!h.isNEU(e)&&typeof e==`string`&&(e.indexOf(`balkan_group_dotted_`)!=-1||e.indexOf(`balkan_dotted_`)!=-1)){e=e.replace(`balkan_group_dotted_`,``),e=e.replace(`balkan_dotted_`,``);var n=e.indexOf(`_balkan_id_`);if(e=e.substring(n+11),t=this.__get(e),t)return t}return null},h.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},h.prototype.get=function(e){var t=this._get(e);return t==null?null:JSON.parse(JSON.stringify(t))},h.prototype.canRemove=function(e){var t=this.getNode(e);return!(!t||t.hasPartners||t.hasAssistants)},h===void 0&&(h={}),h.animate=function(e,t,n,r,i,a,o){var s=10,c=1,l=1,u=r/s+1,d;document.getElementsByTagName(`g`),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);function f(){for(var f=0;f<e.length;f++)for(var p in n[f]){var m=h._arrayContains([`top`,`left`,`right`,`bottom`,`width`,`height`],p.toLowerCase())?`px`:``;switch(p.toLowerCase()){case`d`:var g=i((l*s-s)/r)*(n[f][p][0]-t[f][p][0])+t[f][p][0],_=i((l*s-s)/r)*(n[f][p][1]-t[f][p][1])+t[f][p][1];e[f].setAttribute(`d`,e[f].getAttribute(`d`)+` L`+g+` `+_);break;case`r`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`r`,v);break;case`x1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x1`,v);break;case`x2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x2`,v);break;case`y1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y1`,v);break;case`y2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y2`,v);break;case`scrolltop`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTop=v;break;case`rotate3d`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].style.transform=`rotate3d(`+x.toString()+`deg)`}break;case`transform`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].hasAttribute(`transform`)?e[f].setAttribute(`transform`,`matrix(`+x.toString()+`)`):e[f].style.transform=`matrix(`+x.toString()+`)`}break;case`viewbox`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].setAttribute(`viewBox`,x.toString())}break;case`margin`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];for(var C=``,S=0;S<x.length;S++)C+=parseInt(x[S])+`px `;e[f]&&e[f].style&&(e[f].style[p]=C)}break;case`scrolly`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTo(0,v);break;default:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f]&&e[f].style&&(e[f].style[p]=v+m);break}}if(o){var v=i((l*s-s)/r);o(v)}l+=c,l>u+1&&(clearInterval(d),a&&a(e))}return d=setInterval(f,s),d},h.anim={},h.anim.inPow=function(e){return e<0?0:e>1?1:e**2},h.anim.outPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;var n=t%2==0?-1:1;return n*((e-1)**t+n)},h.anim.inOutPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;if(e*=2,e<1)return h.anim.inPow(e,t)/2;var n=t%2==0?-1:1;return n/2*((e-2)**t+n*2)},h.anim.inSin=function(e){return e<0?0:e>1?1:-Math.cos(Math.PI/2*e)+1},h.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(Math.PI/2*e)},h.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},h.anim.inExp=function(e){return e<0?0:e>1?1:2**(10*(e-1))},h.anim.outExp=function(e){return e<0?0:e>1?1:-(2**(-10*e))+1},h.anim.inOutExp=function(e){return e<0?0:e>1?1:e<.5?.5*2**(10*(2*e-1)):.5*(-(2**(10*(-2*e+1)))+2)},h.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},h.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},h.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)},h.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)},h.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},h.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},h.anim.inOutBack=function(e){return e<0?0:e>1?1:e<.5?.5*(4*e*e*(3.5949*2*e-2.5949)):.5*((2*e-2)*(2*e-2)*(3.5949*(2*e-2)+2.5949)+2)},h.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},h.anim.expPulse=function(e){return Math.exp(-2*e**2)},h===void 0&&(h={}),h.prototype._attachEventHandlers=function(e){if(this.config.interactive){var e=this.getSvg(),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!=h.action.none&&e.addEventListener(`wheel`,function(e){t._mouseScrollHandler.apply(t,[this,e])},{passive:!1});var n=this.getMenuButton();n&&n.addEventListener(`click`,function(e){t._menuClickHandler.apply(t,[this,e])})}},h===void 0&&(h={}),h.VERSION=`9.1.103`,h.orientation={},h.orientation.top=0,h.orientation.bottom=1,h.orientation.right=2,h.orientation.left=3,h.orientation.top_left=4,h.orientation.bottom_left=5,h.orientation.right_top=6,h.orientation.left_top=7,h.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`},h.align={},h.align.center=h.CENTER=8,h.align.orientation=h.ORIENTATION=9,h.attr={},h.attr.l=`data-l`,h.attr.id=`data-id`,h.attr.sl=`data-sl`,h.attr.lbl=`data-lbl`,h.attr.val=`data-val`,h.attr.tlbr=`data-tlbr`,h.attr.item=`data-item`,h.attr.layout=`data-layout`,h.attr.node_id=`data-n-id`,h.attr.link_id=`data-l-id`,h.attr.field_name=`data-f-name`,h.attr.c_link_to=`data-c-l-to`,h.attr.c_link_from=`data-c-l-from`,h.attr.s_link_to=`data-s-l-to`,h.attr.s_link_from=`data-s-l-from`,h.attr.control_add=`data-ctrl-add`,h.attr.control_expcoll_id=`data-ctrl-ec-id`,h.attr.control_up_id=`data-ctrl-up-id`,h.attr.control_export_menu=`data-ctrl-menu`,h.attr.control_node_menu_id=`data-ctrl-n-menu-id`,h.attr.control_node_circle_menu_id=`data-ctrl-n-c-menu-id`,h.attr.control_node_circle_menu_name=`data-ctrl-n-c-menu-name`,h.attr.control_node_circle_menu_wrraper_id=`data-ctrl-n-c-menu-wrapper-id`,h.attr.width=`data-width`,h.attr.text_overflow=`data-text-overflow`,h.ID=`id`,h.PID=`pid`,h.STPID=`stpid`,h.TAGS=`tags`,h.NODES=`nodes`,h.ELASTIC=`elastic`,h.ASSISTANT=`Assistant`,h.action={},h.action.expand=0,h.action.collapse=1,h.action.maximize=101,h.action.minimize=102,h.action.expandCollapse=501,h.action.edit=1,h.action.zoom=2,h.action.ctrlZoom=22,h.action.scroll=41,h.action.xScroll=3,h.action.yScroll=4,h.action.none=5,h.action.init=6,h.action.update=7,h.action.move=70,h.action.pan=8,h.action.centerNode=9,h.action.resize=10,h.action.insert=11,h.action.insertfirst=12,h.action.details=13,h.action.exporting=14,h.none=400001,h.scroll={},h.scroll.visible=!0,h.scroll.smooth=12,h.scroll.speed=120,h.scroll.safari={smooth:12,speed:250},h.match={},h.match.height=100001,h.match.width=100002,h.match.boundary=100003,h.match.boundaryIfOutside=100004,h.match.none=1,h.movable={},h.movable.node=`node`,h.movable.tree=`tree`,h.movable.detachTree=`detachTree`,h.layout={},h.layout.normal=h.normal=0,h.layout.mixed=h.mixed=1,h.layout.tree=h.tree=2,h.layout.treeLeftOffset=h.treeLeftOffset=3,h.layout.treeRightOffset=h.treeRightOffset=4,h.layout.treeLeft=5,h.layout.treeRight=6,h.layout.grid=-1,h.layout.treeList=-2,h.nodeOpenTag=`<g `+h.attr.node_id+`="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" `+h.attr.sl+`="{sl}" `+h.attr.l+`="{level}" {lcn}>`,h.linkOpenTag=`<g `+h.attr.link_id+`="[{id}][{child-id}]" class="{class}">`,h.expcollOpenTag=`<g `+h.attr.control_expcoll_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,h.upOpenTag=`<g `+h.attr.control_up_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,h.linkFieldsOpenTag=`<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">`,h.grCloseTag=`</g>`,h.A5={width:420,height:595},h.A4={width:595,height:842},h.A3={width:842,height:1191},h.A2={width:1191,height:1684},h.A1={width:1684,height:2384},h.Letter={width:612,height:791},h.Legal={width:612,height:1009},h.Legal={width:612,height:1009},h.Widescreen={width:720,height:1280},h.Standard={width:720,height:960},h.COLLAPSE_PARENT_NEIGHBORS=1,h.COLLAPSE_SUB_CHILDRENS=2,h.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,h.TEXT_THRESHOLD=4e3,h.IMAGES_THRESHOLD=1e3,h.LINKS_THRESHOLD=2e3,h.BUTTONS_THRESHOLD=700,h.ANIM_THRESHOLD=500,h.IT_IS_LONELY_HERE=`<g transform="translate(-100, 0)" style="cursor:pointer;" `+h.attr.control_add+`="control-add"><text fill="#039be5">{link}</text></g>`,h.RES={},h.IT_IS_LONELY_HERE_LINK=h.RES.IT_IS_LONELY_HERE_LINK=`It's lonely here, add your first node`,h.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,h.STRING_TAGS=!1,h.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>`,h.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>`,h.SEARCH_PLACEHOLDER=`Search... type ? to get help.`,h.SEARCH_HELP_SYMBOL=`?`,h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,h.SEARCH_RESULT_LIMIT=10,h.IMPORT_MESSAGE=`Choose the columns (fields) in your data file that contain the required information.`,h.FIXED_POSITION_ON_CLICK=!1,h.RENDER_LINKS_BEFORE_NODES=!1,h.RENDER_CLINKS_BEFORE_NODES=!1,h.MIXED_LAYOUT_ALL_NODES=!1,h.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,h.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,h.LINK_ROUNDED_CORNERS=5,h.MOVE_STEP=5,h.CLINK_CURVE=1,h.MAX_DEPTH=200,h.SCALE_FACTOR=1.44,h.LAZY_LOADING_FACTOR=`auto`,h.LAZY_LOADING=!0,h.ARRAY_FIELDS=[`tags`],h.CSV_DELIMITER=`,`,h.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>`,h.ESCAPE_HTML=!1,h.VERTICAL_CHILDREN_ASSISTANT=!1,h.EXPORT_PAGES_CUT_NODES=!1,h.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,h.FILTER_ALPHABETICALLY=!0,h.SERVER_PREFIX=`.azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs`,h.FUNC_URL_NAME=`func-url-orgchartjs`,h.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,h.AI_SYSTEM_MESSAGES=[],h.ORGSCRIBE_OFFSET=` `,h.TREELIST_WHEEL_STEP=`auto`,h.TREELIST_SCROLLBAR_WIDTH=10,h.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,h.REQUEST_CUSTOM_HEADERS={},h.SLINK_GAP=7,h._intersects=function(e,t,n){var r=e.x-n.siblingSeparation/4,i=e.y,a=e.x+e.w+n.siblingSeparation/4,o=e.y;switch(n.orientation){case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:r=e.x,i=e.y-n.siblingSeparation/4,a=e.x,o=e.y+e.h+n.siblingSeparation/4;break}var s=t.p,c=t.q,l=t.r,u=t.s,d=(a-r)*(u-c)-(l-s)*(o-i),f,p;return d===0?!1:(p=((u-c)*(l-r)+(s-l)*(u-i))/d,f=((i-o)*(l-r)+(a-r)*(u-i))/d,0<p&&p<1&&0<f&&f<1)},h._addPoint=function(e,t,n,r,i){switch(n.orientation){case h.orientation.top:case h.orientation.top_left:return h._addPointTop(e,t,n,r,i);case h.orientation.bottom:case h.orientation.bottom_left:return h._addPointBottom(e,t,n,r,i);case h.orientation.left:case h.orientation.left_top:return h._addPointLeft(e,t,n,r,i);case h.orientation.right:case h.orientation.right_top:return h._addPointRight(e,t,n,r,i)}},h._addPointTop=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y-n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},h._addPointBottom=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y+e.h+n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},h._addPointLeft=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x-n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},h._addPointRight=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x+e.w+n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},h._addConnectorLines=function(e,t){h._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),h._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),h._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},h._addConnectorLine=function(e,t){if(t.x1==t.x2){if(e.x[t.x1]||(e.x[t.x1]=[]),t.y1>t.y2){var n=t.y1;t.y1=t.y2,t.y2=n}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 r=t.x1;t.x1=t.x2,t.x2=r}e.y[t.y1].push({x1:t.x1,x2:t.x2})}},h._addLineToPath=function(e,t,n){return h._avoidOverlapping(t,n),e.push([n.x1,n.y1]),e.push([n.x2,n.y2]),h._addConnectorLine(t,n),n},h._slinkRemoveUnusedPoints=function(e){for(var t=e.length-2;t>=1;t--){var n=e[t-1],r=e[t],i=e[t+1];(r[0]==n[0]&&r[0]==i[0]||r[1]==n[1]&&r[1]==i[1])&&e.splice(t,1)}},h._slinkAvoidOverlaping=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){r==h.orientation.top||r==h.orientation.top_left?n==`left`?o[0]-=h.SLINK_GAP:n==`right`&&(o[0]+=h.SLINK_GAP):(r==h.orientation.bottom||r==h.orientation.bottom_left)&&(n==`right`?o[0]+=h.SLINK_GAP:n==`left`&&(o[0]-=h.SLINK_GAP)),c=!1;break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}var u=!0;if(a[1]==o[1]&&a[0]>=o[0]&&(u=!1),u&&a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){a[0]>=o[0]||(r==h.orientation.top||r==h.orientation.top_left?o[1]-=h.SLINK_GAP:(r==h.orientation.bottom||r==h.orientation.bottom_left)&&(o[1]+=h.SLINK_GAP),c=!1);break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}u&&h._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},h._slinkAvoidOverlapingSecond=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[1]==a[1]){for(var s=e.y[a[1]];s;){var c=!0;for(var l of s)if(l.x1<=i[0]&&l.x2>=i[0]||l.x1<=a[0]&&l.x2>=a[0]){i[0]>=a[0]?(n==h.orientation.top||n==h.orientation.top_left?a[1]-=h.SLINK_GAP:(n==h.orientation.bottom||n==h.orientation.bottom_left)&&(a[1]+=h.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.y[a[1]]}i[1]=a[1]}o||h._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},h._slinkAvoidOverlaping2=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){r==h.orientation.left||r==h.orientation.left_top?n==`top`?o[1]-=h.SLINK_GAP:n==`bottom`&&(o[1]+=h.SLINK_GAP):(r==h.orientation.right||r==h.orientation.right_top)&&(n==`bottom`?o[1]+=h.SLINK_GAP:n==`top`&&(o[1]-=h.SLINK_GAP)),c=!1;break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}var u=!0;if(a[0]==o[0]&&a[1]>=o[1]&&(u=!1),u&&a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){a[1]>=o[1]||(r==h.orientation.left||r==h.orientation.left_top?o[0]-=h.SLINK_GAP:(r==h.orientation.right||r==h.orientation.right_top)&&(o[0]+=h.SLINK_GAP),c=!1);break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}u&&h._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},h._slinkAvoidOverlapingSecond2=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[0]==a[0]){for(var s=e.x[a[0]];s;){var c=!0;for(var l of s)if(l.y1<=i[1]&&l.y2>=i[1]||l.y1<=a[1]&&l.y2>=a[1]){i[1]>=a[1]?(n==h.orientation.left||n==h.orientation.left_top?a[0]-=h.SLINK_GAP:(n==h.orientation.right||n==h.orientation.right_top)&&(a[0]+=h.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.x[a[0]]}i[0]=a[0]}o||h._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},h.prototype.getSvg=function(){return this.element.querySelector(`svg`)},h.prototype.getPointerElement=function(){return this.element.querySelector(`g[data-pointer]`)},h.prototype.getNodeElement=function(e){return this.element.querySelector(`[`+h.attr.node_id+`='`+e+`']`)},h.prototype.getMenuButton=function(){return this.element.querySelector(`[`+h.attr.control_export_menu+`]`)},h.notifierUI=function(){},h.notifierUI.prototype.init=function(e){this.obj=e},h.notifierUI.prototype.show=function(e,t){if(e==null)return!1;e==1&&(e=h.MAX_NODES_MESS,t=`#FFCA28`),e==2&&(e=h.OFFLINE_MESS,t=`#FFCA28`);var n=document.createElement(`div`);n.innerHTML=e,Object.assign(n.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(n);var r=this.obj.width()/2-n.offsetWidth/2,i=this.obj.height()/2-n.offsetHeight/2;n.style.left=r+`px`,n.style.top=i+`px`;var a=n.offsetWidth;return n.style.width=`20px`,h.animate(n,{opacity:0,width:10},{opacity:1,width:a},this.obj.config.anim.duration,this.obj.config.anim.func),!0},h===void 0&&(h={}),h.icon={},h.icon.png_export=h.icon.png_preview=h.icon.pngpreview=h.icon.png=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
212
+ </g>`}}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);f.isTreeListItem||(h.RENDER_LINKS_BEFORE_NODES||(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),o+=i.ui.expandCollapseBtn(i,f,p,i.config,i._layoutConfigs,t,s))}var a={content:o,res:e};if(h.events.publish(`render`,[i,a]),o=a.content,e=a.res,o+=i.ui.lonely(i.config),t===h.action.exporting){var w=e.boundary,T=w.maxX-w.minX,E=w.maxY-w.minY,D=i.ui.svg(T,E,[w.minX,w.minY,T,E],i.config,o,s);r.call(i,D,e);return}(t===h.action.centernode||t===h.action.insert||t===h.action.expand||t===h.action.collapse||t===h.action.update)&&(l=c),t===h.action.init&&c!=null&&(l=c),t===h.action.centerNode&&c!=null&&(l=c),i.response=e,i._lastSize={width:i.width(),height:i.height()};var D=i.ui.svg(`100%`,`100%`,l,i.config,o);if(!i._initialized)i.element.innerHTML=i.ui.css()+D+i.ui.menuButton(i.config)+i.ui.aiButton(i.config),i._attachEventHandlers(),i.xScrollUI.create(i.width(),i.config.padding),i.xScrollUI.setPosition(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.create(i.height(),i.config.padding),i.yScrollUI.setPosition(),i.yScrollUI.addListener(i.getSvg()),i.config.enableSearch&&i.searchUI.init(i),i.aiUI.init(i),i.orgScribeUI.init(i),i.powerPointPreviewUI.init(i),i.pdfPreviewUI.init(i),i.svgPreviewUI.init(i),i.pngPreviewUI.init(i),i.toolbarUI.init(i,i.config.toolbar),i.undoRedoUI.init(i),i.controlsUI.init(i);else{var O=i.getSvg(),k=O.parentNode;k.removeChild(O),k.insertAdjacentHTML(`afterbegin`,D),i._attachEventHandlers(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.addListener(i.getSvg()),i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}var A=!1,j=i.response.animations;if(j[0].length>0){i._hideBeforeAnimation(j[0].length);for(var d=0;d<j[0].length;d++)j[0][d]=i.getNodeElement(j[0][d]);h.animate(j[0],j[1],j[2],i.config.anim.duration,i.config.anim.func,function(){A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)})}t===h.action.centerNode?h.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration,i.config.anim.func,function(){i.ripple(n.options.rippleId),A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)},function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}):c&&i.response&&(c[0]!=i.response.viewBox[0]||c[1]!=i.response.viewBox[1]||c[2]!=i.response.viewBox[2]||c[3]!=i.response.viewBox[3])&&(t===h.action.insert||t===h.action.expand||t===h.action.collapse||t===h.action.update||t===h.action.init)?h.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration*2,i.config.anim.func,function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition(),A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),!0)}):j[0].length==0&&(A||=(r&&r.call(i),h.events.publish(`redraw`,[i]),!0)),i._initialized||(i._initialized=!0,i.filterUI.update(),i._ai.setContext(),h.events.publish(`init`,[i])),!i._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(i._loaded=!0)}},function(e){h.events.publish(`ready`,[i,e])})}},h.prototype._setInitialSizeIfNotSet=function(){this.mainElement.style.overflow=`hidden`,this.mainElement.style.position=`relative`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`100%`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`700px`)),this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`100%`,this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`700px`))},h.prototype.width=function(){return this.element.offsetWidth},h.prototype.height=function(){return this.element.offsetHeight},h.prototype.getViewBox=function(){var e=this.getSvg();return h._getViewBox(e)},h.prototype.setViewBox=function(e){this.getSvg().setAttribute(`viewBox`,e.toString())},h.prototype.getScale=function(e){return e||=this.getViewBox(),h.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},h.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),n=this.width(),r=this.height(),i=n/t[2],a=r/t[3],o=i>a?a:i,s=t,c=t[2],l=t[3];return t[2]/=e/o,t[3]/=e/o,t[0]=s[0]-(t[2]-c)/2,t[1]=s[1]-(t[3]-l)/2,this.setViewBox(t),h.events.publish(`redraw`,[this]),e},h.prototype.ripple=function(e,t,n){var r=this.getNode(e);if(r!=null){var i=this.getNodeElement(e);if(i!=null){var a=this.getScale(),o=r.w/2,s=r.h/2;if(t!==void 0&&n!==void 0){var c=i.getBoundingClientRect();o=t/a-c.left/a,s=n/a-c.top/a}var l=r.w,u=r.h,d=l-o>o?l-o:o,f=u-s>s?u-s:s;d=d,f=f;var p=d>f?d:f,m=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),g=document.createElementNS(`http://www.w3.org/2000/svg`,`clipPath`),_=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`),v=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`),y=h.randomId();g.setAttribute(`id`,y);var b={ripple:h.t(r.templateName,r.min,this.getScale()).ripple,node:r};h.events.publish(`ripple`,[this,b]),_.setAttribute(`x`,b.ripple.rect?b.ripple.rect.x:0),_.setAttribute(`y`,b.ripple.rect?b.ripple.rect.y:0),_.setAttribute(`width`,b.ripple.rect?b.ripple.rect.width:r.w),_.setAttribute(`height`,b.ripple.rect?b.ripple.rect.height:r.h),_.setAttribute(`rx`,b.ripple.radius),_.setAttribute(`ry`,b.ripple.radius),v.setAttribute(`clip-path`,`url(#`+y+`)`),v.setAttribute(`cx`,o),v.setAttribute(`cy`,s),v.setAttribute(`r`,0),v.setAttribute(`fill`,b.ripple.color),v.setAttribute(`class`,`boc-ripple`),g.appendChild(_),m.appendChild(g),m.appendChild(v),i.appendChild(m),h.animate(v,{r:0,opacity:1},{r:p,opacity:0},500,h.anim.outPow,function(){i.removeChild(m)})}}},h.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var n=this;this._centerInNodesTimeout=h.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){n.draw(h.action.update,null,function(){e&&e.call(n)})})}},h.prototype.centerInNodes=function(e,t){var n=this.getViewBox();this._centerInNodes||=JSON.stringify(n);var r=2**53-1,i=-(2**53-1),a=2**53-1,o=-(2**53-1);for(var s of e)s.y<r&&(r=s.y),s.y+s.h>i&&(i=s.y+s.h),s.x<a&&(a=s.x),s.x+s.w>o&&(o=s.x+s.w);var c=o-a,l=i-r,u=c/(c+this.config.padding*2),d=l/(l+this.config.padding*2),f=u>d?d:u;f>this.config.scaleMax&&(f=this.config.scaleMax),f<this.config.scaleMin&&(f=this.config.scaleMin);var p=[50,50],m=this.width(),g=this.height(),u=m/n[2],d=g/n[3],_=u>d?d:u,v=n,y=n[2],b=n[3];n[2]/=f/_,n[3]/=f/_,n[0]=v[0]-(n[2]-y)/(100/p[0]),n[1]=v[1]-(n[3]-b)/(100/p[1]),n[0]=a-(m/f-c)/2,n[1]=r-(g/f-l)/2;var x=this;this._centerInNodesTimeout&&=(clearTimeout(this._centerInNodesTimeout),null),this._centerInNodesTimeout=h.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:n},300,this.config.anim.func,function(){x.draw(h.action.update,null,function(){t&&t.call(x)})})},h.prototype.center=function(e,t,n){var r,i,a=e,o=!0,s=!0;t&&t.parentState!=null&&(r=t.parentState),t&&t.childrenState!=null&&(i=t.childrenState),t&&t.rippleId!=null&&(a=t.rippleId),t&&t.vertical!=null&&(o=t.vertical),t&&t.horizontal!=null&&(s=t.horizontal);var c={parentState:r,childrenState:i,rippleId:a,vertical:o,horizontal:s};this._draw(!1,h.action.centerNode,{id:e,options:c},n)},h.prototype.fit=function(e){this.config.scaleInitial=h.match.boundary,this._draw(!0,h.action.init,{method:`fit`},e)},h.prototype.fitIfOutside=function(e){this.config.scaleInitial=h.match.boundaryIfOutside,this._draw(!0,h.action.init,{method:`fit`},e)},h.prototype.toggleFullScreen=function(){var e=document.querySelector(`[`+h.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=h.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=h.toolbarUI.closeFullScreenIcon))},h.prototype.getNode=function(e){return this.nodes[e]},h.prototype.setLayout=function(e,t){t||=`base`,this._layoutConfigs[t].layout=e,t==`base`&&(this.config.layout=e),this._draw(!1,h.action.update)},h.prototype.setOrientation=function(e,t,n){var r=this;t||=`base`,this._layoutConfigs[t].orientation=e,t==`base`&&(this.config.orientation=e),this._draw(!1,h.action.update,void 0,function(){r.getScale(),h._moveToBoundaryArea(r.getSvg(),r.getViewBox(),r.response.boundary,function(){r._draw(!0,h.action.pan),n&&n()})})},h.prototype.search=function(e,t,n){return h.isNEU(t)&&(t=this.searchUI._searchFields),h.isNEU(n)&&(n=t),h._search.search(this.config.nodes,e,t,n,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},h.prototype._hideBeforeAnimation=function(e){if(this._hideBeforeAnimationCompleted!=1&&!(e&&e<h.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName(`text`);if(t.length>h.TEXT_THRESHOLD)for(var n=0;n<t.length;n++)t[n].style.display=`none`;var r=this.element.getElementsByTagName(`image`);if(r.length>h.IMAGES_THRESHOLD)for(var n=0;n<r.length;n++)r[n].style.display=`none`;var i=this.element.querySelectorAll(`[`+h.attr.link_id+`]`);if(i.length>h.LINKS_THRESHOLD)for(var n=0;n<i.length;n++)i[n].style.display=`none`;var a=this.element.querySelectorAll(`[`+h.attr.control_expcoll_id+`]`);if(a.length>h.BUTTONS_THRESHOLD)for(var n=0;n<a.length;n++)a[n].style.display=`none`;var o=this.element.querySelectorAll(`[`+h.attr.control_up_id+`]`);if(o.length>h.BUTTONS_THRESHOLD)for(var n=0;n<o.length;n++)o[n].style.display=`none`;this._hideBeforeAnimationCompleted=!0}},h.prototype._showAfterAnimation=function(){for(var e=this.element.getElementsByTagName(`text`),t=0;t<e.length;t++)e[t].style.display=``;for(var n=this.element.getElementsByTagName(`image`),t=0;t<n.length;t++)n[t].style.display=``;for(var r=this.element.querySelectorAll(`[`+h.attr.link_id+`]`),t=0;t<r.length;t++)r[t].style.display=``;for(var i=this.element.querySelectorAll(`[`+h.attr.control_expcoll_id+`]`),t=0;t<i.length;t++)i[t].style.display=``;for(var a=this.element.querySelectorAll(`[`+h.attr.control_up_id+`]`),t=0;t<a.length;t++)a[t].style.display=``;this._hideBeforeAnimationCompleted=!1},h.prototype.isChild=function(e,t){for(var n=this.getNode(t);n;){if(n.id==e)return!0;n=n.parent?n.parent:n.stParent}return!1},h.prototype.getCollapsedIds=function(e){for(var t=[],n=0;n<e.childrenIds.length;n++){var r=this.getNode(e.childrenIds[n]);r.collapsed==1&&t.push(r.id)}return t},h.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``},h.prototype.generateId=function(){for(;;){var e=`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4);if(this.nodes==null||!this.nodes.hasOwnProperty(e))return e}},h.prototype.moveNodesToVisibleArea=function(e,t){for(var n=this,r=this.roots[0],i=this.getSvg(),a=this.getViewBox(),o=null,s=null,c=null,l=null,u=0;u<e.length;u++){var d=this.nodes[e[u]];d.x!=null&&d.y!=null&&((o===null||o<d.x+d.w)&&(o=d.x+d.w),(s===null||s<d.y+d.h)&&(s=d.y+d.h),(c===null||c>d.x)&&(c=d.x),(l===null||l>d.y)&&(l=d.y))}if(!(o==null||s==null||c==null||l==null)){var f=this.width(),p=this.height(),m=o-c+this.config.padding*2,g=s-l+this.config.padding*2,_=f/m,v=p/g,y=_>v?v:_,b=Math.ceil(f/y),x=Math.ceil(p/y),m=0,g=0;if(b-this.config.padding*2>=o-c)m=(o+c)/2-b/2;else switch(m=r.x-b/2+h.manager._getNodeWidth(r,this.config)/2,this.config.orientation){case h.orientation.right:case h.orientation.right_top:m=-(b/2-(c-o)/2),m<this.config.padding-b&&(m=this.config.padding-b);break;case h.orientation.left:case h.orientation.bottom_left:case h.orientation.top_left:case h.orientation.left_top:m=-(b/2-(o-c)/2),m>-this.config.padding&&(m=-this.config.padding);break}if(x-this.config.padding*2>=s-l)g=(s+l)/2-x/2;else switch(g=-(x/2-(s-l)/2),g>-this.config.padding&&(g=-this.config.padding),this.config.orientation){case h.orientation.bottom:case h.orientation.bottom_left:g=-(x/2-(l-s)/2),g<this.config.padding-x&&(g=this.config.padding-x);break;case h.orientation.left:case h.orientation.right:g=r.y-x/2+h.manager._getNodeWidth(r,this.config)/2;break}var S=[m,g,b,x];a[0]!==S[0]||a[1]!==S[1]?h.animate(i,{viewBox:a},{viewBox:S},this.config.anim.duration,this.config.anim.func,function(){n.draw(h.action.update,void 0,t)}):t&&t()}},h.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!h.isNEU(e.pid)&&this.getNode(e.pid)},h.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),h.events.removeForEventId(this._event_id),this.element.innerHTML=null},h.prototype.canUpdateLink=function(e,t){if(t==null||t==null||e==null||e==null||e==t)return!1;var n=this.getNode(t),r=this.getNode(e);return n&&r&&(n.isPartner||n.hasPartners&&r.isAssistant||n.hasAssistants&&r.isPartner)?!1:!this.isChild(e,t)},h.prototype._canUpdateLink=h.prototype.canUpdateLink,h.prototype.updateNode=function(e,t,n,r){if(e){var i=this,a=this.get(e.id);if(n===!0&&h.events.publish(`update`,[this,a,e])===!1)return!1;this.update(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update();var o=this.getNode(e.id),s=o.pid;s??=o.stpid,this._draw(!1,h.action.update,{id:s},function(){r||i.ripple(e.id),t&&t()})}},h.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},h.prototype.removeNode=function(e,t,n){if(!this.canRemove(e))return!1;var r=this._getNewPidsAndStpidsForIds(e);return n===!0&&h.events.publish(`remove`,[this,e,r])===!1?!1:(this.remove(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update(),this._draw(!1,h.action.update,null,function(){t&&t()}),!0)},h.prototype.remove=function(e){var t=this.get(e);if(t){this._putInUndoStack(),this.clearRedo();for(var n=this.config.nodes.length-1;n>=0;n--)(this.config.nodes[n].pid==e||this.config.nodes[n].stpid==e)&&(this.config.nodes[n].pid=t.pid,this.config.nodes[n].stpid=t.stpid),this.config.nodes[n].id==e&&this.config.nodes.splice(n,1)}return this},h.prototype._getNewPidsAndStpidsForIds=function(e){var t=this.get(e),n={},r={};if(t)for(var i=this.config.nodes.length-1;i>=0;i--)this.config.nodes[i].pid==e?n[this.config.nodes[i].id]=t.pid:this.config.nodes[i].stpid==e&&(r[this.config.nodes[i].id]=t.stpid);return{newPidsForIds:n,newStpidsForIds:r}},h.prototype.addNode=function(e,t,n){var r=this;if(n===!0&&h.events.publish(`add`,[this,e])===!1)return!1;this.add(e),this._ai.setContext(),h.events.publish(`updated`,[this]),this.filterUI.update(),r._draw(!1,h.action.insert,{id:e.pid,insertedNodeId:e.id},function(){r.ripple(e.id),t&&t()})},h.prototype.add=function(e){if(e.id??console.error(`Call addNode without id`),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!h.isNEU(e.pid)){var t=this._get(e.pid);t&&(t.movex!=null&&(e.movex=t.movex),t.movey!=null&&(e.movey=t.movey))}return this.config.nodes.push(e),this},h.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,h.action.update,void 0,t)},h.prototype._replaceIds=function(e){for(var t=function(t){for(var n=0;n<t.length;n++){var r=t[n];for(var i in e){var a=e[i];r.from==i&&(r.from=a),r.to==i&&(r.to=a)}}},n=0;n<this.config.nodes.length;n++){var r=this.config.nodes[n];for(var i in e){var a=e[i];r.id==i&&(r.id=a),r.pid==i&&(r.pid=a),r.stpid==i&&(r.stpid=a),r.ppid==i&&(r.ppid=a)}}if(Array.isArray(this.config.roots))for(var n=0;n<this.config.roots.length;n++)h.isNEU(e[this.config.roots[n]])||(this.config.roots[n]=e[this.config.roots[n]]);if(this.nodes){for(var o in this.nodes)if(!h.isNEU(e[o])){var a=e[o],s=this.nodes[o];s.id=a,this.nodes[a]=s}}if(this.manager.oldNodes){for(var o in this.manager.oldNodes)if(!h.isNEU(e[o])){var a=e[o],s=this.manager.oldNodes[o];s.id=a,this.manager.oldNodes[a]=s}}if(this.roots){for(var o in this.roots)if(!h.isNEU(e[o])){var a=e[o],s=this.roots[o];s.id=a,this.roots[a]=s}}t(this.config.clinks),t(this.config.slinks),t(this.config.groupDottedLines),t(this.config.dottedLines)},h.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!h.isNEU(e)&&typeof e==`string`&&(e.indexOf(`balkan_group_dotted_`)!=-1||e.indexOf(`balkan_dotted_`)!=-1)){e=e.replace(`balkan_group_dotted_`,``),e=e.replace(`balkan_dotted_`,``);var n=e.indexOf(`_balkan_id_`);if(e=e.substring(n+11),t=this.__get(e),t)return t}return null},h.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},h.prototype.get=function(e){var t=this._get(e);return t==null?null:JSON.parse(JSON.stringify(t))},h.prototype.canRemove=function(e){var t=this.getNode(e);return!(!t||t.hasPartners||t.hasAssistants)},h===void 0&&(h={}),h.animate=function(e,t,n,r,i,a,o){var s=10,c=1,l=1,u=r/s+1,d;document.getElementsByTagName(`g`),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);function f(){for(var f=0;f<e.length;f++)for(var p in n[f]){var m=h._arrayContains([`top`,`left`,`right`,`bottom`,`width`,`height`],p.toLowerCase())?`px`:``;switch(p.toLowerCase()){case`d`:var g=i((l*s-s)/r)*(n[f][p][0]-t[f][p][0])+t[f][p][0],_=i((l*s-s)/r)*(n[f][p][1]-t[f][p][1])+t[f][p][1];e[f].setAttribute(`d`,e[f].getAttribute(`d`)+` L`+g+` `+_);break;case`r`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`r`,v);break;case`x1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x1`,v);break;case`x2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x2`,v);break;case`y1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y1`,v);break;case`y2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y2`,v);break;case`scrolltop`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTop=v;break;case`rotate3d`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].style.transform=`rotate3d(`+x.toString()+`deg)`}break;case`transform`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].hasAttribute(`transform`)?e[f].setAttribute(`transform`,`matrix(`+x.toString()+`)`):e[f].style.transform=`matrix(`+x.toString()+`)`}break;case`viewbox`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].setAttribute(`viewBox`,x.toString())}break;case`margin`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];for(var C=``,S=0;S<x.length;S++)C+=parseInt(x[S])+`px `;e[f]&&e[f].style&&(e[f].style[p]=C)}break;case`scrolly`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTo(0,v);break;default:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f]&&e[f].style&&(e[f].style[p]=v+m);break}}if(o){var v=i((l*s-s)/r);o(v)}l+=c,l>u+1&&(clearInterval(d),a&&a(e))}return d=setInterval(f,s),d},h.anim={},h.anim.inPow=function(e){return e<0?0:e>1?1:e**2},h.anim.outPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;var n=t%2==0?-1:1;return n*((e-1)**t+n)},h.anim.inOutPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;if(e*=2,e<1)return h.anim.inPow(e,t)/2;var n=t%2==0?-1:1;return n/2*((e-2)**t+n*2)},h.anim.inSin=function(e){return e<0?0:e>1?1:-Math.cos(Math.PI/2*e)+1},h.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(Math.PI/2*e)},h.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},h.anim.inExp=function(e){return e<0?0:e>1?1:2**(10*(e-1))},h.anim.outExp=function(e){return e<0?0:e>1?1:-(2**(-10*e))+1},h.anim.inOutExp=function(e){return e<0?0:e>1?1:e<.5?.5*2**(10*(2*e-1)):.5*(-(2**(10*(-2*e+1)))+2)},h.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},h.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},h.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)},h.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)},h.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},h.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},h.anim.inOutBack=function(e){return e<0?0:e>1?1:e<.5?.5*(4*e*e*(3.5949*2*e-2.5949)):.5*((2*e-2)*(2*e-2)*(3.5949*(2*e-2)+2.5949)+2)},h.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},h.anim.expPulse=function(e){return Math.exp(-2*e**2)},h===void 0&&(h={}),h.prototype._attachEventHandlers=function(e){if(this.config.interactive){var e=this.getSvg(),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!=h.action.none&&e.addEventListener(`wheel`,function(e){t._mouseScrollHandler.apply(t,[this,e])},{passive:!1});var n=this.getMenuButton();n&&n.addEventListener(`click`,function(e){t._menuClickHandler.apply(t,[this,e])})}},h===void 0&&(h={}),h.VERSION=`9.1.104`,h.orientation={},h.orientation.top=0,h.orientation.bottom=1,h.orientation.right=2,h.orientation.left=3,h.orientation.top_left=4,h.orientation.bottom_left=5,h.orientation.right_top=6,h.orientation.left_top=7,h.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`},h.align={},h.align.center=h.CENTER=8,h.align.orientation=h.ORIENTATION=9,h.attr={},h.attr.l=`data-l`,h.attr.id=`data-id`,h.attr.sl=`data-sl`,h.attr.lbl=`data-lbl`,h.attr.val=`data-val`,h.attr.tlbr=`data-tlbr`,h.attr.item=`data-item`,h.attr.layout=`data-layout`,h.attr.node_id=`data-n-id`,h.attr.link_id=`data-l-id`,h.attr.field_name=`data-f-name`,h.attr.c_link_to=`data-c-l-to`,h.attr.c_link_from=`data-c-l-from`,h.attr.s_link_to=`data-s-l-to`,h.attr.s_link_from=`data-s-l-from`,h.attr.control_add=`data-ctrl-add`,h.attr.control_expcoll_id=`data-ctrl-ec-id`,h.attr.control_up_id=`data-ctrl-up-id`,h.attr.control_export_menu=`data-ctrl-menu`,h.attr.control_node_menu_id=`data-ctrl-n-menu-id`,h.attr.control_node_circle_menu_id=`data-ctrl-n-c-menu-id`,h.attr.control_node_circle_menu_name=`data-ctrl-n-c-menu-name`,h.attr.control_node_circle_menu_wrraper_id=`data-ctrl-n-c-menu-wrapper-id`,h.attr.width=`data-width`,h.attr.text_overflow=`data-text-overflow`,h.ID=`id`,h.PID=`pid`,h.STPID=`stpid`,h.TAGS=`tags`,h.NODES=`nodes`,h.ELASTIC=`elastic`,h.ASSISTANT=`Assistant`,h.action={},h.action.expand=0,h.action.collapse=1,h.action.maximize=101,h.action.minimize=102,h.action.expandCollapse=501,h.action.edit=1,h.action.zoom=2,h.action.ctrlZoom=22,h.action.scroll=41,h.action.xScroll=3,h.action.yScroll=4,h.action.none=5,h.action.init=6,h.action.update=7,h.action.move=70,h.action.pan=8,h.action.centerNode=9,h.action.resize=10,h.action.insert=11,h.action.insertfirst=12,h.action.details=13,h.action.exporting=14,h.none=400001,h.scroll={},h.scroll.visible=!0,h.scroll.smooth=12,h.scroll.speed=120,h.scroll.safari={smooth:12,speed:250},h.match={},h.match.height=100001,h.match.width=100002,h.match.boundary=100003,h.match.boundaryIfOutside=100004,h.match.none=1,h.movable={},h.movable.node=`node`,h.movable.tree=`tree`,h.movable.detachTree=`detachTree`,h.layout={},h.layout.normal=h.normal=0,h.layout.mixed=h.mixed=1,h.layout.tree=h.tree=2,h.layout.treeLeftOffset=h.treeLeftOffset=3,h.layout.treeRightOffset=h.treeRightOffset=4,h.layout.treeLeft=5,h.layout.treeRight=6,h.layout.grid=-1,h.layout.treeList=-2,h.nodeOpenTag=`<g `+h.attr.node_id+`="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" `+h.attr.sl+`="{sl}" `+h.attr.l+`="{level}" {lcn}>`,h.linkOpenTag=`<g `+h.attr.link_id+`="[{id}][{child-id}]" class="{class}">`,h.expcollOpenTag=`<g `+h.attr.control_expcoll_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,h.upOpenTag=`<g `+h.attr.control_up_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,h.linkFieldsOpenTag=`<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">`,h.grCloseTag=`</g>`,h.A5={width:420,height:595},h.A4={width:595,height:842},h.A3={width:842,height:1191},h.A2={width:1191,height:1684},h.A1={width:1684,height:2384},h.Letter={width:612,height:791},h.Legal={width:612,height:1009},h.Legal={width:612,height:1009},h.Widescreen={width:720,height:1280},h.Standard={width:720,height:960},h.COLLAPSE_PARENT_NEIGHBORS=1,h.COLLAPSE_SUB_CHILDRENS=2,h.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,h.TEXT_THRESHOLD=4e3,h.IMAGES_THRESHOLD=1e3,h.LINKS_THRESHOLD=2e3,h.BUTTONS_THRESHOLD=700,h.ANIM_THRESHOLD=500,h.IT_IS_LONELY_HERE=`<g transform="translate(-100, 0)" style="cursor:pointer;" `+h.attr.control_add+`="control-add"><text fill="#039be5">{link}</text></g>`,h.RES={},h.IT_IS_LONELY_HERE_LINK=h.RES.IT_IS_LONELY_HERE_LINK=`It's lonely here, add your first node`,h.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,h.STRING_TAGS=!1,h.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>`,h.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>`,h.SEARCH_PLACEHOLDER=`Search... type ? to get help.`,h.SEARCH_HELP_SYMBOL=`?`,h.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,h.SEARCH_RESULT_LIMIT=10,h.IMPORT_MESSAGE=`Choose the columns (fields) in your data file that contain the required information.`,h.FIXED_POSITION_ON_CLICK=!1,h.RENDER_LINKS_BEFORE_NODES=!1,h.RENDER_CLINKS_BEFORE_NODES=!1,h.MIXED_LAYOUT_ALL_NODES=!1,h.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,h.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,h.LINK_ROUNDED_CORNERS=5,h.MOVE_STEP=5,h.CLINK_CURVE=1,h.MAX_DEPTH=200,h.SCALE_FACTOR=1.44,h.LAZY_LOADING_FACTOR=`auto`,h.LAZY_LOADING=!0,h.ARRAY_FIELDS=[`tags`],h.CSV_DELIMITER=`,`,h.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>`,h.ESCAPE_HTML=!1,h.VERTICAL_CHILDREN_ASSISTANT=!1,h.EXPORT_PAGES_CUT_NODES=!1,h.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,h.FILTER_ALPHABETICALLY=!0,h.SERVER_PREFIX=`.azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs`,h.FUNC_URL_NAME=`func-url-orgchartjs`,h.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,h.AI_SYSTEM_MESSAGES=[],h.ORGSCRIBE_OFFSET=` `,h.TREELIST_WHEEL_STEP=`auto`,h.TREELIST_SCROLLBAR_WIDTH=10,h.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,h.REQUEST_CUSTOM_HEADERS={},h.SLINK_GAP=7,h._intersects=function(e,t,n){var r=e.x-n.siblingSeparation/4,i=e.y,a=e.x+e.w+n.siblingSeparation/4,o=e.y;switch(n.orientation){case h.orientation.right:case h.orientation.right_top:case h.orientation.left:case h.orientation.left_top:r=e.x,i=e.y-n.siblingSeparation/4,a=e.x,o=e.y+e.h+n.siblingSeparation/4;break}var s=t.p,c=t.q,l=t.r,u=t.s,d=(a-r)*(u-c)-(l-s)*(o-i),f,p;return d===0?!1:(p=((u-c)*(l-r)+(s-l)*(u-i))/d,f=((i-o)*(l-r)+(a-r)*(u-i))/d,0<p&&p<1&&0<f&&f<1)},h._addPoint=function(e,t,n,r,i){switch(n.orientation){case h.orientation.top:case h.orientation.top_left:return h._addPointTop(e,t,n,r,i);case h.orientation.bottom:case h.orientation.bottom_left:return h._addPointBottom(e,t,n,r,i);case h.orientation.left:case h.orientation.left_top:return h._addPointLeft(e,t,n,r,i);case h.orientation.right:case h.orientation.right_top:return h._addPointRight(e,t,n,r,i)}},h._addPointTop=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y-n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},h._addPointBottom=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y+e.h+n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},h._addPointLeft=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x-n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},h._addPointRight=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x+e.w+n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},h._addConnectorLines=function(e,t){h._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),h._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),h._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},h._addConnectorLine=function(e,t){if(t.x1==t.x2){if(e.x[t.x1]||(e.x[t.x1]=[]),t.y1>t.y2){var n=t.y1;t.y1=t.y2,t.y2=n}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 r=t.x1;t.x1=t.x2,t.x2=r}e.y[t.y1].push({x1:t.x1,x2:t.x2})}},h._addLineToPath=function(e,t,n){return h._avoidOverlapping(t,n),e.push([n.x1,n.y1]),e.push([n.x2,n.y2]),h._addConnectorLine(t,n),n},h._slinkRemoveUnusedPoints=function(e){for(var t=e.length-2;t>=1;t--){var n=e[t-1],r=e[t],i=e[t+1];(r[0]==n[0]&&r[0]==i[0]||r[1]==n[1]&&r[1]==i[1])&&e.splice(t,1)}},h._slinkAvoidOverlaping=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){r==h.orientation.top||r==h.orientation.top_left?n==`left`?o[0]-=h.SLINK_GAP:n==`right`&&(o[0]+=h.SLINK_GAP):(r==h.orientation.bottom||r==h.orientation.bottom_left)&&(n==`right`?o[0]+=h.SLINK_GAP:n==`left`&&(o[0]-=h.SLINK_GAP)),c=!1;break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}var u=!0;if(a[1]==o[1]&&a[0]>=o[0]&&(u=!1),u&&a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){a[0]>=o[0]||(r==h.orientation.top||r==h.orientation.top_left?o[1]-=h.SLINK_GAP:(r==h.orientation.bottom||r==h.orientation.bottom_left)&&(o[1]+=h.SLINK_GAP),c=!1);break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}u&&h._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},h._slinkAvoidOverlapingSecond=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[1]==a[1]){for(var s=e.y[a[1]];s;){var c=!0;for(var l of s)if(l.x1<=i[0]&&l.x2>=i[0]||l.x1<=a[0]&&l.x2>=a[0]){i[0]>=a[0]?(n==h.orientation.top||n==h.orientation.top_left?a[1]-=h.SLINK_GAP:(n==h.orientation.bottom||n==h.orientation.bottom_left)&&(a[1]+=h.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.y[a[1]]}i[1]=a[1]}o||h._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},h._slinkAvoidOverlaping2=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){r==h.orientation.left||r==h.orientation.left_top?n==`top`?o[1]-=h.SLINK_GAP:n==`bottom`&&(o[1]+=h.SLINK_GAP):(r==h.orientation.right||r==h.orientation.right_top)&&(n==`bottom`?o[1]+=h.SLINK_GAP:n==`top`&&(o[1]-=h.SLINK_GAP)),c=!1;break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}var u=!0;if(a[0]==o[0]&&a[1]>=o[1]&&(u=!1),u&&a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){a[1]>=o[1]||(r==h.orientation.left||r==h.orientation.left_top?o[0]-=h.SLINK_GAP:(r==h.orientation.right||r==h.orientation.right_top)&&(o[0]+=h.SLINK_GAP),c=!1);break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}u&&h._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},h._slinkAvoidOverlapingSecond2=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[0]==a[0]){for(var s=e.x[a[0]];s;){var c=!0;for(var l of s)if(l.y1<=i[1]&&l.y2>=i[1]||l.y1<=a[1]&&l.y2>=a[1]){i[1]>=a[1]?(n==h.orientation.left||n==h.orientation.left_top?a[0]-=h.SLINK_GAP:(n==h.orientation.right||n==h.orientation.right_top)&&(a[0]+=h.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.x[a[0]]}i[0]=a[0]}o||h._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},h.prototype.getSvg=function(){return this.element.querySelector(`svg`)},h.prototype.getPointerElement=function(){return this.element.querySelector(`g[data-pointer]`)},h.prototype.getNodeElement=function(e){return this.element.querySelector(`[`+h.attr.node_id+`='`+e+`']`)},h.prototype.getMenuButton=function(){return this.element.querySelector(`[`+h.attr.control_export_menu+`]`)},h.notifierUI=function(){},h.notifierUI.prototype.init=function(e){this.obj=e},h.notifierUI.prototype.show=function(e,t){if(e==null)return!1;e==1&&(e=h.MAX_NODES_MESS,t=`#FFCA28`),e==2&&(e=h.OFFLINE_MESS,t=`#FFCA28`);var n=document.createElement(`div`);n.innerHTML=e,Object.assign(n.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(n);var r=this.obj.width()/2-n.offsetWidth/2,i=this.obj.height()/2-n.offsetHeight/2;n.style.left=r+`px`,n.style.top=i+`px`;var a=n.offsetWidth;return n.style.width=`20px`,h.animate(n,{opacity:0,width:10},{opacity:1,width:a},this.obj.config.anim.duration,this.obj.config.anim.func),!0},h===void 0&&(h={}),h.icon={},h.icon.png_export=h.icon.png_preview=h.icon.pngpreview=h.icon.png=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
213
213
  <path fill="${n}" 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"/>
214
214
  <path fill="${n}" 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"/>
215
215
  </svg>`},h.icon.pdf_export=h.icon.pdf_preview=h.icon.pdfpreview=h.icon.pdf=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "url": "git+https://github.com/BALKANGraph/OrgChartReact-Community.git"
55
55
  },
56
56
  "dependencies": {
57
- "balkan-orgchart-js-community": "^9.1.103"
57
+ "balkan-orgchart-js-community": "^9.1.104"
58
58
  },
59
- "version": "9.1.103"
59
+ "version": "9.1.104"
60
60
  }