@hpcc-js/react 3.4.18 → 3.4.20
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/dist/index.js +1414 -42
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +3 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/index.umd.cjs
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,function(t,e){"use strict";var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0});var o,r,l,_,a,s,c,u,h,f,d,p,g,m,x={},y=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,k=Array.isArray;function F(t,e){for(var n in e)t[n]=e[n];return t}function b(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function C(t,e,n){var i,r,l,_={};for(l in e)"key"==l?i=e[l]:"ref"==l?r=e[l]:_[l]=e[l];if(arguments.length>2&&(_.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(l in t.defaultProps)void 0===_[l]&&(_[l]=t.defaultProps[l]);return w(t,_,i,r,null)}function w(t,e,n,i,o){var _={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++l:o,__i:-1,__u:0};return null==o&&null!=r.vnode&&r.vnode(_),_}function S(t){return t.children}function $(t,e){this.props=t,this.context=e}function R(t,e){if(null==e)return t.__?R(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?R(t):null}function W(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,i=[],o=[],l=F({},e);l.__v=e.__v+1,r.vnode&&r.vnode(l),E(t.__P,l,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,i,null==n?R(e):n,!!(32&e.__u),o),l.__v=e.__v,l.__.__k[l.__i]=l,M(i,l,o),e.__e=e.__=null,l.__e!=n&&P(l)}}function P(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some(function(e){if(null!=e&&null!=e.__e)return t.__e=t.__c.base=e.__e}),P(t)}function H(t){(!t.__d&&(t.__d=!0)&&_.push(t)&&!O.__r++||a!=r.debounceRendering)&&((a=r.debounceRendering)||s)(O)}function O(){try{for(var t,e=1;_.length;)_.length>e&&_.sort(c),t=_.shift(),e=_.length,W(t)}finally{_.length=O.__r=0}}function A(t,e,n,i,o,r,l,_,a,s,c){var u,h,f,d,p,g,m,v=i&&i.__k||y,k=e.length;for(a=T(n,e,v,a,k),u=0;u<k;u++)null!=(f=n.__k[u])&&(h=-1!=f.__i&&v[f.__i]||x,f.__i=u,g=E(t,f,h,o,r,l,_,a,s,c),d=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&q(h.ref,null,f),c.push(f.ref,f.__c||d,f)),null==p&&null!=d&&(p=d),(m=!!(4&f.__u))||h.__k===f.__k?(a=U(f,a,t,m),m&&h.__e&&(h.__e=null)):"function"==typeof f.type&&void 0!==g?a=g:d&&(a=d.nextSibling),f.__u&=-7);return n.__e=p,a}function T(t,e,n,i,o){var r,l,_,a,s,c=n.length,u=c,h=0;for(t.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[r]=w(null,l,null,null,null):k(l)?l=t.__k[r]=w(S,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[r]=w(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[r]=l,a=r+h,l.__=t,l.__b=t.__b+1,_=null,-1!=(s=l.__i=D(l,n,a,u))&&(u--,(_=n[s])&&(_.__u|=2)),null==_||null==_.__v?(-1==s&&(o>c?h--:o<c&&h++),"function"!=typeof l.type&&(l.__u|=4)):s!=a&&(s==a-1?h--:s==a+1?h++:(s>a?h--:h++,l.__u|=4))):t.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(_=n[r])&&!(2&_.__u)&&(_.__e==i&&(i=R(_)),G(_,_));return i}function U(t,e,n,i){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=U(o[r],e,n,i));return e}t.__e!=e&&(i&&(e&&t.type&&!e.parentNode&&(e=R(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function N(t,e){return e=e||[],null==t||"boolean"==typeof t||(k(t)?t.some(function(t){N(t,e)}):e.push(t)),e}function D(t,e,n,i){var o,r,l,_=t.key,a=t.type,s=e[n],c=null!=s&&!(2&s.__u);if(null===s&&null==_||c&&_==s.key&&a==s.type)return n;if(i>(c?1:0))for(o=n-1,r=n+1;o>=0||r<e.length;)if(null!=(s=e[l=o>=0?o--:r++])&&!(2&s.__u)&&_==s.key&&a==s.type)return l;return-1}function I(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||v.test(e)?n:n+"px"}function V(t,e,n,i,o){var r,l;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||I(t.style,e,"");if(n)for(e in n)i&&n[e]==i[e]||I(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(d,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?i?n[f]=i[f]:(n[f]=p,t.addEventListener(e,r?m:g,r)):t.removeEventListener(e,r?m:g,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function L(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e[h])e[h]=p++;else if(e[h]<n[f])return;return n(r.event?r.event(e):e)}}}function E(t,e,n,i,o,l,_,a,s,c){var u,h,f,d,p,g,m,x,v,C,w,R,W,P,H,O=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(s=!!(32&n.__u),l=[a=e.__e=n.__e]),(u=r.__b)&&u(e);t:if("function"==typeof O)try{if(x=e.props,v=O.prototype&&O.prototype.render,C=(u=O.contextType)&&i[u.__c],w=u?C?C.props.value:u.__:i,n.__c?m=(h=e.__c=n.__c).__=h.__E:(v?e.__c=h=new O(x,w):(e.__c=h=new $(x,w),h.constructor=O,h.render=X),C&&C.sub(h),h.state||(h.state={}),h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),v&&null==h.__s&&(h.__s=h.state),v&&null!=O.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=F({},h.__s)),F(h.__s,O.getDerivedStateFromProps(x,h.__s))),d=h.props,p=h.state,h.__v=e,f)v&&null==O.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),v&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(v&&null==O.getDerivedStateFromProps&&x!==d&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(x,w),e.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(x,h.__s,w)){e.__v!=n.__v&&(h.props=x,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),y.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&_.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(x,h.__s,w),v&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(d,p,g)})}if(h.context=w,h.props=x,h.__P=t,h.__e=!1,R=r.__r,W=0,v)h.state=h.__s,h.__d=!1,R&&R(e),u=h.render(h.props,h.state,h.context),y.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,R&&R(e),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++W<25);h.state=h.__s,null!=h.getChildContext&&(i=F(F({},i),h.getChildContext())),v&&!f&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(d,p)),P=null!=u&&u.type===S&&null==u.key?B(u.props.children):u,a=A(t,k(P)?P:[P],e,n,i,o,l,_,a,s,c),h.base=e.__e,e.__u&=-161,h.__h.length&&_.push(h),m&&(h.__E=h.__=null)}catch(T){if(e.__v=null,s||null!=l)if(T.then){for(e.__u|=s?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;l[l.indexOf(a)]=null,e.__e=a}else{for(H=l.length;H--;)b(l[H]);z(e)}else e.__e=n.__e,e.__k=n.__k,T.then||z(e);r.__e(T,e,n)}else null==l&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):a=e.__e=j(n.__e,e,n,i,o,l,_,s,c);return(u=r.diffed)&&u(e),128&e.__u?void 0:a}function z(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(z))}function M(t,e,n){for(var i=0;i<n.length;i++)q(n[i],n[++i],n[++i]);r.__c&&r.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(n){r.__e(n,e.__v)}})}function B(t){return"object"!=typeof t||null==t||t.__b>0?t:k(t)?t.map(B):F({},t)}function j(t,e,n,i,l,_,a,s,c){var u,h,f,d,p,g,m,y=n.props||x,v=e.props,F=e.type;if("svg"==F?l="http://www.w3.org/2000/svg":"math"==F?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=_)for(u=0;u<_.length;u++)if((p=_[u])&&"setAttribute"in p==!!F&&(F?p.localName==F:3==p.nodeType)){t=p,_[u]=null;break}if(null==t){if(null==F)return document.createTextNode(v);t=document.createElementNS(l,F,v.is&&v),s&&(r.__m&&r.__m(e,_),s=!1),_=null}if(null==F)y===v||s&&t.data==v||(t.data=v);else{if(_=_&&o.call(t.childNodes),!s&&null!=_)for(y={},u=0;u<t.attributes.length;u++)y[(p=t.attributes[u]).name]=p.value;for(u in y)p=y[u],"dangerouslySetInnerHTML"==u?f=p:"children"==u||u in v||"value"==u&&"defaultValue"in v||"checked"==u&&"defaultChecked"in v||V(t,u,null,p,l);for(u in v)p=v[u],"children"==u?d=p:"dangerouslySetInnerHTML"==u?h=p:"value"==u?g=p:"checked"==u?m=p:s&&"function"!=typeof p||y[u]===p||V(t,u,p,y[u],l);if(h)s||f&&(h.__html==f.__html||h.__html==t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(f&&(t.innerHTML=""),A("template"==e.type?t.content:t,k(d)?d:[d],e,n,i,"foreignObject"==F?"http://www.w3.org/1999/xhtml":l,_,a,_?_[0]:n.__k&&R(n,0),s,c),null!=_)for(u=_.length;u--;)b(_[u]);s||(u="value","progress"==F&&null==g?t.removeAttribute("value"):null!=g&&(g!==t[u]||"progress"==F&&!g||"option"==F&&g!=y[u])&&V(t,u,g,y[u],l),u="checked",null!=m&&m!=t[u]&&V(t,u,m,y[u],l))}return t}function q(t,e,n){try{if("function"==typeof t){var i="function"==typeof t.__u;i&&t.__u(),i&&null==e||(t.__u=t(e))}else t.current=e}catch(o){r.__e(o,n)}}function G(t,e,n){var i,o;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||q(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(l){r.__e(l,e)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&G(i[o],e,n||"function"!=typeof t.type);n||b(t.__e),t.__c=t.__=t.__e=void 0}function X(t,e,n){return this.constructor(t,n)}function Y(t,e,n){var i,l,_,a;e==document&&(e=document.documentElement),r.__&&r.__(t,e),l=(i="function"==typeof n)?null:n&&n.__k||e.__k,_=[],a=[],E(e,t=(!i&&n||e).__k=C(S,null,[t]),l||x,x,e.namespaceURI,!i&&n?[n]:l?null:e.firstChild?o.call(e.childNodes):null,_,!i&&n?n:l?l.__e:e.firstChild,i,a),M(_,t,a)}i(F,"m$1"),i(b,"b"),i(C,"k$1"),i(w,"x"),i(S,"S"),i($,"C$1"),i(R,"$"),i(W,"I"),i(P,"P$1"),i(H,"A"),i(O,"H$1"),i(A,"L"),i(T,"T$2"),i(U,"j$2"),i(N,"F"),i(D,"O$1"),i(I,"z$1"),i(V,"N"),i(L,"V$1"),i(E,"q$2"),i(z,"B$2"),i(M,"D$1"),i(B,"E$1"),i(j,"G$1"),i(q,"J$1"),i(G,"K$1"),i(X,"Q$1"),i(Y,"R"),o=y.slice,r={__e:i(function(t,e,n,i){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,i||{}),l=o.__d),l)return o.__E=o}catch(_){t=_}throw t},"__e")},l=0,$.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=F({},this.state),"function"==typeof t&&(t=t(F({},n),this.props)),t&&F(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),H(this))},$.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),H(this))},$.prototype.render=S,_=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=i(function(t,e){return t.__v.__b-e.__v.__b},"e$1"),O.__r=0,u=Math.random().toString(8),h="__d"+u,f="__a"+u,d=/(PointerCapture)$|Capture$/i,p=0,g=L(!1),m=L(!0);var J=0;function K(t,e,n,i,o,l){e||(e={});var _,a,s=e;if("ref"in s)for(a in s={},e)"ref"==a?_=e[a]:s[a]=e[a];var c={type:t,props:s,key:n,ref:_,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--J,__i:-1,__u:0,__source:o,__self:l};if("function"==typeof t&&(_=t.defaultProps))for(a in _)void 0===s[a]&&(s[a]=_[a]);return r.vnode&&r.vnode(c),c}i(K,"u$1");var Z,Q,tt,et,nt=0,it=[],ot=r,rt=ot.__b,lt=ot.__r,_t=ot.diffed,at=ot.__c,st=ot.unmount,ct=ot.__;function ut(t,e){ot.__h&&ot.__h(Q,t,nt||e),nt=0;var n=Q.__H||(Q.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function ht(t){return nt=1,ft(Ct,t)}function ft(t,e,n){var o=ut(Z++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):Ct(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=Q,!Q.__f)){var r=i(function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(t){return t.__c});if(i.every(function(t){return!t.__N}))return!l||l.call(this,t,e,n);var r=o.__c.props!==t;return i.some(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}}),l&&l.call(this,t,e,n)||r},"f");Q.__f=!0;var l=Q.shouldComponentUpdate,_=Q.componentWillUpdate;Q.componentWillUpdate=function(t,e,n){if(this.__e){var i=l;l=void 0,r(t,e,n),l=i}_&&_.call(this,t,e,n)},Q.shouldComponentUpdate=r}return o.__N||o.__}function dt(t,e){var n=ut(Z++,3);!ot.__s&&bt(n.__H,e)&&(n.__=t,n.u=e,Q.__H.__h.push(n))}function pt(t,e){var n=ut(Z++,4);!ot.__s&&bt(n.__H,e)&&(n.__=t,n.u=e,Q.__h.push(n))}function gt(t,e){var n=ut(Z++,7);return bt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function mt(t,e){return nt=8,gt(function(){return t},e)}function xt(){for(var t;t=it.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(kt),e.__h.some(Ft),e.__h=[]}catch(n){e.__h=[],ot.__e(n,t.__v)}}}i(ut,"p"),i(ht,"d"),i(ft,"h"),i(dt,"y"),i(pt,"_"),i(gt,"T$1"),i(mt,"q$1"),i(xt,"j$1"),ot.__b=function(t){Q=null,rt&&rt(t)},ot.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),ct&&ct(t,e)},ot.__r=function(t){lt&<(t),Z=0;var e=(Q=t.__c).__H;e&&(tt===Q?(e.__h=[],Q.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(kt),e.__h.some(Ft),e.__h=[],Z=0)),tt=Q},ot.diffed=function(t){_t&&_t(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==it.push(e)&&et===ot.requestAnimationFrame||((et=ot.requestAnimationFrame)||vt)(xt)),e.__H.__.some(function(t){t.u&&(t.__H=t.u),t.u=void 0})),tt=Q=null},ot.__c=function(t,e){e.some(function(t){try{t.__h.some(kt),t.__h=t.__h.filter(function(t){return!t.__||Ft(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],ot.__e(n,t.__v)}}),at&&at(t,e)},ot.unmount=function(t){st&&st(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(t){try{kt(t)}catch(n){e=n}}),n.__H=void 0,e&&ot.__e(e,n.__v))};var yt="function"==typeof requestAnimationFrame;function vt(t){var e,n=i(function(){clearTimeout(o),yt&&cancelAnimationFrame(e),setTimeout(t)},"r"),o=setTimeout(n,35);yt&&(e=requestAnimationFrame(n))}function kt(t){var e=Q,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),Q=e}function Ft(t){var e=Q;t.__c=t.__(),Q=e}function bt(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function Ct(t,e){return"function"==typeof e?e(t):e}function wt(t,e){for(var n in e)t[n]=e[n];return t}function St(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var i in e)if("__source"!==i&&t[i]!==e[i])return!0;return!1}function $t(t,e){this.props=t,this.context=e}i(vt,"w"),i(kt,"z"),i(Ft,"B$1"),i(bt,"C"),i(Ct,"D"),i(wt,"g"),i(St,"E"),i($t,"M"),($t.prototype=new $).isPureReactComponent=!0,$t.prototype.shouldComponentUpdate=function(t,e){return St(this.props,t)||St(this.state,e)};var Rt=r.__b;r.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Rt&&Rt(t)};var Wt=r.__e;r.__e=function(t,e,n,i){if(t.then)for(var o,r=e;r=r.__;)if((o=r.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);Wt(t,e,n,i)};var Pt=r.unmount;function Ht(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(t){"function"==typeof t.__c&&t.__c()}),t.__c.__H=null),null!=(t=wt({},t)).__c&&(t.__c.__P===n&&(t.__c.__P=e),t.__c.__e=!0,t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return Ht(t,e,n)})),t}function Ot(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return Ot(t,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function At(){this.__u=0,this.o=null,this.__b=null}function Tt(t){var e=t.__&&t.__.__c;return e&&e.__a&&e.__a(t)}function Ut(){this.i=null,this.l=null}i(Ht,"V"),i(Ot,"W"),i(At,"P"),i(Tt,"j"),i(Ut,"B"),r.unmount=function(t){var e=t.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Pt&&Pt(t)},(At.prototype=new $).__c=function(t,e){var n=e.__c,o=this;null==o.o&&(o.o=[]),o.o.push(n);var r=Tt(o.__v),l=!1,_=i(function(){l||o.__z||(l=!0,n.__R=null,r?r(s):s())},"i");n.__R=_;var a=n.__P;n.__P=null;var s=i(function(){if(! --o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Ot(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.o.pop();)e.__P=a,e.forceUpdate()}},"c");o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(_,_)},At.prototype.componentWillUnmount=function(){this.o=[]},At.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Ht(this.__b,n,i.__O=i.__P)}this.__b=null}var o=e.__a&&C(S,null,t.fallback);return o&&(o.__u&=-33),[C(S,null,e.__a?null:t.children),o]};var Nt=i(function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.i=n=n[2]}},"H");(Ut.prototype=new $).__a=function(t){var e=this,n=Tt(e.__v),o=e.l.get(t);return o[0]++,function(r){var l=i(function(){e.props.revealOrder?(o.push(r),Nt(e,t,o)):r()},"o");n?n(l):l()}},Ut.prototype.render=function(t){this.i=null,this.l=new Map;var e=N(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},Ut.prototype.componentDidUpdate=Ut.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){Nt(t,n,e)})};var Dt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,It=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Vt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Lt=/[A-Z0-9]/g,Et="undefined"!=typeof document,zt=i(function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)},"X");$.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty($.prototype,t,{configurable:!0,get:i(function(){return this["UNSAFE_"+t]},"get"),set:i(function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})},"set")})});var Mt=r.event;r.event=function(t){return Mt&&(t=Mt(t)),t.persist=function(){},t.isPropagationStopped=function(){return this.cancelBubble},t.isDefaultPrevented=function(){return this.defaultPrevented},t.nativeEvent=t};var Bt={configurable:!0,get:i(function(){return this.class},"get")},jt=r.vnode;r.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,i={},o=-1==n.indexOf("-");for(var r in e){var l=e[r];if(!("value"===r&&"defaultValue"in e&&null==l||Et&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var _=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===l?l="":"translate"===_&&"no"===l?l=!1:"o"===_[0]&&"n"===_[1]?"ondoubleclick"===_?r="ondblclick":"onchange"!==_||"input"!==n&&"textarea"!==n||zt(e.type)?"onfocus"===_?r="onfocusin":"onblur"===_?r="onfocusout":Vt.test(r)&&(r=_):_=r="oninput":o&&It.test(r)?r=r.replace(Lt,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===_&&i[r=_]&&(r="oninputCapture"),i[r]=l}}"select"==n&&(i.multiple&&Array.isArray(i.value)&&(i.value=N(e.children).forEach(function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)})),null!=i.defaultValue&&(i.value=N(e.children).forEach(function(t){t.props.selected=i.multiple?-1!=i.defaultValue.indexOf(t.props.value):i.defaultValue==t.props.value}))),e.class&&!e.className?(i.class=e.class,Object.defineProperty(i,"className",Bt)):e.className&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=Dt,jt&&jt(t)};var qt=r.__r;r.__r=function(t){qt&&qt(t),t.__c};var Gt=r.diffed;function Xt(t){return!!t.__k&&(Y(null,t),!0)}r.diffed=function(t){Gt&&Gt(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value)},i(Xt,"pn");const Yt=Object.freeze(Object.defineProperty({__proto__:null,Component:$,Fragment:S,createElement:C,h:C,render:Y,unmountComponentAtNode:Xt,useCallback:mt,useEffect:dt,useLayoutEffect:pt,useMemo:gt,useReducer:ft,useState:ht},Symbol.toStringTag,{value:"Module"})),Jt=i(({href:t,x:e,y:n=0,height:i=12})=>K("image",{xlinkHref:t,x:e-i/2,y:n-i/2,width:i,height:i}),"Image"),Kt=i(({x:t,y:n=0,height:i=12,fill:o,stroke:r,fontFamily:l="FontAwesome",char:_="",fontWeight:a})=>{const s=gt(()=>"FontAwesome"===l?e.Utility.faChar(_):_,[_,l]);return K("text",{x:t,y:n,fill:o,stroke:r,fontFamily:l,fontSize:`${i}px`,fontWeight:a,dominantBaseline:"middle",style:{textAnchor:"middle",alignmentBaseline:"middle"},children:s})},"ImageChar"),Zt=i(({radius:t=32,fill:e="navy",stroke:n=e,strokeWidth:i=1,shapeRendering:o})=>K("circle",{r:t,fill:e,stroke:n,strokeWidth:i,shapeRendering:o}),"Circle"),Qt=i(({radius:t=30,cornerRadius:e=0,fill:n="white",stroke:i,strokeWidth:o=1,shapeRendering:r})=>K("rect",{x:-t,y:-t,rx:e,ry:e,width:2*t,height:2*t,fill:n,stroke:i||n,strokeWidth:o,shapeRendering:r}),"Square"),te=i(({width:t=30,height:e=30,cornerRadius:n=0,fill:i="white",stroke:o="black",strokeWidth:r=1,shapeRendering:l})=>K("rect",{x:-t/2,y:-e/2,rx:n,ry:n,width:t,height:e,fill:i,stroke:o||i,strokeWidth:r,shapeRendering:l}),"Rectangle"),ee=i(({shape:t="circle",height:e=128,width:n,fill:i,stroke:o,strokeWidth:r=1,shapeRendering:l,cornerRadius:_})=>{switch(t){case"square":return K(Qt,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:_});case"rectangle":return K(te,{width:n??e,height:e,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:_});default:return K(Zt,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l})}},"Shape"),ne=i(({shape:t="circle",width:n,height:i=32,fill:o,stroke:r,strokeWidth:l=0,imageUrl:_="",imageFontFamily:a="FontAwesome",imageChar:s="",imageCharFill:c=e.Palette.textColor(o),padding:u=i/5,xOffset:h=0,yOffset:f=0,cornerRadius:d,shapeRendering:p})=>K(S,{children:[K(ee,{shape:t,width:n,height:i,fill:o,stroke:r,strokeWidth:l,shapeRendering:p,cornerRadius:d}),_?K(Jt,{href:_,x:h,y:f,height:i-u}):K(Kt,{x:h,y:f,height:i-u,fontFamily:a,char:s,fill:c,fontWeight:400})]}),"Icon"),ie=i(({icons:t=[]})=>K(S,{children:t.map(t=>K("g",{id:t.id,children:K(ne,{...t})},t.id))}),"Icons"),oe=i(({text:t,height:e=12,anchor:n="middle",baseline:i="middle",fontFamily:o="Verdana",fill:r="black"})=>K("text",{"font-family":o,"font-size":`${e}px`,"text-anchor":n,"dominant-baseline":i,fill:r,children:t}),"TextLine"),re=i(({text:t,height:n=12,fontFamily:i="Verdana",fill:o="black",onSizeUpdate:r})=>{const[l,_]=ht(0),[a,s]=ht(0);dt(()=>{r&&r({width:l,height:a})},[l,a,r]);const c=gt(()=>t.split("\n"),[t]);pt(()=>{const t=e.Utility.textSize(c,i,n);_(t.width),s(t.height)},[i,n,c]);return K("g",{children:gt(()=>{const t=-a/2+n/2;return c.map((e,r)=>K("g",{transform:`translate(0 ${t+r*(n+2)})`,children:K(oe,{text:e,height:n,fontFamily:i,fill:o})},`key-${r}`))},[c,a,n,i,o])})},"Text"),le=i(({text:t,height:e=12,fontFamily:n="Verdana",padding:i=4,fill:o="whitesmoke",stroke:r="lightgray",textFill:l="black",strokeWidth:_=1,cornerRadius:a=0,onSizeUpdate:s})=>{const[c,u]=ht(0),[h,f]=ht(0);dt(()=>{s&&s({width:c,height:h})},[c,h,s]);const d=mt(t=>{u(t.width),f(t.height)},[]),p=c+2*i+_,g=h+2*i+_,m=Math.floor(e/10);return K(S,{children:[K(te,{width:p,height:g,fill:o,stroke:r,strokeWidth:_,cornerRadius:a}),K("g",{transform:`translate(0 ${m})`,children:K(re,{text:t,fontFamily:n,height:e,fill:l,onSizeUpdate:d})})]})},"TextBox"),_e=i(({text:t,height:n=12,width:i=12,fontFamily:o="Verdana",fontSize:r=10,padding:l=3,fill:_="whitesmoke",stroke:a="lightgray",textFill:s="black",strokeWidth:c=1,cornerRadius:u=0,onSizeUpdate:h})=>{const[f,d]=ht(i),[p,g]=ht(n);return pt(()=>{const n=e.Utility.textSize(t,o,r);d(n.width+2*l),g(n.height+2*l)},[t,o,r,l]),pt(()=>{h&&h({width:f,height:p})},[f,p,l,h]),K(S,{children:[K(te,{width:i,height:n,fill:_,stroke:a,strokeWidth:c,cornerRadius:u}),K("g",{transform:`translate(${-i/2+l} ${-n/2+l})`,children:K(oe,{text:t,fontFamily:o,height:r,fill:s,anchor:"start",baseline:"hanging"})})]})},"LabelledRect"),ae=i(({icon:t,iconFontFamily:e,text:n,height:i=12,width:o=12,fontFamily:r="Verdana",fontSize:l=10,padding:_=3,fill:a="whitesmoke",stroke:s="lightgray",textFill:c="black",strokeWidth:u=1,cornerRadius:h=0})=>K(S,{children:[K(te,{width:o,height:i,fill:a,stroke:s,strokeWidth:u,cornerRadius:h}),K("g",{transform:`translate(${-o/2+_} ${-i/2+_})`,children:K(ne,{shape:"square",imageFontFamily:e,imageChar:t,height:i,fill:a,imageCharFill:c})}),K("g",{transform:`translate(${-o/2+2*_+i} ${-i/2+_})`,children:K(oe,{text:n,fontFamily:r,height:l,fill:c,anchor:"start",baseline:"hanging"})})]}),"IconLabelledRect"),se=i(({label:t,labelPos:e,labelFill:n="black",labelHeight:i=12,path:o,stroke:r,strokeWidth:l,strokeDasharray:_})=>K(S,{children:[K("path",{d:o,stroke:r,style:{strokeWidth:l,strokeDasharray:_}}),t&&e&&2===e.length?K("g",{transform:`translate(${e[0]} ${e[1]})`,children:K(re,{text:t,fill:n,height:i})}):void 0]}),"Edge");function ce(t,e,n,i){Y(C(t,e),n,i)}function ue(t,e,n,i){Y(C("svg",null,C(t,e)),n,i)}i(ce,"render"),i(ue,"svgRender");const he=class _HTMLAdapter extends e.HTMLWidget{constructor(t){super(),this._component=t}_component;props(t){return arguments.length?(this._props={...this._props,...t},this):this._props}prop(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)}update(t,e){super.update(t,e),ce(this._component,this._props,t)}};i(he,"HTMLAdapter");let fe=he;fe.prototype._class+=" react_HTMLAdapter",fe.prototype.publish("props",{},"object","Properties");const de=class _SVGAdapter extends e.SVGWidget{constructor(t){super(),this._component=t}_component;props(t){return arguments.length?(this._props={...this._props,...t},this):this._props}prop(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)}update(t,e){super.update(t,e),ce(this._component,this._props,t)}};i(de,"SVGAdapter");let pe=de;pe.prototype._class+=" react_SVGAdapter",pe.prototype.publish("props",{},"object","Properties");const ge=i(({text:t})=>K("span",{children:t}),"Span"),me=i(({x:t,y:e,annotationIDs:n=[],stepSize:i=-16})=>K(S,{children:n.map((n,o)=>K("g",{transform:`translate(${t+o*i} ${e})`,children:K("use",{xlinkHref:"#"+n})},n))}),"Annotations"),xe=i(({categoryID:t="",text:e="",textHeight:n=12,textPadding:i=4,icon:o={},annotationsHeight:r=12,annotationIDs:l=[],textFill:_,textboxFill:a,textboxStroke:s,textFontFamily:c,onSizeUpdate:u,showLabel:h=!0,scale:f=1})=>{o={imageChar:"fa-question",height:32,fill:"transparent",...o};const[d,p]=ht(0),[g,m]=ht(0);dt(()=>{u&&u({width:0,height:0})},[d,g,u]);let x=d;x+=4;let y=-(2*o.height/6+n+8)/2;const v=o.height/3+g/2+i;let k=o.height/3+g+i+r/3;h||(y+=(n+8)/2,k-=g+i);const F=mt(t=>{p(t.width),m(t.height)},[]),b=h?K("g",{transform:`translate(0 ${v})`,children:K(le,{text:e,height:n,padding:i,onSizeUpdate:F,textFill:_,fill:a,stroke:s,fontFamily:c})}):void 0;return K("g",t?{transform:`translate(0 ${y}) scale(${f})`,children:[K("use",{xlinkHref:"#"+t}),b,K(me,{x:x/2,y:k,annotationIDs:l})]}:{transform:`translate(0 ${y}) scale(${f})`,children:[K(ne,{...o}),b]})},"Vertex"),ye=i(({categoryID:t="",text:n="",textHeight:i=12,textPadding:o=4,icon:r={},textFill:l="black",textboxFill:_="white",textboxStroke:a="black",textFontFamily:s,annotationsHeight:c=12,annotationIDs:u=[]})=>{r={imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square",...r};const h=i+2*o,{width:f}=gt(()=>e.Utility.textSize(n,s,i,!1),[n,s,i]),d=c,p=h/2,g=-(2*r.height/6+i+8)/2,m=-r.height/2,x=Math.ceil(f/2+o),y=p-r.height/2,v=d/2,k=p;return t?K("g",{transform:`translate(0 ${g})`,children:[K("g",{transform:`translate(${m} 0)`,children:K("use",{xlinkHref:"#"+t})}),K("g",{transform:`translate(${x} ${y})`,children:K(le,{text:n,height:i,padding:o,strokeWidth:1,stroke:a,fill:_,textFill:l,fontFamily:s})}),K(me,{x:v,y:k,annotationIDs:u,stepSize:d})]}):K(S,{children:[K("g",{transform:`translate(${m} 0)scale(1.0002)`,children:K(ne,{...r,shape:"square"})}),K("g",{transform:`translate(${x} ${y})scale(1.0002)`,children:K(le,{text:n,height:i,padding:o,stroke:a,fill:_})})]})},"Vertex2"),ve=i(({text:t="",textHeight:n=10,textPadding:i=4,textFill:o="#287EC4",textboxFill:r="white",textboxStroke:l="#CCCCCC",textboxStrokeWidth:_=1,textFontFamily:a="Verdana",annotationGutter:s=2,annotations:c=[],cornerRadius:u=3,icon:h={},subText:f={text:""},showLabel:d=!0,noLabelRadius:p=5,expansionIcon:g,scale:m=1})=>{h={height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0,...h},f={text:"",fill:"white",textFill:"#555555",...f},g=g?{height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0,...g}:void 0;let x=0;const y=gt(()=>e.Utility.textSize(t,a,n,!1).width,[t,a,n]);let v=0;""!==t&&(v=y+2*i+2*_),x+=v+s;const k=x-v/2,F=n+2*i+2*_,b=[];c.forEach((t,e)=>{const n=t.imageChar;x+=F+s;const i=x-F/2;b.push(K("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${i} 0)`,children:K(ne,{...t,shape:"square",height:F,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:u,strokeWidth:0})},e))}),c.length>0&&(x+=s*(c.length-1));const C=K("g",{"data-click":"text",transform:`translate(${k} 0)`,children:d&&""!==t?K(le,{text:t,height:n,padding:i,strokeWidth:_,stroke:l,fill:r,textFill:o,fontFamily:a,cornerRadius:u}):K("circle",{r:p,stroke:l,fill:o})}),w=h.height||20,S=h.strokeWidth||0;let $=0;let R=F+2*s;""!==t||b.length>0?$=-w/2-S-F/2-2*s:""!==f.text&&(R=w/2+S+2*s);const W=""===f.text?null:K("g",{"data-click":"subtext",transform:`translate(0 ${R})`,children:K(le,{fill:f.fill||"#FFFFFF",textFill:f.textFill||o,...f,height:n,padding:i,strokeWidth:0,stroke:l,fontFamily:a,cornerRadius:u})});return K("g",{transform:`scale(${m})`,children:[K("g",{"data-click":"icon",transform:`translate(0 ${$})`,children:[K(ne,{...h}),g&&K("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(g),transform:`translate(${(h.height+S)/2-g.height/2} ${-(h.height+S)/2+g.height/2})`,children:K(ne,{...g})})]}),K("g",{transform:`translate(${-x/2} 0)`,children:[C,b]}),W]})},"Vertex3"),ke=i(function({id:t,categoryID:e="",text:n="",textHeight:i=12,textPadding:o=10,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:_="#CCCCCC",textboxStrokeWidth:a=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],cornerRadius:h,icon:f={},subText:d={},expansionIcon:p,scale:g=1}){f={height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15,...f},d={text:"",fill:"transparent",textFill:"#555555",...d};return K(ve,{...{id:t,categoryID:e,text:n,textHeight:i,textPadding:o,textFill:r,textboxFill:l,textboxStroke:_,textboxStrokeWidth:a,textFontFamily:s,annotationGutter:c,annotations:u,cornerRadius:h,icon:f,subText:d,expansionIcon:p,scale:g},icon:f,subText:d})},"CentroidVertex3"),Fe=i(({categoryID:t="",text:n="",textHeight:i=10,textPadding:o=4,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:_="#CCCCCC",textboxStrokeWidth:a=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],iconAnnotations:h=[],cornerRadius:f=3,icon:d={},subText:p={},showLabel:g=!0,noLabelRadius:m=5,iconBorderWidth:x=1,iconBorderColor:y="#333",iconBackgroundColor:v="#fff",iconFontColor:k="#000",iconFontSize:F=20,iconFontFamily:b="FontAwesome",shapeOffsetX:C=0,shapeOffsetY:w=0,iconOffsetX:S=0,iconOffsetY:$=0,iconPadding:R=4,iconText:W="?",shapeRendering:P="auto"})=>{d={height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0,...d},p={text:"",fill:"white",textFill:"#555555",...p};const H=gt(()=>e.Utility.textSize(n,s,i,!1).width,[n,s,i]);let O=0;""!==n&&(O=H+2*o+2*a);let A=O+c;const T=A-O/2,U=i+2*c+2*a,N=u.map(t=>e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width),D=[];let I=A;u.forEach((t,e)=>{const n=t.imageChar,i=t.height??U;I+=N[e]+c;const o=I-N[e]/2;D.push(K("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${o} 0)`,children:K(ne,{...t,shape:"rectangle",width:N[e],height:i,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:f,strokeWidth:0})},e))}),u.length>0&&(A+=c*(u.length-1));const V=[];h.forEach((t,e)=>{const n=t.shapeOffsetX,i=t.shapeOffsetY;V.push(K("g",{className:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:`translate(${n} ${i})`,children:K(ne,{...t,shape:t.shape??"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:f,stroke:t.stroke,strokeWidth:t.strokeWidth})},e))});const L=K("g",{"data-click":"text",transform:`translate(${T} 0)`,children:g&&""!==n?K(le,{text:n,height:i,padding:o,strokeWidth:a,stroke:_,fill:l,textFill:r,fontFamily:s,cornerRadius:f}):K("circle",{r:m,stroke:_,fill:r})}),E=U+2*c,z=""===p.text?null:K("g",{"data-click":"subtext",transform:`translate(0 ${E})`,children:K(le,{fill:p.fill||"#FFFFFF",textFill:p.textFill||r,...p,height:i,padding:o,strokeWidth:0,stroke:_,fontFamily:s,cornerRadius:f})});return K("g",{children:[K("g",{"data-click":"icon",transform:`translate(${C} ${w})`,children:[K(ne,{...d,strokeWidth:x,shape:"circle",height:F,fill:v,stroke:y,imageFontFamily:b,imageChar:W,imageCharFill:k,padding:R,xOffset:S,yOffset:$,cornerRadius:f,shapeRendering:P}),V]}),K("g",{transform:`translate(${-A/2} 0)`,children:[L,D]}),z]})},"Vertex4"),be=i(function({id:t,categoryID:e="",text:n="",textHeight:i=12,textPadding:o=10,textFill:r="#287EC4",textboxFill:l="white",textboxStroke:_="#CCCCCC",textboxStrokeWidth:a=1,textFontFamily:s="Verdana",annotationGutter:c=2,annotations:u=[],iconAnnotations:h=[],cornerRadius:f,icon:d={},subText:p={},showLabel:g=!0,noLabelRadius:m=5,iconBorderWidth:x=1,iconBorderColor:y="#333",iconBackgroundColor:v="#fff",iconFontColor:k="#000",iconFontSize:F=20,iconFontFamily:b="FontAwesome",shapeOffsetX:C=0,shapeOffsetY:w=0,iconOffsetX:S=0,iconOffsetY:$=0,iconPadding:R=4,iconText:W="?",shapeRendering:P="auto"}){d={height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15,...d},p={text:"",fill:"transparent",textFill:"#555555",...p};return K(Fe,{...{id:t,categoryID:e,text:n,textHeight:i,textPadding:o,textFill:r,textboxFill:l,textboxStroke:_,textboxStrokeWidth:a,textFontFamily:s,annotationGutter:c,annotations:u,iconAnnotations:h,cornerRadius:f,icon:d,subText:p,showLabel:g,noLabelRadius:m,iconBorderWidth:x,iconBorderColor:y,iconBackgroundColor:v,iconFontColor:k,iconFontSize:F,iconFontFamily:b,shapeOffsetX:C,shapeOffsetY:w,iconOffsetX:S,iconOffsetY:$,iconPadding:R,iconText:W,shapeRendering:P},icon:d,subText:p})},"CentroidVertex4"),Ce=i(({text:t,width:n=100,height:i=100,fill:o="transparent",stroke:r="black",fontHeight:l=12,fontFamily:_})=>{const a=e.Utility.textSize(t,_,l,!1);return K(S,{children:[K(te,{width:n,height:i,fill:o,stroke:r}),K("g",{transform:`translate(${(-n+a.width)/2+4} ${(-i+a.height)/2+4})`,children:K(re,{height:l,text:t,fontFamily:_})})]})},"Subgraph");t.Annotations=me,t.BUILD_VERSION="3.23.0",t.CentroidVertex3=ke,t.CentroidVertex4=be,t.Circle=Zt,t.Edge=se,t.HTMLAdapter=fe,t.Icon=ne,t.IconLabelledRect=ae,t.Icons=ie,t.Image=Jt,t.ImageChar=Kt,t.LabelledRect=_e,t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="3.4.18",t.React=Yt,t.Rectangle=te,t.SVGAdapter=pe,t.Shape=ee,t.Span=ge,t.Square=Qt,t.Subgraph=Ce,t.Text=re,t.TextBox=le,t.TextLine=oe,t.Vertex=xe,t.Vertex2=ye,t.Vertex3=ve,t.Vertex4=Fe,t.render=ce,t.svgRender=ue,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
|
2
|
-
//# sourceMappingURL=index.umd.cjs.map
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("@hpcc-js/common")):typeof define==`function`&&define.amd?define([`exports`,`@hpcc-js/common`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@hpcc-js/react`]={},e[`@hpcc-js/common`]))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.defineProperty,__name=(e,t)=>n(e,`name`,{value:t,configurable:!0}),__exportAll=(e,t)=>{let a={};for(var s in e)n(a,s,{get:e[s],enumerable:!0});return t||n(a,Symbol.toStringTag,{value:`Module`}),a},a=`@hpcc-js/react`,s=`3.4.20`,l=`3.25.1`,m,v,T,O,k,A,U,G,K,q,J,ee,Y,Z,te={},ne=[],re=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ie=Array.isArray;function m$1(e,t){for(var n in t)e[n]=t[n];return e}__name(m$1,`m`);function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k$1(e,t,n){var a,s,l,v={};for(l in t)l==`key`?a=t[l]:l==`ref`?s=t[l]:v[l]=t[l];if(arguments.length>2&&(v.children=arguments.length>3?m.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(l in e.defaultProps)v[l]===void 0&&(v[l]=e.defaultProps[l]);return x(e,v,a,s,null)}__name(k$1,`k`);function x(e,t,n,a,s){var l={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++T,__i:-1,__u:0};return s==null&&v.vnode!=null&&v.vnode(l),l}function S(e){return e.children}function C$1(e,t){this.props=e,this.context=t}__name(C$1,`C`);function $(e,t){if(t==null)return e.__?$(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?$(e):null}function I(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,a=[],s=[],l=m$1({},t);l.__v=t.__v+1,v.vnode&&v.vnode(l),q$2(e.__P,l,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,a,n??$(t),!!(32&t.__u),s),l.__v=t.__v,l.__.__k[l.__i]=l,D$1(a,l,s),t.__e=t.__=null,l.__e!=n&&P$1(l)}}function P$1(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),P$1(e)}__name(P$1,`P`);function A$1(e){(!e.__d&&(e.__d=!0)&&O.push(e)&&!H$1.__r++||k!=v.debounceRendering)&&((k=v.debounceRendering)||A)(H$1)}__name(A$1,`A`);function H$1(){try{for(var e,t=1;O.length;)O.length>t&&O.sort(U),e=O.shift(),t=O.length,I(e)}finally{O.length=H$1.__r=0}}__name(H$1,`H`);function L(e,t,n,a,s,l,m,v,T,O,k){var A,U,G,K,q,J,ee,Y=a&&a.__k||ne,Z=t.length;for(T=T$2(n,t,Y,T,Z),A=0;A<Z;A++)(G=n.__k[A])!=null&&(U=G.__i!=-1&&Y[G.__i]||te,G.__i=A,J=q$2(e,G,U,s,l,m,v,T,O,k),K=G.__e,G.ref&&U.ref!=G.ref&&(U.ref&&J$1(U.ref,null,G),k.push(G.ref,G.__c||K,G)),q==null&&K!=null&&(q=K),(ee=!!(4&G.__u))||U.__k===G.__k?(T=j$2(G,T,e,ee),ee&&U.__e&&(U.__e=null)):typeof G.type==`function`&&J!==void 0?T=J:K&&(T=K.nextSibling),G.__u&=-7);return n.__e=q,T}function T$2(e,t,n,a,s){var l,m,v,T,O,k=n.length,A=k,U=0;for(e.__k=Array(s),l=0;l<s;l++)(m=t[l])!=null&&typeof m!=`boolean`&&typeof m!=`function`?(typeof m==`string`||typeof m==`number`||typeof m==`bigint`||m.constructor==String?m=e.__k[l]=x(null,m,null,null,null):ie(m)?m=e.__k[l]=x(S,{children:m},null,null,null):m.constructor===void 0&&m.__b>0?m=e.__k[l]=x(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):e.__k[l]=m,T=l+U,m.__=e,m.__b=e.__b+1,v=null,(O=m.__i=O$1(m,n,T,A))!=-1&&(A--,(v=n[O])&&(v.__u|=2)),v==null||v.__v==null?(O==-1&&(s>k?U--:s<k&&U++),typeof m.type!=`function`&&(m.__u|=4)):O!=T&&(O==T-1?U--:O==T+1?U++:(O>T?U--:U++,m.__u|=4))):e.__k[l]=null;if(A)for(l=0;l<k;l++)(v=n[l])!=null&&!(2&v.__u)&&(v.__e==a&&(a=$(v)),K$1(v,v));return a}__name(T$2,`T`);function j$2(e,t,n,a){var s,l;if(typeof e.type==`function`){for(s=e.__k,l=0;s&&l<s.length;l++)s[l]&&(s[l].__=e,t=j$2(s[l],t,n,a));return t}e.__e!=t&&(a&&(t&&e.type&&!t.parentNode&&(t=$(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}__name(j$2,`j`);function F(e,t){return t||=[],e==null||typeof e==`boolean`||(ie(e)?e.some(function(e){F(e,t)}):t.push(e)),t}function O$1(e,t,n,a){var s,l,m,v=e.key,T=e.type,O=t[n],k=O!=null&&(2&O.__u)==0;if(O===null&&v==null||k&&v==O.key&&T==O.type)return n;if(a>+!!k){for(s=n-1,l=n+1;s>=0||l<t.length;)if((O=t[m=s>=0?s--:l++])!=null&&!(2&O.__u)&&v==O.key&&T==O.type)return m}return-1}__name(O$1,`O`);function z$1(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||re.test(t)?n:n+`px`}__name(z$1,`z`);function N(e,t,n,a,s){var l,m;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof a==`string`&&(e.style.cssText=a=``),a)for(t in a)n&&t in n||z$1(e.style,t,``);if(n)for(t in n)a&&n[t]==a[t]||z$1(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)l=t!=(t=t.replace(J,`$1`)),m=t.toLowerCase(),t=m in e||t==`onFocusOut`||t==`onFocusIn`?m.slice(2):t.slice(2),e.l||={},e.l[t+l]=n,n?a?n[q]=a[q]:(n[q]=ee,e.addEventListener(t,l?Z:Y,l)):e.removeEventListener(t,l?Z:Y,l);else{if(s==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function V$1(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[K]==null)t[K]=ee++;else if(t[K]<n[q])return;return n(v.event?v.event(t):t)}}}__name(V$1,`V`);function q$2(e,t,n,a,s,l,m,T,O,k){var A,U,G,K,q,J,ee,Y,Z,te,re,ae,Q,oe,se,ce=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(O=!!(32&n.__u),l=[T=t.__e=n.__e]),(A=v.__b)&&A(t);n:if(typeof ce==`function`)try{if(Y=t.props,Z=ce.prototype&&ce.prototype.render,te=(A=ce.contextType)&&a[A.__c],re=A?te?te.props.value:A.__:a,n.__c?ee=(U=t.__c=n.__c).__=U.__E:(Z?t.__c=U=new ce(Y,re):(t.__c=U=new C$1(Y,re),U.constructor=ce,U.render=Q$1),te&&te.sub(U),U.state||={},U.__n=a,G=U.__d=!0,U.__h=[],U._sb=[]),Z&&U.__s==null&&(U.__s=U.state),Z&&ce.getDerivedStateFromProps!=null&&(U.__s==U.state&&(U.__s=m$1({},U.__s)),m$1(U.__s,ce.getDerivedStateFromProps(Y,U.__s))),K=U.props,q=U.state,U.__v=t,G)Z&&ce.getDerivedStateFromProps==null&&U.componentWillMount!=null&&U.componentWillMount(),Z&&U.componentDidMount!=null&&U.__h.push(U.componentDidMount);else{if(Z&&ce.getDerivedStateFromProps==null&&Y!==K&&U.componentWillReceiveProps!=null&&U.componentWillReceiveProps(Y,re),t.__v==n.__v||!U.__e&&U.shouldComponentUpdate!=null&&!1===U.shouldComponentUpdate(Y,U.__s,re)){t.__v!=n.__v&&(U.props=Y,U.state=U.__s,U.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),ne.push.apply(U.__h,U._sb),U._sb=[],U.__h.length&&m.push(U);break n}U.componentWillUpdate!=null&&U.componentWillUpdate(Y,U.__s,re),Z&&U.componentDidUpdate!=null&&U.__h.push(function(){U.componentDidUpdate(K,q,J)})}if(U.context=re,U.props=Y,U.__P=e,U.__e=!1,ae=v.__r,Q=0,Z)U.state=U.__s,U.__d=!1,ae&&ae(t),A=U.render(U.props,U.state,U.context),ne.push.apply(U.__h,U._sb),U._sb=[];else do U.__d=!1,ae&&ae(t),A=U.render(U.props,U.state,U.context),U.state=U.__s;while(U.__d&&++Q<25);U.state=U.__s,U.getChildContext!=null&&(a=m$1(m$1({},a),U.getChildContext())),Z&&!G&&U.getSnapshotBeforeUpdate!=null&&(J=U.getSnapshotBeforeUpdate(K,q)),oe=A!=null&&A.type===S&&A.key==null?E$1(A.props.children):A,T=L(e,ie(oe)?oe:[oe],t,n,a,s,l,m,T,O,k),U.base=t.__e,t.__u&=-161,U.__h.length&&m.push(U),ee&&(U.__E=U.__=null)}catch(e){if(t.__v=null,O||l!=null)if(e.then){for(t.__u|=O?160:128;T&&T.nodeType==8&&T.nextSibling;)T=T.nextSibling;l[l.indexOf(T)]=null,t.__e=T}else{for(se=l.length;se--;)b(l[se]);B$2(t)}else t.__e=n.__e,t.__k=n.__k,e.then||B$2(t);v.__e(e,t,n)}else l==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):T=t.__e=G$1(n.__e,t,n,a,s,l,m,O,k);return(A=v.diffed)&&A(t),128&t.__u?void 0:T}__name(q$2,`q`);function B$2(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(B$2))}__name(B$2,`B`);function D$1(e,t,n){for(var a=0;a<n.length;a++)J$1(n[a],n[++a],n[++a]);v.__c&&v.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){v.__e(e,t.__v)}})}__name(D$1,`D`);function E$1(e){return typeof e!=`object`||!e||e.__b>0?e:ie(e)?e.map(E$1):e.constructor===void 0?m$1({},e):null}__name(E$1,`E`);function G$1(e,t,n,a,s,l,T,O,k){var A,U,G,K,q,J,ee,Y=n.props||te,Z=t.props,ne=t.type;if(ne==`svg`?s=`http://www.w3.org/2000/svg`:ne==`math`?s=`http://www.w3.org/1998/Math/MathML`:s||=`http://www.w3.org/1999/xhtml`,l!=null){for(A=0;A<l.length;A++)if((q=l[A])&&`setAttribute`in q==!!ne&&(ne?q.localName==ne:q.nodeType==3)){e=q,l[A]=null;break}}if(e==null){if(ne==null)return document.createTextNode(Z);e=document.createElementNS(s,ne,Z.is&&Z),O&&=(v.__m&&v.__m(t,l),!1),l=null}if(ne==null)Y===Z||O&&e.data==Z||(e.data=Z);else{if(l=ne==`textarea`&&Z.defaultValue!=null?null:l&&m.call(e.childNodes),!O&&l!=null)for(Y={},A=0;A<e.attributes.length;A++)Y[(q=e.attributes[A]).name]=q.value;for(A in Y)q=Y[A],A==`dangerouslySetInnerHTML`?G=q:A==`children`||A in Z||A==`value`&&`defaultValue`in Z||A==`checked`&&`defaultChecked`in Z||N(e,A,null,q,s);for(A in Z)q=Z[A],A==`children`?K=q:A==`dangerouslySetInnerHTML`?U=q:A==`value`?J=q:A==`checked`?ee=q:O&&typeof q!=`function`||Y[A]===q||N(e,A,q,Y[A],s);if(U)O||G&&(U.__html==G.__html||U.__html==e.innerHTML)||(e.innerHTML=U.__html),t.__k=[];else if(G&&(e.innerHTML=``),L(t.type==`template`?e.content:e,ie(K)?K:[K],t,n,a,ne==`foreignObject`?`http://www.w3.org/1999/xhtml`:s,l,T,l?l[0]:n.__k&&$(n,0),O,k),l!=null)for(A=l.length;A--;)b(l[A]);O&&ne!=`textarea`||(A=`value`,ne==`progress`&&J==null?e.removeAttribute(`value`):J!=null&&(J!==e[A]||ne==`progress`&&!J||ne==`option`&&J!=Y[A])&&N(e,A,J,Y[A],s),A=`checked`,ee!=null&&ee!=e[A]&&N(e,A,ee,Y[A],s))}return e}__name(G$1,`G`);function J$1(e,t,n){try{if(typeof e==`function`){var a=typeof e.__u==`function`;a&&e.__u(),a&&t==null||(e.__u=e(t))}else e.current=t}catch(e){v.__e(e,n)}}__name(J$1,`J`);function K$1(e,t,n){var a,s;if(v.unmount&&v.unmount(e),(a=e.ref)&&(a.current&&a.current!=e.__e||J$1(a,null,t)),(a=e.__c)!=null){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(e){v.__e(e,t)}a.base=a.__P=null}if(a=e.__k)for(s=0;s<a.length;s++)a[s]&&K$1(a[s],t,n||typeof e.type!=`function`);n||b(e.__e),e.__c=e.__=e.__e=void 0}__name(K$1,`K`);function Q$1(e,t,n){return this.constructor(e,n)}__name(Q$1,`Q`);function R(e,t,n){var a,s,l,T;t==document&&(t=document.documentElement),v.__&&v.__(e,t),s=(a=typeof n==`function`)?null:n&&n.__k||t.__k,l=[],T=[],q$2(t,e=(!a&&n||t).__k=k$1(S,null,[e]),s||te,te,t.namespaceURI,!a&&n?[n]:s?null:t.firstChild?m.call(t.childNodes):null,l,!a&&n?n:s?s.__e:t.firstChild,a,T),D$1(l,e,T)}m=ne.slice,v={__e:function(e,t,n,a){for(var s,l,m;t=t.__;)if((s=t.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(e)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,a||{}),m=s.__d),m)return s.__E=s}catch(t){e=t}throw e}},T=0,C$1.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=m$1({},this.state);typeof e==`function`&&(e=e(m$1({},n),this.props)),e&&m$1(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),A$1(this))},C$1.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A$1(this))},C$1.prototype.render=S,O=[],A=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,U=__name(function(e,t){return e.__v.__b-t.__v.__b},`e`),H$1.__r=0,G=Math.random().toString(8),K=`__d`+G,q=`__a`+G,J=/(PointerCapture)$|Capture$/i,ee=0,Y=V$1(!1),Z=V$1(!0);var ae,Q,oe,se,ce=0,le=[],ue=v,de=ue.__b,fe=ue.__r,pe=ue.diffed,me=ue.__c,he=ue.unmount,ge=ue.__;function p(e,t){ue.__h&&ue.__h(Q,e,ce||t),ce=0;var n=Q.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({}),n.__[e]}function d(e){return ce=1,h(D,e)}function h(e,t,n){var a=p(ae++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):D(void 0,t),function(e){var t=a.__N?a.__N[0]:a.__[0],n=a.t(t,e);t!==n&&(a.__N=[n,a.__[1]],a.__c.setState({}))}],a.__c=Q,!Q.__f)){var f=function(e,t,n){if(!a.__c.__H)return!0;var l=a.__c.__H.__.filter(function(e){return e.__c});if(l.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var m=a.__c.props!==e;return l.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(m=!0)}}),s&&s.call(this,e,t,n)||m};Q.__f=!0;var s=Q.shouldComponentUpdate,l=Q.componentWillUpdate;Q.componentWillUpdate=function(e,t,n){if(this.__e){var a=s;s=void 0,f(e,t,n),s=a}l&&l.call(this,e,t,n)},Q.shouldComponentUpdate=f}return a.__N||a.__}function y(e,t){var n=p(ae++,3);!ue.__s&&C(n.__H,t)&&(n.__=e,n.u=t,Q.__H.__h.push(n))}function _(e,t){var n=p(ae++,4);!ue.__s&&C(n.__H,t)&&(n.__=e,n.u=t,Q.__h.push(n))}function T$1(e,t){var n=p(ae++,7);return C(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}__name(T$1,`T`);function q$1(e,t){return ce=8,T$1(function(){return e},t)}__name(q$1,`q`);function j$1(){for(var e;e=le.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(z),t.__h.some(B$1),t.__h=[]}catch(n){t.__h=[],ue.__e(n,e.__v)}}}__name(j$1,`j`),ue.__b=function(e){Q=null,de&&de(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ge&&ge(e,t)},ue.__r=function(e){fe&&fe(e),ae=0;var t=(Q=e.__c).__H;t&&(oe===Q?(t.__h=[],Q.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(z),t.__h.some(B$1),t.__h=[],ae=0)),oe=Q},ue.diffed=function(e){pe&&pe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(le.push(t)!==1&&se===ue.requestAnimationFrame||((se=ue.requestAnimationFrame)||w)(j$1)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),oe=Q=null},ue.__c=function(e,t){t.some(function(e){try{e.__h.some(z),e.__h=e.__h.filter(function(e){return!e.__||B$1(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],ue.__e(n,e.__v)}}),me&&me(e,t)},ue.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{z(e)}catch(e){t=e}}),n.__H=void 0,t&&ue.__e(t,n.__v))};var _e=typeof requestAnimationFrame==`function`;function w(e){var t,r=function(){clearTimeout(n),_e&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);_e&&(t=requestAnimationFrame(r))}function z(e){var t=Q,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),Q=t}function B$1(e){var t=Q;e.__c=e.__(),Q=t}__name(B$1,`B`);function C(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function D(e,t){return typeof t==`function`?t(e):t}function g(e,t){for(var n in t)e[n]=t[n];return e}function E(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var a in t)if(a!==`__source`&&e[a]!==t[a])return!0;return!1}function M(e,t){this.props=e,this.context=t}(M.prototype=new C$1).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(e,t){return E(this.props,e)||E(this.state,t)};var ve=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ve&&ve(e)},typeof Symbol<`u`&&Symbol.for;var ye=v.__e;v.__e=function(e,t,n,a){if(e.then){for(var s,l=t;l=l.__;)if((s=l.__c)&&s.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}ye(e,t,n,a)};var be=v.unmount;function V(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=g({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return V(e,t,n)})),e}function W(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return W(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function P(){this.__u=0,this.o=null,this.__b=null}function j(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function B(){this.i=null,this.l=null}v.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),be&&be(e)},(P.prototype=new C$1).__c=function(e,t){var n=t.__c,a=this;a.o??=[],a.o.push(n);var s=j(a.__v),l=!1,i=function(){l||a.__z||(l=!0,n.__R=null,s?s(c):c())};n.__R=i;var m=n.__P;n.__P=null;var c=function(){if(!--a.__u){if(a.state.__a){var e=a.state.__a;a.__v.__k[0]=W(e,e.__c.__P,e.__c.__O)}var t;for(a.setState({__a:a.__b=null});t=a.o.pop();)t.__P=m,t.forceUpdate()}};a.__u++||32&t.__u||a.setState({__a:a.__b=a.__v.__k[0]}),e.then(i,i)},P.prototype.componentWillUnmount=function(){this.o=[]},P.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),a=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,n,a.__O=a.__P)}this.__b=null}var s=t.__a&&k$1(S,null,e.fallback);return s&&(s.__u&=-33),[k$1(S,null,t.__a?null:e.children),s]};var H=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(B.prototype=new C$1).__a=function(e){var t=this,n=j(t.__v),a=t.l.get(e);return a[0]++,function(s){var o=function(){t.props.revealOrder?(a.push(s),H(t,e,a)):s()};n?n(o):o()}},B.prototype.render=function(e){this.i=null,this.l=new Map;var t=F(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){H(e,n,t)})};var xe=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,Se=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ce=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,we=/[A-Z0-9]/g,Te=typeof document<`u`,X=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/:/fil|che|ra/).test(e)};C$1.prototype.isReactComponent=!0,[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(C$1.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ee=v.event;v.event=function(e){return Ee&&(e=Ee(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var De={configurable:!0,get:function(){return this.class}},Oe=v.vnode;v.vnode=function(e){typeof e.type==`string`&&function(e){var t=e.props,n=e.type,a={},s=n.indexOf(`-`)==-1;for(var l in t){var m=t[l];if(!(l===`value`&&`defaultValue`in t&&m==null||Te&&l===`children`&&n===`noscript`||l===`class`||l===`className`)){var v=l.toLowerCase();l===`defaultValue`&&`value`in t&&t.value==null?l=`value`:l===`download`&&!0===m?m=``:v===`translate`&&m===`no`?m=!1:v[0]===`o`&&v[1]===`n`?v===`ondoubleclick`?l=`ondblclick`:v!==`onchange`||n!==`input`&&n!==`textarea`||X(t.type)?v===`onfocus`?l=`onfocusin`:v===`onblur`?l=`onfocusout`:Ce.test(l)&&(l=v):v=l=`oninput`:s&&Se.test(l)?l=l.replace(we,`-$&`).toLowerCase():m===null&&(m=void 0),v===`oninput`&&a[l=v]&&(l=`oninputCapture`),a[l]=m}}n==`select`&&(a.multiple&&Array.isArray(a.value)&&(a.value=F(t.children).forEach(function(e){e.props.selected=a.value.indexOf(e.props.value)!=-1})),a.defaultValue!=null&&(a.value=F(t.children).forEach(function(e){e.props.selected=a.multiple?a.defaultValue.indexOf(e.props.value)!=-1:a.defaultValue==e.props.value}))),t.class&&!t.className?(a.class=t.class,Object.defineProperty(a,"className",De)):t.className&&(a.class=a.className=t.className),e.props=a}(e),e.$$typeof=xe,Oe&&Oe(e)};var ke=v.__r;v.__r=function(e){ke&&ke(e),e.__c};var Ae=v.diffed;v.diffed=function(e){Ae&&Ae(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value)};function pn(e){return!!e.__k&&(R(null,e),!0)}var je=__exportAll({Component:()=>C$1,Fragment:()=>S,createElement:()=>k$1,h:()=>k$1,render:()=>R,unmountComponentAtNode:()=>pn,useCallback:()=>q$1,useEffect:()=>y,useLayoutEffect:()=>_,useMemo:()=>T$1,useReducer:()=>h,useState:()=>d}),Me=0;Array.isArray;function u(e,t,n,a,s,l){t||={};var m,T,O=t;if(`ref`in O)for(T in O={},t)T==`ref`?m=t[T]:O[T]=t[T];var k={type:e,props:O,key:n,ref:m,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Me,__i:-1,__u:0,__source:s,__self:l};if(typeof e==`function`&&(m=e.defaultProps))for(T in m)O[T]===void 0&&(O[T]=m[T]);return v.vnode&&v.vnode(k),k}var Image=({href:e,x:t,y:n=0,height:a=12})=>u(`image`,{xlinkHref:e,x:t-a/2,y:n-a/2,width:a,height:a}),ImageChar=({x:e,y:n=0,height:a=12,fill:s,stroke:l,fontFamily:m=`FontAwesome`,char:v=``,fontWeight:T})=>{let O=T$1(()=>m===`FontAwesome`?t.Utility.faChar(v):v,[v,m]);return u(`text`,{x:e,y:n,fill:s,stroke:l,fontFamily:m,fontSize:`${a}px`,fontWeight:T,dominantBaseline:`middle`,style:{textAnchor:`middle`,alignmentBaseline:`middle`},children:O})},Circle=({radius:e=32,fill:t=`navy`,stroke:n=t,strokeWidth:a=1,shapeRendering:s})=>u(`circle`,{r:e,fill:t,stroke:n,strokeWidth:a,shapeRendering:s}),Square=({radius:e=30,cornerRadius:t=0,fill:n=`white`,stroke:a,strokeWidth:s=1,shapeRendering:l})=>u(`rect`,{x:-e,y:-e,rx:t,ry:t,width:e*2,height:e*2,fill:n,stroke:a||n,strokeWidth:s,shapeRendering:l}),Rectangle=({width:e=30,height:t=30,cornerRadius:n=0,fill:a=`white`,stroke:s=`black`,strokeWidth:l=1,shapeRendering:m})=>u(`rect`,{x:-e/2,y:-t/2,rx:n,ry:n,width:e,height:t,fill:a,stroke:s||a,strokeWidth:l,shapeRendering:m}),Shape=({shape:e=`circle`,height:t=128,width:n,fill:a,stroke:s,strokeWidth:l=1,shapeRendering:m,cornerRadius:v})=>{switch(e){case`square`:return u(Square,{radius:t/2,fill:a,stroke:s,strokeWidth:l,shapeRendering:m,cornerRadius:v});case`rectangle`:return u(Rectangle,{width:n??t,height:t,fill:a,stroke:s,strokeWidth:l,shapeRendering:m,cornerRadius:v});default:return u(Circle,{radius:t/2,fill:a,stroke:s,strokeWidth:l,shapeRendering:m})}},Icon=({shape:e=`circle`,width:n,height:a=32,fill:s,stroke:l,strokeWidth:m=0,imageUrl:v=``,imageFontFamily:T=`FontAwesome`,imageChar:O=``,imageCharFill:k=t.Palette.textColor(s),padding:A=a/5,xOffset:U=0,yOffset:G=0,cornerRadius:K,shapeRendering:q})=>u(S,{children:[u(Shape,{shape:e,width:n,height:a,fill:s,stroke:l,strokeWidth:m,shapeRendering:q,cornerRadius:K}),v?u(Image,{href:v,x:U,y:G,height:a-A}):u(ImageChar,{x:U,y:G,height:a-A,fontFamily:T,char:O,fill:k,fontWeight:400})]}),Icons=({icons:e=[]})=>u(S,{children:e.map(e=>u(`g`,{id:e.id,children:u(Icon,{...e})},e.id))}),TextLine=({text:e,height:t=12,anchor:n=`middle`,baseline:a=`middle`,fontFamily:s=`Verdana`,fill:l=`black`})=>u(`text`,{"font-family":s,"font-size":`${t}px`,"text-anchor":n,"dominant-baseline":a,fill:l,children:e}),Text=({text:e,height:n=12,fontFamily:a=`Verdana`,fill:s=`black`,onSizeUpdate:l})=>{let[m,v]=d(0),[T,O]=d(0);y(()=>{l&&l({width:m,height:T})},[m,T,l]);let k=T$1(()=>e.split(`
|
|
2
|
+
`),[e]);return _(()=>{let e=t.Utility.textSize(k,a,n);v(e.width),O(e.height)},[a,n,k]),u(`g`,{children:T$1(()=>{let e=-(T/2)+n/2;return k.map((t,l)=>u(`g`,{transform:`translate(0 ${e+l*(n+2)})`,children:u(TextLine,{text:t,height:n,fontFamily:a,fill:s})},`key-${l}`))},[k,T,n,a,s])})},TextBox=({text:e,height:t=12,fontFamily:n=`Verdana`,padding:a=4,fill:s=`whitesmoke`,stroke:l=`lightgray`,textFill:m=`black`,strokeWidth:v=1,cornerRadius:T=0,onSizeUpdate:O})=>{let[k,A]=d(0),[U,G]=d(0);y(()=>{O&&O({width:k,height:U})},[k,U,O]);let K=q$1(e=>{A(e.width),G(e.height)},[]),q=k+a*2+v,J=U+a*2+v,ee=Math.floor(t/10);return u(S,{children:[u(Rectangle,{width:q,height:J,fill:s,stroke:l,strokeWidth:v,cornerRadius:T}),u(`g`,{transform:`translate(0 ${ee})`,children:u(Text,{text:e,fontFamily:n,height:t,fill:m,onSizeUpdate:K})})]})},LabelledRect=({text:e,height:n=12,width:a=12,fontFamily:s=`Verdana`,fontSize:l=10,padding:m=3,fill:v=`whitesmoke`,stroke:T=`lightgray`,textFill:O=`black`,strokeWidth:k=1,cornerRadius:A=0,onSizeUpdate:U})=>{let[G,K]=d(a),[q,J]=d(n);return _(()=>{let n=t.Utility.textSize(e,s,l);K(n.width+m*2),J(n.height+m*2)},[e,s,l,m]),_(()=>{U&&U({width:G,height:q})},[G,q,m,U]),u(S,{children:[u(Rectangle,{width:a,height:n,fill:v,stroke:T,strokeWidth:k,cornerRadius:A}),u(`g`,{transform:`translate(${-(a/2)+m} ${-(n/2)+m})`,children:u(TextLine,{text:e,fontFamily:s,height:l,fill:O,anchor:`start`,baseline:`hanging`})})]})},IconLabelledRect=({icon:e,iconFontFamily:t,text:n,height:a=12,width:s=12,fontFamily:l=`Verdana`,fontSize:m=10,padding:v=3,fill:T=`whitesmoke`,stroke:O=`lightgray`,textFill:k=`black`,strokeWidth:A=1,cornerRadius:U=0})=>u(S,{children:[u(Rectangle,{width:s,height:a,fill:T,stroke:O,strokeWidth:A,cornerRadius:U}),u(`g`,{transform:`translate(${-(s/2)+v} ${-(a/2)+v})`,children:u(Icon,{shape:`square`,imageFontFamily:t,imageChar:e,height:a,fill:T,imageCharFill:k})}),u(`g`,{transform:`translate(${-(s/2)+v*2+a} ${-(a/2)+v})`,children:u(TextLine,{text:n,fontFamily:l,height:m,fill:k,anchor:`start`,baseline:`hanging`})})]}),Edge=({label:e,labelPos:t,labelFill:n=`black`,labelHeight:a=12,path:s,stroke:l,strokeWidth:m,strokeDasharray:v})=>u(S,{children:[u(`path`,{d:s,stroke:l,style:{strokeWidth:m,strokeDasharray:v}}),e&&t&&t.length===2?u(`g`,{transform:`translate(${t[0]} ${t[1]})`,children:u(Text,{text:e,fill:n,height:a})}):void 0]});function render(e,t,n,a){R(k$1(e,t),n,a)}function svgRender(e,t,n,a){R(k$1(`svg`,null,k$1(e,t)),n,a)}var HTMLAdapter=class extends t.HTMLWidget{_component;props(e){return arguments.length?(this._props={...this._props,...e},this):this._props}prop(e,t){return arguments.length===1?this._props[e]:(this._props[e]=t,this)}constructor(e){super(),this._component=e}update(e,t){super.update(e,t),render(this._component,this._props,e)}};HTMLAdapter.prototype._class+=` react_HTMLAdapter`,HTMLAdapter.prototype.publish(`props`,{},`object`,`Properties`);var SVGAdapter=class extends t.SVGWidget{_component;props(e){return arguments.length?(this._props={...this._props,...e},this):this._props}prop(e,t){return arguments.length===1?this._props[e]:(this._props[e]=t,this)}constructor(e){super(),this._component=e}update(e,t){super.update(e,t),render(this._component,this._props,e)}};SVGAdapter.prototype._class+=` react_SVGAdapter`,SVGAdapter.prototype.publish(`props`,{},`object`,`Properties`);var Span=({text:e})=>u(`span`,{children:e}),Annotations=({x:e,y:t,annotationIDs:n=[],stepSize:a=-16})=>u(S,{children:n.map((n,s)=>u(`g`,{transform:`translate(${e+s*a} ${t})`,children:u(`use`,{xlinkHref:`#`+n})},n))}),Vertex=({categoryID:e=``,text:t=``,textHeight:n=12,textPadding:a=4,icon:s={},annotationsHeight:l=12,annotationIDs:m=[],textFill:v,textboxFill:T,textboxStroke:O,textFontFamily:k,onSizeUpdate:A,showLabel:U=!0,scale:G=1})=>{s={imageChar:`fa-question`,height:32,fill:`transparent`,...s};let[K,q]=d(0),[J,ee]=d(0);y(()=>{A&&A({width:0,height:0})},[K,J,A]);let Y=K;Y+=4;let Z=-(s.height*2/6+n+8)/2,te=s.height/3+J/2+a,ne=s.height/3+J+a+l/3;U||(Z+=(n+8)/2,ne-=J+a);let re=q$1(e=>{q(e.width),ee(e.height)},[]),ie=U?u(`g`,{transform:`translate(0 ${te})`,children:u(TextBox,{text:t,height:n,padding:a,onSizeUpdate:re,textFill:v,fill:T,stroke:O,fontFamily:k})}):void 0;return e?u(`g`,{transform:`translate(0 ${Z}) scale(${G})`,children:[u(`use`,{xlinkHref:`#`+e}),ie,u(Annotations,{x:Y/2,y:ne,annotationIDs:m})]}):u(`g`,{transform:`translate(0 ${Z}) scale(${G})`,children:[u(Icon,{...s}),ie]})},Vertex2=({categoryID:e=``,text:n=``,textHeight:a=12,textPadding:s=4,icon:l={},textFill:m=`black`,textboxFill:v=`white`,textboxStroke:T=`black`,textFontFamily:O,annotationsHeight:k=12,annotationIDs:A=[]})=>{l={imageChar:`fa-question`,imageCharFill:`white`,height:32,fill:`black`,shape:`square`,...l};let U=a+s*2,{width:G}=T$1(()=>t.Utility.textSize(n,O,a,!1),[n,O,a]),K=k,q=U/2,J=-(l.height*2/6+a+8)/2,ee=-l.height/2,Y=Math.ceil(G/2+s),Z=q-l.height/2,te=K/2,ne=q;return e?u(`g`,{transform:`translate(0 ${J})`,children:[u(`g`,{transform:`translate(${ee} 0)`,children:u(`use`,{xlinkHref:`#`+e})}),u(`g`,{transform:`translate(${Y} ${Z})`,children:u(TextBox,{text:n,height:a,padding:s,strokeWidth:1,stroke:T,fill:v,textFill:m,fontFamily:O})}),u(Annotations,{x:te,y:ne,annotationIDs:A,stepSize:K})]}):u(S,{children:[u(`g`,{transform:`translate(${ee} 0)scale(1.0002)`,children:u(Icon,{...l,shape:`square`})}),u(`g`,{transform:`translate(${Y} ${Z})scale(1.0002)`,children:u(TextBox,{text:n,height:a,padding:s,stroke:T,fill:v})})]})},Vertex3=({text:e=``,textHeight:n=10,textPadding:a=4,textFill:s=`#287EC4`,textboxFill:l=`white`,textboxStroke:m=`#CCCCCC`,textboxStrokeWidth:v=1,textFontFamily:T=`Verdana`,annotationGutter:O=2,annotations:k=[],cornerRadius:A=3,icon:U={},subText:G={text:``},showLabel:K=!0,noLabelRadius:q=5,expansionIcon:J,scale:ee=1})=>{U={height:50,imageChar:`?`,imageFontFamily:`FontAwesome`,imageCharFill:`#555555`,fill:`transparent`,strokeWidth:0,...U},G={text:``,fill:`white`,textFill:`#555555`,...G},J=J?{height:16,shape:`circle`,padding:6,imageChar:`?`,imageFontFamily:`FontAwesome`,imageCharFill:`black`,fill:`whitesmoke`,stroke:`whitesmoke`,strokeWidth:0,...J}:void 0;let Y=0,Z=T$1(()=>t.Utility.textSize(e,T,n,!1).width,[e,T,n]),te=0;e!==``&&(te=Z+a*2+v*2),Y+=te+O;let ne=Y-te/2,re=n+a*2+v*2,ie=[];k.forEach((e,t)=>{let n=e.imageChar,a=re;Y+=a+O;let s=Y-a/2;ie.push(u(`g`,{className:`vertex3-anno`,"data-click":`annotation`,"data-click-data":JSON.stringify(e),transform:`translate(${s} 0)`,children:u(Icon,{...e,shape:`square`,height:re,imageChar:n,imageFontFamily:e.imageFontFamily,cornerRadius:A,strokeWidth:0})},t))}),k.length>0&&(Y+=O*(k.length-1));let ae=u(`g`,{"data-click":`text`,transform:`translate(${ne} 0)`,children:!K||e===``?u(`circle`,{r:q,stroke:m,fill:s}):u(TextBox,{text:e,height:n,padding:a,strokeWidth:v,stroke:m,fill:l,textFill:s,fontFamily:T,cornerRadius:A})}),Q=U.height||20,oe=U.strokeWidth||0,se=0,ce=re+O*2;e!==``||ie.length>0?se=-(Q/2)-oe-re/2-O*2:G.text!==``&&(ce=Q/2+oe+O*2);let le=G.text===``?null:u(`g`,{"data-click":`subtext`,transform:`translate(0 ${ce})`,children:u(TextBox,{fill:G.fill||`#FFFFFF`,textFill:G.textFill||s,...G,height:n,padding:a,strokeWidth:0,stroke:m,fontFamily:T,cornerRadius:A})});return u(`g`,{transform:`scale(${ee})`,children:[u(`g`,{"data-click":`icon`,transform:`translate(0 ${se})`,children:[u(Icon,{...U}),J&&u(`g`,{"data-click":`expanded-icon`,"data-click-data":JSON.stringify(J),transform:`translate(${(U.height+oe)/2-J.height/2} ${-(U.height+oe)/2+J.height/2})`,children:u(Icon,{...J})})]}),u(`g`,{transform:`translate(${-Y/2} 0)`,children:[ae,ie]}),le]})},CentroidVertex3=function({id:e,categoryID:t=``,text:n=``,textHeight:a=12,textPadding:s=10,textFill:l=`#287EC4`,textboxFill:m=`white`,textboxStroke:v=`#CCCCCC`,textboxStrokeWidth:T=1,textFontFamily:O=`Verdana`,annotationGutter:k=2,annotations:A=[],cornerRadius:U,icon:G={},subText:K={},expansionIcon:q,scale:J=1}){return G={height:91,padding:40,imageCharFill:`#555555`,imageFontFamily:`FontAwesome`,fill:`#FFCC33`,stroke:`#DFDFDF`,imageChar:`?`,strokeWidth:4,yOffset:-15,...G},K={text:``,fill:`transparent`,textFill:`#555555`,...K},u(Vertex3,{id:e,categoryID:t,text:n,textHeight:a,textPadding:s,textFill:l,textboxFill:m,textboxStroke:v,textboxStrokeWidth:T,textFontFamily:O,annotationGutter:k,annotations:A,cornerRadius:U,icon:G,subText:K,expansionIcon:q,scale:J,icon:G,subText:K})},Vertex4=({categoryID:e=``,text:n=``,textHeight:a=10,textPadding:s=4,textFill:l=`#287EC4`,textboxFill:m=`white`,textboxStroke:v=`#CCCCCC`,textboxStrokeWidth:T=1,textFontFamily:O=`Verdana`,annotationGutter:k=2,annotations:A=[],iconAnnotations:U=[],cornerRadius:G=3,icon:K={},subText:q={},showLabel:J=!0,noLabelRadius:ee=5,iconBorderWidth:Y=1,iconBorderColor:Z=`#333`,iconBackgroundColor:te=`#fff`,iconFontColor:ne=`#000`,iconFontSize:re=20,iconFontFamily:ie=`FontAwesome`,shapeOffsetX:ae=0,shapeOffsetY:Q=0,iconOffsetX:oe=0,iconOffsetY:se=0,iconPadding:ce=4,iconText:le=`?`,shapeRendering:ue=`auto`})=>{K={height:50,imageChar:`?`,imageFontFamily:`FontAwesome`,imageCharFill:`#555555`,fill:`transparent`,strokeWidth:0,...K},q={text:``,fill:`white`,textFill:`#555555`,...q};let de=T$1(()=>t.Utility.textSize(n,O,a,!1).width,[n,O,a]),fe=0;n!==``&&(fe=de+s*2+T*2);let pe=fe+k,me=pe-fe/2,he=a+k*2+T*2,ge=A.map(e=>t.Utility.textSize(e.imageChar,e.imageFontFamily,e.height,!1).width),_e=[],ve=pe;A.forEach((e,t)=>{let n=e.imageChar,a=e.height??he;ve+=ge[t]+k;let s=ve-ge[t]/2;_e.push(u(`g`,{className:`vertex3-anno`,"data-click":`annotation`,"data-click-data":JSON.stringify(e),transform:`translate(${s} 0)`,children:u(Icon,{...e,shape:`rectangle`,width:ge[t],height:a,imageChar:n,imageFontFamily:e.imageFontFamily,cornerRadius:G,strokeWidth:0})},t))}),A.length>0&&(pe+=k*(A.length-1));let ye=[];U.forEach((e,t)=>{let n=e.shapeOffsetX,a=e.shapeOffsetY;ye.push(u(`g`,{className:`vertex3-iconAnno`,"data-click":`icon-annotation`,"data-click-data":JSON.stringify(e),transform:`translate(${n} ${a})`,children:u(Icon,{...e,shape:e.shape??`square`,imageChar:e.imageChar,imageFontFamily:e.imageFontFamily,cornerRadius:G,stroke:e.stroke,strokeWidth:e.strokeWidth})},t))});let be=u(`g`,{"data-click":`text`,transform:`translate(${me} 0)`,children:!J||n===``?u(`circle`,{r:ee,stroke:v,fill:l}):u(TextBox,{text:n,height:a,padding:s,strokeWidth:T,stroke:v,fill:m,textFill:l,fontFamily:O,cornerRadius:G})}),xe=he+k*2,Se=q.text===``?null:u(`g`,{"data-click":`subtext`,transform:`translate(0 ${xe})`,children:u(TextBox,{fill:q.fill||`#FFFFFF`,textFill:q.textFill||l,...q,height:a,padding:s,strokeWidth:0,stroke:v,fontFamily:O,cornerRadius:G})});return u(`g`,{children:[u(`g`,{"data-click":`icon`,transform:`translate(${ae} ${Q})`,children:[u(Icon,{...K,strokeWidth:Y,shape:`circle`,height:re,fill:te,stroke:Z,imageFontFamily:ie,imageChar:le,imageCharFill:ne,padding:ce,xOffset:oe,yOffset:se,cornerRadius:G,shapeRendering:ue}),ye]}),u(`g`,{transform:`translate(${-pe/2} 0)`,children:[be,_e]}),Se]})},CentroidVertex4=function({id:e,categoryID:t=``,text:n=``,textHeight:a=12,textPadding:s=10,textFill:l=`#287EC4`,textboxFill:m=`white`,textboxStroke:v=`#CCCCCC`,textboxStrokeWidth:T=1,textFontFamily:O=`Verdana`,annotationGutter:k=2,annotations:A=[],iconAnnotations:U=[],cornerRadius:G,icon:K={},subText:q={},showLabel:J=!0,noLabelRadius:ee=5,iconBorderWidth:Y=1,iconBorderColor:Z=`#333`,iconBackgroundColor:te=`#fff`,iconFontColor:ne=`#000`,iconFontSize:re=20,iconFontFamily:ie=`FontAwesome`,shapeOffsetX:ae=0,shapeOffsetY:Q=0,iconOffsetX:oe=0,iconOffsetY:se=0,iconPadding:ce=4,iconText:le=`?`,shapeRendering:ue=`auto`}){return K={height:91,padding:40,imageCharFill:`#555555`,imageFontFamily:`FontAwesome`,fill:`#FFCC33`,stroke:`#DFDFDF`,imageChar:`?`,strokeWidth:4,yOffset:-15,...K},q={text:``,fill:`transparent`,textFill:`#555555`,...q},u(Vertex4,{id:e,categoryID:t,text:n,textHeight:a,textPadding:s,textFill:l,textboxFill:m,textboxStroke:v,textboxStrokeWidth:T,textFontFamily:O,annotationGutter:k,annotations:A,iconAnnotations:U,cornerRadius:G,icon:K,subText:q,showLabel:J,noLabelRadius:ee,iconBorderWidth:Y,iconBorderColor:Z,iconBackgroundColor:te,iconFontColor:ne,iconFontSize:re,iconFontFamily:ie,shapeOffsetX:ae,shapeOffsetY:Q,iconOffsetX:oe,iconOffsetY:se,iconPadding:ce,iconText:le,shapeRendering:ue,icon:K,subText:q})},Subgraph=({text:e,width:n=100,height:a=100,fill:s=`transparent`,stroke:l=`black`,fontHeight:m=12,fontFamily:v})=>{let T=t.Utility.textSize(e,v,m,!1);return u(S,{children:[u(Rectangle,{width:n,height:a,fill:s,stroke:l}),u(`g`,{transform:`translate(${(-n+T.width)/2+4} ${(-a+T.height)/2+4})`,children:u(Text,{height:m,text:e,fontFamily:v})})]})};e.Annotations=Annotations,e.BUILD_VERSION=l,e.CentroidVertex3=CentroidVertex3,e.CentroidVertex4=CentroidVertex4,e.Circle=Circle,e.Edge=Edge,e.HTMLAdapter=HTMLAdapter,e.Icon=Icon,e.IconLabelledRect=IconLabelledRect,e.Icons=Icons,e.Image=Image,e.ImageChar=ImageChar,e.LabelledRect=LabelledRect,e.PKG_NAME=a,e.PKG_VERSION=s,Object.defineProperty(e,"React",{enumerable:!0,get:function(){return je}}),e.Rectangle=Rectangle,e.SVGAdapter=SVGAdapter,e.Shape=Shape,e.Span=Span,e.Square=Square,e.Subgraph=Subgraph,e.Text=Text,e.TextBox=TextBox,e.TextLine=TextLine,e.Vertex=Vertex,e.Vertex2=Vertex2,e.Vertex3=Vertex3,e.Vertex4=Vertex4,e.render=render,e.svgRender=svgRender});
|
|
3
|
+
//# sourceMappingURL=index.umd.cjs.map
|