rc3-html-infobeamer/public/js/preact/preact.min.0c204e20934f1e09...

3 lines
9.8 KiB
JavaScript

!function(){var n,l,u,t,i,o,r,f,e,c={},a=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v(n){var l=n.parentNode;l&&l.removeChild(n)}function y(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return d(l,f,i,o,null)}function d(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null!=l.vnode&&l.vnode(f),f}function p(n){return n.children}function _(n,l){this.props=n,this.context=l}function m(n,l){if(null==l)return n.__?m(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?m(n):null}function k(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(n)}}function b(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!g.__r++||r!==l.debounceRendering)&&((r=l.debounceRendering)||o)(g)}function g(){for(var n;g.__r=i.length;)n=i.sort(function(n,l){return n.__v.__b-l.__v.__b}),i=[],n.some(function(n){var l,u,t,i,o,r;n.__d&&(o=(i=(l=n).__v).__e,(r=l.__P)&&(u=[],(t=h({},i)).__v=i.__v+1,I(r,i,t,l.__n,void 0!==r.ownerSVGElement,null!=i.__h?[o]:null,u,null==o?m(i):o,i.__h),T(u,i),i.__e!=o&&k(i)))})}function w(n,l,u,t,i,o,r,f,e,s){var h,v,y,_,k,b,g,w=t&&t.__k||a,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 _?d(null,_,null,null,_):Array.isArray(_)?d(p,{children:_},null,null,null):_.__b>0?d(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(y=w[h])||y&&_.key==y.key&&_.type===y.type)w[h]=void 0;else for(v=0;v<A;v++){if((y=w[v])&&_.key==y.key&&_.type===y.type){w[v]=void 0;break}y=null}I(n,_,y=y||c,i,o,r,f,e,s),k=_.__e,(v=_.ref)&&y.ref!=v&&(g||(g=[]),y.ref&&g.push(y.ref,null,_),g.push(v,_.__c||k,_)),null!=k?(null==b&&(b=k),"function"==typeof _.type&&null!=_.__k&&_.__k===y.__k?_.__d=e=C(_,e,n):e=x(n,_,y,w,k,e),s||"option"!==u.type?"function"==typeof u.type&&(u.__d=e):n.value=""):e&&y.__e==e&&e.parentNode!=n&&(e=m(y))}for(u.__e=b,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=m(t,h+1)),F(w[h],w[h]));if(g)for(h=0;h<g.length;h++)z(g[h],g[++h],g[++h])}function C(n,l,u){var t,i;for(t=0;t<n.__k.length;t++)(i=n.__k[t])&&(i.__=n,l="function"==typeof i.type?C(i,l,u):x(u,i,i,n.__k,i.__e,l));return l}function x(n,l,u,t,i,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||i!=o||null==i.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(i),r=null;else{for(f=o,e=0;(f=f.nextSibling)&&e<t.length;e+=2)if(f==i)break n;n.insertBefore(i,o),r=o}return void 0!==r?r:i.nextSibling}function A(n,l,u,t,i){var o;for(o in u)"children"===o||"key"===o||o in l||E(n,o,null,u[o],t);for(o in l)i&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||E(n,o,l[o],u[o],t)}function P(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px"}function E(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||P(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||P(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?t||n.addEventListener(l,o?H:$,o):n.removeEventListener(l,o?H:$,o);else if("dangerouslySetInnerHTML"!==l){if(i)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 $(n){this.l[n.type+!1](l.event?l.event(n):n)}function H(n){this.l[n.type+!0](l.event?l.event(n):n)}function I(n,u,t,i,o,r,f,e,c){var a,s,v,y,d,m,k,b,g,C,x,A=u.type;if(void 0!==u.constructor)return null;null!=t.__h&&(c=t.__h,e=u.__e=t.__e,u.__h=null,r=[e]),(a=l.__b)&&a(u);try{n:if("function"==typeof A){if(b=u.props,g=(a=A.contextType)&&i[a.__c],C=a?g?g.props.value:a.__:i,t.__c?k=(s=u.__c=t.__c).__=s.__E:("prototype"in A&&A.prototype.render?u.__c=s=new A(b,C):(u.__c=s=new _(b,C),s.constructor=A,s.render=L),g&&g.sub(s),s.props=b,s.state||(s.state={}),s.context=C,s.__n=i,v=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=A.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=h({},s.__s)),h(s.__s,A.getDerivedStateFromProps(b,s.__s))),y=s.props,d=s.state,v)null==A.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==A.getDerivedStateFromProps&&b!==y&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(b,C),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(b,s.__s,C)||u.__v===t.__v){s.props=b,s.state=s.__s,u.__v!==t.__v&&(s.__d=!1),s.__v=u,u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u)}),s.__h.length&&f.push(s);break n}null!=s.componentWillUpdate&&s.componentWillUpdate(b,s.__s,C),null!=s.componentDidUpdate&&s.__h.push(function(){s.componentDidUpdate(y,d,m)})}s.context=C,s.props=b,s.state=s.__s,(a=l.__r)&&a(u),s.__d=!1,s.__v=u,s.__P=n,a=s.render(s.props,s.state,s.context),s.state=s.__s,null!=s.getChildContext&&(i=h(h({},i),s.getChildContext())),v||null==s.getSnapshotBeforeUpdate||(m=s.getSnapshotBeforeUpdate(y,d)),x=null!=a&&a.type===p&&null==a.key?a.props.children:a,w(n,Array.isArray(x)?x:[x],u,t,i,o,r,f,e,c),s.base=u.__e,u.__h=null,s.__h.length&&f.push(s),k&&(s.__E=s.__=null),s.__e=!1}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=j(t.__e,u,t,i,o,r,f,c);(a=l.diffed)&&a(u)}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l.__e(n,u,t)}}function T(n,u){l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function j(l,u,t,i,o,r,f,e){var a,s,h,y=t.props,d=u.props,p=u.type,_=0;if("svg"===p&&(o=!0),null!=r)for(;_<r.length;_++)if((a=r[_])&&(a===l||(p?a.localName==p:3==a.nodeType))){l=a,r[_]=null;break}if(null==l){if(null===p)return document.createTextNode(d);l=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),r=null,e=!1}if(null===p)y===d||e&&l.data===d||(l.data=d);else{if(r=r&&n.call(l.childNodes),s=(y=t.props||c).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!e){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(h||s)&&(h&&(s&&h.__html==s.__html||h.__html===l.innerHTML)||(l.innerHTML=h&&h.__html||""))}if(A(l,d,y,o,e),h)u.__k=[];else if(_=u.props.children,w(l,Array.isArray(_)?_:[_],u,t,i,o&&"foreignObject"!==p,r,f,r?r[0]:t.__k&&m(t,0),e),null!=r)for(_=r.length;_--;)null!=r[_]&&v(r[_]);e||("value"in d&&void 0!==(_=d.value)&&(_!==l.value||"progress"===p&&!_)&&E(l,"value",_,y.value,!1),"checked"in d&&void 0!==(_=d.checked)&&_!==l.checked&&E(l,"checked",_,y.checked,!1))}return l}function z(n,u,t){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,t)}}function F(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||z(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&F(i[o],u,"function"!=typeof n.type);t||null==n.__e||v(n.__e),n.__e=n.__d=void 0}function L(n,l,u){return this.constructor(n,u)}function M(u,t,i){var o,r,f;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],I(t,u=(!o&&i||t).__k=y(p,null,[u]),r||c,c,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),T(f,u)}n=a.slice,l={__e:function(n,l){for(var u,t,i;l=l.__;)if((u=l.__c)&&!u.__)try{if((t=u.constructor)&&null!=t.getDerivedStateFromError&&(u.setState(t.getDerivedStateFromError(n)),i=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),i=u.__d),i)return u.__E=u}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),b(this))},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b(this))},_.prototype.render=p,i=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g.__r=0,f=0,e={render:M,hydrate:function n(l,u){M(l,u,n)},createElement:y,h:y,Fragment:p,createRef:function(){return{current:null}},isValidElement:t,Component:_,cloneElement:function(l,u,t){var i,o,r,f=h({},l.props);for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),d(l.type,f,i||l.key,o||l.ref,null)},createContext:function(n,l){var u={__c:l="__cC"+f++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b)},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u},toChildArray:function n(l,u){return u=u||[],null==l||"boolean"==typeof l||(Array.isArray(l)?l.some(function(l){n(l,u)}):u.push(l)),u},options:l},typeof module<"u"?module.exports=e:self.preact=e}();
//# sourceMappingURL=preact.min.js.map