@hpcc-js/preact-shim
Advanced tools
Comparing version 2.16.10 to 2.16.11
var PKG_NAME = "@hpcc-js/preact-shim"; | ||
var PKG_VERSION = "2.16.10"; | ||
var BUILD_VERSION = "2.105.5"; | ||
var PKG_VERSION = "2.16.11"; | ||
var BUILD_VERSION = "2.105.12"; | ||
var n,l$1,u$1,i$1,o$1,r$1,f$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$1:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function g(n){return n.children}function b(n,l){this.props=n,this.context=l;}function m$1(n,l){if(null==l)return n.__?m$1(n.__,n.__i+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?m$1(n):null}function w$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 w$1(n)}}function k$1(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!x$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(x$1);}function x$1(){var n,u,t,o,r,e,c,s,a;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(u=i$1.length,o=void 0,e=(r=(t=n).__v).__e,s=[],a=[],(c=t.__P)&&((o=v$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(o),F(c,o,r,t.__n,void 0!==c.ownerSVGElement,32&r.__u?[e]:null,s,null==e?m$1(r):e,!!(32&r.__u),a),o.__v=r.__v,o.__.__k[o.__i]=o,L(s,o,a),o.__e!=e&&w$1(o)),i$1.length>u&&i$1.sort(f$1));x$1.__r=0;}function C$1(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$1,b=l.length;for(u.__d=e,P(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,F(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&O(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?(d||p.__e!=e||(e=m$1(p)),e=S(y,e,n)):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function P(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,null):h$1(i)?d$1(g,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=I(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),j$1(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),j$1(o,o));}function S(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=S(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function I(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function H(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function T(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||H(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||H(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?D$1:A,o)):n.removeEventListener(l,o?D$1:A,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function A(n){if(this.l){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$1.event?l$1.event(n):n)}}function D$1(n){if(this.l)return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function F(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,w,k,x,P,S,$,I,H,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof A)try{if(k=u.props,x=(a=A.contextType)&&i[a.__c],P=a?x?x.props.value:a.__:i,t.__c?w=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(k,P):(u.__c=p=new b(k,P),p.constructor=A,p.render=z$1),x&&x.sub(p),p.props=k,p.state||(p.state={}),p.context=P,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(k,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&k!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,P),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=k,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,P),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=P,p.props=k,p.__P=n,p.__e=!1,$=l$1.__r,I=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),H=0;H<p._sb.length;H++)p.__h.push(p._sb[H]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++I<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),C$1(n,h$1(T=null!=a&&a.type===g&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),w&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=M(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function L(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)O(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function M(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,w=t.props,k=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(k);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,k.is&&k),r=null,e=!1;}if(null===x)w===k||e&&l.data===k||(l.data=k);else {if(r=r&&n.call(l.childNodes),w=t.props||c$1,!e&&null!=r)for(w={},a=0;a<l.attributes.length;a++)w[(_=l.attributes[a]).name]=_.value;for(a in w)_=w[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in k||T(l,a,null,_,o));for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||w[a]===_||T(l,a,_,w[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),C$1(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$1(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$1(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==w[a])&&T(l,a,g,w[a],!1),a="checked",void 0!==b&&b!==l[a]&&T(l,a,b,w[a],!1));}return l}function O(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function j$1(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||O(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&j$1(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function z$1(n,l,u){return this.constructor(n,u)}function N(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],F(t,u=(!o&&i||t).__k=y$1(g,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),L(f,u,e);}n=s$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),k$1(this));},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),k$1(this));},b.prototype.render=g,i$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x$1.__r=0; | ||
var n,l$1,u$1,i$1,o$1,r$1,f$1,e$1,c$1,s$1,h$1={},p$1=[],v$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y$1=Array.isArray;function d$1(n,l){for(var u in l)n[u]=l[u];return n}function w$1(n){var l=n.parentNode;l&&l.removeChild(n);}function _$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$1:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function k$1(n){return n.children}function b(n,l){this.props=n,this.context=l;}function x$1(n,l){if(null==l)return n.__?x$1(n.__,n.__i+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?x$1(n):null}function C$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 C$1(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!P.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(P);}function P(){var n,u,t,o,r,e,c,s;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(u=i$1.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x$1(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j$1(c,o,s),o.__e!=e&&C$1(o)),i$1.length>u&&i$1.sort(f$1));P.__r=0;}function S(n,l,u,t,i,o,r,f,e,c,s){var a,v,y,d,w,_=t&&t.__k||p$1,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&"boolean"!=typeof y&&"function"!=typeof y&&(v=-1===y.__i?h$1:_[y.__i]||h$1,y.__i=a,O(n,y,v,i,o,r,f,e,c,s),d=y.__e,y.ref&&v.ref!=y.ref&&(v.ref&&N(v.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||v.__k===y.__k?(e&&!e.isConnected&&(e=x$1(v)),e=I(y,e,n)):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w;}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y$1(i)?g(k$1,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=L(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x$1(o)),V(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x$1(o)),V(o,o));}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||v$1.test(l)?u:u+"px";}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=e$1,n.addEventListener(l,o?s$1:c$1,o)):n.removeEventListener(l,o?s$1:c$1,o);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=e$1++;else if(u.t<t.u)return;return t(l$1.event?l$1.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,p,v,w,_,g,m,x,C,M,P,$,I,H,L=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof L)try{if(m=u.props,x=(a=L.contextType)&&i[a.__c],C=a?x?x.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:("prototype"in L&&L.prototype.render?u.__c=h=new L(m,C):(u.__c=h=new b(m,C),h.constructor=L,h.render=q$1),x&&x.sub(h),h.props=m,h.state||(h.state={}),h.context=C,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=L.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d$1({},h.__s)),d$1(h.__s,L.getDerivedStateFromProps(m,h.__s))),v=h.props,w=h.state,h.__v=u,p)null==L.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==L.getDerivedStateFromProps&&m!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,C),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,C)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,C),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,w,_);});}if(h.context=C,h.props=m,h.__P=n,h.__e=!1,P=l$1.__r,$=0,"prototype"in L&&L.prototype.render){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[];}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(i=d$1(d$1({},i),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(_=h.getSnapshotBeforeUpdate(v,w)),S(n,y$1(H=null!=a&&a.type===k$1&&null==a.key?a.props.children:a)?H:[H],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z$1(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function j$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function z$1(l,u,t,i,o,r,f,e,c){var s,a,p,v,d,_,g,m=t.props,k=u.props,b=u.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(s=0;s<r.length;s++)if((d=r[s])&&"setAttribute"in d==!!b&&(b?d.localName===b:3===d.nodeType)){l=d,r[s]=null;break}if(null==l){if(null===b)return document.createTextNode(k);l=document.createElementNS(o,b,k.is&&k),r=null,e=!1;}if(null===b)m===k||e&&l.data===k||(l.data=k);else {if(r=r&&n.call(l.childNodes),m=t.props||h$1,!e&&null!=r)for(m={},s=0;s<l.attributes.length;s++)m[(d=l.attributes[s]).name]=d.value;for(s in m)if(d=m[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if("key"!==s&&!(s in k)){if("value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k)continue;A(l,s,null,d,o);}for(s in k)d=k[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?_=d:"checked"==s?g=d:"key"===s||e&&"function"!=typeof d||m[s]===d||A(l,s,d,m[s],o);if(a)e||p&&(a.__html===p.__html||a.__html===l.innerHTML)||(l.innerHTML=a.__html),u.__k=[];else if(p&&(l.innerHTML=""),S(l,y$1(v)?v:[v],u,t,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,r,f,r?r[0]:t.__k&&x$1(t,0),e,c),null!=r)for(s=r.length;s--;)null!=r[s]&&w$1(r[s]);e||(s="value",void 0!==_&&(_!==l[s]||"progress"===b&&!_||"option"===b&&_!==m[s])&&A(l,s,_,m[s],o),s="checked",void 0!==g&&g!==l[s]&&A(l,s,g,m[s],o));}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function V(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||w$1(n.__e),n.__c=n.__=n.__e=n.__d=void 0;}function q$1(n,l,u){return this.constructor(n,u)}function B$1(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_$1(k$1,null,[u]),r||h$1,h$1,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j$1(f,u,e);}n=p$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d$1({},this.state),"function"==typeof n&&(n=n(d$1({},u),this.props)),n&&d$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this));},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this));},b.prototype.render=k$1,i$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,e$1=0,c$1=F(!1),s$1=F(!0); | ||
var t,r,u,i,o=0,f=[],c=[],e=l$1,a=e.__b,v=e.__r,l=e.diffed,m=e.__c,s=e.unmount,d=e.__;function h(n,t){e.__h&&e.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({__V:c}),u.__[n]}function p(n){return o=1,y(D,n)}function y(n,u,i){var o=h(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return !!n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function _(n,u){var i=h(t++,3);!e.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__H.__h.push(i));}function q(n,r){var u=h(t++,7);return C(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function x(n,t){return o=8,q(function(){return n},t)}function j(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[];}catch(t){n.__H.__h=[],e.__e(t,n.__v);}}e.__b=function(n){r=null,a&&a(n);},e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),d&&d(n,t);},e.__r=function(n){v&&v(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r;},e.diffed=function(n){l&&l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===e.requestAnimationFrame||((i=e.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return !n.__||B(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],e.__e(r,n.__v);}}),m&&m(n,t);},e.unmount=function(n){s&&s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n);}catch(n){t=n;}}),r.__H=void 0,t&&e.__e(t,r.__v));};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);k&&(t=requestAnimationFrame(r));}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function B(n){var t=r;n.__c=n.__(),r=t;}function C(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return "function"==typeof t?t(n):t} | ||
export { BUILD_VERSION, b as Component, g as Fragment, PKG_NAME, PKG_VERSION, y$1 as createElement, y$1 as h, N as render, x as useCallback, _ as useEffect, q as useMemo, y as useReducer, p as useState }; | ||
export { BUILD_VERSION, b as Component, k$1 as Fragment, PKG_NAME, PKG_VERSION, _$1 as createElement, _$1 as h, B$1 as render, x as useCallback, _ as useEffect, q as useMemo, y as useReducer, p as useState }; | ||
//# sourceMappingURL=index.es6.js.map |
@@ -8,6 +8,6 @@ (function (global, factory) { | ||
var PKG_NAME = "@hpcc-js/preact-shim"; | ||
var PKG_VERSION = "2.16.10"; | ||
var BUILD_VERSION = "2.105.5"; | ||
var PKG_VERSION = "2.16.11"; | ||
var BUILD_VERSION = "2.105.12"; | ||
var n,l$1,u$1,i$1,o$1,r$1,f$1,c$1={},s$1=[],a$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h$1=Array.isArray;function v$1(n,l){for(var u in l)n[u]=l[u];return n}function p$1(n){var l=n.parentNode;l&&l.removeChild(n);}function y$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d$1(l,f,i,o,null)}function d$1(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$1:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function g(n){return n.children}function b(n,l){this.props=n,this.context=l;}function m$1(n,l){if(null==l)return n.__?m$1(n.__,n.__i+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?m$1(n):null}function w$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 w$1(n)}}function k$1(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!x$1.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(x$1);}function x$1(){var n,u,t,o,r,e,c,s,a;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(u=i$1.length,o=void 0,e=(r=(t=n).__v).__e,s=[],a=[],(c=t.__P)&&((o=v$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(o),F(c,o,r,t.__n,void 0!==c.ownerSVGElement,32&r.__u?[e]:null,s,null==e?m$1(r):e,!!(32&r.__u),a),o.__v=r.__v,o.__.__k[o.__i]=o,L(s,o,a),o.__e!=e&&w$1(o)),i$1.length>u&&i$1.sort(f$1));x$1.__r=0;}function C$1(n,l,u,t,i,o,r,f,e,a,h){var v,p,y,d,_,g=t&&t.__k||s$1,b=l.length;for(u.__d=e,P(u,l,g),e=u.__d,v=0;v<b;v++)null!=(y=u.__k[v])&&"boolean"!=typeof y&&"function"!=typeof y&&(p=-1===y.__i?c$1:g[y.__i]||c$1,y.__i=v,F(n,y,p,i,o,r,f,e,a,h),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&O(p.ref,null,y),h.push(y.ref,y.__c||d,y)),null==_&&null!=d&&(_=d),65536&y.__u||p.__k===y.__k?(d||p.__e!=e||(e=m$1(p)),e=S(y,e,n)):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=_;}function P(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?d$1(null,i,null,null,null):h$1(i)?d$1(g,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?d$1(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=I(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),j$1(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=m$1(o)),j$1(o,o));}function S(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=S(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function I(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function H(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a$1.test(l)?u:u+"px";}function T(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||H(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||H(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?D$1:A,o)):n.removeEventListener(l,o?D$1:A,o);else {if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function A(n){if(this.l){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l$1.event?l$1.event(n):n)}}function D$1(n){if(this.l)return this.l[n.type+!0](l$1.event?l$1.event(n):n)}function F(n,u,t,i,o,r,f,e,c,s){var a,p,y,d,_,m,w,k,x,P,S,$,I,H,T,A=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof A)try{if(k=u.props,x=(a=A.contextType)&&i[a.__c],P=a?x?x.props.value:a.__:i,t.__c?w=(p=u.__c=t.__c).__=p.__E:("prototype"in A&&A.prototype.render?u.__c=p=new A(k,P):(u.__c=p=new b(k,P),p.constructor=A,p.render=z$1),x&&x.sub(p),p.props=k,p.state||(p.state={}),p.context=P,p.__n=i,y=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=v$1({},p.__s)),v$1(p.__s,A.getDerivedStateFromProps(k,p.__s))),d=p.props,_=p.state,p.__v=u,y)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(null==A.getDerivedStateFromProps&&k!==d&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,P),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(p.props=k,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,P),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(d,_,m);});}if(p.context=P,p.props=k,p.__P=n,p.__e=!1,$=l$1.__r,I=0,"prototype"in A&&A.prototype.render){for(p.state=p.__s,p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),H=0;H<p._sb.length;H++)p.__h.push(p._sb[H]);p._sb=[];}else do{p.__d=!1,$&&$(u),a=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++I<25);p.state=p.__s,null!=p.getChildContext&&(i=v$1(v$1({},i),p.getChildContext())),y||null==p.getSnapshotBeforeUpdate||(m=p.getSnapshotBeforeUpdate(d,_)),C$1(n,h$1(T=null!=a&&a.type===g&&null==a.key?a.props.children:a)?T:[T],u,t,i,o,r,f,e,c,s),p.base=u.__e,u.__u&=-161,p.__h.length&&f.push(p),w&&(p.__E=p.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=M(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function L(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)O(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function M(l,u,t,i,o,r,f,e,s){var a,v,y,d,_,g,b,w=t.props,k=u.props,x=u.type;if("svg"===x&&(o=!0),null!=r)for(a=0;a<r.length;a++)if((_=r[a])&&"setAttribute"in _==!!x&&(x?_.localName===x:3===_.nodeType)){l=_,r[a]=null;break}if(null==l){if(null===x)return document.createTextNode(k);l=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,k.is&&k),r=null,e=!1;}if(null===x)w===k||e&&l.data===k||(l.data=k);else {if(r=r&&n.call(l.childNodes),w=t.props||c$1,!e&&null!=r)for(w={},a=0;a<l.attributes.length;a++)w[(_=l.attributes[a]).name]=_.value;for(a in w)_=w[a],"children"==a||("dangerouslySetInnerHTML"==a?y=_:"key"===a||a in k||T(l,a,null,_,o));for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?b=_:"key"===a||e&&"function"!=typeof _||w[a]===_||T(l,a,_,w[a],o);if(v)e||y&&(v.__html===y.__html||v.__html===l.innerHTML)||(l.innerHTML=v.__html),u.__k=[];else if(y&&(l.innerHTML=""),C$1(l,h$1(d)?d:[d],u,t,i,o&&"foreignObject"!==x,r,f,r?r[0]:t.__k&&m$1(t,0),e,s),null!=r)for(a=r.length;a--;)null!=r[a]&&p$1(r[a]);e||(a="value",void 0!==g&&(g!==l[a]||"progress"===x&&!g||"option"===x&&g!==w[a])&&T(l,a,g,w[a],!1),a="checked",void 0!==b&&b!==l[a]&&T(l,a,b,w[a],!1));}return l}function O(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function j$1(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||O(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null,n.__c=void 0;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&j$1(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p$1(n.__e),n.__=n.__e=n.__d=void 0;}function z$1(n,l,u){return this.constructor(n,u)}function N(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],F(t,u=(!o&&i||t).__k=y$1(g,null,[u]),r||c$1,c$1,void 0!==t.ownerSVGElement,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),L(f,u,e);}n=s$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v$1({},this.state),"function"==typeof n&&(n=n(v$1({},u),this.props)),n&&v$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),k$1(this));},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),k$1(this));},b.prototype.render=g,i$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},x$1.__r=0; | ||
var n,l$1,u$1,i$1,o$1,r$1,f$1,e$1,c$1,s$1,h$1={},p$1=[],v$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y$1=Array.isArray;function d$1(n,l){for(var u in l)n[u]=l[u];return n}function w$1(n){var l=n.parentNode;l&&l.removeChild(n);}function _$1(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++u$1:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function k$1(n){return n.children}function b(n,l){this.props=n,this.context=l;}function x$1(n,l){if(null==l)return n.__?x$1(n.__,n.__i+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?x$1(n):null}function C$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 C$1(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!P.__r++||o$1!==l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)(P);}function P(){var n,u,t,o,r,e,c,s;for(i$1.sort(f$1);n=i$1.shift();)n.__d&&(u=i$1.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x$1(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j$1(c,o,s),o.__e!=e&&C$1(o)),i$1.length>u&&i$1.sort(f$1));P.__r=0;}function S(n,l,u,t,i,o,r,f,e,c,s){var a,v,y,d,w,_=t&&t.__k||p$1,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&"boolean"!=typeof y&&"function"!=typeof y&&(v=-1===y.__i?h$1:_[y.__i]||h$1,y.__i=a,O(n,y,v,i,o,r,f,e,c,s),d=y.__e,y.ref&&v.ref!=y.ref&&(v.ref&&N(v.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||v.__k===y.__k?(e&&!e.isConnected&&(e=x$1(v)),e=I(y,e,n)):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w;}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)r=t+a,null!=(i=n.__k[t]=null==(i=l[t])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y$1(i)?g(k$1,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=n,i.__b=n.__b+1,f=L(i,u,r,s),i.__i=f,o=null,-1!==f&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f===r+1?a++:f>r?s>e-r?a+=f-r:a--:f<r?f==r-1&&(a=f-r):a=0,f!==t+a&&(i.__u|=65536))):(o=u[r])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x$1(o)),V(o,o,!1),u[r]=null,s--);if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x$1(o)),V(o,o));}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8===l.nodeType);return l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--;}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++;}}return -1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||v$1.test(l)?u:u+"px";}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=e$1,n.addEventListener(l,o?s$1:c$1,o)):n.removeEventListener(l,o?s$1:c$1,o);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u));}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=e$1++;else if(u.t<t.u)return;return t(l$1.event?l$1.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,p,v,w,_,g,m,x,C,M,P,$,I,H,L=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof L)try{if(m=u.props,x=(a=L.contextType)&&i[a.__c],C=a?x?x.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:("prototype"in L&&L.prototype.render?u.__c=h=new L(m,C):(u.__c=h=new b(m,C),h.constructor=L,h.render=q$1),x&&x.sub(h),h.props=m,h.state||(h.state={}),h.context=C,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=L.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d$1({},h.__s)),d$1(h.__s,L.getDerivedStateFromProps(m,h.__s))),v=h.props,w=h.state,h.__v=u,p)null==L.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==L.getDerivedStateFromProps&&m!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,C),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,C)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u);}),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,C),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,w,_);});}if(h.context=C,h.props=m,h.__P=n,h.__e=!1,P=l$1.__r,$=0,"prototype"in L&&L.prototype.render){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[];}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++$<25);h.state=h.__s,null!=h.getChildContext&&(i=d$1(d$1({},i),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(_=h.getSnapshotBeforeUpdate(v,w)),S(n,y$1(H=null!=a&&a.type===k$1&&null==a.key?a.props.children:a)?H:[H],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null);}catch(n){u.__v=null,c||null!=r?(u.__e=e,u.__u|=c?160:32,r[r.indexOf(e)]=null):(u.__e=t.__e,u.__k=t.__k),l$1.__e(n,u,t);}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z$1(t.__e,u,t,i,o,r,f,c,s);(a=l$1.diffed)&&a(u);}function j$1(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function z$1(l,u,t,i,o,r,f,e,c){var s,a,p,v,d,_,g,m=t.props,k=u.props,b=u.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(s=0;s<r.length;s++)if((d=r[s])&&"setAttribute"in d==!!b&&(b?d.localName===b:3===d.nodeType)){l=d,r[s]=null;break}if(null==l){if(null===b)return document.createTextNode(k);l=document.createElementNS(o,b,k.is&&k),r=null,e=!1;}if(null===b)m===k||e&&l.data===k||(l.data=k);else {if(r=r&&n.call(l.childNodes),m=t.props||h$1,!e&&null!=r)for(m={},s=0;s<l.attributes.length;s++)m[(d=l.attributes[s]).name]=d.value;for(s in m)if(d=m[s],"children"==s);else if("dangerouslySetInnerHTML"==s)p=d;else if("key"!==s&&!(s in k)){if("value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k)continue;A(l,s,null,d,o);}for(s in k)d=k[s],"children"==s?v=d:"dangerouslySetInnerHTML"==s?a=d:"value"==s?_=d:"checked"==s?g=d:"key"===s||e&&"function"!=typeof d||m[s]===d||A(l,s,d,m[s],o);if(a)e||p&&(a.__html===p.__html||a.__html===l.innerHTML)||(l.innerHTML=a.__html),u.__k=[];else if(p&&(l.innerHTML=""),S(l,y$1(v)?v:[v],u,t,i,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,r,f,r?r[0]:t.__k&&x$1(t,0),e,c),null!=r)for(s=r.length;s--;)null!=r[s]&&w$1(r[s]);e||(s="value",void 0!==_&&(_!==l[s]||"progress"===b&&!_||"option"===b&&_!==m[s])&&A(l,s,_,m[s],o),s="checked",void 0!==g&&g!==l[s]&&A(l,s,g,m[s],o));}return l}function N(n,u,t){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,t);}}function V(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||w$1(n.__e),n.__c=n.__=n.__e=n.__d=void 0;}function q$1(n,l,u){return this.constructor(n,u)}function B$1(u,t,i){var o,r,f,e;l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_$1(k$1,null,[u]),r||h$1,h$1,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j$1(f,u,e);}n=p$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,b.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d$1({},this.state),"function"==typeof n&&(n=n(d$1({},u),this.props)),n&&d$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this));},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this));},b.prototype.render=k$1,i$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f$1=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,e$1=0,c$1=F(!1),s$1=F(!0); | ||
@@ -18,8 +18,8 @@ var t,r,u,i,o=0,f=[],c=[],e=l$1,a=e.__b,v=e.__r,l=e.diffed,m=e.__c,s=e.unmount,d=e.__;function h(n,t){e.__h&&e.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({__V:c}),u.__[n]}function p(n){return o=1,y(D,n)}function y(n,u,i){var o=h(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.u)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return !!n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};r.u=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function _(n,u){var i=h(t++,3);!e.__s&&C(i.__H,u)&&(i.__=n,i.i=u,r.__H.__h.push(i));}function q(n,r){var u=h(t++,7);return C(u.__H,r)?(u.__V=n(),u.i=r,u.__h=n,u.__V):u.__}function x(n,t){return o=8,q(function(){return n},t)}function j(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[];}catch(t){n.__H.__h=[],e.__e(t,n.__v);}}e.__b=function(n){r=null,a&&a(n);},e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),d&&d(n,t);},e.__r=function(n){v&&v(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=c,n.__N=n.i=void 0;})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r;},e.diffed=function(n){l&&l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===e.requestAnimationFrame||((i=e.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==c&&(n.__=n.__V),n.i=void 0,n.__V=c;})),u=r=null;},e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return !n.__||B(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],e.__e(r,n.__v);}}),m&&m(n,t);},e.unmount=function(n){s&&s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n);}catch(n){t=n;}}),r.__H=void 0,t&&e.__e(t,r.__v));};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,100);k&&(t=requestAnimationFrame(r));}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function B(n){var t=r;n.__c=n.__(),r=t;}function C(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return "function"==typeof t?t(n):t} | ||
exports.Component = b; | ||
exports.Fragment = g; | ||
exports.Fragment = k$1; | ||
exports.PKG_NAME = PKG_NAME; | ||
exports.PKG_VERSION = PKG_VERSION; | ||
exports.createElement = y$1; | ||
exports.h = y$1; | ||
exports.render = N; | ||
exports.createElement = _$1; | ||
exports.h = _$1; | ||
exports.render = B$1; | ||
exports.useCallback = x; | ||
@@ -31,5 +31,3 @@ exports.useEffect = _; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
})); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((_="undefined"!=typeof globalThis?globalThis:_||self)["@hpcc-js/preact-shim"]={})}(this,(function(_){"use strict";var e,n,t,o,r,l,u,i={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,s=Array.isArray;function a(_,e){for(var n in e)_[n]=e[n];return _}function p(_){var e=_.parentNode;e&&e.removeChild(_)}function h(_,n,t){var o,r,l,u={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:u[l]=n[l];if(arguments.length>2&&(u.children=arguments.length>3?e.call(arguments,2):t),"function"==typeof _&&null!=_.defaultProps)for(l in _.defaultProps)void 0===u[l]&&(u[l]=_.defaultProps[l]);return d(_,u,o,r,null)}function d(_,e,o,r,l){var u={type:_,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==l?++t:l,__i:-1,__u:0};return null==l&&null!=n.vnode&&n.vnode(u),u}function v(_){return _.children}function y(_,e){this.props=_,this.context=e}function m(_,e){if(null==e)return _.__?m(_.__,_.__i+1):null;for(var n;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof _.type?m(_):null}function g(_){var e,n;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e){_.__e=_.__c.base=n.__e;break}return g(_)}}function b(_){(!_.__d&&(_.__d=!0)&&o.push(_)&&!k.__r++||r!==n.debounceRendering)&&((r=n.debounceRendering)||l)(k)}function k(){var _,e,t,r,l,i,c,f,s;for(o.sort(u);_=o.shift();)_.__d&&(e=o.length,r=void 0,i=(l=(t=_).__v).__e,f=[],s=[],(c=t.__P)&&((r=a({},l)).__v=l.__v+1,n.vnode&&n.vnode(r),T(c,r,l,t.__n,void 0!==c.ownerSVGElement,32&l.__u?[i]:null,f,null==i?m(l):i,!!(32&l.__u),s),r.__v=l.__v,r.__.__k[r.__i]=r,U(f,r,s),r.__e!=i&&g(r)),o.length>e&&o.sort(u));k.__r=0}function E(_,e,n,t,o,r,l,u,f,s,a){var p,h,d,v,y,g=t&&t.__k||c,b=e.length;for(n.__d=f,H(n,e,g),f=n.__d,p=0;p<b;p++)null!=(d=n.__k[p])&&"boolean"!=typeof d&&"function"!=typeof d&&(h=-1===d.__i?i:g[d.__i]||i,d.__i=p,T(_,d,h,o,r,l,u,f,s,a),v=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&F(h.ref,null,d),a.push(d.ref,d.__c||v,d)),null==y&&null!=v&&(y=v),65536&d.__u||h.__k===d.__k?(v||h.__e!=f||(f=m(h)),f=S(d,f,_)):"function"==typeof d.type&&void 0!==d.__d?f=d.__d:v&&(f=v.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=f,n.__e=y}function H(_,e,n){var t,o,r,l,u,i=e.length,c=n.length,f=c,a=0;for(_.__k=[],t=0;t<i;t++)l=t+a,null!=(o=_.__k[t]=null==(o=e[t])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?d(null,o,null,null,null):s(o)?d(v,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?d(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=_,o.__b=_.__b+1,u=x(o,n,l,f),o.__i=u,r=null,-1!==u&&(f--,(r=n[u])&&(r.__u|=131072)),null==r||null===r.__v?(-1==u&&a--,"function"!=typeof o.type&&(o.__u|=65536)):u!==l&&(u===l+1?a++:u>l?f>i-l?a+=u-l:a--:u<l?u==l-1&&(a=u-l):a=0,u!==t+a&&(o.__u|=65536))):(r=n[l])&&null==r.key&&r.__e&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=m(r)),M(r,r,!1),n[l]=null,f--);if(f)for(t=0;t<c;t++)null!=(r=n[t])&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=m(r)),M(r,r))}function S(_,e,n){var t,o;if("function"==typeof _.type){for(t=_.__k,o=0;t&&o<t.length;o++)t[o]&&(t[o].__=_,e=S(t[o],e,n));return e}_.__e!=e&&(n.insertBefore(_.__e,e||null),e=_.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function x(_,e,n,t){var o=_.key,r=_.type,l=n-1,u=n+1,i=e[n];if(null===i||i&&o==i.key&&r===i.type&&!(131072&i.__u))return n;if(t>(null==i||131072&i.__u?0:1))for(;l>=0||u<e.length;){if(l>=0){if((i=e[l])&&!(131072&i.__u)&&o==i.key&&r===i.type)return l;l--}if(u<e.length){if((i=e[u])&&!(131072&i.__u)&&o==i.key&&r===i.type)return u;u++}}return-1}function N(_,e,n){"-"===e[0]?_.setProperty(e,null==n?"":n):_[e]=null==n?"":"number"!=typeof n||f.test(e)?n:n+"px"}function P(_,e,n,t,o){var r;_:if("style"===e)if("string"==typeof n)_.style.cssText=n;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(e in t)n&&e in n||N(_.style,e,"");if(n)for(e in n)t&&n[e]===t[e]||N(_.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in _||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=n,n?t?n.u=t.u:(n.u=Date.now(),_.addEventListener(e,r?C:w,r)):_.removeEventListener(e,r?C:w,r);else{if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in _)try{_[e]=null==n?"":n;break _}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?_.removeAttribute(e):_.setAttribute(e,n))}}function w(_){if(this.l){var e=this.l[_.type+!1];if(_.t){if(_.t<=e.u)return}else _.t=Date.now();return e(n.event?n.event(_):_)}}function C(_){if(this.l)return this.l[_.type+!0](n.event?n.event(_):_)}function T(_,e,t,o,r,l,u,i,c,f){var p,h,d,m,g,b,k,H,S,x,N,P,w,C,T,U=e.type;if(void 0!==e.constructor)return null;128&t.__u&&(c=!!(32&t.__u),l=[i=e.__e=t.__e]),(p=n.__b)&&p(e);_:if("function"==typeof U)try{if(H=e.props,S=(p=U.contextType)&&o[p.__c],x=p?S?S.props.value:p.__:o,t.__c?k=(h=e.__c=t.__c).__=h.__E:("prototype"in U&&U.prototype.render?e.__c=h=new U(H,x):(e.__c=h=new y(H,x),h.constructor=U,h.render=A),S&&S.sub(h),h.props=H,h.state||(h.state={}),h.context=x,h.__n=o,d=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=U.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a({},h.__s)),a(h.__s,U.getDerivedStateFromProps(H,h.__s))),m=h.props,g=h.state,h.__v=e,d)null==U.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==U.getDerivedStateFromProps&&H!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(H,x),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(H,h.__s,x)||e.__v===t.__v)){for(e.__v!==t.__v&&(h.props=H,h.state=h.__s,h.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach((function(_){_&&(_.__=e)})),N=0;N<h._sb.length;N++)h.__h.push(h._sb[N]);h._sb=[],h.__h.length&&u.push(h);break _}null!=h.componentWillUpdate&&h.componentWillUpdate(H,h.__s,x),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(m,g,b)}))}if(h.context=x,h.props=H,h.__P=_,h.__e=!1,P=n.__r,w=0,"prototype"in U&&U.prototype.render){for(h.state=h.__s,h.__d=!1,P&&P(e),p=h.render(h.props,h.state,h.context),C=0;C<h._sb.length;C++)h.__h.push(h._sb[C]);h._sb=[]}else do{h.__d=!1,P&&P(e),p=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++w<25);h.state=h.__s,null!=h.getChildContext&&(o=a(a({},o),h.getChildContext())),d||null==h.getSnapshotBeforeUpdate||(b=h.getSnapshotBeforeUpdate(m,g)),E(_,s(T=null!=p&&p.type===v&&null==p.key?p.props.children:p)?T:[T],e,t,o,r,l,u,i,c,f),h.base=e.__e,e.__u&=-161,h.__h.length&&u.push(h),k&&(h.__E=h.__=null)}catch(_){e.__v=null,c||null!=l?(e.__e=i,e.__u|=c?160:32,l[l.indexOf(i)]=null):(e.__e=t.__e,e.__k=t.__k),n.__e(_,e,t)}else null==l&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=D(t.__e,e,t,o,r,l,u,c,f);(p=n.diffed)&&p(e)}function U(_,e,t){e.__d=void 0;for(var o=0;o<t.length;o++)F(t[o],t[++o],t[++o]);n.__c&&n.__c(e,_),_.some((function(e){try{_=e.__h,e.__h=[],_.some((function(_){_.call(e)}))}catch(_){n.__e(_,e.__v)}}))}function D(_,n,t,o,r,l,u,c,f){var a,h,d,v,y,g,b,k=t.props,H=n.props,S=n.type;if("svg"===S&&(r=!0),null!=l)for(a=0;a<l.length;a++)if((y=l[a])&&"setAttribute"in y==!!S&&(S?y.localName===S:3===y.nodeType)){_=y,l[a]=null;break}if(null==_){if(null===S)return document.createTextNode(H);_=r?document.createElementNS("http://www.w3.org/2000/svg",S):document.createElement(S,H.is&&H),l=null,c=!1}if(null===S)k===H||c&&_.data===H||(_.data=H);else{if(l=l&&e.call(_.childNodes),k=t.props||i,!c&&null!=l)for(k={},a=0;a<_.attributes.length;a++)k[(y=_.attributes[a]).name]=y.value;for(a in k)y=k[a],"children"==a||("dangerouslySetInnerHTML"==a?d=y:"key"===a||a in H||P(_,a,null,y,r));for(a in H)y=H[a],"children"==a?v=y:"dangerouslySetInnerHTML"==a?h=y:"value"==a?g=y:"checked"==a?b=y:"key"===a||c&&"function"!=typeof y||k[a]===y||P(_,a,y,k[a],r);if(h)c||d&&(h.__html===d.__html||h.__html===_.innerHTML)||(_.innerHTML=h.__html),n.__k=[];else if(d&&(_.innerHTML=""),E(_,s(v)?v:[v],n,t,o,r&&"foreignObject"!==S,l,u,l?l[0]:t.__k&&m(t,0),c,f),null!=l)for(a=l.length;a--;)null!=l[a]&&p(l[a]);c||(a="value",void 0!==g&&(g!==_[a]||"progress"===S&&!g||"option"===S&&g!==k[a])&&P(_,a,g,k[a],!1),a="checked",void 0!==b&&b!==_[a]&&P(_,a,b,k[a],!1))}return _}function F(_,e,t){try{"function"==typeof _?_(e):_.current=e}catch(_){n.__e(_,t)}}function M(_,e,t){var o,r;if(n.unmount&&n.unmount(_),(o=_.ref)&&(o.current&&o.current!==_.__e||F(o,null,e)),null!=(o=_.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){n.__e(_,e)}o.base=o.__P=null,_.__c=void 0}if(o=_.__k)for(r=0;r<o.length;r++)o[r]&&M(o[r],e,t||"function"!=typeof _.type);t||null==_.__e||p(_.__e),_.__=_.__e=_.__d=void 0}function A(_,e,n){return this.constructor(_,n)}e=c.slice,n={__e:function(_,e,n,t){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),l=o.__d),l)return o.__E=o}catch(e){_=e}throw _}},t=0,y.prototype.setState=function(_,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a({},this.state),"function"==typeof _&&(_=_(a({},n),this.props)),_&&a(n,_),null!=_&&this.__v&&(e&&this._sb.push(e),b(this))},y.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),b(this))},y.prototype.render=v,o=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(_,e){return _.__v.__b-e.__v.__b},k.__r=0;var V,L,W,I,R=0,O=[],j=[],$=n,q=$.__b,B=$.__r,G=$.diffed,K=$.__c,z=$.unmount,J=$.__;function Q(_,e){$.__h&&$.__h(L,_,R||e),R=0;var n=L.__H||(L.__H={__:[],__h:[]});return _>=n.__.length&&n.__.push({__V:j}),n.__[_]}function X(_,e,n){var t=Q(V++,2);if(t.t=_,!t.__c&&(t.__=[n?n(e):r_(void 0,e),function(_){var e=t.__N?t.__N[0]:t.__[0],n=t.t(e,_);e!==n&&(t.__N=[n,t.__[1]],t.__c.setState({}))}],t.__c=L,!L.u)){var o=function(_,e,n){if(!t.__c.__H)return!0;var o=t.__c.__H.__.filter((function(_){return!!_.__c}));if(o.every((function(_){return!_.__N})))return!r||r.call(this,_,e,n);var l=!1;return o.forEach((function(_){if(_.__N){var e=_.__[0];_.__=_.__N,_.__N=void 0,e!==_.__[0]&&(l=!0)}})),!(!l&&t.__c.props===_)&&(!r||r.call(this,_,e,n))};L.u=!0;var r=L.shouldComponentUpdate,l=L.componentWillUpdate;L.componentWillUpdate=function(_,e,n){if(this.__e){var t=r;r=void 0,o(_,e,n),r=t}l&&l.call(this,_,e,n)},L.shouldComponentUpdate=o}return t.__N||t.__}function Y(_,e){var n=Q(V++,7);return o_(n.__H,e)?(n.__V=_(),n.i=e,n.__h=_,n.__V):n.__}function Z(){for(var _;_=O.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(n_),_.__H.__h.forEach(t_),_.__H.__h=[]}catch(e){_.__H.__h=[],$.__e(e,_.__v)}}$.__b=function(_){L=null,q&&q(_)},$.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),J&&J(_,e)},$.__r=function(_){B&&B(_),V=0;var e=(L=_.__c).__H;e&&(W===L?(e.__h=[],L.__h=[],e.__.forEach((function(_){_.__N&&(_.__=_.__N),_.__V=j,_.__N=_.i=void 0}))):(e.__h.forEach(n_),e.__h.forEach(t_),e.__h=[],V=0)),W=L},$.diffed=function(_){G&&G(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(1!==O.push(e)&&I===$.requestAnimationFrame||((I=$.requestAnimationFrame)||e_)(Z)),e.__H.__.forEach((function(_){_.i&&(_.__H=_.i),_.__V!==j&&(_.__=_.__V),_.i=void 0,_.__V=j}))),W=L=null},$.__c=function(_,e){e.some((function(_){try{_.__h.forEach(n_),_.__h=_.__h.filter((function(_){return!_.__||t_(_)}))}catch(n){e.some((function(_){_.__h&&(_.__h=[])})),e=[],$.__e(n,_.__v)}})),K&&K(_,e)},$.unmount=function(_){z&&z(_);var e,n=_.__c;n&&n.__H&&(n.__H.__.forEach((function(_){try{n_(_)}catch(_){e=_}})),n.__H=void 0,e&&$.__e(e,n.__v))};var __="function"==typeof requestAnimationFrame;function e_(_){var e,n=function(){clearTimeout(t),__&&cancelAnimationFrame(e),setTimeout(_)},t=setTimeout(n,100);__&&(e=requestAnimationFrame(n))}function n_(_){var e=L,n=_.__c;"function"==typeof n&&(_.__c=void 0,n()),L=e}function t_(_){var e=L;_.__c=_.__(),L=e}function o_(_,e){return!_||_.length!==e.length||e.some((function(e,n){return e!==_[n]}))}function r_(_,e){return"function"==typeof e?e(_):e}_.BUILD_VERSION="2.105.5",_.Component=y,_.Fragment=v,_.PKG_NAME="@hpcc-js/preact-shim",_.PKG_VERSION="2.16.10",_.createElement=h,_.h=h,_.render=function(_,t,o){var r,l,u,c;n.__&&n.__(_,t),l=(r="function"==typeof o)?null:o&&o.__k||t.__k,u=[],c=[],T(t,_=(!r&&o||t).__k=h(v,null,[_]),l||i,i,void 0!==t.ownerSVGElement,!r&&o?[o]:l?null:t.firstChild?e.call(t.childNodes):null,u,!r&&o?o:l?l.__e:t.firstChild,r,c),U(u,_,c)},_.useCallback=function(_,e){return R=8,Y((function(){return _}),e)},_.useEffect=function(_,e){var n=Q(V++,3);!$.__s&&o_(n.__H,e)&&(n.__=_,n.i=e,L.__H.__h.push(n))},_.useMemo=Y,_.useReducer=X,_.useState=function(_){return R=1,X(r_,_)},Object.defineProperty(_,"__esModule",{value:!0})})); | ||
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((_="undefined"!=typeof globalThis?globalThis:_||self)["@hpcc-js/preact-shim"]={})}(this,(function(_){"use strict";var e,n,t,o,r,l,u,i,c,f,s={},a=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function d(_,e){for(var n in e)_[n]=e[n];return _}function v(_){var e=_.parentNode;e&&e.removeChild(_)}function m(_,n,t){var o,r,l,u={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:u[l]=n[l];if(arguments.length>2&&(u.children=arguments.length>3?e.call(arguments,2):t),"function"==typeof _&&null!=_.defaultProps)for(l in _.defaultProps)void 0===u[l]&&(u[l]=_.defaultProps[l]);return y(_,u,o,r,null)}function y(_,e,o,r,l){var u={type:_,props:e,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==l?++t:l,__i:-1,__u:0};return null==l&&null!=n.vnode&&n.vnode(u),u}function g(_){return _.children}function k(_,e){this.props=_,this.context=e}function b(_,e){if(null==e)return _.__?b(_.__,_.__i+1):null;for(var n;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof _.type?b(_):null}function w(_){var e,n;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e){_.__e=_.__c.base=n.__e;break}return w(_)}}function H(_){(!_.__d&&(_.__d=!0)&&o.push(_)&&!x.__r++||r!==n.debounceRendering)&&((r=n.debounceRendering)||l)(x)}function x(){var _,e,t,r,l,i,c,f;for(o.sort(u);_=o.shift();)_.__d&&(e=o.length,r=void 0,i=(l=(t=_).__v).__e,c=[],f=[],t.__P&&((r=d({},l)).__v=l.__v+1,n.vnode&&n.vnode(r),F(t.__P,r,l,t.__n,t.__P.namespaceURI,32&l.__u?[i]:null,c,null==i?b(l):i,!!(32&l.__u),f),r.__v=l.__v,r.__.__k[r.__i]=r,M(c,r,f),r.__e!=i&&w(r)),o.length>e&&o.sort(u));x.__r=0}function E(_,e,n,t,o,r,l,u,i,c,f){var p,h,d,v,m,y=t&&t.__k||a,g=e.length;for(n.__d=i,P(n,e,y),i=n.__d,p=0;p<g;p++)null!=(d=n.__k[p])&&"boolean"!=typeof d&&"function"!=typeof d&&(h=-1===d.__i?s:y[d.__i]||s,d.__i=p,F(_,d,h,o,r,l,u,i,c,f),v=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&A(h.ref,null,d),f.push(d.ref,d.__c||v,d)),null==m&&null!=v&&(m=v),65536&d.__u||h.__k===d.__k?(i&&!i.isConnected&&(i=b(h)),i=S(d,i,_)):"function"==typeof d.type&&void 0!==d.__d?i=d.__d:v&&(i=v.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=i,n.__e=m}function P(_,e,n){var t,o,r,l,u,i=e.length,c=n.length,f=c,s=0;for(_.__k=[],t=0;t<i;t++)l=t+s,null!=(o=_.__k[t]=null==(o=e[t])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?y(null,o,null,null,null):h(o)?y(g,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?y(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=_,o.__b=_.__b+1,u=C(o,n,l,f),o.__i=u,r=null,-1!==u&&(f--,(r=n[u])&&(r.__u|=131072)),null==r||null===r.__v?(-1==u&&s--,"function"!=typeof o.type&&(o.__u|=65536)):u!==l&&(u===l+1?s++:u>l?f>i-l?s+=u-l:s--:u<l?u==l-1&&(s=u-l):s=0,u!==t+s&&(o.__u|=65536))):(r=n[l])&&null==r.key&&r.__e&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=b(r)),L(r,r,!1),n[l]=null,f--);if(f)for(t=0;t<c;t++)null!=(r=n[t])&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=b(r)),L(r,r))}function S(_,e,n){var t,o;if("function"==typeof _.type){for(t=_.__k,o=0;t&&o<t.length;o++)t[o]&&(t[o].__=_,e=S(t[o],e,n));return e}_.__e!=e&&(n.insertBefore(_.__e,e||null),e=_.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function C(_,e,n,t){var o=_.key,r=_.type,l=n-1,u=n+1,i=e[n];if(null===i||i&&o==i.key&&r===i.type&&!(131072&i.__u))return n;if(t>(null==i||131072&i.__u?0:1))for(;l>=0||u<e.length;){if(l>=0){if((i=e[l])&&!(131072&i.__u)&&o==i.key&&r===i.type)return l;l--}if(u<e.length){if((i=e[u])&&!(131072&i.__u)&&o==i.key&&r===i.type)return u;u++}}return-1}function N(_,e,n){"-"===e[0]?_.setProperty(e,null==n?"":n):_[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function U(_,e,n,t,o){var r;_:if("style"===e)if("string"==typeof n)_.style.cssText=n;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(e in t)n&&e in n||N(_.style,e,"");if(n)for(e in n)t&&n[e]===t[e]||N(_.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])r=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in _||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=n,n?t?n.u=t.u:(n.u=i,_.addEventListener(e,r?f:c,r)):_.removeEventListener(e,r?f:c,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&e in _)try{_[e]=null==n?"":n;break _}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?_.removeAttribute(e):_.setAttribute(e,n))}}function T(_){return function(e){if(this.l){var t=this.l[e.type+_];if(null==e.t)e.t=i++;else if(e.t<t.u)return;return t(n.event?n.event(e):e)}}}function F(_,e,t,o,r,l,u,i,c,f){var s,a,p,v,m,y,b,w,H,x,P,S,C,N,U,T=e.type;if(void 0!==e.constructor)return null;128&t.__u&&(c=!!(32&t.__u),l=[i=e.__e=t.__e]),(s=n.__b)&&s(e);_:if("function"==typeof T)try{if(w=e.props,H=(s=T.contextType)&&o[s.__c],x=s?H?H.props.value:s.__:o,t.__c?b=(a=e.__c=t.__c).__=a.__E:("prototype"in T&&T.prototype.render?e.__c=a=new T(w,x):(e.__c=a=new k(w,x),a.constructor=T,a.render=V),H&&H.sub(a),a.props=w,a.state||(a.state={}),a.context=x,a.__n=o,p=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=T.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=d({},a.__s)),d(a.__s,T.getDerivedStateFromProps(w,a.__s))),v=a.props,m=a.state,a.__v=e,p)null==T.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==T.getDerivedStateFromProps&&w!==v&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(w,x),!a.__e&&(null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(w,a.__s,x)||e.__v===t.__v)){for(e.__v!==t.__v&&(a.props=w,a.state=a.__s,a.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach((function(_){_&&(_.__=e)})),P=0;P<a._sb.length;P++)a.__h.push(a._sb[P]);a._sb=[],a.__h.length&&u.push(a);break _}null!=a.componentWillUpdate&&a.componentWillUpdate(w,a.__s,x),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(v,m,y)}))}if(a.context=x,a.props=w,a.__P=_,a.__e=!1,S=n.__r,C=0,"prototype"in T&&T.prototype.render){for(a.state=a.__s,a.__d=!1,S&&S(e),s=a.render(a.props,a.state,a.context),N=0;N<a._sb.length;N++)a.__h.push(a._sb[N]);a._sb=[]}else do{a.__d=!1,S&&S(e),s=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++C<25);a.state=a.__s,null!=a.getChildContext&&(o=d(d({},o),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(y=a.getSnapshotBeforeUpdate(v,m)),E(_,h(U=null!=s&&s.type===g&&null==s.key?s.props.children:s)?U:[U],e,t,o,r,l,u,i,c,f),a.base=e.__e,e.__u&=-161,a.__h.length&&u.push(a),b&&(a.__E=a.__=null)}catch(_){e.__v=null,c||null!=l?(e.__e=i,e.__u|=c?160:32,l[l.indexOf(i)]=null):(e.__e=t.__e,e.__k=t.__k),n.__e(_,e,t)}else null==l&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=D(t.__e,e,t,o,r,l,u,c,f);(s=n.diffed)&&s(e)}function M(_,e,t){e.__d=void 0;for(var o=0;o<t.length;o++)A(t[o],t[++o],t[++o]);n.__c&&n.__c(e,_),_.some((function(e){try{_=e.__h,e.__h=[],_.some((function(_){_.call(e)}))}catch(_){n.__e(_,e.__v)}}))}function D(_,n,t,o,r,l,u,i,c){var f,a,p,d,m,y,g,k=t.props,w=n.props,H=n.type;if("svg"===H?r="http://www.w3.org/2000/svg":"math"===H?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=l)for(f=0;f<l.length;f++)if((m=l[f])&&"setAttribute"in m==!!H&&(H?m.localName===H:3===m.nodeType)){_=m,l[f]=null;break}if(null==_){if(null===H)return document.createTextNode(w);_=document.createElementNS(r,H,w.is&&w),l=null,i=!1}if(null===H)k===w||i&&_.data===w||(_.data=w);else{if(l=l&&e.call(_.childNodes),k=t.props||s,!i&&null!=l)for(k={},f=0;f<_.attributes.length;f++)k[(m=_.attributes[f]).name]=m.value;for(f in k)if(m=k[f],"children"==f);else if("dangerouslySetInnerHTML"==f)p=m;else if("key"!==f&&!(f in w)){if("value"==f&&"defaultValue"in w||"checked"==f&&"defaultChecked"in w)continue;U(_,f,null,m,r)}for(f in w)m=w[f],"children"==f?d=m:"dangerouslySetInnerHTML"==f?a=m:"value"==f?y=m:"checked"==f?g=m:"key"===f||i&&"function"!=typeof m||k[f]===m||U(_,f,m,k[f],r);if(a)i||p&&(a.__html===p.__html||a.__html===_.innerHTML)||(_.innerHTML=a.__html),n.__k=[];else if(p&&(_.innerHTML=""),E(_,h(d)?d:[d],n,t,o,"foreignObject"===H?"http://www.w3.org/1999/xhtml":r,l,u,l?l[0]:t.__k&&b(t,0),i,c),null!=l)for(f=l.length;f--;)null!=l[f]&&v(l[f]);i||(f="value",void 0!==y&&(y!==_[f]||"progress"===H&&!y||"option"===H&&y!==k[f])&&U(_,f,y,k[f],r),f="checked",void 0!==g&&g!==_[f]&&U(_,f,g,k[f],r))}return _}function A(_,e,t){try{"function"==typeof _?_(e):_.current=e}catch(_){n.__e(_,t)}}function L(_,e,t){var o,r;if(n.unmount&&n.unmount(_),(o=_.ref)&&(o.current&&o.current!==_.__e||A(o,null,e)),null!=(o=_.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){n.__e(_,e)}o.base=o.__P=null}if(o=_.__k)for(r=0;r<o.length;r++)o[r]&&L(o[r],e,t||"function"!=typeof _.type);t||null==_.__e||v(_.__e),_.__c=_.__=_.__e=_.__d=void 0}function V(_,e,n){return this.constructor(_,n)}e=a.slice,n={__e:function(_,e,n,t){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),l=o.__d),l)return o.__E=o}catch(e){_=e}throw _}},t=0,k.prototype.setState=function(_,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof _&&(_=_(d({},n),this.props)),_&&d(n,_),null!=_&&this.__v&&(e&&this._sb.push(e),H(this))},k.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),H(this))},k.prototype.render=g,o=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(_,e){return _.__v.__b-e.__v.__b},x.__r=0,i=0,c=T(!1),f=T(!0);var W,I,R,O,$=0,j=[],q=[],B=n,G=B.__b,K=B.__r,z=B.diffed,J=B.__c,Q=B.unmount,X=B.__;function Y(_,e){B.__h&&B.__h(I,_,$||e),$=0;var n=I.__H||(I.__H={__:[],__h:[]});return _>=n.__.length&&n.__.push({__V:q}),n.__[_]}function Z(_,e,n){var t=Y(W++,2);if(t.t=_,!t.__c&&(t.__=[n?n(e):u_(void 0,e),function(_){var e=t.__N?t.__N[0]:t.__[0],n=t.t(e,_);e!==n&&(t.__N=[n,t.__[1]],t.__c.setState({}))}],t.__c=I,!I.u)){var o=function(_,e,n){if(!t.__c.__H)return!0;var o=t.__c.__H.__.filter((function(_){return!!_.__c}));if(o.every((function(_){return!_.__N})))return!r||r.call(this,_,e,n);var l=!1;return o.forEach((function(_){if(_.__N){var e=_.__[0];_.__=_.__N,_.__N=void 0,e!==_.__[0]&&(l=!0)}})),!(!l&&t.__c.props===_)&&(!r||r.call(this,_,e,n))};I.u=!0;var r=I.shouldComponentUpdate,l=I.componentWillUpdate;I.componentWillUpdate=function(_,e,n){if(this.__e){var t=r;r=void 0,o(_,e,n),r=t}l&&l.call(this,_,e,n)},I.shouldComponentUpdate=o}return t.__N||t.__}function __(_,e){var n=Y(W++,7);return l_(n.__H,e)?(n.__V=_(),n.i=e,n.__h=_,n.__V):n.__}function e_(){for(var _;_=j.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(o_),_.__H.__h.forEach(r_),_.__H.__h=[]}catch(e){_.__H.__h=[],B.__e(e,_.__v)}}B.__b=function(_){I=null,G&&G(_)},B.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),X&&X(_,e)},B.__r=function(_){K&&K(_),W=0;var e=(I=_.__c).__H;e&&(R===I?(e.__h=[],I.__h=[],e.__.forEach((function(_){_.__N&&(_.__=_.__N),_.__V=q,_.__N=_.i=void 0}))):(e.__h.forEach(o_),e.__h.forEach(r_),e.__h=[],W=0)),R=I},B.diffed=function(_){z&&z(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(1!==j.push(e)&&O===B.requestAnimationFrame||((O=B.requestAnimationFrame)||t_)(e_)),e.__H.__.forEach((function(_){_.i&&(_.__H=_.i),_.__V!==q&&(_.__=_.__V),_.i=void 0,_.__V=q}))),R=I=null},B.__c=function(_,e){e.some((function(_){try{_.__h.forEach(o_),_.__h=_.__h.filter((function(_){return!_.__||r_(_)}))}catch(n){e.some((function(_){_.__h&&(_.__h=[])})),e=[],B.__e(n,_.__v)}})),J&&J(_,e)},B.unmount=function(_){Q&&Q(_);var e,n=_.__c;n&&n.__H&&(n.__H.__.forEach((function(_){try{o_(_)}catch(_){e=_}})),n.__H=void 0,e&&B.__e(e,n.__v))};var n_="function"==typeof requestAnimationFrame;function t_(_){var e,n=function(){clearTimeout(t),n_&&cancelAnimationFrame(e),setTimeout(_)},t=setTimeout(n,100);n_&&(e=requestAnimationFrame(n))}function o_(_){var e=I,n=_.__c;"function"==typeof n&&(_.__c=void 0,n()),I=e}function r_(_){var e=I;_.__c=_.__(),I=e}function l_(_,e){return!_||_.length!==e.length||e.some((function(e,n){return e!==_[n]}))}function u_(_,e){return"function"==typeof e?e(_):e}_.BUILD_VERSION="2.105.12",_.Component=k,_.Fragment=g,_.PKG_NAME="@hpcc-js/preact-shim",_.PKG_VERSION="2.16.11",_.createElement=m,_.h=m,_.render=function(_,t,o){var r,l,u,i;n.__&&n.__(_,t),l=(r="function"==typeof o)?null:o&&o.__k||t.__k,u=[],i=[],F(t,_=(!r&&o||t).__k=m(g,null,[_]),l||s,s,t.namespaceURI,!r&&o?[o]:l?null:t.firstChild?e.call(t.childNodes):null,u,!r&&o?o:l?l.__e:t.firstChild,r,i),M(u,_,i)},_.useCallback=function(_,e){return $=8,__((function(){return _}),e)},_.useEffect=function(_,e){var n=Y(W++,3);!B.__s&&l_(n.__H,e)&&(n.__=_,n.i=e,I.__H.__h.push(n))},_.useMemo=__,_.useReducer=Z,_.useState=function(_){return $=1,Z(u_,_)}})); | ||
//# sourceMappingURL=index.min.js.map |
{ | ||
"name": "@hpcc-js/preact-shim", | ||
"version": "2.16.10", | ||
"version": "2.16.11", | ||
"description": "hpcc-js - preact shim", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"clean": "rimraf lib* types dist *.tsbuildinfo", | ||
"clean": "rimraf --glob lib* types dist *.tsbuildinfo", | ||
"compile-es6": "tsc --module es6 --outDir ./lib-es6", | ||
@@ -42,3 +42,3 @@ "compile-es6-watch": "npm run compile-es6 -- -w", | ||
"dependencies": { | ||
"preact": "10.20.1" | ||
"preact": "10.22.0" | ||
}, | ||
@@ -59,3 +59,3 @@ "devDependencies": { | ||
"homepage": "https://github.com/hpcc-systems/Visualization", | ||
"gitHead": "fe0de72afd765f8ca17c2a2d8a3626c06cc7586c" | ||
"gitHead": "af1635cb20805f16790f241a2cf2baeb2ba1ad77" | ||
} |
export const PKG_NAME = "@hpcc-js/preact-shim"; | ||
export const PKG_VERSION = "2.16.10"; | ||
export const BUILD_VERSION = "2.105.5"; | ||
export const PKG_VERSION = "2.16.11"; | ||
export const BUILD_VERSION = "2.105.12"; |
export declare const PKG_NAME = "@hpcc-js/preact-shim"; | ||
export declare const PKG_VERSION = "2.16.10"; | ||
export declare const BUILD_VERSION = "2.105.5"; | ||
export declare const PKG_VERSION = "2.16.11"; | ||
export declare const BUILD_VERSION = "2.105.12"; | ||
//# sourceMappingURL=__package__.d.ts.map |
export declare const PKG_NAME = "@hpcc-js/preact-shim"; | ||
export declare const PKG_VERSION = "2.16.10"; | ||
export declare const BUILD_VERSION = "2.105.5"; | ||
export declare const PKG_VERSION = "2.16.11"; | ||
export declare const BUILD_VERSION = "2.105.12"; | ||
//# 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
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
383491
+ Addedpreact@10.22.0(transitive)
- Removedpreact@10.20.1(transitive)
Updatedpreact@10.22.0