@hpcc-js/react
Advanced tools
Comparing version 2.51.0 to 2.51.1
import { Utility, Palette, publish, HTMLWidget, SVGWidget } from '@hpcc-js/common'; | ||
var PKG_NAME$1 = "@hpcc-js/react"; | ||
var PKG_VERSION$1 = "2.51.0"; | ||
var BUILD_VERSION$1 = "2.104.1"; | ||
var PKG_VERSION$1 = "2.51.1"; | ||
var BUILD_VERSION$1 = "2.104.2"; | ||
var PKG_NAME = "@hpcc-js/preact-shim"; | ||
var PKG_VERSION = "2.16.0"; | ||
var BUILD_VERSION = "2.104.1"; | ||
var PKG_VERSION = "2.16.1"; | ||
var BUILD_VERSION = "2.104.2"; | ||
var n,l$1,u$1,t$1,o$1,r$1,e$1={},c$1=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$1(n,l){for(var u in l)n[u]=l[u];return n}function h(n){var l=n.parentNode;l&&l.removeChild(n);}function v$1(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 y$1(l,f,t,o,null)}function y$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 d(n){return n.children}function _$1(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$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?k$1(n):null}function b$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 b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||r$1!==l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k$1(t):o,t.__h),z(u,t),t.__e!=o&&b$1(t)));});}function w$1(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$1,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$1(n,_,p=p||e$1,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$1(_,s,n):s=P(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M(g[h],g[++h],g[++h]);}function x$1(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?x$1(i,l,u):P(u,i,i,t,i.__e,l));return l}function P(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+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(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]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px";}function H(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||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(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?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=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 P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _$1(m,x),h.constructor=P,h.render=O),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$1({},h.__s)),a$1(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$1.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$1(a$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d&&null==s.key?s.props.children:s,w$1(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(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 z(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 L(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||e$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$1(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k$1(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H(l,"checked",_,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(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;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function S(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=[],j$1(i,u=(!o&&t||i).__k=v$1(d,null,[u]),r||e$1,e$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),z(f,u);}n=c$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,_$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$1({},this.state),"function"==typeof n&&(n=n(a$1({},u),this.props)),n&&a$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_$1.prototype.render=d,t$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0; | ||
var n,l$1,u$1,t$1,o$1,f$1={},e$1=[],c$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a$1(n){var l=n.parentNode;l&&l.removeChild(n);}function h$1(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 v$1(l,f,t,o,null)}function v$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 p$1(n){return n.children}function d$1(n,l){this.props=n,this.context=l;}function _(n,l){if(null==l)return n.__?_(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?_(n):null}function k$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 k$1(n)}}function b$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||setTimeout)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z$1(u,t),t.__e!=o&&k$1(t)));});}function w$1(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(p$1,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$1(n,k,d=d||f$1,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$1(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=_(i,h+1)),N(x[h],x[h]));if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m$1(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?m$1(i,l,u):A(u,i,i,t,i.__e,l));return l}function A(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+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(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]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$1.test(l)?u:u+"px";}function H(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||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(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?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T$1(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H=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]),(a=l$1.__b)&&a(u);try{n:if("function"==typeof H){if(g=u.props,m=(a=H.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in H&&H.prototype.render?u.__c=h=new H(g,x):(u.__c=h=new d$1(g,x),h.constructor=H,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,H.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==H.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,A=l$1.__r,C=0,"prototype"in H&&H.prototype.render)h.state=h.__s,h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context);else do{h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++C<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),$=null!=a&&a.type===p$1&&null==a.key?a.props.children:a,w$1(n,Array.isArray($)?$:[$],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l$1.diffed)&&a(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 z$1(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 L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),h=(y=i.props||f$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$1(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$1(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(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;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||a$1(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$1(i,u=(!o&&t||i).__k=h$1(p$1,null,[u]),r||f$1,f$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$1(e,u);}n=e$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,d$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),b$1(this));},d$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$1(this));},d$1.prototype.render=p$1,t$1=[],g$1.__r=0; | ||
var t,u,r,o=0,i=[],c=l$1.__b,f=l$1.__r,e=l$1.diffed,a=l$1.__c,v=l$1.unmount;function l(t,r){l$1.__h&&l$1.__h(u,t,o||r),o=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function m(n){return o=1,p(w,n)}function p(n,r,o){var i=l(t++,2);return i.t=n,i.__c||(i.__=[o?o(r):w(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y$2(r,o){var i=l(t++,3);!l$1.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function _(n,u){var r=l(t++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A(n,t){return o=8,_(function(){return n},t)}function x$2(){for(var t;t=i.shift();)if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j),t.__H.__h=[];}catch(u){t.__H.__h=[],l$1.__e(u,t.__v);}}l$1.__b=function(n){u=null,c&&c(n);},l$1.__r=function(n){f&&f(n),t=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j),r.__h=[]);},l$1.diffed=function(t){e&&e(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i.push(o)&&r===l$1.requestAnimationFrame||((r=l$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$2)),u=null;},l$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return !n.__||j(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],l$1.__e(r,t.__v);}}),a&&a(t,u);},l$1.unmount=function(t){v&&v(t);var u,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{g(n);}catch(n){u=n;}}),u&&l$1.__e(u,r.__v));};var b="function"==typeof requestAnimationFrame;function g(n){var t=u,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u=t;}function j(n){var t=u;n.__c=n.__(),u=t;}function k(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w(n,t){return "function"==typeof t?t(n):t} | ||
var t,r,u,i,o=0,c=[],f=[],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:f}),i.__[t]}function p(n){return o=1,y$1(z,n)}function y$1(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):z(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)){r.u=!0;var c=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});return u.every(function(n){return !n.__N})?!c||c.call(this,n,t,r):!u.every(function(n){if(!n.__N)return !0;var t=n.__[0];return n.__=n.__N,n.__N=void 0,t===n.__[0]})&&(!c||c.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$1.__s&&w(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function F(n,r){var u=d(t++,7);return w(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=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(j),t.__H.__h.forEach(k),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=f,n.__N=n.i=void 0;})):(i.__h.forEach(j),i.__h.forEach(k),i.__h=[])),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==c.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||function(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));})(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==f&&(n.__=n.__V),n.i=void 0,n.__V=f;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(j),t.__h=t.__h.filter(function(n){return !n.__||k(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{j(n);}catch(n){r=n;}}),r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function k(n){var t=r;n.__c=n.__(),r=t;}function w(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function z(n,t){return "function"==typeof t?t(n):t} | ||
@@ -18,14 +18,14 @@ var index_es6 = /*#__PURE__*/Object.freeze({ | ||
BUILD_VERSION: BUILD_VERSION, | ||
Component: _$1, | ||
Fragment: d, | ||
Component: d$1, | ||
Fragment: p$1, | ||
PKG_NAME: PKG_NAME, | ||
PKG_VERSION: PKG_VERSION, | ||
createElement: v$1, | ||
h: v$1, | ||
render: S, | ||
useCallback: A, | ||
useEffect: y$2, | ||
useMemo: _, | ||
useReducer: p, | ||
useState: m | ||
createElement: h$1, | ||
h: h$1, | ||
render: P, | ||
useCallback: T, | ||
useEffect: h, | ||
useMemo: F, | ||
useReducer: y$1, | ||
useState: p | ||
}); | ||
@@ -330,6 +330,6 @@ | ||
var _b = _a.points, points = _b === void 0 ? [] : _b, _c = _a.curveDepth, curveDepth = _c === void 0 ? 16 : _c, _d = _a.stroke, stroke = _d === void 0 ? "black" : _d, strokeDasharray = _a.strokeDasharray; | ||
var d = _(function () { | ||
var d = F(function () { | ||
return line(calcArc(points, curveDepth)); | ||
}, [curveDepth, points]); | ||
return v$1("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: d }); | ||
return h$1("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: d }); | ||
}; | ||
@@ -339,9 +339,9 @@ | ||
var x = _a.x, _b = _a.y, y = _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 = _(function () { | ||
var renderChar = F(function () { | ||
return fontFamily === "FontAwesome" ? Utility.faChar(char) : char; | ||
}, [char, fontFamily]); | ||
return v$1("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, renderChar); | ||
return h$1("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, renderChar); | ||
}; | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -401,11 +401,11 @@ | ||
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 v$1("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering }); | ||
return h$1("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 v$1("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 }); | ||
return h$1("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 v$1("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 }); | ||
return h$1("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 }); | ||
}; | ||
@@ -416,8 +416,8 @@ var Shape = function (_a) { | ||
case "square": | ||
return v$1(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }); | ||
return h$1(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }); | ||
case "rectangle": | ||
return v$1(Rectangle, { width: width !== null && width !== void 0 ? width : height, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }); | ||
return h$1(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 v$1(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering }); | ||
return h$1(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering }); | ||
} | ||
@@ -428,5 +428,5 @@ }; | ||
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.imageFontFamily, imageFontFamily = _e === void 0 ? "FontAwesome" : _e, _f = _a.imageChar, imageChar = _f === void 0 ? "" : _f, _g = _a.imageCharFill, imageCharFill = _g === void 0 ? Palette.textColor(fill) : _g, _h = _a.padding, padding = _h === void 0 ? height / 5 : _h, _j = _a.xOffset, xOffset = _j === void 0 ? 0 : _j, _k = _a.yOffset, yOffset = _k === void 0 ? 0 : _k, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering; | ||
return v$1(d, null, | ||
v$1(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }), | ||
v$1(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 })); | ||
return h$1(p$1, null, | ||
h$1(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }), | ||
h$1(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 })); | ||
}; | ||
@@ -436,13 +436,13 @@ var Icons = function (_a) { | ||
var IconComponents = icons.map(function (cat) { | ||
return v$1("g", { key: cat.id, id: cat.id }, | ||
v$1(Icon, __assign({}, cat))); | ||
return h$1("g", { key: cat.id, id: cat.id }, | ||
h$1(Icon, __assign({}, cat))); | ||
}); | ||
return v$1(d, null, IconComponents); | ||
return h$1(p$1, null, IconComponents); | ||
}; | ||
function render(C, props, parent, replaceNode) { | ||
S(v$1(C, props), parent, replaceNode); | ||
P(h$1(C, props), parent, replaceNode); | ||
} | ||
function svgRender(C, props, parent, replaceNode) { | ||
S(v$1("svg", null, v$1(C, props)), parent, replaceNode); | ||
P(h$1("svg", null, h$1(C, props)), parent, replaceNode); | ||
} | ||
@@ -512,15 +512,15 @@ var HTMLAdapter = /** @class */ (function (_super) { | ||
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 v$1("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text); | ||
return h$1("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 = m(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1]; | ||
var _f = m(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1]; | ||
y$2(function () { | ||
var _e = p(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1]; | ||
var _f = p(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1]; | ||
h(function () { | ||
onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight }); | ||
}, [totalWidth, totalHeight, onSizeUpdate]); | ||
var parts = _(function () { | ||
var parts = F(function () { | ||
return text.split("\n"); | ||
}, [text]); | ||
var ts = _(function () { | ||
var ts = F(function () { | ||
return Utility.textSize(parts, fontFamily, height); | ||
@@ -531,18 +531,18 @@ }, [fontFamily, height, parts]); | ||
var yOffset = -(totalHeight / 2) + (height / 2); | ||
var TextLines = _(function () { | ||
var TextLines = F(function () { | ||
return parts.map(function (p, i) { | ||
return v$1("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") }, | ||
v$1(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill })); | ||
return h$1("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") }, | ||
h$1(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill })); | ||
}); | ||
}, [fill, fontFamily, height, parts, yOffset]); | ||
return v$1(d, null, TextLines); | ||
return h$1(p$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 = m(0), textWidth = _k[0], setTextWidthUpdate = _k[1]; | ||
var _l = m(0), textHeight = _l[0], setTextHeightUpdate = _l[1]; | ||
y$2(function () { | ||
var _k = p(0), textWidth = _k[0], setTextWidthUpdate = _k[1]; | ||
var _l = p(0), textHeight = _l[0], setTextHeightUpdate = _l[1]; | ||
h(function () { | ||
onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight }); | ||
}, [textWidth, textHeight, onSizeUpdate]); | ||
var onTextSizeUpdate = A(function (size) { | ||
var onTextSizeUpdate = T(function (size) { | ||
setTextWidthUpdate(size.width); | ||
@@ -552,24 +552,24 @@ setTextHeightUpdate(size.height); | ||
var w = textWidth + padding * 2 + strokeWidth; | ||
var h = textHeight + padding * 2 + strokeWidth; | ||
var h$2 = textHeight + padding * 2 + strokeWidth; | ||
var textOffsetY = Math.floor(height / 10); | ||
return v$1(d, null, | ||
v$1(Rectangle, { width: w, height: h, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
v$1("g", { transform: "translate(0 ".concat(textOffsetY, ")") }, | ||
v$1(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate }))); | ||
return h$1(p$1, null, | ||
h$1(Rectangle, { width: w, height: h$2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
h$1("g", { transform: "translate(0 ".concat(textOffsetY, ")") }, | ||
h$1(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 v$1(d, null, | ||
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
v$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") }, | ||
v$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" }))); | ||
return h$1(p$1, null, | ||
h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
h$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") }, | ||
h$1(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 v$1(d, null, | ||
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
v$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") }, | ||
v$1(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })), | ||
v$1("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") }, | ||
v$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" }))); | ||
return h$1(p$1, null, | ||
h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
h$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") }, | ||
h$1(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })), | ||
h$1("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") }, | ||
h$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" }))); | ||
}; | ||
@@ -579,11 +579,11 @@ | ||
var x = _a.x, y = _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 v$1("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") }, | ||
v$1("use", { href: "#" + id })); }); | ||
return v$1(d, null, IconComponents); | ||
var IconComponents = annotationIDs.map(function (id, i) { return h$1("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") }, | ||
h$1("use", { href: "#" + id })); }); | ||
return h$1(p$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; | ||
var _k = m(0), textBoxWidth = _k[0], setTextBoxWidthUpdate = _k[1]; | ||
var _l = m(0), textBoxHeight = _l[0], setTextBoxHeightUpdate = _l[1]; | ||
y$2(function () { | ||
var _k = p(0), textBoxWidth = _k[0], setTextBoxWidthUpdate = _k[1]; | ||
var _l = p(0), textBoxHeight = _l[0], setTextBoxHeightUpdate = _l[1]; | ||
h(function () { | ||
onSizeUpdate && onSizeUpdate({ width: 0, height: 0 }); | ||
@@ -601,15 +601,15 @@ }, [textBoxWidth, textBoxHeight, onSizeUpdate]); | ||
} | ||
var onTextBoxSizeUpdate = A(function (size) { | ||
var onTextBoxSizeUpdate = T(function (size) { | ||
setTextBoxWidthUpdate(size.width); | ||
setTextBoxHeightUpdate(size.height); | ||
}, []); | ||
var label = showLabel ? v$1("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") }, | ||
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined; | ||
var label = showLabel ? h$1("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") }, | ||
h$1(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined; | ||
return categoryID ? | ||
v$1("g", { transform: "translate(0 ".concat(offsetY, ")") }, | ||
v$1("use", { href: "#" + categoryID }), | ||
h$1("g", { transform: "translate(0 ".concat(offsetY, ")") }, | ||
h$1("use", { href: "#" + categoryID }), | ||
label, | ||
v$1(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) : | ||
v$1("g", { transform: "translate(0 ".concat(offsetY, ")") }, | ||
v$1(Icon, __assign({}, icon)), | ||
h$1(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) : | ||
h$1("g", { transform: "translate(0 ".concat(offsetY, ")") }, | ||
h$1(Icon, __assign({}, icon)), | ||
label); | ||
@@ -622,3 +622,3 @@ }; | ||
var textBoxHeight = textHeight + textPadding * 2; | ||
var width = _(function () { | ||
var width = F(function () { | ||
return Utility.textSize(text, textFontFamily, textHeight, false); | ||
@@ -638,14 +638,14 @@ }, [text, textFontFamily, textHeight]).width; | ||
return categoryID ? | ||
v$1("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") }, | ||
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") }, | ||
v$1("use", { href: "#" + categoryID })), | ||
v$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") }, | ||
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })), | ||
v$1(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize })) | ||
h$1("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") }, | ||
h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") }, | ||
h$1("use", { href: "#" + categoryID })), | ||
h$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") }, | ||
h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })), | ||
h$1(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize })) | ||
: | ||
v$1(d, null, | ||
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") }, | ||
v$1(Icon, __assign({}, icon, { shape: "square" }))), | ||
v$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") }, | ||
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill }))); | ||
h$1(p$1, null, | ||
h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") }, | ||
h$1(Icon, __assign({}, icon, { shape: "square" }))), | ||
h$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") }, | ||
h$1(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill }))); | ||
}; | ||
@@ -659,3 +659,3 @@ | ||
var annoOffsetY = 0; | ||
var labelWidth = _(function () { | ||
var labelWidth = F(function () { | ||
return Utility.textSize(text, textFontFamily, textHeight, false).width; | ||
@@ -676,4 +676,4 @@ }, [text, textFontFamily, textHeight]); | ||
var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2); | ||
annotationArr.push(v$1("g", { key: idx, class: "vertex3-anno", transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") }, | ||
v$1(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 })))); | ||
annotationArr.push(h$1("g", { key: idx, class: "vertex3-anno", transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") }, | ||
h$1(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 })))); | ||
}); | ||
@@ -683,3 +683,3 @@ if (annotations.length > 0) { | ||
} | ||
var textElement = v$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? v$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius })); | ||
var textElement = h$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? h$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius })); | ||
var iconHeight = icon.height || 20; | ||
@@ -697,8 +697,8 @@ var iconStrokeWidth = icon.strokeWidth || 0; | ||
} | ||
var subtextElement = subText.text === "" ? null : v$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") }, | ||
v$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius }))); | ||
return v$1("g", null, | ||
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") }, | ||
v$1(Icon, __assign({}, icon))), | ||
v$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") }, | ||
var subtextElement = subText.text === "" ? null : h$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") }, | ||
h$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius }))); | ||
return h$1("g", null, | ||
h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") }, | ||
h$1(Icon, __assign({}, icon))), | ||
h$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") }, | ||
textElement, | ||
@@ -728,3 +728,3 @@ annotationArr), | ||
}; | ||
return v$1(Vertex3, __assign({}, props, { icon: icon, subText: subText })); | ||
return h$1(Vertex3, __assign({}, props, { icon: icon, subText: subText })); | ||
}; | ||
@@ -737,3 +737,3 @@ | ||
var annoOffsetY = 0; | ||
var labelWidth = _(function () { | ||
var labelWidth = F(function () { | ||
return Utility.textSize(text, textFontFamily, textHeight, false).width; | ||
@@ -759,4 +759,4 @@ }, [text, textFontFamily, textHeight]); | ||
var annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2); | ||
annotationArr.push(v$1("g", { key: i, class: "vertex3-anno", "data-anno": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") }, | ||
v$1(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 })))); | ||
annotationArr.push(h$1("g", { key: i, class: "vertex3-anno", "data-anno": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") }, | ||
h$1(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 })))); | ||
}); | ||
@@ -771,15 +771,15 @@ if (annotations.length > 0) { | ||
var y = anno.shapeOffsetY; | ||
iconAnnotationArr.push(v$1("g", { key: i, class: "vertex3-iconAnno", "data-anno": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y, ")") }, | ||
v$1(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 })))); | ||
iconAnnotationArr.push(h$1("g", { key: i, class: "vertex3-iconAnno", "data-anno": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y, ")") }, | ||
h$1(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 = v$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? v$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius })); | ||
var textElement = h$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? h$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h$1(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 : v$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") }, | ||
v$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius }))); | ||
return v$1("g", null, | ||
v$1("g", { transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") }, | ||
v$1(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 })), | ||
var subtextElement = subText.text === "" ? null : h$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") }, | ||
h$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius }))); | ||
return h$1("g", null, | ||
h$1("g", { transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") }, | ||
h$1(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), | ||
v$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") }, | ||
h$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") }, | ||
textElement, | ||
@@ -825,3 +825,3 @@ annotationArr), | ||
}; | ||
return v$1(Vertex4, __assign({}, props, { icon: icon, subText: subText })); | ||
return h$1(Vertex4, __assign({}, props, { icon: icon, subText: subText })); | ||
}; | ||
@@ -832,6 +832,6 @@ | ||
var tSize = Utility.textSize(text, fontFamily, fontHeight, false); | ||
return v$1(d, null, | ||
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }), | ||
v$1("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") }, | ||
v$1(Text, { height: fontHeight, text: text, fontFamily: fontFamily }))); | ||
return h$1(p$1, null, | ||
h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }), | ||
h$1("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") }, | ||
h$1(Text, { height: fontHeight, text: text, fontFamily: fontFamily }))); | ||
}; | ||
@@ -838,0 +838,0 @@ |
@@ -8,12 +8,12 @@ (function (global, factory) { | ||
var PKG_NAME$1 = "@hpcc-js/react"; | ||
var PKG_VERSION$1 = "2.51.0"; | ||
var BUILD_VERSION$1 = "2.104.1"; | ||
var PKG_VERSION$1 = "2.51.1"; | ||
var BUILD_VERSION$1 = "2.104.2"; | ||
var PKG_NAME = "@hpcc-js/preact-shim"; | ||
var PKG_VERSION = "2.16.0"; | ||
var BUILD_VERSION = "2.104.1"; | ||
var PKG_VERSION = "2.16.1"; | ||
var BUILD_VERSION = "2.104.2"; | ||
var n,l$1,u$1,t$1,o$1,r$1,e$1={},c$1=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$1(n,l){for(var u in l)n[u]=l[u];return n}function h(n){var l=n.parentNode;l&&l.removeChild(n);}function v$1(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 y$1(l,f,t,o,null)}function y$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 d(n){return n.children}function _$1(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$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?k$1(n):null}function b$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 b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||r$1!==l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k$1(t):o,t.__h),z(u,t),t.__e!=o&&b$1(t)));});}function w$1(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$1,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$1(n,_,p=p||e$1,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$1(_,s,n):s=P(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M(g[h],g[++h],g[++h]);}function x$1(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?x$1(i,l,u):P(u,i,i,t,i.__e,l));return l}function P(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+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(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]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px";}function H(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||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(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?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=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 P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _$1(m,x),h.constructor=P,h.render=O),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$1({},h.__s)),a$1(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$1.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$1(a$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d&&null==s.key?s.props.children:s,w$1(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(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 z(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 L(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||e$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$1(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k$1(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H(l,"checked",_,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(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;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function S(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=[],j$1(i,u=(!o&&t||i).__k=v$1(d,null,[u]),r||e$1,e$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),z(f,u);}n=c$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,_$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$1({},this.state),"function"==typeof n&&(n=n(a$1({},u),this.props)),n&&a$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_$1.prototype.render=d,t$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0; | ||
var n,l$1,u$1,t$1,o$1,f$1={},e$1=[],c$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a$1(n){var l=n.parentNode;l&&l.removeChild(n);}function h$1(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 v$1(l,f,t,o,null)}function v$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 p$1(n){return n.children}function d$1(n,l){this.props=n,this.context=l;}function _(n,l){if(null==l)return n.__?_(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?_(n):null}function k$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 k$1(n)}}function b$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||setTimeout)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z$1(u,t),t.__e!=o&&k$1(t)));});}function w$1(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e$1,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(p$1,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null;}j$1(n,k,d=d||f$1,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m$1(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d));}for(u.__e=g,h=C;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=_(i,h+1)),N(x[h],x[h]));if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h]);}function m$1(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?m$1(i,l,u):A(u,i,i,t,i.__e,l));return l}function A(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+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(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]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c$1.test(l)?u:u+"px";}function H(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||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(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?T$1:I,o):n.removeEventListener(l,o?T$1:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T$1(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H=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]),(a=l$1.__b)&&a(u);try{n:if("function"==typeof H){if(g=u.props,m=(a=H.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in H&&H.prototype.render?u.__c=h=new H(g,x):(u.__c=h=new d$1(g,x),h.constructor=H,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,H.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==H.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k);});}if(h.context=x,h.props=g,h.__v=u,h.__P=n,A=l$1.__r,C=0,"prototype"in H&&H.prototype.render)h.state=h.__s,h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context);else do{h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++C<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),$=null!=a&&a.type===p$1&&null==a.key?a.props.children:a,w$1(n,Array.isArray($)?$:[$],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l$1.diffed)&&a(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 z$1(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 L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),h=(y=i.props||f$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w$1(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a$1(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(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;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||a$1(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j$1(i,u=(!o&&t||i).__k=h$1(p$1,null,[u]),r||f$1,f$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z$1(e,u);}n=e$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,d$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),b$1(this));},d$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b$1(this));},d$1.prototype.render=p$1,t$1=[],g$1.__r=0; | ||
var t,u,r,o=0,i=[],c=l$1.__b,f=l$1.__r,e=l$1.diffed,a=l$1.__c,v=l$1.unmount;function l(t,r){l$1.__h&&l$1.__h(u,t,o||r),o=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function m(n){return o=1,p(w,n)}function p(n,r,o){var i=l(t++,2);return i.t=n,i.__c||(i.__=[o?o(r):w(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y$2(r,o){var i=l(t++,3);!l$1.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function _(n,u){var r=l(t++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function A(n,t){return o=8,_(function(){return n},t)}function x$2(){for(var t;t=i.shift();)if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j),t.__H.__h=[];}catch(u){t.__H.__h=[],l$1.__e(u,t.__v);}}l$1.__b=function(n){u=null,c&&c(n);},l$1.__r=function(n){f&&f(n),t=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j),r.__h=[]);},l$1.diffed=function(t){e&&e(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i.push(o)&&r===l$1.requestAnimationFrame||((r=l$1.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x$2)),u=null;},l$1.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return !n.__||j(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],l$1.__e(r,t.__v);}}),a&&a(t,u);},l$1.unmount=function(t){v&&v(t);var u,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{g(n);}catch(n){u=n;}}),u&&l$1.__e(u,r.__v));};var b="function"==typeof requestAnimationFrame;function g(n){var t=u,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u=t;}function j(n){var t=u;n.__c=n.__(),u=t;}function k(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w(n,t){return "function"==typeof t?t(n):t} | ||
var t,r,u,i,o=0,c=[],f=[],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:f}),i.__[t]}function p(n){return o=1,y$1(z,n)}function y$1(n,u,i){var o=d(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):z(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)){r.u=!0;var c=r.shouldComponentUpdate;r.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return n.__c});return u.every(function(n){return !n.__N})?!c||c.call(this,n,t,r):!u.every(function(n){if(!n.__N)return !0;var t=n.__[0];return n.__=n.__N,n.__N=void 0,t===n.__[0]})&&(!c||c.call(this,n,t,r))};}return o.__N||o.__}function h(u,i){var o=d(t++,3);!l$1.__s&&w(o.__H,i)&&(o.__=u,o.i=i,r.__H.__h.push(o));}function F(n,r){var u=d(t++,7);return w(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=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(j),t.__H.__h.forEach(k),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=f,n.__N=n.i=void 0;})):(i.__h.forEach(j),i.__h.forEach(k),i.__h=[])),u=r;},l$1.diffed=function(t){v&&v(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(1!==c.push(o)&&i===l$1.requestAnimationFrame||((i=l$1.requestAnimationFrame)||function(n){var t,r=function(){clearTimeout(u),g&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);g&&(t=requestAnimationFrame(r));})(b)),o.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==f&&(n.__=n.__V),n.i=void 0,n.__V=f;})),u=r=null;},l$1.__c=function(t,r){r.some(function(t){try{t.__h.forEach(j),t.__h=t.__h.filter(function(n){return !n.__||k(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{j(n);}catch(n){r=n;}}),r&&l$1.__e(r,u.__v));};var g="function"==typeof requestAnimationFrame;function j(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function k(n){var t=r;n.__c=n.__(),r=t;}function w(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function z(n,t){return "function"==typeof t?t(n):t} | ||
@@ -23,14 +23,14 @@ var index_es6 = /*#__PURE__*/Object.freeze({ | ||
BUILD_VERSION: BUILD_VERSION, | ||
Component: _$1, | ||
Fragment: d, | ||
Component: d$1, | ||
Fragment: p$1, | ||
PKG_NAME: PKG_NAME, | ||
PKG_VERSION: PKG_VERSION, | ||
createElement: v$1, | ||
h: v$1, | ||
render: S, | ||
useCallback: A, | ||
useEffect: y$2, | ||
useMemo: _, | ||
useReducer: p, | ||
useState: m | ||
createElement: h$1, | ||
h: h$1, | ||
render: P, | ||
useCallback: T, | ||
useEffect: h, | ||
useMemo: F, | ||
useReducer: y$1, | ||
useState: p | ||
}); | ||
@@ -335,6 +335,6 @@ | ||
var _b = _a.points, points = _b === void 0 ? [] : _b, _c = _a.curveDepth, curveDepth = _c === void 0 ? 16 : _c, _d = _a.stroke, stroke = _d === void 0 ? "black" : _d, strokeDasharray = _a.strokeDasharray; | ||
var d = _(function () { | ||
var d = F(function () { | ||
return line(calcArc(points, curveDepth)); | ||
}, [curveDepth, points]); | ||
return v$1("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: d }); | ||
return h$1("path", { stroke: stroke, "stroke-dasharray": strokeDasharray, d: d }); | ||
}; | ||
@@ -344,9 +344,9 @@ | ||
var x = _a.x, _b = _a.y, y = _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 = _(function () { | ||
var renderChar = F(function () { | ||
return fontFamily === "FontAwesome" ? common.Utility.faChar(char) : char; | ||
}, [char, fontFamily]); | ||
return v$1("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, renderChar); | ||
return h$1("text", { x: x, y: y, fill: fill, stroke: stroke, "font-family": fontFamily, "font-size": "".concat(height, "px"), "dominant-baseline": "middle", style: "text-anchor: middle;alignment-baseline:middle;" }, renderChar); | ||
}; | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -406,11 +406,11 @@ | ||
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 v$1("circle", { r: radius, fill: fill, stroke: stroke, "stroke-width": strokeWidth, "shape-rendering": shapeRendering }); | ||
return h$1("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 v$1("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 }); | ||
return h$1("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 v$1("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 }); | ||
return h$1("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 }); | ||
}; | ||
@@ -421,8 +421,8 @@ var Shape = function (_a) { | ||
case "square": | ||
return v$1(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }); | ||
return h$1(Square, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }); | ||
case "rectangle": | ||
return v$1(Rectangle, { width: width !== null && width !== void 0 ? width : height, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }); | ||
return h$1(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 v$1(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering }); | ||
return h$1(Circle, { radius: height / 2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering }); | ||
} | ||
@@ -433,5 +433,5 @@ }; | ||
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.imageFontFamily, imageFontFamily = _e === void 0 ? "FontAwesome" : _e, _f = _a.imageChar, imageChar = _f === void 0 ? "" : _f, _g = _a.imageCharFill, imageCharFill = _g === void 0 ? common.Palette.textColor(fill) : _g, _h = _a.padding, padding = _h === void 0 ? height / 5 : _h, _j = _a.xOffset, xOffset = _j === void 0 ? 0 : _j, _k = _a.yOffset, yOffset = _k === void 0 ? 0 : _k, cornerRadius = _a.cornerRadius, shapeRendering = _a.shapeRendering; | ||
return v$1(d, null, | ||
v$1(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }), | ||
v$1(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 })); | ||
return h$1(p$1, null, | ||
h$1(Shape, { shape: shape, width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, shapeRendering: shapeRendering, cornerRadius: cornerRadius }), | ||
h$1(ImageChar, { x: xOffset, y: yOffset, height: height - padding, fontFamily: imageFontFamily, char: imageChar, fill: imageCharFill, "font-weight": 400 })); | ||
}; | ||
@@ -441,13 +441,13 @@ var Icons = function (_a) { | ||
var IconComponents = icons.map(function (cat) { | ||
return v$1("g", { key: cat.id, id: cat.id }, | ||
v$1(Icon, __assign({}, cat))); | ||
return h$1("g", { key: cat.id, id: cat.id }, | ||
h$1(Icon, __assign({}, cat))); | ||
}); | ||
return v$1(d, null, IconComponents); | ||
return h$1(p$1, null, IconComponents); | ||
}; | ||
function render(C, props, parent, replaceNode) { | ||
S(v$1(C, props), parent, replaceNode); | ||
P(h$1(C, props), parent, replaceNode); | ||
} | ||
function svgRender(C, props, parent, replaceNode) { | ||
S(v$1("svg", null, v$1(C, props)), parent, replaceNode); | ||
P(h$1("svg", null, h$1(C, props)), parent, replaceNode); | ||
} | ||
@@ -517,15 +517,15 @@ var HTMLAdapter = /** @class */ (function (_super) { | ||
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 v$1("text", { "font-family": fontFamily, "font-size": "".concat(height, "px"), "text-anchor": anchor, "dominant-baseline": baseline, fill: fill }, text); | ||
return h$1("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 = m(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1]; | ||
var _f = m(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1]; | ||
y$2(function () { | ||
var _e = p(0), totalWidth = _e[0], setTotalWidthUpdate = _e[1]; | ||
var _f = p(0), totalHeight = _f[0], setTotalHeightUpdate = _f[1]; | ||
h(function () { | ||
onSizeUpdate && onSizeUpdate({ width: totalWidth, height: totalHeight }); | ||
}, [totalWidth, totalHeight, onSizeUpdate]); | ||
var parts = _(function () { | ||
var parts = F(function () { | ||
return text.split("\n"); | ||
}, [text]); | ||
var ts = _(function () { | ||
var ts = F(function () { | ||
return common.Utility.textSize(parts, fontFamily, height); | ||
@@ -536,18 +536,18 @@ }, [fontFamily, height, parts]); | ||
var yOffset = -(totalHeight / 2) + (height / 2); | ||
var TextLines = _(function () { | ||
var TextLines = F(function () { | ||
return parts.map(function (p, i) { | ||
return v$1("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") }, | ||
v$1(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill })); | ||
return h$1("g", { key: i, transform: "translate(0 ".concat(yOffset + i * (height + 2), ")") }, | ||
h$1(TextLine, { text: p, height: height, fontFamily: fontFamily, fill: fill })); | ||
}); | ||
}, [fill, fontFamily, height, parts, yOffset]); | ||
return v$1(d, null, TextLines); | ||
return h$1(p$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 = m(0), textWidth = _k[0], setTextWidthUpdate = _k[1]; | ||
var _l = m(0), textHeight = _l[0], setTextHeightUpdate = _l[1]; | ||
y$2(function () { | ||
var _k = p(0), textWidth = _k[0], setTextWidthUpdate = _k[1]; | ||
var _l = p(0), textHeight = _l[0], setTextHeightUpdate = _l[1]; | ||
h(function () { | ||
onSizeUpdate && onSizeUpdate({ width: textWidth, height: textHeight }); | ||
}, [textWidth, textHeight, onSizeUpdate]); | ||
var onTextSizeUpdate = A(function (size) { | ||
var onTextSizeUpdate = T(function (size) { | ||
setTextWidthUpdate(size.width); | ||
@@ -557,24 +557,24 @@ setTextHeightUpdate(size.height); | ||
var w = textWidth + padding * 2 + strokeWidth; | ||
var h = textHeight + padding * 2 + strokeWidth; | ||
var h$2 = textHeight + padding * 2 + strokeWidth; | ||
var textOffsetY = Math.floor(height / 10); | ||
return v$1(d, null, | ||
v$1(Rectangle, { width: w, height: h, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
v$1("g", { transform: "translate(0 ".concat(textOffsetY, ")") }, | ||
v$1(Text, { text: text, fontFamily: fontFamily, height: height, fill: textFill, onSizeUpdate: onTextSizeUpdate }))); | ||
return h$1(p$1, null, | ||
h$1(Rectangle, { width: w, height: h$2, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
h$1("g", { transform: "translate(0 ".concat(textOffsetY, ")") }, | ||
h$1(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 v$1(d, null, | ||
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
v$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") }, | ||
v$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" }))); | ||
return h$1(p$1, null, | ||
h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
h$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") }, | ||
h$1(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 v$1(d, null, | ||
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
v$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") }, | ||
v$1(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })), | ||
v$1("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") }, | ||
v$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" }))); | ||
return h$1(p$1, null, | ||
h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke, strokeWidth: strokeWidth, cornerRadius: cornerRadius }), | ||
h$1("g", { transform: "translate(".concat(-(width / 2) + padding, " ").concat(-(height / 2) + padding, ")") }, | ||
h$1(Icon, { shape: "square", imageFontFamily: iconFontFamily, imageChar: icon, height: height, fill: fill, imageCharFill: textFill })), | ||
h$1("g", { transform: "translate(".concat(-(width / 2) + (padding * 2) + height, " ").concat(-(height / 2) + padding, ")") }, | ||
h$1(TextLine, { text: text, fontFamily: fontFamily, height: fontSize, fill: textFill, anchor: "start", baseline: "hanging" }))); | ||
}; | ||
@@ -584,11 +584,11 @@ | ||
var x = _a.x, y = _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 v$1("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") }, | ||
v$1("use", { href: "#" + id })); }); | ||
return v$1(d, null, IconComponents); | ||
var IconComponents = annotationIDs.map(function (id, i) { return h$1("g", { key: id, transform: "translate(".concat(x + i * stepSize, " ").concat(y, ")") }, | ||
h$1("use", { href: "#" + id })); }); | ||
return h$1(p$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; | ||
var _k = m(0), textBoxWidth = _k[0], setTextBoxWidthUpdate = _k[1]; | ||
var _l = m(0), textBoxHeight = _l[0], setTextBoxHeightUpdate = _l[1]; | ||
y$2(function () { | ||
var _k = p(0), textBoxWidth = _k[0], setTextBoxWidthUpdate = _k[1]; | ||
var _l = p(0), textBoxHeight = _l[0], setTextBoxHeightUpdate = _l[1]; | ||
h(function () { | ||
onSizeUpdate && onSizeUpdate({ width: 0, height: 0 }); | ||
@@ -606,15 +606,15 @@ }, [textBoxWidth, textBoxHeight, onSizeUpdate]); | ||
} | ||
var onTextBoxSizeUpdate = A(function (size) { | ||
var onTextBoxSizeUpdate = T(function (size) { | ||
setTextBoxWidthUpdate(size.width); | ||
setTextBoxHeightUpdate(size.height); | ||
}, []); | ||
var label = showLabel ? v$1("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") }, | ||
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined; | ||
var label = showLabel ? h$1("g", { transform: "translate(0 ".concat(textboxOffsetY, ")") }, | ||
h$1(TextBox, { text: text, height: textHeight, padding: textPadding, onSizeUpdate: onTextBoxSizeUpdate, textFill: textFill, fill: textboxFill, stroke: textboxStroke, fontFamily: textFontFamily })) : undefined; | ||
return categoryID ? | ||
v$1("g", { transform: "translate(0 ".concat(offsetY, ")") }, | ||
v$1("use", { href: "#" + categoryID }), | ||
h$1("g", { transform: "translate(0 ".concat(offsetY, ")") }, | ||
h$1("use", { href: "#" + categoryID }), | ||
label, | ||
v$1(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) : | ||
v$1("g", { transform: "translate(0 ".concat(offsetY, ")") }, | ||
v$1(Icon, __assign({}, icon)), | ||
h$1(Annotations, { x: width / 2, y: annotationOffsetY, annotationIDs: annotationIDs })) : | ||
h$1("g", { transform: "translate(0 ".concat(offsetY, ")") }, | ||
h$1(Icon, __assign({}, icon)), | ||
label); | ||
@@ -627,3 +627,3 @@ }; | ||
var textBoxHeight = textHeight + textPadding * 2; | ||
var width = _(function () { | ||
var width = F(function () { | ||
return common.Utility.textSize(text, textFontFamily, textHeight, false); | ||
@@ -643,14 +643,14 @@ }, [text, textFontFamily, textHeight]).width; | ||
return categoryID ? | ||
v$1("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") }, | ||
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") }, | ||
v$1("use", { href: "#" + categoryID })), | ||
v$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") }, | ||
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })), | ||
v$1(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize })) | ||
h$1("g", { transform: "translate(".concat(offsetX, " ").concat(offsetY, ")") }, | ||
h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") }, | ||
h$1("use", { href: "#" + categoryID })), | ||
h$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")") }, | ||
h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily })), | ||
h$1(Annotations, { x: annotationOffsetX, y: annotationOffsetY, annotationIDs: annotationIDs, stepSize: stepSize })) | ||
: | ||
v$1(d, null, | ||
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") }, | ||
v$1(Icon, __assign({}, icon, { shape: "square" }))), | ||
v$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") }, | ||
v$1(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill }))); | ||
h$1(p$1, null, | ||
h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")scale(1.0002)") }, | ||
h$1(Icon, __assign({}, icon, { shape: "square" }))), | ||
h$1("g", { transform: "translate(".concat(textboxOffsetX, " ").concat(textboxOffsetY, ")scale(1.0002)") }, | ||
h$1(TextBox, { text: text, height: textHeight, padding: textPadding, stroke: textboxStroke, fill: textboxFill }))); | ||
}; | ||
@@ -664,3 +664,3 @@ | ||
var annoOffsetY = 0; | ||
var labelWidth = _(function () { | ||
var labelWidth = F(function () { | ||
return common.Utility.textSize(text, textFontFamily, textHeight, false).width; | ||
@@ -681,4 +681,4 @@ }, [text, textFontFamily, textHeight]); | ||
var annoOffsetX = fullAnnotationWidth - (annoShapeWidth / 2); | ||
annotationArr.push(v$1("g", { key: idx, class: "vertex3-anno", transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") }, | ||
v$1(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 })))); | ||
annotationArr.push(h$1("g", { key: idx, class: "vertex3-anno", transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") }, | ||
h$1(Icon, __assign({}, anno, { shape: "square", height: textShapeHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 })))); | ||
}); | ||
@@ -688,3 +688,3 @@ if (annotations.length > 0) { | ||
} | ||
var textElement = v$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? v$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius })); | ||
var textElement = h$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? h$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius })); | ||
var iconHeight = icon.height || 20; | ||
@@ -702,8 +702,8 @@ var iconStrokeWidth = icon.strokeWidth || 0; | ||
} | ||
var subtextElement = subText.text === "" ? null : v$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") }, | ||
v$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius }))); | ||
return v$1("g", null, | ||
v$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") }, | ||
v$1(Icon, __assign({}, icon))), | ||
v$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") }, | ||
var subtextElement = subText.text === "" ? null : h$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") }, | ||
h$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius }))); | ||
return h$1("g", null, | ||
h$1("g", { transform: "translate(".concat(iconOffsetX, " ").concat(iconOffsetY, ")") }, | ||
h$1(Icon, __assign({}, icon))), | ||
h$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") }, | ||
textElement, | ||
@@ -733,3 +733,3 @@ annotationArr), | ||
}; | ||
return v$1(Vertex3, __assign({}, props, { icon: icon, subText: subText })); | ||
return h$1(Vertex3, __assign({}, props, { icon: icon, subText: subText })); | ||
}; | ||
@@ -742,3 +742,3 @@ | ||
var annoOffsetY = 0; | ||
var labelWidth = _(function () { | ||
var labelWidth = F(function () { | ||
return common.Utility.textSize(text, textFontFamily, textHeight, false).width; | ||
@@ -764,4 +764,4 @@ }, [text, textFontFamily, textHeight]); | ||
var annoOffsetX = _labelAnnoOffsetX - (annoWidthArr[i] / 2); | ||
annotationArr.push(v$1("g", { key: i, class: "vertex3-anno", "data-anno": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") }, | ||
v$1(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 })))); | ||
annotationArr.push(h$1("g", { key: i, class: "vertex3-anno", "data-anno": JSON.stringify(anno), transform: "translate(".concat(annoOffsetX, " ").concat(annoOffsetY, ")") }, | ||
h$1(Icon, __assign({}, anno, { shape: "rectangle", width: annoWidthArr[i], height: annoTextHeight, imageChar: annoText, imageFontFamily: anno.imageFontFamily, cornerRadius: cornerRadius, strokeWidth: 0 })))); | ||
}); | ||
@@ -776,15 +776,15 @@ if (annotations.length > 0) { | ||
var y = anno.shapeOffsetY; | ||
iconAnnotationArr.push(v$1("g", { key: i, class: "vertex3-iconAnno", "data-anno": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y, ")") }, | ||
v$1(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 })))); | ||
iconAnnotationArr.push(h$1("g", { key: i, class: "vertex3-iconAnno", "data-anno": JSON.stringify(anno), transform: "translate(".concat(x, " ").concat(y, ")") }, | ||
h$1(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 = v$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? v$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : v$1(TextBox, { text: text, height: textHeight, padding: textPadding, strokeWidth: textboxStrokeWidth, stroke: textboxStroke, fill: textboxFill, textFill: textFill, fontFamily: textFontFamily, cornerRadius: cornerRadius })); | ||
var textElement = h$1("g", { transform: "translate(".concat(textOffsetX, " ").concat(annoOffsetY, ")") }, !showLabel || text === "" ? h$1("circle", { r: noLabelRadius, stroke: textboxStroke, fill: textFill }) : h$1(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 : v$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") }, | ||
v$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius }))); | ||
return v$1("g", null, | ||
v$1("g", { transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") }, | ||
v$1(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 })), | ||
var subtextElement = subText.text === "" ? null : h$1("g", { transform: "translate(".concat(subTextOffsetX, " ").concat(subTextOffsetY, ")") }, | ||
h$1(TextBox, __assign({ fill: subText.fill || "#FFFFFF", textFill: subText.textFill || textFill }, subText, { height: textHeight, padding: textPadding, strokeWidth: 0, stroke: textboxStroke, fontFamily: textFontFamily, cornerRadius: cornerRadius }))); | ||
return h$1("g", null, | ||
h$1("g", { transform: "translate(".concat(shapeOffsetX, " ").concat(shapeOffsetY, ")") }, | ||
h$1(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), | ||
v$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") }, | ||
h$1("g", { transform: "translate(".concat(-fullAnnotationWidth / 2, " ").concat(annoOffsetY, ")") }, | ||
textElement, | ||
@@ -830,3 +830,3 @@ annotationArr), | ||
}; | ||
return v$1(Vertex4, __assign({}, props, { icon: icon, subText: subText })); | ||
return h$1(Vertex4, __assign({}, props, { icon: icon, subText: subText })); | ||
}; | ||
@@ -837,6 +837,6 @@ | ||
var tSize = common.Utility.textSize(text, fontFamily, fontHeight, false); | ||
return v$1(d, null, | ||
v$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }), | ||
v$1("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") }, | ||
v$1(Text, { height: fontHeight, text: text, fontFamily: fontFamily }))); | ||
return h$1(p$1, null, | ||
h$1(Rectangle, { width: width, height: height, fill: fill, stroke: stroke }), | ||
h$1("g", { transform: "translate(".concat((-width + tSize.width) / 2 + 4, " ").concat((-height + tSize.height) / 2 + 4, ")") }, | ||
h$1(Text, { height: fontHeight, text: text, fontFamily: fontFamily }))); | ||
}; | ||
@@ -843,0 +843,0 @@ |
@@ -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,i,o,r,a,l,s={},_=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(t,e){for(var n in e)t[n]=e[n];return t}function u(t){var e=t.parentNode;e&&e.removeChild(t)}function d(t,e,i){var o,r,a,l={};for(a in e)"key"==a?o=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return f(t,l,o,r,null)}function f(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?++o:a};return null==a&&null!=i.vnode&&i.vnode(l),l}function p(t){return t.children}function v(t,e){this.props=t,this.context=e}function g(t,e){if(null==e)return t.__?g(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?g(t):null}function y(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 y(t)}}function x(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!m.__r++||l!==i.debounceRendering)&&((l=i.debounceRendering)||a)(m)}function m(){for(var t;m.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,i,o,r,a;t.__d&&(r=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(i=h({},o)).__v=o.__v+1,W(a,o,i,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[r]:null,n,null==r?g(o):r,o.__h),T(n,o),o.__e!=r&&y(o)))}))}function k(t,e,n,i,o,r,a,l,c,h){var u,d,v,y,x,m,k,C=i&&i.__k||_,w=C.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(y=n.__k[u]=null==(y=e[u])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?f(null,y,null,null,y):Array.isArray(y)?f(p,{children:y},null,null,null):y.__b>0?f(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(v=C[u])||v&&y.key==v.key&&y.type===v.type)C[u]=void 0;else for(d=0;d<w;d++){if((v=C[d])&&y.key==v.key&&y.type===v.type){C[d]=void 0;break}v=null}W(t,y,v=v||s,o,r,a,l,c,h),x=y.__e,(d=y.ref)&&v.ref!=d&&(k||(k=[]),v.ref&&k.push(v.ref,null,y),k.push(d,y.__c||x,y)),null!=x?(null==m&&(m=x),"function"==typeof y.type&&y.__k===v.__k?y.__d=c=F(y,c,t):c=b(t,y,v,C,x,c),"function"==typeof n.type&&(n.__d=c)):c&&v.__e==c&&c.parentNode!=t&&(c=g(v))}for(n.__e=m,u=w;u--;)null!=C[u]&&("function"==typeof n.type&&null!=C[u].__e&&C[u].__e==n.__d&&(n.__d=g(i,u+1)),E(C[u],C[u]));if(k)for(u=0;u<k.length;u++)O(k[u],k[++u],k[++u])}function F(t,e,n){for(var i,o=t.__k,r=0;o&&r<o.length;r++)(i=o[r])&&(i.__=t,e="function"==typeof i.type?F(i,e,n):b(n,i,i,o,i.__e,e));return e}function b(t,e,n,i,o,r){var a,l,s;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=r||null==o.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(o),a=null;else{for(l=r,s=0;(l=l.nextSibling)&&s<i.length;s+=2)if(l==o)break t;t.insertBefore(o,r),a=r}return void 0!==a?a:o.nextSibling}function C(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||c.test(e)?n:n+"px"}function w(t,e,n,i,o){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||C(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||C(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?i||t.addEventListener(e,r?R:S,r):t.removeEventListener(e,r?R:S,r);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function S(t){this.l[t.type+!1](i.event?i.event(t):t)}function R(t){this.l[t.type+!0](i.event?i.event(t):t)}function W(t,e,n,o,r,a,l,s,_){var c,u,d,f,g,y,x,m,F,b,C,w=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(_=n.__h,s=e.__e=n.__e,e.__h=null,a=[s]),(c=i.__b)&&c(e);try{t:if("function"==typeof w){if(m=e.props,F=(c=w.contextType)&&o[c.__c],b=c?F?F.props.value:c.__:o,n.__c?x=(u=e.__c=n.__c).__=u.__E:("prototype"in w&&w.prototype.render?e.__c=u=new w(m,b):(e.__c=u=new v(m,b),u.constructor=w,u.render=A),F&&F.sub(u),u.props=m,u.state||(u.state={}),u.context=b,u.__n=o,d=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=w.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=h({},u.__s)),h(u.__s,w.getDerivedStateFromProps(m,u.__s))),f=u.props,g=u.state,d)null==w.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==w.getDerivedStateFromProps&&m!==f&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(m,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(m,u.__s,b)||e.__v===n.__v){u.props=m,u.state=u.__s,e.__v!==n.__v&&(u.__d=!1),u.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),u.__h.length&&l.push(u);break t}null!=u.componentWillUpdate&&u.componentWillUpdate(m,u.__s,b),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(f,g,y)}))}u.context=b,u.props=m,u.state=u.__s,(c=i.__r)&&c(e),u.__d=!1,u.__v=e,u.__P=t,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(o=h(h({},o),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(y=u.getSnapshotBeforeUpdate(f,g)),C=null!=c&&c.type===p&&null==c.key?c.props.children:c,k(t,Array.isArray(C)?C:[C],e,n,o,r,a,l,s,_),u.base=e.__e,e.__h=null,u.__h.length&&l.push(u),x&&(u.__E=u.__=null),u.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=P(n.__e,e,n,o,r,a,l,_);(c=i.diffed)&&c(e)}catch(t){e.__v=null,(_||null!=a)&&(e.__e=s,e.__h=!!_,a[a.indexOf(s)]=null),i.__e(t,e,n)}}function T(t,e){i.__c&&i.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){i.__e(t,e.__v)}}))}function P(t,e,i,o,r,a,l,_){var c,h,d,f=i.props,p=e.props,v=e.type,y=0;if("svg"===v&&(r=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){t=c,a[y]=null;break}if(null==t){if(null===v)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,p.is&&p),a=null,_=!1}if(null===v)f===p||_&&t.data===p||(t.data=p);else{if(a=a&&n.call(t.childNodes),h=(f=i.props||s).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!_){if(null!=a)for(f={},y=0;y<t.attributes.length;y++)f[t.attributes[y].name]=t.attributes[y].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(function(t,e,n,i,o){var r;for(r in n)"children"===r||"key"===r||r in e||w(t,r,null,n[r],i);for(r in e)o&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||w(t,r,e[r],n[r],i)}(t,p,f,r,_),d)e.__k=[];else if(y=e.props.children,k(t,Array.isArray(y)?y:[y],e,i,o,r&&"foreignObject"!==v,a,l,a?a[0]:i.__k&&g(i,0),_),null!=a)for(y=a.length;y--;)null!=a[y]&&u(a[y]);_||("value"in p&&void 0!==(y=p.value)&&(y!==t.value||"progress"===v&&!y||"option"===v&&y!==f.value)&&w(t,"value",y,f.value,!1),"checked"in p&&void 0!==(y=p.checked)&&y!==t.checked&&w(t,"checked",y,f.checked,!1))}return t}function O(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){i.__e(t,n)}}function E(t,e,n){var o,r;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||O(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){i.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&E(o[r],e,"function"!=typeof t.type);n||null==t.__e||u(t.__e),t.__e=t.__d=void 0}function A(t,e,n){return this.constructor(t,n)}function D(t,e,o){var r,a,l;i.__&&i.__(t,e),a=(r="function"==typeof o)?null:o&&o.__k||e.__k,l=[],W(e,t=(!r&&o||e).__k=d(p,null,[t]),a||s,s,void 0!==e.ownerSVGElement,!r&&o?[o]:a?null:e.firstChild?n.call(e.childNodes):null,l,!r&&o?o:a?a.__e:e.firstChild,r),T(l,t)}n=_.slice,i={__e:function(t,e,n,i){for(var o,r,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,i||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},o=0,v.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof t&&(t=t(h({},n),this.props)),t&&h(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),x(this))},v.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},v.prototype.render=p,r=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,m.__r=0;var H,M,L,I=0,U=[],z=i.__b,N=i.__r,j=i.diffed,V=i.__c,q=i.unmount;function B(t,e){i.__h&&i.__h(M,t,I||e),I=0;var n=M.__H||(M.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function G(t){return I=1,X(nt,t)}function X(t,e,n){var i=B(H++,2);return i.t=t,i.__c||(i.__=[n?n(e):nt(void 0,e),function(t){var e=i.t(i.__[0],t);i.__[0]!==e&&(i.__=[e,i.__[1]],i.__c.setState({}))}],i.__c=M),i.__}function Y(t,e){var n=B(H++,3);!i.__s&&et(n.__H,e)&&(n.__=t,n.__H=e,M.__H.__h.push(n))}function K(t,e){var n=B(H++,7);return et(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function $(t,e){return I=8,K((function(){return t}),e)}function J(){for(var t;t=U.shift();)if(t.__P)try{t.__H.__h.forEach(Q),t.__H.__h.forEach(tt),t.__H.__h=[]}catch(e){t.__H.__h=[],i.__e(e,t.__v)}}i.__b=function(t){M=null,z&&z(t)},i.__r=function(t){N&&N(t),H=0;var e=(M=t.__c).__H;e&&(e.__h.forEach(Q),e.__h.forEach(tt),e.__h=[])},i.diffed=function(t){j&&j(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==U.push(e)&&L===i.requestAnimationFrame||((L=i.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),Z&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Z&&(e=requestAnimationFrame(n))})(J)),M=null},i.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Q),t.__h=t.__h.filter((function(t){return!t.__||tt(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],i.__e(n,t.__v)}})),V&&V(t,e)},i.unmount=function(t){q&&q(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{Q(t)}catch(t){e=t}})),e&&i.__e(e,n.__v))};var Z="function"==typeof requestAnimationFrame;function Q(t){var e=M,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),M=e}function tt(t){var e=M;t.__c=t.__(),M=e}function et(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function nt(t,e){return"function"==typeof e?e(t):e}var it=Object.freeze({__proto__:null,BUILD_VERSION:"2.104.1",Component:v,Fragment:p,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.16.0",createElement:d,h:d,render:D,useCallback:$,useEffect:Y,useMemo:K,useReducer:X,useState:G}),ot=Math.PI,rt=2*ot,at=1e-6,lt=rt-at;function st(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _t(){return new st}function ct(t){return function(){return t}}function ht(t){this._context=t}function ut(t){return new ht(t)}function dt(t){return t[0]}function ft(t){return t[1]}function pt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function vt(t){this._context=t}st.prototype=_t.prototype={constructor:st,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,o,r){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var r=this._x1,a=this._y1,l=n-t,s=i-e,_=r-t,c=a-e,h=_*_+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>at)if(Math.abs(c*l-s*_)>at&&o){var u=n-r,d=i-a,f=l*l+s*s,p=u*u+d*d,v=Math.sqrt(f),g=Math.sqrt(h),y=o*Math.tan((ot-Math.acos((f+h-p)/(2*v*g)))/2),x=y/g,m=y/v;Math.abs(x-1)>at&&(this._+="L"+(t+x*_)+","+(e+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*u>_*d)+","+(this._x1=t+m*l)+","+(this._y1=e+m*s)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,o,r){t=+t,e=+e,r=!!r;var a=(n=+n)*Math.cos(i),l=n*Math.sin(i),s=t+a,_=e+l,c=1^r,h=r?i-o:o-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+_:(Math.abs(this._x1-s)>at||Math.abs(this._y1-_)>at)&&(this._+="L"+s+","+_),n&&(h<0&&(h=h%rt+rt),h>lt?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=_):h>at&&(this._+="A"+n+","+n+",0,"+ +(h>=ot)+","+c+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var gt=function(){var t=dt,e=ft,n=ct(!0),i=null,o=ut,r=null;function a(a){var l,s,_,c=a.length,h=!1;for(null==i&&(r=o(_=_t())),l=0;l<=c;++l)!(l<c&&n(s=a[l],l,a))===h&&((h=!h)?r.lineStart():r.lineEnd()),h&&r.point(+t(s,l,a),+e(s,l,a));if(_)return r=null,_+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:ct(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:ct(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:ct(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=i&&(r=o(i)),a):o},a.context=function(t){return arguments.length?(null==t?i=r=null:r=o(i=t),a):i},a}().x((function(t){return t[0]})).y((function(t){return t[1]})).curve((function(t){return new vt(t)}));var yt=function(t){var n=t.x,i=t.y,o=void 0===i?0:i,r=t.height,a=void 0===r?12:r,l=t.fill,s=t.stroke,_=t.fontFamily,c=void 0===_?"FontAwesome":_,h=t.char,u=void 0===h?"":h,f=K((function(){return"FontAwesome"===c?e.Utility.faChar(u):u}),[u,c]);return d("text",{x:n,y:o,fill:l,stroke:s,"font-family":c,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},f)},xt=function(t,e){return xt=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])},xt(t,e)};function mt(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}xt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var kt=function(){return kt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},kt.apply(this,arguments)};function Ft(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function bt(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var Ct=function(t){var e=t.radius,n=void 0===e?32:e,i=t.fill,o=void 0===i?"navy":i,r=t.stroke,a=void 0===r?o:r,l=t.strokeWidth;return d("circle",{r:n,fill:o,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},wt=function(t){var e=t.radius,n=void 0===e?30:e,i=t.cornerRadius,o=void 0===i?0:i,r=t.fill,a=void 0===r?"white":r,l=t.stroke,s=t.strokeWidth;return d("rect",{x:-n,y:-n,rx:o,ry:o,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===s?1:s,"shape-rendering":t.shapeRendering})},St=function(t){var e=t.width,n=void 0===e?30:e,i=t.height,o=void 0===i?30:i,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,s=void 0===l?"white":l,_=t.stroke,c=void 0===_?"black":_,h=t.strokeWidth;return d("rect",{x:-n/2,y:-o/2,rx:a,ry:a,width:n,height:o,fill:s,stroke:c||s,"stroke-width":void 0===h?1:h,"shape-rendering":t.shapeRendering})},Rt=function(t){var e=t.shape,n=void 0===e?"circle":e,i=t.height,o=void 0===i?128:i,r=t.width,a=t.fill,l=t.stroke,s=t.strokeWidth,_=void 0===s?1:s,c=t.shapeRendering,h=t.cornerRadius;switch(n){case"square":return d(wt,{radius:o/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:c,cornerRadius:h});case"rectangle":return d(St,{width:null!=r?r:o,height:o,fill:a,stroke:l,strokeWidth:_,shapeRendering:c,cornerRadius:h});default:return d(Ct,{radius:o/2,fill:a,stroke:l,strokeWidth:_,shapeRendering:c})}},Wt=function(t){var n=t.shape,i=void 0===n?"circle":n,o=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,s=t.stroke,_=t.strokeWidth,c=void 0===_?0:_,h=t.imageFontFamily,u=void 0===h?"FontAwesome":h,f=t.imageChar,v=void 0===f?"":f,g=t.imageCharFill,y=void 0===g?e.Palette.textColor(l):g,x=t.padding,m=void 0===x?a/5:x,k=t.xOffset,F=void 0===k?0:k,b=t.yOffset,C=void 0===b?0:b,w=t.cornerRadius,S=t.shapeRendering;return d(p,null,d(Rt,{shape:i,width:o,height:a,fill:l,stroke:s,strokeWidth:c,shapeRendering:S,cornerRadius:w}),d(yt,{x:F,y:C,height:a-m,fontFamily:u,char:v,fill:y,"font-weight":400}))};function Tt(t,e,n,i){D(d(t,e),n,i)}var Pt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return mt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=kt(kt({},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),Tt(this._component,this._props,e)},Ft([e.publish({},"object","Properties"),bt("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Ot=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return mt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=kt(kt({},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),Tt(this._component,this._props,e)},Ft([e.publish({},"object","Properties"),bt("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),Et=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.anchor,r=void 0===o?"middle":o,a=t.baseline,l=void 0===a?"middle":a,s=t.fontFamily,_=void 0===s?"Verdana":s,c=t.fill,h=void 0===c?"black":c;return d("text",{"font-family":_,"font-size":"".concat(i,"px"),"text-anchor":r,"dominant-baseline":l,fill:h},e)},At=function(t){var n=t.text,i=t.height,o=void 0===i?12:i,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,s=void 0===l?"black":l,_=t.onSizeUpdate,c=G(0),h=c[0],u=c[1],f=G(0),v=f[0],g=f[1];Y((function(){_&&_({width:h,height:v})}),[h,v,_]);var y=K((function(){return n.split("\n")}),[n]);u(K((function(){return e.Utility.textSize(y,a,o)}),[a,o,y]).width),g(y.length*(o+2)-2);var x=-v/2+o/2,m=K((function(){return y.map((function(t,e){return d("g",{key:e,transform:"translate(0 ".concat(x+e*(o+2),")")},d(Et,{text:t,height:o,fontFamily:a,fill:s}))}))}),[s,a,o,y,x]);return d(p,null,m)},Dt=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.fontFamily,r=void 0===o?"Verdana":o,a=t.padding,l=void 0===a?4:a,s=t.fill,_=void 0===s?"whitesmoke":s,c=t.stroke,h=void 0===c?"lightgray":c,u=t.textFill,f=void 0===u?"black":u,v=t.strokeWidth,g=void 0===v?1:v,y=t.cornerRadius,x=void 0===y?0:y,m=t.onSizeUpdate,k=G(0),F=k[0],b=k[1],C=G(0),w=C[0],S=C[1];Y((function(){m&&m({width:F,height:w})}),[F,w,m]);var R=$((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+g,T=w+2*l+g,P=Math.floor(i/10);return d(p,null,d(St,{width:W,height:T,fill:_,stroke:h,strokeWidth:g,cornerRadius:x}),d("g",{transform:"translate(0 ".concat(P,")")},d(At,{text:e,fontFamily:r,height:i,fill:f,onSizeUpdate:R})))},Ht=function(t){var e=t.x,n=t.y,i=t.annotationIDs,o=void 0===i?[]:i,r=t.stepSize,a=void 0===r?-16:r,l=o.map((function(t,i){return d("g",{key:t,transform:"translate(".concat(e+i*a," ").concat(n,")")},d("use",{href:"#"+t}))}));return d(p,null,l)},Mt=function(t){t.categoryID;var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,a=t.textPadding,l=void 0===a?4:a,s=t.textFill,_=void 0===s?"#287EC4":s,c=t.textboxFill,h=void 0===c?"white":c,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,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?{}:R,T=t.showLabel,P=void 0===T||T,O=t.noLabelRadius,E=void 0===O?5:O;S=kt({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=kt({text:"",fill:"white",textFill:"#555555"},W);var A=0,D=K((function(){return e.Utility.textSize(i,y,r,!1).width}),[i,y,r]),H=0;""!==i&&(H=D+2*l+2*v);var M=(A+=H+m)-H/2,L=r+2*l+2*v,I=[];F.forEach((function(t,e){var n=t.imageChar,i=(A+=L+m)-L/2;I.push(d("g",{key:e,class:"vertex3-anno",transform:"translate(".concat(i," ").concat(0,")")},d(Wt,kt({},t,{shape:"square",height:L,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:C,strokeWidth:0}))))})),F.length>0&&(A+=m*(F.length-1));var U=d("g",{transform:"translate(".concat(M," ").concat(0,")")},P&&""!==i?d(Dt,{text:i,height:r,padding:l,strokeWidth:v,stroke:f,fill:h,textFill:_,fontFamily:y,cornerRadius:C}):d("circle",{r:E,stroke:f,fill:_})),z=S.height||20,N=S.strokeWidth||0,j=0,V=L+2*m;""!==i||I.length>0?j=-z/2-N-L/2-2*m:""!==W.text&&(V=z/2+N+2*m);var q=""===W.text?null:d("g",{transform:"translate(".concat(0," ").concat(V,")")},d(Dt,kt({fill:W.fill||"#FFFFFF",textFill:W.textFill||_},W,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:y,cornerRadius:C})));return d("g",null,d("g",{transform:"translate(".concat(0," ").concat(j,")")},d(Wt,kt({},S))),d("g",{transform:"translate(".concat(-A/2," ").concat(0,")")},U,I),q)},Lt=function(t){t.categoryID;var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,a=t.textPadding,l=void 0===a?4:a,s=t.textFill,_=void 0===s?"#287EC4":s,c=t.textboxFill,h=void 0===c?"white":c,u=t.textboxStroke,f=void 0===u?"#CCCCCC":u,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,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,T=t.subText,P=void 0===T?{}:T,O=t.showLabel,E=void 0===O||O,A=t.noLabelRadius,D=void 0===A?5:A,H=t.iconBorderWidth,M=void 0===H?1:H,L=t.iconBorderColor,I=void 0===L?"#333":L,U=t.iconBackgroundColor,z=void 0===U?"#fff":U,N=t.iconFontColor,j=void 0===N?"#000":N,V=t.iconFontSize,q=void 0===V?20:V,B=t.iconFontFamily,G=void 0===B?"FontAwesome":B,X=t.shapeOffsetX,Y=void 0===X?0:X,$=t.shapeOffsetY,J=void 0===$?0:$,Z=t.iconOffsetX,Q=void 0===Z?0:Z,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,it=void 0===nt?4:nt,ot=t.iconText,rt=void 0===ot?"?":ot,at=t.shapeRendering,lt=void 0===at?"auto":at;W=kt({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),P=kt({text:"",fill:"white",textFill:"#555555"},P);var st=K((function(){return e.Utility.textSize(i,y,r,!1).width}),[i,y,r]),_t=0;""!==i&&(_t=st+2*l+2*v);var ct=_t+m,ht=ct-_t/2,ut=r+2*m+2*v,dt=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),ft=[],pt=ct;F.forEach((function(t,e){var n,i=t.imageChar,o=null!==(n=t.height)&&void 0!==n?n:ut,r=(pt+=dt[e]+m)-dt[e]/2;ft.push(d("g",{key:e,class:"vertex3-anno","data-anno":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},d(Wt,kt({},t,{shape:"rectangle",width:dt[e],height:o,imageChar:i,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(ct+=m*(F.length-1));var vt=[];C.forEach((function(t,e){var n,i=t.shapeOffsetX,o=t.shapeOffsetY;vt.push(d("g",{key:e,class:"vertex3-iconAnno","data-anno":JSON.stringify(t),transform:"translate(".concat(i," ").concat(o,")")},d(Wt,kt({},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 gt=d("g",{transform:"translate(".concat(ht," ").concat(0,")")},E&&""!==i?d(Dt,{text:i,height:r,padding:l,strokeWidth:v,stroke:f,fill:h,textFill:_,fontFamily:y,cornerRadius:S}):d("circle",{r:D,stroke:f,fill:_})),yt=ut+2*m,xt=""===P.text?null:d("g",{transform:"translate(".concat(0," ").concat(yt,")")},d(Dt,kt({fill:P.fill||"#FFFFFF",textFill:P.textFill||_},P,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:y,cornerRadius:S})));return d("g",null,d("g",{transform:"translate(".concat(Y," ").concat(J,")")},d(Wt,kt({},W,{strokeWidth:M,shape:"circle",height:q,fill:z,stroke:I,imageFontFamily:G,imageChar:rt,imageCharFill:j,padding:it,xOffset:Q,yOffset:et,cornerRadius:S,shapeRendering:lt})),vt),d("g",{transform:"translate(".concat(-ct/2," ").concat(0,")")},gt,ft),xt)};t.Annotations=Ht,t.BUILD_VERSION="2.104.1",t.CentroidVertex3=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,s=void 0===l?10:l,_=t.textFill,c=void 0===_?"#287EC4":_,h=t.textboxFill,u=void 0===h?"white":h,f=t.textboxStroke,p=void 0===f?"#CCCCCC":f,v=t.textboxStrokeWidth,g=void 0===v?1:v,y=t.textFontFamily,x=void 0===y?"Verdana":y,m=t.annotationGutter,k=void 0===m?2:m,F=t.annotations,b=void 0===F?[]:F,C=t.cornerRadius,w=t.icon,S=void 0===w?{}:w,R=t.subText,W=void 0===R?{}:R;return S=kt({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},S),W=kt({text:"",fill:"transparent",textFill:"#555555"},W),d(Mt,kt({},{categoryID:n,text:o,textHeight:a,textPadding:s,textFill:c,textboxFill:u,textboxStroke:p,textboxStrokeWidth:g,textFontFamily:x,annotationGutter:k,annotations:b,cornerRadius:C,icon:S,subText:W},{icon:S,subText:W}))},t.CentroidVertex4=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,s=void 0===l?10:l,_=t.textFill,c=void 0===_?"#287EC4":_,h=t.textboxFill,u=void 0===h?"white":h,f=t.textboxStroke,p=void 0===f?"#CCCCCC":f,v=t.textboxStrokeWidth,g=void 0===v?1:v,y=t.textFontFamily,x=void 0===y?"Verdana":y,m=t.annotationGutter,k=void 0===m?2:m,F=t.annotations,b=void 0===F?[]:F,C=t.iconAnnotations,w=void 0===C?[]:C,S=t.cornerRadius,R=t.icon,W=void 0===R?{}:R,T=t.subText,P=void 0===T?{}:T,O=t.showLabel,E=void 0===O||O,A=t.noLabelRadius,D=void 0===A?5:A,H=t.iconBorderWidth,M=void 0===H?1:H,L=t.iconBorderColor,I=void 0===L?"#333":L,U=t.iconBackgroundColor,z=void 0===U?"#fff":U,N=t.iconFontColor,j=void 0===N?"#000":N,V=t.iconFontSize,q=void 0===V?20:V,B=t.iconFontFamily,G=void 0===B?"FontAwesome":B,X=t.shapeOffsetX,Y=void 0===X?0:X,K=t.shapeOffsetY,$=void 0===K?0:K,J=t.iconOffsetX,Z=void 0===J?0:J,Q=t.iconOffsetY,tt=void 0===Q?0:Q,et=t.iconPadding,nt=void 0===et?4:et,it=t.iconText,ot=void 0===it?"?":it,rt=t.shapeRendering,at=void 0===rt?"auto":rt;return W=kt({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},W),P=kt({text:"",fill:"transparent",textFill:"#555555"},P),d(Lt,kt({},{categoryID:n,text:o,textHeight:a,textPadding:s,textFill:c,textboxFill:u,textboxStroke:p,textboxStrokeWidth:g,textFontFamily:x,annotationGutter:k,annotations:b,iconAnnotations:w,cornerRadius:S,icon:W,subText:P,showLabel:E,noLabelRadius:D,iconBorderWidth:M,iconBorderColor:I,iconBackgroundColor:z,iconFontColor:j,iconFontSize:q,iconFontFamily:G,shapeOffsetX:Y,shapeOffsetY:$,iconOffsetX:Z,iconOffsetY:tt,iconPadding:nt,iconText:ot,shapeRendering:at},{icon:W,subText:P}))},t.Circle=Ct,t.Edge=function(t){var e=t.points,n=void 0===e?[]:e,i=t.curveDepth,o=void 0===i?16:i,r=t.stroke;return d("path",{stroke:void 0===r?"black":r,"stroke-dasharray":t.strokeDasharray,d:K((function(){return gt(function(t,e){if(2===t.length&&e){var n=t[0][0]-t[1][0],i=t[0][1]-t[1][1];if(Math.sqrt(n*n+i*i)){var o=(t[0][0]+t[1][0])/2-i*e/100,r=(t[0][1]+t[1][1])/2+n*e/100;return[t[0],[o,r],t[1]]}}return t}(n,o))}),[o,n])})},t.HTMLAdapter=Pt,t.Icon=Wt,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,i=t.text,o=t.height,r=void 0===o?12:o,a=t.width,l=void 0===a?12:a,s=t.fontFamily,_=void 0===s?"Verdana":s,c=t.fontSize,h=void 0===c?10:c,u=t.padding,f=void 0===u?3:u,v=t.fill,g=void 0===v?"whitesmoke":v,y=t.stroke,x=void 0===y?"lightgray":y,m=t.textFill,k=void 0===m?"black":m,F=t.strokeWidth,b=void 0===F?1:F,C=t.cornerRadius,w=void 0===C?0:C;return t.onSizeUpdate,d(p,null,d(St,{width:l,height:r,fill:g,stroke:x,strokeWidth:b,cornerRadius:w}),d("g",{transform:"translate(".concat(-l/2+f," ").concat(-r/2+f,")")},d(Wt,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:g,imageCharFill:k})),d("g",{transform:"translate(".concat(-l/2+2*f+r," ").concat(-r/2+f,")")},d(Et,{text:i,fontFamily:_,height:h,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return d("g",{key:t.id,id:t.id},d(Wt,kt({},t)))}));return d(p,null,n)},t.ImageChar=yt,t.LabelledRect=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.width,r=void 0===o?12:o,a=t.fontFamily,l=void 0===a?"Verdana":a,s=t.fontSize,_=void 0===s?10:s,c=t.padding,h=void 0===c?3:c,u=t.fill,f=void 0===u?"whitesmoke":u,v=t.stroke,g=void 0===v?"lightgray":v,y=t.textFill,x=void 0===y?"black":y,m=t.strokeWidth,k=void 0===m?1:m,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,d(p,null,d(St,{width:r,height:i,fill:f,stroke:g,strokeWidth:k,cornerRadius:b}),d("g",{transform:"translate(".concat(-r/2+h," ").concat(-i/2+h,")")},d(Et,{text:e,fontFamily:l,height:_,fill:x,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.51.0",t.React=it,t.Rectangle=St,t.SVGAdapter=Ot,t.Shape=Rt,t.Square=wt,t.Subgraph=function(t){var n=t.text,i=t.width,o=void 0===i?100:i,r=t.height,a=void 0===r?100:r,l=t.fill,s=void 0===l?"transparent":l,_=t.stroke,c=void 0===_?"black":_,h=t.fontHeight,u=void 0===h?12:h,f=t.fontFamily,v=e.Utility.textSize(n,f,u,!1);return d(p,null,d(St,{width:o,height:a,fill:s,stroke:c}),d("g",{transform:"translate(".concat((-o+v.width)/2+4," ").concat((-a+v.height)/2+4,")")},d(At,{height:u,text:n,fontFamily:f})))},t.Text=At,t.TextBox=Dt,t.TextLine=Et,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,s=void 0===l?4:l,_=t.icon,c=void 0===_?{}:_,h=t.annotationsHeight,u=void 0===h?12:h,f=t.annotationIDs,p=void 0===f?[]:f,v=t.textFill,g=t.textboxFill,y=t.textboxStroke,x=t.textFontFamily,m=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=G(0),C=b[0],w=b[1],S=G(0),R=S[0],W=S[1];Y((function(){m&&m({width:0,height:0})}),[C,R,m]);var T=C;T+=4;var P=-(2*(c=kt({imageChar:"fa-question",height:32,fill:"transparent"},c)).height/6+a+8)/2,O=c.height/3+R/2+s,E=c.height/3+R+s+u/3;F||(P+=(a+8)/2,E-=R+s);var A=$((function(t){w(t.width),W(t.height)}),[]),D=F?d("g",{transform:"translate(0 ".concat(O,")")},d(Dt,{text:o,height:a,padding:s,onSizeUpdate:A,textFill:v,fill:g,stroke:y,fontFamily:x})):void 0;return n?d("g",{transform:"translate(0 ".concat(P,")")},d("use",{href:"#"+n}),D,d(Ht,{x:T/2,y:E,annotationIDs:p})):d("g",{transform:"translate(0 ".concat(P,")")},d(Wt,kt({},c)),D)},t.Vertex2=function(t){var n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,a=t.textHeight,l=void 0===a?12:a,s=t.textPadding,_=void 0===s?4:s,c=t.icon,h=void 0===c?{}:c,u=t.textFill,f=void 0===u?"black":u,v=t.textboxFill,g=void 0===v?"white":v,y=t.textboxStroke,x=void 0===y?"black":y,m=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,C=void 0===b?[]:b;h=kt({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},h);var w=l+2*_,S=K((function(){return e.Utility.textSize(r,m,l,!1)}),[r,m,l]).width,R=F,W=w/2,T=-(2*h.height/6+l+8)/2,P=-h.height/2,O=Math.ceil(S/2+_),E=W-h.height/2,A=R/2,D=W;return i?d("g",{transform:"translate(".concat(0," ").concat(T,")")},d("g",{transform:"translate(".concat(P," ").concat(0,")")},d("use",{href:"#"+i})),d("g",{transform:"translate(".concat(O," ").concat(E,")")},d(Dt,{text:r,height:l,padding:_,strokeWidth:1,stroke:x,fill:g,textFill:f,fontFamily:m})),d(Ht,{x:A,y:D,annotationIDs:C,stepSize:R})):d(p,null,d("g",{transform:"translate(".concat(P," ").concat(0,")scale(1.0002)")},d(Wt,kt({},h,{shape:"square"}))),d("g",{transform:"translate(".concat(O," ").concat(E,")scale(1.0002)")},d(Dt,{text:r,height:l,padding:_,stroke:x,fill:g})))},t.Vertex3=Mt,t.Vertex4=Lt,t.render=Tt,t.svgRender=function(t,e,n,i){D(d("svg",null,d(t,e)),n,i)},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,i,o,r,a,l={},_=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(t,e){for(var n in e)t[n]=e[n];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function u(t,e,i){var o,r,a,l={};for(a in e)"key"==a?o=e[a]:"ref"==a?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return d(t,l,o,r,null)}function d(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?++o:a};return null==a&&null!=i.vnode&&i.vnode(l),l}function f(t){return t.children}function p(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(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?v(t):null}function g(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 g(t)}}function y(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!x.__r++||a!==i.debounceRendering)&&((a=i.debounceRendering)||setTimeout)(x)}function x(){for(var t;x.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,i,o,r,a;t.__d&&(r=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(i=c({},o)).__v=o.__v+1,R(a,o,i,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[r]:null,n,null==r?v(o):r,o.__h),W(n,o),o.__e!=r&&g(o)))}))}function m(t,e,n,i,o,r,a,s,c,h){var u,p,g,y,x,m,b,C=i&&i.__k||_,w=C.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(y=n.__k[u]=null==(y=e[u])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?d(null,y,null,null,y):Array.isArray(y)?d(f,{children:y},null,null,null):y.__b>0?d(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(g=C[u])||g&&y.key==g.key&&y.type===g.type)C[u]=void 0;else for(p=0;p<w;p++){if((g=C[p])&&y.key==g.key&&y.type===g.type){C[p]=void 0;break}g=null}R(t,y,g=g||l,o,r,a,s,c,h),x=y.__e,(p=y.ref)&&g.ref!=p&&(b||(b=[]),g.ref&&b.push(g.ref,null,y),b.push(p,y.__c||x,y)),null!=x?(null==m&&(m=x),"function"==typeof y.type&&y.__k===g.__k?y.__d=c=k(y,c,t):c=F(t,y,g,C,x,c),"function"==typeof n.type&&(n.__d=c)):c&&g.__e==c&&c.parentNode!=t&&(c=v(g))}for(n.__e=m,u=w;u--;)null!=C[u]&&("function"==typeof n.type&&null!=C[u].__e&&C[u].__e==n.__d&&(n.__d=v(i,u+1)),O(C[u],C[u]));if(b)for(u=0;u<b.length;u++)E(b[u],b[++u],b[++u])}function k(t,e,n){for(var i,o=t.__k,r=0;o&&r<o.length;r++)(i=o[r])&&(i.__=t,e="function"==typeof i.type?k(i,e,n):F(n,i,i,o,i.__e,e));return e}function F(t,e,n,i,o,r){var a,l,_;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=r||null==o.parentNode)t:if(null==r||r.parentNode!==t)t.appendChild(o),a=null;else{for(l=r,_=0;(l=l.nextSibling)&&_<i.length;_+=2)if(l==o)break t;t.insertBefore(o,r),a=r}return void 0!==a?a:o.nextSibling}function b(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||s.test(e)?n:n+"px"}function C(t,e,n,i,o){var r;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||b(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||b(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?i||t.addEventListener(e,r?S:w,r):t.removeEventListener(e,r?S:w,r);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function w(t){this.l[t.type+!1](i.event?i.event(t):t)}function S(t){this.l[t.type+!0](i.event?i.event(t):t)}function R(t,e,n,o,r,a,l,_,s){var h,u,d,v,g,y,x,k,F,b,C,w,S,R=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,_=e.__e=n.__e,e.__h=null,a=[_]),(h=i.__b)&&h(e);try{t:if("function"==typeof R){if(k=e.props,F=(h=R.contextType)&&o[h.__c],b=h?F?F.props.value:h.__:o,n.__c?x=(u=e.__c=n.__c).__=u.__E:("prototype"in R&&R.prototype.render?e.__c=u=new R(k,b):(e.__c=u=new p(k,b),u.constructor=R,u.render=P),F&&F.sub(u),u.props=k,u.state||(u.state={}),u.context=b,u.__n=o,d=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=R.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=c({},u.__s)),c(u.__s,R.getDerivedStateFromProps(k,u.__s))),v=u.props,g=u.state,d)null==R.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==R.getDerivedStateFromProps&&k!==v&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(k,b),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(k,u.__s,b)||e.__v===n.__v){u.props=k,u.state=u.__s,e.__v!==n.__v&&(u.__d=!1),u.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),u.__h.length&&l.push(u);break t}null!=u.componentWillUpdate&&u.componentWillUpdate(k,u.__s,b),null!=u.componentDidUpdate&&u.__h.push((function(){u.componentDidUpdate(v,g,y)}))}if(u.context=b,u.props=k,u.__v=e,u.__P=t,C=i.__r,w=0,"prototype"in R&&R.prototype.render)u.state=u.__s,u.__d=!1,C&&C(e),h=u.render(u.props,u.state,u.context);else do{u.__d=!1,C&&C(e),h=u.render(u.props,u.state,u.context),u.state=u.__s}while(u.__d&&++w<25);u.state=u.__s,null!=u.getChildContext&&(o=c(c({},o),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(y=u.getSnapshotBeforeUpdate(v,g)),S=null!=h&&h.type===f&&null==h.key?h.props.children:h,m(t,Array.isArray(S)?S:[S],e,n,o,r,a,l,_,s),u.base=e.__e,e.__h=null,u.__h.length&&l.push(u),x&&(u.__E=u.__=null),u.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=T(n.__e,e,n,o,r,a,l,s);(h=i.diffed)&&h(e)}catch(t){e.__v=null,(s||null!=a)&&(e.__e=_,e.__h=!!s,a[a.indexOf(_)]=null),i.__e(t,e,n)}}function W(t,e){i.__c&&i.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){i.__e(t,e.__v)}}))}function T(t,e,i,o,r,a,_,s){var c,u,d,f=i.props,p=e.props,g=e.type,y=0;if("svg"===g&&(r=!0),null!=a)for(;y<a.length;y++)if((c=a[y])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){t=c,a[y]=null;break}if(null==t){if(null===g)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),a=null,s=!1}if(null===g)f===p||s&&t.data===p||(t.data=p);else{if(a=a&&n.call(t.childNodes),u=(f=i.props||l).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!s){if(null!=a)for(f={},y=0;y<t.attributes.length;y++)f[t.attributes[y].name]=t.attributes[y].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(function(t,e,n,i,o){var r;for(r in n)"children"===r||"key"===r||r in e||C(t,r,null,n[r],i);for(r in e)o&&"function"!=typeof e[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===e[r]||C(t,r,e[r],n[r],i)}(t,p,f,r,s),d)e.__k=[];else if(y=e.props.children,m(t,Array.isArray(y)?y:[y],e,i,o,r&&"foreignObject"!==g,a,_,a?a[0]:i.__k&&v(i,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in p&&void 0!==(y=p.value)&&(y!==t.value||"progress"===g&&!y||"option"===g&&y!==f.value)&&C(t,"value",y,f.value,!1),"checked"in p&&void 0!==(y=p.checked)&&y!==t.checked&&C(t,"checked",y,f.checked,!1))}return t}function E(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){i.__e(t,n)}}function O(t,e,n){var o,r;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||E(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){i.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&O(o[r],e,"function"!=typeof t.type);n||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function P(t,e,n){return this.constructor(t,n)}function H(t,e,o){var r,a,_;i.__&&i.__(t,e),a=(r="function"==typeof o)?null:o&&o.__k||e.__k,_=[],R(e,t=(!r&&o||e).__k=u(f,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!r&&o?[o]:a?null:e.firstChild?n.call(e.childNodes):null,_,!r&&o?o:a?a.__e:e.firstChild,r),W(_,t)}n=_.slice,i={__e:function(t,e,n,i){for(var o,r,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,i||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},o=0,p.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof t&&(t=t(c({},n),this.props)),t&&c(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),y(this))},p.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),y(this))},p.prototype.render=f,r=[],x.__r=0;var A,D,M,N,V=0,L=[],U=[],I=i.__b,z=i.__r,j=i.diffed,q=i.__c,B=i.unmount;function G(t,e){i.__h&&i.__h(D,t,V||e),V=0;var n=D.__H||(D.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:U}),n.__[t]}function X(t){return V=1,Y(it,t)}function Y(t,e,n){var i=G(A++,2);if(i.t=t,!i.__c&&(i.__=[n?n(e):it(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],n=i.t(e,t);e!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=D,!D.u)){D.u=!0;var o=D.shouldComponentUpdate;D.shouldComponentUpdate=function(t,e,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter((function(t){return t.__c}));return(r.every((function(t){return!t.__N}))||!r.every((function(t){if(!t.__N)return!0;var e=t.__[0];return t.__=t.__N,t.__N=void 0,e===t.__[0]})))&&(!o||o.call(this,t,e,n))}}return i.__N||i.__}function K(t,e){var n=G(A++,3);!i.__s&&nt(n.__H,e)&&(n.__=t,n.i=e,D.__H.__h.push(n))}function $(t,e){var n=G(A++,7);return nt(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function J(t,e){return V=8,$((function(){return t}),e)}function Z(){for(var t;t=L.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(tt),t.__H.__h.forEach(et),t.__H.__h=[]}catch(e){t.__H.__h=[],i.__e(e,t.__v)}}i.__b=function(t){D=null,I&&I(t)},i.__r=function(t){z&&z(t),A=0;var e=(D=t.__c).__H;e&&(M===D?(e.__h=[],D.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=U,t.__N=t.i=void 0}))):(e.__h.forEach(tt),e.__h.forEach(et),e.__h=[])),M=D},i.diffed=function(t){j&&j(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==L.push(e)&&N===i.requestAnimationFrame||((N=i.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(i),Q&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);Q&&(e=requestAnimationFrame(n))})(Z)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==U&&(t.__=t.__V),t.i=void 0,t.__V=U}))),M=D=null},i.__c=function(t,e){e.some((function(t){try{t.__h.forEach(tt),t.__h=t.__h.filter((function(t){return!t.__||et(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],i.__e(n,t.__v)}})),q&&q(t,e)},i.unmount=function(t){B&&B(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{tt(t)}catch(t){e=t}})),e&&i.__e(e,n.__v))};var Q="function"==typeof requestAnimationFrame;function tt(t){var e=D,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),D=e}function et(t){var e=D;t.__c=t.__(),D=e}function nt(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function it(t,e){return"function"==typeof e?e(t):e}var ot=Object.freeze({__proto__:null,BUILD_VERSION:"2.104.2",Component:p,Fragment:f,PKG_NAME:"@hpcc-js/preact-shim",PKG_VERSION:"2.16.1",createElement:u,h:u,render:H,useCallback:J,useEffect:K,useMemo:$,useReducer:Y,useState:X}),rt=Math.PI,at=2*rt,lt=1e-6,_t=at-lt;function st(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ct(){return new st}function ht(t){return function(){return t}}function ut(t){this._context=t}function dt(t){return new ut(t)}function ft(t){return t[0]}function pt(t){return t[1]}function vt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function gt(t){this._context=t}st.prototype=ct.prototype={constructor:st,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,o,r){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(t,e,n,i,o){t=+t,e=+e,n=+n,i=+i,o=+o;var r=this._x1,a=this._y1,l=n-t,_=i-e,s=r-t,c=a-e,h=s*s+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>lt)if(Math.abs(c*l-_*s)>lt&&o){var u=n-r,d=i-a,f=l*l+_*_,p=u*u+d*d,v=Math.sqrt(f),g=Math.sqrt(h),y=o*Math.tan((rt-Math.acos((f+h-p)/(2*v*g)))/2),x=y/g,m=y/v;Math.abs(x-1)>lt&&(this._+="L"+(t+x*s)+","+(e+x*c)),this._+="A"+o+","+o+",0,0,"+ +(c*u>s*d)+","+(this._x1=t+m*l)+","+(this._y1=e+m*_)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,o,r){t=+t,e=+e,r=!!r;var a=(n=+n)*Math.cos(i),l=n*Math.sin(i),_=t+a,s=e+l,c=1^r,h=r?i-o:o-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+_+","+s:(Math.abs(this._x1-_)>lt||Math.abs(this._y1-s)>lt)&&(this._+="L"+_+","+s),n&&(h<0&&(h=h%at+at),h>_t?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-l)+"A"+n+","+n+",0,1,"+c+","+(this._x1=_)+","+(this._y1=s):h>lt&&(this._+="A"+n+","+n+",0,"+ +(h>=rt)+","+c+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var yt=function(){var t=ft,e=pt,n=ht(!0),i=null,o=dt,r=null;function a(a){var l,_,s,c=a.length,h=!1;for(null==i&&(r=o(s=ct())),l=0;l<=c;++l)!(l<c&&n(_=a[l],l,a))===h&&((h=!h)?r.lineStart():r.lineEnd()),h&&r.point(+t(_,l,a),+e(_,l,a));if(s)return r=null,s+""||null}return a.x=function(e){return arguments.length?(t="function"==typeof e?e:ht(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:ht(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:ht(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=i&&(r=o(i)),a):o},a.context=function(t){return arguments.length?(null==t?i=r=null:r=o(i=t),a):i},a}().x((function(t){return t[0]})).y((function(t){return t[1]})).curve((function(t){return new gt(t)}));var xt=function(t){var n=t.x,i=t.y,o=void 0===i?0:i,r=t.height,a=void 0===r?12:r,l=t.fill,_=t.stroke,s=t.fontFamily,c=void 0===s?"FontAwesome":s,h=t.char,d=void 0===h?"":h,f=$((function(){return"FontAwesome"===c?e.Utility.faChar(d):d}),[d,c]);return u("text",{x:n,y:o,fill:l,stroke:_,"font-family":c,"font-size":"".concat(a,"px"),"dominant-baseline":"middle",style:"text-anchor: middle;alignment-baseline:middle;"},f)},mt=function(t,e){return mt=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])},mt(t,e)};function kt(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}mt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Ft=function(){return Ft=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ft.apply(this,arguments)};function bt(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function Ct(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}var wt=function(t){var e=t.radius,n=void 0===e?32:e,i=t.fill,o=void 0===i?"navy":i,r=t.stroke,a=void 0===r?o:r,l=t.strokeWidth;return u("circle",{r:n,fill:o,stroke:a,"stroke-width":void 0===l?1:l,"shape-rendering":t.shapeRendering})},St=function(t){var e=t.radius,n=void 0===e?30:e,i=t.cornerRadius,o=void 0===i?0:i,r=t.fill,a=void 0===r?"white":r,l=t.stroke,_=t.strokeWidth;return u("rect",{x:-n,y:-n,rx:o,ry:o,width:2*n,height:2*n,fill:a,stroke:l||a,"stroke-width":void 0===_?1:_,"shape-rendering":t.shapeRendering})},Rt=function(t){var e=t.width,n=void 0===e?30:e,i=t.height,o=void 0===i?30:i,r=t.cornerRadius,a=void 0===r?0:r,l=t.fill,_=void 0===l?"white":l,s=t.stroke,c=void 0===s?"black":s,h=t.strokeWidth;return u("rect",{x:-n/2,y:-o/2,rx:a,ry:a,width:n,height:o,fill:_,stroke:c||_,"stroke-width":void 0===h?1:h,"shape-rendering":t.shapeRendering})},Wt=function(t){var e=t.shape,n=void 0===e?"circle":e,i=t.height,o=void 0===i?128:i,r=t.width,a=t.fill,l=t.stroke,_=t.strokeWidth,s=void 0===_?1:_,c=t.shapeRendering,h=t.cornerRadius;switch(n){case"square":return u(St,{radius:o/2,fill:a,stroke:l,strokeWidth:s,shapeRendering:c,cornerRadius:h});case"rectangle":return u(Rt,{width:null!=r?r:o,height:o,fill:a,stroke:l,strokeWidth:s,shapeRendering:c,cornerRadius:h});default:return u(wt,{radius:o/2,fill:a,stroke:l,strokeWidth:s,shapeRendering:c})}},Tt=function(t){var n=t.shape,i=void 0===n?"circle":n,o=t.width,r=t.height,a=void 0===r?32:r,l=t.fill,_=t.stroke,s=t.strokeWidth,c=void 0===s?0:s,h=t.imageFontFamily,d=void 0===h?"FontAwesome":h,p=t.imageChar,v=void 0===p?"":p,g=t.imageCharFill,y=void 0===g?e.Palette.textColor(l):g,x=t.padding,m=void 0===x?a/5:x,k=t.xOffset,F=void 0===k?0:k,b=t.yOffset,C=void 0===b?0:b,w=t.cornerRadius,S=t.shapeRendering;return u(f,null,u(Wt,{shape:i,width:o,height:a,fill:l,stroke:_,strokeWidth:c,shapeRendering:S,cornerRadius:w}),u(xt,{x:F,y:C,height:a-m,fontFamily:d,char:v,fill:y,"font-weight":400}))};function Et(t,e,n,i){H(u(t,e),n,i)}var Ot=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return kt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=Ft(Ft({},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),Et(this._component,this._props,e)},bt([e.publish({},"object","Properties"),Ct("design:type",Object)],n.prototype,"_props",void 0),n}(e.HTMLWidget),Pt=function(t){function n(e){var n=t.call(this)||this;return n._component=e,n._props={},n}return kt(n,t),n.prototype.props=function(t){return arguments.length?(this._props=Ft(Ft({},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),Et(this._component,this._props,e)},bt([e.publish({},"object","Properties"),Ct("design:type",Object)],n.prototype,"_props",void 0),n}(e.SVGWidget),Ht=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.anchor,r=void 0===o?"middle":o,a=t.baseline,l=void 0===a?"middle":a,_=t.fontFamily,s=void 0===_?"Verdana":_,c=t.fill,h=void 0===c?"black":c;return u("text",{"font-family":s,"font-size":"".concat(i,"px"),"text-anchor":r,"dominant-baseline":l,fill:h},e)},At=function(t){var n=t.text,i=t.height,o=void 0===i?12:i,r=t.fontFamily,a=void 0===r?"Verdana":r,l=t.fill,_=void 0===l?"black":l,s=t.onSizeUpdate,c=X(0),h=c[0],d=c[1],p=X(0),v=p[0],g=p[1];K((function(){s&&s({width:h,height:v})}),[h,v,s]);var y=$((function(){return n.split("\n")}),[n]);d($((function(){return e.Utility.textSize(y,a,o)}),[a,o,y]).width),g(y.length*(o+2)-2);var x=-v/2+o/2,m=$((function(){return y.map((function(t,e){return u("g",{key:e,transform:"translate(0 ".concat(x+e*(o+2),")")},u(Ht,{text:t,height:o,fontFamily:a,fill:_}))}))}),[_,a,o,y,x]);return u(f,null,m)},Dt=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.fontFamily,r=void 0===o?"Verdana":o,a=t.padding,l=void 0===a?4:a,_=t.fill,s=void 0===_?"whitesmoke":_,c=t.stroke,h=void 0===c?"lightgray":c,d=t.textFill,p=void 0===d?"black":d,v=t.strokeWidth,g=void 0===v?1:v,y=t.cornerRadius,x=void 0===y?0:y,m=t.onSizeUpdate,k=X(0),F=k[0],b=k[1],C=X(0),w=C[0],S=C[1];K((function(){m&&m({width:F,height:w})}),[F,w,m]);var R=J((function(t){b(t.width),S(t.height)}),[]),W=F+2*l+g,T=w+2*l+g,E=Math.floor(i/10);return u(f,null,u(Rt,{width:W,height:T,fill:s,stroke:h,strokeWidth:g,cornerRadius:x}),u("g",{transform:"translate(0 ".concat(E,")")},u(At,{text:e,fontFamily:r,height:i,fill:p,onSizeUpdate:R})))},Mt=function(t){var e=t.x,n=t.y,i=t.annotationIDs,o=void 0===i?[]:i,r=t.stepSize,a=void 0===r?-16:r,l=o.map((function(t,i){return u("g",{key:t,transform:"translate(".concat(e+i*a," ").concat(n,")")},u("use",{href:"#"+t}))}));return u(f,null,l)},Nt=function(t){t.categoryID;var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,a=t.textPadding,l=void 0===a?4:a,_=t.textFill,s=void 0===_?"#287EC4":_,c=t.textboxFill,h=void 0===c?"white":c,d=t.textboxStroke,f=void 0===d?"#CCCCCC":d,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,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?{}:R,T=t.showLabel,E=void 0===T||T,O=t.noLabelRadius,P=void 0===O?5:O;S=Ft({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},S),W=Ft({text:"",fill:"white",textFill:"#555555"},W);var H=0,A=$((function(){return e.Utility.textSize(i,y,r,!1).width}),[i,y,r]),D=0;""!==i&&(D=A+2*l+2*v);var M=(H+=D+m)-D/2,N=r+2*l+2*v,V=[];F.forEach((function(t,e){var n=t.imageChar,i=(H+=N+m)-N/2;V.push(u("g",{key:e,class:"vertex3-anno",transform:"translate(".concat(i," ").concat(0,")")},u(Tt,Ft({},t,{shape:"square",height:N,imageChar:n,imageFontFamily:t.imageFontFamily,cornerRadius:C,strokeWidth:0}))))})),F.length>0&&(H+=m*(F.length-1));var L=u("g",{transform:"translate(".concat(M," ").concat(0,")")},E&&""!==i?u(Dt,{text:i,height:r,padding:l,strokeWidth:v,stroke:f,fill:h,textFill:s,fontFamily:y,cornerRadius:C}):u("circle",{r:P,stroke:f,fill:s})),U=S.height||20,I=S.strokeWidth||0,z=0,j=N+2*m;""!==i||V.length>0?z=-U/2-I-N/2-2*m:""!==W.text&&(j=U/2+I+2*m);var q=""===W.text?null:u("g",{transform:"translate(".concat(0," ").concat(j,")")},u(Dt,Ft({fill:W.fill||"#FFFFFF",textFill:W.textFill||s},W,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:y,cornerRadius:C})));return u("g",null,u("g",{transform:"translate(".concat(0," ").concat(z,")")},u(Tt,Ft({},S))),u("g",{transform:"translate(".concat(-H/2," ").concat(0,")")},L,V),q)},Vt=function(t){t.categoryID;var n=t.text,i=void 0===n?"":n,o=t.textHeight,r=void 0===o?10:o,a=t.textPadding,l=void 0===a?4:a,_=t.textFill,s=void 0===_?"#287EC4":_,c=t.textboxFill,h=void 0===c?"white":c,d=t.textboxStroke,f=void 0===d?"#CCCCCC":d,p=t.textboxStrokeWidth,v=void 0===p?1:p,g=t.textFontFamily,y=void 0===g?"Verdana":g,x=t.annotationGutter,m=void 0===x?2:x,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,T=t.subText,E=void 0===T?{}:T,O=t.showLabel,P=void 0===O||O,H=t.noLabelRadius,A=void 0===H?5:H,D=t.iconBorderWidth,M=void 0===D?1:D,N=t.iconBorderColor,V=void 0===N?"#333":N,L=t.iconBackgroundColor,U=void 0===L?"#fff":L,I=t.iconFontColor,z=void 0===I?"#000":I,j=t.iconFontSize,q=void 0===j?20:j,B=t.iconFontFamily,G=void 0===B?"FontAwesome":B,X=t.shapeOffsetX,Y=void 0===X?0:X,K=t.shapeOffsetY,J=void 0===K?0:K,Z=t.iconOffsetX,Q=void 0===Z?0:Z,tt=t.iconOffsetY,et=void 0===tt?0:tt,nt=t.iconPadding,it=void 0===nt?4:nt,ot=t.iconText,rt=void 0===ot?"?":ot,at=t.shapeRendering,lt=void 0===at?"auto":at;W=Ft({height:50,imageChar:"?",imageFontFamily:"FontAwesome",imageCharFill:"#555555",fill:"transparent",strokeWidth:0},W),E=Ft({text:"",fill:"white",textFill:"#555555"},E);var _t=$((function(){return e.Utility.textSize(i,y,r,!1).width}),[i,y,r]),st=0;""!==i&&(st=_t+2*l+2*v);var ct=st+m,ht=ct-st/2,ut=r+2*m+2*v,dt=F.map((function(t,n){return e.Utility.textSize(t.imageChar,t.imageFontFamily,t.height,!1).width})),ft=[],pt=ct;F.forEach((function(t,e){var n,i=t.imageChar,o=null!==(n=t.height)&&void 0!==n?n:ut,r=(pt+=dt[e]+m)-dt[e]/2;ft.push(u("g",{key:e,class:"vertex3-anno","data-anno":JSON.stringify(t),transform:"translate(".concat(r," ").concat(0,")")},u(Tt,Ft({},t,{shape:"rectangle",width:dt[e],height:o,imageChar:i,imageFontFamily:t.imageFontFamily,cornerRadius:S,strokeWidth:0}))))})),F.length>0&&(ct+=m*(F.length-1));var vt=[];C.forEach((function(t,e){var n,i=t.shapeOffsetX,o=t.shapeOffsetY;vt.push(u("g",{key:e,class:"vertex3-iconAnno","data-anno":JSON.stringify(t),transform:"translate(".concat(i," ").concat(o,")")},u(Tt,Ft({},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 gt=u("g",{transform:"translate(".concat(ht," ").concat(0,")")},P&&""!==i?u(Dt,{text:i,height:r,padding:l,strokeWidth:v,stroke:f,fill:h,textFill:s,fontFamily:y,cornerRadius:S}):u("circle",{r:A,stroke:f,fill:s})),yt=ut+2*m,xt=""===E.text?null:u("g",{transform:"translate(".concat(0," ").concat(yt,")")},u(Dt,Ft({fill:E.fill||"#FFFFFF",textFill:E.textFill||s},E,{height:r,padding:l,strokeWidth:0,stroke:f,fontFamily:y,cornerRadius:S})));return u("g",null,u("g",{transform:"translate(".concat(Y," ").concat(J,")")},u(Tt,Ft({},W,{strokeWidth:M,shape:"circle",height:q,fill:U,stroke:V,imageFontFamily:G,imageChar:rt,imageCharFill:z,padding:it,xOffset:Q,yOffset:et,cornerRadius:S,shapeRendering:lt})),vt),u("g",{transform:"translate(".concat(-ct/2," ").concat(0,")")},gt,ft),xt)};t.Annotations=Mt,t.BUILD_VERSION="2.104.2",t.CentroidVertex3=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,_=void 0===l?10:l,s=t.textFill,c=void 0===s?"#287EC4":s,h=t.textboxFill,d=void 0===h?"white":h,f=t.textboxStroke,p=void 0===f?"#CCCCCC":f,v=t.textboxStrokeWidth,g=void 0===v?1:v,y=t.textFontFamily,x=void 0===y?"Verdana":y,m=t.annotationGutter,k=void 0===m?2:m,F=t.annotations,b=void 0===F?[]:F,C=t.cornerRadius,w=t.icon,S=void 0===w?{}:w,R=t.subText,W=void 0===R?{}:R;return S=Ft({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},S),W=Ft({text:"",fill:"transparent",textFill:"#555555"},W),u(Nt,Ft({},{categoryID:n,text:o,textHeight:a,textPadding:_,textFill:c,textboxFill:d,textboxStroke:p,textboxStrokeWidth:g,textFontFamily:x,annotationGutter:k,annotations:b,cornerRadius:C,icon:S,subText:W},{icon:S,subText:W}))},t.CentroidVertex4=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,_=void 0===l?10:l,s=t.textFill,c=void 0===s?"#287EC4":s,h=t.textboxFill,d=void 0===h?"white":h,f=t.textboxStroke,p=void 0===f?"#CCCCCC":f,v=t.textboxStrokeWidth,g=void 0===v?1:v,y=t.textFontFamily,x=void 0===y?"Verdana":y,m=t.annotationGutter,k=void 0===m?2:m,F=t.annotations,b=void 0===F?[]:F,C=t.iconAnnotations,w=void 0===C?[]:C,S=t.cornerRadius,R=t.icon,W=void 0===R?{}:R,T=t.subText,E=void 0===T?{}:T,O=t.showLabel,P=void 0===O||O,H=t.noLabelRadius,A=void 0===H?5:H,D=t.iconBorderWidth,M=void 0===D?1:D,N=t.iconBorderColor,V=void 0===N?"#333":N,L=t.iconBackgroundColor,U=void 0===L?"#fff":L,I=t.iconFontColor,z=void 0===I?"#000":I,j=t.iconFontSize,q=void 0===j?20:j,B=t.iconFontFamily,G=void 0===B?"FontAwesome":B,X=t.shapeOffsetX,Y=void 0===X?0:X,K=t.shapeOffsetY,$=void 0===K?0:K,J=t.iconOffsetX,Z=void 0===J?0:J,Q=t.iconOffsetY,tt=void 0===Q?0:Q,et=t.iconPadding,nt=void 0===et?4:et,it=t.iconText,ot=void 0===it?"?":it,rt=t.shapeRendering,at=void 0===rt?"auto":rt;return W=Ft({height:91,padding:40,imageCharFill:"#555555",imageFontFamily:"FontAwesome",fill:"#FFCC33",stroke:"#DFDFDF",imageChar:"?",strokeWidth:4,yOffset:-15},W),E=Ft({text:"",fill:"transparent",textFill:"#555555"},E),u(Vt,Ft({},{categoryID:n,text:o,textHeight:a,textPadding:_,textFill:c,textboxFill:d,textboxStroke:p,textboxStrokeWidth:g,textFontFamily:x,annotationGutter:k,annotations:b,iconAnnotations:w,cornerRadius:S,icon:W,subText:E,showLabel:P,noLabelRadius:A,iconBorderWidth:M,iconBorderColor:V,iconBackgroundColor:U,iconFontColor:z,iconFontSize:q,iconFontFamily:G,shapeOffsetX:Y,shapeOffsetY:$,iconOffsetX:Z,iconOffsetY:tt,iconPadding:nt,iconText:ot,shapeRendering:at},{icon:W,subText:E}))},t.Circle=wt,t.Edge=function(t){var e=t.points,n=void 0===e?[]:e,i=t.curveDepth,o=void 0===i?16:i,r=t.stroke;return u("path",{stroke:void 0===r?"black":r,"stroke-dasharray":t.strokeDasharray,d:$((function(){return yt(function(t,e){if(2===t.length&&e){var n=t[0][0]-t[1][0],i=t[0][1]-t[1][1];if(Math.sqrt(n*n+i*i)){var o=(t[0][0]+t[1][0])/2-i*e/100,r=(t[0][1]+t[1][1])/2+n*e/100;return[t[0],[o,r],t[1]]}}return t}(n,o))}),[o,n])})},t.HTMLAdapter=Ot,t.Icon=Tt,t.IconLabelledRect=function(t){var e=t.icon,n=t.iconFontFamily,i=t.text,o=t.height,r=void 0===o?12:o,a=t.width,l=void 0===a?12:a,_=t.fontFamily,s=void 0===_?"Verdana":_,c=t.fontSize,h=void 0===c?10:c,d=t.padding,p=void 0===d?3:d,v=t.fill,g=void 0===v?"whitesmoke":v,y=t.stroke,x=void 0===y?"lightgray":y,m=t.textFill,k=void 0===m?"black":m,F=t.strokeWidth,b=void 0===F?1:F,C=t.cornerRadius,w=void 0===C?0:C;return t.onSizeUpdate,u(f,null,u(Rt,{width:l,height:r,fill:g,stroke:x,strokeWidth:b,cornerRadius:w}),u("g",{transform:"translate(".concat(-l/2+p," ").concat(-r/2+p,")")},u(Tt,{shape:"square",imageFontFamily:n,imageChar:e,height:r,fill:g,imageCharFill:k})),u("g",{transform:"translate(".concat(-l/2+2*p+r," ").concat(-r/2+p,")")},u(Ht,{text:i,fontFamily:s,height:h,fill:k,anchor:"start",baseline:"hanging"})))},t.Icons=function(t){var e=t.icons,n=(void 0===e?[]:e).map((function(t){return u("g",{key:t.id,id:t.id},u(Tt,Ft({},t)))}));return u(f,null,n)},t.ImageChar=xt,t.LabelledRect=function(t){var e=t.text,n=t.height,i=void 0===n?12:n,o=t.width,r=void 0===o?12:o,a=t.fontFamily,l=void 0===a?"Verdana":a,_=t.fontSize,s=void 0===_?10:_,c=t.padding,h=void 0===c?3:c,d=t.fill,p=void 0===d?"whitesmoke":d,v=t.stroke,g=void 0===v?"lightgray":v,y=t.textFill,x=void 0===y?"black":y,m=t.strokeWidth,k=void 0===m?1:m,F=t.cornerRadius,b=void 0===F?0:F;return t.onSizeUpdate,u(f,null,u(Rt,{width:r,height:i,fill:p,stroke:g,strokeWidth:k,cornerRadius:b}),u("g",{transform:"translate(".concat(-r/2+h," ").concat(-i/2+h,")")},u(Ht,{text:e,fontFamily:l,height:s,fill:x,anchor:"start",baseline:"hanging"})))},t.PKG_NAME="@hpcc-js/react",t.PKG_VERSION="2.51.1",t.React=ot,t.Rectangle=Rt,t.SVGAdapter=Pt,t.Shape=Wt,t.Square=St,t.Subgraph=function(t){var n=t.text,i=t.width,o=void 0===i?100:i,r=t.height,a=void 0===r?100:r,l=t.fill,_=void 0===l?"transparent":l,s=t.stroke,c=void 0===s?"black":s,h=t.fontHeight,d=void 0===h?12:h,p=t.fontFamily,v=e.Utility.textSize(n,p,d,!1);return u(f,null,u(Rt,{width:o,height:a,fill:_,stroke:c}),u("g",{transform:"translate(".concat((-o+v.width)/2+4," ").concat((-a+v.height)/2+4,")")},u(At,{height:d,text:n,fontFamily:p})))},t.Text=At,t.TextBox=Dt,t.TextLine=Ht,t.Vertex=function(t){var e=t.categoryID,n=void 0===e?"":e,i=t.text,o=void 0===i?"":i,r=t.textHeight,a=void 0===r?12:r,l=t.textPadding,_=void 0===l?4:l,s=t.icon,c=void 0===s?{}:s,h=t.annotationsHeight,d=void 0===h?12:h,f=t.annotationIDs,p=void 0===f?[]:f,v=t.textFill,g=t.textboxFill,y=t.textboxStroke,x=t.textFontFamily,m=t.onSizeUpdate,k=t.showLabel,F=void 0===k||k,b=X(0),C=b[0],w=b[1],S=X(0),R=S[0],W=S[1];K((function(){m&&m({width:0,height:0})}),[C,R,m]);var T=C;T+=4;var E=-(2*(c=Ft({imageChar:"fa-question",height:32,fill:"transparent"},c)).height/6+a+8)/2,O=c.height/3+R/2+_,P=c.height/3+R+_+d/3;F||(E+=(a+8)/2,P-=R+_);var H=J((function(t){w(t.width),W(t.height)}),[]),A=F?u("g",{transform:"translate(0 ".concat(O,")")},u(Dt,{text:o,height:a,padding:_,onSizeUpdate:H,textFill:v,fill:g,stroke:y,fontFamily:x})):void 0;return n?u("g",{transform:"translate(0 ".concat(E,")")},u("use",{href:"#"+n}),A,u(Mt,{x:T/2,y:P,annotationIDs:p})):u("g",{transform:"translate(0 ".concat(E,")")},u(Tt,Ft({},c)),A)},t.Vertex2=function(t){var n=t.categoryID,i=void 0===n?"":n,o=t.text,r=void 0===o?"":o,a=t.textHeight,l=void 0===a?12:a,_=t.textPadding,s=void 0===_?4:_,c=t.icon,h=void 0===c?{}:c,d=t.textFill,p=void 0===d?"black":d,v=t.textboxFill,g=void 0===v?"white":v,y=t.textboxStroke,x=void 0===y?"black":y,m=t.textFontFamily,k=t.annotationsHeight,F=void 0===k?12:k,b=t.annotationIDs,C=void 0===b?[]:b;h=Ft({imageChar:"fa-question",imageCharFill:"white",height:32,fill:"black",shape:"square"},h);var w=l+2*s,S=$((function(){return e.Utility.textSize(r,m,l,!1)}),[r,m,l]).width,R=F,W=w/2,T=-(2*h.height/6+l+8)/2,E=-h.height/2,O=Math.ceil(S/2+s),P=W-h.height/2,H=R/2,A=W;return i?u("g",{transform:"translate(".concat(0," ").concat(T,")")},u("g",{transform:"translate(".concat(E," ").concat(0,")")},u("use",{href:"#"+i})),u("g",{transform:"translate(".concat(O," ").concat(P,")")},u(Dt,{text:r,height:l,padding:s,strokeWidth:1,stroke:x,fill:g,textFill:p,fontFamily:m})),u(Mt,{x:H,y:A,annotationIDs:C,stepSize:R})):u(f,null,u("g",{transform:"translate(".concat(E," ").concat(0,")scale(1.0002)")},u(Tt,Ft({},h,{shape:"square"}))),u("g",{transform:"translate(".concat(O," ").concat(P,")scale(1.0002)")},u(Dt,{text:r,height:l,padding:s,stroke:x,fill:g})))},t.Vertex3=Nt,t.Vertex4=Vt,t.render=Et,t.svgRender=function(t,e,n,i){H(u("svg",null,u(t,e)),n,i)},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.min.js.map |
{ | ||
"name": "@hpcc-js/react", | ||
"version": "2.51.0", | ||
"version": "2.51.1", | ||
"description": "hpcc-js - Viz React", | ||
@@ -38,11 +38,11 @@ "main": "dist/index.js", | ||
"docs": "typedoc --options tdoptions.json .", | ||
"update": "npx npm-check-updates -u -t minor" | ||
"update": "npx --yes npm-check-updates -u -t minor" | ||
}, | ||
"dependencies": { | ||
"@hpcc-js/common": "^2.71.0", | ||
"@hpcc-js/preact-shim": "^2.16.0" | ||
"@hpcc-js/common": "^2.71.1", | ||
"@hpcc-js/preact-shim": "^2.16.1" | ||
}, | ||
"devDependencies": { | ||
"@hpcc-js/bundle": "^2.11.1", | ||
"tslib": "2.3.1" | ||
"@hpcc-js/bundle": "^2.11.2", | ||
"tslib": "2.4.0" | ||
}, | ||
@@ -60,3 +60,3 @@ "repository": { | ||
"homepage": "https://github.com/hpcc-systems/Visualization", | ||
"gitHead": "f7b7633dbb01360f18424eb1c9226424696ea920" | ||
"gitHead": "e2724f0154c334e8d4cb5a29533b70131ab58938" | ||
} |
export const PKG_NAME = "@hpcc-js/react"; | ||
export const PKG_VERSION = "2.51.0"; | ||
export const BUILD_VERSION = "2.104.1"; | ||
export const PKG_VERSION = "2.51.1"; | ||
export const BUILD_VERSION = "2.104.2"; |
export declare const PKG_NAME = "@hpcc-js/react"; | ||
export declare const PKG_VERSION = "2.51.0"; | ||
export declare const BUILD_VERSION = "2.104.1"; | ||
export declare const PKG_VERSION = "2.51.1"; | ||
export declare const BUILD_VERSION = "2.104.2"; | ||
//# sourceMappingURL=__package__.d.ts.map |
export declare const PKG_NAME = "@hpcc-js/react"; | ||
export declare const PKG_VERSION = "2.51.0"; | ||
export declare const BUILD_VERSION = "2.104.1"; | ||
export declare const PKG_VERSION = "2.51.1"; | ||
export declare const BUILD_VERSION = "2.104.2"; | ||
//# 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
859756
3705
Updated@hpcc-js/common@^2.71.1
Updated@hpcc-js/preact-shim@^2.16.1