New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hpcc-js/react

Package Overview
Dependencies
Maintainers
1
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpcc-js/react - npm Package Compare versions

Comparing version 2.53.8 to 2.53.9

93

dist/index.es6.js
import { Utility, Palette, publish, HTMLWidget, SVGWidget } from '@hpcc-js/common';
var PKG_NAME$1 = "@hpcc-js/react";
var PKG_VERSION$1 = "2.53.8";
var BUILD_VERSION$1 = "2.104.28";
var PKG_VERSION$1 = "2.53.9";
var BUILD_VERSION$1 = "2.104.30";
var PKG_NAME = "@hpcc-js/preact-shim";
var PKG_VERSION = "2.16.6";
var BUILD_VERSION = "2.104.28";
var PKG_VERSION = "2.16.7";
var BUILD_VERSION = "2.104.30";
var n,l$1,u$1,t$1,o$1,r$1,f$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v$1=Array.isArray;function h$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,t,o,null)}function d$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function k$1(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function g$1(n,l){if(null==l)return n.__?g$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?g$1(n):null}function m$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return m$1(n)}}function w$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!x.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(x);}function x(){var n,l,u,i,o,r,e,c;for(t$1.sort(f$1);n=t$1.shift();)n.__d&&(l=t$1.length,i=void 0,o=void 0,e=(r=(u=n).__v).__e,(c=u.__P)&&(i=[],(o=h$1({},r)).__v=r.__v+1,L(c,r,o,u.__n,void 0!==c.ownerSVGElement,null!=r.__h?[e]:null,i,null==e?g$1(r):e,r.__h),M(i,r),r.__e!=e&&m$1(r)),t$1.length>l&&t$1.sort(f$1));x.__r=0;}function P(n,l,u,i,t,o,r,f,e,a){var h,p,y,_,b,m,w,x=i&&i.__k||s$1,P=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _||"function"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?d$1(null,_,null,null,_):v$1(_)?d$1(k$1,{children:_},null,null,null):_.__b>0?d$1(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(y=x[h])||y&&_.key==y.key&&_.type===y.type)x[h]=void 0;else for(p=0;p<P;p++){if((y=x[p])&&_.key==y.key&&_.type===y.type){x[p]=void 0;break}y=null;}L(n,_,y=y||c$1,t,o,r,f,e,a),b=_.__e,(p=_.ref)&&y.ref!=p&&(w||(w=[]),y.ref&&w.push(y.ref,null,_),w.push(p,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===y.__k?_.__d=e=C(_,e,n):e=$(n,_,y,x,b,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=g$1(y));}for(u.__e=m,h=P;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=A(i).nextSibling),q(x[h],x[h]));if(w)for(h=0;h<w.length;h++)O(w[h],w[++h],w[++h]);}function C(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?C(i,l,u):$(u,i,i,t,i.__e,l));return l}function $(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function A(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=A(u)))return i;return null}function H(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||T$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||T$1(n,o,l[o],u[o],i);}function I(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function T$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||I(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||I(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?z$1:j$1,o):n.removeEventListener(l,o?z$1:j$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function j$1(n){return this.l[n.type+!1](l$1.event?l$1.event(n):n)}function z$1(n){return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function L(n,u,i,t,o,r,f,e,c){var s,a,p,y,d,_,g,m,w,x,C,S,$,A,H,I=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof I){if(m=u.props,w=(s=I.contextType)&&t[s.__c],x=s?w?w.props.value:s.__:t,i.__c?g=(a=u.__c=i.__c).__=a.__E:("prototype"in I&&I.prototype.render?u.__c=a=new I(m,x):(u.__c=a=new b$1(m,x),a.constructor=I,a.render=B$1),w&&w.sub(a),a.props=m,a.state||(a.state={}),a.context=x,a.__n=t,p=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h$1({},a.__s)),h$1(a.__s,I.getDerivedStateFromProps(m,a.__s))),y=a.props,d=a.state,a.__v=u,p)null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==I.getDerivedStateFromProps&&m!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,x)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=m,a.state=a.__s,a.__d=!1),a.__e=!1,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,x),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,d,_);});}if(a.context=x,a.props=m,a.__P=n,S=l$1.__r,$=0,"prototype"in I&&I.prototype.render){for(a.state=a.__s,a.__d=!1,S&&S(u),s=a.render(a.props,a.state,a.context),A=0;A<a._sb.length;A++)a.__h.push(a._sb[A]);a._sb=[];}else do{a.__d=!1,S&&S(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++$<25);a.state=a.__s,null!=a.getChildContext&&(t=h$1(h$1({},t),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(_=a.getSnapshotBeforeUpdate(y,d)),P(n,v$1(H=null!=s&&s.type===k$1&&null==s.key?s.props.children:s)?H:[H],u,i,t,o,r,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),g&&(a.__E=a.__=null),a.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=N(i.__e,u,i,t,o,r,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function M(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function N(l,u,i,t,o,r,f,e){var s,a,h,y=i.props,d=u.props,_=u.type,k=0;if("svg"===_&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!_&&(_?s.localName===_:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===_)return document.createTextNode(d);l=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,d.is&&d),r=null,e=!1;}if(null===_)y===d||e&&l.data===d||(l.data=d);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||c$1).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!e){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(H(l,d,y,o,e),h)u.__k=[];else if(P(l,v$1(k=u.props.children)?k:[k],u,i,t,o&&"foreignObject"!==_,r,f,r?r[0]:i.__k&&g$1(i,0),e),null!=r)for(k=r.length;k--;)null!=r[k]&&p$1(r[k]);e||("value"in d&&void 0!==(k=d.value)&&(k!==l.value||"progress"===_&&!k||"option"===_&&k!==y.value)&&T$1(l,"value",k,y.value,!1),"checked"in d&&void 0!==(k=d.checked)&&k!==l.checked&&T$1(l,"checked",k,y.checked,!1));}return l}function O(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function q(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||O(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&q(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function B$1(n,l,u){return this.constructor(n,u)}function D(u,i,t){var o,r,f;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],L(i,u=(!o&&t||i).__k=y(k$1,null,[u]),r||c$1,c$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),M(f,u);}n=s$1.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h$1({},this.state),"function"==typeof n&&(n=n(h$1({},u),this.props)),n&&h$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$1(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$1(this));},b$1.prototype.render=k$1,t$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x.__r=0;
var n,l$1,u$1,i$1,o$1,r$1,f$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v$1=Array.isArray;function h$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function k$1(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function g$1(n,l){if(null==l)return n.__?g$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__d||u.__e;return "function"==typeof n.type?g$1(n):null}function m$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return m$1(n)}}function w$1(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!x.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(x);}function x(){var n,l,u,t,o,r,e,c,s;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(l=i$1.length,t=void 0,o=void 0,r=void 0,c=(e=(u=n).__v).__e,(s=u.__P)&&(t=[],o=[],(r=h$1({},e)).__v=e.__v+1,z$1(s,e,r,u.__n,void 0!==s.ownerSVGElement,null!=e.__h?[c]:null,t,null==c?g$1(e):c,e.__h,o),L(t,e,o),e.__e!=c&&m$1(e)),i$1.length>l&&i$1.sort(f$1));x.__r=0;}function P(n,l,u,t,i,o,r,f,e,a,h){var p,y,_,b,m,w,x,P,C,D=0,H=t&&t.__k||s$1,I=H.length,T=I,j=l.length;for(u.__k=[],p=0;p<j;p++)null!=(b=u.__k[p]=null==(b=l[p])||"boolean"==typeof b||"function"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?d$1(null,b,null,null,b):v$1(b)?d$1(k$1,{children:b},null,null,null):b.__b>0?d$1(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)?(b.__=u,b.__b=u.__b+1,-1===(P=A(b,H,x=p+D,T))?_=c$1:(_=H[P]||c$1,H[P]=void 0,T--),z$1(n,b,_,i,o,r,f,e,a,h),m=b.__e,(y=b.ref)&&_.ref!=y&&(_.ref&&N(_.ref,null,b),h.push(y,b.__c||m,b)),null!=m&&(null==w&&(w=m),(C=_===c$1||null===_.__v)?-1==P&&D--:P!==x&&(P===x+1?D++:P>x?T>j-x?D+=P-x:D--:D=P<x&&P==x-1?P-x:0),x=p+D,"function"!=typeof b.type||P===x&&_.__k!==b.__k?"function"==typeof b.type||P===x&&!C?void 0!==b.__d?(e=b.__d,b.__d=void 0):e=m.nextSibling:e=S(n,m,e):e=$(b,e,n),"function"==typeof u.type&&(u.__d=e))):(_=H[p])&&null==_.key&&_.__e&&(_.__e==e&&(_.__=t,e=g$1(_)),O(_,_,!1),H[p]=null);for(u.__e=w,p=I;p--;)null!=H[p]&&("function"==typeof u.type&&null!=H[p].__e&&H[p].__e==u.__d&&(u.__d=H[p].__e.nextSibling),O(H[p],H[p]));}function $(n,l,u){for(var t,i=n.__k,o=0;i&&o<i.length;o++)(t=i[o])&&(t.__=n,l="function"==typeof t.type?$(t,l,u):S(u,t.__e,l));return l}function S(n,l,u){return null==u||u.parentNode!==n?n.insertBefore(l,null):l==u&&null!=l.parentNode||n.insertBefore(l,u),l.nextSibling}function A(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type)return u;if(t>(null!=e?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&i==e.key&&o===e.type)return f;f++;}}return -1}function D(n,l,u,t,i){var o;for(o in u)"children"===o||"key"===o||o in l||I(n,o,null,u[o],t);for(o in l)i&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||I(n,o,l[o],u[o],t);}function H(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function I(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||H(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||H(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?j$1:T$1,o)):n.removeEventListener(l,o?j$1:T$1,o);else if("dangerouslySetInnerHTML"!==l){if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function T$1(n){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$1.event?l$1.event(n):n)}function j$1(n){return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function z$1(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,g,m,w,x,$,C,S,A,D,H,I=u.type;if(void 0!==u.constructor)return null;null!=t.__h&&(c=t.__h,e=u.__e=t.__e,u.__h=null,r=[e]),(a=l$1.__b)&&a(u);n:if("function"==typeof I)try{if(w=u.props,x=(a=I.contextType)&&i[a.__c],$=a?x?x.props.value:a.__:i,t.__c?m=(p=u.__c=t.__c).__=p.__E:("prototype"in I&&I.prototype.render?u.__c=p=new I(w,$):(u.__c=p=new b$1(w,$),p.constructor=I,p.render=q),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=$,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=I.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=h$1({},p.__s)),h$1(p.__s,I.getDerivedStateFromProps(w,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==I.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==I.getDerivedStateFromProps&&w!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,$),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,$)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=w,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),C=0;C<p._sb.length;C++)p.__h.push(p._sb[C]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,$),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,g);});}if(p.context=$,p.props=w,p.__P=n,p.__e=!1,S=l$1.__r,A=0,"prototype"in I&&I.prototype.render){for(p.state=p.__s,p.__d=!1,S&&S(u),a=p.render(p.props,p.state,p.context),D=0;D<p._sb.length;D++)p.__h.push(p._sb[D]);p._sb=[];}else do{p.__d=!1,S&&S(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(i=h$1(h$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(g=p.getSnapshotBeforeUpdate(d,_)),P(n,v$1(H=null!=a&&a.type===k$1&&null==a.key?a.props.children:a)?H:[H],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__h=null,p.__h.length&&f.push(p),m&&(p.__E=p.__=null);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=M(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function L(n,u,t){for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function M(l,u,t,i,o,r,f,e,s){var a,h,y,d=t.props,_=u.props,k=u.type,b=0;if("svg"===k&&(o=!0),null!=r)for(;b<r.length;b++)if((a=r[b])&&"setAttribute"in a==!!k&&(k?a.localName===k:3===a.nodeType)){l=a,r[b]=null;break}if(null==l){if(null===k)return document.createTextNode(_);l=o?document.createElementNS("http://www.w3.org/2000/svg",k):document.createElement(k,_.is&&_),r=null,e=!1;}if(null===k)d===_||e&&l.data===_||(l.data=_);else {if(r=r&&n.call(l.childNodes),h=(d=t.props||c$1).dangerouslySetInnerHTML,y=_.dangerouslySetInnerHTML,!e){if(null!=r)for(d={},b=0;b<l.attributes.length;b++)d[l.attributes[b].name]=l.attributes[b].value;(y||h)&&(y&&(h&&y.__html==h.__html||y.__html===l.innerHTML)||(l.innerHTML=y&&y.__html||""));}if(D(l,_,d,o,e),y)u.__k=[];else if(P(l,v$1(b=u.props.children)?b:[b],u,t,i,o&&"foreignObject"!==k,r,f,r?r[0]:t.__k&&g$1(t,0),e,s),null!=r)for(b=r.length;b--;)null!=r[b]&&p$1(r[b]);e||("value"in _&&void 0!==(b=_.value)&&(b!==l.value||"progress"===k&&!b||"option"===k&&b!==d.value)&&I(l,"value",b,d.value,!1),"checked"in _&&void 0!==(b=_.checked)&&b!==l.checked&&I(l,"checked",b,d.checked,!1));}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function O(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&O(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function q(n,l,u){return this.constructor(n,u)}function B$1(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],z$1(t,u=(!o&&i||t).__k=y(k$1,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),L(f,u,e);}n=s$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h$1({},this.state),"function"==typeof n&&(n=n(h$1({},u),this.props)),n&&h$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$1(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$1(this));},b$1.prototype.render=k$1,i$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x.__r=0;

@@ -16,16 +16,16 @@ var t,r,u,i,o=0,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o=1,s(B,n)}function s(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function p(u,i){var o=d(t++,3);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[],t=0)),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w(n){var t=r;n.__c=n.__(),r=t;}function z(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(n,t){return "function"==typeof t?t(n):t}

var index_es6 = /*#__PURE__*/Object.freeze({
__proto__: null,
BUILD_VERSION: BUILD_VERSION,
Component: b$1,
Fragment: k$1,
PKG_NAME: PKG_NAME,
PKG_VERSION: PKG_VERSION,
createElement: y,
h: y,
render: D,
useCallback: T,
useEffect: p,
useMemo: F,
useReducer: s,
useState: h
__proto__: null,
BUILD_VERSION: BUILD_VERSION,
Component: b$1,
Fragment: k$1,
PKG_NAME: PKG_NAME,
PKG_VERSION: PKG_VERSION,
createElement: y,
h: y,
render: B$1,
useCallback: T,
useEffect: p,
useMemo: F,
useReducer: s,
useState: h
});

@@ -47,41 +47,46 @@

***************************************************************************** */
/* global Reflect, Promise */
/* global Reflect, Promise, SuppressedError, Symbol */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};
var Image = function (_a) {

@@ -216,6 +221,6 @@ var href = _a.href, x = _a.x, _b = _a.y, y$1 = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c;

function render(C, props, parent, replaceNode) {
D(y(C, props), parent, replaceNode);
B$1(y(C, props), parent, replaceNode);
}
function svgRender(C, props, parent, replaceNode) {
D(y("svg", null, y(C, props)), parent, replaceNode);
B$1(y("svg", null, y(C, props)), parent, replaceNode);
}

@@ -222,0 +227,0 @@ var HTMLAdapter = /** @class */ (function (_super) {

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/common')) :
typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/react"] = {}, global["@hpcc-js/common"]));
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/common')) :
typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/react"] = {}, global["@hpcc-js/common"]));
})(this, (function (exports, common) { 'use strict';
var PKG_NAME$1 = "@hpcc-js/react";
var PKG_VERSION$1 = "2.53.8";
var BUILD_VERSION$1 = "2.104.28";
var PKG_NAME$1 = "@hpcc-js/react";
var PKG_VERSION$1 = "2.53.9";
var BUILD_VERSION$1 = "2.104.30";
var PKG_NAME = "@hpcc-js/preact-shim";
var PKG_VERSION = "2.16.6";
var BUILD_VERSION = "2.104.28";
var PKG_NAME = "@hpcc-js/preact-shim";
var PKG_VERSION = "2.16.7";
var BUILD_VERSION = "2.104.30";
var n,l$1,u$1,t$1,o$1,r$1,f$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v$1=Array.isArray;function h$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,t,o,null)}function d$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function k$1(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function g$1(n,l){if(null==l)return n.__?g$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?g$1(n):null}function m$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return m$1(n)}}function w$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!x.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(x);}function x(){var n,l,u,i,o,r,e,c;for(t$1.sort(f$1);n=t$1.shift();)n.__d&&(l=t$1.length,i=void 0,o=void 0,e=(r=(u=n).__v).__e,(c=u.__P)&&(i=[],(o=h$1({},r)).__v=r.__v+1,L(c,r,o,u.__n,void 0!==c.ownerSVGElement,null!=r.__h?[e]:null,i,null==e?g$1(r):e,r.__h),M(i,r),r.__e!=e&&m$1(r)),t$1.length>l&&t$1.sort(f$1));x.__r=0;}function P(n,l,u,i,t,o,r,f,e,a){var h,p,y,_,b,m,w,x=i&&i.__k||s$1,P=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _||"function"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?d$1(null,_,null,null,_):v$1(_)?d$1(k$1,{children:_},null,null,null):_.__b>0?d$1(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(y=x[h])||y&&_.key==y.key&&_.type===y.type)x[h]=void 0;else for(p=0;p<P;p++){if((y=x[p])&&_.key==y.key&&_.type===y.type){x[p]=void 0;break}y=null;}L(n,_,y=y||c$1,t,o,r,f,e,a),b=_.__e,(p=_.ref)&&y.ref!=p&&(w||(w=[]),y.ref&&w.push(y.ref,null,_),w.push(p,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===y.__k?_.__d=e=C(_,e,n):e=$(n,_,y,x,b,e),"function"==typeof u.type&&(u.__d=e)):e&&y.__e==e&&e.parentNode!=n&&(e=g$1(y));}for(u.__e=m,h=P;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=A(i).nextSibling),q(x[h],x[h]));if(w)for(h=0;h<w.length;h++)O(w[h],w[++h],w[++h]);}function C(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?C(i,l,u):$(u,i,i,t,i.__e,l));return l}function $(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=1)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function A(n){var l,u,i;if(null==n.type||"string"==typeof n.type)return n.__e;if(n.__k)for(l=n.__k.length-1;l>=0;l--)if((u=n.__k[l])&&(i=A(u)))return i;return null}function H(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||T$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||T$1(n,o,l[o],u[o],i);}function I(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function T$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||I(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||I(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?z$1:j$1,o):n.removeEventListener(l,o?z$1:j$1,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function j$1(n){return this.l[n.type+!1](l$1.event?l$1.event(n):n)}function z$1(n){return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function L(n,u,i,t,o,r,f,e,c){var s,a,p,y,d,_,g,m,w,x,C,S,$,A,H,I=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof I){if(m=u.props,w=(s=I.contextType)&&t[s.__c],x=s?w?w.props.value:s.__:t,i.__c?g=(a=u.__c=i.__c).__=a.__E:("prototype"in I&&I.prototype.render?u.__c=a=new I(m,x):(u.__c=a=new b$1(m,x),a.constructor=I,a.render=B$1),w&&w.sub(a),a.props=m,a.state||(a.state={}),a.context=x,a.__n=t,p=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h$1({},a.__s)),h$1(a.__s,I.getDerivedStateFromProps(m,a.__s))),y=a.props,d=a.state,a.__v=u,p)null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else {if(null==I.getDerivedStateFromProps&&m!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,x),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,x)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=m,a.state=a.__s,a.__d=!1),a.__e=!1,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),C=0;C<a._sb.length;C++)a.__h.push(a._sb[C]);a._sb=[],a.__h.length&&f.push(a);break n}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,x),null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(y,d,_);});}if(a.context=x,a.props=m,a.__P=n,S=l$1.__r,$=0,"prototype"in I&&I.prototype.render){for(a.state=a.__s,a.__d=!1,S&&S(u),s=a.render(a.props,a.state,a.context),A=0;A<a._sb.length;A++)a.__h.push(a._sb[A]);a._sb=[];}else do{a.__d=!1,S&&S(u),s=a.render(a.props,a.state,a.context),a.state=a.__s;}while(a.__d&&++$<25);a.state=a.__s,null!=a.getChildContext&&(t=h$1(h$1({},t),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(_=a.getSnapshotBeforeUpdate(y,d)),P(n,v$1(H=null!=s&&s.type===k$1&&null==s.key?s.props.children:s)?H:[H],u,i,t,o,r,f,e,c),a.base=u.__e,u.__h=null,a.__h.length&&f.push(a),g&&(a.__E=a.__=null),a.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=N(i.__e,u,i,t,o,r,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function M(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function N(l,u,i,t,o,r,f,e){var s,a,h,y=i.props,d=u.props,_=u.type,k=0;if("svg"===_&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!_&&(_?s.localName===_:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===_)return document.createTextNode(d);l=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,d.is&&d),r=null,e=!1;}if(null===_)y===d||e&&l.data===d||(l.data=d);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||c$1).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!e){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(h||a)&&(h&&(a&&h.__html==a.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""));}if(H(l,d,y,o,e),h)u.__k=[];else if(P(l,v$1(k=u.props.children)?k:[k],u,i,t,o&&"foreignObject"!==_,r,f,r?r[0]:i.__k&&g$1(i,0),e),null!=r)for(k=r.length;k--;)null!=r[k]&&p$1(r[k]);e||("value"in d&&void 0!==(k=d.value)&&(k!==l.value||"progress"===_&&!k||"option"===_&&k!==y.value)&&T$1(l,"value",k,y.value,!1),"checked"in d&&void 0!==(k=d.checked)&&k!==l.checked&&T$1(l,"checked",k,y.checked,!1));}return l}function O(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function q(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||O(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null,n.__c=void 0;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&q(t[o],u,i||"function"!=typeof n.type);i||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function B$1(n,l,u){return this.constructor(n,u)}function D(u,i,t){var o,r,f;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],L(i,u=(!o&&t||i).__k=y(k$1,null,[u]),r||c$1,c$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),M(f,u);}n=s$1.slice,l$1={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l;}throw n}},u$1=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h$1({},this.state),"function"==typeof n&&(n=n(h$1({},u),this.props)),n&&h$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$1(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$1(this));},b$1.prototype.render=k$1,t$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x.__r=0;
var n,l$1,u$1,i$1,o$1,r$1,f$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v$1=Array.isArray;function h$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function k$1(n){return n.children}function b$1(n,l){this.props=n,this.context=l;}function g$1(n,l){if(null==l)return n.__?g$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__d||u.__e;return "function"==typeof n.type?g$1(n):null}function m$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return m$1(n)}}function w$1(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!x.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(x);}function x(){var n,l,u,t,o,r,e,c,s;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(l=i$1.length,t=void 0,o=void 0,r=void 0,c=(e=(u=n).__v).__e,(s=u.__P)&&(t=[],o=[],(r=h$1({},e)).__v=e.__v+1,z$1(s,e,r,u.__n,void 0!==s.ownerSVGElement,null!=e.__h?[c]:null,t,null==c?g$1(e):c,e.__h,o),L(t,e,o),e.__e!=c&&m$1(e)),i$1.length>l&&i$1.sort(f$1));x.__r=0;}function P(n,l,u,t,i,o,r,f,e,a,h){var p,y,_,b,m,w,x,P,C,D=0,H=t&&t.__k||s$1,I=H.length,T=I,j=l.length;for(u.__k=[],p=0;p<j;p++)null!=(b=u.__k[p]=null==(b=l[p])||"boolean"==typeof b||"function"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?d$1(null,b,null,null,b):v$1(b)?d$1(k$1,{children:b},null,null,null):b.__b>0?d$1(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)?(b.__=u,b.__b=u.__b+1,-1===(P=A(b,H,x=p+D,T))?_=c$1:(_=H[P]||c$1,H[P]=void 0,T--),z$1(n,b,_,i,o,r,f,e,a,h),m=b.__e,(y=b.ref)&&_.ref!=y&&(_.ref&&N(_.ref,null,b),h.push(y,b.__c||m,b)),null!=m&&(null==w&&(w=m),(C=_===c$1||null===_.__v)?-1==P&&D--:P!==x&&(P===x+1?D++:P>x?T>j-x?D+=P-x:D--:D=P<x&&P==x-1?P-x:0),x=p+D,"function"!=typeof b.type||P===x&&_.__k!==b.__k?"function"==typeof b.type||P===x&&!C?void 0!==b.__d?(e=b.__d,b.__d=void 0):e=m.nextSibling:e=S(n,m,e):e=$(b,e,n),"function"==typeof u.type&&(u.__d=e))):(_=H[p])&&null==_.key&&_.__e&&(_.__e==e&&(_.__=t,e=g$1(_)),O(_,_,!1),H[p]=null);for(u.__e=w,p=I;p--;)null!=H[p]&&("function"==typeof u.type&&null!=H[p].__e&&H[p].__e==u.__d&&(u.__d=H[p].__e.nextSibling),O(H[p],H[p]));}function $(n,l,u){for(var t,i=n.__k,o=0;i&&o<i.length;o++)(t=i[o])&&(t.__=n,l="function"==typeof t.type?$(t,l,u):S(u,t.__e,l));return l}function S(n,l,u){return null==u||u.parentNode!==n?n.insertBefore(l,null):l==u&&null!=l.parentNode||n.insertBefore(l,u),l.nextSibling}function A(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type)return u;if(t>(null!=e?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&i==e.key&&o===e.type)return f;f++;}}return -1}function D(n,l,u,t,i){var o;for(o in u)"children"===o||"key"===o||o in l||I(n,o,null,u[o],t);for(o in l)i&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||I(n,o,l[o],u[o],t);}function H(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function I(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||H(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||H(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?j$1:T$1,o)):n.removeEventListener(l,o?j$1:T$1,o);else if("dangerouslySetInnerHTML"!==l){if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function T$1(n){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$1.event?l$1.event(n):n)}function j$1(n){return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function z$1(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,g,m,w,x,$,C,S,A,D,H,I=u.type;if(void 0!==u.constructor)return null;null!=t.__h&&(c=t.__h,e=u.__e=t.__e,u.__h=null,r=[e]),(a=l$1.__b)&&a(u);n:if("function"==typeof I)try{if(w=u.props,x=(a=I.contextType)&&i[a.__c],$=a?x?x.props.value:a.__:i,t.__c?m=(p=u.__c=t.__c).__=p.__E:("prototype"in I&&I.prototype.render?u.__c=p=new I(w,$):(u.__c=p=new b$1(w,$),p.constructor=I,p.render=q),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=$,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=I.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=h$1({},p.__s)),h$1(p.__s,I.getDerivedStateFromProps(w,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==I.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==I.getDerivedStateFromProps&&w!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,$),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,$)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=w,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),C=0;C<p._sb.length;C++)p.__h.push(p._sb[C]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,$),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,g);});}if(p.context=$,p.props=w,p.__P=n,p.__e=!1,S=l$1.__r,A=0,"prototype"in I&&I.prototype.render){for(p.state=p.__s,p.__d=!1,S&&S(u),a=p.render(p.props,p.state,p.context),D=0;D<p._sb.length;D++)p.__h.push(p._sb[D]);p._sb=[];}else do{p.__d=!1,S&&S(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++A<25);p.state=p.__s,null!=p.getChildContext&&(i=h$1(h$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(g=p.getSnapshotBeforeUpdate(d,_)),P(n,v$1(H=null!=a&&a.type===k$1&&null==a.key?a.props.children:a)?H:[H],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__h=null,p.__h.length&&f.push(p),m&&(p.__E=p.__=null);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=M(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function L(n,u,t){for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function M(l,u,t,i,o,r,f,e,s){var a,h,y,d=t.props,_=u.props,k=u.type,b=0;if("svg"===k&&(o=!0),null!=r)for(;b<r.length;b++)if((a=r[b])&&"setAttribute"in a==!!k&&(k?a.localName===k:3===a.nodeType)){l=a,r[b]=null;break}if(null==l){if(null===k)return document.createTextNode(_);l=o?document.createElementNS("http://www.w3.org/2000/svg",k):document.createElement(k,_.is&&_),r=null,e=!1;}if(null===k)d===_||e&&l.data===_||(l.data=_);else {if(r=r&&n.call(l.childNodes),h=(d=t.props||c$1).dangerouslySetInnerHTML,y=_.dangerouslySetInnerHTML,!e){if(null!=r)for(d={},b=0;b<l.attributes.length;b++)d[l.attributes[b].name]=l.attributes[b].value;(y||h)&&(y&&(h&&y.__html==h.__html||y.__html===l.innerHTML)||(l.innerHTML=y&&y.__html||""));}if(D(l,_,d,o,e),y)u.__k=[];else if(P(l,v$1(b=u.props.children)?b:[b],u,t,i,o&&"foreignObject"!==k,r,f,r?r[0]:t.__k&&g$1(t,0),e,s),null!=r)for(b=r.length;b--;)null!=r[b]&&p$1(r[b]);e||("value"in _&&void 0!==(b=_.value)&&(b!==l.value||"progress"===k&&!b||"option"===k&&b!==d.value)&&I(l,"value",b,d.value,!1),"checked"in _&&void 0!==(b=_.checked)&&b!==l.checked&&I(l,"checked",b,d.checked,!1));}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function O(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&O(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function q(n,l,u){return this.constructor(n,u)}function B$1(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],z$1(t,u=(!o&&i||t).__k=y(k$1,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),L(f,u,e);}n=s$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,b$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h$1({},this.state),"function"==typeof n&&(n=n(h$1({},u),this.props)),n&&h$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w$1(this));},b$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w$1(this));},b$1.prototype.render=k$1,i$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x.__r=0;
var t,r,u,i,o=0,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o=1,s(B,n)}function s(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function p(u,i){var o=d(t++,3);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[],t=0)),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w(n){var t=r;n.__c=n.__(),r=t;}function z(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(n,t){return "function"==typeof t?t(n):t}
var t,r,u,i,o=0,f=[],c=[],e=l$1.__b,a=l$1.__r,v=l$1.diffed,l=l$1.__c,m=l$1.unmount;function d(t,u){l$1.__h&&l$1.__h(r,t,o||u),o=0;var i=r.__H||(r.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:c}),i.__[t]}function h(n){return o=1,s(B,n)}function s(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):B(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function p(u,i){var o=d(t++,3);!l$1.__s&&z(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function F(n,r){var u=d(t++,7);return z(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function T(n,t){return o=8,F(function(){return n},t)}function b(){for(var t;t=f.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(k),t.__H.__h.forEach(w),t.__H.__h=[];}catch(r){t.__H.__h=[],l$1.__e(r,t.__v);}}l$1.__b=function(n){r=null,e&&e(n);},l$1.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(k),i.__h.forEach(w),i.__h=[],t=0)),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==f.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||j)(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(k),t.__h=t.__h.filter(function(n){return !n.__||w(n)});}catch(u){r.some(function(n){n.__h&&(n.__h=[]);}),r=[],l$1.__e(u,t.__v);}}),l&&l(t,r);},l$1.unmount=function(t){m&&m(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach(function(n){try{k(n);}catch(n){r=n;}}),u.__H=void 0,r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));}function k(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function w(n){var t=r;n.__c=n.__(),r=t;}function z(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function B(n,t){return "function"==typeof t?t(n):t}
var index_es6 = /*#__PURE__*/Object.freeze({
__proto__: null,
BUILD_VERSION: BUILD_VERSION,
Component: b$1,
Fragment: k$1,
PKG_NAME: PKG_NAME,
PKG_VERSION: PKG_VERSION,
createElement: y,
h: y,
render: D,
useCallback: T,
useEffect: p,
useMemo: F,
useReducer: s,
useState: h
});
var index_es6 = /*#__PURE__*/Object.freeze({
__proto__: null,
BUILD_VERSION: BUILD_VERSION,
Component: b$1,
Fragment: k$1,
PKG_NAME: PKG_NAME,
PKG_VERSION: PKG_VERSION,
createElement: y,
h: y,
render: B$1,
useCallback: T,
useEffect: p,
useMemo: F,
useReducer: s,
useState: h
});
/******************************************************************************
Copyright (c) Microsoft Corporation.
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
var Image = function (_a) {
var href = _a.href, x = _a.x, _b = _a.y, y$1 = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c;
return y("image", { href: href, x: x - height / 2, y: y$1 - height / 2, width: height, height: height });
};
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};
var ImageChar = function (_a) {
var x = _a.x, _b = _a.y, y$1 = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.fontFamily, fontFamily = _d === void 0 ? "FontAwesome" : _d, _e = _a.char, char = _e === void 0 ? "" : _e;
var renderChar = F(function () {
return fontFamily === "FontAwesome" ? common.Utility.faChar(char) : char;
}, [char, fontFamily]);
return y("text", { x: x, y: y$1, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, renderChar);
};
var Image = function (_a) {
var href = _a.href, x = _a.x, _b = _a.y, y$1 = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c;
return y("image", { href: href, x: x - height / 2, y: y$1 - height / 2, width: height, height: height });
};
var Circle = function (_a) {
var _b = _a.radius, radius = _b === void 0 ? 32 : _b, _c = _a.fill, fill = _c === void 0 ? "navy" : _c, _d = _a.stroke, stroke = _d === void 0 ? fill : _d, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
return y("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Square = function (_a) {
var _b = _a.radius, radius = _b === void 0 ? 30 : _b, _c = _a.cornerRadius, cornerRadius = _c === void 0 ? 0 : _c, _d = _a.fill, fill = _d === void 0 ? "white" : _d, stroke = _a.stroke, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
return y("rect", { x: -radius, y: -radius, rx: cornerRadius, ry: cornerRadius, width: radius * 2, height: radius * 2, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Rectangle = function (_a) {
var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, _d = _a.cornerRadius, cornerRadius = _d === void 0 ? 0 : _d, _e = _a.fill, fill = _e === void 0 ? "white" : _e, _f = _a.stroke, stroke = _f === void 0 ? "black" : _f, _g = _a.strokeWidth, strokeWidth = _g === void 0 ? 1 : _g, shapeRendering = _a.shapeRendering;
return y("rect", { x: -width / 2, y: -height / 2, rx: cornerRadius, ry: cornerRadius, width: width, height: height, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Shape = function (_a) {
var _b = _a.shape, shape = _b === void 0 ? "circle" : _b, _c = _a.height, height = _c === void 0 ? 128 : _c, width = _a.width, fill = _a.fill, stroke = _a.stroke, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? 1 : _d, shapeRendering = _a.shapeRendering, cornerRadius = _a.cornerRadius;
switch (shape) {
case "square":
return y(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
case "rectangle":
return y(Rectangle, { width: width !== null && width !== void 0 ? width : height, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
case "circle":
default:
return y(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
}
};
var ImageChar = function (_a) {
var x = _a.x, _b = _a.y, y$1 = _b === void 0 ? 0 : _b, _c = _a.height, height = _c === void 0 ? 12 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.fontFamily, fontFamily = _d === void 0 ? "FontAwesome" : _d, _e = _a.char, char = _e === void 0 ? "" : _e;
var renderChar = F(function () {
return fontFamily === "FontAwesome" ? common.Utility.faChar(char) : char;
}, [char, fontFamily]);
return y("text", { x: x, y: y$1, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, renderChar);
};
var Icon = function (_a) {
var _b = _a.shape, shape = _b === void 0 ? "circle" : _b, width = _a.width, _c = _a.height, height = _c === void 0 ? 32 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? 0 : _d, _e = _a.imageUrl, imageUrl = _e === void 0 ? "" : _e, _f = _a.imageFontFamily, imageFontFamily = _f === void 0 ? "FontAwesome" : _f, _g = _a.imageChar, imageChar = _g === void 0 ? "" : _g, _h = _a.imageCharFill, imageCharFill = _h === void 0 ? common.Palette.textColor(fill) : _h, _j = _a.padding, padding = _j === void 0 ? height / 5 : _j, _k = _a.xOffset, xOffset = _k === void 0 ? 0 : _k, _l = _a.yOffset, yOffset = _l === void 0 ? 0 : _l, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering;
return y(k$1, null,
y(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
imageUrl ?
y(Image, { href: imageUrl, x: xOffset, y: yOffset, height: height - padding }) :
y(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
};
var Icons = function (_a) {
var _b = _a.icons, icons = _b === void 0 ? [] : _b;
var IconComponents = icons.map(function (cat) {
return y("g", { key: cat.id, id: cat.id },
y(Icon, __assign({}, cat)));
});
return y(k$1, null, IconComponents);
};
var Circle = function (_a) {
var _b = _a.radius, radius = _b === void 0 ? 32 : _b, _c = _a.fill, fill = _c === void 0 ? "navy" : _c, _d = _a.stroke, stroke = _d === void 0 ? fill : _d, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
return y("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Square = function (_a) {
var _b = _a.radius, radius = _b === void 0 ? 30 : _b, _c = _a.cornerRadius, cornerRadius = _c === void 0 ? 0 : _c, _d = _a.fill, fill = _d === void 0 ? "white" : _d, stroke = _a.stroke, _e = _a.strokeWidth, strokeWidth = _e === void 0 ? 1 : _e, shapeRendering = _a.shapeRendering;
return y("rect", { x: -radius, y: -radius, rx: cornerRadius, ry: cornerRadius, width: radius * 2, height: radius * 2, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Rectangle = function (_a) {
var _b = _a.width, width = _b === void 0 ? 30 : _b, _c = _a.height, height = _c === void 0 ? 30 : _c, _d = _a.cornerRadius, cornerRadius = _d === void 0 ? 0 : _d, _e = _a.fill, fill = _e === void 0 ? "white" : _e, _f = _a.stroke, stroke = _f === void 0 ? "black" : _f, _g = _a.strokeWidth, strokeWidth = _g === void 0 ? 1 : _g, shapeRendering = _a.shapeRendering;
return y("rect", { x: -width / 2, y: -height / 2, rx: cornerRadius, ry: cornerRadius, width: width, height: height, fill: fill, stroke: stroke || fill, "stroke-width": strokeWidth, "shape-rendering": shapeRendering });
};
var Shape = function (_a) {
var _b = _a.shape, shape = _b === void 0 ? "circle" : _b, _c = _a.height, height = _c === void 0 ? 128 : _c, width = _a.width, fill = _a.fill, stroke = _a.stroke, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? 1 : _d, shapeRendering = _a.shapeRendering, cornerRadius = _a.cornerRadius;
switch (shape) {
case "square":
return y(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
case "rectangle":
return y(Rectangle, { width: width !== null && width !== void 0 ? width : height, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius });
case "circle":
default:
return y(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering });
}
};
var TextLine = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.anchor, anchor = _c === void 0 ? "middle" : _c, _d = _a.baseline, baseline = _d === void 0 ? "middle" : _d, _e = _a.fontFamily, fontFamily = _e === void 0 ? "Verdana" : _e, _f = _a.fill, fill = _f === void 0 ? "black" : _f;
return y("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
};
var Text = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.fill, fill = _d === void 0 ? "black" : _d, onSizeUpdate = _a.onSizeUpdate;
var _e = h(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1];
var _f = h(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1];
p(function () {
onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });
}, [totalWidth, totalHeight, onSizeUpdate]);
var parts = F(function () {
return text.split("\n");
}, [text]);
var ts = F(function () {
return common.Utility.textSize(parts, fontFamily, height);
}, [fontFamily, height, parts]);
setTotalWidthUpdate(ts.width);
setTotalHeightUpdate(parts.length * (height + 2) - 2);
var yOffset = -(totalHeight / 2) + (height / 2);
var TextLines = F(function () {
return parts.map(function (p, i) {
return y("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") },
y(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
});
}, [fill, fontFamily, height, parts, yOffset]);
return y(k$1, null, TextLines);
};
var TextBox = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.padding, padding = _d === void 0 ? 4 : _d, _e = _a.fill, fill = _e === void 0 ? "whitesmoke" : _e, _f = _a.stroke, stroke = _f === void 0 ? "lightgray" : _f, _g = _a.textFill, textFill = _g === void 0 ? "black" : _g, _h = _a.strokeWidth, strokeWidth = _h === void 0 ? 1 : _h, _j = _a.cornerRadius, cornerRadius = _j === void 0 ? 0 : _j, onSizeUpdate = _a.onSizeUpdate;
var _k = h(0), textWidth = _k[0], setTextWidthUpdate = _k[1];
var _l = h(0), textHeight = _l[0], setTextHeightUpdate = _l[1];
p(function () {
onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });
}, [textWidth, textHeight, onSizeUpdate]);
var onTextSizeUpdate = T(function (size) {
setTextWidthUpdate(size.width);
setTextHeightUpdate(size.height);
}, []);
var w = textWidth + padding * 2 + strokeWidth;
var h$1 = textHeight + padding * 2 + strokeWidth;
var textOffsetY = Math.floor(height / 10);
return y(k$1, null,
y(Rectangle, { width: w, height: h$1, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
y("g", { transform: "translate(0 ".concat(textOffsetY, ")") },
y(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
};
var LabelledRect = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
return y(k$1, null,
y(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
y("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
y(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
};
var IconLabelledRect = function (_a) {
var icon = _a.icon, iconFontFamily = _a.iconFontFamily, text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
return y(k$1, null,
y(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
y("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
y(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
y("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") },
y(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
};
var Icon = function (_a) {
var _b = _a.shape, shape = _b === void 0 ? "circle" : _b, width = _a.width, _c = _a.height, height = _c === void 0 ? 32 : _c, fill = _a.fill, stroke = _a.stroke, _d = _a.strokeWidth, strokeWidth = _d === void 0 ? 0 : _d, _e = _a.imageUrl, imageUrl = _e === void 0 ? "" : _e, _f = _a.imageFontFamily, imageFontFamily = _f === void 0 ? "FontAwesome" : _f, _g = _a.imageChar, imageChar = _g === void 0 ? "" : _g, _h = _a.imageCharFill, imageCharFill = _h === void 0 ? common.Palette.textColor(fill) : _h, _j = _a.padding, padding = _j === void 0 ? height / 5 : _j, _k = _a.xOffset, xOffset = _k === void 0 ? 0 : _k, _l = _a.yOffset, yOffset = _l === void 0 ? 0 : _l, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering;
return y(k$1, null,
y(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }),
imageUrl ?
y(Image, { href: imageUrl, x: xOffset, y: yOffset, height: height - padding }) :
y(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 }));
};
var Icons = function (_a) {
var _b = _a.icons, icons = _b === void 0 ? [] : _b;
var IconComponents = icons.map(function (cat) {
return y("g", { key: cat.id, id: cat.id },
y(Icon, __assign({}, cat)));
});
return y(k$1, null, IconComponents);
};
var Edge = function (_a) {
var label = _a.label, labelPos = _a.labelPos, _b = _a.labelFill, labelFill = _b === void 0 ? "black" : _b, _c = _a.labelHeight, labelHeight = _c === void 0 ? 12 : _c, path = _a.path, stroke = _a.stroke, strokeWidth = _a.strokeWidth, strokeDasharray = _a.strokeDasharray;
return y(k$1, null,
y("path", { d: path, stroke: stroke, style: { strokeWidth: strokeWidth, strokeDasharray: strokeDasharray } }),
label && labelPos && labelPos.length === 2 ?
y("g", { transform: "translate(".concat(labelPos[0], " ").concat(labelPos[1], ")") },
y(Text, { text: label, fill: labelFill, height: labelHeight })) : undefined);
};
var TextLine = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.anchor, anchor = _c === void 0 ? "middle" : _c, _d = _a.baseline, baseline = _d === void 0 ? "middle" : _d, _e = _a.fontFamily, fontFamily = _e === void 0 ? "Verdana" : _e, _f = _a.fill, fill = _f === void 0 ? "black" : _f;
return y("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text);
};
var Text = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.fill, fill = _d === void 0 ? "black" : _d, onSizeUpdate = _a.onSizeUpdate;
var _e = h(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1];
var _f = h(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1];
p(function () {
onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight });
}, [totalWidth, totalHeight, onSizeUpdate]);
var parts = F(function () {
return text.split("\n");
}, [text]);
var ts = F(function () {
return common.Utility.textSize(parts, fontFamily, height);
}, [fontFamily, height, parts]);
setTotalWidthUpdate(ts.width);
setTotalHeightUpdate(parts.length * (height + 2) - 2);
var yOffset = -(totalHeight / 2) + (height / 2);
var TextLines = F(function () {
return parts.map(function (p, i) {
return y("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") },
y(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill }));
});
}, [fill, fontFamily, height, parts, yOffset]);
return y(k$1, null, TextLines);
};
var TextBox = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.fontFamily, fontFamily = _c === void 0 ? "Verdana" : _c, _d = _a.padding, padding = _d === void 0 ? 4 : _d, _e = _a.fill, fill = _e === void 0 ? "whitesmoke" : _e, _f = _a.stroke, stroke = _f === void 0 ? "lightgray" : _f, _g = _a.textFill, textFill = _g === void 0 ? "black" : _g, _h = _a.strokeWidth, strokeWidth = _h === void 0 ? 1 : _h, _j = _a.cornerRadius, cornerRadius = _j === void 0 ? 0 : _j, onSizeUpdate = _a.onSizeUpdate;
var _k = h(0), textWidth = _k[0], setTextWidthUpdate = _k[1];
var _l = h(0), textHeight = _l[0], setTextHeightUpdate = _l[1];
p(function () {
onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight });
}, [textWidth, textHeight, onSizeUpdate]);
var onTextSizeUpdate = T(function (size) {
setTextWidthUpdate(size.width);
setTextHeightUpdate(size.height);
}, []);
var w = textWidth + padding * 2 + strokeWidth;
var h$1 = textHeight + padding * 2 + strokeWidth;
var textOffsetY = Math.floor(height / 10);
return y(k$1, null,
y(Rectangle, { width: w, height: h$1, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
y("g", { transform: "translate(0 ".concat(textOffsetY, ")") },
y(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate })));
};
var LabelledRect = function (_a) {
var text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
return y(k$1, null,
y(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
y("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
y(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
};
var IconLabelledRect = function (_a) {
var icon = _a.icon, iconFontFamily = _a.iconFontFamily, text = _a.text, _b = _a.height, height = _b === void 0 ? 12 : _b, _c = _a.width, width = _c === void 0 ? 12 : _c, _d = _a.fontFamily, fontFamily = _d === void 0 ? "Verdana" : _d, _e = _a.fontSize, fontSize = _e === void 0 ? 10 : _e, _f = _a.padding, padding = _f === void 0 ? 3 : _f, _g = _a.fill, fill = _g === void 0 ? "whitesmoke" : _g, _h = _a.stroke, stroke = _h === void 0 ? "lightgray" : _h, _j = _a.textFill, textFill = _j === void 0 ? "black" : _j, _k = _a.strokeWidth, strokeWidth = _k === void 0 ? 1 : _k, _l = _a.cornerRadius, cornerRadius = _l === void 0 ? 0 : _l; _a.onSizeUpdate;
return y(k$1, null,
y(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }),
y("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") },
y(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })),
y("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") },
y(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" })));
};
function render(C, props, parent, replaceNode) {
D(y(C, props), parent, replaceNode);
}
function svgRender(C, props, parent, replaceNode) {
D(y("svg", null, y(C, props)), parent, replaceNode);
}
var HTMLAdapter = /** @class */ (function (_super) {
__extends(HTMLAdapter, _super);
function HTMLAdapter(_component) {
var _this = _super.call(this) || this;
_this._component = _component;
_this._props = {};
return _this;
}
HTMLAdapter.prototype.props = function (_) {
if (!arguments.length)
return this._props;
this._props = __assign(__assign({}, this._props), _);
return this;
};
HTMLAdapter.prototype.prop = function (_, value) {
if (arguments.length === 1)
return this._props[_];
this._props[_] = value;
return this;
};
HTMLAdapter.prototype.update = function (domNode, element) {
_super.prototype.update.call(this, domNode, element);
render(this._component, this._props, domNode);
};
__decorate([
common.publish({}, "object", "Properties"),
__metadata("design:type", Object)
], HTMLAdapter.prototype, "_props", void 0);
return HTMLAdapter;
}(common.HTMLWidget));
var SVGAdapter = /** @class */ (function (_super) {
__extends(SVGAdapter, _super);
function SVGAdapter(_component) {
var _this = _super.call(this) || this;
_this._component = _component;
_this._props = {};
return _this;
}
SVGAdapter.prototype.props = function (_) {
if (!arguments.length)
return this._props;
this._props = __assign(__assign({}, this._props), _);
return this;
};
SVGAdapter.prototype.prop = function (_, value) {
if (arguments.length === 1)
return this._props[_];
this._props[_] = value;
return this;
};
SVGAdapter.prototype.update = function (domNode, element) {
_super.prototype.update.call(this, domNode, element);
render(this._component, this._props, domNode);
};
__decorate([
common.publish({}, "object", "Properties"),
__metadata("design:type", Object)
], SVGAdapter.prototype, "_props", void 0);
return SVGAdapter;
}(common.SVGWidget));
var Edge = function (_a) {
var label = _a.label, labelPos = _a.labelPos, _b = _a.labelFill, labelFill = _b === void 0 ? "black" : _b, _c = _a.labelHeight, labelHeight = _c === void 0 ? 12 : _c, path = _a.path, stroke = _a.stroke, strokeWidth = _a.strokeWidth, strokeDasharray = _a.strokeDasharray;
return y(k$1, null,
y("path", { d: path, stroke: stroke, style: { strokeWidth: strokeWidth, strokeDasharray: strokeDasharray } }),
label && labelPos && labelPos.length === 2 ?
y("g", { transform: "translate(".concat(labelPos[0], " ").concat(labelPos[1], ")") },
y(Text, { text: label, fill: labelFill, height: labelHeight })) : undefined);
};
var Annotations = function (_a) {
var x = _a.x, y$1 = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
var IconComponents = annotationIDs.map(function (id, i) { return y("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y$1, ")") },
y("use", { href: "#" + id })); });
return y(k$1, null, IconComponents);
};
var Vertex = function (_a) {
var _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.icon, icon = _f === void 0 ? {} : _f, _g = _a.annotationsHeight, annotationsHeight = _g === void 0 ? 12 : _g, _h = _a.annotationIDs, annotationIDs = _h === void 0 ? [] : _h, textFill = _a.textFill, textboxFill = _a.textboxFill, textboxStroke = _a.textboxStroke, textFontFamily = _a.textFontFamily, onSizeUpdate = _a.onSizeUpdate, _j = _a.showLabel, showLabel = _j === void 0 ? true : _j, _k = _a.scale, scale = _k === void 0 ? 1 : _k;
var _l = h(0), textBoxWidth = _l[0], setTextBoxWidthUpdate = _l[1];
var _m = h(0), textBoxHeight = _m[0], setTextBoxHeightUpdate = _m[1];
p(function () {
onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });
}, [textBoxWidth, textBoxHeight, onSizeUpdate]);
icon = __assign({ imageChar: "fa-question", height: 32, fill: "transparent" }, icon);
var width = textBoxWidth;
width += 4;
var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
var textboxOffsetY = icon.height / 3 + textBoxHeight / 2 + textPadding;
var annotationOffsetY = icon.height / 3 + textBoxHeight + textPadding + annotationsHeight / 3;
if (!showLabel) {
offsetY += (textHeight + 8) / 2;
annotationOffsetY -= textBoxHeight + textPadding;
}
var onTextBoxSizeUpdate = T(function (size) {
setTextBoxWidthUpdate(size.width);
setTextBoxHeightUpdate(size.height);
}, []);
var label = showLabel ? y("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") },
y(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
return categoryID ?
y("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
y("use", { href: "#" + categoryID }),
label,
y(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
y("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
y(Icon, __assign({}, icon)),
label);
};
function render(C, props, parent, replaceNode) {
B$1(y(C, props), parent, replaceNode);
}
function svgRender(C, props, parent, replaceNode) {
B$1(y("svg", null, y(C, props)), parent, replaceNode);
}
var HTMLAdapter = /** @class */ (function (_super) {
__extends(HTMLAdapter, _super);
function HTMLAdapter(_component) {
var _this = _super.call(this) || this;
_this._component = _component;
_this._props = {};
return _this;
}
HTMLAdapter.prototype.props = function (_) {
if (!arguments.length)
return this._props;
this._props = __assign(__assign({}, this._props), _);
return this;
};
HTMLAdapter.prototype.prop = function (_, value) {
if (arguments.length === 1)
return this._props[_];
this._props[_] = value;
return this;
};
HTMLAdapter.prototype.update = function (domNode, element) {
_super.prototype.update.call(this, domNode, element);
render(this._component, this._props, domNode);
};
__decorate([
common.publish({}, "object", "Properties"),
__metadata("design:type", Object)
], HTMLAdapter.prototype, "_props", void 0);
return HTMLAdapter;
}(common.HTMLWidget));
var SVGAdapter = /** @class */ (function (_super) {
__extends(SVGAdapter, _super);
function SVGAdapter(_component) {
var _this = _super.call(this) || this;
_this._component = _component;
_this._props = {};
return _this;
}
SVGAdapter.prototype.props = function (_) {
if (!arguments.length)
return this._props;
this._props = __assign(__assign({}, this._props), _);
return this;
};
SVGAdapter.prototype.prop = function (_, value) {
if (arguments.length === 1)
return this._props[_];
this._props[_] = value;
return this;
};
SVGAdapter.prototype.update = function (domNode, element) {
_super.prototype.update.call(this, domNode, element);
render(this._component, this._props, domNode);
};
__decorate([
common.publish({}, "object", "Properties"),
__metadata("design:type", Object)
], SVGAdapter.prototype, "_props", void 0);
return SVGAdapter;
}(common.SVGWidget));
var Vertex2 = function (_a) {
var _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.icon, icon = _f === void 0 ? {} : _f, _g = _a.textFill, textFill = _g === void 0 ? "black" : _g, _h = _a.textboxFill, textboxFill = _h === void 0 ? "white" : _h, _j = _a.textboxStroke, textboxStroke = _j === void 0 ? "black" : _j, textFontFamily = _a.textFontFamily, _k = _a.annotationsHeight, annotationsHeight = _k === void 0 ? 12 : _k, _l = _a.annotationIDs, annotationIDs = _l === void 0 ? [] : _l;
icon = __assign({ imageChar: "fa-question", imageCharFill: "white", height: 32, fill: "black", shape: "square" }, icon);
var textBoxHeight = textHeight + textPadding * 2;
var width = F(function () {
return common.Utility.textSize(text, textFontFamily, textHeight, false);
}, [text, textFontFamily, textHeight]).width;
var stepSize = annotationsHeight;
var textboxStrokeWidth = 1;
var halfTextboxHeight = textBoxHeight / 2;
var offsetX = 0;
var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
var iconOffsetX = -icon.height / 2;
var iconOffsetY = 0;
var textboxOffsetX = Math.ceil((width / 2) + textPadding);
var textboxOffsetY = halfTextboxHeight - (icon.height / 2);
var annotationOffsetX = stepSize / 2;
var annotationOffsetY = halfTextboxHeight;
return categoryID ?
y("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") },
y("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
y("use", { href: "#" + categoryID })),
y("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") },
y(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
y(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
:
y(k$1, null,
y("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") },
y(Icon, __assign({}, icon, { shape: "square" }))),
y("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") },
y(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
};
var Annotations = function (_a) {
var x = _a.x, y$1 = _a.y, _b = _a.annotationIDs, annotationIDs = _b === void 0 ? [] : _b, _c = _a.stepSize, stepSize = _c === void 0 ? -16 : _c;
var IconComponents = annotationIDs.map(function (id, i) { return y("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y$1, ")") },
y("use", { href: "#" + id })); });
return y(k$1, null, IconComponents);
};
var Vertex = function (_a) {
var _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.icon, icon = _f === void 0 ? {} : _f, _g = _a.annotationsHeight, annotationsHeight = _g === void 0 ? 12 : _g, _h = _a.annotationIDs, annotationIDs = _h === void 0 ? [] : _h, textFill = _a.textFill, textboxFill = _a.textboxFill, textboxStroke = _a.textboxStroke, textFontFamily = _a.textFontFamily, onSizeUpdate = _a.onSizeUpdate, _j = _a.showLabel, showLabel = _j === void 0 ? true : _j, _k = _a.scale, scale = _k === void 0 ? 1 : _k;
var _l = h(0), textBoxWidth = _l[0], setTextBoxWidthUpdate = _l[1];
var _m = h(0), textBoxHeight = _m[0], setTextBoxHeightUpdate = _m[1];
p(function () {
onSizeUpdate && onSizeUpdate({ width: 0, height: 0 });
}, [textBoxWidth, textBoxHeight, onSizeUpdate]);
icon = __assign({ imageChar: "fa-question", height: 32, fill: "transparent" }, icon);
var width = textBoxWidth;
width += 4;
var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
var textboxOffsetY = icon.height / 3 + textBoxHeight / 2 + textPadding;
var annotationOffsetY = icon.height / 3 + textBoxHeight + textPadding + annotationsHeight / 3;
if (!showLabel) {
offsetY += (textHeight + 8) / 2;
annotationOffsetY -= textBoxHeight + textPadding;
}
var onTextBoxSizeUpdate = T(function (size) {
setTextBoxWidthUpdate(size.width);
setTextBoxHeightUpdate(size.height);
}, []);
var label = showLabel ? y("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") },
y(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined;
return categoryID ?
y("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
y("use", { href: "#" + categoryID }),
label,
y(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) :
y("g", { transform: "translate(0 ".concat(offsetY, ") scale(").concat(scale, ")") },
y(Icon, __assign({}, icon)),
label);
};
var Vertex3 = function (_a) {
var _b = _a.text, text = _b === void 0 ? "" : _b, _c = _a.textHeight, textHeight = _c === void 0 ? 10 : _c, _d = _a.textPadding, textPadding = _d === void 0 ? 4 : _d, _e = _a.textFill, textFill = _e === void 0 ? "#287EC4" : _e, _f = _a.textboxFill, textboxFill = _f === void 0 ? "white" : _f, _g = _a.textboxStroke, textboxStroke = _g === void 0 ? "#CCCCCC" : _g, _h = _a.textboxStrokeWidth, textboxStrokeWidth = _h === void 0 ? 1 : _h, _j = _a.textFontFamily, textFontFamily = _j === void 0 ? "Verdana" : _j, _k = _a.annotationGutter, annotationGutter = _k === void 0 ? 2 : _k, _l = _a.annotations, annotations = _l === void 0 ? [] : _l, _m = _a.cornerRadius, cornerRadius = _m === void 0 ? 3 : _m, _o = _a.icon, icon = _o === void 0 ? {} : _o, _p = _a.subText, subText = _p === void 0 ? { text: "" } : _p, _q = _a.showLabel, showLabel = _q === void 0 ? true : _q, _r = _a.noLabelRadius, noLabelRadius = _r === void 0 ? 5 : _r, expansionIcon = _a.expansionIcon, _s = _a.scale, scale = _s === void 0 ? 1 : _s;
icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
expansionIcon = expansionIcon ? __assign({ height: 16, shape: "circle", padding: 6, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "black", fill: "whitesmoke", stroke: "whitesmoke", strokeWidth: 0 }, expansionIcon) : undefined;
var fullAnnotationWidth = 0;
var annoOffsetY = 0;
var labelWidth = F(function () {
return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
}, [text, textFontFamily, textHeight]);
var labelShapeWidth = 0;
if (text !== "") {
labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
}
fullAnnotationWidth += labelShapeWidth + annotationGutter;
var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
var textShapeHeight = textHeight + (textPadding * 2) + (textboxStrokeWidth * 2);
var annotationArr = [];
annotations.forEach(function (anno, idx) {
var annoText = anno.imageChar;
var annoShapeWidth = textShapeHeight;
fullAnnotationWidth += annoShapeWidth + annotationGutter;
var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2);
annotationArr.push(y("g", { key: idx, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
y(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
});
if (annotations.length > 0) {
fullAnnotationWidth += annotationGutter * (annotations.length - 1);
}
var textElement = y("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? y("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : y(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
var iconHeight = icon.height || 20;
var iconStrokeWidth = icon.strokeWidth || 0;
var iconOffsetX = 0;
var iconOffsetY = 0;
var subTextOffsetX = 0;
var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
if (text !== "" || annotationArr.length > 0) {
iconOffsetY = -(iconHeight / 2) - (iconStrokeWidth) - (textShapeHeight / 2) - (annotationGutter * 2);
}
else if (subText.text !== "") {
subTextOffsetY = (iconHeight / 2) + iconStrokeWidth + (annotationGutter * 2);
}
var subtextElement = subText.text === "" ? null : y("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
y(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
return y("g", { transform: "scale(".concat(scale, ")") },
y("g", { "data-click": "icon", transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
y(Icon, __assign({}, icon)),
expansionIcon &&
y("g", { "data-click": "expanded-icon", "data-click-data": JSON.stringify(expansionIcon), transform: "translate(".concat((icon.height + iconStrokeWidth) / 2 - expansionIcon.height / 2, " ").concat(-(icon.height + iconStrokeWidth) / 2 + expansionIcon.height / 2, ")") },
y(Icon, __assign({}, expansionIcon)))),
y("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
textElement,
annotationArr),
subtextElement);
};
var CentroidVertex3 = function (_a) {
var id = _a.id, _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 10 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, cornerRadius = _a.cornerRadius, _o = _a.icon, icon = _o === void 0 ? {} : _o, _p = _a.subText, subText = _p === void 0 ? {} : _p, expansionIcon = _a.expansionIcon, _q = _a.scale, scale = _q === void 0 ? 1 : _q;
icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
var props = {
id: id,
categoryID: categoryID,
text: text,
textHeight: textHeight,
textPadding: textPadding,
textFill: textFill,
textboxFill: textboxFill,
textboxStroke: textboxStroke,
textboxStrokeWidth: textboxStrokeWidth,
textFontFamily: textFontFamily,
annotationGutter: annotationGutter,
annotations: annotations,
cornerRadius: cornerRadius,
icon: icon,
subText: subText,
expansionIcon: expansionIcon,
scale: scale
};
return y(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
};
var Vertex2 = function (_a) {
var _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.icon, icon = _f === void 0 ? {} : _f, _g = _a.textFill, textFill = _g === void 0 ? "black" : _g, _h = _a.textboxFill, textboxFill = _h === void 0 ? "white" : _h, _j = _a.textboxStroke, textboxStroke = _j === void 0 ? "black" : _j, textFontFamily = _a.textFontFamily, _k = _a.annotationsHeight, annotationsHeight = _k === void 0 ? 12 : _k, _l = _a.annotationIDs, annotationIDs = _l === void 0 ? [] : _l;
icon = __assign({ imageChar: "fa-question", imageCharFill: "white", height: 32, fill: "black", shape: "square" }, icon);
var textBoxHeight = textHeight + textPadding * 2;
var width = F(function () {
return common.Utility.textSize(text, textFontFamily, textHeight, false);
}, [text, textFontFamily, textHeight]).width;
var stepSize = annotationsHeight;
var textboxStrokeWidth = 1;
var halfTextboxHeight = textBoxHeight / 2;
var offsetX = 0;
var offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
var iconOffsetX = -icon.height / 2;
var iconOffsetY = 0;
var textboxOffsetX = Math.ceil((width / 2) + textPadding);
var textboxOffsetY = halfTextboxHeight - (icon.height / 2);
var annotationOffsetX = stepSize / 2;
var annotationOffsetY = halfTextboxHeight;
return categoryID ?
y("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") },
y("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
y("use", { href: "#" + categoryID })),
y("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") },
y(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })),
y(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize }))
:
y(k$1, null,
y("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") },
y(Icon, __assign({}, icon, { shape: "square" }))),
y("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") },
y(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill })));
};
var Vertex4 = function (_a) {
_a.categoryID; var _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 10 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.iconAnnotations, iconAnnotations = _o === void 0 ? [] : _o, _p = _a.cornerRadius, cornerRadius = _p === void 0 ? 3 : _p, _q = _a.icon, icon = _q === void 0 ? {} : _q, _r = _a.subText, subText = _r === void 0 ? {} : _r, _s = _a.showLabel, showLabel = _s === void 0 ? true : _s, _t = _a.noLabelRadius, noLabelRadius = _t === void 0 ? 5 : _t, _u = _a.iconBorderWidth, iconBorderWidth = _u === void 0 ? 1 : _u, _v = _a.iconBorderColor, iconBorderColor = _v === void 0 ? "#333" : _v, _w = _a.iconBackgroundColor, iconBackgroundColor = _w === void 0 ? "#fff" : _w, _x = _a.iconFontColor, iconFontColor = _x === void 0 ? "#000" : _x, _y = _a.iconFontSize, iconFontSize = _y === void 0 ? 20 : _y, _z = _a.iconFontFamily, iconFontFamily = _z === void 0 ? "FontAwesome" : _z, _0 = _a.shapeOffsetX, shapeOffsetX = _0 === void 0 ? 0 : _0, _1 = _a.shapeOffsetY, shapeOffsetY = _1 === void 0 ? 0 : _1, _2 = _a.iconOffsetX, iconOffsetX = _2 === void 0 ? 0 : _2, _3 = _a.iconOffsetY, iconOffsetY = _3 === void 0 ? 0 : _3, _4 = _a.iconPadding, iconPadding = _4 === void 0 ? 4 : _4, _5 = _a.iconText, iconText = _5 === void 0 ? "?" : _5, _6 = _a.shapeRendering, shapeRendering = _6 === void 0 ? "auto" : _6;
icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
var annoOffsetY = 0;
var labelWidth = F(function () {
return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
}, [text, textFontFamily, textHeight]);
var labelShapeWidth = 0;
if (text !== "") {
labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
}
var fullAnnotationWidth = labelShapeWidth + annotationGutter;
var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
var textShapeHeight = textHeight + (annotationGutter * 2) + (textboxStrokeWidth * 2);
var annoWidthArr = annotations.map(function (anno, i) {
return common.Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;
});
var annotationArr = [];
var _labelAnnoOffsetX = fullAnnotationWidth;
annotations.forEach(function (anno, i) {
var _a;
var annoText = anno.imageChar;
var annoTextHeight = (_a = anno.height) !== null && _a !== void 0 ? _a : textShapeHeight;
_labelAnnoOffsetX += annoWidthArr[i] + annotationGutter;
var annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2);
annotationArr.push(y("g", { key: i, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
y(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
});
if (annotations.length > 0) {
fullAnnotationWidth += annotationGutter * (annotations.length - 1);
}
var iconAnnotationArr = [];
iconAnnotations.forEach(function (anno, i) {
var _a;
var x = anno.shapeOffsetX;
var y$1 = anno.shapeOffsetY;
iconAnnotationArr.push(y("g", { key: i, class: "vertex3-iconAnno", "data-click": "icon-annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y$1, ")") },
y(Icon, __assign({}, anno, { shape: (_a = anno.shape) !== null && _a !== void 0 ? _a : "square", imageChar: anno.imageChar, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, stroke: anno.stroke, strokeWidth: anno.strokeWidth }))));
});
var textElement = y("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? y("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : y(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
var subTextOffsetX = 0;
var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
var subtextElement = subText.text === "" ? null : y("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
y(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
return y("g", null,
y("g", { "data-click": "icon", transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") },
y(Icon, __assign({}, icon, { strokeWidth: iconBorderWidth, shape: "circle", height: iconFontSize, fill: iconBackgroundColor, stroke: iconBorderColor, imageFontFamily: iconFontFamily, imageChar: iconText, imageCharFill: iconFontColor, padding: iconPadding, xOffset: iconOffsetX, yOffset: iconOffsetY, cornerRadius: cornerRadius, shapeRendering: shapeRendering })),
iconAnnotationArr),
y("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
textElement,
annotationArr),
subtextElement);
};
var CentroidVertex4 = function (_a) {
var id = _a.id, _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 10 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.iconAnnotations, iconAnnotations = _o === void 0 ? [] : _o, cornerRadius = _a.cornerRadius, _p = _a.icon, icon = _p === void 0 ? {} : _p, _q = _a.subText, subText = _q === void 0 ? {} : _q, _r = _a.showLabel, showLabel = _r === void 0 ? true : _r, _s = _a.noLabelRadius, noLabelRadius = _s === void 0 ? 5 : _s, _t = _a.iconBorderWidth, iconBorderWidth = _t === void 0 ? 1 : _t, _u = _a.iconBorderColor, iconBorderColor = _u === void 0 ? "#333" : _u, _v = _a.iconBackgroundColor, iconBackgroundColor = _v === void 0 ? "#fff" : _v, _w = _a.iconFontColor, iconFontColor = _w === void 0 ? "#000" : _w, _x = _a.iconFontSize, iconFontSize = _x === void 0 ? 20 : _x, _y = _a.iconFontFamily, iconFontFamily = _y === void 0 ? "FontAwesome" : _y, _z = _a.shapeOffsetX, shapeOffsetX = _z === void 0 ? 0 : _z, _0 = _a.shapeOffsetY, shapeOffsetY = _0 === void 0 ? 0 : _0, _1 = _a.iconOffsetX, iconOffsetX = _1 === void 0 ? 0 : _1, _2 = _a.iconOffsetY, iconOffsetY = _2 === void 0 ? 0 : _2, _3 = _a.iconPadding, iconPadding = _3 === void 0 ? 4 : _3, _4 = _a.iconText, iconText = _4 === void 0 ? "?" : _4, _5 = _a.shapeRendering, shapeRendering = _5 === void 0 ? "auto" : _5;
icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
var props = {
id: id,
categoryID: categoryID,
text: text,
textHeight: textHeight,
textPadding: textPadding,
textFill: textFill,
textboxFill: textboxFill,
textboxStroke: textboxStroke,
textboxStrokeWidth: textboxStrokeWidth,
textFontFamily: textFontFamily,
annotationGutter: annotationGutter,
annotations: annotations,
iconAnnotations: iconAnnotations,
cornerRadius: cornerRadius,
icon: icon,
subText: subText,
showLabel: showLabel,
noLabelRadius: noLabelRadius,
iconBorderWidth: iconBorderWidth,
iconBorderColor: iconBorderColor,
iconBackgroundColor: iconBackgroundColor,
iconFontColor: iconFontColor,
iconFontSize: iconFontSize,
iconFontFamily: iconFontFamily,
shapeOffsetX: shapeOffsetX,
shapeOffsetY: shapeOffsetY,
iconOffsetX: iconOffsetX,
iconOffsetY: iconOffsetY,
iconPadding: iconPadding,
iconText: iconText,
shapeRendering: shapeRendering
};
return y(Vertex4, __assign({}, props, { icon: icon, subText: subText }));
};
var Vertex3 = function (_a) {
var _b = _a.text, text = _b === void 0 ? "" : _b, _c = _a.textHeight, textHeight = _c === void 0 ? 10 : _c, _d = _a.textPadding, textPadding = _d === void 0 ? 4 : _d, _e = _a.textFill, textFill = _e === void 0 ? "#287EC4" : _e, _f = _a.textboxFill, textboxFill = _f === void 0 ? "white" : _f, _g = _a.textboxStroke, textboxStroke = _g === void 0 ? "#CCCCCC" : _g, _h = _a.textboxStrokeWidth, textboxStrokeWidth = _h === void 0 ? 1 : _h, _j = _a.textFontFamily, textFontFamily = _j === void 0 ? "Verdana" : _j, _k = _a.annotationGutter, annotationGutter = _k === void 0 ? 2 : _k, _l = _a.annotations, annotations = _l === void 0 ? [] : _l, _m = _a.cornerRadius, cornerRadius = _m === void 0 ? 3 : _m, _o = _a.icon, icon = _o === void 0 ? {} : _o, _p = _a.subText, subText = _p === void 0 ? { text: "" } : _p, _q = _a.showLabel, showLabel = _q === void 0 ? true : _q, _r = _a.noLabelRadius, noLabelRadius = _r === void 0 ? 5 : _r, expansionIcon = _a.expansionIcon, _s = _a.scale, scale = _s === void 0 ? 1 : _s;
icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
expansionIcon = expansionIcon ? __assign({ height: 16, shape: "circle", padding: 6, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "black", fill: "whitesmoke", stroke: "whitesmoke", strokeWidth: 0 }, expansionIcon) : undefined;
var fullAnnotationWidth = 0;
var annoOffsetY = 0;
var labelWidth = F(function () {
return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
}, [text, textFontFamily, textHeight]);
var labelShapeWidth = 0;
if (text !== "") {
labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
}
fullAnnotationWidth += labelShapeWidth + annotationGutter;
var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
var textShapeHeight = textHeight + (textPadding * 2) + (textboxStrokeWidth * 2);
var annotationArr = [];
annotations.forEach(function (anno, idx) {
var annoText = anno.imageChar;
var annoShapeWidth = textShapeHeight;
fullAnnotationWidth += annoShapeWidth + annotationGutter;
var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2);
annotationArr.push(y("g", { key: idx, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
y(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
});
if (annotations.length > 0) {
fullAnnotationWidth += annotationGutter * (annotations.length - 1);
}
var textElement = y("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? y("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : y(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
var iconHeight = icon.height || 20;
var iconStrokeWidth = icon.strokeWidth || 0;
var iconOffsetX = 0;
var iconOffsetY = 0;
var subTextOffsetX = 0;
var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
if (text !== "" || annotationArr.length > 0) {
iconOffsetY = -(iconHeight / 2) - (iconStrokeWidth) - (textShapeHeight / 2) - (annotationGutter * 2);
}
else if (subText.text !== "") {
subTextOffsetY = (iconHeight / 2) + iconStrokeWidth + (annotationGutter * 2);
}
var subtextElement = subText.text === "" ? null : y("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
y(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
return y("g", { transform: "scale(".concat(scale, ")") },
y("g", { "data-click": "icon", transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") },
y(Icon, __assign({}, icon)),
expansionIcon &&
y("g", { "data-click": "expanded-icon", "data-click-data": JSON.stringify(expansionIcon), transform: "translate(".concat((icon.height + iconStrokeWidth) / 2 - expansionIcon.height / 2, " ").concat(-(icon.height + iconStrokeWidth) / 2 + expansionIcon.height / 2, ")") },
y(Icon, __assign({}, expansionIcon)))),
y("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
textElement,
annotationArr),
subtextElement);
};
var CentroidVertex3 = function (_a) {
var id = _a.id, _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 10 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, cornerRadius = _a.cornerRadius, _o = _a.icon, icon = _o === void 0 ? {} : _o, _p = _a.subText, subText = _p === void 0 ? {} : _p, expansionIcon = _a.expansionIcon, _q = _a.scale, scale = _q === void 0 ? 1 : _q;
icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
var props = {
id: id,
categoryID: categoryID,
text: text,
textHeight: textHeight,
textPadding: textPadding,
textFill: textFill,
textboxFill: textboxFill,
textboxStroke: textboxStroke,
textboxStrokeWidth: textboxStrokeWidth,
textFontFamily: textFontFamily,
annotationGutter: annotationGutter,
annotations: annotations,
cornerRadius: cornerRadius,
icon: icon,
subText: subText,
expansionIcon: expansionIcon,
scale: scale
};
return y(Vertex3, __assign({}, props, { icon: icon, subText: subText }));
};
var Subgraph = function (_a) {
var text = _a.text, _b = _a.width, width = _b === void 0 ? 100 : _b, _c = _a.height, height = _c === void 0 ? 100 : _c, _d = _a.fill, fill = _d === void 0 ? "transparent" : _d, _e = _a.stroke, stroke = _e === void 0 ? "black" : _e, _f = _a.fontHeight, fontHeight = _f === void 0 ? 12 : _f, fontFamily = _a.fontFamily;
var tSize = common.Utility.textSize(text, fontFamily, fontHeight, false);
return y(k$1, null,
y(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
y("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") },
y(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
};
var Vertex4 = function (_a) {
_a.categoryID; var _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 10 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 4 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.iconAnnotations, iconAnnotations = _o === void 0 ? [] : _o, _p = _a.cornerRadius, cornerRadius = _p === void 0 ? 3 : _p, _q = _a.icon, icon = _q === void 0 ? {} : _q, _r = _a.subText, subText = _r === void 0 ? {} : _r, _s = _a.showLabel, showLabel = _s === void 0 ? true : _s, _t = _a.noLabelRadius, noLabelRadius = _t === void 0 ? 5 : _t, _u = _a.iconBorderWidth, iconBorderWidth = _u === void 0 ? 1 : _u, _v = _a.iconBorderColor, iconBorderColor = _v === void 0 ? "#333" : _v, _w = _a.iconBackgroundColor, iconBackgroundColor = _w === void 0 ? "#fff" : _w, _x = _a.iconFontColor, iconFontColor = _x === void 0 ? "#000" : _x, _y = _a.iconFontSize, iconFontSize = _y === void 0 ? 20 : _y, _z = _a.iconFontFamily, iconFontFamily = _z === void 0 ? "FontAwesome" : _z, _0 = _a.shapeOffsetX, shapeOffsetX = _0 === void 0 ? 0 : _0, _1 = _a.shapeOffsetY, shapeOffsetY = _1 === void 0 ? 0 : _1, _2 = _a.iconOffsetX, iconOffsetX = _2 === void 0 ? 0 : _2, _3 = _a.iconOffsetY, iconOffsetY = _3 === void 0 ? 0 : _3, _4 = _a.iconPadding, iconPadding = _4 === void 0 ? 4 : _4, _5 = _a.iconText, iconText = _5 === void 0 ? "?" : _5, _6 = _a.shapeRendering, shapeRendering = _6 === void 0 ? "auto" : _6;
icon = __assign({ height: 50, imageChar: "?", imageFontFamily: "FontAwesome", imageCharFill: "#555555", fill: "transparent", strokeWidth: 0 }, icon);
subText = __assign({ text: "", fill: "white", textFill: "#555555" }, subText);
var annoOffsetY = 0;
var labelWidth = F(function () {
return common.Utility.textSize(text, textFontFamily, textHeight, false).width;
}, [text, textFontFamily, textHeight]);
var labelShapeWidth = 0;
if (text !== "") {
labelShapeWidth = labelWidth + (textPadding * 2) + (textboxStrokeWidth * 2);
}
var fullAnnotationWidth = labelShapeWidth + annotationGutter;
var textOffsetX = fullAnnotationWidth - (labelShapeWidth / 2);
var textShapeHeight = textHeight + (annotationGutter * 2) + (textboxStrokeWidth * 2);
var annoWidthArr = annotations.map(function (anno, i) {
return common.Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;
});
var annotationArr = [];
var _labelAnnoOffsetX = fullAnnotationWidth;
annotations.forEach(function (anno, i) {
var _a;
var annoText = anno.imageChar;
var annoTextHeight = (_a = anno.height) !== null && _a !== void 0 ? _a : textShapeHeight;
_labelAnnoOffsetX += annoWidthArr[i] + annotationGutter;
var annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2);
annotationArr.push(y("g", { key: i, class: "vertex3-anno", "data-click": "annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") },
y(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 }))));
});
if (annotations.length > 0) {
fullAnnotationWidth += annotationGutter * (annotations.length - 1);
}
var iconAnnotationArr = [];
iconAnnotations.forEach(function (anno, i) {
var _a;
var x = anno.shapeOffsetX;
var y$1 = anno.shapeOffsetY;
iconAnnotationArr.push(y("g", { key: i, class: "vertex3-iconAnno", "data-click": "icon-annotation", "data-click-data": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y$1, ")") },
y(Icon, __assign({}, anno, { shape: (_a = anno.shape) !== null && _a !== void 0 ? _a : "square", imageChar: anno.imageChar, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, stroke: anno.stroke, strokeWidth: anno.strokeWidth }))));
});
var textElement = y("g", { "data-click": "text", transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? y("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : y(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius }));
var subTextOffsetX = 0;
var subTextOffsetY = textShapeHeight + (annotationGutter * 2);
var subtextElement = subText.text === "" ? null : y("g", { "data-click": "subtext", transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") },
y(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius })));
return y("g", null,
y("g", { "data-click": "icon", transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") },
y(Icon, __assign({}, icon, { strokeWidth: iconBorderWidth, shape: "circle", height: iconFontSize, fill: iconBackgroundColor, stroke: iconBorderColor, imageFontFamily: iconFontFamily, imageChar: iconText, imageCharFill: iconFontColor, padding: iconPadding, xOffset: iconOffsetX, yOffset: iconOffsetY, cornerRadius: cornerRadius, shapeRendering: shapeRendering })),
iconAnnotationArr),
y("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") },
textElement,
annotationArr),
subtextElement);
};
var CentroidVertex4 = function (_a) {
var id = _a.id, _b = _a.categoryID, categoryID = _b === void 0 ? "" : _b, _c = _a.text, text = _c === void 0 ? "" : _c, _d = _a.textHeight, textHeight = _d === void 0 ? 12 : _d, _e = _a.textPadding, textPadding = _e === void 0 ? 10 : _e, _f = _a.textFill, textFill = _f === void 0 ? "#287EC4" : _f, _g = _a.textboxFill, textboxFill = _g === void 0 ? "white" : _g, _h = _a.textboxStroke, textboxStroke = _h === void 0 ? "#CCCCCC" : _h, _j = _a.textboxStrokeWidth, textboxStrokeWidth = _j === void 0 ? 1 : _j, _k = _a.textFontFamily, textFontFamily = _k === void 0 ? "Verdana" : _k, _l = _a.annotationGutter, annotationGutter = _l === void 0 ? 2 : _l, _m = _a.annotations, annotations = _m === void 0 ? [] : _m, _o = _a.iconAnnotations, iconAnnotations = _o === void 0 ? [] : _o, cornerRadius = _a.cornerRadius, _p = _a.icon, icon = _p === void 0 ? {} : _p, _q = _a.subText, subText = _q === void 0 ? {} : _q, _r = _a.showLabel, showLabel = _r === void 0 ? true : _r, _s = _a.noLabelRadius, noLabelRadius = _s === void 0 ? 5 : _s, _t = _a.iconBorderWidth, iconBorderWidth = _t === void 0 ? 1 : _t, _u = _a.iconBorderColor, iconBorderColor = _u === void 0 ? "#333" : _u, _v = _a.iconBackgroundColor, iconBackgroundColor = _v === void 0 ? "#fff" : _v, _w = _a.iconFontColor, iconFontColor = _w === void 0 ? "#000" : _w, _x = _a.iconFontSize, iconFontSize = _x === void 0 ? 20 : _x, _y = _a.iconFontFamily, iconFontFamily = _y === void 0 ? "FontAwesome" : _y, _z = _a.shapeOffsetX, shapeOffsetX = _z === void 0 ? 0 : _z, _0 = _a.shapeOffsetY, shapeOffsetY = _0 === void 0 ? 0 : _0, _1 = _a.iconOffsetX, iconOffsetX = _1 === void 0 ? 0 : _1, _2 = _a.iconOffsetY, iconOffsetY = _2 === void 0 ? 0 : _2, _3 = _a.iconPadding, iconPadding = _3 === void 0 ? 4 : _3, _4 = _a.iconText, iconText = _4 === void 0 ? "?" : _4, _5 = _a.shapeRendering, shapeRendering = _5 === void 0 ? "auto" : _5;
icon = __assign({ height: 91, padding: 40, imageCharFill: "#555555", imageFontFamily: "FontAwesome", fill: "#FFCC33", stroke: "#DFDFDF", imageChar: "?", strokeWidth: 4, yOffset: -15 }, icon);
subText = __assign({ text: "", fill: "transparent", textFill: "#555555" }, subText);
var props = {
id: id,
categoryID: categoryID,
text: text,
textHeight: textHeight,
textPadding: textPadding,
textFill: textFill,
textboxFill: textboxFill,
textboxStroke: textboxStroke,
textboxStrokeWidth: textboxStrokeWidth,
textFontFamily: textFontFamily,
annotationGutter: annotationGutter,
annotations: annotations,
iconAnnotations: iconAnnotations,
cornerRadius: cornerRadius,
icon: icon,
subText: subText,
showLabel: showLabel,
noLabelRadius: noLabelRadius,
iconBorderWidth: iconBorderWidth,
iconBorderColor: iconBorderColor,
iconBackgroundColor: iconBackgroundColor,
iconFontColor: iconFontColor,
iconFontSize: iconFontSize,
iconFontFamily: iconFontFamily,
shapeOffsetX: shapeOffsetX,
shapeOffsetY: shapeOffsetY,
iconOffsetX: iconOffsetX,
iconOffsetY: iconOffsetY,
iconPadding: iconPadding,
iconText: iconText,
shapeRendering: shapeRendering
};
return y(Vertex4, __assign({}, props, { icon: icon, subText: subText }));
};
exports.Annotations = Annotations;
exports.BUILD_VERSION = BUILD_VERSION$1;
exports.CentroidVertex3 = CentroidVertex3;
exports.CentroidVertex4 = CentroidVertex4;
exports.Circle = Circle;
exports.Edge = Edge;
exports.HTMLAdapter = HTMLAdapter;
exports.Icon = Icon;
exports.IconLabelledRect = IconLabelledRect;
exports.Icons = Icons;
exports.ImageChar = ImageChar;
exports.LabelledRect = LabelledRect;
exports.PKG_NAME = PKG_NAME$1;
exports.PKG_VERSION = PKG_VERSION$1;
exports.React = index_es6;
exports.Rectangle = Rectangle;
exports.SVGAdapter = SVGAdapter;
exports.Shape = Shape;
exports.Square = Square;
exports.Subgraph = Subgraph;
exports.Text = Text;
exports.TextBox = TextBox;
exports.TextLine = TextLine;
exports.Vertex = Vertex;
exports.Vertex2 = Vertex2;
exports.Vertex3 = Vertex3;
exports.Vertex4 = Vertex4;
exports.render = render;
exports.svgRender = svgRender;
var Subgraph = function (_a) {
var text = _a.text, _b = _a.width, width = _b === void 0 ? 100 : _b, _c = _a.height, height = _c === void 0 ? 100 : _c, _d = _a.fill, fill = _d === void 0 ? "transparent" : _d, _e = _a.stroke, stroke = _e === void 0 ? "black" : _e, _f = _a.fontHeight, fontHeight = _f === void 0 ? 12 : _f, fontFamily = _a.fontFamily;
var tSize = common.Utility.textSize(text, fontFamily, fontHeight, false);
return y(k$1, null,
y(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }),
y("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") },
y(Text, { height: fontHeight, text: text, fontFamily: fontFamily })));
};
Object.defineProperty(exports, '__esModule', { value: true });
exports.Annotations = Annotations;
exports.BUILD_VERSION = BUILD_VERSION$1;
exports.CentroidVertex3 = CentroidVertex3;
exports.CentroidVertex4 = CentroidVertex4;
exports.Circle = Circle;
exports.Edge = Edge;
exports.HTMLAdapter = HTMLAdapter;
exports.Icon = Icon;
exports.IconLabelledRect = IconLabelledRect;
exports.Icons = Icons;
exports.ImageChar = ImageChar;
exports.LabelledRect = LabelledRect;
exports.PKG_NAME = PKG_NAME$1;
exports.PKG_VERSION = PKG_VERSION$1;
exports.React = index_es6;
exports.Rectangle = Rectangle;
exports.SVGAdapter = SVGAdapter;
exports.Shape = Shape;
exports.Square = Square;
exports.Subgraph = Subgraph;
exports.Text = Text;
exports.TextBox = TextBox;
exports.TextLine = TextLine;
exports.Vertex = Vertex;
exports.Vertex2 = Vertex2;
exports.Vertex3 = Vertex3;
exports.Vertex4 = Vertex4;
exports.render = render;
exports.svgRender = svgRender;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,(function(t,e){"use strict";var n,o,i,r,a,l,c,_={},s=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function u(t,e){for(var n in e)t[n]=e[n];return t}function f(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,e,o){var i,r,a,l={};for(a in e)"key"==a?i=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return v(t,l,i,r,null)}function v(t,e,n,r,a){var l={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(l),l}function g(t){return t.children}function m(t,e){this.props=t,this.context=e}function y(t,e){if(null==e)return t.__?y(t.__,t.__.__k.indexOf(t)+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?y(t):null}function x(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return x(t)}}function k(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!F.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||l)(F)}function F(){var t,e,n,o,i,a,l,_;for(r.sort(c);t=r.shift();)t.__d&&(e=r.length,o=void 0,i=void 0,l=(a=(n=t).__v).__e,(_=n.__P)&&(o=[],(i=u({},a)).__v=a.__v+1,H(_,a,i,n.__n,void 0!==_.ownerSVGElement,null!=a.__h?[l]:null,o,null==l?y(a):l,a.__h),E(o,a),a.__e!=l&&x(a)),r.length>e&&r.sort(c));F.__r=0}function b(t,e,n,o,i,r,a,l,c,d){var u,f,p,m,x,k,F,b=o&&o.__k||s,R=b.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(m=n.__k[u]=null==(m=e[u])||"boolean"==typeof m||"function"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?v(null,m,null,null,m):h(m)?v(g,{children:m},null,null,null):m.__b>0?v(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(p=b[u])||p&&m.key==p.key&&m.type===p.type)b[u]=void 0;else for(f=0;f<R;f++){if((p=b[f])&&m.key==p.key&&m.type===p.type){b[f]=void 0;break}p=null}H(t,m,p=p||_,i,r,a,l,c,d),x=m.__e,(f=m.ref)&&p.ref!=f&&(F||(F=[]),p.ref&&F.push(p.ref,null,m),F.push(f,m.__c||x,m)),null!=x?(null==k&&(k=x),"function"==typeof m.type&&m.__k===p.__k?m.__d=c=C(m,c,t):c=w(t,m,p,b,x,c),"function"==typeof n.type&&(n.__d=c)):c&&p.__e==c&&c.parentNode!=t&&(c=y(p))}for(n.__e=k,u=R;u--;)null!=b[u]&&("function"==typeof n.type&&null!=b[u].__e&&b[u].__e==n.__d&&(n.__d=S(o).nextSibling),U(b[u],b[u]));if(F)for(u=0;u<F.length;u++)T(F[u],F[++u],F[++u])}function C(t,e,n){for(var o,i=t.__k,r=0;i&&r<i.length;r++)(o=i[r])&&(o.__=t,e="function"==typeof o.type?C(o,e,n):w(n,o,o,i,o.__e,e));return e}function w(t,e,n,o,i,r){var a,l,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||i!=r||null==i.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(i),a=null;else{for(l=r,c=0;(l=l.nextSibling)&&c<o.length;c+=1)if(l==i)break t;t.insertBefore(i,r),a=r}return void 0!==a?a:i.nextSibling}function S(t){var e,n,o;if(null==t.type||"string"==typeof t.type)return t.__e;if(t.__k)for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(o=S(n)))return o;return null}function R(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||d.test(e)?n:n+"px"}function W(t,e,n,o,i){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||R(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||R(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?o||t.addEventListener(e,r?P:O,r):t.removeEventListener(e,r?P:O,r);else if("dangerouslySetInnerHTML"!==e){if(i)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&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function O(t){return this.l[t.type+!1](o.event?o.event(t):t)}function P(t){return this.l[t.type+!0](o.event?o.event(t):t)}function H(t,e,n,i,r,a,l,c,_){var s,d,f,p,v,y,x,k,F,C,w,S,R,W,O,P=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(_=n.__h,c=e.__e=n.__e,e.__h=null,a=[c]),(s=o.__b)&&s(e);try{t:if("function"==typeof P){if(k=e.props,F=(s=P.contextType)&&i[s.__c],C=s?F?F.props.value:s.__:i,n.__c?x=(d=e.__c=n.__c).__=d.__E:("prototype"in P&&P.prototype.render?e.__c=d=new P(k,C):(e.__c=d=new m(k,C),d.constructor=P,d.render=N),F&&F.sub(d),d.props=k,d.state||(d.state={}),d.context=C,d.__n=i,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=P.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=u({},d.__s)),u(d.__s,P.getDerivedStateFromProps(k,d.__s))),p=d.props,v=d.state,d.__v=e,f)null==P.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==P.getDerivedStateFromProps&&k!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(k,C),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(k,d.__s,C)||e.__v===n.__v){for(e.__v!==n.__v&&(d.props=k,d.state=d.__s,d.__d=!1),d.__e=!1,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[],d.__h.length&&l.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(k,d.__s,C),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,v,y)}))}if(d.context=C,d.props=k,d.__P=t,S=o.__r,R=0,"prototype"in P&&P.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(e),s=d.render(d.props,d.state,d.context),W=0;W<d._sb.length;W++)d.__h.push(d._sb[W]);d._sb=[]}else do{d.__d=!1,S&&S(e),s=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++R<25);d.state=d.__s,null!=d.getChildContext&&(i=u(u({},i),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(p,v)),b(t,h(O=null!=s&&s.type===g&&null==s.key?s.props.children:s)?O:[O],e,n,i,r,a,l,c,_),d.base=e.__e,e.__h=null,d.__h.length&&l.push(d),x&&(d.__E=d.__=null),d.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=D(n.__e,e,n,i,r,a,l,_);(s=o.diffed)&&s(e)}catch(t){e.__v=null,(_||null!=a)&&(e.__e=c,e.__h=!!_,a[a.indexOf(c)]=null),o.__e(t,e,n)}}function E(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function D(t,e,o,i,r,a,l,c){var s,d,u,p=o.props,v=e.props,g=e.type,m=0;if("svg"===g&&(r=!0),null!=a)for(;m<a.length;m++)if((s=a[m])&&"setAttribute"in s==!!g&&(g?s.localName===g:3===s.nodeType)){t=s,a[m]=null;break}if(null==t){if(null===g)return document.createTextNode(v);t=r?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,c=!1}if(null===g)p===v||c&&t.data===v||(t.data=v);else{if(a=a&&n.call(t.childNodes),d=(p=o.props||_).dangerouslySetInnerHTML,u=v.dangerouslySetInnerHTML,!c){if(null!=a)for(p={},m=0;m<t.attributes.length;m++)p[t.attributes[m].name]=t.attributes[m].value;(u||d)&&(u&&(d&&u.__html==d.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(function(t,e,n,o,i){var r;for(r in n)"children"===r||"key"===r||r in e||W(t,r,null,n[r],o);for(r in e)i&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||W(t,r,e[r],n[r],o)}(t,v,p,r,c),u)e.__k=[];else if(b(t,h(m=e.props.children)?m:[m],e,o,i,r&&"foreignObject"!==g,a,l,a?a[0]:o.__k&&y(o,0),c),null!=a)for(m=a.length;m--;)null!=a[m]&&f(a[m]);c||("value"in v&&void 0!==(m=v.value)&&(m!==t.value||"progress"===g&&!m||"option"===g&&m!==p.value)&&W(t,"value",m,p.value,!1),"checked"in v&&void 0!==(m=v.checked)&&m!==t.checked&&W(t,"checked",m,p.checked,!1))}return t}function T(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function U(t,e,n){var i,r;if(o.unmount&&o.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||T(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){o.__e(t,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&U(i[r],e,n||"function"!=typeof t.type);n||null==t.__e||f(t.__e),t.__=t.__e=t.__d=void 0}function N(t,e,n){return this.constructor(t,n)}function A(t,e,i){var r,a,l;o.__&&o.__(t,e),a=(r="function"==typeof i)?null:i&&i.__k||e.__k,l=[],H(e,t=(!r&&i||e).__k=p(g,null,[t]),a||_,_,void 0!==e.ownerSVGElement,!r&&i?[i]:a?null:e.firstChild?n.call(e.childNodes):null,l,!r&&i?i:a?a.__e:e.firstChild,r),E(l,t)}n=s.slice,o={__e:function(t,e,n,o){for(var i,r,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,o||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},i=0,m.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=u({},this.state),"function"==typeof t&&(t=t(u({},n),this.props)),t&&u(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),k(this))},m.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),k(this))},m.prototype.render=g,r=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},F.__r=0;var V,I,L,z,j=0,M=[],B=[],q=o.__b,G=o.__r,X=o.diffed,Y=o.__c,J=o.unmount;function K(t,e){o.__h&&o.__h(I,t,j||e),j=0;var n=I.__H||(I.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:B}),n.__[t]}function $(t){return j=1,Q(ct,t)}function Q(t,e,n){var o=K(V++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):ct(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=I,!I.u)){var i=function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(t){return t.__c}));if(i.every((function(t){return!t.__N})))return!r||r.call(this,t,e,n);var a=!1;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!r||r.call(this,t,e,n))};I.u=!0;var r=I.shouldComponentUpdate,a=I.componentWillUpdate;I.componentWillUpdate=function(t,e,n){if(this.__e){var o=r;r=void 0,i(t,e,n),r=o}a&&a.call(this,t,e,n)},I.shouldComponentUpdate=i}return o.__N||o.__}function Z(t,e){var n=K(V++,3);!o.__s&&lt(n.__H,e)&&(n.__=t,n.i=e,I.__H.__h.push(n))}function tt(t,e){var n=K(V++,7);return lt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function et(t,e){return j=8,tt((function(){return t}),e)}function nt(){for(var t;t=M.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(rt),t.__H.__h.forEach(at),t.__H.__h=[]}catch(e){t.__H.__h=[],o.__e(e,t.__v)}}o.__b=function(t){I=null,q&&q(t)},o.__r=function(t){G&&G(t),V=0;var e=(I=t.__c).__H;e&&(L===I?(e.__h=[],I.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=B,t.__N=t.i=void 0}))):(e.__h.forEach(rt),e.__h.forEach(at),e.__h=[],V=0)),L=I},o.diffed=function(t){X&&X(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==M.push(e)&&z===o.requestAnimationFrame||((z=o.requestAnimationFrame)||it)(nt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==B&&(t.__=t.__V),t.i=void 0,t.__V=B}))),L=I=null},o.__c=function(t,e){e.some((function(t){try{t.__h.forEach(rt),t.__h=t.__h.filter((function(t){return!t.__||at(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],o.__e(n,t.__v)}})),Y&&Y(t,e)},o.unmount=function(t){J&&J(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{rt(t)}catch(t){e=t}})),n.__H=void 0,e&&o.__e(e,n.__v))};var ot="function"==typeof requestAnimationFrame;function it(t){var e,n=function(){clearTimeout(o),ot&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);ot&&(e=requestAnimationFrame(n))}function rt(t){var e=I,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),I=e}function at(t){var e=I;t.__c=t.__(),I=e}function lt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function ct(t,e){return"function"==typeof e?e(t):e}var _t=Object.freeze({__proto__:null,BUILD_VERSION:"2.104.28",Component:m,Fragment:g,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.16.6",createElement:p,h:p,render:A,useCallback:et,useEffect:Z,useMemo:tt,useReducer:Q,useState:$}),st=function(t,e){return st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},st(t,e)};function dt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ht=function(){return ht=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ht.apply(this,arguments)};function ut(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function ft(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var pt=function(t){var e=t.href,n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r;return p("image",{href:e,x:n-a/2,y:i-a/2,width:a,height:a})},vt=function(t){var n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r,l=t.fill,c=t.stroke,_=t.fontFamily,s=void 0===_?"FontAwesome":_,d=t.char,h=void 0===d?"":d,u=tt((function(){return"FontAwesome"===s?e.Utility.faChar(h):h}),[h,s]);return p("text",{x:n,y:i,fill:l,stroke:c,"font-family":s,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},u)},gt=function(t){var e=t.radius,n=void 0===e?32:e,o=t.fill,i=void 0===o?"navy":o,r=t.stroke,a=void 0===r?i:r,l=t.strokeWidth;return p("circle",{r:n,fill:i,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},mt=function(t){var e=t.radius,n=void 0===e?30:e,o=t.cornerRadius,i=void 0===o?0:o,r=t.fill,a=void 0===r?"white":r,l=t.stroke,c=t.strokeWidth;return p("rect",{x:-n,y:-n,rx:i,ry:i,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===c?1:c,"shape-rendering":t.shapeRendering})},yt=function(t){var e=t.width,n=void 0===e?30:e,o=t.height,i=void 0===o?30:o,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,c=void 0===l?"white":l,_=t.stroke,s=void 0===_?"black":_,d=t.strokeWidth;return p("rect",{x:-n/2,y:-i/2,rx:a,ry:a,width:n,height:i,fill:c,stroke:s||c,"stroke-width":void 0===d?1:d,"shape-rendering":t.shapeRendering})},xt=function(t){var e=t.shape,n=void 0===e?"circle":e,o=t.height,i=void 0===o?128:o,r=t.width,a=t.fill,l=t.stroke,c=t.strokeWidth,_=void 0===c?1:c,s=t.shapeRendering,d=t.cornerRadius;switch(n){case"square":return p(mt,{radius:i/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:s,cornerRadius:d});case"rectangle":return p(yt,{width:null!=r?r:i,height:i,fill:a,stroke:l,strokeWidth:_,shapeRendering:s,cornerRadius:d});default:return p(gt,{radius:i/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:s})}},kt=function(t){var n=t.shape,o=void 0===n?"circle":n,i=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,c=t.stroke,_=t.strokeWidth,s=void 0===_?0:_,d=t.imageUrl,h=void 0===d?"":d,u=t.imageFontFamily,f=void 0===u?"FontAwesome":u,v=t.imageChar,m=void 0===v?"":v,y=t.imageCharFill,x=void 0===y?e.Palette.textColor(l):y,k=t.padding,F=void 0===k?a/5:k,b=t.xOffset,C=void 0===b?0:b,w=t.yOffset,S=void 0===w?0:w,R=t.cornerRadius,W=t.shapeRendering;return p(g,null,p(xt,{shape:o,width:i,height:a,fill:l,stroke:c,strokeWidth:s,shapeRendering:W,cornerRadius:R}),h?p(pt,{href:h,x:C,y:S,height:a-F}):p(vt,{x:C,y:S,height:a-F,fontFamily:f,char:m,fill:x,"font-weight":400}))},Ft=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.anchor,r=void 0===i?"middle":i,a=t.baseline,l=void 0===a?"middle":a,c=t.fontFamily,_=void 0===c?"Verdana":c,s=t.fill,d=void 0===s?"black":s;return p("text",{"font-family":_,"font-size":"".concat(o,"px"),"text-anchor":r,"dominant-baseline":l,fill:d},e)},bt=function(t){var n=t.text,o=t.height,i=void 0===o?12:o,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,c=void 0===l?"black":l,_=t.onSizeUpdate,s=$(0),d=s[0],h=s[1],u=$(0),f=u[0],v=u[1];Z((function(){_&&_({width:d,height:f})}),[d,f,_]);var m=tt((function(){return n.split("\n")}),[n]);h(tt((function(){return e.Utility.textSize(m,a,i)}),[a,i,m]).width),v(m.length*(i+2)-2);var y=-f/2+i/2,x=tt((function(){return m.map((function(t,e){return p("g",{key:e,transform:"translate(0 ".concat(y+e*(i+2),")")},p(Ft,{text:t,height:i,fontFamily:a,fill:c}))}))}),[c,a,i,m,y]);return p(g,null,x)},Ct=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.fontFamily,r=void 0===i?"Verdana":i,a=t.padding,l=void 0===a?4:a,c=t.fill,_=void 0===c?"whitesmoke":c,s=t.stroke,d=void 0===s?"lightgray":s,h=t.textFill,u=void 0===h?"black":h,f=t.strokeWidth,v=void 0===f?1:f,m=t.cornerRadius,y=void 0===m?0:m,x=t.onSizeUpdate,k=$(0),F=k[0],b=k[1],C=$(0),w=C[0],S=C[1];Z((function(){x&&x({width:F,height:w})}),[F,w,x]);var R=et((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+v,O=w+2*l+v,P=Math.floor(o/10);return p(g,null,p(yt,{width:W,height:O,fill:_,stroke:d,strokeWidth:v,cornerRadius:y}),p("g",{transform:"translate(0 ".concat(P,")")},p(bt,{text:e,fontFamily:r,height:o,fill:u,onSizeUpdate:R})))};function wt(t,e,n,o){A(p(t,e),n,o)}var St=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return dt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=ht(ht({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),wt(this._component,this._props,e)},ut([e.publish({},"object","Properties"),ft("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Rt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return dt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=ht(ht({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),wt(this._component,this._props,e)},ut([e.publish({},"object","Properties"),ft("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),Wt=function(t){var e=t.x,n=t.y,o=t.annotationIDs,i=void 0===o?[]:o,r=t.stepSize,a=void 0===r?-16:r,l=i.map((function(t,o){return p("g",{key:t,transform:"translate(".concat(e+o*a," ").concat(n,")")},p("use",{href:"#"+t}))}));return p(g,null,l)},Ot=function(t){var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,c=t.textFill,_=void 0===c?"#287EC4":c,s=t.textboxFill,d=void 0===s?"white":s,h=t.textboxStroke,u=void 0===h?"#CCCCCC":h,f=t.textboxStrokeWidth,v=void 0===f?1:f,g=t.textFontFamily,m=void 0===g?"Verdana":g,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.cornerRadius,C=void 0===b?3:b,w=t.icon,S=void 0===w?{}:w,R=t.subText,W=void 0===R?{text:""}:R,O=t.showLabel,P=void 0===O||O,H=t.noLabelRadius,E=void 0===H?5:H,D=t.expansionIcon,T=t.scale,U=void 0===T?1:T;S=ht({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=ht({text:"",fill:"white",textFill:"#555555"},W),D=D?ht({height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0},D):void 0;var N=0,A=tt((function(){return e.Utility.textSize(o,m,r,!1).width}),[o,m,r]),V=0;""!==o&&(V=A+2*l+2*v);var I=(N+=V+x)-V/2,L=r+2*l+2*v,z=[];F.forEach((function(t,e){var n=t.imageChar,o=(N+=L+x)-L/2;z.push(p("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(0,")")},p(kt,ht({},t,{shape:"square",height:L,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:C,strokeWidth:0}))))})),F.length>0&&(N+=x*(F.length-1));var j=p("g",{"data-click":"text",transform:"translate(".concat(I," ").concat(0,")")},P&&""!==o?p(Ct,{text:o,height:r,padding:l,strokeWidth:v,stroke:u,fill:d,textFill:_,fontFamily:m,cornerRadius:C}):p("circle",{r:E,stroke:u,fill:_})),M=S.height||20,B=S.strokeWidth||0,q=0,G=L+2*x;""!==o||z.length>0?q=-M/2-B-L/2-2*x:""!==W.text&&(G=M/2+B+2*x);var X=""===W.text?null:p("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(G,")")},p(Ct,ht({fill:W.fill||"#FFFFFF",textFill:W.textFill||_},W,{height:r,padding:l,strokeWidth:0,stroke:u,fontFamily:m,cornerRadius:C})));return p("g",{transform:"scale(".concat(U,")")},p("g",{"data-click":"icon",transform:"translate(".concat(0," ").concat(q,")")},p(kt,ht({},S)),D&&p("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(D),transform:"translate(".concat((S.height+B)/2-D.height/2," ").concat(-(S.height+B)/2+D.height/2,")")},p(kt,ht({},D)))),p("g",{transform:"translate(".concat(-N/2," ").concat(0,")")},j,z),X)},Pt=function(t){t.categoryID;var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,c=t.textFill,_=void 0===c?"#287EC4":c,s=t.textboxFill,d=void 0===s?"white":s,h=t.textboxStroke,u=void 0===h?"#CCCCCC":h,f=t.textboxStrokeWidth,v=void 0===f?1:f,g=t.textFontFamily,m=void 0===g?"Verdana":g,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.iconAnnotations,C=void 0===b?[]:b,w=t.cornerRadius,S=void 0===w?3:w,R=t.icon,W=void 0===R?{}:R,O=t.subText,P=void 0===O?{}:O,H=t.showLabel,E=void 0===H||H,D=t.noLabelRadius,T=void 0===D?5:D,U=t.iconBorderWidth,N=void 0===U?1:U,A=t.iconBorderColor,V=void 0===A?"#333":A,I=t.iconBackgroundColor,L=void 0===I?"#fff":I,z=t.iconFontColor,j=void 0===z?"#000":z,M=t.iconFontSize,B=void 0===M?20:M,q=t.iconFontFamily,G=void 0===q?"FontAwesome":q,X=t.shapeOffsetX,Y=void 0===X?0:X,J=t.shapeOffsetY,K=void 0===J?0:J,$=t.iconOffsetX,Q=void 0===$?0:$,Z=t.iconOffsetY,et=void 0===Z?0:Z,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;W=ht({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),P=ht({text:"",fill:"white",textFill:"#555555"},P);var ct=tt((function(){return e.Utility.textSize(o,m,r,!1).width}),[o,m,r]),_t=0;""!==o&&(_t=ct+2*l+2*v);var st=_t+x,dt=st-_t/2,ut=r+2*x+2*v,ft=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),pt=[],vt=st;F.forEach((function(t,e){var n,o=t.imageChar,i=null!==(n=t.height)&&void 0!==n?n:ut,r=(vt+=ft[e]+x)-ft[e]/2;pt.push(p("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},p(kt,ht({},t,{shape:"rectangle",width:ft[e],height:i,imageChar:o,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(st+=x*(F.length-1));var gt=[];C.forEach((function(t,e){var n,o=t.shapeOffsetX,i=t.shapeOffsetY;gt.push(p("g",{key:e,class:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(i,")")},p(kt,ht({},t,{shape:null!==(n=t.shape)&&void 0!==n?n:"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:S,stroke:t.stroke,strokeWidth:t.strokeWidth}))))}));var mt=p("g",{"data-click":"text",transform:"translate(".concat(dt," ").concat(0,")")},E&&""!==o?p(Ct,{text:o,height:r,padding:l,strokeWidth:v,stroke:u,fill:d,textFill:_,fontFamily:m,cornerRadius:S}):p("circle",{r:T,stroke:u,fill:_})),yt=ut+2*x,xt=""===P.text?null:p("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(yt,")")},p(Ct,ht({fill:P.fill||"#FFFFFF",textFill:P.textFill||_},P,{height:r,padding:l,strokeWidth:0,stroke:u,fontFamily:m,cornerRadius:S})));return p("g",null,p("g",{"data-click":"icon",transform:"translate(".concat(Y," ").concat(K,")")},p(kt,ht({},W,{strokeWidth:N,shape:"circle",height:B,fill:L,stroke:V,imageFontFamily:G,imageChar:rt,imageCharFill:j,padding:ot,xOffset:Q,yOffset:et,cornerRadius:S,shapeRendering:lt})),gt),p("g",{transform:"translate(".concat(-st/2," ").concat(0,")")},mt,pt),xt)};t.Annotations=Wt,t.BUILD_VERSION="2.104.28",t.CentroidVertex3=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,c=t.textPadding,_=void 0===c?10:c,s=t.textFill,d=void 0===s?"#287EC4":s,h=t.textboxFill,u=void 0===h?"white":h,f=t.textboxStroke,v=void 0===f?"#CCCCCC":f,g=t.textboxStrokeWidth,m=void 0===g?1:g,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.cornerRadius,S=t.icon,R=void 0===S?{}:S,W=t.subText,O=void 0===W?{}:W,P=t.expansionIcon,H=t.scale,E=void 0===H?1:H;return R=ht({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},R),O=ht({text:"",fill:"transparent",textFill:"#555555"},O),p(Ot,ht({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:_,textFill:d,textboxFill:u,textboxStroke:v,textboxStrokeWidth:m,textFontFamily:x,annotationGutter:F,annotations:C,cornerRadius:w,icon:R,subText:O,expansionIcon:P,scale:E},{icon:R,subText:O}))},t.CentroidVertex4=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,c=t.textPadding,_=void 0===c?10:c,s=t.textFill,d=void 0===s?"#287EC4":s,h=t.textboxFill,u=void 0===h?"white":h,f=t.textboxStroke,v=void 0===f?"#CCCCCC":f,g=t.textboxStrokeWidth,m=void 0===g?1:g,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.iconAnnotations,S=void 0===w?[]:w,R=t.cornerRadius,W=t.icon,O=void 0===W?{}:W,P=t.subText,H=void 0===P?{}:P,E=t.showLabel,D=void 0===E||E,T=t.noLabelRadius,U=void 0===T?5:T,N=t.iconBorderWidth,A=void 0===N?1:N,V=t.iconBorderColor,I=void 0===V?"#333":V,L=t.iconBackgroundColor,z=void 0===L?"#fff":L,j=t.iconFontColor,M=void 0===j?"#000":j,B=t.iconFontSize,q=void 0===B?20:B,G=t.iconFontFamily,X=void 0===G?"FontAwesome":G,Y=t.shapeOffsetX,J=void 0===Y?0:Y,K=t.shapeOffsetY,$=void 0===K?0:K,Q=t.iconOffsetX,Z=void 0===Q?0:Q,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;return O=ht({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},O),H=ht({text:"",fill:"transparent",textFill:"#555555"},H),p(Pt,ht({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:_,textFill:d,textboxFill:u,textboxStroke:v,textboxStrokeWidth:m,textFontFamily:x,annotationGutter:F,annotations:C,iconAnnotations:S,cornerRadius:R,icon:O,subText:H,showLabel:D,noLabelRadius:U,iconBorderWidth:A,iconBorderColor:I,iconBackgroundColor:z,iconFontColor:M,iconFontSize:q,iconFontFamily:X,shapeOffsetX:J,shapeOffsetY:$,iconOffsetX:Z,iconOffsetY:et,iconPadding:ot,iconText:rt,shapeRendering:lt},{icon:O,subText:H}))},t.Circle=gt,t.Edge=function(t){var e=t.label,n=t.labelPos,o=t.labelFill,i=void 0===o?"black":o,r=t.labelHeight,a=void 0===r?12:r;return p(g,null,p("path",{d:t.path,stroke:t.stroke,style:{strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray}}),e&&n&&2===n.length?p("g",{transform:"translate(".concat(n[0]," ").concat(n[1],")")},p(bt,{text:e,fill:i,height:a})):void 0)},t.HTMLAdapter=St,t.Icon=kt,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,o=t.text,i=t.height,r=void 0===i?12:i,a=t.width,l=void 0===a?12:a,c=t.fontFamily,_=void 0===c?"Verdana":c,s=t.fontSize,d=void 0===s?10:s,h=t.padding,u=void 0===h?3:h,f=t.fill,v=void 0===f?"whitesmoke":f,m=t.stroke,y=void 0===m?"lightgray":m,x=t.textFill,k=void 0===x?"black":x,F=t.strokeWidth,b=void 0===F?1:F,C=t.cornerRadius,w=void 0===C?0:C;return t.onSizeUpdate,p(g,null,p(yt,{width:l,height:r,fill:v,stroke:y,strokeWidth:b,cornerRadius:w}),p("g",{transform:"translate(".concat(-l/2+u," ").concat(-r/2+u,")")},p(kt,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:v,imageCharFill:k})),p("g",{transform:"translate(".concat(-l/2+2*u+r," ").concat(-r/2+u,")")},p(Ft,{text:o,fontFamily:_,height:d,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return p("g",{key:t.id,id:t.id},p(kt,ht({},t)))}));return p(g,null,n)},t.ImageChar=vt,t.LabelledRect=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.width,r=void 0===i?12:i,a=t.fontFamily,l=void 0===a?"Verdana":a,c=t.fontSize,_=void 0===c?10:c,s=t.padding,d=void 0===s?3:s,h=t.fill,u=void 0===h?"whitesmoke":h,f=t.stroke,v=void 0===f?"lightgray":f,m=t.textFill,y=void 0===m?"black":m,x=t.strokeWidth,k=void 0===x?1:x,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,p(g,null,p(yt,{width:r,height:o,fill:u,stroke:v,strokeWidth:k,cornerRadius:b}),p("g",{transform:"translate(".concat(-r/2+d," ").concat(-o/2+d,")")},p(Ft,{text:e,fontFamily:l,height:_,fill:y,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.53.8",t.React=_t,t.Rectangle=yt,t.SVGAdapter=Rt,t.Shape=xt,t.Square=mt,t.Subgraph=function(t){var n=t.text,o=t.width,i=void 0===o?100:o,r=t.height,a=void 0===r?100:r,l=t.fill,c=void 0===l?"transparent":l,_=t.stroke,s=void 0===_?"black":_,d=t.fontHeight,h=void 0===d?12:d,u=t.fontFamily,f=e.Utility.textSize(n,u,h,!1);return p(g,null,p(yt,{width:i,height:a,fill:c,stroke:s}),p("g",{transform:"translate(".concat((-i+f.width)/2+4," ").concat((-a+f.height)/2+4,")")},p(bt,{height:h,text:n,fontFamily:u})))},t.Text=bt,t.TextBox=Ct,t.TextLine=Ft,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,o=t.text,i=void 0===o?"":o,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,c=void 0===l?4:l,_=t.icon,s=void 0===_?{}:_,d=t.annotationsHeight,h=void 0===d?12:d,u=t.annotationIDs,f=void 0===u?[]:u,v=t.textFill,g=t.textboxFill,m=t.textboxStroke,y=t.textFontFamily,x=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=t.scale,C=void 0===b?1:b,w=$(0),S=w[0],R=w[1],W=$(0),O=W[0],P=W[1];Z((function(){x&&x({width:0,height:0})}),[S,O,x]);var H=S;H+=4;var E=-(2*(s=ht({imageChar:"fa-question",height:32,fill:"transparent"},s)).height/6+a+8)/2,D=s.height/3+O/2+c,T=s.height/3+O+c+h/3;F||(E+=(a+8)/2,T-=O+c);var U=et((function(t){R(t.width),P(t.height)}),[]),N=F?p("g",{transform:"translate(0 ".concat(D,")")},p(Ct,{text:i,height:a,padding:c,onSizeUpdate:U,textFill:v,fill:g,stroke:m,fontFamily:y})):void 0;return n?p("g",{transform:"translate(0 ".concat(E,") scale(").concat(C,")")},p("use",{href:"#"+n}),N,p(Wt,{x:H/2,y:T,annotationIDs:f})):p("g",{transform:"translate(0 ".concat(E,") scale(").concat(C,")")},p(kt,ht({},s)),N)},t.Vertex2=function(t){var n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,c=t.textPadding,_=void 0===c?4:c,s=t.icon,d=void 0===s?{}:s,h=t.textFill,u=void 0===h?"black":h,f=t.textboxFill,v=void 0===f?"white":f,m=t.textboxStroke,y=void 0===m?"black":m,x=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,C=void 0===b?[]:b;d=ht({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},d);var w=l+2*_,S=tt((function(){return e.Utility.textSize(r,x,l,!1)}),[r,x,l]).width,R=F,W=w/2,O=-(2*d.height/6+l+8)/2,P=-d.height/2,H=Math.ceil(S/2+_),E=W-d.height/2,D=R/2,T=W;return o?p("g",{transform:"translate(".concat(0," ").concat(O,")")},p("g",{transform:"translate(".concat(P," ").concat(0,")")},p("use",{href:"#"+o})),p("g",{transform:"translate(".concat(H," ").concat(E,")")},p(Ct,{text:r,height:l,padding:_,strokeWidth:1,stroke:y,fill:v,textFill:u,fontFamily:x})),p(Wt,{x:D,y:T,annotationIDs:C,stepSize:R})):p(g,null,p("g",{transform:"translate(".concat(P," ").concat(0,")scale(1.0002)")},p(kt,ht({},d,{shape:"square"}))),p("g",{transform:"translate(".concat(H," ").concat(E,")scale(1.0002)")},p(Ct,{text:r,height:l,padding:_,stroke:y,fill:v})))},t.Vertex3=Ot,t.Vertex4=Pt,t.render=wt,t.svgRender=function(t,e,n,o){A(p("svg",null,p(t,e)),n,o)},Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/react"]={},t["@hpcc-js/common"])}(this,(function(t,e){"use strict";var n,o,i,r,a,l,c,_={},s=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function u(t,e){for(var n in e)t[n]=e[n];return t}function f(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,e,o){var i,r,a,l={};for(a in e)"key"==a?i=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return v(t,l,i,r,null)}function v(t,e,n,r,a){var l={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(l),l}function g(t){return t.children}function m(t,e){this.props=t,this.context=e}function y(t,e){if(null==e)return t.__?y(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__d||n.__e;return"function"==typeof t.type?y(t):null}function x(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return x(t)}}function k(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!F.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||l)(F)}function F(){var t,e,n,o,i,a,l,_,s;for(r.sort(c);t=r.shift();)t.__d&&(e=r.length,o=void 0,i=void 0,a=void 0,_=(l=(n=t).__v).__e,(s=n.__P)&&(o=[],i=[],(a=u({},l)).__v=l.__v+1,E(s,l,a,n.__n,void 0!==s.ownerSVGElement,null!=l.__h?[_]:null,o,null==_?y(l):_,l.__h,i),H(o,l,i),l.__e!=_&&x(l)),r.length>e&&r.sort(c));F.__r=0}function b(t,e,n,o,i,r,a,l,c,d,u){var f,p,m,x,k,F,b,R,W,O=0,P=o&&o.__k||s,H=P.length,D=H,A=e.length;for(n.__k=[],f=0;f<A;f++)null!=(x=n.__k[f]=null==(x=e[f])||"boolean"==typeof x||"function"==typeof x?null:"string"==typeof x||"number"==typeof x||"bigint"==typeof x?v(null,x,null,null,x):h(x)?v(g,{children:x},null,null,null):x.__b>0?v(x.type,x.props,x.key,x.ref?x.ref:null,x.__v):x)?(x.__=n,x.__b=n.__b+1,-1===(R=S(x,P,b=f+O,D))?m=_:(m=P[R]||_,P[R]=void 0,D--),E(t,x,m,i,r,a,l,c,d,u),k=x.__e,(p=x.ref)&&m.ref!=p&&(m.ref&&T(m.ref,null,x),u.push(p,x.__c||k,x)),null!=k&&(null==F&&(F=k),(W=m===_||null===m.__v)?-1==R&&O--:R!==b&&(R===b+1?O++:R>b?D>A-b?O+=R-b:O--:O=R<b&&R==b-1?R-b:0),b=f+O,"function"!=typeof x.type||R===b&&m.__k!==x.__k?"function"==typeof x.type||R===b&&!W?void 0!==x.__d?(c=x.__d,x.__d=void 0):c=k.nextSibling:c=w(t,k,c):c=C(x,c,t),"function"==typeof n.type&&(n.__d=c))):(m=P[f])&&null==m.key&&m.__e&&(m.__e==c&&(m.__=o,c=y(m)),U(m,m,!1),P[f]=null);for(n.__e=F,f=H;f--;)null!=P[f]&&("function"==typeof n.type&&null!=P[f].__e&&P[f].__e==n.__d&&(n.__d=P[f].__e.nextSibling),U(P[f],P[f]))}function C(t,e,n){for(var o,i=t.__k,r=0;i&&r<i.length;r++)(o=i[r])&&(o.__=t,e="function"==typeof o.type?C(o,e,n):w(n,o.__e,e));return e}function w(t,e,n){return null==n||n.parentNode!==t?t.insertBefore(e,null):e==n&&null!=e.parentNode||t.insertBefore(e,n),e.nextSibling}function S(t,e,n,o){var i=t.key,r=t.type,a=n-1,l=n+1,c=e[n];if(null===c||c&&i==c.key&&r===c.type)return n;if(o>(null!=c?1:0))for(;a>=0||l<e.length;){if(a>=0){if((c=e[a])&&i==c.key&&r===c.type)return a;a--}if(l<e.length){if((c=e[l])&&i==c.key&&r===c.type)return l;l++}}return-1}function R(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||d.test(e)?n:n+"px"}function W(t,e,n,o,i){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||R(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||R(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/(PointerCapture)$|Capture$/,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+r]=n,n?o?n.u=o.u:(n.u=Date.now(),t.addEventListener(e,r?P:O,r)):t.removeEventListener(e,r?P:O,r);else if("dangerouslySetInnerHTML"!==e){if(i)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&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function O(t){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(o.event?o.event(t):t)}function P(t){return this.l[t.type+!0](o.event?o.event(t):t)}function E(t,e,n,i,r,a,l,c,_,s){var d,f,p,v,y,x,k,F,C,w,S,R,W,O,P,E=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(_=n.__h,c=e.__e=n.__e,e.__h=null,a=[c]),(d=o.__b)&&d(e);t:if("function"==typeof E)try{if(F=e.props,C=(d=E.contextType)&&i[d.__c],w=d?C?C.props.value:d.__:i,n.__c?k=(f=e.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?e.__c=f=new E(F,w):(e.__c=f=new m(F,w),f.constructor=E,f.render=A),C&&C.sub(f),f.props=F,f.state||(f.state={}),f.context=w,f.__n=i,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=u({},f.__s)),u(f.__s,E.getDerivedStateFromProps(F,f.__s))),v=f.props,y=f.state,f.__v=e,p)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&F!==v&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(F,w),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(F,f.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(f.props=F,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[],f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(F,f.__s,w),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(v,y,x)}))}if(f.context=w,f.props=F,f.__P=t,f.__e=!1,R=o.__r,W=0,"prototype"in E&&E.prototype.render){for(f.state=f.__s,f.__d=!1,R&&R(e),d=f.render(f.props,f.state,f.context),O=0;O<f._sb.length;O++)f.__h.push(f._sb[O]);f._sb=[]}else do{f.__d=!1,R&&R(e),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++W<25);f.state=f.__s,null!=f.getChildContext&&(i=u(u({},i),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(x=f.getSnapshotBeforeUpdate(v,y)),b(t,h(P=null!=d&&d.type===g&&null==d.key?d.props.children:d)?P:[P],e,n,i,r,a,l,c,_,s),f.base=e.__e,e.__h=null,f.__h.length&&l.push(f),k&&(f.__E=f.__=null)}catch(t){e.__v=null,(_||null!=a)&&(e.__e=c,e.__h=!!_,a[a.indexOf(c)]=null),o.__e(t,e,n)}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=D(n.__e,e,n,i,r,a,l,_,s);(d=o.diffed)&&d(e)}function H(t,e,n){for(var i=0;i<n.length;i++)T(n[i],n[++i],n[++i]);o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function D(t,e,o,i,r,a,l,c,s){var d,u,p,v=o.props,g=e.props,m=e.type,x=0;if("svg"===m&&(r=!0),null!=a)for(;x<a.length;x++)if((d=a[x])&&"setAttribute"in d==!!m&&(m?d.localName===m:3===d.nodeType)){t=d,a[x]=null;break}if(null==t){if(null===m)return document.createTextNode(g);t=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,g.is&&g),a=null,c=!1}if(null===m)v===g||c&&t.data===g||(t.data=g);else{if(a=a&&n.call(t.childNodes),u=(v=o.props||_).dangerouslySetInnerHTML,p=g.dangerouslySetInnerHTML,!c){if(null!=a)for(v={},x=0;x<t.attributes.length;x++)v[t.attributes[x].name]=t.attributes[x].value;(p||u)&&(p&&(u&&p.__html==u.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,o,i){var r;for(r in n)"children"===r||"key"===r||r in e||W(t,r,null,n[r],o);for(r in e)i&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||W(t,r,e[r],n[r],o)}(t,g,v,r,c),p)e.__k=[];else if(b(t,h(x=e.props.children)?x:[x],e,o,i,r&&"foreignObject"!==m,a,l,a?a[0]:o.__k&&y(o,0),c,s),null!=a)for(x=a.length;x--;)null!=a[x]&&f(a[x]);c||("value"in g&&void 0!==(x=g.value)&&(x!==t.value||"progress"===m&&!x||"option"===m&&x!==v.value)&&W(t,"value",x,v.value,!1),"checked"in g&&void 0!==(x=g.checked)&&x!==t.checked&&W(t,"checked",x,v.checked,!1))}return t}function T(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function U(t,e,n){var i,r;if(o.unmount&&o.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||T(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){o.__e(t,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&U(i[r],e,n||"function"!=typeof t.type);n||null==t.__e||f(t.__e),t.__=t.__e=t.__d=void 0}function A(t,e,n){return this.constructor(t,n)}function N(t,e,i){var r,a,l,c;o.__&&o.__(t,e),a=(r="function"==typeof i)?null:i&&i.__k||e.__k,l=[],c=[],E(e,t=(!r&&i||e).__k=p(g,null,[t]),a||_,_,void 0!==e.ownerSVGElement,!r&&i?[i]:a?null:e.firstChild?n.call(e.childNodes):null,l,!r&&i?i:a?a.__e:e.firstChild,r,c),H(l,t,c)}n=s.slice,o={__e:function(t,e,n,o){for(var i,r,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,o||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},i=0,m.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=u({},this.state),"function"==typeof t&&(t=t(u({},n),this.props)),t&&u(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),k(this))},m.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),k(this))},m.prototype.render=g,r=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},F.__r=0;var V,I,L,z,j=0,M=[],B=[],q=o.__b,G=o.__r,X=o.diffed,Y=o.__c,$=o.unmount;function J(t,e){o.__h&&o.__h(I,t,j||e),j=0;var n=I.__H||(I.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:B}),n.__[t]}function K(t){return j=1,Q(ct,t)}function Q(t,e,n){var o=J(V++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):ct(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=I,!I.u)){var i=function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(t){return t.__c}));if(i.every((function(t){return!t.__N})))return!r||r.call(this,t,e,n);var a=!1;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),!(!a&&o.__c.props===t)&&(!r||r.call(this,t,e,n))};I.u=!0;var r=I.shouldComponentUpdate,a=I.componentWillUpdate;I.componentWillUpdate=function(t,e,n){if(this.__e){var o=r;r=void 0,i(t,e,n),r=o}a&&a.call(this,t,e,n)},I.shouldComponentUpdate=i}return o.__N||o.__}function Z(t,e){var n=J(V++,3);!o.__s&&lt(n.__H,e)&&(n.__=t,n.i=e,I.__H.__h.push(n))}function tt(t,e){var n=J(V++,7);return lt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function et(t,e){return j=8,tt((function(){return t}),e)}function nt(){for(var t;t=M.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(rt),t.__H.__h.forEach(at),t.__H.__h=[]}catch(e){t.__H.__h=[],o.__e(e,t.__v)}}o.__b=function(t){I=null,q&&q(t)},o.__r=function(t){G&&G(t),V=0;var e=(I=t.__c).__H;e&&(L===I?(e.__h=[],I.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=B,t.__N=t.i=void 0}))):(e.__h.forEach(rt),e.__h.forEach(at),e.__h=[],V=0)),L=I},o.diffed=function(t){X&&X(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==M.push(e)&&z===o.requestAnimationFrame||((z=o.requestAnimationFrame)||it)(nt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==B&&(t.__=t.__V),t.i=void 0,t.__V=B}))),L=I=null},o.__c=function(t,e){e.some((function(t){try{t.__h.forEach(rt),t.__h=t.__h.filter((function(t){return!t.__||at(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],o.__e(n,t.__v)}})),Y&&Y(t,e)},o.unmount=function(t){$&&$(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{rt(t)}catch(t){e=t}})),n.__H=void 0,e&&o.__e(e,n.__v))};var ot="function"==typeof requestAnimationFrame;function it(t){var e,n=function(){clearTimeout(o),ot&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);ot&&(e=requestAnimationFrame(n))}function rt(t){var e=I,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),I=e}function at(t){var e=I;t.__c=t.__(),I=e}function lt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function ct(t,e){return"function"==typeof e?e(t):e}var _t=Object.freeze({__proto__:null,BUILD_VERSION:"2.104.30",Component:m,Fragment:g,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.16.7",createElement:p,h:p,render:N,useCallback:et,useEffect:Z,useMemo:tt,useReducer:Q,useState:K}),st=function(t,e){return st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},st(t,e)};function dt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}st(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var ht=function(){return ht=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ht.apply(this,arguments)};function ut(t,e,n,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,o);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(a=(r<3?i(a):r>3?i(e,n,a):i(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function ft(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;var pt=function(t){var e=t.href,n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r;return p("image",{href:e,x:n-a/2,y:i-a/2,width:a,height:a})},vt=function(t){var n=t.x,o=t.y,i=void 0===o?0:o,r=t.height,a=void 0===r?12:r,l=t.fill,c=t.stroke,_=t.fontFamily,s=void 0===_?"FontAwesome":_,d=t.char,h=void 0===d?"":d,u=tt((function(){return"FontAwesome"===s?e.Utility.faChar(h):h}),[h,s]);return p("text",{x:n,y:i,fill:l,stroke:c,"font-family":s,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},u)},gt=function(t){var e=t.radius,n=void 0===e?32:e,o=t.fill,i=void 0===o?"navy":o,r=t.stroke,a=void 0===r?i:r,l=t.strokeWidth;return p("circle",{r:n,fill:i,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},mt=function(t){var e=t.radius,n=void 0===e?30:e,o=t.cornerRadius,i=void 0===o?0:o,r=t.fill,a=void 0===r?"white":r,l=t.stroke,c=t.strokeWidth;return p("rect",{x:-n,y:-n,rx:i,ry:i,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===c?1:c,"shape-rendering":t.shapeRendering})},yt=function(t){var e=t.width,n=void 0===e?30:e,o=t.height,i=void 0===o?30:o,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,c=void 0===l?"white":l,_=t.stroke,s=void 0===_?"black":_,d=t.strokeWidth;return p("rect",{x:-n/2,y:-i/2,rx:a,ry:a,width:n,height:i,fill:c,stroke:s||c,"stroke-width":void 0===d?1:d,"shape-rendering":t.shapeRendering})},xt=function(t){var e=t.shape,n=void 0===e?"circle":e,o=t.height,i=void 0===o?128:o,r=t.width,a=t.fill,l=t.stroke,c=t.strokeWidth,_=void 0===c?1:c,s=t.shapeRendering,d=t.cornerRadius;switch(n){case"square":return p(mt,{radius:i/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:s,cornerRadius:d});case"rectangle":return p(yt,{width:null!=r?r:i,height:i,fill:a,stroke:l,strokeWidth:_,shapeRendering:s,cornerRadius:d});default:return p(gt,{radius:i/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:s})}},kt=function(t){var n=t.shape,o=void 0===n?"circle":n,i=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,c=t.stroke,_=t.strokeWidth,s=void 0===_?0:_,d=t.imageUrl,h=void 0===d?"":d,u=t.imageFontFamily,f=void 0===u?"FontAwesome":u,v=t.imageChar,m=void 0===v?"":v,y=t.imageCharFill,x=void 0===y?e.Palette.textColor(l):y,k=t.padding,F=void 0===k?a/5:k,b=t.xOffset,C=void 0===b?0:b,w=t.yOffset,S=void 0===w?0:w,R=t.cornerRadius,W=t.shapeRendering;return p(g,null,p(xt,{shape:o,width:i,height:a,fill:l,stroke:c,strokeWidth:s,shapeRendering:W,cornerRadius:R}),h?p(pt,{href:h,x:C,y:S,height:a-F}):p(vt,{x:C,y:S,height:a-F,fontFamily:f,char:m,fill:x,"font-weight":400}))},Ft=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.anchor,r=void 0===i?"middle":i,a=t.baseline,l=void 0===a?"middle":a,c=t.fontFamily,_=void 0===c?"Verdana":c,s=t.fill,d=void 0===s?"black":s;return p("text",{"font-family":_,"font-size":"".concat(o,"px"),"text-anchor":r,"dominant-baseline":l,fill:d},e)},bt=function(t){var n=t.text,o=t.height,i=void 0===o?12:o,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,c=void 0===l?"black":l,_=t.onSizeUpdate,s=K(0),d=s[0],h=s[1],u=K(0),f=u[0],v=u[1];Z((function(){_&&_({width:d,height:f})}),[d,f,_]);var m=tt((function(){return n.split("\n")}),[n]);h(tt((function(){return e.Utility.textSize(m,a,i)}),[a,i,m]).width),v(m.length*(i+2)-2);var y=-f/2+i/2,x=tt((function(){return m.map((function(t,e){return p("g",{key:e,transform:"translate(0 ".concat(y+e*(i+2),")")},p(Ft,{text:t,height:i,fontFamily:a,fill:c}))}))}),[c,a,i,m,y]);return p(g,null,x)},Ct=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.fontFamily,r=void 0===i?"Verdana":i,a=t.padding,l=void 0===a?4:a,c=t.fill,_=void 0===c?"whitesmoke":c,s=t.stroke,d=void 0===s?"lightgray":s,h=t.textFill,u=void 0===h?"black":h,f=t.strokeWidth,v=void 0===f?1:f,m=t.cornerRadius,y=void 0===m?0:m,x=t.onSizeUpdate,k=K(0),F=k[0],b=k[1],C=K(0),w=C[0],S=C[1];Z((function(){x&&x({width:F,height:w})}),[F,w,x]);var R=et((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+v,O=w+2*l+v,P=Math.floor(o/10);return p(g,null,p(yt,{width:W,height:O,fill:_,stroke:d,strokeWidth:v,cornerRadius:y}),p("g",{transform:"translate(0 ".concat(P,")")},p(bt,{text:e,fontFamily:r,height:o,fill:u,onSizeUpdate:R})))};function wt(t,e,n,o){N(p(t,e),n,o)}var St=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return dt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=ht(ht({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),wt(this._component,this._props,e)},ut([e.publish({},"object","Properties"),ft("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Rt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return dt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=ht(ht({},this._props),t),this):this._props},n.prototype.prop=function(t,e){return 1===arguments.length?this._props[t]:(this._props[t]=e,this)},n.prototype.update=function(e,n){t.prototype.update.call(this,e,n),wt(this._component,this._props,e)},ut([e.publish({},"object","Properties"),ft("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),Wt=function(t){var e=t.x,n=t.y,o=t.annotationIDs,i=void 0===o?[]:o,r=t.stepSize,a=void 0===r?-16:r,l=i.map((function(t,o){return p("g",{key:t,transform:"translate(".concat(e+o*a," ").concat(n,")")},p("use",{href:"#"+t}))}));return p(g,null,l)},Ot=function(t){var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,c=t.textFill,_=void 0===c?"#287EC4":c,s=t.textboxFill,d=void 0===s?"white":s,h=t.textboxStroke,u=void 0===h?"#CCCCCC":h,f=t.textboxStrokeWidth,v=void 0===f?1:f,g=t.textFontFamily,m=void 0===g?"Verdana":g,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.cornerRadius,C=void 0===b?3:b,w=t.icon,S=void 0===w?{}:w,R=t.subText,W=void 0===R?{text:""}:R,O=t.showLabel,P=void 0===O||O,E=t.noLabelRadius,H=void 0===E?5:E,D=t.expansionIcon,T=t.scale,U=void 0===T?1:T;S=ht({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=ht({text:"",fill:"white",textFill:"#555555"},W),D=D?ht({height:16,shape:"circle",padding:6,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"black",fill:"whitesmoke",stroke:"whitesmoke",strokeWidth:0},D):void 0;var A=0,N=tt((function(){return e.Utility.textSize(o,m,r,!1).width}),[o,m,r]),V=0;""!==o&&(V=N+2*l+2*v);var I=(A+=V+x)-V/2,L=r+2*l+2*v,z=[];F.forEach((function(t,e){var n=t.imageChar,o=(A+=L+x)-L/2;z.push(p("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(0,")")},p(kt,ht({},t,{shape:"square",height:L,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:C,strokeWidth:0}))))})),F.length>0&&(A+=x*(F.length-1));var j=p("g",{"data-click":"text",transform:"translate(".concat(I," ").concat(0,")")},P&&""!==o?p(Ct,{text:o,height:r,padding:l,strokeWidth:v,stroke:u,fill:d,textFill:_,fontFamily:m,cornerRadius:C}):p("circle",{r:H,stroke:u,fill:_})),M=S.height||20,B=S.strokeWidth||0,q=0,G=L+2*x;""!==o||z.length>0?q=-M/2-B-L/2-2*x:""!==W.text&&(G=M/2+B+2*x);var X=""===W.text?null:p("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(G,")")},p(Ct,ht({fill:W.fill||"#FFFFFF",textFill:W.textFill||_},W,{height:r,padding:l,strokeWidth:0,stroke:u,fontFamily:m,cornerRadius:C})));return p("g",{transform:"scale(".concat(U,")")},p("g",{"data-click":"icon",transform:"translate(".concat(0," ").concat(q,")")},p(kt,ht({},S)),D&&p("g",{"data-click":"expanded-icon","data-click-data":JSON.stringify(D),transform:"translate(".concat((S.height+B)/2-D.height/2," ").concat(-(S.height+B)/2+D.height/2,")")},p(kt,ht({},D)))),p("g",{transform:"translate(".concat(-A/2," ").concat(0,")")},j,z),X)},Pt=function(t){t.categoryID;var n=t.text,o=void 0===n?"":n,i=t.textHeight,r=void 0===i?10:i,a=t.textPadding,l=void 0===a?4:a,c=t.textFill,_=void 0===c?"#287EC4":c,s=t.textboxFill,d=void 0===s?"white":s,h=t.textboxStroke,u=void 0===h?"#CCCCCC":h,f=t.textboxStrokeWidth,v=void 0===f?1:f,g=t.textFontFamily,m=void 0===g?"Verdana":g,y=t.annotationGutter,x=void 0===y?2:y,k=t.annotations,F=void 0===k?[]:k,b=t.iconAnnotations,C=void 0===b?[]:b,w=t.cornerRadius,S=void 0===w?3:w,R=t.icon,W=void 0===R?{}:R,O=t.subText,P=void 0===O?{}:O,E=t.showLabel,H=void 0===E||E,D=t.noLabelRadius,T=void 0===D?5:D,U=t.iconBorderWidth,A=void 0===U?1:U,N=t.iconBorderColor,V=void 0===N?"#333":N,I=t.iconBackgroundColor,L=void 0===I?"#fff":I,z=t.iconFontColor,j=void 0===z?"#000":z,M=t.iconFontSize,B=void 0===M?20:M,q=t.iconFontFamily,G=void 0===q?"FontAwesome":q,X=t.shapeOffsetX,Y=void 0===X?0:X,$=t.shapeOffsetY,J=void 0===$?0:$,K=t.iconOffsetX,Q=void 0===K?0:K,Z=t.iconOffsetY,et=void 0===Z?0:Z,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;W=ht({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),P=ht({text:"",fill:"white",textFill:"#555555"},P);var ct=tt((function(){return e.Utility.textSize(o,m,r,!1).width}),[o,m,r]),_t=0;""!==o&&(_t=ct+2*l+2*v);var st=_t+x,dt=st-_t/2,ut=r+2*x+2*v,ft=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),pt=[],vt=st;F.forEach((function(t,e){var n,o=t.imageChar,i=null!==(n=t.height)&&void 0!==n?n:ut,r=(vt+=ft[e]+x)-ft[e]/2;pt.push(p("g",{key:e,class:"vertex3-anno","data-click":"annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},p(kt,ht({},t,{shape:"rectangle",width:ft[e],height:i,imageChar:o,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(st+=x*(F.length-1));var gt=[];C.forEach((function(t,e){var n,o=t.shapeOffsetX,i=t.shapeOffsetY;gt.push(p("g",{key:e,class:"vertex3-iconAnno","data-click":"icon-annotation","data-click-data":JSON.stringify(t),transform:"translate(".concat(o," ").concat(i,")")},p(kt,ht({},t,{shape:null!==(n=t.shape)&&void 0!==n?n:"square",imageChar:t.imageChar,imageFontFamily:t.imageFontFamily,cornerRadius:S,stroke:t.stroke,strokeWidth:t.strokeWidth}))))}));var mt=p("g",{"data-click":"text",transform:"translate(".concat(dt," ").concat(0,")")},H&&""!==o?p(Ct,{text:o,height:r,padding:l,strokeWidth:v,stroke:u,fill:d,textFill:_,fontFamily:m,cornerRadius:S}):p("circle",{r:T,stroke:u,fill:_})),yt=ut+2*x,xt=""===P.text?null:p("g",{"data-click":"subtext",transform:"translate(".concat(0," ").concat(yt,")")},p(Ct,ht({fill:P.fill||"#FFFFFF",textFill:P.textFill||_},P,{height:r,padding:l,strokeWidth:0,stroke:u,fontFamily:m,cornerRadius:S})));return p("g",null,p("g",{"data-click":"icon",transform:"translate(".concat(Y," ").concat(J,")")},p(kt,ht({},W,{strokeWidth:A,shape:"circle",height:B,fill:L,stroke:V,imageFontFamily:G,imageChar:rt,imageCharFill:j,padding:ot,xOffset:Q,yOffset:et,cornerRadius:S,shapeRendering:lt})),gt),p("g",{transform:"translate(".concat(-st/2," ").concat(0,")")},mt,pt),xt)};t.Annotations=Wt,t.BUILD_VERSION="2.104.30",t.CentroidVertex3=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,c=t.textPadding,_=void 0===c?10:c,s=t.textFill,d=void 0===s?"#287EC4":s,h=t.textboxFill,u=void 0===h?"white":h,f=t.textboxStroke,v=void 0===f?"#CCCCCC":f,g=t.textboxStrokeWidth,m=void 0===g?1:g,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.cornerRadius,S=t.icon,R=void 0===S?{}:S,W=t.subText,O=void 0===W?{}:W,P=t.expansionIcon,E=t.scale,H=void 0===E?1:E;return R=ht({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},R),O=ht({text:"",fill:"transparent",textFill:"#555555"},O),p(Ot,ht({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:_,textFill:d,textboxFill:u,textboxStroke:v,textboxStrokeWidth:m,textFontFamily:x,annotationGutter:F,annotations:C,cornerRadius:w,icon:R,subText:O,expansionIcon:P,scale:H},{icon:R,subText:O}))},t.CentroidVertex4=function(t){var e=t.id,n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,c=t.textPadding,_=void 0===c?10:c,s=t.textFill,d=void 0===s?"#287EC4":s,h=t.textboxFill,u=void 0===h?"white":h,f=t.textboxStroke,v=void 0===f?"#CCCCCC":f,g=t.textboxStrokeWidth,m=void 0===g?1:g,y=t.textFontFamily,x=void 0===y?"Verdana":y,k=t.annotationGutter,F=void 0===k?2:k,b=t.annotations,C=void 0===b?[]:b,w=t.iconAnnotations,S=void 0===w?[]:w,R=t.cornerRadius,W=t.icon,O=void 0===W?{}:W,P=t.subText,E=void 0===P?{}:P,H=t.showLabel,D=void 0===H||H,T=t.noLabelRadius,U=void 0===T?5:T,A=t.iconBorderWidth,N=void 0===A?1:A,V=t.iconBorderColor,I=void 0===V?"#333":V,L=t.iconBackgroundColor,z=void 0===L?"#fff":L,j=t.iconFontColor,M=void 0===j?"#000":j,B=t.iconFontSize,q=void 0===B?20:B,G=t.iconFontFamily,X=void 0===G?"FontAwesome":G,Y=t.shapeOffsetX,$=void 0===Y?0:Y,J=t.shapeOffsetY,K=void 0===J?0:J,Q=t.iconOffsetX,Z=void 0===Q?0:Q,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,ot=void 0===nt?4:nt,it=t.iconText,rt=void 0===it?"?":it,at=t.shapeRendering,lt=void 0===at?"auto":at;return O=ht({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},O),E=ht({text:"",fill:"transparent",textFill:"#555555"},E),p(Pt,ht({},{id:e,categoryID:o,text:r,textHeight:l,textPadding:_,textFill:d,textboxFill:u,textboxStroke:v,textboxStrokeWidth:m,textFontFamily:x,annotationGutter:F,annotations:C,iconAnnotations:S,cornerRadius:R,icon:O,subText:E,showLabel:D,noLabelRadius:U,iconBorderWidth:N,iconBorderColor:I,iconBackgroundColor:z,iconFontColor:M,iconFontSize:q,iconFontFamily:X,shapeOffsetX:$,shapeOffsetY:K,iconOffsetX:Z,iconOffsetY:et,iconPadding:ot,iconText:rt,shapeRendering:lt},{icon:O,subText:E}))},t.Circle=gt,t.Edge=function(t){var e=t.label,n=t.labelPos,o=t.labelFill,i=void 0===o?"black":o,r=t.labelHeight,a=void 0===r?12:r;return p(g,null,p("path",{d:t.path,stroke:t.stroke,style:{strokeWidth:t.strokeWidth,strokeDasharray:t.strokeDasharray}}),e&&n&&2===n.length?p("g",{transform:"translate(".concat(n[0]," ").concat(n[1],")")},p(bt,{text:e,fill:i,height:a})):void 0)},t.HTMLAdapter=St,t.Icon=kt,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,o=t.text,i=t.height,r=void 0===i?12:i,a=t.width,l=void 0===a?12:a,c=t.fontFamily,_=void 0===c?"Verdana":c,s=t.fontSize,d=void 0===s?10:s,h=t.padding,u=void 0===h?3:h,f=t.fill,v=void 0===f?"whitesmoke":f,m=t.stroke,y=void 0===m?"lightgray":m,x=t.textFill,k=void 0===x?"black":x,F=t.strokeWidth,b=void 0===F?1:F,C=t.cornerRadius,w=void 0===C?0:C;return t.onSizeUpdate,p(g,null,p(yt,{width:l,height:r,fill:v,stroke:y,strokeWidth:b,cornerRadius:w}),p("g",{transform:"translate(".concat(-l/2+u," ").concat(-r/2+u,")")},p(kt,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:v,imageCharFill:k})),p("g",{transform:"translate(".concat(-l/2+2*u+r," ").concat(-r/2+u,")")},p(Ft,{text:o,fontFamily:_,height:d,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return p("g",{key:t.id,id:t.id},p(kt,ht({},t)))}));return p(g,null,n)},t.ImageChar=vt,t.LabelledRect=function(t){var e=t.text,n=t.height,o=void 0===n?12:n,i=t.width,r=void 0===i?12:i,a=t.fontFamily,l=void 0===a?"Verdana":a,c=t.fontSize,_=void 0===c?10:c,s=t.padding,d=void 0===s?3:s,h=t.fill,u=void 0===h?"whitesmoke":h,f=t.stroke,v=void 0===f?"lightgray":f,m=t.textFill,y=void 0===m?"black":m,x=t.strokeWidth,k=void 0===x?1:x,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,p(g,null,p(yt,{width:r,height:o,fill:u,stroke:v,strokeWidth:k,cornerRadius:b}),p("g",{transform:"translate(".concat(-r/2+d," ").concat(-o/2+d,")")},p(Ft,{text:e,fontFamily:l,height:_,fill:y,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.53.9",t.React=_t,t.Rectangle=yt,t.SVGAdapter=Rt,t.Shape=xt,t.Square=mt,t.Subgraph=function(t){var n=t.text,o=t.width,i=void 0===o?100:o,r=t.height,a=void 0===r?100:r,l=t.fill,c=void 0===l?"transparent":l,_=t.stroke,s=void 0===_?"black":_,d=t.fontHeight,h=void 0===d?12:d,u=t.fontFamily,f=e.Utility.textSize(n,u,h,!1);return p(g,null,p(yt,{width:i,height:a,fill:c,stroke:s}),p("g",{transform:"translate(".concat((-i+f.width)/2+4," ").concat((-a+f.height)/2+4,")")},p(bt,{height:h,text:n,fontFamily:u})))},t.Text=bt,t.TextBox=Ct,t.TextLine=Ft,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,o=t.text,i=void 0===o?"":o,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,c=void 0===l?4:l,_=t.icon,s=void 0===_?{}:_,d=t.annotationsHeight,h=void 0===d?12:d,u=t.annotationIDs,f=void 0===u?[]:u,v=t.textFill,g=t.textboxFill,m=t.textboxStroke,y=t.textFontFamily,x=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=t.scale,C=void 0===b?1:b,w=K(0),S=w[0],R=w[1],W=K(0),O=W[0],P=W[1];Z((function(){x&&x({width:0,height:0})}),[S,O,x]);var E=S;E+=4;var H=-(2*(s=ht({imageChar:"fa-question",height:32,fill:"transparent"},s)).height/6+a+8)/2,D=s.height/3+O/2+c,T=s.height/3+O+c+h/3;F||(H+=(a+8)/2,T-=O+c);var U=et((function(t){R(t.width),P(t.height)}),[]),A=F?p("g",{transform:"translate(0 ".concat(D,")")},p(Ct,{text:i,height:a,padding:c,onSizeUpdate:U,textFill:v,fill:g,stroke:m,fontFamily:y})):void 0;return n?p("g",{transform:"translate(0 ".concat(H,") scale(").concat(C,")")},p("use",{href:"#"+n}),A,p(Wt,{x:E/2,y:T,annotationIDs:f})):p("g",{transform:"translate(0 ".concat(H,") scale(").concat(C,")")},p(kt,ht({},s)),A)},t.Vertex2=function(t){var n=t.categoryID,o=void 0===n?"":n,i=t.text,r=void 0===i?"":i,a=t.textHeight,l=void 0===a?12:a,c=t.textPadding,_=void 0===c?4:c,s=t.icon,d=void 0===s?{}:s,h=t.textFill,u=void 0===h?"black":h,f=t.textboxFill,v=void 0===f?"white":f,m=t.textboxStroke,y=void 0===m?"black":m,x=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,C=void 0===b?[]:b;d=ht({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},d);var w=l+2*_,S=tt((function(){return e.Utility.textSize(r,x,l,!1)}),[r,x,l]).width,R=F,W=w/2,O=-(2*d.height/6+l+8)/2,P=-d.height/2,E=Math.ceil(S/2+_),H=W-d.height/2,D=R/2,T=W;return o?p("g",{transform:"translate(".concat(0," ").concat(O,")")},p("g",{transform:"translate(".concat(P," ").concat(0,")")},p("use",{href:"#"+o})),p("g",{transform:"translate(".concat(E," ").concat(H,")")},p(Ct,{text:r,height:l,padding:_,strokeWidth:1,stroke:y,fill:v,textFill:u,fontFamily:x})),p(Wt,{x:D,y:T,annotationIDs:C,stepSize:R})):p(g,null,p("g",{transform:"translate(".concat(P," ").concat(0,")scale(1.0002)")},p(kt,ht({},d,{shape:"square"}))),p("g",{transform:"translate(".concat(E," ").concat(H,")scale(1.0002)")},p(Ct,{text:r,height:l,padding:_,stroke:y,fill:v})))},t.Vertex3=Ot,t.Vertex4=Pt,t.render=wt,t.svgRender=function(t,e,n,o){N(p("svg",null,p(t,e)),n,o)},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.min.js.map
{
"name": "@hpcc-js/react",
"version": "2.53.8",
"version": "2.53.9",
"description": "hpcc-js - Viz React",

@@ -41,8 +41,8 @@ "main": "dist/index.js",

"dependencies": {
"@hpcc-js/common": "^2.71.11",
"@hpcc-js/preact-shim": "^2.16.6"
"@hpcc-js/common": "^2.71.12",
"@hpcc-js/preact-shim": "^2.16.7"
},
"devDependencies": {
"@hpcc-js/bundle": "^2.11.5",
"tslib": "2.4.1"
"tslib": "2.6.2"
},

@@ -60,3 +60,3 @@ "repository": {

"homepage": "https://github.com/hpcc-systems/Visualization",
"gitHead": "69e26ec0934dcedd4a35f4639b248851d53d4bb5"
"gitHead": "da5c25f62dbf166f05e669efd3e74fe590f94c61"
}
export const PKG_NAME = "@hpcc-js/react";
export const PKG_VERSION = "2.53.8";
export const BUILD_VERSION = "2.104.28";
export const PKG_VERSION = "2.53.9";
export const BUILD_VERSION = "2.104.30";
export declare const PKG_NAME = "@hpcc-js/react";
export declare const PKG_VERSION = "2.53.8";
export declare const BUILD_VERSION = "2.104.28";
export declare const PKG_VERSION = "2.53.9";
export declare const BUILD_VERSION = "2.104.30";
//# sourceMappingURL=__package__.d.ts.map
export declare const PKG_NAME = "@hpcc-js/react";
export declare const PKG_VERSION = "2.53.8";
export declare const BUILD_VERSION = "2.104.28";
export declare const PKG_VERSION = "2.53.9";
export declare const BUILD_VERSION = "2.104.30";
//# sourceMappingURL=__package__.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc