vue3-organization-chart
Version:

2 lines • 34.4 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["orgchart"]=e(require("vue")):t["orgchart"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),o=r("toStringTag"),c={};c[o]="z",t.exports="[object z]"===String(c)},"06cf":function(t,e,n){var r=n("83ab"),o=n("c65b"),c=n("d1e7"),a=n("5c6c"),i=n("fc6a"),u=n("a04b"),s=n("1a2d"),f=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=i(t),e=u(e),f)try{return l(t,e)}catch(n){}if(s(t,e))return a(!o(c.f,t,e),t[e])}},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"0cfb":function(t,e,n){var r=n("83ab"),o=n("d039"),c=n("cc12");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(t,e,n){var r=n("da84"),o=r.String;t.exports=function(t){try{return o(t)}catch(e){return"Object"}}},"107c":function(t,e,n){var r=n("d039"),o=n("da84"),c=o.RegExp;t.exports=r((function(){var t=c("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},1276:function(t,e,n){"use strict";var r=n("2ba4"),o=n("c65b"),c=n("e330"),a=n("d784"),i=n("44e7"),u=n("825a"),s=n("1d80"),f=n("4840"),l=n("8aa5"),d=n("50c4"),p=n("577e"),b=n("dc4a"),v=n("4dae"),h=n("14c3"),g=n("9263"),m=n("9f7f"),y=n("d039"),x=m.UNSUPPORTED_Y,O=4294967295,j=Math.min,E=[].push,S=c(/./.exec),w=c(E),I=c("".slice),N=!y((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(t,e,n){var c;return c="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var c=p(s(this)),a=void 0===n?O:n>>>0;if(0===a)return[];if(void 0===t)return[c];if(!i(t))return o(e,c,t,a);var u,f,l,d=[],b=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,m=new RegExp(t.source,b+"g");while(u=o(g,m,c)){if(f=m.lastIndex,f>h&&(w(d,I(c,h,u.index)),u.length>1&&u.index<c.length&&r(E,d,v(u,1)),l=u[0].length,h=f,d.length>=a))break;m.lastIndex===u.index&&m.lastIndex++}return h===c.length?!l&&S(m,"")||w(d,""):w(d,I(c,h)),d.length>a?v(d,0,a):d}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:o(e,this,t,n)}:e,[function(e,n){var r=s(this),a=void 0==e?void 0:b(e,t);return a?o(a,e,r,n):o(c,p(r),e,n)},function(t,r){var o=u(this),a=p(t),i=n(c,o,a,r,c!==e);if(i.done)return i.value;var s=f(o,RegExp),b=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(x?"g":"y"),g=new s(x?"^(?:"+o.source+")":o,v),m=void 0===r?O:r>>>0;if(0===m)return[];if(0===a.length)return null===h(g,a)?[a]:[];var y=0,E=0,S=[];while(E<a.length){g.lastIndex=x?0:E;var N,T=h(g,x?I(a,E):a);if(null===T||(N=j(d(g.lastIndex+(x?E:0)),a.length))===y)E=l(a,E,b);else{if(w(S,I(a,y,E)),S.length===m)return S;for(var k=1;k<=T.length-1;k++)if(w(S,T[k]),S.length===m)return S;E=y=N}}return w(S,I(a,y)),S}]}),!N,x)},"14c3":function(t,e,n){var r=n("da84"),o=n("c65b"),c=n("825a"),a=n("1626"),i=n("c6b6"),u=n("9263"),s=r.TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var r=o(n,t,e);return null!==r&&c(r),r}if("RegExp"===i(t))return o(u,t,e);throw s("RegExp#exec called on incompatible receiver")}},1626:function(t,e){t.exports=function(t){return"function"==typeof t}},"1a2d":function(t,e,n){var r=n("e330"),o=n("7b0b"),c=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return c(o(t),e)}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1d80":function(t,e,n){var r=n("da84"),o=r.TypeError;t.exports=function(t){if(void 0==t)throw o("Can't call method on "+t);return t}},"23cb":function(t,e,n){var r=n("5926"),o=Math.max,c=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):c(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,c=n("9112"),a=n("6eeb"),i=n("ce4e"),u=n("e893"),s=n("94ca");t.exports=function(t,e){var n,f,l,d,p,b,v=t.target,h=t.global,g=t.stat;if(f=h?r:g?r[v]||i(v,{}):(r[v]||{}).prototype,f)for(l in e){if(p=e[l],t.noTargetGet?(b=o(f,l),d=b&&b.value):d=f[l],n=s(h?l:v+(g?".":"#")+l,t.forced),!n&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(t.sham||d&&d.sham)&&c(p,"sham",!0),a(f,l,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),c=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,c)}},"2ba4":function(t,e,n){var r=n("40d5"),o=Function.prototype,c=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(c):function(){return a.apply(c,arguments)})},"2d00":function(t,e,n){var r,o,c=n("da84"),a=n("342f"),i=c.process,u=c.Deno,s=i&&i.versions||u&&u.version,f=s&&s.v8;f&&(r=f.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"37e8":function(t,e,n){var r=n("83ab"),o=n("aed9"),c=n("9bf2"),a=n("825a"),i=n("fc6a"),u=n("df75");e.f=r&&!o?Object.defineProperties:function(t,e){a(t);var n,r=i(e),o=u(e),s=o.length,f=0;while(s>f)c.f(t,n=o[f++],r[n]);return t}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("da84"),o=n("1626"),c=r.String,a=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw a("Can't set "+c(t)+" as a prototype")}},"408a":function(t,e,n){var r=n("e330");t.exports=r(1..valueOf)},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"44ad":function(t,e,n){var r=n("da84"),o=n("e330"),c=n("d039"),a=n("c6b6"),i=r.Object,u=o("".split);t.exports=c((function(){return!i("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?u(t,""):i(t)}:i},"44e7":function(t,e,n){var r=n("861d"),o=n("c6b6"),c=n("b622"),a=c("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},4840:function(t,e,n){var r=n("825a"),o=n("5087"),c=n("b622"),a=c("species");t.exports=function(t,e){var n,c=r(t).constructor;return void 0===c||void 0==(n=r(c)[a])?e:o(n)}},"485a":function(t,e,n){var r=n("da84"),o=n("c65b"),c=n("1626"),a=n("861d"),i=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&c(n=t.toString)&&!a(r=o(n,t)))return r;if(c(n=t.valueOf)&&!a(r=o(n,t)))return r;if("string"!==e&&c(n=t.toString)&&!a(r=o(n,t)))return r;throw i("Can't convert object to primitive value")}},4930:function(t,e,n){var r=n("2d00"),o=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"4bb8":function(t,e,n){},"4d64":function(t,e,n){var r=n("fc6a"),o=n("23cb"),c=n("07fa"),a=function(t){return function(e,n,a){var i,u=r(e),s=c(u),f=o(a,s);if(t&&n!=n){while(s>f)if(i=u[f++],i!=i)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4dae":function(t,e,n){var r=n("da84"),o=n("23cb"),c=n("07fa"),a=n("8418"),i=r.Array,u=Math.max;t.exports=function(t,e,n){for(var r=c(t),s=o(e,r),f=o(void 0===n?r:n,r),l=i(u(f-s,0)),d=0;s<f;s++,d++)a(l,d,t[s]);return l.length=d,l}},5087:function(t,e,n){var r=n("da84"),o=n("68ee"),c=n("0d51"),a=r.TypeError;t.exports=function(t){if(o(t))return t;throw a(c(t)+" is not a constructor")}},"50c4":function(t,e,n){var r=n("5926"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),o=n("e330"),c=n("241c"),a=n("7418"),i=n("825a"),u=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=c.f(i(t)),n=a.f;return n?u(e,n(t)):e}},"577e":function(t,e,n){var r=n("da84"),o=n("f5df"),c=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return c(t)}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("e330"),o=n("1d80"),c=n("577e"),a=n("5899"),i=r("".replace),u="["+a+"]",s=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t){return function(e){var n=c(o(e));return 1&t&&(n=i(n,s,"")),2&t&&(n=i(n,f,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},5926:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!==e||0===e?0:(e>0?r:n)(e)}},"59ed":function(t,e,n){var r=n("da84"),o=n("1626"),c=n("0d51"),a=r.TypeError;t.exports=function(t){if(o(t))return t;throw a(c(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,n){var r=n("83ab"),o=n("1a2d"),c=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,i=o(c,"name"),u=i&&"something"===function(){}.name,s=i&&(!r||r&&a(c,"name").configurable);t.exports={EXISTS:i,PROPER:u,CONFIGURABLE:s}},6547:function(t,e,n){var r=n("e330"),o=n("5926"),c=n("577e"),a=n("1d80"),i=r("".charAt),u=r("".charCodeAt),s=r("".slice),f=function(t){return function(e,n){var r,f,l=c(a(e)),d=o(n),p=l.length;return d<0||d>=p?t?"":void 0:(r=u(l,d),r<55296||r>56319||d+1===p||(f=u(l,d+1))<56320||f>57343?t?i(l,d):r:t?s(l,d,d+2):f-56320+(r-55296<<10)+65536)}};t.exports={codeAt:f(!1),charAt:f(!0)}},6830:function(t,e,n){"use strict";n("4bb8")},"68ee":function(t,e,n){var r=n("e330"),o=n("d039"),c=n("1626"),a=n("f5df"),i=n("d066"),u=n("8925"),s=function(){},f=[],l=i("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=r(d.exec),b=!d.exec(s),v=function(t){if(!c(t))return!1;try{return l(s,f,t),!0}catch(e){return!1}},h=function(t){if(!c(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!p(d,u(t))}catch(e){return!0}};h.sham=!0,t.exports=!l||o((function(){var t;return v(v.call)||!v(Object)||!v((function(){t=!0}))||t}))?h:v},"69f3":function(t,e,n){var r,o,c,a=n("7f9a"),i=n("da84"),u=n("e330"),s=n("861d"),f=n("9112"),l=n("1a2d"),d=n("c6cd"),p=n("f772"),b=n("d012"),v="Object already initialized",h=i.TypeError,g=i.WeakMap,m=function(t){return c(t)?o(t):r(t,{})},y=function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}};if(a||d.state){var x=d.state||(d.state=new g),O=u(x.get),j=u(x.has),E=u(x.set);r=function(t,e){if(j(x,t))throw new h(v);return e.facade=t,E(x,t,e),e},o=function(t){return O(x,t)||{}},c=function(t){return j(x,t)}}else{var S=p("state");b[S]=!0,r=function(t,e){if(l(t,S))throw new h(v);return e.facade=t,f(t,S,e),e},o=function(t){return l(t,S)?t[S]:{}},c=function(t){return l(t,S)}}t.exports={set:r,get:o,has:c,enforce:m,getterFor:y}},"6eeb":function(t,e,n){var r=n("da84"),o=n("1626"),c=n("1a2d"),a=n("9112"),i=n("ce4e"),u=n("8925"),s=n("69f3"),f=n("5e77").CONFIGURABLE,l=s.get,d=s.enforce,p=String(String).split("String");(t.exports=function(t,e,n,u){var s,l=!!u&&!!u.unsafe,b=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,h=u&&void 0!==u.name?u.name:e;o(n)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!c(n,"name")||f&&n.name!==h)&&a(n,"name",h),s=d(n),s.source||(s.source=p.join("string"==typeof h?h:""))),t!==r?(l?!v&&t[e]&&(b=!0):delete t[e],b?t[e]=n:a(t,e,n)):b?t[e]=n:i(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||u(this)}))},7156:function(t,e,n){var r=n("1626"),o=n("861d"),c=n("d2bb");t.exports=function(t,e,n){var a,i;return c&&r(a=e.constructor)&&a!==n&&o(i=a.prototype)&&i!==n.prototype&&c(t,i),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("da84"),o=n("1d80"),c=r.Object;t.exports=function(t){return c(o(t))}},"7c73":function(t,e,n){var r,o=n("825a"),c=n("37e8"),a=n("7839"),i=n("d012"),u=n("1be4"),s=n("cc12"),f=n("f772"),l=">",d="<",p="prototype",b="script",v=f("IE_PROTO"),h=function(){},g=function(t){return d+b+l+t+d+"/"+b+l},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=s("iframe"),n="java"+b+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},x=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}x="undefined"!=typeof document?document.domain&&r?m(r):y():m(r);var t=a.length;while(t--)delete x[p][a[t]];return x()};i[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[p]=o(t),n=new h,h[p]=null,n[v]=t):n=x(),void 0===e?n:c.f(n,e)}},"7f9a":function(t,e,n){var r=n("da84"),o=n("1626"),c=n("8925"),a=r.WeakMap;t.exports=o(a)&&/native code/.test(c(a))},"825a":function(t,e,n){var r=n("da84"),o=n("861d"),c=r.String,a=r.TypeError;t.exports=function(t){if(o(t))return t;throw a(c(t)+" is not an object")}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("a04b"),o=n("9bf2"),c=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,c(0,n)):t[a]=n}},"861d":function(t,e,n){var r=n("1626");t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},8875:function(t,e,n){var r,o,c;(function(n,a){o=[],r=a,c="function"===typeof r?r.apply(e,o):r,void 0===c||(t.exports=c)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,o,c=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,i=c.exec(p.stack)||a.exec(p.stack),u=i&&i[1]||!1,s=i&&i[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<l.length;d++){if("interactive"===l[d].readyState)return l[d];if(l[d].src===u)return l[d];if(u===f&&l[d].innerHTML&&l[d].innerHTML.trim()===o)return l[d]}return null}}return t}))},8925:function(t,e,n){var r=n("e330"),o=n("1626"),c=n("c6cd"),a=r(Function.toString);o(c.inspectSource)||(c.inspectSource=function(t){return a(t)}),t.exports=c.inspectSource},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8bbf":function(e,n){e.exports=t},"90e3":function(t,e,n){var r=n("e330"),o=0,c=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+c,36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),c=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t}},9263:function(t,e,n){"use strict";var r=n("c65b"),o=n("e330"),c=n("577e"),a=n("ad6d"),i=n("9f7f"),u=n("5692"),s=n("7c73"),f=n("69f3").get,l=n("fce3"),d=n("107c"),p=u("native-string-replace",String.prototype.replace),b=RegExp.prototype.exec,v=b,h=o("".charAt),g=o("".indexOf),m=o("".replace),y=o("".slice),x=function(){var t=/a/,e=/b*/g;return r(b,t,"a"),r(b,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),O=i.BROKEN_CARET,j=void 0!==/()??/.exec("")[1],E=x||j||O||l||d;E&&(v=function(t){var e,n,o,i,u,l,d,E=this,S=f(E),w=c(t),I=S.raw;if(I)return I.lastIndex=E.lastIndex,e=r(v,I,w),E.lastIndex=I.lastIndex,e;var N=S.groups,T=O&&E.sticky,k=r(a,E),V=E.source,P=0,_=w;if(T&&(k=m(k,"y",""),-1===g(k,"g")&&(k+="g"),_=y(w,E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&"\n"!==h(w,E.lastIndex-1))&&(V="(?: "+V+")",_=" "+_,P++),n=new RegExp("^(?:"+V+")",k)),j&&(n=new RegExp("^"+V+"$(?!\\s)",k)),x&&(o=E.lastIndex),i=r(b,T?n:E,_),T?i?(i.input=y(i.input,P),i[0]=y(i[0],P),i.index=E.lastIndex,E.lastIndex+=i[0].length):E.lastIndex=0:x&&i&&(E.lastIndex=E.global?i.index+i[0].length:o),j&&i&&i.length>1&&r(p,i[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(i[u]=void 0)})),i&&N)for(i.groups=l=s(null),u=0;u<N.length;u++)d=N[u],l[d[0]]=i[d[1]];return i}),t.exports=v},"94ca":function(t,e,n){var r=n("d039"),o=n("1626"),c=/#|\.prototype\./,a=function(t,e){var n=u[i(t)];return n==f||n!=s&&(o(e)?r(e):!!e)},i=a.normalize=function(t){return String(t).replace(c,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},"9bf2":function(t,e,n){var r=n("da84"),o=n("83ab"),c=n("0cfb"),a=n("aed9"),i=n("825a"),u=n("a04b"),s=r.TypeError,f=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",b="writable";e.f=o?a?function(t,e,n){if(i(t),e=u(e),i(n),"function"===typeof t&&"prototype"===e&&"value"in n&&b in n&&!n[b]){var r=l(t,e);r&&r[b]&&(t[e]=n.value,n={configurable:p in n?n[p]:r[p],enumerable:d in n?n[d]:r[d],writable:!1})}return f(t,e,n)}:f:function(t,e,n){if(i(t),e=u(e),i(n),c)try{return f(t,e,n)}catch(r){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9f7f":function(t,e,n){var r=n("d039"),o=n("da84"),c=o.RegExp,a=r((function(){var t=c("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),i=a||r((function(){return!c("a","y").sticky})),u=a||r((function(){var t=c("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:i,UNSUPPORTED_Y:a}},a04b:function(t,e,n){var r=n("c04e"),o=n("d9b5");t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},a15b:function(t,e,n){"use strict";var r=n("23e7"),o=n("e330"),c=n("44ad"),a=n("fc6a"),i=n("a640"),u=o([].join),s=c!=Object,f=i("join",",");r({target:"Array",proto:!0,forced:s||!f},{join:function(t){return u(a(this),void 0===t?",":t)}})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),o=n("da84"),c=n("e330"),a=n("94ca"),i=n("6eeb"),u=n("1a2d"),s=n("7156"),f=n("3a9b"),l=n("d9b5"),d=n("c04e"),p=n("d039"),b=n("241c").f,v=n("06cf").f,h=n("9bf2").f,g=n("408a"),m=n("58a8").trim,y="Number",x=o[y],O=x.prototype,j=o.TypeError,E=c("".slice),S=c("".charCodeAt),w=function(t){var e=d(t,"number");return"bigint"==typeof e?e:I(e)},I=function(t){var e,n,r,o,c,a,i,u,s=d(t,"number");if(l(s))throw j("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=m(s),e=S(s,0),43===e||45===e){if(n=S(s,2),88===n||120===n)return NaN}else if(48===e){switch(S(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(c=E(s,2),a=c.length,i=0;i<a;i++)if(u=S(c,i),u<48||u>o)return NaN;return parseInt(c,r)}return+s};if(a(y,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var N,T=function(t){var e=arguments.length<1?0:x(w(t)),n=this;return f(O,n)&&p((function(){g(n)}))?s(Object(e),n,T):e},k=r?b(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),V=0;k.length>V;V++)u(x,N=k[V])&&!u(T,N)&&h(T,N,v(x,N));T.prototype=O,O.constructor=T,i(o,y,T)}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},aed9:function(t,e,n){var r=n("83ab"),o=n("d039");t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b0c0:function(t,e,n){var r=n("83ab"),o=n("5e77").EXISTS,c=n("e330"),a=n("9bf2").f,i=Function.prototype,u=c(i.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=c(s.exec),l="name";r&&!o&&a(i,l,{configurable:!0,get:function(){try{return f(s,u(this))[1]}catch(t){return""}}})},b622:function(t,e,n){var r=n("da84"),o=n("5692"),c=n("1a2d"),a=n("90e3"),i=n("4930"),u=n("fdbf"),s=o("wks"),f=r.Symbol,l=f&&f["for"],d=u?f:f&&f.withoutSetter||a;t.exports=function(t){if(!c(s,t)||!i&&"string"!=typeof s[t]){var e="Symbol."+t;i&&c(f,t)?s[t]=f[t]:s[t]=u&&l?l(e):d(e)}return s[t]}},b64b:function(t,e,n){var r=n("23e7"),o=n("7b0b"),c=n("df75"),a=n("d039"),i=a((function(){c(1)}));r({target:"Object",stat:!0,forced:i},{keys:function(t){return c(o(t))}})},c04e:function(t,e,n){var r=n("da84"),o=n("c65b"),c=n("861d"),a=n("d9b5"),i=n("dc4a"),u=n("485a"),s=n("b622"),f=r.TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!c(t)||a(t))return t;var n,r=i(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!c(n)||a(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},c430:function(t,e){t.exports=!1},c4d6:function(t,e,n){},c65b:function(t,e,n){var r=n("40d5"),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},c6b6:function(t,e,n){var r=n("e330"),o=r({}.toString),c=r("".slice);t.exports=function(t){return c(o(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),o=n("ce4e"),c="__core-js_shared__",a=r[c]||o(c,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("e330"),o=n("1a2d"),c=n("fc6a"),a=n("4d64").indexOf,i=n("d012"),u=r([].push);t.exports=function(t,e){var n,r=c(t),s=0,f=[];for(n in r)!o(i,n)&&o(r,n)&&u(f,n);while(e.length>s)o(r,n=e[s++])&&(~a(f,n)||u(f,n));return f}},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),c=r.document,a=o(c)&&o(c.createElement);t.exports=function(t){return a?c.createElement(t):{}}},ce4e:function(t,e,n){var r=n("da84"),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),o=n("1626"),c=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?c(r[t]):r[t]&&r[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);e.f=c?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("e330"),o=n("825a"),c=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return o(n),c(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d784:function(t,e,n){"use strict";n("ac1f");var r=n("e330"),o=n("6eeb"),c=n("9263"),a=n("d039"),i=n("b622"),u=n("9112"),s=i("species"),f=RegExp.prototype;t.exports=function(t,e,n,l){var d=i(t),p=!a((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),b=p&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!p||!b||n){var v=r(/./[d]),h=e(d,""[t],(function(t,e,n,o,a){var i=r(t),u=e.exec;return u===c||u===f.exec?p&&!a?{done:!0,value:v(e,n,o)}:{done:!0,value:i(n,e,o)}:{done:!1}}));o(String.prototype,t,h[0]),o(f,d,h[1])}l&&u(f[d],"sham",!0)}},d959:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n}},d9b5:function(t,e,n){var r=n("da84"),o=n("d066"),c=n("1626"),a=n("3a9b"),i=n("fdbf"),u=r.Object;t.exports=i?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return c(e)&&a(e.prototype,u(t))}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var r=n("59ed");t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},e330:function(t,e,n){var r=n("40d5"),o=Function.prototype,c=o.bind,a=o.call,i=r&&c.bind(a,a);t.exports=r?function(t){return t&&i(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},e893:function(t,e,n){var r=n("1a2d"),o=n("56ef"),c=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var i=o(e),u=a.f,s=c.f,f=0;f<i.length;f++){var l=i[f];r(t,l)||n&&r(n,l)||u(t,l,s(e,l))}}},f5df:function(t,e,n){var r=n("da84"),o=n("00ee"),c=n("1626"),a=n("c6b6"),i=n("b622"),u=i("toStringTag"),s=r.Object,f="Arguments"==a(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=o?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=s(t),u))?n:f?a(e):"Object"==(r=a(e))&&c(e.callee)?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),o=n("90e3"),c=r("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var c=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(n.p=c[1])}n("b64b");var a=n("8bbf");function i(t,e,n,r,o,c){var i=Object(a["resolveComponent"])("organization-chart-node");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",Object(a["mergeProps"])({scopedSlots:t.$slots},{class:"chartOrgchartContainer",onWheel:e[2]||(e[2]=function(t){return n.zoom&&c.zoomHandler(t)}),onMouseup:e[3]||(e[3]=function(t){return n.pan&&o.panning&&c.panEndHandler(t)})}),[Object(a["createElementVNode"])("div",{class:"chartOrgchart",style:Object(a["normalizeStyle"])({transform:o.transformVal,cursor:o.cursorVal}),onMousedown:e[0]||(e[0]=function(t){return n.pan&&c.panStartHandler(t)}),onMousemove:e[1]||(e[1]=function(t){return n.pan&&o.panning&&c.panHandler(t)})},[Object(a["createVNode"])(i,{datasource:n.datasource,"handle-click":c.handleClick},Object(a["createSlots"])({_:2},[Object(a["renderList"])(Object.keys(t.$slots),(function(e){return{name:e,fn:Object(a["withCtx"])((function(n){return[Object(a["renderSlot"])(t.$slots,e,Object(a["normalizeProps"])(Object(a["guardReactiveProps"])(n)))]}))}}))]),1032,["datasource","handle-click"])],36)],16)}n("a9e3"),n("ac1f"),n("1276"),n("a15b"),n("b0c0");var u={class:"table"},s=["colspan"],f=["id"],l={class:"chartTitle"},d={style:{"margin-left":"0.5rem","margin-right":"0.5rem"}},p={class:"chartContent"},b={style:{"margin-left":"0.5rem","margin-right":"0.5rem"}},v={class:"chartLines"},h=["colspan"],g=Object(a["createElementVNode"])("div",{class:"chartDownLine"},null,-1),m=[g],y={class:"chartLines"},x=Object(a["createElementVNode"])("td",{class:"chartRightLine"},null,-1),O=Object(a["createElementVNode"])("td",{class:"chartLeftLine chartTopLine"},null,-1),j=Object(a["createElementVNode"])("td",{class:"chartRightLine chartTopLine"},null,-1),E=Object(a["createElementVNode"])("td",{class:"chartLeftLine"},null,-1),S={class:"nodes"};function w(t,e,n,r,o,c){var i=Object(a["resolveComponent"])("node");return Object(a["openBlock"])(),Object(a["createElementBlock"])("table",u,[Object(a["createElementVNode"])("tbody",null,[Object(a["createElementVNode"])("tr",null,[Object(a["createElementVNode"])("td",{colspan:n.datasource.children&&n.datasource.children.length?2*n.datasource.children.length:null},[Object(a["createElementVNode"])("div",{class:"chartNode",style:{"min-width":"9rem"},id:n.datasource.id,onClick:e[0]||(e[0]=Object(a["withModifiers"])((function(t){return n.handleClick(n.datasource)}),["stop"]))},[Object(a["renderSlot"])(t.$slots,"default",{nodeData:n.datasource},(function(){return[Object(a["createElementVNode"])("div",l,[Object(a["createElementVNode"])("p",d,Object(a["toDisplayString"])(n.datasource.name),1)]),Object(a["createElementVNode"])("div",p,[Object(a["createElementVNode"])("p",b,Object(a["toDisplayString"])(n.datasource.title),1)])]}))],8,f)],8,s)]),n.datasource.children&&n.datasource.children.length?(Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],{key:0},[Object(a["createElementVNode"])("tr",v,[Object(a["createElementVNode"])("td",{colspan:2*n.datasource.children.length},m,8,h)]),Object(a["createElementVNode"])("tr",y,[x,(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(n.datasource.children.length-1,(function(t){return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],{key:t},[O,j],64)})),128)),E]),Object(a["createElementVNode"])("tr",S,[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(n.datasource.children,(function(e){return Object(a["openBlock"])(),Object(a["createElementBlock"])("td",{colspan:"2",key:e.id},[Object(a["createVNode"])(i,{datasource:e,"handle-click":n.handleClick},Object(a["createSlots"])({_:2},[Object(a["renderList"])(Object.keys(t.$slots),(function(e){return{name:e,fn:Object(a["withCtx"])((function(n){return[Object(a["renderSlot"])(t.$slots,e,Object(a["normalizeProps"])(Object(a["guardReactiveProps"])(n)))]}))}}))]),1032,["datasource","handle-click"])])})),128))])],64)):Object(a["createCommentVNode"])("",!0)])])}var I={name:"node",props:{datasource:Object,handleClick:Function},methods:{}},N=(n("fda9"),n("d959")),T=n.n(N);const k=T()(I,[["render",w]]);var V=k,P={name:"Container",props:{background:Boolean,datasource:{type:Object,required:!0},pan:{type:Boolean,required:!1},zoom:{type:Boolean,required:!1},zoomOutLimit:{type:Number,required:!1,default:.5},zoomInLimit:{type:Number,required:!1,default:7}},data:function(){return{cursorVal:"default",panning:!1,coordinate:{start:{x:0,y:0},current:{x:0,y:0},last:{x:0,y:0}},transformVal:""}},components:{OrganizationChartNode:V},methods:{handleClick:function(t){this.$emit("node-click",t)},panEndHandler:function(){this.panning=!1,this.cursorVal="default"},panHandler:function(t){if(t.targetTouches){if(1===t.targetTouches.length)this.coordinate.current.x=t.targetTouches[0].pageX-this.coordinate.start.x,this.coordinate.current.y=t.targetTouches[0].pageY-this.coordinate.start.y;else if(t.targetTouches.length>1)return}else this.coordinate.current.x=t.pageX-this.coordinate.start.x,this.coordinate.current.y=t.pageY-this.coordinate.start.y;if(""!==this.transformVal){var e=this.transformVal.split(",");-1===this.transformVal.indexOf("3d")?(e[4]=this.coordinate.current.x,e[5]=this.coordinate.current.y+")"):(e[12]=this.coordinate.current.x,e[13]=this.coordinate.current.y),this.transformVal=e.join(",")}return-1!==this.transformVal.indexOf("3d")?this.transformVal="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,"+this.coordinate.current.x+", "+this.coordinate.current.y+",0,1)":this.transformVal="matrix(1,0,0,1,"+this.coordinate.current.x+","+this.coordinate.current.y+")"},panStartHandler:function(t){if(this.cursorVal="move",this.panning=!0,""!==this.transformVal){var e=this.transformVal.split(",");-1===this.transformVal.indexOf("3d")?(this.coordinate.last.x=parseInt(e[4]),this.coordinate.last.y=parseInt(e[5])):(this.coordinate.last.x=parseInt(e[12]),this.coordinate.last.y=parseInt(e[13]))}t.targetTouches?1===t.targetTouches.length&&(this.coordinate.start.x=t.targetTouches[0].pageX-this.coordinate.last.x,this.coordinate.start.y=t.targetTouches[0].pageY-this.coordinate.last.y):(this.coordinate.start.x=t.pageX-this.coordinate.last.x,this.coordinate.start.y=t.pageY-this.coordinate.last.y)},setChartScale:function(t){var e="",n=1;return""===this.transformVal?this.transformVal="matrix("+t+", 0, 0, "+t+", 0, 0)":(e=this.transformVal.split(","),-1===this.transformVal.indexOf("3d")?(n=Math.abs(window.parseFloat(e[3])*t),void(n>this.zoomOutLimit&&n<this.zoomInLimit&&(e[0]="matrix("+n,e[3]=n,this.transformVal=e.join(",")))):(n=Math.abs(window.parseFloat(e[5])*t),void(n>this.zoomOutLimit&&n<this.zoomInLimit&&(e[0]="matrix3d("+n,e[5]=n,this.transformVal=e.join(",")))))},zoomHandler:function(t){var e=1+(t.deltaY>0?-.2:.2);this.setChartScale(e)}}};n("6830");const _=T()(P,[["render",i]]);var C=_;C.install=function(t){t.component("OrgChart",C)};var R=C;e["default"]=R},fc6a:function(t,e,n){var r=n("44ad"),o=n("1d80");t.exports=function(t){return r(o(t))}},fce3:function(t,e,n){var r=n("d039"),o=n("da84"),c=o.RegExp;t.exports=r((function(){var t=c(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},fda9:function(t,e,n){"use strict";n("c4d6")},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}));
//# sourceMappingURL=orgchart.umd.min.js.map