2 lines
43 KiB
JavaScript
2 lines
43 KiB
JavaScript
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s="/ODT")}({"/ODT":function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}function o(t){var e=t.parentNode;e&&e.removeChild(t)}function u(t,e,n){var r,o,u,l={};for(u in e)"key"==u?r=e[u]:"ref"==u?o=e[u]:l[u]=e[u];if(arguments.length>2&&(l.children=arguments.length>3?x.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===l[u]&&(l[u]=t.defaultProps[u]);return i(t,l,r,o,null)}function i(t,e,n,r,o){var u={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==o?++P:o};return null==o&&null!=C.vnode&&C.vnode(u),u}function l(t){return t.children}function c(t,e){this.props=t,this.context=e}function a(t,e){if(null==e)return t.__?a(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?a(t):null}function _(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 _(t)}}function s(t){(!t.__d&&(t.__d=!0)&&E.push(t)&&!f.__r++||D!==C.debounceRendering)&&((D=C.debounceRendering)||U)(f)}function f(){for(var t;f.__r=E.length;)t=E.sort((function(t,e){return t.__v.__b-e.__v.__b})),E=[],t.some((function(t){var e,n,o,u,i,l;t.__d&&(i=(u=(e=t).__v).__e,(l=e.__P)&&(n=[],(o=r({},u)).__v=u.__v+1,g(l,u,o,e.__n,void 0!==l.ownerSVGElement,null!=u.__h?[i]:null,n,null==i?a(u):i,u.__h),O(n,u),u.__e!=i&&_(u)))}))}function p(t,e,n,r,o,u,c,_,s,f){var p,y,v,b,m,O,j,S=r&&r.__k||L,A=S.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(b=n.__k[p]=null==(b=e[p])||"boolean"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?i(null,b,null,null,b):Array.isArray(b)?i(l,{children:b},null,null,null):b.__b>0?i(b.type,b.props,b.key,null,b.__v):b)){if(b.__=n,b.__b=n.__b+1,null===(v=S[p])||v&&b.key==v.key&&b.type===v.type)S[p]=void 0;else for(y=0;y<A;y++){if((v=S[y])&&b.key==v.key&&b.type===v.type){S[y]=void 0;break}v=null}g(t,b,v=v||T,o,u,c,_,s,f),m=b.__e,(y=b.ref)&&v.ref!=y&&(j||(j=[]),v.ref&&j.push(v.ref,null,b),j.push(y,b.__c||m,b)),null!=m?(null==O&&(O=m),"function"==typeof b.type&&b.__k===v.__k?b.__d=s=h(b,s,t):s=d(t,b,v,S,m,s),"function"==typeof n.type&&(n.__d=s)):s&&v.__e==s&&s.parentNode!=t&&(s=a(v))}for(n.__e=O,p=A;p--;)null!=S[p]&&("function"==typeof n.type&&null!=S[p].__e&&S[p].__e==n.__d&&(n.__d=a(r,p+1)),w(S[p],S[p]));if(j)for(p=0;p<j.length;p++)k(j[p],j[++p],j[++p])}function h(t,e,n){for(var r,o=t.__k,u=0;o&&u<o.length;u++)(r=o[u])&&(r.__=t,e="function"==typeof r.type?h(r,e,n):d(n,r,r,o,r.__e,e));return e}function d(t,e,n,r,o,u){var i,l,c;if(void 0!==e.__d)i=e.__d,e.__d=void 0;else if(null==n||o!=u||null==o.parentNode)t:if(null==u||u.parentNode!==t)t.appendChild(o),i=null;else{for(l=u,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==o)break t;t.insertBefore(o,u),i=u}return void 0!==i?i:o.nextSibling}function y(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||I.test(e)?n:n+"px"}function v(t,e,n,r,o){var u;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||y(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||y(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])u=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+u]=n,n?r||t.addEventListener(e,u?m:b,u):t.removeEventListener(e,u?m:b,u);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 b(t){this.l[t.type+!1](C.event?C.event(t):t)}function m(t){this.l[t.type+!0](C.event?C.event(t):t)}function g(t,e,n,o,u,i,a,_,s){var f,h,d,y,v,b,m,g,O,k,w,A=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,_=e.__e=n.__e,e.__h=null,i=[_]),(f=C.__b)&&f(e);try{t:if("function"==typeof A){if(g=e.props,O=(f=A.contextType)&&o[f.__c],k=f?O?O.props.value:f.__:o,n.__c?m=(h=e.__c=n.__c).__=h.__E:("prototype"in A&&A.prototype.render?e.__c=h=new A(g,k):(e.__c=h=new c(g,k),h.constructor=A,h.render=S),O&&O.sub(h),h.props=g,h.state||(h.state={}),h.context=k,h.__n=o,d=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=r({},h.__s)),r(h.__s,A.getDerivedStateFromProps(g,h.__s))),y=h.props,v=h.state,d)null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==A.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,k),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,k)||e.__v===n.__v){h.props=g,h.state=h.__s,e.__v!==n.__v&&(h.__d=!1),h.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),h.__h.length&&a.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,k),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(y,v,b)}))}h.context=k,h.props=g,h.state=h.__s,(f=C.__r)&&f(e),h.__d=!1,h.__v=e,h.__P=t,f=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(o=r(r({},o),h.getChildContext())),d||null==h.getSnapshotBeforeUpdate||(b=h.getSnapshotBeforeUpdate(y,v)),w=null!=f&&f.type===l&&null==f.key?f.props.children:f,p(t,Array.isArray(w)?w:[w],e,n,o,u,i,a,_,s),h.base=e.__e,e.__h=null,h.__h.length&&a.push(h),m&&(h.__E=h.__=null),h.__e=!1}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=j(n.__e,e,n,o,u,i,a,s);(f=C.diffed)&&f(e)}catch(t){e.__v=null,(s||null!=i)&&(e.__e=_,e.__h=!!s,i[i.indexOf(_)]=null),C.__e(t,e,n)}}function O(t,e){C.__c&&C.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){C.__e(t,e.__v)}}))}function j(t,e,n,r,u,i,l,c){var _,s,f,h=n.props,d=e.props,y=e.type,b=0;if("svg"===y&&(u=!0),null!=i)for(;b<i.length;b++)if((_=i[b])&&"setAttribute"in _==!!y&&(y?_.localName===y:3===_.nodeType)){t=_,i[b]=null;break}if(null==t){if(null===y)return document.createTextNode(d);t=u?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,d.is&&d),i=null,c=!1}if(null===y)h===d||c&&t.data===d||(t.data=d);else{if(i=i&&x.call(t.childNodes),s=(h=n.props||T).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!c){if(null!=i)for(h={},b=0;b<t.attributes.length;b++)h[t.attributes[b].name]=t.attributes[b].value;(f||s)&&(f&&(s&&f.__html==s.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,n,r,o){var u;for(u in n)"children"===u||"key"===u||u in e||v(t,u,null,n[u],r);for(u in e)o&&"function"!=typeof e[u]||"children"===u||"key"===u||"value"===u||"checked"===u||n[u]===e[u]||v(t,u,e[u],n[u],r)}(t,d,h,u,c),f)e.__k=[];else if(b=e.props.children,p(t,Array.isArray(b)?b:[b],e,n,r,u&&"foreignObject"!==y,i,l,i?i[0]:n.__k&&a(n,0),c),null!=i)for(b=i.length;b--;)null!=i[b]&&o(i[b]);c||("value"in d&&void 0!==(b=d.value)&&(b!==t.value||"progress"===y&&!b||"option"===y&&b!==h.value)&&v(t,"value",b,h.value,!1),"checked"in d&&void 0!==(b=d.checked)&&b!==t.checked&&v(t,"checked",b,h.checked,!1))}return t}function k(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){C.__e(t,n)}}function w(t,e,n){var r,u;if(C.unmount&&C.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||k(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){C.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(u=0;u<r.length;u++)r[u]&&w(r[u],e,"function"!=typeof t.type);n||null==t.__e||o(t.__e),t.__e=t.__d=void 0}function S(t,e,n){return this.constructor(t,n)}function A(t,e,n){var r,o,i;C.__&&C.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],g(e,t=(!r&&n||e).__k=u(l,null,[t]),o||T,T,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?x.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),O(i,t)}n.r(e);var x,C,P,E,U,D,T={},L=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;x=L.slice,C={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},P=0,c.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof t&&(t=t(r({},n),this.props)),t&&r(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),s(this))},c.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),s(this))},c.prototype.render=l,E=[],U="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f.__r=0;var R=u,N=A,M=function(t){return t&&t.default?t.default:t};if("function"==typeof M(n("QfWi"))){var H=document.getElementById("preact_root")||document.body.firstElementChild;0,function(){var t=M(n("QfWi")),e={},r=document.querySelector('[type="__PREACT_CLI_DATA__"]');r&&(e=JSON.parse(decodeURI(r.innerHTML)).preRenderData||e);var o;e.url&&(o=e.url);N(R(t,{CLI_DATA:{preRenderData:e}}),document.body,H)}()}},L7jf:function(t,e,n){"use strict";(function(t){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function i(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n("hosL"),f=n("hNgA"),p=n("ab6c"),h=function(e){function n(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return _(c(t=s.call.apply(s,[this].concat(n))),"userlist",[{uid:1234,first_name:"Max",last_name:"Muster",rfid:"D3A2E35E",pin:1234},{uid:12341,first_name:"Max1",last_name:"Muster",rfid:"D3A2E35E",pin:1234},{uid:12342,first_name:"Max2",last_name:"Muster",rfid:"D3A2E35E",pin:1234}]),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(n,e);var r,l,a,s=i(n);return r=n,(l=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){return t("div",{class:"container"},t(f.a,{userlist:this.userlist}),t(p.a,{start:1,end:9,current:2}))}}])&&o(r.prototype,l),a&&o(r,a),Object.defineProperty(r,"prototype",{writable:!1}),n}(s.Component);e.a=h}).call(this,n("hosL").h)},QRet:function(t,e,n){"use strict";function r(t,e){y.options.__h&&y.options.__h(h,t,v||e),v=0;var n=h.__H||(h.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function o(t){return v=1,u(f,t)}function u(t,e,n){var o=r(p++,2);return o.t=t,o.__c||(o.__=[n?n(e):f(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=h),o.__}function i(t,e){var n=r(p++,3);!y.options.__s&&s(n.__H,e)&&(n.__=t,n.__H=e,h.__H.__h.push(n))}function l(t){var e=h.context[t.__c],n=r(p++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(h)),e.props.value):t.__}function c(){for(var t;t=b.shift();)if(t.__P)try{t.__H.__h.forEach(a),t.__H.__h.forEach(_),t.__H.__h=[]}catch(e){t.__H.__h=[],y.options.__e(e,t.__v)}}function a(t){var e=h,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),h=e}function _(t){var e=h;t.__c=t.__(),h=e}function s(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function f(t,e){return"function"==typeof e?e(t):e}n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return l}));var p,h,d,y=n("hosL"),v=0,b=[],m=y.options.__b,g=y.options.__r,O=y.options.diffed,j=y.options.__c,k=y.options.unmount;y.options.__b=function(t){h=null,m&&m(t)},y.options.__r=function(t){g&&g(t),p=0;var e=(h=t.__c).__H;e&&(e.__h.forEach(a),e.__h.forEach(_),e.__h=[])},y.options.diffed=function(t){O&&O(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==b.push(e)&&d===y.options.requestAnimationFrame||((d=y.options.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),w&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);w&&(e=requestAnimationFrame(n))})(c)),h=null},y.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(a),t.__h=t.__h.filter((function(t){return!t.__||_(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],y.options.__e(n,t.__v)}})),j&&j(t,e)},y.options.unmount=function(t){k&&k(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{a(t)}catch(t){e=t}})),e&&y.options.__e(e,n.__v))};var w="function"==typeof requestAnimationFrame},QfWi:function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}function o(t,e,n){var r,o=/(?:\?([^#]*))?(#.*)?$/,u=t.match(o),i={};if(u&&u[1])for(var c=u[1].split("&"),a=0;a<c.length;a++){var _=c[a].split("=");i[decodeURIComponent(_[0])]=decodeURIComponent(_.slice(1).join("="))}t=l(t.replace(o,"")),e=l(e||"");for(var s=Math.max(t.length,e.length),f=0;f<s;f++)if(e[f]&&":"===e[f].charAt(0)){var p=e[f].replace(/(^:|[+*?]+$)/g,""),h=(e[f].match(/[+*?]+$/)||P)[0]||"",d=~h.indexOf("+"),y=~h.indexOf("*"),v=t[f]||"";if(!v&&!y&&(h.indexOf("?")<0||d)){r=!1;break}if(i[p]=decodeURIComponent(v),d||y){i[p]=t.slice(f).map(decodeURIComponent).join("/");break}}else if(e[f]!==t[f]){r=!1;break}return(!0===n.default||!1!==r)&&i}function u(t,e){return t.rank<e.rank?1:t.rank>e.rank?-1:t.index-e.index}function i(t,e){return t.index=e,t.rank=function(t){return t.props.default?0:(e=t.props.path,l(e).map(c).join(""));var e}(t),t.props}function l(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function c(t){return":"==t.charAt(0)?1+"*+?".indexOf(t.charAt(t.length-1))||4:5}function a(){var t;return""+((t=E&&E.location?E.location:E&&E.getCurrentLocation?E.getCurrentLocation():"undefined"!=typeof location?location:T).pathname||"")+(t.search||"")}function _(t,e){return void 0===e&&(e=!1),"string"!=typeof t&&t.url&&(e=t.replace,t=t.url),function(t){for(var e=U.length;e--;)if(U[e].canRoute(t))return!0;return!1}(t)&&function(t,e){void 0===e&&(e="push"),E&&E[e]?E[e](t):"undefined"!=typeof history&&history[e+"State"]&&history[e+"State"](null,null,t)}(t,e?"replace":"push"),s(t)}function s(t){for(var e=!1,n=0;n<U.length;n++)!0===U[n].routeTo(t)&&(e=!0);for(var r=D.length;r--;)D[r](t);return e}function f(t){if(t&&t.getAttribute){var e=t.getAttribute("href"),n=t.getAttribute("target");if(e&&e.match(/^\//g)&&(!n||n.match(/^_?self$/i)))return _(e)}}function p(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button))return f(t.currentTarget||t.target||this),h(t)}function h(t){return t&&(t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.stopPropagation&&t.stopPropagation(),t.preventDefault()),!1}function d(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button)){var e=t.target;do{if("A"===String(e.nodeName).toUpperCase()&&e.getAttribute("href")){if(e.hasAttribute("native"))return;if(f(e))return h(t)}}while(e=e.parentNode)}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,u=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return u}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,u=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return u}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,u=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return u}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e,n,r,o,u,i){try{var l=t[u](i),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(r,o)}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,u=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return u}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.r(e);var C=n("hosL"),P={},E=null,U=[],D=[],T={},L=!1,I=function(t){function e(e){t.call(this,e),e.history&&(E=e.history),this.state={url:e.url||a()},L||("function"==typeof addEventListener&&(E||addEventListener("popstate",(function(){s(a())})),addEventListener("click",d)),L=!0)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.shouldComponentUpdate=function(t){return!0!==t.static||(t.url!==this.props.url||t.onChange!==this.props.onChange)},e.prototype.canRoute=function(t){var e=Object(C.toChildArray)(this.props.children);return this.getMatchingChildren(e,t,!1).length>0},e.prototype.routeTo=function(t){this.setState({url:t});var e=this.canRoute(t);return this.updating||this.forceUpdate(),e},e.prototype.componentWillMount=function(){U.push(this),this.updating=!0},e.prototype.componentDidMount=function(){var t=this;E&&(this.unlisten=E.listen((function(e){t.routeTo(""+(e.pathname||"")+(e.search||""))}))),this.updating=!1},e.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),U.splice(U.indexOf(this),1)},e.prototype.componentWillUpdate=function(){this.updating=!0},e.prototype.componentDidUpdate=function(){this.updating=!1},e.prototype.getMatchingChildren=function(t,e,n){return t.filter(i).sort(u).map((function(t){var u=o(e,t.props.path,t.props);if(u){if(!1!==n){var i={url:e,matches:u};return r(i,u),delete i.ref,delete i.key,Object(C.cloneElement)(t,i)}return t}})).filter(Boolean)},e.prototype.render=function(t,e){var n=t.children,r=t.onChange,o=e.url,u=this.getMatchingChildren(Object(C.toChildArray)(n),o,!0),i=u[0]||null,l=this.previousUrl;return o!==l&&(this.previousUrl=o,"function"==typeof r&&r({router:this,url:o,previous:l,active:u,current:i})),i},e}(C.Component),R=function(t){return Object(C.createElement)("a",r({onClick:p},t))};I.subscribers=D,I.getCurrentUrl=a,I.route=_,I.Router=I,I.Route=function(t){return Object(C.createElement)(t.component,t)},I.Link=R,I.exec=o;var N=function(t,e){switch(e){case"show":return!0;case"hide":return!1;case"toggle":return!t;default:throw new Error("menustate unknown to reducer")}},M=function(t,e){switch(e.type){case"start":return{active:!0,token:e.token,username:e.username};case"end":return{active:!1,token:null,username:null,exiry:null};default:throw new Error("action type unknown to session reducer")}},H=n("QRet"),W=function(){return Object(C.h)("div",{class:"container"},Object(C.h)("h1",null,"Home"),Object(C.h)("p",null,"This is the Home component."))},F=n("L7jf"),B=function(t){var e=t.user,n=y(Object(H.d)(Date.now()),2),r=n[0],o=n[1],u=y(Object(H.d)(10),2),i=u[0],l=u[1];return Object(H.b)((function(){var t=setInterval((function(){return o(Date.now())}),1e3);return function(){return clearInterval(t)}}),[]),Object(C.h)("div",{className:"container"},Object(C.h)("div",null,Object(C.h)("h1",null,"Profile: ",e),Object(C.h)("p",null,"This is the user profile for a user named ",e,"."),Object(C.h)("div",null,"Current time: ",new Date(r).toLocaleString()),Object(C.h)("p",null,Object(C.h)("button",{onClick:function(){return l((function(t){return t+1}))}},"Click Me")," ","Clicked ",i," times.")))},$=n("YRIq"),q=function(t){if(t.items)return Object(C.h)("div",{class:"breadcrumb"},Object(C.h)("ul",null,t.items.map((function(t,e){return Object(C.h)("li",{key:e},Object(C.h)("a",{href:"#"},t)," ")}))))},z=function(){var t=O(Object(H.a)($.b).session,2),e=t[0],n=t[1],r=O(Object(H.d)({username:"",password:"",error:null}),2),o=r[0],u=r[1];return e.active&&_("/",!0),Object(C.h)("div",{class:"container"},Object(C.h)(q,{items:["Login"]}),Object(C.h)("form",{id:"login_form",onSubmit:function(t){if(t.preventDefault(),"admin"===o.username){n({type:"start",username:"affe",token:"dsf4w3qr"})}else u(m(m({},o),{},{error:"user"}));u({username:"",password:""})}},Object(C.h)("p",null,"Bitte melden Sie sich mit ihren Nutzerdaten an."),null!==o.error&&Object(C.h)("span",{style:"color: red"},"Fehler: Ungültige Anmeldedaten."),Object(C.h)("div",{class:"input-box"},Object(C.h)("input",{id:"name",type:"text",placeholder:"Username",onInput:function(t){return u(m(m({},o),{},{username:t.target.value}))},value:o.username}),Object(C.h)("label",{for:"name"},"Benutzername")),Object(C.h)("div",{class:"input-box"},Object(C.h)("input",{id:"pass",type:"password",placeholder:"Passwort",onInput:function(t){return u(m(m({},o),{},{password:t.target.value}))},value:o.password}),Object(C.h)("label",{for:"pass"},"Password")),Object(C.h)("input",{type:"submit",value:"Submit"})))},K=function(){var t=k(Object(H.a)($.b).session,2),e=t[0],n=t[1];return this.shouldComponentUpdate=function(){console.log("functional component vs closures")},e.active&&n({type:"end"}),Object(C.h)("div",{class:"container"},Object(C.h)(q,{items:["Logout"]}),Object(C.h)("p",null,"Erfolgreich abgemeldet.",Object(C.h)(R,{href:"/login"},"Erneut Anmelden")))},Q=function(){var t=Object(H.c)(N,!1),e=Object(H.c)(M,{active:!0});return Object(H.b)((function(){console.log("Use Session")})),this.menu_items=[{text:"Übersicht",path:"/"},{text:"Benutzer",path:"/users"},{text:"System",path:"/system"},{text:"Profil",path:"/profile"},{text:"Abmelden",path:"/logout"}],this.handleRoute=function(){var t,n=(t=function*(){e[0].active||_("/login",!0)},function(){var e=this,n=arguments;return new Promise((function(r,o){function u(t){S(l,r,o,u,i,"next",t)}function i(t){S(l,r,o,u,i,"throw",t)}var l=t.apply(e,n);u(void 0)}))});return function(t){return n.apply(this,arguments)}}(),Object(C.h)($.a,{value:{menu:t,session:e}},Object(C.h)("div",{id:"wrapper"},Object(C.h)(V.a,null),Object(C.h)("div",{class:"page"},Object(C.h)(G,{items:this.menu_items}),!t[0]&&Object(C.h)(I,{onChange:this.handleRoute},Object(C.h)(W,{path:"/",user:"me"}),Object(C.h)(z,{path:"login"}),Object(C.h)(B,{path:"/profile"}),Object(C.h)(K,{path:"/logout"}),Object(C.h)(F.a,{path:"/users"}),Object(C.h)("div",{class:"container",default:!0},"Error 404"))),Object(C.h)("footer",null,Object(C.h)("div",{className:"container",style:"text-align: center; align-items: center"},Object(C.h)("span",null,"© Jean Jacques Avril 2022 ")))))},V=(n("ab6c"),n("z8Av")),G=(n("hNgA"),function(t){var e=t.items,n=A(Object(H.a)($.b).menu,2),r=n[1],o=[{text:"Übersicht",path:"/"},{text:"Benutzer",path:"/users"},{text:"System",path:"/system"},{text:"Backup",path:"/backup"},{text:"Abmelden",path:"/logout"}],u=function(t){t.preventDefault(),r("hide")};if(e&&(o=e),n[0])return Object(C.h)("div",{class:"container"},Object(C.h)("nav",{className:"menu"},Object(C.h)("ul",null,o.map((function(t,e){return Object(C.h)("li",{key:e},Object(C.h)(R,{href:t.path,onClick:u},t.text))})))))}),J=Q;Object(C.render)(Object(C.h)(J,null),document.body)},YRIq:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("hosL"),o=Object(r.createContext)({}),u=o.Provider;e.b=o},ab6c:function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}var o=n("hosL");e.a=function(t){var e=[];if(!isNaN(t.start)&&!isNaN(t.end)&&!isNaN(t.current))for(var n=t.start;n<=t.end;n++)e.push(Object(o.h)("li",null,Object(o.h)("a",r({},n==t.current?{className:"active"}:{},{href:"#"}),n)));return e.push(Object(o.h)("li",null,Object(o.h)("a",{href:"#"},">"))),Object(o.h)("div",{class:"page-nav-bar"},Object(o.h)("ul",null,e))}},hNgA:function(t,e,n){"use strict";(function(t,r){function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(e){function n(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return s(a(t=f.call.apply(f,[this].concat(n))),"state",{}),t}!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(n,e);var o,c,_,f=l(n);return o=n,(c=[{key:"deleteUser",value:function(t){alert("delete: ".concat(t.uid))}},{key:"editUser",value:function(t){alert("edit: ".concat(t.uid))}},{key:"displayUser",value:function(e,n){var r=this;return t("div",{key:n,class:"user-list-item"},t("div",{class:"user-attributes"},t("span",null,t("b",null,"UID:")," ",e.uid)," ",t("span",null,"(",t("b",null,"Aktiv"),")"),t("br",null),t("span",null,t("b",null,"Vorname:")," ",e.first_name),t("br",null),t("span",null,t("b",null,"Nachname:")," ",e.last_name),t("br",null),t("span",null,t("b",null,"RFID:")," ",e.rfid),t("span",null,t("b",null,"PIN:")," ",e.pin)),t("div",{class:"btn-group"},t("button",{class:"btn-trash",onClick:function(){return r.deleteUser(e)}},"Löschen"),t("button",{class:"btn-edit",onClick:function(){return r.editUser(e)}},"Bearbeiten")))}},{key:"render",value:function(){var e=this;return t(r,null,this.props.userlist&&this.props.userlist.map((function(t,n){return e.displayUser(t,n)})))}}])&&u(o.prototype,c),_&&u(o,_),Object.defineProperty(o,"prototype",{writable:!1}),n}(n("hosL").Component);e.a=f}).call(this,n("hosL").h,n("hosL").Fragment)},hosL:function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}function o(t){var e=t.parentNode;e&&e.removeChild(t)}function u(t,e,n){var r,o,u,l={};for(u in e)"key"==u?r=e[u]:"ref"==u?o=e[u]:l[u]=e[u];if(arguments.length>2&&(l.children=arguments.length>3?D.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===l[u]&&(l[u]=t.defaultProps[u]);return i(t,l,r,o,null)}function i(t,e,n,r,o){var u={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==o?++L:o};return null==o&&null!=T.vnode&&T.vnode(u),u}function l(){return{current:null}}function c(t){return t.children}function a(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(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?_(t):null}function s(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 s(t)}}function f(t){(!t.__d&&(t.__d=!0)&&R.push(t)&&!p.__r++||M!==T.debounceRendering)&&((M=T.debounceRendering)||N)(p)}function p(){for(var t;p.__r=R.length;)t=R.sort((function(t,e){return t.__v.__b-e.__v.__b})),R=[],t.some((function(t){var e,n,o,u,i,l;t.__d&&(i=(u=(e=t).__v).__e,(l=e.__P)&&(n=[],(o=r({},u)).__v=u.__v+1,j(l,u,o,e.__n,void 0!==l.ownerSVGElement,null!=u.__h?[i]:null,n,null==i?_(u):i,u.__h),k(n,u),u.__e!=i&&s(u)))}))}function h(t,e,n,r,o,u,l,a,s,f){var p,h,y,b,m,g,O,k=r&&r.__k||F,w=k.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(b=n.__k[p]=null==(b=e[p])||"boolean"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?i(null,b,null,null,b):Array.isArray(b)?i(c,{children:b},null,null,null):b.__b>0?i(b.type,b.props,b.key,null,b.__v):b)){if(b.__=n,b.__b=n.__b+1,null===(y=k[p])||y&&b.key==y.key&&b.type===y.type)k[p]=void 0;else for(h=0;h<w;h++){if((y=k[h])&&b.key==y.key&&b.type===y.type){k[h]=void 0;break}y=null}j(t,b,y=y||W,o,u,l,a,s,f),m=b.__e,(h=b.ref)&&y.ref!=h&&(O||(O=[]),y.ref&&O.push(y.ref,null,b),O.push(h,b.__c||m,b)),null!=m?(null==g&&(g=m),"function"==typeof b.type&&b.__k===y.__k?b.__d=s=d(b,s,t):s=v(t,b,y,k,m,s),"function"==typeof n.type&&(n.__d=s)):s&&y.__e==s&&s.parentNode!=t&&(s=_(y))}for(n.__e=g,p=w;p--;)null!=k[p]&&("function"==typeof n.type&&null!=k[p].__e&&k[p].__e==n.__d&&(n.__d=_(r,p+1)),A(k[p],k[p]));if(O)for(p=0;p<O.length;p++)S(O[p],O[++p],O[++p])}function d(t,e,n){for(var r,o=t.__k,u=0;o&&u<o.length;u++)(r=o[u])&&(r.__=t,e="function"==typeof r.type?d(r,e,n):v(n,r,r,o,r.__e,e));return e}function y(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){y(t,e)})):e.push(t)),e}function v(t,e,n,r,o,u){var i,l,c;if(void 0!==e.__d)i=e.__d,e.__d=void 0;else if(null==n||o!=u||null==o.parentNode)t:if(null==u||u.parentNode!==t)t.appendChild(o),i=null;else{for(l=u,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==o)break t;t.insertBefore(o,u),i=u}return void 0!==i?i:o.nextSibling}function b(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||B.test(e)?n:n+"px"}function m(t,e,n,r,o){var u;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||b(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||b(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])u=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+u]=n,n?r||t.addEventListener(e,u?O:g,u):t.removeEventListener(e,u?O:g,u);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 g(t){this.l[t.type+!1](T.event?T.event(t):t)}function O(t){this.l[t.type+!0](T.event?T.event(t):t)}function j(t,e,n,o,u,i,l,_,s){var f,p,d,y,v,b,m,g,O,j,k,S=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,_=e.__e=n.__e,e.__h=null,i=[_]),(f=T.__b)&&f(e);try{t:if("function"==typeof S){if(g=e.props,O=(f=S.contextType)&&o[f.__c],j=f?O?O.props.value:f.__:o,n.__c?m=(p=e.__c=n.__c).__=p.__E:("prototype"in S&&S.prototype.render?e.__c=p=new S(g,j):(e.__c=p=new a(g,j),p.constructor=S,p.render=x),O&&O.sub(p),p.props=g,p.state||(p.state={}),p.context=j,p.__n=o,d=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=S.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=r({},p.__s)),r(p.__s,S.getDerivedStateFromProps(g,p.__s))),y=p.props,v=p.state,d)null==S.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==y&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(g,j),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(g,p.__s,j)||e.__v===n.__v){p.props=g,p.state=p.__s,e.__v!==n.__v&&(p.__d=!1),p.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),p.__h.length&&l.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(g,p.__s,j),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(y,v,b)}))}p.context=j,p.props=g,p.state=p.__s,(f=T.__r)&&f(e),p.__d=!1,p.__v=e,p.__P=t,f=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(o=r(r({},o),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(b=p.getSnapshotBeforeUpdate(y,v)),k=null!=f&&f.type===c&&null==f.key?f.props.children:f,h(t,Array.isArray(k)?k:[k],e,n,o,u,i,l,_,s),p.base=e.__e,e.__h=null,p.__h.length&&l.push(p),m&&(p.__E=p.__=null),p.__e=!1}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=w(n.__e,e,n,o,u,i,l,s);(f=T.diffed)&&f(e)}catch(t){e.__v=null,(s||null!=i)&&(e.__e=_,e.__h=!!s,i[i.indexOf(_)]=null),T.__e(t,e,n)}}function k(t,e){T.__c&&T.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){T.__e(t,e.__v)}}))}function w(t,e,n,r,u,i,l,c){var a,s,f,p=n.props,d=e.props,y=e.type,v=0;if("svg"===y&&(u=!0),null!=i)for(;v<i.length;v++)if((a=i[v])&&"setAttribute"in a==!!y&&(y?a.localName===y:3===a.nodeType)){t=a,i[v]=null;break}if(null==t){if(null===y)return document.createTextNode(d);t=u?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,d.is&&d),i=null,c=!1}if(null===y)p===d||c&&t.data===d||(t.data=d);else{if(i=i&&D.call(t.childNodes),s=(p=n.props||W).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!c){if(null!=i)for(p={},v=0;v<t.attributes.length;v++)p[t.attributes[v].name]=t.attributes[v].value;(f||s)&&(f&&(s&&f.__html==s.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,n,r,o){var u;for(u in n)"children"===u||"key"===u||u in e||m(t,u,null,n[u],r);for(u in e)o&&"function"!=typeof e[u]||"children"===u||"key"===u||"value"===u||"checked"===u||n[u]===e[u]||m(t,u,e[u],n[u],r)}(t,d,p,u,c),f)e.__k=[];else if(v=e.props.children,h(t,Array.isArray(v)?v:[v],e,n,r,u&&"foreignObject"!==y,i,l,i?i[0]:n.__k&&_(n,0),c),null!=i)for(v=i.length;v--;)null!=i[v]&&o(i[v]);c||("value"in d&&void 0!==(v=d.value)&&(v!==t.value||"progress"===y&&!v||"option"===y&&v!==p.value)&&m(t,"value",v,p.value,!1),"checked"in d&&void 0!==(v=d.checked)&&v!==t.checked&&m(t,"checked",v,p.checked,!1))}return t}function S(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){T.__e(t,n)}}function A(t,e,n){var r,u;if(T.unmount&&T.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||S(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){T.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(u=0;u<r.length;u++)r[u]&&A(r[u],e,"function"!=typeof t.type);n||null==t.__e||o(t.__e),t.__e=t.__d=void 0}function x(t,e,n){return this.constructor(t,n)}function C(t,e,n){var r,o,i;T.__&&T.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,i=[],j(e,t=(!r&&n||e).__k=u(c,null,[t]),o||W,W,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?D.call(e.childNodes):null,i,!r&&n?n:o?o.__e:e.firstChild,r),k(i,t)}function P(t,e){C(t,e,P)}function E(t,e,n){var o,u,l,c=r({},t.props);for(l in e)"key"==l?o=e[l]:"ref"==l?u=e[l]:c[l]=e[l];return arguments.length>2&&(c.children=arguments.length>3?D.call(arguments,2):n),i(t.type,c,o||t.key,u||t.ref,null)}function U(t,e){var n={__c:e="__cC"+H++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(f)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}n.r(e),n.d(e,"render",(function(){return C})),n.d(e,"hydrate",(function(){return P})),n.d(e,"createElement",(function(){return u})),n.d(e,"h",(function(){return u})),n.d(e,"Fragment",(function(){return c})),n.d(e,"createRef",(function(){return l})),n.d(e,"isValidElement",(function(){return I})),n.d(e,"Component",(function(){return a})),n.d(e,"cloneElement",(function(){return E})),n.d(e,"createContext",(function(){return U})),n.d(e,"toChildArray",(function(){return y})),n.d(e,"options",(function(){return T}));var D,T,L,I,R,N,M,H,W={},F=[],B=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;D=F.slice,T={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},L=0,I=function(t){return null!=t&&void 0===t.constructor},a.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof t&&(t=t(r({},n),this.props)),t&&r(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),f(this))},a.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),f(this))},a.prototype.render=c,R=[],N="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p.__r=0,H=0},z8Av:function(t,e,n){"use strict";(function(t){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,u=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return u}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=n("QRet"),i=n("YRIq");e.a=function(){var e=Object(u.a)(i.b),n=e.session,o=r(e.menu,2),l=o[0],c=o[1],a=r(n,1)[0];return t("header",{className:"header"},t("div",{className:"container"},t("h1",null,"Login"),a.active&&t("div",{id:"hamburger-button",className:"hamburger ".concat(l&&"hamburger-active"),onClick:function(){return c("toggle")}},t("hr",null),t("hr",null),t("hr",null))))}}).call(this,n("hosL").h)}});
|
|
//# sourceMappingURL=bundle.f9ad8.js.map
|