@hpcc-js/react 3.4.19 → 3.5.0

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 CHANGED
@@ -1,42 +1,1414 @@
1
- var t=Object.defineProperty,e=(e,n)=>t(e,"name",{value:n,configurable:!0});import{Utility as n,Palette as i,HTMLWidget as o,SVGWidget as r}from"@hpcc-js/common";const l="@hpcc-js/react",_="3.4.19",a="3.24.0";var s,c,u,h,f,d,p,g,m,x,y,v,k,F,b={},C=[],w=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,S=Array.isArray;function $(t,e){for(var n in e)t[n]=e[n];return t}function R(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function W(t,e,n){var i,o,r,l={};for(r in e)"key"==r?i=e[r]:"ref"==r?o=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?s.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(r in t.defaultProps)void 0===l[r]&&(l[r]=t.defaultProps[r]);return P(t,l,i,o,null)}function P(t,e,n,i,o){var r={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u:o,__i:-1,__u:0};return null==o&&null!=c.vnode&&c.vnode(r),r}function H(t){return t.children}function O(t,e){this.props=t,this.context=e}function A(t,e){if(null==e)return t.__?A(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?A(t):null}function T(t){if(t.__P&&t.__d){var e=t.__v,n=e.__e,i=[],o=[],r=$({},e);r.__v=e.__v+1,c.vnode&&c.vnode(r),q(t.__P,r,e,t.__n,t.__P.namespaceURI,32&e.__u?[n]:null,i,null==n?A(e):n,!!(32&e.__u),o),r.__v=e.__v,r.__.__k[r.__i]=r,X(i,r,o),e.__e=e.__=null,r.__e!=n&&D(r)}}function D(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}),D(t)}function N(t){(!t.__d&&(t.__d=!0)&&h.push(t)&&!U.__r++||f!=c.debounceRendering)&&((f=c.debounceRendering)||d)(U)}function U(){try{for(var t,e=1;h.length;)h.length>e&&h.sort(p),t=h.shift(),e=h.length,T(t)}finally{h.length=U.__r=0}}function z(t,e,n,i,o,r,l,_,a,s,c){var u,h,f,d,p,g,m,x=i&&i.__k||C,y=e.length;for(a=E(n,e,x,a,y),u=0;u<y;u++)null!=(f=n.__k[u])&&(h=-1!=f.__i&&x[f.__i]||b,f.__i=u,g=q(t,f,h,o,r,l,_,a,s,c),d=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&Z(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=L(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 E(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]=P(null,l,null,null,null):S(l)?l=t.__k[r]=P(H,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[r]=P(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=V(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=A(_)),K(_,_));return i}function L(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=L(o[r],e,n,i));return e}t.__e!=e&&(i&&(e&&t.type&&!e.parentNode&&(e=A(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function I(t,e){return e=e||[],null==t||"boolean"==typeof t||(S(t)?t.some(function(t){I(t,e)}):e.push(t)),e}function V(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 M(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||w.test(e)?n:n+"px"}function B(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||M(t.style,e,"");if(n)for(e in n)i&&n[e]==i[e]||M(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(y,"$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[x]=i[x]:(n[x]=v,t.addEventListener(e,r?F:k,r)):t.removeEventListener(e,r?F:k,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 j(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e[m])e[m]=v++;else if(e[m]<n[x])return;return n(c.event?c.event(e):e)}}}function q(t,e,n,i,o,r,l,_,a,s){var u,h,f,d,p,g,m,x,y,v,k,F,b,w,W,P=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(a=!!(32&n.__u),r=[_=e.__e=n.__e]),(u=c.__b)&&u(e);t:if("function"==typeof P)try{if(x=e.props,y=P.prototype&&P.prototype.render,v=(u=P.contextType)&&i[u.__c],k=u?v?v.props.value:u.__:i,n.__c?m=(h=e.__c=n.__c).__=h.__E:(y?e.__c=h=new P(x,k):(e.__c=h=new O(x,k),h.constructor=P,h.render=Q),v&&v.sub(h),h.state||(h.state={}),h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),y&&null==h.__s&&(h.__s=h.state),y&&null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=$({},h.__s)),$(h.__s,P.getDerivedStateFromProps(x,h.__s))),d=h.props,p=h.state,h.__v=e,f)y&&null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),y&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(y&&null==P.getDerivedStateFromProps&&x!==d&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(x,k),e.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(x,h.__s,k)){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)}),C.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&l.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(x,h.__s,k),y&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(d,p,g)})}if(h.context=k,h.props=x,h.__P=t,h.__e=!1,F=c.__r,b=0,y)h.state=h.__s,h.__d=!1,F&&F(e),u=h.render(h.props,h.state,h.context),C.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,F&&F(e),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++b<25);h.state=h.__s,null!=h.getChildContext&&(i=$($({},i),h.getChildContext())),y&&!f&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(d,p)),w=null!=u&&u.type===H&&null==u.key?Y(u.props.children):u,_=z(t,S(w)?w:[w],e,n,i,o,r,l,_,a,s),h.base=e.__e,e.__u&=-161,h.__h.length&&l.push(h),m&&(h.__E=h.__=null)}catch(A){if(e.__v=null,a||null!=r)if(A.then){for(e.__u|=a?160:128;_&&8==_.nodeType&&_.nextSibling;)_=_.nextSibling;r[r.indexOf(_)]=null,e.__e=_}else{for(W=r.length;W--;)R(r[W]);G(e)}else e.__e=n.__e,e.__k=n.__k,A.then||G(e);c.__e(A,e,n)}else null==r&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):_=e.__e=J(n.__e,e,n,i,o,r,l,a,s);return(u=c.diffed)&&u(e),128&e.__u?void 0:_}function G(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(G))}function X(t,e,n){for(var i=0;i<n.length;i++)Z(n[i],n[++i],n[++i]);c.__c&&c.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(n){c.__e(n,e.__v)}})}function Y(t){return"object"!=typeof t||null==t||t.__b>0?t:S(t)?t.map(Y):void 0!==t.constructor?null:$({},t)}function J(t,e,n,i,o,r,l,_,a){var u,h,f,d,p,g,m,x=n.props||b,y=e.props,v=e.type;if("svg"==v?o="http://www.w3.org/2000/svg":"math"==v?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(u=0;u<r.length;u++)if((p=r[u])&&"setAttribute"in p==!!v&&(v?p.localName==v:3==p.nodeType)){t=p,r[u]=null;break}if(null==t){if(null==v)return document.createTextNode(y);t=document.createElementNS(o,v,y.is&&y),_&&(c.__m&&c.__m(e,r),_=!1),r=null}if(null==v)x===y||_&&t.data==y||(t.data=y);else{if(r="textarea"==v&&null!=y.defaultValue?null:r&&s.call(t.childNodes),!_&&null!=r)for(x={},u=0;u<t.attributes.length;u++)x[(p=t.attributes[u]).name]=p.value;for(u in x)p=x[u],"dangerouslySetInnerHTML"==u?f=p:"children"==u||u in y||"value"==u&&"defaultValue"in y||"checked"==u&&"defaultChecked"in y||B(t,u,null,p,o);for(u in y)p=y[u],"children"==u?d=p:"dangerouslySetInnerHTML"==u?h=p:"value"==u?g=p:"checked"==u?m=p:_&&"function"!=typeof p||x[u]===p||B(t,u,p,x[u],o);if(h)_||f&&(h.__html==f.__html||h.__html==t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(f&&(t.innerHTML=""),z("template"==e.type?t.content:t,S(d)?d:[d],e,n,i,"foreignObject"==v?"http://www.w3.org/1999/xhtml":o,r,l,r?r[0]:n.__k&&A(n,0),_,a),null!=r)for(u=r.length;u--;)R(r[u]);_&&"textarea"!=v||(u="value","progress"==v&&null==g?t.removeAttribute("value"):null!=g&&(g!==t[u]||"progress"==v&&!g||"option"==v&&g!=x[u])&&B(t,u,g,x[u],o),u="checked",null!=m&&m!=t[u]&&B(t,u,m,x[u],o))}return t}function Z(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){c.__e(o,n)}}function K(t,e,n){var i,o;if(c.unmount&&c.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||Z(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(r){c.__e(r,e)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&K(i[o],e,n||"function"!=typeof t.type);n||R(t.__e),t.__c=t.__=t.__e=void 0}function Q(t,e,n){return this.constructor(t,n)}function tt(t,e,n){var i,o,r,l;e==document&&(e=document.documentElement),c.__&&c.__(t,e),o=(i="function"==typeof n)?null:n&&n.__k||e.__k,r=[],l=[],q(e,t=(!i&&n||e).__k=W(H,null,[t]),o||b,b,e.namespaceURI,!i&&n?[n]:o?null:e.firstChild?s.call(e.childNodes):null,r,!i&&n?n:o?o.__e:e.firstChild,i,l),X(r,t,l)}e($,"m$1"),e(R,"b"),e(W,"k$1"),e(P,"x"),e(H,"S"),e(O,"C$1"),e(A,"$"),e(T,"I"),e(D,"P$1"),e(N,"A"),e(U,"H$1"),e(z,"L"),e(E,"T$2"),e(L,"j$2"),e(I,"F"),e(V,"O$1"),e(M,"z$1"),e(B,"N"),e(j,"V$1"),e(q,"q$2"),e(G,"B$2"),e(X,"D$1"),e(Y,"E$1"),e(J,"G$1"),e(Z,"J$1"),e(K,"K$1"),e(Q,"Q$1"),e(tt,"R"),s=C.slice,c={__e:/* @__PURE__ */e(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")},u=0,O.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=$({},this.state),"function"==typeof t&&(t=t($({},n),this.props)),t&&$(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),N(this))},O.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),N(this))},O.prototype.render=H,h=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=/* @__PURE__ */e(function(t,e){return t.__v.__b-e.__v.__b},"e$1"),U.__r=0,g=Math.random().toString(8),m="__d"+g,x="__a"+g,y=/(PointerCapture)$|Capture$/i,v=0,k=j(!1),F=j(!0);var et=0;function nt(t,e,n,i,o,r){e||(e={});var l,_,a=e;if("ref"in a)for(_ in a={},e)"ref"==_?l=e[_]:a[_]=e[_];var s={type:t,props:a,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--et,__i:-1,__u:0,__source:o,__self:r};if("function"==typeof t&&(l=t.defaultProps))for(_ in l)void 0===a[_]&&(a[_]=l[_]);return c.vnode&&c.vnode(s),s}e(nt,"u$1");var it,ot,rt,lt,_t=0,at=[],st=c,ct=st.__b,ut=st.__r,ht=st.diffed,ft=st.__c,dt=st.unmount,pt=st.__;function gt(t,e){st.__h&&st.__h(ot,t,_t||e),_t=0;var n=ot.__H||(ot.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function mt(t){return _t=1,xt(Wt,t)}function xt(t,n,i){var o=gt(it++,2);if(o.t=t,!o.__c&&(o.__=[i?i(n):Wt(void 0,n),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=ot,!ot.__f)){var r=/* @__PURE__ */e(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");ot.__f=!0;var l=ot.shouldComponentUpdate,_=ot.componentWillUpdate;ot.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)},ot.shouldComponentUpdate=r}return o.__N||o.__}function yt(t,e){var n=gt(it++,3);!st.__s&&Rt(n.__H,e)&&(n.__=t,n.u=e,ot.__H.__h.push(n))}function vt(t,e){var n=gt(it++,4);!st.__s&&Rt(n.__H,e)&&(n.__=t,n.u=e,ot.__h.push(n))}function kt(t,e){var n=gt(it++,7);return Rt(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function Ft(t,e){return _t=8,kt(function(){return t},e)}function bt(){for(var t;t=at.shift();){var e=t.__H;if(t.__P&&e)try{e.__h.some(St),e.__h.some($t),e.__h=[]}catch(n){e.__h=[],st.__e(n,t.__v)}}}e(gt,"p"),e(mt,"d"),e(xt,"h"),e(yt,"y"),e(vt,"_"),e(kt,"T$1"),e(Ft,"q$1"),e(bt,"j$1"),st.__b=function(t){ot=null,ct&&ct(t)},st.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),pt&&pt(t,e)},st.__r=function(t){ut&&ut(t),it=0;var e=(ot=t.__c).__H;e&&(rt===ot?(e.__h=[],ot.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(St),e.__h.some($t),e.__h=[],it=0)),rt=ot},st.diffed=function(t){ht&&ht(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==at.push(e)&&lt===st.requestAnimationFrame||((lt=st.requestAnimationFrame)||wt)(bt)),e.__H.__.some(function(t){t.u&&(t.__H=t.u),t.u=void 0})),rt=ot=null},st.__c=function(t,e){e.some(function(t){try{t.__h.some(St),t.__h=t.__h.filter(function(t){return!t.__||$t(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],st.__e(n,t.__v)}}),ft&&ft(t,e)},st.unmount=function(t){dt&&dt(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.some(function(t){try{St(t)}catch(n){e=n}}),n.__H=void 0,e&&st.__e(e,n.__v))};var Ct="function"==typeof requestAnimationFrame;function wt(t){var n,i=/* @__PURE__ */e(function(){clearTimeout(o),Ct&&cancelAnimationFrame(n),setTimeout(t)},"r"),o=setTimeout(i,35);Ct&&(n=requestAnimationFrame(i))}function St(t){var e=ot,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),ot=e}function $t(t){var e=ot;t.__c=t.__(),ot=e}function Rt(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function Wt(t,e){return"function"==typeof e?e(t):e}function Pt(t,e){for(var n in e)t[n]=e[n];return t}function Ht(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 Ot(t,e){this.props=t,this.context=e}e(wt,"w"),e(St,"z"),e($t,"B$1"),e(Rt,"C"),e(Wt,"D"),e(Pt,"g"),e(Ht,"E"),e(Ot,"M"),(Ot.prototype=new O).isPureReactComponent=!0,Ot.prototype.shouldComponentUpdate=function(t,e){return Ht(this.props,t)||Ht(this.state,e)};var At=c.__b;c.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),At&&At(t)};var Tt=c.__e;c.__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);Tt(t,e,n,i)};var Dt=c.unmount;function Nt(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=Pt({},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 Nt(t,e,n)})),t}function Ut(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return Ut(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 zt(){this.__u=0,this.o=null,this.__b=null}function Et(t){var e=t.__&&t.__.__c;return e&&e.__a&&e.__a(t)}function Lt(){this.i=null,this.l=null}e(Nt,"V"),e(Ut,"W"),e(zt,"P"),e(Et,"j"),e(Lt,"B"),c.unmount=function(t){var e=t.__c;e&&(e.__z=!0),e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Dt&&Dt(t)},(zt.prototype=new O).__c=function(t,n){var i=n.__c,o=this;null==o.o&&(o.o=[]),o.o.push(i);var r=Et(o.__v),l=!1,_=/* @__PURE__ */e(function(){l||o.__z||(l=!0,i.__R=null,r?r(s):s())},"i");i.__R=_;var a=i.__P;i.__P=null;var s=/* @__PURE__ */e(function(){if(! --o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=Ut(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&n.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(_,_)},zt.prototype.componentWillUnmount=function(){this.o=[]},zt.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]=Nt(this.__b,n,i.__O=i.__P)}this.__b=null}var o=e.__a&&W(H,null,t.fallback);return o&&(o.__u&=-33),[W(H,null,e.__a?null:t.children),o]};var It=/* @__PURE__ */e(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");(Lt.prototype=new O).__a=function(t){var n=this,i=Et(n.__v),o=n.l.get(t);return o[0]++,function(r){var l=/* @__PURE__ */e(function(){n.props.revealOrder?(o.push(r),It(n,t,o)):r()},"o");i?i(l):l()}},Lt.prototype.render=function(t){this.i=null,this.l=/* @__PURE__ */new Map;var e=I(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},Lt.prototype.componentDidUpdate=Lt.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){It(t,n,e)})};var Vt="undefined"!=typeof Symbol&&Symbol.for&&/* @__PURE__ */Symbol.for("react.element")||60103,Mt=/^(?: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]/,Bt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,jt=/[A-Z0-9]/g,qt="undefined"!=typeof document,Gt=/* @__PURE__ */e(function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof/* @__PURE__ */Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)},"X");O.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(O.prototype,t,{configurable:!0,get:/* @__PURE__ */e(function(){return this["UNSAFE_"+t]},"get"),set:/* @__PURE__ */e(function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})},"set")})});var Xt=c.event;c.event=function(t){return Xt&&(t=Xt(t)),t.persist=function(){},t.isPropagationStopped=function(){return this.cancelBubble},t.isDefaultPrevented=function(){return this.defaultPrevented},t.nativeEvent=t};var Yt={configurable:!0,get:/* @__PURE__ */e(function(){return this.class},"get")},Jt=c.vnode;c.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||qt&&"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||Gt(e.type)?"onfocus"===_?r="onfocusin":"onblur"===_?r="onfocusout":Bt.test(r)&&(r=_):_=r="oninput":o&&Mt.test(r)?r=r.replace(jt,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===_&&i[r=_]&&(r="oninputCapture"),i[r]=l}}"select"==n&&(i.multiple&&Array.isArray(i.value)&&(i.value=I(e.children).forEach(function(t){t.props.selected=-1!=i.value.indexOf(t.props.value)})),null!=i.defaultValue&&(i.value=I(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",Yt)):e.className&&(i.class=i.className=e.className),t.props=i}(t),t.$$typeof=Vt,Jt&&Jt(t)};var Zt=c.__r;c.__r=function(t){Zt&&Zt(t),t.__c};var Kt=c.diffed;function Qt(t){return!!t.__k&&(tt(null,t),!0)}c.diffed=function(t){Kt&&Kt(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)},e(Qt,"pn");const te=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,Component:O,Fragment:H,createElement:W,h:W,render:tt,unmountComponentAtNode:Qt,useCallback:Ft,useEffect:yt,useLayoutEffect:vt,useMemo:kt,useReducer:xt,useState:mt},Symbol.toStringTag,{value:"Module"})),ee=/* @__PURE__ */e(({href:t,x:e,y:n=0,height:i=12})=>/* @__PURE__ */nt("image",{xlinkHref:t,x:e-i/2,y:n-i/2,width:i,height:i}),"Image"),ne=/* @__PURE__ */e(({x:t,y:e=0,height:i=12,fill:o,stroke:r,fontFamily:l="FontAwesome",char:_="",fontWeight:a})=>{const s=kt(()=>"FontAwesome"===l?n.faChar(_):_,[_,l]);/* @__PURE__ */
2
- return nt("text",{x:t,y:e,fill:o,stroke:r,fontFamily:l,fontSize:`${i}px`,fontWeight:a,dominantBaseline:"middle",style:{textAnchor:"middle",alignmentBaseline:"middle"},children:s})},"ImageChar"),ie=/* @__PURE__ */e(({radius:t=32,fill:e="navy",stroke:n=e,strokeWidth:i=1,shapeRendering:o})=>/* @__PURE__ */nt("circle",{r:t,fill:e,stroke:n,strokeWidth:i,shapeRendering:o}),"Circle"),oe=/* @__PURE__ */e(({radius:t=30,cornerRadius:e=0,fill:n="white",stroke:i,strokeWidth:o=1,shapeRendering:r})=>/* @__PURE__ */nt("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"),re=/* @__PURE__ */e(({width:t=30,height:e=30,cornerRadius:n=0,fill:i="white",stroke:o="black",strokeWidth:r=1,shapeRendering:l})=>/* @__PURE__ */nt("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"),le=/* @__PURE__ */e(({shape:t="circle",height:e=128,width:n,fill:i,stroke:o,strokeWidth:r=1,shapeRendering:l,cornerRadius:_})=>{switch(t){case"square":/* @__PURE__ */
3
- return nt(oe,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:_});case"rectangle":/* @__PURE__ */
4
- return nt(re,{width:n??e,height:e,fill:i,stroke:o,strokeWidth:r,shapeRendering:l,cornerRadius:_});default:/* @__PURE__ */
5
- return nt(ie,{radius:e/2,fill:i,stroke:o,strokeWidth:r,shapeRendering:l})}},"Shape"),_e=/* @__PURE__ */e(({shape:t="circle",width:e,height:n=32,fill:o,stroke:r,strokeWidth:l=0,imageUrl:_="",imageFontFamily:a="FontAwesome",imageChar:s="",imageCharFill:c=i.textColor(o),padding:u=n/5,xOffset:h=0,yOffset:f=0,cornerRadius:d,shapeRendering:p})=>/* @__PURE__ */nt(H,{children:[
6
- /* @__PURE__ */nt(le,{shape:t,width:e,height:n,fill:o,stroke:r,strokeWidth:l,shapeRendering:p,cornerRadius:d}),_?/* @__PURE__ */nt(ee,{href:_,x:h,y:f,height:n-u}):/* @__PURE__ */nt(ne,{x:h,y:f,height:n-u,fontFamily:a,char:s,fill:c,fontWeight:400})]}),"Icon"),ae=/* @__PURE__ */e(({icons:t=[]})=>/* @__PURE__ */nt(H,{children:t.map(t=>/* @__PURE__ */nt("g",{id:t.id,children:/* @__PURE__ */nt(_e,{...t})},t.id))}),"Icons"),se=/* @__PURE__ */e(({text:t,height:e=12,anchor:n="middle",baseline:i="middle",fontFamily:o="Verdana",fill:r="black"})=>/* @__PURE__ */nt("text",{"font-family":o,"font-size":`${e}px`,"text-anchor":n,"dominant-baseline":i,fill:r,children:t}),"TextLine"),ce=/* @__PURE__ */e(({text:t,height:e=12,fontFamily:i="Verdana",fill:o="black",onSizeUpdate:r})=>{const[l,_]=mt(0),[a,s]=mt(0);yt(()=>{r&&r({width:l,height:a})},[l,a,r]);const c=kt(()=>t.split("\n"),[t]);vt(()=>{const t=n.textSize(c,i,e);_(t.width),s(t.height)},[i,e,c]);/* @__PURE__ */
7
- return nt("g",{children:kt(()=>{const t=-a/2+e/2;return c.map((n,r)=>/* @__PURE__ */nt("g",{transform:`translate(0 ${t+r*(e+2)})`,children:/* @__PURE__ */nt(se,{text:n,height:e,fontFamily:i,fill:o})},`key-${r}`))},[c,a,e,i,o])})},"Text"),ue=/* @__PURE__ */e(({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]=mt(0),[h,f]=mt(0);yt(()=>{s&&s({width:c,height:h})},[c,h,s]);const d=Ft(t=>{u(t.width),f(t.height)},[]),p=c+2*i+_,g=h+2*i+_,m=Math.floor(e/10);/* @__PURE__ */
8
- return nt(H,{children:[
9
- /* @__PURE__ */nt(re,{width:p,height:g,fill:o,stroke:r,strokeWidth:_,cornerRadius:a}),
10
- /* @__PURE__ */nt("g",{transform:`translate(0 ${m})`,children:/* @__PURE__ */nt(ce,{text:t,fontFamily:n,height:e,fill:l,onSizeUpdate:d})})]})},"TextBox"),he=/* @__PURE__ */e(({text:t,height:e=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]=mt(i),[p,g]=mt(e);return vt(()=>{const e=n.textSize(t,o,r);d(e.width+2*l),g(e.height+2*l)},[t,o,r,l]),vt(()=>{h&&h({width:f,height:p})},[f,p,l,h]),/* @__PURE__ */nt(H,{children:[
11
- /* @__PURE__ */nt(re,{width:i,height:e,fill:_,stroke:a,strokeWidth:c,cornerRadius:u}),
12
- /* @__PURE__ */nt("g",{transform:`translate(${-i/2+l} ${-e/2+l})`,children:/* @__PURE__ */nt(se,{text:t,fontFamily:o,height:r,fill:s,anchor:"start",baseline:"hanging"})})]})},"LabelledRect"),fe=/* @__PURE__ */e(({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})=>/* @__PURE__ */nt(H,{children:[
13
- /* @__PURE__ */nt(re,{width:o,height:i,fill:a,stroke:s,strokeWidth:u,cornerRadius:h}),
14
- /* @__PURE__ */nt("g",{transform:`translate(${-o/2+_} ${-i/2+_})`,children:/* @__PURE__ */nt(_e,{shape:"square",imageFontFamily:e,imageChar:t,height:i,fill:a,imageCharFill:c})}),
15
- /* @__PURE__ */nt("g",{transform:`translate(${-o/2+2*_+i} ${-i/2+_})`,children:/* @__PURE__ */nt(se,{text:n,fontFamily:r,height:l,fill:c,anchor:"start",baseline:"hanging"})})]}),"IconLabelledRect"),de=/* @__PURE__ */e(({label:t,labelPos:e,labelFill:n="black",labelHeight:i=12,path:o,stroke:r,strokeWidth:l,strokeDasharray:_})=>/* @__PURE__ */nt(H,{children:[
16
- /* @__PURE__ */nt("path",{d:o,stroke:r,style:{strokeWidth:l,strokeDasharray:_}}),t&&e&&2===e.length?/* @__PURE__ */nt("g",{transform:`translate(${e[0]} ${e[1]})`,children:/* @__PURE__ */nt(ce,{text:t,fill:n,height:i})}):void 0]}),"Edge");function pe(t,e,n,i){tt(W(t,e),n,i)}function ge(t,e,n,i){tt(W("svg",null,W(t,e)),n,i)}e(pe,"render"),e(ge,"svgRender");const me=class _HTMLAdapter extends o{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),pe(this._component,this._props,t)}};e(me,"HTMLAdapter");let xe=me;xe.prototype._class+=" react_HTMLAdapter",xe.prototype.publish("props",{},"object","Properties");const ye=class _SVGAdapter extends r{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),pe(this._component,this._props,t)}};e(ye,"SVGAdapter");let ve=ye;ve.prototype._class+=" react_SVGAdapter",ve.prototype.publish("props",{},"object","Properties");const ke=/* @__PURE__ */e(({text:t})=>/* @__PURE__ */nt("span",{children:t}),"Span"),Fe=/* @__PURE__ */e(({x:t,y:e,annotationIDs:n=[],stepSize:i=-16})=>/* @__PURE__ */nt(H,{children:n.map((n,o)=>/* @__PURE__ */nt("g",{transform:`translate(${t+o*i} ${e})`,children:/* @__PURE__ */nt("use",{xlinkHref:"#"+n})},n))}),"Annotations"),be=/* @__PURE__ */e(({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]=mt(0),[g,m]=mt(0);yt(()=>{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=Ft(t=>{p(t.width),m(t.height)},[]),b=h?/* @__PURE__ */nt("g",{transform:`translate(0 ${v})`,children:/* @__PURE__ */nt(ue,{text:e,height:n,padding:i,onSizeUpdate:F,textFill:_,fill:a,stroke:s,fontFamily:c})}):void 0;/* @__PURE__ */
17
- return nt("g",t?{transform:`translate(0 ${y}) scale(${f})`,children:[
18
- /* @__PURE__ */nt("use",{xlinkHref:"#"+t}),b,
19
- /* @__PURE__ */nt(Fe,{x:x/2,y:k,annotationIDs:l})]}:{transform:`translate(0 ${y}) scale(${f})`,children:[
20
- /* @__PURE__ */nt(_e,{...o}),b]})},"Vertex"),Ce=/* @__PURE__ */e(({categoryID:t="",text:e="",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}=kt(()=>n.textSize(e,s,i,!1),[e,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?/* @__PURE__ */nt("g",{transform:`translate(0 ${g})`,children:[
21
- /* @__PURE__ */nt("g",{transform:`translate(${m} 0)`,children:/* @__PURE__ */nt("use",{xlinkHref:"#"+t})}),
22
- /* @__PURE__ */nt("g",{transform:`translate(${x} ${y})`,children:/* @__PURE__ */nt(ue,{text:e,height:i,padding:o,strokeWidth:1,stroke:a,fill:_,textFill:l,fontFamily:s})}),
23
- /* @__PURE__ */nt(Fe,{x:v,y:k,annotationIDs:u,stepSize:d})]}):/* @__PURE__ */nt(H,{children:[
24
- /* @__PURE__ */nt("g",{transform:`translate(${m} 0)scale(1.0002)`,children:/* @__PURE__ */nt(_e,{...r,shape:"square"})}),
25
- /* @__PURE__ */nt("g",{transform:`translate(${x} ${y})scale(1.0002)`,children:/* @__PURE__ */nt(ue,{text:e,height:i,padding:o,stroke:a,fill:_})})]})},"Vertex2"),we=/* @__PURE__ */e(({text:t="",textHeight:e=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=kt(()=>n.textSize(t,a,e,!1).width,[t,a,e]);let v=0;""!==t&&(v=y+2*i+2*_),x+=v+s;const k=x-v/2,F=e+2*i+2*_,b=[];c.forEach((t,e)=>{const n=t.imageChar;x+=F+s;const i=x-F/2;b.push(
26
- /* @__PURE__ */nt("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${i} 0)`,children:/* @__PURE__ */nt(_e,{...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=/* @__PURE__ */nt("g",{"data-click":"text",transform:`translate(${k} 0)`,children:d&&""!==t?/* @__PURE__ */nt(ue,{text:t,height:e,padding:i,strokeWidth:_,stroke:l,fill:r,textFill:o,fontFamily:a,cornerRadius:u}):/* @__PURE__ */nt("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:/* @__PURE__ */nt("g",{"data-click":"subtext",transform:`translate(0 ${R})`,children:/* @__PURE__ */nt(ue,{fill:f.fill||"#FFFFFF",textFill:f.textFill||o,...f,height:e,padding:i,strokeWidth:0,stroke:l,fontFamily:a,cornerRadius:u})});/* @__PURE__ */
27
- return nt("g",{transform:`scale(${m})`,children:[
28
- /* @__PURE__ */nt("g",{"data-click":"icon",transform:`translate(0 ${$})`,children:[
29
- /* @__PURE__ */nt(_e,{...h}),g&&/* @__PURE__ */nt("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:/* @__PURE__ */nt(_e,{...g})})]}),
30
- /* @__PURE__ */nt("g",{transform:`translate(${-x/2} 0)`,children:[C,b]}),W]})},"Vertex3"),Se=/* @__PURE__ */e(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};/* @__PURE__ */
31
- return nt(we,{...{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"),$e=/* @__PURE__ */e(({categoryID:t="",text:e="",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=kt(()=>n.textSize(e,s,i,!1).width,[e,s,i]);let O=0;""!==e&&(O=H+2*o+2*a);let A=O+c;const T=A-O/2,D=i+2*c+2*a,N=u.map(t=>n.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width),U=[];let z=A;u.forEach((t,e)=>{const n=t.imageChar,i=t.height??D;z+=N[e]+c;const o=z-N[e]/2;U.push(
32
- /* @__PURE__ */nt("g",{className:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:`translate(${o} 0)`,children:/* @__PURE__ */nt(_e,{...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 E=[];h.forEach((t,e)=>{const n=t.shapeOffsetX,i=t.shapeOffsetY;E.push(
33
- /* @__PURE__ */nt("g",{className:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:`translate(${n} ${i})`,children:/* @__PURE__ */nt(_e,{...t,shape:t.shape??"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:f,stroke:t.stroke,strokeWidth:t.strokeWidth})},e))});const L=/* @__PURE__ */nt("g",{"data-click":"text",transform:`translate(${T} 0)`,children:g&&""!==e?/* @__PURE__ */nt(ue,{text:e,height:i,padding:o,strokeWidth:a,stroke:_,fill:l,textFill:r,fontFamily:s,cornerRadius:f}):/* @__PURE__ */nt("circle",{r:m,stroke:_,fill:r})}),I=D+2*c,V=""===p.text?null:/* @__PURE__ */nt("g",{"data-click":"subtext",transform:`translate(0 ${I})`,children:/* @__PURE__ */nt(ue,{fill:p.fill||"#FFFFFF",textFill:p.textFill||r,...p,height:i,padding:o,strokeWidth:0,stroke:_,fontFamily:s,cornerRadius:f})});/* @__PURE__ */
34
- return nt("g",{children:[
35
- /* @__PURE__ */nt("g",{"data-click":"icon",transform:`translate(${C} ${w})`,children:[
36
- /* @__PURE__ */nt(_e,{...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}),E]}),
37
- /* @__PURE__ */nt("g",{transform:`translate(${-A/2} 0)`,children:[L,U]}),V]})},"Vertex4"),Re=/* @__PURE__ */e(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};/* @__PURE__ */
38
- return nt($e,{...{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"),We=/* @__PURE__ */e(({text:t,width:e=100,height:i=100,fill:o="transparent",stroke:r="black",fontHeight:l=12,fontFamily:_})=>{const a=n.textSize(t,_,l,!1);/* @__PURE__ */
39
- return nt(H,{children:[
40
- /* @__PURE__ */nt(re,{width:e,height:i,fill:o,stroke:r}),
41
- /* @__PURE__ */nt("g",{transform:`translate(${(-e+a.width)/2+4} ${(-i+a.height)/2+4})`,children:/* @__PURE__ */nt(ce,{height:l,text:t,fontFamily:_})})]})},"Subgraph");export{Fe as Annotations,a as BUILD_VERSION,Se as CentroidVertex3,Re as CentroidVertex4,ie as Circle,de as Edge,xe as HTMLAdapter,_e as Icon,fe as IconLabelledRect,ae as Icons,ee as Image,ne as ImageChar,he as LabelledRect,l as PKG_NAME,_ as PKG_VERSION,te as React,re as Rectangle,ve as SVGAdapter,le as Shape,ke as Span,oe as Square,We as Subgraph,ce as Text,ue as TextBox,se as TextLine,be as Vertex,Ce as Vertex2,we as Vertex3,$e as Vertex4,pe as render,ge as svgRender};
42
- //# sourceMappingURL=index.js.map
1
+ import { HTMLWidget as e, Palette as t, SVGWidget as n, Utility as a } from "@hpcc-js/common";
2
+ //#region \0rolldown/runtime.js
3
+ var s = Object.defineProperty, __name = (e, t) => s(e, "name", {
4
+ value: t,
5
+ configurable: !0
6
+ }), __exportAll = (e, t) => {
7
+ let n = {};
8
+ for (var a in e) s(n, a, {
9
+ get: e[a],
10
+ enumerable: !0
11
+ });
12
+ return t || s(n, Symbol.toStringTag, { value: "Module" }), n;
13
+ }, l = "@hpcc-js/react", m = "3.5.0", v = "3.26.0", T, O, k, A, U, G, K, q, J, ee, Y, Z, Q, te, ne = {}, re = [], ie = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, ae = Array.isArray;
14
+ function m$1(e, t) {
15
+ for (var n in t) e[n] = t[n];
16
+ return e;
17
+ }
18
+ __name(m$1, "m");
19
+ function b(e) {
20
+ e && e.parentNode && e.parentNode.removeChild(e);
21
+ }
22
+ function k$1(e, t, n) {
23
+ var a, s, l, m = {};
24
+ for (l in t) l == "key" ? a = t[l] : l == "ref" ? s = t[l] : m[l] = t[l];
25
+ if (arguments.length > 2 && (m.children = arguments.length > 3 ? T.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (l in e.defaultProps) m[l] === void 0 && (m[l] = e.defaultProps[l]);
26
+ return x(e, m, a, s, null);
27
+ }
28
+ __name(k$1, "k");
29
+ function x(e, t, n, a, s) {
30
+ var l = {
31
+ type: e,
32
+ props: t,
33
+ key: n,
34
+ ref: a,
35
+ __k: null,
36
+ __: null,
37
+ __b: 0,
38
+ __e: null,
39
+ __c: null,
40
+ constructor: void 0,
41
+ __v: s ?? ++k,
42
+ __i: -1,
43
+ __u: 0
44
+ };
45
+ return s == null && O.vnode != null && O.vnode(l), l;
46
+ }
47
+ function S(e) {
48
+ return e.children;
49
+ }
50
+ function C$1(e, t) {
51
+ this.props = e, this.context = t;
52
+ }
53
+ __name(C$1, "C");
54
+ function $(e, t) {
55
+ if (t == null) return e.__ ? $(e.__, e.__i + 1) : null;
56
+ for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
57
+ return typeof e.type == "function" ? $(e) : null;
58
+ }
59
+ function I(e) {
60
+ if (e.__P && e.__d) {
61
+ var t = e.__v, n = t.__e, a = [], s = [], l = m$1({}, t);
62
+ l.__v = t.__v + 1, O.vnode && O.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);
63
+ }
64
+ }
65
+ function P$1(e) {
66
+ if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
67
+ if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
68
+ }), P$1(e);
69
+ }
70
+ __name(P$1, "P");
71
+ function A$1(e) {
72
+ (!e.__d && (e.__d = !0) && A.push(e) && !H$1.__r++ || U != O.debounceRendering) && ((U = O.debounceRendering) || G)(H$1);
73
+ }
74
+ __name(A$1, "A");
75
+ function H$1() {
76
+ try {
77
+ for (var e, t = 1; A.length;) A.length > t && A.sort(K), e = A.shift(), t = A.length, I(e);
78
+ } finally {
79
+ A.length = H$1.__r = 0;
80
+ }
81
+ }
82
+ __name(H$1, "H");
83
+ function L(e, t, n, a, s, l, m, v, T, O, k) {
84
+ var A, U, G, K, q, J, ee, Y = a && a.__k || re, Z = t.length;
85
+ 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] || ne, 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);
86
+ return n.__e = q, T;
87
+ }
88
+ function T$2(e, t, n, a, s) {
89
+ var l, m, v, T, O, k = n.length, A = k, U = 0;
90
+ 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) : ae(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;
91
+ if (A) for (l = 0; l < k; l++) (v = n[l]) != null && !(2 & v.__u) && (v.__e == a && (a = $(v)), K$1(v, v));
92
+ return a;
93
+ }
94
+ __name(T$2, "T");
95
+ function j$2(e, t, n, a) {
96
+ var s, l;
97
+ if (typeof e.type == "function") {
98
+ for (s = e.__k, l = 0; s && l < s.length; l++) s[l] && (s[l].__ = e, t = j$2(s[l], t, n, a));
99
+ return t;
100
+ }
101
+ e.__e != t && (a && (t && e.type && !t.parentNode && (t = $(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
102
+ do
103
+ t &&= t.nextSibling;
104
+ while (t != null && t.nodeType == 8);
105
+ return t;
106
+ }
107
+ __name(j$2, "j");
108
+ function F(e, t) {
109
+ return t ||= [], e == null || typeof e == "boolean" || (ae(e) ? e.some(function(e) {
110
+ F(e, t);
111
+ }) : t.push(e)), t;
112
+ }
113
+ function O$1(e, t, n, a) {
114
+ var s, l, m, v = e.key, T = e.type, O = t[n], k = O != null && (2 & O.__u) == 0;
115
+ if (O === null && v == null || k && v == O.key && T == O.type) return n;
116
+ if (a > +!!k) {
117
+ 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;
118
+ }
119
+ return -1;
120
+ }
121
+ __name(O$1, "O");
122
+ function z$1(e, t, n) {
123
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ie.test(t) ? n : n + "px";
124
+ }
125
+ __name(z$1, "z");
126
+ function N(e, t, n, a, s) {
127
+ var l, m;
128
+ n: if (t == "style") if (typeof n == "string") e.style.cssText = n;
129
+ else {
130
+ if (typeof a == "string" && (e.style.cssText = a = ""), a) for (t in a) n && t in n || z$1(e.style, t, "");
131
+ if (n) for (t in n) a && n[t] == a[t] || z$1(e.style, t, n[t]);
132
+ }
133
+ else if (t[0] == "o" && t[1] == "n") l = t != (t = t.replace(Y, "$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[ee] = a[ee] : (n[ee] = Z, e.addEventListener(t, l ? te : Q, l)) : e.removeEventListener(t, l ? te : Q, l);
134
+ else {
135
+ if (s == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
136
+ 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 {
137
+ e[t] = n ?? "";
138
+ break n;
139
+ } catch {}
140
+ typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
141
+ }
142
+ }
143
+ function V$1(e) {
144
+ return function(t) {
145
+ if (this.l) {
146
+ var n = this.l[t.type + e];
147
+ if (t[J] == null) t[J] = Z++;
148
+ else if (t[J] < n[ee]) return;
149
+ return n(O.event ? O.event(t) : t);
150
+ }
151
+ };
152
+ }
153
+ __name(V$1, "V");
154
+ function q$2(e, t, n, a, s, l, m, v, T, k) {
155
+ var A, U, G, K, q, J, ee, Y, Z, Q, te, ne, ie, oe, se, ce = t.type;
156
+ if (t.constructor !== void 0) return null;
157
+ 128 & n.__u && (T = !!(32 & n.__u), l = [v = t.__e = n.__e]), (A = O.__b) && A(t);
158
+ n: if (typeof ce == "function") try {
159
+ if (Y = t.props, Z = ce.prototype && ce.prototype.render, Q = (A = ce.contextType) && a[A.__c], te = A ? Q ? Q.props.value : A.__ : a, n.__c ? ee = (U = t.__c = n.__c).__ = U.__E : (Z ? t.__c = U = new ce(Y, te) : (t.__c = U = new C$1(Y, te), U.constructor = ce, U.render = Q$1), Q && Q.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);
160
+ else {
161
+ if (Z && ce.getDerivedStateFromProps == null && Y !== K && U.componentWillReceiveProps != null && U.componentWillReceiveProps(Y, te), t.__v == n.__v || !U.__e && U.shouldComponentUpdate != null && !1 === U.shouldComponentUpdate(Y, U.__s, te)) {
162
+ 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) {
163
+ e && (e.__ = t);
164
+ }), re.push.apply(U.__h, U._sb), U._sb = [], U.__h.length && m.push(U);
165
+ break n;
166
+ }
167
+ U.componentWillUpdate != null && U.componentWillUpdate(Y, U.__s, te), Z && U.componentDidUpdate != null && U.__h.push(function() {
168
+ U.componentDidUpdate(K, q, J);
169
+ });
170
+ }
171
+ if (U.context = te, U.props = Y, U.__P = e, U.__e = !1, ne = O.__r, ie = 0, Z) U.state = U.__s, U.__d = !1, ne && ne(t), A = U.render(U.props, U.state, U.context), re.push.apply(U.__h, U._sb), U._sb = [];
172
+ else do
173
+ U.__d = !1, ne && ne(t), A = U.render(U.props, U.state, U.context), U.state = U.__s;
174
+ while (U.__d && ++ie < 25);
175
+ 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, v = L(e, ae(oe) ? oe : [oe], t, n, a, s, l, m, v, T, k), U.base = t.__e, t.__u &= -161, U.__h.length && m.push(U), ee && (U.__E = U.__ = null);
176
+ } catch (e) {
177
+ if (t.__v = null, T || l != null) if (e.then) {
178
+ for (t.__u |= T ? 160 : 128; v && v.nodeType == 8 && v.nextSibling;) v = v.nextSibling;
179
+ l[l.indexOf(v)] = null, t.__e = v;
180
+ } else {
181
+ for (se = l.length; se--;) b(l[se]);
182
+ B$2(t);
183
+ }
184
+ else t.__e = n.__e, t.__k = n.__k, e.then || B$2(t);
185
+ O.__e(e, t, n);
186
+ }
187
+ else l == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : v = t.__e = G$1(n.__e, t, n, a, s, l, m, T, k);
188
+ return (A = O.diffed) && A(t), 128 & t.__u ? void 0 : v;
189
+ }
190
+ __name(q$2, "q");
191
+ function B$2(e) {
192
+ e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(B$2));
193
+ }
194
+ __name(B$2, "B");
195
+ function D$1(e, t, n) {
196
+ for (var a = 0; a < n.length; a++) J$1(n[a], n[++a], n[++a]);
197
+ O.__c && O.__c(t, e), e.some(function(t) {
198
+ try {
199
+ e = t.__h, t.__h = [], e.some(function(e) {
200
+ e.call(t);
201
+ });
202
+ } catch (e) {
203
+ O.__e(e, t.__v);
204
+ }
205
+ });
206
+ }
207
+ __name(D$1, "D");
208
+ function E$1(e) {
209
+ return typeof e != "object" || !e || e.__b > 0 ? e : ae(e) ? e.map(E$1) : e.constructor === void 0 ? m$1({}, e) : null;
210
+ }
211
+ __name(E$1, "E");
212
+ function G$1(e, t, n, a, s, l, m, v, k) {
213
+ var A, U, G, K, q, J, ee, Y = n.props || ne, Z = t.props, Q = t.type;
214
+ if (Q == "svg" ? s = "http://www.w3.org/2000/svg" : Q == "math" ? s = "http://www.w3.org/1998/Math/MathML" : s ||= "http://www.w3.org/1999/xhtml", l != null) {
215
+ for (A = 0; A < l.length; A++) if ((q = l[A]) && "setAttribute" in q == !!Q && (Q ? q.localName == Q : q.nodeType == 3)) {
216
+ e = q, l[A] = null;
217
+ break;
218
+ }
219
+ }
220
+ if (e == null) {
221
+ if (Q == null) return document.createTextNode(Z);
222
+ e = document.createElementNS(s, Q, Z.is && Z), v &&= (O.__m && O.__m(t, l), !1), l = null;
223
+ }
224
+ if (Q == null) Y === Z || v && e.data == Z || (e.data = Z);
225
+ else {
226
+ if (l = Q == "textarea" && Z.defaultValue != null ? null : l && T.call(e.childNodes), !v && l != null) for (Y = {}, A = 0; A < e.attributes.length; A++) Y[(q = e.attributes[A]).name] = q.value;
227
+ 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);
228
+ for (A in Z) q = Z[A], A == "children" ? K = q : A == "dangerouslySetInnerHTML" ? U = q : A == "value" ? J = q : A == "checked" ? ee = q : v && typeof q != "function" || Y[A] === q || N(e, A, q, Y[A], s);
229
+ if (U) v || G && (U.__html == G.__html || U.__html == e.innerHTML) || (e.innerHTML = U.__html), t.__k = [];
230
+ else if (G && (e.innerHTML = ""), L(t.type == "template" ? e.content : e, ae(K) ? K : [K], t, n, a, Q == "foreignObject" ? "http://www.w3.org/1999/xhtml" : s, l, m, l ? l[0] : n.__k && $(n, 0), v, k), l != null) for (A = l.length; A--;) b(l[A]);
231
+ v && Q != "textarea" || (A = "value", Q == "progress" && J == null ? e.removeAttribute("value") : J != null && (J !== e[A] || Q == "progress" && !J || Q == "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));
232
+ }
233
+ return e;
234
+ }
235
+ __name(G$1, "G");
236
+ function J$1(e, t, n) {
237
+ try {
238
+ if (typeof e == "function") {
239
+ var a = typeof e.__u == "function";
240
+ a && e.__u(), a && t == null || (e.__u = e(t));
241
+ } else e.current = t;
242
+ } catch (e) {
243
+ O.__e(e, n);
244
+ }
245
+ }
246
+ __name(J$1, "J");
247
+ function K$1(e, t, n) {
248
+ var a, s;
249
+ if (O.unmount && O.unmount(e), (a = e.ref) && (a.current && a.current != e.__e || J$1(a, null, t)), (a = e.__c) != null) {
250
+ if (a.componentWillUnmount) try {
251
+ a.componentWillUnmount();
252
+ } catch (e) {
253
+ O.__e(e, t);
254
+ }
255
+ a.base = a.__P = null;
256
+ }
257
+ if (a = e.__k) for (s = 0; s < a.length; s++) a[s] && K$1(a[s], t, n || typeof e.type != "function");
258
+ n || b(e.__e), e.__c = e.__ = e.__e = void 0;
259
+ }
260
+ __name(K$1, "K");
261
+ function Q$1(e, t, n) {
262
+ return this.constructor(e, n);
263
+ }
264
+ __name(Q$1, "Q");
265
+ function R(e, t, n) {
266
+ var a, s, l, m;
267
+ t == document && (t = document.documentElement), O.__ && O.__(e, t), s = (a = typeof n == "function") ? null : n && n.__k || t.__k, l = [], m = [], q$2(t, e = (!a && n || t).__k = k$1(S, null, [e]), s || ne, ne, t.namespaceURI, !a && n ? [n] : s ? null : t.firstChild ? T.call(t.childNodes) : null, l, !a && n ? n : s ? s.__e : t.firstChild, a, m), D$1(l, e, m);
268
+ }
269
+ T = re.slice, O = { __e: function(e, t, n, a) {
270
+ for (var s, l, m; t = t.__;) if ((s = t.__c) && !s.__) try {
271
+ 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;
272
+ } catch (t) {
273
+ e = t;
274
+ }
275
+ throw e;
276
+ } }, k = 0, C$1.prototype.setState = function(e, t) {
277
+ var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = m$1({}, this.state);
278
+ 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));
279
+ }, C$1.prototype.forceUpdate = function(e) {
280
+ this.__v && (this.__e = !0, e && this.__h.push(e), A$1(this));
281
+ }, C$1.prototype.render = S, A = [], G = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, K = /* @__PURE__ */ __name(function(e, t) {
282
+ return e.__v.__b - t.__v.__b;
283
+ }, "e"), H$1.__r = 0, q = Math.random().toString(8), J = "__d" + q, ee = "__a" + q, Y = /(PointerCapture)$|Capture$/i, Z = 0, Q = V$1(!1), te = V$1(!0);
284
+ //#endregion
285
+ //#region ../../node_modules/preact/hooks/dist/hooks.module.js
286
+ var oe, se, ce, le, ue = 0, de = [], fe = O, pe = fe.__b, me = fe.__r, he = fe.diffed, ge = fe.__c, _e = fe.unmount, ve = fe.__;
287
+ function p(e, t) {
288
+ fe.__h && fe.__h(se, e, ue || t), ue = 0;
289
+ var n = se.__H ||= {
290
+ __: [],
291
+ __h: []
292
+ };
293
+ return e >= n.__.length && n.__.push({}), n.__[e];
294
+ }
295
+ function d(e) {
296
+ return ue = 1, h(D, e);
297
+ }
298
+ function h(e, t, n) {
299
+ var a = p(oe++, 2);
300
+ if (a.t = e, !a.__c && (a.__ = [n ? n(t) : D(void 0, t), function(e) {
301
+ var t = a.__N ? a.__N[0] : a.__[0], n = a.t(t, e);
302
+ t !== n && (a.__N = [n, a.__[1]], a.__c.setState({}));
303
+ }], a.__c = se, !se.__f)) {
304
+ var f = function(e, t, n) {
305
+ if (!a.__c.__H) return !0;
306
+ var l = a.__c.__H.__.filter(function(e) {
307
+ return e.__c;
308
+ });
309
+ if (l.every(function(e) {
310
+ return !e.__N;
311
+ })) return !s || s.call(this, e, t, n);
312
+ var m = a.__c.props !== e;
313
+ return l.some(function(e) {
314
+ if (e.__N) {
315
+ var t = e.__[0];
316
+ e.__ = e.__N, e.__N = void 0, t !== e.__[0] && (m = !0);
317
+ }
318
+ }), s && s.call(this, e, t, n) || m;
319
+ };
320
+ se.__f = !0;
321
+ var s = se.shouldComponentUpdate, l = se.componentWillUpdate;
322
+ se.componentWillUpdate = function(e, t, n) {
323
+ if (this.__e) {
324
+ var a = s;
325
+ s = void 0, f(e, t, n), s = a;
326
+ }
327
+ l && l.call(this, e, t, n);
328
+ }, se.shouldComponentUpdate = f;
329
+ }
330
+ return a.__N || a.__;
331
+ }
332
+ function y(e, t) {
333
+ var n = p(oe++, 3);
334
+ !fe.__s && C(n.__H, t) && (n.__ = e, n.u = t, se.__H.__h.push(n));
335
+ }
336
+ function _(e, t) {
337
+ var n = p(oe++, 4);
338
+ !fe.__s && C(n.__H, t) && (n.__ = e, n.u = t, se.__h.push(n));
339
+ }
340
+ function T$1(e, t) {
341
+ var n = p(oe++, 7);
342
+ return C(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
343
+ }
344
+ __name(T$1, "T");
345
+ function q$1(e, t) {
346
+ return ue = 8, T$1(function() {
347
+ return e;
348
+ }, t);
349
+ }
350
+ __name(q$1, "q");
351
+ function j$1() {
352
+ for (var e; e = de.shift();) {
353
+ var t = e.__H;
354
+ if (e.__P && t) try {
355
+ t.__h.some(z), t.__h.some(B$1), t.__h = [];
356
+ } catch (n) {
357
+ t.__h = [], fe.__e(n, e.__v);
358
+ }
359
+ }
360
+ }
361
+ __name(j$1, "j"), fe.__b = function(e) {
362
+ se = null, pe && pe(e);
363
+ }, fe.__ = function(e, t) {
364
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), ve && ve(e, t);
365
+ }, fe.__r = function(e) {
366
+ me && me(e), oe = 0;
367
+ var t = (se = e.__c).__H;
368
+ t && (ce === se ? (t.__h = [], se.__h = [], t.__.some(function(e) {
369
+ e.__N && (e.__ = e.__N), e.u = e.__N = void 0;
370
+ })) : (t.__h.some(z), t.__h.some(B$1), t.__h = [], oe = 0)), ce = se;
371
+ }, fe.diffed = function(e) {
372
+ he && he(e);
373
+ var t = e.__c;
374
+ t && t.__H && (t.__H.__h.length && (de.push(t) !== 1 && le === fe.requestAnimationFrame || ((le = fe.requestAnimationFrame) || w)(j$1)), t.__H.__.some(function(e) {
375
+ e.u && (e.__H = e.u), e.u = void 0;
376
+ })), ce = se = null;
377
+ }, fe.__c = function(e, t) {
378
+ t.some(function(e) {
379
+ try {
380
+ e.__h.some(z), e.__h = e.__h.filter(function(e) {
381
+ return !e.__ || B$1(e);
382
+ });
383
+ } catch (n) {
384
+ t.some(function(e) {
385
+ e.__h &&= [];
386
+ }), t = [], fe.__e(n, e.__v);
387
+ }
388
+ }), ge && ge(e, t);
389
+ }, fe.unmount = function(e) {
390
+ _e && _e(e);
391
+ var t, n = e.__c;
392
+ n && n.__H && (n.__H.__.some(function(e) {
393
+ try {
394
+ z(e);
395
+ } catch (e) {
396
+ t = e;
397
+ }
398
+ }), n.__H = void 0, t && fe.__e(t, n.__v));
399
+ };
400
+ var ye = typeof requestAnimationFrame == "function";
401
+ function w(e) {
402
+ var t, r = function() {
403
+ clearTimeout(n), ye && cancelAnimationFrame(t), setTimeout(e);
404
+ }, n = setTimeout(r, 35);
405
+ ye && (t = requestAnimationFrame(r));
406
+ }
407
+ function z(e) {
408
+ var t = se, n = e.__c;
409
+ typeof n == "function" && (e.__c = void 0, n()), se = t;
410
+ }
411
+ function B$1(e) {
412
+ var t = se;
413
+ e.__c = e.__(), se = t;
414
+ }
415
+ __name(B$1, "B");
416
+ function C(e, t) {
417
+ return !e || e.length !== t.length || t.some(function(t, n) {
418
+ return t !== e[n];
419
+ });
420
+ }
421
+ function D(e, t) {
422
+ return typeof t == "function" ? t(e) : t;
423
+ }
424
+ //#endregion
425
+ //#region ../../node_modules/preact/compat/dist/compat.module.js
426
+ function g(e, t) {
427
+ for (var n in t) e[n] = t[n];
428
+ return e;
429
+ }
430
+ function E(e, t) {
431
+ for (var n in e) if (n !== "__source" && !(n in t)) return !0;
432
+ for (var a in t) if (a !== "__source" && e[a] !== t[a]) return !0;
433
+ return !1;
434
+ }
435
+ function M(e, t) {
436
+ this.props = e, this.context = t;
437
+ }
438
+ (M.prototype = new C$1()).isPureReactComponent = !0, M.prototype.shouldComponentUpdate = function(e, t) {
439
+ return E(this.props, e) || E(this.state, t);
440
+ };
441
+ var be = O.__b;
442
+ O.__b = function(e) {
443
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), be && be(e);
444
+ }, typeof Symbol < "u" && Symbol.for;
445
+ var xe = O.__e;
446
+ O.__e = function(e, t, n, a) {
447
+ if (e.then) {
448
+ 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);
449
+ }
450
+ xe(e, t, n, a);
451
+ };
452
+ var Se = O.unmount;
453
+ function V(e, t, n) {
454
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(e) {
455
+ typeof e.__c == "function" && e.__c();
456
+ }), 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) {
457
+ return V(e, t, n);
458
+ })), e;
459
+ }
460
+ function W(e, t, n) {
461
+ return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(e) {
462
+ return W(e, t, n);
463
+ }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
464
+ }
465
+ function P() {
466
+ this.__u = 0, this.o = null, this.__b = null;
467
+ }
468
+ function j(e) {
469
+ var t = e.__ && e.__.__c;
470
+ return t && t.__a && t.__a(e);
471
+ }
472
+ function B() {
473
+ this.i = null, this.l = null;
474
+ }
475
+ O.unmount = function(e) {
476
+ var t = e.__c;
477
+ t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Se && Se(e);
478
+ }, (P.prototype = new C$1()).__c = function(e, t) {
479
+ var n = t.__c, a = this;
480
+ a.o ??= [], a.o.push(n);
481
+ var s = j(a.__v), l = !1, i = function() {
482
+ l || a.__z || (l = !0, n.__R = null, s ? s(c) : c());
483
+ };
484
+ n.__R = i;
485
+ var m = n.__P;
486
+ n.__P = null;
487
+ var c = function() {
488
+ if (!--a.__u) {
489
+ if (a.state.__a) {
490
+ var e = a.state.__a;
491
+ a.__v.__k[0] = W(e, e.__c.__P, e.__c.__O);
492
+ }
493
+ var t;
494
+ for (a.setState({ __a: a.__b = null }); t = a.o.pop();) t.__P = m, t.forceUpdate();
495
+ }
496
+ };
497
+ a.__u++ || 32 & t.__u || a.setState({ __a: a.__b = a.__v.__k[0] }), e.then(i, i);
498
+ }, P.prototype.componentWillUnmount = function() {
499
+ this.o = [];
500
+ }, P.prototype.render = function(e, t) {
501
+ if (this.__b) {
502
+ if (this.__v.__k) {
503
+ var n = document.createElement("div"), a = this.__v.__k[0].__c;
504
+ this.__v.__k[0] = V(this.__b, n, a.__O = a.__P);
505
+ }
506
+ this.__b = null;
507
+ }
508
+ var s = t.__a && k$1(S, null, e.fallback);
509
+ return s && (s.__u &= -33), [k$1(S, null, t.__a ? null : e.children), s];
510
+ };
511
+ var H = function(e, t, n) {
512
+ 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;) {
513
+ for (; n.length > 3;) n.pop()();
514
+ if (n[1] < n[0]) break;
515
+ e.i = n = n[2];
516
+ }
517
+ };
518
+ (B.prototype = new C$1()).__a = function(e) {
519
+ var t = this, n = j(t.__v), a = t.l.get(e);
520
+ return a[0]++, function(s) {
521
+ var o = function() {
522
+ t.props.revealOrder ? (a.push(s), H(t, e, a)) : s();
523
+ };
524
+ n ? n(o) : o();
525
+ };
526
+ }, B.prototype.render = function(e) {
527
+ this.i = null, this.l = /* @__PURE__ */ new Map();
528
+ var t = F(e.children);
529
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
530
+ for (var n = t.length; n--;) this.l.set(t[n], this.i = [
531
+ 1,
532
+ 0,
533
+ this.i
534
+ ]);
535
+ return e.children;
536
+ }, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
537
+ var e = this;
538
+ this.l.forEach(function(t, n) {
539
+ H(e, n, t);
540
+ });
541
+ };
542
+ var Ce = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, we = /^(?: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]/, Te = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Ee = /[A-Z0-9]/g, De = typeof document < "u", X = function(e) {
543
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
544
+ };
545
+ C$1.prototype.isReactComponent = !0, [
546
+ "componentWillMount",
547
+ "componentWillReceiveProps",
548
+ "componentWillUpdate"
549
+ ].forEach(function(e) {
550
+ Object.defineProperty(C$1.prototype, e, {
551
+ configurable: !0,
552
+ get: function() {
553
+ return this["UNSAFE_" + e];
554
+ },
555
+ set: function(t) {
556
+ Object.defineProperty(this, e, {
557
+ configurable: !0,
558
+ writable: !0,
559
+ value: t
560
+ });
561
+ }
562
+ });
563
+ });
564
+ var Oe = O.event;
565
+ O.event = function(e) {
566
+ return Oe && (e = Oe(e)), e.persist = function() {}, e.isPropagationStopped = function() {
567
+ return this.cancelBubble;
568
+ }, e.isDefaultPrevented = function() {
569
+ return this.defaultPrevented;
570
+ }, e.nativeEvent = e;
571
+ };
572
+ var ke = {
573
+ configurable: !0,
574
+ get: function() {
575
+ return this.class;
576
+ }
577
+ }, Ae = O.vnode;
578
+ O.vnode = function(e) {
579
+ typeof e.type == "string" && function(e) {
580
+ var t = e.props, n = e.type, a = {}, s = n.indexOf("-") == -1;
581
+ for (var l in t) {
582
+ var m = t[l];
583
+ if (!(l === "value" && "defaultValue" in t && m == null || De && l === "children" && n === "noscript" || l === "class" || l === "className")) {
584
+ var v = l.toLowerCase();
585
+ 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" : Te.test(l) && (l = v) : v = l = "oninput" : s && we.test(l) ? l = l.replace(Ee, "-$&").toLowerCase() : m === null && (m = void 0), v === "oninput" && a[l = v] && (l = "oninputCapture"), a[l] = m;
586
+ }
587
+ }
588
+ n == "select" && (a.multiple && Array.isArray(a.value) && (a.value = F(t.children).forEach(function(e) {
589
+ e.props.selected = a.value.indexOf(e.props.value) != -1;
590
+ })), a.defaultValue != null && (a.value = F(t.children).forEach(function(e) {
591
+ e.props.selected = a.multiple ? a.defaultValue.indexOf(e.props.value) != -1 : a.defaultValue == e.props.value;
592
+ }))), t.class && !t.className ? (a.class = t.class, Object.defineProperty(a, "className", ke)) : t.className && (a.class = a.className = t.className), e.props = a;
593
+ }(e), e.$$typeof = Ce, Ae && Ae(e);
594
+ };
595
+ var je = O.__r;
596
+ O.__r = function(e) {
597
+ je && je(e), e.__c;
598
+ };
599
+ var Me = O.diffed;
600
+ O.diffed = function(e) {
601
+ Me && Me(e);
602
+ var t = e.props, n = e.__e;
603
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value);
604
+ };
605
+ function pn(e) {
606
+ return !!e.__k && (R(null, e), !0);
607
+ }
608
+ //#endregion
609
+ //#region src/preact-shim.ts
610
+ var Ne = /* @__PURE__ */ __exportAll({
611
+ Component: () => C$1,
612
+ Fragment: () => S,
613
+ createElement: () => k$1,
614
+ h: () => k$1,
615
+ render: () => R,
616
+ unmountComponentAtNode: () => pn,
617
+ useCallback: () => q$1,
618
+ useEffect: () => y,
619
+ useLayoutEffect: () => _,
620
+ useMemo: () => T$1,
621
+ useReducer: () => h,
622
+ useState: () => d
623
+ }), Pe = 0;
624
+ Array.isArray;
625
+ function u(e, t, n, a, s, l) {
626
+ t ||= {};
627
+ var m, v, T = t;
628
+ if ("ref" in T) for (v in T = {}, t) v == "ref" ? m = t[v] : T[v] = t[v];
629
+ var k = {
630
+ type: e,
631
+ props: T,
632
+ key: n,
633
+ ref: m,
634
+ __k: null,
635
+ __: null,
636
+ __b: 0,
637
+ __e: null,
638
+ __c: null,
639
+ constructor: void 0,
640
+ __v: --Pe,
641
+ __i: -1,
642
+ __u: 0,
643
+ __source: s,
644
+ __self: l
645
+ };
646
+ if (typeof e == "function" && (m = e.defaultProps)) for (v in m) T[v] === void 0 && (T[v] = m[v]);
647
+ return O.vnode && O.vnode(k), k;
648
+ }
649
+ //#endregion
650
+ //#region src/image.tsx
651
+ var Image = ({ href: e, x: t, y: n = 0, height: a = 12 }) => /* @__PURE__ */ u("image", {
652
+ xlinkHref: e,
653
+ x: t - a / 2,
654
+ y: n - a / 2,
655
+ width: a,
656
+ height: a
657
+ }), ImageChar = ({ x: e, y: t = 0, height: n = 12, fill: s, stroke: l, fontFamily: m = "FontAwesome", char: v = "", fontWeight: T }) => {
658
+ let O = T$1(() => m === "FontAwesome" ? a.faChar(v) : v, [v, m]);
659
+ return /* @__PURE__ */ u("text", {
660
+ x: e,
661
+ y: t,
662
+ fill: s,
663
+ stroke: l,
664
+ fontFamily: m,
665
+ fontSize: `${n}px`,
666
+ fontWeight: T,
667
+ dominantBaseline: "middle",
668
+ style: {
669
+ textAnchor: "middle",
670
+ alignmentBaseline: "middle"
671
+ },
672
+ children: O
673
+ });
674
+ }, Circle = ({ radius: e = 32, fill: t = "navy", stroke: n = t, strokeWidth: a = 1, shapeRendering: s }) => /* @__PURE__ */ u("circle", {
675
+ r: e,
676
+ fill: t,
677
+ stroke: n,
678
+ strokeWidth: a,
679
+ shapeRendering: s
680
+ }), Square = ({ radius: e = 30, cornerRadius: t = 0, fill: n = "white", stroke: a, strokeWidth: s = 1, shapeRendering: l }) => /* @__PURE__ */ u("rect", {
681
+ x: -e,
682
+ y: -e,
683
+ rx: t,
684
+ ry: t,
685
+ width: e * 2,
686
+ height: e * 2,
687
+ fill: n,
688
+ stroke: a || n,
689
+ strokeWidth: s,
690
+ shapeRendering: l
691
+ }), Rectangle = ({ width: e = 30, height: t = 30, cornerRadius: n = 0, fill: a = "white", stroke: s = "black", strokeWidth: l = 1, shapeRendering: m }) => /* @__PURE__ */ u("rect", {
692
+ x: -e / 2,
693
+ y: -t / 2,
694
+ rx: n,
695
+ ry: n,
696
+ width: e,
697
+ height: t,
698
+ fill: a,
699
+ stroke: s || a,
700
+ strokeWidth: l,
701
+ shapeRendering: m
702
+ }), Shape = ({ shape: e = "circle", height: t = 128, width: n, fill: a, stroke: s, strokeWidth: l = 1, shapeRendering: m, cornerRadius: v }) => {
703
+ switch (e) {
704
+ case "square": return /* @__PURE__ */ u(Square, {
705
+ radius: t / 2,
706
+ fill: a,
707
+ stroke: s,
708
+ strokeWidth: l,
709
+ shapeRendering: m,
710
+ cornerRadius: v
711
+ });
712
+ case "rectangle": return /* @__PURE__ */ u(Rectangle, {
713
+ width: n ?? t,
714
+ height: t,
715
+ fill: a,
716
+ stroke: s,
717
+ strokeWidth: l,
718
+ shapeRendering: m,
719
+ cornerRadius: v
720
+ });
721
+ default: return /* @__PURE__ */ u(Circle, {
722
+ radius: t / 2,
723
+ fill: a,
724
+ stroke: s,
725
+ strokeWidth: l,
726
+ shapeRendering: m
727
+ });
728
+ }
729
+ }, 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.textColor(s), padding: A = a / 5, xOffset: U = 0, yOffset: G = 0, cornerRadius: K, shapeRendering: q }) => /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ u(Shape, {
730
+ shape: e,
731
+ width: n,
732
+ height: a,
733
+ fill: s,
734
+ stroke: l,
735
+ strokeWidth: m,
736
+ shapeRendering: q,
737
+ cornerRadius: K
738
+ }), v ? /* @__PURE__ */ u(Image, {
739
+ href: v,
740
+ x: U,
741
+ y: G,
742
+ height: a - A
743
+ }) : /* @__PURE__ */ u(ImageChar, {
744
+ x: U,
745
+ y: G,
746
+ height: a - A,
747
+ fontFamily: T,
748
+ char: O,
749
+ fill: k,
750
+ fontWeight: 400
751
+ })] }), Icons = ({ icons: e = [] }) => /* @__PURE__ */ u(S, { children: e.map((e) => /* @__PURE__ */ u("g", {
752
+ id: e.id,
753
+ children: /* @__PURE__ */ u(Icon, { ...e })
754
+ }, e.id)) }), TextLine = ({ text: e, height: t = 12, anchor: n = "middle", baseline: a = "middle", fontFamily: s = "Verdana", fill: l = "black" }) => /* @__PURE__ */ u("text", {
755
+ "font-family": s,
756
+ "font-size": `${t}px`,
757
+ "text-anchor": n,
758
+ "dominant-baseline": a,
759
+ fill: l,
760
+ children: e
761
+ }), Text = ({ text: e, height: t = 12, fontFamily: n = "Verdana", fill: s = "black", onSizeUpdate: l }) => {
762
+ let [m, v] = d(0), [T, O] = d(0);
763
+ y(() => {
764
+ l && l({
765
+ width: m,
766
+ height: T
767
+ });
768
+ }, [
769
+ m,
770
+ T,
771
+ l
772
+ ]);
773
+ let k = T$1(() => e.split("\n"), [e]);
774
+ return _(() => {
775
+ let e = a.textSize(k, n, t);
776
+ v(e.width), O(e.height);
777
+ }, [
778
+ n,
779
+ t,
780
+ k
781
+ ]), /* @__PURE__ */ u("g", { children: T$1(() => {
782
+ let e = -(T / 2) + t / 2;
783
+ return k.map((a, l) => /* @__PURE__ */ u("g", {
784
+ transform: `translate(0 ${e + l * (t + 2)})`,
785
+ children: /* @__PURE__ */ u(TextLine, {
786
+ text: a,
787
+ height: t,
788
+ fontFamily: n,
789
+ fill: s
790
+ })
791
+ }, `key-${l}`));
792
+ }, [
793
+ k,
794
+ T,
795
+ t,
796
+ n,
797
+ s
798
+ ]) });
799
+ }, 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 }) => {
800
+ let [k, A] = d(0), [U, G] = d(0);
801
+ y(() => {
802
+ O && O({
803
+ width: k,
804
+ height: U
805
+ });
806
+ }, [
807
+ k,
808
+ U,
809
+ O
810
+ ]);
811
+ let K = q$1((e) => {
812
+ A(e.width), G(e.height);
813
+ }, []), q = k + a * 2 + v, J = U + a * 2 + v, ee = Math.floor(t / 10);
814
+ return /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ u(Rectangle, {
815
+ width: q,
816
+ height: J,
817
+ fill: s,
818
+ stroke: l,
819
+ strokeWidth: v,
820
+ cornerRadius: T
821
+ }), /* @__PURE__ */ u("g", {
822
+ transform: `translate(0 ${ee})`,
823
+ children: /* @__PURE__ */ u(Text, {
824
+ text: e,
825
+ fontFamily: n,
826
+ height: t,
827
+ fill: m,
828
+ onSizeUpdate: K
829
+ })
830
+ })] });
831
+ }, LabelledRect = ({ text: e, height: t = 12, width: n = 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 }) => {
832
+ let [G, K] = d(n), [q, J] = d(t);
833
+ return _(() => {
834
+ let t = a.textSize(e, s, l);
835
+ K(t.width + m * 2), J(t.height + m * 2);
836
+ }, [
837
+ e,
838
+ s,
839
+ l,
840
+ m
841
+ ]), _(() => {
842
+ U && U({
843
+ width: G,
844
+ height: q
845
+ });
846
+ }, [
847
+ G,
848
+ q,
849
+ m,
850
+ U
851
+ ]), /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ u(Rectangle, {
852
+ width: n,
853
+ height: t,
854
+ fill: v,
855
+ stroke: T,
856
+ strokeWidth: k,
857
+ cornerRadius: A
858
+ }), /* @__PURE__ */ u("g", {
859
+ transform: `translate(${-(n / 2) + m} ${-(t / 2) + m})`,
860
+ children: /* @__PURE__ */ u(TextLine, {
861
+ text: e,
862
+ fontFamily: s,
863
+ height: l,
864
+ fill: O,
865
+ anchor: "start",
866
+ baseline: "hanging"
867
+ })
868
+ })] });
869
+ }, 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 }) => /* @__PURE__ */ u(S, { children: [
870
+ /* @__PURE__ */ u(Rectangle, {
871
+ width: s,
872
+ height: a,
873
+ fill: T,
874
+ stroke: O,
875
+ strokeWidth: A,
876
+ cornerRadius: U
877
+ }),
878
+ /* @__PURE__ */ u("g", {
879
+ transform: `translate(${-(s / 2) + v} ${-(a / 2) + v})`,
880
+ children: /* @__PURE__ */ u(Icon, {
881
+ shape: "square",
882
+ imageFontFamily: t,
883
+ imageChar: e,
884
+ height: a,
885
+ fill: T,
886
+ imageCharFill: k
887
+ })
888
+ }),
889
+ /* @__PURE__ */ u("g", {
890
+ transform: `translate(${-(s / 2) + v * 2 + a} ${-(a / 2) + v})`,
891
+ children: /* @__PURE__ */ u(TextLine, {
892
+ text: n,
893
+ fontFamily: l,
894
+ height: m,
895
+ fill: k,
896
+ anchor: "start",
897
+ baseline: "hanging"
898
+ })
899
+ })
900
+ ] }), Edge = ({ label: e, labelPos: t, labelFill: n = "black", labelHeight: a = 12, path: s, stroke: l, strokeWidth: m, strokeDasharray: v }) => /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ u("path", {
901
+ d: s,
902
+ stroke: l,
903
+ style: {
904
+ strokeWidth: m,
905
+ strokeDasharray: v
906
+ }
907
+ }), e && t && t.length === 2 ? /* @__PURE__ */ u("g", {
908
+ transform: `translate(${t[0]} ${t[1]})`,
909
+ children: /* @__PURE__ */ u(Text, {
910
+ text: e,
911
+ fill: n,
912
+ height: a
913
+ })
914
+ }) : void 0] });
915
+ //#endregion
916
+ //#region src/render.ts
917
+ function render(e, t, n, a) {
918
+ R(k$1(e, t), n, a);
919
+ }
920
+ function svgRender(e, t, n, a) {
921
+ R(k$1("svg", null, k$1(e, t)), n, a);
922
+ }
923
+ var HTMLAdapter = class extends e {
924
+ _component;
925
+ props(e) {
926
+ return arguments.length ? (this._props = {
927
+ ...this._props,
928
+ ...e
929
+ }, this) : this._props;
930
+ }
931
+ prop(e, t) {
932
+ return arguments.length === 1 ? this._props[e] : (this._props[e] = t, this);
933
+ }
934
+ constructor(e) {
935
+ super(), this._component = e;
936
+ }
937
+ update(e, t) {
938
+ super.update(e, t), render(this._component, this._props, e);
939
+ }
940
+ };
941
+ HTMLAdapter.prototype._class += " react_HTMLAdapter", HTMLAdapter.prototype.publish("props", {}, "object", "Properties");
942
+ var SVGAdapter = class extends n {
943
+ _component;
944
+ props(e) {
945
+ return arguments.length ? (this._props = {
946
+ ...this._props,
947
+ ...e
948
+ }, this) : this._props;
949
+ }
950
+ prop(e, t) {
951
+ return arguments.length === 1 ? this._props[e] : (this._props[e] = t, this);
952
+ }
953
+ constructor(e) {
954
+ super(), this._component = e;
955
+ }
956
+ update(e, t) {
957
+ super.update(e, t), render(this._component, this._props, e);
958
+ }
959
+ };
960
+ SVGAdapter.prototype._class += " react_SVGAdapter", SVGAdapter.prototype.publish("props", {}, "object", "Properties");
961
+ //#endregion
962
+ //#region src/span.tsx
963
+ var Span = ({ text: e }) => /* @__PURE__ */ u("span", { children: e }), Annotations = ({ x: e, y: t, annotationIDs: n = [], stepSize: a = -16 }) => /* @__PURE__ */ u(S, { children: n.map((n, s) => /* @__PURE__ */ u("g", {
964
+ transform: `translate(${e + s * a} ${t})`,
965
+ children: /* @__PURE__ */ u("use", { xlinkHref: "#" + n })
966
+ }, 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 }) => {
967
+ s = {
968
+ imageChar: "fa-question",
969
+ height: 32,
970
+ fill: "transparent",
971
+ ...s
972
+ };
973
+ let [K, q] = d(0), [J, ee] = d(0);
974
+ y(() => {
975
+ A && A({
976
+ width: 0,
977
+ height: 0
978
+ });
979
+ }, [
980
+ K,
981
+ J,
982
+ A
983
+ ]);
984
+ let Y = K;
985
+ Y += 4;
986
+ let Z = -(s.height * 2 / 6 + n + 8) / 2, Q = s.height / 3 + J / 2 + a, te = s.height / 3 + J + a + l / 3;
987
+ U || (Z += (n + 8) / 2, te -= J + a);
988
+ let ne = q$1((e) => {
989
+ q(e.width), ee(e.height);
990
+ }, []), re = U ? /* @__PURE__ */ u("g", {
991
+ transform: `translate(0 ${Q})`,
992
+ children: /* @__PURE__ */ u(TextBox, {
993
+ text: t,
994
+ height: n,
995
+ padding: a,
996
+ onSizeUpdate: ne,
997
+ textFill: v,
998
+ fill: T,
999
+ stroke: O,
1000
+ fontFamily: k
1001
+ })
1002
+ }) : void 0;
1003
+ return e ? /* @__PURE__ */ u("g", {
1004
+ transform: `translate(0 ${Z}) scale(${G})`,
1005
+ children: [
1006
+ /* @__PURE__ */ u("use", { xlinkHref: "#" + e }),
1007
+ re,
1008
+ /* @__PURE__ */ u(Annotations, {
1009
+ x: Y / 2,
1010
+ y: te,
1011
+ annotationIDs: m
1012
+ })
1013
+ ]
1014
+ }) : /* @__PURE__ */ u("g", {
1015
+ transform: `translate(0 ${Z}) scale(${G})`,
1016
+ children: [/* @__PURE__ */ u(Icon, { ...s }), re]
1017
+ });
1018
+ }, Vertex2 = ({ categoryID: e = "", text: t = "", textHeight: n = 12, textPadding: s = 4, icon: l = {}, textFill: m = "black", textboxFill: v = "white", textboxStroke: T = "black", textFontFamily: O, annotationsHeight: k = 12, annotationIDs: A = [] }) => {
1019
+ l = {
1020
+ imageChar: "fa-question",
1021
+ imageCharFill: "white",
1022
+ height: 32,
1023
+ fill: "black",
1024
+ shape: "square",
1025
+ ...l
1026
+ };
1027
+ let U = n + s * 2, { width: G } = T$1(() => a.textSize(t, O, n, !1), [
1028
+ t,
1029
+ O,
1030
+ n
1031
+ ]), K = k, q = U / 2, J = -(l.height * 2 / 6 + n + 8) / 2, ee = -l.height / 2, Y = Math.ceil(G / 2 + s), Z = q - l.height / 2, Q = K / 2, te = q;
1032
+ return e ? /* @__PURE__ */ u("g", {
1033
+ transform: `translate(0 ${J})`,
1034
+ children: [
1035
+ /* @__PURE__ */ u("g", {
1036
+ transform: `translate(${ee} 0)`,
1037
+ children: /* @__PURE__ */ u("use", { xlinkHref: "#" + e })
1038
+ }),
1039
+ /* @__PURE__ */ u("g", {
1040
+ transform: `translate(${Y} ${Z})`,
1041
+ children: /* @__PURE__ */ u(TextBox, {
1042
+ text: t,
1043
+ height: n,
1044
+ padding: s,
1045
+ strokeWidth: 1,
1046
+ stroke: T,
1047
+ fill: v,
1048
+ textFill: m,
1049
+ fontFamily: O
1050
+ })
1051
+ }),
1052
+ /* @__PURE__ */ u(Annotations, {
1053
+ x: Q,
1054
+ y: te,
1055
+ annotationIDs: A,
1056
+ stepSize: K
1057
+ })
1058
+ ]
1059
+ }) : /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ u("g", {
1060
+ transform: `translate(${ee} 0)scale(1.0002)`,
1061
+ children: /* @__PURE__ */ u(Icon, {
1062
+ ...l,
1063
+ shape: "square"
1064
+ })
1065
+ }), /* @__PURE__ */ u("g", {
1066
+ transform: `translate(${Y} ${Z})scale(1.0002)`,
1067
+ children: /* @__PURE__ */ u(TextBox, {
1068
+ text: t,
1069
+ height: n,
1070
+ padding: s,
1071
+ stroke: T,
1072
+ fill: v
1073
+ })
1074
+ })] });
1075
+ }, Vertex3 = ({ text: e = "", textHeight: t = 10, textPadding: n = 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 }) => {
1076
+ U = {
1077
+ height: 50,
1078
+ imageChar: "?",
1079
+ imageFontFamily: "FontAwesome",
1080
+ imageCharFill: "#555555",
1081
+ fill: "transparent",
1082
+ strokeWidth: 0,
1083
+ ...U
1084
+ }, G = {
1085
+ text: "",
1086
+ fill: "white",
1087
+ textFill: "#555555",
1088
+ ...G
1089
+ }, J = J ? {
1090
+ height: 16,
1091
+ shape: "circle",
1092
+ padding: 6,
1093
+ imageChar: "?",
1094
+ imageFontFamily: "FontAwesome",
1095
+ imageCharFill: "black",
1096
+ fill: "whitesmoke",
1097
+ stroke: "whitesmoke",
1098
+ strokeWidth: 0,
1099
+ ...J
1100
+ } : void 0;
1101
+ let Y = 0, Z = T$1(() => a.textSize(e, T, t, !1).width, [
1102
+ e,
1103
+ T,
1104
+ t
1105
+ ]), Q = 0;
1106
+ e !== "" && (Q = Z + n * 2 + v * 2), Y += Q + O;
1107
+ let te = Y - Q / 2, ne = t + n * 2 + v * 2, re = [];
1108
+ k.forEach((e, t) => {
1109
+ let n = e.imageChar, a = ne;
1110
+ Y += a + O;
1111
+ let s = Y - a / 2;
1112
+ re.push(/* @__PURE__ */ u("g", {
1113
+ className: "vertex3-anno",
1114
+ "data-click": "annotation",
1115
+ "data-click-data": JSON.stringify(e),
1116
+ transform: `translate(${s} 0)`,
1117
+ children: /* @__PURE__ */ u(Icon, {
1118
+ ...e,
1119
+ shape: "square",
1120
+ height: ne,
1121
+ imageChar: n,
1122
+ imageFontFamily: e.imageFontFamily,
1123
+ cornerRadius: A,
1124
+ strokeWidth: 0
1125
+ })
1126
+ }, t));
1127
+ }), k.length > 0 && (Y += O * (k.length - 1));
1128
+ let ie = /* @__PURE__ */ u("g", {
1129
+ "data-click": "text",
1130
+ transform: `translate(${te} 0)`,
1131
+ children: !K || e === "" ? /* @__PURE__ */ u("circle", {
1132
+ r: q,
1133
+ stroke: m,
1134
+ fill: s
1135
+ }) : /* @__PURE__ */ u(TextBox, {
1136
+ text: e,
1137
+ height: t,
1138
+ padding: n,
1139
+ strokeWidth: v,
1140
+ stroke: m,
1141
+ fill: l,
1142
+ textFill: s,
1143
+ fontFamily: T,
1144
+ cornerRadius: A
1145
+ })
1146
+ }), ae = U.height || 20, oe = U.strokeWidth || 0, se = 0, ce = ne + O * 2;
1147
+ e !== "" || re.length > 0 ? se = -(ae / 2) - oe - ne / 2 - O * 2 : G.text !== "" && (ce = ae / 2 + oe + O * 2);
1148
+ let le = G.text === "" ? null : /* @__PURE__ */ u("g", {
1149
+ "data-click": "subtext",
1150
+ transform: `translate(0 ${ce})`,
1151
+ children: /* @__PURE__ */ u(TextBox, {
1152
+ fill: G.fill || "#FFFFFF",
1153
+ textFill: G.textFill || s,
1154
+ ...G,
1155
+ height: t,
1156
+ padding: n,
1157
+ strokeWidth: 0,
1158
+ stroke: m,
1159
+ fontFamily: T,
1160
+ cornerRadius: A
1161
+ })
1162
+ });
1163
+ return /* @__PURE__ */ u("g", {
1164
+ transform: `scale(${ee})`,
1165
+ children: [
1166
+ /* @__PURE__ */ u("g", {
1167
+ "data-click": "icon",
1168
+ transform: `translate(0 ${se})`,
1169
+ children: [/* @__PURE__ */ u(Icon, { ...U }), J && /* @__PURE__ */ u("g", {
1170
+ "data-click": "expanded-icon",
1171
+ "data-click-data": JSON.stringify(J),
1172
+ transform: `translate(${(U.height + oe) / 2 - J.height / 2} ${-(U.height + oe) / 2 + J.height / 2})`,
1173
+ children: /* @__PURE__ */ u(Icon, { ...J })
1174
+ })]
1175
+ }),
1176
+ /* @__PURE__ */ u("g", {
1177
+ transform: `translate(${-Y / 2} 0)`,
1178
+ children: [ie, re]
1179
+ }),
1180
+ le
1181
+ ]
1182
+ });
1183
+ }, 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 }) {
1184
+ return G = {
1185
+ height: 91,
1186
+ padding: 40,
1187
+ imageCharFill: "#555555",
1188
+ imageFontFamily: "FontAwesome",
1189
+ fill: "#FFCC33",
1190
+ stroke: "#DFDFDF",
1191
+ imageChar: "?",
1192
+ strokeWidth: 4,
1193
+ yOffset: -15,
1194
+ ...G
1195
+ }, K = {
1196
+ text: "",
1197
+ fill: "transparent",
1198
+ textFill: "#555555",
1199
+ ...K
1200
+ }, /* @__PURE__ */ u(Vertex3, {
1201
+ id: e,
1202
+ categoryID: t,
1203
+ text: n,
1204
+ textHeight: a,
1205
+ textPadding: s,
1206
+ textFill: l,
1207
+ textboxFill: m,
1208
+ textboxStroke: v,
1209
+ textboxStrokeWidth: T,
1210
+ textFontFamily: O,
1211
+ annotationGutter: k,
1212
+ annotations: A,
1213
+ cornerRadius: U,
1214
+ icon: G,
1215
+ subText: K,
1216
+ expansionIcon: q,
1217
+ scale: J,
1218
+ icon: G,
1219
+ subText: K
1220
+ });
1221
+ }, Vertex4 = ({ categoryID: e = "", text: t = "", textHeight: n = 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: Q = "#fff", iconFontColor: te = "#000", iconFontSize: ne = 20, iconFontFamily: re = "FontAwesome", shapeOffsetX: ie = 0, shapeOffsetY: ae = 0, iconOffsetX: oe = 0, iconOffsetY: se = 0, iconPadding: ce = 4, iconText: le = "?", shapeRendering: ue = "auto" }) => {
1222
+ K = {
1223
+ height: 50,
1224
+ imageChar: "?",
1225
+ imageFontFamily: "FontAwesome",
1226
+ imageCharFill: "#555555",
1227
+ fill: "transparent",
1228
+ strokeWidth: 0,
1229
+ ...K
1230
+ }, q = {
1231
+ text: "",
1232
+ fill: "white",
1233
+ textFill: "#555555",
1234
+ ...q
1235
+ };
1236
+ let de = T$1(() => a.textSize(t, O, n, !1).width, [
1237
+ t,
1238
+ O,
1239
+ n
1240
+ ]), fe = 0;
1241
+ t !== "" && (fe = de + s * 2 + T * 2);
1242
+ let pe = fe + k, me = pe - fe / 2, he = n + k * 2 + T * 2, ge = A.map((e) => a.textSize(e.imageChar, e.imageFontFamily, e.height, !1).width), _e = [], ve = pe;
1243
+ A.forEach((e, t) => {
1244
+ let n = e.imageChar, a = e.height ?? he;
1245
+ ve += ge[t] + k;
1246
+ let s = ve - ge[t] / 2;
1247
+ _e.push(/* @__PURE__ */ u("g", {
1248
+ className: "vertex3-anno",
1249
+ "data-click": "annotation",
1250
+ "data-click-data": JSON.stringify(e),
1251
+ transform: `translate(${s} 0)`,
1252
+ children: /* @__PURE__ */ u(Icon, {
1253
+ ...e,
1254
+ shape: "rectangle",
1255
+ width: ge[t],
1256
+ height: a,
1257
+ imageChar: n,
1258
+ imageFontFamily: e.imageFontFamily,
1259
+ cornerRadius: G,
1260
+ strokeWidth: 0
1261
+ })
1262
+ }, t));
1263
+ }), A.length > 0 && (pe += k * (A.length - 1));
1264
+ let ye = [];
1265
+ U.forEach((e, t) => {
1266
+ let n = e.shapeOffsetX, a = e.shapeOffsetY;
1267
+ ye.push(/* @__PURE__ */ u("g", {
1268
+ className: "vertex3-iconAnno",
1269
+ "data-click": "icon-annotation",
1270
+ "data-click-data": JSON.stringify(e),
1271
+ transform: `translate(${n} ${a})`,
1272
+ children: /* @__PURE__ */ u(Icon, {
1273
+ ...e,
1274
+ shape: e.shape ?? "square",
1275
+ imageChar: e.imageChar,
1276
+ imageFontFamily: e.imageFontFamily,
1277
+ cornerRadius: G,
1278
+ stroke: e.stroke,
1279
+ strokeWidth: e.strokeWidth
1280
+ })
1281
+ }, t));
1282
+ });
1283
+ let be = /* @__PURE__ */ u("g", {
1284
+ "data-click": "text",
1285
+ transform: `translate(${me} 0)`,
1286
+ children: !J || t === "" ? /* @__PURE__ */ u("circle", {
1287
+ r: ee,
1288
+ stroke: v,
1289
+ fill: l
1290
+ }) : /* @__PURE__ */ u(TextBox, {
1291
+ text: t,
1292
+ height: n,
1293
+ padding: s,
1294
+ strokeWidth: T,
1295
+ stroke: v,
1296
+ fill: m,
1297
+ textFill: l,
1298
+ fontFamily: O,
1299
+ cornerRadius: G
1300
+ })
1301
+ }), xe = he + k * 2, Se = q.text === "" ? null : /* @__PURE__ */ u("g", {
1302
+ "data-click": "subtext",
1303
+ transform: `translate(0 ${xe})`,
1304
+ children: /* @__PURE__ */ u(TextBox, {
1305
+ fill: q.fill || "#FFFFFF",
1306
+ textFill: q.textFill || l,
1307
+ ...q,
1308
+ height: n,
1309
+ padding: s,
1310
+ strokeWidth: 0,
1311
+ stroke: v,
1312
+ fontFamily: O,
1313
+ cornerRadius: G
1314
+ })
1315
+ });
1316
+ return /* @__PURE__ */ u("g", { children: [
1317
+ /* @__PURE__ */ u("g", {
1318
+ "data-click": "icon",
1319
+ transform: `translate(${ie} ${ae})`,
1320
+ children: [/* @__PURE__ */ u(Icon, {
1321
+ ...K,
1322
+ strokeWidth: Y,
1323
+ shape: "circle",
1324
+ height: ne,
1325
+ fill: Q,
1326
+ stroke: Z,
1327
+ imageFontFamily: re,
1328
+ imageChar: le,
1329
+ imageCharFill: te,
1330
+ padding: ce,
1331
+ xOffset: oe,
1332
+ yOffset: se,
1333
+ cornerRadius: G,
1334
+ shapeRendering: ue
1335
+ }), ye]
1336
+ }),
1337
+ /* @__PURE__ */ u("g", {
1338
+ transform: `translate(${-pe / 2} 0)`,
1339
+ children: [be, _e]
1340
+ }),
1341
+ Se
1342
+ ] });
1343
+ }, 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: Q = "#fff", iconFontColor: te = "#000", iconFontSize: ne = 20, iconFontFamily: re = "FontAwesome", shapeOffsetX: ie = 0, shapeOffsetY: ae = 0, iconOffsetX: oe = 0, iconOffsetY: se = 0, iconPadding: ce = 4, iconText: le = "?", shapeRendering: ue = "auto" }) {
1344
+ return K = {
1345
+ height: 91,
1346
+ padding: 40,
1347
+ imageCharFill: "#555555",
1348
+ imageFontFamily: "FontAwesome",
1349
+ fill: "#FFCC33",
1350
+ stroke: "#DFDFDF",
1351
+ imageChar: "?",
1352
+ strokeWidth: 4,
1353
+ yOffset: -15,
1354
+ ...K
1355
+ }, q = {
1356
+ text: "",
1357
+ fill: "transparent",
1358
+ textFill: "#555555",
1359
+ ...q
1360
+ }, /* @__PURE__ */ u(Vertex4, {
1361
+ id: e,
1362
+ categoryID: t,
1363
+ text: n,
1364
+ textHeight: a,
1365
+ textPadding: s,
1366
+ textFill: l,
1367
+ textboxFill: m,
1368
+ textboxStroke: v,
1369
+ textboxStrokeWidth: T,
1370
+ textFontFamily: O,
1371
+ annotationGutter: k,
1372
+ annotations: A,
1373
+ iconAnnotations: U,
1374
+ cornerRadius: G,
1375
+ icon: K,
1376
+ subText: q,
1377
+ showLabel: J,
1378
+ noLabelRadius: ee,
1379
+ iconBorderWidth: Y,
1380
+ iconBorderColor: Z,
1381
+ iconBackgroundColor: Q,
1382
+ iconFontColor: te,
1383
+ iconFontSize: ne,
1384
+ iconFontFamily: re,
1385
+ shapeOffsetX: ie,
1386
+ shapeOffsetY: ae,
1387
+ iconOffsetX: oe,
1388
+ iconOffsetY: se,
1389
+ iconPadding: ce,
1390
+ iconText: le,
1391
+ shapeRendering: ue,
1392
+ icon: K,
1393
+ subText: q
1394
+ });
1395
+ }, Subgraph = ({ text: e, width: t = 100, height: n = 100, fill: s = "transparent", stroke: l = "black", fontHeight: m = 12, fontFamily: v }) => {
1396
+ let T = a.textSize(e, v, m, !1);
1397
+ return /* @__PURE__ */ u(S, { children: [/* @__PURE__ */ u(Rectangle, {
1398
+ width: t,
1399
+ height: n,
1400
+ fill: s,
1401
+ stroke: l
1402
+ }), /* @__PURE__ */ u("g", {
1403
+ transform: `translate(${(-t + T.width) / 2 + 4} ${(-n + T.height) / 2 + 4})`,
1404
+ children: /* @__PURE__ */ u(Text, {
1405
+ height: m,
1406
+ text: e,
1407
+ fontFamily: v
1408
+ })
1409
+ })] });
1410
+ };
1411
+ //#endregion
1412
+ export { Annotations, v as BUILD_VERSION, CentroidVertex3, CentroidVertex4, Circle, Edge, HTMLAdapter, Icon, IconLabelledRect, Icons, Image, ImageChar, LabelledRect, l as PKG_NAME, m as PKG_VERSION, Ne as React, Rectangle, SVGAdapter, Shape, Span, Square, Subgraph, Text, TextBox, TextLine, Vertex, Vertex2, Vertex3, Vertex4, render, svgRender };
1413
+
1414
+ //# sourceMappingURL=index.js.map